Here's a great source for JavaScript developers!!!
http://developer.yahoo.com/yui/theater/
Great source of links to html, css, javascript materials
http://home.comcast.net/~richarduie/
http://www.webdeveloper.com/javascript/javascript_js_tutorial.html
http://www.sitepoint.com/forums/forumdisplay.php?f=15
http://articles.sitepoint.com/category/javascript
http://www.ozzu.com/javascript-tutorials/tutorial-javascript-introductory-t86155.html
http://w3schools.com/js/default.asp
I'm gonna record my struggles with iPhone & Android mobile development experiences as well as PHP and other software development experiences.
Monday, January 31, 2011
Installing OpenCV on Mac OS
Here is the official installation guide.
I'll show you how to build opencv from source using the CMake build system.
1. Open Terminal. Move to a folder where you want to download opencv source code.
2. Type in the following commands.
$ svn co https://code.ros.org/svn/opencv/trunk/opencv
(This will download source code from repository)
$ cd opencv
(moving into the opencv folder just downloaded)
$ mkdir build
$ cd build
$ cmake ..
If you want to configure the make
$ ccmake .
(This will give you an opportunity to choose to build samples and install examples)
3. Build and install opencv
$ make -j8
$ sudo make install
I'll show you how to build opencv from source using the CMake build system.
1. Open Terminal. Move to a folder where you want to download opencv source code.
2. Type in the following commands.
$ svn co https://code.ros.org/svn/opencv/trunk/opencv
(This will download source code from repository)
$ cd opencv
(moving into the opencv folder just downloaded)
$ mkdir build
$ cd build
$ cmake ..
If you want to configure the make
$ ccmake .
(This will give you an opportunity to choose to build samples and install examples)
3. Build and install opencv
$ make -j8
$ sudo make install
Ubuntu Linux PATH problem
I was trying to build Android from source code.
http://source.android.com/source/download.html
I had to install Repo and set it to PATH.
I've been used to MacOS now but Ubuntu is not my cup of tea yet....well MacOS neither...but anyhow...
The problem was, that in ~/ directory, I find .profile and .bashrc files.
In .profile, I find the following line.
if [ -d ~/bin ] ; then
PATH= ~/bin:" ${PATH} "
fi
So it seems this should work, however when I type "repo", the terminal doesn't recognize this command.
I went through quite a number of posts online.
And finally I found a solution.
Here, I quote
So I followed this suggestion and it worked perfectly.
Here's the reference to the post.
It's frustrating to be a beginner....isn't it?
http://source.android.com/source/download.html
I had to install Repo and set it to PATH.
I've been used to MacOS now but Ubuntu is not my cup of tea yet....well MacOS neither...but anyhow...
The problem was, that in ~/ directory, I find .profile and .bashrc files.
In .profile, I find the following line.
if [ -d ~/bin ] ; then
PATH=
fi
So it seems this should work, however when I type "repo", the terminal doesn't recognize this command.
I went through quite a number of posts online.
And finally I found a solution.
Here, I quote
The .bash_profile file is read and executed when bash is invoked as a login shell, otherwise the .bashrc file will be read and executed.That's why this code:if [ -d ~/bin ] ; then
PATH=~/bin:" ${PATH} "
fiwhich is located in .bash_profile, doesn't seem to work...it's not being read. But, if you enter this into your terminal:bash --loginthen all your scripts in ~/bin will execute properly for your current terminal session.A good solution is to cut those 3 lines of code out of .bash_profile and put them in your .bashrc file. If you don't cut (or comment out) the code in .bash_profile it will be read twice since .bash_profile includes the .bashrc file.
So I followed this suggestion and it worked perfectly.
Here's the reference to the post.
It's frustrating to be a beginner....isn't it?
Thursday, January 27, 2011
Compile Error: Error generating final archive: java.io.FileNotFoundException: ..\bin\resources.ap_ does not exist.
So as the title says, this is the error I got when compiling a project I build for about a year ago.
Compile Error: Error generating final archive: java.io.FileNotFoundException: ..\bin\resources.ap_ does not exist.
Cause:
In strings.xml I had the following format arguments "%s/%s"
ex. <string name="template_user_agent">"%s/%s (Linux; Android)"</string>
Now, format arguments had to be changed to "%1$s/%2$s"
Then, the error should dissapear.
I found the solution from the following pages.
http://stackoverflow.com/questions/4437023/resources-ap-does-not-exist-when-compile-my-android-project
http://developer.android.com/guide/topics/resources/string-resource.html
http://mobile.tutsplus.com/tutorials/android/android-sdk-format-strings/
Compile Error: Error generating final archive: java.io.FileNotFoundException: ..\bin\resources.ap_ does not exist.
Cause:
In strings.xml I had the following format arguments "%s/%s"
ex. <string name="template_user_agent">"%s/%s (Linux; Android)"</string>
Now, format arguments had to be changed to "%1$s/%2$s"
Then, the error should dissapear.
I found the solution from the following pages.
http://stackoverflow.com/questions/4437023/resources-ap-does-not-exist-when-compile-my-android-project
http://developer.android.com/guide/topics/resources/string-resource.html
http://mobile.tutsplus.com/tutorials/android/android-sdk-format-strings/
Monday, December 27, 2010
VMWare Player: Cannot ping Guest OS
Host OS: Windows 2008 R2 Enterprise x64
Guest OS: Windows 2003 Standard x86
I somehow couldn't ping Guest OS even though the networking setting is set to Bridged.
Took me a while to figure this out but the problem lied on Firewall.
Solution:
Go to Windows Firewall.
In the Advanced Tab, choose ICMP settings,
check "Allow incoming echo request"
Then, ping command should work!!!
Guest OS: Windows 2003 Standard x86
I somehow couldn't ping Guest OS even though the networking setting is set to Bridged.
Took me a while to figure this out but the problem lied on Firewall.
Solution:
Go to Windows Firewall.
In the Advanced Tab, choose ICMP settings,
check "Allow incoming echo request"
Then, ping command should work!!!
Tuesday, December 21, 2010
SVN client for Eclipse
So I've again started developing android apps seriously.
I haven't used SVN since I moved into Mac OS X.
I'm using Eclipse Helios(Eclipse 3.6) now.
I've decided to go ahead with subclipse svn client since I've used it before.
To install it, go to Help => Eclipse Marketplace...
Then, search for Subclipse, I'm sure you'll find it there.
Here's the subclipse page just for reference.
http://marketplace.eclipse.org/content/subclipse
Ok, here's further notes on how to use svn on Mac OS.
When I tried to upload my source code, it didn't work.
Basically I was missing svn....yes, very embarassing.
So I downloaded and installed MacPorts using binary edition.
Then, I did self update using the following command.
sudo port -v selfupdate
Then, I installed svn client using the following command.
sudo port install subversion
Even after that, I couldn't use subclipse.
I kept on getting some weired JavaHL errors and couldn't proceed to share my project using svn.
The solution was right in subclips wiki page.
http://subclipse.tigris.org/wiki/JavaHL
Basically, I downloaded and installed the OSX package that is provided on openCollabNet.
Then, I modified .profile, just adding one liner (export PATH=/opt/subversion/bin:$PATH) just as instructed on the completion page of the svn installer.
Now, I can finally get down to coding and sharing the project!!! YEAH!!!
I haven't used SVN since I moved into Mac OS X.
I'm using Eclipse Helios(Eclipse 3.6) now.
I've decided to go ahead with subclipse svn client since I've used it before.
To install it, go to Help => Eclipse Marketplace...
Then, search for Subclipse, I'm sure you'll find it there.
Here's the subclipse page just for reference.
http://marketplace.eclipse.org/content/subclipse
Ok, here's further notes on how to use svn on Mac OS.
When I tried to upload my source code, it didn't work.
Basically I was missing svn....yes, very embarassing.
So I downloaded and installed MacPorts using binary edition.
Then, I did self update using the following command.
sudo port -v selfupdate
Then, I installed svn client using the following command.
sudo port install subversion
Even after that, I couldn't use subclipse.
I kept on getting some weired JavaHL errors and couldn't proceed to share my project using svn.
The solution was right in subclips wiki page.
http://subclipse.tigris.org/wiki/JavaHL
Basically, I downloaded and installed the OSX package that is provided on openCollabNet.
Then, I modified .profile, just adding one liner (export PATH=/opt/subversion/bin:$PATH) just as instructed on the completion page of the svn installer.
Now, I can finally get down to coding and sharing the project!!! YEAH!!!
Monday, December 20, 2010
Getting Android Gallery Application Source Code Using Git
Suppose you already installed your git on your OS.
Go into the directory where you want to create the project file, then type the following command.
git clone git://android.git.kernel.org/platform/packages/apps/Gallery.git
Then you will get a folder called 'Gallery' with all the source code.
Reference
Git official page
Android Gallery app source code
Go into the directory where you want to create the project file, then type the following command.
git clone git://android.git.kernel.org/platform/packages/apps/Gallery.git
Then you will get a folder called 'Gallery' with all the source code.
Reference
Git official page
Android Gallery app source code
Subscribe to:
Posts (Atom)