Prime factors code in C and Python
Today someone spoke about prime factors and I thought it was something interesting to code. I needed to practice my C so I’ve coded it in C. Here it goes:
#include <stdio.h>
#define VMAX 25
int main()
{
/*Prime numbers < 100 */
int primes[VMAX] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
int factors[VMAX] = {}; [...]
O que tem ocupado o meu tempo
Para além de trabalho até dizer chega que, infelizmente, ainda vai durar mais quase uma semana, o meu tempo livre (produtivo) tem sido ocupado com traduções e scripts em python.
Nas traduções actualizei vários módulos para estarem a 100% na altura do lançamento: fantasdic, gnome-packagekit, banshee e gparted (este estava pouco mais de 20% traduzido). O [...]
Python scripts and lots of work
In my free time I’ve been playing with dbus and some python scripts.I’ll post some of my clumsy, but usefull (to me) results. Now I’m too busy with work and GNOME translations. Release is almost here and for the first time I’m translating a main component !
More news in the next days.
Technorati Tags: dbus, [...]
Do you want a “show desktop” button in docky?
If you do, this post is for you!
How do you get one? First this show desktop button ONLY works with compiz (for now at least). Here goes the instructions:
1 – Activate desktop effects aka compiz
2 – Activate the dbus plugin
2 – Download my show_desktop.py python script, save it somewhere safe and make executable.
3 – Create [...]

Subscribe by Email