|
Most large software projects include automated testing and the reasons are obvious. But what about smaller, even toy projects? There should be some extremely lightweight unit-testing frameworks/libraries that would easily fit even the smallest project needs. Unit testing should be easy to start. Otherwise people won’t bother with writing tests at all (unless they are forced to). People don’t like learning complex frameworks to run just a do..
|
|
SOCKS Proxy Over SSH: If you have access to SSH, then you have access to run your own proxy server
-
joshuarogers.net
-
11 years ago
-
eng
Back in May we looked at how to setup Access Controls with NGinx. I didn't mention how I test it though. In order to test the different rules, the requests needed to originate from different IP ranges, which in turn meant that I would need to send the requests from different networks. As I find the idea of fidgeting with cables or hotspots to be more than slightly annoying, I opted to tunnel request out of my internal network using a SOCKS ..
|
|
The best place to start our journey through quantum computing is to recall how classical computing works and try to extend it. Since our final quantum computing model will be a circuit model, we should informally discuss circuits first. A circuit has three parts: the “inputs,” which are bits (either zero or one); the “gates,” which represent the lowest-level computations we perform on bits; and the “wires,” which connect the outputs of gate..
|
|
The best place to start our journey through quantum computing is to recall how classical computing works and try to extend it. Since our final quantum computing model will be a circuit model, we should informally discuss circuits first. A circuit has three parts: the “inputs,” which are bits (either zero or one); the “gates,” which represent the lowest-level computations we perform on bits; and the “wires,” which connect the outputs of gate..
|
|
The best place to start our journey through quantum computing is to recall how classical computing works and try to extend it. Since our final quantum computing model will be a circuit model, we should informally discuss circuits first. A circuit has three parts: the “inputs,” which are bits (either zero or one); the “gates,” which represent the lowest-level computations we perform on bits; and the “wires,” which connect the outputs of gate..
|
|
In my last post , I started porting the RPN calculator example from Java to Clojure, moving a functional program into a functional language. In this post, I finish the work and show how the Clojure calculator models both state and calculator commands. Going back to the last post, the Clojure version of the Read-Eval-Print-Loop (REPL) has the following code. ( defn main [] ( loop [ state ( make-initial-state ) ] ( let [command ....
|
|
Here’s a little how-to on how to use the new syncthing-plugin for your Freenas-server. Syncthing is an opensource file synchronisation client/server application. It’s a great alternative to btsync or Dropbox. Note: The following text contains passages from my other guide on how to setup Freenas 9.2.1 with Transmission and Couchpotato/Sickbeard as a DLNA -Server . That’s because there are many similar steps to perform when setting u....
|
|
Every once in a while I see somewhere a wrong import to the old, deprecated junit.framework instead of org.junit.
|
|
I've been doing a lot of research and experimentation lately about how people learn. This post might give you some ideas to improve your own comprehension and think about your own learning style.
|
|
I’ve just about finished the next version of Simple , the markdown based blog that powers this site. When I first made Simple it was because I disliked WordPress, which seemed a bit too bloated. Then I saw Svbtle and I really liked the minimalist design (mostly the posting interface ) and decided to...
|
|
I’ve just about finished the next version of Simple , the markdown based blog that powers this site. When I first made Simple it was because I disliked WordPress, which seemed a bit too bloated. Then I saw Svbtle and I really liked the minimalist design (mostly the posting interface ) and decided to...
|
|
Airspy is an SDR with amazing specs, but drivers are slowly coming to your prefered os. This apply to Arch but should apply to any recent Linux. I’ve first compiled libairspy but always had the error AIRSPY_ERROR_NOT_FOUND and "usbfs: interface 0 claimed by airspy while 'airspy_info' sets config #1" Since Linux 3.17 comes with an airspy v4l autoloaded driver making impossible to use it with libusb: no airspy_info and no gqrx.
|
|
I've come to several realizations this week. Lemma is going to be good, but not great. I have to accept my limitations and finish the thing to the best of my ability. Lemma is more of an experience than a traditional video game. With these two ideas in mind, I am focusing the next few months on making Lemma the least frustrating, most enjoyable experience I can. So I'm trying to come up with puzzles that seem difficult but are actuall..
|
|
Yesterday I put in claustrophobia for the snails. Jars have a capacity attribute - a maximum number of snails that they should hold. But just because a jar with a capacity of 20 may not be able to support 25 snails very well doesn’t mean the snails are going to conveniently stop reproducing or hatching (if it is a breeding jar). Instead, they’re just going to get uncomfortable enough to eat their babies.
|
|
Chocolatey, PowerShell DSC and Azure IAAS - Automating dev box creation
-
blog.gripdev.xyz
-
11 years ago
-
eng
Hi, So back in 2013 I wrote a post on automating the creation of a Virtual Machine, and installation of all my loved bits of software, using Chocolaty and Remote Powershell. Well things have moved on in the Azure IAAS world and we have a nice new way to automate installation and configuration of VM’s. PowerShell DSC (desired state configuration) gives you a nice declarative way to define the setup of your machine. It also allows you t..
|
|
I’ve been using DVCSs for more than four years and I love them. Both Git and Mercurial are excellent source control tools, each with their strong points and their warts. The biggest difference between the two is the learning curve. I was very comfortable with Mercurial after only a few weeks and the same has held true wherever I’ve introduced it. It took me about six months to get to the same comfort level with Git. And that was with t..
|
|
I haven’t updated in a long time and it’s because the battle with snail brains has been raging on. Over the past few weeks I have run into several weird behavioural problems, including but not limited to:
|
|
I’m working on a project that requires Geo proximity search. Basically, what I’m doing is plotting a radius around a point on a map, which is defined by the distance between two points on the map given their latitudes and longitudes. To achieve this I’m using the Haversine formula (spherical trigonometry). This equation is important […]
|
|
Quantum mechanics is one of the leading scientific theories describing the rules that govern the universe. It’s discovery and formulation was one of the most important revolutions in the history of mankind, contributing in no small part to the invention of the transistor and the laser. Here at Math ∩ Programming we don’t put too much emphasis on physics or engineering, so it might seem curious to study quantum physics. But as the reader is ..
|
|
Quantum mechanics is one of the leading scientific theories describing the rules that govern the universe. It’s discovery and formulation was one of the most important revolutions in the history of mankind, contributing in no small part to the invention of the transistor and the laser. Here at Math ∩ Programming we don’t put too much emphasis on physics or engineering, so it might seem curious to study quantum physics. But as the reader is ..
|
|
Quantum mechanics is one of the leading scientific theories describing the rules that govern the universe. It’s discovery and formulation was one of the most important revolutions in the history of mankind, contributing in no small part to the invention of the transistor and the laser. Here at Math ∩ Programming we don’t put too much emphasis on physics or engineering, so it might seem curious to study quantum physics. But as the reader is ..
|
|
Every few years I have a habit of starting a new project. The goal always being to scratch my own itch and learn some new technology in the process. While I am still working on searchcode.com I really wanted to play with what I had learnt there and apply it to something new. You can view it at portfold.com Recently I have been taking an interest in various topics such as “ Oil Gas Pipeline Failure Rates ” and “ Hydroelectric Dam Envir..
|
|
Repository: @knadh/localStorageDB GitHub release page: v2.3.0 Added multi-field sorting capabilities to query() Added queryAll(), an alias to query() that takes a dict of params instead of positional arguments Made localStorageDB AMD compatible Fixed null value update bug
|
|
Lots of stuff going on this week. New dev blog First off, my website got a much-needed overhaul. The horrible slowness of Wordpress.com was driving me nuts, so I switched to a custom-built site. I used Jekyll , which is a static site generator. It spits out a bunch of HTML files which you can upload to a server, as opposed to Wordpress, which generates fresh HTML every time someone loads your page. Advantages:
|
|
I want to empty my life and then refill it again. Why? Because it is similar to the stuff I do when I am cleaning up and organizing my possessions. Say, for example, I am cleaning up a closet. I will remove everything, and then put everything back in order. This way I am certain to go through everything and address it. It is a simple algorithm but is very effective. Organizing my items serves not only hygienic or inventory purposes, but als....
|
|
Like all those involved with the .NET ecosystem I’ve been slowly digesting the recent news on the whole thing going open source and cross platform. I’ve been jogging down a few notes in light of a future blog post, but then Jeremy Miller came out with his own Some Thoughts on the New .NET which is almost exactly the post I wanted to write. So when he writes: I’ve started to associate .Net “classic” with seemingly constant aggravations..
|
|
pIf you#39;ve been a Ruby developer for a while, chances are that you#39;ve written some kind of Rack middleware. Rack is a pretty big part of web development with Rails, and here at theScore we#39;ve developed a few, small pieces of middleware to add additional data to our requests so that our Rails applications can use it./p pIf you#39;re not familiar with Rack or Rack middleware, I would recommend a href=http://southdesign.de/blog/rack.h....
|