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

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...

Git-based version information from Python script

I had this idea of generating version information for a Python script that uses ArgParse . The code is a little more than I was expecting but I think it works well. Here is the code: Usage Here is an example of its usage if the script is part of a git repository: $ ./version-example --version b92798, master, 2019-01-18 10:35:02, ['origin:https://github.com/pfuntner/gists.git'] $ It contains: The SHA1 of last git commit that changed the script The current branch of the repository The date of the commit - I think the timezone element is present in this but I didn't want to deal with timezones so I'm ignoring it A list of the remote repositories This is printed on two lines but that's something that ArgParse is doing, not me. Here is an example of its usage if the script is not part of a git repository - we don't have much information to work from but we can at least get the timestamp of the script: $ ~/tmp/version-example --version 2019-01-...