RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

geraldbauer — 73 posts

http://github.com/geraldb

Hello, I've put together a factbook gem that lets you read in World Factbook country profile pages (in HTML) and returns a structured Ruby hash that you can save, for example, as a pretty printed JSON file e.g. For Brazil use: Factbook::Page.new( 'br' ).to_json Find ready-to-use country profile in JSON in the openmundi/factbook.json repo. Thanks to the CIA for the great service (and public domain data - no rights reserved, no copyright). Cheers.
Hello, I've put together another command line tool for the World Cup 2014 in Brazil that lets you query the football.db HTTP JSON API and prints today's matches. For example, typing on Jun/29 $ ojogo will print
Netherlands (NED) vs Mexico (MEX)
Costa Rica (CRC) vs Greece (GRE)
That's it. More info. Cheers.
Hello, The latest sportdb gem includes new tables (and models) for group, league and all-time standings. For example, to calculate the all-time standings table for the World Cup (including all nineteen tournaments from 1930 to 2010) use the football.db build script and issue $ rake build DATA=history This will import all teams, tournaments, results, and so on and dump
the all-time standing e.g.
1 Brazil (BRA) 97 67 15 15 210:88 216 19
2 Germany (GER) 99 60 19 20 206:117 199 17
3 Italy (ITA) 80 44 21 15 126:74 153 17 ...
The full results all serve as a great checksum that all football.db match data is up-to-date and complete. Cheers.
Hello, I've created a new GitHub org, that is, wikiscript, that collects (Ruby) scripts that let you turn free-style or semi-structured wiki text into open structured data. A first example is the new football squads reader that reads in a wikitext page and outputs all squads files in the football.db format - so you get an up-to-date World Cup 2014 squads list including all 736 player (32 teams x 23 players). (By the way, three days to kick-off and counting!) Cheers.
Hello, I've reconfigured the sportbook - an open source Ruby on Rails web app for match picks/predictions - for the World Cup 2014 in Brazil (11 days an counting!). The sportdb gem lets you load the plain text fixtures into your SQL database of choice; see the worldcup.db fixtures in plain text or served up via a web app or try the World Cup Brazil 2014 picks demo (login with demo/demo). Cheers.
Hello, To get started building your own HTTP JSON API / web service using the football.db, worldcup.db, bundesliga.db, etc. try the new sport.db.api.starter kit.
Step 1: Install all gems using bundler.
Step 2: Copy a football.db into your app folder.
Step 3: Startup the web service (HTTP JSON API) using rackup.
That's it. Open your browser and try some services running on localhost on port 9292. Example: List all World Cup 2014 teams (event/world.2014/teams); list all World Cup 2014 rounds (event/world.2014/rounds) and so on. You're welcome to change the server script to fit your needs. Enjoy. Cheers.
Hello, I've pre-built w/ the sportdb Ruby gem worldcup.db - an SQLite database - using the open public domain data sets including all twenty world cups, that is, from Urugay 1930 to the upcoming Brazil 2014 tournament. You'll find the release on GitHub (~ 1 Meg). Note: As always you can build yourself an up-to-date version using rake e.g. issue $ rake build DATA=history Enjoy. Cheers. PS: Upcoming Events => Int'l Open Sports Data Hackdays (Fr+Sa May/23+24) - Join Us.
Hello, For your convenience I've pre-built w/ the sportdb Ruby gem -worldcup2014.db - an SQLite database - using the open football public domain data sets. You'll find the release on GitHub. (~ 1 Meg). The free database includes all qualifiers (200+ teams, 800+ matches) plus the upcoming final round kicking off on Jun/12 in São Paulo in Brazil. Enjoy. Cheers. Note: You can always build yourself an up-to-version using rake (e.g. issue $ rake build DATA=worldcup2014). That's it.
Hello, I've updated the worlddb gem that includes models for places, continent, countries, regions, cities and more. The worlddb gem also includes free open public domain plain text fixtures for all countries and territories in the world plus some regions/states/provinces and some cities/towns/hamlets. Use it like c = City.find_by(key: 'wien'); c.country.name # => 'Austria' and so on. Cheers.
Hello, I've collected a couple of link_to helpers in the new linkto gem. Helpers include: google_search, google_search_images, bing_search, flickr_tags, flickr_search, wikipedia_search, and so on. See the linkto gem in action at the beer.db.admin site, for example, see the Ottakringer brewery page. Cheers.
Hello, Last nights slides from the vienna.rb talk titled "Open Football Data - Get Ready for the World Cup in Brazil 2014 w/ Ruby". Use left/right cursor keys (or space bar) to browse the slides. Or check the all-in-one-page markdown source. Cheers.
Hello, For your convenience I've pre-built w/ the (sportdb, beerdb) Ruby gems some SQLite databases using the open public domain data sets. You'll find the releases on GitHub. world.db (~ 0.5 Megs), football.db (~ 1.3 Megs), beer.db (~ 1 Meg). Cheers.
PS: A new database is in the works. Welcome the wine.db. Prost.
Hello, I've collected some football club logos (24x24, 32x32) and national team logos (24x24, 32x32) at the sportlogos project for usage via the asset pipeline. The logo filenames match the keys in the football.db or sport.db setups, for example: The club logo filename for FC Barcelona is barcelona.png and for Santos São Paulo it is santossp.png and so on. For national teams, the three-letter FIFA code get used, for example: The national team logo filename for Austria is aut.png and so on. Cheers.
Hello, The sportdb gem (and its open public domain datasets such as football.db) now includes a new grounds table (for stadiums/venues/etc.) that lets you add cities to matches or tournaments, for example. Using the World Cup event in Brazil 2014 you can get all twelve stadiums by using: event.ground.count # => 12 or to get the city for a game use: game.ground.city.title # => São Paulo and so on. See the World Cup 2014 fixtures, for an example for plain text fixtures with stadiums included. Or see the stadiums page in "The Free World Football Alamanc". More info at the project site. Cheers.
Hello, The football.db - a free open public domain football dataset - now includes Ruby templates and scripts that let you build a complete
book. See the "The Free World Football Almanc" (PDF w/ 100+ pages) live or the all-in-one HTML page version. Still a little rough and early stage but always adding more teams n tournaments and working on improving the layout/design. More info at the project site.
Hello, The beer.db - a free open public domain beer, brewery n brewpub dataset - now includes Ruby templates and scripts that let you build a complete book. See the "The Free World Beer Book" (PDF w/ 100+ pages) live or the all-in-one HTML page version. Still a little rough but always adding more beers and working on improving the layout/design. More info at the project site. Cheers! Salud! Prost! Kampai!
The beer.db - a free open public domain beer, brewery n brewpubs dataset - now includes a web admin Rails engine that you can include in your web app. Example: mount BeerDbAdmin::Engine, :at => '/db' See the Rails engine in action. More info in the README.md. Cheers! Salud! Prost! Kampai!
Hello, I've updated the plain text beer.db fixtures now including more than 1000+ beers, 1000+ breweries, 10+ countries. Use the beerdb gem to load the free open public domain data into your SQL database of choice. More info. Cheers. Prost.
Hello, The plain text football (soccer) teams, fixtures, results and more that you can read with the sportdb gem now include all teams, groups, rounds and matches for the World Cup 2014 in Brazil. Import the plain text fixtures in your SQL database of choice or use the HTTP JSON API e.g. event/world.2014/teams or event/world.2014/round/1 and so on. All data, code and samples public domain. Enjoy. Cheers.
Hello, Still a little rough - I've reconfigured the sportbook (an open source Ruby on Rails web app for match picks/predictions) for the Super Bowl XLVIII (that is, for American Football). The sportdb gem lets you load the plain text fixtures into your SQL database of choice; see the american-football.db fixtures in plain text
or served up via a web app or try the Super Bowl XLVIII picks demo (login with demo/demo). Cheers.
Hello, The pluto planet site generator gem that lets you build web pages from published web feeds now includes more template packs. You can see the hacker (inspired by Hacker News) and the digest (inspired by Alterslash) template packs in action on Planet Ruby or Planet Vienna.rb. Find out more at the pluto project site. Cheers. Happy planet.
Hello, Last nights slides from the Vienna.rb talk titled Using Web Feeds to Build Planet Sites in Ruby. Use left/right cursor keys (or space bar) to browse the slides. Or check the all-in-one-page markdown source. Build yourself a Mini-Facebook-like News Feed in 20 Lines of Ruby or just use the ready-to-use Pluto feed reader gem to make it one line (`pluto build newsfeed`). Cheers. Happy Planet.
Hello, For the upcoming Vienna.rb talk on the new Planet Ruby site I've put together a wiki page about Ruby News Sites (with web feeds, of course) and another for Ruby on Rails News Sites. How do you find out what's new in Ruby or Rails? Anything missing? Just wondering. Cheers.
Hello, I've built a simple database browser (connections, schema, tables, records, etc.) packaged up in gem that you can mount in your Sinatra or Rails web app. Example: mount DbBrowser::Server, :at => '/browse' See a live example running on Planet Vienna.rb. More info. Cheers.
Hello, The pluto planet generator gem that lets you build web pages from published web feeds now includes more template packs. You can see the blank (standard) or top or river of news or card template packs in action on Planet Vienna.rb. Find out more at the project site. Cheers.
Last nights slides from the vienna.rb talk titled Building HTTP JSON APIs w/ Sinatra. Use left/right cursor keys (or space bar) to browse the slides. Or check the all-in-one-page markdown source. More talks included Martin Schürrer on Erlang (and Elixir) for Rubyists. Cheers.
Hello, the pluto planet gem that lets you create planet sites (that is, sites that get auto-build and auto-updated from web feed subscriptions) now includes a web admin app that you can include in your planet. Example: map '/db' { run PlutoAdmin::Server } . See the Sinatra pluto.admin app in action, for example on Planet Ruby or Planet vienna.rb. More info. Cheers.
I've reconfigured the Sportbook web app with new match fixtures for more fun for the upcoming Champions League 2013/14. You're welcome to add your own fixtures. More tournaments examples include Deutsche Bundesliga 2013/14, English Premier League 2013/14, Spanish La Liga 2013/14, Italian Serie A 2013/14, and others. More info. Enjoy. Cheers.
Hello, I've created a Sinatra web app/template (pluto.live) that lets you create planet planet sites (that is, sites that get auto-build and auto-updated from web feed subscriptions). See the Planet Ruby or the Planet vienna.rb for live demos. More info. Cheers.
The open football database (football.db) now includes a web admin Rails engine that you can include in your web app. Example: mount SportDbAdmin::Engine, :at => '/db' See the Rails engine in action in the Sportbook - a free football (soccer) match predication bookie - updated for the UEFA Champions League Playoffs [1], for example. Cheers.
The open world database (world.db) now includes a web admin Rails engine that you can include in your web app. Example: mount WorldDbAdmin::Engine, :at => '/worlddb' See the Rails engine in action in the Sportbook - a free football (soccer) match predication bookie - for example. Cheers.
The plain text football (soccer) teams, fixtures,results and more that you can read with the sportdb gem now include more int'l and continental tournaments in its own repos for easy management and contributions. Examples include the Gold Cup / Copa de Oro 2013, Confederations Cup 2013 Brazil, Africa Cup of Nations 2013, World Cup Brazil 2014 Qualifications, etc. More info. Cheers.
I've added a new slideshow update command that lets you update the shortcut index for template packs, quick starter samples and plugins. Issue slideshow update to fetch the latest index (that is, slideshow.index.yml). Template packs include: s5blank, s6blank, impress.js, deck.js, slidy, g5 and more. Cheers.
I've updated the plain text fixtures for the Confederations Cup 2013 in Brazil. The sportdb gem lets you load the plain text fixtures into your database and lets you use the sportdb models such as Event, Team, Round, Group, Game, and others for web pages (e.g. Confederations Cup 2013 Schedule) or HTTP JSON APIs (e.g. all teams, all rounds, semi final matches e.g. Brazil-Uruguay; Spain-Italy etc.). All data, code and samples public domain. Enjoy. Cheers.
The plain text football fixtures that you can read with the sportdb gem now sports for easy management and contributions country repos. The first repos include Austria (Österreich) and Germany (Deutschland). See the Deutsche Bundesliga 2013/14 match schedule, as an example. More info. Cheers.
What's new? The slideshow gem now sports a git or gem like command suite. For example, to install the impress.js presentation pack issue $ slideshow install impress.js or to
list all installed template packs issue $ slideshow list or $ slideshow ls to get a quick starter sample issue $ slideshow new and finally to build your slideshow issue $ slideshow build welcome.text More info. Cheers.
I've added new tables n models to the sportdb gem to cover racing events such as the Formula One series. New models include tracks, races, runs, records, and more. See yesterday's GP Canada race results or the Formula 1 Calendar 2013 for example. Build yourself a copy. More info. Cheers.
Last nights slides from the vienna.rb talk titled "Using Markdown for Websites, Presentations, or Books". Use left/right cursor keys (or space bar) to browse the slides. Or check the all-in-one-page markdown source. More talks at the vienna.rb Slides page including "10 Things You Didn't Know About Postgres". Cheers.
PS: For more Ruby meetups in Central Europe (Vienna, Brno, Bratislava) see "Coders without Borders".
The Markdown Engine Wrapper (markdown) gem that lets you use your markdown library of choice (e.g. kramdown, redcarpet, maruku, etc.) now includes a builtin web service/server. Try the markdown HTTP API running on heroku or start your own `markdown server`. More info. Cheers.
Last nights slides from the vienna.rb talk titled "beer.db - Using Open Beer & Brewery Data in Ruby". Use left/right cursor keys (or space bar) to browse the slides and T-key to toggle between presentation and outline mode. Or check the all-in-one-page markdown source. Cheers. PS: For more Ruby meetups in Central Europe (Vienna, Brno, Bratislava) see "Coders without Borders".
I have created a little JSON API service for the open beer database (that is, beer.db) using the Sinatra Ruby gem. For example, /brewery/brooklyn gets you all beers from the Brooklyn Brewing Co. in New York and /beer/guinness gets you a pint of Guinness (sorry no real irish stout, just the data in JSON ;-). See the JSON API start page or the service source code or the beer.db project page for more info. Cheers. Prost.
The world.db gets another addon. Following the football.db fixtures I have started beer.db for free public domain beer and brewery data in plain text. So far 100+ beers and 30+ breweries listed. Use the beerdb gem to import and reuse ActiveRecord models etc. More info. Cheers. Prost.
I've added continents to the world.db that includes 196 countries and (new!) 48 territories. Note, you can now configure your own continent mappings e.g. the football.db uses FIFA associations e.g. Australia gets included in Asia, Isreal in Europe, Guyana in the Caribbean etc. More info about the world.db and the world.db gem. Cheers.
I've extracted all football fixtures from the sport.db into its own database, that is, football.db. Note, all football fixtures are now plain text (and, thus, reuseable in any programming language). Use the sportdb gem to setup your database, reuse ActiveRecord models, etc. Events include the Champions League 2012/13, World Cup Quali, Bundesliga, and other. Anything missing? Add yours. Cheers.
I have created a little JSON API service for the open world database (that is, world.db) using the Sinatra Ruby gem. For example, /countries/south_america gets you all countries in South America. Note: Using .txt will get you all countries as comma separated values, that is, plain text and .html will get you all countries as a plain hypertext table. See the start page or the project page for more info. Cheers
I've added all 193 member countries of the United Nations to the world.db fixtures 'n' gem. I've also added csv or html table export for spreadsheets plus I've added the iso alpha3 and fifa codes. More info. Cheers.
I've added support for the interactive Ruby console (irb) to the open world database gem. Use irb -r worlddb/console and you're ready to go. Try en = Country.find_by_key! 'en'; en.regions; en.cities or euro = Tag.find_by_key! 'euro'; euro.countries and so on. More info. Live demo. Cheers.
I've added support for the interactive Ruby console (irb) to the open sports database gem. Use irb -r sportdb/console and you're ready to go. Try en = Country.find_by_key! 'en'; en.teams.all or mun = Team.find_by_key! 'manunited'; mun.games.all and so on. More info. Cheers.
I have created a little JSON/JSONP API service for the open sports database (that is, sport.db) using the Sinatra Ruby gem. For example, /event/en.2012_13/round/2 gets you the football fixtures for the 2nd round of the English Premier League (season 2012/2013). See the Sinatra single-file source or the start page for more info. Cheers.
Hello, I've extracted from the sport.db/Sportbook all countries, regions and cities into its own free open database, that is, world.db. The open world database also includes a little command line tool (Ruby gem), that is, worlddb and a sample web admin tool in Ruby on Rails. Cheers.
Hello, I've added a plain text fixture reader for easy data import to the sportdb gem. For samples, see the English Premier League or the Deutsche Bundesliga fixtures. Cheers.

