<aspect>
thanks, you've at least validated my thought process
pdoherty has quit [Ping timeout: 244 seconds]
<centrx>
aspect, what output do you get if you add 'p self' there?
<centrx>
aspect, Are you sure that's the right line, is there a complete stack trace?
mikepack has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
<aspect>
digging further ... I'll come back with better questions shortly :-)
<centrx>
aspect, also FYI there is a #rubyonrails channel
shime_ has quit [Ping timeout: 264 seconds]
snath has joined #ruby
Sawbones_ has joined #ruby
jwilson has left #ruby ["Leaving"]
mikepack has quit [Ping timeout: 264 seconds]
blandflakes has quit [Disconnected by services]
blandflakes has joined #ruby
AlexRussia has joined #ruby
tyfighter has quit [Quit: tyfighter]
sambao21 has quit [Quit: Computer has gone to sleep.]
tyfighter has joined #ruby
blandflakes has quit [Disconnected by services]
blandflakes has joined #ruby
iamninja has joined #ruby
jherbst has joined #ruby
Musashi007 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
hornairs has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
jcdesimp has joined #ruby
malcolmva has quit [Ping timeout: 255 seconds]
_Andres has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
_Andres has joined #ruby
oo_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
tjbiddle has joined #ruby
rchipman has joined #ruby
jenrzzz has joined #ruby
baweaver has quit [Remote host closed the connection]
Sawbones_ has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bayed has quit [Quit: Connection closed for inactivity]
n008f4g_ has quit [Ping timeout: 240 seconds]
fenzil has joined #ruby
<aspect>
heh, it gets better. The same method is falling through to the [] accessor, which tries to index into variable 'others' (some kinda pseudo-inheritance), which .. is a string. Looks like unparsed yaml.
connor_goodwolf has quit [Ping timeout: 264 seconds]
<centrx>
oh dear
<aspect>
thanks for inspiring the confidence to keep digging, but at this point the rabbit hole looks much deeper than I want to go :-)
Sawbones_ has joined #ruby
<centrx>
oh wait I see what's happening
<centrx>
you redefined def []
bricker has quit [Ping timeout: 245 seconds]
mroach has joined #ruby
silkfox has quit [Ping timeout: 276 seconds]
amdbcg has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
<aspect>
yep, line 39 of user_preferences.rb
happyface has quit [Quit: Connection closed for inactivity]
reinaldob has quit [Remote host closed the connection]
iamninja has quit [Remote host closed the connection]
francisfish has joined #ruby
Musashi007 has joined #ruby
djbkd has quit [Client Quit]
<centrx>
aspect, It looks like this might refer to a different user_preference.rb because the line numbers are different?
mrmargolis has joined #ruby
Joufflu has joined #ruby
malcolmva has joined #ruby
<aspect>
oh, sorry I inserted some debugging log messages .. that should be line 39, 39, and 58
<centrx>
57?
ghr has joined #ruby
<aspect>
57
pietr0 has quit [Quit: pietr0]
iamninja has joined #ruby
<centrx>
aspect, So it sounds like 'others' is an attribute/column, and it's being serialized, it's probably being serialized as an array
mostlybadfly has joined #ruby
<centrx>
aspect, Also, don't define #initialize for ActiveRecord models
pietr0 has joined #ruby
baweaver has joined #ruby
francisfish has quit [Ping timeout: 246 seconds]
<centrx>
aspect, So even though you have the self.others ||= {} in a couple places, it probably doesn't do anything really
<aspect>
okay, I'm giving up at this point: it's not actually my code, and I can roll back to where my environment didn't blow it up
<aspect>
your critique is enough to convince me I don't want to try and fix it :-)
amdbcg has joined #ruby
klmlfl has joined #ruby
oo_ has joined #ruby
<aspect>
and yeah .. I'm seeing others as a yaml string on entry to def [], and the serialize call at the top of this class gets other code involved which looks considerably hairier
<centrx>
yeah get the person who wrote it to fix it :)
* aspect
goes back to treating redmine as a black box that works best in a sandbox without aggressive changes to configuration :-)
Musashi007 has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 264 seconds]
_reset has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
gawd has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
<aspect>
thanks heaps for your help, that saved a lot of time and stress :-)
dfinninger has quit [Remote host closed the connection]
PaulCapestany has quit []
<sevenseacat>
mm redmine was very finicky from what i remember
<sevenseacat>
this was a couple years ago
tyfighter has quit [Quit: tyfighter]
cantonic has joined #ruby
helpa has quit [Remote host closed the connection]
recurrence has quit [Quit: recurrence]
helpa has joined #ruby
Kilo`byte has quit [Ping timeout: 256 seconds]
eka_ has joined #ruby
reset has quit [Ping timeout: 245 seconds]
crazymykl has joined #ruby
j0n3_ has joined #ruby
PaulCapestany has joined #ruby
znst` has joined #ruby
Hobogrammer has joined #ruby
_reset has quit [Ping timeout: 272 seconds]
ghostbox has joined #ruby
ghostbox has joined #ruby
mbeasley has quit [Ping timeout: 256 seconds]
matti__ has joined #ruby
ivanskie has joined #ruby
Davey has joined #ruby
zumbi_ has joined #ruby
scpike_ has joined #ruby
socash1 has joined #ruby
jsaak_ has joined #ruby
Igneous_ has joined #ruby
ghostbox has quit [Client Quit]
Kilo`byte has joined #ruby
ghostbox has joined #ruby
bigkevmc_ has joined #ruby
s_e_ has joined #ruby
wallerdev_ has joined #ruby
uxp__ has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
devyn_ has joined #ruby
cantonic_ has joined #ruby
Musashi007 has joined #ruby
ccooke_ has joined #ruby
reinaldob has joined #ruby
drizz_ has joined #ruby
LRgraham_ has joined #ruby
philtr_ has joined #ruby
cn28h_ has joined #ruby
ghostbox has quit [Client Quit]
bigkevmcd has quit [Ping timeout: 264 seconds]
hfp has quit [Ping timeout: 256 seconds]
hgl- has joined #ruby
linduxed_ has joined #ruby
clocKwize has joined #ruby
IcyDragon has joined #ruby
hfp has joined #ruby
hgl- has quit [Max SendQ exceeded]
gnarld_ has joined #ruby
tekku has joined #ruby
hgl- has joined #ruby
rvchangu- has joined #ruby
bauruine_ has joined #ruby
TakumoKatekari has joined #ruby
TakumoKatekari has quit [Changing host]
TakumoKatekari has joined #ruby
ta has quit [Ping timeout: 276 seconds]
j0n3_ has quit [Read error: Connection reset by peer]
reinaldob has quit [Ping timeout: 272 seconds]
jeekl_ has joined #ruby
_blackjid has joined #ruby
troubadour has joined #ruby
socash has quit [Ping timeout: 264 seconds]
linduxed has quit [Ping timeout: 264 seconds]
scpike has quit [Ping timeout: 264 seconds]
akas has quit [Ping timeout: 264 seconds]
pen has quit [Ping timeout: 264 seconds]
cn28h has quit [Ping timeout: 264 seconds]
jsaak has quit [Ping timeout: 264 seconds]
tekk has quit [Ping timeout: 264 seconds]
ReinH has quit [Ping timeout: 264 seconds]
Igneous has quit [Ping timeout: 264 seconds]
adriancb has quit [Ping timeout: 264 seconds]
hgl has quit [Ping timeout: 264 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 264 seconds]
znst has quit [Ping timeout: 264 seconds]
TheMoonMaster has quit [Ping timeout: 264 seconds]
dideler has quit [Ping timeout: 264 seconds]
eka has quit [Ping timeout: 264 seconds]
bauruine has quit [Ping timeout: 264 seconds]
devyn has quit [Ping timeout: 264 seconds]
urtokk has quit [Ping timeout: 264 seconds]
weaksauce has quit [Ping timeout: 264 seconds]
jeekl has quit [Ping timeout: 264 seconds]
j0n3 has quit [Ping timeout: 264 seconds]
clocKwize_ has quit [Ping timeout: 264 seconds]
uxp has quit [Ping timeout: 264 seconds]
rvchangue has quit [Ping timeout: 264 seconds]
swartwulf has quit [Ping timeout: 264 seconds]
LRgraham has quit [Ping timeout: 264 seconds]
Takumo has quit [Ping timeout: 264 seconds]
blackgoat has quit [Ping timeout: 264 seconds]
hgl- is now known as hgl
wallerdev has quit [Ping timeout: 264 seconds]
gccostabr has quit [Ping timeout: 264 seconds]
ccooke has quit [Ping timeout: 264 seconds]
matti__ is now known as matti
drizz_ is now known as drizz
gnarld_ is now known as nug
wallerdev_ is now known as wallerdev
LRgraham_ is now known as LRgraham
s_e_ is now known as s_e
dnsnoob has quit [Quit: exit error code 434]
gccostabr has joined #ruby
akas has joined #ruby
Roa has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 245 seconds]
Roa has joined #ruby
urtokk has joined #ruby
adriancb has joined #ruby
PaulCapestany has quit []
TheMoonMaster_ has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
Akuma has joined #ruby
Fire-Dragon-DoL has joined #ruby
swartwulf has joined #ruby
Fire-Dragon-DoL has quit [Max SendQ exceeded]
Musashi007 has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
clamstar has joined #ruby
PaulCapestany has joined #ruby
byprdct has quit [Ping timeout: 244 seconds]
jonmorehouse has joined #ruby
rmillerx has joined #ruby
chrisja has quit [Quit: leaving]
tubuliferous has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Musashi007 has joined #ruby
duncannz has quit [Ping timeout: 246 seconds]
gz_rain has quit [Ping timeout: 246 seconds]
Fire-Dragon-DoL has joined #ruby
n80_ has joined #ruby
cantonic_ has quit [Quit: cantonic_]
amclain has joined #ruby
<jonmorehouse>
I'm struggling with some eventmachine stuff and was wondering if someone could help me undesrtand it
<shellox>
i try to get all selects, except the one with id orderamount and then want to loop through the option value of each select
<shellox>
how would i do that?
rmillerx has quit [Quit: rmillerx]
Adran has quit [Ping timeout: 244 seconds]
yfeldblu_ has joined #ruby
eka has joined #ruby
freerobby has quit [Quit: Leaving.]
sea_local has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 250 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
troubadour has quit [Ping timeout: 252 seconds]
deric_skibotn has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
mloveless has joined #ruby
dfinninger has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
aspect has left #ruby ["WeeChat 0.3.2"]
jenrzzz has quit [Ping timeout: 276 seconds]
patrick99e99 has joined #ruby
athan has quit [Ping timeout: 252 seconds]
Sawbones has joined #ruby
avahey91 has quit [Quit: Connection closed for inactivity]
kapil__ has joined #ruby
dfinning_ has joined #ruby
martinium has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 255 seconds]
skj3gg has joined #ruby
arup_r has joined #ruby
astrobunny has joined #ruby
Guest28939 has quit [Changing host]
Guest28939 has joined #ruby
astrobunny has quit [Remote host closed the connection]
Guest28939 is now known as blindsight
patrick99e99 has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
patrick99e99 has joined #ruby
DadoCe has joined #ruby
pdoherty has joined #ruby
idoru has joined #ruby
pontiki has joined #ruby
Obfuscate has quit [Quit: Technical difficulties...]
nicolastarzia has quit []
greenbagels has quit [Quit: Leaving]
<pontiki>
hi, folks
greenbagels has joined #ruby
spicerack2 has joined #ruby
PaulCapestany has quit []
tmtwd has joined #ruby
zaza has joined #ruby
DadoCe has quit [Ping timeout: 256 seconds]
zaza has quit [Max SendQ exceeded]
pdoherty has quit [Ping timeout: 244 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
PaulCapestany has joined #ruby
mikepack has joined #ruby
pietr0 has quit [Quit: pietr0]
maximski has quit []
__main__ has joined #ruby
ta has joined #ruby
g-nom3 has joined #ruby
g-nom3 has quit [Max SendQ exceeded]
mikepack has quit [Ping timeout: 244 seconds]
yeticry has quit [Ping timeout: 244 seconds]
ta has quit [Ping timeout: 276 seconds]
yeticry has joined #ruby
dfinning_ has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
amdbcg has quit [Read error: Connection reset by peer]
amdbcg has joined #ruby
mrmargolis has quit [Remote host closed the connection]
fandi has quit [Quit: Leaving]
dc has joined #ruby
Sawbones has quit []
tyfighter has joined #ruby
<Fire-Dragon-DoL>
guys have problem with a regexp, hi have the string "hi {{var1}} foo", regexp /{{([^}]+)}}/ when I perform scan, I get an array with "var1", which is fine. However when I perform gsub with a block, I get "{{var1}}", are there any way to instead get "var1" so I can check it against a hash and replace the variable?
n80_ has quit [Quit: n80_]
gawd has quit [Quit: Leaving]
timanema has quit [Ping timeout: 246 seconds]
Spami has quit [Quit: Leaving]
hornairs has quit [Quit: hornairs]
wallerdev has joined #ruby
charliesome has quit [Quit: zzz]
charliesome has joined #ruby
uptownhr has quit [Quit: uptownhr]
Spami has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
Sawbones has joined #ruby
deol has joined #ruby
towski_ has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
sea_local has joined #ruby
davedev24_ has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
lampd1 has joined #ruby
ajaiswal has joined #ruby
cjim has joined #ruby
davedev2_ has joined #ruby
patrick99e99 has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
patrick99e99 has joined #ruby
klmlfl has quit [Remote host closed the connection]
lysw123 has joined #ruby
francisfish has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
Deele has quit [Ping timeout: 244 seconds]
frek818 has quit [Ping timeout: 265 seconds]
cjim has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
frek818 has joined #ruby
francisfish has quit [Ping timeout: 264 seconds]
martinium has joined #ruby
radic has quit [Ping timeout: 245 seconds]
mloveless has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 245 seconds]
bayarja has joined #ruby
radic has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
ARCADIVS has joined #ruby
skj3gg has joined #ruby
meschi has quit [Ping timeout: 276 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
patrick99e99 has joined #ruby
chipotle has quit [Quit: cheerio]
oo_ has quit [Remote host closed the connection]
mbeasley has joined #ruby
skj3gg has quit [Client Quit]
oo_ has joined #ruby
cantonic_ has joined #ruby
seal has quit [Quit: Ex-Chat]
psy_ has quit [Quit: Leaving]
tyfighter has quit [Quit: tyfighter]
blackgoat has joined #ruby
dfinninger has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Quit: Quitting]
Yzguy has joined #ruby
oo_ has quit [Remote host closed the connection]
pontiki has quit [Disconnected by services]
athan has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
pontiki has joined #ruby
psy_ has joined #ruby
f0ster has quit [Read error: Connection reset by peer]
Trynemjoel has joined #ruby
ta has joined #ruby
troubadour has joined #ruby
meth has joined #ruby
krz has joined #ruby
neersighted has joined #ruby
braincrash has quit [Quit: bye bye]
oo_ has joined #ruby
cantonic_ has quit [Quit: cantonic_]
frem has quit [Quit: Connection closed for inactivity]
icebourg has quit []
sinkensabe has joined #ruby
Zamyatin has joined #ruby
<meth>
is it possible to do something like redirect $stdin to a different object only within a certain context similar to how refinements work?
braincrash has joined #ruby
ta has quit [Ping timeout: 276 seconds]
tjohnson has joined #ruby
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Hijiri has joined #ruby
anaeem1_ has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
<Rayford>
(do not follow readme as it is incorrect)
sea_local has joined #ruby
towski_ has joined #ruby
<sevenseacat>
lol thats a good start
<Rayford>
but after it is built i try to call it with requrire_relative, and i get a cannot load such file
<Rayford>
any ideas what would cause this?
adriancb has quit [Remote host closed the connection]
<Rayford>
someone mind building and testing on their system for me
jenrzzz has joined #ruby
ghr has joined #ruby
<Rayford>
using RVM with ruby 2.2
tcrypt has joined #ruby
Hijiri has quit [Ping timeout: 244 seconds]
patrick99e99 has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
<Rayford>
anyone able to help?
jcutrell has joined #ruby
<sevenseacat>
instead of just providing your code and error, you want us to do what?
ghr has quit [Ping timeout: 245 seconds]
michaeldeol is now known as deol
<Rayford>
have an idea of what the problem may be? Could you try downloding the code, build the gem and try requiring it to see if it works for you
<Rayford>
can isolate if its my system or the gem in general
seuros has quit [Quit: Leaving.]
skj3gg has joined #ruby
skj3gg has quit [Client Quit]
patrick99e99 has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
patrick99e99 has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
mesamoo has quit [Quit: Konversation terminated!]
blizzy is now known as blizzy|sleep
jcrubino has quit [Ping timeout: 244 seconds]
Aova has quit [Quit: goes offline]
sea_local has quit [Read error: Connection timed out]
sea_local has joined #ruby
Aova has joined #ruby
andrewcarter has quit [Quit: Connection closed for inactivity]
yfeldblu_ has quit [Remote host closed the connection]
YamakasY has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
Sawbones has quit [Remote host closed the connection]
Deele has joined #ruby
blf has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
frek818 has joined #ruby
pdoherty has joined #ruby
braincrash has joined #ruby
giuseppesolinas has joined #ruby
Adran- has joined #ruby
mrmargolis has joined #ruby
astrobun_ has joined #ruby
Edes has joined #ruby
martinium has quit [Remote host closed the connection]
jerematic has joined #ruby
sea_local has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 252 seconds]
Sawbones has joined #ruby
Megtastique has quit []
jontmorehouse has joined #ruby
triple_b has joined #ruby
oo_ has joined #ruby
kt2 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
maletor has joined #ruby
kyb3r_ has joined #ruby
jonmorehouse has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 264 seconds]
jerematic has quit [Ping timeout: 244 seconds]
mrmargolis has quit [Ping timeout: 272 seconds]
Rayford has quit [Quit: Rayford]
St_Marx has joined #ruby
cphrmky has quit [Ping timeout: 276 seconds]
blizzy|sleep has quit [Ping timeout: 264 seconds]
meth has quit [Ping timeout: 246 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_maes_ has joined #ruby
Sawbones has quit [Remote host closed the connection]
jontmorehouse has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
josephndenton has joined #ruby
oo_ has joined #ruby
dfinninger has quit [Remote host closed the connection]
Sawbones has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
krz has joined #ruby
Originerd has joined #ruby
timanema has joined #ruby
Spleeze has quit [Ping timeout: 240 seconds]
Originerd has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 276 seconds]
Mia has quit [Read error: Connection reset by peer]
triple_b has joined #ruby
poguez has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
Lingo_ has joined #ruby
timanema has quit [Ping timeout: 246 seconds]
patrick99e99 has joined #ruby
Sawbones has quit [Remote host closed the connection]
spicerack2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frek818 has quit [Quit: frek818]
maletor has quit [Quit: Computer has gone to sleep.]
Spleeze has joined #ruby
tus has quit []
martinium has joined #ruby
frek818 has joined #ruby
spicerack2 has joined #ruby
arup_r has joined #ruby
Joufflu has joined #ruby
Mon_Ouie has joined #ruby
martinium has quit [Remote host closed the connection]
tyfighter has joined #ruby
francisfish has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
krz has quit [Quit: WeeChat 1.0.1]
patrick99e99 has joined #ruby
anaeem1__ has joined #ruby
krz has joined #ruby
martinium has joined #ruby
adriancb has joined #ruby
towski_ has quit [Remote host closed the connection]
ghr has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
jontmorehouse has joined #ruby
kt2 has joined #ruby
francisfish has quit [Ping timeout: 264 seconds]
tyfighter has joined #ruby
Aova has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 256 seconds]
<Crazy_Atheist>
I wanted to get rubymine, but $99 is a bit steep for my wallet, and 59$ while that isn't bad, it means I have to actually save enough money, and I don't know if I can put 'credit'
anaeem1_ has quit [Ping timeout: 245 seconds]
Channel6 has quit [Quit: Leaving]
ponga has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
anaeem1_ has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<pontiki>
wait until you're making money, then.
<pontiki>
it is an investment
<pontiki>
but it really isn't absolutely necessary
<Nilium>
I have IntelliJ Ultimate and it's supposedly functionally RubyMine with the Ruby plugin installed
<Nilium>
Never liked it
<Nilium>
The Ruby plugin, that is.
<Nilium>
IntelliJ itself is fantastic if you're doomed to work in Java. Or if you just want to use it for another language it supports.
<insaneinside>
sevenseacat: my irc client bolds that name when you say it...
krz has joined #ruby
towski_ has joined #ruby
Darryl___ has joined #ruby
arescorpio has quit [Excess Flood]
apeiros has quit [Read error: Connection reset by peer]
leonshalimov has joined #ruby
apeiros has joined #ruby
jusmyth has quit [Quit: Leaving.]
reset has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 256 seconds]
weaksauce has joined #ruby
supergiel has joined #ruby
anaeem1 has joined #ruby
tmtwd has quit [Remote host closed the connection]
troyready has quit [Ping timeout: 256 seconds]
jcdesimp has quit [Quit: Leaving...]
agrinb has quit [Ping timeout: 245 seconds]
anaeem___ has joined #ruby
psy_ has quit [Quit: Leaving]
anaeem1 has quit [Ping timeout: 252 seconds]
mbeasley has quit [Ping timeout: 264 seconds]
CpuID3 has quit [Ping timeout: 245 seconds]
mbeasley has joined #ruby
anaeem___ has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 245 seconds]
Photism has joined #ruby
<insaneinside>
"Unfortunately that was and still is a major problem with Ruby. The japanese developers are very bad in english and therefore don't like to write documentation. The best documentation is only available in japanese." (from https://stackoverflow.com/a/22566163)
jontmorehouse has quit [Ping timeout: 265 seconds]
<insaneinside>
Comments? Flames?
anaeem1_ has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
jontmorehouse has joined #ruby
cantonic has quit [Quit: cantonic]
apeiros has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CpuID has joined #ruby
apeiros has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat>
i dont know what 'best documentation' theyre talking about, but then again i speak little japanese
<sevenseacat>
from what ive seen of ruby core, they're pretty good at english
<sevenseacat>
written english, anyway
<insaneinside>
yeah
gigetoo has joined #ruby
krz has joined #ruby
<sevenseacat>
Lothar can have a -1 from me
mostlybadfly has quit [Quit: Connection closed for inactivity]
hvxgr has quit [Ping timeout: 252 seconds]
jonmorehouse has joined #ruby
tagrudev has joined #ruby
<insaneinside>
but the lack of even explanatory parameter names in the C API is completely unforgivable unless they started writing C just last week.
<sevenseacat>
does that have anything to do with them being japanese? very unlikely.
crueber has quit [Quit: Leaving.]
<insaneinside>
true, Lothar's response does seem a little racist, maybe, given that he doesn't even provide links to said documentation...
jontmorehouse has quit [Ping timeout: 276 seconds]
jusmyth has joined #ruby
CynosureKuruma has joined #ruby
<sevenseacat>
let's face it, very few people enjoy writing documentation.
troyready has joined #ruby
<insaneinside>
yeah, but c'mon, even parameter names would help.
ixti has joined #ruby
<sevenseacat>
true
ixti has quit [Client Quit]
ta has joined #ruby
oleo has quit [Quit: Verlassend]
ghr has joined #ruby
<Beoran_>
the best documntaion of the Ruby APi is t see it in action in the many open surce ruby extensions
Hobogrammer_ has quit [Ping timeout: 245 seconds]
booly-yam-4014 has joined #ruby
<insaneinside>
That's a variant of the "just read the source code" argument.
Aova has quit [Read error: Connection reset by peer]
<pontiki>
do you have a problem you're trying to solve, insaneinside ?
<pontiki>
perhaps looking at a few other people doing what you're trying to do could help
last_staff has joined #ruby
<insaneinside>
pontiki: well, currently I'm trying to fetch (from C) the encoding used by a Ruby string.
ghr has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 276 seconds]
<insaneinside>
It looks like the best workaround is to just encode to whatever I want (`rb_str_export_to_enc`?) and use the resulting string.
lolmaus has quit [Quit: Konversation terminated!]
<CynosureKuruma>
The indent of ruby is two space or four space?
DrCode has joined #ruby
davedev2_ has quit [Ping timeout: 245 seconds]
<insaneinside>
CynosureKuruma: yes. But usually two, I think.
<sevenseacat>
wow, they say the 1.9 hash syntax is bad
kenneth has joined #ruby
<CynosureKuruma>
thanks
trxDraxon has quit [Read error: No route to host]
ta has joined #ruby
krz has quit [Ping timeout: 272 seconds]
CynosureKuruma has quit [Read error: Connection reset by peer]
seuros has joined #ruby
tobago has joined #ruby
<pontiki>
yeah, they do. i sort of understand the posistion, but it should change
dc has quit [Remote host closed the connection]
lolmaus has joined #ruby
ta has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
troyready has quit [Ping timeout: 276 seconds]
Dopagod has quit [Remote host closed the connection]
<insaneinside>
i stopped using the old syntax when i figured out how to use custom versions of Ruby on my shared hosting setup. That is, versions of MRI > 1.8.6. ;_;
troyready has joined #ruby
ponga has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
booly-yam-4014 has quit [Ping timeout: 240 seconds]
francisfish has quit [Read error: No route to host]
francisfish has joined #ruby
ishikawa is now known as Boohbah
nhhagen has joined #ruby
Boohbah has joined #ruby
Boohbah has quit [Changing host]
Boohbah has joined #ruby
Boohbah has quit [Changing host]
tcrypt has quit []
hanmac1 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Oberon4278 has quit []
p0wn3d_mhs has joined #ruby
dseitz has joined #ruby
sigurding has quit [Quit: sigurding]
ghr has quit [Ping timeout: 256 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
patrick99e99 has quit [Ping timeout: 245 seconds]
giuseppesolinas has joined #ruby
patrick99e99 has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
rdark has joined #ruby
krz has joined #ruby
vozcelik has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
fgo has joined #ruby
sigurding has joined #ruby
psy_ has joined #ruby
The_Phoenix has joined #ruby
psy_ has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 256 seconds]
frek818 has quit [Quit: frek818]
psy_ has joined #ruby
frek818 has joined #ruby
vozcelik has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
<The_Phoenix>
So, am trying my first application on Rails. I did rails new app name. bundle install runs fine. but, when I uncomment therubyracer and run bundle install or update, I get unexpected :, expecteing $end. I suppose this is a version issue? I have Ruby 1.8 and Ruby 2.2 and using ruby-switch to select default version.
<sevenseacat>
#rubyonrails is for rails-related questions
kitofr has joined #ruby
<The_Phoenix>
sevenseacat: Thanks
francisfish has quit [Remote host closed the connection]
<sevenseacat>
but you'll need to provide some more information before anyone can help you.
francisfish has joined #ruby
oo_ has quit [Remote host closed the connection]
msgodf has joined #ruby
<The_Phoenix>
sevenseacat: This is app created by rails new appname. I didn't add any content.
<sevenseacat>
information like what version of ruby and rails are you using, what things you uncommented and why, things like that
patrick99e99 has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
leonshalimov has joined #ruby
patrick99e99 has joined #ruby
<certainty>
_o/ sevenseacat
* certainty
is a semaphore today
<sevenseacat>
afternoon certainty
gr33n7007h has quit [Ping timeout: 264 seconds]
seal has joined #ruby
Xeago has joined #ruby
oo_ has joined #ruby
pgmcgee has joined #ruby
towski_ has quit [Remote host closed the connection]
shime has joined #ruby
wallerdev has quit [Quit: wallerdev]
_reset has joined #ruby
leonshalimov has quit [Ping timeout: 255 seconds]
CpuID has quit [Ping timeout: 272 seconds]
reset has quit [Ping timeout: 252 seconds]
dimaursu16 has quit [Ping timeout: 240 seconds]
uptownhr has quit [Quit: uptownhr]
sinkensabe has quit [Read error: Connection reset by peer]
frek818 has quit [Quit: frek818]
troubadour has quit [Quit: troubadour]
livathinos has joined #ruby
sinkensabe has joined #ruby
Aova has quit [Read error: Connection reset by peer]
livathinos has quit [Client Quit]
kenneth has joined #ruby
ecksit has joined #ruby
booly-yam-4014 has joined #ruby
pico-pete has quit [Ping timeout: 245 seconds]
blizzy|sleep has joined #ruby
Xeago_ has joined #ruby
pico-pete has joined #ruby
dc has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
Aova has joined #ruby
charliesome has quit [Quit: zzz]
Xeago has quit [Ping timeout: 264 seconds]
blizzy|sleep has quit [Ping timeout: 264 seconds]
tesuji has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
einarj has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
WismerTrashCry has quit [Quit: Page closed]
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
Zai00 has joined #ruby
ecksit has quit [Ping timeout: 245 seconds]
kitofr has quit [Ping timeout: 264 seconds]
dimaursu16 has joined #ruby
mloveless has joined #ruby
antgel has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
eka has quit [Ping timeout: 272 seconds]
LouisRoR has quit [Ping timeout: 252 seconds]
nrsk has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
kitofr has joined #ruby
blueOxigen has joined #ruby
nrsk has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
ghr has joined #ruby
nrsk has quit [Client Quit]
vdamewood has joined #ruby
nrsk has joined #ruby
arup_r has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CpuID has joined #ruby
mib_mib has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
juanpablo_ has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
tmoore_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
alol_ has quit [Read error: Connection reset by peer]
featheryahn_ has quit [Ping timeout: 272 seconds]
charles81 has quit [Read error: Connection reset by peer]
cstrahan_ has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
vcoinminer has quit [Read error: Connection reset by peer]
jblancett has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
maZtah has quit [Ping timeout: 265 seconds]
chrisseaton has quit [Ping timeout: 276 seconds]
skmp has quit [Ping timeout: 276 seconds]
dumdedum has joined #ruby
Darryl___ has quit [Ping timeout: 245 seconds]
grubernaut has quit [Ping timeout: 245 seconds]
n1ftyn8 has quit [Ping timeout: 265 seconds]
insaneinside has left #ruby ["bye"]
rfv has quit [Ping timeout: 245 seconds]
casual_ has quit [Ping timeout: 276 seconds]
seuros has quit [Quit: Leaving.]
pusewicz has quit [Ping timeout: 265 seconds]
callenb___ has quit [Read error: Connection reset by peer]
arup_r has quit [Ping timeout: 245 seconds]
bjeanes_ has quit [Ping timeout: 272 seconds]
tesuji has quit [Ping timeout: 255 seconds]
djbender has quit [Ping timeout: 276 seconds]
hellschreiber has quit [Ping timeout: 265 seconds]
<hanmac1>
deever: you have a funny constelation, because the sqlite3 gem is installed, but the sqlite3 lib itself is not ... seems you did install them in a funky way?
<deever>
hanmac1: i've done an upgrade of the system
<avril14th>
deever: weird
<avril14th>
maybe resinstall the gems from scratch
SparkMasterTape has quit [Quit: Leaving]
FooMunki has joined #ruby
timgauthier_away is now known as Timgauthier
Deele has joined #ruby
<hanmac1>
avril14th: the gem seems to be installed, but you need external libs too ... have you installedd sqlite in your packagemanger too?
martinium has quit [Remote host closed the connection]
tesuji has joined #ruby
reset has quit [Ping timeout: 245 seconds]
FooMunki has quit [Client Quit]
<dANOKELOFF>
Hi, I have two array , one is a = [1, 3, 1] and the second is b = [1, 2 , 3 ] and I want to return an array like this c = [2, 3, 1 ]. I want to sort my array by the most value used is in last position in my array and the less value used ( or none used) at first
CynosureKuruma has quit [Remote host closed the connection]
maximski has joined #ruby
<dANOKELOFF>
canton7, yes, because the array is my user_id , and the first is my article and I want to create an 3 array who sort the less user who created article
<canton7>
ok, I'm confused now
The_Phoenix has quit [Quit: Leaving.]
<canton7>
so the first array is both the user_id and the article? what's a "3 array"?
deepa is now known as deepy
Aova has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
<deever>
hanmac1: yes, sqlite3 has been updated by the packagemanager
<hanmac1>
deever: reinstall the gems
ta has quit [Remote host closed the connection]
<dANOKELOFF>
hanmac1, thank's !
otertore has joined #ruby
<workmad3>
dANOKELOFF: or, in other words, you're in rails and are using ActiveRecord, so you could do this by doing 'User.joins(:articles).group_by("users.id, articles.user_id").select("users.* COUNT(articles.*) as article_count").order("article_count")
<deever>
hanmac1: how do i do that? a "reinstall" is not known
<hanmac1>
deever: hm just call install on them again
<workmad3>
s/group_by/group
try has joined #ruby
elabs-developer has quit [Quit: elabs-developer]
<ddv>
intellij still advices single quotes when you don't need interpolation....
krz has quit [Ping timeout: 245 seconds]
<hanmac1>
ddv: Intellij does advice many things ... some are good, some maybe not
<ddv>
hanmac1: hi, captain obvious
Aova has joined #ruby
<hanmac1>
ddv i try to avoid intellj as much as possible
<ddv>
ok
<ddv>
I like it a lot
<ddv>
the visual debugger is king
patrick99e99 has quit [Ping timeout: 245 seconds]
codecop has joined #ruby
nhhagen has quit [Remote host closed the connection]
<hanmac1>
deever: did you try to ask in #rubyOnRails ? because i dont know whats wrong with your system ... are you sure you have the "libsqlite3" package installed on your system?
ta has joined #ruby
maximski has quit []
dionysus69 has joined #ruby
zerolith has quit [Remote host closed the connection]
davidhq has joined #ruby
]Spectre[ has joined #ruby
zerolith has joined #ruby
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3>
deever: that typically happens because you've got the database specified as 'sqlite3' in database.yml, but you don't have the sqlite3 gem in your Gemfile
<]Spectre[>
Newbie question: is it possible to send a image to the printer? I think yes, is it possible to configure the parameter of the
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<]Spectre[>
Newbie question: is it possible to send a image to the printer? I think yes, is it possible to configure the parameter of the printer? (page length,etc) because I want to use a printer done for labels thanks in advance
giuseppesolinas has joined #ruby
ta has quit [Ping timeout: 276 seconds]
<tobiasvl>
]Spectre[: you probably would have to run system commands maybe
<tobiasvl>
don't think printing is platform agnostic?
<]Spectre[>
tobiasvl,I tried to do the thing under python,calling the win32api,but is really unstable and bugged
mkaesz has quit [Read error: Connection reset by peer]
cbetta__ is now known as cbetta
cbetta has quit [Changing host]
cbetta has joined #ruby
cbetta has joined #ruby
Vivex has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
<DefV>
hm
bronson has joined #ruby
<DefV>
I'm writing a gem to interface with specific phone models. Communication with the protocol (binary protocol over ip) is asynchronous, meaning that, when connected to a phone, I can send commands, and answers come in over the socket, but incoming calls / actions on the device also come in over the socket
quimrstorres has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
<DefV>
so I can't just read from the socket after I sent a command, because 1) I wouldn't get incoming input, 2) I could get non-relevant to me input
jimms has joined #ruby
patrick99e99 has joined #ruby
jimms has quit [Remote host closed the connection]
<DefV>
How should I implement it? I was thinking a thread that adds all incoming data to an array in which I can filter, but 1) I'm not sure that's the cleanest solution, 2) I'm having issues where the thread is started but hasn't yet read after I sent my first 2 commands
Doow has joined #ruby
<ddv>
DefV: You need to use threading indeed
deepa has joined #ruby
<ddv>
DefV: Which can be hard to get right, so maybe you should have used eventmachine/celluloid
<DefV>
but using EventMachine means I limit usage of my gem
fgo has quit [Ping timeout: 240 seconds]
kl__ has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 255 seconds]
<ddv>
DefV: bundle install?
<ddv>
gemspec dependencies and all that
kl___ has quit [Ping timeout: 264 seconds]
hirzu has joined #ruby
johnzz has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ddv>
DefV: You also have to deal with concurrency problems. So you need to use synchronization primitive, like mutexes, semaphores etc
<ddv>
Or avoid all that and use something simple
sevenseacat has joined #ruby
blackmes1 has joined #ruby
Darryl___ has joined #ruby
Xeago has joined #ruby
arup_r_ has quit []
ponga has joined #ruby
argoneus has quit [Quit: leaving]
jcutrell has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
Xeago_ has joined #ruby
josephndenton has joined #ruby
aclearman037 has joined #ruby
vvivv has joined #ruby
metadave has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
thiagovsk__ has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
silkfox has joined #ruby
Asher2 has quit [Quit: Leaving.]
patrick99e99 has quit [Ping timeout: 265 seconds]
Guest3387 has joined #ruby
mostlybadfly has joined #ruby
patrick99e99 has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
odigity has joined #ruby
<odigity>
Is there a way to define and immediately invoke a function to get it's return value without giving it a name?
krz has joined #ruby
<odigity>
Basically, I'm trying to create a classic caching accessor (def foo; @foo ||= some_complex_calculation; end)
scripore has joined #ruby
joonty has quit [Quit: joonty]
moritzs has joined #ruby
<banister>
odigity use a lambda
pontiki has quit [Quit: off to work]
<banister>
odigity ->(x}{ x * x }.(4) #=> 16
<odigity>
I've seen that arrow syntax for defining rails scopes, so that's familiar. So the result of a lambda can be invoked with args via .()? nice
pdoherty has joined #ruby
<odigity>
I figured it would be just (), without the period, since the return value of a lambda should be a directly callable function, right?
<odigity>
oh, I get it
<odigity>
you're using . to call a method on it, and the method is ()
<odigity>
or .call to be more explicit, easier for noobs like me to read and understand
<workmad3>
odigity: yup, that's the one :)
<odigity>
cool, thanks banister, workmad3
<workmad3>
odigity: you can invoke a callable with .call, .(), [] or ===
<odigity>
that's weird
<banister>
odigity you cn also do this: def pig; yield end
moritzs has quit [Ping timeout: 256 seconds]
psy_ has quit [Quit: Leaving]
<workmad3>
[] strikes me as an odd choice... but it can look quite nice :)
<banister>
odigity pig { 4* 10 } #=> 10
brb3 has joined #ruby
<banister>
err
<banister>
40
dfinninger has joined #ruby
<workmad3>
the others all make a fair bit of sense
silkfox has quit [Ping timeout: 276 seconds]
<banister>
i think the pig method should exist in ruby core
Aova has quit [Read error: Connection reset by peer]
<banister>
it's really kinda cool
<workmad3>
banister: you could always submit a PR ;)
pdoherty has quit [Ping timeout: 245 seconds]
<workmad3>
banister: there's a few fun things in core... you can (or at least could for a while) compile ruby with GOTO support :D
<banister>
workmad3 im like a lily i would wilt if it ws rejected (which it would be)
* workmad3
now wants a live-stream of banister being disappointed... the compilation could be done as a weekly comedy broadcast
baltazore has quit [Remote host closed the connection]
<banister>
hehe
ta_ has joined #ruby
VictorBjelkholm has joined #ruby
<banister>
workmad3 what do u do when you're working on two branches each with significant schema changes
amdbcg has joined #ruby
<workmad3>
banister: I've tried a few things in the past... such as using ERb in database.yml to pull the git branch name into the database name
<workmad3>
banister: or setting a DATABASE_URL based on the branch name
<banister>
workmad3 i'm thinking of just backing up the db for each branch and doing a pg_restore when i switch the branch
<workmad3>
banister: but basically, my strategy is that if I'm in that situation, I run with 2 different dbs
Aova has joined #ruby
kl__ has joined #ruby
kl has joined #ruby
kotk has joined #ruby
withnale_ has quit [Ping timeout: 246 seconds]
<banister>
workmad3 ah ok. Does my pg_restore approach sound ok too?
<workmad3>
banister: another option would be to do '<% if `git rev-parse --abbrev-ref HEAD` != "master" %>schema_search_path: <%= `git rev-parse --abbrev-ref HEAD` %>' in pg
<workmad3>
banister: that would mean you create a separate schema in pg for each branch
<workmad3>
(or rather, it would search a different schema based on branch... you'd need to create/migrate each schema as you switched)
parduse has joined #ruby
ponga has quit [Remote host closed the connection]
<banister>
workmad3 yeah, lots of data changes in these migrations too..
<workmad3>
banister: only issue I could see is that if you forgot, it would be more annoying to spot :)
timonv has quit [Ping timeout: 272 seconds]
Megtastique has joined #ruby
<workmad3>
banister: and also, it would require doing a pg_backup/pg_restore on every branch change, rather than just once on a setup
ponga has joined #ruby
<workmad3>
although you could put it into a git hook, I guess
kotk_ has quit [Ping timeout: 256 seconds]
ponga has quit [Remote host closed the connection]
commmmodo has joined #ruby
dfinninger has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
amundj has joined #ruby
mroach has joined #ruby
quimrsto_ has joined #ruby
mroach has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
jerius has quit []
jcutrell has quit [Quit: jcutrell]
evanjs has joined #ruby
jerius has joined #ruby
ta has joined #ruby
_maes_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
jusmyth has quit [Quit: Leaving.]
quimrstorres has quit [Read error: No route to host]
quimrsto_ has quit [Remote host closed the connection]
enebo has joined #ruby
oleo has joined #ruby
znst` has quit [Read error: Connection reset by peer]
wodla00_ has quit [Ping timeout: 255 seconds]
pdoherty has joined #ruby
crueber has joined #ruby
tsnz has joined #ruby
tonyhb has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
jcutrell has joined #ruby
dumdedum has joined #ruby
ta has quit [Ping timeout: 272 seconds]
kith has joined #ruby
timonv has joined #ruby
quimrstorres has joined #ruby
ta has joined #ruby
yfeldblum has joined #ruby
fandi has joined #ruby
josephnd1nton has joined #ruby
pontiki has joined #ruby
nobitanobi has joined #ruby
quimrstorres has quit [Client Quit]
fandi has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
fandi has joined #ruby
fandi has quit [Max SendQ exceeded]
shredding has quit [Quit: shredding]
piratepete_ has joined #ruby
ta has quit [Ping timeout: 246 seconds]
OrbitalKitten has joined #ruby
<piratepete_>
mac os-x, chmod 755 mycommand (no rb extensio). … why would it not run on $PATH without ./ in front? I have to add dot-slash
freerobby has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
josephnd1nton has quit [Ping timeout: 276 seconds]
<workmad3>
piratepete_: because . isn't on your $PATH normally
<piratepete_>
workmad3 how can I fix that?
patrick99e99 has quit [Ping timeout: 245 seconds]
leonshalimov has joined #ruby
JDiPierro has joined #ruby
<workmad3>
piratepete_: it's not on there because it's normally a bad idea to automatically run from ./ without being explicit (easy way for malicious scripts to sneak in)
<workmad3>
piratepete_: so you 'fix' it by using ./<command>
patrick99e99 has joined #ruby
<piratepete_>
it’s a ruby script command-line exe that I want to just type $ mycommand —help e.g. without $ ./mycommand
<workmad3>
piratepete_: so get it installed into a location that is on the $PATH, e.g. /usr/bin
jtreminio has joined #ruby
<piratepete_>
workmad3 … thanks, understood
<nobitanobi>
How is this operator called: ```-=```?
<workmad3>
nobitanobi: I tend to say 'subtract and become'
<nobitanobi>
Ok, I just realized that you can use that in Rails to remove associated objects :O, but can't find it in the docs
<nobitanobi>
thanks
psy has joined #ruby
Ankhers has joined #ruby
<workmad3>
nobitanobi: the 'docs' would be the docs for the association - operator
<workmad3>
nobitanobi: as 'a -= b' expands to 'a = a - b' and invokes the - method
<apeiros>
L8: ^ proof that what I said works with your precise pasted code
sambao21 has quit [Quit: Computer has gone to sleep.]
kapil__ has quit [Quit: Connection closed for inactivity]
<mbff>
and a main.rb with a loop in it
<L8>
apeiros, noticed with the code
<mbff>
I run: ruby server_control.rb start
commmmodo has joined #ruby
evanjs has quit [Remote host closed the connection]
<mbff>
but status shows: main.rb: no instances running
<mbff>
any ideas on what I am doing wrong?
<L8>
apeiros, and if you want to do already small code review it would be cool :))
ericawebdev has joined #ruby
<apeiros>
L8: probably not. quite a pile of own work here :-(
sambao21 has joined #ruby
* L8
understands apeiros
<L8>
I have to write this thing in Ruby only because later the guys who'll own this are ops guys
<L8>
and those guys don't know anything except Ruby
evanjs has joined #ruby
ta has joined #ruby
<druid__>
Hi guys, I'm trying to inject a variable into a method definition from an outside scope. In the following paste I need to get banana into the @foo scope on line 9: http://pastie.org/9851766
albipri has joined #ruby
<ddv>
L8: ops guys should know how to code
wookiehangover has quit [Ping timeout: 245 seconds]
<ddv>
you can't be in IT and don't know how to code
<albipri>
Ciao! Qualche italiano che ha scritto in ruby l’integrazione per PayWay della banca BCC?
<ddv>
albipri: english....
<ddv>
do u speak it!?
<druid__>
I understand that between 9 and 11 I'm inside @foo's scope, but I need to include banana somehow
<albipri>
ddv: Sure! But it’s only an italian gateway provider. So I started to ask it in italian :-)
josephnd1nton has joined #ruby
dblessing has joined #ruby
tpilionis has joined #ruby
<banisterfiend>
druid__ local variables are not available in method definitions like that, unless you use @foo.define_singleton_method(:apple)
<druid__>
The real problem is to set an error handler for Rufus scheduler
<albipri>
Hi! Someone who has written in ruby the integration for PayWay italian bank BCC?
albipri has quit [Client Quit]
werelivinginthef has quit [Remote host closed the connection]
blackoperat has joined #ruby
livathinos has joined #ruby
livathinos has quit [Client Quit]
ponga has quit [Quit: Leaving...]
klmlfl has joined #ruby
luksaur has quit [Ping timeout: 252 seconds]
klmlfl_ has joined #ruby
klmlfl_ has quit [Remote host closed the connection]
x77686d has joined #ruby
jobewan has joined #ruby
x77686d has quit [Client Quit]
klmlfl has quit [Read error: Connection reset by peer]
wookiehangover has joined #ruby
klmlfl has joined #ruby
josephnd1nton has quit [Ping timeout: 272 seconds]
yjmsf20 has joined #ruby
chthon has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
<druid__>
thanks banisterfiend, it seems like it works
patrick99e99 has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
byprdct has joined #ruby
_maes_ has joined #ruby
d10n-work has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
brb3 has quit [Quit: ZZZzzz…]
livingstn has joined #ruby
werelivinginthef has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Megtastique has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<arup_r>
unicode code point of that character I get is 12288.. I have some strings.. In which I want to replace such characters using "" .. How to do so ? http://codepoints.net/U+12288
Megtastique has joined #ruby
Aova has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swills has joined #ruby
<druid__>
banisterfiend, I have a new (related) problem: For some reason the object I need to add a method to does not have the define_singleton_method method.
<swills>
i'm trying to update a gem that uses RHASH to work with 2.2, since RHASH is private in 2.2 (https://bugs.ruby-lang.org/issues/9889) -- anyone know the right way to do this now?
nobitanobi has quit [Remote host closed the connection]
mbff has quit [Quit: Leaving]
<druid__>
In fact the respond_to? method returns nil on @scheduler.respond_to? :define_singelton_method
iamninja has quit [Quit: ZZZzzz…]
<druid__>
This is on a rufus-scheduler-2.0.16 object
Aova has joined #ruby
Spami has joined #ruby
maximski has joined #ruby
Akuma has quit [Quit: So long sukkas!]
giuseppesolinas has quit [Quit: Leaving]
fgo_zzZz has joined #ruby
kitofr has quit [Ping timeout: 240 seconds]
<odigity>
OMG. 'or' has a higher precedence than 'and'. A or B and C = (A or B) and C. totally not what I was expecting, and not want I've seen in other languages if memory servces
chthon has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
ascarter has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
brb3 has joined #ruby
<oleo>
(a+b)*c
<oleo>
else you'd have a+b*c
ascarter has quit [Max SendQ exceeded]
<oleo>
stead of a*c+b*c
<odigity>
I think most other languages bind 'and' more tightly than 'or', which is why I was surprised
<oleo>
distribution
<odigity>
but yes, I will start using parens
patrick99e99 has quit [Ping timeout: 276 seconds]
<oleo>
heh
ascarter has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
patrick99e99 has joined #ruby
nobitanobi has joined #ruby
evanjs has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
fgo_zzZz has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
sambao21 has joined #ruby
iamjarvo has joined #ruby
i0n has quit [Quit: snooze]
evanjs has joined #ruby
dc has joined #ruby
OrbitalK_ has joined #ruby
fandi has joined #ruby
jfran has joined #ruby
The_Phoenix has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
kl__ has quit [Ping timeout: 276 seconds]
kl has quit [Ping timeout: 276 seconds]
albipri has joined #ruby
nicolastarzia has joined #ruby
baroquebobcat has joined #ruby
Guest3387 has quit [Quit: Leaving.]
Asher has joined #ruby
<albipri>
Hi! Someone who has written in ruby the integration for PayWay italian bank BCC?
dc has quit [Ping timeout: 252 seconds]
OrbitalKitten has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
Hobogrammer has joined #ruby
ursooperduper has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tobago has quit [Remote host closed the connection]
<shevy>
odigity yeah, that used to trip me up too when I was using "if foo and !foo.bar 'bla' and bar.yadda 'hmm'"
<shevy>
when I have to use several conditionals including negations, I tend to use () just so that I don't get tripped up
<albipri>
shevy: Maybe you're right… But who knows, maybe the one who made that integration is now connecting…
<shevy>
hehe
nanoyak has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<shevy>
well 951 people here!
Fire-Dragon-DoL has joined #ruby
<shevy>
I estimate 3 to 5 from italy
<odigity>
shevy, I fixed it by creating a method called "false_and_set_error" so that I can say foo = User.find_by_whatever() or return false_and_set_error('user not found')
deric_skibotn has joined #ruby
<shevy>
hehehe
<shevy>
reads a bit strange
patrick99e99 has quit [Ping timeout: 264 seconds]
<shevy>
but at least it is straightforward
fgo_zzZz has joined #ruby
patrick99e99 has joined #ruby
moted has joined #ruby
<shevy>
you have to use the return statement there?
<odigity>
better than foo = User.find_by_whatever() or (set_error('user not found') and return false)
shime_ has quit [Ping timeout: 255 seconds]
commmmodo has quit [Quit: commmmodo]
doodlehaus has quit [Remote host closed the connection]
chu has joined #ruby
<waxjar>
put the different statements on different lines
fedalto has joined #ruby
rippa has joined #ruby
<odigity>
I do if I don't want the rest of the method to run. which I don't. there are several statements like that in a row, checking conditions. I don't like turning them into deeply nested ifs. rather just return immediately
try has quit [Ping timeout: 245 seconds]
<odigity>
I like one-liners because I can see more logic on one screen, which is good for mental context, as long as it's still readable. obviously there's a point at which I'd break it into multiple lines
sambao21 has quit [Quit: Computer has gone to sleep.]
<odigity>
but a simple check for a condition that returns an error? rather get it done in one line. it's clear what the purpose is, and it's not the heart of the method. don't let it take over.
<shevy>
odigity ah I see
<shevy>
thought there was only one statement
<waxjar>
if anything it's less readable, imo. every time you look at that code you'll have to look up precedence rules.
<shevy>
I hate looking up precedence rules
sinkensabe has quit [Ping timeout: 256 seconds]
msgodf has quit [Remote host closed the connection]
tpilionis has quit [Ping timeout: 255 seconds]
<shevy>
certainty you there?
icebourg has joined #ruby
<Nilium>
No, only ambiguity
<waxjar>
something like unless foo; set_error; return false; end; # rest of the method would be far more readable, imo
josephnd1nton has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
L8: just ProfileManager.load? because it should be Dynkle::Director::ProfileManager.load...
rbennacer has quit [Remote host closed the connection]
sambao21 has joined #ruby
OrbitalK_ has joined #ruby
bricker has joined #ruby
<L8>
workmad3 with the module
fryguy9 has quit [Quit: Leaving.]
msmith_ has joined #ruby
<workmad3>
L8: well, that's odd... because it works perfectly on my machine :/
<L8>
ruby version?
<workmad3>
2.1.5
<L8>
sec
<L8>
the same
<L8>
darn
<workmad3>
and 2.2
<atmosx>
workmad3: what is he trying to do?
<workmad3>
atmosx: make 'new' private and call it from a factory method in another class
pu22l3r has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
OrbitalKitten has quit [Ping timeout: 245 seconds]
jonesthedolphin has quit [Ping timeout: 244 seconds]
davedev24_ has quit [Ping timeout: 245 seconds]
troubadour has quit [Quit: troubadour]
iamninja has joined #ruby
<L8>
workmad3 osx?
moritzs has joined #ruby
<L8>
idk, maybe some env issue
aswen has quit [Ping timeout: 245 seconds]
OrbitalK_ has quit [Client Quit]
mikecmpbll has quit [Quit: ciao.]
<workmad3>
L8: btw, as a quick note - it should be 'require "json"'... 'require "JSON"' will break if you're on a case-sensitive filesystem
<workmad3>
L8: I'm on OSX, yes
<L8>
workmad3 thanks for the tip
<L8>
well I'm clueless for now
tubuliferous has joined #ruby
lkba has joined #ruby
Aova has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
<workmad3>
L8: well, you could potentially put up exact file contents for the two files in question, and the full stack trace of your error (preferably on gist.github.com as it has decent multi-file support, syntax highlighting and not filled with crappy ads like pastebin :) )
<atmosx>
workmad3: class Test; private_class_method :new; end didn't work I guess? (although no idea why would anyone wanna do that)
<L8>
brb
<workmad3>
atmosx: it works for me :)
Parker0 has quit [Ping timeout: 256 seconds]
<workmad3>
atmosx: he's getting a 'no method new for (main)' error
<workmad3>
hence asking for more :)
odin22 has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
<atmosx>
I see, did you look at the code? yestrday a guy was trying to figure why he couldn't initialize a method, after a little bit of searching 'vim' showed that he didn't spell 'initialize' correctly.
n80_ has quit [Quit: n80_]
danman_ has joined #ruby
<workmad3>
atmosx: asking for it now :P
<atmosx>
haha
JDiPierro has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 246 seconds]
<atmosx>
workmad3: btw did you read 'Practical OOD in Ruby' by Sandi Metz?
<workmad3>
yeah, I've read poodr
<atmosx>
poodr hahah cool name
<atmosx>
workmad3: liked it?
<workmad3>
yeah, it was nice and cohesive, and well written, making it easy to read and follow along with :)
<atmosx>
workmad3: that's true.
danman has quit [Ping timeout: 256 seconds]
danman_ is now known as danman
allcentury has quit [Ping timeout: 244 seconds]
<workmad3>
didn't exactly learn a lot of new stuff myself, but I didn't exactly expect to... but it connected up some bits of disparate knowledge for me, and it's a book I'd happily recommend to beginners and intermediates
<atmosx>
workmad3: it was my sister's gift for Christmass, I found the first chapter extremely verbose but the 2nd one was nice.
<L8>
workmad3 well you really really helped me
danman has quit [Client Quit]
<workmad3>
L8: what did you notice? :)
<L8>
<atmosx>I see, did you look at the code? yestrday a guy was trying to figure why he couldn't initialize a method, after a little bit of searching 'vim' showed that he didn't spell 'initialize' correctly.
<atmosx>
workmad3: Yeah, for me is good.
<L8>
this line was the answer
<L8>
silly me did
danman has joined #ruby
<L8>
pm = new ProfileManager.load 'profile;
<atmosx>
L8: you were bashing ruby right? lol
<L8>
'
Aova has joined #ruby
<workmad3>
L8: hehe
centrx has joined #ruby
<L8>
goddamit
<workmad3>
L8: hence why I was wanting to see the exact contents ;)
<L8>
well, this logs never happened
maletor has joined #ruby
<L8>
I was never here
n80_ has joined #ruby
<workmad3>
L8: you know the channel is publicly logged, right? :P
<atmosx>
hahaha
<atmosx>
don't worry it's public
druid__ has quit [Quit: Leaving]
einarj has quit [Remote host closed the connection]
greenarrow has quit [Quit: 500]
<L8>
:)
jyqokk has quit [Read error: Connection reset by peer]
<workmad3>
L8: but yeah... most people have had at least one experience of "How can I have this error? all that's in there is a single line that I've looked at dozens of times and it's fine!"... it happens across all languages and to just about all people at some point :)
<workmad3>
L8: it's a learning experience at the very least... both to look more closely, and to not be as dismissive when someone says "Can you show me the other bit of code that's causing the error please?" ;)
bronson has joined #ruby
<atmosx>
L8: your mistake would be harder to grasp though
ki0 has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
<L8>
I'll try not to rewrite it to Python
werelivinginthef has joined #ruby
deryl has joined #ruby
claudiuinberlin has quit [Quit: Leaving.]
chrishough has joined #ruby
ixti has joined #ruby
Xeago has joined #ruby
ddd has quit [Ping timeout: 244 seconds]
deol has joined #ruby
keen__________39 has joined #ruby
deryl is now known as ddd
i0n has quit [Quit: snooze]
deol has quit [Client Quit]
werelivinginthef has quit [Read error: Connection reset by peer]
werelivi_ has joined #ruby
gfawcettpq1 has quit [Quit: Leaving.]
yjmsf20 has quit [Ping timeout: 245 seconds]
whoisjake has quit []
L8 has quit [Ping timeout: 264 seconds]
keen__________38 has quit [Ping timeout: 255 seconds]
Doow has quit [Quit: Leaving]
Xeago_ has quit [Ping timeout: 240 seconds]
deol has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
Timgauthier has quit [Ping timeout: 245 seconds]
Pumukel has joined #ruby
doodlehaus has joined #ruby
Timgauthier has joined #ruby
werelivi_ has quit [Read error: Connection reset by peer]
shashin has quit [Quit: Leaving...]
jusmyth has joined #ruby
werelivinginthef has joined #ruby
shime has joined #ruby
wallerdev has quit [Quit: wallerdev]
shazaum has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
jenrzzz has joined #ruby
n80_ has quit [Quit: n80_]
Timgauthier has quit [Max SendQ exceeded]
nicolastarzia has quit [Remote host closed the connection]
Timgauthier has joined #ruby
leafybasil has quit [Remote host closed the connection]
tyfighter has joined #ruby
jusmyth has quit [Ping timeout: 245 seconds]
allcentury has joined #ruby
nobitanobi has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
Hobogrammer has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
WillAmes has quit [Remote host closed the connection]
Timgauthier has joined #ruby
WillAmes has joined #ruby
sambao21 has joined #ruby
longfeet has joined #ruby
pu22l3r has joined #ruby
dmolina has quit [Quit: Leaving.]
pu22l3r has quit [Remote host closed the connection]
<shevy>
hehe
craigp has quit [Remote host closed the connection]
thumpba has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
Timgauthier has quit [Max SendQ exceeded]
davedev has joined #ruby
ldnunes has joined #ruby
Zai00 has quit [Quit: Zai00]
ixti has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
uptownhr has joined #ruby
Timgauthier has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
<centrx>
HAHAHA
ghr has joined #ruby
Xeago has quit [Remote host closed the connection]
towski_ has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
wald0 has joined #ruby
noop has joined #ruby
Timgauthier has joined #ruby
craigp has joined #ruby
mskaesz has quit [Remote host closed the connection]
pdoherty has quit [Remote host closed the connection]
athan has quit [Ping timeout: 246 seconds]
slester has quit [Ping timeout: 240 seconds]
Timgauthier has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
pdoherty_ has joined #ruby
iamjarvo has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Timgauthier has joined #ruby
whoisjake has joined #ruby
wallerdev has joined #ruby
jfran has quit [Ping timeout: 246 seconds]
klmlfl has joined #ruby
fgo_zzZz has quit [Ping timeout: 264 seconds]
<shevy>
"Technically, the early hacker culture was largely hosted on PDP-10 minicomputers. They used a variety of operating systems that have since passed into history: TOPS-10, TOPS-20, Multics, ITS, SAIL. They programmed in assembler and dialects of Lisp."
<shevy>
man
<shevy>
lisp is old
<kenichi>
brain is farting - how do i pass --seed XX to minitest rake task?
<Nilium>
And then somehow web developers came into being, and programming was ruined forever
Timgauthier has quit [Max SendQ exceeded]
<centrx>
Eternal September
doodlehaus has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 245 seconds]
marr has joined #ruby
nobitanobi has quit [Remote host closed the connection]
_5kg has quit [Ping timeout: 245 seconds]
<shevy>
Nilium well it more became accessible for the masses
<shevy>
the rise of php!
alex88 has quit []
<shevy>
centrx's favourite language
<Nilium>
Curse what accessibility has done
maximski has joined #ruby
_5kg has joined #ruby
<centrx>
Without PHP, our types would be less flexible
maximski has quit [Max SendQ exceeded]
<Nilium>
I will cut you
<centrx>
PHP will cut you
anaeem1_ has joined #ruby
<centrx>
What web framework are you going to use when you travel back in time? Perl? pshaw
maximski has joined #ruby
jamgood96 has joined #ruby
Timgauthier has joined #ruby
VictorBjelkholm has quit [Quit: Leaving]
<Nilium>
Cobol
<Nilium>
Grace Hopper will teach me
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<GaryOak_>
hahaha
PierreRambaud has quit [Quit: Quitte]
andikr has quit [Remote host closed the connection]
anaeem1_ has quit [Read error: Connection reset by peer]
<GaryOak_>
Depending on how far back in time you went, there wouldn't be an internet
<Nilium>
Don't worry, I have stack overflow printed out.
yxhuvud has joined #ruby
<Nilium>
All 300 useful answers and the remaining three billion garbage ones
<GaryOak_>
You can be the Bret Victor of the 1960's which was actually Alan Kay
thiagovsk__ has quit [Quit: Connection closed for inactivity]
<Nilium>
Join Us is a good album
kl has joined #ruby
kl__ has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
anaeem1_ has joined #ruby
yxhuvud has quit [Remote host closed the connection]
neanias has joined #ruby
Timgauthier has joined #ruby
nicolastarzia has joined #ruby
ldnunes has quit [Ping timeout: 245 seconds]
niftylettuce has joined #ruby
i0n has joined #ruby
ldnunes has joined #ruby
defrang has quit [Quit: defrang]
<GaryOak_>
what is that?
anaeem1_ has quit [Read error: Connection reset by peer]
deol has joined #ruby
shivamib has joined #ruby
maximski has quit []
nicolastarzia has quit [Read error: Connection reset by peer]
pu22l3r_ has quit [Remote host closed the connection]
matthewhill has quit [Quit: Be back later ...]
evanfreeman is now known as EvanFreeman
nobitanobi has joined #ruby
<havenwood>
louism2wash: Turn trace instruction off if you turn tail-call optimization on.
<louism2wash>
could you not perform a sorting algorithm using a recursive method that implements TCO due to the fact that you can't "call back up the stack" once the base case is reached?
pu22l3r_ has quit [Read error: Connection reset by peer]
razieliyo has quit [Read error: Connection reset by peer]
<jhass>
also maybe check where the executables come from with the which command
jimms has joined #ruby
timgauthier_away has quit [Max SendQ exceeded]
pu22l3r has joined #ruby
papercode has joined #ruby
djbkd has joined #ruby
shredding has quit [Ping timeout: 245 seconds]
Timgauthier has joined #ruby
derJan has quit [Ping timeout: 265 seconds]
slester has joined #ruby
<havenwood>
jcrubino: if you're using RVM then you should have rubygems-bundler, which means you don't need to explicitly prefix `bundle exec` to your command: https://rvm.io/integration/bundler#rubygems-bundler
<havenwood>
rather, to get the non-bundler version prefix: NOEXEC_DISABLE=1
anaeem1_ has quit [Remote host closed the connection]
<rpag>
havenwood, when i read 'green-big-frog' i thought you meant that link is a big green frog. irc names :O
uptownhr has quit [Quit: uptownhr]
<havenwood>
hehe
jenrzzz has quit [Ping timeout: 244 seconds]
razieliyo has joined #ruby
tonyhb has joined #ruby
reset has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
matthewhill has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
nobitanobi has quit [Remote host closed the connection]
Synthead has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
Timgauthier has joined #ruby
lsmola has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
jenrzzz has joined #ruby
aclearma_ has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
jpstokes has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
papercode has joined #ruby
<jpstokes>
1. You have a number between -8192 and 8192.
<jpstokes>
1. Add 8192 to a raw value, so its range is translated to [0..16383]
<jpstokes>
2. Pack that value into two bytes such that the most significant bit of each is cleared
<jpstokes>
trying to do the following:
terlar has joined #ruby
ramfjord has joined #ruby
i0n has joined #ruby
<jpstokes>
Can't figure out how to do #2
aclearman037 has quit [Ping timeout: 265 seconds]
<jhass>
Check Array#pack
martinium has quit [Remote host closed the connection]
Timgauthier has joined #ruby
<jpstokes>
I have but I don't see how you pack it into exactly 2 bytes
nobitanobi has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
<jhass>
if everything else fails, Integer#& and Integer#>>/Integer#<<
<jpstokes>
array pack is like [21].pack('C2') but total number of bytes using pack may be 4 but it will only return 2 which give me the wrong result when I try to decode it
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aova has quit [Read error: Connection reset by peer]
jcrubino has quit [Ping timeout: 244 seconds]
ldnunes has joined #ruby
<jpstokes>
How would I pack a number like 21 into two bytes and clear the most significant bit???
Megtastique has joined #ruby
terlar has quit [Client Quit]
oo_ has joined #ruby
WishBoy- has joined #ruby
commmmodo has joined #ruby
<jhass>
as said, if everything else fails through some bitshifting and masking
<rpag>
i bet terrorists write code like [21].pack('C4')
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<jpstokes>
rpag: lol
cmoneylulz has quit [Read error: Connection reset by peer]
cmoneylulz has joined #ruby
baweaver has quit [Remote host closed the connection]
<jpstokes>
documentation on this stuff is seriously lacking...and I don't know how to bitshift...at least I don't understand the logic behind it
<jhass>
did you google?
kenneth has joined #ruby
<jhass>
bitshifting and masking is quite fundamental stuff
waxjar has joined #ruby
<jhass>
I'm sure there are tons of resources for it
WishBoy has quit [Ping timeout: 245 seconds]
WishBoy- has quit [Remote host closed the connection]
frek818 has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
mloveless has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 240 seconds]
claw___ has joined #ruby
athan has joined #ruby
Aova has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
<jhass>
jpstokes: it might help to look a bit at the bit patterns, .to_s(2) should come in handy while experimenting
<jhass>
;)
<jpstokes>
yep reading up on bitshifting now
x023 has quit [Ping timeout: 246 seconds]
<jpstokes>
I still don't think this will help with packing the resulting value to 2 bytes though
claw__ has quit [Ping timeout: 256 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
poguez has joined #ruby
tcrypt has quit []
workmad3 has joined #ruby
shredding has quit [Quit: shredding]
sinkensabe has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
Spami has joined #ruby
ta has joined #ruby
Prometheian has joined #ruby
SparkMasterTape has joined #ruby
Megtastique has quit []
`ph8 has quit [Ping timeout: 246 seconds]
craigp has quit [Remote host closed the connection]
shredding has joined #ruby
mayday_jay has joined #ruby
pdoherty_ has quit [Remote host closed the connection]
Adran- is now known as Adran
jenrzzz has joined #ruby
fgo_zzZz has joined #ruby
jimms has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
josephnd1nton has joined #ruby
last_staff has joined #ruby
sinkensabe has joined #ruby
JBreit has joined #ruby
dumdedum has quit [Quit: foo]
n80_ has quit [Quit: n80_]
JBreit has left #ruby [#ruby]
fgo_zzZz has quit [Ping timeout: 256 seconds]
anaeem1_ has quit [Ping timeout: 272 seconds]
n80_ has joined #ruby
jumex has joined #ruby
josephnd1nton has quit [Ping timeout: 256 seconds]
craigp has joined #ruby
<jumex>
Hi all. I have an odd question. I am using the default Ruby Logger class like so to roll my logs: Logger.new(log_file, shift_age = 'daily’), which make my logsrolls look like “development.log.20150121,” but in order to integrate my system with the system I am working with, I need the logrolls to look like “development.log.2014-01-21.” Does anyone here know how to change the log roll format?
eytanfb has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
bronson has quit [Read error: Connection reset by peer]
rodfersou has quit [Quit: leaving]
Hijiri has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
<centrx>
jumex, There is a "formatter" attribute on the logger, which you can change
kl__ has quit [Ping timeout: 264 seconds]
kl has quit [Ping timeout: 264 seconds]
<centrx>
jumex, the formatter can be a block or a class that responds to #call
lkba has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<shevy>
hmm
<shevy>
why do we guys use Foo.new
<shevy>
and not just Foo[]
klmlfl has quit [Remote host closed the connection]
frek818 has joined #ruby
yfeldblum has joined #ruby
<GreatDanton>
is it worth to spend time learning how to make Gui using Ruby or should I learn Python instead?
<wasamasa>
creating guis will suck either way
<wasamasa>
have you considered doing a webui?
klmlfl has joined #ruby
uptownhr has joined #ruby
<weeb1e_>
GreatDanton: WebUI is your best option by far
<mozzarella>
why does it suck?
davedev has quit [Ping timeout: 246 seconds]
<weeb1e_>
Building desktop GUI applications is a pain in general
<weeb1e_>
The only way to achieve a light weight distributable package is by building a native application, and even then the GUI library you'll use will probably be pretty large
shazaum has quit [Quit: This computer has gone to sleep]
<GreatDanton>
i got no idea what webui is
<weeb1e_>
GreatDanton: You may want to look into building a web application and using Overwolf to wrap it in a nice looking desktop window
<GreatDanton>
google gives me nothing
jcrubino has quit [Quit: Leaving]
<weeb1e_>
Overwolf has the advantage of also being able to function as a directx overlay inside other full screen applications
gawd has quit [Quit: Leaving]
<weeb1e_>
GreatDanton: WebUI is a web application, a web server to serve the files, html and css for layout, javascript for client-side scripting
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sssilver>
yeah see, this is a problem... someone who just needs to use a tool ought to be able to count on his package manager to get the whatever-dependencies, and then use them like any other Linux program
nuck has joined #ruby
<wallerdev>
then blame debian or whatever OS you're on
IrishGringo has quit [Ping timeout: 245 seconds]
pdoherty has quit [Remote host closed the connection]
<wallerdev>
most package managers are behind on updates, that's just how they work, they never update anything because they don't want to break things so things just stay stagnant or years behind
adriancb has quit [Remote host closed the connection]
<sssilver>
well they don't wanna break anything, because breaking stuff, you know, matters
<wallerdev>
ruby 1.9.3 was released in october 2011
<sssilver>
so some projects need to be less like "we'll make crap now and fix it later" towards more like "lets polish our turd before shipping it"
zzzbra has quit [Quit: WeeChat 1.1]
ramfjord has quit [Ping timeout: 245 seconds]
Rhainur has joined #ruby
<omosoj>
do you guys like the OO paradigm?
<wallerdev>
i like it
beneggett has joined #ruby
Rhainur1 has quit [Ping timeout: 245 seconds]
<wallerdev>
nice for representing quantifiable objects
<sssilver>
especially projects that are as fundamental as a package manager of an almost-popular programming language
* sssilver
shrugs
ozialien has joined #ruby
tonyhb has joined #ruby
<omosoj>
is it easy for you guys to conceptualize programs with OO? i'm still having trouble
<sssilver>
omosoj: no, it's not easy
<sssilver>
omosoj: OO has its philosophical issues
<wallerdev>
meh i find it pretty easy for most projects i work on
<sssilver>
omosoj: that skill comes with experience and taste
<omosoj>
i feel like for some reason it's not my natural mode of thinking
<omosoj>
and that it's actually kinda weird. but, i mean, what do i know
<sssilver>
omosoj: you'll find yourself pondering "is it the dog that eats the bone, or is it the bone that gets eaten by the dog"
hiyosi has joined #ruby
<havenwood>
sssilver: What disto are you on?
recurrence has joined #ruby
<sssilver>
omosoj: however nasty it feels, spend some years with it before you switch to Haskell ^.^
<omosoj>
i'm reading articles online about it to try to learn it
<omosoj>
sssilver: LOL! i'm learning haskell little by little now :) why do you say that?
<sssilver>
havenwood: I'm on Ubuntu, but my Dockerfile with the issue is derived from Debian
<shevy>
omosoj do you know alan kay? if not, there are some great lectures he did on old school OOP
<recurrence>
If I extend a class in ruby then override osme functions and then call a super’s function. Will the super function call functions of the child class or the super class when invoking them?
<omosoj>
shevy, cool, i'll check them out
mrmargolis has quit [Remote host closed the connection]
<sssilver>
omosoj: just because OO skills are always useful to have, even if you're a hardcore FP person
<omosoj>
sssilver, why? well, i know that haskell isn't used on a lot of projects so economically it's not the best language to learn
CpuID has quit [Quit: This computer has gone to sleep]
<wallerdev>
all skills are useful to have
<shevy>
learn php
<sssilver>
omosoj: it's not about Haskell, it's about the paradigm. Functional, stateless, declarative programming vs. Object-oriented, stateful, imperative programming
<havenwood>
shevy: nooo
<wallerdev>
the more programming languages you learn the more optiosn you have for approaching problems
marr has joined #ruby
<wallerdev>
always a +
tcrypt has joined #ruby
<shevy>
:)
jerematic has quit [Remote host closed the connection]
<wallerdev>
did you guys know they sell coffee in cans?
<omosoj>
yeah, need to learn a few varieties of languages
riotjone_ has joined #ruby
<wallerdev>
we got some at work this week and its really good
Zai00 has quit [Quit: Zai00]
<sssilver>
omosoj: good luck implementing something inherently stateful (like World of Warcraft) using a stateless machine :))
<wallerdev>
called UCC Coffee
<shevy>
wallerdev better than selling them in coffins
jerematic has joined #ruby
<omosoj>
sssilver, maybe it's because i've never built a large application from scratch. now i just conceptualize things as a series of functions, i guess.
<wallerdev>
my only FP experience is erlang which is a pretty cool language
<sssilver>
omosoj: OK that's different, that's not necessarily "functional programming" in the traditional sense
timonv has quit [Ping timeout: 245 seconds]
<sssilver>
omosoj: try to build larger apps using functions, and you'll start noticing some redundancies
shivamib_ has joined #ruby
<sssilver>
omosoj: at some point you'll be like "man I wish I had a class so I didn't have to write all this boilerplate list of arguments in all my functions"
riotjones has quit [Ping timeout: 245 seconds]
<omosoj>
is OO the only way to deal with it? aren't here modules or something in other languages?
<sssilver>
there are monads
<omosoj>
or are modules OO constructs..?
djbkd has quit [Remote host closed the connection]
<sssilver>
but if you're struggling with OOP, you'll probably be struggling with Monads :)
<omosoj>
yeah, monads :) i've heard of them in haskell
<omosoj>
are monads like environments that provide resources?
<sssilver>
dude
Aova has quit [Read error: Connection reset by peer]
waltert__ has quit [Quit: Leaving...]
<sssilver>
haven't you heard of the curse of monads?
leonshalimov has quit [Ping timeout: 265 seconds]
shivamib has quit [Ping timeout: 246 seconds]
<GaryOak_>
what are momndads?
<omosoj>
i've heard scary things about them, but not about the curse lol
kirun has quit [Remote host closed the connection]
<GaryOak_>
from the wiki, on the programmer level, they are just function chains
tpilionis has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
baweaver has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<wallerdev>
what is a checkbox array?
<omosoj>
this guy seems cool
pontiki has quit [Quit: heading home]
<GaryOak_>
but there's a lot of comp sci math that doesn't really pertain to anyone but language devs
JimmyNeutron has quit [Read error: Connection reset by peer]
<wallerdev>
you can do something like <% accounts.each do |account| %> <input blah blah blah value="<%= account.id %>"> <% end %>
<omosoj>
GaryOak_, i haven't gotten very deep so i don't even know why they're considered so difficult to understand
djbkd has joined #ruby
tjohnson has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
beneggett has quit [Read error: Connection reset by peer]
Aova has joined #ruby
ccooke_ is now known as ccooke
beneggett has joined #ruby
<havenwood>
i think it usually goes: endofuncto(head explodes)r
ellisTAA has joined #ruby
gz_rain has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
<ellisTAA>
i’m trying to understand factory methods & constructors in ruby and can’t find a good source. anyone know of one?
jgt2 has quit [Ping timeout: 255 seconds]
matthewhill has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
Zai00 has joined #ruby
xivusr has quit [Ping timeout: 264 seconds]
<wallerdev>
a factory would be like you have various services, TwitterService, FacebookService, GooglePlusService. you call my_service = CoolFactory.create(:twitter); my_service.get_posts
martinium has joined #ruby
<wallerdev>
not the most useful concept really in ruby
asmodlol has quit [Read error: Connection reset by peer]
<GaryOak_>
wallerdev: does duck typing negate the need for factories in ruby?
<wallerdev>
meh factories dont seem that useful in general to me but yeah the fact that theres no interfaces you have to implement makes them seem like not a real pattern anymore
gz_rain has joined #ruby
<pipework>
Whale, Factories are awesome
ziyadb has joined #ruby
<pipework>
wallerdev: What do you mean? You could use your own method, or you could just use .new
veduardo has joined #ruby
<wallerdev>
hm?
<GaryOak_>
I think factories are more for setting up a complex object dynamically
<ellisTAA>
is factory method anything that is standard in ruby? like def or puts ?
<pipework>
In terms of the Factory Pattern, they're great for creating complex object hierarchies.
apeiros has quit [Remote host closed the connection]
<pipework>
ellisTAA: What do you mean like def or puts?
apeiros has joined #ruby
<GaryOak_>
ellisTAA: Not really, factories are a design pattern
<ellisTAA>
i mean is a factory method something that for a lack of a better way of putting it methods that everyone uses like puts or .new
<ellisTAA>
a design pattern?? i guess ill look that up ...
<GaryOak_>
not a language feature
martinium has quit [Ping timeout: 245 seconds]
leafybasil has quit [Remote host closed the connection]
tcrypt has quit [Remote host closed the connection]
co0k13m0ns13r has joined #ruby
beneggett has quit [Read error: Connection reset by peer]
gz_rain has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
<ellisTAA>
what does it mean if pipes come before an equal sign? like @cache ||= {}
CrazyM4n has quit [Remote host closed the connection]
rpag has quit [Quit: Leaving]
tcrypt has joined #ruby
<shivamib_>
ellisTAA, it will assign something unless it already has something
<wallerdev>
it means @cache || @cache = {}
gz_rain has joined #ruby
blackmes1 has quit [Ping timeout: 255 seconds]
<ellisTAA>
thanks
<shivamib_>
of course
gz_rain has quit [Read error: Connection reset by peer]
athan has quit [Read error: Connection reset by peer]
x77686d has quit [Quit: x77686d]
<co0k13m0ns13r>
test
<co0k13m0ns13r>
Oh I can speak! cool ^.^
<wallerdev>
lucky you
<co0k13m0ns13r>
truckloads.
athan has joined #ruby
jerematic has quit [Remote host closed the connection]
mloveless has quit [Remote host closed the connection]
tokik has joined #ruby
<jumex>
Thanks for helping me pinpoint what I needed to change.
ptrrr has quit [Quit: ptrrr]
baweaver has quit [Remote host closed the connection]
<Fire-Dragon-DoL>
mhhh are there any method that allows me to find the first occurence of an element in array, for example (pseudocode) find { |elem| elem.something == 'foo' }
recurrence has left #ruby [#ruby]
<Fire-Dragon-DoL>
first returning true should be returned, otherwise nil
<wallerdev>
find ?
<Fire-Dragon-DoL>
doh
<jhass>
Fire-Dragon-DoL: it works exactly like you wrote?
<Fire-Dragon-DoL>
oh man I was looking in ARRAY
<Fire-Dragon-DoL>
lol
<wallerdev>
lol
<wallerdev>
pseudocode is the answer
<wallerdev>
just write your pseudocode and click run :p
<wallerdev>
wikipedia's example is awful for factory pattern lol
<wallerdev>
lets name a class IPhone after starting with the idea that interfaces start with I
<pipework>
It's a good read, the uml sucks though.
gz_rain has joined #ruby
<jhass>
it's a wiki, patch in a better one ;)
martinium has joined #ruby
LouisRoR has quit [Ping timeout: 245 seconds]
gz_rain has quit [Read error: Connection reset by peer]
<pipework>
Also, I is prefaced for Interface
martinium has joined #ruby
martinium has quit [Changing host]
martinium has quit [Client Quit]
<wallerdev>
right and IPhone is not an interface
withnale_ has quit [Quit: Be back later ...]
<pipework>
I don't get the joke.
blackmes1 has joined #ruby
<wallerdev>
it's not a joke
martinium has joined #ruby
blackmes1 has quit [Client Quit]
<wallerdev>
they could've picked anything else but they picked a word that has an I at the front for the implementation class
tcrypt has quit [Read error: Connection reset by peer]
mkaesz has quit [Remote host closed the connection]
blizzy has joined #ruby
gz_rain has joined #ruby
tcrypt has joined #ruby
<wallerdev>
the whole point of putting I at the front of interfaces is so you look and are like IAnimal, oh that must be an interface for animals
<wallerdev>
But IPhone could be an interface for phones, or it could be the literal apple iPhone
<ellisTAA>
i started listening to the rubyrogues podcast. anyone know of a better one?
echevemaster has joined #ruby
tsnz has joined #ruby
<Nilium>
Holy crap the mental illness that Blackberry executives must be suffering from right now
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/20150108202552]]
<Nilium>
Well, no, that's rude to people suffering with mental illness.
tjbiddle has quit [Read error: Connection reset by peer]
gz_rain has quit [Read error: Connection reset by peer]
<ellisTAA>
so if i have class Car and i want to create a instance of it using ford = Car.new, is .new a factory method?
tjbiddle has joined #ruby
<wallerdev>
no
<wallerdev>
since Car.new always returns a Car
<ellisTAA>
so is .new a constructor?
<wallerdev>
yeah
<wallerdev>
its like ford = new Car() in other languages
gz_rain has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
athan has quit [Ping timeout: 240 seconds]
uxp__ has quit [Quit: Lost terminal]
uxp_ is now known as uxp
athan has joined #ruby
blackmesa has joined #ruby
tsnz has quit [Ping timeout: 252 seconds]
<ellisTAA>
i see
epx998 has joined #ruby
<wallerdev>
keep in mind if you delve into design patterns that the main ones were created with c++ in mind, and might not be as useful in other languages
j0n3 has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
<jhass>
keep in mind that design patterns represent an idea, not necessarily a literal implementation
<jhass>
they give names to concepts so you can talk about them without explaining the concept every single time
kaspertidemann has joined #ruby
blandflakes has joined #ruby
<wallerdev>
+1
gz_rain has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]