|
This primer is a third look at Python, and is admittedly selective in which features we investigate (for instance, we don’t use classes, as in our second primer on random psychedelic images). We do assume some familiarity with the syntax and basic concepts of the language. For a first primer on Python, see A Dash of Python. We’ll investigate some of Python’s useful built-in types, including lists, tuples, and dictionaries, and we use them t..
|
|
Sneak Peak: http://www.wpcentral.com/sneak-peek-square-sharing-app-windows-phone [youtube http://www.youtube.com/watch?v=u37FcXQUat4&w=560&h=315 ]
|
|
So I'm working on a new design for my site and using the super-great stylus CSS preprocessor along with this great gist for simple responsive layout (again with stylus and the nib library). Well, I wanted to see which of my CSS3 media queries were in effect. Here's a simple way to do it with the :before selector. First, put some markup in your HTML near the top, like this (using jade template language . body .content header ..
|
|
JavaScript non è mai la prima scelta di un aspirante programmatore. Spesso si finisce per usarlo all’occorrenza, per giochetti AJAX o per manipolare il DOM. Google, copia & incolla, e JavaScript è servito. Prima o poi l’abbiamo fatto tutti. E’ un vero peccato perché JavaScript merita di ben altra attenzione. A spiegarlo al mondo è stato naturalmente Douglas Crockford in JavaScript: The Good Parts , un libretto di 172 intensissime pagin..
|
I recently started playing Tiny Towers (a couple weeks ago) and although I’m not an expert at the game, I found
|
|
Back in december of 2004 I started a new life from zero. I was 22 years old without any money, education or connections. I borrowed my mothers computer and started to learn HTML and internet marketing. That is now 7 years ago and each year I publish an annual report. Main highlights from 2011 My [...]
|
|
Back in december of 2004 I started a new life from zero. I was 22 years old without any money, education or connections. I borrowed my mothers computer and started to learn HTML and internet marketing. That is now 7 years ago and each year I publish an annual report. Main highlights from 2011 My [...]
|
|
Back in december of 2004 I started a new life from zero. I was 22 years old without any money, education or connections. I borrowed my mothers computer and started to learn HTML and internet marketing. That is now 7 years ago and each year I publish an annual report. Main highlights from 2011 My [...]
|
|
Back in december of 2004 I started a new life from zero. I was 22 years old without any money, education or connections. I borrowed my mothers computer and started to learn HTML and internet marketing. That is now 7 years ago and each year I publish an annual report. Main highlights from 2011 My [...]
|
|
Today we’ve added support for our new HTML5 widget to the oEmbed endpoint. Aside from a brand new user interface with lots of improvements, the HTML5 widget doesn’t require Adobe Flash anymore. That means the widget will load much faster and finally work well on most mobile platforms, including Android & iOS. And we won’t stop here. We’ll continue to improve the new widget in the coming months.
|
|
Today we’ve added support for our new HTML5 widget to the oEmbed endpoint. Aside from a brand new user interface with lots of improvements, the HTML5 widget doesn’t require Adobe Flash anymore. That means the widget will load much faster and finally work well on most mobile platforms, including Android & iOS. And we won’t stop here. We’ll continue to improve the new widget in the coming months.
|
|
Rectangles, Trapezoids, and Simpson’s I just wrapped up a semester of calculus TA duties, and I thought it would be fun to revisit the problem of integration from a numerical standpoint. In other words, the goal of this article is to figure out how fast we can approximate the definite integral of a function $ f:\mathbb{R} \to \mathbb{R}$. Intuitively, a definite integral is a segment of the area between a curve $ f$ and the $ x$-axis, where..
|
|
Rectangles, Trapezoids, and Simpson’s I just wrapped up a semester of calculus TA duties, and I thought it would be fun to revisit the problem of integration from a numerical standpoint. In other words, the goal of this article is to figure out how fast we can approximate the definite integral of a function $ f:\mathbb{R} \to \mathbb{R}$. Intuitively, a definite integral is a segment of the area between a curve $ f$ and the $ x$-axis, where..
|
|
Rectangles, Trapezoids, and Simpson’s I just wrapped up a semester of calculus TA duties, and I thought it would be fun to revisit the problem of integration from a numerical standpoint. In other words, the goal of this article is to figure out how fast we can approximate the definite integral of a function $ f:\mathbb{R} \to \mathbb{R}$. Intuitively, a definite integral is a segment of the area between a curve $ f$ and the $ x$-axis, where..
|
|
Hi all, new version 2.9 is now live on the marketplace. Thanks for everyone who helped with testing the beta. Special mentions go to: derausgewanderte (load errors) Ro (& fix, landscape view issues) Pia (crash dumps for close bug) Andrew h (picture errors) Hil Hughes (pin articles feature req) Simon H (smaller font sizes for titan) Tezza gerry Pat bjorn Who all spotted bugs/gave detailed feedback without which this release wouldn’t h..
|
|
Simple Single Pass Doubly Linked Flat Tree Building Algorithm
-
donatstudios.com
-
14 years ago
-
eng
A hierarchy is a common structure, especially for structuring pages in web development. A problem with hierarchies is they often need to be flattened to be stored in a relational database, and then expanded again after being pulled out. An Example Hierarchy Top level item Sub Item Sub Sub Item Sub Sub Sub Item Sibling of "Sub Item" Top level as well A common and simple way to store them is with a table structure similar to the fol....
|
|
Simple Single Pass Doubly Linked Flat Tree Building Algorithm
-
donatstudios.com
-
14 years ago
-
eng
A hierarchy is a common structure, especially for structuring pages in web development. A problem with hierarchies is they often need to be flattened to be stored in a relational database, and then expanded again after being pulled out. An Example Hierarchy Top level item Sub Item Sub Sub Item Sub Sub Sub Item Sibling of "Sub Item" Top level as well A common and simple way to store them is with a table structure similar to the fol....
|
|
As a fan of unit tests for bug checking and development (where applicable) I always have a doubt that even though my tests pass they might not be written correctly. This is especially true where you write the tests after development rather then following TDD. Regardless you can still stress your code by doing some mutation testing. It’s essentially a way of testing your tests. Quite a few mutation testing frameworks are out there such as ..
|
|
The MIT has created xv6: an operating system for learning purpose This works better and takes less time to create a working environnement for xv6 on Mac Os X, than the recommandations proposed on Tools used in 6.828 simply run this port install i386-elf-gcc port install qemu And change the Makefile like this: -#TOOLPREFIX = i386-jos-elf- +TOOLPREFIX = i386-elf- -#QEMU = +QEMU = /opt/local/bin/qemu-system-i386 -CC = $(TOOLPREFIX)gcc +CC = $(..
|
|
To say that node.js has enjoyed a great deal of positive publicity in the last few months would most certainly be an understatement. New node.js-related projects are popping up all over the place, and there seems to be this notion that if you aren’t using it you’re not cool enough. Over the Christmas holidays, I sat down to sort out my photo library and I wanted to make a web photo gallery to share the images with family and friends. Bein....
|
|
To say that node.js has enjoyed a great deal of positive publicity in the last few months would most certainly be an understatement. New node.js-related projects are popping up all over the place, and there seems to be this notion that if you aren’t using it you’re not cool enough. Over the Christmas holidays, I sat down to sort out my photo library and I wanted to make a web photo gallery to share the images with family and friends. Bein....
|
|
Last year was awesome. Some highlights included: Finally travelling out of WA for the first time since 2005. First being sent to Melbourne by the Panasonic Insider Crew and then attending EB Expo in Queensland with a media pass from iiNet (and with Jess!)
|
|
EDIT – This has now been resolved. All the below searches should work correctly, with the exception of XCompositeGetOverlayWindow. I am adding that to the index to be refreshed sometime in the next month or so. Well thanks to some sample searches being thrown against the codesearch index I can finally start tuning issues that have cropped up. The main issue I have currently is searches returning no results where you would expect some. So..
|
|
It’s important for programmers to continuously challenge themselves in order to avoid creative and technical stagnation. In the spirit of the new year, back in 2012, I compiled twelve month-sized resolutions to help avoid that stagnation. I’ve updated that list for 2023. Each month is an annually renewable technical or personal challenge: Go analog. Stay healthy. Embrace the uncomfortable. Automate. Learn more mathematics. Fo..
|
|
Last month we attended Music Hack Day London 2011. A special one, Music Hack Day was born in London 3 years ago and we were happy to attend a hack day again in it’s homeland. Picture For those who do not know of Music Hack Day, it’s a great weekend-long event aimed at music and sound hackers. Anyone can attend the event for free, and their goal is to conceptualize and develop innovative hacks of either software or hardware.
|
|
Last month we attended Music Hack Day London 2011. A special one, Music Hack Day was born in London 3 years ago and we were happy to attend a hack day again in it’s homeland. Picture For those who do not know of Music Hack Day, it’s a great weekend-long event aimed at music and sound hackers. Anyone can attend the event for free, and their goal is to conceptualize and develop innovative hacks of either software or hardware.
|
I don’t usually make New Year’s resolutions let alone publish them but I thought I’d go for it this year. If nothing else it’ll make me feel a bit guilty not keeping to them. 1. Get weight down to 80kg – Over the last couple of years my weight has drifted up from around 85kg … Continue reading 2012 New Year’s resolutions
|
|
And a Pinch of Python Next semester I am a lab TA for an introductory programming course, and it’s taught in Python. My Python experience has a number of gaps in it, so we’ll have the opportunity for a few more Python primers, and small exercises to go along with it. This time, we’ll be investigating the basics of objects and classes, and have some fun with image construction using the Python Imaging Library.
|
|
And a Pinch of Python Next semester I am a lab TA for an introductory programming course, and it’s taught in Python. My Python experience has a number of gaps in it, so we’ll have the opportunity for a few more Python primers, and small exercises to go along with it. This time, we’ll be investigating the basics of objects and classes, and have some fun with image construction using the Python Imaging Library.
|
|
And a Pinch of Python Next semester I am a lab TA for an introductory programming course, and it’s taught in Python. My Python experience has a number of gaps in it, so we’ll have the opportunity for a few more Python primers, and small exercises to go along with it. This time, we’ll be investigating the basics of objects and classes, and have some fun with image construction using the Python Imaging Library.
|
|
It's a great addition to the article, and it's great to have an easily portable one. Incidentally, you are not the first. Redis (an in-memory data structure server written in C) has had an indexable skiplist as part of it's available data structures for over 2 years.
|
|
Automation is good. People make or break a project. Thanks Joel . Coding the right tests is hard, but infinitely valuable. “Cutting edge development” describes the processes and principles, not the technologies. Software must be tested in a representative environment. Knowing the gaps between marketing and reality in your vendor’s software is valuable. The timing of a discussion directly influences its outcome. Metrics are useful but can b..
|
As usual, here are my predictions for what will happen in 2012. Last year I played it pretty safe and was right on
|
|
I have this horrible habit, where when I have an idea, I usually start by ordering a domain. And when I'm brainstorming, I might come up with around 30 ideas for domain names of a particular idea, which I narrow down to about 3-5. But horribly, I can't decide which one is the best (some people tell me it's because I'm a "libra"), so I end up buying all of them.
|
|
Deploying a sufficiently complicated application into a corporate environment involves navigating a sea of paperwork, getting all the appropriate “approvals” in place, co-ordinating with department managers to get time slots from their staff, and so on. Knowledge silos On Release Day all the right people from the various departments - DBAs, application server administrators, server administrators (both Windows and Unix), desktop support, ..
|
|
I have this horrible habit, where when I have an idea, I usually start by ordering a domain. And when I'm brainstorming, I might come up with around 30 ideas for domain names of a particular idea, which I narrow down to about 3-5. But horribly, I can't decide which one is the best (some people tell me it's because I'm a "libra"), so I end up buying all of them.
|
|
Started with Matt Powell, a childhood friend and hardware genius, Bison Box creates performance computers with design as a top priority. The website, bisonbox.
|
|
We’re quite eager to get to applications of algebraic topology to things like machine learning (in particular, persistent homology). Even though there’s a massive amount of theory behind it (and we do plan to cover some of the theory), a lot of the actual computations boil down to working with matrices. Of course, this means we’re in the land of linear algebra; for a refresher on the terminology, see our primers on linear algebra.
|
|
We’re quite eager to get to applications of algebraic topology to things like machine learning (in particular, persistent homology). Even though there’s a massive amount of theory behind it (and we do plan to cover some of the theory), a lot of the actual computations boil down to working with matrices. Of course, this means we’re in the land of linear algebra; for a refresher on the terminology, see our primers on linear algebra.
|
|
We’re quite eager to get to applications of algebraic topology to things like machine learning (in particular, persistent homology). Even though there’s a massive amount of theory behind it (and we do plan to cover some of the theory), a lot of the actual computations boil down to working with matrices. Of course, this means we’re in the land of linear algebra; for a refresher on the terminology, see our primers on linear algebra.
|