Skip to content

Instantly share code, notes, and snippets.

@ivanteoh
ivanteoh / index.html
Created July 11, 2011 00:19
Scale graph using D3.js
<!DOCTYPE html>
<html>
<head>
<title>Scale Graph</title>
</head>
<body>
<div id="demoContainer">
<div id="option">
<input name="updateButton" type="button" value="Update" onclick="updateData()" />
</div>
@ivanteoh
ivanteoh / index.html
Created July 11, 2011 04:41
Scale graph - snippets
<!DOCTYPE html>
<html>
<head>
<title>Scale Graph</title>
</head>
<body>
<div id="demoContainer">
<div id="option">
<input name="updateButton" type="button" value="Update"/>
</div>
@ivanteoh
ivanteoh / trackback
Created July 3, 2013 07:46
UnicodeDecodeError
Traceback (innermost last):
Module ZPublisher.Publish, line 60, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Products.PloneHotfix20110531, line 106, in _patched_bindAndExec
Module Products.PloneHotfix20130618.spamProtect, line 35, in _patched_bindAndExec
Module Products.PloneHotfix20121106.python_scripts, line 63, in _patched_bindAndExec
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
@ivanteoh
ivanteoh / sampledb.xml
Created July 8, 2013 01:10
plomino sample database for unicode error. Insert 'someone’s text' in sample_field
<plominodatabase id="sampledb">
<design>
<dbsettings version="1.16">
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription>
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription>
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments>
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex>
<IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal>
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode>
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments>
@ivanteoh
ivanteoh / test-1.xml
Created August 13, 2013 00:28
datatime widget
<plominodatabase id="test-1">
<design>
<dbsettings version="1.16">
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription>
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription>
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments>
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex>
<IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal>
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode>
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments>
@ivanteoh
ivanteoh / buildout.cfg
Last active December 23, 2015 02:29
buildout.deco buildout fail with python2.7
[buildout]
extends =
deco.cfg
initial-site.cfg
# If you want omelette, uncomment here and down there
parts +=
omelette
# add development tools that you might need to develop with
@ivanteoh
ivanteoh / buildout.cfg
Created September 15, 2013 02:27
buildout.deco fail for toolbar cfg
[buildout]
extends =
toolbar.cfg
initial-site.cfg
# If you want omelette, uncomment here and down there
parts +=
omelette
# add development tools that you might need to develop with
@ivanteoh
ivanteoh / Traceback
Created October 1, 2013 08:10
On DatabaseReplication page, 'From an XML File' is not working.
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module <string>, line 4, in manage_importFromXML
Module AccessControl.requestmethod, line 70, in _curried
Module Products.CMFPlomino.PlominoReplicationManager, line 1384, in manage_importFromXML
Module <string>, line 5, in importFromXML
Module AccessControl.requestmethod, line 70, in _curried
Module Products.CMFPlomino.PlominoReplicationManager, line 1412, in importFromXML
@ivanteoh
ivanteoh / adb.xml
Created October 8, 2013 05:10
Calender widget does not save time zone value
<plominodatabase id="adb">
<design>
<dbsettings version="1.16">
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription>
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription>
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments>
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex>
<IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal>
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode>
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments>
@ivanteoh
ivanteoh / demo.xml
Created February 3, 2014 00:05
plomino database to test dynamic picklist.
<plominodatabase id="demo">
<design>
<dbsettings version="1.18">
<AboutDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></AboutDescription>
<UsingDescription type="Products.Archetypes.Field.TextField"><![CDATA[]]></UsingDescription>
<IndexAttachments type="Products.Archetypes.Field.BooleanField">False</IndexAttachments>
<FulltextIndex type="Products.Archetypes.Field.BooleanField">True</FulltextIndex>
<IndexInPortal type="Products.Archetypes.Field.BooleanField">False</IndexInPortal>
<debugMode type="Products.Archetypes.Field.BooleanField">False</debugMode>
<CountDocuments type="Products.Archetypes.Field.BooleanField">False</CountDocuments>