tag:blogger.com,1999:blog-148912872024-02-20T14:34:43.450+08:00&rence::blog()My Life, My Work, Your Story.Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comBlogger38125tag:blogger.com,1999:blog-14891287.post-18960283107578773822010-08-17T14:46:00.001+08:002010-08-17T14:47:37.974+08:00Fedora 13 64Bit and Skype<div xmlns='http://www.w3.org/1999/xhtml'><p>Wondering how to make skype work with your fresh installation of fedora 64bit? Here's how:</p><p>First, you must install rpmfusion.org's repository. You can find the howto <a target='_blank' title='RPMFusion Configuration' href='http://rpmfusion.org/Configuration/'>here</a>: </p><p>Next, you need to run the following commands:</p><pre>sudo yum install libXv.i686 \<br />libXScrnSaver.i686 \<br />qt-4.6.3-8.fc13.i686 \<br />qt-x11-4.6.3-8.fc13.i686</pre><p>Afterwhich, you can now go to and <a target='_blank' href='http://www.skype.com/intl/en/get-skype/on-your-computer/linux/'>download</a> Skype.</p><p>After downloading, install it:</p><pre>rpm -ivh skype-2.1.0.81-fc10.i586.rpm</pre><p>And then run skype from your menu.</p><p><img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/14891287-1896028310757877382?l=rencesalmingo.blogspot.com'/></p></div>Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com0tag:blogger.com,1999:blog-14891287.post-5769074509372300132010-08-16T23:07:00.001+08:002010-08-16T23:09:58.094+08:00The Great Fedora Switch<div xmlns='http://www.w3.org/1999/xhtml'><p>Moved from Ubuntu 10.04 to Fedora Core 13. Reason: all my LPI Manuals uses CentOS as main distribution, as I can't use that on my laptop, I used Fedora instead. </p><p>So far, everything had been working fine. I edited </p><pre>/etc/usb_modeswitch.conf</pre><p> and placed the following lines to the file </p><pre>/etc/udev/rules.d/15-huawei.conf</pre><p> to enable my Globe Tattoo:</p><p> # My Tattoo!!! </p><p>SUBSYSTEM=="usb", SYSFS{idVendor}=="12d1", </p><p>SYSFS{idProduct}=="1446", </p><p>RUN+="/usr/bin/usb_modeswitch -c /etc/usb_modeswitch.conf"</p><p> </p><p>Nothing could have been simpler. Also, my sister brought the PS2 from home to my place so I could play the whole time it's here.</p><p><img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/14891287-576907450937230013?l=rencesalmingo.blogspot.com'/></p><p><img height='1' width='1' src='https://blogger.googleusercontent.com/tracker/14891287-576907450937230013?l=rencesalmingo.blogspot.com'/></p></div>Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com0tag:blogger.com,1999:blog-14891287.post-57282516671564529402010-03-02T04:10:00.000+08:002010-03-02T04:10:17.255+08:00Ubuntu Linux + Nokia 5800 XM = 3G Internet Connection<p><b>I'm pretty sure that this had already been done before, I am just putting it here so I will remember it later ;)</b></p><p>Okay...</p><p><b>Step 1.</b>Make your bluetooth device discoverable (just for a few seconds, at least)</p><p><b>Step 2.</b>run this command:<pre>% hcitool scan
</pre>Find the line that looks like <br />
<pre>C0:XX:XX:XX:XX:00 Renz phone</pre><p>That previous command gives you the bdaddr (Bluetooth Device Address) of your phone. I placed Xs in there (just to secure the phone, yours would actually be HEX Digits.=)</p><p><b>Step 3.</b>Find out your device's DUN (Dial Up Networking) channel by running:</p><pre>% sdptool search DUN C0:XX:XX:XX:XX:00
</pre><p>You may come up with the following:<pre>Inquiring ...
Searching for DUN on C0:XX:XX:XX:XX:00 ...
Service Name: Dial-Up Networking
Service RecHandle: 0x10012
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 22
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
</pre>From here, we can infer that our Dialup Networking Service is @ channel 22<br />
</p><p><b>Step 4.</b>Bind your rfcomm0 to this channel:</p><pre>% rfcomm bind 0 C0:XX:XX:XX:XX:00 22
</pre><p>We basically tell rfcomm to bind to rfcomm0 using our bdaddr(C0:XX:XX:XX:XX:00) to channel 22.</p><p><b>Step 5.</b>Configure your wvdial by editing /etc/wvdial.conf and putting in:</p><pre>[Dialer Defaults]
phone=*99#
Modem=/dev/rfcomm0
Username=putyourusernameanythingwilldo
Password=putanythingheresmartdoesnotcare
New PPPD=yes
Stupid Mode=yes
Init1=ATZ
Init2=ATQ0 V1 E1 S0=0 & C1 &D2+FCLASS=0
baud=460800
</pre><p><b>Step 6.</b>Run wvdial:</p><pre>% wvdial
</pre>Be careful not to press ctrl-c while wvdial is running or else, you will get disconnected.<br />
<p>That's it! Have fun!</p></p>Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com0tag:blogger.com,1999:blog-14891287.post-10598532303980712642009-11-20T04:18:00.000+08:002009-11-20T04:18:11.405+08:0029 November 2009The day started out fine. Woke up at about 8AM and then went back to bed. Woke up again at 9:30 then fixed myself. At about 10:30, I started for the office. It'll be a few more days later before we can migrate to the new office as I heard that there are lots of things to fix before it can be considered to be work-able. Also, the Internet connection for the place hadn't been put to place yet.<br />
<br />
I goofed around (meaning worked) for a couple of hours then lunch came. We decided to take rice gruel (goto) with egg and fried tofu instead of the normal lunch. Man, I missed eating goto, I promise to make one for me and my wife at least every two weeks. <br />
<br />
After office, Kelly and I went somewhere to talk to a client about building a content management system from scratch. I really think that CMSs should be customized for each client and avoid run-of-the-mill CMSs since you can only customize then as much as you can.<br />
<br />
For this CMS, I will probably be using CodeIgniter PHP Framework and MySQL Database Server. <br />
<br />
I just finished (albeit, lacking one functionality: the comments section) working on the database schema for the basic CMS. I just hope that my team mates would approve of the schema. If not, it's back to the drawing board for me. Not that I complain :D<br />
<br />
As of this writing, I am about 78% complete on the Vicidial Report Generation Tool that I have been working for the past two months already.Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com0tag:blogger.com,1999:blog-14891287.post-15067139424695321502009-10-05T21:27:00.004+08:002009-10-05T21:35:32.754+08:00SHA256 encryption and all the stuff....What have I been doing?<br /><br />I'm no security expert, but I have just implemented (read: copy and pasted code) sha256 encryption to my kcauth codeigniter plugin/module combo ( I don't like codeigniter, really don't know why...) <br /><br />I'm still thinking if I will be using codeigniter's session or create my own. The former seems to be fine, but since I have no time to scrutinize the code, I cannot really rely on it. The latter would eventually be done, not at the moment since I don't have the time to create one from scratch (yet)<br /><br />I have also created a HTTP GET middleware to read from a remote eventum source. Hopefully, this will scale as the middleware would be used by an application that's already a memory hog (without proper caching since it is in the development phase still, of course).<br /><br />Still need to create memcache plugin for that codeigniter thingie. Also, I will need to find an easy payment gateway for the rf service that we are cooking up.<br /><br />System.exit(0);Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com0tag:blogger.com,1999:blog-14891287.post-75616367929486068662009-09-06T17:25:00.005+08:002009-09-06T17:29:21.588+08:00Ubuntu and AMPHere are simple steps to get AMP (Apache, MySQL and PHP) running in Ubuntu.<br /><br />1.) sudo aptitude install apache-mpm-prefork php5-mysql mysql-server -y<br /><br />If you need phpmyadmin:<br /><br />1.) sudo aptitude install phpmyadmin -y<br />2.) cd /etc/apache2/sites-available<br />3.) ln -s /etc/phpmyadmin/apache2.conf phpymadmin<br />4.) a2ensite phpymadmin<br />5.) /etc/init.d/apache2 reload<br /><br />you can now go to : http://localhost/phpmyadminAnonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com0tag:blogger.com,1999:blog-14891287.post-57038234323489675392009-08-17T01:37:00.002+08:002009-08-17T01:44:04.504+08:00Subversion + SSH on ports other than 22What you need:<br /><br />putty (not the putty.exe but the whole installer as you need pageant, plink and puttygen :D)<br />subversion<br /><br />Step 1: Install PUTTY<br />Step 2: Install subversion<br />Step 3: Create a profile for your server (indicate port, user, etc.) using putty (be sure not to overwrite Default Profile) (i.e. profile name is MyServer)<br />Step 4: using puttygen, create a private key and a public key<br />Step 5: copy the public key ( in the puttygen window ) to the .ssh/authorized_keys (located in your home directory) on your server<br />Step 6: load your private key using pageant<br />Step 7: the url for your repository will be svn+ssh://MyServer/path/to/your/repository<br /><br />You're Done!Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com0tag:blogger.com,1999:blog-14891287.post-60769463186949817142009-06-20T01:47:00.004+08:002009-06-20T02:46:10.254+08:00PHP5 RRD Module in Ubuntu/Debian Lenny missing!Today, I started reading about using RRDTool in replacement for the flash-based reports that I was using for a pet project. What stunned me later was to finding out that php bindings for this nifty little tool is absent in my toolkit! <br /><br />I am here now to tell you how I did it, well, sort of, :D<br /><br />1.) be sure to download http://oss.oetiker.ch/rrdtool/pub/contrib/php_rrdtool.tar.gz<br />2.) apt-get (or I use aptitude in ubuntu) install librrd-dev php5-dev<br />3.) extract php_rrdtool.tar.gz (tar zxvf php_rrdtool.tar.gz<br />4.) enter the directory created by extraction then run phpize<br />5.) run ./configure then make to compile the module<br />6.) inside the created modules directory lies two files: rrdtool.so and rrdtool.la. copy both files to your extension_dir (which you can find out if you open the php.ini that is being called by your apache web server) I saved mine in /usr/lib/php5/20060613+lfs which is the default for debian lenny<br />7.) add this line:<br /> extension=rrdtool.so<br /> in any of your php.ini file (in debian lenny's or ubuntu's case, you can create a new .ini file in /etc/php5/apache2/conf.d and put that line in there )<br />8.) restart your apache webserver<br />9.) create a phpinfo(); file and see if these lines exists:<br /> rrdtool<br />rrdtool Version 1.2.x extension<br />rrdtool support enabled <br /><br />10.) you're done!Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-86671660077580903902009-05-24T16:14:00.003+08:002009-05-24T16:33:39.166+08:00Symfony EDITOR :DI come to realize that I can never leave without VIM. I've been hooked to it till kingdom come and I can never switch to any editor anymore. Most specially now that I have found this. Presenting (drum rolls). The VIM symfony plugin.<br /><br />I would not give away the details. The thing is, I have been looking for this in almost all the editors that I have used so far. And for me, finding this thing off of the internet is a great surprise. <br /><br />It does nothing more than take you to the template file of the current action that you are editing. For me this is a big thing as I don't have to leave vi just to go back and forth between the action and the template. It automatically opens it. If only komodo has this feature :D<br /><br />I think that's all for now, have to get back to coding :D<br /><br />http://www.vim.org/scripts/script.php?script_id=2128<br /><br />Renz OutAnonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-60092154394333767262009-04-24T23:33:00.002+08:002009-04-24T23:37:01.941+08:00Upgraded to Jaunty JackalopeWow! I just installed Ubuntu 9.04 Jaunty Jackalope and was really amazed on how fast the thing booted up. <br /><br />Also, the install experience was really really nice. I just went through 7 steps and after a restart, here I am.<br /><br />Try it now. It's very stable, so far so good, considering that I already "hacked" the system compiling things that I have had in the last linux that I used. <br /><br />Peace!Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-24589097100922515012009-03-12T22:14:00.002+08:002009-03-20T17:05:46.869+08:00Adding gmail SMTP to symfony 1.0<span style="font-family:Verdana,Helvetica,Arial;"><span style="font-size:12;">PHPMailer is already included in symfony, so why add one yourself?<br /><br />The thing is, I never get PHPMailer that is bundled with symfony to work with my gmail account so I decided to find something that can be done.<br /><br />1.) Create a file myMailer.class.php inside your lib directory (either in apps/app_name/lib or in your root lib directory)<br />2.) Put these codes in there:<br /><br /><pre><br /><?php <br />class myMailer { <br /><br />public function __construct($username, $password, $user_alias) {<br /> $this->from = $username;<br /> $this->password = $password;<br /> $this->user_alias = $user_alias; <br />} <br /><br />public function send($to, $subject, $body) { <br /><br />$eol = "\r\n"; <br />$host = 'gmail-smtp.l.google.com'; <br />$port = 465; $fname = $this->user_alias; <br />$data = 'Date: ' . date ( 'r', time () ) . $eol; <br />$data .= 'From: "' . $this->from . $eol; <br />$data .= 'Subject: ' . $subject . $eol; <br />$data .= 'To: "' . $to . '" <' . $to . '>' . <br />$eol; $data .= 'X-Priority: 1 (High)' . $eol; <br />// you can comment this one out if you want a normal email. <br />$data .= 'X-Mailer: <Google Mail Server>' . $eol; <br />$data .= 'MIME-Version: 1.0' . $eol; <br />$data .= 'Content-Type: text/plain; charset="ISO-8859-1"' . $eol;<br />$data .= 'Content-Transfer-Encoding: 8bit' . $eol . $eol; <br />$data .= $body . $eol; <br /><br />$has_error = false; <br />if ( ( $smtp = fsockopen ( 'ssl://' . $host, $port, $errno, $errstr, 5 ) ) ) { <br /> fputs ( $smtp, 'HELO ' . $host . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) { $<br /> has_error = true; <br /> } <br /> sleep(2); <br /> fputs ( $smtp, 'AUTH LOGIN' . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) { <br /> $has_error = true; <br /> } <br /> sleep(2); <br /> fputs ( $smtp, base64_encode ( $this->from ) . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) { <br /> $has_error = true; <br /> } <br /> sleep(2); <br /> fputs ( $smtp, base64_encode ( $this->password ) . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) {<br /> $has_error = true; <br /> } <br /> sleep(2); <br /> fputs ( $smtp, 'MAIL From: <' . $this->from . '>' . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) {<br /> $has_error = true; <br /> } sleep(2); <br /> fputs ( $smtp, 'RCPT To: <' . $to . '>' . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) {<br /> $has_error = true; <br /> } <br /> sleep(2); <br /> fputs ( $smtp, 'DATA' . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) {<br /> $has_error = true; <br /> } <br /> sleep(2); <br /> fputs ( $smtp, $data . $eol . '.' . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) {<br /> $has_error = true; <br /> } <br /> sleep(2); <br /> fputs ( $smtp, 'QUIT' . $eol ); <br /> if ( ! $this->test_return ( $smtp, $error ) ) {<br /> $has_error = true; <br /> } <br /> fclose ( $smtp ); <br /> }<br /> return !$has_error; <br />} <br /><br />function test_return ( $res, &$error ) {<br /> $out = fread ( $res, 1 ); <br /> $len = socket_get_status ( $res ); <br /> if ( $len > 0 ) { <br /> $out .= fread ( $res, $len['unread_bytes'] ); <br /> } <br /> <br /> //echo $out; <br /> if ( preg_match ( "/^5/", $out ) ) {<br /> $error = $out; <br /> return false; <br /> } <br /> return true; <br /> }<br /> <br />}<br /></pre><br /><br />3.) In your controller, you can now use it this way:<br /><br /></span><span style="font-family:Courier New;">$mail = myMailer(“username@gmail.com”, “thisshouldbeaveryhardpassword!@#$!@#$!@#$”, “From Me!”);<br />if($mail->send(“spam_victim@somewhere.com”, “This Is Spam”, “<div style=’font-size:300px’>GET THIS</div>”)) echo “Mail Sent!”;<br />else echo “Mail is not sent!”;<br /></span><span style="font-family:Verdana,Helvetica,Arial;"><br /><br />And you’re done!<br /></span></span>Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-64721014226059281822009-03-08T03:35:00.001+08:002009-03-08T03:35:51.831+08:00Sending HTTP Posts through JAVA<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I found this truly helpful tip :D<BR> <BR> <a href="http://www.javaworld.com/javatips/jw-javatip34.html?page=1">http://www.javaworld.com/javatips/jw-javatip34.html?page=1</a><BR> <BR> From the site:<BR> </SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Courier New"><B><BR> URL url;<BR> URLConnection urlConn;<BR> DataOutputStream printout;<BR> DataInputStream input;<BR> // URL of CGI-Bin script.<BR> url = new URL (getCodeBase().toString() + "env.tcgi");<BR> // URL connection channel.<BR> urlConn = url.openConnection();<BR> // Let the run-time system (RTS) know that we want input.<BR> urlConn.setDoInput (true);<BR> // Let the RTS know that we want to do output.<BR> urlConn.setDoOutput (true);<BR> // No caching, we want the real thing.<BR> urlConn.setUseCaches (false);<BR> // Specify the content type.<BR> urlConn.setRequestProperty<BR> ("Content-Type", "application/x-www-form-urlencoded");<BR> // Send POST output.<BR> printout = new DataOutputStream (urlConn.getOutputStream ());<BR> String content =<BR> "name=" + URLEncoder.encode ("Buford Early") +<BR> "&email=" + URLEncoder.encode ("buford@known-space.com");<BR> printout.writeBytes (content);<BR> printout.flush ();<BR> printout.close ();<BR> // Get response data.<BR> input = new DataInputStream (urlConn.getInputStream ());<BR> String str;<BR> while (null != ((str = input.readLine())))<BR> {<BR> System.out.println (str);<BR> textArea.appendText (str + "\n");<BR> }<BR> input.close ();<BR> <BR> <BR> <BR> </B></FONT><FONT FACE="Verdana, Helvetica, Arial">Thanks to the person who posted this :D</FONT></SPAN> Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-24124177115245000382009-02-11T14:05:00.000+08:002009-02-11T14:07:32.183+08:00Signing Jar Files<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Compared to most Java programmers, I can still call myself a newbie. <BR> <BR> I just learned how to sign java jars to be able to maximize the potential of applets.<BR> <BR> 1.) First of all you need to create your keystore. A keystore file (usually named .keystore in your home directory) contains your private and public keys. .keystore is stored in a binary jks format (Java Key Store) similar to PKCS #12 containing both public and private keys, protected by a passphrase. The first four signature bytes of a Sun .keystore file in hex are FEEDFEED. ( <a href="http://mindprod.com/jgloss/keystore.html)">http://mindprod.com/jgloss/keystore.html)</a> <BR> <BR> To create your keystore, you need the keytool which you can get with most java jdk. At the command line, you type something:<BR> <BR> keytool –genkey –alias alias_to_be_used<BR> <BR> you need to specify alias_to_be_used as this will be the alias that you will be using for the jarsigner command later.<BR> <BR> 2.) You can save your .keystore file if you are going to transfer to other machines or reformat the machine that you are going to be using. You just have to remember to put it at your home directory.<BR> <BR> 3.) You can now create your jar file. After which you can issue the command:<BR> <BR> jarsigner –storepass yourpassword –keypass yourpassword jarfile.jar alias_to_be_used<BR> <BR> you have to specify yourpassword for both the storepass and keypass as they could be different passwords (as you will be prompted in the keytool to be able to do so). Also don’t forget to change jarfile.jar for the filename of your jarfile and alias_to_be_used for the alias you supplied to keytool.<BR> <BR> 4.) That’s it you have a jar signed file.<BR> <BR> Enough for now, back to work...</SPAN></FONT> Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-48734513582417664072009-02-03T01:11:00.002+08:002009-02-03T01:19:35.941+08:00Now: JavaHi,<br /><br />It's been a while since I posted here and a lot of things happened already. Tonight, I will be posting of a different thing as I have been re-learning JAVA. Yes, the old programming paradigm that I once rubbed off my shoulder was once again at the doorsteps, knocking at ME to learn about it. <br /><br />Now that JAVA is OpenSource, I am still a bit skeptic about what can be done with it. <br /><br />There must be a reason why I am now shifting most of my time to JAVA and not with Python,PHP and C++ which is what I commonly use. <br /><br />Just to keep you hanging and of course, not to spoil the company's plan, I would not discuss the details of what I have been doing the last 2 months. I have a month more of development for this so I'm going to keep my fingers shut until it is the time to divulge the great secret.<br /><br />After which, I will be blogging about the pain, the hardships and all the fuzz that happened before, during and after development.<br /><br />Thanks for reading.Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-46423234041055883522009-01-14T09:19:00.000+08:002009-01-14T09:20:04.133+08:00Installing APACHE 2.2, PHP 5.2 and MySQL on Windows XP that works1.) Get apache 2.2 from http://httpd.apache.org I prefer that you download the one with ssl<br />2.) Next, get PHP from http://ph.php.net/get/php-5.2.8-Win32.zip/from/a/mirror. I am downloading PHP 5.2.8.8 windows binaries in ZIP file not the installer<br />3.) Next get mysql from http://dev.mysql.com/downloads I got mysql 5.1 community edition essentials<br />4.) wait for them to finish<br />5.) Install apache normally first. I installed mine on C:\apache you can use the default<br />6.) Next install MySQL you would want to configure the root password <br />7.) extract PHP somewhere, I did mine in C:\PHP<br />8.) add this to httpd.conf that is in C:\apache\conf:<br /><br />LoadModule php5_module "c:/php/php5apache2_2.dll"<br />AddType application/x-httpd-php .php<br /><br />PHPIniDir "C:/php"<br /><br />9.) restart apache<br />10.) create this as index.php in your C:\apache\htdocs folder:<br /><br /><?php<br />phpinfo();<br />?><br /><br />11.) open a browser and point to: http://localhost/index.php<br />12.) in the line: Loaded Configuration File you will find that there is none loaded so in your c:\php directory rename php.ini-recommended to php.ini. open the file and uncomment the line extension=php_mysql.dll it's around line 681. also, don't forget to change the extension_dir around line 542 to read :<br /><br />extension_dir="C:/php/ext"<br /><br />13.) restart apache again<br />14.) check again http://localhost/index.php as you can see, mysql is not included in there. <br />15.) to enable mysql in php:<br /> I. copy the file libmysql.dll from the directory where you install mysql usually in C:\Program Files\MySQL<br /> to C:\php<br /> II. you need to put mysql's bin path to the PATH environment variable the same with C:\php<br /> III. at this point you need to restart<br /> IV. check again at http://localhost/index.php and you should see mysql already there<br />16.) Edit again c:\apache\conf\httpd.conf the line: <br /> DirectoryIndex index.html<br /> should now read:<br /> DirectoryIndex index.php index.html<br /><br />17.) Restart apache and now you are done!Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-17946473585455089922008-11-10T16:23:00.003+08:002008-11-10T16:28:34.578+08:00Science Centrum is back!It's nice to hear that our beloved Philippine Science Centrum can once again be experienced by everyone! Yes. The Science Centrum that we grew up with, enjoyed and the one that sparked our CURIOSITIES is relived, albeit in another place. You can check the link ( http://www.science-centrum.ph/ ) and it would be much better if you can experience it for yourself!<br /><br />The Philippine Science Centrum, now in Marikina Riverside, will be opened to public on November 22, 2008. I will be there, my wife will be there, hopefully, I can see all of you there also!<br /><br />We really are winners of cosmic lottery...Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-90666257119865849402008-11-06T01:08:00.002+08:002008-11-06T01:09:58.197+08:00Recovering lost network connection on VMWARE ImageI found this really helpful! Thanks to the author. VMWare is cool! (http://www.vmware.com). Qemu is cool too! (http://www.qemu.com)Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-34653915458864016862008-10-14T00:25:00.000+08:002008-10-14T00:26:19.452+08:00A good "basic" security site, albeit oldThis is a good, albeit old, security site for those who want to learn more about how to create security policies in their workplace. I am putting it here just in case ;)Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-36267539009671720682008-10-05T12:35:00.002+08:002008-10-05T12:55:01.903+08:00Trying out GNUDialerOk<br /><br />It's my first time to try and make GnuDialer work. So far, I have been unsuccessful. But I'm not losing hope. I know that it may be easier for me to try using Vicidial but we are planning to create a contact center solution that will be based on open source software. The software will be free but the cost will be setting it up and configuring all the workstations and the servers.<br /><br />I will try again today and will paste here the steps that I have done to make it work.<br /><br />See you...Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-56884950136525999302008-09-17T01:36:00.003+08:002008-09-17T01:40:24.014+08:00Patching / Editing Symfony 1.0.10 for PostgreSQL's Multiple SchemaI will just post here what had been posted at a different forum, I can't remember where. But this patch had been useful to me to add functionality of PostgreSQL's Schema to be seen and used inside symfony.<br /><br /><a href="http://renz.web44.net/symfonyMultipleSchemasPatch-1.0.10.patch">symfonyMultipleSchemasPatch-1.0.10.patch</a>Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-26390096971788518382008-09-08T09:20:00.003+08:002008-09-08T09:34:44.610+08:00Automated psql from the command lineSo I will not forget how to do this.<br /><br />To run my script in postgres without logging in:<br /><br />I set the environment variables $PGHOST $PGUSER $PGPASSWORD $PGDATABASE<br /><br />then run the postgresql script : psql $PGDATABASE -f sql_script.Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-6813913746200466052008-07-10T01:54:00.001+08:002008-07-10T01:54:31.514+08:00Trying out TurboGears<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>There are web frameworks and there are web frameworks. I had been using several in PHP:<BR> Symfony (<a href="http://www.symfony-project.com)">http://www.symfony-project.com)</a><BR> CodeIgniter ( <a href="http://www.codeigniter.com)">http://www.codeigniter.com)</a><BR> CakePHP (<a href="http://www.cakephp.org)">http://www.cakephp.org)</a><BR> <BR> And I have been exposed to these in python:<BR> Turbogears (<a href="http://www.turbogears.com)">http://www.turbogears.com)</a><BR> Django (<a href="http://www.djangoproject.com)">http://www.djangoproject.com)</a><BR> Pylons (<a href="http://www.pylonshq.com)">http://www.pylonshq.com)</a><BR> <BR> Currently, though, I involved myself in developing in Turbogears. As easy as it may seem, the problem with<BR> This framework is the ORM is too simple. I don’t know I think it came to me when I think about using symfony project<BR> that made refactoring to the model possible. Tried google-ing “Model Refactoring in Turbogears” but search almost<BR> always comes irrelevant to what I was looking for.<BR> <BR> Sincerely, there is no point in using ORMs if the logic of trimming extra data from your model still resides in the<BR> controller. What happens, is, SQLAlchemy mainly becomes a database abstraction rather than an ORM. ( I see, hence mapper????)<BR> <BR> I wish other developers would see it my way. <BR> <BR> I am not against Turbogears. I like it. I love the way it handles things. I recently learned how to break down controller parts. The thing is<BR> I am not used to using ORMs as database abstraction mechanisms. Might as well go with ADODB ;) ( hmmm at least I don’t have to code<BR> SQL by hand) But that’s just IT! Naked Objects come to view. Every body is going down the way of minimalism. But just how far minimal<BR> should one get? It doesn’t make sense anymore sometimes. People can really be difficult when it comes to decisions like this. <BR> <BR> As for now, I will leave all my database queries in the controller, pass them to the view instead of doing the queries in the model, with the controller<BR> being agnostic to what the model contains (WHICH SHOULD HAVE BEEN THE BETTER WAY).<BR> <BR> And as far as I am concerned, both languages ARE FAST. It’s just up to the programmer just HOW FAST the software would be.<BR> <BR> Good Morning. <BR> <BR> Keep the tradition of knowledge sharing alive. <BR> <BR> <BR> </SPAN></FONT> Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-13346955693630272842008-06-28T10:57:00.004+08:002008-06-29T09:06:39.954+08:00ExcitedI am getting worked up with the new project that is coming. I think that this project should be worked from scratch to be able to dictate the flow of the processes involved. I will not divulge any information yet. You have to see this blog every now and then to be able to track what is happening.<br /><br />Clue: (1) This project involves packages.<br /><br />Don't wish us luck as it never really helps anyway, not REALLY.<br /><br />Over and out.Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.comtag:blogger.com,1999:blog-14891287.post-44294157406454023542008-06-26T14:09:00.005+08:002008-06-26T14:35:17.885+08:00Running Firefox 2 and 3 Simultaneously<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrt_9P5HgzDsROFNsTcQ-oHbozW8SvS7iJtv6OZiGgFEu3JIGuIRcpiJK0yn6Tk41Ud35dHw_bwjnom6yXKA_JG544NBO1tYA8c-1lujl92mheIiReTvXK2jQDfDqQ1RHQy-4X/s1600-h/FireFox2AND3.JPG"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 487px; height: 295px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrt_9P5HgzDsROFNsTcQ-oHbozW8SvS7iJtv6OZiGgFEu3JIGuIRcpiJK0yn6Tk41Ud35dHw_bwjnom6yXKA_JG544NBO1tYA8c-1lujl92mheIiReTvXK2jQDfDqQ1RHQy-4X/s320/FireFox2AND3.JPG" alt="" id="BLOGGER_PHOTO_ID_5216074930718736674" border="0" /></a><br />Woot! Firefox 3 is out and it ain't beta.<br /><br />Here's a neat way to run firefox 2 (if you haven't upgraded yet) and firefox 3 together:<br /><br />1.) Install your new firefox in a different location, say C:\Firefox3<br />2.) Copy the file to, say, firefox3.exe and create a shortcut for that<br />3.) Modify the shortcut to your firefox 2 to read "firefox.exe" -no-remote<br />4.) Do the same thing for your firefox3.exe<br />5.) Create a new profile for both ( you have to add -ProfileManager to the shortcuts to access the profile manageer, duh!)<br />6.) Add the name of your profile to the two modified shortcuts<br /> (i.e. C:\Firefox3\Firefox3.exe -no-remote -P Firefox3Profile AND C:\Firefox2\Firefox2.exe -no-remote -P Firefox2Profile)<br />7.) Shortcuts!!!<br /><br />The thing is, you have to create the profiles so plugins from one firefox installation, does not appear to the other.<br /><br />The only problem is, you have to reinstall all your plugins to the NEW firefoxAnonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com0tag:blogger.com,1999:blog-14891287.post-62957056579892489372008-05-19T01:09:00.004+08:002008-05-19T01:15:11.822+08:00Almost DoneWhew!<div><br /></div><div>Have I got a hectic week or have I got a hectic week, and all of this painstaking work nearly comes to an end. I am really happy with all the modifications I have done to Joomla! 1.0.15. </div><div><br /></div><div>The funny thing is, I am not able to document them all. But, I will be able to document it after. See, I found this link <a href="http://www.assembla.com">http://www.assembla.com</a>. It made my work easier. It has (1) SVN + Trac (2) Wiki (3) Collaboration [though I don't have to collaborate with anyone].</div><div><br /></div><div>You should try this site out. </div><div><br /></div><div>Renz Out!</div>Anonymoushttp://www.blogger.com/profile/14795296594227617432noreply@blogger.com