New Hosting, New Name

Finally, I had my blog moved to the new hosting. Besides that I gave the new name to my blog. It’s “Tien’s Blog” instead of “Platformular’s blog” which “Platformular “was the name of my Dev house. 

There are a few projects I am working on right now as well as blog articles. Hopfully they will be published soon.

Change to new blog hosting

It is troublesome when you start fighting spam for website, application or even this Blog!

There were a couple hundreds of thousands spam comments I deleted last week. Originally I was going to filter every comment and make sure that the useful comments can be posted. However, there were just too many spam comments to read through so I have to manually write a “delete *” sql commend against the MySQL.. (free up more than 4GB in disk space..LOL)

I am thinking to move my blog to wordpress.com where I can just concentrate more on writing instead of maintaining. If you have any ideas/suggestion about good blog host. email me at tien@platformular.com. I am looking to migrate my blog in 2 weeks

As the same time, I have a number of request about my blog articles and hopefully they are coming out at the same time when my new blog’s ready 🙂

Send Text Messages in your application in C#

Sometimes, you want to do something that more than c# can do. In one of my projects, a deal bargain website requires to send out text messages to alert their members when pre-defined keywords match with the new deal submitted. It’s a great use of text messages alert to shopper who are looking for a particular keyword in the deal.

Continue reading “Send Text Messages in your application in C#”

Create A Dashboard Experience In Asp.Net MVC

In most of the time while creating a web application, a secured section for administrating the application is always needed. Something like a control panel or back end of the website(One of my client even call it a database!). No matter how you call it. You do not want to display a bunch of links when you first entered. Instead, you want to show useful data, important notifications or graphical reports using pie or bar chart before they decide where to go in the application. Therefore, a dashboard is needed for that purpose.

dashboard_aspnetmvc

Continue reading “Create A Dashboard Experience In Asp.Net MVC”

Load Google Chart by Ajax using Asp.net MVC and jQuery

If you are looking for a modern chart tool in a modern browser, you must not not to know the free one that offer by Google – Google Chart, is a HTML5/SVG technology to provide cross-browser compatibility (including VML for older IE versions) and cross platform portability to iPhones, iPads and Android. No plugins are needed. Don’t get confused by the image chart offered by Google, which was another chart tool. Now the new HTML5 Google chart provides more interaction and better rendering to users .googlechartaspnetmvc Continue reading “Load Google Chart by Ajax using Asp.net MVC and jQuery”

Amanah Dedicated Server Hosting at Toronto – 3 Month Review

I was looking for a Toronto based collocation hosting for my own business. After visiting a few data centers in Toronto, I decide to go with Amanah Tech who primary offers dedicated hosting service in Toronto (GTA).

It’s a long story about how I find them. I recalled a conversation with their sales and he was kind enough to provide me a competitive price to fit my own server into their cage. In facts, I liked Amanah’s data center where locates at 151 Front Street West which is one of the best data centers in Greater Toronto Area. It’s easy accessed by TTC subway or Go Train and only a minute walk from Union station. Perfect for me who needs to come in to perform hardware upgrade or maintenance regularly.
Continue reading “Amanah Dedicated Server Hosting at Toronto – 3 Month Review”

How to check if string array contain a string

You don’t want to write a loop to detect if a string array contains a string and ends up searching the simplest way to do it without writing a loop over internet. This is what I found that’s most efficient for .net developers.

.Net 2.0

string[] strArray = { "Dell", "Acer", "HP" };
bool exist = Array.Exists(strArray , s=>s.ToLower().Contains("Asus"));

.Net 3.5

string[] strArray = { "Dell", "Acer", "HP" };
bool exist = strArray.Contains("Asus"));

How to check if enter key pressed in jquery

In a user specific designed application or website, we want application start taking action without user click extra button. Especially in the scenario of search function. You want user be able to start searching when enter key is pressed on the textbox.

<input type="text" id="search" />
<script>
$('#search').keypress(function(e) {
    var keyCode = (e.keyCode ? e.keyCode : e.which);
    if(keyCode  == 13) {
        alert('Enter key pressed');
    }
});
</script>