c#,entity-framework,connection,entity-framework-6,sqlanywhere
It is important that the configuration section in the app.config does not exists, because it has a higher priority.
As you can see, the server offers these ciphers: INFO: kex: server: aes256-cbc,aes192-cbc But JSch accepts only these: INFO: kex: client: aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc There's no common cipher to choose from. Note that JSch does support both aes256-cbc and aes192-cbc, but requires JCE (Java Cryptography Extension) to allow them. You probably do...
android,bluetooth,connection,raspberry-pi,tablet
If you make the raspberry pi a wifi access point, the tablet can connect to the pi, however unless the pi has a connection using ethernet you will have no wifi whatsoever. Adafruit has a reasonable guide to actually getting setup. I havent tried it, i had just looked it...
java,performance,jboss,connection,user
this is not jboss problem , if you want the better performance Use Load Balancer to divide threads between servers.
java,url,sharepoint,connection
Add request property and request method solved the problem. InputStream getAuthenticatedResponse(final String urlStr, final String domain,final String userName, final String password) throws IOException { Authenticator.setDefault(new Authenticator() { @Override public PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication( domain + "\\" + userName, password.toCharArray()); } }); URL urlRequest = new URL(urlStr); HttpURLConnection conn...
javascript,node.js,cordova,socket.io,connection
The problem was that I was using the Ripple Emulator in the browser. It has some crappy settings that restrict domain access. You can change it but I thought screw it and decided to use the Android Emulator to debug instead and it worked fine.
java,spring,hibernate,connection,multiple-databases
Your configuration and setup is flawed in multiple ways. First you have both @Autowired on the fields and constructors, they are interfering with each other. Due to the @Primary and these annotations basically only a single SessionFactory is being used. To fix remove @Autowired from your SessionFactory fields. Next you...
There's at least two options. First, it's set up to be programmed over Bluetooth. So if you have Bluetooth on your laptop, you can connect the two wirelessly. Pins 0 and 1, per the documentation, are TTL serial transmit and receive pins (which are also used for Bluetooth communications), so...
Use: SshCommand x = cSSH.RunCommand(textbox3.Text); Without quotes....
php,mysql,database,connection,offline
The question is too broad, however I think you shouldn't use PHP for something like this. JAVA or C++ would suit the job better in my humble opinion. However, if you are forced to use PHP I would suggest you to use simple SQLite databases instead of MySQL or whatever....
java,database,connection,token,ucanaccess
Benji, your SQL has to be perfectioned. Not WITH but WHERE: SELECT * FROM tblAntwoorden WHERE ID=1 The message says "an alias declaration is expected", e.g., SELECT * FROM tblAntwoorden AS a WHERE a.ID=1 yet I hope this suggestion from a different timezone helps you to do the next homework....
osx,network-programming,connection
• Try giving it a static IP • Change the cord • Delete the network then retry • Plug it into another network
python,http,cron,connection,monitor
I would suggest just a GET request (you just need a ping to indicate that the PC is on) sent periodically to maybe a Django server and if you query a page on the Django server, it shows a webpage indicating the status of each. In the Django server have...
read returns zero if the peer had sent FIN by doing close on its end. read raises an exception ( ECONNRESET ) for RST from peer. Now: An entity will send RST if the recv Q is not empty and it attempts close. The connection is gone for good. And...
I after few research and testing of existing solutions, I found mine, my issue was released while I have installed Android file Transfert for Mac
java,oracle,connection,username
You can connect to Oracle database in network using below command; provided sqlplus is included in path: sqlplus User1/[email protected](DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=1.1.1.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=DataBase1))) PFB java program to connect Oracle database in your network: import java.sql.*; class OracleConnect{ public static void main(String args[]){ try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@1.1.1.1:1521:DataBase1","User1","password1");...
android,python,ftp,connection,fetch
ftp = FTP('123.456.7.89:13000', 'username', 'password') The documentation of ftplib suggests that the first argument must be a host, not host:port. This explains also the following error: [Errno 11004] getaddrinfo failed This is an error from the resolver, because it tried to interpret the given name 123.456.7.89:13000 as hostname, IPv4...
c#,sql-server,web-services,azure,connection
As Paul mentioned in a comment under the question, your connection string is pointing to a local database resource (presumably on your dev machine). Even though you configured your local database server to support remote connections, the address OfficePc\MSSQLSERVER2014 isn't addressable, as that does not equate to a machine address...
ios,connection,in-app-purchase,offline
In-app purchase need internet connection to communicate with apple server. You can handle internet connection state with https://developer.apple.com/library/ios/samplecode/Reachability/Introduction/Intro.html
You can use this: # lsof -i |grep ":ssh" to find all the connections and then you can kill any specific user # kill -9 3330 You can also use the PID returned by who command to kill the user which you dont want....
database,delphi,input,connection,ado
You're doing far too much open, do something, close, open. Don't do that, because it's almost certain that is the cause of your problem. If the data is already being displayed, the database is open already. If you want it to keep being displayed, the database has to remain open....
The $conn object is not visible in the getuserfield function because inside a function you cannot access variables that are defined outside by default. You need to make the variable accessible by using the global keyword: function getuserfield($field){ global $conn; /* ... */ } Although that will solve your problem,...
If you only care about a solution under Windows, I believe you need to setInternet2(TRUE) in te Rmd file before you read the file, since it is essentially an HTTPS link, which you cannot read into R by default. A more portable solution is to use the downloader package to...
java,sockets,connection,apache-httpclient-4.x,forceclose
RequestConfig has helped. Now it looks like all the connections are discarded in specified limits. RequestConfig config= RequestConfig.custom() .setCircularRedirectsAllowed(false) .setConnectionRequestTimeout(4000) .setConnectTimeout(4000) .setMaxRedirects(0) .setRedirectsEnabled(false) .setSocketTimeout(4000) .setStaleConnectionCheckEnabled(true).build(); request.setConfig(config); ...
c#,mysql,connection,server,close
MySqlConnection instance is not guaranteed to be thread safe. You should avoid using the same MySqlConnection in several threads at the same time. It is recommended to open a new connection per thread and to close it when the work is done. Set Pooling=true; in your connection string for boosts...
debug1: Connection to port 52004 forwarding to 127.0.0.1 port 3306 requested. debug1: channel 2: new [direct-tcpip] channel 2: open failed: connect failed: Connection refused The remote ssh server tried to connect to 127.0.0.1 port 3306 in order to service the forward request, but it got a "Connection refused" error. "Connection...
c,database,connection,posix,daemon
Signals interrupt process execution; they do not execute in parallel. So if there is only a single thread in the process, it will be suspended while the signal handler is executing. (If the process is multithreaded, only one thread will be interrupted and the others will continue executing.) However, there...
If you intend to expose the data as a Reader (which is more difficult to consume than just a String), then the 2nd approach gains the benefits of using a Reader - namely limiting amount of memory consumed. You should also specify the character encoding to use. You should check...
oracle,connection,database-connection,oracle-sqldeveloper,sqlplus
First of all you can check tnsnames in %ORACLE_HOME%\Network\Admin\tnsnames.ora If there is nothing helpful there - then connect in SQLPlus and do select host_name from v$instance. Port is almost always is 1521, but I don't know where to get it in the open session. If you can't connect on port...
android,android-asynctask,connection,timeout,offline
You should check if the String s is null before creating the JSON object in onPostExecute. If not null proceed with whatever you are doing, if null recheck internet connection and retry downloading or anything you want.
python,django,amazon-web-services,amazon-ec2,connection
The development server is bound to localhost and not accessible from other machines. You can set the port via a parameter as documented here: https://docs.djangoproject.com/en/1.7/ref/django-admin/#runserver-port-or-address-port . But of cause the best way would be to deploy Django properly: https://docs.djangoproject.com/en/1.7/howto/deployment/...
google-chrome,google-chrome-extension,https,connection
You cannot get any information about the TLS connection via the Chrome extension APIs. A few days ago, a popular feature request on Chromium's issue tracker was marked as WontFix because of the complexity of implementing such a feature in Chrome (Issue 107793: Provide information about the TLS connections to...
First of all you have to register your mysql driver, add this line above the Connection line Class.forName("com.mysql.jdbc.Driver") Hope it helps...
mysqli_connect() has the following syntax: mysqli_connect(hostname, username, password, database) where hostname is localhost usually. Make sure your username and password are correct. If not set otherwise, use root as your username and leave blank for password....
The Javadoc is clear enough. isClose() is only guaranteed to return true if the connection was closed by a call to Connection.close(). If the connection was closed due to some errors, isClose() will not necessarily return true. Therefore, if it returns true, you can be sure the connection is closed,...
image,osx,connection,status,geektool
You are missing else statement in your if: if curl -f -s http://google.com > /dev/null then cp /Users/mike/Documents/net.png /tmp/connstatus.png else cp /Users/mike/Documents/noNet.png /tmp/connstatus.png fi ...
java,oracle,jdbc,connection,sqlexception
Write this before your connection attempt: TimeZone timeZone = TimeZone.getTimeZone("yourTimeZone"); // e.g. "Europe/Rome" TimeZone.setDefault(timeZone); So the whole code would be: try { TimeZone timeZone = TimeZone.getTimeZone("yourTimeZone"); TimeZone.setDefault(timeZone); Class.forName("oracle.jdbc.OracleDriver"); conn = DriverManager.getConnection("connStr", "myUserName", "myPswd"); ... If this does not work, the problem may be an invalid JDBC driver version....
android,json,http,parsing,connection
You have to run network operation using an async class. Async classhas a method which you override called doInBackground which does not run on the UI Thread. private class MyAsyncTask extends AsyncTask<String, String, String>{ @Override protected String doInBackground(String... params) { //Here write your network request //to obtain result instead of...
mongodb,meteor,connection,docker
When you are running a container it creates its own network which is isolated from host network. So when you are tying to connect to Mongo using "mongodb://127.0.0.1:27017/meteor it searches for MongoDB inside your container. Instead of using 127.0.0.1 use the host ip addresss or hostname. Or if your MongoDB...
You can use different methodes $this->Connect = new mysqli( $Config['mysql']['hostname'], $Config['mysql']['username'], $Config['mysql']['password'], $Config['mysql']['database'], $Config['mysql']['dataport']) or die('The connection fails, check config.php'); or if (!$this->Connection) { die('The connection fails, check config.php'); } I should put the error in the die part too if I was you: die('Connection failed' . mysqli_connect_error()); ...
Why do you think there not an api for determining what socket options have actually been set? There is. getsockopt(). But the local and remote end points are available anyway i don't see how that is relevant. Aside from deriving the socket and manually storing the information This is...
java,sockets,connection,server
I looked around the web a bit and you are not the only person with this problem. This person also had it, http://stackoverflow.com/questions/4451410/java-socket-performance-bottleneck-where Basically, what you should do is instead of: ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream()); ObjectInputStream ois = new ObjectInputStream(socket.getInputStream()); You should write: ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(socket.getOutputStream()));...
java,sockets,connection,client,server
If socket closed connection client should get exception on read/write operation. If client wants to re-new the connection, just implement it. You catch block should create new socket exactly as you are doing in the beginning of your code snippet. Something like the following: while(true) { Socket socket = new...
sql-server,coldfusion,connection,windows-authentication
Found an example here that shows the username and password in the URL. <cfset connection = driverManager .getConnection("jdbc:mysql://localhost:3306/demodb?user=demouser&password=demopass")> Your URL for SQL Server doesn't pass in any credentials, give that a try....
osx,postgresql,connection,psql
On recent version of OS X and with some installation methods the system user is created with a '_' prepended or appended to 'postgres', so the name of your system user is postgres_ or _postgres in your case, not 'postgres'. I don't use OS X, so I don't know what...
NoNoNoNo! If you add it there, it will be overwritten next time you open the *.dbml file. Create a new file. Labeling the class "partial" will allow the two class definitions to be merged during the compile....
There are several options. But what you're looking for is called IPC, or just look here. http://en.wikipedia.org/wiki/Inter-process_communication In my opinion, using RESTful services should get you what you need. I am sorry I cant provide you with more help , but your question can have many answers. Hope I was...
Is this feasible or at least acceptable? Feasible it certainly is, you mention already two popular apps that do it, so it is very doable in practice. As for acceptable, to start no internet authority (e.g. IETF) has ever said it is unacceptable to have long-lived connections even with...
connection,ip,autohotkey,tcp-ip,winsock2
Did you forward the appropriate ports in your router/firewall? The IP should be correct. This was the solution, I did something wrong in my router...
All() is a static function. In this case, use get(): $persons = BoPerson::on('sqlite')->get(); Source: http://laravel.com/docs/4.2/eloquent#basic-usage...
java,sockets,connection,datainputstream,dataoutputstream
In your server example, readUTF is only called once on the DataInputStream, even though the client wrote to the DataOutputStream twice. Thus, simply adding str = inp.readUTF(); str = str + " buddy!"; out.writeUTF(str); to your server example, after the last out.writeUTF(str), will solve your problem....
You should be using using blocks to help with managing your objects. private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { string connStr = @"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\vicky\Desktop\Gym management system\Fitness_club\vicky.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; string cmdText = "Select * FROM [plan] where [email protected]"; using (SqlConnection con = new SqlConnection(connStr)) using (SqlCommand cmd = con.CreateCommand()) {...
Your php open tag in config.php is <? - this is short open tag, which I think is disabled in your config. Your php in config.php is then not interpreted and is shown as is. Change it to regular open tag <?php. Also note that mysql extension is deprecated, you...
You did not call bind Service: create intent and call bindService @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mServiceConn = new ServiceConnection() { @Override public void onServiceDisconnected(ComponentName name) { mService = null; Toast.makeText(MainActivity.this,"disconnected",Toast.LENGTH_LONG).show(); } @Override public void onServiceConnected(ComponentName name, IBinder service) { mService = IInAppBillingService.Stub.asInterface(service);...
First of all you're not managing a SQL Database with phpMyAdmin. phpMyAdmin manages mySQL databases instead. Secondly you need to install Connector/Net through this link Note : Please go for version 6.6.7 as they have removed Visual Studio integration from 6.7.7 and above Once the connector is installed, start a...
In my experience, establishing connections is unlikely to be a bottleneck for a mysql server (connection overhead is fairly low in mysql). That having been said, reusing existing connections is often an appropriate approach, but it requires some careful considerations: if the database server is temporarily unavailable, the code must...
objective-c,performance,cocoa,connection,httprequest
AFHTTPRequestOperation uses bare bone NSURLConnection. I doubt there is anything you can do to improve server response time from the client side. However, there is a lot to be done on a server side: Just pack the files in a single archive if it's possible. The attached response headers state...
You can create your custom TcpClient class which will have Id field of type int. Each time a new client connection is made (and so a new instance of TcpClient is available) you have to create a new instance of MyClient and pass it this new TcpClient object. Static counter...
ms-access,network-programming,connection,infopath,multiuser
Ok, finally figured out what was causing the problem (totally feel dumb). Apparently the servers used randomly get backed up, and when they do, the permissions get overwritten. If anyone else runs into this, review the access permissions for the directory and all the files. Thanks Nathan for your advice!
php,include,connection,prestashop,require
Ok, I admit this was a stupid question $hostname = "localhost"; $username = ""; $password = ""; $dbName = ""; mysql_connect($hostname,$username,$password) or die("Cant connect to bd"); mysql_select_db($dbName) or die(mysql_error()); ...
This is a solution that I found to make it works when this trouble happens. It is not technical (or I don't think so) but it works for me and it's the following: I connect my mobile device to the computer via USB. I run my server (in my case...
Looks like it is not open in IPtables. Please follow the below link for same. http://serverfault.com/questions/301903/cannot-access-port-80-from-remote-location-but-works-on-local guess it deals with same question....
web-services,azure,ssis,connection
You must specify serviceUrl as http://yourhost/service.asmx?WSDL
android,service,tcp,connection,client
After reading your clarification: Using IntentService is fine by itself. Note that IntentService creates a worker thread to handle incoming intents. Create your socket when your service is started or lazily the first time you receive an Intent. Don't reconnect/recreate the socket each time your receive a new intent as...
android,connection,database-connection,http-status-code-401,bluemix
Solved. I downloaded the April jars, the most recent ones. That worked....
STOP error 0x3B is SYSTEM_SERVICE_EXCEPTION: The SYSTEM_SERVICE_EXCEPTION bug check has a value of 0x0000003B. This indicates that an exception happened while executing a routine that transitions from non-privileged code to privileged code. This suggests that the exception is not taking place inside your driver's own code (since that is kernel...
java,connection,handler,netty,channel
you seem to be new to network programming in general. I am new to netty so please don't take anything I say as 100% true and especially not anywhere near 100% efficient. so one major basic fact of network programming is that the the client and server are not directly...
python,connection,whois,pywhois
This method is prone to change (if the underlying library changes), however, you can call internal socket functions to set a timeout for all pythonwhois network calls. For example: TIMEOUT = 5.0 # timeout in seconds pythonwhois.net.socket.setdefaulttimeout(TIMEOUT) pythonwhois.get_whois("example.com") ...
java,netbeans,connection,derby
Include the JDBC jar for Apache Derby into your classpath.
You have to configure on router or firewall of the network where the ftp server is a NAT or a PAT, in order to map a public IP address to the private address that you obtain with the netstat command. Over than this you have to configure firewall rules on...
excel-vba,connection,adodb,recordset
Is the "strConnect" parameter intentionally commented out in objConnection.Open 'strConnect Uncomment that parameter and things will hopefully work edit: also strSQL = "SELECT * FROM [Sheet$3] & ;" is wrong. It should be strSQL = "SELECT * FROM [Sheet3$];" (the $ sign was in the wrong place and there was...
That SI is only going to work on that vCenter which created the SI. If thats is not going to be a problem for you then simply place the session id on the bus for your workers to pick up then they should be able to create a new SI...
You can use any mobile backend service like Parse.com, Google App engine etc, or check the simplest procedure coded below First of all, request a permission to access network, add following to your manifest: <uses-permission android:name="android.permission.INTERNET" /> Then the easiest way is to use Apache http client bundled with Android:...
java,connection,httpclient,httpresponse
I implemented the suggestion of Robert Rowntree (sorry not sure to properly reference name) by replacing the beginning code with: // Increase max total connection to 200 and increase default max connection per route to 20. // Configure total max or per route limits for persistent connections // that can...
public class JSONParser { static InputStream is = null; static JSONObject jObj = null; static String json = ""; public JSONParser() { } public JSONObject makeHttpRequest(String url, String method, List<NameValuePair> params) { try { if(method == "POST"){ DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); httpPost.setEntity(new UrlEncodedFormEntity(params)); HttpResponse...
c#,mysql,connection,database-connection
The problem is that you don't store the connection that was returned from your factory property. But don't use a property like a method. Instead use it in this way: using (var con = Services.conn) { Services.conn.Open(); Services.DB_Select("..a short select statement..", con )); //Services.conn.Close(); unnecessary with using } So use...
java,spring,hibernate,connection
The issue is discussed here at large: https://github.com/brettwooldridge/HikariCP/issues/34 To narrow the problem: Try Spring 4 with Hibernate 4 Try another data-source to see if problem persists. ...
database,vb.net,ms-access,random,connection
Microsoft.Jet.OLEDB.4.0 can be used only to read MDB files (or any extension you like provided that the file is in Access 2003 format). Also OLEDB.4.0 is a 32bit driver. If you compile your application with TargetCPU = AnyCPU AND you run your app on a 64bit system, the driver will...
For blocking interconnection of devices . A feature is there in router(depend on router company) called Client Isolation . find this feature probably present under wireless settings. Just enable it . BTW which router you are using. ...
javascript,node.js,mongodb,connection,mongojs
As you can read in MongoJS docs (https://github.com/mafintosh/mongojs#events), there is one event which you can listen to know when the db is ready: db.on('ready',function() { console.log('database connected'); }); You need to make a variable assignment of the sentence you posted, as I show you below: var db = mongojs.connect(connectionString, collections);...
java,hibernate,postgresql,connection,pool
Hibernate has max connection pool size is 20, but the app seems to be ignored this and throws "Too many connections" error. Double check your use of Hibernate Session Factory: in case your is a web app read this [1] in case your is a standalone app read this...
java,connection,stack-overflow,connection-pooling,c3p0
So, although it's a reasonable guess, mere pool exhaustion (what happens if you leak or forget to close() Connections) won't lead to the stack overflow. The stack overflow occurs when checkoutResource(...) finds a Connection available to check out, and "preliminarily" checks it out; then something goes wrong, indicating that the...
In the link that I mentioned in the comment, you can find solutions using RCurl and httr package. Here, I provide the solution using rvest package. library(rvest) kk<-html("http://en.wikipedia.org/wiki/List_of_S%26P_500_companies")%>% html_table(fill=TRUE)%>% .[[1]] //table 1 only head(kk) Ticker symbol Security SEC filings GICS Sector GICS Sub Industry Address of Headquarters 1 MMM 3M...
java,connection,netty,channel,anonymous-inner-class
The problem is that initChannel(...) is called for each new Channel that was accepted and so calling sendData() after the bind future completes makes no sense.
java,java-ee,websocket,connection,timeout
Unfortunately, this is not exposed by JSR 356 - WebSocket API for Java. You will need to use implementation feature, such as HANDSHAKE_TIMEOUT in Tyrus (reference implementation). Other implementations will most likely have something similar. Seems like there is no ticket about this yet in WEBSOCKET_SPEC, so you can add...
c#,sql-server,connection,connection-string,app-config
Example connection to outer server: <connectionStrings> <add name="Namespace.Settings.outerSQL" connectionString="Data Source=192.168.0.100\SQLEXPRESS;Initial Catalog=database_name;User ID=user;Password=password"/> </connectionStrings> You need address to remote server and credentials provided (if it's not Windows auth, for which you use "Integrated Security")....
java,android,connection,httpconnection
Do you check network connectivity before create an http request, as this: ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = cm.getActiveNetworkInfo(); return netInfo != null && netInfo.isConnectedOrConnecting(); ...
testing,connection,datasource,weblogic-10.x
On the Connection Pool tab for the datasource, set the Initial Capacity to 0. This will stop the initial check and the server should start properly.
java,sql,import,connection,override
The abort, getNetworkTimeout and getSchema methods were added in Java 7. Perhaps you are using an older version of Java, in which these methods didn't exist, so you can't override them.
php,database,codeigniter,connection
Strangely enough I was able to make this all work with a slight modification to my CRUD_model code. By changing this... class CRUD_model extends CI_Model { protected $database = null; protected $_table = null; protected $_primary_key = null; public function __construct() { parent::__construct(); $this->load->database($this->database, TRUE); } To this... class CRUD_model...