w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Node.js console gets closed immediately after i execute the program from Visual Studio 2012 in Windows 8
Instead of directly executing node app.js from Visual Studio, you could instead call a batch file: wait.bat app.js Which inside of wait.bat it simply: node %1 pause press [enter] or, you could do this on one line, or wrap it in a module or a function: require('readline') .createInterface(process.stdin, process.stdout) .question("Press [Enter] to exit...", function(){ process.exit(); }); It's using an currently marked as "unstable" module of Node to read line input from stdin. It ignores the input though and then closes the process using the exit function.

Categories : Javascript

Can the Network Panel in Chrome Developer Tools Log When Closed?
No, this is not possible directly. You have to have DevTools open for it to log requests. There is a work-around though: This is similar to https://code.google.com/p/chromium/issues/detail?id=178918 - use remote debugging locally (https://developers.google.com/chrome-developer-tools/docs/debugger-protocol#remote).

Categories : Google Chrome

Robotium for Android - solo.searchText () not working
I'm not sure, what string you are fetching. Try to log it: Log.d("Debug", "String is: " + string); you should rather call, here may be another issue related to package as activity may be in another package than main package of application: String string = solo.getString(act.getResources().getIdentifier(act.getPackageName()+":string/provisioning_wizard_title_2"), null, null)); You can also get all visible texts, to make sure, what is on the screen: for(TextView textView : solo.getCurrentViews(TextView.class)) { Log.d("DEBUG", "Text on the screen: " + textView.getText().toString()); }

Categories : Android

Android Studio on Windows 8 64-bit can't find JVD
What you have installed seems to be 32 bit version as it is getting Installed in "Program Files (x86)",Download and install 64bit JDK and that should automatically get installed in "Program Files" folder and not in "Program Files (x86)". Download 64bit installer of JDK This might solve the problem.

Categories : Java

Cannot launch AVD manager in windows 8 using Android Studio
Download the jdk from the below link ... http://www.oracle.com/technetwork/java/javase/downloads/index.html then after the installing the jdk. MyComputer-->Properties--->AdvancedSettings--->EnvironmentVariables Right Click on the MyComputer icon Then select properties then a windows opens ... In that windows see the left pane .. Click Advanced Settings then again a windows opens in that ... see at the bottom . u can notice the environment variables Click the environment variables Again a windows opens ... Then Select the system variables click new button ... then a pop up window opens ... Set Varible Name : JAVA Set Variable Value: C:Program Files (x86)Javajdk1.6.0_33in(its my path)... same way put your path the save it ... Then open the android studio it will o

Categories : Misc

Cannot install Android Studio under Windows 8 64bit
I do not know why, but installing "Java for Chrome" (.exe) made everything work. This is awkward as I did have Java (same version 1.7.u25) installed and used before with all the environment variables set.

Categories : Android

Android Studio for Windows is not installing and updating packages
You can check the "log window" to get more information about the problem. There is a icon in the bottom left of the SDK Manager to access to the log. Anyway, the most usual problem is that you probably are not running Android Studio as administrator so it can't create new folders. Try to run Android Studio as administrator and it should work.

Categories : Android

Android studio is not starting in windows 8, jdk installed and environmental variable set
Have you set your enviroment variable correct? If not add in Control panel -> System -> Advance system settings -> Environment variable: JAVA_HOME (value = c:program FilesJavajdk1.7.0_21)) Further more, have you looked at these topics? Problems with Android Studio are discussed detailed here and most are caused by an incorrect enviroment variable.

Categories : Android

"WSO2" - Developer Studio Expression not editable
This has been discussed before [1] & [2]. To get rid from the editor hangs up, increase the memory allocation settings defined in eclipse.ini file. Thanks -Thilini

Categories : Wso2

How to configure WSO2 Governance Registry into Developer studio IDE?
Take a look here at this similar question - in particular read the comments. I don't think WSO2 developers import the whole source tree into eclipse, instead they only import the maven modules that they need to work on. Also, don't import the modules into eclipse using the maven eclipse plugin. Instead, run mvn eclipse:eclipse on the module and then import the module as a general project. Don't import as a maven project.

Categories : Wso2

Can't run my apps in Visual Studio 2012 after developer's license update
Try deleting bin and obj folders of your project as suggested here.

Categories : Visual Studio 2012

WSO2 developer studio edit properties of an assign activity
This is a known issue TOOLS-1626. Please use DevS 3.0.0 version. -Thilini

