w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Cannot access ubuntu server from other machines other than the machine which is hosting the virtual machine which is my ubuntu server
First of all make sure in the setting of the virtual machine that it is in Bridged Adaptor type connectivity. Give a static ip to the virtual machine using sudo ifconfig eth0 10.0.0.100 netmask 255.255.255.0 the above is an example. You got what I mean. 3.Third, Try pinging the virtual machine with the base machine running the vbox to make sure they are connected. ping ipaddress-basemachine 4 . Now if everything is working fine from there then connect with this virtual machine with other base machine using Remote Desktop Viewer or any other similar application. Specify, the ip-address of the vbox and username, password. It will be able to connect with it now. 5 . If it still is not able to then try to check the firewall rules on both the virtual box machine and the base machine

Categories : Linux

SQL Server Express - Connect from remote machine
If i remember correctly SQL Server disables remote connections by default. Please check whether remote connections are enabled and enable them if not: RMB on Server in Management Studio Object Explorer -> Properties -> Connections -> Allow remote connections...

Categories : SQL

how to keep a node server app running on windows server
I'm not sure about running node in iis. However, you can take a look at the node packages forever, pm2, and nodemon, which will recover the instance in case of failure. Here's how to install node.js as a service Here's something on installing node in iis 7.5 Just an update. I've been using iisnode at work for the better part of a year. I would recommend it if you are deploying to Windows.

Categories : Node Js

How to set up Node server for production on own machine?
Two options. Either disable any other service running on port 80 and run Node with sudo. Or setup something like nginx to forward traffic from port 80 to your Node instance. To do that you can open a socket file with node and configure nginx similar to https://github.com/trevnorris/norrd/blob/master/conf/nginx.conf Creating the socket is simple enough. It's as simple as net.createServer(function(){}).listen('/path/to/file.sock'); I usually opt to spawn child processes for easier monitoring from the parent process, but use nginx to connect to each socket. For two reasons, one is it's easy to set route static content around the node process, and also because I prefer not to setup my own access privileges from scratch.

Categories : Linux

This version of Microsoft SQL Server Management Studio Express can only be used to connect to SQL Server 2000 and SQL Server 2005 servers
I just ran in to this issue as well but then was able to find the solution. You just need the newer version of SSMSE which is now 2008! Here's the MS download page: http://www.microsoft.com/en-us/download/details.aspx?id=7593

Categories : Misc

Is it possible to know if the client (browser) is running on the same machine as the server?
I guess you can check whether the ip address of the request is the same as server's or if it's coming from localhost? I guess this can help: String getRemoteIP(HttpServletRequest request) { String xff = request.getHeader("X-Forwarded-For"); if (xff != null) { return xff.split("[\s,]+")[0]; } return request.getRemoteAddr(); } Compare this address to server's. I took this code from here

Categories : Java

XMLhttpRequest with a node js server with express
At the time you are trying to alert(resp) the resp variable hasn't been assigned, because onreadystatechange has not been called. If you moved the alert into onreadystatechange you should get the desired effect. This is also the point you could assign that value to an Element in the page.

Categories : Javascript

Kerberos authentication not running when client and server on same machine
IE and all browsers using SSPI send by default a NTLM token in this case. See Are the client and server on the same box?. The issue is described in MS's knowledge base with possible solutions.

Categories : Java

How to connect to a MySQL server running on a Virtual Machine
You problem is that (probably) your mysql is bind to 127.0.0.1 instead of 0.0.0.0. You should change bind in /etc/mysql/my.cnf to 0.0.0.0 bind-address = 0.0.0.0 And then restart mysql of course.

Categories : Mysql

C# :Does Client machine need SQL Server installed on it while connecting to other machine having SQL Server installed on it (the Server machine)
The pieces needed to connect to SQL server are built into the .net framework. As long as you used those when coding the client piece you can connect to a SQL Database without MSSQL installed on the client. using System.Data; using System.Data.SqlClient; SqlClient PS: I am asking beforehand to avoid the last minute hassle on the day of installation. You should always test locally first. You can probally get your hands on a random test machine to verify that everything is good to go.

Categories : C#

Directory-Dynamic Node.JS express server
If you are wanting to just have express serve a folder of static HTML files without dealing with each one individually, you could define your app as: var express = require('express'); var app = express(); app.use(express.static(__dirname + '/html')); //where /html is a subfolder of your app app.listen('200'); with /html containing all of your static files.

