apeiros changed the topic of #ruby to: Ruby 2.1.4; 2.0.0-p594; 1.9.3-p550: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
W0rmDr1nk has quit [Quit: Leaving]
jottr has quit [Ping timeout: 265 seconds]
omosoj has joined #ruby
snath has joined #ruby
tvw has quit []
CustosLimen has joined #ruby
mib_mib has joined #ruby
n_blownapart has quit []
Guest8952 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jimbach has joined #ruby
jonr22 has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
Avahey has quit [Quit: Connection closed for inactivity]
robertkelly has joined #ruby
robertkelly has quit [Max SendQ exceeded]
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
robertkelly has joined #ruby
robertkelly has quit [Max SendQ exceeded]
charliesome has joined #ruby
robertkelly has joined #ruby
dreamfighter has quit [Quit: Leaving]
snath has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
dreamfighter has joined #ruby
robertkelly has quit [Client Quit]
davidhq has joined #ruby
emmesswhy has joined #ruby
nateberkopec has joined #ruby
jimbach has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
emmesswhy has quit [Client Quit]
nonks has quit [Ping timeout: 246 seconds]
j_mcnally has joined #ruby
jottr has joined #ruby
mib_mib has quit [Ping timeout: 255 seconds]
elemenopy has joined #ruby
<elemenopy> hi if i have a web page that has JSON at the bottom of it. how can i just get the JSON part at the bottom?
tier has quit [Remote host closed the connection]
<jhass> elemenopy: can you show that page?
<elemenopy> i make web pages ad-free for a free video game
<elemenopy> everything is in .NET right now we are converting
emmesswhy has joined #ruby
codecop has quit [Remote host closed the connection]
arescorpio has joined #ruby
emmesswhy has quit [Client Quit]
<jhass> that's javascript, not json
<elemenopy> so how should i go about getting all of those objects into something i can iterate through?
charliesome has quit [Quit: zzz]
nonks has joined #ruby
<jhass> I'm not sure there's a robust sane way
<elemenopy> well let me ask you this, what would be the best way to just pick out that piece?
<jhass> I guess you parsed the page with nokogiri already
<jhass> you can get the last script tags content with doc.css('script').last.text
<jhass> but that's fragile already, it'll break once even just the order of the script tags there changes or another one is appended to the botoom
<rpag> you'll also need to mangle through javascript before you get to something that could be parsed as JSON
<elemenopy> ok well i found a simple 5 line class on the next that lets me extract just that string now
fuhgeddaboudit has joined #ruby
<rpag> then you'll need to remove the JS parts, like function() {}, new R(..,) etc
KC9YDN-2 has joined #ruby
drPoggs has quit [Ping timeout: 256 seconds]
byprdct_ has joined #ruby
jimbach has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 256 seconds]
Alina-malina has quit [Ping timeout: 272 seconds]
KC9YDN has quit [Ping timeout: 265 seconds]
byprdct has quit [Ping timeout: 244 seconds]
nfk has quit [Quit: yawn]
emmesswhy has joined #ruby
oleo has quit [Read error: Connection reset by peer]
oleo has joined #ruby
Alina-malina has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
tlarevo_ has joined #ruby
Channel6 has quit [Quit: Leaving]
omosoj has quit [Quit: leaving]
kaspergrubbe has joined #ruby
tier has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<elemenopy> ok i've got it pulling the pure js out now
<elemenopy> now how am i gonna make this js an object?
tlarevo has quit [Ping timeout: 272 seconds]
<rpag> strip everything up until R(, then keep going til you see ); on the other end, it'd be very unreliable though the slightest change would break it
dmst has quit [Quit: Connection closed for inactivity]
narcan has joined #ruby
Jake has joined #ruby
<elemenopy> hmmm according to JSLint this is valid JSON
davidhq has joined #ruby
<elemenopy> are you sure this isn't JSON?
Jake has left #ruby ["WeeChat 1.0.1"]
user343242314234 has joined #ruby
<rpag> the object passed to R is valid json yes
<user343242314234> hi
sinkensabe has joined #ruby
<user343242314234> i need help
skolman_ has joined #ruby
<rpag> but it's just using javascript object literals
<user343242314234> i am trying to install rvm
<elemenopy> how can i take that and make it into lots of objects?
<rpag> JSON.parse(blob)
<elemenopy> k th
<elemenopy> ty
<rpag> user343242314234, try #rvm
<user343242314234> #rvm
<rpag> elemenopy, you might have to "require 'json'" before that
<user343242314234> i get a r+ error
<elemenopy> k gotcha ty :)
<user343242314234> when i try to join #rum
<user343242314234> #rvm
<rpag> user343242314234, you'll need to register your nick
<user343242314234> o ok
<rpag> /msg nickserv help register
it0a has joined #ruby
<rpag> maybe pick something that's easier to remember :P
sinkensabe has quit [Ping timeout: 245 seconds]
skolman_ has quit [Ping timeout: 272 seconds]
patric100e99 has joined #ruby
user343242314234 has left #ruby [#ruby]
Alina-malina has quit [Ping timeout: 264 seconds]
Ethan__ has joined #ruby
byprdct has joined #ruby
patric100e99 has quit [Ping timeout: 256 seconds]
Areessell_ has joined #ruby
byprdct_ has quit [Ping timeout: 250 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
davasaurous has quit [Remote host closed the connection]
mib_mib has joined #ruby
sevenseacat has joined #ruby
KC9YDN-2 has quit [Ping timeout: 255 seconds]
fuhgeddaboudit has quit [Ping timeout: 256 seconds]
dkb20k has joined #ruby
Spami has joined #ruby
Areessell_ has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 246 seconds]
nonks has quit [Ping timeout: 246 seconds]
larsam has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
dkb20k has quit [Ping timeout: 255 seconds]
dkb20k has joined #ruby
end_guy has quit [Ping timeout: 246 seconds]
jimbach has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
dkb20k has quit [Ping timeout: 265 seconds]
phutchins has joined #ruby
robustus|Off has quit [Ping timeout: 255 seconds]
tier has quit [Remote host closed the connection]
it0a has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
emmesswhy has joined #ruby
emmesswhy has quit [Client Quit]
snath has joined #ruby
Alina-malina has joined #ruby
rpag has quit [Quit: Leaving]
<elemenopy> hmmm best way to iterate through JSON objects?
7F1ABRYKH has joined #ruby
mikeg has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
<elemenopy> ahhh i c nvm ty!
Ethan__ has quit [Quit: Leaving]
KC9YDN has joined #ruby
Takle_ has quit [Remote host closed the connection]
atomical has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
jimbach has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
slawrence00 has joined #ruby
jonr22 has joined #ruby
drPoggs has joined #ruby
davasaurous has joined #ruby
7F1ABRYKH has left #ruby [#ruby]
jimbach has joined #ruby
rkazak_ has joined #ruby
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
zzz_Ridley has quit [Ping timeout: 250 seconds]
snath has quit [Ping timeout: 244 seconds]
chrishough has joined #ruby
jimbach has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
chrisja has quit [Quit: leaving]
snath has joined #ruby
inf-groupoid is now known as pyon
narcan has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
skolman has joined #ruby
cpt_yossarian has joined #ruby
Avahey has joined #ruby
amclain has quit [Quit: Leaving]
hmsimha_ has joined #ruby
BTRE has joined #ruby
marr has quit []
rkalfane has quit [Ping timeout: 256 seconds]
snath has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
Sp4rKy_ has quit [Ping timeout: 255 seconds]
ylluminarious has joined #ruby
triple_b has joined #ruby
dreamfighter has quit [Quit: Leaving]
pdtpatri1k has joined #ruby
triple_b_ has joined #ruby
triple_b has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
lolmaus has joined #ruby
dreamfighter has joined #ruby
siwica has joined #ruby
jimbach has joined #ruby
puppet_nob has joined #ruby
<puppet_nob> hi could someone tell me what this does
_whitelogger has joined #ruby
<siwica> ok, foo_array.select{ |e| e.id == "search_id"} did the job. bsearch obviously only works for arrays with sortable objects.
<puppet_nob> anyone please
dkb20k has joined #ruby
heftig_ has joined #ruby
heftig has quit [Read error: Connection reset by peer]
bklane has quit [Ping timeout: 256 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
<siwica> puppet_nob: or what is fstab_mounts ?
KC9YDN has quit [Read error: Connection reset by peer]
jimbach has joined #ruby
dkb20k has quit [Ping timeout: 264 seconds]
rkalfane has quit [Ping timeout: 264 seconds]
volty has joined #ruby
dion has joined #ruby
kotk_ has quit [Read error: Connection reset by peer]
<siwica> puppet_nob: it pretty sorts fstab_mounts and does something with each element
Fire-Dragon-DoL has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
kotk has joined #ruby
KC9YDN has joined #ruby
KC9YDN-2 has joined #ruby
arup_r has joined #ruby
Sp4rKy_ has joined #ruby
diegoviola has quit [Remote host closed the connection]
<volty> anyone knows how to configure apache's RewriteRule (and the rest) for a ruby script to be invoked? My current config currently shows the content of the cgi file instead of executing it.
mistermocha has joined #ruby
Scotteh_ has joined #ruby
KC9YDN-2 has quit [Read error: Connection reset by peer]
<siwica> puppet_nob: When an element of fstab_mounts looks something like "foo1|foo2|foo3" it uses string comparison for "foo2" to sort
<siwica> volty: cgi or ruby?
zorak8 has quit [Ping timeout: 244 seconds]
kaspergrubbe has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Scotteh has quit [Ping timeout: 260 seconds]
<volty> maybe I found : probably mod_cgi (or the like)
Sp4rKy_ has quit [Ping timeout: 272 seconds]
mrmargolis has joined #ruby
virtualize has joined #ruby
seanmarcia has quit [Ping timeout: 258 seconds]
<volty> siwica: thanks, i have to fix this manually
dkb20k has joined #ruby
moritzs has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 264 seconds]
Sp4rKy_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
krz has joined #ruby
jasooon has joined #ruby
seanmarcia has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
gf3 has quit [Ping timeout: 245 seconds]
gf3 has joined #ruby
jimbach has quit [Remote host closed the connection]
Channel6 has joined #ruby
mib_mib has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 264 seconds]
mistermocha has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 244 seconds]
end_guy has joined #ruby
snath has joined #ruby
Abhijit has joined #ruby
Abhijit has quit [Changing host]
Abhijit has joined #ruby
VanillaGoat_ has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
rshetty has joined #ruby
nonks has joined #ruby
mistermocha has joined #ruby
VanillaGoat__ has quit [Ping timeout: 244 seconds]
gsd has joined #ruby
drPoggs has quit [Ping timeout: 256 seconds]
dmyers has joined #ruby
optiz0r has quit [Ping timeout: 258 seconds]
volty has quit [Ping timeout: 264 seconds]
rkalfane has joined #ruby
parabolize has joined #ruby
charliesome has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
Areessell_ has joined #ruby
atraylen2 has quit [Ping timeout: 260 seconds]
davasaurous has joined #ruby
kl has quit [Quit: leaving]
rshetty has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
Areessell_ has quit [Ping timeout: 245 seconds]
hmsimha_ has quit [Ping timeout: 256 seconds]
larsam has joined #ruby
patric100e99 has joined #ruby
phutchins has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
triple_b_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larsam has quit []
volty has joined #ruby
HolyWinner has joined #ruby
patric100e99 has quit [Ping timeout: 258 seconds]
mistermocha has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
iamjarvo has joined #ruby
tyll_ has joined #ruby
radic has quit [Disconnected by services]
aspires has quit []
radic_ has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
armyriad has joined #ruby
tyll has quit [Ping timeout: 264 seconds]
volty has quit [Quit: Konversation terminated!]
ItSANgo has quit [Quit: Leaving...]
larsam has joined #ruby
SouL_ has joined #ruby
SouL has quit [Read error: Connection reset by peer]
aspires has quit []
aspires has joined #ruby
jimarnia has joined #ruby
<jimarnia> why can't you call two methods from the same class?
yfeldblum has joined #ruby
linojon has quit [Quit: linojon]
<jimarnia> i have two methods defined in my class Player, but i can't chain them together
<sevenseacat> say what now
<jimarnia> player1.rank_up.say_hello
<jimarnia> they're both in the same class
<sevenseacat> what does player1.rank_up return
<sevenseacat> because thats what you're calling say_hello on
<jimarnia> rank up takes rank += 1
mengu has joined #ruby
<jimarnia> and say_hello gives a message "Hi, my level is now #{@level}"
<sevenseacat> that doesnt answer the question
<sevenseacat> how about you gist your code
<sevenseacat> !gist
<helpa> http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
optiz0r has joined #ruby
balazs has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
Cyrax_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Cyrax_ has joined #ruby
mengu has quit [Ping timeout: 272 seconds]
nonks has quit [Ping timeout: 246 seconds]
govg has quit [Quit: Lost terminal]
triple_b has joined #ruby
havenwood has joined #ruby
boboc has joined #ruby
<shevy> the cat is in the house
<shevy> jimarnia you invoke the second method on what is returned by the first method, which probably is no longer of class Player origin
djbkd_ has joined #ruby
<sevenseacat> indeed.
<shevy> jimarnia if you really must chain two methods onto the original class Player object, you can use .tap http://ruby-doc.org/core-2.1.4/Object.html#method-i-tap
boboc has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
govg has joined #ruby
x1337807x has joined #ruby
jimarnia is now known as YanK
YanK is now known as YaniK
YaniK is now known as Yanik
armyriad has quit [Ping timeout: 258 seconds]
<Yanik> Hey guys, okay now, i've gotten the code, it's a bit rough as i've just started getting ruby :(
<Yanik> it's not that i must do it, i just want to learn to become a great ruby programmer!
<sevenseacat> ok, so rank_up returns a string "Ranked up"
hmsimha_ has joined #ruby
<sevenseacat> so you can't call say_hello on that string
<Yanik> along with an increase of rank
armyriad has joined #ruby
<sevenseacat> or the other way around
<Yanik> sevenseacat: why not?
<Yanik> sorry i'm such a noob
<sevenseacat> because a string doesn't have the method say_hello
<sevenseacat> a Player instance does
<Yanik> that's so confusing
<Yanik> but if it's defined in player shouldn't it run?
<sevenseacat> typing up some stuff that might help
pdtpatri1k has quit [Quit: leaving]
<Yanik> i know that it works if i type player2.rank_up and player2.say_hello without chaining them it will work
pdtpatr11k has joined #ruby
pdtpatr11k has quit [Client Quit]
<sevenseacat> does that comment help?
<Yanik> i wish it did
<Yanik> i'm super confused and i'm super stupid i guess
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> ok
<Yanik> can you explain to me like i'm a toddler, why i can't chain those methods
<sevenseacat> so you've defined rank_up on the player class, so you can call it on instances of Players
<sevenseacat> but your say_hello method doesnt return a player, it returns a string
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Yanik> yes, it returns a string
<Radar> Yanik: You probably want to use puts for the messages and then return a person at the end of those methods instead
aspires has quit []
<sevenseacat> so how can you call rank_up on a string?
<sevenseacat> what does it mean to rank_up a string?
<Yanik> oh thank you so much\
<Yanik> the order matters
<Yanik> now i get it
<Yanik> thank you very much! :)
<sevenseacat> well no, because if you change the order of the method calls you'll have the same problem
<Yanik> oh boy
<sevenseacat> player2.rank_up.say_hello will have the exact same problem
hmsimha_ has quit [Ping timeout: 260 seconds]
SouL_ has quit [Ping timeout: 264 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Yanik> sorry guys the things you're saying are going over my head, but i know how to fix the problem, but i don't understand why it's not workign
drPoggs has joined #ruby
<Yanik> i know a fix, but i don't know THE fix
<Radar> Yanik: The fix is to return player objects instead of strings.
<elemenopy> if im just running a ruby file over and over (no web pages involved) what is the way to connect and execute commands from ruby into MySQL
<Radar> elemenopy: use the mysql2 gem
<sevenseacat> or just not chain things because it doesnt really make sense here.
<Yanik> Radar: i thought strings were objects
<Radar> elemenopy: Or you could go one level higher and use the sequel gem
<Radar> Yanik: strings are objects. Those types of objects don't have the methods that you're expecting them to have.
<Yanik> this is so confusing...
<Yanik> i'm going to need a lot more practice
<elemenopy> can i (from a single ruby file) insert data into MySQL? either through the use of gems or some other means?
<Radar> Yanik: Can you fry a steak?
<Radar> Yanik: Can you fry an apple?
<Yanik> yeah
<Yanik> that's easy
heftig_ is now known as heftig
<Radar> Steak is good fried
<Yanik> this is frying my brain :P
<Radar> Apples are not good fried
<sevenseacat> elemenopy: the sequel gem is really great for database manipulation.
<elemenopy> perfect , thx again
<Radar> Steak and apples are two different TYPES of food.
<elemenopy> very helpful as usual
<Radar> players and strings are different TYPES of Ruby objects.
jonr22 has quit [Remote host closed the connection]
tlarevo_ has quit [Ping timeout: 244 seconds]
<Radar> Yanik: The only things that respond to a TYPE's methods in Ruby is instances of that TYPE or subclasses of that TYPE
<Yanik> but what if the player needs to know a message?
<Radar> what kind of message>?
<sevenseacat> i suck at explaining this really low-level stuff.
<Yanik> like a stutus
<Radar> Yanik: Shouldn't that message just be output?
<Radar> Yanik: Which you can do with the puts method?
<Yanik> i wish i was as good as you guys :(
<Yanik> puts player2.rank_up.say_hello
<Yanik> ?
davasaurous has quit [Remote host closed the connection]
Cache_Money has joined #ruby
<Radar> noooo
<Yanik> that's what i thought i was doing with that, but i guess it's not how it works, i appreciate you guys trying to help and i'm sorry i'm not understanding this stuff
<Radar> Yanik: put the puts inside of the message
<Radar> putting "self" on the last line of the method will return the Player instance
Synthead has joined #ruby
hephaestus_rg has joined #ruby
<hephaestus_rg> i have a list of at least 4 things
<Yanik> the course taught me self, but i didn't understand what they were talking about so i moved on to the next lesson because i didwell on the exercises
<hephaestus_rg> and i want to select everything after the 3rd thing
<hephaestus_rg> how do i do that
IceDragon has quit [Ping timeout: 245 seconds]
djbkd_ has quit [Quit: Leaving...]
xenomorph is now known as {xenomorph}
<Yanik> thank you so much Radar and sevenseacat
<hephaestus_rg> is there a slice like array[3:] or something
<Yanik> i really appreciate your help1
<Radar> Yanik: Do you understand now? :)
<Yanik> kinda
<Radar> hephaestus_rg: did you try array[3:]?
<Yanik> i do understand that i need to fully understand how self works
<Radar> Actually I think that's Go that I'm thinking of.
<Yanik> thank you so much :)
{xenomorph} is now known as xenomorph
<Radar> hephaestus_rg: >> [1,2,3,4,5,6,7,][3..-1]
djbkd has joined #ruby
<havenwood> >> [1,2,3,4,5,6,7,].drop 3
<eval-in__> havenwood => [4, 5, 6, 7] (https://eval.in/216383)
<hephaestus_rg> got it rhanks radar
<Radar> TIL drop
<sevenseacat> is the opposite of take, no?
<hephaestus_rg> does drop mutate the list
<sevenseacat> doubt it
<Radar> No I don't think it does.
<sevenseacat> drop! would
<sevenseacat> if it existed
<Radar> if drop... yeah
sepp2k has quit [Read error: Connection reset by peer]
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com)]
davasaurous has joined #ruby
ChoiKyuSang has joined #ruby
oo_ has joined #ruby
Hackbinary has quit [Remote host closed the connection]
rshetty has joined #ruby
TripTastic is now known as JBreit
JBreit has left #ruby ["Leaving"]
hmsimha_ has joined #ruby
mary5030 has joined #ruby
IceDragon has joined #ruby
IceDragon has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
Musashi007 has joined #ruby
braincrash has quit [Quit: bye bye]
it0a has quit [Quit: WeeChat 1.0.1]
arup_r has quit [Ping timeout: 265 seconds]
djbkd_ has joined #ruby
yfeldblum has joined #ruby
<shevy> how do you guys manage your websites - or other websites?
djbkd has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
Areessell_ has joined #ruby
<Radar> With great care and internal anguish.
<Radar> shevy: Which aspect of them?
yfeldblum has quit [Ping timeout: 258 seconds]
<sevenseacat> manage what?
nonks has joined #ruby
ylluminarious has quit [Quit: Leaving...]
<shevy> all of them
<sevenseacat> how delightfully vague.
<shevy> come on cat
<sevenseacat> crystal ball broken. please use real words.
mary5030 has quit [Remote host closed the connection]
Takle has joined #ruby
it0a has joined #ruby
arescorpio has quit [Read error: Connection reset by peer]
jdjkelly has quit []
nonks has quit [Ping timeout: 246 seconds]
JBreit has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
weemsled_ has joined #ruby
JBreit has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
weemsledeux has quit [Read error: No route to host]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
lnong has quit [Remote host closed the connection]
BLuEGoD has quit [Remote host closed the connection]
JBreit has left #ruby [#ruby]
renderful has joined #ruby
kyb3r_ has joined #ruby
weemsled_ has quit [Read error: Connection reset by peer]
BLuEGoD has joined #ruby
oo_ has quit [Remote host closed the connection]
weemsled_ has joined #ruby
oo_ has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
<elemenopy> i have a string like this:
<elemenopy> 20% dexterity bonus to all gems
renderful has quit [Ping timeout: 256 seconds]
<elemenopy> i only want to break up into two main pieces, PIECE #1 '20%' PIECE #2 'dexterity bonus to all gems'
<sevenseacat> split it on the first space?
<elemenopy> ok let me see
<elemenopy> wurx ty
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
weemsledeux has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<shevy> >> piece1, *piece2 = x.split(' '); piece2
<eval-in__> shevy => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/216385)
<shevy> >> x = "20% dexterity bonus to all gems"; piece1, *piece2 = x.split(' '); piece2
<eval-in__> shevy => ["dexterity", "bonus", "to", "all", "gems"] (https://eval.in/216386)
msmith_ has quit [Remote host closed the connection]
Musashi007 has joined #ruby
rkazak_ has left #ruby [#ruby]
jimms has left #ruby [#ruby]
<sevenseacat> nope
<shevy> he can run a .join
<sevenseacat> why not just run a proper split
<shevy> why not just show code
<sevenseacat> for what? they fixed their problem already
<shevy> for being less of a snob
<sevenseacat> i linked to the docs on split
<sevenseacat> did you rea them
n_blownapart has joined #ruby
<sevenseacat> read
<shevy> you showed code?
<elemenopy> its working great ty! i read some documentation yesh !
<elemenopy> just started learning today an d we have about 40% of our engine converted to ruby already (mostly .rb files with cron anyway)
<shevy> elemenopy what is the code you used?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sevenseacat> :)
<elemenopy> :)
iamjarvo has joined #ruby
<elemenopy> i have to stop and relax a bit, this is so fast and i know im probably actually tired
<elemenopy> we are moving from .NET C# to ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
mrmargolis has quit []
noop has quit [Ping timeout: 264 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
SilkFox has quit [Read error: Connection reset by peer]
<siwica> are you aware of a ruby library that does triangulation for non convex yet plain polygons?
SilkFox has joined #ruby
oo_ has quit [Remote host closed the connection]
Guest92116 has joined #ruby
<Radar> no
<Radar> I don't remember ever needing one of those.
<siwica> I have to display geometries in Google Earth
mdarby has joined #ruby
rshetty has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
jsaak has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
chipotle has joined #ruby
echevemaster has joined #ruby
n_blownapart has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
elemenopy has quit [Remote host closed the connection]
davasaurous has joined #ruby
<lampd1> anyone here try Kailh switches?
<lampd1> (mech kbs)
elemenopy has joined #ruby
oo_ has joined #ruby
rshetty has joined #ruby
weemsledeux has joined #ruby
echevemaster has quit [Client Quit]
yfeldblum has quit [Ping timeout: 260 seconds]
echevemaster has joined #ruby
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weemsled_ has quit [Ping timeout: 256 seconds]
tlarevo has joined #ruby
nonks has joined #ruby
Morkel has joined #ruby
charliesome has joined #ruby
iamjarvo has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
echevemaster has quit [Client Quit]
echevemaster has joined #ruby
<Blizzy> anyone know any ways of hashing a password? I'm using Sinatra and Sqlite3.
nacho-chips has joined #ruby
<Blizzy> I'm using Ruby 1.9.3.
<Areessell_> Base64
<Areessell_> Base64.encode64('given_password') == some_user.encrypted_password
<Blizzy> thanks, Areessell_.
<Areessell_> Not a problem.
jonr22 has joined #ruby
nacho-chips has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
Abhijit has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 240 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davasaurous has quit []
sumark has quit [Remote host closed the connection]
Abhijit has joined #ruby
sumark has joined #ruby
siwica has quit [Ping timeout: 265 seconds]
mdarby has joined #ruby
echevemaster has quit [Quit: WeeChat 1.0.1]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
x1337807x has joined #ruby
gsd has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 255 seconds]
<Radar> wtf
<Radar> Areessell_: Encrypting passwords using Base64 is entirely insecure!
<Radar> This is terrible advice.
<Radar> Blizzy: Please do not use Base64 to "encrypt" passwords as it can easily be decoded.
<Areessell_> Oh?
* sevenseacat blinks
<Areessell_> Okay, don't need to be shitty about it. Offer a better alternative.
<sevenseacat> whoa
<Radar> => "dGhpc2lzbXlwYXNzd29yZA==\n"
<Radar> Areessell_: It's insanely terrible advice. You should know that
<sevenseacat> whats next, rot13?
<Radar> irb(main):003:0> Base64.decode64("dGhpc2lzbXlwYXNzd29yZA==\n")
<Radar> => "thisismypassword"
<Radar> Blizzy: Use the bcrypt gem for passwords.
mengu has joined #ruby
mengu has joined #ruby
<sevenseacat> +1
<Blizzy> um.
<Blizzy> ok then.
<mdarby> for real.
<Blizzy> thanks, sevenseacat and Radar.
<Radar> Areessell_: Do you see why Base64 is bad now?
<Areessell_> Sure do. I'm a dummy.
<Radar> Areessell_: Not a dummy, just likely that you didn't know any better.
<Areessell_> Definitely.
jasooon has quit [Ping timeout: 245 seconds]
<Blizzy> so basically, I would hash the password, save it to the database, then compare the value in the database to the password the user entered?
<Radar> Blizzy: Yes.
<Blizzy> ok then. thanks, Radar.
<sevenseacat> you would hash the value the user provided, and compare it to whats in the db.
mengu has quit [Ping timeout: 258 seconds]
<mdarby> hash the password, save it, then upon login, hash the submitted password and see that it matches the DB version
<sevenseacat> if they match, then its the same password.
<Blizzy> thanks mdarby and sevenseacat. :P
<sevenseacat> yw
drPoggs has quit [Ping timeout: 256 seconds]
<mdarby> :)
ARCADIVS has joined #ruby
<mdarby> Also note that bcrypt is by default slow(er), and will increase in slowness based on the level of hashing. FWIW 10 is average for passes?
elliotlarson has joined #ruby
<mdarby> nothing too crazy, but a bit of a heads up
<Blizzy> thxs again, mdarby. :P
graydot has joined #ruby
levity_island has joined #ruby
frozon has joined #ruby
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
echevemaster has quit [Quit: WeeChat 1.0.1]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
elliotlarson has quit [Quit: WeeChat 1.0.1]
graydot has quit [Client Quit]
zubov has quit [Quit: Bye Bye!]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
mistermocha has joined #ruby
jxf has quit [Quit: Leaving]
echevemaster has quit [Quit: WeeChat 1.0.1]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
TankC has joined #ruby
<TankC> Hello!
<TankC> Is there a way to expand a hash into keyword arguments expected by a function? I'm basically looking for the equivalent of python's "foo(**bar)"
Darryl_ has quit [Quit: Connection closed for inactivity]
<Areessell_> Can you rephrase that?
levity_island has quit [Quit: levity_island]
<TankC> Areessell_: Given foo = {"bar" => 1} and def "baz(bar: nil) puts bar end", I want to expand foo as the argument list for baz
echevemaster has quit [Quit: WeeChat 1.0.1]
echevemaster has joined #ruby
<TankC> "def baz(bar: nil) puts bar end"
Cache_Money has quit [Quit: Cache_Money]
<Areessell_> def baz(options={}); options['bar']; end
<Areessell_> Something like that?
<TankC> Areessell_: yes, but using the new-style keyword arguments
mostlybadfly has quit [Quit: Connection closed for inactivity]
<TankC> arrays can be expanded using the "splat" operator but it seems hashes can not
<elemenopy> ty fo rthe help, cya guys tomorrow!
elemenopy has quit [Quit: Leaving...]
<Areessell_> You can. `def say(options); puts "Hello #{ options[:word] }!"; end` Then `say( word: 'World' )`
echevemaster has quit [Client Quit]
echevemaster has joined #ruby
<Areessell_> The keyword style arguments are simply converted into a new Hash instance and passed as an argument.
<Areessell_> I think.. I have answered incorrectly already today lol.
oo_ has quit [Remote host closed the connection]
echevemaster has quit [Client Quit]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
Yanik has quit [Ping timeout: 246 seconds]
<TankC> Areessell_: Yeah.. but I guess what I'm getting at is that I can't declare the function as "def say(word: "World") puts "Hello #{word}!" end"
<Areessell_> You sure can
Takle has joined #ruby
<TankC> Areessell_: But if I do that.. how do I then pass a hash as the argument list?
sinkensabe has joined #ruby
<Areessell_> Oh, I understand. I generally stay away from the new-style hash arguments and use something like this.. (writing up a pastie)
echevemaster has quit [Client Quit]
echevemaster has joined #ruby
<Areessell_> The merge line is what's known as a reverse merge. The Hash declared on that line is the defaults and the given argument is merged into it.
Takle has quit [Ping timeout: 260 seconds]
davedev24_ has quit []
SouL has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
psy_ has quit [Read error: No route to host]
psy_ has joined #ruby
rshetty has quit [Remote host closed the connection]
Channel6 has quit [Remote host closed the connection]
oo_ has joined #ruby
byprdct_ has joined #ruby
byprdct has quit [Ping timeout: 250 seconds]
JBreit has joined #ruby
pietr0 has joined #ruby
pietr0 has quit [Client Quit]
echevemaster has quit [Quit: WeeChat 1.0.1]
echevemaster has joined #ruby
linojon has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
terlar has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
dmyers has quit [Quit: Bye]
echevemaster has quit [Client Quit]
echevemaster has joined #ruby
jenrzzz has joined #ruby
TripTastic has joined #ruby
oleo has quit [Quit: Verlassend]
linojon_ has joined #ruby
JBreit has quit [Ping timeout: 256 seconds]
renderful has joined #ruby
linojon has quit [Ping timeout: 256 seconds]
linojon_ is now known as linojon
Boohbah has quit [Ping timeout: 246 seconds]
echevemaster has quit [Client Quit]
echevemaster has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
SouL has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
msmith_ has joined #ruby
Gabri has joined #ruby
Morkel has joined #ruby
renderful has quit [Ping timeout: 255 seconds]
Boohbah has joined #ruby
o0oo0o has joined #ruby
jasooon has joined #ruby
alem0lars|away is now known as alem0lars
echevemaster has quit [Client Quit]
msmith_ has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
yfeldblum has joined #ruby
oo_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
tvw has joined #ruby
jasooon has quit [Ping timeout: 265 seconds]
armyriad has quit [Ping timeout: 244 seconds]
drPoggs has joined #ruby
charliesome has quit [Quit: zzz]
armyriad has joined #ruby
TripTastic has quit [Ping timeout: 265 seconds]
skolman has quit [Remote host closed the connection]
abuzze has joined #ruby
mengu has joined #ruby
TripTastic has joined #ruby
Gabri has quit [Remote host closed the connection]
TripTastic is now known as JBreit2
drPoggs has quit [Ping timeout: 256 seconds]
armyriad has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
descala has quit [Ping timeout: 245 seconds]
weemsledeux has quit [Ping timeout: 265 seconds]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
razieliyo has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
noop has joined #ruby
starkhalo has quit [Ping timeout: 258 seconds]
Synthead has quit [Remote host closed the connection]
gaaz has joined #ruby
skolman_ has joined #ruby
louism2wash has joined #ruby
skolman_ has quit [Remote host closed the connection]
weemsledeux has joined #ruby
abuzze_ has joined #ruby
timonv_ has joined #ruby
michael_mbp has quit [Excess Flood]
x1337807x has joined #ruby
abuzze has quit [Ping timeout: 265 seconds]
michael_mbp has joined #ruby
levity_island has joined #ruby
patric100e99 has joined #ruby
matrixise has quit [Remote host closed the connection]
rshetty has joined #ruby
last_staff has joined #ruby
klaut has joined #ruby
poulet_a has joined #ruby
anarang has joined #ruby
Macaveli has joined #ruby
govg has quit [Read error: Connection reset by peer]
patric100e99 has quit [Ping timeout: 245 seconds]
fr1eza has joined #ruby
jonr22 has joined #ruby
rshetty has quit [Remote host closed the connection]
NightMonkey has quit [Ping timeout: 244 seconds]
kp666 has joined #ruby
govg has joined #ruby
kamil has joined #ruby
NightMonkey has joined #ruby
shortCircuit__ has joined #ruby
emmesswhy has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
timonv_ has quit [Read error: Connection reset by peer]
aganov has joined #ruby
weemsled_ has joined #ruby
dc_ has quit []
timonv_ has joined #ruby
weemsledeux has quit [Ping timeout: 265 seconds]
mchelen1 has quit [Ping timeout: 255 seconds]
bal has joined #ruby
keen_________ has quit [Read error: Connection reset by peer]
dc_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 258 seconds]
amundj has joined #ruby
keen_________ has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
b1nd has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SouL has joined #ruby
emmesswhy has quit [Quit: Leaving]
tlarevo has quit [Ping timeout: 256 seconds]
end_guy has quit [Remote host closed the connection]
Boohbah_ has joined #ruby
end_guy has joined #ruby
dumdedum has joined #ruby
b1nd has joined #ruby
Boohbah has quit [Remote host closed the connection]
codecop has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
b1nd has quit [Max SendQ exceeded]
oo_ has joined #ruby
tlarevo has joined #ruby
poulet_a has quit [Remote host closed the connection]
b1nd has joined #ruby
mchelen has joined #ruby
gaaz has quit [Ping timeout: 246 seconds]
x1337807x has joined #ruby
weemsled_ is now known as weemsledeux
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
descala has joined #ruby
oo_ has quit [Ping timeout: 256 seconds]
b1nd has quit [Max SendQ exceeded]
b1nd has joined #ruby
lsmola has joined #ruby
luriv has joined #ruby
b1nd has quit [Ping timeout: 265 seconds]
jasooon has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mchelen has quit [Ping timeout: 255 seconds]
b1nd has joined #ruby
charliesome has joined #ruby
drPoggs has joined #ruby
jasooon has quit [Ping timeout: 264 seconds]
Areessell_ has quit [Quit: (null)]
Morkel has quit [Quit: Morkel]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrDoctor has quit [Remote host closed the connection]
drPoggs has quit [Ping timeout: 256 seconds]
MrDoctor has joined #ruby
cajone has left #ruby [#ruby]
rshetty has joined #ruby
Areessell_ has joined #ruby
fr1eza has quit []
jenrzzz has quit [Ping timeout: 265 seconds]
AndChat| has quit [Quit: Bye]
lkba has joined #ruby
jenrzzz has joined #ruby
olivier_bK has quit [Ping timeout: 256 seconds]
cajone has joined #ruby
andrewlio has joined #ruby
cmxu has joined #ruby
nacho-chips has joined #ruby
patteh has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has joined #ruby
qba73 has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
mityaz has joined #ruby
thsig has joined #ruby
oo_ has joined #ruby
JohnBat26 has joined #ruby
tlarevo_ has joined #ruby
tlarevo has quit [Ping timeout: 250 seconds]
francisfish has joined #ruby
CustosLimen has quit [Ping timeout: 256 seconds]
jheg has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
govg has quit [Quit: leaving]
andikr has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thsig has quit [Remote host closed the connection]
Juanchito has joined #ruby
decoponio has joined #ruby
oo_ has joined #ruby
francisfish has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
jsaak has joined #ruby
msmith_ has joined #ruby
oo_ has quit [Ping timeout: 260 seconds]
<dc_> would it be faster to use filter or to use reduce and build up objects with transients/persistents?
<dc_> woops, wrong channel
Dude007 has quit [Remote host closed the connection]
msmith_ has quit [Ping timeout: 245 seconds]
atraylen has joined #ruby
jarto has joined #ruby
Nahra has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
jarto has quit [Client Quit]
oo_ has joined #ruby
byprdct_ has quit []
Xeago has joined #ruby
shortCircuit__ is now known as supermanBlack
sk87 has joined #ruby
jusmyth1 has joined #ruby
bayed has joined #ruby
RitterJack has joined #ruby
sinkensabe has quit [Remote host closed the connection]
unshadow has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
<unshadow> I want to load a string from a file and add veriables to it, I tried setting the string as "blabla#{my veriable}blabla" but ruby wont detect the #{} in the loaded string
jusmyth1 has quit [Ping timeout: 255 seconds]
jheg has quit [Quit: jheg]
jusmyth has joined #ruby
<j416> unshadow: that's two problems in one, 1) read file, 2) replace contents of string
<canton7> unshadow, nope, and it won't. there are some evil eval-y hacks you can do to get ruby to do that, but imo using erb in the file is better
<j416> and 3) write file??
* j416 shrugs
jasooon has joined #ruby
CustosLimen has joined #ruby
<unshadow> j416: only one problem, getting ruby to detect where to inject veriables in a string loaded from a file, I know how to 'read' the string... and write ?? where did you take that from ? only replaceing the #{} in the loaded string
patteh has joined #ruby
<unshadow> canton7: thanks, I'll look into erb
ta_ has joined #ruby
olivier_bK has joined #ruby
ta has quit [Ping timeout: 250 seconds]
jusmyth has quit [Ping timeout: 255 seconds]
<tmoore> unshadow: there's the sprintf approach too
<tmoore> >> "my name is: %{name}" % {name: 'Tim'}
<eval-in__> tmoore => "my name is: Tim" (https://eval.in/216423)
<j416> unshadow: your problem statement was ambiguous
<tmoore> so if you use %{} instead of #{} then you can substitute values from a hash
drPoggs has joined #ruby
<j416> unshadow: there is at least two problems 1) read file, 2) replace content of string
<tmoore> at runtime
jasooon has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
hamakn has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 244 seconds]
jusmyth has joined #ruby
hamakn has joined #ruby
<unshadow> tmoore: this sound much more elegant of a solution then using erb, ill look into it, thanks
<j416> unshadow: if your stringlooks like 'foo #{bar} baz' when you load it you still have to parse that safely
<j416> unshadow: so a templating language might be more handy
einarj has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
<j416> unshadow: just evaluating 'foo #{bar} baz' is dangerous because #{bar} can contain _any_ ruby code
<j416> not just a variable
danjordan has joined #ruby
sinkensabe has joined #ruby
<unshadow> this is a great point j416, thanks I'll keep that in mind
<j416> :)
<tmoore> The %{} / sprintf solution doesn't have that problem, since it can only access what you pass in the hash, and can't evaluate arbitrary expressions
<j416> yup
jusmyth has quit [Ping timeout: 264 seconds]
<j416> good point that
jusmyth has joined #ruby
workmad3 has joined #ruby
nonks has quit [Ping timeout: 246 seconds]
<tmoore> although you would need to watch out to escape any other sprintf formatting characters
<tmoore> in the source text
visof has joined #ruby
Xeago_ has joined #ruby
jonr22 has joined #ruby
bigkevmcd has joined #ruby
davidhq has joined #ruby
alem0lars is now known as alem0lars|away
banisterfiend has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 256 seconds]
emmesswhy has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
nonks has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patric100e99 has joined #ruby
ChoiKyuSang has quit [Changing host]
ChoiKyuSang has joined #ruby
hanmac1 has joined #ruby
tesuji has joined #ruby
<hanmac1> shevy: http://xkcd.com/1442/
mikecmpbll has joined #ruby
Xeago has joined #ruby
patric100e99 has quit [Ping timeout: 272 seconds]
<workmad3> hanmac1: heh
AkashicLegend has joined #ruby
TankC has quit [Quit: WeeChat 1.1-dev]
elaptics`away is now known as elaptics
Xeago_ has quit [Ping timeout: 256 seconds]
<shevy> hmm
<shevy> does the guy type those letters? or draw them?
jenrzzz has joined #ruby
thsig has joined #ruby
<deepy> probably made a base font for it
kaspergrubbe has joined #ruby
WhereIsMySpoon has quit [Disconnected by services]
Takle has joined #ruby
<shevy> makes sense
DTSCode has joined #ruby
<shevy> deepy you look clever
<shevy> and I like your nick as well
chthon has joined #ruby
shevy is now known as sheepy
<sheepy> hey deepy
WhereIsMySpoon_ has joined #ruby
oo_ has joined #ruby
ta has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
unshadow has quit [Quit: leaving]
alex88 has joined #ruby
DTSCode is now known as dTSCode
sheepy is now known as shevy
<deepy> heyo
francisfish has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mentero has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
puppet_nob has quit [Quit: Lost terminal]
<shevy> :)
sevenseacat has quit [Remote host closed the connection]
ephemerian has joined #ruby
RitterJack has quit [Ping timeout: 264 seconds]
weemsled_ has joined #ruby
weemsledeux has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
weemsled_ is now known as weemsledeux
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
fjfish has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
francisfish has quit [Read error: Connection reset by peer]
william3 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
jusmyth has left #ruby [#ruby]
Xeago_ has joined #ruby
apeiros has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 250 seconds]
andikr has quit [Remote host closed the connection]
apeiros has joined #ruby
william3 has quit [Remote host closed the connection]
TomyWork has joined #ruby
RitterJack has joined #ruby
ptrrr has joined #ruby
andikr has joined #ruby
banister has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
dkb20k_ has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
jasooon has joined #ruby
dkb20k has quit [Ping timeout: 240 seconds]
emmesswhy has quit [Quit: Leaving]
mistermocha has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
tlarevo has joined #ruby
moritzs has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
nfk has joined #ruby
jasooon has quit [Ping timeout: 258 seconds]
mistermocha has quit [Ping timeout: 255 seconds]
Dude007 has joined #ruby
shiru_ has joined #ruby
rodfersou has joined #ruby
rdark has joined #ruby
shiru_ has quit [Remote host closed the connection]
iwishiwerearobot has joined #ruby
Abhijit has quit [Ping timeout: 245 seconds]
lockweel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.0/20141013200257]]
linojon has joined #ruby
Scotteh_ has quit [Ping timeout: 244 seconds]
pandaant has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: No route to host]
oo_ has joined #ruby
tobago has joined #ruby
Musashi007 has quit [Quit: Musashi007]
oo_ has quit [Ping timeout: 258 seconds]
rshetty_ has joined #ruby
Soda has quit [Remote host closed the connection]
psy_ has joined #ruby
dkb20k_ has quit []
dkb20k has joined #ruby
rshetty has quit [Ping timeout: 265 seconds]
jusmyth1 has joined #ruby
oo_ has joined #ruby
msmith_ has joined #ruby
timonv_ has joined #ruby
kedare has joined #ruby
timonv_ has quit [Remote host closed the connection]
frozon has quit [Ping timeout: 255 seconds]
jusmyth1 has quit [Read error: Connection reset by peer]
tercenya has quit [Read error: Connection reset by peer]
tercenya has joined #ruby
Abhijit has joined #ruby
toretore has joined #ruby
linojon has quit [Quit: linojon]
Cyrax_ has quit [Ping timeout: 255 seconds]
msmith_ has quit [Ping timeout: 256 seconds]
Nowaker has quit [Ping timeout: 256 seconds]
segv has quit [Ping timeout: 240 seconds]
Nowaker has joined #ruby
jusmyth has joined #ruby
TinkerTyper has quit [Ping timeout: 250 seconds]
timonv^ has joined #ruby
mengu has quit [Remote host closed the connection]
zarubin has quit [Quit: Leaving.]
TinkerTyper has joined #ruby
mostlybadfly has joined #ruby
it0a has quit [Ping timeout: 244 seconds]
iwishiwerearobot has quit [Remote host closed the connection]
segv has joined #ruby
zarubin has joined #ruby
zarubin1 has joined #ruby
mesamoo has joined #ruby
dh64 has quit [Ping timeout: 244 seconds]
iwishiwerearobot has joined #ruby
weemsledeux has quit [Ping timeout: 258 seconds]
Cyrax_ has joined #ruby
rshetty_ is now known as rshetty
it0a has joined #ruby
davidhq has joined #ruby
cmxu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
warreng has joined #ruby
renderful has joined #ruby
Xeago has joined #ruby
weemsledeux has joined #ruby
apeiros has joined #ruby
arup_r has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 244 seconds]
davidhq has quit [Ping timeout: 255 seconds]
Xeago__ has joined #ruby
Xeago_ has quit [Ping timeout: 272 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rshetty_ has joined #ruby
jusmyth has left #ruby [#ruby]
sk87 has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
bal1 has joined #ruby
rshetty has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
ldnunes has joined #ruby
bal has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
jasooon has joined #ruby
sevenseacat has joined #ruby
jonr22 has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
jasooon has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
arup_r has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
oo_ has quit [Read error: Connection reset by peer]
Abhijit has quit [Quit: Leaving]
_whitelogger has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
<_lazarevsky> I am generating an email which includes links
<_lazarevsky> I'd like to encode the project names
<_lazarevsky> which will then be included in the href attribute of the link
<_lazarevsky> all is well as long as the name doesn't contain the symbolks ":" or "/"
<_lazarevsky> How can I encode the name so that it's parseable by the browser?
<_lazarevsky> and doesnt break my app
rbrs has joined #ruby
benzrf|offline is now known as benzrf
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
Xeago__ has quit [Remote host closed the connection]
<bigkevmcd> _lazarevsky: have a look at URI::escape
_lazarevsky has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
govg has joined #ruby
CustosLimen has quit [Ping timeout: 265 seconds]
jusmyth1 has joined #ruby
goodenough has joined #ruby
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
snovity has joined #ruby
timonv^ has quit [Remote host closed the connection]
jusmyth1 has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
jusmyth has joined #ruby
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
BaNzounet has left #ruby [#ruby]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
Macaveli has quit [Ping timeout: 260 seconds]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
fabrice31 has quit [Remote host closed the connection]
cassianoleal has joined #ruby
<cassianoleal> is there a way to make __FILE__ expand to the actual file's path when it's a symlink?
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
<canton7> cassianoleal, googling for 'ruby expand symlink' gives File.readlink or Pathname.new(...).realpath
frozon has joined #ruby
<canton7> apparently check File.symlink? before calling File.readlink
frozon has quit [Max SendQ exceeded]
<jhass> I think .expand_path resolves symlinks too
<cassianoleal> canton7: thanks... duckduckgo with a similar query didn't return results as useful
<canton7> SO says it doesn't
<cassianoleal> jhass: it doesn't
<jhass> mmh
marr has joined #ruby
<canton7> yeah, top 2 google hits gave the info I said :P
arup_r has quit [Remote host closed the connection]
<cassianoleal> brilliant. thanks! :)
DefV_ is now known as DefV
rbrs has quit [Quit: Leaving]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
reinaldob has joined #ruby
Darryl_ has joined #ruby
mengu has joined #ruby
Hightower666 has joined #ruby
Hightower666 has quit [Excess Flood]
postmodern has quit [Quit: Leaving]
Hightower666 has joined #ruby
CustosLimen has joined #ruby
arup_r has joined #ruby
drawingthesun has joined #ruby
shredding has joined #ruby
zarubin1 has quit [Remote host closed the connection]
zarubin has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
abuzze_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
zarubin has joined #ruby
zarubin1 has joined #ruby
theotherstupidgu has joined #ruby
Takle has quit [Remote host closed the connection]
Timgauthier has joined #ruby
abuzze has joined #ruby
rshetty_ has quit [Ping timeout: 255 seconds]
rshetty has joined #ruby
abuzze has quit [Remote host closed the connection]
fsapo has joined #ruby
jimbach has joined #ruby
tlarevo_ has joined #ruby
abuzze has joined #ruby
thsig has quit [Remote host closed the connection]
Takle has joined #ruby
tonybird has joined #ruby
tlarevo has quit [Ping timeout: 245 seconds]
klaut has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrfoto has joined #ruby
tonybird has quit [Client Quit]
abuzze has quit [Ping timeout: 245 seconds]
abuzze_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
KC9YDN has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
SpookyEndCoder is now known as BackEndCoder
rshetty has quit []
rshetty has joined #ruby
Macaveli has joined #ruby
weemsledeux has quit [Read error: Connection reset by peer]
BaNzounet has joined #ruby
<BaNzounet> is there an easy way to convert these kind of date : '2014-10-31T04:59:42.54576485Z' into timestamp?
sk87 has joined #ruby
luminor has joined #ruby
iinzg has quit [Read error: Connection reset by peer]
<jhass> BaNzounet: Time.strptime or Time.parse
jusmyth has quit [Quit: Leaving.]
luminor has quit [Client Quit]
tesuji has quit [Ping timeout: 256 seconds]
kobain has joined #ruby
msmith_ has joined #ruby
luminor has joined #ruby
Hightower666 has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
jusmyth has joined #ruby
mentero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kamil has quit [Quit: Leaving...]
itspots has joined #ruby
Timgauthier is now known as timgauthier_away
atraylen has quit [Ping timeout: 258 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
msmith_ has quit [Ping timeout: 272 seconds]
timgauthier_away is now known as Timgauthier
Macaveli has quit [Remote host closed the connection]
mentero has joined #ruby
Macaveli has joined #ruby
iamjarvo has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 258 seconds]
St_Marx has joined #ruby
ndrei_ has quit [Ping timeout: 255 seconds]
mentero has quit [Client Quit]
mentero has joined #ruby
jottr has joined #ruby
benzrf is now known as benzrf|offline
banister has joined #ruby
timonv_ has joined #ruby
<shevy> jhass you use zsh?
yfeldblum has joined #ruby
timonv_ has quit [Ping timeout: 256 seconds]
rdark has quit [Quit: leaving]
rdark has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 1.0.1]
mentero has quit [Quit: Textual IRC Client: www.textualapp.com]
rdark has quit [Quit: leaving]
yfeldblu_ has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
Takle has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
shazaum has joined #ruby
max96at|off is now known as max96at
shazaum has quit [Changing host]
shazaum has joined #ruby
JBreit2 has quit [Ping timeout: 260 seconds]
_JamieD_ has quit [Quit: _JamieD_]
goodenough has quit [Remote host closed the connection]
doev has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
renderful has joined #ruby
arup_r has quit [Remote host closed the connection]
soasme has joined #ruby
jonr22 has joined #ruby
theotherstupidgu has quit [Ping timeout: 258 seconds]
theotherstupidgu has joined #ruby
arup_r has joined #ruby
benzrf|offline is now known as benzrf
renderful has quit [Ping timeout: 244 seconds]
_JamieD_ has joined #ruby
benzrf is now known as benzrf|offline
SouL has quit [Ping timeout: 255 seconds]
jonr22 has quit [Ping timeout: 260 seconds]
zorak8 has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
abuzze_ has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
o0oo0o has quit [Ping timeout: 246 seconds]
abuzze_ has joined #ruby
jimbach_ has joined #ruby
theotherstupidgu has quit [Ping timeout: 255 seconds]
luminor has quit []
lw has joined #ruby
lw has quit [Max SendQ exceeded]
jasooon has joined #ruby
moritzs has quit [Remote host closed the connection]
lw has joined #ruby
theotherstupidgu has joined #ruby
mengu has quit [Remote host closed the connection]
exadeci has joined #ruby
mengu has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
DrCode has quit [Remote host closed the connection]
gnzh has joined #ruby
spastorino has joined #ruby
_5kg has quit [Ping timeout: 265 seconds]
rshetty has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
jimbach_ has quit [Remote host closed the connection]
<BaNzounet> jhass: thanks ;)
AlSquirrel has joined #ruby
Morkel has joined #ruby
Takle has quit [Client Quit]
DrCode has joined #ruby
alem0lars|away is now known as alem0lars
phutchins has joined #ruby
<alem0lars> is there a way to define an anchor for a YAML property that has an alias as value?
<alem0lars> e.g.: foo: &foo baz
Takle has joined #ruby
g0bl1n has joined #ruby
<alem0lars> bar: &bar *foo
<pontiki> alem0lars: if there is, i will be very happy
<pontiki> as such, i've not found one :(
dkphenom has joined #ruby
<alem0lars> pontiki: lol? Isn't a way to define something like: bar: &bar *foo
<alem0lars> didn't know
<pontiki> does that work?
<alem0lars> no :)
siwica has joined #ruby
patric100e99 has joined #ruby
visof has quit [Remote host closed the connection]
<alem0lars> i get and error: something like expected "block_end ...."
visof has joined #ruby
<jhass> do you mean: foo: &foo\n <<: *bar ?
Xeago has joined #ruby
<alem0lars> this:
<alem0lars> ab: &ab "a"
<alem0lars> ac: &ac
<alem0lars> <<: *ab
avril14th has joined #ruby
<alem0lars> gives me an error
sinkensabe has quit [Read error: Connection reset by peer]
<jhass> ah, that way. No, I don't think it's possible
<apeiros> alem0lars: are you trying to write this in ruby code?
<alem0lars> YAML, then parsing using psych (ruby lib)
phutchins has quit [Ping timeout: 264 seconds]
psy_ has quit [Remote host closed the connection]
<alem0lars> apeiros, jhass : now it works... nevermind :)
Xeago has quit [Remote host closed the connection]
<alem0lars> apeiros, jhass : ty, foo: &foo\n <<: *bar works as expected
patric100e99 has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 258 seconds]
thsig has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
Xeago has joined #ruby
davidhq has joined #ruby
sinkensabe has joined #ruby
nonks has joined #ruby
aclearman037 has joined #ruby
abuzze_ has quit [Remote host closed the connection]
_tpavel has joined #ruby
abuzze has joined #ruby
paulfm has joined #ruby
Dude007 has quit []
yfeldblum has joined #ruby
<arup_r> Why am I getting empty array? https://gist.github.com/aruprakshit/edbedd366c97bf022ef4
Xeago has quit [Remote host closed the connection]
<Areessell_> What are the contents of `doc`? Did the HTML download correctly?
<arup_r> Yes...
fvt has joined #ruby
<Areessell_> Then use an online xpath tool on the html to make sure your xpath is valid and correct..
Kruppe has quit [Quit: ZNC - http://znc.in]
zarubin has quit [Quit: Leaving.]
zarubin1 has quit [Quit: Leaving.]
sinkensabe has quit [Read error: Connection reset by peer]
<jhass> arup_r: there simply are no option elements under that select
<arup_r> there are.. I can see. while I am inspecting..
abuzze has quit [Ping timeout: 256 seconds]
<Areessell_> Right, not really a Ruby problem. Rework your xpath and it should work.
<elaptics> I ran this in the console on that page and you get some options - I presume these are what you're after? $("#divAttributes select option")
jusmyth has left #ruby [#ruby]
jimbach has joined #ruby
<jhass> arup_r: inspecting in your browser? likely some JS inserts them then
atomical has joined #ruby
Kruppe has joined #ruby
<arup_r> Yes.. In browser.
<Areessell_> Webkit based browsers have built in inspection/debug windows
<jhass> elaptics: arup_r using inspectors operates on the generated DOM, not the raw html returned
<elaptics> arup_r: if you turn javascript off and refresh the page do you still see the options?
yfeldblum has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
<arup_r> let me see..
<elaptics> jhass: yep, just confirming that they are indeed what arup_r wants
<jhass> curl the page, there are no options
<elaptics> there's the answer then
<arup_r> If I do view page source.. options are not there..
<arup_r> Got the reason..
<arup_r> Then how would I get those values?
<elaptics> yay for javascript :(
<arup_r> Humm :-(
<jhass> check where the data used to generate them comes from
abuzze has joined #ruby
linojon has joined #ruby
kp666 has quit [Remote host closed the connection]
jerius has joined #ruby
soasme has quit [Remote host closed the connection]
momomomomo has joined #ruby
64MAAYGF9 has joined #ruby
1JTAAVIF2 has joined #ruby
soasme has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
dion has quit [Quit: ZNC - http://znc.in]
alem0lars is now known as alem0lars|away
adac has joined #ruby
<adac> I currently get a pages html blob with mechanize like this: "blob = @agent.get('http://example.com').content" now this returns me ASCII-8BIT encoding. Any ideas on how to get UTF8 enconding back?
64MAAYGF9 has quit [Client Quit]
1JTAAVIF2 has quit [Client Quit]
dreamfighter has quit [Quit: Leaving]
ta has joined #ruby
VanillaGoat has joined #ruby
soasme has quit [Remote host closed the connection]
soasme has joined #ruby
anarang has quit [Quit: Leaving]
<elaptics> adac: you can force the encoding on a string with #force_encoding
VanillaGoat_ has quit [Ping timeout: 255 seconds]
<arup_r> elaptics: Any idea? How can I make it work?
braincrash has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
<arup_r> from where you got this ?
Akagi201 has joined #ruby
<jhass> Network inspector
tlarevo_ has quit [Remote host closed the connection]
soasme has quit [Ping timeout: 265 seconds]
<shevy> his secret underground network
<adac> elaptics, I see aI can do it directly on the string
<apeiros> adac: determine the proper encoding the document has (http headers, html head), String#force_encoding to set it to that, then String#encode to transcode it to utf-8
drawingthesun has quit [Ping timeout: 260 seconds]
<adac> hmm is this a good idea? Can there nothing go wrong?
<apeiros> elaptics: blind force_encoding is a bad advice.
<arup_r> This is a JSON I see.. But I am writing a crawler.. where I need to crawl through the page... to get out data
shelling_ has joined #ruby
<apeiros> adac: if you just blindly force_encode, you can end up with garbled data. the content must be valid utf-8 for just using force_encode to work
triple_b has joined #ruby
TinkerTyper has quit [Ping timeout: 265 seconds]
Zesty has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
<elaptics> apeiros: yeah, planned to type more info - got sidetracked as I'm in the middle of running some updates for a client
<adac> apeiros, I see. Hmm so my situation is: The sting/blob I get is according to "LOG.debug(blob.encoding)" ASCII-8BIT S
<elaptics> but you basically added everything I was going to say :)
TinkerTyper has joined #ruby
<apeiros> adac: ascii-8bit is an IMO bad name for "binary". as said, your first step is either knowing, or figuring, which encoding the content correctly should have.
_5kg has joined #ruby
<adac> so now what do I need to do exactly again? "determine the proper encoding the document has" -> does this mean detect the strings encoding?
<elaptics> adac: the site where you're requesting the data from - what's the encoding on the headers
<adac> ok So I need to get the headers encoding
jbw has joined #ruby
<elaptics> adac: e.g. if you open the page in a web browser and inspect the response headers what does that tell you
<apeiros> adac: you don't need the headers encoding. you need the header which tells you content-type+encoding.
<apeiros> but it doesn't always contain encoding. also it sometimes conflict with what the html part reports.
william3_ has joined #ruby
<apeiros> and if you find all of this very finicky - yes, it is.
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
shazaum has joined #ruby
<apeiros> programmers of most systems utterly failed to implement a viable encoding determination mechanism.
mgorbach has quit [Ping timeout: 258 seconds]
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby
linojon has quit [Quit: linojon]
<adac> apeiros, elaptics yeah it definitely is finicky...
banister has quit [Max SendQ exceeded]
soasme has joined #ruby
Hightower666 has joined #ruby
* apeiros should probably write a tutorial on how to deal with encodings
<apeiros> sooo many lost souls :)
banister has joined #ruby
banister has quit [Max SendQ exceeded]
kaspergr_ has joined #ruby
<adac> apeiros, yeah that would be a good idea! Could you finish it until tomorrow please? ;)
<apeiros> depends. how much do you pay? :-p
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<adac> I need to talk with my boss then I guess :D
<elaptics> jeg2 has a few articles on the topic http://graysoftinc.com/character-encodings
Takle_ has joined #ruby
<adac> he has all the monay ;)
banister has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
banister has quit [Max SendQ exceeded]
Soda has joined #ruby
<adac> thanks elaptics I will read trough this until apeiros is finished :)
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Takle has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jasooon has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
benzrf is now known as benzrf|offline
visof has quit [Quit: Lost terminal]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
mgorbach has joined #ruby
<adac> Ok so, lets make an example, with http header plgun of firefox I determined that the page I fetch with mechanize has "Content-Type: text/html; charset=utf-8
<adac> ". So now what is the next step, knowing the content type and the charset?
<apeiros> force_encode('utf-8')
<apeiros> and since that's already the target encoding, no further step is required.
<adac> apeiros, and if the page would show another content type/ enconding?
benzrf|offline is now known as benzrf
<adac> what would be the steps then?
jottr has quit [Ping timeout: 258 seconds]
<apeiros> if you had "Content-Type: text/html; charset=iso8859-1", then: content = content.force_encoding('iso-8859-1').encode('utf-8')
<adac> apeiros, now I see! Thank you very much!
<adac> elaptics, also to you mate, thanks a lot!
jasooon has quit [Ping timeout: 265 seconds]
<apeiros> however, note that: a) header and html can have conflicting information, b) both header and html may tell you it's encoding X, but the content is not valid in encoding X
jimbach has quit [Remote host closed the connection]
<adac> apeiros, oh wow that would be bad
<elaptics> adac: the usual sign of that is weird characters on the web page like squares
<apeiros> e.g. your website might tell you it's utf-8, yet contain byte sequences which are invalid in utf-8. populare examples: pages with user generated content which don't properly sanitize and thus embedd e.g. iso-8859-1 without converting first.
<apeiros> adac: it is bad. the situation is rather horrible. it's a potpourri of utter bullshit :-(
<elaptics> it's especially bad when you have user generated content that is added to a database which is encoded differently
<jhass> all just because people like shevy refuse to use utf-8 by default :P
<apeiros> with encodings like utf-8, you have a chance to spot it, using .valid_encoding?. but with e.g. windows-1252 or mac-roman, you have very little chance since those are binary encodings where every byte is valid.
mgorbach has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
rylev has joined #ruby
<apeiros> lets face it: coders suck at encodings. they suck at planning for encodings. and they fail at sanitizing.
oo_ has joined #ruby
MrDoctor has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
ndrei_ has quit [Ping timeout: 260 seconds]
mgorbach has joined #ruby
benzrf is now known as benzrf|offline
soasme has quit [Remote host closed the connection]
phutchins has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
tier has joined #ruby
jenrzzz has joined #ruby
<shevy> 21 September 2014: <jhass> meh, still unicode is still broken
<jhass> shevy: still out of context
sinkensabe has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jbw has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
arya_ching has joined #ruby
shelling_ is now known as shelling
avril14th has quit [Remote host closed the connection]
<hanmac1> 02 November 2014: <shevy> still out of context
mdarby has joined #ruby
moritzs has joined #ruby
yfeldblum has joined #ruby
<shevy> wat
<shevy> ok
<shevy> let me find a hanmac quote
alem0lars|away is now known as alem0lars
mrfoto has quit []
yfeldblum has quit [Ping timeout: 272 seconds]
it0a has joined #ruby
supermanBlack has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
devdazed has quit [Quit: Computer has gone to sleep.]
sinkensabe has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
rshetty has joined #ruby
arup_r has quit [Remote host closed the connection]
arya_ching has quit []
rismoney1 has joined #ruby
enebo has joined #ruby
sailias has joined #ruby
jbw has joined #ruby
adriancb has joined #ruby
linojon has joined #ruby
jimbach has joined #ruby
_maes_ has joined #ruby
jhwhite has joined #ruby
tier_ has joined #ruby
danfried has quit [Quit: WeeChat 0.4.2]
ldnunes has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
tier has quit [Ping timeout: 272 seconds]
msmith_ has joined #ruby
zorak8 has joined #ruby
zorak8 has quit [Max SendQ exceeded]
<shevy> damn hanmac1
<shevy> I can't find a memorable quote from you
zorak8 has joined #ruby
IceDragon has joined #ruby
msmith_ has quit [Client Quit]
oo_ has joined #ruby
msmith_ has joined #ruby
kaspergrubbe has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
kaspergr_ has quit [Read error: Connection reset by peer]
tier_ has quit [Remote host closed the connection]
nonks has quit [Remote host closed the connection]
tier has joined #ruby
jzinedine has joined #ruby
<shevy> you people need to become funnier so I can collect more quotes from you
<pontiki> you just need to get better at recognizing humour
oo_ has quit [Ping timeout: 260 seconds]
razieliyo has joined #ruby
allcentury has joined #ruby
o0oo0o has joined #ruby
Hightower666 has quit [Read error: Connection reset by peer]
psy_ has quit [Read error: Connection reset by peer]
Avahey has joined #ruby
sk87 has joined #ruby
renderful has joined #ruby
blenny has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
jottr has quit [Client Quit]
jottr has joined #ruby
tier_ has joined #ruby
kamil has joined #ruby
vyorkin has joined #ruby
o0oo0o has quit [Ping timeout: 246 seconds]
tier_ has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
tier has quit [Read error: Connection reset by peer]
blenny has joined #ruby
tier has joined #ruby
niKeITA has joined #ruby
willywos has joined #ruby
<niKeITA> hi
<shevy> hi niKeITA
Alina-malina has quit [Ping timeout: 255 seconds]
renderful has quit [Ping timeout: 255 seconds]
beef-wellington has joined #ruby
<niKeITA> i would you rewrite this: parse if @feeds && @feeds.entries.any?
<canton7> rewrite how?
<shevy> well you check two conditions here
Alina-malina has joined #ruby
<niKeITA> shevy, yes
<shevy> you could write a method that checks for both
moritzs has joined #ruby
<shevy> but the original logic can not become much smaller unless you find a way to eliminate at least one of those requirements
<niKeITA> the first one shortcut to avoid nomethod in case there is no @feeds
droidburgundy has joined #ruby
Channel6 has joined #ruby
iamjarvo has joined #ruby
<shevy> yeah, that is what people usually do when they use &&
<shevy> exit if game_over? and player_is_frustrated?
<elaptics> @feeds.try(:entries).any?
<shevy> exit if @game_over and @player_is_frustrated
lw has quit [Quit: s]
<niKeITA> i was think of : parse if @feeds.entries.try(:any?)
<shevy> what is .try?
<niKeITA> assuming htere is entries for a feed
<elaptics> niKeITA: that's no good if @feeds itself is nil
<niKeITA> then shoud go this way: parse if @feeds.try(:entries).try(:any?)
iamjarvo has quit [Client Quit]
<niKeITA> but the i prefere the first one with &&
<elaptics> niKeITA: if you can guarantee that @feeds is not nil and is a feed object then there'd be no need to test for @feeds in the first place
SqREL has joined #ruby
<niKeITA> cannot guarantee, @feeds object is returned from a service
momomomomo has quit [Quit: momomomomo]
jimbach has quit [Remote host closed the connection]
<niKeITA> shey, try method Invokes the public method whose name goes as first argument just like public_send does, except that if the receiver does not respond to it the call returns nil rather than raising an exception.
<Fire-Dragon-DoL> how SEXY is ruby! There is no other definition. When you watch a woman you can clearly says if it's sexy or not. Same goes for ruby, when you watch it, you can clearly say it's sexy
<niKeITA> shevy
jimbach has joined #ruby
krz has joined #ruby
<jhass> shevy: ActiveSupport magic
oo_ has joined #ruby
sepp2k has joined #ruby
dblessing has joined #ruby
<niKeITA> jhass, i think that try method is not an ActiveSupport magic but it belong to Object
<jhass> niKeITA: You think wrong
<jhass> it's added to Object and NilClass by ActiveSupport
havenwood has joined #ruby
<niKeITA> try is defined on Object,
Alina-malina has quit [Ping timeout: 244 seconds]
<niKeITA> ah ok
<niKeITA> np
<shevy> k
<shevy> Fire-Dragon-DoL are you a bot test
<Fire-Dragon-DoL> shevy: nope! :P
<shevy> k
<Fire-Dragon-DoL> lol
davedev24_ has joined #ruby
<Fire-Dragon-DoL> shevy: I'm just a happy ruby programmer, lol
<shevy> that is good
jasooon has joined #ruby
_whitelogger has joined #ruby
<Areessell_> That's how you'd read any file. Parsing the file on the other hand..
bigkevmcd has quit [Ping timeout: 264 seconds]
<Areessell_> If the string is is plain ascii, then you should be able to just File.read. I would scan it, though.
<shevy> you mean first read it in anyway or?
techminer has joined #ruby
<Areessell_> Read from the file line by line.
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
<Areessell_> Why load the whole thing into memory when you only need the first bit
<Areessell_> File.open, then File.read line until it results in something containing /\/Count/,
freezey has joined #ruby
<Areessell_> Once it finds that line, stop reading, parse out the digit.
DaniG2k has joined #ruby
psyprus has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
livingstn has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
yfeldblum has joined #ruby
bigkevmcd has joined #ruby
niKeITA has joined #ruby
patric100e99 has joined #ruby
techminer has left #ruby [#ruby]
oo_ has joined #ruby
Macaveli has joined #ruby
<shevy> makes sense
fawefeawfewa has quit [Ping timeout: 245 seconds]
t_mmyv has joined #ruby
balazs has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
<Areessell_> Here I made an example: http://pastie.org/9693396
<Areessell_> I tested with a 6 page pdf I randomly downloaded and got those results.
<shevy> ohhhh
<shevy> sandal just replied
<Areessell_> So it only reads the line while the match is nil.
patric100e99 has quit [Ping timeout: 256 seconds]
<shevy> here is the prawn solution that was offered:
starkhalo has joined #ruby
<shevy> (it is actually part of the test suite)
lolmaus has quit [Quit: Konversation terminated!]
<shevy> page_analysis = PDF::Inspector::Page.analyze(pdf)
<shevy> page_analysis.pages.size # <-- like 50 pages
<shevy> ok Areessell_
theotherstupidgu has quit [Quit: leaving]
<Areessell_> Oh, right on.
<Areessell_> All that work for nothing...
<Areessell_> Just kidding =p I just wanted to see if it really was that easy.
oo_ has quit [Ping timeout: 256 seconds]
<Areessell_> The only part I missed was it needed to be open with the binary mode.
<shevy> well it was not necessarily for nothing
<shevy> I would be content loading all into memory!!!
theotherstupidgu has joined #ruby
Takle_ has quit [Remote host closed the connection]
<Areessell_> I found Prawn to be excellent at generating PDFs, but had horrible experiences parsing anything but text with it. This was about 3 years ago, though.
davedev2_ has quit [Read error: Connection reset by peer]
oleo has joined #ruby
davedev24_ has joined #ruby
<shevy> hehe
<shevy> yeah, I have had problems with it years ago too
robh71 has joined #ruby
<shevy> lots of warnings were spit out onto the commandline due to another program
robh71 has quit [Max SendQ exceeded]
freezey has quit [Remote host closed the connection]
<shevy> they fixed that since then, and I also found out that you can simply reassign to $VERBOSE or whatever it was... while ugly, at least it suppresses the warning messages, then I can restore the original setting again once it is all loaded
robh71 has joined #ruby
jobewan has joined #ruby
freezey has joined #ruby
<Areessell_> Sounds like a bit of a headache
mostlybadfly has quit [Quit: Connection closed for inactivity]
pandaant has quit [Quit: Lost terminal]
rodfersou has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
Timgauthier has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Timgauthier is now known as timgauthier_away
rodfersou has joined #ruby
lolmaus has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
DivineEntity has joined #ruby
linojon has quit [Quit: linojon]
DaniG2k_ has joined #ruby
rylev_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
linojon has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
ndrei has joined #ruby
<shevy> do you run your .rb files with the -w switch?
DaniG2k has quit [Read error: Connection reset by peer]
<Areessell_> I've been working in MRuby lately. I just completely wiped my macbook, copied my projects on, `cd`'d into my MRuby project, built it, and it just worked first try. It's a huge project too with database models and CLI/GUI interfaces... I change to a Rails project which is just a blog with Twitter Bootstrap.. Took me almost an hour and a half to hash out the problems to get it
<Areessell_> running.
<Areessell_> The only thing that sucks is I often have to remake my gems as MRuby gems.
adamholt has quit [Ping timeout: 260 seconds]
Morrolan has quit [Ping timeout: 260 seconds]
danshultz has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
ndrei_ has joined #ruby
moritzs has joined #ruby
<Areessell_> Naw.
gf3 has quit [Excess Flood]
<Areessell_> I rarely run my ruby files directly.
gf3 has joined #ruby
sk87 has joined #ruby
Morrolan has joined #ruby
danshultz has joined #ruby
rylev has quit [Ping timeout: 255 seconds]
mattp_ has quit [Read error: Connection reset by peer]
<Areessell_> I build every application as if it is a library, then I make an executable file that loads the library and runs the main loop. Or create a command line interface to the libraries methods.
mattp_ has joined #ruby
adamholt_ has joined #ruby
mengu has quit []
lkba has joined #ruby
mesamoo has joined #ruby
ursooperduper has joined #ruby
rkalfane has joined #ruby
iamjarvo has joined #ruby
ldnunes has joined #ruby
psy_ has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Takle has joined #ruby
snath has quit [Ping timeout: 255 seconds]
gregf has joined #ruby
blenny has quit [Ping timeout: 256 seconds]
davedev24_ has quit [Ping timeout: 272 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
charliesome has quit [Quit: zzz]
tzero has joined #ruby
blenny has joined #ruby
benzrf|offline is now known as benzrf
chipotle has joined #ruby
sk87 has joined #ruby
davedev24_ has joined #ruby
arya_ching has joined #ruby
axl_ has joined #ruby
centrx has joined #ruby
niKeITA is now known as niKeITA_away
zorak8 has quit [Ping timeout: 256 seconds]
sevenseacat has quit [Quit: Leaving.]
anddam has joined #ruby
<anddam> when called as regular user does gem only install stuff into user's directory?
lampd1 has quit []
gsd has joined #ruby
Boohbah_ has quit [Ping timeout: 246 seconds]
Boohbah has joined #ruby
panini has joined #ruby
PaulePanter has quit [Ping timeout: 250 seconds]
otherj has joined #ruby
<canton7> anddam, depends. some distros set an option in .gemrc which forces this, I think by default it'll try and install system-wide and fail because of permissions
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ohcibi has quit [Ping timeout: 260 seconds]
lest has quit [Ping timeout: 250 seconds]
ccooke has quit [Ping timeout: 245 seconds]
zly has quit [Ping timeout: 272 seconds]
drizz has quit [Ping timeout: 272 seconds]
caveat- has quit [Ping timeout: 260 seconds]
rikai has quit [Quit: No Ping reply in 180 seconds.]
end_guy has quit [Ping timeout: 246 seconds]
zly has joined #ruby
caveat- has joined #ruby
<anddam> canton7: confirmed
ohcibi has joined #ruby
renderful has joined #ruby
<anddam> I'll hit man/google to install as user, thanks
AkashicLegend has quit [Ping timeout: 246 seconds]
lest has joined #ruby
<canton7> --user-install iirc
<canton7> pass it to gem, or put it in .gemrc
iamjarvo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
iamjarvo has quit [Client Quit]
AlHafoudh has quit [Ping timeout: 255 seconds]
jxf has joined #ruby
hanmac1 has quit [Quit: Leaving.]
vyorkin has quit [Read error: No route to host]
sonOfRa has quit [Ping timeout: 250 seconds]
parus has quit [Ping timeout: 258 seconds]
kalleth has quit [Read error: Connection reset by peer]
haasn has quit [Ping timeout: 250 seconds]
drkyro has joined #ruby
sonOfRa has joined #ruby
yano has quit [Read error: Connection reset by peer]
parus has joined #ruby
kalleth has joined #ruby
tagrudev has quit [Remote host closed the connection]
zB0hs has joined #ruby
noop has quit [Ping timeout: 265 seconds]
ccooke has joined #ruby
slawrence00 has joined #ruby
jasooon has joined #ruby
drizz has joined #ruby
Channel6 has quit [Quit: Leaving]
AlHafoudh has joined #ruby
jenrzzz has joined #ruby
rikai has joined #ruby
starkhalo has left #ruby ["WeeChat 1.1-dev"]
livathinos has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PaulePanter has joined #ruby
<anddam> installing, thanks again
benzrf is now known as benzrf|offline
<anddam> gem help install, useful reading
DrCode has quit [Ping timeout: 246 seconds]
havenwood has quit [Ping timeout: 246 seconds]
benzrf|offline is now known as benzrf
vyorkin has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
jasooon has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
benzrf is now known as benzrf|offline
haasn has joined #ruby
Boohbah has quit [Ping timeout: 246 seconds]
St_Marx has quit [Ping timeout: 246 seconds]
last_staff has quit [Remote host closed the connection]
moritzs has joined #ruby
snath has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rikai has quit [Quit: No Ping reply in 180 seconds.]
otherj has quit [Quit: .]
rkalfane has joined #ruby
dkb20k has quit [Remote host closed the connection]
bal1 has quit [Quit: bal1]
livathinos has joined #ruby
mikepack has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
arya_ching has quit [Ping timeout: 264 seconds]
lmickh has joined #ruby
livathinos has quit [Client Quit]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aganov has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 265 seconds]
roolo has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
<anddam> see you
apeiros has joined #ruby
anddam has left #ruby ["WeeChat 1.0"]
Xeago has joined #ruby
Spami has quit [Client Quit]
jimmyhoughjr has joined #ruby
rostam has quit [Remote host closed the connection]
gmacka has joined #ruby
mikepack has quit []
sinkensabe has joined #ruby
oo_ has joined #ruby
thsig has quit [Remote host closed the connection]
roolo has joined #ruby
rostam has joined #ruby
mikepack has joined #ruby
mdarby has quit [Remote host closed the connection]
jfran has joined #ruby
mdarby has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
rikai has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
WhereIsMySpoon_ has quit [Quit: No Ping reply in 180 seconds.]
mdarby has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
akamel has joined #ruby
vyorkin has quit [Read error: No route to host]
WhereIsMySpoon_ has joined #ruby
mdarby has joined #ruby
Alina-malina has quit [Quit: https://twitter.com/AleenaMaleena]
Xeago has quit [Remote host closed the connection]
SpaceKookie has joined #ruby
moritzs has quit [Ping timeout: 256 seconds]
_maes_ has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
thsig has joined #ruby
oo_ has quit [Ping timeout: 272 seconds]
SolarSailor has joined #ruby
livingstn has joined #ruby
yano has joined #ruby
<alem0lars> How to alias a value from an anchor in YAML?
<canton7> whit what? try adding more words to your question
<alem0lars> I've tried '<<: *myanchor'
adac has quit [Ping timeout: 250 seconds]
mdarby has quit [Read error: Connection reset by peer]
vyorkin has joined #ruby
mdarby has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei_ has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 265 seconds]
mdarby has quit [Max SendQ exceeded]
aclearman037 has quit [Quit: I'm out!]
mdarby has joined #ruby
aclearman037 has joined #ruby
tlarevo has joined #ruby
<alem0lars> Given something like:
<alem0lars> "#422300"
<alem0lars> darker-brown: &darker-brown
<alem0lars> I want to reference darker-brown (using alias)
<alem0lars> from another YAML key that is itself an anchor
<alem0lars> for example:
<alem0lars> default-fg: &default-fg
<alem0lars> but '<<:' doesn't work..
<alem0lars> <<: *darker-brown
<alem0lars> without <<: i get an error
<alem0lars> using '<<:' I get: "default-fg"=>{"<<"=>"#422300"}
<alem0lars> when parsing that YAML with psych
<alem0lars> which obviously isn't what I want...
mdarby has quit [Max SendQ exceeded]
fabrice31 has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 265 seconds]
mdarby has joined #ruby
mdarby has quit [Max SendQ exceeded]
vyorkin has quit [Ping timeout: 240 seconds]
<DaniG2k_> what's a must get Ruby or more generally programming book?
<DaniG2k_> I am not a beginner but I'd say intermediate and I want to hone my skills more
mdarby has joined #ruby
vyorkin has joined #ruby
Wolland has joined #ruby
siwica has quit [Ping timeout: 258 seconds]
mdarby has quit [Max SendQ exceeded]
<lsone> Ruby Pickaxe book
<lsone> one sec for link
mdarby has joined #ruby
<alem0lars> DaniG2k_: Metaprogramming Ruby
doev has quit [Ping timeout: 256 seconds]
<pontiki> DaniG2k_: are you looking to improve general programming skills, or ruby specifically?
william3_ has quit [Remote host closed the connection]
<alem0lars> DaniG2k_: In my opinion it's best ruby book so far
<DaniG2k_> pontiki: both, I suppose
<lsone> Absolute best book, by far. imho
<DaniG2k_> ok thanks
<DaniG2k_> I will get that
<lsone> I have been doing this for years upon years, and I still crack that book open every now and then to look up things
<pontiki> pickaxe book is a great reference
<DaniG2k_> alem0lars: thanks
<pontiki> i loved metaprogramming ruby, so instructive on ruby's object model
Takle has quit [Remote host closed the connection]
phutchins has joined #ruby
<alem0lars> pontiki: yeah.. I won't start programming real ruby stuff without reading that book
ndrei has joined #ruby
<pontiki> but to my mind, the 2 best ruby books are eloquent ruby and confident ruby
cpt_yossarian has joined #ruby
<pontiki> POODR is also great
<lsone> eloquent and confident are both great books as well, i agree
ndrei_ has joined #ruby
<lsone> to be honest though ... the best way to learn is just dig in
<alem0lars> I need some YAML gurus
<pontiki> aye, practice practice practice3
<lsone> documentation has come so far over the years ... you can learn as you go, so long as you learn the structure and syntax early.
<pontiki> also, see one, do one, teach one
<lsone> ^
<alem0lars> I'm wasting an entire day on a f***ing YAML file :(
<lsone> only a day? lol
<mdarby> ^^^
<pontiki> complicated YAML?
<DaniG2k_> ordered Metaprogramming in Ruby :D
<pontiki> make sure you get volume 2, DaniG2k_
<DaniG2k_> volume 2?
<pontiki> of metaprogramming in ruby
<alem0lars> pontiki: not really complicated... I just want to store some colors in a YAML file...: https://gist.github.com/alem0lars/f5694ed5c2bd38e66388
<DaniG2k_> I'm getting this one Metaprogramming Ruby 2: Program Like the Ruby Pros (Facets of Ruby)
<pontiki> yes, that's it! :)
arup_r has joined #ruby
<DaniG2k_> :D
<DaniG2k_> woohoo
<alem0lars> as you can see I store some colors in keys (with anchors)
<alem0lars> later on, I refer to them using aliases
<alem0lars> But some keys both declare anchors and use aliases
<alem0lars> because they need to be referred too
<pontiki> yeah, we chatted that earlier
Hijiri has quit [Quit: WeeChat 1.0.1]
phutchins has quit [Ping timeout: 264 seconds]
<alem0lars> yeah but it didn't solve
<alem0lars> because '<<:' generates another key
<pontiki> i didn't have a solution :(
<pontiki> exactly
BlackGea_ has joined #ruby
<alem0lars> pontiki: this is the output that I get: https://gist.github.com/alem0lars/cfc17d39669572340a86
<pontiki> alem0lars: do you know you can put more than one file in a gist?
rkalfane has joined #ruby
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has quit [Remote host closed the connection]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alem0lars> pontiki: :D updated right now: https://gist.github.com/alem0lars/f5694ed5c2bd38e66388
Takle has joined #ruby
<alem0lars> anyways, I didn't figure out a way to do that..
<canton7> alem0lars, iirc << merges hashes?
Darryl_ has quit [Ping timeout: 260 seconds]
<pontiki> anyway, i've wanted to do the same sort of thing and have never been able to figure it out
<pontiki> yes, << merges hashes, not single values
freezey has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 250 seconds]
<pontiki> that yaml.info docs are rather opaque to me as well
<canton7> alem0lars, can you also pastie your parsing code? makes it easier for us to play
lorn has joined #ruby
moritzs has joined #ruby
<alem0lars> canton7: actually middleman is parsing it for me, but I can create a little manual parsing demo too... wait just a moment
<canton7> something like a runnable thingy on ideone would be perfect
<canton7> armchair debugging at its finest
<lorn> Hi, I'm following the Get Started with Rails and def article_params didn't work, I mean I still get a forbiden message
freerobby has joined #ruby
<alem0lars> canton7: you can use it directly in IRB for example (no external deps are required)
<pontiki> whittle it down to just the essential bits.
<alem0lars> canton7: where instead of "data/colors.yml" you put the file path
Darryl_ has joined #ruby
<alem0lars> canton7: require "yaml"; YAML.load(File.read("data/colors.yml")
<jhass> alem0lars: YAML.load_file('foo.yml')
<alem0lars> jhass: yeah, even better :) ty
freezey has joined #ruby
<jhass> lorn: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
red_horned_rihno has joined #ruby
<jhass> lorn: but you need to replace params[:article]
<alem0lars> jhass, canton7, pontiki: I've updated the gist with that snippet
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scotteh has joined #ruby
<lorn> jhass thanks I thought that you are a bot :P
iwishiwerearobot has quit [Remote host closed the connection]
<canton7> alem0lars, 1.9.3, at least, thinks that's invalid yaml: http://ideone.com/bSDfqJ
apeiros has joined #ruby
CustosLimen has quit [Ping timeout: 264 seconds]
<canton7> hmmm ok, something else is going on
aspires has joined #ruby
phutchins has joined #ruby
<shevy> cats in canton7's computer?
<canton7> aah it's the merging it doesn't like
_tpavel has quit [Quit: Leaving]
<alem0lars> canton7: I don't get any errors in ruby 2.1.3
<alem0lars> canton7: maybe it's ruby 1.9.1 <-> 2.1.3 incompatibility?
<canton7> yeah, I think so
alex86 has joined #ruby
<canton7> 2.1.3 learned how to parse merging strings, whereas 1.9.3 errors
chrishough has joined #ruby
louism2wash has joined #ruby
<canton7> so something like 'default-df: *darker-grey works
thsig has quit [Remote host closed the connection]
<alem0lars> yeah but if you also use anchors it won't
<canton7> yeah
jasooon has joined #ruby
jenrzzz has joined #ruby
<alex86> hey I have a design question...I am trying to construct a mirror of a page and update it every hour. Right now I am simply downloading the other page before my site loads in the same process, but its too slow and unreliable. So... (continuing)
tkuchiki has quit [Remote host closed the connection]
Rahul_Roy_ has joined #ruby
Bish_ is now known as Bish
shredding has joined #ruby
<alex86> The two choices Im thinking of, are to use JavaScript to make a "loading" page that loads immediately while I load the actual mirror from the other site, or use Amazon Web Services to host a copy of the other site that I pull in the same process that loads my page
Alina-malina has joined #ruby
<twohlix> alex86: its not really a mirror if you're loading the page everytime you hit your app, its a proxy.
<alex86> Ok
terlar has quit [Ping timeout: 258 seconds]
<alex86> Well its a thing that has to the show a copy of the other page, thats all :)
cpt_yossarian has quit [Ping timeout: 255 seconds]
<twohlix> if you want a mirror, you duplicate once and serve from your app, every so often you check for changes. if theres a change, you swap out the old stuff to the new stuff
<twohlix> okay.
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 244 seconds]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
spyderman4g63 has joined #ruby
jasooon has quit [Ping timeout: 244 seconds]
<alex86> The thing is that I cant just simply use a proxy, because actually I am going to modify the page
spyderman4g63 has quit [Remote host closed the connection]
cndiv has joined #ruby
spyderman4g63 has joined #ruby
red_horned_rihno has quit [Ping timeout: 265 seconds]
red_horned_rihno has joined #ruby
moritzs has quit [Ping timeout: 264 seconds]
timonv_ has quit [Remote host closed the connection]
<twohlix> alex86: so you dont want to load the page every time you hit your app
dseitz has joined #ruby
j_mcnally has joined #ruby
<twohlix> alex86: you need to store it on your side, then modify it, then serve it up, and if your process runs for long periods of time you have to approach one of the harder problems in computer science: cache invalidation
mikecmpbll has quit [Quit: ciao.]
AlexRussia has quit [Ping timeout: 255 seconds]
Alina-malina has quit [Ping timeout: 256 seconds]
<alex86> What I am thinking of maybe doing, because the page is pretty reliable, is loading every time I hit the app but just having a JavaScript thing that says "loading" so the user knows its loading. But with this solution, I dont understand how I know the page has actually loaded and maybe I need to use polling or something
treehug88 has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
spyderman4g63 has quit [Ping timeout: 245 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alem0lars> canton7, jhass, pontiki: I didn't found a way to do that... If you're interested I've added a temporary bad fix (but the only that I know) as a comment in https://gist.github.com/alem0lars/f5694ed5c2bd38e66388 ..
beneggett has joined #ruby
<canton7> alem0lars, what you're trying to do isn't valid yaml
<canton7> so it's no wonder that it doesn't do what you expect
<canton7> << is only for hashes, nothing more
<alem0lars> canton7: oh.. not '<<:'
<alem0lars> ??
<canton7> that works for hashes
<canton7> you can't merge single values: it makes no sense
<canton7> something like 'default-fg: *darker-grey' does what you want, except that it doesn't create a reference
tlarevo_ has joined #ruby
<canton7> I'd expect 'default-fg: &default-fg\n *darker-grey' to work, but it doesn't
<twohlix> alex86: just load some static html that defaults to "LOADING" being shown and use some javascript to hit your app and wait on teh results. No polling needed then
tier_ has joined #ruby
<twohlix> it'll wait or timeout
chipotle has quit [Quit: cya]
<alem0lars> canton7: yeah, and apparently there isn't a simple way to fix that... I took a look at psych but it's a pain
patric100e99 has joined #ruby
Takle has quit [Remote host closed the connection]
<canton7> yeah - that is a pain :P
IceDragon has quit [Ping timeout: 240 seconds]
<canton7> but I wouldn't rely on invalid yaml and hack around a weird implementation of that invalidness :P
<alem0lars> canton7: yeah you're right..
beneggett has quit [Client Quit]
IceDragon has joined #ruby
fsapo has quit [Ping timeout: 256 seconds]
<alem0lars> canton7: because in that way i'm exploiting a (in my opinion) bug: using '<<:' in that way should raise an exception
<canton7> yeah, and it does under 1.9.3
einarj has quit [Remote host closed the connection]
<canton7> your ruby version just thinks it's a hash key
tlarevo has quit [Ping timeout: 258 seconds]
tier has quit [Ping timeout: 245 seconds]
robh71 has joined #ruby
pauly_oc has joined #ruby
gnzh has quit [Ping timeout: 265 seconds]
DaniG2k_ has quit [Quit: Lost terminal]
patric100e99 has quit [Ping timeout: 255 seconds]
BadQuanta has joined #ruby
aspires has quit []
nyanz has quit []
aspires has joined #ruby
beneggett has joined #ruby
aspires has quit [Client Quit]
tier_ has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
gsd has joined #ruby
alex88 has quit []
<alex86> twohlix the page request to the other website though is happening on the server side, so I think for my JavaScript to know that this is complete, I need polling right?
tier has joined #ruby
<twohlix> no, just make it wait on it
lsmola has quit [Ping timeout: 245 seconds]
b1nd has quit [Ping timeout: 255 seconds]
b1nd has joined #ruby
aspires has joined #ruby
benzrf|offline is now known as benzrf
bigkevmcd has quit [Ping timeout: 256 seconds]
andikr has quit [Remote host closed the connection]
beneggett has quit [Client Quit]
siwica has joined #ruby
treehug88 has quit [Ping timeout: 258 seconds]
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
beneggett has joined #ruby
helpa has quit [Remote host closed the connection]
drkyro has joined #ruby
helpa has joined #ruby
danjordan has quit [Quit: danjordan]
mityaz has quit [Quit: Leaving]
Takle has joined #ruby
Andriama1itra has quit [Ping timeout: 250 seconds]
sfr^ has quit [Excess Flood]
sfr^ has joined #ruby
gmacka has quit [Ping timeout: 258 seconds]
Andriamanitra has joined #ruby
shazaum has quit [Ping timeout: 244 seconds]
shazaum has joined #ruby
Takle has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
lw has joined #ruby
spyderman4g63 has joined #ruby
Takle has joined #ruby
bricker`work has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
triple_b has joined #ruby
skolman_ has joined #ruby
<alex86> twohlix Ok so I guess I just make an Ajax request and wait for the data
<twohlix> yep
helpa has quit [Remote host closed the connection]
<twohlix> see how well that works.
helpa has joined #ruby
<alex86> good, thanks
skolman_ has quit [Remote host closed the connection]
treehug88 has joined #ruby
danman has joined #ruby
skolman_ has joined #ruby
shredding has quit [Quit: shredding]
thagomizer has joined #ruby
cpt_yossarian has joined #ruby
alex86 has quit []
Takle has quit [Ping timeout: 272 seconds]
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robh71 has left #ruby ["Textual IRC Client: www.textualapp.com"]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
Danishman has joined #ruby
ndrei_ has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 245 seconds]
fjfish has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
niKeITA has joined #ruby
SCHAAP137 has joined #ruby
chthon has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
ndrei_ has joined #ruby
bigkevmcd has joined #ruby
_whitelogger has joined #ruby
momomomomo has joined #ruby
shazaum_ has joined #ruby
<jhass> mozzarella: ?
pietr0 has joined #ruby
baroquebobcat has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
<mozzarella> take returns the items, drop returns the new list, but they don't modify the original list
_whitelogger has joined #ruby
thsig_ has quit [Ping timeout: 264 seconds]
drPoggs has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
Morkel_ is now known as Morkel
bklane has quit [Remote host closed the connection]
livingstn has quit []
bklane has joined #ruby
atraylen has joined #ruby
yfeldblum has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
BadQuanta1 has joined #ruby
x1337807x has joined #ruby
TPBallbag has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
bklane has quit [Ping timeout: 265 seconds]
shevy has quit [Ping timeout: 255 seconds]
x1337807x has joined #ruby
jimms has joined #ruby
TPBallbag has quit [Remote host closed the connection]
BadQuanta has quit [Ping timeout: 272 seconds]
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
x1337807x has quit [Max SendQ exceeded]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
jaequery has joined #ruby
freezey has joined #ruby
bklane has joined #ruby
x1337807x has joined #ruby
jaequery has quit [Max SendQ exceeded]
<michael_mbp> guys
<michael_mbp> what are $foo variables in ruby?
sk87 has joined #ruby
<jhass> globals
<jhass> forget they exist
<michael_mbp> LOL!
jaequery has joined #ruby
<michael_mbp> I have...
<michael_mbp> I never use globals
<michael_mbp> wow.
<jhass> good!
JohnBat26 has joined #ruby
<michael_mbp> (I've been doing ruby for 4+ years) hah.
<michael_mbp> I just stumbled across its use in a CoreOS example
dkphenom has joined #ruby
<benzrf> coreos
<benzrf> is that like c oreos
<jhass> c like cherry?
<benzrf> idk
<michael_mbp> suffice to say I was suprised
oo_ has quit [Ping timeout: 244 seconds]
<michael_mbp> ah no CoreOS is a fabulous little kernel.
iamjarvo has joined #ruby
<michael_mbp> you can build clusters in minutes
<michael_mbp> and it's Docker first.
oo_ has joined #ruby
<michael_mbp> any process you hand to the cluster will always be kept alive; if a node goes down, it'll automigrate that instance (being a container, it'll simply start it on a new node).
<michael_mbp> very cool stuff.
rdark has quit [Quit: leaving]
tkuchiki has joined #ruby
iamjarvo has quit [Client Quit]
michael_mbp has quit [Excess Flood]
jaequery has quit [Ping timeout: 272 seconds]
<Areessell_> Anyone know how I would turn this mathmatical function into a Ruby function? http://upload.wikimedia.org/math/0/b/f/0bfdc6c60a14ef7a8ebc8d19d0173757.png
d4nku has quit []
jaequery has joined #ruby
jasooon has joined #ruby
koderok_ has quit [Quit: koderok_]
michael_mbp has joined #ruby
oo_ has quit [Ping timeout: 256 seconds]
<jhass> Areessell_: what did you try so far?
<jhass> also what's A?
<Areessell_> A is amplitude, so a multiplier
<Areessell_> I have this here: 2/π*(sin(x)+sin(x*2)/2+sin(x*3)/3) But I'm not sure that's right
rikai has quit [Remote host closed the connection]
<jhass> run it and find out
chrishough has quit [Ping timeout: 265 seconds]
rikai has joined #ruby
<Areessell_> I want the amount of harmonics to be summed to be an argument. So the argument given for that formula would be 4
<michael_mbp> let me know what you think :)
<j416> Areessell_: just implement it as-is with a dumb loop; add some tests for it, then optimise if needed...
tkuchiki has quit [Ping timeout: 250 seconds]
shevy has joined #ruby
<j416> oh, infinity.. right
* j416 shrugs
<j416> loop { .. }
<j416> :D
<michael_mbp> but I am getting started with CoreOS, so I may migrate this; right now the host is Ubuntu trusty.
* j416 hides
<Areessell_> Instead of infinity, it would be a given number
<j416> aha, then easy
<j416> but, I must dash. o/
<Areessell_> Oh no!
* shevy starts to count up to Infinity
<jhass> n.times.map {|k| ... }.inject(:+)
nyanz has quit []
<Areessell_> I was thinking (0..number_of_harmonics).inject().with_index but I cant get that to work
jasooon has quit [Ping timeout: 250 seconds]
<Areessell_> #times returns an Enumerable?
ndrei has quit [Ping timeout: 256 seconds]
<jhass> yeah
<Areessell_> Oh of course
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> Enumerator
<Areessell_> Okay, right on. Thanks!
ndrei_ has quit [Ping timeout: 264 seconds]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Alina-malina has joined #ruby
<jhass> note it's 0 based
<jhass> so maybe just map over the range
danijoo has quit [Read error: Connection reset by peer]
<jhass> (1..n).map
danijoo has joined #ruby
<jhass> and if you start googling there's probably a smart algo for that function
chrishough has joined #ruby
<Areessell_> Hows this here: 2/PI * @harmonics.times.collect { |index| index == 0 ? sin(x) || sin(x*index)/index }
<Areessell_> Er besides the || should be a :
iangreenleaf has joined #ruby
arup_r has quit [Quit: Leaving.]
<apeiros> Areessell_: what should `number * array` return?
Avahey has quit [Quit: Connection closed for inactivity]
<benzrf> >dynamic languages
<Areessell_> That would be bad.
nateberkopec has quit [Quit: Leaving...]
<apeiros> that's what you do
<Areessell_> Oh, I need to inject at the end.
<jhass> yeah, missing inject(:+) and again 0 based while your formula is 1 based
gigetoo has joined #ruby
<Areessell_> Right, that's why I have the or in the block?
claymore has joined #ruby
<Areessell_> Er.. condition
Xeago has joined #ruby
<Areessell_> Wouldnt want to skip the fundemental, yes?
jaequery has joined #ruby
reinaldob has quit [Remote host closed the connection]
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Areessell_> Am I reading the formula wrong?
Tricon has joined #ruby
dTSCode is now known as DTSCode
reinaldob has joined #ruby
oo_ has joined #ruby
lw has quit [Quit: s]
jottr has joined #ruby
vyorkin has joined #ruby
jaequery_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
Hijiri has joined #ruby
reinaldob has joined #ruby
weaksauce has quit [Remote host closed the connection]
josephndenton has joined #ruby
auxbuss has quit [Quit: ZZZzzz…]
reinaldob has quit [Remote host closed the connection]
jheg has joined #ruby
mostlybadfly has joined #ruby
weaksauce has joined #ruby
TPBallbag has joined #ruby
iangreenleaf has left #ruby ["Leaving"]
aspires has quit []
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jaequery has quit [Ping timeout: 265 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
wldcordeiro has quit [Read error: Connection reset by peer]
Tricon_ has joined #ruby
benzrf is now known as benzrf|offline
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
josephndenton has quit [Client Quit]
oo_ has quit [Ping timeout: 255 seconds]
rylev has joined #ruby
benzrf|offline is now known as benzrf
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
michael3 has joined #ruby
benzrf is now known as benzrf|offline
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
fiodoo has joined #ruby
mattmcclure has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Scotteh has quit [Ping timeout: 244 seconds]
Tricon has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
claymore has quit [Ping timeout: 255 seconds]
nw has left #ruby ["WeeChat 1.0"]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Xiti has quit [Quit: Leaving]
icarus_ has joined #ruby
Musashi007 has joined #ruby
pauly_oc has joined #ruby
Xiti has joined #ruby
claymore has joined #ruby
rylev has quit [Client Quit]
Alina-malina has quit [Ping timeout: 260 seconds]
St_Marx has quit [Quit: Ex-Chat]
lw has joined #ruby
niKeITA is now known as niKeITA_away
aspires has joined #ruby
reinaldob has joined #ruby
DrCode has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
aspires has quit [Client Quit]
jenrzzz has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
niKeITA_away is now known as niKeITA
claw__ has quit [Remote host closed the connection]
claw__ has joined #ruby
reinaldob has joined #ruby
Scotteh has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tvw has quit []
freezey has quit [Remote host closed the connection]
wallerdev has joined #ruby
rubie has joined #ruby
hamakn has joined #ruby
shredding has quit [Quit: shredding]
aspires has joined #ruby
<michael_mbp> guys coulld you please retweet this? appreciated! https://twitter.com/bsodmike/status/529347958525804544
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
vyrus001 has quit [Ping timeout: 258 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
<rubie> hi all: suppose you have an array length n, its sorted in acending order, how would you iterate over that list so that the first time around it iterates on every element, the second time around it starts on the second element and only iterates on every second element thereafter, then it moves to the third element and iterates over ever third element...
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<wallerdev> two loops?
<rubie> right
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<rubie> but i can only get the faster loop to iterate by 1
<wallerdev> for(i = 0; i < length; i++) { for(j = i; j < length; j++) { } }
jaequery_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rubie> i dwhat would that look like in ruby
TPBallbag has quit [Remote host closed the connection]
<wallerdev> oh i see
Areessell_ has quit [Quit: (null)]
reinaldob has joined #ruby
<wallerdev> you want it to skip ahead x elements?
reinaldob has quit [Remote host closed the connection]
<wallerdev> lol
<rubie> second iteration it would only iterate 2,4,6,8
omosoj has joined #ruby
<rubie> thrid iteration it would only hit 3,6,9,12
<rubie> etc
<wallerdev> j += (i + 1)
<wallerdev> i guess
kyb3r_ has quit [Ping timeout: 255 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
chrishough has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<wallerdev> anyway the easiest way to write a for loop in ruby in that style is probably just using while loops
Hijiri has quit [Ping timeout: 255 seconds]
Shazaum has quit [Quit: Leaving]
<wallerdev> i = 0; while i < 10; blah blah blah; i+= 1
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
aspires has quit []
<havenwood> >> a = 10.downto(1).to_a; 1.upto(a.size).map { |n| a.each_slice(n).map &:first }
<eval-in__> havenwood => [[10, 9, 8, 7, 6, 5, 4, 3, 2, 1], [10, 8, 6, 4, 2], [10, 7, 4, 1], [10, 6, 2], [10, 5], [10, 4], [10, 3], [10, 2], [10, 1], [10]] (https://eval.in/216812)
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
claw___ has joined #ruby
<havenwood> though, step_by
kireevco has joined #ruby
reinaldob has joined #ruby
claw__ has quit [Ping timeout: 264 seconds]
livingstn has joined #ruby
aspires has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tlarevo has joined #ruby
chrishou_ has joined #ruby
benzrf|offline is now known as benzrf
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
chrishough has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
matti has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Hanmac> havenwood: i would say, go for that: 10.times.map {|i| 10.downto(i + 1).to_a } or something ...
<Hanmac> apeiros: spambot fiodoo
Hijiri has joined #ruby
yfeldblum has joined #ruby
reinaldob has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
wldcordeiro has joined #ruby
<benzrf> Hanmac: grose
reinaldob has quit [Remote host closed the connection]
<graft> can someone explain this one to me? I apparently don't know how to use Hash.new() properly... http://pastebin.com/CSjidAPu
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
thsig has quit []
<graft> i seem to recall reading a nice post about this phenomenon, but i don't know why it happens or how to avoid it
lw has quit [Quit: s]
<jhass> graft: use the block form
freezey has joined #ruby
claymore has quit [Quit: Leaving]
<havenwood> Hash.new { |h, k| h[k] = [] }
aspires has quit []
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
<jhass> passing it as an arg will always use the _same_ object, it doesn't #dup it
<graft> jhass: okay, i think i can see that, but why doesn't it show up in the parent hash at least?
momomomomo has joined #ruby
shredding has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
sinkensabe has joined #ruby
aspires has joined #ruby
reinaldob has quit [Remote host closed the connection]
<graft> i guess i never assign it anywhere, can't avoid that
<jhass> Hash#default is just returned, not automatically assigned to the hash
skolman has quit [Remote host closed the connection]
<jhass> *to the key
dANO_ has quit []
reinaldob has joined #ruby
livingstn has joined #ruby
aspires has quit [Client Quit]
yfeldblum has quit [Ping timeout: 240 seconds]
reinaldob has quit [Remote host closed the connection]
TPBallbag has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
g0bl1n has joined #ruby
niKeITA is now known as niKeITA_away
klaut_ has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
rubie has quit [Quit: Page closed]
chrishou_ has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> think about the behavior if you don't set a default or default_proc
<jhass> then the default is nil
<jhass> you wouldn't want every key access to create the key in the hash with nil assigned
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
aspires has joined #ruby
failshell has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 255 seconds]
klaut has quit [Ping timeout: 255 seconds]
lolmaus has quit [Quit: Konversation terminated!]
joelwallis has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tier has quit [Read error: Connection reset by peer]
<joelwallis> Hello everyone. I'm running Ruby through JRuby, installed by RVM. I need to install the Oracle driver on it. Does anyone can help me doing this?
reinaldob has joined #ruby
tier has joined #ruby
skolman_ has joined #ruby
<havenwood> joelwallis: Oracle DatabasE?
reinaldob has quit [Remote host closed the connection]
lw has joined #ruby
<joelwallis> havenwood yeah
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
<havenwood> joelwallis: Checkout the Sequel gem: https://github.com/jeremyevans/sequel#readme
<havenwood> joelwallis: and try #jruby!
<havenwood> #jruby
<pipework> JRUBY!
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<havenwood> \o/
<headius> havenwood: should be jdbc-oracle gem to go with sequel or whatever DB library you're using
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jimms has quit []
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<pipework> havenwood: Do I recall that you'll be at rubyconf?
<havenwood> headius: aha, i've never actually used oracle :O
<havenwood> pipework: Yup yup. Looking forward to going.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
znst has joined #ruby
<joelwallis> I'm not coding Ruby, just trying to run a server side project which runs on top of Java and Ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<znst> how correct is using keyword arguments to a function like this: def obvious_total(subtotal:, tax:, discount:)
<pipework> Jruby or java and ruby separately?
zz_jrhorn424 is now known as jrhorn424
niKeITA_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<joelwallis> pipework sorry. jRuby
<joelwallis> we use the Migrate of Rails to control database states. just that
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<joelwallis> I'm trying to run rake db:migrate from the project, that runs on top of JRuby, but it can't find the Oracle driver
<headius> znst: looks fine
BadQuanta1 has quit [Quit: Leaving.]
<headius> joelwallis: `bundle install` should make sure all necessary libraries are installed
<headius> from that same dir
<znst> headius: thank you, needed a sanity check, only recently on ruby 2.*
adac has joined #ruby
<headius> znst: yeah, that feature was my suggestion :-)
jonr22 has joined #ruby
<pipework> `jruby -S bundle install` right?
BadQuanta has joined #ruby
<headius> pipework: he may have jruby in PATH, but yes
<headius> or rather he may be using rake etc installed in JRuby, so -S would not always be necessary
niKeITA has joined #ruby
<pipework> headius: There's something I read about that I can't find. There was a switch that you could pass to JRuby so that the command passed after was already ran in the context of the bundler bundle.
<pipework> So rather than -S bundle exec <command>, it was -<something> <command>, right?
ClarusCogitatio has quit [Ping timeout: 272 seconds]
<headius> -G
<headius> it doesn't do the full process isolation or subshell env setup, but it will load Gemfile before RubyGems
<headius> that's the biggest piece of bundle exec
reinaldob has joined #ruby
<znst> headius: nice suggestion, glad to see keyword arguments implemented
skolman_ has quit [Remote host closed the connection]
crack_user has joined #ruby
<crack_user> hello guys
<crack_user> I try to made I deploy but when I run bundle install I get " Could not find rake-10.3.2 in any of the sources"
rshetty has joined #ruby
reinaldob has quit [Remote host closed the connection]
rkalfane has joined #ruby
noop has quit [Ping timeout: 255 seconds]
BTRE has quit [Quit: Leaving]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 255 seconds]
jasooon has joined #ruby
shosti has joined #ruby
<pipework> headius: Ah, Gemfile is the pneumonic. Thank you sir.
ClarusCogitatio has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tier_ has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tier_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tier_ has joined #ruby
tier has quit [Read error: Connection reset by peer]
rshetty has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
ndrei_ has joined #ruby
graft has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<havenwood> crack_user: Paste a Gist showing your Gemfile?
<apeiros> Hanmac: thx
reinaldob has joined #ruby
josephndenton has joined #ruby
<crack_user> I just fixed that, havenwood, thx :D
fiodoo was kicked from #ruby by apeiros [no spam.]
fiodoo has joined #ruby
josephndenton has left #ruby [#ruby]
fiodoo was banned on #ruby by apeiros [*!*@240.Red-2-138-160.dynamicIP.rima-tde.net]
fiodoo was kicked from #ruby by apeiros [no spam.]
<jhass> oh, policy change?
<apeiros> it's a bit of a windmill fight. but well…
fabrice31 has joined #ruby
jasooon has quit [Ping timeout: 264 seconds]
reinaldob has quit [Remote host closed the connection]
Darryl_ has quit [Quit: Connection closed for inactivity]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jshultz has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
maestrojed has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
xorax has joined #ruby
drocsid has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
mumm_ra has joined #ruby
chrishough has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
lw has quit [Quit: s]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
tier has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
aclearma_ has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
<josephndenton> Hullo
gsd has joined #ruby
zz_jrhorn424 is now known as jrhorn424
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
earfin has joined #ruby
<jhass> hollu
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
red_horned_rihno has quit [Ping timeout: 258 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
aclearman037 has quit [Ping timeout: 244 seconds]
<pipework> hollabackgurl
reinaldob has joined #ruby
rodfersou has quit [Quit: leaving]
jrhorn424 is now known as zz_jrhorn424
levity_island has quit [Read error: Connection reset by peer]
bauruine_ has joined #ruby
tuelz has joined #ruby
zB0hs has joined #ruby
tier_ has quit [Ping timeout: 265 seconds]
JBreit has joined #ruby
josephndenton has quit [Quit: leaving]
zB0hs has quit [Read error: Connection reset by peer]
<louism2wash> hey guys, I am trying to write an integration test for a script that reads data from STDIN, performs operations on that data, and then writes the result to STDOUT. The test I have linked fails saying that STDIN receives the read method 0 times when it expects to receive it once. Any help would be greatly appreciated. Thanks. https://gist.github.com/louism2/2a83e88eedffd8c38824
reinaldob has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
JBreit has left #ruby [#ruby]
oo_ has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
SolarSailor has quit [Ping timeout: 245 seconds]
reinaldob has joined #ruby
jrhorn424 is now known as zz_jrhorn424
kireevco has quit [Quit: Leaving.]
reinaldob has quit [Remote host closed the connection]
kireevco has joined #ruby
kireevco has quit [Client Quit]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
kireevco has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Tricon_ has quit [Remote host closed the connection]
end_guy has joined #ruby
kireevco has quit [Client Quit]
ARCADIVS has quit [Quit: ARCADIVS]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
kireevco has joined #ruby
chrishough has quit [Ping timeout: 265 seconds]
zz_jrhorn424 is now known as jrhorn424
kireevco has quit [Client Quit]
reinaldob has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
reinaldob has quit [Remote host closed the connection]
aspires has quit []
kireevco has joined #ruby
oo_ has quit [Ping timeout: 256 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
kireevco has quit [Client Quit]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
momomomomo has joined #ruby
reinaldob has quit [Remote host closed the connection]
jamto11 has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
olivier_bK has joined #ruby
tier has quit [Remote host closed the connection]
aspires has joined #ruby
josephndenton has joined #ruby
reinaldob has joined #ruby
freerobby has quit [Quit: Leaving.]
reinaldob has quit [Remote host closed the connection]
freerobby has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<shevy> yay!
<shevy> down with the spambots!
jimms has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
bauruine_ has quit [Ping timeout: 265 seconds]
chrishough has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
sinkensabe has joined #ruby
reinaldob has joined #ruby
<pipework> shevy: Except our favorite spambot, shevy. <333
ldnunes has quit [Quit: Leaving]
reinaldob has quit [Remote host closed the connection]
<shevy> I am just chatty
<soahccc> Hmm can I use pry with a script which is using readline? It works generally but pry doesn't revert readline settings after the session ends (history, completion procs, etc.).
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
bklane has quit [Remote host closed the connection]
nerium has joined #ruby
<nerium> Is there a fast way of converting a string from hex to int?
luckyruby has quit [Ping timeout: 255 seconds]
<jhass> nerium: .to_i(16)
_2easy has quit [Quit: leaving]
adac has quit [Ping timeout: 255 seconds]
<nerium> jhass: That one is flow
<nerium> *slow
<gr33n7007h> nerium, .hex
<jhass> and .unpack
<jhass> doubt any of these is faster
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
gmacka has joined #ruby
jamto11 has quit [Remote host closed the connection]
reinaldob has joined #ruby
wallerdev has quit [Quit: wallerdev]
tier has joined #ruby
<havenwood> nerium: Need a sub-millisecond response? Doing millions of em? How long does it take overall? Just curious.
jenrzzz has joined #ruby
reinaldob has quit [Remote host closed the connection]
<shevy> he is building facebook 2.0
<nerium> havenwood: About 7 sec atm
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<havenwood> nerium: Massive string size or operations or both?
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<nerium> havenwood: A big string
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jamto11_ has joined #ruby
<havenwood> nerium: we might be able to help optimize if you can Gist some code
auxbuss has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reinaldob has joined #ruby
atmosx has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<havenwood> >> start = Time.now; string = "1695516ce2a060763879d437cd6cbc4c3e23a45db7042ed733ef948b6c2b084902916d070528fb60afd7c24b094cab9df0750412c89d040e6529d0a8ec4931eb35b06d212f42066b40a5d4ac34c7efed4a7a415bf6684b027061606a5470d170865ebd1d97324435f4145be9d850094fdbea4f26461424e84ac2dd40658e750f61c912f1ea5153e04532dce42fe73fc2ec92a4b4a4bfc099f5bc1ccb0ded6a3c92439ec5b16043d4297ae8664dbe2e659f5196784387fffffffffffffff6"; 1000.time
pauly_oc has joined #ruby
<havenwood> s { string.hex }; Time.now - start
<eval-in__> havenwood => undefined method `time' for 1000:Fixnum (NoMethodError) ... (https://eval.in/216843)
<havenwood> oh boo
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<havenwood> anyways, tiny amount of time - curious how it's taking so long
sailias1 has quit [Quit: Leaving.]
sailias has joined #ruby
reinaldob has joined #ruby
<havenwood> nerium: Raspberry Pi? :P
reinaldob has quit [Remote host closed the connection]
<havenwood> Even that, must be talking massive numbers?
yfeldblum has quit [Ping timeout: 255 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
bklane has joined #ruby
linojon has quit [Quit: linojon]
jamto11_ has quit [Ping timeout: 250 seconds]
altamic has joined #ruby
freezey has quit [Ping timeout: 265 seconds]
Wolland has quit [Ping timeout: 244 seconds]
<shevy> detective havenwood shows his math savvy side today
linojon has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
adac has joined #ruby
Tricon has joined #ruby
Xeago has quit [Remote host closed the connection]
djbkd has joined #ruby
<havenwood> shevy: mathy!
jdj_dk has joined #ruby
reinaldob has joined #ruby
reinaldob has joined #ruby
auxbuss has quit [Quit: I'm gone.]
hmsimha_ has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<nerium> havenwood: Thanks, but I fixed it
reinaldob has joined #ruby
<nerium> havenwood: There was a bug in the original code making one of the arrays about 10^7 bigger then it should be
reinaldob has quit [Remote host closed the connection]
<havenwood> nerium: :O, hehe
freerobby has quit [Quit: Leaving.]
crack_user has quit [Quit: Leaving.]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<shevy> hehehe
<shevy> your code was FATTENED up
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<pontiki> what's a few million among friends, anyway
<havenwood> why can't my turkey fit in the oven? oh yeah, it's 60,000 lbs not 6 lbs
<pontiki> that's not a turkey
Cheezebox has joined #ruby
einarj has joined #ruby
<havenwood> turkeyzilla
<pontiki> that's a C-5
reinaldob has joined #ruby
<havenwood> stomp, *gobble*, stomp
djbkd has quit [Ping timeout: 258 seconds]
reinaldob has quit [Remote host closed the connection]
<pontiki> turkjirra is pissed
<atmosx> it's like if rspec scopes are working at random
chrishough has quit [Ping timeout: 264 seconds]
Tricon has quit [Ping timeout: 256 seconds]
<shevy> wow
reinaldob has joined #ruby
<shevy> turkeyzilla is on the run again
reinaldob has quit [Remote host closed the connection]
kamil has quit [Quit: Linkinus - http://linkinus.com]
<pontiki> atmosx: you're setting @u on line 90 without context for the it
<pipework> Mozilla or Lesszilla?
<atmosx> wtf is turkey-whatever
<pontiki> put it in a before block
jrhorn424 is now known as zz_jrhorn424
<shevy> atmosx this bug <nerium> havenwood: There was a bug in the original code making one of the arrays about 10^7 bigger then it should be
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<atmosx> pontiki: Why it works on line 8?
<shevy> <havenwood> why can't my turkey fit in the oven? oh yeah, it's 60,000 lbs not 6 lbs
<shevy> turkeyzilla!
<shevy> pontizilla
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<pontiki> atmosx: where are you using @user in that?
govg has quit [Quit: leaving]
<atmosx> pontiki: doesn't work in a before block, tried to use context and example but didn't work
<tuelz> manillazilla - AHHH! too much organization!
chrishough has joined #ruby
<tuelz> am I doing it right?
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<shevy> you have potential tuelz
<atmosx> pontiki: nope not using user there, I'm using 'u' variable in line 37 though, successfully
<shevy> but you have to start as a small zilla and work your way gobbling upwards slowly
<pontiki> then you lucked out, but that shouldn't work at all, either
govg has joined #ruby
<atmosx> pontiki: the fact that I'm using an SQLite3 loaded in RAM for these tests doesn't have anything to do with before(:content) not working?
reinaldob has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
reinaldob has quit [Remote host closed the connection]
<pontiki> :content isn't one of the before options
<shevy> ewww a mechanized turkey
<atmosx> pontiki: you sure? on rspec 3.0.1?
<tuelz> shevy: too hard, I'll just fade away by choice. Less responsibility than a turkey.
<pontiki> well, i've not seen it
<Blizzy> I have a question. Would it be safe to store a hashed password in a config file?
<atmosx> I did reading the manpage
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<pontiki> all i know of is :each, :all, and :suite
<atmosx> I see
sinkensa_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
<atmosx> so I should before(:each); @user = ... ; end right?
<atmosx> then run the tests
reinaldob has joined #ruby
<atmosx> tried that din't work :-/ I'll give it anothe rshot
<havenwood> Blizzy: bcrypt?
<Blizzy> that's what I'm using.
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<pipework> havenwood: I'm holding out for someone with a sense of humor to make something called dcrypt.
<atmosx> Blizzy: why not, under unix everything is a file, a database is a file once a user has access to your system he can read the database anyway.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
claymore has joined #ruby
<Blizzy> ok then, thanks, atmosx.
<Blizzy> ok, so, I have the hashed password. how do I compare the password the user typed in to the hashed password?
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
lw has joined #ruby
Areessell_ has joined #ruby
<havenwood> Blizzy: BCrypt::Engine.hash_secret password, bcrypt.salt
pabloh has joined #ruby
reinaldob has joined #ruby
<Blizzy> thank you, havenwood.
reinaldob has quit [Remote host closed the connection]
atraylen has quit [Ping timeout: 255 seconds]
<havenwood> Blizzy: but yeah, bcrypt makes sense
manzo has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
reinaldob has joined #ruby
x1337807x has joined #ruby
jaequery has joined #ruby
mdarby has quit [Quit: Textual IRC Client: www.textualapp.com]
reinaldob has quit [Remote host closed the connection]
<havenwood> Blizzy: checksums of course are out of the question
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
blackmesa has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
mdarby has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
mdarby has quit [Max SendQ exceeded]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jasooon has joined #ruby
mary5030 has quit [Remote host closed the connection]
mdarby has joined #ruby
<atmosx> pontiki: you'd something lke that right? https://gist.github.com/atmosx/e4c4fd0a7bd0ac940b4d
<atmosx> but doesn't work, @user is a nil class
reinaldob has joined #ruby
n_blownapart has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
mdarby has quit [Max SendQ exceeded]
tkuchiki has quit [Ping timeout: 240 seconds]
louism2wash has quit [Quit: This computer has gone to sleep]
TPBallbag has quit [Remote host closed the connection]
jamto11 has joined #ruby
reinaldob has joined #ruby
mdarby has joined #ruby
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
n_blownapart is now known as geezer
altamic has quit [Quit: altamic]
mdarby has quit [Max SendQ exceeded]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
redondos is now known as Guest50681
mdarby has joined #ruby
<geezer> hi anyone have time to explain this recursion prog real quick? I forget how it works: http://pastie.org/9694075
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<pipework> geezer: It calls itself
rkalfane has joined #ruby
linojon has quit [Quit: linojon]
ghostmoth has quit [Quit: ghostmoth]
mdarby has quit [Max SendQ exceeded]
<geezer> pipework: thanks, I'm *re*learning some programming after a few years. how does return work here?
sinkensa_ has quit [Read error: No route to host]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
mdarby has joined #ruby
<tuelz> geezer: until a condition is true it repeats itself.
<pipework> geezer: It returns early and prevents any further execution, making the value that was returned the value of the method.
sinkensabe has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
bricker`1ork has joined #ruby
djbkd has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
mdarby has quit [Max SendQ exceeded]
<pontiki> no, atmosx, the before block has to be *inside* a describe or context block
<pontiki> and line 12 makes no sense at all
mdarby has joined #ruby
<geezer> tuelz: pipework thanks I'm looking at it...staring at it.
linojon has joined #ruby
mdarby has quit [Max SendQ exceeded]
bricker`1ork is now known as bricker
Cheezebox has quit [Remote host closed the connection]
<pontiki> atmosx: i still don't know why you are setting @user when you never use it, though
bricker`work has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
mdarby has joined #ruby
klaut has joined #ruby
klaut_ has quit [Ping timeout: 245 seconds]
zz_jrhorn424 is now known as jrhorn424
<tuelz> geezer: just think about a recursive loop like this. It's executing top to bottom, right? Well the last thing it does at the bottom is call a method. So the last thing it does is call a method. That method happens to be itself so it literally just pretends it's just using a new instance of that method. Remove the condition `if 1==n` thing and it'll loop forever until zues comes back to save us all
<tuelz> geezer: return basically says IDGAF and leaves the loop, but you aren't returning unless you meet the condition
<pipework> tuelz: what is this zues you speak of?
<tuelz> pipework: do you have a moment to learn about thorsday and its significance to your insignificant mortal life?
<jenrzzz> geezer: it might make more sense if you use an example that actually does something
<pipework> tuelz: I've got Zeus for that.
<tuelz> pipework: you'll be receiving pamplets in the mail shortly. You're welcome.
<pipework> tuelz: Praise valhalla.
<geezer> did you see valhalla rising?
<tuelz> pipework: damnit, go back to nazi germany, you beautiful nordic man
<pipework> D'aw. D:
fmcgeough has quit [Quit: fmcgeough]
skolman has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
<geezer> jenrzzz: what sort of program would be more illustrative?
<tuelz> geezer: if you still don't get it I just thought of a badass analogy to illustrate recursive loops
<atmosx> pontiki: User needed to be created to run some tests. The thing that I was not able to use it before, probably something wrong with my syntax. Now I changed before's syntax and works though :-)
<geezer> tuelz: excellent
<atmosx> pontiki: heh ty
finisherr has joined #ruby
<finisherr> Do all threads terminate when a script terminates?
Timgauthier has joined #ruby
josephndenton has quit [Quit: leaving]
shosti has quit [Ping timeout: 272 seconds]
<tuelz> geezer: okay, you're picking your nose, and if you find a booger, you keep picking. The method here is nose_picking. So you start nose_picking and you finish nose_picking. Well, during nose_picking you met the condition, the condition was that you found a booger, so what do you do at the end of nose_picking?
josephndenton has joined #ruby
<geezer> tuelz: pipework the first n remains 5 and is not reduced by 1 ?
<jenrzzz> geezer: if you just add n to the recursive call, it will actually do what the name says it does
<havenwood> finisherr: Yeah, all Threads belong to the default ThreadGroup and go poof.
<finisherr> Ok. Good to know
<finisherr> whew
<tuelz> you call nose_picking again. You found another booger, so you call nose_pciking again. This time you didn't find a booger, so you return from nose_picking and gtfo
<geezer> thanks jenrzzz looking at that
ghostmoth has joined #ruby
freerobby has joined #ruby
<tuelz> meh, I'm pretty sure you were only confused about how n gets smaller in value and my nose_picking analogy didn't help at all, but it was still badass
<tuelz> gj tuelz you did it.
kirun has quit [Quit: Client exiting]
<finisherr> For some reason my script is hanging on a join call
gmacka has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
<havenwood> nifty since dead threads get auto-removed, but spawned threads get auto-added too
<jenrzzz> tuelz: +1
<tuelz> lol
<havenwood> finisherr: if you can Gist any code might help
niKeITA is now known as niKeITA_away
aspires has quit []
TPBallbag has joined #ruby
pietr0_ has joined #ruby
gmacka has joined #ruby
<finisherr> It seems to hang line number 499
TPBallbag has quit [Remote host closed the connection]
<finisherr> For some reason this wasn’t happening last week
pietr0 has quit [Ping timeout: 264 seconds]
pietr0_ is now known as pietr0
pietr0 has quit [Remote host closed the connection]
5EXABF34A has joined #ruby
pietr0 has joined #ruby
<finisherr> And it hangs when it gets to the second node it’s working on
<finisherr> of 3
kireevco has joined #ruby
Wolland has joined #ruby
5EXABF34A has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
<jenrzzz> finisherr: do you need a mutex to access return_status_array?
Wolland has joined #ruby
<jenrzzz> finisherr: or maybe pass a timeout to thread#join?
max96at is now known as max96at|off
<finisherr> Oh crap. So maybe both threads are trying to append the array?
<jenrzzz> finisherr: in theory the GIL should make that work correctly but idk
<jenrzzz> finisherr: to me it seems like a lot of magic is involved
<jenrzzz> finisherr: are you running this on OS X?
ramfjord has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<finisherr> CentOS 6.4
zz_jrhorn424 is now known as jrhorn424
<jenrzzz> bummer. dtrace could be handy here
<finisherr> It’s so bizzare. It was working like a charm when I was testing the script last week
nerium has quit [Quit: nerium]
<jenrzzz> same environment?
<finisherr> Yep
<jenrzzz> what version of ruby?
niKeITA_away is now known as niKeITA
<finisherr> 1.8.7
niKeITA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Read error: Connection reset by peer]
<jenrzzz> ouch
<havenwood> finisherr: Use a supported Ruby, 1.9.3+. I'm kinda distracted but you might consider whether there's a mutated object mid-each, which could be prevented with: threads.first.join until threads.empty?
rippa has joined #ruby
freerobby has quit [Quit: Leaving.]
aclearman037 has joined #ruby
<finisherr> Don’t have control over the ruby version on this node unfortunately
aclearma_ has quit [Read error: Connection reset by peer]
<havenwood> mm
sinkensabe has quit [Ping timeout: 256 seconds]
<jenrzzz> finisherr: any particular reason you want to use threads here?
<finisherr> I want to run these checks so the deployments are faster
<finisherr> concurrently
olivier_bK has quit [Ping timeout: 256 seconds]
benzrf|offline is now known as benzrf
<jenrzzz> they will never actually run concurrently on MRI ruby
<jenrzzz> the slowest part is the HTTP request, right?
linojon has quit [Quit: linojon]
<finisherr> Hmm
<havenwood> jenrzzz: things run concurrently on MRI ;P
<finisherr> I suppose I don’t need to use threading
<jenrzzz> havenwood: yeah, but it's not the same as native threads
<jenrzzz> havenwood: in my experience it usually won't give you much of a performance boost and makes things significantly more complicated
jrhorn424 is now known as zz_jrhorn424
renderful has quit [Remote host closed the connection]
<havenwood> jenrzzz: i'm not suggesting it's a good idea to use threads, just that they're perfectly concurrent in MRI
mary5030 has joined #ruby
j_mcnally has joined #ruby
<havenwood> jenrzzz: one Ruby thread is backed by one native, operating system thread
<jenrzzz> havenwood: in 1.8.7?
<havenwood> no, green threads
<havenwood> jenrzzz: touche
<jenrzzz> havenwood: hehehe. i was questioning myself too
aclearman037 has quit [Ping timeout: 265 seconds]
<havenwood> jenrzzz: still, concurrent != parallel
aclearman037 has joined #ruby
<jenrzzz> havenwood: for sure. and there are definitely times where threads are worth using
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
<jenrzzz> finisherr: you might want to look into an HTTP library that lets you do concurrent/asynchronous requests like tpyhoeus or em-http
<jenrzzz> typhoeus*
<havenwood> jenrzzz: for sure, though i look forward to a higher level abstraction and a warning when threads are used directly
<havenwood> jenrzzz: +1
<havenwood> finisherr: there're a couple HTTP client gems that handle this elegantly
<toretore> concurrent http requests in mri will do exactly what you want in terms of time saving
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> yeah, no global lock
wallerdev has joined #ruby
<havenwood> IO \o/
joelwallis has quit [Quit: Saindo]
adac has quit [Ping timeout: 240 seconds]
aclearman037 has quit [Client Quit]
<finisherr> A HA
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<finisherr> well, I think the problem acutally lied elsewhere
<finisherr> outside of the threading situation
claymore has quit [Ping timeout: 245 seconds]
<jenrzzz> anybody going to rubyconf this month?
<pipework> I tried to ask havenwood, but he's ignoring me. :(
louism2wash has joined #ruby
<havenwood> pipework: i responded!
jamto11 has joined #ruby
<havenwood> pipework: i'm going and excited
pauly_oc has joined #ruby
<havenwood> pipework: you don't have me on ignore, right...?
<havenwood> :P
<toretore> finisherr: if it "hangs" on Thread#join it might just mean it's blocked waiting for a response
<havenwood> i've accidentally done that before
<havenwood> toretore: good point
<havenwood> toretore: expected hang
linojon has joined #ruby
<jenrzzz> i'm gonna eat so many california burritos
<jenrzzz> there are like 5 taco shops i want to hit up
<havenwood> someone tell pipework to unblock me for a response >.>
<pipework> havenwood: Oh sorry. Well, I hope to see you there. You can call me an asshole in person.
<havenwood> pipework: ahha, i'm not block :)
<toretore> it's much easier on the internet
<havenwood> pipework: nice!
Musashi007 has joined #ruby
<pipework> toretore: But it's ever so much more obvious in person.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<pipework> "Look at that ginger kid, he's probably an asshole with no friends."
<toretore> and you can make lewd gestures
timonv_ has quit [Remote host closed the connection]
<havenwood> i need to get a hotel room, been procrastination
<havenwood> s/ion/ing
aclearman037 has joined #ruby
kyle__ has joined #ruby
timonv_ has joined #ruby
<havenwood> pipework: hoping to do a lightning talk on idiomatic transducers in ruby, working on some slides
claymore has joined #ruby
<pipework> havenwood: That seems cool. I'm writing a talk on signed_form, but only to give it at my company tomorrow.
jonr22 has joined #ruby
<havenwood> pipework: do a lightning talk too, open signup!
<kyle__> Is there a way of mimiking "mktemp -u" with the Tempfile library, OTHER than making a tempfile, getting the path and unlinking it?
<kyle__> That just seems....messy.
jimmyhoughjr has joined #ruby
<gsd> hello. i'm a hiring manager - just wondering if anyone has tips / suggestions for where to find and recruit great engineers.
BadQuanta has quit [Ping timeout: 260 seconds]
<toretore> havenwood: has you made write the transducers on ruby??
<toretore> elance.com
auxbuss has joined #ruby
<gsd> we're on both of these - just not getting many great submissions.
<gsd> assetavenue.com is our site
Hijiri has quit [Ping timeout: 265 seconds]
<havenwood> toretore: yeah, i've re-implemented them. i was considering wrapping cognitect-labs' transsducers-ruby library too, since it's neat stuff but they don't accept pull requests.
<pipework> There's also weworkremotely
freerobby has joined #ruby
<gsd> jenrzzz: that's a new one - i'll give it a go
zz_jrhorn424 is now known as jrhorn424
<havenwood> toretore: i was hoping to introduce them in a ruby-friendly way
<jenrzzz> kyle__: why do you want to do this?
<pipework> havenwood: I want to be somewhat informed about this topic when I see your lightning talk, what might a ginger google?
<toretore> havenwood: yeah i suppose the cognitect stuff isn't idiomatic ruby
<havenwood> toretore: it's idiomatic clojure in ruby :P
<toretore> lol
<pipework> havenwood: Oh interesting.
timonv_ has quit [Ping timeout: 256 seconds]
<kyle__> jenrzzz: Because I want to generate a unique pathname to move an existing file to, before overwriting it with a new version of it.
<toretore> i started writing my own implementation but then i got distracted
<toretore> that hapens a lot with me
<jenrzzz> gsd: oh, didn't realize you guys were in LA. you might want to check out your local user groups
<havenwood> jenrzzz: i'm in LA
jonr22 has quit [Ping timeout: 250 seconds]
<gsd> jenrzzz: usually, they hate when people go there to try and recruit
<toretore> man i am so sick of rusty
<gsd> why don't you apply?
<gsd> :D
<jenrzzz> gsd: really? that's half the fun
<pipework> gsd: I don't mind recruiting, I just dislike recruiting companies that show up to events.
<gsd> interesting - so you think devs go specifically for the purpose of being recruited
<havenwood> unless they bring pizza and beer**
<havenwood> and don't talk*
<gsd> ha
<pipework> I don't show up to your events looking for a date, which reminds me do you have a sister?
<jenrzzz> gsd: no, but if you are an interesting company or have interesting work, people will be interested
<gsd> well, thankfully i'm an engineer myself and not a recruiter
nateberkopec has joined #ruby
<jenrzzz> gsd: then you'll fit in :)
<gsd> but i know from my own experience how annoying actual recruiters can be
<toretore> engineers make the best recruiters
jrhorn424 is now known as zz_jrhorn424
<pipework> gsd: Be not only open to remote developers, but be awesome at being a part of a distributed team, you'll have a better shot at getting some pretty awesome developers.
<toretore> they know wtf they're actually looking for
Morkel has quit [Quit: Morkel]
<pipework> toretore: They also know how to party. :D
<gsd> we're about to close a $20M Series A and need engineers to help build out our real estate lending platform
<havenwood> gsd: i haven't been lately but i've met some good people at Carbon Five high night in Santa Monica
<jenrzzz> gsd: hmmm, I guess LA ruby is a bit more uptight about it than SD Ruby
zz_jrhorn424 is now known as jrhorn424
<toretore> pipework: no party like a well-engineered party
<gsd> pipework: that's good feedback
<pipework> toretore: har har
<pipework> :D
Hijiri has joined #ruby
freerobby has quit [Client Quit]
<havenwood> /s/high/hack >.>
<toretore> high night lol
<havenwood> can't chock that up to dyslexia
freerobby has joined #ruby
<gsd> there's a lot of opportunity here for the right engineer - we're basically going to be ramping up from a handful of engineers to dozens more in the next year
momomomomo has quit [Ping timeout: 256 seconds]
<gsd> i suppose the other question i have is: what excites you guys the most about a new job opportunity? this will help me set us up to attract top engineers as well as keep them (culture is at the top of my personal list)
jrhorn424 is now known as zz_jrhorn424
<havenwood> 1% battery... buh bye
<jenrzzz> kyle__: just call #unlink on the tempfile after calling Tempfile.new
mary5030 has quit [Remote host closed the connection]
zz_jrhorn424 is now known as jrhorn424
<toretore> gsd: the work itself is very important
<pipework> havenwood: Are transducers stateless?
mary5030 has joined #ruby
<havenwood> pipework: no, not necessarily
<gsd> toretore: tell me more
djbkd has joined #ruby
fabrice31 has joined #ruby
<pipework> havenwood: interesting :D
<havenwood> i need to find a place to plug in
<toretore> gsd: what sort of work you'll be doing, how you'll be doing it, etc
<gsd> if i told you that you'd be working on building a billion dollar crowdfunded lending platform - is that exciting
pabloh has quit [Quit: Saliendo]
havenwood has quit [Remote host closed the connection]
<toretore> i mean more like the technical stuff
<gsd> in a startup, it can be difficult to pitch what you'll be doing technically 6 months or a year from now
<toretore> it's important to know what it's for though
<toretore> sure
<jenrzzz> gsd: are you excited about it?
<gsd> fuck yea
<toretore> one big one for me is the amount of freedom i'd be given to do stuff my way
<kyle__> jenrzzz: Allright. I was just hoping there was some cleaner way people who programmed more than once a month knew about :)
<toretore> and trust
<gsd> i mean, i left a really great gig to join this company. we have adam chapnick, cofounder indiegogo
<kyle__> Or once every three months, as things have been going lately for me.
<gsd> we have so many great startup stars here - it helps that i also love real estate
yairgo has joined #ruby
momomomomo has joined #ruby
<gsd> toretore: tell me more about trust - what do you mean?
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<toretore> gsd: if you trust me to do my job and that i know what i'm doing
<toretore> trust in my decisions
<toretore> aka don't tell me what to do
<gsd> interesting
mistermocha has joined #ruby
<yairgo> if I do resolver = Resolv::DNS.new; resolver.getaddress('google.com'); the result is not honoring my hosts file. Is there an easy way to make ruby check the hosts file for resolving dns entries before hitting a dns server?
<gsd> i'm not sure i agree with just hiring engineers and letting them do whatever they want (if that's what you're saying)
<pipework> Trust – Something you should have very little of.
timonv_ has joined #ruby
<toretore> what i mean is it shouldn't be top-down decisions all the time
<jenrzzz> yairgo: what OS are you on?
<yairgo> redhat
<gsd> you mean you want more input into product decisions or technical decisions or both
shosti has joined #ruby
<gsd> because that's not really trust
chrishough has joined #ruby
mary5030 has quit [Remote host closed the connection]
<toretore> but then again, i'm never going to be an employee as long as i can avoid it
<gsd> that's something different
<gsd> haha
<gsd> fair
fabrice31 has quit [Ping timeout: 245 seconds]
<pipework> gsd: I bet you'd get a lot of people's attention if, at the engineering level, you implemented a holacracy or meritocratic structure over a job-title hierarchy.
<pipework> But that's a bit on the edgy side.
<jenrzzz> yairgo: i think you need to use a Resolv::Hosts
chipotle has joined #ruby
<toretore> gsd: i mean, tell me, in broad terms, what the goal is and trust me to make the technical decisions to best get there
<gsd> being an engineer myself, i can recognize (or i'd like to think I can) great talent when it happens. in those cases, i ALWAYS try to find ways to give that person more and more responsiblity
<gsd> smart people get bored quickly
<toretore> might be different when you have an engineer as a manager
aspires has joined #ruby
aclearman037 has quit [Quit: I'm out!]
<yairgo> jenrzzz: my problem is that using faraday to post to another computer I need to use an internal ip address instead of the external, I don't think I have access to that level
<yairgo> jenrzzz: I was wondering if there is a goofy config setting somewhere
<yairgo> jenrzzz: if I run ping on the machine it gives me the correct IP. I thought ruby would use the same ip that ping finds but apparently not
TinkerTyper has quit [Ping timeout: 260 seconds]
<jenrzzz> access to what level? if you're using a Resolv::DNS instance, it will always ask the nameservers configured in resolv.conf
<toretore> yairgo: a hack: `host example.com`
<jenrzzz> if you want to have it do the right thing, just call the class #getaddress
<jenrzzz> i.e: Resolv.getaddress('localhost')
jasooon has joined #ruby
paulfm has quit []
shredding has quit [Quit: shredding]
St_Marx has joined #ruby
m8 has quit [Quit: Sto andando via]
jhwhite has quit [Quit: jhwhite]
<gsd> i am offering a $500 referral fee if someone refers me a great dev
supermanBlack has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
chrishough has joined #ruby
emmesswhy has joined #ruby
jasooon has quit [Ping timeout: 256 seconds]
ndrei has quit [Ping timeout: 240 seconds]
ndrei_ has quit [Ping timeout: 244 seconds]
cpt_yossarian has quit [Quit: Leaving]
Shazaum has joined #ruby
sailias has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
willgorman has quit [Ping timeout: 240 seconds]
decoponyo has joined #ruby
jheg has quit [Quit: jheg]
renderful has joined #ruby
bmurt has quit []
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<pipework> gsd: That's a bit on the low side of referral fees these days
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> .Most recruiters offer between 1 iPad and $1000.
nyanz has joined #ruby
robbyoconnor has joined #ruby
<pipework> Though I value iPads on the low end, because it takes effort to convert it back to cash.
znst has quit [Ping timeout: 244 seconds]
willgorman has joined #ruby
danman has quit [Quit: danman]
chudler has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
decoponio has quit [Ping timeout: 255 seconds]
tier has quit [Remote host closed the connection]
auxbuss has quit [Quit: I'm gone.]
goodenough has joined #ruby
skolman has quit [Remote host closed the connection]
<gsd> pipework: i personally haven't seen many companies offering a public referral fee like we are
tsunamie has quit [Ping timeout: 264 seconds]
<gsd> most work through recruiters (which we are also doing)
<gsd> or have internal referral programs that offer more, which we also do
spyderman4g63 has quit [Ping timeout: 255 seconds]
tsunamie has joined #ruby
tsunamie has quit [Max SendQ exceeded]
psyprus has quit [Read error: Connection reset by peer]
skolman_ has joined #ruby
djbkd has joined #ruby
psyprus has joined #ruby
failshell has quit []
<pipework> gsd: Well, $500 is a bit of a really low referral fee compared to everything I've seen except for large corporations that also pay $250 for any patents an employee can procure.
momomomomo has quit [Quit: momomomomo]
timonv^ has joined #ruby
narcan has joined #ruby
claymore has quit [Quit: Leaving]
<geezer> pipework: still wondering jenrzzz , does that recursion problem use a sort of container? i.e. where is the simple addition going on being stored?
<pipework> gsd: It's not being stored, it's being passed into the recursive tail call.
tsunamie has joined #ruby
tsunamie has quit [Max SendQ exceeded]
djbkd has quit [Remote host closed the connection]
<jenrzzz> geezer: on the stack
<chudler> When in irb, I type class < A; def self.to_s; 'boo';end;end. Then I type A followed by newline. A.to_s is executed. My question is, what --if anything--- is executed inside of a normal script having the same?
<pipework> jenrzzz: That's not really an important thing to note in ruby.
tsunamie has joined #ruby
<jenrzzz> pipework: it is when you are trying to grok recursion
<geezer> pipework: that is what is holding me up. I know its simple and I can do it in my head, but could you explain the stack in this case?
<pipework> jenrzzz: Egh, not really.
<jenrzzz> yeah, let me draw it
timonv_ has quit [Ping timeout: 272 seconds]
marr has quit [Ping timeout: 250 seconds]
<pipework> geezer: You're getting a value and passing it into the next call of that method.
<pipework> It does that until the return condition is met.
tsunamie has quit [Max SendQ exceeded]
djbkd has joined #ruby
<geezer> but when the value returned is 3, the next round is (3-1)+3 is 5, not 6.
supermanBlack has joined #ruby
<geezer> *which is
<pipework> Can you link the source again?
jdj_dk has quit [Remote host closed the connection]
lw has quit [Quit: s]
<geezer> http://pastie.org/9694075 really appreciate it
tsunamie has joined #ruby
emmesswhy has quit [Quit: Leaving]
tsunamie has quit [Max SendQ exceeded]
TPBallbag has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
<pipework> geezer: So if you start with 5, it calls sum_upto(4), which calls sum_upto(3) and so on.
<pipework> Which eventually just returns 1
robbyoconnor has joined #ruby
hamakn has joined #ruby
tsunamie has joined #ruby
<geezer> so the first value passed is five. ok, that is a relief. thanks pipework
<jenrzzz> geezer: maybe this will be clearer? https://gist.github.com/jenrzzz/1d6c50399ec9c963a386
<geezer> jenrzzz: pipework thanks !!
gmacka has quit [Ping timeout: 265 seconds]
lmickh has quit [Remote host closed the connection]
Scotteh has quit [Ping timeout: 244 seconds]
zorak8 has joined #ruby
gmacka has joined #ruby
andrewlio has quit [Quit: Leaving.]
<pipework> Notice the difference between your source, which just calls the method with n-1 and what jenrzzz wrote which has n + the method call with n - 1
<geezer> a dude name creek has a video but it confused the sh*t out of me.
<pipework> geezer: What other languages are you familiar with?
cassianoleal_ has joined #ruby
Squarepy has joined #ruby
Scotteh has joined #ruby
<geezer> English, French seriously I'm teaching myself at a late age.
Azure has quit [Ping timeout: 258 seconds]
<geezer> age 53
<jenrzzz> nice
<pipework> geezer: Is ruby your first programming language?
<geezer> yeah
<pipework> geezer: Have you read about loops?
momomomomo has joined #ruby
<pipework> >> puts 'hi'
<eval-in__> pipework => hi ... (https://eval.in/216868)
<geezer> a bit. I know they are more likely to be used
TPBallbag has quit [Ping timeout: 245 seconds]
<jenrzzz> geezer: are you working through a book?
hamakn has quit [Ping timeout: 244 seconds]
pietr0 has quit [Ping timeout: 264 seconds]
<mumm_ra> why do I always need to bundle install again and again everytime I use some ruby project..
<mumm_ra> ?
Avahey has joined #ruby
<geezer> I read well-grounded rubyist about 3 years ago
<pipework> steps = []; n = 5; until (n == 1) { steps << n - 1 }
<pipework> >> steps = []; n = 5; until (n == 1) { steps << n - 1 }
<eval-in__> pipework => /tmp/execpad-11a8b668cf08/source-11a8b668cf08:2: syntax error, unexpected '{', expecting keyword_do_cond or ';' or '\n' ... (https://eval.in/216869)
<pipework> it's hard to one-line without irb, just a sec.
<jenrzzz> mumm_ra: what do you mean? you need to install the dependencies to use things
<pipework> mumm_ra: you mean install or bundle exec?
pietr0 has joined #ruby
<chudler> https://gist.github.com/anonymous/a7124f8d136dd69435af I am wondering what happened with my "A" class in the later case
<mumm_ra> jenrzzz: I mean I already bundle install before
<mumm_ra> logout, log back in
<mumm_ra> maybe it has to do with rvm...
<mumm_ra> ?
<jenrzzz> probably
olivier_bK has joined #ruby
<pipework> >> steps = []; n = 5; (steps << n = n - 1 ) until n == 1; steps
<eval-in__> pipework => [4, 3, 2, 1] (https://eval.in/216870)
<pipework> geezer: ^
benzrf is now known as benzrf|offline
<pipework> So, there's an example of a loop that is similar to your recursive call.
<geezer> excellent pipework thanks .. jenrzzz
EasyCo has joined #ruby
<jenrzzz> chudler: Module#inspect is aliased to Module#to_s
<pipework> geezer: Do you have everything you need to understand how it works?
<jenrzzz> >> Class.new.is_a?(Module)
<eval-in__> jenrzzz => true (https://eval.in/216871)
<chudler> thank you jenrzzz, I am wondering if a method on A is called anywhere in my second example.
goodenough has quit [Remote host closed the connection]
<chudler> or really any method at all anywhere.
Danishman has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<geezer> very kind of you. pipework It will sink in sometime today. I got it a couple years ago.
<jenrzzz> chudler: nope. only irb/pry will call inspect on the output
e4xit has quit [Quit: Right I'm out!]
<jenrzzz> chudler: when you just run it with the interpreter, it's a noop
<chudler> And the interpreter will "optimize" my useless A out? I am writing a toy DSL where it could be useful ;-)
<jenrzzz> chudler: though i think it will cause the script to return a truthy value (i.e. 0)
<geezer> it's easier to see with a container pipework as per your example.
jrhorn424 is now known as zz_jrhorn424
<jenrzzz> chudler: just calling a constant by name doesn't do anything. you'd need to define a method
<chudler> I know it cannot be a complete noop, since maybe const_get is called?
<chudler> oh nevermind, thats something else.
momomomomo has quit [Quit: momomomomo]
<jenrzzz> chudler: hmmm. i'm actually not sure how the constant lookup works in that case. i don't think it's a noop since it actually results in a value
<jenrzzz> but in that context, it doesn't do anything
timonv^ has quit [Remote host closed the connection]
<jenrzzz> chudler: what are you trying to do?
<chudler> I know it doesnt do anything, that is what I am trying to change. This is for my learning, nothing much else.
jamto11 has quit [Remote host closed the connection]
Alayde has joined #ruby
skolman_ has quit [Remote host closed the connection]
<Alayde> I did a bit of Google searching and felt like I couldn't quite come up with what I wanted, figured I'd ask here. Anyone here have any tutorials handy for writing a really basic restful API using ruby?
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
<jenrzzz> Alayde: client or server?
<Alayde> jenrzzz: Server.
beef-wellington has quit [Ping timeout: 264 seconds]
<jenrzzz> Alayde: have you looked into sinatra or any other microframeworks?
chipotle has quit [Quit: cya]
shosti has quit [Ping timeout: 256 seconds]
supermanBlack has quit [Ping timeout: 264 seconds]
zz_jrhorn424 is now known as jrhorn424
djbkd has quit [Remote host closed the connection]
<jenrzzz> chudler: what do you want it to do?
<geezer> jenrzzz: I saw a book on sinatra.. do you think there are any good books on the subj?
<Alayde> jenrzzz: I have, my plan was to use sinatra actually. I guess my brain just isn't connecting all the dots when it comes to writing an API, so I figured if there was a tutorial out there that kind of started at the most basic level and moved up, that'd be awesome
<chudler> Ideally, I want to override the method it would call, no matter where it lies. Otherwise I will bark up another meta tree
<geezer> I looked at padrino. but not much written on it..
ptrrr has quit [Quit: ptrrr]
djbkd has joined #ruby
Squarepy has quit [Quit: Leaving]
jrhorn424 is now known as zz_jrhorn424
allcentury has quit [Ping timeout: 245 seconds]
bklane has quit [Ping timeout: 264 seconds]
danman has joined #ruby
ptrrr has joined #ruby
<jenrzzz> chudler: you can't override the default constant lookup behavior. you could override Object#const_get but that won't do what you want
djbkd has quit [Remote host closed the connection]
<jenrzzz> chudler: since the identifier starts with a capital letter, ruby will always use its inbuilt constant lookup
DrCode has quit [Remote host closed the connection]
<jenrzzz> Alayde: there are a lot: http://lmgtfy.com/?q=rest+api+sinatra
<pipework> I'd look into Resourceful APIs.
<jenrzzz> but sinatra is a simple enough framework you can just read the docs
<pipework> REST isn't actually REST most of the time you see REST.
djbkd has joined #ruby
jimbach_ has joined #ruby
<pipework> The one page doc is great.
DrCode has joined #ruby
<jenrzzz> geezer: the subject of RESTful APIs or microframeworks in general?
larissa has joined #ruby
alvaro_o has joined #ruby
<geezer> jenrzzz: I went through hartl tutorial on rails believe it or not. a clusterf&*k. but there wasn't enough written on padrino so I gave up..
<Alayde> jenrzzz: Thanks, I'll have to poke around a bit more. Appreiciate the help though
Alayde has left #ruby ["WeeChat 1.0"]
djbkd has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
S0da has joined #ruby
Soda has quit [Read error: Connection reset by peer]
jimbach has quit [Ping timeout: 245 seconds]
<geezer> jenrzzz: I'm trying to get pure ruby and some math. I'm a bit thick.
jimbach_ has quit [Remote host closed the connection]
Timgauthier is now known as timgauthier_away
<jenrzzz> geezer: haha. you should play around with sinatra if you're interested in web stuff. might be a fun way to get better with ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zz_jrhorn424 is now known as jrhorn424
louism2wash has quit [Quit: This computer has gone to sleep]
<geezer> jenrzzz: good call. I put a vm on my linux box with vagrant, which is in ruby. it was fun.
bklane has joined #ruby
djbkd has joined #ruby
narcan has quit [Read error: No route to host]
<jenrzzz> geezer: rails has so much magic it becomes a difficult environment to learn ruby itself
workmad3 has joined #ruby
<geezer> yeah I found it absurdly difficult. jenrzzz
<jenrzzz> some people are okay with that and call themselves just "Rails Developers"
<jenrzzz> it's scary
<mdarby> My former company wrote http://rubykoans.com and it might help you learn Ruby, @geezer
<jenrzzz> mdarby: +1
jdj_dk has joined #ruby
<jenrzzz> geezer: also you might want to check out why's poignant guide if you haven't already
<pipework> mdarby: Have you seen that 'neo ruby koans'?
vlad_starkov has quit [Quit: ZNC - http://znc.in]
<pipework> I'm suspect that it's rubbish.
<mdarby> We used it a bunch to teach workshops.
<jenrzzz> geezer: it's not the most educational ruby book but definitely the most fun
<mdarby> rubbish?
gmacka has quit [Ping timeout: 264 seconds]
<pipework> mdarby: I haven't read through it just yet, but it's being pitched as something a company accepts money in order to teach you.
<zenspider> I dunno the neo part, but the ruby koans are very good
TPBallbag has joined #ruby
<mdarby> yeah, I haven't heard of pay-to-play from them
<geezer> mdarby: the student asked 'what is zen?' the master said 'did you eat your porridge?' 'yes', said the student. 'then go wash out your bowl.'
gmacka has joined #ruby
<mdarby> :)
djbkd has quit [Remote host closed the connection]
<mdarby> It was the EdgeCase Ruby Koans, but then we were bought out
<pipework> mdarby: I don't know if it's the same company, just some drivel on HN.
<mdarby> ah, who knows. :)
jerius has quit []
alvaro_o has quit [Quit: Ex-Chat]
<zenspider> oh ... I thought you meant someone forked it for a "new" version. :)
<zenspider> right
<geezer> the second one is 'neo'?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mdarby> "rebranded" :)
<mdarby> Yes. We were EdgeCase, then NewContext, then Neo
<mdarby> Same core company; fast growth
<geezer> worth looking at all of them?
<mdarby> all the same thing really; just "who" wrote them.
govg has quit [Quit: leaving]
<geezer> I have the sandi metz book. just started it ..again.
<josephndenton> geezer: Definitely worth looking at. When I started learning, I finished the koans in a few hours after I finished reading Well Grounded Rubyist
govg has joined #ruby
skolman has joined #ruby
<mdarby> Background: http://edgecase.com/
Soda has joined #ruby
<geezer> josephndenton: yeah I read well-grounded 3 years ago. gotta brush off the dust..
tkuchiki has joined #ruby
S0da has quit [Read error: No route to host]
<zenspider> the koans have fantastic pedagogy. very much recommend them for someone getting into ruby
djbkd has joined #ruby
<geezer> zenspider: sweet
<geezer> will do
<josephndenton> geezer: Really though, the best thing to learn quickly isn't going to be reading, its going to be doing. Refresh the basics, then make something to automate a task or to make life easier.
djbkd has quit [Remote host closed the connection]
<jenrzzz> geezer: yeah, highly recommend doing a project that is interesting/useful to you
tuelz has quit [Ping timeout: 272 seconds]
<jenrzzz> geezer: learning for the sake of learning doesn't stick the same way
<geezer> josephndenton: jenrzzz no clue how to begin. I have a linux machine.. I've been doing ssh and set up lamp on an instance.
<geezer> vm ^
Azure has joined #ruby
<kyle__> I still prefer learning it from an enranged and insane mountain hermit, where you can't tell if he really sees what he's raving about, or just using it to teach you.
<josephndenton> geezer: Are you trying to do web stuff? or Ruby in general?
<kyle__> Also known as, "why's poignent guide"
vlad_starkov has joined #ruby
jobewan has quit [Quit: Leaving]
<geezer> I decided to get very good at a major oop lang.
<geezer> kyle__: that's the koans?
djbkd has joined #ruby
<geezer> why's is a headache to read..
<kyle__> geezer: No. It's different. And yes, disjointed at times, but quite fun (I thought so at least). http://mislav.uniqpath.com/poignant-guide/
tkuchiki has quit [Ping timeout: 245 seconds]
<geezer> kyle__: cool, I know he is well-regarded
jasooon has joined #ruby
<geezer> kyle__: your first reference to mountain hermit was the koans?
<kyle__> It gets you far enough to learn on your own, and tinker, even if it's compleetly ignoring what would be considered "good programming" style and habits.
<kyle__> geezer: No, to why.
<pontiki> that's _why to you
benzrf|offline is now known as benzrf
<geezer> pontiki: was helping me with _why about a year ago.. kind soul.
<geezer> I'll get it pontiki -- many thanks all.
jrhorn424 is now known as zz_jrhorn424
Spami has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jasooon has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
Soda has quit [Remote host closed the connection]
badhatter has quit [Read error: Connection reset by peer]
<mdarby> geezer: the koans are http://rubykoans.com/
ramfjord has quit [Ping timeout: 240 seconds]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
linojon has quit [Quit: linojon]
allcentury has joined #ruby
ramfjord has joined #ruby
itspots has quit [Quit: (null)]
banister_ has joined #ruby
TPBallbag has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
banister has quit [Ping timeout: 255 seconds]
bklane has joined #ruby
it0a has quit [Ping timeout: 244 seconds]
bklane has quit [Remote host closed the connection]
atraylen has joined #ruby
bklane has joined #ruby
<geezer> mdarby: thanks kindly
charliesome has joined #ruby
msmith_ has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 264 seconds]
alem0lars is now known as alem0lars|away
zz_jrhorn424 is now known as jrhorn424
robbyoconnor has quit [Quit: Konversation terminated!]
geezer has quit []
Shazaum has quit [Quit: Leaving]
enebo has quit [Quit: enebo]
kireevco has quit [Quit: Leaving.]
marr has joined #ruby
mdarby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gmacka has quit [Ping timeout: 245 seconds]
TPBallbag has joined #ruby
Kricir has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
cassianoleal_ has quit [Quit: (null)]
BTRE has joined #ruby
blackmesa has quit [Quit: WeeChat 1.0.1]
oz has quit [Read error: Connection reset by peer]
oz has joined #ruby
jonr22 has joined #ruby
o0oo0o has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
jdj_dk has quit [Ping timeout: 256 seconds]
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
mdarby has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
Hijiri has quit [Quit: WeeChat 1.0.1]
snovity has quit [Ping timeout: 256 seconds]
lw has joined #ruby
DTSCode has quit [Read error: Connection reset by peer]
jrhorn424 is now known as zz_jrhorn424
SilkFox has quit [Ping timeout: 265 seconds]
gregf has quit [Ping timeout: 260 seconds]
DTSCode has joined #ruby
fabrice31 has joined #ruby
gregf has joined #ruby
treehug88 has quit []
kireevco has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
renderful has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
fabrice31 has quit [Ping timeout: 245 seconds]
mistermocha has quit [Remote host closed the connection]
ptrrr has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
freerobby has quit [Quit: Leaving.]
pietr0 has quit [Quit: pietr0]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
adamholt_ has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
pietr0 has joined #ruby
rkalfane has joined #ruby
adamholt has joined #ruby
Musashi007 has quit [Quit: Musashi007]
adriancb has quit [Ping timeout: 244 seconds]
rajeshchawla has joined #ruby
Musashi007 has joined #ruby
kotk has quit [Read error: Connection reset by peer]
Musashi007 has quit [Client Quit]
tkuchiki has joined #ruby
kotk has joined #ruby
livingstn has quit []
Musashi007 has joined #ruby
DTSCode has quit [Read error: Connection reset by peer]
DTSCode has joined #ruby
jhwhite has joined #ruby
knight2 is now known as knight-
tkuchiki has quit [Ping timeout: 258 seconds]
lw has quit [Quit: s]
rajeshchawla has quit []
jdj_dk has joined #ruby
razieliyo has quit [Read error: No route to host]
razieliyo has joined #ruby
nfk has quit [Quit: yawn]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<jaequery> hi
<jaequery> what are the alternatives of unicorn?
zorak8 has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
moritzs has joined #ruby
<pipework> jaequery: all the other application servers
jasooon has joined #ruby
<zenspider> the alternatives? meaning: what other web servers are out there?
<zenspider> did you google?
olivier_bK has quit [Read error: No route to host]
ClarusCogitatio has quit [Ping timeout: 260 seconds]
<mdarby> jaequery: for dev or prod?
<jaequery> for prod
<mdarby> passenger?
ClarusCogitatio has joined #ruby
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]