w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Sails.js server not starting anymore
Hmm-- looks like port 8080 isn't available. What happens if you try to switch the port? You may have another server running on that port. Or in some cases, hosts require the hostname to be set. I'd try switching the port first though.

Categories : Javascript

Why mysql server is not starting on Solaris 10?
Its working fine in my case by rebooting machine. Sometime because of some issue like space or any corrupt file. It may be occur. Try below command and check mysql connection. reboot

Categories : Mysql

Error starting rails server
Try to remove all you gemset and bundle install again. If you are using RVM: rvm gemset empty mygems Then bundle install rails s

Categories : Ruby On Rails

nginx not starting after server reboot
I don't have much experience with Ubuntu - but have you tried running chkconfig? You can try: # sudo update-rc.d nginx defaults Or: # sudo apt-get install chkconfig # sudo chkconfig nginx on

Categories : Ubuntu

TC Server with Insight template not starting up
The bug was fixed on July 18. If you want Insight functionality with tc Server 2.9.2 and you're willing to work with nightly releases, I'd recommend getting the latest STS nightly for your Eclipse version as instructed at http://www.springsource.org/STS-installation-instructions Meanwhile, I'm using STS 3.3 and downgraded vFabric to 2.8.2. I no longer have the problem and insight works properly. http://blogs.vmware.com/vfabric/2013/02/vfabric-tc-server-2-8-2-released.html

Categories : Spring

UnsupportedClassVersionError when starting a Tomcat server
Tomcat 7 requires at least java 1.6, see here. To check which java version you have you can run java -version in a command prompt or just go to Control panel > Programs > java then in the General tab click on about. Make sure you have installed java 1.6 or higher and correctly setup the JAVA_HOME environment variable. If you don't want to install a newer java version then you can download an lower version of Tomcat which runs with the java version you have actually. But I will not recommend that, better install a newer version of java.

Categories : Tomcat

Starting Node.js server without console
Unless you use some fancy platform like Amazon's AWS Elastic Beanstalk or Heroku, in a production environment you will still have to have some sort of console access (SSH) to log in the server, and upload and start your application. You need to ensure the app runs continuously as a background service, and gets restarted if it crashes. There are utilities for node that help you with that, like forever. With forever, you would do something like this: $ git clone git://gitserver:myapp.git $ cd myapp $ npm install $ sudo npm install -g forever $ forever start server.js This leaves server.js running as a daemon in the background and you can close SSH. To see the daemons running and the logs you can run: $ forever list $ forever logs 0 The app will still run on port 3000, so you may wan

Categories : Node Js

Rails 4 Server Not Starting (Active Support)
The gsub where the syntax error is being produced includes Regexp syntax which isn't supported in < Ruby 1.9.3, and would produce this identical error in those versions, it seems. However, your paths show Ruby 2.0.0, which is odd, so I'm not entirely sure what's up. Hopefully that gives you something to go on though, look at your Ruby install perhaps.

Categories : Ruby On Rails

Trouble starting rails server Webrick
Error is in the message there: Access denied for user 'root'@'localhost' (using password: NO) (Mysql2::Error) In your config/database.yml you need to specify a valid host, user and password

Categories : Ruby On Rails

Exception when starting WSO2 identity server
You're having some sort of port conflict. I encounter this same exception if I have another certain appserver/webserver already running. In my experience it doesn't seem to happen if have a Tomcat already running, but if I'm running JBoss before I start Identity Server, I will get these exceptions. For reference I'm using Identity Server 5.0.0, Tomcat 7.x, JBoss Enterprise Application Platform 6.1+. At least in my case, everything I need to run still works. :)

Categories : Wso2

