|
Problem: Prove that for vectors $ v, w$ in an inner product space, the inequality $$\displaystyle |\left \langle v, w \right \rangle | \leq \| v \| \| w \|$$ Solution: There is an elementary proof of the Cauchy-Schwarz inequality (see the Wikipedia article), and this proof is essentially the same. What makes this proof stand out is its insightful technique, which I first read about on Terry Tao’s blog. He calls it “textbook,” and maybe it i..
|
|
Every year, my high school holds a canoe race, where students from the Engineering, Physics, and Calculus classes compete to design, build and race a Canoe over the span of two weeks.
|
|
Every year, my high school holds a canoe race, where students from the Engineering, Physics, and Calculus classes compete to design, build and race a Canoe over the span of two weeks.
|
|
Just over two short weeks in to the new year, Casey Liss, former Build & Analyze host Marco Arment, and former Hypercritical host John Siracusa released a casual car podcast aptly dubbed Neutral . The show went on to received critical acclaim not only for its fantastic roster, but for its role pioneering a new show format in the podcasting space as well. Finishing in just twelve short episodes, Neutral and its hosts proved not only t..
|
|
As perfect as jQuery may seem, sometimes its default behaviors end up being very surprising to the uninitiated. During a routine code review, these few lines were pointed out as being weird because, even though there are 2 append() calls, nothing was evidently wrong from the UI. if ( this . summaryBar ) { this . $ ( ' .slot-one ' ). append ( this . summaryBar . el , this . campaignGraph . el ); } thi....
|
|
Last month, in Apple’s Wildcard , I predicted Tim Cook announcing an iPhone 5S rather than an iPhone 6 this fall, pointing to the 3G and 3GS, 4 and 4S models as proof. I did, however, hedge my bets with Tim Cook’s “Can’t innovate, my ass” comment: Permalink.
|
|
Instead of hurling myself at an insurmountable goal simply because it was named respectably, I came in with a personal best by asking more from my strengths and forgiving my weaknesses.” It’s an article ostensibly about video games, though it may have just as well been about overcoming barriers by setting aside the often malformed and unrealistic expectations we often place upon both ourselves and our work. Permalink.
|
|
In reply to Chris. OrderedDict doesn't call super to keep that part of the API closed-off from subclassers. That will give us a little more freedom to replace the current implementation with a faster version written in C.
|
|
On June 22nd through the 26th, Portland Oregon is hosting OSCON (Open Source Convention). The event is run by O’Reilly. After looking at the speakers list it appears it is going to be a great convention. There are three Gophers who will be giving talks. Check out the links: Francesc Campoy Flores Go Developer Programs Engineer, Google Inc. http://www.oscon.com/oscon2013/public/schedule/speaker/155088 Johan Euphr..
|
|
As I mentioned in a previous post, I host various websites (including this one in the past) on a MiraBox sitting behind my tv. In that same post I outlined how Globalscale screwed me by mixing releases in the sources.list. I didn’t catch it until I had an unbootable system, and I had to completely rebuild my server which took weeks. I very nearly tossed the whole thing in favor of hosting my websites on a “real computer, made by people who ..
|
|
This website ranks quite high in most search engines for the search term “captcha decoding” or some permutation of it. As such here are a collection of useful links if you are looking into doing such a thing. If any more come up I will be sure to update this post. http://www.boyter.org/decoding-captchas/ Shameless self promotion but this link is why this page ranks so highly. Its an article I wrote some time ago about how to go about ..
|
|
from source when you’re using the homebrew-provided Python. If you have installed Python via homebrew, your vim will compile fine but when a plugin tries to use Python to do some its work, vim will crash like this: Not pretty. Apparently, this is because vim will use the first Python it can find which in our case the homebrew-provided one. You can of course get a pre-compiled version and ignore this. But I like to use the latest ver....
|
|
from source when you’re using the homebrew-provided Python. If you have installed Python via homebrew, your vim will compile fine but when a plugin tries to use Python to do some its work, vim will crash like this: Not pretty. Apparently, this is because vim will use the first Python it can find which in our case the homebrew-provided one. You can of course get a pre-compiled version and ignore this. But I like to use the latest ver....
|
|
This website has been powered by poole for a long time. I don’t think I have any real reasons to migrate from poole. Do you know there are static site generators written in UNIX Shell? I think it’s a good choice for old-school programmers, who feel uncomfortable with Ruby, Python and even Node.js. All that shell madness started with werc, a nice tool used by suckless and cat-v. Then sw appeared.
|
|
This website has been powered by poole for a long time. I don’t think I have any real reasons to migrate from poole. Do you know there are static site generators written in UNIX Shell? I think it’s a good choice for old-school programmers, who feel uncomfortable with Ruby, Python and even Node.js. All that shell madness started with werc, a nice tool used by suckless and cat-v. Then sw appeared.
|
|
A trip report from our Canada Day 2013 long weekend kayak camping trip to Thormanby Islands, Smuggler Cove & Secret Cove, on the sunshine coast. Figure 1. We started at Welcome Beach on Saturday afternoon, kayaked over to Thormanby for lunch, then up and round to Buccaneer Bay - stunning camp on the dunes, then over to Smugglers Cove on Sunday. Camped there Sunday night, with a trip to Secret Cove in the afternoon, then back to Welcome ....
|
|
Adam Wexler is the founder and Chief Strategy Officer at Insightpool, the leader in social engagement automation.
|
|
Displaying a processes output on a web page with Websockets and Python
-
tomforb.es
-
12 years ago
-
eng
A few days ago a colleague of mine asked me how you would pipe the standard output of a process into a browser. I hacked around for a few hours and came up with a websockets based solution (using Twisted and Autobahn.ws ) that you can see below ( Your browser needs to support WebSockets, sorry IE9 a...
|
|
Displaying a processes output on a web page with Websockets and Python
-
tomforb.es
-
12 years ago
-
eng
A few days ago a colleague of mine asked me how you would pipe the standard output of a process into a browser. I hacked around for a few hours and came up with a websockets based solution (using Twisted and Autobahn.ws ) that you can see below ( Your browser needs to support WebSockets, sorry IE9 a...
|
|
For the longest time, I was using Time Machine to keep copies of my files. I don’t remember ever wishing I could go back in time and retrieve an older version of a file. What does keep me up at night though is forever losing all of the pictures of our kids because my hard drive failed. I also don’t particularly like tools like Time Machine, Carbon Copy Cloner or SuperDuper. They are some kind of GUI app that does stuff, and I like my ....
|
|
For the longest time, I was using Time Machine to keep copies of my files. I don’t remember ever wishing I could go back in time and retrieve an older version of a file. What does keep me up at night though is forever losing all of the pictures of our kids because my hard drive failed. I also don’t particularly like tools like Time Machine, Carbon Copy Cloner or SuperDuper. They are some kind of GUI app that does stuff, and I like my ....
|
|
I made some more improvements to Toaster yesterday and this morning. Specifically: Have Toaster look for an enemy tile to place Grenades on Before, Toaster looked for an empty space on the grid to place whatever tile it was holding. Now, if that tile is a grenade, it looks for an enemy tile to place it on. If it can’t find one, it picks another tile from its queue instead because placing grenades on empty grid spaces is pointless. Right n..
|
|
please.js - A simple PostMessage based communication library
-
engineering.wingify.com
-
12 years ago
-
eng
In one of our previous posts, we talked about the problems we faced when communicating with frames on a different domain in our application…
|
|
My Interdiction single player AI (named Toaster) has been coming along slowly. It’s still very far from the unbeatable cylon I want it to be, but it at least tries to defend itself by intercepting the player and attempting to build up its own lines.
|
|
I have always had great trouble starting to write. I seldom found the actual act of writing difficult, only getting started. The same goes for programming: once I had successfully implemented the main functionality I set out to imbue First Crack with, I ceased iterating on the project not for lack of new ideas — with the underlying code functional and working, I wanted to design an accompanying GUI, for example — but instead because I lacke..
|
|
With the minor caveat of having drawn its entire inspiration solely from one of the most unintelligible and idiotic videos I have ever seen, Jon Negroni’s theory that all Pixar movies not only take place within the same world but also serve to establish a connected timeline is nevertheless a very interesting one. Like most conspiracy theories, Jon’s proposition makes use of many seemingly related happenstances and strings them together in..
|
|
Last time we worked through some basic examples of universal properties, specifically singling out quotients, products, and coproducts. There are many many more universal properties that we will mention as we encounter them, but there is one crucial topic in category theory that we have only hinted at: functoriality. As we’ve repeatedly stressed, the meat of category theory is in the morphisms. One natural question one might ask is, what no..
|
|
Last time we worked through some basic examples of universal properties, specifically singling out quotients, products, and coproducts. There are many many more universal properties that we will mention as we encounter them, but there is one crucial topic in category theory that we have only hinted at: functoriality. As we’ve repeatedly stressed, the meat of category theory is in the morphisms. One natural question one might ask is, what no..
|
|
Last time we worked through some basic examples of universal properties, specifically singling out quotients, products, and coproducts. There are many many more universal properties that we will mention as we encounter them, but there is one crucial topic in category theory that we have only hinted at: functoriality. As we’ve repeatedly stressed, the meat of category theory is in the morphisms. One natural question one might ask is, what no..
|
|
Reading stuff online can become addictive. So addictive, in fact, that it can negatively affect your productivity as a programmer. Most of us go to Hacker News or Reddit to get our dose of news. We justify it by saying that it’s research or that we are trying to stay current in the community . Whatever your excuse, you know you have a problem when you check Hacker News every ten minutes just to see if anything new and awesome has bee....
|
|
Reading stuff online can become addictive. So addictive, in fact, that it can negatively affect your productivity as a programmer. Most of us go to Hacker News or Reddit to get our dose of news. We justify it by saying that it’s research or that we are trying to stay current in the community . Whatever your excuse, you know you have a problem when you check Hacker News every ten minutes just to see if anything new and awesome has bee....
|
|
In our last post we saw that so-called “N-blocks” (regions of the genome for which sequences are not available) were not getting decoded correctly by our decoder . The solution is to look back into the so-called “file index” which specifies where the N-blocks are, and how long each block is. The modified decoder looks like this: (defn genome-sequence " Read a specific sequence, or all sequences in a file concatenated....
|
|
In our last post we saw that so-called “N-blocks” (regions of the genome for which sequences are not available) were not getting decoded correctly by our decoder . The solution is to look back into the so-called “file index” which specifies where the N-blocks are, and how long each block is. The modified decoder looks like this: (defn genome-sequence " Read a specific sequence, or all sequences in a file concatenated....
|
|
In our last post we saw that so-called “N-blocks” (regions of the genome for which sequences are not available) were not getting decoded correctly by our decoder . The solution is to look back into the so-called “file index” which specifies where the N-blocks are, and how long each block is. The modified decoder looks like this: (defn genome-sequence " Read a specific sequence, or all sequences in a file concatenated....
|
|
When I was coding in C/C++ it was imperative to understand type. If you didn’t, you would get into a lot of trouble with both the compiler and running your code. Regardless of the language, type touches every aspect of programming syntax. A good understand of types and pointers is critical to good programming. This post will focus on type. Take these bytes of memory for starters:
|
|
I’m a software developer by trade who after years of leaving articles and blog posts all over the place has finally gotten around to consolidating them all into this single site. I am a professional software engineer who has been working in development with a focus on testing for over 15 years. In that time I have played an integral part in developing and implementing testing methodologies for all sorts of projects including,
|
|
Looking for a practical guide to CAPTCHA decoding? All About CAPTCHA’s. This eBook will teach you how to identify weaknesses and exploit CAPTCHA’s from beginning to end. Buy now using Leanpub Most people don’t know this but my honors thesis was about using a computer program to read text out of web images. My theory was that if you could get a high level of successful extraction you could use it as another source of data which could be ..
|