The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

How do I scroll in tmux? – Super User

Posted by jpluimers on 2016/01/02

Ctrl-b then [ then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn). Press q to quit scroll mode.

Source: How do I scroll in tmux? – Super User

Posted in Uncategorized | Leave a Comment »

From my paper archives: early QuickReport materials and BDE network installation tips

Posted by jpluimers on 2016/01/01

[WayBack] While cleaning up my “attic”, I came across some old QuickReport 1.0 documents and BDE installation tips so I scanned them.

I think the first document is by this Lars Søndergaard.

The last is by Dave Robinson, then working at Amber Computer Systems Inc, but I could not find on-line activity of him If you know him, please let me know his on-line contact info.

–jeroen

Posted in Delphi, Delphi 1, Development, History, Software Development | 2 Comments »

Hack the Remote Desktop .RDP file

Posted by jpluimers on 2016/01/01

Glad I found out about the string to add to a .RDP file to make it connect to the administrative console whenever your remote supports that:

connect to console:i:1

–jeroen

via: Hack the Remote Desktop .RDP file.

Posted in Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Windows | 1 Comment »

Any ideas for a good text to direct anonymous and blocked numbers too?

Posted by jpluimers on 2015/12/31

Any ideas for a good text to direct anonymous and blocked numbers too?

I’m thinking along these lines:

You are calling with a blocked, or anonymous number. We get too many of those, mostly from marketing or sales persons. Call back with your real number and you might get to talk to a real person.

–jeroen

via:

Posted in LifeHacker, Power User | 1 Comment »

45 Jokes Only Programmers Will Get

Posted by jpluimers on 2015/12/31

Some great ideas for T-shirt prints: 45 Jokes Only Programmers Will Get.

Happy new year!

–jeroen

Posted in Fun, Quotes, T-Shirt quotes | Leave a Comment »

Disable screensaver using registry settings

Posted by jpluimers on 2015/12/30

This is what I needed:

:: http://www.windows-commandline.com/disable-screensaver-registry-settings/
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d 0 /f

And this one to verify the current settings:

:: http://www.windows-commandline.com/disable-screensaver-registry-settings/
:: possible names
:: ScreenSaveActive
:: ScreenSaveTimeOut
:: ScreenSaverIsSecure
reg query "HKEY_CURRENT_USER\Control Panel\Desktop" | findstr /I /C:"ScreenSave"

–jeroen

via:

Posted in Batch-Files, Development, Scripting, Software Development | Leave a Comment »

{} + [] vs. [] + {} – BECAUSE JavaScript: funny shirt for #JavaScript programmers or the ones poking fun of them

Posted by jpluimers on 2015/12/29

{} + [] vs. [] + {} – BECAUSE JavaScript: funny shirt for #JavaScript programmers➥ http://www.redbubble.com/people/ramiro/works/19808814-wat-because-javascript-funny-design-for-web-developers?p=t-shirt&style=womens&body_color=white&print_location=front #wat

–jeroen

Source: {} + [] vs. [] + {} – BECAUSE JavaScript: funny shirt for #JavaScript program…

Posted in Fun, Quotes, T-Shirt quotes | Leave a Comment »

Command Line Kung Fu: Episode #43: Users & Groups

Posted by jpluimers on 2015/12/29

I needed to compare the local group memberships on a few systems.

I knew there is the distinction between

  • net group (which despite documentation requires /domain as it does not support local groups: you get a nice NET HELPMSG 3515 error) and
  • net localgroup (which can either run locally or with /domain).

So I came up with this batch file thanks to Command Line Kung Fu:

:: http://blog.commandlinekungfu.com/2009/06/episode-43-users-groups.html
for /F "skip=4 delims=*" %%g in ('net localgroup ^| find /v "The command completed successfully"') do @net localgroup "%%g"

It can be done in PowerShell too, but is more work.

Based on that and Beyond Compare I created some diff scripts.

–jeroen

via:

Posted in Batch-Files, Development, Scripting, Software Development | 1 Comment »

Mac OS X: integrating Beyond Compare 4 into SourceTree 2.x

Posted by jpluimers on 2015/12/28

Unlike SourceTree for Windows, SourceTree for Mac still doesn’t automagically detect Beyond Compare even though that has been available for Mac OS X since :  [SRCTREE-2092] Add built-in support for Beyond Compare version 4 – Atlassian JIRA.

Even modifying my ~/.gitconfig didn’t work, but manual configuration did. Here are the steps:

  1. Start the UI version of Beyond Compare
  2. Select the Beyond Compare menu, install the command-line tools
    Read the rest of this entry »

Posted in Apple, Beyond Compare, Development, DVCS - Distributed Version Control, Keyboards and Keyboard Shortcuts, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Source Code Management, SourceTree | 3 Comments »

Steps for adjusting a whiteboard photo in Gimp

Posted by jpluimers on 2015/12/28

A long time ago, I wrote about Steps for adjusting a whiteboard photo in Paint.NET.

GIMP does an even better job with these steps:

Once: install the clean-whiteboard-photo script

  1. Visit https://github.com/kyleburton/sandbox/blob/master/gimp/clean-whiteboard-photo.scm
  2. Click “raw”
  3. Hit “Ctrl-S” to save the file as file-type “*.txt” and file-name  “%temp%\clean-whiteboard-photo_scm.txt”
  4. Go to the folder “%temp%”
  5. In there,
    1. select the firle  “clean-whiteboard-photo_scm.txt”,
    2. change it into  “clean-whiteboard-photo.scm”,
    3. copy the file
  6. Go to the folder  “C:\Program Files\GIMP 2\share\gimp\2.0\scripts”
  7. Paste the file (you need to confirm Administrator rights through UAC)

The above steps will add this menu option to GIMP: menu “Filters” -> “Whiteboard” -> “Clean whiteboard photo”

For every picture: make it less ugly

  1. Start GIMP 2
  2. Open the picture
  3. With the “Rectangle Select” Tool (R), select the area of the whiteboard that you want to enhance
    1. If the area is not completely rectangular, make the selection large enough to cover everything needed in the final picture
  4. Only when the selection needs adjustment to make it rectangular:
    1. Choose the “Perspective” Tool (Shift-P)
    2. Drag the incorrect corners until the selection is rectangular
    3. In the “Perspective” tool window, click “Transform” to confirm
    4. The selection now is not rectangular any more, so deselect everything:
      1. In the menu, choose “Select” -> “None” (Shift-Ctrl-A)
  5. With the “Rectangle Select” Tool (R), select the area of the whiteboard that you want to enhance
  6. In the menu, choose “Image” -> “Fit canvas to selection”
  7. In the menu, choose “Filters” -> “Whiteboard” -> “Clean whiteboard photo”
  8. Click next to the selection to confirm the cleanup
  9. In the menu, choose “File” -> “Export”
    1. Save the file under a new name (often a PNG extension will give better compression than JPEG, and has less artifacts as well)

–jeroen

via: Steps for adjusting a whiteboard photo in Paint.NET « The Wiert Corner – irregular stream of stuff.

Posted in Image Editing, Power User | Leave a Comment »