Friday, September 6, 2013
Using ODBC 32-bit on 64-bit Operating System
What wrong? It took me couple hours to figure out. Microsoft Access 2007 may not work with other 64-bit driver or program yet. Installed MySQL ODBC 32-bit solve the problem.
On Windows 8.1, there are two ODBC Administrors under Control Panel – Administrative Tools. One for ODBC Datasources 32-bit and one for ODBC Datasources 64-bit. On Windows Server 2008 R2, there is only one reference to ODBC Administrator. This is 64-bit. Where is 32-bit? To add or manage DSN for ODBC 32-bit, you need to call program odbcad32.exe in C:\Windows\SysWOW64\
Hope this help.
Thursday, August 22, 2013
How to access Wamp Server running on Windows 2008 from other computer?
Step 1: Update httpd.conf to add this line
Allow from 192.168.1.0/255.255.255.0 # for LAN
#or
Allow from all # for any computer in the world
Remember to restart Apache server after change the httpd.conf
Step 2: Check Windows Firewall.
- Is the port 80 open?
- Is the Apache Web Server (\wamp\bin\apache\Apache2.4.4\bin\httpd.exe allow to receive the request from other?
Saturday, August 17, 2013
WAMP
WAMP stands for Microsoft Windows operating system, Apache web server, MySQL database, and PHP general-purpose scripting language for server side Web development. Among WAMP server packages, I like WampServer since it easy to instal, have latest version from Apache, MySQL and PHP and it's free. Before you install the WampServer, you need to make sure your computer have:
- Microsoft Visual C++ 2010 run-time. Without Microsoft Visual C++ 2010 run-time, you will see the error message "vcr100.dll missing" when install.
- Microsoft .NET Framework 3.5.1. This fixed the problem 'aestan tray menu has stopped' when you start the WampServer
To install Microsoft Visual C++ 2010 Redistributable Package (x64) ( http://www.microsoft.com/en-us/download/details.aspx?id=14632 )
On Windows 2008R2 server, make sure .NET Framework 3.5.1 enable. It disable by default. ( http://social.technet.microsoft.com/Forums/windowsserver/en-US/ac1bf719-0a88-4b5d-be98-395f2623e805/what-version-of-net-framework-comes-with-windows-2008-r2 )
Friday, July 12, 2013
Failed to load libGL.so
Install 'Free Implementation of the OpenGL API-GLX development files' (libgl1-mesa-dev) package from Ubuntu Software Center
or type this command at terminal
sudo apt-get install libgl1-mesa-dev
Credit: http://learnedstuffs.wordpress.com/2012/07/17/fixing-ubuntu-error-failed-to-load-libgl-so/
Friday, May 17, 2013
Android Studio
Caution: Android Studio is currently available as an early access preview. Several features are either incomplete or not yet implemented and you may encounter bugs. If you are not comfortable using an unfinished product, you may want to instead download (or continue to use) the ADT Bundle (Eclipse with the ADT Plugin).As soon it posted on developer.android.com, I downloaded and installed on three platforms: Ubuntu 13.04, Mac OS/X Lion 10.7.5 and Windows Vista. On Ubuntu 13.04 with OpenJDK 1.7, I got this error message:
'tool.jar' is not in Android Studio class path. Please ensure JAVA_HOME points to JDK rather than JRE.I have no problem using Eclipse Juno (4.2.2) for Android development on this machine. Ran android-studio/bin/studio.sh at a terminal, there was a warning:
WARNING: You are launching the IDE using OpenJDK Java runtime. ITS KNOWN TO HAVE PERFORMANCE AND GRAPHICS ISSUES! SWITCH TO THE ORACLE(SUN) JDK BEFORE REPORTING PROBLEMS!Downloaded and switched to Oracle (Sun) JDK from OpenJDK on Ubuntu 13.04 according to Hendré's blog, problem solved.
On Mac OS/X with Java 1.6.0_45, I got Android Studio ran immediately without hicup. After I made a new simple project to test, I could not load any Android Virtual Device. To work around, I opened Android Virtual Device Manager from Eclipse Juno to load the Android Application launched from Android Studio.
On Windows Vista with JRE 7 installed only, Nothing running after executed Android Studio (c:\android-studio\studio,exe) application. Tried to replaced Oracle JRE 7 with Oracle JDK 7, no luck. Solution: Added environment variable JAVA_HOME with value "C:\Program Files\Java\jdk1.7.0_21) to system variables. Further reading:
- Getting Started with Android Studio. Need to read this page thoroughly to save time.
- IntelliJ IDEA and Android Studio FAQ. This FAQ is good.
Sunday, February 24, 2013
MySQL error #1045 on GoDaddy phpMyAdmin
#1045 – Access denied for user ‘myusername’@’10.10.10.10’ (using password: YES)
What???
After couple attempts for a few hours, I decided to use a new difference password. Now it worked. It seem to me, there is a character in my initial password did not carry to or accepted by MySQL database.
Tuesday, January 1, 2013
New Year New Password
When you change the password, it should NOT in "The 25 worst passwords of 2012". You should NOT using the same password for all accounts. Use the KeePass or a password protected LibreOffice document to keep track your password. Read "The guide to password security (and why you should care)" for more info.
Happy New Year!
Thursday, October 18, 2012
How to upgrade to Ubuntu 12.10 (Quantal Quetzal) from Ubuntu 12.04 LTS (Precise Pangolin)
- Go to Settings on Update Manager and change 'Notify me of a new Ubuntu version' to 'For any new version''
- Check again. You will see a notification 'New Ubuntu release 12.10 is available'.
- Click the 'Upgrade' button to upgrade to Ubuntu 12.10
Sunday, October 14, 2012
Manual Install WordPress on GoDaddy 2G Web Hosting Plan
- Make sure the setting for PHP version is 5.3 in Programming Languages section.
- Create MySQL database for WordPress from your GoDaddy Web Hosting control panel. Here the database name is same as user.
- Download the latest stable release of WordPress (Version 3.4.2) here.
- Unzip the archive, modify wp-config-sample.php as instructed in Famous 5-Minutes Install page.
- Upload to GoDaddy web hosting.
Wednesday, June 27, 2012
Upgrade Eclipse IDE and Android SDK
- Downloaded Eclipse Juno 4.2 for Mobile Developers, 142 MB.
- Extracted it to Downloads folder.
- Removed existing Eclipse (Indigo) folder from Application.
- Moved new Eclipse folder from Downloads to Application
- Started Eclipse and re-install Android Development Tools (ADT)
- On Eclipse Juno 4.2 IDE, select Windows -> Android SDK Manager to update Android SDK Tools to rev. 20 and downloaded Android 4.1 Jelly Bean
- Create new AVD for Android 4.1 from AVD Manager
- Re-tested old projects to make sure they ran as expected.
Sunday, March 25, 2012
Unity Launchpad error in Ubuntu 12.04 LTS (Precise Pangolin) Beta 1
How I got into the terminal or launched the application? How I fixed it?
Launched the keyboard shortcut by pressed these keys together <Ctrl><Alt>T
Now in the terminal, I ran these commands:
~$ sudo apt-get update
~$ sudo apt-get upgrade
I thought the new updates would fix it. Still no launchpad. I typed this command at the terminal
~$ unity
The launchpad launched. Still some glitches. Reboot. Repeated these processes above couple times, it worked.
Thursday, March 22, 2012
Hot Computer Languages: PHP, Python, and Ruby
Wednesday, March 21, 2012
Read Error in LibreOffice
Un-install LibreOffice version 3.4 and install LibreOffice 3.5 will solve the problem. I got this problem when saved a file in LibreOffice 3.5 in Mac and attemped to open it in Ubuntu.
Sunday, March 11, 2012
Ruby and Ruby on Rails Resources
Ruby on Rails (RoR) is an open-source web framework using Ruby programming language. Ruby on Rails released as open source by David Heinemeier Hansson, Danish programmer, in July 2004. Like many web frameworks, Ruby on Rails uses a variant of the Model/View/Controller (MVC) architecture pattern to organize application programming. As of March, 2012, there are more than 200,000 sites using Ruby on Rails per BuiltWith.com
Programming Ruby: The Pragmatic Programmer's Guide
Ruby in Twenty Minutes
Coursera.org: Software Engineering for Software as a Service
Stanford Open Class Room: Web Application
RubyGems.org is the Ruby community's gem hosting service.
RubyForge is a home for open source Ruby projects
The Pragmatic Bookshelf | Learn to Program
Learn Code The Hard Way
Ruby Tutorials for Beginners
http://rubylearning.com/
RubyMonk - Interactive ruby tutorials to learn Ruby
Rails 3 screencasts
Free episodes from RailsCasts.com
Ruby Koans
Sunday, October 23, 2011
Upgrade to Ubuntu 11.10 (Oneiric Ocelot)
- Make sure you know the admin password for PhpMyAdmin, if installed, before you upgrade. I forgot this password and it took me almost half hour to get out the infinite loop :(
- An hour for download and another hour to install.
- Remote desktop 'tsclient' was removed. Used 'RDesktop' or 'Remmina' instead. After using Remmina Remote Desktop client, I liked it. It's better than 'tsclient'
- Somehow the trash icon in launchpad associated with VLC media. Uninstalled VLC resolve this issue.
Saturday, October 15, 2011
How to upgrade VirtualBox 4.0.12 to 4.1.4 on Ubuntu 11.04
- Backup your virtual machine by press <ctrl>-E to export appliance
- Go to Ubuntu Software Center to uninstall current version
- Install new version Oracle VM VirtualBox 4.1.4
- Install Oracle VM VirtualBox Extension Pack
- Run virtual machine and apply new version of Oracle VM VirtualBox Guest Addition 4.1.4r74291
Saturday, August 13, 2011
Is Free Software Open Source?
The Open Source Definition:
1. Free Redistribution
2. Source Code
3. Derived Works
4. Integrity of The Author's Source Code
5. No Discrimination Against Persons or Groups
6. No Discrimination Against Fields of Endeavor
7. Distribution of License
8. License Must Not Be Specific to a Product
9. License Must Not Restrict Other Software
10. License Must Be Technology-Neutral
Sunday, July 17, 2011
Upgrade to Eclipse Indigo (3.7) from Eclipse Helios (3.6) on Ubuntu 11.04
1. Download 64-bit Linux package from Eclipse.org. Please select the approriate version for your machine: Mac OS, MS Windows, 32-bit, 64-bit.
2. Extract the downloaded zip file: eclipse-jee-indigo-linux-gtk-x86_64.tar.gz
3. Rename Eclipse folder in my home directory to Eclipse-Helios
4. Move the Eclipse folder from Downloads directory to home folder.
5. Re-install ADT Plugin for Eclipse Indigo (3.7)
6. After Eclipse restart, check, and enjoy new version Eclipse
Friday, June 10, 2011
Install WordPress 3.1.3 on Ubuntu 11.04
1. Unzip wordpress-3.1.3.zip to a specified.
2. Make the virtual path for Apache web server:
sudo gedit /etc/apache2/httpd.conf
add a new line:
Alias /wordpress /home/yourusername/wordpress
and
restart sudo /etc/init.d/apache2 restart
3. Type http://127.0.0.1/wordpress/readme.html on your browser to read some instruction.
4. Create MySQL database and user for WordPress
mysql -u root -p
mysql> use mysql;
mysql> create database wordpress;
mysql> INSERT INTO user (Host,User,Password) VALUES('localhost','wpuser',PASSWORD('wppass'));
mysql> grant all privileges on wordpress.* to wpuser@localhost;
mysql> flush privileges;
mysql> exit;
5. chmod -c 777 -R ~/wordpress
6. Type http://127.0.0.1/wordpress/wp-admin/install.php to install.
If you got this error message: "Error establishing a database connection", make sure user name and password are correct. It took me almost an hour to figure it out. For some reason, my MySQL password for wpuser@localhost is empty instead of a specified password that I set when I create a MySQL user account.