Categories : Javascript

Routing to different node.js express-apps on one server
Assuming each app is running in its own process, you essentially need a reverse proxy. http-proxy is your best bet. You can mix an Express app and the proxy ("app1"), and forward requests for /api to app2 and /some/path to app3. app2 and app3 can be running on the same box or different boxes. If this is all happening in the same process, just use the router from app1 and app2 mounted to a path: var app1=express(), app2=express(), app3=express(); app1.use(app1.router); app1.use('/api', app2.router); app1.use('/some/path', app3.router);

Categories : Node Js

SQL Server Express 2012 Installation fails with Could not find the Database Engine startup handle in SQL Server Express 2012
I have found the solution. It was, in fact, a r/w rights error. I have added following users to my profile folder: IUSR Local Service Network IIS_IUSRS Service I know I went overkill here but I wanted to be sure without giving everyone access rights. I will disable them one by one and find the right one(s) needed to properly run SQL Server Express 2012.

Categories : Misc

SQL Server 2008R2 Express upgrade to SQL Server 2012 Express
As documented, upgrade is supported from SQL Server 2008 R2 SP1 Express to SQL Server 2012 Express. Install the 2008 R2 SP1, and run installation of 2012 Express normally. It should pick up and offer an upgrade. Your operating system is also supported.

Categories : Sql Server

