|
Good python software developers tend to use distutils and include a setup.py with their code. The problem I often encounter is finding out which prefix your software has been installed in from within the python code. This might be necessary if you want to interact with some data that you’ve installed into: $prefix/share/projectname/ Here are the various steps: 1) Distutils : NAME = 'someproject' distutils . core . setup( ....
|
|
Good python software developers tend to use distutils and include a setup.py with their code. The problem I often encounter is finding out which prefix your software has been installed in from within the python code. This might be necessary if you want to interact with some data that you’ve installed into: $prefix/share/projectname/ Here are the various steps: 1) Distutils : NAME = 'someproject' distutils . core . setup( ....
|
|
Sqlplus is my second home: Part 6 – Colorizing sqlplus and terminal output
-
tanelpoder.com
-
13 years ago
-
eng
Jagjeet Singh mentioned that he has built a V2 of his cool SQL Dashboard sqlplus-based monitoring script, which now also shows a nice colored ASH graph output. Yes, right inside sqlplus! This reminded me that I demoed color output in sqlplus when I delivered the Hotsos Symposium training day a few years ago, when introducing the MOATS tool the first time. I never got to colorize it as I had hoped to though… as MOATS was more of a fu..
|
|
Sqlplus is my second home: Part 6 – Colorizing sqlplus and terminal output
-
tanelpoder.com
-
13 years ago
-
eng
Jagjeet Singh mentioned that he has built a V2 of his cool SQL Dashboard sqlplus-based monitoring script, which now also shows a nice colored ASH graph output. Yes, right inside sqlplus! This reminded me that I demoed color output in sqlplus when I delivered the Hotsos Symposium training day a few years ago, when introducing the MOATS tool the first time. I never got to colorize it as I had hoped to though… as MOATS was more of a fu..
|
|
We’re making some changes to how we manage our App Gallery and wanted to take some time to explain them to you, our developer community. The…
|
|
We’re making some changes to how we manage our App Gallery and wanted to take some time to explain them to you, our developer community. The…
|
|
This post comes in preparation for a post on decision trees (a specific type of tree used for classification in machine learning). While most mathematicians and programmers are familiar with trees, we have yet to discuss them on this blog. For completeness, we’ll give a brief overview of the terminology and constructions associated with trees, and describe a few common algorithms on trees. We will assume the reader has read our first primer..
|
|
This post comes in preparation for a post on decision trees (a specific type of tree used for classification in machine learning). While most mathematicians and programmers are familiar with trees, we have yet to discuss them on this blog. For completeness, we’ll give a brief overview of the terminology and constructions associated with trees, and describe a few common algorithms on trees. We will assume the reader has read our first primer..
|
|
This post comes in preparation for a post on decision trees (a specific type of tree used for classification in machine learning). While most mathematicians and programmers are familiar with trees, we have yet to discuss them on this blog. For completeness, we’ll give a brief overview of the terminology and constructions associated with trees, and describe a few common algorithms on trees. We will assume the reader has read our first primer..
|
|
Here's an extremely cut-down demo! No tutorial, no story, no explanation, just showing off new moves , new enemies , and the new weapon . Download it here for free . Please let me know what you think! Super-Awesome Change List Totally new block dissolve effects and sounds. Preeeettty A new move that builds a platform of blocks and jumps you to the end of it. The kick is gone; instead you can now roll at any time, which not on....
|
|
Fixing "Viewport argument value" error in webkit's console
-
www.mattcrampton.com
-
13 years ago
-
eng
Fixing "Viewport argument value" error in webkit's console I've been doing a lot of web development for mobile devices lately, and while I've been using chrome's developer tools, I keep getting annoying error messages in the console like this... Viewport argument value "1;" for key "initial-scale" was truncated to its numeric prefix. The culprit here is my viewport meta tag. Mine looked like this... So long and thanks for all the fish.
-
liza.io
-
13 years ago
-
eng
No seriously, Perth had some extremely tasty fish. I am at the airport, and my plane leaves just under an hour. First I fly to Doha, Qatar and then on to Stockholm, Sweden from there. Sweden will be my fourth country of residence - I’ve gone from Ukraine, to the US, to Australia, and now back to Europe. Four countries in 24 years doesn’t sound like much, but I think it’s awesome that I’ve gotten to see so many different places as a kid.
|
|
I’ve always been a big fan of Ubisoft games - I remember when Splinter Cell was released for the Xbox - I spent every waking minute of my spare time playing it. I loved the graphics, shading, storyline, stealth gameplay (quite frustrating at times) - everything. In fact, I love the whole Splinter Cell series. Best yet, this series is developed almost entirely at the Ubisoft Toronto studio right now.
|
|
I’ve always been a big fan of Ubisoft games - I remember when Splinter Cell was released for the Xbox - I spent every waking minute of my spare time playing it. I loved the graphics, shading, storyline, stealth gameplay (quite frustrating at times) - everything. In fact, I love the whole Splinter Cell series. Best yet, this series is developed almost entirely at the Ubisoft Toronto studio right now.
|
|
Parsing Wikipedia database dumps with C-sharp and Postgres (6 degrees of Wikipedia)
-
tomforb.es
-
13 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...
|
|
Parsing Wikipedia database dumps with C-sharp and Postgres (6 degrees of Wikipedia)
-
tomforb.es
-
13 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
-
13 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
-
13 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..
|
|
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..
|
|
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.
|
|
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
-
13 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
-
13 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
-
13 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..
|
|
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....
|
|
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).
|