The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • 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,331 other followers

Archive for the ‘Scripting’ Category

How did this shit ever work? – The Isoblog.

Posted by jpluimers on 2018/01/09

Though I like Python, I can feel the pain when maintaining in other’s code: [WayBackHow did this shit ever work? – The Isoblog reporting [WayBacknetwork.py does not handle interface resets properly · Issue #663 · python-diamond/Diamond.

Via: [WayBack] How did this shit ever work? – Kristian Köhntopp – Google+

Image from Reddit: parodies on O RLY Books: [WayBackimgur.com/qErVcwA: Life on an Ops team…

–jeroen

Read the rest of this entry »

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

Reinstalling atom.io: getting the user-installed package list then re-installing it.

Posted by jpluimers on 2018/01/02

Sometimes your Atom installation gets so unstable that the quickest solution is a reinstall. For that you need to get a list of user-installed packages, then re-install them.

On Windows your Atom Package Manager apm is here (but not in the path), where the first is version specific and the latter the most recent version:

%LOCALAPPDAT%\atom\app-1.18.0\resources\cli\apm.cmd
%LOCALAPPDATA%\atom\bin\apm.cmd

On Mac OS X, it is here and in the path:

/usr/local/bin/apm
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm

Save your packages:

apm list --installed --bare > package-list.txt

Install packages:

apm install --packages-file package-list.txt

For my own memory, the settings folders:

  • Windows: %USERPROFILE%\.atom
  • Mac OS X: ~/.atom

–jeroen

via:

Posted in Atom, Development, JavaScript/ECMAScript, Node.js, Power User, Scripting, Software Development, Text Editors | Leave a Comment »

“error accessing the registry” while importing a registry file

Posted by jpluimers on 2017/12/11

I while ago I had the error “error accessing the registry” while importing.

In my case I had escaped too many back-slashes. Not just the file names in the values, also the registry key names.

So I had key names like this:

[HKEY_CURRENT_USER\\Software]

That fails, but the error won’t tell you why. The key needs to be this:

[HKEY_CURRENT_USER\Software]

–jeroen

Posted in Development, Registry Files, Scripting, Software Development | Leave a Comment »

Let’s stop copying C / fuzzy notepad

Posted by jpluimers on 2017/12/07

Ah, C. The best lingua franca we have… because we have no other lingua francas. Linguae franca. Surgeons general? C is fairly old — 44 years, now! — and comes from a time when there were possibly more architectures than programming languages. It works well for what it is, and what it is is a relatively simple layer of indirection atop assembly. Alas, the popularity of C has led to a number of programming languages’ taking significant cues from its design, and parts of its design are… slightly questionable. I’ve gone through some common features that probably should’ve stayed in C and my justification for saying so. The features are listed in rough order from (I hope) least to most controversial. The idea is that C fans will give up when I call it “weakly typed” and not even get to the part where I rag on braces. Wait, crap, I gave it away.

Great re-read towards the end of the year: [WayBackLet’s stop copying C / fuzzy notepad

Via: [WayBack] Old and busted: emacs vs vi. New and hot: Language war, everybody against everybody else. – Kristian Köhntopp – Google+

–jeroen

Posted in .NET, APL, Awk, bash, BASIC, C, C#, C++, COBOL, CoffeeScript, CommandLine, D, Delphi, Development, F#, Fortran, Go, Java, Java Platform, JavaScript/ECMAScript, Pascal, Perl, PHP, PowerShell, PowerShell, Python, Ruby, Scala, Scripting, Software Development, TypeScript, VB.NET, VBScript | 3 Comments »

Data Science Advent – franz.media

Posted by jpluimers on 2017/12/05

Cool: @filmfranz made an advent calendar on Python data analysis featuring a lot of Pandas examples referring to source code found on the interwebz: [WayBackData Science Advent – franz.media.

First example is to eliminate outliers in the below graph.

He also has a really cool (German) Playlist on data analysis with Python called Datenanalyse in Python and has a great site with examples at franz.media.

–jeroen

via: [WayBack] Very cool idea: an advent calendar with tips for doing data science with Python and Pandas created by @filmfranz 👉 http://franz.media/advent.html – ThisIsWhyICode – Google+

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

 
%d bloggers like this: