DevHeads.net

Postings by Gerald Bauer

Day 11 - Ruby Advent Calendar 2017 - jekyll_octopod - Publish your own radio talk shows; podcast extension for building (static) websites with Jekyll; incl. podcast web feeds with RSS enclosures and JSON Feed attachments in the OGG, MP3 or M4A audio forma

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 11 with the jekyll-octopod
library / gem and command line tool. Publish your own radio talk
shows; podcast extension for building (static) websites with Jekyll;
incl. podcast web feeds with RSS enclosures and JSON Feed attachments
in the OGG, MP3 or M4A audio formats.

Happy talking and publishing.

Day 10 - Ruby Advent Calendar 2017 - feedtxt - Read Feed.TXT - feeds in text (unicode); publish & share posts, articles, podcasts, 'n' more

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 10 with the feedtxt library / gem
[2] - Read Feed.TXT - feeds in text (unicode). Publish & share posts,
articles, podcasts, 'n' more.

Web Feeds! Web Feeds! Web Feeds!

Day 9 - Ruby Advent Calendar 2017 - hexapdf - Read and write PDF documents; start from zero or merge, extract, optimize and much more

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 9 with hexapdf library / gem and
command line tool [2] - Read and write PDF documents; start from zero
or merge, extract, optimize and much more. Incl.

Day 8 - Ruby Advent Calendar 2017 - feedparser - Read web feeds in XML, HTML, JSON, TXT and more; build your own news reader from scratch in twenty lines

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 8 with feedparser [2] - Read web
feeds in XML, HTML, JSON, TXT and more. Build your own news reader
from scratch in twenty lines.

All about the future of online news - the future of Facebook & Co -
Web Feeds! Web Feeds!

Day 7 - Ruby Advent Calendar 2017 - webservice - Script HTTP JSON APIs (web services) in classy Sinatra 2.0-style get / post methods with Mustermann 1.0 route / url pattern matching; load (micro) web services at-runtime and more

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 7 with webservice [2] - Script
HTTP JSON APIs (web services) in classy Sinatra 2.0-style get / post
methods with Mustermann 1.0 route / url pattern matching. Load (micro)
web services at-runtime using Webservice.load_file. Get a free wiener
lager, welsh red ale or kriek lambic beer delivered to your home
(computer) in JSON and much much more.

Cheers.

Day 6 - Ruby Advent Calendar 2017 - almost-sinatra - Build your own webframework from scratch with Rack and Tilt in less than ten lines

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let's continue the series on Day 6 with almost-sinatra [2] - Build
your own webframework from scratch
with Rack and Tilt in less than ten lines (of Ruby).

The legendary mega hack by Konstantin Haase - six lines of Almost
Sinatra now "unobfuscated" and
bundled up for easy (re)use and studying.

Got inspired? Build your own webframework.

Day 5 - Ruby Advent Calendar 2017 - json - Read Next Generation JSON Versions (HanSON, SON, JSONX/JSON11, etc.) with Comments, Unquoted Keys, Multi-Line Strings, Trailing Commas, Optional Commas, and More

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 5 with json-next [2] - Read next
generation JSON versions (HanSON, SON, JSONX/JSON11, etc.) with
comments, unquoted keys, multi-line strings, trailing commas, optional
commas, and more.

The json-next gem lets you convert and read (parse) next gen JSON
versions including: HanSON e.g. HANSON.parse, SON e.g. SON.parse,
JSONX e.g. JSONX.parse.

Bonus: More JSON Formats.

Day 4 - Ruby Advent Calendar 2017 - journaltxt - Blogging reinvented: Read Journal.TXT - single-text file journals - and write out (auto-build) a blog (w/ Jekyll posts etc.)

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 4 with journaltxt [2] - Blogging
reinvented: Read Journal.TXT - single-text file journals - and write
out (auto-build) a blog (w/ Jekyll posts etc.

Bonus: Add Your Perfect Day!

Berlin.TXT, Munich.TXT, Salzburg.TXT, Paris.TXT, London.TXT,
Rome.TXT, New York.TXT, Austin.TXT, Tornoto.TXT, Calgary.TXT,
Melbourne.TXT, Sydney.TXT, …

Anyone? Write your perfect day(s) in a single-text file with Journal.TXT.

Cheers.

Day 3 - Ruby Advent Calendar 2017 - quik - Quick starter template script wizard - the missing code generator and project scaffolder for gems, sinatra, jekyll & more

Hello,

welcome back to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 3 with quik [2] -Quick starter
template script wizard - the missing code generator and project
scaffolder for gems, sinatra, jekyll & more.
o on.

Ever asked yourself

- Q: How do you get started with creating a new gem?
- Q: How do you get started with creating a new sinatra app or service?
- Q: How do you get started with creating a new jekyll theme? and so on.

Ask no more :-) try quik.

