söndag 22 maj 2011

Forgot to post the git repo

Here is the git repo with the code that I'm working on: https://github.com/DarkDefender/ebuildgen
It's not much done yet, just some basic stuff.

måndag 16 maj 2011

Woho! Python 3.2 ~arch finally!

Now I can/will write the CLI for my GSoC project with the help of argparse :)

söndag 1 maj 2011

GSoC!

I got accepted to GSoC!
I will be working on creating a ebuild generator for Gentoo.
I've never done anything like this before so the first thing I had to learn how to read and parse files. Lucky for me there seems to be quite a few ways to do that with python. However after some talking to the my mentor (and with help of other mentors) we settled for PLY that uses lex and yacc.
The lex part what kinda strait forward as you use regexp to "yank out" the information that you want from the text.
However I had a hard time understanding how yacc works as you have to kinda think backwards when putting together the information that you got from lex and converting it to something else with yacc.
The PLY documentation does explain how it works quite well now that I look back at it. But when I looked at it then it seemed like pure wizardry to me XD
Thankfully I finally got how it worked with the help of my mentor. So now I can move on the start working on the ebuild generator. I will most likely have to learn more stuff as I bump into problems. But that is one of the things I planned to do when signing up to GSoC.

Besides improving my programming skills I hope I have created a working and useful ebuild generator by the end of GSoC!

Zenburn color scheme

I've changed the color scheme of my blog to represent my favorite vim color scheme zenburn:  http://slinky.imukuppi.org/zenburnpage/
Note however that this is more close to the colors that you get when you run vim in a 256 color terminal. The colors differ somewhat from the ones in gvim.

Hello World!

print("hello world")