Saturday, December 28, 2013

Vundle Jedi Airline > Pathogen Python-Mode Powerline

I finally got Vundle working and Vim installed correctly... I think. Well at least I am able to install and modify bundles.

Everything I look up seems to have a small error or something that will throw you off for a while.

Also setting things up in Windows seems like extra work. Things are a little different so you need more trial and error. I hope I can settle in now and stay in Vim.




Thursday, December 26, 2013

In my quest to find my favorite IDE or editor I am giving PyScripter a try. It's actually pretty nice.
It has syntax highlighting, indenting, keyword look up, definitions, etc.

I like the Code Explorer where you can see what's in use and defined.

Check it out it's pretty cool!



Wednesday, December 25, 2013

Kahn Academy Python

Khan Academy has a Python section?

Khan Academy has some awesome material for learning math.

Maybe I'll check it out once I'm done with Python the Hard Way.








Sunday, December 22, 2013

Vim python-mode plugin installed.

I finally got python-mode installed for vim.
You can just copy the folders over and set up your _vimrc file.


from http://www.vim.org/scripts/script.php?script_id=3770
install details
Just copy the plugin folders into your ~/.vim directory. 

Doh! Keep it simple I guess. I can figure out the the package managers later.

--Steve


I set up my _gvimrc file like this:
Using: http://lifeafter2am.net/2013/08/vim-for-python-development/
as an example.



set guifont=Bitstream\ Vera\ Sans\ Mono:h11:cANSI
set background=dark
colorscheme murphy


" Python-mode
" Activate rope
" Keys:
" K Show python docs
" Rope autocomplete
" g Rope goto definition
" d Rope show documentation
" f Rope find occurrences
" b Set, unset breakpoint (g:pymode_breakpoint enabled)
" [[ Jump on previous class or function (normal, visual, operator modes)
" ]] Jump on next class or function (normal, visual, operator modes)
" [M Jump on previous class or method (normal, visual, operator modes)
" ]M Jump on next class or method (normal, visual, operator modes)
let g:pymode_rope = 1


" Documentation
let g:pymode_doc = 1
let g:pymode_doc_key = 'K'


"Linting
let g:pymode_lint = 1
let g:pymode_lint_checker = "pyflakes,pep8"
" Auto check on save
let g:pymode_lint_write = 1


" Support virtualenv
let g:pymode_virtualenv = 1


" Enable breakpoints plugin
let g:pymode_breakpoint = 1
let g:pymode_breakpoint_key = 'b'


" syntax highlighting
let g:pymode_syntax = 1
let g:pymode_syntax_all = 1
let g:pymode_syntax_indent_errors = g:pymode_syntax_all
let g:pymode_syntax_space_errors = g:pymode_syntax_all


" Don't autofold code
let g:pymode_folding = 0

Friday, December 20, 2013

Lesson 12

I'm up to lesson 13 in Learn Python The Hard Way. My VIM support is starting to fall off. The auto complete in Sublime Text is pretty nice.

If I could figure out how to load Pathogen and Python-Mode I'd be all set but it's proving difficult on Windows and worse even Ubuntu is set up kind of strange.

I might try Debian or worse yet by a Macintosh. I never should have sold my Macbook Pro to +Jaimie Callanta

https://github.com/klen/python-mode

Wednesday, December 18, 2013

Installing Ubuntu

I feel like it's time to give Ubuntu another shot at the desktop. I can't remember the last time I installed it. I guess we are up to Ubuntu 13.10 (Saucy Salamander). I think I remember installing back in the Ubuntu 6.06 LTS (Dapper Drake) days. Damn time flies.

Ubuntu for the Desktop
I hope it runs as good as it looks. They seem to have added a lot of App Store crap. Hopefully it's not all bloatware.

--Steve

Tuesday, December 17, 2013

Vim Sidetrack

I spent more than a few hours yesterday trying to install and configure gVim for Windows. I feel like it is more trouble than it's worth trying to get it to work on Windows. However I feel like learning Vim will make up for it.

Check out this cool poster sized cheat sheet for Vim @ http://vimcheatsheet.com .

--Steve

Sunday, December 15, 2013

Status Update

I have started Zed Shaw's Learn Python the Hard Way. I am on lesson 4 and there is a lot of typing. It is interesting to type the code out from scratch. You get used to typing inline underscores, plus, minus, prens, etc.

I'm trying to decide on what text editor to use. So far I am using/trying Notepad++ and Sublime Text.  I like both so I'm not sure which one I'll end up sticking with. Notepad++ is free so that is a huge plus.

I do want to learn vim at some point. Here is a game that teaches you vim while you play.
Vim Adventures. Might be fun but it's kind of expensive.

Saturday, December 14, 2013

Friday, December 13, 2013

Just submitted my final project.

For my Introduction to Interactive Programming in Python class.

One of my favorite things was creating/modifying sound effects for some of the projects.

This one was my favorite and it cracks me up everytime I hear it.
http://goo.gl/NbDDpc

I got the original from:
http://soundbible.com/1949-Pew-Pew.html
and modified it with Audacity:
http://audacity.sourceforge.net/





Up next "Learn Python the Hard Way" by Zed Shaw Can't wait to start!


--Steve.

What do you listen to...

While programming?

I used to listen to baroque but sometimes it kind of puts me to sleep. I found this great site while I was googling for "music for programming." It's called musicForProgramming.net. So far it has 23 long playing episodes and what I've listened to sounds perfect. Interesting but not so interesting you can get your code done.

Check them out!
--Steve



Thursday, December 12, 2013

Status Report

I'm just finishing up an 8-week online Coursera course, "An Introduction to Interactive Programming in Python." It's been a great introduction and while it doesn't feel like it, I have actually learned a lot.
You learn by watching lecture videos, taking quizzes, and doing weekly mini projects.  Joe Warren, Scott Rixner, John Greiner, and the rest of the group are really fun to learn from and are super cool. (and a little nerdy) Through the videos you get a sense of actually knowing them. I regret not being able to meet them in person.

--Steve

Lets Get This Party Started

Hello Everybody,

This is my first post on my new blog. I am on a quest to teach myself Python. I am creating www.Python Sandwich.com as a place to host this blog as well as code examples, web projects, and whatever else I might need.

Thanks for visiting,
--Steve