- 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
That's a fair point. But it does assume the proper hooks are in that library. Even still, it may be the lazy approach, but under a deadline, is this really a WTF, or just a kludge?
To me, I call something a WTF when I can say, "what a dumbass"; not "what a lazy bastard".
Admin
Admin
Looks like an attempt to "debounce" input
Admin
I figure someone added that line precisely because they wanted to see it get displayed on TheDailyWTF. You know, the ol' "Don't touch the red button!"-but-now-I-cant-help-myself-because-you-said-not-to psychology.
Admin
I think after 5 minutes the print job will time out and then you can click again. So it is for those people who double click instead of waiting patiently.
Please close this ticket.
Admin
Hahaha, me too! I wonder just how common this dilemma is...
Admin
What? I'm curious as to what phone configuration/OS initially trained you to do this, I've never heard of it before.
Admin
I write the code for an embedded device with a small QVGA screen and a keypad. It has a simple user interface based on going through various levels of screens. I found out that I (as the programmer, who knows how it works, with it conveniently on my desk and not 5 feet up on a wall), I was screwing stuff up when I pressed the ENTER or ESC key once too many times, due to slow key bounce with the rubber keys. And this was even with flushing the keyboard buffer when changing screens.
So I added a 200ms delay after changing screens (both forward and back) during which it would ignore either of those two keys. And it did the trick.
But I actually documented in the comments what it's trying to do and why.
Admin
trwtf is the Synaptics Windows drivers. They don't even have middle-click emulation, which means good luck middle-clicking anything on a laptop unless you figure out a way to get one of their gesture features to spit out middle-click (couldn't find it).
It does let you remap left/right, but then you lose left/right. Best bet is to either: A) Remap the left button to middle and only tap-click with the pad B) Switch to Linux, where the Synaptics driver is sane.
Admin
Anyone seen the table of finger gestures for Windows 8? It is a long list that replaces far fewer combinations of mouse clicks.
distineo: When one has caught tinea and distemper.
Admin
There is an interesting, related bug in Firefox - at least on the Windows version, when some system skin more fancy than Windows Classic is in use.
Open two or three tabs. Double-click on the rightmost one's close button. Aside from closing the tab as expected, the browser window will (un)maximize.
Admin
The bit next to the list of tabs counts as a title bar. If you double-click the title bar (both in windows and in linux) it maximizes/unmaximizes.
Admin
There's a couple of registry keys you can set to enable middle-click emulation by either pressing both buttons or tapping with 2 fingers: http://iampaulh.blogspot.ca/2012/06/adding-middle-click-to-synaptics-touch.html
Admin
Admin
Admin
Think Apple too. They were successful by forcing people to change their expectations. Isn't it weird that most pizza bars provide an app to order from an iPhone - I been ordering by phone for ages (before I even had a GUI on my phone - or a cell phone, for that matter).
Admin
Admin
Admin
Admin
Sorry, I should've mentioned you can also assign middle-click to 3-finger tap using the registry method. Obviously most people will want to keep 2-finger tap assigned to right-click.
Admin
Admin
One of the railway signalling systems in Scandinavia indicates different speeds with different numbers of lights. A single green light means "clear, full speed". Two or three green lights together mean "clear" and successively lower speeds. This leads to an obvious wrong-side failure mode where one of the green lights blows, and the signal indicates a higher speed than it should.
Worse, the immediately neighbouring country has a signalling system that is very similar, was derived from the same older system, yet has some indications which are completely opposite to the indications in the first country. Accordingly it is prohibited for the same driver to operate a train in both countries, even though they speak nearly the same language and the networks are interconnected. The risk of incorrectly interpreting the conflicting indications is too great.
Admin
Admin
Please don't submit this to the daily WTF
Admin
Admin
Admin
If there was One True font-rendering engine then web designers might be tempted to build extremely inflexible designs, so I thin this is just as well. Besides, if you're catering for multiple languages then you can't make assumptions about word length, line length, or even left-to-rightedness either. Responsive Design is the answer.
I know an embedded browser doesn't necessarily mean web pages, but the article hints at CTRL-clicking links and opening new tabs, which sounds a lot like a browser to me. I wouldn't expect to see e.g. Outlook handling HTML emails in this manner. On the subject of kiosks, see my above comment. On the subject of The Complicator's Gloves, I put it to you that a program that's displaying HTML in embedded browser panes and supporting CTRL-clicking is the proposed wonderful new idea, and the traditional web browser is the 'gloves' in this case. And to bridge the gap, there are addons available for some browsers including Firefox that turn it into a kiosk app.
Given that we don't know the context, it doesn't matter whether I do or don't know. I'm just voicing my opinion.
Admin
As I reached the end of the flow, I stopped and though "hang on, what was I testing again?"
Then I realized that I had gone all the way through the flow without getting the error message, I had to test.
It took me a few attempts to reproduce it and figure out what had gone wrong. On one page I had accidentally double clicked on a link to the next page. Or rather clicked a second time because the webserver was responding so slowly, that I somehow thought I hadn't clicked in the first place.
Those two clicks caused two requests to be sent to the webserver and get handled by two different threads. This triggered a race condition in another developer's code. The two threads would share a status variable, which they should not have been sharing.
The end result was that the result of the validation of the input data was ignored, and invalid data was written into the database.
This particular bug got fixed before reaching production.
Admin
Given that this code is a wrapper around System.Windows.Forms.WebBrowser, a wrapper for including IE into your app, your conclusion that it does not cover Firefox is spot on. Remarkable deduction skills.
Admin
It's cute that you people think that comment was in the original code.
Admin
Am I the only one who after reading "System.Windows.Forms.WebBrowser." was expecting something more after the last dot and tried CTRL+A?
Admin
But the two are only "derived from the same older system" in a very general and indirect sense (namely, that for a few decades in the mid-1800s both contries used systems where green was "danger" and white was "clear". They were modified in both cases because a broken green lamp glass would be a wrong-side failure).
This is not true. On the contrary, trains routinely run between Copenhagen and Malmö without driver changes underway, despite the signaling system changing in the middle of the Øresund fixed link. There's no place for a train to stop at the point where the signaling system changes.On the other hand, all trains on that line are required to be fitted with cab signaling Automatic Train Protection systems which independently prevent signal overruns.
Norway has a third system, also incompatible with Sweden, where one green is "proceed slow" and two greens is "proceed fast".
Admin
Disagree. If you ever find yourself writing such a comment, I think this is clear indication that THIS CODE NEEDS A REAL COMMENT. You know, one that explains exactly why the author realised that he wrote a WTF-like thing but left it in.
Admin
Admin
That feels wrong to me.
Admin
Then take the day off tomorrow, otherwise your bonus day will be somewhat ruined by your dying on it...
Admin
Admin
Slow down, you click too fast You gotta make the e-vent last Hackin' down the windows code do do do dooo feeling wtfooky
sha na na naaa na na na feeling wtfooky
Admin
Admin
CAPTCHA: sagaciter: Someone who quotes Beowulf.
Admin
Oh, and TRWTF is being able to click on Submit before Preview, amirite?
CAPTCHA: incassum: Click on Preview before Submit just incassum.
Admin
)
Admin