Setting up a static IP Address in debian

November 28th, 2009

To setup a static IP in debian edit the file:

/etc/networking/interfaces

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

In this case the IP of the server is 192.168.1.100, defined by the setting “address”

To apply this configuration type /etc/init.d/networking restart

You’ll get a message that it’s restarting the network interface, If your connected remotely via shell, you might get disconnected sinc you changed the ip address.

also, make sure the necessary DNS settings are changed in the /etc/resolve.conf

Install CURL on Debian

November 15th, 2009

for php 4:

apt-get install curl php4-curl libcurl3-dev

for php 5:

apt-get install curl php5-curl libcurl3-dev

root access required

Restart inetd on debian

August 16th, 2009

Stop Service:

/etc/init.d/openbsd-inetd stop

Start Service:

/etc/init.d/openbsd-inetd stop

Re-Start Service:

/etc/init.d/openbsd-inetd restart

IF: File does not exist…

apt-get install telnetd

Then Re-start the service.

Someone who understands

April 4th, 2009

A store owner was tacking a sign above his door that read: “Puppies For Sale”. Signs like that have a way of attracting small children and sure enough, a little boy appeared under the store owner’s sign.

“How much are you going to sell the puppies for?” he asked.

The store owner replied, “Anywhere from $30 to $50.”

The little boy reached in his pocket and pulled out some change.

“I have $2.37,” he said. “Can I please look at them?”

The store owner smiled and whistled and out of the kennel came Lady, who ran out in the aisle of his store followed by five teeny, tiny balls of fur. One puppy was lagging considerably behind.

Immediately the little boy singled out the lagging, limping puppy and said, “What’s wrong with that little dog?”

The store owner explained that the veterinarian had examined the little puppy and had discovered it didn’t have a hip socket. It would always be lame.

The little boy became excited. “That is the puppy that I want to buy.”

The store owner said, “No, you don’t want to buy that little dog. If you really want him, I’ll just give him to you.”

The little boy got quite upset. He looked straight into the store owner’s eyes, pointing his finger, and said, “I don’t want you to give him to me.

That little dog is worth every bit as much as all the other dogs and I’ll pay full price. In fact, I’ll give you $2.37 now, and 50 cents a month until I have him paid for.”

The store owner countered, “You really don’t want to buy this little dog. He is never going to be able to run and jump and play with you like the other puppies.”

To his surprise, the little boy reached down and rolled up his pant leg to reveal a badly twisted, crippled left leg supported by a big metal brace. He looked up at the store owner and softly replied, “Well, I don’t run so well myself, and the little puppy will need someone who understands.”

Don’t we all need someone who understands?

Protected: I wish you happiness, always

March 30th, 2009

This post is password protected. To view it please enter your password below:


Sulat ni nanay at ni tatay

February 16th, 2009

i recieved this email today… :)

Sa aking pagtanda, unawain mo sana ako at pagpasensiyahan.

Kapag dala ng kalabuan ng mata ay nakabasag ako ng pinggan
o nakatapon ng sabaw sa hapag kainan, huwag mo sana akong kagagalitan.
Maramdamin ang isang matanda. Nagse-self-pity ako sa tuwing sinisigawan mo ako.

Kapag mahina na ang tenga ko at hindi ko maintindihan
ang sinasabi mo, huwag mo naman sana akong sabihan
ng ‘binge!’ paki-ulit nalang ang sinabi mo o pakisulat nalang.
Pasensya ka na, anak. Matanda na talaga ako.

Kapag mahina na ang tuhod ko, pagtiyagaan mo sana akong
tulungang tumayo, katulad ng pag-aalalay ko sa iyo
noong nag-aaral ka pa lamang lumakad.

Pagpasensyahan mo sana ako kung ako man ay
nagiging makulit at paulit-ulit na parang sirang plaka.
Basta pakinggan mo nalang ako. Huwag mo sana akong
Pagtatawanan o pagsasawaang pakinggan.

Natatandaan mo anak noong bata ka pa?
kapag gusto mo ng lobo, paulit-ulit mo ‘yong sasabihin,
maghapon kang mangungulit hangga’t hindi mo nakukuha ang
gusto mo.
Pinagtyagaan ko ang kakulitan mo.