Rails server exiting immediately after starting
The first line is showing you your problem: /Users/falk/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.12/lib/rails/application/configuration.rb:115:in `read': No such file or directory - /Users/falk/Desktop/parkbuddy/config/database.yml (Errno::ENOENT) The config/database.yml file is not present in your Rails app. Check with the app's documentation to see what it suggest you do about database configuration.

Categories : Ruby On Rails

starting a websockets server in php on shared hosting
Not having SSH access to your shared hosting is pretty flaky. That said... You can use exec to run something on the command line from a triggered script. For instance, if you have a controller action that you call from a URL like http://mysite.com/server/start, you could embed the line: $lastLine = exec("php server.php"); Of course, this command will not return until the command finishes, so you will never get a response from this script (unless it fails). So I would use popen, which will fork the process and return right away, allowing your controller to return a response. $handle = popen("php server.php", "r"); At some point, you are probably going to want to stop this server. You can use passthru and posix_kill with a little unix CLI magic to get this done, maybe in another contr

Categories : PHP

Get Starting and ending of a Dataset in SQL Server 2008
If I understand you properly, this returns what you're asking for. DECLARE @tmp TABLE ( numVal INT PRIMARY KEY ); INSERT @tmp VALUES ( 1 ) ,( 5 ) ,( 10 ) ,( 15 ) ,( 20 ) ,( 40 ) ,( 45 ) ,( 50 ) ,( 55 ) ,( 60 ) ,( 65 ) ,( 70 ); ;WITH breaks AS ( SELECT t.numval breakMax , ROW_NUMBER() OVER( ORDER BY t.numval ) breakGroup FROM @tmp t WHERE NOT EXISTS ( SELECT NULL FROM @tmp t1 WHERE t1.numVal > t.numVal AND

Categories : SQL

How to query mysql before starting http server in nodejs
You just add the server inside of the return callback for the connection query, like so: var price = -1; var userId = 'some user provided value'; var sql = 'SELECT max(price) FROM users WHERE id = ' + connection.escape(userId); connection.query(sql, function(err, results) { price = results.price; server = http.createServer(function (request, response) { console.log(price); handler(request, price, response); //response depend on price }).listen(8012); });

Categories : Mysql

Starting rails server having error for a mysql project
Looks like the password is not set. In your database.yml you should specify the password for your DB. E.g: if you have set the password on your devlopment pc to: root, it should look like this: development: adapter: mysql2 encoding: utf8 reconnect: false database: your_db_name pool: 5 username: root password: root socket: 'depending on your os something like:' /tmp/mysql.sock Also I recommend not to check this file into your VCS. Make a copy of it, call it database.example.yml and put in there your config and a placeholder for the password.

Categories : Ruby On Rails

Rails 3 when starting server get message ExecJS::RuntimeUnavailable
uncomment this line in Gemfile and run bundle to install it: gem 'therubyracer', :platform => :ruby Update remove rvm: rvm implode install it back using this tutorial: http://www.andrehonsberg.com/article/install-rvm-ubuntu-1204-linux-for-ruby-193

Categories : Ruby On Rails

SQL Server stored procedure to generate sequence number starting from '1' every day
Simplest way might be to use a calculated/generated field. Something like (not tested): DECLARE @StartID int SELECT @StartID = (SELECT TOP 1 RecordID FROM MyTable WHERE DateEntered = @RequiredDate ORDER BY RecordID DESC) SELECT RecordID - @StartID + 1 AS SequenceNumber, OtherData FROM MyTable WHERE DateEntered = @RequiredDate This won't work without changing the fields, table names to your local names and you will probably have to use a BETWEEN for the date checks. It assumes that you have an identity field (RecordID) and that you also set the date that the record is added (DateEntered). Also @RequiredDate is a parameter to the stored procedure that this will be part of. There is not enough information to answer your C# question.

Categories : Sql Server

Starting point for Java client/server remote application
Java RMI technology may be what you need, here's where to start http://docs.oracle.com/javase/6/docs/technotes/guides/rmi/hello/hello-world.html. It can be used when both client and server are in Java.

Categories : Java

uninitialized constant Resque::Helpers when starting rails server
I dont think resque_scheduler is compatible with resque -"~> 2.0.0.pre.1" because the Helper module no longer exists in resque -"~> 2.0.0.pre.1" Check here latest and 1.x-stable also see over here Try using 1.x-stable branch Hope this help

Categories : Ruby On Rails

How to resolve issue starting Ruby on Rails server on Cloud9 ide?
You're running $ rails s -p $PORT -b $IP server when it should just be $ rails s -p $PORT -b $IP You probably added an extraneous server because you're used to running rails server, but rails s is just a shorthand for the former. It looks like the extra argument to rails is causing it to look for a file named server in rack/handler, and when it doesn't find a file it throws an error.

Categories : Ruby On Rails

How do I fix the Implicit textOnly message that appears when starting an Express server?
This issue and this pull request discuss the message in detail. Basically you will soon have to tell Jade explicitly that a script is text only. The current method of: script var a = 2; is deprecated. It will be replaced with: script. var a = 2; So to fix this message you need to explicitly show that the block is text by adding a dot after script or style As stated here this is being removed to make Jade easier to learn and to permit the use of Jade code blocks in the block. As I mentioned above, this applies to implicit style as well.

Categories : Node Js

Jade-Handlebars package preventing Meteor server from starting
http://stackoverflow.com/a/17007054/1408362 I found a partial answer to my own question. Seeing as the jade-handlebars package was last updated 7 months ago(at this time), it was using the basic "require()" method in its package.js file, when newer versions of meteor(0.6.4 at this time) want you to use Npm.require() see the relevant stackoverflow post I am linking. Now the issue that I encounter is this No dependency info in bundle. Filesystem monitoring disabled. => Errors prevented startup: Exception while bundling application: Error: ELOOP, too many symbolic links encountered '/home/ewillis1/myproject/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebar s/packages/jade-handlebars/packages/jade-handlebars/packages/jade-handlebars/packa

Categories : Meteor

How to regain control of the command prompt after starting a Rails server on Windows
Maybe this : start rails server Your question has also been investigated on SuperUser and ServerFault, with no clear cut answer as far as I can tell. The start command seems to be the closest thing, if the scenario is that you're hacking away at the command prompt and you need to start something up and have it out of your way.

Categories : Ruby On Rails

Rails server not starting with web sockets and redis options in rake task.
Hey thanks for the question, I personally couldn't get a rake task of mine to post to a websocket channel I had open on my rails server. Your synchronize command helped (along with starting a Redis server locally). Your problem through - seems like you're pointing to 3000. Is that your rails server or the Redis instance? If you're running it locally, I'd omit that line.

Categories : Ruby On Rails

starting postgres server: creates 6 instances of postgres and stalls
LOG: database system is ready to accept connections LOG: autovacuum launcher started Means that server successfully started and ready to accept connections. As for 6 instances - yes, they have different purposes and roles in postgres server.

Categories : Postgresql

Get starting date of week(configurable starting day of week)
From the java calendar API http://docs.oracle.com/javase/6/docs/api/java/util/Calendar.html#getFirstDayOfWeek() public int getFirstDayOfWeek() Gets what the first day of the week is; e.g., SUNDAY in the U.S., MONDAY in France. Returns: the first day of the week. See Also:

Categories : Java

SQL Server linked server error locating server in sql server 2005
http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/ i think this will help you...

Categories : Mysql

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

com.microsoft.sqlserver.jdbc.SQLServerException: The server version is not supported. The target server must be SQL Server 2000 or later
Try to update your driver to Version 4. Version 3.0 is very old. Alternatively you can use jTDS JDBC Driver. This is a third-party driver but supports much more versions of Microsoft SQLServer.

Categories : Java

how to export or import sql server database from sql server to mysql server through network
Try to use this script, which allows you to import data. You must specify the table name and run the generated code on your MySQL server. DDL: CREATE TABLE Labour.Employee ( EmployeeID INT IDENTITY (1, 1) PRIMARY KEY NOT NULL , IsMainWorkPlace BIT NOT NULL , TabelNumber VARCHAR(6) NULL , PersonID INT NOT NULL , DepartmentUID UNIQUEIDENTIFIER NOT NULL , DateIn DATETIME NOT NULL , DateOut DATETIME NULL , PositionID INT NULL , DatePension DATETIME NULL , IsLabourUnionMember BIT NOT NULL , FiringReasonID INT NULL ) Query: DECLARE @Table NVARCHAR(50) , @Schema NVARCHAR(50) , @ObjectID INT , @IsImportIdentity BIT = 1 , @IsCreateTable BIT = 1 DECLARE [tables] CURSOR READ_ONLY FAST_FORWARD LOCAL FOR SELECT t.name

Categories : Mysql

migrating multiple linked server from one server to another on sql server 2008 R2
If you're dealing with linked servers that have specific users specified with password then I don't think you'll be able to preserve that password information. Since linked servers are at the server level that information wouldn't be in any db backup. But, you could run queries like the one below to get the list of linked servers and check which ones use pass-through credentials. For the ones that do, just create new linked server definitions in the new database (you can easily get this SQL by right-clicking on the linked server in SSMS and generating the script). For the ones that don't, you can create the linked server via TSQL but you'll have to give them new credentials. SELECT serv.NAME, serv.product, serv.provider, serv.data_source, serv.catalog, prin.name,

Categories : SQL

Insert data from a server to another server No linked sql server 2008
This may be a controversial suggestion, but consider using MS Access as an intermediary. Access will let you link both tables, and write a query to copy from one to the other. It certainly won't be fast, and you may have timeout issues you'll have to address, but you'll get your automatic column-mapping, and if you have MS Office then you'll already have it. I'm NOT suggesting you download all your data to your PC, but I am suggesting that you try linking both tables into an Access database and copying data from one to the other. If your target database doesn't have the target tables (though it sounds like it does) you'd have to create them via scripting first, but Access does an adequate job copying data from place to place. I call it "the poor man's SSIS". It has the advantag

Categories : SQL

gnu less -N starting with a different line?
it would be a trivial task for awk. awk '{s=NR<3?"-":++i;print s,$0}' file in the above example, the line number was added from the 3rd line (the 3 in awk code) e.g. kent$ seq 7|awk '{s=NR<3?"-":++i;print s,$0}' - 1 - 2 1 3 2 4 3 5 4 6 5 7 you can of course pipe the output to less to gain less features. it looks like: awk '{s=NR<3?"-":++i;print s,$0}' file|less

Categories : Bash

Starting a Fragment without UI
The method add(Fragment, String) in the type FragmentTransaction is not applicable for the arguments (Fragment, String). The error means that type mismatch: In your case fragtrans refers to the native Fragment support while workerfragment to Fragment from the support package. Check you import. You are using mixed imports for fragment from the support package and the native one. Instead of android.app.FragmentManager fm= getFragmentManager(); you should use FragmentManager fm = getSupportFragmentManager();

Categories : Android

Issue starting cmd.exe twice in a row
So, basically, bat is not so great :-( I was able to repro this from java, but I also found that this script: @echo off echo STOP echo STOP >> E: mpjavalogfile.txt C:cygwininsleep.exe 1 echo STOP1 >> E: mpjavalogfile.txt C:cygwininsleep.exe 1 echo STOP2 >> E: mpjavalogfile.txt When run twice like this: start test.bat && start test.bat Will fail with one or more messages like: The process cannot access the file because it is being used by another process. The reason is that " >> " redirection opens the file for Read/Write access but only FILE_SHARE_READ sharing. If two different programs attempt to open the file this way, one of them fails. So, you cannot have two different batch files running at the same time and logging to the same file

Categories : Java

How to find the first non zero bit starting from msb
You can iterate for each byte until you find the first that is != 0. For each byte that is equals to zero, increment a counter by 8. Then with that byte, do a shift right operation (>> 1) until that value is equal to zero. In each shift, increment the previous counter by 1.

Categories : C

Starting a new activity
Try handling the NFC intents in the TabActivity instead. Better yet (from Android UI design perspective) would be to redesign the app somewhat and use Fragments in a ViewPager within a single Activity (with an ActionBar). Then you never run into this problem.

Categories : Android

starting with Tumblr API
Here's the page explaining some subtleties of QtQuick Javascript's implementation: Integrating Javascript You should especially read the sections: Stateless JavaScript libraries Importing One JavaScript File From Another I don't know the internals of the tumblr API or require.js, but if those use browser-specific stuff, they won't work with the Qml engine. You'll then have some solutions: use the python tumblr api + pyqt (doesn't support QtQuick2 yet, but this should come with the next pyqt5 version) or the ruby version (qt4 only) deal with tumblr's api in c++ (but I don't think they provide a convenient api?) use tumblr's rest api from qml/javascript "by-hand" (using XmlHttpRequest and JSON.parse() from the global qml object)

Categories : Javascript

Web API starting process
This is very strange because Web Driver don't requires you to dynamically alter the configuration file. I suppose you are trying to do everything by yourself : do not reinvent the wheel because all this stuff is already done by Selenium Support Classes. In order to pilot WebDriver in Web Api : Create/Add a Web Api Project Add a reference to the Nuget package Selenium WebDriver Support Classes Add the Web Driver code to your actions A very basic way to get the title of http://stackoverflow.com/ could be : using OpenQA.Selenium; using OpenQA.Selenium.PhantomJS; ... public string Get() { // c:phantomjs contains phantomjs.exe // if blank, Web Driver will download the latest version IWebDriver driver = new PhantomJSDriver(@"c:phantomjs"); driver.Navigate().GoToUrl("http:

Categories : C#

Timer not starting in vb.net
You are creating a timer here Dim mytimer As New System.Timers.Timer but you only assign a handler to the one you create inside the Refresh routine. Would have expected Dim mytimer As New System.Timers.Timer(20000) AddHandler mytimer.Elapsed, AddressOf OnTimedEvent then Private Shared Sub OnTimedEvent(source As Object, e As ElapsedEventArgs) Console.WriteLine(&quot;The Elapsed event was raised at {0}, e.SignalTime) Refresh() End Sub and something like Sub refresh() myTimer.Enabled = False // refresh the doings myTimer.Enabled = True End sub Excuse the lack of VBness, I'm a C# boy.

Categories : Vb.Net



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