« first day (33 days earlier)      last day (3206 days later) » 

4:00 PM
@David posted an answer, I'm not an expert with google api's but that looks like it would work
 
thank you so much
 
Thank me if it works lol
 
Morning fellas
 
mornin
 
Anybody have any ideas on this?

http://stackoverflow.com/questions/4206053/windows-server-web-config-strip-index-filename
 
4:03 PM
@Batfan do you have access to IIS to make changes?
 
I do not
Was hoping it would be a simple edit to the web.config file that I could make
 
@batfan give me a minute to look it up, see if I can find an answer for ya
 
@Coding that would be awesome, thanks man
 
can somebody help me with cvs update to the some older date (not in HEAD but in the branch) stackoverflow.com/questions/3300471/…
 
Does it do anything at all or does it fail to match
And, I hate to ask the obvious, but this is IIS7 and you do have the rewriting module installed, right?
@Batfan still there?
 
4:18 PM
@osgx just added an answer, please try that
cvs update -PdC -r BRANCH-NAME-HERE -D "Saturday, May 1, 2010 0:00:00 AM UTC"
 
@Sagar, but it is just like cvs up -r branch -D, isn't it?
 
Yeah, but I mean with the time formatted that way
 
on cvs status its format date like "2010-05-01 10:11:22 -0400"
 
@Coding Gorilla - Sorry got called away from my desk. Yep it redirects the non-www version to the www version.
 
but still keeps the index.htm ?
 
4:24 PM
Yep
 
ok, so we know we're at least hitting the rule, ok, brb :)
 
k :)
 
wait, another question
 
@Sagar, the date in 2010-05-01 format works ok for just -D
 
what if I go to: google.com/mypage1.htm, you want that to redirect to: google.com/mypage1.htm
?
 
4:25 PM
@osgx ok. let me check something
 
Kinda. I want the non-www version to redirect to the www version and on the homepage only, I want the file name of the index to be stripped off. so from domain.com/index.html to www.domain.com
 
bu what if I go to domain.com/mypage1.htm?
 
then it should redirect to www.domain.com/mypage1.htm
 
ok, gotcha
 
@osgx Actually I tried to do the same thing you've tried cvs up -r <branch> -d "yyyy-mm-dd" and it worked for me.
Can you try it work another date and check if it works?
 
4:32 PM
@Sagar Now I do a build to check it.
 
ok
 
@drachtenstern I did, in fact write the obfuscated FizzBuzz
 
4:59 PM
@mootinator I thought so
 
5:25 PM
I just crossed the 500 mark :D
 
@Sagar gz
 
nice :)
 
:D thank you thank you!
lol I'm done bloating now
 
>:(
 
?
 
5:32 PM
ha
 
I'm having one of those errors which is probably obvious, but which I can't seem to find.
Invalid column name 'InvcGrp'.
 
Can you post the query?
 
I would
 
I'm guessing it is a query, btw...(after the fact, I know)
 
But it's a 181 line stored procedure.
 
5:34 PM
Oh
ouch, never mind then
 
What I'm looking at: SELECT c.*, c2.Mindate AS MinDate, c2.InvcGrp
, ROW_NUMBER() OVER (PARTITION BY c2.InvcGrp ORDER BY c.IDINVC, c.CNTSEQNCE) AS DAYSEQNCE
INTO #tmpBid
The query having an error is trying to SELECT invcGrp from #tmpBid
 
in SSMS?
 
Yes...
 
and you've got the sproc open? and you doubleclick on the error and it doesn't help?
I never knew you could doubleclick SSMS errors
somebody showed me when I was trying to debug something and they were right there
I was all /facepalm
 
Hmm
 
5:39 PM
181 line? the one I'm writing is currently 248 with inline documentation, and it's short :|
 
No, it just goes to the line.
It's not the length it's the lack of documentation and complexity, lol.
Oh....
Disconnect/reconnect from SSMS fixed it O_o.
It was trying to be smart.
 
wow, /facepalm indeed
 
lol
The system outsmarting the engineer...
Somehow, that seems to be becoming very common these days :S
@mootinator it turned out to be one of those IT Crowd 'did you turn it off and on again' situations
 
@Sagar Indeed.
 
6:03 PM
hope Coding Gorilla gets back soon :P
 
lol disappeared eh?
 
ha, yep he did. was working on my question
 
time to get some starbucks
brb
 
sweet
 
hello. does anybody know who to lit inner surface of gluSphere in OpenGL? I have a giant sphere in my scene, and any objects including observer are in it. So i want to set materials etc to the inner surface of the sphere.
 
6:10 PM
Wow. No idea . . . sorry
 
I have no clue, and I'm just lurking. Never used gluSphere or OpenGL so ...
 
Anton, check out glFrontFace, I think that might be what you're after
also, this guy seems to be describing a similar prob; objectmix.com/graphics/136652-glusphere-texture-mapping.html
I did this same thing a few years back, but it was in Java3D, so a lot of it was abstracted away - can't quite remember how to render the inside faces.
 
6:33 PM
hello again
 
hi there, got your 'bucks?
 
yep :D peppermint mocha frapp
Wanted eggnog but also didn't want to drink anything steaming right now
 
nice, love that
 
@Batfan I updated that answer for you
 
wb @Coding
 
6:39 PM
Thanks
 
sweet, checking now
 
6:52 PM
@CodingGorilla - Hmm that gave me an 500 error. I'm gonna post my updated code
Posted
 
I'm guessing the rule name needs to be unique (just off the top of my head)
make one of them CanonicalHostName1 and the other CanonicalHostName2
 
k
 
any one know how to access the windows isolated storage?
 
Via program or manually?
 
I was thinking "with a screwdriver" :p
 
7:05 PM
\Documents and Settings\<user>\Application Data
OR
\Documents and Settings\<user>\Local Settings\Application Data

:P
 
@Sagar manually, yea I just found that :)
 
