w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Some problems about Oncreate of Application and Activity in Android application
Use below link to know in detail about activity life cycle and manifest file. Android Activity Life Cycle - What are all these methods for? http://developer.android.com/guide/topics/manifest/manifest-intro.html

Categories : Android

Problems while deploying application in Tomcat 6.0.x
It looks like its a spring encounters some error during the war startup. Usually spring gets triggered as a context listener and it starts to initialize your beans and resolve dependencies between the beans. There is one certain bean that fails (Configurator I guess) and the whole spring initialization process fails because of that. You can debug the bean initialization code (probably constructor) and try to understand why does spring fail to initialize it properly. In any case I can't give you more information without a full stacktrace. Hope this helps

Categories : Misc

Handle application error problems
It seems like the connection string is not set up properly. The Handle Application error happens when there's no way to connect to the database. Open your web.config file and add the connection string there.

Categories : C#

problems Integrating an asp.net website into an asp.net mvc 4 application
Both Web Forms and MVC use forms authentication for security. What differs is the membership/roles providers used. Web forms traditionally used the default ASP.NET providers, whereas MVC now uses the SimpleMembership providers. Here are the setting in the web.config for configuring the SimpleMembership providers. <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> <authentication mode="Forms"> <forms loginUrl="~/Account/Login" timeout="2880" /> </authentication> <roleManager enabled="true" defaultProvider="SimpleRoleProvider"> <providers> <clear/> <add name="SimpleRoleProvider" type="WebMatrix.WebData.SimpleRoleProvider, WebMatrix.WebData"/> </providers> <

Categories : Asp Net

problems deploying node.js application
Ignore the WARN, as it's just a signal to package maintainers that they should add a Readme. Your real bug is that your app is missing Flip Player. Somehow, you've added Flip Player to your repository, or indicated it was required with adding it. If you just started your project, I would try blowing away your git repository and then creating a new one, this time being careful to leave Flip Player out.

Categories : Node Js

Better way to locate problems in a running Java application?
Rather than printing to System.out how about using tools like log4j. Log4J allows for logfile sizing, versioning and purging. see http://logging.apache.org/log4j/1.2/ You may also want to re-consider your server architecture.

Categories : Java

Problems with Twitter API 1.1 - application-only authentication response with PHP
Try outputting any potential cURL errors with curl_error($ch); after the curl_exec command. That might give you a clue about what's going wrong. Completely empty responses usually point to something going wrong with the cURL operation itself.

Categories : PHP

qt quick 2 application deploy to android got problems
QtQuick.Controls has been added in Qt 5.1 and is only available for the Desktop for the moment so you won't be able to use it on Android just yet. More info on the release info of Qt 5.1 Qt Quick Controls, is a full library of pre-built, re-usable and customizable UI controls on top of the declarative QML language that take Qt Quick development to a new level, especially on desktop platforms. Qt Quick Controls will soon go multi-platform and with Qt 5.1 we introduce the first batch, the controls for desktop platforms with native look-and-feel. Moreover, this module is not a list of QML files to deploy. It is written in C++ and you can find the source for it here

Categories : Qt

Simple spring application does not start (mapping problems)
Change this: <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> to this: <servlet-mapping> <servlet-name>dispatcher</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>

Categories : Spring

