Wednesday 9 April 2014

Connect Raspberry Pi to computer with ethernet cable - Raspberryception

Raspberry Pi
Finally I revived not only the blog but also my Raspberry Pi. As my bachelor thesis dealt with this little machine of course I wanted to have my own as well. I bought it already several months ago and even tinkered a little around with it but since I moved to Sweden I let it more or less sleep in its plastic case - until today! Taking only small steps so far but if anyone of you wants to get a Raspberry Pi him-/herself this little introduction might help to get it up and running. :) In any case this will help myself to memorise how to do stuff. ;)

Happening in the following: Flash SD card, initial config and what I did today: plug to PC and access via ss. Sharing the internet connection and further securing your ssh will follow next time.

  • Flashing the SD card is really easy by following this tutorial so I leave this one out.
  • Initial config can be done at will or following some tutorial from the internet as well so I leave it out as well and concetrate on what I did today: (Only make sure you enabled ssh in the initial configuration.)
  • ssh from Windows (I did not manage to do it on Linux so far as I could not find out how to properly connect to two networks simultaneously): Easiest way is to use puTTy. This allows you to ssh onto the Raspberry Pi using Windows. A normal network cable is sufficient, no crossfire cable needed. Before being able to connect via putty you need to give the Pi a static IP. This works the following way:
    • Put the Pi SD card into your PC/laptop card reader, navigate to the "boot" folder and open the cmdline.txt with any text editor. To the only line in the file add "ip=<ip-of-your-dreams>" without "". Using Windows you will most probably obtain your IP automatically from a dhcp server so enter the IP as 169.254.#.# where you replace the # with a number between 1 and 254. (Should you not connect to the internet via a dhcp server the IP's first two numbers have to match your PC's IP - can be found from Win-Key + R -> type "cmd" -> type "ipconfig" in the black window -> IPv4 from the adapter you use to connect to the internet.) Save the file and plug the SD card back into your Pi. Boot with ethernet cable connected to both your PC and your Pi.
  • Open putty on your Windows machine and under "session" you enter the static IP you just gave to the Pi. For the port use no. 22 if not preconfigured which is the port that is assigned to ssh. If you want to use programmes with graphical interfaces on the Pi you should enable X11 forwarding at the respective place in putty.
That's it! Connect with username "pi" and your password.

Sunday 9 February 2014

(Not even) semi scientific humbug

Incredible cretinism combined with some scientific proof. Or maybe a mind capable of  outstandingly visionary ideas? ;) Welcome to the mind(s) of (a) physicist(s)! Because the following can probably really only happen to physicists:

I could think of nothing more convenient for a story like this ...
((c) Christopher Torres, LOL-comics)
One is in a philosophical mood and posts "There is only one everything." What follows is a deliberate mixing of scientific results in the most queer-headed way possible. All in all it results in the following proof of the contrary which I cannot help but have to break down a little - not sure if out of suspicion towards mathematicians or out of a self-mesmerising-with-possibilities mind ... So the summary of the discussion following the highly philosophical statement was



The universe is infinite and there is an infinite number of infinities.
"Everything" really includes everything so it is the sum of all infinities.
Even an infinite number of infinities can be continuously numbered and
the sum of all integers is -1/12.
Thus, everything is less than nothing.

This might be a little crazy but all of it can be "proven". And here starts the really crazy part. The first statement that the universe is infinite is not yet proven right or wrong. Einstein once brought this down to "I know of two things that are infinite: The universe and human stupidity. Concerning the universe, however, I am not yet sure ..." So it might be infinite as well as finite. So far you can at least imagine that it could be infinite as even beyond matter there could maybe be somthing ... So with this we have to go with the assumption that what is not proven wrong may still be right. ;)

Then about the infinities. Once upon a time four months ago a friend of mine posted a video in his blog about infinities that summarises nice and easy (it is really possible to understand it!) how there are infinitely many infinities, how they are related and that you go crazy if you think about it. (Not kidding, the guy (Gregor Cantor) who made the considerations spent half of his life in mental hospitals because his colleagues were jealous of his genius and mobbed him into insanity.) You can find his post here. (Although the text is in German, the video is in English.)

