WordPress theme preview “The eVol Theme”

I’ll release this WordPress theme “The eVol Theme” for free(hopefully) in coming days(hopefully too), this theme is a all-in-one package build for photographers, portfolio users, bloggers.

The themes support the follow key features.

– Front-end composing
– Auto image resize, attach
– Exif, Geo location display for images.
– Jplayer support for Audio/Video
– Switchable index page style, Wall style or Post-it style.
– Selectable front page slider effects.
– Simple “likes” function.
and more…

Stay tuned, please follow @levindecaro

Submitting WordPress post from frontend without a plugin

Screen Shot
Screen Shot

About

This tutorial will guide you to create your own custom post composing form to enable fast blogging with your favorite theme without adding a plugin. I’m looking for any alternative to not porting P2, however…. none.,  finally that’s the reason i wrote it, and It was also inspired by the original development from http://wpshout.com/wordpress-submit-posts-from-frontend/.

Why

I found the code from http://wpshout.com/wordpress-submit-posts-from-frontend/ , but it doesn’t  handle file attachment, indeed most people and I was demand on image uploads for status update,  photo blogging.. whatever . But to get working with build-in WordPress media upload function require a lots of code work,  and if you prefer a fully functional media library, you could base on P2 theme instead.

How it work

  1. It create a post form to allow  the post content inserted by wp_insert_post.
  2. following the post_id, it attach the uploaded files to the post.
  3. Set the first ordered image to the post “featured images”
  4. Lastly, you call get_all_thumbnails before the_content() in order to retrieve the uploaded files.

Limitation

The critical limitation is lack of media features, unlike build-in media library, you can customize your post images and place it on your desired position. Therefore the images only able to retrieve by the_post_thumbnail() for single image or get_all_thumbnails() for multiple images.

Continue reading “Submitting WordPress post from frontend without a plugin”

howto create GFS on DRBD network disk mirroring

Introduction

This howto will cover how to create a DRBD disk set with GFS concurrent disk access setup.

Why DRBD?

DRBD disk mirroring benefit as a shared SAN disk to archive higher service resilience with low cost hardware component. Alternately, it may be configured for backup purpose with it’s flexibility.

Prerequisite

1. RedHat Cluster Suit and GFS packages

cman-2.0.115-1.el5
gfs2-utils-0.1.62-1.el5
gfs-utils-0.1.20-1.el5
kmod-gfs-0.1.34-2.el5

2. drbd83 package

yum install drbd83

3. Create a partition on both node with using same size, we use [sda5] for this show case.
Continue reading “howto create GFS on DRBD network disk mirroring”

Performance tuning on Apache, PHP, MySQL, WordPress v1.1 – Updated

Introduction

This tutorial is covering the web server performance tunings on MySQL, PHP and Apache, WordPress and BuddyPress or general web hosting purpose, the tuning example is based on CentOS 5.

The key of the following performance tuning is focus on memory and caching, most of people host a web site or forum or blog without any tunings or even use the all out-of-box setting.

Continue reading “Performance tuning on Apache, PHP, MySQL, WordPress v1.1 – Updated”

RPM for dummies

RPM for dummies

This post was inspired by http://www.nordugrid.org/documents/rpm_for_everybody.html

MRP0: Background Media Recovery terminated with error 19909

How to solve ORA-19909 error when re-sync dataguard, when the standby database shutdown ungracefully, sometime you may found an error when you put the standby database back online, in this scenario, I try to active the standby database and flash back to standby mode in order to let standby database re-apply archive logs again.

Error message as below

MRP0: Background Media Recovery terminated with error 19909

ORA-19909: datafile 1 belongs to an orphan incarnation

Continue reading “MRP0: Background Media Recovery terminated with error 19909”