Categories
Academia Networking

Grokking the subnet mask

I’ve noticed that many networking students have few problems answering questions about the simpler, classful networks and their subnet masks. But then many struggle when problems involve CIDR networks.
I think it’s because beginners have grasped the basics using some rules of thumb, but not the underlying principles.
When we take the class C netmask, 255.255.255.0, the shortcut thought is that the magic number 255 means “part of network”, and magic 0 means “part of host address”. But if that’s all you know, then as soon as you see a netmask like 255.255.192.0, you’re stumped. What does the 192 mean?

Categories
Academia Programming

Randomness – C# mini tutorial

Note: This was some teaching material I used on the degree and professional courses to explain a little about using randomness- why and how -in your applications. The courses were based around C#, but are easily adapted to many other languages, including Java and Javascript. Just ask for a translation! Because they were slides used as part of an in-class tutorial, some parts may raise questions as much as answer them…
Note 2: A Visual Studio project is available with some starting code, and some questions (in the form of comments) for you to try to answer, available here: rand.zip

Randomness

  • What is randomness?
  • Where can we use it in our programs?
  • How can we acquire random values?
  • How can we make some values more likely than others (weighting/non-uniform distribution)?
Categories
Academia Linux

Neongrit guide – release 1.3.2

Hello. If you’re a user of the neongrit server I sysadmin (sudo make me a sandwich, for I. Am. root.), you should already be familiar with my guide to making use of the services offered.
But if not, or if you’re new to having an account, please download and read it, it talks about using notepad++, WinSCP and Dreamweaver to access it, how the filesystems is laid out, and lots of hints and tips. Particularly useful if you’ve never hosted a website on a linux server before.
neongrit user guide v1.3.2