Skip to content

Instantly share code, notes, and snippets.

View KariTrace's full-sized avatar

Kari Trace KariTrace

View GitHub Profile
@KariTrace
KariTrace / overviewer crashing
Created July 21, 2011 13:53
overviewer crashing
Env: Win x64 2k8 as a VM
4Gig RAM,
OV version:
Minecraft-Overviewer
Git version: 6aab6718577b2728f2601056b3913e2736afbf49
py2exe version build on Mon Jun 20 07:20:36 2011
Build machine: EM64T Family 6 Model 23 Stepping 10, GenuineIntel Windows-2003Server-5.2.3790-SP2
@KariTrace
KariTrace / gist:1098606
Created July 22, 2011 00:57
overviewer crash
Problem signature:
Problem Event Name: APPCRASH
Application Name: overviewer.exe
Application Version: 0.0.0.0
Application Timestamp: 491801a4
Fault Module Name: overviewer_core.c_overviewer.pyd
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4e25d675
Exception Code: c0000005
Exception Offset: 0000000000005183
@KariTrace
KariTrace / Overviewer stuck 1
Created December 13, 2011 15:42
Overviewer sticking. Possible PIO issue?
C:\Overviewer_beta>overviewer.exe --web-assets-path=web_assets_NewWorld --settings=settings_NewWorld.py "worlds\NewWorld" "maps\NewWorld"
2011-12-13 09:49:52 Welcome to Minecraft Overviewer!
2011-12-13 09:49:55 Scanning regions
2011-12-13 09:49:57 Scanning chunks
2011-12-13 09:49:57 Rendering the following tilesets: normal
2011-12-13 09:49:57 Scanning chunks and determining tiles to update for each rendermode requested.
2011-12-13 09:49:57 Doing 1 scan in 1 worker process
2011-12-13 09:50:11 Scan finished. 26092 total tiles need to be rendered at the highest level
2011-12-13 09:50:14
2011-12-13 09:50:14 Rendering highest zoom level of tiles now.
@KariTrace
KariTrace / renderStats.json
Created December 13, 2011 21:26
Some Overviewer Rending data collected...
GeneralData:
All renders are --forcerender
2.4GHz, 2Gb RAM, WinXP SP2
Start time is the time the 1st 0/X (0.0%) tiles completed time stamp.
Smoothing option adds approx 30% more time per render.
Each render checked for consistancy after render to ensure completness.
All time numbers rounded to closes hole.
*Granted: the nether is much more complex than the end.*
***
@KariTrace
KariTrace / v1-basic
Created December 16, 2011 19:38
Basic Overviewer batch file for Windows.
@ECHO ON
::xcopy the world to a working dir
CMD /C start /wait xcopy "--WORLD FOLDER HERE--" "worlds\world" /E /C /I /F /H /R /Y /Z
::'cause overviewer does not havemulti world support yet. Have to copy region out of DIM1 & DIM-1 for the nether and the end. But for reg worlds leave this commented out
::CMD /C start /wait xcopy "worlds\world\DIM-1" "worlds\world" /E /C /I /F /H /R /Y /Z
::If you have the biom tinter uncomment this
::CMD /C start /wait java -jar "BiomeExtractor.jar" -nogui "worlds\world"
@KariTrace
KariTrace / gist:3701904
Created September 11, 2012 20:46
Work in progress: Sanitize multiple phone fields in variable tables. I.E.: phone_work, fax_phone, etc.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Phone Number sanitization form</title>
<?PHP
class baseClass
{
/**
* @Comment: Object Global properties
@KariTrace
KariTrace / gist:3709179
Created September 12, 2012 19:10
Works locally (win), remotely says "undefined method mysqli_result::fetch_all()" (CentOS 6)
...
echo("<PRE>");
print_r( $conn );// prints out mysqli Object
echo("</PRE>");
//create SQL query
$stmt = "SELECT column_name FROM information_schema.columns WHERE table_name = '". $tableName ."' ORDER BY ordinal_position";
$query = $conn->query($stmt);
//execute query
@KariTrace
KariTrace / gist:3813322
Created October 1, 2012 17:50
phpMyAdmin returns way more than real_query / use_result
class CurrentAccountsClass
{
//class properties
private $mysqliConn;
/**
*@Param object $dbConn [required] Database connection object and set to a private class var.
*/
function __construct( $dbConn )
{
@KariTrace
KariTrace / wtf - three.js - initial testing
Created November 6, 2012 22:20
three.js - basic setup
<!DOCTYPE html>
<html lang="en">
<head>
<title>wtf - three.js test 1 - basic controls</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
margin: 0px;
overflow: hidden;
$task->sub_task_id: stdClass Object
(
[0] => stdClass Object
(
[reports_to_id] => 1088
[task_id] => 1087
[task_name] => Task 1-1
[task_project_id] => 5146
[task_developer_id] => 30
[task_start_date] => 2013-02-19