00:39
bradgonesurfing joined
02:38
<shilin>
hi, how do I make use of authenticate_or_request_with_http_basic in sinatra? Or what else really simpe I can use instead of it?
02:40
<cypher23>
shilin, you don't. There's a Rack middleware for that
02:41
<shilin>
Rack::Auth::Basic - that one?
02:41
<harryv>
use Rack::Auth::Basic do |login,pwd| login == "foo" && pwd == "bar" end
02:47
<erthad>
or you can use Rack::Warden -- it is a more complex to use than Rack::Auth but allows to authenticate virtually anywhere
02:58
<shilin>
thanks, guys
06:06
hipertracker joined
08:25
millionmonkey joined
09:34
BrianTheCoder joined
12:22
bradgonesurfing joined
12:25
flegelleicht joined
12:29
<pjammer>
highfives eladmeidar
12:35
<pjammer>
request.params may very well be what i need.
14:23
<stahnma>
is there a method to destroy a session? right now I am just nilling out value, which seems hackish
14:35
<sr>
rtomayko, ping
14:36
<rtomayko>
sr: pong
14:36
<rtomayko>
you down at the cafe?
14:36
<rtomayko>
are we gonna do this thing or what?
14:49
<sr>
rtomayko, we definitely are
14:50
<sr>
rtomayko, dont have the address, though. also i gotta go to the bank and get my clothes washed before leaving so i am gonna be there around 3:30pm
14:54
flegelleicht joined
14:59
<sr>
rtomayko, whats the address?
15:00
<rtomayko>
sr: cavelli cafe. corner of stockton, columbus, and green
15:01
<rtomayko>
try columbus and green if you're putting it into a map app
15:02
<robgleeson>
stahnma: kind of, you could do response.delete_cookie('rack.session') but that pretty does the same thing as you're doing
15:03
<robgleeson>
pretty much*
15:03
<stahnma>
robgleeson: thanks, I'll try that out
15:24
<rtomayko>
sr: I'm jumping in the shower real quick. be down in 15.
16:02
<sr>
rtomayko, still doing laundry shit. will call a cab in about 10
16:02
<rtomayko>
ahh okay. I'm just now heading down. so perfect.
16:52
charlenopires joined
16:58
<GitHub3>
sinatra.github.com: 07master 03Simon Rozet * a5dd65a (1 files in 1 dirs): better navigations links -
http://bit.ly/aPkG25
16:59
<GitHub150>
sinatra.github.com: 07master 03Simon Rozet * 50cd149 (1 files in 1 dirs): same for the homepage -
http://bit.ly/aPa1N5
17:25
<GitHub198>
sinatra: 07master 03Simon Rozet * ccb66b0 (2 files in 2 dirs): get rid of backtrace cleaning -
http://bit.ly/d6u8q4
18:25
<GitHub142>
sinatra: 07master 03Blake Mizerany * 8a7dd92 (1 files in 1 dirs): mention pass blocks in CHANGES -
http://bit.ly/bH95as
18:27
<halorgium>
TomV-415: use rack_hoptoad
18:52
<TomV-415>
halorgium: Here's my rack_hoptoad version -
http://gist.github.com/328707 also not working, but I do see hoptoad.notified is set to true looking at Rack.env
18:52
<TomV-415>
any ideas? Am I missing something obvious here?
19:05
<TomV-415>
I may try getExceptional -- anyone used that in sinatra?
19:06
<TomV-415>
but getExceptional is $108/year...
19:11
<chuck>
Does Sinatra have the ability to filter parameters from log files?
19:17
<TomV-415>
FYI update - looks like Exceptionall is now purely a rails gem..
19:19
<TomV-415>
(getExceptional.com) bummer.
22:12
<mouse-_>
hey there. i'm wondering, does the hash part of a GET request get sent to the server, and if so, where would it be in sinatra variables?
22:13
<mouse-_>
127.0.0.1 - - [10/Mar/2010 23:44:31] "GET /server HTTP/1.1" 200 3112 0.0450
22:13
<johnny>
ah.. the fragment
22:13
<defunkt>
mouse-_: server doesn't see it
22:13
<johnny>
i don't think o
22:13
<defunkt>
unfortunately
22:13
<mouse-_>
someone told me it did, and i really don't believe them
22:13
<johnny>
yeah.. it's always meant page fragment to the browser
22:13
<johnny>
not at all on the server
22:13
<mouse-_>
Right. OK, so that's the way ajax is supposed to be handled
22:13
<mouse-_>
maybe someone has an idea of how I can grab that with javascript for a redirect? heh
22:14
<defunkt>
window.location.hash
22:14
<mouse-_>
hmm, OK, so check that on a page load then
22:17
<mouse-_>
too bad, that means that it will not work for js-enabled browsers
22:17
<mouse-_>
now i remember why i never bothered with web design
22:17
<johnny>
mouse-_, most people have js on now tho
22:18
<johnny>
so you'll probably be ok
22:18
<mouse-_>
yeah, heh
22:18
<johnny>
mouse-_, i know why i did'nt really bother wieht web design
22:18
<johnny>
it wasn't lack of js..
22:18
<johnny>
3 characters.. one is a number less than 7
22:19
<mouse-_>
my site is progressive enhancement anyway
22:19
<johnny>
can you guess? :)
22:19
<mouse-_>
so those who don't have it enabled will never get to the hash. I guess it only matters when a js-enabled client sends a link to a non-js enabled one
22:20
<mouse-_>
let me think, johnny....
22:20
<johnny>
that doesn't have a number in it..
22:20
<mouse-_>
it's almost a number if you -e+i
22:21
<johnny>
ie6 is the devil :(
22:21
<johnny>
so glad google is forcing it to die
22:21
<mouse-_>
ahhhhh hehehehe
22:21
<mouse-_>
i think everyone on the planet is forcing ie6 to die
22:21
<johnny>
sure.. but until something big like youtube doesn'twork
22:21
<mouse-_>
poor freaking intranets
22:21
<johnny>
it won't matter
22:21
<johnny>
still tho.. i'll be happy with i can only support ie9..
22:21
<johnny>
ie8 is much better than 7 tho.
22:25
<mouse-_>
lol, i have absolutely no experience with any ie
22:26
<mouse-_>
why anyone would use ie is beyond me
22:26
<johnny>
it's a big E and it says internet
22:28
<russm>
mouse-_: because they work in a company that has IE6 as the SOE browser?
22:28
<russm>
those clients are the bane of my life...
22:29
<johnny>
well.. at least ms backtracked and allowed ie7 in XP
22:29
<johnny>
i remember when they were'nt going to do that
22:29
<johnny>
now you can even get ie8 in xp