Pratamaputra’s Weblog

Just another WordPress.com weblog

Archive for the ‘Solutions’ Category

Rapid Web Application Development

without comments

Case : Building HR system, including employees data, relate to structural organization chart and access right, payroll, attendance, leave, overtime, and performance. All those should be created in 2 days, starting from scratch.

Solution : Use framework, since it will speed up your development time. Because you don’t have to deal on form’s object and their property.

For example, a select option tag. While editing saved data, you need to show a previous saved data using select object. If you plan to build on php scratch, than you’ll need to iterate from all select’s option, compare it with last saved value, and add “selected” label on option that fit with your last saved.

Mmm, .. it is more easy to use delete data and reinsert to replace edit. Mmm, .. but you need to keep ID information … yea, you can’t user delete-than-insert method to replace edit.

Written by pratamaputra

June 2, 2008 at 2:28 pm

Multi Internet Connection & Auto BCC

without comments

Case :

  1. using 3 different internet line, create a 1 line, 3x bandwidth, and high availability line but transparent to user.
  2. create an email server that can add bcc to one hidden account from every email, either it incoming email or outgoing email.

Solution Plan :

1. Using router Linksys rv082, which has 8 ether port and 2 wan port, featuring load balancing to integrate 2 line of wan. Linksys did not come with 2 or more wan port. So, I’m planning to use 2 RV082, stacked to come with 3 load balanced WAN access.

2. forwarding email on incoming email is easy, but copying outgoing email need more effort. Using sendmail as mail transport agent, you will find some of hint to do auto copy / auto bcc for outgoing email.

http://www.sendmail.org/faq/section4/sf_highlight/auto+bcc#4.20

quote from sendmail.org, It would require custom programming. Note that no such feature has been added to sendmail. When asked about this one of the sendmail developers said it was “because we still believe a bit in privacy.”

using .forward file on each of every user home directory will automatically deliver incoming mail to another destination.

PS: This solutions has not yet proven.

Written by pratamaputra

June 2, 2008 at 2:15 pm