-
Recent Posts
Archives
- 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
Category Archives: Blog
Dungeons and Bacon
Start at 21:30… they picked an excellent name for their group! #BaconIpsum 🥓😁 https://t.co/9PFxxwzAa0
— Pete Nelson (@GunGeekATX) October 19, 2017
Check out the video: https://m.twitch.tv/videos/182823566
Posted in Blog
Leave a comment
Securing the bacon
Later this year, we’ll be switching the site over to HTTPS only, instead of both HTTP and HTTPS as it is now. If you use the site in a browser, this should not have any impact on you, but if you have an API that is using HTTP, you’ll want to get that updated to use HTTPS.
Text me bacon
I’m currently attending php[world] 2016 and went to a great talk by David Stockton on integrating SMS and voice calls with PHP. After discovering how easy it is to set up, I added text message support to Bacon Ipsum.
Give it a try! Text ‘bacon ipsum’ to 512-233-6634.
What does the cow say?
@Gadgetoid @golemparts kinda mean, but…
curl -s https://t.co/EKhF61NylP?type=all-meat¶s=1 | cowsay pic.twitter.com/O4y3vFUuCv— James Basoo (@JBasoo) July 21, 2016
Props to @JBasoo for this little tidbit.
We’ve decorated for Christmas
Christmas is right around the corner, so we added some snow to the site and our pig is keeping warm thanks to an ugly sweater by Kenzie Moss (psst… she’s a great designer, hire her!)
Here’s a screenshot in case you missed it…
Now it’s even easier to bulk generate posts using WP-CLI
A few months ago, we published a blog posts on how to bulk generate posts using the WP-CLI and the Bacon Ipsum API. Well, now it’s even faster and easier.
The latest release of the Any Ipsum plugin has WP-CLI support built-in to generate posts with filler content. First, install and activate the plugin from the command-line. By default, the plugin comes with Bacon Ipsum filler content.
wp plugin install any-ipsum --activate
Then, use the new any-ipsum generate-posts
command to generate posts. It defaults to ten posts, but you can pass in the number of posts to generate if you want more or fewer.
wp any-ipsum generate-posts
Boom, instant filler content.
There are several options, so check out wp help any-ipsum generate-posts
for a full list of what you can do with it. Enjoy!
As seen on a postcard
I’m not sure how they got the site to generate filler in pen, but it’s a cool trick. 😉
That's what People (@dredav) write on #Postcards in 2015 😉 (#bacon #ipsum https://t.co/q6U3DYM8gE) #developers pic.twitter.com/vExYT3Now7
— Maximilian Redt (@m_redt) June 25, 2015
Posted in Blog
Leave a comment
Updates to the API
We have some new updates to the Bacon Ipsum API:
New formats: ‘text’ and ‘html’ if you need responses in something other than the default JSON format. Ex: https://baconipsum.com/api/?type=all-meat&start-with-lorem=1&format=html (Thanks to Shawn Hooper for new formats).
Ranges for paragraphs: Need to generate a random number of paragraphs? We support that now, just put the range in the paras parameter, ex: paras=3-7 https://baconipsum.com/api/?type=all-meat&start-with-lorem=1¶s=3-7
These same updates have been made to the Any Ipsum WordPress plugin.
Bulk generating WordPress posts with filler content using WP-CLI and the Bacon Ipsum API
I recently attended WordCamp Miami and Shawn Hooper gave an excellent talk on using the WordPress command-line interface (WP-CLI) to manage your WordPress install. One of the items he covered was bulk generating posts so you have some initial content to use when developing a new theme or other functionality. Check out all the slides on his site.
Using the “wp post generate” command, you can have WordPress bulk generate a specific number of posts. By default, these posts are empty, but by including a curl command to the Bacon Ipsum API, you can have the posts automatically filled with Bacon Ipsum filler content.
curl "https://baconipsum.com/api/?type=meat-and-filler¶s=5&format=html" | wp post generate --count=50 --post_content
The one drawback to this method is the results of the API call are used for every post, so each post has the same filler content. However, using a “for” loop in the terminal, we can generate unique filler content for each post. It takes longer to generate the posts, but you will get unique content. For example, this will generate five posts with unique content.
for n in {1..5}; do curl "https://baconipsum.com/api/?type=all-meat¶s=5&format=html" | wp post generate --count=1 --post_content; done
You’ll get output that looks something like this.
I’m also thinking of adding range values or a ‘random’ parameter to the API so you can get content of varying lengths, such as 1-5 paragraphs instead of always a fixed length.
FYI, Shawn also contributed code to the Any Ipsum plugin at the beginning of WordCamp Miami to allow the API to return text or HTML instead of just JSON so he could use it in his talk. It’s really great to be able to incorporate a new feature right away and many thanks to Shawn for the new features.
Posted in Blog
2 Comments