Daily Entry: May 14th, 2017

Sun May 14 11:30:43 UTC 2017

Haven't meditated yet, started doing things.

Also skipped exercising today for reasons.

Though, maybe I'll still exercise. I didn't eat so much that it'll hurt, I think.

Anyways, been messing with Wing IDE 101 as someone I'll be working with wants to use it.

As I'll be helping this person out, it may be of use to document what I'm doing to set it up to my liking. Thinking this reminded me to start logging here in my diary.

Sun May 14 11:38:33 UTC 2017

So, plan is to log what I've done so far here, and then continue doing things whilst logging them here. Then I can formalize what I've done into a proper post for this person (and whoever else) to read.

Custom key-bindings are available to add via the Wing IDE itself in Wing Pro, but not in the free Wing IDE 101.

However, key-bindings are set via simple key-binding files in the folder where Wing IDE is installed ("C:\Program Files (x86)\Wing IDE 101 6.0" on my computer). This files were editable only by admins, which made editing them in an editor of my choice annoying, so I:

  • Changed the keymap file permissions so that I can edit them as me
  • Added "'Ctrl-L': 'python-shell-clear'" to the end of keymap.normal

I need to constantly clear the python console, Stephan. I need to! For the person I'm working with, setting custom keybindings might be useful information.

It looks like Wing Pro has versioning support for many versioning tools including git which is the only one I'm interested in. Wing 101 has no such support. I think we'll try using means outside the IDE to do versioning. Though, we'll see.

Edit -> Preferences -> Editor -> Auto-Completion

Knowing about the auto-complete functionality and setting it to one's preferences is always smart. I set it to "Always" instead of "Never". Under "Never", you have to explicitly press Ctrl-Space to invoke the auto-completer in both the editor and the shell. In the editor this is fine, but in the shell pressing tab is so ingrained that it actually inputting white-space is a bit annoying. So, I'll try Always and see if the constant pop-up of auto-complete recommendations annoy me in the editor.

Found a potentially useful link: Using Wing with pygame.

Also, for other projects: Using Wing with Django.

Also, for how I found the command for clearing the python shell: Command Reference. python-shell-clear was in Debugger Commands as the python shell in Wing isn't actually the python shell, but a custom shell using debug stuffs for reasons.

I believe that's everything I did so far. I'm going to read that pygame link now.

Sun May 14 11:58:20 UTC 2017

It doesn't have anything relevant to say, unfortunately.

Sun May 14 12:00:47 UTC 2017

Let's start making a game prototype in Wing and see what I feel like I need to figure out and look up whilst doing that.

I'm using virtualenv for pygame! How do I use the virtualenv I'm using in Wing? Using Wing with virtualenv Python. TL;DR, use the virtualenv's python executable as python path in Wing.

Sun May 14 12:15:59 UTC 2017

Is there any good reason to use Wing 101 over also-free Wing Personal? Let's find out by downloading it and poking at it.

Well, there's a lot more stuff on startup. Maybe overwhelming to a beginning programmer.

However, it has key mappings in the IDE. Not something you have to pay for afterall!

Sun May 14 12:33:51 UTC 2017

I will discuss with person over whether he's committed to 101 over Personal.

Neither has the versioning support, though. That's Pro only.

Sun May 14 13:09:43 UTC 2017

Something is causing the virtualenv version of python.exe to open a link to ipython, which happens whenever the shell is restarted in Wing, and it is very annoying. I can't stop it from happening, either.

Sun May 14 13:23:05 UTC 2017

It took me about 15 minutes to realize it was my pythonrc doing it, because pyreadline wasn't installed in that virtualenv.

I may have sworn at past me for using copy-pasta there.

Sun May 14 14:04:41 UTC 2017

Am using this example of setting up the python shell now. This doesn't affect Wing IDE stuff, I don't think, it just won't open up a web browser when it can't import the things.

Also, some other annoyances popped up that aren't worth investigating but I wasted time doing that anyways.

Sun May 14 14:53:03 UTC 2017

Let's start making a pygame prototype!

Sun May 14 18:14:01 UTC 2017

I had an excuse to take a picture of my standing "desk" and figured I'd post it here.