w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Why are the Ember Data REST Adapter and LS Adapter structured differently? One returns, one doesn't
Rest Adapter didn't have that change too, until this PR. I think that LS Adapter doesn't return the promisse because it outdated, at the moment the last update in this file was 7 months ago. I recommend you to return the promisse to have the advanage of use. App.User.find().then( ... )

Categories : Ember Js

How to put another adapter inside my custom adapter (info from one object)
I used ((Activity)context). It is working now! I still don't know what it really means or does. But I'm happy that it is working for now. I'm still wondering if this is the right way to do it.

Categories : Android

Will deploying Rails using Torquebox on Openshift present any advantages over deploying Rails directly?
Yes, TorqueBox is much faster than the original Ruby. Not only the interpreter (JRuby) is faster, simply because it runs on JVM and uses JIT and JVM's fine-tuned garbage collector, but also it uses additional features available in JVM, like parallel threading etc. More, with TorqueBox, you have JBoss AS services at hand when you decide to use them, which I guess you will, if your app grows. Reference: http://torquebox.org/news/2011/10/06/torquebox-2x-performance/

Categories : Ruby On Rails

I am calling custom category adapter.How to set background for full screen in android when using custom adapter
Actually i have extended ListActivity class and i was setting background image of adapter.I figured out the issue.I have to add following code in onCreate Method getListView().setBackgroundResource(R.drawable.back);

Categories : Android

How to make the Ember Local Storage Adapter (LSAdapter) work with the Ember REST Adapter?
After reading Ember data's DS.Store comments, it looks like it might be possible to use 2 adapters at once: You can retrieve models from the store in several ways. To retrieve a record for a specific id, use DS.Model's find() method: var person = App.Person.find(123); If your application has multiple DS.Store instances (an unusual case), you can specify which store should be used: var person = store.find(App.Person, 123); I will update this answer if I try it out and get it working. Update 1: Check out the code in UPDATED for Additional question where both FixtureAdapter and RestAdapter are called.

Categories : Ember Js

Android ListView set two different adapter. ListView is not updated to newly set adapter until I scroll it
The UI in Android is efficient and will only update when it NEEDS to. In the case of your list the UI only updates when you scroll it because it needs to fetch more items for the list. To force an update you need to call invalidate() on your ListView.

Categories : Android

