Posts

How to jailbreak your Ipod with BlackRa1n RC3

Image
Step 1: Update iTunes to the latest version available and reboot your computer. Step 2: Download BlackRa1n RC3 from our iPhone downloads page and install it, then reboot your computer. Step 3: Plug your iPhone in your computer and launch BlackRa1n RC3. Click on "make it ra1n" Step 4: Your iPhone will enter recovery mode. The regular recovery mode image on your iPhone will be replaced by a picture of GeoHot (same as image above). Step 5: BlackRa1n will run on your iPhone and then it will reboot. A pop up will show up asking you to donate. If you successfully jailbreak your iPhone, I suggest you send $5 or $10 to GeoHot. Step 6: Once your iPhone reboots, you will have a new icon on your springboard. This is BlackRa1n. Now make sure you have internet connection and launch BlackRa1n on your iPhone. Step 7: Choose what installer applications you want to install on your iPhone and then tap “Install”. I suggest only installing Cydia but you may install them all if you want to. Black...

String Search & Replace (AS2 & AS3)

function strReplace($str:String, $search:String, $replace:String):String { return $str.split($search).join($replace); } var str:String = new String(); str = "we are Khmer!" trace(strReplace(str,"we","We")); The "split" function splits the string at the word ($search) you're searching for. And the "join" inserts the new word ($replace) between the elements, concatenates them, and returns the resulting string

Wordpress get Page content By Page ID

<?php if(!function_exists('getPageContent')) { function getPageContent($pageId,$max_char) { if(!is_numeric($pageId)) { return; } global $wpdb; $nsquery = 'SELECT DISTINCT * FROM ' . $wpdb->posts . ' WHERE ' . $wpdb->posts . '.ID=' . $pageId; $post_data = $wpdb->get_results($nsquery); if(!empty($post_data)) { foreach($post_data as $post) { $text_out=nl2br($post->post_content); $text_out=str_replace(']]>', ']]>', $text_out); $text_out = strip_tags($text_out); return substr($text_out,0,$max_char); } } } } ?> How to Call function getPageContent? <?php echo getPageContent(11,150); //First parameter is PAGE ID and second is number of words displayed. ?>

Limit the Number of Characters in a Textarea or Text Field

removing link outline around

Some browser when you click on link text or link image you always see outline box around text or image link. a, object { outline: none; }

safari disable resize textarea

You can use the CSS3 'resize' property to "specify whether or not an element is resizable by the user": textarea { resize:none; } or you can use textarea { max-width: 175px; /* RESTRICT SAFARI RESIZE */ max-height: 250px; /* RESTRICT SAFARI RESIZE */ }

Wordpress get page title by page id.