18,972 reputation
64182
bio website
location Sydney, Australia
age
visits member for 2 years, 5 months
seen 15 mins ago

17h
comment How can a 80-bit floating point be used by a 32-bit system?
@Ƭᴇcʜιᴇ007 Not quite a dupe of that one. That one is more about the difference between a number and its text/ASCII representation, though some of those answers may also address this.
2d
comment Why does https://gmail.com/ produce no SSL error while using a bad certificate?
@Bruno I wasn't aware of subjectAltName's presence meaning the CN should be ignored (RFC2818§3.1 if anyone else is interested) - I had always assumed it was in addition to. Sorry. As for my answer - "As the SSL certificate hostname does not match the browser URL, why does this work?" is what my answer addresses - it does match the URI the browser is loading, which is different from the one typed. (I didn't mention/check/answer the OpenSSL output, yea - overlooked that).
2d
comment Why does https://gmail.com/ produce no SSL error while using a bad certificate?
@Bruno There are no SANs on the certificate served by https://mail.google.com/, unless I missed something. While they may be on the certificate from https://gmail.com, that's really the opposite of what the question was asking. Though, yes, SANs should be the first thing to check.
2d
answered Why does https://gmail.com/ produce no SSL error while using a bad certificate?
2d
comment Why does https://gmail.com/ produce no SSL error while using a bad certificate?
@Ramhound It sends a 301 Moved Permanently to mail.google.com. If you've visited it before, your browser will cache the redirection and won't even make the gmail.com request. It probably serves a different certificate.
Jul
27
comment How can I disable a single phone connector?
You could try supergluing something (toothpick? cut it for a flat end) to the broken-off piece to pull it out. Make sure glue doesn't get on the port or other parts (use a tiny bit and hold it there to set). 5-minute epoxy works too.
Jul
27
comment Debugging IPv6 routing issues
Well, you can create subnets with a longer prefix than /64; you just end up breaking some IPv6 features in the process.
Jul
27
comment How to close all file handles under a given folder programatically?
@HarryJohnston Worse, you could end up causing all sorts of file corruption for as long as the program is open: technet.microsoft.com/en-us/magazine/…
Jul
25
comment When I am prompted to restart after uninstalling software, is a shutdown okay too?
Your explanation is... not quite right. Put plainly, the main purpose of a restart is to update or delete files that are currently in use - and this could be a wide range of files. DLL files are not the only ones that can be updated. Also, non-system libraries are not usually shared anymore, and should never placed in system directories, not since Windows 9x (oh, about 15 years ago). Also, DLLs do not need to be registered (with the exception of COM objects, but most DLLs are not COM objects, and even then global registration is discouraged nowadays).
Jul
23
comment PuTTY remote command containing while loop
Why not just use ssh (OpenSSH)? That should be installed by default on Ubuntu. Or if you really have to use PuTTY, use plink, which is specifically designed for automation.
Jul
23
comment Vim can break file permissions?
Seems like 4913 is actually just the first name it tries, and its purpose is to check if it has enough permissions to do so. See: bugzilla.redhat.com/show_bug.cgi?id=427711#c6 and groups.google.com/forum/#!topic/vim_dev/sppdpElxY44
Jul
23
comment Vim can break file permissions?
@zrneely A tip for strace: use the -o option to write output to a file; otherwise it clashes with vim's output. As for write permissions, I don't see it checking directory permissions with stat but it does attempt to create a file (named 4913, seems random) in the current directory and then delete it.
Jul
23
revised Vim can break file permissions?
deleted 44 characters in body
Jul
23
revised Vim can break file permissions?
deleted 44 characters in body
Jul
23
comment Vim can break file permissions?
My first hunch is that you're allowed to change ownership of files in a directory you have write access to. But it seems that's not the case. CAP_CHOWN is required to call chown(2). By the way, I can reproduce on Debian, with vim 7.4.
Jul
23
answered Vim can break file permissions?
Jul
23
comment Commit charge is 100% full but physical memory is just 60% when using no page file
Specifically, before Windows will allocate memory it wants to be able to guarantee that it can fulfill these allocations when they are used. Even if the allocations are not fully used Windows will refuse to allocate more if it can't make that guarantee. A page file, whether used or not, provides additional backing storage.
Jul
22
comment Is it possible to configure Windows to always display a certain application in the foreground?
The only potential instability is if the target window somehow relied on not being on top (and I can't think of any reason that would happen). And even then that's not system instability, just the one application.
Jul
22
comment Is it possible to configure Windows to always display a certain application in the foreground?
wndTopMost is not fully correct - that's purely a MFC thing. The correct Win32 function is SetWindowPos with HWND_TOPMOST. All it requires is a handle to the window (again easy, with another Win32 function), actually, and there's nothing really unsafe about calling this from a process that does not own the window. It's not an ugly hack, and there's no "code injection" going on.
Jul
22
comment Is it possible to configure Windows to always display a certain application in the foreground?
possible duplicate of Force a window to stay always on top in Windows 7, Is it possible to get the Ubuntu 'Always on top' functionality in Windows?, Make window always on top?