Japan and America agree to put giant fighting robots into battle – Telegraph

Japan’s Suidobashi accepts MegaBots’ challenge of a duel, paving the way for robot wars on a grand scale

Source: Japan and America agree to put giant fighting robots into battle – Telegraph


~text (PNG Image, 560 × 440 pixels)

Source: ~text (PNG Image, 560 × 440 pixels)


WP-Syntax

wordpress_plagin

WP-Syntax provides clean syntax highlighting for embedding source code within pages or posts.

WP-Syntax provides clean syntax highlighting using GeSHi — supporting a wide range of popular languages. It supports highlighting with or without line numbers and maintains formatting while copying snippets of code from the browser.

It avoids conflicts with other 3rd party plugins by running an early pre-filter and a late post-filter that substitutes and pulls the code snippets out first and then pushes them back in with highlighting at the end. The result is source code formatted and highlighted the way you intended.

This plugin was originally written for use with EmacsBlog. To see it in action, scroll through this particular post or visit the screenshots.

Usage, Supported Languages, Styling Guidelines, and Release Notes are availabe in the Other Notes section.
Basic Usage

http://wordpress.org/extend/plugins/wp-syntax/

Supported Languages

The following languages are supported in the lang attribute:

abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, avisynth, bash, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cil, cfdg, cfm, cmake, cobol, cpp-qt, cpp, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel, email, erlang, fo, fortran, freebasic, genero, gettext, glsl, gml, bnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno, intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, locobasic, lolcode lotusformulas, lotusscript, lscript, lsl2, lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis, oberon2, objc, ocaml-brief, ocaml, oobas, oracle11, oracle8, pascal, per, pic16, pixelbender, perl, php-brief, php, plsql, povray, powershell, progress, prolog, properties, providex, python, qbasic, rails, rebol, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql, typoscript, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xml, xorg_conf, xpp, z80


Dynamic the_excerpt() length in WordPress

wordpress-featured

Add in function.php in your theme

	function the_excerpt_dynamic($length) { // Outputs an excerpt of variable length (in characters)
		global $post;
		$text = $post->post_exerpt;
		if ( '' == $text ) {
			$text = get_the_content('');
			$text = apply_filters('the_content', $text);
			$text = str_replace(']]>', ']]>', $text);
		}
			$text = strip_shortcodes( $text ); // optional, recommended
			$text = strip_tags($text);  // use ' $text = strip_tags($text,'
 
<a>'); ' to keep some formats; optional $output = strlen($text); if($output</a>

Call in loop:

the_excerpt_dynamic(250)

Dynamic post the_title() length in WordPress

wordpress-featured

If you want to be able to limit the result returned when you display the title, first add this code to your themes functions.php file:

function the_title_dynamic($titlelength) { // Outputs a title of variable length (in characters)
   global $post;
   $text = $post-&gt;post_title;
   if (== $text ) {
      $text = get_the_title();
   }
   $output = strlen($text);
   if($output &lt;= $titlelength) {
     $text = substr($text,0,$titlelength);
   }else {
      $text = substr($text,0,$titlelength).'…';
   }
   echo $text;
}

Call in loop:

the_title_dynamic(50)