Learntofish's Blog

A blog about math, physics and computer science

Lectures on C++ STL

Posted by Ed on April 25, 2016

Check out these Channel 9 lectures by Stephan T. Lavavej on the Standard Template Library (STL) in C++.

From the website’s description:

Learn all about the Standard Template Library (STL)  from the great Stephan T. Lavavej (STL), Microsoft’s keeper of the STL cloth (this means he manages the partnership with the owners of STL and Microsoft, including, of course, bug fixes and enhancements to the STL that ships as part of Visual C++).

Posted in programming | Tagged: , | 1 Comment »

Python 3: Inheritance and super()

Posted by Ed on April 23, 2016

Inheritance in Object Oriented Programming (OOP) means that you create a new class by extending an existing class. For example, suppose we have a class Shape with the attribute position. Then we can create a new class Circle by taking Shape and extending it by a new attribute center: Read the rest of this entry »

Posted in computer science, programming | Tagged: , , | Leave a Comment »

Learn to code with these websites

Posted by Ed on April 7, 2016

Two websites that teach you how to code are codeschool and codeacademy. They come with videos followed by interactive questions.

You can find more recommendations at:

Posted in programming, Uncategorized | Tagged: , | Leave a Comment »

How Patreon was founded

Posted by Ed on April 7, 2016

You’ve probably heard of Patreon, a crowdfunding platform that allows people to support artists and creators via a subscription where only 5% are kept by Patreon as commission.

Listen to Jack Conte explaining how he founded Patreon together with Sam Yam. I admire the company because the idea is simple and yet so ingenious.  Conte and Yam were smart enough to recognize a niche and quickly  realise their idea.

Posted in music, Uncategorized | Tagged: , , | Leave a Comment »

Playing Flappy Bird within Super Mario World

Posted by Ed on April 3, 2016

Check out this pretty impressive video by Sethbling showing how to inject the source code for Flappy Bird into Super Mario World. The programming is done within the game of Super Mario World.

Posted in games, programming, Uncategorized | Tagged: , , | Leave a Comment »

Try Linux with these simple steps

Posted by Ed on March 26, 2016

Have you ever wanted to try Linux? Here is how you can do it, and all you need is a USB memory stick. Read the rest of this entry »

Posted in computer science, Education | Tagged: , , , | Leave a Comment »

Introduction to Quantum Computing

Posted by Ed on February 19, 2016

Quantum Computing for the determined
This is a series of 22 videos by Michael Nielsen.
After these videos you can watch this talk given by him.

The topics range from the qubit, quantum gates, superdense coding to quantum teleportation. To understand the lectures I’d say you should have had some exposure to quantum mechanics. In particular you should know about complex numbers and matrix multiplication.

Posted in physics | Tagged: , , , , | Leave a Comment »

Github tutorials

Posted by Ed on February 7, 2016

Here are some nice github tutorials: Read the rest of this entry »

Posted in computer science, Uncategorized | Tagged: , | Leave a Comment »

Start menu in Windows 10 does not work anymore

Posted by Ed on December 8, 2015

Today I’ve finally received the notification for downloading Windows 10 as an upgrade from Windows 7. I had reserved it earlier a few months ago and was already worried that something was broken because it took so long. The installation was  smooth and went without any problems.

One thing I don’t like in Windows 10 is how the font looks like. The letters are suddenly so thin and it appears as if the antialiasing is too high compared to how they looked in Windows 7. I will have to look into this deeper later.

The next day I encountered something annoying. The start menu would not show up anymore, symbols in the task bar on the bottom right were not being displayed, and in the center of the task bar the icons for the browsers were missing. As a result, I couldn’t reopen a browser window after having minimized it.

Turns out that the culprit was Windows’s hibernating mode. When I shut down my computer I also turn off the power completely with a switch on the power strip. However, the computer needs some power in hibernating mode, otherwise data will get lost and this is probably what lead to the problems mentioned above.

Disabling the hibernating mode shuts down the computer completely and also allows turning the power off completely. To do so press the Windows Key + X and open a command prompt with administrator rights. Enter the command

powercfg -h off

This has resolved all the problems.

Posted in computer science, Uncategorized | Tagged: , | Leave a Comment »

Awesome Pycon 2015 presentations

Posted by Ed on April 29, 2015

Watch the Pycon 2015 presentations here. I recommend the excellent talk Facts and Myths about Python names and values by Ned Batchelder. It clears misconceptions you may have regarding assignments, references and values in Python. I love this slide.

Posted in Uncategorized | Tagged: , | Leave a Comment »