Shake it again and they all come back where they were... :)
Hosey
Posts
-
Odd Windows 7 feature -
Testing the obvious....I posted an example like this in the lounge a few months ago... also found ASP code like this...
for each element in Request.form
if request.form("specificElement") <> "" then
someVar = request.form("specificElement")
...
[do some other stuff]
end if
nextIt hurts both my eyes and my brain :(
-
Why I Hate VB TodayYou just described my progression through VB development... :)
-
Why I Hate VB TodayAhh the elusive "Fit gamer chick"... a species that is almost exstinct.. :((
-
Games from SteamSeems like a basic "design flaw". Like you say, a game you purchase the media for (online or via retail outlet) you can install and all users of the pc can access the game under their own logins. Think that should be the next job of work for steam... local user security allowing authenticated "steam content" to be used on that pc. Once the game is purchased on your account, and downloaded successfully, that install of the OS can access the games regardless of the local user logged in, and steam login. Since you can only login to (and use) a single account at a time on a desktop PC, it shouldnt be a problem. Just my thoughts.
-
Games from SteamInteresting. I guess because its just me that uses this pc, and I rarely close steam I havent noticed that it wouldnt work without steam running. Thats a shame, still it was worth a try.
-
Games from SteamNot all games purchased on steam need to be run thru steam. To find out which go to your steam folder (X:\Program Files\Steam\steamapps) and in there you should have a folder for each of your logins and a "Common" folder. Some of the games installed to the common folder can be run straight from that folder - once you have located the main .exe (so far i've done this with a couple of mine) without steam even running. Exceptions include games like Call of Duty: Modern Warefare 2 - that was built to only run through the steam network - but Modern Warfare 1 (COD4) will run like this. Worth checking out in case you can create some shortcuts for the games your kids like to play...
-
Games from SteamI have over 120 games on my main steam account (and about 25 on my media centre pc account - saves me logging in and out, and have duplicate copies for the occasional in-house multiplayer game) and I get on well with it. It has some flaws (what system, either virtual or physical, doesnt??) but its positives are good: Game always belongs to you (dont worry about losing that pesky cd) Use on multiple computers (not at the same time, but no install restrictions) Really good deals and "special offer" days Portability/backup (i know someone else mentioned this) I know the flaws exist: Have to download the game... games like GTA IV took a little while, weighing in at 16GB - and lots more games are being released with huge installs... but bandwidth is becoming more available, and driving to a store or ordering online for delivery also takes time... DRM - Steam oriented games (not just bought on steam but developed around it - e.g. MW2, TF2 etc) will ONLY work on the correct steam account, and some only with an internet connection. Other games (e.g. Call of Duty 4: Modern Warfare) work once downloaded thru steam, and do not require steam to even be running. I backup my steam folder occasionally, and keep it on a seperate drive to my OS so i can reinstall without issue (my steam folder is 300+GB so i dont wanna have to download it all again in a hurry) and have no trouble with changing PC, or reinstalling windows. Can you imagine the agro of reinstalling 100+ games from DVD... not to mention your config's and save games all being lost. I have my issues with steam, but on the whole im for it. Hosey^
-
Most Common/Favorite Keyboard Key(s)Same here on my home machine W, S, A, D. Program and game on it, but gaming takes more of a front seat at home. at work; Ctrl+C, Ctrl+V, F11, F5, Tab, Shift+Tab Now i have a quad screen setup at work I rarely ever Alt+Tab anymore. Still have dozens of windows open, but it now seems more intuitive to access them from the taskbar than from alt+tab as brain can relate to their on-screen locations far quicker using that visual.. odd.
-
Reviewing code...There are always some gems somewhere... I think back to some of my early code that I found a year or so later, and nearly died on the spot.. :D
-
Reviewing code...Thats the reason im not a teacher... The code i posted is the reason some people should rethink being a developer ;)
-
Reviewing code...HAHAH wasnt thinking outside the box like that... good man! ;P :-D
-
Reviewing code...An old-skool legacy im trying to get rectified. But its a large code-base, and wont get changed overnight :) Personally use C# in all my "pet-projects" but have to stick to VB at the office. Worth sharing, just to make people cringe, but we still have a business critical application (used daily and directly linked to our revenues) that was written in VB 6 over 12 yrs ago... still going... Dont have the time to re-write it at the moment, and if it aint broke, dont fix it... :)
-
Reviewing code...:thumbsup: :cool: all is well :)
-
Reviewing code...I agree with the sentiment, but it was a snippet from an ASP page, not ASP.NET :)
-
Reviewing code...Cheers for the pointer. Was only posted in the lounge as I was sharing general chit-chat we were having about it in the office. Will post correctly in future :)
-
Reviewing code...I cannot deny that I have been guilty of such code sins, sometimes I write less than efficient code as I fire through a problem, but I dont think I've ever written redundant code like the example I found. Set a variable to a zero-length string, then on the very next line check it is a zero-length string... hahaha
-
Reviewing code...I often find myself having to review code within all of our systems as our company grows/changes, as im sure most of us have to during the course of work. Sometimes I find myself looking at old code, and feeling embaressed for the coder (who is sometimes myself) as code that was applicable due to knowledge at the time looks frightful in the light of newer knowledge and skills, but occasionally I come across absolute gems. The coder who wrote this (who shall remain unamed) is no longer with the company, but I do not regret the loss one bit in the face of massive amounts of code being uncovered of this stunning calibre; Classic ASP:
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
If Request.Form("btnAddTask") <> "" Then
For Each obj In Request.FormiSectionID_New = ""
If Len(iSectionID_New) = 0 Then
iSectionID_New = Trim(Request.Form("section_id_filter"))
End IfiTaskID_New = ""
If Len(iTaskID_New) = 0 Then
iTaskID_New = Trim(Request.Form("task_new"))
End IfiDisplayOrder_New = ""
If Len(iDisplayOrder_New) = 0 Then
If Len(Trim(Request.Form("display_order_new"))) > 0 And IsNumeric(Trim(Request.Form("display_order_new"))) Then
iDisplayOrder_New = Trim(Request.Form("display_order_new"))
End If
End IfiActionOrder_New = ""
If Len(iActionOrder_New) = 0 Then
If Len(Trim(Request.Form("action_order_new"))) > 0 And IsNumeric(Trim(Request.Form("action_order_new"))) Then
iActionOrder_New = Trim(Request.Form("action_order_new"))
End If
End If
Next
End if
End ifthe bold sections are the ones that immediately drew the attention of the team, but we then looked at the logic itself, and were stunned by the loop itself
For Each obj In Request.Form
which not only is never used, but just increases the number of iterations of the same code for absolutely no reason whatsoever... Anyone else have the joy of such discoveries?? Any clangers found that left you slack-jawed and slightly disoriented?? :) :) -
Gaming mouse recommendations?I use a Logitech G9 on my main gaming rig, and have a G5 on my spare. Both are excellent mice, but I personally prefer the G9. It looks aesthetically odd, but its actually very comfortable to use, and is spot on. it has a 3200dpi max resolution over the G5's 2000dpi, which also works well for me.
-
RockYou Hack Reveals the Worst 20 PasswordsUnless the hash is salted... (hmm sounds like a meal for stoners.. :/)