Categories


Posts Tagged ‘Programming’

Infix to Postfix and Prefix

image from www.codeproject.com On the last day of our class for the first semester, our instructor gave us an assignment about infix, postfix and prefix.  The assignment was to create a program that converts infix equations to its postfix form and prefix form.  I search around the net and the resources are so few that it took me days to have a sample program in C.  I am not that good in C programming but I can create C++ or

Continue Reading

1 Comment

Simple PHP Date Function

PHP has a function date where you can specify different ways on how to display the date.  How do you generate current date and display only month and date like ‘September 2010′.  Here is a simple php howto, The code above will simply output September 2010, a simple code that will surely help you especially when coding PHP from scratch. Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments

Continue Reading

No Comments

Bubble Sort and Graphics.h in Dev C++

Lately I have been searching  this post on the net about graphics.h in dev c++ and found few resources about it .  So I decided to write how to use graphics.h in dev-c++.  I am expecting that you have already installed bloodshed dev-cpp on your machine.  Graphics.h is a header file found in borlan c but because of its late development devcpp is now the mostly used IDE and compiler in programming c++. Below are the steps on how to

Continue Reading

21 Comments

Change a String or Character in MySQL

Knowing the right MySQL statement is the most important part in having thousands of data in your database, one false move and you can’t undo things.    If you want to change a string or character in your database and doing it manually in thousands or millions of entries then that should consume all of your time. One example scenario is when you want to change all the entries containing a character ‘_’ to this character ‘-’ .  All you need

Continue Reading

No Comments

Getting Main Domain

Do you want to extract the main domain of a URL?  Here is a function that works well and can be modified easily.  I found this function while searching for a good Regular Expression to fulfill such result.   To test the code we can use the function,   Click here to download. This code really helped me a lot.  There are a lot of Regular expressions out there but this simple approach can break all those head breaking expressions. 

Continue Reading

5 Comments

Translation Services

Google has provided web developers foreign language translation api. Web content translation is not a problem anymore, with google’s Google Translate, research from different countries is now made possible. This is a big help especially for researchers on the net, we can now easily understand web contents and even text from outside sources which also serves as a document translation services. Google allows us to copy and paste phrases, sentences and paragraphs from outside sources to their google translate and

Continue Reading

4 Comments

Code Igniter Query

Code Igniter is one of the best PHP framework available today.  It is free to download and user guide can be found together with the package. In Code Igniter the class that has the database queries or the methods that deals with getting the data on the database is placed inside the MODEL folder.  Just remember the “D” which tells us that Database methods are placed in this folder as what Jeffrey Way said in his tutorials. Here are different

Continue Reading

6 Comments

Page 1 of 41234

Rss Feeds