*Hi all
I am a new guy in java and ubuntu.I knew that in windows,i can use rasdial or rasphone to connect to the internet via pppoe .However,what i face now is ubuntu.so ,my question is that how to use java to connect the internet via pppoe in ubuntu(not windows,i mean,ubuntu or debian,anyways,linux)
i have found a solution here:
http://code.google.com/p/news-recommender/source/browse/trunk/WeiboCrawler/src/crawler/sina/exe/PPPOE.java?r=706
but it is not what i want as in my computer there are many networkcards(eth0-eth8),and i want to build different pppoe connections in different networkcards(eth0-eth8)......so, how to implement it by java in ubuntu or debian automatically(You know,i mean,without any dial boxes without any manual participations)?
thanks in advance
Related
I want to make a TeamSpeak 3 Musicbot in Java. But I don't find any Protocol from Teamspeak for the Voice transmission. And after searching for a Client API, for Java, I didn't find anything. Only for a ServerQuery but that doesn't help me I think.
I only want the Client to connect to the Server and then plays a Song, though that wouldn't be that hard!
Maybe you Guys can help me?
Teamspeak does not have an official client-api. You can only use the Query-API and create plugins. As the Query-API does not support any voice-communication, that's not the way you should go. The (most) official way of creating a Teamspeak3 MusicBot would be to run a client on your server which has a plugin installed which allows you to play music (more or less a soundboard). Sinusbot is exactly built this way.
Another "unofficial" option would be to make use of unofficial reverses of the teamspeak-protocol and built you own client from these. If you want more information about this, this repository might help you (and look for other projects the creator pushed, they might help you too).
I'm not quite sure if this helps, but have been developing a TeamSpeak 3 music bot using Kotlin, which is compatible with Java as it runs on the JVM (Java Virtual Machine)
The way it works is that it first launches the TeamSpeak client and connects to the desired server and channel, then it starts monitoring the chat log -> the bot can be controlled by entering commands into the chat.
The bot uses the TeamSpeak ClientQuery via Netcat to send messages to the chat.
It is completely client-side so you don't need to be server admin to get it working.
The bot currently supports Spotify, YouTube, and SoundCloud.
You can check it out at https://gitlab.com/Bettehem/ts3-musicbot
i know there are millions of topics on the net about connecting to a external database, but i don't get the clue which ones i have to follow. probably this is because i am an beginner for java and android programming.
my setup:
-microsoft sql server 2005 on a server connected to the internet
-android app i am working on in java (eclipse)
what i want to try first:
-user gives an input number
-i go search this number and return the data from the database do put in on the screen of my android.
i've been reading alot about json and php scripts but i don't know where to start. this database is also used for other windows aplications, there the database is entered by the windows authentication i was told.
is it possible to also use this windows authentication?
anyway, what to do first for me?
thanks in advance
See answers here: Connecting android with MS SQL SERVER 2008
You should really use a webservice, connecting to the database is not the best practice.
I need my computer program to be able to send and receive SMS messages. The software has to run independent of the Internet so using a web based SMS gateway is not the solution.
The software should be running from a linux or a Windows machine. Windows is more important for my usecase. My program is in Java but I guess there may be solutions independent of the programming language.
I am considering one of the following options.
Kannel http://www.kannel.org/ Although supported for Linux I guess I could find a way to compile it in windows like done here: http://www.ddj.co.za/kannel-for-windows
The other one seems a more lightweight option http://smsj.sourceforge.net/
Which of these or something else that you have in mind could be a better way of sending SMS via computer without an internet connection?
I am considering using these libraries so I don't have to program all the AT Commands.
Also how do I connect my phone to the computer? For example will it be fine if I just connect my phone with a USB cable when using kannel.
Update:
I need to use simple GSM phones and not depend on IOS or Android specific features.
Perhaps not want you needed or wanted, but maybe useful for others: When I had my iPhone jailbroken there was an Cydia app I used to send SMS from my computer through my phone, BiteSMS.
You had to ssh in and then something similar to:
/Applications/biteSMS.app/biteSMS -send -carrier 077xxxxxx “The message goes here”
Obviously you replace 077xxx with the number you want to send to.
It looks like it is fairly similar process with Android, check out this question on doing this through Android. Again this requires a ssh connection to the phone. Also have a google on 'Sending sms from commandline' there are other resources available.
As for other methods, I can't see any viable options without attaching a phone to your computer and accessing the OS and ssh seems the easiest way to do this.
Try smslib.org + some GSM modem.
I am using MizuTech webphone when i run it using WAMP server of and other server it says cannot find java applet handler..!.
But if i connect my internet it works fine.
Can you please tell is it necessary for Java applet to use Internet ?
If not could you please tell me how I can get rid from it.
You can definitely run an applet without being connected to the internet.
... as long as all of its jars and code are available locally.
While it may be possible to load the applet from local sources, my understanding of SIP calls is that they generally go via the internet. So the main point of a 'SIP phone applet' is lost when there is no internet connection. It is a like a mobile phone with no signal, or a land-line phone when 'the storm has brought down the phone lines'.
I'm will to explore OLE for Process Control protocol using java. My problem is to find an OPC server for sending/retrieving of testdata. As a OS X user I cannot find an opc-server, which I can install locally. Therefore my idea was to find an external server to retrieve some test data? Is it possible or can somebody propose better idea?
If you don't mind to use OPC-XML:
http://advosol.us/XMLDADemo/XML_sim/OpcXMLDaServer.asmx?WSDL
I'm new in OPC , but this is what i got so far...
Check http://www.opcconnect.com/freesrv.php
Have tested :
https://www.matrikonopc.com/downloads/178/software/index.aspx
This is good, however if you need to access to a physical drive like PLC (for example modBus to connect) , it's very difficult because of COM configurations.
http://www.kepware.com/kepserverex/
I'm using, however, every 2 hours the server restart. Not a problem for testing.
modBus is very easy to configure
For Java OPC Client programming...
I'm still seeking the best, but so far i have
utgard openscada
jeasyopc
As OS X user, use virtual machine, VMware player