Rake db:migrate error Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter`
It looks like you might be using sqlite in development. Can you try this in your gemfile instead of what you have? group :development, :test do gem 'sqlite3' gem "unicorn", "~> 4.6.2" end Then usual bundle install and run migration again.

Categories : Ruby On Rails

Please install the postgresql adapter: `gem install activerecord-postgresql-adapter`
First of all best practice is to use same DB for all environments. Could you please run RAILS_ENV=production bundle exec gem install pg on server? The problem seems to be in absence of pg gem in assets group when running RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile

Categories : Ruby On Rails

Deploying ASP.Net MVC 4 App on IIS 7
It seems like routing handler is not being loaded... Are you sure the application pool is set to integrated? If yes try to add this line in your web.config: <modules runAllManagedModulesForAllRequests="true"></modules> Please, make sure you have also these handlers registered in your application: <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%Microsoft.NETFrameworkv4.0.30319aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /> <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%Microsoft.NETFramewor

Categories : Asp Net

deploying WCF to the WAS
I did find this set of instructions for getting this going, everything else just made too many assumptions where this one provided a clear detailed instruction set for actually getting the service going in the WAS. Extend Your WCF Services Beyond HTTP With WAS

Categories : C#

Deploying spree on AWS
You'll need to ensure that git is installed on the server. Try creating a file called: .ebextensions/YOUR_APPLICATION_NAME.config which contains packages: yum: git: [] This will install git with yum as part of your deployment. Another option is to use spree from a gem instead of sourcing it from git. For more information, check out this article on the AWS Blog about deploying Ruby Applications to Elastic Beanstalk.

Categories : Github

Deploying a Windows Web App?
.frm, .frx, .bas, and especially .vbp indicate that these are really old-school vb6-era (circa 1999) forms. You'd need visual basic/visual studio 6 to build the project. I'd run. Run far, and run fast. Especially the .frm/.frx pair. To see this in a web app, they're either just plain lying that this is a web app, and not a vb6 forms app, or (almost worse) are embedding vb6 forms in a page as activeX controls, which would limit you to Internet Explorer only, and even then recent versions require you to jump through extra hoops before they will let you do this. The best you can hope for is the vb6 forms are just an installer app. Look for a readme file that has install instructions.

Categories : Sql Server

Deploying a .NET C# Console App
Notice the error: The application requires that assembly office Version 12.0.0.0 be installed in the Global Assembly Cache (GAC) first. Refer to this answer and this MSDN question which contains the answer I have quoted below: We solved it by going into the Applications Files dialog under the publish tab of the Project's properties and changing the office.dll assembly to Include. It had previously been set to prerequisite (auto). --Dave3182

Categories : C#

deploying ASP.NET web applications
The quickest way would be to use the publish feature to publish the web app to a directory on your local machine. Change connection strings, etc, then hand off to your deployment team as a ZIP file. Make sure to also give them instructions on configuring the application pool/directory in IIS, as well.

Categories : C#

Deploying a .net 4.0 application
If this is not possible, is there a way to execute the .net 4.0 app in a .net 3.5 environment? No. Basically you really need to get the environments aligned. You say your application cannot be downgraded to .NET 3.5 - presumably that's because you're using something which is specific to .NET 4.0. It stands to reason that you can't then execute that in an environment which doesn't have .NET 4.0. You need to decide which is more painful - changing your app to target .NET 3.5, or asking your users to install .NET 4.0.

Categories : C#

deploying asp.net mvc4 app with EF 5.0
Only two: .NET 4.0 and optionally MVC 4. You can avoid installing MVC 4 if you include binaries in your deployment package. EF5 you standard .NET 4.0 and for sure you have reference to it, so all needed binaries will be in deployment package

Categories : Asp Net Mvc

PDF/DOC/XLS Documents won't open after deploying vb.net web app
The stack trace was telling you that it did not understand the path you were providing to the StartWithShellExecute method. Yes, the issue is most likely that you do not have any software on the server that can handle the PDF/DOC/XLS MIME types.

Categories : Vb.Net

Deploying android applications Qt 5.1
I was successfully able to deploy a simple QT application to my android device. From what I understand ,Qt creator first tries to deploy the app to a device if it finds one. If no device is found, it tries to launch an AVD and deploys the application to the emulator. "Please wait, searching for a suitable device for target:android-17." Try targeting a lower api level by changing it in Projects->Selected Toolkit -> Run -> Package Configuartion -> Manifest And also , make sure that the Ant location points to InstallLocationantinant.bat

Categories : Android

Error deploying JSF app in Glassfish
Unable to parse document 'jar:file:/opt/glassfish3/glassfish/domains/domain1/applications/[name-of-the-application]/WEB-INF/lib/javax.faces.jar!/META-INF/mojarra_ext.taglib.xml The path to the taglib file suggests that you shipped JSF 2.2 along with the webapp inside its /WEB-INF/lib instead of upgrading GlassFish itself. As GlassFish 3 itself ships with a JSF 2.1 implementation out the box, you need to instruct it to not load it in order to avoid version conflicts. You didn't state anywhere that you were doing that, so I guess that this is the whole cause of your problem. Glassfish itself already ships with JSF bundled which get by default classloading precedence over the one bundled in the webapp. You basically need to tell Glassfish to use the webapp bundled JSF instead. In order

Categories : JSF

Deploying a TCP server to Heroku
Heroku doesn't support a generic TCP server but you should be able to get the functionality you want with socket.io. You need to put web in your Procfile. That's what lets Heroku bind an external connection to port 80 to the local port your web traffic will arrive you. You find that port by looking at the environment variable $PORT. More info, with examples, is here: https://devcenter.heroku.com/articles/nodejs

Categories : Node Js

Deploying to RVM-enviroment with Capistrano (RoR App)
change top part of your deploy.rb to: require "bundler/capistrano" require "rvm/capistrano" server "xxx.xx.xxx.xxx", :app, :web, :db, :primary => true set :rvm_ruby_string, :local before 'deploy:setup', 'rvm:install_rvm' # install RVM before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset #General settings

Categories : Ruby On Rails

Timeout when deploying to Heroku
It is possible to compile the binary on your machine, commit it to the Heroku-only repository and push that. Here is a script I used to deploy: #!/bin/sh -e cabal configure cabal build cd heroku # this is my Heroku-only repository git rm -r * cp ../dist/build/labyrinth-server/labyrinth-server . cp -r ../public/ . # this is the static files directory echo "web: ./labyrinth-server" > Procfile touch requirements.txt # pretend to be a Python app, otherwise Heroku doesn't know what to do git add * git commit -m "New version." git push cd - >/dev/null Note: I switched to OpenShift later, and the OpenShift deploy script has a few enhancements. Another note: you should make sure you are building on a machine with compatible architecture and link against an existing libc version. You can

Categories : Haskell

Deploying Django on nginx
Firstly, if you chose to use nginx, then use gunicorn, its the best option out there, and if you so wish to use Apache, then you use mod_wsgi. This will show you how to use gunicorn. Just to tell you how well it serves, gunicorn is used by Instagram, because they claim that it gives them better performance. Setting up gunicorn is very simple and easy to do, and this tutorial here, gives you all the things necessary to make it happen very quickly. This is their website.

Categories : Django

getting following error while deploying using capistrano
In your deployment you are using a Ruby built with RVM. When you log into the box to manually install libv8, make sure you are using the same RVM based Ruby that you are using during deployment. Try this after logging in manually: $ rvm use ruby-1.9.3-p448 $ gem install libv8 -v '3.16.14.3' Make sure that your ruby is coming from rvm: $ which ruby /home/deployer/.rvm/rubies/ruby-1.9.3-p448/bin/ruby

Categories : Ruby On Rails

deploying artifacts to two different repository
You can specify two repositories in the distribution management section. One for the releases and one for the snapshots. Depending on your version number, the corresponding repository should be used for distribution. You can't configure this setting in settings.xml, you have to configure it in the pom.xml. See this link <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> ... <distributionManagement> <repository> <uniqueVersion>false</uniqueVersion> <id>corp1</id> <name>Corporate Repository</name> <url>scp://repo/maven2<

Categories : Maven

Sencha Architect -- Deploying
No actually! Sencha Architect is a tool that simplifies your work and makes you write less code. You can use Sencha CMD to package, deploy or simulate your Sencha application. Basically, this works on your command prompt/terminal and a few commands will acheive the desired result. Follow the below links which are helpful: http://docs.sencha.com/cmd/3.1.2/#!/guide/command_reference http://docs.sencha.com/cmd/3.1.2/#!/guide/native_packaging http://www.sencha.com/learn/sencha-touch-2-native-packaging-demos http://docs.sencha.com/cmd/3.1.2/#!/guide/command_app_touch Best Luck!

Categories : Android

deploying meteor on my own server
Which port are you using? It seems a proper export PATH=nnnn; is missing... or maybe you are not including the port number in your browser's address bar, like http://example.com:1234 for port 1234. I am in a similar adventure of yours, and I've just posted the results of my experience here! I didn't use meteor.sh nor meteoric.sh, but ended up following their path...

Categories : Meteor

How to do Database Execution while deploying War
Hoping you are using a servlet container. Use a ServletContextListener interface and plug this into the web.xml as a listener. public class MyClass implements ServletContextListener { .... Query LDAP .... Insert into DB } Note that no exceptions must be thrown to MyClass because ContextListener architecture is not expecting it to happen, and application wont startup.

Categories : Java

deploying Django - Dreamhost
This is how I do it, with Django 1.5, on DreamHost: A virtualenv dedicated to my project is in ~/virtualenv/myproject My Django project is in ~/projects/myproject, with setup: The database file is in the project root, named sqlite3.db STATIC_ROOT is set to os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', 'static'), that is, the static directory in the project root. When the static files are updated in the project, I have to run python manage.py collectstatic I have per-environment settings in ~/projects/myproject/myproject, named prod_settings.py, beta_settings.py, and so on. My site is in ~/sites/www.myproject.com, the layout inside: myproject -- symlink to the Django project sqlite3.db -- symlink to the database file in the Django project public/static -- symlink to

Categories : Django

Error when deploying ear in weblogic 11g
Namespace in following claims EE 5, but schema location and version refer to EE 6: <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" id="Application_ID" version="6"> WebLogic 11G is not Java EE 6 application server, it is implementation of Java EE 5. If application does not use concepts available only in Java EE 6, then version 5 should be used consistently, and deploying to WebLogic 11G is fine. On the other hand, if features available only in Java EE 6 (EJB 3.1 for example) are in use, version 6 and compatible container should be used. For ex

Categories : Misc

how to tell tomcat be verbose while deploying war
Set the application level logging to DEBUG and you should be getting all the logs about which bean getting initialized, which jar is being loaded and so on. It should be more than enough - at least it is in my case

Categories : Tomcat

Deploying apps to Heroku
Heorku only recognizes Node.js apps via a Node Packaged Modules (NPM) package.json file. It looks like the app you're trying to deploy doesn't use NPM. See: Getting Started with Node.js on Heroku: https://devcenter.heroku.com/articles/nodejs#declare-dependencies-with-npm NPM: https://npmjs.org/

Categories : Javascript

Eclipse not deploying my web app properly
Since it is a maven project . you might have converted maven project to dynamic web project I guess. Follow the steps 1)Go to project properties (right click at last click peoperties) 2)click/select Deployment assembly at the left side 3)the root(/) deploy path may be pointing to src/main/webapp , select this and click remove button 4)click on add button , select a directive type folder, select your WebContent folder Now try to clean and run your application on server. Solution 2 1) Actually you need to copy/put all your WebContent files and folder to src/main/webapp and restart your server. Note that the maven dynamic web project it always look in to src/main/webapp by default. Hope it helps

Categories : Eclipse

deploying rails app with no migrations
Actually, there are some rake tasks to do the work: rake db:schema:dump # Create a db/schema.rb file that can be portably used against any DB supported by AR rake db:schema:load # Load a schema.rb file into the database You can run: heroku run rake db:schema:load.

Categories : Ruby On Rails

Deploying sample GWT app to Tomcat
The problem is with this step: I then took the war file, zipped it up and renamed it gwtproject.war Do not make the war file zip and rename to war, because that is a war file in a non war file :) war file has manifest, zip not. Just take the original war file ( without zipping) and deploy that one.

Categories : Java

Deploying meteor app to a webserver
Make your project locally Build your project locally, you could test it using meteor run or even meteor deploy xxx.meteor.com to see if its working Bundle your app Use meteor bundle deploy.tar.gz to make a file called deploy.tar.gz in your meteor directory containing your project Upload your file to your server This depends more on how your server is/what your platform is but you can use a tool to upload it for you (e.g Transmit on mac) Install node.js & fibers on your platform if you don't have it already This depends alot on your server platform. Have a look at http://nodejs.org/ for more detailed instructions Extract your bundle If on a *nix platform you could do the below in the directory where you uploaded your bundle (explanation): tar -xzvf bundle.tar.gz Enter the di

Categories : Mongodb

Deploying failed in AWS Elasticbeanstalk
Have you tried rebuilding the environment from the AWS Console? Are you doing anything less common like running your Beanstalk environment inside of a VPC?

Categories : Amazon

Qt deploying issue on other computer
You have three options: Compile Qt with static libraries and link you program with those static libraries. All dependencies will be included in the program binary. Ship Qt dynamic libraries that your program needs with your program. Ask the user to install Qt libraries with the same major version you used to compile your program. I'm not a Windows guys so I can't tell you Windows specifics, but these will do the job.

Categories : C++

AppHarbor not deploying web site
I ended up knocking the subscription down to 1 web worker and redeployed and it picked up and deployed ok. Bumping the subscription back to 2 workers (1 web, 1 background) brought both workers online.

Categories : Asp Net Mvc

VB - Deploying a reference file
If you want to do a Windows Installer deployment, then read Windows Installer Deployment Walkthroughs. If you want to do a ClickOnce deployment, then read ClickOnce Deployment in .NET Framework 2.0

Categories : Vb.Net



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