<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?
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
<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
<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…]
<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
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
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
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]
<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…]
* 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>
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?
<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.
<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
<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?
<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>
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.]
<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
<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