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

InnoSetup where the *AppData constants point to

Posted by jpluimers on 2017/11/08

The paths are on a standard Windows 7 x64 machine installed on the C: drive. More recent versions of Windows should use the same place.

I’ve not been able to verify this in a domain situation with roaming profiles and redirected folder paths. If anyone has info on that, please let me know.

Anyway, I’ve made some the constants into a table:

Inno Setup constant
[WayBack]
Windows 7 directory KNOWNFOLDERID
[Archive.is]
CSIDL (<= Vista)
[WayBack] ([WayBack])
Environment variable
[WayBack]
System.Environment.SpecialFolder
[WayBack]
commonappdata C:\ProgramData FOLDERID_ProgramData CSIDL_COMMON_APPDATA ALLUSERSPROFILE System.Environment.SpecialFolder.CommonApplicationData
localappdata C:\Users\<UserName>\AppData\Local FOLDERID_LocalAppData CSIDL_LOCAL_APPDATA LOCALAPPDATA System.Environment.SpecialFolder.LocalApplicationData
userappdata C:\Users\<UserName>\AppData\Roaming FOLDERID_RoamingAppData CSIDL_APPDATA APPDATA System.Environment.SpecialFolder.ApplicationData

One day I might find time to make this table more complete.

Until then, the code is somewhere around theses pieces of code:

Read the rest of this entry »

Posted in Development, Inno Setup ISS, Installer-Development, Software Development | Leave a Comment »

Issues are disabled at tohosokawa/rst-preview-pandoc: reStructuredText preview in Atom using Pandoc

Posted by jpluimers on 2017/11/08

No more issue reporting: tohosokawa/rst-preview-pandoc: reStructuredText preview in Atom using Pandoc

This is a very useful Atom.io package, but it has one big issue: when you close a preview window then re-opening it, the settings are restored to the default -frst -thtml --webtex ones.

As I’m an Atom.io n00b, I need to dig into this another time.

Notes:

I want the defaults to include --standalone --toc --toc-depth=5 or at least --standalone --toc.

For now I’ve hardcoded them.

–jeroen

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

bash: `printf` supports `\e` just like `echo -e` does

Posted by jpluimers on 2017/11/07

Learned a few things when modifying https://github.com/gkotian/gautam_linux/blob/master/scripts/colours.sh

Note: `printf` supports emitting `ESC` (ASCII character `\033` aka `27` aka `0x1B`)as `\e` the same way that `echo` does

https://linux.die.net/man/1/printf
https://linux.die.net/man/1/echo

Format strings are at https://linux.die.net/man/3/printf
%-10s means left adjusted (aligned) string of length 10

–jeroen

via:

I was investigating how the colour definitions on my OpenSuSE system actually work internally so I added some extra output: ${TYPE} and ${COLOUR}.

Source: Show type and colour definition in addition to the rendered colour. by jpluimers · Pull Request #5 · gkotian/gautam_linux

Posted in *nix, *nix-tools, bash, bash, Development, Linux, openSuSE, Power User, Scripting, Software Development, SuSE Linux | Leave a Comment »

Session plan for all of CodeRage XII (starts 20171107)

Posted by jpluimers on 2017/11/07

Schedule in European time zone:

Schedule in USA time zones:

–jeroen

via: [WayBack] If you’re not sure what the sessions are at this year’s CodeRage – here’s a full list and timetable. CodeRage is a free multi-day online conference wit… – David Millington – Google+

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

Long read about Unicode: You, Me And The Emoji: Character Sets, Encoding And Emoji – Smashing Magazine

Posted by jpluimers on 2017/11/07

A well worth long rad:

We all recognize emoji. They’ve become the global pop stars of digital communication. But what are they, technically speaking? And what might we learn by taking a closer look at these images, characters, pictographs… whatever they are 🤔 (Thinking Face). We will dig deep to learn about how these thingamajigs work. Please note: Depending on your browser, you may not be able to see all emoji featured in this article (especially the Tifinagh characters). Also, different platforms vary in how they display emoji as well. That’s why the article always provides textual alternatives. Don’t let it discourage you from reading though! Now, let’s start with a seemingly simple question. What are emoji?

