Displaying posts categorized under

PERL

Remove BOM from utf-8 files

Problem When I developed a PHP web application with multiple language support, I encountered a situation that PHP report “header is already sent”. That was caused by the Unicode Byte Of Mark (BOM) at the beginning of files in utf-8 encoding. Solution 1 In my article Solution for Cannot modify header information in PHP application, one [...]

  • Share/Bookmark

U’s Bargain Network, an online deal publishing system

U’s Bargain Network is a website that publishes online deals, bargains, discounts, and coupons related to computer, software, gaming, electronics, and video and more. It was intensively developed through the last two years. It is powered by online deal publishing system that consists of PHP applications, PERL applications, MySQL database system and other auxiliary applications.  The [...]

  • Share/Bookmark

A PERL script to get Twitter user information

If you are a Twitter user and do business on Twitter, you probably think about how I can target to a group of Twitter users, such as living in certain region or having similar interests. Can we screen Twitter users and target to a given population of Twitter users? Answer is absolutely positive: yes, we [...]

  • Share/Bookmark

Automatically send updates to Twitter

Here is a PERL script I developed to automate Twitter update activity. The fundamental thing is you have a database and all updates are stored there. You are sick of sending all Twitter updates manually. As long as you meet these two criteria you can keep reading. Otherwise, stop here. The PERL source code is [...]

  • Share/Bookmark

How to split a MySQL dumped file into tables

I maintained a MySQL server and automatically dump everything on the server to a file. The dump process is achieved by a shell script. #!/bin/bash date=`date -I` mysqldump –add-drop-table -u xxxxx -pxxxxx usbargains | gzip > /samba/dat$ mysqldump –add-drop-table –all-databases -u xxxxx -pxxxxx | gzip > /samb$ To be aware that the username and password [...]

  • Share/Bookmark