I agree. You don't seriously want to tamper with the users security settings to hide a f*ing ugly gray border, do you?
Posts made by PSWorx
-
RE: Write me an error message
-
RE: Misused Ternary
Your code-fu is weak.
bool temp1 = ((isTrue(rdoSqlAuthentication.Checked)) ? !(rdoSqlAuthentication.Checked) : ((rdoSqlAuthentication.Checked) == false));
bool temp2 = ((rdoSqlAuthentication.Checked && !temp1) ? ((temp1 = (rdoSqlAuthentication.Checked)) ? (isTrue(temp1) != true) : (rdoSqlAuthentication.Checked || (temp1 ? false : (temp1 & rdoSqlAuthentication.Checked) == false))) : false);
pnlUserInfo.Enabled = (!(temp2 == temp1) == false); -
RE: Movies with a computer theme
@RaspenJho said:
Maybe.... Cloak and Dagger?
I love the idea of embedding top-secret information in a game, where you have to beat the game to retrieve the info...
Didn't see the movie, but what would happen if the recipient was an excellent spy but a sucky gamer? :p
-
RE: Movies with a computer theme
@RaspenJho said:
@PSWorx said:
Apparently, Microsoft is researching a similar technology for mobile phone/PC interaction. (You have a large screen, put your phone near it, it connects with the device using some wireless interface and you get a visual feedback on both the screen and the phone.)
That's it! If this isn't inspired by the movie (or vice versa) I don't know what is.
-
RE: Movies with a computer theme
Minority Report comes to mind.
The "PreCops" there were operating on some futuristic gesture-driven touch screen system. Well, look how the GUI Apple's Apple Phone works and marvel at the similarities...The "touch screen" in the move also acts as a "drive" for the future equivalent of memory cards. The users simply needed to hold their cards near the screen and the data was transferred. Conveniently, a visualisation of the data moved from the screen onto the card too and was shown there in some kind of seamless display.
Apparently, Microsoft is researching a similar technology for mobile phone/PC interaction. (You have a large screen, put your phone near it, it connects with the device using some wireless interface and you get a visual feedback on both the screen and the phone.)Agreed, the omnipresent iris scanners in the movie were propably a bit silly, but with the current RFID controversy going on, who knows, maybe we get a pretty similar situation with RFID readers sooner than we think...
-
RE: Write me an error message
If you're already using a popup, your problem should be pretty easy to solve. Just specify your desired width and height as options in the third parameter of window.open(), possibly also add resizeable=no lock the popup into this size:
var myPop = window.open("<url>", "", "width=<desired width>, height=<desired height>, location=no, menubar=no, toolbar=no, resizeable=no");
From what I know, the window is resized before anything is loaded, so your init routine shouldn't make problems.
Wouldn't it be easier though, to put the whole app page into a fixed size table/div and center that on the screen bypassing the whole resize stuff?
-
RE: Game Loops
lol, alright, alright, alright. But you have to admit, from the point of view of a virtual being that lives inside the processor, it actually ... ok, I'll stop now...
-
RE: Javascript
@JvdL said:
@masklinn said:
@JvdL said:
While you're at it, also make sure to understand that the keywords "this" and "new" in JavaScript have an entirely different meaning than in most other languages.
new [...] creates an instance from a prototype object much like class-based languages create instances from classes.
Someone new to javascript would probably expect that the statement
new function(){}()
creates a new function, but it doesn't.... then they fiddle around a little more with this snippet and that snippend and finally discover that - hey! - new Function() does "exactly" what they want... and a new WTF is born...
-
RE: Write me an error message
I don't want to question your design (you don'tsound as if you had any guilt anyway) but how is this thing supposed to work if the browser is maximized?
Did you try using a popup or one of IE's fancy "web page dialogs"? I think those give you much more control over the window size and if you open them inside a button click handler (as opposed to timeout and onload handlers) you shouldn't have many problems with popup blockers either.
-
RE: Game Loops
There IS an application for actual infinite loops as far as I know: Microprocessor programming, where the "abort condition" is that the processor gets cut off from power :)
-
RE: Forever growing scrollbar?
The marquee seems to be the cause somehow. I temporarily halted and then restarted the script without reload (using firebug on firefox 2.0.0.4) and the mysterious scrollbar behavior consequentially stopped and began again too. i don't really get [i]how[/i] the script causes the quirk though.
Interestingly, the scrollbar behaves normal after I reload the page (like the above poster said) but the effect returns when I bypass the cache during reload. Maybe it's some obscure bug that calculates the page height wrong if certain objects aren't fully loaded yet?
Firebug also shows no changes in the pages "height" css attributes but shows a rather insane 20.000-something "computed style" height. Makes some kind of css bug even more likely IMO.
-
RE: Javascript
I agree with masklinn. Besides, what's up with bashing languages you don't know and then being proud of that? My opinion is clear, don't confuse me with facts, eh?
-
RE: The alternative anonymous
PHJ has a point here. As WTFy as this looks, how would you design an online survey that works without unique user ids and still prevents double voting? And no, a has_voted = yes cookie is no option :p
-
RE: Is it Intellisense-abuse?
@RaspenJho said:
The other overrides don't do the same thing as the base class at all.
I meant to refer to GetHashCode and Equals here, sorry for the bad wording.
On second view, that code does have a few quirks though. What's up with String.Empty instead of just ""? Same goes for the overuse of the [code]this[/code] keyword. This could indeed be a sign for intellisense abuse but for a five char word? I mean, come on, you had to type "this" so you saved a single keystroke...
Maybe this code was machine generated?
-
RE: Is it Intellisense-abuse?
Okay... overriding the base methods with functions that do nothing than ... call the base methods seems slightly silly to me. Apart from that though, it looks to me like an infrastructure built with future extensions in mind. The classes may be identical now, but if other members should be added some time in the future, they may not be anymore. Likewise, equality tests and everything may become more complex. Okay, you could propably tuck away those methods in some base class instead of copy-pasting them, but if the classes (albeit i fact being identical right now) had completely different purposes, you might end up with a class hirarchy that has no logical counterpart in your design scheme. Which would be an even bigger WTF IMO.
-
RE: Is it Intellisense-abuse?
What's definately a WTF though, is that they actually create a new [...]Item object, every time someone accesses a [...]Name property, even though the returned objects are absolutely identical. That seems just a waste of memory and processing time to me...
Also, shouldn't the members of [...]Name at least be static? o.O Did the guy who wrote this actually know what "static" means?
...okay, I revert my post above, that thing IS a WTF...
-
RE: Is it Intellisense-abuse?
We don't know the context in which these classes are used, but it would make some sense to me if the plan to localize the project. Instead of search-and-replacing all the string occurences, they conveniently have them all on one place.
Don't ask me though, why they didn't simply use resources then...
Another reason could be that they planned to add more information to the [...]Item class in future. So with this design, they already have a convenient and consistent container where they can add this data.
Doesn't seem like a WTF per se to me, although it could very likely be one.
-
RE: Javascript
@RaspenJho said:
In javascript, not only is everything an object, everything is also an array... Check this out:
function discover(ob)
{
var str;
for (a in ob)
str += a + ": " + ob[a] + "\r\n";
return str;
}
alert(discover(window)); /* substitute any object for window */Quite simply, no. Like JvdL explained, JS is in many aspects just "different" than other languages. The [] operator is one of those cases. It has been designed so it can be used as an array acessor if used with arrays, but that's just a side effect. Gernerally, just means something different than in other languages. But that doesn't mean that everything is an array. In fact, this assumption leads to horrible code.
-
RE: Worst computer game ever made by mankind discovered
Hm. Well, for those where it doesn't, here is a Youtube mirror.
-
Worst computer game ever made by mankind discovered
Granted, this is not exactly the most recent event, but it isn't on this site yet and I feel especially here it just deserves a place. So consider it a "Classic" :p
http://www.gamespot.com/pc/driving/bigrigsotrr/review.html (Make sure to watch the video as well)
Keep in mind that this is no beta or anything. It's in stores that way. It costs money.
-
RE: Crazy website scrolling behavior
Re: website builder
uniqueh...
er, sorry, I guess my inner troll-feeder went through with me... please feel free do delete this post
-
RE: Javascript
A few more good resources are:
http://www.crockford.com/javascript/: A few very good in-depths explanations of the less obvious and often misunderstood features of javascript. (Helps you to avoid the errors many of the afromentioned myspace snippets propably have)
http://de.selfhtml.org/ / http://fr.selfhtml.org/: Another good resource for starters. Unfortunately currently not available in english, but at least in french...
http://www.w3schools.com/js/: The classic. Apparently they have some rather questionable philosophic views on the future of the web (as discovered in a few topics here) but their tutorials nevertheless stay good.
-
RE: Why MS fails to follow web standards
@asuffield said:
@iwpg said:
@Ice^^Heat said:
I am not sure if standards matter...
Standards are fundamental to the concept of the web.
They really aren't. Most web pages aren't written to the 'standard' specs and none of the browsers are.
Instead, the web has been built around the concept of testing your site with the major browsers, and manually adjusting it for compatibility. That may not be how you would like the web to be built, but that is how it actually works.
I agree grudgingly that web standards are very poorly implemented and that they certainly weren't the driving force when the web was "built" (hell, they didn't even exist then).
But I still think the worst thing you can do is bury them by stating they are not important. -
RE: Gotta have that Stylish Earphone
@GettinSadda said:
That's a radio - no earphones in sight!
@Teh Website said:
<font face="Arial, helvetica" size="2">PLUS: Additional features in the Emergency World Radio:</font>
</font>
[...] <font face="Arial, helvetica" size="2">Stylish Earphone -
RE: Hey guys... maybe we are the one's who've got it all wrong?
Does all this stuff about democracy, freedom and individualism really matter? The chinese seem to do perfectly fine without them, so maybe they are right actually...
-
RE: Networking 101 @ WTFU
@viraptor said:
And that key to interview new members of team is to ask how 2 guys can have safe sex with 2 girls using only 2 condoms (hanoi towers reference scores high)
I'll propose that one as assignment for our class... you made my day...
-
RE: Networking 101 @ WTFU
@poochner said:
What's this world coming to...
Makes for some interesting ideas though... Imagine 200 years from now. All technological infrastructure is running fully automatic, self-sustaining and self-maintaining. But unfortunately the people have forgotten how those things actually work and how to control them. The new research branch of Technological Analysis is now out to scientifically discover and classify the mysterious inner workings of all those machines and make them acessible to humankind...
-
RE: "Easy" coding
As this is clearly intended for kids and with a specific set of projects in mind, I don't see much danger of abuse. And like the previous poster said, for this purpose, it's actually a pretty nice solution.
Tho I bet a full-fledged busyness application programmed with this would make an awesome desktop wallpaper...
-
RE: Function pointer in database? oO
Wowch. I'd really like to see that code...
Though, in what language did the guy write that? I can't think of many scenarios where you'd do (non-generic) database queries in a language that supports actual pointers. And a web app hard-coded in C(++)? That sounds like a sub-WTF all of its own...
-
RE: Help with a competency quiz
@newfweiler said:
If he's a manager, I would expect his area of expertise to be management. He doesn't need to know what a race condition is.
If I understood the OP right, it's actually the problem that this particular manager thinks he is a programming genius too and frequently barges into discussions that aren't his field. (Like the "Java" example) And he sounds like one of the guys that would make "must use XML" a spec requirement - without knowing what XML is.
In that context, asking him programming questions WOULD make sense, to show him that he doesn't know as much as he thinks.
-
RE: "Security is Our Concern"
I think it's more meant in a "Don't trust security guards, trust us. Our products will never sleep" way. At least that would make sense for me.
-
RE: Stupid comments gallery
I'm sorry, did I miss when this topic got renamed to Happy Flamewar Barbecue Party?
-
RE: Stupid comments gallery
Apparently it differs. My ISP, Deutsche Telekom changes the IP each time I log on, even if I didn't unplug my modem. Then again, they are selling "static IPs" as a special service with higher rates, so they might have extra-agressive policies on IP assigning to get more people to those offers...
-
RE: Ternary operator
@KattMan said:
Your post is giving me loads of fun, and no I'm not picking on you.
Hehe, thanks very much.
@KattMan said:
Yes the name of the function is seen as a local variable, and it also supports recursion. Which leads to funky things like the following:Function MyFunct(MyInt as Int32) as Int32
If MyInt < 10 Then
MyFunc = MyFunc(MyInt)
End If
End Function
Try debugging stuff like that one day.
Correct me if I'm wrong, but isn't the even more insane variant of MyFunc = MyFunc(MyFunc) valid as well?
-
RE: Ternary operator
I was actually talking about VB (6.0), not .NET. But I wasn't aware they added return and short cirquiting in .NET. Sorry.
-
RE: Ternary operator
The problem in VB is that IIf() is nothing more than a simple function. So it can't magically control parameter evaluation or change its return type like operators or statements do.
Or in fact don't in VB, which shows another major annoyance: No short-cirquiting boolean operators...by the way, Return is no valid VB as far as I know (except if Return() is a Method/Function). The correct syntax would be:
Function MyFunction(...)
...
MyFunction = Data.Web_enabled = "Y"
...
End FunctionWhich might give you a hint why it isn't done that way ;)
By the way, for even more VB fun: The the name of the function you're inside ("MyFunction") is fully treated like a local variable. That meanst that constructs likeFunction Fac(n as Integer) as Long
Dim I as Integer
Fac = 1
For I = 2 To n
Fac = Fac * I
Next I
End FunctionAre valid and possible. Oh, of course VB supports recursive function calls as well :)
-
RE: Fuzzy Code
You clearly see all of this wrong. The whole project is in fact of [i]another[/i] AI engine which uses self-writing code and evolutionary algorithms. What you are seeing are in fact dead branches of evolution in progress. And you are part of the engine too. You should feel excited.
-
RE: World of Warcraft: more XML programming
Also, Lua and Javascript are similar up to a point where you can regex (many) Lua programs into equivalent JS programs and vice versa. Except that Lua lacks most of JS' illogical legacy stuff and added most of the more useful features much earlier than JS (like for example coroutines, packages and a consistent API).
I'd prefer Lua to JavaScript in any case.
-
RE: Airport security
@Martin said:
@PSWorx said:
Some time ago,there were threats that a terrorist assault using liquid explosives were planned on an airplane. So I believe the reason for all this is simply that since then everyone is scared by liquids...
Yes, I believe Manchester UK was the target in this insance.
But the thing is that an ordinary gas lighter is acceptable. Have you ever tried spraying the gas from a refill can? It is kept (both in the can and in the lighter) in liquid form!
I didn't mean to imply that there was any kind of [i]logic[/i] behind the security measures :)
-
RE: Airport security
Some time ago,there were threats that a terrorist assault using liquid explosives were planned on an airplane. So I believe the reason for all this is simply that since then everyone is scared by liquids...
-
RE: Vista
well, phpBB at least tries to bring in some structure.
In the old version, they had abstraction layers for the database access and the HTML output, along with coding guidelines that you had to obey when you wanted a mod to be approved. I don't know yet how they are handling the new version.
I believe non-hacky PHP IS possible if you try hard enough. -
RE: XML programming
@RevEng said:
I'm actually quite intrigued by that example of an XML page with XSLT. Unless I'm missing something on my end by looking at the source, it's almost a perfect XHTML page, including links for the CSS stylesheets and such. The only difference is that it has a <page> tag instead of <html><body>, in which case I suppose the XSL stylesheet transforms <page> into <html><body>. Am I understanding this correctly? (I haven't done any XSLT yet)
Well, um, not ... quite ... I think. While the main page uses it in this manner, I believe Kyanar meant the "Armory" section behind the button on the upper-right - and that one looks as if they really put ALL markup code into the XSLT. - However, why not? If they have fallback options, it is in any case better than sending the same markup over the wire again and again.
@RevEng said:By the way, this is neither trolling nor sarcastic -- I seriously wonder what the importance of many of these new "web technologies" is, being that I've built several websites lately (freelance and for a few local businesses) and can't imagine how any of these recent technologies (AJAX, SOAP/XML-RPC, XSLT) could help me or my clients.
I think it really depends on the kind of site you want to build and how much of the content you want to provide for other sites. I think for simple portfolio sites there is very little use. However for interactive pages like forums or services, ajax can improve the user experience significantly (and cut the traffic/load time by a good bit). And if you provide your service as RSS, SOAP or XML-RPC, other people can use your data as the ground for new services ("mash ups").
Also, the users themselves may be using extensions that can interpret metadata on your site. As far as I know, Microsoft is working on some projects, so that if you for example mark up addresses on your page with some special tags (that have not been developed by them), programs like Outlook could directly copy the adress into an adress book.
@jeremycc said:Does that look easy to understand or follow? Can you imagine writing or maintaining a whole complex program like this? XSLT should be used in those limited cases where you are doing simple XML transformations. Anything else is just unmaintainable.
So, if I understand you correctly, XSLT is a bad language and generally unmaintainable because the instruction names are too long??? I agree, basing the language on XML was propably not the wisest decision, but seriously, if you argue that way, what is HTML then? I mean, seriously, get yourself a decent editor and be done with it.
I can see how XSLT "programs" become unmaintainable if you try to shoehorn some imperative program into them. But as far as I understand it, it was always supposed to be a [i]template language[/i] and not something that you implement buiseness logic in.
At least I can not see how the [i]logic[/i] of that example would be unmaintainable if you take the two minutes time to decipher the parantheses and see what it does.
-
RE: Vista
That "module" pattern (apart from the name) sounds familiar. If that thing is from the same guys as PHPNuke then yeah, no more questions...
I suppose the "Nuke" stands for "will contaminate your projects and turn all sensible life into horrible mutations..."
One of the funnies: <meta name="keywords" value="php, linux, hackers, programming, geeks, computers..."> HARD CODED into the page generation code of this (supposed) GENERAL PURPOSE cms. Because there is obviously no site on the net that doesn't deal with computers... -
RE: XML programming
@asuffield said:
@Squiggle said:
It's going to be a good few years yet before the whole 'semantic net' concept is implemented in any usable manner.
Never happen
Please do a google for "microformats" and "GRDDL".
@asuffield said:
Serving websites as pure XML content using common namespaces will be fantastic for automated information exchange.
Complicated non-solution to the wrong problem.Everything in this topic is completely and utterly insane.
@fennec said:
Using XSLT client-side at all is not something I'd really feel comfortable with, outside of very limited applications (Blogger's XSLT stylesheet it links to from its Atom feeds comes to mind.)
Care to explain those a bit more?
I admit, I don't have much "real world" experience, but client-side XSLT seems a really clean and elegant solution to me. And in contrast to several others of the W3's the implementation on the 'web is already somewhat progressed.Take a look at the source of this. You can actually use it to make websites already.
-
RE: ASP:Login WTF
@jminkler said:
@djork said:
@Jeff S said:
@djork said:
Because the Login control has no method or property to access the login button and therefore no way to retrieve the unique ID. The only way to approximate the functionality is to view the HTML sent to the browser and put it in as a hard-coded string and hope that it doesn't change.But,
still, you can't get the actual UniqueID/ClientID of the login button
to set the DefaultButton for the form, so you're left implementing the
login by hand.Sorry. :)
Why can't you?
And it shouldn't, the login control following GOOD programming OOD doesn't know what the PAGE'S default button is .. and rightly so.
I don't think he meant the PAGE'S default button here but the log in button, that is actually PART of the login control.
-
RE: Home Depo Survey
@asuffield said:
@Irrelevant said:
@PSWorx said:
/[\w\s,.-]*"(\w+)"/
Okay, it's a regular expression. Fine. That aside...what the f*** are you on about?
It extracts the word "six" from the survey, so that store managers can use bots to complete it.
Um, I'm sorry, that looked less lame on paper... Asuffield is right though, I think if this is really some kind of bot protection, it's pretty easy to overcome...
-
RE: Home Depo Survey
@bstorer said:
Presumably, this is to prevent store managers (or others with an interest in getting good scores) from using a bot to complete favorable surveys. Or to keep people from simply putting 1's or 10's the whole way down without bothering to read.
/[\w\s,.-]*\"(\w+)\"/
-
RE: Network admin gold
The only situation that I can think of where localhost might maybe be a security risk is if your (non web) application would use some exotic stateless UDP based protocol to communicate and THEN blindly accept packets coming from "localhost" as admin commands. But that seems a pretty unlikely setup to me...