sgh1.net
A 10-Minute Introduction to Multipole Methods, with MATLAB Code | Another Blog++
http://www.sgh1.net/b4/introduction-mutlipole-methods
A 10-Minute Introduction to Multipole Methods, with MATLAB Code. A 10-Minute Introduction to Multipole Methods, with MATLAB Code. As someone who's more of a mathematics fan than a practitioner, multipole methods at first seemed like straight-up black magic to me. Problems that canonically have an $O(n 2)$ complexity being solved in $O(nlog(n) $ or $O(n)$ time seemed.like a lie. But I was able to get a grip on the simplest case, and now, I'm a believer. Summation symbol and algebra. To solve the entire pr...
sgh1.net
programming | Another Blog++
http://www.sgh1.net/b4/taxonomy/term/3
Tutorial: using cURLcpp to Create a C Web Reader in Ubuntu. In this article, we're going to create a C application with cURLcpp. That reads a webpage and prints the HTML source to stdout. I wanted to try cURLcpp as opposed to the tried and usually true cURLpp, mostly for fun. Read more about Tutorial: using cURLcpp to Create a C Web Reader in Ubuntu. Javascript Tutorial: Reading Binary Files using Typed Arrays. In my last post. Getting the File From the Client Filesystem. First, we need an html input.
sgh1.net
C++ | Another Blog++
http://www.sgh1.net/b4/taxonomy/term/1
Spatial Hashing in C , part 1. This is part 1 of a 3 part series. The first part covers spatial hashing in general, and some of the fundamental implementation details. The second part will cover a few algorithms, and the third part will describe some test cases. The code is available here. But please note, it is still a work in progress. Read more about Spatial Hashing in C , part 1. Variadic template make CString for MFC's CString. Read more about Variadic template make CString for MFC's CString. Tutori...
sgh1.net
Debugging Custom C++ Types in Codeblocks (Code::Blocks) | Another Blog++
http://www.sgh1.net/b4/codeblocks-custom-debug-types
Debugging Custom C Types in Codeblocks (Code: Blocks). Debugging Custom C Types in Codeblocks (Code: Blocks). When I develop C on Linux, and I'm not in a purist/makefile/command-line mood, I like to use Code: Blocks. It doesn't quite have the feature set that Eclipse does, but Eclipse always feels a bit cumbersome to me. On the flipside, Code: Blocks seems much more lightweight. Nothing overly complicated there. Now let's debug the program, and 'watch' the array. Debugging in Code: Blocks. Stl-views-1...
sgh1.net
Alpha-Surf, my half-baked Google Chrome Extension | Another Blog++
http://www.sgh1.net/b4/alpha-surf-chrome-extension
Alpha-Surf, my half-baked Google Chrome Extension. Alpha-Surf, my half-baked Google Chrome Extension. A while ago, I hurt my wrist in a way that made it painful to use the mouse. This obviously put quite a hindrance on my ability to effectively surf the internets. I was able to get around on most websites pretty easily with keyboard shortcuts, but I found that tabbing through links was still pretty tedious and time consuming. Based on the first letter of the text in the link. Manifest version": 2, "name"...
sgh1.net
Tutorial: using cURLcpp to Create a C++ Web Reader in Ubuntu | Another Blog++
http://www.sgh1.net/b4/curlpp-getting-started-tutorial
Tutorial: using cURLcpp to Create a C Web Reader in Ubuntu. Tutorial: using cURLcpp to Create a C Web Reader in Ubuntu. In this article, we're going to create a C application with cURLcpp. That reads a webpage and prints the HTML source to stdout. I wanted to try cURLcpp as opposed to the tried and usually true cURLpp, mostly for fun. We're going to add git and cmake to our environment, so if you already have these, feel free to skip this section. First, we're going to install git. Git is a source contro...
sgh1.net
Another Blog++ | technology, programming, engineering, etc.
http://www.sgh1.net/b4
Spatial Hashing in C , part 2. This is part 2 of a 3 part series. The first part. Covers spatial hashing in general, and some of the fundamental implementation details. The second part will cover a few algorithms, and the third part will describe some test cases. The code is available here. But please note, it is still a work in progress / experiment. Read more about Spatial Hashing in C , part 2. Spatial Hashing in C , part 1. The code is available here. But please note, it is still a work in progress.
sgh1.net
LT Spice Tutorial: Custom Blocks / Parameterized Subcircuit Models | Another Blog++
http://www.sgh1.net/b4/ltspice-subcircuit-block-parameter
LT Spice Tutorial: Custom Blocks / Parameterized Subcircuit Models. LT Spice Tutorial: Custom Blocks / Parameterized Subcircuit Models. In this tutorial, I'm going to introduce an extremely useful feature in LT Spice - how to create a custom, parameterized part. I don't actually know what to call the resulting 'object' Maybe a block, a model, custom subcircuit, custom part - I'm not sure. To start, we have to draw the model. Drawing the model circuit. Be sure to save the curcuit with the name of your mod...
sgh1.net
Javascript Tutorial: Reading Binary Files using Typed Arrays | Another Blog++
http://www.sgh1.net/b4/javascript-read-binary-file-typed-array
Javascript Tutorial: Reading Binary Files using Typed Arrays. Javascript Tutorial: Reading Binary Files using Typed Arrays. In my last post. I briefly mentioned that building my STL file viewer required that I learn a thing or two about binary file reading in Javascript. In this post, I'm going to recreate a stripped-down version of the reader, and focus on the binary I/O. Well, really just I. Getting the File From the Client Filesystem. Is entirely client side. It uses Javascript's Filereader. The onloa...