dfockler has quit [Remote host closed the connection]
QKO has joined #ruby
rbennacer has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
CloCkWeRX1 has joined #ruby
bronson has quit [Remote host closed the connection]
Azure has quit [Max SendQ exceeded]
icarus has quit [Quit: Lost terminal]
CloCkWeRX has quit [Ping timeout: 264 seconds]
rehat has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
Willian|i7 has joined #ruby
William|i7 has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 272 seconds]
framling has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
Cache_Money has joined #ruby
gusrub has quit [Quit: Leaving]
jfarmer has joined #ruby
Azure has joined #ruby
Cache_Money has quit [Ping timeout: 256 seconds]
CloCkWeRX1 has quit [Ping timeout: 252 seconds]
dseitz has joined #ruby
rbennacer has joined #ruby
snockerton has quit [Quit: Leaving.]
balazs has joined #ruby
sevenseacat has joined #ruby
ruby-lang155 has joined #ruby
balazs has quit [Remote host closed the connection]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 250 seconds]
ruby-lang155 has quit [Client Quit]
blaines has joined #ruby
CloCkWeRX has joined #ruby
chipotle has joined #ruby
jhooker has joined #ruby
emptyflask has quit [Remote host closed the connection]
phoo1234567 has quit [Quit: Leaving]
werelivinginthef has quit [Remote host closed the connection]
chipotle has quit [Client Quit]
blaines has quit [Read error: Connection reset by peer]
JoshuaPaling has joined #ruby
gambl0re has quit [Ping timeout: 246 seconds]
JoshuaPaling has quit [Client Quit]
fabrice31 has joined #ruby
workmad3 has joined #ruby
casadei_ has quit [Remote host closed the connection]
genpaku has quit [Ping timeout: 265 seconds]
thiagovsk has joined #ruby
genpaku has joined #ruby
CloCkWeRX1 has joined #ruby
CloCkWeRX1 has left #ruby [#ruby]
Rollabunna has joined #ruby
Muhannad has quit [Ping timeout: 250 seconds]
finisherr has quit [Quit: finisherr]
CloCkWeRX has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
shadoi has joined #ruby
<ght>
Question: I am having one hell of a time getting API calls to a provider that uses XMLRPC formatting to work. I can successfully retreive the "code", use the code to get an initial authorize_key, then use that authorize key to attain a new one and new refresh_key. That's all working properly, and all with RestClient.
<ght>
I've called them successfully to this provider for years using their legacy API and xmlrpc/client.
<ght>
My question is, does anyone have an example of calling any API method to any provider that uses oauth2 and xmlrpc, using RestClient or XMLRPC::client.new2() or .new()?
Rollabunna has quit [Ping timeout: 248 seconds]
Azure has quit [Max SendQ exceeded]
Igorshp has quit [Remote host closed the connection]
bf4 has joined #ruby
Azure has joined #ruby
zacstewart has joined #ruby
oo_ has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 252 seconds]
irle has joined #ruby
greenbagels has quit [Quit: Leaving]
rodfersou has joined #ruby
William|i7 has quit [Client Quit]
chipotle has quit [Quit: cheerio]
balazs has quit [Ping timeout: 276 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
QKO has quit [Remote host closed the connection]
hmsimha_ has joined #ruby
hmsimha__ has joined #ruby
woodruffw has quit [Quit: And then he took off.]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
jcdesimp has quit [Quit: Leaving...]
QKO has joined #ruby
woodruffw has joined #ruby
j4cknewt has quit [Remote host closed the connection]
brendan- has joined #ruby
danman has quit [Quit: danman]
<brendan->
hi ya'll, if i need to execute a shell command via a ruby script (iptables addition), etc. what would be the recommended method or gem to use?
<brendan->
i would like to capture the output & the exit status
QKO has quit [Remote host closed the connection]
<brendan->
to validate that it was successful
<al2o3-cr>
brendan-: open3
avahey has quit [Quit: Connection closed for inactivity]
irle has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
jack_rabbit has joined #ruby
Muhannad has joined #ruby
QKO has joined #ruby
<brendan->
al2o3-cr: gotcha
<brendan->
ty
<al2o3-cr>
brendan-: Open3.popen3(command) {| i,o,e,t| if t.exitstatus.zero? ...}
bkxd has joined #ruby
<brendan->
gotcha
<brendan->
awesome
<brendan->
ty again
<al2o3-cr>
brendan-: np
j4cknewt has joined #ruby
<al2o3-cr>
or capture2/3
zendrix has quit [Ping timeout: 248 seconds]
<al2o3-cr>
depending on what you wanna do :)
zacstewart has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
<al2o3-cr>
?Open3#popen
<ruboto>
I don't know anything about Open3
<al2o3-cr>
?Open3#popen3
<ruboto>
I don't know anything about Open3
irle has joined #ruby
jpfuentes2 has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.2]
rcvalle has quit [Quit: rcvalle]
hotpancakes has quit [Ping timeout: 246 seconds]
ebbflowgo has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
a346 has joined #ruby
bronson has joined #ruby
TiKo has joined #ruby
<TiKo>
whAT IS ruby?
irle has quit [Ping timeout: 252 seconds]
<Ropeney>
a nice rock
<havenwood>
TiKo: A programming language.
<TiKo>
[havenwood] is similar to?
towski_ has quit [Remote host closed the connection]
Marisa_ has quit [Ping timeout: 264 seconds]
amclain has joined #ruby
lolmaus has joined #ruby
crdpink has quit [Quit: q term]
Muhannad has quit [Ping timeout: 272 seconds]
<havenwood>
TiKo: "Ruby is an interpreted scripting language for quick and easy object-oriented programming. It has many features to
<havenwood>
process text files and to do system management tasks (like in Perl). It is simple, straight-forward, and extensible."
bronson has quit [Ping timeout: 244 seconds]
<havenwood>
TiKo: ^ Check: man ruby
Alayde has quit [Ping timeout: 272 seconds]
<al2o3-cr>
havenwood: what if ruby is not installed or he/she is using windows?
balazs has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
casadei_ has joined #ruby
doctorly has quit [Ping timeout: 246 seconds]
mtx_init_ has joined #ruby
mtx_init_ has left #ruby ["WeeChat 1.0.1"]
dgutierrez1287 has quit [Remote host closed the connection]
houhoulis has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
pothibo has joined #ruby
zacstewart has quit [Remote host closed the connection]
pothibo has quit [Client Quit]
ryba has joined #ruby
scottschecter has joined #ruby
jesterfraud has quit [Read error: Connection reset by peer]
jesterfraud has joined #ruby
rodfersou has quit [Quit: leaving]
balazs has joined #ruby
fabrice31 has joined #ruby
workmad3 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
dented42 has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
<twistedpixels>
can someone ELI5 gsub vs gsub!
baweaver has joined #ruby
d1ngell has joined #ruby
RegulationD has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<sevenseacat>
gsub! is in place and will modify whatever you call it on. gsub will return the modified value.
<C0deMaver1ck>
this is true for most methods that end with a bang
<sevenseacat>
this is explained in the docs.
lessless has joined #ruby
<twistedpixels>
oh okay, that makes sense thank you!
Rollabunna has quit [Ping timeout: 248 seconds]
dgutierrez1287 has joined #ruby
jtdoncas has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
ebbflowgo has left #ruby [#ruby]
govt has joined #ruby
<govt>
I was watching John Worthington of Perl 6 notoriety the other day and he was talking about designing method-first and letting the classes be derived from the flow of method calls. I'm having trouble with OO design principles, i can program just fine but I don't know how to THINK in oo. How do I get past this?
dorei has quit []
mahmoudmahfouz has joined #ruby
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat>
the simple answer is probably 'practice'
jesterfraud has quit [Read error: No route to host]
_jesterfraud has joined #ruby
<sevenseacat>
I have a hard time not thinking in OO (which makes learning functional programming fun)
mahmoudmahfouz has quit [Max SendQ exceeded]
pepperbreath has joined #ruby
nfk has quit [Quit: yawn]
phutchins has quit [Ping timeout: 265 seconds]
allomov has joined #ruby
<govt>
i love fp, but when I look at other peoples code i just feel lost sometimes and I dont know how to write my code so that when other people read it they dont feel lost
chipotle has joined #ruby
<sevenseacat>
I think thats a bit natural with any kind of evolved design - the first version was probably simple enough for anyone to jump in and understand, but as the functionality and complexity grows, it naturally gets harder to understand
dgutierrez1287 has quit [Remote host closed the connection]
fromthedepths has joined #ruby
dgutierrez1287 has joined #ruby
balazs has quit [Remote host closed the connection]
allomov has quit [Ping timeout: 264 seconds]
rubie has quit [Remote host closed the connection]
hotpancakes has joined #ruby
mcclurmc has quit [Remote host closed the connection]
Cache_Money has joined #ruby
<govt>
thats tru
mahmoudmahfouz has joined #ruby
Spami has joined #ruby
zacstewart has joined #ruby
mistermocha has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
RegulationD has joined #ruby
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 276 seconds]
dstarh has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
bf4 has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
mistermocha has joined #ruby
mcclurmc has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mcclurmc has quit [Remote host closed the connection]
mistermocha has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
minmax has joined #ruby
chinmay_dd has joined #ruby
kartouch has quit [Ping timeout: 272 seconds]
zacstewart has quit [Ping timeout: 256 seconds]
bf4 has quit [Ping timeout: 272 seconds]
zacstewart has joined #ruby
mcclurmc has joined #ruby
Narzew has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 264 seconds]
scx_ has joined #ruby
serivich has joined #ruby
scx has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
hahuang65 has joined #ruby
sbhatore1 has joined #ruby
braincrash has quit [Quit: bye bye]
sbhatore has quit [Ping timeout: 246 seconds]
rubie has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
darkf has joined #ruby
mcclurmc has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
braincrash has joined #ruby
s2013 has joined #ruby
MasterPiece has quit [Quit: Leaving]
zacstewart has joined #ruby
jackjackdripper has joined #ruby
oo_ has joined #ruby
cmisenas has quit [Quit: cmisenas]
thiagovsk has quit [Quit: Connection closed for inactivity]
sbhatore has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
sbhatore1 has quit [Ping timeout: 264 seconds]
towski_ has joined #ruby
Cache_Money has quit [Ping timeout: 255 seconds]
acrux09 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
ebbflowgo has joined #ruby
mcclurmc has quit [Remote host closed the connection]
davedev24_ has quit []
lavros has quit [Ping timeout: 252 seconds]
mistermocha has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
bf4 has joined #ruby
emptyflask has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
yfeldblum has quit [Remote host closed the connection]
sbhatore1 has joined #ruby
gix has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<meatchicken>
Easy way to pair each array element with every other? [1,2,3,4,5] -> 1*2,1*3,1*4,1*5,2*3,2*4 etc
jackjackdripper has quit [Quit: Leaving.]
<meatchicken>
what is this "equation" called
charliesome has joined #ruby
j4cknewt has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
<meatchicken>
mozzarella, nicely done
<meatchicken>
Thanks :)
<mozzarella>
np
danman has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
lavros has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
mcclurmc has joined #ruby
lavros has joined #ruby
oo_ has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
MrJiks_ has quit [Quit: WeeChat 1.1.1]
sbhatore has joined #ruby
yfeldblum has quit [Read error: No route to host]
dgutierrez1287 has quit [Ping timeout: 255 seconds]
sbhatore1 has quit [Ping timeout: 248 seconds]
yfeldblum has joined #ruby
s2013 has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
rbennacer has quit [Remote host closed the connection]
Oka has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
mcclurmc has quit [Remote host closed the connection]
Lucky___ has joined #ruby
d1ngell has quit [Quit: Leaving]
Oka has quit [Remote host closed the connection]
sargas has joined #ruby
charliesome has quit [Quit: zzz]
serivich has quit [Ping timeout: 255 seconds]
haroldwu has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
Oka has joined #ruby
serivich has joined #ruby
TiKo has quit [Quit: • IRcap • 8.72 •]
geilt has joined #ruby
kfpratt has quit [Remote host closed the connection]
nyanz has joined #ruby
geilt has quit [Client Quit]
dionysus69 has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ryba has quit [Ping timeout: 255 seconds]
doctorly has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
robbyoconnor has joined #ruby
kfpratt has joined #ruby
rrichardsr3 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mcclurmc has joined #ruby
p1k has quit [Ping timeout: 264 seconds]
arescorpio has quit [Quit: Leaving.]
fabrice31 has quit [Ping timeout: 252 seconds]
MacDaddy has quit [Read error: Connection reset by peer]
psy_ has quit [Quit: Leaving]
psy has joined #ruby
MacDaddy has joined #ruby
psy has quit [Max SendQ exceeded]
s2013 has joined #ruby
psy has joined #ruby
Al3ks has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
bronson has joined #ruby
oo_ has joined #ruby
michael_mbp has joined #ruby
towski_ has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
p1k has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bronson has quit [Ping timeout: 272 seconds]
chinmay_dd has quit []
oo_ has quit [Ping timeout: 246 seconds]
pgatt has quit [Quit: Connection closed for inactivity]
Soda has quit [Remote host closed the connection]
yayfoxes has joined #ruby
startupality has joined #ruby
astrobunny has joined #ruby
Kryptonical has joined #ruby
startupality has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cheerio]
jfarmer has quit []
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sbhatore has quit [Quit: sbhatore]
ruby-lang068 has joined #ruby
Al3ks has joined #ruby
bluOxigen has joined #ruby
LiquidInsect has quit [Ping timeout: 252 seconds]
p1k has quit [Ping timeout: 256 seconds]
s2013 has joined #ruby
doctorly_ has joined #ruby
zacstewart has joined #ruby
Rollabunna has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
ruby-lang068 has quit [Ping timeout: 246 seconds]
juiko has joined #ruby
psy has quit [Disconnected by services]
psy_ has joined #ruby
mcclurmc has quit [Remote host closed the connection]
p1k has joined #ruby
dgutierrez1287 has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
mcclurmc has joined #ruby
oo_ has joined #ruby
j4cknewt has joined #ruby
whiteline has quit [Ping timeout: 255 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
dgutierrez1287 has quit [Ping timeout: 276 seconds]
Kryptonical has quit [Read error: Connection reset by peer]
peter_paule has joined #ruby
jack_rabbit has quit [Read error: Connection reset by peer]
LiquidInsect has joined #ruby
doctorly is now known as Guest94516
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
LiquidIn1ect has joined #ruby
a346 has quit [Quit: a346]
LiquidInsect has quit [Ping timeout: 264 seconds]
zacstewart has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
karols has joined #ruby
mcclurmc has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
keen___________6 has joined #ruby
nobitanobi has joined #ruby
aryaching has joined #ruby
keen___________5 has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<giuseppesolinas>
Hello, I'm having issues with CKEditor.js. Issue is I hate its interface, I want to be able to use custom selects, buttons, links and other html elements to control text formatting. Does anybody know how to do this?
j4cknewt has quit [Remote host closed the connection]
EllisTAA has joined #ruby
bf4 has quit [Ping timeout: 256 seconds]
EllisTAA has quit [Client Quit]
danman has quit [Quit: danman]
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
peter_paule has quit [Ping timeout: 250 seconds]
casadei_ has quit [Remote host closed the connection]
kfpratt has quit [Remote host closed the connection]
revath has joined #ruby
yfeldblum has joined #ruby
bf4 has joined #ruby
baweaver has joined #ruby
symm- has quit [Ping timeout: 252 seconds]
Melite has joined #ruby
rubie has quit [Remote host closed the connection]
Kryptonical has joined #ruby
yfeldblu_ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
sfarley has joined #ruby
sevenseacat has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Ping timeout: 264 seconds]
revath has left #ruby [#ruby]
Xeago has joined #ruby
GnuYawk has quit [Quit: WeeChat 1.0]
Xeago has quit [Remote host closed the connection]
mary5030 has joined #ruby
Spami has joined #ruby
sfarley has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 250 seconds]
mary5030 has quit [Ping timeout: 248 seconds]
jfarmer has joined #ruby
juiko has quit [Remote host closed the connection]
dhjondoh has joined #ruby
p1k has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
Rollabunna has joined #ruby
danman has joined #ruby
danman has quit [Client Quit]
lkba has joined #ruby
dhjondoh has quit [Client Quit]
grey_beard has joined #ruby
kp666 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 248 seconds]
p1k has joined #ruby
whiteline has joined #ruby
<grey_beard>
So anyone feel like talking about sort_by?
Musashi007 has joined #ruby
<jfarmer>
grey_beard What about it? :)(
<jfarmer>
()()()( parens party
chipotle has quit [Quit: cheerio]
ngsw has joined #ruby
<jfarmer>
grey_beard ?!?!?
rubie has joined #ruby
<jfarmer>
you tease
chipotle has joined #ruby
<grey_beard>
I don't quit understand the arguments part. For example frequencies.sort_by { |k, v| v } was given, what exactly is the |k,v| v indicating
dhjondoh has joined #ruby
<Aeyrix>
key, value
<jfarmer>
grey_beard Can you articulate your understanding of blocks?
<Aeyrix>
>> example_hash = {"key": "value"}; p example_hash['key']
<grey_beard>
Well so far the only blocks I've learned are code blocks.
dgutierrez1287 has joined #ruby
yeticry has quit [Ping timeout: 265 seconds]
<jfarmer>
grey_beard Can you give an example of what you'd call a "code block" in Ruby?
scx_ is now known as scx
yeticry has joined #ruby
Eiam_ has joined #ruby
<jfarmer>
grey_beard Use a service like gist.github.com to type/paste in some code and highlight the part you'd identify as a "code block."
<grey_beard>
{ } and the do and end delimiters.
<jfarmer>
grey_beard Ok, great.
<jfarmer>
grey_beard You've seen something like "[1,2,3].each { |num| puts(num) }" yeah?
chipotle has quit [Ping timeout: 256 seconds]
<jfarmer>
As in, that code doesn't make you go "WTF?!"
<baweaver>
it makes me go wtf
<baweaver>
parens on puts?
<baweaver>
how could you ;-;
<jfarmer>
heresy
p1k has joined #ruby
<grey_beard>
Yes I can understand what happens.
<jfarmer>
grey_beard Ok, and the "{ |num| ....}" bit is what you'd call a "code block"?
revath1 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<grey_beard>
Yes from the tutorial I've read.
dgutierrez1287 has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Remote host closed the connection]
<jfarmer>
Part of what I'm trying to do is make sure we're talking about the same thing. Apologies if it seems pedantic, but it's easy to talk about something for 15 minutes only to realize we're talking about different things. :)
<jfarmer>
grey_beard What role is "{ |num| puts(num) }" playing in that chunk of code?
_ht has joined #ruby
lxsameer has joined #ruby
<jfarmer>
In your mind, I mean? What picture do you have in your head?
<jfarmer>
grey_beard If this doesn't seem like I'm answering your question it's because your question doesn't really have anything to do with sort_by *per se*
<grey_beard>
It's fine my understanding it pretty basic if its interchangeable with parameters or arguments my apologies I don't want any ambiguity from using the wrong language.
Ox0dea has joined #ruby
<jfarmer>
grey_beard No, don't take me as critiquing your usage.
<baweaver>
Ox0dea: do you come bearing gifts of perlisms?
<jfarmer>
Your usage is fine, although you'd just call it a "block" and not a "code block"
<Ox0dea>
baweaver: Alas, I've come only to assist grey_beard in his understanding of blocks.
<jfarmer>
haha
<Ox0dea>
>> %w[Ruby is awesome].sort_by { |word| word.length }
<jfarmer>
1. Blocks are a special kind of method argument in Ruby and every method can accept one, even if they don't do anything with it.
<Ox0dea>
jfarmer: I think the #puts example is not great; it involves IO and doesn't really demonstrate how blocks are great for customizing behavior.
<jfarmer>
gah
<Ox0dea>
I'll leave you to it, then.
<jfarmer>
Ox0dea Alas, I'm constrained by the format of IRC.
konsolebox has quit [Quit: Leaving]
<jfarmer>
2. Inside, methods can call the block (almost as if the block were a method itself)
konsolebox has joined #ruby
<grey_beard>
Well maybe I backtrack and reformulate my question. So from what others said frequencies.sort_by { |k, v| v } the k and v indiciate |key, value| value, and there is nothing special about the k,v they are just convenient letters.
mcclurmc has joined #ruby
emptyflask has quit [Remote host closed the connection]
<jfarmer>
3. The analogy is that if a method looks like "def whatever(a, b, c) ... end" then blocks look like "{ |a, b, c| ... }"
<sphex>
sort_by only passes one argument to its block though
<jfarmer>
grey_beard The role a block plays in the overall code depends on the method you're passing the block to.
<jfarmer>
sphex Stop.
<jfarmer>
These technical details are correct but really confusing.
<jfarmer>
grey_beard Do you know how to iterate over a Hash in Ruby?
<jfarmer>
Using each?
<sphex>
uh. I'm sorry, I'll guess I'll hold my comments for the end. :p
<grey_beard>
So if I understand the frequencies.sort_by { |indicates key, indicates value| this tell to sort by key or value }
<jfarmer>
grey_beard If you can follow (1), (2), and (3) of what I just said then Ox0dea's is the one to look at now.
<Aeyrix>
#ruby helping new programmers learn Ruby in a nutshell.
<jfarmer>
grey_beard Stop
<jfarmer>
grey_beard Hold up.
workmad3 has quit [Ping timeout: 264 seconds]
<jfarmer>
grey_beard Let's understand a simpler example first.
<jfarmer>
There are three moving parts here: (1) the block, (2) sort_by, (3) and the fact that you're calling sort_by on a Hash
oo_ has quit [Remote host closed the connection]
Kryptonical has quit [Read error: Connection reset by peer]
<jfarmer>
If you're not comfortable with (1) and (2) then it will be easiest to understand them if we understand how sort_by works with something like an Array
<grey_beard>
Yes it does, but im following you now.
<jfarmer>
grey_beardy Blocks allow us to pass in behavior (encapsulated as a block) into another method. In the case of sort_by, the block is used to determine how to sort each thing in whatever collection you're trying to sort.
roolo has joined #ruby
yardenbar has joined #ruby
oo_ has joined #ruby
<grey_beard>
So from your example it assumes you want to sort into ascending order?
<jfarmer>
grey_beard Yes.
<jfarmer>
Just like:
<grey_beard>
So that is the default and you would need to change the block if you wanted descending.
<jfarmer>
>>> [10, 7, -12, 3].sort
<ruboto>
jfarmer # => /tmp/execpad-b4af4cd81bb8/source-b4af4cd81bb8:2: syntax error, unexpected '>' ...check link for more (https://eval.in/389673)
<jfarmer>
I can't really think of a language where sort order isn't ascending by default. That's a pretty universal thing.
<jfarmer>
I think of it less as "sorting" and more as "ordering according to the usual order."
<jfarmer>
And numbers are ordered by their order (left to right) on the number line
<grey_beard>
Well makes sense now that I know it assumes ascending.
<jfarmer>
grey_beard Great.
chinmay_dd has joined #ruby
<jfarmer>
So, in general:
<grey_beard>
Well thank you kindly for all the help everybody.
<jfarmer>
1. Methods that accept a block do so to allow the programmer to "pass in" custom behavior
<jfarmer>
2. How that behavior is used depends on the method; in the case of "each" it's used to determine what is to be done with each thing in the collection; in the case of "sort_by" it's used to determine the value by which to sort each thing in the collection
codecop has joined #ruby
<jfarmer>
3. When you're dealing with a Hash, the block will be given each (key, value) pair as an argument
<jfarmer>
And I'd say like 80% of the time Ruby developers label the arguments something like "{ |k, v| ... stuff ...}"
<grey_beard>
Oh I see , I think because it looked foreign compared to the one I was being shown for hashes it threw me off.
LiquidIn1ect has quit [Ping timeout: 264 seconds]
<jfarmer>
grey_beard Indeed!
<jfarmer>
Be sensitive to that as you're learning.
sandstrom has joined #ruby
rrichard_ has joined #ruby
<jfarmer>
Beginners think that things which look different are different.
<jfarmer>
(In any subject)
<jfarmer>
Easier to catch yourself if you're aware that it's going on, though.
<sphex>
jfarmer: are you an actual teacher?
<jfarmer>
sphex Yes.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bf4 has joined #ruby
Xeago has joined #ruby
<sphex>
is there going to be a test?
<jfarmer>
no
<sphex>
makes sense
<jfarmer>
Although, funny thing: when you try to build a learning environment without tests, it doesn't take long for students to demand them.
eGGsha has joined #ruby
<jfarmer>
"Ugh, fine, I'll give you a test."
ngsw has quit [Read error: Connection reset by peer]
Guest94516 has quit [Ping timeout: 256 seconds]
rrichardsr3 has quit [Ping timeout: 248 seconds]
dented42 has joined #ruby
doctorly_ has quit [Ping timeout: 276 seconds]
rrichard_ has quit [Ping timeout: 264 seconds]
ngsw has joined #ruby
stan has joined #ruby
<jfarmer>
grey_beard If you want a test, here it is: go through each method in the list of methods on the Enumerable page I linked to above. For each method, look at an example of its usage but don't read the description. Make an educated guess about what the particular method does and write it down (actually write it). Read the description and compare your answer to what's written on that page.
<jfarmer>
DIY testing
<jfarmer>
college board, hire me
<jfarmer>
grey_beard That's a good way to both familiarize yourself with all the Enumerable methods and to get comfortable with the (technical) language used to describe what they do.
<jfarmer>
The key part is the comparison between your own thoughts and what's on the page, though, so don't just read the descriptions and call it a day. :)
<grey_beard>
I will, but it will lead me to more questions probably and back here as well.
alex88 has joined #ruby
<jfarmer>
grey_beard That's good.
ebbflowgo has quit [Read error: Connection reset by peer]
<sphex>
jfarmer: do you teach ruby a lot? is it in a public school? (just wondering where and how ruby gets taught "formally" like that)
<jfarmer>
Better to be confused and have too many questions than be confused and have too few.
qiukun has joined #ruby
<jfarmer>
sphex Yes and yes (a little).
ebbflowgo has joined #ruby
gauke has joined #ruby
<jfarmer>
sphex I volunteer through some after-school programs to teach at public schools.
<jfarmer>
I also make my living teaching it (slash, programming in general), mostly to adults.
<sphex>
ah ok
mcclurmc has quit [Remote host closed the connection]
<jfarmer>
I wouldn't call how I teach very formal, at least relative to most classrooms. A lot of my public school students are at a loss at first about what to do.
<jfarmer>
After a few fundamentals are shored up, I just try to maximize the amount of feedback they get on their code. "Make a plan, code it as best as you can, get feedback quickly, incorporate, repeat."
<jfarmer>
"But what am I supposed to do?"
<sphex>
prolly impatient to make their killer rails app too
<jfarmer>
Yes, some students for sure.
alex88 has quit [Ping timeout: 256 seconds]
<sphex>
"Alright, blocks, got it. done. Is this how I geolocate and mashup?"
<jfarmer>
Haha yes.
<jfarmer>
If I'm doing a good job the dots are connected, but some students won't give an inch.
<jfarmer>
I'll say this is more true of adults than children.
sargas has quit [Quit: Leaving]
emilkarl has joined #ruby
<sphex>
I'm guessing most of these students are fairly new to programming? pretty good choice of first language, eh. :p
Jiks has joined #ruby
Jiks is now known as MrJiks
Rollabunna has joined #ruby
<jfarmer>
The public school students often have a little prior exposure.
mcclurmc has joined #ruby
<jfarmer>
The most common languages seem to be Python and Java.
<jfarmer>
(Largely because AP Computer Science uses Java.)
<jfarmer>
You do see fun mistakes from students coming from Java at first, things like...
<sphex>
baweaver: my school had Visual Basic. I don't think I'll ever overcome the early brain damages. :/
<jfarmer>
I'm "whatever" about Java as a production language, but I think it's awful as a teaching language.
<baweaver>
def add(x:Int, y:Int):Int = x + y
<jfarmer>
The main thing you want to get out of students' head early on is the idea that learning to program is like learning a bunch of magic spells called "programs."
<jfarmer>
And an experienced programmer is just someone who's learned 10,000 magic spells or whatever.
fromthedepths1 has joined #ruby
<jfarmer>
But right off the bat, Java is filled with things like "public static void main(...)"
<sphex>
hrm. supposedly that'
<sphex>
oops. that's how they teach it in India
<jfarmer>
"Don't worry about those things for now. *waves hands*"
endash has quit [Quit: endash]
njs126 has quit [Ping timeout: 276 seconds]
<jfarmer>
Some students do have an insane capability for memorizing that stuff.
rrichardsr3 has joined #ruby
intyl has quit [Ping timeout: 246 seconds]
<jfarmer>
(Often the ones who struggle the most, in my experience.)
Rollabunna has quit [Ping timeout: 248 seconds]
fromthedepths has quit [Quit: Leaving.]
<jfarmer>
The quantity and detail at which they can memorize things blows my mind.
<baweaver>
If I had to pick a learning language it'd probably be lisp
<baweaver>
or scheme
<baweaver>
eliminate all concerns of syntax
govt has quit [Quit: Connection closed for inactivity]
<Ox0dea>
MIT agreed with you for a long time.
<baweaver>
just focus on how to build from there.
<baweaver>
now they do python
<baweaver>
SICP
<jfarmer>
My alma mater uses Scheme as their intro language.
<jfarmer>
(University of Chicago)
<sevenseacat>
at university we covered C, Haskell, Java and Prolog, in that order. mostly C though.
last_staff has quit [Quit: last_staff]
<jfarmer>
But the CS department is basically an extension of the math department
<shevy>
baweaver but you have to use a lot of () in lisp!
qiukun has quit [Quit: qiukun]
<jfarmer>
hah
<baweaver>
the people who care about that are ironically from Java
mcclurmc has quit [Remote host closed the connection]
<baweaver>
where they have a lot worse syntax barriers to deal with routinely
<sevenseacat>
I also did electives that dabbled in PHP and Python. woo.
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gauke has quit [Quit: gauke]
karols has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grey_beard has quit [Ping timeout: 246 seconds]
lsmola has joined #ruby
grey_bear has joined #ruby
<MrJiks>
Hello there, could you check the response of this url and see if you recognize any specific data format?
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jfarmer>
haha
<jfarmer>
CAN'T DO ANYTHING RIGHT, GEEZ MrJiks!
s2013 has quit [Client Quit]
ngsw has quit [Read error: Connection reset by peer]
<baweaver>
I want to say CSV
<jfarmer>
MrJiks But sorry, no, the format looks totally unfamiliar (and slightly insane) to me
<MrJiks>
baweaver: ya! But what are those ~?
<baweaver>
formatting shenanigans
<MrJiks>
It looks like they did something custom!!
<jfarmer>
Yeah, it might be a generic "delimiter separated value" sort of thing.
mister_solo has joined #ruby
<baweaver>
probably
JohnBat26 has joined #ruby
<MrJiks>
jfarmer: But it looks mized.
<MrJiks>
*mixed
ngsw has joined #ruby
s2013 has joined #ruby
<shevy>
maized!
codecop has joined #ruby
<baweaver>
shevy: well aren't you corny tonight
<MrJiks>
If its helpful, have a look at the site: http://erail.in/
mikecmpbll has joined #ruby
<jfarmer>
MrJiks I agree it doesn't look quite right, but that was my first reaction.
<jfarmer>
But then you try to play "spot the columns" and I don't really see it.
GnuYawk has joined #ruby
s2013 has quit [Client Quit]
<MrJiks>
Try "ERN" and "TVC" for the from and to field to get the data
<MrJiks>
in the site.
mcclurmc has joined #ruby
ta has quit [Remote host closed the connection]
hahuang65 has joined #ruby
dgutierrez1287 has joined #ruby
zacstewart has joined #ruby
<MrJiks>
I just don't understand why people do such text formating!
<Ox0dea>
Job security.
<baweaver>
^
<jfarmer>
haha
<MrJiks>
Ox0dea: :)
gauke has joined #ruby
User458764 has joined #ruby
<MrJiks>
I will have a dirty feel if I did something like this
<baweaver>
Could always ping them and ask what the devil it is
s2013 has joined #ruby
<jfarmer>
MrJiks I had a job once where I had to interact with back-end data from multiple major retailers and it was a similar mess.
<baweaver>
welcome to enterprise quality
amclain has quit [Quit: Leaving]
<jfarmer>
Every retailer had their own arbitrary text data format.
<MrJiks>
baweaver: but what the hell, right? How can someone do this unless they intentionally planned to make it dirty?
<baweaver>
you'd like to believe the best in people
s2013 has quit [Client Quit]
<baweaver>
but there are some who should never be allowed to program
platzhirsch has joined #ruby
<jfarmer>
MrJiks The faulty assumption is likely that the person doing this was thinking about it that deeply. :)
astrobunny has quit [Remote host closed the connection]
<MrJiks>
jfarmer: Haven't these people heard of JSON or is it intentionally done like this?
krz has joined #ruby
<jfarmer>
This is likely older than JSON, but regardless, I just imagine it never entering their heads.
<jfarmer>
It was more like "Oh, need some format, ok, I need to make a format."
<jfarmer>
That's how I imagine it at least.
astrobunny has joined #ruby
<MrJiks>
jfarmer: why does it need deep thought? If have to make an interface, I normally go and see whats there out there that needs to connect to this; isn't thats the simplest thing someone can think?
<baweaver>
probably a COBOL or RPG column dump
<baweaver>
I hate to say it, but welcome to programming
<MrJiks>
Oh okay! baweaver thats exactly what I was thinking!
<baweaver>
I'd have to remember the formatting there
<jfarmer>
MrJiks Likely no.
<baweaver>
check their job postins
<jfarmer>
Is the answer to your question
<baweaver>
they're using asp for that
<MrJiks>
I cannot imagine someone invented a format for this.
zacstewart has quit [Ping timeout: 252 seconds]
<baweaver>
so they at least use .NET
<jfarmer>
MrJiks Well, more I meant they just do whatever is right in front of their face.
Carnage\ has joined #ruby
<jfarmer>
"I'll use Ruby's native serialization format! Solved."
hahuang65 has quit [Ping timeout: 276 seconds]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
<MrJiks>
baweaver: this should some data dump/serialization.
<jfarmer>
next
athos_diddy has quit [Remote host closed the connection]
<baweaver>
though I've seen programmers bad enough that they'll do that
<MrJiks>
Its cannot be something that they invented; thats what I feel.
<jfarmer>
It does seem particularly byzantine, yeah
<MrJiks>
baweaver: really? You mean 1/2 year experienced ones?
<baweaver>
never underestimate a sufficiently lazy and bad programmer
<baweaver>
I've seen a guy with 20+ years experience
<baweaver>
couldn't reverse a string in ruby
athos_diddy has joined #ruby
<MrJiks>
baweaver: this is not about laziness. Its jus dump.
karols has joined #ruby
<MrJiks>
baweaver: what?
<baweaver>
you'd like to think that
revath1 has left #ruby [#ruby]
<MrJiks>
20 years experinece developer who doesn't know how to reverse a string?
<baweaver>
yep
<MrJiks>
*dumb
<baweaver>
without the reverse function, granted
<baweaver>
but still
solars has joined #ruby
<baweaver>
gave the same problem to an intern candidate
<baweaver>
took him 2 minutes
karols has quit [Client Quit]
<jfarmer>
It would be amazing if this were some dump format from a cira-1982 IBM mainframe
codecop has quit [Remote host closed the connection]
karols has joined #ruby
platzhirsch has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Remote host closed the connection]
jimms has joined #ruby
karols has quit [Max SendQ exceeded]
Spami has quit [Read error: Connection reset by peer]
<_mh_>
baweaver: that part I've read yesterday, that's why I assumed it was yours.
<_mh_>
Ox0dea: one hell of a creation.
sevenseacat has quit [Remote host closed the connection]
Spami has joined #ruby
karols has joined #ruby
<Ox0dea>
I'm ashamed of it.
<baweaver>
I'd get bored before I finished something like that
duderonomy has joined #ruby
sevenseacat has joined #ruby
<Aeyrix>
Radar: how busy are you
sandstrom has joined #ruby
<Aeyrix>
like on a scale of "i can help you stop being a moron" to "i'm actually working"
andikr has joined #ruby
karols has quit [Max SendQ exceeded]
<MrJiks>
So, I took a free tier in AWS yesterday. I tried a simple Sinatra Hello WOrld App; it worked internally. But when I tried to access it externally, I wasn't able to. Any idea why?
<Radar>
Aeyrix: I just came back from a walk to the shops and now I'm starting on my next task.
<Aeyrix>
ok, no problem
<Radar>
Aeyrix: what's up?
<Aeyrix>
I just wanted some advice w/ testing for a gem I'm writing.
<Aeyrix>
You know how I am re: testing
karols has joined #ruby
<Aeyrix>
but this is something I want to release.
<_mh_>
Ox0dea: Why would you be ashamed of it? It at shows up creativity and ability to work with obscure code.
<MrJiks>
I have no clue about nginx; its installed and running but I don't know how to see that page outside.
<Radar>
Aeyrix: shoot
<Aeyrix>
Radar: Mainly just a quick run through, tbh.
<Aeyrix>
Hence asking if you're busy instead of just asking the channel. :P
<Radar>
Aeyrix: does it provide a CLI?
<Aeyrix>
no
karols has quit [Max SendQ exceeded]
<Radar>
Then call the methods from the gem using RSpec
<Aeyrix>
ok
<Aeyrix>
any good go-to tutorial for gem r-g-r gem testing
<Aeyrix>
?
<Aeyrix>
tutorial / guide
lkba has quit [Remote host closed the connection]
karols has joined #ruby
<Aeyrix>
whatever
<MrJiks>
Any ideas anybody?
<baweaver>
security groups
vdamewood has joined #ruby
<baweaver>
though I'm probably the only devops / aws person on right now
<MrJiks>
security groups? I have no idea about it; can you give me some pointers to read up on that?
karols has quit [Max SendQ exceeded]
<baweaver>
might be a better idea to ask on the aws channel as well
<MrJiks>
baweaver: my unix knowledge is pretty sloppy
<baweaver>
a security group defines ingress and egress permissions
jzigmund_ has joined #ruby
<Radar>
Aeyrix: Typically I would just generate a spec directory which has a spec_helper.rb which requires anything needed that the library needs
<baweaver>
it's an AWS concept
AlexAltea has quit [Ping timeout: 252 seconds]
<Radar>
Aeyrix: I don't have a tutorial to hand right now
vondruch_ has joined #ruby
<Aeyrix>
Radar: np
<Aeyrix>
I just want to stop writing the code and start doing the tests firs.t
karols has joined #ruby
<MrJiks>
baweaver: are you referring to AMI or something like that?
<baweaver>
no
<baweaver>
that'd be a machine instance
jzigmund has quit [Read error: Connection reset by peer]
<MrJiks>
baweaver: I didn't go through their security systems
rubie has quit [Remote host closed the connection]
karols has quit [Max SendQ exceeded]
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver>
so no vpc or anything?
<MrJiks>
I just set it up as a plain instance.
<MrJiks>
Just a simple ubuntu micro instance
<baweaver>
did you use the external public ip or the private one?
doodleha_ has quit [Read error: Connection reset by peer]
<Oog>
i think its something to do with the function coming from a module that i dont understand
workmad3 has quit [Ping timeout: 264 seconds]
doodleh__ has quit [Read error: Connection reset by peer]
micmus has joined #ruby
dgutierrez1287 has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
hahuang65 has joined #ruby
<sevenseacat>
you mean the payments method that isnt in a module?
tkuchiki_ has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<Oog>
i call invoice.payments and you see it calls mti_get_macro(Payment)
<Oog>
but mti_get_macro seems to just return [] without executing it is very odd. this works in rails console but not in the server
krz has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
<Oog>
even the firs tlog line in mti_get_macro isnt getting called
<sevenseacat>
what does invoice.method(:payments).source_location return
doodleha_ has joined #ruby
<Oog>
website/app/models/invoice.rb", 29]
krz has joined #ruby
<sevenseacat>
good start, so it is calling your payments method
<Oog>
im using byebug stepping in it does go into the function and i just stepped over the log_console line but it didnt output anything. i also used step and it didnt step into it
langlands has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
<sevenseacat>
what is log_console ?
doodleha_ has quit [Read error: Connection reset by peer]
<Oog>
basically puts
speaking1ode has quit [Ping timeout: 264 seconds]
<Oog>
actually no it does Rails.logger.info(message)
<sevenseacat>
thats not helpful
<sevenseacat>
so whats your log level set to?
baweaver has quit [Remote host closed the connection]
langlands has quit [Read error: Connection reset by peer]
<sevenseacat>
above or below :info ?
Musashi007 has joined #ruby
<Oog>
in byebug if i do log_console the output is shown
<Oog>
but when i step over the line no output
langlands has joined #ruby
postmodern has quit [Quit: Leaving]
<Oog>
oh wait i think its i have a variable named method that might be messing stuff up maybe
<yorickpeterse>
ljarvis: not a bad idea since the Euro is going to shit
doodleha_ has quit [Read error: Connection reset by peer]
<ljarvis>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse>
ssssssh, jhass isn't here
<maloik>
I don't even...
<ljarvis>
yes he is
<zenspider>
maloik: FULL ENGLISH WORDS? and you call yourself a programmer
<ljarvis>
!fact add offtopic this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<ruboto>
ljarvis, I will remember that offtopic is this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
Pathfinder has joined #ruby
<maloik>
zenspider: I would have just made it "o" instead of "ot"
<maloik>
I'm all for saving keystrokes, but do it right the first time!
<ljarvis>
it should just be ?
<maloik>
:D
einarj has quit [Remote host closed the connection]
<yorickpeterse>
?:offtopic
<adaedra>
Use your client aliases/keybindings
doodleha_ has joined #ruby
<maloik>
I'm using a terminal window connected to irssi on a server with bad encoding
<maloik>
what keybindings?
aswen has joined #ruby
<ljarvis>
/alias foo bar
<ljarvis>
profit
senayar has joined #ruby
senayar has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
Melite has quit [Quit: Leaving]
abuzze_ has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
doodleha_ has joined #ruby
eGGsha has joined #ruby
LiquidInsect has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
startupality has quit [Quit: startupality]
langland_ has joined #ruby
langlands has quit [Ping timeout: 252 seconds]
speakingcode has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
Scroff has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sevenseacat has quit [Quit: Me dun like you no more.]
abuzze has joined #ruby
Scroff has quit [Remote host closed the connection]
nfk has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
oo_ has joined #ruby
Scrofff has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
Scroff has joined #ruby
ngsw has quit [Read error: Connection reset by peer]
Scroff has quit [Remote host closed the connection]
einarj has joined #ruby
aapole has joined #ruby
Scroff has joined #ruby
ngsw has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_joes_ has joined #ruby
iwishiwerearobot has joined #ruby
jimms has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 264 seconds]
Pupeno_ has quit [Remote host closed the connection]
jimms has joined #ruby
_joes_ has quit [Remote host closed the connection]
Spami has joined #ruby
irle has joined #ruby
dgutierrez1287 has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
ta has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
yardenbar has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
AlexAltea has quit [Ping timeout: 255 seconds]
Yiota has joined #ruby
astrobunny has joined #ruby
krz has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
j4cknewt has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 276 seconds]
_joes_ has joined #ruby
Miphix has joined #ruby
ryba has quit [Ping timeout: 256 seconds]
emilkarl has quit [Quit: emilkarl]
irle has quit [K-Lined]
iwishiwerearobot has quit [Quit: >:(]
GitGud has quit [Ping timeout: 252 seconds]
mcclurmc has joined #ruby
krz has joined #ruby
sdothum has joined #ruby
emilkarl has joined #ruby
emptyflask has joined #ruby
jfarmer has quit []
emilkarl has quit [Client Quit]
yardenbar has joined #ruby
IanV0rn2341 has joined #ruby
mcclurmc has quit [Ping timeout: 255 seconds]
terlar has joined #ruby
emptyflask has quit [Ping timeout: 248 seconds]
stamina has joined #ruby
_blizzy_ has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
Rollabunna has joined #ruby
jimms has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
qiukun has joined #ruby
ahmetkapikiran has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
msgodf has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 246 seconds]
msgodf has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
tomaz_b has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
LiquidInsect has quit [Ping timeout: 246 seconds]
niemcu has joined #ruby
Pupeno_ has joined #ruby
skade has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
LiquidInsect has joined #ruby
bayed has joined #ruby
serivich has joined #ruby
Chills-` has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
zacstewart has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
skade has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
Igorshp has joined #ruby
ryba has joined #ruby
A205B064 has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
n008f4g_ has quit [Ping timeout: 255 seconds]
lxsameer has quit [Ping timeout: 265 seconds]
zacstewart has quit [Ping timeout: 255 seconds]
Rickmasta has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Scroff has quit [Remote host closed the connection]
startupality has quit [Client Quit]
Chills-` has quit []
startupality has joined #ruby
Scroff has joined #ruby
Scroff has quit [Remote host closed the connection]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
langlands has joined #ruby
psy_ has quit [Ping timeout: 265 seconds]
lkba_ has joined #ruby
atom3_ has joined #ruby
fabrice31_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
Yiota has joined #ruby
eGGsha has joined #ruby
atom3 has quit [Ping timeout: 277 seconds]
langland_ has quit [Ping timeout: 272 seconds]
abuzze has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 244 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Scroff has joined #ruby
arup_r has joined #ruby
<Oog>
>> method(:reason)
<ruboto>
Oog # => undefined method `reason' for class `Object' (NameError) ...check link for more (https://eval.in/389787)
sdothum has joined #ruby
NeverDie has joined #ruby
<Oog>
>> method(:method_name)
ngsw has quit [Read error: Connection reset by peer]
<ruboto>
Oog # => undefined method `method_name' for class `Object' (NameError) ...check link for more (https://eval.in/389788)
<ljarvis>
?irb
<ruboto>
irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
fabrice31 has quit [Remote host closed the connection]
<ljarvis>
Oog: please use your local irb unless you have a question and are giving an example to others
<Oog>
will do
scripore has joined #ruby
ngsw has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
lxsameer has joined #ruby
<Ox0dea>
I wonder why $+, $-, and $^ aren't used.
<Ox0dea>
$^ should be Process.uptime, which should exist.
<apeiros>
I'm just happy about the fact.
C1V0 has joined #ruby
<Ox0dea>
apeiros: It doesn't complicate the parser any?
IanV0rn2341 has quit [Read error: Connection reset by peer]
<apeiros>
I don't care much for parser complexity. I care about code readability.
langland_ has joined #ruby
<Ox0dea>
But, I mean, look which way the variable is pointing.
<Ox0dea>
Says "uptime" to me.
<Ox0dea>
:P
<apeiros>
-.-
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<adaedra>
Keep calm and require English
<apeiros>
if people just stopped to use the term "one-way encryption".
bluOxigen has quit [Ping timeout: 255 seconds]
<manveru>
but everybody thinks i'm using drugs when i talk about hashing
dgutierrez1287 has joined #ruby
<adaedra>
control sums?
<apeiros>
then maybe you should put away the drugs before talking about hashing!
langlands has quit [Ping timeout: 264 seconds]
<manveru>
hmm i'll try that next time
<adaedra>
but yeah, “one way encryption” is stupid
<apeiros>
oh, and for :password, tell the users to frequently log in (automatic upgrade of the used hash function happens on login, since the original data is required)
dhjondoh has quit [Remote host closed the connection]
alex88 has joined #ruby
<apeiros>
or rather: happens on password verification
giuseppesolinas has joined #ruby
<ljarvis>
manveru: o/
dgutierrez1287 has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
<manveru>
ljarvis: \o
olistik has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
pyon has quit [Client Quit]
oo_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<manveru>
yeah, whole city filled with even more nerds than usual :)
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<apeiros>
^^
<manveru>
business trip :)
Ropeney has joined #ruby
<apeiros>
don't tell me you work for a gaming company
<apeiros>
or are you combining business trip with fun?
<manveru>
i work for dotabuff
<apeiros>
ok, so both
<manveru>
yeah
<apeiros>
nice
oo_ has quit [Remote host closed the connection]
<manveru>
basically our yearly company get-together
<adaedra>
this looks offtopic
<adaedra>
:p
<manveru>
damn
<manveru>
he caught us
<apeiros>
!ot apeiros
<apeiros>
?ot apeiros
<ruboto>
apeiros, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<apeiros>
:<
langland_ has joined #ruby
<adaedra>
:v
<manveru>
since when do we have bots?
sleeper_ has joined #ruby
<manveru>
is zenspider retired?
<apeiros>
ruboto is the official channel bot
senayar has joined #ruby
senayar has joined #ruby
<apeiros>
conundrum has gone the way of the dodo
<apeiros>
or at least I have no idea where it is
langlands has quit [Ping timeout: 244 seconds]
<adaedra>
mmmmh dodo
yfeldblum has quit [Ping timeout: 248 seconds]
krz has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
krz has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
<ruboto>
ljarvis # => {"CS4248[LEC]"=>["1"], "CS3244[LEC]"=>["1"], "CS3244[TUT]"=>["4"], "CS3216[LEC]"=>["1"], "CS3216[TUT ...check link for more (https://eval.in/389891)
Oka has quit []
sameerynho has joined #ruby
emilkarl has quit [Quit: emilkarl]
charliesome has joined #ruby
delianides has joined #ruby
<mahtennek>
ah cgi fixed it
<mahtennek>
thanks thanks guys
shredding has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
<shevy>
jhass you are the ultimately the guy who broke the +1000 mark on #ruby :>
charliesome has quit [Ping timeout: 264 seconds]
mister_solo has joined #ruby
delianides has quit [Ping timeout: 246 seconds]
<yorickpeterse>
now lets get it over 9000
charliesome has joined #ruby
melter has joined #ruby
<ljarvis>
we talking about jruby?
hotpancakes has joined #ruby
d1ngell has joined #ruby
d1ngell has quit [Max SendQ exceeded]
griffindy has joined #ruby
arup_r has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Muhannad has quit [Remote host closed the connection]
dpollen has quit [Quit: dpollen]
Rickmasta has joined #ruby
<yorickpeterse>
man I hate this weather
<yorickpeterse>
Working from home, it's so hot I can't even get on my balcony
<shevy>
yorickpeterse hmm I wonder what the channel record is at freenode
<yorickpeterse>
my feat will literally burn
<yorickpeterse>
shevy: in #ruby-lang I talked the most
<yorickpeterse>
go figure
Xeago has quit [Remote host closed the connection]
terlar has joined #ruby
tvb has joined #ruby
<yorickpeterse>
I wonder if I can bake an egg on my balcony
* yorickpeterse
has no eggs
tvb has left #ruby ["Leaving..."]
<yorickpeterse>
my cat isn't even trying to go outside, he's just napping on my bed
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
lol
<shevy>
wait
<shevy>
aren't you in the netherlands?
troulouliou_dev has quit [Remote host closed the connection]
<shevy>
don't you guys have an ocean right before your eyes!
hotpancakes has quit [Ping timeout: 256 seconds]
<lupine>
foor(&(-> e { e.bar }))
<yorickpeterse>
I live pretty far from the ocean
<lupine>
I am insulted that this is valid syntax
victortyau has joined #ruby
<lupine>
remember when ruby was beautiful?
<lupine>
chunky bacon!
<yorickpeterse>
hm, "pretty far" 50 km
lxsameer_ has joined #ruby
dblessing has joined #ruby
<shevy>
lupine you also don't like the -> ?
<shevy>
& and -> together is quite the ugliness
<shevy>
and ruby can't even claim that it took that from perl now can it?
<lupine>
it's an incredibly stringing-together of evil
<shevy>
:)
<lupine>
incredible*
<shevy>
there is ruby of the light side
<shevy>
and ruby of the dark side
<shevy>
yoda and darth vader would have both used ruby
tkuchiki has joined #ruby
a346 has joined #ruby
a346 has quit [Client Quit]
delianides has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 244 seconds]
pothibo has joined #ruby
bullcitydev has joined #ruby
atomical has joined #ruby
charliesome has quit [Quit: zzz]
hahuang65 has joined #ruby
cashnguns has joined #ruby
Bertg has joined #ruby
bullcitydev has quit [Read error: Connection reset by peer]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jhooker has joined #ruby
_jesterfraud is now known as jesterfraud
fantasticsid has joined #ruby
phutchins has quit [Quit: WeeChat 1.1.1]
hahuang65 has quit [Ping timeout: 255 seconds]
vdamewood has quit [Quit: Life beckons.]
skade has quit [Quit: Computer has gone to sleep.]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
skade has joined #ruby
Jackneill has joined #ruby
_joes_ has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
rodfersou has quit [Quit: leaving]
ebbflowgo has quit [Read error: Connection reset by peer]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
delianid_ has joined #ruby
ebbflowgo has joined #ruby
arup_r_ has joined #ruby
whippythellama has joined #ruby
aef has quit [Remote host closed the connection]
[k- has joined #ruby
blaines has joined #ruby
[k- is now known as [k-|afk
scripore has quit [Quit: This computer has gone to sleep]
gambl0re has joined #ruby
arup_r has quit [Ping timeout: 276 seconds]
delianides has quit [Ping timeout: 264 seconds]
kfpratt has joined #ruby
blaines_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
fabrice31_ has joined #ruby
fmcgeough has joined #ruby
ta has joined #ruby
but3k4 has joined #ruby
mary5030 has joined #ruby
blaines has quit [Ping timeout: 256 seconds]
ngsw has quit [Read error: Connection reset by peer]
_joes_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
radialneon has joined #ruby
radialneon has quit [Max SendQ exceeded]
krz has joined #ruby
Guest35544 has joined #ruby
mary5030 has joined #ruby
acrux09 has quit [Ping timeout: 255 seconds]
fantasti` has joined #ruby
ngsw has joined #ruby
fabrice31 has quit [Ping timeout: 276 seconds]
fantasti` has quit [Remote host closed the connection]
dhjondoh has quit [Remote host closed the connection]
charliesome has joined #ruby
delianides has joined #ruby
ta has quit [Ping timeout: 246 seconds]
serivich has quit [Quit: Leaving]
Bertg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
serivich has joined #ruby
Bertg has joined #ruby
Guest35544 has quit [Client Quit]
riotjones has quit [Quit: Leaving...]
d1ngell has joined #ruby
jtdoncas has joined #ruby
white_bear has quit [Quit: leaving]
fantasticsid has quit [Ping timeout: 265 seconds]
fantasti` has joined #ruby
white_bear has joined #ruby
jcromartie has joined #ruby
delianid_ has quit [Ping timeout: 248 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Muhannad has joined #ruby
Pathfinder has quit [Ping timeout: 256 seconds]
d1ngell has quit [Client Quit]
Rollabunna has joined #ruby
rbennacer has joined #ruby
dopie has quit [Ping timeout: 256 seconds]
jerius has joined #ruby
michael_mbp has quit [Excess Flood]
d1ngell has joined #ruby
sevenseacat has joined #ruby
houhoulis has quit [Remote host closed the connection]
Pathfinder has joined #ruby
d1ngell is now known as radialneon
plains has joined #ruby
michael_mbp has joined #ruby
havenwood has joined #ruby
enebo has joined #ruby
charliesome has quit [Quit: zzz]
kfpratt has quit [Remote host closed the connection]
bullcitydev has joined #ruby
fantasti` has quit [Remote host closed the connection]
rubie has joined #ruby
jcromartie has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 248 seconds]
Pathfinder has quit [Ping timeout: 255 seconds]
scripore has joined #ruby
fantasticsid has joined #ruby
kfpratt has joined #ruby
Yiota has joined #ruby
charliesome has joined #ruby
werelivinginthef has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
Dj_TiKo has joined #ruby
eGGsha has joined #ruby
Igorshp has joined #ruby
eGGsha has quit [Max SendQ exceeded]
benlovell has quit [Ping timeout: 264 seconds]
ngsw has quit [Quit: Leaving...]
rubie has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Remote host closed the connection]
rodfersou has joined #ruby
emergion has joined #ruby
benlovell has joined #ruby
hinbody has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
Pathfinder has joined #ruby
eGGsha has joined #ruby
<shevy>
if only computers could program for us
startupality has joined #ruby
tomaz_b has quit [Ping timeout: 246 seconds]
<xrlabs>
they can, you just have to teach them
Pathfinder_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
railsraider_ has joined #ruby
hackeron_ has joined #ruby
tesuji has quit [Ping timeout: 256 seconds]
skade has joined #ruby
matrixise has joined #ruby
Scroff has joined #ruby
karpuragauram has joined #ruby
Pathfinder has quit [Ping timeout: 272 seconds]
railsraider has quit [Ping timeout: 252 seconds]
railsraider_ is now known as railsraider
vivekananda has quit [Ping timeout: 255 seconds]
giuseppesolinas has joined #ruby
hackeron has quit [Ping timeout: 264 seconds]
adaedra is now known as `derpy
`derpy is now known as adaedra
Pathfinder_ is now known as Pathfinder
tkuchiki has joined #ruby
ringarin has quit [Ping timeout: 256 seconds]
paulcsmith has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
jensel has joined #ruby
Scrofff has quit [Ping timeout: 244 seconds]
Scrofff has joined #ruby
emptyflask has joined #ruby
bf4 has joined #ruby
jtdoncas has quit [Ping timeout: 246 seconds]
pothibo has quit [Quit: pothibo]
hotpancakes has joined #ruby
Igorshp has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 276 seconds]
arup_r_ has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 264 seconds]
lxsameer_ has quit [Quit: Leaving]
a346 has joined #ruby
beilabs_ has joined #ruby
soulcake has quit [Ping timeout: 276 seconds]
hotpancakes has quit [Ping timeout: 272 seconds]
soulcake has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
<beilabs_>
so i've a string with the values "{1=>2015, 2=>6, 3=>12}" - whats the best way for me to get the value of 1, 2, 3
<mahtennek>
is there a way i can get a dynamic value from regex? for eg /(variable)/ puts "#{variable}"?
<apeiros>
beilabs_: simple answer: use the literal_parser gem to parse the string to a hash and use .keys on the hash
<apeiros>
beilabs_: long answer: how do you get that string?
<apeiros>
or rather: why do you have that data as a string?
zacstewart has quit [Read error: Connection reset by peer]
<bougyman>
mahtennek: yes.
zacstewart has joined #ruby
<beilabs_>
apeiros, it's what I'm stuck with in an older system
<apeiros>
mahtennek: string.match(regex).captures
<beilabs_>
thanks for the tip with the gem
<apeiros>
beilabs_: that's not really answering the question :)
<apeiros>
(it's equivalent to say "I have it because I have it")
<beilabs_>
well, yes it is, it's in a database and I have to extract it.
DaniG2k has joined #ruby
<mahtennek>
oh okay cool
<beilabs_>
the fact it's in a crap format is besides the point, but thanks for the tip.
michael_mbp has quit [Excess Flood]
<mahtennek>
thanks bougyman apeiros
dopie has joined #ruby
last_staff has joined #ruby
victortyau has quit [Ping timeout: 256 seconds]
<mahtennek>
oh wait
<mahtennek>
but if i am doing like this, when /what is my module for (modules)/i ...
zacstewart has quit [Read error: Connection reset by peer]
<ruboto>
apeiros # => /tmp/execpad-2ff5f5ae2dfe/source-2ff5f5ae2dfe:2: end pattern with unmatched parenthesis: /([auejvmci ...check link for more (https://eval.in/389921)
Rollabunna has quit [Remote host closed the connection]
dudedudeman has joined #ruby
Rollabunna has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
roolo has joined #ruby
sandstrom has joined #ruby
kfpratt has quit [Remote host closed the connection]
aryaching has joined #ruby
jeanlinux has joined #ruby
acke has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Me dun like you no more.]
thiagovsk has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
ahmetkapikiran has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
dpollen has joined #ruby
plains has quit [Ping timeout: 264 seconds]
plains has joined #ruby
plains has quit [Changing host]
plains has joined #ruby
kfpratt has joined #ruby
<Luun>
does anyone know of a ruby profiler that will work with 1.8.7? I can’t seem to find any
<ljarvis>
Luun: that's because you shouldn't be using 1.8.7
<Luun>
I know :(
hahuang65 has joined #ruby
msnyon has joined #ruby
<wasamasa>
shouldn't be any harder than finding people willing to work with 1.8.7
dgutierrez1287 has joined #ruby
hotpancakes has joined #ruby
<Luun>
hah
<ljarvis>
Luun: why the version constraint?
<Luun>
that’s just what version where I work has been running forever
<Luun>
we’re upgrading soon
<Luun>
but until them I’m stuck
<ljarvis>
interesting, your work are ok with running outdated software huh
ahmetkapikiran has quit [Quit: ahmetkapikiran]
StephenOTT has joined #ruby
gix has quit [Quit: Client exiting]
<Luun>
not okay, but just too understaffed to update
<Luun>
like I said, we’re updating soon though
<ljarvis>
but yeah in all seriousness it's possible there are older profilers that'll work on 1.8.7 but I haven't used that version for a long time so I think you'll have to dig
<Luun>
ok, thanks! just wanted to make sure there wasn’t an obvious one I was unaware of
mertcna has joined #ruby
startupality has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
scripore has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
dgutierrez1287 has quit [Ping timeout: 264 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
cashnguns has joined #ruby
gix has joined #ruby
rbennacer has quit [Remote host closed the connection]
hunt3r has quit [Remote host closed the connection]
yardenbar has quit [Quit: Leaving]
hunt3r has joined #ruby
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby
kfpratt has quit [Remote host closed the connection]
skade has joined #ruby
kfpratt has joined #ruby
juanpablo_ has joined #ruby
CloCkWeRX has joined #ruby
StephenOTT has quit [Quit: StephenOTT]
eggoez has quit [Ping timeout: 252 seconds]
mikecmpb_ has joined #ruby
mertcna has quit [Remote host closed the connection]
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Client Quit]
hunt3r has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
eggoez has joined #ruby
jeanlinux has quit [Remote host closed the connection]
presto has joined #ruby
prestorium has quit [Ping timeout: 272 seconds]
snapcase has quit [Quit: leaving]
sharpmachine has joined #ruby
senayar has quit [Remote host closed the connection]
aapole has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
senayar has joined #ruby
njs126 has joined #ruby
snapcase has joined #ruby
dgarstang has joined #ruby
<dgarstang>
How can I extract a portion of text from a multiline string in ruby?
jeanlinux has joined #ruby
Alina-malina has joined #ruby
<adaedra>
Have a sample?
MyMind has quit [Ping timeout: 256 seconds]
<ljarvis>
dgarstang: that's a bit broad, but no different to how you would extract it if it wasn't multiline. Maybe an example would help
<dgarstang>
ljarvis: Let's call it a single line then... :)
paulcsmith_ has joined #ruby
chinmay_dd has quit []
<yorickpeterse>
God I love AWS
<adaedra>
good for you
<yorickpeterse>
You disable AlarmNotification on an autoscaling group
senayar_ has joined #ruby
<dgarstang>
ljarvis: actually I think I can do it line by line
<yorickpeterse>
What does it do? ADD A NEW INSTANCE ANYWAY
<ljarvis>
dgarstang: we still need an example
<adaedra>
dgarstang: Not Enough Information
msgodf has quit [Ping timeout: 246 seconds]
senayar has quit [Remote host closed the connection]
jeanlinu_ has joined #ruby
snockerton has joined #ruby
IanV0rn2341 is now known as IanV0rn2341[away
IanV0rn2341[away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IanV0rn2341 has joined #ruby
Xeago has joined #ruby
terlar has quit [Read error: No route to host]
jeanlinux has quit [Ping timeout: 255 seconds]
Channel6 has joined #ruby
mahtennek has quit []
<dgarstang>
python has re.match and grouping, so I can do stuff like re.match('foo=(.*?)$',str) and extract everything after the = with re.group(1)... has ruby got an equiv?
<Aria>
$1 etc.
<Aria>
Lots of ways to do it
scripore has quit [Quit: This computer has gone to sleep]
oo_ has joined #ruby
SubjectiveBias has quit [Quit: leaving]
emptyflask has joined #ruby
El3k0n has joined #ruby
<cj>
what's ruby's test framework? Anything like Test::More ?
<Aria>
minitest and rspec and many others.
<Aria>
You'll find a bit of a lack around TAP support, sadly, but some things support it
<cj>
thanks. looks like ingy did a gem called test-more
<cj>
in October of 2013... hmm...
El3k0n has quit [Remote host closed the connection]
<Aria>
It's not like test frameworks need to change rapidly.
peter_paule has joined #ruby
aamador has joined #ruby
langlands has joined #ruby
jeanlinu_ has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
Scrofff has joined #ruby
freerobby has joined #ruby
n008f4g_ has quit [Ping timeout: 272 seconds]
<jhass>
dgarstang: I'd usually go for "foo=bar"[/foo=(.+?)/, 1] or "foo=bar"[/(?<=foo=).+?/]
pandaant has quit [Quit: Lost terminal]
sharpmachine has quit [Remote host closed the connection]
houhoulis has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
eGGsha has joined #ruby
rippa has joined #ruby
langland_ has quit [Ping timeout: 256 seconds]
dfockler has joined #ruby
blaines has joined #ruby
DaniG2k has quit [Quit: leaving]
<cj>
Aria: yeah, it looks like it works fine in its current state... now to learn how to program a ruby class and instantiate an object! :-)
MatthewsFace has quit [Remote host closed the connection]
slumos is now known as slumos[away]
slumos[away] is now known as slumos
Xeago has quit [Read error: Connection reset by peer]
<jhass>
apeiros: I forgot, who did we decide is anyone? me right?
chouhoulis has joined #ruby
<apeiros>
jhass: I think so
momomomomo has quit [Quit: momomomomo]
<apeiros>
I'm nobody
<apeiros>
don't remember who somebody was
<apeiros>
wait, no, you're anybody
solars has quit [Ping timeout: 256 seconds]
<apeiros>
no clue who's anyone
<jhass>
ah, mh
houhoulis has joined #ruby
n008f4g_ has joined #ruby
WildBamboo-Josh has joined #ruby
<shevy>
I am anyone
revath has quit [Quit: Leaving.]
penzur has joined #ruby
darkf has quit [Quit: Leaving]
revath has joined #ruby
griffindy has quit [Ping timeout: 244 seconds]
<Aria>
I'm nobody.
joshbamboo2 has quit [Ping timeout: 252 seconds]
<Aria>
After all, nobody's perfect. ;-)
<jhass>
but anyone usually know's X with X being whatever
<shevy>
Aria is perfect
joshbamboo1 has quit [Ping timeout: 244 seconds]
<jhass>
Izud: so, what's up?
zendrix has joined #ruby
symm-_ is now known as symm-
mister_solo has quit [Ping timeout: 252 seconds]
<Izud>
Havenwood: Hello
chouhoulis has quit [Ping timeout: 276 seconds]
DexterLB has quit [Quit: So long and thanks for all the fish]
<Izud>
Very good jhass
momomomomo has joined #ruby
<Izud>
Quite new here
<Izud>
Oblivious of the syntax to mention a user ;)
griffindy has joined #ruby
DexterLB has joined #ruby
rjno has joined #ruby
keen___________7 has joined #ruby
<jhass>
it's a client feature, most trigger it if the nick appears anywhere
alex88 has quit []
<jhass>
and if you got a sane client you should have nick tab completion anywhere
CloCkWeRX has quit [Quit: Leaving.]
towski_ has quit [Remote host closed the connection]
keen___________6 has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
paulcsmith has joined #ruby
railsraider has quit [Quit: railsraider]
acke has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
atomi has quit [Quit: brb]
findaway has quit [Read error: Connection reset by peer]
<Izud>
which client do u use?
<jhass>
weechat
<Izud>
I'm using xchat
<Izud>
ok
<Izud>
on pc?
<jhass>
sure
tjbiddle has quit [Quit: tjbiddle]
sandstrom has quit [Quit: My computer has gone to sleep.]
<Izud>
ok...checking it out now
railsraider has joined #ruby
anisha has quit [Quit: Leaving]
revath has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
Zai00 has quit [Quit: Zai00]
revath has joined #ruby
a346 has quit [Quit: a346]
WildBamboo-Josh has quit [Read error: Connection reset by peer]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
Bertg has quit [Ping timeout: 244 seconds]
pengin has joined #ruby
WildBamboo-Josh has joined #ruby
alex88 has joined #ruby
rbennacer has joined #ruby
WildBamboo-Josh has quit [Read error: Connection reset by peer]
alex88 has quit [Changing host]
alex88 has joined #ruby
ralku is now known as ralku[away]
acke has joined #ruby
alex88 has quit [Client Quit]
presto has quit [Ping timeout: 244 seconds]
cashnguns has quit [Ping timeout: 244 seconds]
dopie has quit [Quit: This computer has gone to sleep]
WildBamboo-Josh has joined #ruby
senayar has joined #ruby
keen___________7 has quit [Read error: Connection reset by peer]
djstorm has quit [Ping timeout: 246 seconds]
aapole has quit [Ping timeout: 256 seconds]
railsraider has quit [Quit: railsraider]
Bertg has joined #ruby
emilkarl has quit [Quit: emilkarl]
mikecmpb_ has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
sarkyniin has joined #ruby
<Izud>
has anyone here tried out octopress 3?
hotpancakes has quit [Remote host closed the connection]
ivanskie has joined #ruby
senayar has quit [Remote host closed the connection]
keen___________7 has joined #ruby
konsolebox has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
k3asd` has quit [Ping timeout: 264 seconds]
findaway has joined #ruby
sandstrom has joined #ruby
dopie has joined #ruby
<Izud>
#rails
revath has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
revath has joined #ruby
pengin has quit [Remote host closed the connection]
fantazo has joined #ruby
Agoldfish has joined #ruby
pengin has joined #ruby
bullcitydev has joined #ruby
<Senjai>
Morning ruby
<Senjai>
?use Izud
<ruboto>
Izud, Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
metaphage has joined #ruby
metaphage has left #ruby [#ruby]
ralku[away] is now known as ralku
rjno has quit [Remote host closed the connection]
mdw has joined #ruby
<adaedra>
?hello Senjai
<ruboto>
Senjai, I don't know anything about hello
<Pwnna>
is there a way to get pwd if pwd is supposed to be in a symlink?
last_staff has joined #ruby
jpfuentes2 has joined #ruby
<Pwnna>
like: mkdir abc; ln -s abc abclinked; cd abclinked; ruby show_pwd.rb => should show abclinked rather than just abc?
terlar has quit [Client Quit]
presto has quit [Ping timeout: 256 seconds]
denver has quit [Ping timeout: 252 seconds]
finisherr has joined #ruby
doertedev has quit [Quit: Lost terminal]
yaw has joined #ruby
hunt3r has quit [Ping timeout: 252 seconds]
t_ has joined #ruby
rjno has joined #ruby
troulouliou_dev has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
mmh, doesn't look like it, I wonder if it's resolved at OS level already
thiagovsk has quit [Quit: Connection closed for inactivity]
yaw has left #ruby [#ruby]
<Pwnna>
i don't think so
<Pwnna>
/proc/$$/cwd show the original directory
<Pwnna>
shell is doing something strange but idk if there is a way to replicate it.
dopie has quit [Quit: Leaving]
<jhass>
well, I couldn't find an API so you just answered yourself
<Pwnna>
well but shell does it
dopie has joined #ruby
<Pwnna>
cd abclinked; pwd => abclinked
<jhass>
File.read("/proc/self/read")
Scrofff has quit [Remote host closed the connection]
djellemah_ has joined #ruby
<Pwnna>
if you read the link for /proc/self/cwd it points to the original directory..
MatthewsFace has joined #ruby
chouhoulis has joined #ruby
<jhass>
er, right
<jhass>
mmh, ENV["PWD"] I guess
<Pwnna>
hmm
<Pwnna>
interesting
<jhass>
yap, that overrides it
snockerton has quit [Quit: Leaving.]
<Pwnna>
hmmmm
<Pwnna>
but is that only when you start it from shell?
<jhass>
if you launch a subshell after unsetting it the shells loose it too
rdaviesDG has joined #ruby
snockerton has joined #ruby
djellemah has quit [Ping timeout: 256 seconds]
spider-mario has joined #ruby
<Pwnna>
hmm i'm actually runnint my original service via running.. let me check if it overrides PWD
<Pwnna>
thanks jhass that was super helpful :)
radialneon has quit [Ping timeout: 265 seconds]
findaway has joined #ruby
startupality has quit [Quit: startupality]
chouhoulis has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
<jhass>
well, all that said relying on something like that surely sounds fishy ;)
<jhass>
I mean the general idea that what's returned makes a difference at all
pengin has quit [Remote host closed the connection]
rdaviesDG has left #ruby [#ruby]
rdaviesDG has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Pwnna>
well my problem is I will do a Dir.chdir(...) { ... }
<Pwnna>
but sometimes when that call returns...
<Pwnna>
the original directory might be removed, because a new version replaced it via symlink.
<Pwnna>
so like /opt/program still points to /opt/program-1.2
<Pwnna>
but the original program might be /opt/program-1.1
RegulationD has joined #ruby
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
lkba has joined #ruby
<jhass>
I don't quite follow why that's a problem, in fact my intuition would be that that's desired, I was invoked when it pointed to 1.2, so I should continue working with that
emptyflask has quit [Remote host closed the connection]
wallerdev has joined #ruby
olistik has quit [Remote host closed the connection]
<Pwnna>
no so the original program-1.1 is invoked. during a long running operation in a chdir block, program-1.1 is deleted and replaced with program-1.2
pdoherty has joined #ruby
olistik has joined #ruby
<Pwnna>
the long running operation is done, it tries to change back to program-1.1's directory, it doesn't work.
lkba_ has quit [Ping timeout: 252 seconds]
<jhass>
so you have /opt/program hardcoded and want to detect the change?
<jhass>
oh
<Pwnna>
no i just don't want it to chdir into an invalid directory.
findaway has quit [Ping timeout: 265 seconds]
<Pwnna>
i also don't think it should stay in the directory it changed to, although i'm not sure if there's any adverse effect.
bnobu has joined #ruby
<Pwnna>
maybe i'll just have it stay there
benlieb_ has quit [Quit: benlieb_]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<jhass>
mmh, I wonder if you could use a file lock to prevent it from being removed
Rollabunna has quit [Quit: Leaving...]
Rollabunna has joined #ruby
<Pwnna>
well i think that's too complicated
<Pwnna>
i think the easiest is if the chdir is permanent
benlieb_ has joined #ruby
<Pwnna>
so i take that out of a block
postmodern has joined #ruby
<Pwnna>
so the script will execute in the new directory location
<Pwnna>
and don't return to its roots
aryaching_ has quit [Ping timeout: 252 seconds]
qhartman has quit [Quit: Ex-Chat]
<Pwnna>
eventually the script will die, and it will be respawned by runit with the new version, so all is good.
emptyflask has joined #ruby
<jhass>
well, if that's an option, it's certainly the simplest one
<Pwnna>
yeah
<Pwnna>
it is
<Pwnna>
i just realized
<Pwnna>
thanks for all the help :)
drewo has joined #ruby
air_ has joined #ruby
sharpmachine has quit [Ping timeout: 256 seconds]
aneesh_ has joined #ruby
aneesh_ has quit [Client Quit]
sharpmachine has joined #ruby
<air_>
how can a student participate in ruby open source devlopment
<air_>
?
<rdaviesDG>
air_, github issues!
bricker has joined #ruby
chipotle has quit [Excess Flood]
<havenwood>
air_: Know any Ruby already or just starting learning it?
dumdedum has quit [Ping timeout: 264 seconds]
<air_>
how can one know which project he have to contribute?
Xeago has joined #ruby
<air_>
know little ruby
<havenwood>
air_: Non-technical contributions are valuable as well.
<havenwood>
air_: nice
<air_>
means?
rdark has quit [Quit: leaving]
<air_>
non-technical what?
crazydiamond has joined #ruby
chipotle has joined #ruby
delianides has quit [Read error: Connection reset by peer]
<havenwood>
air_: Fixing typos or grammar mistakes in documentation. Improving readme's and wikis. Providing graphics for branding.
rbennacer has quit [Remote host closed the connection]
<rdaviesDG>
also juggling is useful
<air_>
link?
<havenwood>
air_: I'd suggest picking a tool you're interested in and taking a while to study its code. Then review all the issues and pull requests and see if there's anything you can contribute. Or any places you can improve documentation, examples, formatting, etc along the way.
casadei_ has quit [Remote host closed the connection]
<havenwood>
air_: As they say ^: Writing documentation is a gentle, but effective introduction to contributing to open source
<havenwood>
air_: And it's a valuable contribution!
<jhass>
With larger issue trackers pointing out duplicates or old issues that can't be solved anymore due to changes in the project and stuff like that can be useful too
<sphex>
I sure wish ruby had a set of man pages that succinctly described the language. perl 4 had an awesome manpage that described almost the whole language.
<discr33t__>
i'm fairly new to ruby and having trouble getting some code to work. i'm trying to get the output as a single array but i keep getting 3 individual arrays. can anyone help point me in the right direction? http://pastie.org/10266634
lsmola has quit [Ping timeout: 265 seconds]
emptyflask has quit []
<jhass>
air_: if it's not obvious and fun to you, then there's no point. Move on to something that motivates you
towski_ has joined #ruby
<postmodern>
is there anyway to have warden store the session in the database, so it hard-expires at logout time?
<jhass>
discr33t__: start by properly indenting your code so you're not confused about its structure
<air_>
no its fun, how does it will help me in future
anjen has quit [Client Quit]
<jhass>
air_: it can bring you some reputation, but that shouldn't be your goal IMO. Your goal should be having fun. Now.
jobewan has joined #ruby
<air_>
yeah
iateadonut has left #ruby [#ruby]
Wolland has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<jhass>
discr33t__: apart from that I'm not sure I understand your question, could you elaborate?
roolo_ has quit [Remote host closed the connection]
symbol has joined #ruby
konsolebox has quit [Remote host closed the connection]
delianides has joined #ruby
<discr33t__>
jhass: what i am trying to do is execute the postgres command to tell me the version that is installed. we have some hosts that have more than one version of postgres installed which is why i have doing the Dir.glob, to get an array of all paths to the postgres command
rjno has quit []
<discr33t__>
jhass: i'm iterating over that array to run the command for each installed version, which is unfortunately giving me 3 separate arrays. i'm trying to turn that into a single array with multiple objects
casadei_ has joined #ruby
white_bear has quit [Quit: leaving]
athos_diddy has quit []
momomomomo has joined #ruby
senayar has joined #ruby
<jhass>
well, you don't collect anything in your example code, you simply iterate and print a bit
konsolebox has joined #ruby
<jhass>
or well, even the printing code is commented so you're not doing anything really
hotpancakes has quit [Remote host closed the connection]
jespada has quit [Quit: WeeChat 1.1.1]
chouhoulis has joined #ruby
<jhass>
if I had to take a wild guess, I'd say you want Array#map
_blizzy_ has quit [Ping timeout: 248 seconds]
dgarstang has quit [Ping timeout: 252 seconds]
<jhass>
but given I have no idea about your goal, I can't predict if it's anywhere near the best tool for it
wildroman2 has quit [Remote host closed the connection]
konsolebox has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<discr33t__>
jhass: this is going to become a puppet fact for postgres installed version. i'm just trying to work out the code that gives me the correctly formatted output. i'm uncommenting the puts statements as needed to check the output
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
<jhass>
discr33t__: btw foo = bar.sub(/.../, '\1') is a bit silly, just foo = bar[/.../, 1]
micmus has quit [Ping timeout: 246 seconds]
atomical has joined #ruby
dgutierrez1287 has joined #ruby
jesterfraud has quit [Read error: Connection reset by peer]
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<discr33t__>
jhass: ok, i'll make that change for the regex
presto is now known as prestorium
phutchins1 has joined #ruby
rubie has joined #ruby
bnobu has joined #ruby
noethics has joined #ruby
einarj has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
phutchins has quit [Ping timeout: 276 seconds]
cashnguns has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical_ has joined #ruby
atomical has quit [Read error: Connection reset by peer]
howdoi has quit [Quit: Connection closed for inactivity]
symbol has quit [Quit: WeeChat 1.1]
_blizzy_ has joined #ruby
lkba_ has joined #ruby
railsraider has quit [Quit: railsraider]
shadoi has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
rubie has quit [Ping timeout: 265 seconds]
gizmore has joined #ruby
mcclurmc has joined #ruby
bnobu has quit [Ping timeout: 256 seconds]
bf4 has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
casadei_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 276 seconds]
hunt3r has joined #ruby
phutchins2 has joined #ruby
Cork has quit [Quit: .]
SCHAAP137 has joined #ruby
<shevy>
hmm
<shevy>
if someone else defines: module Configuration
<shevy>
hmmmm
bar0n has quit [Ping timeout: 246 seconds]
<shevy>
then I can no longer do
<shevy>
class Configuration; end # TypeError: Configuration is not a class
<shevy>
is there a way to clear the earlier defined module?
jeanlinu_ has joined #ruby
<jhass>
const_remove
<jhass>
but!
zacstewart has quit [Ping timeout: 250 seconds]
Channel6 has quit [Quit: Leaving]
<shevy>
ah yes
<jhass>
if you have a library which does that at the toplevel that's enough reason to ditch it
<shevy>
Object.send :remove_const, :Configuration
phutchins1 has quit [Ping timeout: 244 seconds]
kfpratt has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
<havenwood>
shevy: Shevy::Configuration and Chevy::Configuration
phutchins has joined #ruby
<shevy>
well, the problem is that another namespace can get blocked; so in my code, I can not differ between who originated any given module or class
<shevy>
so in my code I could modify module Foo, but it may have been defined by someone else
<Senjai>
shevy: If you have to remove an earlier module, you're doing it wrong
chouhoulis has quit [Remote host closed the connection]
<Senjai>
shevy: Instead, write your code so you dont have to run into this scenario
<shevy>
and I can do this how when I use the same name?
<Senjai>
Namespaces
chouhoulis has joined #ruby
<Senjai>
Solving naming problems since forever
<shevy>
yes, we have the same name. Now what?
<Senjai>
Same namespace?
<shevy>
yes
<Senjai>
What are you writing?
zendrix has quit [Remote host closed the connection]
<shevy>
it does not matter
<Senjai>
It does, do you control both namespaces?
<Senjai>
If you dont, then your shit is simply incompatible with other shit. If you do, don't write your code so that there's a conflict
<shevy>
of course not; I don't control namespaces defined and used by others/external code; see how RbConfig got added, it was called Config in the past wasn't it?
<Senjai>
Either way, removing a module is bound to break something else
<Senjai>
Dont remove other peoples stuff, just fail
Cork has joined #ruby
<shevy>
Don't clog up namespaces perhaps?
hunt3r has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
<Senjai>
Or use a namespace that is unique
phutchins2 has quit [Ping timeout: 256 seconds]
<shevy>
Don't use my namespace?
kfpratt has joined #ruby
<Senjai>
What namespace
<shevy>
it does not matter!
<Senjai>
are you using something like Application
<Senjai>
because that's just silly
<shevy>
cool argument
<Senjai>
GemName:: is fine
<shevy>
is ApplIcation better?
<Senjai>
No
<Senjai>
I'm saying if your using something so generic that its running into problems like that...
<jhass>
or if you use stuff that does use something such generic
casadei_ has joined #ruby
<jhass>
simply don't use it
<Senjai>
^
Juanchito has quit [Quit: Connection closed for inactivity]
<Senjai>
Just fail
<Senjai>
its not your job
<Senjai>
Cause an error
<Senjai>
and fail
<Senjai>
if you're actually using a unique namespace
<shevy>
unique
<Senjai>
You still havent told me what it is
atomi has joined #ruby
<shevy>
does it matter?
<Senjai>
It's probably Configuration:: or something
<shevy>
pick any name
IanV0rn2341 has joined #ruby
<Senjai>
I guarentee nobody is using OmgAwesomeGemNamespaceZeroOhOne
<shevy>
let's say a namespace called Bundler
<Senjai>
Use that
<Senjai>
Fixed forever
<shevy>
I want to bundle some gems together
<jhass>
shevy: do you expect to be able to upload a gem called bundler?
<shevy>
jhass I want to!
<Senjai>
Bundler is a canonical ruby paradigm. It's a bread and butter tool.
<jhass>
shevy: that's not answering my question
<havenwood>
shevy: ah, looks like the "bundler" gem name is already taken!
<shevy>
jhass I expect that I can use non-ruby internal constants in any way I want to use them
<Senjai>
Lol
<Senjai>
k
<Senjai>
Dont ever include another library
<Senjai>
and you'll be fine
<jhass>
shevy: still not answering my question
<jhass>
actually actively evading it
<shevy>
jhass sure it is answered
<jhass>
no
<jhass>
it's simple
discr33t__ has quit [Quit: Page closed]
<Senjai>
jhass: He/she has been evading every single quetsion
<jhass>
do you expect to be able to upload a gem called bundler?
<jhass>
yes, no
<Senjai>
What namespace? "Does it matter?":
railsraider has joined #ruby
mary5030 has joined #ruby
<shevy>
Senjai I have answered it precisely; see above, Bundler
bf4 has joined #ruby
<Senjai>
shevy: Oh, so your adding stuff to Bundler::
<jhass>
Senjai: I know, the trick is to just be fundamentalistic, if you move on they thing they won
<Senjai>
Name your gem better
workmad3 has quit [Ping timeout: 276 seconds]
<jhass>
*think, even
<shevy>
jhass I expect to be able to use my gems in any way I see fit <--- that was the answer
<shevy>
Senjai my names are perfect
jeanlinu_ has quit [Remote host closed the connection]
<Senjai>
Okay , so fork bundler
<jhass>
shevy: nope, I refuse that answer
<Senjai>
Next question?
<shevy>
what for? why should I fork bundler?
mary5030 has quit [Remote host closed the connection]
<jhass>
do you expect to be able to upload a gem called bundler? Valid answers: yes, no
<Senjai>
shevy: Because you want to use a namespace that has been taken by a library you're already using
atomi has quit [Client Quit]
<shevy>
jhass I expect to use every gem that I want to use in every way I want to see it <- valid answer
<shevy>
Senjai I have no control over what other people do in their code now, have Iß
mary5030 has joined #ruby
<jhass>
shevy: no, that's completely evading my quesiton
<Senjai>
shevy: Sure you do, fork it
<Senjai>
then you have control
<shevy>
jhass the question was answered
<jhass>
shevy: no
<shevy>
Senjai why should I fork the project of someone else? how does that make sense?
<Senjai>
jhass: Can we just +q him for a day?
<shevy>
Senjai can you please stop abuse?
<Senjai>
This has devolved to trolling
<jhass>
Senjai: just /ignore if you're fed up
<shevy>
Senjai stop trolling?
atomi has joined #ruby
dgarstang has joined #ruby
hotpancakes has joined #ruby
dgarstang has quit [Client Quit]
phutchins1 has joined #ruby
allomov has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
benlieb_ has quit [Quit: benlieb_]
bking39116 has joined #ruby
dpollen has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 256 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
bf4 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
bking39116 has left #ruby [#ruby]
djbkd has joined #ruby
El3k0n has quit [Ping timeout: 250 seconds]
tjbiddle has joined #ruby
sharpmachine has quit [Remote host closed the connection]
mcclurmc has joined #ruby
Zai00 has joined #ruby
sharpmachine has joined #ruby
multi_io has quit [Read error: Connection reset by peer]
centrx has joined #ruby
<eam>
shevy: this is part of why I think Ruby oughten't have both module and class
Zai00 has quit [Client Quit]
allomov has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
<eam>
it's super obnoxious needing to know which type of element a namespace field is
<shevy>
eam yeah that too, I'd love to just extend it without that error
<eam>
btw, if you want you can simply change the constant
bf4 has joined #ruby
<havenwood>
shevy: clojure namespace includes the author so you don't quite have to be so creative with coming up with your own name :P
ruv has quit [Remote host closed the connection]
<havenwood>
shevy: for example: org.shevy/bundler.namespace
<shevy>
well it's indeed not so simple because I actually can not modify namespaces too easily like in the above example
<havenwood>
shevy: TL;DR: Don't use an existing namespace.
<shevy>
since my changes will also feedback in a global way, and may affect other code; so whoever is the first to define a namespace/constant, sort of wins
<eam>
ruby is also very non-hierarchical in its module structure. I suspect part of why is this issue
<shevy>
havenwood interesting
bking39116 has joined #ruby
bffff_ has joined #ruby
<shevy>
havenwood that means one could have the "same" name, but clojure would still know that it might be different? since these are not by the same author?
<havenwood>
shevy: You could say use `Shevy::Bundler` for a similar effect.
<havenwood>
shevy: Or: ShevyBundler
<havenwood>
shevy: But yeah, by convention.
fabrice31 has joined #ruby
<shevy>
true, I could make a Shevy namespace in Bundler
cmisenas has quit [Ping timeout: 256 seconds]
<havenwood>
shevy: Don't share top level namespaces with other tools. :)
<Senjai>
^
<Senjai>
What we've been trying to say forever :P
<shevy>
nope
zacstewart has quit [Remote host closed the connection]
casadei_ has quit [Remote host closed the connection]
<shevy>
that means I have to accept what others decide onto me
nertzy has joined #ruby
multi_io has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
djbkd has joined #ruby
<eam>
just hang it off Object
bonhoeffer has joined #ruby
<shevy>
hehe
<eam>
no one does that; unlikely to conflict
<shevy>
I once wanted to define my own objects for a MUD in ruby; I ended up calling it MudObject instead :\
<bonhoeffer>
what am i missing here: foo.gsub(/(.*?)\-(.*?)\-(.*?)/) {"$3/$2/$1"}
<bonhoeffer>
i have the match data all wrong . . .
symm- has quit [Read error: Connection reset by peer]
<bonhoeffer>
hmm . . .
symm- has joined #ruby
dpollen has quit [Client Quit]
<bonhoeffer>
wow - eam nice — thanks
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<eam>
avoid .*? for a more explicit pattern whenever you can, it's much more efficient
zendrix has joined #ruby
benlieb_ has joined #ruby
Marisa has joined #ruby
bking39116 has quit [Quit: bking39116]
<bougyman>
oniguruma optimizes it doesn't it, eam?
<Senjai>
You could also run a match and use the match data object to avoid using globals.
erts has joined #ruby
benlieb_ has quit [Client Quit]
<eam>
no, .*? is always going to be more expensive than \d+ in that example
<Senjai>
and build a new astring instead
<eam>
bougyman: because it has to traverse the entire input starting with the maximum match (all of the string) and then find each consecutively smaller match until it can't get smaller
fantazo has quit [Quit: Verlassend]
workmad3 has quit [Ping timeout: 272 seconds]
balazs has joined #ruby
<eam>
and it has to do that for every .*? instance
<bougyman>
eam: yes, I know it's more expensive than a more exact match, I was just mentioning that oniguruma shortcuts some of the steps when it can (optimizes)
<eam>
there are a couple very basic looking regex expressions that will send any engine into conniptions
<eam>
ah yeah. I don't think it can do much in that case, though
<bougyman>
oh can you lock onig up with the +)* with backrefs stuff?
bonhoeffer has quit [Remote host closed the connection]
Dj_TiKo has quit [Quit: • IRcap • 8.72 •]
Indian has quit [Ping timeout: 255 seconds]
<eam>
probably, let's see
Indian has joined #ruby
gizmore has joined #ruby
_blizzy_ has quit [Ping timeout: 272 seconds]
finisherr has quit [Quit: finisherr]
havenn has joined #ruby
baweaver has quit [Remote host closed the connection]
aapole has joined #ruby
Xiti has quit [Quit: Xiti]
rubie has joined #ruby
balazs has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
m8 has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
phreakocious_ is now known as phreakocious
djstorm has quit [Ping timeout: 272 seconds]
Xiti has joined #ruby
phutchins1 has quit [Ping timeout: 264 seconds]
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
peter_paule has joined #ruby
PaulCapestany has quit [Quit: .]
hotpancakes has quit [Read error: Connection reset by peer]
jerius_ has joined #ruby
rubie has joined #ruby
PaulCapestany has joined #ruby
Igorshp has quit [Remote host closed the connection]
renderful has quit []
_stu_ has joined #ruby
solars has joined #ruby
jerius has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
mikecmpbll has joined #ruby
nertzy has quit [Quit: Leaving]
Soda has quit [Remote host closed the connection]
juanca_ has joined #ruby
eGGsha is now known as eGGshke
sharpmachine has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
snapcase has quit [Quit: leaving]
snapcase has joined #ruby
<dfockler>
is there an enumerable to count how many elements in an enumerable match a condition?
<dfockler>
oh count hah
wallerdev has quit [Quit: wallerdev]
yardenbar has joined #ruby
ivanskie has joined #ruby
lapide_viridi has joined #ruby
Wolland has quit []
mary5030 has quit [Remote host closed the connection]
sandstrom has joined #ruby
zendrix has quit [Remote host closed the connection]
<ivanskie>
anyone else patiently waiting for iTunes 12.2 ?
<ivanskie>
'patiently'
nertzy has joined #ruby
juanca_ has quit [Remote host closed the connection]
zacstewart has joined #ruby
pothibo has quit [Quit: pothibo]
Aswebb_ has joined #ruby
<miah>
no. because i have vox.app
Marisa has quit [Ping timeout: 264 seconds]
<shevy>
I don't even know what is iTuna
peter_paule has quit [Ping timeout: 250 seconds]
mcclurmc has joined #ruby
wallerdev has joined #ruby
mcclurmc has quit [Remote host closed the connection]
<ivanskie>
iTuna is very tasty..
<shevy>
hehe
<ivanskie>
I doub't their apple music interface will come close to Spotify's implementation..
AlphaAtom has joined #ruby
<ivanskie>
but we''ll see
<sphex>
hey. I see that ruby comes with some documentation files in doc/ that aren't associated with specific classes (e.g. "doc/security.rdoc"). they get processed and .ri files are installed for them, but is there any way to read them with ri(1) afterward?
j4cknewt has quit [Read error: Connection reset by peer]
allomov has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
<shevy>
it's the gesture that counts!
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
mary5030 has joined #ruby
mcclurmc has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<ivanskie>
shevy yah but there's also people, like most of Canadian people.. lol that'll say about anything just to be helpful. now whether that information is going to be helpful is usually worse than 50/50
mary5030 has joined #ruby
<ivanskie>
i'm canadian.. but i'm european canadian.. lol
<sphex>
miah, ivanskie: alright, thanks! yeah looks like ri is really only designed to lookup classes/methods. not a big deal I guess, the other docs don't need to be looked up very often.
<shevy>
as long as you speak the real canadian language... french
gauke has joined #ruby
<ivanskie>
ur saying it wrong shevy.. Real Canadien
<miah>
you mean Quebecua
<ivanskie>
and nope i don't speak french
<shevy>
lol
<ivanskie>
lol
eggoez has joined #ruby
<ivanskie>
i speak English, Russian, and Ukrainian tho
<shevy>
adaedra that's a land for you to visit!
<Xeago>
I'm bored.
mcclurmc has joined #ruby
<miah>
#ruby-offtopic is great for bordem.
<Xeago>
Ituna is great for hunger.
<Xeago>
:>
<ivanskie>
there's a separate channel for that?
<ivanskie>
adding that to my TIL list
<miah>
indeed.
<ivanskie>
it feels like #ruby-offtopic is more like a fake number you give someone instead of your own...
<miah>
so that we can keep this place focused (of course it does occasionally get OT)
<shevy>
:)
<miah>
867-5309
yaw has joined #ruby
<shevy>
we just mention ruby every now and then to insinuate that it is relevant to ruby
<shevy>
like how many many ruby users are in Canada! \o/
havenn is now known as havenwood
<miah>
i grew up in almost-canada (michigan).
mcclurmc_ has joined #ruby
<shevy>
that explains the french accent when you type! \o/
<miah>
lol
<sphex>
and I'm from .qc.ca. gee what's with canada and ruby?
workmad3 has joined #ruby
mcclurmc has quit [Read error: Connection reset by peer]
<miah>
nothing as far as i know
mcclurmc_ has quit [Remote host closed the connection]
<ivanskie>
tomorrow there'll be somethin
peter_paule has joined #ruby
<sphex>
right. definitively no take over going on.. << >>
<shevy>
perhaps Canada is the new California
<ivanskie>
tomorrow's Canadian Ruby Day right?
<shevy>
just with less sun. and more snow
fantasticsid has quit [Remote host closed the connection]
cmisenas has joined #ruby
<ivanskie>
:)
mcclurmc has joined #ruby
fantasticsid has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
frem has joined #ruby
<sphex>
ivanskie: so yard is an alternative toolchain to rdoc?
yaw has quit [Ping timeout: 256 seconds]
BanzaiJoe has joined #ruby
eGGshke is now known as eGGsha
<miah>
yardoc is a pretty nice doc parser
Jackneill has quit [Remote host closed the connection]
<ivanskie>
i've just found it yesterday.. it just makes it easier to read..
<miah>
and you can write docs in more formats (though I think rdoc supports a few as well)
tubuliferous_ has joined #ruby
Carnage\ has joined #ruby
varunwachaspati has quit [Read error: Connection reset by peer]
<dfockler>
yardoc was really simple and did a pretty good job
<dfockler>
at least for my project
monod has joined #ruby
<miah>
i just wish rdoc/yardoc had better options for linking with simplecov
hotpancakes has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
MyMind has joined #ruby
<miah>
rdoc can generate a nice list of coverage details. but i want it all in one easy to digest place.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah>
well, Python has the scientific community
<miah>
more colleges teach it, than Ruby.
<miah>
though honestly most of what researchers were writing when i was working with them was perl, lisp, and java.
<wmoxam>
it's just more popular for basically anything non-web dev
Musashi007 has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
<miah>
indeed
<shevy>
well I could see some perlers
<shevy>
java too
baweaver has quit [Ping timeout: 255 seconds]
<shevy>
never really saw a lot of lispers
pengin has quit [Remote host closed the connection]
<miah>
i worked with a _ton_ of MIT grads. emacs & lisp were their way of life
nofxx has joined #ruby
snockerton has quit [Quit: Leaving.]
<eam>
what generation though? MIT switched from lisp to python a while back
wprice has joined #ruby
zendrix has joined #ruby
<shevy>
hey
<shevy>
miah is not *that* old!
arcanez has left #ruby [#ruby]
<eam>
coworkers might be though ;-)
AlphaAtom has joined #ruby
<Senjai>
I've considered going back to school, but I'm pretty torn on it
railsraider has quit [Quit: railsraider]
<bricker>
I am super bored with programming
cmisenas has joined #ruby
<miah>
im 36. most of my coworkers were close to my age, maybe a tad older.
<wmoxam>
Senjai: what's keeping you from it?
<bricker>
I find no joy in it anymore
<eam>
shevy: they switched in like 2009 iirc
<eam>
miah: you're older than I am
<Senjai>
I already have a job in the industry, and I know what kind of grads most schools produce. But there's a longing for some of the more fundemental concepts and math
<Senjai>
wmoxam: ^
<wmoxam>
Senjai: maybe try some part time courses?
<dfockler>
I wish I knew stats better
snockerton has joined #ruby
<wmoxam>
bricker: :(
<Senjai>
wmoxam: With work? Eh..
<miah>
i wish i could school. i have a hard time learning in that kind of environment / teaching method though
<wmoxam>
bricker: make something fun ;)
<Senjai>
bricker: You still working in SoCal?
<wmoxam>
Senjai: yeah, it can be hard
<bricker>
wmoxam: The motivation do program outside of work just isn't there anymore
<bricker>
Senjai: yes
<Senjai>
bricker: Consider going to NYC or?
<Senjai>
Or any place that has a really motivated team
rubie has quit [Remote host closed the connection]
<bricker>
Senjai: moving jobs might help for a while, but I've done it a few times now and always after about a year I just lose interest again
<miah>
two years now
<Senjai>
We're also hiring. www.freerunningtech.com. Unfortunately most of our clients are under NDA, suffice it to say we work on some really cools tuff
<eam>
bricker: I made a switch from a big valley company to a much more dynamic startup and it helped a lot
<Senjai>
bricker: I think it might be related to the team man. I get the motivation issue, but you can do cool things and get paid for it, that's a pretty good setup
<bricker>
Senjai: this time feels different, this time I don't even want to move jobs. I'll probably leave the industry after this job, dunno when that will be
tno has joined #ruby
<Senjai>
bricker: Sorry to hear m8.
<bricker>
eam: yeah, I work for a big ass company and it's just totally not fun
allomov has joined #ruby
lucasfs7 has quit [Remote host closed the connection]
jmignault has joined #ruby
<Senjai>
Work for a smaller firm
<eam>
bricker: try somewhere smaller (but not too small) where you can teach people
<bricker>
eam: may as well be preparing excel spreadsheets or something
<bricker>
yeah
<miah>
i have worked for BACs and they were indeed not fun. too many people working in management.
<eam>
yeah that was me 5 years ago
benlieb_ has joined #ruby
<wmoxam>
smaller companies are way more fun IMO
<bricker>
eam: I need dat big company paycheck though you know what I mean
<eam>
yorickpeterse: uh yes? meanwhile the perl I wrote in the 90s is still working perfectly
<nofxx>
eam, I disagree, got software running for years w/o any problem
railsraider has joined #ruby
<yorickpeterse>
What I meant is that things don't break radically left and right anymore since 2.0
<havenwood>
NeverDie: There is more to Ruby than Rails. If you disagree you're in the wrong channel.
<yorickpeterse>
2.1 was bumpy due to the GC
<yorickpeterse>
2.2 wasn't that bad
<eam>
nofxx: write more software :D
<yorickpeterse>
anything prior to 2.0 was a wild west
<bougyman>
eam: you never use defined?
<NeverDie>
havenwood: I'm here to see if that's not the case. I'm here for informational purposes.
<nofxx>
eam, write better software ;)
<havenwood>
NeverDie: There's a #RubyOnRails channel for Rails-specific discussion
<bougyman>
a bunch of not-that-old perl stuff is breaking now because of that.
j4cknewt has quit [Ping timeout: 248 seconds]
<eam>
nofxx: api changes don't break software because it's bad
<eam>
they change the interface
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
<bougyman>
eam: will that 90s perl work on perl6?
<yorickpeterse>
miah: what I find interesting about Go is how very few seem to be bothered by the GC. Meanwhile in D land _everybody_ is complaining about the GC
<eam>
bougyman: perl6 is a different language
polyrob has joined #ruby
<bougyman>
ruby has never hidden that major revs will change the api.
<nofxx>
eam, yeah.. ruby is bleeding edge, but it's all for good hehe. At least things move fast, python for instance is 20 years now moving to version 3
<yorickpeterse>
but oh heavens, you need 2 characters more
yfeldblum has joined #ruby
<nofxx>
yeah, #@ is pretty unkown... but dollar signs NEVER
<eam>
yorickpeterse: it adds up for a 30 character one liner -- but the regex access is the bigger issue
<eam>
s/// vs gsub
<yorickpeterse>
(@゚Д゚@;)
<eam>
and bad autoviv behavior
<yorickpeterse>
Also, it worries me people measure syntax by how useful it is for one liners
<nofxx>
more $ lang has more smell ...that's the reason php is a pile of shit
<yorickpeterse>
when was the last time you wrote a one-liner Rails app?
<eam>
yorickpeterse: I don't write apps in perl
hanmac has quit [Ping timeout: 246 seconds]
<shevy>
I don't write rails!
<eam>
I told you I prefer perl for a small subset of problems :)
<yorickpeterse>
well yeah, use whatever floats your boat
snockerton has joined #ruby
<eam>
I'm not making a contentious statement here I hope
<eam>
it's way way better for sed/awk style use cases
vickleton has joined #ruby
<shevy>
I tend to store "one-liners" in a .rb file and just call that though
kraljev11 has joined #ruby
<Senjai>
eam: I.. just use sed and awk
<eam>
why?
<eam>
if you want to talk about gross language syntax, why would you use those over perl?
<Senjai>
eam: Because I understand them, and I don't know perl?
<eam>
they differ between unixes, perl is consistent
<Senjai>
literallytheonlyreason
<eam>
and way more expressive
<eam>
Senjai: ah well, I suggest replacing them
fantazo has quit [Ping timeout: 264 seconds]
wprice has quit [Quit: wprice]
<shevy>
with perl or with ruby
_stu_ has quit [Quit: _stu_]
<Senjai>
Sure, but as this conversation is heading, pick any tool meant to solve the job
<shevy>
or with python or php
<Senjai>
Eh, I haven't had problems. I use them as oneoffs.
<eam>
I'd pick the best tool. I'd never write a shell script for example
baweaver has quit [Remote host closed the connection]
<Senjai>
Nothing wrong with shell scripts
<Senjai>
where it makes sense
<nofxx>
when there's no logic
roolo has joined #ruby
<shevy>
lol
<Senjai>
Or very little
<eam>
I sometimes use ruby for one-liners, but usually they're more like 5-liners in irb (which is fine, it's just a lot more boilerplate for some simple ops)
<eam>
Senjai: there's a LOT wrong with shell scripts, mostly surrounding how variables work
<eam>
you cannot write shell safely
juanca_ has quit [Ping timeout: 246 seconds]
<Senjai>
Sure you can.
<yorickpeterse>
You can also use Node.js for your scripts
<yorickpeterse>
Then even your frontenders can write them
<yorickpeterse>
plus they work in the browser too
<eam>
Senjai: no, you really can't -- and if you think you can I suggest you need to learn more about shell scripts
<ljarvis>
plus they scale
<Senjai>
You could also write your scripts in C, and compile them
<yorickpeterse>
ᕕ(ᐛ)ᕗ
wildroman2 has quit [Remote host closed the connection]
snockerton has quit [Client Quit]
<miah>
tcsh ;)
<Senjai>
eam: Am I confident in writing super cross platform & posix compliant scripts? No, do I care? No
<Senjai>
If i did
snockerton has joined #ruby
<Senjai>
I'd use something else
langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
I'm not talking about portability -- I'm talking about danger of misbehavior due to how variables are string interpolated and evaluated
juanca_ has joined #ruby
podman has joined #ruby
kraljev11 has quit [Client Quit]
JDiPierro has quit [Read error: Connection reset by peer]
<shevy>
eam has been around a while to remember the old days
<Senjai>
Are you talking about that bash bug or something?
<shevy>
of the 1980s :)
JDiPierro has joined #ruby
<Senjai>
I'm not saying its perfect man
<eam>
"that" bug? It's a design issue
<Senjai>
I'm saying my script that curls an api endpoint, and does some formatting with cut and tr, doesnt need to be secure
BanzaiJoe has quit []
<eam>
Senjai: neither of us are saying it's perfect. And I'm saying it's fundamentally dangerous
TheHodge has joined #ruby
kraljev11 has joined #ruby
<Senjai>
eam: Can you link me to a resource that explains this to me?
<eam>
because every time you reference a variable you need to do some rather crazy analysis of how it will be interpolated, quoted and evaluated
<Senjai>
eam: Not all scripts need to use variables
fsvehla has quit [Quit: fsvehla]
<Senjai>
It can just perform a series of operations
<eam>
Senjai: how about this: write me a (should be <2 lines) shell script that simply execs its arguments properly
Guest25_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
railsraider has quit [Quit: railsraider]
<eam>
like ruby -e'exec ARGV'
<apeiros>
IT'S A TRAP!
<eam>
*ARGV w/e :)
<Senjai>
eam: I have something terrible
<Senjai>
but it was just sitting around
Musashi007 has quit [Quit: Musashi007]
<Senjai>
I havent written it, I know its bad
<Senjai>
ill gist
<Senjai>
sec
<eam>
sure, let's look at it, I'll use it as an example
kraljev11 has quit [Read error: Connection reset by peer]
<ljarvis>
350
<eam>
this is why I have 78 irssi windows
kraljev11 has joined #ruby
lkba has joined #ruby
B1n4r10 has joined #ruby
<havenwood>
centrx: That's not true! We were just talking about Streem replacing all other shells when they're deprecated this Fall.
* baweaver
is being cheeky
<baweaver>
but #ruby-meta totally exists
<baweaver>
because funny
<yorickpeterse>
omg you folks this is offtopic
djbkd has joined #ruby
<yorickpeterse>
?offtopic offtopic
<ruboto>
offtopic, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<ljarvis>
?ot yorickpeterse
<ruboto>
yorickpeterse, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse>
no you're offtopic
* ljarvis
puts on wizard hat
<eam>
>_<
<centrx>
Ruby is optimized for programmer happiness, so everything happy is on-topic
<yorickpeterse>
wat
juanca_ has joined #ruby
__butch__ has joined #ruby
<ljarvis>
centrx: nice try
B1n4r10 has quit [Client Quit]
<yorickpeterse>
hmmm...tea
lkba_ has quit [Ping timeout: 246 seconds]
juanca__ has quit [Ping timeout: 252 seconds]
<apeiros>
lol
roolo has quit [Remote host closed the connection]
Bertg has joined #ruby
* apeiros
hugs the channel and waves gn8
<Senjai>
apeiros: Sweet dreams
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
delianides has quit [Remote host closed the connection]
iamninja has joined #ruby
monod has quit [Quit: Sto andando via]
casadei_ has joined #ruby
yardenbar has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
flak has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
djbkd has joined #ruby
rubie has joined #ruby
ldnunes has quit [Quit: Leaving]
rippa has quit [Ping timeout: 252 seconds]
renderful has joined #ruby
davedev24_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
gabhart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
centrx is PHP off topic
sarkyniin has quit [Ping timeout: 264 seconds]
<centrx>
shevy, Take it to #ruby-meta please,thanks
mister_solo has joined #ruby
thiagovsk has joined #ruby
j4d has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]