fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
artOfWar has joined #ruby
derpops has joined #ruby
idletom has joined #ruby
dagnachewa has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
BdeUtra has quit [Ping timeout: 276 seconds]
shiki has quit [Remote host closed the connection]
havenn has joined #ruby
diwank has joined #ruby
bricker has quit [Quit: Leaving.]
minijupe has joined #ruby
<diwank> annanie
butblack has joined #ruby
<davidcelis> annannannannanie
machty has quit [Ping timeout: 240 seconds]
diwank has left #ruby [#ruby]
machty has joined #ruby
lggr has joined #ruby
podde has left #ruby [#ruby]
dagnachewa has quit [Remote host closed the connection]
<havenn> require 'active_support/inflector'; 'annannannannanie'.pluralize
khakimov has joined #ruby
kenfdev has quit [Remote host closed the connection]
<davidcelis> lol @ ActiveSupport::Inflector::Inflections
<davidcelis> just lol
<invisime> davidcelis: but without it, how will my code be pretty?!
ephemerian has quit [Quit: Leaving.]
butblack has left #ruby [#ruby]
<davidcelis> im not loling at the inflector
<davidcelis> im loling at the default rules
LouisGB has quit [Ping timeout: 244 seconds]
rudyl313 has quit [Quit: Page closed]
kvirani has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
bradhe_ has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
<havenn> davidcelis: 'loloctopus'.pluralize #=> "loloctopi"
ckrailo has quit [Quit: Computer has gone to sleep.]
maletor has quit [Quit: Computer has gone to sleep.]
shadoi has joined #ruby
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
maletor has joined #ruby
<seanstickle> Wrong pluralization.
<udk> havenn: 'bus'.pluralize then?
lggr has joined #ruby
tyfighter has quit [Quit: tyfighter]
gabrielrotbart has joined #ruby
<havenn> udk: #=> "buses"
<udk> bleh. not funny :P
snorkdude has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
bigoldrock has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
Virunga has quit [Quit: Sto andando via]
busybox42 has quit [Quit: Leaving.]
pskosinski has joined #ruby
shiki has joined #ruby
busybox42 has joined #ruby
ngoldman has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 240 seconds]
Guedes0 has joined #ruby
shikamaru has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
Averna has joined #ruby
justsee has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
lggr has joined #ruby
ffranz has quit [Ping timeout: 264 seconds]
austinbv has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
<invisime> shevy: what was the name of that virtualization software I'm supposed to be looking at for al2o3cr?
neer has joined #ruby
keppy has quit [Remote host closed the connection]
geggam has quit [Read error: Connection reset by peer]
gautamc has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 240 seconds]
araujo has quit [Ping timeout: 252 seconds]
chrishunt has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
cbuxton has quit [Quit: Leaving.]
gautamc has joined #ruby
lggr has joined #ruby
phelps has joined #ruby
shikamaru has joined #ruby
rboyd has joined #ruby
awarner has joined #ruby
mwillhite has quit [Ping timeout: 240 seconds]
ken_barber has joined #ruby
machty has quit [Quit: machty]
awarner has quit [Remote host closed the connection]
bradhe has joined #ruby
yekta has quit [Quit: yekta]
qos has quit [Quit: Linkinus - http://linkinus.com]
awarner has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
tjbiddle_ has joined #ruby
tjbiddle_ has quit [Client Quit]
toastie has joined #ruby
specialGuest has quit [Quit: WeeChat 0.3.8]
toastie has quit [Remote host closed the connection]
mva3212 has joined #ruby
toastie has joined #ruby
al2o3cr has joined #ruby
toastie has quit [Remote host closed the connection]
headius has quit [Quit: headius]
lggr has joined #ruby
toastie has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
araujo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
neer has quit [Ping timeout: 245 seconds]
abionic has quit [Ping timeout: 240 seconds]
dakine has joined #ruby
aantix_ has joined #ruby
hbpoison has joined #ruby
mikepack has quit [Remote host closed the connection]
al2o3cr has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
w400z has quit []
aantix has quit [Ping timeout: 244 seconds]
phelps has left #ruby ["Linkinus - http://linkinus.com"]
thorncp has quit [Ping timeout: 240 seconds]
aantix_ has quit [Ping timeout: 244 seconds]
pfaff has quit [Ping timeout: 260 seconds]
tommyvyo_ has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
hbpoison has quit [Ping timeout: 256 seconds]
ianbrandt has quit [Quit: ianbrandt]
pu22l3r has joined #ruby
loves_co_ has joined #ruby
<dekz> Do I have this assumption correct, the Unicorn Master runs the Sinatra configure and forks afterwards?
Targen has joined #ruby
lggr has joined #ruby
tommyvyo has quit [Ping timeout: 246 seconds]
tommyvyo_ is now known as tommyvyo
jarray52 has joined #ruby
rjsamson has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
tjbiddle has joined #ruby
perry has quit [Ping timeout: 260 seconds]
jarray52 has quit [Client Quit]
sparki has joined #ruby
pradeepto has quit [Ping timeout: 246 seconds]
perryh has joined #ruby
gurps has quit [Ping timeout: 246 seconds]
pu22l3r_ has quit [Ping timeout: 246 seconds]
loves_color_text has quit [Ping timeout: 246 seconds]
blazes816 has quit [Quit: blazes816]
horofox has joined #ruby
gurps has joined #ruby
pradeepto has joined #ruby
boris317 has quit [Ping timeout: 246 seconds]
nacengineer has quit [Ping timeout: 252 seconds]
timonv has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
timonv has joined #ruby
savage- has joined #ruby
pfaff has joined #ruby
thorncp has joined #ruby
busybox42 has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
josh^ has joined #ruby
rmcafee has joined #ruby
BrokenCog has quit [Quit: leaving]
busybox42 has joined #ruby
rmcafee has quit [Client Quit]
busybox42 has quit [Remote host closed the connection]
dakine has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
dagnachewa has joined #ruby
dagnachewa has quit [Client Quit]
dagnachewa has joined #ruby
ncr100 has quit [Ping timeout: 244 seconds]
cakehero has joined #ruby
Hanmac1 has joined #ruby
jenrzzz has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
busybox42 has joined #ruby
vitor-br has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
roadt has quit [Read error: Connection reset by peer]
snuglepuss has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 272 seconds]
niklasb has quit [Ping timeout: 245 seconds]
zommi has joined #ruby
lggr has joined #ruby
pu22l3r has quit [Remote host closed the connection]
ckrailo has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
_br_ has quit [Excess Flood]
jenrzzz has quit [Ping timeout: 244 seconds]
nacengineer has joined #ruby
_br_ has joined #ruby
bbttxu has joined #ruby
araujo has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 256 seconds]
bbttxu has quit [Client Quit]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
loves_co_ has quit [Remote host closed the connection]
swarley has joined #ruby
jenrzzz has joined #ruby
sparki has quit [Quit: WeeChat 0.3.8]
Guedes0 has quit [Ping timeout: 240 seconds]
austinbv has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
lggr has joined #ruby
_br_ has quit [Excess Flood]
Chryson has joined #ruby
_br_ has joined #ruby
awarner has quit [Remote host closed the connection]
pu22l3r has joined #ruby
coyo has quit []
tjbiddle has quit [Quit: tjbiddle]
w400z has joined #ruby
mmitchell has quit [Ping timeout: 240 seconds]
Aaaarg has quit [Quit: Aaaarg]
ken_barber has quit [Remote host closed the connection]
TomJ has joined #ruby
TomJ has joined #ruby
jonathanwallace has joined #ruby
_br_ has quit [Excess Flood]
_br_ has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
mikepack has joined #ruby
apok_ has joined #ruby
justsee has quit [Read error: Connection reset by peer]
apok_ has quit [Client Quit]
robbyoconnor has joined #ruby
billycravens has joined #ruby
robbyoconnor has quit [Client Quit]
davidcelis has joined #ruby
<havenn> dekz: Yeah, Unicorn loads the app in the master process before forking worker processes: http://unicorn.bogomips.org/Unicorn/Configurator.html
mmitchell has joined #ruby
apok has quit [Ping timeout: 240 seconds]
dagnachewa has quit [Quit: Leaving]
<havenn> I, for one, welcome our new overlord, the Unicorn Master.
slicslak has quit [Ping timeout: 256 seconds]
havenn has quit [Remote host closed the connection]
voodoofish430 has quit [Quit: Leaving.]
uris has joined #ruby
awarner has joined #ruby
lggr has joined #ruby
loves_color_text has joined #ruby
mrsolo has quit [Quit: Leaving]
austinbv has joined #ruby
robozahn has quit [Ping timeout: 265 seconds]
lggr has quit [Ping timeout: 240 seconds]
robozahn has joined #ruby
Agis__ has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
Bosma has joined #ruby
ttt has joined #ruby
sparki has joined #ruby
hbpoison has joined #ruby
lggr has joined #ruby
zommi has quit [Quit: Leaving.]
w400z has quit []
pipopopo has quit [Ping timeout: 240 seconds]
pipopopo has joined #ruby
joelsbeard has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
l337hax0r has joined #ruby
Meepsheep has joined #ruby
swarley_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
l337hax0r has left #ruby [#ruby]
<Meepsheep> i decided to name my imaginary sister ruby
derpops has quit []
cocaine-cowboy has joined #ruby
cocaine-cowboy has quit [Client Quit]
spazijax has joined #ruby
<spazijax> i wanna learn ruby
Meepsheep has quit [Killed (idoru (Spam is off topic on freenode.))]
<spazijax> meebsheep
pen has joined #ruby
spazijax has quit [Client Quit]
headius has joined #ruby
lggr has joined #ruby
fir_ed has joined #ruby
savage- has quit [Remote host closed the connection]
<fir_ed> Is there a way to hide the ruby interpreter from taskmanager?
<seanstickle> Yes
blazes816 has joined #ruby
<banisterfiend`> seanstickle sup stick
GraemeLion has left #ruby [#ruby]
<seanstickle> Hey Bruce Banner
lggr has quit [Ping timeout: 252 seconds]
awarner has quit [Remote host closed the connection]
alvaro_o has quit [Quit: Ex-Chat]
c0rn_ has quit [Quit: Computer has gone to sleep.]
vitor-br has quit [Quit: Saindo]
geggam has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
binaryplease has quit [Quit: WeeChat 0.3.8]
lggr has joined #ruby
AlbireoX has quit [Remote host closed the connection]
<fir_ed> seanstickle, oh. would you please enlighten?
<fir_ed> seanstickle, I need this ability for one of my projects
EPIK has quit [Read error: Connection reset by peer]
<seanstickle> fir_ed: hijack the task manager and replace with a trojan version that hides your ruby.exe
aaronmacy has joined #ruby
<fir_ed> seanstickle, In others words, you're telling me its not possible and to screw off? lol
<wallerdev> are there any good ruby irc bot gems
blazes816 has quit [Quit: blazes816]
<seanstickle> fir_ed: no, I'm telling you how to do it.
<seanstickle> fir_ed: you could also explain what you're trying to do, so that I don't have to resort to fanciful options.
<wallerdev> half the ones on google just end in 404s haha
<fir_ed> seanstickle, I don't want my target audience to know that my program runs on ruby.
<seanstickle> Ah.
<seanstickle> Compile it.
<fir_ed> There exists ruby compile options?
<seanstickle> fir_ed: Sure. JRuby does a splendid job of this.
<fir_ed> I thought all current compile options just bundled up the interpreter
wuzzzzaah has joined #ruby
<fir_ed> Jruby just makes it run on the JVM
<fir_ed> not really compiling..unless you count java bytecode 'compiling'
<seanstickle> Yes, that is compiling.
<fir_ed> But anyways, thanks for the info!
<seanstickle> There is also Rubinius which compiles Ruby.
cakehero has quit [Quit: Computer has gone to sleep.]
<seanstickle> It's as though you didn't even check.
<seanstickle> Amazing.
pingfloyd has joined #ruby
rjsamson has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
<invisime> wallerdev: al2o3cr is an implementation that I'm working on getting configured for this channel.
dagnachewa has joined #ruby
<wallerdev> thats a difficult name to remember lol
geggam has quit [Read error: Connection reset by peer]
<invisime> wallerdev: indeed. the catch is in making a sufficient jail to run it in. the solution I'm trying to use is vagrant.
<wallerdev> ah cool a ruby executing bot :)
<wallerdev> system("rm -rf /") :)
lggr has quit [Ping timeout: 255 seconds]
<invisime> wallerdev: but I only have time to work on it in the evenings after work and I don't want to allow people to execute arbitrary code until I've put them in a jail of some sort.
<wallerdev> yeah makes sense
<invisime> that particular command would fail because you don't have write permissions on '/'.
justinmcp has quit [Remote host closed the connection]
awarner has joined #ruby
<wallerdev> yeah theres that and infinite loops / long output
<invisime> wallerdev: anyway, if you're just looking for a ruby implementation for a general IRC bot, cinch is pretty fully featured.
<wallerdev> yeah i actually just found cinch a few minutes ago
<wallerdev> the ruby inside article on it linked me to https://github.com/ichverstehe/isaac
<invisime> yep, which are handled by resource limitations in open3 and a custom "squash" method respectively.
<wallerdev> which is 404d now since its in a different repo now
justinmcp has joined #ruby
CarlB_the_great has joined #ruby
<invisime> anyway, I've gotta log off.
<wallerdev> alright, have a good day
<invisime> the wife wants some attention for some reason. :-P
<wallerdev> pfft
<wallerdev> :p
<invisime> she's naked. :-P
<wallerdev> distract her with angry birds
<invisime> lol.
seanstickle has quit [Quit: seanstickle]
* invisime part "Busy playing 'angry birds.'"
invisime has left #ruby [#ruby]
blazes816 has joined #ruby
awarner has quit [Remote host closed the connection]
<swarley_> flick your angry pecker at her piggy
lggr has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
crodas has joined #ruby
austinbv has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
mucker has joined #ruby
wuzzzzaah has quit [Quit: wuzzzzaah]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
justsee has quit [Client Quit]
beachandbytes has quit []
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
ebobby has joined #ruby
gfontenot has quit []
aaronmacy has quit [Ping timeout: 244 seconds]
aces1up has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
<aces1up> hey if i'm doing an .each on an array, is there a way inside the .each to snag the next element without progressing the enumerator?
lggr has quit [Ping timeout: 268 seconds]
<aces1up> .each do |ele| next_ele = next #<--- something like this?
xyon has joined #ruby
<fir_ed> aces1up, That's an interesting question.
<fir_ed> I wish I knew
xyon has left #ruby [#ruby]
<aces1up> I don't want to use the index, just was looking for something more elegant.
<aces1up> .each_with_index kinda thing.
<fir_ed> you could go with an old-fashioned for loop
chrishunt has quit [Read error: Connection reset by peer]
<fir_ed> I know ruby has an implementation of that.
<aces1up> I dunno if that is something I can use inside the block?
tarwich1 has joined #ruby
chrishunt has joined #ruby
yann2 has quit [Ping timeout: 246 seconds]
tarwich1 has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
joofsh has joined #ruby
tarwich1 has joined #ruby
monkegjinni has joined #ruby
gabrielrotbart has quit [Ping timeout: 245 seconds]
radic has quit [Disconnected by services]
monkegjinni has quit [Read error: Connection reset by peer]
radic_ has joined #ruby
Agis__ has quit [Quit: Agis__]
radic_ is now known as radic
lggr has joined #ruby
Playground has joined #ruby
SCommette has quit [Quit: SCommette]
robotarmy24 has joined #ruby
robotarmy24 has left #ruby [#ruby]
rboyd has left #ruby [#ruby]
bradhe_ has joined #ruby
austinbv has joined #ruby
<swarley_> aces1up, you'd have to make your own loop i believe
<swarley_> a for loop would work
<swarley_> err
<swarley_> while(x.shift); do something with x; end;
bradhe has quit [Ping timeout: 246 seconds]
<swarley_> x[1] would be the next element
mikepack has quit [Remote host closed the connection]
<swarley_> you would want to do new_ary = org_ary.dup
<swarley_> if you chose to go that route
<swarley_> choose
wpaulson has joined #ruby
mmitchell has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
Playground has quit [Quit: Lost terminal]
<swarley_> another problem with that is that it messes up zero indexing
tarwich1 has quit [Read error: Connection reset by peer]
tarwich1 has joined #ruby
wpaulson_ has joined #ruby
<swarley_> aces1up, http://pastebin.com/ak2VwTTg
<swarley_> you could easily make it a function for Array though
jonathanwallace has joined #ruby
<swarley_> well
<swarley_> it would be easier to have it be a general method
<swarley_> meh
<swarley_> it's easier to leave it as is
butblack has joined #ruby
butblack has quit [Client Quit]
ryh has joined #ruby
wpaulson has quit [Ping timeout: 248 seconds]
wpaulson_ is now known as wpaulson
TomJ has quit [Quit: TomJ]
lggr has joined #ruby
AlbireoX has joined #ruby
Juul has quit [Read error: Operation timed out]
justinmcp has quit [Remote host closed the connection]
ggreer has left #ruby [#ruby]
gabrielrotbart has joined #ruby
tarwich1 has quit [Read error: Connection reset by peer]
tarwich1 has joined #ruby
adelcampo has quit [Read error: Connection reset by peer]
ken_barber has joined #ruby
adelcampo has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Monofu has joined #ruby
ryanf has quit [Quit: leaving]
<Monofu> Hey, so I'm trying to scrape and parse Lifehacker's How I Work section. I'm having a little trouble with Hpricot. Does anybody have any suggestions? I'm putting into two hashes so I can merge it and create a new record in my model later. https://gist.github.com/3741045
headius has quit [Quit: headius]
<Monofu> I'm getting an error that says: "undefined method `attributes' for "\n\t\t\t\t\t\t\t\t":Hpricot::Text"
tarwich1 has quit [Read error: Connection reset by peer]
<Monofu> Any ideas?
lggr has joined #ruby
<swarley_> Monofu, can you give more information on the error?
<swarley_> point us to the line
SCommette has joined #ruby
<Monofu> Here's the trace:
<swarley_> Monofu, examine the results of doc.search('a.headline[@href ^="http://"]')
<swarley_> and see what objects are given
<swarley_> if it is Hpricot::Text, then there are no attributes
<Monofu> swarley_: It's working...https://gist.github.com/3741070. I think the error is occuring because some of the links don't have images..
<Monofu> swarley_: I've tried to use regex and filter them out to no avail.
<swarley_> oh, you'll want to use something like a.. hm.. /img maybe
<swarley_> does the image have a class/id attribute?
<Monofu> swarley_: The image is a child element with the class of 'thumb'
<swarley_> well then try
<swarley_> doc/"[@class='thumb']"
tarwich1 has joined #ruby
<swarley_> doc/"img[@class='thumb']" if you want insurance
<swarley_> assurance
<swarley_> *
aantix has joined #ruby
<Monofu> The problem with that there are other images with the class of thumb that are not wanted.
lggr has quit [Ping timeout: 245 seconds]
<swarley_> what is the specific one you want?
<Monofu> eg. logos, and other gawker crap.
<swarley_> or, what makes it specific
<Monofu> the images of the people.
<swarley_> well i mean
<swarley_> in the HTML
<Monofu> for example, ttp://cache.lifehacker.com/assets/images/17/2009/07/matt-haughey.jpg
ryh has quit [Remote host closed the connection]
<swarley_> so
<swarley_> you want everything but
<swarley_> xsmall?
mucker has quit [Ping timeout: 240 seconds]
<Monofu> Sorry that was the wrong example image. My bad. I want all the images ending in xsmall. Thus, the: img.thumb[@src $="xsmall.jpg"]
<swarley_> ah
<swarley_> well
<banisterfiend`> swarley_ how com you use a different nick here to the one u have active in #pry ?
<swarley_> banisterfiend`, i usually have 'swarley' but the other nick is my phone
<banisterfiend`> oh ok, so it's your phone on #pry :)
mikeg has joined #ruby
ananthakumaran has joined #ruby
tarwich1 has quit [Quit: Leaving.]
<swarley_> Monofu, (doc/"img[@class='thumb']").select {|x| File.basename(x) == "xsmall.jpg" }
<swarley_> errr
<swarley_> sorry
<Monofu> swarley_: Sorry, what's the File.basename for?
<swarley_> that doesnt work lol
<swarley_> that gives you the file in the url
<swarley_> File.basename "http://www.test.com/dir/dir2/file.ext"
<swarley_> => "file.ext"
lggr has joined #ruby
<Monofu> ahh..yeah I'm hotlinking atm, will figure out how to download them later.
xyon has joined #ruby
xyon has left #ruby [#ruby]
<swarley_> Monofu, i'd recommend curl
CarlB_the_great has quit [Remote host closed the connection]
<Monofu> Why?
<swarley_> its been faster than standard download libraries in my experience
<swarley_> curb is the ruby bindings
<swarley_> Curl::Easy.perform("http://google.com").body_str
<Monofu> swarley_: I'm not really looking for speed. This is eventually going to be a cron/whenever job that'll run once a day. How does CURL differ from Hpricot in terms of ^.
<swarley_> oh, hpricot is more of a parser than a downloader
<swarley_> if you're looking to download images use open-uri
<swarley_> or net
<Monofu> Isn't open-uri a downloader?
<swarley_> and binary write
<swarley_> yes
<swarley_> wait
<swarley_> are you scraping for images?
<swarley_> or downloading them?
<Monofu> Kind of...scraping at the moment. Would downloading be easier?
<swarley_> uhm
<Monofu> And how would I get them to download into the correct rails folder.....
<swarley_> scraping for the urls is better to just use hpricot directly
<swarley_> but to actually download them i wouldnt use it
<Monofu> but.....filtering is so much easier....
<swarley_> I think you're misunderstanding me
<swarley_> Curl is JUST for downloading
<swarley_> like
khakimov has joined #ruby
<swarley_> Hpricot(Curl::Easy.perform(url).body_str)
<swarley_> Curl parses nothing
banisterfiend` has quit [Ping timeout: 260 seconds]
<swarley_> its just a faster way to actually get the HTML
<swarley_> or any file
<Monofu> I understood. Ruby's regex for parsing
<Monofu> ?
<swarley_> What?
<swarley_> Curl has nothing to do with parsing
<swarley_> Hpricot still does all of that
<Monofu> So what's the point of using open-uri vs. curl? Just speed?
<swarley_> yes, and curl is (i think) cross platform
<swarley_> (don't quote me)
lggr has quit [Ping timeout: 252 seconds]
<swarley_> but yes, major performance boost with curl generally
<Monofu> I think I may be onto something. Using inner_html, gives me a different error!
<Monofu> image = element.search('img.thumb[@src $="xsmall.jpg"]').inner_html
<Sargun> scat /etc/default/varnish|md5sum
<swarley_> that's because
<swarley_> you have an array of element
<swarley_> s
<Monofu> swarley_: Yeah I know but before, it would just give me 8 \t's (tabs...)
tommyvyo has quit [Quit: Computer has gone to sleep.]
<swarley_> uh
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
chimay has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
xaq has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
mmitchell has quit [Remote host closed the connection]
Essobi has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
machty has joined #ruby
m_3 has quit [Quit: leaving]
justsee has quit [Quit: Leaving...]
araujo has quit [Quit: Leaving]
<aces1up> swarley you there?
apok has joined #ruby
<Monofu> swarley_: It's not failing anymore! In a rescue block and rejecting blank ones did the trick! Thanks for all the help! Have a good night.
Monofu has quit [Quit: quit]
<aces1up> can't you convert enumerable to an enumerator via to_enum?
<aces1up> then traverse it via those functions?
<aces1up> yeh i think like this arr = [1,2,3,4,5].to_enum(:each)
lggr has joined #ruby
<bnagy> you can just do [1,2,3].each
<bnagy> more or less any enumerable will give you an enumerator if you omit the block
<aces1up> bnagy yes, but how to do I get the next element inside the block without using index.
<aces1up> thats ultimately what I want to do.
<bnagy> enum.net
<bnagy> *next
<aces1up> cool. ok last one, how do I set that element, instead of just reading it? when I set it, it doesn't let me.
kiyoura has quit [Quit: Leaving]
<bnagy> you can't
lggr has quit [Ping timeout: 246 seconds]
<bnagy> at least not without insanity
<bnagy> why would you want to do that?
joofsh has quit [Remote host closed the connection]
<aces1up> I want to set hash elements based on next element .
<aces1up> would I use something like inject for that?
<bnagy> that kind of pattern is usually with_object
<bnagy> inject can work, but it's uglier
m_3 has joined #ruby
<bnagy> and wrong
<aces1up> yeh, ok I will look at with_object.
xaq has quit [Remote host closed the connection]
<bnagy> [1,2,3].each.with_object({}) {|i,h| h[i]=i**2}
<bnagy> => {1=>1, 2=>4, 3=>9}
<bnagy> but that eats your whole enumerator all at once
<aces1up> hrmm
<bnagy> which kind of defeats the purpose of making an external iterator in the first place
mikeg has quit [Ping timeout: 248 seconds]
blazes816 has quit [Quit: blazes816]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
xaq has joined #ruby
havenn has joined #ruby
<bnagy> why are you using an external iterator in the first place? It's not a very common pattern tbh
ryanf has joined #ruby
lggr has joined #ruby
<aces1up> bnagy would it be ok to just use each_with_index and get the next element via index+1 and then just check for nil? anything wrong with doing that?
<bnagy> yes
<bnagy> it's dumb
<aces1up> lol
<aces1up> ok.. so any clean solution to get next element inside the .each block?
<bnagy> if you don't want nils then just #compact your collection in the first place, or next if nil; do stuff
mercwithamouth has quit [Quit: leaving]
cody-- has joined #ruby
<aces1up> ok alternatively when doing .each can I check if i'm on the last element somehow via last? or something like that?
xaq has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
<bnagy> no
<aces1up> ok
<bnagy> with an external iterator you can peek and rescue StopIteration
mercwithamouth has quit [Client Quit]
gabrielr_ has joined #ruby
nirst has joined #ruby
chrishunt has quit [Ping timeout: 246 seconds]
<aces1up> bnagy ok
gabrielrotbart has quit [Ping timeout: 245 seconds]
<bnagy> you can check {|elem| elem==coll.last?} but that's subject to the mercy of ==
yekta has joined #ruby
<bnagy> maybe it would be better to just outline your problem
mmitchell has quit [Remote host closed the connection]
cody-- has quit [Client Quit]
gautamc has quit [Ping timeout: 245 seconds]
cody-- has joined #ruby
verto is now known as verto|off
mercwithamouth has joined #ruby
<cody--> hey
cody-- has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
<aces1up> bnagy I have an array of hashes.. where i need to set a key on the hash[:verifier] based on the next hash in the array..
dagnachewa has quit [Remote host closed the connection]
Spooner has quit [Ping timeout: 240 seconds]
<bnagy> I guess you could use each_cons(2)
<bnagy> it's only ever the next one, right?
pu22l3r has quit [Remote host closed the connection]
<bnagy> this sounds like a horrible design though
<aces1up> bnagy yeh, it hindsight designed i bit dumb..
<bnagy> irb(main):172:0> [1,2,3,4].each_cons(2).to_a
<bnagy> => [[1, 2], [2, 3], [3, 4]]
chrishunt has joined #ruby
Essobi has joined #ruby
lggr has joined #ruby
<bnagy> so hashes.each_cons(2) {|this,nxt| ... }
banisterfiend` has joined #ruby
<bnagy> [1,2,3,4].each_cons(2).with_object({}) {|(a,b),h| h[a]=b}
Bosma has quit [Ping timeout: 244 seconds]
<bnagy> => {1=>2, 2=>3, 3=>4}
<bnagy> ;)
mmitchell has joined #ruby
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Ping timeout: 244 seconds]
xclite has quit [Remote host closed the connection]
aristidesfl has left #ruby [#ruby]
loves_color_text has quit [Remote host closed the connection]
<aces1up> http://codepad.org/jX9rjybO seems to be working fine.. see any issues?
lggr has quit [Ping timeout: 252 seconds]
boris317 has joined #ruby
yekta has quit [Quit: yekta]
mmitchell has quit [Ping timeout: 244 seconds]
sagax has quit [Quit: Ухожу я от вас]
<bnagy> ... but why?
thunderstrike has joined #ruby
<aces1up> bnagy not sure what you mean?
<bnagy> save_data.each_cons(2) {|me, nxt| set_verifiers(nxt)}
<bnagy> oh sry (me,nxt)
<aces1up> bnagy ok doke.
lusory has joined #ruby
burgestrand has quit [Quit: Leaving.]
<Sou|cutter> there was a blog post recently about overriding const_missing to do your own rails-style require-on-demand... pretty sure it related to a book somebody was writing. Does this ring a bell for anybody? My google fu is weak
<aces1up> what will nxt be if no next element? nil i take it?
<bnagy> there will always be a nxt
<aces1up> i see ok.
lggr has joined #ruby
michael_mbp_ has joined #ruby
emmanuelux has quit [Remote host closed the connection]
monkegjinni has joined #ruby
michael_mbp has quit [Ping timeout: 245 seconds]
michael_mbp_ is now known as michael_mbp
monkegjinni has quit [Read error: Connection reset by peer]
<Sou|cutter> ahhh screw it, I'll figure this out another way
luckyruby has joined #ruby
minijupe has quit [Quit: minijupe]
lggr has quit [Ping timeout: 256 seconds]
cpruitt has quit [Quit: cpruitt]
<swarley_> my google fu is strong
<Sou|cutter> hmm, that wasn't it (seems like a number of blog posts about the topic, obviously)
<swarley_> well
<swarley_> after a quick read it seems to do what you want (i think)
horofox has quit [Quit: horofox]
<swarley_> I've never actually used rails
<swarley_> sooo
<swarley_> i don't know
<swarley_> I probably should try
Guest64548 has joined #ruby
<swarley_> how easy is it to put a rails interface just on top of an app, like an IRC bot?
<Sou|cutter> I was sorta looking for the author name / book, that actual topic was just what I remembered seeing recently
<swarley_> was it Peter Cooper?
<Sou|cutter> nah, I don't think this book is released yet
<davidcelis> Petra Cotes
<swarley_> ah
lggr has joined #ruby
<davidcelis> why would you put a rails interface on top of an IRC bot
<davidcelis> what
<Sou|cutter> I'm not sure what that even means
<Sou|cutter> I shudder to think of such an abomination ;)
<swarley_> It was just an example :p
ananthakumaran has quit [Quit: Leaving.]
<swarley_> i would probably write my own little webrick if i were to do a web interface for something simple like that
<swarley_> o wait
<swarley_> i would do something stupid
<swarley_> like
<swarley_> NodeJS and unix sockets to communicate
<Sou|cutter> I would use ... I was just going to say that
<Sou|cutter> event-based makes sense for realtime chat
<swarley_> yeah
<swarley_> the only problem is asynchronisity
<swarley_> since IRC is stream based
charliesome has joined #ruby
mrdodo has quit [Remote host closed the connection]
bananagram has quit [Ping timeout: 268 seconds]
new299 has joined #ruby
<Sou|cutter> I have a feeling that the stream rate of irc would not be high enough to notice out of order messages
<Sou|cutter> I could be wrong, though
d3vic3 has quit [Ping timeout: 240 seconds]
<Sou|cutter> don't say that!
* Sou|cutter makes a subtle joke
<swarley_> well, it might not be an issue, depending on the nature of the client
<swarley_> if it's a logger, well
<swarley_> then you're sort of SOL
AlbireoX`Laptop has quit [Remote host closed the connection]
<swarley_> because order matters at that point
cody-- has joined #ruby
<nirst> good night, people
d3vic3 has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
nirst has quit [Quit: Page closed]
cody-- has quit [Quit: node-irc says goodbye]
swarley has quit []
gabrielr_ has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
evilsushi has quit [Quit: Lost terminal]
abionic has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
aantix has quit [Quit: aantix]
mohits has joined #ruby
justinmcp has joined #ruby
lggr has joined #ruby
tarwich has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
SCommette has quit [Quit: SCommette]
diwank has joined #ruby
diwank has left #ruby [#ruby]
lggr has quit [Ping timeout: 245 seconds]
swarley_ has quit [Ping timeout: 256 seconds]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
diwank has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
chussenot has joined #ruby
lggr has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
Guest64548 has quit [Ping timeout: 240 seconds]
uris has quit [Quit: leaving]
mrdodo has joined #ruby
seoaqua has joined #ruby
ananthakumaran has joined #ruby
mrdodo has quit [Remote host closed the connection]
mrdodo has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
mohits has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
abionic has quit [Ping timeout: 260 seconds]
mrdodo has quit [Remote host closed the connection]
diwank has left #ruby [#ruby]
diwank has joined #ruby
diwank has quit [Quit: leaving]
lggr has joined #ruby
areil has joined #ruby
mahmoudimus has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Monie has quit [Ping timeout: 245 seconds]
a_a_g has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
sspiff has quit [Read error: Operation timed out]
<karstensrage> how widespread is 1.9 usage?
aaronmacy has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<voodoofish> ruby?
<voodoofish> I use 1.9.2
<banisterfiend`> karstensrage very widespread
Yomero_ has quit [Ping timeout: 252 seconds]
<karstensrage> my ubuntu 12.04 is 1.8 and so is mac os x
lggr has joined #ruby
<bnagy> system versions are often old
rakl has joined #ruby
abionic has joined #ruby
gabrielrotbart has joined #ruby
<RubyPanther> I use 2.0 dev but 1.9 has been "stable" version for what, over 3 years?
<karstensrage> oh that long
<karstensrage> ok
<voodoofish> rI use rvm
<bnagy> 1.8 is srsly in retirement mode, it would be harmful to learn / use it now
<karstensrage> whys it on ubuntu and mac os x?
sebastorama has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 256 seconds]
arturaz has joined #ruby
pingfloyd has quit [Quit: pingfloyd]
busybox42 has quit [Remote host closed the connection]
<karstensrage> what do ruby guys listen to in terms of music
shadoi has quit [Quit: Leaving.]
<Mon_Ouie> I don't think the use of Ruby makes a big difference in one's musical tastes
<karstensrage> hehe i dont either but i like getting music suggestions from random peeps
<a_a_g> a lot of us listen to sinatra :P
<karstensrage> thats that rack framework?
<voodoofish> a_a_g, LOL
lggr has joined #ruby
<karstensrage> https://www.youtube.com/watch?v=Xp67gCk0rJU my suggestion for the night
<a_a_g> karstensrage, yes, its the rack framework
<karstensrage> yeah i recall it from my foray into warden
lepht has quit [Quit: ZNC - http://znc.sourceforge.net]
psino has quit [Quit: .]
crankyco1er has quit [Ping timeout: 260 seconds]
devdazed has quit [Ping timeout: 260 seconds]
psino has joined #ruby
oz has quit [Ping timeout: 260 seconds]
jgrevich has quit [Quit: jgrevich]
lepht has joined #ruby
<karstensrage> what are the bots doing with the downloaded gems?
chetan- has quit [Ping timeout: 260 seconds]
oz has joined #ruby
chetan- has joined #ruby
{^_^}______ has quit [Ping timeout: 260 seconds]
crankycoder has joined #ruby
devdazed has joined #ruby
arietis has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
s1n4 has joined #ruby
idletom has quit [Ping timeout: 246 seconds]
pingfloyd has joined #ruby
mbk has quit [Ping timeout: 246 seconds]
ttt has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 255 seconds]
ttt has joined #ruby
zigomir has joined #ruby
havenn has quit [Remote host closed the connection]
slicslak has joined #ruby
lggr has joined #ruby
{^_^}______ has joined #ruby
ngoldman has joined #ruby
michael_mbp is now known as apiguet
lggr has quit [Ping timeout: 240 seconds]
zeromodulus has quit [Read error: Connection reset by peer]
zeromodulus has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
apiguet has quit [Remote host closed the connection]
maesbn has joined #ruby
michael_mbp has joined #ruby
ph^ has joined #ruby
banisterfiend` has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
michael_mbp has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
AnarchoTroll has joined #ruby
mrdodo has joined #ruby
dhruvasagar has joined #ruby
Hanmac1 is now known as Hanmac
werdnativ has quit [Quit: FAMOUS_LAST_WORDS is nil]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
aaronmacy has quit [Ping timeout: 240 seconds]
mrdodo has quit [Ping timeout: 240 seconds]
timonv has quit [Read error: Connection reset by peer]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
timonv has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
jprovazn_away is now known as jprovazn
ABK_ has joined #ruby
lggr has joined #ruby
mbk has joined #ruby
Morkel has joined #ruby
abionic has quit [Ping timeout: 240 seconds]
sspiff has joined #ruby
sspiff has joined #ruby
rakl has quit [Quit: gone]
foofoobar has joined #ruby
senny has joined #ruby
timrom has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
bawigga has joined #ruby
explody has joined #ruby
rutkla has joined #ruby
<AnarchoTroll> anyone here ever used zeus?
rohit has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
tagrudev has joined #ruby
tvw has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<shevy> karstensrage possibly use it for statistics
s1n4 has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
s1n4 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
aantix has joined #ruby
bawigga has left #ruby ["Linkinus - http://linkinus.com"]
JohnBat26 has joined #ruby
xpen has joined #ruby
dekroning has joined #ruby
djdb has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
lggr has joined #ruby
slicslak has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
aganov has joined #ruby
ebobby has quit [Quit: Lost terminal]
pskosinski has joined #ruby
mos6502 has joined #ruby
dr_bob has joined #ruby
LouisGB has joined #ruby
apok has quit [Quit: apok]
mos6502 has quit [Client Quit]
lggr has quit [Ping timeout: 268 seconds]
elg0nz has joined #ruby
ncamargo has joined #ruby
mneorr has quit [Remote host closed the connection]
zeromodulus has quit [Ping timeout: 252 seconds]
elg0nz has quit [Client Quit]
thone_ has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
rohit has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
ctp has joined #ruby
headius has joined #ruby
xorgnak has joined #ruby
sagax has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Axsuul has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
chimay has joined #ruby
mrdodo has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
luckyruby has quit [Remote host closed the connection]
chimay has quit [Client Quit]
Eldariof18-ru has joined #ruby
wobr has joined #ruby
aantix has quit [Quit: aantix]
chimay has joined #ruby
mrdodo has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Xeago has quit [Remote host closed the connection]
fyolnish_ has joined #ruby
budha has joined #ruby
bluOxigen has joined #ruby
flype has joined #ruby
amaya_ has joined #ruby
rohit has joined #ruby
Neil_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
fantazo has quit [Remote host closed the connection]
mfridh has quit [Changing host]
mfridh has joined #ruby
cezar has joined #ruby
jkyle has quit [Ping timeout: 245 seconds]
hoelzro|away is now known as hoelzro
rohit has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
robozahn has quit [Ping timeout: 265 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
topriddy has joined #ruby
<topriddy> two days in the rails word and am hearing of things like haml, sass, scss already....you guys live in the bleeding edge?
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<Hanmac> topriddy: no you mean the other guys in #rubyonrails
Axsuul has joined #ruby
<topriddy> okay.
Axsuul has quit [Excess Flood]
<topriddy> probably.
lggr has quit [Ping timeout: 252 seconds]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<Hanmac> this room is rails free, we use tubes for transport
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<topriddy> Hanmac: how is there difference though? same community?
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<hoelzro> the rails community is a subset of the Ruby community
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<Hanmac> rails is only one part of ruby, so in this channel here there are users that never used rails
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
* hoelzro raises his hand
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
Hanmac has quit [Quit: Leaving.]
skogis has joined #ruby
lggr has joined #ruby
elaptics`away is now known as elaptics
Hanmac has joined #ruby
<Hanmac> test123 shevy test321
dakine has joined #ruby
wobr1 has joined #ruby
adambeynon has joined #ruby
<Hanmac> hoelzro test can you read this?
wobr has quit [Ping timeout: 246 seconds]
<hoelzro> Hanmac: sure can
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Hanmac> okay so my switch to ssl works
haxrbyte has joined #ruby
<hoelzro> \o/
lggr has quit [Ping timeout: 252 seconds]
haxrbyte_ has joined #ruby
xorgnak has quit [Remote host closed the connection]
lolmaus has joined #ruby
zeromodulus has joined #ruby
ltsstar has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
notVert has joined #ruby
frogprince has quit [Ping timeout: 260 seconds]
xorgnak has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
lepht has quit [Quit: ZNC - http://znc.sourceforge.net]
pskosinski has quit [Quit: Some alternative (not-controled-by-fu*up-developers) Red Eclipse servers: http://altred.tk/list]
pskosinski has joined #ruby
lepht has joined #ruby
frogprince has joined #ruby
pskosinski has quit [Client Quit]
pskosinski has joined #ruby
justinmcp has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
xorgnak has quit [Ping timeout: 252 seconds]
baphled has joined #ruby
ryanf has quit [Quit: leaving]
lkba has quit [Quit: Bye]
pikitgb has joined #ruby
Xeago has joined #ruby
Vainoharhainen has joined #ruby
berserkr has joined #ruby
lggr has joined #ruby
mrdodo has joined #ruby
<shevy> Hanmac !
<shevy> topriddy I avoid rails. it made me a happier man
GeekOnCoffee has quit [Ping timeout: 244 seconds]
xbayrockx has joined #ruby
Rochefort has joined #ruby
pikitgb has quit [Ping timeout: 256 seconds]
GeekOnCoffee has joined #ruby
mrdodo has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
chendo has quit [Ping timeout: 240 seconds]
robozahn has joined #ruby
<diegoviola> i'm using fork() to fork some processes but when those processes have finished doing something, they appear as zombie processes, why?
manouche has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
chendo has joined #ruby
wallerdev has quit [Quit: wallerdev]
Axsuul has quit [Read error: Connection reset by peer]
headius has quit [Quit: headius]
moshee has quit [Remote host closed the connection]
mosheee has joined #ruby
mosheee has quit [Changing host]
mosheee has joined #ruby
lggr has joined #ruby
Squarepy has joined #ruby
pingfloyd has quit [Quit: pingfloyd]
dekroning has quit [Ping timeout: 256 seconds]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 255 seconds]
robozahn_ has joined #ruby
ltsstar has quit [Ping timeout: 244 seconds]
<topriddy> shevy: what do you use instead?
<topriddy> shevy: Sinatra?
robozahn has quit [Ping timeout: 265 seconds]
dekroning has joined #ruby
<Hanmac> topriddy some of us not do web-apps
<shevy> topriddy right now .cgi, but without using any of the ruby .cgi stuff
statarb3 has joined #ruby
statarb3 has joined #ruby
lggr has joined #ruby
<topriddy> shevy: what then do you use for portals where u have different users with different roles performing different tasks.
<shevy> I dont have that
* Hanmac uses ruby for 3D games, not for WebShit
<shevy> oh I use ruby for the web, but for my own use mostly
Squarepy_ has joined #ruby
Squarepy_ has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
<mklappstuhl> good morning everyone
<mklappstuhl> I need to remove the first few bytes of a file but I'm not able to find a way to do this on that low level... any ideas?
<topriddy> shevy: whatt would you recommend
<Hanmac> shevy: microsoft warns you not to use IE6-9 ... only the next one IE10 which is only for Windows8 is "safe" ... its funny isnt it?
<shevy> topriddy for your use case? with portals + different users + different roles? sounds like a lot of work... use rails :P
<shevy> Hanmac, dunno, I use linux since 8 years
<rking> Hanmac: That's awesome.
Squarepy has quit [Ping timeout: 246 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy> microsoft is slowly dying
<rking> Hanmac: Do you have any games (OSS or otherise) published somewhere?
<shevy> because they are less important nowadays
<Hanmac> rking currnetly no ... i am still writing on the binding
<topriddy> save their os
<rking> Hanmac: You liking Ogre?
<Hanmac> yeah its cool
<topriddy> ogre is a game dev env?
robertbird has joined #ruby
<bnagy> mklappstuhl: what do you mean 'low level'?
<bnagy> just read it in, modify it, write it out with the same name using wb+
<topriddy> shevy: i'll really like to pursue our discussion further
lggr has quit [Ping timeout: 260 seconds]
<Hanmac> topriddy ogre is only an graphic engine
<rking> Hanmac: Have you thought about Bullet Physics + Ogre? I always thought it could work.
<topriddy> if ruby is slow for web, wont it be slow for games too? what is ruby good for?
justinmcp has joined #ruby
<Muz> Was is it good for? Absolutely nothing.
<bnagy> mklappstuhl: or, if it's huge, write the modified stream into a new file and then mv it over the old one when you're done
<Muz> *What
<rking> topriddy: That kind of summary is ignorance.
<Hanmac> rking yeah there are stuff for that, ... i make an bullet binding later or include it in my ogre binding
<mklappstuhl> bnagy, so I have to read and write the complete file yes?
gakos has joined #ruby
<Hanmac> mklappstuhl File.write("path",File.read("path")[ n..-1])
<mklappstuhl> I cannot just remove byte 0-3 or something?
<topriddy> rking: please educate me.
<bnagy> you don't _have_ to, no
yasushi has joined #ruby
banisterfiend` has joined #ruby
<bnagy> mklappstuhl: filesystems don't have such a primitive
<shevy> topriddy ogre is a quite good 3D engine
<bnagy> you basically get a pointer / cursor into a file, for read / write ops
<shevy> topriddy if you say ruby is slow, which scripting language is much faster?
lggr has joined #ruby
<rking> topriddy: To say that one thing is "slower" than another is to only focus on a small (usually irrelevant) meaning of "slow". In almost every case developer speed is more important than machine speed.
<shevy> no no let him suggest an alternative please
<shevy> he said ruby is slow, so I wanna know his alternative
<mklappstuhl> Hanmac, what exactly does [n..-1] say?
<dagobah> Sou|cutter: I think you were referring to http://codefol.io/posts/32-No-More-Requires
<topriddy> ...like i'm confused right now, planned investing some tiime checking out ruby with ror for fun. then i come here to ask about portals in rubyonrails. and you guys say i should avoid it cos its slow.
<rking> topriddy: To include actual, perceivable performance. One could write slick, cached-to-the-gills Ruby way faster than in lower languages.
<topriddy> rking: thanks.
Rochefort has quit [Remote host closed the connection]
<Hanmac> read returns a string ... n..-1 picks the chars from the n'th position to the end
chendo has quit [Ping timeout: 246 seconds]
Elhu has joined #ruby
<bnagy> what are the default flags for write? If you don't truncate then that's not going to work correctly
Rochefort has joined #ruby
wobr has joined #ruby
<bnagy> you'll get abcde -> bcdee for example (writing shorter over longer)
<Hanmac> write does truncate by default ...
<bnagy> ok. I prefer to set them explicitly, just so everyone knows what's going on
<bnagy> also if you ever want your code to work properly on windows you should always add the 'b' flag
headius has joined #ruby
chendo has joined #ruby
<bnagy> unless they changed that, finally :/
areil has quit [Remote host closed the connection]
wobr1 has quit [Ping timeout: 248 seconds]
<Hanmac> bangy: "If offset is not given, the file is truncated. Otherwise, it is not truncated."
lggr has quit [Ping timeout: 252 seconds]
gregorg_taf has joined #ruby
<bnagy> hm I never noticed binread / binwrite
<bnagy> wooo
<hemanth> trying to convert "Sat Mar 07 15:59:59 PST 2015" to months!
xkx_ has joined #ruby
Criztian has joined #ruby
<hemanth> well, it's a cert expiry module that i'm building ....
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
bluOxigen_ has joined #ruby
Taranis_ has joined #ruby
headius has quit [Quit: headius]
WhereIsMySpoon has joined #ruby
jck_true_ has joined #ruby
<bnagy> how do you convert a moment in time into a scalar?
weeb1e_ has joined #ruby
<hemanth> bnagy, number of months from now to reach that date ...
gregorg has quit [Read error: Connection reset by peer]
mbk has quit [Read error: Connection reset by peer]
icooba has quit [Ping timeout: 260 seconds]
Jck_true has quit [Remote host closed the connection]
WhereIsMySpoon_ has quit [Quit: No Ping reply in 180 seconds.]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
canton7 has quit [Ping timeout: 260 seconds]
wchun has quit [Ping timeout: 260 seconds]
xkx has quit [Read error: Connection reset by peer]
jeekl has quit [Quit: jeekl]
<bnagy> do you mean 'months from now'?
<bnagy> ok
jeekl_ has joined #ruby
yasushi has quit [Remote host closed the connection]
<bnagy> does it need to be accurate?
fyolnish_ has quit [Remote host closed the connection]
lggr has joined #ruby
icooba has joined #ruby
mfridh has quit [Ping timeout: 260 seconds]
hackeron has quit [Ping timeout: 260 seconds]
mbk has joined #ruby
love_color_text has joined #ruby
topriddy has quit [Ping timeout: 260 seconds]
goraxe has quit [Ping timeout: 260 seconds]
<bnagy> like, parse them, subtract and divide days by 30.42
hackeron has joined #ruby
cakehero has joined #ruby
mfridh has joined #ruby
mosheee has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
<bnagy> ish
Taranis has quit [Ping timeout: 260 seconds]
jeekl_ has quit [Client Quit]
michael_mbp has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Guedes0 has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Rochefort has quit [Ping timeout: 252 seconds]
michael_mbp_ has joined #ruby
Rochefort has joined #ruby
<hemanth> yes kina
<bnagy> well 'one month' has no particularly accurate duration, so I guess my way is probably close enough
berkes has joined #ruby
justinmcp has quit [Remote host closed the connection]
lolmaus has quit []
freeayu__ has joined #ruby
michael_mbp has quit [Ping timeout: 252 seconds]
freeayu has quit [Ping timeout: 252 seconds]
<hemanth> bnagy, yes, the normal way of solving is know, was looking for some trickery ;)
mrdodo has joined #ruby
lggr has joined #ruby
Guedes0 has quit [Ping timeout: 252 seconds]
xkx_ is now known as xkx
<hemanth> >
khakimov has joined #ruby
Elhu has quit [Read error: No route to host]
<hemanth> "Sat Mar 07 15:59:59 PST 2015".split[1] and "Sat Mar 07 15:59:59 PST 2015".split.last to get the month and year
Elhu has joined #ruby
und3f has joined #ruby
lolmaus has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
<Xeago> why not just subtract the days first, if you end up negative, hold a negative carry, subtract the months (while adding the difference in years *12), apply carry and done, right?
rutkla has quit [Read error: Connection reset by peer]
<Xeago> as we're only interested in how many months ahead of now it expires
jocke12 has joined #ruby
<bnagy> hemanth: Date and DateTime both provide nice parsers for you that someone who knows what they are doing have written
<bnagy> please don't insult them by trying to screw around splitting on whitespace
jamesaxl has quit [Ping timeout: 252 seconds]
jocke12 has left #ruby [#ruby]
jamesaxl has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
mrdodo has quit [Ping timeout: 244 seconds]
cascalheira has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<bnagy> ((Date.parse("Sat Mar 07 15:59:59 PST 2015") - Date.today) / 30.42).round(1)
<bnagy> => 29.6
lggr has quit [Ping timeout: 268 seconds]
<hemanth> bnagy, i was trying a cheap trick there
<hemanth> that was awsome there mate
<Xeago> >> puts 'bot back up?'
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
eikko has quit [Ping timeout: 248 seconds]
jeekl has joined #ruby
jeekl has quit [Changing host]
jeekl has joined #ruby
bradhe_ has quit [Remote host closed the connection]
statarb3 has quit [Ping timeout: 240 seconds]
lchin has joined #ruby
justinmcp has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
jamesaxl has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Rochefortes has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
rotor` is now known as rotor
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<mklappstuhl> Hanmac, thanks your solution worked fine :)
Rochefort has quit [Ping timeout: 240 seconds]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
<gyre007> is there any way how I can upgrade gem to a certain version...ie gem update will update it to the latest available version...id like to update it to one version below...
<Xeago> gyre007: if using bundler, specify version in Gemsets
<banisterfiend`> gyre007 specify -v flag
<banisterfiend`> gyre007 gem install blah -v 0.9.4
<matti> ;]
<matti> banisterfiend`: ;] ;] ;] ;]
lchin has quit [Remote host closed the connection]
* matti hugs banisterfiend` and runs away screaming
topriddy has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<diegoviola> i'm trying to use Process.fork() in a controller, in order to spawn a child process and do something there in the background, that works well, but I want to redirect to somewhere else and provide a flash message when the child process is done doing its thing, I'm not sure I can still use redirect_to and flash in the child process though?
<gyre007> banisterfiend`, if I do install. will that replace the original one with the new one ?
<gyre007> im a n00b
<gyre007> i just want to update it...dont want the old one to stay on the server along the new one...
<banisterfiend`> gyre007 remove the old one first
<matti> Update.
<banisterfiend`> gyre007 buit you should use bundler for this
robertbird has quit [Quit: robertbird]
<Xeago> diegoviola: when you fork, the callee continues execution
<banisterfiend`> gyre007 i think just using rubygems itself without bundler would just use the latest version
<Xeago> and will return before the child has finished
<gyre007> banisterfiend`, its a chef gem...dont want to bundling this stuff...no need
<diegoviola> Xeago: right
<banisterfiend`> gyre007 ok then uninstall the latest version first
<banisterfiend`> then install the specific one u want
<banisterfiend`> if you have both installed, it'll probably just use teh latest one
<gyre007> i see...so there is no update -v blahblah
<diegoviola> Xeago: what i want to do is be able to redirect and provide a flash message when the child process is done
<Xeago> do you want the request to wait while child is busy? if so do not fork
<diegoviola> Xeago: or tell the parent to do that
<banisterfiend`> gyre007 no 'update' just gets the latest version
<Xeago> parent is already done when child finishes
<banisterfiend`> gyre007 if you dont want the latest version (as you said you didnt) then you can't use update, u have to gem install -v
<banisterfiend`> matti sup
<gyre007> arrgh :)...ok cool cheers banisterfiend`
<matti> banisterfiend`: How's life?
<banisterfiend`> matti better than yours i guess
<banisterfiend`> :P
<banisterfiend`> not bad
<diegoviola> Xeago: no, i don't want the parent to block, but this allows me to non-block the parent: Process.waitpid(child_pid, Process::WNOHANG)
<banisterfiend`> about to go for a cigarette & a beer :)
<matti> banisterfiend`: LOL
<banisterfiend`> matti u?
<diegoviola> Xeago: i just need a way to let the parent know that the child has finished
<Xeago> diegoviola: if you don't want the parent to block, then the parent is done executing. Store it somewhere
<diegoviola> Xeago: and react to that
<Xeago> diegoviola: I am not sure what Process.waitpid does, but I reckon it stops execution
<Xeago> if so, what is the point in forking
statarb3 has joined #ruby
<hemanth> bnagy, ((Date.parse("01/02/2000") - Date.today) / 30.42).round(1) why not ?
topriddy1 has joined #ruby
topriddy1 has quit [Read error: Connection reset by peer]
jblack has quit [Ping timeout: 244 seconds]
rotor has quit [Quit: leaving]
<bnagy> why not what?
lggr has joined #ruby
rotor has joined #ruby
<diegoviola> Xeago: right, as i said, i'm trying to figure out how to tell the parent process that the child finished, so that i could tell the user "hey this worker has completed, go check it out"
<diegoviola> Xeago: something like that
<Xeago> diegoviola: have a look at resque
topriddy has quit [Ping timeout: 246 seconds]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
<Xeago> and similar libraries
<matti> banisterfiend`: You know already. Sucks for me.
<diegoviola> Xeago: ok thanks
<Xeago> there's also sidekiq or whatever it is called, and lots of others
headius has joined #ruby
<diegoviola> Xeago: awesome, thank you
adam__ is now known as aspiers
rotor has quit [Client Quit]
<banisterfiend`> matti are you slavic?
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
headius has quit [Client Quit]
<hemanth> bnagy, it was must fault...
<matti> banisterfiend`: No.
rotor has joined #ruby
<matti> banisterfiend`: Why?
<banisterfiend`> matti polish aren't slavs?
lggr has quit [Ping timeout: 252 seconds]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
seoaqua has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
Rochefortes has quit [Remote host closed the connection]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
lggr has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
fermion has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
heftig has quit [Quit: leaving]
<matti> banisterfiend`: We are BORG.
<matti> banisterfiend`: Resistance is futile.
<matti> ;d
<matti> banisterfiend`: Yes, we have Slavic origin / ancestry.
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
<matti> banisterfiend`: Nothing than Wikipedia cannot shed a light on.
etehtsea has joined #ruby
etehtsea is now known as Guest81895
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
arkiver has joined #ruby
gakos has quit [Quit: Changing server]
topriddy has joined #ruby
topriddy has quit [Read error: Connection reset by peer]
x0F_ has joined #ruby
x0F has quit [Disconnected by services]
topriddy has joined #ruby
topriddy has quit [Client Quit]
x0F_ is now known as x0F
chimay has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
chimay has joined #ruby
<hemanth> bnagy, finally months_left = ((Date.parse(expiry_date) - Date.today) / 30.42).round.abs
<hemanth> :)
cakehero has quit [Quit: Computer has gone to sleep.]
tarwich has quit [Quit: Leaving.]
<Xeago> why abs?
xpen has quit [Remote host closed the connection]
ar_ has joined #ruby
kenfdev has joined #ruby
robertbird has joined #ruby
Taranis_ has quit [Read error: Connection reset by peer]
<bnagy> abs is a really bad security idea there :) if months_left > 0 ... #FAIL
<robertbird> abs as in absolute? because the minus will swing back round, right?
mutax has joined #ruby
lggr has joined #ruby
<hemanth> robertbird, yup
<hemanth> bnagy, hmm
a_a_g has quit [Quit: Leaving]
<mutax> Hey, is someone willing to help me, who knows nothing about ruby, with an error that occures when porting a ruby app to another machine that runs debian squeeze? I get "TemplateError (undefined method `[]'..."
a_a_g has joined #ruby
<mutax> The app is used at my university to reservate devices in a lab - so its non-commercial ;)
<banisterfiend`> mutax 'reserve' :)
lkba has joined #ruby
G has quit [Quit: leaving]
<mutax> banisterfiend`: oh, ov course. must have been the keyboard ^ ^
wobr has quit [Quit: Leaving.]
<mutax> sorry. that is disgusting
<Hanmac> mutax ... hm it smells like rails or something like that?
<mutax> Hanmac: I guess so as its a web application
G has joined #ruby
Taranis has joined #ruby
<Hanmac> the channel #rubyonrails may be more helpfull
justinmcp has quit [Remote host closed the connection]
<mutax> Hanmac: okay, I'll try. Thanks!
justinmcp has joined #ruby
Foxandxss has joined #ruby
nohonor has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
manizzle has quit [Read error: Operation timed out]
matthewrobbins has joined #ruby
a_a_g has quit [Quit: Leaving.]
robertbird is now known as birdie
a_a_g has joined #ruby
birdie is now known as bobbo
bobbo is now known as bobbbo
mrdodo has joined #ruby
FiveGP has quit [Read error: Connection reset by peer]
eins11 has joined #ruby
FiveGP has joined #ruby
nari has joined #ruby
guns has joined #ruby
lggr has joined #ruby
sguoww has joined #ruby
Guedes has quit [Excess Flood]
Guedes has joined #ruby
mrdodo has quit [Ping timeout: 244 seconds]
topriddy has joined #ruby
<diegoviola> lol
<diegoviola> non-posix systems doesn't support fork()?
<diegoviola> i.e. windows
mutax has left #ruby [#ruby]
bluenemo has quit [Ping timeout: 260 seconds]
bradhe has joined #ruby
fyolnish has joined #ruby
jblack has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
iocor has joined #ruby
manizzle has joined #ruby
amaya_ has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
burgestrand has joined #ruby
shiki has quit [Remote host closed the connection]
bluenemo has joined #ruby
elliottcable has joined #ruby
jblack has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 245 seconds]
kalleth__ is now known as kalleth
jblack has joined #ruby
fbernier has joined #ruby
lggr has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
vlad_starkov has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 260 seconds]
burgestrand has quit [Quit: Leaving.]
nari has quit [Ping timeout: 252 seconds]
<bnagy> windows is posix
<bnagy> just... very non obviously
<bnagy> but no, it doesn't support fork()
Mon_Ouie has joined #ruby
lggr has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
canton7 has joined #ruby
dekroning has quit [Ping timeout: 256 seconds]
hsbt is now known as hsbt_away
dhruvasagar has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
BdeUtra has joined #ruby
arkiver has quit [Quit: Leaving]
nateberkopec has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
eikko has joined #ruby
lggr has joined #ruby
love_color_text has quit [Remote host closed the connection]
guns has quit [Quit: guns]
vlad_starkov has quit [Remote host closed the connection]
goraxe has joined #ruby
answer_42 has joined #ruby
imami|afk has quit [Ping timeout: 264 seconds]
banseljaj has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
TNTshop has joined #ruby
eikko_ has joined #ruby
yasushi has joined #ruby
lggr has joined #ruby
eikko has quit [Ping timeout: 252 seconds]
ztirf has joined #ruby
eikko_ has quit [Read error: Connection reset by peer]
amaya_ has joined #ruby
eikko has joined #ruby
<lolmaus> I'm failing to understand what Compass is. It somehow leverages using SASS but i don't get what it actually does.
robozahn_ has quit [Quit: leaving]
skuul has joined #ruby
FiveGP has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
chendo has quit [Ping timeout: 245 seconds]
EPIK has joined #ruby
hsbt_away is now known as hsbt
shiki has joined #ruby
chendo has joined #ruby
<fir_ed> lolmaus, its a stylesheet framework. it makes writing css easier
lggr has quit [Ping timeout: 245 seconds]
mrdodo has joined #ruby
jorge has joined #ruby
<lolmaus> fir_ed, well, what does it do? Provides CSS/SASS scaffolding?
jorge has quit [Remote host closed the connection]
nohonor has quit [Read error: Connection reset by peer]
<herbnerder> It includes some of the things that you might write with Sass, already written for you, a framework
<lolmaus> fir_ed, i had to steal a copy of the "Pragmatic Guide to SASS" to read this: "Compass is a library of mixins, functions, and other useful
<lolmaus> extensions to Sass."
<lolmaus> Very simple, yet no other source includes this description. :(
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
lggr has joined #ruby
<fir_ed> lolmaus, that connects with herbnerder's statement
<fir_ed> and it makes sense. No reason to doubt the Pragmatic series. They publish good books. +1
mucker has joined #ruby
mrdodo has quit [Ping timeout: 255 seconds]
<fir_ed> I personally haven't used Compass but some quick googling confirms. It just provides functionality to get started
larissa has joined #ruby
bobbbo has quit [Quit: bobbbo]
<herbnerder> The compass reference gives an quick overview of exactly what it does...what types of mixing and functions it includes: http://compass-style.org/reference/compass/
<lolmaus> fir_ed, i've buyed three PragProg books already The SASS book seems to be the fourth i'll pay for. ^_^
lggr has quit [Ping timeout: 246 seconds]
dekroning has joined #ruby
bradhe has joined #ruby
justsee has quit [Quit: Leaving...]
bradhe has quit [Ping timeout: 246 seconds]
dpk has joined #ruby
jblack has quit [Read error: Connection reset by peer]
monkegjinni has quit [Remote host closed the connection]
Agis__ has joined #ruby
Paradox has quit [Ping timeout: 256 seconds]
Paradox has joined #ruby
lggr has joined #ruby
jblack has joined #ruby
verto|off is now known as verto
cakehero has joined #ruby
topriddy has left #ruby [#ruby]
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
yalue has joined #ruby
xyon has joined #ruby
josh^ has quit [Remote host closed the connection]
xyon has left #ruby [#ruby]
joast has quit [Quit: Leaving.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
workmad3 has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 245 seconds]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
skuul has left #ruby ["So long and thanks for all the fish"]
mark_locklear has joined #ruby
lantins has quit [Ping timeout: 248 seconds]
Axsuul has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-developers) Red Eclipse servers: http://altred.tk/list]
lggr has joined #ruby
gfontenot has joined #ruby
lantins has joined #ruby
eikko has quit [Ping timeout: 244 seconds]
joast has joined #ruby
jblack has quit [Ping timeout: 256 seconds]
Paradox has quit [Ping timeout: 260 seconds]
pradeepto has quit [Changing host]
pradeepto has joined #ruby
nwest has joined #ruby
Paradox has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
sepp2k1 has quit [Remote host closed the connection]
pskosinski has joined #ruby
ltsstar has joined #ruby
joast has quit [Quit: Leaving.]
theRoUS_ has joined #ruby
TomJ has joined #ruby
TomJ has joined #ruby
eikko has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
mklappstuhl has quit [Read error: Connection reset by peer]
lggr has joined #ruby
Taranis has quit [Read error: Connection reset by peer]
Taranis has joined #ruby
deryl has quit [Quit: Leaving.]
cakehero has quit [Quit: Computer has gone to sleep.]
hbpoison has joined #ruby
hbpoison has quit [Client Quit]
zommi has joined #ruby
deryl has joined #ruby
niklasb has joined #ruby
hbpoison has joined #ruby
joast has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
krawchyk has joined #ruby
nanderoo has joined #ruby
deryl has quit [Quit: Leaving.]
lggr has joined #ruby
gfontenot has quit []
Targen has quit [Ping timeout: 240 seconds]
phreax_ has quit [Read error: Operation timed out]
_axx has quit [Read error: Operation timed out]
_axx has joined #ruby
phreax has joined #ruby
hbpoison_ has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
hbpoison has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
zommi has quit [Ping timeout: 265 seconds]
mrdodo has joined #ruby
invisime has joined #ruby
bradhe has joined #ruby
cakehero has joined #ruby
mohits has quit [Ping timeout: 240 seconds]
hbpoison_ has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
flype has joined #ruby
yshh has quit [Remote host closed the connection]
sideshow1oder has joined #ruby
mrdodo has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
deryl has joined #ruby
qos has joined #ruby
lggr has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
deryl has quit [Client Quit]
tommyvyo has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
krawchyk has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 240 seconds]
Speed has left #ruby ["Leaving channel."]
lggr has joined #ruby
TomJ has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
fmcgeough has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
pu22l3r has joined #ruby
spopescu has joined #ruby
nat2610 has joined #ruby
thunderstrike has quit [Remote host closed the connection]
freeayu__ has quit [Ping timeout: 252 seconds]
geekbri has joined #ruby
justinmcp has quit [Remote host closed the connection]
thone has joined #ruby
krawchyk has quit [Remote host closed the connection]
lggr has joined #ruby
s1n4 has quit [Ping timeout: 252 seconds]
s1n4 has joined #ruby
linoj has joined #ruby
cody-- has joined #ruby
ztirf has quit [Ping timeout: 252 seconds]
sailias has quit [Quit: Leaving.]
freeayu has joined #ruby
carloslopes has joined #ruby
mklappstuhl has joined #ruby
<mklappstuhl> hey
<mklappstuhl> Why can't I do this: File.write(@csv_file, Zlib::GzipReader.new(zip))
workmad3 has joined #ruby
<mklappstuhl> or probably the harder case:
lggr has quit [Ping timeout: 255 seconds]
<mklappstuhl> File.write(@csv_file, Zlib::GzipReader.new(zip)[ 1..-1 ])
JustinCampbell has joined #ruby
ttt has quit [Remote host closed the connection]
ttt has joined #ruby
lggr has joined #ruby
<shevy> what error you get
Spooner has joined #ruby
chimay has quit [Ping timeout: 240 seconds]
idletom has joined #ruby
hekin has joined #ruby
<mklappstuhl> shevy, `write': can't convert nil into String
<canton7> mklappstuhl, what's the actual output of Zlib::GzipReader.new(zip) ?
<mklappstuhl> shevy, It worked before when just assigning the result to a variable... and the file is not empty... :)
<mklappstuhl> canton7, file is 90mb last time I put it into a var and tried to print it with pry my X session shut down :D
<canton7> ok, Zlib::GzipReader.new(zip).class ?
freeayu has quit [Read error: Connection reset by peer]
<mklappstuhl> canton7, about to do that :)
<shevy> mklappstuhl yeah that sneaky "nil" there is odd
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
<shevy> mklappstuhl, in situations like that, it often helps to split things up
<shevy> like zipped = Zlib::GzipReader.new(zip); pp zipped.class; File.write(@csv_file, zipped)
<shevy> and even better, put it into a method, and proper begin/rescue/end block
ffranz has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
<Hanmac> you should use Zlib::GzipReader.open(zip,&:read) instead of .new ...
ttt has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
fyolnish has quit [Ping timeout: 246 seconds]
ABK_ has quit [Ping timeout: 240 seconds]
Agis__ has quit [Quit: Agis__]
und3f has quit [Ping timeout: 244 seconds]
freeayu has joined #ruby
lggr has joined #ruby
johnlcox has joined #ruby
Guest64548 has joined #ruby
s1n4 has quit [Quit: leaving]
kvirani has quit [Remote host closed the connection]
EddieS has joined #ruby
wallerdev has joined #ruby
EddieS is now known as Guest14702
statarb3 has quit [Quit: Leaving]
wallerdev has quit [Client Quit]
johnlcox_ has joined #ruby
johnlcox has quit [Ping timeout: 240 seconds]
johnlcox_ is now known as johnlcox
lggr has quit [Ping timeout: 260 seconds]
mohits has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
thunderstrike has joined #ruby
<dpk> how should i safely handle fds > FD_SETSIZE in a call to IO.select? poking around the ruby source, it seems different OSes have different behaviours… (see thread.c:2725)
<lectrick> i tried to install a gem and got an arcane error of "ruby Symbol not found: _ruby_threadptr_data_type". sigh.
lggr has joined #ruby
spopescu has left #ruby ["Leaving"]
mrdodo has joined #ruby
thunders_ has joined #ruby
<mklappstuhl> shevy, GzipReader.open returns a string
timrom_ has joined #ruby
thnee has quit [Ping timeout: 260 seconds]
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
pu22l3r has quit [Remote host closed the connection]
a_a_g has quit [Quit: Leaving.]
thnee has joined #ruby
timrom has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
bbttxu has joined #ruby
krawchyk has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
thunderstrike has quit [Ping timeout: 252 seconds]
asteve has joined #ruby
gregorg has quit [Quit: Quitte]
jrajav has joined #ruby
mrdodo has quit [Ping timeout: 240 seconds]
<mklappstuhl> shevy, this kinda makes no sense..
<shevy> lol
sspiff has quit [Ping timeout: 240 seconds]
mbk has quit [Ping timeout: 268 seconds]
derpops has joined #ruby
<mklappstuhl> shevy, http://imgur.com/oU3X5
lggr has joined #ruby
<mklappstuhl> I manually executed content = Zlib::GzipReader.open(zip,&:read) berfore that
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<mklappstuhl> you can see the last lines of the output in the screenshot
<shevy> and @csv_file is not nil?
<shevy> where is the nil stuff
Bosma has joined #ruby
rjmt has joined #ruby
<mklappstuhl> shevy, lol, it is...omg -.-*
stopbit has joined #ruby
yasushi has quit [Remote host closed the connection]
<Hanmac> shevy what do you think about ths? http://xkcd.com/1109/ :D
savage- has joined #ruby
cantonic_ has joined #ruby
uris has joined #ruby
<Xeago> lol
<shevy> hehe good idea Hanmac
<shevy> but I actually think we need a live transport system that ships the goods right to you when you need it
Chryson has quit [Quit: Leaving]
awarner has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<Hanmac> and a secondary transport system that thansports the bad stuff back (or to a compost)
freeayu has quit [Remote host closed the connection]
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk_ has joined #ruby
cantonic has quit [Ping timeout: 245 seconds]
cantonic_ is now known as cantonic
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
AlbireoX has joined #ruby
bobbbo has joined #ruby
<shevy> yeah
<shevy> but it would require towns that were designed for that from the beginning
und3f has joined #ruby
lggr has joined #ruby
sspiff has joined #ruby
Paradox has quit [Ping timeout: 245 seconds]
savage- has quit [Remote host closed the connection]
cpruitt has joined #ruby
sailias has joined #ruby
Essobi has quit [Ping timeout: 246 seconds]
xclite has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep]
ayawaska has joined #ruby
horofox has joined #ruby
kenfdev has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 255 seconds]
kenfdev has joined #ruby
mengu has joined #ruby
wchun has joined #ruby
ph^ has quit [Remote host closed the connection]
gfontenot has joined #ruby
pricees has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
Jay_Levitt has joined #ruby
TomJ has quit [Read error: Connection reset by peer]
pricees_ has joined #ruby
lggr has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
Mon_Ouie has joined #ruby
yasushi has joined #ruby
johnjohnson has joined #ruby
lchin has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
johnjohnson has quit [Client Quit]
kvirani has joined #ruby
cody-- has quit [Quit: node-irc says goodbye]
jrajav has quit []
cody-- has joined #ruby
15SACSD1B has joined #ruby
50UABN48E has joined #ruby
lchin has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 260 seconds]
johnjohnson has joined #ruby
tvw has quit [Remote host closed the connection]
50UABN48E has quit [Client Quit]
cody-- has quit [Client Quit]
cody-- has joined #ruby
lggr has joined #ruby
Paradox has joined #ruby
ttt has joined #ruby
tvw has joined #ruby
robozahn has joined #ruby
carloslopes has quit [Quit: Leaving.]
internet_user has joined #ruby
fantazo has joined #ruby
mohits has quit [Read error: Connection reset by peer]
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
johnlcox has quit [Quit: Computer has gone to sleep.]
ttt has quit [Ping timeout: 260 seconds]
kpshek has joined #ruby
areil has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
ncamargo is now known as BIGX333
sagax has quit [Quit: Ухожу я от вас]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
johnlcox has joined #ruby
<mklappstuhl> Hanmac, Zlib::GzipReader.new(zip)[ 1..-1 ] — do you have any ideas how to do that in one step?
cakehero has quit [Quit: Computer has gone to sleep.]
philcrissman has joined #ruby
CarlB_the_great has joined #ruby
<mklappstuhl> Hanmac, this way it does not work as GzipReader.new does not return the same as File.read
<Hanmac> Zlib::GzipReader.open(zip,&:read)[1..-1]
15SACSD1B has quit [Quit: leaving]
<mklappstuhl> Hanmac, I remeber that you recommended .open earlier, thanks!
carloslopes has joined #ruby
<Hanmac> the difference: Zlib::GzipReader.new wants an IO object (or IO-like) Zlib::GzipReader.open wants a filename as String
lggr has joined #ruby
rjmt has quit [Max SendQ exceeded]
rjmt has joined #ruby
TomJ has quit [Read error: Connection reset by peer]
eins11 has quit [Ping timeout: 240 seconds]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
savage- has joined #ruby
michael_mbp_ has quit [Quit: michael_mbp_]
gmci has quit [Quit: Computer has gone to sleep.]
hekin has quit [Quit: hekin]
<Xeago> how do you call an application that is mvc compliant, or according to mvc-patterns?
<matti> ;]
machty has quit [Quit: machty]
kenfdev has quit [Remote host closed the connection]
<Hanmac> Xeago i call it shit
<Hanmac> :P
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Faris has joined #ruby
joshman_ has joined #ruby
heftig has joined #ruby
bontaq has joined #ruby
Faris has left #ruby [#ruby]
manizzle has quit [Read error: Connection reset by peer]
rakuN has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
CarlB_the_great has quit [Remote host closed the connection]
TomJ has quit [Read error: Connection reset by peer]
eikko has quit [Ping timeout: 260 seconds]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
TomJ has quit [Client Quit]
CarlB_the_great has joined #ruby
wuzzzzaah has joined #ruby
mrdodo has joined #ruby
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
fr00ty has joined #ruby
<fr00ty> is anybody here somewhat familiar with the tk framework?
monkegjinni has joined #ruby
foofoobar has joined #ruby
lggr has joined #ruby
<fr00ty> well, i am a freshman in highschool, and i am working on a fractal project
<fr00ty> and so far I have the code: http://pastebin.com/eDnchNSP
jschairb has joined #ruby
<fr00ty> but when i run it. i only get two rectangles instead of three...
<fr00ty> any ideas?
<hoelzro> fr00ty: try removing each one of the rectangle statements, one at a time, until you see which ones do and don't disappear
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
Goles has joined #ruby
<canton7> also print the points to a console, so you can see what they are and if they're what they should be
<fr00ty> canton7, alright, i will try that ^^
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<fr00ty> and if the does not work, i will try hoelzro's method
<Hanmac> fr00ty that many $variables are not good ruby style :(
<hoelzro> both are good methods =)
<fr00ty> but i hate having to import them and return them all of the time
mrdodo has quit [Ping timeout: 252 seconds]
<fr00ty> i didnt exactly have those in java, or at least i didnt know about them... so i like having them now ^^
<canton7> it's much better practice to. randomly modifying stuff leads to hard to maintain code
lggr has quit [Ping timeout: 240 seconds]
<canton7> java had instance variables ;)
<fr00ty> but those were only for specific iterations of classes, no?
robozahn has quit [Read error: Connection reset by peer]
lggr has joined #ruby
SCommette has joined #ruby
<canton7> instances, you mean? yes
<fr00ty> ah, when i try printing the coords to the command line, rect_2 and rect_3 are the same...
<fr00ty> thats what i thought ^^
<canton7> and there's absolutely no need to make temp_a and temp_b global... :P
<fr00ty> i know what went wrong
<fr00ty> i didnt change point_B at all
<fr00ty> so when it is fetching stuff from point_B
Goles has quit [Quit: Computer has gone to sleep.]
<fr00ty> its the same as the last iteration...
rjmt has quit [Max SendQ exceeded]
yekta has joined #ruby
rjmt has joined #ruby
eikko has joined #ruby
emerleite has joined #ruby
emerleite has quit [Client Quit]
bbttxu has quit [Quit: bbttxu]
lggr has quit [Ping timeout: 248 seconds]
savage- has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
Knodi has joined #ruby
dr_bob has quit []
mengu has quit [Quit: Konversation terminated!]
horofox has quit [Quit: horofox]
lggr has joined #ruby
TomJ has quit [Read error: Connection reset by peer]
noahsussman has joined #ruby
cody-- has quit [Remote host closed the connection]
rjmt has quit [Max SendQ exceeded]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
lxsameer has joined #ruby
zigomir has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby
cody-- has joined #ruby
cody-- has quit [Remote host closed the connection]
cody-- has joined #ruby
cody-- has quit [Remote host closed the connection]
cody-- has joined #ruby
cody-- has quit [Remote host closed the connection]
cody-- has joined #ruby
cody-- has quit [Remote host closed the connection]
cody-- has joined #ruby
cody-- has quit [Remote host closed the connection]
busybox42 has joined #ruby
cody-- has joined #ruby
jprovazn is now known as jprovazn_away
rjmt has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
mhi^ has joined #ruby
olrrai has joined #ruby
olrrai has quit [Client Quit]
<fr00ty> alright, here is the new version: http://pastebin.com/HycEYQwr
<canton7> lines 10 and 11 are unnecessary
<fr00ty> oh, haha, just noticed that ^^
<canton7> is #fetch really necessary?
Knodi has quit [Quit: Knodi]
<fr00ty> isnt that how i access the contents in the arrays...?
h4mz1d has joined #ruby
justinmcp has joined #ruby
jjbohn has joined #ruby
<mhi^> If "[1,2,3]" creates an object of type Array.. is "arr = Array.new([1,2,3])" creating two objects of that type just for discarding one immediately? ("nameless object"?)
ab__ has joined #ruby
<hoelzro> >> puts 'present'
<fr00ty> good question mhi^
<hoelzro> =(
<hoelzro> according to pry, yes
mbk has joined #ruby
<hoelzro> mhi^: ^^
davidcelis has quit [Quit: K-Lined.]
<canton7> fr00ty, myarray[0]
<hoelzro> a = [1, 2, 3]; b = Array.new(a); puts a.object_id; puts b.object_id
<fr00ty> oh, haha XD\
GoGoGarrett has joined #ruby
<mhi^> Okay, thanks, hoelzro.
rakuN has quit [Quit: rakuN]
lggr has joined #ruby
apok has joined #ruby
dekroning has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
rjmt has quit []
vlad_starkov has joined #ruby
<Sou|cutter> dagobah: Dood! You were totally correct about that link. Thanks (half a day later)
ab__ is now known as Scotty
<fr00ty> http://pastebin.com/nEBjbkdg I think i got it this time XD
ananthakumaran has joined #ruby
chrisbolton has joined #ruby
Scotty is now known as Guest31375
<canton7> still don't like the layout. I'll refactor it in a min
Guest31375 has quit [Client Quit]
<chrisbolton> Morning all, I could use some help working through the logic of a filter. I've got a job posting, where the poster can specify they would like 4-8 criteria matched. Then I have a resume set. My initial thought is to use a case/when.
<chrisbolton> The problem is the total number of criteria is 10ish. I need to make it a dynamic query. They aren't only matching a specific 4 or 5. We want resumes that have 4 or 5 matches in total.
<chrisbolton> One of my thoughts was to run a query on each criteria, collect them in arrays and then depending on the number check to see if the specific resume is located in 4 or 5 of the arrays, that would be irrespective of the criteria matched.
wallerdev has quit [Quit: wallerdev]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Paradox has quit [Ping timeout: 246 seconds]
fr00ty has left #ruby [#ruby]
slicslak has joined #ruby
horofox has joined #ruby
mhi^ has left #ruby [#ruby]
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Client Quit]
cakehero has joined #ruby
berserkr has quit [Quit: Leaving.]
Yomero_ has joined #ruby
ph^ has joined #ruby
Synthead has joined #ruby
chendo has quit [Ping timeout: 244 seconds]
larissa has quit [Quit: Leaving]
lggr has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 255 seconds]
maesbn has quit [Remote host closed the connection]
chendo has joined #ruby
theRoUS_ has quit [Ping timeout: 252 seconds]
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
TomJ has quit [Read error: Connection reset by peer]
TomJ_ is now known as TomJ
ph^ has quit [Read error: No route to host]
ph^ has joined #ruby
philips_ has quit [Excess Flood]
philips_ has joined #ruby
ttt has joined #ruby
lggr has joined #ruby
blazes816 has joined #ruby
maxok has joined #ruby
Morkel has quit [Quit: Morkel]
Goles has joined #ruby
rmcafee has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
evenix has joined #ruby
<evenix> hi guys
<evenix> how do i use an having clause to set up an equality in ruby with a mysql database?
sspiff has quit [Ping timeout: 240 seconds]
<evenix> .having("count (*) == #{dietary_restrictions.count}")
<evenix> it tried this but it didnt work
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
allsystemsarego has joined #ruby
<hoelzro> evenix: what error did you get?
<hoelzro> or what unexpected behavior?
wallerdev has joined #ruby
<canton7> mysql never uses '==' as far as I've seen
<hoelzro> it indeed does not.
h4mz1d has quit [Ping timeout: 260 seconds]
<hoelzro> canton7: good catch!
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<canton7> :)
<evenix> Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
<evenix> hoelzro: im getting this error
<allsystemsarego> In Python I would do a[(1,2)] = 3 to use a tuple as a key for a hash, how would one do this in Ruby?
lggr has quit [Ping timeout: 246 seconds]
<Spooner> allsystemsarego : a[[1, 2]] = 3
<canton7> allsystemsarego, myhash[[1, 2]]
<allsystemsarego> ok
<allsystemsarego> thanks
rjmt has joined #ruby
<hoelzro> evenix: see what canton7 wrote
<evenix> canton7: thanks do you know any alternative?
<evenix> hoelzro: thanks
<canton7> evenix, single '='
<hoelzro> evenix: having count(1) = #{...}
<canton7> as in 'SELECT .... WHERE field = "value"'
levieraf has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
ryh has joined #ruby
levieraf has quit [Client Quit]
zz_chrismcg is now known as chrismcg
ndrei has quit [Quit: Lost terminal]
bradhe has joined #ruby
lggr has joined #ruby
aganov has quit [Remote host closed the connection]
<shevy> hmm
<shevy> hello world!
theRoUS_ has joined #ruby
tagrudev has quit [Quit: pure awesomeness]
<hoelzro> hello shevy!
chrishunt has quit [Ping timeout: 256 seconds]
knightblader has joined #ruby
<evenix> hoelzro: for some reason when i type count in lowercase i get the bug i mentioned earleir
verto is now known as verto|off
cody-- has quit [Remote host closed the connection]
yasushi has joined #ruby
horofox has quit [Quit: horofox]
cody-- has joined #ruby
hoelzro is now known as hoelzro|away
horofox has joined #ruby
mikepack has joined #ruby
lchin has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
savage- has joined #ruby
specialGuest has quit [Ping timeout: 246 seconds]
deadghost has quit [Ping timeout: 268 seconds]
rjmt has quit [Remote host closed the connection]
maxok has quit [Quit: Linkinus - http://linkinus.com]
horofox has quit [Ping timeout: 255 seconds]
lchin has quit [Ping timeout: 244 seconds]
rjmt has joined #ruby
bluOxigen_ has quit [Ping timeout: 268 seconds]
mrdodo has joined #ruby
<lectrick> anyone have any idea how long it takes to build ruby 1.9.3-p194 from scratch?
<lectrick> on a recent laptop?
Spooner has quit [Ping timeout: 240 seconds]
BdeUtra has quit [Remote host closed the connection]
eins11 has joined #ruby
slicslak has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
mohits has quit [Ping timeout: 244 seconds]
Paradox has joined #ruby
notVert has quit [Read error: Connection reset by peer]
Targen has joined #ruby
rburton- has joined #ruby
haxrbyte_ has joined #ruby
mrdodo has quit [Ping timeout: 252 seconds]
cascalheir has joined #ruby
cascalheira has quit [Read error: Connection reset by peer]
jblack has joined #ruby
<Hanmac> lectrick what OS? what processor? i would say you could trink a coffee but you shouldnt finish a book in the time
<rburton-> Anyone know if a good reference in seeing how to obtain the body of the response in Typhoeus as a stream?
haxrbyte has quit [Ping timeout: 252 seconds]
yasushi has quit [Remote host closed the connection]
flagg0204 has quit [Quit: leaving]
flagg0204 has joined #ruby
yshh has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
cody-- has quit [Remote host closed the connection]
cody-- has joined #ruby
F1skr has joined #ruby
cody-- has quit [Remote host closed the connection]
cody-- has joined #ruby
deadghost has joined #ruby
cody-- has quit [Remote host closed the connection]
amacgregor_osx has joined #ruby
lggr has joined #ruby
cody-- has joined #ruby
cody-- has quit [Remote host closed the connection]
cody-- has joined #ruby
hbpoison has joined #ruby
ffranz has quit [Quit: Leaving]
<Sou|cutter> rburton-: I don't see anything in the api for that...
<rburton-> Neither did I, there has to be a way though. Just makes snese
<rburton-> sense also
thunders_ has quit [Remote host closed the connection]
IrishGringo has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
bobbbo has quit [Quit: bobbbo]
rlb3 has joined #ruby
BdeUtra has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
ffranz has joined #ruby
chussenot_ has joined #ruby
jonathanwallace has joined #ruby
<rburton-> How would anyone use Typhoeus for large files then
chussenot has quit [Ping timeout: 240 seconds]
chussenot_ is now known as chussenot
derpops has quit []
minijupe has joined #ruby
Eldariof18-ru has quit [Ping timeout: 246 seconds]
gmci has joined #ruby
Xeago has quit [Remote host closed the connection]
deryl has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
Goles has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
mahmoudimus has joined #ruby
oooPaul has joined #ruby
oooPaul has left #ruby [#ruby]
<lectrick> Hanmac: OS X. Intel. Recent.
notVert has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Ping timeout: 240 seconds]
nirc has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
derpops has joined #ruby
axl_ has quit [Quit: axl_]
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
carloslopes has quit [Quit: Leaving.]
stim371 has joined #ruby
stim371 has quit [Client Quit]
berserkr has joined #ruby
chussenot has quit [Quit: chussenot]
monkegjinni has quit [Remote host closed the connection]
nirc has quit [Client Quit]
rburton- has quit [Ping timeout: 252 seconds]
iocor has joined #ruby
fyolnish has joined #ruby
jblack has quit [Ping timeout: 240 seconds]
cody-- has quit [Remote host closed the connection]
hasse has joined #ruby
stkowski has joined #ruby
cody-- has joined #ruby
cody-- has quit [Client Quit]
<hasse> Should I name my option :parser och :parsers when I can take both a singel value or an array?
<hasse> it*
monkegjinni has joined #ruby
lggr has joined #ruby
savage- has quit [Remote host closed the connection]
<reactormonk> hasse: is the semantics different wherever you pass a single one or an array?
Agis__ has joined #ruby
AlbireoX has quit [Ping timeout: 246 seconds]
CodeFriar has joined #ruby
<hasse> reactormonk: no, not really
austinbv has joined #ruby
wuzzzzaah has quit [Ping timeout: 252 seconds]
diegoviola has quit [Ping timeout: 248 seconds]
Iszak has quit [Quit: User has gone to sleep.]
junioralvim has joined #ruby
<junioralvim> Errno::ETIMEDOUT (Connection timed out - connect(2)):
<junioralvim> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/http.rb:560:in `initialize'
<junioralvim> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/http.rb:560:in `open'
<junioralvim> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/http.rb:560:in `connect'
<junioralvim> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/timeout.rb:53:in `timeo
<junioralvim> help-me
<junioralvim> Errno::ETIMEDOUT (Connection timed out - connect(2)):
<junioralvim> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/http.rb:560:in `initialize'
<junioralvim> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/http.rb:560:in `open'
<junioralvim> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/net/http.rb:560:in `connect'
<junioralvim> /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/1.8/timeout.rb:53:in `timeo
<reactormonk> hasse: then name it parsers, because apparently you're doing Array(parsers) anyway
<reactormonk> junioralvim: wtf, get a pastebin
<boris317> junioralvim: stop pasting in here
<reactormonk> no one told you manners when you were young?
davidcelis has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
<boris317> also thats not even a question, its a random stack trace.
statarb3 has quit [Quit: Leaving]
<canton7> two stack trackes? the same one twice?
cakehero has quit [Quit: Computer has gone to sleep.]
ncr100 has joined #ruby
mohits has joined #ruby
<Hanmac> lectirck so ruby may be finish in the time
flyinprogramer has joined #ruby
<flyinprogramer> using bundler, when i do a bundle update, install, or by itself, bundler will fetch my gem metadata twice...
ttt has joined #ruby
<flyinprogramer> and idea why ?
savage- has joined #ruby
jenrzzz has joined #ruby
cpruitt has quit [Quit: cpruitt]
savage- has quit [Remote host closed the connection]
<Hanmac> flyinprogramer you could ask the guys at #bundler
ryanf has joined #ruby
savage- has joined #ruby
<flyinprogramer> Hanmac: i did… but there are only 27 people there… figured some of you guys might know
<junioralvim> reactormonk: http://pastebin.com/EJ6U4Rer
lggr has joined #ruby
<canton7> junioralvim, you're making a requet to some url, looks like its for some blog, and it's not responding in time. you need better error handling
jblack has joined #ruby
<junioralvim> boris317: http://pastebin.com/EJ6U4Rer
cakehero has joined #ruby
`brendan has joined #ruby
chrishunt has joined #ruby
<lectrick> Hanmac: Huh. It finally seems to be proceeding with more output. Been 2 hrs or so.
ttt has quit [Ping timeout: 260 seconds]
<boris317> junioralvim: please stop flooding the channel. Your stack trace has zero context. as canton7 stated some request you are making is timing out.
knightblader has quit [Read error: Connection reset by peer]
<Hanmac> lectrick so then you should pickup some book to read :P
<davidcelis> flyinprogramer: less people in the channel doesn't necessarily mean they aren't active
junioralvim has left #ruby ["Saindo"]
workmad3 has joined #ruby
<flyinprogramer> davidcelis -- i would tend to agree.. except no one has responded or talked in the room yet...
matthewrobbins has quit [Ping timeout: 240 seconds]
savage- has quit [Remote host closed the connection]
hasse has quit [Ping timeout: 245 seconds]
savage- has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
AlbireoX has joined #ruby
mojo_pojo has joined #ruby
apok has quit [Quit: apok]
lggr has joined #ruby
nateberkopec has quit [Quit: Leaving...]
machty has joined #ruby
nateberkopec has joined #ruby
hadees has quit [Quit: hadees]
havenn has joined #ruby
<bnagy> flyinprogramer: as opposed to how well it's going here
<bnagy> basically, don't crosspost
LouisGB has quit [Ping timeout: 248 seconds]
<bnagy> if you ask the most relevant channel and nobody responds in like 2 seconds
<bnagy> then...wait...
xaq has joined #ruby
shevy has quit [Ping timeout: 268 seconds]
<flyinprogramer> bnagy: it's been twenty minutes...
fermion has quit [Quit: P]
<bnagy> OMG!
mklappstuhl has joined #ruby
<bnagy> like, two zero?
<flyinprogramer> yes OMG! lol
AlbireoX`Laptop has joined #ruby
<bnagy> twelve hundred fucking seconds?
<bnagy> how could the internet ignore you for so long!
<m3pow> hahaha
<flyinprogramer> i just don't understand why anyone would get upset over cross posting when there aren't any serious conversations going on
<bnagy> clearly they don't know who you are
AlbireoX has quit [Read error: Connection reset by peer]
<m3pow> patience is good mate
<m3pow> not just in a chat....but everyday
<reactormonk> m3pow: I think he's boring
lggr has quit [Ping timeout: 255 seconds]
<reactormonk> doesn't talk a lot
<flyinprogramer> i mean i have no problem waiting… but my point still stands that out of 665 people the probability that more than 28 of them [the count in bundler] use bundler, is probably pretty high, so if someone in this user base has had my problem, they might be able to help too
lolmaus has quit []
<m3pow> you said the word probability ....which doesn't add up .. because there is a probability for anything
<bnagy> or, alternatively
* Hanmac would recommend to you, to not use bundler, but he is crazy
<bnagy> the people that care about bundler are probably ALSO IN #BUNDLER
<bnagy> I, for example, am not
<invisime> guys. a little less hostility please?
<flyinprogramer> bnagy: i don't think that's true at all...
<bnagy> because I don't use it, I think it's insane
<reactormonk> invisime: it's the internet, so what? ^^
<invisime> if you don't want to help him, don't. there's no need to berate.
<m3pow> who's hostile
<m3pow> let me have him
* m3pow pulls ak47 from pocket
* lectrick hugs everyone
<flyinprogramer> lol
<invisime> and flyinprogramer, if people aren't answering your question in a free forum, then try somewhere else.
workmad3 has quit [Ping timeout: 240 seconds]
<lectrick> programming is stressful!
<flyinprogramer> invisime: that makes total sense
AnarchoTroll has quit [Quit: Leaving]
<lectrick> i take a walk around the building when i'm getting heated
<invisime> eerie, I know. :-P
<lectrick> it's ok to get heated. you get heated because you care.
<flyinprogramer> i genuinely wasn't trying to start anything… just trying to get my question asked to the largest base of people who it might be relevant to...
<bnagy> flyinprogramer: basically crossposting is evil and insidious, and it doesn't feel like you're being a bad person
jgrevich has joined #ruby
<bnagy> but turns out when you observe the ecosystem on large, it's harmful
lggr has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
<invisime> flyinprogramer: in answer to your original question, I don't know off the top of my head, but you could always check the bundler source code on github if you can't find it anywhere else.
<bnagy> but y'know, it's your freedom, do what you want with it. Me, personally, I'm polite at least 3 times, so you got two left :)
vitoravelino is now known as vitoravelino`afk
mklappstuhl has quit [Ping timeout: 252 seconds]
CarlB_the_great has joined #ruby
CarlB_the_great has quit [Read error: Connection reset by peer]
<flyinprogramer> invisime: i was looking at it, all the code is in fetcher.rb, i haven't reversed who calls it, we also have a layered stack of horrible code… so it just occurred to me to see if the top dependency project also does a double fetch, and start from there
CarlB_the_great has joined #ruby
havenn has quit [Remote host closed the connection]
maletor has joined #ruby
<flyinprogramer> bnagy: fair enough :P
havenn has joined #ruby
johnjohnson has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
johnjohnson has joined #ruby
hbpoison has quit [Ping timeout: 268 seconds]
xaq has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
manizzle has joined #ruby
busybox42 has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 246 seconds]
ryanf has quit [Quit: broken pipes |||]
busybox42 has joined #ruby
ckrailo has joined #ruby
apok has joined #ruby
shevy has joined #ruby
jschairb has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 260 seconds]
havenn has quit [Ping timeout: 252 seconds]
geggam has joined #ruby
khakimov has joined #ruby
bradhe has quit [Remote host closed the connection]
mikeg has joined #ruby
sparki has quit [Ping timeout: 240 seconds]
ncr100_ has joined #ruby
<shevy> ack
<shevy> got disconnected
<shevy> Hanmac, ruby-gnome works again!
Vainoharhainen has quit [Quit: Leaving...]
LouisGB has joined #ruby
ryanf has joined #ruby
<Hanmac> oO i am supprised
ryanf has quit [Client Quit]
<kalleth> mhhhh
<kalleth> cant help but look at the ganglia web frontend and go 'why isnt this prettier ;('
lggr has joined #ruby
ncr100 has quit [Ping timeout: 244 seconds]
mahmoudimus has quit [Ping timeout: 244 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
bbttxu has joined #ruby
zommi has joined #ruby
<shevy> Hanmac yeah... that means I can continue to use it!
xaq has joined #ruby
<shevy> Hanmac I am going to write shitloads of ruby widgets until eventually it can bootstrap the RubyOS in 20 years
monkegjinni has quit [Remote host closed the connection]
<Hanmac> shevy what i hate about ruby-gnome 1. it uses swig 2. the methods are not good documented, 3. you cant access some Types, 4. the resulting ruby code doesnt look very ruby like 5. my rwx will be better
mrsolo has joined #ruby
mahmoudimus has joined #ruby
Foxandxss has joined #ruby
LouisGB has quit [Ping timeout: 255 seconds]
mrdodo has joined #ruby
cbuxton has joined #ruby
mklappstuhl has joined #ruby
Spooner has joined #ruby
xaq_ has joined #ruby
workmad3 has joined #ruby
xaq has quit [Read error: Connection reset by peer]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<Hanmac> shevy did you watch that video?
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has quit [Ping timeout: 252 seconds]
<shevy> it uses swig???
<shevy> I can assure you that swig is not used
chrismcg is now known as zz_chrismcg
<shevy> documentation sucks but it sucks so for every ruby-GUI bindings :(
austinbv has quit [Ping timeout: 240 seconds]
machty has quit [Quit: machty]
br4ndon has joined #ruby
nga4 has joined #ruby
wuzzzzaah has joined #ruby
lggr has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
burgestrand has joined #ruby
<Hanmac> shevy okay swig may not be true, but its bad that GStreamer support is shitty (and imo ruby-gnome should be split into an ruby-gnome3 package for gtk3 and gst1.0)
johnjohnson has quit [Ping timeout: 244 seconds]
carloslopes has joined #ruby
wuzzzzaah has quit [Ping timeout: 240 seconds]
<shevy> btw Hanmac for rwx, please write great documentation :)
johnjohnson has joined #ruby
<Hanmac> yeah someday i will do
zommi has quit [Ping timeout: 265 seconds]
alvaro_o has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
tyfighter has joined #ruby
atmosx has quit [Remote host closed the connection]
echobravo has joined #ruby
havenn has joined #ruby
johnernaut has joined #ruby
elaptics is now known as elaptics`away
mohits has quit [Read error: Connection reset by peer]
johnjohnson has quit [Ping timeout: 252 seconds]
johnernaut is now known as johnjohnson
machty has joined #ruby
lggr has joined #ruby
berkes has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
voodoofish430 has joined #ruby
flyinprogramer has quit [Quit: flyinprogramer]
gmci has quit [Quit: Computer has gone to sleep.]
<lectrick> Is there code out there that will alert me whenever an object changes?
insulator has joined #ruby
<lectrick> throw an error or take a callback block or something?
<blazes816> changes how?
ttt has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
cakehero has quit [Quit: Leaving...]
<lectrick> I have a deep middleware stack (Rails app), and something is modifying the params object. Without tracing through the entire stack, I want to see anything that touches that params object (calls a method on it, etc.)
apok has quit [Remote host closed the connection]
apok has joined #ruby
adamkittelson has joined #ruby
rubious has joined #ruby
CodeFriar has quit [Quit: Leaving...]
RegEchse has joined #ruby
aaronmacy has joined #ruby
<shevy> lectrick hmm for global objects there is http://www.ruby-doc.org/core-1.9.3/Kernel.html#method-i-set_trace_func ... for other objects hmm... not sure there is a special hook for this
<shevy> you'd basically have to intercept all @ivars right?
<shevy> hmm
<shevy> "The Observer pattern (also known as publish/subscribe) provides a simple mechanism for one object to inform a set of interested third-party objects when its state changes."
<lectrick> well, i'd settle for being able to intercept specific methods on the object I guess. Like for example, with the params object I'd want to intercept :[]=
<shevy> "The notifying class mixes in the Observable module."
bbttxu has quit [Quit: bbttxu]
<lectrick> I know about Observable but I'd have to modify the methods I'm trying to observe to notify the observers (i.e. add additional functionality to those methods)
ttt has quit [Ping timeout: 260 seconds]
<blazes816> create a middleware as close to rack as possible and modify the params objects []= directly to trace?
arturaz has quit [Ping timeout: 248 seconds]
<lectrick> I can probably whip something up that will notify me... let me try. blazes816 yeah that's an idea. or just alias that to another method and redefine it myself, trace it and call the original
yshh has quit [Remote host closed the connection]
gmci has joined #ruby
<blazes816> yeah. not pretty but for a rough and tumble debugging it may work well
TomJ has quit [Quit: TomJ]
SCommette has quit [Quit: SCommette]
lledet has joined #ruby
lggr has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
arietis has joined #ruby
cakehero has joined #ruby
enroxorz-work has joined #ruby
TheMoonMaster has quit [Ping timeout: 268 seconds]
voodoofish430 has quit [Ping timeout: 245 seconds]
SCommette has joined #ruby
mksm_ has quit [Ping timeout: 255 seconds]
voodoofish430 has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep]
nate_h has joined #ruby
<nate_h> hey, how do I get quoted strings from stdin to not get escaped when i read them in via ARGF.read?
<nate_h> i have some yaml string data I want to read in to pp
<nate_h> but its escaping all the damn quotes
diegoviola has joined #ruby
verto|off is now known as verto
Russell^^ has joined #ruby
specialGuest has joined #ruby
<shevy> nate_h do you have the example file, can you put it on pastie.org
<nate_h> yeah, pasting now
<nate_h> sec
<nate_h> fixing
lggr has quit [Ping timeout: 244 seconds]
<lectrick> so I can't define_method a method that takes a block, like this, right? define_method(meth_name, *args, &block) do.... end
CarlB_the_great has quit [Remote host closed the connection]
chussenot has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
<nate_h> ok
Paradox has quit [Remote host closed the connection]
jenrzzz has joined #ruby
bobbbo has joined #ruby
wuzzzzaah has joined #ruby
Paradox has joined #ruby
sebastorama has joined #ruby
cakehero has quit [Quit: Leaving...]
lggr has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<nate_h> i basically want to unescape all the chars
<nate_h> so it can be interpretted as a proper yaml string
Paradox has quit [Remote host closed the connection]
<dakine> hey all, i'm just now beginning Ruby - is there a way I can just enter the ruby interpreter like in python?
jrajav has joined #ruby
<dakine> following rubymonk.com
<nga4> irb
<dakine> thanks, any other little tips like that?
crodas has joined #ruby
<nga4> rvm can be a real asset if you want to go through the trouble
<nga4> manages your gems, gemsets and ruby instances
TheMoonMaster has joined #ruby
<nga4> but ruby and irb should be enough to get you cooking
<dakine> awesome :) i installed ruby, rubygems, and rails
BdeUtra has quit [Ping timeout: 276 seconds]
<shevy> dakine you can copy paste ruby code into irb and it will eval it when you press enter
Agis__ has quit [Quit: Agis__]
<shevy> ack, you dive into it deeply from the very beginning
<shevy> btw rubygems is integrated in ruby 1.9.x
Virunga has joined #ruby
wuzzzzaah has quit [Ping timeout: 255 seconds]
<dakine> ah, had installed 1.8
<dakine> and yeah, just to have it all there and ready
<lectrick> how do I alias a method on an object instance?
<shevy> nate_h YAML.load_file("test.yaml") is not an option?
<nate_h> shevy, i wanted to load it via stdin
<nate_h> sec
c0rn_ has joined #ruby
<nate_h> i'll try it
bovi has joined #ruby
wuzzzzaah has joined #ruby
<shevy> lectrick within the class? via alias and alias_method ... outside the class... I dont think you can easily, unless you wrote a special method for it?
<lectrick> shevy: yeah i am trying to alias an instance method on an individual object instance
<Hanmac> dakine whats your OS? maybe you could switch to ruby1.9 without selfinstalling
<shevy> nate_h ok so you basically say, you need to pipe the data into your .rb script, and loading the yaml file directly is not possible
eignerchris has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<shevy> nate_h I think a problem may be that the shell tries to auto-quote things in that case
<nate_h> shevy, its possible, but the yaml is coming from the output of another command so i figured i'd like to just pipe it in
<nate_h> yeah that's what i've gathere das well
<nate_h> isn't there a method to unescape it
<dakine> Hanmac: Mint
<nate_h> like to_s ?
<shevy> nate_h hmm perhaps Shellwords.shellsplit
<Hanmac> dakine so its an debianoid system: "apt-get install ruby1.9.1-full"
<Hanmac> "update-alternatives --config ruby"
<Hanmac> "update-alternatives --config gem"
<Hanmac> all three lines run as root
<dakine> kk, let me remove the old packages first
<shevy> hehe
<dakine> yep
<shevy> we are in the year 2012 and debian still does not allow multiple versions of a program ;(
lxsameer has quit [Quit: Leaving]
<lectrick> shevy: aha i think this is a job for class << self :)
<reactormonk> shevy: I only know of gentoo to allow that
<dakine> ask me about my java installations~
lggr has quit [Ping timeout: 240 seconds]
Paradox has joined #ruby
<rubious> How's your java installation?
<Hanmac> shevy it alows, dakine you dont need to remove the old packages
mksm has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<shevy> reactormonk how does gentoo solve the problem of conflicting names for what is installed?
<dakine> Hanmac: i'd rather keep things clean :p
<shevy> like php-5.1.0 and php-5.3.2
mksm is now known as Guest32003
<reactormonk> shevy: I think you have overlays and can activate one or the other - but I'm not sure
<shevy> sounds magical
stuartrexking has joined #ruby
<shevy> "overlays" :D
wuzzzzaah has quit [Ping timeout: 252 seconds]
<dakine> rubious: there's like 6 of them from fresh install and Mint didn't know what compiler to use. hahah
<reactormonk> shevy: ask in #gentoo, I don't know exactly
<shevy> ok
bbttxu has joined #ruby
seanyo has joined #ruby
<shevy> <reisio> shevy: some packages (PHP included) are "slotted" so you can use more than one version at once
<shevy> whoa sounds fancy... "overlays"... "slots" ...
<shevy> there Hanmac, take that you debian man! gentoo will OVERLAY your SLOTS man
<dakine> sounds lewd
<shevy> hehe
lggr has joined #ruby
CodeFriar has joined #ruby
dekroning has joined #ruby
<shevy> hmmm I still have to find a distribution based on git + github
moted has quit [Remote host closed the connection]
<reactormonk> shevy: take a look at nix
bradhe has joined #ruby
<dakine> Hanmac: i'm getting an error with update alternatives --config gem
emmanuelux has joined #ruby
tommyvyo has quit [Ping timeout: 240 seconds]
<dakine> it's like, /usr/bin/gem1.9.1: There are only one alternative in link group gem, setting is not done
ABK has joined #ruby
<Hanmac> dakine this is no error, its okay
ABK has quit [Read error: Connection reset by peer]
<dakine> okay
<dakine> then all 3 are done
tommyvyo has joined #ruby
jblack has quit [Quit: Lost terminal]
moted has joined #ruby
<Hanmac> "update alternatives" is only when you have multible versions installed, like java6 + java7
<dakine> i see
<dakine> so i use this to set my default?
xaq_ has quit [Remote host closed the connection]
<dakine> or just flag something as a specified alternate
eldariof has joined #ruby
<lectrick> shevy: I figured out a way :) https://gist.github.com/3744666
xaq has joined #ruby
stephenjudkins has joined #ruby
xaq has quit [Remote host closed the connection]
jrajav has quit []
chussenot has quit [Quit: chussenot]
<Hanmac> dakine yeah its for the default-setting
manizzle has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
wuzzzzaah has joined #ruby
rlb3 has quit [Quit: rlb3]
lggr has joined #ruby
yxhuvud has quit []
Guest81895 has quit [Quit: Computer has gone to sleep.]
yxhuvud has joined #ruby
joelsbeard has joined #ruby
wmoxam_ has joined #ruby
johnlcox_ has joined #ruby
kay-z has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
johnlcox has quit [Ping timeout: 252 seconds]
johnlcox_ is now known as johnlcox
<reactormonk> I still think gem sucks at that - ever tried gem cleanup?
CodeFriar has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
bradhe has quit [Remote host closed the connection]
wuzzzzaah has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
baphled has joined #ruby
areil has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
rubious has quit [Quit: Linkinus - http://linkinus.com]
ABK has joined #ruby
arturaz has joined #ruby
Rydefalk has joined #ruby
bwlang has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
cj3kim has quit [Quit: This computer has gone to sleep]
lggr has joined #ruby
austinbv has joined #ruby
vitoravelino`afk is now known as vitoravelino
Spooner has quit [Ping timeout: 252 seconds]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
johnlcox has quit [Quit: Computer has gone to sleep.]
Rydefalk has quit [Read error: Connection reset by peer]
BdeUtra has joined #ruby
Rydefalk has joined #ruby
sepp2k has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
kirun has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
johnlcox has joined #ruby
ABK has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 252 seconds]
ABK has joined #ruby
ttt has joined #ruby
slicslak has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
hadees has joined #ruby
ABK has quit [Read error: Connection reset by peer]
lggr has joined #ruby
Nisstyre-laptop has joined #ruby
ABK has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
graft has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby
diegoviola is now known as diegovio1a
diegovio1a is now known as diegoviola
ABK has quit [Read error: Connection reset by peer]
notVert has quit [Read error: Connection reset by peer]
ABK has joined #ruby
Nisstyre-laptop has quit [Max SendQ exceeded]
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
bobbbo has quit [Quit: bobbbo]
und3f has quit [Ping timeout: 256 seconds]
samflores has joined #ruby
notVert has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
kenneth has joined #ruby
<shevy> lectrick cool
<shevy> lectrick it looks awful though... hehehehe
blazes816 has quit [Quit: blazes816]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
<kenneth> hey there; question: is there a rack middleware out there that will do authentication; except thru an html ui instead of a basic auth window?
etehtsea has joined #ruby
etehtsea is now known as Guest48114
tommyvyo has quit [Ping timeout: 268 seconds]
Rydefalk_ has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
<lectrick> shevy: well, there's no getting around some things. i wanted a flexible way to trace any method on any object, limited to the object instance (and not its entire class) and I think that's pretty much how you do it.
lggr has joined #ruby
duracrisis has quit [Quit: leaving]
tommyvyo has joined #ruby
diegoviola is now known as diegovio1a
lchin has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<kenneth> lectrick: this is not using rails; it's for a rack app (gollum) so i'm looking for a rack middleware solution
diegovio1a is now known as diegoviola
duracrisis has joined #ruby
<lectrick> kenneth: There are a number of solutions on that page, some are rack-specific and not rails-specific
sguoww has quit [Remote host closed the connection]
ebobby has joined #ruby
explody has quit [Remote host closed the connection]
lchin has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 268 seconds]
trevortwining has joined #ruby
bbttxu has quit [Quit: bbttxu]
bovi has left #ruby [#ruby]
jgarvey has joined #ruby
lggr has joined #ruby
uris has quit [Ping timeout: 268 seconds]
evangius has joined #ruby
<evangius> ciao
cakehero has joined #ruby
specialGuest1 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
havenn has quit [Remote host closed the connection]
<evangius> !list
specialGuest has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
TomJ has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
lggr has quit [Ping timeout: 248 seconds]
<shevy> evangius where in Italy are you :D
arturaz has quit [Remote host closed the connection]
kay-z has quit [Quit: Leaving...]
evangius has quit []
evangius has joined #ruby
oGMinor has joined #ruby
beneggett has joined #ruby
evangius has quit [Client Quit]
znake has joined #ruby
arturaz has joined #ruby
znake has quit [Remote host closed the connection]
bbttxu has joined #ruby
znake has joined #ruby
ABK has joined #ruby
havenn has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
RegEchse has joined #ruby
Monie has quit [Quit: Quit]
insulator has quit [Ping timeout: 276 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<Virunga> shevy only italians try to use list command on freenode ? xD
<Virunga> such a shame
<Virunga> eheh
jenrzzz has joined #ruby
<Virunga> October 1st is starting my ruby developer career. I'll use Chef framework.
<Virunga> And Rails.
<shevy> virunga hey he wrote "ciao"... and quitted. I think they hate the english language :(
deadghost has quit [Ping timeout: 252 seconds]
wuzzzzaah has joined #ruby
ckrailo has joined #ruby
jrajav has joined #ruby
<Virunga> shevy no we don't hate it. Maybe it's because there are lots of differences between the languages, or maybe is the school.
<shevy> for the japanese it must be the school
<shevy> they have awful english teachers, so their english is awful too
<Virunga> I heard is really difficult say words that don't end with a vocal for japans.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Virunga> japanes
lggr has quit [Ping timeout: 255 seconds]
<shevy> yeah that can be
schaerli has joined #ruby
<shevy> I found the japanese language easier than the korean language
<Virunga> Oh.
mahmoudimus has joined #ruby
mahmoudimus has quit [Client Quit]
<shevy> virunga did you listen to "gangnam style"? :D I can barely understand anything
<Virunga> Sure i did. :D
<voodoofish430> I thought it was gundam style at first...was expecting big robots dancing...
<Virunga> So you study Korean shevy ?
mahmoudimus has joined #ruby
wuzzzzaah has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
br4ndon has joined #ruby
blazes816 has joined #ruby
wuzzzzaah has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
GoldenCider has joined #ruby
<Virunga> I'll go. Bye
cj3kim has quit [Quit: This computer has gone to sleep]
ryanf has joined #ruby
lggr has joined #ruby
manouch has joined #ruby
macmartine has joined #ruby
<manouch> hi... i have an array of hashes... i want to iterate over it and add a new hash value to each and give back the value then... what'd be the best to do so?
Virunga_ has joined #ruby
triptec has joined #ruby
diegoviola has quit [Quit: leaving]
insulator has joined #ruby
wuzzzzaah has quit [Ping timeout: 268 seconds]
cilquirm has joined #ruby
tvw has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
deadghost has joined #ruby
dpk has joined #ruby
<GoldenCider> Does anyone know why when I redirect back to my index controller while creating something from index/new I get a blank page for rails?
insulator has quit [Remote host closed the connection]
znake has quit [Quit: znake]
austinbv has quit [Ping timeout: 260 seconds]
<banisterfiend`> GoldenCider join #rubyonrails
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
eighty4_ is now known as eighty4
eighty4 has quit [Changing host]
eighty4 has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
theRoUS_ has quit [Ping timeout: 252 seconds]
bradhe_ has joined #ruby
dakine has quit [Remote host closed the connection]
monkegjinni has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
wuzzzzaah has joined #ruby
eighty4 has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
bradhe has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
uris has joined #ruby
wuzzzzaah has quit [Ping timeout: 256 seconds]
BrokenCog has quit [Read error: Connection reset by peer]
jonatha__ has joined #ruby
dakine has joined #ruby
ABK has quit [Ping timeout: 240 seconds]
insulator has joined #ruby
ttt has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
<fir_ed> What is the simplest way
<fir_ed> for my script
<fir_ed> to communicate with a 'host'
<fir_ed> through the web?
<fir_ed> sockets?
<banisterfiend`> fir_ed innernet
<kaleido> if its all standard http you could use net/http
<fir_ed> keleido anything simpler than net/htto?
<fir_ed> kaleido*
<fir_ed> haven't done network programming before
<fir_ed> Just want to pass a string/datatype through
cascalheir has quit [Quit: Leaving...]
ttt has quit [Ping timeout: 260 seconds]
emmanuelux has quit [Quit: emmanuelux]
lggr has joined #ruby
<fir_ed> ty havenn
<fir_ed> will look into that
emmanuelux has joined #ruby
emmanuelux has quit [Read error: Connection reset by peer]
cj3kim has quit [Quit: This computer has gone to sleep]
insulator has quit [Ping timeout: 276 seconds]
stopbit has quit [Read error: Operation timed out]
samflores is now known as samflores|away
samflores|away is now known as samflores
peteyg_ has joined #ruby
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
xorgnak has joined #ruby
jerrad has joined #ruby
<peteyg_> Using Ruby 1.9.3, do I have to use the hash-rocket construct if I'm referencing a symbol? (i.e. {:action => :success} instead of {action: :success})
<havenn> peteyg_: Try it in Pry: both work
emmanuelux has joined #ruby
<peteyg_> havenn: Cools :)
athit has joined #ruby
fir_ed has quit [Ping timeout: 244 seconds]
<invisime> peteyg_: I like using the 1.9 specific syntax so as to enforce my users to be on a modern version of ruby. because screw backwards compatibility!
<Hanmac> xD
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 260 seconds]
horofox has joined #ruby
uris has quit [Ping timeout: 248 seconds]
mahmoudimus has joined #ruby
iamjarvo has joined #ruby
neku has joined #ruby
uris has joined #ruby
<invisime> also, it's prettier.
ken_barber has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
nanderoo has quit [Quit: Leaving.]
fir_ed has joined #ruby
<peteyg_> invisime: Not sure if you're being sarcastic, but I like it ;).
<shevy> peteyg_ I think it is not sarcasm, such statements have been made several times
<asteve> ruby 1.9.3 I <3 you
<shevy> some people now hate ruby 1.8.x
<asteve> it's actually GC'ing a passengers wasted memory
banisterfiend` has quit [Read error: Connection reset by peer]
<asteve> it's like magic
CodeFriar has joined #ruby
samflores is now known as samflores|away
<peteyg_> Well, at any rate, I dislike hash-rockets for the mere fact that it reminds me of PHP, and PHP is ugh.
F1skr has quit [Quit: WeeChat 0.3.8]
kvirani has quit [Remote host closed the connection]
ABK has joined #ruby
matthewrobbins has joined #ruby
ABK has quit [Read error: Connection reset by peer]
loves_color_text has joined #ruby
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
samflores|away is now known as samflores
AlbireoX`Laptop has quit [Remote host closed the connection]
banisterfiend` has joined #ruby
CodeFriar has quit [Quit: Leaving...]
<invisime> peteyg_: for what it's worth, it was roughly half sarcasm. it is an opinion that I hold and I do actually do it that way. but it's not as strong a predilection of mine as I'm making it out to be.
AlbireoX has joined #ruby
<shevy> Hanmac, http://0fps.wordpress.com/2012/09/18/turning-8-bit-sprites-into-printable-3d-models/ I need this in ruby-ogre, so I can go from 2D to 3D
lggr has quit [Ping timeout: 268 seconds]
<shevy> peteyg_ you mean the -> operator ?
<shevy> I feel this syntax is in conflict with the rest of ruby code. Ironically though, perl code like $foo->lala(); ... is now almost valid ruby :P
<Hanmac> shevy oO
<shevy> "The last cool thing that I added was the ability to 3D print your models on the ShapeWays store once you are done. This means that you can take your designs and turn them into nifty 3D miniatures:"
<shevy> this is really cool
<shevy> reminds me of LEGO
<shevy> just that people could 3D print everything
<shevy> Star Trek replicator :D
arturaz has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
havenn has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 252 seconds]
bricker has joined #ruby
havenn has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
ar_ has quit [Quit: Leaving]
stephenjudkins has joined #ruby
chrishunt has quit [Read error: Operation timed out]
<shevy> for some reason, the larger a ruby project grows, the harder it is to change it
<shevy> or, rather, it takes more time to find where exactly to change something
robustus has joined #ruby
samflores has quit [Quit: Linkinus - http://linkinus.com]
<kaleido> is that not true of all languages?
havenn has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
nimred has quit [Quit: leaving]
nimred has joined #ruby
<yxhuvud> I tend to find it a lot more easy to find where to change stuff the bigger the project. The problem is finding time and keeping the scope of the changes within timeframes.
niklasb has quit [Ping timeout: 260 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
Guedes is now known as Guedes_out
c0rn_ has joined #ruby
love_color_text has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
c0rn_ has quit [Client Quit]
perryh is now known as perry
cakehero has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
<bricker> what do you prefer `hash.fetch(:something, "Default")`, or `hash[:something] || "Default"`
c0rn_ has joined #ruby
<invisime> bricker: the latter. because it's easier to see what's going on if I'm not familiar with the fetch method. it does mean that I can't later decide that the hash should have a default other than nil though. >_>
cakehero has joined #ruby
<invisime> fair trade, if you ask me.
<yxhuvud> bricker: I prefer Hash.new {"Default"}
CodeFriar has joined #ruby
<bricker> yxhuvud: it's an existing hash though
lggr has joined #ruby
<bricker> invisime: I'm not sure I agree with that - if someone reading the code doesn't know a method, it shouldn't be my fault
<bricker> invisime: I will agree that .fetch is a little less readable, you're right, but the docs are right there
<yxhuvud> well, you could set the default level if you really want to. but might not be apropriate
<yxhuvud> -level + proc.
trevortwining is now known as __trevortwining
busybox42 has quit [Quit: Leaving.]
ken_barber has joined #ruby
busybox42 has joined #ruby
<invisime> bricker: readability should be your concern as a developer. the 'thing || fallback_thing' idiom is very common and therefore more readable. I think that trumps the hidden gotcha of not being able to add a non-nil default. especially since doing so would probably supersede the need for that line anyway.
bricker has left #ruby [#ruby]
bricker has joined #ruby
<bricker> invisime: What hidden gotcha?
krawchyk has quit [Remote host closed the connection]
AlbireoX has quit [Remote host closed the connection]
<invisime> if you use the thing || default_thing strategy, then later decide to change the default return value of the hash to be something other than nil, it will break your code. if you use fetch, it'll still behave the same way.
<bricker> invisime: Oh yeah
lggr has quit [Ping timeout: 240 seconds]
<invisime> that said, I would think that if you were changing the default return value of your hash, you'd remember that you had this work around in place. and the || version is more readable.
* invisime shrugs.
<invisime> your call. :-P
cakehero has quit [Quit: Computer has gone to sleep.]
flip_digits has joined #ruby
uris_ has joined #ruby
seanyo has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
apeiros_ has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
GoldenCider has quit [Quit: GoldenCider]
banseljaj is now known as imami|afk
<bricker> invisime: thanks for the input
uris has quit [Ping timeout: 244 seconds]
<invisime> no problem. :-)
emmanuelux has joined #ruby
fastred has joined #ruby
jrajav has quit []
niklasb has joined #ruby
ttt has joined #ruby
mva3212 has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
xaq has joined #ruby
workmad3 has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
philcrissman has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
stopbit has joined #ruby
neku has quit [Quit: Linkinus - http://linkinus.com]
pitty has joined #ruby
chessguy has joined #ruby
chrishunt has joined #ruby
bluOxigen has joined #ruby
banisterfiend` has quit [Ping timeout: 240 seconds]
cakehero has joined #ruby
philcrissman has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
zommi has joined #ruby
fastred has left #ruby [#ruby]
moshee has quit []
allsystemsarego has quit [Remote host closed the connection]
p2p-pirate has joined #ruby
bricker has left #ruby [#ruby]
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<p2p-pirate> is this ruby
<p2p-pirate> i mean that exploit
ph^ has quit [Read error: Connection reset by peer]
<invisime> p2p-pirate: yes.
lggr has joined #ruby
ph^ has joined #ruby
wuzzzzaah has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
<p2p-pirate> ok thanks
p2p-pirate has left #ruby [#ruby]
amacgregor_osx has quit [Read error: Connection reset by peer]
<invisime> damn script kiddies. >_>
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby
fir_ed has quit [Quit: Leaving]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
CodeFriar has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 246 seconds]
eldariof has quit []
answer_42 has quit [Quit: WeeChat 0.3.8]
wuzzzzaah has quit [Ping timeout: 245 seconds]
voodoofish430 has left #ruby [#ruby]
zommi has quit [Ping timeout: 265 seconds]
kloeri has left #ruby [#ruby]
matthewrobbins has quit [Quit: matthewrobbins]
ndrei has joined #ruby
amacgregor_osx has joined #ruby
matthewrobbins has joined #ruby
chessguy has quit [Remote host closed the connection]
lggr has joined #ruby
Guest64548 has quit [Quit: Guest64548]
wuzzzzaah has joined #ruby
foofoobar has joined #ruby
havenn has joined #ruby
TheIronWolf has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
geekbri has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
sebastorama has quit [Quit: Computer has gone to sleep.]
asteve has quit []
wuzzzzaah has quit [Ping timeout: 255 seconds]
sailias has quit [Quit: Leaving.]
stephenjudkins has quit [Quit: stephenjudkins]
fir_ed has joined #ruby
ltsstar has quit [Quit: ltsstar]
evilsushi has quit [Quit: Lost terminal]
mmitchell has joined #ruby
foofoobar has quit [Quit: bb]
TheIronWolf has quit [Quit: cheers]
geggam has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
havenn has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
elico has joined #ruby
CodeFriar has joined #ruby
schaerli has quit [Remote host closed the connection]
<Xeago> do you obtain or gain knowledge?
Morkel has quit [Quit: Morkel]
wez_ has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
luckyruby has joined #ruby
<davidcelis> gain
<Xeago> okay, what's the reasoning behind it?
<davidcelis> obtain works too, i mean
<davidcelis> gain is just semantically a better choice
pitty has quit [Ping timeout: 250 seconds]
<davidcelis> because obtain is more often used in context of a physical object
beneggett has joined #ruby
voodoofish4301 has joined #ruby
kvirani has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
burgestrand has quit [Quit: Leaving.]
horofox has quit [Quit: horofox]
timonv has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
internet_user has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
w400z has joined #ruby
lggr has joined #ruby
dakine has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
invisime has quit [Quit: Leaving.]
justinmcp has joined #ruby
ctp has quit [Quit: Linkinus - http://linkinus.com]
cakehero has quit [Ping timeout: 244 seconds]
sjuxax has joined #ruby
wez_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
justinmcp has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 252 seconds]
<reactormonk> Xeago: #english
<sjuxax> Hi. I am using pushing millions of elements through a hash, and I occasionally reset it to an empty hash. Ruby does not seem to be releasing any of this memory when I zero back out, even if I do explicit GC.start, and even though I have cleared all references I make to the content of this hash after I have copied out a single important element into a big list (some million items) (I am assigning the value with .to_s to make sure a new string is stored, ins
ttt has joined #ruby
flip_digits has quit [Quit: Computer has gone to sleep.]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
cakehero has joined #ruby
xorgnak has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
dakine has joined #ruby
mark_locklear has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
ttt has quit [Ping timeout: 260 seconds]
BSaboia has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
delinquentme has joined #ruby
linoj_ has joined #ruby
<delinquentme> is this malformed? dbf.each{ |y| if( y.file_path.include?"paperclip") puts y ; puts "\n" }
Chryson has joined #ruby
<delinquentme> How do I do an inline if in this case with multiple puts?
<Mon_Ouie> Well, yeah. You need an end after an "if"
<Mon_Ouie> Ruby can't magically guess which expressions you want to include in the if body
<delinquentme> do I need a "do" ?
lggr has quit [Ping timeout: 268 seconds]
linoj has quit [Ping timeout: 240 seconds]
<davidcelis> do is for blocks
Guest48114 has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jjbohn has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 246 seconds]
linoj_ has quit [Ping timeout: 268 seconds]
yekta has quit [Quit: yekta]
<Mon_Ouie> You need an "end"
evenix has quit [Remote host closed the connection]
<canton7> delinquentme, dbf.each{ |y| puts y if y.file_path.include?("paperclip"); puts "\n" }
jenrzzz has quit [Ping timeout: 246 seconds]
<delinquentme> dbf.each{ |y| if( y.file_path.to_s.include?"paperclip"); puts y; puts "\n" end }
<delinquentme> worked :D
<canton7> delinquentme, or alternatively: dbf.select{ |y| y.file_path.include?("paperclip") }.join("\n") (different behaviour though -- doesn't put a newline if it doesn't print y)
<canton7> delinquentme, or dbf.each{ |y\ puts "#{y}\n" if y.file_path.include?("paperclip") }
matthewrobbins has joined #ruby
<canton7> s/|y\/|y|
lmarcetic has joined #ruby
<delinquentme> canton7, HIRED!
<canton7> learn to ruby :)
baphled has quit [Ping timeout: 240 seconds]
lmarcetic has left #ruby [#ruby]
timonv has joined #ruby
bwlang has left #ruby [#ruby]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
Juul has joined #ruby
adamkitt_ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
hadees has quit [Quit: hadees]
lggr has joined #ruby
CoverSlide has joined #ruby
adamkittelson has quit [Read error: Operation timed out]
bricker has joined #ruby
iocor has joined #ruby
ph^ has quit [Remote host closed the connection]
adamkitt_ has quit [Ping timeout: 252 seconds]
slicslak has quit [Ping timeout: 256 seconds]
niklasb has quit [Quit: WeeChat 0.3.8]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
johnjohnson has quit []
slicslak has joined #ruby
<shevy> canton7, FIRED!
matthewrobbins has left #ruby [#ruby]
joshman_ has quit [Ping timeout: 252 seconds]
<shevy> sorry... I was just looking at the economical overall situation and had to act swiftly :(
timonv has quit [Remote host closed the connection]
cakehero has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
<canton7> shevy, hah! meh, I have a job, economical overall situations don't bother meee ;)
wmoxam_ has quit [Ping timeout: 240 seconds]
Spooner has joined #ruby
kirun has quit [Quit: Client exiting]
mmitchell has quit [Remote host closed the connection]
<apeiros_> canton7: assuming y does not end with a newline, then puts y and puts "#{y}\n" are the same.
havenn has joined #ruby
dakine has quit [Quit: Leaving]
mroh has joined #ruby
BSaboia__ has joined #ruby
<canton7> apeiros_, damn, I forget 'puts' is all clever like that. thanks
<apeiros_> puts y, ""
<mroh> puts "8::::D"
the_jeebster has joined #ruby
<the_jeebster> are there any ruby 2.0 pre-release binaries available to toy around with?
lggr has joined #ruby
Banistergalaxy has joined #ruby
moted has quit [Remote host closed the connection]
<havenn> the_jeebster: Yeah, in RVM it is 'install ruby-head' (have to get 1.8.7 installed before 2.0.0-dev) or on rbenv/ruby-build it is 'rbenv install 2.0.0-dev' (I think).
Guedes has joined #ruby
pricees_ has quit [Quit: leaving]
glupo has joined #ruby
BSaboia has quit [Ping timeout: 252 seconds]
matthewrobbins has joined #ruby
<the_jeebster> havenn: cool, thanks
<havenn> the_jeebster: Or rbfu/ruby-build: ruby-build 2.0.0-dev $HOME/.rbfu/rubies/2.0.0-dev
carloslopes has quit [Quit: Leaving.]
<glupo> Hi guys! Has anyone faced a problem with unable to remove ruby with "sudo apt-get purge ruby" saying that it's not installed?
lushious is now known as jae_is_gay
johnjohnson has joined #ruby
moted has joined #ruby
geggam has joined #ruby
the_jeebster has quit [Quit: Leaving.]
h4mz1d has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
jae_is_gay is now known as jae_
gfontenot has quit []
<apeiros_> glupo: that sounds more like an apt related problem, no? i.e. #ubuntu/#debian…
athit has quit [Ping timeout: 252 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
sebastorama has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
<CoverSlide> glupo: perhaps something else installed it
<havenn> glupo: I'd recommend ignoring the system ruby and using rvm, rbenv, or rbfu to juggle your rubies
<CoverSlide> seconded
mmitchell has joined #ruby
jae_ is now known as LuShIoUs
<glupo> That's exactly the reason why I want to remove ruby - I need to use rvm
pricees has quit [Ping timeout: 240 seconds]
<havenn> glupo: P.S. - the apt-get ruby-rvm is broken, just: curl -L https://get.rvm.io | bash -s stable --ruby
matthewrobbins has left #ruby [#ruby]
<CoverSlide> technically, you can still have system ruby and rvm. it won't hurt nobody
<havenn> glupo: rvm can ignore system ruby for you, best to leave it be
<glupo> I need to remove standalone ruby before
<havenn> glupo: why?
<CoverSlide> no you dont
<havenn> glupo: Typically, one leaves system ruby in place, and RVM handles it from there.
<glupo> I thought rvm keeps its rubies in its own place
<CoverSlide> it does
<havenn> glupo: It does, but it gracefully handles co-existence with system ruby.
<CoverSlide> but it won't conflict if you have sys ruby
eikko has quit [Ping timeout: 248 seconds]
<havenn> glupo: If you want to use the system ruby, you can always: rvm use system
chessguy has joined #ruby
<glupo> Wow
CodeFriar has quit [Read error: Connection reset by peer]
<glupo> Never new it
CodeFriar has joined #ruby
<apeiros_> *knew
<havenn> now you now it!
<glupo> Thanks)
gmci has joined #ruby
<apeiros_> havenn: surely you mean "know you now it!"
dagnachewa has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<glupo> Looks like grammar nazi in here
mbk has quit [Ping timeout: 252 seconds]
mmitchell has quit [Remote host closed the connection]
lggr has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
<CoverSlide> godwin's law
<apeiros_> glupo: y? u prfr sily n badly speling?
rmcafee has quit [Quit: rmcafee]
<glupo> lol
<apeiros_> and yeah, what CoverSlide said
axl_ has quit [Quit: axl_]
piotr__ has joined #ruby
<apeiros_> the latter of mine was actually a joke. if you didn't get it, you might be in dire need of a grammar nazi, though…
matthewrobbins has joined #ruby
matthewrobbins has quit [Client Quit]
h4mz1d has quit [Ping timeout: 252 seconds]
sabooky has joined #ruby
<glupo> My native language is russian. I might not get some jokes indeed
jenrzzz has joined #ruby
<sabooky> Hi, quick question. Is there any way to install multiple versions of a gem using a GemFile?
stkowski has quit [Quit: stkowski]
<sabooky> gem "net-ssh", "2.3.0", "2.5.2" gives a syntax error
<havenn> glupo: You speak more English than I do Russian! We were just jesting.
<apeiros_> glupo: not to worry, english isn't my native language either.
<sabooky> using multipe lines gives me the following error: You cannot specify the same gem twice with different version requirements. You specified: net-ssh (= 2.3.0) and net-ssh (= 2.5.2)
eikko has joined #ruby
jgarvey has quit [Quit: Leaving]
lggr has quit [Ping timeout: 248 seconds]
stopbit has quit [Ping timeout: 244 seconds]
[Neurotic] has joined #ruby
<glupo> How are you going to use two versions of gem simultaneously
joelsbeard has quit [Ping timeout: 248 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<mercwithamouth> not a ruby question but would anyone mind telling me exactly how you make anonymous gists? i click private..name shows...public..name shows...no option for anonymous. do you need a paid account for that?
eins11 has quit [Remote host closed the connection]
<canton7> mercwithamouth, the way i've found is not to log in :P
xaq has quit [Remote host closed the connection]
<canton7> (or private browsing / whatever)
<havenn> mercwithamouth: Log in incognito/private ^
minijupe has quit [Quit: minijupe]
CodeFriar has quit [Read error: Connection reset by peer]
CodeFriar has joined #ruby
williamcotton has quit [Quit: williamcotton]
<mercwithamouth> canton7: *coughs*
elico has quit [Quit: elico]
<mercwithamouth> lol good point canton7 and havenn
lggr has joined #ruby
machty has quit [Quit: machty]
joelsbeard has joined #ruby
<shevy> glupo! I watch youtube funny car crashes a lot and 80% of the videos are from russia!
justinmcp has joined #ruby
<shevy> it is because of all the ice
lggr has quit [Ping timeout: 246 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
<glupo> And bears ofcourse
<apeiros_> shevy: ice? I thought you can't freeze vodka…
berserkr has quit [Quit: Leaving.]
<glupo> Why not?
seanyo has joined #ruby
<apeiros_> well, you can, but that won't be at consumable temperatures anymore
<apeiros_> and you'd need special equipment. your kitchen freezer won't do
<havenn> -15 degrees F-ish - cold
bananagram has joined #ruby
<glupo> You still can lick it.
<havenn> (((40*10/46.7) / ((100-40)/100))*-1.86) C = ? F
bluOxigen has quit [Ping timeout: 244 seconds]
ttt has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<glupo> good vodka freezes at -24.5C
<havenn> glupo: good == over 50 proof?
mwilson` has quit [Excess Flood]
<havenn> glupo: Agreed!
mwilson` has joined #ruby
<havenn> glupo: Oh.. you said 'C'
<shevy> glupo ah but the polar bears are in sweden
stopbit has joined #ruby
<apeiros_> hm, I misremember… somehow I remembered quite a bit lower temperature
adamkittelson has joined #ruby
adamkittelson has quit [Remote host closed the connection]
<sjuxax> Hi. I am using pushing millions of elements through a hash, and I occasionally reset it to an empty hash. Ruby does not seem to be releasing any of this memory when I zero back out, even if I do explicit GC.start, and even though I have cleared all references I make to the content of this hash after I have copied out a single important element into a big list (some million items) (I am assigning the value with .to_s to make sure a new string is stored, ins
<shevy> what!
<shevy> millions!
ZachBeta has joined #ruby
<blazes816> what on earth is in this hash?
<havenn> "Please don't sue us right now, our lawyer is passed out in an alley from too much moonshine, so please at least wait until he's found and doesn't have a huge hangover..."
ttt has quit [Ping timeout: 260 seconds]
<blazes816> every human?
<sjuxax> yes, something like 3.5 million right now, could grow.
<havenn> sjuxax: Order of magnitudes more.
kpshek has quit []
<havenn> sjuxax: Order** singular =P
c0rn_ has joined #ruby
havenn has quit [Remote host closed the connection]
stopbit has quit [Client Quit]
<blazes816> so what are you doing with all this hash?
<sjuxax> storing data.
<sjuxax> and then unstoring it
lggr has joined #ruby
<sjuxax> but Ruby refuses to unstore it for me ;(
<shevy> blazes816 EVERY ATOM IN THIS UNIVERSE
<shevy> I tell you, this is the biggest hash, the mother of all hashes
<blazes816> better use symbols
<shevy> lol
<shevy> sjuxax, you could always try to ask the ruby core team :)
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
johnlcox has quit [Ping timeout: 260 seconds]
<blazes816> sjuxax: do all these things really need to be in memory at the same time? or can you partition the data?
bbttxu has quit [Quit: bbttxu]
vlad_starkov has quit [Ping timeout: 245 seconds]
<blazes816> because if they really do need to be, ruby probably isn't what you want
johnjohnson has quit []
Foxandxss has joined #ruby
Foxandxss has quit [Client Quit]
<sjuxax> blazes816: No, does not all have to be in same time. Partitioning is basically what I am trying to do. I have it looping through so many at a time, and trying to zero out once that many is processed. I also have the hash chunking into smaller hashes, as I thought this might be easier to handle for Ruby, so it's like master['bundle_1'] = {HASH OF 50K ITEMS}, master['bundle_2'] = {...}, etc.
<sjuxax> then, after I have processed some section, master = {}
<sjuxax> but Ruby won't release the memory, ends up using some gigabytes
lledet has quit [Quit: lledet]
specialGuest1 has quit [Quit: WeeChat 0.3.8]
jrist is now known as jrist-afk
Foxandxss has joined #ruby
<sjuxax> As I said, I try to be careful that no real objects from the hash are referred elsewhere; the data in these hashes is destroyed, and just a UUID from each entry is copied into a list. I copy it with string.to_s in hopes of getting an object not related to the hash, so that Ruby can release it on when GC runs
lggr has quit [Ping timeout: 248 seconds]
<sjuxax> It is used basically as a temporary lookup table
Goles has joined #ruby
<blazes816> have you tried "string.dup" ?
ZachBeta has quit [Quit: Computer has gone to sleep.]
<blazes816> iirc ruby uses the same internal string until modification
hadees has joined #ruby
<sjuxax> no, haven't tried .dup. Will try that, thanks.
w400z has quit [Quit: Computer has gone to sleep.]
ZachBeta has joined #ruby
lggr has joined #ruby
sailias has joined #ruby
pu22l3r_ has joined #ruby
awarner has quit [Remote host closed the connection]
<sjuxax> blazes816: Seemingly no change with dup. Does not go down appreciably on h = {}
dagnachewa has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 246 seconds]
<blazes816> i'd try something other ruby my friend.
<blazes816> generally if you need to worry about men and you're not running a production server, ruby isn't for you
justinmcp has quit [Remote host closed the connection]
<blazes816> (by you, I mean this use case)
mwilson` has quit [Excess Flood]
sn0wb1rd has joined #ruby
mwilson` has joined #ruby
yxhuvud has joined #ruby
GoldenCider has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
<sjuxax> yeah, that'd be nice. Client says it must be Ruby. They're doing it in PHP right now. May be able to work around with http://www.platanus.cz/blog/working-with-huge-hashes-in-ruby , but kind of lame as shouldn't be complicated to release that hash occasionally and keep mem usage / GC collect cycles reasonable
lggr has quit [Ping timeout: 240 seconds]
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
baroquebobcat has joined #ruby
philcrissman has quit [Remote host closed the connection]
skogis has quit [Ping timeout: 246 seconds]
baroquebobcat has quit [Client Quit]
ph^ has joined #ruby
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins_ has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
bier has quit [Ping timeout: 252 seconds]
__trevor_ has joined #ruby
SCommette has quit [Quit: SCommette]
Virunga has quit [Quit: Sto andando via]
Goles_ has joined #ruby
__trevor_ has quit [Client Quit]
__trevor_ has joined #ruby
justinmcp has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
deadghost has quit [Ping timeout: 248 seconds]
__trevortwining has quit [Ping timeout: 248 seconds]
Goles has quit [Ping timeout: 240 seconds]
kiyoura has joined #ruby
joofsh has joined #ruby
__trevor_ has quit [Client Quit]
trevortwining has joined #ruby
Goles_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<blazes816> sjuxxax: that google_hash gem looks like exactly what you want. keep the mem use out of ruby
Prudhvi has quit [Quit: leaving]
Goles has joined #ruby
lggr has joined #ruby
ph^ has quit [Ping timeout: 252 seconds]
kay-z has joined #ruby
machty has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
kay-z has quit [Client Quit]
piotr__ has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
LouisGB has joined #ruby
CodeFriar has quit [Ping timeout: 244 seconds]
bier has joined #ruby
justinmcp has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
yxhvuud has joined #ruby
machty has quit [Client Quit]
yxhuvud has quit [Ping timeout: 252 seconds]
<shevy> hmm
lggr has quit [Ping timeout: 252 seconds]
chessguy has quit [Remote host closed the connection]
nari has joined #ruby
dagnachewa has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
invisime1 has joined #ruby
machty has joined #ruby
dagnachewa has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
kvirani has quit [Remote host closed the connection]
lggr has joined #ruby
uris_ has quit [Quit: leaving]
machty has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
apeiros_ has quit [Remote host closed the connection]
invisime1 is now known as invisime
pskosinski has joined #ruby
CoverSlide has quit [Remote host closed the connection]
justinmcp has joined #ruby
invisime has quit [Disconnected by services]
invisime1 has joined #ruby
Russell^^ has quit [Quit: Russell^^]
Virunga_ has quit [Remote host closed the connection]
invisime1 is now known as invisime
pskosinski has left #ruby [#ruby]
samflores has joined #ruby
<invisime> hm.
banannagram has joined #ruby
bananagram has quit [Read error: Connection reset by peer]
xaq has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
<sjuxax> Hmm, maybe if I can understand http://dpaste.com/802834/ , I could learn why I am having problems. Anyone able to help?
dagnachewa has joined #ruby
machty has joined #ruby
<sjuxax> err, make that http://dpaste.com/802836/
rmcafee has joined #ruby
xaq has quit [Remote host closed the connection]
mrdodo has quit [Remote host closed the connection]
chrisbolton has quit [Quit: chrisbolton]
\13k has joined #ruby
lggr has joined #ruby
<shevy> sjuxax sounds strange
ndrei has quit [Ping timeout: 244 seconds]
<shevy> perhaps put it into a thread and kill it
<shevy> and see if the memory usage drops
CoverSlide has joined #ruby
dekroning has quit [Ping timeout: 252 seconds]
w400z has joined #ruby
Edward_ has joined #ruby
null- has joined #ruby
rmcafee has quit [Read error: Connection reset by peer]
rmcafee_ has joined #ruby
stuartrexking has quit [Quit: Leaving...]
stuartrexking has joined #ruby
Xeago has quit [Remote host closed the connection]
rmcafee_ has quit [Client Quit]
mercwithamouth has joined #ruby
fir_ed has quit [Ping timeout: 245 seconds]
<blazes816> sjuxax: hey, just wondering, what if you do something like my_hash.delete_if{|k| true}
ttt has joined #ruby
Beoran_ has quit [Ping timeout: 240 seconds]
<blazes816> and perhaps my_hash#rehash
lggr has quit [Ping timeout: 256 seconds]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
ndrei has joined #ruby
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby
jck_true_ has quit [Read error: Connection reset by peer]
Jck_true has joined #ruby
chessguy has joined #ruby
ndrei_ has joined #ruby
ndrei_ has quit [Client Quit]
lggr has joined #ruby
ttt has quit [Ping timeout: 260 seconds]
bbttxu has joined #ruby
JStoker has quit [Excess Flood]
ndrei_ has joined #ruby
chessguy has quit [Remote host closed the connection]
slicslak has quit [Ping timeout: 245 seconds]
tarwich1 has joined #ruby
bbttxu has quit [Read error: Connection reset by peer]
slicslak has joined #ruby
awarner has joined #ruby
mikepack has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
bbttxu has joined #ruby
samflores is now known as samflores|away
machty has quit [Quit: machty]
gabrielrotbart has joined #ruby
mojo_pojo has left #ruby [#ruby]
chessguy has joined #ruby
`damien has joined #ruby
kiyoura has quit [Quit: Leaving]
Goles has quit [Quit: Computer has gone to sleep.]
samflores|away is now known as samflores
lggr has quit [Ping timeout: 252 seconds]
JStoker has joined #ruby
Beoran_ has joined #ruby
ndrei has quit [Quit: Lost terminal]
chessguy has quit [Remote host closed the connection]
JStoker has quit [Excess Flood]
JStoker has joined #ruby
TomJ has quit [Quit: TomJ]
jarred has joined #ruby
bontaq has quit [Remote host closed the connection]
dagnachewa has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
banannagram is now known as bananagram
tarwich1 has quit [Quit: Leaving.]
lggr has joined #ruby
lewis1711 has joined #ruby
dagnachewa has joined #ruby
<lewis1711> is there an array method which does "return the first element that returns true for this block" ?
jenrzzz has quit [Ping timeout: 240 seconds]
<ryanf> .find
<ryanf> I think it has an alias too
sepp2k has quit [Remote host closed the connection]
ph^ has joined #ruby
<lewis1711> ah, it's probably in enumerable
LouisGB has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
triptec has quit [Quit: triptec]
ndrei_ has quit [Quit: leaving]
ndrei has joined #ruby
khakimov has joined #ruby
<shevy> someone help me, my brain is already sleeping
lggr has quit [Ping timeout: 240 seconds]
ph^ has quit [Ping timeout: 252 seconds]
specialGuest has joined #ruby
<shevy> how to get rid of the _ = [] ?
specialGuest has quit [Changing host]
specialGuest has joined #ruby
<davidcelis> dude why the fuck would you call it _
<davidcelis> to answer your question, use inject
<davidcelis> er, map
fyolnish has quit [Remote host closed the connection]
`brendan has joined #ruby
<davidcelis> wait
<davidcelis> lol
<davidcelis> you can just completely remove lines 2 and 4
<Mon_Ouie> You seem to be confused
<davidcelis> wtf @some_array is a hash
<davidcelis> shevy: wtf
<davidcelis> FUCK THIS BULLSHIT I'M OUT
<Mon_Ouie> [[1, 2], [3, 4]]
davidcelis has quit [Quit: K-Lined.]
nari has quit [Ping timeout: 252 seconds]
derpops has quit []
lggr has joined #ruby
Juul has quit [Quit: Leaving]
Juul has joined #ruby
samflores has quit [Quit: Linkinus - http://linkinus.com]
yasushi has joined #ruby
fmcgeough has joined #ruby
deeds has joined #ruby
fmcgeough has quit [Client Quit]
yasushi has quit [Remote host closed the connection]