<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="0.92">
<channel>
	<title>Programming</title>
	<link>http://dahoiv.net/programmering</link>
	<description>- My programming projects and some linux tips</description>
	<lastBuildDate>Sat, 20 Dec 2008 13:37:45 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Bash script for SFV and uncompressing of .r00 files - NEW VERSION</title>
		<description><![CDATA[A bash script to verify the integrity of files on Linux. Simple file verification (SFV)  is file format to store CRC32 checksums. If the checksums is correct, then the script will uncompress the files. The script can be used at files of format .rar, .r00, .r01 etc and with a .sfv file. This is [...]]]></description>
		<link>http://dahoiv.net/programmering/bash/bash-script-for-sfv-and-uncompressing-of-r00-files-new-version</link>
			</item>
	<item>
		<title>Get Ip address</title>
		<description><![CDATA[If you have a server with a dynamical ip address. You can use this script to get the ip address to your mail box. Maybe you have to change the smtp-server to your ISP&#8217;s smtp-server. Run &#8220;sudo crontab -e&#8221; and add &#8220;00  *    *     *     *   ~/scripts/ip&#8221; to get an email every hour.
]]></description>
		<link>http://dahoiv.net/programmering/bash/get-ip-address</link>
			</item>
	<item>
		<title>How to disable caps lock in Linux</title>
		<description><![CDATA[If you want to disable the caps lock. Open the ~/.bashrc file and add:
    # Disables the caps lock button
    xmodmap -e "remove lock = Caps_Lock"
]]></description>
		<link>http://dahoiv.net/programmering/gnulinux/how-to-disable-caps-lock-in-linux</link>
			</item>
	<item>
		<title>How to install Code::Blocks</title>
		<description><![CDATA[Code::Blocks is a great IDE for C++. Here is a guide to install Code::Blocks in Linux.
Open a Terminal (Applications -&#62; Accessories), and wright:
sudo gedit /etc/apt/sources.list
add these lines to the end of the file:
deb http://lgp203.free.fr/ubuntu/ gutsy universe
deb http://apt.wxwidgets.org/ gutsy-wx main
In the Terminal:
wget -q http://lgp203.free.fr/public.key -O- &#124; sudo apt-key add -
wget -q http://apt.wxwidgets.org/key.asc -O- &#124; sudo apt-key [...]]]></description>
		<link>http://dahoiv.net/programmering/cpp/how-to-install-codeblocks</link>
			</item>
	<item>
		<title>My .emacs file</title>
		<description><![CDATA[Here is my .emacs file. Copy it to ~/ and it will modify your emacs.
]]></description>
		<link>http://dahoiv.net/programmering/gnulinux/my-emacs-file</link>
			</item>
	<item>
		<title>Numerical solution of the stationary advection diffusion equation.</title>
		<description><![CDATA[The stationary advection diffusion equation solved with the finite difference method.
]]></description>
		<link>http://dahoiv.net/programmering/matlab/numerical-solution-of-the-stationary-advection-diffusion-equation</link>
			</item>
	<item>
		<title>Bash script for SFV and uncompressing of .r00 files</title>
		<description><![CDATA[A bash script to verify the integrity of files on Linux. Simple file verification (SFV)  is file format to store CRC32 checksums. If the checksums is correct, then the script will uncompress the files. The script can be used at files of format .rar, .r00, .r01 etc and with a .sfv file.
]]></description>
		<link>http://dahoiv.net/programmering/bash/bash-script-for-sfv-and-uncompressing-of-r00-files</link>
			</item>
	<item>
		<title>Steepest Descent Iteration</title>
		<description><![CDATA[Steepest Descent Iteration ,  written   in Matlab to solve the Advection-diffusion equation. The matrix A (in A x= b) is a block pentadiagonal matrix.
]]></description>
		<link>http://dahoiv.net/programmering/matlab/steepest-descent-iteration</link>
			</item>
	<item>
		<title>Successive over-relaxation</title>
		<description><![CDATA[Successive over-relaxation (SOR),  written   in Matlab to solve the Advection-diffusion equation. The matrix A (in A x= b) is a block pentadiagonal matrix.
]]></description>
		<link>http://dahoiv.net/programmering/matlab/successive-over-relaxation</link>
			</item>
	<item>
		<title>Quick sort</title>
		<description><![CDATA[Quick sort in Python
def sort(A):
if len(A) &#60;= 1:
return A
small = []
middle = []
big = []
temp = int((A[0][0]+A[len(A)-1][0])/2)
for x in A:
if x[0] &#60; temp:
small.append(x)
elif x[0] == temp:
middle.append(x)
elif x[0] &#62; temp:
big.append(x)
A = sort(small)
A.extend(middle)
A.extend(sort(big))
return A
]]></description>
		<link>http://dahoiv.net/programmering/uncategorized/quick-sort</link>
			</item>
	<item>
		<title>Nim</title>
		<description><![CDATA[Nim is a two-player game in which players take turns removing objects from distinct heaps. On each turn, a player must remove at least one object. The player who take the last object loses.
]]></description>
		<link>http://dahoiv.net/programmering/cpp/nim</link>
			</item>
	<item>
		<title>Project Euler - problem 092</title>
		<description><![CDATA[A number chain is created by continuously adding the square of the digits in a number to form a new number until it has been seen before.
For example,
44 -&#62; 32 -&#62; 13 -&#62; 10 -&#62; 1 -&#62; 1
85 -&#62; 89 -&#62; 145 -&#62; 42 -&#62; 20 -&#62; 4 -&#62; 16 -&#62; 37 -&#62; 58 -&#62; [...]]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-092</link>
			</item>
	<item>
		<title>Project Euler - problem 030</title>
		<description><![CDATA[Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits:
1634 = 14 + 64 + 34 + 44
8208 = 84 + 24 + 04 + 84
9474 = 94 + 44 + 74 + 44
As 1 = 14 is not a sum it is not included.
The sum [...]]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-030</link>
			</item>
	<item>
		<title>Project Euler - problem 015</title>
		<description><![CDATA[Starting in the top left corner of a 2*2 grid, there are 6 routes (without backtracking) to the bottom right corner.
How many routes are there through a 20*20 grid?
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-015</link>
			</item>
	<item>
		<title>Project Euler - problem 014</title>
		<description><![CDATA[The following iterative sequence is defined for the set of positive integers:
n -&#62;n/2 (n is even)
n -&#62;3n + 1 (n is odd)
Using the rule above and starting with 13, we generate the following sequence:
13 -&#62; 40 -&#62; 20 -&#62; 10 -&#62; 5 -&#62; 16 -&#62; 8 -&#62; 4 -&#62; 2 -&#62; 1
It can be seen [...]]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-014</link>
			</item>
	<item>
		<title>Project Euler - problem 012</title>
		<description><![CDATA[The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, &#8230;
Let us list the factors of [...]]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-012</link>
			</item>
	<item>
		<title>Project Euler - problem 010</title>
		<description><![CDATA[The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below one million.
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-010</link>
			</item>
	<item>
		<title>Project Euler - problem 009</title>
		<description><![CDATA[A Pythagorean triplet is a set of three natural numbers, a&#60;b&#60;c, for which,
a² + b² = c²
For example, 3² + 4² = 9 + 16 = 25 = 5².
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-009</link>
			</item>
	<item>
		<title>Project Euler - problem 007</title>
		<description><![CDATA[By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 10001st prime number?
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-007</link>
			</item>
	<item>
		<title>Project Euler - problem 006</title>
		<description><![CDATA[The sum of the squares of the first ten natural numbers is,
1² + 2² + &#8230; + 10² = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + &#8230; + 10)² = 55² = 3025
Hence the difference between the sum of the squares of the first ten natural numbers [...]]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-006</link>
			</item>
	<item>
		<title>Project Euler - problem 005</title>
		<description><![CDATA[2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
What is the smallest number that is evenly divisible by all of the numbers from 1 to 20?
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-005</link>
			</item>
	<item>
		<title>Project Euler - problem 004</title>
		<description><![CDATA[A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 * 99.
Find the largest palindrome made from the product of two 3-digit numbers.
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-004</link>
			</item>
	<item>
		<title>Project Euler - Problem 003</title>
		<description><![CDATA[The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 317584931803?
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-003</link>
			</item>
	<item>
		<title>Project Euler - Problem 002</title>
		<description><![CDATA[Each new term in the Fibonacci sequence
is generated by adding the previous two terms.
By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, &#8230;
Find the sum of all the even-valued
terms in the sequence which do not exceed one million.
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-002</link>
			</item>
	<item>
		<title>Project Euler - Problem 001</title>
		<description><![CDATA[If we list all the natural numbers below
10 that are multiples of 3 or 5, we get 3, 5,
6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
]]></description>
		<link>http://dahoiv.net/programmering/cpp/project-euler-problem-001</link>
			</item>
	<item>
		<title>To tankser som har brutt sammen, og det eneste som fungerer er kanonene</title>
		<description><![CDATA[Opprinnelig skrevet 03.05.2007:
Ja, da var endelig javaspillet vårt ferdig. Etter mye jobbing er det morsomt å se et resultat i hvert fall jeg er fornøyd med.
]]></description>
		<link>http://dahoiv.net/programmering/java/to-tankser-som-har-brutt-sammen-og-det-eneste-som-fungerer-er-kanonene</link>
			</item>
</channel>
</rss>
