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

Archive for the ‘Development’ Category

This week’s guest poster, +Jac Goudsmit, tells us all about video chips in microcomputers… – mos6502 – Google+

Posted by jpluimers on 2016/05/14

Recommended reading:

This week’s guest poster, +Jac Goudsmit, tells us all about video chips in microcomputers… – mos6502 – Google+

–jeroen

Posted in 6502, Development, History, Software Development | Leave a Comment »

vysor.io/dead-mac.png at master · koush/vysor.io

Posted by jpluimers on 2016/05/12

If I ever need a “dead Mac” picture…

Source: vysor.io/dead-mac.png at master · koush/vysor.io

Dead Mac

Dead Mac

It since then has been removed from the current Vysor version, but the last revision having it was [Wayback/Archive] vysor.io/public/app at v3.1.4 · koush/vysor.io under [Wayback/Archive] vysor.io/dead-mac.png at v3.1.4 · koush/vysor.io as

[Wayback/Archive] dead-mac.png (240×307)

dead-mac.png

More dead mac pictures:

Read the rest of this entry »

Posted in Android, Android Devices, Development, Mobile Development, Power User, Software Development, Vysor | Leave a Comment »

pandoc oneliner from reStructuredText to html

Posted by jpluimers on 2016/05/12

[WayBack] Pandoc is so versatile that you sometimes forget a conversion can be as simple as a one-liner:

pandoc -s README.rst -o readme.html

This converts the reStructured text in README.rst to html.

Pandoc is smart enough to recognise the conversions without you telling the formats with -f (input format) and -t (output format) explicitly.

If you do need to explicitly specify the format, it is useful to query which formats are supported as per [WayBack] Pandoc – Pandoc User’s Guide: specifying formats:

  • pandoc --list-input-formats
  • pandoc --list-output-formats

Read the rest of this entry »

Posted in Development, PDF, Power User, Scripting, Software Development | Leave a Comment »

ntrights – grant/revoke Logon As Batch Job rights

Posted by jpluimers on 2016/05/11

Sometimes you want to run a batch file from a Task Scheduler task. For that, the user under which the task runs needs to Logon as a batch job right. If it hasn’t, you get this nice error message:

“This task requires that the user account specified has log on as batch job rights”.

Despite being part of the Windows Server 2003 Resource Kit Tools, you can still use ntrights in more modern Windows versions to grant or revoke this right.

As ntrights uses a hard to remember SeBatchLogonRight name for it and I tend to forget the ntrights syntax, I wrote two batch files to grant or revoke the Logon as Batch Job rights for the specified user:

Read the rest of this entry »

Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista | Leave a Comment »

How Shazam Works To Identify (Nearly) Every Song You Throw At It

Posted by jpluimers on 2016/05/10

The basics:

  1. Beforehand, Shazam fingerprints a comprehensive catalog of music, and stores the fingerprints in a database.
  2. A user “tags” a song they hear, which fingerprints a 10 second sample of audio.
  3. The Shazam app uploads the fingerprint to Shazam’s service, which runs a search for a matching fingerprint in their database.
  4. If a match is found, the song info is returned to the user, otherwise an error is returned.

More details at How Shazam Works To Identify (Nearly) Every Song You Throw At It including this fingerprint example

Song Audio Fingerprint

Song Audio Fingerprint

–jeroen

via: How Shazam Works To Identify (Nearly) Every Song You Throw At It.

Posted in Algorithms, Development, Software Development | Leave a Comment »

Sacrificial Architecture: design your software to live for a limited time.

Posted by jpluimers on 2016/05/05

Today I revisited a post by Martin Fowler on Sacrificial Architecture from last year because I was looking for this quote:

“design for ~10X growth, but plan to rewrite before ~100X”

Thanks Lars Fosdal for pointing me to it in the first place back then.

–jeroen

via:

Posted in Design Patterns, Development, Software Development | Leave a Comment »

