Ever wonder how the square-root button on your calculator works? Nope, it's not the Underpants Gnomes. In this screencast we will demonstrate Newton's method of making a series of guesses, each one getting us closer to our answer. we're gonna need an average function which will take x and y, add them together and divide that by 2. now our newton function will take a guess in addition to our number that we want the square root of. It will divide our number by the guess and average that with the previous guess. Let's try it on 81. Start with an initial guess of 1.0. We get 41.0. So we run it with that. And again, and again, until we start to converge on the answer. As we see, the square root of 81 is 9. So now we can write a function to do that all for us. We'll get the absolute value of a number, by taking its negation and seeing which one's bigger. To check the answer, we square it, or multiply it by itself. We can now write our square root function. It...
Posts
Showing posts from 2018
Sleepless in Seattle (literally!)
- Get link
- X
- Other Apps

What is that movie even about, anyway? Not sure if I really care, but the title pretty much describes my experience here so far. Seems like Seattle doesn't want to let me sleep. That's a commodity that's currently too rich for my blood. My first night was spent just sitting. Right on the sidewalk. About as uneventful as you can get. I relaxed as much as possible but couldn't let myself doze off because I was on the job - guarding my mobile office from those grabby types. This time, I'm here on business and only have exactly what I need - no more, no less (though I certainly wish it were less). In the morning, I realized that I had just enough change for a cup of coffee, but accidentally walked into this weird special Starbucks "Reserve" store. They handed me a menu. What? I ordered a large... I mean, Venti, and it was nearly five bucks! Normally I would have bought it and felt extremely stupid. But since I was unable to do so, it was not only sup...
MilkyTracker: The quest for the perfect music software
- Get link
- X
- Other Apps

The last album I made was in 2013 on a MacBook using Logic Pro and Massive, a setup that cost a couple thousand dollars. Since I no longer have that machine and the software was proprietary, I no longer have access to all of that work. This has sparked a great interest in searching for a replacement digital audio suite, one that would provide a comparable workflow but also offer longevity, the ability to archive my work in a format that can be shared across platforms and improved upon. An artist should demand nothing less! What if a painter had to stop working on everything because they didn't want to use canvas from a certain company, and then none of their brushes or paints would work? That's what is actually happening in today's creative landscape, but with software. Whatever program I use must, above all else, use a standard file format for music encoding, which is usually MIDI but there are others. That way none of my work is dependent on any specific piece of ...
Part 2: Software Development Tools
- Get link
- X
- Other Apps
sudo apt-get install python3-pip sudo apt-get install python-pip sudo pip install --upgrade youtube_dl sudo apt-get install dosbox sudo apt-get install oracle-java8-jdk sudo apt-get install gnome-disk-utility sudo apt-get install leafpad sudo apt-get install libreoffice Emacs - do whole video on this. Leiningen - save lein script to /bin/lein, then: sudo chmod a+x /bin/lein lein sudo apt install emacs24 git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d .spacemacs config: (setq-default dotspacemacs-configuration-layers '((clojure :variables clojure-enable-fancify-symbols t))) vim/fireplace (do whole video on this): sudo apt-get install vim git clone https://github.com/ctford/vim-fireplace-easy.git .vim ln -s ~/.vim/vimrc.vim ~/.vimrc vim -c "helptags ~/.vim/bundle/vim-fireplace/doc" -c "q"
Retro-Gaming and Software Development Platform: A Step-by-Step Guide
- Get link
- X
- Other Apps

Get retropie-4.3-rpi2_rpi3.img from https://retropie.org.uk/download/ Flash it to your sdcard, boot and press F4 to exit to shell. Install graphical desktop: sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install xserver-xorg sudo apt-get install xinit sudo apt-get install raspberrypi-ui-mods sudo apt-get install -y rpi-chromium-mods sudo apt-get install -y python-sense-emu sudo apt-get install -y python-sense-emu-doc sudo apt-get install -y realvnc-vnc-viewer sudo apt-get install lxde Your best friend: sudo raspi-config There you can do all kinds of stuff, I recommend changing your password and enabling ssh in the interface options. Set your appropriate locale (mine is en_US.UTF-8), keyboard layout - English (US, alternative international), and wifi country. Use the spacebar to select/deselect. Type startx to load lxde.