Lively Kernel canvas
console.log('koo koo ka choo');
Importer.prototype.loadWorldContentsOriginal = Importer.prototype.loadWorldContents;
Importer.prototype.loadWorldContents = function(doc) {
console.log('about to throw intentional error');
throw new Error('This error is intentionally thrown to defer Importer.loadWorldContents (from Main.js) until after external scripts have finished loading.');
};
console.log('about to load external scripts');
Loader.loadJs('http://www.philmaker.com/lively/philmaker/wiki/launcher.js', function() {
console.log('launcher script has loaded');
new philmaker.lively.Launcher();
}, false);
var worldInitializer = new philmaker.playground.WorldInitializer();
worldInitializer.initializePostscript();
var world = WorldMorph.current();
var morph = philmaker.foundation.Utility.getSubmorphByName(world, 'sticky-to-mark');
if (morph) {
philmaker.playground.Marker.mark(morph, new philmaker.foundation.Insets(-20, -10, 30, 20));
}
PasteUpMorph.prototype.onMouseDown = PasteUpMorph.prototype.onMouseDown.wrap(function(proceed, event) {
var result = proceed(event);
try {
var markers = philmaker.foundation.Utility.getSubmorphsByClass(world, philmaker.playground.Marker);
for (var i = 0; i < markers.length; i++) {
markers[i].remove();
}
} catch (e) {
console.warn('Removing markers failed.');
}
return result;
});
{"counter":28,"entries":[{"id":2,"name":"Color Yellow","context":"philmaker.playground.ScrollableStickyNote","source":"if (false) {\n\tvar color = Color.hsb(59, .36, 1.0);\n\tthis.setFill(color);\n\tthis.setBorderColor(color.mixedWith(Color.black, 0.85));\n\tthis.setTextColor(color.mixedWith(Color.black, 0.4));\r} else {\r\tthis.setFill(Color.hsb(59, .36, 1.0));\n\tthis.setBorderColor(Color.rgb(255, 240, 146));\n\tthis.setTextColor(Color.hsb(29, 1.0, 0.5));\n}\n\n\n\n\n"},{"id":3,"name":"Change to Rose Image (Loads Slowly)","context":"philmaker.playground.ImageMorph","source":"this.image.loadImage('http://farm4.static.flickr.com/3228/2601103409_9b2817c6bf_o.png');"},{"id":4,"name":"Change to Dog Image","context":"philmaker.playground.ImageMorph","source":"this.image.loadImage('http://russian.wunderground.com/data/wximagenew/t/thib/61.jpg');"},{"id":5,"name":"Change to Any Image","context":"philmaker.playground.ImageMorph","source":"console.log('this.getType(): ' + this.getType());\n\nvar self = this;\nphilmaker.playground.PromptPanel.prompt({\n\tfields : {\n\t\timageUrl : {\n\t\t\tlabel : 'Image URL',\n\t\t\tvalue : 'http://www.marocga.com/albums/userpics/normal_dolphin11.jpg'\n\t\t},\n\t},\n\tcallback : function(fields) {\n\t\tself.image.loadImage(fields.imageUrl.value);\n\t},\n\tabove : null\n});"},{"id":7,"name":"Change to Dolphin Image","context":"philmaker.playground.ImageMorph","source":"this.image.loadImage('http://www.marocga.com/albums/userpics/normal_dolphin11.jpg');"},{"id":8,"name":"Color Green","context":"philmaker.playground.ScrollableStickyNote","source":"var color = Color.hsb(145, .36, 1.0);\nthis.setFill(color);\nthis.setBorderColor(color.mixedWith(Color.black, 0.9));\nthis.setTextColor(color.mixedWith(Color.black, 0.4));\r\n\n"},{"id":9,"name":"Color Random","context":"philmaker.playground.ScrollableStickyNote","source":"var color = Color.random();\nthis.setFill(color);\nthis.setBorderColor(color.mixedWith(Color.black, 0.85));\nif (true) {\n\tthis.setTextColor(color.mixedWith(Color.black, 0.4));\n}\n\n\n\n"},{"id":10,"name":"Color Any Color","context":"philmaker.playground.ScrollableStickyNote","source":"var self = this;\nphilmaker.playground.PromptPanel.prompt({\n\tfields : {\n\t\tcolor : {\n\t\t\tlabel : 'Fill Color',\n\t\t\tvalue : 'Color.hsb(145, .36, 1.0)'\n\t\t}\n\t},\n\tcallback : function(fields) {\n\t\tvar color = null;\n\t\teval('color = ' + fields.color.value);\n\t\tself.setFill(color);\n\t\tself.setBorderColor(color.mixedWith(Color.black, 0.9));\n\t\tself.setTextColor(color.mixedWith(Color.black, 0.4));\n\t}\n});\n"},{"id":11,"name":"Restore Default Colors","context":"philmaker.playground.ScrollableStickyNote","source":"this.setFill(Color.hsb(59, .36, 1.0));\rthis.setBorderColor(Color.rgb(255, 240, 146));\rthis.setTextColor(Color.hsb(29, 1.0, 0.5));\r\n"},{"id":12,"name":"Change Entry Date","context":"philmaker.playground.BlogEntry","source":"var self = this;\nphilmaker.playground.PromptPanel.prompt({\n\tfields : {\n\t\tdate : {\n\t\t\tlabel : 'Date',\n\t\t\tvalue : new String(new Date())\n\t\t}\n\t},\n\tcallback : function(fields) {\n\t\tvar date = Date.parse(fields.date.value);\n\t\tvar date = new Date(date);\n\t\tconsole.log('date: ' + date);\n\t\tself.setPostDate(date);\n\t}\n});"},{"id":13,"name":"Arrange Records by Rating","context":"WorldMorph","source":"var records = philmaker.playground.RecordAssistant.findAllRecords();\rrecords.sort(function(record1, record2) {\r\tvar rating1 = philmaker.foundation.Utility.getSubmorphByClass(record1, philmaker.foundation.RatingMorph).value;\r\tvar rating2 = philmaker.foundation.Utility.getSubmorphByClass(record2, philmaker.foundation.RatingMorph).value;\r\tif (rating1 > rating2) return -1;\r\tif (rating1 < rating2) return 1;\r\tif (rating1 == rating2) return 0;\r});\rvar position = records[0].getPosition();\rrecords.forEach(function(record) {\r\tposition.x = Math.min(position.x, record.getPosition().x);\r\tposition.y = Math.min(position.y, record.getPosition().y);\r});\rrecords.forEach(function(record) {\r\tvar title = philmaker.foundation.Utility.getSubmorphByName(record, 'title').textString;\r\trecord.setPosition(pt(position.x, position.y));\r\tposition.y = position.y + record.getExtent().y + 4;\r});\r"},{"id":14,"name":"Arrange Records by Completed","context":"WorldMorph","source":"var getStatusCode = function(record) {\r\tvar tags = philmaker.foundation.Utility.getSubmorphsByClass(record, philmaker.playground.TagMorph);\r\tfor (var i = 0; i < tags.length; i++) {\r\t\tvar value = tags[i].getValue();\r\t\tif (value == 'Complete') {\r\t\t\treturn 1;\r\t\t} else if (value == 'Incomplete') {\r\t\t\treturn 2;\r\t\t}\r\t}\r\treturn 0;\r};\rvar records = philmaker.playground.RecordAssistant.findAllRecords();\rrecords.sort(function(record1, record2) {\r\tvar status1 = getStatusCode(record1);\r\tvar status2 = getStatusCode(record2);\r\tif (status1 > status2) return -1;\r\tif (status1 < status2) return 1;\r\tif (status1 == status2) return 0;\r});\rvar position = records[0].getPosition();\rrecords.forEach(function(record) {\r\tposition.x = Math.min(position.x, record.getPosition().x);\r\tposition.y = Math.min(position.y, record.getPosition().y);\r});\rrecords.forEach(function(record) {\r\tvar title = philmaker.foundation.Utility.getSubmorphByName(record, 'title').textString;\r\trecord.setPosition(pt(position.x, position.y));\r\tposition.y = position.y + record.getExtent().y + 4;\r});\r"},{"id":15,"name":"Change Image","context":"philmaker.playground.BlogEntry","source":"var self = this;\nphilmaker.playground.PromptPanel.prompt({\n\tfields : {\n\t\timageUrl : {\n\t\t\tlabel : 'Image URL',\n\t\t\tvalue : 'http://www.marocga.com/albums/userpics/normal_dolphin11.jpg'\n\t\t},\n\t},\n\tcallback : function(fields) {\n\t\tself.setImageUrl(fields.imageUrl.value);\n\t},\n\tabove : null\n});"},{"id":16,"name":"Add Tag","context":"philmaker.playground.BlogEntry","source":"var self = this;\nphilmaker.playground.PromptPanel.prompt({\n\tfields : {\n\t\ttag : {\n\t\t\tlabel : 'Tag',\n\t\t\tvalue : 'Untitled'\n\t\t}\n\t},\n\tcallback : function(fields) {\n\t\tself.addTag(fields.tag.value);\n\t}\n});"},{"id":17,"name":"Modify World Extent (Experimental)","context":"WorldMorph","source":"console.log('hello');\rphilmaker.playground.PromptPanel.prompt({\r\tfields : {\r\t\tx : {\r\t\t\tvalue : ''\r\t\t},\r\t\ty : {\r\t\t\tvalue : '2000'\r\t\t}\r\t},\r\tcallback : function(fields) {\r\t\tvar x = undefined;\r\t\tif (! (fields.x.value == '')) {\r\t\t\tx = parseInt(fields.x.value);\r\t\t}\r\t\tvar y = undefined;\r\t\tif (! (fields.y.value == '')) {\r\t\t\ty = parseInt(fields.y.value);\r\t\t}\r\t\tphilmaker.foundation.Utility.modifyWorldExtent(x, y);\r\t}\r});"},{"id":18,"name":"Find Images of Dogs","context":"WorldMorph","source":"philmaker.foundation.Utility.clearImages();\rphilmaker.foundation.Utility.findImages('dogs');\r"},{"id":19,"name":"Make Toolbox Array","context":"WorldMorph","source":"philmaker.playground.PromptPanel.prompt({\n\tfields : {\n\t\tx : {\n\t\t\tvalue : 2\n\t\t},\n\t\ty : {\n\t\t\tvalue : 5\n\t\t},\n\t\tgap : {\n\t\t\tvalue : 10\r\t\t}\n\t},\n\tcallback : function(fields) {\n\t\tphilmaker.foundation.Utility.makeToolboxArray({\n\t\t\tx : parseInt(fields.x.value),\n\t\t\ty : parseInt(fields.y.value),\n\t\t\tspacing : parseInt(fields.gap.value)\n\t\t});\n\t}\n});"},{"id":21,"name":"Make Record Array","context":"WorldMorph","source":"\rvar specs = [{\r\tkind : 'Task',\r\ttitle : 'Take out the Trash',\r\trating : 8,\r\ttags : ['Chores', 'Incomplete']\r}, {\r\tkind : 'Task',\r\ttitle : 'Feed the Dog',\r\trating : 10,\r\ttags : ['Chores', 'Complete']\r}, {\r\tkind : 'Task',\r\ttitle : 'Water the Plants',\r\trating : 4,\r\ttags : ['Chores', 'Incomplete']\r}, {\r\tkind : 'Task',\r\ttitle : 'Fix the Car',\r\trating : 9,\r\ttags : ['Errands', 'Incomplete']\r}, {\r\tkind : 'Task',\r\ttitle : 'Buy More RAM',\r\trating : 2,\r\ttags : ['Errands', 'Complete']\r}, {\r\tkind : 'Task',\r\ttitle : 'Get a Haircut',\r\trating : 6,\r\ttags : ['Errands', 'Incomplete']\r}, {\r\tkind : 'Contact',\r\ttitle : 'Bullwinkle Moose',\r\trating : 1,\r\ttags : ['Fictional'],\r\tfields : [{\r\t\tname : 'address',\r\t\tvalue : 'Frostbite Falls, Minnesota'\r\t}, {\r\t\tname : 'phone',\r\t\tvalue : '(218) 555-1212'\r\t}]\r}];\r\rphilmaker.foundation.Utility.makeRecordArray({\r\tspecs : specs,\r\tspacing : 5\r});\r"},{"id":22,"name":"Find Images of Elmo","context":"WorldMorph","source":"philmaker.foundation.Utility.clearImages();\nphilmaker.foundation.Utility.findImages('Elmo');\n"},{"id":23,"name":"Find Images of Pizza","context":"WorldMorph","source":"philmaker.foundation.Utility.clearImages();\nphilmaker.foundation.Utility.findImages('pizza');\n"},{"id":24,"name":"Clear Images","context":"WorldMorph","source":"philmaker.foundation.Utility.clearImages();\r"},{"id":25,"name":"Find Any Images","context":"WorldMorph","source":"philmaker.playground.PromptPanel.prompt({\n\tfields : {\n\t\tquery : {\n\t\t\tlabel : 'Query',\n\t\t\tvalue : 'dogs'\n\t\t}\n\t},\n\tcallback : function(fields) {\n\t\tphilmaker.foundation.Utility.clearImages();\n\t\tphilmaker.foundation.Utility.findImages(fields.query.value);\n\t}\n});"},{"id":28,"name":"Untitled Manipulator","context":"TextMorph","source":"this.setBorderColor(Color.hsb(0, 0.0, 0.9));\nthis.setTextColor(Color.hsb(0, 0.0, 0.4));\nthis.focusHaloBorderWidth = 0;"}]}
null
Evangelism&Recruitment
20
24
true
null
23
null
0
null
ElevatorPitchCoreMessageWikipediaDraftFeaturesAdvantagesBenefits
14
44
false
null
0
44
null
null
Notactingofficially-justtryingtogetfewerlurkers.Concern:whichiscurrentlythebestsolutionforWindowsusers?ChromeorSafari?Initiallytrytopostinplaceswherethecontentcanbere-edited.Ifpostingtoanylistskeepitveryshortwithalinktoaneditablepageinthewiki.*Wikipediaentry(onlyanon-publisheddraft-feelfreetoenhance)*linkfromhttp://en.wikipedia.org/wiki/Category:JavaScript_libraries*http://en.wikipedia.org/wiki/Sun_Lively*http://en.wikipedia.org/wiki/Sun_Labs_Lively*http://en.wikipedia.org/wiki/Lively_(Sun_Labs)*http://en.wikipedia.org/wiki/Lively_(Sun)*Ajaxian(anothernewsentry)*ContributeNews*LeavethisoneforLivelyteam-ifdoanythingwiththisneedstoindividualworkownsite.*LivelyatKenai*KenaiisanopensourcecommunityfromSun*aprojectentryforLivelywascreated(April7,2009)-willingtohanditoveratanytime*needtoaddimage*svg.org*posted(April6,2009)*http://svg.org/newuser*http://svg.org/submit*SVGisonlyoneimplementationforLiveybutthiswouldbeaprettygoodplacetoinformpotentialusers.*dmoz.org:(entryexists)*http://www.dmoz.org/Computers/Programming/Languages/JavaScript/Runtime_Environments/*willneedlicenseupdate*removereferenceto"likeAppJet"(wha?)*GoogleDirectory(entryexists)*http://www.google.com/Top/Computers/Programming/Languages/JavaScript/Runtime_Environments/?il=1*willneedlicenseupdate*removereferenceto"likeAppJet"(wha?)*SunMarketing*Issue:manylurkersmayhaverulesappliedtoarchivethemailinglist.Howinappropriatewoulditbetodoaonetimedirectmailing?*Ifthecontentsofthispageeverbecomeinappropriateforpublicconsumption,feelfreetotakeitdownbutpleaseletmeknow.(philip)*Feelfreetocontributetothispage.
14
55
true
0
56
null
66
null
null
1239146823950
null
1
NaN
null
1239146823
null