|
In the documentation provided by the Go language team you will find great information on pointers and memory allocation. Here is a link to that documentation: http://golang.org/doc/faq#Pointers We need to start with the understanding that all variables contain a value. Based on the type that variable represents will determine how we can use it to manipulate the memory it contains. Read this post to learn more: Understanding T..
|
|
The eagerly waited Leap Motion controller is now out, and reviews are pouring in. Most of them see the promise but find the current experience frustrating: Here’s the thing: the Leap Motion is almost amazing. When using it to interact with my desktop and perform actions (clicking, dragging, scrolling), the experience is about 50 percent fluid intuition and 50 percent screaming frustration. There are moments, sometimes ten or fifteen....
|
|
The eagerly waited Leap Motion controller is now out, and reviews are pouring in. Most of them see the promise but find the current experience frustrating: Here’s the thing: the Leap Motion is almost amazing. When using it to interact with my desktop and perform actions (clicking, dragging, scrolling), the experience is about 50 percent fluid intuition and 50 percent screaming frustration. There are moments, sometimes ten or fifteen....
|
CoffeeScript is a programming language that compiles to JavaScript. Its mission is to "expose the good parts of JavaScript in a simple way". I've heard a lot of interest in it lately from various channels. After a coworkers departure, I inherited maintenance on our deployment bot, and it was written in CoffeeScript. While trying to make some small modifications, I ended up getting unexpected issues I didn't understand. Things I did not....
|
CoffeeScript is a programming language that compiles to JavaScript. Its mission is to "expose the good parts of JavaScript in a simple way". I've heard a lot of interest in it lately from various channels. After a coworkers departure, I inherited maintenance on our deployment bot, and it was written in CoffeeScript. While trying to make some small modifications, I ended up getting unexpected issues I didn't understand. Things I did not....
|
|
I recently brought a Samsung 840 Series Pro 256GB 2.5 inch SATA Solid State Drive and its easily the best PC hardware purchase I have ever made. Before I purchased it I was thinking about replacing my laptop as it was getting pretty sluggish, despite having decent specs even 2 years after I purchase...
|
|
I recently brought a Samsung 840 Series Pro 256GB 2.5 inch SATA Solid State Drive and its easily the best PC hardware purchase I have ever made. Before I purchased it I was thinking about replacing my laptop as it was getting pretty sluggish, despite having decent specs even 2 years after I purchase...
|
|
Most significant features are probably the native support for MongoDB write concern settings, new event hooks allowing for transformation of documents before they are sent to clients, increased handling of both pagination and CORS, and the native validation of float data types. Get it on PyPI, go straight to the source code or more likely, visit the project homepage.
|
|
Both Burn Notice and NCIS, arguably two of USA Network’s most popular television broadcasts, adhere to a strict rule set in each and every episode: a sailor dies, the NCIS team responds and eventually solves the case, and in the last few minutes the overarching story progresses ever so slightly. Similarly, Burn Notice opens with the client, someone with a problem that Michael will agree to solve after a varying amount of reluctance, and clo..
|
|
Porting Interdiction to Android with CocoonJS - overcoming mouse position offset problem
-
liza.io
-
12 years ago
-
eng
For the month of August I am porting Interdiction to Android using CocoonJS. The AI is far from perfect right now, but it works. I am going to keep improving it. For now, however, Android port it is. If I’m lucky I can get it all ported before this year’s js13kGames challenge starts mid-month. If that’s the case I may participate in that and release that game as the September One Game a Month project, but we’ll see.
|
|
In ORM is an anti-pattern Laurie Voss concentrates everything I’ve been saying on the ORM plague in all these years. If your project really does not need any relational data features, then ORM will work perfectly for you, but then you have a different problem: you’re using the wrong datastore. The overhead of a relational datastore is enormous; this is a large part of why NoSQL data stores are so much faster. If your data is relational,..
|
|
This article was written for and published by Safari Books Online My company is building a mobile application called Outcast. The idea behind Outcast is to give people who love the outdoors the ability to get ahead of the weather. By analyzing real time buoy, tide, lunar and solar data with user preferences and experiences, the application can deliver relevant information and forecasts. The user helps with the forecasting by providing..
|
|
Jerome Choo is a human experience designer. He is the founder of Whizzimo, an app designed to facilitate communication students with Dyslexia and their tutors.
|
|
Hello fellow readers, This thread is about obfuscating the content of a webpage. This might not be so useful, security wise, because all the sensitive information should be kept server side. However, for the ones trying to reverse engineer the page this is a huge obstacle.
|
|
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..
|
|
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..
|
|
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..
|