- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Yo dawg I heard u liek dead horses...
Admin
So i herd u liek mudkipz
Admin
ITT: devolution in action!
Admin
[quote user="Buddy"][quote user="getofmymetriclawn"][quote user="SoaperGEM"] Kind of grotesque image, that - beating a dead horse with another dead horse. [/quote]
It is the national sport in my country. Afterwards we eat the horse meat.
Admin
Wait...didn't the Postal Dude eat elephant steaks from that ranch in Paradize, AZ?
Admin
Dim LangIdx as integer Dim MyPage As String = Request.Url.ToString LangIdx = instr(1,MyPage,"&lang=",vbTextCompare) MyPage = left(MyPage,LangIdx-1) & mid(MyPage,LangIdx+8)
or
Dim MyPage as String = left(Request.Url.ToString,instr(1,Request.Url.ToString,"&lang=",vbTextCompare)-1) & mid(Request.Url.ToString,instr(1,Request.Url.ToString,"&lang=",vbTextCompare)+8)
if you like it really ugly
Admin
Strawman. Red Herring. Blah blah blah. You're only reinforcing my assertion.
Admin
Admin
?lang=%65%6E&comment=FAIL
Admin
It wouldn't be particularly hard if he used code to write code. :)
Admin
The realWTF is the language English having lower and upper case. IT SHOULD HAVE HAD LOWER CASE ONLY.
Admin
Not everyone's brain is Turing complete.
Admin
case sensitivity is one of the stupidest things ever conceived...
The simple and most superior solution is to strip the case sensitivity... that is replace A with a, B with b, etc... once you do that, you don't have to account for it anymore, because you have already made it all lower case. You can simply and safely strip only the lowercase version of each language you want to strip.
Admin
PS. if you don't want to do that, you can still do less work by:
Dim MyPage As String = Request.Url.ToString MyPage = Replace(MyPage, "L", "l") MyPage = Replace(MyPage, "A", "a") MyPage = Replace(MyPage, "N", "n") MyPage = Replace(MyPage, "G", "g") MyPage = Replace(MyPage, "E", "e") MyPage = Replace(MyPage, "R", "r")
MyPage = Replace(MyPage, "&lang=en", "") MyPage = Replace(MyPage, "&lang=gr", "")
But I still think its better for everyone involved if all capital letters are made into small letters.
Admin
wish this line of comment could be of some help - this routine is absolutely cAsE sEnSiTiVe :o)