Author Archive

Wordpress 2.7 new update features

I had updated my WordPress version to WordPress 2.7-beta3-9750 from beta 1 via SVN.  Well, actually I had to do it by first updating the SVN version from my PC, zip it, upload it via FTP, and then extract it to my WordPress installation via cPanel. That’s because of my Web hosting provider that does not support SSH.

update 

By the way, that is not the purpose of this post. After upgrading, I headed to the admin Dashboard and click on the Update link located at the left nearly bottom. It says that I had the latest version of WordPress. That is as usual. However, I found that there are three new buttons: Re-install Automatically, Download and Hide this update. That is great, especially for the Re-install Automatically function. However, it is does not work yet. At least, by the time I wrote this post.

Those WordPress guys are working hard in order to make WordPress great software. Hopefully, the release of WordPress 2.7 would solve the problem of re-installing corrupted WordPress, for what ever reason.

Links:

  1. http://wordpress.org/development/2008/11/wordpress-27-beta-3/
  2. http://wordpress.org/wordpress-2.7-beta3.zip

Backup, sync and secure folders with Toucan

Toucan is a small freeware that allows us to synchronize, backup and secure your data. The GUI is so simple and divided into seven tabs, allowing us to easily find the function that we need.

There are four synchronization mode for Toucan: copy, update, mirror (copy/update) and equalize.

screenshot.1

As for the backup function, Toucan supports complete, update and differential type. The backup file can be in the format of zip or the smaller size 7-zip.

screenshot.2

The third feature of Toucan, secure data, use AES-256 encryption via ccrypt. AES is one of the most popular algorithm used in symmetric key cryptography. AES is fast and also require less memory.

screenshot.3

As a conclusion, Toucan is not only a good and simple tool for backup and synchronization tasks, but can also encrypt important files and folders.

If you have any other suggestions, please don’t hesitate to leave a comment.

Links:

  1. Toucan: http://portableapps.com/apps/utilities/toucan
  2. AES: http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
  3. ccrypt: http://ccrypt.sourceforge.net/
  4. 7-zip: http://www.7-zip.org/

Desktop screenshot with Lightscreen

Lightscreen is a small and simple freeware to capture your desktop screenshots. It can be executed silently at Windows startup, and stays in the system tray, besides the clock.

main

Capturing is easy. You can use the gui, or just invoke the configurable hotkey.  Lightscreen supports capturing full screen, window and area. The result will be automatically saved in a directory according to user preferences.

hotkeys

Besides, you can also choose between three different format of the output image. Lightscreen supports PNG, JPEG and BMP.

options

If you have any suggestion, please leave a comment.

Link: http://lightscreen.sourceforge.net/


Spring clean your PC

Baku is a freeware tool that could be use to clean up your PC. The three main features of Baku are remove unwanted files, remove invalid Registry keys, and remove Most Recently Used (MRU) lists.

Baku Wizards

Baku’s first feature - search for unneeded files - is great for searching and remove empty folders, ‘History’ folder contents, ‘Recent documents’ folder contents, ‘Temp’ folder contents, temporary internet files, and cookies. Besides, it will also searches for Windows log files, shortcuts to missing files and folders, and user specified file types. Baku will also implements the standard DOD 5220.22-M, in order to make sure that the deleted data will not be recovered.

 screenshot2

As for the registry, Baku’s second feature could be used to removes unused and obsolete keys, including ActiveX/COM, Application Paths, Fonts, Help files, Icon files, Sound files, Uninstall Programs and Windows Installer. Baku will automatically backup the registry before any changes are made.

The last optional feature of Baku is the MRU lists cleaner using heuristic based scanning. MRU lists supported by Baku includes Media Player, eMule, Firefox, Opera, Internet Explorer, Microsoft Office, Nero, Adobe Acrobat, WinRAR, WinAce and WinZip.

Besides the three main features of Baku, Baku could also be used to backup and restore not only the entire system registry, but also the system device drivers.

link: http://pmcchp.com/baku/index.html


Wordpress 2.7-beta3

Wordpress 2.7 is now in the beta 3 stage.

You can download it here.