What is sport.db? A free open sports database & schema (football fixtures & more) that also includes a little command line tool. More Info.
Hello, I've extracted from the Sportbook (formerly Wettpool) the football fixtures for easy reuse. The open sports database also includes a little command line tool (Ruby gem), that is, sportdb and a sample web admin tool in Ruby on Rails. Events in the sport.db include the Champions League 2012/13, Euro 2012, World Cup Quali and others. Add yours. Cheers.
I've reconfigured the Sportbook app with new game fixtures for more fun for the upcoming
Champions League 2012/13. You're welcome to add your own game fixtures. More example events include Austrian Bundesliga 2012/13, México Primera División Apertura 2012, and others. More info. Cheers.
Lets you build web pages from published web feeds. Pass in one or more planet configuration files to the command line tool e.g. pluto ruby.yml. This will 1) fetch all feeds listed in ruby.yml and 2) store all entries in a local database, that is, ruby.sqlite and 3) generate a planet web page, that is, ruby.html using the builtin blank template. Open up ruby.html to see your planet web page. Voila! More Info.
Now that the European Football Championship (aka Euro 2012) is over I've reconfigured the Sportbook app with new game fixtures for more fun in the upcoming football season. You're welcome to add your own game fixtures or host your own pools. Example events include Austrian Bundesliga 2012/13, México Primera División Apertura 2012, World Cup Quali 2012/13 and others. More info. Cheers.
What's Slide Show? A gem that lets you author slides in plain text using a wiki-style markup language that's easy-to-write and easy-to-read. -- What's new? 1) Added -q/--quick [MANIFEST] command that lets you use quick starter templates such as impress.js, deck.js, Slidy, or S5. 2) Added a --takahashi option that lets you use // between words or on its own line to break up slides. Cheers.
I've uploaded a new slideshow gem (aka Slide Show (S9)), that is, v1.1.0. What's new?
Many more template packs (including Deck.js, Impress.js, Slidy2, CSSS, etc.). Let's you configure your markdown library via markdown.yml. New template variables (that is, slide.data_attributes, slide.content_without_header) and more. Cheers.
The Markdown Engine Wrapper (markdown) gem that lets you use your markdown library of choice now supports configuration using environment variables and markdown.yml files. The markdown gem now also includes a command line tool. Try markdown -h. Cheers.
In less than ten days the European Football Championship (aka Euro 2012) kicks off. For more fun I've created a free, open source sports betting pool in Ruby on Rails. Also works for the Champions League or other tournaments. More (Sources, Demo, etc.). Note: Some labes are still only in German.
Vancouver.rb Q&A with Sunny Hirai on Rails, Merb vs. Caffeine and Processor, Database and Storage Scaling, and More
With Caffeine, you can take any application you’ve built and, with no code changes, drop it into your new project. You could take somebody else’s forum app, for example, and use it in your project. Caffeine handles the differences between user models, database storage, file storage, templating, etc. To make it work, we had to rethink everything from routing, to the database, to the user model and in many cases the abstractions are in different places than Rails, Merb or other popular frameworks.
S6/S9 Slide Deck of the Week: Going Camping – A Web Microframework in 4k Ruby by Jeremy McAnally @ GoRuCo (Gotham Ruby Conference) - Adapted S6/S9 (Single-Web) Version (S6/9 Tip: Use T-Key to Toggle Between Outline and Slide Show View)
RedCloth Mini-Cookbook: How Tos, Recipes, F.A.Qs – Using the Ruby Plain Text to Web Markup Gem
Ruby 1.9: What to Expect (What's Changed? What's New?) by Sam Ruby @ OSCON 2008 Slide Deck Adapted S6/S9 (Single-Web Page) Version (S6/S9 Tip: Use T-Key to Toggle Between Outline and Slide Show View)
5-Minute Quick Start Guide for Facebooker - Create a Facebook Desktop Script Using Ruby in 3 Easy Steps (2nd Edition)
Rails Tip of the Day: Use Magic Version Tag to “Downgrade” Rails to Older Version When Generating New Project
Vancouver.rb Q&A with Jim Pick on Ruby and Cloud Computing, Distributed Ruby and Wikis and More
Planet Vancouver.rb now collects Ruby/Rails news, postings, discussions from in and around Vancouver, B.C. on Canada's West Coast in the Americas. Get your feed included.
How to read web feeds (RSS, Atom)  rubybook.wordpress.com
Gerald Bauer published a mini tutorial on "How to read web feeds (RSS, Atom) using the standard Ruby library".
Gerald Bauer published "How to use Google's SMTP server and Gmail to send emails with Ruby". Works for Google Apps for your Domain hosted accounts too!
The Ruby Slide Show (S9) gem that lets you create slide shows and author slides in plain text using a wiki-style markup language that's easy-to-write and easy-to-read now includes (experimental) support for S5 slide shows. Find some S9-generated S5 samples online: Slide Show (S9) 10-Minute Tutorial, Merb - All You Need, None You Don't, Microformats - Add Semantics to Your Web Site
Vancouver.rb - Open Ruby Hack Night #3 - Today 7pm - Whenever (9ish) @ Waves Coffee - You're invited to drop by for the weekly Vancouver Open Ruby Hack Night at Waves Coffee in downtown Vancouver in Beautiful British Columbia on Canada's West Coast in the Americas.
Gerald Bauer has published a web-ified version of "merb – The Pocket Rocket Framework" from last week's Toronto Rails Night talk by Rowan Hick using the slideshow (S9) gem. PS: A couple of weeks ago Gerald also created a web-ified version (using S9) of Ezra Zygmuntowicz' (Engine Yard) Mountain West RubyConf 2008 talk titled "Merb – All You Need, None You Don't"
I have created the slideshow (S9) Ruby gem - a free web alternative to KeyNote and PowerPoint - that lets you create slide shows and author slides in plain text using a wiki-style markup language that's easy-to-write and easy-to-read. The latest slideshow (S9) gem update now also includes code syntax highlighting using the Ultraviolet gem.