lol Marc
 
@CodingGorilla - no error now but, its not stripping the filename
updated the code in the post again
 
#Batfan I updated my rule, on the match, get rid of the ^ & $ on the beginning and end of the pattern
those are anchors and the url probably comes in raw including the http://
 
hmmm k
@CodingGorilla - Still nothing. I'm assuming that I'm okay to change /index\.htm(?:l)?" into /index\.html(?:l)?"
'index.htm' to 'index.html'
 
7:20 PM
yea, you can just put index\.html the (?:l)? just makes the ending 'l' optional
 
hmmm, i did. not working
 
try making it REAL simple just put url="/index.html"
that might be overkill, but for a test it will tell us if the match is the problem or something else
 
sure. do i need to remove the slash before the period?
 
so, is it official that stack overflow was a bad idea?
stack overflow chat***
:P
 
@batfan no, sorry you still need that
@segault why do you say that
 
7:25 PM
@Segfault why?
 
there are only 22~ people here
 
@CodingGorilla - nope didnt work
 
and not only in this room, i'm talking about all of the rooms
 
@Batfan So it still redirects but keeps the index.html?
 
yep
 
7:27 PM
delete the second rule and see what happens
it's hard to do this without access to iis =\
 
@Segfault It is in the middle of the day in the US (people @ work) and it is evening in Europe (people @ pubs)
:)
 
@CodingGorilla - No longer redirecting and still not stripping the file name.
 
ok, so that means it's a matching issue one the first rule
so what exactly is the url you're entering?
 
with the http and www
 
I feel regex going on here...
 
7:33 PM
and you have: url="/index\.html" ?
 
yep <match url="/index\.html" />
 
take the leading / out, try again
 
nothing
 
blah! this should be working
 
@Sagar Good point, though I never saw more than 50 people online
 
7:36 PM
haha
But the chat is a brilliant idea, IMHO anyway
 
I like it, but I also think it's redundant, due to IRC
 
ok, try changing the: url="(.*)", should match on everything
just to see if the redirect with the strip works
 
nope
 
What regex is this (Java? Perl?) ?
 
IIS Rewriting, supposed to be perl compat
@Batfan is the second rule in still?
 
7:41 PM
yep
 
get rid of the second rule, and the one with the {R:1} for now
 
@CodingGorilla - Well that's interesting. It does not strip off the filename but, if you go to any URL with the www, it redirects to the index
domain.com/about.html to www.domain.com
 
right, that's what it should be doing now
 
oop, i meant if you go to any URL without the www
 
yes, that's what I expected
so now change it back to: url="index\.html"
and see if it has the same behavior
 
7:50 PM
yep, now only the index page is doing that redirect, without the www
 
ok, so now if you add the second rule back, below the first rule, it should work the way you want
 
okay, now its only stripping the file name if you remove the www
 
right, that's what you want?
 
almost, i want both versions to strip the file name off. domain.com/index.html and www.domain.com/index.html
 
