<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3"
xmlns="http://purl.org/atom/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<title mode="escaped">Sebastian's blog</title>
<link rel="alternate" type="text/html" href="http://blog.kickino.org"/>
<modified>2010-02-07T14:16:28+01:00</modified>
<author>
<name>Sebastian Wieseler</name>
<url>http://blog.kickino.org</url>
</author>

<entry>
<title mode="escaped">Pointer and Arrays</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2010/02/07/T14_06_14/"/>
<id>http://blog.kickino.org/archives/2010/02/07/T14_06_14/</id>
<issued>2010-02-07T14:06:14+01:00</issued>
<modified>2010-02-07T14:06:14+01:00</modified>
<created>2010-02-07T14:06:14+01:00</created>
<dc:subject>projects/programming</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[

<p>
Hello. I would like to say 'hello again'. :-)
</p>

<p>
As some of you noticed, there is a little problem while creating an array
and a pointer of it in C++. For doing that, you are
supposed to write something like:
</p>

<pre>
int data[50];		// declare an (static) array
int *p_data = data;	// make a pointer of it

// declare a function, which gets the pointer of the data array
void function(..., int* p_data, ...);

// Call-by-reference
function(..., p_data, ...)
</pre>

<p>
If you don't want to have a static array but a dynamic one, you need
to ask the user for the length and then reserve some memory for it.
<br />
Thanks to:
<a href="http://www.fredosaurus.com/notes-cpp/newdelete/50dynamalloc.html">Fred Swartz</a>:
</p>

<pre>
int* a = NULL;   // Pointer to int, initialize to nothing.
int n;           // Size needed for array
cin &gt;&gt; n;        // Read in the size
a = new int[n];  // Allocate n ints and save ptr in a.
for (int i=0; i&lt;n; i++) {
    a[i] = 0;    // Initialize all elements to zero.
}
...  // Use a as a normal array
delete [] a;  // When done, free memory pointed to by a.
a = NULL;     // Clear a to prevent using invalid memory reference.
</pre>

<p>
If you need it all over dynamic, to grow and shrink depending on what the user
wants, you could use malloc and remalloc memory for an array (like you
would do it in C). But you could also use
<a href="http://www.cplusplus.com/reference/stl/vector/">std::vector</a> (declared in vector.h)
which does all what you need:
</p>

<pre>
std::vector&lt;int&gt;  data;
std::vector&lt;int&gt;* p_data = &amp;data;

// declare a function, which gets the pointer of the data vector
void function(..., int* p_data, ...);

