Solving Omnia 7 compass problem after installing Windows Phone 7.8

Around a month ago, when I installed the Windows Phone 7.8 update (7.10.8862.144) to my Samsung Omnia 7. After the update everything’s appeared as normal, except recently I noticed that the compass is not working.
By curiosity, I launched the diagnosis app, and then launched a compass test. The result displayed the correct data, also reacted well for turning direction. After that, my compass works fine.
As the Hitchhiker’s guide to the Galaxy says: Don’t panic!
Launch Diagnostics app, if you not find it, type ##634# in the dial pad.
Enter *#0*# code, and select the Compass. If its works fine, you can put away your towel.


osCommerce with WebMatrix – the easiest way

Microsoft giving great tools for free namely WebMatrix, which can help develop, test, and publish various kind of sites. It comes with dozens of templates, but still there are missing a few. Accepting some inconveniences, like missing IntelliSense, this gap can be bridged easily, like running osCommerce locally.

Select Templates

Select Templates

Launch WebMatrix
Click to the Templates

Select PHP and an Empty Site template, if some software is required WebMatrix will download and install it for you.
Go to the Databases tab and right click your website name, select New MySQL Database, and create one.

Create new MySQL database

Create new MySQL database

Create new MySQL database

Create new MySQL database

Launch your favorite file manager, and copy all the files which are necessary to the osCommerce installation, to the newly created sites virtual directory. In default settings that should be your C:\Users\[UserName]\Documents\My Web Sites\[your site name]\
Open the created web.config file and grab the user name and password to the MySQL database.

        <add connectionString="server=localhost;uid=commerceUleeq;pwd=Q+8X_Nl]l!B#;Database=commerce" name="commerce" providerName="MySql.Data.MySqlClient" />

Getting from that user name is “commerceUleeq”, password is “Q+8X_Nl]l!B#”.
Launch your site from WebMatrix.
You can finish your osCommerce installation, do whathever you want…

Visual Studio 2012 Update 2 is available

Microsoft released the second update for Visual Studio 2012. It brings new features and fixes for many issues.
Like the first update it’s arrive via a small exe, but like in the previous, this version is also support the function to keep the downloaded update files.
Start a new command prompt, than start the installation with the layout switch.
VS2012.2.exe /layout
Without that, the installation will not offer you to store the downloaded content.
After it finished every downloaded file will remain for later use. Be advised, that keep all downloaded exe files, because the downloaded VS2012.2.exe file will seek the content from the disk instead from the web.
The trickiest part, that is just a download process, you need to run the downloaded VS2012.2.exe from the folder, what you slelected to install it actually.
That’s it, happy coding!

Relics from the past – they are still out

Many years ago, when the World Wide Web was relatively young, and many people was optimistic about security a lot of webpage was created with kind of security features which are this days are simply hilarious. Many of those pages are still out there, and working, and giving false sense of hope about security….

A few days ago I found a webpage, which are one of those old relics. Was a bit curious, so I hit the F12 button in my browser, to see what is under the hood.
I found this:

  <p>Login name : 
    <input type="text" name="text2">
<p> Password :
<input type="password" name="text1">
  <input type="button" value="Log in!" name="Submit" onclick=javascript:validate(text2.value,"User",text1.value,"123456") >
<p>You need to log in to see the Honey Pot! </p>

And few lines lower there was a script block:

function validate(text1,text2,text3,text4)
	if (text1==text2 && text3==text4)

Well, basic HTML and JavaScript don’t give much to secure the sites, but still that code is just really nothing. Basically it’s just waste of lines of code. So many webpage is out there still using its kind of techniques, giving false sense of security. In 2013, it’s not too hard to replace those codes, ones, which provide more security. This kind of “security” is penetrable for everyone over age 2.5.

Actually, there are easy to found much worst thing. Few days ago, with my colleagues we checked what Jenkins page can reveals us. The sights was terrible, actually it’s kind of horror. There was our login name with our passwords in its source! Basically everybody can get the login and password information to gain access others accounts, who can access Jenkins… So, basically after every check-in you should change your password…. :/

Windows Phone TextBlock content related task launch.

Recently one of my friends asked some help to solve an easy problem. His app has a few TextBlock, each text block contains a phone number or an e-mail address. He wanted to launch phone call or e-mail based on TextBlock’s text.
The solution is easy, attach DoubleTap event to the TextBlock:

    <TextBlock DoubleTap="TextBlock_DoubleTap_1" ></TextBlock>
    <TextBlock DoubleTap="TextBlock_DoubleTap_1">+123456789</TextBlock>

Then add a few line of code inside the created event handler:

if (sender is TextBlock)
    string content = ((TextBlock)sender).Text;
    if (!string.IsNullOrEmpty(content))
        if (content.Contains("@"))
            EmailComposeTask ect = new EmailComposeTask();
            ect.To = content;
            ect.Subject = "Greetings!";
            ect.Body = "Message from my application";
            PhoneCallTask pct = new PhoneCallTask();
            pct.PhoneNumber = content;
            // pct.DisplayName = "Call from application";

    e.Handled = true;
    e.Handled = false;

Well, the validation is bit dummy, but will serve the educational purpose.

Warning: Problems with paying Windows 8 upgrade via PayPal

Few days ago I brought the Windows 8 Pro upgrade via Windows 8 Upgrade Assistant, and paid via PayPal. The check out was fine, at the first sight, fee got charged, got my license key, and of course upgrade and activation went fine. Few days ago I got a notification SMS that, the upgrade fee was charged to my card –again-. Few hours later, as I checked my balance I saw multiple charges to my card, the same 29.99€, the price of the upgrade. As looking trough the web I noticed, that I’m not alone with the problem, at least not in the EMEA area. So, be cautious, and give some thoughts about paying the upgrade. I suggest everyone to wait with this upgrade, until this will be solved. The reduced upgrade price is still available until the end of January 2013.

Also, I read some people having problems to download the upgrade media. I haven’t experienced this kind of problem, but of course, there can be some demand of the servers.

Another important warning: if you intend to use Windows 8 Pro x64, DO NOT START the upgrade on x86 system, because you will ended to get the x86 version of it! There is a way to get the x64 version: backup your all of your data, and install the Windows 8 Release Preview x64 version. After the installation start the upgrade process from preview edition, since it’s in the upgrade program.

Breaking News – Windows Phone Dev Center registration now only 8$!

Microsoft Announced, for limited time, the Windows Phone Dev Center registration fee is only 8$ for the newcomer individuals, this offer alive until 11. 7. 2012 11:59PM PST.
How this works? Simply, if your country is eligible for registration and app submission, you need to join via the Windows Phone Dev Center, login with your Live ID, or create one if you haven’t. Fill the registration form and pay the yearly subscription fee, all the 99$. Yes, your eyes is fine, it’s still 99$ for a yearly subscription, but 91$ or 92% of your local currency will be credited within 30-60 days. Payment can be paid via PayPal or credit card. Visa, MasterCard and American Express cards are your choice your region can’t pay via PayPal. I noticed a great thing, but that’s not a guarantee, that will work for you too, but eventually Microsoft accepted my Visa Electron card. And it’s new, since my previous registration attempt wasn’t successful, and for a weird reason, Microsoft isn’t accepted my MasterCard in the Dev Center registration, even if it was already validated.
Please read the official notes, and check that you are eligible.

After subscription, you can submit your apps to the Windows Phone Store. Grab the new Windows Phone 8 SDK and start develop. Windows Phone 8 SDK works only in Windows 8 x64 environment.