|
Problem: Write a program that shuffles a list. Do so without using more than a constant amount of extra space and linear time in the size of the list. Solution: (in Python) import random random.seed() def shuffle(myList): n = len(myList) for i in xrange(0, n): j = random.randint(i, n-1) # randint is inclusive myList[i], myList[j] = myList[j], myList[i] Discussion: Using a computer to shuffle a deck of cards is nontrivial at first glance for..
|
|
Problem: Write a program that shuffles a list. Do so without using more than a constant amount of extra space and linear time in the size of the list. Solution: (in Python) import random random.seed() def shuffle(myList): n = len(myList) for i in xrange(0, n): j = random.randint(i, n-1) # randint is inclusive myList[i], myList[j] = myList[j], myList[i] Discussion: Using a computer to shuffle a deck of cards is nontrivial at first glance for..
|
|
I attended a talk at the Toronto Agile Tour on Deliberate Practice that focused on TDD Games and other programming challenges like Kata. Among the challenges were things like solving a problem without using the ‘if’ keyword, or without using primitives. Solving simple problems using these challenges makes us better programmers because they force us to come up with multiple, creative solutions to the same problem. Here’s my solution for..
|
|
I build software for a living. This means creating the new generation of Content Management interfaces in the IKS Project and developing custom client applications at Nemein . As my office is where my laptop is, none of this work is particularly tied to a physical location. And as much of the work is communicating, I end up spending quite a lot of time traveling between meetings and conferences. For this my previous home town....
|
|
By the end, the breadth and depth of our collective knowledge was far beyond what anyone could expect from any high school course in any subject. Education Versus Exploration I’m a lab TA for an introductory Python programming course this semester, and it’s been…depressing. I remember my early days of programming, when the possibilities seemed endless and adding new features to my programs was exciting and gratifying, and I brimmed with pri..
|
|
By the end, the breadth and depth of our collective knowledge was far beyond what anyone could expect from any high school course in any subject. Education Versus Exploration I’m a lab TA for an introductory Python programming course this semester, and it’s been…depressing. I remember my early days of programming, when the possibilities seemed endless and adding new features to my programs was exciting and gratifying, and I brimmed with pri..
|
|
By the end, the breadth and depth of our collective knowledge was far beyond what anyone could expect from any high school course in any subject. Education Versus Exploration I’m a lab TA for an introductory Python programming course this semester, and it’s been…depressing. I remember my early days of programming, when the possibilities seemed endless and adding new features to my programs was exciting and gratifying, and I brimmed with pri..
|
|
Sorry, no news to report on Lemma this week. School is keeping me busy. But I thought I'd share some of the projects I'm working on for school, since they're kind of cool and actually somewhat related to Lemma. First up: a 3D rapid prototype of the original toon-style Parkour Ninja! Here's the model rendered in Cinema 4D: And here it is printed out in 3D:
|
|
Gwen: Streamlining adjacency settings, performance, notifications, allegiance, etc
-
liza.io
-
14 years ago
-
eng
Eh…this started out being a brief update from the past week and turned into an ongoing update stream of notes. I didn’t have an Internet connection available for much of it, meaning this post may be a bit weird as parts of it were written at different times, but it’s mostly just for me to be able to go back and review my progress.
|
|
As a user, I can add social security number, so patient logs have social security numbers As a developer, how would you react if you were given this user story? Would you throw it back in the face of the product owner, or would you try and understand it? How about the following dialogue? Developer: “What are we hoping to achieve with this story?” Customer: “We hope that the patient logs will have social security numbers.
|
|
For the past N months, it seems like there is no new technology stack that is either hotter or more controversial than node.js. node.js is cancer! node.js cures cancer! node.js is bad ass rock star tech!. I myself have given node.js a lot of shit, often involving the phrase “explicit continuation-passing style.” Most of the arguments I’ve seen seem to center around whether node.js is “scalable” or high-performance, and the relative merits o..
|
|
For the past N months, it seems like there is no new technology stack that is either hotter or more controversial than node.js. node.js is cancer! node.js cures cancer! node.js is bad ass rock star tech!. I myself have given node.js a lot of shit, often involving the phrase “explicit continuation-passing style.” Most of the arguments I’ve seen seem to center around whether node.js is “scalable” or high-performance, and the relative merits o..
|
|
Stratus is a jQuery powered SoundCloud player that lives at the bottom (or top) of your website or blog. In version 2, we’ve rebuilt Stratus from the ground up to include many requested features, a nicer aesthetic, and a much easier installation. Pumped? Yeh, me too. Here’s how to participate in the BETA:
|
|
Friday I was told that I would not be considered for the inaugural class of Venture for America Fellows. I knew the program was a long shot.
|
|
Stratus is a jQuery powered SoundCloud player that lives at the bottom (or top) of your website or blog. In version 2, we’ve rebuilt Stratus from the ground up to include many requested features, a nicer aesthetic, and a much easier installation. Pumped? Yeh, me too. Here’s how to participate in the BETA:
|
|
The SoundCloud Developer Community has grown immensely. We have over ten thousand registered applications and over three hundred showcased in our App Gallery. Our goal as the Platform Team is to provide the best API tools possible, while also providing support and inspiration. So far, our primary channels have been this blog, our Twitter account, and our mailing list, hosted on Google Groups. In the coming months, you can expect some change..
|
|
Kids are never the problem. They are born scientists. The problem is always the adults. The beat the curiosity out of the kids. They out-number kids. They vote. They wield resources. That’s why my public focus is primarily adults. [Source] Neil deGrasse Tyson, answering a question in his AMA on Reddit a few months ago: “Can we inspire more kids to pursue space-related science and research? If so, how?
|
|
The SoundCloud Developer Community has grown immensely. We have over ten thousand registered applications and over three hundred showcased in our App Gallery. Our goal as the Platform Team is to provide the best API tools possible, while also providing support and inspiration. So far, our primary channels have been this blog, our Twitter account, and our mailing list, hosted on Google Groups. In the coming months, you can expect some change..
|
|
It’s no secret that SoundCloud is a Ruby shop, but that doesn’t stop us from giving some love to the Pythonistas in our community. Our old Python API wrapper has been neglected. It doesn’t support OAuth 2 or all of the resources made available by our API. It’s old and crufty and we’re sorry for letting it get that way. In order to make it up to you, we wrote a new one and made it much better.
|
|
It’s no secret that SoundCloud is a Ruby shop, but that doesn’t stop us from giving some love to the Pythonistas in our community. Our old Python API wrapper has been neglected. It doesn’t support OAuth 2 or all of the resources made available by our API. It’s old and crufty and we’re sorry for letting it get that way. In order to make it up to you, we wrote a new one and made it much better.
|
|
I just noticed that (finally) in 11.2 this syntax is supported: SQL> CREATE DATABASE LINK demo_x2 2 CONNECT TO tanel IDENTIFIED BY password 3 USING ' exadb03:1521/DEMO '; Database link created. This just makes life a bit easier as there’s no need to use the long TNS format entry (or a tnsnames.ora/LDAP alias). It might work in 11.1 too (haven’t tested) but it didn’t work on 10.2.0.4 … Update: This feature works for dblinks in 10...
|
|
I just noticed that (finally) in 11.2 this syntax is supported: SQL> CREATE DATABASE LINK demo_x2 2 CONNECT TO tanel IDENTIFIED BY password 3 USING ' exadb03:1521/DEMO '; Database link created. This just makes life a bit easier as there’s no need to use the long TNS format entry (or a tnsnames.ora/LDAP alias). It might work in 11.1 too (haven’t tested) but it didn’t work on 10.2.0.4 … Update: This feature works for dblinks in 10...
|
|
Thanks so much to everyone who made the alpha a great success! I'm blown away that people were able to look past the bugs and crashes and clunky controls and somehow get a positive experience out of it! It gives me hope and motivation to press on. I got a ton of very useful feedback. Here's a quick summary of what I learned: The atmosphere and tone is cool and unique. The text-message-driven story works pretty well. Everyone immediately....
|
|
If you like CoffeeScript , you should write applications in CoffeeScript. If you prefer JavaScript, you should write applications in JavaScript. In this post I want to address the common attitude I have found among JavaScript programmers that CoffeeScript is a priori somehow wrong or inferior or a bad choice. I'll briefly recount some of the technical reasons why I like and use CoffeeScript at the end of this post, but the focus is a rejec....
|
|
Ogni giorno su Twitter segnalo i link interessanti in cui incappo mentre mi documento per il mio lavoro. Riscuotono un certo successo, quindi ho pensato di condividerne alcuni anche qui sul sito. Parte così Link Consigliati, rubrica settimanale e sperimentale. “Why are so many developers so very emotional when it comes to their favourite programming language? Considering that no language can (yet) magically translate the perfect idea in....
|
|
SoundCloud started its agile journey with Scrum and eventually moved to an approach based on Kanban (more on that in one of the next blog…
|
|
SoundCloud started its agile journey with Scrum and eventually moved to an approach based on Kanban (more on that in one of the next blog…
|
|
I’ve had a talk with the Product Owner, and he’s decided to let you guys have an extra week to finish the work for this Sprint”, my Project Manager said on Friday afternoon. The horror! The horror! My team and I did not manage to complete all the work that we’d committed to in the Sprint. In the interests of open communication, I informed my project manager that there would be a few carry-over items. The next thing I knew I was being ..
|
|
I am sitting at the Perth international airport, sniffling. I hope I’m not getting a cold. And I haven’t even gotten to the cold place yet!
|
|
Not Just Time, But Space Too! So far on this blog we’ve introduced models for computation, focused on Turing machines and given a short overview of the two most fundamental classes of problems: P and NP. While the most significant open question in the theory of computation is still whether P = NP, it turns out that there are hundreds (almost 500, in fact!) other “classes” of problems whose relationships are more or less unknown.
|
|
Not Just Time, But Space Too! So far on this blog we’ve introduced models for computation, focused on Turing machines and given a short overview of the two most fundamental classes of problems: P and NP. While the most significant open question in the theory of computation is still whether P = NP, it turns out that there are hundreds (almost 500, in fact!) other “classes” of problems whose relationships are more or less unknown.
|
|
Not Just Time, But Space Too! So far on this blog we’ve introduced models for computation, focused on Turing machines and given a short overview of the two most fundamental classes of problems: P and NP. While the most significant open question in the theory of computation is still whether P = NP, it turns out that there are hundreds (almost 500, in fact!) other “classes” of problems whose relationships are more or less unknown.
|
|
FYI - I’m leaving the country tomorrow morning and will be back on the 13th. I am going to probably be out of contact for the first 3-4 days or so. Taking a social media break - cold turkey. That means likely no tweeting, no blogging, no nothing. You can still get to me by email, but replies will probably be slow. If I don’t tweet for a few days: I am (most likely) not dead .
|
|
The last couple of weeks I have been spending improving the index based on feedback about duplicate results. When indexing source code you will find a lot of duplicate libraries and copied code all over the place. Usually when searching for something like jQuery you don’t want to see thousands of results of the same file. However when searching for method calls you do want to see results which call the method in a similar way as you may be ..
|
|
I tried to use VIMAGE for jails, can be summarized as: independant network stack, firewalling, nat, a real loopback … for your jails First I had pf in my kernel, it does not work with VIMAGE, it will kernel panic, (as module too), so remove it (I hope it will be solved soon). I used the package from DruidBSD: vimage boot, and used the following config: vimage_enable="YES" vimage_list="testjail" vimage_testjail_rootdir="/usr/jails/testjail" ..
|
|
Today I resized Gwen to work in native retina display resolution (640x960) as opposed to the old iPhone resolution (320x480). This meant resizing all of my placeholder entities and rebuilding the sample level.
|
|
Last night I had the pleasure of attending the very first HackCoMo meetup at Bambinos and thought I’d share the experience. For those of you who don’t know, HackCoMo is a weekly meetup to get together and just hack at various projects or ideas. All in the company of really cool geeks local to Columbia, MO while enjoying some beer and appetizers. First, it was pretty awesome to be exposed to what others were working on.
|
|
Tonight was extremely frustrating. Bugs. I did two main things today. It wasn’t supposed to take as long as it did.
|
|
I’ve been looking into top down perspective vs isometric projection for Gwen’s levels. It may not be to the stage of needing art yet, but deciding on the overall perspective of the game is…well… really important .
|
|
It's finally here! Alright I'm just going to dump everything here. Prepare for face melting. Windows MSI Installer (60 MB) Note: You might get a malicious file warning. It's because I can't afford a code signing signature at the moment, so the installer has not been signed. If you're NOT reading this on the shiny new website, did you know that you COULD BE? It's right here: lemmagame.com Please play the alpha and leave your c..
|
|
Today was pretty relaxed with Gwen. I focused on entities spawning from bases and started drafting out a basic level guide. After yesterday’s adjacency mind-bender and working on the path follow stuff before that I thought I’d focus on something a little less twisted today.
|