// Call-by-reference
function(..., p_data, ...)
</pre>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Pictures of Cologne</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/05/09/T11_09_42/"/>
<id>http://blog.kickino.org/archives/2009/05/09/T11_09_42/</id>
<issued>2009-05-09T11:09:42+01:00</issued>
<modified>2009-05-09T11:09:42+01:00</modified>
<created>2009-05-09T11:09:42+01:00</created>
<dc:subject>cologne09</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[
<p>
Last weekend I traveled across Cologne and made some pictures, which you can
find <a href="http://gallery.kickino.org/cologne09/">in my gallery</a>.
Have a look and enjoy them! :-)
</p>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Pollerwiesen</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/05/02/T14_51_21/"/>
<id>http://blog.kickino.org/archives/2009/05/02/T14_51_21/</id>
<issued>2009-05-02T14:51:21+01:00</issued>
<modified>2009-05-02T14:51:21+01:00</modified>
<created>2009-05-02T14:51:21+01:00</created>
<dc:subject>cologne09</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[
<p>
Gestern war ich, zusammen mit meiner Mitbewohnerin und einer Schulkollegin von ihr
und deren Freund und Freunde, auf den <a href="http://de.wikipedia.org/wiki/K%C3%B6ln-Poll">Poll</a>erwiesen. Dort fand eine Art <a href="http://www.pollerwiesen.org/">Elektrofestival</a> statt.
Die Musik war jedoch eher lau und der Eintritt von 10 EUR nicht gerechtfertigt. Also lagen wir
uns auf eine Wiese und genossen die Stunden, bis wir beschlossen noch einmal in die Stadt zu schauen.
Das Verkehrchaos war riesig.
</p>

<p>
Spaeter am Abend verschlug es uns in die <a href="http://www.cojito.de/cuba-bar.5958.htm">Cuba Bar</a>.
Richtig nette Location mit leckeren Cocktails. ;-)
</p>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Smiley in the subway</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/04/19/T19_43_05/"/>
<id>http://blog.kickino.org/archives/2009/04/19/T19_43_05/</id>
<issued>2009-04-19T19:43:05+01:00</issued>
<modified>2009-04-19T19:43:05+01:00</modified>
<created>2009-04-19T19:43:05+01:00</created>
<dc:subject>cologne09, personal notes</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[
<p>
Did you ever had this experience when somebody sits in the subway and
you look at this person? And the only thing you do is to smile? <br />
Do you think that a smile to sombody in the subway can change his/her or even your own
life?
</p>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Hiroshima-Nagasaki-Park</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/04/19/T19_01_14/"/>
<id>http://blog.kickino.org/archives/2009/04/19/T19_01_14/</id>
<issued>2009-04-19T19:01:14+01:00</issued>
<modified>2009-04-19T19:01:14+01:00</modified>
<created>2009-04-19T19:01:14+01:00</created>
<dc:subject>cologne09</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[
<p>
Heute tat ich einen kleinen Spaziergang durch 
<a href="http://de.wikipedia.org/wiki/K%C3%B6ln">Koeln</a>. Begonnen hab' ich ihn am 
<a href="http://de.wikipedia.org/wiki/K%C3%B6lner_Dom">Dom</a>. Typisch
fuer nicht Einheimische, denke ich mal. Danach lief ich zum 
<a href="http://de.wikipedia.org/wiki/Neumarkt_(K%C3%B6ln)">Neumarkt</a>, zum Rudolfplatz
mit dem Ziel des
<a href="http://de.wikipedia.org/wiki/Atombombenabw%C3%BCrfe_auf_Hiroshima_und_Nagasaki">Hiroshima-Nagasaki</a>-
<a href="http://www.fotoausflug.de/deutschland-koeln-aachener-weiher.html">Parks</a>. 
Ein sehr idyllischer Ort mit Enten und vielen Liegemoeglichkeiten. Es war eine ueberaus
entspannte Atmosphaere dort.
</p>

<p>
Danach lief ich zurueck nach <a href="http://de.wikipedia.org/wiki/K%C3%B6ln-Bayenthal">Bayenthal</a>.
11 U-Bahn-Stationen zu laufen ist allerdings nicht gerade um die Ecke. ;-)
</p>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Frage der Woche</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/04/18/T12_35_27/"/>
<id>http://blog.kickino.org/archives/2009/04/18/T12_35_27/</id>
<issued>2009-04-18T12:35:27+01:00</issued>
<modified>2009-04-18T12:35:27+01:00</modified>
<created>2009-04-18T12:35:27+01:00</created>
<dc:subject>cologne09</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[

<pre>
Q: &quot;Kann man mit einem <a href="http://www.bahn.de/p/view/angebot/regio/schoenes_wochenende_ticket.shtml">Wochenendticket</a> auch in Koeln fahren?&quot;

A: &quot;Wenn gerade Wochenende ist!?&quot;
</pre>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Erste Tage</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/04/18/T12_19_37/"/>
<id>http://blog.kickino.org/archives/2009/04/18/T12_19_37/</id>
<issued>2009-04-18T12:19:37+01:00</issued>
<modified>2009-04-18T12:19:37+01:00</modified>
<created>2009-04-18T12:19:37+01:00</created>
<dc:subject>cologne09</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[
<p>
Ich werde diesen Blog in den naechsten Monaten mal ein wenig
dazu missbrauchen meine Eindruecke von Koeln und meinem 
Praktikum hier zu beschreiben. Das ganze werde ich in Deutsch tun,
falls jemand ein Problem damit haben sollte, so kann er sich
gerne bei mir melden. Kommentare sind erwuenscht.
</p>

<p>
Angefangen hat alles mit der Anreise am Dienstag. Wir sind in einen
elendlangen Stau geraten, der durch Nebel verursacht worden war. Nun
standen wir dort und warteten 6 geschlagene Stunden.
</p>

<p>
In Koeln angekommen standen nun die WG-Besichtigungen auf dem Plan.
Leider wussten meine Favouriten nur zur Haelfte Bescheid und so
ueberrannte ich sie etwas mit meinem spontanen Einzug. <br />
Dafuer sind hier alle super nett und ich freue mich wirklich
hier gelandet zu sein. <a href="http://de.wikipedia.org/wiki/K%C3%B6ln-Bayenthal">Koeln-Bayenthal</a>
ist auch eine wunderschoene, ruhige Gegend.
</p>

<p>
Mein Praktkikumsplatz fuer die naechsten Monate wird die
<a href="http://www.undbitte.tv/">undbitte entertainment GmbH</a> sein.
Es ist ein sehr angenehmes Arbeitsklima dort. :-)
</p>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Singularity-Paper</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/03/24/T17_05_46/"/>
<id>http://blog.kickino.org/archives/2009/03/24/T17_05_46/</id>
<issued>2009-03-24T17:05:46+01:00</issued>
<modified>2009-03-24T17:05:46+01:00</modified>
<created>2009-03-24T17:05:46+01:00</created>
<dc:subject>studies, science</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[
<p>
Yesterday I published <a href="http://paper.kickino.org/Singularity-Ausarbeitung.pdf">my paper about Singularity</a> on <a href="http://paper.kickino.org/">paper.kickino.org</a>.
<br />
Singularity is a <a href="http://research.microsoft.com/os/Singularity/">Microsoft research project</a>.
I wrote some notes about <a href="http://blog.kickino.org/archives/2008/12/01/T19_41_53/">Singularity in an earlier blog entry</a>.
</p>

<p>
The university marked it (together with a presentation) as 2.0. :-)
</p>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Nagios</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/03/20/T17_18_30/"/>
<id>http://blog.kickino.org/archives/2009/03/20/T17_18_30/</id>
<issued>2009-03-20T17:18:30+01:00</issued>
<modified>2009-03-20T17:18:30+01:00</modified>
<created>2009-03-20T17:18:30+01:00</created>
<dc:subject>*nix</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[
<p>
These days I played a little bit around with <a href="http://www.nagios.org/">Nagios</a>,
which is able to check several hosts and services. With the support of a
<a href="https://ssl.euserv.de/produkte/vserver/betatest.php">free vServer of EUserv</a>
I did a setup of such a system.
</p>

<p>
My highlight is that a downtime of a service will <a href="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2777.html;d=1">notify me via Twitter</a>. Furthermore the <a href="http://www.gentoo.org/doc/en/nagios-guide.xml">Gentoo Nagios guide</a> helped my very much. There exist several
<a href="http://nagiosplugins.org/">Nagios plugins</a> to check ssh, jabber, irc
and other tcp ports and many other things to monitor.
</p>

<p>
If somebody knows a free Nagios infrastructure I'll be interested in this. :-)
</p>
]]>
</content>

</entry>
<entry>
<title mode="escaped">Chemnitzer Linux Days 2009</title>
<author>
<name>Sebastian Wieseler</name>
</author>
<link rel="alternate" type="text/html" href="http://blog.kickino.org/archives/2009/03/16/T00_40_46/"/>
<id>http://blog.kickino.org/archives/2009/03/16/T00_40_46/</id>
<issued>2009-03-16T00:40:46+01:00</issued>
<modified>2009-03-16T00:40:46+01:00</modified>
<created>2009-03-16T00:40:46+01:00</created>
<dc:subject>events</dc:subject>
<content type="application/xhtml+xml" xml:lang="en" xml:space="preserve" mode="escaped">
<![CDATA[
<p>
The last days I was on the
<a href="http://chemnitzer.linux-tage.de/2009/info/">Chemnitzer Linux Tage 2009</a>.
It is a big event, where the open source and free software community meet each other.
There you've get the chance to ask your questions and get in touch with GNU/Linux and
the distributors.
</p>

<p>
There were a lot of talks of several difference topics. But don't forget
the social part of such events. I met several people, I never met before
in real life. It was really fantastic. <br />
If you would like, you could have a look at <a href="http://gallery.kickino.org/v/chemnitzer_linux_tage_2009/">
my pictures of the CLT09</a>.
</p>
]]>
</content>

</entry>

</feed>
