Archive for August, 2014
Posted by jpluimers on 2014/08/12
In the With Statement series:
Lars Fosdal – Code Rants
The dreaded with…
Debugging today, I found another gotcha.
In this case, both Self and DisconnectedClient has a property named ClientIdentifier.
Note the difference for the mouse-over and the evaluation.
–jeroen
Read the rest of this entry »
Posted in Appmethod, Borland Pascal, Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi 8, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Development, Pascal, Software Development, Turbo Pascal, With statement | Leave a Comment »
Posted by jpluimers on 2014/08/12
A long while ago, DelphiBasics.info (they are hosted on Google Sites) posted a very interesting via: uExecFromMem unit. It was only a code snippet, not much usage info.
One of the things you can do with this unit, is load the memory image of an executable from a database BLOB, then execute that.
bummi showed this as an uExecFromMemory example on StackOverflow including a small memory leak fix.
It opens way for some interesting deployment scenarios. Not for the everyday ones, but for the occassional situation where a regular deployment is impractical.
–jeroen
via: uExecFromMem by steve10120 – fixed for Win7x64 by testest – DelphiBasics.
Comment by Craig Peterson at G+: https://plus.google.com/109418621512564781181/posts/WZSa6Nt44rK
It’s a handy looking unit, but has a licensing bomb in it: The PerformBaseRelocation routine is lifted directly from BTMemoryModule.pas, which is only licensed LGPL without the binary linking exception. That means providing your DCUs so anyone can relink your app. It’s also a bit less maintainable than BTMemoryModule, since they replaced a bunch of declared constants with magic numbers.
Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Software Development | 4 Comments »
Posted by jpluimers on 2014/08/11
via +Kristian Köhntopp Chris Blasko originally shared:
Today is a good day. I just had a call from a telemarketer. Did I yell and scream at them, you ask? Certainly not. Like a good IT administrator I put my skills to use for their benefit. Here’s how the conversation went.
Which ended with the phone of the Telemartketeer being factory reset.
–jeroen
via: Today is a good day. I just had a call from a telemarketer. Did I yell and….
Posted in LifeHacker, Opinions, Power User | Leave a Comment »
Posted by jpluimers on 2014/08/11
If you ever had one of the below errors and your system does not have Restore Points, then you’re hosed: virtually no chance for recovering from that (except for once case, see below).
The errors are these:
- Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM
- Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SOFTWARE
- Stop: c0000218 {Registry File Failure} The registry cannot load the hive (file): \SystemRoot\System32\Config\SOFTWARE or its log or alternate
- System error: Lsass.exe
When trying to update a password the return status indicates that the value provided as the current password is not correct.
To recover from this error, you have to follow the steps in How to recover from a corrupted registry that prevents Windows XP from starting, which requires you to have System Restore turned on as the global steps boil down to this: Read the rest of this entry »
Posted in Power User, Windows, Windows XP | Leave a Comment »
Posted by jpluimers on 2014/08/10
Abstract of The “Just In Time” Theory of User Behavior:
…the design of your software has a profound impact on how users behave within your software…
- Encouraging the “right” things by making those things intentionally easy to do.
- Discouraging the “wrong” things by making those things intentionally difficult, complex, and awkward to do.
–jeroen
via: The “Just In Time” Theory of User Behavior.
Posted in Development, Software Development, Usability, User Experience (ux) | Leave a Comment »
Posted by jpluimers on 2014/08/09
Posted in Power User | Leave a Comment »
Posted by jpluimers on 2014/08/09
Interesting:
Sysmon v1.0:
We’re excited to announce Sysmon, a new Sysinternals utility that monitors and reports key system activity via the Windows event log, including detailed information about process creation, network connections and file creation timestamp changes. With Sysmon installed on your systems, you can collect and analyze these events to identify the presence of attackers, and correlate events across your network to track them as they traverse your network.
It was released on 20140714.
–jeroen
via Windows Sysinternals: Documentation, downloads and additional resources.
Posted in Power User, SysInternals, SysMon, Windows | Leave a Comment »
Posted by jpluimers on 2014/08/08
Most things are simple when you know how to do it.
In this case it was to move the Dock to a different monitor (or to restore it to your main monitor when you accidentally moved it to a secondary monitor).
TbonesTech explains it in the below video, and it is this simple:
On the monitor on which you want the Dock to appear, move the mouse to the bottom of the screen.
Then wait a moment for the Dock to move to that location.
It works in Mavericks. It might work in older versions as well, but I’ve not checked that yet.
–jeroen
via: How to Move the Dock to a External Display on a Mac – YouTube.
http://www.youtube.com/watch?v=-ynaOUk1lVw
Posted in Apple, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2014/08/08
Though there is a Unicode character for the Apple Command Key, there is none for the Windows Key.
The Windows font WinDings does have a character 255 for it, but that font usually is not installed on non-Windows systems. There it will look like Unicode Character ‘LATIN SMALL LETTER Y WITH DIAERESIS’ (U+00FF)
This Unicode code point comes closest to the Windows key: Unicode Character ‘SQUARED PLUS’ (U+229E) and is used by Windows Key page on WikiPedia.
- The WinDings character looks like this: ÿ
(non no Windows systems, it will look like an y with two dots on it: ÿ)
- The Unicode Codepoint U+229E like this: ⊞
Not a complete match, but pretty close.
The Unicode code points for Mac modifier keys are these:
–jeroen
Posted in Development, Encoding, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, Software Development, Unicode, Windows, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Vista, Windows XP, Windows-1252 | Leave a Comment »