Day 2 - Ruby Advent Calendar 2017 - factbook - Turn the World Factbook (260+ country profiles) into open structured data e.g JSON

Hello,

welcome to the Ruby Advent Calendar 2017 [1] - 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let’s continue the series on Day 2 with factbook [2] - Turn the
World Factbook (260+ country profiles) into open structured data e.g
JSON.

Explore the world with ruby e.g. Where do you find gold in the
world? Look for the economy / resources section.What countries have
the most internet hosts? What countries have the most proven crude
oil reserves?

Day 1 - Ruby Advent Calendar 2017 - blockchain-lite - Build your own blockchains with crypto hashes

Hello,

welcome to the Ruby Advent Calendar 2017 [1] The idea is: 25 Days
of Ruby Gems / Libraries from December 1 to December 25.

Let's kick off the series on Day 1 with blockchain-lite [2] - Build
your own blockchains with crypto hashes; revolutionize the world with
blockchains, blockchains, blockchains one block at a time!

Cheers.

PS: You're more than welcome to send in your articles (about your
library / gem of choice) too!

[1] <a href="https://planetruby.github.io/advent2017" title="https://planetruby.github.io/advent2017">https://planetruby.github.io/advent2017</a>
[2] <a href="https://planetruby.github.io/advent2017/01-blockchain-lite" title="https://planetruby.github.io/advent2017/01-blockchain-lite">https://planetruby.github.io/advent2017/01-blockchain-lite</a>

Unsubscribe: <mailto:ruby-talk-request@ruby-la

Yuki & Moto Press Bookshelf Update - Free (Online) Books about Ruby 'n' Friends

Hello,

I'm a big fan of the latest and greatest plugin addition to GitHub
Pages (and Jekyll), that is, Jekyll Remote Themes.

Using a simple config entry you can "automagically" pull in remote
themes (layouts, includes, javascripts, etc).

Slide Show (S9) v4 Update - v.4 Update - Write Your Talks / Slides in Plain Text (w/ Jekyll Themes)

Hello,

I've updated the Slide Show (S9) command line tool (and
library/gem) [1] that lets you write your talks / slides /
presentations in plain text w/ markdown conventions.
Example:

# Blockchain! Blockchain! Blockchain! Decentralize Payments.
Decentralize Transactions. Decentralize Blockchains.

What's Blockchain?

- Distributed Database?
- Hyper Ledger Book?
- Consensus with Proof-of-Work or Proof-of-Stake?
- Digital Fingerprints? Cryptographic Hashes?
- Lottery? Central Bank?
- Byzantine-Generals Solution?

Yes. Yes. Yes. Blockchain! Blockchain!

Build Your Own Blockchain in Less than 10 Lines of Ruby - blockchain.rb

Hello,

Thanks to Matias Fernandez for cutting out the fluff. The line
count is now at eight - less than 10 :-).

Build Your Own Blockchain in 20 Lines of Ruby - blockchain.rb @ Awesome Blockchains

Hello,

Inspired by Let’s Build the Tiniest Blockchain In Less Than 50
Lines of Python [1] I’ve put together a Ruby version.

Blockchains, blockchains, blockchains! See the blockchain.rb [2] sample
in the Awesome Blockchains repo and repasted below.

Use

$ ruby ./blockscript.rb to run.

If you have seen other blockchains in ruby, let us know. Or if you
have ideas how to make it better, let us know.

world.db.starter Sample - Build Your Own HTTP JSON API (w/ world.db incl. Countries / States / Cities / etc.)

Hello,

I've updated the world.db web service starter sample [1]
that gets you started building your own HTTP JSON API using the world.db
(incl. contintents / countries / states / cities /etc.).