ah... ok so change the first rule, make:
`<add input="{HTTP_HOST}" pattern="^www\.domain\.com$" negate="true" />`
this:
`<add input="{HTTP_HOST}" pattern="domain\.com$" negate="true" />`
minus the backticks that didnt work the way I wanted =\
 
7:58 PM
like this?
<add input="{HTTP_HOST}" pattern="islandcatastrophe\.com$" negate="true" />
 
hmmm, thats not working
for either version
 
ok, updated my answer, see if we're different anywhere
btw, I found my original typo =(
 
k
copied out yours exactly, still not stripping off the file name
 
get rid of the negates on the conditions
if I read the docs correctly, that means that's like doing HTTP_HOST != "domain.com"
which is not what we want
 
8:09 PM
well theres a change finally, im getting redirect loop error
 
put ^ in front of domain so it would be: pattern="^domain\.com$"
that anchors it so it wont match on www.domain.com
 
for which rule?
 
actually, do that for both rules, because you dont need to touch: www.domain.com/mypage.htm right?
you would only want to touch: domain.com/mypage.htm
 
right, as long as the www is added
 
yea, so change that pattern on both rules
updated my answer [again]
 
8:13 PM
redirect loop again
 
does it look like my answer?
 
okay copied out your answer, its stripping the file name only if the www is missing
 
crap, I forgot you want to do that on both!
 
lol yeah
 
ok, so if you take the ^ out of the first pattern's condition do we get a loop?
I think you will and I dont think you are going to be able to fix that
 
8:20 PM
ha, actually i dont, its working perfectly now
 
Ok, I wasn't sure, because technically a request for "/" is a request for "/[default document]" so I wasn't sure if that would confuse IIS or not
 
hmmm, weird. working great now though
 
awesome
 
thanks a ton man, i really appreciate the help. Im decent with htaccess but, im lost when it comes to windows
im totally lost
 
no problem, hopefully we didn't upset anyone with all this chatter :)
 
8:26 PM
lol yeah
are you going to update your answer or do you want me to post the code?
 
I am enraged by all this chatter.
 
updated
 
Enraged.
 
yea but you dont count, you dropped a fridge and were talking about how to fix it... Mr. Off-Topic over there :P
 
awesome
 
8:29 PM
Off-topic in general chat, ay.
 
back to work... have a good weekend guys
 
I'm offended at how specific that conversation was ;)
 
take it easy
 
Cya batfan
 
so can we go back to boring stuff nobody cares about? :p
 
8:34 PM
I dont care
 
0
Q: disable script running from c#/asp.net

LazialeHello I want to disable this script for twitter widget to be displayed on some pages. How can I access the script from the backend and change the url on runtime? Thanks in advance

@CodingGorilla I knew I could count on you!
 
I think we need to have him translate that into russion, cuz I have no idea what he's asking
 
0
Q: Some questions coming from application programming (C#/Visual C++) to ASP.NET (C#)

Moo-JuiceHi All, At the new place I am working, I've been tasking with developing a web-application framework. I am new (6 months ish) to the ASP.NET framework and things seem pretty straight forward, but I have a few questions that I'd like to ask you ASP professionals. I'll note that I am no stranger...

I think this one will be fun to answer :D
 
1
Q: Any VB 'With' analog in C#?

serhioVB.NET With Alpa.Beta.Gama.Eta.Zeta .ZetaPropertyA = a .ZetaPropertyB = b .ZetaPropertyC = c End With C#? Alpa.Beta.Gama.Eta.Zeta.ZetaPropertyA = a Alpa.Beta.Gama.Eta.Zeta.ZetaPropertyB = b Alpa.Beta.Gama.Eta.Zeta.ZetaPropertyC = c

Oops! Your answer couldn't be submitted because:
•body must be at least 15 characters; you entered 4
 
@Coding congratulations! Finally got it, I see..
 
8:36 PM
Guess what my answer was :P
 
?
 
@Sagar Yea it took me an hour to realize that the original answer I gave him had a typo in it... but we got it finally
 
lol what did the pattern finally look like?
 
1
A: Windows Server Web.config Strip Index Filename

Coding GorillaIn order to get rid of the index.html after the redirect, drop the {R:1}. But then you will need to modify that rule so that it triggers only for /index.html requests and create a new rule that triggers on other pages that includes the {R:1} so that requests for mydomain.com/mypage.html will sti...

 
8:52 PM
wow
 
@CodingGorilla you beat me to it :(
0
A: Some questions coming from application programming (C#/Visual C++) to ASP.NET (C#)

drachensternSo here's the main thing that you're going to want to keep in mind. The IIS may get reset or may reset itself (based on criteria) while you're working. You can never know when that will happen unless it stops rendering your page while you're waiting on the response (in which case you'll get a bro...

 
woot :)
You spent to much time on formatting and pretty headers :P
 
lol, yeah, cos 9 = and 9 - or however many I did really cost me a lot of keystrokes
also, I didn't know you always got called application_end on apppool_restart
interesting ...
I'm just used to expecting the pool to drop out from under me, so I plan for that
 
Yea, it should always fire, unless the pool crashes or is end tasked
 
Or the power goes off.
 
9:01 PM
yea well if that happens it don't matter :P
 
I tend to worry about the pool crashing more than just a simple restart
 
I worry about the restarts, because our IT department thinks that everytime there's a problem with a website they should restart the app pool or IIS itself
Woo, I'm inching closer that 2500 rep mark :)
 
Woo, writers.stackexchange.com closed beta O_o.
 
GAH, no upvote love? :p
@mootinator cool!
 
I upvoted ya
@mootinator are you a writer?
 
9:08 PM
@CodingGorilla Not lately.
I wrote a play or two back in the day.
 
What's the writers.stackexchange.com ?
 
woot upvote love :D
I pretend to write stories
it's fun
 
I pretend to read them :P
I need to get my super user rep up, it's only 265 :(
I spend too much time on SO
 
@CodingGorilla Q&A for all varieties of writers and critics
Eugh, finding a test case for this is going to be ridiculous.
 
9:25 PM
Oh, I know that feeling!
 
I'm using SQL, though. I could just query for test data. lol
 
9:46 PM
I think I've read this before many times, but I always forget the exact reason. Why does code like
char *foo = malloc(4);
strcpy(foo,"12345");
printf("%s\n",foo);
work on common compilers architectures?
even malloc(1) instead of 4
 
Because strcpy does not check for boundaries
 
no, I mean when outputting the string
or when writing the string on the var
shouldn't it segfault because it's accessing memory from another process?
 
It would, but it is not necessary, which is why it is dangerous
 
oh, not necessarily, and that's why it usually works. One would have to be working with much more memory
 
yep
 
9:48 PM
to be within another processes bounds
 
if your allocated memory looks like: [1][2][3][4]
 
and you write "1234567"
the 6 and 7 will be written. But you don't know whether it overwrote something, or whether that portion of memory was free
*actually the 4,5,6,7 (since you should also allocate for the \0 terminator
 
yes, three cases (1.- overwrite data in the same process, legal, leading to weird errors 2.- overwrite free data, legal, leading to working by coincidence 3.- overwrite data from another process, segfault)
 
yep
but the segfault can also happen if it overwrites its own program's memory too...just depends on what is there
 
9:52 PM
no, the segfault usually happens when you operate in the overwritten data because the structure is corrupted
not when overwriting it
if on the same process
 
yeah
 
usually via overwriting a supposed address and making it point outside the bounds of current process
 
It is rare, but there could be something from your own process in that area..or am I completely off on that?
which your process could try to operate on
hmm
 
in what area?
 
in our example, in the area where 4,5,6,7 got stored (after the preallocated memory)
anyway, never mind
but yeah, strncpy() is a better option, it checks for length
 
9:58 PM
Yes, and don't forget to allocate one extra
 
yep
 
10:38 PM
0
Q: V8 engine compiles JavaScript to machine code. So, why node.js isn't faster than C?

Polat AlemdarAccording to language benchmarks, JavaScript V8 is faster than other programming languages at regex-dna program. So, why node.js applications (i.e. http server) isn't faster than C applications (i.e. Nginx, Lighttpd)?

 
ok?
 
11:28 PM
Ima asplode
Client two months ago: There are no associations between these columns, so use this assumption.
Client today: These associations are inaccurate. We need them to be accurate so we can use them.
And I left my magical association genie at home today.
 
They always do so
 
0
Q: How and when using 'ALL' in imap_search

silentI'm on my way learning IMAP using PHP. Right now, I'm learning imap_search function. I have question specifically on ALL criteria. I'm using it like this: $emails = imap_search ( $mailbox, 'BODY "lamaran"' ); $emails = imap_search ( $mailbox, 'ALL BODY "lamaran"' ); I got the same result usi...

Does anybody know the answer?
 
hello
 
Hi.
 
11:56 PM
hi everyone
 

« first day (33 days earlier)      last day (3206 days later) »