apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
<weaksauce> "//name[.='someName']" would probably work
xxneolithicxx has quit [Ping timeout: 255 seconds]
<GaryOak_> but that would only select the name element not the property element
<GaryOak_> drocsid: are you trying to select the property itself that has a child element with a specific name?
<weaksauce> true. add an /.. then?
<GaryOak_> ^ yep
gsd has quit [Read error: Connection reset by peer]
<drocsid> What I wanted to do was find the value for the property with a specific name. In this case sandboxId
Ellis has quit [Quit: Ellis]
fmcgeough has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
<GaryOak_> yeah so weaksauce's //name[.='someName']/.. should get that for you
gsd has joined #ruby
<weaksauce> "//name[.='someName']/../value" if your xml is nested like the above example
marr has quit []
metalic has quit [Quit: Leaving]
gsd has quit [Read error: Connection reset by peer]
GaryOak_ has quit [Remote host closed the connection]
tejasmanohar has quit [Quit: WeeChat 1.1.1]
mistermo_ has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
gsd has joined #ruby
jerryberry_ has joined #ruby
gsd has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
<drocsid> Looks like that was right. I will read up on the xpath cheatsheet to see if I can make sense of it.
icebourg has quit []
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
yaw has joined #ruby
yaw has left #ruby [#ruby]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
sevenseacat has joined #ruby
diegoaguilar has joined #ruby
jtdowney has quit []
gsd has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermo_ has quit [Ping timeout: 244 seconds]
mdw has joined #ruby
jerryberry_ has quit [Ping timeout: 250 seconds]
mdw has quit [Client Quit]
gsd has quit [Remote host closed the connection]
jerryberry_ has joined #ruby
soulcake has joined #ruby
gsd has joined #ruby
kblake has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
iotouch has joined #ruby
aphprentice has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 272 seconds]
jerryberry_ has quit [Ping timeout: 256 seconds]
jerryberry_ has joined #ruby
gsd has quit [Remote host closed the connection]
gsd has joined #ruby
gsd has quit [Max SendQ exceeded]
baweaver has joined #ruby
al2o3-cr is now known as yoyoyoy
gsd has joined #ruby
<drocsid> I think the expression is saying //name[..=sandboxId'
papashou has joined #ruby
<drocsid> I think the expression is saying //name[..'=sandboxId'/ <- match all name elements who have the exact text sandboxId
yoyoyoy is now known as al2o3-cr
narcan has joined #ruby
gsd has quit [Read error: Connection reset by peer]
<drocsid> " /.. < the parent node
gsd has joined #ruby
<drocsid> " /value < the value node
subtwo has quit [Quit: (null)]
jerryberry_ has quit [Ping timeout: 256 seconds]
delianides has quit [Remote host closed the connection]
jerryberry_ has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
<drocsid> thanks for the help, still could know it a little better, but can probably get by a little more myself now
AlphaAtom has joined #ruby
croberts has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
gh has quit [Quit: Leaving]
devramen has joined #ruby
a346 has joined #ruby
_djbkd has quit [Remote host closed the connection]
gsd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
gsd has joined #ruby
Igorshp has joined #ruby
jerryberry_ has quit [Ping timeout: 276 seconds]
jerryberry_ has joined #ruby
deol has joined #ruby
deol has quit [Client Quit]
devramen has quit [Quit: Leaving...]
iamjarvo has joined #ruby
Zekka has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Ellis has joined #ruby
devramen has joined #ruby
jeromelanteri has joined #ruby
michaeldeol has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
vdamewood has joined #ruby
vikaton has joined #ruby
gsd has quit [Ping timeout: 256 seconds]
chipotle has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
chipotle has joined #ruby
neohunter has joined #ruby
neohunter has left #ruby [#ruby]
jerryberry_ has quit [Ping timeout: 246 seconds]
jerryberry_ has joined #ruby
snockerton has quit [Quit: Leaving.]
gsd has joined #ruby
lidenskap has quit [Remote host closed the connection]
gsd has quit [Max SendQ exceeded]
chipotle has quit [Max SendQ exceeded]
gsd has joined #ruby
sohrab has quit [Ping timeout: 256 seconds]
lidenskap has joined #ruby
chipotle has joined #ruby
ghr has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
sohrab has joined #ruby
papashou has quit [Quit: Textual IRC Client: www.textualapp.com]
wilbert has joined #ruby
jtdowney has joined #ruby
paradisaeidae has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
iasoon has quit [Ping timeout: 272 seconds]
wilbert has quit [Client Quit]
wilbert has joined #ruby
qwertme has joined #ruby
jerryberry_ has quit [Ping timeout: 272 seconds]
DavidDudson has joined #ruby
startupality has joined #ruby
sohrab has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
baweaver has quit [Remote host closed the connection]
jottr has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
jerryberry_ has joined #ruby
baweaver has joined #ruby
bricker has quit [Quit: leaving]
jottr_ has quit [Ping timeout: 256 seconds]
neohunter has joined #ruby
<neohunter> I've submited what we discussed this afternoon here as a feature suggestion, https://bugs.ruby-lang.org/issues/11141
spider-mario has quit [Ping timeout: 245 seconds]
rkazak has joined #ruby
mwilson has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
edwinvdgraaf has quit [Ping timeout: 255 seconds]
edwinvdgraaf has joined #ruby
<weaksauce> neohunter wouldn't that interfere with the global match variables?
<neohunter> weaksauce well, that is just an example, as I said, i dont like $1 for be global variables, and p1 neither.
<neohunter> i thinkthat syntax is great
<neohunter> but not sure what to use
polyrob has quit [Quit: ZNC - http://znc.in]
AlphaAtom has quit [Read error: Connection reset by peer]
<neohunter> &:1, &:2, &:3
<neohunter> _1, _2, _3
<neohunter> i like last one,
AlphaAtom has joined #ruby
charliesome has quit [Quit: zzz]
polyrob has joined #ruby
<sevenseacat> i dont think much of the proposed syntax
<baweaver> Someone's been using Scala eh?
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
<baweaver> ex: List(1, 2, 3) map (_ + 10)
<baweaver> ex: sSquared.reduce (_+_)
Yzguy has joined #ruby
jtdowney has quit []
<baweaver> http://learnxinyminutes.com/docs/scala/ - ctrl-F Combinators
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
ramfjord has joined #ruby
rahult has joined #ruby
xxneolithicxx has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iteratorP has joined #ruby
yfeldblum has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
amclain has joined #ruby
spider-mario has joined #ruby
moretti has quit [Quit: Leaving...]
robustus has joined #ruby
Sawbones has quit [Remote host closed the connection]
a346 has quit [Remote host closed the connection]
a346 has joined #ruby
eyeamaye has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
dstarh has joined #ruby
_djbkd has quit [Quit: My people need me...]
AlphaAtom has joined #ruby
RegulationD has quit [Remote host closed the connection]
charliesome has joined #ruby
nik_-_ has quit [Quit: nik_-_]
startupality has quit [Quit: startupality]
ramfjord has quit [Ping timeout: 272 seconds]
CloCkWeRX has quit [Ping timeout: 272 seconds]
jerryberry_ has quit [Ping timeout: 256 seconds]
jerryberry_ has joined #ruby
towski_ has quit [Remote host closed the connection]
sevvie has joined #ruby
CloCkWeRX has joined #ruby
lidenskap has quit [Remote host closed the connection]
Ellis has quit [Quit: Ellis]
Sawbones has joined #ruby
delianides has joined #ruby
Asher has joined #ruby
jerryberry_ has quit [Ping timeout: 272 seconds]
jerryberry_ has joined #ruby
juanpablo_ has joined #ruby
hmsimha has joined #ruby
nullset68 has quit [Quit: Leaving]
tkuchiki has joined #ruby
nullset68 has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
jerryberry_ has quit [Ping timeout: 276 seconds]
yqt has quit [Ping timeout: 265 seconds]
blizzy has quit [Ping timeout: 256 seconds]
jerryberry_ has joined #ruby
nullset68 has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 256 seconds]
nullset68 has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
kyrylo has joined #ruby
airdisa has quit []
helpa has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
Yzguy_ has joined #ruby
eat_multi has quit [Quit: leaving]
Yzguy has quit [Read error: Connection reset by peer]
erichmenge has quit [Ping timeout: 264 seconds]
hmsimha has quit [Ping timeout: 256 seconds]
sevvie has quit [Read error: Connection reset by peer]
Guest1421 has joined #ruby
helpa has joined #ruby
wallerdev has quit [Quit: wallerdev]
claptor has joined #ruby
sevvie_ has joined #ruby
Cust0sLim3n has quit [Ping timeout: 244 seconds]
erichmenge has joined #ruby
doodlehaus has joined #ruby
chipotle has quit [Quit: cheerio]
jerryberry_ has quit [Ping timeout: 244 seconds]
jerryberry_ has joined #ruby
Livian has quit [Remote host closed the connection]
tus has quit []
Cust0sLim3n has joined #ruby
baweaver has quit [Remote host closed the connection]
d10n-work has quit [Quit: Connection closed for inactivity]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
nullset68 has quit [Quit: Leaving]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goose_ has joined #ruby
jerryberry_ has quit [Ping timeout: 256 seconds]
shakes has joined #ruby
iterator_ has joined #ruby
gusrub has quit [Quit: "home"]
multi_io has quit [Ping timeout: 276 seconds]
multi_io has joined #ruby
iterato__ has joined #ruby
iteratorP has quit [Ping timeout: 255 seconds]
iterator_ has quit [Read error: No route to host]
car has joined #ruby
Soda has quit [Remote host closed the connection]
a346 has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
amystephen has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
icebourg has joined #ruby
goose_ has quit []
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
dh64 has joined #ruby
kt2 has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
duderonomy has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
charliesome has quit [Quit: zzz]
Spami has quit [Quit: This computer has gone to sleep]
AlphaAtom has quit [Max SendQ exceeded]
jerryberry_ has joined #ruby
charliesome has joined #ruby
AlphaAtom has joined #ruby
Igorshp has joined #ruby
car has quit [Ping timeout: 265 seconds]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
jerryberry_ has quit [Ping timeout: 252 seconds]
Igorshp has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
jerryberry_ has joined #ruby
amystephen has quit [Quit: amystephen]
devramen has quit [Remote host closed the connection]
idafyaid has quit [Read error: Connection reset by peer]
delianides has quit [Remote host closed the connection]
idafyaid has joined #ruby
idafyaid has quit [Max SendQ exceeded]
jottr has quit [Ping timeout: 276 seconds]
simpyll has joined #ruby
mitchellhenke has joined #ruby
idafyaid has joined #ruby
idafyaid has quit [Changing host]
idafyaid has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
amystephen has joined #ruby
car has joined #ruby
jerryberry_ has quit [Ping timeout: 240 seconds]
jerryberry_ has joined #ruby
RegulationD has joined #ruby
Spami has joined #ruby
DerisiveLogic has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
DavidDudson has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
swgillespie has joined #ruby
devramen has joined #ruby
towski__ has joined #ruby
mocha has joined #ruby
eyeamaye has quit [Quit: Leaving.]
tchebb has quit [Quit: ZNC - http://znc.in]
konsolebox has joined #ruby
doodlehaus has quit [Remote host closed the connection]
dvlwrk has joined #ruby
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
tmi has quit [Ping timeout: 256 seconds]
rahult is now known as rahult_
AlphaAtom has quit [Read error: Connection reset by peer]
rodfersou has quit [Quit: leaving]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idafyaid has quit [Read error: Connection reset by peer]
idafyaid has joined #ruby
jerryberry_ has quit [Ping timeout: 265 seconds]
jerryberry_ has joined #ruby
diegoviola has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
idafyaid has quit [Quit: idafyaid]
vdamewood has quit [Quit: Life beckons.]
jerryberry_ has quit [Ping timeout: 264 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
DynamicMetaFlow has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
yfeldblu_ has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
rgb-one has quit [Read error: Connection reset by peer]
car has quit [Quit: Leaving]
amystephen has quit [Quit: amystephen]
yfeldblum has quit [Ping timeout: 256 seconds]
dstarh has joined #ruby
kyrylo_ has joined #ruby
jerryberry_ has joined #ruby
psy has quit [Read error: Connection reset by peer]
kyrylo has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
psy has joined #ruby
happyface has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
jerryberry_ has quit [Ping timeout: 265 seconds]
jerryberry_ has joined #ruby
lidenskap has joined #ruby
mitchellhenke has joined #ruby
stylus_ is now known as stylus
mary5030 has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 244 seconds]
simpyll has quit [Quit: simpyll]
almostworking has joined #ruby
idafyaid has joined #ruby
almostworking has left #ruby [#ruby]
northfurr has joined #ruby
Papierkorb has quit [Ping timeout: 255 seconds]
Eiam_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
Sawbones has joined #ruby
lidenskap has joined #ruby
AirStar has joined #ruby
Yzguy_ is now known as Yzguy
lidenskap has quit [Remote host closed the connection]
lidenskap has joined #ruby
icebourg has quit [Ping timeout: 264 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
laurentide has joined #ruby
scripore has joined #ruby
icebourg has joined #ruby
Guest53865 is now known as _chs_
Guest1421 has quit [Ping timeout: 244 seconds]
SpicyMagpie has joined #ruby
jerryberry_ has quit [Ping timeout: 255 seconds]
jerryberry_ has joined #ruby
SpicyMagpie has quit [Client Quit]
yfeldblum has joined #ruby
electriv has joined #ruby
RegulationD has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
braincrash has quit [Quit: bye bye]
juanpablo_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
kyrylo_ has quit [Ping timeout: 246 seconds]
lidenskap has quit [Remote host closed the connection]
centrx has joined #ruby
lidenskap has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
scripore has quit [Quit: This computer has gone to sleep]
jerryberry_ has quit [Ping timeout: 255 seconds]
A205B064 has quit [Ping timeout: 256 seconds]
jerryberry_ has joined #ruby
devramen has quit [Quit: Leaving...]
Xiti has joined #ruby
braincrash has joined #ruby
eyeamaye has joined #ruby
Guest1421 has joined #ruby
towski__ has quit [Remote host closed the connection]
eyeamaye has quit [Read error: Connection reset by peer]
jerryberry_ has quit [Ping timeout: 276 seconds]
eyeamaye has joined #ruby
jerryberry_ has joined #ruby
Evan_ has quit [Ping timeout: 264 seconds]
billy_ran_away has quit [Ping timeout: 264 seconds]
endash has quit [Quit: endash]
wilbert has quit [Quit: quit]
rahult has joined #ruby
musl_ has joined #ruby
turtil has quit [Ping timeout: 264 seconds]
chihhsin has quit [Ping timeout: 264 seconds]
DynamicMetaFlow has quit [Ping timeout: 264 seconds]
_ixti_ has quit [Ping timeout: 264 seconds]
musl has quit [Ping timeout: 264 seconds]
TDJACR has quit [Ping timeout: 264 seconds]
bkutil has quit [Ping timeout: 264 seconds]
bkutil has joined #ruby
chihhsin has joined #ruby
_ixti_ has joined #ruby
DynamicMetaFlow has joined #ruby
billy_ran_away has joined #ruby
turtil has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
Sawbones has quit [Remote host closed the connection]
TDJACR has joined #ruby
ramfjord has joined #ruby
arescorpio has joined #ruby
jerryberry_ has quit [Ping timeout: 244 seconds]
jerryberry_ has joined #ruby
nanoyak has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
Guest34220 has quit [Ping timeout: 276 seconds]
Evan_ has joined #ruby
Channel6 has joined #ruby
bootstrappm has quit [Remote host closed the connection]
fedexo has joined #ruby
Mohan has joined #ruby
Sawbones has joined #ruby
Mohan is now known as Guest41531
Sawbones has quit [Client Quit]
tubuliferous_ has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
bitri_ has joined #ruby
ag4ve has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahult has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
djbkd_ has joined #ruby
eyeamaye has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Read error: Connection reset by peer]
rawrmonstar has joined #ruby
eyeamaye has joined #ruby
AlphaAtom has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
Cust0sLim3n has quit [Ping timeout: 265 seconds]
mwlang has quit [Quit: mwlang]
thirdknife has joined #ruby
bitri_ has quit [Ping timeout: 272 seconds]
tmi has joined #ruby
Cust0sLim3n has joined #ruby
icebourg has quit [Ping timeout: 256 seconds]
bitri_ has joined #ruby
jerryberry_ has quit [Ping timeout: 255 seconds]
jerryberry_ has joined #ruby
Vile` has quit [Remote host closed the connection]
icebourg has joined #ruby
nanoyak has quit []
kblake has joined #ruby
Vile` has joined #ruby
thirdknife has quit [Quit: This computer has gone to sleep]
jerryberry_ has quit [Ping timeout: 265 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
jerryberry_ has joined #ruby
AlphaAtom has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
icebourg has quit [Ping timeout: 256 seconds]
kblake has quit [Ping timeout: 276 seconds]
apurcell has quit [Quit: Be back later ...]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tcrypt has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Channel6 has quit [Quit: Leaving]
bitri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Yzguy has quit [Quit: I'm sleeping, go away.]
kt2 has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
kt2 has joined #ruby
Guest41531 has quit [Ping timeout: 264 seconds]
AirStar has left #ruby [#ruby]
AlphaAtom has quit [Read error: Connection reset by peer]
Mohan_ has joined #ruby
AlphaAtom has joined #ruby
shakes has quit [Quit: Leaving]
icebourg has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
thirdknife has joined #ruby
lidenska_ has joined #ruby
lidenska_ has quit [Remote host closed the connection]
Channel6 has joined #ruby
thirdknife has quit [Client Quit]
WhitePride_ has joined #ruby
lidenskap has quit [Ping timeout: 255 seconds]
_blizzy_ has joined #ruby
dvlwrk has quit [Quit: Leaving]
Guest1421 has quit [Ping timeout: 264 seconds]
Oog has joined #ruby
<Oog> https://gist.github.com/anonymous/9c0882afe9b48c729cd9 - is there a better way or is this good?
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
hyperjuice has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
P1RATEZ has joined #ruby
neonrooster has joined #ruby
<Radar> what is $confing
<Radar> $config*
<Radar> and why is it a global
<neonrooster> how do I do sockets in Ruby? I want to make an IRC bot
DynamicMetaFlow has quit [Quit: Leaving]
<centrx> Radar, variables that start with $ are global in Ruby
<centrx> oh crap
<Oog> Radar: yes my global config
<Oog> $config = Rails.configuration
yfeldblum has quit [Remote host closed the connection]
<Oog> just a shortcut
yfeldblum has joined #ruby
Alina-malina has quit [Quit: Leaving]
iotouch has quit [Quit: This computer has gone to sleep]
last_staff has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<Radar> neonrooster: like this http://github.com/radar/summer
Alina-malina has joined #ruby
iamninja has joined #ruby
<neonrooster> whoa how do I bookmark all my firefox tabs?
nanoyak has joined #ruby
<pipework> neonrooster: All you really need is TCPSocket and perhaps perusing some other IRC bots for knowledge on how to connect and talk to IRC.
najmi_ has quit [Remote host closed the connection]
<neonrooster> pipework: ok thanks
Joufflu has joined #ruby
astrobunny has joined #ruby
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
DynamicMetaFlow has joined #ruby
tchebb has joined #ruby
iotouch has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
havenwood has joined #ruby
djbkd_ has quit []
isxek has joined #ruby
BLACKPOWER_ has joined #ruby
WhitePride_ has quit [Ping timeout: 246 seconds]
<BLACKPOWER_> i hate white people
<BLACKPOWER_> bitch ass crackers
psy has quit [Remote host closed the connection]
<pipework> I hate people. Bitch ass bitches.
<pipework> But I hate me more, so I relatively like people, comparatively.
ccolorado has joined #ruby
mikecmpbll has quit [Quit: ciao.]
electriv has quit [Quit: Textual IRC Client: www.textualapp.com]
AlphaAtom has quit [Read error: Connection reset by peer]
BLACKPOWER_ was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
AlphaAtom has joined #ruby
mengu has joined #ruby
juanpablo_ has joined #ruby
<ccolorado> How can I match the last group of consecutive digits form a srting ? e.g. "showname_(2009).121011.mp4" get 121011
Mohan_ has quit [Ping timeout: 256 seconds]
mengu has quit [Ping timeout: 264 seconds]
<centrx> do you mean /.*(\d+)[^\d]*$/
<centrx> maybe would have to be [^0-9]
Mohan_ has joined #ruby
apurcell has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
Cuubix has joined #ruby
juanpablo_ has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
<ccolorado> centrx: well that will match the whole filename string, including the showname_(2009). and .mp4
<pipework> ccolorado: string.reverse.split('.', 3)[1]
<pipework> forgot to split first.
Oog has quit [Quit: Page closed]
<havenwood> >> "showname_(2009).121011.mp4".scan(/\d{2,}/).last
<ruboto> havenwood # => "121011" (https://eval.in/349545)
<pipework> .split('.')[-2] probably
<pipework> "showname_(2009).121011.mp4".split('.')[-2]
<centrx> ccolorado, yeah it will match the whole string, but the capture will only be the digits
<centrx> ()
tjbiddle has quit [Quit: tjbiddle]
<ccolorado> pipework: '.' is not a split marker, it could be anuthing really, I need just need the last consecutive group of numbers
apurcell has quit [Ping timeout: 246 seconds]
<ccolorado> I think havenwood got it tho
<centrx> I say everybody's a winner
<pipework> ccolorado: Yeah, his should match a lot better. I just tend to not use regex until I see a pattern that needs it.
crdpink2 has joined #ruby
<Eiam_> hmm so playing around, is there a way I can put a value inside a hash that will execute when you access its key?
<ccolorado> centrx: oh i see, i just input your suggestion on rubular, to check, I guess I really need to polish my regex foo
<havenwood> >> File.basename("showname_(2009).121011.mp4", ".*").rpartition(".").last
<ruboto> havenwood # => "121011" (https://eval.in/349576)
<Eiam_> with a proc i'd have to call hash[key].call
crdpink has quit [Ping timeout: 256 seconds]
<pipework> or hash[key][]
Channel6 has quit [Quit: Leaving]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<Eiam_> right, and I'd rather the call be transparent
AlphaAtom has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
AlphaAtom has joined #ruby
DynamicMetaFlow has quit [Quit: Leaving]
<pipework> Eiam_: If I were you, I'd just make something that duck types like a hash.
<ccolorado> pipework: I triy to avoid parsing all together, but sometimes one has no option :(
<Eiam_> pipework: meh. ill just add the hash key in later after I've created the hash
<Eiam_> too bad, thought that would be neat
<pipework> ccolorado: Whale, there simply wasn't enough sample data to know.
narcan has joined #ruby
AlphaAtom has quit [Client Quit]
chrissonar has joined #ruby
neohunter has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
<ccolorado> thanks
amclain has quit [Quit: Leaving]
lidenskap has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kt2 has quit [Read error: Connection reset by peer]
kt2 has joined #ruby
lidenskap has quit [Remote host closed the connection]
lidenskap has joined #ruby
rippa has joined #ruby
tubuliferous_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
tagrudev has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 272 seconds]
agent_white has joined #ruby
<Eiam_> wish each_with_object was as short to type as "inject" or "reduce"
<Eiam_> all that typing my return value and those extra _, so cumbersome!
<agent_white> Evenin' folks
iamninja has joined #ruby
northfurr has quit [Quit: northfurr]
DavidDudson has joined #ruby
symbol has joined #ruby
aganov has joined #ruby
SouL_|_ has quit [Ping timeout: 256 seconds]
casadei_ has quit [Remote host closed the connection]
<pipework> Eiam_: alias is nice, is it not?
duderonomy has joined #ruby
<Eiam_> pipework: eh
bMalum has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
baweaver has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kblake has joined #ruby
emptyflask has joined #ruby
arup_r has joined #ruby
sinkensabe has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
kblake has quit [Ping timeout: 245 seconds]
nobitanobi has joined #ruby
arescorpio has quit [Excess Flood]
pwnz0r has joined #ruby
ahmetkapikiran has joined #ruby
apurcell has joined #ruby
juanpablo_ has joined #ruby
emptyfla1k has joined #ruby
aganov has quit [Read error: Connection reset by peer]
emptyfla1k has quit [Client Quit]
aganov has joined #ruby
duncannz has joined #ruby
car has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
juanpablo_ has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
apurcell has quit [Ping timeout: 256 seconds]
mengu has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
thatslifeson has joined #ruby
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
doobi-sham_ has quit [Ping timeout: 264 seconds]
iamninja has quit [Read error: Connection reset by peer]
doobi-sham_ has joined #ruby
emptyflask has quit []
sevvie has joined #ruby
chihhsin has quit [Ping timeout: 264 seconds]
ekem has quit [Ping timeout: 264 seconds]
hyperjuice has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
ekem has joined #ruby
chihhsin has joined #ruby
hyperjuice has joined #ruby
oo_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 244 seconds]
diegoviola has quit [Quit: WeeChat 1.1.1]
edwinvdgraaf has quit [Remote host closed the connection]
DavidDudson has joined #ruby
codecop has joined #ruby
SouL_|_ has joined #ruby
hyperjuice has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
iamninja has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
car has quit [Ping timeout: 264 seconds]
bMalum has quit [Quit: bMalum]
havenwood has quit []
Gas_the_Jews has joined #ruby
Stalkr_ has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
ccolorado has left #ruby [#ruby]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
P1RATEZ has quit []
emptyflask has joined #ruby
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
oo_ has joined #ruby
ki0_ has joined #ruby
neonrooster has quit [Remote host closed the connection]
_seanc_ has quit [Quit: _seanc_]
iotouch has quit [Quit: This computer has gone to sleep]
iotouch has joined #ruby
davidhq has joined #ruby
Cust0sLim3n has quit [Max SendQ exceeded]
roolo has joined #ruby
emptyflask has quit []
mengu has joined #ruby
mengu has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Deck` has joined #ruby
<Deck`> is it allowed to ask ActiveRecord/Rails questions here?
<Nilium> You should probably ask them in the rails channel.
<Deck`> I supposed so but didn't manage to find it
<flughafen> morning everybody
RegulationD has joined #ruby
<flughafen> sevenseacat: certainty shevy ^^
nobitanobi has quit [Remote host closed the connection]
<sevenseacat> Deck`: #rubyonrails
Cust0sLim3n has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<shevy> hey flughafen how is berlin
laurentide has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
<flughafen> /ban shevy
andikr has joined #ruby
<flughafen> shevy: it's fine, how are you
<wasamasa> pleiosaur: that does totally not sound shady and like a 90ies revival
RegulationD has quit [Ping timeout: 256 seconds]
decoponio has joined #ruby
symbol has quit [Ping timeout: 276 seconds]
rawrmonstar has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has joined #ruby
AirStar has joined #ruby
<shevy> flughafen in the middle of rewriting a big project
jenrzzz has joined #ruby
<flughafen> shevy: rails?
<shevy> nah
AirStar has left #ruby [#ruby]
<shevy> I don't know if I can ever learn rails :(
<Gas_the_Jews> you can't learn rails
Cuubix has quit [Quit: Leaving]
<wasamasa> you can only inhale rails
<wasamasa> and pray you don't get sick from that
mengu has quit [Remote host closed the connection]
<flughafen> wasamasa: haha
<Gas_the_Jews> wasamasa: that's the gayest thing i heard all day
<wasamasa> Gas_the_Jews: you've got a pretty questionable nickname there
mary5030 has quit [Remote host closed the connection]
<Gas_the_Jews> actually, i don't if you weren't brainwashed by the media and actually did your own research and had the ability to think critically
<Gas_the_Jews> i hope that now you will be less ignorant and do research
mary5030 has joined #ruby
<Gas_the_Jews> :)
<wasamasa> ...
mengu has joined #ruby
Musashi007 has quit [Quit: Musashi007]
<wasamasa> ?ops
<ruboto> I don't know anything about ops
* wasamasa throws a bucket at ruboto
<certainty> oh man
<certainty> moin guys
<shevy> yo c-man
<certainty> c-man?
weemsledeux has joined #ruby
Musashi007 has joined #ruby
<Gas_the_Jews> seriously, jews are committing mass genocide against palestinians and are getting away with it
<shevy> yeah
<shevy> someone ban the troll pls
happyface has quit [Quit: Connection closed for inactivity]
<Gas_the_Jews> are you retarded?
gauke has joined #ruby
<certainty> there we go
<shevy> go away man
<certainty> thanks sevenseacat
Gas_the_Jews was banned on #ruby by sevenseacat [*!670ac5da@gateway/web/freenode/ip.103.10.197.218]
Gas_the_Jews was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
<shevy> \o/
<shevy> that's one deadly cat there
DavidDudson has joined #ruby
nanoyak has quit []
<certainty> one cat to rule them all?
<sevenseacat> i dont get the recent spate of offensive trolls.
<certainty> maybe it's just one with too much time
<sevenseacat> i suspect so
xxneolithicxx has quit [Ping timeout: 255 seconds]
<shevy> certainty I think that counts for rings, not cats
mary5030 has quit [Ping timeout: 255 seconds]
<certainty> shevy: rings, cats, the borders are blurry
jgt has joined #ruby
SIEG_HEIL has joined #ruby
anisha has joined #ruby
<shevy> One ring to bring them all and in the darkness bind them.
<shevy> One cat to bring all mice and in the darkness eat them.
<shevy> hmm nah... fits more to rings
<SIEG_HEIL> 0/
<certainty> it all ends in s
<shevy> certainty: look, I am looking at old code like this "if @user_input[-1, 1] == '&'"
<certainty> oh please
<shevy> anyone remembers when .end_with? was added?
<sevenseacat> ruby 1.9, i suspect
yfeldblum has joined #ruby
<shevy> oh... that early... I thought it was more a 2.x something addition. Anyway, I like it!
<sevenseacat> i'll check
<sevenseacat> yeah ruby 1.9.2
simpyll has joined #ruby
bMalum has joined #ruby
nii236 has joined #ruby
<sevenseacat> or ruby 1.8.7 actually
terlar has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<flughafen> which ruby are you using shevy ?
<certainty> see shevy, that's one for you. I hear you like ancient rubies
<shevy> the latest... 2.2.2 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
<SIEG_HEIL> NIGGER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
SIEG_HEIL was banned on #ruby by sevenseacat [*!b2a2d08e@gateway/web/freenode/ip.178.162.208.142]
SIEG_HEIL was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
<shevy> now I am confused, I thought .end_with? was really more recent
<shevy> I don't think I have used it in the 1.8.x era
<certainty> you didn't know it
<shevy> hmm
<certainty> the 1.8.x era? you mean like last year
<certainty> *scnr*
<shevy> I think it's a few years already by now
<shevy> remember, we have the middle of 2015!
thirdknife has joined #ruby
<certainty> what?
djellemah_ has joined #ruby
<certainty> seriously?
<shevy> yeah
<certainty> weired
<certainty> it feels like the 90s here
<flughafen> certainty still listens to cassette tapes
<certainty> i mean like super awesome
<certainty> xD
Musashi007 has quit [Quit: Musashi007]
lxsameer has joined #ruby
lxsameer has joined #ruby
<certainty> get a pen out stick it in and then crank that thing
<shevy> the 1990s were pretty cool
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<certainty> indeed
<shevy> kinda like the 1980s but a decade more modern
anisha has quit [Quit: Leaving]
pwnz0r has quit [Remote host closed the connection]
<shevy> surely you must remember the love parade
<certainty> probably the best time of my life
<certainty> not the love parade
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> in the range from 2005 to 2010, it just wasn't the same as compared to 1995 to 2000
gagrio_ has joined #ruby
<shevy> the music was very cheesy altogether in the 1990s
<shevy> eurodance oh dear
<certainty> and by cheesy you mean awesome?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> haha :D
LJT has joined #ruby
<certainty> what?
<shevy> I like the music from the 1990s but I can not honestly claim that it was good music
<certainty> K's choice, Pearl jam, later nirvana
<wasamasa> how dare you
<certainty> that's legend
Stalkr_ has quit [Quit: Leaving...]
bMalum has quit [Quit: bMalum]
<shevy> well I know those names... save for K's choice
bMalum has joined #ruby
alex88 has joined #ruby
alex88 has quit [Changing host]
alex88 has joined #ruby
Pumukel has joined #ruby
unshadow has joined #ruby
Igorshp has joined #ruby
<certainty> smashing pumpkins also
thirdknife has quit [Quit: This computer has gone to sleep]
<certainty> anyway, time for some SML
<shevy> is this lisp?
<certainty> nope
<certainty> it's ML
<shevy> XML?
<certainty> :p
isxek has quit [Quit: ChatZilla 0.9.91-rdmsoft [XULRunner 32.0.3/20140923175406]]
Igorshp has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
baweaver has quit [Remote host closed the connection]
LJT has quit [Quit: Sleeping...]
yfeldblu_ has quit [Read error: Connection reset by peer]
Adolf_the_Great has joined #ruby
yfeldblum has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
avril14th_ has joined #ruby
Adolf_the_Great has quit [K-Lined]
tubuliferous_ has quit [Ping timeout: 264 seconds]
Hounddog has joined #ruby
paradisaeidae_ has joined #ruby
kies has quit [Ping timeout: 240 seconds]
paradisaeidae has quit [Ping timeout: 250 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
Joufflu has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
[gmi] has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
[gmi] has quit [Client Quit]
kies has joined #ruby
hacker has joined #ruby
hanmac1 has joined #ruby
<hacker> why do i keep getting klined?
xcesariox has joined #ruby
<sevenseacat> good question, why do you?
hacker is now known as Guest87590
<Guest87590> i don't know is it because you're an ugly cunt sevenseacat ?
Guest87590 was banned on #ruby by sevenseacat [*!97ec1a69@gateway/web/freenode/ip.151.236.26.105]
Guest87590 is now known as NIGGRE
NIGGRE was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
<sevenseacat> probably.
ahmetkapikiran has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
CUN_TLORD has joined #ruby
edwinvdgraaf has joined #ruby
CUN_TLORD was banned on #ruby by sevenseacat [*!258f0e9d@gateway/web/freenode/ip.37.143.14.157]
CUN_TLORD was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
marr has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
DavidDudson has joined #ruby
* sevenseacat munches on popcorn
ahmetkapikiran_ has joined #ruby
d34th4ck3r has joined #ruby
spider-mario has quit [Remote host closed the connection]
ahmetkapikiran has quit [Ping timeout: 272 seconds]
ahmetkapikiran_ is now known as ahmetkapikiran
ta has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
HIT_LER has joined #ruby
<HIT_LER> hello again sevenseacunt
<HIT_LER> whoops i mean sevenseacat*
HIT_LER was banned on #ruby by sevenseacat [*!92b911a2@gateway/web/freenode/ip.146.185.17.162]
HIT_LER was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
blackmes1 has quit [Ping timeout: 256 seconds]
KIKES_SUCK has joined #ruby
<KIKES_SUCK> hi
<ebonics> so funny lulz
<KIKES_SUCK> what is?
<ebonics> u m8
wolflee has joined #ruby
<shevy> KIKES_SUCK grow up man
rdark has joined #ruby
KIKES_SUCK_ has joined #ruby
<KIKES_SUCK_> why am i funny edwinvdgraaf
<KIKES_SUCK_> ebonics:
<shevy> he even fails at tab completion
<KIKES_SUCK_> shevy: you mean the ops fail at klining me
<KIKES_SUCK_> this is my 32nd kline
<ebonics> KIKES_SUCK_, bcos youre a trashcan with nothing better to do
<shevy> it's not so hard, it's a big key on your keyboard KIKES_SUCK
<sevenseacat> don't feed the troll, guys.
<KIKES_SUCK_> don't listen to sevenseacunt
<sevenseacat> and girls. and everyone.
KIKES_SUCK was banned on #ruby by sevenseacat [*!4524bc19@gateway/web/freenode/ip.69.36.188.25]
KIKES_SUCK_ was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
roolo has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
RegulationD has joined #ruby
djellemah_ has quit [Ping timeout: 272 seconds]
KIKES_SUCK has quit [Ping timeout: 246 seconds]
<shevy> seems as if cats have more lives than that troll had
hanmac has joined #ruby
<sevenseacat> he's changing all his hostname stuff every time, so I don't know how to do anything else other than kick/ban him.
ahmetkapikiran has joined #ruby
KIKES_SUCK_DICK has joined #ruby
<KIKES_SUCK_DICK> hello again i had to be banned from a few channels to get a kline and come back
KIKES_SUCK_DICK was banned on #ruby by sevenseacat [*!cdcc5516@gateway/web/freenode/ip.205.204.85.22]
KIKES_SUCK_DICK was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
terlar has quit [Quit: WeeChat 1.1.1]
<canton7> write a little script that autobands people with only caps and underscores in their name
RegulationD has quit [Ping timeout: 244 seconds]
<canton7> looking down the nick list I don't think it would catch anyone else, and he might be too dumb to figure it out...
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<shevy> canton7 hehe
GAS_KIKES has joined #ruby
GAS_KIKES is now known as sevenseacun-t
<sevenseacun-t> hi sevenseacat
sevenseacun-t was banned on #ruby by sevenseacat [*!b043ac55@gateway/web/freenode/ip.176.67.172.85]
sevenseacun-t was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
DavidDudson has joined #ruby
<shevy> how can people have so much time and patience
DexterLB has quit [Read error: Connection reset by peer]
<shevy> especially via browser-based webchat
sevenseabitch has joined #ruby
<sevenseabitch> hello again!
sevenseabitch was banned on #ruby by sevenseacat [*!b23ef973@gateway/web/freenode/ip.178.62.249.115]
sevenseabitch was kicked from #ruby by sevenseacat [Your behavior is not conducive to the desired environment.]
<Ropeney> some people have alot of spare time
juanpablo_ has joined #ruby
<sevenseacat> my apologies to everyone here. I'm trying to get staff to help me handle them.
CloCkWeRX has quit [Quit: Leaving.]
<sevenseacat> I'm not an IRC guru unfortunately
nii236 has quit [Ping timeout: 276 seconds]
<shevy> Ropeney yeah
<certainty> no worries sevenseacat, keep it up
paradisaeidae_ has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]]
DexterLB has joined #ruby
sinepreggin has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sinepreggin> hi guys
<sinepreggin> is ruby a fun language?
<certainty> it is for some people yes
bMalum has joined #ruby
<sinepreggin> but not for sevenseacat right?
<certainty> bah
juanpablo_ has quit [Ping timeout: 276 seconds]
davidhq has joined #ruby
jenrzzz has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MXfive has joined #ruby
<sevenseacat> i love ruby.
<certainty> women and jewels and all that :p
<sevenseacat> ;)
<sinepreggin> i heard you're having a rough night
Igorshp has joined #ruby
nii236 has joined #ruby
<sinepreggin> someone keeps coming in here and calling you names like sevenseacunt and no matter how many times they kline her she keeps coming back... isn't that awful sevenseacat?
<certainty> i should build a language and name it Arkenstone, just because
Igorshp_ has joined #ruby
sinepreggin has quit [K-Lined]
livathinos has joined #ruby
GreyHands has joined #ruby
denver has joined #ruby
thatslifeson has quit [Remote host closed the connection]
Igorshp_ has quit [Remote host closed the connection]
zacts has joined #ruby
CloCkWeRX has joined #ruby
denver has quit [Remote host closed the connection]
Igorshp has quit [Ping timeout: 256 seconds]
last_staff has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
hyperjuice has joined #ruby
mary5030 has joined #ruby
Ropeney has quit [Quit: Leaving...]
TheHodge has joined #ruby
crazydiamond has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
quimrstorres has joined #ruby
bMalum has quit [Quit: bMalum]
terlar has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
hyperjuice has quit [Ping timeout: 264 seconds]
ta has joined #ruby
fabrice31 has quit [Remote host closed the connection]
sophie_ has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
kyrylo_ has joined #ruby
lordkryss has joined #ruby
bMalum has joined #ruby
<al2o3-cr> I'd suggest this for the time being: /ban *!*@gateway/web/freenode/* or /ban *!*@gateway/* sevenseacat
gizless has joined #ruby
fabrice31 has joined #ruby
<adaedra> that'd have some undesired side effects
<Radar> al2o3-cr: Ban all web clients? What about those people who are signed in already through the web?
<al2o3-cr> use his ip address to then
denver has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 252 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
gizmore has quit [Ping timeout: 256 seconds]
hmsimha has joined #ruby
<adaedra> how wonderful.
car has joined #ruby
einarj has joined #ruby
nii236 has left #ruby ["WeeChat 1.1.1"]
ndrei has joined #ruby
bMalum has quit [Client Quit]
mengu has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<Darkwater> +r the channel
<Radar> al2o3-cr: And if the IP keeps changing?
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra> Or we do nothing, as it seems it's calm now.
joonty has joined #ruby
vtunka has joined #ruby
arup_r has quit [Remote host closed the connection]
pandaant has joined #ruby
<al2o3-cr> sevenseacat was told +r in freenode
msgodf has joined #ruby
AirStar has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
aganov has quit [Remote host closed the connection]
bMalum has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
loechel has joined #ruby
aganov has joined #ruby
lkba has joined #ruby
Spami has quit [Client Quit]
dorei has joined #ruby
wolflee has quit [Remote host closed the connection]
wolflee has joined #ruby
bMalum has quit [Quit: bMalum]
<agent_white> Just tuning in... what's the deal with the prick-parade?
LJT has joined #ruby
cellar_door has joined #ruby
toretore has joined #ruby
Zai00 has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
Zai00 has quit [Client Quit]
LJT has quit [Quit: Sleeping...]
CloCkWeRX has left #ruby [#ruby]
arup_r has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
RegulationD has joined #ruby
LJT has joined #ruby
doertedev has joined #ruby
car has quit [Ping timeout: 255 seconds]
Zai00 has joined #ruby
ebonics has quit [Ping timeout: 272 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
mdw has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
AirStar has left #ruby [#ruby]
lidenskap has quit [Remote host closed the connection]
GreyHands has quit [Ping timeout: 256 seconds]
hmsimha has quit [Ping timeout: 256 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
car has joined #ruby
<duderonomy> Uhm, I want to get better at class design and not think and write procedurally. Do any topical blog posts or essays come to mind?
Igorshp has joined #ruby
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
<duderonomy> Clearly, I just need to think about my problem more. :)
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
<duderonomy> I get the whole Animal -> Mammal -> Dog thing
<duderonomy> And when modeling the physical world is it less challenging.
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
<duderonomy> But when doing a sysadmin task, I have to think really hard. :)
colorados has joined #ruby
<certainty> duderonomy: http://www.poodr.com/
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
kyrylo_ is now known as kyrylo
<duderonomy> thx man. looks good.
granthatcher has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
granthatcher has quit [Max SendQ exceeded]
<certainty> you might also enjoy some of sandi metz's talks
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
d34th4ck3r has quit [Quit: zzz]
granthatcher has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
gizmore has joined #ruby
ohaibbq has quit [Quit: Leaving...]
asmodlol has joined #ruby
gizless has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
<krasnus> rubytapas is also quite good, no?
<certainty> yeah
tubuliferous_ has joined #ruby
monsieur1 has joined #ruby
diegok has quit [Ping timeout: 244 seconds]
eregon has quit [Quit: No Ping reply in 180 seconds.]
eregon has joined #ruby
car has quit [Quit: Leaving]
monsieurp has quit [Ping timeout: 244 seconds]
diegok has joined #ruby
vasilakisfil has joined #ruby
Joufflu has joined #ruby
oo_ has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
startupality has joined #ruby
<duderonomy> cool. I got lots to do now. :) thx!
tubuliferous_ has quit [Ping timeout: 240 seconds]
Oka has quit [Quit: さようなら]
oo_ has joined #ruby
quimrstorres has joined #ruby
blackmes1 has joined #ruby
startupality has quit [Client Quit]
ec-not-irccloud has joined #ruby
avat has joined #ruby
ec-not-irccloud has quit [Client Quit]
<avat> Hello guys, I have a problem with bloating my methods. Let's say for example I have a method "get_actions" which now does following things:
monsieur1 is now known as monsieurp
monsieurp has quit [Changing host]
monsieurp has joined #ruby
<toretore> refactor(refactor(refactor(refactor())))
ec-not-irccloud has joined #ruby
<avat> Hello guys, I have a problem with bloating my methods. Let's say for example I have a method "get_actions" which now does following things: 1. call GET request and download json with data, 2. Open sqlite database connection, 3. Save each json item to database, 4. After all are saved, log the success message. Should I make them to four methods?
avril14th_ has quit [Remote host closed the connection]
<hanmac1> avat: i would say yes ;P
<avat> I thought so, the problem came up when I wanted to write proper tests and it's not easy when one method does a lot of things. So in this example 4 is optimal or should it be more/less?
<adaedra> avat: try to split it in the smallest bits possible.
<avat> Should i move logging to different method too?
CustosLimen has joined #ruby
<adaedra> But how to split it is at your appreciation.
<toretore> avat: in general, if it's easy to test then it's just right
<toretore> if it's a pain to test, something isn't right
SuperTaz has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 265 seconds]
<avat> toretore: thanks, your advice helps
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<avat> I need to keep it in mind for future :)
<avat> And guys, what about logging feature? At the end of method which does something or should the method call different loggin method or should i call logging indepent after everything finishes?
agent_white has quit [Read error: Connection reset by peer]
<duderonomy> avat: is it useful to think that logging could be in any method?
<duderonomy> Or, is this logging a task that this class must perform? Does the caller explicitly know about the logging in the sense that the caller calls the logging method?
n008f4g_ has joined #ruby
kt2 has quit [Read error: Connection reset by peer]
<duderonomy> I should say "user" of the object, not "caller". ugh. :)
<shevy> hmm
<shevy> :show_hidden_files => true is the same as: show_hidden_files: true right?
<toretore> yes
kt2 has joined #ruby
<avat> It's actually script running in the background responding only to REST events, so loggin is only for informational purposes / debuging
joonty has quit [Ping timeout: 256 seconds]
eyeamaye has quit [Quit: Leaving.]
<toretore> avat: can you gist the code? it's easier to give advice that way
SuperTaz has joined #ruby
<avat> toretore: I warn you: I am really beginner :) https://gist.github.com/ZyzioZiom/9820504900e042dad074
ec-not-irccloud is now known as ec
ec is now known as ec\
<jhass> avat: start by clicking edit and activating syntax highlighting then ;)
<toretore> avat: those logging statements are fine inside the method
<toretore> and this might be personal preference, but i don't generally use verbs in my method names
kt2 has quit [Quit: ...]
<toretore> so i'd call it just "actions"
agent_white has joined #ruby
<jhass> it doesn't return any, I'd call it store_actions or since the class is already called GetData, simply run
ec\ has quit [Quit: best short-url ever. <http://ell.io/tt>]
ec\ has joined #ruby
arup_r has quit []
<avat> enabled highlighting, sorry :)
<shevy> this is the beauty of ruby
<shevy> people can not agree on naming things
zcreative has joined #ruby
TheBrayn has quit [Quit: ZNC - http://znc.in]
leafybasil has quit [Remote host closed the connection]
TheBrayn has joined #ruby
<certainty> naming is hard
<certainty> but i'm with jhass here
<certainty> i'd expect actions to return something
kt2 has joined #ruby
<flughafen> certainty: what are the two hardest things in computer science? cache invalidation and naming things
<shevy> ninja actions are silent
<certainty> flughafen: and off-by-one errors
<flughafen> those are the most common, but not the hardest...
<certainty> it's a common variation of that phrase
_ixti_ has quit [Ping timeout: 256 seconds]
<certainty> it's supposed to be a joke
<flughafen> yes. it is. quite a funny one. mwahaha
<certainty> ;p
<avat> I named it after GET request which actually downloads json of actions
yeticry has quit [Ping timeout: 240 seconds]
shellfu_afk has quit [Read error: Connection reset by peer]
<avat> somewhere i read to name functions like after word TO, ex. TO get_user_name { ... } which in ruby becomes def get_user_name
<avat> in Clean Code actually :D
<certainty> i don't like get_*, set_*
<jokke> hi
<avat> so I guess naming is decision of preference instead of an error?
<jokke> i'm having some trouble with bundler
<jokke> i run bundle install
<jokke> and it fails to build some native extensions
yeticry has joined #ruby
<avat> certainty: it's really wrong to use GET, SET in method names?
juanpablo_ has joined #ruby
<jokke> if i run gem install gemname -v 'version' it installs those gems just fine
<jokke> i'm using chruby
<certainty> avat: well in ruby we have attr_readers/attr_writers
<jokke> (in case that makes a difference)
<certainty> avat: which are just your_field/your_field=
d34th4ck3r has joined #ruby
<jokke> after the bundle was complete (after manually installing the failing gems) i got errors, that some gems were not found in the sources even though bundle lists them with the correct versions
workmad3 has joined #ruby
<adaedra> avat: set_x => x=, get_x => x
<jokke> any clues?
<adaedra> or, if x is a boolean, x?
<toretore> improvements can still be made, for sure
iterato__ has quit [Remote host closed the connection]
TheBrayn has quit [Quit: ZNC - http://znc.in]
juanpablo_ has quit [Ping timeout: 256 seconds]
iotouch has quit [Quit: This computer has gone to sleep]
RegulationD has joined #ruby
iotouch has joined #ruby
Stichoza has joined #ruby
<jhass> avat: http://paste.mrzyx.de/p1lfwozfe names are still off since I couldn't really decipher what this is about, but should give you some ideas
<avat> Thanks a lot guys, I'll dive into it and try to refactor my code
Akagi201 has joined #ruby
craigp has joined #ruby
Igorshp has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
Igorshp has joined #ruby
<avat> And no I start to understand how can I write tests to this code :D
<jhass> avat: in short identify the "atomic" operations of your code and give them nice names by extracting them to methods, then group related methods into a class (if they share state) or module (if they don't share state)
<avat> now* I start
Igorshp has quit [Remote host closed the connection]
roolo has joined #ruby
Igorshp has joined #ruby
Igorshp has quit [Remote host closed the connection]
hyperjuice has joined #ruby
davedev2_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
leafybasil has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
astrobunny has joined #ruby
Stichoza has quit [Quit: Be back later ...]
lidenskap has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cellar_door has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<duderonomy> avat: It's really good instinct that you thought about refactoring for testability :)
sonOfRa has quit [Quit: Bye!]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
hyperjuice has quit [Ping timeout: 264 seconds]
<izzol> Anyone knows any good gem for kvm?
<izzol> I found one which is called ruby-libvirt.
roshanavand has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
<izzol> I want to connect to the kvm to create/delete/list virtual machines.
timonv has joined #ruby
sonOfRa has joined #ruby
lidenskap has quit [Ping timeout: 272 seconds]
C1V0 has joined #ruby
<adaedra> izzol: libvirt bridge seems a good idea if you know it
<rdark> izzol: fog can also do libvirt
TheBrayn has joined #ruby
anisha has joined #ruby
MasterPiece`` has joined #ruby
oo_ has quit [Remote host closed the connection]
<izzol> ok, thanks. I will look on this fog since it has much more options :-)
Igorshp has joined #ruby
cryptarium has quit [Quit: Leaving]
startupality has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
xcesariox has joined #ruby
rahult has joined #ruby
TheBrayn has quit [Quit: ZNC - http://znc.in]
wolfleemeta has joined #ruby
User458764 has joined #ruby
tvw has joined #ruby
MasterPiece`` has quit [Quit: Leaving]
davidhq has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
wolflee has quit [Ping timeout: 256 seconds]
p7r has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has joined #ruby
senayar has joined #ruby
funburn has joined #ruby
tkuchiki has quit [Ping timeout: 256 seconds]
codecop has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
goose_ has joined #ruby
<funburn> i just came across a weird thing that I can’t explain. I’m declaring a hash, inside a block. One of the keys is :end. If I declare it with a hash_rocket, it works fine. but if I use the ruby 2 syntax it bombs with an “unexpected end of input” (example https://gist.github.com/mtuckerb/b9ea4c3a030a83836ae8)
<rdark> funburn: end is a keyword
Leef_ has joined #ruby
<funburn> but doesn’t end: “string” make it a symbol?
TheBrayn has joined #ruby
arturaz has joined #ruby
<rdark> afaik you can't override it as it'll bomb with a syntax error
<funburn> is that what I’m doing when I declare my hashes like {key: value}?
mdw has joined #ruby
<rdark> funburn: symbol syntax is to prefix with a colon, not postfix
dumdedum has joined #ruby
<rdark> { this: that } is just another way of writing { this => that }
<rdark> if you wanted the key to be a symbol, you can write { :this => that }
<funburn> ah, I assumed that :this => that was == this: that
<funburn> it seems to be everywhere else I have used it
<doertedev> http://pastie.org/pastes/10184038/text << what can cause gem's files failing to include files from the same directory if they exist and there is no typo?
<funburn> ah I see
mdw has quit [Ping timeout: 256 seconds]
codecop has joined #ruby
<funburn> it works if the key is a symbol, but if the key is a method /before/ it’s declared a symbol it won’t work
<funburn> it will assume I mean the method
<funburn> or keyword
<funburn> thanks for clarifying
Igorshp has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
Igorshp has joined #ruby
Rickmasta has joined #ruby
<doertedev> digital_ocean_domain_record_create.rb:14 << include 'digital_ocean_base' << i see the digital_ocean_base.rb exists and does not have any weird unreadable mode set. Anyone seen something similar yet?
Igorshp has quit [Read error: Connection reset by peer]
Igorshp_ has joined #ruby
idafyaid has quit [Ping timeout: 246 seconds]
goose_ has quit [Remote host closed the connection]
d34th4ck3r has quit [Quit: zzz]
mwilson has quit [Remote host closed the connection]
roshanavand has quit [Quit: Konversation terminated!]
senayar has joined #ruby
roshanavand has joined #ruby
goose_ has joined #ruby
wpp has joined #ruby
goose_ has quit [Read error: Connection reset by peer]
goose_ has joined #ruby
_blizzy_ has joined #ruby
colorados has quit [Remote host closed the connection]
colorados has joined #ruby
fella5s has joined #ruby
mengu has joined #ruby
wolfleemeta has quit [Remote host closed the connection]
powder has quit [Ping timeout: 245 seconds]
wolfleemeta has joined #ruby
powder has joined #ruby
DEA7TH has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Mohan_ has quit [Ping timeout: 265 seconds]
roshanavand has quit [Quit: Konversation terminated!]
psy_ has joined #ruby
sepp2k has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
Mohan has joined #ruby
goose_ has quit [Remote host closed the connection]
Mohan is now known as Guest26017
xcesariox has quit [Ping timeout: 264 seconds]
jogara has joined #ruby
RegulationD has joined #ruby
iotouch has joined #ruby
User458764 has joined #ruby
Zai00 has quit [Quit: Zai00]
GreyHands has joined #ruby
iasoon has joined #ruby
sdothum has joined #ruby
thirdknife has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goose_ has joined #ruby
rahult has joined #ruby
davedev24_ has joined #ruby
astrobunny has joined #ruby
tubuliferous_ has joined #ruby
senayar has quit [Remote host closed the connection]
davedev2_ has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
goose_ has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 256 seconds]
claptor has quit [Quit: this channel is bakas]
zotherstupidguy has quit [Ping timeout: 264 seconds]
livathinos is now known as livathinos|away
livathinos|away has quit []
Squarepy has joined #ruby
doodlehaus has joined #ruby
Leef_ has quit [Quit: Leaving]
iotouch has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
goose_ has joined #ruby
ndrei has joined #ruby
mostlybadfly has joined #ruby
iotouch has joined #ruby
livathinos has joined #ruby
<izzol> rdark: I think there is no more libvirt in fog (https://github.com/fog/fog/tree/master/lib/fog) nothing here.
<izzol> I see there is a separate gem called: fog-libvirt but fog doesn't see it :(
ndrei has quit [Ping timeout: 240 seconds]
<izzol> and I'm getting: "libvirt is not a recognized compute provider"
<adaedra> you installed it and required it?
psy_ has quit [Ping timeout: 256 seconds]
haxrbyte_ has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
<rdark> izzol: looks like libvirt got pulled out to a sub-project
ndrei has joined #ruby
<rdark> fog-libvirt is what you want
al2o3-cr has joined #ruby
haxrbyte has quit [Client Quit]
colorados has quit [Ping timeout: 245 seconds]
duckpunch has quit [Ping timeout: 240 seconds]
leafybas_ has joined #ruby
goose_ has quit []
delianides has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahult has joined #ruby
fabrice31 has joined #ruby
iotouch has quit [Quit: 离开]
leafybasil has quit [Ping timeout: 272 seconds]
DEA7TH has quit [Ping timeout: 272 seconds]
phutchins has joined #ruby
theotherstupidgu has joined #ruby
Akagi201 has quit []
BTRE has quit [Quit: Leaving]
pandaant has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
lkba has joined #ruby
bruno- has joined #ruby
bruno- has quit [Client Quit]
postmodern has quit [Quit: Leaving]
delianides has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
centrx has joined #ruby
leafybas_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 276 seconds]
leafybasil has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
MasterPiece has joined #ruby
<shevy> dumdedum
<izzol> Hmm, I still have a problem to use this gem. Not sure what is wrong.
rodfersou has joined #ruby
ascarter has joined #ruby
Musashi007 has joined #ruby
qwertme has joined #ruby
shazaum has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
Guest26017 has quit [Ping timeout: 264 seconds]
C1V0 has quit [Ping timeout: 265 seconds]
C1V0 has joined #ruby
bkxd has joined #ruby
startupality has joined #ruby
<jhass> izzol: require "fog-libvirt" first?
Mohan has joined #ruby
hyperjuice has joined #ruby
Mohan is now known as Guest53131
SouL_|_ has quit [Ping timeout: 256 seconds]
<izzol> jhass: LoadError: cannot load such file -- fog-libvirt
<jhass> "fog/libvirt" then?
bruno- has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
<izzol> irb(main):001:0> require 'fog/libvirt'
<izzol> => true
<izzol> ha!
<izzol> thanks jhass
barkerd427 is now known as zz_barkerd427
tekacs has quit [Quit: Disappearing... *poof*]
ldnunes has joined #ruby
serivich has joined #ruby
theotherstupidgu has quit [Quit: Lost terminal]
hyperjuice has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
doodlehaus has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
aryaching has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
funburn has quit [Ping timeout: 264 seconds]
tekacs has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
idafyaid has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Ping timeout: 265 seconds]
<surs> I'm using optparse. Do I need to specify long switches?
simpyll has quit [Ping timeout: 272 seconds]
<centrx> no I don't think so, what do you mean?
<surs> opts.on("-cX","explanation") is fine?
<centrx> yup, pretty sure
<centrx> I use the long without the short myself
<centrx> so vice-versa must work too
<surs> or does it have to be opts.on("-c","--case X","expl)
<surs> ok
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
rippa has joined #ruby
antgel has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
<hanmac1> shevy: i am doing commits for rwx again ... and you cant stop me! ;P
Zai00 has joined #ruby
<shevy> \o/
jimms has joined #ruby
senayar has joined #ruby
sophie_ has quit [Ping timeout: 244 seconds]
ascarter has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 264 seconds]
djellemah_ has joined #ruby
Guest53131 has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
antgel has joined #ruby
Mohan_ has joined #ruby
ascarter has quit [Max SendQ exceeded]
alderamin has joined #ruby
ascarter has joined #ruby
wjimenez5271 has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Quit: Musashi007]
tekacs has quit [Quit: Disappearing... *poof*]
tekacs has joined #ruby
marens has quit [Ping timeout: 272 seconds]
jimms has quit [Remote host closed the connection]
charliesome has joined #ruby
qwertme has joined #ruby
bearnado has joined #ruby
<shevy> I need to rewrite a class
<shevy> to become as fast as possible
<hanmac1> shevy the bad thing is that wxWidgets does have some hidden (undocumented( asserts where the input might crash, so i need to check my input before it might be able to crash inside wx ... (some ruby exception is better than a assert/fatal message)
bollullera has joined #ruby
<centrx> shevy, You could delete everything in it?
<shevy> centrx yeah but then I could not offer features
romero has left #ruby [#ruby]
<hanmac1> shevy make us a gist or a repo and we might help you
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> I will not help him
<centrx> PHP or bust
<centrx> *rust
<centrx> Okay, my comedy routine is over now
jogara has quit [Quit: jogara]
thatslifeson has joined #ruby
<shevy> hanmac1 basically, I need to clone the bash functionality of "alias"
<shevy> my aliases are stored in yaml files
Axy has joined #ruby
Axy has joined #ruby
<shevy> an alias can point towards another alias though
<jhass> shevy: use crystal :P
<shevy> I think I need to split this into two classes...
<shevy> jhass :(
Vile` has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 240 seconds]
C1V0 has quit []
Mohan_ has quit [Ping timeout: 240 seconds]
thatslif_ has joined #ruby
thatslifeson has quit [Ping timeout: 272 seconds]
charliesome has quit [Ping timeout: 256 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DefV> shevy: show your current implementation and we might optimize it for kicks
Mohan has joined #ruby
workmad3 has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
Mohan is now known as Guest78697
charliesome has joined #ruby
jogara has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
jimms has joined #ruby
thatslif_ has quit [Remote host closed the connection]
djellemah_ has quit [Ping timeout: 272 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd_ has joined #ruby
lkba has joined #ruby
Rapier- has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
DrShoggoth has joined #ruby
tjbiddle has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.1.1]
SOLDIERz has joined #ruby
alexherbo2 has joined #ruby
livathinos has quit []
qwertme has joined #ruby
goodcodeguy has joined #ruby
dstarh has joined #ruby
wolfleemeta has quit [Ping timeout: 255 seconds]
wolfleemeta has joined #ruby
livathinos has joined #ruby
avat has quit [Ping timeout: 246 seconds]
tubuliferous_ has joined #ruby
zz_barkerd427 is now known as barkerd427
ndrei has quit [Ping timeout: 244 seconds]
Papierkorb has joined #ruby
ndrei has joined #ruby
tubuliferous_ has quit [Ping timeout: 255 seconds]
quimrstorres has quit [Remote host closed the connection]
marens has joined #ruby
marens has joined #ruby
wildroman2 has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
Guest78697 has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
charliesome has joined #ruby
DrShoggoth has quit [Quit: Leaving]
Mohan_ has joined #ruby
mary5030 has joined #ruby
delianides has joined #ruby
LJT has quit [Quit: Sleeping...]
apurcell has joined #ruby
senayar has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 240 seconds]
ych_ has joined #ruby
tkuchiki has joined #ruby
cek has left #ruby [#ruby]
allcentury has joined #ruby
symbol has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
jtdowney has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
LJT has joined #ruby
<ych_> is there a ruby math lib that contain cosine similarity of vectors?
fabrice31 has quit [Remote host closed the connection]
delianides has quit [Ping timeout: 256 seconds]
apurcell has quit [Ping timeout: 264 seconds]
symbol has quit [Client Quit]
jimms has quit [Remote host closed the connection]
juanpablo_ has joined #ruby
ndrei has joined #ruby
delianides has joined #ruby
psy_ has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
Rickmasta has joined #ruby
allcentury has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
diegoaguilar has joined #ruby
failshell has joined #ruby
juanpablo_ has quit [Ping timeout: 252 seconds]
delianides has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
sgambino has joined #ruby
vikaton has joined #ruby
bkxd_ has quit [Ping timeout: 272 seconds]
<vikaton> how do I split a string but the nth character?
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<vikaton> like '123456789' every 2
Mohan_ has quit [Ping timeout: 256 seconds]
kblake has joined #ruby
jtdowney has quit []
<apeiros> >> '123456789'.scan(/.{,2}/m)
<ruboto> apeiros # => ["12", "34", "56", "78", "9", ""] (https://eval.in/350738)
<apeiros> >> '123456789'.scan(/.{1,2}/m)
<ruboto> apeiros # => ["12", "34", "56", "78", "9"] (https://eval.in/350739)
<apeiros> vikaton: ^
alderamin has quit []
Mohan_ has joined #ruby
<vikaton> hmm
lidenskap has joined #ruby
jerius has joined #ruby
<vikaton> thanks apeiros
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
JDiPierro has joined #ruby
JDiPierro has quit [Remote host closed the connection]
JDiPierro has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
lolmaus has joined #ruby
kblake has quit [Ping timeout: 264 seconds]
LJT has quit [Quit: Sleeping...]
<apeiros> yw
lidenskap has quit [Ping timeout: 244 seconds]
* jhass steals apeiros wizard hat
but3k4 has joined #ruby
scripore has joined #ruby
<apeiros> noooooooo! my hat!
lolmaus has quit [Read error: Connection reset by peer]
<apeiros> but… I still have it?
iamjarvo has joined #ruby
<jhass> you need a better client :P
<apeiros> I do
<apeiros> but why do you mean?
<jhass> because you don't even notice you're opped? :P
charliesome has quit [Ping timeout: 256 seconds]
griffindy has joined #ruby
jimms has joined #ruby
charliesome has joined #ruby
bollullera has left #ruby [#ruby]
iamjarvo has quit [Client Quit]
<apeiros> I actually don't know of a client which prominently shows your op status
enebo has joined #ruby
<jhass> weechat pretty much does
fabrice31 has joined #ruby
sankaber has joined #ruby
<jhass> test
<jhass> meh, same_nick thing, somebody say something I can respond to :P
Alina-malina has quit [Read error: Connection reset by peer]
wolfleemeta_ has joined #ruby
mengu has joined #ruby
<apeiros> jhass: plerp?
lavros has joined #ruby
dblessing has joined #ruby
<jhass> plerp!
<apeiros> palüm.
<jhass> three locations
wolfleemeta has quit [Ping timeout: 246 seconds]
Alina-malina has joined #ruby
<apeiros> nice
charliesome has quit [Ping timeout: 256 seconds]
northfurr has joined #ruby
chrissonar has quit [Remote host closed the connection]
Mohan_ has quit [Ping timeout: 256 seconds]
<adaedra> <apeiros> I actually don't know of a client which prominently shows your op status
<adaedra> what do you mean?
<apeiros> adaedra: I mean that I see my op status in the user list. that's not really "jumping" into your eye.
<adaedra> Lot of clients does o_O
<al2o3-cr> jhass: what setting do you set for coloured nicks on right hand side?
<jhass> al2o3-cr: colorize_nicks script
lolmaus has joined #ruby
charliesome has joined #ruby
<al2o3-cr> jhass: ah ok :)
Mohan has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
Mohan is now known as Guest92900
<adaedra> apeiros: what do you use?
<apeiros> limechat
tagrudev has joined #ruby
lxsameer has quit [Quit: Leaving]
<adaedra> apeiros: use textual, it's good
quimrstorres has joined #ruby
<adaedra> ;)
mdw has joined #ruby
thiagovsk has joined #ruby
hyperjuice has joined #ruby
Xiti has joined #ruby
LJT has joined #ruby
sankaber has quit [Ping timeout: 276 seconds]
<apeiros> pondering
doodlehaus has joined #ruby
Dopagod has joined #ruby
<certainty> weechat looks nice. looks like something that could lead me away from irssi
<adaedra> if you look at a console client, it's indeed nice.
<jhass> the default config looks pretty much alike irssi I think
<adaedra> there's a lot of customization to do.
<adaedra> jhass: it's green when irssi is blue iirc :)
<jhass> yeah, the christmas tree I have needs a bit tweaking :P
<jhass> *for the ... it
delianides has joined #ruby
mikecmpbll has joined #ruby
Xiti has quit [Client Quit]
hyperjuice has quit [Ping timeout: 264 seconds]
<al2o3-cr> http://i.imgur.com/5ZToWK9.png heres mine :)
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
<jhass> I have a buffer list on the right that I didn't include in the screenshot
inukshuk has joined #ruby
<certainty> i'll try it at home and see what it's like. Change is good i think
<adaedra> here's an old one https://i.imgur.com/b5S8R1V.png
<al2o3-cr> yeah mines buffer list is at the top which i didn't include ;p
<hanmac1> hm my irc client is only a pidgin
Guest92900 has quit [Ping timeout: 246 seconds]
Guest1421 has joined #ruby
<al2o3-cr> ah nice :)
kobain has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
Mohan_ has joined #ruby
cassianoleal has joined #ruby
RegulationD has joined #ruby
amystephen has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
Musashi007 has joined #ruby
<hanmac1> hm i need to check if there is a Irc client named "BeeChat" too ;P
<DefV> haha
<DefV> wee
JDiPierro has quit [Remote host closed the connection]
starship has joined #ruby
aryaching has quit []
bkxd has joined #ruby
d10n-work has joined #ruby
aryaching has joined #ruby
shellfu_afk has joined #ruby
shellfu_afk is now known as shellfu
AlphaAtom has joined #ruby
<adaedra> hanmac1: there's bitlbee
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
LJT has quit [Quit: Sleeping...]
AlphaAtom has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
juanpablo_ has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
LJT has joined #ruby
AlphaAtom has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
scripore has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby
LJT has quit [Client Quit]
juanpablo_ has quit [Client Quit]
juanpablo_ has joined #ruby
juanpaucar has joined #ruby
scripore has joined #ruby
alderamin has joined #ruby
gizless has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
Mohan_ has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
LJT has joined #ruby
bmurt has joined #ruby
juanpaucar has quit [Remote host closed the connection]
Akagi201 has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
lb5tr has joined #ruby
<lb5tr> Hi guys, I just bumped version of my gem at rubygems.org
Earthnail has joined #ruby
<lb5tr> and I still can't download the newest one using bundle
<adaedra> bundle update
<lb5tr> is there some kind of propagation period?
<lb5tr> let me check
Mohan_ has joined #ruby
<lb5tr> bundle update downgrades my gem version inside Gemfile.lock to newest-1 :/
zz_Outlastsheep is now known as Outlastsheep
<Earthnail> hi there. Trying to figure out the length of MP3 files on my AWS S3 storage. All I need to do is read the metadata; as such there is no need to download the entire file. ruby-mp3info seems to be the most prominent gem for doing that; it accepts a filename or a StringIO. Is there a way to convert an S3Object into a StringIO so mp3info only downloads the bits of the file it needs?
<adaedra> does gem install get the latest version?
<lb5tr> no
crazydiamond has joined #ruby
<lb5tr> if I do manual bump of version in Gemfile.lock
<adaedra> If gem install can't get it, bundle won't
juanpablo_ has quit [Ping timeout: 256 seconds]
<jhass> lb5tr: what's the gem?
<lb5tr> jhass: cuculungwa
<lb5tr> grr
tjbiddle has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
<lb5tr> I'm interested in version 0.0.48
<jhass> and bundler and gem install install 0.0.47?
mengu has quit [Remote host closed the connection]
<lb5tr> yeah
roolo has quit [Ping timeout: 264 seconds]
<lb5tr> let me try gem install one more time
jtdowney has joined #ruby
<lb5tr> ERROR: Could not find a valid gem 'cuculungwa-0.0.48' (>= 0) in any repository
<lb5tr> ,_,
qwertme has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
<apeiros> lb5tr: you're mingling gem name and version
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<tek0011> Hey all. I, to put it bluntly, have no idea wth I am doing in Ruby. Anyone care to take a look at this? I realize I might be asking for alot but any help would be appreciated. I am trying to take some output, remove dupes, and reorganize into a list - https://gist.github.com/tek0011/346152ee616a3485e199
<lb5tr> crap
Musashi007 has quit [Quit: Musashi007]
haxrbyte_ has joined #ruby
<lb5tr> apeiros: yeah, I just used to portage syntax
<lb5tr> ,_,
AlphaAtom has joined #ruby
_ixti_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
neohunter has joined #ruby
roolo has joined #ruby
Akagi201 has quit [Remote host closed the connection]
<lb5tr> apeiros: :3 gem install worked
<apeiros> lb5tr: what's the line you have in your Gemfile?
<adaedra> tek0011: to get the serial number, a regex match is enough. Then you get an array of the serials on which you can #uniq.
<lb5tr> apeiros: but what about bundle?
emilkarl has joined #ruby
<lb5tr> cuculungwa (0.0.48)
Giorgio has joined #ruby
delianides has quit [Remote host closed the connection]
<tek0011> adaedra: that might get me somewhere. I can figure out getting each serial number and removing the dupes. I'll look into #unique. thanks
delianides has joined #ruby
Akagi201 has joined #ruby
haxrbyte has quit [Ping timeout: 255 seconds]
<jhass> lb5tr: Gemfile, not Gemfile.lock
<jhass> well, also that's the correct version in your lock?
<lb5tr> oh
<ytti> tek0011, serials << qlogicserialcommand.split.last
<neohunter> I've been thinked all night long in a short hand syntax for blocks, what do you think of this syntax, do you like it?
<ytti> tek0011, and bottom of block puts serials.uniq
<ytti> tek0011, then on top of block serials = []
<lb5tr> gem 'cuculungwa'
<neohunter> to avoid defining parameters for small blocks
<jhass> so what makes you say it's using the old version?
startupality has quit [Quit: startupality]
<neohunter> x.method{ *1 - *2 }
<Giorgio> its is possible to pass keyword argument from one method to another(nested) directly or need to be done this way https://gist.github.com/tapalilov/7b55dae7cacc9e7955d6
havenwood has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
paulcsmith has joined #ruby
Mohan_ has quit [Ping timeout: 256 seconds]
<hanmac1> neohunter: i dont think it will be accepted ... your previous try to add a ticket was rejected
<adaedra> ytti: not sure about the .split.last. Looks to me like all the serials are written at once.
<neohunter> yes but matz says is a good idea thought, he just dont like the @1 @2
<neohunter> sorry the $1 $2
shellfu is now known as shellfu_afk
<lb5tr> adaedra: hmm bundle install still reports problems
<adaedra> ?
<lb5tr> I have two environments
<hanmac1> neohunter: *something is already reserved for array-splat, so i dont think it will be added for your use-case
<lb5tr> and if I maunalyy install 0.0.48 using gem install it works just fine
<havenwood> lb5tr: It just errors with?: problems
Mohan_ has joined #ruby
<lb5tr> gem 'cuculungwa'
<lb5tr> er
<havenwood> Bundler should write better error messages.
<lb5tr> 2Could not find cuculungwa-0.0.48 in any of the sources
<lb5tr> INFO[0053] The command [/bin/sh -c bundle -j4] returned a non-zero code: 7
<neohunter> hanmac1 :( oh
Kricir has joined #ruby
<adaedra> bundler should disappear. :˚
<tek0011> ytti: ahhh thank you!
<lb5tr> hmm
slash_nick has joined #ruby
<picasso> ahh, finally figured out how to remove the irssi hilight notification for my last name, which i happen to share with the author of ruby
<ytti> adaedra, you're almost certainly right
<ytti> tek0011, if adaedra is right, instead of serieals << qlogicserialcommand.split.last, you should do
paulcsmith has quit [Ping timeout: 256 seconds]
<jhass> no, bundler is <3
<ytti> tek0011, qlogicserialcommand.each_line do { |line| serials << line.split.last }
<ytti> s/do//
paulcsmith has joined #ruby
<lb5tr> soooo
<lb5tr> ok
yalue has joined #ruby
<lb5tr> I'm using Dockerfile to create container with gems and ruby in it
dumdedum has quit [Ping timeout: 255 seconds]
<tek0011> ytti: I think that is what I was looking for, because they are all written at once
<Giorgio> someone have idea about my question ?
<ruboto> lb5tr, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/219c9f373c8c279559d0
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
AlphaAtom has quit [Read error: Connection reset by peer]
CustosLimen has quit [Remote host closed the connection]
<lb5tr> welp
<lb5tr> true dat
<adaedra> <jhass> no, bundler is <3
CustosLimen has joined #ruby
<adaedra> it could be soooo much better.
<jhass> yeah, it could use a rewrite, the codebase is a bit nuts
nateberkopec has joined #ruby
<jhass> but the concept is good
<havenwood> merger into RubyGems seems good
<lb5tr> so why bundle can't download most recent version even though gem install can?
<adaedra> First, I don't understand why it's a separate functionality to gem.
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<adaedra> Second, it doesn't let me do --user-install.
<jhass> Giorgio: there's **foo for kwargs like there's *foo for regular args, maybe that's what you're looking for?
AlphaAtom has joined #ruby
oo_ has joined #ruby
gregf has joined #ruby
<jhass> adaedra: I guess maintainership issues back then, they're moving features of bundler into rubygems atm
<havenwood> Giorgio: Maybe say more about what you're wanting?
<adaedra> cool.
charliesome has quit [Ping timeout: 256 seconds]
<havenwood> adaedra: `gem i -g` or long form `gem install --file Gemfile` works great outside of Rails, which hardcodes to Bundler.
<adaedra> havenwood: ah, didn't know that. Does it honors --user-install too?
centrx has joined #ruby
<havenwood> adaedra: yup, afaik
<jhass> lb5tr: that update call there seems silly and error prone, why not a plain bundle install --deployment?
<havenwood> adaedra: it is RubyGems so it is entirely consistent with RubyGems :)
<adaedra> An integrated way to have in-project dependencies à la node like the gem gs does would be good to for deployment environments
charliesome has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<toretore> lb5tr: let's see the entire Dockerfile
<adaedra> Ah , it remembers me I have to bug someone about gem
<adaedra> Which overrides system binaries
neohunter has left #ruby ["Textual IRC Client: www.textualapp.com"]
tjbiddle_ has joined #ruby
<Giorgio> its is possible to pass keyword argument from one method to another(nested) directly or need to be done this way https://gist.github.com/tapalilov/7b55dae7cacc9e7955d6
<Giorgio> havenwood, sorry this was question above
Squarepy has quit [Quit: Leaving]
<lb5tr> awww crap
<lb5tr> ,_,
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
juanpablo_ has joined #ruby
<Giorgio> jhass, will check it
<jhass> http://production.cf.rubygems.org/ why's that used as source instead of the regular one?
LJT has quit [Quit: Sleeping...]
mistermocha has joined #ruby
<lb5tr> I have no idea...
<lb5tr> I'm a devops not a dev
<lb5tr> I have to talk to these guys...
<lb5tr> thanks anyway :)
<jhass> yeah, do that
<wasamasa> I thought devops meant being both dev and op
<wasamasa> because, uh, the recession is hitting all of us hard!
jimms has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
<lb5tr> wasamasa: yeah, but I'm not working directly with such details
<lb5tr> maybe I should
Mohan_ has quit [Ping timeout: 272 seconds]
<lb5tr> :P
bkxd has quit [Ping timeout: 264 seconds]
Mohan_ has joined #ruby
ndrei has joined #ruby
cajone has left #ruby [#ruby]
senayar has quit [Remote host closed the connection]
freerobby has joined #ruby
emilkarl has quit [Ping timeout: 272 seconds]
casadei_ has joined #ruby
consumerism has joined #ruby
emilkarl has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
tagrudev has quit [Remote host closed the connection]
<consumerism> i'm trying to figure out how to set the POST body using an object i created with Curl::Easy.new. i can set the url when i create the object, and i can set options after that but i can't find the right option to set the actual POST data
conta has joined #ruby
tubuliferous_ has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
parduse has quit []
MasterPiece has quit [Ping timeout: 272 seconds]
<havenwood> Giorgio: alias bar foo
thatslifeson has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
jimms has joined #ruby
<havenwood> Giorgio: Hard to say from what you're showing. More context might help if an alias isn't what you're looking for.
<Giorgio> i need from method to pass same keyword argument to another
<Giorgio> which is called inside method
tubuliferous_ has quit [Ping timeout: 245 seconds]
<havenwood> Giorgio: I don't see a better way then for that particular circumstance, if I understand you right.
MasterPiece has joined #ruby
giuseppesolinas has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
surs has quit [Quit: WeeChat 0.3.7]
<jhass> !fact mk fake Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
Zekka has quit [Ping timeout: 256 seconds]
<ruboto> jhass, I will remember that fake is Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
denver has quit [Ping timeout: 256 seconds]
<Giorgio> yep i was thinking same its better how i give it in the gist
danman has joined #ruby
hanmac1 has quit [Quit: Leaving.]
tkuchiki has quit [Remote host closed the connection]
Kricir has quit []
shellfu_afk is now known as shellfu
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
denver has joined #ruby
Mohan_ has quit [Ping timeout: 244 seconds]
serivichi has joined #ruby
<consumerism> toretore: thanks, so i have a hash which represents the data. and all the examples i see which send regular form data use Curl::PostField.content for each individual value. is there not a way to send the hash as-is instead of converting each value into one of those?
tjohnson has joined #ruby
jtdowney_ has joined #ruby
Encapsulation has quit [Ping timeout: 264 seconds]
<consumerism> by hash as-is, i mean either the hash and a content-type application/json which would convert it to json, or just to_json it and send the string
Mohan_ has joined #ruby
<consumerism> i just want to set the post body to a string, really
<consumerism> i don't want to have to tear it down and rebuild it into a bunch of Curl::PostField.contents
livathinos is now known as livathinos|away
livathinos|away has quit []
<tek0011> wasamasa: not necessarily. I am devops and dont dev
<wasamasa> tek0011: what the hell are you doing then
<tek0011> browsing reddit
TuxOtaku has joined #ruby
<havenwood> well, that is something both dev and ops do.
werelivinginthef has joined #ruby
<tek0011> jk. I know enough to edit code, change it, etc. not create it. so i fix things, add things, remove things.
serivich has quit [Ping timeout: 240 seconds]
craigp has quit []
Feyn has quit [Quit: Leaving]
<TuxOtaku> hey guys, anyone here use rbenv?
<TuxOtaku> I'm trying to set it up on centos 6.
jtdowney has quit [Ping timeout: 272 seconds]
Pumukel has joined #ruby
xxneolithicxx has joined #ruby
<adaedra> Ask.
<TuxOtaku> I got everything installed, and used rbenv to install ruby 1.9.3
<ddv> TuxOtaku: forget about centos, ancient shit
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
livathinos has joined #ruby
<TuxOtaku> ddv: would, but that's what we standardize on here
<TuxOtaku> so I have no choice
wpp has quit []
<TuxOtaku> so bitching about OSes aside
<adaedra> Go on
jtdowney has joined #ruby
<TuxOtaku> I installed 1.9.3
<TuxOtaku> but then after I did an rbenv global 1.9.3-p551, ruby --version still says ruby 1.8
<havenwood> 1.9.3 is past end of life. Just has to be said. :P
<adaedra> TuxOtaku: what does `type rbenv` says?
<TuxOtaku> adaedra: rbenv is hashed
<adaedra> does not looks normal
<TuxOtaku> oh wait sorry, that was as another user I was trying to test with
<TuxOtaku> one sec
<adaedra> should say it's a function
jtdowney_ has quit [Ping timeout: 250 seconds]
<TuxOtaku> rbenv is /home/dashing/.rbenv/bin/rbenv
ndrei has quit [Ping timeout: 264 seconds]
<adaedra> You don't initialize rbenv in your shell.
<adaedra> eval "$(rbenv init -)"
<adaedra> should be in your .bashrc/.zshrc
troulouliou_dev has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: Leaving]
<TuxOtaku> yep, that fixed things
<adaedra> By the way, ruby 1.9.3 is also available in SPL for CentOS 6. But as havenwood said, it's past end-of-life.
<TuxOtaku> thanks adaedra
<adaedra> yw
jtdowney_ has joined #ruby
Dopagod has quit [Ping timeout: 276 seconds]
<TuxOtaku> what's the current stable version of ruby?
<TuxOtaku> 2.2.2?
<adaedra> See topic ;)
<TuxOtaku> ah, right
livathinos has quit []
jtdowney has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
parduse has joined #ruby
Spami has quit [Client Quit]
jgt has quit [Ping timeout: 256 seconds]
roolo has quit [Remote host closed the connection]
ndrei has joined #ruby
roolo has joined #ruby
danman has quit [Quit: danman]
_blizzy_ has joined #ruby
stoffus has joined #ruby
Zekka has joined #ruby
JDiPierro has joined #ruby
systemd0wn has quit [Remote host closed the connection]
systemd0wn has joined #ruby
arturaz has quit [Ping timeout: 255 seconds]
kblake has joined #ruby
railsForDaiz has joined #ruby
joelataylor has joined #ruby
jlast has joined #ruby
cgrieger^away is now known as cgrieger
_blizzy_ has quit [Ping timeout: 265 seconds]
Astrologos_ has joined #ruby
jlast has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
lavros has quit [Ping timeout: 250 seconds]
dorei has quit [Ping timeout: 245 seconds]
kblake has quit [Ping timeout: 256 seconds]
unshadow has quit [Quit: leaving]
northfurr has quit [Quit: northfurr]
Nimf has joined #ruby
unshadow has joined #ruby
stoffus has quit [Quit: leaving]
stoffus has joined #ruby
GreyHands has quit [Quit: Textual IRC Client: www.textualapp.com]
Outlastsheep is now known as zz_Outlastsheep
Dopagod has joined #ruby
davidhq has joined #ruby
danman has joined #ruby
sinkensabe has quit [Remote host closed the connection]
jottr has joined #ruby
claw has quit [Ping timeout: 244 seconds]
icebourg has quit []
AlphaAtom has joined #ruby
djellemah_ has joined #ruby
claw has joined #ruby
airdisa has joined #ruby
railsForDaiz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aganov has quit [Remote host closed the connection]
emilkarl has quit [Quit: emilkarl]
<User458764> I have already asked the question but I forgot how do I know that Math.sqrt(4) is an integer?
<adaedra> >> Math.sqrt(4).inspect
<ruboto> adaedra # => "2.0" (https://eval.in/351042)
<certainty> >> Math.sqrt(4).class.name
<ruboto> certainty # => "Float" (https://eval.in/351043)
<adaedra> It's not :)
<gizless> User458764: .to_i
gizless is now known as gizmore
<havenwood> >> Math.sqrt(4).integer?
<ruboto> havenwood # => false (https://eval.in/351044)
lidenskap has joined #ruby
<havenwood> User458764: ^ ask it
<User458764> gizmore thanks and now how do I know that Math.sqrt(5) is not an integer?
jtdowney has joined #ruby
<havenwood> >> !Math.sqrt(4).integer?
<ruboto> havenwood # => true (https://eval.in/351045)
<certainty> you can remember it
kblake has joined #ruby
lavros has joined #ruby
imanzarrabian has joined #ruby
Igorshp_ has quit [Remote host closed the connection]
umgrosscol has joined #ruby
<User458764> nobody?
<certainty> i wonder why you want to do that
<havenwood> User458764: I showed ya.
jtdowney_ has quit [Ping timeout: 272 seconds]
anisha has quit [Quit: Leaving]
Igorshp has joined #ruby
<User458764> >> Math.sqrt(4).integer?
<ruboto> User458764 # => false (https://eval.in/351046)
<User458764> it should return true in my case
<adaedra> no
<al2o3-cr> Math.sqrt only return a float
<adaedra> because sqrt return a float in all cases
<adaedra> 2.0 is not 2
<havenwood> User458764: It's never going to be an Integer.
<User458764> I know but sqrt of 4 is 2 and 2 is an integer
<adaedra> Yeah, mathematically
Guest1421 has quit [Ping timeout: 240 seconds]
<jhass> you mean natural number
<certainty> no sqrt of 4 is 2.0
<havenwood> User458764: Not when the #sqrt method returns Floats.
terlar has quit [Ping timeout: 264 seconds]
<centrx> User458764, #integer? is looking at the data type of the variable, not the value
<User458764> jhass I think you could save me
<jhass> I think you could google or think
<centrx> ==
<jhass> especially if you had been told the solution before
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lidenskap has quit [Ping timeout: 272 seconds]
CloCkWeRX has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
thirdknife has quit [Quit: This computer has gone to sleep]
Mohan_ has quit [Ping timeout: 240 seconds]
<User458764> The best I found myself is Math.sqrt(4) == Math.sqrt(4).floor
jimms has quit [Remote host closed the connection]
<havenwood> There are quite a variety of ways.
hyperjuice has joined #ruby
<centrx> User458764, that's a good way
<havenwood> >> Math.sqrt(4).modulo(1).zero?
<ruboto> havenwood # => true (https://eval.in/351047)
<havenwood> >> Math.sqrt(5).modulo(1).zero?
<ruboto> havenwood # => false (https://eval.in/351048)
<User458764> centrx ok, thanks
Mohan_ has joined #ruby
willharrison has joined #ruby
asmodlol has joined #ruby
emilkarl has joined #ruby
gauke has quit [Quit: gauke]
hyperjuice has quit [Ping timeout: 256 seconds]
snockerton has joined #ruby
emilkarl has quit [Client Quit]
hmsimha has joined #ruby
ayaz has joined #ruby
ki0 has joined #ruby
dfinninger has joined #ruby
Urocyon is now known as sfiggins
mwlang has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has quit [Read error: Connection reset by peer]
zcreative has quit [Quit: (null)]
<ericwood> "sqrt" always looks like "squirt"
AlphaAtom has joined #ruby
ki0_ has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Max SendQ exceeded]
<mwlang> Is there a simple xpath technique for determining if a bit of HTML fragment is a single row, single cell table? I want to convert these into paragraphs. That is: “<table><tr><td>Foo</td></tr></table>” => “<p>Foo</p>”
Astrologos_ is now known as dorei
AlphaAtom has joined #ruby
<mwlang> ericwood: alias :squirt :sqrt :-)
<ericwood> woohoo
alex88 has quit [Read error: Connection reset by peer]
<ericwood> mwlang: do a css selector to find the children and check the length
<ericwood> honestly not an awful use for a SAX parser vs. DOM
gagrio_ has quit [Ping timeout: 264 seconds]
turtil has quit [Ping timeout: 256 seconds]
<mwlang> ericwood: that’s an idea...
alex88 has joined #ruby
<ericwood> it definitely is
conta has quit [Ping timeout: 246 seconds]
<ericwood> depends on how you want to incorporate this into the greater project
Mohan_ has quit [Ping timeout: 272 seconds]
<ericwood> pulling data from only rows that have one child? totes use a SAX parser and run through it real fast
<mwlang> ericwood: yeah…I’m already SAX parsing giant XML documents.
jenrzzz has joined #ruby
<ericwood> so sorry
^conner has quit [Ping timeout: 240 seconds]
<mwlang> the XML has a <description> for the products which can be HTML formatted fragments.
Mohan_ has joined #ruby
<mwlang> and it looks like I can just about reliably tell if those descriptions originated from websites using MCE editor, CKEditor, or MS-Word saved as HTML files.
Spami has joined #ruby
fschuindt has joined #ruby
<ericwood> oh fuck I hate dealing with those, they generate the worst markup :o
jimms has joined #ruby
sinkensabe has joined #ruby
<ericwood> and if the user pasted in something from Word just give up entirely :|
<mwlang> ericwood: like single celled tables where paragraphs should’ve been?
A205B064 has joined #ruby
mocha has quit [Ping timeout: 256 seconds]
<ericwood> it adds in serveral hundred lines of markup with formatting info
<ericwood> no joke
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome_ has joined #ruby
<mwlang> ericwood: heh…the ms-word ones proved easiest to clean up. It’s mostly just ripping out the attributes and tossing the FONTs
ta has joined #ruby
<ericwood> yeah that's true. still hate it tho
charliesome has quit [Ping timeout: 256 seconds]
roolo has joined #ruby
GaryOak_ has joined #ruby
<mwlang> oh, and the unwrapping SPANs. (toss the tag, keep the content)
<fschuindt> Guys, my Logger is recieving permission deined to open the file to write, it's because it's running by the system I guess (it's a daemon). Cause when I run by the user "ruby getinfo_pajubot.rb" it goes ok. But when I start the daemon "ruby pajubot start" it gets permission deined. What permisions should I set to my log file?
jottr has quit [Quit: WeeChat 1.1.1]
charliesome_ has quit [Read error: Connection reset by peer]
<ericwood> might want to make the daemon user and file the same group
<ericwood> then make it group-writeable but I am totally not an ops guy
charliesome has joined #ruby
hmsimha has quit [Ping timeout: 256 seconds]
<mwlang> ^^ and yet is totally on the right track….
<ericwood> even a broken clock is right twice a day
jottr has joined #ruby
stoffus has quit [Ping timeout: 256 seconds]
<ericwood> but yeah things like this are basically what unix user groups were invented for
<GaryOak_> ericwood: your answer sounded good to me
<ericwood> :D
endash has joined #ruby
<fschuindt> What's the group that runs daemons in unix like systems?
ramfjord has joined #ruby
<ericwood> ¯\_(ツ)_/¯
<eam> fschuindt: there isn't necessarily one, you'll need to look and see
<fschuindt> hahaha
<ericwood> I fell asleep during that class
<fschuindt> eam: ok
<eam> fschuindt: ps -ef|grep pajubot
zotherstupidguy has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
<zotherstupidguy> is there a way to declare global dependency in a rake file?
charliesome has joined #ruby
<zotherstupidguy> that is to say every task will depend on a certain task?
<GaryOak_> zotherstupidguy: you can just require it
<zotherstupidguy> require it is duplication
<mwlang> zotherstupidguy: you just have to point the various tasks at the other task you want to depend on.
rbennacer has joined #ruby
jackjackdripper has joined #ruby
<zotherstupidguy> mwlang is there a way to make this predefined in a rake file
<GaryOak_> ahhh you meant a task dependency
<fschuindt> eam: it sends me a bounch of information about the software, but I cant find the group, I will look deeper, ty
<zotherstupidguy> GaryOak_ yup
bearnado__ has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tcrypt has joined #ruby
<mwlang> zotherstupidguy: I could be wrong, but I thought by design you have to chain ‘em up.
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<mwlang> you might be able to do some sort of meta-programming wizardry to tie all the tasks to a specific dependent task, but that’s beyond my expertise.
AlphaAtom has joined #ruby
<mwlang> zotherstupidguy: https://gist.github.com/natritmeyer/5748847 might help
^conner has joined #ruby
bearnado has quit [Ping timeout: 244 seconds]
<zotherstupidguy> mwlang thanks, i found somthing interesting here Rake::Task["db:test:special_task_after_prepare"].invoke
jottr has quit [Ping timeout: 240 seconds]
<mwlang> zotherstupidguy: yeah, I saw that after posting the above link
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
suppp has joined #ruby
ki0_ has joined #ruby
<suppp> does anyone know why Webistrano is not being developed anymore ? Are there new alternatives to it ?
pdoherty has joined #ruby
michaeldeol has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<centrx> Web is so 1990s. Everything's on the Moon now
uri_ has joined #ruby
<GaryOak_> suppp: that project hasn't been worked on in 4 years
lkba has quit [Remote host closed the connection]
ki0 has quit [Ping timeout: 240 seconds]
asmodlol has quit [Quit: Leaving]
lkba has joined #ruby
livathinos has joined #ruby
jimms has quit [Remote host closed the connection]
charliesome has joined #ruby
oo_ has quit [Remote host closed the connection]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thirdknife has joined #ruby
<GaryOak_> suppp: https://github.com/joelmoss/strano this is only one I could find that is built on capistrano
<GaryOak_> but it's even a couple years old
vtunka has quit [Quit: Leaving]
roolo has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 272 seconds]
<suppp> GaryOak_ yea that's why I was asking. I saw the last commit was 4 years ago, I remember it being a good think I don't know why they stoped
symbol has joined #ruby
roolo has joined #ruby
ReK2 has joined #ruby
failshel_ has joined #ruby
jtdowney_ has joined #ruby
apurcell has joined #ruby
apurcell has quit [Client Quit]
mg^^ has joined #ruby
ych_ has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
iamayam has quit [Ping timeout: 264 seconds]
jtdowney has quit [Read error: Connection reset by peer]
imanzarrabian has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lordkryss has joined #ruby
willharrison has joined #ruby
failshell has quit [Ping timeout: 256 seconds]
fantasticsid has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
thirdknife has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
iamayam has joined #ruby
andikr has quit [Remote host closed the connection]
charliesome has quit [Read error: Connection reset by peer]
jgt has joined #ruby
ascarter_ has joined #ruby
charliesome has joined #ruby
nobitanobi has joined #ruby
maletor has joined #ruby
thirdknife has joined #ruby
bearnado__ is now known as bearnado
nobitanobi has quit [Remote host closed the connection]
bearnado has quit [Quit: Leaving]
^mg^ has quit [Ping timeout: 264 seconds]
constantinexvi has quit [Ping timeout: 264 seconds]
snockerton has quit [Ping timeout: 256 seconds]
constantinexvi has joined #ruby
ndrei has joined #ruby
LJT has joined #ruby
einarj has quit [Remote host closed the connection]
snockerton has joined #ruby
<GaryOak_> suppp: Well all the code is there, you could start working on it
icebourg has joined #ruby
LJT has quit [Client Quit]
ayaz has quit [Ping timeout: 264 seconds]
senayar has quit [Remote host closed the connection]
ayaz has joined #ruby
nobitano_ has joined #ruby
tus has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Stalkr_ has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
rbennacer has quit [Remote host closed the connection]
Stalkr^ has joined #ruby
senayar has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
fabrice31 has quit [Remote host closed the connection]
failshel_ has quit [Remote host closed the connection]
fantasti` has joined #ruby
failshell has joined #ruby
doertedev has quit [Ping timeout: 250 seconds]
serivichi has quit [Ping timeout: 244 seconds]
Stalkr_ has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
JDiPierro has quit [Remote host closed the connection]
jgt has joined #ruby
tubuliferous_ has joined #ruby
fantasticsid has quit [Ping timeout: 264 seconds]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symbol has quit [Quit: WeeChat 1.1]
granthatcher has quit []
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mohan_ has quit [Ping timeout: 276 seconds]
hakunin has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
hakunin has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
kbarry_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
Mohan_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
hakunin has joined #ruby
<kbarry_> gem list shows me I have 2 versions of a ruby, but when i try to uninstall the older version, it tells me its not installed.
failshell has quit [Ping timeout: 276 seconds]
<kbarry_> I tried installing the gem again, and uninstalling, but it still appears in the list.
AlphaAtom has quit [Max SendQ exceeded]
paulcsmith has quit [Quit: Be back later ...]
<kbarry_> I can't seem to get rid of the item from my list.
<Senjai> morning ruby
AlphaAtom has joined #ruby
<havenwood> Senjai: G'mornin
tubuliferous_ has quit [Ping timeout: 250 seconds]
<Senjai> Im in terrible crappy bug ville today
AlphaAtom has quit [Max SendQ exceeded]
astrobunny has joined #ruby
suppp has quit [Ping timeout: 246 seconds]
<GaryOak_> awww it'll be ok
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<Senjai> Not really
<Senjai> The worst part, is it has nothing to do with my code. I'm just fixing other peoples code :(
livathinos has quit []
AlphaAtom has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bmurt has quit []
charliesome has quit [Read error: Connection reset by peer]
<GaryOak_> That's particularly awful in ruby
hakunin has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
<Senjai> Eh
<Senjai> You can call me chief git revert'r today
Xiti has quit [Quit: Xiti]
badhatter has quit [Ping timeout: 256 seconds]
ebernhardson has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Hounddog has quit [Read error: Connection reset by peer]
mistnim has joined #ruby
thatslifeson has quit []
moretti has joined #ruby
<mistnim> hello, can you tell me what is this: ?\e
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
fabrice31 has joined #ruby
<ebernhardson> is there any good way to put an idiographic space(\u3000) into a cucumber test in a more explicit way than including the raw character? I'm thinking i could just create my own placeholder and then replace it, but maybe there is a better way?
agent_white has quit [Quit: night]
<havenwood> mistnim: The character literal for Escape.
<havenwood> mistnim: Like: "\e"
gsd has joined #ruby
iamjarvo has joined #ruby
<mistnim> havenwood: what you don't need to put in quotes?
<havenwood> >> "\e" == ?\e
<ruboto> havenwood # => true (https://eval.in/351217)
iamjarvo has quit [Max SendQ exceeded]
<jhass> >> ?\e.ord
<ruboto> jhass # => 27 (https://eval.in/351218)
<mistnim> this fucks emacs indentation
<havenwood> >> 27.chr
<ruboto> havenwood # => "\e" (https://eval.in/351219)
bricker has joined #ruby
iamjarvo has joined #ruby
towski_ has joined #ruby
parduse has quit []
<mistnim> thanks havenwood, nobody knows why it mess with emacs indentation?
ki0 has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
AirStar has joined #ruby
<mistnim> >> ?\n.ord
<ruboto> mistnim # => 10 (https://eval.in/351220)
Filete has joined #ruby
sinkensabe has quit [Remote host closed the connection]
parduse has joined #ruby
charliesome has quit [Quit: zzz]
ki0_ has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Remote host closed the connection]
Zekka has quit [Ping timeout: 256 seconds]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
kt2 has quit [Quit: ...]
ki0 has quit [Ping timeout: 256 seconds]
scripore has joined #ruby
User458764 has joined #ruby
SouL_|_ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
^conner has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
paulcsmith has joined #ruby
<kbarry_> My "gem list" is not accurate. Its listing a gem I have uninstalled..... I checked the system looking for the gem being there, and it is not present. Where can i update the gem list manually?
blackmes1 has joined #ruby
kyrylo has left #ruby ["Konversation terminated!"]
baweaver has joined #ruby
failshell has joined #ruby
Bira has joined #ruby
AirStar has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 240 seconds]
<GaryOak_> kbarry_: do you mean in a Gemfile, or just on your system?
<adaedra> kbarry_: can be another version
mikecmpbll has quit [Ping timeout: 250 seconds]
Zai00 has quit [Quit: Zai00]
quimrstorres has joined #ruby
snockerton has quit [Quit: Leaving.]
MatthewsFace has joined #ruby
jenrzzz has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
mike_c_11 has quit [Read error: Connection reset by peer]
Spami has joined #ruby
snockerton has joined #ruby
jimms has joined #ruby
loechel has quit [Ping timeout: 265 seconds]
<kbarry_> I mean that when i do "gem list" i see "bundler (1.9.3, 1.1.4) but when i do "gem uninstall bundler -v 1.1.4" i get "gem 'bundler' not present (or soemthing?)
<kbarry_> (The message ones gets when trying to uninstall a non-present gem.)
<kbarry_> as in, "gem uninstall bundler" works (prompts for deletion of the bundler 1.9.3
<kbarry_> i tried reinstalling bundler 1.1.4, and the removing it,
<kbarry_> but its still "in the list"
unshadow_ has joined #ruby
jottr has joined #ruby
unshadow has quit [Ping timeout: 246 seconds]
alex88 has quit []
edwinvdgraaf has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cyberarm has joined #ruby
moretti has quit [Quit: Leaving...]
baweaver has quit [Remote host closed the connection]
<havenwood> kbarry_: after `gem uninstall bundler` what shows up for: gem which bundler
jottr has quit [Ping timeout: 265 seconds]
kbarry_ has quit [Ping timeout: 252 seconds]
bootstrappm has joined #ruby
_djbkd has joined #ruby
<havenwood> kblake: The path to bundler version 1.1.4? Or?: ERROR: Can't find ruby library file or shared library bundler
<havenwood> kblake: sorry, misstell
<havenwood> kblake: ^
jenrzzz has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
<jhass> havenwood: still wrong :P
<jhass> kbarry left
<havenwood> I guess this is why seeing part messages can be nice... :P
<jhass> yeah, smart filter ftw^^
allcentury has quit [Ping timeout: 256 seconds]
<havenwood> I should set it up so I see part if, yeah
tuelz has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<benlieb> how do I test an instance method that should through exceptions of various types (rspec). I'm usign a rescue block in my test and it feels weird.
<benlieb> is there a way to specify how many assertions should run in a test in rspec?
Akagi201 has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
CustosLimen has quit [Ping timeout: 276 seconds]
<benlieb> or *expectations*
tek0011 has left #ruby [#ruby]
senayar has quit []
<havenwood> benlieb: Write tests for your tests. And tests for those too. Which need to be tested. All the way down.
Cust0sLim3n has quit [Max SendQ exceeded]
Kentlol has joined #ruby
rippa has joined #ruby
Cust0sLim3n has joined #ruby
jtdowney_ has quit []
mrsolo has joined #ruby
<havenwood> benlieb: Hmm, I've never actually seen the number of asserts be an assertion.
wallerdev has joined #ruby
<GaryOak_> benlieb: You can have the test expect for the method to throw an error
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
kbarry has joined #ruby
Igorshp has quit [Remote host closed the connection]
rbennacer has joined #ruby
<rdark> I have a method that constructs + returns a block (stored as a proc) - however the variables within that block are only evaluated in the scope within which the block is actually called
towski_ has joined #ruby
AlphaAtom has joined #ruby
jottr has joined #ruby
pocketprotector has quit [Ping timeout: 264 seconds]
<rdark> is there a sane way I can populate the variables within that block without evaluating the whole block?
CloCkWeRX has quit [Quit: Leaving.]
mrsolo_ has joined #ruby
ngr_ has joined #ruby
mrsolo has quit [*.net *.split]
fantasti` has quit [*.net *.split]
constantinexvi has quit [*.net *.split]
michaeldeol has quit [*.net *.split]
crazydiamond has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
Axy has quit [*.net *.split]
iamninja has quit [*.net *.split]
duderonomy has quit [*.net *.split]
jobewan_ has joined #ruby
SirFunk has quit [*.net *.split]
jobewan has quit [*.net *.split]
gigetoo has quit [*.net *.split]
stryek has quit [*.net *.split]
pl1ght has quit [*.net *.split]
unreal has quit [*.net *.split]
WillAmes has quit [*.net *.split]
dling has quit [*.net *.split]
hgl has quit [*.net *.split]
hackeron has quit [*.net *.split]
gregf_ has quit [*.net *.split]
mattp_ has quit [*.net *.split]
Guest82515 has quit [*.net *.split]
ngr has quit [*.net *.split]
go|dfish has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
Luyt_ has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
tskogber1 has quit [*.net *.split]
z3uS has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
Nirgali42 has quit [*.net *.split]
stonecolddevin has quit [*.net *.split]
maloik has quit [*.net *.split]
maloik_ has joined #ruby
tskogberg has joined #ruby
stonecolddevin has joined #ruby
<yxhuvud> rdark: not enough information. Please post your actual code to a pastie with an example of what you want to achieve
ByronJoh1son has joined #ruby
hackeron has joined #ruby
stryek has joined #ruby
crazydiamond has joined #ruby
iamninja has joined #ruby
michaeldeol has joined #ruby
Luyt_ has joined #ruby
<havenwood> benlieb: I'd bet there's a way to get at RSpec's internal count of expectations, but I don't know how. I don't think it's easily exposed. It'd be easier with Minitest. But yeah, I dunno about that route at all. Hrm.
fantasti` has joined #ruby
mattp_ has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Skelz0r has joined #ruby
Nirgali42 has joined #ruby
go|dfish has joined #ruby
pl1ght has joined #ruby
gigetoo has joined #ruby
thirdknife has quit [Ping timeout: 256 seconds]
dling has joined #ruby
livathinos has joined #ruby
Guest1421 has joined #ruby
nullset68 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hackeron> hey, I have a bundler question, I'm running "bundle install" which worked fine on all servers until now, however this time, I am getting: "mv: cannot stat ‘/tmp/bundler20150512-25389-m68mobjson-1.8.2/cache/json-1.8.2.gem’: No such file or directory Bundler::GemspecError: Could not read gem at /var/lib/gems/2.2.0/cache/json-1.8.2.gem. It may be corrupted." - I tried rm -R /var/lib/gems/2.2.0/cache and re
livathinos has quit [Client Quit]
<hackeron> -running but I get the same error. Any ...
<hackeron> ... ideas?
Apocalypse has joined #ruby
Apocalypse has joined #ruby
Affix has joined #ruby
constantinexvi has joined #ruby
z3uS has joined #ruby
hgl has joined #ruby
SirFunk has joined #ruby
Affix is now known as Guest8805
jonathanwallace has joined #ruby
<GaryOak_> hackeron: could try bundle clean???
gregf_ has joined #ruby
thirdknife has joined #ruby
DerisiveLogic has joined #ruby
unreal has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 256 seconds]
havenwood has quit []
<hackeron> here is the full verbose output: https://gist.github.com/hackeron/687adce4862c1a45991b
<hackeron> GaryOak_: says: Cleaning all the gems on your system is dangerous! If you're sure you want to remove every system gem not in this bundle, run `bundle clean --force`.
lkba has quit [Ping timeout: 245 seconds]
<rdark> it's kind of rough but shows an illustration - basically the instance variables from the class where the proc is constructed are obviously not evaluated within scope of that class, but in the scope where the block gets evaluated
allcentury has joined #ruby
nullset68 has quit [Quit: Leaving]
Hijiri has quit [Quit: WeeChat 1.0.1]
slash_nick has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
nullset68 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
Zekka has joined #ruby
rahult has joined #ruby
JDiPierro has joined #ruby
nullset68 has quit [Client Quit]
fantasti` has quit [Remote host closed the connection]
joelataylor has quit [Quit: Be back later ...]
tubuliferous_ has joined #ruby
fantasticsid has joined #ruby
<rdark> I think instance_exec instead of instance_eval might give me what I'm after
nullset68 has joined #ruby
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
<GaryOak_> hackeron: ohh I've had that issue with the json gem
granthatcher has joined #ruby
spider-mario has joined #ruby
jenrzzz has joined #ruby
x1337807x has joined #ruby
thirdknife has quit [Ping timeout: 256 seconds]
nullset68 has quit [Client Quit]
granthatcher has quit [Client Quit]
<hackeron> GaryOak_: oh yeh? - is there a workaround?
eyeamaye has joined #ruby
nullset68 has joined #ruby
<GaryOak_> haha the solution escapes me
JDiPierro has quit [Read error: Connection reset by peer]
<arup_r> got it
JDiPierro has joined #ruby
alexherbo2 has joined #ruby
thirdknife has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eyeamaye has quit [Read error: Connection reset by peer]
mtakkman has joined #ruby
eyeamaye has joined #ruby
iamjarvo has joined #ruby
<shevy> Radar, AirStar wants to be unmuted
ebonics has joined #ruby
<shevy> AirStar> shevy: —> Radar : tell him. release me from mute.
<shevy> <AirStar> 8)
<shevy> <AirStar> shevy: ok?
maasha has joined #ruby
<maasha> Elegant way to replace initial or all keys in a hash with elements from an array?
jenrzzz_ has joined #ruby
pabloh has joined #ruby
<maasha> h = {a: 1, b: 2}; a = [:d, :e] --> h = {d: 1, e: 2}
jenrzzz has quit [Ping timeout: 265 seconds]
<mwlang> I’m trying to replace single-column tables with paragraph tags. however, I’m just getting the table contents mashed up in my results (Line #6). What am I doing wrong? https://gist.github.com/mwlang/09ee369e7c8aeb5eecce#file-output-html-L6
sinkensabe has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GGMethos has quit [Remote host closed the connection]
ramfjord has joined #ruby
lavros has quit [Quit: leaving]
vickleton has joined #ruby
<arup_r> >> h = {a: 1, b: 2}; a = [:d, :e] --> h = {d: 1, e: 2} ; h = a.zip(h.values).to_h
<ruboto> arup_r # => /tmp/execpad-fb09bc5c8f9a/source-fb09bc5c8f9a:2: syntax error, unexpected tLAMBEG ...check link for more (https://eval.in/351347)
<mwlang> I figure it’s either that assigning content on line #41 is wrong or how I inject the “p” node into the document is worng.
<arup_r> >> h = {a: 1, b: 2}; a = [:d, :e] ; h = {d: 1, e: 2} ; h = a.zip(h.values).to_h
<ruboto> arup_r # => {:d=>1, :e=>2} (https://eval.in/351348)
<arup_r> mwlang: ^^
jogara has quit [Quit: jogara]
mitchellhenke has joined #ruby
<maasha> arup_r: thanks, let me test
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<arup_r> maasha: it was your question.. I see :D
<mwlang> arup_r: heh…I was like, wtf? for a moment there.
<arup_r> sorry to poke you mwlang : :(
<maasha> arup_r: so if the hash has more keys than there are elements in the array?
<mwlang> no worries!
<maasha> h = {a: 1, b: 2, c: 3}; a = [:d, :e] --> h = {d: 1, e: 2, c: 3}
A124 has joined #ruby
<arup_r> maasha: wait,,,
danman_ has joined #ruby
joelataylor has joined #ruby
edwinvdgraaf has joined #ruby
sinkensabe has quit [Remote host closed the connection]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
<GaryOak_> maasha: you probably just want a for loop
fantasticsid has quit [Ping timeout: 255 seconds]
leafybasil has quit [Ping timeout: 240 seconds]
danman_ has quit [Client Quit]
<maasha> GaryOak_: well, the most elegant way actually ;o)
danman has quit [Ping timeout: 245 seconds]
<pipework> Rarely do you actually want a for loop.
<GaryOak_> sometimes you need a for loop
<pipework> Rarely though.
<pipework> Most of the time you need enumerable.
kwekuanase has joined #ruby
thirdknife has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
<GaryOak_> If you are needing to loop through multiple enumerables and access them simultaneously, what would you use in ruby?
towski_ has quit [Ping timeout: 256 seconds]
Soda has joined #ruby
<pipework> Enumerable.
<crowell> GaryOak_: map?
Papierkorb_ has joined #ruby
<GaryOak_> A for loop with an index, or something else?
Papierkorb has quit [Quit: Konversation terminated!]
<pipework> each_with_index if you neec
<GaryOak_> yeah each_with_index would work
<maasha> GaryOak_: trust me, there are clever tricks - that is why I ask here.
<pipework> GaryOak_: The only time you need for is when you want to use the same scope as the caller.
jenrzzz_ has quit [Ping timeout: 264 seconds]
<GaryOak_> pipework: because the enumerable functions are yielding from the block?
<pipework> And by use, I mean that your for loop wouldn't be a closure.
PaulCapestany has quit [Quit: .]
<mwlang> finally figured it out. Needed p.children = cell.children instead of p.content = cell.content
<pipework> GaryOak_: If you introduce any variables within your for loop, they're available to the scope the for loop was called in even after the for loop is finished. That's the only time you want a for loop.
thirdknife has joined #ruby
<GaryOak_> gotcha
<mwlang> I’m not sure of the finer points on what exactly is different. tho’
dfinninger has quit [Remote host closed the connection]
GGMethos has joined #ruby
towski_ has joined #ruby
PaulCapestany has joined #ruby
* dudedudeman wants to kick Postgres in the nuts
<hackeron> GaryOak_: that issue seems different, I don't see a mv: cannot stat ‘/tmp/bundler20150512-25426-1gjskp3json-1.8.2/cache/json-1.8.2.gem’: No such file or directory or anything like that?
<GaryOak_> dudedudeman: what's the deal?
<dudedudeman> eh, i'm just a frustrated noob attempting to get it up and running, that's all
<dudedudeman> it's on my machine, i can view the databases in it, but i can't 'createdb blah'
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<GaryOak_> ahh yeah, it's got some weird tooling compared to mysql
<dudedudeman> createdb: could not connect to database template1: FATAL: role "ubuntu" does not exist
<dudedudeman> i get that error
<pipework> >> h = {a: 1, b: 2}; a = [:d, :e]; a.each_with_object({}).with_index {|(el, hash), index| hash[el] = h[h.keys[index]] }
<ruboto> pipework # => {:d=>1, :e=>2} (https://eval.in/351399)
<pipework> maasha: ^
<GaryOak_> dudedudeman: you have to specify what user you want to connect as
<GaryOak_> otherwise it just picks the current user
ki0 has joined #ruby
<maasha> pipework: ok. is it elegant? can we golf it?
arturhoo has joined #ruby
<pipework> maasha: No. Golf serves no purpose other than mental masturbation.
<pipework> We're playing with primitives here. Feel free to wrap the code into non-primitive objects.
<GaryOak_> Can it dance in a ball gown, is it elegant?
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> GaryOak_: By George, she's got it!
<maasha> pipework: well, I would like to do it efficiently. thanks for the suggestion!
<dudedudeman> GaryOak_: aight, i'm going to dig in to that, then. see what i find
<GaryOak_> dudedudeman: cool, postgres is pretty nice once you get used to it
CodyReichert has quit [Ping timeout: 276 seconds]
<dudedudeman> i'm excited. it'll be another thing to add to the toolbelt
<pipework> maasha: Don't worry about efficiency until you've measured the code in a real world application and found where the problem is.
edwinvdgraaf has quit [Remote host closed the connection]
<dudedudeman> i'm mainly just trying to get my little app up to heroku at this point, given that heroku doesn't liek sqlite3
<pipework> dudedudeman: For relational databases, postgres is king.
<pipework> And queen.
<pipework> Fuck, it's the whole kingdom.
* dudedudeman bows in the presence of greatness
snockerton has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
snockerton has joined #ruby
<GaryOak_> dudedudeman: just wait until you get to json operations, makes me warm and fuzzy inside
<dudedudeman> go on... i've been getting to json a little bit, especially looking at api;s?
vikaton has quit []
<maasha> pipework: sure, but I like not to trap myself too easily
<pipework> maasha: Pre-optimization is the root of all evil.
<maasha> pipework: yeah. but nice code saves the day.
<pipework> Nice code isn't optimized code, it's whale-factored code.
blackmes1 has quit [Ping timeout: 255 seconds]
<pipework> I'd suggest dropping the primitive obsession and write some classes for the objects and just put the code in there. That way you could have a class that has an instance method called #replace_keys(*new_keys)
edwinvdgraaf has joined #ruby
mtakkman has quit [Read error: Connection reset by peer]
<maasha> pipework: That is what I would do if there was no elegant way with primitives.
<pipework> maasha: Look up primitive obsession.
* mwlang surprised that nokogiri injects missing tbody’s for tables that don’t have ‘em.
<pipework> mwlang: It's not like it matters unless you're iterating though. :D
* pipework finds it rather nice.
<maasha> pipework: do I need to go incognito for that?
<mwlang> pipework: which is exactly what I’m doing.
<pipework> mwlang: Aww. That's going to be fun.
<mwlang> pipework: yeah, this reduces complexity of my code.
<mwlang> I don’t have to conditionally select rows on whether it’s present or not.
<pipework> mwlang: If you can just assume the tbody, then it shouldn't be an issue.
<pipework> maasha: Why can't you google it?
quimrstorres has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
<mwlang> pipework: exactly.
<maasha> pipework: I was guessing I would end up with pages of animal porn
<pipework> mwlang: I've had it be a problem because of what I needed to output not matching the input, but other than that, it's been nice.
uptownhr has joined #ruby
thirdknife has quit [Ping timeout: 272 seconds]
nullset68 has quit [Quit: WeeChat 0.4.2]
<maasha> however, that was not the case.
<pipework> maasha: I wouldn't know. You can add qualifying terms.
nfk has joined #ruby
<mwlang> pipework: what’s caught me off-guard is that when I iterated through the HTML and then spit out the end result, I still had HTML that didn’t have TBODY’s
<GaryOak_> dudedudeman: postgresql has built-in json operators to select and transform data out of json strings or blobs, you put in the db
<pipework> mwlang: huh.
<mwlang> so I couldn’t figure out why my logic wasn’t working until I realized tbody was thrown in the mix.
edwinvdgraaf has quit [Remote host closed the connection]
flak has joined #ruby
flak is now known as Guest82665
<dudedudeman> GaryOak_: ooooooooo. that sounds complicated, but would be nice to be able to utilize
<GaryOak_> dudedudeman: it's actually pretty easy and fast
<ebonics> >> Hash[['a','b']]
<ruboto> ebonics # => /tmp/execpad-2bbc3d3beca6/source-2bbc3d3beca6:2: warning: wrong element type String at 0 (expected a ...check link for more (https://eval.in/351438)
<ebonics> >> Hash[*['a','b']]
<ruboto> ebonics # => {"a"=>"b"} (https://eval.in/351439)
<dudedudeman> GaryOak_: what would be a smart way to start looking in to using them?
arup_r has joined #ruby
<dudedudeman> like, what's a good application for something like htat?
Monroe is now known as Mostly_Y
zotherstupidguy has quit [Ping timeout: 250 seconds]
<GaryOak_> dudedudeman: If you're storing any kind of JSON data and want to select or filter based on information in the data
wldcordeiro_ has joined #ruby
Mostly_Y is now known as Monroe
<dudedudeman> so i guess if you're like, scraping files, and then pushing that data to a json object, you could just pass that right to the database all in one fell swoop?
slash_nick has joined #ruby
<arup_r> I have no idea why args[:db_name] is `nil` after this line https://gist.github.com/aruprakshit/d7f9b5237e63944be881#file-csv-rake-L30
rippa has quit [Ping timeout: 252 seconds]
<mwlang> pipework: Nokogiri::HTML("<table><tr><td>Hello").children.children.children.last.to_html
<mwlang> => "<table><tr><td>Hello</td></tr></table>"
<arup_r> what's wrong going on with this `? :` syntac
zotherstupidguy has joined #ruby
kirun has joined #ruby
<weaksauce> p always returns nil arup_r
<weaksauce> ha nevermind I thought it was linewrapping
jogara has joined #ruby
<arup_r> I have no clue what's going on there..........
nullset68 has joined #ruby
<arup_r> if ternary condition fails.. it must have the value 'event' ... how that's not happening...
thirdknife has joined #ruby
djellemah has quit [Ping timeout: 264 seconds]
shazaum has quit [Quit: This computer has gone to sleep]
tuelz has quit [Ping timeout: 256 seconds]
djellemah_ has quit [Ping timeout: 264 seconds]
<weaksauce> arup_r is the first p statement showing true?
<arup_r> yes......
<arup_r> for debugging I used those lines.. but still no idea where is wrong..
<GaryOak_> dudedudeman: yep It's super nice
mikecmpbll has joined #ruby
kblake has quit []
<weaksauce> try using a different variable. `db_name = args[:db_name]` and then change the rest of the code to reflect that
<pipework> I'd reject! any blank values in that hash for starters. Then you could just use args[:db_name] ||=
<shevy> is it costly to have lots of @ivars in a class?
<pipework> shevy: Nope.
fschuindt has quit [Ping timeout: 250 seconds]
Cust0sLim3n has quit [Ping timeout: 265 seconds]
<pipework> instance variables and locals are cheap. It's what they reference that can get expensive.
<shevy> I think one class that I have here reaches about 30 of them; it's a fairly large code base by now though, rubygems says 214 KB
rbennacer has quit [Remote host closed the connection]
<shevy> pipework ok
<pipework> That's a fair amount of state for one object.
<arup_r> weaksauce: same i am doing.. lets see
Guest82665 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<arup_r> it seems Rake specific stuff
rippa has joined #ruby
KrzaQ has quit [Ping timeout: 252 seconds]
<pipework> arup_r: args.reject! {|(_key, value)| value.blank? }
<arup_r> why ?
<pipework> Then just args[:db_name] ||= that_long_ternary
<pipework> You could also use #reject and assign that to a new variable if you don't want to mutate that hash.
<pipework> But it seems you already do anyways.
thirdknife has quit [Ping timeout: 258 seconds]
PaulCapestany has quit [Quit: .]
<arup_r> It is Rake not allowing to do.... come on!!!!!!!! :/
jackjackdripper has quit [Quit: Leaving.]
<pipework> arup_r: Then you'd know that your ternary seems off.
<arup_r> means
<pipework> One thing that I'd advise is to stop doing so much work in a rake task. I only call a single object and pass in arguments from rake into that object.
<arup_r> if i print puts db_name before updating args.. it is gving "event" ... correctly
scripore has joined #ruby
<pipework> That way I can test the object independently
jenrzzz has quit [Ping timeout: 256 seconds]
PaulCapestany has joined #ruby
fschuindt has joined #ruby
<arup_r> You are true.. but why it is not working.. I am not seeing where I am wrong..
baweaver has joined #ruby
<weaksauce> arup_r you did the opposite of what I asked you to do. use the value of args[:db_name] and mutate the copy of it.
davidhq has joined #ruby
havenwood has joined #ruby
<arup_r> weaksauce: I did.. ` args.merge!(:db_name => db_name) if args[:db_name].blank?`
thirdknife has joined #ruby
<arup_r> still same error
jenrzzz has joined #ruby
shazaum has joined #ruby
Sawbones has joined #ruby
Guest1421 has quit [Ping timeout: 264 seconds]
echelon has left #ruby [#ruby]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r> weaksauce: got it..
<pipework> arup_r: And you checked the output of the ternary?
banister has joined #ruby
blackmes1 has joined #ruby
<arup_r> and `merge!` also..
pabloh has quit [Ping timeout: 256 seconds]
rdark has quit [Quit: leaving]
<arup_r> then how to change the value of arg ?
jackjackdripper has joined #ruby
<pipework> arup_r: Don't. Just do what I suggested. Pull all that code out of the task and into a class.
<weaksauce> arup_r if you would have done what I suggested and work on a copy of the args data it would have worked by now
<arup_r> pipework: I am not sure.. what are the parts you want me to pull out ...
<pipework> Everything.
Nimf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
<arup_r> weaksauce: sorry probably I didn't get you then.. could you show me /
<arup_r> ?
<dudedudeman> GaryOak_: if you don't mind me asking, where should i be looking if i'm getting this error on my push to heroku? Invalid DATABASE_URL
failshell has joined #ruby
allcentury has quit [Ping timeout: 264 seconds]
<GaryOak_> I don't have any experience using heroku
scripore has quit [Quit: This computer has gone to sleep]
<pipework> Lucky you!
Guest1421 has joined #ruby
<dudedudeman> actually, scratch that, it's on my app side. saying i'm getting a fatal error on my user in the actual database?
yfeldblum has joined #ruby
scripore has joined #ruby
rbennacer has joined #ruby
<GaryOak_> You need to specify the user you want to connect to the database with
Akagi201 has joined #ruby
<GaryOak_> Postgres adds 'postgres' as the default user
ndrei has quit [Ping timeout: 264 seconds]
<shevy> "5. Use Ruby Enterprise Edition"
<shevy> "Ruby Enterprise edition provides up to 33% lower memory usage. In order to take advantage of these performance gains though you must be sure to program according to their guidelines."
<shevy> 0_o
<shevy> o_0
<arup_r> weaksauce: got you..
<shevy> I use wicked black voodoo magic for speed gains
<arup_r> I missed your line.. there
allcentury has joined #ruby
<mwlang> There’s still a REE?
TheHodge has quit [Quit: Connection closed for inactivity]
<mwlang> I figured REE enhancements would’ve long ago been merged to MRI
<nvll> afair REE hasn't been maintained since 2012
mrsolo__ has joined #ruby
<mwlang> and last I saw REE was in 1.8.7 land.
<mwlang> (or rather, that was last time I was caring about REE)
<nvll> >Ruby Enterprise Edition has reached End of Life in 2012. The website is still up, and it still works, but it's no longer actively developed and it is no longer supported.
<adaedra> I guess it's not relevent since the interpreter got a big overgaul
<adaedra> overhaul
<nvll> ↑ from theirs website
pabloh has joined #ruby
Akagi201 has quit [Ping timeout: 272 seconds]
mrsolo_ has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
MasterPiece has quit [Quit: Leaving]
ki0 has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
qwertme has joined #ruby
diegoaguilar has joined #ruby
sohrab has joined #ruby
ndrei has joined #ruby
granthatcher has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
ki0 has joined #ruby
moretti has joined #ruby
granthatcher has quit [Client Quit]
<weaksauce> arup_r did it work?
<arup_r> weaksauce: yes.. I now got some rails issue with Postgres
<dudedudeman> woo! issues with postgres!
<gizmore> arup_r: try ln -s postgres mysql
<gizmore> never tried this, though... but it might work?
Kricir has joined #ruby
<weaksauce> gizmore you don't want it to be linked to a worse database though
<weaksauce> that's just silly
<gizmore> i just confuse link and target
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
granthatcher has joined #ruby
granthatcher has quit [Client Quit]
duncannz has quit [Ping timeout: 250 seconds]
<weaksauce> mysql is bad and you should feel bad
<weaksauce> :P
<arup_r> I got the same issue http://stackoverflow.com/questions/28095568/rangeerror-for-simple-integer-assignment-in-rails-4-2-0-that-should-be-caught-by ... as per their suggested rails vesion it should work......
AlphaAtom has quit [Read error: Connection reset by peer]
<arup_r> but in my case the same issue is coming..
AlphaAtom has joined #ruby
<weaksauce> arup_r you should gist the actual error and full stack trace
Cubix has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
bootstrappm has left #ruby [#ruby]
nullset68 has quit [Quit: WeeChat 0.4.2]
<arup_r> sure
lidenskap has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> making
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
dfinninger has joined #ruby
<arup_r> weaksauce: this column raising the error --- https://gist.github.com/aruprakshit/13065007b706b331a61e#file-shema-rb-L22
jtdowney has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
thirdknife has quit [Ping timeout: 264 seconds]
leafybasil has joined #ruby
AlphaAtom has joined #ruby
<rbennacer> how can i convert a string to a class?
<arup_r> means ?
<arup_r> example pls
<rbennacer> "Fixnum".to_class
<dudedudeman> GaryOak_: aight, so my app works locally on postgres....
iamjarvo has joined #ruby
<rbennacer> => Fixnum
ndrei has quit [Ping timeout: 246 seconds]
<rbennacer> or something like that
<dudedudeman> but, when i push it to heroku, nothing
<dudedudeman> :(
airdisa has quit [Remote host closed the connection]
iamjarvo has quit [Max SendQ exceeded]
zotherstupidguy has quit [Remote host closed the connection]
<GaryOak_> the user/pass could be different, hard to tell without an error
zotherstupidguy has joined #ruby
<dudedudeman> at=error code=H10 desc="App crashed" method=GET path="/favicon.ico"
iamjarvo has joined #ruby
jmignault has joined #ruby
<dudedudeman> what sucks, is that's all the heroku logs give me
thirdknife has joined #ruby
<weaksauce> arup_r the size of the integer field in postgres is smaller than the value you are trying to put in.
dfinninger has quit [Ping timeout: 252 seconds]
<arup_r> >> Object.const_get "Fixnum"
<ruboto> arup_r # => Fixnum (https://eval.in/351547)
<arup_r> rbennacer: ^^
n008f4g_ has joined #ruby
<arup_r> weaksauce: Yes.. error is saying so.. but latest Rails it got fixed they said.. why then I am getting the error... ?
<dudedudeman> if i was rails, i'd do heroku run rails console
airdisa has joined #ruby
<dudedudeman> alas, am not
<rbennacer> arup_r: thanks
spider-mario has quit [Read error: Connection reset by peer]
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
_blizzy_ has joined #ruby
jogara has quit [Quit: jogara]
leafybasil has quit [Ping timeout: 258 seconds]
<weaksauce> it's too big for that column type
jimms has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
spider-mario has joined #ruby
<weaksauce> 6906673653 > 2147483647
airdisa_ has joined #ruby
<arup_r> so what is the fix ? any hints with Rails migration...
dfinninger has joined #ruby
iamjarvo_ has joined #ruby
iamjarvo_ has quit [Max SendQ exceeded]
jogara has joined #ruby
iamjarvo_ has joined #ruby
airdisa has quit [Ping timeout: 265 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 256 seconds]
jackjackdripper has quit [Quit: Leaving.]
chipotle has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
thirdknife has quit [Ping timeout: 256 seconds]
devramen has joined #ruby
kadoppe has quit [Ping timeout: 256 seconds]
<mistnim> why is '\e' != "\e"?
<mistnim> >> '\e' != "\e"
<ruboto> mistnim # => true (https://eval.in/351572)
<Eiam> whats "&&=" called?
<Eiam> pain to google
joelataylor has quit [Quit: Be back later ...]
<pipework> Eiam: double ampersand equals
<crowell> Eiam: "symbolhound" is great for searching that kind of stuff
maasha has quit [Quit: Page closed]
<shevy> symbolhound??
thirdknife has joined #ruby
<Eiam> (he was right, it worked way better than google)
kadoppe has joined #ruby
<shevy> oh
<shevy> symbolhound to search-for
<shevy> I thought the name was symbolhound for &&=
Channel6 has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<Eiam> yeah =)
blackmes1 has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
lidenskap has quit [Remote host closed the connection]
hakunin has joined #ruby
User458764 has joined #ruby
tuelz has joined #ruby
blackmes1 has joined #ruby
diegoaguilar has quit [Quit: Leaving]
cnk has joined #ruby
baweaver has quit [Remote host closed the connection]
Guest8805 is now known as Affix
Affix has quit [Changing host]
Affix has joined #ruby
User458764 has quit [Client Quit]
DEA7TH has joined #ruby
cnk has left #ruby [#ruby]
AlphaAtom has joined #ruby
thirdknife has quit [Ping timeout: 244 seconds]
AlphaAtom has quit [Max SendQ exceeded]
Pipoca has joined #ruby
BTRE has joined #ruby
thirdknife has joined #ruby
AlphaAtom has joined #ruby
Pipoca has quit [Client Quit]
AlphaAtom has quit [Max SendQ exceeded]
lkba has joined #ruby
towski_ has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
cnk has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
lidenskap has joined #ruby
AlphaAtom has joined #ruby
mitchellhenke has joined #ruby
Cubix has quit [Quit: Leaving]
doodlehaus has joined #ruby
lidenskap has quit [Ping timeout: 240 seconds]
Pipocah has joined #ruby
thirdknife has quit [Ping timeout: 264 seconds]
lolmaus has quit [Quit: Konversation terminated!]
CustosLimen has joined #ruby
ebernhardson is now known as ebernhardson|lch
<shevy> anyone knows why we don't have .blank?
DerisiveLogic has joined #ruby
thirdknife has joined #ruby
cnk has quit [Quit: Leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has quit [Ping timeout: 256 seconds]
ByronJoh1son is now known as ByronJohnson
edwinvdgraaf has joined #ruby
jonatin has joined #ruby
Kricir has quit []
ndrei has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
arup_r has quit [Ping timeout: 244 seconds]
pabloh has quit [Quit: Saliendo]
edwinvdgraaf has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
edwinvdgraaf has joined #ruby
<hanmac> shevy if we had then there wouldnt be any reason for AS anymore ;P
<mwlang> shevy: blank? comes from Active Support
jackjackdripper has joined #ruby
<shevy> yeah
consumerism has quit [Quit: WeeChat 1.1.1]
Pipocah has quit [Quit: Leaving]
denver has quit [Read error: Connection reset by peer]
Monroe is now known as Mostly_Y
Pipocah has joined #ruby
Pipocah has quit [Remote host closed the connection]
jottr has joined #ruby
Pipocah has joined #ruby
duderonomy has joined #ruby
Papierkorb_ has quit [Quit: Konversation terminated!]
Papierkorb has joined #ruby
jtdowney_ has joined #ruby
thirdknife has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
emptyflask has joined #ruby
Hijiri has joined #ruby
gaboesquivel has joined #ruby
<hackeron> anyone familiar with bundler? - when I run bundle install, I get mv: cannot stat ‘/tmp/bundler20150512-27272-653i37json-1.8.2/cache/json-1.8.2.gem’: No such file or directory -- any ideas why? < here is the full output: https://gist.github.com/hackeron/687adce4862c1a45991b
edwinvdg_ has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
jtdowney has quit [Ping timeout: 252 seconds]
Mohan_ has quit [Ping timeout: 252 seconds]
jimms has joined #ruby
thirdknife has joined #ruby
sohrab has quit [Ping timeout: 264 seconds]
<adaedra> json is supposed to be in stdlib ._o
jogara has quit [Quit: jogara]
Mohan has joined #ruby
<jhass> for everybody's information: this was crossposted to #bundler again
wallerdev has quit [Quit: wallerdev]
Mohan is now known as Guest11139
<jhass> er, s/again/a while ago/ was what I wanted to write
baweaver has joined #ruby
wallerdev has joined #ruby
<adaedra> too late
edwinvdgraaf has quit [Ping timeout: 256 seconds]
<hackeron> jhass: like 2 hours ago
kobain has quit [Ping timeout: 256 seconds]
jogara has joined #ruby
<jhass> it's not forbidden, we just ask to note it
<jhass> see channel rules
sevvie has quit [Ping timeout: 255 seconds]
<hackeron> I notice if I sudo gem install json, then bundle install gets 1 dependency further, hmm - it's like a permission problem, but isn't bundler supposed to install for the current app?
<jhass> --deployment sets --path vendor/bundle which installs to that directory
jtdowney has joined #ruby
<jhass> if neither is set bundler respects GEM_HOME
edwinvdg_ has quit [Remote host closed the connection]
shakar has joined #ruby
mrdmi has joined #ruby
<jhass> but yeah, stracing it could reveal some permission issues
AlphaAtom has quit [Read error: Connection reset by peer]
<hackeron> jhass: $GEM_HOME is blank
<jhass> so where do you expect your gems to go?
AlphaAtom has joined #ruby
thirdknife has quit [Ping timeout: 240 seconds]
airdisa_ has quit [Remote host closed the connection]
sinkensabe has joined #ruby
baweaver has quit [Remote host closed the connection]
<shakar> Hello! Can anyone familiar with Slim templates tell me how to use non-standard html tags? For example, "dom-module"
<atmosx> hello people
<hackeron> jhass: hmm, I don't know, heh - this worked before, so wondering what changed. I thought bundle install would put stuff in the current app's vendor/bundle
jtdowney_ has quit [Ping timeout: 240 seconds]
<hackeron> (by default)
<jhass> hackeron: it doesn't, I just listed the conditions under which it does
tvw has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 244 seconds]
kstuart_ has quit [Quit: WeeChat 1.1.1]
jespada has quit [Quit: Leaving]
<hackeron> jhass: ah, ok, that's the issue then - adding --deployment made it work. Would be good to have a better error than file not found. Think it's worth filing an issue?
<jhass> I think indirect already told you to file an issue and how
<atmosx> Now if we're talking bodyyyyy
scripore has quit [Quit: This computer has gone to sleep]
airdisa has joined #ruby
dfinninger has joined #ruby
thirdknife has joined #ruby
<umgrosscol> hackeron: not really a bundler issue.
<umgrosscol> hackeron: maybe a better or more documentation issue. Perhaps an issue for an faq
sevvie has joined #ruby
<hackeron> jhass: ah, yes, sorry, I saw that, but was still looking for why it works on 1 server, but not on another - I'm still not sure why. I ssh'd to another server, there is no $GEM_HOME set and bundle install works, hmmmm - even though it's the same permissions and ruby is installed from the same brightbox repository
yalue has quit [Read error: Connection reset by peer]
ebernhardson|lch is now known as ebernhardson
slash_nick has quit [Ping timeout: 245 seconds]
<jhass> cat .bundle/config
<jhass> --deployment is a remembered option
<shevy> hmm what is better...
rodferso1 has joined #ruby
<jhass> shevy: the third alternative you won't list
<shevy> FileUtils.rm(some_file_here) or File.delete(some_file_here)
<hackeron> jhass: there's no .bundle/config on either server
<jhass> hackeron: I highly doubt that
<jhass> note it's relative to the Gemfile
rodfersou has quit [Ping timeout: 245 seconds]
allcentury has joined #ruby
jmignault has quit [Read error: Connection reset by peer]
thirdknife has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
barkerd427 is now known as zz_barkerd427
<hackeron> jhass: ah, I think I figured it out - I had sudo: no under with_items in ansible - so the deployment was running bundle install as root and all the gems are in /var/lib/gems/2.2.0 - so when running as user it already had all the gems available
zz_barkerd427 is now known as barkerd427
wallerdev has quit [Quit: wallerdev]
gambl0re has joined #ruby
michaeldeol has quit [Ping timeout: 264 seconds]
pdoherty has quit [Quit: Leaving]
moretti has quit [Ping timeout: 252 seconds]
jogara has quit [Quit: jogara]
<hackeron> umgrosscol: yeh, maybe, but saying something like permission failed /var/lib/gems or something would have made it clear, but mv: cannot stat ‘/tmp/bundler20150512-27272-653i37json-1.8.2/cache/json-1.8.2.gem’: No such file or directory - seems so random. Where do you think this bug belongs?
nobitano_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
thirdknife has joined #ruby
AlphaAtom has joined #ruby
Pipocah has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
Musashi007 has joined #ruby
AlphaAtom has joined #ruby
voodooKobra has joined #ruby
<voodooKobra> hello
AlphaAtom has quit [Max SendQ exceeded]
lidenskap has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
AlphaAtom has joined #ruby
Dopagod has quit [Ping timeout: 276 seconds]
tuelz has quit [Ping timeout: 258 seconds]
freerobby has quit [Quit: Leaving.]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
<jhass> hi
<adaedra> Greetings
jottr has joined #ruby
scripore has joined #ruby
sevvie has quit [Ping timeout: 250 seconds]
snockerton has quit [Ping timeout: 255 seconds]
fschuindt has quit [Ping timeout: 245 seconds]
<voodooKobra> I'm putting together a recommended reading list for application security, and I'd love it if anyone could suggest some resources for Ruby
nanoyak has joined #ruby
jogara has joined #ruby
tuelz has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
slash_nick has joined #ruby
User458764 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
snockerton has joined #ruby
fschuindt has joined #ruby
snockerton has quit [Read error: Connection reset by peer]
snockerton has joined #ruby
nanoyak has quit [Client Quit]
gsd has quit [Read error: Connection reset by peer]
<hackeron> jhass: no wait, that's not it - when I run sudo bundle install, it says bundler should use sudo automatically - is that right?
gsd has joined #ruby
<jhass> yes
gsd has quit [Read error: Connection reset by peer]
mengu has joined #ruby
gsd has joined #ruby
<hackeron> jhass: hmm, so what is going wrong? - any ideas?
sevvie has joined #ruby
mrsolo__ has quit [Quit: This computer has gone to sleep]
<nateberkopec> Any SSL experts here that can weigh in on https://github.com/getsentry/raven-ruby/issues/331#issuecomment-101399141?
User458764 has quit [Client Quit]
<jhass> hackeron: yeah strace and check for permission errors, find them and open an issue
<nateberkopec> i.e. how can a rubygem that uses SSL deal with users that don't have proper CAs set up
<voodooKobra> it can't
bartkoo has joined #ruby
<hackeron> jhass: so would this be an issue with bundler or gem?
<voodooKobra> short of shipping your own cacert file and trusting that 100%
<jhass> hackeron: bundler, most likely
jmignault has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
hakunin has quit [Remote host closed the connection]
<hackeron> jhass: ah, yes, I see that the working server uses Bundler version 1.8.2 and the broken one uses Bundler version 1.9.7
AlphaAtom has joined #ruby
hakunin has joined #ruby
<hackeron> jhass: 1.9.6 works too, hmm
shakar has quit [Quit: Konversation terminated!]
AlphaAtom has quit [Max SendQ exceeded]
nszceta has joined #ruby
yalue has joined #ruby
AlphaAtom has joined #ruby
joelataylor has joined #ruby
jenrzzz has joined #ruby
baweaver has joined #ruby
Akagi201 has joined #ruby
<stephenh> hi, is there an option for ruby to stop accepting options, similar to 'bash -s'? I've looked at the man page but not seeing it
<stephenh> (i would like to pipe a file to ruby and pass options)
aryaching has quit [Ping timeout: 246 seconds]
iamjarvo_ has quit [Ping timeout: 265 seconds]
<adaedra> --
<adaedra> ah no
hakunin has quit [Ping timeout: 258 seconds]
<stephenh> tried that sadly
<adaedra> using `ruby -- - [args]` works
<stephenh> it does :) thanks !
gambl0re has quit []
<stephenh> ruby - [args] seems to do the trick too, awesome
j_mcnally has joined #ruby
<stephenh> thanks again !
j_mcnally has quit [Max SendQ exceeded]
<umgrosscol> I dunno hackeron, still doesn't seem like a bug to me.
baweaver has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
baweaver has joined #ruby
j_mcnally has joined #ruby
gambl0re has joined #ruby
<umgrosscol> Bundler tried to write to a directory that it couldn't write to by the looks of it.
Kentlol has quit [Quit: Leaving]
Akagi201 has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
iamjarvo has quit [Max SendQ exceeded]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<hackeron> umgrosscol: no, it can write to it because it uses sudo apparently
<umgrosscol> hackeron: It should have prompted you for your sudo pw when it requires sudo
tvw has joined #ruby
wallerdev has joined #ruby
mistermocha has joined #ruby
<hackeron> umgrosscol: I have passwordless sudo for that user
kirun has quit [Quit: Client exiting]
<hackeron> umgrosscol: I think maybe it's related to this: https://github.com/bundler/bundler/issues/3641
frem has joined #ruby
<umgrosscol> That might be your bug then. In the case of a passwordless sudo, the prompting for sudo fails.
wldcordeiro_ has quit [Ping timeout: 252 seconds]
<hackeron> umgrosscol: yep, please downgrading to 1.9.6 fixes the problem
diegoaguilar has joined #ruby
frem has quit [Changing host]
frem has joined #ruby
<hackeron> s/please/plus
edwinvdgraaf has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
nanoyak has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
thirdknife has quit [Ping timeout: 272 seconds]
<umgrosscol> hackeron: does that /tmp... directory exist?
AlphaAtom has quit [Max SendQ exceeded]
<hackeron> umgrosscol: yes - pretty sure it's the same issue as this: https://github.com/bundler/bundler/issues/3641
nanoyak has quit [Client Quit]
<hackeron> umgrosscol: error is the same and it was confirmed
AlphaAtom has joined #ruby
jaygen has joined #ruby
<hackeron> umgrosscol: looks like the bundler team will fix it in the next 1-2 days
allcentury has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Max SendQ exceeded]
<hackeron> umgrosscol: looks like someone beat me to reporting it, heh - was reported an hour ago
x1337807x has joined #ruby
AlphaAtom has joined #ruby
zarubin_ has joined #ruby
zarubin_ has quit [Client Quit]
thirdknife has joined #ruby
Rapier- has quit [Quit: (null)]
ixti has joined #ruby
dfinninger has quit [Remote host closed the connection]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jogara has quit [Quit: jogara]
_ixti_ has quit [Ping timeout: 245 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jogara has joined #ruby
goodcodeguy has joined #ruby
thirdknife has quit [Quit: This computer has gone to sleep]
Lingo has joined #ruby
mistnim has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
GaryOak_ has quit [Remote host closed the connection]
nanoyak has joined #ruby
decoponio has quit [Quit: Leaving...]
shevy has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
ki0 has quit []
endash has quit [Quit: endash]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
thirdknife has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
nanoyak has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
baweaver has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
lidenskap has quit [Remote host closed the connection]
voodooKobra has left #ruby [#ruby]
konsolebox has quit [Remote host closed the connection]
thirdknife has quit [Ping timeout: 252 seconds]
Lingo has quit [Quit: (null)]
sevvie has quit [Ping timeout: 252 seconds]
thirdknife has joined #ruby
sevvie has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
Sawbones has quit [Remote host closed the connection]
kobain has joined #ruby
shevy has joined #ruby
ndrei has joined #ruby
devramen has quit [Quit: Leaving...]
towski_ has joined #ruby
towski_ has quit [Client Quit]
yfeldblum has quit [Ping timeout: 265 seconds]
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d10n-work has quit [Quit: Connection closed for inactivity]
imkmf has joined #ruby
Oka has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SleepDeprived has joined #ruby
Rickmasta has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
dented42 has joined #ruby
Cuubix has joined #ruby
AlphaAtom has joined #ruby
nszceta has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
thirdknife has quit [Ping timeout: 252 seconds]
umgrosscol has quit [Quit: Quit]
AlphaAtom has quit [Max SendQ exceeded]
lidenskap has joined #ruby
lidenskap has quit [Remote host closed the connection]
thirdknife has joined #ruby
bartkoo has quit [Quit: bartkoo]
lidenskap has joined #ruby
Bira has quit []
AlphaAtom has joined #ruby
baweaver has quit [Remote host closed the connection]
iamjarvo has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Remote host closed the connection]
yfeldblum has joined #ruby
JDiPierro has quit [Remote host closed the connection]
willharrison has joined #ruby
chipotle has quit [Remote host closed the connection]
<willharrison> anyone know if this cert is in english? http://www.ruby.or.jp/en/certification/examination/
baweaver has joined #ruby
chipotle has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
mistermocha has joined #ruby
<wallerdev> theres a picture of it if you scroll down
<willharrison> ah ok I see
snockerton has quit [Read error: Connection reset by peer]
<willharrison> wallerdev do you think it would help to have this if I am just now graduating college with no professional ruby experience?
<willharrison> trying to get a rails job
barkerd427 is now known as zz_barkerd427
<wallerdev> where do you live
<willharrison> florida
lordkryss has quit [Quit: Connection closed for inactivity]
postmodern has joined #ruby
<wallerdev> do you want to work in florida
<willharrison> I have to
<willharrison> orlando specifically
iamjarvo has joined #ruby
<baweaver> define have to
<wallerdev> you can't move?
<willharrison> no
iamjarvo has quit [Max SendQ exceeded]
<willharrison> personal reasons
<wallerdev> well just look at the job opportunities there and what theyre asking for
imkmf has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby
<postmodern> is there a cross-platform way of seeing if a process (by name) is running?
<willharrison> but do you think it would help at all to have a certification?
<willharrison> in your opinion
mistermo_ has joined #ruby
<baweaver> remote positions are not an option until you have at least a good 3-5 years of professional experience
iamjarvo has quit [Max SendQ exceeded]
<wallerdev> if you want to work for a big company like insurance or something then they might like certifications
<postmodern> got burned doing `pidof redis-server` since OSX has no pidof
<baweaver> certifications are worthless in most cases
<baweaver> focus instead on learning more programming
AlphaAtom has quit [Read error: Connection reset by peer]
<wallerdev> for a startup or smaller company theyll just ask you what you know in interviews and wont care about a certification
<willharrison> ah ok
iamjarvo has joined #ruby
* baweaver works at a big company and has no certifications
iamjarvo has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
<wallerdev> yeah i worked at an insurance company and they wouldve loved that haha
<bricker> me too
snockerton has joined #ruby
roolo has joined #ruby
<wallerdev> but they arent the kind of company to use ruby :p
<bricker> I'm certified in not being a shitty programmer
<bricker> my resume is my certification
<willharrison> yeah, I really just want to get my foot in the door
<baweaver> I'm a certified badass developer
roolo has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
<baweaver> (Build and Deployment Automation Support System :D)
<willharrison> can't find a whole lot of rails jobs in orlando and was hoping this would help me stand out and get interviews a little easier
roolo has joined #ruby
<wallerdev> i think the problem is more likely being limited to orlando haha
shellfu has quit [Ping timeout: 272 seconds]
<willharrison> indeed
<baweaver> You might want to rethink requiring yourself to stay there
<baweaver> and make sure that's really the case
<wallerdev> i doubt a certification would help, just list some sort of experience, do you have any sites you built in rails? put it on your resume
<willharrison> I have to be there
<baweaver> I'm saying make dead sure, because it'll cripple 98% of your opportunities or more to do so.
<willharrison> I realize that
MasterPiece has joined #ruby
<willharrison> wallerdev I am new to rails, I have been using laravel and have something with it. I have built a few things with ruby and I am currently working through rails 4 in action
<wallerdev> could contribute to some ruby open source project and put that on your resume
<wallerdev> those are the kinds of things that help you stand out
thirdknife has quit [Quit: This computer has gone to sleep]
CloCkWeRX has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrsolo has joined #ruby
bartkoo has joined #ruby
shazaum has quit [Quit: Leaving]
<wallerdev> if you're new to rails you might want to just apply for other opportunities too just to land something and get experience
<wallerdev> my first job out of college wasnt ruby
<wallerdev> wasnt the most fun thing either but at least i had a job and could be more comfortable in future searches
scripore has quit [Quit: This computer has gone to sleep]
<wallerdev> if you enjoy ruby you might look for things with python, node.js, or frontend javascript like angularjs
<wallerdev> not quite the same but at least similar enough to learn from
moretti has joined #ruby
ebonics has quit [Remote host closed the connection]
<dudedudeman> willharrison:
SleepDeprived has quit [Quit: SleepDeprived]
<dudedudeman> willharrison: it might be worth checking out and talking to the guys over at codeschool
<willharrison> sorry about that
<dudedudeman> their offices are in orlando, and they seem like nice enough blokes
phutchins has joined #ruby
bartkoo has quit [Ping timeout: 264 seconds]
<willharrison> wallerdev that is a good point, I think I will also look at .net jobs since I had an internship at one
<dudedudeman> also, i grew up in orlando. small world. lol
<adaedra> we're talking ruby jobs?
<willharrison> dudedudeman ah, cool, I didn't realize that. I will check and see if they are hiring
<dudedudeman> i'm looking fory ou now. :)
<wallerdev> c# is a cool language, i used to do that in college a bit
chipotle has quit [Quit: cheerio]
FernandoBasso has joined #ruby
<wallerdev> not quite like ruby but a very well designed language for what it is
<dudedudeman> willharrison: https://www.codeschool.com/jobs
<willharrison> dudedudeman thanks man :) it is a small world lol
<willharrison> wallerdev yeah, I have enjoyed using it when I did
_djbkd has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
<willharrison> ah .net teacher at codeschool lol
<dudedudeman> see? lol
peckermanzzz has joined #ruby
srksm has joined #ruby
<willharrison> indeed lol
Cuubix has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
Cuubix has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
vdamewood has joined #ruby
AlphaAtom has joined #ruby
<dudedudeman> also, the codeschool courses are pretty good. i'm signed up for some of them now and enjoy them
Hijiri has joined #ruby
<willharrison> I have used them for javascript a little in the past and I enjoyed them
<willharrison> they are good quality
AlphaAtom has quit [Max SendQ exceeded]
yqt has joined #ruby
_djbkd has joined #ruby
AlphaAtom has joined #ruby
<adaedra> It's paid :/
d10n-work has joined #ruby
wildroman2 has quit [Remote host closed the connection]
_djbkd has quit [Read error: Connection reset by peer]
moretti_ has joined #ruby
GaryOak_ has joined #ruby
<dudedudeman> it is. you can sign up for a month and download all of the videos in one shot, but you don't get the challenges associated with t hem :(
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
_djbkd has joined #ruby
srksm is now known as sarkasm
peckermanzzz has quit [Ping timeout: 276 seconds]
sarkasm has quit [Quit: Ex-Chat]
<willharrison> tbh I have given up on trying to not pay for things. if it is quality, I don't mind paying vs searching endless hours for something half the equivalent of
moretti has quit [Ping timeout: 265 seconds]
<dudedudeman> ah, that's kind of exactly where i ended up. yet, there are still some things i don't pay for, simply because i don't think i've used up all of the resources for the things i'm already paying for
<willharrison> that is true, I do make sure not to pay until I have finished what I have already payed for
<willharrison> eg. not buying a new book until I finish my current one
joelataylor has quit [Quit: Be back later ...]
allcentury has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
freerobby has joined #ruby
qwertme has joined #ruby
<adaedra> books <3
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
jogara has quit [Quit: jogara]
<willharrison> indeed. books > all
<dudedudeman> i'm on both sides of that coin. if i'm in the middle of a coding session and i need to look something up, keystrokes man, keystrokes. I want to be able to find what i want with keystrokes. BUT, if i have a few hours and i just want to read, i can't read books on a tablet or pc. gimme the real thing
SegFaultAX has quit [Ping timeout: 272 seconds]
roolo_ has joined #ruby
jogara has joined #ruby
nszceta has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
leokaito has joined #ruby
leokaito is now known as leoapost
Deele has quit [Ping timeout: 256 seconds]
<willharrison> yeah, same. when working its all google. but when I want to relax with a nice cup of tea, have to have the paper books
JimmyNeutron has quit [Read error: Connection reset by peer]
<dudedudeman> willharrison: it would make me chuckle if we actually knew each other
<willharrison> I don't think we do lol, I am from MS
<willharrison> my better half is from orlando
<dudedudeman> ayyyy. word
jottr has quit [Quit: WeeChat 1.1.1]
* mwlang reads the screen faster than paper.
SegFaultAX has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cgrieger is now known as cgrieger^away
<dudedudeman> it's not a bad place to live. don't know how long you've been down there
<willharrison> actually I am still in MS but my lease starts in a week so I am moving there soon
<willharrison> I have to come back here and live with my parents tho while I finish 2 more classes over the summer
doodlehaus has quit [Remote host closed the connection]
AlphaAtom has quit [Read error: Connection reset by peer]
phreakocious has quit [Ping timeout: 272 seconds]
<willharrison> I am looking forward to being so near the beach
<dudedudeman> what part of orlando, if you don't mind me asking? depending on where you're at, i'd bet you might be able to visit a few places and talk to some devs
AlphaAtom has joined #ruby
<mwlang> I used to read books all the time…it would take me a while to finish one book (like 3 or 4 weeks)….then I got a kindle…I finish same sized books on kindles in a week….no idea what the real difference is other than I’ve been largely a screen reader since the late 80’s.
<willharrison> dudedudeman winter park
Igorshp has joined #ruby
<dudedudeman> ayyyy, yeah that's a great area! I grew up in winter springs, which is like right next door
AlphaAtom has quit [Max SendQ exceeded]
<willharrison> mwlang some people are just built like that I think. I read slow on a screen
<willharrison> dudedudeman ah, awesome. I'm not sure where that is but I am sure I will soon enough
AlphaAtom has joined #ruby
<willharrison> but yeah, it's a really pretty city
<mwlang> willharrison: probably all the 18+ days at the computer coding something from H.S. through college.
<willharrison> mwlang that can do it lol
jtdowney has quit []
phreakocious has joined #ruby
<dudedudeman> totally, you will. orlando is the home of winters. winter springs, winter garden, winter haven, winter park lol
<willharrison> haha
rbennacer has quit [Ping timeout: 250 seconds]
<willharrison> if you don't mind me asking, where are you located now?
<dudedudeman> dallas, tx
<willharrison> ah awesome, I lived in irving for my internship lol
<willharrison> you and I are on some sort of life path together lol
<dudedudeman> florida is also home to springs altamonte springs, bonita springs, coral springs, defuniak springs, tarpon springs, winter springs, etc...
<dudedudeman> haha
<dudedudeman> hey! irving isn't far from me at all
f3lp has joined #ruby
<dudedudeman> you had a .net internship?
<willharrison> yeah
fschuindt has quit [Ping timeout: 255 seconds]
snockerton1 has joined #ruby
failshell has quit []
Zai00 has joined #ruby
<willharrison> I feel like you're about to say you work there
<dudedudeman> ha in irving?
<willharrison> yeah lol
<dudedudeman> no, but i've looked in to it. lol
<willharrison> ah I see
ghr has quit [Ping timeout: 240 seconds]
<willharrison> it's a nice area
<dudedudeman> i work one of my jobs downtown, other job on on the weekends is in carrolton, and the third job is in my boxers at home
<willharrison> ah, busy man
jenrzzz has joined #ruby
jobewan_ has quit [Quit: leaving]
<dudedudeman> meh. grinding towards my main goal: to be as cool as the dudes in here
<dudedudeman> meaning, a job in development. #oneday
<dudedudeman> yes, i hashtagged. sorry....
<dudedudeman> :P
<willharrison> oh, you're not a dev? what type of work do you do?
Musashi007 has quit [Quit: Musashi007]
snockerton has quit [Ping timeout: 265 seconds]
<dudedudeman> dev is the third job. my full time gig is at an animation studio
<adaedra> dudedudeman: be careful what you wish for
<dudedudeman> adaedra: i wish to be you
<adaedra> no you won't
mengu has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
<willharrison> lol
<dudedudeman> psh, i just did. whatchu gonna do 'bout it
<adaedra> you know what I do at work?
ghostmoth has joined #ruby
<dudedudeman> tell!
Igorshp has quit [Remote host closed the connection]
paulcsmith has joined #ruby
<adaedra> PHP
jobewan has joined #ruby
<dudedudeman> hey man, you get paid to do it, right?
* mwlang falls outta chair
<willharrison> adaedra nothing wrong with some PHP here and there
<baweaver> here we go
<willharrison> laravel is a solid framework and I hear the same about symfony
Hijiri has quit [Quit: WeeChat 1.0.1]
* dudedudeman gets mwlang back up and fetches a glass of water
<adaedra> willharrison: ahahah.
wildroman2 has joined #ruby
<adaedra> I wish I'd do some laravel.
<ericwood> willharrison: are you william harris by chance?
<ericwood> pleaseeeee be him
<willharrison> ericwood afraid not
<ericwood> damn
<ericwood> always wondered what happened to that dude :P
Igorshp has joined #ruby
<willharrison> adaedra yeah laravel jobs seem few and far
<baweaver> can we not start a zealatrous blood-rage over this one?
workmad3 has quit [Ping timeout: 245 seconds]
<dudedudeman> sorry, baweaver :(
<adaedra> dudedudeman: you're right, I got paid for it. But it's not the only goal for a job.
<baweaver> Not saying anyone has yet
<baweaver> but it tends to
root has joined #ruby
root is now known as Guest61288
Guest61288 has quit [Client Quit]
<baweaver> Realize that a tool is a tool, and very rarely do people have the luxury of rewriting things.
<dudedudeman> adaedra: you're right, you're absolutely right. i can only speak from my perspective, and that is that i desire very much so to be able to snag a dev roll of some sort(ideally, ruby) so i can finally start my career in the software world. currently, i'm working full time in aj ob that has nothing to do with what i want to do long term, so the longer i stay here, the more experience i'm wasting
zzing has joined #ruby
<dorei> some tools are beautiful, some tools are ugly though
<adaedra> ^
<baweaver> Sometimes, and however unfortunately, you have to make do with said tools
alderamin has quit []
<adaedra> yeah
<baweaver> which is why RPG and COBOL are still a thing ;)
<adaedra> but it doesn't mean you can't look at using better tools
<dorei> cobol = job security xD
<willharrison> adaedra what type of php do you do?
paulcsmith has quit [Ping timeout: 256 seconds]
yqt has quit [Read error: Connection reset by peer]
<adaedra> willharrison: what do you mean, what type
cyberarm_ has joined #ruby
fschuindt has joined #ruby
<willharrison> like do you do drupal stuff or cake or something?
<baweaver> I know both of those languages unfortunatelly
vdamewood has quit [Quit: Life beckons.]
<dudedudeman> hey! i got to look at some COBOL the other day! that was kind of interesting
<willharrison> or just pure php?
<adaedra> willharrison: pure.
<adaedra> some external libs
<willharrison> baweaver never met anyone who knew RPG lol
<dorei> i think there are modern versions of cobol, like oo cobol
<willharrison> dorei yeah there are
<baweaver> I would not suggest it myself
<willharrison> good, I didn't want you to :P
<baweaver> There are a handful of languages which I will absolutely refuse to use anymore
<willharrison> adaedra ah I see
<baweaver> Among those are RPG, COBOL, MUMS, and the one to often times get me in trouble: Java
<dorei> baweaver: did your rpg programms run on machines that used token rings instead of ethernet? :D
<baweaver> Nope, standard AS/400s
<baweaver> ethernet based, though there were still Tokenring adapters around
<adaedra> Those were different times
<willharrison> well this has been a fun conversation but I have to head out
<willharrison> bye all
<dudedudeman> willharrison: best of luck!
<dudedudeman> come back and visit!
AlphaAtom has quit [Read error: Connection reset by peer]
cyberarm has quit [Ping timeout: 255 seconds]
<adaedra> Now I pass the token to baweaver
<willharrison> thanks and will do
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
Hijiri has joined #ruby
AlphaAtom has joined #ruby
swgillespie has joined #ruby
arturhoo has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> Local college was effectively bought by RPG companies
<adaedra> baweaver: actually, didn't want to start a war over it or anything. Just, this internship in PHP made me realize I don't want to do it for a job.
swgillespie has quit [Client Quit]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has joined #ruby
<baweaver> You didn't start a war over it
<baweaver> I'm just saying it tends to go that way right fast for some reason, so I was preempting it
<adaedra> you were asking not to :)
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
dseitz_ has joined #ruby
<baweaver> Some people that read PHP go into foaming mouth mode and start a huge rant over it
Mostly_Y is now known as Monroe
<adaedra> yeah
<dudedudeman> i have a friend who is a PHP/laravel guy in NYC, and he loves it. he gets really excited about it
Monroe is now known as Mostly_Y
dseitz has quit [Read error: Connection reset by peer]
idafyaid has quit [Ping timeout: 264 seconds]
dseitz_ is now known as dseitz
jogara has quit [Quit: jogara]
swgillespie has joined #ruby
Igorshp has quit [Remote host closed the connection]
musl_ has quit [Quit: WeeChat 1.1.1]
musl has joined #ruby
<adaedra> NYC!
<adaedra> Now that's a big town :)
<shevy> as is Paris
<adaedra> shhh
<dudedudeman> it's not small, that's for sure
<shevy> but Paris has more baguette
badhatter has quit [Read error: Connection reset by peer]
<shevy> what do you eat in NYC typically?
<adaedra> Here he goes again
neanderslob has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dudedudeman> i mean, anything yo uwant, because there is literally EVERYTHING there
ndrei has quit [Ping timeout: 252 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
badhatter has joined #ruby
startupality has joined #ruby
Encapsulation has joined #ruby
<adaedra> dudedudeman: /typically/
<adaedra> isn't Hot Dogs the NYC speciality?
<dudedudeman> well, yes, but chicago might like a word with them about that
jerius has quit [Quit: /quit]
bogdanteleaga has quit [Ping timeout: 256 seconds]
<dudedudeman> pizza is the HUGE huge thing in NYC
<dudedudeman> and bagels
<adaedra> /nick shevy2
ndrei has joined #ruby
<dudedudeman> those damn bagels man.... (*&%
<dudedudeman> so good
mistermocha has joined #ruby
<adaedra> ok
einarj has joined #ruby
<dudedudeman> are you going ot NYC any time soon?
WildBamboo-Josh has quit [Read error: Connection reset by peer]
<adaedra> me? no.
mistermo_ has quit [Ping timeout: 252 seconds]
<adaedra> I don't really want to go to the US. :x
moretti_ has quit [Ping timeout: 276 seconds]
WildBamboo-Josh has joined #ruby
<dudedudeman> eh, it's not as bad as the media makes it
<dudedudeman> some of us are ok
<toretore> they stick their fingers up your butt before letting you in
<dudedudeman> me, no. the others, yes
<dudedudeman> some of the
<dudedudeman> m
<dudedudeman> toretore is wrong
<dudedudeman> they stick TWO fingers up the butt
jimms has quit [Remote host closed the connection]
<adaedra> yeah, let's stay in Europe, it seems a good plan, adaedra
einarj_ has joined #ruby
<zenspider> I ate a lot of cubanos, arepas, tortas, tortilla soup in NYC. Plenty of asian and italian too.
Guest1421 has quit [Ping timeout: 245 seconds]
Luyt__ has joined #ruby
bruno-_ has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
bogdanteleaga has joined #ruby
ebonics has joined #ruby
AlphaAtom has joined #ruby
<dudedudeman> mmmmm. cubanos
<dudedudeman> i'd eat that
sinkensabe has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 272 seconds]
yqt has joined #ruby
<adaedra> he'd eat that
<jmignault> pizza is everywhere, cheap, and sold by the slice. Good for quick eats.
<dudedudeman> i'd put that in my mouth and chew it
sinkensabe has joined #ruby
einarj has quit [Read error: Connection reset by peer]
Luyt_ has quit [Read error: Connection reset by peer]
bruno- has quit [Read error: Connection reset by peer]
sfr^ has quit [Ping timeout: 256 seconds]
\13k has quit [Ping timeout: 256 seconds]
lorn has quit [Ping timeout: 256 seconds]
pjaspers has quit [Ping timeout: 256 seconds]
exadeci has quit [Ping timeout: 256 seconds]
skinny_much has quit [Quit: Ruh Roh...]
<dudedudeman> so much pizza
<adaedra> now this is something I'd like to have
leoapost has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
<adaedra> (well, depending on your definition of 'cheap' :p )
jimms has joined #ruby
pjaspers has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
exadeci has joined #ruby
sfr^ has joined #ruby
\13k has joined #ruby
lorn has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Read error: Connection reset by peer]
Mostly_Y is now known as MikeLees
<jmignault> Hot dogs are not the big production they are in Chicago. They're sold from carts and they're usually just topped with mustard and sometimes onion in tomato sauce.
_djbkd has quit [Quit: My people need me...]
<jmignault> aka "dirty water dogs"
sinkensabe has joined #ruby
skinny_much has joined #ruby
freerobby has quit [Quit: Leaving.]
Igorshp has joined #ruby
sinkensabe has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
sinkensabe has joined #ruby
quimrstorres has joined #ruby
riotjones has joined #ruby
einarj_ has quit [Read error: Connection reset by peer]
mengu has joined #ruby
<GaryOak_> everyone is talking about pizza and hotdogs in here!
einarj has joined #ruby
Psi-Jack has joined #ruby
<adaedra> Hello Gary
mikecmpbll has quit [Quit: i've nodded off.]
<GaryOak_> hey
marr has quit [Ping timeout: 264 seconds]
<dudedudeman> oh.. uh... #ruby. right. umm, hi i'm dudedudeman and i'm working on a gem regarding pizza and hotdogs?
<GaryOak_> hahaha excellent
riotjone_ has quit [Ping timeout: 264 seconds]
<adaedra> dudedudeman.credibility => 0
<dudedudeman> dammit
<GaryOak_> hey everyone check out my gem pizza_n_hotdogs
<dudedudeman> hey! I came up with that idea!
rehat has joined #ruby
<dudedudeman> >> dudedudeman = %w[pizza hotdogs fullofit]
<ruboto> dudedudeman # => ["pizza", "hotdogs", "fullofit"] (https://eval.in/352034)
<adaedra> require 'pizza'; require 'hotdogs'
bootstrappm has joined #ruby
snockerton1 has quit [Quit: Leaving.]
slash_nick has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
<mwlang> heh…NYC is pizza, Chicago is hot dogs. Philly is Cheesesteaks. Memphis is ribs, Texas is brisket bbq or tex mex (depending on who ya talk to), The Carolinas is BBQ pork, one mustard sauce, the other tomato sauce.
AlphaAtom has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
AlphaAtom has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
<dudedudeman> mwlang: i love you.
<dudedudeman> you know what speaks to me. which, is all of those things
<mwlang> :-S lay off the sauce, dude.
<mwlang> :-D
qwertme has joined #ruby
<dudedudeman> ah, did i say that out loud... :/
<dudedudeman> :P
<mwlang> dudedudeman: all I know is I know where to find the good food in town(s).
Igorshp_ has joined #ruby
<dudedudeman> it's the best thing to kno
<mwlang> and if I’m in a new town and don’t know, I find the local micro brewery.
<dudedudeman> if you're ever in dallas, i got a list of about 300 different places for you to go to
Igorshp has quit [Ping timeout: 256 seconds]
icebourg has quit []
<adaedra> 300
duderonomy has joined #ruby
<mwlang> dudedudeman: I drove straight through Dallas, clear across Texas last Feb.
<dudedudeman> ah man
arescorpio has joined #ruby
<dudedudeman> it's a cool city. totally different than say, austin, but both very texas
mistermocha has quit [Read error: Connection reset by peer]
WillAmes has joined #ruby
mistermocha has joined #ruby
jmignault has quit [Quit: Textual IRC Client: www.textualapp.com]
<mwlang> dudedudeman: lemme tell ya. The best new thing I discovered was pool con Salsa Verde. That stuff was da bomb.
<GaryOak_> I flew over Texas, and was like that's enough
snockerton has joined #ruby
<adaedra> Well
<adaedra> Bye, 'MURRICA
<mwlang> dudedudeman: I only know Austin and San Antonio where my Aunt and cousins live.
kobain has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
<dudedudeman> ah, those are both great places
<mwlang> GaryOak_: Did you see the big areal signs that said….”Don’t mess with Texas” ?
iamjarvo has quit [Max SendQ exceeded]
<dudedudeman> if you like hot sauce, texas is where it's at
<dudedudeman> don't messwith texas is a thing. they're weird here
nobitanobi has quit [Remote host closed the connection]
leafybasil has joined #ruby
<mwlang> dudedudeman: oh, yeah…I had my first encounter with ghost pepper on my drive through Tx in Feb….that’s one hot pepper….and in a very unique, delayed onset way, too.
vickleton has quit [Quit: Ex-Chat]
<dudedudeman> hell yes
blackmesa has joined #ruby
<dudedudeman> i just bought some ghost pepper blueberry hot sauce, and it's delicious
blackmes1 has quit [Read error: Connection reset by peer]
<dudedudeman> and... hot
<dudedudeman> but for some odd reason, they add a metric (&#$ ton of black pepper to it as well
<dudedudeman> so it actually makes it milder than it coudl be
<dudedudeman> at least to my tongue
<mwlang> dudedudeman: ghost pepper beef jerky.
scripore has joined #ruby
shuber_ has joined #ruby
<dudedudeman> YES
<dudedudeman> lawd
baweaver has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
nfk has quit [Quit: yawn]
scripore has quit [Client Quit]
<mwlang> dudedudeman: got it at a gas stop…ate a piece, went back in and cleared the rack. :-)
ghostmoth has joined #ruby
<dudedudeman> ha. that's what i'm talking about
<dudedudeman> buc-ee's by any chance?
<mwlang> dudedudeman: no clue.
<dudedudeman> ah
<mwlang> it’s all gone, so I don’t have a reference.
<mwlang> but show me a website…maybe I’ll recognize the logo
<dudedudeman> they're a big chain of gas stations in texas and have a huge selectio nof in house made beef jerky
mrsolo has quit [Quit: Leaving]
mrsolo has joined #ruby
<dudedudeman> (ewww, php :P)
snockerton has quit [Quit: Leaving.]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
f3lp has quit [Remote host closed the connection]
<mwlang> there weren’t no chipmunk on the packaging.
fschuindt has quit [Ping timeout: 276 seconds]
<dudedudeman> beaver*
<dudedudeman> we take offense to that
<dudedudeman> just kidding.
<mwlang> dudedudeman: well, you’ll have to drive clear across Texas and three more states to take it up with me. :-)
Cuubix has quit [Quit: Leaving]
nullset68 has joined #ruby
<mwlang> and I know from experience, that ain’t no joy ride.
AlphaAtom has quit [Read error: Connection reset by peer]
<dudedudeman> ha. work did that to me once. they flew me out to LA to pick up a piece of gear, and rented me a car to drive immediately back to dallas
<mwlang> why is there a beaver mascot in Tx anyhow? There ain’t enough rivers and lakes there.
AlphaAtom has joined #ruby
EllisTAA has joined #ruby
<dudedudeman> no effing clue. we're weird, man
<dudedudeman> aight, i'm out. time to go to my local ruby meet up for hte night!
<dudedudeman> you guys are awesome
<EllisTAA> do you think someone should learn about computers before they learn how to program or do you think they should learn how to program before they learn about computers? why?
airdisa has quit []
wildroman2 has quit []
scripore has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<GaryOak_> EllisTAA: it depends what they want to learn first
<EllisTAA> garyoak_: how to program
AlphaAtom has joined #ruby
<GaryOak_> Then learn how to program and then about the computer
Igorshp_ has quit [Remote host closed the connection]
<mwlang> EllisTAA: both at the same time.
sargas has joined #ruby
Igorshp has joined #ruby
juanpaucar has joined #ruby
shuber_ has quit [Remote host closed the connection]
snockerton has joined #ruby
<EllisTAA> i was thinking ppl who learn how to program before they learn about computers develop a syntax POV where they think about ‘how to write the syntax’ and a person learning about computers might have more of a computer POV where they write the code thinking about how the computer will interpret it instead of is the syntax right
<EllisTAA> i’m in a bootcamp so i was reflecting on my experience
ebonics has quit [Remote host closed the connection]
<mwlang> EllisTAA: Interesting observation. However, one doesn’t really learn to think about how a computer interprets the program until you start thinking about system-level stuff.
<GaryOak_> At the level of ruby, it doesn't really matter how the computer works
<shevy> ruby was written for people
<GaryOak_> Once you start using pointers, or doing memory management, you need to understand what's actually going on
shuber_ has joined #ruby
<shevy> the next evolutionary step will be to tell the computer what code is to be produced, without having to type
scripore has quit [Ping timeout: 250 seconds]
<EllisTAA> garyoak_: when would u start using pointers etc
<GaryOak_> Do most people understand how scheduling, or CPU pipelining work?
<shevy> I understand nothing
<EllisTAA> shevy: do u know that for a fact? are people developing those languages?
<shevy> EllisTAA don't think it is possible with the current computers
<GaryOak_> EllisTAA: Once you use a language that requires you to do that, like C or something lower level
<mwlang> …or optimizations or algorithmic proofs
nobitanobi has joined #ruby
<shevy> they were designed to make use of 0 and 1, nothing more
Igorshp has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
<GaryOak_> at incomprehensible speeds
<shevy> I'd wish ruby would be faster!
<GaryOak_> hehe
<EllisTAA> i just want to level up ^^
<GaryOak_> Use crystal
<mwlang> A a microprocessor does three things: fetch, interpret and execute. and about the only thing it really does is add.
<GaryOak_> a modern CPU does lots and lots of different things, that the programmer would never know about
uptownhr has quit [Quit: uptownhr]
Ropeney has joined #ruby
<shevy> GaryOak_ I am seriously contemplating that now
enebo has quit [Quit: enebo]
<shevy> my pseudo-shell takes about 3 seconds to load up. I have no idea where the bottleneck is yet but it annoys me
northfurr has joined #ruby
mistermo_ has quit [Remote host closed the connection]
<mwlang> I don’t think most programmers ever really start to think about what the computer is actually doing until they take three classes: OS design, Compiler design, and Systems IO. Then they still don’t get dirty until they take circuit design, microprocesser programming, and assembler.
iasoon has quit [Ping timeout: 240 seconds]
<shevy> sounds like lots of hours investment there
mary5030 has quit [Remote host closed the connection]
<dorei> mwlang: maybe they should learn C insteard :p
<dorei> instead even
<EllisTAA> MWLANG: COOL ill check those out
mary5030 has joined #ruby
nullset68 has quit [Quit: WeeChat 0.4.2]
<GaryOak_> shevy: Well Ruby is like Hardware -> Binary -> Hex -> ASM -> C -> Ruby VM -> Ruby Code
<GaryOak_> and I probably missed a bunch
<shevy> GaryOak_ yeah
<shevy> Hardware -> Binary -> Hex -> ASM -> C -> Ruby VM -> Poetry -> Ruby Code
emptyflask has quit [Remote host closed the connection]
<EllisTAA> what are you guys syaing? binary, hex, asm?
jimms has quit [Remote host closed the connection]
<shevy> I am not saying anything
<shevy> I am just copy pasting what GaryOak_ wrote
<EllisTAA> lol
<GaryOak_> I'm saying that's what happens to your code for it to get executed by the CPU
<xxneolithicxx> stop pls, you guys are bringing back the horror of college and having to write buffer exploit in assembly
towski_ has joined #ruby
<mwlang> shevy: yeah. I started with GW-BASIC, then Pascal, then Assembler, then C, and a few random languages until Delphi for Windows development followed by a switch back to C and on to Python on my way to Ruby….so, yeah, lotta time and languages in between then and now.
towski_ has quit [Remote host closed the connection]
<shevy> whoa that's a lot
AlphaAtom has quit [Read error: Connection reset by peer]
<dorei> hex / binary is just different representation of the same thing
<shevy> my list is much much shorter... perl php ruby. end of list
SirCmpwn has quit [Remote host closed the connection]
<mwlang> xxneolithicxx: heh….we wrote a checkers game in assembler…I’d say you got off easy.
mistermocha has joined #ruby
AlphaAtom has joined #ruby
<xxneolithicxx> mwlang: id take checkers
<shevy> you guys know MenuetOS?
<dorei> shevy: u're ready for C :)
<shevy> dorei I don't know :(
<shevy> I'd love to have something like ruby with the speed of C
<Ropeney> your always ready for c
<dorei> u cant have both beauty and speed :p
<shevy> dorei I decided to maintain bluefish-1.0.7 though - better than switching an editor :P
<eam> shevy: "like ruby" in what way?
<mwlang> shevy: heard of it, but never touched
<shevy> eam syntax primarily; philosophy secondary
bootstrappm has quit [Ping timeout: 264 seconds]
SirCmpwn has joined #ruby
einarj_ has joined #ruby
<eam> just #include <ruby.h>
<havenwood> shevy: And how does this lang differ from Crystal?
bootstrappm has joined #ruby
<mwlang> shevy: Rust
<shevy> havenwood I have no real idea about crystal
<shevy> the only examples I saw was that they were close to ruby
einarj has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 272 seconds]
<shevy> eam yeah but this is C then
<eam> shevy: well, yeah
quimrstorres has quit [Remote host closed the connection]
<shevy> I guess C was the most successful programming language
<mwlang> shevy: would not have *nix without C
jgt has joined #ruby
<pipework> All the things that might have been are rather hard to enumerate.
sargas has quit [Quit: Leaving]
kobain has joined #ruby
<pipework> You could totally have Unix without C.
<shevy> yeah the C++ guys, what OS did they give rise to? windows?
<pipework> You couldn't have C without C though.
<Ropeney> windows is still mostly c
<mwlang> pipework: I just meant unix was written in C
<pipework> renix or whatever is rust unix implementation.
CloCkWeRX has joined #ruby
Hijiri has quit [Ping timeout: 276 seconds]
<shevy> hmm I thought windows was C++
<shevy> now I wonder what C++ achieved
juanpablo_ has quit [Quit: (null)]
Akagi201 has joined #ruby
zzing has joined #ruby
<Ropeney> its still very difficult to write windows drivers in c++
<Ropeney> you get a 'subset' of c++ to do it
juanpablo_ has joined #ruby
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
diegoviola has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
<mwlang> C++ achieved notary for nothing. :-) Actually, I think it’s biggest success was the Gnome window manager, but I could be wrong on that.
Cubix has joined #ruby
Cubix has quit [Max SendQ exceeded]
ohaibbq has joined #ruby
Cubix has joined #ruby
<Ropeney> gnome is still awesome for large applications that benefit from abstraction
<Ropeney> c++ rather
ndrei has joined #ruby
northfurr has quit [Quit: northfurr]
<havenwood> People seem to like this latest version of C++ called Go.
<mwlang> I think C++ mostly had the reputation that it added complexity to a language that didn’t need it. Seems like there were lots of “wars” back in the day that if a C++ developer claimed they could do something C couldn’t, the C guys showed ‘em up every time and with a more performant solution to boot.
zzing has quit [Client Quit]
<shevy> mwlang except that gnome is written in C
<shevy> well, there are some examples of C++ being successful
Akagi201 has quit [Ping timeout: 272 seconds]
juanpablo_ has quit [Ping timeout: 264 seconds]
<GaryOak_> Chrome
<shevy> qt/kde, several 3D engines like crystalspace and ogre3d... some games
<GaryOak_> Firefox
<shevy> really?
<havenwood> shevy: Rubinius
zzing has joined #ruby
shuber_ has quit [Remote host closed the connection]
<Ropeney> nmap is c++ now
<shevy> oh yeah... boost
Hijiri has joined #ruby
<Ropeney> thats cheating
fschuindt has joined #ruby
<GaryOak_> The Source engine
<GaryOak_> Lots of game engines
<shevy> boost is really huge
<mwlang> I have always preferred C over C++ even though I’m an OO guy at heart. C++ was just, well, cumbersome for no good reason at the end of the day.
<shevy> boost-1.56.0.tar.xz: 86M
Musashi007 has joined #ruby
<shevy> they really should not have written a new language
<shevy> add the OO-related functionality to C
<mwlang> shevy: and that’s a nuther thing, come to think of it…c++ object files were always huge compared to C's.
EllisTAA has quit [Quit: EllisTAA]
<shevy> hehe
sinkensabe has quit [Remote host closed the connection]
sohrab has joined #ruby
<havenwood> shevy: Ruby is a much smaller library for C than Boost is for C++?
<GaryOak_> as much as C++ is talked about, I don't know anything about it, it was my first language from a book when I was 16
sinkensabe has joined #ruby
<GaryOak_> on the Bloodshed Dev C++ Compiler
Lucky__ has joined #ruby
<eam> shevy: boost is even bigger after you compile it ...
<havenwood> GaryOak_: Borland C++ \o/
<GaryOak_> havenwood: :)
lidenskap has quit [Remote host closed the connection]
<GaryOak_> oh the memory errors
<shevy> eam lol
baweaver has joined #ruby
<Ropeney> shevy: no dont add 00 to c
<mwlang> Borland C++ Builder, to be precise. :-)
<eam> C++ marries the safety of a low level language with the structural complexity of a high level language
<eam> shevy: not kidding btw
<mwlang> “safety of a low level language”….what the heck is that!?
<havenwood> mwlang: Dangling pointers and buffer overflows.
<eam> boost in compiled form is around a gig or two, depending on if you have MT/non-MT
<eam> mwlang: that's the joke
fschuindt has quit [Ping timeout: 258 seconds]
nobitanobi has quit [Remote host closed the connection]
<shevy> wow
<eam> it's the intersection of all undesirable things
nobitanobi has joined #ruby
<mwlang> eam: I was like, “if somebody actually advertised that, they’re really drinkin’ the koolaid"
kbarry has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Ping timeout: 256 seconds]
nobitanobi has quit [Remote host closed the connection]
<mwlang> all I know is I like having curb-side garbage collector I almost never see nor have to put the trash out to the curb myself.
blackmesa has quit [Quit: WeeChat 1.1.1]
dh64 has quit [Quit: Konversation terminated!]
<eam> mwlang: dunno, I kinda don't like it when the garbagemen evict everyone from the city periodically while they do their trash runs
<eam> I'd rather put the trash on the curb, personally, and just have a system that makes sure no one litters
joelataylor has joined #ruby
Soda has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
Cust0sLim3n has joined #ruby
devoldmx has joined #ruby
vasilakisfil has quit [Ping timeout: 265 seconds]
<cosmicfires> how do I cast a string to an integer in rugy?
tacotaco_ has quit [Ping timeout: 272 seconds]
tacotaco_ has joined #ruby
<drocsid> Is the discussion in this article still relevant? http://tech.natemurray.com/2007/03/ruby-shell-commands.html
kbarry has joined #ruby
tuelz has quit [Ping timeout: 244 seconds]
<pipework> cosmicfires: Has google failed you?
<cosmicfires> no I was too lazy
nobitanobi has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
<drocsid> I.E. do backticks now return stdout stderr, etc?
<pipework> That's unfortunate. Perhaps someone here is in a mood to service your laziness.
AlphaAtom has joined #ruby
<cosmicfires> if I use .to_i I get this error
<cosmicfires> ./time_example_1.rb:56:in `+': can't convert String into an exact number (TypeError)
<drocsid> do I still need to use popen4 to get exit status and STDERR or whatever it says in the article, or is that included somewhere in the standard library
einarj_ has quit [Read error: Connection reset by peer]
mistermo_ has joined #ruby
einarj has joined #ruby
Deck` has quit [Ping timeout: 256 seconds]
ebonics has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
paulcsmith has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
ghostmoth has quit [Quit: ghostmoth]
<shevy> drocsid `` will only return the result from that external command being run
<bricker> drocsid: the article explains how you can get exit status, stderr can be captured by routing it to stdout
mistermo_ has quit [Ping timeout: 240 seconds]
<shevy> result = `ls` will for instance yield you a String with \n newlines
snockerton has quit [Quit: Leaving.]
roolo_ has quit [Remote host closed the connection]
<shevy> you can try to capture more of course via `` too
<shevy> result = `ls 2>&1`
crazydiamond has quit [Ping timeout: 255 seconds]
<shevy> I think I use the above for programs that may not exist on some other machine
roolo has joined #ruby
roolo has quit [Remote host closed the connection]
snockerton has joined #ruby
mistermocha has joined #ruby
BTRE has quit [Ping timeout: 250 seconds]
<havenwood> drocsid: Does stdlib Open3 suffice for what you're doing?
dfinninger has quit [Remote host closed the connection]
soulcake has quit [Ping timeout: 276 seconds]
Guest1421 has joined #ruby
<havenwood> drocsid: it has stdout and stderr streams merged or separate and a wait thread for exit status
mistermo_ has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
einarj has quit [Remote host closed the connection]
valetudo has quit [Remote host closed the connection]
<havenwood> drocsid: But to answer your question, no it's no longer relevant. All supported Rubies have an Open3 that supports exit status.
<havenwood> 1.8 is dead!
<mwlang> long live 1.8
diegoviola has quit [Quit: WeeChat 1.1.1]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 276 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
yqt has quit [Ping timeout: 272 seconds]
soulcake has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
diegoviola has joined #ruby
Deck` has joined #ruby
<drocsid> can I import a ruby program into irb? if so, how?
<shevy> the last non-encoding ruby!
<shevy> drocsid you can use load() and require()
<drocsid> just import '/path/to/rubyfile.rb' ?
<shevy> we have no import
<shevy> are you from python :)
casadei_ has quit [Remote host closed the connection]
<drocsid> i used python before this way
<shevy> hehe
<shevy> shshs Shshs hsshshs
<drocsid> load '/path/to/rubyfile.rb' ?
<shevy> well
<shevy> the above, try: require_relative rather than load
<shevy> if it is a gem, then this will work:
<shevy> require 'name_of_gem'
<pipework> drocsid: require and load are your options. They should have ample information in google if you should be so inclined.
<shevy> you load from the PATH
<drocsid> thanks
<shevy> I think it is ... $! or so
Igorshp has joined #ruby
<shevy> hmm
d10n-work has quit [Quit: Connection closed for inactivity]
<shevy> >> $LOAD_PATH
<ruboto> shevy # => ["/execpad/interpreters/ruby-2.2.0/lib/ruby/site_ruby/2.2.0", "/execpad/interpreters/ruby-2.2.0/lib/ ...check link for more (https://eval.in/352190)
<pipework> $: actually
<shevy> drocsid yeah I think it is $LOAD_PATH
<shevy> I can never remember those weird short $ cuts
mostlybadfly has joined #ruby
rahult has joined #ruby
mostlybadfly has left #ruby [#ruby]
Guest11139 has quit [Ping timeout: 264 seconds]
<GaryOak_> gosh the sequel gem is just so excellent
rehat has quit [Remote host closed the connection]
<mistergibson> sequel rocks
baweaver has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
idafyaid has joined #ruby
Mohan has joined #ruby
qwertme has joined #ruby
jackjackdripper has joined #ruby
Mohan is now known as Guest86229
Igorshp has quit [Ping timeout: 246 seconds]
<mwlang> mistergibson: +1
<Radar> shevy: hi
<Radar> shevy: Did you see my memoserv message?
nobitanobi has quit [Remote host closed the connection]
<mwlang> I use sequel when I have to push large volumes of data around. It’ll do the job just about as fast as Ruby is gonna do it.
snockerton has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 256 seconds]
<pipework> Mmm, I'm a fan of the sequel, but just haven't done enough with it to engage in a debate about its merits.
longfeet has joined #ruby
<GaryOak_> the docs are awesome, and you can read the code when you need to, and there is DBMS specific support
<mwlang> the number one merit, IMHO, is large, complex SQL written entirely in Ruby.
nanoyak has joined #ruby
<mistergibson> mwlang: I agree - it makes sql truly easy
<mistergibson> and you can always DB.run("") straight raw sql if you have to
_djbkd has joined #ruby
<mwlang> mistergibson: yeah, that actually made it easy to start using Sequel until I learned it well enough to write the whole thing in Ruby
<pipework> I can generally accomplish the same in activerecord world.
<pipework> But I fundamentally disagree with it so much.
paulcsmith has quit [Quit: Be back later ...]
paulcsmith has joined #ruby
<mwlang> pipework: what about a query like this? https://gist.github.com/mwlang/a4b77f557dd0bb216e75
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
<pipework> mwlang: Some of it would likely be strings, but a lot of the methods, the ones on the first level of indentation, are all supported.
<pipework> I don't know about case or as.
<pipework> Those would likely be strings, but you have some strings of partially valid SQL statements in your code.
<mwlang> pipework: yeah, I had to drop to strings as I did on lines 15 and 16…or rather, I just had to get it done so I did it the fastest way I could to finish it.
<mwlang> but that’s what makes Sequel shine in my book.
Cubix_ has joined #ruby
data-cat has joined #ruby
<data-cat> Noob here, what is the difference between the variables `foo` and `@foo`? I haven't been able to google this properly.
<pipework> data-cat: one might be a local and the other is an instance variable, most likely.
<mwlang> data-cat: google ruby variable scopes
<pipework> data-cat: Assuming the simplest case, the first is a local variable, the other is an instance variable.
paulcsmith has quit [Ping timeout: 256 seconds]
<pipework> That should be enough to go search for more info. I would suggest any of the ruby primer-style resources.
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<shevy> Radar not sure what memoserv is, but I think you may refer to a message in regards to the guy that was banned for trolling?
jackjackdripper has quit [Quit: Leaving.]
_djbkd has quit [Remote host closed the connection]
<pipework> shevy: /msg memoserv help
<Radar> shevy: yes
Cubix_ has quit [Read error: Connection reset by peer]
<Radar> shevy: I am not unbanning AirStar.