But where is the wooden table?
Posts made by fatbull
-
RE: What's a data type?
@Bulb said:
For the added WTF, Win64 is the first (and only so far I believe) where a pointer will not fit in a long, so it won't work in 64-bits
[Insert rant about DWORD_PTR here.]
-
RE: Teaching C++ WTF.
@Indrora said:
void main ( void ) {
// ... snip ...
return 0;
}Wait, what?
(Side note: The second "void" is meaningless.)
-
RE: Hawking vs God
@Helix said:
@__moz said:
@b-redeker said:
@__moz said:
@dhromed said:
@fourchan said:
It would certainly change the way many people treat others.
lol naive.
How so? The Myanmar government would have a lot less trouble in dealing with unruly Buddhist monks if it could prove that they were wrong.
Absolutely. Similarly, once we prove that Osama is wrong, he'll just apologize and go home and we'll have no more problem from him.
I don't think anyone has suggested in this thread that Osama bin Laden is mistaken about anything at all.
The significance of the monks is that they depend on the generosity of others to maintain their lifestyle. Who would donate to a man who chose to devote his life to chanting mumbo jumbo? And who would go with him when he wanders the countryside? Osama bin Laden, by contrast, has plenty of money, and does not need to wander anywhere to make a point.
what is godwins law but with Osama bin Laden called?
The __moz law maybe?
-
RE: That Explains It...
Not bad. Now it only takes me 4.8 seconds instead of 5 to
download the tagsopen a thread. -
RE: How many days since jan 1 1985... the hard way
@vic said:
I don't understand the logic that makes you say it's OK to replace correct code with incorrect code
Because I don't. Both alternatives (OP and division by 86400) handle leap seconds the same. The only significant difference is source code size.
@vic said:
@Bulb said:
You will be surprised to learn it is. The UNIX time is defined as the number of non-leap seconds since 1970-01-01T00:00:00Z (Epoch).
Correct, that's why you can't divide the UNIX time by 86400 to get the number of days, since actual days have leap seconds.No. That's exactly why you can divide the timestamp by 86400 to get the number of days. Posix timestamps are an approximation of UTC where each and every day shall be accounted for by exactly 86400 seconds.
-
RE: How many days since jan 1 1985... the hard way
Ignoring all 24 leap seconds since epoch results in an error of less than 0.000002%. Who cares?
-
RE: Lazy Bastards
@b-redeker said:
It might be that ~ has to be embedded in <![CDATA[ tags
<![CDATA[ only spares you the need to mask <, > and &. Instead, you need to mask ]]>. Other than that, it makes no difference whether you use it or not.
-
RE: If it doesn't burn right away, just try harder
Several years ago, I bought a RAM upgrade for my PC. I pulled the plug, opened the case and began installing the first memory module. When I had it half inserted, my PC suddenly turned on. It was alive for merely a second, but that was long enough to fry my newest aquisition. Apparently "off" and "unplugged" do not imply "discharged" or "safe" any more these days.
-
RE: Why do I even try?
@aesis said:
Forward your banking info and naked pictures of your father to morbs immediately TO SAVE YOUR IMMORTAL SOUL!!!
FTFY.
-
RE: Maximum redundancy
@sorpigal said:
CREATE PROCEDURE [dbo].[visitor_get_maxid]
AS
BEGIN
select distinct id
from visitor
where id in (select top 1 id from visitor order by id desc)
ENDFTFY.
-
RE: Source control + Wait, what language?
@Watson said:
@blakeyrat said:
Try this little construct in IE and Firefox (gets me every time):
var gebi = document.getElementById;
gebi( "test_element" ); // Fails in everything but IEHuh, I've never tried that. Just did now, and got smacked for trying to link my script to the native chrome, for what Firefox claims are for security reasons.
I don't even know which standards apply in this case: it's not a DOM issue, because that's language-independent, and this is specifically JavaScript. But then, it's not JavaScript, because DOM isn't formally part of the language.
The reason is probably the way JavaScript determines the value of "this". In the call to gebi, "this" is window, not document. I guess Firefox complains because gebi would access the chrome-DOM, but there is no such thing in IE, so it does not matter.
Try this little test script. Every invocation of tst should print something different.
function tst(){ alert(this); }
tst();
var arr = [1, 2, 3];
arr.asdf = tst;
arr.asdf();
document.asdf = tst;
document.asdf();
document.asdf.call(arr);
String.prototype.asdf = tst;
"foo".asdf(); -
RE: True! No, false! No, true!
@blakeyrat said:
Except for a tiny sub-set of Linux developers and other various geeks, people have vastly, vastly more spatial memory (remembering what contains what, where the file icon lives, based on visual clues) than they do rote memory (remembering the names of directories and files).
I think system is more important than either memory. For example, I remember neither layout nor content of any directory except for maybe my desktop and a few other exceptions. I don't need to remember because my file manager will tell me.When I'm looking for something, I try to guess where I might have saved it. I don't remember the exact path, rather I rebuild it on the fly. For instance, when I need a specific document, I might start at my home folder. I see that I can choose between family pictures, mp3, and work stuff. I select work. Now I can choose between some projects and tax data. I select tax. Now I can choose between years 2005 to 2009 and select one. If my file is there, I'm happy. If it's not, I use a search engine. Icons and other visual clues can help in this process, but until I actually remember their meaning, names are more useful.
In my opinion, the major difference between CLI and GUI is not how to access files, but how to accomplish something. A GUI offers suggestions what I can do in a certain situation, e.g., in a context menu, whereas in a CLI I have to remember everything myself. Auto-completion helps somewhat, but I still have to remember every single command and its parameters I'm going to use. A CLI is certainly more flexible and powerful this way, but a GUI is usually more user-friendly and intuitive in the general case.
I think the "spatial" argument applies very well to GUI layout. The general window layout and menu structure of an application seldom change and are usually consistent across different software versions and computers. For example, most applications use a similar toolbar icon for their Save command and also have it at the same place inside the File menu.
-
RE: My name is Backspace
@ender said:
This isn't an UNC path, but a native Win32 path.
I got the "long UNC" term from a random wikipedia article because I couldn't find anything more specific than "prefix" in MSDN. -
RE: True! No, false! No, true!
@blakeyrat said:
Edit: Actually it's even weirder. If you have VS set to spaces, backspace will work correct sometimes and incorrectly others. For example, if you type a line, hit enter, then hit backspace it'll correctly backspace 4 spaces. However, if you hit tab on a new line, then hit backspace it'll only delete 1 space. This behavior (now that I've figured it out) is actually consistent in C++, C#, CSS, HTML and JavaScript files.
After a new line, VS automatically indents, but it does not insert spaces until you actually type something. Backspace acts as if there were tabs in this case. I usually have "View White Space" turned on so I can see what I'm deleting.
-
RE: My name is Backspace
@SlyEcho said:
On Windows you can create a file called " ". That's ASCII 0xA0 or non-breaking space, you can type that with ALT-160. You cannot delete or rename the file with explorer.exe or cmd.exe. The only way is to write a program that uses the win32 API to delete it (even .NET cannot delete it).
At least on Vista, cmd.exe can handle those files if you put the filename in quotes. The "short" file name works as well, although it is actually longer in this case (dir /x will tell you; the short name for " " should be something like 0A00~1). Using long UNC paths like "\\?\c:\temp\ ", you can even create a file called " " (yes, that's ASCII 0x20).
-
RE: True! No, false! No, true!
@blakeyrat said:
I wouldn't mind spaces, except if you accidentally tab too far, you have to hit backspace *4* times to correct your mistake.
Try Shift+Tab instead.
-
RE: Secure your PHP using one include file!
@blakeyrat said:
You are right that SSDS is pretty damned heavy, but on the other hand I never close it.
FTFY.
-
RE: You Rock Alagasco
@Qwerty said:
the two systems actually turn out to have a different number of digits because they mis-counted the leading zeros when specifying the second system.
This reminds me of a building at my university that has been renovated recently. Before renovation, every room had a unique, three-digit number without letters or leading zeroes. After renovation, the rooms on the first floor had the numbers 1 to 6 and the rooms on the basement 01 to 06. Fortunaly, someone realized that this was less than optimal. By now, the room numbers are A1 to A6 and A01 to A06. Oh, and TRWTF is that they painted A1 (one of the largest lecture halls on campus) lime green.
-
RE: C++ flow control - did I miss something?
Several years ago (think VB3), I once wrote something which I call "brute force equality." I don't recall the exact syntax, but it essentially looked like this:
For i = 1 To 3
If i = iFoobar Then
' lots of code using i
End If
NextI don't remember how I ended up with this code, however. Maybe that 500-SLOC loop might have had something to do with it ...
-
RE: 'Wi-Fi' Allergies
@grkvlt said:
He describes his various symptoms like this:
- ...
- I experienced Park communications signals at UHF/ VHF like a thick 2 inch nail penetrating my skull.
- ...
Actually, a thick 2 inch nail penetrating his skull might explain quite a bit.
-
RE: MORE Microsoft Photoshop Disasters?
@Toad King said:
MORE Microsoft Paint Disasters?
FTFY.
-
RE: Errd - Now that's a small printer!
@dhromed said:
@Nyquist said:
@DaveK said:
I think Signature Guy is a pretty cool guy. eh agrees with whatever Quietust just poasted and doesnt afraid of anything!
+1 epic
+1 agree
+1 math
-
Fuzzy security
Saw this on TV yesterday. What would you do if you accidentally recorded someone entering (part of) the secret access code to an ultra secure lab?
[url=http://i.imagehost.org/view/0728/vlcsnap-2009-12-31-17h16m53s215][img]http://i.imagehost.org/t/0728/vlcsnap-2009-12-31-17h16m53s215.jpg[/img][/url]
-
RE: There must be an easier way...
TRWTF is that is_winmobile is always false.
-
RE: Design by committee
Well, some languages support named parameters ... Apparently, C# does not. Or did I miss something?