Skate Ipsum lorem ipsum generator

Made this awhile back, but didn’t have a place to list it.

Here it is!

I tried to keep it as close to real language as possible by categorizing all of the words with a part of speech and only allowing one proper noun per sentence. It just feels a little bit better than random.

http://skateipsum.com

Skate ipsum dolor sit amet, rip grip Jim Phillips handplant front foot impossible stalefish spine locals ledge. Gnar bucket street shinner hang up front foot impossible goofy footed face plant. Locals crail grab steps nosebone impossible boardslide skater. Pushead rip grip rock and roll nosebone Primo slide bruised heel front foot impossible poseur. Masonite camel back durometer 180 body varial hanger Japan air. Coffin wax shoveit Steve Olson coping front foot impossible flypaper shinner. Method air handplant fakie out manual front foot impossible Saran Wrap pivot. Crail grab 360 varial concave blunt ho-ho lien air. Concave hardware bank salad grind pop shove-it poseur axle.

L-Square Browser Extension / Add-On

Update: I guess I missed this, but something very similar to this made it into Chrome

The other day I read an article mentioning the Boston Globe embracing responsive design. The site was great, but I was having trouble determining screen widths and couldn’t find a tool to easily do this, so I made this for myself. It was easy enough to make so I thought I’d share it with you.

There may be something else that accomplishes the same thing, if there is, sorry, I didn’t see it.

Once the bmklt or extension is clicked, it toggles the rulers over the current page content. The z-index is like 600000 or something, so if someone has a super-high z-index, it may not work. Also, it seems to not work on some Google stuff, but this didn’t really matter too much to me.

It looks like this in use (links below):

Bookmarklet: L-Square
Just drag this up to your tool bar and voila. I did not test this on IE. Please let me know if it has issues and/or what the fix is.

Safari extension: L-Square
This has been approved by Apple and is available in the Extensions Gallery under Developer.

Firefox extension: L-Square
This link will take you to the Mozilla Add-Ons site.

Chrome extension: L-Square
This link will take you to the Chrome web store.

Note: You may need to reload your current page after you install the extension.

Disclaimer: This is my first attempt at extensions. Please forgive me if they suck.

Accessing the Discogs API v2 with PHP

To save someone a little time, here are two ways I was able to successfully send requests and get a 200 response. I was getting 406 because I was relying on my server sending HTTP_ACCEPT_ENCODING, which is apparently not enough.

Using cUrl:

// create curl resource
$ch = curl_init();

// set url
curl_setopt($ch, CURLOPT_URL, "http://api.discogs.com/release/1111");

//send headers
curl_setopt($ch,CURLOPT_HTTPHEADER,array('Accept-Encoding: gzip', 'User-Agent: ExampleBot/1.0'));

//return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// $output contains the output string
$output = curl_exec($ch);

// close curl resource to free up system resources
curl_close($ch);

echo $output;

Using PHP get_file_contents (Thanks vreon at Discogs):

$ctx_options = array('http' => array('method' => 'GET', 'header' => 'Accept-Encoding: gzip, deflate\r\nUser-Agent: ExampleBot/1.0\r\n'));
$ctx = stream_context_create($ctx_options);
echo file_get_contents('http://api.discogs.com/', false, $ctx);

Of course, make a up a unique user agent.