www | Codeshift.net 2011-03-02T16:07:14.552808Z tag:www.codeshift.net,2011:atom.xml tag:www.codeshift.net,2011:atom.xml/agpjb2RlLXNoaWZ0cg8LEgdHZWViYWJ5GNmqBAw Google App Engine Presentation 2011-03-02T16:07:14.552808Z <iframe src="https://docs.google.com/present/embed?id=ddhthg8s_104crcvchc5" frameborder="0" width="410" height="342"></iframe> 2011-03-02T16:04:43.644436Z tag:www.codeshift.net,2011:atom.xml/agpjb2RlLXNoaWZ0cg8LEgdHZWViYWJ5GMncAww Jinja2 Presentation for DjangoCamp Ljubljana 2010 2010-12-10T16:56:08.767473Z <iframe src="https://docs.google.com/present/embed?id=ddhthg8s_81dcspnwhb" frameborder="0" width="410" height="342"></iframe> <br /><br /> More about the event: <br /> <a href="http://djangocampljubljana.eventbrite.com/">http://djangocampljubljana.eventbrite.com/</a> 2010-12-10T16:51:52.088059Z tag:www.codeshift.net,2011:atom.xml/agpjb2RlLXNoaWZ0cg8LEgdHZWViYWJ5GMniAQw About: codeshift.net 2010-12-30T20:32:11.184032Z <ul> <li>This is a <a href="http://geebaby.codeshift.net/">Geebaby</a> website by a Slovenian guy Jure Vrščaj, currently a freelance programmer and self-proclaimed truth seeker. Also, a fan of evolution.</li> <li>Get in contact via email: <em>jure.vrscaj@gmail.com</em></li> <li><img src="http://imgur.com/jtId3s.jpg" /></li> <li>Follow his journey on <b>twitter</b>: <a href="http://twitter.com/radicalmojo">radicalmojo</a></li> <li>Flame him on <b>reddit</b>: <a href="http://www.reddit.com/user/realmojo/">realmojo</a></li> <li>Peek at his <b>delicious</b> links: <a href="http://www.delicious.com/jure_vrscaj">jure_vrscaj</a></li> <li>Pretend you are friends on <b>facebook</b>: <a href="http://www.facebook.com/stalkingmojo">stalkingmojo</a></li> <li>Dive into the source on <b>github</b>: <a href="https://github.com/jurev">jurev</a></li></ul> 2010-11-20T15:33:19.636755Z tag:www.codeshift.net,2011:atom.xml/agpjb2RlLXNoaWZ0cg8LEgdHZWViYWJ5GOmEAQw My idea for talk at #wwwh 2010-11-14T01:51:48.018671Z <div><span class="Apple-style-span" style="font-weight: normal;"><div style="font-weight: bold;"><b>AVTOR:</b><span class="Apple-style-span" style="font-weight: normal;"><b><div style="display: inline ! important;"></div></b><b>&nbsp;</b></span><span class="Apple-style-span" style="font-weight: normal;">Jure Vrščaj</span></div></span></div><div style="font-weight: bold;"><span class="Apple-style-span" style="font-weight: normal;"><br /></span></div><b>NASLOV</b>: Geebaby Knockout<div><br /></div><div><b>VSEBINA</b>:</div><div>Za razvoj aplikacij na Google App Engine obstaja veliko različnih ogrodij. Avtor bo predstavil produkt svojega dela v zadnjem mesecu, <a href="https://github.com/jurev/geebaby">Geebaby web framework</a>, ki se osredotoča na tri elemente posameznega spletnega zahtevka: Tags, Entities, Actions. Omogoča urejanje vsebine direktno preko tega kar vidiš na zaslonu, hrambo templateov v bazi, kot tudi hrambo same Python izvorne kode preko modula&nbsp;<a href="https://github.com/jurev/knockout">Knockout.</a></div> 2010-11-03T07:02:05.795918Z tag:www.codeshift.net,2011:atom.xml/agpjb2RlLXNoaWZ0cg4LEgdHZWViYWJ5GIF9DA The Cure For The LAZY PROGRAMMER 2010-11-02T15:36:18.976213Z <div> <br /> </div> <div> <h3> 1. WAKE UP </h3> </div> <div> You can sleep till noon, and be the cool lazy programmer. Or... &nbsp;you can do this: </div> <div> <br /> </div> <div> <a href="http://i.imgur.com/TfrzF.jpg"> <img src="http://i.imgur.com/TfrzFs.jpg" /> </a> </div> <div> <br /> </div> <div> A wake up calendar. If you manage to do this <b> EVERY DAY </b> for <b> 3 MONTHS, </b> &nbsp;you will grow a new HABBIT. </div> <div> <br /> </div> <div> <h3> 2. REMOVE PROCRASTINATION TOOLS </h3> </div> <div>Go ahead, open up reddit. I'm sure there's a SHITLOAD of new stuff you'd enjoy. Check your facebook... your ex is still with that DOUCHEBAG (Hey, I might be the guy, haha). Go to gmail, read those mails.</div> <div> <br /> </div> <div> OR... you can use your LEET PROGRAMMING SKILLZ and do yourself a favor. Make a script that will ban all the sites that aren't making you productive. Only allow yourself to visit reddit, facebook, gmail for 1 hour in the morning. IF YOU WAKE UP, you can procrastinate from 7:00 to 8:00, providing your machine was turned on at 7:00, so that the cronjob could trigger. </div> <div> <div> <br /> </div> <small>A friend who founded a <a href="http://ly.st/">fashion startup</a> (he wakes up at 8:00), joked that this would be an awesome productivity booster, if implemented as an application.</small> </div> <div> <br /> </div> <div> <h3> 3. CREATE A MORNING RITUAL </h3> </div> <div> You are very smart. Very intelligent. Nobody F*CKS with you mentally. There is absolutely no way you would want to practice a ritual, something which is completely out of the mind and exists only in the domain of the reptilian brain. Well, punk, think again. If you do the ritual right, it will give you focus, and energy for the rest of the day. If you spend the whole year hacking, that morning ritual will keep you sane. </div> <div><br /></div> <div> A sample ritual goes like this: </div><div>- wake up, the first thing you do, drink 1/2 liter of water (body needs it after the whole night it spent without)</div><div>- go do your stuff in the bathroom</div><div>- run for 10 minutes, lift weights for 10 or 20 minutes</div><div>- meditate (if you can)</div><div>- shower</div><div>- eat</div> <div> <h3> 4. GET TO WORK </h3> </div> <div>Do it.</div> 2010-11-02T14:29:40.411599Z tag:www.codeshift.net,2011:atom.xml/agpjb2RlLXNoaWZ0cg4LEgdHZWViYWJ5GOFdDA Doctor and a gypsy 2010-12-16T19:12:54.586841Z There were once a gypsy and a doctor. They were neighbours.<div><br /></div><div>One day, the gypsy says: "My house is worth twice as much as your house."</div><div>Doctor, surprised, asks: "Why is that so?"</div><div>And the gypsy explains: "My house is just next to a doctor's house, and your house is next to a gypsy's."</div> 2010-10-30T13:45:41.139148Z tag:www.codeshift.net,2011:atom.xml/agpjb2RlLXNoaWZ0cg4LEgdHZWViYWJ5GJFODA Flask with Werkzeug debugger on Google Appengine 2010-11-03T10:36:52.095484Z <div> <a href="http://flask.pocoo.org/">Flask</a> is a sweet little framework. It comes bundled with jinja2, werkzeug and nothing else. It works on GAE out-of-the box, but has a problem with werkzeug's awesome interactive debugger on the development server. </div> <div> <br /> </div> <div> To fix the problem, you need this patch: <a href="http://github.com/nshah/werkzeug-debugger-appengine">werkzeug-debugger-appengine</a> </div> <div> <br /> </div> <div> Put it somewhere on the path, and then use it like this:&nbsp; </div> <div> <br /> </div> <pre> &nbsp;&nbsp; &nbsp;from werkzeug_debugger_appengine import get_debugged_app &nbsp;&nbsp; &nbsp;app.debug=True &nbsp;&nbsp; &nbsp;app = get_debugged_app(app) </pre> <div> <br /> </div> <div> <br /> </div> <div> So, the whole main.py file might look like this: </div> <pre> from wsgiref.handlers import CGIHandler from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): &nbsp;&nbsp; &nbsp;#foo &nbsp;&nbsp; &nbsp;return "Hello World!" if __name__ == '__main__': &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<b>from werkzeug_debugger_appengine import get_debugged_app &nbsp;&nbsp; &nbsp;app.debug=True &nbsp;&nbsp; &nbsp;app = get_debugged_app(app)</b> &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;CGIHandler().run(app) </pre> 2010-10-26T15:30:32.299257Z tag:www.codeshift.net,2011:atom.xml/agpjb2RlLXNoaWZ0cg4LEgdHZWViYWJ5GME-DA The Way of the Lazy Blogger 2010-11-04T06:14:11.035460Z I want to blog, and I am lazy. The process should be simple, the tools should be powerful. <h3>Edit directly in browser using&nbsp;browser’s “edit-mode”</h3> Writing content for the web sucks. To make it suck less, we’ll create and update content by manipulating&nbsp;HTML&nbsp;directly in browser, using&nbsp;edit-mode. <h3>Submit new content via&nbsp;AJAX&nbsp;to the server</h3> When we’re done editing, the system submits the entire&nbsp;HTML&nbsp;to the server. The server parses the data (we’ll discuss this in the next section) and saves the new post to the database. <h3>Parsing the&nbsp;HTML&nbsp;on the server side</h3> When the server receives the content, it does some magic. Using BeautifulSoup, it parses the title, body, tags(which are saved in the html as special class attributes), and possibly other metadata. <h3>Support for images</h3> There are some options. We can always upload an image to an image hosting provider (like Photobucket, Picasa). If that takes too much time, there should be a way to automatically embed an image (either from disk or from the web). The solution that comes to mind is a special on-demand form, that lets you select an image, crop it, and let it be ... <h3>Zemanta on-demand, everywhere</h3> I'm thinking Ubiquity or just a simple script bookmarklet, have to check what's already out there. 2010-10-23T19:19:19.303547Z