Categories : Wso2

How to renew a Safari Developer Certificate in windows
OK heres the process for Windows XP / Windows 7, if you need to renew your Safari Developers Certificate. 1) Create a text file named certreq.txt with the following contents [NewRequest] Subject="cn=Safari Developer,o=User" RequestType=pkcs10 KeyLength=2048 Exportable=TRUE 2) Open a command prompt, change to the directory where certreq.txt is and type the following command certreq -new certreq.txt cert.pem 3) Now login to the Safari Developers Member Center and then go to the request a certificate page, its currently at: https://developer.apple.com/account/safari/certificate/certificateRequest.action 4) Click the Continue Button 5) Click the Choose File button, locate the cert.pem file you generated earlier and upload it 6) They should then present you with a certificate file t

Categories : Windows

HTML5 App on Windows 8 which cannot be closed
This isn't possible on Windows 8; the soon to be released Windows 8.1 has a "Kiosk Mode", which seems to be what you are looking for. From Windows 8.1 kiosk mode locks systems to a single app: Generally speaking, kiosk mode is something that’s intended for use in corporate and shared computing settings — like public information terminals. It would, for example, make an excellent way to lock a point-of-sale terminal in to the “cash register” app and prevent would-be procrastinators from tabbing out and surfing the web.

Categories : HTML

When shutting down the application, not all windows are closed
Make sure that your thread(s) is/are stopped, before the application exits. You could do this by using Thread.Abort or wait for it using Thread.Join. But those are nasty ways to end or wait for a thread. The best way is to use a bool to stop it from running. Here is how to stop your thread the "Clean" way: http://stackoverflow.com/a/10664959/1661209

Categories : C#

Where I can find the source code for the android document on developer.android.com/guide?
Open Android SDK Manager. Select an Android version, like Android 4.3. Check sources for Android SDK and install. Then you can find source code located at %ANDROID_HOME%sdksourcesandroid-18. Is this what you want?

Categories : Android

How to create an app for Windows XP using Visual Studio Express 2012 for Windows 8
First of all choose .Net Framework 4.0 as a target framework. (This window appears after clicking create new project) You can either choose WPF application or Windows Forms Application. But WPF is recommended if you know how to work with .Xaml

Categories : C#

GUI client for SVN for Windows that integrates with Visual Web Developer 2010 & older Express editions
Try TortoiseSVN. It's the best standalone SVN client for Windows. Microsoft does not allow to use 3rd party extensions with Visual Studio Express / Visual Web Developer.

Categories : Svn

Windows Phone 8: Updating Live Tile data when app is closed
Does this mean I need to have separate instantiations of this class, one for the main application and the background agent? Yes. You must think of the background agent as a separate application. Though there is ways to share data between your application and your background agent, but the extra complexity isn't worth it in your case. Note that you can share the implementation of your class between the application and the background agent by putting it in a third project (and referencing this project from both the application and the agent).

Categories : Windows Phone 8

recommed folder structure for liferay maven project using liferay developer studio
To answer your questions You don't need plugins-sdk at all! I advice you to go for a multi module maven project, and I already see you using it. Obviously when you go for a multi-module project you have the sub-folders created and each module corresponds to a separate archetype and of course, it depends on what type of project you create. Here is the sample liferay-maven project structure I had.

Categories : Maven

How to implement a page using modal windows and auto refresh divs when they are closed?
I'm oversimplifying this because you're asking how to do it, not specific details. So keep in mind this is kind of a guideline, but you tweak and adjust to fit your needs. So, this is what I would do: Have the view where you want to display the list. Lets call it view.ctp, in there you'll have a table (or something more fancy) with the people added Example code view.ctp <table> <? foreach ($people as $id => $person) { echo '<tr><td>'.$person['name'].' '.$person['lastname'].'</td></tr>'; } ?> </table> Add a modal window. Let's use jquery ui's (you need to search and see which do you prefer). Example also in view.ctp <div id="dialog-form" title="Add something"> <? echo $this->Form->create(). $thi

Categories : Cakephp

Git branches on a solo project
Branches can be really useful, even on a solo project. They allow you to develop new features in isolation (if need be) while easily allowing you to throw out work, and/or keep it separated from mainline development (so you can start new features from a clean, stable portion of your codebase). (You can also prevent fast-forward merges by passing the --no-ff flag to git merge.)

Categories : GIT

