Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

project

Brain-dead Simple Delivereads Beams Compelling Content to Your Kindle Automagically [Blip]
Saturday, 14 May 2011 13:00
Gizmodo friend Dave Pell wrote us today with a cool new project called Delivereads. More than a play on words, this project will deliver (get it?) daily curated content to your Kindle with almost zero effort. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/46XOpOIEEJ0/brain+dead-simple-delivereads-beams-compelling-content-to-your-kindle-automagically

 
Spork gem to improve RSpec launch time
Saturday, 19 March 2011 10:27
This reduced launch time of rspec for my rails project in Ubuntu VirtualBox on Win7 host from 35 secs to 2 sec.



sudo gem install spork --prerelease


Or add following to Rails Gemfile:

gem 'spork', '>= 0.9.0.rc'

and run

sudo bundle


Run in your Rails project root.

spork --bootstrap

This will add some code and instructions to spec/spec_helper.rb. Follow the instructions and distribute configuration between sections.

Start spork server:

spork rspec


In another terminal launch specs (first green dot should appear 10 times faster the usual):

rspec --drb spec/controllers/your_controller_spec.rb

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/2FSNMSdfz98/13035

 
Extract news from GitHub
Friday, 11 March 2011 15:57
An exemple using Nokogiri.


require 'open-uri'
require 'nokogiri'

$url="http://rdoc.info"
$outFile = "RubyFeeds.html"

$result=[]
def get_absract_from_readme_project(no,name,url)
frame = Nokogiri::HTML(open(url))
readme=$url+frame.css('frame')[1]['src']
doc = Nokogiri::HTML(open(readme))
text=doc.css("div#content div#filecontents p")[0..4].map { |c| c.content }.join(" ")
$result << [no,name,readme,text]
rescue
puts $!.to_s
end


################ Explore projects list
# ul class="libraries">
# li>
# a href="/github/mdh/ssm/master/frames">strong>mdh/ssm/a>
# a href="http://github.com/mdh/ssm" title="View this project on Github">...
# /li>
# ......

lth=[]
doc = Nokogiri::HTML(open($url))
doc.css('ul.libraries')[1].css('li').each_with_index do |li,i|
aname,*bidon=*li.css('a')
name=aname.content
url=$url+aname['href']
lth << Thread.new(i,name,url) { |nop,n,u| get_absract_from_readme_project(nop,n,u) }
end

################## Wait all readings is finish.....
lth.each { |th| th.join() }

################## format the list of abstracts in a html file...


File.open($outFile,"w") do |file|
file.puts("project | tag

GitHub news

")
$result.sort { |a,b| a[0] <=> b[0] }.each do |no,name,url,text|
file.puts("

#{no}
#{name}
: #{text}

")
end
file.puts("")
end

system("firefox #{$outFile}")


TODO : create a RSS feed and post it to a feedsportal.com ...



.

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/AbSQTGTE2dM/13009

 
These Indestructible Rubber Speakers Amplify Your Earbuds to 80dB [Speakers]
Friday, 11 March 2011 10:30
There are plenty of situations which warrant music but aren't exactly conducive to real speakers, vacations and day trips foremost among them. Tembo Trunks, a Kickstarter project conceived by two Australian brothers on holiday in Africa, looks to be the perfect acoustic compromise. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/CCS4C8RBTdk/these-indestructible-rubber-speakers-amplify-your-earbuds-to-80db

 
The Future of 2D Photographs Is 3D [Video]
Thursday, 24 February 2011 20:20
You've probably seen Microsoft's Photosynth tech, which creates mega-panoramas in 3D by compiling a ton of crowd-sourced photos and applying a little software voodoo. This new 3D-environment-from-2D photos project from Microsoft does kinda the same thing, but from your phone. More »


Read more: http://feeds.gawker.com/~r/gizmodo/full/~3/daTouC5-a_U/the-future-of-2d-photographs-is-3d

 
Start
Prev
1


Page 1 of 4
Taxonomy by Zaragoza Online