Not sure why yet, but on a gigabit network between a Windows 2008 R2 Server and a Proxmox KVM machine, WinSCP gets around 10 megabit/second and FileZilla > 30 megabit/second.
Others seem to agree that filezilla faster than winscp.
–jeroen
Posted by jpluimers on 2016/10/21
Not sure why yet, but on a gigabit network between a Windows 2008 R2 Server and a Proxmox KVM machine, WinSCP gets around 10 megabit/second and FileZilla > 30 megabit/second.
Others seem to agree that filezilla faster than winscp.
–jeroen
Posted in Communications Development, Development, Internet protocol suite, Power User, Proxmox, SSH, TCP, Virtualization, VMware, Windows, Windows Server 2008, Windows Server 2008 R2 | 1 Comment »
Posted by jpluimers on 2016/10/21
Below a table with clickable links, details are in the Via at the end. I added some more beyond the 10 original ones.
# URL What Footer 1 Footer 2 Footer 3 1 https://accounts.google.com/SignUpWithoutGmail Get a new account 2 https://www.google.com/ads/preferences Manage advertisement profile 3 https://www.google.com/takeout Download your Google data (mail can take days!) 4 https://support.google.com/legal To file a complaint about using copyrighted or unpermissioned material 5 https://maps.google.com/locationhistory Shows where your devices have been 6 https://history.google.com All your searches 7 https://www.google.com/settings/account/inactive Prevent extended inactivity, Google doesn’t delete your account after 9 months. 8 https://security.google.com/settings/security/activity When you suspect account abuse 9 https://security.google.com/settings/security/permissions Set permissions of apps and sites relating to your account 10 https://admin.google.com/example.org/VerifyAdminAccountPasswordReset Apps users: reset admin account by adding a CNAME to the DNS 11 https://plus.google.com G+ / Google Plus 12 https://plus.google.com/hangouts Google Hangouts 13 https://gmail.com GMail / Google Mail 14 https://contacts.google.com Google Contacts (note + button to add is hidden behind Hangouts pop-up also on the lower right) 15 https://calendar.google.com Calendar / Agenda 16 https://www.google.com/sync Sync Google Settings between various devices / applications 17 https://myaccount.google.com Account and privacy settings 18 https://myaccount.google.com/security Security settings like two-factor authentication (2-step signin) 19 https://security.google.com/settings/security/secureaccount Check if your security settings (recovery phone, recovery email, security question) are still up to date. 20 https://myaccount.google.com/privacycheckup/1 Setting your privacy 21 https://wallet.google.com Manage Wallet 22 https://play.google.com Google Play Store and settings 23 https://www.google.com/android/devicemanager Where is your Android device # href what # href what # href what # href what # href what # href what # href what # href what # href what # href what # href what
–jeroen
via: Some Imporatant URLs you should know as a Google User – I am Programmer.
Posted in GMail, Google, Power User | Leave a Comment »
Posted by jpluimers on 2016/10/20
I will probably need this in the future as occasionally I still do Delphi work:
–jeroen
Posted in Delphi, Delphi 2006, Delphi 7, Development, Software Development | 2 Comments »
Posted by jpluimers on 2016/10/20
The unix shell is hard, but boy, sometimes it can work like magic, for instance piping two testssl.sh commands into one gist:
retinambpro1tb:testssl.sh jeroenp$ ( ./testssl.sh --version ; ./testssl.sh --local ) | gist -d "testsll version and local ciphers for Mac OS X Darwin binarries supporting zlib"
https://gist.github.com/701496d7fbf929967aa1
The source of this magic was this AskUbuntu answer: How to merge and pipe results from two different commands to single command? – Ask Ubuntu
–jeroen
via: openssl.Darwin.x86_64 lacks zlib support · Issue #164 · drwetter/testssl.sh
Posted in *nix, *nix-tools, bash, bash, Development, Power User, Scripting, Software Development, Uncategorized | Leave a Comment »
Posted by jpluimers on 2016/10/19
One of the nitpicks in VMware Fusion is that it has no keyboard shortcut for Resume or Suspend. I was trying to add Command-R and Command-S for those but that didn’t work out.
Since the links below seem to work for some other applications, I’ve kept them:
–jeroen
Posted in Apple, Development, Keyboards and Keyboard Shortcuts, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, Software Development | Leave a Comment »
Posted by jpluimers on 2016/10/19
I like repositories to have as much of the information in text format.
Delphi traditionally puts both the MAINICON and the VersionInfo resources in a binary .res file and also updates that file on almost every recompile.
There are quite a few posts explaining how to get them from text, but a version controlled example works best for me, so there is one at https://github.com/jpluimers/atom-table-monitor/blob/master/ATOMScannerConsole
The trick is to:
| <RcCompile Include="MAINICON.rc"> | |
| <ModuleName>MAINICON.rc</ModuleName> | |
| <Form>MAINICON.res</Form> | |
| </RcCompile> | |
| <RcCompile Include="VERSIONINFO.rc"> | |
| <ModuleName>VERSIONINFO.rc</ModuleName> | |
| <Form>VERSIONINFO.res</Form> | |
| </RcCompile> |
Here are the example files:
Posted in Delphi, Delphi 10 Seattle, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, QC, Software Development | 2 Comments »
Posted by jpluimers on 2016/10/18
While upgrading a truckload of Delphi stuff for a client, I came across the IMPLICITBUILDING directive in a few .dpk files that Delphi XE2 sometimes inserts but XE8 doesn’t.
This appears to be a Delphi XE2 specific thing that in younger Delphi versions has been solved properly SolarWind‘s answer on Stack Overflow:
The compiler directives which appear between the $IFDEF IMPLICITBUILDING and $ENDIF are normally passed as parameters by the compiler when explicitly compiling a package. Because these options change based on the configuration (debug / release) and target platform (Win32, Win64, OSX32) it’s problematic to have them statically defined in the package project source. When defined in the project source they will always override the options passed by the compiler. The $IFDEF prevents these options from being used during explicit compilation.
Source: Delphi XE2: What is the purpose of IMPLICITBUILDING directive found in package – Stack Overflow
and comment by Andreas Hausladen:
That seems to be a workaround for the problem that compiling packages with the msbuild script ignored all dproj compiler options because they were read from the dpk file by the compiler.
Some more references (I’ve saved them in the WayBack machine as the forums auto-expire posts):
–jeroen
Posted in Delphi, Delphi XE2, Delphi XE8, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2016/10/18
I’m used to multiline comments in many languages, but since I don’t use bash very often, I only recently learned it can do that too.
So this is how to have comments span multiple lines in bash by using the : command which according to the bash man page does nothing:
: [arguments]
No effect; the command does nothing beyond expanding arguments and performing any specified redirections. A zero exit code is returned.
So the syntax is:
: '
your comments here
'
–jeroen
Posted in bash, Development, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2016/10/17
(Don’t ask for details; at a site with Microsoft Data Protection Manager an external company monitoring that DPM didn’t notice various backups – including the domain controller – were months old despite daily tape changes; so then the RAID fell out because multiple disks failed within hours, contingency aftermath took weeks)
When you logon to a client machine and get “The trust relationship between this workstation and the primary domain failed”
Powershell Test-ComputerSecureChannel to see if the connection is indeed lost:
True then you have a different problem (have not seen this, but just in case: this blog post won’t solve that)False, then continue with the next stepPowershell Test-ComputerSecureChannel -Repair and check if the output is True (when False there )Note there are various posts suggesting to use Powershell Reset-ComputerMachinePassword and netdom.exe resetpwd /s:dc-hostname.domain /ud:domainadminusername /pd:*. Though faster than rejoining the domain, the Powershell Test-ComputerSecureChannel is even faster and easier.
–jeroen
via:
Posted in Power User, Windows | Leave a Comment »
Posted by jpluimers on 2016/10/17
There are various places that tell you you cannot resize a thick disk to a thin disk using vmkfstools.
When you do it wrong, you get this error:
DiskLib_Check() failed for source disk. The file specified is not a virtual disk (15).
This happens when you directly try to resize the physical disk image:
# vmkfstools --clonevirtualdisk msmxp-flat.vmdk --diskformat thin msmxp-flat.thin.vmdk DiskLib_Check() failed for source disk The file specified is not a virtual disk (15).
Whereas you should point vmkfstools to the disk descriptor file which has the shortest name:
# vmkfstools --clonevirtualdisk msmxp.vmdk --diskformat thin msmxp.thin.vmdk Destination disk format: VMFS thin-provisioned Cloning disk 'msmxp.vmdk'... Clone: 100% done.
(Note that many people shorten the --clonevirtualdisk to -i and --diskformat to -d).
For performance, it doesn’t matter much if your disk is thick or thin as explained by Death to false myths: The type of virtual disk used determines your performance.
But various people issues expanding a thick disk. With thin disks, that usually works fine.
This post explains the correct steps of resizing: VMWare ESXi 5.1–convert virtual disk (vmdk) from thick to thin provision.
For instance with rsync is great for making a local backup:
# time ./850EVO1TBR1B/bin/rsync -aiv --info=progress2 --progress ./850EVO1TBR1B/Raid6SSD-VM/msmxp/ ./850EVO1TBR1A/Raid6SSD-VM/msmxp/
/vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # du -h *.vmdk 12.0G msmxp-flat.vmdk 0 msmxp.vmdk
There are two: msmxp.vmdk describes the disk and msmxp-flat.vmdk has the data.
# ls -al /vmfs/volumes | grep "552f5788-33e30274-8dba-001f29022aed" drwxr-xr-t 1 root root 2660 Aug 5 04:35 552f5788-33e30274-8dba-001f29022aed lrwxr-xr-x 1 root root 35 Aug 5 06:11 850EVO1TBR1B -> 552f5788-33e30274-8dba-001f29022aed # df -h | grep "850EVO1TBR1B\|Use%" Filesystem Size Used Available Use% Mounted on VMFS-5 930.8G 736.8G 194.0G 79% /vmfs/volumes/850EVO1TBR1B
# vmkfstools --clonevirtualdisk msmxp.vmdk --diskformat thin msmxp.thin.vmdk Destination disk format: VMFS thin-provisioned Cloning disk 'msmxp.vmdk'... Clone: 100% done.
In my case the flat disk was almost full and fragmented, so the thin disk is not smaller:
/vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # du -h *.vmdk 12.0G msmxp-flat.vmdk 12.0G msmxp.thin-flat.vmdk 0 msmxp.thin.vmdk 0 msmxp.vmdk
Use vmkfstools (do not use mv as that will not keep the descriptor/data vmdk files bound together) and check the rename.
You can replace --renamevirtualdisk with -E:
/vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --renamevirtualdisk msmxp.thin.vmdk msmxp.vmdk ## /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools -E msmxp.vmdk msmxp.thick.vmdk /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # du -h *.vmdk 12.0G msmxp-flat.vmdk 12.0G msmxp.thick-flat.vmdk 0 msmxp.thick.vmdk 0 msmxp.vmdk
If it does, then delete it (you can replace --deletevirtualdisk with -U) which will remove both both the descriptor and data vmdk file:
/vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --deletevirtualdisk msmxp.vmdk ## /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools -U msmxp.vmdk /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # du -h *.vmdk 12.0G msmxp-flat.vmdk 0 msmxp.vmdk
After shutting down the VM again and making a new backup, you can now expand the disk as described in VMware KB: Adding space to an ESXi/ESX host virtual disk.
You can replace --extendvirtualdisk with -X.
/vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --extendvirtualdisk 14G msmxp.vmdk ## /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools -X 14G msmxp.vmdk Grow: 100% done. /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # du -h *.vmdk 12.0G msmxp-flat.vmdk 0 msmxp.vmdk /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --renamevirtualdisk msmxp.vmdk msmxp.thick.vmdk /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --clonevirtualdisk msmxp.thick.vmdk msmxp.vmdk --diskformat thin Destination disk format: VMFS thin-provisioned Cloning disk 'msmxp.thick.vmdk'... Clone: 100% done. /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # diff msmxp.thick.vmdk msmxp.vmdk --- msmxp.thick.vmdk +++ msmxp.vmdk @@ -7,18 +7,18 @@ createType="vmfs" # Extent description -RW 29360128 VMFS "msmxp.thick-flat.vmdk" +RW 29360128 VMFS "msmxp-flat.vmdk" # The Disk Data Base #DDB -ddb.adapterType = "ide" -ddb.thinProvisioned = "1" -ddb.geometry.sectors = "63" -ddb.geometry.heads = "16" -ddb.geometry.cylinders = "29127" -ddb.uuid = "60 00 C2 9f 5e f8 33 76-6e c5 48 3c f2 84 d8 1e" -ddb.longContentID = "5659579edebed2ebdd8e0c8fda15abd4" ddb.toolsVersion = "9221" ddb.virtualHWVersion = "8" ddb.deletable = "true" +ddb.longContentID = "5659579edebed2ebdd8e0c8fda15abd4" +ddb.uuid = "60 00 C2 95 66 1b cf 7a-e3 db 3f 30 17 7e 00 2d" +ddb.geometry.cylinders = "29127" +ddb.geometry.heads = "16" +ddb.geometry.sectors = "63" +ddb.thinProvisioned = "1" +ddb.adapterType = "ide" /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # du -h *.vmdk 12.0G msmxp-flat.vmdk 12.0G msmxp.thick-flat.vmdk 0 msmxp.thick.vmdk 0 msmxp.vmdk /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --extendvirtualdisk 14G msmxp.vmdk Failed to extend disk : One of the parameters supplied is invalid (1). /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --extendvirtualdisk 14G msmxp.vmdk Failed to extend disk : One of the parameters supplied is invalid (1). /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --extendvirtualdisk 14G msmxp.vmdk Failed to extend disk : One of the parameters supplied is invalid (1). /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --extendvirtualdisk 15G msmxp.vmdk Grow: 100% done. /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # du -h *.vmdk 12.0G msmxp-flat.vmdk 12.0G msmxp.thick-flat.vmdk 0 msmxp.thick.vmdk 0 msmxp.vmdk /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # vmkfstools --deletevirtualdisk msmxp.thick.vmdk /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp # du -h *.vmdk 12.0G msmxp-flat.vmdk 0 msmxp.vmdk /vmfs/volumes/552f5788-33e30274-8dba-001f29022aed/Raid6SSD-VM/msmxp #
–jeroen
via: vmware esxi – vmkfstools returns error when trying to copy thin vmdk – Server Fault.
Posted in ESXi4, ESXi5, ESXi5.1, ESXi5.5, ESXi6, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »