Ouch, that's bad form (tadabing!)
Posts made by TGV
-
RE: Representative line: The most involved of our calculations
-
RE: Take out the trash
@snoofle said:
Of course, the fact that System.gc() is only a request to the JVM to do garbage collection, and no guarantee that it'll happen right then and there was a tad over his head...
I think the bit about it being a request and sleeping at least so many nanoseconds was to make the spec compatible with (exising) implementations. It allows you to implement it as void gc(){}, or to make it run when the processor load is lower, of course. However, Sun's implementation did start gc immediately. I've used it in some debugging sessions (turned out that rendering large fonts was a bit of a problem in Sun's java lib).I do like the fact that he seems to think that he was only gc'ing his own resources...
-
RE: It MUST be done!
@blakeyrat said:
@Sutherlands said:
I think Ben refers to the fact that calling the routine carries a cost, and no compiler is going to optimize away a call to a public function in another class.@Ben L. said:
Wow. A comment that increases runtime. I never thought I'd see the day...
What?If Ben L is right, Java must have a shitty optimizer.
-
RE: 1. It's a long, you fool! 2. No, it's an int! 3. Goto 1
@ZPedro said:
XCode has a problem, but it's in the way it is telling you of the issue (and in the fix-its, which are likely not helpful either). The explanation is your code is compiled twice (at least): once in 32 bit, once in 64 bit, and fixing the warning in the way it likely was suggested to you creates the other warning in the other mode; the inline warnings and errors in XCode are generally nice, but they still have work to do at Apple before people can just rely on them instead of having to double-check the warning from the actual build logs to be certain of what the problem is.
For
hystericalhistorical reasons*, 32-bit integers like OSStatus are defined as long in 32-bit mode, but to stay 32-bit in the LP64 model these integers are defined as int in 64-bit compilation. Hence the proper solution is to specify the %ld format and cast to (long); I always do so when I printf 32-bit quantities (which gets to be a little bit annoying when I have to type (unsigned long) each time, because my amounts are generally unsigned).*back in the 68k days, an int was 16 bits
I hadn't realized that. Thanks for the explanation.
Ah, the 16 bit int days. OSStatus was called OSErr back then, I think. Who needs 2^32 status codes anyway?
-
RE: 1. It's a long, you fool! 2. No, it's an int! 3. Goto 1
@blakeyrat said:
Hey look a misogynist, who would have guessed.
Hey look, a nerd without girl friend! -
1. It's a long, you fool! 2. No, it's an int! 3. Goto 1
A mild WTF from Apple's XCode: I'm creating a formatted string with the error code. The error code is of type OSStatus, which is an int:
Oh, it's a long. Well, let's make that %ld then:
A female compiler, who would have guessed.
-
RE: Maths... they do still teach it in schools, right?
@pkmnfrk said:
BEDMAS:
- Brackets
- Exponents
- Division, Multiplication
- Addition, Subtraction
= 6 - 1 x 0 + 2 / 2
= 6 - (1 x 0) + (2 / 2)
= 6 - (0) + (1)
= 6 + 1
= 7
Where did 5 come from?
Congratulations. You are the 100,000 person who didn't read the whole story. You have won an Internet!
-
RE: How many WTFs per hour is that?
Good luck with that steaming pile of swinery.
But "or else" sounds ominous. Did they threaten you?
-
RE: Where did Java go?
@Cassidy said:
@gu3st said:
I'm afraid successful troll was successful.Well if you use a proper web browser (Chrome) then you never haffto worry about updating Flash. It gets updated automatically and in the background.
And what if I don't want it automagically updated, rather like the OP and Java? What if I don't want an update service to run in the background and keep nagging me that flash is out of date? Will installing Chrome prevent those nags?
-
RE: No time is Not a Number
But why did they choose "Infinity" to represent a comment without a time? Undefined, null, false, -1, {}, "", almost anything is better than Infinity. And no-one noticed so far. Anyway.
-
No time is Not a Number
It's not a clever WTF, but when you enter a comment on soundcloud and it's not a timed on, they print (see two first comments):
I can imagine null, undefined, perhaps even Nan, but Infinity.Nan.Nan?
-
RE: What's your opinion on putting a comment at the end of an "IF" statement?
@Cassidy said:
What if the comment differs from the IF condition? Which is deemed to be correct? What's the logic behind this?
Extra points on the WTF scale, that's the logic.I'll tell you a condition, then tell you what to do when that condition arises.. and when you ask for clarification, I'll repeat the condition - because that explains everything, right?
+1 -
RE: Electrify that server!
Snoofle, you da masta of da WTF. If you make up all this stuff, it's still great, but it has a terrifying ring of veracity in it.
-
RE: If this is how you write your SQL, I don't want to work there
@ubersoldat said:
At least it's a funny way of filtering candidates
If you want to work with nerdy German hermaphrodites... -
RE: If this is how you write your SQL, I don't want to work there
@Shoreline said:
@dhromed said:
"salary ASC" is a nice touch.
Yeah but they left out "team player", "goal oriented" and "hit the ground running".
You must have overlooked "personality DESC". Didn't you take SQL-for-job-sites 101? Personality DESC sorts like this:
- team player
- senior- quality oriented
- professional
- obstinate
- nerdy
- management fad sensitive
- intelligent
- hit the ground running
- highly intelligent
- goal oriented
-
RE: Dead Code?
If it's empty, no problem. If it contains more than 1 element, though...
-
RE: IDoNothing
Actually, that does not make a lot of sense to me. If you want to check if a class supports certain behavior, check the name of the bloody class that actually defines that behavior! And checking that kind of stuff by naming is, well, asking for trouble.
"Look, guv', the log files are growin'. And every bleedin' line says sumfin' bout an eye track ball."
-
RE: Interfaces
No, there is no sense in it. IMU, the idea behind this is that you can keep your old code where you write "a.b = ..." and have it automagically replaced by a function call. Until the time the function call does anything else than an assigment, it's just waste. And if your application is computationally heavy, an expensive bit of waste too.
I had the fortune to work on a project that was started just after C# got these features, and consequently it was full of empty getters and setters (because not only C# got these features, but Visual Studio too, which made it really easy to use them). The code had a database connection with a field "open", which was used like this: if (!db.open) { ... }. Perfectly sane, right? Imagine my surprise when I finally discovered that the cause of a bug was that the setter looked like this:
if (!value) db.close();open = value;
-
RE: This new, moronic, non-English
@flabdablet said:
"Comfy" is far too cardigan and slippers (said he, casually adjectiving two nouns) for HP, who are all about trying to look thrusting and businesslike while avoiding any choice of language that might wake any CTO responsible for enterprise purchasing decisions from his customary intellectual torpor. So if HP did this, they would almost certainly call it HP Enhanced Web Experience and it would be implemented as a preinstalled IE/Windows Explorer BHO that breaks everything if you try to uninstall it, bundled with an auto updater that breaks everything if you don't. Also, it would only work as designed in an Administrator account.
Oh,but my market segment was 50 year old housewives trying f*book. But I like your linguistifying scrutinization. I suggest you letter the HP Obfuscation Department on-line and task them with your interviewing for a senior ranked job. -
RE: Technology has come a long way
@ubersoldat said:
Wow... how much code do you need to fill 150MB?
Well, I'd say a million lines isn't enough. So that's a very detailed mouse driver. I'm going to invest in RAM manufacturers.
-
RE: This new, moronic, non-English
It's the only trick all these communcation MAs know: change the name.
Engineer: "We've got a problem: our nuclear waste, eh, sorry, reprocessing facility just leaked tons of bad stuff into the Irish sea! What can we do?"
Communication Expert: "Cover it up and change the name"
So, what do you do when you want to ram a choice down a user's throat? Get someone to write a start-up screen like this: "Congratulations on your acquisition choice for this HP Comfy Surfing Solution (TM). All necessary software has already been installed and will be kept up to date for your convenience, so you don't have to miss one second of Comfy Surfing Time (TM), by just pressing the OK button below. The one the mouse is already hovering over, so all you have to do is to click, and your HP Comfy Surfing Solution (TM) will take you anywhere with the greatest ease." And "ease" would of course mean: using Internet Explorer and whatever crapware provides best "synergy" for HP...
-
RE: JIRA's JavaScript is full of debug statements
@tchize said:
So what? You open a tool dedicated to debugging webpages and you complain you are getting debugging statements there?
What's your company? It's to avoid doing business with you.Seriously: debug statements in production, that's just not a great sign.
-
RE: I'm about to pick on an indie game, so prepare to hate me
@Soviut said:
apologetic fan fiction deleted
Come again? Buy a better computer FOR A GAME? Are you stark raving mad? I'm not often on blakeyrat's side, but the description is one of a seriously bad piece of programming.If you ask a programmer "Make the app crash when the printer spooler is active", he's going to have a hard time doing it differently than this:
[code]
if (printerSpoolerActive()) *((char*)NULL) = 0;
[/code]
-
RE: Unconditionally conditional query composition
@edgsousa said:
if(objectType >= 0) {
It's rare that someone manages to make 0 a magic number.And how you have a namespace Const. I can see this becoming the new Hungarian Notation!
namespace Const
namespace Const.Int
namespace Const.String
namespace GlobalVar
namespace GlobalVar.Int
...
-
RE: An incident
It just left me wondering: is it fixed yet?
Or, more seriously: what kind of idea of "fixed" do these peope have? Does "fixed" really mean "it works now, and tomorrow is another day" for them?
-
RE: Reserved keywords for usernames and passwords
twi? smps? How is that common in bad passwords?
However, the real WTF is of course "@dm1n". The insinuation that some people with admin rights really used it makes Little Baby McAfee(TM) cry.
-
RE: Emergency. Giant crack in the basement. Evacuate!
@LoremIpsumDolorSitAmet said:
Mother of God.... Where did this happen and do they have Health and Safety laws there?
My guess is: in the land of The Holy Freedom of Expression (but we'll sue you for everything else).
-
RE: Kriorus can't preserve their own English site
@dhromed said:
@db2 said:
So did Seahen, but are you telling me you liked "Kriorus a discount cryonics company in Russia"?@Seahen said:
I disliked the parentheses, and the word "is".(Kriorus is a discount cryonics company in Russia.)
There's nothing about that sentence that I didn't like.
Anyway, what could possibly go wrong? After all, the effectiveness of cryonics has been shown over and over again. No wait, that was crayons.
-
RE: Tales from the Interview on Quora
@bode said:
http://www.quora.com/Job-Interviews/What-is-the-most-bizarre-job-interview-you-have-ever-been-party-to
At first, I read: Jobs interview, as in our late beloved overlord of the shiny status symbol. -
RE: Kriorus can't preserve their own English site
@Seahen said:
(Kriorus is a discount cryonics company in Russia.)
This really made me go: WTF, even in Alex' sense of "Worse Than Failure". Discount Cryonics...
-
RE: I SERIOUSLY hope nobody is still using this OS...
Now all we have to do is invent a time machine and exploit this 14 years ago.
But, it is a horrible WTF, indeed.
-
RE: Media Center is right on track with my expectations this time
@ubersoldat said:
Oh Please! Worst example! Even VLC is broken in OSX. Thank god for MPlayer
That VLC is broken on OSX is obviously the fault of ... OSX?
-
RE: Media Center is right on track with my expectations this time
Brillant! I've had a similar experience on an Acer laptop trying to play a DVD. The laptop comes with some app from Acer for that precise purpose, but it's just impossible to get it to play the disc. Unfortunately, it opens up the moment you put in a DVD, so you have to force quit it and use VLC or something instead. Horrible. Thank God for OSX.
-
RE: Sketch it out, put it on a wooden table...
@Monomelodies said:
@TGV said:
That's the real WTF: web designers getting well paid. They should be paid less than a garbage collector.Otherwise, it was just unpaid overtime.
Technically, I AM getting paid for it, and pretty well ... -
RE: Sketch it out, put it on a wooden table...
@Monomelodies said:
She's pretty cute, so I guess it worked out all right in the end... :)
Only if you got actual pleasure out of it. Otherwise, it was just unpaid overtime. Or is any girl's attention good enough for you? -
RE: At least it has a password!
It's totally safe, because a hacker will expect that you send your details to the server, but no hacker will expect it to be the other way around!
-
RE: Remember when Google said Chrome would be a standard web browser and not incorporate features that only benefit Google? Yeah they were lying.
@Lorne Kates said:
Here's your hamburger. It's on a sesame seed bun. No, those aren't poppy seeds. They're sesame seeds. Also, I put on your burger: lettuce, tomato, pickle, onion, cheese, mustard, relish, mayo, bbq sauce, salt, pepper, sauerkraut, chutney, corn, apple slices, and another hamburger. There are not hot peppers. Not enough people explicitly requested them. Be sure to tell me how your burger is. How is it? Seriously, how is it? Tell me. Now. How is it? How is it now? How old are you and where are you going next? Enjoying the burger? Have any feedback? Where were you before this restaurant? How is it?
If this were fb, I would +1 it. -
RE: Remember when Google said Chrome would be a standard web browser and not incorporate features that only benefit Google? Yeah they were lying.
@MiffTheFox said:
It's every other HTML5 feature just a standardization of what Google put in Webkit?
One of the more prominent new features, the canvas, was introduced by Apple, four years before Chrome. -
RE: You can't retire; you know too much
How can some pompous ass of a manager say "you can't" when the guy obviously can? Why does a manager need a one week reminder from his/her subordinates when in a normal world managers are in essence there to take care of precisely that kind of problem?
What is the matter with those people? What is the f*ing matter?
-
RE: Remember when Google said Chrome would be a standard web browser and not incorporate features that only benefit Google? Yeah they were lying.
I completely agree with blakeyrat: it's ridiculous and meant to suck us into another private platform. Is it free? Then you are not the customer, but the product. And Chrome is your food.
I have to add that I'm surprised they're not paying more attention of the looks and feel of their browser, and of the bugs, with such evil plans for world domination. I've had a consistent bug with websockets since I started using them, but only in Chrome. Since version 13 or so. The debugger has it share of problems, and that the renderer doesn't have more problems is because it is a f*ing copy of WebKit. I guess they're too busy playing PacMan on original arcade machines.
-
RE: JavaScript Date Object
@dhromed said:
Date.Now()the Javascript engine throws an error, because there isno Now()only a now() method.fTFY
-
RE: JavaScript Date Object
At least it's not Java's Date, DateTime, Time or Calendar object...
-
RE: Mandatory Java Security Training
@RichP said:
Quick: Identify which titles are fanfic, and which are legit stories.
That's a hard one (kadjing!)."In the server room": snoofle fan fiction
It was a warm Friday in August. Temperatures outside were running up, and the airco could hardly keep up. Slowly the temperature in the office started rising. Snoofle was glad it was casual Friday, because that meant he could take off his jacket and tie. But what was that? An inconspicuous alarm was blinking on a console two desks away. It was on a monitor on Janice' desk, who he hadn't seen all day, and Janice was one of the few people Snoofle would have noticed. But there were more pressing matters: what was the alarm? Snoofle headed over to Janice's monitors and saw the title of the blinking window: server room temperature. Not only had the office become too warm, the servers were near boiling point.
Quickly Snoofle ran over to the server room. The door was not locked, which was a bit odd. He pushed the door open, and a blast of hot air hit him. Quickly he closed the door behind him, and started to look for the airco controls. It was so warm, that he quickly unbuttoned his shirt a bit, while wondering around the racks of expensive hardware. Just as he rounded the last rack, he saw Janice: she was lying on the floor, red faced, breathing heavily. In a flash, Snoofle took off Janice' jacket and ...
Like that?
-
RE: Mandatory Java Security Training
If this were the start of some fiction, everyone would say that such a stupid thing would never happen. Well, nature is totally superior to art. Fan-tas-tic story.
-
RE: GitHub is fucking broken fucking again
Personally, I consider both sides WTF-y. Microsoft for making something simple so complex that hardly anyone gets it right (I've seen C:/Program Files on non-English computers, and the amount of junk that accumulates in temp dirs and LocalAppData or whatever it's called is just appalling), and Github for not taking the trouble of reading the manual.
-
RE: @TODO
My guess is the clue is in the title: the application hasn't loaded. Perhaps they start an application per user or per port or whatever, and the samples of course refer to a non-existing resource. But, a better error message would inspire more confidence.
-
RE: Double Negative One Liner
@jetcitywoman said:
@forkazoo said:
if not globalSettings.noDaily != False:
I'd like it better this way, for pure sadistic pleasure.
You know you have to remove the not, right? So
if (globalSettings.noDaily != False) != True
is much better.
-
RE: WATF is wrong with people...
@Charleh said:
Ah
That's 5 points for you on a text of 78 words. Prepare to be punched in the face.yeah, my brain was on case insensitive mode - you know I'm starting to think that thisregexmatching would be a good ideaAnd maybe a dictionary search which punishes you when the number of typos exceeds a certain threshold, possibly increasing every time you get punched forcing you to type more carefully. Why do people still miss all the vowels? We have
swypeand fullqwertykeyboards on our phones, you aren't saving anyTIME!