Skip to main content
Chris WarrickChris Warrick
  • Contact
  • Projects
  • Guides
  • Archives
  • Tags
  • Light Mode

Posts about Programming

📣 RSS Feed

Writing a Console App in C# for Fun and Profit

19 September 2022 22:35
  • Programming
  • .NET
  • C#
  • programming
  • web development

I recently wrote a simple console app in C#. This post tells you more about the language, the .NET ecosystem, and why you should write your next app in it.

Read more…

Spawning subprocesses smartly and securely

02 September 2017 20:40
  • Programming
  • best practices
  • C
  • devel
  • guide
  • Linux
  • Python
  • security
  • subprocess
  • Unix

A guide about spawning subprocesses for Unix/Linux (and partially Windows)

As part of your code, you may be inclined to call a command to do something. But is it always a good idea? How to do it safely? What happens behind the scenes?

Read more…

Apple broke the display menu, so I wrote my own

24 June 2017 21:02
  • Programming
  • app
  • Apple
  • display
  • programming
  • projects
  • Swift

A short time ago, the macOS display menu stopped working for me. It no longer had options to change mirroring settings, only supporting AirPlay. So I wrote my own, also solving some other issues.

Read more…

Unix locales vs Unicode (‘ascii’ codec can’t encode character…)

18 June 2017 20:40
  • Programming
  • guide
  • locale
  • Python
  • Unicode
  • Unix

A guide about Locale support/Unicode for Unix (Linux, macOS, etc.)

You might get unusual errors about Unicode and inability to convert to ASCII. Programs might just crash at random. Those are often simple to fix — all you need is correct locale configuration.

Read more…

CSV is not a standard

07 April 2017 20:00
  • Programming
  • CSV
  • Excel
  • Microsoft
  • Microsoft Office

CSV is not a standard. What does that really mean for anyone using that format? The file’s recipient may be unable to read it the way you intended. Separators, decimal marks, escaping and encodings are all problems — and Excel does them all pretty badly.

Read more…

Code writing code: Python and Vim as development aids

27 May 2016 10:46
  • Programming
  • C#
  • Java
  • programming
  • Python
  • Vim

Recently I was working on some C# and Java code. And along the way, I used Python and Vim to (re)write my code. A small Python script and a 6-keystroke Vim macro did it faster and better than a human would.

Every programmer should learn a good scripting language and use a programmable editor like Vim. Why? Here are two examples, after the break.

Read more…
Blog
  • Archives
  • Tags
  • Listings
  • RSS Feed
Projects and Work
  • Projects
  • Guides
  • KwBot
  • Posts about Python
Me
  • Contact
  • Brand
  • Twitter
  • GitHub

this site uses cookies.
by using this site, you agree to our cookie and privacy policy.

powered by Yet Another Blog Generator, nginx and Hetzner Cloud
copyright © 2009–2026 Chris Warrick
license: CC BY-NC-SA, unless stated otherwise