Last but not least the thing with 1+2+3+4+5+... being -1/12. This is obiously the most crazy thing. But believe it or not this is used in string theory and e.g. the quantum field theory Casimir effect. According to a friend's friend a rigorous treatment of divergent series which the proof of the above sum relies on can be found here. This now is the "suspicion towards mathematicians" part because it is obviously as counterintuitive as it can be that the sum of all integers is -1/12. I tried to understand the principles of the linked proof and it seems that there really is a proof making use of cutoff functions and the like. (There are many more proofs to which you have to add quotation marks (-> "proofs") that are quite easy to understand but usually there are obvious faults in them.) However, for this more rigorous proof my application-oriented mind is definitely not twisted enough so there will have to be at least the discovery of the world formula involved before I will give it a second glance ... Until then I will stay with my physics and kepp on juggling math in ways that makes sense. ;)

Thursday 23 January 2014

Revolutions made in Lund

Completely out of context: Our most recent lecture hall.
Once again it feels like Hogwarts ... Life is good!
As far as I know if you try to patent something and it was mentioned somewhere before the patent will most likely not be granted. I do not know if you can do any harm by unofficially publishing scientific results as well so I prefer to be careful. ;) Today our professor opened the lecture by showing us data which might be world record in electronics. The results are from yesterday so he was quite excited. Of course the results have to be further investigated but they look very promising so far! Professorquote: "World records are always fun!" I agree. ;)

The rest of the lecture was about toxic gases in WW I. No, wait. Not completely. But in one of the methods to fabricate semiconductor monolayers AsH_3 is used. This was indeed used as a toxic gas in WW I. Which is why they do not use this method in America due to administrative approval problems. Instead they prefer a method which is a few million (probably ;) ) dollars more expensive. I expected that in a country where children chocolate eggs are forbidden in favour of machine guns a toxic gas in science would be something to cheerfully approve ... Summarising comment of a class mate: "Crazy people ..."

Still after the toxic gases the professor drew some "funky quantum wells" (his expression ...) on the board. By combinig different materials it is possible to form the weirdest band structures. As he said: "I do not know what this might be good for but it is possible." Well ok then, it is always better to ask "Why not?" than "Why?" in research. Although while still studying it is more the latter that you ask ... Quite desperately sometimes. ;)

Wednesday 22 January 2014

Nanowires

Now that my new semester started I thought I'd share a short excerpt about what "we" do here in Lund - what is special for Lund research. It is everywhere here. If you study here you might even forget that there is something else going on (in physics). It is nanowires. In principle they are exactly what the name implies. Wires. Small. But first of course the always most important question first: Why would you investigate them?
They show some very interesting properties that conventional wires do not show. These properties lead to promising application possibilities such as (of course) wires in ever modern devices which are getting smaller and smaller. But here besides being small they already show further promising advantages. By combining materials in a way described further below they might allow transmission of two signals in opposing directions at the same time or introduce barriers or quantum wells to quantise conductance. Furthermore, junctions of nanowires might allow to study Majorana fermions which is an interesting scientific field. (Should I roughly understand what Majorana fermions are I might write an article about them but so far I only understand that they seem to very interesting ...) There are some possibilities for medical sciences as well but I do not know much about this. (E.g. something with detecting cancer I think.) Not to forget applications in power generation as I described in the article "The future of solar cells?".
Figure 1: Examples of nanowire
structures consisting of different
materials. The right image is a
cross-section through a wire.
A structure of this kind allows to
transport two signals at the same
time.


