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

Thursday, February 14, 2013

A Safe Job Search

Just got this useful message from Monster.com, I repost here For Your Awareness (FYA):
Monster makes protecting job seekers a top priority. We'd like to remind you of what you can do to help keep yourself safe during a job search. 
Know What to Avoid
Some employment scams appear as job postings or classifieds while others may target victims through unsolicited email. Below are the most common scams: 
Money-Laundering Scams
Money launderers offer "jobs" with commissions or pay as high as $2000 per day to process checks on behalf of foreign nationals. They recruit local citizens to "process payments" or "transfer funds," because as foreign nationals, they can't do it themselves. Learn more about money laundering scams here.» 
Reshipping Scams
Reshipping scams typically require job seekers to receive packages of stolen goods-frequently consumer electronics-and then forward the packages, often outside the United States. Those who fall for reshipping scams may be liable for shipping charges and even the cost of goods purchased online with stolen credit cards. Read more about reshipping scams here.» 
Pre-pay/Work at Home Scams
Although there are genuine jobs working at home, many "offers" are not valid forms of employment and have the simple goal of getting victims to make an initial "investment." Find out more about avoiding these scams.» 
Protect Yourself 
What seems like a lucrative job offer could cost you your savings and more. Learn to identify the signals of an employment scam to protect yourself. A few simple steps and a little bit of information can keep your job search safe and effective! Learn more by visiting Monster's Security Center
If you see a questionable job posting or suspect misuse of the Monster website, please report the suspected fraud to Monster. 
If you think you have been a victim of fraud, immediately report the fraud to your local police and contact Monster, so steps can be taken to ensure your safety. We also recommend that you file an online report with The Internet Crime Complaint Center, a partnership between the Federal Bureau of Investigation and the National White Collar Crime Center. More information on how to conduct a safe job search is available through the Federal Trade Commission's website. You can also check out LooksTooGoodToBeTrue.com.
Further reading:
Should I provide my social security number when I apply job online?

Saturday, January 12, 2013

Java Vulnerability

After learning about Java vulnerability from the Department of Homeland Security's United States Computer Emergency Readiness Team (US-CERT), I checked all my browsers in all computers: Ubuntu Linux, Apple Mac OS X, and Microsoft Windows to make sure Java is disabled. To test whether Java is working on my computer, go to this URL http://java.com/en/download/testjava.jsp

Here are the screenshots from my Windows computer:
Java was disable on Google Chrome 23 on Microsoft Windows. Oops. I need to update Google Chrome to the latest version Google Chrome 24. Always keep your browser up to date.

'No working Java was detected on your system.' Good. Java was disabled on Mozilla Firefox 17. Again. I will update Firefox to version 18. On Ubuntu, it was 'Something is wrong. Java is not working'.

Java was disabled on Microsoft Internet Explorer 9.

Next, I went to Control Panel to update Java to the latest version Java 7 update 10 and unchecked the check box 'Enable Java content in the browser'.
 Before clicked the 'Apply' button
After clicked the 'Apply' button
Unchecked the 'Keep temporary files on my computer'
Internet Explorer after unchecked the check box 'Enable Java content in the browser'
Java was disabled on Opera ran on Ubuntu 12.10
Java was disabled on Safari ran on Mac OS X Lion 10.7.5 

Saturday, December 1, 2012

Native American Code of Ethics


1. Rise with the sun to pray. Pray alone. Pray often. The Great Spirit will listen, if you only speak.

2. Be tolerant of those who are lost on their path. Ignorance, conceit, anger, jealousy and greed stem from a lost soul. Pray that they will find guidance.

3. Search for yourself, by yourself. Do not allow others to make your path for you. It is your road, and yours alone. Others may walk it with you, but no one can walk it for you.

4. Treat the guests in your home with much consideration. Serve them the best food, give them the best bed and treat them with respect and honor.

5. Do not take what is not yours whether from a person, a community, the wilderness or from a culture. It was not earned nor given. It is not yours.

6. Respect all things that are placed upon this earth - whether it be people or plant.

7. Honor other people's thoughts, wishes and words. Never interrupt another or mock or rudely mimic them. Allow each person the right to personal expression.

8. Never speak of others in a bad way. The negative energy that you put out into the universe will multiply when it returns to you.

9. All persons make mistakes. And all mistakes can be forgiven.

10. Bad thoughts cause illness of the mind, body and spirit. Practice optimism.

11. Nature is not FOR us, it is a PART of us. They are part of your worldly family.

12. Children are the seeds of our future. Plant love in their hearts and water them with wisdom and life's lessons. When they are grown, give them space to grow.

13. Avoid hurting the hearts of others. The poison of your pain will return to you.

14. Be truthful at all times. Honesty is the test of ones will within this universe.

15. Keep yourself balanced. Your Mental self, Spiritual self, Emotional self, and Physical self - all need to be strong, pure and healthy. Work out the body to strengthen the mind. Grow rich in spirit to cure emotional ails.

16. Make conscious decisions as to who you will be and how you will react. Be responsible for your own actions.

17. Respect the privacy and personal space of others. Do not touch the personal property of others - especially sacred and religious objects. This is forbidden.

18. Be true to yourself first. You cannot nurture and help others if you cannot nurture and help yourself first.

19. Respect others religious beliefs. Do not force your belief on others.

20. Share your good fortune with others. Participate in charity.

This originally appeared in the "Inter-Tribal Times," October, 1994

Wednesday, November 7, 2012

Beware of SMS Spam

I got the following text message few days ago:

+15013131661: Dear BestBuy Winner #12564 ! If you Complete this Yearly questionare to get a free Ipad as a prize Thank you www.bit.ly/(UseLG1XXX)
Nothing FREE in America. So, DON'T click to get the free iPad or you will be the spam or scam victim.