Friday, November 14, 2008

My First Gift

This was my first gift to my GirlFriend. hmm This gift is about 11 years old now huhuhuhu is that amazing?. As i remembered the prize of this items is around 40 - 60 pesos something yeah im not kidding that's not so expensive just I forgot the exact prize of it . I brought this from Gaisano Ilustre at ground floor I forgot the name of the store..

Tuesday, October 14, 2008

Amazing Works

Forwarded email of my officemate. I want to share with you guys that we can do it whatever we want just have focus on it, determination to finish it, believe that you can do it and always have faith in God. that is the secret of it.

Make sure you view it until the end.

is it amazing?

Thursday, October 2, 2008

How about it

Hay...... I don't know what to do and I can't even express myself what bothering me. I'm thinking about my wedding and my task at work.

Task at work . --> Last almost 3 months ago my boss assigned my to new project. I'm so excited cause the project was very good and interesting also i could meet new developers and their IT Project Director (awesome). But I'm worrying about it now cause it seems it take me to long finish the requirements. I admit that the requirements was not easy (headbang)(sweating). I would like to thank my boss that he gave me this opportunity and understanding us. He suggest that just always think positive and that's what I'm doing now even before hehehe . I want to make these things done now.

Wedding --> I know that every woman wants to have a church wedding. 4 months from now my girlfriend and i we're getting married. But before that we need to prepare necessary things. The requirements for the license, church, gowns, video, photos, reception, program, invitations and many more.. (sweating) (worried) I need to have big savings to make things done. Anyways I'm striving hard to make things done I'm worrying about it and I'm now pressured. I admit that I'm pressured but for her i can do it and make these things done (Think Positive and Believe). Just have a little patient pangit.

Any advise?

Sunday, September 28, 2008

8 Random Facts about Me

Hello Alritch. This is my first time and for you I'm posting some of the things i do, I don't like and I'm thinking..

1.) I'm In love to my Girlfriend and we're getting settle this coming year.
2.) I want to change my career cause it's not right for me(Thinking)....
3.) I cannot do conversation to our client if they have question regarding on the specific task (nervous) after that I'm losing my confident but on the positive side i want to improve it and to prove to them that is not my weakness.
4.) I love to watch scary bloody movies (killing each other)(chuckle).
5.) I rather buy some foods than buying cloths.
6.) I don't smoke i don't really drink. i really don't like the taste of any of beverage.
7.) I love to play basketball every Sunday even the end of the day all of my body is painful.
8.) When I'm alone i always talk to myself. hahaha (chuckle)

Now its done. I'm tagging this people.

1.) Dahl
2.) Admiral
3.) Miss Elle
4.) ZAZA
5.) Dgores
6.) Eunice
7.) Ridwan
8.) Aice

And the RULES are:

1. Each player starts with eight random facts/habits about themselves.
2. People who are tagged need to write their own blog about their eight things and post these rules.
3. At the end of your blog, you need to choose eight people to get tagged and list their names.
4. Don’t forget to leave them a comment telling them they’re tagged, and to read your blog.

Friday, September 19, 2008

Message box on vb.net

This is just sample messagebox code using vb.net language. I place this in the onclick button and prompt it during save. the code looks like this one.

Dim rstResult As DialogResult