Pagpasensyahan mo na rin sana ang aking amoy. Amoy matanda, amoy lupa.
Huwag mo sana akong piliting maligo. Mahina na ang katawan ko.
Madaling magkasakit kapag nalamigan, huwag mo sana akong pandirihan.

Natatandaan mo noong bata ka pa? Pinagtyagaan kitang habulin
As ilalim ng kama kapag ayaw mong maligo.

Pagpasensyahan mo sana kung madalas, ako’y masungit,
Dala na marahil ito ng katandaan. Pagtanda mo,
maiintindihan mo rin.

Kapag may konti kang panahon, magkwentuhan naman tayo, kahit sandali lang.
Inip na ako sa bahay, maghapong nag-iisa. Walang kausap.

Alam kong busy ka sa trabaho, subalit nais kong malaman mo na sabik na sabik
Na akong makakwentuhan ka, kahit alam kong hindi ka interesado sa mga kwento ko.

Natatandaan mo anak, noong bata ka pa?
Pinagtyagaan kong pakinggan at intindihin
ang pautal-utal mong kwento tungkol sa iyong teddy bear.

At kapag dumating ang sandali na ako’y magkakasakit
at maratay sa banig ng karamdaman,
huwag mo sana akong pagsawaang alagaan.

Pagpasensyahan mo na sana kung ako man ay maihi o madumi sa higaan,
Pagtyagaan mo sana akong alagaan sa mga huling sandali ng aking buhay.
Tutal hindi na naman ako magtatagal.

Kapag dumating ang sandali ng aking pagpanaw, hawakan mo sana ang akin g kamay
At bigyan mo ako ng lakas ng loob na harapin ang kamatayan.

At huwag kang mag-alala, kapag kaharap ko na ang Diyos na lumikha,
ibubulong ko sa kanya na pagpalain ka sana …
Dahil naging mapagmahal ka sa iyong ama’t ina…

Written by Rev. Fr. Ariel F. Robles
CWL Spiritual Director
St. Augustine Parish
Baliuag, Bulacan

SMS Scam strikes again!

January 22nd, 2009

I was working late in the afternoon when i received an SMS message from an un-registered user. Informing me that i won 100,000 pesos. the actual message as follows:

“PCCNS Company informing you that ur CELFONE# had w0n 100,000.00 last Jan21, 09. DTI#4312 series of 2009. Just txt ur name, age & address then call us, im MARK TAN”

If i really had won this amount, why would a company giving away 100,000 pesos want me to call them? How can they afford to give away 100,000.00 when they can’t afford to give a call instead?kinda stupid.. *sigh*

To all people out there… Beware of text messages informing you that you’ve won a prize. In case you want to take the bait, make sure you don’t spend a thing before the prize even reaches you. Don’t be a victim!

If you are in doubt, try calling Department of Trade and Industry (DTI) they sure may be able to assist you clear your doubts. Call their call center: (+632) 751.3330

urban legends: purefoods accident

August 28th, 2008

just this afternoon, i recieved a message containing this message.

helo!tell ur fam n friends na wag muna buy ng purefoods na products ha kase ung ksama ko sa bank dati, sa purefoods na nagwowork ngayon eh nakachat ko sya kanina sabi nya namatayan sila ng kasama nung isang araw nahulog sa gilingan nagiling 2 paa then eventually namatay dahil naubusan ng dugo.dated aug-sept wag daw muna bibili

I just wanted to post my view regarding such a “scam” .. hehe maybe…?

well, i’m not really a purefoods fan, but i do buy purefoods products… but this does not stop me from buying purefoods products.. why? should you?

San Miguel Corporation has been around for decades and is now one of the leading producers and marketers of branded food products both in human and in animal nutrition here in the Philippines.

If this scam roaming around the internet is true, na meron nga na accidente, do we think that purefoods/san miguel corporation will still sell the affected products? If i were the even just a manager on the area.. i would stop the production and create an advice to dispose affected products right?

i doubt that purefoods will gamble their decades of hardwork and trusted name with just a few thousands… say even a million pesos… they can throw a million just to save their ass… lol….

besides, there are actually no proofs that this event happened. if it was true… extend your condolonces to the person involved. he was there to help provide the nation with quality product…

well this is just my view, wala lang ako magawa kaya eto dakdak lol :)

apache crashes due to high traffic

June 17th, 2008

post moved to apache crashes due to high traffic

how to dump mysql database from command line

June 17th, 2008

this post moved to how to dump mysql database from command line