Oskar Gewalli's blog articles

0
comment
on 5/2/2010 2:43 AM
Finished upgrading an old site to use dojo and codeignite. In order to simplify things I added the RTE editor in order to simplify the code. There is no need to add logic related to the content on the page so html-content is preferable. excerpt from the content/editor.js: dojo.require("dijit.Editor"); dojo.require("dijit.form.TextBox"); dojo.require("dijit._editor.plugins.FontChoice"); dojo.require("dijit._editor.plugins.LinkDialog"); dojo.addOnLoad(function(){ dijit.byId('bodyeditor').setV[...]
>> Read the full article
.
0
comment
on 4/5/2010 6:51 AM
Ever since I heard of the NoRM driver for MongoDB I had to try my hands on it. You can find it here:NoRM , mongodb The first thing is setting up the server. I dropped the binaries into C:\MongoDb<br> Next thing I created two batch files. To start the db: start.bat C:\MongoDb\bin\mongod.exe –dbpath C:\MongoDb\data –port 27000 –logpath C:\MongoDb\log\mongodb.log –logappend The other to access the mongo shell: shell.bat C:\MongoDb\bin\mongo.exe –port 27000 Next thing is creating a simple asp.net MVC app th[...]
>> Read the full article
.
0
comment
on 4/5/2010 6:51 AM
Ever since I heard of the NoRM driver for MongoDB I had to try my hands on it. You can find it here: NoRM , mongodb The first thing is setting up the server. I dropped the binaries into C:\\MongoDb\\ Next thing I created two batch files. To start the db: start.bat C:\\MongoDb\\bin\\mongod.exe --dbpath C:\\MongoDb\\data --port 27000 --logpath C:\\MongoDb\\log\\mongodb.log --logappend The other to access the mongo shell: shell.bat C:\MongoDb\bin\mongo.exe –port 27000 Next thing is creating a simple a[...]
>> Read the full article
.
0
comment
on 1/2/2010 3:23 PM
I’m using an iphone, but the calculator is somewhat limited. I want something a bit more like the calculator that I used in school. Perhaps one approach is to use a simple page: <script type=”text/javascript”> var m = Math; var doeval = function(){ var cmd = document.getElementById(“commands”).value; document.getElementById(“history”).value+=”“+cmd+” : “+ eval(cmd) +”\n”; }; </script> <h2>Eval</h2> <p><label for=”history”>History:</label></p> <p><textarea id=”history”></textarea></p> <p><textarea value=”” [...]
>> Read the full article
.
0
comment
on 1/2/2010 3:23 PM
I’m using an iphone, but the calculator is somewhat limited. I want something a bit more like the calculator that I used in school. Perhaps one approach is to use a simple page: <script type=”text/javascript”> var m = Math; var doeval = function(){ var cmd = document.getElementById(“commands”).value; document.getElementById(“history”).value+=”“+cmd+” : “+ eval(cmd) +”\n”; }; </script> <h2>Eval</h2> <p><label for=”history”>History:</label></p> <p><textarea id=”history”></textarea></p> <p><textarea value=”” [...]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper