|
Parsing Wikipedia database dumps with C-sharp and Postgres (6 degrees of Wikipedia)
-
tomforb.es
-
14 years ago
-
eng
tl;dr C# and Postgres are pretty damn fast. View code on github Recently I began working on a little experiment after I saw that Wikipedia offers XML dumps of their entire database for people to use. I wanted to create a website where users could enter two article titles and it would compute the sho...
|
|
Copying a directory in linux while preserving permissions
-
www.mattcrampton.com
-
14 years ago
-
eng
Continuing on with my attempts to blog code and command snippets that I've found useful, Here's a trick if you need to copy a directory recursively, but retain all the permissions set on the first one. I needed this to back up a web app tree that had custom permissions set through out that I didn't want to mess up... cp -a /source_dir /destin_dir
|
|
Since the release of OS X Mountain Lion, Source engine games (like Team Fortress 2 or Garry’s Mod) haven’t worked for me at all. They always crashed as soon as the game launched. Today, I recognized that when I close gfxCardStatus or set it to automatic, those games work again. I hope that this tip can help anyone.
|
|
Since the release of OS X Mountain Lion, Source engine games (like Team Fortress 2 or Garry’s Mod) haven’t worked for me at all. They always crashed as soon as the game launched. Today, I recognized that when I close gfxCardStatus or set it to automatic, those games work again. I hope that this tip can help anyone.
|
|
Fixing position:fixed elements stuck in the middle of the page on iPhone Safari
-
www.mattcrampton.com
-
14 years ago
-
eng
Fixing position:fixed elements stuck in the middle of the page on iPhone Safari We ran into an annoying bug over at Gigwalk while building a mobile webapp running inside Phonegap. We have a toolbar at the top of all our pages which is set to position:fixed, but every once in a while it would get stuck in the middle of the page. We tried several different proposed solutions, but this one worked for us. Run the following function after the pa..
|
|
JSON-Datetime permette di decodificare i valori [cci lang=”python” theme=”default”]datetime[/cci] normalmente espressi come stringhe in un flusso JSON. E’ davvero molto semplice, e fa parte della suite strumenti open source che sto sviluppando nel contesto del più ampio progetto RESTful Web API . Del problema della decodifica delle stringhe JSON in valori datetime ho già scritto in passato . Allora proponevo una soluzione algoritmica; o..
|
|
In August, I worked with our Microsoft Student Partner (MSP) at the Kitchener campus (Mickey) to organize a 3-day Hackathon for creating Windows 8 Metro apps and games using HTML5/Javascript (technically it’s not called Metro anymore). It just took place this past weekend (Sept 7th - 9th), and was a huge undertaking for Mickey and I, but in the end it turned out amazingly well! The college was very good at coordinating the event (somewhat..
|
|
In August, I worked with our Microsoft Student Partner (MSP) at the Kitchener campus (Mickey) to organize a 3-day Hackathon for creating Windows 8 Metro apps and games using HTML5/Javascript (technically it’s not called Metro anymore). It just took place this past weekend (Sept 7th - 9th), and was a huge undertaking for Mickey and I, but in the end it turned out amazingly well! The college was very good at coordinating the event (somewhat..
|
|
JSON-Datetime permette di decodificare i valori [cci lang=”python” theme=”default”]datetime[/cci] normalmente espressi come stringhe in un flusso JSON. E’ davvero molto semplice, e fa parte della suite strumenti open source che sto sviluppando nel contesto del più ampio progetto RESTful Web API . Del problema della decodifica delle stringhe JSON in valori datetime ho già scritto in passato . Allora proponevo una soluzione algoritmica; o..
|
|
JSON-Datetime permette di decodificare i valori [cci lang=”python” theme=”default”]datetime[/cci] normalmente espressi come stringhe in un flusso JSON. E’ davvero molto semplice, e fa parte della suite strumenti open source che sto sviluppando nel contesto del più ampio progetto RESTful Web API . Del problema della decodifica delle stringhe JSON in valori datetime ho già scritto in passato . Allora proponevo una soluzione algoritmica; o..
|
|
When starting a project, or a new phase of an existing project, it is common for teams to try and capture a decent breadth of stories and prioritize and estimate them to form a backlog. From that backlog the team can then start to organize the stories to form some sort of plan and an idea of the overall size.
|
|
A few minutes ago, I’ve been reading an article about Valve releasing the new Big Picture Mode for Steam (beta). As you probably know, Valve’s porting Steam and the Source engine to Linux and there have been many assumptions about why Valve is doing this. Is it because of Windows 8 and its marketplace? Or is it just about expanding to other platforms? Now there have been many rumors about Valve working on a Steam console.
|
|
A few minutes ago, I’ve been reading an article about Valve releasing the new Big Picture Mode for Steam (beta). As you probably know, Valve’s porting Steam and the Source engine to Linux and there have been many assumptions about why Valve is doing this. Is it because of Windows 8 and its marketplace? Or is it just about expanding to other platforms? Now there have been many rumors about Valve working on a Steam console.
|
Running a for-loop over a Jinja2 dictionary At the time of this posting, iterating over dictionaries inside a Jinja template is poorly documented, especially if you need access to the jinja dictionary keys and it's something I end up doing alot. Of course running a for-loop over a jinja dictionary is as basic an activity as you're likely to do, for whatever reason it's buried in the Jinja2 documentation. I see thousands of people trying to ..
|
|
Everyone pretend this blog didn't die for six months, okay? Okay. Here's a brain-dump of random things I've learned while not blogging. Distributed programming is tough but really, really fun. gevent , Couchbase , Fabric , and pyzmq are awesome. Django's admin interface can be twisted fairly easily into a CMS for a dynamic website . Bed bugs + week-long power outage + another week with still-broken A/C = fun summer. Leaky washing ma....
|
|
Once you have set up your Raspberry Pi chances are that you want to access it from remote machine or host a little web site on it. The problem is that your provider usually gives you a dynamic IP, which changes every time you connect to the Internet. In Germany most (A|V)DSL provider reset your connection every 24h. The solution for this is a dynamic DNS (DDNS), which automatically updates the name server in the Domain Name System (DNS).
|
Just a handy reminder that you can add "arbitrary" commands to your node NPM modules without creating binaries.
|
|
Sonar is a popular platform to manage code quality. This write-up details how to set up Go to do sonar analysis and then view the report from Go. The write-up assumes that sonar maven plugin will be used to do analysis. Let us start by having a pipeline with two stages, “build” and “test”. Set up a new stage "quality". Add a new job “sonar” Add a new “Custom Command”
|
|
Today I am officially launching drzzle. drzzle is a small side project I have been working on for a couple of weeks.
|
|
Copenhagen has been the last stop of the current Create.js tour. In here we’ve been integrating VIE and Create into TYPO3 Phoenix , the next major version of this popular CMS. As usual, this collaboration has ended up in some new features in the libraries. The major one of these is more flexible collection handling. In previous Create.js versions, collection handling was pretty simplistic. Essentially you could only add a single ty....
|
|
Js13kGames entry finally submitted. Now I can think about something else, right? RIGHT?
-
liza.io
-
14 years ago
-
eng
Well, it’s done. My final confirmation was positive feedback from /r/gamedev as they were the ones who criticised the heck out of the game before (nicely and constructively; thanks Reddit!) and this time everyone there said it was actually…you know… fun and stuff. I don’t expect to actually win anything because there are already great games submitted and I can already imagine (and have seen some screenshots of) the totally mind-blowing stu..
|
|
Optimizer statistics-driven direct path read decision for full table scans (_direct_read_decision_statistics_driven)
-
tanelpoder.com
-
14 years ago
-
eng
Hello all fellow Oracle geeks and technology enthusiasts! Long time no see ;-) In the hacking session about Oracle full table scans and direct path reads I explained how the direct path read decision is not done by the optimizer, but instead during every execution, separately for every single segment (partition) scanned in the query. I also explained how the _small_table_threshold parameter and the X$KCBOQH.NUM_BUF (which keeps track..
|
|
Optimizer statistics-driven direct path read decision for full table scans (_direct_read_decision_statistics_driven)
-
tanelpoder.com
-
14 years ago
-
eng
Hello all fellow Oracle geeks and technology enthusiasts! Long time no see ;-) In the hacking session about Oracle full table scans and direct path reads I explained how the direct path read decision is not done by the optimizer, but instead during every execution, separately for every single segment (partition) scanned in the query. I also explained how the _small_table_threshold parameter and the X$KCBOQH.NUM_BUF (which keeps track..
|
|
Una de las cosas que he estado siguiendo de cerca de LinkedIn, para Chile, es lo poderoso que se está convirtiendo en redes de contacto y búsqueda de empleos. Leí por ahí alguna vez a una conocida mujer —muy amiga de un amigo mío— preguntándose si LinkedIn servía para algo, y la verdad es que he visto a varios conseguir excelentes puestos de trabajo usando esta red de contactos. Hay varios grupos dentro de LinkedIn que se dedican a esto y l..
|
|
PyBooks è un’ottima selezione di risorse gratuite su Python e dintorni. I migliori libri gratuiti su Python sono inclusi, così come alcuni validi tutorial sulle librerie e i framework più diffusi. Il progetto è curato dalle stesse persone che stanno dietro JSBooks, la raccolta di libri JavaScript di cui ho scritto qualche giorno fa . Anche in questo caso è possibile contribuire attivamente segnalando nuove interessanti risorse.
|
|
PyBooks è un’ottima selezione di risorse gratuite su Python e dintorni. I migliori libri gratuiti su Python sono inclusi, così come alcuni validi tutorial sulle librerie e i framework più diffusi. Il progetto è curato dalle stesse persone che stanno dietro JSBooks, la raccolta di libri JavaScript di cui ho scritto qualche giorno fa . Anche in questo caso è possibile contribuire attivamente segnalando nuove interessanti risorse.
|
|
PyBooks è un’ottima selezione di risorse gratuite su Python e dintorni. I migliori libri gratuiti su Python sono inclusi, così come alcuni validi tutorial sulle librerie e i framework più diffusi. Il progetto è curato dalle stesse persone che stanno dietro JSBooks, la raccolta di libri JavaScript di cui ho scritto qualche giorno fa . Anche in questo caso è possibile contribuire attivamente segnalando nuove interessanti risorse.
|
|
PyBooks è un’ottima selezione di risorse gratuite su Python e dintorni. I migliori libri gratuiti su Python sono inclusi, così come alcuni validi tutorial sulle librerie e i framework più diffusi. Il progetto è curato dalle stesse persone che stanno dietro JSBooks, la raccolta di libri JavaScript di cui ho scritto qualche giorno fa . Anche in questo caso è possibile contribuire attivamente segnalando nuove interessanti risorse.
|
|
Well said sir! Using "the source luke" has gone from obscure to impossible. We need a standard toolset that can index code and documentation.
|
|
Updated: 2016-04-14 So let's talk about managing runtimes and interpreters for projects and applications. This post comes about after I have seen a vast jungle of non-solutions and dead ends out there for managing installations of interpreters such as Python, Ruby, node.js, etc. First, let's clear the air of a bunch of nonesense you may find out there that makes this problem confusing. Never use the interpreter provided by your operatin....
|
|
Updated: 2016-04-14 So let's talk about managing runtimes and interpreters for projects and applications. This post comes about after I have seen a vast jungle of non-solutions and dead ends out there for managing installations of interpreters such as Python, Ruby, node.js, etc. First, let's clear the air of a bunch of nonesense you may find out there that makes this problem confusing. Never use the interpreter provided by your operatin....
|
|
My game for Js13kGames is finally complete. Well, complete in the sense that I’m just about ready to submit it, not in the sense that it’s actually submitted because I’m going to get you guys to be my lab rats (hopefully) and give me some feedback (especially on bugs and performance. That would be great).
|
|
I’ve been getting into arcade games pretty heavily this year, and my posts have reflected this for sure ;-) Today’s post is actually a request from John Spitz, who emailed me after reading some of my other video game posts - he wanted to know if there was a typical progression in the types of hardware used in arcade games over the years. The short answer is “yes” as you can see in the diagram I made at the top of this post.
|
|
I’ve been getting into arcade games pretty heavily this year, and my posts have reflected this for sure ;-) Today’s post is actually a request from John Spitz, who emailed me after reading some of my other video game posts - he wanted to know if there was a typical progression in the types of hardware used in arcade games over the years. The short answer is “yes” as you can see in the diagram I made at the top of this post.
|
|
Hi all, For the Windows 8 Preview, I want to say a massive thanks to everyone who has been submitting feedback, I’ve had over 30 bug reports/feature requests and am starting to work through them all now. Keep em coming as I am reading them all and working on getting them into the app as soon as possible. Updates: I’ve released update for both the Windows Phone, it needed it, and the Windows 8 Preview of BBC News Mobile today.
|
|
Transplanting/Replacing Django child instances without deleting the parent
-
tomforb.es
-
14 years ago
-
eng
Django has a very neat feature called Multi Table Inheritance which allows you to create a ‘parent’ model with common fields and a variety of ‘child’ ones with specific fields. For example:...
|
|
Transplanting/Replacing Django child instances without deleting the parent
-
tomforb.es
-
14 years ago
-
eng
Django has a very neat feature called Multi Table Inheritance which allows you to create a ‘parent’ model with common fields and a variety of ‘child’ ones with specific fields. For example:...
|
|
1 in the Continuous Delivery webinar series This talk will introduce the principles and practices of Continuous Delivery, an approach pioneered by companies like Facebook, Flickr and Thoughtworks, that aims to make it possible for an organization to deliver frequently (weekly, daily or even hourly) and confidently. It uses idea -> live (the time from idea being conceived until the feature is live) as a key metric, minimizing that metric acr..
|