Variable undefined when waking from sleep in Chrome
Using Mac OS X 10.8.4, Chrome 27 (latest stable). I have a script that every X seconds (with setInterval()) makes an AJAX call with jQuery to see if there’s still a connection to the server...
View Articleoptimizing MySQL for traffic analytics system
background : I’ve developed a URL shortener system like Bitly with same features , so the system also tracks clickers info and represent as graphs to the person who has shorten the link as analytics...
View Articleandroid force close on clicking on seekbar
i’m newbie to android programming. i have the following code but i have a problem. when i click on the seekbar without playing the sound it force close. i mean when i click the play button i can click...
View Articlecontiniously updating GUI in java Android
Hi all i am a new java programmer in eclipse for android platform. I am working on a android app which will receive multicast data through wifi interface and display the same in a TextView.The data...
View Articlecontiniously updating GUI in java Android
Hi all i am a new java programmer in eclipse for android platform. I am working on a android app which will receive multicast data through wifi interface and display the same in a TextView.The data...
View ArticleAssigning a windows logon script
Beginner question – Trying to create a simple logon script that executes when a Windows user logs on and copies a file from one folder to another. The OS is Windows 7. This link says that logon scripts...
View ArticleCheck for root freezes
I’m creating an application, but now in time to check for root it freezes every single time i press “check for root” button. Any ideas? here is the “check for root” code: Process p; try { // Perform SU...
View Articleandroid.os.NetworkOnMainThreadException – XML Parsing
I’m working on a project right now and my XMLParser.java makes the application force close on devices with Android 4.0 or newer. I know I should implement Async but I don’t know how. Can somebody help...
View ArticleWrong updating TextView in Android app
I create simple Android app (https://www.linux.com/learn/docs/683628-android-programming-for-beginners-part-1) with latest Android Studio. Code: public class test_act extends Activity { private static...
View ArticleString constructor differences between operating systems
I have the following code: byte[] b = new byte[len]; //len is preset to 157004 in this example //fill b with data by reading from a socket String pkt = new String(b); System.out.println(b.length + " "...
View ArticleWebview won’t load on button click?
I have been trying to resolve this now for a number of days, I have searched the web and have also scoured through the many related questions provided on here but I am yet to resolve this issue. The...
View Articlesubprocess in python not excecuting command
I have a bit of code that I am designing to take a file, perform the dos2unix command on it, then copy that file to a file called INPUT, and then run a command that boots a program. From my code the...
View ArticleOS X cocoa send HTTP response to PHP page, wait for PHP response to request,...
id like to achive what is mentioned in the title, can anyone point me in the right direction regarding ressources or torturials? I do understand the basics of the HTTP protocol, but i am fairly new to...
View ArticleFind and Open Default Photoshop install | Windows & OSX
I’m trying to find a method to find and open the default install of Photoshop (the one set to open by default when opening a .psd file in case of multiple versions) from Java that works under both...
View ArticleUcontext in linux
I read that ucontext is used to save context between multiple threads in linux. but why as os itself do the context switching between different threads. then why linux provides this header file...
View ArticleBlank output from my password generator script
I am trying to create a simple password generator using python, it reads a pattern you feed in the following format, A for uppercase character, a for lower case ones, $ for a number and # for a symbol....
View Articleisandroid force close with this error when app opens
hi this is my activity code: package com.microweb.gapiha; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import android.app.TabActivity; import...
View ArticleIs there a way to run a test.aspx file inside a precompiled_non-updatable...
I have a large enterprise website, which was build and published as precompiled / non-updatable. Now I have an issue that is happening only at one customer site. So, I wanted to create a simple...
View Articleorg.json.JSONObject cannot be converted to JSONArray
I am getting a exception while working in json . My JSONPresr class is as follow import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader;...
View ArticleThe declaration of ostream_iterator
At the compilation (gcc Linux) of the following simple program: 1 #include <vector> 2 #include <iostream> 3 #include <iterator> 4 #include <algorithm> 5 using namespace std; 6 7...
View Article