Now how are they fabricated and why do they have further interesting properties than just being small? And what actually is small? Nanowires again already implies the size: The diameter of nanowires usually ranges from a few to a few ten nanometers. Their length is usually at least 20 times as long. Otherwise it would not be a wire ... The small diameter now gives the wires a large surface to volume ratio. And this is the interesting part!
If you grow different elements on top of each other in crystalline structures often the top layer will break after a few nanometers. This is because different elements have different distances between the atoms in the crystals which causes strain in the growing layer. After a few nanometers this strain will be too large to allow a monocrystalline structure and the crystal breaks. You cannot use it for devices anymore. With the large surface to volume ratio the nanowires can balance the strain as there is a lot of space for the atoms to gradually change from one crystal structure to another and the different crystals do not break. This can be used to grow heterostructures in ways shown in figure 1.
The principle of fabricating nanowires is as easy as elegant. (Note: the principle.) On a substrate seed particles are distributed by nanoimprint (basically using a nanostamp) or from a gas. Afterwards the nanowire material is applied as gas as well. It will settle on the seed particles, diffuse through them and push the seed up. So underneath the seed there grow the wires. Afterwards branches can be grown and stuff like that. Which is basically what happens in Lund all day. ;)


Figures 2a) (top) Seed particles on a substrate. 2b) (bottom) Different stages of growing nanowires.

Friday 3 January 2014

Hacking under the christmas tree

Just in time for the end of 2013 my laptop broke down. So now I finally had an excuse to put the plans that I already had for a few months into practice. The basic plan was to install Windows and Linux in parallel on the same machine and then do some fancy stuff with it. But this time "for real" and not with the help of a Windows installer. Because some people occasionally asked me about installing operating systems (OS) and partitioning hard drives now I wrote down what I did as a summary and a rough direction guide as this is usually what I am missing when I want to try something new.

First thing to do was reinstalling the Windows OS. For that I used the built-in recovery partition of my laptop. Although I knew that this would install a whole bunch of crap programmes that I would remove immediately afterwards I wanted to keep the nice power management tools that I would have lost if I had not used the factory setting recovery. Windows easy peasy done in half an hour. ;)
Next step was preparing the hard drive for the second Linux OS. For that I added three partitions with Partition Wizard: One for the actual OS (ext4 file system), one for data (ext4 file system) and one for exchanging files between Windows and Linux (FAT32 file system). Actually this separation of OS and data is not necessary, it is more a "good style" to do it. You should do it for your Windows system as well although I did not do it for my laptop as I tend to back up everything anyway. Nevertheless I should feel bad for this inconsistency and I do. There would have been just too many partitions ... I will probably use this exchange partition as a small network hard drive as well when I am back in Sweden so that I can exchange files within the home network as well without a USB stick.

Afterwards it was time to choose one of the around 600(?) available Linux distributions ... As you only learn stuff if you do it on your own and do it properly I chose Arch Linux. This comes along with nothing except the basic Linux OS. No graphical user interface (GUI), no drivers, no internet, no nothing ... Yay, so much fun ... ;)
I burnt the Linux image to a CD (yes, my laptop is old enough that it still has a DVD drive) to boot it with ImgBurn. Before I tried to boot it from SD card but my laptop seems to refuse booting from SD card in principle. -.- So CD it was. From the Arch Linux live environment I then installed the OS onto the hard drive following this tutorial. (Actually that is all the magic behind becoming a computer "expert": Read and try.) Most of the tutorial worked fine, only for the wifi part I had to change some of the commands by trial and error - it seems that the author mixed some old commands with some new effects ...
Anyhow, afterwards I installed the GNOME GUI following the Arch Linux Wiki Beginner's Guide. This took me as long as installing the OS itself. -.- This time it was for my stupidity and impatience which is inherent to every physicist/computer scientist nursery child that always prefers trying on his own rather than following boring guides. ;)
Actually I did not want to install a GUI at all to internalise "how to command shell". ;) But then I realised that I will have to read a lot in future and that I will not always have a second machine to use a browser so I installed a GUI ... Looks really nice by the way so it pays off optically as well. And installing it teaches you a lot about how OS work. :)
Last of course (which I did before installing a GUI but you can do it afterwards as well) I needed a boot loader that recognises both the Linux and the Windows OS. I just used the standard GRUB boot loader for that. The installation guide above includes this.
So after some hours of blood, sweat and tears (and coffee) I really managed to install my favoured dual boot system. No big deal once you know how to do it but first you have to try it on your own. Mission accomplished. :)

You should try installing a dual boot system as well! ;)