Iedereen die al eens in Londen is geweest heeft haar al gehoord, Emma Clarke, de stem van “Mind the gap” in de metro. Er is nu ook een serie van parodieën beschikbaar. De website van Emma Clarke zelf is er natuurlijk ook nog altijd.
start Ubuntu in text mode only
A short command on how to change Ubuntu so that it will only start in text mode, no X11 (graphical) mode. The following removes the graphical greeter from the runlevels :
Write a disk full with files with random or zero data
I wanted to test a hard-drive that halted when its internal temperature raised above its safety level. hdparm is one option but the script below creates different files with a certain given size.
COUNTER=0
while [ true ]; do
dd if=/dev/zero of=file$COUNTER bs=$1 count=1024
let COUNTER=COUNTER+1
done
You can replace /dev/zero with /dev/random if you want random data. Call the script with one argument, the file size.
Set the default height and width of a gnome-terminal
Launch it with gnome-terminal –geometry 135×30 (edit the menu or create a new launcher).
Adjust the launchsettings in ~/.xbindkeysrc
m:0×10 + c:116
10 GbeE switches van Google
Een hele hoop geblaat van Andrew Schmitt over het feit (?) dat Google z’n eigen switches aan’t fabriceren is. En wat dan nog? Nadat Google z’n eigen servers al heeft ontwikkeld heeft lijkt het nogal evident dat ze nu ook eigen switches maken, waarschijnlijk als aanzet naar hun op stapel staande 10Tb routers (sic).
Het lijkt me niet ondenkbaar dat ze kostenbesparend proberen te werken maar je kan Google moeilijk beschuldigen van het wiel opnieuw uit te vinden. Waarschijnlijk nemen ze gewoon ‘n bestaand product en zoeken ze oplossingen om de tekortkomingen weg te werken. Bij een server-voeding valt er heel wat te vinden. Een goede switching of routing engine verbeteren is heel andere koek. Waarom zouden ze überhaupt? Een bestaand product rebranden en wat aanpassen aan de eigen eisen lijkt me heel wat meer kostefficiënter.
Een rode draad doorheen het hele (ook dit) verhaal : gissingen. Horen we daar ergens Roswell en een in’t zand begraven Bender roepen?
Show comment box / comments on a WordPress Page
Just include this in your theme / template for the WP-pages :
<?php comments_template(); ?>
If you’re not happy with the default then just edit the file comment.php
WordPress, printing ParentChild menus
Worpress allows you to print parent menu’s with different child-menus. Implementation is easy, just add this to your themes.
In the file that creates the header of your page, normally header.php, add this code:
<?php $args = array(
'title_li' => '',
'sort_column'=>'menu_order',
'depth' => 1
);
wp_list_pages($args);
?>
Then in the file that creates your child menu (normally this should be sidebar.php) add this code:
<?php
if($post->post_parent) {
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
}
else {
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
}
if ($children) { ?>
<ul>
<?php echo $children; ?>
</ul>
<?php } ?>
The selected menus are li.current_page_parent and li.current_page_item so you should adjust their style in your stylesheet.
