Browsing the archives for the General category

Rebuttal: 3 reasons to stay in a big company

Reading this blog post entitled, “3 reasons to stay in a big company“, I can’t help but comment about some of the points the author made. A brief background first, i’ve worked with some big companies in the past, but all have left a bad taste in my mouth for reasons I will point out [...]

1 Comment

Redmine and the importance of backups

Been struggling to get Redmine working with Mongrel instead of using Apache + FastCGI (been using this setup for while till this defect kept on bugging me and my teammates: http://www.redmine.org/boards/2/topics/5864), when the cause was simply a bug with cpanel’s generated .htaccess file for the subdomain internal proxy redirect.

0 Comments

Wordpress Syntax Highlighter

Can anybody recommend a good SyntaxHighlighter for Wordpress? I’ve been using SyntaxHighlighter Plus for over 1year already, and its been always giving me headaches on character escaping with html/php codes. Now its been refusing to cooperate with indenting Java codes.

0 Comments

Nokia N97

Finally bought a smartphone, first time to have one actually. My former phone is a Sony Ericsson K810i, used it for around 2 years plus plus. Very sturdy phone but the mediocre support for connectivity is really hurting me since I need a good 3g connection for my mobile office. Initially was planning to buy [...]

2 Comments

Symfony Doctrine or Propel

Been giving this alot of thought lately. What to use for my next project. Ever since symfony 1.2’s move to Propel 1.3, the major argument of speed against Propel has been solved with its migration out of creole and into PDO. So speed is definitely at par with Doctrine, but the curious side of me [...]

1 Comment

JUnit and EasyMock

Unit testing is tedious, but it has saved my bacon so many times already that even though it eats my time I still religiously create unit test cases for every important business logic use cases. I’ve been using Spring’s integration with JUnit and its very cool transaction support for test cases. Unfortunately with this approach, [...]

0 Comments

API to get screenshots of url

Just discovered a quick way to do a screenshot based on a url
http://www.websnapr.com/
They even have a cool and easy to use api!

0 Comments

Apache 2: Self-Signed Certificates

Self-signed certificates are very useful when doing testing on your local machine. The following was tested using a unix based environment.

1 Comment

Bash script to backup mysql database

This is the first bash script I wrote, I used crontab to periodically backup and compress a mysqldb in a shared hosting environment

#!/bin/sh
user=testdbuser
password=testdb
dbname=testdb
location=~/db_backups
ts=$(date ‘+%Y%m%d-%H%M’)

mysqldump -u$user -p$password –opt $dbname > $location/temp-$ts.sql
cd $location
tar -cvzf $dbname-db-$ts.tar.gz temp-$ts.sql
rm -f temp-$ts.sql

0 Comments

5 ways to pissed off your teammates

These are all speaking through experience

Stubbornly kept on using deprecated code knowing that it will be remove from the code base in the next version, thereby hindering a smooth transition.
Violating all of the company’s coding and naming standards making things difficult to trace for bugs when you go on leave all of a sudden!
You raise [...]

0 Comments