Archive for the ‘Uncategorized’ Category

Generate SSH key pair

Posted: September 10, 2012 in Uncategorized

  1. Download SSH key generator from putty key generator utility click here.
  2. Select SSH-2 RSA
  3. Hit on generate key
  4. This will prompt you to move your cursor around blank area.
  5. As you move key will generate and indicator will show you the progress
  6. Save your public and private keys in desired location.

 
function getCurrentBrowser() { 
     jQuery.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
     if(jQuery.browser.chrome)
     return "chrome";
     if(jQuery.browser.mozilla)
     return "mozilla"; 
     if(jQuery.browser.opera) 
     return "opera";
     if(jQuery.browser.safari)
     return "safari"; 
     if(jQuery.browser.msie)
      return "ie"; 
} 

get_col($wpdb->prepare(”
SELECT ID
FROM $wpdb->posts
WHERE SUBSTR($wpdb->posts.post_title,1,1) = %s
ORDER BY $wpdb->posts.post_title”,$first_char));

if ($postids) {
$args=array(
‘post__in’ => $postids,
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => -1,
‘caller_get_posts’=> 1
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
echo ‘List of Posts Titles beginning with the letter ‘. $first_char;
while ($my_query->have_posts()) : $my_query->the_post(); ?>

<a href="” rel=”bookmark” title=”Permanent Link to “>