Problems deploying MVC 4 application to website already hosting classic ASP
Create a separated directory for your MVC4 application beside the web directory. After this create a new web application inside the IIS console and point the source directory to your new application directory (set the new application's AppPool to integrated). Everything should work fine.

Categories : Asp Net Mvc

Simple Client-Server Application - Socket problems
You have your blacklist mechanism not quite right. When you close a stream associated with the socket it will close the socket as well. So the server is closing any socket that it gets and then hands it on to a thread, which tries to use the socket and fails. // Blacklist verification while ((line = reader.readLine()) != null) { // blah blah blah }//End of Blacklist Verification //Sending feedback in case of approved client try { PrintStream checkBlack = new PrintStream(socket.getOutputStream(),true); checkBlack.println("***NBLACKLISTED***"); checkBlack.close(); // <== why are you closing the stream? } catch (SocketException e) { } try this instead // Blacklist verification while ((line = reader.readLine()) !=

Categories : Java

Problems in windows application with error handling and textbox display
When you append "+", the num2 is equal to value1+"+"+value2 or something so try to use this code private void button4_Click(object sender, EventArgs e) { double result; if (c == "+") { num2 = double.Parse(textBox1.Text.Split('+')[1]);//bad idea but will work result = num1 + num2; textBox1.Text = result.ToString(); } } also try private void button4_Click(object sender, EventArgs e) { double result; if (c == "+") { num2 = double.Parse(textBox1.Text.SubString(textBox1.Text.LastIndexOf('+')+1)); result = num1 + num2; textBox1.Text = result.ToString(); } } PS: try catch needed!

Categories : C#

Problems with Application identifier, XNA 4.0 for Windows Phone 8, Visual Studio 2012
Have your try to upgrade? And before you do that make sure that the Windows Phone 7.1 version project has a reference to System.Core.dll and mscorlib.dll before the upgrade. EDIT To upgrade/convert try this: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207030(v=vs.105).aspx

Categories : C#

angularJS problems on tomcat - application restarts on page/controller-change
I'm not familiar with Tomcat, but we've had the same issue with Apache. As Angular needs to do the routing of your app itself, you have to tell your web server to always deliver your root HTML page, e.g. index.html. After doing that, your app should work fine.

Categories : Node Js

Problems redirecting stdin to csh script for a simple C line reader application
stdin is buffered which could be the reason why some of the lines from the text file are missed out. You could possibly make stdin unbuffered using setvbuf(fd, NULL, _IONBF, 0) or equivalent before fgets call in your C program and address this issue. Alternatively, you can read character by character following the suit of line utility. Maybe something on the lines of : #include <stdio.h> #include <unistd.h> #include <stdlib.h> int main(void) { char c; while(read(STDIN_FILENO , &c, 1) > 0 && c != ' ') putchar(c); return EXIT_SUCCESS; } Hope this helps!

Categories : C

Trying to build excel jxls template for my application to render and generate forms but ran into problems
It looks like you need to close your rm.exec statement: FROM totals group by cpt}" var="totals"> should be FROM totals group by cpt")}" var="totals">

Categories : Java

