runeb has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
martin_ has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
martin_ has left #ruby-lang [#ruby-lang]
mkonecny_ has joined #ruby-lang
GeissT has quit [Read error: Connection reset by peer]
GeissT has joined #ruby-lang
mkonecny_ has left #ruby-lang [#ruby-lang]
hogeo has joined #ruby-lang
dingus_khan has joined #ruby-lang
mkonecny_ has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
mkonecny_ has left #ruby-lang [#ruby-lang]
face has quit []
martin__ has joined #ruby-lang
<martin__>
first time question here: i do not understand a solution posted here: http://stackoverflow.com/a/5030173/276949 - in file "helpers/init.rb" is he calling a block with a module as the parameter?
GeissT has quit [Quit: MillBroChat AdIRC User]
hogeo has quit [Ping timeout: 260 seconds]
tomzx_mac has quit [Ping timeout: 248 seconds]
<martin__>
if this is the case, is the block doing something with the module? I does not seem to be...
wallerdev has quit [Quit: wallerdev]
<Rakko>
it's not a block but the module is the parameter
macmartine has joined #ruby-lang
face has joined #ruby-lang
teleological has joined #ruby-lang
<martin__>
Rakko, if it's not a block what is it? I have no idea term to google
<ryanf>
martin__: it's just a method call
<ryanf>
it's the same thing as MyApp.helpers(PartialPartials)
<ryanf>
helpers is a method that takes one parameter
<ryanf>
this code is passing a reference to the module PartialPartials as that parameter
<martin__>
ryanf, what I don't get is that I don't see that method defined as taking a param? It's defined in MyApp class correct?
synthetix has quit [Remote host closed the connection]
teleological has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
<ryanf>
MyApp is inheriting from Sinatra::Application
<ryanf>
that method is defined somewhere inside Sinatra
<martin__>
ryanf, i see - thanks :)
<ryanf>
no problem
runeb has joined #ruby-lang
sailias has quit [Quit: Leaving.]
tylersmith has joined #ruby-lang
runeb has quit [Ping timeout: 240 seconds]
face has quit [Read error: No route to host]
sush24 has quit [Quit: This computer has gone to sleep]
<yorickpeterse>
the Dutch have a perfect saying for this: "Wij van WC eend adviseren WC eend", which translates to "We from Toilet Duck (company that makes toilet cleaning stuff) advice Toilet Duck"
<yorickpeterse>
which is from a legendary TV ad from the 80s
<yorickpeterse>
ha, it's even on Wikipedia
<charliesome>
yorickpeterse: haha that windows server vs rhel page is hilarious
<charliesome>
"Red Hat’s business is based on annual subscriptions for OS support—you pay a subscription for every server, every year. And, if you want 24/7 support, you’ll pay more."
<charliesome>
no mention of 24/7 support in the windows column lol...
justinmburrous has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
sush24 has joined #ruby-lang
pskosinski has joined #ruby-lang
havenwood has quit [Ping timeout: 256 seconds]
runeb has joined #ruby-lang
postmodern has quit [Quit: Leaving]
justinmburrous has joined #ruby-lang
runeb has quit [Ping timeout: 264 seconds]
hashkey has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
<yorickpeterse>
"Remember that anyone who has your authentication token can see and change everything you have access to. So you want to guard that as well as you guard your username and password. If you come to fear that it has been compromised, just change your regular password and the authentication token will change too."
<yorickpeterse>
who the fuck ties a token directly to a password?
<yorickpeterse>
Might as well just use your fucking username/password itself seeing how this has zero security benefits
Aria has quit [Remote host closed the connection]
Aria has joined #ruby-lang
Aria has quit [Remote host closed the connection]
Aria has joined #ruby-lang
<Aria>
yeah, erikh, I am drinking it. And boy is it tasty.
<yorickpeterse>
zzak: ordered one of those berlington Ruby catnip toys
<yorickpeterse>
dis gun be good
GeissT has quit [Quit: MillBroChat AdIRC User]
rippa has joined #ruby-lang
martin__ has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby-lang
poga has joined #ruby-lang
MartynKeigher has quit [Ping timeout: 245 seconds]
<zzak>
hahaha
<yorickpeterse>
he already has a scratch mat/thing with catnip in it so he's in for a fun trip
mytrile has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
mytrile has joined #ruby-lang
teleological has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
weems has joined #ruby-lang
megha has joined #ruby-lang
jsullivandigs has quit [Read error: Connection reset by peer]
jsullivandigs has joined #ruby-lang
havenwood has joined #ruby-lang
tylersmith has joined #ruby-lang
martin__ has joined #ruby-lang
teleological has joined #ruby-lang
teleological has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 256 seconds]
weems has quit [Ping timeout: 256 seconds]
arubin has joined #ruby-lang
DomKM has joined #ruby-lang
DomKM has quit [Client Quit]
DomKM has joined #ruby-lang
teleological has joined #ruby-lang
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
blacktulip has joined #ruby-lang
weems has joined #ruby-lang
weems has quit [Changing host]
weems has joined #ruby-lang
mytrile has joined #ruby-lang
swygue has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
gr4yscale has quit [Quit: Computer has gone to sleep.]
<zzak>
22 minutes!
weems has quit [Ping timeout: 256 seconds]
<andrewvos>
OMG just spent like half an hour writing an app that stores the OAuth client secret in the actual iOS app
<andrewvos>
Facepalm
<andrewvos>
I don't particularly like oauth
<andrewvos>
How do I do this? All I want is to get a simple value from an API
<andrewvos>
But if I make a site that handles this stuff then I'm just opening the user up to a new security vulnerability
<andrewvos>
And I don't want the user to have to create an account on my site too, that just means two logins on an iPhone.
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
<andrewvos>
So now if I want to create a simple iPhone app that uses an external api that uses oauth, I have to create my own api, and make sure I have ssl on there too.
<andrewvos>
Imma just shut up and create the api
mbj has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
teleological has quit [Remote host closed the connection]
swygue has quit [Remote host closed the connection]
mytrile has joined #ruby-lang
swygue has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
<rue>
Good job
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<andrewvos>
Can someone go ahead and delete everything I said, because apparently I am actually an idiot.
<andrewvos>
rue: move along here
<andrewvos>
nothing to see here
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
imperator2 has quit [Ping timeout: 256 seconds]
jsullivandigs has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
saarinen has joined #ruby-lang
mbj has joined #ruby-lang
mbj has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
dustint has quit [Ping timeout: 256 seconds]
bzalasky has joined #ruby-lang
dustint has joined #ruby-lang
havenwood has joined #ruby-lang
benlovell has joined #ruby-lang
dustint has quit [Ping timeout: 240 seconds]
Asher has quit [Ping timeout: 246 seconds]
bzalasky has quit [Remote host closed the connection]
rsl has quit [Ping timeout: 260 seconds]
Asher has joined #ruby-lang
roadt has quit [Ping timeout: 256 seconds]
saarinen has quit [Quit: saarinen]
Aria has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
ebouchut has joined #ruby-lang
wallerdev has joined #ruby-lang
bzalasky has joined #ruby-lang
[[thufir]] has joined #ruby-lang
[[thufir]] has quit [Quit: Leaving.]
jxweng has joined #ruby-lang
tylersmith has joined #ruby-lang
benlovell has quit [Quit: leaving]
Fretta has joined #ruby-lang
teleological has joined #ruby-lang
tylersmith has quit [Ping timeout: 264 seconds]
marr has joined #ruby-lang
[[thufir]] has joined #ruby-lang
grobb has joined #ruby-lang
fdot has joined #ruby-lang
agarie has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
tomzx_mac has joined #ruby-lang
elia has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
breakingthings has joined #ruby-lang
hogeo_ has joined #ruby-lang
hahuang65 has joined #ruby-lang
hogeo has quit [Ping timeout: 248 seconds]
bzalasky has joined #ruby-lang
tylersmith has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
mbj has joined #ruby-lang
apeiros has quit [Ping timeout: 245 seconds]
bzalasky has joined #ruby-lang
sailias has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
sailias has quit [Client Quit]
Aredridel has joined #ruby-lang
jxweng has quit [Ping timeout: 256 seconds]
fdot has quit [Quit: fdot]
Aredridel has quit [Read error: Connection reset by peer]
plurt has joined #ruby-lang
plurt has quit [Client Quit]
Aredridel has joined #ruby-lang
[[thufir]] has quit [Quit: Leaving.]
adambeynon has joined #ruby-lang
jg has joined #ruby-lang
Aredridel is now known as Aria
jg has quit [Ping timeout: 264 seconds]
<yorickpeterse>
bah, I don't like it when some IRC channel is on some network other than Freenode
<yorickpeterse>
too much effort to go to a different network
<whitequark>
you're just lazy
<yorickpeterse>
that too
elia has quit [Ping timeout: 256 seconds]
<ddfreyne>
IRC should be decentralised :)
<whitequark>
this is a direct consequence of being decentralized
mucker has joined #ruby-lang
rsl has joined #ruby-lang
sush24_ has quit [Quit: This computer has gone to sleep]
tylersmith has quit [Remote host closed the connection]
jg has joined #ruby-lang
<yorickpeterse>
heh, seems the Campfire API has a bad case of smurf code
<andrewvos>
Spent hours getting oauth working for this API, and it turns out they don't do what I want anyway. Now need to git revert and scrape the data I need :( :(
chrishunt has joined #ruby-lang
<whitequark>
yorickpeterse: I KNOW RIGHT
<whitequark>
i fucking wrote a parser
grobb has joined #ruby-lang
<yorickpeterse>
you should get a t-shirt with that
<yorickpeterse>
"I know this shit, I wrote a Ruby parser"
<yorickpeterse>
sometimes quickmeme is actually useful
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
nathanstitt has joined #ruby-lang
mbj has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 256 seconds]
grobb has quit [Quit: grobb]
DomKM has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
<whitequark>
yorickpeterse: the meme was irrelevant
<whitequark>
the t-shirt idea, hmm...
<whitequark>
dunno. the only acceptable form would be "I WROTE A FUCKING RUBY PARSER", however it's pointless in everyday life and for conferences this is not the tone I like. I'm not dhh for that matter.
<whitequark>
so, no.
havenwood has joined #ruby-lang
<yorickpeterse>
boo
<yorickpeterse>
I think I actually have a "JAVASCRIPT MOTHERFUCKER, DO YOU SPEAK IT?" t-shirt
<yorickpeterse>
but I never wear it since I hate Javascript
tylersmith has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
weems has joined #ruby-lang
teleological has quit [Remote host closed the connection]
teleological has joined #ruby-lang
workmad3 has joined #ruby-lang
mbj has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
weems has quit [Changing host]
weems has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
Squarepy has quit [Remote host closed the connection]
Aria has joined #ruby-lang
sebastiansier has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
jxweng has quit [Quit: Lost terminal]
chrishunt has quit [Quit: ZzZzZz...]
pskosinski has quit [Ping timeout: 240 seconds]
bzalasky has quit [Remote host closed the connection]
cofin has joined #ruby-lang
plurt has joined #ruby-lang
plurt has quit [Client Quit]
havenwood has joined #ruby-lang
imperator2 has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
blacktulip has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
imperator2 has quit [Ping timeout: 276 seconds]
justinmburrous has quit [Ping timeout: 256 seconds]
mrfelix has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
alessio_rocco has quit [Remote host closed the connection]
imperator2 has joined #ruby-lang
bzalasky has joined #ruby-lang
nathanstitt has joined #ruby-lang
tylersmith has joined #ruby-lang
teleological has quit [Remote host closed the connection]
teleological has joined #ruby-lang
tylersmith has quit [Ping timeout: 248 seconds]
runeb has quit [Remote host closed the connection]
imperator2 has quit [Ping timeout: 256 seconds]
nazty has quit [Read error: Connection reset by peer]
LinkedoT has quit [Ping timeout: 276 seconds]
LinkedoT has joined #ruby-lang
nazty has joined #ruby-lang
pablo_ has joined #ruby-lang
mrfelix has quit [Quit: Computer has gone to sleep.]
justinmburrous has joined #ruby-lang
postmodern has joined #ruby-lang
justinmb_ has joined #ruby-lang
Squarepy has joined #ruby-lang
schlecht has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Ping timeout: 246 seconds]
Aria has quit [Read error: Connection reset by peer]
idkazuma has joined #ruby-lang
mbj has quit [Ping timeout: 276 seconds]
chrishunt has joined #ruby-lang
tylersmith has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
idkazuma has quit [Remote host closed the connection]
Aria has joined #ruby-lang
fosky has joined #ruby-lang
teleological has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
agile has quit [Ping timeout: 264 seconds]
lcdhoffman has joined #ruby-lang
imperator2 has joined #ruby-lang
sebastiansier has quit [Ping timeout: 256 seconds]
rsync has joined #ruby-lang
toretore has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
agile has joined #ruby-lang
dingus_khan has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 256 seconds]
<dingus_khan>
is there a method that behaves the same as join, but permits joining on a pattern or accepts more arguments, for strings?
hogeo_ has quit [Remote host closed the connection]
<Aria>
"joining on a pattern"?
vlad_starkov has quit [Ping timeout: 256 seconds]
stamina has quit [Ping timeout: 246 seconds]
<dingus_khan>
right, so I have intervals of digits I need to group together, converting from a fixnum to a string, then splitting, then joining in the groupings, while adding commas
<dingus_khan>
it's the whole "add commas to an integer" thing, so 10000 becomes "10,000"
<dingus_khan>
I've got the right regex for one test case, but I'm trying to remember if there was a way to do all that with a built-in method
<dingus_khan>
right, that's what I was thinking, thank you! EACH_slice, I'm an idiot
<Aria>
Happy to help.
<dingus_khan>
and map, forgot about map, sigh.
<Aria>
Hehe. Easy to do if you're not used to chainable or functional operations.
<dingus_khan>
thank you, you just saved me a great deal of wheel-spinning and ramming through permutations of that exact phrase
<dingus_khan>
I was trying to chain the wrong things, is what it was. the docs just leave me hard-up for details so often, and me running through my guesses on irb is a slow and tedious method
Aria has quit [Read error: Connection reset by peer]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
runeb has quit [Ping timeout: 260 seconds]
Aria has joined #ruby-lang
<Aria>
Herp derp. Apparently I spoke too soon about the quality of amtrak wifi in Maine.
nathanstitt has joined #ruby-lang
teleological has joined #ruby-lang
<dingus_khan>
And here I thought I was talking too much, lol