Skip to content

Instantly share code, notes, and snippets.

View avlee's full-sized avatar

Xingang Li avlee

View GitHub Profile
@avlee
avlee / mapnik_python_tests_result_1.log
Last active December 17, 2015 16:49
Python tests result for mapnik v2.2.0
- mapnik path: c:\mapnik-v2.2.0\python\2.7\site-packages\mapnik\__init__.pyc
- _mapnik.so path: c:\mapnik-v2.2.0\python\2.7\site-packages\mapnik\_mapnik.pyd
- Input plugins path: c:\mapnik-v2.2.0\lib\input
- Font path: c:\mapnik-v2.2.0\lib\fonts
- Running nosetests:
Notice: skipping postgis tests (createdb/dropdb)
Doctest: python_tests.utilities.contains_word ... ok
public static Process PriorProcess()
// Returns a System.Diagnostics.Process pointing to
// a pre-existing process with the same name as the
// current one, if any; or null if the current process
// is unique.
{
Process curr = Process.GetCurrentProcess();
Process[] procs = Process.GetProcessesByName(curr.ProcessName);
foreach (Process p in procs)
{
@avlee
avlee / README
Created July 1, 2011 14:29 — forked from joelambert/README
Drop in replacements for setTimeout()/setInterval() that makes use of requestAnimationFrame() where possible for better performance
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
Instructions for installing MongoDB as a Windows Service
--------------------------------------------------------
1: run the following command as an administrator
C:\MyPath\To\MongoDB\bin\mongod.exe --install
2: Open the following registry location in regedit.exe
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MongoDB