Visual Basic Version of ASCII-to-PDU and PDU-to-ASCII Converter Functions
Posted by Daniel - 8,066 Views
I 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.
How to Get User Input and allowing more than 256 characters to be entered on .NET Console Application
Posted by Daniel - 3,547 Views
Console 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:
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:
The Modified Version of phoogle WordPress plugin - Eliminating the needs of Exec-PHP
Posted by Daniel - 1,225 Views
This is the modified version of phoogle plugin for WordPress. phoogle is a WordPress plugin to display Google Map within your post. The Original version requires the installation of Exec-PHP, another wordpress plugin to allow the execution of php script on your post.
I don’t have Exec-PHP installed and I have no intention to install it, so here it is the result of my modification on the original phoogle. Now it doesn’t require Exec-PHP and I am glad I had it done. Usage Example can be found here.
If you are wondering what kind of modifications I did so phoogle can display the Google Map without the Exec-PHP, here is the explanation:
How to easily display a cute Google Map inside your WordPress Post
Posted by Daniel - 2,251 Views
Google Map in your WordPress post? Yup, I think it’s going to be cute especially if you are blogging on topics about about traveling. I had been searching for a plugin to get a simple and easy implementation of google map into the WordPress post and yes I found it. It’s called phoogle plugin created by Justin Johnson & Chris Peneguy. It’s a good plugin with a sophisticated admin panel BUT it has a downside: it needs the Exec-PHP to be installed. Exec-PHP is a plugin which allows you to run php scripts inside your post.
If you already have Exec-PHP or similar plugin installed for some reason, you can just use the original phoogle plugin which you can get it here.
But if you don’t have Exec-PHP installed and have no intention to install it, I have a good news: Now you can use my modified phoogle plugin so you can display the Google Map without the need of Exec-PHP.
Bringing the Lovely VBScript Split Function into Delphi with a Custom Function
Posted by Daniel - 2,583 Views
It was a very old idea that I want to be able to perform the process carried out by the VBScript Split Function with Delphi. I had done it once but only capable of doing the split process with only one character as the delimiter, if I want to split a series of strings by two or more character as the delimiter, it didn’t work. This is the update, now I can perform the Split process with more than one character as the delimiter.
Before you get confused by what the Split Function does, let me explain: Split Function which is found as a built in function on the Visual Basic family languages will slice a strings based on a character delimiter specified and then will return an array containing each pieces from the slice process.
Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.
-
Get my Full Feed Here
Comments - Thanks Guys :)
Rangga Kusuma: Gan, Tengkiu buat postingan yang sangat berguna. Kebetulan ada project utk bikin sms gateway, dan converter Agan sangat berguna utk...
Chuck Norton: I actually went ahead & bolted over to Justin’s Get The Image plugin here: http://justintadlock.com/ar...
Chuck Norton: Question: is it possible to insert something like [custfieldimg=”joice1.jpg,15 0,1:1″] into the actual templates instead of...
Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.