Visual Studio 2013+: printing with syntax highlighting has moved to the “Productivity Power Tools”

Posted by jpluimers on 2016/05/04

Back in the Visual Studio 2010 days there was a request for Printing source code with syntax coloring.

Then, the Visual Studio team released an extension that did just that: Color Printing Extension Now Available! – The Visual Studio Blog – Site Home – MSDN Blogs.

It got updated for Visual Studio 2012 in the gallery Color Printing extension, but that does not mention it has moved to the Productivity Power Tools 2013 extension.

Both tools are from the Visual Studio IDE team, and mentioned on their blog.

–jeroen

via: printing – How to print XML from Visual Studio 2013 with syntax colouring? – Stack Overflow.

Posted in .NET, Development, Software Development, Visual Studio 2010, Visual Studio 2012, Visual Studio 2013, Visual Studio 2015, Visual Studio and tools | Leave a Comment »

Latest Tumbleweed distribution update likely kills sshd

Posted by jpluimers on 2016/05/03

After a recent big update to OpenSuSE Tumbleweed, I could not ssh into my system any more.

Symptoms

The ssh client side would report a Read from socket failed: Connection reset by peer which I misinterpreted as the sshd not running at all.

Luckily the server is a VM, so I could reach the console. There I saw this:

sshd trying to load files it shouldn't

sshd trying to load files it shouldn’t

The files should not be loaded as they are not specified in the sshd_config file:

dsa and ecdsa not specified in the config file

dsa and ecdsa not specified in the config file

So I knew something was broken. After reading some messages in the forums.opensuse.org I got at Bug 977812 – sshd killed by SIGSYS on client connection

The cause

As usual with such issues the cause seems a combination of factors:

And we have the culprit, I believe: together with the glibc upgrade, openssl
was updated from 1.0.2g-1.1 to 1.0.2-2.12 which brought, among others, patch
openssl-urandom-reseeding.patch.

Temporary fix

A temporary fix is to comment out a line in /etc/sshd_config so you get this diff:

-UsePrivilegeSeparation sandbox # Default for new installations.
+# UsePrivilegeSeparation sandbox # Default for new installations.

Be sure to undo this as soon as you’ve received a final fix.

Final fix

A final fix is being fast-tracked so it appears in Tumbleweed soon.

I will report after deployment of [opensuse-factory] New Tumbleweed snapshot 20160502 released! as I think it contains the fix.

Aftermath

I already knew about openQA: Test summary which lists the builds, but not the changes in the builds.

Reading through Information Board or the like for Tumbleweed I found the openSUSE Mailinglist Archive: opensuse-factory which does the announcements and release notes for Tumbleweed.

It had both the announcement of the “big patch”, ssh bug report and temporary fix:

–jeroen

 

 

Posted in *nix, Communications Development, Development, Internet protocol suite, Linux, openSuSE, Power User, SSH, SuSE Linux, TCP, Tumbleweed | 2 Comments »

Mac OS X and python “ValueError: unknown locale: UTF-8”

Posted by jpluimers on 2016/05/03

On Mac OS X, to solve the Python error “ValueError: unknown locale: UTF-8“:

Add some lines to your ~/.bash_profile then re-start bash (or re-login):

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

–jeroen

via python – Pelican 3.3 pelican-quickstart error “ValueError: unknown locale: UTF-8” – Stack Overflow.

Posted in Development, Python, Software Development | Leave a Comment »

Obsolescence Guaranteed – PiDP-8 – powered by a Raspberry Pi

Posted by jpluimers on 2016/05/02

If you have a Raspberry Pi left, then you can make this:

The PiDP-8/I is a modern replica of the 1968 PDP-8/I computer. It’s open-source hardware, so schematics, design files & software are available.

via: Obsolescence Guaranteed | PiDP-8

–jeroen

Posted in Development, Hardware Development, Raspberry Pi | Leave a Comment »