Blog

Windows Phone – Max Database Size Problem in SQL CE

If you have encounters an SQLCeException error during a LINQ operation for example Union on a very large data set, check the error message. If the error message shows something like “The database file is larger than the configured maximum database size. This setting takes effect on the first concurrent database connection only.“, then congratulation to you, because you just hit the limit.

The Windows Phone team think any application in phone should not use that much memory, but still some of us might hit this limit. For example like me which required to search through 20,000+ data sets with complicated search conditions. The solution to this problem is pretty simple, add a max database size in the connection string to SQL CE. You will need a complete connection string this time instead of just defind the location of your SQL CE database file.

For example, my connection string before this is as follow:

@"isostore:/CardsDatabase.sdf"

Then after adding the max database size parameter and convert it to a complete connection string, it will become like this:

@"Data Source='isostore:/CardsDatabase.sdf';Max Database Size=64;"

The 64 in the connection string mean I wants to increase the max database size to 64 MB instead of the default value. Hope this little information can help.

by Ooi Keng Siang via Ooiks’s Blog

MouseHunt AutoBot 1.28 – Chrome King Reward Sound Fixed

Sorry for the fix delay. Another quick fix for King Reward sound in Google Chrome. I have enable offline king reward sound on Google Chrome in this version. That mean it can play the sound directly from Google Chrome browser instead of streaming through online. Do tell me if any problem pop up again.

Wish everyone merry Christmas and happy new year. 🙂

 

MouseHunt_AutoBot_Ver_1_28

Script Description

MouseHunt AutoBot is an advance user script to automate sounding the hunter horn in MouseHunt application in Facebook, Hi5 and offside MouseHunt page with MouseHunt version 3.0 (Longtail) supported and many other features. In a simple word, bot for MouseHunt. Time of next hunter horn and trap check will show on the web page title. The time of the next hunter horn will automatically detected without refreshing the page again. Users can customize the script according to their need by themselves such as add extra random time delay before sounding the hunter horn. Users can choose to bot safety with many safety check features which act like a human, or bot aggressively. Part of the script is actually base on Facebook MouseHunt Game Auto Horn Blower.

Continue reading MouseHunt AutoBot 1.28 – Chrome King Reward Sound Fixed

Hoax Alert – Top 10 Facebook Friends Who Viewed Your Profile

Recently I saw some of my Facebook friends start spreading a rather weird method to check and see the top 10 Facebook friends who viewed or stalk your Facebook profile. Below are the 2 examples of the method share through out the Facebook. I’m very sure it is a hoax when I first know of it.

So what are those ID use in Facebook? Those are the the Facebook users / friends which will appear in your top Facebook chat list especially those who recently chat with your or send you any Facebook message. It is nothing special. Even if you don’t enable Facebook chat, those ID will be there too.

As of today, I never heard of any method where you can actually track who viewed or stalked your Facebook profile. So don’t caught by those silly hoax that are try to attract your attention by telling you how to track your friends. None of them work!

by Ooi Keng Siang via Ooiks’s Blog

MouseHunt AutoBot 1.27 – King Reward Sound Fix

A very quick fix for King Reward sound problem on http://www.mousehuntgame.com/ page after they implement the login feature. It should be working now. I have a feeling that they will still make changes to the game, so keep me posted on the latest update on how the script working as I’m no longer playing the game as often as you all.

Script Description

MouseHunt AutoBot is an advance user script to automate sounding the hunter horn in MouseHunt application in Facebook, Hi5 and offside MouseHunt page with MouseHunt version 3.0 (Longtail) supported and many other features. In a simple word, bot for MouseHunt. Time of next hunter horn and trap check will show on the web page title. The time of the next hunter horn will automatically detected without refreshing the page again. Users can customize the script according to their need by themselves such as add extra random time delay before sounding the hunter horn. Users can choose to bot safety with many safety check features which act like a human, or bot aggressively. Part of the script is actually base on Facebook MouseHunt Game Auto Horn Blower.

Continue reading MouseHunt AutoBot 1.27 – King Reward Sound Fix

Speed Typing – Challenge Accepted

