Haha, you missed the "switch statistics" tab, FAIL!
(well, still bad design, it could just switch tabs to help you, or even better put the fields in the same page, but still)
Posts made by ounos
-
RE: Please set the country code in the Switch page.
-
RE: And how did return work again?
Good work, you found a way to save some characters, give yourself a pat in the back.
-
RE: It's a password, but not a password
@ammoQ said:
@TGV said:
What is Christian Science
I guess it's about as much about science as the German Democratic Republic was about democracy.
Or as much the Holy Roman Empire was holy, Roman, or an empire. -
RE: Management Email WTF
@Lingerance said:
...
07:30 I click the forward button
08:30 I am now in a screen that can forward the email
...
loved this bit -
RE: Seattle gun ban WTF
Months ago I travelled to the US, and I had to fill a questionnaire, which had a question like "are you planning to terrorize/bomb/etc ? "
I was temped to say "yes" for the fun of it and to see what happens, but then I thought, if someone is as stupid to put such a question there, he could be as stupid and also believe the answer...
-
RE: Pls post me sorce conde
@garyniger said:
Check out scala:I know a guy from Pakistan who is like that. He keeps insisting that if I send him source code for things, he would learn from it, and he would never ever dare to copy it verbatim.
The first and last time I did it, his work looked dangerously close to mine.
I don't expect to see him at university much longer, considering the mandatory "Beginning Java" course (about which there are so many WTFs that it would provide an entire month worth of WTFU posts for this site...) ends this Friday and he still doesn't know what instance variables are and how to write getter/setters for them.
Unrelated: Anyone know if Java will ever get sane like C# and introduce properties? getSomething/setSomething is annoying.
public string foobar { get; set; }
is nicer. :|var foobar: String
of even:case class X(var foobar: String, ...) //and you also get equals(), hashCode(), toString() for free
You're too young to die from boredom due to writing/maintaining such boilerplate. -
Stupidest scam ever
Here is what I received in my inbox today:
My lovely, Compliment of the day,hope this mail will find you in atmospheric good condition of health,it pleases my heart writing to you today as i found your mail when searching at the internet. I know it is the will of God for us to know each other because am searching for a man who has good sense of humor, I will be happy if we can be acquainted. i will also appreciate your prompt response. I will love to introduce my self to you today. my is Miss Jasmine Awa , I have 23 years old, I came from Liberia in west Africa. I am the only daughter of Dr Wilson Awa. my late father was the director of sobaz oil before his death from the war going on in my country . It was on one early morning militants groups attack to my family killing my parents on a cold blood ward, I am the only one left. I flew to a near by country Dakar Senegal where we are staying now as a refugee, am doing my second year in nursing school before the incident occurred. attached here is my pictures. I will tell you more about me in my next mail awaiting to hear prompt good respond from you and God bless you for your kind attention and hospitality towards me. your forever in love, kisses with multiple love and cherish you. Jasmine .
Моя любимая, Комплимент дня, надеюсь, что это письмо будет найти вас в атмосферном хорошее состояние здоровья, она радует сердце обращаемся к Вам сегодня, как я нашел вашу почту при поиске в Интернете. Я знаю, что это воля Божия, чтобы мы знали друг друга, поскольку ищу человека, который имеет хорошее чувство юмора, то я буду рад, если мы можем быть знакомы. Я также признателен за быстрый ответ. Я люблю, чтобы представить себе мое к вам сегодня. моя мисс Жасмин "АВВА", я 23 лет, я приехал из Либерии в Западной Африке. Я единственная дочь доктора Уилсона "АВВА". мой покойный отец был директором sobaz нефть до своей смерти от войны происходит в моей стране. Это было на один рано утром группа боевиков нападение на мою семью убийство моих родителей на холодную палату кровь, я остался один. Я прилетел в ряде стран Дакар, Сенегал, где мы находимся сейчас в качестве беженцев, делаю мой второй год в школы медсестер до инцидента. придается здесь мои картинки. Я вам скажу больше обо мне в моей следующей почте ожидают услышать хорошую оперативно реагировать от вас, и Бог благословит вас за ваше внимание и гостеприимство ко мне. навсегда в вашей любви, поцелуи с несколькими Ценить и любить вас. Жасмин.
Supposedly it's a girl from Liberia, west Africa. To add legitimacy to the letter, he added a translation of it...in what language? Liberian??? (No, these can hardly be written). Oh yes! Russian!!!! Good to know that Liberian girls can write Russian so well!!!
WTFFFfffff
-
RE: Search Engine Shennanigans
@DescentJS said:
@ounos said:
Hmm. I just checked (I don't use IE8, but have it installed), going to "find other providers" does not list google on first page! You must find the tiny "2" button to go to the second page, where it is listed first. What I really liked though: bing, listed first, has 5/5 stars, based on 168 ratings, and google has only 4/5, based on 150. Certainly the first must be better, then.
I don't know what you clicked to go to that screen, here is what I get when I go to "Find more providers" on the drop-down menu right next to the search box.
-
RE: Search Engine Shennanigans
@ounos said:
Hmm. I just checked (I don't use IE8, but have it installed), going to "find other providers" does not list google on first page! You must find the tiny "2" button to go to the second page, where it is listed first. What I really liked though: bing, listed first, has 5/5 stars, based on 168 ratings, and google has only 4/5, based on 150. Certainly the first must be better, then.
And of course, as you would have expect, I can't add a rating!!! I guess only microsoft employees are allowed to modify them. Gee... -
RE: Search Engine Shennanigans
Hmm. I just checked (I don't use IE8, but have it installed), going to "find other providers" does not list google on first page! You must find the tiny "2" button to go to the second page, where it is listed first. What I really liked though: bing, listed first, has 5/5 stars, based on 168 ratings, and google has only 4/5, based on 150. Certainly the first must be better, then.
-
RE: How do I regexp?
@PJH said:
What is the best regular expression for validating email addresses?
The grammar (specified in RFC 5322) is too complicated for that. Use a real parser or, better, validate by trying (to send a message).
This is wrong. That grammar is just a regular language, which can be mapped directly to an NFA (i.e. by a regex). Perhaps it looked too complicated to the poster. -
RE: Inept "DBA"s rant
@tster said:
@Salami said:
Their position is that it is good to have a large transaction log because then it never has to grow. He says that when the file autogrows the "whole database stops". He thinks that when he backs up the Transaction Log, it "deallocates" the file so that there is plenty of space available. Maybe I'm crazy, but does his argument have any logic behind it?
Yes. In SQL Server the transaction logs are not reused until they are back up. Once the transaction log is backed up then SQL Server will start reusing the space that it has been allocated for it.
Looks like someone has to apologize to the DBA after all... :) -
RE: If you are Ulises Cortes, don't worry
If you are Ulises Cortes, we can send your username to the email address we have on file.
Unless of course we get FILE_NOT_FOUND
-
If you are Ulises Cortes, don't worry
This is what I call personalized software:
http://upc.grouphub.com/amnesia/forgot_password -
RE: TODO: <Prodcut name>
The RTWTF is that nobody worries about spelling prodcut right, including me.
-
RE: The firefox fiasco
Speechless. Human kind never ceases to amaze me. Darwin, please take some of us with you
-
RE: Null access is always fun
Just make two threads, one thread constantly creating objects, second thread constantly reading them, invoking a method on them and checking whether this == null. In the first 5 minutes you'll get it, in a dual core machine.
-
RE: Null access is always fun
@amischiefr said:
@ounos said:
Can you elaborate on how you can use Java Reflection to see 'this' as null?
No, I was thinking that possibly through reflection a class may not have an actual instance created in a static reference, thus causing a problem, but I can't duplicate it.
Can you prove/show an example of it happening in a multithreaded environment?
No, but it happens all the time. Don't be lazy and put the check at the start of every instance methods, unless you want your code to randomly break when it goes to run on a multiprocessor. JDK source code does that too. -
RE: Null access is always fun
@amischiefr said:
@ounos said:
True, if you only code in a single processor. "This" is just a register and its initialization can be reordered as a typical cpu optimization.I think that I just thought of the answer. Err.. nevermind.
I can see the 'this' reference being null when using Java Reflection. I will concede this. But multithreaded has nothing to do with it.
Can you elaborate on how you can use Java Reflection to see 'this' as null? -
RE: Null access is always fun
@Zecc said:
And what makes the Python version better?
Since it would be python, it would only run in one thread so this/self can never appear as null.(seriously, I don't know)
-
RE: Null access is always fun
@amischiefr said:
@MurfWTF said:
Obvious troll is obvious.
Great contribution to the post numbnutz. ounos is the only person in this thread, if you read all of the posts, that believes the 'this' reference in Java can be null. So, care to explain how this is trolling kid?
If you don't have something to contribute, or at least a funny comment, please stfu.
To be honest, I also had the impression that you were trolling. -
RE: Null access is always fun
@amischiefr said:
@ounos said:
True, if you only code in a single processor. "This" is just a register and its initialization can be reordered as a typical cpu optimization.I think that I just thought of the answer. Err.. nevermind.
I can see the 'this' reference being null when using Java Reflection. I will concede this. But multithreaded has nothing to do with it.
You might also want to read why the double checked locking idiom was broken (allowing fields to be seen uninitialized), to realize that multithreading has to do with it. -
RE: Null access is always fun
@amischiefr said:
@ounos said:
@TheRider said:
@ounos said:
I always start my java methods with:
Never ever have I stumbled upon a this being null in Java. Can you elaborate a bit about the situations where that may happen?if (this == null) throw new NullPointerException();
Catches many errors.
It is very rare but painful to track. Sometimes you create an object in one thread and use it in another. Without proper locking "this" could be uninitialized. But you need to do this in every instance method of shared objects.I call bullshit. "This" would not be 'uninitialized'. If you are inside of a method there is a reference to 'this'. Look at it like the stupid house/blueprint Object thingy taught to first year programming students. You can't be inside of a room without there being a house. Fucking impossible, unless you live in some 5th dimension. Now, with threads involved, you may be in the wrong house, but you're still in a house.
True, if you only code in a single processor. "This" is just a register and its initialization can be reordered as a typical cpu optimization. -
RE: Null access is always fun
@TheRider said:
@ounos said:
I always start my java methods with:
Never ever have I stumbled upon a this being null in Java. Can you elaborate a bit about the situations where that may happen?if (this == null) throw new NullPointerException();
Catches many errors.
It is very rare but painful to track. Sometimes you create an object in one thread and use it in another. Without proper locking "this" could be uninitialized. But you need to do this in every instance method of shared objects. -
RE: Null access is always fun
@Zecc said:
@derula said:
Probably he wanted to make sure a null exception gets thrown when criteria is null, because passing null to executeSQL does something really, really bad.
Not applicable:return executeSQL(criteria, con, criteria.getSelect());
Unless getSelect() is static. Ha -
RE: Null access is always fun
@bugmenot1 said:
I always start my java methods with:I'm not sure about Java, but in C++ this function could start with
if (!this) return defaultValue;
Not that it would be a good style...if (this == null) throw new NullPointerException();
Catches many errors. -
RE: Null access is always fun
@bugmenot1 said:
I always start my java methods with:I'm not sure about Java, but in C++ this function could start with
if (!this) return defaultValue;
Not that it would be a good style...if (this == null) throw new NullPointerException();
Catches many errors. -
RE: Krispy Kreme fail
Starbucks coffee? Geez. Last time I checked, they mainly attracted the same sort of people who go to MacDonalds to have a good family lunch.
-
RE: D4t4b4s3 r0x3z
There are tiny little pieces of good model-driven ideas there, but in a WTFy way.
-
RE: MAJOR WTF blocking live feed for thousands of viewers of a very, very important chess event
Wow. It seems that the Borisov Gambit inventor broke his leg playing soccer the day after the incident.
Bad Karma? WTF?
-
RE: MAJOR WTF blocking live feed for thousands of viewers of a very, very important chess event
@Master Chief said:
@ounos said:
The relaying system wasn't manual; it was integrated with the board, so when sensors detected a move, a program would automatically broadcast it.
Why they didn't, or couldn't, just reset the frikking machine, is beyond me. Perhaps they don't manufacture "reset" buttons in Bulgaria?
They Mayor either hadn't a clue, or wasn't informed of just how crappy the software was!
Now the chess community will forever remember as "the Borisov Gambit" (after the Mayor's name) those two particular illegal opening moves that left thousands of chess funs wondering just what was happening...
(Why they didn't just email the moves? I guess they hardly have computers over at M-Tel's...)
Why didn't they just aim the frikking cameras themselves?
Dunno. Probably in communist Bulgaria, the camera aims you. -
RE: MAJOR WTF blocking live feed for thousands of viewers of a very, very important chess event
@notromda said:
very, very important chess event
I don't think that means what you think it means...
Hey...how do you know what I mean? :) -
RE: MAJOR WTF blocking live feed for thousands of viewers of a very, very important chess event
The relaying system wasn't manual; it was integrated with the board, so when sensors detected a move, a program would automatically broadcast it.
Why they didn't, or couldn't, just reset the frikking machine, is beyond me. Perhaps they don't manufacture "reset" buttons in Bulgaria?
They Mayor either hadn't a clue, or wasn't informed of just how crappy the software was!
Now the chess community will forever remember as "the Borisov Gambit" (after the Mayor's name) those two particular illegal opening moves that left thousands of chess funs wondering just what was happening...
(Why they didn't just email the moves? I guess they hardly have computers over at M-Tel's...)
-
RE: MAJOR WTF blocking live feed for thousands of viewers of a very, very important chess event
To cut the story short, a Bulgarian Mayor was supposed to play the first move of the Carlsen-Topalov game. He actually played two moves, only to say a stupid joke that at their place "they had a special rule that allowed that".
The chess software (responsible for transmitting the moves) choked, and none of the engineers of M-TEL was able to restore it!!! It's a telecommunications company for Pete's sake!
-
MAJOR WTF blocking live feed for thousands of viewers of a very, very important chess event
http://reports.chessdom.com/news-2009/mtel-masters-software-r1
It's just a treat.Stupid humour, and crap software! Combined, can ru(-in?)le the world. Enjoy!!!
-
RE: Another story on random == unique wtf
Your browser settings must be hiding the <irony> tags all around. But you can't see that.
-
RE: Another story on random == unique wtf
@julmu said:
@smxlong said:
@DOA said:
I think you should just change that 3 to 4 and wait for the really interesting words to show up.
Words like 'aaaa'? Because the only thing this function will ever generate is a stream of 'a'.
The random value is first multiplied by 26, making it a multiple of 26. Then it is modded by 26, which will always be zero.
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Math.html
public static double random()
Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0.
I nominate you, sir, for the most brillant person of the thread. Congrats! -
RE: Another story on random == unique wtf
butitcouldusesomespacetheretooandperhapssomepunctuation
-
RE: Another story on random == unique wtf
Yeah, but why restrain myself to that? I could just change it to 1,145,589 and wait till the Iliad comes out. Epic poetry embedded in XML? Customers would love it!
-
Another story on random == unique wtf
This gem existed some years ago in our codebase.
The problem that the ingenious programmer tried to solve? Create a handful of artificial namespace prefixes for use in some generated xml output.
private String createname(){ char chars []= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; String str = String.valueOf(chars); String name = ""; for(int i=0; i<3; i++){ name = name + str.charAt((int)((Math.random()*26)%26)); } return (name); }
I once saw a prefix named "bug". "Curious", I thought, and ignored it.
The second time it caught my attention was when it exploded.
The moral: always pay attention to what your code tries to tell you.
-
RE: Daftest "Plz send teh codes" yet...
Incomprehensible. Why all those indians just want code, with no f*cking clue? They pile up lines and lines in the disk that they don't understand, just to feel good that "i have teh codes from teh internets in my hurt disc"?
Reminds me the best "send teh codes" line I've ever, [i]ever[/i] seen:
-
RE: Ad network site from hell
@helpfulcorn said:
I picked the shit job instead of working for Geeksquad.
I just wanted to quote this. Huge line. Thanks for sharing! -
RE: Ad network site from hell
You forgot the <joke> tags around that human shit thing, right?
-
Uglifying touch
No, "docs.addAll(allDocs());" is just too easy.
docs.addAll((List)Arrays.asList(allDocs().toArray()));
allDocs() returns a Collection.
Makes an array of it, then wrapping that in a List.
The final WTF is casting the returned List to a List. Yeah, lets do that.Please, my ex-colleague, please consider moving back to VB.
PS: I didn't know that a <pre > was unacceptable and <pre> is the only true way. I learn something every day.
-
RE: Kitchen floor banana resumé wtf
Ok, I see something some self-called photographer taking pictures of his resume lying on the floor, along with some bananas.
But upside-down???
Priceless.
-
RE: Evolution of Not
@fbjon said:
And my employer usually only upgrades if there is no other way, such as no more support from the manufacturer.
Well, Sun supports 1.4 no more.