JPA berwajah baru

2 Jun 2008 In: Uncategorized

JPA berwajah baru (22/05/2008)

URL rewrite for IIS 7

2 Jun 2008 In: IIS, PHP

Good news for PHP developer in IIS environment. One of the most hotly requested features for IIS is now available! Read the rest of this entry »

Time of Occurrence : 10.26pm on 19 May 2008.

Coordinates : 1.7 North 99.1 East

Location : Northern Sumatera, 173km Northeast of Nias,Indonesia. 300km Southwest of Kelang.

Magnitude : 6.1 on Richter scale

Source: Malaysian Meteorological Department Ref:JMM.APL15/442/19 Jld (17e)/ (81)

This tutorial show your how to retrieve WEP Key using WiFiSlax and Intel Centrino Chipset. Read the rest of this entry »

Return most recent post by date range

8 May 2008 In: How-To, WordPress

Open functions.php from the template file and add this function:

function show_month_posts($where) {
global $wpdb;

$how_long = 60; //60 days

//if( !is_single() && !is_page() )
if( is_home() )

$where .= " AND $wpdb->posts.post_date >= ADDDATE(CURRENT_DATE(), - $how_long)";

return $where;
}
if (is_home ) add_filter('posts_where', 'show_month_posts');

Reset WP Password

30 Apr 2008 In: How-To, WordPress

Simple way to reset your WordPress password through phpMyAdmin.

Step 1:
Create PHP file on your WordPress root and rename to password.php and put this code:

<?php
require('./wp-blog-header.php');
echo wp_hash_password(’yourpasswordhere’); //
?>

Execute and copy the text appear.

Step 2:
Open IE or Firefox browser, go to your phpMyAdmin (Note: use phpMyAdmin at your own risk.)

  • Click your WordPress database
  • All the tables in your database will appear. If not, click Structure.
  • Look for wp_users.
  • Click on the icon for browse or structure.
  • Choose user and click edit
  • Find user_pass and paste the text from password.php
  • Click Go

Go to your Wordpress Login page (something like http://yoursite.com/wordpress/wp-login.php) and type yourpasswordhere

Dreamweaver Xtnd.us offers extensions and reviews for web designers and developers that enhance the workflow of anyone from beginners to professional, anyway who uses Adobe products like, Flash, Dreamweaver, Fireworks, Flex, Apple’s iLife and iWork, and even software like Eclipse.

List of Dreamweaver extension:

DOWNLOAD

If you’re interested in Mochikit, MooTools and YUI API for Dreamweaver, he’s taking requests.

Return most recent post by date range

1 Apr 2008 In: How-To, WordPress

UPDATED: This trick not work with paging. Go to another trick

Want to limit the number of posts on your front page by a date range? For example, display most recent posts for the last 30 days? This works perfectly..

Open index.php template file. Changed this code from:

<?php while (have_posts()) : the_post(); ?>

to:

<?php while (have_posts()) : the_post(); ?>
<?php
$mylimit=30*(60*60*24);
if ( (current_time(timestamp) - get_the_time('U') - (get_settings('gmt_offset') * 3600) ) < $mylimit)
{
?>

and this code from:

 <?php endwhile; ?> 

to:

 <?php } ?>
<?php endwhile; ?>

Hello world!

25 Mar 2008 In: Uncategorized

Everything change on my blog.. I didn’t really have time at all tonight, but I decided to have a go at it anyway. Thanks to Elena Gafita for great theme, which only needed some minor modding for widgets and style.

Again, thank you WordPress. Thank you to the people that visit here frequently, or used to.

About this blog

Hariadi.org is the personal site of Hariadi Hinta, a web coder, and photographer living in Putrajaya, Malaysia. Check out the archives, find out more about me or even get in touch..

Flickr PhotoStream

  • CM2008 901CM2008 896CM2008 860CM2008 842imaCM2008 019CM2008 828CM2008 829imaCM2008 895CM2008 826CM2008 704CM2008 723CM2008 720

Sponsors