fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
lectrick has joined #ruby
girasquid has quit [Quit: girasquid]
patricksroberts has joined #ruby
<shevy> loop where
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<shevy> falieson, there is a way for poor men to debug
<shevy> it is via pp
<shevy> do this:
<shevy> require 'pp'
<shevy> and then at the part of
<shevy> Twitter.search("#election2012", :lang => "en", :rpp => 10, :result_type => "recent").results
<shevy> do something like
<shevy> results = Twitter.search("#election2012", :lang => "en", :rpp => 10, :result_type => "recent").results
<shevy> pp results
peneconleche has quit [Quit: Leaving...]
<shevy> then you know what your array contains
jrist-afk is now known as jrist
<shevy> the only "loop" I see you try to use is via :rpp => 10,
<Spooner> falieson : You want #each, not #map, since you aren't mapping an array, but iterating through it.
<shevy> but who knows that the twitter api does with that
<shevy> *what
<Spooner> shevy : .results.map is the looping.
ph^ has quit [Ping timeout: 240 seconds]
<shevy> what does .results contain
mahmoudimus has joined #ruby
<shevy> do you really trust twitter Spooner :(
<Spooner> If there are 10 results, then the block is run 10 times (presuming :rpp is limiting to 10 results).
fyolnish has quit [Remote host closed the connection]
<falieson> Spooner, your presumption is correct
<falieson> shevy, I know what .results contains
<falieson> shevy, I can run the Twitter.search in irb and get the 10 results
NiteRain has quit [Ping timeout: 246 seconds]
VegetableSpoon has joined #ruby
<falieson> (pretty simply just do require 'twitter' in irb
<Spooner> falieson : Problem is that if you get an error creating the database link, then db is never set (exception raised in the constructor). Might want "db.close if db"
lggr has joined #ruby
<Spooner> shevy I love how much you love pp, but really, p is fine in 95% of cases and doesn't require a require ;D
<falieson> Spooner, it inserts the first row into the db, then the second iteration the mysql-connect errors
<shevy> !!!
<shevy> NEVAR
<shevy> pp to the rescue
<shevy> DOWN WITH YOU P-ERS
<falieson> lollllz
<shevy> falieson, compare the beautiful output of a huge array, with p vs pp
snorkdude has quit [Remote host closed the connection]
<falieson> haha ok
* falieson goes to do that now
<Spooner> Yes, but you advertise pp when people want to output "hello world"
<shevy> YES
<shevy> the earlier they start to use it, the better!
<shevy> well ok
<shevy> for hello world I will recommend p
elico has joined #ruby
joelsbeard has quit [Ping timeout: 256 seconds]
`brendan has joined #ruby
<falieson> lol
<Spooner> As to why you can't get all the results to save in the db, I don't know. I would never use SQL in a world where people have written datamapper or similar (ha! Now who is recommending a bulldozer for a hammer's job? :D).
jasonkuhrt has quit [Quit: Leaving...]
TomJ has quit [Quit: TomJ]
<shevy> I WOULD
<falieson> lol
anildigital_work has joined #ruby
<falieson> I come from LAMP background
<falieson> I'm comfortable with M
notbrent has joined #ruby
<shevy> lava lamp
<falieson> ooo... I want to buy one of those
slicslak has joined #ruby
<shevy> falieson, what you should try with ruby is to always be terse, when that is possible
<falieson> thanks shevy for the reminder
chimkan has quit [Quit: chimkan]
kapowaz has joined #ruby
dpk has joined #ruby
<shevy> there are at least two ways to create an array, array = [] vs. array = Array.new. Array.new allows a bit more, I think (you can pass a block), but [] is so much shorter to write, and a tiny bit faster too
havenn has quit [Remote host closed the connection]
<shevy> so most people use []
boodle has joined #ruby
seanstickle has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
schwap has quit [Quit: leaving]
skrewler has joined #ruby
skrewler has quit [Client Quit]
<Spooner> falieson : I know SQL and C, but I still use Ruby and a db-wrapper. I know some assembly too, but doesn't mean it is the best way (though in this 20 line script, I'll forgive you your bohemian ways!).
havenn has joined #ruby
<falieson> Spooner, lol thanks
<falieson> I just wish I could get the other 9 results to enter into the db
<falieson> haha
girasquid has joined #ruby
<Spooner> So where does it get to? End the script or stall somewhere?
<falieson> it does the second iteration of http://pastie.org/4800609
<falieson> sorry, bad paste
<falieson> deving on my mac, chatting on my desktop
adkron_ has joined #ruby
girasquid has quit [Client Quit]
<falieson> copy/paste doesn't work well between vnc =(
adkron has quit [Ping timeout: 244 seconds]
<falieson> it does the second iteration of puts "#{status.... }"
havenn has quit [Remote host closed the connection]
<falieson> and then "Could not connect the dtabase"
<Spooner> peppering with p (or pp) and maybe p [status.id, status.from_user, status.text, status.created_at] to see what you are actually trying to save..
swarley| has joined #ruby
dpk has quit [Ping timeout: 245 seconds]
vandemar has quit [Ping timeout: 246 seconds]
PapaSierra has quit [Quit: PapaSierra]
lggr has joined #ruby
<Spooner> Perhaps insert_new_tweet.close is closing the db rather than what you think it does?
<falieson> j,,,
<falieson> hmm
<falieson> 2007? lol
swarley has quit [Ping timeout: 264 seconds]
<falieson> but anyways, last eample on the page
<falieson> I guess that was backbefore people new what nosql was
<Spooner> actually, I'd suggest doing the prepare before the loop
davidpk has joined #ruby
<Spooner> falieson : http://pastie.org/4800692
jhowarth has joined #ruby
mercwithamouth has joined #ruby
chimkan_ has joined #ruby
<Spooner> Maybe that isn't how it works, but it should work like that :D
fcoury has joined #ruby
NimeshNeema has joined #ruby
glyytchy has joined #ruby
<Spooner> falieson : As I said, everyone uses ORM nowadays. Not so much the nosql thing.
lggr has quit [Ping timeout: 240 seconds]
<falieson> Spooner, thanks for the try
<falieson> maybe I messed up my db connection or something
<falieson> The first time I did it worked once... but checking my db table I only have 1 result
<falieson> maybe the server banned me?
<Spooner> I'd bad you.
<falieson> lol
<Spooner> *I'd ban you
<falieson> no that's fine
<blazes816> freudian slip there spoon?
Virunga has quit [Remote host closed the connection]
jasonkuhrt has joined #ruby
hadees has quit [Quit: hadees]
tyfighter has quit [Quit: tyfighter]
<falieson> haha blazes816
joofsh has quit [Ping timeout: 256 seconds]
blazes816 has quit [Quit: blazes816]
lggr has joined #ruby
A124 has joined #ruby
ph^ has joined #ruby
ianbrandt has quit [Quit: ianbrandt]
swarley has joined #ruby
swarley| has quit [Ping timeout: 256 seconds]
lledet has joined #ruby
yshh has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
davidpk is now known as dpk
jonathanwallace has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
<falieson> thanks shevy and Spooner for the help
<swarley> That's the fastest database key value store?
lggr has quit [Ping timeout: 264 seconds]
<swarley> No daemons required
RavensKrag has joined #ruby
<swarley> Mongod, mysql etc
<Spooner> You mean "What's" not "that's"?
<swarley> Sorry DROID autocorrect
<swarley> Otterbox makes it horrible to type
<swarley> And yes
<Spooner> tokyo cabinet was mentioned last time that cropped up.
<Spooner> pstore or yaml or json if you have a tiny data set, of course.
<swarley> Hm, that doesn't require a server process?
dpk has quit [Quit: Ceci n'est pas une broken pipe.]
<swarley> Right now im using sbdb
joofsh has joined #ruby
lledet has quit [Quit: bok bok]
<falieson> Spooner, where would you recommend I get started with an ORM? Obvs I'm not somethign right with this method
<Spooner> The other one mentioned was berkleydb, swarley
lggr has joined #ruby
yshh has quit [Remote host closed the connection]
mxweas has quit [Quit: Computer has gone to sleep.]
<Spooner> falieson : http://datamapper.org/getting-started.html (or you could go the activerecord route, but that is Railsy :D).
ph^ has quit [Ping timeout: 265 seconds]
<swarley> I like Berkly so far
gabrielr_ has joined #ruby
aantix_ has joined #ruby
aantix_ has quit [Client Quit]
<Spooner> falieson : Thing is, just because an ORM gives you a nice wrapper, doesn't mean it will magically work if your logic or db is fubar :)
Guedes_out has quit [Ping timeout: 256 seconds]
jonathan_ has joined #ruby
CannedCorn has joined #ruby
mxweas has joined #ruby
kiyoura has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
<Spooner> TC is supposed to vastly outperform BDB on large datasets, but I'm just basing that on googling, not direct experience.
<falieson> Spooner, haha - of course, but as I rewrite it to use the wrapper hopefully I'll fix the mistake
<falieson> Spooner, by trying a different way of doing it
<falieson> :-)
<Spooner> That isn't a bad hypothesis.
gabrielrotbart has quit [Ping timeout: 245 seconds]
glyytchy has quit [Quit: Leaving...]
<swarley> I had a SQLite3 db that I had wrapped, but it broke inexplicably one certain occasions so I outed it
<swarley> On*
mengu has joined #ruby
aantix has quit [Ping timeout: 245 seconds]
hsbt_away is now known as hsbt
<falieson> heh
<null-_> falieson: look at sequel too
emanu has quit [Ping timeout: 252 seconds]
fyolnish has joined #ruby
<falieson> null-_, thanks, in #RoR there was a guy all about the Sequel
lggr has quit [Ping timeout: 248 seconds]
<Spooner> Splitter. RoR is all about the Active*
ncr100 has quit [Ping timeout: 264 seconds]
<null-_> falieson: if you are going to use rails its make more sense to learn AR, unless you want to learn both
samphippen has quit [Quit: Computer has gone to sleep.]
<falieson> nah, no interest in rails right now.
<Spooner> It isn't about Rails. I was just recommending using an ORM rather than using raw SQL in a little script.
<falieson> yeah
<falieson> But I'll do it the right way now, since I'm having issues
<null-_> raw sql is fine too :)
<falieson> and later on I'll be happy I did it
<falieson> null-_, haha, want a look?
guns has quit [Quit: guns]
Guedes0 has joined #ruby
ken_barber has quit [Remote host closed the connection]
<null-_> nah, my sql skills are poor, but I don't see what's so wrong with writing raw sql
winux has joined #ruby
ffranz has quit [Quit: Leaving]
<null-_> falieson: orm vs sql is a holy war
davidpk has joined #ruby
<wmoxam> holy war?
<wmoxam> not even close
<falieson> lol
<falieson> shit, lol
<falieson> I guess I gotta change that password now
lggr has joined #ruby
<null-_> wmoxam: why no?
<null-_> not
<wmoxam> null-_: I don't see it even being debated. Besides, they aren't mutually exclusive
joelsbeard has joined #ruby
<null-_> wmoxam: sorry, I mean using a ORM vs no using one and using raw SQL
<wmoxam> null-_: or you could use an ORM and raw sql
<wmoxam> null-_: or confine raw sql to data models
* null-_ connects to falieson database
<falieson> null-_, lol
<falieson> null-_, too late
<wmoxam> it's not a black and white 'war'
<wmoxam> there is no tension. Use the appropriate tool for the job
<falieson> anyways
<falieson> :-P
<null-_> wmoxam: ok fair enough, I'm not knowledgeable enough to really, there big discussions on the net about this
snorkdude has joined #ruby
<null-_> +to really know
cakehero has joined #ruby
yshh has joined #ruby
<wmoxam> null-_: I haven't seen a 'debate' about this since early days when ORMs started to become popular
<wmoxam> except maybe in /r/php
iori has joined #ruby
<falieson> so while I nubly posted my super mega password (jk) on pastie.org I was trying to show null-_ my raw sql queries
rabidpraxis has joined #ruby
fir_ed has quit [Read error: Connection reset by peer]
<falieson> but I'm not sure if there is a problemw ith the code anymore... having trouble db connecting
yasushi has joined #ruby
fir_ed has joined #ruby
joelsbeard has quit [Ping timeout: 240 seconds]
<null-_> wmoxam: let me find the stackoverlow one
lggr has quit [Ping timeout: 265 seconds]
mrdodo has quit [Remote host closed the connection]
chrishunt has quit [Ping timeout: 248 seconds]
<bperry> if you have to debate as to whether you want to use an orm then you have two problems :)
girasquid has joined #ruby
<wmoxam> lol
<epochwolf> null-_: it's not a holy war, it's a couple of really vocal people against it and no one else gives a shit what those people think.
rabidpraxis has quit [Ping timeout: 252 seconds]
snorkdude has quit [Remote host closed the connection]
<epochwolf> null-_: it's like the people that claim bsd is way better than everything else and refuse to use anything so "unclean" as linux regardless of what the best tool is.
<epochwolf> No one cares what those people think.
mfridh_ has quit [Read error: Operation timed out]
<Spooner> Ruby is way better than anything else and I refuse to consider anything else. Oops.
peneconleche has joined #ruby
lggr has joined #ruby
<null-_> epochwolf: true I guess, some people just like to hype things
<falieson> Spooner, lol
<epochwolf> ding ding ding, can you stop being one of those people
AndChat| has joined #ruby
AndChat- has joined #ruby
<null-_> Spooner: ^^ :D
<epochwolf> Spooner: just remember ObjC is there waiting when you want to write something for the world's best phone.
<wmoxam> yeah, if you're going to talk about a holy war then stick to real wars like emacs vs vim
chimkan_ has quit [Quit: chimkan_]
hadees has joined #ruby
<wmoxam> epochwolf: RUBY MOTION
<Spooner> epochwolf : Yeah, ObjC. No comment required.
<epochwolf> wmoxam: bye bye performance
<elico> Need some help with active records
Drewch has quit [Excess Flood]
<null-_> well, using an ORM without knowing SQL is looking fro trouble no?
<wmoxam> epochwolf: the iphone5 is a bajillion times faster than 4S, speed doesn't matter anymore
glyytchy has joined #ruby
<wmoxam> null-_: that hardly means there's a holy war
snorkdude has joined #ruby
Drewch has joined #ruby
<wmoxam> if you're going to use ActiveRecord then you better fucking know your SQL
<epochwolf> null-_: using a webframework without knowing html or javascript is also dumb
<null-_> epochwolf: I have heard of people using Rails without knowing ruby :)
sheerun has quit [Quit: sheerun]
ph^ has joined #ruby
<epochwolf> null-_: I know. I help them every other week. They annoy the hell out of me
<wmoxam> null-_: yes, and they suck at it
<Spooner> I've heard of people using Ruby who don't know assembler or _even_ C. Not sure the argument fits...
<epochwolf> learn to fucking program
<epochwolf> Spooner: leaky abstractions require you to know the mechanics
<epochwolf> web frameworks are horribly leaky
Banistergalaxy has quit [Ping timeout: 256 seconds]
AndChat| has quit [Ping timeout: 245 seconds]
<epochwolf> orms aren't really designed for full abstraction, just convience
<wmoxam> epochwolf: that's why you need a *pure* abstraction!
<wmoxam> epochwolf: lets go write some Haskell
twoism_ has quit [Remote host closed the connection]
<epochwolf> wmoxam: !fuckoff
tgraham is now known as tgraham|away
<wmoxam> lol
<epochwolf> … no bot in here
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
winux has quit [Quit: Leaving.]
<Spooner> Leaky? Yeah, I guess the problem is that they generate something that you need to deal with directly (html/etc) unlike Ruby's bytecode or C which you can happily leave outside the back door.
mfridh has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<Spooner> elico : ActiveRecord knowledge is more likely found in #rails or #RoR or #rubyonrails
<epochwolf> Spooner: I have yet to see any abstraction that can do visual interfaces without messing with the findly bits.
<epochwolf> And with database, it pays to learn sql and be able to optimize a bit
<RubyPanther> ORMs are about having an OO interface, no more, no less
Hanmac has quit [Ping timeout: 246 seconds]
<null-_> wow three channels for the same thing, is this a ruby community thing (#ruby #rubylang) ? :)
joeycarm_ has joined #ruby
<Spooner> #rubylang is for people who work on Ruby, not people who use it (I _think_)
<RubyPanther> There has got to be at least 5 or 6 just on freenode
davidcelis has quit [Quit: K-Lined.]
chimkan_ has joined #ruby
<A124> #ruby-lang is devoted to the language itself
<null-_> are the third party quality libraries to build something as rails? like sinatra and sequel comes to mind
joelsbeard has joined #ruby
<epochwolf> hahahaha
yasushi_ has joined #ruby
<null-_> s/the/there/
<A124> The reccoment general ruby related but not ruby code thing to be discused here
<A124> *d
adeponte has quit [Remote host closed the connection]
<wmoxam> null-_: Rack
<Spooner> epochwolf : Not sure what you mean. Plenty of GUI libs would disagree, though certainly any web framework is hardly comparible to those.
<null-_> wmoxam: I guess sinatra implies rack
CaptainJet has joined #ruby
<epochwolf> Spooner: aren't those just loose wrappers around the C libs?
<wmoxam> null-_: every modern ruby web framework uses Rack
<epochwolf> as in, not an abstraction?
<RubyPanther> null-_: Most of what you need is in the stdlib
<epochwolf> LIES
<null-_> wmoxam: I mean build all the components of rails from third party libs
lggr has joined #ruby
<RubyPanther> C libs are super-easy to wrap in Ruby.
winux has joined #ruby
winux has quit [Changing host]
winux has joined #ruby
girasquid has quit [Quit: girasquid]
<RubyPanther> Not like all that XS nonsense in Perl
yasushi has quit [Ping timeout: 244 seconds]
<null-_> RubyPanther: yeah, the stdlib does so much for you already :)
<Spooner> epochwolf : Not necessarily, but that isn't the point. You can use them without needing to understand the underlying code, certainly (and they, themselves are just sitting on top of openGL or whatever and you don't need to know those mechanisms to create a window in Ruby).
<RubyPanther> Most of the GUI libs are generated from the C libs using swig
wpaulson has joined #ruby
<wmoxam> ugh, swig
adkron_ has quit [Ping timeout: 252 seconds]
girasquid has joined #ruby
<RubyPanther> Yeah, stdlib gives you all the http stuff, cookies, sessions
joelsbeard has quit [Ping timeout: 256 seconds]
<Spooner> Perhaps, but that isn't relevant to what I thought I was discussing. There is a huge difference between a desktop GUI library and a web "GUI" library, since the former will work and the latter probably won't (on one or more versions of Internet Explorer for entirely stupid reasons :D)
ph^ has quit [Ping timeout: 240 seconds]
adkron has joined #ruby
<RubyPanther> It is easy to generate portable HTML
<Spooner> That always looks and acts the same in the way that a desktop GUI can?
<rking> Hrm. I need to figure out when you need %r// and when plain // works.
<RubyPanther> Why would it? I think the test would instead be that it has the same inputs and outputs.
lggr has quit [Ping timeout: 246 seconds]
<rking> I could've sworn that you had to do %r// more back in the day, but maybe I'm on the crack drug.
butblack has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
<RubyPanther> %r used to be more popular is all
slicslak has quit [Ping timeout: 265 seconds]
glyytchy has quit [Quit: Leaving...]
girasquid has quit [Client Quit]
c0rn__ has quit [Quit: Computer has gone to sleep.]
<Spooner> rking : No point doing %r// really, since the main advantage of %r is not needing to escape / (like %r</frog/cheese> rather than /\/frog\/cheese/ )
<rking> Spooner: Hrm. In Perl, free-floating //'s mean "match against $_". Implicit meaning for //'s is completely gone in Ruby?
awarner has joined #ruby
<Spooner> Yeah, // doesn't do anything.
<rking> Spooner: K, thanks.
<RubyPanther> We don't do implicit receivers unless it is self :)
<Spooner> Well, it generates a regexp, of course.
Synthead has quit [Remote host closed the connection]
davidpk has quit [Quit: Ceci n'est pas une broken pipe.]
Hanmac has joined #ruby
<RubyPanther> /\/\/(.*)$/ # Yay! Toothpicks!
<Spooner> No, it is evil gnashy teeth!
<Spooner> Or an advert for VVVVV
<RubyPanther> It is either a chainsaw, or else a dragon hoarding some money
maletor has quit [Quit: Computer has gone to sleep.]
davidpk has joined #ruby
lggr has joined #ruby
davidpk is now known as dpk
seanstickle has quit [Quit: seanstickle]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
girasquid has joined #ruby
<Spooner> Can we just agree that it is very dangerous and that you shouldn't leave your children alone playing with one.
BMF has joined #ruby
girasquid has quit [Client Quit]
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
jonathan_ has quit [Remote host closed the connection]
mxweas has quit [Quit: Computer has gone to sleep.]
snorkdude has quit [Remote host closed the connection]
peneconleche is now known as peneconleche|awa
lggr has quit [Ping timeout: 256 seconds]
voodoofish430 has quit [Quit: Leaving.]
hbpoison has joined #ruby
eignerchris has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
ManK has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
tommyvyo_ has joined #ruby
TaylorBaby1985 has joined #ruby
dpk has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
kst has joined #ruby
tgraham|away is now known as tgraham
falieson has quit [Quit: Leaving]
Cache_Money has joined #ruby
ryanlecompte has quit [Ping timeout: 246 seconds]
<TaylorBaby1985> www.quickcollegehookups.com is accepting 45 more free accounts!
TaylorBaby1985 has quit [Killed (idoru (Spam is off topic on freenode.))]
dpk has joined #ruby
brondsem has joined #ruby
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
havenn has joined #ruby
talsamon has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 248 seconds]
talsamon has joined #ruby
butblack has quit [Quit: butblack]
hallgrimur has joined #ruby
<hallgrimur> hello
daniel_- has quit [Quit: WeeChat 0.3.8]
hallgrimur has quit [Client Quit]
ph^ has joined #ruby
AlbireoX has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
AlbireoX has joined #ruby
v0n has quit [Ping timeout: 268 seconds]
davidcelis has joined #ruby
AndChat- has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
gry has joined #ruby
jrajav has joined #ruby
glyytchy has joined #ruby
rabidpraxis has joined #ruby
gyre007 has quit [Ping timeout: 246 seconds]
tar_ has quit [Quit: tar_]
TommyBotten has quit [Ping timeout: 246 seconds]
gyre007 has joined #ruby
TommyBotten has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
nari has joined #ruby
lggr has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
dpk has quit [Remote host closed the connection]
joelsbeard has joined #ruby
chimkan_ has quit [Quit: chimkan_]
dpk has joined #ruby
chimkan_ has joined #ruby
Guest_ has joined #ruby
butblack has joined #ruby
<Guest_> Was really hoping someone could point me to a guide that better explains how to understand rack. I've successfully got it working, but I just don't understand what *it* is. It's like an embedded server, in my opinion. :/
<Spooner> Guest_ : What do you actually want to use it for if you don't know what it is? Mostly it would be used by frameworks like Rails or Sinatra.
girasquid has joined #ruby
ryanlecompte has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
pipopopo has quit [Ping timeout: 264 seconds]
<Guest_> Well, I'm already using it. I've cloned my friends small sinatra app, which uses rack (I can see the *.ru file), in conjunction with mongodb. I'm just trying to understand what it does. :p
JustinCampbell has quit [Remote host closed the connection]
<Guest_> It's middleware between a server and app? :/
bbttxu has joined #ruby
<Spooner> Pretty much, though I've never worried about it: http://ruby.about.com/od/rack/a/What-Is-Rack.htm
pipopopo has joined #ruby
ewag has joined #ruby
rakl has joined #ruby
lggr has joined #ruby
girasquid has quit [Quit: girasquid]
pipopopo has quit [Ping timeout: 240 seconds]
Guedes has quit [Quit: Saindo]
eignerchris has joined #ruby
pipopopo has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
joelsbeard has quit [Ping timeout: 252 seconds]
fir_ed has quit [Read error: Connection reset by peer]
eignerchris has quit [Remote host closed the connection]
ryanlecompte has quit [Remote host closed the connection]
ckrailo has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
dmiller has quit [Read error: Connection reset by peer]
dmiller_ has joined #ruby
fir_ed has joined #ruby
emanu has joined #ruby
lggr has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
chimkan_ has quit [Remote host closed the connection]
chimkan_ has joined #ruby
havenn has quit [Remote host closed the connection]
qubit has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
glyytchy has quit [Quit: Leaving...]
emanu has quit [Client Quit]
adkron has joined #ruby
ph^ has joined #ruby
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
havenn has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
twoism has joined #ruby
jameshyde has joined #ruby
<qubit> I'm using Net::HTTP to connect over https with verify_mode set to VERIFY_PEER with ca_file provided as well, however it seems to be completely ignoring the ca_file. I did an strace and the file never gets opened. Any ideas why?
malcolmva has joined #ruby
justinmcp has quit [Remote host closed the connection]
peneconleche|awa has quit [Quit: Leaving...]
lggr has joined #ruby
butblack has quit [Quit: butblack]
twoism has quit [Ping timeout: 264 seconds]
<qubit> nevermind, looks like the code I'm working with (not mine) is doing something stupid. Time to go figure out what...
sailias has joined #ruby
ph^ has quit [Ping timeout: 265 seconds]
manuelitox_ has quit [Ping timeout: 264 seconds]
dpk has quit [Quit: Ceci n'est pas une broken pipe.]
banannagram has joined #ruby
decentrality has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
dmiller_ has quit [Remote host closed the connection]
sailias has quit [Client Quit]
nga4 has quit [Ping timeout: 256 seconds]
bananagram has quit [Ping timeout: 248 seconds]
dpk has joined #ruby
NiteRain has joined #ruby
lggr has joined #ruby
dmiller has joined #ruby
VegetableSpoon has quit [Quit: Leaving]
dustinleer has quit [Remote host closed the connection]
<Guest_> Spooner: Actually, that explained it perfectly! XD - Thanks man!
<Spooner> Guest_ : Now explain it to me! ;)
<Guest_> Rack is to Servers, as ORM's are to Databases :)
<Spooner> Right. More than I ever needed to know.
rabidpraxis has quit [Remote host closed the connection]
dakine has quit [Read error: Connection reset by peer]
TheShadowFog has quit [Quit: pls respond]
snorkdude has joined #ruby
dakine has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Bosox20051 has joined #ruby
kiyoura has quit [Quit: Leaving]
kiyoura` has joined #ruby
kiyoura` has quit [Client Quit]
kiyoura has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
CaptainJet has quit []
baroquebobcat has joined #ruby
moted has quit [Ping timeout: 252 seconds]
Juul has joined #ruby
lggr has joined #ruby
digitalcakestudi has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
fyolnish has joined #ruby
glyytchy has joined #ruby
Targen has joined #ruby
girasquid has joined #ruby
havenn has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
falieson has joined #ruby
gabrielr_ has left #ruby [#ruby]
ph^ has joined #ruby
<falieson> who remembers mysql
v0n has joined #ruby
baroquebobcat has joined #ruby
ken_barber has joined #ruby
lggr has joined #ruby
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
zeromodulus has quit [Remote host closed the connection]
dpk has quit [Ping timeout: 252 seconds]
<falieson> how do I output the mysql error that I get/
Spooner has quit [Ping timeout: 246 seconds]
dpk has joined #ruby
baroquebobcat has quit [Client Quit]
pingfloyd has joined #ruby
pingfloyd has left #ruby [#ruby]
philips_ has quit [Excess Flood]
philips_ has joined #ruby
DarkFoxDK has quit [Read error: Operation timed out]
karstensrage has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 264 seconds]
DarkFoxDK has joined #ruby
<Cache_Money> How do I access just the City column from this page http://en.wikipedia.org/wiki/List_of_cities_in_Oregon script: http://pastie.org/4801643
ryanlecompte has joined #ruby
falieson has left #ruby [#ruby]
ph^ has quit [Ping timeout: 264 seconds]
karstensrage has joined #ruby
karstensrage is now known as Guest25182
snuglepuss has quit [Remote host closed the connection]
null-_ has left #ruby [#ruby]
lggr has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
baroquebobcat has joined #ruby
mikepack has joined #ruby
snorkdude has quit [Remote host closed the connection]
snorkdude has joined #ruby
wargasm has quit [Ping timeout: 256 seconds]
apok has quit [Ping timeout: 256 seconds]
boodle has quit [Quit: boodle]
<Spaceghostc2c> Cache_Money: Mmm, oregon.
awarner has quit [Remote host closed the connection]
<Spaceghostc2c> Cache_Money: CSS or XPATH selectors.
qubit has left #ruby [#ruby]
<Cache_Money> I was using CSS
lggr has quit [Ping timeout: 248 seconds]
<Cache_Money> and I found a way to do it, although I'm still unsure what url to pass to get the table to show cities in descending order of population
xpen has joined #ruby
decentrality has quit [Quit: demonstrate freedom //]
<Cache_Money> i only want the top 20 most populated cities
jrajav has quit []
adkron has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
adkron has joined #ruby
kiyoura has quit [Quit: Leaving]
ckrailo has quit [Quit: Computer has gone to sleep.]
chimkan_ has left #ruby [#ruby]
dpk has quit [Quit: Ceci n'est pas une broken pipe.]
joelsbeard has joined #ruby
dpk has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 240 seconds]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
Roa is now known as Roa
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
joeycarm_ has quit [Remote host closed the connection]
tbbach has joined #ruby
<Spaceghostc2c> k.
dpk has quit [Quit: Ceci n'est pas une broken pipe.]
dpk has joined #ruby
joelsbeard has quit [Ping timeout: 240 seconds]
rcsheets has joined #ruby
lggr has joined #ruby
manuelitox_ has joined #ruby
glyytchy has quit [Quit: Leaving...]
joeycarm_ has joined #ruby
ph^ has joined #ruby
twoism has joined #ruby
joeycarm_ has quit [Remote host closed the connection]
cpruitt has joined #ruby
mva3212 has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
<banannagram> need a dispenser here
joeycarm_ has joined #ruby
twoism has quit [Ping timeout: 252 seconds]
Ithrendil has quit [Remote host closed the connection]
tbbach has quit [Quit: tbbach]
ryanlecompte has joined #ruby
lggr has joined #ruby
beneggett has joined #ruby
daidoji has joined #ruby
ken_barber has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 265 seconds]
dagnachewa has joined #ruby
tommyvyo_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
rabidpraxis has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
baroquebobcat has quit [Quit: baroquebobcat]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
luckyruby has quit [Remote host closed the connection]
xpen_ has joined #ruby
tblamer has joined #ruby
xpen has quit [Read error: Connection reset by peer]
cakehero has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
rabidpraxis has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
ManK has quit [Ping timeout: 265 seconds]
malcolmva has quit [Quit: Leaving]
malcolmva has joined #ruby
gabrielrotbart has joined #ruby
winux has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 248 seconds]
mercwithamouth has joined #ruby
Guest25182 is now known as karstensrage
lggr has quit [Ping timeout: 256 seconds]
Guest64548 has joined #ruby
justinmcp has joined #ruby
ken_barber has joined #ruby
lggr has joined #ruby
elico has quit [Quit: elico]
Banistergalaxy has joined #ruby
jrist is now known as jrist-afk
glyytchy has joined #ruby
justinmc_ has joined #ruby
manizzle has joined #ruby
rippa has joined #ruby
yasushi_ has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Ping timeout: 244 seconds]
dmiller has quit [Remote host closed the connection]
justinmcp has quit [Ping timeout: 245 seconds]
Banistergalaxy has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
ManK has joined #ruby
dmiller_ has joined #ruby
zeromodulus has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
rippa has quit [Ping timeout: 244 seconds]
joeycarm_ has quit [Remote host closed the connection]
joeycarm_ has joined #ruby
Banistergalaxy has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
brondsem has left #ruby [#ruby]
ph^ has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
joeycarm_ has quit [Read error: Connection reset by peer]
joeycarm_ has joined #ruby
lggr has joined #ruby
Villadelfia has quit [Quit: Leaving.]
dagnachewa has quit [Remote host closed the connection]
TandemAdam has joined #ruby
ManK has quit [Ping timeout: 256 seconds]
joeycarm_ has quit [Remote host closed the connection]
qos has joined #ruby
Targen has quit [Ping timeout: 240 seconds]
Bosma has quit [Ping timeout: 245 seconds]
adeponte has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
classix has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
classix has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Banistergalaxy has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
xorgnak has joined #ruby
ttt has joined #ruby
adkron has quit [Ping timeout: 256 seconds]
baroquebobcat has joined #ruby
xorgnak has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
adkron has joined #ruby
areil has joined #ruby
tgraham has quit [Quit: Leaving...]
TandemAdam has left #ruby ["Leaving"]
rohit has joined #ruby
nga4 has joined #ruby
ManK has joined #ruby
Guest_ has quit [Quit: Computer has gone to sleep.]
hemanth has joined #ruby
aantix has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Axsuul has quit [Ping timeout: 264 seconds]
Axsuul has joined #ruby
falieson has joined #ruby
<falieson> sup guys
<Spaceghostc2c> Are you sure it's all guys?
<falieson> nah
<falieson> cool nick though
lggr has joined #ruby
<falieson> I'm trying to figure out sequel, http://pastie.org/4803195 I'm not sure what to do next to actually insert a row into the db?
friskd has quit [Ping timeout: 246 seconds]
<falieson> nm I gots it
elico has joined #ruby
daidoji has quit []
josh^ has quit [Ping timeout: 256 seconds]
ScottNYC has quit [Quit: ScottNYC]
lggr has quit [Ping timeout: 256 seconds]
snorkdude has quit [Remote host closed the connection]
amng has joined #ruby
lggr has joined #ruby
josh^ has joined #ruby
manizzle has quit [Ping timeout: 248 seconds]
ManK has quit [Ping timeout: 265 seconds]
lucianosousa has quit [Quit: lucianosousa]
xorgnak has joined #ruby
rohit has quit [Ping timeout: 264 seconds]
xorgnak has quit [Remote host closed the connection]
ph^ has joined #ruby
sent-hil has joined #ruby
rohit has joined #ruby
xorgnak has joined #ruby
Guest64548 has quit [Ping timeout: 256 seconds]
yasushi_ has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
ryanlecompte has quit [Remote host closed the connection]
josh^ has quit [Ping timeout: 240 seconds]
RavensKrag has quit [Remote host closed the connection]
falieson has left #ruby [#ruby]
lggr has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
josh^ has joined #ruby
quest88 has joined #ruby
pu22l3r_ has joined #ruby
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
xorgnak has quit [Ping timeout: 264 seconds]
ManK has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
sagax has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
aantix has quit [Quit: aantix]
lggr has quit [Ping timeout: 240 seconds]
fantazo has joined #ruby
freeayu has joined #ruby
digitalcakestudi has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
Cache_Money has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
Cache_Money has joined #ruby
banannagram has quit [Ping timeout: 252 seconds]
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 244 seconds]
rohit has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
ken_barber has quit [Remote host closed the connection]
heftig has joined #ruby
hbpoison_ has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
ken_barber has joined #ruby
hbpoison has quit [Ping timeout: 248 seconds]
freeayu has joined #ruby
freeayu__ has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
hbpoison_ has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
ewag has quit [Ping timeout: 246 seconds]
rohit has joined #ruby
slicslak has joined #ruby
love_color_text has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
adkron has quit [Ping timeout: 256 seconds]
alta has quit [Ping timeout: 246 seconds]
manuelitox_ has quit [Ping timeout: 264 seconds]
joeycarm_ has joined #ruby
neersighted has quit [Ping timeout: 260 seconds]
ph^ has joined #ruby
adkron has joined #ruby
quazimodo has joined #ruby
lggr has joined #ruby
joeycarm_ has quit [Ping timeout: 246 seconds]
havenn has joined #ruby
apok has joined #ruby
ananthakumaran has joined #ruby
eddie_ has joined #ruby
tagrudev has joined #ruby
ij has joined #ruby
ij has quit [Changing host]
ij has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
AlbireoX has joined #ruby
slicslak has quit [Ping timeout: 265 seconds]
lggr has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
ken_barber has quit [Remote host closed the connection]
triptec has quit [Quit: triptec]
love_color_text has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 264 seconds]
rohit has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
AlbireoX has quit [Ping timeout: 256 seconds]
bluOxigen has joined #ruby
lggr has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
rabidpraxis has joined #ruby
Juul has quit [Quit: Leaving]
Targen has joined #ruby
apok has quit [Quit: apok]
lggr has quit [Ping timeout: 246 seconds]
Chryson has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
<RubyPanther> Chics are guys too Spaceghostc2c, this is 2012 already. They're also now dudes.
CannedCorn has quit [Quit: Computer has gone to sleep.]
sepp2k has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
rohit has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
v0n has quit [Quit: Leaving]
v0n has joined #ruby
joofsh has quit [Remote host closed the connection]
ejnahc has quit [Remote host closed the connection]
ejnahc has joined #ruby
alta has joined #ruby
notVert has quit [Remote host closed the connection]
amskah has joined #ruby
adkron has joined #ruby
ken_barber has joined #ruby
answer_42 has joined #ruby
rakl has quit [Quit: gone]
cpruitt has quit [Quit: cpruitt]
pu22l3r has joined #ruby
bradhe has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
rohit has quit [Quit: Leaving]
arturaz has joined #ruby
verto is now known as verto|off
lggr has joined #ruby
alvaro_o_ has joined #ruby
quest88 has quit [Quit: quest88]
yasushi_ has quit [Ping timeout: 252 seconds]
neersighted has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
alvaro_o has quit [Ping timeout: 256 seconds]
ph^ has joined #ruby
tiripamwe has joined #ruby
adkron has quit [Ping timeout: 244 seconds]
uris has quit [Quit: leaving]
lggr has quit [Ping timeout: 256 seconds]
ManK has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
ken_barber has quit [Remote host closed the connection]
arya_ has joined #ruby
lggr has joined #ruby
adkron has joined #ruby
slicslak has joined #ruby
tiripamwe has quit [Ping timeout: 240 seconds]
IrishGringo has joined #ruby
vderyagin has joined #ruby
pu22l3r has quit [Remote host closed the connection]
stepnem has joined #ruby
<Cache_Money> when I arrive at this URL http://en.wikipedia.org/wiki/List_of_cities_in_California the list of cities is in ASC order alphabetically. What URL would I need to use to get the cities in DESC order by population?
triptec has joined #ruby
<A124> Cache_Money: Get the data into an array, sort it by apropriate index.
maesbn has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
arturaz has quit [Remote host closed the connection]
ltsstar has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
elsifaka has joined #ruby
havenn has quit [Remote host closed the connection]
Cache_Money has quit [Read error: Connection reset by peer]
Cache_Money has joined #ruby
Targen has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
quazimodo has quit [Ping timeout: 256 seconds]
ManK has joined #ruby
fantazo has quit [Remote host closed the connection]
ph^ has joined #ruby
adkron_ has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
adkron has quit [Ping timeout: 264 seconds]
jamjam has joined #ruby
robustus has quit [Ping timeout: 265 seconds]
zigomir has joined #ruby
aganov has joined #ruby
robustus has joined #ruby
slicslak has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
SJr has quit [Ping timeout: 256 seconds]
xpen_ is now known as xpen
lggr has joined #ruby
ph^ has quit [Remote host closed the connection]
insulator has quit [Ping timeout: 276 seconds]
arturaz has joined #ruby
pauC has joined #ruby
bradhe has joined #ruby
whowantstolivefo has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
mikepack has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
girasquid has left #ruby [#ruby]
Bosox20051 has quit [Quit: Leaving]
SJr has joined #ruby
mxweas has joined #ruby
ltsstar has quit [Quit: ltsstar]
jarred has joined #ruby
mneorr has joined #ruby
amng has left #ruby [#ruby]
lggr has joined #ruby
bartj3 has joined #ruby
mikepack has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
Eplemosen has joined #ruby
adeponte has quit [Remote host closed the connection]
mattyoho has joined #ruby
mattyoho has quit [Client Quit]
d3c has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
mneorr has quit [Ping timeout: 244 seconds]
Bosox20051 has joined #ruby
ests has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
senny has joined #ruby
frogprince_mac has joined #ruby
jimeh has joined #ruby
lggr has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
arya_ has joined #ruby
jameshyde has quit [Quit: Leaving]
arya_ has left #ruby [#ruby]
d3c has quit [Quit: Quit]
baroquebobcat has quit [Client Quit]
lggr has quit [Ping timeout: 244 seconds]
_br_ has quit [Excess Flood]
lggr has joined #ruby
baroquebobcat has joined #ruby
Eplemosen has quit [Quit: NOPE]
vectorshelve has joined #ruby
_br_ has joined #ruby
jarred has quit [Quit: jarred]
jgwong has quit [Read error: Operation timed out]
baroquebobcat has quit [Remote host closed the connection]
jprovazn_away is now known as jprovazn
baroquebobcat has joined #ruby
jarred has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
ests has quit []
ph^ has joined #ruby
lggr has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
mikepack has quit [Remote host closed the connection]
adelcampo has joined #ruby
budha has joined #ruby
manizzle has joined #ruby
bartj3 has quit []
lggr has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
_bart has quit [Quit: _bart]
zommi has joined #ruby
Cache_Money has quit [Ping timeout: 256 seconds]
justsee has quit [Quit: Leaving...]
rabidpraxis has quit [Remote host closed the connection]
lggr has joined #ruby
rabidpraxis has joined #ruby
lolmaus has joined #ruby
cezar has joined #ruby
jgrevich has quit [Quit: jgrevich]
cezar has quit [Client Quit]
maletor has joined #ruby
rabidpraxis has quit [Ping timeout: 244 seconds]
mahmoudimus has joined #ruby
justinmc_ has quit [Remote host closed the connection]
yasushi has joined #ruby
justinmcp has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
Elhu has joined #ruby
adkron has joined #ruby
adkron_ has quit [Ping timeout: 256 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
evangelion has joined #ruby
lggr has joined #ruby
<evangelion> hello
maesbn_ has joined #ruby
<evangelion> why does the exec command break a while( true ) ... end loop in ruby 1.9?
Eldariof18-ru has joined #ruby
<robustus> because exec replaces the current (ruby) process with another one
<robustus> use system() instead
<evangelion> oh
<evangelion> ok
<evangelion> thank you
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
thillux has joined #ruby
zaargy has left #ruby [#ruby]
maesbn has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 244 seconds]
djdb has joined #ruby
triptec has quit [Quit: triptec]
triptec has joined #ruby
bradhe has joined #ruby
Hamed-R has joined #ruby
lggr has joined #ruby
hoelzro|away is now known as hoelzro
gani has joined #ruby
bartj3 has joined #ruby
LouisGB has joined #ruby
wallerdev has quit [Quit: wallerdev]
bradhe has quit [Ping timeout: 248 seconds]
gani has quit [Client Quit]
lggr has quit [Ping timeout: 256 seconds]
JohnBat26 has joined #ruby
nykac_ has joined #ruby
<nykac_> is it possible to store methods in a hash?
jokar has quit [Read error: Connection reset by peer]
<hoelzro> nykac_: want do you want to do with them?
<nykac_> hoelzro: i want to get the name of a method, then execute, and return it.
matthewrobbins has joined #ruby
lggr has joined #ruby
<hoelzro> nykac_: well, you could use #send to execute a method by name
jokar has joined #ruby
<hoelzro> what do you mean by "return it"?
<nykac_> thanks
Iszak has joined #ruby
<nykac_> hoelzro: capture the value it returns
<hoelzro> oh, ok
<hoelzro> then result = obj.send message, *args
<hoelzro> that'll do it
<nykac_> thank you. that's what i've been wanting to do.
<hoelzro> happy to help =)
hbpoison has quit [Ping timeout: 252 seconds]
yasushi_ has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
yasushi has quit [Ping timeout: 244 seconds]
justinmcp has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 246 seconds]
Hamed-R has quit [Ping timeout: 264 seconds]
cjk101010 has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
BombStrike has joined #ruby
haxrbyte has joined #ruby
Morkel has joined #ruby
tar_ has joined #ruby
noxoc has joined #ruby
bobbbo has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
cjk101010 has joined #ruby
schickung has joined #ruby
hasse has joined #ruby
lggr has joined #ruby
<hasse> I try to give my users the option to add valid hosts using the asterix (*) like this "*.foobar.com". Can you find any pitfalls in my current solution? http://pastie.org/private/dkjqrfsxxudbxalushfrq
und3f has joined #ruby
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
dhruvasagar has joined #ruby
jarred has quit [Quit: jarred]
<hoelzro> hasse: keep in mind a user could type other regex characters in that string
<hoelzro> so you should probably escape those first
<hasse> hoelzro: isn't that what I'm doing in the parse_to_regex method. First i escape the whole string and then replace the \*
<hoelzro> ah, sure enough
F1skr has joined #ruby
<hoelzro> I missed that; my bad =)
etehtsea has joined #ruby
etehtsea is now known as Guest12727
adkron_ has joined #ruby
banisterfiend has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
neersighted has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 248 seconds]
adkron has quit [Ping timeout: 246 seconds]
tblamer has quit [Quit: Leaving]
hbpoison has joined #ruby
lggr has joined #ruby
bodik has joined #ruby
adkron_ has quit [Ping timeout: 244 seconds]
mneorr_ has joined #ruby
<canton7> hoelzro, beware of the fact that ^ and $ match the beginning and end of the line, not the string, respectively
mneorr_ has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
<canton7> that'd led to some security breaches in the past. not sure if it's an issue here
Iszak has quit [Quit: User has gone to sleep.]
neersighted has joined #ruby
adkron has joined #ruby
workmad3 has joined #ruby
mneorr_ has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
mneorr has joined #ruby
Criztian has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 244 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
Iszak has joined #ruby
schickung has quit [Quit: schickung]
mneorr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
adeponte has quit [Ping timeout: 246 seconds]
bradhe has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
lggr has joined #ruby
mneorr has joined #ruby
fixl has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
timmow has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
bbttxu has left #ruby [#ruby]
bradhe has quit [Ping timeout: 248 seconds]
icooba has quit [Quit: Textual IRC Client: www.textualapp.com]
neersighted has quit [Ping timeout: 265 seconds]
mneorr has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
axiak has quit [Ping timeout: 240 seconds]
mneorr has quit [Read error: Connection reset by peer]
lggr has joined #ruby
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Kwpolska has quit [Ping timeout: 255 seconds]
mneorr has quit [Read error: Connection reset by peer]
zz_chrismcg is now known as chrismcg
hasse has quit [Quit: Page closed]
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
lggr has joined #ruby
stoffus has joined #ruby
mneorr has joined #ruby
bobbbo has quit [Quit: bobbbo]
statarb3 has quit [Quit: Leaving]
lkba has quit [Quit: Bye]
Raboo has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
awestroke has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
vlad_starkov has joined #ruby
jonathanwallace has joined #ruby
jgwong has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
schickung has joined #ruby
Hamed-R has quit [Remote host closed the connection]
Virunga has joined #ruby
cjk101010 has quit [Ping timeout: 265 seconds]
cjk101010 has joined #ruby
adeponte has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
JustinCa_ has joined #ruby
adambeynon has joined #ruby
chussenot has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
justsee has quit [Quit: Leaving...]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
rjmt__ has quit [Remote host closed the connection]
arietis has joined #ruby
quazimodo has joined #ruby
rjmt__ has joined #ruby
lggr has joined #ruby
iocor has joined #ruby
Vainoharhainen has joined #ruby
adeponte has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
sent-hil_ has joined #ruby
sent-hil has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
sheerun has joined #ruby
tvw has joined #ruby
neersighted has joined #ruby
lggr has joined #ruby
josh^ has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
chimay has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
futilegames has joined #ruby
adambeynon has quit [Ping timeout: 244 seconds]
adkron has quit [Ping timeout: 245 seconds]
josh^ has joined #ruby
adkron has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 248 seconds]
moshef has joined #ruby
moshef has quit [Client Quit]
matrixise has joined #ruby
glyytchy has quit [Quit: Leaving...]
fyolnish has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
jenrzzz has joined #ruby
lggr has joined #ruby
banisterfiend has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 245 seconds]
Bart-_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Ping timeout: 264 seconds]
frogprince_mac has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
thisirs has joined #ruby
thillux has quit [Remote host closed the connection]
justinmcp has joined #ruby
thillux has joined #ruby
hsbt is now known as hsbt_away
cantonic_ has joined #ruby
amskah has quit [Quit: Leaving]
adambeynon has joined #ruby
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
lggr has quit [Ping timeout: 256 seconds]
Bish_ is now known as Bish
JonnieCache has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
lggr has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
statarb3 has quit [Quit: Leaving]
lkba has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
lggr has joined #ruby
berserkr has joined #ruby
Guest12727 has quit [Ping timeout: 244 seconds]
jonathanwallace has joined #ruby
kermes has joined #ruby
sheerun_ has joined #ruby
rjmt__ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
rjmt__ has joined #ruby
Hamed-R has joined #ruby
sheerun has quit [Ping timeout: 264 seconds]
sheerun_ is now known as sheerun
lggr has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Ping timeout: 246 seconds]
robozahn has joined #ruby
evangelion has quit [Quit: Leaving]
lggr has quit [Ping timeout: 240 seconds]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
nitin9003 has joined #ruby
<nitin9003> Hi I have a query related to streaming files in ruby on rails
Hamed-R has quit [Ping timeout: 264 seconds]
<shevy> #rubyonrails
<shevy> because the wise guys who use it are there and not here ;P
lggr has joined #ruby
<nitin9003> k thnx i think irc directed me to the wrong node
mneorr has joined #ruby
<matti> ;d
Hamed-R has joined #ruby
etehtsea has joined #ruby
<matti> shevy shevy shevy
etehtsea is now known as Guest61005
nitin9003 has quit [Client Quit]
Virunga has quit [Remote host closed the connection]
<workmad3> shevy: some of the wise guys are here too ;)
<workmad3> shevy: and me too :P
adkron_ has joined #ruby
Eplemosen has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
hbpoison has quit [Ping timeout: 246 seconds]
rjmt__ has quit [Remote host closed the connection]
hbpoison has joined #ruby
futilegames has quit [Quit: futilegames]
<shevy> yeah
rakl has joined #ruby
<shevy> but no railsers!
lggr has quit [Ping timeout: 245 seconds]
rjmt__ has joined #ruby
yasushi_ has quit [Ping timeout: 265 seconds]
<shevy> workmad3 can I highlight you in future for railsers who come here for help related to RoR? :)
nitin9003 has joined #ruby
mneorr has quit [Remote host closed the connection]
lggr has joined #ruby
<nitin9003> hi I had one issue related to rubyonrails but the ror channel doesn't allow any anonymous user to post questions ...any suggestions on hw one can post a question on ror channel
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
hsbt_away is now known as hsbt
jonathanwallace has joined #ruby
mneorr has joined #ruby
mneorr has quit [Remote host closed the connection]
hbpoison_ has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 248 seconds]
rjmt__ has quit [Remote host closed the connection]
arkiver has joined #ruby
matrixise has quit [Ping timeout: 256 seconds]
Forevernade has quit [Read error: Connection reset by peer]
Forevernade has joined #ruby
rjmt__ has joined #ruby
matrixise has joined #ruby
lggr has joined #ruby
hsbt has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby
hbpoison has joined #ruby
<shevy> heeh
hsbt has joined #ruby
<shevy> you could try to ask here, like 5% of the guys on #ruby know RoR
<shevy> I dont know RoR so I can not help
<shevy> <workmad3> shevy: some of the wise guys are here too ;)
<shevy> <workmad3> shevy: and me too :P
<shevy> ^^^ ask workmad3 :D
xpen has quit [Remote host closed the connection]
futilegames has quit [Client Quit]
hbpoison_ has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 240 seconds]
<shevy> hey
<shevy> what is the advantage of openstruct?
Eplemosen has quit [Quit: NOPE]
<bnagy> it's apparently pretty
<bnagy> I have used it like once ever
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
lggr has joined #ruby
AndrzejK1zywda is now known as AndrzejKrzywda
qos has quit [Quit: Linkinus - http://linkinus.com]
rjmt__ has quit [Ping timeout: 256 seconds]
mklappstuhl has quit [Ping timeout: 264 seconds]
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
freeayu has quit [Ping timeout: 244 seconds]
fyolnish has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<shevy> hmmmm
user123 has joined #ruby
user123 is now known as akem-eikko
Targen has joined #ruby
<nitin9003> is it possible to send a file to the third party server without creatiing a tempfile in the rails application...
bobbbo has joined #ruby
adeponte has joined #ruby
sepp2k has joined #ruby
<nitin9003> I meas I want to stream a file uploaded by a client directly to the third party server without creating a temporary location for that file in the rails application
Guedes0 has quit [Quit: Saindo]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
theRoUS_ has joined #ruby
robozahn has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 265 seconds]
robozahn has joined #ruby
schickung_ has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
Mon_Ouie has joined #ruby
rjmt__ has joined #ruby
rcs has quit [Ping timeout: 264 seconds]
bartj3 has quit []
johnduhart2 has quit [Read error: Connection reset by peer]
johnduhart has joined #ruby
schickung has quit [Ping timeout: 264 seconds]
kapowaz has quit [Ping timeout: 264 seconds]
ctevie has quit [Ping timeout: 264 seconds]
kaichanvong has quit [Ping timeout: 264 seconds]
goraxe has quit [Ping timeout: 264 seconds]
schickung_ is now known as schickung
lggr has joined #ruby
hsbt is now known as hsbt_away
kapowaz has joined #ruby
hsbt_away is now known as hsbt
goraxe has joined #ruby
JustinCampbell has joined #ruby
rcs has joined #ruby
mneorr has joined #ruby
wpaulson has joined #ruby
JustinCa_ has quit [Read error: Connection reset by peer]
heisenmink has joined #ruby
wpaulson has quit [Client Quit]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
awestroke has quit [Ping timeout: 256 seconds]
mneorr has quit [Remote host closed the connection]
JustinCampbell has quit [Client Quit]
bobbbo has quit [Quit: bobbbo]
JustinCampbell has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
matrixise has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
Beoran_ has joined #ruby
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
und3f has quit [Quit: Leaving.]
Hamed-R has quit [Quit: Leaving]
und3f has joined #ruby
matrixise has joined #ruby
Beoran__ has quit [Ping timeout: 264 seconds]
luckyruby has joined #ruby
nitin9003 has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Averna has quit [Quit: Leaving.]
<shevy> hsbt what are you doing
lggr has quit [Ping timeout: 248 seconds]
mohits has quit [Ping timeout: 264 seconds]
arkiver has quit [Ping timeout: 264 seconds]
yalue has joined #ruby
samflores has joined #ruby
iamjarvo has joined #ruby
lggr has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
elaptics`away is now known as elaptics
adkron_ has quit [Ping timeout: 264 seconds]
yshh has quit [Remote host closed the connection]
emsilva has quit [Ping timeout: 246 seconds]
d3vic3 has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
alienaut has joined #ruby
nari has joined #ruby
d3vic3 has quit [Client Quit]
adkron has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
zeromodulus has quit [Ping timeout: 264 seconds]
d3vic3 has joined #ruby
Targen has quit [Ping timeout: 244 seconds]
d3vic3 has quit [Client Quit]
rjmt__ has quit [Read error: Connection reset by peer]
zeromodulus has joined #ruby
tgraham has joined #ruby
vectorshelve has quit [Quit: Page closed]
hbpoison has joined #ruby
lggr has joined #ruby
hasse has joined #ruby
ltsstar has joined #ruby
<hasse> what is good term for a method/program/host that responds to everything? (takes it all)
<DefV> a slut
<Sp4rKy> or a catchall ?
josh^ has quit [Remote host closed the connection]
tgraham has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 245 seconds]
<hasse> thanks
bartj3 has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Hamed-R has joined #ruby
bawer has joined #ruby
bawerd has joined #ruby
bawerd has left #ruby [#ruby]
bawer has left #ruby [#ruby]
verto|off is now known as verto
geekbri has joined #ruby
<shevy> DefV lol
<JonnieCache> hasse: dont call it a slut. bad words in your code always come back to you
hbpoison has quit [Ping timeout: 240 seconds]
<shevy> the problem with bad words is
<shevy> they are not really helpful for engineering purposes
<DefV> true
<DefV> I once rolled into code that had a RedisHelper class and a RedisBitch class
<shevy> hmm
<DefV> the engineer had a hard time explaining that one
hbpoison has joined #ruby
lggr has joined #ruby
<DefV> but they migrated from badly-coded RedisHelper to mediocre-coded RedisBitch
<shevy> I could make a guess what RedisHelper would be about... but RedisBitch ... I would not have the slightest idea what this class aims to achieve
<DefV> so RedisBitch was RedisHelperV2
<shevy> hehe
<DefV> but they couldn't be bothered rewriting the whole class so they didn't
<DefV> *sigh*
<JonnieCache> it also makes you look like a child in front of your collegues. i wouldnt give important work to someone who used swearwords in the place of foo and bar for example
<JonnieCache> if you cant work out why that might be a bad idea, you probably suck at programming
tgraham has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
chimay has quit [Ping timeout: 264 seconds]
manizzle has quit [Ping timeout: 252 seconds]
deadghost has quit [Ping timeout: 256 seconds]
tgraham has quit [Client Quit]
ewag has joined #ruby
sheerun has quit [Quit: sheerun]
freeayu has joined #ruby
mark_locklear has joined #ruby
tar_ has quit [Quit: tar_]
lggr has quit [Ping timeout: 256 seconds]
adkron has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
fermion has joined #ruby
adeponte has quit [Remote host closed the connection]
bobbbo has joined #ruby
xyzodiac has joined #ruby
answer_42 has joined #ruby
bradhe has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
lkba has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 248 seconds]
jeffreybaird has joined #ruby
lggr has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
sheerun has joined #ruby
akem-eikko has quit [Ping timeout: 244 seconds]
triptec has quit [Ping timeout: 264 seconds]
tar_ has joined #ruby
margle has joined #ruby
vderyagin has quit [Remote host closed the connection]
<margle> I'm looking for a good ruby book, any recommendations? I want to get into the nitty grity of the language.
awestroke has joined #ruby
<m3pow> flanagan & matsumoto - the ruby programming language is what i use
triptec has joined #ruby
<hoelzro> The Ruby Programming Language is a great book
mneorr has joined #ruby
<hoelzro> it tells you all the details
<hoelzro> I *highly* recommend it
<JonnieCache> +1
maesbn_ has quit []
maesbn has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
heisenmink has quit [Ping timeout: 248 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
v0n has joined #ruby
pauC has quit [Ping timeout: 265 seconds]
hasse has quit [Ping timeout: 245 seconds]
pauC has joined #ruby
mneorr has quit [Remote host closed the connection]
rakl has quit [Quit: gone]
iamjarvo has quit [Ping timeout: 246 seconds]
tgraham has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
tar_ has quit [Quit: tar_]
mohits has joined #ruby
AlbireoX has joined #ruby
lggr has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
jrajav has joined #ruby
theRoUS_ has quit [Ping timeout: 252 seconds]
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
tgraham has quit [Ping timeout: 246 seconds]
answer_42 has joined #ruby
chimay has joined #ruby
berserkr has quit [Quit: Leaving.]
schickung has quit [Quit: schickung]
Hamed-R has quit [Ping timeout: 245 seconds]
cogman has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
d1zzYLuLz has quit [Quit: Page closed]
wobr has joined #ruby
anandhegde has joined #ruby
monkegjinni has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
icooba has joined #ruby
Xeago has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
awestroke has quit [Remote host closed the connection]
yshh has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
krawchyk has joined #ruby
kannix has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
schickung has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
cogman has quit [Quit: Page closed]
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-developers/moderators) Red Eclipse servers: http://altred.tk/lmaster]
freeayu has joined #ruby
schickung has quit [Client Quit]
BMF has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
vlad_starkov has joined #ruby
pskosinski has joined #ruby
schickung has joined #ruby
pauC has quit [Quit: Ex-Chat]
Kwpolska has joined #ruby
theRoUS_ has joined #ruby
Kwpolska has left #ruby [#ruby]
<shevy> margle, the pickaxe
<margle> hoelzro: hoelzro o`reilly?
<margle> m3pow, shevy, hoelzro: thanks
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
ephemerian has joined #ruby
uris has joined #ruby
schickung has quit [Client Quit]
<shevy> margle, keep in mind though that the only real way to learn ruby is by writing ruby code
nwest has joined #ruby
lggr has joined #ruby
shiki has quit [Remote host closed the connection]
<shevy> margle, also read this old interview with matz if you have not done so already, it is great http://www.artima.com/intv/rubyP.html
iocor has joined #ruby
<margle> shevy: thanks, I'm typing a bit daily - I just feel like I don't want to type it in a python or coffeescript way.
<shevy> hehe
<shevy> well every language has bad parts, ruby too
<shevy> @@class_variables
<margle> I can sort of feel the language buzzing below me… and I don't want to ignore that.
Bart-_ has quit [Quit: Leaving...]
Spooner has joined #ruby
<margle> shevy: are the best avoided?
sent-hil_ has quit [Remote host closed the connection]
<shevy> I'd also like semi-namespaced global variables... a bit like CONSTANTS... but constants are supposed to not be changed (yet unfortunately they can be changed, I think that was an inconsistency, the name constant means that it should be a constant)
Elhu has joined #ruby
<margle> s/the/they
stoffus has quit [Quit: The computer fell asleep]
<shevy> dunno, you must decide on your own
<shevy> I myself avoid them
<shevy> I think the only use case with @@class_vars I have seen is by using counters
<shevy> "keep track of how often this class was instantiated"
<margle> that's what I saw in this article as well.
<margle> er, another article regarding them
d3vic3 has joined #ruby
<margle> this article you linked is great btw.
paolooo has joined #ruby
tgraham has joined #ruby
<shevy> the philosophy was what made me pick ruby back then
<shevy> respectively how matz explained it :)
jbw has quit [Ping timeout: 246 seconds]
ltsstar has quit [Quit: ltsstar]
<shevy> Yukihiro Matsumoto: "You want to enjoy life, don't you? If you get your job done quickly and your job is fun, that's good isn't it? That's the purpose of life, partly. Your life is better."
havenn has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
d3vic3 has quit [Client Quit]
<Spooner> shevy: There are innumerable use cases for class variables beyond being counters, but they are "surprising", so we use class instance variables nowadays, which are more predictable.
carloslopes has joined #ruby
bobbbo_ has joined #ruby
bradhe has joined #ruby
jbw has joined #ruby
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
robozahn has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
IrishGringo has joined #ruby
bobbbo has quit [Ping timeout: 248 seconds]
bobbbo_ is now known as bobbbo
Appineer has joined #ruby
jrist-afk is now known as jrist
bradhe has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
GoGoGarrett has joined #ruby
mklappstuhl has joined #ruby
<margle> shevy: wonderful.
robbyoconnor has joined #ruby
robbyoconnor has quit [Client Quit]
dmiller_ has quit [Ping timeout: 268 seconds]
thisirs has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lggr has quit [Ping timeout: 256 seconds]
thisirs has joined #ruby
ZubKonst_ has joined #ruby
lggr has joined #ruby
Xeago has quit [Remote host closed the connection]
eddie_ has quit [Quit: Ex-Chat]
Xeago has joined #ruby
ZubKonst has quit [Ping timeout: 264 seconds]
v0n has quit [Ping timeout: 244 seconds]
futilegames has joined #ruby
tk__ has joined #ruby
peneconleche has joined #ruby
notVert has joined #ruby
frogprince_mac has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
xjiujiu_ has joined #ruby
mmitchell has joined #ruby
Hamed-R has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
tar_ has joined #ruby
gfontenot has joined #ruby
seme has joined #ruby
seme is now known as Guest48370
mengu has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Ping timeout: 256 seconds]
fbernier_ is now known as fbernier
lggr has joined #ruby
mucker has joined #ruby
tar_ has quit [Quit: farewell]
Hamed-R has joined #ruby
Hamed-R has quit [Changing host]
Hamed-R has joined #ruby
Guest64548 has joined #ruby
iamjarvo has joined #ruby
justinmcp has quit [Remote host closed the connection]
hbpoison has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
lggr has quit [Ping timeout: 240 seconds]
joofsh has joined #ruby
nateberkopec has joined #ruby
rakl has joined #ruby
Virunga has joined #ruby
jonathanwallace has joined #ruby
Hamed-R has quit [Quit: Leaving]
hbpoison has quit [Ping timeout: 240 seconds]
awarner has joined #ruby
mmitchel_ has joined #ruby
TheNumb has joined #ruby
cody-- has joined #ruby
lggr has joined #ruby
axl_ has joined #ruby
peneconleche is now known as peneconleche|awa
mmitchell has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
quazimodo has joined #ruby
stopbit has joined #ruby
<m3pow> is xeago around, i need some more tasks
<m3pow> he gave me programming appetite
<Virunga> More tasks?
<A124> m3pow: I did not? ^^
<Virunga> Does he give you homework?
<m3pow> not like a homework, but he gave me a program to solve
<Virunga> That is cool.
<m3pow> i just want to learn, that's all
<Virunga> And the he corrects it?
<m3pow> sadly there are no ruby professors here
<Virunga> *then
<m3pow> yes he does, and gave me some good tips
<A124> m3pow: And what would you like?
rabidpraxis has joined #ruby
<Virunga> Very nice.
<m3pow> my goal is to create a website in the future so i would like something that might point to that direction
lggr has quit [Ping timeout: 252 seconds]
robozahn has joined #ruby
<m3pow> to be honest i started some video tutorials, but when Xeago gave me that small program to solve, i was stumped, which means i ain't going the good way
mercwithamouth has joined #ruby
jrajav has quit []
<A124> m3pow: Can you be specific? I'm interested in what it might be.
lggr has joined #ruby
<m3pow> what do you mean, what the website is going to be about ?
ph^ has quit [Ping timeout: 245 seconds]
snorkdude has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<Virunga> m3pow: what material are you using to learn?
<A124> m3pow: The problem he gave you to solve.
<m3pow> video tutorials, books...but it's hard
<m3pow> ahh
<m3pow> FizzBuzz program
jonathanwallace has joined #ruby
lolmaus has quit []
futilegames has quit [Quit: futilegames]
bradhe has joined #ruby
guest__ has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<Virunga> it's hard? Ruby is one of the most simple language ever.
xjiujiu_ has quit [Read error: Connection reset by peer]
<Virunga> And fun.
<m3pow> i mean hard by yourself
<GeekOnCoffee> FizzBuzz was our initial screening in the job interview process
<m3pow> no way
mvangala has quit [Remote host closed the connection]
<m3pow> X also told me that is usually an interview task
<Virunga> GeekOnCoffee: do you let make programming exercises in the job interview?
_7894 has joined #ruby
<chrismcg> m3pow: have you seen the ruby koans?
mvangala has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
iori has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
<GeekOnCoffee> Virunga: we did fizz buzz (only required pseudocode) and gave a basic concept (jukebox or similar) and asked them to "model" it out
<A124> m3pow: This was the one I was talking about, chrismcg: ++
<GeekOnCoffee> Virunga and then a take-home project if they didn't have a reasonable portfolio of code
lggr has joined #ruby
<Virunga> GeekOnCoffee: i see.
und3f has quit [Quit: Leaving.]
<GeekOnCoffee> Virunga: this was at a place hiring for on-site in an area without much quality local talent
v0n has joined #ruby
adelcampo has quit [Quit: Leaving...]
pu22l3r has joined #ruby
philcrissman has joined #ruby
mvangala has quit [Remote host closed the connection]
adambeynon has joined #ruby
foysavas has joined #ruby
Neomex has joined #ruby
anandhegd has joined #ruby
<m3pow> thanks chrismcg
anandhegd has quit [Client Quit]
<Virunga> GeekOnCoffee: is a good requirement worked in many different team instead of only one?
apok has joined #ruby
joshman_ has joined #ruby
joeycarm_ has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
<Virunga> I mean if one worked in diffent enterprises instaed of one.
<GeekOnCoffee> Virunga: we hired somebody who had worked on a number of teams that wasn't particularly productive
anandhegde has quit [Ping timeout: 265 seconds]
<GeekOnCoffee> so I wouldn't use that as the only criteria
<Virunga> Yeah, sure.
lggr has quit [Ping timeout: 264 seconds]
peneconleche|awa has quit [Read error: Connection reset by peer]
<m3pow> GeekOnCofffee you have a development company ?
<GeekOnCoffee> m3pow: no
<GeekOnCoffee> used to be the senior dev on a web team at a manufacturing company
lggr has joined #ruby
jjbohn has joined #ruby
nari has quit [Ping timeout: 256 seconds]
<Spaceghostc2c> GeekOnCoffee: Are you doing exactly?
<m3pow> very nice, congratulations GeekOnCoffee
mohits has quit [Read error: Connection reset by peer]
<GeekOnCoffee> but now I work for http://spreecommerce.com/
mohits has joined #ruby
hukl has joined #ruby
pskosinski has quit [Remote host closed the connection]
Soul_Est has joined #ruby
cakehero has joined #ruby
bbttxu has joined #ruby
manuelitox_ has joined #ruby
pskosinski has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
v0n has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 244 seconds]
manuelitox_ has quit [Read error: No route to host]
stopbit has joined #ruby
mohits has quit [Ping timeout: 248 seconds]
tagrudev has quit [Quit: Kepler-22b here I come]
<Spooner> GeekOnCoffee : Good old fizzbuzz. Problem is that it is _really_ good test for people who don't know it, but less so for anyone who knows it.
mklappstuhl has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
xyzodiac has joined #ruby
theRoUS_ has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
<GeekOnCoffee> Spooner: we tended to make them explain it too
<GeekOnCoffee> so simply writing down memorized code wouldn't be enough
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
beneggett has joined #ruby
<Spooner> Aye.
cody-- has quit [Quit: goodbye]
<GeekOnCoffee> and it filtered out a remarkable number of people
<Spooner> I imagine it would.
schickung has joined #ruby
gfontenot has quit [Ping timeout: 265 seconds]
obryan has joined #ruby
<shevy> GeekOnCoffee, are you addicted to coffee?
<GeekOnCoffee> shevy: yes
frogprince_mac has quit [Quit: Leaving...]
fantazo has joined #ruby
havenn has joined #ruby
gfontenot has joined #ruby
robertotauille has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
Bosox20051 has quit [Quit: Leaving]
mmitchell has joined #ruby
zwevans has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tethra has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
bbttxu has quit [Quit: bbttxu]
nanderoo has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
<Spooner> GeekOnCoffee : Did anyone develop fizzbuzz by first writing the required tests? If they did, I hope you hired them before they bothered to actually write the code itself :D
<GeekOnCoffee> Spooner: ha
<GeekOnCoffee> at that job, if somebody had started by writing the required tests, I would have told them to turn and run ;)
sailias has quit [Quit: Leaving.]
<Spooner> Oh dear!
failshell has joined #ruby
<failshell> hello. let's say i have a string like 'root@localhost'. i would split it to get user,host in 2 variables. what's the simplest way of doing that?
hukl has quit [Quit: Leaving...]
<Spooner> failshell user, host = str.split '@'
xyzodiac has quit [Quit: Computer has gone to sleep.]
<failshell> thanks Spooner
<failshell> so simple
chrishunt has joined #ruby
<failshell> i love ruby
theRoUS_ has joined #ruby
lggr has joined #ruby
CannedCorn has joined #ruby
<JonnieCache> when i read that fizzbuzz article a few years ago it freaked me out, i was sure i couldnt be doing it right
ph^ has joined #ruby
<Xeago> btw, there are similar tests
<JonnieCache> "its just like 3 conditionals. i must not have understood the question..."
<Xeago> when I'm doing interviews now, I just ask if they know it
<m3pow> and here is Xeago
lucianosousa has joined #ruby
internet_user has joined #ruby
<Xeago> pff, mail me at attention@xeago.nl
<Xeago> been connected since like 15:00+0200
<Spooner> Here's a freebee (and no, I wouldn't write it that way in an interview): (1..100).each{|i|s="#{'fizz'if i%3==0}#{'buzz'if i%5==0}";puts s==''?i:s}
xyzodiac has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
<JonnieCache> that is basically it though. the interview version would be that with a different conditional form, and some whitespace
<matti> Oh dear.
<matti> FizzBuzz again?
<m3pow> hello matti
<Xeago> shh, let's talk about other coding tests
hbpoison has joined #ruby
<m3pow> Xeago , NL ?
rburton- has joined #ruby
lkba has joined #ruby
<Xeago> m3pow: yes, but I prefer english
<JonnieCache> it implies that there is a percentage of the population who will *never* be able to code
<hoelzro> NL! \o/
<m3pow> i don't speak dutch, but i do have a lot of Dutch friends
* hoelzro speaks almost no Dutch
<m3pow> i just know bedankt
<m3pow> :p
<m3pow> and that's exhausted my dutch
<Xeago> hoelzro: weren't you dutch tho?
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<hoelzro> I'm not; I just live here =)
asobrasil has left #ruby [#ruby]
havenn has quit [Remote host closed the connection]
<Xeago> lol
<m3pow> hahaha
<m3pow> that's a goodie
cascalheira has joined #ruby
fcoury has quit [Remote host closed the connection]
JC_SoCal has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
dnyy has quit [Remote host closed the connection]
ctevie has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
sr___ has quit [Remote host closed the connection]
davidboy has quit [Read error: Connection reset by peer]
notbrent has quit [Remote host closed the connection]
SeanTAllen has quit [Remote host closed the connection]
jhowarth has quit [Remote host closed the connection]
randym has quit [Write error: Broken pipe]
patricksroberts has quit [Read error: Connection reset by peer]
dkannan has quit [Read error: Connection reset by peer]
moeSeth has quit [Read error: Connection reset by peer]
NimeshNeema has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
lectrick has quit [Write error: Connection reset by peer]
CannedCorn has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 252 seconds]
<Xeago> for example, let them write String#palindrome?
<Xeago> as alternative to fizzbuzz
<Xeago> or count the bits set in a number
hbpoison has quit [Ping timeout: 256 seconds]
Know1edge has joined #ruby
Know1edge has quit [Changing host]
Know1edge has joined #ruby
<hoelzro> I like "how can you use bit twiddling to tell if a number's a power of two"?
hukl has joined #ruby
* m3pow hides from the masters
<Xeago> hoelzro: only works for some numbering schemes
<Spooner> Shout "Are you a power of two? Are you?"
lggr has joined #ruby
<hoelzro> s/number/integer/
Axsuul has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
jgrevich has joined #ruby
Morkel has quit [Quit: Morkel]
<shevy> m3pow hey I understand bedankt but I speak only german
cody-- has joined #ruby
<m3pow> you're from germany ?
<Spooner> hoelzro : s/power of two/positive integer power of two/
<hoelzro> Spooner: oh, thanks
rcsheets has joined #ruby
<hoelzro> that's what I meant ;)
<hoelzro> s/integer/unsigned integer/
<JonnieCache> hoelzro: bit twiddling questions only really test memory though. if you need to know if someone has experience of that kind of programming, just ask them
v0n has joined #ruby
<hoelzro> JonnieCache: true, I just like that question =)
<JonnieCache> asking them to swap two variables, and watching to see if they instinctively twiddle bits
<JonnieCache> that would be better
<Spooner> I find a lot of questions like that fail because the "clever" person writing something to test the other person's ability to follow a spec can't write a spec.
<hoelzro> well, some people could come up with the answer on the spot
<Xeago> JonnieCache: without a third variable :3
samflores is now known as samflores|away
<JonnieCache> Xeago: nah just let them do it however, and hire the person who doesnt bother with the third var
kapowaz has joined #ruby
<Spooner> hoelzro : Like this answer? ("%b" % num).chars.one? {|c| c = "1" }
<hoelzro> heh
<Spooner> *c == 1
wobr has quit [Quit: Leaving.]
<hoelzro> it's certainly clever =)
<Spooner> *c == "1" (I give up)
<JonnieCache> in that situation i would have to say "i know you can do this with bit twiddling but i cant remember that shit. i can has googles?"
wobr has joined #ruby
<hoelzro> that would be an acceptable answer to me =)
phantasm66 has joined #ruby
<hoelzro> "you know where to look if you don't know. that's a good skill to have"
dAmIAnA has joined #ruby
<Xeago> JonnieCache: duckduckgo
mengu has quit [Read error: Connection reset by peer]
<matti> Hi m3pow
<JonnieCache> i need to start using that. i hear its fast now
<dAmIAnA> jola
<dAmIAnA> hola
samflores|away has quit [Quit: Leaving...]
<Xeago> I hear it has better results
<Xeago> and it has an api
jrist is now known as jrist-mtg
<Xeago> I search from commandline :3
dAmIAnA has quit [Client Quit]
<cody--> I'm working on a gem and would like to add routes that can be used in a rails app, anyone have any advice or guides or doing this?
mmitchell has quit [Remote host closed the connection]
davidboy has joined #ruby
futilegames has joined #ruby
<Spooner> cody-- : #ror #rails #rubyonrails
<JonnieCache> cody--: look up rails engines
lggr has quit [Ping timeout: 256 seconds]
<cody--> thanks
bradhe has joined #ruby
sailias has joined #ruby
[diecast] has joined #ruby
iocor has joined #ruby
<Spooner> All this talk of interviews reminds me I should actually get off my arse and try to make some money from Ruby, because #ruby doesn't pay well :D
wobr has quit [Ping timeout: 264 seconds]
* JonnieCache starts his new job on monday :)
<Xeago> I actually get paid 10hr/week for community service
<Xeago> tho, spend about 20hr/week here
<JonnieCache> Xeago: here community service is something you get for a minor crime
lggr has joined #ruby
<JonnieCache> im guessing thats not why youre doing it though, as youre getting paid
<Xeago> then how the hell do you call it
jonathanwallace has quit [Remote host closed the connection]
foysavas has quit [Ping timeout: 245 seconds]
<JonnieCache> i know what you mean, is it mandatory?
octarine has joined #ruby
<Xeago> I have to report it :P
<JonnieCache> here it used to be called national service but we dont do it any more
<Xeago> atm it's just help on irc, fix issue's on github and stuff
jonathanwallace has joined #ruby
<JonnieCache> oh youre talking about something else
<Xeago> nope, I'm doing that
<Xeago> lol
<JonnieCache> what so your government pays you to help out hackers?
<Xeago> no my employer
futilegames has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 252 seconds]
patricksroberts has joined #ruby
sr___ has joined #ruby
<JonnieCache> i thought you were referring to something like the german Wehrpflicht
<JonnieCache> or the old UK national service
<Xeago> nonono lol
<Xeago> I just get paid to do stuff within programming community's
sr___ has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
patricksroberts has quit [Remote host closed the connection]
davidboy has quit [Read error: Connection reset by peer]
octarine has quit [Remote host closed the connection]
kapowaz has quit [Read error: Connection reset by peer]
<Spooner> Nice employer.
jhowarth has joined #ruby
Neomex has quit [Quit: Neomex]
<Xeago> only 10hours, would prefer fulltime
<Xeago> I actually don't want proprietary code hanging on my cv
sent-hil has joined #ruby
anildigital_work has joined #ruby
davidboy has joined #ruby
sent-hil has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 246 seconds]
<shevy> :)
asobrasil has joined #ruby
<shevy> WE FIGHT FOR FREEDOM
<shevy> AND DONUTS
<matti> I don't.
<shevy> DIE MATTI DIE!!!
<matti> ;<
<shevy> see that is why movements don't work
* shevy points at matti.
<shevy> him!
* Xeago codes for food and sponsored vacancies to visit talks
* matti codes for fun and profit
Bosma has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<Xeago> s/vacancies/trips
<JonnieCache> THE SOURCECODE LIBERATION FRONT! THOSE BASTARDS!
<matti> Xeago: Conferences are boring
<Xeago> what's the correct word for that that starts with vac?
<matti> JonnieCache: We have this already.
<Xeago> berlin buzzwords12 was fun
<matti> JonnieCache: FSF with Stallman
<JonnieCache> exactly
<Xeago> especially the bars afterwards :D
octarine has joined #ruby
fcoury has joined #ruby
<matti> Xeago: I am anti-social ;/
<Xeago> well, so am I
<JonnieCache> the ccc events are good. dunno if theyre stricly conferences though
hukl has quit [Quit: Leaving...]
<rburton-> matti so you're on facebook then ;)
blazes816 has joined #ruby
v0n has quit [Ping timeout: 268 seconds]
<matti> rburton-: I am not.
<Xeago> I just take a laptop with me, start coding with a portable beamer, and people start talking
<Xeago> :)
<rburton-> Fuck that's beyond anti-social
<matti> rburton-: LOL
<matti> rburton-: I think that social networking is for 15 year old girls.
lectrick has joined #ruby
ananthakumaran has joined #ruby
<rburton-> Anti-social people use facebook to be social. When a person denies Facebook then... that's like wow!
lggr has joined #ruby
notbrent has joined #ruby
<matti> rburton-: I strain from the retarded-nation ;p
<Xeago> about half of the time, hackathons happen
<rburton-> matti You're wise beyond your years. So you figured out my motivation for being on facebook!
cody-- has quit [Quit: goodbye]
* rburton- wonders what to do with matti now
<Spooner> matti having 1000 friends on FB is for 15 year old girls :D
mmitchell has joined #ruby
<matti> Spooner: That too ;]
<m3pow> hahaha
<rburton-> MySpace is for retards and retarded investors
<deryl> matti: but what about people like my family that aren't tech savvy and only know how to use Facebook? I have to contact them somehow and calling is prohibitively expensive.
<matti> rburton-: Dunno, you cannot unfriend me ;p
<rburton-> I can't even poke you :(
<matti> Hahaha
tgraham has quit [Quit: Leaving...]
<matti> rburton-: Or send me annoying Farmville invites.
<rburton-> Damn you!
<matti> ;D
<rburton-> I need poker chips!
im0b has joined #ruby
bobbbo has quit [Quit: bobbbo]
<matti> deryl: Training, man. Teach them something else.
mmitchell has quit [Remote host closed the connection]
<matti> deryl: Not being tech savvy does not mean nor implies stupid, so.
<matti> ;]
margle has quit [Quit: Computer has gone to sleep.]
<rburton-> I plan to turn Facebook into a P2P network ;)
jgrevich_ has joined #ruby
<deryl> no, but then again, being on facebook doesn't imply that either ;)
<matti> rburton-: For what? Cute cat pictures?
justsee has quit [Quit: Linkinus - http://linkinus.com]
<rburton-> Anything pictures, music, videos, progams etc.
<matti> FebTorrent
<matti> ;d
<rburton-> haha
<rburton-> Actually SendFil.es ;)
<deryl> Cute dog eat cat pics backed by Michael Jackson's Thriller audio
<matti> deryl: LOL
talsamon has left #ruby ["Verlassend"]
<matti> deryl: No.
<deryl> hehe
<matti> deryl: Be modern man.
CodeFriar has quit [Quit: Linkinus - http://linkinus.com]
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
<rburton-> Gangang style
<matti> deryl: Justin Biber vocal
Neil_ has joined #ruby
<Xeago> wop, wop wopwopwop
<deryl> OK, Dog Eat Child pics backed by any song by Miley Sirus :)
<rburton-> gangnam style sorry
Neil_ has left #ruby [#ruby]
<Xeago> this discussion has derailed
<matti> deryl: I do hear your point about FB.
<matti> deryl: I was refering to all the super-attention-seeking 15 years old girls.
<matti> deryl: With 1000 friends.
<JonnieCache> what are you doing with those people on your list though?
<deryl> that would be 2 of my nieces :-)
<matti> deryl: I actually said this more than once -- Facebook ruined what word "friend" used to mean.
rcsheets has joined #ruby
<matti> deryl: Nowadys everybody is your friend.
<deryl> though she only has 280+ friends :)
<matti> deryl: Like, shevy wanted to kill me. But he is my FRIEND!
monobit_ has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
<matti> JonnieCache: Dunno, send them cute cat pictures?
<matti> ;]
<deryl> the ability to just click on someone and add them as friend rather than having classes of people (friend acquaintance enemy ignored) ruined facebook and the word friend :)
* matti goes and befriends deryl
zommi has quit [Quit: Leaving.]
* matti then sents "its compliated" between him and deryl
<matti> ;p
<Xeago> anyone: elasticsearch: what is it called if in a cluster of 3 nodes, 1 goes down, and both other nodes want to be master
<matti> There.
<matti> Xeago: Split brain.
<deryl> either they are your friend or they're not. OK, facebook cause yea, we all know that mimics the reality of life and the standings of people! yep yep
<matti> Xeago: You have to have quorum.
<deryl> matti: hahahah
<Spooner> deryl : google+ allows levels of friends, but Facebook is just too engrained for the "norms".
lggr has quit [Ping timeout: 256 seconds]
<matti> Xeago: Otherwise they both want to be elected.
<deryl> Spooner: Google+ is my preferred
philips_ has quit [Excess Flood]
<matti> I cannot have G+
<deryl> with a smattering of gklist :)
<matti> Google claims that my name is a fake name.
<matti> :<
<Spooner> Yeah, but it doesn't matter if 90% of people think fb _is_ social networking.
<matti> And they blocked my profile.
<deryl> matti: err?
<matti> deryl: Seriously.
<Xeago> tekkub had the same issue, it works now tho
<shevy> haha
<shevy> matti is fake! :)
<matti> deryl:
<matti> Your profile is currently suspended
<matti> Until your profile has been unsuspended, you will be unable to use this feature.
<deryl> heh
<matti> deryl:
<matti> Your profile is currently under review to make sure it is in compliance with the Google+ Names Policy and User Content and Conduct Policy. Reviews are typically completed within a few days.
<shevy> that's what you get for not obeying your google overlords man
lggr has joined #ruby
<matti> deryl: "within a few days" -- that was year ago.
<Xeago> lol
<deryl> shevy: damn. Time to sic Howard The Duck on them
<deryl> matti: damn!
<Spooner> I have a made up name, but google seem quite happy with it.
xyzodiac has joined #ruby
<shevy> I always thought your name is Paul Spooner ... :<
<shevy> like Spongebob
<matti> LOL
reuf has joined #ruby
<deryl> don't be pickin' on my spongebob now
<deryl> Ohhhhh, who lives in a pineapple under the sea?
randym has joined #ruby
<deryl> now, how many of you now have that song stuck on repeat in your brain? muahahaha
CodeFriar has joined #ruby
<shevy> I dont know that song
philips_ has joined #ruby
<deryl> shevy: hehe its the spongebob show theme-song
<matti> I refuse to listen.
<Xeago> can we rerail the discussions?
<matti> I will end up damanged.
* JonnieCache prefers spongebob squarewave
<Xeago> or enrail it
<matti> Like when I was hooked on the Totoro song.
<matti> ;/
<matti> Oh noes.
<matti> Now I reminded myself about it...
<deryl> Xeago: how about enrailing the discussions?
* deryl starts shooting out rails questions
aganov has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
<Xeago> lol
<Xeago> no
tk__ has quit [Quit: ばいばい]
<deryl> damn, buzz killer!
<Xeago> golf me a String#palindrome?
<matti> deryl: -> OUT
<deryl> hahaha
<Xeago> Hanmac: you heard me? #codegolf #golf !
carloslopes has quit [Quit: Leaving.]
<Xeago> m3pow: btw, feel free to do this as an exercise
Soul_Est has quit [Quit: WeeChat 0.3.8]
ttt has quit [Remote host closed the connection]
Spooner has quit [Ping timeout: 252 seconds]
Synthead has joined #ruby
<deryl> actually i have an issue i can't figure out, know its related to 1 line in lib/dtf.rb but can't figure out why the tests can't run it to load my models (non-rails but AR backed gem) so all my tests are puking (specifically the fabricators)
<Xeago> dtf?
<Xeago> that's what they say on jersey shore all the time
<deryl> Xeago: project of mine
<deryl> gem search dtf -dr
<rburton-> I can't wait for JRuby 1.7.0 to be released
v0n has joined #ruby
<shevy> ewww
<shevy> there is java in jruby
<matti> shevy: The way around.
moeSeth has joined #ruby
NimeshNeema has joined #ruby
<deryl> i suppose one of these days i'll get to reading the jruby book
lucianosousa has quit [Quit: lucianosousa]
Mon_Ouie has joined #ruby
<matti> Hi Mon_Ouie
maesbn has quit [Remote host closed the connection]
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
<Xeago> Mon_Ouie: how do you get a subtle/user cloak?
CarlB_the_great has joined #ruby
<nykac_> Xeago: by donation
<dimka> How can I convert Set to Array?
<hoelzro> dimka: #to_a?
friskd has joined #ruby
<Xeago> I wonder why set is not in core
<CarlB_the_great> to_a, should be money
<shevy> matti whether the parasite is in you, or you are in the parasite... where is the difference :>
bawer has joined #ruby
d3vic3 has joined #ruby
rakl has quit [Quit: sleeping]
<matti> shevy: ... O_o
friskd has quit [Client Quit]
NimeshNeema has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
moeSeth has quit [Remote host closed the connection]
fcoury has quit [Read error: Connection reset by peer]
randym has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
notbrent has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
jhowarth has quit [Read error: Connection reset by peer]
lectrick has quit [Read error: Connection reset by peer]
ctevie has quit [Remote host closed the connection]
<shevy> why does Set.new only want enumerables?
<shevy> ArgumentError: value must be enumerable
<Hanmac> hihi
Forevernade has quit [Read error: Connection reset by peer]
octarine has joined #ruby
<hoelzro> shevy: how else would you build the set?
QKO has joined #ruby
Forevernade has joined #ruby
w400z has joined #ruby
lggr has joined #ruby
<shevy> with a 5!
JJMalina has joined #ruby
<shevy> Set.new(5) to be treated like Set.new([5])
nateberkopec has quit [Read error: Connection reset by peer]
QKO_ has quit [Ping timeout: 264 seconds]
_bart has joined #ruby
d3vic3 has quit [Quit: leaving]
<canton7> shevy, Set[5]
<Hanmac> shevy :D Set.new Array 5
notbrent has joined #ruby
<matti> It should throw: RuntimeError, 'shevy detected' ;d
* matti hides
jprovazn is now known as jprovazn_away
bluOxigen has quit [Ping timeout: 240 seconds]
jrist-mtg is now known as jrist
rcsheets has joined #ruby
joeycarm_ has quit [Remote host closed the connection]
Raduwen has joined #ruby
futilegames has joined #ruby
dnyy has joined #ruby
<Mon_Ouie> 'alut
lggr has quit [Ping timeout: 240 seconds]
phantasm66 has quit [Quit: *poof*]
<Mon_Ouie> Xeago: Because I'm using Subtle (a WM) and asked for it ;)
dmiller has joined #ruby
mmitchell has joined #ruby
philcrissman has quit [Remote host closed the connection]
Neomex has joined #ruby
SeanTAllen has joined #ruby
jonathanwallace has joined #ruby
Neomex has quit [Client Quit]
sr___ has joined #ruby
<hoelzro> Mon_Ouie: that's neat
<hoelzro> (the WM that is)
kapowaz has joined #ruby
randym has joined #ruby
chrishunt has quit [Ping timeout: 240 seconds]
jhowarth has joined #ruby
zigomir has quit [Quit: Leaving]
hukl has joined #ruby
rakl has joined #ruby
rakl has quit [Client Quit]
hbpoison has joined #ruby
senny has quit [Remote host closed the connection]
philcrissman has joined #ruby
lggr has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
tgraham has joined #ruby
haxrbyte has quit [Remote host closed the connection]
JohnHirbour has joined #ruby
futilegames has quit [Quit: futilegames]
<bawer> Hello! How do developers such as yourself go about when working with many routes in an application? How do you organize them? It very soon grows "monolithic" having all the routes in the main module, what are the strategies used when building complex applications?
apok has quit [Quit: apok]
hbpoison has quit [Ping timeout: 240 seconds]
JC_SoCal has joined #ruby
moeSeth has joined #ruby
davidboy has joined #ruby
anildigital_work has joined #ruby
NimeshNeema has joined #ruby
slicslak has joined #ruby
bartj3 has quit []
hoelzro is now known as hoelzro|away
axiak has joined #ruby
ryanlecompte has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
billiam has joined #ruby
tatum_O_o has joined #ruby
<nykac_> how can I make a method of a class static?
Forevernade has quit [Read error: Connection reset by peer]
patricksroberts has joined #ruby
deadghost has joined #ruby
ttt has joined #ruby
<heftig> nykac_: def self.foo
robozahn has quit [Ping timeout: 265 seconds]
<nykac_> thanks heftig
Forevernade has joined #ruby
lggr has joined #ruby
[diecast] has joined #ruby
philcrissman has quit [Ping timeout: 256 seconds]
JohnBat26 has quit [Ping timeout: 256 seconds]
harushimo has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
CannedCorn has joined #ruby
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<harushimo> I'm writing a program. how to get floating points to work in ruby?
c0rn_ has quit []
<harushimo> I'm having a hard time with that
<shevy> harushimo what
<shevy> what is a floating point
<shevy> x = 5.0
flagg0204 has quit [Read error: Operation timed out]
slicslak has quit [Ping timeout: 245 seconds]
<shevy> x.class # => Float
flagg0204 has joined #ruby
tommyvyo_ has quit [Ping timeout: 256 seconds]
<harushimo> rightnow, I can do the integer division
<harushimo> if you divide 15/3 = 5
<harushimo> if you divide 15 // 3 = 5.0
<harushimo> something along those lines
<ij> Hey, I'm compiling ruby, but it is whining about the non-existance of rubygems, what did I do wrong?
im0b has joined #ruby
<harushimo> I just started learning ruby if I'm missing some concept. Let me know
maletor has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
ill_ has joined #ruby
<ill_> hi
<ccooke> harushimo: The thing to remember is that everything in ruby is an object
ill_ is now known as Guest15975
tgraham has quit [Ping timeout: 256 seconds]
deadghost has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 252 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
<harushimo> oh okay
<ccooke> harushimo: when you say "15 / 3", you're actually calling a method named '/' on the object '15'
<Guest15975> is there a way to get the module of a division and the result at the same time ?
<ccooke> harushimo: and 15 is an integer
tommyvyo_ has joined #ruby
<Guest15975> I mean instead of do the division twice
GoHuyGo has joined #ruby
<ccooke> harushimo: to get a floating point answer from a division, one or both of the numbers must already be floating point
mucker has quit [Quit: leaving]
<harushimo> that is different
<harushimo> from what I'm used to
<ccooke> harushimo: so: 15.0 / 3 => 5.0
<harushimo> it is a good thing to know
<ccooke> harushimo: 15.to_f / 3 => 5.0
JohnHirbour has left #ruby [#ruby]
<ccooke> harushimo: 15 / 3.0 => 5.0
<ccooke> etc
<harushimo> I'm a python programmer. I'm trying to pick up ruby too
<harushimo> that is interesting
<shevy> yay
vaclavt has joined #ruby
beneggett has joined #ruby
<Guest15975> ccooke: can you get the module from that division at the same time? or you have to do 15 % 3 again ?
<harushimo> % operator calculates the remainder
<ccooke> Guest15975: There's no builtin that would get it for you that I'm aware of
bradhe has joined #ruby
<harushimo> interesting
<Guest15975> ccooke: thank you :)
<harushimo> ccooke: thank you also
mikepack has joined #ruby
dkannan has joined #ruby
<ccooke> harushimo: The thing to remember is that literal numbers, strings and symbols in your code are still objects.
<ccooke> harushimo: try running irb and doing "15.methods.sort"
<canton7> Guest15975, come across #divmod ?
<harushimo> ok I did that
<ccooke> canton7: useful
<harushimo> it showed a lot of objects
<canton7> (I only glanced and the scrollback; I assume that's what you're after)
carloslopes has joined #ruby
<ccooke> Guest15975: canton7 is right, 15.divmod(4) => [3,3]
_bart has quit [Quit: _bart]
<ccooke> harushimo: you probably got an array of :symbols back, yes?
philcrissman has joined #ruby
lggr has joined #ruby
<Xeago> e.g. remainder, modulus = 15.divmod(4) to get the values
fastred has joined #ruby
bricker has joined #ruby
fmcgeough has joined #ruby
fastred has quit [Client Quit]
<harushimo> yes
<ccooke> harushimo: do you know what the Symbol class is in Ruby?
<harushimo> no
<harushimo> what is it
<harushimo> I just started ruby two weeks ago
<ccooke> harushimo: hmm. done any Java?
<harushimo> I don't think I covered it
<harushimo> no
<ccooke> (not necessary, but it's the easiest explanation)
<harushimo> I've done python and perl
<Guest15975> ccooke: thank you :)
iocor has joined #ruby
<ccooke> Okay. Symbols in Ruby are lightweight, memory-efficient immutable strings
<harushimo> similiar to lists and dicts in python
<ccooke> so "foo" in ruby creates a String object, with the value "foo"
noxoc has quit [Quit: Leaving.]
<ccooke> :foo creates a Symbol object with the value :foo
<harushimo> oh
<ccooke> :foo.to_s will return "foo"
<Xeago> 'foo'.to_sym #=> :foo
<ccooke> they work a lot like strings, but you can never change them once created
<ccooke> and every Symbol will only be created once
otters has quit [Quit: WeeChat 0.3.8]
<ccooke> so no mater how many times you use or generate it, :foo will always be the same object
elsifaka has quit [Quit: Veloma e!]
hukl has quit [Quit: Leaving...]
<harushimo> now I get what your saying, I made mistake. Lists and dicts are mutable
maletor has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
<harushimo> I get what you are saying
<harushimo> since foo is an object. It already has value foo stored in it
adeponte has joined #ruby
<harushimo> it was created when we created the foo object
<harushimo> right
<ccooke> harushimo: right.
lggr has quit [Ping timeout: 245 seconds]
lectrick has joined #ruby
<ccooke> harushimo: so every time you use "foo", you get a new String object. but every :foo is the same Symbol.
frogprince_mac has joined #ruby
<lectrick> oh shit i'm going to rubyconf.
tgraham has joined #ruby
berserkr has joined #ruby
<harushimo> awesome
tvw has quit [Read error: Connection reset by peer]
<ccooke> so Symbol objects are good for hash keys, among other things
<Xeago> when is rubyconf?
hukl has joined #ruby
slainer68 has joined #ruby
hukl has quit [Remote host closed the connection]
<harushimo> this so cool
<lectrick> oct 1-3 in denver i think
<ccooke> harushimo: but... because of all this, they're *also* used to refer to things that are immutable
<ccooke> harushimo: or nearly so
<lectrick> shit i mean november 1-3
<ccooke> harushimo: so, if you want to refer to a method by name, a Symbol is used.
<lectrick> Xeago: nov 1-3
<harushimo> for example, 15 / 3
<ccooke> harushimo: you can call any method on a ruby object with: object.send( :foo ) (to call a method called 'foo')
lggr has joined #ruby
<ccooke> harushimo: and so when you call the 'methods' method, it returns an array of all the methods you can call on the object, as Symbols
<ccooke> harushimo: 15 / 3 is equivalent to 15.send( :/, 3 )
<ccooke> harushimo: and if you look in the array of methods you got from 15.methods.sort, you'll see :/ and :! and :== ... etc
otters has joined #ruby
monkegjinni has joined #ruby
mmitchell has quit [Remote host closed the connection]
failshell has quit [Quit: Lost terminal]
<harushimo> ok
<harushimo> thank you so much
maletor has joined #ruby
<ccooke> harushimo: and if you want some more fun, look at what 15.method(:/) returns :-)
ctevie has joined #ruby
ctevie has quit [Changing host]
ctevie has joined #ruby
yakitori has joined #ruby
timmow has quit [Quit: is having a nap]
<harushimo> this is cool
<ccooke> harushimo: this is why Ruby gets so much metaprogramming - because the tools and introspection are so good
bobbbo has joined #ruby
<harushimo> both ruby and rails are high in demand
arturaz has quit [Ping timeout: 264 seconds]
<harushimo> I just never done a project. I'm getting into it now
Spooner has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
yakitori has quit [Remote host closed the connection]
mmitchell has joined #ruby
okapi has joined #ruby
yakitori has joined #ruby
mvangala has joined #ruby
lectrick has quit [Changing host]
lectrick has joined #ruby
lggr has joined #ruby
<harushimo> ccooke: I appreciate the tutorial
<Xeago> this proper english: "Queries will be executed in a map-reduce like fashion."?
<ccooke> harushimo: No problem
matti has quit [Changing host]
matti has joined #ruby
<ccooke> Xeago: it's understandable, although it doesn't actually communicate much :-)
bapa_ has quit []
ttt has joined #ruby
<Xeago> The response speed can be easily influenced by the amount of nodes and the amount of replica's. Queries will be executed in a map-reduce like fashion.
<Xeago> The response speed can be easily influenced by the amount of nodes and the amount of replica's. Queries will be executed in a map-reduce like fashion when increasing the number of replica's. *
<Spooner> It is replicas, not replica's
<RailWolf> lol
<Xeago> is it understandable in context?
matrixise has quit [Ping timeout: 252 seconds]
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
aoshel has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
fcoury has joined #ruby
ryanlecompte has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
chrishunt has joined #ruby
Villadelfia has joined #ruby
matthewrobbins has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
noxoc has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> Xeago, you have heavily impressed me
<Xeago> ?
<shevy> if I would have a company and hire smart people, I'd hire you right away
<Xeago> why?
<shevy> you left the impression of a clever person
<Xeago> I am baffled by you saying that out of seeming randomness!
<shevy> there is no randomness! look at what you wrote!
<shevy> but alas I have no company :(
<musl> That apostrophe totally made the room, man.
<Xeago> elasticsearch.org it's documented there
<shevy> musl, yeah and also that the sentence was ended with '.' properly, just look at my sentences
<Xeago> that apostrophe is embarrassing
<shevy> lol
<matti> ?
<Xeago> shevy: it's mostly copypasted from a draft
tiripamwe has joined #ruby
<Xeago> my normal talking on irc does not include a period :)
<Xeago> shevy: xeago.github.com/ and xeago.github.com/graduation
baroquebobcat has joined #ruby
moshef has joined #ruby
<musl> Sigh. Pop culture reference failure. s/made the room/tied the room together, dude/
<moshef> RubyPanther bnag hope any of you are here :)
<moshef> bnagy that is
<RubyPanther> I just turned on my screen, creepy... lol
<moshef> :)
<moshef> I'm tracking you :D
<RubyPanther> Well I hope you enjoyed the show lolol
<moshef> anyhow, I need help with some improvement to the regex we did
<moshef> :)
lggr has quit [Ping timeout: 240 seconds]
<moshef> using text.scan(/(?:#{loose_words_array.join("|")})|(?:\b(?:#{exact_words_array.join("|")})\b)/) to scan for loose and exact matches
<RubyPanther> That is the problem with regex, they are powerful but always need improvement
<moshef> the thing is, I need to know the location of the words that were found. is that possible?
ph^ has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 240 seconds]
<moshef> I'm splitting up the text into sentences by split("."), so I'd like to know in which sentence those words were being caught
<moshef> is there an easy way of doing it?
<Xeago> yuck, that's ugly
<RubyPanther> yeah, if you use a block to loop then you can use a match object (or Perl-style $-vars)
<Xeago> split at ". " atleaast
daniel_- has joined #ruby
<moshef> RubyPanther: little example please?
<RubyPanther> Yeah, I don't like that split either
<Xeago> 1993. The best year ever
tiripamwe has quit [Remote host closed the connection]
<Xeago> hmm, that is actually 2 sentences
<Xeago> abc, i.e. hello!
Guest15975 has quit [Quit: Lost terminal]
<moshef> I have no problem with sentences being splitter incorrectly. I might have one day, and then I'll take care of that.
<moshef> right now my problem is that I need the context of the words caught
<Xeago> why are you splitting anyways?
<moshef> to understand the context of the words
<moshef> or at leas try to
<moshef> least*
<Xeago> can't you do occurrences?
<RubyPanther> Well, if you split into strings and then iterate and then scan each chunk, you already know right before the #scan line what chunk you're on
<Xeago> and then take 3 takens before, and 3 tokens after
hbpoison has joined #ruby
<moshef> RubyPanther: exactly, but the problem is - I need to search the entire text, not each sentence separately.
Rydefalk has joined #ruby
<moshef> so I do split each sentence and iterate, but in each iteration I have to search the entire thing
brianpWins has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<moshef> or maybe I should scan both, and then do something with it, let me think
lggr has joined #ruby
<Xeago> "It must not have a single point of failure unless unavoidable with reasonable means." I don't like the latte rpart, it should not have a spof if it would become too expensive for example
<Xeago> any suggestions?
Rydefalk_ has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<Xeago> …within reasonable effort(s)?
Guest61005 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<moshef> RubyPanther: so..any idea?
<RubyPanther> "foobar".scan(/o/){|m| puts Regexp.last_match.begin(0)} # tells you the start, use offset if you also want the end
<moshef> end is the next dot
mmitchell has quit [Remote host closed the connection]
<RubyPanther> moshef: you can also scan a multiline string with /m instead of splitting
<moshef> ok I'm now more confused :)
<RubyPanther> Actually using #scan I don't think you need to use /m but you would for #match or whatever
<moshef> ok
<RubyPanther> "foobar\nponies!\n".scan(/o/){|m| puts Regexp.last_match.begin(0)}
<moshef> what does it scan for?
<RubyPanther> splitting is a waste of resources unless you're going to keep the lines around for later
ryanlecompte has quit [Read error: Connection reset by peer]
<RubyPanther> in this case the letter o
<moshef> RubyPanther: yeah, I want to refactor it, I know splitting is a very very bad idea
<moshef> and now I have to, I'm glad.
ryanlecompte has joined #ruby
evilsushi has quit [Quit: Lost terminal]
Morkel has joined #ruby
<moshef> so now it returns the location of the word, right?
sneakyness_wk has joined #ruby
deryl has quit [Quit: Leaving.]
<RubyPanther> Usually you only need to refactor the regex if you have a ^ $ and needed \A \Z or whatever
<moshef> hmm I think I'm still missing my goal. I'll try to make a gist explain what I'd like to do
<moshef> give me a sec
lggr has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
apok has joined #ruby
<RubyPanther> Regexp.last_match gives you a MatchData object, because scan just feeds you the string that matched, and then you can call #begin(0) or #offset(0) for the start of the first match (there should be only one each time used this way)
elaptics is now known as elaptics`away
<RubyPanther> There is also some $perl global that would already have the offset
shevy has joined #ruby
futilegames has joined #ruby
lggr has joined #ruby
noxoc has quit [Quit: Leaving.]
w400z has quit [Quit: Computer has gone to sleep.]
eka has joined #ruby
vaclavt has quit [Quit: vaclavt]
<moshef> hope this explains it better
SeySayux has quit [Ping timeout: 260 seconds]
<moshef> I might be doing it from the wrong angle so far, so let me know how you will approach this problem
lggr has quit [Ping timeout: 240 seconds]
TheShadowFog has joined #ruby
apok has quit [Remote host closed the connection]
apok has joined #ruby
macmartine has joined #ruby
slainer68 has quit [Ping timeout: 256 seconds]
<RubyPanther> moshef: okay, so you probably do need to split(/\s*\.\s*/) and then you have to decide based on your data if you want to check for ignore or match first. If there is an ignore word, you can just next and then if there are matches. So then you'll just have the first part of the regex from yesterday, not the whole madness
lggr has joined #ruby
<moshef> so basically yeah, I need to return the caught words and the entire sentence (or just the entire sentence and then scan it again for the words), and then just iterate over sentences and ignore what needs to be ignore.
<RubyPanther> Not clear if you really need the offsets or not
<moshef> RubyPanther: how do I get the entire sentence back then?
<moshef> how else?
moted has joined #ruby
<RubyPanther> moshef: in most cases it will be more efficient to skip first and match after, since if you're skipping first you avoid the second regex and if you're skipping after, you always do both
<moshef> what is the first part of the regex? I do have 2 arrays (loose and exact), I just removed the exact to simplify this problem
deryl has joined #ruby
<moshef> I can add it..
<RubyPanther> moshef: because you're splitting on it, just use a block form of the split
philcrissman has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<moshef> sorry I lose you
SeySayux has joined #ruby
<RubyPanther> "foobar.\nponies!\n".split(/\s*\.\s*/){|sentence| ... match against a line }
dmiller has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
wallerdev has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
<RubyPanther> "foobar.\nponies!\n".split(/\s*\.\s*/).each{|sentence| next if sentence.match(/\bpon(?:y|ies?)s\b/) ; puts sentence } # skips ponies
adambeynon has joined #ruby
c0rn_ has joined #ruby
chrismcg is now known as zz_chrismcg
iocor is now known as samphippen
<RubyPanther> moshef: so finally we have: "foobar.\nponies!\n".split(/\s*\.\s*/).each_with_index{|sentence,i| next if sentence.match(/\bpon(?:y|ies?)s\b/) ; sentence.scan(/bar|baz/){|s| m = Regexp.last_match; puts "%s saw at offset %d in sentence %d" % [s,m.begin(0),i] } }
c0rn_ has quit [Client Quit]
<RubyPanther> sorry I wrote the whole thing for you, I got carried away. I better drink some coffee before I start scribbling on the walls, too.
dmiller has joined #ruby
<moshef> RubyPanther: don't think I'd have gotten so far
<moshef> hmm
darthdeus has joined #ruby
robozahn has joined #ruby
<moshef> although I think I made it already
<moshef> just had some small logic problem, but I'll text your insane regex
c0rn_ has joined #ruby
dmiller_ has joined #ruby
<moshef> there is some syntax error
ManK has quit [Remote host closed the connection]
<RubyPanther> If you want to see a truly crazy regex, http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html
lggr has joined #ruby
<darthdeus> hey guys, any of you work in sweden? :)
peneconleche has joined #ruby
c0rn_ has quit [Client Quit]
<moshef> RubyPanther: can you run it?
<RubyPanther> I wrote 5 lines of code for a client in Sweden once, does that count?
<shevy> YES
eldariof has joined #ruby
headius has joined #ruby
<RubyPanther> moshef: my example I pasted directly from irb (ruby 2.0)
Spooner has quit [Ping timeout: 252 seconds]
<shevy> RubyPanther is the man
xsdg has quit [Ping timeout: 268 seconds]
dmiller has quit [Ping timeout: 244 seconds]
peneconleche has quit [Client Quit]
jeffreybaird has quit [Quit: jeffreybaird]
ncr100 has joined #ruby
jarred has joined #ruby
etherdev has quit [Read error: Operation timed out]
niklasb has joined #ruby
<moshef> RubyPanther: using rib 1.8.7. anyhow ill try to play with it myself a bit
<moshef> thanks
thisirs has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
emmanuelux has joined #ruby
adamkittelson has joined #ruby
<RubyPanther> it should be backwards compatible to whichever version added #each_with_index :)
<moshef> it doesn't fail for that
<moshef> says expecting } after b/)
shiki has joined #ruby
brianpWins has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
xclite has quit [Ping timeout: 260 seconds]
ttt has joined #ruby
baroquebobcat has joined #ruby
mahmoudimus has joined #ruby
sheerun has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
yakitori has quit [Ping timeout: 240 seconds]
vaclavt has joined #ruby
ben_alman has quit [Excess Flood]
philcrissman has joined #ruby
bawer has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
xsdg has joined #ruby
bawer has joined #ruby
blischalk has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Remote host closed the connection]
c0rn_ has joined #ruby
ltsstar has joined #ruby
ben_alman has joined #ruby
sepp2k1 has joined #ruby
mlue has joined #ruby
sepp2k has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
slainer68 has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
c0rn_ has quit [Client Quit]
lggr has joined #ruby
mahmoudimus has quit [Ping timeout: 264 seconds]
niklasb has quit [Ping timeout: 246 seconds]
c0rn_ has joined #ruby
reuf has quit [Quit: Leaving]
billiam has quit [Read error: Connection reset by peer]
billiam has joined #ruby
ph^ has joined #ruby
dmiller_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 265 seconds]
moshef has quit [Quit: moshef]
lggr has joined #ruby
voodoofish430 has joined #ruby
GoHuyGo has quit [Quit: Leaving]
phantasm66 has joined #ruby
xuser has joined #ruby
peneconleche has joined #ruby
fredjean has joined #ruby
<lectrick> So https://c9.io (cloud9 IDE, ideal for remote pairing on the same code) supports Ruby 1.9.3 now and apparently has RVM support.
berserkr has quit [Quit: Leaving.]
<harushimo> I'm looking at ruby code. what does puts do in a program
<harushimo> is it like a print statement?
<xuser> harushimo: why are you looking at ruby code?
<harushimo> I'm learning ruby
<RubyPanther> I'm sure the first chapter of any beginner book will cover puts
<xuser> harushimo: wrong way
kannix has quit [Ping timeout: 245 seconds]
<phantasm66> if i have a method that takes a single parameter ( method_name(parameter) ). and i want to check the literal name of the parameter. for example, method_name(test).... how do i check that if a literal parameter name?
<harushimo> wrong way?
<xuser> harushimo: get a book
<phantasm66> in that example, the parameter is test
<m3pow> harushimo , get this mate : The Ruby Programming language
monkegjinni has quit [Remote host closed the connection]
<harushimo> I am using a book
<m3pow> it's a book from O'Reilly and it covers everything you need to know
<harushimo> Learn Ruby the hard way
daniel_- has quit [Quit: WeeChat 0.3.8]
<xuser> harushimo: try reading it
<m3pow> and it's written by the one that created ruby
lggr has quit [Ping timeout: 256 seconds]
<harushimo> it doesn't explain puts statement. I'm pretty sure it is similar to print
<m3pow> pretty much yes !
jrist is now known as jrist-afk
mrdodo has joined #ruby
mrdodo has quit [Remote host closed the connection]
mrdodo has joined #ruby
<Hanmac> phantasm66 in ruby you cant get the parametername of a variable
lggr has joined #ruby
bobbbo has quit [Quit: bobbbo]
sheerun has joined #ruby
Virunga has quit [Remote host closed the connection]
<harushimo> thanks
shiki_ has joined #ruby
shiki has quit [Read error: Connection reset by peer]
davidcelis has quit [Quit: K-Lined.]
<Hanmac> harushimo { puts 1,2,3 } its the same as { print [1,2,3].join("\n")+"\n" }
flip_digits has joined #ruby
<chiel> in ruby if you say something like `myVar ||= 0` it's the same as saying `myVar = myVar || 0`, right?
<harushimo> okay. I started reading that too
<harushimo> thank you so much
<Mon_Ouie> For variables, yes
dmiller has joined #ruby
<harushimo> I'm asking a lot of basic questions. Sorry about that
<Mon_Ouie> When "myVar" is actually something like an_object.an_attribute, it gets more complicated
<chiel> ah
<chiel> well I'm doing the latter form, so I could just shorten it, I think? :)
<Mon_Ouie> Yes
Russell^^ has joined #ruby
jeffreybaird has joined #ruby
<Mon_Ouie> (For method calls like foo.bar, it's more like foo.bar || (foo.bar = 0), but still not quite that for foo.bar.baz)
<Hanmac> "complicated" is a nice word for this high-saccharid-syntax sugar :D
lggr has quit [Ping timeout: 265 seconds]
locriani_ has joined #ruby
w400z has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
futilegames has quit [Quit: futilegames]
slicslak has joined #ruby
lggr has joined #ruby
blazes816 has quit [Quit: blazes816]
locriani has quit [Ping timeout: 252 seconds]
bluenemo has quit [Read error: Operation timed out]
jbw has quit [Ping timeout: 264 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Keva161 has joined #ruby
fermion has quit [Ping timeout: 244 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
bluenemo has joined #ruby
lggr has joined #ruby
Keva161 has quit [Client Quit]
hbpoison_ has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
frogprince_mac has quit [Ping timeout: 264 seconds]
peneconleche has quit [Read error: Connection reset by peer]
GoGoGarrett has joined #ruby
hbpoison_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
w400z has quit [Quit: Computer has gone to sleep.]
stopbit has quit [Read error: Connection reset by peer]
stopbit has joined #ruby
w400z has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
vaclavt has quit [Quit: vaclavt]
hbpoison has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
peneconleche has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Forevernade has joined #ruby
bbttxu has joined #ruby
lggr has joined #ruby
shiki has joined #ruby
jbw has joined #ruby
glyytchy has joined #ruby
Appineer has quit [Remote host closed the connection]
ScottNYC has joined #ruby
shiki_ has quit [Ping timeout: 264 seconds]
<bricker> Should switch blocks be indented? (according to convention)
kermes has quit [Remote host closed the connection]
scrogson has joined #ruby
<Mon_Ouie> If you're talking about "case", "when" is on the same column as "case" — but the body itself is indented
lggr has quit [Ping timeout: 256 seconds]
joelsbeard has joined #ruby
jarred has quit [Ping timeout: 264 seconds]
jimeh has quit [Ping timeout: 265 seconds]
ttt has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
theRoUS_ has quit [Ping timeout: 246 seconds]
blazes816 has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
gmci has quit [Ping timeout: 240 seconds]
ttt has quit [Ping timeout: 240 seconds]
jarred has joined #ruby
icooba_ has joined #ruby
icooba has quit [Ping timeout: 256 seconds]
icooba_ is now known as icooba
adambeynon has joined #ruby
gmci has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
deadghost has joined #ruby
jwg2s has joined #ruby
<jwg2s> Hi all, is there a way to set a tolerance when comparing two numbers using == ?
<jwg2s> i googled "ruby comparison operator tolerance" with not much luck
<Muz> Define "tolerance".
<Mon_Ouie> Just check if the difference's absolute value is less than n
<jwg2s> 1 == 1.0000001 should return true
<Muz> That's totally not what == is for. ¬_¬
<jwg2s> Right......
lggr has joined #ruby
<TTilus> jwg2s: no direct way, you totally can do it
<jwg2s> Hence why I'm asking about tolerance
<TTilus> jwg2s: but you totally should not
<TTilus> jwg2s: define a separate method for that
<jwg2s> TTilus: I'm dealing with massive numbers and the numbers differ by 2.9103830456733704e-11 for example
rarar3 has joined #ruby
<jwg2s> TTilus: gotcha, theres probably a gem to do it just didn't know if it was built into ruby
<Mon_Ouie> I don't think that operation would deserve to be in a gem. I mean, it's literally one line.
adambeynon has quit [Quit: Computer has gone to sleep.]
<TTilus> jwg2s: you simply map lhs to range (around itself) and chack if rhs is within
<TTilus> jwg2s: see Range
GoHuyGo has joined #ruby
<jwg2s> k thanks
<blazes816> (my_data - 1).abs < 1
<blazes816> (my_data - 1).abs < epsilon
<Mon_Ouie> (my_data - 1).abs < Float::EPSILON # built-in constant, very small
ddv has quit [Changing host]
ddv has joined #ruby
<TTilus> Mon_Ouie: class Numeric; def close?(rhs); (self - rhs).abs < epsilon; end
tatum_O_o has quit [Remote host closed the connection]
<TTilus> right?
rarar3 has quit [Remote host closed the connection]
<Mon_Ouie> def close?(rhs, epsilon = Float::EPSILON) would be more flexible
<TTilus> true
rippa has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<Mon_Ouie> close?(other, epsilon = Float::EPSILON) kind of makes more sense to me (it's commutative anyway)
<TTilus> jwg2s: in general redefining operators (such as ==) for core/stdlib classes is a bad idea
<jwg2s> right yeah i wasn't going to redefine at all
<jwg2s> that would be a horrible idea haha
JJMalina has quit [Quit: Linkinus - http://linkinus.com]
<jwg2s> i was looking for something similar to == that did what i wanted
nateberkopec has joined #ruby
<jwg2s> don't think i made that very clear
lushious has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
iamjarvo has quit [Quit: WeeChat 0.3.9-dev]
c0rn_ has quit [Quit: Computer has gone to sleep.]
areil has quit [Remote host closed the connection]
Tearan has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Tearan has quit [Client Quit]
mercwithamouth has joined #ruby
lushious has joined #ruby
ianbrandt has joined #ruby
ianbrandt has quit [Excess Flood]
bradleyprice has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
stephenjudkins has joined #ruby
vaclavt has joined #ruby
lggr has joined #ruby
Chryson has joined #ruby
ianbrandt has joined #ruby
Guest48370 has quit [Ping timeout: 252 seconds]
tvw has joined #ruby
daniel_- has joined #ruby
joelsbeard has quit [Ping timeout: 246 seconds]
baphled has quit [Ping timeout: 245 seconds]
sepp2k1 has quit [Remote host closed the connection]
invisime has left #ruby [#ruby]
<Dwarf> What's everyone's IDE of choice?
<eka> Dwarf: IDE? RubyMine
mmitchell has quit [Remote host closed the connection]
<Hanmac> i use Eclipse
<mr-rich> Hello. This is probably a simple question: I want to iterate through an array of names and capitalize them. I am trying to do this in initialize part of a class. Any thoughts?
lggr has quit [Ping timeout: 240 seconds]
scrogson has left #ruby [#ruby]
mmitchell has joined #ruby
scrogson_ has joined #ruby
<eka> mr-rich: .each?
scrogson_ is now known as scrogson
havenn has joined #ruby
<mr-rich> eka: yes ... I used .each and I have a test with respond_to?("each"), but it doesn't seem to be working ...
<Hanmac> mr-rich names.map(&:capitalize) or names.map!(&:capitalize) or names.each(&:capitalize!)
schickung has quit [Quit: schickung]
<mr-rich> Hanmac: Thanks ... I'll try that ...
arietis has joined #ruby
ben_alman has quit [Excess Flood]
elaptics`away is now known as elaptics
davidcelis has joined #ruby
mrdodo is now known as dodo_
dodo_ is now known as icole
Beoran_ has quit [Read error: Connection reset by peer]
budha has quit []
lggr has joined #ruby
etherdev has joined #ruby
Xeago has joined #ruby
ben_alman has joined #ruby
adambeynon has joined #ruby
shiki_ has joined #ruby
triptec has quit [Ping timeout: 264 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
<mr-rich> Hanmac: .map doesn't seem to be a method ...
twoism has joined #ruby
shiki has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
etehtsea has joined #ruby
robozahn has quit [Ping timeout: 265 seconds]
Tearan has joined #ruby
<Hanmac> mr-rich, it is, make me a pastie of your code at pastebin.com or other pages
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
c0rn_ has joined #ruby
lggr has joined #ruby
<mr-rich> Hanmac: Gimme a minute or five ... I'm trying something different. I just figured out that the class initialize was the wrong place for the code in the first place ... I'll let you know ...
jrist-afk is now known as jrist
glyytchy has left #ruby ["Linkinus - http://linkinus.com"]
adamkittelson has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
peneconleche is now known as peneconleche|awa
tvw has quit [Remote host closed the connection]
Monie has quit [Quit: Quit]
tvw has joined #ruby
twoism has joined #ruby
lggr has joined #ruby
ttt has joined #ruby
cakehero has joined #ruby
jenrzzz has quit [Quit: leaving]
jenrzzz has joined #ruby
chrisbolton has joined #ruby
matrixise has joined #ruby
kirun has joined #ruby
adelcampo has joined #ruby
jeffreybaird has joined #ruby
eignerchris has joined #ruby
jimeh has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
<mr-rich> Hanmac: would it be somethign like names = names.map(&:capitalize) or just by itself?
adelcampo has quit [Ping timeout: 265 seconds]
guns has joined #ruby
<Mon_Ouie> names.each(&:capitalize!) would do the change in-place (instead of returning a new array with capitalized new strings)
adamkittelson has joined #ruby
lggr has joined #ruby
peneconleche|awa has quit [Quit: Leaving...]
<Mon_Ouie> You should make sure the string isn't used in any other place when you perform such a change though
<Hanmac> map(&:capitalize) returns an new Array with new Strings, map!(&:capitalize) change the array itself but make new strings, each(&:capitalize!) change the strings inside the array so no new object
paolooo has quit [Ping timeout: 245 seconds]
<mr-rich> Mon_Ouie: Brilliant!
vlad_starkov has joined #ruby
adamkittelson has quit [Ping timeout: 244 seconds]
luckyruby has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<mr-rich> So, let me see if I have this right ... the &: basically sez "apply to all elements"?
Chryson has quit [Quit: Leaving]
mmitchell has quit [Remote host closed the connection]
zhando has joined #ruby
the_jeebster1 has joined #ruby
<the_jeebster1> with the CSV class, is it possible to specify only a certain row to act upon?
lggr has quit [Ping timeout: 265 seconds]
<Mon_Ouie> No, it's a way of passing any object as a block to a method
<Mon_Ouie> That you pass a block to #map and #each means it will be called for each element
nanderoo has quit [Quit: Leaving.]
arubin has joined #ruby
blazes816 has quit [Quit: blazes816]
<mr-rich> monobit_: makes sense ... thanks
<Mon_Ouie> foo(&bar) passes bar as a block to foo; in the above example, bar is just :capitalize (&: isn't an operator, thus)
blazes816 has joined #ruby
lggr has joined #ruby
<zhando> if I do: somearray.sort.each_index {|i| ... } can I reference the sorted array somehow in the block like sa[i+1]? what do I use for sa?
vlad_starkov has quit [Remote host closed the connection]
<Mon_Ouie> That's what variables are here for
<shevy> zhando just give it a name
<shevy> array = [1,2,3]
<shevy> array.sort.each_index {|i| array[i+1] }
<Mon_Ouie> Also, if it's just that, you might want to use #each_cons or
c0rn_ has joined #ruby
rakunHo has joined #ruby
<Mon_Ouie> (or something else, I don't know*)
<shevy> anyone knows of a service that allows you to upload images to a remote site quickly? and then ideally use ruby?
pskosinski has quit [Ping timeout: 276 seconds]
<zhando> hmmm.. ok thanks..
<shevy> I think imageshack requires one to register :(
<shevy> SomeSite.upload("my_desktop.png")
akemEikko has joined #ruby
fir_ed has quit [Quit: Leaving]
<_7894> shevy: http post does not work for you?
lggr has quit [Ping timeout: 265 seconds]
geekbri has quit [Remote host closed the connection]
<mr-rich> Ok ... asked before but I'll ask again: Best Open Sourde Editor/IDE for ruby with auto completion
<mr-rich> ?
<mr-rich> s/sourde/source?
<eka> mr-rich: Komodo?
<eka> mr-rich: Eclipse maybe
lggr has joined #ruby
Guest64548 has quit [Quit: Guest64548]
budha has joined #ruby
stan_man_can has joined #ruby
<stan_man_can> >> can_csv = open("http://www.cbsa-asfc.gc.ca/bwt-taf/bwt-eng.csv")
<stan_man_can> => #<StringIO:0x00000101163008>
<stan_man_can> Seems simple but am I doing something wrong?
roz-monokeros has joined #ruby
<roz-monokeros> hello
<roz-monokeros> is there a way to get an array with all the attributes I defined in a Class using attr_reader?
twoism has quit [Remote host closed the connection]
<_7894> stan_man_can, Define your problem and place a question if you want an answer.
<Mon_Ouie> No, because as far as Ruby is concerned they all are regular methods
<Mon_Ouie> Documentation tools (e.g. RDoc or YARD) usually distinguish them from other methods though
<stan_man_can> What about instance_variables?
<Mon_Ouie> attr_reader defines a method that reads a value from an instance variable
Coolhand has quit [Remote host closed the connection]
<Mon_Ouie> That doesn't mean any instance of the class will have that instance variable set to something
<stan_man_can> _7894: when I open the url which is a csv ruby doesn't appear to be getting the actual contents. if I do can_csv.to_s it just outputs
<stan_man_can> >> can_csv.to_s
<stan_man_can> => "#<StringIO:0x00000101163008>"
<Mon_Ouie> (There's no such thing as "defining an instance variable", since they're created when needed)
<_7894> stan_man_can, can_csv.read
Goles has joined #ruby
<stan_man_can> _7894: ah that works
billiam has quit [Quit: Leaving]
GoHuyGo has quit [Quit: Leaving]
<Mon_Ouie> stan_man_can: open(…) returns an IO object (or duck-typed IO in the case of open-uri)
<Mon_Ouie> Never a String anyway
answer_42 has quit [Quit: WeeChat 0.3.8]
<_7894> stan_man_can, The thing is it's StringIO, not String, hence read, or each_line or other method from IO class.
<stan_man_can> Mon_Ouie: Ahh gotcha. Sorry guys I'm coming from a PHP world. Everything is different there.
pskosinski has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<stan_man_can> _7894: That makes more sense. It's my mistake for assuming StringIO == String
<stan_man_can> Is there a clean way to parse through the CSV or should I just go line by line and do a .split(";;")
baphled has joined #ruby
Vainoharhainen has joined #ruby
<Mon_Ouie> require 'csv'
<Mon_Ouie> See the documentation of the CSV class for details
<Mon_Ouie> (well, more than details)
lggr has joined #ruby
vlad_starkov has joined #ruby
AlbireoX has quit [Remote host closed the connection]
Neomex has joined #ruby
bigmcq77 has joined #ruby
AlbireoX has joined #ruby
ltsstar has quit [Quit: ltsstar]
<deryl> ok, sort of confused here. I have dtf gem listed as a dep of dtf-session. In 'dtf' I have a couple thor tasks. How do I make those tasks available to 'dtf-session'? basically I need to be able to execute the thor tasks in the dtf gem within the directory structure of dtf-session, and be listable (bundle exec thor list). I thought if 'dtf' was a dependency of 'dtf-session' those tasks would be available.
the_jeebster1 has quit [Read error: Connection reset by peer]
<deryl> the dtf thor tasks copy some files around that this dtf-session gem needs as well
tvw has quit [Remote host closed the connection]
tvw has joined #ruby
Peter-W has quit [Read error: Connection reset by peer]
Peter-IT_ has joined #ruby
AlbireoX has quit [Ping timeout: 244 seconds]
Peter-IT_ has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
chetan- has left #ruby [#ruby]
debill has joined #ruby
elaptics`away is now known as elaptics
lggr has quit [Ping timeout: 240 seconds]
Virunga has joined #ruby
joelsbeard has joined #ruby
<_7894> stan_man_can, Anything particular to help with?
the_jeebster has joined #ruby
scrogson has quit [Quit: ZNC - http://znc.in]
<stan_man_can> _7894: Sorry I'm just trying to wrap my head around this all. I think you guys pointed me in the right direction though. If I can't get it from the documentation I'll ask again.
scrogson_ has joined #ruby
w400z has quit []
yxhvuud has quit [Ping timeout: 245 seconds]
maahes has quit [Ping timeout: 240 seconds]
Tearan has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
moshef has joined #ruby
moshef has quit [Client Quit]
__class__ has quit [Ping timeout: 256 seconds]
etherdev has quit [Ping timeout: 248 seconds]
scrogson_ is now known as scrogson
fantazo has quit [Remote host closed the connection]
__class__ has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
scrogson has left #ruby [#ruby]
bradleyprice has quit [Quit: bradleyprice]
ests has joined #ruby
lggr has joined #ruby
philcrissman has quit [Remote host closed the connection]
<shevy> _7894 hmm not sure whether I tried it before or not...
ttt has joined #ruby
<_7894> shevy: Mostly, it's just http post. Sometimes you need to post also some static data or in some cases dynamic data.
<lamba> i can only assume i'm doing something super dumb here, i have: input = gets.chomp ; print input ; if input == 'y' and it's not even stopping for the input. This is in a rakefile.
jblack has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 248 seconds]
skogis has joined #ruby
RegEchse has joined #ruby
havenn has quit [Remote host closed the connection]
LouisGB has quit [Ping timeout: 244 seconds]
pu22l3r has quit [Ping timeout: 256 seconds]
elaptics is now known as elaptics`away
snorkdude has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
ttt has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
adamkittelson has joined #ruby
pettsson has joined #ruby
ests has quit []
skogis has quit [Client Quit]
lggr has joined #ruby
tgraham has quit [Quit: Leaving...]
Axsuul has joined #ruby
belak has left #ruby [#ruby]
wpaulson has joined #ruby
dmiller has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
fir_ed has joined #ruby
fish_ has quit [Read error: Operation timed out]
matthewrobbins has joined #ruby
skogis has joined #ruby
<lamba> if i use STDIN.getc it works once, then the second time it skips it entirely, ugh.
monkegjinni has joined #ruby
krawchyk has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
Mchl has quit [Ping timeout: 264 seconds]
fish_ has joined #ruby
jblack has joined #ruby
snorkdude has quit [Remote host closed the connection]
eldariof has quit []
lggr has joined #ruby
<blazes816> lamba: $20 bucks it's a left over character in the buffer
<blazes816> you type "y<enter>", then consume y, but not enter
<lamba> yeah, thats my conclusion also.
mmitchell has joined #ruby
<lamba> just pouring through trying to work out how to flush stdin. i kind of figured STDIN.flush would do it.
hool has joined #ruby
<blazes816> never done any of this in ruby but sounds like it
bradleyprice has joined #ruby
diegoviola has joined #ruby
<hool> hi
<blazes816> while(STDIN.getc)
<blazes816> or something perhaps
w400z has joined #ruby
<lamba> kind of ripping my hair out.
Mchl has joined #ruby
bluenemo has quit [Remote host closed the connection]
hool has left #ruby [#ruby]
nwest has quit [Quit: Computer has gone to sleep.]
robertotauille has quit [Quit: Linkinus - http://linkinus.com]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
luckyruby has joined #ruby
fir_ed has quit [Read error: Connection timed out]
fir_ed has joined #ruby
stepnem has quit [Quit: ZNC - http://znc.sourceforge.net]
bawer has quit [Quit: Leaving]
lggr has quit [Ping timeout: 256 seconds]
Mchl has quit [Ping timeout: 245 seconds]
scrogson has joined #ruby
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
mmitchel_ has joined #ruby
Morkel has quit [Quit: Morkel]
lggr has joined #ruby
Russell^^ has quit [Quit: Russell^^]
bbttxu has quit [Quit: bbttxu]
debill has quit [Remote host closed the connection]
Vainoharhainen has quit [Quit: Leaving...]
mmitchell has quit [Ping timeout: 264 seconds]
Mchl has joined #ruby
robem has joined #ruby
robem has quit []
Mchl has quit [Excess Flood]
philcrissman has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
completely_soake is now known as dobie_gillis
mmitchel_ has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
arubin has quit [Ping timeout: 244 seconds]
Neomex has quit [Quit: Neomex]
dmiller has joined #ruby
tyfighter has joined #ruby
GoHuyGo has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
mercwithamouth has quit [Ping timeout: 240 seconds]
ashkanr has joined #ruby
lggr has joined #ruby
<ashkanr> anybody can help me for 5 minutes to deploy my first Sinatra project?
<Spaceghostc2c> ashkanr: rackup
resure has joined #ruby
resure has quit [Changing host]
resure has joined #ruby
resure has quit [Client Quit]
cakehero has joined #ruby
<ashkanr> source is this: https://github.com/waferbaby/usesthis
<ashkanr> seems a sinatra app but I can't build & run locally
macmartine has joined #ruby
Spooner has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
snorkdude has joined #ruby
tommyvyo has joined #ruby
jonathanwallace has joined #ruby
jjbohn has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
gfontenot has quit []
hbpoison has joined #ruby
lggr has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
Coolhand has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
justinmcp has joined #ruby
LouisGB has joined #ruby
Targen has joined #ruby
bananagram has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
mwillhite has joined #ruby
blischalk_ has joined #ruby
blischalk_ has quit [Client Quit]
robem has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
blischalk has quit [Ping timeout: 244 seconds]
bananagram has left #ruby ["WeeChat 0.3.8"]
lggr has joined #ruby
adamkitt_ has joined #ruby
adamkitt_ has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
<ashkanr> anybody with experience on deploying sinatra app to heroku?
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
mark_locklear has quit [Quit: Leaving]
ph^ has quit [Remote host closed the connection]
adamkittelson has quit [Ping timeout: 244 seconds]
ttt has joined #ruby
<davidcelis> weird organization
<davidcelis> isnt the server script usually in the top-level dir?
forced_request has joined #ruby
<davidcelis> hell isn't everything in that site/ directory usually top-level?
awarner has quit [Remote host closed the connection]
vaclavt has quit [Quit: vaclavt]
mxweas has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 252 seconds]
etherdev has joined #ruby
robem has quit []
bobbbo has joined #ruby
cbuxton has joined #ruby
emsilva has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
ttt has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<ashkanr> @davidcelis yes I guess so
shobhitg has quit [Ping timeout: 240 seconds]
the_jeebster has quit [Quit: Leaving.]
haxrbyte has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
<davidcelis> why deviate from the standard, idiomatic file structure?
<davidcelis> that's only going to cause potential problems with your load path
maletor has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
samflores has joined #ruby
<ashkanr> not my project david, I have just cloned it and trying to run it as my first sinatra app
tgraham has joined #ruby
<davidcelis> ah
CannedCorn has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<ashkanr> basically I tried to push to heroku but it doesn't detect this as sinatra app
lggr has joined #ruby
carloslopes has quit [Quit: Leaving.]
<Spooner> ashkanr : Not a great deal of experience, but I have done it. Should start it up with a .ru file or via foreman and be OK.
cakehero has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Ping timeout: 264 seconds]
JetAway has joined #ruby
<Spooner> I used a foreman Procfile, but I know a rack .ru works too.
CaptainJet has quit [Disconnected by services]
JetAway is now known as CaptainJet
arubin has joined #ruby
tvw has quit [Read error: Connection reset by peer]
jarred has quit [Ping timeout: 264 seconds]
justinmcp has quit [Remote host closed the connection]
thone_ has quit [Ping timeout: 246 seconds]
samflores has quit [Quit: Linkinus - http://linkinus.com]
<shevy> a foreman huh?
<shevy> George Foreman Procfile? The proc that knocks you out?
jarred has joined #ruby
<Spooner> No, the one that grills your meat while draining away all the fatr.
<ashkanr> @spooner should I create any config file myself?
vlad_starkov has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
<arubin> Spooner: Making it taste bad.
<davidcelis> ashkanr: That application has a config.ru file; it's in the site/ directory
<Spooner> ashkanr No, either of those will be started up for you.
haxrbyte has joined #ruby
thone has joined #ruby
<davidcelis> ashkanr: if heroku needs it to be in the root directory, then that's obviously a bad place for it. but i dont know if it does or doesnt.
<Spooner> Either file needs to be in the root dir for Heroku to notice.
lggr has quit [Ping timeout: 265 seconds]
<davidcelis> well there ya go
<workmad3> Spooner: if you use a Procfile, don't you still need the rackup file because your Procfile is doing rackup -p $port ?
w400z has quit [Quit: Computer has gone to sleep.]
<Spooner> Nope. I do in the foreman::: web: bundle exec ruby lib/robin.rb -p $PORT
<workmad3> ah, fair enough
<workmad3> here's my 'minimal' rack example that'll run on heroku though :) https://gist.github.com/2712594
w400z has joined #ruby
soulisson has joined #ruby
<workmad3> just alter the rackup file for sinatra
lggr has joined #ruby
<Spooner> Maybe using rackup would be more correct? I gave up on that project when I realised that free dynos turn themselves off, so it sort of became pointless :D
<workmad3> :D
tgraham has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
<workmad3> just realised... with rack, you can create a hello world web server in fewer characters than fizzbuzz...
<Spooner> Though since then I found out how to keep them alive. I'll get back to it eventually...
<workmad3> ooh, how do you keep them alive?
<ashkanr> so basically you say if I have a rack gem in my proj, it would be fine?
<Spooner> No, it would be fine if you just move the .ru into the root dir.
<ashkanr> let me try it Spooner
robustus has quit [Quit: ZNC - http://znc.in]
arubin has quit [Ping timeout: 256 seconds]
<workmad3> Spooner: aha :D
<Spooner> workmad3 : Haven't tried it, since I haven't touched Heroku since I found that.
AlbireoX has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
alanp has joined #ruby
<ashkanr> doesn't work. Seems heroku is super sensitive ;)
w400z has quit []
xyzodiac has joined #ruby
Forevernade has joined #ruby
cbuxton has quit [Ping timeout: 256 seconds]
<Spooner> Well, there are many possibilities, but I'm not telepathic.
lggr has quit [Ping timeout: 264 seconds]
<ashkanr> would you please fork the project Spooner?
sspiff has quit [Remote host closed the connection]
ph^ has joined #ruby
<shevy> Knifer and Spooner go into a bar
<Spooner> Link it and I'll take a look. I am no Heroku expert though (forking and pushing seems a bit too much effort for me).
sailias has quit [Quit: Leaving.]
<shevy> Asks the pubkeeper: "Got Forker with you?"
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
<Spooner> Oh, just fork of, shevy :D
<shevy> lol
<Spooner> Oh jeez. Fork off.
lggr has joined #ruby
catphish has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
alanp_ has quit [Ping timeout: 252 seconds]
<Spooner> ashkanr : You haven't pushed.
<catphish> does ruby permit fairly raw use of open, read, write?
<Spooner> You need to use Bundler, i suspect, so it knows what gems to install.
<Spooner> It isn't telepathic either.
<catphish> i want to write some synchronous disk io
<ashkanr> my changeset was very tiny and I don't have push permission
<shevy> define "raw use of"
<Spooner> In that case, you should fork it and push to that, then ask for a pull.
<ashkanr> you can fork the original repo (https://github.com/waferbaby/usesthis) and see if you can run it locally on your system?
<shevy> you can read bytes look at IO.seek() or what was its name
joshman_ has quit [Read error: Operation timed out]
<davidcelis> fork(2)
cbuxton has joined #ruby
<Spooner> I'm sure it will run on my system, but it won't run on Heroku (aforementioned .ru and bundler issues).
<Spooner> And no point me testing from an old version that also doesn't work anyway. What does that prove?
<catphish> shevy: i want to call read and write on a file without ruby doing any buffering, i effectively want to open a file and call linux's read/write methods directly
<catphish> obviously converting strings as appropriate
arubin has joined #ruby
<catphish> i assume ruby provides that functionality of the file is opened with the correct modes?
<Spooner> catphish : You can turn off buffering (File#sync = true, I think) if that is what you mean.
Criztian has quit [Remote host closed the connection]
<catphish> that will probably do what i want, thanks
<catphish> i'll also be wanting to open files with specific flags (O_DIRECT, O_SYNC for example)
jonathanwallace has joined #ruby
<catphish> basiclly i'm going to be working on a shared file so i need to ensure that its read and written in realtime
kenneth has joined #ruby
<catphish> so coordinate writes with other hosts sharing the data
<kenneth> hey there
<kenneth> if i have a subclass of Hash, is there a way to coerce a hash into the subclass
Juul has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<workmad3> kenneth: no
<workmad3> kenneth: all you can do is create a new instance of your subclass with the same contents
ph^ has quit [Ping timeout: 256 seconds]
<workmad3> kenneth: subclassing things like Hash and Array is generally ill-advised btw, it can cause weirdnesses
<Spooner> catphish : Have a look at what File and IO offers. No reason to use magic flags if they are wrapped with ruby code that does the same thing.
axl_ has quit [Quit: axl_]
<catphish> Spooner: makes sense, i want to make sure i know what it's doing though :)
<catphish> shared access to data is somewhat dangerous :)
<Spooner> kenneth : Yeah, there is no terribly good reason to subclass Hash. Maybe you mean to wrap it?
BrokenCog has quit [Ping timeout: 244 seconds]
Forevernade has quit [Read error: Connection reset by peer]
<catphish> is it ever possible to change the class of an object?
<catphish> i would assume not
<bricker> Is there a way to get the focus-object for a switch statement? eg: case @name; when String: puts case_object; else puts "not string"
<kenneth> wrapping it would work too but it'd be less elegant
lggr has joined #ruby
<workmad3> kenneth: composition > inheritance
<Spooner> catphish : Well, if you read http://www.ruby-doc.org/core-1.9.3/IO.html you will see that you can send stuff like O_RDONLY, etc, when creating the file so try passing your numbers in there.
philcrissman has quit [Remote host closed the connection]
<workmad3> kenneth: and seriously... classes like Hash and Array don't work well as base classes
Forevernade has joined #ruby
<catphish> Spooner: thanks
<workmad3> kenneth: the ruby runtime does some internal optimisations with them that can seriously screw with subclasses (or at least, that's what I've read in the past)
<kenneth> here's my use case. i want to build some utility model methods into the hash returned by the db
ryanf has joined #ruby
<kenneth> might not be the best idea
mercwithamouth has joined #ruby
<workmad3> kenneth: that sounds like a perfect case for composition
<kenneth> but i wanted the user to be able to use the data like a regular hash
<workmad3> kenneth: basically you want a hash decorator
<kenneth> but then be able to do things like .save
<Spooner> kenneth : Well, that is easy. my_hash.extend module_with_extra_stuff_in
<workmad3> ^^ that also
Mchl has joined #ruby
<workmad3> (I always forget about .extend :D )
<Spooner> Oops my_hash.extend ModuleWithExtraStuffIn
dmiller has quit [Remote host closed the connection]
ckrailo has joined #ruby
<Spooner> Though again, I think a wrapper makes _considerably_ more sense.
dakine has quit [Ping timeout: 264 seconds]
asteve has joined #ruby
<kenneth> Spooner: so you'd make a class that has a .to_hash?
<kenneth> or w/e
sebastorama has joined #ruby
<Spooner> You are not adding Hash functionality to hash but making something quite different. Really, wrapping isn't difficult in Ruby!
<workmad3> kenneth: 'def method_missing(*args, &blk); @hash.send(*args, &blk); end;'
<workmad3> kenneth: stick that in a wrapper class, you proxy any unimplemented methods to the hash
<workmad3> (assuming the wrapped hash is in @hash, that is ;) )
<asteve> i'm trying to execute system `cat file | grep "^1."` from the shell in a ruby system call "cat file | grep \"^#{num}\.\""
<kenneth> I see
<Spooner> kenneth: module HashExt; def ping; puts "PING"; end; end; my_hash.extend HashExt
<asteve> but the . is not working
<Spooner> But again, I don't think this is the right way. I am just telling how to do it.
xyzodiac has quit [Quit: Computer has gone to sleep.]
<kenneth> Spooner: what do you think is the right way?
hvq has joined #ruby
hbpoison has joined #ruby
xyzodiac has joined #ruby
_dave_h_d has joined #ruby
<Spooner> Well, as I said, you aren't returning a hash if it has something like #save on it. I'd wrap it in another object and redirect the Hash methods it actually needs (def_delegators does this _really_ simply).
lggr has quit [Ping timeout: 246 seconds]
_bart has joined #ruby
bobbbo has quit [Quit: bobbbo]
<kenneth> Spooner: so do i have to list all the methods that i want to forward?
falieson has joined #ruby
<workmad3> kenneth: with forwardable, yes
<Spooner> Yeah, but it is likely you don't need many of them at all.
<falieson> hey Spooner =)
<falieson> Spooner: I goes my script to work! with ORM and everything
obryan has quit [Quit: Konversation terminated!]
<workmad3> yeah, if it's a wrapper around a hash representing a db row (or db data), chances are all you really need is the enumerable methods
vlad_starkov has joined #ruby
<Spooner> def_delegators :@my_hash, :[], :each, :keys, :values (etc).
kirun has quit [Quit: Client exiting]
LouisGB has quit [Ping timeout: 264 seconds]
<Spooner> falieson : Good on you. Did you feel you used a battleship to hammer in a nail or are you happy now? :D
<workmad3> :[], :[]= possibly (although if you want to handle saving, I'll bet you actually want your own []= implementation ;)), :each, maybe :map
ZubKonst_ has quit [Ping timeout: 256 seconds]
hbpoison has quit [Ping timeout: 264 seconds]
<Synthead> what's wrong here? http://pastie.org/4811827 I can't get the mysql gem to instal
<Spooner> Looks like it is looking for mysql header files. You probably need to install mysql externally.
lggr has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
<Synthead> Spooner: mysql and the headers are installed (that's what the locate was supposed to indicate)
_dave_h_d has quit [Quit: _dave_h_d]
<Spooner> Synthead : That's all I have, sorry :/
thillux_ has joined #ruby
thillux__ has joined #ruby
Nisstyre is now known as Nisstyre_
Nisstyre_ is now known as Nisstyre
<Synthead> Spooner: do you know if I can pass an "include" path to gem?
<Hanmac> Synthead: make me a pastie of mkmf.log
<Spooner> kenneth workmad3 However, if you are just getting rows back from a database, why not use one of the many existing ORM systems rather than rolling your own?
<Spooner> Synthead : Huh? You mean an include path to the C compiler?
<Synthead> Spooner: yeah, cause mysql.h is on the system for sure
<Synthead> Hanmac: getting it ready :)
<workmad3> Spooner: I don't do this :)
dagnachewa has joined #ruby
<workmad3> Spooner: I just happened to be echoing you because you type too fast :P
<Spooner> In extconf.rb: $CFLAGS << %{ -I"path/to/include"}
thillux has quit [Ping timeout: 244 seconds]
<workmad3> Synthead: is mysql_config available on your path?
<Spooner> workmad3 : I was getting your attention, not telling you to do it that way :D
<workmad3> Spooner: :D
tgraham has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
_bart has quit [Quit: _bart]
<Spooner> Synthead Oops, yes, but that is not a useful place for you to add CFLAGS. You mean to gem. Er, you can. I can't remember how though.
thillux_ has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 252 seconds]
<Synthead> Hanmac: http://pastie.org/4811867
vlad_starkov has quit [Ping timeout: 240 seconds]
<workmad3> Synthead: 'which mysql_config' <-- does that give you anything?
<Synthead> workmad3: /usr/bin/mysql_config
<workmad3> hmm, does it return sane values if you run it?
ttt has joined #ruby
<workmad3> e.g. mysql_config --cflags
<Synthead> workmad3: -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
<workmad3> because, afaik, the mysql and mysql2 gems both use mysql_config if it's available
<Hanmac> workmad3 this does not help, it seems that the mysql gem dont use mysql_config
etehtsea has quit []
pfaff has quit [Ping timeout: 268 seconds]
ij has quit [Ping timeout: 264 seconds]
<workmad3> Hanmac: it always did when I used it in the past
<Hanmac> hm
<Synthead> workmad3, Hanmac: mysql2 fails the same way
snorkdude has quit [Remote host closed the connection]
lggr has joined #ruby
jrist is now known as jrist-dogwalk
ttt has quit [Ping timeout: 240 seconds]
<Hanmac> hm i think that it could be 1.8's fault ...
<falieson> Spooner: I went with sequel and it fixed my db problem. So it doesn't matter if it was a battleship or a hammer
<falieson> Spooner: at least the nail is in
<falieson> Spooner: bonus though, is now I know ORM
<Spooner> falieson : Working is always good.
Juul is now known as \Bob\
ph^ has joined #ruby
<falieson> ever used since_id with the twitter API?
slicslak has quit [Ping timeout: 240 seconds]
\Bob\ is now known as Juul
<workmad3> Hanmac: just checked the extconf.rb for mysql 2.8.1... it definitely looks for mysql_config
<Synthead> Hanmac: surely mysql works on 1.8.x
drnfx has joined #ruby
joofsh has quit [Ping timeout: 264 seconds]
ZubKonst has joined #ruby
fir_ed has quit [Read error: Connection reset by peer]
slicslak has joined #ruby
<Hanmac> Synthead try to install it with --verbose ... or somthing like that ... it maybe something wrong with the mkmf check
stopbit has quit [Quit: Leaving]
chimkan has joined #ruby
chimkan has left #ruby [#ruby]
<Hanmac> PS: ruby1.8 is do dump to understand C++ header
falieson has quit [Quit: you're awesome!]
lggr has quit [Ping timeout: 245 seconds]
<Synthead> Hanmac: --verbose doesn't show any more information than that of "non-verbose"
catphish has quit [Quit: Leaving]
plu has quit [Ping timeout: 260 seconds]
<workmad3> Synthead: oh wow, have you looked at line 63 of your pastie? http://pastie.org/4811867
fir_ed has joined #ruby
<Synthead> ahhhh, ccache
foysavas has joined #ruby
<workmad3> Synthead: the one which has -I/usr/include/mysql in it? :)
plu has joined #ruby
techhelp has joined #ruby
techhelp has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 245 seconds]
issyl0 has quit [Ping timeout: 600 seconds]
<deryl> I have dtf gem listed as a dep of dtf-session. In 'dtf' I have a couple thor tasks. How do I make those tasks available to 'dtf-session'? basically I need to be able to execute the thor tasks in the dtf gem within the directory structure of dtf-session, and be listable (bundle exec thor list). Trying to build so that any dtf-* gem can call the dtf master gem's thor tasks and pull in files in dtf to the calling gem's dirs.
Bosma has quit [Ping timeout: 264 seconds]
<foysavas> hey everyone, general question: why do you use IRC over things like twitter and q&a websites?
pettsson has quit [Remote host closed the connection]
<deryl> websites take longer and 140 chars is not enough to discuss things especially when most of what we deal with matters in the details
<Spooner> Because it is instant and inclusive.
<Synthead> workmad3: 1 gem installed
<workmad3> foysavas: because IRC rocks!
<Synthead> workmad3: thanks!!
lggr has joined #ruby
<foysavas> thanks for the answers all :-)
haxrbyte has quit [Ping timeout: 248 seconds]
<foysavas> i miss the days when IRC was more popular, and when you would go to tech conference and there was an irc backchannel
<chiel> has any of you used mongodb in ruby?
<workmad3> Synthead: what was it with the cache then?
<Spooner> I have, but not much.
<Spooner> chiel : I used Mongoid once, at least.
<chiel> i'm wondering about something that is (i think) very basic
<chiel> i want to filter based on a property inside a document, except it's not at the root level
<Synthead> workmad3: I'm under pressure to finish something, so I did the unspeakable
<Synthead> workmad3: created a symlink
<Spooner> Well, that rather depends on which ORM you are using, chiel
<chiel> Spooner: i'm using the "mongo" gem
Forevernade has quit [Read error: Connection reset by peer]
<guest__> I've used the mongomapper gem :p
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
<chiel> it has .find() which allows to pass an object of properties to filter by the looks of it
emsilva has quit [Client Quit]
<chiel> but in the tutorial it only shows how to query root level
Forevernade has joined #ruby
<workmad3> Synthead: a symlink of what?
<workmad3> Synthead: I'm confused and confuddled now :P
<Spooner> No idea then.
<Synthead> workmad3: ln -s /usr/lib64/ccache/gcc /usr/bin/gcc
<workmad3> Synthead: ah, that was causing issues?
<workmad3> :)
<Synthead> workmad3: or, wait, ln -s /usr/bin/gcc /usr/lib64/ccache/gcc
<Synthead> workmad3: yeah, certainly way
<Synthead> was
ephemerian has left #ruby [#ruby]
<workmad3> :)
bier has quit [Ping timeout: 244 seconds]
rabidpraxis has quit [Remote host closed the connection]
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
<workmad3> Synthead: I wasn't actually looking at that btw... I was wondering what the hell was going on because the -I was definitely there ;)
<Synthead> workmad3: ahhhh, haha. code in pairs ;)
lggr has quit [Ping timeout: 245 seconds]
<Spooner> Or code with a pear. They are surprisingly knowledgable as a rule.
<workmad3> Spooner: in terms of knowledge, I've always found pineapples superior to pears
ashkanr has left #ruby [#ruby]
drnfx has left #ruby ["Leaving"]
budha has quit []
pfaff has joined #ruby
juarlex has quit [Remote host closed the connection]
jarred has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
<Spooner> I have to admit I've not tried to work with pineapples. Always seemed a bit unfriendly, or maybe they just don't like hippies?
<blazes816> nobody likes hippies
<blazes816> you smelly hippy
<workmad3> not even hippies like hippies
guest__ has quit [Quit: Computer has gone to sleep.]
<workmad3> but even so, pineapples are completly anti-social bastards
<workmad3> but they know a lot :)
<Spooner> Fair enough.
<workmad3> bloody know-it-alls...
jwg2s has quit [Quit: jwg2s]
asteve has quit [Quit: Computer has gone to sleep.]
monobit_ is now known as asteve
jarred has joined #ruby
<Gate> either way, your still working at the level of fruit.
justinmcp has joined #ruby
hvq has quit [Ping timeout: 264 seconds]
<Spooner> You obviously haven't met many programmers. Most would be better replaced by a banana, I should think!
jamjam has quit [Ping timeout: 245 seconds]
nari has joined #ruby
<Gate> Did I say it was a bad thing?
tommyvyo has joined #ruby
vitoravelino is now known as vitoravelino`afk
vitoravelino`afk is now known as vitoravelino
workmad3 has quit [Ping timeout: 246 seconds]
<Spooner> No, no, you didn't.
lggr has quit [Ping timeout: 240 seconds]
luckyruby has quit [Remote host closed the connection]
sent-hil has joined #ruby
pfaff has quit [Ping timeout: 245 seconds]
bier has joined #ruby
headius has quit [Quit: headius]
lggr has joined #ruby
lantins has quit [Ping timeout: 248 seconds]
gogiel has quit [Read error: Operation timed out]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
pfaff has joined #ruby
ph^ has joined #ruby
c0rn_ has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
jblack has quit [Ping timeout: 264 seconds]
mmitchell has joined #ruby
gogiel has joined #ruby
gfkjunior has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
digitalcakestudi has joined #ruby
dagnachewa has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
hbpoison has joined #ruby
snorkdude has joined #ruby
mmitchell has quit [Ping timeout: 256 seconds]
justinmcp has quit [Remote host closed the connection]
tbbach has joined #ruby
chrisbolton has quit [Quit: chrisbolton]
<gfkjunior> Hey ya'll. quick noob question. I'm trying to implement an aes ctr mode cipher but the official ruby openssl docs are terrible. How can I look at the 'openssl' source?
lggr has joined #ruby
<gfkjunior> I know there is "gem search -r <term>"
<gfkjunior> but that didn't find it...
ph^ has quit [Ping timeout: 256 seconds]
hbpoison has quit [Ping timeout: 252 seconds]
thillux__ has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 245 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
digitalcakestudi has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
vlad_starkov has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
GoHuyGo has quit [Quit: Leaving]
Synthead has quit [Quit: p33 ba115]
schickung has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mercwithamouth has quit [Ping timeout: 264 seconds]
digitalcakestudi has joined #ruby
cantonic has quit [Quit: cantonic]
lggr has joined #ruby
Targen has quit [Ping timeout: 256 seconds]
schickung has quit [Client Quit]
xyzodiac has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 265 seconds]
snorkdude has joined #ruby
jenrzzz_ has joined #ruby
ttt has joined #ruby
Forevernade has joined #ruby
Targen has joined #ruby
falieson has joined #ruby
skogis has quit [Ping timeout: 240 seconds]
pfaff has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
<falieson> http://pastie.org/4812230 undefined local variable or method `max_id' for main:Object
<falieson> I know I need to move max_id outside but it needs to be inside
<falieson> or maybe I don't know
samflores has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
jgrevich_ has joined #ruby
<chiel> what's the easiest way to generate random 5 character base62 strings?
mercwithamouth has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
jimeh has quit [Ping timeout: 240 seconds]
jenrzzz_ has quit [Ping timeout: 264 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
Turn_Left has joined #ruby
Turn_Left has left #ruby [#ruby]
qq99 has joined #ruby
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
jeffreybaird has joined #ruby
<qq99> Hi guys, I'm exposing https://github.com/qq99/sinatra-temporary-proxy/blob/master/app.rb to the net. I'm worried specifically about calls to File.read/open/write being vulnerable. See anything (line 86 onwards) that looks terrible?
foysavas has quit [Ping timeout: 245 seconds]
<zhando> somearray.compact.sort.each_index {|i| thatcompactsortedarray[i+1] unless i == thatcompactsortedarray.size - 1 ;# how would you get at that thingy?
lggr has joined #ruby
hvq has joined #ruby
akemEikko has quit [Ping timeout: 252 seconds]
justinmcp has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
cakehero has joined #ruby
cakehero has quit [Client Quit]
skogis has joined #ruby
fantazo has joined #ruby
glyytchy has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
ph^ has joined #ruby
gfkjunior has quit [Quit: Leaving]
cakehero has joined #ruby
jokar1 has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
jokar has quit [Ping timeout: 240 seconds]
fredjean has quit [Quit: Computer has gone to sleep.]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
AlbireoX has joined #ruby
joelsbeard has quit [Ping timeout: 244 seconds]
luckyruby has joined #ruby
brianpWins has quit [Quit: brianpWins]
<zhando> exit
zhando has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
lggr has joined #ruby
soulisson has quit [Quit: Quitte]
<Spooner> chiel : BASE62 = (('0'..'9').to_a + ('a'..'z').to_a + ('A'..'Z').to_a); 5.times.map { BASE62.sample }.join
heftig has quit [Ping timeout: 240 seconds]
pfaff has joined #ruby
sent-hil has quit [Remote host closed the connection]
sneakyness_wk has quit [Quit: quitting time]
xeronic has joined #ruby
fyolnish has quit [Remote host closed the connection]
<chiel> Spooner: ah, that's much more elegant than what I came up with lol. thanks :)