ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
RobertBirnie has quit [Ping timeout: 260 seconds]
dynamism1 has joined #ruby-lang
LeonBo has quit [Read error: Connection reset by peer]
LeonBo has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
argish has joined #ruby-lang
danijoo has joined #ruby-lang
elia has joined #ruby-lang
_elia has quit [Ping timeout: 240 seconds]
dynamism1 has left #ruby-lang [#ruby-lang]
elia has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: i've nodded off.]
dwknoxy has joined #ruby-lang
RobertBirnie has joined #ruby-lang
RobertBirnie has quit [Client Quit]
argish has quit [Remote host closed the connection]
JoshuaPaling has joined #ruby-lang
marr has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
arooni-mobile has joined #ruby-lang
djbkd has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
jxie_ has quit [Quit: leaving]
hahuang65 has quit [Ping timeout: 250 seconds]
btiefert has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
hellangel7 has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 260 seconds]
darkness has joined #ruby-lang
darkness is now known as Guest12011
mistym has quit [Remote host closed the connection]
davispuh has quit [Ping timeout: 245 seconds]
hellangel7 has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
thiagoborges has quit []
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
Miphix has joined #ruby-lang
jimbach has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amclain has joined #ruby-lang
toastynerd has joined #ruby-lang
arBmind has joined #ruby-lang
Guest12011 has quit [Remote host closed the connection]
arBmind1 has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
shinnya has quit [Ping timeout: 250 seconds]
yatish27 has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
chouhoulis has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
frank_o has joined #ruby-lang
yatish27_ has joined #ruby-lang
yatish27 has quit [Ping timeout: 245 seconds]
ecnalyr has joined #ruby-lang
earthquake has joined #ruby-lang
ecnalyr has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 272 seconds]
jamesfordummies has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
vvikus has joined #ruby-lang
saarinen has quit [Quit: saarinen]
wallerdev has joined #ruby-lang
nofxx__ has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
dorei has quit []
nofxx_ has quit [Ping timeout: 245 seconds]
wallerdev has quit [Client Quit]
yfeldblu_ has joined #ruby-lang
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby-lang
nertzy2 has quit [Ping timeout: 240 seconds]
arooni-mobile has joined #ruby-lang
dwknoxy has quit [Quit: Textual IRC Client: www.textualapp.com]
centrx has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
Nilium has joined #ruby-lang
thomasxie has joined #ruby-lang
gix- has joined #ruby-lang
gix- has quit [Client Quit]
gix has quit [Disconnected by services]
brothmars has quit [Ping timeout: 245 seconds]
centrx has quit [Quit: Mead error: Connection reset by beer]
wallerdev has joined #ruby-lang
emmesswhy has joined #ruby-lang
charliesome has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 240 seconds]
thomasxie has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
jsodini has joined #ruby-lang
RobertBirnie has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Hinkdogg__ has quit [Quit: Computer has gone to sleep.]
torrieri has joined #ruby-lang
tectonic has joined #ruby-lang
tectonic has quit [Client Quit]
frank_o has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby-lang
bsvineeth has joined #ruby-lang
toastynerd has quit [Ping timeout: 255 seconds]
gix has joined #ruby-lang
jsodini has quit [Quit: Leaving...]
earthquake has quit [Quit: earthquake]
Quixotic has joined #ruby-lang
<Quixotic> What sort of IDE do you guys use? Using arcadia right now.
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
mahlon has quit [Ping timeout: 240 seconds]
nisstyre has quit [Ping timeout: 240 seconds]
mahlon has joined #ruby-lang
Kuda_ has joined #ruby-lang
Sgeo has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
dm78 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby-lang
Sgeo_ has quit [Ping timeout: 264 seconds]
jamesfordummies has quit []
nisstyre has joined #ruby-lang
brothmars has joined #ruby-lang
alekst has quit [Quit: Leaving...]
tylersmith has joined #ruby-lang
charliesome has joined #ruby-lang
hahuang65 has joined #ruby-lang
frank_o has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
macsplean1 has joined #ruby-lang
RobertBirnie has joined #ruby-lang
RobertBirnie has quit [Client Quit]
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
vvikus has quit [Ping timeout: 264 seconds]
vvikus has joined #ruby-lang
earthquake has joined #ruby-lang
ocdmw has quit []
koderok has joined #ruby-lang
koderok has quit [Client Quit]
bsvineeth has quit [Ping timeout: 255 seconds]
vvikus has quit [Ping timeout: 250 seconds]
gix has quit [Ping timeout: 264 seconds]
vvikus has joined #ruby-lang
nofxx__ has quit [Ping timeout: 245 seconds]
gix has joined #ruby-lang
alexju has joined #ruby-lang
dm78_ has joined #ruby-lang
alexju has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
dm78 has quit [Ping timeout: 240 seconds]
Lewix has quit [Read error: Connection reset by peer]
Lewix has joined #ruby-lang
lsegal has joined #ruby-lang
alexju has joined #ruby-lang
alexju has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
Lewix_ has joined #ruby-lang
vvikus has quit [Ping timeout: 260 seconds]
mistym_ has quit [Remote host closed the connection]
alexju has joined #ruby-lang
robbyoconnor has quit [Quit: Konversation terminated!]
alexju has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
Lewix has quit [Ping timeout: 272 seconds]
alexju has joined #ruby-lang
macsplean1 has quit [Quit: Leaving]
djbkd has joined #ruby-lang
alexju has quit [Remote host closed the connection]
kaiza has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
alexju has joined #ruby-lang
yfeldblum has joined #ruby-lang
alexju has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
alexju has joined #ruby-lang
CaptainJet has quit []
yfeldblum has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
r0bby_ has joined #ruby-lang
ecnalyr has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
r0bby_ has quit [Ping timeout: 255 seconds]
ecnalyr has quit [Ping timeout: 264 seconds]
jsodini has joined #ruby-lang
relix has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
mistym has joined #ruby-lang
Kuda_ has quit [Quit: Sleep]
yatish27_ has quit []
alexju has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
AKASkip has joined #ruby-lang
gjaldon has joined #ruby-lang
<onewheelskyward> Rubymine.
<Quixotic> Thanks. Been too cheap to pony up thus far, just started learning ruby
bsvineeth has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
toastynerd has joined #ruby-lang
dm78_ has quit [Remote host closed the connection]
Quixotic has quit [Quit: Page closed]
dm78 has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
r0bby_ has joined #ruby-lang
r0bby_ has quit [Client Quit]
dm78 has quit [Read error: Connection reset by peer]
dm78 has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
jsodini has quit [Quit: Linkinus - http://linkinus.com]
dm78 has joined #ruby-lang
pr0ton_ has joined #ruby-lang
AKASkip has quit [Ping timeout: 246 seconds]
t_ has quit [Ping timeout: 250 seconds]
t_ has joined #ruby-lang
Sgeo_ has joined #ruby-lang
dm78 has quit [Ping timeout: 255 seconds]
Sgeo has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
tkuchiki_ has joined #ruby-lang
gjaldon has quit []
kyb3r_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
jimbach has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arooni-mobile has quit [Ping timeout: 246 seconds]
jimbach has quit [Ping timeout: 255 seconds]
frank_o has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
brothmars has quit [Ping timeout: 260 seconds]
symm- has joined #ruby-lang
futilegames has joined #ruby-lang
underscore_ has joined #ruby-lang
<underscore_> hey!
<underscore_> hi, I was wondering why this happens and where i can read more about this
<underscore_> say i type into irb
<underscore_> [1,2,3,4,5]
<underscore_> a = _
<underscore_> it returns
<underscore_> a = [1,2,3,4,5]
<ari-_-e> underscore_: I think that's an irb-specific thing
<underscore_> oh so its not from ruby?
<underscore_> thanks I'll look into it
<ari-_-e> it's just result of the last evaluated line
frank_o has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
<underscore_> thanks arie-_-e
underscore_ has quit [Quit: Page closed]
bsvineeth has quit [Ping timeout: 260 seconds]
[spoiler] has joined #ruby-lang
_ht has joined #ruby-lang
bsvineeth has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
rahul_j has joined #ruby-lang
thomasxie has joined #ruby-lang
fainder_ has joined #ruby-lang
fusillicode has joined #ruby-lang
bffff_ has quit [Quit: Connection closed for inactivity]
fainder_ has quit [Client Quit]
fainder_ has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
fusillicode has quit [Ping timeout: 245 seconds]
rahul_j has joined #ruby-lang
toastynerd has joined #ruby-lang
koderok has joined #ruby-lang
michd is now known as MichD
toastynerd has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
saarinen has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
mkaesz has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has joined #ruby-lang
pr0ton_ has quit [Quit: pr0ton_]
arBmind has joined #ruby-lang
koderok has quit [Quit: koderok]
rahul_j has joined #ruby-lang
bsvineeth has quit [Ping timeout: 246 seconds]
fusillicode has joined #ruby-lang
kwd has joined #ruby-lang
kro_ has quit [Quit: leaving]
fusillicode has quit [Ping timeout: 240 seconds]
rahul_j has quit [Read error: Connection reset by peer]
|jemc| has joined #ruby-lang
rahul_j has joined #ruby-lang
skade has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rahul_j has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
rahul_j has joined #ruby-lang
fusillicode has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
Forgetful_Lion has joined #ruby-lang
fusillicode has quit [Ping timeout: 240 seconds]
rahul_j has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 250 seconds]
rahul_j has joined #ruby-lang
fainder_ is now known as fainder
tbuehlmann has joined #ruby-lang
ta has joined #ruby-lang
diegovio1 has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 255 seconds]
bsvineeth has joined #ruby-lang
rahul_j has joined #ruby-lang
ta has quit [Client Quit]
ta has joined #ruby-lang
marcofernandez has joined #ruby-lang
diegovio1 has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
diegoviola has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
jimbach has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
rahul_j has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
rahul_j has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 0.4.3]
rahul_j has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
rahul_j has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
AKASkip has joined #ruby-lang
adphillips has joined #ruby-lang
adphillips has quit [Client Quit]
rahul_j has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
fainder has quit [Quit: Leaving...]
apeiros has joined #ruby-lang
emmesswhy has quit [Quit: This computer has gone to sleep]
bsvineeth has joined #ruby-lang
jhass|off is now known as jhass
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
<Lewix_> how would you remove all the negatives numbers from an array in an efficient way
<Lewix_> array.each_index {|i| array.delete_at(i) if array[i] < 0 } is the wrong way to go about it
ur5us has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby-lang
<jhass> Lewix_: .reject!
<Lewix_> jhass: right thanks
rahul_j has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
rahul_j has joined #ruby-lang
robbyoconnor has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
<Mon_Ouie> each { delete_at } isn't just inefficient, it doesn't work, because when you delete in the middle of the array the indices of all the following element get shifted by one
<Mon_Ouie> You'd have to iterate over the array backwards to make it work
qba73 has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
rahul_j has joined #ruby-lang
arBmind has joined #ruby-lang
<yorickpeterse> morning
banister has joined #ruby-lang
<apeiros> mourning
rahul_j has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
rahul_j has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
jimbach has joined #ruby-lang
marr has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0]
<Lewix_> Mon_Ouie: that's what i meant by inefficient
jimbach has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
Meta5 has joined #ruby-lang
arBmind has joined #ruby-lang
rahul_j has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
mkaesz has quit [Ping timeout: 240 seconds]
rahul_j has quit [Read error: Connection reset by peer]
<sluukkonen> heh, Array#reject! actually uses delete_at(i) in a loop
saarinen has quit [Quit: saarinen]
rahul_j has joined #ruby-lang
thomasxie has quit [Read error: Connection reset by peer]
sarkyniin has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
<maloik_> Fellow grammar nazi's, are there any holes to be poked in this sentence? The queue contains changes for this %{resource}. The server will process these as soon as possible, only then will your changes be active.
<maloik_> specifically the last sentence (queue contains.. is for context)
<apeiros> *nazis
<maloik_> :-(
sMecKs has quit [Read error: Connection reset by peer]
<DefV> hahaha
<surrounder> lol
<oddmunds> maloik_: looks good to me.
<sluukkonen> I'd probably write the last sentence with something like 'The changes will be active only after the server has finished processing them.'
<oddmunds> maaybe spilt it into two setences.
<oddmunds> yeah
<apeiros> I'm not a native speaker, but looks good to me too
<oddmunds> better
<maloik_> sounds good sluukkonen thanks
letenje has joined #ruby-lang
<sluukkonen> or maybe s/active/visible/?
<yorickpeterse> maloik_: yo, what day do you lot fly in for Baruco?
<apeiros> in effect?
* apeiros has_many :yaks
<sluukkonen> <- not a native speaker either, so ymmv
<maloik_> yorickpeterse: uhm, thursday I believe
<sluukkonen> maybe 'Changes will be effective after…'
workmad3 has joined #ruby-lang
<maloik_> effective != in effect
<yorickpeterse> maloik_: Ah, same here
<yorickpeterse> Staying from the 11th until the 16th
<maloik_> I believe we fly back monday morning
<yorickpeterse> Can't go to Barcelona and *not* see any museums
<maloik_> yay for free day in barcelona
<maloik_> museums? psssh
<yorickpeterse> maybe I'll even watch tourists get mugged by pickpockets
<maloik_> I'm a complete heretic when it comes to that :D
<maloik_> was actually considering squeezing in my climbing shoes and finding a gym but I doubt my colleagues would be up for that
<yorickpeterse> lifting in Barcelona, classy
<maloik_> a climbing gym
<maloik_> not a regular gym
<yorickpeterse> You're still lifting
<maloik_> more like pulling
<maloik_> do you even climb bro
<maloik_> :D
<yorickpeterse> Not regulary
thomasxie has joined #ruby-lang
<maloik_> anyone recall the name of those portable wifi access points you put a sim into?
<yorickpeterse> there's like 15 million brands of them, which one in particular?
<maloik_> the general name, so I can google around
<yorickpeterse> You mean mifi?
<maloik_> yes!
<maloik_> if you know of one that's supposedly better than most others do feel free to share :-)
<yorickpeterse> nfi, I never use them
<yorickpeterse> I piggy back on other people's wifi
<yorickpeterse> I iz h4ck3r
jimbach has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
<maloik_> :D
<matti> yorickpeterse: 1337
<matti> ;]
jimbach has quit [Ping timeout: 240 seconds]
<yorickpeterse> https://github.com/yorickpeterse/speedpwn I mainly just use this, I never managed to get Aircrack & friends to work
<yorickpeterse> or tunneling via public wifi
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has joined #ruby-lang
diegoviola has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby-lang
Meta5 has quit [Quit: Meta5]
rahul_j has joined #ruby-lang
Meta5 has joined #ruby-lang
havenwood has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
Meta5 has quit [Client Quit]
rahul_j has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
rahul_j has quit [Read error: Connection reset by peer]
bsvineeth has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
<maloik_> anyone else here doing baruco?
bsvineeth has joined #ruby-lang
<ddfreyne> I'm not
<ddfreyne> I went to my first Eurucamp three weeks ago and it was great :D
<maloik_> I had no idea it was actually a camping trip until I saw the pictures on twitter a while back
<maloik_> makes me even more eager to go next year
priodev has quit [Ping timeout: 260 seconds]
priodev has joined #ruby-lang
motoko has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<motoko> Hi guys, would be very happy if someone could help me with web scraping. I have code like this https://gist.github.com/motoko-kusanagi/dc795de28ce19d3a5ad5#file-allegro
<motoko> Nokogiri it's working but only for a few pages and then stops reading pages... I dont know why
<motoko> I think that this page can block me because im reading this informations but then... downloading whole pages still works
<ddfreyne> maloik_: I didn't go camping
<motoko> so nokogiri is being blocked or something else is going on?
<yorickpeterse> motoko: for one, don't use constants as variables
thomasxie has quit [Read error: Connection reset by peer]
<yorickpeterse> When you do something like `URL = XXXX` you're creating a constant. Once created you're not supposed to re-assign them
<yorickpeterse> Use local variables instead (`url = xxxx`)
<motoko> Ok, thanks. This is why im getting warnings
<yorickpeterse> Other than that, perhaps the server returns some kind of error/empty response
<yorickpeterse> it could indeed be that they're blocking or rate limiting requests
<motoko> but then why im able to downlad whole page to disk?
frank_o has quit [Ping timeout: 246 seconds]
<motoko> it looks like i am able to download 1000 pages to disk and then scan them directly from my drive
<yorickpeterse> Because they might start blocking you only after a while, opposed to right away
<motoko> but this is not 'nice' :) i would like to read everything online if it is possible
<yorickpeterse> or perhaps something else is wrong, it's hard to tell
<motoko> ok
<motoko> can I print error or something like this? because after a while nokogiri isnt working at all I can only see that pages are downloading
Meta5 has joined #ruby-lang
<motoko> i mean error or message im getting from server. Maybe it is something like access denied, or something else
<yorickpeterse> Not sure with open(), but generally you can with other HTTP clients (e.g. Faraday, HTTPClient ,etc)
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
<motoko> thank you for help yorickpeterse
Miphix has quit [Quit: Leaving]
ecnalyr has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
<yorickpeterse> np
toertore has quit [Quit: Leaving]
jimbach has quit [Ping timeout: 240 seconds]
migbar has joined #ruby-lang
rolfb has joined #ruby-lang
migbar has quit [Client Quit]
kyb3r_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
Lewix_ has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Ping timeout: 250 seconds]
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
ecnalyr has joined #ruby-lang
amerine_ has joined #ruby-lang
jimbach has joined #ruby-lang
amerine has quit [Ping timeout: 255 seconds]
mkaesz has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
frank_o has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
ecnalyr has quit [Quit: Macbook has gone to sleep. . .]
tkuchiki has quit [Ping timeout: 240 seconds]
relix has quit [Remote host closed the connection]
Silex has quit [Ping timeout: 255 seconds]
tkuchiki_ has quit [Ping timeout: 272 seconds]
relix has joined #ruby-lang
Silex has joined #ruby-lang
bin7me has joined #ruby-lang
thomasxie has joined #ruby-lang
ldnunes has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
Miphix has joined #ruby-lang
havenwood has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
<motoko> yorickpeterse: I know what was the problem. It wasnt nokogiri. Tags are changing after a few pages thats why I got empty values. I had to compare pages to figure it out ;-) Now I dont have to download pages to my disk ;)
havenwood has quit [Ping timeout: 264 seconds]
relix has quit [Ping timeout: 255 seconds]
relix has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
hellangel7 has joined #ruby-lang
<yorickpeterse> Ah
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 245 seconds]
fullybaked has joined #ruby-lang
banister has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Ping timeout: 240 seconds]
qba73_ has joined #ruby-lang
qba73 has quit [Read error: Connection reset by peer]
stamina has joined #ruby-lang
Sgeo_ has quit [Read error: Connection reset by peer]
Kero_ is now known as Kero
frank_o has quit [Quit: leaving]
Hinkdogg__ has joined #ruby-lang
sepp2k has joined #ruby-lang
goatish_mound has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rsl has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
earthquake has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
t4nk777 has joined #ruby-lang
t4nk777 has quit [Client Quit]
diegoviola has quit [Ping timeout: 245 seconds]
bsvineeth has joined #ruby-lang
davispuh has joined #ruby-lang
thomasxie has joined #ruby-lang
dwknoxy has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AKASkip has quit [Ping timeout: 260 seconds]
AKASkip has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has joined #ruby-lang
workmad3 has joined #ruby-lang
cmisenas has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
havenwood has quit [Ping timeout: 264 seconds]
jimbach has joined #ruby-lang
cmisenas has quit [Client Quit]
symm- has quit [Ping timeout: 240 seconds]
miqui has joined #ruby-lang
earthquake has quit [Quit: earthquake]
Forgetful_Lion has quit [Remote host closed the connection]
malconis has joined #ruby-lang
ur5us has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
dm78 has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
Siyfion has joined #ruby-lang
ur5us has quit [Ping timeout: 260 seconds]
jimbach has quit [Ping timeout: 240 seconds]
[spoiler] has quit [Quit: Leaving]
hellangel7 has quit [Read error: Connection reset by peer]
karamazov has joined #ruby-lang
mnngfltg has joined #ruby-lang
brothmars has joined #ruby-lang
jgpawletko has joined #ruby-lang
Meta5_ has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
DivineEn1ity has quit [Quit: Lost terminal]
danromano has joined #ruby-lang
spastorino has joined #ruby-lang
Meta5_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Meta5_ has joined #ruby-lang
qba73_ has quit [Remote host closed the connection]
qba73 has joined #ruby-lang
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby-lang
danromano has quit [Quit: Leaving]
alexju has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
Siyfion has quit []
banister has joined #ruby-lang
yfeldblum has joined #ruby-lang
joast has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby-lang
symm- has joined #ruby-lang
Meta5_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
yfeldblum has quit [Ping timeout: 272 seconds]
torrieri has joined #ruby-lang
havenwood has joined #ruby-lang
Dusty_ has quit [Ping timeout: 250 seconds]
Hinkdogg__ has quit [Quit: Computer has gone to sleep.]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
cmisenas has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Remote host closed the connection]
ta has quit [Ping timeout: 244 seconds]
dorei has joined #ruby-lang
diegoviola has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
dm78 has joined #ruby-lang
motoko has quit [Ping timeout: 246 seconds]
fullybaked has quit []
<apeiros> hm, how do I go about a gem not finding the header files because they're not where it expects them? I know I can add build options to `gem install` using `gem install mygem -- BUILD_OPTIONS`, but how do I figure which option to pass so it finds the header?
<yorickpeterse> apeiros: `pkg-config`
yell0wgh0st has quit [Quit: yell0wgh0st]
<apeiros> yorickpeterse: run that in the ext dir? or how?
skade has joined #ruby-lang
AKASkip has quit [Ping timeout: 272 seconds]
dm78 has quit [Remote host closed the connection]
<apeiros> like this?
<apeiros> $ pkg-config osxfuse --cflags
<apeiros> -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/usr/local/Cellar/osxfuse/2.7.0/include/osxfuse/fuse
dm78 has joined #ruby-lang
<yorickpeterse> That should do it
<apeiros> hrmpf, except it doesn't - I still get "bufferwrapper.c:3:10: fatal error: 'fuse.h' file not found"
nofxx__ has joined #ruby-lang
<yorickpeterse> pastie extconf.rb or gtfo
dm78 has quit [Client Quit]
<apeiros> second
<apeiros> I cloned https://github.com/lwoggardner/rfuse and only changed ext/rfuse/extconfig.rb which I pasted here: https://gist.github.com/apeiros/539ed6d22f52352f5f53
dm78 has joined #ruby-lang
<apeiros> yeah, I was about to collect more info :) but sometimes people interrupt so it takes more than a minute ;-)
letenje has quit [Quit: Leaving]
<apeiros> output comming too…
<crankharder> how do I check if the class of a given instance defines a particular method? respond_to? isn't sufficient since that will return true for inherited methods
<apeiros> gist updated
<apeiros> crankharder: method_defined?
<apeiros> and yes, respond_to? works for inherited methods too
<apeiros> but respond_to? is for instance level, not class level
<apeiros> i.e.:
t4nk783 has joined #ruby-lang
<apeiros> crankharder: oh, wait, did I just misread?
<crankharder> method_defined is still returning true
<crankharder> i think so
<apeiros> you only want true if the method is immediately on the lcass?
<crankharder> this still returns true
<crankharder> class Foo ; end ; Foo.method_defined?(:inspect)
<t4nk783> What is wrong with this line of code for my BMI calculator? BMI = mass/(height**2)
<yorickpeterse> crankharder: SomeClass.methods(false).include?(:method_name)
<apeiros> *class
<crankharder> I need to know that Foo doesn't define inspect
<yorickpeterse> >> class A; def foo; end; end; class B < A; end; B.methods(false)
<eval-in> yorickpeterse => [] (https://eval.in/181346)
<yorickpeterse> >> class A; def foo; end; end; class B < A; end; A.methods(false)
<crankharder> ah yea
<crankharder> ty
<eval-in> yorickpeterse => [] (https://eval.in/181347)
<yorickpeterse> errr
<yorickpeterse> >> class A; def foo; end; end; class B < A; end; A.instance_methods(false)
<eval-in> yorickpeterse => [:foo] (https://eval.in/181348)
<apeiros> FooClass.instance_method(:inspect).owner != FooClass
<yorickpeterse> clearly what they need is ActiveSupport here
<yorickpeterse> SomeClass.class_defines_method_directly?(:some_method_name)
* yorickpeterse runs
<crankharder> hah
hellangel7 has joined #ruby-lang
<crankharder> is there a better way to define inspect if it's not directly defined than any of those suggestions? unless methods(false).include?(:inspect) ; def inspect...
<crankharder> works for me, but a bit kludgey
<apeiros> t4nk783: nothing. want to refine your question?
<jhass> crankharder: respond_to? :foo, false iirc
<apeiros> yorickpeterse: any idea re extconfig with fusefs?
benlovell has joined #ruby-lang
<yorickpeterse> oh missed the gist
<yorickpeterse> apeiros: you dumbass
<yorickpeterse> $CFLAGS << ' -Wall ' << `$ pkg-config osxfuse --cflags`
<yorickpeterse> what does that do
<t4nk783> What is wrong with this line of code for my BMI calculator? BMI = mass/(height**2) It says that ** is not a valid method. Works in the irb, though.
<yorickpeterse> To be exact: << `$ pkg-config osxfuse --cflags`
<apeiros> yorickpeterse: grah
dorei has quit [Read error: Connection reset by peer]
<yorickpeterse> :P
<apeiros> copy-paste-itis
<yorickpeterse> t4nk783: what's the type of `height` ?
<yorickpeterse> also paste the exact error message
dorei has joined #ruby-lang
<apeiros> ok, new problem…
<apeiros> checking for rb_errinfo()... *** extconf.rb failed ***
<apeiros> is rb_errinfo deprecated in 2.1?
<yorickpeterse> No, it's still there
<apeiros> hrmpf, yes
<apeiros> was in a similar place :)
<yorickpeterse> Probably means it doesn't find your ruby.h header
<apeiros> grah!
<apeiros> and how do I tell it where to find that?
jtoy has quit [Ping timeout: 250 seconds]
<apeiros> yeah, it doesn't find ruby.h
jtoy has joined #ruby-lang
loincloth has joined #ruby-lang
hellangel7 has quit [Ping timeout: 244 seconds]
<t4nk783> yorickpeterse, height = gets.chomp
<t4nk783> Takes a number
<yorickpeterse> gets.chomp returns a String, not a Numeric
<yorickpeterse> >> 'foo'.chomp ** 2
<eval-in> yorickpeterse => undefined method `**' for "foo":String (NoMethodError) ... (https://eval.in/181349)
<yorickpeterse> ^
<yorickpeterse> Hence you should always paste the exact error message :)
<apeiros> yorickpeterse: if I add that, it fails with the expected: checking for ruby.h... *** extconf.rb failed ***
Hinkdogg__ has joined #ruby-lang
<yorickpeterse> wut
<t4nk783> OK, thanks
tylersmith has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<yorickpeterse> apeiros: Ruby env messed up?
<apeiros> yorickpeterse: ordinary rvm install
<apeiros> no customization on my part
<yorickpeterse> > RVM
havenwood has quit [Remote host closed the connection]
Hinkdogg___ has joined #ruby-lang
Hinkdogg__ has quit [Read error: Connection reset by peer]
<apeiros> hm, even when I manually add it via -I/…/.rvm/src/rubies/ruby-2.1.2 it fails with the same error
thomasxie has quit [Remote host closed the connection]
<apeiros> (yes, I know adding it manually is ugly, but for the sake of figuring what goes wrong…)
yfeldblum has joined #ruby-lang
thomasxie has joined #ruby-lang
<apeiros> oh, d'oh
hellangel7 has joined #ruby-lang
<apeiros> insufficient path… lets fix that a bit
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby-lang
<apeiros> :-/ still
cmhobbs has quit [Client Quit]
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby-lang
Siyfion has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
Lewix has joined #ruby-lang
brothmars has quit [Remote host closed the connection]
brothmars has joined #ruby-lang
<yorickpeterse> argh, so this repo has both .css and .less files
<yorickpeterse> and one of our designers, who's on holidays, changed the .css files but didn't update the .less
<yorickpeterse> so now I'm playing human merge tool
<DefV> anyone wants a mailbox beta coin?
<yorickpeterse> a what?
jimbach has joined #ruby-lang
<Silex> yorickpeterse: you'd remove the css files...
<Silex> </captainobvious>
argish has joined #ruby-lang
<jhass> yorickpeterse: yeah, why not have the css generated on deployment
<yorickpeterse> ~reasons~
argish has quit [Quit: Lost terminal]
alekst has joined #ruby-lang
<yorickpeterse> CTO gave the magic go-ahead: "Just remove the Less"
<yorickpeterse> aww yiss
<DefV> kill
<DefV> kill now
yell0wgh0st has joined #ruby-lang
brixen has quit [Excess Flood]
<apeiros> yorickpeterse: so your project will have less less? :D
<yorickpeterse> No, more
<yorickpeterse> (*badum tsh*)
brixen has joined #ruby-lang
jtoy has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
rahul_j has joined #ruby-lang
vondruch has quit [Quit: Ex-Chat]
mistym has joined #ruby-lang
<apeiros> yorickpeterse: hm, ok, seems to be unrelated to ruby.h. error is just horribly reported. ruby.h is found just fine, but later on it says "The compiler failed to generate an executable file"
<apeiros> going into ext/rfuse and running extconf.rb directly, reading the mkmf.log I see that the error is this:
CaptainJet has joined #ruby-lang
<t4nk783> Need some help. BMI = mass/(height**2).round(1) doesn't round to one decimal. It changes them from 19.390581717451525 to 19.44444444444443.
mistym has quit [Remote host closed the connection]
<t4nk783> The numbers are floats.
solars has quit [Ping timeout: 246 seconds]
<apeiros> t4nk783: which number does that round?
<yorickpeterse> apeiros: heh
<t4nk783> The float 19.390581717451525
<apeiros> t4nk783: no
<apeiros> mass/(height**2).round(1) # <-- (height**2).round
<yorickpeterse> t4nk783: (mass/height**2).round(1)
<yorickpeterse> you're basically doing: float / rounded float
<apeiros> mass/(height**2).round(1) --> mass/((height**2).round(1)) # this is the order of execution
<t4nk783> Oh
<apeiros> yorickpeterse: any idea on how to proceed from there? I'm kinda lost
<t4nk783> BMI = (mass/(height**2)).round(1) made it work. THanks!
<apeiros> you probably want bmi, not BMI
<apeiros> variables starting with an uppercase letter are constants
<yorickpeterse> >> mass = 70.1231238897213; height = 9000.13289012389123; bmi = mass / height ** 2
yell0wgh0st has joined #ruby-lang
<eval-in> yorickpeterse => 8.656920138258261e-07 (https://eval.in/181376)
<yorickpeterse> >> mass = 70.1231238897213; height = 9000.13289012389123; bmi = mass / (height ** 2)
<eval-in> yorickpeterse => 8.656920138258261e-07 (https://eval.in/181378)
<yorickpeterse> ah ok so precedence is right
<yorickpeterse> so then you can do
ledestin_ has joined #ruby-lang
thomasxie has quit [Remote host closed the connection]
<yorickpeterse> >> mass = 70.1231238897213; height = 9000.13289012389123; bmi = (mass / height ** 2).round(1)
<eval-in> yorickpeterse => 0.0 (https://eval.in/181381)
<yorickpeterse> err
thomasxie has joined #ruby-lang
kwd has quit [Quit: Sleeping now. ZZZzzz…]
<yorickpeterse> >> mass = 70.1231238897213; height = 175.1239812938; bmi = (mass / height ** 2).round(1)
<eval-in> yorickpeterse => 0.0 (https://eval.in/181383)
<yorickpeterse> uh,
<yorickpeterse> >> mass = 70.1231238897213; height = 175.1239812938; bmi = ((mass / height) ** 2).round(1)
<eval-in> yorickpeterse => 0.2 (https://eval.in/181384)
<yorickpeterse> whatevah, something like that
<yorickpeterse> basically make sure you *only* round the final value
<yorickpeterse> if you round in between steps you'll lose precision
rahul_j has quit [Quit: rahul_j]
Siyfion has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 250 seconds]
ledestin_ is now known as ledestin
<apeiros> sob, I give up. no fusefs with ruby on osx for me today :(
ledestin has left #ruby-lang [#ruby-lang]
x0f_ has joined #ruby-lang
tylersmith has joined #ruby-lang
ledestin_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby-lang
<yorickpeterse> bok bok bok
x0f has quit [Ping timeout: 250 seconds]
pr0ton_ has joined #ruby-lang
ledestin_ is now known as ledestin
<apeiros> yorickpeterse: thanks for your time and the support!
mistym has joined #ruby-lang
ledestin has quit [Remote host closed the connection]
<yorickpeterse> bok bok
<yorickpeterse> :>
* yorickpeterse has no Unicode chicken sadly
workmad3 has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby-lang
<apeiros>
<apeiros> and that one
toastynerd has quit [Remote host closed the connection]
<apeiros>
Siyfion has joined #ruby-lang
centrx has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
<yorickpeterse> I see only nothingness
<yorickpeterse> I guess my font isn't cool enough
<yorickpeterse> or perhaps it's a goth font
<apeiros> seems like
karamazov has quit [Remote host closed the connection]
Hinkdogg___ has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
Dusty___ has joined #ruby-lang
pr0ton_ has quit [Quit: pr0ton_]
tbuehlmann has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit []
<t4nk783> Can I get some feedback please? I finished the BMI calculator. https://eval.in/181393
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby-lang
<jhass> t4nk783: you can write category = if and then just the strings in the bodies
apeiros has joined #ruby-lang
<t4nk783> Thanks. Unfortunately, I haven't taken the Codecademy course on classes yet.
solars has joined #ruby-lang
<t4nk783> Anything else that can be optimized? Is the grammar looking OK?
<centrx> Looks good
<centrx> Style changes for clarity and simplicity
<t4nk783> Should I add two spaces before elsif and else?
<t4nk783> G on
<jhass> no
<t4nk783> Go on
tylersmith has quit [Ping timeout: 264 seconds]
__butch__ has joined #ruby-lang
charliesome has quit [Quit: zzz]
<centrx> t4nk783, That gist I linked, it did use a method definition (def), but it also replaced your if-statement with a case-statement, replaced your strings with symbols, and removed the unnecessary setting of variables
<yorickpeterse> t4nk783: generally people write the body of if/elsif on a new line
<yorickpeterse> opposed to using `then`
<t4nk783> Yeah, I wondered about that.
<yorickpeterse> Also, print() doesn't emit a newline
<yorickpeterse> so any following terminal output will be on the same line
<t4nk783> Noted
<centrx> t4nk783, Here is something you can do without the method definition, at the bottom
<t4nk783> I'm listening
emmesswhy has joined #ruby-lang
<centrx> t4nk783, Your if-statement and my case-statement both return the value
thomasxie has quit [Ping timeout: 245 seconds]
<centrx> t4nk783, So instead of setting category = multiple times within the body of the if-statement, you can set category = the entire if-statement, after the if branches have been resolved
<centrx> t4nk783, This makes it clearer to read and so less potentially buggy, easier to add new features, for both yourself and others
ht_ has joined #ruby-lang
<t4nk783> Sorry, I didn't quite get that.
_ht has quit [Ping timeout: 250 seconds]
<centrx> t4nk783, Take a look at the bottom section of the gist
<centrx> under ## OR ##
<centrx> t4nk783, These three versions all have identical behavior, but they use different syntax and styles.
mkaesz has quit [Ping timeout: 244 seconds]
<t4nk783> Oh, I think I get it!
<t4nk783> Why do you use two # for comments? Isn't a single enough?
<centrx> t4nk783, Just makes it look like a more prominent header
shinnya has joined #ruby-lang
<t4nk783> Good to know.
<t4nk783> Thank you for your help!
rahul_j has joined #ruby-lang
bsvineeth has joined #ruby-lang
Miphix has quit [Quit: Leaving]
<centrx> You are welcome
bsvineeth has quit [Remote host closed the connection]
arBmind has quit [Quit: Leaving.]
RobertBirnie has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
Siyfion has quit []
ta has joined #ruby-lang
bsvineeth has joined #ruby-lang
michaeldeol has joined #ruby-lang
havenwood has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
rippa has joined #ruby-lang
charliesome has joined #ruby-lang
banister has joined #ruby-lang
wallerdev has joined #ruby-lang
sharpmachine has joined #ruby-lang
toastynerd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
karamazov has joined #ruby-lang
sdouglas has joined #ruby-lang
sdouglas has quit [Client Quit]
sdouglas has joined #ruby-lang
shinnya has quit [Ping timeout: 272 seconds]
qba73 has quit []
charliesome has quit [Quit: zzz]
yell0wgh0st has joined #ruby-lang
sporkmonger has joined #ruby-lang
sirish_ has quit [Ping timeout: 255 seconds]
vikasyaligar has joined #ruby-lang
benlovell has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Ping timeout: 264 seconds]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
omosoj has joined #ruby-lang
sporkmonger has quit [Quit: Poof!]
workmad3 has quit [Ping timeout: 245 seconds]
cmisenas has quit [Quit: cmisenas]
sporkmonger has joined #ruby-lang
mkaesz has joined #ruby-lang
mistym has joined #ruby-lang
sporkmonger has quit [Client Quit]
jimbach has quit [Ping timeout: 240 seconds]
mnngfltg has quit [Remote host closed the connection]
t4nk783 has quit [Quit: Page closed]
Hinkdogg___ has joined #ruby-lang
amsi has joined #ruby-lang
WeierstrassP has joined #ruby-lang
mkaesz has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
bsvineeth has quit [Remote host closed the connection]
bsvineeth has joined #ruby-lang
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has quit [Ping timeout: 250 seconds]
relix has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
apeiros has joined #ruby-lang
relix has quit [Client Quit]
relix has joined #ruby-lang
gjaldon has joined #ruby-lang
michaeldeol has joined #ruby-lang
Squarepy has joined #ruby-lang
saarinen has joined #ruby-lang
cmisenas has joined #ruby-lang
wallerdev has joined #ruby-lang
solars has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby-lang
Meta5 has quit [Quit: Meta5]
Meta5 has joined #ruby-lang
tylersmith has joined #ruby-lang
WeierstrassP has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
wallerdev_ has joined #ruby-lang
wallerdev has quit [Ping timeout: 260 seconds]
wallerdev_ is now known as wallerdev
Mon_Ouie has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
diegoviola has quit [Ping timeout: 255 seconds]
AKASkip has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stamina has quit [Quit: WeeChat 0.4.3]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
Lewix has joined #ruby-lang
hahuang65 has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
futilegames has quit [Quit: futilegames]
joel_ has joined #ruby-lang
joel_ is now known as curiouscain
<curiouscain> Hey anyone able to give me some advice?
<apeiros> curiouscain: save money
<yxhuvud> sure. Sausages are nice.
michaeldeol has joined #ruby-lang
<curiouscain> You know what I mean
<yxhuvud> don't ask to ask questions - ask your questions
<apeiros> actually, I don't (yet)
djbkd has joined #ruby-lang
<curiouscain> I've got a technical test for an interview in the morning. What parts of ruby do you recommend me brushing up on? Bear in mind that I'm a dev and I use ruby relatively often, but I've never had to take a technical test for a ruby job before
<apeiros> when we tested, I checked knowledge of common core methods first
<apeiros> String, Symbol, Array, Hash, Enumerable, Comparable being probably the most important
<yxhuvud> the object model is good to know as well.
wallerdev_ has joined #ruby-lang
<curiouscain> Alright
wallerdev has quit [Ping timeout: 272 seconds]
wallerdev_ is now known as wallerdev
<yxhuvud> if it is a rails gig, then I'd brush up on that as well if that is necessary
<curiouscain> Is there anything possibly obscure but useful that I should make sure I know?
<curiouscain> Yeah, it's a rails job (junior)
<apeiros> I find questions for obscure knowledge suspicious
<curiouscain> Why's that?
<apeiros> because it's 99% useless knowledge
<yxhuvud> brushing up on obscure things is likely a waste of time
<apeiros> it's not what makes you productive
<curiouscain> I understand that, I just get edgy when I don't know what I'm going to be tested on
<apeiros> sure. but arcane knowledge is a test for when you checked in as skill level guru
<curiouscain> Alright then, so for a junior level, the things you mentioned should suffice?
<apeiros> no, those are the things you should be solid in
<curiouscain> Those are things I know how to use in Ruby, currently
<apeiros> re rails: know active record (relations, scopes, finders, where/order/limit), know routing, templates and partials. project layout.
<yxhuvud> migrations!
<curiouscain> I'm familiar with rails basics, however the technical test (and interview, as far as I've been told) doesn't include any rails knowledge
workmad3 has joined #ruby-lang
<apeiros> ok
momomomomo has quit [Quit: momomomomo]
<curiouscain> Thanks for the help
ntrophimov has joined #ruby-lang
<ntrophimov> Hi all!
<ntrophimov> Is anyone here?
<curiouscain> I am
<jhass> ntrophimov: no, just bots here
<apeiros> no, anyone is not currently in the channel
pr0ton_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
torrieri has quit [Quit: Leaving...]
ntrophimov was kicked from #ruby-lang by apeiros [so somebody even tells you to tell in all channels that you are cross-posting - I haven't seen you doing that…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
dwknoxy is now known as dknox-lunch
Lewix has joined #ruby-lang
pr0ton_ has quit [Quit: pr0ton_]
hellangel7 has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby-lang
Lewix has quit [Ping timeout: 246 seconds]
yell0wgh0st has quit [Quit: yell0wgh0st]
jbardin has joined #ruby-lang
skade has joined #ruby-lang
PsionTheory has joined #ruby-lang
skade_ has joined #ruby-lang
skade has quit [Ping timeout: 260 seconds]
ddv has joined #ruby-lang
gjaldon has quit []
tbuehlmann has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
Mopman has quit [Quit: WeeChat 0.3.7]
skade_ has quit [Quit: Computer has gone to sleep.]
futilegames has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
sepp2k has quit [Quit: Konversation terminated!]
miqui has quit [Read error: Connection reset by peer]
sharpmachine has quit [Remote host closed the connection]
Hinkdogg___ has quit [Quit: Computer has gone to sleep.]
bsvineeth has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
loincloth has joined #ruby-lang
bsvineeth has joined #ruby-lang
bsvineeth has quit [Read error: Connection reset by peer]
bsvineeth has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
curiouscain has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lsegal has joined #ruby-lang
pkrnj has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dknox-lunch is now known as dknox
banister has joined #ruby-lang
michaeldeol has joined #ruby-lang
nhjk has joined #ruby-lang
mistym has joined #ruby-lang
momomomomo has joined #ruby-lang
miqui has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Lewix has joined #ruby-lang
foucist has joined #ruby-lang
yell0wgh0st has quit [Quit: yell0wgh0st]
centrx has quit [Quit: Mead error: Connection reset by beer]
alexju_ has joined #ruby-lang
<foucist> anyone know of a good way to pick 10 random items from a large collection of items, such that each pick is unlikely to have a repeat item?
<foucist> some kind of hashing function ?
alexju has quit [Ping timeout: 260 seconds]
<jhass> foucist: .sample(n)
vikasyaligar has quit [Remote host closed the connection]
<foucist> jhass: yeah but there's nothing that minimizes the chance of a repeat
Hinkdogg___ has joined #ruby-lang
<jhass> foucist: "The elements are chosen by using random and unique indices into the array in order to ensure that an element doesn’t repeat itself unless the array already contained duplicate elements."
<Squarepy> we have a winner
<pipework> TFM just got R'd
<foucist> jhass: the Array is generated new each time though
<foucist> every .sample is on a newly generated array
<foucist> which is likely to have many of the same ids
<pipework> foucist: Build up a single array then?
<jhass> then combine the arrays first or sample until you got an element not yet in the collected objects
<foucist> pipework: nah this is a daily cronjob thing, already keeping a list of ids around in redis, trying to stop that completely :P
<pipework> foucist: Why keep them in memory that long?
<pipework> Something.pluck(:id).sample(n) or so
jimbach has joined #ruby-lang
torrieri has joined #ruby-lang
kwd has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
adphillips has joined #ruby-lang
_sillymarkets has joined #ruby-lang
<_sillymarkets> Anyone work with Viewpoint gem before?
toastynerd has quit [Remote host closed the connection]
cmckee has joined #ruby-lang
amsi has quit [Ping timeout: 264 seconds]
sharpmachine has joined #ruby-lang
mistym has joined #ruby-lang
toastynerd has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby-lang
mistym has quit [Remote host closed the connection]
nofxx__ has quit [Read error: Connection reset by peer]
jeff_r has joined #ruby-lang
yell0wgh0st has joined #ruby-lang
wallerdev has joined #ruby-lang
Meta5 has quit [Quit: Meta5]
postmodern has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
mistym has joined #ruby-lang
benlovell has joined #ruby-lang
sepp2k has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
_sillymarkets has quit [Ping timeout: 246 seconds]
cmckee_ has joined #ruby-lang
cmckee has quit [Ping timeout: 244 seconds]
cmckee_ is now known as cmckee
Meta5 has joined #ruby-lang
postmodern has quit [Ping timeout: 255 seconds]
benlovell has quit [Ping timeout: 260 seconds]
tylersmith has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby-lang
cmisenas has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Meta5 has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Meta5 has joined #ruby-lang
jarto has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
Squarepy has quit [Quit: Leaving]
bsvineeth has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
jarto has quit [Client Quit]
r0bby_ has joined #ruby-lang
postmodern has joined #ruby-lang
Meta5 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
robbyoconnor has quit [Read error: No route to host]
jbardin has quit [Quit: jbardin]
kwd has quit [Quit: Sleeping now. ZZZzzz…]
tylersmith has quit [Read error: Connection reset by peer]
mustmodify has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mustmodify> I'm doing some work building a list of universities and their logos. It could easily be open-sourced and put into a gem but I would need a portable data source, preferably with search capabilities. I was thinking sqlite... any thoughts? Anyone know of a gem doing something similar?
tylersmith has joined #ruby-lang
mistym has quit [Remote host closed the connection]
karamazov has quit [Remote host closed the connection]
<foucist> is it just urls to university & to logo ?
<foucist> could store it in yaml form
<mustmodify> that's the $.25 tour... but one of the big issues is matching freetext names. For instance, "University of Florida Medical School" -> University of Florida. UF => University of Florida.
_lexjm has joined #ruby-lang
<mustmodify> Three things about using a json file. 1. I've done that before with good results. 2. I worry that I'm not being a good citizen in doing that as part of a gem because a list of universities would be longish, and all that would have to sit in memory, which seems wasteful. But sometimes I overthink things, so feel free to tell me I'm overthinking. 3. Seems like it would be easier to do matching with a database, and, if I understand SQLite correctly, it d
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
michaeldeol has joined #ruby-lang
PsionTheory has quit [Remote host closed the connection]
<wallerdev> how much memory could a list of universities take up lol
mistym has joined #ruby-lang
<mustmodify> fine, I was just trying not to be the problem.
Hinkdogg___ has quit [Quit: Computer has gone to sleep.]
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 255 seconds]
ht_ has quit [Remote host closed the connection]
nhjk has quit []
bin7me has quit [Read error: Connection reset by peer]
amsi has joined #ruby-lang
Meta5 has joined #ruby-lang
Meta5 has quit [Client Quit]
solars has quit [Ping timeout: 240 seconds]
jbardin has joined #ruby-lang
ur5us has joined #ruby-lang
Squarepy has joined #ruby-lang
brothmars has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
elia has joined #ruby-lang
pr0ton_ has joined #ruby-lang
pr0ton_ has quit [Client Quit]
pr0ton_ has joined #ruby-lang
sdouglas has quit [Read error: Connection reset by peer]
sdouglas_ has joined #ruby-lang
Meta5 has joined #ruby-lang
elia has quit [Ping timeout: 264 seconds]
pr0ton_ has quit [Ping timeout: 272 seconds]
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 255 seconds]
ldnunes has quit [Quit: Leaving]
Meta5 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
enebo has quit [Quit: enebo]
futilegames has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
sharpmachine has quit [Remote host closed the connection]
futilegames_ has quit [Ping timeout: 244 seconds]
tylersmith has quit [Ping timeout: 272 seconds]
fusillicode has quit [Ping timeout: 255 seconds]
foucist has quit [Quit: leaving]
Meta5 has joined #ruby-lang
tylersmith has joined #ruby-lang
enebo has joined #ruby-lang
Meta5 has quit [Client Quit]
dorei has quit [Read error: Connection reset by peer]
cmisenas has quit [Quit: cmisenas]
eddiezane_zzz is now known as eddiezane
sharpmachine has joined #ruby-lang
Meta5 has joined #ruby-lang
Meta5 has quit [Client Quit]
futilegames has quit [Ping timeout: 260 seconds]
dorei has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
pr0ton_ has joined #ruby-lang
pr0ton_ has quit [Client Quit]
brixen has quit [Excess Flood]
brixen has joined #ruby-lang
AKASkip has quit [Ping timeout: 245 seconds]
loincloth has quit [Remote host closed the connection]
specialblend has joined #ruby-lang
workmad3 has joined #ruby-lang
eddiezane is now known as eddiezane_zzz
cmhobbs has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pkrnj has joined #ruby-lang
yubrew has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 255 seconds]
adphillips has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
centrx has joined #ruby-lang
Sgeo has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
centrx has quit [Client Quit]
jeff_r has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
specialblend has quit [Quit: specialblend]
Meta5 has joined #ruby-lang
Meta5 has quit [Client Quit]
eddiezane_zzz is now known as eddiezane
eddiezane is now known as eddiezane_zzz
yubrew has joined #ruby-lang
amerine has joined #ruby-lang
amerine_ has quit [Quit: Textual IRC Client: www.textualapp.com]
yubrew has quit [Ping timeout: 255 seconds]
dm78 has quit [Remote host closed the connection]
cmckee has quit [Ping timeout: 250 seconds]
amerine has quit [Quit: sleep]
__butch__ has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sMecKs has joined #ruby-lang
Meta5 has joined #ruby-lang
MichD is now known as michd
Meta5 has quit [Client Quit]
brothmars has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
yell0wgh0st has quit [Quit: yell0wgh0st]
apeiros has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
imperator has joined #ruby-lang
<imperator> howdy
pr0ton_ has joined #ruby-lang
marr has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby-lang
pr0ton_ has quit [Client Quit]
sdouglas_ has quit [Remote host closed the connection]
sdouglas has joined #ruby-lang
pr0ton_ has joined #ruby-lang
yubrew has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
sdouglas has quit [Ping timeout: 245 seconds]
Caius has quit [Ping timeout: 244 seconds]
EvilJStoker has quit [Ping timeout: 244 seconds]
saarinen has quit [Quit: saarinen]
havenwood has quit [Remote host closed the connection]
EvilJStoker has joined #ruby-lang
karamazov has joined #ruby-lang
llakey has quit [Ping timeout: 244 seconds]
marcel has quit [Ping timeout: 244 seconds]
mfn has quit [Ping timeout: 244 seconds]
pr0ton_ has quit [Quit: pr0ton_]
marcel has joined #ruby-lang
jamooo_ has quit [Ping timeout: 244 seconds]
llakey has joined #ruby-lang
jamooo has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
musl has quit [Ping timeout: 244 seconds]
nertzy has joined #ruby-lang
Caius has joined #ruby-lang
tkuchiki has joined #ruby-lang
<zenspider> everyone: what's your average time per test?