This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in pydev/.project:) | |
<?xml version="1.0" encoding="UTF-8"?> | |
<projectDescription> | |
<name>pydev</name> | |
<comment></comment> | |
<projects> | |
</projects> | |
<buildSpec> | |
<buildCommand> | |
<name>org.python.pydev.PyDevBuilder</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BUILDIN_FUNC(callnpcevent) | |
{ | |
int i, j; | |
const char *event_name = script_getstr(st, 2); | |
struct event_data *event = 0; | |
struct script_retinfo *ri; | |
event = strdb_get(ev_db, event_name); | |
if (!event) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for usage: ruby timecard.rb --help | |
require 'rubygems' | |
require 'optparse' | |
# This requires the 'cyberfox-gchart' gem (0.5.4), as the standard | |
# gchart gem is woefully broken for this kind of graph. Broken to the | |
# point that it's an inherent design choice that doesn't work well for | |
# this kind of chart. I'm sure that the cyberfox-gchart gem won't |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cnt=0 | |
ZERO=0 | |
for i in {1..10} | |
do | |
if [ -f $1.out ] | |
then | |
rm $1.out | |
fi | |
cp test-data/$1/$1.in.$i $1.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -pi -e 's/\r\n/\n/g' input.file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Activate Guest account. | |
2. Install the Windows 2003 Server Resource Kit Tools from: http://go.microsoft.com/fwlink/?LinkId=4544. | |
3. Run Windows Resource Kit Tools' Command Shell. | |
4. Type: | |
> ntrights +r SeNetworkLogonRight -u Guest | |
> ntrights -r SeDenyNetworkLogonRight -u Guest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="svn" default="revision-number" basedir="."> | |
<target name="check-svn-entries"> | |
<available file=".svn/entries" property="svn.entries.present"/> | |
</target> | |
<target name="revision-number" depends="check-svn-entries" if="svn.entries.present"> | |
<loadfile srcfile=".svn/entries" property="revision"> | |
<filterchain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mysqldump -u[USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE] | grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] [DATABASE] | |
#Source: Thingy Ma Jig Blog (http://www.thingy-ma-jig.co.uk/blog/10-10-2006/mysql-drop-all-tables) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://web.archive.org/web/20091015013516/http://www.elusivesnark.com/2008/11/carolines-dice-portrait.html | |
PImage img; | |
PImage cropped_img; | |
PImage patch; | |
int _width = 640; | |
int _height = 1024; | |
int patch_w = 16; | |
int patch_h = 16; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install sun-java6-plugin | |
sudo update-alternatives --install /usr/lib/mozilla/plugins/mozilla-javaplugin.so mozilla-javaplugin.so /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so 1 |
OlderNewer