Updates from April, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • levin 8:08 am on April 9, 2011 Permalink | Reply
    Tags: theme,   

    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

     
  • levin 7:18 pm on March 29, 2011 Permalink | Reply
    Tags: ,   

    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.

    (More …)

     
  • levin 5:05 pm on January 14, 2011 Permalink | Reply
    Tags:   

    MySQL tuning for dummies 

    Introduction

    There is so many people asking how to improve their mysql instance, and also so many replies that increase key_buffer, sort_buffer, cache size… etc… which believe will lighten up the performance. However, fellows never notice those parameters was actually efficient to their setup.

    So here you are MySqlTuner,
    (More …)

     
    • Singularity 11:30 pm on January 21, 2011 Permalink | Reply

      how do you figure this is for “dummies”?!

    • Florin 3:20 am on January 25, 2011 Permalink | Reply

      “./mysqltuner.pl” didn’t worked for me .
      I made it work with “pearl mysqltuner.pl”

      • levin 3:29 am on January 25, 2011 Permalink | Reply

        try “chmod +x mysqltuner.pl” first, then you can run it without specifying “perl”

  • levin 11:53 pm on December 12, 2010 Permalink | Reply
    Tags: android   

    Best Free Useful Android Apps – Updated on 22 DEC 

    Here is a list of useful and handy apps for your android, please leave a comment if you found any good one I didn’t list here.
    (More …)

     
  • levin 2:21 am on May 28, 2010 Permalink | Reply
    Tags: drbd,   

    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.
    (More …)

     
    • awinas 3:57 am on January 13, 2011 Permalink | Reply

      Uncomment in /etc/drbd.conf

      1 allow-two-primaries;

      or become-primary-on both?

      • levin 4:21 am on January 16, 2011 Permalink | Reply

        allow-two-primaries is global parameter for nodes,
        become-primary-on both, disk resource specific.

  • levin 4:06 am on February 25, 2010 Permalink | Reply
    Tags: , , , performance, ,   

    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.

    (More …)

     
    • Chris 10:41 am on August 27, 2010 Permalink | Reply

      Thank for performa tuning server guide.

    • Eric Nielsen 7:31 am on January 21, 2011 Permalink | Reply

      Followed your instructions to setup FastCGI, all worked well accept at the end, when I hit my website, I get:

      #!/bin/bash
      PHP_CGI=/usr/bin/php-cgi
      PHP_FCGI_CHILDREN=16
      PHP_FCGI_MAX_REQUESTS=1000
      export PHP_FCGI_CHILDREN
      export PHP_FCGI_MAX_REQUESTS
      exec $PHP_CGI

      • levin 1:59 pm on January 21, 2011 Permalink | Reply

        Hi, please make sure you have the similar lines as below.

        ScriptAlias /cgi-bin/ “/var/www/cgi-bin/”

        \< Directory "/var/www/cgi-bin" \>
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
        \< \/Directory \>

  • levin 4:35 pm on November 10, 2009 Permalink | Reply
    Tags:   

    RPM for dummies

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

     
  • levin 5:17 pm on September 2, 2009 Permalink | Reply
    Tags:   

    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

    (More …)

     
    • Givre 10:02 pm on August 18, 2010 Permalink | Reply

      Hi !
      Thank you for this informations.

      I had the same problem on my Physical stanbdy , and now all it’s ok :)
      I dont have Gapped archive log and the process MRP is now running correctly

      I dont understand why with this senario, the database re-apply archive logs again..
      Witch archive logs ? since what time ?

      Can you givre me more explication about this scenario ?

      Thanks a lot.

      Regards,
      Benoit

    • levin 9:53 am on August 19, 2010 Permalink | Reply

      Hi Benoit,

      Thanks for your comment, I got this error twice after power outage in the DR site , and it only affect on Windows 2003 platform too. At that moment I couldn’t found any resolution from metalink, so I just try to resolve the problem by reactivate the standby db and put it back to physical standby. Luckily the problem disappeared, this is just a workaround and may not be a standard resolution.

      According to the gapped log, for my case, I found this is log 2221 is missing from standby database archive directory, and the archive date is 2 days ago. 19909 error happens on 1 day after this log.

      When I try to apply the workaround and re-establish the sync process, the primary db appeared this 2221 log was already shipped to standby db. However, no such log can be found. Since the archive log retention is set to 7 day, So i can able to copy this log from primary db to standby db in order to recover the gap manually.

    • Givre 3:37 pm on August 19, 2010 Permalink | Reply

      Hi,
      This morning, the problem is still here :-(

      I’m on Unix Machine (AIX) and i have got the same error like you

      MRP0: Background Media Recovery terminated with error 19909
      ORA-19909: datafile 1 belongs to an orphan incarnation
      ORA-01110: data file 1: ‘/xxxx/xxxx/sapdata1/system_1/system.data1′

      I think i will copy the datafile from Primary node.

      Have nice day.
      Benoit

    • levin 3:49 am on August 20, 2010 Permalink | Reply

      Do your standby db backup with RMAN? if yes, take a look on incarnation. Try to reset it to earlier incarnation and then start the standby db again.

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel