18,847 reputation
64182
bio website
location Sydney, Australia
age
visits member for 2 years, 5 months
seen 1 hour ago

1d
comment How to hide cmd window of a Calibre Content Server batch script?
possible duplicate of What is the best way to hide a command prompt window
1d
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.
1d
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
1d
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.
1d
revised Vim can break file permissions?
deleted 44 characters in body
1d
revised Vim can break file permissions?
deleted 44 characters in body
1d
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.
1d
answered Vim can break file permissions?
1d
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?
Jul
22
comment Is it possible to configure Windows to always display a certain application in the foreground?
It's possible to inject this flag from another program. In fact, fairly trivial.
Jul
21
comment Play a sound (maybe WAV?) from Windows line command
@Dodd10x There are two ways I would suggest. One is to get the process ID of the PowerShell instance and save it to a file, then kill that ID at the start of a new instance (and clear the file). This is safer than killing all PS processes. The other way would be to use a semaphore (flag/signal) in PowerShell - you'd signal the semaphore, use Play() (async), wait for a semaphore, and close. Semaphores are a cleaner way of doing this, but a bit more complicated. I'd be happy to go into further detail in chat.
Jul
21
comment Play a sound (maybe WAV?) from Windows line command
@Dodd10x Not easily for global audio, no. Could you provide more context? Do you intend to kill or pause? Is the other player another instance of this script, or a media player, or a browser, a game, etc.? If it's another instance of the same script, then it's much simpler (though still not entirely trivial).
Jul
21
revised Where does Adobe Creative Suite professional save it's System Files?
Turns out he was actually asking about the suite (comments on answer)
Jul
21
revised Where does Adobe Creative Suite professional save it's System Files?
Adobe is a company. Acrobat is one of their products.
Jul
18
comment What is the best way to test a webpage on higher resolution than your current screen's resolutions?
@KamalReddy I don't think you'd be able to do so from within the content context (website), but it should be possible from the chrome context (addon). Well, in the future anyway. Perhaps you can simulate the Ctrl+Shift+M?
Jul
18
revised How to force Windows to rename a file with a special character?
Make question more generic (it really applies to all recent Windows versions, and the answers do too); removed "management" meta-tag
Jul
18
comment I accidentally changed my folder name to “D:”. How can I rename it again?
@DaveRook That one says it only applies to Services for UNIX (which was changed to Subsystem for UNIX-based Applications, and then deprecated as of Windows 8 and removed as of 8.1). I don't think it's applicable to normal Win32 usage, though it might still work. It's also needlessly complex and only really useful for continuous usage (their example was folders shared with *nix systems), rather than a one-off rename.