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
yatish27 has quit [Remote host closed the connection]
<frank_o> centrx: #validations, #fetch, #parse and #format maybe?
<frank_o> should probably create a new gist for this
<centrx> frank_o, Sure, yes
<centrx> frank_o, Note also, everywhere you define a local variable: response =, raw_hashes =, validated_hashes =
<centrx> frank_o, You already have the names and all set, just reorganize them into methods, it's almost just a renaming/resyntaxing: response = turns into def response
<centrx> frank_o, So there is the big-scale conceptual names, and then there are actually names you are already using, but are often clearer as separated methods
aleatorik has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesfordummies has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
yatish27 has joined #ruby-lang
jamesfordummies has quit [Client Quit]
<frank_o> centrx: Very cool
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 260 seconds]
<frank_o> when i glance over the ruby the pros are doing its true it's all very methody
<frank_o> now mine is getting like that too yay!
ddv has quit [Ping timeout: 260 seconds]
<pipework> That's because our lord and saviour, Alan Kay, said OO is about message passing.
kith has quit [Read error: Connection reset by peer]
ddv has joined #ruby-lang
<frank_o> hehe
kith has joined #ruby-lang
amclain has quit [Quit: Leaving]
pr0ton__ has joined #ruby-lang
karamazov has quit [Ping timeout: 264 seconds]
karamazov has joined #ruby-lang
mistym has joined #ruby-lang
RobertBirnie has joined #ruby-lang
Lingo__ has joined #ruby-lang
toretore has joined #ruby-lang
shinnya has joined #ruby-lang
emmesswhy has joined #ruby-lang
aleatorik has joined #ruby-lang
symm- has quit [Ping timeout: 250 seconds]
tkuchiki has quit [Ping timeout: 264 seconds]
momomomomo has joined #ruby-lang
aleatorik has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
<frank_o> centrx: so then all methods should be chained together in the controller? ie. https://gist.github.com/frankie-loves-jesus/5fc2b475b732db5a6840
<centrx> frank_o, I would make a nice public method on ThirdPartyProducts that is just one method call, like #process or #get_it_all_dude
<centrx> frank_o, Then that method can do a nice fetch.parse.iterate.shuffle if that is how your code ends up
haraoka has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
tkuchiki has joined #ruby-lang
<frank_o> centrx: I think initially fetch was intended to be such a nice public method -- https://gist.github.com/frankie-loves-jesus/89d24dd88579c7f912f3#comment-1258555
djbkd has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quitte]
djbkd has joined #ruby-lang
<frank_o> sorry im just super confused right now
<frank_o> too much coffee, not enough sleep
djbkd has quit [Ping timeout: 240 seconds]
Miphix has joined #ruby-lang
amystephen has quit [Quit: amystephen]
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 272 seconds]
macsplean1 has joined #ruby-lang
arBmind1 has quit [Client Quit]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
macsplean1 has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
Lingo__ has quit [Quit: Lingo - http://www.lingoirc.com]
amystephen has joined #ruby-lang
djbkd has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
davispuh has quit [Ping timeout: 245 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby-lang
haraoka has quit [Ping timeout: 244 seconds]
snsei has joined #ruby-lang
mistym_ has joined #ruby-lang
amystephen has quit [Quit: amystephen]
mistym has quit [Ping timeout: 240 seconds]
bin7me has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
ti-wali___ has joined #ruby-lang
ti-wali has quit [Ping timeout: 240 seconds]
Cakey has joined #ruby-lang
koderok has joined #ruby-lang
koderok has quit [Read error: Connection reset by peer]
koderok has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
ti-wali___ has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
bffff_ has joined #ruby-lang
Cakey has quit [Ping timeout: 250 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
tectonic has quit []
Angelo_ has joined #ruby-lang
<Angelo_> First time joining this room. Is it active?
<centrx> Ahoy
<centrx> Angelo_, This channel is active, but #ruby is also an active channel and #rubyonrails too
<Angelo_> Cool, thanks for the heads up
diegoviola has joined #ruby-lang
<pipework> That's not to say that any and/or all of them are rubbish though.
<Angelo_> Already got my first spam message.
djbkd has quit [Remote host closed the connection]
weems|mac has joined #ruby-lang
saarinen has joined #ruby-lang
snsei has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
<yatish27> Yes Very active
djbkd has joined #ruby-lang
thomasxie has joined #ruby-lang
nertzy has joined #ruby-lang
havenwood has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
koderok has quit [Quit: koderok]
chouhoulis has quit [Remote host closed the connection]
Angelo_ has quit [Quit: Angelo_]
centrx has quit [Quit: Mead error: Connection reset by beer]
michaeldeol has joined #ruby-lang
momomomomo has joined #ruby-lang
frank_o has quit [Ping timeout: 245 seconds]
snsei has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Quit: momomomomo]
frank_o has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
snsei has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby-lang
gix has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
tkuchiki has quit [Ping timeout: 250 seconds]
heftig has quit [Ping timeout: 260 seconds]
saarinen has quit [Quit: saarinen]
heftig has joined #ruby-lang
koderok has joined #ruby-lang
mjboselowitz has joined #ruby-lang
yatish27_ has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
yatish27 has quit [Ping timeout: 264 seconds]
InfraRuby has left #ruby-lang [#ruby-lang]
yatish27_ has quit [Ping timeout: 260 seconds]
weems|mac has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
snsei has joined #ruby-lang
tkuchiki has joined #ruby-lang
macsplean1 has joined #ruby-lang
thomasxie has quit [Quit: Leaving.]
pr0ton__ has quit [Quit: pr0ton__]
tectonic has joined #ruby-lang
tectonic has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rogerhub has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
AKASkip has joined #ruby-lang
koderok has quit [Quit: koderok]
ur5us_ has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
dm78 has quit [Remote host closed the connection]
rogerhub has left #ruby-lang [#ruby-lang]
ur5us has quit [Ping timeout: 245 seconds]
mistym has joined #ruby-lang
dm78 has joined #ruby-lang
dm78 has quit [Remote host closed the connection]
pr0ton__ has joined #ruby-lang
charliesome has joined #ruby-lang
macsplean1 has quit [Read error: Connection reset by peer]
koderok has joined #ruby-lang
tectonic has joined #ruby-lang
snsei has quit [Remote host closed the connection]
snsei has joined #ruby-lang
macsplean1 has joined #ruby-lang
<macsplean1> anyone know why 11.to_s.chars.class shows Array in IRB but Enumerator when I run it in Sublime Text?
S1kx has quit [Quit: Leaving]
_ht has joined #ruby-lang
ur5us_ has quit [Remote host closed the connection]
snsei has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby-lang
<pipework> macsplean1: Why are you running code in sublimetext?
<pipework> that's a weird one
<macsplean1> pipwork because it's easy to just press ctr+b and have it run ... i realized they may be running a different version\
<macsplean1> pipework
<pipework> probably are
<pipework> I wouldn't know, I've used it but never spent time configuring it as it was mostly on other people's machines.
diegoviola has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has quit [Quit: Quitting]
AKASkip has quit [Ping timeout: 264 seconds]
mathias1 has joined #ruby-lang
tectonic has quit []
mathias1 has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dm78 has joined #ruby-lang
dm78 has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
ur5us_ has joined #ruby-lang
ur5us has quit [Ping timeout: 240 seconds]
ur5us_ has quit [Ping timeout: 244 seconds]
Mon_Ouie has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
jamesfordummies has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.3]
yfeldblu_ has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
djbkd has quit [Quit: My people need me...]
nofxx_ has quit [Ping timeout: 264 seconds]
tectonic has joined #ruby-lang
Cakey has joined #ruby-lang
arBmind has joined #ruby-lang
apeiros_ has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
weems|mac has quit [Quit: weems|mac]
apeiros_ has quit [Remote host closed the connection]
tectonic has quit []
emmesswhy has quit [Quit: Leaving]
macsplean1 has quit [Quit: Leaving]
dm78 has joined #ruby-lang
nofxx_ has joined #ruby-lang
nofxx_ has joined #ruby-lang
dm78 has quit [Ping timeout: 250 seconds]
pr0ton__ has quit [Quit: pr0ton__]
clauswitt has joined #ruby-lang
mistym has quit [Remote host closed the connection]
jhass|off is now known as jhass
Forgetful_Lion has joined #ruby-lang
vondruch has joined #ruby-lang
jamesfordummies has quit [Remote host closed the connection]
thomasxie has joined #ruby-lang
chouhoulis has joined #ruby-lang
caaaaaaa has quit [K-Lined]
solars has joined #ruby-lang
chouhoulis has quit [Ping timeout: 264 seconds]
solars has quit [Client Quit]
solars has joined #ruby-lang
joast has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
tbuehlmann has joined #ruby-lang
zarubin has joined #ruby-lang
<matti> apeiros: Ohai
<apeiros> matti, the ohaibot
<apeiros> hi matti
<matti> apeiros: How's your Llama?
<apeiros> it's spitting fine
<matti> Good good
<apeiros> and yours?
ta has joined #ruby-lang
<matti> apeiros: Not bad ;)
dm78 has joined #ruby-lang
dm78 has quit [Ping timeout: 240 seconds]
Cakey has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
ironhide_604 has joined #ruby-lang
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cakey has joined #ruby-lang
qba73 has joined #ruby-lang
hellangel7 has joined #ruby-lang
sMecKs has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
arBmind has quit [Quit: Leaving.]
hellangel7 has joined #ruby-lang
fullybaked has joined #ruby-lang
|jemc| has quit [Ping timeout: 250 seconds]
r0bby_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 244 seconds]
InfraRuby has joined #ruby-lang
arBmind has joined #ruby-lang
michd is now known as MichD
toastynerd has joined #ruby-lang
koderok has quit [Quit: koderok]
koderok has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
davispuh has joined #ruby-lang
dm78 has joined #ruby-lang
<yorickpeterse> morning fleshlings
dm78 has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
<maloik> morning master
* yorickpeterse cracks whip
S1kx has joined #ruby-lang
Atttwww has quit [Ping timeout: 245 seconds]
ari-_-e has joined #ruby-lang
banister has joined #ruby-lang
zarubin has quit []
benlovell has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<yorickpeterse> So every Monday morning we have a sort of standup about what people's goals are for the week
<yorickpeterse> Usually people have like 1-2 things they want to do
koderok has quit [Quit: koderok]
<yorickpeterse> I had 5 that I could remember, in total taking probably around 3 weeks of time
<yorickpeterse> (I knew I had more but I couldn't remember during the meeting)
<yorickpeterse> I sense something is a bit off here
vikasyaligar has joined #ruby-lang
marr has joined #ruby-lang
<maloik> :D
wojtekmach has joined #ruby-lang
stamina has joined #ruby-lang
frank_o has quit [Ping timeout: 260 seconds]
r0bby_ is now known as robbyoconnor
workmad3 has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
elia has quit [Quit: Computer has gone to sleep.]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby-lang
<maloik> anyone here used ruby-progressbar with multiple processes? I used a global variable for the progressbar object, but it looks like it's tracking the progress in X different duplicates of the object causing it to flicker on screen and completing in "estimated time / X"
<maloik> if that makes sense
<existensil> multiple processes? do you mean multiple threads maybe?
<maloik> processes
<existensil> a global in one process would still not be visible to others
<maloik> in threads it does seem to work
<maloik> hmm... is there any way around it?
<existensil> how are you sharing state? or are both processes just trying to own STDOUT?
<existensil> how are you even sharing STDOUT?
dm78 has joined #ruby-lang
<workmad3> maloik: with processes, you'd need a master process to handle tracking the progress bar and then you'd need to use signals or some other form of IPC to communicate updates back to the master process to update the state on the screen
<existensil> right. only one process should own the progressbar
<maloik> makes sense, I'll look up IPC
<workmad3> ('master' process in this case just meaning a process that is handling integrating the state of all the other processes)
<workmad3> maloik: inter-process communication
<workmad3> maloik: a.k.a. a defined interface to talk over
dm78 has quit [Read error: No route to host]
banister has joined #ruby-lang
dm78 has joined #ruby-lang
<yorickpeterse> maloik: you muppet
<yorickpeterse> maloik: you have multiple processes fighting over your terminal output, each one resetting it every time you increment the progress
<yorickpeterse> it's like 10 people constantly trying to turn off/on the lights
<maloik> yea I realized what was causing it, or had a good idea anyway... just wasn't sure of how to work around it
<yorickpeterse> either you have to synchronize it (= have 1 process handle all the progress info), or just write "." to the console
<yorickpeterse> also use threads bra
<maloik> processes is faster apparently
<maloik> even tried 4 processes and 4 threads in combination but that didn't make any difference, in fact it was slower than 4 processes
<yorickpeterse> What Ruby, MRI?
<maloik> (just realized I should check what their default is)
<maloik> yep
<maloik> using the parallel gem
<yorickpeterse> ....yeahhhh
<yorickpeterse> use a real Ruby
<yorickpeterse> The GIL will slap you in the face with a trout otherwise
<yorickpeterse> "NO CONCURRENCY FOR YOU"
elia has joined #ruby-lang
<yorickpeterse> Also make sure that if your DB driver uses a connection pool you have enough pool workers available
<yorickpeterse> Typically I'd go with pool_size = N-threads + 5
<yorickpeterse> 5 is totally arbitrary btw
<yorickpeterse> But it's just a backup in case one pool worker gets stuck for some reason
<DefV> that's the best way to do pool size
<DefV> totally arbitrary
dm78 has quit [Ping timeout: 272 seconds]
<DefV> "Hmm, 9 doesn't seem enough. Let's make it 14"
<yorickpeterse> well yeah
<yorickpeterse> I'll have none of that science/research stuff
<yorickpeterse> get off ma lawn
<DefV> labcoat-wearing hippies!
<maloik> nah I just need to speed this up the easy way, not going to go use "real rubies"
<yorickpeterse> the worst kind of hippies
<yorickpeterse> maloik: enjoy shooting yourself in the foot then
<yorickpeterse> unless your code is super tied into MRI, it's just a matter of `chruby rbx / chruby jruby`
<maloik> it's an import script that will only get run a couple times at most, there's no point in going jruby
<maloik> if it takes an hour then that's completely fine too, but I don't mind a little effort to perhaps speed things up a bit
<yorickpeterse> well, you're already going down the route of shooting yourself with processes
<DefV> how's jruby with c exts?
<yorickpeterse> DefV: non existing
<yorickpeterse> They dropped it
<yorickpeterse> I think you can still enable it with some flag but it will scream at you
<DefV> that kills my possibility to use jruby
<yorickpeterse> and it will be fully removed in JRuby 9000 if I'm not mistaken
<DefV> and I've always thought of rubunius as an experiment, not really an environment ready for production
<benlovell> oh dear
<yorickpeterse> DefV: apparently you thought wrong
<existensil> you can do lots of concurrency in MRI... assuming your threads aren't doing their heavy lifting and ruby and are spending most of their time blocking on external resources (db, http, other IO, external processes, etc)
<yorickpeterse> Unless you're using Nokogiri it's quite suitable
<DefV> well..
<yorickpeterse> existensil: ugh, this is almost becoming a mantra everybody preaches
<DefV> # XML Parsing
<DefV> gem 'nokogiri'
<yorickpeterse> "BUT IT'S FINE IF IT'S BLOCKING IO!!!!"
<DefV> :-(
<yorickpeterse> It still has a GIL, anything else is going to suck
<yorickpeterse> DefV: lemme dig up this issue
<existensil> for a surprising number of use cases where people use threads in a language like ruby, you are blocking
<yorickpeterse> existensil: and for a surprising number of cases this is not the case
<existensil> i'd question that
<yorickpeterse> existensil: start digging numbers then
<yorickpeterse> Threads certainly are really useful for IO, but there are plenty of cases where you want concurrency without doing IO stuff
ur5us has quit [Remote host closed the connection]
<yorickpeterse> e.g. think of a multi-threaded grep: IO is only a small part, the heavy stuff is searching a file's contents
<existensil> its true. just not ready to throw out the concept of threads just because I'm using MRI
<yorickpeterse> In case of MRI the actual reading could happen in parallel, the searching would not
<yorickpeterse> existensil: I'm not saying you should throw it out
<existensil> you did say "NO CONCURRENCY"
<yorickpeterse> I'm saying that if you want *proper* concurrency and you've actually noticed MRI doesn't gain you anything (as I can gather from maloik), look elsewhere
<maloik> what do you mean doesnt gain anything, I just told you it does speed it up
<yorickpeterse> maloik: "even tried 4 processes and 4 threads in combination but that didn't make any difference, in fact it was slower than 4 processes"
<yorickpeterse> ^ from that I gather that apparently the 4 threads are useless
<DefV> or you're doing it wrong
<DefV> :-D
<maloik> as compared to 4 processes, yes
<existensil> 4 threads slower than 4 processes isn't surprising if MRI, but faster than 1 thread/process
<maloik> ^
<yorickpeterse> which means either: 1) GIL 2) you're doing it wrong
<maloik> possibly GIL, but it's still faster than 1 process
<existensil> Add in the massive memory savings of threads and in many cases MRI threads look attractive
<existensil> (vs processes)
<workmad3> existensil: CoW
<maloik> this thing doesn't need to be zomg webscale
<yorickpeterse> workmad3: still leaves you with overhead you don't need
<DefV> EVERYTHING needs to be zomg webscale
<yorickpeterse> also CoW isn't a guarantee
<DefV> or at least, everything needs to consider that, 1 day, some idiot wants to scale it to 1M users
<DefV> and they won't take "That's a stupid idea" for an anwser
<existensil> CoW ?
<yorickpeterse> copy-on-write
<existensil> ah
<existensil> yeah, ideally you don't pay the full price to fork a process, but the overhead is above that of a thread
<yorickpeterse> e.g. I'm not sure if JRuby has CoW
<yorickpeterse> Since you can't fork() I doubt it
<yorickpeterse> well technically you *can* fork(), sort of
jhass is now known as jhass|off
<existensil> also easier to share data between threads than processes
<workmad3> existensil: yeah, I take that as a bad thing personally ;)
<yorickpeterse> but threads are scary!
<existensil> doesn't matter I guess above a certain scale since you'll need IPC regardless
<existensil> I gave a talk on threads at a local meetup recently so kind of jazzed about them
<existensil> they are under-utilized by ruby developers I feel like
<yorickpeterse> You can blame that on the lack of proper primitives for that in MRI
<yorickpeterse> and the GIL
<yorickpeterse> Same applies to for example Python
Miphix has quit [Quit: Leaving]
<existensil> seems like threading is pretty common in Python despite the GIL
<existensil> in CPython. of course pypy has real threads.
<workmad3> real threads doesn't prohibit a GIL
<workmad3> e.g. ruby 1.9+
<existensil> right, they are real OS level threads in MRI
<yorickpeterse> workmad3: The GIL still prohibits them from running in parallel
<existensil> just all but one are put to sleep by MRI
<yorickpeterse> except for the cases where MRI decides to *do* run them in parallel
<yorickpeterse> Either way, if MRI had at least proper primitives (actors, channels, all that stuff) I'm pretty sure it would be a lot more heavily used
<yorickpeterse> It also requires people to pull their heads out of their arses and stop thinking threads are super scary and difficult to use
<workmad3> yeah, I'd love it if ruby had decent higher-level concurrency primitives
<existensil> what you looking for?
<workmad3> existensil: actors would be a nice start
<existensil> maybe they should be in the stdlib, but they are at least available
<workmad3> then you can essentially not give a shit if your new actor is spawned on a separate thread or a new process, you talk to it the same
<yorickpeterse> existensil: did you not read the part where I said "MRI"
<yorickpeterse> I meant as a language feature, not some Gem bolted on top of it
<existensil> right
<yorickpeterse> At the very least it should've been taken into consideration during the design
<existensil> it feels like Fiber was an attempt to have that lightweight concurrency but no one seems to use them. they don't seem to be very useful.
<workmad3> existensil: I used them quite extensively in an event-machine based project I worked on a while back
<existensil> I guess additional primitives are missing
<existensil> LOL
<existensil> Fibur = Thread
<existensil> tenderlove is a genius
concernedcitizen has joined #ruby-lang
KillerFox has quit [Ping timeout: 250 seconds]
concernedcitizen has quit [Changing host]
concernedcitizen has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
clauswitt has joined #ruby-lang
clauswitt has quit [Max SendQ exceeded]
clauswitt has joined #ruby-lang
danijoo_ is now known as danijoo
concernedcitizen has quit [Remote host closed the connection]
spastorino has joined #ruby-lang
clauswit_ has joined #ruby-lang
clauswitt has quit [Ping timeout: 272 seconds]
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_elia has joined #ruby-lang
elia has quit [Ping timeout: 250 seconds]
dm78 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dm78 has quit [Ping timeout: 264 seconds]
banister has joined #ruby-lang
banister has quit [Client Quit]
yfeldblum has joined #ruby-lang
KillerFox has joined #ruby-lang
ur5us has joined #ruby-lang
sepp2k has joined #ruby-lang
alexju has joined #ruby-lang
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby-lang
<yorickpeterse> There, 62 comments for an internal PR
tkuchiki_ has joined #ruby-lang
<yorickpeterse> Signed by the lovely, local office pedant yorickpeterse
faces has joined #ruby-lang
face has quit [Ping timeout: 250 seconds]
koderok has joined #ruby-lang
<workmad3> YFNOP
Fushi has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
<yorickpeterse> wut
clauswitt has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 255 seconds]
<workmad3> yorickpeterse: your friendly neighbourhood office pedant
<DefV> how big was the commit?
<yorickpeterse> Ah
<yorickpeterse> DefV: "Showing 22 changed files with 8,235 additions and 97 deletions."
vikasyaligar has quit [Remote host closed the connection]
<yorickpeterse> Note a large portion of that are fixture files
wojtekmach has quit [Quit: Page closed]
<yorickpeterse> A lot of notes are typos, writing styles of documentation, etc
<DefV> 8235 additions
* DefV dies
dingus_khan has quit [Remote host closed the connection]
Miphix has joined #ruby-lang
charliesome has joined #ruby-lang
sarkyniin has joined #ruby-lang
<yorickpeterse> about 6000 of those are for the fixture files, which are modest HTML files
<yorickpeterse> 412 kb of HTML
<yorickpeterse> inb4 VCR, no
ur5us has quit [Remote host closed the connection]
clamstar has quit [Ping timeout: 250 seconds]
bin7me has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
postmodern has quit [Quit: Leaving]
momomomomo has joined #ruby-lang
ironhide_604 has quit [Ping timeout: 260 seconds]
clamstar has joined #ruby-lang
ldnunes has joined #ruby-lang
ironhide_604 has joined #ruby-lang
charliesome has quit [Ping timeout: 250 seconds]
mjboselowitz has quit [Remote host closed the connection]
dm78 has joined #ruby-lang
charliesome has joined #ruby-lang
stardiviner has joined #ruby-lang
<stardiviner> What does the << in class << self ; end mean ? and what about in class << "string" ?
<Mon_Ouie> It means the same thing in both cases
dm78 has quit [Ping timeout: 240 seconds]
<Mon_Ouie> class << o; …; end opens o's singleton class
<stardiviner> Mon_Ouie: Does it means open the class ?
dingus_khan has joined #ruby-lang
<Mon_Ouie> Each (or most) object has its own class which is a subclass of the class it was instanced from
<Mon_Ouie> This allows you to define methods only for a specific object
<Mon_Ouie> Most often it is used with classes to define class methods
jhass|off is now known as jhass
<stardiviner> Mon_Ouie: I see. thanks
<maloik> If you want to use signals for something basic, do you usually define a new type of signal? If so, how?
<maloik> I've used USR1 now as a way of testing but I'm not sure on the best practices here
<maloik> couldn't seem to find much either while googling around
<yorickpeterse> maloik: SIGUSR1 and SIGUSR2 are user specific, you can do whatever you want with them (granted they're not already used)
dingus_khan has quit [Ping timeout: 264 seconds]
<yorickpeterse> Not sure if you can just define your own signal
jds has joined #ruby-lang
<whitequark> you can't
marr has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby-lang
<maloik> ok thanks
<yorickpeterse> matti: hit me some tunes
<yorickpeterse> Youtube keeps suggesting the same stuff I've already listened to
<yorickpeterse> it's an infinite loop of hip-hop beats D:
melter has quit [Ping timeout: 250 seconds]
<matti> yorickpeterse: Can't. Working on custmer' site.
<matti> yorickpeterse: YT blocked.
<matti> yorickpeterse: It's a bank ;s
<matti> I could look at something on my mobile.
<matti> Will poke you later ;]
Sgeo has quit [Read error: Connection reset by peer]
<yorickpeterse> pffft
<yorickpeterse> bankers
_elia has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby-lang
<jhass> yorickpeterse: spotify?
<yorickpeterse> jhass: Linux
<jhass> yes
<yorickpeterse> also I used Spotify in the past, didn't like it
banister has quit [Client Quit]
<jhass> radio function works quite well for me
<jhass> if you up and down vote here and there
scampbell has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby-lang
<maloik> yea I agree, I love that thing!
charliesome has joined #ruby-lang
melter has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
yfeldblu_ has quit [Ping timeout: 245 seconds]
<yorickpeterse> Hm, I think Youtube now suggested me something nice I hadn't listened to before
stef_204 has joined #ruby-lang
hellangel7 has quit [Read error: Connection reset by peer]
yalue has joined #ruby-lang
[spoiler] has joined #ruby-lang
bin7me has quit [Quit: WeeChat 0.4.3]
jperry has joined #ruby-lang
araujo has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
InfraRuby has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
mjboselowitz has joined #ruby-lang
yfeldblum has joined #ruby-lang
realDAB has joined #ruby-lang
mjboselowitz has quit [Read error: Connection reset by peer]
mjboselo_ has joined #ruby-lang
dm78 has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 246 seconds]
alexju has quit [Remote host closed the connection]
dm78 has quit [Ping timeout: 264 seconds]
dingus_khan has joined #ruby-lang
gianlucadv has quit [Ping timeout: 260 seconds]
alexju has joined #ruby-lang
koderok has quit [Ping timeout: 246 seconds]
gjaldon has joined #ruby-lang
crankharder has joined #ruby-lang
dingus_khan has quit [Ping timeout: 264 seconds]
alexju has quit [Ping timeout: 272 seconds]
jgpawletko has joined #ruby-lang
centrx has joined #ruby-lang
amystephen has joined #ruby-lang
marr has joined #ruby-lang
malconis has joined #ruby-lang
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
mnngfltg has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
gjaldon has joined #ruby-lang
gjaldon has quit [Ping timeout: 240 seconds]
gianlucadv has joined #ruby-lang
dm78 has joined #ruby-lang
gjaldon has joined #ruby-lang
mjboselo_ has quit [Remote host closed the connection]
workmad3 is now known as wm3|away
gianlucadv has quit [Ping timeout: 260 seconds]
miqui has joined #ruby-lang
elia has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
nofxx_ has quit [Ping timeout: 255 seconds]
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
arBmind has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
wm3|away has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 244 seconds]
banister has joined #ruby-lang
alexju has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
ta has quit [Remote host closed the connection]
gianlucadv has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
mjboselowitz has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
gianlucadv has quit [Ping timeout: 250 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
momomomomo has quit [Quit: momomomomo]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhoulis has quit [Ping timeout: 260 seconds]
wm3|away has joined #ruby-lang
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
gjaldon has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
gjaldon has joined #ruby-lang
JohnFord has joined #ruby-lang
hellangel7 has joined #ruby-lang
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby-lang
gjaldon has quit [Ping timeout: 240 seconds]
gianlucadv has joined #ruby-lang
ruby-lang456 has joined #ruby-lang
ruby-lang456 has quit [Client Quit]
hellangel7 has quit [Read error: Connection reset by peer]
hellangel7 has joined #ruby-lang
ruby-lang185 has joined #ruby-lang
chouhoulis has joined #ruby-lang
mjboselowitz has quit [Remote host closed the connection]
marr has quit [Ping timeout: 255 seconds]
ruby-lang185 has quit [Client Quit]
nathanstitt has joined #ruby-lang
elia has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby-lang
gjaldon has joined #ruby-lang
kyledreger has joined #ruby-lang
elia has joined #ruby-lang
apeiros has joined #ruby-lang
shinnya has joined #ruby-lang
chouhoulis has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
rmcafee has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
toastynerd has joined #ruby-lang
kyledreger has quit [Quit: kyledreger]
wm3|away is now known as workmad3
kyledreger has joined #ruby-lang
fusillicode has joined #ruby-lang
<fusillicode> hi guys :)
<fusillicode> anyone's here
<fusillicode> ?
<apeiros> no
<fusillicode> lol
<yorickpeterse> no
<toretore> lol
<yorickpeterse> There are only computers here, no humans to be found
<fusillicode> :D
<apeiros> toretore: wrong answer, tssk
<yorickpeterse> We are one, we are Ruby
<fusillicode> ok than I'm in the right plac
<fusillicode> *e
<toretore> lol ;D ;D ;D
<fusillicode> btw that's my first time here
<apeiros> welcome
<yorickpeterse> self.class.execute(Hashie::Mash.new({...}) (╯°□°)╯︵ ┻━┻
<fusillicode> thanks :)
<apeiros> yorickpeterse: you omitted a .
<apeiros> self.class.execute(Hashie::Mash.new({...}).(╯°□°)╯︵ ┻━┻
dingus_khan has joined #ruby-lang
<gjaldon> welcome!
<yorickpeterse> apeiros: heh
<yorickpeterse> also this code specifies the :subject twice of this Email
<yorickpeterse> Yet the subject is different in both lines
<yorickpeterse> I think somebody couldn't make up their mind
<fusillicode> ok question of the day: is there an elegant way to create and fill an array on the fly by cycling through another?
<yorickpeterse> fusillicode: fill it with what, the values of the other array?
<apeiros> ary = other.dup
<yorickpeterse> apeiros: that's not webscale
<yorickpeterse> ary = other
<yorickpeterse> #done
<fusillicode> actually yorickpeterse:
<apeiros> alternatively provide an example input/output ( gist.github.com )
<apeiros> yorickpeterse: does does not create an array, though
<fusillicode> while cycling I'm creating 1 object at a time
<fusillicode> each one should be put in the new array
<jhass> .map
<apeiros> fusillicode: sounds like you want Array#map
<apeiros> fusillicode: but really, example please
Miphix has quit [Quit: Leaving]
dingus_khan has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
tectonic has joined #ruby-lang
joast has joined #ruby-lang
<yorickpeterse> apeiros: touché
mistym has quit [Remote host closed the connection]
<fusillicode> map was the first thing that came up on my mind but I wasn't sure :/
<yorickpeterse> also it took me way to long to find out how to get a é going
<fusillicode> but now
<fusillicode> thanks to you guys I'm pretty sure
<apeiros> yorickpeterse: shift-ö = é
<yorickpeterse> ...
<apeiros> :D
<apeiros> horrible keyboard layout for coding. nice for those silly things
<yorickpeterse> https://bbs.archlinux.org/viewtopic.php?pid=954162#p954162 had to do this, yay for not having altgr
<apeiros> though as of 10.9 you can just keep the key e pressed
toastynerd has quit [Remote host closed the connection]
<fusillicode> é
gjaldon has quit [Read error: Connection reset by peer]
<fusillicode> éáó
<toretore> ę
<fusillicode> XD
<apeiros> Ë
<fusillicode> Ė
gjaldon has joined #ruby-lang
<fusillicode> ok guys before coming back to work I want to thank you all! this is really a nice place! ;)
<ericwood> you are welcome, this was all my doing
<apeiros> ericwood, the great :)
<ericwood> you all owe me a lot
* apeiros hands ericwood a lot
<ericwood> haha
* apeiros paid his dues
gjaldon has quit [Ping timeout: 260 seconds]
fusillicode has quit [Ping timeout: 246 seconds]
<yorickpeterse> "XXX authored on Mar 8, 2011: # TODO: refactor" well
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<ericwood> that was probably me, yorickpeterse
<yorickpeterse> Nah some dude who worked on this app way back when it was a prototype
<yorickpeterse> it will be rewritten from scratch soon (tm)
<ericwood> I'm stuck in a 8 year old Rails project
<yorickpeterse> dayum
<apeiros> haahaa?
<ericwood> it seems like every time we fix it up we find some new things
<ericwood> my fave was eval(params[:class_name]) instead of ActiveRecord::const_get(params[:class_name])
<ericwood> (class_name should be whitelisted as well)
<apeiros> also `, false`
<yorickpeterse> wut
<ericwood> I've seen some shit
<ericwood> things you wouldn't believe
<yorickpeterse> I think I can tip that, lemme dig this up
AKASkip has quit [Ping timeout: 272 seconds]
<ericwood> I have plenty of stuff to top that but I'm quite fond of the nearly deliberate remote code execution
<ericwood> oh, most of our app uses the default route
<yorickpeterse> hash[:review_date] = Date.parse(eval(date + ".beginning_of_month").to_s).iso8601
<ericwood> and most things are GET requests
<ericwood> oh wtf is that
<yorickpeterse> Outsourced code
<yorickpeterse> which is now disabled
<ericwood> :D
<yorickpeterse> I got this random syntax error at some point, and I was like "wtf that's impossible the tests shouldn't even run in that ca....oh...shit"
<ericwood> oooh some intern code: User.find(@current_user.id)
<whitequark> please stop
<ericwood> well, it had a few more things around it so it was 3 queries for an object they already had
<yorickpeterse> ericwood: actually, I think that would be cached by AR
<yorickpeterse> not 100% sure though
<ericwood> yorickpeterse: yeah if you're using the latest
<ericwood> still a slappable-offense, because they have no idea that AR will do that
<yorickpeterse> ericwood: good point
<ericwood> anyone know any ruby shops in portland?
<ericwood> looking for a change later this year
<yorickpeterse> that escalated quickly
<ericwood> like I said, you all owe me
ta has joined #ruby-lang
<yorickpeterse> Know quite a few over here, but that's a long way from Portland
mistym has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
<yorickpeterse> including ourselves *cough* *cough*
saarinen has joined #ruby-lang
tectonic has quit []
gjaldon has joined #ruby-lang
emmesswhy has joined #ruby-lang
vikasyaligar has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
<ericwood> haha
omosoj has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has quit [Client Quit]
cmhobbs has joined #ruby-lang
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
yfeldblum has joined #ruby-lang
skade has joined #ruby-lang
saarinen has quit [Quit: saarinen]
hachiya_ has quit [Remote host closed the connection]
<yorickpeterse> The biggest lie in programming:
<yorickpeterse> # Time to add your specs!
<yorickpeterse> Last changes: 2012
<yorickpeterse> the specs test like, 2%
gianlucadv has quit [Ping timeout: 250 seconds]
<yorickpeterse> Good thing this particular project will be refactored somewhere by the end of this week
<yorickpeterse> s/refactored/rewritten
yfeldblum has quit [Ping timeout: 272 seconds]
<ericwood> we recently got our test suite down from 2 hours to 20 minutes
<centrx> s/rewritten/scrapped
<ericwood> apparently people do things like 60.times { FactoryGirl.build(:user) }
<centrx> ...by deleting 90% of the tests
<yorickpeterse> Give a man a codebase and he'll write weird code
<yorickpeterse> Give Yorick a codebase and he'll refactor all your things non stop
<ericwood> and we had bcrypt using 10 as its whatever parameter so it was really fucking computationally intensive
<yorickpeterse> ericwood: I think my slowest rails test suite is 2 minutes
<yorickpeterse> That's on REE 1.8 something
<ericwood> making bcrypt shut up in the tests all of a sudden cut off an hour :P
<yorickpeterse> Granted it has like 10 tests
<ericwood> we have thousands
<ericwood> this thing is huge
<yorickpeterse> Entire build process took 2 minutes and 18 seconds
<yorickpeterse> "274 examples, 0 failures, 4 pending"
<yorickpeterse> so basically nothing
<ericwood> I would actually commit crimes to have that
sharpmachine has joined #ruby-lang
<ericwood> 9507 tests
<yorickpeterse> One of our best tested projects has....
<ericwood> lots of functional + integration ones that test some hairy stuff
<yorickpeterse> Finished in 24.77 seconds (files took 1.41 seconds to load)
<yorickpeterse> 1113 examples, 0 failures
<yorickpeterse> That thing has 0 tests 10 months ago
<ericwood> I think the largest bottleneck is reloading the rails env...we have a shitton of stuff
<yorickpeterse> also happened to be one of our most crucial applications
<ericwood> we recently hired a guy whose sole job is to unfuck all of that tho
rippa has joined #ruby-lang
<yorickpeterse> haha, poor soul
<yorickpeterse> Did they get a company sponsored insurance policy?
<ericwood> they're on suicide watch
<ericwood> he sends me these code chunks every day that are especially bad
<ericwood> it's entertaining and depressing
<ericwood> honestly though we do have tons of badass codew
<centrx> That sounds like a fun job actually
<yorickpeterse> Do they end up on the Daily WTF too?
<ericwood> hahaha we have some material for it, that's for sure
<ericwood> ooooh my fave from recently!~!!!!
<ericwood> someone was putting the object.to_s in the memcached key
<ericwood> so you get the memory location as part of it
<ericwood> we have 6 application nodes and a shared memcached instance
<ericwood> so it's guaranteed to miss 99% of the time
<ericwood> so...I fixed it
<ericwood> then it broke EVERYTHING related to mailers
<ericwood> they were designed with the idea that it would miss
<yorickpeterse> wat
<ericwood> so...we just said fuck it we do NOT have time for this and took out the cache block entirely...which actually makes it run faster anyways :D
<ericwood> it was like Rails.cache.fetch("something/#{image_id}") but image_id was the fucking AR model for the image
<ericwood> made me realize what I miss about strict typing
<yorickpeterse> We had a similar problem
<yorickpeterse> we had this DateRange object thing
<yorickpeterse> which was used for the key
<ericwood> lol
<yorickpeterse> But nobody ever bothered to explicitly call the right method to convert it to a String that didn't contain the object ID
nertzy has joined #ruby-lang
<yorickpeterse> So every day we'd create new cache keys and then just forget them
<yorickpeterse> all the while wondering why some parts of the app were slow as heck
<ericwood> :D
karamazov has joined #ruby-lang
michaeldeol has joined #ruby-lang
hellangel7 has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby-lang
enebo has joined #ruby-lang
<yorickpeterse> We've systematically cleaned up a *lot* of code in the almost 2 years since I joined
<yorickpeterse> I suppose my constant complaining actually helps
<ericwood> we instituted "fix it fridays" every two weeks
<ericwood> you just drop what you're doing and refactor that stuff you meant to but are too busy to now
<ericwood> helped a ton
sepp2k has quit [Quit: Konversation terminated!]
<yorickpeterse> I'd love that, except were only with the 3 of us, soon to be 2
<ericwood> oof.
<yorickpeterse> with around 30 or so apps to maintain
banister has joined #ruby-lang
<ericwood> I take it you do consulting then?
<ericwood> I want to do something along those lines...something new all the time
<yorickpeterse> haha no
<yorickpeterse> consulting, pffft
<ericwood> just something where it's not the same appp all day
<yorickpeterse> I work for these people http://www.olery.com/
<yorickpeterse> tl;dr we aggregate review data
<yorickpeterse> we just break stuff up into a lot of different apps
<yorickpeterse> lots and lots of background processes
<ericwood> aaah nice
<yorickpeterse> we only have 5 Rails apps from the top of my head
<ericwood> we're *trying* to do that but a monorail is a tough thing to comparmentalize :(
<ericwood> we did just deploy a scala app and something part rails and part Go
<yorickpeterse> we're 100% Ruby
<yorickpeterse> 95% MRI 2.1.2, one app still stuck on REE 1.8
<ericwood> oof
<ericwood> JRuby here
<yorickpeterse> I'd be running Rbx if it wasn't for bloody Nokogiri
<centrx> PHP/Node/MongoDB
<yorickpeterse> or aws-sdk not being thread-safe
<yorickpeterse> grrrr
<ericwood> centrx: I think that's actually my least favorite stack imaginable
<headius> yorickpeterse: CoW would be a VM-level feature...given the right memory subsystem any JVM *could* do it, but only a couple actually do right now
amerine has quit [Quit: Computer has gone to sleep.]
<ericwood> I say this as a JS programmer
<headius> e.g. Dalvik (which isn't really a JVM, but yeah)
<centrx> yorickpeterse, Nokogiri doesn't work on Rubinius?
<yorickpeterse> It does if you only run a single thread
<ericwood> nope, it requires crazy compiled stuff with libxml2
<yorickpeterse> But even then it might crash
<ericwood> the JRuby one ties into the java equivalent
<yorickpeterse> headius: hmm
<yorickpeterse> ericwood: correct, making it harder to debug
<yorickpeterse> since there's no similar environment to compare to
<ericwood> yah :D
<yorickpeterse> That is, an environment that also does multi-threading properly
<emmesswhy> anyone have recs for a good ruby IRC bot framework? been reading the Cinch documentation - looks pretty solid, would like some second opinions first though
<headius> yorickpeterse: one thing I find strange is that we had people running jruby + nokogiri-ffi for a couple years before we got a JVM-native version
<headius> with concurrency and all that
<whitequark> emmesswhy: cinch is great
<ericwood> emmesswhy: I'm sure Cinch will be just fine unless you want to do something insane
<ericwood> a friend of mine has an obscenely parallel one written using eventmachine
<ericwood> you can use that
<ericwood> it has no docs tho :D
<emmesswhy> no docs @_@
<emmesswhy> yeah, i'll stick with cinch :p
skade_ has joined #ruby-lang
<ericwood> good idea
<ericwood> ugh what's a good way to find jobs at smaller companies if I'm not networked in an area?
<ericwood> github jobs is solid, as is stackoverflow careers but the options are more limited
<ericwood> I have so many connections in Austin but 0 in portland, it's driving me mad
skade has quit [Ping timeout: 260 seconds]
<yorickpeterse> headius: I suspect the problem might've been introduced recently
<yorickpeterse> or something else triggers it
<yorickpeterse> But either way, it's really annoying
ta has quit [Remote host closed the connection]
<yorickpeterse> But soon I'll liberate the world of XML parsing by introducing my own crappy parsing library
kyledreger has quit [Quit: kyledreger]
<headius> yorickpeterse: yeah, it's too bad the FFI nokogiri died...that might have been a path to get your apps working on rbx
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyledreger has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
loincloth has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
qba73 has quit [Remote host closed the connection]
kek_ has joined #ruby-lang
skade_ has quit [Quit: Computer has gone to sleep.]
qba73 has joined #ruby-lang
|jemc| has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
gjaldon has quit []
karamazo_ has joined #ruby-lang
gianlucadv has joined #ruby-lang
qba73 has quit [Ping timeout: 272 seconds]
ironhide_604 has quit [Ping timeout: 260 seconds]
karamaz__ has joined #ruby-lang
karamazov has quit [Ping timeout: 272 seconds]
karamazo_ has quit [Ping timeout: 264 seconds]
<ericwood> forgetting to restart memcached will be the death of me
vikasyaligar has quit []
saarinen has joined #ruby-lang
shinnya has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby-lang
Maitiu has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby-lang
stamina has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby-lang
koderok has joined #ruby-lang
mistym has joined #ruby-lang
karamaz__ has quit [Remote host closed the connection]
gianlucadv has quit [Ping timeout: 260 seconds]
hellangel7 has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frank_o has joined #ruby-lang
amclain has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 260 seconds]
hellangel7 has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jds has quit [Quit: Connection closed for inactivity]
loincloth has quit []
benlovell has quit [Ping timeout: 260 seconds]
saarinen has quit [Quit: saarinen]
koderok has quit [Ping timeout: 250 seconds]
mjboselowitz has joined #ruby-lang
jds has joined #ruby-lang
loincloth has joined #ruby-lang
skade has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
fullybaked has quit [Ping timeout: 260 seconds]
sharpmachine has quit [Remote host closed the connection]
nehaljwani has joined #ruby-lang
priodev has quit [Ping timeout: 260 seconds]
<nehaljwani> Hi! Where can I get a list of CVEs affecting any version of ruby?
tbuehlmann has joined #ruby-lang
gianlucadv has joined #ruby-lang
dingus_khan has joined #ruby-lang
mnngfltg has quit [Quit: Ex-Chat]
priodev has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
dingus_khan has quit [Ping timeout: 245 seconds]
gianlucadv has quit [Ping timeout: 250 seconds]
jbardin has joined #ruby-lang
mikecmpbll has joined #ruby-lang
havenwood has joined #ruby-lang
wallerdev has joined #ruby-lang
AKASkip has joined #ruby-lang
ari-_-e has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby-lang
<frank_o> Hello! If I do `class SomeClass; def yolo; something; end; end`, is there a way to do `yolo.something` from inside other classes instead of `SomeClass.yolo.something`?
yfeldblum has joined #ruby-lang
mjboselowitz has quit [Remote host closed the connection]
mjboselowitz has joined #ruby-lang
<jhass> frank_o: sounds suspicious. Got non pseudo code?
JohnFord has joined #ruby-lang
djbkd has joined #ruby-lang
<frank_o> suspicious?! :)
yfeldblum has quit [Ping timeout: 240 seconds]
<frank_o> thinking simply `prettify(JSON.parse(response))` would be a little cleaner
<havenwood> frank_o: seems ThirdPartyProducts makes a better module than class
<jhass> I strongly disagree but since you have no state you could make that a module and include it
<frank_o> havenwood: Interesting
<frank_o> jhass: Ah ok. If you disagree I think it's best if I ditch the idea
wallerdev has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby-lang
<frank_o> havenwood: why a module though?
<frank_o> havenwood: by the way here's the original reasoning behind it: https://gist.github.com/frankie-loves-jesus/89d24dd88579c7f912f3#comment-1258555
<jhass> because you have no shared state
postmodern has joined #ruby-lang
<jhass> it makes no sense to make a new instance of your class
mistym has quit [Ping timeout: 240 seconds]
<frank_o> jhass: as per that gist comment above the idea is to have one instance per new affiliate. my first paste only has one affiliate but i plan to add others.
charliesome has joined #ruby-lang
<jhass> it rather looks like the idea is to have a new class per affiliate?
momomomomo has quit [Quit: momomomomo]
<frank_o> sorry i thought ::foo was an instance. my bad
* frank_o dusts himself off
<frank_o> jhass: so module it is then?
<jhass> I'd do that
amerine has joined #ruby-lang
<havenwood> yup
amerine_ has joined #ruby-lang
<frank_o> great.. so `module ThirdPartyProducts; end` and `module ThirdPartyProducts::Tradedoubler; end`?
<frank_o> module virgin here
<jhass> yeah
<frank_o> awesome
amerine has quit [Ping timeout: 272 seconds]
amerine_ has quit [Ping timeout: 260 seconds]
loincloth has quit [Remote host closed the connection]
weems|mac has joined #ruby-lang
ari-_-e has joined #ruby-lang
koderok has joined #ruby-lang
gianlucadv has joined #ruby-lang
chouhoulis has joined #ruby-lang
<frank_o> by the way im trying to regroup this code into a more methody pattern as i was taught here yesterday: https://gist.github.com/frankie-loves-jesus/5fc2b475b732db5a6840 -- am i doing it right?
benlovell has joined #ruby-lang
<jhass> seems okay for now
<jhass> two odd things I've noticed: "#{random_category}" random_category is already a string
<jhass> if you're not sure and want to convert call .to_s instead
willmarshall has joined #ruby-lang
<jhass> rescue => e raise e why rescue if all you do is reraise?
amerine has joined #ruby-lang
<jhass> okay, actually defining a method inside a method is odd too
<frank_o> jhass: I just thought the rescue stuff was a standard pattern. i'd love to take it out
chouhoul_ has quit [Ping timeout: 255 seconds]
<wallerdev> take it out
<wallerdev> not standard at all lol
<frank_o> was about to ask about the method inside method, cool
<jhass> if all you do is reraise please please take it out
<frank_o> hehe
<wallerdev> i think its even making it worse by changing the stacktrace
willmarshall has quit [Client Quit]
mjboselowitz has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> oh, defining a constant inside a method is also not so nice
mistym has joined #ruby-lang
gianlucadv has quit [Ping timeout: 260 seconds]
thomasxie has quit [Ping timeout: 244 seconds]
benlovell has quit [Ping timeout: 260 seconds]
kek__ has joined #ruby-lang
<jhass> ah, now I get what bothers me all the time, you actually define all your methods inside a method?
amerine has quit [Client Quit]
<jhass> that's not how it should work
<jhass> I didn't even notice
<frank_o> jhass: please reload
kek__ has quit [Read error: Connection reset by peer]
kek_ has quit [Ping timeout: 255 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jhass> what about validate?
<jhass> still nested method definitions
<frank_o> oops, i see that now.
<jhass> your cherrypick does a each where it wants a map
<frank_o> cool
<frank_o> should all my methods be selfies btw?
<frank_o> i should probably google that
saarinen has joined #ruby-lang
<jhass> I don't see shared state or anything that justifies instances, so probably
<jhass> oh and I'm sure you'll find a better name for "get_it_all_dude"
<frank_o> :D
elia has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby-lang
karamazov has joined #ruby-lang
<frank_o> i will consider it. so last but not the least - any suggestions on how to design the validate function?
<frank_o> like it says in the comments, tradedoubler wont let me search for genders or categories (i've submitted a feature request to them though), but luckily there are `gender` and `product_group` fields in the json response.
<jhass> so it doesn't validate, rather it filters?
<frank_o> good point, yeah true.
<jhass> so first thing, call it filter
<frank_o> consider it done :)
<jhass> how dynamic need those to be?
<frank_o> what do you mean?
<jhass> where do you define the filters?
<frank_o> no idea tbh
dingus_khan has joined #ruby-lang
<frank_o> probably not the answer you were looking for.
relix has joined #ruby-lang
<jhass> I mean are they always the same, do they depend on the request or what?
momomomomo has joined #ruby-lang
koderok has quit [Quit: koderok]
<frank_o> oh yeah, they're always the same.
michaeldeol has joined #ruby-lang
<jhass> exactly? because your comment references random_category
mjboselowitz has joined #ruby-lang
nehaljwani has left #ruby-lang ["Leaving"]
<frank_o> oh like that. sorry, yeah categories will change on request. gender will always stay the same.
<frank_o> ideally these filters shouldnt be too interwoven with the rest of the code so its easy to "disconnect" it whenever tradedoubler fixes their api
adphillips has joined #ruby-lang
<jhass> I still don't quite get how you call all this stuff
dingus_khan has quit [Ping timeout: 255 seconds]
<jhass> you have fetch.hashes.mashes.cherrypick.shuffle
<jhass> but that can't work
<jhass> since your methods don't return stuff you can call your methods on
emmesswhy has quit [Quit: This computer has gone to sleep]
<jhass> let me tinker a bit
<frank_o> true. was about to ask about that as well. never connected methods in this sense before
gianlucadv has joined #ruby-lang
pixelhandler has joined #ruby-lang
emmesswhy has joined #ruby-lang
loincloth has joined #ruby-lang
saarinen has quit [Quit: saarinen]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
sarkyniin has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby-lang
RobertBirnie has joined #ruby-lang
pr0ton__ has joined #ruby-lang
amerine has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
stamina has joined #ruby-lang
Rylee has quit [Excess Flood]
<jhass> frank_o: are those and filters or or filters?
<jhass> I mean should it match all or any?
Rylee has joined #ruby-lang
kek_ has joined #ruby-lang
stevednd has quit [Remote host closed the connection]
<frank_o> jhass: and filters i believe
pr0ton__ has quit [Quit: pr0ton__]
amerine has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
<jhass> frank_o: I guess I'd do something like this http://paste.mrzyx.de/pdd453a83/
amerine has joined #ruby-lang
bin7me has joined #ruby-lang
stamina has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby-lang
charliesome has joined #ruby-lang
<frank_o> jhass: oh man oh man oh man
<frank_o> jhass: a million times thanks!
solars has joined #ruby-lang
<frank_o> that is some pretty slick code. lord have mercy.
saarinen has joined #ruby-lang
omosoj has quit [Ping timeout: 260 seconds]
<frank_o> cant wait to try this out. just gotta take the doggie out for a quick run first.
<frank_o> jhass: nice website btw. reminds me of http://motherfuckingwebsite.com/
<frank_o> brb
futilegames has joined #ruby-lang
dingus_khan has joined #ruby-lang
onetwo has joined #ruby-lang
mjboselowitz has quit [Remote host closed the connection]
pr0ton__ has joined #ruby-lang
dingus_khan has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
mjboselowitz has joined #ruby-lang
pr0ton__ has quit [Ping timeout: 260 seconds]
Fushi has quit [Quit: Connection closed for inactivity]
deol has joined #ruby-lang
onetwo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
omosoj has joined #ruby-lang
michaeldeol has joined #ruby-lang
existensil has quit [Quit: WeeChat 0.4.2]
deol has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
ta has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has quit [Remote host closed the connection]
stamina has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amerine has quit [Quit: Computer has gone to sleep.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
charliesome has joined #ruby-lang
yubrew has joined #ruby-lang
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
saarinen has quit [Quit: saarinen]
alexju has quit [Read error: Connection reset by peer]
alexju has joined #ruby-lang
benlovell has joined #ruby-lang
alexju has quit [Remote host closed the connection]
surrounder1 has joined #ruby-lang
alexju has joined #ruby-lang
dik_dak has joined #ruby-lang
surrounder has quit [Ping timeout: 260 seconds]
JohnFord has joined #ruby-lang
adphillips has quit []
codeZeilen has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
momomomomo has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju has quit [Ping timeout: 255 seconds]
arBmind has joined #ruby-lang
<codeZeilen> hi everyone. I've got a question on behavior of Ruby regarding the beloved printing of Floats. I've noticed the following behavior: When normally printing a very large Float (> 2^70) i get a string which has a lot of zeroes right before the period and which is actually not representable with double precision numbers of this size.
<codeZeilen> however if I print it by putting it through string format using %.1f I get the correct representation. This is as string_format uses snprintf while float_to_str uses a custom algorithm. Is that intended?
momomomomo has quit [Client Quit]
jbardin has quit [Quit: jbardin]
momomomomo has joined #ruby-lang
yfeldblum has joined #ruby-lang
momomomomo has quit [Client Quit]
<centrx> codeZeilen, Unable to reproduce
emmesswhy has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby-lang
<codeZeilen> centrx: let me see if i can get you the data. one moment :)
<codeZeilen> centrx: can you try this: https://gist.github.com/codeZeilen/07f237eba30393601cd8
<centrx> codeZeilen, The behavior for the first one must have changed since 1.9
<centrx> ruby -e "puts 25852016738885287000000.0"
<centrx> 2.585201673888529e+22
<codeZeilen> centrx: yes exactly
<codeZeilen> centrx: ok so this is a 1.9 specific question :)
michaeldeol has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
<codeZeilen> centrx: hm... but the behavior in 2 makes me believe its intended actually
<centrx> codeZeilen, puts outputs a generic string representation, maybe using Float#to_s
<codeZeilen> centrx: I mean the behavior in 1.9 is also intended.
kek_ has quit [Remote host closed the connection]
<centrx> codeZeilen, Sure, in some sense. Certainly it was improved
<codeZeilen> centrx: yes exactly puts uses to_s which is probably not intended for exact output but readable output
<codeZeilen> centrx: ok that makes things clearer, thanks for the discussion :)
hahuang65 has quit [Ping timeout: 260 seconds]
codeZeilen has quit [Quit: Page closed]
jbardin has joined #ruby-lang
dingus_khan has joined #ruby-lang
toastynerd has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby-lang
dingus_k_ has joined #ruby-lang
nofxx has joined #ruby-lang
dingus_khan has quit [Read error: Connection reset by peer]
sarkyniin has joined #ruby-lang
alexju has joined #ruby-lang
yubrew has quit [Remote host closed the connection]
InfraRuby has joined #ruby-lang
alexju has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
alexju has joined #ruby-lang
alexju has quit [Read error: No route to host]
[spoiler] has quit [Quit: Leaving]
alexju has joined #ruby-lang
yubrew has quit [Ping timeout: 264 seconds]
dik_dak has quit [Remote host closed the connection]
_ht has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
dik_dak has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby-lang
Atttwww has joined #ruby-lang
emmesswhy has joined #ruby-lang
omosoj has quit [Ping timeout: 260 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
banister has joined #ruby-lang
<frank_o> jhass: minor issue it seems at http://runnable.com/U-gJx3err-Zsnd8D/td-2 -- 757: unexpected token at 'products'
<jhass> meh, I didn't run it
<frank_o> centrx: check out how jhass blessed our code earlier: http://paste.mrzyx.de/pdd453a83/
<frank_o> jhass: i replaced `@filters.all??` with `@filters.all?` though
<jhass> you really should be able to fix such errors yourself
alexju has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
alexju has joined #ruby-lang
<jhass> frank_o: it's ThirdPartyProducts.prettify(JSON.parse(request)["products"])
omosoj has joined #ruby-lang
<frank_o> thank you
alexju has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> and hashes.map {|hash| Hashie::Mash.new(hash) }.each do |mash|
yubrew has joined #ruby-lang
alexju has joined #ruby-lang
miqui has quit [Remote host closed the connection]
pixelhandler has quit [Quit: pixelhandler]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby-lang
yubrew has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby-lang
benlovell has joined #ruby-lang
ur5us has joined #ruby-lang
alexju has quit [Read error: No route to host]
alexju_ has joined #ruby-lang
alexju_ has quit [Remote host closed the connection]
<frank_o> jhass: it runs without errors, but @products seems empty
benlovell has quit [Ping timeout: 250 seconds]
alexju has joined #ruby-lang
pixelhandler has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
solars has quit [Ping timeout: 272 seconds]
kek has joined #ruby-lang
djbkd has joined #ruby-lang
alexju has quit [Ping timeout: 244 seconds]
PsionTheory has joined #ruby-lang
saarinen has joined #ruby-lang
michaeldeol has joined #ruby-lang
mjboselowitz has quit [Remote host closed the connection]
alexju has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
elia has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
hakunin has joined #ruby-lang
kyledreger_ has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjboselowitz has joined #ruby-lang
mjboselowitz has quit [Remote host closed the connection]
kyledreger has quit [Ping timeout: 264 seconds]
kyledreger_ is now known as kyledreger
MichD is now known as michd
kek has quit [Remote host closed the connection]
kyledreger has quit [Client Quit]
yfeldblum has quit [Ping timeout: 240 seconds]
tdy has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
amerine has joined #ruby-lang
djbkd has joined #ruby-lang
mjboselowitz has joined #ruby-lang
momoh has joined #ruby-lang
InfraRuby has left #ruby-lang [#ruby-lang]
momoh has quit [Client Quit]
<jhass> frank_o: I didn't pay much attention to whether the filters actually ever match: http://paste.mrzyx.de/pa07a8166/
solars has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
djbkd has joined #ruby-lang
loinclot_ has joined #ruby-lang
loincloth has quit [Ping timeout: 250 seconds]
<frank_o> jhass: works perfectly!
omosoj has quit [Ping timeout: 240 seconds]
tbuehlmann has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
centrx has quit [Quit: Mead error: Connection reset by beer]
ldnunes has quit [Quit: Leaving]
mjboselowitz has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
momoh has joined #ruby-lang
momoh has quit [Client Quit]
surrounder1 is now known as surrounder
mjboselowitz has joined #ruby-lang
futilegames has quit [Quit: futilegames]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amerine has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby-lang
<frank_o> jhass: thanks again
amerine has joined #ruby-lang
<jhass> you should learn to debug and understand such stuff yourself though
bin7me has quit [Quit: Leaving.]
<frank_o> oh absolutely
futilegames has joined #ruby-lang
<frank_o> i know ill learn a lot more from this considering how much this code means to me
<frank_o> as opposed to some example from some book
futilegames has quit [Client Quit]
davispuh has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
snsei has joined #ruby-lang
yubrew has quit [Ping timeout: 272 seconds]
mjboselowitz has quit [Remote host closed the connection]
PsionTheory has quit [Remote host closed the connection]
davispuh has joined #ruby-lang
AKASkip has quit [Ping timeout: 272 seconds]
snsei has quit [Ping timeout: 272 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
kith has quit [Quit: kith]
kith has joined #ruby-lang
Benny1993 has quit [Quit: leaving]
hramrach has quit [Remote host closed the connection]
Benny1992 has joined #ruby-lang
x0f has joined #ruby-lang
hramrach has joined #ruby-lang
coleslaw has joined #ruby-lang
<coleslaw> can someone explain String#ordinal ? I have a situation where " " != " " because one's ordinal is 32 and the other is 160
<coleslaw> the one whitespace was generated from Nokogiri
x0f_ has quit [Ping timeout: 260 seconds]
<apeiros> 160 is the unicode codepoint of that character. and that's a non-breaking space
<apeiros> whereas 32 is an ordinary space
<coleslaw> perfect!
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weems|mac has quit [Quit: weems|mac]
mistym has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
mistym has joined #ruby-lang
djbkd has joined #ruby-lang
cmhobbs has quit [Remote host closed the connection]
pixelhandler has quit [Quit: pixelhandler]
solars has quit [Ping timeout: 245 seconds]
loinclot_ has quit [Remote host closed the connection]
dik_dak has quit [Quit: Leaving]
enebo has quit [Quit: enebo]
djbkd has quit [Remote host closed the connection]
yubrew has joined #ruby-lang
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
omosoj has joined #ruby-lang
yfeldblum has joined #ruby-lang
djbkd has joined #ruby-lang
yubrew has quit [Ping timeout: 245 seconds]
benlovell has joined #ruby-lang
rtlong has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
lcdhoffman has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
diegoviola has quit [Ping timeout: 245 seconds]
Sgeo has joined #ruby-lang
devgiant has joined #ruby-lang
Lingo has joined #ruby-lang
coleslaw has quit [Ping timeout: 246 seconds]
realDAB has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
nathanst_ has joined #ruby-lang
nathanst_ has quit [Client Quit]
nathanstitt has quit [Ping timeout: 272 seconds]
devgiant has quit [Quit: Leaving]
djbkd has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
shinnya has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
chouhoul_ has joined #ruby-lang
apt-get_ has joined #ruby-lang
chouhoulis has quit [Ping timeout: 250 seconds]
sarkyniin has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
djbkd has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
amerine has quit [Quit: Computer has gone to sleep.]
toastynerd has quit [Remote host closed the connection]
tdy has quit [Read error: Connection reset by peer]
bsvineeth has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
mjboselowitz has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
realDAB has quit [Quit: realDAB]
elia has quit [Quit: Computer has gone to sleep.]
yubrew has joined #ruby-lang
diegoviola has joined #ruby-lang
djbkd has joined #ruby-lang
saarinen has quit [Quit: saarinen]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
realDAB has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tdy has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby-lang
jhass is now known as jhass|off
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dingus_k_ has quit [Remote host closed the connection]
InfraRuby has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
sMecKs has joined #ruby-lang
saarinen has joined #ruby-lang
araujo has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby-lang
araujo has joined #ruby-lang
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
saarinen has quit [Quit: saarinen]
realDAB has quit [Quit: realDAB]
diegovio1 has quit [Ping timeout: 240 seconds]
weems|mac has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
lcdhoffman has joined #ruby-lang