-
Recent Posts
Archives
- April 2023
- February 2023
- June 2021
- April 2019
- October 2017
- March 2017
- November 2016
- July 2016
- December 2015
- September 2015
- June 2015
- October 2014
- September 2014
- June 2014
- March 2014
- January 2014
- December 2013
- November 2013
- July 2013
- March 2013
- February 2013
- January 2013
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
Monthly Archives: July 2012
NSFB
Bravo to Fifty Shades Generator for bringing a new level to filler text. Or maybe that’s “fill her” text. Either way, it’s mostly NSFW, and definitely Not Safe For Bacon.
Posted in Blog
Leave a comment
API and jQuery Plugin updates
I’ve added support to the JSON API so you can generate one or more sentences of bacon ipsum rather than always generating paragraphs of text. Just pass ‘sentences=x’ as a parameter.
For example: http://baconipsum.com/api/?type=meat-and-filler&sentences=1
The jQuery plugin has also been updated to support sentences.
All the source code goodness has also been posted to GitHub if you want to dig into it a little more. Enjoy!
Git some bacon
Want to implement your own ‘insert-something-witty-here’ ipsum generator? Then head on over to our GitHub repository and take a look at the code that runs baconipsum.com. The BaconIpsumGenerator class is straight PHP code that can easily be modified to work as you see fit. I’ll be refactoring this code a bit since the Make_Some_Meaty_Filler method is wrapping stuff in HTML and it really should return an array of paragraphs and sentences so the API code can handle it better. It’s on my to-do list.
I also spent some time this weekend writing proper WordPress plugins for the site. Previously, the home page’s form was hacked into the WP theme, and the API was just a standalone directory with a PHP page. Now they’re both plugins and run based on WP actions & shortcodes. It really shouldn’t affect what you see on the site at all, but it makes me feel warm & fuzzy to have it coded properly now.
Enjoy!
Upgrades
I’m working on some site upgrades this weekend, specifically re-coding the bacon ipsum generator and API as a proper WordPress plugin so it can go on GitHub. There may be some hiccups when we post the updated site, just an FYI.
Secure Bacon
I’m kind of a fan of using SSL whenever possible, so along those lines, you can now access Bacon Ipsum (and our API) via HTTPS.
Posted in Blog
Leave a comment
While I was out…
While my wife and I were recently on vacation in Iceland/UK/Ireland, I noticed Geert van der Ploeg made a nifty Unicode String Generator that uses our API to generate random unicode strings for your testing enjoyment. Well done!
We saw some of the Game of Thrones cast at our hotel in Belfast!
Insert obligatory pic of my Bacon Ipsum shirt in front of Big Ben.
And enjoying some 21yr old whiskey at Bushmills
Posted in Blog
Leave a comment