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,854 other subscribers

Shouldnt this line be null terminated? HostEnt := gethostbyname(MarshaledASt…

Posted by jpluimers on 2018/08/07

[WayBackShouldnt this line be null terminated? HostEnt := gethostbyname(MarshaledAString(TEncoding.UTF8.GetBytes(Name))); – G+ – Allen Drennan

Yes it should, but I’m not sure if the compiler is fully to blame as GetBytes does not return a terminating zero byte.

–jeroen

Posted in Delphi, Development, Encoding, Software Development, UTF-8, UTF8 | Leave a Comment »

Two fans were podcasting at RetroMacCast before it was cool

Posted by jpluimers on 2018/08/07

Around this time, episode 500 of RetroMacCast should be out.

It’s an “about weekly” podcast centered around classic Apple computers, mainly of the Macintosh kind but occasionally also on the Apple I, ][, //e, //c and ///, IIgs and Lisa kinds.

After all these years since they started in 2006, It’s still fun to listen to.

Occasionally they do a vodcast on YouTube, for instance their 100th show below.

New episodes are announced here:

Source: [WayBackTwo fans were podcasting at RetroMacCast before it was cool

–jeroen

Read the rest of this entry »

Posted in //e, Apple, Apple ][, Classic Macintosh, History, Macintosh SE/30, Power User | Leave a Comment »

Prepaid SIM cards for USA

Posted by jpluimers on 2018/08/06

This thread has some tips on pre-paid SIM cards for use in the USA: [WayBackTelefonie en mobiel internet in de VS deel 2 – Pagina 9 – AllesAmerika.com Forum

This seems to be one of the few allowing for hotspot/tethering use: [WayBack] Arieli Mobile Unlimited + Tethering Data plan | Arieli Mobile – Prepaid USA SIM Card wireless provider

Via: [WayBack] T-Mobile vergroot databundels Travel & Surf-passen voor buiten EU – Tablets en telefoons – Nieuws – Tweakers

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Hacking Articles,Ethical Hacking Training in Delhi,Metasploit Training

Posted by jpluimers on 2018/08/06

Nowadays, with tools like Metasploit and what tools leaked from the NSA and other agencies, it is so easy to hack a system even if it is almost up to date.

All the more reason to keep your systems fully patched all the time.

To get a Metasploit impression: [WayBackHacking Articles,Ethical Hacking Training in Delhi,Metasploit Training

–jeroen

via: [WayBack] I gotta find time to look at this… Joe C. Hecht – Google+

Posted in Power User, Security | Leave a Comment »

windows – What is a good light-weight CSV viewer? – Stack Overflow

Posted by jpluimers on 2018/08/06

I use Nirsoft’s [WayBackCSVFileView. It is a simple lightweight read-only csv viewer.

Source [WayBackwindows – What is a good light-weight CSV viewer? – Stack Overflow

Posted in Power User, Windows | 2 Comments »

How I use Wireshark – Julia Evans

Posted by jpluimers on 2018/08/03

Cool set of steps on [WayBackHow I use Wireshark – Julia Evans who uses the combination of tcpdump to dump traffic in pcap files and Wireshark to analyse the pcap files after copying them using scp. On many platforms, Wireshark can also capture the ptrace files for you.

Via: [WayBack] 🔎Julia Evans🔍 on Twitter: “how I use Wireshark https://t.co/j699JXrjaH” which has some nice comments including:

  • adding ptrace to your tool-kit
  • not needing scp for copying, as you can do [WayBack] dumpcap over an existing ssh connection:
    • You might like this snippet, saves you the need to do the scp dance: wireshark -k -i <(ssh <IP> "sudo dumpcap -P -w - -f 'not tcp port 22'")

–jeroen

Posted in *nix, *nix-tools, Conference Topics, Conferences, Event, Power User, Wireshark | Leave a Comment »

Beyond compare – prefix any registry key comparisons with reg:\\

Posted by jpluimers on 2018/08/03

When you start with a blank registry comparison, then you need to compare keys copied from RegEdit with reg:\

For instance, when fixing [WayBack] Delphi fails to start after Windows did some “Program Compatibility Assistant” magic to it when BDS.exe crashed because the compiler ran out of memory:… – Jeroen Wiert Pluimers – Google+ I compared these:

reg:\\HKEY_CURRENT_USER\Software\Embarcadero\BDS

reg:\\HKEY_CURRENT_USER\Software\Embarcadero\JeroenProfile

Via: [WayBackSpecs

Note: Beyond compare registry settings are in:

  • HKEY_CURRENT_USER\Software\Scooter Software\Beyond Compare 4
  • HKEY_LOCAL_MACHINE\SOFTWARE\Scooter Software\Beyond Compare
  • HKEY_LOCAL_MACHINE\SOFTWARE\Scooter Software\Beyond Compare 4
  • HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Scooter Software\Beyond Compare
  • HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Scooter Software\Beyond Compare 4

jeroen Not sure where the CacheID entry under HKCU (and sometimes HKLM) is for.

Posted in Beyond Compare, Power User | Leave a Comment »

Mac OS X beyond Yosemite: Ctrl-Click to add/remove an item from a selection fails in Windows on VMware Fusion

Posted by jpluimers on 2018/08/03

Somewhere after Yosemite, braindead Mac OS X forcibly maps “Ctrl+Click” to right-click. In past versions, you could disable but those days have gone.

This means that inside Windows on VMware Fusion, you cannot add/remove items to/from a selection any more (for instance in the Windows Explorer).

Various workarounds turned up in my Google Search, but only this one works:

Holding down CTRL + OPTION together and LEFT CLICKING will do this.

Source: [WayBackvmware fusion – How to use the control key in VM Ware? – Super User

–jeroen

via:

Posted in Apple, Fusion, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, macOS 10.12 Sierra, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, Virtualization, VMware | Leave a Comment »

One more reason to disable live bindings: it throws exceptions when a project is in a project group having multiple projects upon project group load

Posted by jpluimers on 2018/08/02

This was Delphi Berlin, but Live Bindings is not much better in any other Delphi version when opening a project group having multiple applications none of which use Live Bindings:

This is how you disable them in Delphi 10.1 Berlin from the console; modify your BDS version and BPL version for other Delphi versions:

reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcomp240.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components" /f
reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompfmx240.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components FireMonkey" /f
reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompvcl240.bpl" /t REG_SZ /d "Embarcadero LiveBindings Components VCL" /f
reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompdbx240.bpl" /t REG_SZ /d "LiveBindings Expression Components DbExpress" /f
reg add "HKEY_CURRENT_USER\Software\Embarcadero\BDS\18.0\Disabled Packages" /v "$(BDSBIN)\dclbindcompfiredac240.bpl" /t REG_SZ /d "LiveBinding Expression Components FireDac" /f

(Reminder to self: modify bitbucket.org/jeroenp/wiert.me/src/tip/Native/Delphi/Scripts/List-Delphi-Installed-Packages.ps1 so it can generate these)

Edit: I have done just that: it now understands the GenerateDisablePackagesScriptparameter so it generates a small console script to disable various packages.

In QualityCentral: 144003 – Automated Incident Report:

Read the rest of this entry »

Posted in Delphi, Development, Live Bindings, Software Development | 2 Comments »

Diffing binary files in PlasticSCM through Beyond Compare

Posted by jpluimers on 2018/08/02

The diff engine in PlasticSCM is nice in appearance, but it lacks a lot of features for file types that Beyond Compare handles out of the box.

For instance, .RES files cannot be diffed:

---------------------------
Error
---------------------------
Unsupported file types for binary diff. Only images are supported (JPEG, PNG, GIF, BMP)
---------------------------
OK   
---------------------------

Read the rest of this entry »

Posted in Beyond Compare, Development, PlasticSCM, Power User, Source Code Management | 2 Comments »