<shevy>
actually I think most of the stuff is on that site
ndrei has joined #ruby
riking_ has quit [Changing host]
riking_ has joined #ruby
riking_ is now known as Riking
<NotproN>
i did all that
obs has quit [Quit: Konversation terminated!]
<NotproN>
i am figuring out how to use that now
centrx has quit [Quit: All this computer hacking is making me thirsty]
<NotproN>
i got it how to install ruby from rbenv
<NotproN>
gonna do it now
<shevy>
cool
kennym has joined #ruby
<shevy>
one day you'll come to the dark side though
zipace has quit [Ping timeout: 255 seconds]
<shevy>
and switch to linux
<NotproN>
but then i should use thins instalation gem install somehow
<NotproN>
i am on unix
<NotproN>
it is close
<NotproN>
rofl
<NotproN>
i was used to use arch before got my mac
predator117 has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
nateberkopec has joined #ruby
<shevy>
not sure how close it is
<NotproN>
it is unix
<shevy>
if anything on linux ever tells me that I lack rights, I remove that faulty component from my system instantly
<NotproN>
hahaha
whatasunnyday has quit [Quit: whatasunnyday]
<shevy>
on the other hand, as long as I can use ruby I am happy, no matter which OS is beneath
<NotproN>
i more on the python side of the force
sailias has joined #ruby
Dysruption has joined #ruby
ktun has joined #ruby
ktun_ has joined #ruby
twiceaday has quit [Read error: Connection reset by peer]
gverri has quit [Ping timeout: 255 seconds]
twiceaday has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
saarinen has joined #ruby
jlast has joined #ruby
<shevy>
aha
<shevy>
so you already have a scripting language
jhass is now known as jhass|off
<NotproN>
yeah... but im gonna tell you ruby was together with python the day i decided to invest my time in one
<NotproN>
it was gonna be one or the other
yacks has quit [Ping timeout: 240 seconds]
jlast has quit [Read error: Connection reset by peer]
<NotproN>
maybe in the future i will look into ruby
jlast has joined #ruby
<NotproN>
now i am learning vim *,*
thomasxie has quit [Remote host closed the connection]
yacks has joined #ruby
agent_white has quit [Remote host closed the connection]
nath_schwarz_ has joined #ruby
nath_schwarz_ has quit [Client Quit]
robert___ is now known as robert_
yfeldblu_ has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 240 seconds]
<toastynerd>
throw vim in the garbage and learn emacs
tjr9898 has quit [Remote host closed the connection]
<toastynerd>
=)
yfeldblum has joined #ruby
agent_white has joined #ruby
<shevy>
he does not need another OS
ktosiek has quit [Ping timeout: 268 seconds]
JBreit has left #ruby ["Leaving"]
SilkFox has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
<NotproN>
i am gonna tell you emac was my 1st choice for learning, but vim is so much more documented and does not have a version war
<shevy>
hehe
<NotproN>
at least not as i saw on emacs
<NotproN>
so i prefered vim
<NotproN>
=/
<NotproN>
but both is great and we can do a lot with both
mostlybadfly has quit [Quit: Connection closed for inactivity]
<agent_white>
yay for vim!
yfeldblum has quit [Ping timeout: 240 seconds]
graft has joined #ruby
<toastynerd>
yeah, vim is pretty awesome
nateberkopec has quit [Quit: Leaving...]
idiocrash has joined #ruby
locriani has joined #ruby
olalonde has quit [Ping timeout: 255 seconds]
olalonde has joined #ruby
centrx has joined #ruby
saarinen has quit [Quit: saarinen]
s2013_ has joined #ruby
jmeeuwen_ has joined #ruby
ziprar has quit [Quit: Leaving]
deadlock has joined #ruby
olalonde has quit [Client Quit]
<agent_white>
But I am awesomer.
jmeeuwen has quit [Ping timeout: 264 seconds]
jmeeuwen_ is now known as jmeeuwen
x77686d has quit [Quit: x77686d]
cj3kim has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
KillerFox has quit [Ping timeout: 252 seconds]
KillerFox has joined #ruby
evenix_ has quit [Remote host closed the connection]
evenix has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
jason__ has joined #ruby
s2013_ has quit [Ping timeout: 268 seconds]
DEA7TH has quit [Ping timeout: 240 seconds]
<shevy>
yeah
<shevy>
agent_white is king
<agent_white>
shevy: You can be my queen if you want.
s2013 has joined #ruby
<NotproN>
haha
evenix has quit [Ping timeout: 240 seconds]
<NotproN>
you guys are fun
ce_afk is now known as cescalante
Atrumx has joined #ruby
rm_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<shevy>
agent_white if I'd be your queen, you'd have to die on an accident
<shevy>
probably going hunting
<NotproN>
i see where it is going
jason__ has quit [Remote host closed the connection]
<NotproN>
or what is comming
<agent_white>
shevy: On, above, or below an accident?
KillerFox has quit [Ping timeout: 252 seconds]
jason__ has joined #ruby
xxi is now known as ixx
<shevy>
a hunting accident
<shevy>
falling down from a horse
<shevy>
breaking the neck
<shevy>
such things
yfeldblum has joined #ruby
KillerFox has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
<agent_white>
shevy: Hmmm... what about death by wild boar?
sailias has quit [Ping timeout: 240 seconds]
<shevy>
nah
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jason__ has quit [Ping timeout: 255 seconds]
<dmarr>
rbenv users :how do you install gems without sudo using a system install?
pigzzcanfly has joined #ruby
meatherly has joined #ruby
Hanmac has joined #ruby
<NotproN>
dmarr: i am trying it rigth now
<NotproN>
but no success
<shevy>
hehe
<NotproN>
i installed rbenv, from within it i installed a ruby version
<agent_white>
Damn. Maybe I my horse riles up, bucking me off and breaking my leg. Suddenly, pack of wolves. I manage to win via my pocket knife, but succumb to battle with the alpha.
<NotproN>
but i dont seems to get how it is done
<dmarr>
yeah i have tried with and without another installed ruby
<dmarr>
both try to install to system path
mikecmpbll has quit [Quit: ciao.]
<NotproN>
dmarr: exactlly
<agent_white>
Nono me and alpha die at the same time.
pskosinski has joined #ruby
<NotproN>
dmarr: what are you trying to install?
<agent_white>
./wearealpha
<dmarr>
there must be a way, just noone has blogged about it yet
<NotproN>
dmarr: i am trying tmuxinator
<NotproN>
=/
Hanmac1 has quit [Ping timeout: 240 seconds]
<NotproN>
im gonna take a break
maximski has quit []
<dmarr>
i am trying to bundle install boxen, but more simply, just install the json gem
<NotproN>
dmarr: if you find a way pm me about it
<NotproN>
=/
<dmarr>
will do
rylev has joined #ruby
meatherly has quit [Ping timeout: 255 seconds]
pigzzcanfly has quit [Ping timeout: 255 seconds]
<agent_white>
shevy: Let me know if that works for you. Then you can take the throne.
idiocrash has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white>
There needs to be a scandal involving centrx though.
<agent_white>
And pipecloud.
danshultz has joined #ruby
<centrx>
^ an ironic juxtaposition that won't be lost on many.
<agent_white>
:D
<shevy>
the scandal will be you'll be the king of PHP agent_white
Steve445 has joined #ruby
<agent_white>
`Breaking news! PHP dies in horrible hunting accident today.`
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
skammer has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
hooper has quit [Ping timeout: 240 seconds]
atno has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexherbo2 has joined #ruby
javierbuilder has joined #ruby
timonv has joined #ruby
_justin has quit [Quit: _justin]
dayepa has joined #ruby
jonno11 has joined #ruby
javierbuilder has quit [Read error: Connection reset by peer]
nari has joined #ruby
ce_afk is now known as cescalante
Celm has joined #ruby
bogeyd6 has quit [Read error: Connection reset by peer]
kitak has quit [Remote host closed the connection]
earth has joined #ruby
porco has quit [Quit: Leaving...]
sigurding has joined #ruby
fgo has quit [Remote host closed the connection]
Celm has quit [Ping timeout: 255 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
ghr has joined #ruby
nateberkopec has joined #ruby
yfeldblum has joined #ruby
davedev24 has quit []
jlast has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
porco has joined #ruby
cescalante is now known as ce_afk
_justin has joined #ruby
ghr has quit [Ping timeout: 268 seconds]
gigetoo has joined #ruby
Naoe-Kanno has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
Lewix has quit [Changing host]
Lewix has joined #ruby
timonv has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 268 seconds]
SHyx0rmZ has quit [Ping timeout: 255 seconds]
sdouglas has quit [Ping timeout: 255 seconds]
<shevy>
anyone of you using ftp + ruby a lot?
ndrei has quit [Ping timeout: 240 seconds]
atno has quit [Read error: Operation timed out]
kitak has joined #ruby
kitak has quit [Remote host closed the connection]
atno has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
javierbuilder has joined #ruby
getadeo has joined #ruby
glanzi has joined #ruby
atno has quit [Remote host closed the connection]
chrisseaton has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
enebo has joined #ruby
dyoko has joined #ruby
Speed has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
dayepa has quit [Ping timeout: 252 seconds]
atno has joined #ruby
locriani has joined #ruby
danijoo has joined #ruby
rylev has joined #ruby
TripTastic has joined #ruby
davedev24 has joined #ruby
lxsameer has quit [Quit: Leaving]
robert___ is now known as robert_
marcux has quit [Quit: marcux]
soulcake has quit [Ping timeout: 240 seconds]
dyoko has quit [Ping timeout: 252 seconds]
_justin has quit [Quit: _justin]
locriani has quit [Ping timeout: 265 seconds]
rylev has quit [Ping timeout: 252 seconds]
robert_ is now known as robert_|test
robert_|test is now known as robert_
javierbuilder has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
blackmesa has joined #ruby
Asher has joined #ruby
meatherly has joined #ruby
kitak has joined #ruby
ndrei has joined #ruby
atno has quit [Remote host closed the connection]
soulcake has joined #ruby
<badhatter>
ftp + ruby
<badhatter>
what do you mean?
fgo has joined #ruby
Lewix has quit [Remote host closed the connection]
txdv has quit [Quit: No Ping reply in 180 seconds.]
txdv has joined #ruby
ndrei has quit [Ping timeout: 268 seconds]
genescissors has joined #ruby
arietis has joined #ruby
getadeo has left #ruby [#ruby]
jamto11 has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
danijoo has quit [Remote host closed the connection]
timonv has joined #ruby
<genescissors>
exit
genescissors has quit [Client Quit]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jorts has quit [Quit: jorts]
maximski has quit [Ping timeout: 268 seconds]
User458764 has joined #ruby
jorts has joined #ruby
Advocation has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
Geniack has joined #ruby
Geniack_ has quit [Read error: Operation timed out]
Kricir has joined #ruby
rm_ has joined #ruby
_Andres has quit [Quit: jazz]
mikecmpbll has joined #ruby
nateberkopec has joined #ruby
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
sigurding has quit [Quit: sigurding]
jamto11 has joined #ruby
soulcake has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 268 seconds]
arianit has quit [Quit: Leaving]
Zackio has quit [Read error: Connection reset by peer]
carif has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soulcake has joined #ruby
ce_afk is now known as cescalante
sigurding has joined #ruby
Megtastique has joined #ruby
Zackio has joined #ruby
carif has quit [Quit: Ex-Chat]
meatherly has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sdouglas has joined #ruby
cescalante is now known as ce_afk
Merks has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 268 seconds]
genescissors has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
glanzi has quit [Remote host closed the connection]
Shidash has joined #ruby
spider-mario has quit [Remote host closed the connection]
havenwood has joined #ruby
fgo has joined #ruby
Hanmac1 is now known as Hanmac
jason_ has joined #ruby
<shevy>
badhatter any advanced operations or applications based on ftp, written in ruby
Megtastique has quit [Remote host closed the connection]
Ankhers has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
Merks has quit []
kaspergrubbe has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Alina-malina has joined #ruby
<Ankhers>
If I have a hash, can I create a pointer to that so I don't have to keep mentioning the root of the hash to reach a given subset of the hash? IE my_hash[:foo][:bar] my_hash[:foo][:baz] I don't want to have to mention the :foo key every time.
Megtastique has joined #ruby
chrisseaton has quit []
vlad_starkov has quit [Remote host closed the connection]
<jhass>
Ankhers: a hash maps an object to another object. a hash is an object. a symbol is an object. a variable points to an object. a nested hash is a hash that maps an object to another hash
fgo has quit [Ping timeout: 240 seconds]
pwh has joined #ruby
fightback has joined #ruby
<jhass>
so yes, you can simply assign the hash that is identified in your hash by :foo to a new variable: foo = my_hash[:foo]
vlad_starkov has joined #ruby
<Ankhers>
Will that allow me to mutate the original?
<jhass>
yes
<Ankhers>
jhass: Awesome, thanks.
<jhass>
assignment sets a reference to the object on the right hand side, not a copy of it
keen_ has left #ruby [#ruby]
<jhass>
Ankhers: now ruby provides lots and lots of convenience operations, if you outline (or better show in code) what you're actually doing we might be able to reduce it to one or two lines
Alina-malina has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
locriani has joined #ruby
<Ankhers>
jhass: It was more of a general question. Thanks for all of the information though.
rylev has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
melvinram has joined #ruby
vlad_starkov has joined #ruby
pwh has quit []
pskosinski has quit [Quit: Til rivido Idisti!]
relix has joined #ruby
vlad_sta_ has quit [Ping timeout: 268 seconds]
jamto11 has quit [Remote host closed the connection]
jason_ has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
jason_ has joined #ruby
Alina-malina has joined #ruby
yacks has joined #ruby
yacks has quit [Read error: Connection reset by peer]
tcstar has joined #ruby
sigurding has quit [Quit: sigurding]
jason_ has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
Kricir has quit [Remote host closed the connection]
timonv has joined #ruby
nateberkopec has quit [Quit: Leaving...]
pigzzcanfly has quit [Remote host closed the connection]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
gr33n7007h has quit [Ping timeout: 255 seconds]
sdouglas has joined #ruby
nateberkopec has joined #ruby
User458764 is now known as User458764_NotHe
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pu22l3r has quit [Remote host closed the connection]
lukec has joined #ruby
RowdyChild|Away is now known as RowdyChildren
pu22l3r has joined #ruby
mr_snowf1ake has joined #ruby
SilkFox has joined #ruby
jlast has joined #ruby
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has quit []
slawrence00 has joined #ruby
fridim_ has joined #ruby
Dysruption has joined #ruby
pu22l3r has quit [Ping timeout: 268 seconds]
kaspergrubbe has quit [Remote host closed the connection]
jorts has quit [Quit: jorts]
felixjet has quit [Quit: Leaving]
luckyruby has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 268 seconds]
banister has joined #ruby
Celm has joined #ruby
jamto11 has joined #ruby
evenix has joined #ruby
Solnse has joined #ruby
felixjet has joined #ruby
Megtastique has joined #ruby
Shidash has quit [Ping timeout: 268 seconds]
mrgt has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
<mrgt>
Following a tutorial and came across this expression - css_class = column == sort_column ? "current #{sort_direction}" : nil . Anyone able to link to some docs that explain this?
<jhass>
mrgt: that's ternary, a short form for css_class = if column == sort_column; "current #{sort_direction}"; else nil; end;
Megtastique has quit [Client Quit]
yfeldblum has joined #ruby
<mrgt>
thanks jhass
chrisseaton has quit []
jxf has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
randomnick_ has quit [Remote host closed the connection]
Jonah11_ has joined #ruby
Jonah11_ has quit [Client Quit]
Trynemjoel has quit [Ping timeout: 245 seconds]
larissa has joined #ruby
rm_ has joined #ruby
Trynemjoel has joined #ruby
rylev has joined #ruby
larissa has quit [Client Quit]
jxf has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
rm_ has quit [Ping timeout: 268 seconds]
nari has quit [Ping timeout: 268 seconds]
Veejay has quit [Read error: Operation timed out]
soulkey has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
vlad_starkov has quit []
Veejay has joined #ruby
s2013 has quit [Remote host closed the connection]
skammer has joined #ruby
locriani has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<Advocation>
I have a 2d array of US states; states = Array[ ["AK", "Alaska"], ["AL", "Alabama"], etc. How would I find if a value matches any of those values? For example if someone entered AL it should return Alabama, or if they entered Alabama it should return Alabama
kukyakya has quit [Remote host closed the connection]
<DouweM>
hash = Hash[that_array]; hash["AL"] would be easiest
<jhass>
states = Hash[states].merge(Hash[states.map {|_,name| [name, name] }])
cj3kim has joined #ruby
<DouweM>
ah right, didn't catch the second case.
Lewix has joined #ruby
<Advocation>
Ok, awesome. Thanks. Time to read up on what that does!
locriani has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Ping timeout: 252 seconds]
ak51 has joined #ruby
<ak51>
hi, what is the currently accepted way to host rails apps with nginx?
<havenwood>
states = states.merge states.invert
evenix has quit [Remote host closed the connection]
Royalb15 has quit [Read error: Connection reset by peer]
<havenwood>
nvm
<jhass>
;)
<DouweM>
;)
evenix has joined #ruby
<havenwood>
i need coffee! WEEKEND \o/
<crome>
ak51: its more like a question for the #rubyonrails guys, but generally you pick a webserver like puma or unicorn and you run your app behind nginx
<havenwood>
crome: puma or unicorn behind nginx as a reverse proxy
psyko666 has quit [Quit: Leaving]
mary5030 has joined #ruby
fridim_ has quit [Ping timeout: 268 seconds]
timonv has quit [Remote host closed the connection]
<shevy>
like to do the extra keystrokes and do .squeeze(' ')
<shevy>
I figure
<shevy>
hobbits are good thieves
<shevy>
good with the fingers, good programmers, makes sense
<momomomomo>
shevy: in my repl, “ “.squeeze returns “ “
<shevy>
haha "a hobbit is very impatient in a very patient way"
<shevy>
momomomomo I can't even read those characters you use :(
<jhass>
I think being able to type fast doesn't make you a better programmer, you spend less time avoiding to type leading to more verbose code like classes with 3,2kloc shevy
<momomomomo>
:/
francisfish has quit [Remote host closed the connection]
<jhass>
shevy: still not on utf8?
<shevy>
I disagree! typing efficiency is very important. I found that out when they put me before a windows machine and told me to write code
<shevy>
jhass dunno, what benzrf types I can see just fine
<jhass>
sure, it just shouldn't come to the point where it doesn't annoy you anymore
<momomomomo>
yeah, lucida is using a weird apostrophe
blackmesa has joined #ruby
<jhass>
shevy: what about this one: ☃
<shevy>
yeah this is a blur as well
<jhass>
a blur?
Shidash has joined #ruby
<shevy>
yeah
<shevy>
all I see is that it is different to what momomomomo used
<shevy>
˜ƒ€œ
<havenwood>
jhass: that looks like a tick
<shevy>
˜œƒ€
VTLob has joined #ruby
<havenwood>
or a ladybug
<momomomomo>
yo, could someone review https://github.com/google/signet/pull/40 and tell me if I’m crazy in my proposed changes? I can’t tell if the committer just doesn’t want to change, or if I’m actually proposing a wild change (keep in mind that the test suite covers nearly all use cases… and it passes :o)
<shevy>
a fly on the toilet?
<jhass>
havenwood: it's a snowman, scale it up :P
<havenwood>
TIL: tiny snowmen look like ladybugs
<shevy>
gem 'hobbit'
<shevy>
that's rather epic
<havenwood>
shevy: :D
<shevy>
gem 'dragon' <--- is this already covered or do I have to add a gem
arietis has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
<DouweM>
momomomomo: changes look reasonable to me
jlast has joined #ruby
<shevy>
hobbit "A minimalistic microframework built on top of rack"
ikaros has quit [Quit: Ex-Chat]
fannye has quit [Read error: Connection reset by peer]
<momomomomo>
DouweM: gracias, I was second guessing myself after writing that explanation
jason_ has joined #ruby
saarinen has joined #ruby
<jhass>
momomomomo: normalizing to symbols can be dangerous, especially for user input
jollyy has quit [Quit: jollyy]
<momomomomo>
jhass: even when the api internally only uses symbols?
<momomomomo>
jhass: I’d love to read more info on that / why it’s dangerous - sounds arbitrary to me
<jhass>
momomomomo: the issue is that symbols aren't garbage collected. If the attacker controls the input he can create an arbitrary amount of symbols and thus DoS your service
<jhass>
(because you run out of ram)
<momomomomo>
jhass: Don’t think that applies in this case
<Hanmac>
havenwood: "Ruby - there might be dragons" ;P
<jhass>
momomomomo: yeah, I didn't look to much at what it does, just saying
<momomomomo>
that’s interesting though jhass
sambao21 has quit [Ping timeout: 268 seconds]
<DouweM>
the keys are all predefined, no user supplied text being to_sym'ed
<momomomomo>
hm, DouweM , jhass that symbol GC question has me second guessing now whether Signet would be used with arbitrary keys/values
<DouweM>
momomomomo: if you can't guarantee that, don't symbolize keys
<momomomomo>
that are user supplied
<DouweM>
benzrf: yo
maroloccio2 has joined #ruby
<momomomomo>
how else are we supposed to sanitize input for a related service that requires them to be provided as keys DouweM ?
LexicalScope has quit [Read error: Connection reset by peer]
<momomomomo>
ie: The Addressable gem only accepts input as symbols
LexicalScope has joined #ruby
<momomomomo>
Signet makes use of that gem , and that’s the entire reason for doing the normalization
<jhass>
momomomomo: two approaches, make it transparent to access as DouweM said, or symbolize by whitelist
<DouweM>
only take those keys Addressable needs, and symbolize those
<DouweM>
yup, as jhass said
<momomomomo>
jhass: DouweM that doesn’t work, as some of those keys are to be passed in as hashes
<momomomomo>
erm * the values
fridim_ has quit [Read error: Operation timed out]
jaimef has joined #ruby
jason_ has quit [Remote host closed the connection]
<momomomomo>
so maybe that’s addressable’s issue, which should maybe switch to string keys
<DouweM>
indifferent access then
<momomomomo>
ie: you can send a hash of parameters to Addressable, but they must be accessable as keys
jason_ has joined #ruby
geggam has quit [Remote host closed the connection]
<momomomomo>
DouweM: aye, I might agree - but i have to run at the moment, i’ll be back. Maybe I’ll borrow AS ’s Object::HashWithIndifferentAccess
gr33n7007h has joined #ruby
<DouweM>
shevy: remember the conversation a couple of days ago about the number of regulars here? I've been keeping track of nicks I recognize, and I'm at 24 "regulars" so far :)
<DouweM>
shevy: Will publish results once I'm at the "3 dozen" you postulated :p
<DouweM>
momomomomo: check the license, chances are you're allowed to borrow it
IceDragon has quit [Ping timeout: 255 seconds]
<momomomomo>
ok gotta run, i’ll be back to discuss, no doubt
skammer has joined #ruby
<shevy>
DouweM hmm
<shevy>
DouweM ok but the rough estimate is about correct? like 20-50 people?
<shevy>
I mean we have 847 folks here
jason_ has quit [Ping timeout: 252 seconds]
<shevy>
many of them have never written anything here, I swear
<shevy>
they are just idling zombies
wildtype has joined #ruby
<DouweM>
shevy: I have no idea. I'm at 24 now, but there are definitely some regulars who I haven't actually spotted yet
<nobitanobi>
Hi guys. How can I use max_by with a conditional? I want to get max_by of an array like [10,20,30,40,50,60] - But just consider elements that are smaller than 50 - So in this case, max_by should return 40.
<jhass>
I'd just filter all values > 40 beforehand
<nobitanobi>
jhass: ok. Thats what I am doing :)
<nobitanobi>
thanks
eynj has joined #ruby
brucelee has joined #ruby
Celm has joined #ruby
toastynerd has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
sdouglas has quit [Remote host closed the connection]
alyi has joined #ruby
aspires has joined #ruby
Advocation has joined #ruby
alyi has left #ruby [#ruby]
mityaz has joined #ruby
<havenwood>
nobitanobi: or if you wanted to use #max_by maybe something like: #max_by { |i| i < 50 ? i : -Float::INFINITY }
<havenwood>
:P
<nobitanobi>
havenwood: dang!
<nobitanobi>
nice
<benzrf>
what was that regex website again
rm_ has joined #ruby
<nobitanobi>
rubular?
crystal77 has quit [Quit: Computer has gone to sleep.]
<apeiros>
debuggex?
crystal77 has joined #ruby
sdouglas_ has joined #ruby
fgo has joined #ruby
einarj has quit [Remote host closed the connection]
<DouweM>
The only ones I don't know are The_NetZ and mozzarella. Must be a time zone thing
Hanmac1 is now known as Hanmac
<havenwood>
Hanmac: nope
* Hanmac
sings "well now you know" ;P
porco has quit [Quit: Leaving...]
<havenwood>
Hanmac: i haven't gotten to that companion yet!
<Hanmac>
*gaps* ... what is your Episode yet?
peret has joined #ruby
ckinni has quit [Read error: Connection reset by peer]
<havenwood>
s3e1
<havenwood>
i'm slacking...!
pwh has quit []
aspires has quit []
<havenwood>
Hanmac: i have 4 seasons to watch on Netflix, i better get to it!
pu22l3r has quit [Ping timeout: 246 seconds]
jamto11 has quit [Ping timeout: 255 seconds]
<Hanmac>
havenwood: 4 seasons doctor who? ... there are +3 more and thats only the new ones
<havenwood>
:O
Celm has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 255 seconds]
<benzrf>
DouweM: yeah all last week
<benzrf>
tbp
<benzrf>
logs for all days from today - 7 to today
<BraddBitt>
yay i made the cut
JacobHayes has joined #ruby
<DouweM>
benzrf: not bad
<DouweM>
kind of ashamed of being in the top 5 of time-wasters though
<benzrf>
hue
IceDragon has joined #ruby
<apeiros>
benzrf: is that words or messages?
<benzrf>
chars
<apeiros>
ah
aspires has joined #ruby
CaptainJet has joined #ruby
Advocation has quit [Quit: Advocation]
danijoo has joined #ruby
aspires has quit [Client Quit]
jameswlane has joined #ruby
jameswlane has quit [Max SendQ exceeded]
lukec has quit [Quit: lukec]
Kricir has quit [Remote host closed the connection]
jameswlane has joined #ruby
gemmy has quit [Ping timeout: 255 seconds]
<shevy>
I guess havenwood would rank much higher on the list if it would have been made like 6 weeks ago or such
gemmy has joined #ruby
x77686d has joined #ruby
<apeiros>
I'm happy I'm no longer #1
nateberkopec has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
aniM has quit [Ping timeout: 252 seconds]
idiocrash has joined #ruby
crystal77 has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
agent_white has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
bluenemo has joined #ruby
<agent_white>
Good mornin
<benzrf>
ello
Shidash has joined #ruby
Hanmac has quit [Ping timeout: 268 seconds]
<apeiros>
good evening
sambao21 has joined #ruby
tcstar has joined #ruby
atno has joined #ruby
nouitfvf has quit [Ping timeout: 252 seconds]
nouitfvf_ has joined #ruby
Gadgetoid has quit [Ping timeout: 268 seconds]
mercwithamouth has joined #ruby
pwh has joined #ruby
IceDragon has quit [Ping timeout: 268 seconds]
pwh has quit [Max SendQ exceeded]
TripTastic has left #ruby ["Leaving"]
sdouglas has joined #ruby
robbyoconnor has joined #ruby
IceDragon has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
Cache_Money has joined #ruby
Gadgetoid has joined #ruby
cescalante is now known as ce_afk
danijoo has quit [Remote host closed the connection]
RowdyChildren is now known as RowdyChild|Away
AlexRussia has quit [Remote host closed the connection]
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
bluenemo has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
IceDragon has joined #ruby
newUser1234 has joined #ruby
enebo has joined #ruby
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
jlast has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
porco has joined #ruby
havenwood has quit []
atno has joined #ruby
SolarSailor has joined #ruby
unstable has left #ruby [#ruby]
pigzzcanfly has joined #ruby
sdouglas has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
porco has quit [Ping timeout: 252 seconds]
jxf has joined #ruby
rm_ has joined #ruby
maroloccio2 has quit [Quit: WeeChat 0.4.3]
jottr has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
advorak has joined #ruby
Soda has joined #ruby
bluenemo has joined #ruby
francisfish has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
Jonah11_ has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
gemmy has quit [Quit: leaving]
IceDragon has joined #ruby
chrisseaton has quit []
fgo has quit [Ping timeout: 252 seconds]
<miah>
good morning
<benzrf>
hey yo
locriani has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
Gadgetoid has quit [Read error: Operation timed out]
brucelee has quit [Ping timeout: 255 seconds]
obs has quit [Quit: Konversation terminated!]
mityaz has quit [Quit: See ya!]
<apeiros>
hi miah
<apeiros>
you don't happen to be @miah_ on twitter?
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
locriani has quit [Ping timeout: 255 seconds]
danijoo has joined #ruby
<dmarr>
getting this error on a bundle install: /Users/dmarr/.gem/gems/bundler-1.6.1/lib/bundler/source/rubygems.rb:299:in `builtin_gem?': undefined method `include?' for nil:NilClass (NoMethodError) here is the stack: http://danceb.in/g2tv7u94xGvNLvvceTbw
Gadgetoid has joined #ruby
<Hanmac1>
dmarr: #bundler
Avahey_ has joined #ruby
Kricir has joined #ruby
karmatr0n has joined #ruby
Hanmac1 is now known as Hanmac
jollyy has quit [Ping timeout: 255 seconds]
vlad_sta_ has joined #ruby
jollyy has joined #ruby
vlad_starkov has quit [Read error: No route to host]
Ankhers has quit [Ping timeout: 265 seconds]
claymore has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
claymore has joined #ruby
monkegjinni has joined #ruby
<shevy>
Hanmac is the ultimate redirecter
monkegji_ has joined #ruby
<shevy>
future tags include #phphaven #deathsentence #silence #leave_us_alone
<Hanmac>
i would redirect him into the infinite emptyness of /dev/null if i could ;P
<shevy>
hmm should have been *heaven ...
Solnse has joined #ruby
<RubyPanther>
until bundler makes it into stdlib, then they'll send them all back
monkegjinni has quit [Ping timeout: 246 seconds]
Gnar has joined #ruby
<Gnar>
can anybody recommend a good introductory programming book? Just for learning the basic terminology etc?
mrgt has quit [Quit: Leaving]
<benzrf>
Gnar: u could try lpthw
luckyruby has joined #ruby
Kricir has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 268 seconds]
claymore has quit [Ping timeout: 268 seconds]
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
saarinen has joined #ruby
<shevy>
Gnar try to find "learn to program" by chris pine
<shevy>
other than that, the best way is to write scripts that do something no matter what that is and ignore the terms
<Gnar>
okay
enebo has quit [Quit: enebo]
<Gnar>
im used computers my whole life but ive never programmed before. I was looking for more of a general introductory programming book. nothing language specific
Hanmac has quit [Ping timeout: 240 seconds]
Gadgetoid has quit [Ping timeout: 252 seconds]
<agent_white>
Gnar: Ummm... "Code" by Charles Petzold?
Soda has quit [Remote host closed the connection]
<agent_white>
It's easiest to find a intro to a specific language, rather than "intro to all".
sdouglas has joined #ruby
luckyruby has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
<jhass>
Gnar: just pick a language to start with, once you grasped that pick a second one and you'll quickly realize that most principles you learned are already about programming and not the language itself
UserNameInvalid has joined #ruby
<shevy>
Gnar it's really the same 80% for most languages, functions/methods are like the basic building block, the rest is just arranged around that
<shevy>
and types
kaspergrubbe has quit [Remote host closed the connection]
BuSerD has joined #ruby
kobain has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
<benzrf>
>tfw pry segfaults
aspires has quit []
claymore has joined #ruby
IceDragon has joined #ruby
<shevy>
in order to determine the base directory of a gem project
<shevy>
one can use this?
<shevy>
File.dirname(__FILE__)
newUser1234 has quit [Remote host closed the connection]
pigzzcanfly has quit [Remote host closed the connection]
Gnar has left #ruby [#ruby]
mary5030 has quit [Remote host closed the connection]
evenix has joined #ruby
decoponio has quit [Quit: Leaving...]
Hanmac has joined #ruby
mary5030 has joined #ruby
sqwirl has joined #ruby
mary5030_ has joined #ruby
timonv has quit [Remote host closed the connection]
chrisseaton has joined #ruby
predator117 has joined #ruby
nar1y has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
mary5030_ has quit [Remote host closed the connection]
locriani has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mary5030_ has joined #ruby
tjbiddle has joined #ruby
jason__ has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
<BraddBitt>
Gnar I second shevy's suggestion, Chris Pine's book really helped me learn Ruby
IceDragon has joined #ruby
sambao21 has joined #ruby
nisstyre has joined #ruby
sigurding has joined #ruby
Megtastique has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
sigurding has quit [Read error: No route to host]
sigurding has joined #ruby
mary5030_ has quit [Ping timeout: 252 seconds]
<nar1y>
hey guys, I'm trying to write a simple ruby script that will ping a given subnet, can someone link me to a good resource?
pwh has joined #ruby
<jhass>
nar1y: where are you stuck?
pwh has quit [Max SendQ exceeded]
<nar1y>
I'm just new to ruby
<nar1y>
I've done a little code academy
Megtastique has quit [Read error: Connection reset by peer]
<nar1y>
but I don't know much about sockets and importing gems
pwh has joined #ruby
Megtastique has joined #ruby
<shevy>
nar1y Ping.pingecho "google.com", 1
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<nar1y>
say I want to do 192.168.1.0-254
Morkel has quit [Quit: Morkel]
<shevy>
then you must build up an array
<shevy>
rather a range
<shevy>
if you dont know what a range or array is then you need to find out first
<nar1y>
Im familiar with ranges and arrays
<shevy>
or just x.upto(y)
<shevy>
good!
<nar1y>
I've seen them done 5 different ways lol
<nar1y>
x..y
<shevy>
once you have your array, it is easy: array.each {|url|; Ping.pingecho(url) }
<jhass>
then you can just do (Foo.new(0,0,0)...Foo.new(1000,1000,100)).each do |point| do_stuff; sleep(interval); end
<Hanmac1>
a nose, a nose is a "in ter face" right shevy? ;P
Hanmac1 is now known as Hanmac
<shevy>
Most people indeed do have a nose in the face, but some don't.
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
amclain has joined #ruby
<Jonah11_>
Can someone explain how why this code is returning a Binding object? I'm confused because neither OStruct nor any of its parents has a "#binding" method: https://eval.in/132916
jamto11 has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
<apeiros>
Jonah11_: it's Kernel#binding
<apeiros>
and Kernel is a parent of OpenStruct
hakunin has quit [Remote host closed the connection]
<Jonah11_>
apeiros, ty. it wasn't listed as a parent in the docs i found... is Kernel a parent of everything?
LexicalScope` has quit [Read error: Connection reset by peer]
<apeiros>
Kernel is a module included in Object
<apeiros>
and Object is parent of everything
<apeiros>
(almost)
<Jonah11_>
apeiros, ah got it, ty
<Hanmac>
ah i forgot that i found a bug in rdoc & others ... about the new warning in Comparable#==
pwh has joined #ruby
hakunin has quit [Read error: Operation timed out]
sepp2k has quit [Quit: Leaving.]
<Jonah11_>
apeiros, is there an easy way to create a binding with JUST the keys of a hash? the instance_eval method will also include vars from the surrounding context....
<Hanmac>
apeiros: in ruby-trunk <=> is a method in Kernel ;P
flowerpot is now known as flower-pot
sepp2k has joined #ruby
locriani has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
blurredbits has joined #ruby
brian___ has joined #ruby
x77686d has joined #ruby
jollyy has quit [Ping timeout: 240 seconds]
jollyy has joined #ruby
JacobHayes has quit []
Bumptious has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
pigzzcanfly has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Quit: Leaving]
claymore has joined #ruby
<DouweM>
I actually do agree with the maintainer that this shouldn't be on Addressable ;)
<DouweM>
It's up to Signet to provide Addressable with the data in the format it expects it, not up to Addressable to support all kinds of formats
<DouweM>
I would use a hash with indifferent access in Signet
hakunin has joined #ruby
Hanmac1 has joined #ruby
camilasan has quit [Quit: Konversation terminated!]
monkegji_ has quit [Remote host closed the connection]
ckinni has joined #ruby
<momomomomo>
DouweM: yeah? the issue with that, though, is then signet must maintain an options whitelist for what addressable expects
<Hanmac1>
shevy did you know that Kernel now includes #<=> method into Object ? ;P that means each object is now comparable ready ;P
fightback has quit [Ping timeout: 240 seconds]
<DouweM>
momomomomo: how so? it can just wrap the options hash in HashWithIndifferentAccess and pass that alongto Addressable
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope` has joined #ruby
<DouweM>
momomomomo: a whitelist would be in place in Addressable, symbolization certainly not
siwica has quit [Quit: siwica]
Hanmac has quit [Ping timeout: 252 seconds]
alyi has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
<momomomomo>
DouweM: Seems to me that adding a whitelist in Addressable would resolve that without hash with indifferent access
sigurding has quit [Quit: sigurding]
<momomomomo>
ie: without adding another Type that needs testing
<DouweM>
momomomomo: Addressable still currently #to_sym's which is really not its responsibility, but that off the user (in this case Signet)
<DouweM>
*of
robbyoconnor has quit [Excess Flood]
<DouweM>
Addressable rightly expects correct input, it's up to Signet to provide that
francisfish has quit [Remote host closed the connection]
<Hanmac1>
HashWithIndifferentAccess is only for them who cant write right&safe code ;P
Hanmac1 is now known as Hanmac
robbyoconnor has joined #ruby
iliketurtles has joined #ruby
Lewix has joined #ruby
<momomomomo>
DouweM: and then we’re back to this: My initial PR was to just convert two individual requests in Signet to the right format
<DouweM>
momomomomo: but you were symbolizing *every key* which is asking for trouble
Xeago has joined #ruby
<DouweM>
momomomomo: use the whitelist on Signet's side and symbolize only those keys, or just IndifferentAccess (shush Hanmac)
Lewix has quit [Remote host closed the connection]
* Hanmac
lets make it double
danfo_ has joined #ruby
<momomomomo>
right, that’s because a few of the keys that get passed to addressable are nested hashes
ckinni has quit [Ping timeout: 268 seconds]
<momomomomo>
so i’ll probably just go and whitelist those for nested conversion i guess
blurredbits has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<momomomomo>
ugh what a pain
<DouweM>
momomomomo: or use indifferent access :P it solves this by always saving strings and "desymbolizing" the symbol at access-time
jottr_ has quit [Ping timeout: 246 seconds]
<Hanmac>
momomomomo: did i read that right? nested hashs as KEYS ? "few of the keys ... are nested hashes" ? Hashs inside Hashs as keys it very ugly ?¿
Lewix has joined #ruby
<momomomomo>
erm sorry Hanmac
<momomomomo>
it would be { “addressable_uri” => { “option1” => “option2” }
<momomomomo>
however, Addressable only accepts keys that are symbols for options; so I has a nested hash conversion from keys of strings to keys of symbols; which DouweM rightly pointed out was unsafe due ot Ruby GC not freeing symbols
<Hanmac>
momomomomo: ups wrong ... newestestestest versions of ruby can free dynamic-symbols
zcreative has joined #ruby
<momomomomo>
aye, but that’s not the case for all users of this gem
danfo_ has quit [Client Quit]
mary5030 has joined #ruby
<DouweM>
Hanmac likes to live on the edge
<Hanmac>
DouweM: thats my X-treme sportart ;P
Shidash has joined #ruby
* Hanmac
need to read more about the difference between dynamic and static symbols and how that tangent me with my C bindings
<momomomomo>
so here’s what I’m going to do: add a whitelist to signet, and only convert the first level of nested hashes for those that exist on the whitelist - sound good DouweM ?
<DouweM>
momomomomo: and what will you do with nested hashes?
<apeiros>
Jonah11_: isn't that the purpose of your paste?
rm_ has joined #ruby
<momomomomo>
DouweM: Example time. one of the whitelist options for Signet is “addressable_uri”. if options[“addressable_uri”] value is a hash, and we convert its keys to a hash, we’re still open to a DOS
<ablemike>
this is turning out harder than I thought.
<momomomomo>
unless, DouweM , we say, “If this key is in the set of nested_whitelist_options (aka Addressable’s option whitelist), then convert it to symbol”
<DouweM>
momomomomo: yeah, adding the whitelist would be an idea, but it really isn't Addressable's responsibility to symbolize the keys. I'd just go with a hash with indifferent access, it's not "proper" but it's the most straightforward solution
RowdyChild|Away is now known as RowdyChildren
robbyoconnor has quit [Excess Flood]
<DouweM>
momomomomo: looping over all of Addressable's whitelists from within Signet is ugly :(
locriani has joined #ruby
<momomomomo>
DouweM: exactly my point!
robbyoconnor has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 255 seconds]
Martxel_ has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
banister_ has joined #ruby
grayWolf has joined #ruby
chris_th_ has joined #ruby
yourmysin has joined #ruby
Asher1 has joined #ruby
locriani_ has joined #ruby
Lewix_ has joined #ruby
AlSquirrel has joined #ruby
tonni has joined #ruby
locriani has quit [Read error: Connection reset by peer]
<apeiros>
Jonah11_: don't use instance_eval or another eval to get the binding
<crome>
hmm
jgoss has quit [Ping timeout: 246 seconds]
<Jonah11_>
apeiros, so how do i get it? that's the question :)
<apeiros>
def get_binding; binding; end
<apeiros>
in my pasted code
SolarSailor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jle` has quit [Ping timeout: 240 seconds]
advorak_ has quit [Ping timeout: 240 seconds]
LexicalScope has quit [Ping timeout: 252 seconds]
claymore has quit [Quit: Leaving]
<Jonah11_>
apeiros, ok that works: https://eval.in/132940. ty. sure seems like a lot of hoops though just to get a Binding for a Hash, i wonder if there's an easier way...
<Jonah11_>
apeiros, also out of curiosity why did you name your argument __string__ rather than "str" or something?
pdtpatrick has joined #ruby
Es0teric has joined #ruby
<shevy>
_ makes variables sexier
LexicalScope has joined #ruby
sdouglas has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
glanzi has joined #ruby
sdouglas has quit [*.net *.split]
idoru has quit [*.net *.split]
dayepa has joined #ruby
bluenemo has joined #ruby
<apeiros>
Jonah11_: because it'll be part of the binding
nar1y has left #ruby ["Leaving"]
VTLob has joined #ruby
Mission-Critical is now known as MissionCritical
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<Jonah11_>
apeiros, ahhhhh, ok
fgo has joined #ruby
<apeiros>
avoiding even that is a bit more involved
<Jonah11_>
apeiros, crazy that solving something so simple is so convoluted
sdouglas has joined #ruby
idoru has joined #ruby
<apeiros>
simple…
<apeiros>
hm, lets not get into that :)
pu22l3r has quit [Ping timeout: 253 seconds]
<BraddBitt>
can I create an object using Class.new where one of the args is a class method of Class?
<BraddBitt>
eh nvm that is poor design
sambao21 has quit [Quit: Computer has gone to sleep.]
boombadaroomba has joined #ruby
jle` has joined #ruby
<ablemike>
Is anyone familiar with Linalg?
Hanmac has joined #ruby
<ablemike>
It hasn't been updated since 2008 and I am wondering if it might be the toolbox I need to do some euclidian math stuff.
LexicalScope has quit [Ping timeout: 246 seconds]
iliketurtles has quit [Ping timeout: 246 seconds]
francisfish has joined #ruby
evenix has quit [Remote host closed the connection]
<ablemike>
Or Ruby GSL
evenix has joined #ruby
Hanmac1 has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
crystal77 has joined #ruby
jottr_ has joined #ruby
jgoss has joined #ruby
<boombadaroomba>
can anyone help a noob out deploying a server on virtual box?
tcstar has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
SHyx0rmZ has joined #ruby
mehlah_ is now known as mehlah
davedev24 is now known as PSYOPS
pdtpatrick has quit [Quit: pdtpatrick]
iliketurtles has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
iliketurtles has quit [Max SendQ exceeded]
tjbiddle has quit [Quit: tjbiddle]
zcreativ_ has quit [Quit: Computer has gone to sleep.]
PSYOPS is now known as davedev24
iliketurtles has joined #ruby
karmatr0n has quit [Remote host closed the connection]
ckinni has joined #ruby
Guest29592 has quit [Changing host]
Guest29592 has joined #ruby
danijoo has quit [Remote host closed the connection]
karmatr0n has joined #ruby
karmatr0_ has joined #ruby
karmatr0n has quit [Remote host closed the connection]
pdtpatrick has joined #ruby
karmatr0_ has quit [Remote host closed the connection]
Megtastique has quit [Read error: Connection reset by peer]
banister_ has quit [Read error: Connection reset by peer]
<Jamo>
boombadaroomba: umm what exactly you are trying to do?
banister has joined #ruby
funburn has joined #ruby
francisfish has quit [Remote host closed the connection]
<boombadaroomba>
jamo: one sec I will screen shot this book
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
kith_ is now known as kith
locriani has quit [Remote host closed the connection]
skinkitten has joined #ruby
skinkitten has left #ruby ["Leaving"]
freggles has quit [Remote host closed the connection]
iliketur_ has joined #ruby
iliketur_ has quit [Remote host closed the connection]
Doppp has joined #ruby
m0s^away is now known as m0s
locriani has joined #ruby
aniM has joined #ruby
tectonic has joined #ruby
sdouglas has quit [Remote host closed the connection]
DssTech[A] has joined #ruby
rm_ has joined #ruby
DssTech[A] has left #ruby ["<-- Got Work to DO. See Ya !!!"]
crystal77 has quit [Quit: Computer has gone to sleep.]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
CyborgCygnus has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Read error: Connection reset by peer]
dayepa has quit [Ping timeout: 252 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Guest57588 has quit [Changing host]
Guest57588 has joined #ruby
m0s is now known as m0s^away
Guest57588 is now known as winny_
snuffeluffegus has joined #ruby
advorak has quit [Quit: Leaving]
ckinni has joined #ruby
brucelee has joined #ruby
iliketurtles has joined #ruby
s2013 has joined #ruby
ckinni has quit [Client Quit]
Bumptious has quit [Ping timeout: 255 seconds]
VTLob has quit [Quit: VTLob]
m0s^away is now known as m0s
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
jarray52 has joined #ruby
pigzzcanfly has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
sqwirl has joined #ruby
nari has joined #ruby
m0s is now known as m0s^away
Azure has joined #ruby
sdouglas has joined #ruby
mrmargolis has quit [Remote host closed the connection]
Bumptious has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 255 seconds]
pigzzcanfly has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
andrewlio has quit [Quit: Leaving.]
nisstyre has quit [Quit: WeeChat 0.4.3]
jonno11 has joined #ruby
pwh_ has quit []
riotjones has joined #ruby
bluenemo has quit [Read error: Connection reset by peer]
<centrx>
Looks like I missed the revolution
LexicalScope has joined #ruby
dr0ff has joined #ruby
tkuchiki has quit [Remote host closed the connection]
aniM has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
combusean has joined #ruby
[gmi] has quit [Quit: Leaving]
hermanmunster has quit [Remote host closed the connection]
<shevy>
php
<shevy>
is the new revolution
s2013 has quit [Ping timeout: 252 seconds]
* combusean
sets shevy on fire
* crome
joins the fun
<shevy>
!!!
<dr0ff>
rbr
tcstar has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
porco has joined #ruby
kennym has quit [Quit: Leaving.]
connor_g1odwolf has quit [Quit: leaving]
connor_goodwolf has joined #ruby
narcan has joined #ruby
rm_ has joined #ruby
porco has quit [Ping timeout: 255 seconds]
aspires has joined #ruby
maletor has joined #ruby
dale has joined #ruby
zachallett has joined #ruby
momomomomo has joined #ruby
Lewix has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 252 seconds]
jxf has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
LexicalScope` has joined #ruby
locriani has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
papercode has joined #ruby
m4n1f3st0 has joined #ruby
Lewix has joined #ruby
locriani has quit [Ping timeout: 265 seconds]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dale>
Stupid question: How do I know what file(s) to "require" so that I can use something in the standard library? For example, say I wanted to use the Marshal or Psych modules, how do I know what I should require before using them?
<centrx>
dale, Usually it is the same name, all lowercase
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep has quit [Quit: Connection closed for inactivity]
predator217 has joined #ruby
LexicalScope` has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
maletor has quit [Ping timeout: 240 seconds]
renier has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
workmad3 has quit [Ping timeout: 252 seconds]
m0s^away is now known as m0s
osx5 has joined #ruby
<osx5>
Hello all
Bumptious has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
sqwirl has joined #ruby
sqwirl has quit [Client Quit]
pigzzcanfly has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
aspires has quit []
keeguon has quit [Quit: keeguon]
dayepa has joined #ruby
pigzzcanfly has quit [Ping timeout: 255 seconds]
earth has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 255 seconds]
dayepa has quit [Client Quit]
doodlehaus has joined #ruby
<osx5>
Is ruby really easy to learn?
chrisseaton has quit [Ping timeout: 255 seconds]
locriani has joined #ruby
<jhass>
I'd say it counts to the easy to learn programming languages
mrmargolis has joined #ruby
<popl>
osx5: What do you mean by easy to learn?
<popl>
I'd say it's no harder than many different languages.
jottr_ has quit [Read error: Operation timed out]
zcreative has quit [Quit: Computer has gone to sleep.]
<shevy>
osx5 it depends, if you want to only use the basic then it can be simple, if you want to master ruby fully, it's a daunting task
bousquet has joined #ruby
<osx5>
shevy: Whys it daunting
locriani has quit [Remote host closed the connection]
<popl>
mastering any language is
<shevy>
osx5 there are constructs that some other languages like. you won't have to understand what a block is in php for instance because there are no blocks in php
alekst has joined #ruby
<popl>
osx5: are you looking for excuses to continue not knowing ruby?
locriani has joined #ruby
<bousquet>
anyone using simplecov with minitest on ruby 2.1.1? seems to be reporting erroneously light coverage
<popl>
just learn it and decide how difficult it is yourself
LexicalScope has quit [Read error: Connection reset by peer]
<osx5>
popl: Huh
<shevy>
osx5 but if you keep it simple, ruby will remain simple
<crome>
osx5: and ruby has talking foxes
LexicalScope has joined #ruby
<crome>
and chunky bacon
<osx5>
Lol
<shevy>
osx5 i.e. to use a subset of ruby
<crome>
end of argument
CyborgCygnus has quit [Quit: Rage Quit]
doodleha_ has joined #ruby
emaxi has joined #ruby
<osx5>
C'mon guys I'm not super geeks like you :-P
<popl>
many languages fit that description, shevy.
doodlehaus has quit [Ping timeout: 252 seconds]
<crome>
osx5: but you still can be!
<shevy>
php is a simple language
<osx5>
Thanks crome
<crome>
shevy: simple as in not very sophisticated?
nfk has quit [Quit: yawn]
<osx5>
Php is only limited to the web?
<shevy>
simple as in having a rather flat learning curve
<popl>
no, osx5
<crome>
I think it has a rising learning curve, it just ends with a gaping chasm
<popl>
but go ask ##php
<nhmood>
popl do you know of any nonweb php apps?
<shevy>
I can't remember having seen any code in regards to lambdas in php, whereas in ruby I found several references to lambdas quite early on
<osx5>
popl: I don't really have a focus on trying to learn php
<osx5>
At least not right now
<crome>
shevy: in my case blocks where the thing that got me into ruby in the first place
<shevy>
osx5 how did you hear about ruby
<popl>
nhmood: does lack of anecdotal evidence prove that PHP is only a web development language?
<combusean>
osx5, php isn't limited to the web.
<shevy>
yes
<osx5>
I've known about ruby for a few years but never looked into it
<shevy>
php is hugely limited
<combusean>
osx5, i did php for a long time and wouldn't recommend it
<combusean>
even really learning it
<shevy>
my last php project was an IRC bot
<popl>
I think Rasmus said something about it not being just for the web.
<combusean>
it's way, way, way too easy to write bad code in php, and the language itself is fucked.
<shevy>
then I switched to ruby from zero and with some help finished writing my first ruby project, an IRC bot \o/
<shevy>
I broke it since then :(
<osx5>
Its a full feature language that became segregated to the web?
<nhmood>
popl: i guess not necessarily i was just curious
<shevy>
Rasmus that old pot smoker
locriani has quit [Ping timeout: 265 seconds]
<shevy>
osx5 php has got only one thing right: focus, or attention, on the www
gregf has joined #ruby
<osx5>
combusean: I don't want to be some half ass programmer if I learn it
<osx5>
Like a lot of clowns out there
<shevy>
hehe
<combusean>
osx5, you'll have a lot better tools if you have a good master of ruby out here.
<popl>
nhmood: I met people who use it for non-web purposes (e.g. on their own machines, for utilities) but not very many.
<nhmood>
i guess nothing stops you from #!/usr/bin/php -q "Hello world"
<combusean>
also, if you want to make fucking bank in major cities writing ruby it's much better for that.
<shevy>
I tried to write a MUD in php once
danijoo has joined #ruby
<shevy>
admittedly, my MUD in ruby was never finished either ... :\
<osx5>
I live in Pittsburgh
<osx5>
C++ still dominates here
<osx5>
Peel
<crome>
shevy: but then you found yourself knee deep in php mud?
<osx5>
Perl
<shevy>
osx5 I think from some distance, all the scripting languages family are fairly similar
<popl>
osx5: Shouldn't you be working in a mine or something?
dale has left #ruby [#ruby]
<osx5>
popl: At the rate my life is going , no lol
<shevy>
crome nah, php MUD was shortly before I tried php IRC bot; I abandoned php forever after that and switched to ruby
<osx5>
I'd rather be dead
<shevy>
osx5 did you read the old interview with matz?
<combusean>
pittsburgh WAS a steel town, they've reinvented themselves around education and medical sciences
<nhmood>
combusean: is it true that you make "bank" writing _rails_, not necessarily ruby?
<combusean>
you need to have a good command of both
<osx5>
We have a ton of hospitals
<popl>
mmm, black lung
<combusean>
well, rails is way more popular, but that implies a depth of ruby as well
sailias has joined #ruby
<shevy>
osx5 http://www.artima.com/intv/rubyP.html it is fairly old, but quite short, you should read it, when you understand the philosophy of ruby you know why ruby is the way it is
<combusean>
and osx5 assumed the self-deprecating role
<osx5>
Senjai: You are being constructive and helpful
<shevy>
popl naaaah I require first hand experience! people with sweaty hands, muscular builds, working in the industry, able to incite fire with their words alone as they tell about what they endured in their lives
<osx5>
Lol
<popl>
shevy: first hand experience… over IRC.
BuSerD has left #ruby ["WeeChat 0.4.4-dev"]
<shevy>
popl yes, authentic ones!
<osx5>
If I worked in a coal mine or steel mill
<osx5>
Id be dead
kitak has quit [Remote host closed the connection]
<popl>
five o'clock in the morning
<popl>
up before the sun
<shevy>
ewwww
apeiros has quit [Remote host closed the connection]
<shevy>
that's when I go to bed
kitak has joined #ruby
<popl>
you mean crawl into your coffin right?
danijoo has quit [Remote host closed the connection]
<popl>
shevy the vampire
<platzhirsch>
awesome, so the first contact I have for an apartment in London, is veeeery likely a scammer
apeiros has joined #ruby
<osx5>
Programming vampire
pdtpatrick has quit [Quit: pdtpatrick]
zachallett has joined #ruby
<platzhirsch>
Mr. Nigerian Prince wants to give you some money
<popl>
platzhirsch: yeah, renting apartments in london is a huge scam
<osx5>
platzhirsch: Where'd you find them at
<shevy>
popl it's a bit like a coffin here indeed
<shevy>
in a few hours the stupid sun comes to annoy me :(
locriani has joined #ruby
<platzhirsch>
osx5: a Facebook group for flat sharers in tech
Kricir has joined #ruby
<platzhirsch>
startups
<shevy>
but one day we will have overcome "sleep"
LexicalScope has joined #ruby
<shevy>
platzhirsch how do you figure he is from nigeria?
<platzhirsch>
shevy: no idea, let's wait for the next email
<platzhirsch>
I will say that the rent is too cheap and that I want to pay more
<shevy>
platzhirsch listen, I got this really serious offer from Nigeria... apparently someone wants to transfer a lot of money to my account
<osx5>
There's a lot of scams out of Africa , Jamaica right now
<shevy>
hehe
<popl>
platzhirsch: I found something like that here in Oregon.
locriani has quit [Remote host closed the connection]
<combusean>
ugh
<popl>
platzhirsch: someone wanted $250 per month for a one bedroom, one bathroom condominium.
<platzhirsch>
I feel kind of retarded, because first I believed her
<combusean>
try looking for a cheap apt in SF
<combusean>
you will be scammed out at the ass
<shevy>
platzhirsch dunno, when I was in Hannover, the rent was actually much cheaper than in Vienna; it was a bit outside of main Hannover though, I had to commute half an hour... but it was cheaper and thus worth it
Megtastique has quit []
klaut has quit [Remote host closed the connection]
locriani has joined #ruby
<popl>
combusean: I think it's in the rental clause there that you have to murder the old resident first, then you get dibs on the apartment.
<combusean>
i just pay out the ass to live in the sticks
jason___ has joined #ruby
<shevy>
is that a common phrasing in the UK
<popl>
platzhirsch: I wouldn't answer any of those questions.
jonno11 has joined #ruby
<platzhirsch>
yeah fuck it
<platzhirsch>
too late
<platzhirsch>
I think it's just to make it more believable
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch>
or do you think they profile me now?
m0s^away is now known as m0s
<popl>
Or they want to steal your identity.
dorei has quit []
<platzhirsch>
come on
<osx5>
Tell em to leave their "bloody" hands off your money
<osx5>
:-)
<popl>
or sign you up for insurance, platzhirsch
<popl>
;P
<platzhirsch>
identity theft
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
platzhirsch perhaps she wants to marry you
<platzhirsch>
the FB profile is just so faked
<shevy>
the best question is:
<shevy>
"Did you take drugs?"
<shevy>
so platzhirsch :)
<shevy>
did you?
<platzhirsch>
I answered 'Coffee :-)'
<platzhirsch>
I am so funny
<shevy>
...
<platzhirsch>
anyway, now I will have my toll with her
<popl>
platzhirsch: It's a big deal, and you should be careful about identity theft.
bogeyd6 has joined #ruby
<platzhirsch>
popl: I know, but isn't that related to credit card or social security number?
<platzhirsch>
and not, whether I had pets?
locriani has quit [Ping timeout: 265 seconds]
kitak has quit [Ping timeout: 260 seconds]
<popl>
If I were going to assume someone's identity I would learn all about that person.
<popl>
but you're right
<popl>
most just steal your financial information
<platzhirsch>
These are typical questions also listed on sites like spareroom.co.uk
<shevy>
huh
<shevy>
drugs
<shevy>
wtf
<platzhirsch>
no, not that
<platzhirsch>
that's really weird
<popl>
Well, there's another possibility. Maybe you're just being paranoid.
newUser1234 has joined #ruby
<shevy>
ok
<platzhirsch>
No, the text is just fucked up and on her FB page it says the studies and not work
<shevy>
I got another idea
<popl>
The drug question seems straightforward.
<shevy>
buy a flat in the UK Platini
<shevy>
erm
<shevy>
platzhirsch,
grayWolf is now known as Speed
<popl>
She wants to know if you're a junky.
<popl>
That's all.
<platzhirsch>
Did you take take drugs? No, I just produce and sell them
<shevy>
where is the problem
<shevy>
either he has money or he has not
winny_ is now known as winny
<popl>
She's sharing her living space so she wants to get to know you.
<popl>
Maybe she's just a very inquisitive person.
<shevy>
platzhirsch interesting there was no question about religion
<popl>
platzhirsch: arrange a meeting in person.
Shidash has quit [Ping timeout: 255 seconds]
<popl>
go have a coffee or something
<platzhirsch>
There was a great article how a potential scamming victim trolled the shit out of the scammer
<platzhirsch>
popl: I am sure she is currently and USA, but I mean hey, maybe she could mail me the keys
<platzhirsch>
haha
<shevy>
lol
<shevy>
I see how it will end anyway
<popl>
platzhirsch: There's also 419eaters.com
<popl>
*419eater.com
<shevy>
platzhirsch will have to go from renting place to renting place and then end up in a hotel
<popl>
for the mercilessly cruel :P
<shevy>
or on the streets
<platzhirsch>
I will just make Airbnb for 3 months
<popl>
platzhirsch: You know, I should probably read things before I comment on them.
<osx5>
Well Thanks for the tips and advice earlier guys
<popl>
platzhirsch: The not-being-there thing is a huge red flag
<popl>
I would have stopped reading there.
<osx5>
This convo morphed into a way different direction
<platzhirsch>
popl: Yes, don't ask me why I was still on track, maybe because I thought she would be in London then
<popl>
That's what happens. Conversation assumes a very organic path.
<platzhirsch>
But I mean, let's be positive about this
<platzhirsch>
I earned the trust of my scammer
<osx5>
Lol
<shevy>
osx5 you didn't help! :(
<shevy>
osx5 you could ask more ruby questions
<osx5>
shevy: Why ruby vs python or c#
jamto11 has joined #ruby
<popl>
Or we could all ask ourselves what's wrong with shevy.
LexicalScope has quit [Ping timeout: 240 seconds]
<shevy>
c# is very different from the use cases that you will find in ruby or python osx5
mikecmpbll has quit [Quit: ciao.]
<osx5>
platzhirsch: Scammers are the slime of humanity
<shevy>
you won't see c# programmers quickly write a multitude of commandline scripts
<platzhirsch>
I want to emotional abuse him/her now
<platzhirsch>
Vendetta!
<popl>
why waste your time?
<shevy>
osx5 ruby vs. python is much closer, I don't think it matters much which one you pick but be aware that people tend to stick with one or the other for the rest of their lives