Recent Activites
Blog Advertising - Get Paid to Blog

ConsoleProgressBar - Simple Progress Bar Function for your VB.Net Console Application

Posted by Daniel - 28,106 Views

progress bar for console applicationIt is good to know that long process is still ticking and one of the best way to provide the indicator is to have a progress bar. I am pretty sure you already knew how to display progress bar when you deal with windows form application but what about console application, is there any progress bar component which can be easily incorporated into the console screen?

I’ve searched the internet to find this kind of stuff but I found nothing (let me know if I am wrong), so there is no other way than to create it myself and here it is: my own progress bar for console application written in VB.Net.

It’s very simple. I use a single sub procedure instead of packing it as a class since I don’t think it’s required. A sub procedure called RenderProgressBar is the only procedure responsible to process and render the progress bar on the console screen.

read more..

Posted in: Programming - Comments(2) March 2008 | raw

Visual Basic Version of ASCII-to-PDU and PDU-to-ASCII Converter Functions

Posted by Daniel - 15,487 Views

ASCII to PDUI had posted related article about ASCII to PDU Conversion but that was written in C language. I got nothing to do today and when I explored my old archives, I found this one. A bundle of Visual Basic Functions to convert ASCII to PDU and vice versa.

I have no idea who is the original coder but as long as I can remember, a friend gave it to me. Never mind that, I’ve search the net and found nothing similar to it so I guess it can be treated as belong to public, or at least I want it that way :D You can let me know if I am wrong. I am not putting it under Software Collections - Free In House category since I am not the original coder.

Same as the C version, this bundle of functions contains two major functions: ASCII2PDU and PDU2ASCII. The first one is to convert ASCII to PDU and I think you can guess what the second one does.

read more..

Posted in: Programming - Comments(3) March 2008 | raw

How to Get User Input and allowing more than 256 characters to be entered on .NET Console Application

Posted by Daniel - 40,199 Views

readlineConsole Application is good if you want to perform processes without the need of user intervention. Usually automated processes designed to run on schedule. But you can also prompt the user for action if for some reasons you need to do it and it is very simple. All you need to do is utilize the Console.ReadLine command.

This how to article will show you an example of it. The scenario applied in the included demo project is how to prompt the user for keyboard input and how to extend the 256 characters limit. That’s why you see two related processes in the title of this post.

GET USER INPUT. As I said before it’s very simple to get the user input. Declare a string variable then assign Console.ReadLine command to it as shown below:

Dim strInput As String
strInput = Console.ReadLine()

When executed, the application will prompt the user for keyboard input. After the user hit the [Enter] key, the strInput variable will contain characters typed by the user.

Unfortunately, the default limit of characters allowed to be entered is 256 characters. It’s quite reasonable since most of console applications are not designed to handle large amount of user input at a time, but if somehow you need to get more than that limit, following is the trick:

read more..

Posted in: Programming - Comments(1) March 2008 | raw

Change the WordPress permalink structure to the best format, and yes it’s a little bit scary :D

Posted by Daniel - 10,432 Views

permalink structureToday this blog is about 2 months old. It is only 2 weeks ago when I began to put more attention on how search engines see my pages. Let me be honest with you that at this moment the search result from this blog on Google looks bad.

Speaking about search engine result, I think it’s related to what we call as Permalink Structure. It’s a URL path structure used to access every resources/pages on your site. If you use WordPress as your blogging platform you must be familiar with this term.

I had posted similar article titled “Something is wrong, the Google Search Result from my blog looks bad“. Listed there are several steps I had been done to get a better search engine optimized pages. You know what? By writing that post, actually I am waiting for someone who understand this stuff to give opinions about my todo list. And yes, I got lucky.

A friend from Netherlands, his name is Oeroek had posted very-very helpful comments on that post. His comments are useful for someone who new to this matter like me. One of his suggestion is: I should change my permalink structure from the current one to another pattern with less noise in it.

read more..

Posted in: Blogging Related - Comments(10) March 2008 | raw

Something is wrong, the Google Search Result from my blog looks bad, don’t laugh please :D

Posted by Daniel - 4,922 Views

google search resultI was checking my blog’s pages which are already indexed on the Google Search and I spotted some of the items there are look really-really bad. It gets me to realize that I am not doing the best yet in optimizing this blog for search engines. Then I asked myself “Do I exactly know how to get a better result in SEO?“, the answer is “No, I have idea at all…” but it won’t stop me from doing search and research to get the best result in SEO with an appealing look without ignoring that I am also building this blog for human like you.

Well, I guess I am talking too much, right? :D OK, lets start with Google Search. As I said before that most of the items shown there are looking bad. Means they’re not appealing enough to persuade the searchers to click it. Following are the reasons why I said they’re not appealing enough:

read more..

Posted in: Blogging Related - Comments(10) February 2008 | raw

P 2 OF 10«12345»...Last »