<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
<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?
<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
<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..
<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
<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?
<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]
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
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
<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]
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]
<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.
<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)
<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.
<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]
<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
<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]
<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?
<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.)
<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
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
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.
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]
<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.
<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
<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]
<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.]
<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]
<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!"
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 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]