Posts with the tag programming

Mount a GMail account as Filesystem using gmailfs

Warning: my experience with gmailfs was not excellent! It was a bit slow and you always risk to lose data you stored on that account.


based on IMAP: http://sr71.net/projects/gmailfs/
(it used to be http://richard.jones.name/google-hacks/gmail-filesystem/gmail-filesystem.html but this was based on the Webinterface and that changed often)

gmailfs works with FUSE....

Read on

POV-Ray

http://wiki.ubuntuusers.de/POV-ray

installation of povray itself:

sudo aptitude install povray povray-includes povray-examples povray-doc

as well as the graphical modeler:

sudo aptitude install kpovmodeler

usage

A file created by POV-Ray: http://de.wikipedia.org/wiki/Datei:Mug_and_Torus_morph.gif
http://gist.github.com/376217

General command line to render a scene (still has to be adopted for the file in question):

povray...

Read on

conglomerate - an xml editor

http://www.conglomerate.org/

sudo aptitude install conglomerate
...

Read on

Software for the GenBank database

http://www.ncbi.nlm.nih.gov/Genbank/
http://en.wikipedia.org/wiki/List_of_sequence_alignment_software

...

Read on

Recompile the Ubuntu Kernel

http://wiki.ubuntuusers.de/Kernel
http://wiki.ubuntuusers.de/Baustelle/Kernel/Kompilierung
https://wiki.ubuntu.com/KernelTeam/KernelGitGuide

To recompile the Ubuntu kernel start with:

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-karmic.git

change config

Depending on the libraries that you will need, do configure the kernel using one of the following:

using ncurses (sudo aptitude install libncurses5-dev)

make menuconfig

using GTK (sudo aptitude install libgtk2.0-dev libglib2.0-dev libglade2-dev)

make gconfig

using...

Read on

Tryout the New Ubuntu Programming Environment: quickly

https://wiki.ubuntu.com/Quickly

sudo apt-get install quickly


quickly tutorial ubuntu-project
...

Read on

Netbeans IDE

https://help.ubuntu.com/community/Netbeans#Installation%20of%20NetBeans%20from%20Ubuntu%20Packages

sudo apt-get install netbeans

or install latest version

http://bits.netbeans.org/download/trunk/nightly/latest/
http://wiki.netbeans.org/InstallingNetbeans6.0OnUbuntu7.10

Ensure your repository's are up-to-date.

sudo apt-get update

Install the JDK 6.0 and Java-plugin for Firefox using the terminal:

sudo apt-get install sun-java6-jdk sun-java6-plugin

Update the Java alternatives so Suns virtual machines is the default:-

sudo...

Read on

HTML editors

Quanta Plus Bluefish Screem Nvu Kompozer

gPHPEdit

If you have a personal preference or another editor, please comment!

...

Read on

Gedit Plugin to Search and Replace using Regular Expressions

found here: http://live.gnome.org/Gedit/Plugins
http://halfhourhacks.blogspot.com/2008/03/gedit-regular-expression-plugin.html

cd .gnome2/gedit/plugins
wget http://neednom.com/bfisher/blog/geditplugin/regex_replace.tar.gz
tar -xf regex_replace.tar.gz
rm regex_replace.tar.gz

Then open gedit and select Edit → Preferences → Plugins and activate the regex plugin

...

Read on

Barcode Technology (QRCode etc.)

For on overview of different barcode technologies and types see: http://en.wikipedia.org/wiki/Barcode

gnu barcode

http://www.gnu.org/software/barcode/

sudo apt-get install barcode

perl barcode

http://search.cpan.org/~kwitknr/GD-Barcode-1.15/

GD::Barcode creates barcode images. It supports the following barcode formats:

  • COOP2of5,
  • Code39,
  • EAN13 (JAN13),
  • EAN8 (JAN8),
  • IATA2of5,
  • ITF (Interleaved2of5),
  • Industrial2of5,
  • Matrix2of5,
  • NW7,
  • QRcode,
  • UPC-A and
  • UPC-E.

Install this Perl...

Read on

How To Apply a Patch to Source Code

Learn by example:
Get a sourcecode package and a .diff.gz file and patch the source. The package is sane-backends_1.0.19.orig.tar.gz and the patch sane-backends_1.0.19-23ubuntu7.diff.gz:

cd ~/Downloads/
wget https://launchpad.net/ubuntu/jaunty/+source/sane-backends/1.0.19-23ubuntu7/+files/sane-backends_1.0.19.orig.tar.gz
tar -xf sane-backends_1.0.19.orig.tar.gz
wget https://launchpad.net/ubuntu/jaunty/+source/sane-backends/1.0.19-23ubuntu7/+files/sane-backends_1.0.19-23ubuntu7.diff.gz
gunzip sane-backends_1.0.19-23ubuntu7.diff.gz
cd sane-backends-1.0.19/
patch -p1 < ../sane-backends_1.0.19-23ubuntu7.diff

An important parameter of patch is -p. It can be used if you apply a patch in...

Read on

Set up gedit for use with C++

The post describes the setup for gedit to get most out of it for C++ development.

Activate gedit plugins using Edit → Preferences in gedit.

Smart indentation plugin for C/C++/Java

http://live.gnome.org/Gedit/Plugins?action=AttachFile&do=view&target=csmartindent.tar.gz

Function browser

http://sourceforge.net/projects/gedit-funcbrows/

The Ubuntu package gedit-plugins including an embedded terminal

to get an integrated terminal, get the package gedit-plugins. This...

Read on

C++ Boost Development Libraries

http://www.boost.org

sudo aptitude install libboost-dev libboost-doc

Or get all packages at once:

sudo aptitude install libboost.*dev libboost-doc

then put eg the following line into your sourcefile:

#include<boost/random.hpp>
...

Read on

C++ code completion for KDevelop 4 and Emacs

Read on