rstResult = MessageBox.Show("Are you sure want to update?", _
"Business Card", _
MessageBoxButtons.YesNo, _

If rstResult = DialogResult.Yes Then
// do some action here. is the user selected Yes and nothing is no.
End If

How to validate textbox to numeric values only vb.net

This will validate inputed value on the textbox is not a numeric and set it to empty textbox.

If Not (IsNumeric(Me.txtY.Text)) Then
Me.txtY.Text = String.Empty
End If

Hope this will help you to validate you textbox control.

How to get the available fonts on the server - vb.net

This is my first time to get the available fonts on the server using vb.net language.
anyways i create a method that loads up the fonts on the dropdownlist. the code look like this

Private Sub LoadFonts()
Dim installed_fonts As New InstalledFontCollection
Dim font_families() As FontFamily = installed_fonts.Families()

' Display the font families.
For Each font_family As FontFamily In font_families
' font_family.Name & ", "
Next font_family
End Sub

Hope this help you.

Monday, September 1, 2008

How to find what is the current page C#

How to get the Url page you are currently browsing. On the page load you can put one line there as like this.

string url = Page.Request.Path;

Now you can get the url page. hope this help.

Thursday, August 28, 2008

how to check folder exist and create a folder

i have this task checking the folder if exist and if not create a folder. This is simple.

First i need to create a form with 1 textbox, button and a label in my page. I named the textbox as txtFolderName, button btnCheckandCreate and the label as lblMessage so now, I need to put the event in my button on click.. on the onclick eventon the button i need to put the code.

protected void btnCheckandCreate _Click(object sender, EventArgs e)
lblMessage.Text = "";

if (!System.IO.Directory.Exists(@"c:\" + txtFolderName.Text.ToUpper() + ""))
System.IO.Directory.CreateDirectory(@"c:\" + txtFolderName.Text.ToUpper() + "");
else {
lblMessage.Text = txtFolderName.Text + " is available";

Thats it. its so simple. at first i need to set the lblmessage to set to empty then check the inputed if is the folder exist and if not it will create a folder on it else put an message that the foldername is existing. hope this help.

Wednesday, August 20, 2008

How to redirect page using javascript

this is very simple coding and i always forget this one.

function redirectUrl()
window.location = "http://ehamak.blogspot.com";

You need to put some button event onclick and call the function redirectUrl.
This will redirect to the next page. Hope this help.

Davao City Kadawayan Festival 2008

Just to give you an Idea. why we're having an Kadayawan Festival..

It is a celebration of Good Harvest! This globally famous festival is a weeklong celebration and thanksgiving for nature’s bountiful harvest. Kadayawan Festival is being celebrated every 3rd Week of August. A celebration of the plentiful harvests of fruits and orchids during the season. Kadayawan is derived from the prehistoric word “madayaw,” a warm and friendly greeting also used to explain a thing that is valuable, superior, beautiful, good, or profitable, “Kadayawan” in Mandaya means anything that brings fortune, a celebration of life, a thanksgiving for the gifts of nature, the wealth of culture, the bounties of harvest and serenity of living. Ethnic tribes around Mt. Apo usually gathered during the harvest-time when they had a bountiful harvest to give thanks to their gods particularly the all-powerful Bathala (supreme God). According to legend, the occasion is noticeable by happiness, singing, and dancing, as well as offerings to their divine protectors.

T he festival is celebrated in the month of August with floats of fresh flowers and fruits, and indak-indak sa kadalanan or street dancing in colorful costumes. A variety of tribes parade the streets with their tribal costumes and jewelry. The city of Davao comes alive every year in August when it holds it yearly harvest festival. The streets are adorned with local fruit & vegetables while people hold street dances with abandon for four days. The harbour is the venue for native & power boat races. Everybody fights for seats to watch the Horse Fighting wherein stallions fight each other over the rights to mate with a mare. The crowd is sometimes tracked by the horses if they get too close. The last day the street is full of costumed dancers dancing to the local beat & decorated floats with glamorous Mindanao girls as eye candy. It's a time of fun & abandon. The festivity is not complete without the Bya'Neng ng Kadayawan or the Miss Kadayawan beauty contest. There is also the horsefight, a tribal animal show similar to the bullfight in Spain.

Photo we've taken in Rizal Park Entrance .

Barbecue here. eating time..

Imagine if i can drink all this? hmmmmm???? ...

Lots of bids for sale..

The latest tribe here in davao city.. hehehe just kidding, is she pretty?

This pictures are taken by my girlfriend cellphone..

This friday will take some picture's on floral float parade this would be a great event here in Davao City.. Also Hiyas ng kadayawan, horse fighting and lastly indak-indak sa kadalanan this are the most spectacular event.

Tuesday, August 5, 2008

Try This one

My colleague did try this one and he shout and jump i dunno why try this one.. hope you enjoy it..

This is an amazing game of skill and patience. Do not touch the walls or you will have to start the game all over. Sound effects will help find your way to the end. Try and finish all 4 levels.Do you have the hands of a brain surgeon or do you write with crayons? Try not to cheat and use both hands.

This is much awesome if you have speaker or headset. let see if you can reach level 4. have a nice game.. and also leave comments for your level :-p. Thanks..

Tuesday, July 22, 2008

Voted email of the year.

I just want to share and to show you how we are blessed. This email forwarded to us by my boss.
Here is something to ponder.

If you think you suffer in life, do you suffer as much as he does?

If you complain about your transport system, how about them?

If your society is unfair to you, how about her?

If you think you are unhappy, look at them

If you think your salary is low, how about her?

If you think you don't have many friends...

If you think study is a burden, how about her?

Enjoy life how it is and as it comes

Things are worse for others and is a lot better for us J

There are many things in your life that will catch your eye

but only a few will catch your heart....pursue those...

Friday, July 11, 2008


My mother is a 53 years old woman. i love my mother a lot she always there for me. during in my school days in elementary, high school and during college. She's there always in times of ups and downs even its difficult but shes there for us for my brother and sister. i wrote this one cause i miss my mother shes on the hospital today and she got an operation to remove the tumor in her breast. i am so worried cause shes so fat and i think shes also weak. thanks also for my brother lester for taking care of her, his a very bright guy and i admire him and am happy to be his brother (bow) . Anyway I pickup my Girlfriend in her office and walk going home, I saw my Father in front of the church, I don't know what he is doing there. but i know he is also worried about my mother situation, even he didn't tell me but i felt and saw to his face. Get well soon mom i love you so much and we love you. I have no one to talk about my feelings so i just blogs it here. get well soon mom :(

Tuesday, July 8, 2008

Cute Pictures

Thursday, June 26, 2008

How to remove character and leave numbers in c#

Regex.Replace Method

Within a specified input string, replaces strings that match a regular expression pattern with a specified replacement string.

// assigning value into the string xvalue.
string xvalue = "199 RemoveText";

// removing character and leave numbers
decimal value = (decimal)Regex.Replace(xvalue, @"[\D]", "");

//As the result:

Monday, May 26, 2008

How to store and retrieve cookie C#

cookie["Name"] = "Kiko Salva"
cookie.Expires = DateTime.Now.AddYears(1);

// To retrieve

lblName.Text = "Cookie Created.";
lblName.Text += "New Customer: " + cookie["Name"];

Tuesday, May 13, 2008

How to split in c#

private void SplitNo()
// string seperated by colons ';'
string items = "1--->;2--->;3--->;4--->;5--->";
string[] collection = new string[4];
// define which character is seperating fields
collection = items.Split(';');

for (int x = 0; x < collection.Length; x++) { Response.Write(collection[x] + "
Sample Output:


REPLACE (Transact-SQL)

Replaces all occurrences of a specified string value with another string value.


Url Value = "http://www.samplewebsite.com/left/right/getch/"

I want to remove the http://www.samplewebsite.com/ and change it to http://www.minewebsite.com/

Query Sample :

update tbl_URLs set url = replace(url,'http://www.samplewebsite.com/','http://www.minewebsite.com/')

the output must be:

Hope this will help.

Move Image to new destination in vb.net

The System.IO namespace contains types that allow synchronous and asynchronous reading and writing on data streams and files.
// First you need to declare this on first
Imports System.IO

// I created a function called CopyFile
// Source = "c:/images/1.jpg"
destination = "c:/move/1.jpg"

Private Sub CopyFile(ByVal source As String, ByVal destination As String)
My.Computer.FileSystem.CopyFile(source, destination, False)
End Sub
Hope this help. Thank you.

Debugging Javacript on Firefox

Tips on debugging HTML, CSS, and JavaScript in Mozilla Firefox. It cover a number of concept such as using the console, Interactive debugger and timer features of the firefug extension for firefox.
Click here

Tuesday, April 8, 2008

Setup localhost SMTP virtual Server

1.) Start -> run -> Type "Inetmgr"
2.) Right click Default SMTP Virtual Server
3.) Goto Tab Access
4.) Click Relay button Then click Add button
5.) Click single computer option type on the IP address enter "" or localhost
6.) then click Ok

Friday, April 4, 2008

Jairosolutions Office


Jairosolutions Team and Office

Sunday, March 30, 2008

Mergrande - Pics

We had a great time swimming at mergrande beach resort.