<Nowaker>
frankjpinto: it's ok. I was just wondering if there is a ready-to-use method for that without a need for hand-written block, e.g. hash.do_magic true => [:a, :c] :)
Hanmac1 has quit [Ping timeout: 264 seconds]
<frankjpinto>
haha yeah I figured
IceDragon has joined #ruby
Channel6 has joined #ruby
nateberkopec has joined #ruby
xcv has joined #ruby
oo_ has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
ramfjord has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
lyuzashi has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
enebo has joined #ruby
jfran_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
s34n has left #ruby [#ruby]
sepp2k has quit [Read error: Connection reset by peer]
supermat has quit [Ping timeout: 256 seconds]
bricker`work has quit [Quit: leaving]
supermat has joined #ruby
oo_ has joined #ruby
Arkaniad has joined #ruby
1JTAAT2YR has joined #ruby
replay has quit []
<zalmoxes>
i need to scrape data from a website but they do everything via ajax, which means i have to figure out how to use selenium or some other library to do that. i've gotten so used to APIs that having to do this is actually making me a little mad
nateberkopec has joined #ruby
sevenseacat has joined #ruby
Arkaniad has quit [Ping timeout: 245 seconds]
extrapointss has joined #ruby
<extrapointss>
Hi
<extrapointss>
Trying to do something with mechanize gem
<zalmoxes>
ha!
<zalmoxes>
i was just talking about that
* zalmoxes
is also trying to do something with mechanize
jay__ has quit []
<extrapointss>
formFields.each { |f| puts f.name } gives me a name of Template$ctl07$ctl00$txtFee
SilkFox_ has joined #ruby
<extrapointss>
so we already figured out that there's a field called that
CodeBunny has quit [Ping timeout: 240 seconds]
<extrapointss>
now if I want to set its value I should do
<extrapointss>
NoMethodError: undefined method `[]' for #<Mechanize::Form::Hidden:0x0000010500f6a8>
nateberkopec has quit [Ping timeout: 240 seconds]
<extrapointss>
zalmoxes, nice. I wouldn't be much help, mainly because I am totally new to programming
_2_Maria has joined #ruby
<_2_Maria>
hi
hgl has joined #ruby
<extrapointss>
hi
<_2_Maria>
what up
<extrapointss>
nothing much
<extrapointss>
getting a NoMethodError: undefined method `[]' for #<Mechanize::Form::Hidden:0x0000010500f6a8>
<_2_Maria>
who r u
<zalmoxes>
extrapointss: i think the format you have to use is form.field_with(:id => 'somedata')
<zalmoxes>
instead of []
jottr_ has quit [Ping timeout: 255 seconds]
CaptainJet has quit [Read error: Connection reset by peer]
<extrapointss>
Thanks, I tried puts form.field_with[:name => 'Template$ctl07$ctl00$txtFee'].text
<extrapointss>
but it still gives the same crap
<_2_Maria>
what is from field
davispuh has quit [Remote host closed the connection]
<zalmoxes>
()
<extrapointss>
what do you mean ()?
JJMalina has quit [Ping timeout: 240 seconds]
<_2_Maria>
I trying to download what app but don't getting it
saarinen has quit [Quit: saarinen]
<zalmoxes>
you have [] around field_with()
<extrapointss>
Oh that's retarded
<_2_Maria>
what do u mean
<extrapointss>
damn
diegovio1 has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
jmeeuwen has joined #ruby
CaptainJet has joined #ruby
ghr has joined #ruby
edgarjs is now known as edgarjs_afk
mconnolly has joined #ruby
nobitanobi has quit [Remote host closed the connection]
kalusn has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
SilkFox_ has quit [Ping timeout: 256 seconds]
hgl has quit [Quit: Computer has gone to sleep.]
Hobogrammer has joined #ruby
Doppp has joined #ruby
pwk has quit [Quit: Leaving]
baweaver has joined #ruby
kalusn has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 255 seconds]
bricker`LA has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
sgen has joined #ruby
<extrapointss>
zalmoxes: thanks for that, I have to go sleepy
baweaver has quit [Ping timeout: 264 seconds]
<extrapointss>
can't believe it was such a dumb thing, of course it wouldn't understand the [] method, I expect that gets converted into a named method for arrays like thisArray.selectElement('test') for thisArray['test']
extrapointss has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
extrapointss has joined #ruby
nateberkopec has joined #ruby
bmurt has quit []
Arkaniad has joined #ruby
tus has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: This computer has gone to sleep]
extrapointss has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
drawingthesun has quit [Ping timeout: 255 seconds]
robustus has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robustus has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
tus has joined #ruby
sgen has quit [Quit: Leaving]
_2_Maria has quit [Remote host closed the connection]
tus has quit [Client Quit]
diegovio1 is now known as diegoviola
Arkaniad has quit [Ping timeout: 240 seconds]
dc_ has joined #ruby
sevenseacat has quit [Quit: Leaving.]
arya_ has joined #ruby
Zesty has joined #ruby
sevenseacat has joined #ruby
Photism has quit [Quit: Leaving]
dc_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
agent_white has joined #ruby
enebo has quit [Quit: enebo]
nateberkopec has joined #ruby
febuiles has quit [Remote host closed the connection]
febuiles has joined #ruby
dc_ has joined #ruby
Arkaniad has joined #ruby
extrapointss has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
francisfish has joined #ruby
frankS2 has quit [Ping timeout: 240 seconds]
moted has quit [Quit: moted]
nateberkopec has quit [Ping timeout: 240 seconds]
extrapointss has quit [Remote host closed the connection]
johnrover has quit [Quit: johnrover]
SilkFox_ has quit [Ping timeout: 256 seconds]
francisfish has quit [Ping timeout: 264 seconds]
johnrover has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SilverKey has joined #ruby
hamakn has quit [Remote host closed the connection]
sailias has joined #ruby
havenwood has joined #ruby
EasyCo has joined #ruby
andrewhl has joined #ruby
andrewhl has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
lewix has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Shidash has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
frankjpinto has quit [Ping timeout: 240 seconds]
frankS2 has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
obscured has joined #ruby
tokik has joined #ruby
emptyflask has joined #ruby
nateberkopec has joined #ruby
<agent_white>
Ello everyone
Hanmac has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
sgen has joined #ruby
omosoj has quit [Quit: Leaving]
moritzs has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
johnrover_ has joined #ruby
hamakn has joined #ruby
ghr has joined #ruby
<pontiki>
good evening, agent_white
johnrover has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
johnrover_ is now known as johnrover
nateberkopec has quit [Ping timeout: 240 seconds]
d4nk has quit []
darkxploit has quit [Ping timeout: 260 seconds]
kalusn has joined #ruby
jmbrown412 has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 256 seconds]
Wolland has quit [Remote host closed the connection]
Hanmac has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
virtualize has joined #ruby
Wolland has joined #ruby
bricker`LA has joined #ruby
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
but not one where it actually reads the source
akosednar has quit [Ping timeout: 245 seconds]
radic has joined #ruby
heftig has quit [Ping timeout: 256 seconds]
_maes_ has joined #ruby
akosednar has joined #ruby
heftig has joined #ruby
ferr has quit [Ping timeout: 256 seconds]
febuiles has joined #ruby
saarinen has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
mconnolly has quit [Quit: mconnolly]
aspires has joined #ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
moritzs has quit [Ping timeout: 260 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quazimodo has joined #ruby
aspires has quit [Client Quit]
Soliah has quit [Read error: Connection reset by peer]
Soliah has joined #ruby
jaequery has joined #ruby
obscured has quit [Quit: leaving]
hgl has quit [Remote host closed the connection]
hgl has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
Kuda has joined #ruby
emptyflask has joined #ruby
kireevco has quit [Quit: Leaving.]
benlieb has joined #ruby
aspires has joined #ruby
chipotle has quit [Quit: cya]
Beoran_ has joined #ruby
cashnguns has quit [Ping timeout: 245 seconds]
braincrash has quit [Quit: bye bye]
ghr has joined #ruby
kireevco has joined #ruby
Beoran has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
saarinen has quit [Quit: saarinen]
johnrover_ has joined #ruby
CorpusCallosum has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
johnrover has quit [Ping timeout: 240 seconds]
johnrover_ is now known as johnrover
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
kalusn has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
benlieb has quit [Ping timeout: 240 seconds]
aspires has quit []
charlied3 has quit [Quit: WeeChat 0.4.2]
adantj has quit [Ping timeout: 255 seconds]
charlied3 has joined #ruby
User458764 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Takle has quit [Ping timeout: 255 seconds]
kireevco has quit [Quit: Leaving.]
kalusn has quit [Ping timeout: 256 seconds]
Noob101 has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
<Noob101>
Hi everyone.
<Noob101>
Ok going to sleep, have a good one folks!
dc_ has quit [Remote host closed the connection]
maestrojed has joined #ruby
aspires has joined #ruby
johnrover has quit [Quit: johnrover]
emptyflask has quit [Remote host closed the connection]
emptyflask has joined #ruby
cerberblue has joined #ruby
bmurt has joined #ruby
JoshGlzBrk has joined #ruby
chrishough has quit [Quit: chrishough]
saarinen has joined #ruby
saarinen has quit [Client Quit]
kireevco has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
emptyflask has quit [Remote host closed the connection]
nickenchuggets has joined #ruby
emptyflask has joined #ruby
britneywright has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m3_del has joined #ruby
emptyflask has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
jmbrown412 has quit [Remote host closed the connection]
edmellum has quit [Quit: Connection closed for inactivity]
bluOxigen has joined #ruby
lewix has joined #ruby
towbes has quit [Quit: Leaving]
lewix has quit [Remote host closed the connection]
febuiles_ has joined #ruby
febuiles has quit [Read error: Connection reset by peer]
lukebyrne has joined #ruby
saarinen has quit [Quit: saarinen]
baweaver has joined #ruby
towbes has joined #ruby
towbes has joined #ruby
towbes has quit [Changing host]
jxf has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
<jxf>
I'm working on the Uncle Bob bowling kata, and wanted to try something a little different but I'm stuck on how to do it. Specifically, I want to turn an array of bowling rolls into an array of arrays of frames. So, e.g., [10, 4, 6, 7, 3, 10, 2, 4, ...] becomes: [[10], [4, 6], [7, 3], [10], [2, 4], ...].
coderhs has joined #ruby
<jxf>
Essentially, I want to take elements from the flattened array and put them into a subarray for each frame until the total is 10 for each frame or there are two elements in it. Or, alternatively, if it's the tenth frame, I want to take up to three elements instead.
febuiles has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
<jxf>
The best I can do right now is a for loop, but I was wondering if there's a nice Enumerable way to pull it off.
baweaver has quit [Ping timeout: 245 seconds]
tungd has joined #ruby
federico has joined #ruby
saarinen has joined #ruby
orionstein_away is now known as orionstein
lukebyrne has left #ruby [#ruby]
federico is now known as febuiles__
febuiles_ has quit [Read error: Connection reset by peer]
febuiles has quit [Read error: No route to host]
existensil has quit [Ping timeout: 264 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
francisfish has quit [Ping timeout: 245 seconds]
dwayhs has quit [Read error: Connection reset by peer]
dwayhs has joined #ruby
oo_ has quit [Remote host closed the connection]
Kuda has quit [Quit: Byebye!]
Kuda has joined #ruby
jmbrown412 has joined #ruby
dc_ has joined #ruby
febuiles has joined #ruby
aspires has quit []
saarinen has quit [Quit: saarinen]
tectonic has joined #ruby
virtualize has quit [Read error: Connection reset by peer]
virtualize has joined #ruby
jack_rabbit has joined #ruby
febuiles__ has quit [Ping timeout: 252 seconds]
sputnik1_ has joined #ruby
sputnik1_ has quit [Client Quit]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deric_skibotn has quit [Ping timeout: 272 seconds]
foo-bar- has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
VinceThePrince has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
<jxf>
Is there anything that's like a combination of Enumerable#take and Enumerable#drop? e.g. if I had "[4, 5, 6, 7, 8].splice(3)" I'd want "[[4, 5, 6], [7, 8]]" (take n elements in one array, return the rest in another).
<jxf>
(where "#splice" is my made-up name for that method)
<bricker`LA>
sevenseacat: a should be undefined because ruby should never reach that branch
lewix has joined #ruby
<bricker`LA>
I mean, if anybody looked at that code, they'd say "a is undefined, of course." It's just unintuitive that it becomes nil
<jxf>
bricker`LA: variables declared in an if statement have the same local scope as variables declared at the top level of the method
lewix has quit [Remote host closed the connection]
duncannz has joined #ruby
<bricker`LA>
jxf: Right, I know, but the confusing part is that the branch is never reached yet the variable is still defined
lewix has joined #ruby
<jxf>
bricker`LA: the interpreter still saw it :)
<bricker`LA>
:)
<arup_r>
How I can convert (2.0).to_s gives '2.0' Is there any method like (2.0).any_method #=> '2' ?
jdj_dk has joined #ruby
<bricker`LA>
It's like javascript! JS moves all variable declaration to the top of the scope, so you can actually use a variable before you declare it in JS
<agent_white>
Try to join more channels and you'll find out quickly.
joelroa has joined #ruby
VinceThePrince is now known as Macaveli
tzudot has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 260 seconds]
whyy has quit [Ping timeout: 264 seconds]
jrhe has joined #ruby
jmbrown412 has quit [Ping timeout: 245 seconds]
<tmcgoo>
what sql browser alternative do you guys use for postreqgl
sdouglas has quit [Remote host closed the connection]
<tmcgoo>
postgresql
<tmcgoo>
forwindows
<sevenseacat>
sql browser?
<tmcgoo>
sqlite browse
<tmcgoo>
browser*
<sevenseacat>
what for?
Kricir has joined #ruby
<tmcgoo>
just trying to switch from sqlite3 to postgresql
hgl_ has quit [Ping timeout: 272 seconds]
<tmcgoo>
ive changed gems, downloaded the postgresql exe and ran it
<tmcgoo>
now i want to view the database
<sevenseacat>
oh... normally i would just use the cli for that
tectonic has quit []
<tmcgoo>
oh you view databases throught he command line?
<sevenseacat>
yeah
<tmcgoo>
hmm
<tmcgoo>
what about viewing a database on a heroku app, cli as well
<tmcgoo>
?
<sevenseacat>
yeah
<tmcgoo>
hmm, ima have to google this
ayaz has joined #ruby
dn0v has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: Going AFK...]
dangerousdave has joined #ruby
sdouglas has joined #ruby
mgberlin has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
<shevy>
google google google
<shevy>
how else to find pr0n
sigurding has joined #ruby
dc_ has quit []
ramfjord has quit [Ping timeout: 256 seconds]
hakunin has quit [Ping timeout: 240 seconds]
vali has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
sdouglas has quit [Ping timeout: 245 seconds]
<agent_white>
shevy: Nah nah, bing proved to be the pr0n-search engine.
cerberblue has joined #ruby
peret has quit [Remote host closed the connection]
havenwood has joined #ruby
sivoais has quit [Ping timeout: 240 seconds]
whyy has joined #ruby
why_away has quit [Read error: Connection reset by peer]
sivoais has joined #ruby
vali has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
PanPan has joined #ruby
oso96_2000 has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
alexju has quit [Remote host closed the connection]
oso|away has joined #ruby
<shevy>
what the heck is bing
<shevy>
that sounds like ping pong
oso|away is now known as oso96_2000
<shevy>
but chinese
<shevy>
bing bong
<shevy>
hahahah
<shevy>
I am amusing myself!
foo-bar- has joined #ruby
hakunin has joined #ruby
<agent_white>
shevy: It either must be the early morning, or late night there ;D
BadQuanta has joined #ruby
<shevy>
early morning here
<shevy>
and I must leave in about 20 minutes and still have shitloads of things to finish here :(
foo-bar- has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
foo-bar- has joined #ruby
fabrice31 has joined #ruby
dangerousdave has quit []
sdouglas has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
foo-bar- has quit [Ping timeout: 240 seconds]
zkay11 has left #ruby [#ruby]
ephemerian has joined #ruby
<jrhe>
I need to create an array where by each evenly indexed element is the same and every odd element is some arbitrary data. Whats the best way of doing this? Creating an array of the same element and then zip it with the data array?
benzrf is now known as benzrf|offline
<pontiki>
jrhe: that would actually work
<jrhe>
pontiki: I know it would but ruby has some insanely nice way of doing things so wondered if there was a better way
<Hanmac>
jrhe: first Array does not have a times method, second your MacOSX did fuckup your text line, you should switch to another os
<pontiki>
oh, you wanted the even one's identical, right? so the first index is zero (0), right?
<jrhe>
pontiki: Correct
<jrhe>
Hanmac: So it doesn't
<jrhe>
Hanmac: Which bit did it fuck up?
<pontiki>
which is even, the "x" is the identical bit
<pontiki>
you can just reverse the whole array and be done at that point
yfeldblum has joined #ruby
jmbrown412 has joined #ruby
<Hanmac>
jrhe: i did type into the text this "x" ... your line does have this “x” ... so i think that OSX does fuckup with your input and turned " into “ WITHOUT asking you
francisfish has joined #ruby
<pontiki>
jrhe: what are you using for an irc client
<jrhe>
pontiki: true. This array is going to be big though. The whole point is that the API I’m calling separates out operations and data so it doesn’t have to unpack twice.
<zenspider>
I need to port some of mathematica's functions to Enumerable... they have some good shit
<pontiki>
jrhe: System Preferences -> Keyboard -> Text
banjara has joined #ruby
why_away has joined #ruby
<zenspider>
pontiki / jrhe : nah. in the app that's the problem, Edit -> Substitutions -> Smart Quotes
<agent_white>
pontiki: \o/
<zenspider>
jrhe: there are exactly 2 arrays in that doco, and I don't think it answers my question. :P
robertodecurnex has quit [Remote host closed the connection]
<agent_white>
relevance: None. You are just my favorite.
sk87 has joined #ruby
<pontiki>
it's the browser, zenspider
<pontiki>
irccloud is a web app
<zenspider>
k. then do that in safari/chrome/whatever
whyy has quit [Ping timeout: 255 seconds]
<jrhe>
zenspider: "The bulk request body has the following, slightly unusual, format:". The ruby client takes it as an array rather than a block of text. It also has methods for doing it with embedded data but I was just trying to figure out what the best way to do it myself would be as it should be more efficient
<jrhe>
Just to try and get myself thinking, not because I'm prematurely optimising
blackmes1 has joined #ruby
<jrhe>
pontiki: Apart from I'm running IRC Cloud as an app through fluid.app, but yes its a browser
<zenspider>
make a hash of the stuff you want to put up and then to_a it?
<zenspider>
I doubt you even need to to_a it, if they're using enumerables
maestrojed has quit [Quit: Computer has gone to sleep.]
<pontiki>
jrhe: dunno fluid, check what zenspider said, tho
<pontiki>
chrome doesn't have substitutions
<zenspider>
fluid is one of those one URL browser app things, iirc
<zenspider>
so he made one just for irccloud
mivxyy has joined #ruby
<jrhe>
pontiki: Yeah it works. The edit menu way :)
zigomir has joined #ruby
<jrhe>
pontiki: I thought I had already mentioned
<jrhe>
Hanmac: I love ubuntu but I just know I'd fiddle with it far too much if I used it on a day to day basis and wouldn't be productive. Would spend took much time fiddling around with xmonad and haskell
vyorkin has joined #ruby
nifty has left #ruby [#ruby]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 264 seconds]
jackneill has joined #ruby
x1337807x has joined #ruby
oo_ has joined #ruby
quazimodo has joined #ruby
kalusn has joined #ruby
Audace has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Remote host closed the connection]
Prandium has joined #ruby
sdouglas has joined #ruby
crudson has quit [Quit: q term]
metadave has quit [Ping timeout: 240 seconds]
metadave has joined #ruby
kaspergrubbe has joined #ruby
sdouglas has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has quit [Quit: night]
quazimodo has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
mark06 has left #ruby [#ruby]
crudson has joined #ruby
arup_r has quit [Remote host closed the connection]
tectonic has joined #ruby
mehlah has joined #ruby
francisfish has joined #ruby
qba73 has joined #ruby
timonv has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 256 seconds]
why_away has quit [Remote host closed the connection]
whyy has joined #ruby
germanstudent has quit [Ping timeout: 264 seconds]
echevemaster has quit [Remote host closed the connection]
havenwood has joined #ruby
germanstudent has joined #ruby
kalusn has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 245 seconds]
voodoofish has quit [Ping timeout: 260 seconds]
pipework has quit [Quit: pipeworkin' it]
cobakobodob has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
Joulse has joined #ruby
cobakobodob has joined #ruby
whyy has joined #ruby
roshanavand has quit [Quit: Leaving]
yfeldblum has quit [Read error: Connection reset by peer]
<ntz>
what should I use to print a File.stat but I want (for a god's sake) raw values, not that ***** what File.stat prints out (it formats date strings, it formats file modes, ..)
<wasamasa>
otherwise you wouldn't be using your operating system at all
arya_ has quit [Ping timeout: 256 seconds]
sigurding has quit [Ping timeout: 240 seconds]
jmbrown412 has quit [Ping timeout: 245 seconds]
<ntz>
wasamasa: anyway, please don't you know any other stat() function in ruby which just returns raw values read from file as perl stat() or C sys/stat.h does ?
johnhamelink has joined #ruby
sigurding has joined #ruby
klaut has joined #ruby
<Mon_Ouie>
It does the same as sys/stat.h: returns a struct with all those fields…
havenwood has quit [Ping timeout: 264 seconds]
<wasamasa>
^
<ntz>
Mon_Ouie: no, it does not ofc
<wasamasa>
inspect merely does put them in human readable format
<Mon_Ouie>
Why do you think it doesn't?
<ntz>
it keeps no order and it modifies some values
<Mon_Ouie>
I don't believe the order is specified in posix either, as some implementations even add their own fields. Just specify the order you believe is "the one true right one" explicitly.
<Mon_Ouie>
What do you mean, modifies it?
Arkaniad has quit [Read error: Connection reset by peer]
<wasamasa>
Mon_Ouie: guess he means the timestamps are outputted in human readable format
<wasamasa>
Mon_Ouie: and that the order doesn't equal the one from the perl example
<Mon_Ouie>
See the Time class to manipulate times in Ruby
workmad3 has joined #ruby
<ntz>
thank you
<wasamasa>
ntz: you're mistaking representation with actual content
arya_ has joined #ruby
<wasamasa>
ntz: just because it looks that way when printing it out doesn't mean it doesn't contain the unix timestamp
<Hanmac>
hm funny thing on my system: File.stat("/etc/hosts").atime #=> 2262-04-12 01:47:00 +0200 ;D
Norrin has joined #ruby
<ntz>
Mon_Ouie: one more question, when you go `ruby -e 'puts File.stat("/etc/hosts").inspect' there is different value for mode= than when you just ask for mode directly, why ?
hamakn has quit [Ping timeout: 240 seconds]
<Hanmac>
ntz again human readable
<Mon_Ouie>
No there isn't, it just formats in octal because people like to see modes in octal.
<Hanmac>
gavit: with a keyboard? what is your wanted input and what your wanted output?
yfeldblu_ has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
<wasamasa>
he wants umlauts
nickenchuggets has quit [Ping timeout: 245 seconds]
vyorkin1 has joined #ruby
<apeiros>
he doesn't seem to have much interest in an answer, given his lack of response to follow up questions.
zaargy_ is now known as zaargy
kaku has quit [Quit: Leaving...]
<wasamasa>
well, he's on the rails channel now
<Hanmac>
he is now lost for us ... ;P
havenwood has joined #ruby
kalusn has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
dANOKELOFF has joined #ruby
gavit was kicked from #ruby by apeiros [cross posting and not following up on other channels is rude]
gavit has joined #ruby
<gavit>
apeiros, sorry
<gavit>
Hanmac, I was looking for a ror issue where you translate words from english too another language, but I have found my answer now
<apeiros>
when you cross post, say so.
<wasamasa>
hmm, thought cross-posting was only discouraged on forums
<Hanmac>
wasamasa: asking RoR questions there instead of #rubyonrails is discouraged too
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Takle has joined #ruby
DrCode has quit [Remote host closed the connection]
nfk has joined #ruby
oo_ has quit [Remote host closed the connection]
<gavit>
apeiros, didnt know that was a good manners, I will remember
DrCode has joined #ruby
kalusn has joined #ruby
funktor has quit [Remote host closed the connection]
reset has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
kalusn has quit [Remote host closed the connection]
BalkM has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
mr_foobar_baz has quit [Ping timeout: 264 seconds]
mijicd has joined #ruby
casheew__ has joined #ruby
whowantstolivef3 has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
dc__ has joined #ruby
proxie has joined #ruby
mehlah has quit [Quit: Leaving...]
mr_foobar_baz has joined #ruby
brasten_ has joined #ruby
yfeldblu_ has joined #ruby
strelok has quit [Write error: Connection reset by peer]
helpa has quit [Write error: Connection reset by peer]
strelok has joined #ruby
BalkM has quit [Ping timeout: 260 seconds]
virtualize has quit [Ping timeout: 240 seconds]
brasten has quit [Ping timeout: 240 seconds]
brasten_ is now known as brasten
mehlah_ has joined #ruby
tenseiten has joined #ruby
dc_ has quit [Ping timeout: 255 seconds]
mehlah_ has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
whowantstolivefo has quit [Ping timeout: 255 seconds]
kyb3r_ has quit [Ping timeout: 240 seconds]
slicknick has quit []
seitensei has quit [Ping timeout: 240 seconds]
kalusn has joined #ruby
kyb3r_ has joined #ruby
moritzs has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
fabrice31 has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
yfeldblu_ has quit [Ping timeout: 260 seconds]
kyb3r_ has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
kyb3r_ has quit [Max SendQ exceeded]
poimen has quit [Ping timeout: 252 seconds]
marahin has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
nanashiRei has quit [Ping timeout: 252 seconds]
droptone has quit [Ping timeout: 240 seconds]
diego_k has quit [Ping timeout: 260 seconds]
matti has quit [Ping timeout: 245 seconds]
oz has quit [Ping timeout: 255 seconds]
bier has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
tommylommykins has quit [Ping timeout: 252 seconds]
FaresKAlaboud has quit [Ping timeout: 252 seconds]
patronus_ has quit [Ping timeout: 240 seconds]
jxport has quit [Ping timeout: 240 seconds]
testol has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Max SendQ exceeded]
matrixise has quit [Ping timeout: 272 seconds]
comma8 has quit [Ping timeout: 260 seconds]
thejoecarroll has quit [Ping timeout: 260 seconds]
tacos1de has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 264 seconds]
deavid has quit [Ping timeout: 252 seconds]
monsieurp has quit [Ping timeout: 252 seconds]
eregon has quit [Ping timeout: 252 seconds]
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
emdub has quit [Read error: Connection reset by peer]
tacos1de has joined #ruby
kyb3r_ has joined #ruby
emdub has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
jxport has joined #ruby
eregon has joined #ruby
deavid has joined #ruby
tommylommykins has joined #ruby
marahin has joined #ruby
thejoecarroll has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
marahin is now known as Guest83975
kyb3r_ has joined #ruby
matti has joined #ruby
oz has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
bier has joined #ruby
patteh has joined #ruby
kyb3r_ has joined #ruby
diegok has joined #ruby
patronus has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
moritzs has quit [Ping timeout: 272 seconds]
nanashiRei has joined #ruby
FaresKAlaboud has joined #ruby
kyb3r_ has joined #ruby
kyb3r_ has quit [Max SendQ exceeded]
jack_rabbit has quit [Ping timeout: 272 seconds]
monsieurp has joined #ruby
kyb3r_ has joined #ruby
Atttwww has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
shredding has joined #ruby
Morkel has quit [Quit: Morkel]
droptone has joined #ruby
end_guy has joined #ruby
matrixise has joined #ruby
carraroj has joined #ruby
tmcgoo has quit []
<apeiros>
gavit: you know, I'm always baffled anew when people say that. IMO it's pretty obvious that it is douchey to ask a question and then just not care.
<apeiros>
(and that's even just one aspect of it)
fabrice31 has joined #ruby
<apeiros>
but glad to hear that you're taking it to heart
krz has quit [Ping timeout: 252 seconds]
francisfish has quit [Remote host closed the connection]
sigurding has quit [Read error: Connection reset by peer]
Photism has quit [Quit: Leaving]
francisfish has joined #ruby
<gavit>
apeiros, I don't know why you are baffled. if a company asks for employees, it posts it everywhere, and hopes it gets an answer. So much questions go unanswered.
<apeiros>
gavit: how do you feel when somebody asks you a question, you think about an answer, and when you're ready to answer, the person just walks away?
<apeiros>
and companies looking for employees is *not quite* the same.
<apeiros>
spreading information != asking a question
ndrei has joined #ruby
mr_foobar_baz has quit [Remote host closed the connection]
mr_foobar_baz has joined #ruby
reset has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
<gavit>
apeiros, ever asked "has anybody seen my dog?" on a corner, and as you hear nothing assuming it means "no, you go to the next corner and ask the same question again. In the meanwhile someone just thought, hey I might have seen your dog, but you've already gone to another corner.
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
ldnunes has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
PCFutbol has joined #ruby
dANOKELOFF has joined #ruby
Seich has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
whyy has quit [Remote host closed the connection]
maximski has joined #ruby
Ayey_ has quit [Quit: leaving]
<Hanmac>
arup_r: thats a #rubyonrails problem ... not our fault if its fucked up
vyorkin2 has quit [Ping timeout: 272 seconds]
relix has joined #ruby
<wasamasa>
I'm about to loop through two arrays by nesting .each, is that the encouraged way to do it or shall I rather find some method that creates an array with all combinations and use .each on it?
<PCFutbol>
Hi. I have a problem with 'ruby-dbus'. In my code the line: 'bus = DBus::SessionBus.instance' throw the next error message in TTY1-6: http://pastebin.com/2HxHTAcF
Joulse has joined #ruby
anaeem1 has quit [Remote host closed the connection]
iceyec has joined #ruby
xcv has quit []
parduse has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
parduse has joined #ruby
parduse is now known as Guest87756
mconnolly has joined #ruby
yacks has joined #ruby
Royalb15 has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: ciao.]
ndrei has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
Royalb15 has quit [Client Quit]
phoo1234567 has joined #ruby
timonv has quit [Remote host closed the connection]
lewix has joined #ruby
timonv has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
vyorkin2 has joined #ruby
havenwood has joined #ruby
himsin has joined #ruby
bruno- has joined #ruby
<workmad3>
wasamasa: you mean something like Array#permutations?
<wasamasa>
workmad3: no, Array#product
tjr9898 has joined #ruby
<workmad3>
wasamasa: ah yeah, that would be it :)
<wasamasa>
I was wondering what would be the way to go
<wasamasa>
nesting loops or using Array#product
<workmad3>
wasamasa: use product
<arup_r>
Hanmac: Let me move it there. :-) Thanks
<wasamasa>
k then
<workmad3>
wasamasa: in general, prefer a ready-written method that does exactly what you want over writing your own code ;)
Takle has joined #ruby
timonv has joined #ruby
DivineEntity has quit [Quit: leaving]
dwayhs has quit [Read error: Connection reset by peer]
dwayhs has joined #ruby
noop has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
charlied3 has joined #ruby
CorpusCallosum has quit [Remote host closed the connection]
kies has quit [Quit: baaaaiiiiiiiiiii~]
ndrei has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew__ has quit [Read error: No route to host]
northfurr has joined #ruby
casheew has joined #ruby
casheew_ has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
starkhalo has joined #ruby
yeticry has joined #ruby
sk87 has joined #ruby
treehug88 has joined #ruby
whyy has joined #ruby
gramos has joined #ruby
thesheff17 has joined #ruby
thesheff17 has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
thesheff17 has joined #ruby
timonv has joined #ruby
why_away has joined #ruby
Doppp has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Deejay__ has joined #ruby
reset has joined #ruby
whyy has quit [Ping timeout: 245 seconds]
MrPopinjay has joined #ruby
Kricir has joined #ruby
Deejay__ has quit [Client Quit]
foo-bar- has joined #ruby
gramos has quit [Remote host closed the connection]
alem0lars has quit [Quit: Going AFK...]
timonv has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
nateberkopec has joined #ruby
gavit has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
reset has quit [Ping timeout: 264 seconds]
Kricir has quit [Ping timeout: 240 seconds]
kies has joined #ruby
lewix has quit [Remote host closed the connection]
mconnolly has quit [Remote host closed the connection]
codecop has quit [Quit: Išeinu]
Dreamer3 has quit [Quit: Leaving...]
banister has joined #ruby
tvw has joined #ruby
earthquake has quit [Quit: earthquake]
jerius has joined #ruby
mconnolly has joined #ruby
bmurt has joined #ruby
britneywright has joined #ruby
Dreamer3 has joined #ruby
havenwood has joined #ruby
selva_ has joined #ruby
<selva_>
Hi all
<selva_>
what is the irc channel fo rils
<selva_>
rails*
<selva_>
I tried to join #rubyonrails and failed
<drizz>
#rails?
<selva_>
no such channel
<drizz>
actually, it should be #rubyonrails
<drizz>
joined fine here
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
thesheff17 has quit [Ping timeout: 240 seconds]
<selva_>
it took me to ##namespace
<mozzarella>
selva_: you're not connected with nickserv
<selva_>
and saying "Topic for ##namespace: You've tried to join an unavailable channel"
kalusn has quit [Remote host closed the connection]
<selva_>
mozzarella: i have connected to freenode
<selva_>
through irssi
<mozzarella>
but you're not registered
<selva_>
what do i need to do to join nickserv
<selva_>
you mean, i should have registered nick name
<mozzarella>
yes
<mozzarella>
that's mandatory if you want to join #rubyonrails
<selva_>
mozzarella: thank you, let me try that
whyy has joined #ruby
PCFutbol has quit [Quit: Saliendo]
<apeiros>
#ror, #rails and #rubyonrails are the same channel
<apeiros>
(the former two redirect to the latter)
spider-mario has joined #ruby
mr-foobar has joined #ruby
why_away has quit [Ping timeout: 240 seconds]
jonathan_alban has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<olivier_bK>
but i m almost sure my fonstion get_hash is not good
RaCx has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Xeago_ has joined #ruby
<olivier_bK>
and i can't see how i can get two different array from different function and convert in hash
kalusn has quit [Remote host closed the connection]
p0sixpscl has joined #ruby
sdouglas has joined #ruby
maximski has joined #ruby
warprobo_ has quit [Remote host closed the connection]
warprobot has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Quit: Leaving]
iaj has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
dANOKELOFF has quit [Remote host closed the connection]
ffranz has joined #ruby
oddalot has joined #ruby
Takle has joined #ruby
reset has joined #ruby
frankjpinto has joined #ruby
havenwood has joined #ruby
shredding has quit [Quit: shredding]
mikecmpbll has joined #ruby
amargherio has joined #ruby
arturaz has quit [Remote host closed the connection]
iceyec has quit [Quit: leaving]
freerobby has joined #ruby
iceyec has joined #ruby
reset has quit [Ping timeout: 240 seconds]
pygospa has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
comma8 has quit [Ping timeout: 260 seconds]
anaeem1 has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
ixti has joined #ruby
kalusn has joined #ruby
ra4king has quit [Remote host closed the connection]
alexa_ has joined #ruby
IceyEC_ has joined #ruby
ra4king has joined #ruby
IceyEC_ has quit [Client Quit]
iceyec has quit [Remote host closed the connection]
iceyec has joined #ruby
qwyeth has quit [Ping timeout: 272 seconds]
maestrojed has joined #ruby
noop has quit [Ping timeout: 240 seconds]
warprobot has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 240 seconds]
warprobot has joined #ruby
maestrojed has quit [Client Quit]
RaCx has joined #ruby
qwyeth has joined #ruby
<pontiki>
probably not, olivier_bK
<pontiki>
when you call get_hash, you're providing one argument to the *args in the method
obs has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<pontiki>
so at line 2, there is no arr[1] (so it will return nil)
<pontiki>
try removing the splat and see what happens
dANOKELOFF has joined #ruby
tjr9898 has joined #ruby
vyorkin2 has quit [Ping timeout: 240 seconds]
bal has quit [Quit: bal]
thesheff17 has joined #ruby
xaxisx has joined #ruby
saarinen has joined #ruby
warprobot has quit [Remote host closed the connection]
SBoolean has joined #ruby
xaxisx has quit [Client Quit]
warprobot has joined #ruby
tjr9898 has quit [Ping timeout: 252 seconds]
}SoMBrA{ has quit [Quit: This computer has gone to sleep]
arya_ has joined #ruby
vyorkin2 has joined #ruby
terrellt has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
andrewjanssen has joined #ruby
SBoolean has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
shredding has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
awkwords has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
xaxisx has joined #ruby
Soda has joined #ruby
juboba has joined #ruby
Macaveli has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
SBoolean has joined #ruby
<juboba>
hey, I'm getting /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- zip/zipfilesystem (LoadError). I installed rubyzip, but I'm still getting the same error.
Takle has quit [Remote host closed the connection]
maestrojed has joined #ruby
hpoydar has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
alex88 has quit [Quit: Leaving...]
tjr9898 has quit [Remote host closed the connection]
kalusn has quit [Remote host closed the connection]
nfk has joined #ruby
johnmolina has joined #ruby
francisfish has quit [Remote host closed the connection]
kalusn has joined #ruby
bricker`work has joined #ruby
iamjarvo has joined #ruby
Joulse has quit [Quit: Joulse]
timonv_ has quit [Remote host closed the connection]
jottr_ is now known as jottr
mrmargolis has quit [Remote host closed the connection]
kalusn has quit [Remote host closed the connection]
ndrei has joined #ruby
mrmargolis has joined #ruby
kalusn has joined #ruby
dANOKELOFF has quit []
spider-mario has quit [Ping timeout: 272 seconds]
Doppp has joined #ruby
frankjpinto has joined #ruby
Takle has joined #ruby
yfeldblum has joined #ruby
treehug88 has joined #ruby
warprobot has quit [Remote host closed the connection]
warprobot has joined #ruby
Takle has quit [Remote host closed the connection]
devdazed has quit [Ping timeout: 256 seconds]
selva_ has left #ruby [#ruby]
noop has joined #ruby
cnj has joined #ruby
mrmargolis has quit [Remote host closed the connection]
sdouglas has joined #ruby
devdazed has joined #ruby
wallerdev has joined #ruby
kalusn has quit [Remote host closed the connection]
tjr9898 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lkba has joined #ruby
sepp2k has joined #ruby
spider-mario has joined #ruby
mrmargolis has joined #ruby
cnj has quit [Ping timeout: 240 seconds]
cnj has joined #ruby
dc__ has quit []
reset has joined #ruby
<havenwood>
olivier_bK: So you want to make a method that take two other methods are arguments? Just do that.
<havenwood>
s/are/as
sdouglas has quit [Ping timeout: 255 seconds]
<havenwood>
olivier_bK: Or a lambda that takes two other lambdas as args.
olivier_bK has quit [Ping timeout: 272 seconds]
BalkM has joined #ruby
<ericwood>
then returns 5 lambdas
<havenwood>
And lambda beget lambda, who in turn beget lambda, son of lambda.
RaCx has joined #ruby
<gregf__>
heh
<ericwood>
praises be to matz
xaxisx has joined #ruby
rippa has joined #ruby
alem0lars has joined #ruby
<alexherbo2>
Hi
maestrojed has quit [Quit: Computer has gone to sleep.]
<havenwood>
g'morning
anaeem1_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<alexherbo2>
what is the name for foo: "bar" ?, which is translated to { :foo => "bar" }
<alexherbo2>
foo:
timonv has joined #ruby
reset has quit [Ping timeout: 240 seconds]
<ericwood>
a hash
<havenwood>
alexherbo2: 1.9 hash syntax
<havenwood>
alexherbo2: it is a symbol in 1.9 hash syntax
stytown has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
`:foo` the symbol literal becomes `foo:` the symbol key
Morkel has joined #ruby
jfran__ has joined #ruby
thesheff17_ has joined #ruby
thesheff17 has quit [Disconnected by services]
<havenwood>
note `:"foo bar"` does not work as `"foo bar":`, only simple symbol literals work
thesheff17_ is now known as thesheff17
NinoScript has joined #ruby
mijicd has joined #ruby
ndrei has joined #ruby
lkba has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
stytown has quit [Client Quit]
dideler has joined #ruby
johnrover has joined #ruby
wallerdev has quit [Quit: wallerdev]
stytown has joined #ruby
NinoScript has joined #ruby
Zenigor has quit [Remote host closed the connection]
voodoofish has joined #ruby
edgarjs_afk is now known as edgarjs
NinoScript has quit [Client Quit]
gregf has quit [Quit: WeeChat 0.4.3]
deric_skibotn has joined #ruby
NinoScript has joined #ruby
Zenigor has joined #ruby
qba73 has quit []
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
himsin has joined #ruby
jottr has quit [Quit: WeeChat 0.4.3]
banjara has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 264 seconds]
anaeem1 has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
<shevy>
happy compileleleing
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
NinoScript has quit [Ping timeout: 255 seconds]
tjr9898 has quit [Remote host closed the connection]
CodeBunny has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
rdark has quit [Quit: leaving]
roshanavand has quit [Quit: Leaving]
ndrei has joined #ruby
maletor has joined #ruby
wallerdev has joined #ruby
klaut has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
CodeLicker has joined #ruby
anaeem1 has quit [Remote host closed the connection]
ghr has quit []
definiv has joined #ruby
mikecmpbll has joined #ruby
acconrad has quit [Quit: acconrad]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ghr has joined #ruby
mikespla_ has joined #ruby
roolo has quit [Quit: Leaving...]
warprobot has quit []
phil has quit [Ping timeout: 240 seconds]
mikesplain has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
dik_dak has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
Fraeon has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
dc_ has joined #ruby
AlexRussia has joined #ruby
hpoydar has joined #ruby
Guest67134 has quit [Ping timeout: 264 seconds]
xaxisx has quit [Quit: xaxisx]
freerobby has quit [Ping timeout: 240 seconds]
wldcordeiro has quit [Quit: Leaving]
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
fabrice31 has quit [Ping timeout: 245 seconds]
endash has quit [Quit: endash]
tungd has joined #ruby
acconrad has joined #ruby
hpoydar has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
brian___ has joined #ruby
lukeshu has joined #ruby
<brian___>
hey guys, dumb question that im having a hard time googling. are ` processed as double quotes or single quotes?
<banister>
brian___ double
<banister>
brian___ you can interpolate shit in there
davidcollom has quit [Ping timeout: 252 seconds]
stytown has quit [Quit: stytown]
<brian___>
banister: thanks!
davidcollom_zzz has joined #ruby
davidcollom_zzz is now known as davidcollom
NinoScript has joined #ruby
Spami has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<brian___>
banister: any thoughts as to why when i change ` to double quotes i get different outputs for: `identify -format '%wx%h' #{model.attachment.gray.current_path}`
Hanmac has joined #ruby
mattmcclure has joined #ruby
zorak has joined #ruby
<banister>
brian___ i dont know what you mean sorry
<banister>
brian___ but `` and "" are totally, totally different
<banister>
brian___ `` runs shell commands
<banister>
brian___ "" is just a string
johnmolina has quit [Remote host closed the connection]
<brian___>
oooh : /
<brian___>
got it ok thanks again
tungd has quit [Ping timeout: 272 seconds]
Hanmac1 has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
acconrad has quit [Quit: acconrad]
Hobogrammer has joined #ruby
<lukeshu>
I'm trying to profile allocation in a rails app running on MRI 2.1.2; I tried ruby-prof with the railsexpress patches (by just applying them when building ruby, not using RVM), but I still got the CPU profiling. I see that recent MRIs have built-in support for some of this profiling, but I am unsure how to hook into it at the appropriate times.
xaxisx has joined #ruby
jprovazn has joined #ruby
northfurr has joined #ruby
codezomb has quit [Ping timeout: 240 seconds]
platzhirsch has quit [Quit: Leaving.]
mikespla_ has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
rapha has joined #ruby
<rapha>
Hi!
<lukeshu>
hi
workmad3 has quit [Ping timeout: 240 seconds]
<rapha>
Is there a way to make [1, 2, 3, 4, 2] look like [1, 3, 4, 2] (i.e., like .uniq!, but keeping the order)?
anaeem1 has joined #ruby
iamjarvo has joined #ruby
<wallerdev>
isnt [1, 2, 3, 4] keeping the order too?
<havenwood>
^ that'd be the order i'd have presumed
mikesplain has joined #ruby
<havenwood>
being as it was the first occurrence order
<rapha>
hmm that looks good ... i need to play around with that
<wallerdev>
youre saying you want one version when it can be two different ways, but youre not saying any rules about it lol
NinoScript has joined #ruby
jeaye has quit [Quit: zzz]
freerobby has joined #ruby
<rapha>
wallerdev: [4, 3, 6, 2, 2, 1, 4, 6] should become [3, 2, 1, 4, 6]
iceden has quit [Remote host closed the connection]
<wallerdev>
so you want the last number listed to be the one that stays
<rapha>
wallerdev: i was never good at maths, so maybe i can't describe the rules i want, but i mean i always want the order to remain the same while removing duplicate elements starting at the front, not the back.
adantj has joined #ruby
<havenwood>
rapha: last occurrence isn't a term of art, just sorting by the last occurrence of the item (rather than first, middle, other :P)
ta_ has joined #ruby
<wallerdev>
or the 2nd number listed to be the one that stays
<havenwood>
rapha: that way it'll maintain order and uniqueness. you could implement #merge too if you need to add more than on element at once, but you'd need to decide on the logic.
SilverKey has quit [Quit: Halted.]
ndrei has joined #ruby
platzhirsch has left #ruby [#ruby]
<lagweezle>
havenwood: I thought that Set was unordered? I was looking at this earlier today as I want a case-insensitive (everything is lower case) list of things that has at most one of any given element (string).
kireevco has quit [Read error: Connection reset by peer]
mikesplain has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
<havenwood>
lagweezle: indeed, my mistake - SortedSet
tjr9898 has quit [Remote host closed the connection]
<havenwood>
wait
chrishough has quit [Quit: chrishough]
<havenwood>
ordered not sorted
_maes_ has joined #ruby
<havenwood>
lagweezle: I presumed ordered in 1.9+.
johnmolina has joined #ruby
<havenwood>
unordered say the docs
ndrei has quit [Ping timeout: 240 seconds]
mehlah has quit [Quit: Leaving...]
startupality has quit [Ping timeout: 256 seconds]
flowerhack has joined #ruby
mikesplain has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
<havenwood>
lagweezle: i think the docs are wrong :O
saarinen has joined #ruby
<havenwood>
not sure
reset has joined #ruby
vyorkin2 has joined #ruby
<havenwood>
yup, uses Hash internally, which is sorted
<yxhuvvd>
could there be operations that break the order?
p0sixpscl has quit [Quit: p0sixpscl]
jaimef has quit [Excess Flood]
<yxhuvvd>
also, I'd expect the docs to state what the class *guarantee* which is not necessarily the same as what it actually do.
akemrir has joined #ruby
<havenwood>
yxhuvvd: i don't believe so, even the #to_a comments in the code mention order will be lost
jaimef has joined #ruby
<akemrir>
hi, I want to spawn processes from threads. But they run without joining threads. How can I run them only after join?
niharvey|lunch is now known as niharvey
emptyflask has joined #ruby
<havenwood>
i think either 1) docs didn't get updated 1.9 and are just wrong, or 2) an intention to leave open the possibility of Set internals not being based on Hash.
johnmolina has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
<havenwood>
yxhuvvd: yeah, there are multiple mentions in the code of preserving order and why alternatives that wouldn't preserve order aren't used
<havenwood>
lagweezle: yxhuvvd: worth a more thorough code review on each method, but I suspect Set is indeed ordered
<yxhuvvd>
I see.
anaeem1 has quit [Remote host closed the connection]
reset has quit [Ping timeout: 264 seconds]
bradleyprice has joined #ruby
yfeldblum has quit [Remote host closed the connection]
davidcollom has quit [Ping timeout: 252 seconds]
bradleyp_ has joined #ruby
northfurr has quit [Quit: northfurr]
JohnBat26 has quit [Ping timeout: 240 seconds]
<lagweezle>
havenwood: Interesting. So is ordered, but may at some point not be ordered..?
<papercode>
running ruby 2.0.0-p353 with rbenv. running "gem install <gem>" works fine, but "bundle install" does not claiming that it could not find <gem> in any of the sources (have verified presence of gemfile, etc)
<papercode>
anyone run into this before?
<papercode>
i have also successfully ran this command with that version of ruby on another machine
RaCx has quit [Quit: Computer has gone to sleep.]
vyorkin2 has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Read error: Connection reset by peer]
dblessing has quit [Quit: dblessing]
spyderma_ has joined #ruby
RaCx has joined #ruby
jottr has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: i've nodded off.]
timonv has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
shelling has quit [Quit: Connection closed for inactivity]
mijicd has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kimme has joined #ruby
mikecmpbll has joined #ruby
spyderman4g63 has quit [Ping timeout: 256 seconds]
<kimme>
+
kimme has left #ruby [#ruby]
tesaf has quit [Quit: Lost terminal]
paulfm has quit []
timonv has joined #ruby
dumdedum has quit [Quit: foo]
IceDragon has quit [Ping timeout: 240 seconds]
kayloos has joined #ruby
IceDragon has joined #ruby
Lingo has joined #ruby
kalusn has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
paulfm has joined #ruby
arup_r1 has joined #ruby
BalkM is now known as bMalum
arup_r has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
relix_ has joined #ruby
relix has quit [Read error: Connection reset by peer]
aspires has quit []
stytown has joined #ruby
emptyflask has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
<shevy>
typical of bundler
<shevy>
causes more harm than good
s1lverfox has joined #ruby
mikesplain has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
banister has joined #ruby
s1lverfox is now known as s|lverf0x
fijimunkii has joined #ruby
s|lverf0x has quit [Client Quit]
Zesty has joined #ruby
iamjarvo has joined #ruby
mikesplain has joined #ruby
stytown has quit [Quit: stytown]
kireevco has quit [Quit: Leaving.]
coffeina has joined #ruby
yetanotherdave has joined #ruby
<frankjpinto>
papercode: does it say <gem> or an actual gem?
johnmolina has quit [Read error: Connection reset by peer]
johnmolina has joined #ruby
roolo has joined #ruby
tus has quit [Ping timeout: 255 seconds]
GGMethos has joined #ruby
theharshest has joined #ruby
rebelshrug has joined #ruby
atmosx has quit [Ping timeout: 264 seconds]
noop has quit [Ping timeout: 240 seconds]
edgarjs is now known as edgarjs_afk
edgarjs_afk is now known as edgarjs
niharvey is now known as niharvey|recordi
flowerhack has quit [Quit: Connection closed for inactivity]
phinfonet has quit []
benzrf|offline is now known as benzrf
sha1sum has quit [Quit: leaving]
decoponio has quit [Quit: Leaving...]
baweaver has quit [Read error: Connection reset by peer]
<arup_r1>
Suppose I have exp = "(a/b)*100"; a = 50; b =10. Now I can do instance_eval(exp) to get result out ? I wouldn't use `eval`. What other way to do this using any method ?
frankjpinto has quit [Read error: Connection reset by peer]
jshultz has joined #ruby
baweaver has joined #ruby
<benzrf>
arup_r1: don't use eval
apeiros has joined #ruby
paulfm has quit []
<arup_r1>
How can I then execute this string arithmetic ?
<benzrf>
arup_r1: don't
sigurding has quit [Ping timeout: 240 seconds]
<arup_r1>
benzrf: idea please...
<benzrf>
arup_r1: if you want to execute a string you're doing it wron
<benzrf>
g
<wasamasa>
why does one have arithmetic in strings anyways
<wasamasa>
I hoped that would tell the bot to google for it
<lagweezle>
Probably 'Google for the terms that follow'
<arup_r1>
Mon_Ouie: Can you tell me what *parser* you are referring me ?
mehlah has joined #ruby
<Mon_Ouie>
Basic arithmetic notation hasn't changed in a while though so that should be fine
sigurding has quit [Quit: sigurding]
<nobitano_>
Hi guys. I am using SecureRandom.urlsafe_base64(8) and I want to be able to concat two of them, so that I am always able to retrieve the first one. So, if the first one is abab and the second one is cddd I could be able to do ababcddd and know that abab is the first one. Any approaches on this?
spider-mario has quit [Remote host closed the connection]
alexa_ has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
DrShoggoth has quit [Quit: Leaving]
chrishough has joined #ruby
ldnunes has quit [Quit: Leaving]
obs has joined #ruby
djbkd has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
Squarepy has quit [Quit: Leaving]
stytown has quit [Quit: stytown]
absolutezeroff has joined #ruby
nickenchuggets has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
helpa has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cek has joined #ruby
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jfran_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<cek>
What's the method to replace element in array for specific index inline?
koyd has quit [Quit: leaving]
<baweaver>
array[index] = somethingelse
<cek>
a[2] = 'new', but inline: arr.map.select.map{}.replace(2, 'new')
<cek>
no such function, right?
stytown has joined #ruby
<baweaver>
[].tap { |a| a[i] = what }
<cek>
okay, that's closer
<baweaver>
what are you trying to do?
tjr9898 has joined #ruby
<cek>
write a cool oneliner
* terrellt
cries.
<baweaver>
first, one liners, no
<baweaver>
readability first and always
moritzs has joined #ruby
<baweaver>
second, cool and clever are very dirty words in code
end_guy has quit [Remote host closed the connection]
<terrellt>
To be fair
<terrellt>
Sometimes it's just fun.
andrewlio has quit [Quit: Leaving.]
<baweaver>
granted
end_guy has joined #ruby
<terrellt>
Does tend to improve your mastery over some things.
<terrellt>
But yeah, if this is for a production system, better not.
<baweaver>
but assume the next guy to touch the code is a psychopath who knows your home address.
<terrellt>
<--
<baweaver>
if you hesitate, don't do it.
Kricir has joined #ruby
<baweaver>
Granted an occasional round of code golf is fun, but avoid it in production code.
snath has quit [Ping timeout: 240 seconds]
<cek>
okay girls
Atttwww has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pygospa has joined #ruby
jerius has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
<baweaver>
muting, it's nice not to have to listen to condescention.
<zenspider>
cek: that's _horrible_
amargherio has quit [Read error: Connection reset by peer]
* csmrfx
is a psychopath who can find out your home address - just to give you helpful advice
<Authenticator>
I've got a class which extends a module. A class method calls the module method, which creates a @ivar with ||=. I call the module method twice from the same class method and the value returned isn't retained. Why might this be? In a trivial test example it is retained as I'd expect...
kbarry_ has quit [Ping timeout: 240 seconds]
ringarin has joined #ruby
<baweaver>
I have a rather fun ignore list cultivating anymore.
<zenspider>
Authenticator: probably because you're not doing what you say / think you are
<benzrf>
haskell is an amazing language for completely unreadable but very clever one liners
RaCx has joined #ruby
<csmrfx>
sounds bit convoluted
Kricir has quit [Ping timeout: 260 seconds]
<csmrfx>
Authenticator: maybe you could simplify that scheme somehow
<cek>
Authenticator: use instance_variable_set
lolmaus has quit [Ping timeout: 245 seconds]
<zenspider>
benzrf: yeah. I've tried a couple times to learn haskell ... it's not a language I can read OR write.
<baweaver>
Lisp: king of one liners
<zenspider>
cek: how would that change anything?
<cek>
magically
<benzrf>
zenspider: please tell me how you tried to learn it
<dorei>
haskell reminds me the way mathematicians write their thoughts
<zenspider>
baweaver: not really. they tend to write very well formatted code.
<Authenticator>
zenspider: I know, but I'm having trouble figuring out what to check. I've printed out the object_id and caller for each invokation and it's the same object - the class, and is called from the lines I suspect.
wildroman2 has quit [Ping timeout: 264 seconds]
<baweaver>
they do, but when they want to one line
<baweaver>
that's what I was getting at
<baweaver>
perl is the king if you're going by that context.
<zenspider>
yup. I was gonna say that
<zenspider>
and python... I really dislike their comprehensions
Morkel_ has joined #ruby
<benzrf>
zenspider: wait
<benzrf>
mathematicians write messy code?
<cek>
book of the year: best python oneliners
<zenspider>
benzrf: painfully
axl_ has quit [Quit: axl_]
<benzrf>
zenspider: please tell me how you tried to learn haskell
tjr9898 has quit [Remote host closed the connection]
<baweaver>
this look Haskell inspired
<baweaver>
hardcore so.
<benzrf>
baweaver: maybe a little
nanoyak has joined #ruby
<dorei>
benzrf: u start with category theory and then u move to haskell :p
<baweaver>
I saw the first few samples and laughed
<benzrf>
baweaver: more like haskell if it were a perl descendent
<baweaver>
maybe more OCaml
<dik_dak>
anyone here experienced with sidekiq?
<benzrf>
it's far too messy to be haskell
<baweaver>
still pretty heavy influence
<benzrf>
zenspider: haskell really isnt a language you can learn by looking at examples
havenwood has joined #ruby
tjr9898 has joined #ruby
<benzrf>
at least
<benzrf>
not if your background is in ruby
<baweaver>
Learn you a Haskell - read it
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
everettForth has joined #ruby
<benzrf>
dorei: i only learned some cat theor after about 2-3 years of haskell
<benzrf>
(y)
axl_ has joined #ruby
lolmaus has joined #ruby
<zenspider>
I'll stick to better languages for me.
<benzrf>
zenspider: how do you know theyre better
<zenspider>
I said "for me". I know what works for me. You don't.
<zenspider>
Mathematica, Racket, Ruby, C. My current top choices
<benzrf>
zenspider: how do you know theyre better for you
johnmolina has quit []
<Authenticator>
Hmmm, somewhat obscure problem. The calls ended up being handled daemonized. Because of threading coincidence they appeared to be running linearly though. And of course, the value was only being set in the new process.
coffeina has quit [Quit: Wychodzi]
<benzrf>
haskell works very well for me, but the first 6 months i knew it i absolutely sucked at it
<zenspider>
you're one more stupid question from flipping the bozo bit.
<benzrf>
because its a completely different paradigm
<benzrf>
and learning paradigms is much harder than learning languages
<baweaver>
they're not really stupid questions
<zenspider>
Authenticator: is this related to the ||= problem above?
paulfm has quit []
rayners has quit [Remote host closed the connection]
<zenspider>
Authenticator: can / should you use a mutex to control write access?
<zenspider>
or can you guarantee it gets set before threads get spawned?
<Authenticator>
zenspider: Yes. I was properly setting the ivar, but when it was being run was in a forked process so it couldn't writeback.
workmad3 has joined #ruby
everettForth has quit [Ping timeout: 240 seconds]
jkline has joined #ruby
<cek>
Let's guess more without the code. I've got Vanga on the line.
<zenspider>
ah. forked processes. not threads... that's worse (and better)
cocotton has quit [Ping timeout: 255 seconds]
tjr9898_ has joined #ruby
everettForth has joined #ruby
everettForth has quit [Read error: Connection reset by peer]
nanoyak has quit [Ping timeout: 255 seconds]
<Authenticator>
zenspider: Yes, I'll make it a module ivar set at load, then make an accessor.
kalusn has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
gavit has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
timonv has joined #ruby
nanoyak has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
kirun has quit [Quit: Client exiting]
northfurr has quit [Quit: northfurr]
alexa_ has joined #ruby
iamjarvo has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
gregf has quit [Quit: WeeChat 0.4.3]
lolmaus has quit [Ping timeout: 272 seconds]
timonv has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
bamdad has joined #ruby
dda has joined #ruby
charlied3 has joined #ruby
bamdad has left #ruby [#ruby]
kalusn has joined #ruby
obs has quit [Quit: Konversation terminated!]
Xuerian has quit [Quit: No Ping reply in 180 seconds.]
edgarjs is now known as edgarjs_afk
Vivekananda_y510 has joined #ruby
qwyeth has quit [Quit: Leaving]
Xuerian has joined #ruby
phutchins has joined #ruby
terrellt has quit [Quit: Leaving...]
charlied3 has quit [Ping timeout: 245 seconds]
bhaak has quit [Ping timeout: 260 seconds]
dwayhs has quit [Quit: Computer has gone to sleep.]
terrellt has joined #ruby
mconnolly has joined #ruby
treehug88 has quit []
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
AlexRussia has joined #ruby
foo-bar- has joined #ruby
britneywright has joined #ruby
wildroman2 has joined #ruby
t0ke has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
kaspergrubbe has joined #ruby
koyd has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Ping timeout: 264 seconds]
m8 has quit [Quit: Sto andando via]
Oxelist has joined #ruby
pietr0 has joined #ruby
halogenandtoast has quit [Quit: halogenandtoast]
lolmaus has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
elaptics is now known as elaptics`away
baroquebobcat has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
edgarjs_afk is now known as edgarjs
nateberkopec has quit [Quit: Leaving...]
pietr0 has quit [*.net *.split]
Spami has quit [*.net *.split]
riotjones has quit [*.net *.split]
gavit has quit [*.net *.split]
Morkel has quit [*.net *.split]
gtc has quit [*.net *.split]
DanielRb has quit [*.net *.split]
chipotle has quit [*.net *.split]
p0sixpscl has quit [*.net *.split]
hpoydar has quit [*.net *.split]
jdj_dk has quit [*.net *.split]
roolo has quit [*.net *.split]
freerobby has quit [*.net *.split]
Wolland has quit [*.net *.split]
Guest49248 has quit [*.net *.split]
danijoo has quit [*.net *.split]
devdazed has quit [*.net *.split]
b00stfr3ak has quit [*.net *.split]
io_syl has quit [*.net *.split]
alexju has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
Poky has quit [*.net *.split]
whowantstolivefo has quit [*.net *.split]
ylluminarious|aw has quit [*.net *.split]
klaas has quit [*.net *.split]
robustus has quit [*.net *.split]
qsun has quit [*.net *.split]
larsam has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
TheNumb has quit [*.net *.split]
yano has quit [*.net *.split]
joast has quit [*.net *.split]
shanlar has quit [*.net *.split]
felipe has quit [*.net *.split]
rblackwe_ has quit [*.net *.split]
seanmarcia has quit [*.net *.split]
go|dfish has quit [*.net *.split]
destructure has quit [*.net *.split]
Schmidt has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
blackgoat has quit [*.net *.split]
neoice has quit [*.net *.split]
dylannorthrup has quit [*.net *.split]
tonini has quit [*.net *.split]
seppuku has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
Guest76851 has quit [*.net *.split]
crodas has quit [*.net *.split]
lagweezle has quit [*.net *.split]
bahar has quit [*.net *.split]
\q has quit [*.net *.split]
Gate has quit [*.net *.split]
farn has quit [*.net *.split]
finges has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
Cope has quit [*.net *.split]
Symbiosisz has quit [*.net *.split]
Rix has quit [*.net *.split]
jrdnull has quit [*.net *.split]
dnyy has quit [*.net *.split]
DanKnox has quit [*.net *.split]
sheepman has quit [*.net *.split]
renier has quit [*.net *.split]
ajf- has quit [*.net *.split]
csfrancis has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
timmow has quit [*.net *.split]
Cork has quit [*.net *.split]
tomaw has quit [*.net *.split]
phreax has quit [*.net *.split]
xm has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
dazeddev has quit [*.net *.split]
mburns has quit [*.net *.split]
mame1 has quit [*.net *.split]
snkcld has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
dRbiG has quit [*.net *.split]
KillerFox has quit [*.net *.split]
hypnosb has quit [*.net *.split]
error404 has quit [*.net *.split]
jhass|off has quit [*.net *.split]
Bish has quit [*.net *.split]
eythorium has quit [*.net *.split]
yasu has quit [*.net *.split]
AndyWojo_ has quit [*.net *.split]
Koshian has quit [*.net *.split]
clocKwize has quit [*.net *.split]
ruisantos has quit [*.net *.split]
peck_ has quit [*.net *.split]
Rennex has quit [*.net *.split]
vali has quit [*.net *.split]
zalmoxes has quit [*.net *.split]
ozzloy has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
verto has quit [*.net *.split]
nw has quit [*.net *.split]
ponyfleisch has quit [*.net *.split]
pgmcgee has quit [*.net *.split]
danshultz has quit [*.net *.split]
ehlovader has quit [*.net *.split]
chridal has quit [*.net *.split]
Scient has quit [*.net *.split]
mosez has quit [*.net *.split]
mjuszczak has quit [*.net *.split]
blackjid has quit [*.net *.split]
C0deMaver1ck has quit [*.net *.split]
ViperChief has quit [*.net *.split]
callumacrae has quit [*.net *.split]
Derander_ has quit [*.net *.split]
nisstyre has quit [*.net *.split]
gilesw has quit [*.net *.split]
gimpygoo has quit [*.net *.split]
sputnik13 has quit [*.net *.split]
epochwolf has quit [*.net *.split]
shevy has quit [*.net *.split]
Liothen has quit [*.net *.split]
troter has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
nighter has quit [*.net *.split]
gyre007 has quit [*.net *.split]
Nightmare has quit [*.net *.split]
mroth has quit [*.net *.split]
zenojis has quit [*.net *.split]
PhilK has quit [*.net *.split]
LACP has quit [*.net *.split]
intnsity has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
cschneid has quit [*.net *.split]
ikanobori has quit [*.net *.split]
sfr^ has quit [*.net *.split]
mjmac has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
pusewicz has quit [*.net *.split]
dukedave has quit [*.net *.split]
bjeanes has quit [*.net *.split]
initself_ has quit [*.net *.split]
msch has quit [*.net *.split]
zartoosh has quit [*.net *.split]
Kamilion has quit [*.net *.split]
Anarch has quit [*.net *.split]
ryotarai has quit [*.net *.split]
acalewin has quit [*.net *.split]
FL1SK has quit [*.net *.split]
george2 has quit [*.net *.split]
deepy has quit [*.net *.split]
Radar has quit [*.net *.split]
jamo_ has quit [*.net *.split]
gremax has quit [*.net *.split]
mjc_ has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
bcavileer___ has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
DefV has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
jenrzzz has quit [*.net *.split]
jeregrine has quit [*.net *.split]
Klumben has quit [*.net *.split]
hostess has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
rfv has quit [*.net *.split]
lectrick has quit [*.net *.split]
rickruby__ has quit [*.net *.split]
vcoinminer____ has quit [*.net *.split]
charles81____ has quit [*.net *.split]
paulog has quit [*.net *.split]
genta has quit [*.net *.split]
glowcoil has quit [*.net *.split]
m_3 has quit [*.net *.split]
dandrade has quit [*.net *.split]
Wayneoween has quit [*.net *.split]
dmoe______ has quit [*.net *.split]
Karunamon has quit [*.net *.split]
jpinnix has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
CJD14___ has quit [*.net *.split]
ceej has quit [*.net *.split]
frode15243 has quit [*.net *.split]
manacit has quit [*.net *.split]
dioms_ has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
schaary|afk has quit [*.net *.split]
Macacity has quit [*.net *.split]
callenb has quit [*.net *.split]
kenichi has quit [*.net *.split]
Paradox has quit [*.net *.split]
csq has quit [*.net *.split]
lfox has quit [*.net *.split]
aetaric has quit [*.net *.split]
artgoeshere has quit [*.net *.split]
dyreshark has quit [*.net *.split]
dmarr has quit [*.net *.split]
cek has quit [*.net *.split]
lazyguru has quit [*.net *.split]
pasties has quit [*.net *.split]
Trynemjoel has quit [*.net *.split]
juni0r has quit [*.net *.split]
ddv has quit [*.net *.split]
xsdg has quit [*.net *.split]
snapcase has quit [*.net *.split]
majoh has quit [*.net *.split]
j416 has quit [*.net *.split]
Mattias has quit [*.net *.split]
hinderaker has quit [*.net *.split]
[42] has quit [*.net *.split]
matson has quit [*.net *.split]
Sthebig has quit [*.net *.split]
parus has quit [*.net *.split]
niharvey has quit [*.net *.split]
Meeh has quit [*.net *.split]
JStoker has quit [*.net *.split]
cherry_lin has quit [*.net *.split]
ndrst has quit [*.net *.split]
rtl has quit [*.net *.split]
AndyWojo has joined #ruby
Cope has joined #ruby
Rennex has joined #ruby
rblackwe has joined #ruby
seanmarcia has joined #ruby
Morkel has joined #ruby
Gate has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
jhass|off has joined #ruby
snkcld has joined #ruby
queequeg1 has joined #ruby
dazeddev has joined #ruby
crodas has joined #ruby
lagweezle has joined #ruby
peck_ has joined #ruby
pietr0 has joined #ruby
mburns has joined #ruby
elaptics`away has joined #ruby
xm has joined #ruby
yasu has joined #ruby
b00stfr3ak has joined #ruby
dylannorthrup has joined #ruby
qsun has joined #ruby
Spami has joined #ruby
Symbiosisz has joined #ruby
whowantstolivefo has joined #ruby
finges has joined #ruby
blackgoat has joined #ruby
freerobby has joined #ruby
dnyy has joined #ruby
klaas has joined #ruby
DanKnox has joined #ruby
thejoecarroll has joined #ruby
hpoydar has joined #ruby
Schmidt has joined #ruby
\q has joined #ruby
error404 has joined #ruby
gtc has joined #ruby
Cork has joined #ruby
jhass|off is now known as jhass
jdj_dk has joined #ruby
alexju has joined #ruby
kiki_lamb has joined #ruby
EvanR has joined #ruby
ylluminarious has joined #ruby
csfrancis has joined #ruby
tonini has joined #ruby
go|dfish has joined #ruby
Wolland has joined #ruby
samuelkadolph has joined #ruby
riotjones has joined #ruby
zalmoxes has joined #ruby
eythorium has joined #ruby
jrdnull has joined #ruby
roolo has joined #ruby
Klumben has joined #ruby
lagweezle is now known as Guest68977
seppuku has joined #ruby
Gadgetoid has joined #ruby
bahar has joined #ruby
renier has joined #ruby
Koshian has joined #ruby
DanielRb has joined #ruby
Bish has joined #ruby
devdazed has joined #ruby
io_syl has joined #ruby
EvanR is now known as Guest91891
RealMarc has joined #ruby
chipotle has joined #ruby
DarthGandalf has joined #ruby
fabrice31 has joined #ruby
dRbiG has joined #ruby
benlieb has quit [Quit: benlieb]
clocKwize has joined #ruby
sheepman has joined #ruby
Guest68977 is now known as lagweezle
alexherbo2 has joined #ruby
gavit has joined #ruby
benlieb has joined #ruby
lolmaus has joined #ruby
benlieb has quit [Client Quit]
Rix has joined #ruby
alexherbo2 has quit [Client Quit]
ddv has joined #ruby
snapcase has joined #ruby
Mattias has joined #ruby
j416 has joined #ruby
majoh has joined #ruby
hinderaker has joined #ruby
matson has joined #ruby
Trynemjoel has joined #ruby
pasties has joined #ruby
Meeh has joined #ruby
[42] has joined #ruby
niharvey has joined #ruby
parus has joined #ruby
Sthebig has joined #ruby
cherry_lin has joined #ruby
JStoker has joined #ruby
ndrst has joined #ruby
rtl has joined #ruby
cek has joined #ruby
chridal has joined #ruby
danshultz has joined #ruby
nw has joined #ruby
callumacrae has joined #ruby
blackjid has joined #ruby
vali has joined #ruby
C0deMaver1ck has joined #ruby
Scient has joined #ruby
verto has joined #ruby
ponyfleisch has joined #ruby
ViperChief has joined #ruby
nisstyre has joined #ruby
ehlovader has joined #ruby
ozzloy has joined #ruby
gimpygoo has joined #ruby
gilesw has joined #ruby
mjuszczak has joined #ruby
troter has joined #ruby
Derander_ has joined #ruby
shevy has joined #ruby
epochwolf has joined #ruby
jumblemuddle has joined #ruby
Liothen has joined #ruby
DarkFoxDK has joined #ruby
mosez has joined #ruby
pgmcgee has joined #ruby
sputnik13 has joined #ruby
mroth has joined #ruby
Nightmare has joined #ruby
gyre007 has joined #ruby
nighter has joined #ruby
LACP has joined #ruby
zenojis has joined #ruby
PhilK has joined #ruby
intnsity has joined #ruby
dukedave has joined #ruby
cschneid has joined #ruby
ikanobori has joined #ruby
Y_Ichiro has joined #ruby
sfr^ has joined #ruby
zz_jrhorn424 has joined #ruby
mjmac has joined #ruby
amitchellbullard has joined #ruby
pusewicz has joined #ruby
bjeanes has joined #ruby
initself_ has joined #ruby
msch has joined #ruby
Kamilion has joined #ruby
zartoosh has joined #ruby
Anarch has joined #ruby
ryotarai has joined #ruby
acalewin has joined #ruby
FL1SK has joined #ruby
deepy has joined #ruby
Radar has joined #ruby
george2 has joined #ruby
jamo_ has joined #ruby
mjc_ has joined #ruby
gremax has joined #ruby
ballPointPenguin has joined #ruby
ELLIOTTCABLE has joined #ruby
bcavileer___ has joined #ruby
DefV has joined #ruby
andrewstewart has joined #ruby
SegFaultAX has joined #ruby
jenrzzz has joined #ruby
hostess has joined #ruby
jeregrine has joined #ruby
JaTochNietDan has joined #ruby
rfv has joined #ruby
lectrick has joined #ruby
charles81____ has joined #ruby
paulog has joined #ruby
vcoinminer____ has joined #ruby
genta has joined #ruby
rickruby__ has joined #ruby
dandrade has joined #ruby
Wayneoween has joined #ruby
m_3 has joined #ruby
dmoe______ has joined #ruby
Karunamon has joined #ruby
CJD14___ has joined #ruby
jpinnix has joined #ruby
frode15243 has joined #ruby
schaary|afk has joined #ruby
ceej has joined #ruby
callenb has joined #ruby
glowcoil has joined #ruby
dioms_ has joined #ruby
guilleiguaran__ has joined #ruby
Macacity has joined #ruby
yosafbridge has joined #ruby
manacit has joined #ruby
kenichi has joined #ruby
Paradox has joined #ruby
aetaric has joined #ruby
lfox has joined #ruby
csq has joined #ruby
artgoeshere has joined #ruby
dmarr has joined #ruby
lazyguru has joined #ruby
dyreshark has joined #ruby
xsdg has joined #ruby
juni0r has joined #ruby
alexherb1 has joined #ruby
iaj_ has joined #ruby
timmow has joined #ruby
JStoker has quit [Max SendQ exceeded]
JStoker has joined #ruby
Kricir has joined #ruby
Olipro has quit [Max SendQ exceeded]
SirCmpwn has joined #ruby
iaj has quit [Write error: Broken pipe]
neoice has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lbwski has quit [Remote host closed the connection]
camt has quit [Read error: Connection reset by peer]
phreax has joined #ruby
lbwski_ has joined #ruby
destructure has joined #ruby
s0n1c- has joined #ruby
ixx has quit [Write error: Broken pipe]
d3scala has quit [Write error: Broken pipe]
zaargy has quit [Write error: Broken pipe]
hackeron has quit [Write error: Broken pipe]
ruisantos has joined #ruby
lolmaus has joined #ruby
ixx has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
zaargy has joined #ruby
camt has joined #ruby
seppuku has quit [Ping timeout: 240 seconds]
Poky has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
ixx is now known as Guest9909
shvelo has quit [Ping timeout: 245 seconds]
cuppscakes has joined #ruby
comma8|BNC has joined #ruby
ylluminarious is now known as ylluminarious|aw
seppuku has joined #ruby
cuppscakes has quit [Client Quit]
shanlar has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
comma8 has quit [Quit: Leaving]
comma8|BNC is now known as comma8
wildroman3 has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
djbkd has joined #ruby
descala has joined #ruby
hackeron has joined #ruby
kalusn has quit [Remote host closed the connection]
seppuku has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
seppuku has joined #ruby
gavit has quit [Ping timeout: 240 seconds]
johnrover has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
benzrf is now known as benzrf|offline
rokob has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
robbyoconnor has quit [Read error: No route to host]
earthquake has joined #ruby
chipotle has quit [Quit: cya]
Soda has joined #ruby
jason_rad has joined #ruby
dda has quit [Ping timeout: 255 seconds]
Olipro has joined #ruby
<jason_rad>
I know Hash.first is valid.. but is there not a Hash.last?
mjc_ has quit []
Poky has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
<Spami>
I have a multi thread question. let say I'm trying to analyze 80000k record and extract data from it. Is it possible to run 80 thread in parallel that process 1000 records each. Is it going to be faster ?
benzrf|offline is now known as benzrf
halogenandtoast has joined #ruby
seppuku has quit [Ping timeout: 260 seconds]
jdj_dk has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
mjc has joined #ruby
seppuku has joined #ruby
mjc is now known as mjc_
jobewan has quit [Quit: Leaving]
johnrover has quit [Quit: johnrover]
gregf has joined #ruby
Guest15117 has quit [Quit: Computer has gone to sleep.]
<kaspergrubbe>
Spami: Depends on a lot of factors, what kind of analysis, your machine, your OS etc. But if you tweak the amount of threads to your hardware, and your job is indeed able to run in parallel, I will believe it in most cases to run faster.
lewix has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
alem0lars has quit [Quit: Going AFK...]
Aryasam has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Oxelist has quit [Ping timeout: 240 seconds]
felipe has joined #ruby
<Spami>
kaspergrubbe, running it on my macbook pro. Basically, 2 api call(getting json, then decoding the json then parsing the content of the message looking for websites)
seppuku has quit [Ping timeout: 240 seconds]
halogenandtoast has quit [Quit: halogenandtoast]
JoshGlzBrk has joined #ruby
seppuku has joined #ruby
Takle has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
BadQuanta has quit [Ping timeout: 260 seconds]
<kaspergrubbe>
Spami: I have done something like that (Download resource, store it) and in my case it was faster, and well worth it.
<Spami>
kaspergrubbe, good to know
lolmaus has joined #ruby
<Spami>
because It's really slow right now. The api is really slow to respond so I'm hoping to go faster.
ephemerian has quit [Quit: Leaving.]
halogenandtoast has joined #ruby
halogenandtoast has quit [Client Quit]
nobitano_ has quit [Ping timeout: 272 seconds]
Hanmac1 has joined #ruby
seppuku has quit [Ping timeout: 240 seconds]
<testcore>
anyone else find the 'net/http' gem to be horribly convoluted and hard to use?
<zenspider>
gem?
Morkel has quit [Quit: Morkel]
dwayhs has joined #ruby
<kaspergrubbe>
Yeah, I started out with threads but that bit me in because I had issues in my code, so I made it parallel in several processes instead hooking them together with beanstalkd, and had a nice producer/consumer thing going on
kireevco has joined #ruby
seppuku has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
ultimoo has joined #ruby
<kaspergrubbe>
Spami: I would probably use threads today. I can recommend both "Working With Ruby Threads" and "Working With Unix Processes" by Jesse Storimer.
freerobby has quit [Quit: Leaving.]
<Spami>
kaspergrubbe, well it's outside my app. It's like one time use,
<kaspergrubbe>
testcore: Yes! I tend to build a wrapper around the rough edges, but I don't like it at all :-)
<Spami>
So I'm not to worry about that
axl_ has left #ruby [#ruby]
baweaver has joined #ruby
<havenwood>
testcore: Net::HTTP is in the stdlib. But there are a few good Net::HTTP wrappers as well as nice alternatives like HTTP or HTTPClient.
<testcore>
the usage just seems absurd... create a GET object, with a URI, then call *another* method somewhere else to execute that GET... supplying the uri params *already given* to the damn GET object
<zenspider>
not a gem, unless there's something wierd I don't know about
<testcore>
meh. lib.
seppuku has quit [Ping timeout: 264 seconds]
<zenspider>
I use openuri for all GETs and I love it
<zenspider>
URI.parse(...).read
washtubs has joined #ruby
francisfish has quit [Remote host closed the connection]
<rapha>
havenwood: .reverse.uniq.reverse solved my problem pretty neatly, but thanks for the elaboration anyways! I'll be sure to keep that bookmarked!
seppuku has joined #ruby
baweaver has quit [Ping timeout: 256 seconds]
britneywright has joined #ruby
jottr has joined #ruby
weirdpercent has joined #ruby
maletor has quit [Ping timeout: 240 seconds]
daniellutz has joined #ruby
seppuku has quit [Ping timeout: 245 seconds]
ziyadb has joined #ruby
wildroman3 has quit [Read error: No route to host]
wildroman2 has joined #ruby
seppuku has joined #ruby
kevind has quit [Quit: kevind]
weirdpercent has quit [Client Quit]
djbkd has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
joast has joined #ruby
charliesome has joined #ruby
Takle has quit [Remote host closed the connection]
ferr has joined #ruby
nmokru has quit [Quit: nmokru]
seppuku has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
nateberkopec has joined #ruby
seppuku has joined #ruby
hpoydar has quit []
nateberkopec has quit [Read error: Connection reset by peer]
JJMalina has joined #ruby
yfeldblum has joined #ruby
weirdpercent has joined #ruby
dopie has joined #ruby
zkay11 has joined #ruby
wildroman2 has quit [Remote host closed the connection]