apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: 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
willb1 has joined #ruby
Salve has quit [Ping timeout: 265 seconds]
<fraterlaetus> irb'ing it now
<fraterlaetus> thanks in advance!
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
razrunelord has joined #ruby
lw has quit [Quit: s]
philcrissman has joined #ruby
<fraterlaetus> woot! that works'ish
<Gaddel> or Hash[array1.zip(array2)]
<Gaddel> which is the same thing
aspires has quit []
supermarin has quit [Read error: Connection reset by peer]
<fraterlaetus> I had to use Hash[table[1].zip(rows)]
supermarin has joined #ruby
<fraterlaetus> now to figure out how to iterate in ruby.
<Gaddel> you can just do .each
<fraterlaetus> (bash guy learning to speak ruby) = difficult.
vlad_starkov has quit [Ping timeout: 265 seconds]
<Gaddel> {}.each { |key, value| .... }
arubincloud has quit []
Gaddel has quit []
enebo has quit [Quit: enebo]
nanoyak has quit [Quit: Computer has gone to sleep.]
axsuul has joined #ruby
k03ll has quit [Quit: So say we all!]
<fraterlaetus> table.each zips each row to an entire array.
<DreamingRainne> Where bash uses something like "for herp in derp; do ...; end", Ruby instead does "derp.each{ |herp| ... }"
<fraterlaetus> irb(main):006:0> table[1]
<fraterlaetus> => ["├─sda1", "8:1", "0", "243M", "0", "part", "/boot"]
koell has joined #ruby
sdouglas has joined #ruby
Liothen has joined #ruby
crazymykl has joined #ruby
<fraterlaetus> so Hash[rows.zip(table[1])] produces exactly what I want
momomomomo has joined #ruby
mikemac has quit [Read error: Connection reset by peer]
wiku5_ has quit [Quit: WeeChat 0.4.1]
<fraterlaetus> Hash[rows.zip(table.each)] zips each collumn header to an entire array of values
wiku5_ has joined #ruby
smathieu has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 240 seconds]
<fraterlaetus> ie: "NAME"=>["sda", "8:0", "0", "8G", "0", "disk"],
<fraterlaetus> instead of {"NAME"=>"├─sda1", "MAJ:MIN"=>"8:1", "RM"=>"0", "SIZE"=>"243M", "RO"=>"0", "TYPE"=>"part", "MOUNTPOINT"=>"/boot"}
smathieu has joined #ruby
mansi has joined #ruby
nisstyre has quit [Quit: bai]
dmyers has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
philcrissman has quit [Remote host closed the connection]
moneydouble has quit [Quit: Leaving.]
mikemac has joined #ruby
mikemac has quit [Client Quit]
mikemac has joined #ruby
armyriad has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
razrunelord has quit [Ping timeout: 252 seconds]
razrunelord has joined #ruby
b00stfr3ak has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 252 seconds]
mikemac has quit [Read error: Connection reset by peer]
mikemac has joined #ruby
grzywacz has quit [Remote host closed the connection]
crazymykl has quit [Read error: Connection reset by peer]
<shevy> fraterlaetus in general ruby uses #each, like for an array, or #each_pair for a hash
yubrew has joined #ruby
<shevy> fraterlaetus so the first thing to do is always - identify what you have here
GaryOak_ has quit [Ping timeout: 264 seconds]
mojjojo has quit [Quit: mojjojo]
<shevy> .zip zips up two arrays
mansi has quit [Remote host closed the connection]
Xuisce has joined #ruby
ndrei has joined #ruby
srji_ has joined #ruby
moneydouble has joined #ruby
Lewix has quit [Remote host closed the connection]
<shevy> ['a','b','c'].zip(['d','e','f']) # => [["a", "d"], ["b", "e"], ["c", "f"]]
mansi has joined #ruby
predator117 has joined #ruby
lethjakman has joined #ruby
<lethjakman> is there a way to modify the current variable inside of a select { } ?
<shevy> and Hash to convert it into a hash again
<shevy> Hash[* [["a", "d"], ["b", "e"], ["c", "f"], ['g','h']] ] # => {["a", "d"]=>["b", "e"], ["c", "f"]=>["g", "h"]}
<shevy> eww
<shevy> that went badly :P
spider-mario has quit [Remote host closed the connection]
rootshift has joined #ruby
<shevy> lethjakman what is the current variable?
jxf has quit [Ping timeout: 240 seconds]
razrunelord has quit [Remote host closed the connection]
srji has quit [Ping timeout: 252 seconds]
mansi_ has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
mansi has quit [Read error: Connection reset by peer]
<lethjakman> shevy: [1..100].select{ |i| i.even }
<lethjakman> the i right there
duggiefresh has joined #ruby
joelroa has joined #ruby
mikepack has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
lolmaus has quit [Ping timeout: 240 seconds]
sski has joined #ruby
hermanmu_ has quit [Remote host closed the connection]
<RubyPanther> lethjakman: normally you would do 2 steps reject and replace.
wiku5_ has quit [Quit: WeeChat 0.4.1]
hermanmunster has joined #ruby
wiku5_ has joined #ruby
Eiam has joined #ruby
polydius has joined #ruby
roolo has quit [Quit: Leaving...]
hermanmunster has quit [Read error: Connection reset by peer]
hermanmunster has joined #ruby
joelroa has quit [Ping timeout: 241 seconds]
griffindy has joined #ruby
gr33n7007h has joined #ruby
Asher has quit [Quit: Leaving.]
_bart has quit [Remote host closed the connection]
jhn has joined #ruby
duggiefresh has quit [Remote host closed the connection]
thisirs has quit [Remote host closed the connection]
<DreamingRainne> maybe map{|i| i.even? ? value_if_even : value_if_odd }
duggiefresh has joined #ruby
<benzrf> replace?
sparrovv has quit [Remote host closed the connection]
<DreamingRainne> Well, you'd need two blocks for that: one for the condition, one for the value to replace it with.
<benzrf> >> [1, 2, 3].replace
<eval-in> benzrf => wrong number of arguments (0 for 1) (ArgumentError) ... (https://eval.in/114949)
<benzrf> >> [1, 2, 3].replace 2
<eval-in> benzrf => no implicit conversion of Fixnum into Array (TypeError) ... (https://eval.in/114950)
<benzrf> o-o
<benzrf> >> [1, 2, 3].replace [4, "foo"]
<benzrf> i am confuse
<DreamingRainne> So just do map!{|i| condition ? newvalue : i} or each_with_index{|value,i| array[i] = newvalue if condition} or something.
<DreamingRainne> "replace" overwrites the contents of the array with the other array. Think Agent Smith in the Matrix sequels. It empties out the original array and rebuilds it in the other one's image.
lw has joined #ruby
mehlah has quit [Quit: Leaving...]
<DreamingRainne> It modifies the original array directly, which is what makes it different than simply assigning.
wiku5_ has quit [Ping timeout: 253 seconds]
duggiefresh has quit [Ping timeout: 244 seconds]
nitani has joined #ruby
zz_karupanerura is now known as karupanerura
ritek has joined #ruby
ScalaIrcClient has joined #ruby
timonv has joined #ruby
mojjojo has joined #ruby
cat_pants has joined #ruby
fgo has quit [Remote host closed the connection]
moneydouble has quit [Quit: Leaving.]
<cat_pants> Hi folks, I have a (hopefully) easy one. I'm trying to run this rake task: http://www.satisnet.co.uk/blog/puppet-dashboard-keeping-it-tidy/ but unsure what user I should run it as. My guesses are either 1. puppet 2. root. Thanks!
<centrx> cat_pants, Best practices for security are don't run as root unless absolutely necessary.
kevind has quit [Quit: kevind]
timonv has quit [Ping timeout: 265 seconds]
<cat_pants> Should I try running as the "puppet" user?
crucify_me has joined #ruby
Lewix has joined #ruby
yasushi has quit [Remote host closed the connection]
snuffeluffegus has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
Asher has joined #ruby
<RubyPanther> cat_pants: if that is the user that is running the rails part
evenix has quit [Remote host closed the connection]
<pontiki> aaaahh, actually, you should be running it as whatever user is running that application on your server
<pontiki> might be puppet, might not
evenix has joined #ruby
sparrovv has joined #ruby
crucify_me has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
nanoyak has joined #ruby
fgo has joined #ruby
phantomtiger has joined #ruby
smathieu has joined #ruby
evenix has quit [Ping timeout: 265 seconds]
jnoob22 has joined #ruby
rbartos has quit [Remote host closed the connection]
Megtastique has joined #ruby
jnoob22 has left #ruby [#ruby]
Jdubs has quit [Remote host closed the connection]
<cat_pants> Ok. From the output of ps, it looks like 10 ruby processes are running as the "puppet-dashboard" user, while one ruby process is running as root
wiku5_ has joined #ruby
fgo has quit [Remote host closed the connection]
momigi_ has quit [Read error: Connection reset by peer]
CorySimmons has quit [Quit: Zzz...]
momigi has joined #ruby
baroquebobcat has quit [Ping timeout: 240 seconds]
Deele has quit [Ping timeout: 264 seconds]
rbartos has joined #ruby
lw has quit [Quit: s]
Zunonia has joined #ruby
lolmaus has joined #ruby
nhhagen has quit [Remote host closed the connection]
Mongey has joined #ruby
nhhagen has joined #ruby
cashnguns has joined #ruby
achru has joined #ruby
pu22l3r has joined #ruby
pyx has joined #ruby
nhhagen has quit [Remote host closed the connection]
rbartos has quit [Ping timeout: 244 seconds]
pyx is now known as help
tylershipe has joined #ruby
xibalba has quit [Quit: ZNC - http://znc.in]
help is now known as Guest13009
nhhagen has joined #ruby
koell has quit [Quit: So say we all!]
CorySimmons has joined #ruby
xibalba has joined #ruby
niftyn8 has quit [Ping timeout: 244 seconds]
<cat_pants> nm, the one instance of ruby running as root is the puppet agent
Guest13009 has quit [Client Quit]
zorak_ has quit [Ping timeout: 240 seconds]
nhhagen has quit [Remote host closed the connection]
duggiefresh has joined #ruby
xibalba has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
<cat_pants> Thanks folks!
FOSScookie has joined #ruby
tvw has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
pel_daniel has left #ruby [#ruby]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
CorySimmons has quit [Quit: Zzz...]
cat_pants has quit [Quit: leaving]
ehc has quit [Quit: ehc]
ndrei has quit [Ping timeout: 241 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
smathieu has quit [Ping timeout: 244 seconds]
meinside has quit [Quit: Connection closed for inactivity]
tkuchiki has joined #ruby
pitzips has quit [Remote host closed the connection]
xerox357 has joined #ruby
sparrovv has quit [Remote host closed the connection]
sdouglas has joined #ruby
robustus has quit [Ping timeout: 244 seconds]
Solnse has quit [Quit: Leaving.]
yubrew has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
Mongey has quit [Quit: Mongey]
robustus has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
FOSScookie has quit [Quit: Leaving.]
<fraterlaetus> thanks people!
* fraterlaetus waves
<benzrf> does anybody know of something like drb or dcell that's safe to expose to the general public
<benzrf> ;-;
fraterlaetus has quit []
Oog has joined #ruby
<bnagy> there's never going to be anything
<benzrf> ;-;
<Oog> when i trap QUIT in a forked process how do i gracefully tell the process to exit?
<bnagy> just make a strict API and a dcelly backend
<benzrf> ?
phantomtiger has quit [Quit: phantomtiger]
yubrew has quit [Ping timeout: 265 seconds]
<bnagy> like have a safeJSON api or something
<bnagy> at the untrusted end
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
rococo has joined #ruby
<bnagy> also as an aside dcell and drb are polar opposite distributed programming approaches
<bnagy> Oog: does exit not work?
<Oog> bnagy: i didnt try it - exit said exit script so i thought it would maybe also close the parent process?
Mongey has joined #ruby
ce_afk is now known as cescalante
<bnagy> should just exit the running process
nitani has quit [Remote host closed the connection]
<bnagy> but hey if not Process.exit I think
xerox357 has quit [Remote host closed the connection]
<DreamingRainne> Once forked, they're separate processes. You'd have to communicate with the other one somehow in order to tell it to close.
<bnagy> yeah I guess by sending a sigquit
xerox357 has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
xerox357 has joined #ruby
<bnagy> Oog: fwiw I think signal-based IPC is kind of inelegant for ruby
<Oog> its for heroku i have to deal with it i think
momomomomo has quit [Quit: momomomomo]
<Oog> when it restarts dynos it sends sigterm
<bnagy> fair enough
duggiefresh1 has joined #ruby
aspires has joined #ruby
mansi_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
lw has joined #ruby
mansi has joined #ruby
joelroa has joined #ruby
Asher has quit [Quit: Leaving.]
snuffeluffegus has joined #ruby
aspires has quit [Client Quit]
deadlock has joined #ruby
SCommette has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
SCommette has quit [Client Quit]
Salve has joined #ruby
joelroa has quit [Ping timeout: 265 seconds]
itadder has quit [Read error: Connection reset by peer]
m4n1f3st0 has joined #ruby
Jeticus has joined #ruby
CaptainJet has quit [Ping timeout: 253 seconds]
jhn has quit [Ping timeout: 264 seconds]
randomnick_ has quit [Quit: Leaving]
walter has joined #ruby
renderful has joined #ruby
m4n1f3st0 has quit [Client Quit]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Salve has quit [Ping timeout: 269 seconds]
tonyhb has joined #ruby
aspires has joined #ruby
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<walter> exit
duggiefresh1 has quit [Ping timeout: 240 seconds]
dik_dak has quit [Quit: Leaving]
kukyakya has joined #ruby
CorySimmons has joined #ruby
pu22l3r has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
walter has quit [Client Quit]
IceDragon has joined #ruby
walter has joined #ruby
walter has quit [Client Quit]
tangyumeng has joined #ruby
pu22l3r has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
IceDragon has quit [Client Quit]
walter has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<tangyumeng> hello
Asher has joined #ruby
walter has quit [Client Quit]
walter has joined #ruby
Mongey has quit [Quit: Mongey]
shevy has quit [Ping timeout: 240 seconds]
tangyumeng has quit [Client Quit]
shevy has joined #ruby
walter has quit [Client Quit]
walter has joined #ruby
walter has quit [Client Quit]
evenix has joined #ruby
fluxxed has joined #ruby
Steve445 has joined #ruby
fgo has joined #ruby
SCommette has joined #ruby
larissa has quit [Quit: Leaving]
codeFiend has joined #ruby
agent_white has quit [Quit: leaving]
kayloos has joined #ruby
[gmi] has quit [Quit: Leaving]
mikecmpbll has quit [Quit: i've nodded off.]
wiku5_ has quit [Quit: WeeChat 0.4.1]
wiku5_ has joined #ruby
thomasxie has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
smathieu has joined #ruby
kitak has joined #ruby
lolmaus has joined #ruby
smathieu has quit [Remote host closed the connection]
Mongey has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
kayloos has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
thomasxie has left #ruby [#ruby]
hamakn has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
<Oog> how exactly does a signal trap work like if my process is in the middle of something
<Oog> and a signal trap happens
<Oog> what thread is that trap executing on?
smathieu has quit [Ping timeout: 240 seconds]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mercwithamouth has quit [Ping timeout: 240 seconds]
twiceaday has quit [Ping timeout: 264 seconds]
lw has quit [Quit: s]
VictorSK has joined #ruby
VictorSK_ has joined #ruby
VictorSK has quit [Client Quit]
VictorSK_ is now known as VictorSK
yfeldblum has joined #ruby
VictorSK has quit [Client Quit]
vlad_starkov has joined #ruby
JViz_ has joined #ruby
NalloK1 has joined #ruby
Zunonia has quit [Ping timeout: 265 seconds]
NalloK1 has quit [Max SendQ exceeded]
CorySimmons has quit [Quit: Zzz...]
thumpba_ has joined #ruby
Zunonia has joined #ruby
<Waheedi> anyone have done delayed_job
<Waheedi> :)
<Waheedi> my question
mosheee has joined #ruby
<Waheedi> i want to create e record in delayed job table
nanashiReii has joined #ruby
<Waheedi> nvm
CaptainJet has joined #ruby
peck__ has joined #ruby
Steve445 has quit [Quit: Steve445]
shtirlic has quit [Ping timeout: 240 seconds]
moshee has quit [Ping timeout: 240 seconds]
nanashiRei has quit [Ping timeout: 240 seconds]
TigerWolf has quit [Read error: Connection reset by peer]
helpa has quit [Remote host closed the connection]
Zunonia has quit [Client Quit]
nanashiReii is now known as nanashiRei
Bish has quit [Ping timeout: 240 seconds]
NalloK has quit [Ping timeout: 240 seconds]
peck_ has quit [Ping timeout: 240 seconds]
cephalostrum has quit [Ping timeout: 240 seconds]
predator117 has quit [Ping timeout: 240 seconds]
JViz has quit [Ping timeout: 240 seconds]
thumpba has quit [Ping timeout: 240 seconds]
crazysim has quit [Ping timeout: 240 seconds]
zxq9 has quit [Ping timeout: 240 seconds]
julian` has quit [Ping timeout: 264 seconds]
lukec has quit [Quit: lukec]
nanashiRei has quit [Changing host]
nanashiRei has joined #ruby
Jeticus has quit [Ping timeout: 240 seconds]
Rylee has quit [Ping timeout: 240 seconds]
helpa has joined #ruby
andredieb has quit [Ping timeout: 240 seconds]
Kilo`byte has quit [Ping timeout: 240 seconds]
Xuerian has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
WormDrink has quit [Ping timeout: 240 seconds]
ping_pong has quit [Ping timeout: 240 seconds]
zxq9 has joined #ruby
julian` has joined #ruby
hamakn has joined #ruby
Bish_ has joined #ruby
cephalostrum has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
Salve has joined #ruby
ping_pong has joined #ruby
danman has quit [Quit: danman]
justinmcp has joined #ruby
griffind_ has joined #ruby
radic has quit [Disconnected by services]
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
Rylee has joined #ruby
cherry_lin has joined #ruby
noname001 has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
peterhu_ has joined #ruby
willb2 has joined #ruby
renderful has quit [Remote host closed the connection]
shtirlic has joined #ruby
radic_ has joined #ruby
NalloK has joined #ruby
mr_rich102 has joined #ruby
mark_olson has joined #ruby
Kilo`byte has joined #ruby
yubrew has quit [Read error: Operation timed out]
niv_ has joined #ruby
Elfix has joined #ruby
xMopxShe- has joined #ruby
TripTastic has joined #ruby
NalloK has quit [Max SendQ exceeded]
crazysim has joined #ruby
WormDrink has joined #ruby
cHarNe2_ has joined #ruby
Morrolan_ has joined #ruby
markolson has quit [Ping timeout: 240 seconds]
griffindy has quit [Ping timeout: 240 seconds]
willb1 has quit [Ping timeout: 240 seconds]
Senjai`work has quit [Ping timeout: 240 seconds]
niv has quit [Ping timeout: 240 seconds]
Morrolan has quit [Ping timeout: 240 seconds]
grs has quit [Ping timeout: 240 seconds]
a-priori has quit [Ping timeout: 240 seconds]
abstractj has quit [Ping timeout: 240 seconds]
zerun0 has quit [Ping timeout: 240 seconds]
mr_rich101 has quit [Ping timeout: 240 seconds]
xMopxShell has quit [Ping timeout: 240 seconds]
peterhu has quit [Ping timeout: 240 seconds]
Elfix_113 has quit [Ping timeout: 240 seconds]
flagg0204 has quit [Ping timeout: 240 seconds]
go|dfish has quit [Ping timeout: 240 seconds]
gregf has quit [Ping timeout: 240 seconds]
cherry_l1n has quit [Ping timeout: 240 seconds]
jprovazn has quit [Ping timeout: 240 seconds]
benzrf has quit [Ping timeout: 240 seconds]
codabrink has quit [Ping timeout: 240 seconds]
breakingthings has quit [Ping timeout: 240 seconds]
justinmcp_ has quit [Ping timeout: 240 seconds]
scttnlsn has quit [Ping timeout: 240 seconds]
ptierno has quit [Ping timeout: 240 seconds]
lethjakman has quit [Ping timeout: 240 seconds]
cHarNe2 has quit [Ping timeout: 240 seconds]
gf3 has quit [Ping timeout: 240 seconds]
thejoecarroll_ has quit [Ping timeout: 240 seconds]
noname001__ has quit [Ping timeout: 240 seconds]
mark_olson is now known as markolson
niv_ is now known as niv
zerun0_ has joined #ruby
flagg0204 has joined #ruby
ciziar has quit [Ping timeout: 246 seconds]
MJBrune has quit [Write error: Broken pipe]
abstractj has joined #ruby
TripTastic is now known as JBreit2
andredieb has joined #ruby
andredieb has quit [Changing host]
andredieb has joined #ruby
sirecote has quit [Ping timeout: 240 seconds]
Senjai has joined #ruby
thejoecarroll has joined #ruby
ptierno has joined #ruby
redlines has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
go|dfish has joined #ruby
codabrink has joined #ruby
breakingthings has joined #ruby
gf3 has joined #ruby
sdouglas has joined #ruby
redlines has joined #ruby
ScalaIrcClient has quit [Remote host closed the connection]
sirecote has joined #ruby
JBreit has quit [Ping timeout: 240 seconds]
scttnlsn has joined #ruby
Salve has quit [Ping timeout: 244 seconds]
mven has quit [Ping timeout: 240 seconds]
xMopxShe- has quit [Client Quit]
momigi has quit [Remote host closed the connection]
ScalaIrcClient has joined #ruby
nathanso_ has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 264 seconds]
xMopxShell has joined #ruby
Zunonia has joined #ruby
momigi has joined #ruby
wykydtron has quit [Ping timeout: 240 seconds]
dapz has joined #ruby
nathansoz has joined #ruby
dapz has quit [Max SendQ exceeded]
wykydtron has joined #ruby
chinkung has joined #ruby
xerox357 has quit [Remote host closed the connection]
krz has joined #ruby
dapz has joined #ruby
FL1SK has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
snkcld has quit [Ping timeout: 240 seconds]
Kovensky has quit [Ping timeout: 240 seconds]
mgorbach has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 240 seconds]
benzrf has joined #ruby
mven has joined #ruby
njection has quit [Ping timeout: 265 seconds]
snkcld has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
mattyohe has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
kloeri has quit [Remote host closed the connection]
Davey has quit [Ping timeout: 240 seconds]
Kovensky has joined #ruby
Nilium has quit [Ping timeout: 240 seconds]
kloeri has joined #ruby
MJBrune has joined #ruby
MJBrune has joined #ruby
MJBrune has quit [Changing host]
hiyosi has joined #ruby
kotakotakota has joined #ruby
caveat- has joined #ruby
amclain has joined #ruby
momigi has quit [Ping timeout: 244 seconds]
Hobogrammer_ has quit [Ping timeout: 244 seconds]
ScalaIrcClient has quit [Ping timeout: 240 seconds]
kung has quit [Ping timeout: 240 seconds]
mgorbach has joined #ruby
amclain has quit [Client Quit]
vcoinminer has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
mattyohe_ has joined #ruby
Nilium has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
amclain has quit [Client Quit]
Hanmac1 has quit [Ping timeout: 252 seconds]
armyriad has quit [Ping timeout: 242 seconds]
wmoxam has quit [Ping timeout: 240 seconds]
michaelchum has quit [Ping timeout: 240 seconds]
wmoxam has joined #ruby
Davey has joined #ruby
njection has joined #ruby
amclain has joined #ruby
kung has joined #ruby
pietr0_ has joined #ruby
michaelchum has joined #ruby
vpretzel_ has joined #ruby
davedev2_ has joined #ruby
aryaching_ has joined #ruby
Asher1 has joined #ruby
tylersmith has quit [Ping timeout: 244 seconds]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
benzrf has quit [Quit: leaving]
Myk267 has left #ruby [#ruby]
fgo has quit [Remote host closed the connection]
ScalaIrcClient has joined #ruby
vcoinminer_ has joined #ruby
rezzack1 has joined #ruby
Avahey_ has joined #ruby
mikepack_ has joined #ruby
<bnagy> Oog: afair it's kind of ugly
<Oog> it sort of seems to happen like in the current thread...?
<bnagy> I _think_ it's in whatever thread you defined the trap, but I'm not sure
<bnagy> but remember that in MRI only one ruby thread is ever actually running
<bnagy> hence it being ugly :/
fgo has joined #ruby
jefflyne_ has joined #ruby
<bnagy> so if you have ruby threads that need to clean up before main thread exit ( like if they're using DBs or whatever ) then you need to make sure they do that before your trap handler exits
zenojis_ has joined #ruby
nhmood_ has joined #ruby
hoelzro_ has joined #ruby
cHarNe2 has joined #ruby
<Oog> what is the trap handler raises an excpetion?
<Oog> can't it be caught?
iml_ has joined #ruby
<bnagy> by what?
mansi has joined #ruby
<bnagy> it would be the same as raising a toplevel exceptiion in the main thread afaik
lepht_ has joined #ruby
freerobby has joined #ruby
UForgotten_ has joined #ruby
<bnagy> I mean you can handle exceptions inside your trap handling block
timonv has joined #ruby
joelroa has joined #ruby
dandrade_ has joined #ruby
mercwithamouth has joined #ruby
rahult_ has joined #ruby
<Oog> i run that, send TERM, EXEXEEXEXEEEEEXXEEXEXXE gets printed and it seems to exit gracefully
sputnik13 has joined #ruby
jmaister_ has joined #ruby
yeticry_ has joined #ruby
bricker_ has joined #ruby
lutfidemirci has joined #ruby
moshee has joined #ruby
Davedo1 has joined #ruby
apeiros_ has joined #ruby
robmozart has quit [Ping timeout: 265 seconds]
Avahey has quit [Ping timeout: 265 seconds]
DarkFoxDK has quit [Ping timeout: 265 seconds]
dmarr has quit [Ping timeout: 265 seconds]
Asher has quit [Ping timeout: 265 seconds]
lepht has quit [Ping timeout: 265 seconds]
mven has quit [Ping timeout: 265 seconds]
maZtah has quit [Ping timeout: 265 seconds]
jefflyne has quit [Ping timeout: 265 seconds]
Es0teric has quit [Ping timeout: 265 seconds]
lfox has quit [Ping timeout: 265 seconds]
ggherdov has quit [Ping timeout: 265 seconds]
juni0r has quit [Ping timeout: 265 seconds]
Kamilion has quit [Ping timeout: 265 seconds]
chinkung has quit [Ping timeout: 265 seconds]
aryaching has quit [Ping timeout: 265 seconds]
inversesquarelaw has quit [Ping timeout: 265 seconds]
seich- has quit [Ping timeout: 265 seconds]
artgoeshere has quit [Ping timeout: 265 seconds]
Guest65897 has quit [Ping timeout: 265 seconds]
nhmood has quit [Ping timeout: 265 seconds]
vpretzel has quit [Ping timeout: 265 seconds]
mjmac has quit [Ping timeout: 265 seconds]
ConstantineXVI has quit [Ping timeout: 265 seconds]
ageis has quit [Ping timeout: 265 seconds]
kenichi has quit [Ping timeout: 265 seconds]
willb2 has quit [Ping timeout: 265 seconds]
JViz_ has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 265 seconds]
p8952 has quit [Ping timeout: 265 seconds]
zenojis has quit [Ping timeout: 265 seconds]
rezzack has quit [Ping timeout: 265 seconds]
MissionCritical has quit [Ping timeout: 265 seconds]
Nightmare has quit [Ping timeout: 265 seconds]
psyprus has quit [Ping timeout: 265 seconds]
epochwolf has quit [Ping timeout: 265 seconds]
kartouch has quit [Ping timeout: 265 seconds]
predator117 has quit [Ping timeout: 265 seconds]
dapz has quit [Ping timeout: 265 seconds]
cHarNe2_ has quit [Ping timeout: 265 seconds]
kukyakya has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 265 seconds]
mordocai has quit [Ping timeout: 265 seconds]
Voodoofish430 has quit [Ping timeout: 265 seconds]
joonty has quit [Ping timeout: 265 seconds]
davedev24 has quit [Ping timeout: 265 seconds]
hoelzro has quit [Ping timeout: 265 seconds]
iml has quit [Ping timeout: 265 seconds]
UForgotten has quit [Ping timeout: 265 seconds]
rylinaux has quit [Ping timeout: 265 seconds]
pietr0 has quit [Ping timeout: 265 seconds]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
csq has quit [Ping timeout: 265 seconds]
scttnlsn has quit [Ping timeout: 265 seconds]
jzig has quit [Ping timeout: 265 seconds]
zz_jrhorn424 has quit [Ping timeout: 265 seconds]
mosheee has quit [Ping timeout: 265 seconds]
undert_ has quit [Ping timeout: 265 seconds]
Liothen has quit [Ping timeout: 265 seconds]
rahult has quit [Ping timeout: 265 seconds]
reset has quit [Ping timeout: 265 seconds]
poguez has quit [Ping timeout: 265 seconds]
sfiggins has quit [Ping timeout: 265 seconds]
codabrink has quit [Ping timeout: 265 seconds]
Klumben has quit [Ping timeout: 265 seconds]
digifiv5e has quit [Ping timeout: 265 seconds]
Angelous has quit [Ping timeout: 265 seconds]
flagg0204 has quit [Ping timeout: 265 seconds]
Bish_ has quit [Ping timeout: 265 seconds]
fluxxed has quit [Ping timeout: 265 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
Kruppe has quit [Ping timeout: 265 seconds]
Paradox has quit [Ping timeout: 265 seconds]
postmodern has quit [Ping timeout: 265 seconds]
bodie_ has quit [Ping timeout: 265 seconds]
aetaric has quit [Ping timeout: 265 seconds]
rurban_ has quit [Ping timeout: 265 seconds]
jabular has quit [Ping timeout: 265 seconds]
apeiros has quit [Ping timeout: 265 seconds]
awkisopen has quit [Ping timeout: 265 seconds]
dandrade has quit [Ping timeout: 265 seconds]
queequeg1 has quit [Ping timeout: 265 seconds]
dyreshark has quit [Ping timeout: 265 seconds]
xiphiasx_ has quit [Remote host closed the connection]
cherry_lin has quit [Ping timeout: 265 seconds]
bricker has quit [Remote host closed the connection]
jmaister has quit [Ping timeout: 265 seconds]
Davedo has quit [Ping timeout: 265 seconds]
PhilK has quit [Ping timeout: 265 seconds]
deadlock has quit [Ping timeout: 265 seconds]
tobiasvl has quit [Ping timeout: 265 seconds]
ninegrid_ has quit [Ping timeout: 265 seconds]
ninegrid has joined #ruby
Voodoofish430 has joined #ruby
DarkFoxDK has joined #ruby
Avahey_ is now known as Avahey
lfox has joined #ruby
Davedo1 is now known as Davedo
UForgotten_ is now known as UForgotten
Nightmare has joined #ruby
yeticry has quit [Remote host closed the connection]
vjt has quit [Ping timeout: 265 seconds]
mjmac has joined #ruby
zz_jrhorn424 has joined #ruby
tvl has joined #ruby
aetaric has joined #ruby
csq has joined #ruby
tvl is now known as tobiasvl
rylinaux has joined #ruby
nisstyre has joined #ruby
deadlock has joined #ruby
zcreative has joined #ruby
joonty has joined #ruby
undert has joined #ruby
codabrink has joined #ruby
deadlock has quit [*.net *.split]
rylinaux has quit [*.net *.split]
aetaric has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
csq has quit [*.net *.split]
lfox has quit [*.net *.split]
mjmac has quit [*.net *.split]
Nightmare has quit [*.net *.split]
Voodoofish430 has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
ninegrid has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
duggiefresh has quit [*.net *.split]
sski has quit [*.net *.split]
Spami has quit [*.net *.split]
drago777 has quit [*.net *.split]
inversesquarelaw has joined #ruby
Guest77102 has joined #ruby
kartouch has joined #ruby
Lewix_ has joined #ruby
cherry_lin has joined #ruby
rylinaux has joined #ruby
flagg0204 has joined #ruby
<bnagy> Oog: yeah - same as raising a toplevel exception in your main thread :)
robmozart has joined #ruby
nouitfvf has joined #ruby
<Oog> ah
Urocyon has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest39656
joelroa has quit [Read error: Operation timed out]
mansi has quit [Ping timeout: 244 seconds]
LiohAu_ has joined #ruby
Bish has joined #ruby
p8952 has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
willb2 has joined #ruby
banek has joined #ruby
sdouglas has quit [Remote host closed the connection]
zorak has joined #ruby
zorak_ has joined #ruby
Jdubs has joined #ruby
gyre007_ has quit [Ping timeout: 245 seconds]
lilltiger_ has joined #ruby
tonyhb_ has joined #ruby
evenix_ has joined #ruby
yarou_ has joined #ruby
predator117 has joined #ruby
havenwood has joined #ruby
kevinykc_ has joined #ruby
Hanmac has joined #ruby
sski has joined #ruby
vaktpost has joined #ruby
Cope__ has joined #ruby
peterhu has joined #ruby
snkcld_ has joined #ruby
sivoais_ has joined #ruby
igghost has joined #ruby
Es0teric has joined #ruby
Jdubs has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
adamholt_ has joined #ruby
razrunel_ has joined #ruby
xerox357 has joined #ruby
tonni_ has joined #ruby
zorak has left #ruby ["Saliendo"]
Kov|kasumi has joined #ruby
sski has quit [Ping timeout: 244 seconds]
thejoecarroll_ has joined #ruby
vvvk has joined #ruby
mikepack_ has quit [*.net *.split]
rezzack1 has quit [*.net *.split]
pietr0_ has quit [*.net *.split]
kotakotakota has quit [*.net *.split]
Kovensky has quit [*.net *.split]
hiyosi has quit [*.net *.split]
Zunonia has quit [*.net *.split]
snkcld has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
peterhu_ has quit [*.net *.split]
julian` has quit [*.net *.split]
codeFiend has quit [*.net *.split]
evenix has quit [*.net *.split]
SCommette has quit [*.net *.split]
tonyhb has quit [*.net *.split]
cashnguns has quit [*.net *.split]
Lewix has quit [*.net *.split]
gr33n7007h has quit [*.net *.split]
lkba has quit [*.net *.split]
lilltiger has quit [*.net *.split]
existensil has quit [*.net *.split]
boomstack has quit [*.net *.split]
centrx has quit [*.net *.split]
yarou has quit [*.net *.split]
bradhe has quit [*.net *.split]
cescalante has quit [*.net *.split]
markisonfire has quit [*.net *.split]
clamstar has quit [*.net *.split]
alvaro_o has quit [*.net *.split]
Vovko has quit [*.net *.split]
nouitfvf_ has quit [*.net *.split]
jwest has quit [*.net *.split]
kevinykchan has quit [*.net *.split]
ValicekB has quit [*.net *.split]
dawkirst has quit [*.net *.split]
marcgg has quit [*.net *.split]
LiohAu has quit [*.net *.split]
joast has quit [*.net *.split]
tonni has quit [*.net *.split]
Sthebig has quit [*.net *.split]
adamholt has quit [*.net *.split]
Tranquility has quit [*.net *.split]
d-snp_ has quit [*.net *.split]
sivoais has quit [*.net *.split]
vaktpost_ has quit [*.net *.split]
Cope has quit [*.net *.split]
camth has quit [*.net *.split]
wchun has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
mclee_ has quit [*.net *.split]
kitak has quit [*.net *.split]
yeticry_ has quit [*.net *.split]
mercwithamouth has quit [*.net *.split]
dandrade_ has quit [*.net *.split]
freerobby has quit [*.net *.split]
lepht_ has quit [*.net *.split]
iml_ has quit [*.net *.split]
nhmood_ has quit [*.net *.split]
zenojis_ has quit [*.net *.split]
michaelchum has quit [*.net *.split]
amclain has quit [*.net *.split]
njection has quit [*.net *.split]
mgorbach has quit [*.net *.split]
kloeri has quit [*.net *.split]
wykydtron has quit [*.net *.split]
Senjai has quit [*.net *.split]
Elfix has quit [*.net *.split]
thumpba_ has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
Mongey has quit [*.net *.split]
Xuisce has quit [*.net *.split]
tylershipe has quit [*.net *.split]
ritek has quit [*.net *.split]
mikemac has quit [*.net *.split]
wiku5_ has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
aeio has quit [*.net *.split]
DreamingRainne has quit [*.net *.split]
Celm has quit [*.net *.split]
thomas3141592653 has quit [*.net *.split]
Thanatermesis has quit [*.net *.split]
mostlybadfly has quit [*.net *.split]
brandon__ has quit [*.net *.split]
ephemerian has quit [*.net *.split]
fella5s has quit [*.net *.split]
cdime has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
jds has quit [*.net *.split]
mmochan has quit [*.net *.split]
Guest85414______ has quit [*.net *.split]
alol has quit [*.net *.split]
Adran has quit [*.net *.split]
nuck has quit [*.net *.split]
jrunning____ has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
mtlatif__ has quit [*.net *.split]
mroth has quit [*.net *.split]
supershabam has quit [*.net *.split]
schaary has quit [*.net *.split]
ji0n has quit [*.net *.split]
_HolyCow has quit [*.net *.split]
kewubenduben has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
TripleDES has quit [*.net *.split]
txdv has quit [*.net *.split]
nfk has quit [*.net *.split]
23LAAI9A0 has quit [*.net *.split]
awarner has quit [*.net *.split]
Xiti has quit [*.net *.split]
BraddBitt has quit [*.net *.split]
greenrose has quit [*.net *.split]
Soulcutter has quit [*.net *.split]
jinie_ has quit [*.net *.split]
tommyblu` has quit [*.net *.split]
zellio has quit [*.net *.split]
Hobogrammer has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
vaicine has quit [*.net *.split]
klaut has quit [*.net *.split]
mgomezch has quit [*.net *.split]
Authenticator has quit [*.net *.split]
DylanJ has quit [*.net *.split]
lele has quit [*.net *.split]
w|t has quit [*.net *.split]
linduxed has quit [*.net *.split]
soahccc has quit [*.net *.split]
virtualize has quit [*.net *.split]
ddd has quit [*.net *.split]
idoru has quit [*.net *.split]
Luyt__ has quit [*.net *.split]
aboudreault has quit [*.net *.split]
LiohAu_ is now known as LiohAu
aryaching_ has quit [Ping timeout: 266 seconds]
Kov|kasumi is now known as Kovensky
xerox357 has quit [Remote host closed the connection]
Fyyr13_ has joined #ruby
ValicekB_ has joined #ruby
ValicekB_ is now known as ValicekB
mattyohe_ is now known as mattyohe
mattyohe is now known as Guest36606
ce_afk has joined #ruby
renderful has joined #ruby
evenix_ has quit [Remote host closed the connection]
Guest36606 is now known as mattyohe
felixflores has joined #ruby
mclee_ has joined #ruby
boomstack has joined #ruby
cashnguns has joined #ruby
aspires has quit []
clamstar has joined #ruby
gr33n7007h has joined #ruby
<droptone> Question: I am working with an API, and I use the API to retrieve individual contacts based on ID. When using it with an individual contact, it works perfectly. It stores the contact in an array.
<droptone> I'm doing this with rails 3.2.x, Ruby 2.0.0. Anyway, so, I call the API, and it returns @contact. I can refernce @contact['FirstName'], @contact['LastName'], and @contact['Email'].
Port3M5[Work] has joined #ruby
<droptone> I've created a loop and I want to iterate through contact IDs 0 through 99 and store all contacts in an array.
SCommette has joined #ruby
<droptone> What would the syntax be for storing the individual contacts in @allcontacts? So say, @allcontacts[0]['FirstName'] would get @contact['FirstName'], etc.
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
<droptone> And is that the best way to do this?
griffind_ has quit [Quit: Computer has gone to sleep.]
MissionCritical has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
centrx has joined #ruby
felixflores has quit [Ping timeout: 252 seconds]
uzo_ is now known as segmond
centrx is now known as Guest86009
Guest86009 is now known as centrx
<bnagy> don't use an ivar
<bnagy> contacts = (0..99).map {|i| get_contact i}
axsuul has joined #ruby
master_bait has joined #ruby
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
<master_bait> (master_bait) Can you connect a raspberry pi to a computer via usb and use the monitor as a display whilst running Windows?
Asher1 has quit [Quit: Leaving.]
TigerWolf has joined #ruby
<gr33n7007h> yeah that'll work, not
CaptainJet has quit [Read error: No route to host]
sailias has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
<master_bait> Is there a way to emulate the screen of the raspberry pi?
<gr33n7007h> hey bnagy, bluetoot sockets are not implemented in ruby!
CaptainJet has joined #ruby
Hamburglr has quit [Quit: Textual IRC Client: www.textualapp.com]
<gr33n7007h> *bluetooth
SirFunk_ is now known as SirFunk
<gr33n7007h> you lied to me
northfurr has joined #ruby
northfurr has joined #ruby
<Oog> how do i "raise" a term
<Oog> like pass it on to the nex handler?
casheew_ has quit [Read error: Connection reset by peer]
<gr33n7007h> bnagy, you there
evenix has joined #ruby
armyriad has joined #ruby
BackEndCoder has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
<master_bait> Can someone please help me with raspberry pi?
Fyyr13_ has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
Rylee_ has joined #ruby
<gr33n7007h> master_bait, pull bk and forth i think
nathanso_ has joined #ruby
D4v33_ has joined #ruby
absolutezeroff has quit [Remote host closed the connection]
<master_bait> !ops gr33n7007h
Rylee has quit [Killed (orwell.freenode.net (Nickname regained by services))]
Rylee_ is now known as Rylee
micah`_ has joined #ruby
vlad_starkov has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
felixjet_ has joined #ruby
bry4n_ has joined #ruby
phrozen7- has joined #ruby
<bnagy> gr33n7007h: whatever
guilleiguaran_ has joined #ruby
<bnagy> I'm sure you're right. Python can make socket syscalls that Ruby can't make
cbetta_ has joined #ruby
rahult has joined #ruby
robmozart_ has joined #ruby
<bnagy> Oog: just raise in a rescue section
xerox357 has joined #ruby
psmolen_ has joined #ruby
gigetoo_ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
xerox357 has quit [Remote host closed the connection]
Takumo has quit [Ping timeout: 244 seconds]
nathansoz has quit [Ping timeout: 244 seconds]
D4v33 has quit [Ping timeout: 244 seconds]
heftig has quit [Ping timeout: 244 seconds]
RyanD_ has quit [Ping timeout: 244 seconds]
micah` has quit [Ping timeout: 244 seconds]
felixjet has quit [Ping timeout: 244 seconds]
zxq9 has quit [Remote host closed the connection]
trhodes_ has quit [Ping timeout: 244 seconds]
guilleiguaran has quit [Ping timeout: 244 seconds]
LBRapid has quit [Ping timeout: 244 seconds]
RoryHughes has quit [Ping timeout: 244 seconds]
nouitfvf has quit [Ping timeout: 244 seconds]
phrozen77 has quit [Ping timeout: 244 seconds]
weie has quit [Ping timeout: 244 seconds]
wlanboy has quit [Ping timeout: 244 seconds]
polydius has quit [Ping timeout: 244 seconds]
glebm_ has quit [Ping timeout: 244 seconds]
psmolen has quit [Ping timeout: 244 seconds]
benatkin has quit [Ping timeout: 244 seconds]
vt102 has quit [Ping timeout: 244 seconds]
maZtah has joined #ruby
RoryHughes has joined #ruby
shtirlic has quit [Ping timeout: 244 seconds]
__main__ has quit [Ping timeout: 244 seconds]
weie has joined #ruby
rahult_ has quit [Ping timeout: 244 seconds]
weeb1e has quit [Ping timeout: 244 seconds]
sawtooth has quit [Ping timeout: 244 seconds]
robmozart has quit [Ping timeout: 244 seconds]
nisstyre has quit [Ping timeout: 244 seconds]
pwh has quit [Ping timeout: 244 seconds]
ixx has quit [Ping timeout: 244 seconds]
cbetta has quit [Ping timeout: 244 seconds]
joelteon has quit [Ping timeout: 244 seconds]
northfurr has quit [Ping timeout: 244 seconds]
cashnguns has quit [Ping timeout: 244 seconds]
gigetoo has quit [Ping timeout: 244 seconds]
mr_red has quit [Ping timeout: 244 seconds]
zaargy has quit [Ping timeout: 244 seconds]
maZtah has quit [Max SendQ exceeded]
renderful has quit [Remote host closed the connection]
Davedo has quit [Ping timeout: 244 seconds]
maroloccio has quit [Ping timeout: 244 seconds]
keen__ has quit [Ping timeout: 244 seconds]
Aquilo has quit [Ping timeout: 244 seconds]
frode15243 has quit [Ping timeout: 244 seconds]
Hamled has quit [Ping timeout: 244 seconds]
bmn has quit [Ping timeout: 244 seconds]
Maitiu has quit [Ping timeout: 244 seconds]
inversesquarelaw has quit [Ping timeout: 244 seconds]
Kilo`byte has quit [Ping timeout: 244 seconds]
Tingo1983 has quit [Ping timeout: 244 seconds]
three18ti has quit [Ping timeout: 244 seconds]
Gate_ has quit [Ping timeout: 244 seconds]
cbetta_ is now known as cbetta
_main_ has joined #ruby
LBRapid has joined #ruby
guilleiguaran_ is now known as guilleiguaran
larsam has quit [Read error: Connection reset by peer]
<Oog> im in a framework that calls my function
chipotle has joined #ruby
<Oog> the framework has already trapped TERM
Hamled has joined #ruby
aspiers has quit [Ping timeout: 244 seconds]
<Oog> in my function i trap it
Norrin has quit [Ping timeout: 244 seconds]
gwb3 has quit [Ping timeout: 244 seconds]
hackeron has quit [Ping timeout: 244 seconds]
gigetoo_ is now known as gigetoo
ouie has joined #ruby
<Oog> it seems my trap is the only one called
robmozart_ is now known as robmozart
<Oog> how can i cal the "parent" of sorts
pwh has joined #ruby
glebm has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
JarJarBinks has quit [Ping timeout: 244 seconds]
<bnagy> uh.. what do you think the parent should be?
supermar_ has joined #ruby
gwb3 has joined #ruby
trhodes_ has joined #ruby
<bnagy> like I said, I think in your trap you're probably running more or less naked in the main thread
adamholt_ has quit [Ping timeout: 244 seconds]
sivoais_ is now known as sivoais
bry4n_ has quit [Ping timeout: 264 seconds]
<bnagy> but if your framework has wrapped you somehow then if you raise it should go to that
sivoais has quit [Changing host]
sivoais has joined #ruby
<gr33n7007h> bnagy, wasn't having a go, just saying :)
adamholt has joined #ruby
<Oog> how do i raise TERM
inversesquarelaw has joined #ruby
weie has quit [Ping timeout: 244 seconds]
<bnagy> gr33n7007h: I'm just saying that you apparently misunderstood, then, and still now
Emmanuel_Chanel has joined #ruby
caveat- has quit [Ping timeout: 244 seconds]
supermarin has quit [Ping timeout: 244 seconds]
JarJarBinks has joined #ruby
<bnagy> if the OS provides a socket device for whatever then ruby can open it
bmn has joined #ruby
_main_ is now known as __main__
Kamilion has joined #ruby
<gr33n7007h> bnagy, i didn't misunderstand anyting, end of
<bnagy> Oog: that's not an exception
Kilo`byte has joined #ruby
<bnagy> gr33n7007h: then explain how I 'lied to you'
Hanmac has joined #ruby
caveat- has joined #ruby
<bnagy> and, incidentally, how calling someone a liar is 'not having a go'
<bnagy> but that's not really a concern
<master_bait> If you lie you deserve to have your balls cut off
rahult is now known as rahult_
<gr33n7007h> bnagy, there is no iota of bluetooth sockets in ruby find the magic number and all that?
<bnagy> Oog: there's probably a wrapper for sending signals somewhere.. but if you resend a term to yourself you'll just end up back in your same handler
<gr33n7007h> if it's not there you can't find it
meatherly has joined #ruby
<bnagy> gr33n7007h: socket constants are just ints. You use the right constant in the syscall ( a syscall is an OS thing not a Ruby thing ) you get the corresponding type of socket
Fyyr13_ has joined #ruby
<bnagy> so, as I keep saying, if the OS supports it, ruby does
mr_rich101 has joined #ruby
<gr33n7007h> bnagy, for f*** sake bnagy wise up man, you cannnnotttt create raw bluetoth sockets
SCommette has quit [Quit: SCommette]
<bnagy> but you can in python?
Zhann has joined #ruby
Faris has joined #ruby
<gr33n7007h> bnagy, if so how?
<bnagy> you're the one who said you could
<gr33n7007h> in python yeah
<bnagy> last time we had this conversation
michael_lee has joined #ruby
<bnagy> well if you can do it in python you can do it in ruby
<bnagy> sockets are sockets
<gr33n7007h> how?
<gr33n7007h> bnagy, if your so sure how?
kevinfagan_ has joined #ruby
Tingo1983 has joined #ruby
<bnagy> make the same syscall with the same args
<gr33n7007h> you tell me how i'll platt saw dust if you come up with the answer
boomstack has quit [Remote host closed the connection]
<gr33n7007h> its not in the source code its not there
binw_ has joined #ruby
<bnagy> it doesn't need to be
<RubyPanther> Kernel.syscall
<RubyPanther> but see also: rubytooth
bier has joined #ruby
mercwithamouth has joined #ruby
<bnagy> I think you just need to understand what sockets and syscalls are a bit better
peterhu_ has joined #ruby
<bnagy> sadly I don't have easy access to an OS that provides a socket api, OSX doesn't
<gr33n7007h> im on about raw bluetooth sockets
<bnagy> (for bt)
<RubyPanther> Ruby;s Socket is a thin wrapper around the C stdlib
renderful has joined #ruby
<gr33n7007h> like in pyton
mark_olson has joined #ruby
sski has joined #ruby
wallerdev has joined #ruby
<gr33n7007h> whats with this h
bricker has joined #ruby
<bnagy> see if you keep typey typey without ever thinky thinky you're never going to understand
Jamo_ has joined #ruby
vongrippen_ has joined #ruby
bcavileer_ has joined #ruby
<RubyPanther> gr33n7007h: your letter ates you
<gr33n7007h> RubyPanther, bnagy point me in the right direction then?
ccooke_ has joined #ruby
<RubyPanther> I just ordered a bluetooth ODBII adapter for my car, I'll test Ruby's bt support myself next week
<bnagy> sure. Find the socket constants python is using for the open. Use those.
<RubyPanther> gr33n7007h: Just use the rubytooth lib
<bnagy> you could strace a POC python script maybe, if they're non-googleable
<bnagy> or ^^ that
<gr33n7007h> bnagy, THIS IS THE THING IT'S 3, 31 BUT IT'S NOT IMPLEMENTED IN RUBY
caveat- has quit [Disconnected by services]
<bnagy> what needs to be 'implemented' ? Ruby will pass whatever args you give it to the syscall
caveat- has joined #ruby
<gr33n7007h> bnagy, show me then?
h4mz1d has joined #ruby
<bnagy> also, shouting has no positive effect on rectitude
master_bait has quit [Remote host closed the connection]
Raboo_ has joined #ruby
Hanmac has quit [*.net *.split]
Kamilion has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
inversesquarelaw has quit [*.net *.split]
trhodes_ has quit [*.net *.split]
gwb3 has quit [*.net *.split]
supermar_ has quit [*.net *.split]
pwh has quit [*.net *.split]
ouie has quit [*.net *.split]
LBRapid has quit [*.net *.split]
RoryHughes has quit [*.net *.split]
sailias has quit [*.net *.split]
razrunel_ has quit [*.net *.split]
peterhu has quit [*.net *.split]
willb2 has quit [*.net *.split]
Urocyon has quit [*.net *.split]
zcreative has quit [*.net *.split]
kartouch has quit [*.net *.split]
lutfidemirci has quit [*.net *.split]
bricker_ has quit [*.net *.split]
MJBrune has quit [*.net *.split]
go|dfish has quit [*.net *.split]
Morrolan_ has quit [*.net *.split]
niv has quit [*.net *.split]
markolson has quit [*.net *.split]
mr_rich102 has quit [*.net *.split]
peck__ has quit [*.net *.split]
snuffeluffegus has quit [*.net *.split]
Oog has quit [*.net *.split]
hermanmunster has quit [*.net *.split]
agarie has quit [*.net *.split]
jayne has quit [*.net *.split]
francisfish has quit [*.net *.split]
candelabra has quit [*.net *.split]
Raboo has quit [*.net *.split]
Jamo has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
tjr9898__ has quit [*.net *.split]
xyon has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
TheLarkInn has quit [*.net *.split]
lectrick__ has quit [*.net *.split]
G has quit [*.net *.split]
adambeynon has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
hanikazmi has quit [*.net *.split]
v0n has quit [*.net *.split]
Hien has quit [*.net *.split]
bcavileer has quit [*.net *.split]
Gooder` has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
binw has quit [*.net *.split]
gtc has quit [*.net *.split]
artmann_ has quit [*.net *.split]
sarlalian has quit [*.net *.split]
Schmidt has quit [*.net *.split]
jle` has quit [*.net *.split]
bbloom has quit [*.net *.split]
dpaulus has quit [*.net *.split]
stephenmac7 has quit [*.net *.split]
n88 has quit [*.net *.split]
jpierre03 has quit [*.net *.split]
Dwarf has quit [*.net *.split]
flori has quit [*.net *.split]
renklaf_ has quit [*.net *.split]
lotherk has quit [*.net *.split]
msch has quit [*.net *.split]
ccooke has quit [*.net *.split]
Zhann_ has quit [*.net *.split]
bier_ has quit [*.net *.split]
vongrippen has quit [*.net *.split]
Karu has quit [*.net *.split]
the_mentat has quit [*.net *.split]
zeroXten has quit [*.net *.split]
yalue has quit [*.net *.split]
crome has quit [*.net *.split]
rhys has quit [*.net *.split]
<gr33n7007h> bnagy, my bad
Raboo_ is now known as Raboo
mark_olson is now known as markolson
bcavileer_ is now known as bcavileer
n88_ has joined #ruby
master_bait has joined #ruby
inversesquarelaw has joined #ruby
<gr33n7007h> how can i create a rfcomm connection to bluetooth from ruby
Morrolan has joined #ruby
achru has quit [Remote host closed the connection]
G has joined #ruby
<gr33n7007h> i just can't be done
<gr33n7007h> using sockets
<bnagy> I mean.. fd = rsock_socket(d, t, NUM2INT(protocol)); looks to me like it's a straight passthrough but hey lemme look at the rest of the C
dpaulus has joined #ruby
<gr33n7007h> bnagy, it won't work, if you can get a raw socket to bluetooth i'll pull a mooney in front of nasa
<zorak_> in ruby, i have this string a = "0123456789"
<gr33n7007h> i,ve tried tried tried and tried
<zorak_> and using a[] i wat 987 of resault
<zorak_> a[0] == 0 and then
<zorak_> a[-1] == 9
<gr33n7007h> zorak_, a[-3..-1]
<gr33n7007h> zorak_, a[-3..-1].reverse
pwh has joined #ruby
<gr33n7007h> or something like that i can't think
<zorak_> cool, i was trying but cant with [-1..-3]
crome has joined #ruby
<RubyPanther> on my system I have #define AF_BLUETOOTH 31
<zorak_> there are something i can read about this subject?
<zorak_> i find it very hard to understand
Subsentient has joined #ruby
Subsentient has joined #ruby
Subsentient has quit [Changing host]
<RubyPanther> and Socket::SOCK_RAW will get permission denied for regular user
CaptainJet has quit []
<bnagy> RubyPanther: you have a linux that has one of these bt sockets?
Beoran_ has quit [Ping timeout: 240 seconds]
meatherl_ has joined #ruby
Megtastique has quit []
<gr33n7007h> RubyPanther, How would i connect to a phones bluetooth with mac address and port number?
<bnagy> I'm trawling the src and I can't see any validation that would deny 'unknown' family or domain constants
meatherly has quit [Read error: Connection reset by peer]
<droptone> bragy: that doesn't appear to be working
LBRapid has joined #ruby
<RubyPanther> $ sudo /home/paris/.rbenv/versions/2.1.0/bin/ruby -rsocket -e 'puts Socket.new(31,3)'
<RubyPanther> #<Socket:0x007f69d0c99b68>
nisstyre has joined #ruby
<RubyPanther> bnagy: yeah that is linux
<droptone> when I do what you suggested, it's just writing the individual index numbers to @allcontacts
<RubyPanther> 31 is from /usr/src/kernels/3.4.9-1.fc16.x86_64/include/net/bluetooth/bluetooth.h #define AF_BLUETOOTH 31
maroloccio has joined #ruby
<bnagy> RubyPanther: right.. so it works
<RubyPanther> note that as a regular user I get Operation not permitted - socket(2) (Errno::EPERM)
<bnagy> well you would, I guess
<RubyPanther> which is the C lib not Ruby
<Waheedi> btw sometimes there are things that you can't even find their questions!
<gr33n7007h> RubyPanther, but how to connect o the phone with bt addr and port n#?
<bnagy> being able to send arbitrary BT as a user would be.. bad :)
<RubyPanther> gr33n7007h: With a few months of engineering, or using a lib like rubytooth
banek has quit [Remote host closed the connection]
<Subsentient> How, how, HOW do I disable assembler during compile?
<Subsentient> ALL assembler?
<Subsentient> ALL of it?
<Waheedi> lol
<bnagy> Subsentient: uh.. wat?
<Waheedi> assembler down
<RubyPanther> Subsentient: normally you disassemble after you assemble, not during
<bnagy> droptone: show code. I think you're probably still messed up by using @vars
<gr33n7007h> See, in python socket.connect(('00:11:22:23:44:44', 5)) simple how in ruby?
<Subsentient> bnagy: I am building for an i586 target, and ruby is including the i686 instruction CMOV in the produced libraries.
<Subsentient> My compiler is pure i586
shevy has quit [Ping timeout: 240 seconds]
<Subsentient> even with -march=i686, it will NOT produce CMOV. This must be assembler.
Waheedi has left #ruby [#ruby]
<bnagy> ruby has no compiler of its own
<Subsentient> bnagy: gcc is a C compiler.
<gr33n7007h> RubyPanther, there's all the const ints create raw socket but how to connect?
<bnagy> it's vaguely possible that some of the .c uses inline asm though?
<bnagy> Subsentient: you could try to grep for it?
<Subsentient> You people don't know much about the lower level do you?
<Subsentient> bnagy: I did.
<Subsentient> It must be SSE instructions in there somehow
<gr33n7007h> I don't think it can be done
ffranz has quit [Quit: Leaving]
<bnagy> Subsentient: ok, well I guess you caught me on a day where I am sick of people turning up and being insulting
<bnagy> yes, I know nothing about the lower level
<Subsentient> bnagy: Sorry, not trying to be insulting :^(
<Subsentient> I'm just... irritated.
<bnagy> and I LOVE being called 'you people' it's my favourite
<Subsentient> I am behind schedule and I am very angry about this assembler business, I don't mean to be rude or condescending. I'm trying not to take out the frustration on anyone.
<bnagy> your words of wisdom about GCC being a C compiler have enlightened me. I must meditate on this.
<gr33n7007h> RubyPanther, Socket.new(31,3) creates the socket, now the ultimate goal is how to connect?
pothibo has quit [Quit: Computer has gone to sleep.]
<RubyPanther> gr33n7007h: #connect
<gr33n7007h> Subsentient, he's probably pist with me
sirecote has quit [Ping timeout: 246 seconds]
<gr33n7007h> RubyPanther, example?
<gr33n7007h> tcp udp unix easy how bluetooth?
<Subsentient> Well, I think I fixed it by mutilating the configure script
<RubyPanther> Subsentient: Don't use i586 target, use 386 or 486 if you can't support 686
<Subsentient> RubyPanther: Not everything will build at all for those targes
<Subsentient> So I am forced for i586
<Subsentient> Trust me
<RubyPanther> No, everything with 586 should support 386
<Subsentient> even glibc considers them a secondary target nowadays
<RubyPanther> Subsentient: what is the exact CPU you're using that is 586 that can't do 486
<gr33n7007h> If someone can give me a definite answer i promise to eat all my veggies :)
Beoran_ has joined #ruby
<Subsentient> RubyPanther: No, the chips can do it, but see, in C, sometimes people do optimizing stuff like inline assembler, and i486 is even harder to maintain for that than i586
<bnagy> I'd be pretty surprised if they're doing that in core
Guest77102 is now known as ageis
<bnagy> but certainly not saying it's not possible
kayloos has joined #ruby
<RubyPanther> Like I used to have a cyrix that was a 586, but I had to compile everything as 386/486 because 586
<gr33n7007h> RubyPanther, bnagy 1 sec let me try
<Subsentient> bnagy: I found the issue
<RubyPanther> everything other than 586 is backwards compatible, but 586 is a failed alternate to 686 and you shouldn't be building for it unless you have a specific CPU that you're sure is correct for it
<RubyPanther> Subsentient: in your case you don't even know what CPU you have
<Subsentient> Ruby does NOT allow you to disable SSE with a switch, so I had to trick the configure script into thinking I cannot support SSE
<gr33n7007h> do i have to be root?
<Subsentient> RubyPanther: I have all sorts, old and new, so I want something universal.
* centrx used to use Mandrake Linux, optimized for the 586
<RubyPanther> gr33n7007h: to use Socket::SOCK_RAW yes
<bnagy> Subsentient: which .c files use inline SSE? In math.c or something?
<Subsentient> bnagy: Probably, not sure which.
<gr33n7007h> RubyPanther, 1 sec if tis works
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther> He doesn't eve nkn ow what CPU he has, how is he going to find which C source he claims he read?
evenix has quit [Remote host closed the connection]
kayloos has quit [Ping timeout: 252 seconds]
ScalaIrcClient has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 240 seconds]
krz has quit [Quit: WeeChat 0.4.3]
vvvk has quit [Remote host closed the connection]
vvvk has joined #ruby
snuffeluffegus has joined #ruby
pu22l3r has joined #ruby
<gr33n7007h> SocketError: getaddrinfo: Name or service not known
krz has joined #ruby
vvvk has quit [Ping timeout: 240 seconds]
radic_ has quit [Ping timeout: 252 seconds]
<gr33n7007h> oh ffs this is pissing me right off
<gr33n7007h> math.c ?
<bnagy> gr33n7007h: you'll probably just have to manually pack your sockaddrinfo
sarmiena_ has joined #ruby
<gr33n7007h> bnagy, i just did
radic has joined #ruby
<bnagy> which doesn't look hard if that's the python line ( macaddr, some int )
<bnagy> why would you be using getaddrinfo?
browndawg has joined #ruby
<gr33n7007h> you tell me?
Fyyr13__ has joined #ruby
<bnagy> a sockaddrinfo is just a binary blob that makes sense ( hopefully ) to whichever socket
<bnagy> so by 'manually pack' I mean.. that. Manually pack it into a string with Array#pack or whatever
<bnagy> then connect
<bnagy> srsly though, you should read up on C sockets
<bnagy> that's going to make a lot of stuff a great deal clearer
zorak_ has quit [Read error: Connection reset by peer]
<gr33n7007h> bnagy, If it is possible to do, why not show me an example?
<bnagy> because I don't have an OS that provides a socket api for BT devices
<bnagy> OSX uses its own thing
armyriad has joined #ruby
<bnagy> and, partially, because I would rather play computer games than prove I know what I'm talking about
<gr33n7007h> bnagy, can you type the ruby code?
<bnagy> I don't know what to type, because I don't know what a BT sockaddrinfo looks like
<bnagy> and finding out would involve 2 minutes of google and reading a header file
<bnagy> which is more effort than I'm prepared to invest
Fyyr13_ has quit [Ping timeout: 264 seconds]
braincrash has quit [Quit: bye bye]
<gr33n7007h> I've come to the conclusion it can only be done over emulated serial port ?
<bnagy> but a protip you may consider for the future is that if you want people to do your work for you, maybe try being a bit less bratty
redlines has quit [Ping timeout: 240 seconds]
<bnagy> srsly - just straightline port the python
<bnagy> this looks like trivial raw socket data munging
<centrx> Can someone recommend something better than using: if defined?(ActiveRecord::Base) for my non-Rails (but will use Rails if available) library?
redlines has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
<gr33n7007h> trivial, i wish you'd give over
aspires has joined #ruby
<bnagy> gr33n7007h: trivial just means simple, it doesn't mean zero effort
<gr33n7007h> bnagy, did i say that
mercwithamouth has quit [Ping timeout: 253 seconds]
wallerdev has quit [Quit: wallerdev]
<bnagy> nope, I'm just saying I'm not going to do it for you
baroquebobcat has joined #ruby
<gr33n7007h> btproto_rfcomm = 3 af_bluetooth = 31 right?
<bnagy> gr33n7007h: you're past that
<bnagy> next step is packing the sockaddrinfo
<gr33n7007h> bnagy, how god dammit
duggiefresh has joined #ruby
<bnagy> with Array#pack
<bnagy> you just need to find out how it's represented in the bt header
axsuul has quit [Read error: Connection reset by peer]
<gr33n7007h> ['F0:1C:13:E4:7F:96'].pack(......now what?
<bnagy> don't you need some channel number as well or something?
AndroUser2 has joined #ruby
<gr33n7007h> or i'm just frustrated ot taking it out on you
jamto11 has joined #ruby
<bnagy> and,just guessing, the macaddr is probably raw
<gr33n7007h> port is 6
<bnagy> "\xf0\x1c...
<bnagy> but hey, I don't know for sure cause I haven't read the headers! Or read the python. Or done any research.
<gr33n7007h> ['F0:1C:13:E4:7F:96', 6].pack(something like that
jamto11 has quit [Remote host closed the connection]
<bnagy> if it were a closed source proto I would try something like '\xf0\x1c\x13[etc]\x00\x06'
<bnagy> but I don't know how many channels BT supports
<gr33n7007h> 31 chans
<bnagy> oh then it will just be a byte
<bnagy> so no \x00
JViz_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<gr33n7007h> bnagy, thats null
<bnagy> but I maybe the chan is before the macaddr
master_bait has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
naimrajib has joined #ruby
<AndroUser2> Ruby is completely inferior to python
<gr33n7007h> bnagy, i totally give the f*** in
<naimrajib> :)
<bnagy> gr33n7007h: ok.
<bnagy> this is why quitters make crap hackers :)
<gr33n7007h> bnagy, you why cos it can't happen
<bnagy> you already got the socket. It can clearly be done. You're just lazy.
armyriad has quit [Ping timeout: 240 seconds]
<gr33n7007h> bnagy, you know it can't be done
<bnagy> anyway, hacking / reverse engineering / pretty much all original research is like this All The Time
<bnagy> hundreds of hours of rage followed by success
<gr33n7007h> bnagy, I like the way you think, but loses are loses
saarinen has quit [Quit: saarinen]
<bnagy> so my general advice is either suck it up and stop being a princess or find a different project
<gr33n7007h> so i'm right then?
* gr33n7007h says bnagy loses
<bnagy> you called me a liar for saying 'you just open the socket'.. then it was demonstrated that that's exactly what you do
<bnagy> now I am saying you need to craft a correct sockaddr into a string and call connect
<RubyPanther> __u8 b[6]; # is a packed btaddr
<bnagy> RubyPanther: that looks like just that macaddr raw. There's no channel? Or was that in the open?
<droptone> bnagy: here's the code in question: https://gist.github.com/anonymous/4df6e881265288b03510
<droptone> since you asked
nari has joined #ruby
<droptone> that "pp @iscontact" statement is just for testing
<bnagy> droptone: ok there's a bunch that looks weird
<bnagy> @isid should probably just be the i from the block
<droptone> normally @iscontact returns an array that can be referenced by @iscontact['FirstName'], etc
bthesorceror has joined #ruby
<bnagy> @iscontact is just a variable, it doesn't 'return' anything
duggiefresh has quit [Quit: duggiefresh]
<droptone> ok, wrong terminology, I meant to say, the server call returns an array
<droptone> that is @iscontact
<bnagy> uh does it return it or fill it in?
<droptone> which has the elements 'FirstName', 'LastName', and 'Email'
<droptone> fills it in, lol
<droptone> whatever, it comes from the server
<droptone> and goes into the array
<bnagy> ahh it returns it based on the params you ask for?
<droptone> the API call requires an array, which is the @iscontact variable
<gr33n7007h> how to pack mac address and port please
<bnagy> try like @isserver.call("ContactService.load", current_user.profile.apiis, i, @iscontact)
<droptone> wait, I fucked that up a bit
<droptone> hang on
<droptone> yes
<bnagy> and don't bother incrementing @isid ( or using it at all )
wallerdev has quit [Quit: wallerdev]
<bnagy> so don't assign that call to anything - that will be the return value of the block anyway
<bahar> anyone know of an example ruby web app using sinatra that i can read and follow along with. sort of like those exercises at jumpstartlabs ?
<RubyPanther> bnagy: I can't tell from bluetooth.h
bthesorceror has quit [Read error: Operation timed out]
<RubyPanther> but the address itself can be created like >> 'F0:1C:13:E4:7F:96'.split(':').map{|s|Integer('0x%s'%s)}.pack('C6')
<bnagy> bahar: the sinatra docs are awesome AFAIR?
<gr33n7007h> RubyPanther, is it possible or what?
sski has quit [Remote host closed the connection]
tonyhb_ has quit [Ping timeout: 240 seconds]
<RubyPanther> >> 'F0:1C:13:E4:7F:96'.split(':').map{|s|Integer('0x%s'%s)}.pack('C6')
<eval-in> RubyPanther => "\xF0\x1C\x13\xE4\x7F\x96" (https://eval.in/115015)
<droptone> bnagy: here's updated code:
<droptone> that's more accurate
sski has joined #ruby
<gr33n7007h> RubyPanther, what about port number
yasushi has joined #ruby
<bahar> bnagy: looking for an exercise that walks me through building something
<gr33n7007h> nm
<gr33n7007h> i see
<droptone> well, minus the type in 'LastName', but that doesn't change anything
<bahar> did a couple on jumpstartlabs, they were awesome, learned a lot
<bnagy> droptone: nah, you're still using @isid and you're still assigning the api call
<droptone> I'm using @isid because that's a counter variable, you're saying that's the same as using i?
<bnagy> droptone: the body of the map should be just one line, apart from the rescue stuff
<droptone> so what should the one line look like?
<bnagy> yes the 'counter' comes from the (0..99) - it will be i in the block
<bnagy> droptone: what I said ^^ I think
h4mz1d has quit [Ping timeout: 264 seconds]
<droptone> what did you say?
<bnagy> 12:15 < bnagy> try like @isserver.call("ContactService.load", current_user.profile.apiis, i, @iscontact)
<droptone> ahh
<droptone> trying that now, thank you
<gr33n7007h> RubyPanther, bnagy is this what i should be using Socket.pack_sockaddr_in
<droptone> we realize that where you put the "i" in that API call is supposed to just be an integer represting the ID of the contact
<bnagy> gr33n7007h: no, because that's for AF_INET
<droptone> and that still makes sense?
<bnagy> droptone: i comes from the block var - you're the one that called it i :)
<droptone> no, that was the code you gave me
<droptone> for the map call
<droptone> but that's fine
<bnagy> yes because I looked at your gist
<droptone> lol
<gr33n7007h> bnagy, so i'm in a sticky predicament
<droptone> I never used I, I used isid
<droptone> anyway
<gr33n7007h> please help me
sski has quit [Ping timeout: 264 seconds]
<bnagy> droptone: @iscontactsall = (0..99).map { |i| <-- your code
<droptone> lol, no, that was code from elsewhere
nowthatsamatt has quit [Quit: nowthatsamatt]
<droptone> pretty sure from you
bthesorceror has joined #ruby
<droptone> regardless
<bnagy> today is honestly making me stabby
<RubyPanther> gr33n7007h: use a gem. use a gem. use a gem. Also, I already wrote the address packing code for you
<droptone> 21:46 < bnagy> don't use an ivar
<droptone> 21:47 < bnagy> contacts = (0..99).map {|i| get_contact i}
<centrx> >> ->(stab) { stab.stab }
<eval-in> centrx => #<Proc:0x4117e47c@/tmp/execpad-9df73bfaf429/source-9df73bfaf429:2 (lambda)> (https://eval.in/115016)
<droptone> it's all good
<droptone> doesn't matter
<gr33n7007h> RubyPanther, much appreciated but what should i use to connect?
<bnagy> droptone: right! and it turns out the get_contact api looks like @isserver.call blah
<bnagy> anyway, try it. Might work.
<RubyPanther> >> (stabby = ->(who,times=1){"%s got stabbed with a lambda! " % (times > 1 ? stabby[who,times-1]+who : who)})["bnagy",3]
<eval-in> RubyPanther => "bnagy got stabbed with a lambda! bnagy got stabbed with a lambda! bnagy got stabbed with a lambda! " (https://eval.in/115018)
<bnagy> contacts = (0..99).map {|i| @isserver.call("ContactService.load", current_user.profile.apiis, i, @iscontact)}
<RubyPanther> gr33n7007h: a gem!
<bnagy> or whatever var you want to assign it to
<droptone> bnagy
<droptone> that fuckin works
<droptone> you god damn sexy motherfucker
<droptone> I don't understand it whatsoever but god bless you
<bnagy> everyone always seems so surprised
<gr33n7007h> RubyPanther, it has to sockets
<RubyPanther> black magic <3 <3 <3
<droptone> well because I've got individual contact retrieval via API working fine and the syntax is nothing like that
aspires has quit []
<droptone> but god bless you you genius
aspires has joined #ruby
<AndroUser2> Why use ruby when it's inferior to python in every conceivable way
<bnagy> well I'd prefer something more ecumenical but I'll take it
<RubyPanther> gr33n7007h: I'm sure the gems all use sockets
<gr33n7007h> AndroUser2, I'm starting to believe that
<gr33n7007h> RubyPanther, they all use serialport
<AndroUser2> It's not a matter of belief. It's a matter of fact. Just like the world revolves around the sun
<RubyPanther> AndroUser2: Your logic fails you. Take any way that you think is inferior. Now, assume you have different preferences. Ahhhh, now you can conceive of it being superior.
aspires has quit [Client Quit]
<AndroUser2> Python is light years faster and it has more support
anarang has joined #ruby
<RubyPanther> gr33n7007h: does this look like a serial port to you? https://github.com/brandonprry/rubytooth/blob/master/bluetooth_linux/bluetooth_linux.c
<gr33n7007h> RubyPanther, 1 sec let me check
<AndroUser2> Ruby is super slow. I don't get the point of this language
nathanso_ has quit [Remote host closed the connection]
sdouglas has joined #ruby
<RubyPanther> Anyways, if a serial port is too high level, why use a high level scripting language? Even if your app is in Ruby, maybe just whip out that part as a C extension
<AndroUser2> Now I'm starting to see the correlation with ruby and the idiocy of the Japanese people. They're morons
<RubyPanther> AndroUser2: Ruby is neither fast, nor slow. CPUs are fast or slow. Algorithms are fast or slow. Programmers are fast or slow.
<bnagy> :(
aspires has joined #ruby
<RubyPanther> Any ops? We've got a racist problem
<AndroUser2> The power plant leak should come to no surprise because the idiots had what was coming to them
marcdel has joined #ruby
<bnagy> racist trolls are way less amusing than language trolls
<AndroUser2> Ruby processes code much slower than python
yubrew has joined #ruby
marcdel has quit [Client Quit]
<gr33n7007h> AndroUser2, how much slower
<AndroUser2> Its like as if it's been written by incompetent morons who don't know a fucking thing about assembly
<AndroUser2> Like 10 times slower he33n7007h
<RubyPanther> Yeah, that's why mRuby has RiteVM, because Matz doesn't understand ASM. herp-a-derp
yasushi has quit [Remote host closed the connection]
<AndroUser2> Matz is a moron who can barely speak English. He needs to learn proper American to make his language be worth a damn
<bnagy> AndroUser2: so.. do you troll in like groups? Sorta clustered around one screen?
<gr33n7007h> AndroUser2, why so against ruby and the japanese people?
<bnagy> or do you just paste the logs into your troll channels so you can laugh?
<bnagy> I'm genuinely curious
Hanmac has joined #ruby
<bnagy> I mean it can't be rewarding to do as a solo exercise, the whole point is showing off
marcdel has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
<AndroUser2> Gr33n7007h the stupid sap japs have ruined the world's oceans due to their frank stupidity
<gr33n7007h> AndroUser2, well that put me in my place :/
agent_white has joined #ruby
<bnagy> as opposed to the Americans who detonated dozens of atomic bombs in the pacific on purpose?
<bnagy> happily, it's big.
<AndroUser2> Precisely
<AndroUser2> We needed to nuke Japan to create peace
<agent_white> Whoa some deeps going on in this thread.
<RubyPanther> agent_white: I'm trying to get help in #freenode but no luck yet
<bnagy> oh nonono, the Castle Bravo tests were orders of magnitude bigger than japan
aagdbl has joined #ruby
<bnagy> actually I think it was the second biggest H-bomb ever
<agent_white> RubyPanther: I would help but I'm watching the new Karate Kid.
<RubyPanther> if Mr. Miyagi was here, he would know what to doi
<bnagy> 60 years and uh.. 6 days ago today
<bnagy> merrica
<gr33n7007h> if you see matz tell him i need to speak to him about bluetooth and pack
<RubyPanther> gr33n7007h: I already wrote the pack for you
clone2 has joined #ruby
<bnagy> RubyPanther: NOO NEWB YOU NEED TO APPEND A ONE BYTE CHANNEL ARG ITS JUST NOT POSSIBLE OMG
<gr33n7007h> RubyPanther, but it needs to be packed with the port number doesn't it?
snuffeluffegus has quit [Ping timeout: 252 seconds]
<RubyPanther> bnagy: the channnel is not part of the address, I'm looking at the .h
snath has joined #ruby
* bnagy & RubyPanther, side by side. Truly the enemy of mine enemy...
vlad_starkov has joined #ruby
<centrx> What a happy family
<agent_white> RubyPanther: In this one it's Jackie Chan. I think it's Mr.Miagi's son... so I guess it _is_ Mr.Miagi.
<bnagy> gr33n7007h: have you considered looking at the source for the python connect ?
<bnagy> Jackie Chan is amazing.
<bnagy> I saw some interview he did for Korean TV. He was in a sauna with a couple of korean celeb chefs / comedians
<bnagy> for like... 2 hours
<bnagy> then he made noodles
<gr33n7007h> bnagy, I don't even know anymore :
<RubyPanther> The channel is part of the btrfcoff info, not part of the address
<bnagy> oh.. then it should be just connect( packedmacaddr )
<bnagy> then it's just a matter of working out the raw packet proto
<bnagy> can't WAIT to see the meltdown at that point
<agent_white> bnagy: Nonono that's Shangai Noon.
<agent_white> ^ Is how I drink whiskey.
Deele has joined #ruby
<bnagy> agent_white: uh.. no this was absolutely a show on KTV
<bnagy> like 2 weeks ago
<gr33n7007h> Any one got matsimoto number?
<clone2> chinese zodia
<clone2> zodiac
<gr33n7007h> That guy is a genius of computer sciences
<RubyPanther> loc_addr.rc_channel = (uint8_t) FIX2UINT(port);
<gr33n7007h> maybe he will say look gr33n7007h heres how it's done
<AndroUser2> Japs are total saps
vlad_starkov has quit [Ping timeout: 253 seconds]
<gr33n7007h> AndroUser2, go and suck your dummy
<AndroUser2> If you don't hate Japs you're a moron
Salve has joined #ruby
<gr33n7007h> your the fucking moron you twat
<bnagy> well that's clearly a false dichotomy
<centrx> Maybe you're both morons
infoget has quit [Quit: Leaving.]
<gr33n7007h> i hate racism
<bnagy> and the Dutch
<gr33n7007h> no i like python :)
<agent_white> I hate evil karate kids
moneydouble has joined #ruby
<clone2> AndroUser2 mother is japanese
monkegjinni has joined #ruby
danman has joined #ruby
<bnagy> agent_white: wow, racist
<AndroUser2> A long time ago, a beautiful Chinese princess was caught cheating on her husband. She was banished from China and sent away to the nearest island. A big ugly gorilla raped the princess on the island and she gave birth to the first Japanese people.
<bnagy> agent_white: Jaden Smith isn't even all that dark
shevy has joined #ruby
<clone2> that was AndroUser2 father
danman has quit [Client Quit]
<agent_white> bnagy: But he's from detroit?
<gr33n7007h> like a powder keg, ready to go off
Salve has quit [Ping timeout: 240 seconds]
<gr33n7007h> how the f*** you haven't been kicked/banned out kali-linux
<bnagy> agent_white: now you hatin on Detroit as well, like they all evil?
danman has joined #ruby
aspires has quit []
Foo2 has quit [Remote host closed the connection]
<agent_white> bnagy: ey man, I ain't sayin it doo tha 313 speaks fo itself.
<AndroUser2> What i said about Kali Linux and its shitty lazy devs is the truth
bthesorceror has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
<agent_white> bnagy: This movie is wierd though. the OG karate kid was like ~16-18 years old. This is like 12 year olds whompin on each other.
<bnagy> I don't think he was supposed to be anything like 18
<bnagy> wasn't he still in high school by KKIII ?
<RubyPanther> yeah maybe 14-16
<agent_white> Oh really? I thought in the first one he got that car from Miagi?
<AndroUser2> Who cares it's irrelevant to ruby and your pathetic life
<bnagy> hm.. good point
<agent_white> AndroUser2: But watching this movie is inspahrin. Like watching Hackers makes me want to open up Wireshark.
<AndroUser2> #defocus is for that
<bnagy> so 16 to drive in the US?
<clone2> chinese zodiac
shevy has quit [Ping timeout: 264 seconds]
<agent_white> bnagy: Yessir.
monkegjinni has quit [Remote host closed the connection]
<RubyPanther> do we know he had a license?
<AndroUser2> This channel is for bashing Japs for being Japs
<bnagy> ha, the more hacking movies I see the more Hackers is among the more accurate
<bnagy> which is kind of insane :<
aspires has joined #ruby
<AndroUser2> The most accurate hacking movie is the Dragon tattoo from sweden
<clone2> sword fish
<bnagy> XD
<agent_white> True. I only hack when fine bitches like Angelina Jolie are on my arm.
<clone2> die hard 4
<AndroUser2> Attractive girls can't stand dweeb fat fuck hackers
<clone2> enemy of the state
<agent_white> AndroUser2: Not ones who can't hax the gibson.
<AndroUser2> You sound like a faggot right now
<AndroUser2> Maybe a cock in your ass will do you good
<centrx> He is trying to de-soul you. Watch out.
<gr33n7007h> Insecurity 2007
<agent_white> AndroUser2: Are you hitting on me?
<bnagy> ooh what was that retarded one with Sandra Bullock.. with the pi signs...
<bnagy> The Net!
t_p has joined #ruby
bthesorceror has joined #ruby
<agent_white> Wargames ftw. Ferris Bueller goes haxxing.
<gr33n7007h> antitrust
<bnagy> agent_white: nah he's just sharing what his Dad taught him
cjsarette has quit [Ping timeout: 245 seconds]
clone2 has left #ruby [#ruby]
sarlalian has joined #ruby
<agent_white> OSNAP
<bnagy> I'ma let you finish but I think you'll find that all actual elite hackers agree that Sneakers is the best hacking movie ever
<gr33n7007h> robert redford
mercwithamouth has joined #ruby
meatherl_ has quit [Ping timeout: 252 seconds]
<AndroUser2> Hacking is for niggers
<AndroUser2> Why would you do things that are illegal and stupid? Because you're probably a subhuman nigger
phantomtiger has joined #ruby
nisstyre has joined #ruby
cjsarette has joined #ruby
havenwood has quit []
phantomtiger has quit [Client Quit]
aspires has quit []
Xuerian has joined #ruby
* bnagy srsly rethinking my whole career now
<agent_white> I agree bnagy. I might go train for the Open Kung Fu tourny to beat Master Li's student.
aspires has joined #ruby
<agent_white> I just needa go find Jackie Chan and we can get started.
Slavox|AFK is now known as Slavox
<bnagy> last I saw he was in Seoul
<agent_white> In the bathtubs?
<bnagy> but he has a private jet
<bnagy> so you know. He gets around.
<agent_white> I'll give him a call.
sincereness has joined #ruby
<sincereness> has anyone had a problem with bundle install on mavericks OSX
<bnagy> yes
<sincereness> keep getting an errorPermission denied - /usr/local/rvm/gems/ruby-1.9.3-p392/gems/unf_ext-0.0.6/.document
<bnagy> we see like 4 of them a week, minimum
<sincereness> unf_ext simply wont install and theres no stack fix on it
<sincereness> its pissing me off because i dont want to deal with this shit and focus on other thigns
<bnagy> stop using rvm, stop installing versions managers as root
<sincereness> so wat do?
<bnagy> imho anyway, it's all subjective
<sincereness> everytime i bundle install i get this error
<bnagy> use chruby / ruby-install as a regular user, read the docs carefully, stop following 4 year old rails tutorials on the interweb
<bnagy> also get a proper ruby version, 1.9 is on its deathbed
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
<bnagy> and p392 is.. old
<agent_white> "The maintenance man is teaching you?
<agent_white> "It's China Mom, everyone knows kung-fu."
danman has quit [Quit: danman]
<bnagy> which is very untrue btw
chipotle_ has joined #ruby
<sincereness> installing rvm LOL
chipotle has quit [Ping timeout: 240 seconds]
<sincereness> was using jewlerybox to manage gems
<bnagy> ...
<bnagy> BUY BITCOINS IN YOUR TIME, BUT SELL AT 1200
<sincereness> whats wrong with jewlerybox
<bnagy> apart from the spelling?
<sincereness> yes
<sincereness> is that a bad way to manage ruby versions?
<bnagy> is it a way to manage ruby versions?
<bnagy> I thought it was a gemset thing from like 8 years ago
<sincereness> join rubyonrails
<bnagy> under no circumstances
achru has joined #ruby
<AndroUser2> Bitcoin will crash and become worthless
<sincereness> yea bitcoin is worthless now
<sincereness> someone at mtgox xfered all the coins to themself
<sincereness> and called it "hacked"
<sincereness> there code was leaked on hackernews and they werent using version control
<sincereness> just commenting shit out
<gr33n7007h> bnagy, ruby 1.9.3p194
cjsarette has quit [Ping timeout: 245 seconds]
<gr33n7007h> the need tears a hole
senayar has joined #ruby
aspires has quit []
cjsarette has joined #ruby
<gr33n7007h> >> p RUBY_VERSION
<eval-in> gr33n7007h => "2.1.0" ... (https://eval.in/115144)
thomasxie has joined #ruby
<AndroUser2> There's going to be a better cryptographic currency that is even going to be supported by banks
<bnagy> ok.. I can't stab any of you, so I'm going to go and stab computer game sprites for a while. o/
<sincereness> bnagy: thanks updating my ruby version actually fixxed the problem lol
<AndroUser2> HEIL HITLER bnagy o/
<sincereness> even through the sarcasm you are helpful
<AndroUser2> Im Jewish but I love Hitler
<sincereness> FINALLY thanks
ritek has joined #ruby
ritek has quit [Changing host]
ritek has joined #ruby
ritek has joined #ruby
ritek has left #ruby [#ruby]
marcdel has quit []
aspires has joined #ruby
Jdubs has joined #ruby
havenwood has quit []
nathansoz has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jxf has joined #ruby
aspires has quit []
davedev2_ has quit [Remote host closed the connection]
davedev24 has joined #ruby
marcdel has joined #ruby
naimrajib has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
philcrissman has joined #ruby
davedev24 has quit [Ping timeout: 240 seconds]
sensen has joined #ruby
timonv has joined #ruby
Fyyr13_ has joined #ruby
marcdel has quit []
Fyyr13__ has quit [Ping timeout: 264 seconds]
moneydouble has quit [Quit: Leaving.]
thomasxie has left #ruby [#ruby]
rails612 has joined #ruby
sincereness has quit [Ping timeout: 245 seconds]
<rails612> How can one get a #rails invite?
philcrissman has quit [Remote host closed the connection]
<rails612> I have a semi-general ruby/gem question
<rails612> curious if you can send emails using sendgrid's service marketing emails with something like action mailer/pony or another email program
axsuul has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
sdouglas has joined #ruby
<agent_white> rails612: join #rubyonrails
diegoviola has joined #ruby
monkegjinni has joined #ruby
jxf has joined #ruby
renderful has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
DickIsFree is now known as BRO
sdouglas has quit [Ping timeout: 264 seconds]
Es0teric has quit [Remote host closed the connection]
twiceaday has joined #ruby
yubrew has joined #ruby
aspires has quit []
joelroa has joined #ruby
<rails612> thanks
amritanshu_RnD has joined #ruby
rahult_ has quit [Quit: Back to the world of zombies]
jxf has quit [Ping timeout: 264 seconds]
amritanshu_RnD is now known as Guest5358
yubrew has quit [Ping timeout: 264 seconds]
mois3x has joined #ruby
jxf has joined #ruby
hobodave has joined #ruby
rails612 has quit [Ping timeout: 245 seconds]
michael_lee has quit [Ping timeout: 252 seconds]
lutfidemirci has joined #ruby
monkegjinni has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 240 seconds]
Jdubs has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
joelroa has quit [Ping timeout: 252 seconds]
axsuul has joined #ruby
corehook has joined #ruby
timonv has quit [Remote host closed the connection]
YamakasY has joined #ruby
smathieu has joined #ruby
yarou_ has quit [Remote host closed the connection]
Alina-malina has joined #ruby
t_p has quit [Quit: Computer has gone to sleep.]
smathieu has quit [Ping timeout: 253 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
hobodave has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
dpg has joined #ruby
<dpg> can I ask rails questions here?
Macaveli has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<dpg> where would the proper place to put one-off scripts be in the rails tree?
meatherly has joined #ruby
jxf has joined #ruby
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
aagdbl1 has quit [Client Quit]
Elhu has quit [Quit: Computer has gone to sleep.]
meatherly has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
<dpg> best practices?
dpg has left #ruby ["WeeChat 0.3.7"]
<centrx> And...it's gone
bradhe has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
craigp has joined #ruby
monkegjinni has joined #ruby
Jdubs has joined #ruby
YamakasY has quit [Remote host closed the connection]
m1lt0n has joined #ruby
Kneferilis has joined #ruby
agent_white has quit [Quit: leaving]
maroloccio has quit [Quit: WeeChat 0.4.3]
tvw has joined #ruby
Jdubs has quit [Ping timeout: 264 seconds]
ScalaIrcClient has joined #ruby
Hanmac has joined #ruby
FOSScookie has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
mois3x has quit [Quit: mois3x]
monkegjinni has quit [Remote host closed the connection]
ndrei has joined #ruby
oso96_2000 is now known as oso|away
ScalaIrcClient has quit [Remote host closed the connection]
agent_white has joined #ruby
jxf has quit [Ping timeout: 264 seconds]
axsuul has quit [Ping timeout: 264 seconds]
shevy has joined #ruby
vvvk has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
kenneth has joined #ruby
FOSScookie has quit [Ping timeout: 264 seconds]
ahawkins has joined #ruby
apeiros has joined #ruby
echevemaster has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
craigp has quit [Remote host closed the connection]
kayloos has joined #ruby
derek_c has joined #ruby
craigp has joined #ruby
_HolyCow has joined #ruby
kayloos has quit [Ping timeout: 240 seconds]
abstractj has quit [Changing host]
abstractj has joined #ruby
m1lt0n is now known as 92AAAE4TR
aagdbl has joined #ruby
Alina-malina has joined #ruby
claymore has joined #ruby
linduxed has joined #ruby
ScalaClient has joined #ruby
Waheedi has joined #ruby
ziyadb_ has joined #ruby
makara has joined #ruby
klaut_ has joined #ruby
Bumptiou_ has joined #ruby
roolo has joined #ruby
Liothen has joined #ruby
awkisopen has joined #ruby
aspiers has joined #ruby
yfeldblum has joined #ruby
renderful has joined #ruby
tagrudev has joined #ruby
Shidash has joined #ruby
v0n has joined #ruby
Atw has joined #ruby
bluOxigen has joined #ruby
Celm has joined #ruby
w|t has joined #ruby
keen__ has joined #ruby
kitak has joined #ruby
tobago has joined #ruby
smathieu has joined #ruby
sdouglas has joined #ruby
Karu has joined #ruby
dzhulk1 has joined #ruby
mengu has joined #ruby
JasmeetQA has joined #ruby
Oog has joined #ruby
aganov has joined #ruby
17SAAPYIH has joined #ruby
m__s has joined #ruby
_maes_ has joined #ruby
uxp has joined #ruby
JohnBat26 has joined #ruby
Dwarf has joined #ruby
stephenmac7 has joined #ruby
rhys has joined #ruby
gwb3 has joined #ruby
gtc has joined #ruby
the_mentat has joined #ruby
francisfish has joined #ruby
alexju has joined #ruby
64MAAHP2M has joined #ruby
bricker`LA has joined #ruby
sirecote has joined #ruby
zxq9 has joined #ruby
ddd has joined #ruby
jds has joined #ruby
xyon has joined #ruby
awarner has joined #ruby
adambeynon has joined #ruby
joast has joined #ruby
jayne has joined #ruby
Schmidt has joined #ruby
niv has joined #ruby
jonathanwallace has joined #ruby
Urocyon has joined #ruby
cjk101010 has joined #ruby
kartouch has joined #ruby
tjr9898__ has joined #ruby
23LAAI9A0 has joined #ruby
DylanJ has joined #ruby
Norrin has joined #ruby
idoru has joined #ruby
mtlatif__ has joined #ruby
willb2 has joined #ruby
mgomezch has joined #ruby
lectrick_ has joined #ruby
schaary has joined #ruby
jle` has joined #ruby
grs has joined #ruby
mmochan has joined #ruby
thesheff17 has joined #ruby
yalue has joined #ruby
AntelopeSalad has joined #ruby
cdime has joined #ruby
BraddBitt has joined #ruby
TheLarkInn has joined #ruby
RoryHughes has joined #ruby
Adran has joined #ruby
hanikazmi has joined #ruby
ji0n has joined #ruby
virtualize has joined #ruby
Kamilion has joined #ruby
greenrose has joined #ruby
23LAAKZHW has joined #ruby
MJBrune has joined #ruby
supershabam has joined #ruby
nfk has joined #ruby
momigi has joined #ruby
aboudreault has joined #ruby
Authenticator has joined #ruby
vaicine has joined #ruby
yacks has joined #ruby
njection has joined #ruby
nuck has joined #ruby
maZtah has joined #ruby
lotherk has joined #ruby
klaut has joined #ruby
candelabra has joined #ruby
txdv has joined #ruby
ouie has joined #ruby
TripleDES has joined #ruby
Guest85414______ has joined #ruby
kewubenduben has joined #ruby
lele has joined #ruby
jrunning____ has joined #ruby
Hobogrammer has joined #ruby
jmeeuwen has joined #ruby
Emmanuel_Chanel has joined #ruby
zeroXten has joined #ruby
jinie_ has joined #ruby
Hien has joined #ruby
jpierre03 has joined #ruby
flori has joined #ruby
meinside has joined #ruby
postmodern has joined #ruby
zellio has joined #ruby
alol has joined #ruby
Soulcutter has joined #ruby
mroth has joined #ruby
tommyblu` has joined #ruby
soahccc has joined #ruby
go|dfish has joined #ruby
braincrash has joined #ruby
renklaf_ has joined #ruby
SegFaultAX has joined #ruby
fella5s has joined #ruby
kloeri has joined #ruby
zenojis_ has joined #ruby
scttnlsn has joined #ruby
mgorbach has joined #ruby
thumpba_ has joined #ruby
rurban__ has joined #ruby
brandon__ has joined #ruby
dandrade_ has joined #ruby
weeb1e has joined #ruby
d-snp has joined #ruby
michaelchum has joined #ruby
poguez has joined #ruby
mikemac has joined #ruby
yeticry_ has joined #ruby
Tranquility_ has joined #ruby
Senjai has joined #ruby
existensil has joined #ruby
sawtooth has joined #ruby
lepht has joined #ruby
Zunonia_ has joined #ruby
aeio has joined #ruby
anicet has joined #ruby
Elfix has joined #ruby
Thanatermesis has joined #ruby
Luyt__ has joined #ruby
PhilK_ has joined #ruby
vjt_ has joined #ruby
thomas3141592653 has joined #ruby
benatkin has joined #ruby
wykydtron has joined #ruby
iml has joined #ruby
ggherdov_ has joined #ruby
S0da has joined #ruby
shtirlic has joined #ruby
frode15243_ has joined #ruby
fluxxed has joined #ruby
zaargy has joined #ruby
Gate has joined #ruby
lkba has joined #ruby
jabular has joined #ruby
julian` has joined #ruby
Kruppe has joined #ruby
mr_red has joined #ruby
wchun has joined #ruby
psyprus has joined #ruby
deadlock has joined #ruby
wlanboy has joined #ruby
zz_jrhorn424 has joined #ruby
tkuchiki has joined #ruby
Angelous has joined #ruby
tobiasvl has joined #ruby
drago777 has joined #ruby
three18ti has joined #ruby
camt has joined #ruby
seich- has joined #ruby
mordocai has joined #ruby
hackeron has joined #ruby
dyreshark has joined #ruby
ninegrid has joined #ruby
Klumben has joined #ruby
Sthebig has joined #ruby
joelteon has joined #ruby
mjmac has joined #ruby
aetaric has joined #ruby
mbff has joined #ruby
bodie_ has joined #ruby
jzig has joined #ruby
queequeg1 has joined #ruby
vt102 has joined #ruby
DarkFoxDK has joined #ruby
kenichi has joined #ruby
ixx has joined #ruby
Takumo has joined #ruby
Davedo has joined #ruby
xiphiasx_ has joined #ruby
dmarr has joined #ruby
artgoeshere has joined #ruby
gyre007__ has joined #ruby
NalloK has joined #ruby
jwest has joined #ruby
Nightmare has joined #ruby
northfurr has joined #ruby
casheew has joined #ruby
lfox has joined #ruby
epochwolf has joined #ruby
Aquilo has joined #ruby
csq has joined #ruby
Klumben has quit [Max SendQ exceeded]
Hanmac1 has joined #ruby
njection has quit [Max SendQ exceeded]
Hobogrammer_ has joined #ruby
jackneill has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
Sthebig has quit [Changing host]
Sthebig has joined #ruby
epochwolf has quit [Changing host]
epochwolf has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
Paradox has joined #ruby
Klumben has joined #ruby
mbff is now known as Guest1925
bodie_ is now known as Guest31737
gtc is now known as Guest71007
claymore is now known as Guest4451
MindfulMonk has joined #ruby
ConstantineXVI has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
drjblouse_ has quit [Ping timeout: 245 seconds]
ckrailo has quit [Ping timeout: 245 seconds]
Jakee`_ has quit [Ping timeout: 245 seconds]
octarine has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
bedouin has quit [Ping timeout: 245 seconds]
bcavileer has quit [Ping timeout: 245 seconds]
mattyohe has quit [Ping timeout: 245 seconds]
yo61 has quit [Ping timeout: 245 seconds]
nimf_ has quit [Ping timeout: 245 seconds]
ixx is now known as Guest95116
sirecote is now known as Guest55728
Avahey has quit [Ping timeout: 245 seconds]
BaconOverflow has quit [Ping timeout: 245 seconds]
jpinnix__ has quit [Ping timeout: 245 seconds]
sdouglas has quit [Remote host closed the connection]
lxsameer has joined #ruby
Celm has quit [Remote host closed the connection]
wlanboy has quit [Changing host]
wlanboy has joined #ruby
mjc_ has quit [Ping timeout: 245 seconds]
kapowaz has quit [Ping timeout: 245 seconds]
antonishen has quit [Ping timeout: 245 seconds]
zrl__ has quit [Ping timeout: 245 seconds]
davorb has quit [Ping timeout: 245 seconds]
ceej has quit [Ping timeout: 245 seconds]
Celm has joined #ruby
vvvk has quit [Remote host closed the connection]
Norrin has quit [Changing host]
Norrin has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Avahey_ has joined #ruby
cmaxw___ has quit [Ping timeout: 245 seconds]
CJD14_ has quit [Ping timeout: 245 seconds]
nimf_ has joined #ruby
drjblouse__ has joined #ruby
anicet is now known as Guest79457
Hien is now known as Guest60001
dnyy has joined #ruby
joast is now known as Guest78452
gwb3 is now known as Guest95752
Jakee`__ has joined #ruby
vvvk has joined #ruby
mattyohe has joined #ruby
bedouin_ has joined #ruby
njection has joined #ruby
Guest79457 is now known as juni0r
CJD14_ has joined #ruby
kapowaz_ has joined #ruby
alexju has quit [Remote host closed the connection]
yasushi has joined #ruby
BaconOverflow has joined #ruby
JasmeetQA has quit [Ping timeout: 240 seconds]
JasmeetQA has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
yo61 has joined #ruby
chiel has quit [Remote host closed the connection]
antonishen has joined #ruby
vlad_starkov has joined #ruby
ceej has joined #ruby
vvvk has quit [Ping timeout: 265 seconds]
artm has joined #ruby
hiyosi has joined #ruby
ephemerian has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
mjc_ has joined #ruby
zrl__ has joined #ruby
jpinnix___ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
hiyosi has quit [Read error: Operation timed out]
ckrailo_ has joined #ruby
davorb has joined #ruby
yacks has quit [Quit: Leaving]
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
gaussblurinc has joined #ruby
<agent_white> This silence tells me I need to adjust my bedtime.
agjacome has joined #ruby
Salve has joined #ruby
octarine has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
<gaussblurinc> agent_white: I have 12.00pm, you?
vvvk has joined #ruby
<agent_white> gaussblurinc: 1:10am... I guess it's not _too_ late.
Hanmac has joined #ruby
aagdbl has quit [Quit: Leaving.]
bcavileer_ has joined #ruby
fd has joined #ruby
cmaxw____ has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
<fd> Hello
<fd> I have a question about RoR web application, can anybody help me?
_bart has joined #ruby
momigi has quit [Remote host closed the connection]
maZtah is now known as maZtah
maZtah has quit [Changing host]
maZtah has joined #ruby
<agent_white> fd: Not here. But in #rubyonrails, yes.
<fd> thanks agent_white
fd has left #ruby [#ruby]
momigi has joined #ruby
* agent_white nods
bradhe_ has joined #ruby
Guest4451 has quit [Quit: Leaving]
Salve has quit [Ping timeout: 244 seconds]
claymore_ has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
AndroUser2 has quit [Remote host closed the connection]
AndroUser2 has joined #ruby
Hanmac1 has joined #ruby
razrunelord has joined #ruby
andrewlio has joined #ruby
momigi has quit [Ping timeout: 244 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
corehook has quit [Ping timeout: 264 seconds]
joelroa has joined #ruby
mehlah has joined #ruby
lxsameer has joined #ruby
razrunelord has quit [Ping timeout: 244 seconds]
<gaussblurinc> agent_white: wow, coffee helps you in such a early time?
yubrew has joined #ruby
JasmeetQA has quit [Ping timeout: 240 seconds]
Fyyr13__ has joined #ruby
Fyyr13_ has quit [Remote host closed the connection]
<agent_white> gaussblurinc: No, but whiskey does!
<agent_white> :D
roolo has quit [Quit: Leaving...]
<agent_white> ologNation: Hello fellow marijuana state! <3 , Colorado
<agent_white> MT
<agent_white> DAMNIT IRSSI
Hobogrammer_ has quit [Ping timeout: 264 seconds]
<agent_white> ologNation: Oh. Well nevermind then! Good morning! ;)
jhass|off is now known as jhass
vvvk has quit []
lolmaus has quit [Read error: Connection reset by peer]
torstein has joined #ruby
klaut_ has quit [Remote host closed the connection]
nhhagen has joined #ruby
JasmeetQA has joined #ruby
lolmaus has joined #ruby
joelroa has quit [Ping timeout: 252 seconds]
AndroUser2 has quit [Ping timeout: 244 seconds]
ahawkins has quit [Quit: leaving]
yubrew has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby
Fyyr13_ has joined #ruby
dseitz has joined #ruby
jxf has joined #ruby
pr0ggie has joined #ruby
bal has joined #ruby
Fyyr13__ has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
camilasan has joined #ruby
Guest5358 has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
bradhe_ has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
<agent_white> bnagy: Watching Sneakers. This is wonderful.
bradhe has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
pr0ggie has quit [Ping timeout: 240 seconds]
YamakasY has joined #ruby
<gaussblurinc> agent_white: ah, whiskey! great! :)
<agent_white> gaussblueinc: Warning - Not created for mornings.
bradhe has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
Guest5358 has joined #ruby
sparrovv has joined #ruby
yacks has joined #ruby
nimf_ has quit [Quit: Connection closed for inactivity]
Guest5358 has quit [Max SendQ exceeded]
mansi has joined #ruby
Guest5358 has joined #ruby
derek_c has quit [Quit: Leaving]
derek_c has joined #ruby
derek_c has quit [Read error: Connection reset by peer]
derek_c has joined #ruby
w|t has quit [Changing host]
w|t has joined #ruby
maasha has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
derek_c has quit [Client Quit]
derek_c has joined #ruby
derek_c has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
derek_c has joined #ruby
derek_c has quit [Read error: Connection reset by peer]
derek_c has joined #ruby
maasha_ has joined #ruby
derek_c has quit [Remote host closed the connection]
derek_ has joined #ruby
derek_ has quit [Read error: Connection reset by peer]
lutfidemirci has quit [Read error: Connection reset by peer]
lutfidemirci has joined #ruby
greenarrow has joined #ruby
cdime has quit [Ping timeout: 240 seconds]
maasha_ has quit [Remote host closed the connection]
sarmiena_ has quit [Quit: sarmiena_]
Hanmac has joined #ruby
sk87 has joined #ruby
<maasha> morn
Hanmac1 has quit [Ping timeout: 244 seconds]
iamdoo2 has quit []
sparrovv has quit [Remote host closed the connection]
DaniG2k has joined #ruby
sarmiena_ has joined #ruby
Celm has quit [Remote host closed the connection]
Oog has quit []
nvrch has joined #ruby
elaptics`away is now known as elaptics
mikecmpbll has joined #ruby
fgo has joined #ruby
blackmesa has joined #ruby
grzywacz has joined #ruby
skaflem has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
carraroj has joined #ruby
banek has joined #ruby
anarang has quit [Quit: Leaving]
marcdel has quit []
ikaros has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
joelroa has joined #ruby
Salve has joined #ruby
BraddPitt has joined #ruby
ciziar has joined #ruby
banek has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
joelroa has quit [Read error: Operation timed out]
Hanmac1 has joined #ruby
Riking has quit [Ping timeout: 240 seconds]
BraddBitt has quit [Ping timeout: 240 seconds]
momigi has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
nhhagen has joined #ruby
Salve has quit [Ping timeout: 265 seconds]
nhhagen_ has joined #ruby
quatron has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
aces1up9939 has joined #ruby
monkegjinni has joined #ruby
yubrew has joined #ruby
<aces1up9939> hello i have a app where i am trying to calculate the bandwidth used. I am snagging html pages.. so am i right to say that the length of the html string of the body is the size of the bandwidth used to grab that page
<aces1up9939> ex html.length reports 15000 so this is 15kb right?
virtualize has quit []
razrunelord has joined #ruby
<aces1up9939> just wonderin if this is as simple as it is.
Riking has joined #ruby
Riking has quit [Excess Flood]
Riking has joined #ruby
Riking has quit [Excess Flood]
Riking has joined #ruby
Riking has quit [Excess Flood]
Riking has joined #ruby
Riking has quit [Excess Flood]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> it's not
Guest11151 has joined #ruby
Guest11151 has quit [Excess Flood]
browndawg has left #ruby [#ruby]
<apeiros> aces1up9939: you're missing headers and maybe other overhead, you miscalculate compressed transports
yubrew has quit [Ping timeout: 240 seconds]
riking_ has joined #ruby
riking_ has quit [Excess Flood]
AndroUser2 has joined #ruby
marcdel has quit []
momigi has quit [Ping timeout: 240 seconds]
riking_ has joined #ruby
riking_ has quit [Excess Flood]
<apeiros> if you can patch the read method used on the IO, then it's as simple as counting the bytes you've read (might still miss some overhead)
ciziar has quit [Quit: Computer has gone to sleep.]
riking_ has joined #ruby
riking_ has quit [Excess Flood]
<aces1up9939> apeiros ok i'm running a lot of requests.. say 4000 pages
<aces1up9939> looks to my calculations up around 600mb?
<aces1up9939> that sounds right?
riking_ has joined #ruby
Vovko has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
razrunelord has quit [Ping timeout: 265 seconds]
JViz has joined #ruby
browndawg has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
Vovko has left #ruby [#ruby]
nhhagen has joined #ruby
JViz_ has quit [Ping timeout: 264 seconds]
Vovko has joined #ruby
nhhagen has quit [Remote host closed the connection]
richardc has joined #ruby
jlebrech has joined #ruby
sdouglas has joined #ruby
nhhagen has joined #ruby
Vovko has left #ruby [#ruby]
shredding has joined #ruby
nhhagen has quit [Remote host closed the connection]
thejoecarroll_ has quit [Quit: ZNC - http://znc.in]
AlSquire has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Fyyr13_ has quit [Remote host closed the connection]
thejoecarroll has joined #ruby
Vovko has joined #ruby
infoget has joined #ruby
nhhagen has joined #ruby
sk87 has joined #ruby
Lewix_ has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 264 seconds]
meatherly has joined #ruby
rdark has joined #ruby
senayar_ has joined #ruby
nhhagen has quit [Remote host closed the connection]
meatherly has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
NovapaX has joined #ruby
kitak has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 265 seconds]
itamaryu has joined #ruby
<itamaryu> Hi guys, do you have any ProTip how to find memory leak ?
<itamaryu> I'm using Ruby 1.9.3p0 + Rails 3.2.17 and my 13 ruby instances taking 1.9GB (!!) memory
senayar has quit [Ping timeout: 240 seconds]
parduse has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
ayaz has joined #ruby
<apeiros> aces1up9939: that's impossible to tell
blackmesa has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
quatron has quit [Ping timeout: 240 seconds]
yeticry_ has quit [Ping timeout: 240 seconds]
TMM has joined #ruby
kitak has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
quatron has joined #ruby
klaut_ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
Hanmac has joined #ruby
relix has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shredding has quit [Read error: Connection reset by peer]
kayloos has joined #ruby
workmad3 has joined #ruby
shredding has joined #ruby
monkegjinni has quit [Remote host closed the connection]
nomenkun has joined #ruby
monkegjinni has joined #ruby
prc has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
<maasha> I am looking for a way of dumping a hash with pretty print to $stdout and update the data displayed in the same location. \r seems to be a hackery thing that works for single lines. curses seems a bit like overkill - and is badly under documented. Ideas?
monkegjinni has joined #ruby
<tobiasvl> what do youu mean, "update the data displayed in the same location"?
kayloos has quit [Ping timeout: 252 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
nhhagen has joined #ruby
Advocation has joined #ruby
platzhirsch has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
Hanmac1 has joined #ruby
shaunbaker has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
<maasha> tobiasvl: So on the command line (bash) I type some command, and then the hash should be pretty printed below the bash prompt. The hash contains some key/value pairs where the values are counters that are updated as the script runs.
sk87 has joined #ruby
92AAAE4TR is now known as m1lt0n_
pr0ggie has joined #ruby
shime has joined #ruby
nhhagen has quit [Remote host closed the connection]
roolo has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
hiyosi has joined #ruby
Speed has joined #ruby
<shevy> maasha there is no easy way to do this without the curses-repositioning
jmaister_ is now known as jmaister
crystal77 has joined #ruby
<maasha> shevy: fair enough. Is is possible to use curses so the bash prompt is not cleared?
hiyosi has quit [Ping timeout: 240 seconds]
<shevy> curses has its name for a reason :)
<maasha> shevy: #$%&#%(!!!
joelroa has joined #ruby
<shevy> I think you can see the behaviour nice if you start "htop"
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy> somehow a new buffer is drawn when htop is started, then when htop is exited, you are returned to the old prompt
zeeraw has joined #ruby
<maasha> htop - that was new
Salve has joined #ruby
<maasha> .oO(erection)
mgomezch_ has joined #ruby
yubrew has joined #ruby
mgomezch has quit [Ping timeout: 240 seconds]
aaronmcadam has joined #ruby
timonv_ has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
dawkirst has joined #ruby
<shevy> maasha, what is if you do this from a ruby script: "\r 1800"
yeticry has joined #ruby
<shevy> and then "\r 1799"
aaronmcadam has joined #ruby
axsuul has joined #ruby
<shevy> I think that is the only thing you can do - modify one line via \r
<maasha> shevy: so that is single line based. screws up pretty print on multiple lines.
nisstyre has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
hackeron has quit [Changing host]
hackeron has joined #ruby
klaut_ has quit [Remote host closed the connection]
<maasha> shevy: one could also monkey around with ANSI terminal codes, but that is evil.
tonythomas has joined #ruby
sk87 has joined #ruby
<shevy> I dont think you can modify more than one line with ANSI codes
tonythomas has left #ruby [#ruby]
AndroUser2 has quit [Remote host closed the connection]
<shevy> you could clear the whole screen every time and redraw perhaps
AndroUser2 has joined #ruby
<shevy> * redraw/dump the data again
<shevy> with curses you could specify what to modify where through absolute positioning
Salve has quit [Ping timeout: 252 seconds]
Waheedi has quit [Quit: Waheedi]
karupanerura is now known as zz_karupanerura
<hackeron> hey, anyone using event machine? - how would I check how long a request took to process with em-http-request? - http.callback {|http| http.response_header.status} gives me the response status, how would I get the time it took to process?
timonv has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
<maasha> shevy: I'd like to avoid system clear to keep the bash prompt visible
nhhagen has joined #ruby
<shevy> maasha k I think that is easy to answer then, it can't be done :D
momigi has joined #ruby
axsuul has quit [Ping timeout: 244 seconds]
blaxter has joined #ruby
aagdbl has joined #ruby
<maasha> shevy: This sort of works: https://gist.github.com/maasha/82176bb06a9228b62304
<maasha> shevy: here I get the bash prompt back when the script is terminated.
timonv_ has quit [Remote host closed the connection]
shime has quit [Ping timeout: 240 seconds]
<shevy> ok but you don't draw at the same position here and you open a new buffer
<shevy> that's like starting a GUI program, doing something with it, then returning back to the shell
<maasha> shevy: I can live with that if it works on the command line and in irb.
lkba has quit [Ping timeout: 240 seconds]
<maasha> shevy: And I think I can define a window at a specified position and draw in that to avoid padding the PP output.
yasushi has joined #ruby
<shevy> maasha how do you terminate this script btw?
_bart has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
<maasha> shevy: good old ctrl-c
<maasha> shevy: but the real version will not be a endless loop.
camilasan has joined #ruby
<shevy> ah ok
sparrovv has joined #ruby
Thanatermesis has joined #ruby
<shevy> I improved it a tiny bit :P http://pastie.org/pastes/8888467/text
camilasa_ has joined #ruby
camilas__ has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
<shevy> maasha can you position it somewhere in the middle?
JasmeetQA has quit [Quit: Leaving.]
momigi has quit [Ping timeout: 240 seconds]
<maasha> shevy: a trap! why not "rescue Interrupt"?
<shevy> hmm
<shevy> a single line?
nhhagen has quit [Remote host closed the connection]
<maasha> no in a begin rescue end construct
<shevy> you mean I would have to indent the whole code? :D
Zunonia_ has quit [Quit: Computer has gone to sleep.]
<maasha> shevy: The trap seems very Perl'ish where the begin/rescue is more Ruby'ish?
senayar_ has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 264 seconds]
<shevy> no, I mean
mojjojo has joined #ruby
senayar has joined #ruby
<shevy> if I have 20 lines of code, with begin rescue, I would have to indent them all to account for the new level introduced by begin/rescue/end
<maasha> shevy: well, yes
nhhagen has joined #ruby
kaliya has joined #ruby
<maasha> shevy: if you place the code in a method, then you dont need to indent.
<shevy> true
<shevy> well
<shevy> I have to indent inside of the method :)
aces1up9939 has quit []
<shevy> maash how did you find out about PP.pp by the way?
camilasan has joined #ruby
<maasha> Anyway, I should think the rescue way is more Ruby'ish.
razrunelord has joined #ruby
richardc has quit [Ping timeout: 240 seconds]
<shevy> I don't like it much, it interrupts the flow a lot
<maasha> shevy: the PP.pp is in the docs
YamakasY has quit [Quit: The best revenge is massive success...]
compleatang has joined #ruby
phansch has joined #ruby
richardc has joined #ruby
camilas__ has quit [Ping timeout: 265 seconds]
Advocation has quit [Quit: Advocation]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
Xeago has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
Xeago has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<jlebrech> would love modula 3 style kends in ruby
nhhagen has quit [Remote host closed the connection]
Alina-malina has quit [Quit: Leaving to RealWorld]
tkuchiki has quit [Remote host closed the connection]
D4v33_ has quit [Quit: Leaving]
dzhulk1 has left #ruby [#ruby]
Alina-malina has joined #ruby
Xeago has joined #ruby
mansi has joined #ruby
nhhagen has joined #ruby
timonv has joined #ruby
nhhagen has quit [Remote host closed the connection]
tvw has quit []
inversesquarelaw has quit [Ping timeout: 252 seconds]
pfg has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
aryaching has joined #ruby
dmyers has quit [Ping timeout: 264 seconds]
kate_r has joined #ruby
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
aagdbl1 is now known as aagdbl
JasmeetQA has joined #ruby
richardc has quit [Remote host closed the connection]
_bart has joined #ruby
<shevy> hmm what do you guys use for commandline arguments... so that something like: --help,-help,help would all work when calling a .rb file from the commandline
achru has quit [Remote host closed the connection]
guilleiguaran has quit [Quit: Connection closed for inactivity]
koell has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<workmad3> shevy: I don't come across many commands that support all of those styles
AndroUser2 has quit [Remote host closed the connection]
AndroUser2 has joined #ruby
nhhagen has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
decoponio has joined #ruby
achru has joined #ruby
Biohazard has joined #ruby
nhhagen has quit [Remote host closed the connection]
<workmad3> shevy: first is typical unix style for a multi-char argument, second is more java style (or, if it was unix, it would be a -h option with elp as a param) and third is the style used by more 'aggregate' commands that act as a way to invoke multiple different commands, e.g. git or things produced by thor
predator117 has quit [Ping timeout: 240 seconds]
achru has quit [Remote host closed the connection]
<shevy> hmm
<shevy> and gem!
<shevy> gem install
Faris has quit [Ping timeout: 264 seconds]
<shevy> gem uninstall
kayloos has joined #ruby
jhass is now known as jhass|off
mourest has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has quit [Remote host closed the connection]
Advocation has joined #ruby
camilasan has joined #ruby
hiyosi has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
achru has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
razrunelord has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
camilasan has joined #ruby
dmyers has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
deadlock has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
banek has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
richardc has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 240 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
joelroa has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
sk87 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Salve has joined #ruby
ccooke_ is now known as ccooke
camilasan has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
lolmaus has joined #ruby
banek has quit [Ping timeout: 265 seconds]
lolmaus_ has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
camilasan has joined #ruby
achru has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
Advocation has quit [Quit: Advocation]
achru has joined #ruby
camilasan has joined #ruby
browndawg has quit [Ping timeout: 264 seconds]
joelroa has quit [Read error: Operation timed out]
Faris has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
NovapaX has quit [Quit: Textual IRC Client: www.textualapp.com]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Maitiu has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Jdubs has joined #ruby
Salve has quit [Ping timeout: 265 seconds]
AndroUser2 has quit [Ping timeout: 244 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
klaut_ has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
platzhirsch has left #ruby [#ruby]
camilasa_ has quit [Read error: Connection reset by peer]
gaussblurinc has joined #ruby
parduse has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
tonyhb has joined #ruby
Jdubs has quit [Ping timeout: 240 seconds]
shime has joined #ruby
camilasan has joined #ruby
pothibo has joined #ruby
senayar_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
camilasa_ has joined #ruby
camilas__ has joined #ruby
momigi has joined #ruby
camila___ has joined #ruby
chrisseaton has joined #ruby
camil____ has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
grs has left #ruby ["WeeChat 0.4.2"]
klaut_ has quit [Remote host closed the connection]
predator117 has joined #ruby
cami_____ has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 264 seconds]
momigi has quit [Ping timeout: 240 seconds]
camilas__ has quit [Ping timeout: 264 seconds]
chrisseaton has quit [Client Quit]
camila___ has quit [Ping timeout: 264 seconds]
camil____ has quit [Ping timeout: 264 seconds]
sparrovv has quit [Remote host closed the connection]
cami_____ has quit [Ping timeout: 264 seconds]
zeeraw has joined #ruby
Fyyr13_ has joined #ruby
timonv_ has joined #ruby
roolo has quit [Quit: Leaving...]
timonv has quit [Ping timeout: 264 seconds]
Fyyr13__ has joined #ruby
Fyyr13_ has quit [Read error: Connection reset by peer]
timonv has joined #ruby
chrisseaton has joined #ruby
msch has joined #ruby
timonv_ has quit [Read error: No route to host]
achru has quit [Ping timeout: 252 seconds]
<krz> how can i refactor the CSV part https://gist.github.com/1c2e7668861b503bca2b
<krz> i have CSV.generate do |csv| declared twice
<krz> on lines 5 and 12
m1lt0n_ has quit [Quit: Lost terminal]
thomas3141592653 has quit [Quit: Connection closed for inactivity]
<zaargy> that's not really worth refactoring
ziyadb_ has quit [Quit: Connection closed for inactivity]
Guedes has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
m1lt0n_ has joined #ruby
Guedes has left #ruby [#ruby]
blackmesa has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
gener1c has joined #ruby
m1lt0n_ has quit [Client Quit]
<gener1c> any advice on a good rspec book?
yeticry has quit [Ping timeout: 252 seconds]
chrisseaton has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
monkegjinni has quit [Remote host closed the connection]
<krz> zaargy: i have 2-3 other methods that will do CSV.generate do |csv|
tonyhb has quit [Ping timeout: 240 seconds]
<krz> in that class
monkegjinni has joined #ruby
<jzigmund> gener1c: imo this one http://pragprog.com/book/achbd/the-rspec-book is good
popl has quit [Ping timeout: 244 seconds]
BRO is now known as mozzarella
Mongey has joined #ruby
monkegjinni has quit [Ping timeout: 244 seconds]
mansi has joined #ruby
francisfish has quit [Remote host closed the connection]
<shevy> am I the only one who often mistypes csv with cvs
<tobiasvl> shevy: no i do it all the time
shime has quit [Ping timeout: 240 seconds]
<shevy> <3
nvrch has quit [Quit: nvrch]
banister_ has joined #ruby
<certainty> that's intentional
<certainty> both stand for pain
tvw has joined #ruby
banister has quit [Read error: Connection reset by peer]
<apeiros> krz: I agree with zaargy - not worth refatoring
JasmeetQA has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 244 seconds]
<certainty> gener1c: yeah the one mentioned is pretty good. It also covers some BDD theory
ichilton has joined #ruby
<certainty> and we all love theory, don't we? :)
<shevy> BSD theory?
<ichilton> Anyone got a neater way of doing this? - discs = discs.map { |disc| disc[:some_field] = 1; disc }
<shevy> not sure what this does
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ichilton> i.e I have an array of hashes and I want to add something to each hash
yeticry has joined #ruby
<w|t> well you can do map!
<shevy> hehe
leonidlm has joined #ruby
<ichilton> true
Megtastique has joined #ruby
<ichilton> is there anything better than map though instead of adding to hash and returning it
foredoomed has joined #ruby
<w|t> if that's a hash i don't think map represents it well. i think each would be a good idea.
<w|t> i still don't know of any add/set all method though, sorry
<ichilton> yep, each is much nicer actually - doh
<ichilton> thanks
monkegjinni has joined #ruby
larissa has joined #ruby
mansi has joined #ruby
richardc has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 264 seconds]
<chridal> So, I've written som validations on my models. On the one model it works just fine, but on the other it won't run at all. Really weird!
<chridal> Any ideas?
richardc has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
bthesorceror has quit [Remote host closed the connection]
sski has joined #ruby
<chridal> lol. it was a typo. 'validate' instead of 'validates', never even thought about that.
pr0ggie has quit [Ping timeout: 244 seconds]
tonyhb has joined #ruby
evenix has joined #ruby
daxroc1 has joined #ruby
sensen has quit [Quit: leaving]
zeeraw has joined #ruby
razrunelord has joined #ruby
toretore has joined #ruby
<daxroc1> is ::Digest::MD5.file(current_path).hexdigest safe to use with large files, should I be reading chunk by chunk ?
crystal77 has quit [Quit: Computer has gone to sleep.]
gaussblurinc has quit [Quit: Leaving.]
bluenemo has joined #ruby
spider-mario has joined #ruby
griffindy has joined #ruby
richardc has quit [Ping timeout: 240 seconds]
gaussblurinc has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
<certainty> tagrudev: yolo
browndawg has joined #ruby
<tagrudev> certainty, yo
mostlybadfly has joined #ruby
<certainty> daxroc1: then if you have those chunks what would you do? you still want to compress the entire file, no?
The_NetZ has joined #ruby
<shevy> I still find it funny that print "Hello World!" is an error on python3
tonyhb has quit [Ping timeout: 240 seconds]
roolo has joined #ruby
evenix has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
<The_NetZ> hehe
<certainty> shevy: it is?
<The_NetZ> shevy: hey, just the person I'd like to see :P
agarie_ has joined #ruby
<The_NetZ> certainty: yeah, they use something else to delimit strings, I think
<shevy> yearh certainty ... SyntaxError: invalid syntax
<certainty> The_NetZ: I see
<tobiasvl> shevy: they're moving in the wrong direction, they should REMOVE parens :)
<shevy> tobiasvl hehe
<The_NetZ> shevy: know of any way to embed a raw ruby script, like as a string, into an exe?
<tobiasvl> shevy: although I think print went from being a builtin to a regular method, which is good
randomnick_ has joined #ruby
dweeb_ has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
<shevy> tobiasvl so much effort in python2 to python3 just over () vs no; in ruby it being optional, no energy is lost in such a discussion because both ways work
shredding has quit [Quit: shredding]
Senjai has quit [Ping timeout: 240 seconds]
<The_NetZ> *in c++
<daxroc1> certainty: compress? talking about read the file by chunk and md5.update(f.read(block)) or is it safe to use ::Digest::MD5.file(current_path).hexdigest
<shevy> The_NetZ I am a total C++ noob. I only know that you can use << to append to a string in C++, which I liked
<The_NetZ> yeah, that's cool aint it?
<shevy> The_NetZ but you can surely call the ruby interpreter from inside a cpp file
<The_NetZ> anyone? I know you can do it in jruby
mgomezch_ is now known as mgomezch
<The_NetZ> shevy: yeah, but the interpreter is embedded in my c++ application :P
<daxroc1> certainty: Files can range from Kb to GB
monkegjinni has quit [Remote host closed the connection]
<shevy> The_NetZ well call it! I have no idea how but I am sure it can be done
<certainty> tagrudev: computing a hash is just compression. I didn't know there was a variant that allowed to feed chunks. Using smaller blocks is feasable than
cjsarette has joined #ruby
<certainty> daxroc1: ^
monkegjinni has joined #ruby
<shevy> tobago, this is funny: "One thing to note about Biopython is that it often provides multiple ways of ?doing the same thing.?"
Hanmac has joined #ruby
<certainty> daxroc1: you don't want to read gigs of data into ram
<shevy> sorry
<shevy> I meant tobiasvl
<daxroc1> certainty: Thats what I was thinking. Not getting the same checksum
<shevy> it is kinda funny how they even describe it: " Things have improved in recent releases, but this can still be frustrating as in Python there should ideally be one right way to do something. However, this can also be a real benefit because it gives you lots of flexibility and control over the libraries."
<tobiasvl> shevy: haha, nice
hiyosi has quit [Ping timeout: 240 seconds]
<shevy> sounds a lot like perl and ruby to me
banek has joined #ruby
<chridal> Why on earth won't validate presence: true work if the value is nil? it is clearly not present then
joelroa has joined #ruby
<dweeb_> I want to remove leading, trailing and repeated dashes from a string. Is there a better way than this?string.chomp('-').squeeze('-').reverse.chomp('-').reverse
<chridal> do you need to write custom validations to deal with values that can be nil?
<tobiasvl> "it's awesome to be able to do stuff more than one way, and also awesome to be forced to do it one way" <- well that's more than one way
mailo has joined #ruby
cjsarette has quit [Excess Flood]
banek has quit [Read error: Connection reset by peer]
banek_ has joined #ruby
Salve has joined #ruby
Hanmac1 has quit [Ping timeout: 244 seconds]
randomnick_ has quit [Ping timeout: 240 seconds]
mansi has quit [Remote host closed the connection]
<daxroc1> any one point out why I dont get matching md5 with md5sum ?
mansi has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
quatron_ has joined #ruby
<shevy> tobiasvl hehe
cjsarette has joined #ruby
Biohazard has quit [Ping timeout: 245 seconds]
thomasxie has joined #ruby
quatron has quit [Ping timeout: 240 seconds]
quatron_ is now known as quatron
joelroa has quit [Ping timeout: 265 seconds]
klaut_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
Salve has quit [Ping timeout: 244 seconds]
<certainty> >> require 'digest/md5'; md5 = Digest::MD5.new; (md5 << "test" << "bar").hexdigest == Digest::MD5.hexdigest("testbar")
<eval-in> certainty => true (https://eval.in/115335)
Biohazard has joined #ruby
randomnick_ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
craigp has quit [Remote host closed the connection]
Advocation has joined #ruby
igghost has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
<certainty> daxroc1: the docs suggest that this works. They are sparse however
camilasan has joined #ruby
thomasxie has quit [Ping timeout: 244 seconds]
camilasan has quit [Read error: Connection reset by peer]
ringaroses has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
momigi has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
freerobby has joined #ruby
Zespre has quit [Ping timeout: 252 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
thomasxie has quit [Client Quit]
camilasan has joined #ruby
<daxroc1> certainty: https://gist.github.com/daxroc/9410375 works good
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
MrPopinjay has joined #ruby
kitak has quit [Remote host closed the connection]
ahawkins has joined #ruby
<MrPopinjay> Hi guys. Can anyone recommend me a curses gem please?
camilasan has quit [Read error: Connection reset by peer]
richardc has joined #ruby
<MrPopinjay> I'm looking at 'curses', formerly of the stdlib, and ncursesw
momigi has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
ziro` has quit [Quit: ziro`]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
nari has joined #ruby
richardc_ has joined #ruby
itamaryu has quit [Quit: Connection closed for inactivity]
camilasan has quit [Read error: Connection reset by peer]
ziro` has joined #ruby
richardc has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
ndrei has joined #ruby
<certainty> daxroc1: hmm, i wonder why
camilasan has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
camilasan has joined #ruby
ziro` has quit [Client Quit]
francisfish has joined #ruby
danshultz has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
thomasxie has joined #ruby
JViz has quit [Ping timeout: 252 seconds]
Guedes has joined #ruby
Zespre has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
seggy has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
NovapaX has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
razrunelord has quit [Ping timeout: 244 seconds]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
segmond has quit [Ping timeout: 252 seconds]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
mojjojo has quit [Client Quit]
thomasxie has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
kennym has quit [Quit: Leaving.]
thomasxie has joined #ruby
camilasan has joined #ruby
mojjojo has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
thomasxie has quit [Remote host closed the connection]
camilasa_ has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
camilasan has joined #ruby
nhhagen has joined #ruby
jmeeuwen has quit [Ping timeout: 240 seconds]
jxf has quit [Ping timeout: 244 seconds]
camilasan has quit [Read error: Connection reset by peer]
IceDragon has quit [Quit: Space~~~]
camilasa_ has joined #ruby
IceDragon has joined #ruby
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
ZoanthusR has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
NalloK1 has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
NalloK1 has quit [Max SendQ exceeded]
camilasan has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
NalloK has quit [Ping timeout: 265 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<shevy> test
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
NalloK has joined #ruby
davedev24 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
NalloK has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
larsam has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
jmeeuwen has joined #ruby
yubrew has joined #ruby
camilasan has joined #ruby
yasushi has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
kaldrenon has joined #ruby
rippa has joined #ruby
Emmanuel_Chanel has joined #ruby
marcgg_ has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
IceyEC has joined #ruby
mojjojo has quit [Quit: mojjojo]
jxf has joined #ruby
klaut_ has quit [Remote host closed the connection]
marcgg has quit [Ping timeout: 240 seconds]
cloud|nix has joined #ruby
aagdbl has quit [Quit: Leaving.]
evenix has joined #ruby
cloud|nix has quit [Client Quit]
sepp2k has joined #ruby
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
LekeFly has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
MrPopinjay has left #ruby ["WeeChat 0.4.3"]
shredding has joined #ruby
<shevy> TEST
<The_NetZ> shevy: fail
Hanmac1 has joined #ruby
hiyosi has joined #ruby
<shevy> The_NetZ hey now I know I am still connected :)
gaussblurinc has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<certainty> shevy: no you aren't. This is just a dream. You're still at home, 3 hours till work
tonyhb has joined #ruby
chipotle_ has quit [Quit: cya]
sk87 has joined #ruby
Zespre has quit [Quit: leaving]
fgo has quit [Remote host closed the connection]
prc has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby
NalloK has joined #ruby
aagdbl has joined #ruby
NalloK has quit [Max SendQ exceeded]
hiyosi has quit [Ping timeout: 240 seconds]
joelroa has joined #ruby
<shevy> certainty now you have depressed me
<The_NetZ> he pushed you down? o.0
Salve has joined #ruby
jamto11 has joined #ruby
nvrch has joined #ruby
Speed has quit [Ping timeout: 244 seconds]
mojjojo has joined #ruby
mansi_ has joined #ruby
<certainty> shevy: i didn't mean to. But since you now know that you're dreaming, you still have 3 hours to do the most interesting stuff like flying around, walking up walls etc.
joelroa has quit [Ping timeout: 240 seconds]
<shevy> The_NetZ let's cut his balls off
<certainty> who said I had balls?
<shevy> ur mom!
mourest has quit [Ping timeout: 240 seconds]
<certainty> shevy: why would she know?
JohnBat26 has quit [Ping timeout: 265 seconds]
Salve has quit [Ping timeout: 240 seconds]
Jdubs has joined #ruby
mansi_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mansi_ has joined #ruby
NalloK has joined #ruby
<shevy> certainty she found the pics
mark_locklear has joined #ruby
<certainty> shevy: yeah, but she got those from your mum
NalloK has quit [Max SendQ exceeded]
banek_ has quit [Quit: Leaving...]
Speed has joined #ruby
phansch has quit [Ping timeout: 240 seconds]
meatherly has joined #ruby
Jdubs has quit [Ping timeout: 265 seconds]
mansi_ has quit [Ping timeout: 265 seconds]
momigi has joined #ruby
jxf has quit [Ping timeout: 244 seconds]
kennym has joined #ruby
randomnick has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
randomnick_ has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
momigi has quit [Ping timeout: 252 seconds]
Guest55728 is now known as sirecote
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
amundj has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
NalloK has joined #ruby
meatherly has joined #ruby
NalloK has quit [Max SendQ exceeded]
zegerjan has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
razrunelord has joined #ruby
chipotle has joined #ruby
mojjojo has quit [Quit: mojjojo]
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
yacks has quit [Quit: Leaving]
Guest39656 has quit [Changing host]
Guest39656 has joined #ruby
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
shime has joined #ruby
nhhagen has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 0.4.3]
phansch has joined #ruby
_maes_ has quit [Ping timeout: 244 seconds]
bthesorceror has joined #ruby
NalloK has joined #ruby
linojon has joined #ruby
LekeFly_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
NalloK has quit [Max SendQ exceeded]
momomomomo has joined #ruby
zorak has joined #ruby
rmorello has joined #ruby
gaussblurinc has joined #ruby
richardc_ has quit [Read error: Connection reset by peer]
mojjojo has joined #ruby
dblessing has joined #ruby
stringoO has joined #ruby
richardc has joined #ruby
LekeFly has quit [Ping timeout: 240 seconds]
ffranz has joined #ruby
blaxter has quit [Quit: foo]
LekeFly_ has quit [Client Quit]
mourest has joined #ruby
danman has joined #ruby
Salve has joined #ruby
relix has joined #ruby
agjacome has quit [Quit: leaving]
NalloK has joined #ruby
yubrew has joined #ruby
NalloK has quit [Max SendQ exceeded]
lolmaus has quit [Ping timeout: 264 seconds]
forced_request has joined #ruby
twiceaday has quit [Ping timeout: 264 seconds]
twiceaday has joined #ruby
lolmaus has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
tylershipe has joined #ruby
tylershipe has quit [Remote host closed the connection]
tylershipe has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
shevy has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
roolo has quit [Quit: Leaving...]
gregf has joined #ruby
<zorak> can i have a method that use only if, without elsif or else?
<zorak> or the methot will dont work with only if?
<certainty> zorak: sure it can
<zorak> but dont go do to nothing if the if stantment is false
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
<certainty> zorak: yes in that case the method will return nil (if nothing follows your if)
<certainty> >> def foo(val); if val; "yes" end end; [foo(true),foo(false)]
<eval-in> certainty => ["yes", nil] (https://eval.in/115490)
blackmesa has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
roolo has joined #ruby
16WAA05NL has joined #ruby
BackEndCoder has joined #ruby
Thanatermesis has joined #ruby
16WAA05NL has quit [Client Quit]
Azulinho has joined #ruby
randomnick has quit [Ping timeout: 264 seconds]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aagdbl has quit [Quit: Leaving.]
jsilver has quit [Read error: Connection reset by peer]
jsilver has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
m__s has quit [Quit: Leaving]
treehau55 has joined #ruby
krz has joined #ruby
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
ahawkins has joined #ruby
kendhia has joined #ruby
cjsarette has joined #ruby
treehau55 has left #ruby [#ruby]
makara has quit [Ping timeout: 244 seconds]
yacks has joined #ruby
razrunelord has quit [Ping timeout: 264 seconds]
eka has joined #ruby
hiyosi has joined #ruby
CorySimmons has joined #ruby
Fyyr13__ has quit [Remote host closed the connection]
Fyyr13_ has joined #ruby
Xeago_ has joined #ruby
tylershi_ has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ has joined #ruby
xibalba has joined #ruby
dik_dak has joined #ruby
ecualombian has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
jetblack has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 240 seconds]
23LAAI9A0 has quit [Ping timeout: 240 seconds]
lw has joined #ruby
hiyosi has quit [Ping timeout: 265 seconds]
gaussblurinc has joined #ruby
mlpinit has joined #ruby
craigp has joined #ruby
joelroa has joined #ruby
tylershipe has quit [Ping timeout: 265 seconds]
sailias has joined #ruby
<ecualombian> hello all, I'm new to irc/ruby/rails all of the above. is it cool to just throw out questions?
<xibalba> absolutely. if you're going to paste alot of code, use the gist link in the topic
<ecualombian> thanks xibalba
<mostlybadfly> Welcome ecualombian
<mostlybadfly> I'm new as well and have been asking questions. Everyone is very helpful
hiyosi has joined #ruby
zeeraw has joined #ruby
<ecualombian> so I guess my question is regarding some questions regarding ruby code in html.erb files vs. accessing ruby functions in a helper ruby file in a rails app...
joelroa has quit [Ping timeout: 240 seconds]
jxf has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
gaussblurinc has joined #ruby
dev___ has joined #ruby
<certainty> ecualombian: also note that there is #RubyOnRails where you find people that are more into Rails. There is of course an intersection between the people there and here
phantomtiger has joined #ruby
kendhia has quit [Ping timeout: 252 seconds]
monzie has joined #ruby
<monzie> Hello everyone.
<ecualombian> currently I wrote a ruby function in the html.erb file and I'm trying to "move it" to a helper file to separate the bulk of ruby code out of the view and into the helper
<ecualombian> thanks for the note certainty
monzie has quit [Client Quit]
Guest95752 has quit [Quit: leaving]
<ecualombian> at the moment I believe no one is in the rubyonrails forum, but I'll keep that in mind
<ecualombian> thanks.
gwb3 has joined #ruby
monzie has joined #ruby
pu22l3r has joined #ruby
<ecualombian> The thing is, when I try moving the code, I'm unsure how I can render html from those helpers back onto the root html.erb file
sambao21 has joined #ruby
dev___ has quit [Client Quit]
vpretzel_ is now known as vpretzel
<certainty> ecualombian: #rubyonrails is currently active. Your helpers need to return the fragments
<kayloos> ecualombian: HTML should stay in the .html.erb file, only the data should come from any helpers/controllers
NalloK has joined #ruby
jackneill has quit [Quit: WeeChat 0.4.3]
kendhia has joined #ruby
NalloK has quit [Max SendQ exceeded]
<ecualombian> hmm
<certainty> kayloos: tell that to rails builtin helpers ;) but i generally agree
griffindy has quit [Quit: Computer has gone to sleep.]
jxf has quit [Ping timeout: 264 seconds]
dev___ has joined #ruby
kendhia has quit [Client Quit]
<certainty> ecualombian: what's the specific problem you're struggling with?
<kayloos> ecualombian: try to explain what you want to do more precisely
meatherly has joined #ruby
<ecualombian> ok.
jackneill has joined #ruby
<ecualombian> well, I'm currently working on generating a nested comments system
meatherly has quit [Client Quit]
dev___ has quit [Client Quit]
dev___ has joined #ruby
<ecualombian> A document that is uploaded is parsed by paragraph and rendered on the html page
Xiti has joined #ruby
<ecualombian> each paragraph or Section has comments associated with it.
kotakotakota has joined #ruby
mansi_ has joined #ruby
<ecualombian> I'm working on the rendering comment html.erb page
strider24 has joined #ruby
<certainty> sounds more like job for a partial until now
craigp has quit [Remote host closed the connection]
<ecualombian> so I am using a partial to first
<ecualombian> check each section, render its text, then inside this partial, I call another for comments, sending in the list of "parent" comments
NalloK has joined #ruby
meatherly has joined #ruby
NalloK has quit [Max SendQ exceeded]
ahawkins has quit [Read error: Operation timed out]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jespada has joined #ruby
mehlah has quit [Quit: Leaving...]
senayar_ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
<ecualombian> from the comment partial, I have written the function I mentioned prior which renders each current comment and recursively calls itself until all comments are rendered and indented plus some indenting depending on how deep
sdouglas has joined #ruby
aryaching has joined #ruby
mansi_ has quit [Ping timeout: 265 seconds]
zorak has quit [Ping timeout: 240 seconds]
<ecualombian> am I being clear?
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
<certainty> ecualombian: the question is missing :)
ScalaClient has quit [Ping timeout: 240 seconds]
craigp has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
mansi_ has joined #ruby
predator117 has quit [Quit: leaving]
predator117 has joined #ruby
<ecualombian> certainty: ha ha thanks. I guess the question is I have lines in each comment where I use the <%= tag to print perhaps a user name associated with the comment or other such attribute. My question is how can I put this in the helper function?, or can I?
larissa has quit [Quit: Leaving]
sdouglas has quit [Ping timeout: 240 seconds]
Zespre has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
<kayloos> ecualombian: I can either help you do things the standard way, or help you dive into the rabbit hole with this recursive function. What do you want?
tonyhb has quit [Quit: peace]
roroflores has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
<ecualombian> kayloos: the standard way might be best first
sambao21 has quit [Quit: Computer has gone to sleep.]
<ecualombian> kayloos: thanks
mansi_ has quit [Remote host closed the connection]
<kayloos> ecualombian: Ok, so it's not normal to have a recursive function within your views. Instead you should do @comments.each do |comment| etc.
mansi_ has joined #ruby
<kayloos> If you have the same view logic all over the place, the way to organize it is to put it into a partial, or a view with a filename that starts with '_', and then render that each place you want it
mansi_ has quit [Read error: Connection reset by peer]
Mongey has quit [Quit: Mongey]
duggiefresh has joined #ruby
mansi_ has joined #ruby
sambao21 has joined #ruby
yubrew has joined #ruby
Mongey has joined #ruby
<ecualombian> kayloos: so actually, I use the .each to recurse...hmm....the reason I didn't use each is because each comment has a parent_id and there was no clear way I could think of to render a thread, and I did not want to have to add a thread attribute or something like that
reppard has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<certainty> you can however use that partial recursively by passing in the current comments as a local along with the nesting
kotakotakota has quit [Quit: Leaving]
<reppard> hello
craigp has joined #ruby
reppard has quit [Client Quit]
<kayloos> ecualombian: So which is rendered first? Is it Parent > Child > Grandchild or Granchild > Child > Parent
arefaslani has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<ecualombian> kayloos: starts with parent because it is the one most easily renderable
<ecualombian> because I could easily select parent_id == 0
<ecualombian> if that makes sense
itadder has joined #ruby
jeregrine has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
monzie has quit [Remote host closed the connection]
jxf has joined #ruby
mehlah has joined #ruby
<kayloos> ecualombian: So call .each first on all the parents, and then call it on each set of children. IE: @parents.each {|p| p.children.each {|c| puts c.title } }
enebo has joined #ruby
strider24 has quit [Ping timeout: 265 seconds]
sdouglas has quit [Remote host closed the connection]
<certainty> that way you have to know the level of nesting upfront
<kayloos> true
<certainty> probably not what he wants
<certainty> i'm only guessing though
<kayloos> ecualombian: do you want infinite nesting?
Guest5358 has quit [Quit: Leaving]
hamakn has quit [Remote host closed the connection]
yasushi has joined #ruby
jobewan has joined #ruby
<ecualombian> kayloos: actually currently the loop in the partial has a depth parameter so I can change what's rendered
Speed has quit [Ping timeout: 244 seconds]
<ecualombian> that is how much is rendered
jefflyne_ has quit [Ping timeout: 264 seconds]
jonno11 has joined #ruby
zorak has joined #ruby
aryaching has quit []
<ecualombian> kayloos: I don't think .children is defined for each parent object
aryaching has joined #ruby
AlexRussia has joined #ruby
<ecualombian> parents currently are ONLY identified by the parent_id
NalloK has joined #ruby
Speed has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
failshell has joined #ruby
NalloK has quit [Max SendQ exceeded]
Guest39656 is now known as digifiv5e_
<ecualombian> kayloos: maybe I'm already doing what you ask. to recurse I called .where(:parent_id => root.id).each root being the current comment or parent
zachallett has joined #ruby
ahawkins has joined #ruby
arefaslani has quit [Read error: Connection reset by peer]
<kayloos> ecualombian: Yes, that relationship is called a has-many relationship, since multiple children can have the same parent.
jefflyne has joined #ruby
<kayloos> ecualombian: Yes, exactly
sparrovv has joined #ruby
mojjojo has quit [Quit: mojjojo]
<certainty> i'd probably have a partial _comment.htm.erb with something like this: <h1>comment.title</h1> <%= render comment.children if comment.has_children? %> initially invoking it with just <%= render @comments %> of course... obviously you'd display more than just the title, as this is just an example. Also i'm assuming that #children returns a collection of comments that are all children of the receiver.
<ecualombian> kayloos: so if it hasn't been clear, I've got nesting to work, I'm mostly trying to figure out how to move the ruby logic out of the html.erb into a ruby file, but maybe the "logic" of the loop which essentially is just rendering those attributes using that .where recursive call to each child but there is also indent logic
<certainty> you can pass in the level of nesting as via locals if you wish and don't recurse further if a given level has been reached
Kilo`byte has quit [Read error: Operation timed out]
jxf has joined #ruby
carif has joined #ruby
<certainty> woops of course that was supposed to read <h1><%= comment.title %></h1>
carraroj has quit [Ping timeout: 265 seconds]
<ecualombian> certainty: I don't think I have access to .children as parent is not a model class. no active record association involved. everything is a comment.
njection has quit [Ping timeout: 265 seconds]
<toretore> instance_eval & closures
<toretore> don't you just love metaprogramming
carraroj has joined #ruby
Kilo`byte has joined #ruby
<workmad3> toretore: yup... but I don't love people doing shit with metaprogramming that doesn't need it :)
<certainty> ecualombian: doesn't matter if it's activerecord or not. Your comment should be an object that follows a sensible tree-like api
razrunelord has joined #ruby
<toretore> workmad3: someone in this case being me :P
Asher has joined #ruby
<certainty> which reduces to workmad3 doesn't love toretore
<kayloos> ecualombian: hold on for a min
<workmad3> certainty: :D
<workmad3> certainty: fair assessment ;)
<certainty> <- inference engine
<ecualombian> kayloos: sure
<certainty> with certainty factors
<workmad3> certainty: woo! you're now almost as useful as prolog...
<certainty> yes.
zorak has quit [Read error: Connection reset by peer]
<toretore> but it's so pretty when it's done
freerobby has joined #ruby
<toretore> nevermind weird bugs
aspiers_ has joined #ruby
mojjojo has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
<certainty> closures are poor man's objects
* certainty hides
aspiers has quit [Ping timeout: 240 seconds]
shevy has quit [Remote host closed the connection]
camilasa_ has quit [Remote host closed the connection]
<certainty> or was it the other way around? :D
camilasan has joined #ruby
tjr9898 has quit []
camilasan has quit [Read error: Connection reset by peer]
<toretore> they're useful, but it's shared state
camilasan has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Quit: leaving]
griffindy has joined #ruby
<certainty> yes it is so you better play nice
camilasan has quit [Read error: Connection reset by peer]
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
<certainty> nicely?
camilasan has joined #ruby
<toretore> like don't reassign shared variables
<toretore> which i did
thomasxie has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
jtza8 has joined #ruby
camilasan has joined #ruby
<kayloos> ecualombian: Take a look at the answer in this question: http://stackoverflow.com/questions/4308787/using-rails-polymorphism-for-nested-comments
<kayloos> ecualombian: Pulling out your looping logic that is contaminated with html/erb into a ruby file is a bad idea. You should use partials, like certainty suggested
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<kayloos> ecualombian: Plus even if you did pull it out, you would have to find some way of rendering it properly, which is kinda troublesome
camilasan has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
yubrew has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<kayloos> ecualombian: The infinitely nested comment problem is quite common, so there will be a lot of resources on the net
<ecualombian> kayloos: thanks for the link, I'm gonna spend some time looking at this
joelroa has joined #ruby
felixflores has joined #ruby
<ecualombian> kayloos: I had looked at a bunch of different strands on nesting comments, but I don't think this one on stackoverflow had popped up
timonv has quit [Remote host closed the connection]
camilasa_ has joined #ruby
momigi has joined #ruby
xerox357 has joined #ruby
<kayloos> ecualombian: no problem. I think coming up with your own approach is awesome, but in terms of using a framework it can often be quite painful.
Bumptiou_ has quit []
camilas__ has joined #ruby
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
<ecualombian> certainty: thanks for the suggestions with partials, I'll look to see if I actually do have access to .children as you suggest. That would make it much easier than I'm doing I think. Since the html.erb file I'm in is a "2nd layer" partial already, maybe yet another partial will make it feel less like I need to refactor
jjbohn has joined #ruby
<certainty> ecualombian: note that you don't need polymorphism unless you want many things to be commentable on. The basic idea there is to use an appropriate representation of a tree inside a relational database
<certainty> there == the SO page linked
camila___ has joined #ruby
bbloom has joined #ruby
<certainty> some for of nested set is most prominent. At least it was a while back
speakingcode has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 240 seconds]
<certainty> personally i'd go with recursive CTEs in postgres, but that may not be an option
camil____ has joined #ruby
yacks has quit [Ping timeout: 265 seconds]
cami_____ has joined #ruby
joelroa has quit [Read error: Operation timed out]
<ecualombian> thanks again yall. I've got some looking at code to do
camilasan has quit [Ping timeout: 264 seconds]
<certainty> have fun
<certainty> also remember to instance_eval some closures
camilasan has joined #ruby
camilasa_ has quit [Ping timeout: 264 seconds]
snath has quit [Ping timeout: 264 seconds]
Jdubs has joined #ruby
camilas__ has quit [Ping timeout: 264 seconds]
bluenemo has quit [Remote host closed the connection]
<ecualombian> certainty: I honestly don't know what "instance_eval some closures" means
camila___ has quit [Ping timeout: 264 seconds]
peterellisjones has joined #ruby
RaCx has joined #ruby
sigurding has joined #ruby
benzrf has joined #ruby
<benzrf> yosafbridge:
<benzrf> *yo
<benzrf> i wrote a super basic actors thingy how does it look http://bpaste.net/show/186145
ankushio has joined #ruby
camil____ has quit [Ping timeout: 264 seconds]
<benzrf> oh wait let me move that to gist and spaceify ItSANgo
<benzrf> *it
tylersmith has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
cami_____ has quit [Ping timeout: 264 seconds]
Jdubs has quit [Ping timeout: 240 seconds]
phansch has joined #ruby
<benzrf> ankushio: ?
crantron has joined #ruby
greenrose has quit []
yacks has joined #ruby
<ankushio> It's a cheatsheet for ruby/gem version management
timonv has joined #ruby
sdouglas has joined #ruby
sski has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
sski has joined #ruby
philcrissman has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Guest31737 is now known as bodie_
browndawg has quit [Quit: Leaving.]
pu22l3r has joined #ruby
razrunelord has quit [Remote host closed the connection]
razrunelord has joined #ruby
rudisimo has joined #ruby
fridim__ has joined #ruby
xerox357 has quit [Remote host closed the connection]
DaniG2k has joined #ruby
mengu has quit [Remote host closed the connection]
xerox357 has joined #ruby
sski has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
arubincloud has joined #ruby
sdouglas has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 252 seconds]
richardc has quit [Remote host closed the connection]
lmickh has joined #ruby
peterellisjones has quit [Quit: Leaving.]
einarj has quit [Remote host closed the connection]
mary5030 has joined #ruby
b00stfr3ak has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
richardc has joined #ruby
kukyakya has joined #ruby
JasmeetQA has joined #ruby
duggiefresh has quit [Remote host closed the connection]
sdouglas_ has joined #ruby
niftyn8 has joined #ruby
peterellisjones has joined #ruby
ndrei has joined #ruby
lw has quit [Quit: s]
NalloK has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
NalloK has quit [Max SendQ exceeded]
sigurding has quit [Ping timeout: 240 seconds]
richardc has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
Advocation has joined #ruby
razrunelord has quit [Read error: Connection reset by peer]
tobago has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
ikawnoclast has joined #ruby
lolmaus has joined #ruby
hamakn has joined #ruby
yasushi has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
Bira has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
camilasan has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
camilasan has joined #ruby
seggy is now known as segmond
camilasan has quit [Read error: Connection reset by peer]
maasha has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
razrunelord has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 244 seconds]
camilasan has joined #ruby
SCommette has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
craigp has quit [Remote host closed the connection]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
Symbiosisz2 has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
SCommette has quit [Client Quit]
camilasan has joined #ruby
akira1 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sdouglas_ has quit [Remote host closed the connection]
camilasan has joined #ruby
SCommette has joined #ruby
akira1 has left #ruby ["WeeChat 0.4.3"]
Mongey has quit [Read error: Connection reset by peer]
thesheff17_ has quit [Quit: Leaving]
camilas__ has joined #ruby
bry4n_ has joined #ruby
bricker`1A has joined #ruby
camila___ has joined #ruby
klaut_ has joined #ruby
larissa has joined #ruby
rdark_ has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
camil____ has joined #ruby
cami_____ has joined #ruby
camilasa_ has quit [Ping timeout: 264 seconds]
Symbiosisz2 has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
camilasa_ has joined #ruby
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
camilas__ has quit [Ping timeout: 264 seconds]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sungai_keruh has joined #ruby
browndawg has joined #ruby
camila___ has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camil____ has quit [Ping timeout: 264 seconds]
cami_____ has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
craigp has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
ndrei_ has joined #ruby
mikepack has joined #ruby
artm has quit [Quit: Ex-Chat]
shredding_ has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
TheLarkInn1 has joined #ruby
vt102 has quit [Excess Flood]
razrunel_ has joined #ruby
zaargy_ has joined #ruby
uxp_ has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
gaussblurinc has joined #ruby
TheLarkInn has quit [Quit: Leaving.]
renderful has quit [Remote host closed the connection]
RaCx has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
vt102 has joined #ruby
francisfish has quit [Remote host closed the connection]
razrunelord has quit [Ping timeout: 240 seconds]
benzrf_ has joined #ruby
redlines has quit [Ping timeout: 264 seconds]
benzrf_ has left #ruby [#ruby]
ixx has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
_maes_ has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
jrhe has joined #ruby
roolo has quit [Excess Flood]
mehlah has quit [Excess Flood]
jobewan has quit [Excess Flood]
chipotle has quit [Quit: cya]
three18ti has quit [Excess Flood]
mehlah has joined #ruby
lw has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
lxsameer has quit [Excess Flood]
nateberkopec has quit [Excess Flood]
stephenmac7 has quit [Excess Flood]
ringaroses has quit [Write error: Connection timed out]
shredding has quit [Write error: Connection reset by peer]
Guest95116 has quit [Write error: Broken pipe]
bricker`LA has quit [Write error: Broken pipe]
benzrf has quit [Write error: Broken pipe]
ndrei has quit [Write error: Broken pipe]
zaargy has quit [Write error: Broken pipe]
JJMalina has joined #ruby
sameerynho has joined #ruby
shredding_ is now known as shredding
rdark has quit [Remote host closed the connection]
uxp has quit [Remote host closed the connection]
17SAAPYIH has quit [Ping timeout: 1304 seconds]
wlanboy has quit [Ping timeout: 1304 seconds]
camt has quit [Remote host closed the connection]
gaussblurinc has quit [Quit: Leaving.]
grzywacz has quit [Quit: :wq]
three18ti has joined #ruby
wlanboy_ has joined #ruby
jds has joined #ruby
ixx is now known as Guest97036
crystal77 has quit [Quit: Computer has gone to sleep.]
redlines has joined #ruby
stephenmac7 has joined #ruby
ankushio has left #ruby ["Leaving..."]
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
Macaveli has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Zzz...]
pu22l3r has joined #ruby
mikepack has joined #ruby
crantron has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
lw has quit [Quit: s]
achru has joined #ruby
camt has joined #ruby
msmith has joined #ruby
sparrovv has quit [Remote host closed the connection]
zegerjan has quit [Ping timeout: 240 seconds]
joelroa has joined #ruby
Mongey has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
Sirupsen has joined #ruby
mikepack has joined #ruby
Macaveli has quit [Quit: Leaving]
craigp has joined #ruby
sk87 has joined #ruby
razrunel_ has quit [Remote host closed the connection]
sameerynho has quit [Quit: Leaving]
joelroa has quit [Ping timeout: 240 seconds]
CreativeEmbassy has joined #ruby
sparrovv has joined #ruby
<nvll> Would you prefer to use single quotes or double quotes?
yacks has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
thumpba has joined #ruby
CorySimmons has joined #ruby
apeiros has quit [Remote host closed the connection]
_bart has quit [Remote host closed the connection]
paulfm has joined #ruby
apeiros has joined #ruby
Lewix has joined #ruby
mando has joined #ruby
claymore_ has quit [Ping timeout: 240 seconds]
snath has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
Fyyr13_ has quit [Remote host closed the connection]
tvw has quit []
cephalostrum has quit [Max SendQ exceeded]
ahawkins has quit [Remote host closed the connection]
cephalostrum has joined #ruby
geggam has joined #ruby
claymore_ has joined #ruby
ndrei_ has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
NalloK has joined #ruby
Speed has quit [Ping timeout: 265 seconds]
NalloK has quit [Max SendQ exceeded]
soulcake has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
Azure has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
deadlock has joined #ruby
soulcake has joined #ruby
sourab has joined #ruby
<sourab> Hello
diegoviola has joined #ruby
Ziarkaen has joined #ruby
<Jamo_> Howdy
<nvll> Do you use double quotes for strings without interpolation?
nomenkun has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
jjbohn has quit [Quit: Leaving...]
ripperGreen has joined #ruby
claymore_ has quit [Ping timeout: 240 seconds]
nvrch has quit [Quit: nvrch]
Jdubs has joined #ruby
tjr9898 has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.2]
jxf has joined #ruby
jjbohn has joined #ruby
Guedes has left #ruby ["Saindo"]
lutfidemirci has quit [Remote host closed the connection]
lutfidemirci has joined #ruby
geekbri has joined #ruby
Xeago has quit [Remote host closed the connection]
koell has quit [Read error: Connection reset by peer]
Azulinho has quit [Ping timeout: 244 seconds]
claymore_ has joined #ruby
claymore_ has quit [Changing host]
claymore_ has joined #ruby
rbartos has joined #ruby
<elaptics> nvll: yes
tjr9898 has joined #ruby
mikepack has quit [Remote host closed the connection]
achru has quit [Remote host closed the connection]
<elaptics> nvll: always double quotes
gilcosson has joined #ruby
<elaptics> nvll: there's less incidental changes from a version control perspective then if you later decide you need to interpolate
mikepack has joined #ruby
<elaptics> since there's basically no performance difference
_bart has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
chrisramon has joined #ruby
Jdubs has quit [Ping timeout: 252 seconds]
<olivier_bK> how can i check the syntax of given date ?
<elaptics> olivier_bK: check how?
<elaptics> olivier_bK: if you know the expected format you can use #strptime and check that it can parse it to a date
ndrei has joined #ruby
<olivier_bK> like that d = date.strftime(%y-%m-%d)
thumpba has quit [Remote host closed the connection]
<elaptics> olivier_bK: no, strptime
mikepack has quit [Ping timeout: 240 seconds]
dkamioka_ has joined #ruby
ripperGreen has quit []
<elaptics> olivier_bK: e.g. Date.strptime('2001-02-03', '%Y-%m-%d')
jespada has quit [Quit: Leaving]
JJMalina has quit [Quit: Linkinus - http://linkinus.com]
nateberkopec has joined #ruby
Celm has joined #ruby
<elaptics> olivier_bK: if you give it an invalid date, it'll raise an exception
blackmesa has joined #ruby
jamto11 has joined #ruby
francisfish has joined #ruby
mven has joined #ruby
dkamioka has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<olivier_bK> ok i found how
ckrailo_ is now known as ckrailo
ckrailo has left #ruby [#ruby]
tylersmith has quit [Remote host closed the connection]
<olivier_bK> do you have an idea how i can remove T...
<olivier_bK> 1.9.2-p320 :387 > valid_date? date
<olivier_bK> 2011-02-02T00:00:00+00:00
Squarepy has joined #ruby
Mongey has quit [Quit: Mongey]
jamto11 has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 264 seconds]
Celm has quit [Remote host closed the connection]
tylershi_ has quit [Remote host closed the connection]
tylershipe has joined #ruby
<elaptics> olivier_bK: what are you trying to do?
<olivier_bK> the user give a date like that 2011-02-03
kerframil has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
NalloK has joined #ruby
<olivier_bK> i want to check if the date correspond to %y-%d-%m
<olivier_bK> and i print it
<olivier_bK> but when i do that i get T00:00:00+00:00
NalloK has quit [Max SendQ exceeded]
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
geopet has joined #ruby
pfg has joined #ruby
banister has joined #ruby
tylershipe has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
kevind has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
Speed has joined #ruby
mmochan has quit [Quit: Connection closed for inactivity]
sourab has quit []
zcreative has joined #ruby
Alina-malina has quit [Quit: Leaving to RealWorld]
zorak has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
crystal77 has joined #ruby
chrisramon has quit [Quit: chrisramon]
senj has joined #ruby
gigetoo has quit [Remote host closed the connection]
sungai_keruh has quit [Quit: Leaving]
razrunelord has quit [Ping timeout: 241 seconds]
dkamioka_ has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
gigetoo has joined #ruby
mary5030_ has joined #ruby
smathieu has quit [Ping timeout: 244 seconds]
mary5030 has quit [Ping timeout: 269 seconds]
mary5030_ has quit [Remote host closed the connection]
Waheedi has joined #ruby
dkamioka has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
mary5030 has joined #ruby
thumpba has joined #ruby
Foo3 has joined #ruby
vlad_starkov has joined #ruby
sputnik13 has quit [Quit: Textual IRC Client: www.textualapp.com]
Macaveli has joined #ruby
xerox357_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Senjai`work has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Senjai`work is now known as Senjai
baroquebobcat has joined #ruby
mansi_ has quit [Remote host closed the connection]
davidcollom is now known as davidcollom_zzz
wallerdev has joined #ruby
mansi has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
fraterlaetus has joined #ruby
pietr0 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
zB0hs has joined #ruby
randomnick_ has joined #ruby
xerox357 has quit [Ping timeout: 265 seconds]
mansi has joined #ruby
txdv has quit [Read error: Connection reset by peer]
xerox357_ has quit [Ping timeout: 240 seconds]
txdv has joined #ruby
camilasa_ has quit []
francisfish has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
S0da has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 240 seconds]
daxroc1 has quit [Quit: Leaving.]
yasushi has quit [Remote host closed the connection]
aspires has joined #ruby
yasushi has joined #ruby
TMM has quit [Quit: Ex-Chat]
Waheedi has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
mikepack has joined #ruby
Waheedi has joined #ruby
yasushi has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
aspires has quit [Client Quit]
shevy has joined #ruby
nisstyre has quit [Read error: Operation timed out]
GaryOak_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
aspires has joined #ruby
timonv has quit [Remote host closed the connection]
alexju has joined #ruby
zB0hs has quit [Quit: Textual IRC Client: www.textualapp.com]
banister has joined #ruby
Symbiosisz2 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
wallerdev has quit [Quit: wallerdev]
bradhe has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
sk87 has joined #ruby
Xeago has quit [Remote host closed the connection]
sambao21 has joined #ruby
lw has joined #ruby
axsuul has joined #ruby
joelroa has joined #ruby
maletor has joined #ruby
ineb has joined #ruby
Hobogrammer_ has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
sparrovv has quit [Remote host closed the connection]
Voodoofish4301 has joined #ruby
peterellisjones has quit [Quit: Leaving.]
peterellisjones has joined #ruby
peterellisjones has quit [Client Quit]
NalloK has joined #ruby
NalloK has quit [Max SendQ exceeded]
Celm has joined #ruby
craigp has joined #ruby
thumpba has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 240 seconds]
_bart has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
thumpba has joined #ruby
thumpba_ has quit [Read error: Connection reset by peer]
thesheff17 has joined #ruby
thumpba_ has joined #ruby
pu22l3r has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
mark_locklear has quit [Ping timeout: 265 seconds]
Fyyr13_ has joined #ruby
tvw has joined #ruby
lutfidemirci has quit [Ping timeout: 264 seconds]
Macaveli has quit [Read error: Connection reset by peer]
klaut_ has quit [Remote host closed the connection]
jherbst has joined #ruby
shaunbaker has quit [Remote host closed the connection]
rootshift has joined #ruby
nisstyre has joined #ruby
CorySimmons has quit [Quit: Zzz...]
kcombs has joined #ruby
GaryOak_ has left #ruby ["Leaving..."]
GaryOak_ has joined #ruby
guilleiguaran has joined #ruby
Fyyr13_ has quit [Ping timeout: 240 seconds]
randomnick_ has quit [Ping timeout: 265 seconds]
NalloK has joined #ruby
RaCx has joined #ruby
fraterlaetus has quit [Ping timeout: 240 seconds]
NalloK has quit [Max SendQ exceeded]
xerox357 has joined #ruby
thumpba has quit [Remote host closed the connection]
fraterlaetus has joined #ruby
lutfidemirci has joined #ruby
kevind_ has joined #ruby
phansch has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
RaCx_ has joined #ruby
CaptainJet has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
RaCx_ is now known as RaCx
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
ndrei has quit [Read error: Operation timed out]
Fyyr13_ has joined #ruby
sputnik13 has joined #ruby
Hanmac1 has joined #ruby
hobodave has joined #ruby
razrunelord has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Ex-Chat]
bradhe has quit [Remote host closed the connection]
flowerhack has joined #ruby
koell has joined #ruby
Fyyr13_ has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
bricker`1A is now known as bricker`LA
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
strider24 has joined #ruby
horsecowdog has joined #ruby
dmyers has quit [Quit: dmyers]
lutfidemirci has quit [Remote host closed the connection]
timonv has joined #ruby
duggiefresh has joined #ruby
rudisimo has quit []
lutfidemirci has joined #ruby
kaliya has quit [Quit: Lost terminal]
yfeldblum has quit [Remote host closed the connection]
dkamioka has joined #ruby
vongrippen_ is now known as vongrippen
zachallett has quit [Remote host closed the connection]
lutfidemirci has quit [Remote host closed the connection]
horsecowdog has quit [Client Quit]
lutfidemirci has joined #ruby
tjr9898 has quit [Remote host closed the connection]
DrShoggoth has joined #ruby
dkamioka has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
sigurding has quit [Quit: sigurding]
duggiefresh has quit [Ping timeout: 265 seconds]
greenarrow has quit [Quit: 500]
andrewlio has quit [Quit: Leaving.]
mlpinit has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
Bira has quit [Remote host closed the connection]
Spami has joined #ruby
bradhe has joined #ruby
pu22l3r has quit [Remote host closed the connection]
mlpinit has joined #ruby
pu22l3r has joined #ruby
rbartos has quit [Remote host closed the connection]
pushpak has joined #ruby
LastWhisper_work has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
talntid has joined #ruby
thumpba has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_maes_ has joined #ruby
polydius has joined #ruby
deadlock has quit [Ping timeout: 252 seconds]
thumpba_ has quit [Ping timeout: 265 seconds]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
razrunel_ has joined #ruby
rdark_ has quit [Quit: leaving]
cescalante is now known as ce_afk
dkamioka_ has joined #ruby
Mon_Ouie has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
<talntid> Looking to hire a ruby developer who wants to work on an existing screen scraping/normalizing application. Message me if interested. Thanks :)\
endash has quit [Read error: Connection reset by peer]
mlpinit has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
mlpinit has joined #ruby
razrunelord has quit []
zcreative has joined #ruby
sethen has joined #ruby
mansi has quit [Remote host closed the connection]
felixflores has quit [Remote host closed the connection]
randomnick_ has joined #ruby
CorySimmons has joined #ruby
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
mansi has joined #ruby
felixflores has joined #ruby
endash has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Hobogrammer_ has quit [Ping timeout: 252 seconds]
rbartos has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
toastynerd has joined #ruby
itamaryu has joined #ruby
shime has quit [Ping timeout: 240 seconds]
razrunel_ has quit [Ping timeout: 265 seconds]
e4xit has quit [Quit: e4xit]
ecualombian has quit [Remote host closed the connection]
lw has quit [Quit: s]
Advocation has quit [Quit: Advocation]
mansi has quit [Read error: Connection reset by peer]
<itamaryu> Hi guys, do you have any ProTip how to find memory leak ?
<itamaryu> I'm using Ruby 1.9.3p0 + Rails 3.2.17 and my 13 ruby instances taking 1.9GB (!!) memory
felixflores has quit [Ping timeout: 244 seconds]
supermarin has joined #ruby
xerox357 has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
mansi has joined #ruby
crazysim has quit [Max SendQ exceeded]
xerox357 has joined #ruby
senayar has joined #ruby
crazysim has joined #ruby
e4xit has joined #ruby
klaut_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
felixflores has joined #ruby
smathieu has joined #ruby
Speed has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
zegerjan has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
tylersmith has joined #ruby
craigp has joined #ruby
Hanmac has joined #ruby
Advocation has joined #ruby
mansi has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
Vovko has quit [Remote host closed the connection]
Vovko has joined #ruby
sambao21 has joined #ruby
quatron has joined #ruby
ya has joined #ruby
xerox357 has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
jjbohn has quit [Quit: Leaving...]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
mjs2600 has joined #ruby
mikepack_ has joined #ruby
ya has quit [Client Quit]
Mon_Ouie has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
<jtza8> itamaryu: Sounds like it's probably C code in a gem you're using?
saarinen has joined #ruby
craigp has quit [Ping timeout: 264 seconds]
felixflores has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 244 seconds]
Lewix has quit []
felixflores has joined #ruby
Lewix has joined #ruby
Alina-malina has joined #ruby
<jtza8> itamaryu: You could try using valgrind.
<jtza8> (valgrind.org)
RaCx has joined #ruby
Jdubs has joined #ruby
lutfidem_ has joined #ruby
niftyn8 has quit [Ping timeout: 264 seconds]
NalloK has joined #ruby
mikepack_ has quit [Ping timeout: 244 seconds]
NalloK has quit [Max SendQ exceeded]
crystal77 has quit [Quit: Computer has gone to sleep.]
momigi has quit [Remote host closed the connection]
RaCx has quit [Client Quit]
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
RaCx has joined #ruby
felixflo_ has joined #ruby
felixflores has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
lutfidemirci has quit [Ping timeout: 244 seconds]
saarinen has quit [Quit: saarinen]
e4xit has quit [Read error: Connection reset by peer]
craigp has joined #ruby
e4xit has joined #ruby
momigi has joined #ruby
timonv has quit [Remote host closed the connection]
rbartos has quit [Remote host closed the connection]
RaCx has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
joelroa has joined #ruby
Speed has joined #ruby
cover has joined #ruby
cover has joined #ruby
tjr9898 has joined #ruby
jsilver has quit []
mjs2600 has quit [Remote host closed the connection]
cover has quit [Client Quit]
momigi has quit [Remote host closed the connection]
cover has joined #ruby
centrx has joined #ruby
smathieu has quit [Ping timeout: 264 seconds]
Advocation has quit [Quit: Advocation]
momomomomo has quit [Quit: momomomomo]
momigi has joined #ruby
CorySimmons has quit [Quit: Bye!]
Advocation has joined #ruby
ringaroses has joined #ruby
toastynerd has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
toastynerd has joined #ruby
rbartos has joined #ruby
freggles has joined #ruby
joelroa has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
manacit is now known as bogon
joelroa has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
mojjojo has joined #ruby
RaCx has joined #ruby
moted has quit [Quit: moted]
Xeago has joined #ruby
moted has joined #ruby
NalloK has joined #ruby
Saimey has joined #ruby
RaCx has quit [Client Quit]
mary5030 has quit [Ping timeout: 240 seconds]
realmen has joined #ruby
senj has quit [Quit: Sleep Now]
NalloK has quit [Max SendQ exceeded]
<realmen> hi
Alina-malina has quit [Read error: Connection reset by peer]
mansi has joined #ruby
mary5030 has joined #ruby
mansi has quit [Remote host closed the connection]
zachallett has joined #ruby
Fyyr13_ has joined #ruby
Alina-malina has joined #ruby
mansi has joined #ruby
yfeldblum has joined #ruby
razrunelord has joined #ruby
shadoi has joined #ruby
jragon has joined #ruby
crystal77 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cover has quit [Remote host closed the connection]
cina has joined #ruby
rootshift has joined #ruby
zz_jrhorn424 is now known as jrhorn424
jbueza has joined #ruby
Fyyr13_ has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
cina has quit [Client Quit]
aaronmcadam has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 244 seconds]
cina has joined #ruby
cina has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
cina has joined #ruby
cina has quit [Client Quit]
cina has joined #ruby
cina has quit [Client Quit]
cina has joined #ruby
cina has quit [Client Quit]
hiyosi has quit [Ping timeout: 244 seconds]
SCommette_ has joined #ruby
lutfidem_ has quit [Remote host closed the connection]
NalloK has joined #ruby
lutfidemirci has joined #ruby
NalloK has quit [Max SendQ exceeded]
mjs2600 has joined #ruby
cina has joined #ruby
cina has quit [Client Quit]
cina has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
cina has quit [Client Quit]
lutfidemirci has joined #ruby
cina has joined #ruby
cina has quit [Client Quit]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
SCommette has quit [Ping timeout: 264 seconds]
SCommette_ is now known as SCommette
cina has joined #ruby
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
cina has quit [Client Quit]
mjs2600 has quit [Remote host closed the connection]
cina has joined #ruby
acrussell has joined #ruby
<Karu> Hi folks, wondering if there's a way to get String#match to return an object populated with nils instead of *a* nil when there's a failure with named capture groups
rootshift has joined #ruby
keen___ has joined #ruby
Xeago has joined #ruby
vpretzel has quit [Quit: Adios!]
kayloos_ has joined #ruby
sepp2k1 has joined #ruby
yarou has joined #ruby
keen__ has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
Alina-malina has joined #ruby
bthesorceror has quit [Ping timeout: 240 seconds]
CorySimmons has joined #ruby
<shevy> can you give an example Karu
AlSquire has quit [Quit: This computer has gone to sleep]
<slash_nick> >> "".match(nil)
<eval-in> slash_nick => wrong argument type nil (expected Regexp) (TypeError) ... (https://eval.in/115788)
<slash_nick> we can do it right here, Karu :)
kayloos has quit [Ping timeout: 240 seconds]
rootshift has quit [Client Quit]
<Karu> so ideally, I'd get subject[:key] => nil
<Karu> instead the object returned is nil
zegerjan has quit [Quit: WeeChat 0.4.3]
<Karu> i'm trying to get my tests to return meaningful information here :)
shinobi_one has joined #ruby
<shevy> slash_nick your example does not work
<shevy> Karu and example input to test this method?
<slash_nick> shevy: wasn't supposed to... i was hoping i could prompt for a live example from Karu
<shevy> slash_nick almost, now I only need to have an input string before I can try and reproduce
b1101 has joined #ruby
<shevy> right now my head is not even sure it understood the question
<Karu> quickly sanitizing some stuff from my program, one second
mjs2600 has joined #ruby
<shevy> though probably you may have to extend your method
<slash_nick> it's not long enough?
AlSquire has joined #ruby
evenix has quit [Remote host closed the connection]
<shevy> it's not sophisticated enough for what he wants to achieve
nanoyak has joined #ruby
AlSquire has quit [Client Quit]
xerox357 has joined #ruby
<Karu> Updated the existing gist
evenix has joined #ruby
mjs2600 has quit [Remote host closed the connection]
blandflakes has joined #ruby
nari has quit [Ping timeout: 240 seconds]
<shevy> which one of these does not work?
bthesorceror has joined #ruby
<Karu> The final [SPAM] one because it does not match the regex at all
<b1101> I have a problem with gem installing mysql2. It's due to the gcc libraries in my linux distro being multilib. getting this error when doing gem install mysql2 "skipping incompatible /usr/lib/libmysqlclient.so" is there any way I can build it and have it working ?
mark_locklear has joined #ruby
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
<Karu> Which is fine and expected, but instead of failing the test, it breaks the test script outright because i'm trying to [] on a nil
elaptics is now known as elaptics`away
Umschwung has joined #ruby
<shevy> hmm
Umschwung has quit [Max SendQ exceeded]
<shevy> you need to change the method
aspires has quit []
<shevy> inside of the method, if that regex returns nil, handle that case
mjs2600 has joined #ruby
<shevy> otherwise, return as is (the default you already use here)
mjs2600 has quit [Remote host closed the connection]
<Karu> Mm, that's what I figured. But there's otherwise not a "simple" way to tell .match to return the empty groups?
evenix has quit [Ping timeout: 244 seconds]
bthesorceror has quit [Remote host closed the connection]
mjs2600 has joined #ruby
Lewix has quit [Remote host closed the connection]
<shevy> I guess .match applied on a string object will give you a MatchData object in the end
inversesquarelaw has joined #ruby
NalloK has joined #ruby
<centrx> >> "".match(//)
<eval-in> centrx => #<MatchData ""> (https://eval.in/115817)
kung has quit [Read error: Connection reset by peer]
NalloK has quit [Max SendQ exceeded]
kung has joined #ruby
<shevy> there is post_match ... pre_match ... hmmm
dkamioka_ has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
<shevy> >> f1,f2,f3,f4 = /(.)(.)(\d+)(\d)/.match("THX1138.").captures
<eval-in> shevy => ["H", "X", "113", "8"] (https://eval.in/115818)
arietis has quit [Quit: Computer has gone to sleep.]
<centrx> Yes, #captures is the whiz-bang-doodle
deadlock has joined #ruby
ce_afk is now known as cescalante
dkamioka has quit [Remote host closed the connection]
deadlock has quit [Max SendQ exceeded]
<Karu> Hehe - thanks!
snath has quit [Ping timeout: 252 seconds]
deadlock has joined #ruby
mjs2600 has quit [Ping timeout: 240 seconds]
NalloK has joined #ruby
timonv has joined #ruby
platzhirsch has joined #ruby
snath has joined #ruby
NalloK has quit [Max SendQ exceeded]
sski has joined #ruby
deadlock has quit [Max SendQ exceeded]
RaCx has joined #ruby
deadlock has joined #ruby
aspires has joined #ruby
yokel has joined #ruby
deadlock has quit [Max SendQ exceeded]
bthesorceror has joined #ruby
itadder has quit [Read error: Connection reset by peer]
phantomtiger has quit [Quit: phantomtiger]
deadlock has joined #ruby
itadder has joined #ruby
Guest1925 has quit [Quit: ZNC - http://znc.in]
nanoyak has quit [Remote host closed the connection]
<fraterlaetus> How can I select an individual hash in an array of hashes?
momigi has quit [Remote host closed the connection]
Es0teric has joined #ruby
banister has joined #ruby
<centrx> fraterlaetus, Clarify
<fraterlaetus> ok, so I have an array:
deadlock has quit [Max SendQ exceeded]
<fraterlaetus> [{"NAME"=>"sda", "MAJ:MIN"=>"8:0", "RM"=>"0", "SIZE"=>"8G", "RO"=>"0", "TYPE"=>"disk", "MOUNTPOINT"=>nil}, {"NAME"=>"├─sda1", "MAJ:MIN"=>"8:1", "RM"=>"0", "SIZE"=>"243M", "RO"=>"0", "TYPE"=>"part", "MOUNTPOINT"=>"/boot"}, {"NAME"=>"├─sda2", "MAJ:MIN"=>"8:2", "RM"=>"0", "SIZE"=>"1K", "RO"=>"0", "TYPE"=>"part", "MOUNTPOINT"=>nil}, {"NAME"=>"└─sda5", "MAJ:MIN"=>"8:5", "RM"=>"0", "SIZE"=>"7.8G", "RO"=>"0", "TYPE"=>"part", "MO
<fraterlaetus> UNTPOINT"=>nil}, {"NAME"=>"└─sda5_crypt", "MAJ:MIN"=>"(dm-0)", "RM"=>"252:0", "SIZE"=>"0", "RO"=>"7.8G", "TYPE"=>"0", "MOUNTPOINT"=>"crypt"}, {"NAME"=>"├─Ubuntu--vg-root", "MAJ:MIN"=>"(dm-1)", "RM"=>"252:1", "SIZE"=>"0", "RO"=>"5.7G", "TYPE"=>"0", "MOUNTPOINT"=>"lvm"}, {"NAME"=>"└─Ubuntu--vg-swap_1", "MAJ:MIN"=>"(dm-2)", "RM"=>"252:2", "SIZE"=>"0", "RO"=>"2G", "TYPE"=>"0", "MOUNTPOINT"=>"lvm"}, {"NAME"=>"└─cryptswap1",
<fraterlaetus> "MAJ:MIN"=>"(dm-3)", "RM"=>"252:3", "SIZE"=>"0", "RO"=>"2G", "TYPE"=>"0", "MOUNTPOINT"=>"crypt"}, {"NAME"=>"sdb", "MAJ:MIN"=>"8:16", "RM"=>"0", "SIZE"=>"8G", "RO"=>"0", "TYPE"=>"disk", "MOUNTPOINT"=>nil}, {"NAME"=>"sdc", "MAJ:MIN"=>"8:32", "RM"=>"0", "SIZE"=>"8G", "RO"=>"0", "TYPE"=>"disk", "MOUNTPOINT"=>nil}, {"NAME"=>"sr0", "MAJ:MIN"=>"11:0", "RM"=>"1", "SIZE"=>"1024M", "RO"=>"0", "TYPE"=>"rom", "MOUNTPOINT"=>nil}]
<fraterlaetus> irb(main):006:0> merged[0]
<centrx> oh dear
<centrx> Use gist.github.com
<shevy> lol
hiyosi has joined #ruby
<shevy> fraterlaetus yay man!
deadlock has joined #ruby
<shevy> fraterlaetus show the channel how it is done
<shevy> MORE!
<shevy> I demand MORE!!!
<centrx> shevy, Be careful or I will pipe /dev/urandom into the channel
<shevy> hey, there could be a good melody hiding there
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
<centrx> So far I've only been making sentences from it
<centrx> Threat's pawed hovercraft scopes cash's!
nanoyak has joined #ruby
bthesorceror has quit [Remote host closed the connection]
deadlock has quit [Max SendQ exceeded]
<centrx> But the real /dev/urandom has so many non-ASCII characters
<centrx> raw
deadlock has joined #ruby
xeno has joined #ruby
bthesorceror has joined #ruby
<fraterlaetus> neat! Gist.github.com
<shevy> fraterlaetus the best is to store a hash as a hash
<fraterlaetus> didn't know about it
<shevy> fraterlaetus my recommendation would be to, if you need a hash anyway, convert the whole thing into a hash, then continue to operate on it
klaut_ has quit [Remote host closed the connection]
deadlock has quit [Max SendQ exceeded]
<fraterlaetus> That's what I did with the merged bit, I thought?
<fraterlaetus> with to_h
deadlock has joined #ruby
<xeno> For some reason I cannot see the results of my include on the same string line executing with ruby -e: http://pastie.org/8895653
bthesorc_ has joined #ruby
bthesorc_ has quit [Remote host closed the connection]
klaut_ has joined #ruby
<xeno> For some reason I cannot see the results of my require on the same string line executing with ruby -e: http://pastie.org/8895653
momigi has joined #ruby
bthesorc_ has joined #ruby
<shevy> fraterlaetus what is to_h, array has no #to_h method
<slash_nick> wow pastie takes forever to load huh?... gists are usually faster
deadlock has quit [Max SendQ exceeded]
bthesorceror has quit [Read error: Connection reset by peer]
<centrx> shevy, It does in Ruby 2.1
deadlock has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
<shevy> ack
<shevy> indeed
deadlock has quit [Max SendQ exceeded]
deadlock has joined #ruby
<RubyPanther> facets is what you call ActiveSupport a year before the feature gets copied lol
mr-rich has quit [Ping timeout: 252 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
sailias has quit [Quit: Leaving.]
zeropx has joined #ruby
<fraterlaetus> basically, I'm trying to do something like this:
kirun has joined #ruby
<RubyPanther> trans would be a top Rubyist if he wrote better emails
momomomomo has joined #ruby
<fraterlaetus> so that I can enumerate through all devices in lsblk and determine if there are unmounted disks with identical geometry
Czupa has joined #ruby
mavcunha has joined #ruby
sailias has joined #ruby
klaut_ has quit [Ping timeout: 264 seconds]
Czupa has quit [Remote host closed the connection]
mbff has joined #ruby
mbff is now known as Guest34623
<fraterlaetus> I'm trying to write a cookbook for mdadm/drbd/nfs and my team has challenged me to do it in ruby instead of bash
mehlah has quit [Quit: Leaving...]
craigp has quit [Remote host closed the connection]
bthesorc_ has quit [Remote host closed the connection]
marcgg_ has quit [Ping timeout: 240 seconds]
<xeno> Looks like nobody sees anythng obvious about why this simple string script gets a method error.
aspires has quit []
<fraterlaetus> so, how can I populate HDD.new with merged[0]?
sigurding has quit [Quit: sigurding]
<terrellt> xeno: A module isn't a class. You can't call instance methods on it directly unless you call module_function.
<fraterlaetus> I've tried sda = HDD.new( #{merged[0]} )
decoponio has quit [Quit: Leaving...]
axsuul has quit [Read error: Connection reset by peer]
acrussell has quit [Quit: Leaving.]
<xeno> Ok.
mikepack has quit [Remote host closed the connection]
axsuul has joined #ruby
<slash_nick> xeno: have you tried it in the console?
craigp has joined #ruby
<shevy> slash_nick, are you working on any cool ruby projects?
<toretore> fraterlaetus: are you just trying random stuff hoping one of them will work?
sumark has quit [Remote host closed the connection]
<RubyPanther> fraterlaetus: search on "ruby splat"
<shevy> fraterlaetus did you write class HDD
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> fraterlaetus keep in mind, you need #{} only in a string
craigp has quit [Remote host closed the connection]
<banister> terrellt even if it was a class, that code still wouldn't work ;)
<shevy> so rather than HDD.new( #{merged[0]} ), it would either be:
craigp has joined #ruby
<shevy> HDD.new( "#{merged[0]}" )
<shevy> or
<shevy> HDD.new( merged[0] )
<fraterlaetus> toretore: no. I went through the rubymonk tutorials and am trying to apply what I learned to a real world task.
SCommette has quit [Quit: SCommette]
sumark has joined #ruby
* shevy pokes fraterlaetus
<fraterlaetus> please excuse my utter lack of familiarity with ruby.
<shevy> look up!
aspires has joined #ruby
<toretore> fraterlaetus: it's not clear to my what you're trying to do
<fraterlaetus> shevy: I tried that 1st.
<xeno> When I require the file in anothe file, then I can access the module function with XCTM::failT.
<shevy> good, now you know why you will not try #{merged[0]} again fraterlaetus :)
<xeno> That is part of what is stumping me.
<shevy> outside of a string that is
mansi has joined #ruby
<banister> xeno no you can't
<toretore> fraterlaetus: that lack is what i was pointing out. you can't expect to be able to write something in ruby when you have an "utter lack of familiarity" with it
<banister> xeno you must be including XCTM into main or into the other class
<xeno> Yes. I am. So I cannot do it without Include?
dkamioka has joined #ruby
<xeno> It seems there must be a way to see it with a full path.
bluenemo has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
<banister> xeno not unless you're doing something else, unless you're expilctly including or extending the module somewhere
Squarepy has quit [Quit: Leaving]
<banister> xeno simply requiring that code, is not enough for it to work
<xeno> Ok.
<slash_nick> shevy: eh, it's a frankenstein shell/ruby project... but we have a server that in addition to its other responsibilities has become a defacto long term raw data archival location... and it's getting full. I'm writing some shell and ruby scripts to slurp all that data up and persist it in a distributed fashion... the server will become a near term archive rather than long term.
npearson has joined #ruby
<fraterlaetus> shevy: when I do sda = HDD.new( merged[0] ) I get 'wrong number of arguments(1 for 7)'
polydius has quit [Quit: EOF]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
<fraterlaetus> but merged[0] spits out 7 key => value pairs
<shevy> slash_nick a frankenstein shell? what a cool name :)
reset has joined #ruby
<shevy> fraterlaetus well you pass only one argument here ok?
mikepack has joined #ruby
<slash_nick> the core app here is called cheetah... i'm calling this one chester
<fraterlaetus> ahh
bogon is now known as manacit
<shevy> fraterlaetus if it were 7, you would have to use: HDD.new( 1,2,3,4,5,6,7 )
<shevy> fraterlaetus so you must turn your array into individual components; you should be able to do this via the * splat operator, *merged[0]
<fraterlaetus> Muchos gracias shevy!
<shevy> I like cool names, Frankenstein shell sounds awesome :)
<toretore> don't teach splat to a noob
<toretore> first he should understand how passing arguments works
<fraterlaetus> that's immensely helpful
<shevy> yes toretore do that
kcombs has quit [Remote host closed the connection]
_reset has joined #ruby
reset has quit [Read error: Connection reset by peer]
sarmiena_ has joined #ruby
alvaro_o has joined #ruby
<fraterlaetus> toretore: perhaps instead of being butthurt that someone else lent a much needed hand, you could take notes and do the same?
<fraterlaetus> just a thought
<fraterlaetus> :)
mary5030 has quit [Remote host closed the connection]
<fraterlaetus> (cuddles)
<toretore> if, as he says, "merged[0] spits out 7 key => value pairs", it's not going to work anyway
<shevy> some people like to protect knowledge, some people like to learn, some people like to teach
mojjojo has joined #ruby
mary5030 has joined #ruby
<shevy> yeah, if he has a fatality he'll ask on #ruby again - where is the problem
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fraterlaetus> shevy: that put me on the right track mate.
shime has joined #ruby
<slash_nick> HDD.new(*(1.upto(7).to_a))
kenneth has joined #ruby
mjs2600 has joined #ruby
<xeno> Thanks.
<toretore> fraterlaetus: stop being a dick. what i'm trying to do is to make you learn how things work instead of relying on someone to tell you the magic word to make your code work each time
<shevy> good that IRC is not exclusive
mjs2600 has quit [Remote host closed the connection]
infoget has left #ruby [#ruby]
<fraterlaetus> It's ironic you'd accuse me of being a jerk.
<fraterlaetus> that's all I'll say.
<fraterlaetus> :)
<toretore> if you go and use *merged[0] now and it so happens to work, you'll have "solved" your problem without learning anything
<shevy> fraterlaetus k I think toretore wants you to understand the * operator first
<toretore> no
<toretore> exactly the opposite
S0da has joined #ruby
mjs2600 has joined #ruby
<shevy> ok he does not want you to understand it at all
<toretore> when he doesn't understand the difference between passing one argument and passing 7, he should learn that first
<fraterlaetus> lol
freerobby has quit [Quit: Leaving.]
<slash_nick> oh, method signatures first
mourest has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
freerobby has joined #ruby
<toretore> if you say "just use *" it's just some magic crap that makes it work
<terrellt> All hail *
<shevy> there are some blog entries that are helpful; if you are curious about splat, you could look at http://endofline.wordpress.com/2011/01/21/the-strange-ruby-splat/ or http://stackoverflow.com/questions/14303499/splat-on-a-hash but the easiest way is to use irb and try it a few times
<terrellt> Magic crap that makes it work.
Mongey has joined #ruby
<shevy> and to google for * !
Hanmac1 has joined #ruby
<shevy> :(
<shevy> leads me to ruby on rails as first result...
zcreative has quit [Quit: Computer has gone to sleep.]
crystal77 has quit [Quit: Computer has gone to sleep.]
<terrellt> shevy: Wildcards dude.
<terrellt> shevy: You need to look for "splat operator."
zerun0_ has quit [Ping timeout: 264 seconds]
<xeno> Is it possible that minitest does something special to the module environment?
<slash_nick> ruby splay
agjacome has joined #ruby
niftyn8 has joined #ruby
Guest34623 is now known as mbff
<slash_nick> even the typo gets a good hit ^
lutfidemirci has quit [Remote host closed the connection]
NalloK has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
<shevy> ohhh
mjs2600 has quit [Remote host closed the connection]
<shevy> fraterlaetus, there is even more, even double splat: http://stackoverflow.com/questions/18289152/what-does-double-splat-operators-do-in-ruby
Jdubs has quit [Remote host closed the connection]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
mjs2600 has joined #ruby
<shevy> def foo(a, *b, **c)
NalloK has quit [Max SendQ exceeded]
lutfidemirci has joined #ruby
<fraterlaetus> shevy: you're the man. Thank you for your patience and effort.
<fraterlaetus> I appreciate it greatly.
<shevy> wow
<toretore> and then there's & you should really start using that
<shevy> it is indeed called "double splat"
<toretore> with instance_eval
Fyyr13_ has joined #ruby
dblessing has quit [Quit: dblessing]
cgore has joined #ruby
<slash_nick> shevy: not to be confused with Math#exp's **
ringaroses1 has joined #ruby
crystal77 has joined #ruby
<slash_nick> oh Float#**
bthesorceror has joined #ruby
<shevy> huh?
<shevy> there is a Float#** ?
<terrellt> Exponents brah.
<shevy> >> 3 ** 3
<eval-in> shevy => 27 (https://eval.in/115852)
<terrellt> Well
<terrellt> >> 3.02 ** 2.0
<eval-in> terrellt => 9.1204 (https://eval.in/115853)
<xeno> That seems backwards that you can see constants in a module, but not methods. What is intended with that I wonder?
relix has joined #ruby
mojjojo has quit [Quit: mojjojo]
<shevy> xeno see?
<shevy> what do you mean with 'see'
Fyyr13_ has quit [Ping timeout: 240 seconds]
<centrx> Whoa, Ruby does exponents too? Wow
<xeno> Oh. I was able to puts XCTM::MyConstant, but I cannot run XCTM::mymethod.
ringaring has joined #ruby
klaut_ has joined #ruby
havenwood has joined #ruby
<slash_nick> shevy: he's doin this: https://gist.github.com/rthbound/f03ee44297b4c39f1f29
IceDragon has joined #ruby
<talntid> Looking to hire a ruby developer who wants to work on an existing screen scraping/normalizing application. Message me if interested. Thanks
dblessing has joined #ruby
xaq has joined #ruby
markisonfire has joined #ruby
ringaroses1 has quit [Ping timeout: 252 seconds]
dallasm has joined #ruby
<havenwood> slash_nick: that's not how you bongo a bingo!
jph98 has joined #ruby
klaut_ has quit [Read error: No route to host]
toastynerd has quit [Remote host closed the connection]
<shevy> xeno well you can add a class method there
<hfp> Hey, if I wanted a Ruby icon to put on my website to indicate which particular projects are made with Ruby, where could I find such an icon? Is there an "official icon pack"?
<slash_nick> havenwood: bingo!
<RubyPanther> scrape scrape scrape scrape scrape, it is like a cross between being a programmer, and a meth head
klaut_ has joined #ruby
bthesorceror has quit [Remote host closed the connection]
<xeno> Yes, I noticed that too. I just wonder why it's set up that way.
<shevy> >> module Bingo; def self.bongo; puts 'bongo in the house!'; end; end; Bingo.bongo
<eval-in> shevy => bongo in the house! ... (https://eval.in/115862)
<shevy> xeno why do you name your modules and methods bingo bongo :P
<talntid> haha
<xeno> I didn't. That was another guy/gal.
<slash_nick> shevy: i did that :)
<RubyPanther> talntid: Just pay the company for a copy of their data instead of stealing it
<slash_nick> i'm rthbound
<RubyPanther> scraper solved
Xeago__ has joined #ruby
jjbohn has joined #ruby
felixflo_ has quit [Remote host closed the connection]
joelroa has quit [Ping timeout: 240 seconds]
<RubyPanther> You can tell I've done that job before, right? lolol
<slash_nick> shevy: because Foo#bar was taken
<talntid> RubyPanther: it is from 50 different entities. the data is free, just not normalized.
bthesorceror has joined #ruby
felixflores has joined #ruby
<havenwood> toretore: nice, i didn't realize they had an official CC one
Xeago has quit [Read error: Connection reset by peer]
nisstyre has quit [Ping timeout: 264 seconds]
<shevy> slash_nick hehe funny names... frankenstein ... bingo bongo ... if I ever have to get a name for my company, I'll ask you
<agent_white> Afternoon!
<havenwood> g'day!
toastynerd has joined #ruby
* agent_white tips hat
<talntid> and actually, 45 of the scrapers are already written and working :-)
<slash_nick> shevy: why thank ya
duggiefresh has joined #ruby
bthesorceror has quit [Remote host closed the connection]
<RubyPanther> usually that means "free as in, no DRM"
shime has quit [Ping timeout: 265 seconds]
bthesorceror has joined #ruby
<shevy> RubyPanther even the W3 Consortium embraces DRM now
<havenwood> talntid: what are you using to scrape? mechanize?
<talntid> free as in.... the data is public record.
<talntid> havenwood: yes
RaCx has quit [Quit: Computer has gone to sleep.]
<talntid> and in some rare cases, selenium
xaq has quit [Remote host closed the connection]
<RubyPanther> shevy: DRM is great, it warns me what data not to want
Fyyr13_ has joined #ruby
shime has joined #ruby
zerun0_ has joined #ruby
<RubyPanther> I use lots of government data in my apps, most of my data is real public records, and they're generally in a downloadable, parsed format
<shevy> lol
<shevy> you will miss out all the cool advertisement
klaut_ has quit [Ping timeout: 252 seconds]
Thanatermesis has joined #ruby
<talntid> RubyPanther: good for you. in my case, it is real public records, but is not in a downloadable, parsed format.
<RubyPanther> So when I heard "scraper" and then "public record" I'm thinking, public as in the door wasn't locked. Public in the way a restaurant is public
uxp_ is now known as uxp
NalloK has joined #ruby
<RubyPanther> talntid: so what is the data?
<shevy> government p0rn
<talntid> secretary of state business registration details
<slash_nick> oh shevy cool ruby project... i want to use this to make gifs of earth/mars/jupiter/moons/etc spinning: http://ea.rthbound.com/usno-imagery/ ... i guess it'd be easier to just create an array of urls and let some service generate the gif
NalloK has quit [Max SendQ exceeded]
pfg has joined #ruby
<RubyPanther> You're supposed to get a copy of that on a DVD in the mail from the State
jxf has quit [Ping timeout: 244 seconds]
lutfidemirci has quit [Remote host closed the connection]
lutfidemirci has joined #ruby
mikhailvs has joined #ruby
Fyyr13_ has quit [Ping timeout: 240 seconds]
<talntid> I'm not asking for alternative ways to do it, RubyPanther, I'm asking for someone to do it.
<talntid> thanks though
<talntid> :-)
<RubyPanther> talntid: And we know you aren't paying market rates, because having a programmer scrape it will cost just as much as paying a consultant to collect all the DVDs and send you a copy
<talntid> you know nothing of what I am willing to pay
<talntid> you just assume you can get DVD's and all is well with the world
<havenwood> You Know Nothing, Jon Snow!
<talntid> business entity data changes daily, and they aren't going to send daily DVD's
postmodern has joined #ruby
testie has joined #ruby
Xeago__ has quit [Remote host closed the connection]
<RubyPanther> talntid: Are you claiming that you're paying market rates or better? Just so anybody who responded to you knows the answer.
<havenwood> really annoying that SOS's don't have a uniform restful api, would be so simple
ktosiek has joined #ruby
<mikhailvs> RubyPanther, what is the market rate?
<mikhailvs> just, for reference
<talntid> havenwood: that's what I'm doing.
<RubyPanther> mikhailvs: $65-120/hr
<mikhailvs> RubyPanther, prove it, or else it's just a figure you pulled from thin air
<shevy> slash_nick sounsd quite advanced
zcreative has joined #ruby
<havenwood> talntid: nice
polydius has joined #ruby
polydius has quit [Max SendQ exceeded]
<RubyPanther> mikhailvs: Prove me wrong or your challenge is from thin air!
RaCx has joined #ruby
Xeago has joined #ruby
<havenwood> The air is thin!
<mikhailvs> I'm not the one making any claims
evenix has joined #ruby
<mikhailvs> I didn't say you are wrong, just that i want evidence
<RubyPanther> mikhailvs: I'm an expert, I don't need to cite an expert.
realmen has quit []
<slash_nick> shevy: it's either downloading a handful of images and processing them into a gif with imagemagick or something.... or just generating urls to the images (provided by the US govt), and passing those to some webservice that generates gifs from urls
<RubyPanther> I'll write it up as a report for $500
testie has quit [Client Quit]
<agent_white> "I'm an expert." - RubyPanther, Professional Expert.
ikaros has joined #ruby
<mikhailvs> lol
CorySimmons has quit [Quit: Bye!]
<mikhailvs> RubyPanther, I am experter than you
<mikhailvs> I'll write a report on it for you
<mikhailvs> for $5000
<RubyPanther> mikhailvs: prove it, what is the market rate for Ruby consultants?
<shevy> wow
<shevy> those prices go up here quickly
geopet has quit []
<mikhailvs> RubyPanther, what is the market rate for ruby market rate analysts?
<RubyPanther> Any expert can prepare a $500 or $5000 report
<agent_white> Fuck. I'll do it for $9-12/hr. but it won't get done fast.
cover has joined #ruby
cover has quit [Changing host]
cover has joined #ruby
<slash_nick> s/fast/ever, thanks/
<RubyPanther> agent_white is ready for a future in scrapers
<agent_white> I have my cape already!
flowerpot has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<RubyPanther> mikhailvs: So far you have provided no expert opinion, are you sure you're an expert?
<shevy> agent_white are you still railsing your way to fortune?
<mikhailvs> RubyPanther, nono. I'm an expert on "expert" experts
julian` has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
<RubyPanther> Okay, so not an expert
<slash_nick> why are you guys no longer perts?
<RubyPanther> You need an English degree to be an expert on scare quotes
senj has joined #ruby
arietis has joined #ruby
<RubyPanther> And you need an Education degree to be an expert on fake experts.
<agent_white> shevy: Pretty much :/ I'm in this limbo of still trying to learn enough to score an internship.
<mikhailvs> Which, I'm guessing you have. Which, I'm guessing is why you are so fucking condescending you twat.
NalloK has joined #ruby
mehlah has joined #ruby
<shinobi_one> lol
flowerpot has quit [Client Quit]
<RubyPanther> Internships are only useful for people who need a work/education credit as a degree requirement
<slash_nick> he's a pro-descending
dweeb_ has quit [Quit: Computer has gone to sleep.]
flowerpot has joined #ruby
<shinobi_one> RubyPanther: That is so not true.
<shevy> agent_white don't worry too much about having perfect skills
NalloK has quit [Max SendQ exceeded]
<RubyPanther> agent_white: think "jr programmer" not "intern," the requirements are the same but the jr programmer gets paid
<agent_white> RubyPanther: I'm on my "extended break" from college at the moment. So I'm looking for one just to learn :)
jjbohn has quit [Quit: Leaving...]
ctp has joined #ruby
ItSANgo has quit [Ping timeout: 252 seconds]
<shinobi_one> RubyPanther: Many Computer Science related internships or programming interships pay pretty well.
dkamioka_ has joined #ruby
daxroc has joined #ruby
<RubyPanther> shinobi_one: Those are a different use case than agent_white's ;)
rbartos has quit [Remote host closed the connection]
quatron has quit [Ping timeout: 240 seconds]
<slash_nick> agent_white: are you the guy in denver?
<shinobi_one> agent_white: Many internships require you to be attending.
<slash_nick> err, colorado?
mehlah has quit [Client Quit]
<mikhailvs> RubyPanther, if you are an expert, and are making >$60/hr.. how are you able to afford something as expensive as this: https://maps.google.ie/maps?client=ubuntu-browser&ie=UTF-8&layer=c&z=17&iwloc=A&sll=44.041038,-123.121022&cbp=13,175.1,0,0,0&cbll=44.041281,-123.121051&q=1830+W+17TH+AVE+eugene,+or&ei=PyMaU8mhDs2GogTYq4LQCg&ved=0CCoQxB0wAA
jph98 has quit [Quit: jph98]
<RubyPanther> High paid internships are for genius kids who aren't qualified for the job, but are expected to skip quickly to Sr. level
<mikhailvs> seems like you'd meed more than that...
<agent_white> RubyPanther: Aye, and that's where the limbo area is. Internship<->Jr.Programmer.
rbartos has joined #ruby
<agent_white> slash_nick: Yessir! Shit did I speak with you awhile back about this?
<talntid> mikhailvs: does have a good question. that's an awfully baller place for an expert
<slash_nick> agent_white: that's right...
<RubyPanther> mikhailvs: Congratulations, you used the internet to find a place I lived... in 1998
<shinobi_one> RubyPanther: I don't know where you're from, but where I'm from many CS internships go for 20+ an hour.
<RubyPanther> *clap*
mlpinit has quit [Remote host closed the connection]
<shevy> agent_white you want a highly paid internship?
<slash_nick> shevy: he wants no money...
<agent_white> slash_nick: Oh boy... I misplaced your information.
Symbiosisz2 has quit [Ping timeout: 244 seconds]
<agent_white> shevy: Full-time, non-paid. :)
<slash_nick> agent_white: it's okay... dragondev
<RubyPanther> shinobi_one: If they require living in a large city, my question is, what do the fast food jobs pay? Like in SF, fast food starts at $13/hr
dkamioka has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
phantomtiger has joined #ruby
mlpinit has joined #ruby
niftyn8 has quit [Ping timeout: 240 seconds]
<RubyPanther> $20/hr in a big city is what an entry-level roofer might make
<shevy> agent_white hmm but it must be at some important company?
<mikhailvs> RubyPanther, so you're saying, if I go there, I wont find you?
<shinobi_one> RubyPanther: They don't require living in a large city.
<slash_nick> RubyPanther: my entry level ruby/rails job started at 14
<RubyPanther> mikhailvs: lol "d'oh"
mikepack_ has joined #ruby
<slash_nick> Alabama pays way below average
<RubyPanther> mikhailvs: You seem to misunderstand the nature of time
<shinobi_one> RubyPanther: Does a roofer after his internship go on to make $60k+ a year salary starting though?
xerox357 has quit [Quit: Leaving...]
duggiefresh has quit [Remote host closed the connection]
<agent_white> shevy: Nope! This isn't to satisfy any credits for college, just my thirst for knowledge and experience.
IcyDragon has joined #ruby
<RubyPanther> shinobi_one: a jr programmer does, that is the comparison I was making, intern vs jr programmer
<shevy> agent_white I see
<shinobi_one> agent_white: You don't want an internship then as RubyPanter suggested you want a jr dev position.
<shinobi_one> RubyPanther, wow I should use autocorrect ***
<shinobi_one> Errr tab-completion.
IceDragon has quit [Ping timeout: 265 seconds]
<shinobi_one> RubyPanther: Huh? Are you saying non-bachelors degree or with bachelors degree?
* RubyPanther pants at shinobi_one
razrunel_ has joined #ruby
<shevy> hey
<agent_white> shinobi_one: That's what makes me iffy, is being at the 'caliber' of a Jr. Dev?
<shevy> don't throw your pants at other people man
<RubyPanther> nobody cares about a degree in programming, that is the difference between being a software expert and being an English expert
<shinobi_one> agent_white: Some title is better than no title. If you're good enough and they like you, you'l hopefully move up.
<mikhailvs> RubyPanther, lets see some projects
<centrx> agent_white, There are a lot of ignorant, incompetent people getting Jr Dev positions who do not have such scruples.
<shevy> well a title helps in salary negotiations
NalloK has joined #ruby
<shevy> "Hi, I am Dr. Bob, I am going to rip this shit out."
julian` has joined #ruby
mikhailvs is now known as RubyPanhter
hiyosi has joined #ruby
<RubyPanther> agent_white: a jr developer is expected to be able to operate the source repository, read manuals, learn quickly, and only touch the files they were instructed to touch
<shevy> "We just waited for you! Here take the million dollars paycheck and continue please!"
NalloK has quit [Max SendQ exceeded]
mikepack_ has quit [Ping timeout: 240 seconds]
<shinobi_one> RubyPanther: Are you kidding me? That might be true in more web-development areas but in Software Engineering the odds of you getting a job without a bachelors degree is very low compared to someone who has it, unless you actually somehow understand algorithms, data structures, and all that goodness in which case you're a minority.
<shevy> agent_white learn on-site at your internship, that is what I did :)
<shevy> I had to read boring postgresql manuals
<RubyPanther> Software "Engineering" is not development, it is a type of working project manager
supermarin has quit [Remote host closed the connection]
<havenwood> Nice to get paid to learn.
<havenwood> Pay me!
Sawbones has joined #ruby
mansi has quit [Remote host closed the connection]
<Sawbones> Anyone have resources on how to perform rails 4 file uploading?
<shinobi_one> RubyPanther: Software Engineering is not development?... I think you're confused.
<shinobi_one> Sawbones: try #rubyonrails
mansi has joined #ruby
razrunel_ has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
mansi_ has joined #ruby
<RubyPanther> shinobi_one: See, you conflate not having a degree with not knowing algorithms. So my hint is, don't make so many assumptions; you make assumptions that if true would make me wrong, but if I didn't make that assumption, then what I literally said remains literally true
IcyDragon is now known as IceDragon
<agent_white> RubyPanther: So it sounds like it would be very minor refactoring? If that?
<RubyPanther> An engineer is generally going to so pedantic they would not make that mistake
<shinobi_one> RubyPanther: What? I said if you somehow know algorithms/datastructures/all that goodness yet you do NOT have a degree, you are in the minority.
<RubyPanther> shinobi_one: Yes, if you are able to be a self-taught engineer you are in the minority! That is not news. ;)
ktosiek has quit [Read error: Connection reset by peer]
roroflores has quit []
<shinobi_one> RubyPanther: So your last statement is not true then.
<RubyPanther> Another hint: Sr. Software Developer is not a synonym for Software Engineer
dallasm has left #ruby [#ruby]
jsilver has joined #ruby
andrewlio has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
hiyosi has quit [Ping timeout: 240 seconds]
<havenwood> Señor Software Developer
<agent_white> shevy: Hahah that sounds like a plan! It would be nice to get actual feedback from 'real devs', instead of just puttering on my own.
fridim__ has quit [Read error: Operation timed out]
crystal77 has quit [Quit: Computer has gone to sleep.]
<shinobi_one> RubyPanther: You're using the term wayyyy too specifically. Now days it's not used so much as you're describing. http://en.wikipedia.org/wiki/Software_engineering read the "The term has been used less formally:" Section.
<RubyPanther> A developer knows how to get from point A to point B. A Sr Developer draws on lots of experience, avoids the pitfalls, and gets things done. An engineer also can choose the correct point A and point B for a complex use case.
<RubyPanhter> Yes
daxroc has quit [Quit: Leaving.]
<RubyPanther> Any term has been used "less formally" to mean... anything
ItSANgo_ has joined #ruby
<shinobi_one> It's basically anyone who engineers software, which many many developers do, no?
<talntid> shinobi_one: RubyPanther is an expert in all things. he is right. http://en.wikipedia.org/wiki/God_(male_deity)
<RubyPanhter> no
<havenwood> A junior developer doesn't know how to code. A senior developer knows how to code better than a junior developer. :P
<shinobi_one> havenwood: so not true ;)
<shevy> you guys are getting very philosophical
ndrei has joined #ruby
<shinobi_one> in call cases
mansi has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<talntid> so what do you call a programmer who is 65 years old, but just started programming 6 months ago?
<talntid> senior developer!
<RubyPanther> No, most developers repeat past point A's and point B's based on their experience with them. An engineer doesn't need to have seen it before, because they can calculate the moving parts and understand how theory applies to real materials
ktosiek has joined #ruby
<havenwood> shinobi_one: You think a senior developer doesn't know how to code too? :P
rezzack has joined #ruby
Advocation has quit [Quit: Advocation]
<shinobi_one> RubyPanther. You have a way too precise definition I guess compared to what I've seen in the real world, so we'll just butt heads on this forever ;p
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thesheff17 has quit [Quit: Leaving]
<RubyPanhter> I've never actually had a job
<RubyPanther> Note that the software engineer doesn't even need to write code. They can, they probably do, but they need to understand actual engineering principles, and how to model algorithms in arbitrary contexts based on use cases
<RubyPanhter> in software
<itadder> any good example of ruby code for birthday pardox
<talntid> I believe RubyPanther just lives in a dream world
<shinobi_one> havenwood: I think not all senior developers code better than junior developers.
<talntid> :)
mrbub has joined #ruby
<havenwood> shinobi_one: good point
<itadder> so some software engineer do not right code?
xibalba has quit [Quit: ZNC - http://znc.in]
rbartos has quit [Remote host closed the connection]
supermarin has joined #ruby
<mrbub> hey faggots
<shevy> hey mrbub
<centrx> itadder, RubyPanther is partially insane
<shevy> centrx partially? and what is his other part?
<RubyPanther> it is like comparing a master carpenter (Sr. Developer) to an architect or structural engineer. They are different jobs.
<itadder> oh
<centrx> itadder, "Software Engineer" is the standard job title for someone who "programs".
<itadder> any ruby code for the birthday pardox
RubyPanhter has left #ruby [#ruby]
<itadder> just want to see how it works
<shinobi_one> RubyPanther: In general, from what I've seen, a software engineer who does not code (or do so much) is generally more of a Project manager type. A software engineer who designs, analyzes, and programs can still be considered a software developer. A software developer who does such can be considered a software engineer.
<RubyPanther> shevy: why does "partially insane" have to map to a sane part and insane part? Maybe it means all the parts are partially sane.
mrbub has quit [Quit: Leaving.]
Kruppe has quit [Read error: Connection reset by peer]
trent has joined #ruby
trent has left #ruby [#ruby]
hmbl9r has joined #ruby
trent has joined #ruby
jcp has joined #ruby
<trent> sup u guys
jcp is now known as Guest18196
<shevy> RubyPanther well he said only partially insane, he did not imply that the other half is sane :)
<matti> sheevyyy
geopet has joined #ruby
<hmbl9r> or that there is an other half to speak of
<matti> Uou little bugger
<matti> ::)
<shevy> maaaaaatti
<RubyPanther> shinobi_one: Right, on a small enough team, like the teams most Rubyists work in, there will not be an actual engineer or architect, a Sr Developer or "team lead" will put on the Architect hat and give it a go. And it is usually good enough for projects of that size.
<shevy> are you on lunch again
zachallett has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
<matti> No
<matti> On a plane back to the uj
<matti> UK
<itadder> so most rubyist do not have to deal with coporate red tape or insane deadlines
<shinobi_one> RubyPanther: Lots of startups don't have "project managers", they are all engineering the product, all putting in the same amount of design and analysis.
<itadder> and budget cuts
<matti> :)
<itadder> is that it RubyPanther
einarj has quit [Remote host closed the connection]
rbartos has joined #ruby
<itadder> I want to work for a startup that has little redtape and no insane deadlines
<itadder> and pair programing
<RubyPanther> for example, compare Tenderlove's convention talks to anybody else's. Tenderlove would likely be a competent engineer.
rh1n0 has joined #ruby
ndrei has joined #ruby
<matti> Ok, take off... ::)
trent has quit [Client Quit]
<itadder> okay back to wowrkf ro me
<agent_white> matti: I'm concerned about your two-sets of eyes.
_arnold has joined #ruby
jsilver has quit []
_arnold has quit [Client Quit]
__arnold has joined #ruby
shime has quit [Ping timeout: 240 seconds]
zachallett has joined #ruby
<shinobi_one> RubyPanther: The small company I work for doesn't hire "code monkeys". If you can't architect, engineer, and code you're hosed.
<RubyPanther> shinobi_one: Meaning you have no architects
crystal77 has joined #ruby
<shinobi_one> RubyPanther: I've seen that one. It's good
<shinobi_one> RubyPanther: Meaning we are all architects... what are you on about?
jph98 has joined #ruby
<RubyPanther> It is the correct way for small teams IMO. Flat structure, generalists, able to architect small systems
rh1n0 has quit [Client Quit]
<shinobi_one> RubyPanther: We have no specialized areas of architecting if that's what you mean.
<RubyPanther> But it does not mean any of those people would produce a good design for a system of arbitrary complexity
einarj has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
<shinobi_one> RubyPanther: Everything is relative to the persons competency.
jsilver has joined #ruby
<shinobi_one> person's*
<RubyPanther> Those sorts of teams, the company has the specialty instead of the employeers, so the problem domain is bounded
jsilver has quit [Remote host closed the connection]
mavcunha has quit [Read error: Connection reset by peer]
Guest18196 is now known as Kruppe
<shinobi_one> RubyPanther: Eh, you generalize too much for me. If you had any idea of all the hats I wear at work none of what you just said would make sense.
<RubyPanther> Look at something like rails 1.1 compared to rails 4. Look at all the architecture changes along the way. That is how Sr Developers do it. THey whip out some working code, and then change the architecture when they hit a wall. They don't plan for the walls, there is even a culture that is anti-engineering. "Good enough"
<shinobi_one> RubyPanther: That culture doesn't scale into large companies. It works great for smaller companies.
<RubyPanther> shinobi_one: generalizing is required because I don't have specific knowledge of your workplace. You mean I don't overstate what I know by making it specific where I don't have specific information?
<itadder> gvim is not bad in windows
<itadder> beats notepad
<shinobi_one> RubyPanther: I mean you seem to generalize in such a way that "everything is true for this" when in reality it's not.
<havenwood> "beats notepad" is a sad praise
<itadder> It much better workflow then notepad gvim is not bad...
<shinobi_one> notpad++
<shinobi_one> notepad++*
<shevy> hehe
<shevy> notpad!
<itadder> sublime text is great, but VIM is not bad iin windows
<RubyPanther> Exactly, small companies don't need engineers, it would be a waste of money for most of them. IMO small companies should hire engineering consultants for a few weeks before even telling their devs about a project though.
<havenwood> notepad +=
<shevy> notepad--
<RubyPanther> emacs runs fine in `doze
<itadder> yea RubyPanther and just make things more complex then they need to
SCommette has joined #ruby
<shevy> notepad++ is quite ok on windows
<shinobi_one> RubyPanther: IMO successful small companies have mostly engineers.
<itadder> oh hmm
<RubyPanther> itadder: That is a sucky engineer for sure!
kaldrenon has quit [Remote host closed the connection]
<itadder> well a small comapny could not afford a good one
<RubyPanther> If they're doing their job, the amount of complexity will be tailored to the use case
<shinobi_one> RubyPanther: I think you're just hyping up the level of engineering too much. Most software engineers don't sit in a room on a white board every day trying to "architect" everything.
<itadder> do small company do test driven development
<redlines> What's the preferred gem for interacting with a MySQL database?
<RubyPanther> itadder: they can for a couple months
danshult_ is now known as danshultz
kaldrenon has joined #ruby
supermarin has quit [Remote host closed the connection]
<RubyPanther> redlines: any ORM
bry4n_ has quit [Ping timeout: 264 seconds]
<havenwood> redlines: Sequel
<hmbl9r> redlines, mysql or mysql2
diegoviola has quit [Quit: WeeChat 0.4.3]
<itadder> I would love to have a huge mindmap thinking of ideas
* shinobi_one googles "any ORM"
<shinobi_one> :P
supermarin has joined #ruby
<itadder> facebook started small
<redlines> thanks for the tips
<itadder> same with twitter
toastynerd has quit [Remote host closed the connection]
<shinobi_one> itadder: most tech companies started small, no?
<itadder> yea they do
rbartos has quit [Remote host closed the connection]
<RubyPanther> itadder: if you saw the legacy databases I work with, you might understand why I think these companies would have saved YEARS of developer pay by hiring an engineering consultant for 2 months at the start of their project before their devs even knew about it
bry4n_ has joined #ruby
apeiros has joined #ruby
rbartos has joined #ruby
<shinobi_one> RubyPanther: Ha my company has that exact problem. They had 3 really good software developers to start with. Guess what those people weren't great at? Database design..
<havenwood> Technical debt avoidance algorithm.
<RubyPanther> Exactly, database design can't be done by experience alone, or the sort of common sense that developers acquire
nanoyak has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
supermar_ has joined #ruby
<shinobi_one> RubyPanther: Luckily at least basic database design/analysis is taught at university level computer science education :)
<RubyPanther> it requires either a db expert, who will usually be loaded with lots of silly opinions, or an engineer who can understand the implications of the db design on the algorithms that will be needed
mlpinit has quit [Remote host closed the connection]
<itadder> RubyPanther: oh that a great point
<RubyPanther> shinobi_one: yeah, one class though
<itadder> many places do not plan out stuff
<itadder> well
<itadder> planing is very important
<RubyPanther> Sr Developers are typically actually _anti_planning_
kaldrenon has quit [Ping timeout: 240 seconds]
<shinobi_one> RubyPanther: One class is better than no knowledge at all IMO.
<itadder> RubyPanther: and why
<shinobi_one> RubyPanther: Where do you get your information from? I must know :P
<RubyPanther> bring up planning in a meeting, you'll likely get laughed at for going over the waterfall by people who don't even know what the waterfall pattern was
JBreit2 has quit [Read error: Connection reset by peer]
<itadder> some other deparment will say NO to you
jds has quit [Quit: Connection closed for inactivity]
<itadder> for planing
axsuul has quit [Ping timeout: 264 seconds]
<itadder> but why then do so much company hire project managers
thomas3141592653 has joined #ruby
<itadder> what is the role of a project manager if not plan
kpshek has quit []
<RubyPanther> or that the waterfall they laugh at never existed, and was a book that was updated by the same author to later to include ongoing changes since those are a reality ;)
<shinobi_one> itadder: because lots of mid-sized to large companies need them.
__arnold has left #ruby [#ruby]
<havenwood> I'm not sure that a higher percentage of CS grads can code than the general public. :P
<itadder> why they serve what purpose
<itadder> they don't even know tech or how to code
Shidash has joined #ruby
<shinobi_one> havenwood: I am.
<RubyPanther> The job of a project manager is usually to herd cats, not make plans
<havenwood> shinobi_one: Hmm. What percentage do you think it is about? See much difference based on where the degree is from?
<itadder> got to go bbl
rezzack has quit [Quit: Leaving.]
<RubyPanther> An engineer is a type of project manager, usually an equal peer to the person wearing the "project manager" hat
<itadder> herd cats people are not cats
gfunc has joined #ruby
<itadder> people have brains and can think for themselfs
<RubyPanther> programmers are
<itadder> I hate group think
<havenwood> itadder: some are, humanimals
rezzack has joined #ruby
<RubyPanther> cats have brains and think for themselves
<shinobi_one> itadder: Often types a project manager or project lead was a Software Engineer or Developer who moved up the ranks into a position of more management/leading/authority. Some times it's just someone who got a Masters degree (but no bachelors degree in comp sci) and knows almost nothing about programming and only how to lead projects/manage.
<havenwood> yes, cats make good pair programming partners
<shinobi_one> Often times*
Fyyr13_ has joined #ruby
flowerpot has quit [Ping timeout: 265 seconds]
<shinobi_one> RubyPanther: I think most companies would disagree with how you relate engineers to project managers.
<havenwood> shinobi_one: Would you hire a software engineer without a BS?
jxf has joined #ruby
<RubyPanther> shinobi_one: shouldn't you narrow that to "most small companies?"
GaryOak_ has quit [Remote host closed the connection]
<shinobi_one> havenwood: of course
<RubyPanther> by numbers, there are more small software companies, so in that sense it would be true
<shinobi_one> havenwood: i am a software engineer with a BA
<havenwood> shinobi_one: haha
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<shevy> \o/
<havenwood> shinobi_one: I'm a software engineer with a JD
<shinobi_one> havenwood: but really I would hire anyone capable of doing a job well.
<RubyPanther> I think IBM would have very nearly the same understanding of "engineer" as I do
<shevy> what is JD?
<havenwood> shevy: Juris Doctor
<shevy> hmmmm
<havenwood> shevy: or doctorate of jurisprudence
<shevy> isn't that a bit unusual for an engineer
joelroa has joined #ruby
northfurr has quit [Ping timeout: 240 seconds]
msch has quit [Ping timeout: 240 seconds]
<shinobi_one> RubyPanther: and no I would not limit that to small companies. It happens at Google and Amazon, and large companies all of the time.
<havenwood> shevy: a bit yeah, switched fields
crystal77 has quit [Quit: Computer has gone to sleep.]
<havenwood> shevy: actually though engineering/law overlap is surprisingly common
jonnyro has joined #ruby
vlad_starkov has joined #ruby
<RubyPanther> shinobi_one: You may have mistaken your comments, "it happens" means what happens? Companies disagree with me at Google? What?
Fyyr13_ has quit [Ping timeout: 252 seconds]
<shevy> cool havenwood
RaCx has quit [Quit: Computer has gone to sleep.]
<havenwood> shevy: i'm much happier here \o/
<shinobi_one> RubyPanther: Errr, I mean how you relate the two.
<shevy> hehe
<RubyPanther> It goes both ways, lots of undergrad engineers become lawyers, and lots of law grads/undergrads become engineers
<havenwood> shevy: i don't daydream about getting hit by a car on the way to work anymore
<shinobi_one> havenwood: lol that's good <3
<apeiros> havenwood: lol, ouch
<apeiros> that's harsh
<RubyPanther> They are closely related fields in the sense of what they do; manage arbitrary complex systems to produce arbitrary results
<RubyPanther> arbitrarily
<shinobi_one> RubyPanther: You must love statistics.
sailias has quit [Ping timeout: 252 seconds]
<shinobi_one> and correlations
Xeago has quit [Remote host closed the connection]
<RubyPanther> I hate statistics, and I don't claim to be an engineer. I claim to be a software developer who knows what the person wearing the engineering hat does.
<RubyPanther> a rare thing, for sure
vlad_starkov has quit [Remote host closed the connection]
zorak has quit [Ping timeout: 265 seconds]
bthesorceror has quit [Remote host closed the connection]
supermar_ has quit [Remote host closed the connection]
<shinobi_one> RubyPanther: Well I calim to be a software engineer, because I am one. ;)
joelroa has quit [Ping timeout: 240 seconds]
<RubyPanther> I care about what engineering is because if I attempt to apply engineering principles it improves my code
supermarin has joined #ruby
mojjojo has joined #ruby
m4n1f3st0 has joined #ruby
* apeiros is a code plow
<RubyPanther> shinobi_one: like you already said, you're a dev who also wears a software engineering hat. I do that to. But it doesn't make either of us engineers.
<RubyPanther> too
<shevy> oh man, now it is back again as to who is wearing the pink hat
<shinobi_one> RubyPanther: No, I am a software developer who also engineers. Although I do system/server administration and other things I would not consider myself a System Administrator, though.
<RubyPanther> Right, a software developer who also engineers is not an engineer.
jph98 has quit [Quit: jph98]
mando has quit [Ping timeout: 240 seconds]
<shinobi_one> RubyPanther: I am a Software Engineer who does engineering and development. I am a Software Developer who also does engineering and development.
<RubyPanther> A roofer who also does some carpentry is not a carpenter, but he may be the "carpenter" remodeling your garage.
ichilton has left #ruby [#ruby]
sailias has joined #ruby
crystal77 has joined #ruby
SHyx0rmZ has joined #ruby
<shinobi_one> RubyPanther: If I am not a Software Engineer, then how come everybody always wants to hire me as one? :(
JohnBat26 has joined #ruby
<shinobi_one> RubyPanther: I think many companies who think of software engineers as specific as you do sometimes call them Software Architects.
<RubyPanther> shinobi_one: in this field you can have any title you want. My first job with the title Software Engineer, my actual job was more like "Jr Programmer for a company too cheap to hire a Sr. Programmer"
Symbiosisz2 has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
<RubyPanther> My friend was the Software Jedi at one job, and Master of the Universe at the next
linojon has quit [Quit: linojon]
<shinobi_one> RubyPanther: I bet that looks awesome on a resume.
daxroc has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
<RubyPanther> You can write it any way you want on the resume
mlpinit has joined #ruby
klaut_ has joined #ruby
Mongey has quit [Quit: Mongey]
lutfidemirci has joined #ruby
<shinobi_one> RubyPanther: Until the company calls your reference to find out your'e a liar?
<RubyPanther> "No, his title wasn't Sr. Developer, it was Software Jedi" "Oh, what a LIAR" that is not how that conversation goes
RaCx has joined #ruby
agent_white has quit [Quit: brb]
jsilver has joined #ruby
<RubyPanther> It actually goes, "Yes, he was a Sr. Software Developer... his official title was Software Jedi" "Oh, hehe, that's just what we need"
<shevy> software jedi
<shevy> must have been using java
DouweM has joined #ruby
<shinobi_one> RubyPanther: My point was you said "you can write it any way you want on the resume". That doesn't fly if you're flat out lying does it?
pwh has quit [Ping timeout: 264 seconds]
<RubyPanther> It isn't "flat out lying" unless you're actually flat-out-lying.
diegoviola has joined #ruby
skaflem has quit [Quit: Leaving]
<RubyPanther> The words in the title is not what the position is, the duties and responsibilities are what the position is
<shinobi_one> RubyPanther: Once again, my point wasn't that your friend actually had those titles or not. I was skeptical about what you're saying about "you can write it any way you want on the resume". Because that is certainly not true.
<RubyPanther> People do in fact use silly job titles, and then use normal ones on their resume
axsuul has joined #ruby
<RubyPanther> and no, it is not considered "lying" unless there is some deception perceived. THat is just silly.
<shinobi_one> RubyPanther: Because using a silly one on their resume seems silly, doesn't it?
toastynerd has joined #ruby
<RubyPanther> Because job titles are silly, and resumes are serious.
<shinobi_one> I for one am not going to tell Google after being contacted by a recruiter that I am a "Software Jedi", but hey to each their own.
<RubyPanther> You also wait until after they agree to hire you as a "Software Developer" before you ask, "can my job title be `Flying Code Monkey?`"
jph98 has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
<RubyPanther> And then if they say yes, you still probably write the name of the position as it was listed, not the title you were given
mercwithamouth has joined #ruby
pwh has joined #ruby
<itadder> oh
<shinobi_one> RubyPanther: Actually they would hire me as Software Engineer ;)
<itadder> what about CTO RubyPanther
<itadder> the CTO has a lot of say or CIO in what development goes
<RubyPanther> maybe, maybe not
<itadder> and in my current job accounting dicatates a lot
<itadder> they say you can hire so and so consultant only for 6 months
<RubyPanther> If the CTO is related to the CEO, they probably don't even get to talk to the dev team directly, and they give their suggestions to the project manager at their weekly meeting ;)
<itadder> do people hire JR ruby programers and what task would a JR ruby person do
<shinobi_one> RubyPanther: My CTO and COO are both CEOs, and they get to talk to the dev team every day ;)
kenneth has joined #ruby
<itadder> the project managers never understand tech
<itadder> bah
<itadder> and has insane deadlines
<banister> shinobi_one there's also some people who refer to themselves as "sales engineers"
axsuul has quit [Ping timeout: 240 seconds]
<itadder> or office engineers
bradhe has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
<failshell> is there a gem that can take a JSON and insert that into a MySQL table?
<shinobi_one> banister: some people are sales engineers ;)
<RubyPanther> shinobi_one: translation: you don't have a CEO, CTO, or COO, you have a bunch of Senior VPs who run the company by committee and used silly corporate titles ;)
<banister> shinobi_one which makes the definition of 'engineer' so vague that's it's practically meaningless ;)
<banister> shinobi_one i prefer to think they're just misusing/abusing the term to puff themselves up with a fancy title
<RubyPanther> at tripwire the sales engineers made more than the dev engineers, got a share of the sales team bonuses, and got to go on the sales team holidays
snuffeluffegus has joined #ruby
<shinobi_one> RubyPanther: Uhh no, once again you're wrong. There are two owners of this company and NO committee. One is the CTO and the other is the COO and both are CEOs.
Jetchisel has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<RubyPanther> shinobi_one: I was close! Two Owners, no VPs, no CEO, no COO, no CTO
<shinobi_one> RubyPanther: Wrong again.
<RubyPanther> An owner often calls themselves CEO, but they're not one. It has a different meaning.
<shinobi_one> RubyPanther: No, these two people have the responibilities of a COO, a CTO, and CEO.
<shinobi_one> or a CTO*
<RubyPanther> An owner is not a "company officer," they're above that. You're not your own officer, that is silly. But people use silly titles, it is true.
mengu has joined #ruby
mengu has joined #ruby
zorak has joined #ruby
<shevy> I am the King of the World.
<shinobi_one> RubyPanther: You seem to not know much about how this stuff works in reality for some companies.
nateberkopec has quit [Quit: Leaving...]
<RubyPanther> If a company is doing a search for a CEO, and they get a resume from a person who owned their own business and called themselves CEO, unless their company is a household name they probably don't even get considered
<shinobi_one> a CTO has certain responisbilities that are fulfilled. An owner can do those responisibilities if they are capable of doing so.
<centrx> A captain is still an officer
<centrx> A CEO is an officer appointed by the board
RaCx has quit [Quit: Computer has gone to sleep.]
<shinobi_one> RubyPanther: This is a global business with partnerships and products sold across the world.
toastynerd has quit [Remote host closed the connection]
<banister> RubyPanther shinobi_one can u guys pls take this convo to another channel or something, or to PM, it's pretty boring at this point
<RubyPanther> Right, a CEO is an officer appointed by a board in a corporation. An owner is not one. But will often use those titles to look like a modern company.
Ziarkaen has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
maletor has joined #ruby
m4n1f3st0 has quit []
<shinobi_one> A CEO does not HAVE to be appointed or report to a board of directors. You guys are way to specific about titles.
<RubyPanther> It doesn't matter if your customers are and products are local or disparate, that doesn't tell you what an "officer" is
linojon has joined #ruby
nateberkopec has joined #ruby
<shinobi_one> Meh, I'm done. We're wasting time here, although I'm having fun debating. At least you can debate without flipping over a table <3
JBreit has joined #ruby
Umschwung has joined #ruby
<RubyPanther> There is real legal meaning to being an Officer that doesn't apply to privately held businesses. VP of Technology is not a synonym for CTO
Umschwung has quit [Max SendQ exceeded]
klaut_ has quit [Ping timeout: 240 seconds]
<shevy> centrx, is RubyPanther really half insane?
<Karu> ╯°□°)╯︵ ┻━┻)
rbartos has quit [Remote host closed the connection]
geekbri_ has joined #ruby
klaut_ has joined #ruby
<RubyPanther> wait, half insane, or partially insane?
klaut_ has quit [Read error: Connection reset by peer]
<shevy> perhaps shinobi_one is the other half
<shinobi_one> :O
<RubyPanther> who is qualified to take such a precise measurement?
<shevy> RubyPanther I assumed it was half!
dkamioka_ has quit [Ping timeout: 252 seconds]
strider24 has quit [Ping timeout: 240 seconds]
<shevy> we used to have twins in school, one of them once said "Damn, I only slept half yesterday", and a friend remarked "And what did your other half do during that time?"
Symbiosisz2 has quit [Quit: Leaving]
rbartos has joined #ruby
<shinobi_one> RubyPanther: You hit the nail on the head though, real legal meaning _that_does_not_ apply to privately held business. :P
<RubyPanther> I'm a "Company Officer" on paper, but it isn't a corporation so I'm not actually one. It does give me cover to grab a hat and put it on if the owner is on vacation, though.
Hanmac has joined #ruby
<RubyPanther> shinobi_one: Right, but that was my point all along: people choose silly titles and they're not lying, those are just silly titles!
<centrx> shevy, Further studies need to be done to determine the proportion and distribution of the insanity.
Rober9393 has joined #ruby
<RubyPanther> The ones that end in -O are the ones that have real meaning, but only within their correct domain; corps
<shinobi_one> RubyPanther: Yes, and my point was in our case these are not silly titles. If you do the responsibilities, you deserve the title. What's silly is calling subjective things silly ;p
klaut_ has joined #ruby
geekbri has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
<RubyPanther> No, if a bridge is broken and I'm the person who is there fixing it, and I fix it successfully, I am not now a "Structural Engineer," even though I did the job of one in some cases
<shevy> you should have deserved that title RubyPanther
kulturolog has joined #ruby
freerobby has quit [Quit: Leaving.]
razrunel_ has joined #ruby
<shevy> Sr. RubyPanther-fixing-a-bridge title
<shinobi_one> RubyPanther: It doesn't work in all cases of course.
<shevy> deserves a badge as well
Slavox is now known as Slavox|AFK
<shinobi_one> RubyPanther: If you engineered the bridge yourself and built it right. Hell, I'd call you a structural engineer, and you could probably land a job as one ;)
<RubyPanther> engineer has real meaning. Putting "software" in front of it is a fun thing for non-engineers to do, but they're not really engineers. Real Software Engineers are doing the exact same job as a mechanical or structural engineer, but the machine is in software
<RubyPanther> That is NOT what most devs who wear the design hat are actually doing.
mehlah has joined #ruby
IceyEC has quit [Quit: IceyEC]
hiyosi has joined #ruby
<RubyPanther> Any more than being the "engineer" who designed a doghouse was actually doing engineering when they designed it
<shinobi_one> RubyPanther: Yep most devs do not. Most devs are "cubicle code monkeys". Glad I'm not one :) no offense to anyone it's just not my cup of tea.
<centrx> I want to be a Senior Wizard
flowerpot has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
<RubyPanther> centrx: Just ask, most companies say yes if they are primarily tech companies
<centrx> I thought you were my supervisor
<RubyPanther> well, assuming you have a senior position
<shinobi_one> lol
einarj has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
mikepack_ has joined #ruby
felixflores has quit [Remote host closed the connection]
cgore has quit [Remote host closed the connection]
razrunel_ has quit [Ping timeout: 244 seconds]
jsilver has quit []
daxroc has quit [Quit: Leaving.]
toastynerd has joined #ruby
daxroc has joined #ruby
felixflo_ has joined #ruby
lachesis has joined #ruby
<apeiros> my software engineers itself. when the day is over, there is suddenly code which for some reason unbeknownst to me works. and then I go home happy, not knowing what happened.
<shinobi_one> apeiros: you and half the software development community ;)
julian` has quit [Ping timeout: 265 seconds]
<centrx> Most of my code is written by suckers on IRC
hiyosi has quit [Ping timeout: 244 seconds]
<shinobi_one> centrx: lmao
mikepack has quit [Ping timeout: 240 seconds]
<shinobi_one> that is probably so true for many ror programmers
<shinobi_one> that are in the irc i should say*
<apeiros> it's hard to find actual software developers and not just code monkeys :(
banister has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shinobi_one> apeiros: you mean software engineers
* shinobi_one trollface
codabrin_ has joined #ruby
<banister> shinobi_one do you have a github account?
<shinobi_one> banister: i do why do you ask?
<apeiros> I mean binary logic machine oriented authors
codabrink has quit [Ping timeout: 240 seconds]
<shinobi_one> apeiros: haha, nice.
<itadder> RubyPanther: as a JR ruby developer what would I be doing my first few weeks on the job
jsilver has joined #ruby
kulturolog has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
<RubyPanther> itadder: whatever you are told
<itadder> what assigments
<shinobi_one> itadder: as a jr developer you are the guy they pass crappy things to do that no one else wants to do
<itadder> would it be testing code out or working on small projects
<banister> shinobi_one just curiuos
<itadder> shinobi_one: oh
<centrx> itadder, But for you it might be advanced work
<itadder> so what ever work they do not want to do they make me do...
<centrx> itadder, So you learn it and improve
<apeiros> itadder: writing tests and documentation can be useful. lets you learn about the existing systems.
<itadder> centrx: and what are typical deadlines
<shinobi_one> banister: i don't have much there, i mostly use bitbucket for my repos as i find i don't need them to be public
<RubyPanther> depending on the complexity of the project, you might only be reading code and attending meetings. You might also be writing view helpers. You might be attempting to resolve lower priority open issues.
<itadder> oh so it would be usefull stuff even if others do not wnat to do it..
pushpak has quit [Quit: Linkinus - http://linkinus.com]
jrhorn424 is now known as zz_jrhorn424
s__dana has joined #ruby
NalloK has joined #ruby
<RubyPanther> No, I never said what it would be. I gave examples of what it might be.
<apeiros> if they let you do stuff that is not useful, then they're idiots IMO :)
zorak has quit [Ping timeout: 240 seconds]
<shinobi_one> apeiros: writing tests and documentation is useful because it gets you into the habbit of doing it, which more people need to do
<itadder> would I be able to stay late or work from home on the weekend
NalloK has quit [Max SendQ exceeded]
<itadder> do most places offer VPN on demand
<RubyPanther> there is a wide range from "staying out of the way and memorizing procedures," to doing useful work
<shinobi_one> itadder: i don't think we can answer these questions, it depends on the organization
<itadder> oh
<itadder> that true
<RubyPanther> most places offer a VPN so you can work extra hours from home, but that is not to be confused with "working from home."
<itadder> it sound like a lot of learning...
<banister> shinobi_one not very open-sourcey then? :)
<itadder> RubyPanther: oh
<shinobi_one> itadder: you might find at one all you do is write and run tests, you might find at others you're basically a noobie software developer doing the same stuff as the other ones just with a lesser title/pay, it really depends
Mongey has joined #ruby
klaut_ has quit [Remote host closed the connection]
cgore has joined #ruby
<centrx> itadder, As a junior developer starting off, you would most likely be wanted in the office normal hours to start.
<itadder> oh
<shinobi_one> banister: honestly i just don't have time to do a lot of open-sourcey stuff, a lot of what i want to do in my free time though tends to be more geared towards making money heh
<RubyPanther> If you want to know what "working from home" looks like, look around the room, most of us are doing it right this minute
<centrx> RubyPanther works from home in a padded room
<itadder> do they provide you with your pc or laptop setup like can you choose at most places what editor and shell you like...
<banister> shinobi_one open-source ultimately makes you money, as you get offered kick-ass jobs if you write a successful OSS project
<centrx> He calls it, "the Home"
<shinobi_one> centrx: luls
<RubyPanther> centrx: If only they made padded screens
<centrx> Thank you everyone! clap clap clap
<itadder> RubyPanther: that what I would like to do is work from home
<itadder> I have adhd I am very hyperactive
<RubyPanther> then I could get rid of the low res projection monitor
<itadder> and get distracted so working from home would be less distractfull
<shinobi_one> banister: yes i know, but for whatever reason all of these ideas in my head for projects aren't very good ones for open-source projects. they're more like "i'm about to create a startup and run with this idea"
<itadder> Do you use two monitors at home, what your desk setup.. I think my curent desk setup at home is making me unproductive
toastynerd has quit [Remote host closed the connection]
<banister> shinobi_one fairynuff
<RubyPanther> itadder: switch to C http://xkcd.com/303/
popl has joined #ruby
popl has joined #ruby
<RubyPanther> itadder: one monitor, 17 xterms
<shinobi_one> banister: also, i have some kickass opportunities and companies knocking at my door already, but i'm happy with where i'm at right now :)
jsilver has quit []
<itadder> how big is your monitor you have a screenshot or desktop photo shot
Sirupsen has joined #ruby
<itadder> you can run 17 xterms tmux session on a 13 inch screen
<shinobi_one> itadder: i have one 23" monitor, and one 22" monitor, although i don't typically work from home
<RubyPanther> yeah, 20-something
<itadder> does it make you productive what makes you most productive RubyPanther shinobi_one
<banister> shinobi_one fair enough, but i got offers at facebook and soundcloud on the basis of one OSS project
<shinobi_one> itadder: what makes me most productive is being interested in what i'm working on.
<RubyPanther> itadder: I had the same number of xterms on a CRT screen, but less per virtual desktop
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<itadder> what tips to trick should I have in my toolbelt to be more productive
<shinobi_one> banister: i hear ya, open-source is great stuff and a great way to show off your talent for almost free
<itadder> I wish the mavericks virtual desktop remebered all the windows placements
<itadder> after a reboot, although I hardly reboot
<RubyPanther> itadder: what makes me productive is planning before I code, usually with pen and paper. Oh, and using CLI tools
daxroc has quit [Quit: Leaving.]
<Karu> wish there was a way to speed my machine up
<itadder> so you automate a lot with CLI
<shinobi_one> Karu: there is, hardware
<itadder> SSD harddrive Karu
<havenwood> Karu: speed it up for doing what?
virtualize has joined #ruby
sigurding has joined #ruby
<itadder> I have a 19 inch screen at home and my macbook pro 13 inch
<Karu> heh. SSD is the next thing I'm looking at. But mostly everything. This machines is dragging ever since Mavericks
sigurding has quit [Client Quit]
<shinobi_one> banister: this all reminds me i need to respond back to google, it's been like a month now >:O
<itadder> I would like to get a 23 inch screen for my mac
<RubyPanther> no, I'm saying using sed on a project directory is faster than replace in an IDE
carraroj has joined #ruby
<shinobi_one> itadder: i work just fine on my 13" macbook pro
<itadder> what your folder structure
<Karu> RM takes ages to start and ages to even start invoking my test folder
<itadder> shinobi_one: oh I also have 13 inch, is your retina or none retina
basso has quit [Remote host closed the connection]
<shinobi_one> itadder: this one is retina, but a few months ago non-retina
<banister> shinobi_one i think it's more fun to work for a small startup than a big company actually, and if the startup is in NYC or sf you'll still get a competitive salary IME
<itadder> mavericks virtual desktop is a bit messy
<itadder> I liked snow leapord spaces better for certaint hings
Waheedi has quit [Quit: Waheedi]
<itadder> any good tool to mange the virtual desktop on a mac 13 inch
<RubyPanther> Karu: Uncle Bob talks about architecture, and testing, and how to speed up your tests by testing the right things: http://confreaks.com/videos/759-rubymidwest2011-keynote-architecture-the-lost-years
benlieb has joined #ruby
<banister> shinobi_one though i probably wouldn't turn down google ;)
<itadder> I spend to much time tryinti to figure out where omnifocus or mail.app or terminal or vim or sublime text is or chrome
<shinobi_one> banister: yeah i actually prefer the small company environment, i mean, if google offered me a software engineering position i'd probably take it, but yeah :P
<shinobi_one> banister: ha exactly
carraroj has quit [Client Quit]
<itadder> I want to work for small start up
<havenwood> i'm pretty happy on my 15" screen, being 3840 x 2400 makes it useable
<itadder> shinobi_one: currently I am working in a hedgefund
<havenwood> moar pixels!
<RubyPanther> speeding up your computer to speed up your tests is game you lose over and over as your tests grow constantly but your computer only upgrades periodically
jsilver has joined #ruby
<shinobi_one> itadder: i don't use virtual desktop on my mbp
sdouglas has joined #ruby
<itadder> oh you have it turned off
<banister> havenwood awesome
toastynerd has joined #ruby
<itadder> do you have a screenshot of your currenet setup
<itadder> current
<banister> havenwood how does a normal screen look to you now? :)
<shinobi_one> my current set up is a 13" mbp sometimes connected to a 23" ips monitor
<havenwood> banister: impressionist art
<banister> havenwood haha
aspires has quit []
mojjojo has quit [Quit: mojjojo]
<banister> havenwood retina ruins everything else for you i've heard :)
aspires has joined #ruby
zorak has joined #ruby
<havenwood> banister: indeed... so true.
tomshafer has joined #ruby
<shinobi_one> banister: eh, it doesn't really for me, maybe if i were a photoshopper or video-editor i could see that
<Karu> RubyPanther: No no no, it's not that the tests take that long to run, it's that they take ages to even *begin* running.
<RubyPanther> Karu: Right, he addresses why that is and how to avoid it.
<Karu> With one single test in my folder?
<RubyPanther> How can you know it isn't the right advice if you don't watch it?
diegoviola has quit [Quit: WeeChat 0.4.3]
<banister> shinobi_one you applied for google or they head hunted you?
bthesorceror has joined #ruby
<zorak> using .to_sym to make a string to a symbol, what happen if the string has spaces?
<Karu> because I have a sneaking suspicion that this is less that i've mishandled the one test in my entire project and more that my computer is in bad shape
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
<zorak> "hello world".to_sym
rodri_gore has joined #ruby
<itadder> see this is my mess http://snag.gy/mHrWU.jpg
rodri_gore has quit [Client Quit]
<shinobi_one> i wish RubyMidwest would come to minneapolis
<havenwood> zorak: :"not a problem"
<shinobi_one> banister: they've been head hunting me for a while now
rainmanjam has joined #ruby
<havenwood> zorak: Try it in Pry/irb.
<banister> shinobi_one interesting, how did they hear of you?
codabrin_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tgkokk has joined #ruby
<zorak> but symbols dont have to be without spaces in it?
<itadder> shinobi_one: is that normal or messy desktop
Mongey has quit [Quit: Mongey]
tgkokk has quit [Max SendQ exceeded]
<havenwood> linkedin? don't go there or the vultures will swarm!
<slash_nick> RubyPanther: i'm way late, but re: your definition of engineer... As someone who holds a degree in electrical engineering, i think most people in these channels have a very loose definition
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cover has quit [Read error: Connection reset by peer]
tgkokk has joined #ruby
<shinobi_one> banister: honestly i'm not quite sure, i was originally contacted on linked in, and then later contacted another time by some recruiter who "specializes in potential recruits who either know someone who works for google, or for whatever reason google wants to talk to more than an average recruit", it actually confused me
<havenwood> zorak: Symbols can have spaces.
<RubyPanther> slash_nick: I would phrase it as, they don't know any definition, but have a loose concept based on how it is used within small teams that don't have the specialty at all
<shinobi_one> banister: A. I know nobody works at Google. B. No idea how I got flagged as some special person or whatever.
benlieb has quit [Quit: benlieb]
codabrink has joined #ruby
<shinobi_one> nobody who works*
<havenwood> zorak: Though if you want to have spaces with the Symbol literal, you need to use quotes.
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Ping timeout: 265 seconds]
<itadder> should I tell my employeer that I have adhd or would that be bad idea
<itadder> if I tell hey I can code ruby but I suffer from adhd
<slash_nick> RubyPanther: an engineer has a four year degree from an accredited engineering program; has passed the fundamentals of engineering exam; has worked four years under a professional engineer, doing actual engineering (performing calculations, etc); and pass the PE (principles and practices of engineering exam)
toastynerd has quit [Remote host closed the connection]
cgore has quit [Remote host closed the connection]
<slash_nick> All of the above ^
Umschwung has joined #ruby
james_d_h has joined #ruby
<banister> itadder just get a ritalin prescription :)
pwh has quit [Ping timeout: 240 seconds]
jonnyro has quit [Quit: leaving]
mark_locklear has quit [Quit: Leaving]
Umschwung has quit [Read error: Connection reset by peer]
<slash_nick> RubyPanther: they're also held to a code of ethics that most folks around here won't have heard of
<RubyPanther> slash_nick: even without the critical step of being accredited, which software people discount, IMO they still should be able to understand the calculations and practices parts
Fyyr13_ has joined #ruby
<itadder> banister: yea I take adderal
<zorak> :"hello world" can be a symbol?
<zorak> with the quotmarks
<itadder> but I notice that with adderal my work suffer a bit
<shinobi_one> slash_nick: no dear god you brought up the engineering thing again :P
<centrx> itadder, Drop the drugs and do heavy exercise -> better than amphetamines
<itadder> I an focus but not creative
<centrx> zorak, Yes, exactly
<slash_nick> "Hold paramount the safety of the public" --- any of you ever think about that at work? some, i'd imagine
<RubyPanther> As in, doing the calculations in advance, not just doing some work and then measuring how long it took.
<itadder> centrx: oh, so I should keep goign to the GYM
<slash_nick> RubyPanther: right
<shinobi_one> slash_nick: considering we work with sensitive data, yes ;)
mlpinit has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
<zorak> wwhats about when is a user generated stantmen i took from get
<slash_nick> RubyPanther: the ability to say "this is what you need, any less is not enough... any more is going to waste your money"
<shinobi_one> zorak: i don't understand your last questino
<shinobi_one> question*
<RubyPanther> everybody works with sensitive data, the worst security I see is in CC handling
<itadder> what if I don't get my work done on time
<RubyPanther> slash_nick: Yes, _exactly_that_
mikemac has quit [Ping timeout: 240 seconds]
<shinobi_one> RubyPanther: not everybody works with sensitive customer data..
Sirupsen has joined #ruby
<itadder> I would get fired after a month>??
<itadder> I useally hyperfocus for hours if I want to get work done, but most places are 9 to 5 and close shop for the day
<shinobi_one> itadder: sometimes in this field you have to get your work done no matter what, sometimes you can't extend the deadline
mikemac has joined #ruby
<banister> itadder get a remote job then
<itadder> it not like I can stay late and work form my cube
<zorak> shinobi_one: when i as the user to make a variable with gets
<zorak> and the user dont use quotmarks
<itadder> I don't mind staying late a couple of days and just resting say on sunday
joelroa has joined #ruby
<zorak> just copy wharever he want
<shinobi_one> zorak: i don't believe i can help you, sorry
geekbri_ has quit [Remote host closed the connection]
<shinobi_one> itadder: i usually work 9 hours or so a day, and *usually* do not have to work on the weekends
<RubyPanther> shinobi_one: If you can't extend the deadline, it means you didn't learn anything from Scotty on Star Trek
<shinobi_one> RubyPanther: lol
bradhe has joined #ruby
gilcosson has quit []
Fyyr13_ has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
<itadder> shinobi_one: how do you manage to stay on task, you work from home
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<itadder> RubyPanther: LOL
<RubyPanther> or, you got stuck in one of those agile puppy mills that use data driven predictions :/
<shinobi_one> itadder: usually i do not work from home
<itadder> shinobi_one: do you work in a cube or in your own office or a open office
<shinobi_one> RubyPanther: or some deadlines are actual deadlines.
<shinobi_one> itadder: right now i'm sitting in an office, i have a cube though
bradhe has quit [Remote host closed the connection]
<itadder> I hate microsoft projects
<RubyPanther> shinobi_one: for values of "actual" that mean arbitrary, yes
<itadder> and it predections of time
<shinobi_one> RubyPanther: you crack me up xD
<itadder> shinobi_one: and you are allowed to irssi,
<itadder> what resterctio do you have with your current job and your current pc
<shinobi_one> itadder: i'm not using irssi, but yes i am allowed to be on irc
lutfidemirci has quit [Remote host closed the connection]
<zorak> what happen when i use .to_i to a non-numerical string?
<shinobi_one> itadder: no restrictions
<shinobi_one> zorak: try it!
<itadder> oh, I use limechat
<zorak> irb(main):012:0> q.to_i
<zorak> => 0
<zorak> irb(main):013:0> q
<zorak> => "q"
<zorak> this is what i get
cescalante is now known as ce_afk
* platzhirsch roars...
<slash_nick> RubyPanther: it bothers me when people claim the title "engineer" when they're far from... It's like a masseusse calling herself "doctor"
<itadder> so what are some good tips for a jr ruby developer to know for his first days at work ???
crystal77 has quit [Quit: Computer has gone to sleep.]
<shinobi_one> zorak: looks to me like it outputs a 0 doesn't it?
SHyx0rmZ has joined #ruby
<platzhirsch> slash_nick: like Software Engineer?
MrJoshua has joined #ruby
<shinobi_one> slash_nick: where are you from?
<slash_nick> developer,coder, programmer, architect, senior developer, whatever... exactlly platzhirsch.
joelroa has quit [Ping timeout: 240 seconds]
<slash_nick> shinobi_one: the US
bradhe has joined #ruby
<RubyPanther> slash_nick: or somebody who gives good foot rubs calling herself a masseuse!
<zorak> in a first momet was like convert the variable q in a 0
<shinobi_one> slash_nick: wait you're in alabama right?
<slash_nick> shinobi_one: that's right
<zorak> but when i call the variable q again dont do anithing
<RubyPanther> In Oregon massage therapists are expected to be trained and licensed
<shinobi_one> interesting
toastynerd has joined #ruby
<itadder> bbl
<platzhirsch> I like the distinction between developer/coder/hacker and software engineer
withnale has joined #ruby
<platzhirsch> because there are so many software engineering practices that make a real difference
<slash_nick> platzhirsch: engineering is a profession, regulated by various licensing boards.
<shinobi_one> zorak: that's because q = "q", q.to_i does not CHANGE the value of q, it outputs the .to_i method called on q
<zorak> irb(main):015:0> q = q.to_i
<zorak> => 0
<zorak> irb(main):016:0> q
<zorak> => 0
jobewan has quit [Remote host closed the connection]
<slash_nick> if you have no license, you are no engineer.
<platzhirsch> First and foremost it's just a word, that's the semantic you give
griffindy has quit [Quit: Computer has gone to sleep.]
<slash_nick> if you have not passed the bar, you are not a lawyer.
<slash_nick> platzhirsch: it's not me... it's long-been-so
<centrx> That is how the powers that be want it. It does not change the meaning
<shinobi_one> slash_nick: software engineers get licenses?
<csmrfx> most are coders or developers, the end
<zorak> slash_nick: not a registrer engineer do you mean
* shinobi_one laughs
<slash_nick> shinobi_one: software engineers are a misnomer if they have no license.
<platzhirsch> Well you can get a shit load of certificates as software engineer
<cout> slash_nick: I don't think that latter part is true. the bar is only required to practice law.
<shinobi_one> csmrfx: most are, agreed.
<centrx> If you do not drive a train, you are not an engineer
<zorak> an engineer is someone who solve problems
phantomtiger has quit [Quit: phantomtiger]
<platzhirsch> Then again "Software Engineer" != Engineer, so I wouldn't go so harsh on this if two words are used in conjunction
<shinobi_one> slash_nick: the real world is a misnomer if you don't live in it
<centrx> Engineer, noun: the operator of a railway locomotive
<centrx> QED
<csmrfx> I stay away from engineering, in fear of becoming narrow minded
* apeiros is an astronaut, expert and architect
<slash_nick> platzhirsch: certificates do not add up to a professional license.
<apeiros> (all unprotected titles in my country, so I can legally claim to be those)
<RubyPanther> A software engineer IS a type of engineer, or else not really one. Even though software is an unlicensed field.
<platzhirsch> I am progressive, I don't give very much about how things were done so far
<zorak> enginering is solving problems
<apeiros> software astronaut… sounds awesome. I'll put that on my business card.
<slash_nick> zorak: solve problems, create artifacts, etc... yes
<zorak> software engineer is someone who solve software probles
<RubyPanther> The test is easy: if your project was a building instead of a program, would you be an "engineer," or just the guy drawing up a design?
momigi has quit [Read error: Connection reset by peer]
<RubyPanther> An virtual machine doing a unit of work is not substantially different, to an engineer, from a physical machine doing that work
momigi has joined #ruby
dkamioka_ has joined #ruby
<csmrfx> the guy frawing the design is an architect
GaryOak_ has joined #ruby
<csmrfx> the construction engineer oversees the production of the building - soo thats bit of a difficult analogy
<shinobi_one> RubyPanther: Why can't you be both?
<RubyPanther> No, when I was younger and worked for a tree service and drew up the design for a wood shed, I was not only not an architect, I was not even a drafter
<csmrfx> thats not a "project"
<platzhirsch> beer draft
<csmrfx> thats almost a "hobby"
<RubyPanther> And at the same time, "Who engineered this shed?" I did.
<shinobi_one> csmrfx: hobbies can involve projects
<csmrfx> kik
Megtastique has quit []
dkamioka has quit [Ping timeout: 240 seconds]
<slash_nick> RubyPanther: :) engineering does not an engineer make :)
<shinobi_one> at this point in time it feels the definitions of a software engineer, at least in this channel, are highly subjective
<platzhirsch> Developers like to see themselves as building constructionist, laying out the architecture, etc. but software development is really like gardening
<csmrfx> I call myself an entrepreneur
<slash_nick> unless you've done it for four years under the supervision of a professional engineer and have met all the other requirements
matchaw has joined #ruby
<csmrfx> gets you more pussy than "engineer" ;)
mikepack has joined #ruby
<platzhirsch> sexist
<shinobi_one> csmrfx: lmao
<csmrfx> with just a few more letters!
<platzhirsch> btw. Hustler is the one title to end them all
<shevy> platzhirsch only if he would not have to lie ;)
<platzhirsch> Hustler, PhD.
Naoe-Kanno has joined #ruby
<shinobi_one> Hustler, gets you more pussy AND money than an engineer.
<shevy> lol
<RubyPanther> It is like saying the definition of a chef is subjective, just because lots of untrained cooks call themselves chefs. Same with engineers, if they're trained they might be a chef, if not, maybe only 1/100 that give themselves the title are actually chefs. The rest are talented cooks, maybe even expert cooks.
SHyx0rmZ has quit [Ping timeout: 240 seconds]
<slash_nick> Hustler, the first strip club i visited
<csmrfx> yeah well I'm also a Reverend Of The Universal Cult Of Love with marrying rights in IL, MO and TN
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Megtastique has joined #ruby
<shinobi_one> slash_nick: sounds nice
<RubyPanther> My wife's job title is Head Chef, but she isn't a chef. She's actually a Kitchen Manager.
YamakasY has joined #ruby
jackneill has quit [Remote host closed the connection]
<slash_nick> shinobi_one: bourbon street, new orleans
<shinobi_one> RubyPanther: lol funny how different situations have different situationally different outcomes
lutfidemirci has joined #ruby
<shinobi_one> <s>different</s>
zachallett has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 240 seconds]
<csmrfx> hm, or was it Universal Being - I forget
awkisopen has quit [Changing host]
awkisopen has joined #ruby
<shinobi_one> slash_nick: meh we don't have too many decent strip clubs around here, one or two decent gentleman's clubs as they call them though
<platzhirsch> Anyway, how is doing everyone so far? I have been absent for some days/weeks
chipotle has joined #ruby
<RubyPanther> Compare a title like "entrepreneur." All you need to be a real one is to start a business, and make some money off it. Or even, start a business, and not have given up yet.
<itadder> or CEO
<platzhirsch> CTO
<RubyPanther> No, CEO has real meaning.
nfk has quit [Quit: yawn]
<itadder> some CEO do a lot of work day to day and others do not
<csmrfx> oh, its Universal Life Church
<itadder> oh what about CIO
end_guy has joined #ruby
monsieurp has quit [Quit: Lost terminal]
<platzhirsch> LSD
<shinobi_one> RubyPanther: CEO has real meaning to you when it's a publicly owned company :P
<slash_nick> itadder: pick-a-letter...CIO, CEO, CTO, COO, CFO...
<shinobi_one> slash_nick: F
<RubyPanther> CTO has real meaning. It means either you're a company officer (a legal title) in a corporation... or NOT one. VP of Technology is often called a "CTO" these days, but they are not actually a CTO.
<csmrfx> RubyPanther: yes, exactlt - I especially like the "make money" part!
<itadder> lol
mikepack has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby
prc has joined #ruby
Krajsnick has joined #ruby
<itadder> what about security officer
sdouglas has quit [Remote host closed the connection]
<RubyPanther> It has real meaning all the time, that there is no _consequence_ of using the term wrong in a private corporation means you can do it. It doesn't make it the correct term.
<RubyPanther> "private company
timonv has quit [Remote host closed the connection]
albedoa has joined #ruby
mdpatrick_ is now known as mdpatrick
<shinobi_one> RubyPanther: I'm sorry, but you'd have to show some legal definition that says CTO has to exist in a public company ONLY.
<RubyPanther> False.
<RubyPanther> THat is a false metric.
<centrx> Fals!
<centrx> >> false
<eval-in> centrx => false (https://eval.in/115922)
Rober9393 has quit [Ping timeout: 265 seconds]
hrs_ has joined #ruby
<csmrfx> I'd say you just need a real company that has actually appointed someone as CTO (possibly board)
<RubyPanther> There is no reason for the definition to have to include a negative part. It is enough that it is defined as to where it DOES apply; a corporation.
<shinobi_one> csmrfx: And the reason none of this matters is the beginning of your sentence "I'd say". You can say whatever you want. I don't mind :)
toastynerd has quit [Remote host closed the connection]
<shinobi_one> RubyPanther: Where is the definition?
hrs_ has quit [Client Quit]
<csmrfx> but it's true
<csmrfx> uh, its
<RubyPanther> shinobi_one: Company Officer has real legal meaning, it is covered in a lot of places
<RubyPanther> You could use law books, business books, etc
<slash_nick> company officers, those are the ones whose asses are on the line right?
<shinobi_one> RubyPanther: I can't find this definition of Chief Technology Officer anywhere on the internet. P
<csmrfx> CEO has extra responsibilities before law
aspires has quit []
Rober9393 has joined #ruby
<csmrfx> CTO does not share those, necessarily
dkamioka has joined #ruby
<RubyPanther> Compare VP of Technology to CTO. VP can mean almost anything, though it usually means some specific things. But the meaning depends on the _job_description_ not the title. The title of Company Officer has real implications, that is why those titles exist; because they are not just a type of VP
cover has joined #ruby
<csmrfx> no no no
cover has quit [Changing host]
cover has joined #ruby
<shinobi_one> I have to disagree.
<csmrfx> a VP is a member of the board
<csmrfx> uh, has to be, even
agjacome has quit [Quit: leaving]
<centrx> Quod?
<csmrfx> the chiefs/officers can be just employees
<csmrfx> again, different type of responsibilities before law, too
<shinobi_one> The internet disagrees with you RubyPanther. haha
<apeiros> still at this? :D
<shinobi_one> apeiros: you brought it back up!
<shinobi_one> lol
<apeiros> what what whaaat?!?
dkamioka_ has quit [Ping timeout: 240 seconds]
<shinobi_one> oh nevermind
<shinobi_one> it was slash_nick :P
<apeiros> phew
Rober9393 has quit [Ping timeout: 252 seconds]
<itadder> hahaha managers love java becuase if you can show 100 lines of codes that a lot of work done
<itadder> larry wall to funny
<itadder> now I understand why manager push java
<shinobi_one> >.>
<itadder> and java jobs can be outsourced easily
<itadder> bah
<csmrfx> well push jruby at manager
RaCx has joined #ruby
<slash_nick> shinobi_one: say wha?
<itadder> why write 100 line of code when you could do couple of lines
<RubyPanther> That the internet agrees and disagrees with me is a fact of the Universe. Both remain true no matter what I say.
<shinobi_one> slash_nick: you were the one to bring up the engineering thing again after we finally stopped discussing it :P
axsuul has joined #ruby
<itadder> okay I am heading home
thumpba_ has joined #ruby
aspires has joined #ruby
<slash_nick> okay, let me clarify... you can call yourself an engineer all day, doesn't mean you can practice engineering without it being a crime.
matchaw_ has joined #ruby
yubrew has quit [Remote host closed the connection]
<apeiros> itadder: every job can be easily outsourced. the crux lies in getting a better solution by outsourcing
<slash_nick> you'll just be an engineer who doesn't practice engineering
<shinobi_one> slash_nick: I'm a Software Engineer as defined by most companies standards of what they consider a Software Engineer. ;)
razrunel_ has joined #ruby
<slash_nick> shinobi_one: cool, but you're not a practicing engineer. you're less than.
<shinobi_one> slash_nick: if you say so :P
matchaw has quit [Ping timeout: 264 seconds]
Butcho has joined #ruby
mikecmpbll has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
phantomtiger has joined #ruby
<itadder> not always a better product when outsourced just cheaper
<itadder> okay bbl
<itadder> going to train station
<csmrfx> maybe you can engineer a licence and become a licence engineer
<shinobi_one> itadder: usually not a better product, but yes
<slash_nick> but you can go to school and take the exams and practice for a while under an engineer... then you'll be a real one :)
itadder has quit [Remote host closed the connection]
Butcho has quit [Client Quit]
Xeago_ has quit [Remote host closed the connection]
Rober9393 has joined #ruby
<RubyPanther> Everybody disagrees with me, except for the one real engineer. I'm gonna say I won. ;)
evenix has quit [Remote host closed the connection]
* apeiros 's dream is to become a certified destroyer of dreams
hiyosi has joined #ruby
aspires has quit [Read error: Connection reset by peer]
thumpba has quit [Ping timeout: 241 seconds]
* apeiros hands RubyPanther, the winner, an internet. congratulations!
<RubyPanther> apeiros: I can sell you that cert for $50
<shinobi_one> slash_nick: if i wanted to waste my time i could maybe find a way to do that for software engineering
evenix has joined #ruby
paulfm has quit []
* slash_nick high fives RubyPanther
bthesorceror has quit [Remote host closed the connection]
<RubyPanther> yay! an internet! I'm gonna keep it!
aspires has joined #ruby
<apeiros> RubyPanther: are you a certified destroyer of dreams certifier?
<kayloos_> Certified Useless Discussion Winner!
* RubyPanther high fives slash_nick
bthesorceror has joined #ruby
sailias has quit [Ping timeout: 244 seconds]
<shinobi_one> slash_nick is a software engineer who practiced for 4 years under a software engineer and took exams to become a software engineer?
<slash_nick> shinobi_one: i am not a software engineer. i am a software developer, a coder. I am less than. like you :)
<RubyPanther> apeiros: I used to be a Brainbench Certified Master Programmer, if I certify myself as a uncertified certificate authority, it won't be the silliest cert I've had
failshell has quit []
<centrx> If a mechanical engineer (PE) decides to become a software engineer, does his PE certification carry over?
<apeiros> RubyPanther: you also have an MCSE?
<shinobi_one> slash_nick: lol nah bro, I'm a Software Engineer xD
<slash_nick> if a company wants to call me a software engineer, i'll ask for a more meaningful title.
popl has quit [Quit: Touch the frog.]
<apeiros> (since you say you had sillier certs…)
zorak has quit [Read error: Connection reset by peer]
danshultz has quit [Remote host closed the connection]
<RubyPanther> apeiros: I considered it, but I found out I'm allergic to MS
phantomtiger has quit [Client Quit]
<apeiros> ok, so there's a lower bound to silliness :D
razrunel_ has quit [Ping timeout: 264 seconds]
matchaw has joined #ruby
RaCx_ has joined #ruby
danshultz has joined #ruby
<slash_nick> centrx: yeah it carries across disciplines but it's unethical to practice in a discipline you don't have knowledge of.. make sense?
RaCx has quit [Ping timeout: 264 seconds]
RaCx_ is now known as RaCx
<shinobi_one> just follow these 5 easy steps! http://www.wikihow.com/Become-a-Software-Engineer
matchaw_ has quit [Ping timeout: 244 seconds]
<shinobi_one> lol
danshultz has quit [Read error: Connection reset by peer]
<RubyPanther> When they sent me an evaluation copy of Win 2000 Server, i checked ebay and it was only going for $500 so I used it as a coaster instead. It lasted over 5 years, I'm gonna say MS makes a very stable coffee platform.
felixflo_ has quit [Remote host closed the connection]
<shinobi_one> slash_nick if Google offers you a job and you ask for a more meaningful title i would love to hear the response
<slash_nick> shinobi_one: that's a McWebsite
<shinobi_one> slash_nick: it's hilarious
felixflores has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
toastynerd has joined #ruby
dblessing has quit [Quit: dblessing]
bthesorceror has quit [Ping timeout: 240 seconds]
<centrx> slash_nick, So you are saying a Mechanical Engineer with a PE and no coding experience can be a "Software Engineer", but a person with ten years experience in software engineering cannot be a "Software Engineer" without certification?
<slash_nick> shinobi_one: if they have me working underneath a PE, I wouldn't. If I'm getting my very own cubicle and the wrong title, I would.
evenix has quit [Ping timeout: 269 seconds]
<shinobi_one> slash_nick: lol you crazy
<slash_nick> centrx: i'm saying anyone can be a software engineer... but most software engineers aren't licensed engineers. they just like the word.
felixflores has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
SCommette has quit [Quit: SCommette]
felixflores has joined #ruby
<slash_nick> "call it that, it'll sell better"
<csmrfx> I think we all got that
<shinobi_one> slash_nick: this industry (from my experience) tends to separate a software engineer from a software developer based on the roles they play in the company, not a stupid license (that no one has)
Es0teric has joined #ruby
SCommette has joined #ruby
smathieu has joined #ruby
<csmrfx> software engineer is what companies always want, and software developers are what they always end up hiring
sepp2k has quit [Read error: Connection reset by peer]
<b00stfr3ak> can anyone explain what text does in this to_proc? .collect(&:text)
<shinobi_one> it's more about the real world, and not about papers
<RubyPanther> A mechanical engineer could architect software with enough time and documentation. A software developer with "engineer" in their title would not likely have success at designing a clock or other mechanical device of any complexity just from being given the correct formulas and requirements
danman has quit [Quit: danman]
<slash_nick> there's a good list of ABET recognized disciplines... wow, software is on it. which means you accepting the title is even more bonkers.
smathieu has quit [Remote host closed the connection]
<shinobi_one> slash_nick: it doesn't matter.. nobody cares about a license for software engineers, thus you shouldn't either
<slash_nick> i'll just program myself to s/engineer/larper/
smathieu has joined #ruby
YamakasY has quit [Remote host closed the connection]
<centrx> b00stfr3ak, What is your question exactly?
<shinobi_one> slash_nick: google doesn't care about the license, so you shouldn't either
<RubyPanther> a virtual machine is just a machine. but software development relies generally on engineers of yesteryear having abstracted the machine away for you, so that you can just do some technical writing and feed it into the computer
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
<shinobi_one> slash_nick: believe in the google, the google knows all
dayepa has joined #ruby
<shinobi_one> RubyPanther: way to overly simplify software developer's jobs!
<b00stfr3ak> centrx: just never seen the text part before. I know what (&:to_i) does, but not sure what (&:text) does. What does text mean/do? Or where can i look? The doc's only show to_s
<RubyPanther> Like the song says, "a program is just words" http://s3.amazonaws.com/mislav.baconfile.com/poignant-guide%2Fchapter-3-chunky-bacon.mp3
codeitagile has joined #ruby
cover_ has joined #ruby
NalloK has joined #ruby
griffindy has joined #ruby
<RubyPanther> shinobi_one: You might just have an over-simplified understanding of technical writing if you think it over-simplifies what a software dev does ;)
NalloK has quit [Max SendQ exceeded]
<centrx> b00stfr3ak, It is not a common method in the core library
<slash_nick> shinobi_one: where's your stamp? http://www.tbpe.state.tx.us/images/firmstamps/SealFirm2.jpg
<centrx> b00stfr3ak, Maybe it is related to some gem you are using?
cover has quit [Ping timeout: 252 seconds]
<shinobi_one> "you can just do some technical writing and feed it into the computer" sounds pretty simple to me!
<slash_nick> shinobi_one: you do get a stamp, right?
<RubyPanther> It is basically the exact same job, but the technical writer writes for the humans and the programmer writes for the computer. Neither is designing a machine.
<slash_nick> shinobi_one: because... engineers have stamps.
<shinobi_one> slash_nick: dafuq is a stamp
<slash_nick> the thing that certifies an actual engineer signed off on the design
<shinobi_one> slash_nick: google cares not about stamp, i cares not about stamp.
<b00stfr3ak> centrx: maybe, i'll check it out
msmith has quit [Remote host closed the connection]
<csmrfx> b00stfr3ak: I believe it calls text on the object passed to the collect block and returns the result
<b00stfr3ak> centrx: using nessus-xmlrpc
<RubyPanther> Except, like, Tenderlove and crap (<3 <3 <3) like Journey. That is what a software machine actually looks like. http://www.confreaks.com/videos/782-magrails2011-pattern-matching
<shinobi_one> lol that pattern matching rails routes video again
felixflores has quit [Remote host closed the connection]
maletor has joined #ruby
<RubyPanther> Eventually somebody will watch it. They might even learn something.
<shinobi_one> I've seen it a couple times. I enjoyed it. He's a fun guy.
smathieu has quit [Ping timeout: 264 seconds]
<RubyPanther> I don't like the fun parts, but the dry parts are very entertaining.
<shinobi_one> Interesting
NalloK has joined #ruby
julian` has joined #ruby
mansi_ has quit [Remote host closed the connection]
cina has quit [Quit: leaving]
NalloK has quit [Max SendQ exceeded]
mansi has joined #ruby
rbartos has quit [Remote host closed the connection]
<shinobi_one> I should totally get this engineering qualification, just to be an ass :D
mjs2600 has quit [Remote host closed the connection]
<slash_nick> shinobi_one: it wouldn't make you an ass... it'd make you a professional.
larissa has quit [Quit: Leaving]
<slash_nick> shinobi_one: plus, you'd get a stamp.
<shinobi_one> slash_nick: I am a professional already. Hence the degree and experience.
<shinobi_one> slash_nick: the stamp DOES look nice I have to say
<csmrfx> wow
<csmrfx> does a degree make you a professional
bthesorceror has joined #ruby
<csmrfx> hot news flash
<kayloos_> Who wants to be an engineer.... Computer Scientist is the new cool thing
<slash_nick> csmrfx: no it does not.
Lewix has joined #ruby
<shinobi_one> kayloos_: haha
NalloK has joined #ruby
<shinobi_one> csmrfx: the combination of the two does xD
<terrellt> Woah woah, wait
randomnick_ has quit [Quit: Leaving]
npearson has quit [Ping timeout: 244 seconds]
<terrellt> Software Engineering doesn't have an official licensing agency like engineers do, no?
NalloK has quit [Max SendQ exceeded]
tgkokk has quit [Quit: Textual IRC Client: www.textualapp.com]
<csmrfx> I think you can join IEEE and whatevs if you want
jragon has quit [Ping timeout: 240 seconds]
Sawbones has quit []
mansi has quit [Ping timeout: 244 seconds]
<slash_nick> terrellt: ABET recognizes it...
flowerpot has quit [Remote host closed the connection]
Rober9393 has quit [Ping timeout: 264 seconds]
jjbohn is now known as jjbohn|afk
dkamioka_ has joined #ruby
mando has joined #ruby
matchaw_ has joined #ruby
<terrellt> slash_nick: The IEEE one?
dapz has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
matchaw has quit [Ping timeout: 240 seconds]
<slash_nick> terrellt: it spans disciplines... Accreditation Board for Engineering and Technology
<shinobi_one> haha they don't even have one in my state for software engineering a 4 year bachelor's
<shinobi_one> probably because nobody cares!
<slash_nick> "In addition to establishing their own licensing requirements, each state also punishes acts of professional engineering without a license differently. However, anyone who commits a criminal act of unlicensed professional engineering faces a range of penalties regardless of the state in which the acts occur."
dkamioka has quit [Ping timeout: 240 seconds]
Rober9393 has joined #ruby
<centrx> Several states require a license to be an Interior Decorator
maroloccio has joined #ruby
<terrellt> Good.
<terrellt> If they want to color my drapes they better be a pro.
<csmrfx> "In addition to forcing you to wear a bandana identifying you as an Software Engineer, each state also punishes SEs by cordoning their habitat from the general public..."
<shinobi_one> ^ lmao
<stringoO> what's the best way to get a hash without certain keys - the reject method?
mary5030 has quit [Remote host closed the connection]
<shinobi_one> stringoO: your question is vague
<csmrfx> hash minus hash with the keys?
DrShoggoth has quit [Quit: Leaving]
<shinobi_one> stringoO: can you be more specific?
<stringoO> i have a hash from a form submission
<stringoO> i want to pass this to a function, but without the password field
mikepack_ has quit [Remote host closed the connection]
<terrellt> h.select{|k,v| !rejected_keys.include?(k)}
mikepack has joined #ruby
<stringoO> thanks @terrellt!
<terrellt> If you're in Rails, check out #except
<albedoa> heeey guys, in my terminal @ = alias and * = ???
<csmrfx> haha, I was dreaming again
aspires has quit []
<slash_nick> albedoa: whaaaaa?
Slavox|AFK is now known as Slavox
<albedoa> err @ = sym link and * = ???
<csmrfx> I would do hsh.delete("key", "entry", "etc")
<shinobi_one> what's wrong with hash.delete(:password_field) ?
Rober9393 has quit [Ping timeout: 265 seconds]
<slash_nick> albedoa: can you paste what's in your terminal? having a hard time understanding
<shinobi_one> albedoa: * means executable?
<albedoa> erb* ri-ruby-1.9.3-p448@proj@ erb-ruby-1.9.3-p448@
aspires has joined #ruby
<shinobi_one> albedoa: means executable.
<albedoa> okay ty
rbartos has joined #ruby
matchaw has joined #ruby
yarou has quit [Remote host closed the connection]
matchaw_ has quit [Ping timeout: 240 seconds]
lutfidemirci has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
lutfidemirci has joined #ruby
james_d_h has quit [Ping timeout: 252 seconds]
cjsarette has quit [Ping timeout: 245 seconds]
joelroa has joined #ruby
<itamaryu> Hi guys, do you have any ProTip how to find memory leak ?
DrShoggoth has joined #ruby
cjsarette has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
<slash_nick> itamaryu: submerge the system and look for air bubbles
<itamaryu> I'm using Ruby 1.9.3p0 + Rails 3.2.17 and my 13 ruby instances taking 1.9GB (!!) memory
<slash_nick> oh, oh... a -memory- leak. i forget.
gfunc has quit [Remote host closed the connection]
csmrfx has quit [Quit: leaving]
toretore has quit [Read error: Connection reset by peer]
<terrellt> I recommended .select because I don't like getting returned a hash of deleted keys.
nanoyak has joined #ruby
RaCx has joined #ruby
jph98 has quit [Quit: jph98]
cjsarette has quit [Excess Flood]
<itamaryu> so what would you suggest for -memory- leak ? any pills ? :)
jjbohn|afk is now known as jjbohn
kobain has joined #ruby
<Soulcutter> ruby-prof
<RubyPanther> itamaryu: 13 copies of rails taking 2G does not imply a leak, it implies you need a sysadmin
joelroa has quit [Ping timeout: 252 seconds]
<RubyPanther> to optimize the number of processes. You're probably just running too many
jbueza has quit [Quit: Textual IRC Client: www.textualapp.com]
cjsarette has joined #ruby
<terrellt> Maybe he has 13 cores!
<terrellt> You don't know him!
yubrew has joined #ruby
<apeiros> he has 16. 1 is for the OS, 1 for the cron jobs, and 1 for ssh sessions.
<RubyPanther> lol if he has 13 cores and 2G of RAM is a cause for concern, then he needs a sysadmin worse than I thought ;)
bradhe has quit [Remote host closed the connection]
<RubyPanther> I'm not a sysadmin, but I do have the hat
<shinobi_one> RubyPanther: wait.. you're not a SysAdmin Engineer? :O
jonr22 has joined #ruby
dayepa has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 245 seconds]
NalloK has joined #ruby
<RubyPanther> shinobi_one: I am also not a Systems Engineer ;)
<RubyPanther> but he needs an admin
<shinobi_one> lol sounds like he does
NalloK has quit [Max SendQ exceeded]
olivier_bK has joined #ruby
<RubyPanther> engineers already built apache
<shinobi_one> were they... certified?
DrShoggoth has quit [Quit: Leaving]
hobodave has quit [Ping timeout: 244 seconds]
<shinobi_one> lol
yarou has joined #ruby
dkamioka_ is now known as dkamioka
<RubyPanther> considering it was built pre-.com, yeah, I'm sure they had lots of letters next to their names
<shinobi_one> I wish I had a real linux system/web administrator.
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<terrellt> We have one!
<shinobi_one> terrellt: lucky
* shinobi_one jealous
<RubyPanther> wtf is a web admin? Is that like a "webmaster?"
soheil has joined #ruby
<terrellt> I still do a lot of it. Devops is a real thing.
yubrew has quit [Ping timeout: 241 seconds]
meatherly has quit [Remote host closed the connection]
sparrovv has joined #ruby
<shinobi_one> RubyPanther: it's whatever you want it to be ;)
<arubincloud> I want it to be a guy sitting on a throne who rules the web.
<shinobi_one> arubincloud: i like that
<RubyPanther> Protip: don't let your network admin wear the sysadmin hat, or you'll end up not being allowed compilers on your webserver and you'll be coding in java
MilleOttantaNove has joined #ruby
Bira has joined #ruby
<shinobi_one> RubyPanther: lol
<platzhirsch> nice
<arubincloud> Not allowing compilers on web servers is generally a good idea.
<RubyPanther> See! Real people really believe in this.
Krajsnick has quit [Remote host closed the connection]
<platzhirsch> It's at hing
<terrellt> That would -suck-
<platzhirsch> grass root movement
<RubyPanther> Been there, lived it. Yes, it sucks.
<shinobi_one> lol
<RubyPanther> Well, we used C not Java, so it wasn't thaaaat bad
<apeiros> why'd you need a compiler on a webserver if you have a real infrastructure?
bradhe has joined #ruby
lutfidemirci has quit [Remote host closed the connection]
<RubyPanther> apeiros: because interpreters are a type of compiler
lutfidemirci has joined #ruby
<apeiros> err, no
<RubyPanther> err, yes. really.
<apeiros> that's why they have a different name.
<shinobi_one> And it begins.
<apeiros> because they, um, interpret. and don't compile.
<kayloos_> Let the hunger games begin!
<RubyPanther> apeiros: dig into the technical meaning of interpreter, and you'll find out there isn't one except that each language has locally defined it
<apeiros> RubyPanther: wait.
<apeiros> *bzinngg*
<apeiros> done.
rbartos has quit [Remote host closed the connection]
<apeiros> still different.
<shinobi_one> lmao
<apeiros> your turn to dig.
<RubyPanther> An example of a compiler and an example of an interpreter, they will look different. That isn't the same as defining them, and then trying to fit the definition to the range of actual examples.
<RubyPanther> Is java compiled? Or interpreted? Depends who you ask. That is a fact.
toretore has joined #ruby
<apeiros> RubyPanther: you know, if I hadn't learnt that arguing with you is wall-talking, I'd actually be somewhat interested in that discussion.
<shinobi_one> Java is compiled to byte code xD
<platzhirsch> Java is compiled, the Java Byte Code is interpreted?
<arubincloud> RubyPanther: Both.
<RubyPanther> Does perl compile and then run the code, or is it an interpreter?
ikaros has quit [Remote host closed the connection]
<RubyPanther> arubincloud: Exactly!
<arubincloud> Most languages do exactly what Java does, but the compilation step is not separate.
<shinobi_one> Java is compiled no matter how you look at it.
<shinobi_one> To byte code.
<arubincloud> shinobi_one: So are most other languages.
lw has joined #ruby
<shinobi_one> I would love to hear an argument against Java being compiled.
<apeiros> silly guys
<apeiros> the language does NOT define whether it's interpreted or compiled.
<hmbl9r> shinobi_one, for the right price, i'll write you a java interpreter
<apeiros> the interpreter/compiler defines that.
<apeiros> you can interpret C. you can compile JS.
claymore_ has quit [Quit: Leaving]
<shinobi_one> hmbl9r: no ty ;)
<hmbl9r> point is, being interpreted/compiled is not a feature of a language
<RubyPanther> itamaryu: the problem is that 4 rails processes take about the same total computer time as 8, for n requests. But they use different amounts of RAM. You shouldn't care about the number of cores because the CPU will only be your bottleneck when there is sucky code (or in rare cases that are CPU intensive)
<hmbl9r> but of a specific implementation of a language
andrewlio has quit [Quit: Leaving.]
<shinobi_one> RubyPanther: his rails web app could be doing bitcoins who knows
linojon has quit [Quit: linojon]
<RubyPanther> Right, you can compile JS, or interpret C. It is fuzzy, it depends what exactly you're doing. There isn't a clear technical definition that will fit the actual cases.
<itamaryu> So how should I start ?>
<RubyPanther> shinobi_one: that would be very sloppy code, it should be in an external process ;)
<itamaryu> and is there a way to do it in dev env ?
<RubyPanther> so yes, we can know that without knowing what he's doing :)
soheil has quit []
<hmbl9r> RubyPanther you are a retard
<hmbl9r> get a job
<shinobi_one> :O
<RubyPanther> itamaryu: If you don't have access to a sysadmin, just reduce the number of processes until the memory usage is what you think is optimal
<centrx> L.O.L
<apeiros> RubyPanther: there actually is. are. c2 and WP gladly supply you with plenty.
<kayloos_> (╯°□°)╯︵ ┻━┻)
<apeiros> hmbl9r: behave
dkamioka_ has joined #ruby
<itamaryu> how can I know if there is a bitcoin mining on my machine ?
<apeiros> hmbl9r: insults are not tolerated here.
<shinobi_one> haha oh my god
<RubyPanther> apeiros: there are lots of definitions, yes, they aren't all compatible with each other though
<shinobi_one> i just died inside
<platzhirsch> when you have a method like top_5_words do you think it would be swell to allow top_integer_words methods by using the undefined_method method?
pangur has joined #ruby
Symbiosisz has quit [Remote host closed the connection]
<apeiros> shinobi_one: oy, go to a doctor?
pwh has joined #ruby
momomomomo has quit [Quit: momomomomo]
<RubyPanther> If you have this conversation with compiler engineers, they generally agree the differences are fuzzy.
<shinobi_one> apeiros: it's too late.. i'm dead inside..
<apeiros> dying inside sounds serious
<hmbl9r> apeiros, his constant spewing of bullshit is an insult to this channel
Symbiosisz has joined #ruby
bry4n_ has quit [Ping timeout: 240 seconds]
<RubyPanther> It is known as a fuzzy definition.
<platzhirsch> err method_missing
<epochwolf> hmbl9r: the answers are yes, no.
<platzhirsch> Use method_missing to implement all kinds of top_number_words
<shinobi_one> epochwolf: lol
<apeiros> hmbl9r: yeah, he can be annoying. however, your client certainly has /ignore
<pipework> hmbl9r: No it isn't.
<RubyPanther> The set that is compilers and interpreters is easy to define inclusively, but the line between them is not.
<pipework> He's our beloved resident troll.
<shinobi_one> guys guys.. we haven't addressed itamaryu's issue of not knowing if he's mining bitcoins
Slavox is now known as Slavox|AFK
MilleOttantaNove has left #ruby ["Sto andando via"]
<hmbl9r> gah
<epochwolf> shinobi_one: that's really easy to check, what's using 97% of the CPU.
<centrx> Bitcoin failed to compile on my system :(
<pipework> shinobi_one: In an abstract way, we're all mining bitcoin.
<pangur> @folks.each do |person|; puts person.show; end shows me people's names but the lines are double-spaced. What should I look for to make the line-spacing single-spaced, please?
<shinobi_one> pipework: >.<
<itamaryu> shinobi_one: thanks !
<epochwolf> pipework: I do my mining offline.
rbartos has joined #ruby
<apeiros> maybe we need a kickvote system
<pipework> I do my mining where it belongs. In the bedroom.
<shinobi_one> apeiros: eh that's probably the wrong way to go
dkamioka has quit [Ping timeout: 240 seconds]
<apeiros> but I'm not yet willing to kick somebody for bullshitting around.
<pipework> apeiros: Maybe we need a way to silently +q vote people.
<shinobi_one> apeiros: that's how you end up with cliques of "righteous" people votekicking whomever they dislike
<pipework> Hellban them for a chunk of time.
tjr9898 has quit [Remote host closed the connection]
<apeiros> shinobi_one: slashdot has an efficient way to do that. though activity detection is a bit of an issue in irc.
axsuul has quit [Read error: Connection reset by peer]
<RubyPanther> For us old fogies it is actually a historical thing; servers often weren't allowed compilers, and there was debate even over if java was allowed, with different shops going different directions on that point. Eventually we know that in the case of Java, a consensus was found that it is compiled-enough. And in Perl, it is not compiled enough normally, but if you save the bytecode... then it is debatable with different shops still goin
<RubyPanther> g different ways on it
<itamaryu> Here is my 'top' command : http://pastebin.com/k30qvqF8
<epochwolf> pipework, hmbl9r, and epochwolf hellbanned for 24 hours in 3... 2... 1...
<itamaryu> what do you think ?
axsuul has joined #ruby
<shevy> I wanna keep RubyPanther
<pipework> epochwolf: Feature.
<RubyPanther> So, people claim I'm a troll just for thinking it is debatable... when it is a historical debate... it is comical, but sad.
<pipework> shinobi_one: You'll have to water and feed him. Talk him and all that.
<pangur> @folks < p where p=Person.new(title, fore, surn) puts the names into @folks. Where do the extra blank lines come from?
<epochwolf> shevy: you can keep him, the rest of us don't want him.
<shinobi_one> itamaryu: dry reducing the number of unicorn and sidekiq instances
<shinobi_one> try*
<RubyPanther> epochwolf, speaker for all!
<shevy> epochwolf yay, we'll keep him in the channel!
<RubyPanther> oh, wait, he was just lying.
<epochwolf> shevy: works for me. :D
<shinobi_one> pipework: lol
<shevy> you gotta admire his endurance
<pipework> Walk him*
<epochwolf> shevy: pipework's endurance is stuff of legends.
maletor has quit [Quit: Computer has gone to sleep.]
<shinobi_one> pipework: i liked water better ;)
<shevy> I've been writing some ruby code the last hour or so, I come back and there is *still* talking about what started like 2 hours ago
<RubyPanther> He's not old enough to have had endurance.
<apeiros> shevy: not true!
<shevy> epochwolf nah, pipework is totally helpless without documentation
<shinobi_one> shevy: no no, different conversation now, moved on to compilers/interpreters
* pangur has googled how to remove unwanted lines in Ruby
<apeiros> shevy: it moved from C*O/titles to interpreters vs. compilers.
<itamaryu> shinobi_one: I already reduced the number of instances of, didn;t help much
<shevy> shinobi_one I see; I have to admit, I did not follow it too closely ;-)
NalloK has joined #ruby
razrunel_ has joined #ruby
<pipework> I'm old enough to know that I'm too young to give half a fuck about most opinions in here.
maletor has joined #ruby
mlpinit has joined #ruby
Bira has quit [Remote host closed the connection]
<pipework> except apeiros. He's a cool cat.
<apeiros> pipework: is half a fuck worth it? are you good looking?
<epochwolf> pipework: don't even use that much, I'll take all of that fuck right now.
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
<shevy> he can ban
<shinobi_one> apeiros: it went from softwar engineering vs software development and what it means, to ceo/cio/cto, to compilers/interpreters
NalloK has quit [Max SendQ exceeded]
bthesorceror has quit [Remote host closed the connection]
<pipework> RubyPanther: I'm very aware.
<apeiros> shinobi_one: write a blog post?
<shevy> shinobi_one how did it go from CEO to compilers???
<RubyPanther> it didn't
hmbl9r has left #ruby [#ruby]
<apeiros> shinobi_one: don't forget to mention that you're a zombie in that post.
<shinobi_one> apeiros: lol, good call. i would have forgot
hiyosi has joined #ruby
<shevy> well at least RubyPanther is a tired cat now
* pangur tries to figure out where blank lines are coming from.
james_d_h has joined #ruby
* epochwolf goes back to drinking his wine.
<shinobi_one> shevy: doubt it.
<shinobi_one> epochwolf: hmm red?
<shevy> shinobi_one don't trigger something in RubyPanther ;)
<epochwolf> shinobi_one: in a way... it's cherry wine :P
<RubyPanther> I gotta go, I just a "help me obiwan" email
<RubyPanther> just got
northfurr has joined #ruby
<shevy> \o/
<pipework> shevy: He's a bit of an old cat.
<epochwolf> shinobi_one: 18% alcohol :D
<shevy> yeah, he was using ruby years before I found it
<RubyPanther> are you sure it is still "wine" at 18%?
<shinobi_one> epochwolf: cherry wine? interesting
<epochwolf> RubyPanther: dessert wines can be higher alcohol
<pangur> Am I wrong to expect single-line spacing from @folks.each do |person|; puts person.show; end ?
<epochwolf> It's not distilled
<shevy> pangur depends on what the method show gives you back
<pangur> show is defined as ... puts "#{@title} #{@fore} #{@surn}"
<shevy> well then why call puts twice
<pangur> ah
<RubyPanther> epochwolf: sure but most dessert wines are liqueurs
mengu has quit [Remote host closed the connection]
* pipework is at ruby on ales and is therefore an authority on ruby and alcoholic beverages.
paulfm has joined #ruby
<kayloos_> pangur: you figured it out?
kirun has quit [Quit: Client exiting]
<kayloos_> pangur: dem double puts
razrunel_ has quit [Ping timeout: 269 seconds]
daxroc has joined #ruby
<havenwood> pipework: ooh, fun - i'd like to go to that one next year!
<pangur> Yes, shevy has just shown me that I should not have puts person.show, kayloos_ :)
<shinobi_one> pipework: are you drinking ale though?
<pipework> havenwood: It's super fun!
<shevy> \o/
<pangur> Thanks :)
<pipework> shinobi_one: Many ales.
Bira has joined #ruby
<shevy> simple problem is a good problem
toastynerd has quit [Remote host closed the connection]
<shevy> @@problems are annoying problems
<shinobi_one> pipework: ales are my favorite :(
* pangur deletes the second puts
<pipework> shevy should become a hard-hitting alcoholic.
<shinobi_one> pipework: my flavorite even..
<platzhirsch> When there needs to be a method top_5_words, is it legitimate to use the method method_missing to generate other top_x_words methods?
<pangur> All working now :-)
<shevy> pipework when I was younger sure, but these days alcohol kills me :(
mikepack_ has joined #ruby
<pipework> shevy: I don't see the problem.
freerobby has joined #ruby
<shinobi_one> platzhirsch: can you do top_words(x) instead?
hiyosi has quit [Ping timeout: 240 seconds]
jxf has quit [Ping timeout: 240 seconds]
* pangur is a happy chappy
<platzhirsch> shinobi_one: no, but I get your point
<epochwolf> RubyPanther: I think I figured out how they got 18%, it's fermanted cherries and beet sugar. :D
<shevy> platzhirsch hmm... method_missing always scares me
lw has quit [Quit: s]
kyle__ has quit [Ping timeout: 264 seconds]
<platzhirsch> yeah, I don't know if it disturbs the interviewer or impressed him when I use it
<platzhirsch> probably he doesn't care at all
linojon has joined #ruby
<pipework> shevy: You're too timid.
<RubyPanther> epochwolf: so not the top shelf, but the upper half, it has a chance to be good :)
<shevy> I once had several classes that all used method_missing
<pipework> Bravelymetabrogram.
<shevy> I no longer understood what they were doing after a year not looking at it
aspires has quit []
<platzhirsch> If you don't use method_missing, you are doing it wrong.
<shinobi_one> shevy such is code.
<pipework> method_missing is DRY
<shevy> shinobi_one well partially, most of my other code I can look at it and instantly know what is going on
<platzhirsch> okay guys, I will do it. Brace yourselves
<shinobi_one> shevy: i was joking :P
<shevy> noooooooooooooooooooooooooo :(
lutfidemirci has quit [Remote host closed the connection]
<RubyPanther> method_missing is almost always the wrong thing to do. But it might be right in this case.
<shevy> don't go down that hole platzhirsch
<shevy> RubyPanther so what now
<pipework> Use method_missing and method_defined
<shevy> are you saying he should use it or are you saying he should not use it
SCommette has quit [Quit: SCommette]
NalloK has joined #ruby
<platzhirsch> I just want to use it so the guy reckons me "Look ma, meta-programming"
lutfidemirci has joined #ruby
<shinobi_one> shevy: he's saying he probably shouldn't, but maybe he should in this case
<RubyPanther> If you're not SURE that method_missing is the right thing to do, don't do it.
<shevy> shinobi_one omg perhaps he should get banned
ringaroses has quit [Quit: Leaving]
<shinobi_one> shevy: /votekick!
NalloK has quit [Max SendQ exceeded]
ringaring has quit [Quit: Leaving]
<shevy> just kidding :D
<pipework> If you haven't used method_missing, you haven't lived.
<platzhirsch> bleeding edge
dapz has quit [Ping timeout: 244 seconds]
<shevy> pipework let me grep through my .rb files ...
MattStratton has joined #ruby
<shinobi_one> bleeding edge of a double-edged sword, sounds fun!
<platzhirsch> It will break, it will break, it will break *stopes up*
<shevy> hmm ... 16 instances of where I use method_missing ...
pangur has quit [Quit: Quit]
<shevy> but 7 of them in test/ dir so they are just demo
Megtastique has quit []
mikepack_ has quit [Ping timeout: 252 seconds]
<RubyPanther> what happens in test/, stays in test/
lutfidemirci has quit [Remote host closed the connection]
lutfidemirci has joined #ruby
<shinobi_one> RubyPanther: there is no spoon
<platzhirsch> I have talked to some startups now and they all use Ruby but think of moving to Go in the future
jsilver has quit []
<shevy> 2 of these files were written by other people
<pipework> What happens in test/ is probably also located in /dev/null #cowboycoding
<shevy> platzhirsch so you will use Go as well?
<platzhirsch> shevy: it would be swell to work at a company like that because then I had a reason to learn Go
jtza8 has quit [Quit: leaving]
<shevy> hmm
<shevy> so enthusiastic
<platzhirsch> yeah stilll, we talk again in 6 months when I am still stuck at my old job
<shevy> lol
<platzhirsch> depressions incoming
<RubyPanther> Go is compiled, you can use go even if your sysadmin is a network admin who went to BOFH school
<platzhirsch> Stage 1: Listening to The Smiths (completed)
<terrellt> I think RubyPanther has some anxiety.
<shinobi_one> lol
<terrellt> Relax man, it's gonna be okay
andrewhl has joined #ruby
yfeldblum has joined #ruby
<RubyPanther> I'm not scared of the BOFH, if I see one, I'll quit before he can touch my dev box
<RubyPanther> problem solved
lmickh has quit [Remote host closed the connection]
daxroc has quit [Quit: Leaving.]
daxroc has joined #ruby
<pipework> I ain't even afraid of anything.
<shinobi_one> RubyPanther: What if you don't see them because they are ninja BOFH?
<pipework> Less alone the bofhen.
jsilver has joined #ruby
jsilver has quit [Client Quit]
<RubyPanther> shinobi_one: BOFHs can't step softly, even in a ninja hat
<shinobi_one> RubyPanther: But if they are night time ones, who stomp through the night when you are not around..
yfeldblu_ has quit [Ping timeout: 265 seconds]
<pipework> Are there daywalker bofh?
<shinobi_one> pipework: but of course.. if they stay out of the sunlight shining in through the windows, they are fine
freerobby has quit [Quit: Leaving.]
<RubyPanther> They have to come out during the day, if they only came out at night they'd have to plan network downtime, create procedures people could actually follow, etc
<RubyPanther> Only a quality network admin can drift quietly through the night making everything work
mansi has joined #ruby
<shinobi_one> RubyPanther: Those exist!?
lkba has quit [Ping timeout: 265 seconds]
rainmanjam has quit [Remote host closed the connection]
freerobby has joined #ruby
lw has joined #ruby
jsilver has joined #ruby
<RubyPanther> shinobi_one: Yes.
* shinobi_one amazed
sepp2k has joined #ruby
bluenemo has quit [Remote host closed the connection]
<RubyPanther> IBM professional services even rents them out.
axsuul has quit [Ping timeout: 240 seconds]
freerobby has quit [Client Quit]
toastynerd has joined #ruby
kyle__ has joined #ruby
jsilver has quit []
mansi has quit [Ping timeout: 244 seconds]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ouie has quit [Ping timeout: 244 seconds]
withnale has quit [Remote host closed the connection]
Fyyr13_ has joined #ruby
Azulinho has joined #ruby
Slavox|AFK is now known as Slavox
RaCx has quit [Quit: Computer has gone to sleep.]
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
joelroa has joined #ruby
terrellt_ has joined #ruby
prc has left #ruby [#ruby]
matschaffer has joined #ruby
matschaffer has left #ruby [#ruby]
terrellt has quit [Ping timeout: 264 seconds]
Fyyr13_ has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
snath has quit [Ping timeout: 240 seconds]
daxroc has quit [Ping timeout: 265 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
WillAmes has quit [Remote host closed the connection]
thomas3141592653 has quit [Quit: Connection closed for inactivity]
Rober9393 has joined #ruby
bilbo_swaggins has joined #ruby
WillAmes has joined #ruby
terrellt_ is now known as terrellt
jonr22 has quit [Ping timeout: 265 seconds]
joelroa has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<gizmore> 3 months since i migrated from php to ruby for a new private project :)
<gizmore> :rocks
<bilbo_swaggins> ruby's not perfect, but it's certainly a few steps above php
<gizmore> :rocks.to_s.send :to_a
baroquebobcat has joined #ruby
<gizmore> yes... a few dozens :)
<shevy> yeah bilbo_swaggins
<pipework> RubyPanther: But can they deploy rails applications on the JVM with jboss?
<bilbo_swaggins> ['r','o','c','k','s']
<pipework> bilbo_swaggins: one or two, I guess.
<gizmore> .join
timonv has joined #ruby
<pipework> gizmore: We, um, get it. You're kind of a slow interpreter.
<pipework> Though, I'm sure you outpace MRI.
<gizmore> coding an irc bot in rubyonrails... may i show some evil code i wrote?
<bilbo_swaggins> *budum tss*
<gizmore> i patched active record to map all rows to the same instance :P
<gizmore> for some tables :)
<centrx> PHP is an abomination and a scourge on the face of the earth.
<gizmore> sadly it´s still instanciating the original result, so quite some overhead, but i needed that feature badly
maroloccio has quit [Quit: WeeChat 0.4.3]
<shevy> centrx hahaha that is your default sentence
Fyyr13_ has joined #ruby
<bilbo_swaggins> I'm both intrigued and nervous, gizmore
<gizmore> centrx probably has a trigger for php
<shevy> yeah
<centrx> I am building up my artificial intelligence
<bilbo_swaggins> centrx, dope, man
<bilbo_swaggins> I'm working on my AI algos
<bilbo_swaggins> and nature-inspired algos
fgo has joined #ruby
<shevy> it is so sad that AI is so algo driven
MattStratton has quit [Read error: Operation timed out]
<bilbo_swaggins> what else would it be?
<gizmore> http://cxg.de/_46f080.htm (global_orm_mapping_mapping \o/)
<shevy> look at a group of wasps
james_d_h has quit [Ping timeout: 240 seconds]
<shevy> they don't need to be able to count past 20
<bilbo_swaggins> well sure
<bilbo_swaggins> it sounds like I can recommend a book you'd like
kyle__ has quit [Ping timeout: 264 seconds]
<gizmore> cached? should be renamed into should_cache?
<platzhirsch> How can I shorten: while not next_word.nil?; end
<bilbo_swaggins> Clever Algorithms - Nature Inspired Programming Recipes
<bilbo_swaggins> You can find it for free using Google, if you so desire
<shevy> platzhirsch not sure you can shorten that much, it is already very terse
albedoa has quit [Quit: Textual IRC Client: www.textualapp.com]
<bilbo_swaggins> shevy, I think algorithms that emulate insect-style collective intelligence are crazy cool
<platzhirsch> shevy: looks ugly with that empty body
timonv has quit [Ping timeout: 265 seconds]
<shevy> platzhirsch yeah, I think while looks ugly almost always; only for loops are worse
bricker_ has joined #ruby
<bilbo_swaggins> until next_word.nil?
<platzhirsch> shevy: or loop with break
<slash_nick> i like "while(true) do"
<shevy> bilbo_swaggins dunno, that seems an extremely tech-driven approach, I came more from biology and molecular biology
<slash_nick> or loop do with break, yeah
minicomputer has joined #ruby
<platzhirsch> loop { break if word_next.nil? }
<bilbo_swaggins> I want to move from hardline tech to biology-inspired tech
<platzhirsch> that's very readable imo
<shevy> platzhirsch that looks a bit better!
<bilbo_swaggins> so I guess it makes sense to me
<bilbo_swaggins> biology is hella cool
<shevy> I like loop { } in general, its intent seems very clear
<bilbo_swaggins> I watched a BBC documentary on the transport networks in cells
<shevy> yeah, it's cool how cargo moves inside of a cell
<bilbo_swaggins> protein motors
Fyyr13_ has quit [Ping timeout: 264 seconds]
<bilbo_swaggins> what were they called?
<shevy> there are several; dyneins, kinesins, actin-myosin
<bilbo_swaggins> kinesins
<gizmore> bilbo_swaggins: women
<shevy> and of course the microtubuli railroads; these are my favourites
bricker has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> they always reminded me of carbon nanotubes
<bilbo_swaggins> I've heard DNA has start and stop sequences and sequences to direct the transcription to other areas of DNA, like a turing machine
rbartos has quit [Remote host closed the connection]
<shevy> k but DNA has only 4 different states at any position, you need molecules able to recognize these sequences too
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bilbo_swaggins> I have a near-religious appreciation for the way the universe works
<bilbo_swaggins> I'm super excited that Neil deGrass Tyson is rebooting Cosmos
rbartos has joined #ruby
<bilbo_swaggins> he's all around entertaining, intelligent and probably just a nice guy
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
rbartos has quit [Remote host closed the connection]
Atw has quit [Ping timeout: 244 seconds]
mlpinit has quit [Quit: Leaving...]
achru has joined #ruby
senj has quit [Quit: Sleep Now]
achru has quit [Remote host closed the connection]
arubincloud has quit []
rbartos has joined #ruby
enebo has quit [Quit: enebo]
cover_ has quit [Quit: Gone]
<shevy> the universe is well out of my league
cover has joined #ruby
sethen has quit [Ping timeout: 240 seconds]
geopet has quit []
Wolland has joined #ruby
DouweM has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<platzhirsch> @words.sort_by { |_, count| - count }[0..4].map(&:first) this is how I return the top five words. Now I want to fill up the remaining slots with nil. Any idea how to make this more concise?
<banister> bilbo_swaggins i find tyson more of a showman, and far less deep and interesting than carl sagan. There's something too slick and almost artificial about tyson
george2 has quit [Remote host closed the connection]
nisstyre has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
kevind has quit [Quit: kevind]
<fraterlaetus> hello again!
<shevy> platzhirsch god, you and your microperfections :P
<platzhirsch> shevy: haha, yeah I am really bored with this shitty assignment
<fraterlaetus> so, I think I'm much further along now.
<shevy> yeah now you are golfing
<shevy> fraterlaetus good!
<platzhirsch> I need to impress the shit out of them
dkamioka has joined #ruby
<platzhirsch> they have to feint when they look at my code
joelroa has joined #ruby
<banister> platzhirsch can't you use min_by or max_by instead?
<fraterlaetus> for some reason, the array is now only populating with the last value in the table...
<shevy> fraterlaetus first thing I notice - no colours :(
<fraterlaetus> colours?
<platzhirsch> banister: probably, I will take a look, thanks :)
Spami has joined #ruby
kayloos_ has quit []
<fraterlaetus> is that an option in gist?
<fraterlaetus> (first time using it instead of pastebin)
<shevy> it gets done automatically if you append .rb as file end
<banister> platzhirsch @words.lazy.map(&:first).sort.first(4) maybe
<shevy> just store as foo.rb and it is done for you
jjbohn has quit [Quit: Leaving...]
<platzhirsch> oh lazy is good
<shevy> there is an entry called "name" or so, optional
<shevy> you seem to have done foo.txt or the like
pu22l3r has joined #ruby
<fraterlaetus> fixed
<shevy> ok next thing, I know it is tiny but :D
dkamioka_ has quit [Ping timeout: 244 seconds]
kenneth has joined #ruby
<shevy> line 46 is not indented one level to the right
mando has quit [Quit: Leaving...]
<shevy> I'd also get rid of the newline above, because you did not use a newline before "end" either
NalloK has joined #ruby
<shevy> fraterlaetus you could turn rows = and table = into constants
<shevy> ROWS =
<shevy> TABLE =
NalloK has quit [Max SendQ exceeded]
toastynerd has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
b1101 has left #ruby [#ruby]
senj has joined #ruby
NalloK has joined #ruby
<fraterlaetus> this is why I cant have nice things. ;)