weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rhllor has joined #ruby
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ruby
JeanCarl1Machado has joined #ruby
SilverKey has quit [Client Quit]
blackmesa has quit [Ping timeout: 276 seconds]
skweek has quit [Ping timeout: 260 seconds]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
ghr has joined #ruby
mattwashere has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
mattwashere has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
mattwashere has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
spiette has quit [Ping timeout: 258 seconds]
bruce_lee has quit [Remote host closed the connection]
tristanp_ has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
flashpoint9 has joined #ruby
mattwashere has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
skweek has joined #ruby
tristanp has joined #ruby
Tariq has joined #ruby
<Tariq>
I have a weird error message: "recvfrom for buffered IO (IOError)" and my Google search reveals it may be because I'm mixing buffered and non-buffered methods
tristanp_ has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 240 seconds]
<Tariq>
I have built a web server for a school project, and I am using the method recv_nonblock to read a POST request
<Tariq>
I would like to know what I should do to deal with the IO error
marr has quit [Ping timeout: 240 seconds]
craigp has joined #ruby
davedev24 has quit []
ghr has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Ropeney has joined #ruby
craigp has quit [Ping timeout: 276 seconds]
rhllor has quit [Quit: rhllor]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 272 seconds]
whathappens has joined #ruby
Ropeney has quit [Client Quit]
fredolinhares has joined #ruby
weaksauce has joined #ruby
downdonedown has quit [Ping timeout: 258 seconds]
sneakers has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
`tim` has joined #ruby
<Tariq>
I fixed the issue by replacing recv_nonblock with read, thanks for your help rubber duckies.
roamingd_ has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
roamingdog has joined #ruby
flashpoint9 has joined #ruby
roamingdog has quit [Remote host closed the connection]
ghr has joined #ruby
roamingdog has joined #ruby
mattwashere has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
mattwashere has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
ekinmur has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
Guest76251 has quit [Ping timeout: 240 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
rcvalle has quit [Quit: rcvalle]
mattwashere has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
moei has quit [Quit: Leaving...]
whathappens has quit [Ping timeout: 258 seconds]
AndrewIsHere has quit [Remote host closed the connection]
Guest76251 has joined #ruby
moei has joined #ruby
dminuoso has joined #ruby
Mimorial has quit [Quit: Leaving]
devyn has joined #ruby
AndrewIsHere has joined #ruby
LoneHermit has joined #ruby
nogic has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 240 seconds]
Sucks has quit [Ping timeout: 264 seconds]
nando293921 has quit [Ping timeout: 244 seconds]
zenlot6 has quit [Ping timeout: 250 seconds]
dminuoso has quit [Ping timeout: 240 seconds]
macsteps has joined #ruby
spiette has joined #ruby
blackmesa has joined #ruby
LoneHermit has quit [Ping timeout: 276 seconds]
ghr has joined #ruby
enterprisey has joined #ruby
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Ping timeout: 258 seconds]
jsaak has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
fredolinhares has left #ruby ["WeeChat 1.5"]
fredolinhares has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
CloCkWeRX has joined #ruby
leea has quit [Ping timeout: 252 seconds]
saneax is now known as saneax_AFK
crystal77 has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
ghr has joined #ruby
flashpoi_ has joined #ruby
charliesome has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
macsteps has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
macsteps has joined #ruby
<al2o3-cr>
frozen madras is shit
stardiviner has quit [Ping timeout: 252 seconds]
karapetyan has quit [Remote host closed the connection]
zacts has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
Ebok has joined #ruby
Tariq has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
cdg has quit [Ping timeout: 250 seconds]
replay has quit []
maikowblue has quit [Quit: .]
<Radar>
!offtopic
<Radar>
?offtopic
<ruby[bot]>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
ghr has quit [Ping timeout: 240 seconds]
ericsupreme has joined #ruby
bogusdisk has quit [Remote host closed the connection]
Guest76251 has quit [Ping timeout: 252 seconds]
Guest76251 has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
ghr has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
tristanp_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 252 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
Spami has quit [Quit: This computer has gone to sleep]
aryaching has joined #ruby
downdonedown has joined #ruby
<postapocallyptic>
I have a loop and inside I have socket connections trying sites/servers. In my code once a connections is achieved I want the loop to stop working. for some reason I think it makes a succesful connection and continues on with the loop.
ghr has joined #ruby
<postapocallyptic>
I'm using sockify btw.
dminuoso has joined #ruby
deviation has quit [Ping timeout: 252 seconds]
<al2o3-cr>
socksify still uses the underlying socket class
SilverKey has joined #ruby
bhaak has quit [Ping timeout: 258 seconds]
<postapocallyptic>
ok
bhaak has joined #ruby
banisterfiend has quit [Ping timeout: 264 seconds]
<postapocallyptic>
why is the loop continueing though ? shouldn't the loop pause and wait until the connection is closed?
ghr has quit [Ping timeout: 240 seconds]
downdonedown has quit [Remote host closed the connection]
<al2o3-cr>
postapocallyptic: gist actual code, other wise it's a shot in the dark
<postapocallyptic>
ok
<al2o3-cr>
o-w*
ramfjord has quit [Ping timeout: 240 seconds]
dminuoso has quit [Ping timeout: 276 seconds]
TomyLobo has quit [Ping timeout: 264 seconds]
roamingdog has joined #ruby
blackmesa has joined #ruby
macsteps has quit [Remote host closed the connection]
ghr has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
moeabdol has quit [Ping timeout: 252 seconds]
sumobob has quit [Ping timeout: 250 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Elvin has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
nankyokusei has joined #ruby
lxsameer has joined #ruby
ghr has joined #ruby
postmodern has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
cpruitt has quit [Quit: cpruitt]
karapetyan has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
spiette has quit [Ping timeout: 264 seconds]
flashpoi_ has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
travisxcode has quit [Ping timeout: 264 seconds]
zacts has quit [Ping timeout: 258 seconds]
ghr has joined #ruby
ElFerna has joined #ruby
phredus_ has joined #ruby
tmtwd has joined #ruby
phredus_ is now known as God
jlyndon_ has joined #ruby
flashpoint9 has quit [Ping timeout: 272 seconds]
God has quit [Client Quit]
hutch34 has quit [Ping timeout: 264 seconds]
`tim` has joined #ruby
LoneHerm_ has joined #ruby
craigp has joined #ruby
benlieb has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
jlyndon has quit [Ping timeout: 244 seconds]
jlyndon_ is now known as jlyndon
Ebok has quit [Quit: This computer has gone to sleep]
JeanCarl1Machado has quit [Ping timeout: 276 seconds]
A_Drone has quit [Remote host closed the connection]
blackmesa has joined #ruby
MrBusiness3 has joined #ruby
<Radar>
user1_: what version of Ruby?
conta has joined #ruby
<user1_>
2.0.0p598
<pontiki>
good call, radar
<Radar>
user1_: keyword args are only available in Ruby 2.2 and up I think
ghr has quit [Ping timeout: 240 seconds]
<user1_>
thanks, i'll try a new version then
achamian has quit [Remote host closed the connection]
dminuoso has quit [Ping timeout: 244 seconds]
MrBusiness2 has quit [Ping timeout: 258 seconds]
conta has quit [Ping timeout: 272 seconds]
<Radar>
Or at least, that required keyword syntax is from 2.2 up iirc
Rodya_ has joined #ruby
<Radar>
I think (destination: nil) would work in Ruby 2.0. I don't have that accessible to find out
akira616 has joined #ruby
zacts has quit [Ping timeout: 260 seconds]
<baweaver>
Radar user1_: You can't have blank kwarg values in under 2.1
<baweaver>
and that last bit will work
blackmesa has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
spyder55 has joined #ruby
<Radar>
gg
ghr has quit [Ping timeout: 240 seconds]
sinanislekdemir has joined #ruby
yadobujo has quit [Remote host closed the connection]
yadobujo has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
yadobujo has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
<user1_>
newer version worked, thanks again
ghr has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
mistermocha has joined #ruby
A_Drone has joined #ruby
ghr has joined #ruby
tvw has joined #ruby
daumie has joined #ruby
pawnbox has quit [Remote host closed the connection]
achamian has joined #ruby
TomyLobo has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
A_Drone has quit [Ping timeout: 260 seconds]
kraken has joined #ruby
kraken is now known as Guest34255
<Guest34255>
When I see this #<Micropost id: 1, content: "First micropost!", user_id: 1, created_at:"2016-05-15 02:37:37", updated_at: "2016-05-15 02:37:37">
GinoManWorks_ has joined #ruby
<Guest34255>
Is that an object of Micropost class with attributes : id, content, user_id etc
<Guest34255>
I don't get what the attributes are, instance variables?
dminuoso has joined #ruby
edwardly has quit [Ping timeout: 260 seconds]
<pontiki>
Guest34255: assuming Micropost is a Rails ActiveRecord class, they're the database record attributes
ghr has joined #ruby
GinoManWorks has quit [Ping timeout: 258 seconds]
moeabdol has joined #ruby
<Guest34255>
pontiki, ok got it. I see. I was trying to figure out what type of variable they are in ruby
<Guest34255>
I guess it doesn't really translate
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
nisstyre has quit [Quit: WeeChat 1.5]
thoraxe has quit [Ping timeout: 258 seconds]
atom_ has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
thoraxe has joined #ruby
Guest34255 has quit [Quit: Leaving]
daumie has quit [Quit: WeeChat 1.4]
ghr has quit [Ping timeout: 240 seconds]
<Radar>
oh well they left
moeabdol has quit [Ping timeout: 244 seconds]
<Radar>
The values are stored on the class under the @attributes instance variable
<Radar>
the methods are defined dynamically to access it, like @attributes["content"]
A_Drone has joined #ruby
zacts has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
allstar has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
yfeldblum has joined #ruby
xlegoman has joined #ruby
ghr has joined #ruby
zacts has quit [Quit: WeeChat 1.5]
solars has quit [Ping timeout: 264 seconds]
naftilos76 has joined #ruby
agent_white has quit [Quit: aljkasdf]
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
futilegames has quit [Quit: futilegames]
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 240 seconds]
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
yadobujo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
burgestrand has joined #ruby
ghr has joined #ruby
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
edwinvdgraaf has joined #ruby
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
blackmesa has joined #ruby
DevMagpie has joined #ruby
singalaut has joined #ruby
nankyokusei has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
solars has joined #ruby
mistermocha has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
ghr has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
firstdayonthejob has joined #ruby
tvw has quit []
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
colegatron_origi has quit [Ping timeout: 276 seconds]
Sucks has joined #ruby
Sucks has quit [Max SendQ exceeded]
edwinvdgraaf has quit [Remote host closed the connection]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
Macaveli has joined #ruby
dminuoso has quit [Ping timeout: 246 seconds]
AndrewIsHere has quit [Remote host closed the connection]
dminuoso has joined #ruby
tvw has joined #ruby
craigp has joined #ruby
Xiti has quit [Quit: Xiti]
Macaveli_ has joined #ruby
conta has joined #ruby
crystal77 has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
tvw has quit [Client Quit]
Macaveli has quit [Ping timeout: 264 seconds]
skade has joined #ruby
futilegames has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
DevMagpie has quit [Quit: Leaving]
amclain has quit [Quit: Leaving]
Xeago_ has quit [Ping timeout: 244 seconds]
A_Drone has quit [Remote host closed the connection]
ghr has joined #ruby
mark_66 has joined #ruby
colegatron_origi has joined #ruby
DevMagpie has joined #ruby
moeabdol has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
jeyraof has joined #ruby
A_Drone has joined #ruby
aganov has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
pickandmix has quit [Quit: WeeChat 1.4]
zacts has joined #ruby
dionysus69 has joined #ruby
Xeago_ has joined #ruby
deecross has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
travisxcode has quit [Ping timeout: 264 seconds]
djbkd has quit [Quit: My people need me...]
travisxcode has joined #ruby
raeoks has joined #ruby
dminuoso has quit [Remote host closed the connection]
deecross has quit [Ping timeout: 258 seconds]
mgiagante has joined #ruby
mgiagante has quit [Client Quit]
ghr has joined #ruby
raeoks has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
deecross has joined #ruby
mtkd has joined #ruby
Spami has quit [Client Quit]
Spami has joined #ruby
A_Drone has quit [Remote host closed the connection]
exadeci has joined #ruby
deecross has quit [Ping timeout: 246 seconds]
finnnnnnnnnnn has joined #ruby
ghr has joined #ruby
A_Drone has joined #ruby
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 240 seconds]
fraktalize has quit [Quit: LOVE IS THE KEY]
blackmesa has quit [Ping timeout: 276 seconds]
aufi has joined #ruby
akira616 has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
jenrzzz has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
TomyWork has joined #ruby
antgel has joined #ruby
fraktalize has joined #ruby
brianpWins_ has joined #ruby
blackmesa has joined #ruby
blaxter has joined #ruby
Firw has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
brianpWins has quit [Ping timeout: 276 seconds]
brianpWins_ is now known as brianpWins
aupadhye has joined #ruby
deecross has joined #ruby
abonec has joined #ruby
Firw has left #ruby [#ruby]
weaksauce has quit [Max SendQ exceeded]
ghr has joined #ruby
symm- has joined #ruby
deecross has quit [Remote host closed the connection]
dminuoso has joined #ruby
deecross has joined #ruby
A_Drone has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Read error: Connection reset by peer]
hahuang62 has joined #ruby
max3 has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
dminuoso has quit [Quit: Reconnecting]
dminuoso has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
pawnbox has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
ghr has joined #ruby
ghr has quit [Excess Flood]
arnab has quit [Ping timeout: 250 seconds]
Guest87305 has joined #ruby
anisha has joined #ruby
pawnbox has joined #ruby
achamian_ has joined #ruby
kedare has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 246 seconds]
finnnnnnnnnnn has quit [Quit: finnnnnnnnnnn]
deuterium has joined #ruby
moeabdol has joined #ruby
andikr has joined #ruby
achamian has quit [Ping timeout: 240 seconds]
max3 is now known as pickandmix
haxrbyte_ has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 240 seconds]
futilegames has quit [Quit: futilegames]
A_Drone has joined #ruby
dionysus69 has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haxrbyte has quit [Ping timeout: 240 seconds]
deecross has quit [Remote host closed the connection]
abonec has quit [Quit: Ex-Chat]
Chair has joined #ruby
edwinvdgraaf has joined #ruby
Hounddog has joined #ruby
sinanislekdemir has quit []
pawnbox has joined #ruby
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
Hyuk has joined #ruby
Dimik-- has quit [Ping timeout: 276 seconds]
Guest87305 has quit [Quit: quit]
Spami has quit [Quit: This computer has gone to sleep]
garethrees has joined #ruby
garethrees has quit [Excess Flood]
sinanislekdemir has joined #ruby
travisxcode has quit [Ping timeout: 246 seconds]
zenlot6 has quit [Ping timeout: 252 seconds]
multi_io has quit [Ping timeout: 252 seconds]
travisxcode has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
multi_io has joined #ruby
deecross has joined #ruby
sinanislekdemir has quit [Remote host closed the connection]
Xeago_ has joined #ruby
A_Drone has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
ramfjord has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Xeago_ has quit [Remote host closed the connection]
garethrees has joined #ruby
elaptics`away is now known as elaptics
nhhc has joined #ruby
roshanavand has joined #ruby
Rodya_ has joined #ruby
zenlot6 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tvw has joined #ruby
matp has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mcls has joined #ruby
isxek is now known as eizua
Rodya_ has quit [Remote host closed the connection]
bweston92 has quit [Remote host closed the connection]
bweston92 has joined #ruby
A_Drone has joined #ruby
anisha has quit [Ping timeout: 258 seconds]
lupine has quit [Remote host closed the connection]
biberu has joined #ruby
lupine has joined #ruby
anisha has joined #ruby
eizua has joined #ruby
deecross has quit []
der-landgraf has quit [Quit: WeeChat 1.5]
A_Drone has quit [Ping timeout: 252 seconds]
A_Drone has joined #ruby
watersoul has quit [Ping timeout: 276 seconds]
mcls has quit [Quit: leaving]
eizua has quit [Client Quit]
futilegames has left #ruby [#ruby]
watersoul has joined #ruby
eizua has joined #ruby
A_Drone_ has joined #ruby
A_Drone has quit [Read error: Connection reset by peer]
eizua has quit [Client Quit]
eizua has joined #ruby
A_Drone_ has quit [Read error: Connection reset by peer]
A_Drone has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
minimalism has quit [Quit: minimalism]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
der-landgraf has joined #ruby
hck89 has joined #ruby
jeyraof has joined #ruby
aupadhye has quit [Quit: Leaving]
niandalu has joined #ruby
blackmesa has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishido has quit [Remote host closed the connection]
crdpink has joined #ruby
troulouliou_div2 has joined #ruby
Ishido has joined #ruby
crdpink2 has quit [Ping timeout: 250 seconds]
blaxter has quit [Read error: Connection reset by peer]
blaxter has joined #ruby
blaxter has quit [Max SendQ exceeded]
blaxter has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
blaxter has quit [Client Quit]
pawnbox has joined #ruby
yfeldblum has joined #ruby
marr has joined #ruby
niandalu has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
valkyrka has joined #ruby
niandalu has joined #ruby
jeyraof has quit [Quit: Leaving]
<valkyrka>
hi guys, I know this is Chef but maybe you can give me a hand since it’s Ruby based - executing https://gist.github.com/anonymous/6552a5c36ba89853e2b7668ee3a94189 throws the error /opt/chef-solo/cookbooks/chef-splunk/recipes/deploy_apps.rb:64: syntax error, unexpected end-of-input, expecting keyword_end, which and am I missing?
<elomatreb>
Then you're missing an "end" at the end of the file
Xeago_ has quit [Remote host closed the connection]
<valkyrka>
thanks @elomatreb
<valkyrka>
that did the trick!
Gooer has joined #ruby
Gooer has quit [Client Quit]
xue has joined #ruby
<dminuoso>
valkyrka: Also, you cut out your gist. It says line 64, but your gist has only 55 lines of code.
<dminuoso>
So don't lie.
<elomatreb>
Why so hostile?
armyriad has quit [Ping timeout: 258 seconds]
<dminuoso>
elomatreb: Because I hate it when people paste incomplete gists. Not only makes it impossible to correlate error messages to source code, but people also have a tendency to cut out parts they assume to be correct, but may be wrong.
<valkyrka>
sorry, it’s my bad - i I did cut out the comments which would make it hard to debug
<valkyrka>
they were just the comments in the beginning as they reveal my company name
<valkyrka>
the company that I work for*
<elomatreb>
dminuoso: Even so, calling someone a liar like that is hardly appropriate
mistermocha has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
electrostat has quit [Ping timeout: 264 seconds]
<apeiros>
lets assume they said "please don't leave out information" and move on. the underlying sentiment to use a clearly negative description is IMO very understandable. they provide free help. having to deal with bad information is annoying. and I think valkyrka understood.
benlieb has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
<elomatreb>
apeiros: Of course, I was purely picking on wording
ur5us has joined #ruby
<dminuoso>
valkyrka: It's fine. Next time just include a remark to let us (something like: "This is line 64 where the error was reported at") or something similar.
zacstewart has joined #ruby
<dminuoso>
To let us know I mean. :)
antgel has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<valkyrka>
got it :)
<TomyWork>
18# def foo; return not 1; end
<TomyWork>
18>> def foo; return not 1; end
Pumukel has joined #ruby
<dminuoso>
TomyWork: You need to be identified in order to use the bot.
<TomyWork>
ahhh
<TomyWork>
18>> def foo; return not 1; end
<ruby[bot]>
TomyWork: # => /tmp/execpad-07451cbd4231/source-07451cbd4231:2: syntax error, unexpected kNOT, expecting kEND ...check link for more (https://eval.in/603846)
<TomyWork>
i have a VM with ruby 1.8.7 that shows me that strange syntax error... easy enough to work around, but nonetheless odd
<apeiros>
TomyWork: it's unrelated to 1.8
<apeiros>
>> def foo; return not 1; end
<ruby[bot]>
apeiros: # => /tmp/execpad-a7f0c54c17ba/source-a7f0c54c17ba:2: syntax error, unexpected tINTEGER, expecting '(' ...check link for more (https://eval.in/603848)
<apeiros>
either precedence or parser issue. I'd bet on precedence. but too lazy to figure the details.
<apeiros>
>> def foo; return !1; end # works just fine
<apeiros>
I guess that's why I didn't remember that one
<elomatreb>
--i-know-what-im-doing
<apeiros>
yeah :)
<apeiros>
still love zenspider's i_am_an_idiot_because_my_tests_are_order_dependent (or similar) in minitest
eizua has quit [Quit: Leaving]
eizua has joined #ruby
Guest55331 has quit [Quit: Page closed]
niandalu has quit [Ping timeout: 260 seconds]
<Bish>
how do i start processes with ruby and pipe from it?
<Bish>
sure i have `` or %x(), but how can i start a process and read/write from it's stdin/stdout
<apeiros>
Bish: dozens of possibilities
<Bish>
what's the best
<apeiros>
Kernel/Process.spawn being the most universal
<Bish>
inb4 "the best is"
<apeiros>
?best Bish
<ruby[bot]>
Bish: "better" and "best" depend entirely on your context. Try to describe what quality would make one thing better than the other.
<Bish>
haha, i called it
<apeiros>
IO.popen, open3, open4 etc. being alternatives
skade has joined #ruby
<Bish>
IO.popen sounds good, i've seen that often in code, meaning it is inside good code.
<Bish>
bot nothing is more universal than %x/`` right?
<apeiros>
um, `` is not universal.
<apeiros>
it's the most limited there is.
<shevy>
`` is beauty!
<apeiros>
well, might consider system() more limited.
skade has quit [Client Quit]
<elomatreb>
backticks have a weird aftertaste for an ex-php developer
<dminuoso>
apeiros: It's not even a Ruby function, it just enables bison debugging - it cannot possibly be useful to anyone using Ruby unless they are debugging not just the interpreter, but the grammar Ruby uses. ;-)
platzhirsch has joined #ruby
<apeiros>
backticks also shouldn't be used if part of the command is from user-input
<dminuoso>
So the "DO NOT USE" makes sense since it would just confuse anyone.
<apeiros>
LUNCHTIME
<apeiros>
laters @ all
toretore has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
wazzat has joined #ruby
<Bish>
im just trying to parse postfix utilities
<Bish>
like postqueue -p
ur5us has quit [Remote host closed the connection]
A_Drone has quit [Remote host closed the connection]
ur5us has joined #ruby
deuterium has quit [Ping timeout: 240 seconds]
A_Drone has joined #ruby
AlexRussia has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
blackmesa has joined #ruby
travisxcode has quit [Ping timeout: 246 seconds]
mtkd has quit [Ping timeout: 250 seconds]
postmodern has quit [Quit: Leaving]
mtkd has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
A_Drone has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
workmad3 has joined #ruby
nfk has joined #ruby
matp has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
bauruine has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
A_Drone has joined #ruby
koooge has quit [Quit: Leaving...]
edwinvdgraaf has joined #ruby
nankyokusei has joined #ruby
xue has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
Guest76251 has quit [Ping timeout: 264 seconds]
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 272 seconds]
Rickmasta has joined #ruby
alfiemax has joined #ruby
skade has joined #ruby
craigp has quit [Ping timeout: 250 seconds]
Guest76251 has joined #ruby
skade has quit [Client Quit]
flashpoint9 has joined #ruby
tubuliferous has joined #ruby
flashpoi_ has joined #ruby
<TomyWork>
dminuoso sles11
<TomyWork>
not debian
Mimorial has joined #ruby
singalaut has left #ruby ["WeeChat 1.6-dev"]
<dminuoso>
TomyWork: I think you mistood my sarcasm for an honest remark.
flashpoi_ has quit [Remote host closed the connection]
burgestrand has joined #ruby
Ebok has joined #ruby
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has joined #ruby
jaruga___ has quit [Quit: jaruga___]
burgestrand has quit [Client Quit]
Ropeney has quit [Client Quit]
giz|work has joined #ruby
the_drow has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
jaruga___ has joined #ruby
A_Drone has quit [Remote host closed the connection]
burgestrand has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
watersoul has quit [Remote host closed the connection]
watersoul_ has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
TomyWork: You have to ask the maintainers in #debian-ruby on OFTC
<dminuoso>
TomyWork: And regarding your question, even minor Ruby releases can and have made compatibility breaks.
niandalu has joined #ruby
A_Drone has joined #ruby
ldnunes has joined #ruby
<TomyWork>
i know and that's my point. your sarcasm was a little misplaced :)
<dminuoso>
Perhaps.
niandalu has quit [Ping timeout: 252 seconds]
hanmac has joined #ruby
<TomyWork>
i really hate having to acknowledge that fact about ruby. backwards compatibility is the one big issue with ruby that I have. Would be great if I could just specify a ruby version in my Gemfile and bundler takes care of running it with "bundle exec"
<TomyWork>
then I wouldnt have to worry about backwards compatibility at all
<apeiros>
you can, it'll at least verify the version
<apeiros>
and most of the ruby version managers support .ruby-version files
<TomyWork>
well, i've only used rvm so far... installing it is a majorly intrusive operation by itself that I wouldnt want to automate
<adaedra>
chruby!
<TomyWork>
gesundheit!
<TomyWork>
i'll look that up :)
<apeiros>
TomyWork: well, choose your poison
<apeiros>
and as adaedra pointed out - there's other version managers than rvm if you don't like the way rvm works
<apeiros>
we're using rvm in production and don't have a reason to complain so far (iirc 5-6y of operations)
<adaedra>
:O
<TomyWork>
well i have this one machine with at least 3 different ruby apps on it
<apeiros>
cute? :-p
<TomyWork>
i dont think it was ever properly set up though
achamian_ has quit []
<TomyWork>
adaedra chruby looks great
spyder55 has quit []
electrostat has joined #ruby
<TomyWork>
i'll give it a try next time i need a ruby version manager
<dminuoso>
apeiros: I still think RVM for production environments is a bold thing to do. ;-)
<dminuoso>
But then again I may be spoiled by thinking in terms of docker.
<apeiros>
dminuoso: maybe we're not knowledgable enough to see the dangers. but so far zero problems we've had in the past 6 years wrt ruby were rvm's fault.
hck89 has joined #ruby
<adaedra>
at the end, it's always human fault.
<dminuoso>
apeiros: Until some random part that expects cd/do not to be hooked breaks. :)
mdw has joined #ruby
<apeiros>
dminuoso: see, and either we don't have that or it's less of a problem than you make it
<elomatreb>
The problems start when *another* program hooks cd
<apeiros>
the hooked cd is afaik only a problem for login shells anyway
<dminuoso>
apeiros: Well, honestly shells already have a well-defined mechanism for controlling which binary to execute - PATH, which is precisely what chruby does.
<dminuoso>
Everything else is just hacks.
<dminuoso>
Whether they work or not.
<apeiros>
that's not the problem the hook in rvm solves, though
<apeiros>
so apples to pears
<dminuoso>
Fair enough. :)
<dminuoso>
That's a good point.
<elomatreb>
The cd hook handles .ruby-version files, right?
<apeiros>
the application change is managed through env vars too - again, afaik/afaiu (understand)
<dminuoso>
elomatreb: Yeah.
<apeiros>
I think so, yes
<dminuoso>
elomatreb: Either you have to hook cd or provide a binstub, cant get around that if you want to dynamically check based on your current directory.
<dminuoso>
(That is unless another invocation mechanism was provided, that implicitly passed the current working directory)
<elomatreb>
Yeah. The question is if it'S even worth it, tbh
<apeiros>
on a server: IMO not. on a dev machine: I like the automatic change.
<elomatreb>
How often do you have different ruby versions locally though? I have installed and set 2.3.1 when it came out, never needed something else since
<apeiros>
we use rvm because it was the first. we never changed because there was no reason to. I guess if we'd retool our stuff, we'd not use rvm on the servers.
<apeiros>
how often do I? 100% of the time on all of my machines :)
<apeiros>
we don't have the resources to permanently move and test all applications to the current ruby version.
tvw has quit [Read error: Connection reset by peer]
<apeiros>
s/permanently/all the time/
Ebok has quit [Quit: This computer has gone to sleep]
<dminuoso>
elomatreb: Well, I might be tempted to have this to accomdate multiple gemsets honestly.
<dminuoso>
;-)
<dminuoso>
Because some projects I have use different gemsets.
<elomatreb>
Mh, I guess if you're working with more than one app
<jhass>
bundler replaced gemsets for me
<apeiros>
mhm, more than a dozen apps
A_Drone has quit [Remote host closed the connection]
<apeiros>
same @ gemsets/bundler
<dminuoso>
jhass: There's some bits and parts where you have to use gemsets. If you plan on using multiple versions of the same gem providing bins (like Rails)
<jhass>
bundle exec rails / bin/rails
<dminuoso>
jhass: And how do you install rails?
roshanavand has quit [Quit: This computer has gone to sleep]
<dminuoso>
;-)
<Bish>
what's a good syntax to let user create configuration of, lets's say, mysql databases
roshanavand has joined #ruby
<dminuoso>
jhass: I mean yeah, you could start with a Gemfile and populate it as you go..
Ropeney has joined #ruby
<jhass>
if I start an app I want to start it on latest rails anyway
<Bish>
at first i had them like "hostname:port" one per line, but the user wanted more and more parameters, what's a good way to do that
<jhass>
so a global installed most recent rails is no issue
<lupine>
I quite like bundle install --path=vendor/bundle instead of gemsets
<dminuoso>
jhass: I suppose its a moot point, since you only need it once anyway.
<jhass>
Bish: most stuff settle's on URIs these days
lupine has quit [Remote host closed the connection]
crystal77 has joined #ruby
mr_rich101 has joined #ruby
<Bish>
jhass: this is pretty much what i did
<jhass>
pretty much?
<Bish>
then i ran into the problem of the password containing ":" when the user copy pasted it, (sure i could encode it, but then i have to parse it first ) :(
lupine has joined #ruby
<Bish>
mysql by the way was just an example
zenlot6 has quit [Ping timeout: 276 seconds]
l4v2 has joined #ruby
colegatron_origi has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
<jhass>
well that's what URL encoding is for though
<Bish>
doesn't help if the user doesn't give me correctly encoded urls
<elomatreb>
Does it have to be a string?
<Bish>
well, it should be readable so #{user} is not confused
<Bish>
i would use json, but that's already too complex, i guess
<elomatreb>
How about a hash?
<Bish>
same thing i guess?
<jhass>
oh, actually
<Bish>
but it has to be something like that, sadly :/
<ruby[bot]>
Bish: # => bad URI(is not URI?): mysql://user:pass]=123@host (URI::InvalidURIError) ...check link for more (https://eval.in/603964)
chip_ has quit [Ping timeout: 250 seconds]
<Bish>
it looked kinda like that
<jhass>
that you would need to CGI.escape, yes
zenlot6 has joined #ruby
<Bish>
yeah well, but to do that, i would've to parse it first
mtkd has quit [Ping timeout: 258 seconds]
<Bish>
i think i will force the user to do that
<jhass>
yes
<jhass>
asking people dealing with database connection strings to URL encode them is not too much to ask
<Bish>
well but how to detect corrupt uri
<Bish>
jhass: as i said, mysql was an example, they're not adding mysql servers
<jhass>
you just did, rescue URI::InvalidURIError
<jhass>
Bish: I can only argue on the things you state
<Bish>
well, it's basicially the same thing.. just not mysql
sash_ has joined #ruby
<Bish>
a URI to specify stuff
mtkd has joined #ruby
<elomatreb>
I still think a user working with databases should be capable of using JSON or a ruby Hash
<elomatreb>
Def. more convenient than URI-encoding passwords
Coldblackice has quit [Ping timeout: 272 seconds]
mrmortondk has joined #ruby
benlieb has quit [Quit: benlieb]
<jhass>
the thing is URIs are pretty standard for database connection strings
<jhass>
your made up JSON structure is not
<sash_>
Hey everyone, I am converting an old ruby program that uses ruby-dbi for database stuff. I found some problems and bugs and started to rewrite parts of it. Then I found https://github.com/RDBI/rdbi. Does anyone know if I can use it as a drop in replacement?
<jhass>
well, looks pretty dead
<elomatreb>
jhass: Isn't requring the password to be URL-encoded just as arbitrary?
<jhass>
elomatreb: it is, requring a valid URI as a whole isn't
bkxd has joined #ruby
M-shine has quit [Ping timeout: 240 seconds]
M-Kodo has quit [Ping timeout: 244 seconds]
M-mistake has quit [Ping timeout: 240 seconds]
<elomatreb>
That's true I suppose. Maybe offer both, as a convenience?
ekinmur has joined #ruby
ekinmur has quit [Client Quit]
<lupine>
ruby doesn't GC anonymous classes, does it?
<dminuoso>
workmad3: Jokes aside, thanks for clarifying.
<workmad3>
dminuoso: no probs :)
ekinmur has joined #ruby
<Bish>
i never got where the advantage of spaces is
<dminuoso>
Bish: They always look the same everywhere.
<dminuoso>
(Assuming you ahve a font that uses equal width for all characters of course)
mjuszczak has joined #ruby
<Bish>
yeah, i would say that's a disadvantage
<Bish>
with tabs you could align it, as much as you want ( i do that with vim )
<Bish>
just set the width of a tab to 2 spaces, dafuq is wrong with people
pawnbox has joined #ruby
tvon has quit [Quit: Peace out, y'all!]
<dminuoso>
Bish: And then you would have to change the tab width for every project, just because they all mandate different tab width.
<jhass>
what if I want to indent something to three visual spaces then?
<Bish>
how do i have to change it for every project? i have an editor, and i use it everywhere
<dminuoso>
Bish: Project A uses tab indention, assuming 8 character width. Project b uses tab indention, assuming 4 character width.
<jhass>
(there's actually a superior alternative to both, flexitabs or so, but no shit actually implements it)
<Bish>
dminuoso: !? why would say switch?
<Bish>
why would i switch*
Snowy has quit [Remote host closed the connection]
<dminuoso>
Bish: Because you may be involved in more than one project?
<Bish>
i thought both use tabs indention?
<Bish>
why would it matter how it's displayed
edwinvdg_ has quit [Read error: Connection reset by peer]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<dminuoso>
Bish: Let's say you break a single line, say a function call like foo(1234,5678,8901,2345,5678,8901) into multiple lines and align the arugments to appear in the same columnn.
<dminuoso>
Suddenly you care very greatly about the tab width.
<Bish>
a) that's another thing i'd never do because it's as crazy as spaces as indention
<Bish>
b) i don't get how that WOULD be a problem with tabs
M-Kodo has joined #ruby
<dminuoso>
If you cannot see how that would be a problem with tabs, then I don't know how I can help you.
aegis3121 has joined #ruby
<Bish>
... yeah pressing spaces twice for every tab i want to write really makes a difference
<Bish>
you spaces people are b*s*tcrazy
<dminuoso>
Bish: My editor expands tabs automatically into spaces.
<jhass>
^
<Bish>
yeah that's great, and crazy
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aganov has quit [Read error: Connection reset by peer]
<dminuoso>
Bish: Every half way modern editor supports this.
Snowy has joined #ruby
<Bish>
yeah because people are crazy, never needed it, if i need it then because people are crazy
<jhass>
s/half way modern//
<dminuoso>
jhass: Well, I wanted to make sure nobody mentioned Notepad if I said that.
<jhass>
Bish: cool down, accept that your opinion about a topic is not objective truth (and neither is anybody else's)
<dminuoso>
Is it just me, or did github get new default fonts? :)
<Bish>
i do accept it, but i have to live in this world where people tell me to use spaces while i think its crazy
<jhass>
dminuoso: notepad is as much a editor as the input field of my bank accounts login :P
<jhass>
dminuoso: it's not just you, everybody gets a different random font now
<dminuoso>
?!
pawnbox has quit [Ping timeout: 240 seconds]
synthroi_ has joined #ruby
<jhass>
they basically fucked but their font-family to the degree that it's hugely dependent on OS/browser/available fonts
<jhass>
more than before anyway
<Bish>
i would've never noticed taht if you didn't mention
<dminuoso>
Mmm, well whatever they did - I like how it looks.
<dminuoso>
So now I am a happy paying customer. :)
<dminuoso>
Granted... I was before too..
johnny56 has quit [Ping timeout: 264 seconds]
johnny56_ has joined #ruby
failshell has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
_pablo_ has joined #ruby
solars has quit [Ping timeout: 244 seconds]
mrmortondk has quit [Ping timeout: 246 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 252 seconds]
edwinvdgraaf has joined #ruby
_mak has left #ruby [".."]
_pablo_ has quit [Client Quit]
sergey_makagon has joined #ruby
SilverKey has joined #ruby
rbr has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has quit [Client Quit]
Macaveli has joined #ruby
eljimmy has joined #ruby
giz|work has quit [Ping timeout: 260 seconds]
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has quit [Write error: Connection reset by peer]
stardiviner has quit [Ping timeout: 276 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
haxrbyte_ has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
yonahw has quit [Quit: Connection closed for inactivity]
haxrbyte has joined #ruby
SilverKey has joined #ruby
freerobby has quit [Quit: Leaving.]
solars has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
ekinmur has joined #ruby
SilverKey has quit [Client Quit]
sinanislekdemir has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
SilverKey has joined #ruby
cpruitt has joined #ruby
mattwashere has joined #ruby
Mayniac has quit [Ping timeout: 258 seconds]
dfinninger has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
Mayniac has joined #ruby
Spami has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
Spami has quit [Client Quit]
CybrGhost has quit [Quit: Leaving]
Spami_ has joined #ruby
A_Drone has joined #ruby
kgutteridge has quit [Quit: kgutteridge]
moeabdol has quit [Ping timeout: 272 seconds]
failshell has quit []
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
TranzTeKkz has joined #ruby
AnoHito_ has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
A_Drone has quit [Ping timeout: 240 seconds]
triangles3 has joined #ruby
davidcelis_ has joined #ruby
anisha has joined #ruby
akitada has quit [Ping timeout: 246 seconds]
davidcelis has quit [Ping timeout: 246 seconds]
j416 has quit [Excess Flood]
webnanners has quit [Ping timeout: 246 seconds]
maxmanders_ has quit [Ping timeout: 246 seconds]
ryotarai has quit [Ping timeout: 246 seconds]
maxmanders has joined #ruby
j416_ has joined #ruby
ryotarai_ has joined #ruby
ryotarai_ is now known as ryotarai
Jen0vaCore has quit [Ping timeout: 246 seconds]
AnoHito has quit [Ping timeout: 246 seconds]
D9 has quit [Ping timeout: 246 seconds]
webnanners has joined #ruby
akitada has joined #ruby
j416_ is now known as j416
triangles2 has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
djbkd has joined #ruby
stardiviner has joined #ruby
D9 has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
Emmanuel_Chanel has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
mattwashere has quit [Read error: Connection reset by peer]
mattwashere has joined #ruby
djbkd has quit [Remote host closed the connection]
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
djbkd has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
astrobunny has quit [Ping timeout: 240 seconds]
kgutteridge has joined #ruby
dminuoso has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
yadobujo has quit [Remote host closed the connection]
lupine has quit [Remote host closed the connection]
yadobujo has joined #ruby
M-mistake has joined #ruby
caral has joined #ruby
lupine has joined #ruby
yadobujo has quit [Ping timeout: 240 seconds]
TranzTeKkz has quit [Quit: Leaving]
sepp2k has joined #ruby
deadnull has joined #ruby
evansbee has joined #ruby
plujon has joined #ruby
arooni has joined #ruby
arooni has left #ruby [#ruby]
gigetoo has quit [Ping timeout: 244 seconds]
lupine has quit [Client Quit]
rippa has joined #ruby
dminuoso has joined #ruby
gigetoo has joined #ruby
fmcgeough has joined #ruby
banisterfiend has joined #ruby
ChiefAlexander has joined #ruby
lupine has joined #ruby
daumie has quit [Ping timeout: 250 seconds]
agent_white has joined #ruby
<agent_white>
Mornin'
diegoviola has joined #ruby
<jiblet>
mornin
craigp has quit [Ping timeout: 250 seconds]
daumie has joined #ruby
mjuszczak has quit []
tokynet has joined #ruby
aegis3121 has quit [Ping timeout: 272 seconds]
Macaveli has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
pawnbox has joined #ruby
shinnya has joined #ruby
Mayniac has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
dminuoso has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
GodFather has joined #ruby
Mayniac has joined #ruby
aegis3121 has joined #ruby
SteppenII has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
tubuliferous has quit [Ping timeout: 258 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
<SteppenII>
Hi, I have the book, programming ruby 1.9, is it worthwhile buying programming ruby 1.2 & 2.0?
blackmesa has joined #ruby
gigetoo has joined #ruby
<SteppenII>
Hi, I have the book, programming ruby 1.9, is it worthwhile buying programming ruby 1.9 & 2.0?
aufi has quit [Ping timeout: 244 seconds]
erlend has quit [Ping timeout: 240 seconds]
saneax is now known as saneax_AFK
<jhass>
probably not, the big changes were between 1.8 and 1.9
<jhass>
read a couple what's new in ruby 2.0/2.1/2.2/2.3 blogs
<jhass>
you'd have to do that for 2.1/2.2/2.3 anyway so doing it for 2.0 doesn't add much
<SteppenII>
Thanks, where are those blogs
<jhass>
in your google results
sergey_makagon has quit []
<SteppenII>
thanks,
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
the_drow has quit [Ping timeout: 240 seconds]
willemb has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
freerobby has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
yadobujo has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Gooer has quit [Ping timeout: 258 seconds]
anisha has quit [Quit: This computer has gone to sleep]
erlend has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
tubuliferous has joined #ruby
mark_66 has quit [Quit: Leaving.]
Emmanuel_Chanel has quit [Remote host closed the connection]
swills has quit [Ping timeout: 258 seconds]
Mon_Ouie has joined #ruby
aegis3121 has quit [Ping timeout: 258 seconds]
dminuoso has joined #ruby
memorasus has quit [Remote host closed the connection]
malconis has joined #ruby
astrobunny has joined #ruby
zacts has quit [Quit: WeeChat 1.5]
hck89 has joined #ruby
conta has quit [Ping timeout: 240 seconds]
macsteps has joined #ruby
mistermocha has joined #ruby
dionysus69 has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
astrobunny has quit [Ping timeout: 272 seconds]
andikr has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 276 seconds]
tubuliferous has quit [Ping timeout: 272 seconds]
deadnull has quit [Quit: Bye]
flashpoint9 has joined #ruby
dvinciguerra has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
kedare_ has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
rkazak has joined #ruby
dminuoso has quit [Read error: Connection reset by peer]
kgutteridge has quit [Quit: kgutteridge]
Snowy has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
systemnate has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
Snowy has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
astrobunny has joined #ruby
jmignault has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
edwinvdgraaf has quit [Ping timeout: 244 seconds]
mattwashere has quit [Read error: Connection reset by peer]
mattwashere has joined #ruby
BillSussman has quit [Ping timeout: 252 seconds]
hahuang62 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
Pumukel has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
hahuang61 has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
AndyBotwin has joined #ruby
rodferso1 is now known as rodfersou|lunch
dennisvennink has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
stardiviner has quit [Ping timeout: 276 seconds]
Macaveli has joined #ruby
Macaveli has quit [Max SendQ exceeded]
[Butch] has joined #ruby
mattwashere has quit [Remote host closed the connection]
Macaveli has joined #ruby
mattwashere has joined #ruby
A_Drone has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 276 seconds]
Macaveli_ has joined #ruby
skade has joined #ruby
cdg has quit [Remote host closed the connection]
macsteps has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
<ruby[bot]>
toretore: # => ["/execpad/interpreters/ruby-2.3.0/lib/ruby/2.3.0/i686-linux/json/ext/generator.so", "/execpad/inter ...check link for more (https://eval.in/604172)
edwinvdgraaf has joined #ruby
daumie has joined #ruby
eljimmy has joined #ruby
mello has joined #ruby
craigp has joined #ruby
moeabdol has quit [Ping timeout: 258 seconds]
bogusdisk has joined #ruby
brianpWins has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
daumie has quit [Quit: Doing some upgrades....stay put!]
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
hck89 has joined #ruby
hck89 has quit [Client Quit]
macsteps has joined #ruby
pawnbox has quit [Remote host closed the connection]
tomchapin has joined #ruby
n90b0jjf has joined #ruby
polishdub has joined #ruby
SilverKey has quit [Quit: Halted.]
umdstu has quit [Ping timeout: 252 seconds]
Snowy has quit [Quit: ragequit]
craigp has quit [Ping timeout: 240 seconds]
caral has quit [Quit: caral]
caral has joined #ruby
caral has quit [Client Quit]
umdstu has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
sergey_makagon has joined #ruby
jaruga___ has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
SilverKey has joined #ruby
Coldblackice has joined #ruby
mattwashere has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
tristanp has quit [Ping timeout: 252 seconds]
SilverKey has quit [Client Quit]
hck89 has joined #ruby
craigp has joined #ruby
marr has joined #ruby
atom_ has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 258 seconds]
ChiefAlexander has quit [Remote host closed the connection]
eljimmy has quit [Ping timeout: 250 seconds]
eljimmy has joined #ruby
frem_ has joined #ruby
spudowiar has joined #ruby
freerobby has quit [Quit: Leaving.]
tristanp has joined #ruby
symm- has joined #ruby
hahuang61 has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
aegis3121 has joined #ruby
daumie has joined #ruby
d5sx43 has joined #ruby
benlieb has joined #ruby
dragon9783 has joined #ruby
eljimmy has quit [Ping timeout: 276 seconds]
macsteps has quit [Remote host closed the connection]
AndyBotwin has quit [Ping timeout: 258 seconds]
yeticry has joined #ruby
synthroid has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
kgutteridge has quit [Quit: kgutteridge]
GodFather has quit [Ping timeout: 246 seconds]
aegis3121 has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
swills has joined #ruby
daumie has quit [Quit: WeeChat 1.4]
pawnbox has quit [Remote host closed the connection]
Hounddog has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
mistermocha has quit [Remote host closed the connection]
pawnbox has joined #ruby
mistermocha has joined #ruby
daumie has joined #ruby
daumie has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
[Butch] has quit [Ping timeout: 276 seconds]
TomyWork has quit [Ping timeout: 276 seconds]
eljimmy has joined #ruby
jaruga___ has quit [Quit: jaruga___]
d5sx43 has quit [Remote host closed the connection]
daumie has joined #ruby
d5sx43 has joined #ruby
firstdayonthejob has joined #ruby
d5sx43 has quit [Remote host closed the connection]
Mayniac has quit [Ping timeout: 272 seconds]
d5sx43 has joined #ruby
leea has joined #ruby
aegis3121 has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
dionysus69 has quit [Ping timeout: 276 seconds]
daumie has quit [Client Quit]
giz|work has joined #ruby
d5sx43 has quit [Remote host closed the connection]
maloik has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
maloik has joined #ruby
SilverKey has quit [Quit: Halted.]
hahuang61 has joined #ruby
SilverKey has joined #ruby
eljimmy has joined #ruby
deadnull has joined #ruby
ChiefAlexander has joined #ruby
dionysus69 has joined #ruby
skade has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
max2 has joined #ruby
max2 is now known as pickandmix
ChiefAlexander has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
craigp has joined #ruby
skade has joined #ruby
Spami has joined #ruby
finisherr has joined #ruby
willemb has joined #ruby
axl_ has joined #ruby
skade has quit [Excess Flood]
TomyLobo has joined #ruby
roshanavand has joined #ruby
Spami has quit [Client Quit]
SilverKey has quit [Quit: Halted.]
aryaching has quit [Remote host closed the connection]
axl_ has left #ruby [#ruby]
Spami has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
eljimmy has quit [Ping timeout: 258 seconds]
skade has joined #ruby
pwnd_nsfw` has joined #ruby
SilverKey has joined #ruby
griffindy has quit [Ping timeout: 276 seconds]
tristanp has joined #ruby
hellcode has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
ElFerna has quit []
sneakers has joined #ruby
eljimmy has joined #ruby
bruce_lee has quit [Remote host closed the connection]
vuoto has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
roshanavand has joined #ruby
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Oclair has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
kirun has joined #ruby
eljimmy has quit [Ping timeout: 252 seconds]
fschuindt1 has quit [Ping timeout: 250 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
axl_ has joined #ruby
eljimmy has joined #ruby
macsteps has joined #ruby
macsteps has quit [Remote host closed the connection]
axl_ has quit [Client Quit]
marxarelli has joined #ruby
minimalism has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
eljimmy has quit [Read error: Connection reset by peer]
vuoto has joined #ruby
eljimmy has joined #ruby
allstar has joined #ruby
Silthias has quit [Quit: Leaving.]
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elementaru has joined #ruby
zeroDi has joined #ruby
<FernandoBasso>
How do I use 'foo 10 bar 20 jedi'[/\d+/, 1], but makig the regex global?
<toretore>
scan
<FernandoBasso>
It seems ruby does not allow something like /regex/g
<dminuoso>
tercenya: Not for String#[] from what I can tell. You have to use the Regexp#match interface.
eljimmy has quit [Quit: This computer has gone to sleep]
<FernandoBasso>
yes, I have seen that on the web. I just wondered if there is a way using the syntax I showed.
<hanmac>
dminuoso: Regexp#match also does only the first one
<dminuoso>
hanmac: On second thought... :-)
<apeiros>
FernandoBasso: correct. in ruby, it's not the regex which decides how often it should match, it's the method which operates on/with the regex.
eljimmy has joined #ruby
inukshuk_ has joined #ruby
<dminuoso>
FernandoBasso: map is your friend then :-)
<apeiros>
hence toretore's String#scan
Macaveli_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Read error: Connection timed out]
<wrkrcoop>
im trying to stub a method in a module but it doesnt seem to be working
<wrkrcoop>
i tried my_module.stub(:endpoint_transaction).and_return(:msd)
<wrkrcoop>
it says undefined method ‘endpoint transaction’
aryaching has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
<wrkrcoop>
the method in the module is not prefixed with self.
<toretore>
?code wrkrcoop
<ruby[bot]>
wrkrcoop: We can't help you without your code, please post it to https://gist.github.com
whathapp_ has quit [Ping timeout: 276 seconds]
replay has joined #ruby
<wrkrcoop>
that is the code: my_module.stub(:endpoint_transaction).and_return(:msd)
<toretore>
...
<wrkrcoop>
my_module def endpoint_transaction end end
pawnbox has joined #ruby
mistermocha has joined #ruby
<jhass>
...
cdg has joined #ruby
benlieb has quit [Quit: benlieb]
aryaching has quit [Ping timeout: 240 seconds]
<wrkrcoop>
thats the code
<wrkrcoop>
basically
ncthom91 has joined #ruby
aryaching has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
come back when you have a runnable self contained example demonstrating your issue
ncthom91 has quit [Client Quit]
AndyBotwin has joined #ruby
<jhass>
we've been through this too many times, please just stop it
<wrkrcoop>
im just asking how to stub a module
<jhass>
your example is correct
<jhass>
it's also irrelevant to your real code
<wrkrcoop>
hmm wierd then
<wrkrcoop>
thanks
mistermocha has quit [Remote host closed the connection]
leea has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
SteppenII has quit [Quit: Leaving]
biberu has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: minimalism]
biberu has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
aegis3121 has quit [Ping timeout: 250 seconds]
pawnbox has quit [Read error: Connection timed out]
jaruga___ has joined #ruby
David27 has joined #ruby
AndroidLoverInSF has joined #ruby
nfk has quit [Remote host closed the connection]
<lupine>
this guy gives worker's cooperatives a bad name :/
eizua has quit [Quit: Leaving]
akira616 has joined #ruby
krobzaur has joined #ruby
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 250 seconds]
Mayniac has joined #ruby
tristanp_ has joined #ruby
tristanp has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
djbkd_ has quit [Remote host closed the connection]
daumie has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby
Dimik has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
miqlas-H has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
djbkd2 has quit [Ping timeout: 250 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
gregf has joined #ruby
aegis3121 has joined #ruby
daumie has joined #ruby
<havenwood>
do be nice
eljimmy has joined #ruby
* havenwood
stubs a toe
umdstu has quit [Quit: umdstu]
spider-mario has joined #ruby
GinoMan2440 has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
gregf has quit [Ping timeout: 240 seconds]
drbrain has quit [Ping timeout: 276 seconds]
Mimorial has joined #ruby
freerobby has joined #ruby
<shevy>
stab all the toes!
dragon9783 has quit [Quit: Connection closed for inactivity]
hutch34 has joined #ruby
moei has quit [Quit: Leaving...]
wrkrcoop has quit [Quit: wrkrcoop]
hutch34 has quit [Ping timeout: 276 seconds]
shadeslayer has quit [Ping timeout: 264 seconds]
shadeslayer has joined #ruby
johnmilton has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 244 seconds]
sergey_makagon has quit []
skade has quit [Read error: Connection reset by peer]
gregf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<lupine>
sorry matz ^^
tristanp has joined #ruby
Spami has joined #ruby
skade has joined #ruby
edwinvdgraaf has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
kappy has joined #ruby
sergey_makagon has joined #ruby
chris2 has quit [Ping timeout: 258 seconds]
elaptics is now known as elaptics`away
symm- has quit [Ping timeout: 276 seconds]
axl_ has quit [Quit: axl_]
sergey_makagon has quit []
tristanp has quit [Ping timeout: 240 seconds]
tristanp_ has joined #ruby
douglasc_ has joined #ruby
douglasc_ has quit [Remote host closed the connection]
toretore has quit [Quit: Leaving]
Mayniac has quit [Ping timeout: 258 seconds]
Drakevr has quit [Quit: demons to some, angels to others]
akira616 has quit [Ping timeout: 250 seconds]
shinnya has quit [Ping timeout: 252 seconds]
haxrbyte_ has joined #ruby
douglascorrea has quit [Ping timeout: 272 seconds]
skade has quit [Read error: Connection reset by peer]
symm- has joined #ruby
skade has joined #ruby
toretore has joined #ruby
Mayniac has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chris2 has joined #ruby
nhhc has quit [Quit: Leaving]
freerobby has quit [Ping timeout: 258 seconds]
tomchapin has joined #ruby
krobzaur has quit [Quit: WeeChat 1.4]
<postapocallyptic>
I'm doing a do while loop and I have a break inside it and for some reason when the break is reached the whole application shuts down. instead of getting out of the loop.
<postapocallyptic>
maybe I should specify the loop with a {}
freerobby has joined #ruby
minimalism has joined #ruby
Mayniac has quit [Ping timeout: 240 seconds]
Mayniac has joined #ruby
<shevy>
postapocallyptic come on man
<toretore>
?code postapocallyptic
<ruby[bot]>
postapocallyptic: We can't help you without your code, please post it to https://gist.github.com
failshell has quit [Remote host closed the connection]
n90b0jjf has quit [Ping timeout: 240 seconds]
<havenwood>
postapocallyptic: control will be transferred to the line after the loop block after a break
lupine has quit [Ping timeout: 250 seconds]
ChiefAlexander has quit [Remote host closed the connection]
zacts has joined #ruby
wrkrcoop has joined #ruby
pawnbox has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
johnmilton has joined #ruby
n90b0jjf has joined #ruby
lupine has joined #ruby
<toretore>
`begin` does not loop
<toretore>
oh nm
wrkrcoop has quit [Client Quit]
<shevy>
switch to "loop {}" constructs and your problems will go away
Guest29680 has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
ChiefAlexander has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
kavanagh has joined #ruby
<dminuoso>
toretore: I think all begin does is set up catch/throw (the exception mechanism uses this)
arooni_______ has joined #ruby
tristanp_ has quit [Ping timeout: 252 seconds]
wrkrcoop has joined #ruby
LBRapid has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
<jhass>
dminuoso: begin; body; end while condition is one way to do a do-while loop in ruby
whathappens has joined #ruby
<dminuoso>
jhass: I actually wonder how that is implemented.
rcvalle has joined #ruby
<jhass>
special cased
highbass has joined #ruby
<dminuoso>
Like everything else in Ruby. :-)
whathappens has quit [Remote host closed the connection]
<highbass>
hey guys.. i used some gems to overwrite the default Raisl logger... however, i still have some logs that get written over to logs/production.log ....
<highbass>
how can i go about redirecting those logs to a different location?
<dminuoso>
?rails highbass
<ruby[bot]>
highbass: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<highbass>
ok thanks
<dminuoso>
You are welcome.
<highbass>
join #RubyOnRails
whathappens has joined #ruby
tristanp has joined #ruby
l4v2 has quit [Quit: l4v2]
isberg has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
whathappens has quit [Ping timeout: 264 seconds]
nando293921 has joined #ruby
elifoster has joined #ruby
jhass has quit [Ping timeout: 250 seconds]
LBRapid has joined #ruby
yqt has joined #ruby
newbie1 has joined #ruby
chip_ has joined #ruby
johnmilton has joined #ruby
jhass has joined #ruby
yqt has quit [Client Quit]
arooni_______ has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
yfeldblum has joined #ruby
Guest72131 has joined #ruby
jaruga___ has quit [Quit: jaruga___]
ooo has joined #ruby
<hellcode>
Ijust made my first nontrivial ruby script
* hellcode
feels good
nando293921 has quit [Ping timeout: 240 seconds]
leea has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
did you write a class for that
SilverKey has quit [Quit: Halted.]
smathy has joined #ruby
ooo has quit [Client Quit]
nankyokusei has joined #ruby
<hellcode>
two
<hellcode>
three classes
<hellcode>
they could've been objects tho
GodFather has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 276 seconds]
Hobbyboy has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
karapetyan has joined #ruby
* postapocallyptic
<3 ruby
<dminuoso>
hellcode: Classes are objects!
<dminuoso>
hellcode: ;-)
<dminuoso>
Either way, you created objects! :-)
iszak has left #ruby [#ruby]
flashpoint9 has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
VeryBewitching has joined #ruby
SilverKey has joined #ruby
edwinvdgraaf has joined #ruby
polysics has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Ping timeout: 276 seconds]
<hellcode>
(:
flughafen_ has quit [Ping timeout: 260 seconds]
<hellcode>
fair enough
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
hellcode: For all intends and purposes everything in Ruby is an object, consider this to be a base paradigm of the language.
ta_ has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 244 seconds]
blackgoat has joined #ruby
biberu has quit [Read error: Connection reset by peer]
deadnull has quit [Quit: Bye]
Madplatypus has joined #ruby
<hellcode>
it's actually one of the best things in the language imo
smathy has joined #ruby
mrmortondk has joined #ruby
vuoto has joined #ruby
<shevy>
classes are one (good) way to arrange and in particular re-use code
leea has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
deviation has quit [Ping timeout: 264 seconds]
AndyBotwin has quit [Ping timeout: 276 seconds]
symm- has quit [Ping timeout: 258 seconds]
wrkrcoop has quit [Quit: wrkrcoop]
wrkrcoop has joined #ruby
Hobbyboy has joined #ruby
AndyBotwin has joined #ruby
swills has quit [Ping timeout: 240 seconds]
elementaru has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
GinoMan2440 has quit [Ping timeout: 244 seconds]
<hellcode>
I was more used to the functional way
<hellcode>
but it's not tooo different once you get used to it
akira616 has joined #ruby
kavanagh has quit [Quit: That's all folks!]
tristanp has joined #ruby
kies has quit [Ping timeout: 240 seconds]
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
hahuang61 has joined #ruby
allstar has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
zacts has quit [Ping timeout: 244 seconds]
buylowsellhigh has joined #ruby
<buylowsellhigh>
how do I handle socket connection exceptions after a connection has been established
bluOxigen has quit [Ping timeout: 246 seconds]
dfinninger has quit [Ping timeout: 276 seconds]
flashpoint9 has joined #ruby
Avinty-L has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
symm- has joined #ruby
skalfyfan has joined #ruby
postmodern has joined #ruby
edwinvdg_ has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Changing host]
Guest43 has joined #ruby
arooni_______ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
<jhass>
rescue?
skade has quit [Read error: Connection reset by peer]
Avinty-L_ has joined #ruby
arooni_________ has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
<buylowsellhigh>
I connect to the socket, begin rescue end, and then run the socket related code in another begin rescue end block, to ensure there are no errors?
<dminuoso>
buylowsellhigh: First, don't use catch all rescue.
<dminuoso>
It is very bad style.
<dminuoso>
Be explicit about what kind of exceptions you expect.
ChiefAlexander has quit [Remote host closed the connection]
tomchapin has joined #ruby
jud has quit [Read error: Connection reset by peer]
skade has joined #ruby
AndrewIsHere has quit [Read error: Connection reset by peer]
jud has joined #ruby
kirun has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
arooni_______ has quit [Ping timeout: 249 seconds]
zacts has joined #ruby
sneakerhax has quit [Read error: Connection reset by peer]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n90b0jjf has quit [Remote host closed the connection]
ledestin has joined #ruby
dvinciguerra has quit [Ping timeout: 276 seconds]
tubuliferous has quit [Ping timeout: 276 seconds]
whathappens has joined #ruby
tubuliferous has joined #ruby
spudowiar has joined #ruby
buylowsellhigh is now known as hammond
arooni_______ has joined #ruby
<jhass>
"to ensure there are no errors" is not well worded, rescue doesn't not prevent errors from happening, it just gives you a chance to handle them instead of crashing your program
dopamean_ has quit [Ping timeout: 276 seconds]
kavanagh has joined #ruby
ChiefAlexander has joined #ruby
rikkipitt has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
gnufied has joined #ruby
skade has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
ldnunes has quit [Quit: Leaving]
skade has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
vuoto has quit [Remote host closed the connection]
failshell has joined #ruby
wrkrcoop has joined #ruby
karapetyan has quit [Remote host closed the connection]
ChiefAlexander has quit [Quit: Leaving...]
Avinty-L has quit [Read error: Connection reset by peer]
Avinty-L_ has quit [Read error: Connection reset by peer]
<Papierkorb>
If that'd be the only attack possible Oo
Avinty_L has quit [Remote host closed the connection]
<foul_owl>
Hi folks. If there is a webrick process running on a server, is there a command I can run to see the path to the code that webrick is serving?
<foul_owl>
(os is linux)
moei has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 264 seconds]
aupadhye has quit [Ping timeout: 264 seconds]
<hellcode>
Papierkorb: okay maybe it's not too safe but the owner did not neglect that aspect
mistermocha has joined #ruby
edwinvdg_ has joined #ruby
<Papierkorb>
hellcode: it should be quite safe. Else the owner probably wouldn't make a web service out of it.
yadobujo has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
jmignault has quit [Ping timeout: 258 seconds]
<Papierkorb>
Or, if it wouldn't be, it'd be constantly owned.
yadobujo has joined #ruby
xlegoman has joined #ruby
<hellcode>
yeah I can imagine
kavanagh has quit [Ping timeout: 246 seconds]
Xiti has joined #ruby
<Mon_Ouie>
It runs in a ptrace sandbox to restrict the system calls you can run
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
skade has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 240 seconds]
Avinty_L has joined #ruby
polysics has quit []
mistermocha has quit [Ping timeout: 264 seconds]
Avinty_L_ has joined #ruby
kavanagh has joined #ruby
bkxd has joined #ruby
yadobujo has quit [Ping timeout: 244 seconds]
Ebok has joined #ruby
Avinty_L has quit [Read error: Connection reset by peer]
Avinty_L_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
A_Drone has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
flashpoint9 has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ramfjord>
nm, my question doens't make sense. If I had a quarter for every hour I spent dealing with timezone issues between my local system, my local test dabase, staging database, prod system time, prod database timezone...
<ramfjord>
I'd have not much more money than I already hav
nankyokusei has joined #ruby
<al2o3-cr>
dennisvennink: you could use, File.read("/proc/#{Process.ppid}/cmdline")
symm- has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
mattwashere has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mattwashere has joined #ruby
<dennisvennink>
al2o3-cr: I'm on macOS. I don't think it has a /proc directory.
<al2o3-cr>
i should stop assuming
<al2o3-cr>
scrap that then
kavanagh has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
<dennisvennink>
al2o3-cr: Thanks though. :—)
kavanagh has joined #ruby
polishdub has quit [Quit: Leaving]
sepp2k has joined #ruby
rikkipitt has quit [Remote host closed the connection]
yeticry has quit [Remote host closed the connection]
Mayniac has quit [Ping timeout: 276 seconds]
aryaching_ has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
Mayniac has joined #ruby
karapetyan has quit [Remote host closed the connection]
AlexRussia has joined #ruby
Mayniac has quit [Ping timeout: 244 seconds]
Dimik has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
polysics has quit []
ReK2GnULinuX has joined #ruby
ferr has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ReK2 has quit [Ping timeout: 272 seconds]
<shevy>
hmmm
yfeldblum has quit [Remote host closed the connection]
hutch34 has joined #ruby
<shevy>
does anyone know of some ruby scripts that work in a very simple manner, and tell you which specific file/class in any given ruby gem/project may be "slow"? that is, say you have 100 .rb files, one class each, some perform only a few tasks, others perform more. I sorta want to have a group-specific way to analyze which file or which files is/are the bottleneck
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
n90b0jjf has left #ruby [#ruby]
eljimmy has joined #ruby
cdg has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]