julienphalip.com
Julien Phalip — Posts tagged testing
http://julienphalip.com/tagged/testing
Testing time-based views in Django. There are situations where real time is important in the behaviour of some views. For example, one could write an anti-spam mechanism to prevent robots or ill-intended users to post a form too often and too rapidly. In this article I’ll present a strategy for testing such views. Nothing complicated here. Just a simple model to record the user and the time at which the message is posted. Then, we will use a setting to determine the interval of time a user should wait be...
daao.org.au
Steven Kalmar :: biography at :: at Design and Art Australia Online
https://www.daao.org.au/bio/steven-stephan-kalmar/biography
Design and Art Australia Online. Database and e-research tool for art and design researchers. Type the characters shown. I accept the terms and conditions. How to share your images. B 1 January 1909. Also known as Stephan Kalmar, Stephen Kalmar. Designer (Architect / Interior Architect / Landscape Architect). B 1 January 1909 Hungary. Excerpt from Anne Watson, “Kafka and Kalmar: two European furniture designers in post-war Sydney.”. Furniture History Society (Australasia) Journal. Building), a fashionabl...
between0and1.org
Mobile | Between 0 and 1
https://between0and1.org/category/mobile
Between 0 and 1. Creative thoughts about the digital bits. Agency Open House Sydney. October 24, 2014. Register for our free event now: http:/ www.eventbrite.com/e/web-directions-agency-open-house-reactive-tickets-4776690209. Next Wednesday afternoon, Sydney will see its first Agency Open House. You can visit and have a beer with people at places like Reactive. Or The Interaction Consortium. Check out this Agency Open House microsite. To maybe make a cameo appearance. Just saying…. Has been AustraliaR...
julienphalip.com
A script to quickly access the source of installed...
http://julienphalip.com/post/55092823910/a-script-to-quickly-access-the-source-of-installed
A script to quickly access the source of installed python packages. It is sometimes useful to access the source of an external Python package in your current virtualenv, for example to inspect its code or to place breakpoints while debugging. Then you may use the. Command. However, this doesn’t help much for packages that have been installed in “editable” mode (that is, typically in the. Myenv)$ goto TAB admin tools curses encodings feincmstools lib2to3 paramiko ratelimit appconf dateutil example gargoyl...
mgnsw.org.au
Picking an Archibald winner :: MGNSW
http://mgnsw.org.au/articles/picking-archibald-winner
Museums and Galleries of NSW. Picking an Archibald winner. Saturday, 11 July 2015. 2014 finalist, Dapeng Liu. Portrait of Yin Cao on blue-and-green landscape. Image courtesy of Art Gallery of NSW. Archibald season is back for its 94th innings. This year, 47 finalists have made it to the walls of the Art Gallery of NSW, and the hotly anticipated announcement is due on Friday. So, which artist will take out this year’s Archibald Prize? David Gulpilil, two worlds. But what do the real art critics reckon?
julienphalip.com
Julien Phalip
http://julienphalip.com/page/2
Adding search to a Django site in a snap. Search is a feature that is – or at least, should be – present on most sites containing dynamic or large content. There are a few projects around to tackle that. Here’s a non-exhaustive list: djangosearch. With a dash), django-sphinx. Those search engines are great, but they seem like overkill if you just need a simple search feature for your CMS or blog. What the above does is generate a. Django.db.models.Q. Some random words "with quotes " and spaces'. Def sear...
julienphalip.com
Julien Phalip — Posts tagged vagrant
http://julienphalip.com/tagged/vagrant
Fast shutdown of development Vagrant/VirtualBox virtual machines. One great advantage of using Vagrant. Vagrant already offers a pretty simple command to turn off a VM:. With this command, Vagrant attempts a graceful shutdown of the VM (e.g. by issuing a. So, to make life a little bit easier, I wrote a simple Python script (full code provided in the gist below) that directly issues a. Parameter you may also run this script just once to instantly shut down all running VMs. Chmod u x poweroff.py. Poweroff&...
julienphalip.com
Julien Phalip — Posts tagged django
http://julienphalip.com/tagged/django
Adding search to a Django site in a snap. Search is a feature that is – or at least, should be – present on most sites containing dynamic or large content. There are a few projects around to tackle that. Here’s a non-exhaustive list: djangosearch. With a dash), django-sphinx. Those search engines are great, but they seem like overkill if you just need a simple search feature for your CMS or blog. What the above does is generate a. Django.db.models.Q. Some random words "with quotes " and spaces'. Def sear...
SOCIAL ENGAGEMENT