Tag Archives: programming

Django still one of my most loved tools to get things done

Since I never would call me a developer this is just a short article why I still love the Django framework for some years now.

Most of my daily work is done on the command line and with automated tasks since tools like Puppet and later Ansible got popular. For my personal tasks I try to automate as much as I can without hiding to much knowledge. Some tasks are still not automated or split in different single tasks in my day time job. I like to know what dependencies are between tasks so you still know whats going on behind each single task. In my opinion a complete automation turns administrators into zombies who have to reverse engineer their own code when things go wrong. Knowledge about the automation is hard to transfer and hard to have it in mind if you need it.

The small tools I need for my private projects are mostly written in Python so I tried Django some years ago and I am still using it from time to time. I built a very basic project skeleton I reuse for my tasks and for me it is still a nice tool. It does its job quite well, has an active community and is easy to learn.

Reasons I love Django:

Python:

Well I never choose to learn Python actively. There where a lot of tools written in Python which I found interesting. Since one of my first languages I used was Perl I found myself in the middle of the Perl vs. Python war in the early 2000 years and got interested. It was not the language as more the infrastructure, documentation and the available libraries that sucked me in the Python world.

Packages:

There is a package for everything. Check the package libraries for Django or Github for projects implemented with Django and you will find everything you need. The community is so big and there are a lot of useful and high quality packages. A lot of these packages are under active development for years and that is a very big point for me.

Get things done:

Programming is not a passion and my code really sucks. The only reason I am doing it is to get things done better, faster and easier. Therefor I choose tools which have the same way of thinking. Frameworks and libraries should focus on getting things done and help users to get their things done. Django is one of those tools which helped me to get my stuff done.

Documentation:

A project without documentation is not a project you should use. The Django project does quite a good job on updating their documentation when a new release is rolled out. The changes and differences are explained very well and most of the time there is a migration path. Well it never is fun to update old code and projects but at least the guys try to give you all information to do so.

Install Eclipse C/C++ Juno on Mac OS X

Description

This tutorial will explain how to install and use Eclipse C/C++ with Mac OS X. I wrote a tutorial for Windows 7 some time ago because you need to install some additional software to be able to compile your programs. With Mac OS X this should be more easier if you already have Xcode installed.

Prepare your system

Apple offers you a free collection of development tools called Xcode. It although contains a IDE for Objective C and iOS development. Beside this it tools there are a lot of useful tools like different version control systems and console tools and very important the compilers. Because this is packed and very easy to install you should go to the AppStore and install Xcode if you don’t have it yet.

You will need to have Java installed on your Mac OS X as well but this is just a click if you try to run a Java application the first time.

Xcode Appstore Screenshot

 

Download Eclipse CDT for Mac OS X

Download the Eclipse CDT version of Eclipse from eclipse.org. I prefer the 64bit version.

Eclipse CDT MacOSX 64bit version

 

Extract the downloaded archive and move the eclipse folder to your Application directory. I renamed the folder to eclipse-cdt because I have different version of Eclipse in my Application folder. But the folder should contain the following files:

Eclipse CDT folder Mac OS X

 

Now you should be able to run the Eclipse IDE.

Eclipse Startscreen

First the Eclipse splashscreen will appear. Then you will be asked to define your workspace like the following prompt:

Eclipse define workspace prompt

Choose a folder or use the default value and continue with OK:

Eclipse CDT Mac OS X empty UI

You should get something like a welcome page or continue an empty overview over your new Eclipse C/C++ IDE.

Create a new C++ Project as shown below:

Eclipse Mac OS X create new C++ project

Eclipse CDT Mac OS X create new C++ project

Build the new project if it’s not done automatically after creation and run the binary:

Hello World programm C++ Max OSX Eclipse CDT

If everything went well you should see the Hello World message in your output console:

Eclipse C++ IDE Hello World on Mac OS X

How to find the eclipse.ini configuration file

Because the eclipse.ini file is hidden in the Mac package I wrote a blog post some time ago how to change it. You can find the post here. Should work for Eclipse Juno as well.

Maybe this helps you to get your IDE up and running to do awesome stuff with it. Feel free to add a comment if I missed a step.