It all started when one of my friends posted a challenged post on Facebook. Beat his result in 10fastfingers.com. So me and my friends think it will be fun to accept the challenge and maybe make fun on our friend a little bit. Ever though we have been warned not to use any kind of cheating… well…

 

Continue reading Speed Typing – Challenge Accepted

Windows Store App – Focus on TextBox when Navigated To The Page

Some time you want to make your app more user friendly by automatically focus on specify control for example search text box so that when user open the page, they can start typing the keyword they want to search rather than click on the search text box first then only start typing.

I try to use TextBox.Focus() in OnNavigatedTo, but it nothing happen. So I try to use the same method use in Silverlight by creating a DispatcherTimer and delay the focus by 0.5 second. Well, this method work out in Windows Store App. If you are interested, below are the code.

// timer to create initial focus on control
DispatcherTimer initialFocusDispatcherTimer = new DispatcherTimer();
initialFocusDispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 500);
initialFocusDispatcherTimer.Tick += (tickSender, tickEvent) =>
    {
        initialFocusDispatcherTimer.Stop();

    // focus on search bar
    SearchTextBox.Focus(Windows.UI.Xaml.FocusState.Keyboard);
    };
initialFocusDispatcherTimer.Start();

 

 

by Ooi Keng Siang via Ooiks’s Blog

Get Ready for WOWZAPP 2012 in Malaysia

 

A few more days to go before WOWZAPP Malaysia 2012 kick start! So what is this WOWZAPP first? Just in case if you don’t know what is WOWZAPP, it is a worldwide hackathon for developers to get building cool apps for Windows 8. There are thousands of developers around the world building apps for the next generation of Windows during this event. WOWZAPP in Malaysia will be on 10-11 Nov 2012 at MMU, Cyberjaya. Music, free food, expert help, free resources will be available there to assist your learning and coding without sleep. Maybe a bit of sleep.

For more information: http://aka.ms/mywowzapp2012

Continue reading Get Ready for WOWZAPP 2012 in Malaysia

Facebook Missing Some Updates From Friends

“Why I never see the update post from my friend who everyone is discussing it now?” Does this sound too familiar to you? You know that you didn’t block your friend’s update but you just can’t found the update post on your news feed unless you go to that person’s profile / wall to see it.
There are some changes in Facebook which I’m not sure when and how, but here is what you can do.

Continue reading Facebook Missing Some Updates From Friends

Windows Store App – Check If File Exist or Not

Before Windows 8, to check a file exist or not on Windows Phone 7.5 or .NET can be as simple as calling the file.IsFileExist() and it will return a simple boolean indicated whatever the file exist or not. But Windows 8 team decided to have a totally different way and I had no idea why Microsoft or Windows 8 team decided to re-write it.

Anyway, here is how it work out in Windows 8 app (C# code):

public async Task<bool> IsFileExist(string path)
{
    try
    {
        await Windows.Storage.StorageFile.GetFileFromPathAsync(path);

        // file found
        return (true);
    }
    catch
    {
        // file not found
        return (false);
    }
}

 

by Ooi Keng Siang via Ooiks’s Blog

Install / Uninstall User Script in Google Chrome (Updated)

 

[Update] In Google Chrome version 27, you need to check the Developer mode in the Extensions setting in order to install any user script directly. It is recommended to use Tampermonkey extension in Google Chrome to install any user script in the future because Google Chrome has place some limitations on how user script can access the resources in the iframe which cause a lot of problems in many user scripts that include MouseHunt Autobot. I have write a blog post on how you can install user script in Google Chrome through Tampermonkey Extension.

 

This post is intended to help Google Chrome user on how to install or uninstall user script in their browser. Google Chrome version 21 had change the way how we can install user script. Now it only allow user script to be install in the Extensions page and web store but not from any tab opened.

How to install user scrips in Google Chrome

Step 1: Download the user script you want from website such as http://userscripts.org and save it to some place which can access easily like Desktop. (You can download by right-click on the Install button and choose Save link as…

Continue reading Install / Uninstall User Script in Google Chrome (Updated)