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

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 »

Firebird News » Migration Guide to Firebird 3

Posted by jpluimers on 2016/05/02

Reminder to self so I buys this: Firebird News » Migration Guide to Firebird 3

–jeroen

via: Ondrej Kelle

Posted in Database Development, Development, Firebird | Leave a Comment »

Lantronix SpiderDuo Remote KVM Switch: Affordable KVM Over IP Switches

Posted by jpluimers on 2016/05/02

Lantronix SpiderDuo Remote KVM Switch: Affordable KVM Over IP Switches.

Interesting KVM-over-IP solution.

–jeroen

via: A bunch of stuff broke this month, learned a lot fixing it all | TinkerTry IT @ Home.

Posted in ESXi4, ESXi5, ESXi5.1, ESXi5.5, ESXi6, Network-and-equipment, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

windows update cannot currently check for updates because the service is not running window 7 – when the official fixes don’t work

Posted by jpluimers on 2016/04/29

Sometimes the solution is soooo simple:

The fix for me was to:

  1. go into Windows Update and
  2. change the settings to “Never check for updates (not recommended)”,
  3. click OK, and
  4. then change it back to “Install updates automatically”.

I’m sure that switching it off this way and then choosing any option that enables windows updates would have had the same effect. As soon as I did this, windows update went from having a red X to a green check mark that said “Windows is up to date” (even though it was not – but this signified that the service was now working properly). I clicked check for updates and was successful – several updates were ready to be downloaded and installed.

Source: windows update cannot currently check for updates because the service is not running window 7 HELP

–jeroen

Posted in Power User, Windows, Windows 7 | Leave a Comment »

LSI sense codes

Posted by jpluimers on 2016/04/29

A while ago, I had RAID arrays suddenly drop out with unexpected sense codes.

I had a hard time tracking down what was wrong (it ended up being a faulty LSI Multi-lane Internal SFF-8087  to SATA/SAS Cable).

This caused all sorts of unexpected failures, hard to track down to any specific sense code.

As drives are bound to fail, and finding sense codes is a bit difficult, here are a few links that might help if I ever run into trouble again:

Read the rest of this entry »

Posted in LSI/3ware, Power User, RAID, SAS/SATA, SFF-8087 | Leave a Comment »

vSphere HTML5 client shortcut tricks in Chrome for Windows – unclutter your browser-based UIs so they look like native apps! – TinkerTry

Posted by jpluimers on 2016/04/28

Great tips from Use Chrome for VMware-related taskbar shortcuts, unclutter your browser-based UIs so they look like native apps! | TinkerTry IT @ Home

Use these links to jump to each section’s step-by-step instructions for:

  1. vSphere Client – legacy Win32 C# client, likely to be deprecated soon
  2. ESXi Embedded Host Client – HTML5/JavaScript UI for ESXi
  3. vSphere HTML5 Web Client – HTML5/JavaScript UI for vCenter, released just 5 days ago!
  4. vSphere Web Client – comprehensive (and sluggish Adobe Flash) vCenter admin browser UI
  5. VAMI – occasional-use browser UI for back-end vCSA sysadmin
  6. Video showing how to create all 5 shortcuts – Step-by-step thorough YouTube video

–jeroen

Posted in ESXi6, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

reStructuredText notes (.rst file extension)

Posted by jpluimers on 2016/04/28

Thanks to Eric Grange who asked Which lightweight markup language? I learned about reStructuredText (no cap R!) from a few comments Joseph Mitzen made.

It looks like reStructuredText has been around for much longer than Markdown, has better features (#1 for me: it is unambiguous, : native support on GitHub), but isn’t as popular. I think the latter is because finding editors supporting a live preview for it is a bit hard and tools are scattered around the net.

So here are a few notes on how I got reStructuredText to work on my Mac using OS X.

The hardest part was getting the reStructuredText preview for Atom to work:

  1. Verify you have recent apm/npm
  2. Download, then install the latest Mac Pandoc release (filename like “pandoc-*-osx.pkg”).
  3. Open Atom
  4. Menu “Atom” -> “Preferences” to open a “Settings” tab in the Atom user interface
  5. In the list “Settings”, “Keybindings”, “Packages”, “Themes”, “Updates”, “Install”, choose the last one: “Install”
  6. In the “Search packages” textbox, type “language-restructuredtext”, then hit Enter
  7. Wait a few seconds until “language-restructuredtext” appears in the list, then click the “Install”  button next to it
  8. In the “Search packages” textbox, type “rst-preview-pandoc”, then hit Enter
  9. Wait a few seconds until “rst-preview-pandoc” appears in the list, then click the “Install” button next to it
  10. To enable spell checking:
    1. In “Settings”, go to “Packages”
    2. Search for “spell-check”
    3. Click “settings”
    4. Add “gfm.restructuredtext” to the “Grammars” list
    5. Note you get “gfm.restructuredtext” from the “language-restructuredtext” package as described in Spell check in Atom – Atom quick tip #3 – Atom Editor Tips and Tricks.
  11. Restart Atom from the command-line (otherwise it will not find pandoc *)
  12. Open a reStructuredText file
  13. Press Ctrl-Shift-e to show the preview
  • pandoc error:

The error you get when pandoc cannot be found is this one:

‘pandoc’ could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

It is easy to solve by modifying the Atom startup shell script and then don’t start Atom.app, but start atom from the command-line in a terminal window:

atom

For Windows:

  1. Install Chocolatey Gallery.
  2. Follow the steps at Hello Windows.
  3. Fails horribly: “The term ‘Install-ChocolateyPackage’ is not recognized as the name of a cmdlet”.
    1. Split-Path bug preventing Chocolatey to install a package · Issue #686 · chocolatey/chocolatey · GitHub.

A later try to get Pandoc installed on Windows was much easier: there is a Pandoc for Windows installer now.

Settings changes

I made a few, for instance:

  1. Ensure Tab to expands to spaces: See Soft Tabs and Tab Length under Settings > Editor Settings. via github – Atom – Change indentation mode – Stack Overflow.

Tables

Tables are always a hard thing in any markup. Luckily truben.no/table/ has a good table editor (it’s the same as table-editor.com) and can emit reStructuredText, Markdown, HTML and other formats.

More in the future

Give me some time, and I will post more about using the format and how it compares to my Markdown past.

Note that pandoc does not fully support reStructuredText (for instance not all table features are supported), but docutils rst2html.py does and also gives better warning/error information when parsing.

Here are some links about the reStructured syntax and how they can be rendered by rst2html.py:

For now, I’ll end with the goals of reStructuredText which I really like:

Read the rest of this entry »

Posted in Development, MarkDown, Perl, PHP, Power User, Python, reStructuredText, Scripting, Software Development | Leave a Comment »