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.
<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]
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
<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.]
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
<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
<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
<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 :/
<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?
<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.
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
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]
<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 ?
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)]
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]
<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.
<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
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]
<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
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]
<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
<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
<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
<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?
<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?
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.
<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: 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.
<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.
<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..
<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]
<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
<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
<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?
<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
<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
<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.
<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
<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?
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
<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>
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
<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
<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]
<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
<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]
<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.