Posts

Showing posts from 2017

Arch Linux. Not as scary as you think.

Image
Yes I'm a nerd. Yes I use Arch Linux. There is a somewhat unfair view that you have to be a programmer to use Linux, and that Arch Linux in particular is very difficult. Yes I happen to be a programmer, and it might be true that Linux may be particularly useful for programmers considering most distros come with a lot of editors and compilers and such. But it really is a really stable and powerful OS for anyone (that's not computer illiterate). If you want to just use your computer without having to thinking about it, you will probably use whatever Windows version your computer came shipped with, and not bother to install anything else. However if you actually want to Learn how to use Linux, Arch is a good choice, because it assumes you know how to use the command line during the install process. In other words the process of installing it forces you learn som basics of Linux (if you don't already know). Still it is not very difficult. You don't have to compile

Mr. Robot

Image
Ok, so this show started airing two years ago and is currently on it's third season, so if you never heard of it you're either not that much of a computer nerd, or you don't watch much TV. Nevertheless I thought this was a suitable place to talk about it, although I don't want to write too much in case you actually missed it, but want to see it after reading this (I'll try to avoid major spoilers). The story centers around Elliot Alderson (played by Rami Malek), a genius hacker, and programmer, who suffers from mental illness; social phobia, and dysthymia. He works at a computer security company by day, and is recruited by a hacker organisation called fsociety. It early becomes clear that one of the main targets of fsociety is E-corp. Short for Evil Corporation. This is of course not the actual name of the corporation, however Elliot has conditioned his mind to automatically translate the company name to evil corp, and that is what the audience get to hear

BASIC

Image
A simple BASIC program written on the Commodore 64 Why should you learn BASIC? Well, you shouldn't really. "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration." - Edsger Dijkstra BASIC was a programming language designed in 1964, primarily to teach basic programming principles to beginners. BASIC is an acronym for  Beginners All-purpose Symbolic Instruction Code . However BASIC became popular with the increase of microcomputers for the home market, and during the 1980s many computers used a BASIC interpreter in place of an operating system. Examples of such computers are Commodore 64, Apple II, TRS-80, ZX-80, and BBC Micro. There where several different dialects of BASIC with somewhat different syntax, such as Simons Basic for C64, and BBC Basic for the BBC Micro. Even if you where unaware of it, you actually used BASI

Binary Arithmetics

Image
This is a continuation of my last post about Binary Numerals. When we know what binary is, we of course want to be able to apply maths to it. Binary Addition Line the two numbers up, one over the other and start adding each column, starting from the right. There are four possible results: 0 + 0 = 0 1 + 0 = 1 0 + 1 = 1 1 + 1 = 0 (carry 1) In the fourth case the result is 10, so 0 is written and 1 is carried over to the next column. Technically the carry causes a fifth possible case: 1 + 1 + 1 = 1 (carry 1) Here's a problem for you to solve on your own: 10110 + 01011 Binary Subtraction There are four cases for binary subtraction: 0 - 0 = 0 1 - 0 = 1 1 - 1 = 0 0 - 1 = 0 (Borrow 1) Here's a problem for you to solve on your own: 1101 - 0011 Binary Multiplication Binary multiplication is actually simpler than decimal multiplication. There are four cases for binary multiplication (and all but one results

Binary Numeral System

Image
"There are 10 types of people, those who understand binary numbers, and those who does not." Just as the most commonly used decimal number system is based on the number 10, the binary number system is based on the number 2. As the decimal numbers are represented by the 10 numbers 0-9, the binary numbers are represented by the numbers 0-1. Just as the decimal system, the binary system is also a positional system where the number to the right is the least significant. Compare the decimal number 1035 1*10 3  + 0*10 2  + 3*10 1  <+ 5*10 0 = 1000 + 0 + 30 + 5 To the binary number 101101 1*2 5 + 0*2 4 + 1*2 3 + 1*2 2 + 0*2 1 + 1*2 0 = 1*32 + 0*16 + 1*8 + 1*4 + 0*2 + 1 = 44 (in decimal) In other words the value of each position in binary is doubled; Binary Decimal 1 1 10 2 100 4 1000 8 10000 16 100000 32 1000000 64 100000

The Deep Web

Image
Disclaimer The author of this article does not condone any kind of illegal activity. The information contained in this article is purely for information. The author takes no responsibility for any illicit activities preformed by the readers of this article. 01000011 01110101 01110010 01101001 01101111 01110011 01101001 01110100 01111001 00100000 01101011 01101001 01101100 01101100 01100101 01100100 00100000 01110100 01101000 01100101 00100000 01100011 01100001 01110100 00101100 00100000 01100010 01110101 01110100 00100000 01110011 01100001 01110100 01101001 01110011 01100110 01100001 01100011 01110100 01101001 01101111 01101110 00100000 01100010 01110010 01101111 01110101 01100111 01101000 01110100 00100000 01101001 01110100 00100000 01100010 01100001 01100011 01101011  Hearing news about the Deep Web, and hearing it referenced in tv-series and movies might have made you curious. And if you're anything like me curiousity will drive you to want to learn more, and maybe e

Pancake recipe

Image
So this is a nerd blog. Who says you can't be nerdy about cooking and baking!? I always liked food. Especially ethnic food that is new to me. But I never really though about traditional food from my home country as "ethnic food". But of course it would be to people from someplace else. So here I share my recipe for traditional Swedish pancakes. It is a bit of a tradition to have pancakes every Thursday in Sweden, but that tradition haven't really lasted in my home. Pancakes with whipped cream and strawberry jam So this is my pancake recipe. I use the same batter for oven baked as well as pan baked, although most people tend to have slightly more flour in the oven baked version. The best thing about my recipe is that it's really easy to make and to remember! The main difference between a crepe and a pancake seem to be that pancake batter doesn't contain any sugar (some people do put sugar in, but that's note the base recipe). Also crepes shoul

Installing Debian

Image
Debian GNU/Linux is one of the oldest, most stable and trusted distributions out there. As a result many other distributions, such as Ubuntu, has been based off of it. The pro of Debian is that each package is rigorously tested before release so stability is basically a guarantee, the problem is of course that you will almost indefinitely end up with out of date versions of all your programs. Of course if you prefer more up to date software above guaranteed stability there is always the testing-branch of Debian, but I do believe most users tend to install the Stable version. I must admit I'm slightly biased towards Debian because back in 2000 when I took my first OS course this was the distro we used. I quickly forgot nearly everything I learned, but I do distinctly remember our teacher forbidding us to install a desktop environment with the motivation: "That would be like clicking Windows, and that's not a real operating system". Interestingly each Stable