Client-Server Program: Client can connect to server easily but server can't respond cause target machine actively refuses connections
You need to design your client and server so that the client-to-server connection remains open to recieve the responce and then do something like this: public static bool sendTo(IPEndPoint ip, String data) { TcpClient client = null; NetworkStream stream = null; StreamWriter writer = null; StreamReader reader = null; try { client = new TcpClient(); client.Connect(ip); stream = c.GetStream(); writer = new StreamWriter(stream); writer.WriteLine(data); writer.Flush(); reader = new StreamReader(stream); string response = reader.ReadLine(); if (response == "roger-alpha-tango") { return true; } } catch { return false; } finally { i

Categories : C#

SQL that access accepts, but SQL Server Express rejects
You need to give an alias for the select in the parenthesis: SELECT COUNT(T0021_werk_naam) FROM ( SELECT Distinct T0021_werk_naam, T0021_jaar, T0021_kwartiel FROM T0021_offertes WHERE T0021_status_code = 'G' AND T0021_jaar = 2013 AND (T0021_kwartiel = 3) ) T notice the T in the end after the last parenthesis.

Categories : SQL

Node/Express server-side include equivalent for static files
If you're using node.js, you should be able to just use require on the server file you want, assuming it's a js file: require('myfile.js'); You will have to modify your js file to include a module export so you can gain access to various functions. myfile.js: module.exports = { nameToAccessFunction: myFunc, someOtherFunction: myOtherFunc } var someVarForMyFileStuff; function myFunc() { stuff... }; function myOtherFunc() { other stuff... }; Then your app file should look something like this when using that included file: var myFile = require('myfile.js'); myFile.nameToAccessFunction(); myFile.someOtherFunction(); You can also nest your requires within other required files as much as you wish.

Categories : Node Js

Access windows server information( like System.IO) from a local machine
You probably want to use Windows Management Instrumentation (WMI). In .NET, you access it through classes in the System.Management namespace. You can also connect to remote machine event logs using the System.Diagnostics.EventLog class. There are some good examples in the documentation. You might also get some relevant information using performance counters. See PerformanceCounter and related classes.

Categories : C#

how to access django development server on virtual machine from actual computer
You can try running the server on 0.0.0.0 python manage.py runserver 0.0.0.0:8000 The IP address 0.0.0.0 means "all IP addresses on the local machine" (or all IPv4 addresses on the local machine). Next, you will need the ip address of your VM. Visting http://<ip_address_of_vm>:8000 on other computers should access the django development server on your VM. Note: If your VM only has an internal IP (e.g. 192.168.x.x) then only computers on the same network can visit the VM.

Categories : Django

running a server file on node.js
When you close the terminal, everything that runs in it is killed. There are many solutions on both Linux and Windows systems, most of them create some sort of a service which then runs in the background. Here are some possible solutions: http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever https://github.com/indexzero/daemon.node http://www.coretechnologies.com/products/AlwaysUp/Apps/RunNodeJSAsAService.html http://coreybutler.github.io/node-windows/manual/#!/api/nodewindows.Service Pick the one that is best for you. Related question on StackOverflow: How to run node.js app forever when console is closed?

Categories : Node Js

How to switch app.js to app2.js running on node server?
(Assuming you're using Express) You can create some middleware that checks if the user is authenticated. If they are, it forwards the request; otherwise, it does whatever it needs. See app.use in the documentation for more information. It turns out that if you want to apply middleware to specific routes, you can; just pass the middleware as additional arguments after the path and before the main handler.

Categories : Node Js

Issue when both apache2 server and apache tomcat server installed in my linux machine
Change the default port for Tomcat to something else, for example 8181 Current versions of web browsers recognize port 8080 like 80, so that's why it's forward you to 80 or cut the port option from URL. To change Tomcat port open server config file server.xml search for "8080", which is the current port in use, and replace it with something else (make sure the new port not in use), save and restart Tomcat.

Categories : Java

How to connect Web Server to Glassfish Apps Server in different Windows Machine
After some searching and study, finally i able to get a more detail guideline from web http://www.ramkitech.com/2012/03/virtual-host-apache-httpd-server-tomcat.html Thanks to the author, i was successfully set up Apache HTTPD Web Server in front of Glassfish Server 3.1.2 in different machine. The most important to configure the different machine pointer was at during configure the session. Hope that this answer can help those who facing the difficulties that i been faced before. Thanks and Regards,

Categories : Apache

Receiving data sent from AIR app in node.js server running on Heroku
It seems it only does not work on the Simulator, once on testing on a real device it will work with the URL given by Heroku. Still don't know how to make it work on the Simulator though.

Categories : Node Js

Running a forward proxy server in nodejitsu using node js
You can write a simple proxy using the request module, like this: var http = require('http'), request = require('request'); // For nodejitsu, this will be port 80 externally var port = process.env.PORT || 8000; http.createServer(function(req,res) { req.pipe(request(req.url)).pipe(res) }).listen(port); However, this will only work with http, not https. Nodejitsu also produces a proxy module, you may get some ideas on what to do next by looking at that.

Categories : Node Js

How do I create an HTTP server with Node.js on a DreamHost VPS running Apache?
Turns out I needed to tell Apache to forward the requests for that domain, and DreamHost provides a nice frontend for mod_proxy: http://wiki.dreamhost.com/Proxy_Server Thanks, CodeCaster!

Categories : Node Js

error on running node.io via commandline on windows server 2008
I had the same problem and tried a couple of things. It seems Windows 7 had a problem with the command file name itself (node.io.cmd). If you copy this command to something without the period (ie. nodeio.cmd), then I could successfully invoke the tool using "nodeio" instead of "node.io". The file that would need to be changed was in my %APPDATA% pm directory. My %APPDATA% environment variable was mapped to "C:Users{my user name}AppDataRoaming".

Categories : Node Js

Moving from SQL Server 2008 Express to SQL Server 2012
Here is my own suggestion :- For sql server make backup of database and for Visual studio make backup of settings. Settings can be accessed through My document/Visual studio 2012/Settings Same way you got settings for sql server management studio. Having backup of setting make it easier to move to new version. Now uninstall both and restart your computer. After restart install both thing. It will be worked. if you want both version you can have it. Both software provide side by side installation. Remember that you maybe got some panic experience to have two database server on same computer. You can 2008,2010 both version without any conflict.

Categories : Visual Studio 2010

socket.io becoming slow and unresponsive after node server is left running for a couple days
You are probably experiencing a known bug in node.js that was recently fixed - see issue#5504. Is the problem still there after upgrading to node v0.10.11?

Categories : Node Js

Mongoose connect method fails on simple Node Server. Express, Mongoose, Path
You need to actually successfully get mongod running and listening for connections. Just type mongod with no options, hit ENTER, and let it run. Then in a separate terminal start your express app. Note that mongod is the mongodb server daemon whereas mongo is the command line client where you can run an interactive REPL and issue database commands.

Categories : Node Js

Giving public access to chat server on node.js
If you really want to let others use this chat through telnet over the internet (which I recommend against), you will need to forward a port through your router (I assume you use a router) to port 8000 on your local machine. Give your friends your IP address and the port you mapped, and they should be able to telnet in as well. It's hard to answer this question without more information, however. Do you use a firewall? Modem? Etc.

Categories : Node Js

SQL Server 2008 Express server information
I figured it out. I've created a user in SQL Server and added him to the "sysadmin" role and gave him access to the "master" database. After that I added an inbound rule (allow port 1433) to my Windows Firewall to allow remote connections to the SQL Server. See http://msdn.microsoft.com/en-us/library/ms175043.aspx

Categories : Sql Server

Connecting Clients machine to MySQL Server machine
You can use other tool with good looking GUI. For example: HeidiSQL. Then, you need to enable remote access. If you use windows, there is nice wizard for you to enable remote access with a few clicks. The wizard is located it at MySQL Server 5.5inMySQLInstanceConfig.exe. Then Reconfigure Instance -> Next -> Standard Configuration -> Next -> Next. You will see this screen. Tick on "Enable root access from remote machines". Or you can manually configure it to allow remote access from my.ini file. See this link for how to do it. If having done above still does not allow you to connect to your MySQL. Please make sure that Firewall does not block MySQL port.

Categories : Mysql

running my sample app using express.js and node.js
You can put the files wherever you like, so long as the user the server is running as can read them. If you want that code to serve them, however, then you will need to replace all the response.* code you have with code that will: Identify which file is being requested based on the data in request Determine if that file exists (and send a 404 response if it does not) Determine the correct content type for that file type and set the header appropriately Read the file in and output it in the response In other words: Node.js is not a web server. You can write a web server in JavaScript and run it on Node.js, but you've only taken the very first steps along that route.

Categories : Javascript

Attempting to access Shared files on Windows Server from Java program running in UNIX
Your best bet is to use a library which is able to "talk Windows". And there is one: JCIFS, by the good folks at Samba. Link to javadoc here.

Categories : Java

Cursors running 100 times slower in SQL Server 2008 R2 than in SQL Server 2000?
After reading all the suggestions, I ended up doing some old trick and it worked miracles! I had this cursor which was taking almost 3 mins to run, while the enclosing query was instant. I have other databases with more complex cursors that were only taking 1 second or less, so I ruled out the global issue on using cursors. My solution: Detach the database in question, but ensure you tick Update Statistics. Attach the database and check performance This seems to help optimize all the performance parameters without the detailed effort. I am using SQL Express 2008 R2. Would like to know your experience.

Categories : Sql Server

Is there any OAuth2 module for Node.js that offer access token validation without an extra server call?
I'm not clear on what you mean by wanting to find a node module (all of which are essentially 3rd party API's) that provides OAuth2 client capability that will work against facebook and twitter without an extra server call. However that being said, you might look at these: https://github.com/ciaranj/node-oauth https://github.com/lexer/node-oauth2 https://github.com/coolaj86/node-oauth2-examples https://github.com/AF83/oauth2_client_node And since Node.js is javascript, you can wrap up regular javascript written for client-side browsers provided you simulate the necessary browser environment elements expected by the client-side javascript. Your question made me think it might be useful to encapsulate the OAuth library provided here: https://github.com/andreassolberg/jso, and roll it u

Categories : Node Js

Netscape Enterprise Server and Server-Side JavaScript (SSJS) vs Node.js
The main difference would be the evolution of Javascript over the the past 15+ years. Node.js uses the V8 Javascript Engine which would be far more optimized for modern computers. Wikipedia has a good list of the differences between various server-side JS solutions. Here is a list of features for Netscape Enterprise Server - provides a good idea of what makes modern SSJS solutions much better. Why did it not gain attention? Realistically, client-side JS has only recently started to become the standard for web development so it was unlikely anybody would have considered using it for server-side development when it wasn't even really widely adopted for it's original purpose. I say widely adopted in that previously it was always difficult to cater JavaScript solutions to all browsers.

Categories : Javascript

how to download a pdf file stored in a server in client side in node.js server
Send the correct mime-type, and then the content of the pdf. fs.readFile('temp/xml/user/username.pdf',function(error,data){ if(error){ res.json({'status':'error',msg:err}); }else{ res.writeHead(200, {"Content-Type": "application/pdf"}); res.write(data); res.end(); } }); I'm assuming res is your response object. Ah but you are using Express. Use Jonathan's answer instead.

Categories : Node Js

Running script on a remote server in bash working on 1 server, not on the other
It's just a guess but i would try this filename=hostnames > export.log while read -r -a line do hostname=${line//"} echo $hostname":" >> export.log ssh -t -t $hostname "bash -s" < script.sh >> export.log & done < "$filename" exit Just to make sure you don t get stuck on one server.

Categories : Bash



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.