tag:blogger.com,1999:blog-1594781094328359752024-03-05T13:40:48.971-08:00Beat My OddsPaying my tribute to the community...bos_tsiphttp://www.blogger.com/profile/05976499565985285566noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-159478109432835975.post-3867352974314608632011-01-14T22:29:00.000-08:002011-02-24T01:59:35.351-08:00Facebook-like chat part 2<h1>This is my old blog. You can find the updated version of the Facebook-like chat <a href="http://www.rockerprog.com/portfolio#shutterbox">HERE</a></h1><br /><br /><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXWz4ockGTDH71F6AvlgUicfvyMLph5rHPiB3rKUbhWZHn5Ds7KLITVE1T-a8hjiE_CoE2mM5vkmfRBjNc0avzcJcJMPpOSwMX5SgICFoXcBiPJxMAZRnpkw7jp4UVl88jL1F9Wa_wC6CF/s1600/facebookch.jpeg" imageanchor="1" style="clear:left; float:left;margin-right:1em; margin-bottom:1em"><img border="0" height="310" width="215" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXWz4ockGTDH71F6AvlgUicfvyMLph5rHPiB3rKUbhWZHn5Ds7KLITVE1T-a8hjiE_CoE2mM5vkmfRBjNc0avzcJcJMPpOSwMX5SgICFoXcBiPJxMAZRnpkw7jp4UVl88jL1F9Wa_wC6CF/s320/facebookch.jpeg" /></a></div><br />
It's been a while since my first attempt at creating a facebook-style chat. Unfortunately, the original server where it was hosted was formatted, thus making some disgruntled posters(http://bostsip.blogspot.com/2009/10/facebook-like-chat.html). Sorry guys, I really just didn't have time. But to make up with this, I've made another one. I used codeigniter as the php framework and jquery for javascript. <br />
<br />
Big thanks to this <a href="http://www.bennadel.com/blog/1740-Building-A-Fixed-Position-Bottom-Menu-Bar-ala-FaceBook-.htm" target="_blank">post</a> also. It saved me time on creating a bottom menu ala-Facebook.<br />
<br />
<span style="font-weight:bold;">Here's the demo:</span><br />
<a href="http://shutterbox.rockerprog.com/" target="_blank">http://shutterbox.rockerprog.com/</a>. Thanks to <a href="http://greatwwwhost.com/">Jonee</a> of <a href="http://www.phpugph.com">PHPUGPH</a> for hosting the demo.<br />
<br />
<br />
<span style="font-weight:bold;">To test:</span><br />
login using different usernames on different browsers or different PCs<br />
<br />
<b>Download it here:</b><br />
<a href="http://sourceforge.net/projects/facebook-likech/" target="_blank">http://sourceforge.net/projects/facebook-likech/</a><br />
<span style="font-weight:bold;"><br />
You may also checkout(SVN) the files here:</span><br />
https://facebook-likech.svn.sourceforge.net/svnroot/facebook-likech<br />
<br />
<span style="font-weight:bold;">Installation instructions:</span><br />
1. extract to your http folder<br />
2. edit system/application/config/database.php<br />
3. change database parameters as pecified in these config variables:<br />
<br />
$db['default']['hostname'] = "";<br />
$db['default']['username'] = "";<br />
$db['default']['password'] = "";<br />
$db['default']['database'] = "";<br />
<br />
4. edit system/application/config/config.php<br />
5. change values in the following variables/constants:<br />
<br />
$config['base_url'] = "http://yourwebsite/";<br />
define('MAINSITE_URL', 'http://yourwebsite/');<br />
//you may use .htaccess to remove index.php<br />
define('MAINSITE_INDEX', 'http://yourwebsite/index.php/');<br />
<br />
6. create the database by uploading the sql dump file under the sql folder<br />
7. to create a new user, run the following query<br />
<br />
//password is password with username as its salt, encryption uses Secure Hash Algorithm<br />
INSERT INTO `facebookchat`.`users` (`username`, `password`, `session_id`, `created_date`, `modified_date`) VALUES ('test', SHA1('testtest'), '', CURRENT_TIMESTAMP, '0000-00-00 00:00:00');<br />
<br />
8. have fun !<br />
<br />
Feel free to suggest any improvements on this application guys!bos_tsiphttp://www.blogger.com/profile/05976499565985285566noreply@blogger.com38tag:blogger.com,1999:blog-159478109432835975.post-64604328815919725412010-10-10T21:16:00.000-07:002010-10-19T19:36:13.548-07:00Automated Mysql BackupI've created a routine backup shell script that dumps the database on an sql file. Hope this would be helpful. ;)<br /><br /><br />script:<br /><pre><br />#!/bin/bash<br /><br /># Database Backup<br /># exports a compressed dump sql file<br /># author: Ryan Icasiano<br /># date: 07-19-2010<br /># Disclaimer: By downloading this script, you agree that the author is not liable for any unintended damage to your database/application<br /># you may run this manually or via scheduled task in cron<br /><br /># initalize<br />datetoday=`date +"%Y%m%d"`<br />daytoday=`date +"%d"`<br /># adjust if you wish...<br />daysago=`date +"%Y%m%d" --date="20 days ago"`<br />savedir="/path/to/backup/directory/"<br />dbhost="hostname"<br />dbuser="username"<br />dbpassword="password"<br />dbname="mydatabase"<br />olddatabase=$savedir"mydb-"$daysago".sql.tgz"<br />newdatabase=$savedir"mydb-"$datetoday".sql.tgz"<br />newmonthlydatabase=$savedir"monthly/mydb-"$datetoday".sql.tgz"<br />logfile=$savedir"log/"$datetoday".log"<br /><br /># get current date<br />time_log()<br />{<br /> echo "["`date +"%Y-%m-%d %H:%M:%S"`"] "<br />}<br />#directory check<br />if [ ! -d $savedir ] ; then<br /> mkdir $savedir<br />fi<br />if [ ! -d $savedir"monthly" ] ; then<br /> mkdir $savedir"monthly"<br />fi<br />if [ ! -d $savedir"log" ] ; then<br /> mkdir $savedir"log"<br />fi<br /><br />#create dump for today<br />if [ ! -f $newdatabase ] ; then<br /> echo `time_log`"Dumping new data for today." >> $logfile<br /> mysqldump -u$dbuser -p$dbpassword -h $dbhost $dbname | gzip > $newdatabase<br /> #monthly archiving<br /> if [ $daytoday = "01" ] ; then<br /> echo `time_log`"Creating backup archive for this month." >> $logfile<br /> mysqldump -u$dbuser -p$dbpassword -h $dbhost $dbname | gzip > $newmonthlydatabase<br /> fi<br />fi<br />#delete old dumps<br />if [ -f $olddatabase ] ; then<br /> echo `time_log`"Deleting old dump file("$daysago")." >> $logfile<br /> rm -f $olddatabase<br />fi<br />echo `time_log`"Routine backup has finished." >> $logfile<br /></pre>bos_tsiphttp://www.blogger.com/profile/05976499565985285566noreply@blogger.com2tag:blogger.com,1999:blog-159478109432835975.post-12803392094820898652009-10-28T00:51:00.000-07:002011-01-14T23:05:38.751-08:00facebook-like chat<span style="font-weight:bold;">Note:</span> This is an old post. If you're looking for the updated version, you may go here:<br /><a href="http://bostsip.blogspot.com/2011/01/facebook-like-chat-part-2.html">http://bostsip.blogspot.com/2011/01/facebook-like-chat-part-2.html</a><br /><br /><br />I really wanted to have a facebook-like chat. Unfortunately, I couldn't find one so i made one. Not as fancy as the one in facebook, but this is as close as i could get, functionality-wise...<br /><br />The problem is i haven't tested its performance on heavy traffic...<br /><br />I didn't include the avatar feature cause i guess it is trivial once you get the user's id in the chat(to tell you the truth, i just got lazy =P).<br /><br /><br /><br />here's the link to the demo:<br /><a href="http://bostsip.blogspot.com/2011/01/facebook-llike-chat-part-2.html">http://bostsip.blogspot.com/2011/01/facebook-llike-chat-part-2.html</a><br /><br />to download: <a href="http://bostsip.blogspot.com/2011/01/facebook-llike-chat-part-2.html">http://bostsip.blogspot.com/2011/01/facebook-like-chat-part-2.html</a><br /><br />let me know your thoughts...<br /><br />enjoy!bos_tsiphttp://www.blogger.com/profile/05976499565985285566noreply@blogger.com17tag:blogger.com,1999:blog-159478109432835975.post-47345358106984441882009-10-23T02:29:00.001-07:002009-10-23T02:29:48.262-07:00Anak ka nang....Dear Anak,<br />Naipadala ko na 50 thousand pesos na<br />tuition fee mo,<br />pinagbili na namin ang mga kalabaw<br />natin.<br />Ang mahal pala ng kursong COUNTER<br />STRIKE,<br /><br />Wala na din pala tayong baboy naibenta<br />na din<br />para dun sa sinasabi mo na project nyo<br />na NOKIA N75,<br />ang mahal naman ng project nayun.<br /><br />Kasama din ang 7 thousand dun para sa<br />field trip nyo sa MALL OF ASIA,<br />akoy nagaalala baga anak<br />malayo ba yun mag ingat ka sa<br />pagbibiyahe mo,<br /><br />Isasanla pala namin ang palayan natin<br />para mabili mo<br />na yung instrumentong I-POD na<br />kinakailangan mo sa laboratory nyo.<br />kelan mo ba talaga kelangan yaun<br /><br />Anak komportable kaba jan sa boarding<br />house mo<br />saan ba kamu yan sa VICTORIA COURT<br />maganda ba dyan di ba mainit jan.<br />Siguro ay namimiss mo na ang hangin<br />dito sa bukid<br /><br />Anak kumusta na pala yung group project<br />nyo na SAN MIG LIGHT napailaw nyo na<br />ba? mataas ba nakuha nyo na grado dun.<br />Anak sana bago pa maubos ang lahat<br />lahat ng arian natin ay maka gradweyt<br />kana,<br />walong taon ba talaga ang kurso mo sa<br />COUNTER STRIKE -SECRETARIAL,<br />sana paggraweyt mo makakuha ka ng<br />trabaho kaagad<br />kagaya ng manager ng kumpanya<br />para mabawi natin ang mga ari arian<br />natin sa sanglaan.<br /><br />ay cya nga pala anak diba<br />sabi mo sa JOLLIBEE / MAK DONALD ka<br />palagi kumakain<br />ok ba naman sayo ang mga ulam dyan<br />baka hindi masarap kawawa ka naman.<br />Masarap lagi ang ulam namin ang<br />paborito mong tuyo at gulay na<br />bulanglang<br /><br />Eh yung school bus nyo na TAXI sabihin<br />mo sa driver mag ingat cya sa pag dri-<br />drive.<br /><br />Anak hanggang dito na laang at sa<br />susunod ay ipapadala ko sayo ang pera<br />na pambili mo ng ALTIS na gagamitin mo<br />sa VACANT SUBJECT mo.<br /><br />Ang nagmamahal<br /><br />Itang at Inang<br />P.S. Anak mag aral kang mabuti.bos_tsiphttp://www.blogger.com/profile/05976499565985285566noreply@blogger.com1tag:blogger.com,1999:blog-159478109432835975.post-59978192140722731382009-10-22T18:08:00.000-07:002009-10-22T23:00:27.506-07:00Request for Birth, Marriage or Death Certificate OnlineI just found out recently the most convenient way to get the Birth, Marriage or Death Certificates in NSO. Simply go to this <a href="https://www.ecensus.com.ph/Secure/frmIndex.asp">site</a> and select which document you want to apply. I applied for Birth Certificate online and it costed me at around P315.00. After I have applied online, a request number will be generated. This will be your invoice number/order number, which you will present to the payment centers. I got mine and went to UnionBank, paid the fee and crossed my fingers. Payment centers are Mail & more outlets(not inside SM Buildings, you'll see why), online banking facilities using UnionBank and BDO, and over-the-counter payments in UnionBank and BDO(now you see why...).<br /><br />To me, it's a steal, as I have computed how much would it cost me if I would go there:<br /><br />From Paranaque - NSO Office: P50.00<br />Bottled Water: P15.00<br />Wait, I forgot my pen P15.00<br />Apply for Certificate Maybe around P150.00<br />Lunch Time! P80.00<br />C2: P24.00<br />From NSO Office and back: P50.00<br />Time: 1 hr = .25 ounces of Gold<br /><br />The advantage i could only see is if you needed the document real bad, but then again, there is no assurance that you will have your certificate on that very same day.<br /><br />They will deliver it through your doorstep around 6-10 working days after the date of payment. One of their most useful features is the request status. You won't have to call them to follow up the status of the document being applied. To see your document status, have your request number ready, and on their navigation page, go to <span style="font-weight: bold;">Request</span> >>> <span style="font-weight: bold;">Request Status</span>. Just make sure that you will provide the exact details when filling up the information, otherwise you just wasted 300 bucks on it.<br /><br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihBLZ7trgZ5_0D9nTBPBp8BO2XBlphZWs5Z3bMrFNzuPS1mJaG4aR_Clv8X4qRtoRgBZ5oVb0TORa6A5ILM5XgFacG9I_Jb9lBNh-UOcJHg5RO_S3FXOVzSxewMgSc2miR1UxdBmcnijvF/s1600-h/nso.gif"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 323px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihBLZ7trgZ5_0D9nTBPBp8BO2XBlphZWs5Z3bMrFNzuPS1mJaG4aR_Clv8X4qRtoRgBZ5oVb0TORa6A5ILM5XgFacG9I_Jb9lBNh-UOcJHg5RO_S3FXOVzSxewMgSc2miR1UxdBmcnijvF/s400/nso.gif" alt="" id="BLOGGER_PHOTO_ID_5395604395672655426" border="0" /></a><span style="font-size:78%;">Verify Request Status Link</span><br /></div><br />Now, if SSS, BIR, NBI, Pag-IBIG, Philhealth and other government agencies have this kind of process... hmmm... when would that be...bos_tsiphttp://www.blogger.com/profile/05976499565985285566noreply@blogger.com0