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/
duckpuppy has quit [Ping timeout: 250 seconds]
RobertBirnie has joined #ruby
palms has joined #ruby
nankyokusei has joined #ruby
roamingdog has joined #ruby
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 244 seconds]
roamingdog has quit [Ping timeout: 260 seconds]
statelesscode has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has joined #ruby
hutch34 has joined #ruby
crystal77 has joined #ruby
djbkd has joined #ruby
lightt has quit [Remote host closed the connection]
CJKinni has joined #ruby
<benlieb> Is there a way to use ruby-install to install 2.3.1?
crystal77 has quit [Client Quit]
bmorrison has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
vikaton has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
LoneHer__ has joined #ruby
CJKinni has quit [Ping timeout: 250 seconds]
DTZUBDUB has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
MrBusiness2 has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
devbug has joined #ruby
MrBusiness3 has quit [Ping timeout: 260 seconds]
smathy has joined #ruby
lightt has joined #ruby
speakingcode has joined #ruby
<domgetter> What is ruby-install?
roamingdog has joined #ruby
sumobob has joined #ruby
N1njturt1e has joined #ruby
aupadhye has joined #ruby
freerobby has quit [Quit: Leaving.]
LoneHermit has joined #ruby
freerobby has joined #ruby
LoneHer__ has quit [Ping timeout: 240 seconds]
biberu has quit []
jerematic has joined #ruby
davedev24 has quit []
A124 has quit [Remote host closed the connection]
MrSamuel has joined #ruby
<MrSamuel> is `unsigned x = -1` undefined?
<MrSamuel> oh lol wrong channel
<MrSamuel> :D
GodFather has quit [Ping timeout: 244 seconds]
A124 has joined #ruby
deviation has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
N1njturt1e has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 260 seconds]
jancel has joined #ruby
maletor3 has joined #ruby
Vingador has joined #ruby
jancel has quit [Ping timeout: 260 seconds]
crystal77 has joined #ruby
maletor3 has quit [Ping timeout: 260 seconds]
macabre has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
Es0teric has quit [Quit: Computer has gone to sleep.]
palms has quit [Ping timeout: 252 seconds]
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Vingador has quit [Remote host closed the connection]
duckpuppy has joined #ruby
weaksauce has joined #ruby
Ropeney has joined #ruby
rkazak has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 272 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crystal77 has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
MrSamuel has quit [Quit: MrSamuel]
nofxx has quit [Ping timeout: 276 seconds]
raenk has quit [Quit: leaving]
nofxx has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
Stazer has joined #ruby
CloCkWeRX has joined #ruby
sumobob has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
CJKinni has joined #ruby
tatsuo has joined #ruby
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
lalalaaa has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 240 seconds]
CJKinni has quit [Ping timeout: 240 seconds]
speakingcode has quit [Quit: Lost terminal]
MrSamuel has joined #ruby
weemsledeux has joined #ruby
eein has quit [Read error: Connection reset by peer]
eein_ has joined #ruby
Channel6 has joined #ruby
araujo__ has joined #ruby
Alazoral has joined #ruby
araujo_ has quit [Ping timeout: 246 seconds]
<wolffles> hey there guys im trying to use a craiglist bulk poster i found on github but im having trouble making it work.
<wolffles> is there anyone able to walk me through this?
<domgetter> wolffles are you having trouble getting it installed, or are you having trouble getting it to post?
araujo_ has joined #ruby
<wolffles> getting it to post
nofxx has quit [Ping timeout: 276 seconds]
nofxx has joined #ruby
Yzguy has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
jaiks1 has quit [Ping timeout: 258 seconds]
jerematic has joined #ruby
<domgetter> Could be that Craigslist changed something in the last 2 years which broke this. No idea
araujo__ has quit [Ping timeout: 276 seconds]
<wolffles> im assuming that aswell
MrSamuel has quit [Quit: MrSamuel]
N1njturt1e has joined #ruby
Rodya_ has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
araujo__ has joined #ruby
bmorrison has quit [Quit: bmorrison]
<wolffles> my first problem is that $ruby file.rb returns an error which i dont understand
tatsuo has quit [Remote host closed the connection]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<domgetter> What's the error?
<wolffles> so someone told me to try ‘$bundle exec ruby file.rb’ and it works fine
Rodya_ has joined #ruby
<wolffles> but then the code itself doesnt post
gtsai has joined #ruby
jerematic has quit [Ping timeout: 258 seconds]
<wolffles> Users/wolfgang/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- craigs_gem (LoadError)
<wolffles> from /Users/wolfgang/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
<wolffles> from post1.rb:1:in `<main>'
araujo_ has quit [Ping timeout: 244 seconds]
<domgetter> wolffles in the future, use gist.github.com to post several lines at once
<wolffles> oh my bad
flashpoint9 has quit [Ping timeout: 260 seconds]
cemerick has joined #ruby
<domgetter> Well, what I would do next is use pry to find out where the code stops doing what I expect, and follow the calls through the gem
nofxx has quit [Ping timeout: 246 seconds]
maletor3 has joined #ruby
<domgetter> since the gem is installed as source code, you can just keep dropping binding.pry throughout it
nofxx has joined #ruby
<wolffles> ill give it a try
allcentury has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
jaiks1 has joined #ruby
maletor3 has quit [Ping timeout: 240 seconds]
roamingdog has quit [Remote host closed the connection]
tatsuo has joined #ruby
roamingdog has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
n1x-nz has quit [Ping timeout: 240 seconds]
eein- has joined #ruby
eein_ has quit [Read error: Connection reset by peer]
nofxx has quit [Ping timeout: 258 seconds]
nofxx has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
roamingdog has quit [Ping timeout: 272 seconds]
deviation has quit [Remote host closed the connection]
<pilne> i've yet to find any solid info, but i want to keep hoping that I wasn't getting trolled by a python fan when they said ruby 3 will have concurrency. the way they said it just leaves me doubting and my google-fu is failing me
splitlip has quit [Ping timeout: 244 seconds]
phredus has quit [Read error: Connection reset by peer]
n1x-nz has joined #ruby
benlieb has quit [Quit: benlieb]
duckpuppy has joined #ruby
LoneHer__ has joined #ruby
phredus has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
N1njturt1e has quit [Remote host closed the connection]
nankyokusei has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
LoneHermit has quit [Ping timeout: 272 seconds]
<domgetter> pilne Ruby has concurrency. Did you mean parallelism?
<domgetter> pilne here is the tweet you may be looking for: https://twitter.com/yukihiro_matz/status/495219763883163648
N1njturt1e has joined #ruby
<pilne> ty domgetter and yes, i meant parallelism, ty.
prefix has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<pilne> that is a very good goal
lightt has quit [Ping timeout: 272 seconds]
prefix has quit [Max SendQ exceeded]
nankyokusei has quit [Ping timeout: 260 seconds]
prefix has joined #ruby
arlek has quit [Ping timeout: 244 seconds]
scepticulous has quit [Ping timeout: 258 seconds]
jaguarmagenta has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Channel6 has quit [Ping timeout: 246 seconds]
bmorrison has joined #ruby
djbkd has joined #ruby
CJKinni has joined #ruby
lightt has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
CJKinni has quit [Remote host closed the connection]
arlek has joined #ruby
kgrz has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
aeterne has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
jaguarma_ has joined #ruby
Yzguy has quit [Quit: Zzz...]
haraigo has joined #ruby
jaguarmagenta has quit [Ping timeout: 244 seconds]
N1njturt1e has quit [Remote host closed the connection]
statelesscode has joined #ruby
cemerick has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
beilabs has quit [Remote host closed the connection]
lightt has quit [Remote host closed the connection]
lightt has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
charliesome has joined #ruby
macabre has quit [Remote host closed the connection]
goooodroot has joined #ruby
flashpoint9 has joined #ruby
bmorrison has quit [Quit: bmorrison]
gooodroot has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
pizzaops has quit [Quit: Updating details, brb]
<domgetter> pilne: remember: concurrency is when two people have to share a pencil. Parallelism is when there are two pencils
pizzaops has joined #ruby
rkazak has joined #ruby
<pilne> i usually don't forget, but i went out and did some drinking and holdem on a riverboat today with some friends... so my brain got slippery
flashpoint9 has quit [Ping timeout: 250 seconds]
maletor3 has joined #ruby
Channel6 has joined #ruby
pilne has quit [Quit: Quitting!]
xxneolithicxx1 has quit [Quit: Leaving.]
LoneHerm_ has joined #ruby
xxneolithicxx has joined #ruby
haraigo has quit [Ping timeout: 272 seconds]
xxneolithicxx has quit [Max SendQ exceeded]
psmolen has quit [Ping timeout: 276 seconds]
allcentury has joined #ruby
xxneolithicxx has joined #ruby
roamingdog has joined #ruby
maletor3 has quit [Ping timeout: 276 seconds]
LoneHer__ has quit [Ping timeout: 244 seconds]
Dimik has quit [Ping timeout: 260 seconds]
matp has quit [Ping timeout: 252 seconds]
roamingdog has quit [Ping timeout: 240 seconds]
psmolen has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
devbug has quit [Ping timeout: 272 seconds]
ekinmur has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
David_H__ has joined #ruby
cd83x has joined #ruby
David_H_Smith has quit [Ping timeout: 244 seconds]
matp has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
phredus has quit [Remote host closed the connection]
roamingdog has joined #ruby
tolland has quit [Ping timeout: 240 seconds]
Caerus|Away is now known as Caerus
bmorrison has joined #ruby
tatsuo has quit [Remote host closed the connection]
karmatr0n has joined #ruby
braincrash has quit [Quit: bye bye]
tatsuo has joined #ruby
LoneHer__ has joined #ruby
nischay has joined #ruby
Yiota has quit [Ping timeout: 276 seconds]
Yiota has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
LoneHerm_ has quit [Ping timeout: 260 seconds]
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
jaguarma_ has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 240 seconds]
nando293921 has quit [Quit: Lost terminal]
jancel has joined #ruby
braincrash has joined #ruby
djbkd has joined #ruby
phredus has joined #ruby
phredus has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ElFerna has quit [Ping timeout: 252 seconds]
k3rn31 has joined #ruby
sneakerhax has quit [Quit: Back later]
k3rn31 has quit [Client Quit]
jancel has quit [Remote host closed the connection]
prefix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tolland has joined #ruby
nischay has quit [Ping timeout: 244 seconds]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has joined #ruby
ksmutthu has quit [Ping timeout: 240 seconds]
darkman738 has joined #ruby
<darkman738> hi all
devbug has joined #ruby
N1njturt1e has joined #ruby
jancel has quit [Remote host closed the connection]
astrobunny has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
beilabs has joined #ruby
charliesome has joined #ruby
sneakerhax has joined #ruby
N1njturt1e has joined #ruby
unvexp has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
gooooodroot has joined #ruby
kgrz has quit [Ping timeout: 240 seconds]
<darkman738> I'm working on something that I feel like is quite simple, but I keep running into an issue. I've got a simple class holding a simple hash with some exposed methods, however when I try to access the .keys method of the hash I get "undefined method `keys' for nil:NilClass"
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darkman738> clearly this is stating I haven't initialized my variable, and I can't quite figure out how best to do that
weemsledeux has joined #ruby
<Radar> ?gist darkman738
<ruby[bot]> darkman738: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
goooodroot has quit [Ping timeout: 252 seconds]
<darkman738> I'm certain it's simple, but I'm quite the n00b to ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> darkman738: You should be calling QueryRepository.new to initialize a new instance of that class.
<Radar> Then the methods defined there are instance methods, which will have access to the instance variable defined within the initialize method.
<darkman738> how could I organize it so that isn't a requirement?
maletor3 has joined #ruby
diegoaguilar has quit [Ping timeout: 260 seconds]
<darkman738> I'd rather just get an array of labels without having to create a new instance of the class
haraigo has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
<Radar> Why do you not want that to be a requirement?
<darkman738> simplicity
grassass has quit [Remote host closed the connection]
<darkman738> that's almost all that class will be doing
<darkman738> I don't want to have to create a new instance to get or return the hash value
lightt has quit [Remote host closed the connection]
gix has quit [Ping timeout: 276 seconds]
maletor3 has quit [Ping timeout: 250 seconds]
<darkman738> Radar: I'm wrapping it into a class to centralize the queries and allow me to change from static values to a db at some point in the future
<darkman738> but for now it's going to be fairly static
unvexp has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
lightt has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
gix has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
solocshaw1 has joined #ruby
allcentury has joined #ruby
Rickmasta has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nischay has joined #ruby
framling has joined #ruby
solocshaw1 has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 240 seconds]
Yiota has quit [Ping timeout: 264 seconds]
N1njturt1e has joined #ruby
d0lph1n98 has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Yiota has joined #ruby
d0lph1n98 has quit [Ping timeout: 244 seconds]
jancel has joined #ruby
Respek has quit [Quit: gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 260 seconds]
Channel6 has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
roamingdog has quit []
<darkman738> Radar, also, I'm still getting the same error
arescorpio has quit [Quit: Leaving.]
arooni has joined #ruby
rkazak has joined #ruby
Respek has joined #ruby
beilabs has quit []
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ICantCook has quit [Ping timeout: 260 seconds]
terlar has joined #ruby
jancel has quit [Remote host closed the connection]
ICantCook has joined #ruby
PaulCape_ has joined #ruby
djbkd has joined #ruby
hk238 has joined #ruby
cd83x has quit [Remote host closed the connection]
PaulCapestany has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
tjt263 has quit [Read error: Connection reset by peer]
astrobunny has quit [Remote host closed the connection]
<darkman738> Radar: ignore that, I missed a call I was doing previously, but now it's barking about the method get_labels being undefined which doesn't make much sense...
goodroot has joined #ruby
jackjackdripper has joined #ruby
bmorrison has quit [Quit: bmorrison]
hahuang61 has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmorrison has joined #ruby
tildes_ has joined #ruby
gooooodroot has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 272 seconds]
tatsuo has quit [Remote host closed the connection]
cd83x has joined #ruby
tatsuo has joined #ruby
phredus has joined #ruby
ksmutthu has joined #ruby
N1njturt1e has joined #ruby
ramfjord has joined #ruby
crystal77 has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
N1njturt1e has joined #ruby
dionysus69 has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
N1njturt1e has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
lxsameer has joined #ruby
postmodern has joined #ruby
maletor3 has joined #ruby
elifoster has quit [Ping timeout: 246 seconds]
edwinvdg_ has quit [Remote host closed the connection]
maletor3 has quit [Ping timeout: 260 seconds]
karmatr0n has joined #ruby
saneax_AFK is now known as saneax
mikehunt has joined #ruby
mikehunt has quit [Max SendQ exceeded]
mikehunt has joined #ruby
allcentury has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
noodle has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 272 seconds]
noodle has joined #ruby
darkman738 has quit [Ping timeout: 250 seconds]
N1njturt1e has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
N1njturt1e has quit [Remote host closed the connection]
pocketprotector has quit [Excess Flood]
araujo__ has quit [Quit: Leaving]
BackEndCoder has quit [Ping timeout: 250 seconds]
JStoker has quit [Ping timeout: 250 seconds]
tekacs has quit [Ping timeout: 250 seconds]
pocketprotector has joined #ruby
sarcas has quit [Ping timeout: 250 seconds]
EvilJStoker has quit [Ping timeout: 250 seconds]
lupine has quit [Ping timeout: 250 seconds]
terlar has quit [Quit: WeeChat 1.5]
sarcas has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes_ has quit [Ping timeout: 244 seconds]
tekacs has joined #ruby
noodle has quit [Ping timeout: 276 seconds]
devbug has quit [Ping timeout: 260 seconds]
BackEndCoder has joined #ruby
EvilJStoker has joined #ruby
JStoker has joined #ruby
lupine has joined #ruby
eljimmy has joined #ruby
pocketprotector has quit [Excess Flood]
pocketprotector has joined #ruby
eljimmy has quit [Client Quit]
tmtwd has joined #ruby
bnjf has quit [Quit: Reconnecting]
bnjf has joined #ruby
Respek has quit [Quit: gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
phredus has quit [Remote host closed the connection]
tvw has joined #ruby
jancel has joined #ruby
djbkd has joined #ruby
saneax is now known as saneax_AFK
moei has quit [Quit: Leaving...]
moei has joined #ruby
kareeoleez has quit [Remote host closed the connection]
jancel has quit [Ping timeout: 260 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 250 seconds]
Masteroshi57 has quit [Remote host closed the connection]
N1njturt1e has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
Yiota has joined #ruby
eserror_ has quit [Ping timeout: 244 seconds]
lightt has quit [Remote host closed the connection]
noodle has joined #ruby
astrobunny has joined #ruby
kgrz has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
tildes_ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigp has joined #ruby
t1mxg0d has joined #ruby
banister has joined #ruby
howdoi has joined #ruby
hahuang61 has quit [Ping timeout: 272 seconds]
flashpoint9 has joined #ruby
lightt has joined #ruby
paul_ has joined #ruby
youch has quit [Ping timeout: 244 seconds]
t1mxg0d has quit [Remote host closed the connection]
t1mxg0d has joined #ruby
banister has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 250 seconds]
maletor3 has joined #ruby
dudepare has joined #ruby
pawnbox has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
nofxx has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
phredus has joined #ruby
rkazak has joined #ruby
anisha has joined #ruby
allcentury has joined #ruby
maletor3 has quit [Ping timeout: 244 seconds]
tildes_ has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
LoneHer__ has quit [Ping timeout: 252 seconds]
allcentury has quit [Ping timeout: 252 seconds]
lightt has quit [Ping timeout: 250 seconds]
paul_ has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
spyder55 has joined #ruby
DTZUBDUB has quit [Ping timeout: 258 seconds]
matp has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
matp has joined #ruby
tmtwd has quit [Ping timeout: 258 seconds]
lessless has joined #ruby
nankyokusei has joined #ruby
nischay has quit [Ping timeout: 276 seconds]
last_staff has joined #ruby
fenre has joined #ruby
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spyder55 has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 276 seconds]
mark_66 has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
edwinvdgraaf has joined #ruby
agent_white has left #ruby [#ruby]
craigp has quit [Quit: WeeChat 1.5]
blackgoat has joined #ruby
jancel has joined #ruby
djbkd has joined #ruby
t1mxg0d has quit [Ping timeout: 264 seconds]
certainty has joined #ruby
spyder55 has joined #ruby
N1njturt1e has joined #ruby
lightt has joined #ruby
jancel has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
Guest69434 is now known as olspookishmagus
djbkd has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
codecop has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
the_drow_ has joined #ruby
djbkd has joined #ruby
thorgi has quit [Remote host closed the connection]
wolffles has quit [Quit: wolffles]
bigkevmcd has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
N1njturt1e has joined #ruby
gtsai has quit [Remote host closed the connection]
ta_ has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
domgetter has quit [Ping timeout: 250 seconds]
M570 has joined #ruby
spyder55 has quit []
Dimik has joined #ruby
spyder55 has joined #ruby
nofxx has quit [Remote host closed the connection]
the_drow_ has quit [Read error: Connection reset by peer]
agit0 has joined #ruby
Macaveli has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
jerematic has joined #ruby
tmtwd has joined #ruby
N1njturt1e has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
the_drow has joined #ruby
LoneHer__ has joined #ruby
jerematic has quit [Ping timeout: 250 seconds]
flughafen has quit [Ping timeout: 252 seconds]
N1njturt1e has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Ping timeout: 272 seconds]
maletor3 has joined #ruby
fenre has quit [Remote host closed the connection]
aries_liuxueyang has quit [Ping timeout: 258 seconds]
gagrio has joined #ruby
fenre has joined #ruby
djbkd has quit [Remote host closed the connection]
aries_liuxueyang has joined #ruby
maletor3 has quit [Ping timeout: 244 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flughafen has joined #ruby
hahuang61 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pepee has quit [Quit: bye $IRC]
n1x-nz has quit [Ping timeout: 244 seconds]
LoneHer__ has quit [Remote host closed the connection]
andikr has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
Hobbyboy|BNC is now known as Hobbyboy
aasadaz has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
astrobunny has quit [Ping timeout: 260 seconds]
SDr has joined #ruby
<SDr> hello peeps
<SDr> how can I run middleman server in supervisord?
DTZUBDUB has joined #ruby
Couch has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
tmtwd has quit [Ping timeout: 250 seconds]
iceden has quit [Ping timeout: 244 seconds]
iceden has joined #ruby
pawnbox has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
gooodroot has joined #ruby
aganov has quit [Read error: Connection reset by peer]
aganov has joined #ruby
pawnbox has quit [Remote host closed the connection]
goooodroot has joined #ruby
pawnbox has joined #ruby
goodroot has quit [Ping timeout: 276 seconds]
tvw has quit []
gooodroot has quit [Ping timeout: 260 seconds]
tatsuo has quit [Remote host closed the connection]
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blockchan has joined #ruby
bmorrison has quit [Quit: bmorrison]
eein- has quit [Read error: Connection reset by peer]
LMity has joined #ruby
eein- has joined #ruby
giz|work has joined #ruby
antgel has joined #ruby
n1x-nz has joined #ruby
LMity has quit [Ping timeout: 240 seconds]
vikaton has joined #ruby
gooooodroot has joined #ruby
anisha_ has joined #ruby
auzty has joined #ruby
anisha has quit [Ping timeout: 244 seconds]
goooodroot has quit [Ping timeout: 260 seconds]
<Bish> >> def test x; x+=" two";puts x.object_id; end; x = "one"; test x; x.object_id
<Bish> >> def test x; x+=" two";puts x.object_id; end; x = "one"; test x; x.object_id
<ruby[bot]> Bish: # => 554388650 ...check link for more (https://eval.in/583779)
phunkren_ has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
<Bish> why is that string getting cloned?
goodroot has joined #ruby
antgel has joined #ruby
vondruch has quit [Ping timeout: 246 seconds]
<Bish> asm>> def test x; x+=" two";puts x.object_id; end; x = "one"; test x; x.object_id
<ruby[bot]> Bish: I have disassembled your code, the result is at https://eval.in/583784
<apeiros> Bish: it isn't cloned?
phunkren_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
<apeiros> you get a new string, if that's what you mean
<apeiros> and the reason is because that's how String#+ is defined
<apeiros> string1 + string2 # => new_string3
gooooodroot has quit [Ping timeout: 264 seconds]
jerematic has joined #ruby
ur5us has joined #ruby
<Bish> ah i c, it's too early in the morning
<Bish> i thought that was wrong because x="1"; x+= "2" changes x
<Bish> but taht is because it is holder of the "="
<Bish> nvm
<Spami> is there a rbenv reinstall command?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
N1njturt1e has joined #ruby
scepticulous has joined #ruby
jerematic has quit [Ping timeout: 272 seconds]
harfangk has joined #ruby
weemsledeux has joined #ruby
maletor3 has joined #ruby
allcentury has joined #ruby
maletor3 has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
N1njturt1e has quit [Ping timeout: 250 seconds]
lalalaaa has joined #ruby
sarcas has quit [Remote host closed the connection]
LoneHermit has joined #ruby
gnufied has joined #ruby
haxrbyte has joined #ruby
vondruch has joined #ruby
blaxter has joined #ruby
ocbtec has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
LoneHermit has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
nankyokusei has joined #ruby
jancel has joined #ruby
pizzaops has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
digitalfiz has quit [Ping timeout: 264 seconds]
<kareeoleez> is there any other way to write if x == "test" and y == "test" ?
<kareeoleez> [x,y].include? test isn't exactly what I want
<apeiros> none which would be more succinct than those two
jancel has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
digitalfiz has joined #ruby
pizzaops has joined #ruby
<heftig> kareeoleez: maybe write x == y and y == "test"
<kareeoleez> it isn't a little bit not too DRY
<kareeoleez> I know it's not a big deal
<kareeoleez> just a matter of OCD
<kareeoleez> what If you have 10 conditions?
<heftig> yeah, python has x == y == "test" which is weird coming from other languages but not that bad
<kareeoleez> this could be better
<heftig> [x,y].all? { |i| i == "test" }
<kareeoleez> what is all?
<kareeoleez> equality ?
<heftig> ri "Enumerable#all?"
elaptics`away is now known as elaptics
cemerick has joined #ruby
wnd has quit [Quit: Disconnecting from stoned server.]
<heftig> returns true if the block never returns false (i.e. if the enumerable is empty, it's true too)
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
wnd has joined #ruby
<heftig> (or rather, returns false or nil)
<apeiros> btw., [x,y].include?("test") would be "or", not and :)
drbrain has quit [Ping timeout: 272 seconds]
<apeiros> heftig: all? afaik always returns true/false
<heftig> yeah, i think that's what they meant by "isn't exactly what they want"
Dimik has quit [Ping timeout: 244 seconds]
<heftig> apeiros: i meant the block
<apeiros> ah
jackjackdripper has joined #ruby
<Bish> >> class T; def t; p yield; end;end;T.new.t { self }
<ruby[bot]> Bish: # => main ...check link for more (https://eval.in/583795)
<gregf_> probably an intersect?
<Bish> if i do Mail.new do { put self } it outputs the mail :o
<apeiros> &ri instance_eval Bish
yos7ph has joined #ruby
<apeiros> also see instance_exec, class_eval, class_exec (latter too are also aliased as module_eval, _exec)
<Bish> i know about instance_eval, i just want to understand
<apeiros> if you know about instance_eval, then what exactly do you not understand?
<Bish> why is "self" in block usually the self of the caller
<Bish> and not in Mail.new do ... end
<apeiros> because Mail.new instance_eval's the block
<Bish> see?
<Bish> how could i know that
<apeiros> well, you knew about instance_eval, that's how?
saneax_AFK is now known as saneax
<Bish> well but i havn't gotten to the idea ( is that proper english :O )
yos7ph has quit [Client Quit]
<Bish> dayum :( i want to call my methods in there
<Bish> that sucks
kgrz has quit [Ping timeout: 264 seconds]
moeabdol1 has quit [Ping timeout: 260 seconds]
<apeiros> so maybe the proper reaction wouldn't have been "I know about", but rather "how's it connected?"
* apeiros afk
<Bish> nah, i couldn't know it was used in there
<apeiros> what do you suppose why I mentioned it then? you thought I had no reason to or what? :)
<Bish> i didn't know it was connected, i thought u were advising me to look into instance_eval to fix it
tesuji_ has joined #ruby
<Bish> but didn't know how it would help me
joonty has joined #ruby
blaxter has quit [Ping timeout: 246 seconds]
DaniG2k has joined #ruby
blaxter has joined #ruby
jaruga___ has joined #ruby
bmorrison has joined #ruby
Ropeney has joined #ruby
araujo has joined #ruby
gnufied has quit [Ping timeout: 250 seconds]
ksmutthu_ has joined #ruby
ICantCook has quit [Ping timeout: 244 seconds]
marr has joined #ruby
gnufied has joined #ruby
ICantCook has joined #ruby
ksmutthu has quit [Ping timeout: 244 seconds]
moeabdol1 has joined #ruby
ByronJohnson has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
n1x-nz has quit [Quit: Computer says no]
gtsai has joined #ruby
razzsicle has quit []
gnufied has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
moeabdol1 has quit [Quit: WeeChat 1.4]
arlek has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
blaxter has quit [Ping timeout: 250 seconds]
gtsai has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Remote host closed the connection]
benlieb has joined #ruby
moeabdol has joined #ruby
dionysus69 has joined #ruby
benlieb_ has joined #ruby
maletor3 has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
pawnbox has joined #ruby
aasadaz has quit [Read error: No route to host]
benlieb has quit [Ping timeout: 240 seconds]
benlieb_ is now known as benlieb
troulouliou_div2 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
maletor3 has quit [Ping timeout: 240 seconds]
saneax is now known as saneax_AFK
bmorrison has quit [Quit: bmorrison]
tjohnson has quit [Quit: Connection closed for inactivity]
bmorrison has joined #ruby
weckl has joined #ruby
Alazoral has joined #ruby
ReK2 has quit [Ping timeout: 264 seconds]
bmorrison has quit [Client Quit]
araujo_ has quit [Quit: Leaving]
bmorrison has joined #ruby
qasaur has joined #ruby
bmorrison has quit [Client Quit]
ferr has joined #ruby
mdw has joined #ruby
gooodroot has joined #ruby
qasaur has quit [Read error: Connection reset by peer]
qasaur_ has joined #ruby
saneax_AFK is now known as saneax
blackmesa has joined #ruby
Snowy has joined #ruby
goodroot has quit [Ping timeout: 246 seconds]
lightt has quit [Remote host closed the connection]
bmorrison has joined #ruby
kgrz has joined #ruby
jas02 has joined #ruby
hahuang61 has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
ReK2 has joined #ruby
DaniG2k has quit [Quit: leaving]
mikehunt has quit [Ping timeout: 244 seconds]
upstream has joined #ruby
bigkevmcd has joined #ruby
upstream has quit [K-Lined]
workmad3 has joined #ruby
goooodroot has joined #ruby
lightt has joined #ruby
noobsu has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
t1mxg0d has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
gooodroot has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
workmad3 has joined #ruby
qasaur_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
zeroDi has joined #ruby
allcentury has joined #ruby
<shevy> so many evals and execs
blackmesa has joined #ruby
bmorrison has quit [Quit: bmorrison]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
maximilian has quit [Quit: Connection closed for inactivity]
raeoks has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
bmorrison has joined #ruby
scepticulous has quit [Ping timeout: 258 seconds]
scepticulous has joined #ruby
bmorrison has quit [Client Quit]
scepticulous has quit [Client Quit]
jinie has joined #ruby
ksmutthu__ has joined #ruby
scepticulous has joined #ruby
scepticulous has quit [Client Quit]
dionysus69 has joined #ruby
jinie has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aupadhye has quit [Ping timeout: 252 seconds]
ruskie has quit [Excess Flood]
t1mxg0d has quit [Ping timeout: 276 seconds]
kgrz has quit [Ping timeout: 276 seconds]
ksmutthu_ has quit [Ping timeout: 244 seconds]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has quit [Quit: Leaving.]
kgrz has joined #ruby
jinie has joined #ruby
dionysus69 has quit [Remote host closed the connection]
jaruga___ has quit [Ping timeout: 246 seconds]
scepticulous has joined #ruby
postmodern has quit [Quit: Leaving]
troulouliou_div2 has quit [Remote host closed the connection]
Xentil has joined #ruby
LoneHermit has joined #ruby
dionysus69 has joined #ruby
maletor3 has joined #ruby
gooooodroot has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
norc has joined #ruby
<norc> Okay.. say I have a Ruby application that traps sigint, how can I interrupt Ruby and get information about the stack trace?
solocshaw has joined #ruby
<norc> (Short of attaching lldb)
<jhass> SIGQUIT?
<norc> jhass: brilliant that works. Thanks.
<jhass> it's my favorite, nobody thinks of trapping it
maletor3 has quit [Ping timeout: 276 seconds]
etehtsea has joined #ruby
ksmutthu has joined #ruby
goooodroot has quit [Ping timeout: 276 seconds]
ksmutthu__ has quit [Ping timeout: 244 seconds]
goodroot has joined #ruby
harfangk has quit [Quit: harfangk]
ramfjord has quit [Ping timeout: 250 seconds]
toretore has joined #ruby
naftilos76 has joined #ruby
ReK2 has quit [Ping timeout: 260 seconds]
jaruga___ has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
gooooodroot has quit [Ping timeout: 260 seconds]
ruskie has joined #ruby
bruce_lee has joined #ruby
<norc> jhass: Meh, that didn't work as well as I expected it to. Seems like I cannot interrupt rails with webrick ontop like that.
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
the_drow has joined #ruby
<lightt> i thout this room about jewellery.......
nankyokusei has joined #ruby
gooodroot has joined #ruby
blackmesa has joined #ruby
<gregf_> nothing wrong in that :)
harfangk has joined #ruby
tvw has joined #ruby
goodroot has quit [Ping timeout: 244 seconds]
noobsu has quit []
goooodroot has joined #ruby
<jhass> norc: well, you got 31 signals, try some more, some might have curious effects
<jhass> like the Ruby VM crashing with its helpful dump
nankyokusei has quit [Ping timeout: 260 seconds]
duoi has quit [Ping timeout: 272 seconds]
gooodroot has quit [Ping timeout: 258 seconds]
DaniG2k has joined #ruby
cemerick has quit [Ping timeout: 244 seconds]
etehtsea has quit [Quit: Computer has gone to sleep.]
duoi has joined #ruby
<norc> I assume you meant SIGSEGV :)
nettoweb has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
kalleth_ is now known as kalleth
etehtsea has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
minimalism has quit [Quit: minimalism]
naftilos76 has quit [Quit: Αποχώρησε]
blackmesa has quit [Read error: Connection reset by peer]
kedare has joined #ruby
c355e3b has joined #ruby
solocshaw has quit [Ping timeout: 272 seconds]
certainty has quit [Ping timeout: 244 seconds]
<jhass> SIGBUS perhaps too
johnmilton has quit [Remote host closed the connection]
Xzanron has joined #ruby
be3tle has joined #ruby
duncannz has quit [Remote host closed the connection]
Xzanron has quit [Client Quit]
ta_ has quit [Remote host closed the connection]
cemerick has joined #ruby
Xzanron has joined #ruby
charliesome has joined #ruby
gooooodroot has joined #ruby
biberu has joined #ruby
goooodroot has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
<be3tle> anyone know a good way to do authentication with sinatra?
goodroot has joined #ruby
m_antis has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
jerematic has joined #ruby
gooooodroot has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
gooodroot has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
<norc> be3tle: warden I suppose
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
jerematic has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
<norc> be3tle: But to answer that question a bit more details are required.
Hyuk has joined #ruby
centrx has joined #ruby
qasaur has joined #ruby
einarj has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
Macaveli_ has joined #ruby
goodroot has quit [Ping timeout: 272 seconds]
Macaveli has quit [Ping timeout: 244 seconds]
GodFather has joined #ruby
sartan has quit [Ping timeout: 260 seconds]
maletor3 has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
electrostat has quit [Quit: uwotm8]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
electrostat has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
maletor3 has quit [Ping timeout: 252 seconds]
GodFather has quit [Remote host closed the connection]
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]
aswen has joined #ruby
GodFather has joined #ruby
ksmutthu_ has joined #ruby
ksmutthu has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
blaxter has joined #ruby
Yiota has joined #ruby
lalalaaa has quit [Ping timeout: 244 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
giz|work has quit [Ping timeout: 264 seconds]
<be3tle> norc: thanks I did see warden. i'm making a small open source app intended for self hosting
<be3tle> scalability isn't much of a concern
rodfersou has joined #ruby
iceden has quit [Ping timeout: 240 seconds]
aswen has quit [Quit: WeeChat 1.5]
Yiota has quit [Ping timeout: 276 seconds]
JakFrist has joined #ruby
johnmilton has joined #ruby
blackmesa has joined #ruby
goooodroot has joined #ruby
CloCkWeRX has joined #ruby
zotherstupidguy has joined #ruby
giz|work has joined #ruby
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<be3tle> i've just come across padrino, it looks quite nice and could be a way for me to graduate from sinatra
m_antis has quit [Ping timeout: 244 seconds]
gooodroot has quit [Ping timeout: 272 seconds]
Rodya_ has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
lalalaaa has joined #ruby
ishe_ua has joined #ruby
certainty has joined #ruby
sdothum has joined #ruby
gooooodroot has joined #ruby
Spami has quit [Quit: Leaving]
kgrz has quit [Ping timeout: 250 seconds]
goooodroot has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 250 seconds]
ksmutthu_ has quit [Ping timeout: 244 seconds]
<gregf_> hello, is there a way to set an ALRM and trap it?
goodroot has joined #ruby
duoi has quit [Ping timeout: 250 seconds]
<gregf_> like so trap("ALRM") do puts "ALARM SET OFF"; alarm(5); # set while ( i+=1 < 10); sleep 1; end; alarm(0);#reset
duoi has joined #ruby
<gregf_> sorry, like so trap("ALRM") do puts "ALARM SET OFF";end; alarm(5); # set while ( i+=1 < 10); sleep 1; end; alarm(0);#reset
gooooodroot has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: centrx]
solocshaw has joined #ruby
solocshaw has quit [Client Quit]
benlieb has joined #ruby
blockchan1 has joined #ruby
solocshaw has joined #ruby
blockchan has quit [Ping timeout: 260 seconds]
certainty has joined #ruby
cemerick has quit [Ping timeout: 250 seconds]
arlek has joined #ruby
<jokke> hmm
<jokke> is there a shorter syntax for [{foo: 'bar'}, {foo: 'baz'}].map {
<jokke> |hash| hash[:foo] }
<bathtub_shark> %i()
<bathtub_shark> er, no - that doesn't work for that scenario
<jokke> :)
<jokke> no
<jhass> not really
<jokke> that's too bad :/
<jhass> http://devdocs.io/ruby~2.3/array#method-i-dig doesn't help much either I guess
centrx has joined #ruby
<bathtub_shark> algthough your usecase _right now_ is not much different from an array
<bathtub_shark> in applications with large arrays the contents will more likely be in a variable
<jokke> that's too bad. :/ i mean i'd think this is fairly common
no_gravity has joined #ruby
<no_gravity> Hello! Last time I tried to install jekyll it hang forever trying to build some kind of documentation. Is there a switch to avoid that?
<jhass> no_gravity: --no-doc in recent rubygems versions, --no-ri --no-rdoc in older ones
flashpoint9 has joined #ruby
<no_gravity> jhass: Im not sure which version i have
Mon_Ouie has quit [Ping timeout: 252 seconds]
<no_gravity> jhass: Do i do it like this? "gem install ruby -v 2.5 --no-rdoc"
hahuang61 has joined #ruby
<jhass> ah actually -N or --no-document not --no-doc is the new stuff
<no_gravity> I mean "gem install jekyll -v 2.5 --no-rdoc"
<jhass> yes
<no_gravity> Lets see...
<no_gravity> Been trying to install jekyll since yesterday...
millerti has joined #ruby
<jhass> you can also add gem: --no-rdoc --no-ri into a file called ~/.gemrc to disable it generally
<no_gravity> Well, if I can avoid it, I will never ever use anything ruby related again :)
<al2o3-cr> gregf_: how do you mean?
<no_gravity> This must be the most horror installation of a software ever.
lxsameer has quit [Quit: WeeChat 1.5]
<jhass> never go near django then :P
<no_gravity> Its installing those documentation stuff again...
<no_gravity> Hangs at "Installing ri documentation for octokit-4.3.0..." just like yesterday.
flashpoint9 has quit [Ping timeout: 250 seconds]
<jhass> well you only disabled rdoc...
<jhass> it's not like I didn't mention --no-ri like three times
<no_gravity> Using up 100% of one CPU core...
banister has joined #ruby
<no_gravity> How on earth does it spend those billions and billions of CPU cycles?
<jhass> scanning the source code for doc comments
Shashikant86 has joined #ruby
<no_gravity> How can that take minutes?
<no_gravity> Is it using sleepsort?
hanmac has quit [Ping timeout: 258 seconds]
solocshaw has quit [Quit: solocshaw]
<jhass> idk, dig into the source and make it better?
jerematic has joined #ruby
solocshaw has joined #ruby
<jhass> a rant never has never improved a situation
ElFerna has joined #ruby
<no_gravity> Still hanging...
allcentury has joined #ruby
quarcu has joined #ruby
solocshaw has quit [Client Quit]
<gregf_> al2o3-cr: well i needed to wrap the alarm function and call it from ruby
CloCkWeRX has quit [Ping timeout: 272 seconds]
hahuang61 has quit [Ping timeout: 246 seconds]
<gregf_> i tried this: trap("ALRM") do puts "ALARM SET OFF";exit;end;libc = Fiddle.dlopen("/lib/x86_64-linux-gnu/libc.so.6");alarm = Fiddle::Function.new(libc["alarm"], [Fiddle::TYPE_DOUBLE], Fiddle::TYPE_DOUBLE); p alarm; alarm.call(5);i = 1; while ((i+=1) < 10); sleep 1;end; alarm.call(0); # doesn't trigger
<gregf_> im writing this for gaining a lock on a file :|
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<no_gravity> Still hanging...
<no_gravity> Can I interrupt it?
<gregf_> just realized that ec2 instances have python and perl installed but no ruby :\
<no_gravity> It stil hogs up one CPU...
jerematic has quit [Ping timeout: 276 seconds]
DTZUBDUB has quit [Ping timeout: 276 seconds]
<no_gravity> gregf_: The instances? I think you mean some specific image?
auzty has quit [Quit: Leaving]
<gregf_> well, yep, image
<al2o3-cr> gregf_: alarm = Function.new(Handle.new(nil)['alarm'], [-TYPE_INT], -TYPE_INT); trap("ALRM") { puts "ALARM SET OFF" }; alarm.call(5) # this triggers
nischay has joined #ruby
mikecmpbll has joined #ruby
<gregf_> al2o3-cr: where is Function from?
<gregf_> and Handle
<al2o3-cr> gregf_: fiddle
<al2o3-cr> `include Fiddle`
<gregf_> er, well require ;)
maletor3 has joined #ruby
<gregf_> also those constants TYPE_INT
<al2o3-cr> require then include :P
<gregf_> ah - ok
tlaxkit has joined #ruby
<gregf_> yay. that works :)
<gregf_> al2o3-cr: cheers man
<gregf_> s/man// ;)
lightt has quit [Remote host closed the connection]
be3tle has quit [Quit: WeeChat 1.5]
<al2o3-cr> np :)
jammi- has joined #ruby
gnufied has joined #ruby
tesuji_ has quit [Read error: Connection reset by peer]
tesuji_ has joined #ruby
tesuji_ has quit [Changing host]
tesuji_ has joined #ruby
<gregf_> its ubuntu 14 and no ruby with it *sigh*
Bish has quit [Ping timeout: 260 seconds]
maletor3 has quit [Ping timeout: 258 seconds]
D30 has joined #ruby
hanmac has joined #ruby
jammi- has left #ruby [#ruby]
<gregf_> oh well if i change TYPE_DOUBLE to TYPE_INT.. the code i chatted above works too :).*should've looked at the method sig*
lalalaaa has quit [Quit: leaving]
<al2o3-cr> gregf_: should be `-TYPE_INT` unsigned int
<norc> My "Fiddle" highlight watcher woke me from my sleep.
<norc> What is today's hack about?
nobitanobi has quit []
<gregf_> al2o3-cr: sure, thanks :)
prestorium has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
platzhirsch has joined #ruby
gagrio has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
gagrio has joined #ruby
CloCkWeRX has joined #ruby
nankyokusei has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
arlek has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
eein- has quit [Quit: Leaving]
phredus has quit [Remote host closed the connection]
kknight has joined #ruby
<kknight> hello what is the difference between short_by and order_by in ruby?
<kknight> anyone there?
kknight has quit [Client Quit]
<al2o3-cr> that was short and sweet
kknight has joined #ruby
<kknight> what is the difference between sort by and order_by in ruby?
koooge has quit [Quit: Leaving...]
pawnbox has quit [Remote host closed the connection]
<jhass> kknight: order_by is not a core ruby method
jolamb_ is now known as jolamb
<norc> kknight: sort_by comes form Enumerable, the other one is not core.
<norc> Doh
domgetter has joined #ruby
hahuang61 has joined #ruby
<kknight> there order_by is given
<norc> kknight: That one is a method from ActiveRecord which is part of rails.
<jhass> and it's called order, not order_by
<norc> kknight: And it produces a query that uses "ORDER BY" from SQL.
eljimmy has joined #ruby
<kknight> norc: but while making app it does samr thing?
<norc> kknight: No they do not.
<kknight> then?
pawnbox has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
<norc> kknight: One is for sorting an Enumerable collection, and the other one is a magic method from ActiveRecord.
<jhass> kknight: they really aren't all that similar, but to generalize, order does the sorting in the database, sort_by does the sorting in your ruby process
synthroid has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> but they don't even take comparable arguments
<jhass> or are available in many comparable places
WonyoungJu has joined #ruby
rkoller has joined #ruby
WonyoungJu has quit [Client Quit]
jschoolcraft has joined #ruby
flashpoint9 has joined #ruby
allcentury has joined #ruby
pawnbox_ has joined #ruby
gooodroot has joined #ruby
jas02 has quit [Quit: jas02]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hanmac lol
* hanmac votes for kicking users into the #rubyonrails channel if they don't go them selves ;P
pawnbox has quit [Ping timeout: 258 seconds]
DaniG2k has quit [Ping timeout: 244 seconds]
goodroot has quit [Ping timeout: 260 seconds]
<shevy> haha
<shevy> guess the IRC protocol did not specify that
sepp2k has joined #ruby
DaniG2k has joined #ruby
mleung has joined #ruby
<domgetter> But hanmac, it was an activerecord question, not a rubyonrails question! /s
chouhoulis has joined #ruby
<hanmac> maybe but the chance is that its answerd in the rails channel is higher
edavis_ has quit [Quit: Leaving]
<hanmac> also most of the new users doesnt understand that ruby != rails
chouhoulis has quit [Remote host closed the connection]
<norc> hanmac: And that is their biggest problem, because rails is just ruby...
<norc> hanmac: You see that when people use "Concerns" to solve mixin problems because they do not know how include works.
chouhoulis has joined #ruby
<hanmac> thats the reasons why i hate apidock
<norc> Or when people misunderstood autoloading for "rails has magical naming conventions"
vikaton has joined #ruby
<domgetter> Concerns Considered Concerning
hahuang61 has quit [Ping timeout: 252 seconds]
no_gravity has quit [Quit: leaving]
karmatr0n has joined #ruby
DaniG2k has quit [Ping timeout: 252 seconds]
duoi has quit [Ping timeout: 250 seconds]
diegoaguilar has joined #ruby
<norc> domgetter: The day I learned about default assignee and singleton classes was when everything about modules and methods become so apparent. :)
GodFather has quit [Ping timeout: 244 seconds]
<norc> and default definee.
ElFerna has quit [Ping timeout: 240 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
duoi has joined #ruby
lessless has joined #ruby
blockchan1 has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jas02 has joined #ruby
DTZUBDUB has joined #ruby
babblebre has joined #ruby
DylanJ has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
jerematic has joined #ruby
tatsuo has joined #ruby
tk__ has joined #ruby
hutch34 has joined #ruby
joonty has joined #ruby
<domgetter> I know what an assignee is in contract law, but not in Ruby. Do you have a resource I can read up on? I just grepped for it in Metaprogramming Ruby and nothing came up.
malconis has joined #ruby
jerematic has quit [Ping timeout: 240 seconds]
DTZUBDUB has quit [Ping timeout: 276 seconds]
qasaur has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
<norc> domgetter: when you type "def foo; end" the default assignee is the object that receives the method
<norc> (Since you are not specifying it explicitly by way of: def self.foo; end)
deadnull_ has joined #ruby
fmcgeough has joined #ruby
malconis has quit [Client Quit]
wolffles has joined #ruby
chouhoul_ has joined #ruby
maletor3 has joined #ruby
craigp has joined #ruby
benlieb has quit [Quit: benlieb]
d0lph1n98 has joined #ruby
craigp has quit [Client Quit]
craigp has joined #ruby
giz|work has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
craigp has quit [Remote host closed the connection]
c0mrad3 has joined #ruby
craigp has joined #ruby
CJKinni` has joined #ruby
wolffles has quit [Quit: wolffles]
maletor3 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
DaniG2k has joined #ruby
Caerus is now known as Caerus|Away
craigp has quit [Client Quit]
ramortegui has joined #ruby
gagrio has quit [Ping timeout: 250 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
dcluna has joined #ruby
<norc> That is where I acquired the term "default definee"
craigp has joined #ruby
hk238 has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
duckpuppy has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
cemerick has joined #ruby
<shevy> sounds weird
platzhirsch has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
<shevy> is there any semi-official timeline for ruby 3.0 ?
ChiefAlexander has joined #ruby
GodFather has joined #ruby
yqt has joined #ruby
Macaveli_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<domgetter> norc: class Fixnum; alias :oldsum :+; def +(o); if rand < 0.001; 0; else; self.oldsum(o); end; end; end #not evil at all, I promise
ByronJohnson has joined #ruby
floatingpoint has joined #ruby
kgrz has joined #ruby
aegis3121 has joined #ruby
skweek has joined #ruby
wilsonc91 has joined #ruby
zotherstupidguy has quit [Ping timeout: 258 seconds]
blaxter has quit [Quit: foo]
ChiefAlexander has quit [Quit: Leaving...]
sebstrax has joined #ruby
spyder55 has quit []
hahuang61 has quit [Ping timeout: 252 seconds]
kgrz has quit [Ping timeout: 260 seconds]
gagrio has joined #ruby
ekinmur has joined #ruby
centrx has quit [Quit: centrx]
TheHodge has joined #ruby
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CJKinni` has quit [Read error: Connection reset by peer]
goooodroot has joined #ruby
D30 has quit [Quit: D30]
freerobby has joined #ruby
ChiefAlexander has joined #ruby
kknight has quit [Remote host closed the connection]
gooodroot has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
platzhirsch has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
GinoManWorks has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 244 seconds]
agit0 has quit [Ping timeout: 276 seconds]
David_H__ has quit [Ping timeout: 276 seconds]
David_H_Smith has joined #ruby
flughafen_ has joined #ruby
Yiota has joined #ruby
karmatr0n has joined #ruby
karmatr0n has quit [Read error: No route to host]
karmatr0n has joined #ruby
ldnunes has joined #ruby
centrx has joined #ruby
Vingador has joined #ruby
kies has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
mikecmpb_ has joined #ruby
wolffles has joined #ruby
jas02 has quit [Quit: jas02]
d0lph1n98 has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramortegui has quit [Quit: Ex-Chat]
JesseH has quit [Quit: Leaving]
mleung has quit [Quit: mleung]
jas02 has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wilsonc91 has joined #ruby
Es0teric has joined #ruby
freerobby has joined #ruby
palms has joined #ruby
skweek has joined #ruby
maletor3 has joined #ruby
D30 has joined #ruby
D30 has quit [Client Quit]
Mon_Ouie has joined #ruby
<flughafen_> good day fellow ruby enthuiasts
kies has joined #ruby
cemerick has quit [Quit: Leaving]
<shevy> ah ah ah berlin is in the house!
blockchan has joined #ruby
DaniG2k has quit [Quit: leaving]
freerobby has quit [Ping timeout: 264 seconds]
frem_ has joined #ruby
wilsonc91 has quit [Read error: Connection reset by peer]
maletor3 has quit [Ping timeout: 252 seconds]
last_staff has quit [Quit: last_staff]
SilverKey has quit [Quit: Halted.]
tlaxkit has quit [Ping timeout: 258 seconds]
ferr has quit [Quit: WeeChat 1.5]
<adaedra> Is Rational#to_f guaranteed to yield a correct result or is it as bad as standard float operation?
<workmad3> adaedra: it'll convert to a float, which means you have the standard issues with float representation
<jhass> meaning not every rational can be represented as a float
<jhass> accurately at least
<workmad3> adaedra: but if it's the result of a bunch of calculations, it'll be a single possible error, not compounded by multiple errors throughout the calculation
<workmad3> (assuming your calculations were all in Rationals that is)
tk__ has quit [Quit: ばいばい]
<norc> adaedra: Take a look at the implementation of Rational#to_f -> it becomes obvious immediately.
<workmad3> norc: it's also obvious because the rounding errors in floating points are intrinsic to the nature of the representation... some values just can't be represented accurately because they require an infinite expansion
Rodya_ has joined #ruby
<adaedra> but is it ok then to do all calculations as rationals and use a .to_f at the end for storage?
<workmad3> the same is true with decimal representations... e.g. `1/3` can't be represented accurately in decimal
eserror_ has joined #ruby
<norc> adaedra: Sure, but you are still limited to the imprecision of float for that single division at the end.
freerobby has joined #ruby
<norc> adaedra: If you can live with that, then that is fine. Else if you need precision then store the denominator and numerator.
<norc> to_s will do that for you I think
nankyokusei has joined #ruby
kareeoleez has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
<jhass> meaning don't expect r.to_f.to_r == r for all cases
<adaedra> ah
chouhoulis has joined #ruby
lessless has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<adaedra> to_s give the a/b representation, which is bad for display
etehtsea has joined #ruby
etehtsea has quit [Client Quit]
kareeoleez has joined #ruby
etehtsea has joined #ruby
<workmad3> adaedra: how accurate does your calculation result actually need to be?
lightt has joined #ruby
<workmad3> adaedra: most people aren't going to be bothered by a single error that alters your result by 1 part in a million or something
craigp has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 272 seconds]
fenre has quit [Ping timeout: 272 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
<norc> workmad3: that depends on your employer.. if it happens to be CERN... :-P
<norc> But I guess "most people" covers that
<workmad3> norc: if you're dealing with high-precision finance or scientific calculations, you don't tend to use IEEE floats :P
Rodya_ has quit [Ping timeout: 250 seconds]
<jhass> I think HTML was just fine with IEEE floats
<shevy> yay! regex-precision parsing of HTML!
openstruct has joined #ruby
freerobby has joined #ruby
openstruct has quit [Client Quit]
kgrz has joined #ruby
<adaedra> well, that's monetary data, so I prefer limit losses at a maximum
<norc> adaedra: Is the "storage" the actual visual representation? If not, you can just save it as a fraction and just create a Float whenever your application needs to display it.
freerobby has quit [Ping timeout: 240 seconds]
kgrz has quit [Ping timeout: 272 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
<shevy> adaedra are you building up to some riches here
hutch34 has joined #ruby
<workmad3> adaedra: unless you need sub-penny precision, the typical way to deal with money is to deal in integers btw
<agent_white> Mornin'
<shevy> value every cent!
Mon_Ouie has quit [Ping timeout: 260 seconds]
<workmad3> (even if you need sub-penny, you tend to deal in integers for precision, just your integer is tenths or hundreths of a penny/smallest unit instead)
<shevy> penny ...
SilverKey has joined #ruby
<adaedra> workmad3: I didn't think about it this way
scepticulous has quit [Ping timeout: 252 seconds]
<workmad3> adaedra: that's what the Money gem does for you too ;)
nando293921 has joined #ruby
dcluna has quit [Remote host closed the connection]
<workmad3> shevy: I'm british, we think in pennies :P
<adaedra> I see
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> That's another approach, thanks for the insight
<norc> workmad3: That is also the only clean way to store monetary data in a database for example, since it automatically solves all "dollar <> cent" conversion issues that might arise, since it is just a representational matter.
<workmad3> adaedra: you can also use BigDecimal numbers for your financial calculations, which can store all your 2dp numbers without loss of precision :)
<workmad3> norc: you can use :decimal in the database too, which will be fine unless you hit a really weird edge-case
damireh has joined #ruby
<adaedra> that's what the DB returns us yes, but I was using Rational because to_r :p
<workmad3> adaedra: why not just leave it as a BigDecimal then? ;)
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
aganov has quit [Remote host closed the connection]
<adaedra> Because I work on other sources having them stored otherwise
<damireh> Hello
<damireh> and was wondering if anyone can help me understand why theyre freezing the VERSION constant?
tlaxkit has joined #ruby
<workmad3> damireh: so code that inadvertantly changes the string in-place will throw errors
<shevy> would this be the same as adding "# frozen_string_literal: true" on top?
SilverKey has quit [Quit: Halted.]
<damireh> workmad3 ahh makes sense thanks!
damireh has quit [Quit: Textual IRC Client: www.textualapp.com]
jas02 has quit [Quit: jas02]
tlaxkit has quit [Ping timeout: 276 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
anisha_ has quit [Quit: Leaving]
freerobby has joined #ruby
nando293921 has quit [Ping timeout: 252 seconds]
jnoob22 has quit [Quit: Leaving]
hutch34 has joined #ruby
norc has quit [Ping timeout: 250 seconds]
chipotle has quit [Ping timeout: 250 seconds]
eserror_ has quit [Ping timeout: 250 seconds]
troulouliou_div2 has joined #ruby
eserror has joined #ruby
hk238 has joined #ruby
ishe_ua has quit [Remote host closed the connection]
spyder55 has joined #ruby
damireh has joined #ruby
deadnull_ is now known as _deadnull
gtsai has joined #ruby
DTZUBDUB has joined #ruby
smathy has joined #ruby
polishdub has joined #ruby
_deadnull is now known as deadnull_
rkazak has joined #ruby
gtsai has quit [Ping timeout: 250 seconds]
eserror has quit [Ping timeout: 246 seconds]
jnoob22 has joined #ruby
Spami has joined #ruby
gtsai has joined #ruby
duckpupp2 has joined #ruby
eserror has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
DTZUBDUB has quit [Ping timeout: 272 seconds]
synthroid has quit [Remote host closed the connection]
duckpuppy has joined #ruby
JesseH has joined #ruby
flughafen_ has quit [Ping timeout: 276 seconds]
maletor3 has joined #ruby
c0mrad3 has quit []
benlieb has quit [Quit: benlieb]
duckpupp2 has quit [Ping timeout: 260 seconds]
Vingador has quit [Ping timeout: 240 seconds]
ljames has quit []
blockchan has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
TomyLobo has joined #ruby
duckpuppy has quit [Ping timeout: 252 seconds]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
chipotle has joined #ruby
Xzanron has quit [Quit: Leaving]
jancel has joined #ruby
SilverKey has joined #ruby
maletor3 has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 244 seconds]
gtsai has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 258 seconds]
SilverKey has quit [Client Quit]
duckpupp1 has joined #ruby
kareeoleez has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 264 seconds]
tjohnson has joined #ruby
duckpupp2 has joined #ruby
gtsai has joined #ruby
bruce_lee has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 244 seconds]
ChiefAlexander has joined #ruby
SilverKey has joined #ruby
damireh has quit [Quit: Textual IRC Client: www.textualapp.com]
Rodya_ has joined #ruby
saneax is now known as saneax_AFK
GodFather has joined #ruby
Yiota has joined #ruby
gtsai has quit [Ping timeout: 260 seconds]
gtsai_ has joined #ruby
giz|work has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
synthroid has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
gtsai_ has quit [Ping timeout: 240 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
jimbeaudoin has joined #ruby
rodfersou is now known as rodfersou|lunch
binaryplease1 has joined #ruby
binaryplease1 has quit [Client Quit]
binaryplease1 has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
craigp has joined #ruby
JJM has quit [Disconnected by services]
harfangk has quit [Quit: harfangk]
harfangk has joined #ruby
skolman_ has joined #ruby
tvw has joined #ruby
mark_66 has quit [Remote host closed the connection]
lessless has quit [Quit: Textual IRC Client: www.textualapp.com]
GarethAdams has joined #ruby
panpainter has joined #ruby
cielf has joined #ruby
nando293921 has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
ole_123456 has quit [Quit: bye]
aegis3121 has joined #ruby
Tranquility has joined #ruby
MrBusiness3 has joined #ruby
r4z3r has quit [Max SendQ exceeded]
r4z3r has joined #ruby
jaruga___ has quit [Quit: jaruga___]
JJM has joined #ruby
enty has joined #ruby
<enty> hi
Tranquility has left #ruby [#ruby]
JJM is now known as Guest25591
<enty> I've been trying to install a gem with gem install but it depends on other gems which are way too new and won't work on my system
etehtsea has quit [Quit: Computer has gone to sleep.]
<aegis3121> Try installing an older version that may not have that problem?
hxegon_afk is now known as hxegon
Guest25591 has quit [Client Quit]
<enty> I tried installing those gems from the debian package repository but gem still tries to install the new version from the gem server
JJM_ has joined #ruby
<enty> can I persuade it somehow to use the locally installed version from the debian repos?
lxsameer has joined #ruby
<jhass> it most likely does that because the gem you're trying to install actually does depend on newer versions than available on your system
<adaedra> don't mix gems from repos and rubygems, it's just asking for trouble
<jhass> enty: which gem, which ruby version?
MrBusiness2 has quit [Ping timeout: 272 seconds]
jancel has quit [Remote host closed the connection]
<enty> ruby 1.8, mogbak
<jhass> and just to have it spoken out, how did you install ruby?
kgrz has joined #ruby
GinoManWorks has joined #ruby
<jhass> yeah finding support for 1.8 in the community is increasingly impossible
<jhass> (which is a good thing)
SilverKey has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
SilverKey has quit [Client Quit]
<adaedra> It belongs in a museum!
<adaedra> (sorry)
etehtsea has joined #ruby
elaptics is now known as elaptics`away
spyder55 has quit []
prooftechnique_ has quit [Quit: ZNC http://znc.in]
synthroid has quit [Remote host closed the connection]
prooftechnique has joined #ruby
jancel has joined #ruby
<jhass> enty: so, oldoldstable?
<jhass> stable has 2.1, oldstable has 1.9
einarj has quit [Remote host closed the connection]
<enty> yes, we're trying to get away from it
<enty> oldoldstable has 1.9 as well, but mogbak was last modified in 2011 so I figured I would not need it
mdw has quit [Quit: Sleeping Zzzzz]
<enty> oh, hm, they say they test against 1.9
<enty> guess I'll install 1.9 then
brendan-_ has joined #ruby
Rasi has quit [Quit: WeeChat 1.5]
raeoks has joined #ruby
brendan-_ is now known as brendan-
Rasi has joined #ruby
harfangk has quit [Quit: harfangk]
jrafanie has joined #ruby
harfangk has joined #ruby
<jhass> yes 1.8 is actually a decade old by now
<jhass> 1.9 is officially EOL
<jhass> 2.0 is officially EOL even
<ytti> in reality you must support what current stable-1 distribution is supporting
<ytti> otherwise users will be butthurt
lightt has quit [Ping timeout: 276 seconds]
<ytti> people were complaining to me, because i'm using slop3 on my project
<ytti> that i have to change it to slop4, so that they can package it to debian
<ytti> so we're victim of 90s package manager designs
diegoviola has joined #ruby
<ytti> and instead of debian peeps being sensible and package slop3 and slop4, they seem to insist other people need to move to slop4
mdw has joined #ruby
<enty> look, I know these are old releases, I just want gem to use the locally installed version anyway
cajone has quit [Remote host closed the connection]
<enty> is there a way, yes or no?
etehtsea has quit [Quit: Computer has gone to sleep.]
<enty> you can't talk me out of this because i have people sitting behind me poking me with pitchforks and telling me to get it over with already
<enty> ideally I'd use ruby 2.3 as well, or whatever shiny new version is shiny and new
<enty> but on top of that, there have been no commits to mogbak since 2011 so it's pretty much depending on EOL ruby versions anyway, I guess, or is at least untested with anything newer
<enty> their github says they test against 1.9
cajone has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
maletor3 has joined #ruby
blaxter has joined #ruby
dumdedum has joined #ruby
etehtsea has joined #ruby
<jhass> 1.9 it is then what you should be using, thought we established that
<smathy> Thankfully people came up with better, simpler ways to keep your ruby versions up to date than relying on the distro package manager.
jancel has quit [Remote host closed the connection]
maletor3 has quit [Ping timeout: 252 seconds]
t1mxg0d has joined #ruby
jancel has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
weckl has quit [Quit: Leaving]
jancel has quit [Remote host closed the connection]
norc has joined #ruby
chipotle has quit [Quit: cheerio]
mdw has quit [Quit: Sleeping Zzzzz]
nando293921 has quit [Ping timeout: 276 seconds]
johnmilton has quit [Remote host closed the connection]
hahuang61 has joined #ruby
kedare has quit [Quit: Leaving]
aegis3121 has quit [Ping timeout: 276 seconds]
lightt has joined #ruby
synthroid has joined #ruby
Couch has quit [Ping timeout: 260 seconds]
bobbycvi has quit [Quit: ...]
synthroid has quit [Read error: Connection reset by peer]
gooooodroot has joined #ruby
cd83x has quit [Remote host closed the connection]
synthroid has joined #ruby
whathappens has joined #ruby
nankyokusei has joined #ruby
Mon_Ouie has joined #ruby
certainty has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amclain has joined #ruby
RobertBirnie has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
goooodroot has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
tildes_ has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 260 seconds]
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 260 seconds]
elifoster has joined #ruby
flughafen_ has joined #ruby
weemsledeux has joined #ruby
certainty has quit [Ping timeout: 272 seconds]
agit0 has joined #ruby
mistermocha has joined #ruby
agit0 has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0lph1n98 has joined #ruby
SCHAAP137 has joined #ruby
mdw has joined #ruby
Snowy has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
senayar has quit []
GodFather has quit [Ping timeout: 244 seconds]
ncthom91 has joined #ruby
Spami_ has joined #ruby
Eiam has joined #ruby
Spami has quit [Ping timeout: 276 seconds]
rodfersou|lunch is now known as rodfersou
GodFather has joined #ruby
enty has left #ruby ["alright then"]
babblebre has quit [Quit: Connection closed for inactivity]
skweek has quit [Ping timeout: 250 seconds]
wrkrcoop has joined #ruby
<wrkrcoop> im trying to use the Savon gem to make an xml request
malconis has joined #ruby
nankyokusei has joined #ruby
<wrkrcoop> im getting a 400 error, anyone able to take a look at my request code and see if there’s anything wrong with syntax? https://gist.github.com/anonymous/0955414d62d050b22771308a47389ab3
flughafen_ has quit [Ping timeout: 246 seconds]
<jhass> plain 400 is usually an authorization or authentication issue
<norc> 400 means malformed input
<norc> 401/403 are used for authentication/authorization issues
<jhass> oh right, was at 403 for some reason :/
<norc> wrkrcoop, wireshark the output, see if the XML is well formed.
<wrkrcoop> yeah now getting ‘malformed SOAP message
<wrkrcoop> saying a namespace elment is not bound …
<norc> There you go.
<wrkrcoop> but i have the namespaces hash
platzhirsch has quit [Ping timeout: 276 seconds]
antgel has quit [Ping timeout: 276 seconds]
<jhass> it's obfuscated enough that nobody will be able to help you on that level
<jhass> given even trying to spot missing elements or typos is completely pointless here
<wrkrcoop> damn
<wrkrcoop> i can’t image there’s a typo ..
<wrkrcoop> thanks ill check though
andikr has quit [Remote host closed the connection]
sneakerh_ has joined #ruby
d0lph1n98 has quit [Ping timeout: 250 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
Dimik has joined #ruby
sneakerh_ is now known as sneakers
cielf has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: centrx]
wrkrcoop has quit [Quit: wrkrcoop]
pietr0 has joined #ruby
wrkrcoop has joined #ruby
mikecmpb_ has quit [Ping timeout: 244 seconds]
[Butch] has joined #ruby
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
hutch34 has joined #ruby
gtsai has joined #ruby
wrkrcoop has quit [Client Quit]
binaryplease1 has quit [Ping timeout: 276 seconds]
Spami_ has quit [Quit: Leaving]
dcluna has joined #ruby
Vingador has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
riddley has quit [Remote host closed the connection]
djbkd has joined #ruby
tatsuo has quit [Remote host closed the connection]
harfangk has quit [Quit: harfangk]
yqt has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
DTZUBDUB has joined #ruby
pilne has joined #ruby
wrkrcoop has joined #ruby
johnmilton has joined #ruby
shinnya has joined #ruby
mwlang has joined #ruby
tatsuo has joined #ruby
finisherr has joined #ruby
DTZUBDUB has quit [Ping timeout: 240 seconds]
last_staff has quit [Ping timeout: 244 seconds]
nankyoku_ has joined #ruby
ramfjord has joined #ruby
moeabdol1 has joined #ruby
johnmilton has quit [Ping timeout: 252 seconds]
N1njturt1e has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
maletor3 has joined #ruby
choke has joined #ruby
zotherstupidguy has joined #ruby
mleung has joined #ruby
N1njturt1e has quit [Ping timeout: 250 seconds]
darkxploit has quit [Ping timeout: 252 seconds]
inukshuk_ has joined #ruby
giz|work has quit [Ping timeout: 258 seconds]
hahuang61 has joined #ruby
tatsuo_ has joined #ruby
centrx has quit [Quit: centrx]
maletor3 has quit [Ping timeout: 244 seconds]
inukshuk_ has quit [Client Quit]
maletor3 has joined #ruby
tatsuo has quit [Read error: Connection reset by peer]
finisherr_ has joined #ruby
aegis3121 has joined #ruby
joonty has joined #ruby
maletor3 has quit [Client Quit]
finisherr has quit [Ping timeout: 240 seconds]
finisherr_ is now known as finisherr
finisherr has quit [Client Quit]
johnmilton has joined #ruby
<wrkrcoop> im trying to make a request with the Savon gem, and I’m getting a ‘Savon::SOAPFault: (SOAP-ENV:Server) This is an operation implementation generated fault’ https://gist.github.com/anonymous/39175621ad309bc200f52cc7a296cfda
gregf has quit [Quit: WeeChat 1.5]
GodFather has quit [Ping timeout: 244 seconds]
aegis3121 has quit [Ping timeout: 260 seconds]
DTZUBDUB has joined #ruby
aegis3121 has joined #ruby
weaksauce has joined #ruby
certainty has joined #ruby
mdw_ has joined #ruby
darkxploit has joined #ruby
soroot has joined #ruby
gtsai has quit [Remote host closed the connection]
<soroot> #join #mvim
madgen has joined #ruby
mdw has quit [Ping timeout: 272 seconds]
gtsai has joined #ruby
Coldblackice has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
firstdayonthejob has joined #ruby
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
certainty has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 250 seconds]
gtsai has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 272 seconds]
soroot has quit [Quit: WeeChat 1.5]
blockchan has joined #ruby
soroot has joined #ruby
qasaur has joined #ruby
norc has quit [Ping timeout: 272 seconds]
crystal77 has joined #ruby
Wolland has joined #ruby
raeoks has joined #ruby
Rasi has quit [Quit: WeeChat 1.5]
Rasi has joined #ruby
raeoks has quit [Client Quit]
raeoks has joined #ruby
blockchan has quit [Quit: blockchan]
centrx has joined #ruby
soroot has quit [Quit: WeeChat 1.5]
minimalism has joined #ruby
blockchan has joined #ruby
moeabdol2 has joined #ruby
jrafanie has joined #ruby
dumdedum has quit [Quit: foo]
moeabdol1 has quit [Ping timeout: 244 seconds]
chouhoul_ has joined #ruby
gtsai has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
jrafanie has quit [Client Quit]
chouhou__ has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
chouhoulis has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
<Eiam> I constantly have resque jobs that just get stuck. It's driving me nuts. Any suggestions for how to either 1)debug the issue or 2) make resque not let the workers run for days after they are complete?
<Eiam> all I see are posts about how to clear them and unstick them. I don't want to clear them and unstick them, I want them to stop doing that.
gtsai has quit [Ping timeout: 240 seconds]
diegorv has joined #ruby
diegorv has quit [Changing host]
diegorv has joined #ruby
chouhoul_ has quit [Ping timeout: 250 seconds]
gregf has joined #ruby
lxsameer has joined #ruby
<jhass> I guess spawn a thread that crashes the process after n seconds to get a ruby vm dump
<jhass> or attach an strace or even a full debugger (lldb, gdb)
sebstrax has quit [Quit: Connection closed for inactivity]
<Eiam> it happens in heroku
<Eiam> (like instance)
<Eiam> so no attaching
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eiam> jhass: so a secondary watchdog thread basically
<jhass> well, get a dump of everything and replicate?
<Eiam> jhass: the jobs run every 5 minutes on 10 different workers. once or twice a day, one worker hangs
<Eiam> but that means that thousands and thousands of times the jobs complete
<wrkrcoop> im getting an error that says ‘ns0 must be followed by either attribute specifications, “>” or “/>” does that mean “ns0>”: “…”
madgen has quit [Ping timeout: 240 seconds]
kgrz has quit [Ping timeout: 258 seconds]
centrx has quit [Quit: centrx]
<Eiam> I'd do it on ONE worker, but chances are its goin to get hung and then everything is dead
<Eiam> which is why I have so many workers, to account for them randomly hanging until I can kill them all and restart
<Eiam> does no one else have this issue with resque? maybe im doing somethign wrong
karthikselva has joined #ruby
demophoon is now known as bgresham
bgresham is now known as demophoon
symm- has joined #ruby
<Eiam> 'I created a worker that kills my hung workers'
* Eiam looks for duct tape and a "there I fixed it' sign
pietr0 has quit [Quit: pietr0]
duoi has quit [Ping timeout: 250 seconds]
fiifi has joined #ruby
<Eiam> jhass: how do you notice a failure to do the dump?
<Eiam> (to try and replicate)
<Eiam> I'm not convinced (for once...) that its my code thats failing to execute, but some PID/process mangaement thats just derping out
<Eiam> (mostly because the resulting "work" of each job seems to always complete, the job just never decides its done?)
<jhass> perhaps time to switch to sidekiq after all?
<Eiam> each job registers data into the DB when its finished (As its last line of code), and I can see those updated when a worker is hung
<Eiam> haha
<Eiam> a different kind of duct tape solution
floatingpoint has joined #ruby
<jhass> if you suspect resque is the culprit, not at all
<jhass> also probably will save you some money actually
<Eiam> says its drop in
flashpoint9 has quit [Remote host closed the connection]
<Eiam> not what I planned on doing this monday but what the hell
duoi has joined #ruby
<jhass> biggest issue is that you code needs to be thread safe
<smathy> Well, sidekiq also has better error visibility.
<Eiam> jhass:each worker starts a DB transsaction and locks the table while it does its work
<Eiam> but in an ideal world, I'd prefer to have ONE worker
<Eiam> I just can't because they always get f'ing hung
<Eiam> one worker, one job.
<jhass> do some plain old ruby and use redis directly?
<fiifi> hello
<havenwood> fiifi: hi
floatingpoint has quit [Client Quit]
<jhass> Eiam: loop do; Job.new(Redis.fetch_job).run; end
<fiifi> hello havenwood
giz|work has joined #ruby
<fiifi> new here need some help
wolffles has quit [Quit: wolffles]
<jhass> nah I mean without sidekiq, resque or any form of concurrency at all then
<fiifi> am new to ruby need nuturing
<Eiam> ah
<Eiam> fiifi: ask the question
j3r0 has joined #ruby
<fiifi> kk
<fiifi> what are symbols in ruby?
<Eiam> fiifi: constant strings
<jhass> identifying values
<jhass> in doubt use a string
<fiifi> kk
diegorv has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Eiam> jhass: hah, your answer was more useful than mine
mdw_ is now known as mdw
blackjid has quit [Max SendQ exceeded]
domgetter has quit [Ping timeout: 264 seconds]
blackjid has joined #ruby
JakFrist has joined #ruby
rcvalle has joined #ruby
ramfjord has joined #ruby
Ishido has joined #ruby
qasaur has joined #ruby
moeabdol2 has quit [Ping timeout: 272 seconds]
synthroid has quit []
synthroid has joined #ruby
gtsai has joined #ruby
LoneHermit has joined #ruby
<wrkrcoop> when i make this soap request, i get the following error “(ns0:Receiver) The malformed SOAP message received.Open quote is expected for attribute "xmlns:ns1" associated with an element type "env:Envelope”.” cant find a good answer online explaining what to do, https://gist.github.com/anonymous/fa2eb24a6309e9d9d5a3bb557350a7e5#file-j-rb-L16
centrx has joined #ruby
karthikselva2 has joined #ruby
jackjackdripper has joined #ruby
djbkd has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
antgel has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
<apeiros> wrkrcoop: sounds like either you sent or received invalid xml
duckpupp2 has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 272 seconds]
<apeiros> but hard to tell from the very little context you give.
<wrkrcoop> apeiros: yeah definitely invalid, but i can’t figure out what it wants me to do …
karthikselva has quit [Ping timeout: 260 seconds]
<wrkrcoop> open quote is expected for attribute xmlns:ns1 …
djbkd has joined #ruby
<apeiros> I don't know savon, but "xmlns:ns1 = :.../>" doesn't look like it was part of how to build valid xml
LoneHermit has quit [Ping timeout: 272 seconds]
<wrkrcoop> yeah but i was getting an error and it said you need /> then it said you need “ = “ now im getting this error
<apeiros> IMO: find a way to get the raw xml which you build in your client.call. I wouldn't be surprised if the problem became obvious through that.
Yiota has quit [Ping timeout: 260 seconds]
<apeiros> aha, so you question above was related to xml… you do realize that you gave absolutely no helpful context in that question?
karthikselva2 has quit [Ping timeout: 252 seconds]
<wrkrcoop> i did not
[Butch] has quit [Quit: I'm out . . .]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jschoolcraft has quit [Quit: peace]
TheHodge has quit [Quit: Connection closed for inactivity]
flashpoint9 has joined #ruby
<apeiros> wrkrcoop: I see jhass already told you that the context you provide is insufficient. so I guess me telling you again won't change anything. good luck.
antgel has quit [Ping timeout: 258 seconds]
<wrkrcoop> i think the problem is with my nested attributes ..
haraigo has quit [Ping timeout: 250 seconds]
certainty has joined #ruby
whathappens has quit [Remote host closed the connection]
JakFrist has quit [Read error: Connection reset by peer]
etehtsea has quit [Ping timeout: 276 seconds]
antgel has joined #ruby
whathappens has joined #ruby
Yiota has joined #ruby
karthikselva has joined #ruby
certainty has quit [Ping timeout: 258 seconds]
tildes_ has quit [Ping timeout: 272 seconds]
whathappens has quit [Ping timeout: 250 seconds]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcluna has quit [Remote host closed the connection]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
k3rn31 has joined #ruby
<fiifi> thanks eiam
centrx has quit [Quit: centrx]
spider-mario has joined #ruby
Gasher has joined #ruby
<fiifi> exit
<fiifi> exit
fiifi has quit [Quit: leaving]
dcluna has joined #ruby
[Butch] has joined #ruby
qasaur has joined #ruby
qasaur has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
nankyoku_ has quit [Remote host closed the connection]
M-Techni1 is now known as M-Technic
karthikselva has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
duckpupp1 has joined #ruby
djbkd has joined #ruby
karthikselva has joined #ruby
madgen has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
choke has joined #ruby
nankyokusei has joined #ruby
arlek has joined #ruby
duckpupp1 has quit [Read error: Connection reset by peer]
nankyokusei has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 250 seconds]
MrBusiness2 has joined #ruby
duckpupp1 has joined #ruby
nankyokusei has joined #ruby
nikger has joined #ruby
<nikger> what is the best vimrc config for rails dev?
whathapp_ has joined #ruby
<shevy> ban in 3 ... 2 ... 1 ...
<apeiros> !nick nikger
<nikger> ?
* apeiros kicks ruby[bot]
nikger was kicked from #ruby by apeiros [bad nick]
whathapp_ has quit [Read error: Connection reset by peer]
<apeiros> aha, that one it recognizes? half a botsnack for you. but only half.
whathappens has joined #ruby
<adaedra> shevy: once again, better do !ops and let go.
<apeiros> oh… !badnick, not !nick
lightt has quit [Remote host closed the connection]
<apeiros> shame on me. no snack for me :<
cschneid has joined #ruby
<adaedra> ?snackpeiros
<ruby[bot]> adaedra: I don't know anything about snackpeiros
<apeiros> good thing I still get dinner :D
tildes_ has joined #ruby
MrBusiness3 has quit [Ping timeout: 258 seconds]
<apeiros> and yeah, shevy, please just do !ops (+ nickname of offender if channel is busy), we'll figure the rest :)
k3rn31 has quit [Quit: Computer has gone to sleep.]
<apeiros> oh… shevy is not identified - no !ops for them :-/
yqt has joined #ruby
<shevy> :(
<shevy> good old ruboto ...
arlek has quit [Ping timeout: 250 seconds]
multi_io has quit [Ping timeout: 240 seconds]
centrx has joined #ruby
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
multi_io has joined #ruby
centrx has quit [Client Quit]
kitallisii is now known as kitallis
k3rn31 has joined #ruby
sumobob has joined #ruby
choke has joined #ruby
jerematic has joined #ruby
mdw has quit [Quit: cya! http://www.somerobots.com]
mebus has joined #ruby
<mebus> Hi Does "Installing nokogiri 1.6.6.2 with native extensions" always take forever?
<apeiros> no, last time it took 3min less than forever
<mebus> apeiros: so it will take a long time?
<apeiros> on my machine, a minute or two
<adaedra> it has to compile the extension
<smathy> mebus, it takes about 3 seconds longer than whatever period of time you ^Ced it.
<mebus> smathy: I think it has been running for at least 15 minutes now.
<apeiros> grrrr, ChanServ stole my wizard hat :(
<adaedra> nope, it's me, you needed it?
<smathy> mebus, definitely long, but not unheard of depending on your machine specs and load.
<adaedra> mebus: look a process monitor, does it do anything?
<mebus> It's running on a Xeon CPU with 4 cores and almost 3 GHz.
<apeiros> $ time gem install nokogiri -> real1m5.159s
<shevy> mebus yes I have that sometimes, also with nokogiri strangely enough
<shevy> another weird gem is sinatra, sometimes it hangs
<smathy> mebus, won't mean much if you're out of physical ram.
<apeiros> just tried
<mebus> cpu load is about 20% now
<mebus> why can't this shit give me any feedback?
<apeiros> that's a quad-core i7 @ 4ghz with 32GB ram
u0_a134 has joined #ruby
<adaedra> 32GB
N1njturt1e has joined #ruby
<adaedra> now we're talking.
<mebus> it's using 400 MB of 4 GB RAM.
<u0_a134> hello
<adaedra> hi
<mebus> plenty of ram.
<mebus> what can I do?
<shevy> whoa
<adaedra> Use Oga.
<mebus> ?
<shevy> 32GB
jrafanie has joined #ruby
<mebus> I have another 48 GB here, if it needs more RAM :-/
<apeiros> hm, seems to be mainly IO constrained
<apeiros> CPU and memory are barely touched
jancel has joined #ruby
<jhass> compilation often is
u0_a134 is now known as fiifi
<jhass> boot your entire system into a ramdisk \o/
gtsai has quit [Remote host closed the connection]
<mebus> jhass: i will let it run for one more hour.
karmatr0n has joined #ruby
FroMaster has quit [Read error: Connection reset by peer]
<jhass> mebus: it is still consuming CPU though?
tildes_ has quit [Ping timeout: 246 seconds]
<fiifi> when can one use symbols?
<mebus> jhass: yes.
<jhass> mh, okay
<apeiros> fiifi: when you identify things
<jhass> nokogiri often compiles libxml2 these days, but it usually shouldn't take that long :/
<apeiros> fiifi: especially anything within your ruby code (instance variables, method names)
<mebus> jhass: actually I installed libxml2 in ubuntu.
<jhass> doesn't matter :)
<apeiros> aren't there config options to let it use the system libxml2?
watersoul has quit [Remote host closed the connection]
SDr has quit [Remote host closed the connection]
watersoul has joined #ruby
<jhass> yeah
SDr has joined #ruby
<mebus> I installed "1.6.7.2" in Ubuntu, why is it compiling "1.6.6.2" then?
<jhass> but iirc ubunutus is too old
heftig has quit [Read error: Connection reset by peer]
palms has quit [Ping timeout: 252 seconds]
<jhass> or too new :P
<mebus> no, the ubuntu's one is atually newer.
xue has joined #ruby
<jhass> something something version
<mebus> strange stuff.
<jhass> nokogiri is pretty strange stuff, yeah
heftig has joined #ruby
<mebus> ah yeah
<mebus> I guess I am set back with not enough information ether.
fiifi has quit [Ping timeout: 252 seconds]
<adaedra> Clever Nokogiri! With the time you just saved, approach enlightenment by meditating on this koan. (http://twitter.com/rjw1/status/2741916767)
<adaedra> (This sentence in the tutorial always amused me.)
ChiefAlexander has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
mikecmpbll has joined #ruby
dcluna has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
dcluna has joined #ruby
<jhass> well https://github.com/sparklemotion/nokogiri/blob/master/STANDARD_RESPONSES.md has the "best" explanation I could find so far "please first understand that you may be asking Nokogiri to work with an unsupported version of libxml2"
Madplatypus has joined #ruby
<jhass> eh copy paste fail
SCHAAP137 has quit [Quit: Leaving]
norc has joined #ruby
ta_ has joined #ruby
<mebus> can i specify the version I want?
ule has quit [Remote host closed the connection]
ule has joined #ruby
<Eiam> jhass: ah, sidekiq is lgpl
blockchan has quit [Ping timeout: 246 seconds]
<Eiam> man, wish I'd read that before I just converted it all
* Eiam does a big fat revert in git
<jhass> well Mike's doing it fulltime
N1njturt1e has quit [Remote host closed the connection]
<Eiam> jhass: for sure, nothing against his choice, just impacts my ability to choose is all
<Eiam> I'm sure someone here is paying for a license, just have to figure out how that would impact me
jancel has quit [Read error: Connection reset by peer]
dane_jones has joined #ruby
Junaos has quit [Ping timeout: 240 seconds]
u0_a134 has joined #ruby
gnufied has quit [Quit: Leaving]
u0_a134 is now known as fiifi
<dane_jones> hey guys. Im practicing an interview. One of the questions is tor return all of the correct traversals of a graph the lead to a certain node. I can do the traversal correctly, but at the end I have a bunch of nested arrays (since each recursive call returns an array of arrays). Is there some way to avoid an array of arrays in questions like these?
mistermocha has quit [Remote host closed the connection]
<toretore> dane_jones: code?
Madplatypus has quit [Ping timeout: 264 seconds]
<havenwood> dane_jones: Gist the question and your stab at it?
drbrain has joined #ruby
Sou|cutter has quit [Ping timeout: 240 seconds]
ule has quit [Ping timeout: 264 seconds]
<fiifi> pls can one help me with an example of the usage of symbols
Snowy has joined #ruby
dane_jones has quit [Client Quit]
electrostat has quit [Ping timeout: 240 seconds]
kenichi has quit [Ping timeout: 240 seconds]
russt has quit [Ping timeout: 240 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> fiifi: "".respond_to?(:size) #=> true
karmatr0n has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Ping timeout: 240 seconds]
haraigo has joined #ruby
gnufied has joined #ruby
papercode has quit [Ping timeout: 240 seconds]
<jhass> :size is a symbol
<apeiros> >> {this: "is", a: "hash", using: "Symbols", as: "keys"}
<ruby[bot]> apeiros: # => {:this=>"is", :a=>"hash", :using=>"Symbols", :as=>"keys"} (https://eval.in/584194)
* smathy can't imagine how LGPL could be a problem for anyone using something like sidekiq
ule has joined #ruby
<apeiros> (alternative notation for symbols in hashes/named arguments)
jancel has joined #ruby
<apeiros> smathy: sometimes it's enough not being a lawyer and thus not knowing how you might misunderstand in which ways the license impacts you
<jhass> well, I can't imagine Mike going after anybody just evaluating whether sidekiq works/improves for them without buying pro first
<smathy> Sure, but to just bail out without asking.
<A124> Is there efficient way to parse large XMLs?
agent_white has quit [Ping timeout: 276 seconds]
<fiifi> ohk getting gradually
<jhass> A124: Oga and Nokogori should both have SAX APIs iirc
<smathy> jhass, you won't get pro until you pay, he'd definitely refund you if you wanted a refund. But it's the free version that I assume Eiam is talking about, it's the one that's LGPLed
deadnull_ is now known as _deadnull
gtsai has joined #ruby
blackmesa has joined #ruby
<A124> jhass SAX, Ogi, got it will take look. 8GB files should be ok I guess. Never heard of Oga, thanks.
<jhass> yeah, I mean even if you would somehow violate the LGPL in your trial
<Eiam> smathy: right, seems straightforward
agent_white has joined #ruby
kenichi has joined #ruby
russt has joined #ruby
certainty has joined #ruby
Junaos has joined #ruby
<fiifi> how about the usage of self keyword
<apeiros> fiifi: you are using some resource to learn ruby, right?
<Eiam> fiifi: this stuff is covered in basic ruby resources
<smathy> Eiam, in case you don't realize, with LGPL you'd only need to redistribute any code that you write as part of sidekiq, the classic example is if you subclass something in sidekiq and alter it. *Using* sidekiq from your own code doesn't require a redistribution of your code.
Vingador has quit [Read error: Connection reset by peer]
<Eiam> smathy: I don't set corporate rules, just get to follow them
ELLIOTTCABLE_ is now known as ELLIOTTCABLE
<apeiros> fiifi: otherwise I'd recommend #new2ruby if you want to learn it through asking on irc
kirun has joined #ruby
Wolland_ has joined #ruby
<smathy> Eiam, oic, fair enough.
<shevy> Eiam seize the power!
<fiifi> kk thanks apeiros
N1njturt1e has joined #ruby
<smathy> ...then yeah, $1000 a year for the commercial license. Which is actually worth it for the batches and crash proofness.
papercode has joined #ruby
<norc> wrkrcoop, ask your SOAP provider. That SOAP error is generated on the far endpoint.
<jhass> and support in debugging obscure "getting stuck" issues ;)
kareeoleez has joined #ruby
<wrkrcoop> norc: thanks
<apeiros> smathy: funny. we have the pro license, but use regular sidekiq :D
Vingador has joined #ruby
gtsai has quit [Ping timeout: 260 seconds]
<apeiros> (got the license mostly due to time constraints, so we could use support if necessary)
electrostat has joined #ruby
jancel has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 250 seconds]
<norc> apeiros, feel free to pass the license around.
<norc> I know someone who could make use of it.
<norc> :o)
<apeiros> can't
<Eiam> smathy: yep. I'm sure someone here is paying for it. matter of finding them, figuring out if that grants me the ability to use it too, or if thats another purchase ors omething,
<apeiros> also we still want that support in case we need it ;-)
certainty has quit [Ping timeout: 272 seconds]
<norc> I'll resell the support.
<Eiam> smathy: there is pretty much no way that NO ONE here is not paying for a pro license
<apeiros> haha
* A124 to apeiros, oh hai
<apeiros> not sure mike would like
mistermocha has joined #ruby
<norc> apeiros, see - it is a new business strategy. I call it "license multiplexing"
<apeiros> ohai A124
<apeiros> norc: you're late to the party ;-)
jancel has joined #ruby
<jhass> oh while at it, y'all seen https://github.com/mperham/sidekiq.cr ? <3 :P
einarj has joined #ruby
<apeiros> we're in fact also using a license reseller…
<apeiros> but that'd be #ot :D
<norc> apeiros, but is your reseller a multiplexing license reseller?
rikkipitt has joined #ruby
<apeiros> norc: I think more the kind of "buy in mass, get it cheaper, resell with a margin"
<norc> I would go for "Buy once and sell twice, buy beer for the margin"
<apeiros> oh, and/or offer license management as added value
<smathy> apeiros, you know that you're just a `source` block in your Gemfile away from the cooler features? :)
<apeiros> smathy: never needed them :)
<apeiros> but yes
<norc> apeiros, oh license management we can do. It's easy since even with 500 customers we just need to manage a single license
<norc> The plan is beautiful.
<norc> apeiros, care if I run the business in your name?
<smathy> apeiros, the better crash protection is something you'll only need after it's too late :)
Sou|cutter has joined #ruby
<smathy> Eiam, gotcha, cool.
Madplatypus has joined #ruby
<smathy> Eiam, FWIW, it's a per server license.
<apeiros> smathy: none of our jobs will have any issues even when crashing in the middle ;-)
<smathy> apeiros, doesn't matter if they don't get run at all?
fiifi has quit [Ping timeout: 244 seconds]
<apeiros> it would. but we notice without automation.
<apeiros> and so far the reason for a broken job was never sidekiq
mistermocha has quit [Read error: Connection reset by peer]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
dmr8 has joined #ruby
<apeiros> 99% of all cases it was "the other side" of a soap/ftp job
mistermocha has joined #ruby
<smathy> Rarely is, but I still like the fact that I never need to worry about losing a job.
<smathy> Oh right, you meant not sidekiq or redis/server/worker-host/etc.
<apeiros> correct
Es0teric has joined #ruby
<smathy> Yeah, I don't remember any part of that infrastructure ever falling over, still nice peace of mind to know that if it ever did I don't have to chase a lost job.
<smathy> (for the price of one line in my Gemfile ;)
<apeiros> I have that peace even without that line ;-)
araujo_ has joined #ruby
tildes_ has joined #ruby
jenrzzz has joined #ruby
ev_ has joined #ruby
tatsuo_ has quit [Quit: Leaving...]
araujo has quit [Ping timeout: 258 seconds]
kiki_lamb has quit [Quit: leaving]
kiki_lamb has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
rikkipitt has quit [Quit: Leaving...]
xue has quit [Ping timeout: 246 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
danostrowski has joined #ruby
jancel has quit [Remote host closed the connection]
<danostrowski> anyone use Sinatra here (possibly on JRuby) and auto-generate API docs from routes? If so, what do you use?
jancel has joined #ruby
madgen has quit [Ping timeout: 272 seconds]
nankyokusei has quit [Remote host closed the connection]
spudowiar has quit [Quit: WeeChat 0.4.3]
madgen has joined #ruby
Wolland_ is now known as Wolland
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spudowiar has joined #ruby
palms has joined #ruby
jancel has quit [Ping timeout: 244 seconds]
jancel has joined #ruby
whathappens has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 272 seconds]
SilverKey has joined #ruby
duckpuppy has joined #ruby
dionysus70 has joined #ruby
ekinmur has joined #ruby
antgel has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
dionysus70 is now known as dionysus69
duckpupp1 has quit [Ping timeout: 240 seconds]
karthikselva has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
goodroot has joined #ruby
karthikselva has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 240 seconds]
GarethAdams has quit [Quit: Leaving...]
Snowy has quit [Remote host closed the connection]
gooooodroot has quit [Ping timeout: 250 seconds]
cd83x has joined #ruby
centrx has joined #ruby
giz|work has quit [Read error: Connection reset by peer]
tildes_ has quit [Ping timeout: 264 seconds]
_deadnull is now known as deadnull_
giz|work has joined #ruby
Gasher has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
jancel has quit [Remote host closed the connection]
N1njturt1e has quit [Remote host closed the connection]
deadnull_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
Pumukel has joined #ruby
duckpuppy has joined #ruby
Stazer has left #ruby ["PART #ruby-de :PING 1465242607"]
kareeoleez has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
boboc has joined #ruby
jimbeaudoin has quit [Quit: Connection closed for inactivity]
lxsameer has joined #ruby
choke has joined #ruby
sumobob has quit [Ping timeout: 258 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
chouhoul_ has joined #ruby
gtsai has joined #ruby
elifoster has quit [Ping timeout: 276 seconds]
j3r0 has quit [Quit: Leaving]
bruce_lee has joined #ruby
palms has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 276 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karthikselva has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
art-solopov has joined #ruby
edmundo has joined #ruby
<edmundo> hello
ChiefAlexander has quit [Remote host closed the connection]
<edmundo> im starting learning ruby on rails, i need a bit welcome, im confused with oauth2 from google
<norc> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<edmundo> i need to fill a form and create an event on google calendar with that
<hxegon> ?rails edmundo
<ruby[bot]> edmundo: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<norc> edmundo, personally Id say stay away from oauth2 until you have an idea how to solve problems with rails.
N1njturt1e has joined #ruby
<edmundo> sorry about that
<norc> and yeah lets continue over there.
<edmundo> i have some knowledge about mvc
TheHodge has joined #ruby
Vingador has quit [Ping timeout: 260 seconds]
<edmundo> join #RubyOnRails
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karthikselva has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
certainty has joined #ruby
diegoviola has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 244 seconds]
fmcgeough has quit [Quit: fmcgeough]
nfk has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
Gasher has joined #ruby
mistermocha has joined #ruby
Wolland has quit [Remote host closed the connection]
ftj has joined #ruby
<wrkrcoop> so im creating 5 threads
<wrkrcoop> and each thread creates an instance of a class
<wrkrcoop> will i need to worry about them overwriting each other?
<wrkrcoop> no write because an instance has its own variables …
<wrkrcoop> no right*
panpainter has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 264 seconds]
sumobob has joined #ruby
codecop has quit [Remote host closed the connection]
cd83x has quit []
<art-solopov> wrkrcoop: If you're creating a variable inside a thread, I guess they wouldn't. But I'd try it out.
<wrkrcoop> art-solopov: like User.new @name shouldn’t be touched by other threads right?
<wrkrcoop> ill try it out just checking
ncthom91 has joined #ruby
<apeiros> only if you share state
jhack has joined #ruby
<apeiros> but your description makes it sound like you don't share any state
<apeiros> *mutable state
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
panpainter has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
mdw has joined #ruby
malconis has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jhack has quit [Client Quit]
N1njturt1e has quit [Remote host closed the connection]
malconis has joined #ruby
giz|work has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
jhack has joined #ruby
<wrkrcoop> im going to make sure i dont sure state
ips|malc has joined #ruby
<norc> wrkrcoop, the problem is you have to make sure that User.new is reentrant (and that requires it and the entire call chain is completely reentrant).
<wrkrcoop> norc: whats reentrant?
<norc> wrkrcoop, the thing that is most often forgotten when talking about thread safety.
<wrkrcoop> norc: so im going to spin up 10 threads, create 10 instances, is that going to be a problem?
karthikselva has quit [Ping timeout: 246 seconds]
<norc> wrkrcoop, that is for you to figure out.
<wrkrcoop> balls
dmr8 has quit [Quit: Leaving]
N1njturt1e has joined #ruby
diegoviola has joined #ruby
<wrkrcoop> reentrance is when threads get joined?
<norc> wrkrcoop, no it is a property of a function/method.
<wrkrcoop> oh
<wrkrcoop> i have a thread that isn’t closing …
<wrkrcoop> makes a http request and doesn’t close ..
<norc> wrkrcoop, a function is said to be reentrant if it can be entered twice before one finishes.
<wrkrcoop> is this a reentrant problem?
<norc> No.
flughafen_ has joined #ruby
danostrowski has joined #ruby
<toretore> wrkrcoop: how about sharing some code?
<wrkrcoop> can’t. work stuff ><
<toretore> (my general advice on threads is don't use threads unless you know what you're doing)
<norc> wrkrcoop, The real problem with reentrancy is that you have to make sure that User.new is reentrant. Then you have to make sure that any method User.new calls is reentrant, and so on until the last C function called.
<norc> wrkrcoop, and then you have to do the same for every single method you use in the thread.
djbkd has quit [Remote host closed the connection]
blackgoat has joined #ruby
ocbtec has quit [Quit: leaving]
<wrkrcoop> norc: but what does it mean to be reentrant
<norc> wrkrcoop, say you have a function like this:
<norc> def foo; $a = $a + 1; end
acidrainfall has joined #ruby
ur5us has joined #ruby
acidrainfall has left #ruby [#ruby]
<wrkrcoop> ok
<norc> wrkrcoop, now this function shares state with other threads, but you dont know about it.
djbkd has joined #ruby
<wrkrcoop> why does it share sate?
<wrkrcoop> $ = global?
<norc> YEs.
<wrkrcoop> oh ok
<norc> Which means if that function is entered by thread a, and then entered by thread b before a completes you can create race conditions.
vikaton has joined #ruby
<ytti> technically that part of code is re-entrant
<norc> ytti, I know, but lets just assume for the sake of the discussion its not.
<norc> ;)
kgrz has joined #ruby
<ytti> it's not idempotent, but it's re-etrant
<ytti> but sure, let's assume it is not
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> why would that be reentrant?
<norc> actually
<ytti> because at any time it is running $a has single value
<norc> asm>> def foo; $a = $a + 1; end
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/584302
<ytti> you can re-enter it, and it change
<ytti> if example was
<ytti> $a = $a+1; p $a
<ytti> it wouldn't be re-etrant
<eam> ytti: I don't think that's true
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
<ytti> you don't know in that code if $a changes doing context switch or not
<ytti> you cannot experience it
<eam> maybe it's true because of the GIL? But if it were C it wouldn't be reentrant
<ytti> even if no GIL
<ytti> it would be re-entrant
<eam> well definitely not then
<ytti> because you only use $a once
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti> in single operation
<eam> are you sure?
<ytti> you can't interrupt yourself within one operation
<wrkrcoop> so … what is reentrant?
<eam> ytti: why not?
<norc> wrkrcoop, in essence reentrancy is a property that says "this function can at any point be interrupted and reentered by another task without things blowing up" ... in a nutshell.
<ytti> re-entrancy is concept of stopping executing of method/function
<ytti> doing somehing else
<norc> wrkrcoop, and you have to make sure this holds true for every single method you use, and every method that each method uses, and so forth.
<eam> or, rather, are you suggesting that $a = $a + 1 is implemented in a single atomic assembly operation?
<ytti> re-entering that method/function, and everything still working grand
<ytti> if we have
<ytti> $a = $a+1; $a
<norc> eam, I just proved that its not.
<ytti> we might be stopping execution after $a=$a+1
<eam> and not a possible combination of loads, stores, fetching, etc?
<ytti> and then re-enter at p $a
<eam> er, adding
<ytti> and at p $a, it might be something else than the original $a was
<ytti> hence it's not re-entrant
<eam> well, neither are (in a GIL free context)
<ytti> but in just def foo; $a = $a + 1; end
<ytti> you're either stoping the execution before calling $a = $a +1 or after it
<ytti> in either case, behaviour is expected
<wrkrcoop> norc: why would you ever want to interput a function?
<norc> eam, either way. If code holds global/static data it is not reentrant. I know that as one of the 3 rules of reentrancy.
<eam> agreed
<ytti> but it's not idempotent, you ca't run it many times, and accept always same result
<norc> wrkrcoop, your computer right now is likely to be running about 1000-3000 threads.
<eam> I'm saying both aren't reentrant :)
<norc> wrkrcoop, on 2-8 CPU Cores.
<toretore> wrkrcoop: you don't; the scheduler does
chouhoul_ has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 260 seconds]
<norc> wrkrcoop, which means your operating system is interrupting threads *all* the time
icarus has joined #ruby
<norc> Millions of times per second.
<toretore> wrkrcoop: threads = anything can be interrupted at any time, you don't know when
<norc> Okay, maybe not that much. But very frequently.
<norc> toretore, that applies to processes too.
<wrkrcoop> ok if i have a User class,
<wrkrcoop> and a method called update name
<wrkrcoop> and i create 10 instances of the class
ChiefAlexander has joined #ruby
<wrkrcoop> each which calls update_name
<wrkrcoop> one
<wrkrcoop> why would i have to worry about them getting interrupted?
moeabdol2 has joined #ruby
<toretore> wrkrcoop: it's impossible to give good advice without seeing the code
<wrkrcoop> aren’t they all seperate?
<toretore> this depends on how it's implemented
<norc> wrkrcoop, that is the thing. Threads still share the same memory.
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<norc> wrkrcoop, and if *some* code in the chain holds global or static data it is not reentrant.
<norc> wrkrcoop, you might not see it, and that is the big problem about reentrancy.
<wrkrcoop> threads share memory but dont all instances exist in their own location?
Pumukel has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
<wrkrcoop> do i need to worry about them getting in each others way?
<al2o3-cr> you're all wrong
Yiota has joined #ruby
Yiota has quit [Client Quit]
<norc> wrkrcoop, sure. But can you guarantee me that *all* code right into the last C function is reentrant?
<norc> wrkrcoop, Im not saying reentrancy prevents that, but if you dont know about reentrancy then you should leave your fingers away from multithreading.
<wrkrcoop> oh
danostrowski has joined #ruby
<wrkrcoop> yeah idk about that
<wrkrcoop> isn’t that rubys job haha
<wrkrcoop> if ruby doesn’t take care of that behind the scenes stuff does that mean it is not thread safe?
dcluna has quit [Remote host closed the connection]
<norc> wrkrcoop, ruby does some guarantees, but the problem is that you using libraries which might not be reentrant.
<norc> wrkrcoop, and thread safety is NOT the same thing as reentrancy.
<al2o3-cr> and this is for work?
synthroid has quit []
<norc> a function can be thread safe but not reentrant.
* al2o3-cr sheesh
<norc> al2o3-cr, don't believe me? :p
<wrkrcoop> norc: ah you know maybe thats why my connection wasn’t running
despai has joined #ruby
<wrkrcoop> closing*
<wrkrcoop> i was using Crack::XML.parse and my thread wouldn’t close
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
<al2o3-cr> norc: never said i didn't
moeabdol2 has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
<norc> al2o3-cr, a while ago we had a guy in #rubyonrails who was asking fairly basic questions about what a TLS certificate is and why he needs one... and then he explained that bit about how he was responsible for implementing some API for financial transfers between banks..
N1njturt1e has quit []
<norc> That got me scared.
<apeiros> norc: color me unsurprised
edmundo has quit [Quit: Leaving]
* apeiros knows of bancs not using transactional databases
<apeiros> because… what could possibly go wrong
<adaedra> bancs?
zotherstupidguy has quit [Ping timeout: 252 seconds]
<apeiros> bancs.
diegoaguilar has quit [Remote host closed the connection]
<norc> apeiros, you mean like... Deutsche Bank?
<norc> :o)
<apeiros> norc: not naming names.
<wrkrcoop> the more senior ppl will review so its all good right?
<norc> apeiros, oh I was just making fun of their name being in the news 2 days ago.
<norc> wrkrcoop, no.
ule has quit [Changing host]
ule has joined #ruby
<al2o3-cr> deutsche Bundesbank, that's where my money is!
<norc> wrkrcoop, writing thread safe code requires knowing what you do, not hoping someone with experience to find all the bugs.
<norc> al2o3-cr, *was
<norc> Ops. Sorry!
<al2o3-cr> lol :)
<adaedra> I know an ISP using MongoDB, internet facing, with default security settings (no password)
diegoaguilar has joined #ruby
<wrkrcoop> norc: well i read a couple blogs *haha*
karthikselva has joined #ruby
SilverKey has quit [Quit: Halted.]
<wrkrcoop> so basically it just seems that you want to avoid messing with shared state when you thread. is that basically it?
<norc> wrkrcoop, no.
<norc> wrkrcoop, unless you can promise to call no external functions.
<wrkrcoop> hmm well im making an http request …
<wrkrcoop> shit balls
<al2o3-cr> all i know is; thread is a piece of string so long
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wrkrcoop> this is why node is better
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> and i sometimes need it for my buttons
<norc> wrkrcoop, the problem is: If you make mistakes, you get huge weird bugs that you cannot debug because they often happen randomly.
<wrkrcoop> yeah >< pain
binaryplease1 has joined #ruby
<norc> and if you debug them, the problem disappears, so you dont even know why its happening.
<norc> Or where its happening.
Cohedrin_ has joined #ruby
<wrkrcoop> so basically dont do threading if you use any 3rd party libraries
whathappens has joined #ruby
GarethAdams has joined #ruby
<norc> al2o3-cr, I got this underpaid polish lady across the street who happily sews my buttons on for a buck.
n_blownapart has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
ev_ has quit [Quit: (null)]
<al2o3-cr> norc: a deer?
<norc> a deer?
djbkd has quit [Remote host closed the connection]
<norc> wrkrcoop, no. Dont do threading if you dont understand the implications.
<al2o3-cr> nvm :p
Cohedrin has quit [Ping timeout: 240 seconds]
whathapp_ has joined #ruby
binaryplease has quit [Ping timeout: 252 seconds]
<wrkrcoop> norc: how can you be sure if every method is reentrant if you use a 3rd party library, unless you read every line of code in that library & who the hell is going to do that
<norc> wrkrcoop, or promise to not bother us if you spend a week in your office pulling your hairs out trying to understand why things crash or do things that you cannot possibly explain.
djbkd has joined #ruby
blaxter has quit [Quit: foo]
ekinmur has joined #ruby
<norc> wrkrcoop, now you see the problem.
<wrkrcoop> yeah so wtf you basically cant do threading
<norc> wrkrcoop, sure you can. You just have to be careful about what you are doing and which libraries you are using.
<norc> In essence: Know what you are doing.
babblebre has joined #ruby
whathappens has quit [Ping timeout: 240 seconds]
blaxter has joined #ruby
jancel has joined #ruby
blaxter has quit [Client Quit]
joonty has joined #ruby
nettoweb has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
lalalaaa has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
karthikselva has quit [Ping timeout: 252 seconds]
<norc> wrkrcoop, and another problem is recognizing reentrant code.
<lalalaaa> Trying to prettify this little snippet here, the bottom part of 2_new.rb looks horrible, what do I do? https://gist.github.com/anonymous/899ae8f2a5e184cf5777c1dda33af253
<norc> wrkrcoop, a popular example is "Mutex", while being a famous synchronization mechanism to write thread safe code, the usage of Mutex might not be reentrant (as it can lead to dead lock scenarios)
<toretore> lalalaaa: looks fine to me
karthikselva has joined #ruby
binaryplease1 is now known as binaryplease
LaT0rtue has joined #ruby
<norc> lalalaaa, one small bit: Unless you really need $, use \Z instead.
djbkd has joined #ruby
<norc> (Getting used to the habit might save yourself from a security hole some day)
bruce_lee has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
LaT0rtue has quit [Client Quit]
<apeiros> norc: I almost always use \z, but then again, I know whether my data has a terminal newline or not :D
GarethAdams has quit [Quit: Leaving...]
flughafen_ has quit [Ping timeout: 258 seconds]
<lalalaaa> toretore: idk, doesn't really feel rubyish
karthikselva2 has joined #ruby
<lalalaaa> }x) do |m|
<lalalaaa> path = m[1]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<apeiros> >> ["foo\n" =~ /\Afoo\z/, "foo\n" =~ /\Afoo\Z/]
<ruby[bot]> apeiros: # => [nil, 0] (https://eval.in/584331)
freerobby has quit [Quit: Leaving.]
<norc> lalalaaa, the only thing that sucks there is indentation.
hahuang65 has joined #ruby
<lalalaaa> norc: shouldn't there be an end after the do |m|?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lalalaaa> that way i could indent it i guess
rodfersou has quit [Quit: leaving]
karthikselva has quit [Ping timeout: 260 seconds]
<norc> lalalaaa, the problem is how you indent the }x)
<norc> lalalaaa, if you move it on the same column as watch it might be a bit prettier.
<norc> or meh, that is not pretty either.
<lalalaaa> hehe
<norc> lalalaaa, oh I know.
MrBusiness3 has joined #ruby
hahuang61 has quit [Ping timeout: 276 seconds]
<norc> Contrary to popular belief local variables do not cause diseases and kill kittens.
edwinvdgraaf has joined #ruby
dcluna has joined #ruby
Vingador has joined #ruby
<norc> lalalaaa, and then move the regex out of the each block of course, becasue you dont need to assign that over and over again.
ChiefAlexander has quit [Quit: Leaving...]
certainty has joined #ruby
<lalalaaa> norc: That was really pretty
MrBusiness2 has quit [Ping timeout: 250 seconds]
bobbycvi_ has joined #ruby
<norc> lalalaaa, gist updated.
Rodya_ has joined #ruby
jancel has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
moeabdol2 has joined #ruby
zenspider has joined #ruby
<lalalaaa> norc: i'm amazed. mind if i forward it to the authors? tell them norc did it
certainty has quit [Ping timeout: 244 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
zenspider has quit [Client Quit]
Rodya_ has quit [Ping timeout: 264 seconds]
Wolland has joined #ruby
<lalalaaa> this is what ruby should look like
<lalalaaa> lol
<shevy> :D
prestorium has quit [Quit: Leaving]
karthikselva2 has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
madgen_ has joined #ruby
pawnbox has joined #ruby
<norc> lalalaaa, submit whatever you please. I don't care about credit for this.
Wolland has quit [Ping timeout: 250 seconds]
MrBusiness2 has joined #ruby
whathapp_ has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 244 seconds]
madgen has quit [Ping timeout: 244 seconds]
karthikselva has joined #ruby
jancel has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
MrBusiness3 has quit [Ping timeout: 258 seconds]
postmodern has joined #ruby
nankyokusei has joined #ruby
kareeoleez has joined #ruby
jancel has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
binaryplease1 has joined #ruby
Mon_Ouie has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gnufied has quit [Quit: Leaving]
<Eiam> random abstraction question, if you have a view that renders the same content but its style needs to be different depending on the context in which its viewed.. split the view into two files, one per content type, pass in parameters for the view to check to decide which styles should apply to it?
<Eiam> another option?
<lalalaaa> norc: im afraid that didnt go so well: https://gist.github.com/anonymous/52149d70897b70ed4a00603803c9e460
<hxegon> ?rails Eiam
<ruby[bot]> Eiam: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Eiam> (in one view, the content is inside a popover, in another its a full screen (not inside a popover)
<Eiam> totally not using rails =)
<Eiam> sinatra! but really I don't think the underlying back end matters
lxsameer has quit [Ping timeout: 246 seconds]
<hxegon> alright, just reflexively doing it
allcentury has quit [Ping timeout: 250 seconds]
<Eiam> hxegon: =) I understand. I am just interested in the design pattern. neither feels great to me
<Eiam> I know how to make both work ofc
<danostrowski> anyone use Sinatra here (possibly on JRuby) and auto-generate API docs from routes? If so, what do you use?
<Eiam> danostrowski: have you checked google? yard seems to have a sintara plugin
mikecmpbll has joined #ruby
yfeldblum has joined #ruby
<danostrowski> It does, but there's also some chatter about it not working on JRuby and it seems quite old with outstanding issues.
<Eiam> I've just used plain yard in the past.. not sure what value there is in literally reading the code for me and telling me what the code already says.
<danostrowski> (chatter on the 'net about it not working with JRuby)
<Eiam> the extra comments from yard are the value add
<danostrowski> If you're exposing an API to people, it's obviously valuable for them to be able to pull up API docs about how to interact with your service.
gtsai has quit [Remote host closed the connection]
<Eiam> right. so my suggestion was document your routes with yard
<Eiam> and have it generate an API
Azure has quit [Ping timeout: 260 seconds]
<danostrowski> Oh, I see what you mean.
<Eiam> you don't need any special extensions
<Eiam> just yard
yfeldblum has quit [Remote host closed the connection]
<danostrowski> Sure, I guess I was just hoping there was a tool that did this, I would assume common, task without having to add new documentation to every route.
dsea has joined #ruby
yfeldblum has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
kareeoleez has quit [Remote host closed the connection]
<Eiam> danostrowski: why don't you give it a try on your existing project? yard supports sinatra out of the box..
<danostrowski> OK, will do. Thanks.
<Eiam> maybe by default youll get what you want
<Eiam> (I'm not exactly sure, all my routes are @decorated)
dfinninger has joined #ruby
* danostrowski hopes so, that would be neat.
<Eiam> sinatra isn't exactly uncommon
qasaur has joined #ruby
Azure has joined #ruby
gtsai has joined #ruby
jancel has joined #ruby
arooni has joined #ruby
finisherr has joined #ruby
Vingador has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 272 seconds]
finisherr has left #ruby [#ruby]
ledestin has joined #ruby
pawnbox has quit [Ping timeout: 258 seconds]
sneakers has quit [Read error: Connection reset by peer]
Guest43 has joined #ruby
gooodroot has joined #ruby
Guest43 has quit [Changing host]
Guest43 has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
jancel has quit [Remote host closed the connection]
aep has quit [Ping timeout: 246 seconds]
jancel has joined #ruby
jancel has quit [Remote host closed the connection]
goodroot has quit [Ping timeout: 252 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
gtsai has quit [Remote host closed the connection]
aep has joined #ruby
pawnbox has joined #ruby
klekot has joined #ruby
art-solopov has quit [Quit: Konversation terminated!]
norc has quit [Read error: Connection reset by peer]
xerpexes has joined #ruby
last_staff has quit [Quit: cheers]
<xerpexes> Hi guys, I'm working on this problem here https://leetcode.com/problems/reconstruct-itinerary/
<xerpexes> Basically the problem boils down to a graph search
boboc has quit []
chussenot has joined #ruby
mib_mib has joined #ruby
<xerpexes> I've got a solution using DFS that returns a bunch of arrays of solutions at the end, which I then sort
<mib_mib> hi all - when using 'pry' console, sometimes when i try to paste some code into it, i get a 'help' screen i.e. "SUMMARY OF LESS COMMANDS" almost like a man page and stuff - why is this happening / how do i prevent it?
<xerpexes> I'm wondering if there is some way to use yield rather than return multiple arrays at each step
QpQ4_ has joined #ruby
QpQ4_ has left #ruby [#ruby]
chussenot has quit [Client Quit]
TomyLobo has quit [Ping timeout: 264 seconds]
<mib_mib> its like the shell or console gets messed up somehwo
k3rn31 has quit [Quit: Computer has gone to sleep.]
karthikselva has quit [Ping timeout: 260 seconds]
madgen_ has quit [Ping timeout: 240 seconds]
xerpexes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
goooodroot has joined #ruby
certainty has joined #ruby
Gasher has quit [Quit: Leaving]
karthikselva has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madgen has joined #ruby
gooodroot has quit [Ping timeout: 246 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moeabdol2 has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
certainty has quit [Ping timeout: 260 seconds]
joonty has quit [Quit: This computer has gone to sleep]
Wolland has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
lightt has joined #ruby
bhaak has quit [Ping timeout: 246 seconds]
rattatmatt has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
myntcake has joined #ruby
centrx has quit [Quit: centrx]
solocshaw has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
millerti has joined #ruby
phredus has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
<shevy> hmm
millerti has quit [Max SendQ exceeded]
hutch34 has quit [Ping timeout: 276 seconds]
<shevy> https://rubygems.org/stats Total gems: 119,241
<shevy> I'll check on that number again in about a week
aegis3121 has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jhack has quit [Quit: jhack]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
solocshaw1 has joined #ruby
mikecmpbll has joined #ruby
polishdub has quit [Quit: Leaving]
mib_mib has quit [Quit: Page closed]
einarj has quit [Remote host closed the connection]
haraigoshi has joined #ruby
danostrowski has joined #ruby
giz|work has joined #ruby
hutch34 has joined #ruby
haraigo has quit [Ping timeout: 250 seconds]
karthikselva has quit [Ping timeout: 260 seconds]
gnufied has joined #ruby
SilverKey has joined #ruby
mdw has quit [Ping timeout: 250 seconds]
agent_white has quit [Quit: leaving]
benlieb has joined #ruby
myntcake has quit [Quit: Leaving]
ensyde__ has joined #ruby
mdw has joined #ruby
binaryplease has quit [Quit: Goodbye cruel world]
binaryplease1 is now known as binaryplease
binaryplease1 has joined #ruby
gtsai has joined #ruby
gtsai has quit [Remote host closed the connection]
triangles3 has joined #ruby
ensyde has quit [Ping timeout: 264 seconds]
SilverKey has quit [Quit: Halted.]
triangles2 has quit [Ping timeout: 244 seconds]
sepp2k has quit [Quit: Leaving.]
cschneid has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
klekot has quit [Remote host closed the connection]
gtsai has joined #ruby
chouhoul_ has joined #ruby
renderful has quit []
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
benlieb_ has joined #ruby
solocshaw1 has quit [Ping timeout: 276 seconds]
wrkrcoop has left #ruby [#ruby]
kraken has joined #ruby
kraken is now known as kraken_
chouhoulis has quit [Ping timeout: 244 seconds]
<kraken_> is [1, 3 ,4] or [ 1, 3, 4 ] proper styling?
<havenwood> kraken_: the former
<kraken_> roger
<kraken_> thank you
<havenwood> you're welcome
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
benlieb has quit [Ping timeout: 240 seconds]
benlieb_ is now known as benlieb
despai has quit [Quit: This computer has gone to sleep]
firstdayonthejob has quit [Quit: WeeChat 1.5]
despai has joined #ruby
firstdayonthejob has joined #ruby
jancel has joined #ruby
jphase has joined #ruby
JesseH has quit [Remote host closed the connection]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
pepee has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
osiox has joined #ruby
smathy is now known as smathy_afk
osiox has left #ruby ["WeeChat 1.4"]
jancel has quit [Ping timeout: 276 seconds]
RobertBirnie has quit [Read error: Connection reset by peer]
RobertBi_ has joined #ruby
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #ruby
dcluna has quit [Ping timeout: 264 seconds]
babblebre has quit [Quit: Connection closed for inactivity]
binaryplease has quit [Quit: WeeChat 1.5]
kirun has quit [Quit: Client exiting]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vingador has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
sima_viniggor has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<sima_viniggor> what is the most amazing thing created in ruby?
danostrowski has joined #ruby
<shevy> sima_viniggor All The Things.
<havenwood> sima_viniggor: depends on the beholder
<jhass> sima_viniggor: http://xiki.org/
<sima_viniggor> jhass: did you make that?
<shevy> lol
<jhass> no
<shevy> that octopus thing
<jhass> never used it either
benlieb has quit [Quit: benlieb]
GarethAdams has joined #ruby
<shevy> is that OSX only? :(
<sima_viniggor> why are you saying it's the most amazing if you never used it?
benlieb has joined #ruby
<jhass> yes
<sima_viniggor> shevy: it can't be because ruby is cross platform
<jhass> shevy: don't think so
firstdayonthejob has quit [Ping timeout: 258 seconds]
<shevy> sima_viniggor not everything works equally well or is available on all platforms
benlieb has quit [Client Quit]
<havenwood> jhass: Crystal-lang is a pretty amazing thing created initially in Ruby. ;)
hahuang65 has quit [Ping timeout: 260 seconds]
<jhass> yeah, already mentioned last time they asked
<havenwood> ah, haha
<jhass> we got variadic generics today! <3
<shevy> is that like a generic monad
<jhass> no clue, probably not at all
certainty has joined #ruby
binaryplease1 is now known as binaryplease
biberu has quit []
<jhass> sima_viniggor: so, with a refined inquiry, better results might happen.
panchiz has joined #ruby
<sima_viniggor> i'm just curious
<sima_viniggor> i've only seen ruby on rails apps
<sima_viniggor> but i heard that ruby can do anything
whathappens has joined #ruby
nettoweb has joined #ruby
saneax_AFK is now known as saneax
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
hahuang65 has joined #ruby
<shevy> yeah
<shevy> what do you need sima_viniggor
<shevy> and you have a peculiar nick
lightt has quit [Read error: Connection reset by peer]
<jhass> sima_viniggor: well there you go, here's a whole programming language that can do everything too, written in Ruby https://github.com/crystal-lang/crystal/tree/04964442a2de0268f63c492b22b17cb502724fc7
<sima_viniggor> sima is my first name and viniggor is the thing you put on salad?
bhaak has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
pepee has quit [Ping timeout: 250 seconds]
panpainter has quit []
sima_viniggor is now known as sima_vinegar
<sima_vinegar> oops
<sima_vinegar> bad english :/
icarus has quit [Quit: Lost terminal]
nettoweb has quit [Max SendQ exceeded]
<havenwood> sima_vinegar: https://github.com/trending/ruby
<lalalaaa> jhass: Are you running any social networks yourself?
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<lalalaaa> Or similar apps
<jhass> I do run a diaspora* node
nettoweb has joined #ruby
paul_ has joined #ruby
<sima_vinegar> i'm currently in college, but i met a guy at starbucks who said that i am wasting my time going to school for computer science and that i don't even need a degree to work as a programmer
<sima_vinegar> how true is that?
<sima_vinegar> this was the other yesterday
Wolland has joined #ruby
nettoweb has quit [Max SendQ exceeded]
<jhass> it is both true and bullshit
<sima_vinegar> ?
<sima_vinegar> how can it be both?
<sima_vinegar> aren't they opposites?
<jhass> yes you can get a job without a degree
<havenwood> >> [true, false].sample
<ruby[bot]> havenwood: # => true (https://eval.in/584395)
<jhass> no, you're not wasting your time
nettoweb has joined #ruby
<lalalaaa> im not getting a degree. im spending my time trying to build apps to make me rich instead.
<sima_vinegar> what will it take to get a job without a degree?
<havenwood> sima_vinegar: learning ruby and being a nice person who folk would like to work with should more than do the trick
<sima_vinegar> if it is possible which doesn't make sense to me
<elomatreb> Taking career advice from a guy you met at starbucks?
<lalalaaa> sima_vinegar: insaaaaaaaaane charisma :P
<shevy> lol
<havenwood> with a few points in dexterity
<sima_vinegar> the guy claims to work at google
nettoweb has quit [Max SendQ exceeded]
benlieb has joined #ruby
<havenwood> sima_vinegar: google favors CS degrees, but they do hire those without and there are many other companies
nettoweb has joined #ruby
<havenwood> and i'm sure it's a big enough company that even that isn't true - many, many jobs
<elomatreb> Time spent learning is not wasted though
CloCkWeRX has joined #ruby
<jhass> ^ my point
<jhass> don't eat the FUD
Wolland has quit [Ping timeout: 250 seconds]
<sima_vinegar> oh so it's better if i finish my degree then right
nettoweb has quit [Max SendQ exceeded]
<sima_vinegar> what's a FUD?
flashpoint9 has joined #ruby
Xentil has quit [Ping timeout: 260 seconds]
<sima_vinegar> i'm sure it's not thishttp://www.urbandictionary.com/define.php?term=FUD
<jhass> eh
<havenwood> sima_vinegar: random chance probably has a larger determining factor in your future than whether you finish the degree. FUD is fear, uncertainty and doubt.
<jhass> my clipboard is broken today
nettoweb has joined #ruby
benlieb has quit [Client Quit]
<sima_vinegar> ok thanks hadronzoo
<sima_vinegar> havenwood*
<elomatreb> Keep in mind that a degree usually teaches you other valuable skills besides "just" programming, like scientific process or statistics
<sima_vinegar> what about a 2 year degree?
paul_ has quit [Ping timeout: 244 seconds]
<sima_vinegar> will it be better to just get a 2 year degree or a 4 year?
<shevy> do you not have time
<shevy> a one year degree
<sima_vinegar> i'm in community college because i want to save money
nettoweb has quit [Max SendQ exceeded]
<elomatreb> But I'm maybe not the best person to ask about this, as I still go to school
<sima_vinegar> my dad gave me all the money he saved up for me and i can become anyone i want without scholarships
nankyokusei has joined #ruby
nettoweb has joined #ruby
<sima_vinegar> but i would like to save it and make money from that money
<shevy> oh man
<elomatreb> There are probably better places to ask for advice for your future than a Ruby IRC channel
pepee has joined #ruby
<sima_vinegar> oh i figured most people here were already professionals
<sima_vinegar> whoops sorry
nettoweb has quit [Max SendQ exceeded]
<havenwood> sima_vinegar: most probably are, but there are so many paths to becoming so it's hard to generalize
flashpoint9 has quit [Ping timeout: 276 seconds]
<sima_vinegar> oh
<havenwood> sima_vinegar: the one thing we all share is reading and writing Ruby
phredus has quit [Remote host closed the connection]
nettoweb has joined #ruby
<jhass> what worked somebody doesn't have to work for you and what doesn't work for somebody can work for you
<havenwood> TIMTOWTDI
nettoweb has quit [Max SendQ exceeded]
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sima_vinegar> i am going to figure it out
<sima_vinegar> maybe i'll switch majors and go to something where i'll make more money like financing or something in wall street
<havenwood> sima_vinegar: do what you love
nankyokusei has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
<sima_vinegar> i love money
<elomatreb> lol
<jhass> money as sole objective rarely made a good programmer, so yeah maybe
<sima_vinegar> but i enjoy making things on the computer
<sima_vinegar> even though it's hard for me
phredus has joined #ruby
<sima_vinegar> i think it's really cool
<hxegon> sima_vinegar: check out fintech
jdelaney has joined #ruby
<sima_vinegar> thanks hxegon
<sima_vinegar> later everyone i hope you have a great time doing what it is you're doing :)
sima_vinegar has left #ruby [#ruby]
RobertBi_ has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
jdelaney has left #ruby [#ruby]
dionysus69 has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
spider-mario has quit [Remote host closed the connection]
kraken_ has quit [Quit: Leaving]
mtkd has joined #ruby
RobertBirnie has joined #ruby
David27 has joined #ruby
rattatmatt has quit []
koooge has joined #ruby
wrkrcoop has joined #ruby
lightt has joined #ruby
lightt has quit [Max SendQ exceeded]
<wrkrcoop> is there a way to set a default value in a hash
<wrkrcoop> a = {"steve" => jeff =|| "bob"}
lightt has joined #ruby
allcentury has joined #ruby
toretore has quit [Ping timeout: 260 seconds]
tildes_ has quit [Read error: Connection timed out]
tildes_ has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
Respek has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
jackjackdripper1 has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
jenrzzz has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
<wrkrcoop> just used a method to check if nil or not
<elomatreb> wrkrcoop: There's Hash#merge, which might be useful: http://ruby-doc.org/core-2.3.1/Hash.html#method-i-merge
<wrkrcoop> thanks
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pepee has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
pepee has joined #ruby
gooooodroot has joined #ruby
sumobob has quit [Ping timeout: 258 seconds]
arlek has joined #ruby
Guest43 has quit [Quit: Textual IRC Client: www.textualapp.com]
weemsledeux has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
goooodroot has quit [Ping timeout: 250 seconds]