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

Archive for 2016

DVCS for your Linux etc configuration

Posted by jpluimers on 2016/04/11

Manually you can do it like this: How To Use Git to Manage your User Configuration Files on a Linux VPS | DigitalOcean.

But there is also etckeeper. There is even a set of manual installation steps for opensuse: backup – etckeeper for opensuse – bash script install and configure – Unix & Linux Stack Exchange.

Three important etckeeper gotchas with powerful scripts like pre-commit /etc/etckeeper/pre-commit.d:

  • Ensure you give them executable permissions like chmod 755.
  • Ensure they are valid sh scripts.
  • Do not give them the .sh extension:
    • fails: /etc/etckeeper/pre-commit.d/10rsync-var-lib-named-master
    • works: /etc/etckeeper/pre-commit.d/10rsync-var-lib-named-master.sh

–jeroen

via:

Posted in *nix, *nix-tools, etckeeper, Linux, openSuSE, Power User, SuSE Linux | Leave a Comment »

On Nintendo’s choice of the 6502 for the Famicom, later to be the NES, and the BCD patent.

Posted by jpluimers on 2016/04/10

Very cool This week, a look at Nintendo’s choice of the 6502 for the Famicom, later to be the NES.

It skims on the BCD patent, which they covered before in more depth.

–jeroen

Posted in 6502, History | Leave a Comment »

Het verbond van verzekeraars vind de MobielSchadeMelden.nl een waardige vervanging voor een niet installerende/werkende App

Posted by jpluimers on 2016/04/08

De MobielSchadeMelden App op Android is niet echt koek en ei. Voor sommige mensen werkt het niet omdat de app denkt dat er geen internet verbindingen is, voor anderen installeert het niet eens.