[WayBackYou, Me And The Emoji: Character Sets, Encoding And Emoji – Smashing Magazine

Via: [WayBack] Everything you ever wanted to know about characters, encodings, glyphs… and, oh yeah, emoji: bit.ly/2fNKeW3Long, rewarding read. – Ilya Grigorik – Google+

Here is just the ToC:

TABLE OF CONTENTS LINK

  1. Character Sets And Document Encoding: An Overview
    1. Characters
    2. Character Sets
    3. Coded Character Sets
    4. Encoding
  2. Declaring Character Sets And Document Encoding On The Web
    1. content-type HTTP Header Declaration
    2. Checking HTTP Headers Using A Browser’s Developer Tools
    3. Checking HTTP Headers Using Web-based Tools
    4. Using A Meta Element With charset Attribute
    5. An Encoding By Any Other Name
  3. What Were We Talking About Again? Oh Yeah, Emoji!
    1. So What Are Emoji?
    2. How Do We Use Emoji?
    3. Character References
    4. Glyphs
    5. How Do We Know If We Have These Symbols?
    6. The Great Emoji Proliferation Of 2016
  4. Emoji OS Support
    1. Emoji Support: Apple Platforms (macOS and iOS)
    2. Emoji Support: Windows
    3. Emoji Support: Linux
    4. Emoji Support: Android
  5. Emoji On The Web
    1. Emoji One
    2. Twemoji
  6. Conclusion

–jeroen

Posted in ASCII, Development, Encoding, ISO-8859, ISO8859, Shift JIS, Unicode, UTF-16, UTF-8, UTF16, UTF8, Windows-1252 | Leave a Comment »

#pixelpushing Trying to estimate pretty much anything related to schedules in software development be all like…

Posted by jpluimers on 2017/11/06

From a whil ago: [WayBack] #pixelpushingTrying to estimate pretty much anything related to schedules in software development be all like… – Kirill Grouchnikov – Google+

Original image at: [WayBack] Amazing squirrel jump… – GIF on Imgur

Via: [WayBack] Roderick Gadellaa at G+: Tech, gadgets, internet, code

–jeroen

 

Posted in Development, Software Development | Leave a Comment »

Installing ruby gems on Windows

Posted by jpluimers on 2017/11/06

Steps:

  1. Install the Ruby Installer from rubyinstaller.org/downloads
  2. Add the directory where Ruby got installed to the user PATH (using "%windir%\System32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables) in my case C:\Ruby23\bin as I installed Ruby 2.3.1
  3. Install the CA certificates:
    1. Download https://curl.haxx.se/ca/cacert.pem to the Ruby directory (C:\Ruby32)
      • Note this used to be at http://curl.haxx.se/ca/cacert.pem but serving that over http instead of https does not much sense when you want to secure your connections.
    2. Add the environment variable SSL_CERT_FILE with value C:\Ruby23\cacert.pem (again using "%windir%\System32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables).

If you forget step 3, then you get errors like this:

C:\Users\jeroenp>gem install gist
ERROR:  Could not find a valid gem 'gist' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

C:\Users\jeroenp>gem update --system
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

–jeroen

References

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

“Network Graph of Programming Language Influence – White Background” Posters by ramiro | Redbubble

Posted by jpluimers on 2017/11/03

Via [WayBackGraph of programming languages influence poster – nice gift idea for programmers… – This is why I Code – Google+:

A network graph with more than a thousand programming languages connected by influence relations. Highly influential languages like Lisp, Smalltalk, C, Java, Pascal, C++, Haskel or Python are shown as larger circles as compared to languages with little influence on others like PHP or Argh!. / The influence relation data was retrieved from Freebase in 2013. This design available on posters and other products. An awesome gift for programmers who are into digital art. • Also buy this artwork on wall prints, apparel, kids clothes, and more.

[WayBack“Network Graph of Programming Language Influence – White Background” Posters by ramiro | Redbubble

I wonder how they drew the relations and why certain languages are in certain places.

--jeroen

Read the rest of this entry »

Posted in C, C++, COBOL, Development, Haskell, Java, Java Platform, JavaScript/ECMAScript, LISP, Pascal, Perl, PHP, Python, Ruby, Scripting, Smalltalk, Software Development, Turbo Prolog | Leave a Comment »

Anyone having trouble with Windows 10 latest update (build 1709)?

Posted by jpluimers on 2017/11/03

[WayBack] Anyone having trouble with Windows 10 latest update (build 1709)? – Agustin Ortu – Google+

It looks that for some people, Windows 10 version 1709 (the Fall Creators Update) uninstalls applications.

Not good.

–jeroen

Posted in Power User, Windows, Windows 10 | 1 Comment »

(52) You Give REST a Bad Name – YouTube

Posted by jpluimers on 2017/11/02

(Usually the “state transfer” in Representational state transfer fails)

Video via +Kristian Köhntopp “Die 90er haben angerufen und wollen ihre Amiga Videos und ihre Corba Specs zurück haben.” (the 90s called wanting their Amiga Videos and Corba Specs back)

[WayBack] https://plus.google.com/+KristianK%C3%B6hntopp/posts/58D9BisX5Dj

–jeroen

Posted in Communications Development, Development, Fun, HTTP, Internet protocol suite, REST, TCP | Leave a Comment »