What's news? The starter sample now uses the new webservice library [2]
(a simplified sinatra 2.0-style library for HTTP JSON APIs). Example:

class StarterApp < Webservice::Base

include WorldDb::Models # e.g.

webservice gem - (yet) another HTTP JSON API (web service) builder (in 100 lines of ruby)

Hello,

I've put together a webservice gem [1] - yet another Sinatra-style
HTTP JSON API builder (in about 100 lines of ruby). Why? Why not ;-)
The main "innovation" is easy dynamic loading of services e.g.

Office.TXT - The Free Writer’s Command Line Tool Suite - $ gem install officetxt - World's 1st Office Suite in Ruby ;-)

Hello,

I've put together the world's 1st office suite in ruby ;-) Let's
welcome Office.TXT - The Free Writer’s Command Line Tool Suite [2].
Use

$ gem install officetxt [3]

to install the all-in-one office bundle.

What's included? For now:

- journaltxt
- jekyll
- drjekyll
- mrhyde
- octopod
- w2m
- rougify
- kramdown
- quik
- and more.

Anything missing? Let us know.

journaltxt (jo) v1.0.0 gem and command line tool - reads single-file Journal.TXT and writes out (auto-builds) a blog (w/ Jekyll posts etc.)

Hello,

I've put together a new journaltxt (jo) gem / library and command
line tool [1] - reading single-file Journal.TXT [2] - the new human
multi-document format for writers - and writes out (auto-builds) a
blog (w/ Jekyll posts etc.).

Reinventing blogging on the internets! Single-file publishing is
the new single push-button publishing ;-) See the samples/Vienna.txt
source [3] and live Vienna.TXT Blog [4] w/ Jekyll Minima as examples.

Happy writing.

JSON: 1.1 # JSON with Extensions (JSONX) - New JSON (Next) Format w/ json-next (formerly jasony) gem

Hello,

One more news byte: I've updated the JSON readers gem now called
json-next [1], formerly jasony.

What's news?

The latest (and greatest) next generation JSON parser / reader
included is a world-wide ruby's 1st - `JSONX.parse` for the new JSON:
1.1 # JSON with Extensions (JSONX) [2] format. Using JSONX you can
use all the JSON extension of HanSON (JSON for Humans) and SON (Simple
Object Notation) and some more e.g.

jasony gem - read generation y / next generation JSON versions with comments, unquoted keys, multi-line strings, trailing commas, and more

Hello,

I've put together a new JSON readers gem called jasony [1]. The
first next generation JSON parser / reader included is `HANSON.parse`
for the JSON for Humans (HanSON) format by Tim Jansen et al.

Using HanSON you can use comments, unquoted keys, multi-line
strings, single-quoted strings, trailing commas, and more.

Talk Notes - Quik: The Missing Project Template Scaffolder (for Ruby) - Gems, Sinatra Apps, Jekyll Themes & More

Hello,

the slides and talk notes for today's Linz.rb talk about "Quik: The
Missing Project Scaffolder (for Ruby) -
- Quick start your ruby gems, your sinatra apps, your jekyll sites
'n' more w/ project templates (from GitHub)" [1].

As an alternative you can browse / read the all-in-one-page source
in markdown*¹ [2].

The contents reads:

- Quick Starter Kits / Boilerplates / Project Scaffolder in the World
- What about Ye Old' Ruby?
- How do you get started with creating a new gem?
- How do you get started with creating a new sinatra app?
- How do you get started with creati

iniparser gem - read /parse INI configuration, settings and data files into a hash (INI.load)

Hello,

What's your favorite datafile format? Awesome YAML [1] or Awesome
JSON (What's Next) [2]?

I prefer good ol' INI ;-) that's why I published a new iniparser
gem [3] to read / parse INI configuration, settings and data files
into a hash.

Use:

hash = INI.load_file( 'planet.ini' )
pp hash.

Cheers.

PS: What's INI?

The State of Art of Quick Starter / Project Scaffolding in Ruby (Gems, Sinatra, Jekyll & Friends)

Hello,

For next week's Linz.rb meetup I put together / prepare a talk on
quick starters a.k.a.

Jekyll Celebrating ★30 000 GitHub Stars - Top 22 Open Source Jekyll Static Website Themes @ Dr Jekyll's

Hello,

Did you know? Jekyll is the fastest growing web framework ;-)
Just this week Jekyll passed ★30 000 GitHub Stars. Congrats! Why not
build you next website or single-page web application with Ruby :-)

