w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
RailsInstaller not completing install on OS X 10.6, not responding
I had trouble running the installer as well. It was not exactly the same issues you had. Running the installer from the terminal as root worked much better for me. The command would look something like this: sudo ./RailsInstaller-1.0.4-osx-10.7.app/Contents/MacOS/osx-intel --mode text If that does not work, you can get additional debugging diagnostics with the --debuglevel flag.

Categories : Ruby On Rails

Install Nginx Passenger Rails on Ubuntu Failed
Try following the advice in Debugging application startup problems on the Phusion Passenger wiki.

Categories : Ruby On Rails

Where is my nginx being configured? Changing nginx.conf still brings me to the 'Welcome to nginx' page
when you rewrited the nginx.conf in the folder of source code of nginx and installed it firstly, it will be copied to /usr/local/nginx/conf/nginx.conf (without specially modification of the configure in the folder of source code). But when you do this secondly, the nginx.conf in the folder of source code will be copied to /usr/local/nginx/conf/nginx.conf.defualt,and it usually don't work unless you use nginx -c /usr/local/nginx/conf/nginx.conf.defualt to assign its configure file evertime. There is a line NGINX_CONF_FILE="/usr/local/nginx/conf/nginx.conf" in your script above,which indicates the configure file clearly. To handle this, I suggest rewrite /usr/local/nginx/conf/nginx.conf (not the one in the folder of source code) instead.

Categories : Nginx

