Can’t set breakpoints in Xcode 4 and debugger does not stop

Questions: I downloaded the latest Xcode 4 (iOS SDK 4.3) from the Apple’s web site. The new look and behavior gives me headache. I am trying to rebuild my old iPhone projects on an OS X 10.6.6 iMac machine but run into several issues. One of them is the debugger when the device is set to Simulator. While the project builds with no error, the debugger does not stop at any of the breakpoints I set! The color of breakpoints is either light blue (dimmed blue) or orange (yellow) and never dark blue. Restarting Xcode does not fix the problem. What is happening? Continue reading Can’t set breakpoints in Xcode 4 and debugger does not stop

Save data to ZIP file in Java app for OS X, Windows and Android platforms

Question: In an Eclipse JAVA project I have to save data to a zip file to reduce disk (memory) usage. I am sending my code. It does not run on Windows 7 professional laptop. Do you have a sample code that runs on both OS X and Windows? Answer: There are several good solutions on the Net (google or bing for it). Look for file access rights or misspelled file name when your code does not work. From within your Java applications you can execute data compression and decompression conveniently by using the java.util.zip package. A sample code is here: Continue reading Save data to ZIP file in Java app for OS X, Windows and Android platforms

Backup mySQL stored procedures in Java application

Question: I’ve just read your post of “Backup mySQL database with Java desktop or Android application” but you have not given us a sample how to backup store procedures from the database. Can it be done? Answer: Yes. We can dump stored procedures and triggers as well. The previous post is here: http://www.weston-fl.com/blog/?p=2288 mysqldump backups by default all the triggers but not the stored procedures (functions). There are two mysqldump parameters that we must pay attention to: -routines and –triggers. The –triggers is set to true by default. Add only the –routines command line parameter to the argument list to backup the triggers and stored procedures as well. For details look at the mysqldump options: Continue reading Backup mySQL stored procedures in Java application

Backup mySQL database with Java desktop or Android application

Problem: I’m developing a Java application with Eclipse which must be running on iMac, MacBook Pro and Windows 7 metals and may be on Android devices. One of the options is to let my user save his mySQL database with a click. I’m using mySQL 5 on a remote server. I want a very simple utility code to backup the database and store it in the specified folder location. I am stuck with my code as it does not run on Windows as expected. Can any one help me. Continue reading Backup mySQL database with Java desktop or Android application

iMac bluetooth mouse keeps disconnecting

Question: I have an Apple iMac 10,1 desktop with OS X 10.6.6. My Magic bluetooth mouse keeps annoyingly disconnecting once or twice an hour. I checked the battery and it is 90% full. I get an error message in the Console saying “AppleMultitouchDevice:willTerminate entered”. It even disconnects while I am doing something. Interestingly it usually reconnects in 10 seconds. Help is greatly appreciated. Continue reading iMac bluetooth mouse keeps disconnecting

What tool to use to develop Android applications

Question: I am a long time Mac (Xcode) programmer. My client wants me to build and distribute an Android version of the latest iPhone app that she has ordered from me, but I am a little bit uncertain. iPhone app uses the language of objective-C and the Android apps are built in Java, ergo Xcode is not the answer. I have some experiences with NetBeans Integrated Development Environment (IDE) but I heard that it is not the best choice. What tool do you recommend for an iPhone programmer? Continue reading What tool to use to develop Android applications

Blog for us