The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

  • 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 ‘Software Development’ Category

C to Go “cheat sheet” at C, Go – Hyperpolyglot

Posted by jpluimers on 2018/03/06

Great cheat sheet [WayBackC, Go – Hyperpolyglot

via: [WayBack] C to Go “cheat sheet”Try Go. You might like it.http://golang.org – Kevin Powick – Google+

 

Posted in C, Development, Go (golang), Polyglot, Software Development | Leave a Comment »

WouterVanNifterick/C-To-Delphi: C To Delphi converter

Posted by jpluimers on 2018/03/01

Reminder to self: check out WouterVanNifterick/C-To-Delphi: C To Delphi converter and the state it is in now.

via: [WayBack] Hi, I’ve created a C to Delphi converter.Because it’s been so useful to me that I’ve decided to share it.It converts C code as-you-type, and it keeps… – Wouter van Nifterick – Google+

–jeroen

Posted in C, Delphi, Development, Software Development | Leave a Comment »

YouTube videos in Markdown – via Markdown Cheatsheet · adam-p

Posted by jpluimers on 2018/02/28

Clever, as I didn’t know you could directly refer to the YouTube preview image using the “/0.jpg” trick:

Youtube videos

They can’t be added directly but you can add an image with a link to the video like this:

<a href="http://www.youtube.com/watch?feature=player_embedded&v=YOUTUBE_VIDEO_ID_HERE
" target="_blank"><img src="http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg" 
alt="IMAGE ALT TEXT HERE" width="240" height="180" border="10" /></a>

Or, in pure Markdown, but losing the image sizing and border:

[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/YOUTUBE_VIDEO_ID_HERE/0.jpg)](http://www.youtube.com/watch?v=YOUTUBE_VIDEO_ID_HERE)

Source: [WayBackMarkdown Cheatsheet · adam-p/markdown-here Wiki · GitHub

Gif using gifs.com

If you allow using resources outside of YouTube, then you can use gifs.com to render the video into a gif image and use that image in the above construct.

I tried that with a few seconds from http://www.youtube.com/watch?v=iHOpw55TI-U which resulted in https://gifs.com/gif/liquid-prompt-Lg1kPp and the gif file https://j.gifs.com/Lg1kPp.gif

via: [WayBackflash – How to embed a video into GitHub README.md? – Stack Overflow (thanks [WayBackaloisdg for answering)

–jeroen

Read the rest of this entry »

Posted in Development, Lightweight markup language, MarkDown, Power User, SocialMedia, Software Development, YouTube | Leave a Comment »

“all (file based) data is a program that gets executed when read”

Posted by jpluimers on 2018/02/28

With the continued progress of non-local storage and distributed computing., I wonder how this is evolving over time:

[WayBack] +Alan Cox changed my thinking years ago with a simple statement that I’ll paraphrase as: “all (file based) data is a program that gets executed when read”… – Jan Wildeboer – Google+

–jeroen

Posted in Development, Software Development | Leave a Comment »

Cross platform console based UI toolkit for .NET with “Turbo Vision” looks: GitHub – migueldeicaza/gui.cs

Posted by jpluimers on 2018/02/27

How cool are these related libraries:

[WayBack] Miguel de Icaza on Twitter: “On my copious spare time, I wrote a console UI toolkit for .NET, check it out: https://t.co/1fMKvcWUyd… “

–jeroen

Read the rest of this entry »

Posted in .NET, C#, Development, Software Development | Leave a Comment »

»If files are 3 KB in size, does it make more sense to store them directly in a DB or does it make more sense to store only their path in the DB?«

Posted by jpluimers on 2018/02/27

On Linux, always remember the splice function makes direct data paths between handles very cheap, so storing it as files is better.

Be sure to read the discussions here:

–jeroen

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

Code Review Checklist – CodeProject

Posted by jpluimers on 2018/02/20

Still relevant: [WayBackCode Review Checklist – CodeProject

[WayBack]  Best “Everything Else” Article of November 2016 Ebenezar John Paul – Code Review Checklist… – CodeProject – Google+

–jeroen

Read the rest of this entry »

Posted in Agile, Code Quality, Code Review, Development, Software Development | Leave a Comment »

When Atom crashes you’re guided to use safe-mode, but safe-mode cannot disable packages

Posted by jpluimers on 2018/02/15

When you get a Window like this upon Atom.io start, and starting to report a bug, they guide you to a “start Atom in safe mode first, then try to disable all packages to sort out if it’s a package issue” and point to [WayBackDebugging: using safe mode.

The problem here is that when you start Atom in safe mode (from the console using atom --safe) then in the preferences you cannot disable packages: clicking on the “Disable” button has absolutely no effect.

This was with atom --version

atom --version
Atom : 1.12.8
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0

I worked around this by editing ~/.atom/config.cson as that already contained a section like this:

  core:
    disabledPackages: [
      "nav-panel"
    ]

So I wrote a poor-mans little script that generated the inner portion of that block:

pushd ~/.atom && ls -1d packages/*/ | sed 's/packages\// "/g' | sed 's/\//"/g' && popd

which got me this nice list:

"atom-beautify"
"atom-html-preview"
"atom-keyboard-macros"
"atom-wrap-in-tag"
"autocomplete-xml"
"broadcast"
"close-tags"
"color-picker"
"counter"
"emmet"
"export-html"
"file-icons"
"git-plus"
"language-batch"
"language-bbcode"
"language-innosetup"
"language-pascal"
"language-plantuml"
"language-restructuredtext"
"language-routeros-script"
"linter"
"nav-panel-plus"
"nav-panel"
"omnisharp-atom"
"pandoc-convert"
"plantuml-preview"
"print-atom"
"rot13"
"rst-preview-pandoc"
"sort-lines"
"sync-settings"
"tabs-to-spaces"
"xml-formatter"
"xml-tools"

From there, I did a binary search for the offending package: broadcast so I’ve filed an issue there.

–jeroen

Read the rest of this entry »

Posted in atom editor, Development, Diagram, PlantUML, Power User, Software Development, Text Editors, UML | 1 Comment »

Running/execute an Atom.io command not present in the menu/toolbar isn’t that obvious

Posted by jpluimers on 2018/02/15

Took me a while to figure out that you can run any command in Atom.io, even if it’s not in the menu or toolbar:

This isn’t very clear in Atom, but what you’re after is this menu item: Toggle Command Palette

Mac OS X: Shift+Command+P:

Mac OS X: Shift+Command+P

Windows: Ctrl+Shift+P

Windows: Ctrl+Shift+P

–jeroen

via: [WayBackWhere can I run Atom command? – Stack Overflow

Posted in atom editor, Development, Power User, Scripting, Software Development, Text Editors | Leave a Comment »

macos – Right-click, create a new text file. How? – Ask Different

Posted by jpluimers on 2018/02/14

I’m still amazed this is not in stock Mac OS X:

In Finder > Select a folder > Right click, we get a popup with an option to create a new folder:Is there a way to add menu item New Textfile for adding a new text file?

[WayBackmacos – Right-click, create a new text file. How? – Ask Different

One way is to use Automator scripts, but: scripting…

–jeroen

Posted in Apple, Automator scripts, Development, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, macOS 10.12 Sierra, OS X 10.10 Yosemite, OS X 10.11 El Capitan, OS X 10.9 Mavericks, Power User, Scripting, Software Development | Leave a Comment »