Finalizing a Cursor that has not been deactivated or closed or database not closed error
When you are done with the cursor, you need to call Cursor.close(). Leaving it not closed leads to memory leaks. E.g.: Cursor cursor = null; try { cursor = getContentResolver().query(myUri, MY_PROJECTION, null, null, null); if (cursor != null && cursor.moveToFirst()) { // moar code } } finally { if (cursor != null) { cursor.close(); } }

Categories : Android

Application gets closed when terminal is closed, how to stop this?
Use nohup to prevent child processes from being killed when the terminal closes. spawn nohup /usr/bin/firefox https://www.google.com/ I assume there's more to the script, since there's no need to use Expect just to start firefox.

Categories : Python

Restarting nginx: nginx: [alert] Unable to start the Phusion Passenger watchdog because its executable
Passenger takes what you set in the file nginx.conf by passenger_ruby, for example: passenger_root /home/dev/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.5; passenger_ruby /home/dev/.rvm/wrappers/ruby-1.9.3-p448/ruby;

Categories : Ruby

Can a server run Nginx for some sites and Apache Nginx Reverse Proxy for others?
server { server_name example.com; location / { # assuming apache is on port 81 for example proxy_pass http://127.0.0.1:81; # to make apache detect the host header proxy_set_header Host $host; } # if you have assets folders, you can let nginx serve them directly, # instead of passing them to apache location /images { # or /css or /js .. etc try_files $uri =404; } } Note: in the case of assets, sometimes some sites serve assets through rewrites, or even handled by the application it self, you can pass it to apache by adding that in the assets location as a fallback like this location /images { try_files $uri @apache; } location @apache { proxy_pass http://127.0.0.1:81; } In apache you create a virtual host <Virtua

Categories : Apache

How to draw closed spline 3D (closed curve 3d) through unordered list of points3D. How to arrange points3D?
It sounds like you're looking for the Concave Hull of the data set. Unfortunately, I don't know of any pre-canned algorithms, but the link references a paper that another developer was starting from, as well as some sample code, so maybe that'll help you in the right direction.

Categories : C#

The underlying connection was closed: The connection was closed unexpectedly wcf service
The first thing i will do is, instead of returning the full list of candidates i will return an empty list. If that works fine, then it is very clear that the size of the data is a problem. To modify the size play with your binding parameters.

Categories : Wcf

"The gem ... has been deleted. It was installed at" Error. Bundle install doesn't install gems. How to re-install gems?
This solved it for me: "gem install" and "bundle install" do not install gem dependencies after manual gem deletion. How to inform Rubygems that gems were deleted manually? (Delete the .gemspec files for the gems you have removed).

Categories : Misc

"The underlying connection was closed: The connection was closed unexpectedly"
The first request does not utilize a header that indicates the length of the result. It closes the connection when it finishes. The second request utilizes the length header, reads the designated number of bytes, then closes the connection gracefully. (under the client side control instead of server driven disconnection) -or- The url you sent caused an error on the server. Is there an error in the server log or event viewer?

Categories : C#

How to Install Matplotlib Basemap Module on Windows 7 with WinPython (or any Python stack install)?
I use windows. And my installation failed with official guidance, too. Finally I installed Basemap using the following method. Although I am not sure if it will go right for you, I just offer mine. First of all, you must have pip in your computer. (It is much easier to install, compared with Basemap and other things. And it can be used to install many useful packages.) Then go this great link: http://www.lfd.uci.edu/~gohlke/pythonlibs/ And download the file named "basemap‑1.0.8‑cp27‑none‑win_amd64.whl". Remove the .whl file to directory "C:Python27". (Maybe you installed your python in different disk, then change it accordingly.) Open terminal. (Use cmd or Git Bash or something else.) Use command: pip install basemap‑1.0.8‑cp27‑none‑win_amd64.whl

Categories : Python

Pip install python package into a specific directory other than the default install location
System: Ubuntu 12.04, Enthought Python Distribution (this is where I wanted to install a new python module) So the prefix_path environment variable didn't work for me and pip still kept installing it in the default location. But I used change default directory for pip install question as a guide. And one of the answers helped me achieve what I needed. pip install -d <path_to_my_directory> For the path I used: path_to_epd_directory/lib/python2.7/site-packages This puts the tar.gz file into the site-packages Then extract it using: tar -zxvf pymodule.tar.gz a directory named pymodule is created, cd into that module and type: python setup.py install and that should do the job.

Categories : Python

Error "invalid switch in RUBYOPT: -F (RuntimeError)" is shown while install gems by gem install mechanize
I found the reason. Just because there is a space in the installation path of Ruby RUBY EXECUTABLE: "C:/Program Files/Ruby200-x64/bin/ruby.exe" Re-install the Ruby to the path which doesn't contain space, this error will be fixed. And, of course, AutoRun should be removed from HKCUSoftwareMicrosoftCommand Processor and HKLMSoftwareMicrosoftCommand Processor. That's important!

Categories : Ruby

Component install error: JInstaller: :Install: File does not exist
check if you have added this code to your XML: <languages> <language tag="en-GB" client="site">language/en-GB/en-GB.com_helloworld.ini</language> <language tag="en-GB" client="site">language/en-GB/en-GB.com_helloworldt.sys.ini</language> </languages> and: <administration> ... <languages> <language tag="en-GB" client="site">language/en-GB/en-GB.com_helloworld.ini</language> <language tag="en-GB" client="site">language/en-GB/en-GB.com_helloworld.sys.ini</language> </languages> ... </administration> and check if the files are included in your installation ZIP - in right folder, e.g.: language/en-GB/ ... Be aware, the path to the file can be different for

Categories : PHP

How install ruby with rbenv install 1.9.3-p448 ubuntu 12.04 vagrant box?
Download the ruby using your browser from ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.bz2 and place it in ~/.rbenv/caches/ruby-1.9.3-p448.tar.bz2, then run rbenv install 1.9.3-p448 Explanation here

Categories : Ruby On Rails

When exporting .Apk in the android manifest its does not install on other phones, when getting from Bin folder it does install?
There is most likely a problem with the certificate. Try making a new certificate, keystore, and alias, then generate the .apk again. Make sure that no previous instance of the app is on the phone when you try to install this new version or the mismatch of signatures will cause the installation to fail. Also, was there a previous version of the app installed on their phones already? The signature mismatch may occur due to the use of both signed and unsigned(in reality the .apk is singed, but it is done automatically by the system) .apks

Categories : Android

C# Install - Change a custom folder location using install dialog
So PATHPROPERTY returns the custom folder location user has selected, If thats the case you have to set that property to "Property" attribute. Also make sure in the User Interface Editor you are getting the user input before installation starts. (You can move up and down the UI to required position)

Categories : C#

Install multiple packages on linux (like pip install -r requirements.txt)
Put the list of packages in a text file(say test.txt) with package names separated by spaces, like this - python ruby foo bar then you can just install with apt-get like this - sudo apt-get install $(cat test.txt)

Categories : Linux

rails heroku - how to install javascript dependences that needs 'npm install ...'
If you are deploying a Node app, declare it in your package.json, otherwise, specific it in your gemfile. https://devcenter.heroku.com/articles/getting-started-with-nodejs#declare-dependencies-with-npm

Categories : Ruby On Rails

Bundle install gets permission issues with global RVM install
This error doesn't necessarily need to be solved. Your bundle is installing properly, but it's not able to remove cached gems. It's a pretty harmless error unless you're running way short on hard drive space. I actually get this same error too. The problem is that my home directory is remotely mounted, so local root doesn't have permission to modify items there. Local root only has global write permissions on local directories. I imagine, based on what you describe, that you have the same issue. You could remove the files manually, or you could instruct rvm to install gems in a directory on the local machine.

Categories : Ruby On Rails

Why "bundle install" try to install outdated version of gems?
bundle install or in short bundle does not install the latest gem unless you have left out the version in your Gemfile. e.g. gem 'rails' But usually this is not the case, we specify versions to prevent application from "crashing" when some gems are updated and we unknowingly run bundle update, or for that matter move application to say test or production servers. Usually when adding a gem to Gemfile, we do: gem 'rails', '~> 3.2.7' Note the leading ~> in the version number. This says: use rails gem between versions 3.2.7 and less than 3.3.0. In order for your bundle command to grab rails 4.0, you need to change that line to read either one of the following: gem 'rails', '>= 3.2.7' or gem 'rails', '4.0.0' If you use gem 'rails', '>= 3.2.7' then your rails appl

Categories : Ruby On Rails

Go install always fails no install directory outside GOPATH
You are using go install on a directory outside the GOPATH folder. Set your GOBIN env variable, or move src folder inside GOPATH. GOPATH/ bin/ src/ go-statsd-client/ More info: GO BUILD Source code, line 296

Categories : Osx

Rails : gem install vs. gemfile&bnudle install
RubyGems is akin to a package manager for Ruby. It's a means by which you can install self-contained libraries to use in your applications. When you use gem install gemname you're installing that gem to the current machine that you're developing on. Bundler is a tool for managing the gems that your application depends on. When you create a Gemfile, you list the various gems and their versions that your application requires. This allows you to easily ensure that your application has the gems it needs when you deploy it to a new location - for example, when you push to Heroku, your Gemfile is used to determine all the dependencies of your application. Running bundle install will take the list of required gems in your gemfile and install them if they aren't installed already, just like

Categories : Ruby On Rails

Can't Install gem install mysql2 Ruby WINx64
I've downloaded the connector from http://dev.mysql.com/downloads/mirror.php?id=412857 and typed in the command prompt gem install mysql --platform=ruby -- --with-mysql-include=C:mysql-connector-c-6.1.0-winx64include --with-mysql-lib=C:mysql-connector-c-6.1.0-winx64lib

Categories : Mysql

Trying to install a Scitools Python pkg via 'pip install' but getting error
I had the same error but resolved it by manually installing all the Anaconda packages. NumPy SciPy Pandas PyTables h5py Matplotlib IPython Spyder Qt/PySide VTK Numexpr Astropy Cython LLVM LLVMpy Numba Scikit-learn Scikit-image NLTK NetworkX MayaVi

Categories : Python

SwingWorker not responding
comments @kleopatra that's a documentation bug, fixed in jdk7 at least :-), please which of JDKs those bugs are shown as from carousel ...., wait/notify is for thread, SwingWorker is Future, very bad implemented, means without notifiers, you put something to the tube and waiting on another side, seems like as nothing betweens one and second side of this tube, this reason why I tried to invoke Thread, Runnable, Executor(Runnable) from doInBackground, and to ignore publish, process, setProcess another funny issue is to get() and exception(s) all exception, not only 1st. from one and second side of this tube there are two ways how to use SwingWokrer try to avoid to use SwingWorker use doInBackground as bridge for workers thread, for output to use publish, process, setProcess, wait for

Categories : Java

Why isn't my html responding?
Well, first of all, your CSS selectors are wrong. They should be: body { background-color: lightblue; } #shadow { text-shadow: -5px -8px 2px lightgreen; font-size: 600%; } #left { float:left;width:30%; } #right { float:right;width:70%; } Secondly, you can't use the src attribute on a div tag. That makes no sense! If you're trying to include content into the page from somewhere else, you need to use an iframe tag. Regardless of my feelings towards using this, it should be more like: <html> <head> <title>Free Jokes!</title> <meta charset="utf-8"> <link href="final project.css" rel="stylesheet"> </head> <body> <h1 id="shadow">Welcome to Free Jokes!</h1> <iframe id="left" src="left.html"&g

Categories : HTML

setOnClickListener not responding
Try moving your listener outside of the AsyncTask. Make it a member variable and initialize it in onCreate() public class List extends ListActivity { ListView lv; ArrayList<HashMap<String, String>> questionList; ... @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //setContentView(R.layout.listview); questionList = new ArrayList<HashMap<String, String>>(); lv = getListView(); lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { String Subject = ((TextView) findViewById(R.id.Subject)).getText().toString(); Str

Categories : Android

setOnKeyListener not responding
You could try using a OnEditorActionListener instead: http://developer.android.com/reference/android/widget/TextView.html#setOnEditorActionListener(android.widget.TextView.OnEditorActionListener) You could set on the edittext in XML: android:imeOptions="actionDone" and then in code: myEditText.setOnEditorActionListener( new EditText.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { // your action here } } } )};

Categories : Android

Labels not responding to changes
I think you have two things you could improve: 1) Use IBOutletCollection instead of creating one for each of your interface controls; 2) Use a shared datasource and get notified when its values changes. Then you can make changes in your controls, inside their own ViewControllers, like that: self.dataStore addObserver:self forKeyPath:@"gameScore" options:0 context:nil]; //... - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { if ([keyPath isEqual:@"gameScore"]) { //update your IBOutletCollections... } } Reference https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/KeyValueObserving/Articles/KVOBasics.html#//apple_ref/

Categories : IOS

UITabBarController not responding
Your tabbar controller might be behind something else on the bottom of the screen. You can test it with code: [self.view bringSubviewToFront: tabctrl] If this fixes your problem, try to find which view is in front of your tabbar controller

Categories : IOS

'OnClickListener' is not responding
The OnTouchListener hooks the click-event. Handle the click event in it instead. Check out the answer on this question

Categories : Android

JBoss 7 stops responding
If your JBoss were not listening at 8080, you wouldn't receive a blank page, but a connection error from your browser. And if your application works fine without changing anything in deployment folder after restarting the application, then your application package is correct, but was not deployed/initialized correctly. Are you using a WAR file or exploded deployment? It may be the case, that your hot deployment does not work correctly. I would suggest to use the "restart application" button in eclipse (starts only the application again within JBoss, but not the JBoss itself) after a deploy - at least I experienced a similar behaviour when trying to hot-deploy from within eclipse.

Categories : Java

Clonned Select2 is not responding
Before you clone the row, you need to disable Select2 on the select element by calling its destroy method: destroy Reverts changes to DOM done by Select2. Any selection done via Select2 will be preserved. See http://ivaynberg.github.io/select2/index.html After you clone the row and insert its clone in the DOM, you need to enable select2 on both select elements (the original one and the new cloned one). Here's a JSFiddle that shows how it can be done: http://jsfiddle.net/ZzgTG/ Fiddle's code HTML <div id="contents"> <select id="sel" data-placeholder="-Select education level-"> <option></option> <option value="a">High School</option> <option value="b">Bachelor</option> <option value="c">

Categories : Javascript

UIScrollView not responding to delegates
I suggest that you subclass your UIScrollView object and add your touch events inside of it like below.. canvasObject.h #import <UIKit/UIKit.h> @interface canvasObject : UIScrollView @end canvasObject.m #import "canvasObject.h" @implementation canvasObject - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { self.canCancelContentTouches = false; } return self; } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *) event { //Do Stuff } - (BOOL)textViewShouldBeginEditing:(UITextView *)textView { return YES; } @end Then link your UIScrollView using the identity inspector in interface builder to the new scroll view subclass like below..

Categories : IOS

run not responding for android in eclipse
Using default settings in Eclipse, the Run button and hotkey CTRL + F11 will not work when the xml editor is in focus. It should work if you are working with the Java editor. To use the button or hotkey while editing xml, first click on the project in the package explorer.

Categories : Android

Observing NotifyPropertyChanged and responding to it
If you have a binding on the window, like say a checkbox: <Checkbox IsChecked="{Binding IsApproved}" /> You should get a notification when the property changes. That said, it is possible also to build Dependency Properties that allow for a callback when the property has been changed. This is slightly different from what your example seems to be indicating (but it's worth knowing, because its still closely related). Consider: public partial class InfoBox : UserControl { public static DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(String), typeof(InfoBox), new FrameworkPropertyMetadata(TextPropertyChanged)); public static void TextPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { InfoBox inf

Categories : C#

Responding to DELETE on UIKeyboardTypeDecimalPad
I figured it out... - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { if ([string length] == 0) return YES; NSCharacterSet *nonNumberSet = [[NSCharacterSet decimalDigitCharacterSet] invertedSet]; string = [[string componentsSeparatedByCharactersInSet:nonNumberSet] componentsJoinedByString:@""]; textField.text = [textField.text stringByReplacingCharactersInRange:range withString:string]; return NO; }

Categories : IOS

CSS Media Query not responding
I made it work: http://jsfiddle.net/F6Xbp/1/ Technique 1 @media screen and (max-width: 480px) { body { background-color:black; } } Technique 2 @media only screen and (max-width: 480px), only screen and (max-device-width: 480px) { body { background-color:black; } } For the difference between max-width and max-device-width, see this.

Categories : HTML



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