Skip to main content

WEB 110 assignment #1


This post is assignment #1 for WEB110. My name is John Pfuntner and a subject that I'm passionate about is my cats. I adopted them from the Wake County SPCA (where I also volunteer a lot) in December 2004 when they were both about a year old. The photo is my favorite one of them: I use it for my computer desktop backgrounds, a button I wear when I'm at the SPCA.... it's even on my credit card!!

Katie is an orange tabby (did you know most orange cats are male?!) who loves strangers and jumping up, especially places where she's forbidden such as virtually anywhere in the kitchen except the floor. One of her favorite things to eat is baby food: stuff like beef, chicken, ham.... it looks disgusting to me but she digs it!

Sofi is a grey and white tuxdeo who hates strangers and loves to bat things around the house. She used to sit in front of the refrigerator anytime I was dispensing ice because I would usually drop a cube or two and she liked to play hockey with them.

My name tag at the SPCA says I am "owned and operated" by my girls and that pretty much sums it up!

Comments

Popular posts from this blog

GNU date on Windoze

I love the Cygwin package on Windoze. I'm more of a Unix guy and can't stand the Windows command prompt. I much prefer a standard shell such as bash across all platforms. At my current job, I'm doing most of my development on Windows and our setup makes it so that I have to rely on Git bash more but I still have Cygwin installed and use it for things that aren't so tied to work. Git bash pisses me off sometimes with relation to copy and paste, especially inside the vi editor! What's up with that? So this post's focus is on the date command. One of my few peeves about Cygwin is the default behavior of the command on Windows: Tue, Apr 3, 2018 7:26:52 AM The whole reason for using Cygwin was to have a shell environment that looks and acts like Unix. This does not look like Unix. And GNU being what it is, Git bash works the same way! Yes, my OCD is obvious... some people might say Well, that's close but I don't like this behavior! Uni...

Python ArgParse

Maybe it's my use of the getopt() function in C/C++ but in my Python scripts, I've always just made do with the native getopt package and it's served me well. Over time, people have encouraged me to look at using ArgParse but I've always been kind of resistant because it was a little mysterious to me. I finally sat down and figured out how to do basic things I do a lot in scripts using getopt and worked up a simple script using ArgParse to do the same thing. There are definitely some advantages to ArgParse ! Here's the gist with this sample: I've made a few updates to the gist as I discover new features of which I want to take advantage: Mutually-exclusive options Script description etc. I will admit that since I've created this gist, I've been using ArgParse for new scripts. I can't whip out a script using ArgParse from memory yet (which I can do when I use getopt !) but it's becoming easier. I haven't gone back and...

Dynamic Python script loading

I have a bunch of toys and tools in a Git repository - I affectionately call this my toys repo . Most are just scripts that I use from a Unix (Cygwin or Git bash on Windoze) command line but there are some Python classes that I sometimes use in another script. Today at work, I was coming up with a new Python script that made use of a couple of my public classes. The script is good enough to share with my colleagues but I'm faced with the problem of my public classes: I imagine that most of my colleagues haven't even heard of my public classes and I don't expect them to download the entire repo just to get a couple of classes If I'm going to distribute the classes as separate files I introduce new problems: It could be confusing to have the files tag along. What is the user supposed to do with them? The answer is nothing - they should leave them alone and make sure they are in the same directory as the main script in case they decide to move th...