How to move windows forms from Visual Studio 2010 to Visual Studio 2012
You should be able to just copy the Form files (TheForm.cs and TheForm.designer.cs) to the new project, then add them to the project. Note that you will also need to move any files that form depends upon (if any) before it will work properly.

Categories : Forms

Developer error android in app billing v3
https://code.google.com/p/marketbilling/issues/detail?id=123&sort=-id&colspec=ID%20Type%20Status%20Google%20Priority%20Milestone%20Owner%20Summary I just wasted a couple of days, because the sample code had a bug in it. Someone already posted an issue, and it got accepted. quoting: "It looks like the version of IabHelper.java distributed with ADT 22 has a problem when querying SKU details as it does not check the number of skus. If this number is over 20, the billing service returns a developer error (5). Splitting up the request in sets of no more than 20 items avoids it." I have only 15 in app billing items, but I already owned more than 5, so I went over the 20 limit(the sample code just adds the owned item list to the all item list), for which the code was working, so it had

Categories : Android

Google Play Android Developer API
Have you looked at https://developers.google.com/android-publisher/authorization. This contains all the details you should need. Basically, you login via your Google Account to the google api console, create a new project from the menu on the left and then on the list of api's on the right find the name of the api for the google play developer api and turn it on. You will then need to follow the instruction on the web page about you create a new client. Hope this helps.

Categories : Android

Beginner android developer issue
Assuming you already have the Emulator running follow these steps: Locate your adb.exe file in your Android SDK folder.In Windows environment normally your adb.exe is inside [Android-SDK-folder]/platform-tools/. In my case, the adb.exe is in C:android-junoandroid-sdkplatform-tools. Put it inside your [Android-SDK-folder]/platform-tools/ as bellow figure: Now run the adb.exe through the command prompt. In the command line, go inside the platform-tools folder. Execute command like: adb install Peribahasa.apk //use your apk name here Later, the apps you just install will be in the emulator.

Categories : Android