Anyways, I've updated the Dr. Jekyll's Top 22 Open Source Static
Website Themes [1] page. Congrats to:

- #1 Jekyll Now ★ 3653 by Barry Clark
- #2 Poole ★ 2178 by Mark Otto
- #3 Minimal Mistakes ★ 2068 by Michael Rose and all the runner ups.

Happy publishing with Jekyll & friends.

PS: Any theme missing?

Open Public Domain Datasets - Football Confederations Cup Russia'17 - $ sportdb new confed2017.rb

Hello,

Today opens the Football Confederations Cup in Russia. To celebrate
the open football.db now includes public domain datasets for
the Confed Russia'17 match schedule / tournament [1].

Use the sportdb gem / tools [2] to read in the plain text fixtures
into your SQL database of choice (thanks to ActiveRecord). Use

$ sportdb new confed2017

to download the zip archives, build the schema
and read/parse the datasets resulting in a single-file SQLite football.db.

Enjoy the beautiful game.

feedtxt gem - reads Feed.TXT - feeds in text w/ metadata (YAML) n content (Markdown or HTML)

Hello,

as an alternative to JSON Feed I've put together Feed.TXT - a new
feed format in plain text with structured metadata in YAML and content
in HTML or Markdown.

Use the new feedtxt gem [1] to read / parse the new feed format for
publishing & sharing posts, articles, podcasts & more.
Try Feedtxt::Parser.parse() returning an array with a metadata hash
and items (w/ metadata hash and content).Example:

``` ruby
require 'feedtxt'

text =<<TXT
|>>>
comment: "This is a podcast feed.

Universal feedparser gem v2.0.0 Adds HTML Feeds w/ Microformats (h-entry, h-feed, etc.)

Hello,

The universal feedparser gem [1] that reads web feeds in XML (RSS,
Atom) and JSON (JSON Feed)
now supports HTML feeds w/ Microformats (h-entry, h-feed, etc.) [2][3].

Note: Microformats support in feedparser is optional.
Install and require the the microformats gem[4] to read
feeds in HTML with Microformats.

```
require 'feedparser'
require 'microformats'

text =<<HTML
<article class="h-entry">
<h1 class="p-name">Microformats are amazing</h1>
<p>Published by
<a class="p-author h-card" href="http://example.com">W.

Added JSON Feed (@jsonfeed) Format to the Universal feedparser Gem

Hello,

I've added support for reading feeds in the new JSON Feed [1] format
in - surprise, surprise - JSON to the universal feedparser [2] gem.
Nothing changes ;-) Use it like:

require 'open-uri'
require 'feedparser'

txt = open( <a href="https://jsonfeed.org/feed.json" title="https://jsonfeed.org/feed.json">https://jsonfeed.org/feed.json</a> ).read

feed = FeedParser::Parser.parse( txt )

pp feed

Enjoy. Cheers.

[1] <a href="https://jsonfeed.org" title="https://jsonfeed.org">https://jsonfeed.org</a>
[2] <a href="https://github.com/feedparser/feedparser" title="https://github.com/feedparser/feedparser">https://github.com/feedparser/feedparser</a>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

pluto.starter - planet ruby quick starter kit - (auto-)build your own (static) planet news sites w/ pluto

Hello,

If anyone is interested in building the next planet ruby ;-) -
I've put together pluto.starter[1] - a new quick starter boilerplate /
setup / ready-to-fork repo that lets you (auto-) build your own
(static) planet news sites from web feeds w/ ruby in minutes.

Step 0: Download and unpack (or clone).

e.g. $ git clone <a href="https://github.com/feedreader/pluto.starter.git" title="https://github.com/feedreader/pluto.starter.git">https://github.com/feedreader/pluto.starter.git</a>

Step 1: Install the planet pluto machinery / tool.

e.g. $ cd pluto.starter
$ bundle install

Step 2: Build the starter planet.

e.g.