27
Jul 11

Ipsum Generators

Turns out that there are a lot of them… Here are some, with samples.

Lorem Ipsum – For the traditionalists. http://lipsum.com

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis suscipit consectetur lorem. Vestibulum scelerisque risus velit. Fusce sed gravida orci. Proin sed sagittis augue. Praesent posuere semper justo at placerat. Nam at metus eu odio hendrerit molestie ornare at ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Baconipsum – For enjoyers of fine meats. http://baconipsum.com/

Bacon ipsum dolor sit amet turkey cow pork chop chuck short ribs, rump bresaola. Pancetta salami hamburger short loin. Swine pastrami hamburger short ribs, pork loin ham hock rump andouille turkey bacon brisket pork chop ribeye. Tri-tip short ribs ribeye bacon, pork belly boudin jerky andouille shank short loin.

Veganipsum – For those of you with vegan powers. http://veganipsum.com/

Phaseolus coccineus stachys affinis! Vigna umbellata malva verticillata – solanum tuberosum. Abelmoschus esculentus canna spp moringa oleifera? Hypochaeris radicata rumex acetosa vigna unguiculata subsp unguiculata. Lens culinaris pachyrhizus erosus; cucurbita pepo – phaseolus acutifolius celosia argentea.

HTMLipsum – Various html elements with dummy text in them. http://html-ipsum.com/

<ul>
   <li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</li>
   <li>Aliquam tincidunt mauris eu risus.</li>
   <li>Vestibulum auctor dapibus neque.</li>
</ul>

T’Lipsum – A lot of what I can only assume are vulgarities. http://tlipsum.appspot.com/

Aye ipsum cack-handed sit ey up consectetur adipiscing Michael Palin gi’ o’er ultrices nay lad ne’ermind t’foot o’ our stairs amet ornare wacken thi sen up pulvinar dapibus. bobbar that’s champion ah’ll learn thi odio, accumsan volutpat that’s champion Fusce suscipit appens as maybe id mi face like a slapped arse how much?

Fuck Lorem Ipsum – I don’t think he likes lorem ipsum. http://fucklorem.com/

They arrived in fifty mother ships, offering their friendship and advance technology to Earth. Skeptical of the visitors, Mike Donovan and Juliet Parrish infiltrated their ranks and soon discovered some startling secrets. The resistance is all that stands between us… and the visitors.

malevole text generator – developed based on years of careful research. http://www.malevole.com/mv/misc/text/

Hong Kong Phooey, number one super guy. Hong Kong Phooey, quicker than the human eye. He’s got style, a groovy style, and a car that just won’t stop. When the going gets tough, he’s really rough, with a Hong Kong Phooey chop (Hi-Ya!). Hong Kong Phooey, number one super guy. Hong Kong Phooey, quicker than the human eye. Hong Kong Phooey, he’s fan-riffic!


25
Jul 11

Check if the current node has been updated

Turns out there wasn’t a drupal module (that I could find…) that would do periodic checks to see if a node has been updated, so I made one.

The content has new content! Huzzah!

Features:

  • Checks periodically whether or not the node that you are looking at has been updated.
  • Options for the style and the interval for the check.

Todo:

  • Get it on the drupal site
  • Check only for specific node types.
  • Permissions per node type?

Get it here: https://github.com/SeanJA/drupal-node_updated.


22
Jul 11

Code: Custom Node Add/Edit Title

You can achieve this by adding this to template.php in your theme folder.

function phptemplate_node_form($form) {
  switch($form['type']['#value']) {
    case 'my_node_type':
      $title = empty($form['nid']['#value']) ? 'Add a new custom node' : 'Edit a new custom node';
      drupal_set_title($title);
      break;
  }
  /** note: returning drupal_render_form() will bump your save / preview buttons up to the top **/
  return theme_node_form($form);
}

21
Jul 11

Trollin Oracle

/*
 * Copyright (c) 1995, 2008, SeanJA and/or its affiliates. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in the
 *     documentation and/or other materials provided with the distribution.
 *
 *   - Neither the name of Oracle or the names of its
 *     contributors may be used to endorse or promote products derived
 *     from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */ 
 
/** 
 * The HelloWorldApp class implements an application that
 * simply prints "Hello World!" to standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Display the string.
    }
}

19
Jul 11

Video: Secret History of Silicon Valley

I still have to watch this, but it looks interesting.

Today, Silicon Valley is known around the world as a fount of technology innovation and development fueled by private venture capital and peopled by fabled entrepreneurs. But it wasn’t always so. Unbeknownst to even seasoned inhabitants, today’s Silicon Valley had its start in government secrecy and wartime urgency.

In this lecture, renowned serial entrepreneur Steve Blank presents how the roots of Silicon Valley sprang not from the later development of the silicon semiconductor but instead from the earlier technology duel over the skies of Germany and secret efforts around (and over) the Soviet Union. World War II, the Cold War and one Stanford professor set the stage for the creation and explosive growth of entrepreneurship in Silicon Valley. The world was forever changed when the Defense Department, CIA and the National Security Agency acted like today’s venture capitalists funding this first wave of entrepreneurship. Steve Blank shows how these groundbreaking early advances lead up to the high-octane, venture capital fueled Silicon Valley we know today.