Simple division technique

This division technique can only be used if the divisor could be factorized.

Example 1:

272 ÷ 16 = 17

  1. Find the factors of the divisor. Choose one of the factors.
    16 = 4 × 4 or 16 = 8 × 2
    For example, I will use 8 × 2
  2. Divide the dividend by one of the factor.
    272 ÷ 8 = 34
  3. Divide the quotient from 2. by the second factor.
    34 ÷ 2 = 17
  4. Therefore, the quotient is 17

Note: Try with 4 × 4.

 

What will happened if the remainder is not zero? Please look at the next example.

Example 2:

275 ÷ 16 = 17 with remainder 3

  1. 16 = 4 × 4
  2. 275 ÷ 4 = 68, r. 3
  3. 68 ÷ 4 = 17
  4. The quotient is 17, with remainder 3

Note: Try with 2 × 8


Change WordPress displayed author name for all comments

Whenever you change the display name Users >> Your Profile >> Nickname, and set  the “Display name publicly as”, it will only affect the newly posted comment by you. Actually, you can change the displayed author name for all comments.

You can change the displayed name of comment author for all comments using this sql statement:

 

UPDATE `wp_comments` SET `comment_author`='old-name' WHERE `comment_author`='new-name'

How to create a WordPress theme option page

This tutorial will show you how to create a simple WordPress theme option page.

First, you will need a sample theme. Create a new folder in wp-content\themes. Name it ‘test’ (or, whatever you like). Create three files in the ‘test’ folder: index.php, style.css and functions.php. Now, you should choose the ‘test’ theme as the current theme.

Second, open the functions.php file in your favourite text editor, and paste the following php code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
add_action('admin_menu', 'add_welcome_interface');
 
function add_welcome_interface() {
/* add_theme_page( page_title, menu_title, access_level/capability, file, [function]); */
add_theme_page('Your Theme Name', 'Your Theme Options', 'edit_themes', basename(__FILE__), 'editoptions');
}
 
function editoptions() {
?>
 
<div class="wrap">
  <h2>Your Theme Name</h2>
  <form action="options.php" method="post">
  <?php wp_nonce_field('update-options'); ?>
 
  <table class="form-table">
  <tbody>
  <tr valign="top">
  <th scope="row">First Option</th>
  <td><input value="<?php echo get_option('first_option'); ?>;" name="first_option"></td>
  </tr>
  <tr valign="top">
  <th scope="row">Second Option</th>
  <td><input value=<?php echo get_option('second_option'); ?>" name="second_option"></td>
  </tr> </tbody></table>
 
  <input type="hidden" value="update" name="action">
  input type="hidden" value="first_option,second_option" name="page_options">
  <p class="submit"> <input type="submit" value="<?php _e('Save Changes') ?>" name="Submit"></p>
  </form>
</div> 
 
<?php } ?>

Finally, you can call the options that you save in index.php file, using the get_option() function.

1
2
3
4
<?php
echo get_option('first_option');
echo get_option('second_option');
?>

Function References:

  1. http://codex.wordpress.org/Function_Reference/add_action
  2. http://codex.wordpress.org/Function_Reference/get_option

Remainder when a number is divided by a nine

Do you know that there is an easy way to find the remainder when a number is divided by 9?

Example 1:

43 ÷ 9 = 4, remainder = 7

quick remainder: 4 + 3 = 7

Example 2:

28 ÷ 9 = 3, remainder = 1

quick remainder: 2 + 8 = 10 ?

If the addition is ? 9, cast out the 9s, until it is lest than 9.

10 – 9 = 1

Example 3:

2345 ÷ 9 = 260, remainder = 5

quick remainder: 2 + 3 + 4 + 5 = 14

14 – 9 = 5

Example 4:

4489 ÷ 9 = 498, remainder = 7

quick remainder: 4 + 4 + 8 + 9 = 25

25 – 9 = 16

16 – 9 = 7


WordPress 2.7-beta1-9478

The beta 1 version was out.

WordPress 2.7-beta1-9478

 

Download it here (http://wordpress.org/wordpress-2.7-beta1.zip).