Skip to main content

Posts

Showing posts from 2009

PHP Upload Limit

Sometimes, you write a code which has upload features or backing up a database then only to find out that your PHP installation limits your upload to 2mb. Ive encountered this problem while I was backing up databases using phpMyAdmin and realized that the file ive downloaded is too huge for an upload without tweaking the necessary files. So with this I resulted to editing the php.ini file to accommodate a larger file upload size. The php.ini file varies from one location to another depending on your install (may it be Windows, Mac or Linux).. In my Linux server (Ubuntu) its found in /etc/php5/apache2/ Here are the variables you need to watch file_uploads upload_max_filesize max_input_time memory_limit max_execution_time post_max_size You may change the values as you like but take note that setting some things higher (ie. memory_limit) would consume your resources a bit more. So be careful in editing. After tampering the settings, you may need to restart your Apache servi

When You Think JSP is Better

And you want to install Apache Tomcat instead of the usual Apache, you may follow this guide on how to install Tomcat effortlessly through apt-get. Because I Think JSP Is Still Cooler You need to tweak it a little to set the default ports. Though the guide tackles the post configuration needed to run this. 

Missed Installing SSH?

And, if for some freak reason, you forgot to install SSH in your Linux box.. You could always follow this simple steps to remote shell goodness The Sad Fact That I Forgot To Install SSH Now with this, I could peacefully connect to my server and install Apache Tomcat (I intentionally did not install any web server if you might ask)

My Electronic Woes: LCD TV

I think I could consider myself really unlucky with electronics this year. I bought my mother an EEE PC netbook which, after 9 days had a noisy fan and the store didnt want to have it replace or refunded.. But thats a different story.. This is about my LCD TV problems. I got an HSBC credit card for 2 reasons. 1: the Caltex rebate and 2: the MyScreen LCD TV. You could scroll down and skip this back story and head to the "Testing the TV: Here Comes the Bad Part" if you're not particular with my reasons in buying the TV. If you're interested with why I got it, carry on. Reasons The MyScreen MYS-22 (22 inch) TV is priced 11,500 pesos thru the promo of HSBC. With that you get 1080i, and HDMI port, an audio out, an audio in, VGA in, RCA in, Component in, a remote, and pretty much thats about it. You could read the full specs here . I did my homework, Ive read reviews and so far, and a positive feedback was given by SonOfKratos in his review in TipidPC. You could read his r

Buying Guide for Hard Drives

It has been argued on by so many computer enthusiasts when asked "Is it worth it to buy (insert brand here) (insert drive space here) for (insert price here) ?" Given the example above, how can you say that its better to buy the 1.5 TB drive and just adding a bit more money than buying the 1 TB drive? Ive explained this approach to a batchmate of mine in DLSU some years ago. I wasnt able to remember it until we had a YM conversation last night. Given the prices from the PCX price list: 4910 pesos for a 1Terabyte Seagate SATA 16mb 7720 pesos for a 1.5Terabyte Seagate SATA 32mb So, if you have a 1000 Gig (~1TB) drive for 4910 Pesos what you need to do is just divide the amount by the size of the drive. 4910 / 1000 = 4.91 Pesos per Gigabyte whereas 7720 / 1500 = 5.15 Pesos per Gigabyte Its safe to say that for the price to space ratio, you would get a better deal if you buy the 1TB drive rather than the 1.5TB drive. Though you might want to hold off buying a Seagate for this

Organizing Your Life: Browser Bookmarks

There's a point in your life when you will realize that you've transitioned into using several sets of computers and noticed that backing up files are pretty much a tedious task. During the course of my transitions, moving from desktops, to laptops and even using 2 to 3 computers depending on the task I've hated how much files I need to circulate and to figure out which ones are the updated. Ive simplified the task of backing up files by creating a list of folders to be archived beforehand then doing the backup 2 to 3 days ahead so I would not forget anything in the process. I normally backup my personal folder, My Documents, browser bookmarks and my Yahoo Messenger archives. Using a bookmark synchronization tool relieves me of one of my tasks and worries. Not to mention that I could access what Ive bookmarked even if I'm away from my main computer. Introducing Xmarks, formerly called Foxmarks. Xmarks could be downloaded as an add-on for Firefox in this address: https:/

Creating Symlinks

Symbolic links are useful when 'caging' users to their respective home directory but giving them access to directories outside their domain. For example. A user john is jailed in his home directory /home/john But we've created his web folder located in /var/www/html/john .. so how do we do this. Go to the location where the link you want should appear.. In our example, we go to /home/john Then type ln -s /var/www/html/john You will see that in the directory, a john folder has been created and when you browse into that, you will see the contents in the directory /var/www/html/john .. I personally used this for an ftp account for uploading web content. If you are a web host you could run scripts in automating this for your users.

Adding Start Up Service With Webmin

We all know that Webmin is like a swiss army knife for Linux SysAds, but again, there are some programs you want to start running as your machine boots or to shut down the program when you invoke a shut down command or a reboot. I personally use this during power failures when the system wakes up, I want all programs to be up and running. As an example, ive downloaded and compiled inadyn, a dynamic DNS updater for Linux. First important thing to know is the directory where the program is located.. When logged in in your shell, go to the directory where the program is located and type pwd (that is print working directory) and it will give you your current location. In my case the result is: /root/inadyn/bin/linux/ Then you should know if theres a proper shut down command for the program, in inadyns case, theres none. Also, take note of the program name.. In my case the program name is inadyn and I run the program using ./inadyn Theres a trick here, since if you run it, it will be just

The Art of Compiling in Linux

Most of the people complain about compiling programs in Linux. Particularly those applications which require getting your hands dirty by using shell commands. I have been compiling eggdrops and emechs from my IRC days back then and PVPGN and running a game server. Im currently compiling an otserv in Fedora 9 and thankfully, the instructions are in Debian and Ubuntu: http://otfans.net/wiki/index.php/Compiling_OTServ_under_Ubuntu .. hey how bad can it be? You could still yum your way through the needed libraries. Important thought before you start is to know the important libraries needed. Most of the time they are the -devel or -dev libraries since you are compiling a program right? But the problem is most of the -devel libraries are dependent to their parent application. Say for example mysql-devel is dependent to mysql.i368.. So nonetheless you have to install the pair. An important thing in compiling.. remember to: 1.) Check the libraries needed by the program you are compiling 2.) a