How to spawn a new application from Gnome/GTK to a CLI application and read its output back into Gnome/GTK application?
top and tail -f are long-running programs (in fact, they never exit), so your strategy of reading the whole output and populating the the textbuffer with it obviously won't work. Instead, you need to create an IO channel that watches what's going on with the pipe, hook the channel into the event loop, and append it to the text buffer as new output arrives. The minimalistic change to your program would be to rewrite the prepare function like this: static gboolean data_ready(GIOChannel *channel, GIOCondition cond, gpointer data) { FILE *fp = data; char line[256]; if (fgets(line, sizeof line, fp)) { gtk_text_buffer_get_end_iter (buffer, &iter); gtk_text_buffer_insert (buffer, &iter, line, -1); return TRUE; } else { fclose(fp); re

Categories : C

Linking my own application and android map application (application default map on android device) its possible?
You can do this. You need to launch the Maps activity with an Intent that contains the info that Maps needs. Here is a link to another SO question that will help.

Categories : Android

Does files that are created in an android application remain in the phone or do they get deleted when the application closes?
Is my code wrong You are creating a new file each time. Try the version of openFileOutput() that takes the mode parameter, using MODE_APPEND. does the file gets emptied after application is closed? No, it does not.

Categories : Java

Call java function from javascript from blackberry 10 application converted from an android application
Have you added to your JS interface the @JavascriptInterface ? public class JSCommunicator { @JavascriptInterface public void foo() { //... } } From JavascriptInterface methods in WebViews must now be annotated Beginning in Android 4.2, you will now have to explicitly annotate public methods with @JavascriptInterface in order to make them accessible from hosted JavaScript. Note that this also only takes effect only if you have set your app's minSdkVersion or targetSdkVersion to 17 or higher. Add it and import android.webkit.JavascriptInterface

Categories : Java

Go Back to Parent application from child application on press of Home button in iPhone in C#
You cannot change the action of the home button. It will always return the user to the home screen, or reveal the multitasking bar, or show Siri, etc. You cannot use it to return to another app. The best you can do is put a button in the child app that will open the parent app.

Categories : C#

Connection to Oracle works through a console application and doesn't work through a web application - ORA-12154
Check your ORACLE_HOME (path) Check privilegies on the oracle home directory. Check your references in your web app(should be to Oracle.DataAccess and also System.Data).

Categories : C#

Why Application.Exit event works even if handler is async void in WPF application lifecycle?
It is theoretically possible for a framework to detect the use of async void and wait until the async void method returns. I describe the details in my article on SynchronizationContext. AFAIK, ASP.NET is the only built-in framework that will wait on async void handlers. WPF does not have any special treatment for async void methods. So the fact that your exit handler is completing is just coincidence. I suspect that the operations you await are either already complete or extremely fast, which allows your handler to complete synchronously. That said, I do not recommend the solution in the article you referenced. Instead, handle the window's Closing event, kick off whatever asynchronous saving you need to do, and cancel the close command (and also consider hiding the window immediately).

Categories : C#

How can I link to featured music section in iTunes store application from my iphone application?
You want to send the user to the following URL - this will open the music store to the Featured tab. https://itunes.apple.com/us/store FWIW - this link works on both the desktop and mobile.

Categories : Iphone

Extract Text from External Application's Textbox(Unicode) into C# Application, using user32.dll
your use of WN_GETTEXT is not correct read the doc : http://msdn.microsoft.com/en-us/library/windows/desktop/ms632627%28v=vs.85%29.aspx wParam The maximum number of characters to be copied, including the terminating null character. or use a correct function : http://www.pinvoke.net/default.aspx/user32/GetWindowText.html [DllImport("user32.dll", CharSet = CharSet.Auto)] static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, [Out] StringBuilder lParam); public static string GetWindowTextRaw(IntPtr hwnd) { // Allocate correct string length first int length = (int)SendMessage(hwnd, WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero); StringBuilder sb = new StringBuilder(length + 1); SendMessage(hwnd, WM_GETTEXT, (IntPtr)sb.Capacity, sb); return sb.ToString(

Categories : C#

Android Launch a Google Drive application from another application not uploaded file
I got the solution for executing following code after research: import android.support.v4.app.ShareCompat; Uri pdfUri = Uri.parse("file://sdcard/sdcard0/test.pdf"); Intent shareIntent = ShareCompat.IntentBuilder.from(this) .setText("Share PDF doc") .setType("application/pdf") .setStream(pdfUri ) .getIntent() .setPackage("com.google.android.apps.docs"); startActivity(shareIntent); Similarly we can use for other share intent and the corresponding package name of few intents are as below: com.dropbox.android = Dropbox com.android.bluetooth = Bluetooth com.android.email = Email com.

Categories : Android

Set IIS Website Application to use Application Pool identity for Anonymous authentication (via code)
Late reply (hopefully it will help someone) you can set it to use the application pool identity by simply setting the username and password blank for that part of the config e.g. ( excuse the C# syntax ) var config = _IIS.GetApplicationHostConfiguration(); var anonymousAuthenticationSection = config.GetSection( "system.webServer/security/authentication/anonymousAuthentication", name ); anonymousAuthenticationSection[ "enabled" ] = true; //use app pool user anonymousAuthenticationSection[ "userName" ] = ""; anonymousAuthenticationSection[ "password" ] = "";

Categories : Dotnet

How do I force Chrome Postman to return application/xml instead of application/octect-stream
Maybe your default response type is octect-stream Use the below http headers in POSTMAN Accept: application/xml Do the server validations based on Accept headers.

Categories : Java

what is meant by mps(media processing server) developer application. how to create these application
The MPS was / is a proprietary IVR system sold by Nortel, now supported by Avaya. The MPS supports applications written in a proprietary language known as "MPS Developer", "PeriProducer" or "Peripro" - the "Peri" name comes from the original manufacturer Periphonics. As far as I know, Avaya do not suggest using this tool to produce new IVR applications although lots of legacy systems are still around. The MPS supports VXML based applications so this would be the recommended route of development. The Avaya Orchestration Designer environment supports linking to legacy MPS applications but it is not something you would want to use unless you had existing applications which needed to be integrated.

Categories : Misc

Java swing application with simple help documentation based on eclipse (no RCP application)
my solution for now is to create the complete help system with Helpndoc and then simply generate the HTML documentation. The HTML document I will open from my swing GUI. I also tried the CHTML but to be honest I like the look (which can be nicely configured) int the browser more. Windows Help looks also too outdated to me. But thats just my personal opinion. Right now this is the right solution for me and my energy will go into the help itself. Thanks to everyone. Joe

Categories : Java

Need to convert a normal java application to maven application with datasource configuration
If you want to learn the basics of maven you can use this tutorial from Apache Maven: Maven in 5 minutes Here you have information about how to use a Jboss Datasource In JBoss the connection chain will be defined in a XML file in the server, so it doesn't affect to Maven. I hope this can help you. If you need something else add a comment.

Categories : Java

How to get opened application in windows(taskmanager ->application tab content) using java code
This is another aproach to parse the the process list from the command "ps -e": try { String line; Process p = Runtime.getRuntime().exec("ps -e"); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { System.out.println(line); //<-- Parse data here. } input.close(); } catch (Exception err) { err.printStackTrace(); } If you are using Windows, then you should change the line: "Process p = Runtime.getRun..." etc... (3rd line), for one that looks like this: Process p = Runtime.getRuntime().exec (System.getenv("windir") +"\system32\"+"tasklist.exe"); Its not possible to get the application, because this a

Categories : Java

how to call - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url from another class
Never call delegate methods directly. Application delegates are designed for using for particular events an application have. Also it'll be automatically invoked at particular scenarios. Never call them directly. It can cause unexpected behaviors in your application.

Categories : Iphone

AngularJS : "Deep" application vs. "wide" application? AKA many components/directives vs. many controllers
I vote for "deep" variant. Code reuse is a very important thing. You must first go to the template, figure out which component the radio directive is probably in Why? Just look at name of the directive and open corresponding file. Create predictable folder structure when you can find any necessary file by name of directive or controller or service. For example, your directive named acme-radio where acme is your vendor-prefix, so file should be in folder vendor/acme/directives/radio.js. Other directive is exclusive for some app and named acme-appName-radio - file should be in appName/directives/radio.js. It's just rough example.

Categories : Angularjs

Web application directories and data are lost during build and deploy of the application in tomcat
Once you republish to Tomcat all new files form your workspace/project folder will be copied to the webapps folder, as well as all files in your webapps folder, which do not exist in your workspace, will be removed. If you upload files into f.e. webapps/YourProjectName/uploads/* directly, they will be removed because they do not exist in your workspace. The best way is to separate your projects files (everything in your .war) from custom files like user data or uploads, by saving the the latter in a directory outside your webapps folder. Once you are republishing they are not going to be removed. Otherwise, if you need something like 'example images' in your app to show to your customers (lets say they do not change that often) you can copy them into your workspace, so they will be repub

Categories : Eclipse

WM 6.5 C# console application, capturing keystrokes while running in the background while another application has focus
Can you please post your exact method [System.Runtime.InteropServices.DllImport("coredll.dll")] public static extern short GetAsyncKeyState(int keyCode); if (GetAsyncKeyState(27) != 0) { //do something here cause the ESC key was pressed }

Categories : C#

Copy file from Application document directory and move to iPhone /Application folder- Objective C?
I believe you mean /Applications instead of /root/Applications since there is no such folder (at least not on my iOS 5 device). Since /Applications folder has is owned by root with 755 permissions. That means, non-root users can read/execute the files in that folder but not write to it. If you want to write to that folder, you need to run your app as root. The way to do this, somewhat ironically for you, is to have the app installed in /Applications folder. (I think) this is automatically done if you install the app through Cydia. So to sum up: You can't move app to /Applications if you installed it through App Store (or ad hoc distribution). You need to install it through Cydia and it'll be installed directly in that folder. Also, that answer you're referring to in comments, is about M

Categories : Iphone

Unnable to send data from android application to PHP webpage (error:Unfortunately application stopped working)
You should not perform network IO on the UI thread. You'll need to use AsyncTask or Thread to perform your network transaction on a background thread. You can refer to this Tutorial to get more understanding.

Categories : PHP

How will “windows based” authentication work in MVC web application, if users access the application from outside the company intranet
Assuming your website in IIS is visible to the outside through the firewall, then yes it will be accessible from home depending on the browser, you should get a pop up asking for username and password, and the username should be typed MYDOMAINJOEBLOGGS This setup may well work fine but it depends on your needs - is your network admin happy to open this server up to the outside world There can be a quirk if using Internet explorer externally, where IE does not display a pop up box, and instead tries to authenticate with the local windows username, which may not match AD username if it is a personal PC (to get around this on the client, go to Internet Options > Security > Custom Level then scroll down to User Authentication and select 'Prompt for username and password'

Categories : Asp Net Mvc

Is it possible to inform previous user of application in google play store regarding completly new application not a updated version?
You'll need to create a new release.keystore in order to sign your app and submit to Google Play. You could just change your current app to a higher version, sign it with a new keystore, and publish as a new app. But you'll still have to remove the old app from Google Play. That leaves the new app as the one people should install. The only downside with that is that the current users will have to uninstall the old and install the new in order to "upgrade."

Categories : Android



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