What should be the developer payload in android in-app billing v3 api?
Please check below answer, it may solved your problem: if you are using consumable item(managed item) then you can use random generated string step 1: before on create method declare this: private static final char[] symbols = new char[36]; static { for (int idx = 0; idx < 10; ++idx) symbols[idx] = (char) ('0' + idx); for (int idx = 10; idx < 36; ++idx) symbols[idx] = (char) ('a' + idx - 10); } step 2: set RandomString and SessionIdentifierGenerator class in your activity public class RandomString { /* * static { for (int idx = 0; idx < 10; ++idx) symbols[idx] = (char) * ('0' + idx); for (int idx = 10; idx <

Categories : Android

This Android SDK requires Android Developer Toolkit version 22.0.0 or above. Current version is 21.1.0.v201302060044-569685.
I had the same problem last week, I tried everything, but nothing helped me. Finally fixed it only by re-downloading ADT bundle whole again. Give a try before everything through https://dl-ssl.google.com/android/eclipse/ not http

Categories : Android

MySQL issues when setting up a VM with Vagrant/chef-solo on OS X
Does it make any difference if you add :grant to your actions in the mysql_database_user block? action [:create, :grant] I found this tutorial quite helpful with provisioning mysql with a user and privileges, although I am still a bit confused with the directory structure of chef-solo. http://misheska.com/blog/2013/06/23/getting-started-writing-chef-cookbooks-the-berkshelf-way-part2/

Categories : Mysql

Cloudfoundry Install with Vagrant: chef Solo ERROR
That is a bug in Chef 10.24.4 and 11.4.4 with Ruby 1.8: CHEF-4123. Fix is committed but not released yet. You need to downgrade the Chef version, wait for the new releases or upgrade Ruby. The recommended way to install Chef is using the "omnibus installer" that has an embedded Ruby. For Vagrant there is an excellent vagrant-omnibus plugin.

Categories : Ruby

RVM problems `bundle install` in a Vagrant/Chef-solo vm
It's been a while since I last tried to use this cookbook, but here's what I remember... The global_gems array puts those gems in a gemset called global. In your case, they would be placed in ruby 2.0.0@global. If you set that as your default_ruby you might fix your problem with the least effort (disclaimer -- I haven't tested it, but it should work). Another option would be to leverage the gems attribute, setting it to something like: node['rvm']['gems'] = { '2.0.0' => [ { name: 'bundler' }, { name: 'rake' } ] } This latter option should install the gems without a gemset, thus letting them be found in your current default_ruby. Update: Your problem must be that the bundle install commands are running outside of RVM, thus using Chef's embedded Ruby. Try "sourcing" th

Categories : Ruby On Rails

Chef Solo - Role Data in Ruby DSL or JSON?
I prefer to use JSON format wherever possible for one simple reason - it's easy to parse and validate with a script. Here are three things that you can do if all your Chef data is in JSON format: Easily perform a syntax check in a git pre-commit hook, something that's much harder to do when the file is in the Ruby DSL format. Validate the keys and values in a data bag entry. This can be useful to check that you are not going to deploy invalid or nonsensical data bag entries to production. Compare (with a little extra work - key ordering in a dictionary needs to be taken into account) the value of an object on a server with what's in git. The --format json argument is useful here.

Categories : Ruby

solo.clickInlist(int) not working for custom listview in Robotium
There are two important things to note about the clickInList(int) method that aren't readily apparent: First, the list items are 1-indexed, so to click the first item of the list, use clickInList(1) not clickInList(0). Second, the clicking is relative to the visible items on the screen, so clickInList(1) will click the first visible item on the list, not the first item overall. As for the dynamic handling of a Dialog, arbitrary pop-ups aren't really what Robotium was meant to handle. It's supposed to test user interaction with the app under known, controlled, repeatable conditions. If something unexpected happens in the middle of the test, such as losing connection, it should be considered a failure; There's a good chance your test wouldn't be able to run to completion anyway. As a ha

Categories : Android

Issue with Fragment on Android Developer Page
You need to use getSupportFragmentManager instead of getFragmentManager, because you are using support fragments. The R.id.a_item references the id of the layout in your layout file. Instead of android:id="@+id/fragment1", make it android:id="@+id/a_item"

Categories : Android

Android developer options "show Touches"
You can make use of the following to get the touch value: @Override public boolean onTouch(View v, MotionEvent event) { int action = event.getAction(); switch(action) { case MotionEvent.ACTION_DOWN: int x = (int)event.getX(); int y = (int)event.getY(); break; case MotionEvent.ACTION_UP: int x1 = (int)event.getX(); int y1 = (int)event.getY(); break; case MotionEvent.ACTION_MOVE: x = (int) event.getX(); y = (int)event.getY(); default: } break; } return true; }

Categories : Android

How to loadLibrary from another package signed by the same developer in Android?
Yes, it is possible, even if the two apps are not signed by the same developer. Essentially, the native libs are unpacked by installer into /data/data/<app.package>/lib or possibly elsewhere for Android version higher than 2.2, but with full read and execute permissions. You should use nativeLibraryDir method on 2.3 and higher to find the exact path.

Categories : Android

How do I import the samples from the developer.android website?
Unzip your downloaded sample project to somewhere in your PC. Create a new Android Application project . Replace your newly create android project with your download sample project -> src->main->AndroidManifest.xml file Copy the package folder in src->main->java (eg. com) and paste it in your newly created projects src folder Copy the package folder in src->main->res(eg. com) and paste it in your newly created projects res folder Give a refresh in eclipse and Build your project .

Categories : Android

consumptionState from Google Play Android Developer API
Unable to add a comment, but I agree. The values I get back from the Purchase Status API do seem to be the opposite way to the API documentation. I have confirmed that my unmanaged item purchases are consumed by my app code where appropriate, and each shows a consumptionState code of 1 via the API call on my server. The one managed item I have, which is not consumed by the app shows a consumptionState code of 0. I've submitted a bug report on the API documentation page, and will update here if I get any response. https://developers.google.com/android-publisher/v1_1/inapppurchases#resource

Categories : Android

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

Chef-solo and vagrant to automatically run an MySql script after install?
For this, I would recommend using Chef since you are already in the Chef/Vagrant env. No need to create a shell script and trigger it from within Chef - it would go against the intended flow of Chef/Vagrant. You can do something along the lines of (taken and simplified from the MySQL cookbook by OpsCode in the server.rb recipe): execute "mysql-install-privileges" do command "mysql -u root -p#{node['mysql']['server_root_password']} < /vagrant/command.sql" end You can determine on your own how you want to store the mysql path, username and password. The general idea is that you define your MySQL commands in a .sql file (saved in your templates or file directory within your cookbook) and then run it with plain MySQL commands. Hope that gets you on the right path.

Categories : Mysql



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