apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
jerius has quit [Client Quit]
Sawbones_ has joined #ruby
sinkensabe has joined #ruby
baweaver has joined #ruby
alkoma has quit [Remote host closed the connection]
shime_ has joined #ruby
gattie has quit [Quit: Leaving...]
Sawbones_ has quit [Remote host closed the connection]
nanoyak has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
nanoyak has joined #ruby
leonshalimov has quit [Ping timeout: 272 seconds]
iceden has quit [Read error: Connection reset by peer]
shime has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Ping timeout: 245 seconds]
delianides has joined #ruby
delianides has quit [Remote host closed the connection]
delianides has joined #ruby
adriancb has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
kt2 has joined #ruby
akamel has quit [Quit: Leaving.]
fenzil has joined #ruby
freerobby has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
mikepack has quit [Remote host closed the connection]
kt2 has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby
kt2 has joined #ruby
elfuego has quit [Quit: elfuego]
fgo has quit [Ping timeout: 265 seconds]
Gnubie_ has joined #ruby
roshanavand has joined #ruby
nateberkopec has quit [Quit: Leaving...]
tyfighter has quit [Quit: tyfighter]
Megtastique has quit []
Sawbones_ has joined #ruby
SparkMasterTape has joined #ruby
iceden has joined #ruby
dc has quit [Remote host closed the connection]
frek818_ has joined #ruby
roshanav1 has joined #ruby
agrinb has joined #ruby
seal has joined #ruby
frek818 has quit [Ping timeout: 276 seconds]
frek818_ is now known as frek818
ramfjord has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
tvw has quit []
tokik has joined #ruby
lmickh has quit [Remote host closed the connection]
commmmodo has joined #ruby
Sawbones_ has quit [Ping timeout: 256 seconds]
Hijiri has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrdtt has joined #ruby
x77686d has quit [Ping timeout: 245 seconds]
roshanav1 has quit [Ping timeout: 264 seconds]
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
oo_ has joined #ruby
fenzil has quit [Ping timeout: 255 seconds]
uptownhr has quit [Quit: uptownhr]
Musashi007 has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
marr has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
try has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
_Andres has joined #ruby
akas has quit [Remote host closed the connection]
josephndenton has joined #ruby
akas has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
centrx has joined #ruby
cjim has quit [Quit: (null)]
Sawbones_ has joined #ruby
cjim has joined #ruby
hgl has quit [Max SendQ exceeded]
Sawbones_ has quit [Client Quit]
kenneth has joined #ruby
startupality has quit [Quit: startupality]
hgl has joined #ruby
blizzy has joined #ruby
recurrence has quit [Quit: recurrence]
mrdtt has quit [Max SendQ exceeded]
crueber has joined #ruby
sargas has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
mrdtt has joined #ruby
ghr has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
cjim has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: I'm sleeping, go away.]
ghr has quit [Ping timeout: 245 seconds]
dnsnoob has joined #ruby
<dnsnoob> i have a fixed string in ruby but i want to be able to use a random 1025 char one
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dnsnoob> how to do it?
michaeldeol has joined #ruby
ddd has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<wallerdev> random alphanumeric or what?
tkuchiki has joined #ruby
PaulCapestany has quit []
Sawbones_ has joined #ruby
<wallerdev> you can probably use SecureRandom
triple_b has joined #ruby
PaulCapestany has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
dfinninger has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
tyfighter has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
recurrence has joined #ruby
djbkd has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
adriancb has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<dnsnoob> wallerdev: thank, but i can't see anything there to generated random arbitrary-lenght
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
shashin has quit [Quit: Leaving...]
adriancb has joined #ruby
<waxjar> dnsnoob: SecureRandom.random_bytes(1025) ?
oo_ has quit [Remote host closed the connection]
d10n-work has quit [Quit: Connection closed for inactivity]
aspect has joined #ruby
Megtastique has joined #ruby
ta has quit [Read error: No route to host]
oo_ has joined #ruby
<wallerdev> >> require 'securerandom'; SecureRandom.random_bytes(1025).length
davedev24_ has joined #ruby
amdbcg has quit [Ping timeout: 245 seconds]
daxroc has quit [Ping timeout: 245 seconds]
<eval-in_> wallerdev => 1025 (https://eval.in/246513)
bigkevmcd has quit [Ping timeout: 245 seconds]
rfv has quit [Ping timeout: 245 seconds]
tus has quit [Remote host closed the connection]
otertore has quit [Quit: This computer has gone to sleep]
ggherdov has quit [Ping timeout: 245 seconds]
roqo has quit [Ping timeout: 245 seconds]
amdbcg has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
hostess has quit [Remote host closed the connection]
GaryOak_ has quit [Remote host closed the connection]
leonshalimov has joined #ruby
tus has joined #ruby
daxroc has joined #ruby
cnj has quit [Ping timeout: 245 seconds]
neersighted has quit [Ping timeout: 245 seconds]
cicloid has quit [Ping timeout: 245 seconds]
cnj has joined #ruby
rfv has joined #ruby
mrdtt has quit [Quit: Textual IRC Client: www.textualapp.com]
cicloid has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
roqo has joined #ruby
elfuego has joined #ruby
ta has joined #ruby
<jhass> dnsnoob: if you want more specific help, be specific in your description
adriancb has joined #ruby
bigkevmcd has joined #ruby
hostess has joined #ruby
<jhass> "random 1025 char string" means everything and nothing
davedev2_ has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
leonshalimov has quit [Ping timeout: 264 seconds]
iamninja has quit [Remote host closed the connection]
hmsimha has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
Hijiri has joined #ruby
FooMunki_ has joined #ruby
ggherdov has joined #ruby
Zamyatin has joined #ruby
djbkd has joined #ruby
delianides has quit []
greenbagels has joined #ruby
ramfjord has joined #ruby
robustus has joined #ruby
silkfox has joined #ruby
<eam> maybe the fixed string is already random
pdoherty has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby
fgo has joined #ruby
<aspect> ruby noob here (plenty experience in other langs), hoping for some guidance on error "no implicit conversion of Symbol into Integer" from http://www.redmine.org/projects/redmine/repository/entry/trunk/app/models/user_preference.rb#L57
Zamyatin has quit [Client Quit]
Musashi007 has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
* aspect guesses it's a straightforward type mismatch, but not clear how that one-liner is throwing it.
<centrx> aspect, probably means self is an array when you expected it to be a hash
snath has quit [Ping timeout: 264 seconds]
<aspect> ActiveRecord::Base seems to take symbols as keys though ..?
<centrx> yes I didn't look at the rest yet
<centrx> you're right it doesn't make sense, it should work because it's an ActiveRecord model
ascarter has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<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]
<centrx> aspect, post full stack trace please
djbkd has joined #ruby
<aspect> preferred pastebin?
<centrx> gist
timanema has joined #ruby
Musashi007 has quit [Ping timeout: 245 seconds]
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
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<jonmorehouse> I'm trying to use the em-pg-client (Database.pool just returns an instance)
<jonmorehouse> but for some reason this won't work correctly in my case
wallerdev has quit [Quit: wallerdev]
JDiPierro has joined #ruby
rotor` has quit [Ping timeout: 244 seconds]
ReinH has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Ping timeout: 245 seconds]
crueber has quit [Quit: Leaving.]
Hijiri has quit [Ping timeout: 276 seconds]
wallerdev has joined #ruby
arescorpio has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
ascarter has joined #ruby
lampd1 has quit [Remote host closed the connection]
tcrypt has quit [Remote host closed the connection]
ascarter has quit [Max SendQ exceeded]
crueber has joined #ruby
Hijiri has joined #ruby
lampd1 has joined #ruby
ascarter has joined #ruby
oo_ has quit [Remote host closed the connection]
Guest27213 has quit [Max SendQ exceeded]
tcrypt has joined #ruby
blindsight has joined #ruby
blindsight is now known as Guest28939
centrx has quit [Ping timeout: 252 seconds]
Hobogrammer_ has joined #ruby
yuhsien__ has joined #ruby
julian-delphiki has joined #ruby
IcyDragon is now known as IceDragon
maximski has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
patrick99e99 has joined #ruby
lampd1 has quit [Ping timeout: 244 seconds]
Hobogrammer has quit [Ping timeout: 256 seconds]
bean has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
martinium has joined #ruby
andrewcarter has joined #ruby
astrobunny has joined #ruby
uptownhr has joined #ruby
oo_ has joined #ruby
ta has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__main__ has quit [Read error: Connection reset by peer]
jherbst has joined #ruby
recurrence has joined #ruby
seal has quit [Quit: Ex-Chat]
Joufflu has quit [Ping timeout: 245 seconds]
seal has joined #ruby
ta has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby
recurrence has quit [Client Quit]
ValicekB has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
leonshalimov has joined #ruby
JDiPierro has quit [Remote host closed the connection]
mesamoo has joined #ruby
prasselpikachu has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
prasselpikachu has joined #ruby
einarj has joined #ruby
eka_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FooMunki_ has quit [Quit: FooMunki_]
leonshalimov has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 256 seconds]
frek818 has quit [Quit: frek818]
ValicekB has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
frek818 has joined #ruby
checkit has quit [Quit: (null)]
ishikawa has quit [Ping timeout: 250 seconds]
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
zwer_b has quit [Ping timeout: 250 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
jherbst has quit [Ping timeout: 264 seconds]
<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]
booly-yam-4014 has joined #ruby
ericawebdev has quit [Quit: Textual IRC Client: www.textualapp.com]
jerematic has quit [Remote host closed the connection]
duncannz has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
jcrubino has joined #ruby
anaeem1_ has quit [Client Quit]
patrick99e99 has joined #ruby
anaeem1_ has joined #ruby
<jcrubino> Hello, I'm new to ruby. How (generally) can I download a github repo and install dependencies and run the the tests?
<jcrubino> github.com/ably/ably-ruby-rest
booly-yam-4014 has quit [Ping timeout: 245 seconds]
longfeet has quit [Ping timeout: 255 seconds]
astrobun_ has joined #ruby
josephndenton has quit [Ping timeout: 246 seconds]
TheMoonMaster_ is now known as TheMoonMaster
Channel6 has joined #ruby
<pontiki> jcrubino: are you knew to git and github as well?
oo_ has quit [Remote host closed the connection]
astrobun_ has quit [Ping timeout: 240 seconds]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jcrubino> pontiki: yes
<jcrubino> no, not new
<jcrubino> yes I know how to use them
ta has joined #ruby
blandflakes has quit [Ping timeout: 246 seconds]
josephndenton has joined #ruby
blf has joined #ruby
arup_r has quit [Quit: Leaving.]
ddd has quit [Quit: leaving]
ddd has joined #ruby
<blf> Is it common for the ruby tests to fail? I'm wondering where I should be worried about a broken environment.
<blf> s/where/whether
ta has quit [Ping timeout: 276 seconds]
rchipman has quit [Ping timeout: 256 seconds]
tcrypt has quit [Remote host closed the connection]
vdamewood has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
rchipman has joined #ruby
<Crazy_Atheist> jcrubino: well, first just clone the repo, if you're not new at git(hub), I'm pretty sure you'd already know this, but...
<Crazy_Atheist> and then once its there you should be able to run the tests
ErrantEgo has left #ruby ["Textual IRC Client: www.textualapp.com"]
yxhuvud has quit [Ping timeout: 265 seconds]
leonshalimov has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<blf> Crazy_Atheist: I downloaded the archives directly from the ruby-lang website.
<blf> And verified their checksums
fenzil has quit [Quit: Leaving]
<jcrubino> Crazy_Atheist: ok, http://hastebin.com/norumeturu.vbs
longfeet has joined #ruby
<blf> Crazy_Atheist: oops, I misread your comment. wasn't for me :-)
ta has joined #ruby
ishikawa has joined #ruby
frek818 has quit [Quit: frek818]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leonshalimov has quit [Ping timeout: 246 seconds]
sea_local has quit [Ping timeout: 264 seconds]
michaeldeol has joined #ruby
red_horned_rihno has quit [Ping timeout: 265 seconds]
cantonic_ has joined #ruby
ta has quit [Ping timeout: 276 seconds]
kp666 has joined #ruby
longfeet has quit [Ping timeout: 244 seconds]
elfuego has quit [Quit: elfuego]
towski_ has joined #ruby
uptownhr has joined #ruby
towski_ has quit [Read error: Connection reset by peer]
Rayford has joined #ruby
<Rayford> I am building them gem with gem build: https://gitlab.com/gitlab-org/omniauth-gitlab/tree/master
<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.
Aova has joined #ruby
<sevenseacat> i know people who swear by rubymine
<Nilium> Guys
<Nilium> Guys.
<sevenseacat> ive never used it
<Nilium> http://imgur.com/gallery/quL00 ← Look at this owl.
<Nilium> Just look.
<pontiki> IntelliJ with RubyMine plug-in isn't actually quite RubyMine, which was hugely frustrating to me
havenwood has joined #ruby
<Nilium> That might explain my problems
<sevenseacat> owl says "best day everrrrr"
<Nilium> IntelliJ with PHP certainly isn't the same as PHPStorm, sad as I am to say that I use PHPStorm at work because PHP woo woo
* Nilium shoots himself
<sevenseacat> i could probably be so much more productive, but i like my little sublime text with very few plugins
Hijiri has joined #ruby
giuseppesolinas has joined #ruby
<Nilium> Same.
rikai has quit [Ping timeout: 245 seconds]
<Nilium> Been slowly switching to vim for various tasks. It's been fun rediscovering stuff.
cantonic_ has quit [Quit: cantonic_]
lxsameer has joined #ruby
troubadour has quit [Quit: troubadour]
<sevenseacat> there needs to be more hours in the day, ive got more stuff to do
<pontiki> you need that time turner
<Nilium> I wrapped up a small Go project at work today, but I'm not happy about it
<Nilium> Was basically a four hour project worked on over several days of interruptions with other stuff
rikai has joined #ruby
<sevenseacat> though maybe that ties into the 'i could be so much more productive' >_> but so much stuff i want to learn
<Nilium> Turned into kind of a disaster 'cause I had to get it done by today, so the code is nowhere near where I want it
<sevenseacat> and so much stuff that cant be hurried, like books
cantonic_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<sevenseacat> Nilium: does it work and can you shift the maintenance to someone else? if so, move on >_>
reinaldob has joined #ruby
<Nilium> It sort of works and it's a stopgap thing
<Nilium> Maintenance: can't really, I'm the only person who knows Go at work.
patrick99e99 has quit [Ping timeout: 246 seconds]
<Nilium> Basically, at this point there are entire projects that depend on my continued existence to survive in working order now
jusmyth has joined #ruby
Akuma has quit [Quit: So long sukkas!]
cantonic_ has quit [Client Quit]
<Nilium> Not because someone else _couldn't_ do it, it's just that nobody else wants to take the time to get involved and read the docs
patrick99e99 has joined #ruby
linduxed_ has quit [Quit: WeeChat 1.0.1]
Beoran_ has joined #ruby
CpuID3 has joined #ruby
<Nilium> Or, in the case of the project I just finished, the non-docs
<sevenseacat> Nilium: if you're not replaceable, you're not promotable.
<Nilium> 'Cause I didn't have time for it yet
linduxed has joined #ruby
<Nilium> So I'm probably going to spend some of my time on my flight to DC on my computer just cleaning up the code a bit
<Nilium> And documenting it
<Nilium> And making it a little more resistant to doomsday situations
<atmosx> sevenseacat: good quote
tcrypt has quit [Remote host closed the connection]
<Nilium> Also not sure what that quote is from.
<atmosx> Nilium: that sounds like a lot of work, except maybe if the program is rather small
Aova has quit [Quit: goes offline]
<Nilium> It's pretty small, only about 500 lines of code, probably
<atmosx> awesome
<Nilium> I just want it to be easier to make adjustments to later.
insaneinside has joined #ruby
<atmosx> you use rdoc ?
<atmosx> yard?
<Nilium> It's written in Go.
reinaldob has quit [Ping timeout: 244 seconds]
i0n has joined #ruby
<atmosx> oh
Aova has joined #ruby
<Nilium> So, godoc.
CpuID2 has quit [Ping timeout: 276 seconds]
<atmosx> sorry didn't read up
<Nilium> No sweat.
<atmosx> I came across a go project yesterday, took a look at the code looks like C in ruby-style
<atmosx> somewhat
sea_local has joined #ruby
<insaneinside> speaking of...
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<insaneinside> Is it possible to get the encoding of a Ruby string from a C extension?
<Nilium> Dunno, just looks like C to me.
<atmosx> insaneinside: no idea
<Nilium> rb_encoding* rb_enc_get(VALUE)
<Nilium> Don't know if it's still in 2.x, since I'm looking at a 1.9.x header.
<insaneinside> Nilium: yeah, but what's the parameter refer to?
ta has joined #ruby
i0n is now known as awkwords
<Nilium> Presumably anything that has an encoding.
Lingo_ has quit [Quit: (null)]
<Nilium> Looks like it can be a file, string, regexp, data, or sym.
krz has quit [Ping timeout: 256 seconds]
<insaneinside> "read the source" is not an excuse for ZERO DOCUMENTATION. I mean, hell, even a good parameter name would be okay with me.
<insaneinside> ugh.
<Nilium> Welcome to the Ruby headers.
<Nilium> Hope you like: abbreviations, lack of descriptions of anything, etc.
amdbcg has quit [Ping timeout: 244 seconds]
astrobun_ has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
<sevenseacat> who doesnt
hifoo has joined #ruby
patrick99e99 has joined #ruby
hifoo is now known as insaneinside_00
<insaneinside_00> stupid ISP... did anyone say anything interesting while I was gone about fetching ruby string encodings from a C extension?
insaneinside has quit [Ping timeout: 256 seconds]
<Nilium> Just the meaning of life and how it revolves around owls.
insaneinside_00 is now known as insaneinside
rvchangu- is now known as rvchangue
rvchangue has quit [Changing host]
rvchangue has joined #ruby
triple_b has joined #ruby
ta has quit [Ping timeout: 276 seconds]
<insaneinside> You Obviously Love Owls.
<insaneinside> YOLO!
<sevenseacat> !yolo
<sevenseacat> oh no helpa here anymore?
spicerack2 has quit [Quit: Textual IRC Client: www.textualapp.com]
<sevenseacat> hrmph.
<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.
Aova has joined #ruby
<sevenseacat> two spaces. or else.
davedev24_ has joined #ruby
<pontiki> CynosureKuruma: this is probably most-often cited code style guide: https://github.com/styleguide/ruby
<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]
kamilc__ has joined #ruby
ponga has joined #ruby
amclain has quit [Quit: Leaving]
suy|BNC has quit [Ping timeout: 245 seconds]
jgt2 has joined #ruby
dc has joined #ruby
<insaneinside> pontiki: It looks like that position *has* changed in the original author's version of that style guide: https://github.com/bbatsov/ruby-style-guide#collections
reinaldob has quit [Ping timeout: 245 seconds]
lolmaus has quit [Quit: Konversation terminated!]
suy|BNC has joined #ruby
Joufflu has quit [Ping timeout: 245 seconds]
jgt1 has quit [Ping timeout: 265 seconds]
bayarja has quit [Read error: Connection reset by peer]
ponga has quit [Ping timeout: 256 seconds]
<pontiki> good to know
CynosureKuruma has joined #ruby
pdoherty has joined #ruby
bal has joined #ruby
hvxgr has joined #ruby
bal has quit [Read error: Connection reset by peer]
bal has joined #ruby
Macaveli has joined #ruby
giuseppesolinas has joined #ruby
sinkensabe has joined #ruby
pdoherty has quit [Ping timeout: 276 seconds]
Hobogrammer has joined #ruby
booly-yam-4014 has joined #ruby
Aova has quit [Ping timeout: 245 seconds]
hmsimha has quit [Quit: Leaving]
Aova has joined #ruby
jonmorehouse has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
booly-yam-4014 has quit [Ping timeout: 246 seconds]
jcutrell has quit [Quit: jcutrell]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
nanoyak has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
anarang has joined #ruby
ptrrr has joined #ruby
<certainty> moin
d10n-work has joined #ruby
jefff_ has joined #ruby
jefff_ has left #ruby [#ruby]
tcrypt has joined #ruby
mkaesz has joined #ruby
terlar has joined #ruby
dimaursu16 has quit [Ping timeout: 256 seconds]
troubadour has joined #ruby
dimaursu16 has joined #ruby
mib_mib has joined #ruby
sigurding has joined #ruby
LouisRoR has joined #ruby
tyfighter has quit [Quit: tyfighter]
josephndenton has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
ptrrr has quit [Quit: ptrrr]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
ponga has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigkevmc_ is now known as bigkevmcd
fgo has quit [Ping timeout: 244 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
francisfish has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
jimms has joined #ruby
ghr has joined #ruby
andikr has joined #ruby
patrick99e99 has joined #ruby
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]
featheryahn_ has joined #ruby
charles81 has joined #ruby
OliverTynes has quit [Ping timeout: 272 seconds]
bcavileer_ has quit [Ping timeout: 245 seconds]
crdpink has joined #ruby
<avril14th> How does one mock :some_call in rspec when testing for :meth in such case: https://gist.github.com/muichkine/3d54ea807f32e67e18d8 ?
eka has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
reset has joined #ruby
livcd has quit [Changing host]
livcd has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
vcoinminer has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
skmp has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
LouisRoR has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
tmoore_ has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
zarubin has quit [Remote host closed the connection]
cstrahan_ has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
joonty has joined #ruby
callenb___ has joined #ruby
TakumoKatekari is now known as Takumo
zarubin has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
dimaursu16 has quit [Ping timeout: 240 seconds]
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
djbender has joined #ruby
OliverTynes has joined #ruby
grubernaut has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
hellschreiber has joined #ruby
patrick99e99 has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
chrisseaton has joined #ruby
bjeanes_ has joined #ruby
rfv has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
jblancett has joined #ruby
seuros has joined #ruby
pusewicz has joined #ruby
casual_ has joined #ruby
n1ftyn8 has joined #ruby
bcavileer_ has joined #ruby
JohnBat26 has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
alol_ has joined #ruby
Darryl___ has joined #ruby
chthon has joined #ruby
maZtah has joined #ruby
troubadour has joined #ruby
sigurding has quit [Quit: sigurding]
crdpink has quit [Quit: q term]
dimaursu16 has joined #ruby
francisfish has left #ruby [#ruby]
elabs-developer has joined #ruby
troubadour has quit [Client Quit]
rchipman has quit [Quit: Lost terminal]
timanema has joined #ruby
pandaant has joined #ruby
booly-yam-4014 has quit [Max SendQ exceeded]
<michael_mbp> hey guys
booly-yam-4014 has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
checkit has joined #ruby
checkit has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
astrobun_ has quit [Remote host closed the connection]
olivier_bK has joined #ruby
pdoherty has joined #ruby
timanema has quit [Ping timeout: 245 seconds]
defrang has joined #ruby
deepy has quit [Quit: ZNC - http://znc.in]
timgauthier_away is now known as Timgauthier
aswen has joined #ruby
pdoherty has quit [Ping timeout: 244 seconds]
booly-yam-4014 has quit [Ping timeout: 255 seconds]
booly-yam-4014_ has joined #ruby
Aova has quit [Read error: Connection reset by peer]
seuros has quit [Quit: Leaving.]
seuros1 has joined #ruby
ponga has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
ponga has joined #ruby
seuros1 has quit [Read error: Connection reset by peer]
<avril14th> anyone? ;)
duncannz has quit [Remote host closed the connection]
bal has quit [Ping timeout: 240 seconds]
supergiel has quit [Read error: Connection reset by peer]
seuros has joined #ruby
deepa has joined #ruby
etqqkoiflwhb has joined #ruby
josephcs has joined #ruby
josephndenton has joined #ruby
Aova has joined #ruby
Beoran_ has quit [Ping timeout: 246 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
sigurding has joined #ruby
marr has joined #ruby
maasha has joined #ruby
<maasha> hi
astrobun_ has joined #ruby
<certainty> avril14th: expect_any_instance_of
<certainty> avril14th: but it's a hack
jimms has quit [Remote host closed the connection]
leafybasil has joined #ruby
<avril14th> right, what's the non hacky way?
AlSquire has joined #ruby
<avril14th> :)
<certainty> you can look for a way to inject the dependency
kyb3r_ has quit [Read error: Connection reset by peer]
<maasha> I have this funny encoding issue with UTF-8/US-ASCII all of a sudden popping up in my unit tests (ever since new mac and fresh install): https://gist.github.com/maasha/987220d8e37926116c78
kl__ has joined #ruby
kl___ has joined #ruby
<maasha> I suppose the unit tests don't care about string encoding as long as the strings match or what?
josephndenton has quit [Ping timeout: 245 seconds]
deepa has quit [Changing host]
deepa has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
vvivv has joined #ruby
<certainty> maasha: you should probably still take the encoding into account
chipotle has joined #ruby
<certainty> assert_equal("".b,gp.to_s) should work
dmolina has joined #ruby
<maasha> certainty: so why do I get different encodings?
<avril14th> gregf_: interesting, but that implies that local variables be changed to instance variables, which sucks
<certainty> maasha: because ruby uses UTF8 by default for string literals.
anarang has quit [Ping timeout: 276 seconds]
<maasha> certainty: right and Object.to_s is then US-ASCII because ???
<certainty> avril14th: personally i'd add just inject the b as a parameter to meth possible defaulted to B.new
<certainty> maasha: because GnuPlotter does it that way
<maasha> certainty: hm, ok
<avril14th> certainty: yes, could work too but that also infers with the way the method looks, for no other reason that testing
<avril14th> I'd rather stick to any_instance_of
<certainty> sometimes that is just fine
baltazore has joined #ruby
<certainty> hard to tell with that snippet though, because the code does basically nothing interesting
deever has joined #ruby
<deever> hi
<deever> # gem install activerecord-sqlite3-adapter
<deever> ERROR: Could not find a valid gem 'activerecord-sqlite3-adapter' (>= 0) in any repository
<deever> oups...sorry
<deever> how can i solve the problem?
mroach has quit [Quit: mroach]
lysw123 has quit [Quit: Textual IRC Client: www.textualapp.com]
Timgauthier is now known as timgauthier_away
mloveless has quit [Remote host closed the connection]
johnzz has joined #ruby
shashin has joined #ruby
jonesthedolphin has joined #ruby
YamakasY has joined #ruby
lkba_ has quit [Ping timeout: 246 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
seal has quit [Quit: Ex-Chat]
anarang has joined #ruby
camilasan has joined #ruby
reset has quit [Quit: Leaving...]
kitofr has quit [Ping timeout: 272 seconds]
baltazore has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
arup_r has joined #ruby
bal has joined #ruby
reset has joined #ruby
reset has quit [Remote host closed the connection]
reset has joined #ruby
reinaldob has joined #ruby
vvivv has quit [Ping timeout: 276 seconds]
bronson has quit [Remote host closed the connection]
amil has joined #ruby
kamilc__ has quit [Ping timeout: 246 seconds]
ta has joined #ruby
ta has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
sea_local has quit []
leonshalimov has joined #ruby
ta has joined #ruby
tokik has quit [Ping timeout: 246 seconds]
fandi has joined #ruby
workmad3 has joined #ruby
<deever> avril14th: thank you, but which gem file is meant? http://www.apaste.info/sSY
Deele has quit [Quit: User excited]
leonshalimov has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
josephcs has quit [Read error: No route to host]
fgo has quit [Ping timeout: 265 seconds]
rodfersou has joined #ruby
<avril14th> deever: bundle show sqlite3
<avril14th> what does it say?
baltazore has joined #ruby
<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?
zerolith has joined #ruby
<deever> avril14th: it shows:
<deever> /usr/local/www/foreman/vendor/ruby/1.9/gems/sqlite3-1.3.8
dANOKELOFF has joined #ruby
<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
fgo has joined #ruby
n008f4g_ has joined #ruby
<avril14th> don't get it
<gregf_> dANOKELOFF: ([1, 3, 1] | [1, 2 , 3 ]).sort ;)
<avril14th> want to get the most frequent number first?
<gregf_> ah - ok. my bad
<hanmac1> dANOKELOFF: did you try b.sort_by{|o| a.count(o)} ?
baltazore has quit [Remote host closed the connection]
<canton7> reverse sort by frequency - the fact that there are 2 arrays is irrelevant?
<hanmac1> >> a = [1, 3, 1];b = [1, 2 , 3 ]; b.sort_by{|o| a.count(o)}
<eval-in_> hanmac1 => [2, 3, 1] (https://eval.in/247641)
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]
patrick99e99 has joined #ruby
<deever> hanmac1: still the same error: http://www.apaste.info/bmP
ldnunes has joined #ruby
<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
<tobiasvl> CUPS, PRISS, etc
<tobiasvl> oh, windows. no idea then
<]Spectre[> sadly I have to do on windows..
jefus__ has joined #ruby
hs366 has joined #ruby
anarang has quit [Quit: Leaving]
anarang has joined #ruby
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
baltazore has joined #ruby
Timgauthier has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
baltazore has quit [Remote host closed the connection]
jefus_ has quit [Ping timeout: 264 seconds]
hgl has quit [Max SendQ exceeded]
]Spectre[ has left #ruby [#ruby]
baltazore has joined #ruby
checkit has quit [Quit: (null)]
baltazor_ has joined #ruby
hgl has joined #ruby
dimaursu16 has quit [Ping timeout: 252 seconds]
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
hgl has joined #ruby
<deever> hanmac1, avril14th, workmad3: this workaround did the trick:
<deever> ln -s libsqlite3.so.0.8.6 /usr/local/lib/libsqlite3.so.8
baltazore has quit [Ping timeout: 256 seconds]
hgl has quit [Max SendQ exceeded]
<deever> however, obviously this is far from ideal
kitofr has joined #ruby
zerolith has quit [Quit: ZNC - http://znc.in]
<avril14th> just like everything in this world
<deever> avril14th: ^^
zerolith has joined #ruby
hgl has joined #ruby
etqqkoiflwhb has quit [Quit: (null)]
noop has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
tkuchiki has quit [Ping timeout: 255 seconds]
nhhagen has joined #ruby
booly-yam-4014_ has quit [Ping timeout: 256 seconds]
kitofr has quit [Ping timeout: 276 seconds]
n008f4g_ has quit [Ping timeout: 276 seconds]
dimaursu16 has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
chrishough has joined #ruby
Vivex has joined #ruby
awkwords has quit [Quit: snooze]
timanema has joined #ruby
spider-mario has quit [Remote host closed the connection]
maximski has joined #ruby
patrick99e99 has quit [Ping timeout: 244 seconds]
postmodern has quit [Quit: Leaving]
ta has joined #ruby
hgl has quit [Max SendQ exceeded]
dionysus69 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/20150108202552]]
hgl has joined #ruby
timanema has quit [Ping timeout: 276 seconds]
maximski has quit [Read error: Connection reset by peer]
maximski has joined #ruby
ta has quit [Ping timeout: 276 seconds]
patrick99e99 has joined #ruby
amundj has quit [Ping timeout: 245 seconds]
amundj has joined #ruby
tvw has joined #ruby
sigurding has quit [Quit: sigurding]
roshanavand has joined #ruby
maximski has quit [Ping timeout: 264 seconds]
josephndenton has joined #ruby
maximski has joined #ruby
jimms has joined #ruby
towski_ has joined #ruby
maximski has quit [Max SendQ exceeded]
asmodlol has joined #ruby
pdoherty has joined #ruby
shredding has joined #ruby
jimms_ has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
<shevy> guys
<shevy> let's hug each other
<tobiasvl> group hug!!!!!!!
josephndenton has quit [Ping timeout: 264 seconds]
maasha has quit [Ping timeout: 246 seconds]
towski_ has quit [Ping timeout: 245 seconds]
pdoherty has quit [Ping timeout: 246 seconds]
jimms has quit [Ping timeout: 246 seconds]
sameerynho has joined #ruby
parduse has quit []
Aova has quit [Read error: Connection reset by peer]
jusmyth has quit [Quit: Leaving.]
neoice has quit [Ping timeout: 240 seconds]
Fraeon has quit [Ping timeout: 240 seconds]
elfuego has joined #ruby
neoice has joined #ruby
Fraeon has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
i0n has joined #ruby
mroach has joined #ruby
Aova has joined #ruby
hefest has joined #ruby
<hefest> hello, is TCPServer ruby builtin?
commmmodo has quit [Quit: commmmodo]
<ddv> hefest: ?
<hefest> ddv: im not sure part of what is TCPServer class
i0n_ has joined #ruby
<kstuart> hefest: ruby standard library I believe
maximski has joined #ruby
<tobiasvl> yep, require 'socket'
maximski has quit [Max SendQ exceeded]
i0n has quit [Ping timeout: 245 seconds]
i0n_ is now known as i0n
maximski has joined #ruby
<shevy> require 'boots'
commmmodo has joined #ruby
<tobiasvl> sockets, not socks ;)
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
maximski has quit [Client Quit]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
gfawcettpq1 has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
booly-yam-4014_ has joined #ruby
amdbcg has joined #ruby
Oberon4278 has joined #ruby
Zai00 has quit [Quit: Zai00]
<certainty> shevy: greetings from your mum
arup_r has quit [Remote host closed the connection]
commmmodo has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
<ddv> oh how nice, shevy's mom, certainty is here
shredding has quit [Quit: shredding]
zerolith has left #ruby [#ruby]
zerolith has joined #ruby
decoponio has joined #ruby
ajaiswal has quit [Remote host closed the connection]
zerolith is now known as zerolith_zzz
arup_r has joined #ruby
nb_bez___ has joined #ruby
zerolith1 has joined #ruby
baltazor_ has quit [Remote host closed the connection]
martinium has joined #ruby
ponga has quit [Quit: Leaving...]
sigurding has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
cdfook has joined #ruby
ki0 has joined #ruby
mroach has joined #ruby
terlar has quit [Read error: No route to host]
ta has joined #ruby
zerolith_zzz is now known as zerolith
zerolith1 has quit [Quit: Leaving]
dANOKELOFF has quit [Quit: Quitte]
meschi has joined #ruby
bronson has joined #ruby
martinium has quit [Ping timeout: 245 seconds]
terlar has joined #ruby
zerolith is now known as zerolith_zzz
leonshalimov has joined #ruby
derJan has joined #ruby
derJan has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
<shevy> I am greeting certainty's mum as we type!
neoxquick has joined #ruby
kitofr has joined #ruby
leonshalimov has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
<Timgauthier> most definite
jimms_ has quit [Remote host closed the connection]
troubadour has joined #ruby
jerematic has joined #ruby
shredding has joined #ruby
seuros has quit [Read error: Connection reset by peer]
troubadour has quit [Client Quit]
kitofr has quit [Ping timeout: 245 seconds]
shime_ has joined #ruby
blizzy|sleep has joined #ruby
michael_mbp has joined #ruby
shime has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
codecop has quit [Remote host closed the connection]
withnale_ has joined #ruby
kapil__ has joined #ruby
Beoran_ has joined #ruby
adriancb has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
tvw has quit []
sinkensabe has joined #ruby
blizzy|sleep has quit [Ping timeout: 264 seconds]
shashin has quit [Quit: Leaving...]
Beoran has quit [Ping timeout: 245 seconds]
timonv has quit [Ping timeout: 255 seconds]
echevemaster has quit [Remote host closed the connection]
<shevy> Timgauthier what are you up to! still phping?
<Timgauthier> uh
<Timgauthier> duh
adriancb has quit [Ping timeout: 256 seconds]
cdfook has quit [Ping timeout: 252 seconds]
<shevy> oh noes :(
<shevy> you poor man
<Timgauthier> someone has to be awesome ;)
iamninja has joined #ruby
<workmad3> Timgauthier: and you've decided it won't be you, hence the PHP? :P
jyqokk has joined #ruby
<Timgauthier> ;)
elabs-developer has joined #ruby
FooMunki has joined #ruby
Aova has quit [Read error: Connection reset by peer]
<ddv> what is wrong with php?
<ddv> j/k
jusmyth has joined #ruby
Aova has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
kitofr has joined #ruby
baltazore has joined #ruby
anarang has quit [Ping timeout: 245 seconds]
baltazore has quit [Read error: Connection reset by peer]
baltazore has joined #ruby
timonv has joined #ruby
arup_r_ has joined #ruby
JaredCE has joined #ruby
<JaredCE> i'm wondering if anyone knows any good quality ruby language courses on offer in london, looking to take a team from one language to ruby
amdbcg has quit [Ping timeout: 245 seconds]
LouisRoR has quit [Ping timeout: 265 seconds]
deepy has quit [Write error: Connection reset by peer]
arup_r has quit [Ping timeout: 245 seconds]
derJan has quit [Quit: Bye ...]
derJan has joined #ruby
troubadour has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
ghostbox has joined #ruby
Zai00 has joined #ruby
mikecmpbll has joined #ruby
deepy has joined #ruby
timanema has joined #ruby
troulouliou_dev has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
antgel has quit [Ping timeout: 265 seconds]
kaspertidemann has joined #ruby
blackmesa has joined #ruby
yuhsien__ has quit [Quit: Connection closed for inactivity]
anarang has joined #ruby
Vivex_ has joined #ruby
<shevy> ruby is so natural
<shevy> you don't need a course
mskaesz has joined #ruby
<shevy> the docu admittedly is one of ruby's weaker points
deepy has quit [Quit: ZNC - http://znc.in]
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]
<banister> workmad3 thx
Megtastique has quit [Client Quit]
ta_ has quit [Ping timeout: 276 seconds]
ponga has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
commmmodo has quit [Ping timeout: 255 seconds]
dumdedum has quit [Quit: foo]
JaredCE has left #ruby [#ruby]
nateberkopec has joined #ruby
hirzu has quit [Ping timeout: 245 seconds]
ponga has quit [Ping timeout: 252 seconds]
silkfox has joined #ruby
leonshalimov has joined #ruby
Timgauthier is now known as timgauthier_away
vvivv has quit [Ping timeout: 245 seconds]
axilla has quit [Quit: Lost terminal]
commmmodo has joined #ruby
hirzu has joined #ruby
<ddv> more people in here that just edit migration files directly instead of creating new ones because you're lazy?
<canton7> only if you like screwing up your team mates :P
freerobby has quit [Quit: Leaving.]
<sevenseacat> is not a good idea.
leonshalimov has quit [Ping timeout: 244 seconds]
roshanavand has quit [Read error: Connection reset by peer]
<ddv> to be honest this is pre production
<ddv> I just copy over the db to staging <3
pu22l3r_ has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 245 seconds]
<sevenseacat> how is that related
freerobby has joined #ruby
JohnBat26 has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
quimrstorres has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
jerius has joined #ruby
Morkel has quit [Quit: Morkel]
yfeldblum has quit [Remote host closed the connection]
krz has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
livingstn has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
sambao21 has joined #ruby
triple_b has joined #ruby
derJan has quit [Quit: Bye ...]
tvw has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nateberkopec has quit [Quit: Leaving...]
derJan has joined #ruby
matthewhill has joined #ruby
joonty has joined #ruby
gccostabr has joined #ruby
krz has joined #ruby
JDiPierro has joined #ruby
nateberkopec has joined #ruby
ta has joined #ruby
vvivv has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
baltazore has joined #ruby
patrick99e99 has joined #ruby
freerobby has quit [Quit: Leaving.]
baltazore has quit [Remote host closed the connection]
bronson has joined #ruby
last_staff has quit [Quit: last_staff]
livathin_ has joined #ruby
baltazore has joined #ruby
ta has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
jefus__ is now known as jefus
fandi has quit [Ping timeout: 276 seconds]
greenarrow has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
livathinos has quit [Ping timeout: 246 seconds]
Parker0 has joined #ruby
zzzbra has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
greenarrow has quit [Remote host closed the connection]
blackmes1 has joined #ruby
greenarrow has joined #ruby
Zamyatin has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
FAMAS has joined #ruby
FAMAS has quit [Max SendQ exceeded]
ponga has joined #ruby
dblessing has joined #ruby
n80_ has joined #ruby
amdbcg has quit [Ping timeout: 245 seconds]
patrick99e99 has quit [Ping timeout: 276 seconds]
JBreit has joined #ruby
patrick99e99 has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
Zamyatin has quit [Client Quit]
zzzbra has quit [Ping timeout: 252 seconds]
metadave_ has joined #ruby
jherbst has joined #ruby
scripore has quit [Quit: Leaving]
nicolastarzia has joined #ruby
kaspertidemann has quit []
doodlehaus has joined #ruby
arup_r has quit [Remote host closed the connection]
metadave has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
josephndenton has joined #ruby
patrick99e99 has quit [Ping timeout: 252 seconds]
allcentury has joined #ruby
Aova has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
patrick99e99 has joined #ruby
mrmargolis has joined #ruby
wodla00_ has joined #ruby
hirzu has quit [Quit: Lähdössä]
sameerynho has quit [Quit: Leaving]
adriancb has joined #ruby
dstarh has joined #ruby
wodla00 has quit [Ping timeout: 245 seconds]
Aova has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
werelivinginthef has joined #ruby
avril14th has quit [Ping timeout: 276 seconds]
deol has joined #ruby
avril14th has joined #ruby
fryguy9 has joined #ruby
amundj has quit [Quit: Textual IRC Client: www.textualapp.com]
n008f4g_ has joined #ruby
mroach has quit [Quit: mroach]
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
<nobitanobi> yep, I was looking for ```-``` but is not there though. http://guides.rubyonrails.org/association_basics.html
<nobitanobi> 4.3 has_many association reference
jcutrell has quit [Read error: Connection reset by peer]
<nobitanobi> anyway, wrong channel
johnzz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tobiasvl> - is a method
<workmad3> yeah, it probably just uses Array#- and is doing stuff on the association= method :)
<nobitanobi> it actually saves it for you and all
<nobitanobi> pretty cool
nhhagen_ has joined #ruby
cphrmky has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
fandi has joined #ruby
vvivv has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
baltazore has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
akas has quit [Quit: Leaving]
chthon has quit [Ping timeout: 240 seconds]
LouisRoR has joined #ruby
nhhagen has quit [Ping timeout: 256 seconds]
piratepete_ has quit [Quit: piratepete_]
DaniG2k has joined #ruby
nhhagen_ has quit [Ping timeout: 276 seconds]
cbetta has quit []
cbetta has joined #ruby
chthon has joined #ruby
oo_ has joined #ruby
kitofr has quit [Ping timeout: 245 seconds]
piratepete_ has joined #ruby
whoisjake has joined #ruby
timgauthier_away is now known as Timgauthier
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
triple_b has joined #ruby
jefus has quit [Ping timeout: 252 seconds]
Timgauthier is now known as timgauthier_away
agrinb has joined #ruby
terlar has quit [Read error: No route to host]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
amil has quit [Ping timeout: 246 seconds]
kitofr has joined #ruby
pancake-breakfas has joined #ruby
terlar has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
fandi has quit [Ping timeout: 264 seconds]
zzzbra has joined #ruby
sevenseacat has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
fandi has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Macaveli has quit [Ping timeout: 246 seconds]
fandi has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 272 seconds]
FooMunki has quit [Quit: FooMunki]
patrick99e99 has joined #ruby
matti has quit [Quit: Reconnecting]
jefus has joined #ruby
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
piratepete_ has quit [Quit: piratepete_]
nhhagen has joined #ruby
snath has quit [Ping timeout: 245 seconds]
tagrudev has quit [Remote host closed the connection]
Aova has joined #ruby
neoxquick has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
nhhagen has quit [Client Quit]
sinkensabe has joined #ruby
ZoanthusR has joined #ruby
pdoherty has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 1.1]
zzzbra has quit [Quit: WeeChat 1.1]
nicolastarzia has quit [Remote host closed the connection]
wodla00_ has joined #ruby
antgel has joined #ruby
ZoanthusR has quit [Client Quit]
martinium has joined #ruby
martinium has joined #ruby
martinium has quit [Changing host]
it0a has joined #ruby
shashin has joined #ruby
arup_r has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
shredding has joined #ruby
patrick99e99 has joined #ruby
timonv has quit [Read error: Connection reset by peer]
piratepete has joined #ruby
tesuji has quit [Ping timeout: 252 seconds]
livingstn has quit [Ping timeout: 256 seconds]
hanmac1 has quit [Quit: Leaving.]
cajone has quit [Remote host closed the connection]
x77686d has joined #ruby
martinium has quit [Ping timeout: 245 seconds]
snath has joined #ruby
shredding has quit [Client Quit]
noop has quit [Ping timeout: 252 seconds]
FooMunki has joined #ruby
pdoherty has joined #ruby
commmmodo has quit [Quit: commmmodo]
banister is now known as banisterfiend
Morkel has joined #ruby
blackmes1 has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
Akuma has joined #ruby
tus has joined #ruby
freerobby has quit [Quit: Leaving.]
marr has quit [Ping timeout: 265 seconds]
kl__ has quit [Ping timeout: 252 seconds]
cajone has joined #ruby
kl has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
kl__ has joined #ruby
kl has joined #ruby
hs366 has quit [Remote host closed the connection]
danman has joined #ruby
havenwood has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
wodla00_ has quit [Quit: wodla00 terminated!]
DaniG2k has quit [Quit: leaving]
dseitz has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
freerobby has joined #ruby
x77686d has quit [Quit: x77686d]
wodla00 has joined #ruby
fgo is now known as fgo_zzZz
lmickh has joined #ruby
claudiuinberlin has joined #ruby
nanoyak has joined #ruby
rbennacer has joined #ruby
L8 has joined #ruby
<L8> hey guys
<ddv> i'm a girl
fgo_zzZz has quit [Ping timeout: 264 seconds]
<L8> I'm trying to do something like factory pattern, having class called WhateverFactory, that contains a static method named load
<ddv> no j/k, of course not
<L8> each time load is called, I want to create a new instance of that class
sinkensabe has quit [Remote host closed the connection]
<L8> with different constructor parametar
gheegh has joined #ruby
<L8> but when I've made .new private, I can't initialized from inside the class
gccostabr has joined #ruby
<L8> ddv, yeah after writing hey guys someone came to the cubical so I've stopped writing :)
rbennacer has quit [Remote host closed the connection]
piratepete has quit [Quit: piratepete]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
<L8> any ways to do it in a possible way?
rbennacer has joined #ruby
druid__ has joined #ruby
<apeiros> L8: drop the `self.` from `self.new`.
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddv> and don't use pastebin
<apeiros> +1
<L8> apeiros, undefined method `new' for main:Object (NoMethodError)
pu22l3r has joined #ruby
<L8> what's your alternatives to pastebin
<L8> I don't mind posting generic code there
<apeiros> L8: um, impossible? that means you call your load on main, not on Some
<ddv> L8: gist.github.com
<L8> inside the self.load(param)
<apeiros> (that "for main:Object" is a dead giveaway that you're doing something awfully wrong)
livathin_ has quit [Remote host closed the connection]
<L8> all the change I've did is changing from self.new to new
<apeiros> or rather, awfully not the way as shown in your paste
booly-yam-4014_ has quit [Ping timeout: 240 seconds]
mbff has joined #ruby
<L8> tbh it's gonna be open sourced later so I'll just paste how its looks now
Megtastique has joined #ruby
bal has quit [Quit: bal]
<mbff> Hello I am working with the ruby gem daemons and cannot get it to work
<apeiros> L8: not necessary
<apeiros> >> class Some; private_class_method :new; def self.load(param); new param; end; def initialize(param); end; end; Some.load 123
<eval-in_> apeiros => #<Some:0x4097be00> (https://eval.in/248399)
<mbff> I have server_control.rb
<mbff> require 'daemons'
<mbff> Daemons.run('main.rb')
<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]
tonyhb has quit [Quit: peace]
anarang has quit [Quit: Leaving]
primafacie_ has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
elabs-developer has quit [Quit: elabs-developer]
Kruppe has quit [Quit: ZNC - http://znc.in]
primafacie has quit [Ping timeout: 245 seconds]
<shevy> test
codecop has joined #ruby
Kruppe has joined #ruby
mloveless has joined #ruby
albipri_ has joined #ruby
albipri has quit [Ping timeout: 276 seconds]
albipri_ is now known as albipri
ozialien_ has joined #ruby
drkyro has joined #ruby
FooMunki has quit [Quit: FooMunki]
chinmay_dd has quit [Quit: Connection closed for inactivity]
timgauthier_away has quit [Max SendQ exceeded]
jonesthedolphin has quit [Ping timeout: 255 seconds]
Timgauthier has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
kenneth has joined #ruby
sinkensabe has joined #ruby
<shevy> albipri I think only people from Italy may have, and there are not many from Italy who use ruby altogether :)
jtreminio has left #ruby ["Linkinus - http://linkinus.com"]
maximski has quit []
slester has joined #ruby
<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
ptrrr has joined #ruby
leonshalimov has quit [Ping timeout: 246 seconds]
<L8> so this thing's not working
<shevy> ewww pastebin
<L8> :(
<Nilium> Speaking of precedence rules, I keep thinking about writing a language that's mostly-infix except for arithmetic, which would be s-exprs
<L8> says undefined method `new' for main:Object (NoMethodError)
patrick99e99 has quit [Ping timeout: 264 seconds]
<L8> while trying to call ProfileManager.load from other file
fgo_zzZz has quit [Ping timeout: 264 seconds]
GaryOak_ has joined #ruby
<shevy> cool
<shevy> I never saw private_class_method before
<Nilium> Nothing is truly private in Ruby
patrick99e99 has joined #ruby
<shevy> but the name of that API is private!
craigp has joined #ruby
<shevy> Nilium that is consistent with being able to change constants ;)
<L8> "class SimpleSingleton # Not thread safe"
triple_b has joined #ruby
<L8> lold
<shevy> in ruby 2 + 2 = 5 sometimes
<Nilium> Reminds me, we have a constants table in a DB at work
<Nilium> We update the constants daily ಠ_ಠ
tonyhb has joined #ruby
<shevy> yeah
<shevy> to make them better constants than before
leonshalimov has joined #ruby
<shevy> well I guess one can run .freeze on string constants
albipri has left #ruby [#ruby]
<shevy> pontiki once said that .freeze is important when one wants to have immutable strings
<shevy> I still have not had a use case yet :(
<workmad3> >> class Fixnum; alias plus +; def +(rhs); if self == 2 && rhs == 2; 5; else; plus(rhs); end; end; end; 2 + 2
<eval-in_> workmad3 => 5 (https://eval.in/248552)
<shevy> ok so workmad3 needs more work
pdoherty has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
<workmad3> shevy: I'm thinking about stuff :P
<shevy> hehe
dc has joined #ruby
<L8> so, any chance somebody have an idea?
<L8> I'm stuck on it for at least hour
<L8> and I'm really close to write this project in Python or PHP
OrbitalK_ has quit [Read error: Connection reset by peer]
booly-yam-4014_ has joined #ruby
terlar has quit [Ping timeout: 240 seconds]
<waxjar> L8, you can do undef :new i think
chu has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> L8: or you could do 'class << self; private :new; end'
OrbitalKitten has joined #ruby
krz has quit [Ping timeout: 245 seconds]
josephnd1nton has joined #ruby
<waxjar> nevermind, you're using it. go with workmad3's solution
i0n has joined #ruby
adamkittelson has joined #ruby
djbkd has joined #ruby
<L8> workmad3 not sure why you're meaning
try has joined #ruby
nicolastarzia has joined #ruby
joonty has quit [Quit: joonty]
<L8> the problem happens when I'm trying to do ProfileManager.load 'profile'
<L8> from other file
<workmad3> L8: tbh, wouldn't mind seeing that other file
<L8> all what it contains is:
<L8> require_relative '..blablabla/profile_manager'
ghostbox has quit []
<L8> pm = ProfileManager.load 'profile'
<L8> that's it
olivier_bK has quit [Ping timeout: 240 seconds]
derJan has quit [Quit: Be back later ...]
jonesthedolphin has joined #ruby
pdoherty has joined #ruby
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 :)
pushpak has joined #ruby
<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]
drkyro has quit [Quit: Textual IRC Client: www.textualapp.com]
Megtastique has quit []
pu22l3r has joined #ruby
fgo_zzZz has joined #ruby
pietr0 has joined #ruby
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]
Aova has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has joined #ruby
<shevy> is there a trivial way to run a .rb script in the background, without using the & shell syntax?
<shevy> basically I have here one script that just collects data
JDiPierro has joined #ruby
<neanias> Put it in a screen session?
ta has quit [Ping timeout: 245 seconds]
nanoyak has joined #ruby
<shevy> neanias I'd like inbuilt support, like "ruby big_brother.rb --background"
<neanias> Fair
wallerdev has quit [Quit: wallerdev]
nanoyak has quit [Remote host closed the connection]
<neanias> I'm not sure, sorry, shevy
yxhuvud has joined #ruby
<shevy> I think there is daemons, but it is several lines of code or something
<Nilium> Does Process.daemon do what you want?
nanoyak has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
louism2wash has joined #ruby
<shevy> hmm let me try
psy has quit [Disconnected by services]
workmad3 has quit [Ping timeout: 246 seconds]
<shevy> would it actually be possible to daemonize, but also still have output in a konsole tab?
Timgauthier has quit [Max SendQ exceeded]
psy_ has joined #ruby
<Nilium> Probably if you pass true for noclose.
_chs_ is now known as securitybot2
Aova has joined #ruby
securitybot2 is now known as _chs_
Trieste has quit [Ping timeout: 276 seconds]
Timgauthier has joined #ruby
<louism2wash> Hey guys, is ruby's call stack actually a C data structure or is that call stack implemented somewhere "closer to the processor."
cmoneylulz has joined #ruby
kstuart has quit [Ping timeout: 265 seconds]
anaeem1_ has joined #ruby
yfeldblum has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
kstuart has joined #ruby
fryguy9 has joined #ruby
tvw has quit []
Trieste has joined #ruby
Timgauthier has joined #ruby
wallerdev has quit [Ping timeout: 245 seconds]
dojobo has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
Timgauthier has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 244 seconds]
i0n has quit [Quit: snooze]
pu22l3r_ has joined #ruby
Timgauthier has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
craigp has quit [Remote host closed the connection]
SolarSailor has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
ericawebdev has left #ruby ["Textual IRC Client: www.textualapp.com"]
longfeet has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Ping timeout: 272 seconds]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
felixjet has joined #ruby
SolarSailor has quit [Client Quit]
FooMunki_ has joined #ruby
SolarSailor has joined #ruby
Timgauthier has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
Timgauthier has joined #ruby
djbkd has quit [Remote host closed the connection]
xivusr has joined #ruby
oivoodoo has joined #ruby
kt2 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shime has quit [Ping timeout: 246 seconds]
blackmes1 has joined #ruby
shime has joined #ruby
<bricker> louism2wash: looks like maybe just a struct, go through vm_backtrace.c
xivusr has left #ruby [#ruby]
<louism2wash> bricker: thanks, I'll check it out
aclearman037 has joined #ruby
Synthead has quit [Ping timeout: 272 seconds]
rpag has joined #ruby
jobewan has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
Synthead has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
roshanavand has quit [Ping timeout: 276 seconds]
<louism2wash> bricker: are you familiar with tail call optimization?
leafybasil has joined #ruby
Synthead has quit [Max SendQ exceeded]
<havenwood> OPTIMIZE ALL THE TAILS! \o/
neanias has left #ruby ["Textual IRC Client: www.textualapp.com"]
zzzbra has joined #ruby
byprdct has quit [Ping timeout: 255 seconds]
<jhass> louism2wash: MRI has TCO as an optional compile time flag
<Nilium> I know someone who implemented TCE in Ruby.
jenrzzz has joined #ruby
<Nilium> It's apparently horrifying to do.
evanjs is now known as evanfreeman
Spami has quit [Quit: This computer has gone to sleep]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
Oberon4278 has quit []
baweaver has joined #ruby
green-big-frog has joined #ruby
iamjarvo has joined #ruby
jfran has joined #ruby
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?
<green-big-frog> Hello
<green-big-frog> How can I replace \t and \n and so on using gsub? It's explained here: http://stackoverflow.com/questions/18193424/using-gsub-in-ruby-strings-correctly
<green-big-frog> but that'sonly for :; and so on...
<green-big-frog> I need to replace /t and /n
<green-big-frog> My ccode: quote = parsed['quote'].gsub "\t", " "
<green-big-frog> How do I have to edit it?
sinkensabe has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
WishBoy has joined #ruby
fgo_zzZz has joined #ruby
<jhass> that should replace any \t with a space
xivusr has joined #ruby
pu22l3r has joined #ruby
jaequery has joined #ruby
<jhass> >> "\thi".gsub "\t", " "
fedalto has quit [Quit: leaving]
<eval-in_> jhass => " hi" (https://eval.in/248756)
<jhass> and it does
<havenwood> >> "\tX\tY\tZ".gsub "\t", " "
<eval-in_> havenwood => " X Y Z" (https://eval.in/248757)
josephnd1nton has joined #ruby
<havenwood> green-big-frog: are you confusing /t and \t?
j0n3 has joined #ruby
<havenwood> said it both ways, i'm guessing you meant \t?
<jhass> or maybe your input has \\t for some strange reason?
<green-big-frog> jhass: i also wan't to replace \n
leafybasil has quit [Ping timeout: 276 seconds]
Timgauthier is now known as timgauthier_away
<green-big-frog> havenwood: i meant \t
pu22l3r_ has joined #ruby
<green-big-frog> was a typo
<jhass> /[\t\n]/
eytanfb has joined #ruby
<jhass> maybe search for a basic regex tutorial ;)
shime has quit [Ping timeout: 246 seconds]
jzigmund has quit [Ping timeout: 246 seconds]
<jhass> >> "\tfoo\n".tr "\t\n", " "
<eval-in_> jhass => " foo " (https://eval.in/248758)
craigp has joined #ruby
<jhass> another way
<green-big-frog> ok
lsmola has quit [Ping timeout: 265 seconds]
<green-big-frog> I had that
<green-big-frog> but doesn't 19:58 <jhass> /[\t\n]/ also replace \?
<jhass> no
<green-big-frog> ok
<green-big-frog> thank you
jzigmund has joined #ruby
green-big-frog is now known as frog|OFF
anaeem1 has quit [Read error: Connection reset by peer]
xivusr has left #ruby [#ruby]
derJan has joined #ruby
fgo_zzZz has quit [Ping timeout: 245 seconds]
<havenwood> green-big-frog: if you want any whitespace character (\t\r\n\f) then you can just use: /\s/
sinkensabe has quit [Ping timeout: 240 seconds]
josephnd1nton has quit [Ping timeout: 245 seconds]
xivusr has joined #ruby
shredding has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
jcrubino has joined #ruby
LouisRoR has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<jcrubino> when I run bundle rspec exec, the trace shows two versions of ruby running
<jcrubino> I have rvm installed and my ruby --version is 2.2 but ruby 2.1 shows up in the rspec trace
anaeem1_ has joined #ruby
tonyhb has quit [Quit: peace]
<jhass> I'd try gem pristine --env-shebang bundler rspec-core
leonshalimov has quit [Ping timeout: 255 seconds]
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
leonshalimov has joined #ruby
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
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.]
Timgauthier has joined #ruby
<jhass> >> [16383.to_s(2), 16383.to_s(2).size]
<eval-in_> jhass => ["11111111111111", 14] (https://eval.in/248818)
<jhass> how many bits has a byte?
<jhass> how many bits do you need to encode per byte for your taks?
<jhass> *task
<jhass> what does that mean for the most significant bit?
<shevy> it becomes rather insignificant
tcrypt has joined #ruby
<shevy> do you guys know when the term "bit" was coined
n80_ has joined #ruby
jfran has joined #ruby
<rpag> yes
<rpag> bitcoin
<rpag> 2012 or so
<rpag> bout the same time computers were invented
withnale_ has joined #ruby
mloveless has joined #ruby
Megtastique has quit []
jcrubino has joined #ruby
jcrubino has joined #ruby
werelivinginthef has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wald0 has quit [Quit: Lost terminal]
lolmaus has joined #ruby
<jpstokes> sorry missed convoy
Timgauthier has quit [Max SendQ exceeded]
kirun has joined #ruby
<jpstokes> well I need two bytes so that's 16 bits all together
Megtastique has joined #ruby
<jhass> look at your value
defrang has joined #ruby
<jhass> how many bits can it have at most
<centrx> unless it they are baker's bytes!
Timgauthier has joined #ruby
<shevy> damn... Process.daemon(true, true) behaves like a zombie
<jhass> good, just don't daemonize then, use a supervisor
werelivinginthef has quit [Read error: Connection reset by peer]
Timgauthier is now known as timgauthier_away
werelivinginthef has joined #ruby
<rpag> shevy, what did you expect if you write satanist code like that
<shevy> I would not have enough patience for a supervisor
wald0 has joined #ruby
<rpag> blasphemy
<shevy> rpag yeah ... I think I need some random zombie killing code to just randomly kill the PID
<rpag> `kill -9 0`
Morkel has quit [Quit: Morkel]
blackmes1 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cmoneylulz has quit [Remote host closed the connection]
IrishGringo has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
doodlehaus has joined #ruby
iamjarvo has joined #ruby
wallerdev has joined #ruby
whoisjake has quit []
postmodern has joined #ruby
sinkensabe has joined #ruby
ghostmoth has joined #ruby
timgauthier_away is now known as Timgauthier
jkyle has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
blizzy has joined #ruby
whoisjake has joined #ruby
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
wallerdev has quit [Quit: wallerdev]
<centrx> block/proc
sambao21 has joined #ruby
baweaver has quit [Remote host closed the connection]
<jumex> jhass: ack! it DOES look hardcoded… That isn’t using the formatter at all ;_;
craigp has quit [Ping timeout: 264 seconds]
<jhass> I guess centerx thought you meant the log line format ;)
nobitanobi has quit [Remote host closed the connection]
craigp has joined #ruby
<jumex> yep. I guess I’ll have to find an out of band solution for this issue, then…
pushpak has quit [Quit: Linkinus - http://linkinus.com]
pdoherty has joined #ruby
LouisRoR has joined #ruby
baweaver has joined #ruby
Deepu_ has joined #ruby
gawd has joined #ruby
rdark has quit [Quit: leaving]
sambao21 has quit [Remote host closed the connection]
checkit has joined #ruby
<Deepu_> can you please tell me what I am doing wrong? I'm always getting "num_match = 0" http://pastie.org/private/uarmu60l2qy1zv9ukbb1ga
sambao21 has joined #ruby
mkaesz has joined #ruby
gawd has quit [Client Quit]
terlar has joined #ruby
pandaant has quit [Remote host closed the connection]
<Deepu_> this is how I am executing ./check-log.rb -f /var/log/client.log -q Exceptions -n 2
commmmodo has quit [Quit: commmmodo]
duncannz has joined #ruby
commmmodo has joined #ruby
ldnunes has quit [Quit: Leaving]
Zai00 has joined #ruby
Obfuscate has joined #ruby
voodoofish4301 is now known as voodoofish430
anaeem1_ has joined #ruby
<jhass> Deepu_: check the value before the .to_i
dimaursu16 has quit [Ping timeout: 245 seconds]
<jhass> .to_i returns 0 for nil and errors
cphrmky has quit [Quit: Textual IRC Client: www.textualapp.com]
<Deepu_> jhass: ok let me do that
mikepack has quit [Remote host closed the connection]
scpike_ has quit [Ping timeout: 245 seconds]
pu22l3r has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
cphrmky has joined #ruby
Aova has quit [Read error: Connection reset by peer]
SolarSailor has joined #ruby
<Deepu_> jhass: it seems like config[:num_match] is nil
Renich has joined #ruby
<jhass> ;)
shime has joined #ruby
dimaursu16 has joined #ruby
<Deepu_> jhass: any idea why it is nil?
<jhass> I don't know the library you're using, so no
havenwood has quit [Remote host closed the connection]
<Deepu_> so if I convert nil to intiger it will be 0?
gawd has joined #ruby
<shevy> >> nil.to_i
<eval-in_> shevy => 0 (https://eval.in/248925)
<shevy> yes Deepu_
<shevy> it is integer though, not in-tiger
gccostabr has quit [Read error: Connection reset by peer]
gccostab_ has joined #ruby
<shevy> unless you have a tiger in your pants
havenwood has joined #ruby
<centrx> Liongs and Intigers and Bools, oh my!
<Deepu_> shevy: unfortunatly I don't
kl has joined #ruby
kl__ has joined #ruby
bronson has quit [Remote host closed the connection]
Aova has joined #ruby
tyfighter has quit [Quit: tyfighter]
Renich has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
Renich has joined #ruby
Jackneill has quit [Ping timeout: 246 seconds]
<shevy> oh Liongs
<shevy> Booleongs
<shevy> centrx, why did you add "oh my"?
ta_ has joined #ruby
<shevy> this is actually the second time now that I noticed someone use the phrase "oh my" when tigers were mentioned
<centrx> "Lions and tigers and bears oh my"!
<shevy> hmm
<shevy> aaaah
GreatDanton has joined #ruby
<shevy> The Wizard of Oz
frek818 has quit [Quit: frek818]
shivamib has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
rpag has quit [Quit: Leaving]
pu22l3r has joined #ruby
lkba_ has joined #ruby
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…]
<weeb1e_> I recommend looking at Sinatra and Thin
diegoviola has joined #ruby
wallerdev has joined #ruby
nobitanobi has joined #ruby
weeb1e_ has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
Darryl___ has quit [Quit: Connection closed for inactivity]
gccostab_ has quit [Quit: ZZZzzz…]
leonshalimov has quit [Ping timeout: 272 seconds]
lkba_ has quit [Read error: Connection reset by peer]
lkba has joined #ruby
neanias has joined #ruby
derJan has joined #ruby
neanias has left #ruby ["Textual IRC Client: www.textualapp.com"]
greenbagels has joined #ruby
shredding has quit [Quit: shredding]
baweaver has quit [Remote host closed the connection]
tyfighter has joined #ruby
Megtastique has joined #ruby
shivamib has joined #ruby
<shevy> Frank Sinatra
<shevy> he was a good look indeed
derJan has quit [Ping timeout: 265 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fgo_zzZz has joined #ruby
<pipework> I recommend Rack and Puma.
werelivinginthef has quit []
FooMunki_ has joined #ruby
neoxquick has joined #ruby
<atmosx> pumaaaa
davedev has joined #ruby
<atmosx> pipework: why not thin?
<atmosx> or foreman
<atmosx> there was an even newer
<atmosx> typhoon or something
graydot has joined #ruby
<pipework> atmosx: thin because EM. um... foreman, I din't know
blueOxigen has quit [Ping timeout: 244 seconds]
<pipework> atmosx: Can you link me to the right foreman you speak of?
<atmosx> pipework: It is used to start multiple processes, like sinatra and sidekiq and EM etc
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<atmosx> pipework: I could yes
<atmosx> but I wont :-P I need to do down reboot by RPi and see if gets an IPv6 address
sambao21 has quit [Quit: Computer has gone to sleep.]
craigp has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
<ddv> puma
kitofr has joined #ruby
<pipework> atmosx: Oh, I thought we were just listing a library/framework for web and an app server to run it on
<pipework> foreman isn't either of those things.
deol has joined #ruby
loechel has joined #ruby
fgo_zzZz has quit [Ping timeout: 276 seconds]
Pumukel has quit [Ping timeout: 276 seconds]
lmickh has quit [Ping timeout: 276 seconds]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
nanoyak has joined #ruby
athan has quit [Ping timeout: 240 seconds]
codecop has quit [Quit: Išeinu]
allcentury has quit [Ping timeout: 264 seconds]
loechel is now known as Pumukel
sambao21 has joined #ruby
<atmosx> pipework: could be
<pipework> atmosx: How?
<atmosx> if you ask politely
<pipework> I don't do that.
nobitanobi has quit []
nobitanobi has joined #ruby
kitofr has quit [Quit: WeeChat 1.0.1]
cyberarm has joined #ruby
mary5030 has joined #ruby
davedev has quit [Ping timeout: 246 seconds]
last_staff has quit [Quit: last_staff]
tonyhb has quit [Quit: peace]
jamgood96 has quit [Quit: Leaving...]
unreal has quit [Remote host closed the connection]
lkba has quit [Read error: Connection reset by peer]
davedev has joined #ruby
iamjarvo has joined #ruby
unreal has joined #ruby
antgel has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
noop has quit [Ping timeout: 256 seconds]
ta_ has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
mbff has joined #ruby
<mbff> Anyone know how I would target every file recursively for a file glob?
davedev has quit [Ping timeout: 246 seconds]
<mbff> Right now I have files: ['{,*/}*.*', '!<%= config.public_dir %>/**'],
freerobby has quit [Quit: Leaving.]
<mbff> I cannot figure it out. I have asked here several times.
Aova has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<mozzarella> I'm not sure what you mean
tyfighter has quit [Quit: tyfighter]
Xeago has joined #ruby
numberten has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
numberten has left #ruby [#ruby]
<wallerdev> every file on your entire hard drive?
triple_b has joined #ruby
<wallerdev> or what
Aova has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
djbkd has quit [Ping timeout: 264 seconds]
<mbff> no from the parent folder
<mbff> I am working on a gruntfile
<mbff> I want it to trigger when anyfile changes in my project folder
<wallerdev> you want a glob that targets every file on your system from a parent folder?
<mbff> like **/*.scss but any extenison
_waltertv has joined #ruby
<wallerdev> what about **/* ?
<mbff> let me try
jonmorehouse has joined #ruby
bascht1 has joined #ruby
tyfighter has joined #ruby
<mbff> wow that was easy
<mbff> so what did '{,*/}*.*' mean
<mbff> ?
athan has joined #ruby
<mbff> I got that from a website/stackoverflow
davedev24_ has joined #ruby
nobitanobi has quit []
<mozzarella> you tell us
momomomomo has quit [Quit: momomomomo]
dc has quit [Remote host closed the connection]
bascht has quit [Ping timeout: 272 seconds]
leonshalimov has joined #ruby
ozialien_ has quit [Remote host closed the connection]
shashin has joined #ruby
shashin has quit [Changing host]
shashin has joined #ruby
FooMunki_ has quit [Quit: FooMunki_]
<wallerdev> no clue
<wallerdev> haha
<wallerdev> i dont do much globbing besides the basics
Kilo`byte has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
shashin has quit [Read error: Connection reset by peer]
ExtraSpicy has joined #ruby
triple_b_ has joined #ruby
tpilionis has joined #ruby
ta_ has joined #ruby
scpike has joined #ruby
<havenwood> mbff: You can read about what it means in the docs: http://ruby-doc.org/core-2.2.0/Dir.html#method-c-glob
<mbff> alright thanks for the help
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
<havenwood> mbff: the `{,*/}` means either prefixed by nothing (before the comma) or by a filename and slash (so subdirectories)
commmmodo has quit [Quit: commmmodo]
<havenwood> mbff: i'm sure you're familiar with the `*.*` part
triple_b has quit [Ping timeout: 244 seconds]
Kilo`byte has joined #ruby
<mbff> any filename any file extension?
waltert__ has joined #ruby
<havenwood> mbff: yup, but there must be both filename and extension to match
triple_b_ has quit [Ping timeout: 244 seconds]
<havenwood> mbff: at least something dot something
<mbff> ok so will **/* cover things in parent directory
icbm has joined #ruby
<mbff> or does it only cover stuff one directory deep
tvw has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
<havenwood> mbff: "** Matches directories recursively."
djbkd has joined #ruby
mikepack has joined #ruby
<mbff> that still is a little confusing for me
<havenwood> mbff: the directory you're in and all subdirectories of subdirectories
_waltertv has quit [Ping timeout: 246 seconds]
GreatDanton has quit [Quit: Gone to eat all the cookies]
<mbff> thank you
anaeem1_ has quit [Remote host closed the connection]
<mbff> that helps a lot
lmickh has joined #ruby
mary5030 has quit [Remote host closed the connection]
<mbff> havenwood I pretty sure you have helped me like a dozen times now
<havenwood> mbff: :)
<mbff> can I buy you a coffee or something (Paypal)
<shevy> sex
eytanfb has joined #ruby
nanoyak has joined #ruby
fgo_zzZz has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
blizzy has quit [Ping timeout: 244 seconds]
mikepack has quit [Remote host closed the connection]
nanoyak has joined #ruby
uptownhr has quit [Quit: uptownhr]
mikepack has joined #ruby
umbrella has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
miah has quit [Changing host]
miah has joined #ruby
<umbrella> Is it possible to use ruby for hardware hacking?
nanoyak has joined #ruby
<wallerdev> youd have to be more specific about "hardware hacking"
<umbrella> Example a gaming mouse with 3leds. Making driver like ruby code that's enable to modify the 3 variables.
<atmosx> umbrella: I don't think any high level language would be a good choice for anything that you could mean for "hw hacking"
<havenwood> mbff: glad to help out when i can, nice that Ruby is fun
<wallerdev> no you're not gonna want to try to write drivers in ruby
uptownhr has joined #ruby
<mbff> Alright thanks
<atmosx> umbrella: there are gems to play with arduino if you like
fgo_zzZz has quit [Ping timeout: 265 seconds]
whoisjake has quit []
<umbrella> Why is ruby practical?
Obfuscate has quit [Quit: Yet another reboot, courtesy of nvidia.]
fuzzyhorns1 has joined #ruby
<wallerdev> because it can be used in a way that helps you solve problems?
momomomomo has joined #ruby
<fuzzyhorns1> anyone seen different behavior between Time.parse and .to_time when s ending data to a db query?
umbrella has left #ruby [#ruby]
Eiam_ has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
jfran has quit [Ping timeout: 252 seconds]
slester has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
fgo_zzZz has joined #ruby
freerobby has joined #ruby
timonv has joined #ruby
Moter8 has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
anaeem1_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hmsimha has joined #ruby
mayday_jay has quit [Quit: c ya!]
aclearma_ has quit [Quit: I'm out!]
decoponio has quit [Quit: Leaving...]
brb3 has quit [Quit: <.<]
EvanFreeman has quit [Remote host closed the connection]
codeFiend has joined #ruby
Obfuscate has joined #ruby
fgo_zzZz has quit [Ping timeout: 264 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mbff has quit [Quit: Leaving]
DrShoggoth has joined #ruby
momomomomo_ has joined #ruby
tyfighter has quit [Ping timeout: 245 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JDiPierro has quit [Remote host closed the connection]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
roshanavand has quit [Quit: roshanavand]
momomomomo has quit [Ping timeout: 255 seconds]
tsnz has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
gz_rain has joined #ruby
jaequery has joined #ruby
tyfighter has joined #ruby
roshanavand has joined #ruby
n80_ has quit [Quit: n80_]
gz_rain has quit [Remote host closed the connection]
sanguisdex has left #ruby [#ruby]
gz_rain has joined #ruby
n80_ has joined #ruby
blackoperat has quit [Ping timeout: 245 seconds]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
shredding has joined #ruby
pdoherty has quit [Remote host closed the connection]
terlar has quit [Quit: WeeChat 1.1]
psyprus has quit [Quit: leaving]
sambao21 has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
gz_rain has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
gz_rain has joined #ruby
n80_ has quit [Quit: n80_]
n80_ has joined #ruby
DadoCe has joined #ruby
chipotle has quit [Quit: cheerio]
rbennacer has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
robbyoconnor has quit [Ping timeout: 276 seconds]
dseitz has joined #ruby
it0a has quit [Quit: WeeChat 1.1]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
codeFiend is now known as aeontech
shredding has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
Aova has quit [Read error: Connection reset by peer]
Deele has quit [Ping timeout: 244 seconds]
matthewhill has quit [Quit: Be back later ...]
cantonic has joined #ruby
CrazyM4n has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has joined #ruby
rhino-sic has joined #ruby
rhino-sic has left #ruby ["WeeChat 1.1"]
msmith_ has quit [Ping timeout: 255 seconds]
gz_rain has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
gz_rain has joined #ruby
ZoanthusR has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
Aova has joined #ruby
gz_rain has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
neoxquick has quit [Ping timeout: 244 seconds]
shredding has joined #ruby
gz_rain has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
jerius has quit []
ta_ has quit [Remote host closed the connection]
shashin has joined #ruby
shashin has joined #ruby
mary5030 has quit [Remote host closed the connection]
ZoanthusR has quit [Ping timeout: 246 seconds]
gregf has quit [Quit: WeeChat 1.0.1]
baweaver has quit [Remote host closed the connection]
ta_ has joined #ruby
gz_rain has joined #ruby
zorak8 has joined #ruby
chrishough has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
pdoherty has joined #ruby
jefus_ has joined #ruby
omosoj has joined #ruby
<Kilo`byte> how can i get my local port of a connection in ruby?
ramfjord has quit [Ping timeout: 264 seconds]
<Kilo`byte> as in, TCP connection
_ixti_ has joined #ruby
<momomomomo> Kilo`byte: where’s your code?
ixti has quit [Ping timeout: 240 seconds]
rpag has joined #ruby
<Kilo`byte> momomomomo: i don't have any code atm
odin22 has quit [Read error: Connection reset by peer]
<momomomomo> what connection are you talking about, then Kilo`byte
<Kilo`byte> but basicly, i would have this: mysocket = TCPSocket.new "somehost", 1234
<Kilo`byte> now, the remote port is 1234
<Kilo`byte> the local port is assigned by the OS. how can i retrieve it
ramfjord has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
longfeet has joined #ruby
jefus has quit [Ping timeout: 272 seconds]
crueber has quit [Quit: Leaving.]
<momomomomo> it should be mapped 1:1 with what you set
nanoyak has joined #ruby
<Kilo`byte> momomomomo: you don't SET the local port
<Kilo`byte> the OS does that for you
<momomomomo> welp, unless you’re running in a VM
<Kilo`byte> well, lets assume i am not :P
<momomomomo> where you should be mapping or forwarding on your host if you really need that, it shouldn’t affect anything, so why do you need this
<apeiros> Kilo`byte: I think addr contains it
<wallerdev> i think you can use Addrinfo for that
<Kilo`byte> yes
<Kilo`byte> i assume too
doodlehaus has quit [Remote host closed the connection]
<apeiros> yupp, docs confirm
<Kilo`byte> but i don't know how to get the addrinfo for the local part of connection
<apeiros> IPSocket#addr
<apeiros> ?
<apeiros> just call .addr on the socket
<Kilo`byte> aaaaaah
<Kilo`byte> thanks buddy
leafybasil has joined #ruby
dc has joined #ruby
<Kilo`byte> did not see IPSocket
sambao21 has quit [Quit: Computer has gone to sleep.]
fuzzyhorns1 has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
x77686d has joined #ruby
jfran has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
zwer has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
<apeiros> Kilo`byte: always check ancestors ;-)
Azure has joined #ruby
<Kilo`byte> apeiros: well, i could have sworn TCPSockets direct parent was Socket
<Kilo`byte> i derped there
<apeiros> >> require 'socket'; TCPSocket.ancestors
<eval-in_> apeiros => [TCPSocket, IPSocket, BasicSocket, IO, File::Constants, Enumerable, Object, Kernel, BasicObject] (https://eval.in/249243)
booly-yam-4014__ has joined #ruby
booly-yam-4014_ has quit [Ping timeout: 265 seconds]
<apeiros> odd enough that Socket isn't even in the ancestry at all
Zai00 has joined #ruby
fgo_zzZz has joined #ruby
baweaver has joined #ruby
<Kilo`byte> apeiros: thats a good one to know
sssilver has joined #ruby
<wallerdev> great interview question right there
<sssilver> People of #ruby, why doesn't gem install return a non-zero code to the shell when/if it fails to install something for whatever reason?
<rpag> i dont know why, but i think it should. send a pull request?
<sssilver> best I can do with my skillset is report a bug (unless gem is written on C++/Python)
<rpag> its written in ruby
<wallerdev> it returned 2 on failure for me
blackoperat has joined #ruby
<wallerdev> and 0 on success
<wallerdev> are you sure?
<wallerdev> what version of gem
cantonic has quit [Quit: cantonic]
fgo_zzZz has quit [Ping timeout: 265 seconds]
Hijiri has joined #ruby
<sssilver> 1.8.23
<wallerdev> upgrade yo
CpuID has joined #ruby
CpuID has joined #ruby
<sssilver> all I do is sudo apt-get install -y ruby, yo
jenrzzz_ has joined #ruby
<wallerdev> what version of ruby are you on
<wallerdev> 1.8??
fryguy9 has quit [Quit: Leaving.]
<sssilver> 1.9.3
nanoyak has quit [Read error: Connection reset by peer]
<wallerdev> get ruby 2
<shevy> ack
<wallerdev> package managers live in the past
nanoyak_ has joined #ruby
<wallerdev> ruby lives in the future
<sssilver> I don't even use Ruby, I just use Compass
<shevy> debian is so slow
skj3gg has joined #ruby
icbm has quit [Ping timeout: 264 seconds]
<shevy> yeah but you use an outdated gem, and that came from debian
<shevy> *rubygem; there are the newer ones https://rubygems.org/pages/download
antgel has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
DrShoggoth has quit [Quit: Leaving]
<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 ^.^
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<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
marr has quit [Ping timeout: 246 seconds]
<havenwood> sssilver: 14.10 has the fairly modern Ruby 2.1 package. If you need newer there're the Brightbox packges: https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng
shashin has quit [Quit: Leaving...]
<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
matthewhill has joined #ruby
<sssilver> omosoj: watch the first 3 minutes of this https://www.youtube.com/watch?v=dkZFtimgAcM -- he mentions the curse of monads
<omosoj> GaryOak_, afaik, a difficult concept present in haskell: https://www.haskell.org/tutorial/monads.html
<sssilver> at like 0:50 seconds
towski_ has joined #ruby
tjbiddle has joined #ruby
<omosoj> lol @ the title: monads & gonads
<uptownhr> using erb form bulider to build a form for user
<uptownhr> how can i get a cehckbox array that looks like this?
<uptownhr> <input type="checkbox" name="user[account_pks][]" value="<%=account.id%>">
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]
baweaver has joined #ruby
<jumex> jhass: I made a little patch to the Logger class to allow the rotated log file ext to be customized: https://bugs.ruby-lang.org/issues/10772
livingstn has quit []
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
<pipework> ellisTAA: Oh, no. It's a bit different. http://en.wikipedia.org/wiki/Factory_method_pattern
<ellisTAA> pipework: ty
<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]
<deepa> NaN
<ellisTAA> is a class a factory?
xivusr has joined #ruby
<wallerdev> no?
<wallerdev> lol
<ellisTAA> lol
<ellisTAA> based on this defintiion it sounds like a class is one http://en.wikipedia.org/wiki/Factory_%28object-oriented_programming%29
fgo_zzZz has joined #ruby
<wallerdev> it's an object for creating other objects
gz_rain has joined #ruby
Eiam_ has joined #ruby
<wallerdev> if you just do class Cow; end
gz_rain has quit [Read error: Connection reset by peer]
<wallerdev> there's no way to create other objects from the Cow class
<wallerdev> you can only create cows
<ellisTAA> so class.new would be a factory?
dc has quit [Remote host closed the connection]
ta_ has joined #ruby
<wallerdev> lol
gz_rain has joined #ruby
gz_rain has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
<wallerdev> most people would just call that initializing an object
<wallerdev> there's no reason to bring the concept of factories into that
adriancb has quit [Remote host closed the connection]
<ellisTAA> ah. i’m just trying to figure it out. this problem i’m working on says one of the topics is factory methods
adriancb has joined #ruby
co0k13m0ns13r has left #ruby [#ruby]
nfk has quit [Quit: yawn]
mloveless has joined #ruby