havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
flashpoint9 has joined #ruby
edwardly has quit [Ping timeout: 246 seconds]
binaryplease1 has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 244 seconds]
agent_white has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
agent_white has quit [Remote host closed the connection]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
davedev24 has quit [Remote host closed the connection]
jaguarmagenta has quit [Read error: Connection reset by peer]
dcunit3d has quit [Ping timeout: 260 seconds]
Guest17372 has joined #ruby
jaguarmagenta has joined #ruby
Coldblackice has joined #ruby
kirun has quit [Quit: Client exiting]
nankyokusei has joined #ruby
binaryplease1 is now known as binaryplease
elifoster has quit [Ping timeout: 250 seconds]
der-landgraf has quit [Quit: WeeChat 1.5]
JazzyVariable227 has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 260 seconds]
JazzyVariable227 has joined #ruby
agent_white has joined #ruby
<agent_white> Evenin' folks
der-landgraf has joined #ruby
davedev24 has joined #ruby
benlieb has quit [Quit: benlieb]
duckpupp1 has joined #ruby
ergobfmv has joined #ruby
yfeldblum has joined #ruby
giz|work|2 has joined #ruby
agent_white has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 250 seconds]
hightower2 has quit [Remote host closed the connection]
giz|work|2 has quit [Client Quit]
fedruantine has joined #ruby
arescorpio has joined #ruby
hightower2 has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
roamingdog has quit [Remote host closed the connection]
kavanagh has joined #ruby
marr has quit [Remote host closed the connection]
kavanagh has quit [Client Quit]
Rodya_ has quit [Remote host closed the connection]
certainty has joined #ruby
aryaching has joined #ruby
Rodya_ has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 250 seconds]
ElFerna has joined #ruby
jackjackdripper has joined #ruby
flashpoint9 has joined #ruby
ciampix has joined #ruby
Niham has joined #ruby
sphex_ has joined #ruby
ciampix has quit [Client Quit]
ElFerna has quit [Quit: Leaving]
ElFerna has joined #ruby
Niham has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
snath has joined #ruby
yfeldblu_ has joined #ruby
Vingador has joined #ruby
sphex has quit [Ping timeout: 250 seconds]
aryaching has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
TubaraoSardinha has joined #ruby
ergobfmv has quit [Quit: ergobfmv]
jackjackdripper has joined #ruby
Vingador_ has joined #ruby
saneax is now known as saneax_AFK
diegoviola has quit [Quit: WeeChat 1.5]
hutch34 has quit [Ping timeout: 240 seconds]
flashpoint9 has quit [Remote host closed the connection]
Vingador has quit [Ping timeout: 244 seconds]
Niham has joined #ruby
buddhabrot_ has quit [Quit: Connection closed for inactivity]
panpainter has joined #ruby
agent_white has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
Niham has quit [Max SendQ exceeded]
anurajm has joined #ruby
Niham has joined #ruby
ekinmur has joined #ruby
Vingador has joined #ruby
Vingador has quit [Read error: Connection reset by peer]
Vingador_ has quit [Ping timeout: 244 seconds]
panpainter has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
Vingador has joined #ruby
Coldblackice has quit []
Vingador has quit [Client Quit]
Vingador has joined #ruby
Vingador has quit [Read error: Connection reset by peer]
aryaching has quit [Remote host closed the connection]
Vingador has joined #ruby
Coldblackice has joined #ruby
segy has joined #ruby
TubaraoSardinha has quit [Ping timeout: 240 seconds]
segy has quit [Client Quit]
pawnbox has joined #ruby
segy has joined #ruby
Vingador has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
segy has quit [Client Quit]
pawnbox has quit [Ping timeout: 246 seconds]
hightower2 has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
segy has joined #ruby
flashpoi_ has joined #ruby
AcidCras_ has joined #ruby
palms has joined #ruby
snath has quit [Ping timeout: 246 seconds]
AcidCrash has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
anurajm has quit [Ping timeout: 244 seconds]
vdamewood has joined #ruby
benlieb has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
JazzyVariable227 has quit [Remote host closed the connection]
panpainter has joined #ruby
roamingdog has joined #ruby
segy has joined #ruby
CloCkWeRX has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
tildes has quit [Ping timeout: 246 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
palms has quit [Ping timeout: 252 seconds]
lightt has quit [Remote host closed the connection]
certainty has joined #ruby
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segy has quit [Quit: ZNC - http://znc.in]
pepee has quit [Ping timeout: 276 seconds]
segy has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
segy has quit [Read error: Connection reset by peer]
fedruantine has quit [Max SendQ exceeded]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Fuzai has quit [Quit: Leaving.]
segy has joined #ruby
Vingador has joined #ruby
haraigoshi has quit [Ping timeout: 272 seconds]
lightt has joined #ruby
segy has quit [Client Quit]
m_antis has joined #ruby
pepee has joined #ruby
flashpoi_ has quit [Remote host closed the connection]
m_antis has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
ncthom91 has joined #ruby
AustinMatherne has joined #ruby
Vingador has joined #ruby
AustinMatherne has quit [Client Quit]
Vingador has quit [Read error: Connection reset by peer]
Vingador has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
Yiota has joined #ruby
segy has joined #ruby
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
palms has joined #ruby
AustinMatherne has joined #ruby
panpainter has joined #ruby
<shevy> yo agent_white
panpainter has quit [Ping timeout: 252 seconds]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pilne> i know the "... the hard way tutorials" have their flaws, but is what the author says about "for X in Y" type loops being "broken intentionally" true? I'm not uncomfortable with the each syntax, just curious about that statement.
dobbee has joined #ruby
<shevy> if it is valid ruby syntax it goes
<shevy> but it is not very idiomatic or common
<shevy> when you can already use .each or variants of it
ncthom91 has joined #ruby
duckpupp1 has joined #ruby
johnDoe111 has joined #ruby
spyder55 has quit []
<pilne> i understand that (maybe it was different at the time of writing?), the author just stated directly "They went so far as to break the for-each version of looping so that there are problems with using it, forcing you to conform to their culture." so I was curious.
haraigoshi has joined #ruby
<pilne> i know the guy is highly opinionated, so i saw that and raised an eyebrow, because "intentionally breaking" something seems very anti-ruby to me, depreciate, yes, break no.
duckpupp1 has quit [Ping timeout: 240 seconds]
rehat has joined #ruby
johnDoe111 has quit [Ping timeout: 244 seconds]
JazzyVariable227 has joined #ruby
skweek has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
JazzyVariable227 has quit [Ping timeout: 240 seconds]
panpainter has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
kspencer has joined #ruby
<shevy> he is very opinionated
haraigoshi has quit [Ping timeout: 240 seconds]
panpainter has quit [Ping timeout: 252 seconds]
<shevy> in general it would strike me as better to use a tutorial written by someone who also actually uses the language. admittedly though the amount of people who wriet a tutorial in the first place, is very very small compared to all those who do use a language
certainty has joined #ruby
haraigoshi has joined #ruby
davedev24 has quit []
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0n has joined #ruby
certainty has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
xxneolithicxx has joined #ruby
GaryKing has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
xxneolithicxx has quit [Client Quit]
ur5us has joined #ruby
haraigoshi has quit [Ping timeout: 264 seconds]
<pilne> its not my only tutorial, nor my first, i just needed something kinda productive, but not too mentally taxing to take on tonight :)
armyriad has joined #ruby
<pilne> and i was like "what better tutorial author to follow when drunk?" lol.
bluOxigen has quit [Ping timeout: 240 seconds]
GaryKing has quit [Quit: GaryKing]
bluOxigen has joined #ruby
ur5us has quit [Ping timeout: 276 seconds]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
sandstrom has joined #ruby
snath has joined #ruby
kraken_ has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 264 seconds]
Niham has joined #ruby
jord-n has joined #ruby
PaulCape_ has joined #ruby
kotk has joined #ruby
haraigoshi has joined #ruby
PaulCapestany has quit [Ping timeout: 250 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
pawnbox has joined #ruby
<shevy> I dunno
<shevy> my favourite format was https://pine.fm/LearnToProgram/chap_01.html
<shevy> but it needs to be updated and extended
c355e3b has quit [Quit: Connection closed for inactivity]
dcunit3d has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
<pilne> there is a second edition for sale as a book it would seem
jaguarmagenta has quit [Remote host closed the connection]
xlegoman has quit [Ping timeout: 246 seconds]
xlegoman has joined #ruby
braincrash has joined #ruby
braincrash is now known as braincras
jackjackdripper has quit [Quit: Leaving.]
jenrzzz has joined #ruby
k3rn31 has joined #ruby
haraigoshi has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
haraigoshi has joined #ruby
PaulCapestany has joined #ruby
CircleDot has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
PaulCape_ has quit [Ping timeout: 260 seconds]
kspencer has quit [Quit: WeeChat 1.3]
SuperLag has joined #ruby
blackmesa has joined #ruby
Canucktux has joined #ruby
Vingador has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
kspencer has joined #ruby
mistermocha has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
dcunit3d has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
certainty has joined #ruby
gix has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 258 seconds]
haraigoshi has quit [Ping timeout: 244 seconds]
zacts has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
freerobby has quit [Client Quit]
karmatr0n has joined #ruby
gix has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
pilne has quit [Quit: Quitting!]
pontiki has joined #ruby
howdoi has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
hk238 has joined #ruby
symm- has quit [Ping timeout: 244 seconds]
panpainter has joined #ruby
PaulCape_ has joined #ruby
palms has quit [Ping timeout: 252 seconds]
zacts has joined #ruby
terminalrecluse has joined #ruby
jord-n has quit [Ping timeout: 250 seconds]
benlieb has quit [Quit: benlieb]
chopin has joined #ruby
PaulCapestany has quit [Ping timeout: 246 seconds]
spyder55 has joined #ruby
panpainter has quit [Ping timeout: 246 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
johnDoe111 has joined #ruby
chopin has quit [Ping timeout: 246 seconds]
dobbee has quit [Quit: Quit]
ryan_notabot has joined #ruby
johnDoe111 has quit [Ping timeout: 244 seconds]
nadir has quit [Quit: Connection closed for inactivity]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
k3rn31 has joined #ruby
jackjackdripper has joined #ruby
JazzyVariable227 has joined #ruby
nankyokusei has joined #ruby
jaguarmagenta has joined #ruby
kraken_ has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
noodle has quit [Ping timeout: 258 seconds]
jaguarmagenta has joined #ruby
kraken_ is now known as Silva_k
solocshaw has joined #ruby
<Silva_k> So I've used YAML to serialize objects in their current states with their current instance variables, and I've generated json for hashes, but can I used json in a similar way to the way I've used YAML?
arescorpio has quit [Quit: Leaving.]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 244 seconds]
A124 has quit [Ping timeout: 240 seconds]
JazzyVariable227 has quit [Remote host closed the connection]
Silva_k is now known as kraken_
yatish27 has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
chopin has joined #ruby
PaulCapestany has joined #ruby
benlieb has joined #ruby
jenrzzz has joined #ruby
duckpupp1 has joined #ruby
PaulCape_ has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 252 seconds]
duckpupp1 has quit [Ping timeout: 264 seconds]
ryan_notabot has quit [Ping timeout: 244 seconds]
houhouli_ has joined #ruby
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
houhoulis has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
solocshaw1 has quit [Ping timeout: 250 seconds]
certainty has joined #ruby
noodle has joined #ruby
solocshaw has joined #ruby
hutch34 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
JazzyVariable227 has joined #ruby
roamingdog has quit []
certainty has quit [Ping timeout: 244 seconds]
lightt has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Ping timeout: 252 seconds]
ElFerna has quit [Ping timeout: 260 seconds]
palms has joined #ruby
lightt has joined #ruby
djbkd has joined #ruby
slackbotgz has joined #ruby
soLucien has joined #ruby
duncannz has quit [Ping timeout: 246 seconds]
<soLucien> hi guys i am trying to debug some ruby code
<soLucien> so i need to start from somewhere
<soLucien> what is a binstub ?
palms has quit [Ping timeout: 252 seconds]
dcunit3d has joined #ruby
<soLucien> and how do i debug it ?
<soLucien> context :
duckpupp1 has joined #ruby
pawnbox has joined #ruby
braincrash has joined #ruby
bkxd has joined #ruby
<soLucien> also , what's up with that weird error ?
<soLucien> Unresolved specs during Gem::Specification.reset
<soLucien> i am very new to ruby, this is the first time i do this
<soLucien> and i could use a hand
braincras has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
xxneolithicxx has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
phredus has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
duncannz has joined #ruby
fsosowp has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
lightt has quit [Ping timeout: 240 seconds]
PaulCapestany has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
lightt has joined #ruby
kareeoleez has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
PaulCape_ has quit [Ping timeout: 250 seconds]
_Tariq has joined #ruby
fsosowp has quit [Read error: Connection reset by peer]
fsosowp has joined #ruby
fsosowp has quit [Read error: Connection reset by peer]
fsosowp has joined #ruby
lightt has quit [Ping timeout: 258 seconds]
palms has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
SilverKey has joined #ruby
palms has quit [Ping timeout: 252 seconds]
slackbotgz has quit [Remote host closed the connection]
<_Tariq> Hey?
kmooney has joined #ruby
irrationalist has joined #ruby
pawnbox has joined #ruby
kgrz has joined #ruby
tmtwd has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
blackmesa has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
craigp has quit [Ping timeout: 244 seconds]
fsosowp has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 260 seconds]
<soLucien> hello _Tariq
Madplatypus has quit [Quit: Connection closed for inactivity]
<soLucien> want to help me out ?
pythoninthegrass has joined #ruby
jgrevich has joined #ruby
djbkd has quit [Remote host closed the connection]
<_Tariq> On what?
<_Tariq> I might be able to help you out
<_Tariq> but
blackmesa has quit [Ping timeout: 260 seconds]
<_Tariq> No guarantees.
Asher has quit [Quit: Leaving.]
PaulCape_ has joined #ruby
<soLucien> debug something. Did you just join ?
dcunit3d has quit [Ping timeout: 244 seconds]
<soLucien> i asked something ~30 min ago
<_Tariq> I just joined
<_Tariq> So I don't know your question
<soLucien> ah ok
certainty has joined #ruby
<soLucien> do you know how i can debug a call to something like Kernel.exec( ) ?
<_Tariq> ...
<_Tariq> No.
<_Tariq> I didn't really even know Kernel.exec() even existed
tubuliferous_ has quit [Ping timeout: 264 seconds]
dcunit3d has joined #ruby
PaulCapestany has quit [Ping timeout: 264 seconds]
<soLucien> know what it does, but i have to be creative in order to overcome it
<baweaver> you're going to have to be a lot more specific than just saying debug Kernel#exec
<soLucien> ok, look
<soLucien> this is where i cannot debug anymore, because it makes a call to the OS
<baweaver> Such as: Code used, full error, and what you're trying to do
djbkd has joined #ruby
<baweaver> Images are hard to read
<baweaver> !gist
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<soLucien> sure, i will do that
certainty has quit [Ping timeout: 258 seconds]
<soLucien> and make an explanation of how it's working
kgrz has quit [Ping timeout: 244 seconds]
<soLucien> give me 5 mins, it takes a while to copy all and make a proper problem formulation
solocshaw has joined #ruby
<baweaver> Do you even have the gem installed?
<soLucien> rake (11.2.2, 10.4.2)
<soLucien> yes, i have 2 version
<baweaver> Are you following the install guide? https://www.vagrantup.com/docs/installation/
<soLucien> gem cleanup does not remove one of them
<soLucien> no , i have installed it from source
<soLucien> i am developing a plugin for ir
<soLucien> it
<soLucien> so i want to debug it in order to see some runtime variables
<soLucien> i will make a gist for it , so it will become more clear
<soLucien> i have read that
<soLucien> the only documentation that you get
<soLucien> for writing plugins
<baweaver> Ruby lets you jump through things anyways. That's what Pry is for
<soLucien> is its source code
<baweaver> soLucien please, full sentences.
<baweaver> The enter key doesn't like being abused
<baweaver> https://www.youtube.com/watch?v=jDXsEzOHb2M - That covers pry. It lets you jump about code in your debugger.
<baweaver> Ruby, being a dynamic language, means you can edit anything at runtime
the_drow has joined #ruby
<baweaver> https://www.noppanit.com/create-simple-vagrant-plugin/ - that also covers basic plugin dev.
SilverKey has quit [Quit: Halted.]
<soLucien> i have seen that as well
d0nn1e has quit [Ping timeout: 244 seconds]
<baweaver> Note that I have not developed one myself.
<soLucien> my plugin is not basic
<baweaver> what are you trying to do?
panpainter has joined #ruby
<soLucien> add a hyper-v networking provider(windows drivers for VM networking in Windows)
<soLucien> that allows custom topologies
<baweaver> and you're sure this has not been done before?
arooni has joined #ruby
phredus has joined #ruby
<soLucien> it includes apt-cache , nuget cache , host dhcp
<baweaver> You may well have more luck over on #vagrant
d0nn1e has joined #ruby
<soLucien> nope. it's dead
<soLucien> crickets all around
<soLucien> it has not been done before, that's why i have created it
<soLucien> in the past 6 months i've written the driver
<soLucien> in powershell
<baweaver> you do realize it's the weekend and most people probably are not online right?
<soLucien> now i just need to wrap it in ruby code, and it's done
<soLucien> i do have access to other plugins, and code of others
<soLucien> but what i want to see is
<soLucien> what are the names of the objects that i have to refer to when writing my rb files. In order to do that, i will need breakpoints
<baweaver> Pry works for that. You can use it to dive around the entirety of the API
panpainter has quit [Ping timeout: 252 seconds]
<baweaver> As far as the names, I have no idea.
<soLucien> i have seen a demonstration of this, but i was hoping i can use the debugger to do the same thing
<baweaver> https://www.youtube.com/watch?v=jDXsEzOHb2M - that goes over pry
<baweaver> I don't use an IDE so I wouldn't know about their built in debugging facilities. It might allow options like that, but I do know for a fact that Pry allows similar options
<soLucien> alright, i will use pry
craigp has joined #ruby
johnDoe111 has joined #ruby
<baweaver> Seen this one yet? https://www.youtube.com/watch?v=p3g0_FIElwM
<soLucien> not yet, no
<baweaver> https://github.com/MSOpenTech/vagrant-windows-hyperv - also saw this, not sure how relevant it might be
<soLucien> it's 3 years old
<baweaver> Does it do what you need?
<soLucien> it's been merged into the official version
<baweaver> ah
<soLucien> without some of the features removed
pawnbox has joined #ruby
johnDoe111 has quit [Ping timeout: 244 seconds]
PaulCapestany has joined #ruby
<baweaver> best bet is to try their IRC channel on a weekday or hit the mailing lists.
<baweaver> or try back here on a weekday, maybe someone works vagrant
<soLucien> i am there all the time
_Tariq has quit []
<baweaver> StackOverflow might be worth a shot as well
<soLucien> there is no one that can help . i have been asking for the last few months
<baweaver> I just know that anything I can do here would be blind guessing as well.
<soLucien> they don't watch irc, gitter or any other comm channel
<baweaver> Have you contacted their support?
<soLucien> the mailing list is something i have not tried yet
<soLucien> no, no support
<baweaver> give them both a shot
PaulCape_ has quit [Ping timeout: 244 seconds]
<baweaver> I'd find it hard to believe that they have no point of communication for asking questions, or that StackOverflow wouldn't be able to help on it.
<baweaver> Considering Hashicorp is fairly active on OS and Vagrant is one of their flagships
<soLucien> i have not tried stackoverflow, mailing lists or their support
<soLucien> not posting , that is
<soLucien> i have read all there is to read
tref has quit [Quit: tref]
<soLucien> but not asked. I have asked IRC and gitter
pawnbox has quit [Ping timeout: 276 seconds]
<baweaver> There's always something you haven't read
<baweaver> normally in a very dark corner of the internet somewhere that explains your exact issue with no actual solution.
<soLucien> anyways, i am bootstrapping the powershell lib directly in the vagrantfile code at the moment, and it is working fine. I can use it, and it does its job. But creating a full-fledged plugin using their DSL is the next step, so evryone else can use it
<soLucien> plus, i hate having 50 lines at the beginning of the file and copying them around
kmooney has quit [Quit: Lost terminal]
nankyokusei has joined #ruby
irrationalist has quit [Quit: @]
nankyokusei has quit [Ping timeout: 252 seconds]
johnbat26 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
ta_ has joined #ruby
hakunin_ has quit []
<soLucien> <baweaver> pry or pry-byebug ?
rkazak has joined #ruby
pythoninthegrass has quit [Quit: Textual IRC Client: www.textualapp.com]
PaulCape_ has joined #ruby
blaxter has joined #ruby
Madplatypus has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Remote host closed the connection]
jas02 has joined #ruby
minimalism has quit [Quit: minimalism]
kareeoleez has joined #ruby
johnDoe111 has joined #ruby
certainty has joined #ruby
kareeoleez has quit [Ping timeout: 246 seconds]
edwardly has quit [Ping timeout: 276 seconds]
johnDoe111 has quit [Ping timeout: 276 seconds]
certainty has quit [Ping timeout: 260 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
lightt has joined #ruby
hutch34 has joined #ruby
djbkd has quit [Remote host closed the connection]
houhouli_ has quit [Remote host closed the connection]
A124 has joined #ruby
lxsameer has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
vdamewood has quit [Ping timeout: 240 seconds]
spyder55 has quit []
kareeoleez has joined #ruby
PaulCapestany has joined #ruby
dcunit3d has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby
yatish27 has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 244 seconds]
kgrz has joined #ruby
solars has joined #ruby
moei has quit [Quit: Leaving...]
duckpupp1 has quit [Ping timeout: 264 seconds]
dcunit3d has joined #ruby
moei has joined #ruby
johnmilton has quit [Remote host closed the connection]
pawnbox has joined #ruby
kareeoleez has joined #ruby
agent_white has quit [Quit: brb]
agent_white has joined #ruby
dcunit3d has quit [Ping timeout: 244 seconds]
Hyuk has joined #ruby
Hyuk has quit [Client Quit]
pawnbox has quit [Ping timeout: 264 seconds]
kareeoleez has quit [Ping timeout: 252 seconds]
dcunit3d has joined #ruby
<kraken_> So when I'm using JSON with ruby, and I serialize a hash into json, then I deserialize it back into an object, the symbol keys will be string keys isntead? I guess there's no way around this?
solocshaw1 has joined #ruby
palms has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
PaulCape_ has joined #ruby
<baweaver> &ri JSON#parse
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 is now known as solocshaw
<kraken_> symbolize_names
<kraken_> beautiful
<baweaver> The docs tend to reveal a lot of information
<kraken_> no kidding
palms has quit [Ping timeout: 252 seconds]
PaulCapestany has quit [Ping timeout: 276 seconds]
saneax_AFK is now known as saneax
rkazak has quit [Quit: Sleep.....ing....]
kareeoleez has joined #ruby
blackmesa has joined #ruby
the_drow has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
certainty has joined #ruby
kareeoleez has joined #ruby
infra-red has joined #ruby
vuoto has joined #ruby
Niham has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Ping timeout: 240 seconds]
duoi has quit [Ping timeout: 250 seconds]
craigp has quit [Ping timeout: 272 seconds]
dcunit3d has quit [Ping timeout: 276 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 264 seconds]
yeticry has joined #ruby
djbkd has joined #ruby
PaulCapestany has joined #ruby
vuoto has quit [Quit: leaving]
vuoto has joined #ruby
duoi has joined #ruby
haraigoshi has joined #ruby
soLucien has quit [Quit: Leaving]
PaulCape_ has quit [Ping timeout: 276 seconds]
djbkd has quit [Ping timeout: 246 seconds]
panpainter has joined #ruby
infra-red has quit []
kareeoleez has joined #ruby
craigp has joined #ruby
panpainter has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
iCHAIT has joined #ruby
nankyokusei has joined #ruby
kraken_ has quit [Remote host closed the connection]
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 has joined #ruby
solocshaw1 has quit [Read error: Connection reset by peer]
Noxilex has joined #ruby
kareeoleez has quit [Ping timeout: 272 seconds]
duckpupp1 has joined #ruby
rippa has joined #ruby
infra-red has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
jud has quit [Quit: Leaving]
infra-red has quit [Client Quit]
n1xnz has joined #ruby
duckpupp1 has quit [Ping timeout: 246 seconds]
n1x-nz has quit [Ping timeout: 250 seconds]
JazzyVariable227 has joined #ruby
johnDoe111 has joined #ruby
pepee has quit [Quit: bye $IRC]
ramfjord has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
PaulCape_ has joined #ruby
johnDoe111 has quit [Ping timeout: 276 seconds]
dcunit3d has joined #ruby
tildes has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
infra-re_ has joined #ruby
kareeoleez has quit [Ping timeout: 264 seconds]
jaguarmagenta has joined #ruby
palms has joined #ruby
Niham has joined #ruby
n1xnz has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
palms has quit [Ping timeout: 252 seconds]
edwardly has quit [Ping timeout: 252 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
yatish27 has joined #ruby
hightower2 has joined #ruby
Vile` has joined #ruby
araujo__ has joined #ruby
kareeoleez has joined #ruby
araujo_ has quit [Ping timeout: 240 seconds]
zapata has quit [Quit: WeeChat 1.5]
Niham has quit [Quit: Textual IRC Client: www.textualapp.com]
kareeoleez has quit [Ping timeout: 250 seconds]
yatish27 has quit [Ping timeout: 250 seconds]
certainty has joined #ruby
hypercube32 has quit [Quit: Ex-Chat]
ta_ has joined #ruby
blackmesa has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
PaulCapestany has joined #ruby
kareeoleez has joined #ruby
infra-re_ has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 260 seconds]
certainty has quit [Ping timeout: 264 seconds]
PaulCape_ has quit [Ping timeout: 272 seconds]
ta_ has quit [Ping timeout: 264 seconds]
kareeoleez has quit [Ping timeout: 244 seconds]
zapata has joined #ruby
djbkd has joined #ruby
infra-red has joined #ruby
SCHAAP137 has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
joonty has joined #ruby
sandstrom has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
infra-red has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 246 seconds]
aibot has quit [Remote host closed the connection]
n1x-nz has joined #ruby
aibot has joined #ruby
edwinvdg_ has joined #ruby
mitt3ns has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
dionysus70 is now known as dionysus69
edwinvdgraaf has quit [Ping timeout: 264 seconds]
PaulCape_ has joined #ruby
shinnya has joined #ruby
phredus has quit [Remote host closed the connection]
joonty has quit [Quit: This computer has gone to sleep]
Hobogrammer has quit [Ping timeout: 250 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
PaulCapestany has quit [Ping timeout: 240 seconds]
phredus has joined #ruby
kgrz has quit [Ping timeout: 250 seconds]
JazzyVariable227 has quit [Remote host closed the connection]
kareeoleez has joined #ruby
spider-mario has joined #ruby
palms has joined #ruby
darkxploit has quit [Ping timeout: 244 seconds]
sanika is now known as alberti
kareeoleez has quit [Ping timeout: 276 seconds]
c355e3b has joined #ruby
digneety has joined #ruby
digneety has quit [Changing host]
digneety has joined #ruby
palms has quit [Ping timeout: 252 seconds]
bkxd has joined #ruby
CloCkWeRX has joined #ruby
kareeoleez has joined #ruby
pawnbox has joined #ruby
jenrzzz has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
vuoto_ has joined #ruby
mdw has joined #ruby
benlieb has quit [Quit: benlieb]
PaulCapestany has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
darkxploit has joined #ruby
ta_ has joined #ruby
PaulCape_ has quit [Ping timeout: 258 seconds]
craigp has joined #ruby
zeroDi has joined #ruby
Vile` has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Ping timeout: 276 seconds]
certainty has joined #ruby
vuoto_ has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
exadeci has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
kgrz has joined #ruby
c0mrad3 has joined #ruby
certainty has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
CloCkWeRX has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
ta_ has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
whiteline has quit [Remote host closed the connection]
djbkd has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
pawnbox has joined #ruby
panpainter has joined #ruby
johnDoe111 has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 260 seconds]
digneety has quit [Quit: digneety]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
PaulCape_ has joined #ruby
hiennaj has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
kareeoleez has joined #ruby
duckpupp1 has joined #ruby
postmodern has quit [Ping timeout: 250 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
digneety has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
duckpupp1 has quit [Ping timeout: 246 seconds]
hiennaj has quit [Quit: Textual IRC Client: www.textualapp.com]
moeabdol has joined #ruby
hiennaj has joined #ruby
lightt has quit [Remote host closed the connection]
hiennaj has quit [Client Quit]
hiennaj has joined #ruby
digneety has quit [Quit: digneety]
postmodern has joined #ruby
jaguarmagenta has joined #ruby
n1x-nz has quit [Quit: Computer says no]
kareeoleez has joined #ruby
kgrz has quit [Ping timeout: 260 seconds]
palms has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
palms has quit [Ping timeout: 252 seconds]
PaulCapestany has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
PaulCape_ has quit [Ping timeout: 252 seconds]
kareeoleez has joined #ruby
nankyokusei has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 252 seconds]
kareeoleez has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
armyriad has joined #ruby
nankyokusei has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
hutch34 has joined #ruby
certainty has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
certainty has quit [Ping timeout: 252 seconds]
pandaant has joined #ruby
infra-red has joined #ruby
kareeoleez has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<iCHAIT> can i ask questions related to the usage rest-client gem here?
djbkd has joined #ruby
Ishido has joined #ruby
<workmad3> iCHAIT: feel free to ask... if someone knows the answer, they'll responnd
spacemud_ is now known as spacemud
PaulCape_ has joined #ruby
<iCHAIT> i'm currently trying to post data to an API that accepts json
<iCHAIT> like this: RestClient.post(url, json_data, Hash['content_type' => 'json', 'accept' => 'json'])
kareeoleez has quit [Ping timeout: 260 seconds]
<iCHAIT> the data goes, but not with the correct content type
tildes has quit [Ping timeout: 264 seconds]
djbkd has quit [Ping timeout: 244 seconds]
PaulCapestany has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
kareeoleez has joined #ruby
<jhass> which would be "application/json", not "json"
<jhass> side note: Hash[a => b] is the same as Hash[{a => b}] because it's the same as Hash.[](a => b) and thus the same as Hash.[]({a => b}), in other words the Hash[] is redundant
kareeoleez has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Remote host closed the connection]
<iCHAIT> jhass: but in the readme, 'json' is used: https://github.com/rest-client/rest-client#usage-raw-url
<jhass> no, :json is ;)
<iCHAIT> yeah, it worked now!
<iCHAIT> thanks
weckl has joined #ruby
<jhass> interesting, I can't find the code that handles it
<jhass> iCHAIT: the actual request did actually have application/json then?
toretore has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
kareeoleez has joined #ruby
nobitanobi has joined #ruby
alfiemax has joined #ruby
digneety has joined #ruby
PaulCapestany has joined #ruby
darkxploit has quit [Ping timeout: 276 seconds]
vahid has joined #ruby
Yiota has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
vahid has left #ruby [#ruby]
qasaur has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
palms has joined #ruby
ur5us has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Coldblackice has quit [Ping timeout: 246 seconds]
palms has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
cwenner has quit [Read error: Connection reset by peer]
haraigoshi has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
infra-red has quit [Remote host closed the connection]
cwenner has joined #ruby
ur5us has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
hiennaj has quit [Remote host closed the connection]
madh has joined #ruby
yatish27 has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
kareeoleez has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
digneety_ has joined #ruby
yatish27 has quit [Ping timeout: 250 seconds]
dcunit3d has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Ping timeout: 264 seconds]
craigp has joined #ruby
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
digneety_ has quit [Client Quit]
digneety has quit [Ping timeout: 272 seconds]
karmatr0n has joined #ruby
certainty has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
infra-red has joined #ruby
Noxilex has quit [Ping timeout: 240 seconds]
digneety has joined #ruby
digneety has quit [Client Quit]
DoubleMalt has joined #ruby
craigp has quit [Ping timeout: 272 seconds]
aswen has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
certainty has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
nobitanobi has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
sameerynho has joined #ruby
sergey_makagon has joined #ruby
hanmac has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
pandaant has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 252 seconds]
phrozen77 has quit [Read error: Connection reset by peer]
dcunit3d has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
Azure has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
panpainter has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
phrozen77 has joined #ruby
ctp has joined #ruby
panpainter has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
duckpupp1 has joined #ruby
ctp has quit [Client Quit]
Jackneill has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
yude_ has joined #ruby
hutch34 has joined #ruby
digneety has joined #ruby
yude has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
whiteline has joined #ruby
duckpupp1 has quit [Ping timeout: 246 seconds]
tildes has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
PaulCapestany has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
kareeoleez has quit [Ping timeout: 244 seconds]
Azure has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
craigp has joined #ruby
jaguarmagenta has joined #ruby
<shevy> the magic the magic the magic
dcunit3d has quit [Ping timeout: 272 seconds]
palms has joined #ruby
Vile` has joined #ruby
sergey_makagon has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tildes has joined #ruby
sergey_makagon has joined #ruby
johnDoe111 has joined #ruby
palms has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
nanoz has joined #ruby
nobitanobi has joined #ruby
ta_ has joined #ruby
kareeoleez has joined #ruby
johnDoe111 has quit [Ping timeout: 260 seconds]
blackgoat has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
craigp has quit [Ping timeout: 244 seconds]
sergey_makagon has quit [Remote host closed the connection]
djbkd has joined #ruby
jord-n has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
craigp has joined #ruby
lightt has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
PaulCape_ has joined #ruby
certainty has joined #ruby
k3rn31 has joined #ruby
matp has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has joined #ruby
river_ has joined #ruby
river_ has quit [Client Quit]
PaulCapestany has quit [Ping timeout: 252 seconds]
tk___ has joined #ruby
<iCHAIT> do you know how i can mock rest client responses for use in unit testing?
<iCHAIT> say, i'd like to mock RestClient.get to return a dummy response
<Yxhuvud> iCHAIT: webmock.
certainty has quit [Ping timeout: 272 seconds]
araujo_ has joined #ruby
laska has joined #ruby
laska has quit [Client Quit]
<iCHAIT> Yxhuvud: thanks!
araujo_ has quit [Max SendQ exceeded]
<iCHAIT> it's readme looks nice
yude_ has quit [Ping timeout: 250 seconds]
<iCHAIT> but doesn't really explain how I'd return a response
<iCHAIT> wait
<iCHAIT> found it
ta_ has quit [Remote host closed the connection]
araujo_ has joined #ruby
kareeoleez has joined #ruby
banister has joined #ruby
araujo__ has quit [Ping timeout: 258 seconds]
araujo_ has quit [Max SendQ exceeded]
aswen has quit [Quit: WeeChat 1.5]
araujo_ has joined #ruby
fgimian has joined #ruby
<fgimian> hey there guys :)
<fgimian> what HTTP library are most people using and recommending these days in Ruby land?
<shevy> open-uri!
araujo_ has quit [Max SendQ exceeded]
<fgimian> thanks shevy, shall check it out ;)
kareeoleez has quit [Ping timeout: 240 seconds]
<fgimian> hmm can't see a way to do POST, PUT .etc with this in the docs
zacstewart has quit [Ping timeout: 272 seconds]
moeabdol1 has joined #ruby
sergey_makagon has joined #ruby
moeabdol has quit [Ping timeout: 264 seconds]
infra-red has quit [Remote host closed the connection]
digneety has quit [Quit: digneety]
dEPy has joined #ruby
<shevy> post etc... you could do via http://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html - I don't know if there are gems that are better, usually the ruby stdlib/core is nice as is
infra-red has joined #ruby
AlexRussia has joined #ruby
<fgimian> thanks shevy , there are dozens of libs
moeabdol1 has quit [Ping timeout: 276 seconds]
nrk has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
<toretore> just use net/http. if you start using one of the many wrapper libs you are going to find yourself having to step down to the net/http level at one point anyway
nrk has quit [Client Quit]
nankyokusei has joined #ruby
sash_ has quit [Ping timeout: 264 seconds]
PaulCapestany has joined #ruby
dcunit3d has joined #ruby
tessi_zz has quit [Ping timeout: 258 seconds]
kareeoleez has joined #ruby
yude has joined #ruby
lightt has quit [Remote host closed the connection]
asahi has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
PaulCape_ has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
<fgimian> toretore thanks
<fgimian> :)
<asahi> Hello, I have a 1 character string that looks like a space but var == ' ' returns false, and #strip doesn't change it. #encoding returns UTF-8. Any ideas?
kareeoleez has quit [Ping timeout: 272 seconds]
digneety has joined #ruby
<chris2> var.ord
<asahi> 160
<chris2> nbsp i think
<chris2>   00A0 NO-BREAK SPACE
<asahi> okay thanks. I'm not familiar with that, but I'll google it
<ytti> it's normal sapce, which when rendered should not cause line wraps
<ytti> in practice virtually no programming language considers it normal break syntactically
<ytti> causing weird and hard to troubleshoot errors
aryaching has joined #ruby
<chris2> category space tho
<ytti> i disable it on my computers, because i tend to accidentally insert if oafter } and ]
<ytti> so bunch of my code has after those NBSP
norc has joined #ruby
<ytti> (i need alt-gr for those, an if i keep alt-gr pressed too long and press space, then i make NBSP)
zacstewart has joined #ruby
craigp has quit [Quit: WeeChat 1.5]
norc_ has joined #ruby
<asahi> It's used in html it looks like
<chris2> >> "\u00a0" =~ /\s/
<ruby[bot]> chris2: # => nil (https://eval.in/587597)
<chris2> >> "\u00a0" =~ /[[:space:]]/
<ruby[bot]> chris2: # => 0 (https://eval.in/587598)
<chris2> is that a bug?
fgimian has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> I think it's documented
<ytti> chris2, but if you use NBSP in syntax, it'll barf
blackmesa has joined #ruby
<chris2> that's a different issue
<ytti> i don't think it should, but it will
<ytti> i do that accidentally often enough to justify disabling whole NBSP
<jhass> ytti: I think it's a valid identifier actually
<chris2> /\s/ - A whitespace character: /[ \t\r\n\f]/
<chris2> ok
pontiki has quit [Quit: oh, well]
hutch34 has joined #ruby
Guest66538 has joined #ruby
<ytti> jhass, imho it should be treat like space
<ytti> jhass, so 1 + 1 with space or with NBSP should be same
zacstewart has quit [Ping timeout: 250 seconds]
<jhass> but then I don't really want mixed whitspace in my code
isxek has joined #ruby
<ytti> NBSP seems what we actually want to use always
bkxd has quit [Ping timeout: 244 seconds]
<ytti> because we don't want them to be wrapped
danieli has quit [Ping timeout: 246 seconds]
mdw_ has joined #ruby
rapha has joined #ruby
<rapha> Hi!
<jhass> well we want them to be wrapped in string literals
<rapha> Why does this return a Syntax Error? "if (@user.name.blank? ? (_('User #%{id}') % {id: @user.id}) : @user:name) ..."
<rapha> ur sorry
ElFerna has joined #ruby
<rapha> without the "if"
<jhass> rapha: post the exact error message you get too and we can look at it together
hutch34 has quit [Ping timeout: 240 seconds]
<rapha> oh nooooooes
<toretore> @user:name
<rapha> jhass: as usual, just posting it here made me see the problem: "@user:name" should be "@user.name"
<rapha> sorry guys
* jhass wait's for the question about the '#{}' issue :P
danieli has joined #ruby
<rapha> what %{} issue?
<rapha> :)
<jhass> you'll see soon enough
mdw has quit [Ping timeout: 240 seconds]
<jhass> or, %{}, the # confused me -.-
dh64 has quit [Quit: Konversation terminated!]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PaulCape_ has joined #ruby
<toretore> i'm just wondering what _ does
<jhass> history question, why do we have eql? and ==?
ryan_notabot has joined #ruby
<jhass> toretore: smells like gettext
<rapha> jhass: so since it's % and not # there should be no problem, right?
<toretore> oh right
freerobby has joined #ruby
<rapha> toretore: _() is for gettext i18n'ing
<jhass> rapha: yes, sorry, ignore me
<rapha> okay :)
* rapha can't stand Rails' i18n
PaulCapestany has quit [Ping timeout: 252 seconds]
banister has joined #ruby
<norc_> jhass, I'm thinking it has to do with the automatic coercion on some types like numerics.
<jhass> as in == does it and eql? doesn't?
<norc_> jhass, yes.
<jhass> mmh
<rapha> Guys, I'm so happy to have discovered Ruby! All the Haskell and Rust and What-Have-You-Fanboys can talk all they want, I've found my programming-home, and that includes #ruby! :)
<shevy> there are 1405 on #haskell :(
bkxd has joined #ruby
<rapha> So what shevy
<shevy> I guess 80% of these are just people who want to find out what monads are
<rapha> Not sure what number's what in my Weechat status line, but it looks like 972 here.
<shevy> yeah
<rapha> In 2016, that's a lot of people in an IRC channel.
freerobby has quit [Ping timeout: 258 seconds]
sergey_makagon has quit [Remote host closed the connection]
weckl has quit [Quit: Leaving]
peitur has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
certainty has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
Guest66538 is now known as sash_
sash_ has quit [Changing host]
sash_ has joined #ruby
sash_ has quit [Changing host]
sash_ has joined #ruby
hutch34 has joined #ruby
freerobby has joined #ruby
<norc_> jhass, honestly its still a mess though. === is called rb_equal internally, then you have == which does something differently entirely, and then eql? with a slight difference by convention...
certainty has quit [Ping timeout: 250 seconds]
<jhass> norc_: don't forget equal? !
pawnbox has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digneety has quit [Quit: digneety]
<norc_> jhass, all of that got me confused. Now Ill just compare object IDs directly - at least then I know what I'm doing. ;-)
pwnd_nsfw has quit [Read error: Connection reset by peer]
djbkd has quit []
digneety has joined #ruby
rethi has left #ruby [#ruby]
postmodern has quit [Ping timeout: 250 seconds]
panpainter has joined #ruby
PaulCapestany has joined #ruby
<madh> jhass, look thish ttp://www.zenruby.info/2016/05/ruby-operators-equality-comparison.html
<jhass> how did you get a space at that place :P
pilne has joined #ruby
kareeoleez has joined #ruby
<jhass> madh: I hate how he compares Object#hash to MD5 and SHA1
panpainter has quit [Ping timeout: 252 seconds]
PaulCape_ has quit [Ping timeout: 252 seconds]
<jhass> without mentioning the entirely different properties these try to achieve
<apeiros> non-stable-non-crypto hashes and stable-crypto-hashes are the same!
blackmesa has joined #ruby
<norc_> I'm an unstable-person. How do I fit into that apeiros?
digneety has quit [Quit: digneety]
<apeiros> norc_: you're cryptic too, so…
<norc_> non-stable-cryptic person.
<norc_> That works for me.
<apeiros> but you should try to not get hashed. it's not healthy for meatbags :)
norc has quit [Quit: Leaving]
johnDoe111 has joined #ruby
infra-red has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
sergey_makagon has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
pawnbox has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
duckpupp1 has quit [Ping timeout: 252 seconds]
infra-red has joined #ruby
sergey_makagon has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
johnDoe111 has quit [Ping timeout: 260 seconds]
infra-red has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
aryaching has quit [Ping timeout: 276 seconds]
peitur has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
peitur has joined #ruby
pandaant has joined #ruby
pandaant has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
peitur has quit [Remote host closed the connection]
digneety has joined #ruby
duoi has quit [Ping timeout: 250 seconds]
sameerynho has quit [Quit: WeeChat 1.5]
johnbat26 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
jaguarmagenta has joined #ruby
zacstewart has joined #ruby
vuoto has joined #ruby
palms has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
PaulCape_ has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
PaulCapestany has quit [Ping timeout: 252 seconds]
kareeoleez has joined #ruby
palms has quit [Ping timeout: 252 seconds]
hutch34 has quit [Quit: WeeChat 1.5]
nobitanobi has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 272 seconds]
benlieb has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
ruskie has quit [Ping timeout: 246 seconds]
ekinmur has joined #ruby
tk___ has quit [Quit: ばいばい]
sergey_makagon has joined #ruby
dEPy has quit [Quit: (null)]
certainty has joined #ruby
sergey_makagon has quit [Ping timeout: 276 seconds]
certainty has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
araujo has joined #ruby
infinity__ has joined #ruby
araujo has quit [Max SendQ exceeded]
peitur has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
araujo_ has joined #ruby
mdw_ has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Ping timeout: 246 seconds]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
arlek has joined #ruby
PaulCapestany has joined #ruby
araujo_ has quit [Client Quit]
panpainter has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
hitty has joined #ruby
<hitty> hello world
AlexRussia has quit [Ping timeout: 250 seconds]
digneety has quit [Quit: digneety]
panpainter has quit [Ping timeout: 264 seconds]
<jhass> hello hitty
<hitty> Hi Jhass
<hitty> I
Mon_Ouie has quit [Ping timeout: 246 seconds]
<jhass> like the enter key
<hitty> I'm about to become a ruby developer
<hitty> yepp
<hitty> Actually I am now, but not even a junior, only trial
<hitty> what's your experience
<hitty> any advice?
tubuliferous_ has joined #ruby
<hitty> as for me, there's a mess around all the things except Ruby and Rails itself
bkxd has quit [Ping timeout: 258 seconds]
<hitty> and we have a very active community here)
nankyokusei has joined #ruby
kareeoleez has joined #ruby
qasaur has joined #ruby
asahi has left #ruby [#ruby]
digneety has joined #ruby
whatelse has left #ruby [#ruby]
kareeoleez has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
palms has joined #ruby
hitty has quit [Quit: Ex-Chat]
zenlot has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<jhass> my advice would be to have more than 5 minutes patience :P
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
moeabdol1 has joined #ruby
PaulCape_ has joined #ruby
peitur has quit [Remote host closed the connection]
AlexRussia has joined #ruby
peitur has joined #ruby
PaulCapestany has quit [Ping timeout: 252 seconds]
zacts has quit [Ping timeout: 260 seconds]
digneety has quit [Quit: digneety]
jrafanie has joined #ruby
kareeoleez has joined #ruby
zacstewart has joined #ruby
hutch34 has joined #ruby
<shevy> lol
Vile` has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 260 seconds]
palms has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 276 seconds]
saneax is now known as saneax_AFK
jgt has joined #ruby
tref has joined #ruby
peitur has quit []
nankyokusei has joined #ruby
ekinmur has joined #ruby
matp has joined #ruby
zacts has joined #ruby
kavanagh has joined #ruby
sergey_makagon has joined #ruby
digneety has joined #ruby
rehat has quit [Remote host closed the connection]
Rodya_ has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
gregf has quit [Read error: Connection reset by peer]
arlek has quit [Ping timeout: 250 seconds]
certainty has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
PaulCapestany has joined #ruby
jas02 has quit [Quit: jas02]
kareeoleez has quit [Ping timeout: 246 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
PaulCape_ has quit [Ping timeout: 252 seconds]
certainty has quit [Ping timeout: 258 seconds]
benlieb has joined #ruby
haraigoshi has joined #ruby
gregf has joined #ruby
nobitanobi has joined #ruby
kareeoleez has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
zacts has quit [Ping timeout: 250 seconds]
digneety has quit [Quit: digneety]
freerobby has quit [Quit: Leaving.]
kareeoleez has quit [Ping timeout: 272 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
k3rn31 has joined #ruby
kareeoleez has joined #ruby
fenre has joined #ruby
benlieb has quit [Quit: benlieb]
Vile` has joined #ruby
ericli has joined #ruby
zacstewart has joined #ruby
<ericli> Hi, I write a small def and there's a loop in it and once it encounters a condition it should break the loop and return false.
blackmesa has quit [Ping timeout: 244 seconds]
<ericli> so what shall I put in the loop? Like return false then break or break then return false?
Rodya_ has quit [Remote host closed the connection]
zacts has joined #ruby
catphish has joined #ruby
duckpupp1 has joined #ruby
<catphish> how does one change the external encoding of Open3.popen3?
<catphish> i'm getting encoding errors when writing to poen3's stdin because it's trying to convert my string to UTF8
Rodya_ has joined #ruby
<shevy> ericli both ways should work -> http://pastie.org/10873775
<ericli> shevy: so I shall use break false ?
<toretore> catphish: you can force_encoding after reading
<ericli> like this?
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
johnDoe111 has joined #ruby
xfbs has joined #ruby
<toretore> catphish: (i recently looked into doing the same, and figured this was a lot easier)
<catphish> toretore: unfortunately my issue is writing, not reading
<toretore> oh
<toretore> that's another issue
<shevy> ericli this would be one way that should work. I am not sure what exactly you have to do though
xfbs has quit [Max SendQ exceeded]
kareeoleez has quit [Remote host closed the connection]
<shevy> ericli break false should suffice but it reads weird, I never wrote that myself so far :)
<catphish> i've probably got come code somewhere that does it, i'll grep my company's source code :)
<ericli> shevy: oh my code just hole the def ca return false once a loop condition is met then break the loop.
xfbs has joined #ruby
<ericli> shevy: so sounds like break then false makes more sense.
duckpupp1 has quit [Ping timeout: 258 seconds]
<toretore> catphish: popen3 uses Kernel#spawn, which i think has these options, but i don't know how to get them to survive the layers on their way down there
<catphish> toretore: popen3 has an options option, so i'd think it would be passed through
ctp has joined #ruby
<catphish> but i couldnt figure out what option it would be
<catphish> i just want it to open the pipes as binaryu
<catphish> alternatively, maybe i can reopen somehow
PaulCape_ has joined #ruby
<toretore> spawn is less than clearly documented, but i think using something like "cmd:binary" might work
blackmesa has joined #ruby
johnDoe111 has quit [Ping timeout: 260 seconds]
<catphish> i just found this code: pid, stdin, stdout, stderr = Open4::popen4(command); stdin.set_encoding('BINARY')
<catphish> hopefully that'll work :)
<catphish> stdin.set_encoding("BINARY") << this works! i guess thats a method on IO
<toretore> right; popen3 creates pipes using IO.pipe, and those are the objects you get in the block, and it should work if set_encoding works on pipes
<toretore> yay
<catphish> seems it does :)
<catphish> thanks
PaulCapestany has quit [Ping timeout: 252 seconds]
<catphish> just wanted to pipe some images through external imagemagick
ramfjord has joined #ruby
Rodya_ has quit [Remote host closed the connection]
David_H__ has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
jaguarmagenta has joined #ruby
m8 has joined #ruby
infinity__ has quit [Quit: Leaving]
David_H_Smith has quit [Ping timeout: 250 seconds]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 252 seconds]
van has joined #ruby
palms has joined #ruby
iajrz has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Remote host closed the connection]
palms has quit [Ping timeout: 252 seconds]
vuoto has quit [Remote host closed the connection]
yatish27 has joined #ruby
yatish27_ has joined #ruby
alfiemax has joined #ruby
mdw has joined #ruby
hutch34 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
digneety has joined #ruby
yatish27 has quit [Ping timeout: 250 seconds]
haraigoshi has quit [Ping timeout: 258 seconds]
yude has quit [Read error: Connection timed out]
dcunit3d has joined #ruby
mdw has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
yude has joined #ruby
vuoto has joined #ruby
xfbs has quit []
dcunit3d has quit [Ping timeout: 246 seconds]
lusory has joined #ruby
johnDoe111 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
infra-red has joined #ruby
k3rn31 has quit [Quit: Leaving...]
digneety has quit [Quit: digneety]
exadeci has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 250 seconds]
mello has quit [Remote host closed the connection]
johnDoe111 has quit [Ping timeout: 244 seconds]
houhoulis has joined #ruby
chipotle has quit [Quit: cheerio]
AlexRussia has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
mdw has joined #ruby
postmodern has quit [Ping timeout: 250 seconds]
rkazak has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
nankyokusei has quit [Remote host closed the connection]
panpainter has joined #ruby
iCHAIT has left #ruby [#ruby]
fenre has quit []
aryaching has quit [Ping timeout: 252 seconds]
panpainter has quit [Ping timeout: 252 seconds]
mistermocha has joined #ruby
postmodern has joined #ruby
sk_0 has quit [Remote host closed the connection]
hightower2 has quit [Ping timeout: 244 seconds]
arlek has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
mdw has quit [Read error: Connection reset by peer]
mdw has joined #ruby
fedruantine has joined #ruby
iajrz` has joined #ruby
iajrz has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
nankyokusei has joined #ruby
TomyLobo has quit [Disconnected by services]
TomyLobo has joined #ruby
kgrz has joined #ruby
van has quit [Ping timeout: 276 seconds]
Hobogrammer has joined #ruby
palms has joined #ruby
freerobby has joined #ruby
Mon_Ouie has joined #ruby
van has joined #ruby
vuoto has quit [Remote host closed the connection]
palms has quit [Ping timeout: 252 seconds]
<ericli> Hi shevy
<shevy> hi
<shevy> I am doing a boring rewrite right now :(
k3rn31 has joined #ruby
<ericli> shevy: oh sorry.
catphish has left #ruby ["Leaving"]
<ericli> just wondering if if it looks ok
<shevy> that looks incorrect
<shevy> if you use a loop {}, then break like that, I don't think you will reach the statement below break
<shevy> you are not even using a loop in this case though, you just iterate over a finite collection
<shevy> you can use .select and .reject btw to filter away unwanted or wanted entries there
pepee has joined #ruby
<ericli> shevy: so how can I return false if one is met the condition ?
Rodya_ has quit [Remote host closed the connection]
<ericli> shevy: okay I will use a countr
mdw_ has joined #ruby
<toretore> use Enumerable#any?
Rodya_ has joined #ruby
mdw has quit [Ping timeout: 240 seconds]
<toretore> (you can "return" from a loop with `break value`)
blackmesa has joined #ruby
tmtwd has joined #ruby
infra-re_ has joined #ruby
djbkd has joined #ruby
<ericli> toretore: oh how to do that
lxsameer has quit [Ping timeout: 244 seconds]
infra-red has quit [Ping timeout: 276 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
<sergey_makagon> ericli what logic do you want to have? In your example i see that you iterate over ports and if port is not 200 you return false in any other case you return true.
<ericli> sergey_makagon: yes
<sergey_makagon> ericli but each will not return any value for you in current implementation
<ericli> sergey_makagon: huh, why? thsatus_code will test if I can get 200 response code.
<ericli> *the status_code
lxsameer has joined #ruby
yude has quit [Read error: Connection timed out]
Vingador has joined #ruby
<ericli> sergey_makagon: anything wrong?
Vingador has quit [Client Quit]
yude has joined #ruby
chouhoulis has joined #ruby
<sergey_makagon> ericli map would return array of results, but each will not return anything even if you explicitly write it. Also you do the break which will be executed earlier than return
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<toretore> ericli: you have to articulate the problem better to understand the solution
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<sergey_makagon> ericli could you please describe problem in more details?
<ericli> what I did is ti retrieve each value from the ports array then test if the port accessible or not. If yes it will return true or return false
<ericli> this loop is in a def.
<toretore> ericli: your problem can not be described like that
kgrz has quit [Ping timeout: 240 seconds]
<toretore> you have a list, and thus you have several items that you want to test against and then apply some logic to this *list* of results
<ericli> toretore: yes, exactly.
<toretore> `return` only works with a single value
<toretore> "take a list, map this into another list of true/false based on a predicate"
vuoto has joined #ruby
<toretore> then you have a list of true/false values and can make further decisions based on this
<sergey_makagon> ericli: what you want to get as a result? maybe something like hash: { 3000: true, 3001: false, 8000: true } etc ?
<ericli> sergey_makagon: no
<ericli> sergey_makagon: just return true or false would be fine
<toretore> ericli: you have to describe the problem more precisely
<toretore> return true or false based on what?
cwenner has quit [Read error: Connection reset by peer]
xfbs has joined #ruby
<ericli> toretore: return 200 means true or it would be false.
<ericli> I pasted a modified version
jgt has quit [Ping timeout: 250 seconds]
<toretore> you're still describing your problem in terms of what you think is the solution
<toretore> describe the problem for what it is, "i want to send an http request to a list of ports; if at least one of those doesn't return http 200, do x"
dcunit3d has joined #ruby
Guest_ has joined #ruby
<ericli> toretore: hmm, sorry about that. but I mentioned what I expected, return true or false based on the requests result.
k3rn31 has quit [Quit: Computer has gone to sleep.]
moeabdol1 has quit [Quit: WeeChat 1.4]
<ericli> toretore: did u see the code I pasted? I guess that explains what I'm saying.
tref has quit [Quit: tref]
<toretore> i'm trying to make you think about the problem in such a way that you can solve it yourself and then learn to solve similar problems in the future
<toretore> but anyway, i don't have time right now, so here: [80, 443, 4080].all?{|p| status_code(p) == 200 }
<sergey_makagon> i would say that this will solve your problem: ![80, 443, 4080].any? { |port| status_code(port) != 200 }
Guest_ has quit [Client Quit]
idiocrash has joined #ruby
idiocrash has quit [Max SendQ exceeded]
jrafanie has joined #ruby
kavanagh has quit [Quit: That's all folks!]
idiocrash has joined #ruby
mikecmpbll has joined #ruby
<ericli> thanks
hutch34 has quit [Ping timeout: 244 seconds]
mesamoo has joined #ruby
<shevy> that's the beauty with ruby - more than one way to pick!
Edward__ has quit [Quit: Leaving]
<sergey_makagon> yeah, but in my implementation it will not have to go through the all array of ports :P
duckpupp1 has joined #ruby
edwinvdg_ has quit [Read error: Connection reset by peer]
<sergey_makagon> hmm, but maybe i'm wrong. all? will stop iterating if it's find false value as well.
edwinvdgraaf has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sergey_makagon> so yes, that's the beauty of Ruby)
duckpupp1 has quit [Ping timeout: 264 seconds]
duckpuppy has joined #ruby
<shevy> clever implementation!
flashpoint9 has joined #ruby
solars has quit [Ping timeout: 264 seconds]
phrozen77 has joined #ruby
minimalism has joined #ruby
Vingador has joined #ruby
minimalism has quit [Client Quit]
jaguarmagenta has quit [Remote host closed the connection]
snath has quit [Ping timeout: 260 seconds]
xxneolithicxx has joined #ruby
snath has joined #ruby
djbkd has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
fuso has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<pilne> ruby is very clever and very "nice" to the programmer
<spudowiar> it's just sad it's so slow :(
<spudowiar> I absolutely love Ruby though
swills has joined #ruby
speakingcode has quit [Ping timeout: 244 seconds]
<pilne> i've seen a couple of projects that are trying to address that. crystal (a new langauge, ruby inspired), and helix (bindings and boilerplate for using rust from/in ruby)
<spudowiar> heh
<spudowiar> nice
marr has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
solars has joined #ruby
multi_io has quit [Ping timeout: 276 seconds]
<spudowiar> Eurgh
<spudowiar> Why does gsub! return nil if no replacements were made
multi_io has joined #ruby
<spudowiar> I can't do gsub!.tr! then :(
<spudowiar> wait!
<spudowiar> no
<spudowiar> that can't happen either
dcunit3d has joined #ruby
van has quit [Remote host closed the connection]
<shevy> don't chain ! methods usually
mgdepoo has joined #ruby
<shevy> you may then often end up doing nil.method!
<mgdepoo> Hi! I'm new to Ruby and I'm having a hard time understanding this outcome: http://pastebin.com/FG2Fcex4
<ruby[bot]> mgdepoo: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/895cdbe3dc6bbb96a62bac41687e7159
<ruby[bot]> mgdepoo: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<mgdepoo> 'k :)
isxek has quit [Remote host closed the connection]
<mgdepoo> How's my array different from the array that map returns?
vuoto has quit [Remote host closed the connection]
<shevy> huh
vuoto has joined #ruby
blackmesa has joined #ruby
<shevy> do you have an array
markfletcher has joined #ruby
nobitanobi has joined #ruby
yqt has joined #ruby
<toretore> Waiting for pastebin.com...
blackmesa has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
markfletcher has quit [Quit: Textual IRC Client: www.textualapp.com]
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
jrafanie has joined #ruby
mdw_ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
jgt has joined #ruby
ramfjord has joined #ruby
iajrz` has quit [Ping timeout: 252 seconds]
iajrz`` has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
Rodya_ has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 240 seconds]
vuoto_ has joined #ruby
nerium has joined #ruby
haraigoshi has joined #ruby
minimalism has joined #ruby
iajrz``` has joined #ruby
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
blackmesa has joined #ruby
nixmaniack has quit [Client Quit]
iajrz`` has quit [Ping timeout: 276 seconds]
symm- has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
iajrz``` has quit [Ping timeout: 276 seconds]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Ping timeout: 250 seconds]
sergey_makagon has quit [Remote host closed the connection]
mistermocha has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
<mgdepoo> I repeat, with no pastebin this time: https://gist.github.com/anonymous/895cdbe3dc6bbb96a62bac41687e7159
<mgdepoo> I'm new to Ruby and I'm having a hard time understanding this outcome
<mgdepoo> How's my array different from the array that map returns?
<shevy> what array
<apeiros> mgdepoo: what did you expect?
<mgdepoo> ok, 3.times.map { |n| n == 1 } returns [false, true, false]
<shevy> yeah
mistermocha has quit [Ping timeout: 250 seconds]
chicken has joined #ruby
<shevy> 3.times.map { |n| n == 1 } == [false, true, false] # => true
<apeiros> that much I can see. does that fit with your expectation?
<mgdepoo> if i count that array, 3.times.map.count { |n| n == 1 } returns 1
<mgdepoo> but
<mgdepoo> [false, true, false].count returns 3
<shevy> 3.times.map.count { |n| n == 1 } # => 1
<apeiros> yes, and again - what did you expect?
<apeiros> and why?
<shevy> I am not sure I see your array there
elifoster has joined #ruby
<mgdepoo> I expected the same count when the array is returned by map and when I type it into irb
<mgdepoo> It is the same array, isn't it?
<apeiros> you didn't perform the same count
<apeiros> in your first count, you told count you wanted to count the elements which are == 1
<apeiros> in the second count, you did no such thing
<apeiros> Array#count without argument or block will count the number of elements
<apeiros> and [false, true, false] is an array with 3 elements
AlexRussia has joined #ruby
mdw has joined #ruby
ctp has quit [Ping timeout: 246 seconds]
<mgdepoo> oh, ok. I don't quite get the syntax yet
<mgdepoo> I get this now, thanks folks :)
Rodya_ has quit [Remote host closed the connection]
qasaur has joined #ruby
dionysus69 has joined #ruby
alfiemax has joined #ruby
mgdepoo has quit [Quit: Page closed]
swills has quit [Ping timeout: 244 seconds]
Rodya_ has joined #ruby
johnDoe111 has joined #ruby
asahi has joined #ruby
<asahi> hello, how would I make a variable accessible in multiple functions in a single module?
DoubleMalt has joined #ruby
duckpuppy has joined #ruby
Rodya_ has quit [Remote host closed the connection]
AndyBotwin has quit [Read error: Connection reset by peer]
<apeiros> if they're truly functions - then via arguments passed to them
kavanagh has joined #ruby
nankyokusei has quit [Remote host closed the connection]
<apeiros> if they're methods, i.e. the module is included - then via an instance variable. preferably through the indirection of a reader.
dling has joined #ruby
swills has joined #ruby
AndyBotwin has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
jetpackjoe has joined #ruby
<asahi> the module is included, so I guess with an instance variable then. thank you
johnDoe111 has quit [Ping timeout: 244 seconds]
Rodya_ has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
k3rn31 has joined #ruby
jancel has joined #ruby
tref has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
yatish27_ has quit [Remote host closed the connection]
ryan_notabot has quit [Ping timeout: 246 seconds]
ryan_notabot has joined #ruby
arooni has quit [Read error: Connection reset by peer]
ryan_notabot has quit [Read error: Connection reset by peer]
matp has quit [Ping timeout: 250 seconds]
ryan_notabot has joined #ruby
Rodya_ has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 250 seconds]
arooni has joined #ruby
sergey_makagon has joined #ruby
sergey_makagon has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
asahi has left #ruby [#ruby]
Vile` has quit [Ping timeout: 252 seconds]
Pumukel has joined #ruby
joonty has joined #ruby
ekinmur has joined #ruby
nofxx has joined #ruby
sergey_makagon has joined #ruby
swills has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
swills has joined #ruby
edwinvdgraaf has quit [Ping timeout: 246 seconds]
tildes has joined #ruby
matp has joined #ruby
freerobby has joined #ruby
jgt has joined #ruby
arlek has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
AlexRussia has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
lightt has joined #ruby
jancel has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.5]
mdw has quit [Ping timeout: 244 seconds]
tildes has quit [Ping timeout: 272 seconds]
jgt has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 264 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
lightt has quit [Remote host closed the connection]
lightt has joined #ruby
kavanagh has quit [Ping timeout: 240 seconds]
naftilos76 has quit [Ping timeout: 276 seconds]
yude has quit [Read error: Connection timed out]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
digneety has joined #ruby
kavanagh has joined #ruby
ramfjord has joined #ruby
yude has joined #ruby
hutch34 has joined #ruby
Guest5 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
k3rn31 has joined #ruby
ryan_notabot has quit [Ping timeout: 252 seconds]
ryan_notabot has joined #ruby
Rodya_ has joined #ruby
vuoto_ has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 244 seconds]
TubaraoSardinha has joined #ruby
johnDoe111 has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
Guest5 has quit [Quit: Textual IRC Client: www.textualapp.com]
jaguarmagenta has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
johnDoe111 has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
Pumukel has quit [Client Quit]
Madplatypus has joined #ruby
sergey_makagon has quit []
kavanagh has quit [Quit: That's all folks!]
kavanagh has joined #ruby
swills has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
jaguarmagenta has quit [Ping timeout: 258 seconds]
Renich has joined #ruby
river__ has joined #ruby
dcunit3d has joined #ruby
river__ has quit [Quit: Textual IRC Client: www.textualapp.com]
tmtwd has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
banister has joined #ruby
nobitanobi has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
LoneHerm_ has quit [Remote host closed the connection]
r1v3r has joined #ruby
LoneHerm_ has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
AlexRussia has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
fsosowp has joined #ruby
nerium has quit [Quit: nerium]
victorzimmer has joined #ruby
nobitanobi has quit [Remote host closed the connection]
AndChat-688961 has joined #ruby
Jackneill has quit [Remote host closed the connection]
panpainter has joined #ruby
lightt has quit [Ping timeout: 276 seconds]
fsosowp has quit [Read error: Connection reset by peer]
haraigoshi has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
hutch34 has joined #ruby
workmad3 has joined #ruby
nankyokusei has quit [Remote host closed the connection]
panpainter has quit [Ping timeout: 252 seconds]
infra-re_ has quit [Remote host closed the connection]
ICantCook has quit [Ping timeout: 244 seconds]
ICantCook has joined #ruby
scepticulous has joined #ruby
LoneHerm_ has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
duckpuppy has quit [Ping timeout: 276 seconds]
scepticulous has quit [Ping timeout: 246 seconds]
<shevy> how peculiar
digneety has quit [Quit: digneety]
bluOxigen has quit [Ping timeout: 264 seconds]
jetpackjoe has quit [Ping timeout: 260 seconds]
Renich has quit [Quit: leaving]
jaguarmagenta has joined #ruby
ramfjord has joined #ruby
kareeoleez has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
moeabdol has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
axsuul has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ruby
A124 has quit [Quit: '']
nonnatus has joined #ruby
hightower2 has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
Rutix has quit []
DoubleMalt has quit [Ping timeout: 260 seconds]
tmtwd has quit [Ping timeout: 276 seconds]
madh has quit [Quit: Leaving]
flashpoint9 has quit [Ping timeout: 240 seconds]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
Fernando-Basso has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
roamingdog has joined #ruby
Gasher has joined #ruby
ur5us has joined #ruby
hutch34 has joined #ruby
<pilne> so i have this block of code. given with that comment. I can *see* what is going on, and I know what I'm suppose to end up doing (line 2 needs to check for all numbers 0-9 inclusive).
<pilne> i just can't think of an elegant way to do it.
yeticry has quit [Ping timeout: 276 seconds]
yeticry has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pilne> and i feel a bit slow.... lol, sorry, i thought i put that in the first part.
ur5us has quit [Read error: No route to host]
ur5us has joined #ruby
A124 has joined #ruby
jgrevich has quit [Quit: leaving]
<jhass> pilne: could you post more context code? I'm actually not sure yet that's it/all you have to do ;)
AlexRussia has quit [Ping timeout: 258 seconds]
pepee has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
<jhass> okay I see
<jhass> pilne: heard of regex yet?
sandstrom has quit [Quit: My computer has gone to sleep.]
<jhass> that would lead to one neat solution
r1v3r has quit [Quit: ZZZzzz…]
<jhass> others I see involve .chars.all? or (....chars - ...).empty?
DoubleMalt has joined #ruby
SCHAAP137 has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
vdamewood has joined #ruby
yude has quit [Read error: Connection timed out]
<pilne> not yet from this tutorial, outside of it yet, which is why i'm scratching my head
ecksit has joined #ruby
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
yfeldblum has quit [Ping timeout: 250 seconds]
yude has joined #ruby
yude has quit [Max SendQ exceeded]
yude has joined #ruby
yude has quit [Max SendQ exceeded]
<jhass> perhaps one of my other two hints gets you there then ;)
roamingdog has quit [Remote host closed the connection]
<pilne> thank you, i think one of those is along what the author expects, now that i think about it a bit more
pontiki has joined #ruby
ecksit has quit [Ping timeout: 252 seconds]
Fraeon has quit [Ping timeout: 276 seconds]
Fraeon has joined #ruby
lightt has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
Noxilex has joined #ruby
lightt has quit [Read error: Connection reset by peer]
lightt has joined #ruby
AndChat-688961 has quit [Ping timeout: 240 seconds]
Noxilex has quit [Remote host closed the connection]
blaxter has quit [Read error: Connection reset by peer]
jgt has quit [Ping timeout: 264 seconds]
crystal77 has joined #ruby
certainty has joined #ruby
hutch34 has quit [Quit: WeeChat 1.5]
e4xit_ has joined #ruby
alfiemax has joined #ruby
TubaraoSardinha has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
e4xit has quit [Ping timeout: 252 seconds]
e4xit_ is now known as e4xit
TubaraoSardinha has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Fernando-Basso has joined #ruby
johnDoe111 has joined #ruby
solars has quit [Ping timeout: 252 seconds]
nettoweb has quit [Ping timeout: 240 seconds]
ryan_notabot has quit [Quit: Leaving]
palms has joined #ruby
johnDoe111 has quit [Ping timeout: 276 seconds]
banister has joined #ruby
pepee has joined #ruby
zenlot6 has joined #ruby
zenlot has quit [Ping timeout: 276 seconds]
maloik has quit [Remote host closed the connection]
<jokke> anyone know of a yaml pull parser for ruby? can psych do this?
maloik has joined #ruby
palms has quit [Ping timeout: 252 seconds]
Gasher has quit [Ping timeout: 264 seconds]
palms has joined #ruby
Gasher has joined #ruby
spider-mario has quit [Remote host closed the connection]
ryan_notabot has joined #ruby
<pilne> jhass-} judging by the same author's python example, it is supposed to only take strings composed of 0 and/or 1, and i'm not in the mood to try that without a regex LOL
<pilne> i just used a regex for my original idea and i'm moving on
palms has quit [Ping timeout: 252 seconds]
ryan_notabot has quit [Client Quit]
kavanagh has quit [Quit: That's all folks!]
ryan_notabot has joined #ruby
djbkd has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
m8 has quit [Quit: Sto andando via]
pawnbox has joined #ruby
antranigv has left #ruby [#ruby]
newbie|2 has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 258 seconds]
ur5us has joined #ruby
chicken has quit [Ping timeout: 250 seconds]
<jhass> pilne: okay, to expand my hints: choice.chars.all? {|char| ('0'..'9').include? char } and (choice.chars - [*'0'..'9']).empty?
r1v3r_ has joined #ruby
<pontiki> what is a "yaml pull parser" ?
<jhass> a pull parser for yaml
<pontiki> what is a pull parser?
Klantastic has joined #ruby
<jhass> commonly called SAX in XML world
<Klantastic> is changing a variable during runtime metaprogramming?
<jhass> Klantastic: nope
<Klantastic> what's an example then?
jaguarmagenta has quit [Remote host closed the connection]
<pilne> jhass thank you
<jhass> Klantastic: attr_reader/attr_writer/attr_accessor could be argued as such
<Klantastic> aren't you changing variables with attr_accessor and attr_writer?
chipotle has quit [Quit: cheerio]
<jhass> I mean their implementation
<jhass> attributes.each do |attribute| define_method(attribute) { instance_variable_get(:"@#{attribute}") }; define_method("#{attribute}=") {|value| instance_variable_set(:"@#{attribute}", value) }; end
<pontiki> metaprogramming, in general, means modifying the code rather than modifying data
tildes has joined #ruby
LoneHerm_ is now known as LoneHermit_
newbie|2 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jancel has joined #ruby
<jhass> interestingly libyaml basically already is a pull parser, psych has to make some effort in order to make a regular one from it
<pontiki> interesting; i'd never heard pull and push parsing before
jackjackdripper has joined #ruby
nonnatus has quit [Read error: Connection reset by peer]
nonnatus_ has joined #ruby
yatish27 has joined #ruby
johnDoe111 has joined #ruby
jancel has quit [Remote host closed the connection]
nonnatus_ has quit [Read error: Connection reset by peer]
nonnatus has joined #ruby
<jhass> they can be allocation free for some purposes and are generally low on allocations, which makes them usually a lot faster
duckpuppy has joined #ruby
ta_ has joined #ruby
jancel has joined #ruby
<jhass> of course it's harder to parse malformed stuff that way
nankyokusei has joined #ruby
<jhass> also now you know why psych's/libyaml's error messages suck :P
johnDoe111 has quit [Ping timeout: 260 seconds]
<shevy> long live syck!
<jhass> tbf I don't think it had any better error messages
<shevy> long live no errors!
<Klantastic> is there any other way to modify code than using attr_acessor or writer?
<shevy> yes! you write the new code
<shevy> you can also use eval and define_method and such thingies
<Klantastic> i mean automatically
<shevy> in a decade or probably two we will have robots writing code anyway
duckpuppy has quit [Ping timeout: 250 seconds]
<jhass> Klantastic: tons
nankyokusei has quit [Ping timeout: 258 seconds]
moeabdol1 has joined #ruby
Yzguy has joined #ruby
ta_ has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
certainty has joined #ruby
moeabdol has quit [Ping timeout: 258 seconds]
SCHAAP137 has quit [Quit: Leaving]
Jardayn has joined #ruby
roamingdog has joined #ruby
yfeldblum has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
doublemalt_ has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
segy has quit [Ping timeout: 252 seconds]
TubaraoSardinha has quit [Quit: leaving]
pawnbox has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
neha_ has joined #ruby
<neha_> hey, how can i get the whole text piped into ruby instead of just line by line when doing ruby -e
jancel has quit [Remote host closed the connection]
<neha_> aka instead of doing ruby -pe
<neha_> or -ne
Gasher has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
<jhass> ARGF.read
jancel has joined #ruby
jhack has joined #ruby
<jhass> or $stdin.read if you prefer
sepp2k1 has quit [Read error: Connection reset by peer]
<neha_> whats $_ an alias for?
tristanp has joined #ruby
<jhass> "The last input line of string by gets or readline."
Klantastic has quit [Quit: Page closed]
B1n4r10 has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<neha_> ah okay, thanks
B1n4r10 has quit [Client Quit]
<jhass> $< works too then I guess, if you prefer cryptic
<neha_> ya i do
<neha_> for the sake of speed in writing one liners
<neha_> thank you
<shevy> hehe
<neha_> is there a shortcut for read too lol
<neha_> :p
<neha_> $<.read isn't too bad though
segy has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
palms has joined #ruby
<jhass> function red { ruby -e "$<.read.$1" }
<jhass> yw
<neha_> what does $1 do?
<jhass> take the first parameter of red
<neha_> oh like bash?
chappy has joined #ruby
<jhass> not like
<neha_> lol
<jhass> exactly
<neha_> :)
Dimik has joined #ruby
moeabdol1 has quit [Ping timeout: 240 seconds]
Akuma has quit [Quit: So long sukkas!]
panpainter has joined #ruby
palms has quit [Ping timeout: 252 seconds]
crystal77 has joined #ruby
blackgoat has joined #ruby
LoneHermit_ has quit [Remote host closed the connection]
panpainter has quit [Ping timeout: 252 seconds]
victorzimmer has quit []
moeabdol1 has joined #ruby
koooge has joined #ruby
jancel has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
jackjackdripper has quit [Quit: Leaving.]
moeabdol1 has quit [Ping timeout: 240 seconds]
nonnatus has quit [Quit: nonnatus]
nonnatus has joined #ruby
jhack has quit [Quit: jhack]
Jardayn has quit [Read error: Connection reset by peer]
jhack has joined #ruby
chappy has quit [Quit: Leaving]
chappy has joined #ruby