Wednesday, July 3, 2013

Learning ColdFusion 10

Temporary hold my current projects: Microsoft C# ASP.NET MVC and Google Android Demo App for a week to try out Adobe® ColdFusion® 10 Developer edition and MySQL 5.6.12. I love the opportunity to learn a new thing.


Install Adobe ColdFusion 10 Developer edition on Microsoft Windows.

Install MySQL 5.6.12

Using GitHub on Windows for version control.

Monday, July 1, 2013

Using GitHub for Windows with Bitbucket

GitHub is a popular Git version control hosting but it's not provide free unlimited private repositories like Bitbucket. I end up using both. To push files to Bitbucket.org using GitHub for Windows:
  1. Open Git Shell
  2. Change to other directory if need (cd "..\Visual Studio 2012\Projects\DisplayRSSFeeds")
  3. Add .gitignore
  4. Add readme.txt (optional)
  5. Initialize empty git repository: git init
  6. Add the existing files to the repository: git add .
  7. Commit the files: git commit -m "First commit" or git commit -a
  8. Log into Bitbucket.
  9. Create a new repository.
  10. Add a new remote: git remote add origin-bb https://yourusername@bitbucket.org/yourusername/yourgit.git
    (Note: See picture below. You cannot push or remove the remote origin, so just make a new one called origin-bb as I did).
  11. Push up the repo for the first time: git push -u origin-bb --all  




Other git commands
# view current remote
git remote -v

# remove remote
git remote rm origin-bb

# Use these sequence git commands to update Git repository in both local and remote later.
git add .
git commit -a
git push -u

Further reading:
https://confluence.atlassian.com/display/BITBUCKET/Import+code+from+an+existing+project
http://git-scm.com/book/ch2-5.html

Sunday, June 2, 2013

Buying a new laptop

If you are going to buy a laptop using Microsoft Windows, make sure it has Windows 7. Windows 8 is not good, hard to use and took a lot of time to learn. Thus Microsoft force to make Windows 8.1 as a new free upgrade.

http://www.extremetech.com/computing/155747-windows-8-1-will-be-a-free-upgrade-will-begin-public-beta-testing-on-june-26.

Also, make sure the CPU support supports Intel® Virtualization Technology (Intel® VT) along with many advanced technologies as I mentioned on my previous post. I preferred Intel® Core™ i3, i5 or i7 processor.

Your laptop should have:
  • 15.6" monitor screen. 
  • At least 1.9 GHZ Intel® Core™ i3 processor 
  • At least 4 GB RAM expandable to 8GB or 16GB
  • Built-in high-speed wireless 802.11b/g/n and Gigabit Ethernet LAN. 
  • Two or more USB ports.
  • Built-in front camera.
  • At least 3 hours battery.

Friday, May 17, 2013

My experience with Android Studio

I love to learn or try a new thing everyday. Yesterday, I downloaded Android Studio and installed on both Mac OS/X Lion 10.7  and Ubuntu 13.04 laptop. Here is the screenshot of Android Studio my MacBook Pro.
I'm still figuring out how to fix this error: "emulator: ERROR: unknown skin name 'WXGA720'" when  attempt to load Android Virtual Device without using Eclipse Juno to launch the AVD first.

For Ubuntu 13.04, I must using Oracle Java Development Kit instead of OpenJDK to run Android Studio. With Eclipse IDE, I can use OpenJDK. Here is the screenshot when I make a new Android project imported from my GitHub account:

I also trying to install Android Studio on Microsoft Windows. To save time, you need to read carefully the note on http://developer.android.com/sdk/installing/studio.html

Since this is a preview release, I don't expect much. I hope Google will make Android Studio tool better.

Wednesday, May 1, 2013

Error when add the StoreManagerController on MVC Music Store Tutorial Part 5

When I followed the MVC Music Store Tutorial using Microsoft Visual Studio Express 2012 for Web on Windows 8, I got this error:

Unable to retrieve metadata for 'MusicStore.Models.Album'. Using the same DbCompiledModel to create context against different types of database servers is not supported. Instead, create a separate DbCompiledModel for each type of server being used.

No idea. Let google for a solution. Here a solution from ITorian (http://www.itorian.com/2012/10/unable-to-retrieve-metadata-for.html) :

After I delete this line in web.config, it worked: 

     connectionString="Data Source=|DataDirectory|MvcMusicStore.sdf"
     providerName="System.Data.SqlServerCe.4.0"/>

Thank the author of ITorian.com.

Wednesday, April 3, 2013

What did I do last weekend?

Look at this picture :)


I played with Microsoft ASP.NET MVC 4, Visual Studio 2012 on Windows 8. Actually Windows 8 hosted on my Apple MacBook Pro. On my Dell laptop, I used Google Chrome on Ubuntu. I love to learning a new thing everyday.

Tuesday, March 19, 2013

Transact-SQL statement terminator


Although the semicolon is not required for most statements in this version of SQL Server, it will be required in a future version. For more information, see Deprecated Database Engine Features in SQL Server 2008.

Read more at http://msdn.microsoft.com/en-us/library/ms177563(v=sql.100).aspx