Trick to create string with HTML tags in PHP

June 9, 2009

If you are too lazy to perform stripping any kind of  ‘forbidden’ tags in string, like ‘<?’ or ‘ ” ‘ symbol, this is a method:



$str = <<<EOD
<p>Welcome! Today is the <?php echo(date(‘jS’)); ?> of <?= date(‘F’); ?>.</p>
Text “outside” of the HTML block.

echo $str;


It gonna makes your job faster, right?😉

PHP function to create your own custom YM status

June 9, 2009

This is a quick simple method to create your own custom YM picture status.

Pictures below are just default and ordinary status from Yahoo. Let’s create our own status picture.



if (!function_exists(getStatusYM)) {
function getStatusYM ($yahoo_id, $user_name, $image_online, $image_offline) {
$pageurl = “;.$yahoo_id.”&m=a&t=1″;

$file = @fopen($pageurl, “r”);
$read = @fread($file, 200);
$read = ereg_replace($yahoo_id, “”, $read);

if ($y = strstr ($read, “00”)) {
$online = false;
elseif ($y = strstr ($read, “01”)) {
$online = true;

@fclose ($file);

echo ‘<div align=”center”><a href=”ymsgr:sendIM?’.$yahoo_id.'”>’;

if ($online) {
echo ‘<img src=”‘.$image_online.'” border=”0″ alt=”‘ . $user_name . ‘ is online” title=”‘ . $user_name . ‘ is online” />’;
else {
echo ‘<img src=”‘.$image_offline.'” border=”0″ alt=”‘ . $user_name . ‘ is offline” title=”‘ . $user_name . ‘ is offline” />’;

echo ‘</a></div>’;

getStatusYM (“frozenade”, “Frozenade McForsaken (Webmaster)”, “images/online.png”, “images/offline.png”);


How to create and add cool tooltips into web page

May 8, 2009

To create fading tooltips is easy cake.
Here are the steps:

  1. Download MooTools JavaScript framework from it’s website, or you can find it inside this archive.
  2. Include CSS file, tooltips.css.
  3. Include JS file, tooltips.js.
  4. Make sure an image file named bubble.png is in images folder.
  5. And finally you need to add class=”tooltip” and title=”Tooltip Title :: Description goes here” on every HTML object you want to have tooltip on it.

Download the full example here.

PC Media Antivirus (PCMAV) 1.91

January 6, 2009

Download link:
Update Build 2:

How to Embed Music in a PowerPoint Presentation

December 19, 2008
  1. In PowerPoint, highlight the slide where you want the music to start.
  2. From the menu, choose:



  3. Browse in dialog box to choose music file. Answer “Do you want your sound to play automatically in the slide show?”
  4. You will see a sound icon on your slide. Reposition icon.


  5. To adjust playback options, right-click sound icon and choose CUSTOM ANIMATION. Choose EFFECT OPTION from drop-down list.


  6. PowerPoint will automatically embed supported sound files up to 100K in size. Files larger than the default setting will be linked, not embedded.
  7. To increase the default to 50,000K in size, choose:



  8. In the OPTIONS dialog box, select the GENERAL tab. Change 100 Kb to any number up to 50,000 Kb. Click OK.


  9. Files larger than the selected size will be linked, not embedded. You must copy linked files with your presentation file to transport your presentation. Embedded sound files are part of your presentation file.

Print Cells to Every Page in Microsoft Excel

November 23, 2008

You may wondering how to create title which able to be shown in every page (not Header).

Here we go..

  1. Click View –> Page Break Preview. Now your active sheet is now divided onto pages.
    Drag blue border line to customize your print area.
  2. Click File –> Page Setup from the menu, clicking the Sheet tab, and telling Excel which row and column titles you want to appear at the top and/or left of every printed page.
  3. Click File–>Print Preview.
  4. Tada! Now you got what do you want.

Good luck and have a nice Excel.😉

15 Useful Project Management Tools

November 14, 2008

by Cameron Chapman

There is a huge variety of project management applications out there. Most are general purpose apps, not aimed at any one industry. But there is a growing number of project management apps aimed specifically at one industry or another. Applications geared to creative types are becoming more readily available, and some of the offerings are really quite good.

Many of these project management apps have built-in code repositories and subversion browsers (or are built around them). A few have built-in bug and issue tracking. Others include more than just basic project management. All of them can help you keep track of activities and team members. There are both free and paid options. Some have very slick interfaces, and some are modeled more after desktop applications. All are relatively easy to use and easy to set up.

Below are 15 useful project management applications, almost all of which are targeted directly at Web developers, designers (both Web and print) and other creative types. The last one is not geared specifically to creative types but is the most unique project management application I’ve found and is included on that basis as well as because of its potential usefulness for designers and developers.

Also consider our previous article:

1. Basic Project Management Apps

These applications are marketed specifically for project management. Most include things like task-, team-, and goal-management features. Some include additional features such as time tracking and invoicing.


Lighthouse is a bug- and issue-tracking app that tracks timelines and milestones, integrates with your email client and more. You can update tickets through your inbox, manage your beta testing (by making tickets and milestones public), integrate it with subversion and manage and prioritize your tickets.

Project creation is simple; only a project title and description is required. Once a project is created, tickets, messages and milestones can be entered. Ticket creation can be done by email (the email address to send tickets to is displayed on the “Tickets” page). You can show tickets based on a variety of criteria, including date, state (open or closed) and who is responsible for them. Message creation is easier than email, and you can attach files up to 50 MB in size. When you create a milestone you simply enter the title, the date it’s due and the goals or focus for that particular milestone. It doesn’t get much simpler than that.

Permissions are easy to set, and you can invite users by email. One of the best features of Lighthouse is its Beacon and API integration. With the API, you can customize tickets, projects, changesets, milestones, messages and more. Integrate it with other services (such as Google Calendar), or make desktop applications that use Lighthouse. The APIs make Lighthouse infinitely more useful, because you can really customize it to fit your current workflow.

Lighthouse is great for Web development teams (or individuals) and has a very easy-to-use interface. They have paid and free plans, all of which include unlimited open-source projects. The free plan lets you manage one private project with up to two people on the account. The paid plans range from $10 per month for the Personal plan (with up to 3 projects, 10 users and 100 MB of file upload storage space) to $120 per month for the Platinum plan (with unlimited projects, up to 50 public projects, unlimited users and 30 GB of file upload space).

When combined with a subversion app, Lighthouse provides a pretty complete project management app for developers. Subversion integration is pretty straightforward, and the help file provided gives complete step-by-step instructions for setup.