De suggestie: gebruik de MobielSchadeMelden.nl site (die eigenlijk begint op https://www.mobielschademelden.nl/#/forms/gettingstarted of voor de demo-site https://demo.abzportal.nl/flusso//#/landingspagina en https://demo.abzportal.nl/flusso//#/forms/gettingstarted)

Als die site zo goed is, waarom dan geld van verzekerden uitgeven om een App te bouwen?

–jeroen

Read the rest of this entry »

Posted in Android Devices, Power User | Leave a Comment »

SATA controller links for ZFS and ESXi

Posted by jpluimers on 2016/04/08

Some useful links:

M1015 is still used a lot, but there are many choices for SATA/SAS HBAs that are compatible with ESXi and ZFS.

SATA passthrough for many things seem to have stopped with ESXi 5.5 (5.1 and below should work). Some links related to that:

IDE and USB passthrough of CD/DVD devices seem to be fine though:

OEM adapters:

There are many SFF-8088 to SFF-8087 adapters.

–jeroen

via

Posted in ESXi5, ESXi5.1, ESXi5.5, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

License for MICROSOFT VISUAL STUDIO COMMUNITY 2015 (which includes Xamarin use)

Posted by jpluimers on 2016/04/07

Wow, Microsoft has come a long way:

MICROSOFT VISUAL STUDIO COMMUNITY 2015


These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. They apply to the software named above. The terms also apply to any Microsoft services or updates for the software, except to the extent those have different terms.


IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW.

  1. INSTALLATION AND USE RIGHTS.
    1. Individual license. If you are an individual working on your own applications to sell or for any other purpose, you may use the software to develop and test those applications.
    2. Organization licenses. If you are an organization, your users may use the software as follows:
      • Any number of your users may use the software to develop and test your applications released under Open Source Initiative (OSI) approved open source software licenses.
      • Any number of your users may use the software to develop and test extensions to Visual Studio.
      • Any number of your users may use the software to develop and test your applications as part of online or in person classroom training and education, or for performing academic research.
      • If none of the above apply, and you are also not an enterprise (defined below), then up to 5 of your individual users can use the software concurrently to develop and test your applications.
      • If you are an enterprise, your employees and contractors may not use the software to develop or test your applications, except for open source and education purposes as permitted above. An “enterprise” is any organization and its affiliates who collectively have either (a) more than 250 PCs or users or (b) more than one million US dollars (or the equivalent in other currencies) in annual revenues, and “affiliates” means those entities that control (via majority ownership), are controlled by, or are under common control with an organization.
    3. Demo use. The uses permitted above include use of the software in demonstrating your applications.

The license continues, but the above are the most important aspect to verify if you can use Visual Studio 2015 under that license.

Source: MICROSOFT VISUAL STUDIO COMMUNITY 2015

Via Danial Rail and Mason Wheeler in this thread.

–jeroen

Posted in .NET, C#, Development, Software Development, VB.NET, Visual Studio 2015, Visual Studio and tools | 1 Comment »

The Simple, Elegant Algorithm That Makes Google Maps Possible | Motherboard

Posted by jpluimers on 2016/04/07

Very interesting read and nice GIF showing how the algorithm works: The Simple, Elegant Algorithm That Makes Google Maps Possible | Motherboard.

Dijkstra_Animation.gif   

Second image: ​Sub83/Wiki

–jeroen

Posted in Algorithms, Development, Software Development | 1 Comment »

Anders Live | Build 2016 | Channel 9 – on Turbo Pascal, Delphi, C# and TypeScript

Posted by jpluimers on 2016/04/06

Anders Live - Build 2016 - Channel 9 Stage C907 - Speakers: Anders Hejlsberg, Seth Juarez

Anders Live – Build 2016 – Channel 9 Stage C907 – Speakers: Anders Hejlsberg, Seth Juarez

Anders explaining about being a pragmatist ever since he started working on the Turbo Pascal predecessor in 1981. It’s been a long way to TypeScript and beyond (:

Lot’s of interesting tidbits about the future of TypeScript and how it relates to other languages.

Source: Anders Live | Build 2016 | Channel 9

Direct URLs:

–jeroen

PS:

The Turbo Pascal predecessors were called Blue Link Software PascalCompas Pascal and Poly Pascal as I learned last year while teaching a workshop for DAPUG in Denmark when I bumped into some people working with Anders while he still lived there a long time ago. Later I researched the above links.

 

Posted in .NET, C#, Delphi, Development, History, Pascal, Software Development, Turbo Pascal | 1 Comment »

Cygwin first run and a few aliases

Posted by jpluimers on 2016/04/06

Cygwin first run looks like this:

Copying skeleton files.
These files are for the users to personalise their cygwin experience.

They will never be overwritten nor automatically updated.

'./.bashrc' -> '/home/jeroenp//.bashrc'
'./.bash_profile' -> '/home/jeroenp//.bash_profile'
'./.inputrc' -> '/home/jeroenp//.inputrc'
'./.profile' -> '/home/jeroenp//.profile'

jeroenp@msmxp ~
$

It will copy some default files to your profile so you can modify them.

Since Cygwin will run ~/.bash_profile on logon, and that in turn starts ~/.bashrc (see below), I’ve modified the latter to run ~/.bash_aliases and bring those a bit in sync with my regular Mac machine:


# New user-defined bash aliases file
# Is executed from a modified .bashrc file
# .bashrc is executed from .bash_profile on cygwin
# on other systems, see http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
## This is the portion in .bashrc you need to edit in cygwin to enable .bash_aliases:
## Aliases
##
## Some people use a different file for aliases
## if [ -f "${HOME}/.bash_aliases" ]; then
## source "${HOME}/.bash_aliases"
## fi
alias ls-8601='ls -l -T'
alias ls-full-8601='ls -l –time-style=full-iso'
# octal file modes through http://stackoverflow.com/questions/1795976/can-the-unix-list-command-ls-output-numerical-chmod-permissions
alias lsmod='ls -al|awk '\''{k=0;s=0;for(i=0;i<=8;i++){;k+=((substr($1,i+2,1)~/[rwxst]/)*2^(8-i));};j=4;for(i=4;i<=10;i+=3){;s+=((substr($1,i,1)~/[stST]/)*j);j/=2;};if(k){;printf("%0o%0o ",s,k);};print;}'\'''
# silence the progress meter on Cygwin with -sS via http://stackoverflow.com/questions/7373752/how-do-i-get-curl-to-not-show-the-progress-bar
alias whatismyip='curl -sS http://whatismyip.akamai.com && echo'

view raw

.bash_aliases

hosted with ❤ by GitHub

cURL has some idiosyncrasies, for instance Cygwin shows the progress meter by default, but Mac OS X does not. I wanted to disable the cURL progress meter and you heed -sS for that.

ls doesn’t show you octal file modes by default, but chown and umask use them, so I’ve got the lsmod alias through stack-overflow.

Bash initialisation

Getting your bash initialisation right can be tough. There are lengthy discussions about which .bash* files run under what circumstances:

–jeroen

Posted in bash, Development, Scripting, Software Development | Leave a Comment »

A future Delphi won’t download start page content from the Embarcadero site

Posted by jpluimers on 2016/04/05

The “Official statement” of Embarcadero about their recent hacks are in the form of comments on public messages mentioning the hacks, some asking to take discussions offline.

They forgot to comment on Delphi: disable or change your welcome page to not use the Embarcadero site (as that site has been hacked twice this weekend) « The Wiert Corner – irregular stream of stuff, so here is their comment from the G+ thread I posted:

FYI: Future versions will no longer have the banner pulled from the website on the start page.

Source: This weekend, the Embarcadero web site was hacked by AnonCoders. once…

I hope it will be the upcoming Delphi 10.1 Berlin version, but given their speed at responding to security threats, I won’t hold my breath.

–jeroen

PS: what a coincidence that I wrote this yesterday on G+:

I know of a few companies that could benefit from more openness.

Ilya Grigorik originally shared: Edge team announced new (EdgeHTML) open issue tracker: http://bit.ly/1S3uhp5 – yay! The times, they are changing.File away!

Posted in Delphi, Delphi 10 Seattle, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development | Leave a Comment »

cURL is not a wget clone (so cannot do mirror) – via: MacNN Forums

Posted by jpluimers on 2016/04/05

Even though cURL seems to handle https better than wget, it is not a wget replacement.

From the cURL FAQ :

1.3 What is cURL not?

Curl is not a wget clone. That is a common misconception. Never, during curl’s development, have we intended curl to replace wget or compete on its market. Curl is targeted at single-shot file transfers.

Curl is not a web site mirroring program. If you want to use curl to mirror something: fine, go ahead and write a script that wraps around curl to make it reality (like curlmirror.pl does).

Curl is not an FTP site mirroring program. Sure, get and send FTP with curl but if you want systematic and sequential behavior you should write a script (or write a new program that interfaces libcurl) and do it.

–jeroen

via:

Posted in *nix, cURL, Power User, wget | Leave a Comment »