@ wrote... (7 years, 3 months ago)

I was working on Magic Wormhole during a Pycon 2016 sprint and noticed that zipfiles don't preserve file permissions. I'm not the only one who's noticed this (some posts go back over five years) but it still doesn't appear to be fixed.

Anyhow, here's how I did it…

more…

Category: tech, Tags: python
Comments: 1
@ wrote... (7 years, 4 months ago)

At work I upgraded to Ubuntu 16.04 LTS and every time I ran gvim I got a bunch of errors.

(gvim:19805): Gtk-WARNING **: /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so: cannot open shared object file: No such file or directory
(gvim:19805): Gtk-WARNING **: Loading IM context type 'fcitx' failed

more…

Category: tech, Tags: linux, ubuntu
Comments: 0
@ wrote... (7 years, 6 months ago)

Even after watching a bunch of YouTube videos and reading some websites I still didn't have the foggiest clue on how to actually enter any records in my current accounting software of choice, webzash.org.

In fact I was losing my mind, figuring the two demo programs I was using were both wrong but knowing that couldn't be the case. That's how hard it was for me to wrap my head around these concepts.

So here's how I think this stuff works. It's likely wrong and/or incomplete so take everything I'm about to say with a huge grain of salt.

more…

Category: business, Tags: accounting
Comments: 2
@ wrote... (7 years, 6 months ago)

It took a bit of doing but I was able to install Webzash in a Docker container behind a nginx web server. Here's how I did it.

Plus some notes on database permissions.

more…

Category: tech, Tags: accounting, linux, nginx
Comments: 1
@ wrote... (8 years ago)

I recently moved my web server to Digital Ocean but apparently didn't properly configure my python virtual environment. My apologies to whomever tried to leave a comment but couldn't.

It should all work now.

Category: tech
Comments: 0
@ wrote... (8 years, 3 months ago)

Gitolite uses a slightly funky url scheme that can wreck havoc with other tools. In particular I wanted to use Google Repo (worst name ever by the way, htf do you search for git and repo to find this?)

Anyway, here's how…

more…

Category: tech, Tags: git
Comments: 0
@ wrote... (8 years, 4 months ago)

I often want to make a directory and then immediately cd into that directory.

mkdir foo
cd foo

put the following in your .bashrc

function mcd()
{
    mkdir $*
    args=($*)
    cd ${args[@]:(-1)}
}

and then

source ~/.bashrc
mcd -p a/b/c/d
Category: tech, Tags: shell
Comments: 0
@ wrote... (8 years, 4 months ago)

Every article I've ever read about technical debt always talks about how technical debt was a deliberate choice to get a product out the door quicker. In over fifteen years of professional development I've never, ever, seen that choice being taken on purpose. I have seen absolute horror shows of a code base brought on by:

  1. developers of questionable experience
  2. developers of questionable skill
  3. developers of questionable passion
  4. developers of questionable taste

Don't get me wrong, I've written stuff and been happy and proud of it but then six months later when I know more and understand the problem better I'm, to say the least, no longer proud of said code.

My point is, lets get off our high horse and stop pretending that shitty code was a choice called technical debt and own up to the fact that once upon a time the royal we wrote some crap and it's time to fix it.

Category: tech, Tags: programming
Comments: 0
@ wrote... (8 years, 5 months ago)

A random neuron fired in my brain and I was curious as to which grew faster, Fibonacci or n2. While I was at it I also plotted 2n.

more…

Category: tech, Tags: compsci
Comments: 4
@ wrote... (8 years, 6 months ago)

Here's how you can get Dropbox to run as a user service from systemd under Feodra. If you use a different distro that uses systemd the commands are probably the same but your mileage may vary.

For the most part I like systemd but good luck remembering all these commands in 6 months when you want to make another user service.

more…

Category: tech, Tags: fedora, linux
Comments: 2