Weekly Tweets for 2011-11-26

Posted in Tweets | Leave a comment

Time lapse from the space station

Posted in Videos | Tagged , , , , | Leave a comment

Weekly Tweets for 2011-11-19

Posted in Tweets | Leave a comment

Weekly Tweets for 2011-11-12

Posted in Tweets | Leave a comment

Copyright overkill

There really are some things that don’t need to be copyrighted. Take the following example for, well, example. Oracle wanted to protect their IP. Sure, it’s only a Hello World program, but they created this specific one.

/*
 * Copyright (c) 1995, 2008, Oracle 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.
    }
}

If you want or need a Hello World program in Java, and don’t feel like typing in all the copyright info at the top you can download it here.

And I can’t tell which is funnier. That there’s 28 lines of copyright header, that they put a JavaDoc header above the class, or that the line that actually prints Hello World! is commented.

Either way, this is what happens when lawyers get involved.

Posted in Computer Science | Tagged , | Leave a comment

Sometimes it doesn’t have to be perfect

A student passed this along to me today. Admittedly, it’s very well done. But it’s nice to see something good, and funny, that isn’t a perfect model of real life.

Posted in Videos | Tagged | Leave a comment

Posting to Twitter with PHP and OAuth class

Needed a bit of an update on a font site I threw up a few years ago. Specifically I wanted to put a script together to tweet a random font each day. Should have been easy since I already had a script that tweeted new fonts, although it’s been a bit behind since I haven’t been updating the site like I needed.

Realized that the old script wasn’t working though since Twitter switched to OAuth and the class my old script was using didn’t use OAuth.

Came across this post which lead me to a Twitter OAuth class which made the whole process dead easy.

Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Printing a single frame from a Flash project

Bit of a duh moment after finally finding a solution to this.

What I needed was a way to print a single frame out of a Flash project. Pretty easy to print the first frame, or all frames, but I just missed the simple step to print a single frame.

First, go to File -> Page Setup and select All Frames and Actual Size from the dropdowns under Layout.

Page Setup Dialog

Click Ok and then go to File -> Print and select the page range you want to print. In this case only frame 35 will print.

Selecting only frame 35

Click print and it’ll print just the frame you want.

Posted in Computers & Internet | Tagged | 1 Comment

Set WordPress image to “none”

Been using WordPress for a while now. Heck, this blog has been running WP since 2007. So it’s really sad that it took until today for me to figure this out.

Putting an image inline to a post defaults to link to a new attachment page for that image. As often as I remembered to, I would change that to none so that the image wouldn’t link and I’ve always wondered why that wasn’t the default anyway.

Today Google helped out with a solution.

If you go to yoursite/wp-admin/options.php it will show a list of every option in the WordPress database, and let you edit most of ‘em. The one you’re looking for is image_default_link_type.

The option we're looking for

Set it to none and images will no longer link by default. You’re still able to click the buttons to change the link type if you want.

Posted in Blogging | Tagged | Leave a comment

How to create a wine glass in Blender

Looking to create a simple wine glass in Blender 2.5/2.6? Yes, there’s quite a few steps. But it’s remarkably easy to do.

First step is to create the default cube. Right click to select it and press either Delete or X to remove the cube from the scene.

Next we’re going to go in to the top view by pressing num-7. I also went ahead and switched to ortho view by pressing num-5, although that’s not necessary.

Top Ortho view

Continue reading

Posted in Computers & Internet | Tagged , | Leave a comment