Re: Cherokee for home developing

2010-10-28 Thread Cal Leeming [Simplicity Media Ltd]
I use Django + UWSGI + Cherokee with all my sites , with around 200k page views a day. Various teething problems, but generally stable. On Thu, Oct 28, 2010 at 7:32 PM, Max Countryman wrote: > Oh I forgot to mention! Do not use the uwsgi wizard: it's currently broken. > Expect a fix soon and re

Re: 2D map application: performance and design question

2010-11-01 Thread Cal Leeming [Simplicity Media Ltd]
Hi Lars, Unless you are doing some *really* intense Python code in your business logic, then 9 out of 10 times, the bottleneck is usually the database, especially if you are using Python. Cal On Mon, Nov 1, 2010 at 9:59 AM, Lars Ruoff wrote: > Hello, > > first of all, these are my first steps

Re: Howto crypt forms in Django?

2010-11-01 Thread Cal Leeming [Simplicity Media Ltd]
Hi Christian, Can I just also mention, that relying on encrypted forms (based on a static key from the server) is not very good practice. At the very most, you can rely on it for client side obfuscation, but don't ever rely on it for security. An SSL certificate is almost certainly the way

Re: about file uploading

2010-11-01 Thread Cal Leeming [Simplicity Media Ltd]
Here, let me google that for you.. http://www.radinks.com/upload/plus/resume.php http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=http+upload+resume Please make sure you make reasonable attempt to find the answer yourself on Google, ot

Re: Is it madness to process uploaded tars and zips completely in memory?

2010-11-02 Thread Cal Leeming [Simplicity Media Ltd]
All depends on whether; - you have enough memory - you are going to enforce the file size - you have appropriate resource limitations in place on the server - you are going to enforce the maximum number of processing requests etc etc... Personally, if all those conditions were met,

Re: A cache-busting sledge-hammer

2010-11-09 Thread Cal Leeming [Simplicity Media Ltd]
That's a pretty neat idea, originally I was having to use { now|date:"u" } to put the current epoch timestamp on the end of the urls... On 09/11/2010 10:35, Ole Laursen wrote: Hi! If you have the problem of visitors getting errors from using the old Javascripts and CSS when you roll out a rele

Re: Sqlite :memory: database for production?

2010-11-29 Thread Cal Leeming [Simplicity Media Ltd]
Hi, To be honest, if you're that worried about performance and concurrent user handling, then you wouldn't be using SQLite anyway. Please can you explain some details about what you are trying to achieve, and lets see if we can give you a better solution :) Cal On Mon, Nov 29, 2010 at 3:10 PM, S

Re: django to php

2010-11-30 Thread Cal Leeming [Simplicity Media Ltd]
Too much noise! To answer OPs question, you'd have to port the code to PHP manually. On 01/12/2010 02:18, Steve Holden wrote: On 11/30/2010 9:15 PM, Kenneth Gonsalves wrote: On Tue, 2010-11-30 at 13:53 -0500, CLIFFORD ILKAY wrote: I have a webapp created in django. Now I want to convert the e

Re: Django, Python, AJAX position

2010-11-30 Thread Cal Leeming [Simplicity Media Ltd]
1) The fact you've put the terms "my client" and "work permit" whilst using a gmail email address, that doesn't have your real name, kinda says a lot. 2) You've broadly used the term AJAX, without specifying what JS framework (if any) you wish to be used. 3) You've used and/or on HTML5, as if to

Re: signal locations

2010-12-01 Thread Cal Leeming [Simplicity Media Ltd]
Place your signals into webapp/app/signals.py Then, inside the signals, do "from webapp.app import models" Then attach the signals in a fashion which you are accustom to (see http://docs.djangoproject.com/en/dev/topics/signals/). Then, inside the __init__.py OR the models.py, do "import weba

Re: Django in production on Windows

2010-12-01 Thread Cal Leeming [Simplicity Media Ltd]
It's a shame you are not using a *nix os, because you could have then used uWSGI (http://projects.unbit.it/uwsgi/). Feature list: Current core features are * written totally in C * very fast (and simple) communication protocol for webservers integration (apache2

Re: Python (2.6) threading module or multiprocessing module?

2010-12-01 Thread Cal Leeming [Simplicity Media Ltd]
Hmm, all depends what you're trying to achieve. I personally avoid conventional threading in Python from the outset, and use Stackless instead. Have you possibly considered using Twisted (see http://twistedmatrix.com/trac/ and http://twistedmatrix.com/documents/current/core/examples/) On 01

Re: how to define choices option per model's instance

2010-12-02 Thread Cal Leeming [Simplicity Media Ltd]
Hi Alex, I think this is what you might be looking for. class Something(models.Model): def __init__(self, *args, **kwargs): if kwargs.has_key('range_marks'): _choices = kwargs.get('range_marks') del kwargs['range_marks'] else: _choices = ((

Re: Django Graphics

2010-12-02 Thread Cal Leeming [Simplicity Media Ltd]
Please define 'handle graphics'. Do you mean serving graphics media? Creating graphics on the fly? Resizing? Overlaying? Give us some clues ;) On 02/12/2010 08:14, Jagdeep Singh Malhi wrote: Can we handle graphics in Django? -- You received this message because you are subscribed to the Go

Re: Django Graphics

2010-12-02 Thread Cal Leeming [Simplicity Media Ltd]
Ah. http://lmgtfy.com/?q=django+charts+ ;) On 02/12/2010 08:22, Venkatraman S wrote: On Thu, Dec 2, 2010 at 1:44 PM, Jagdeep Singh Malhi mailto:singh.malh...@gmail.com>> wrote: Can we handle graphics in Django? referring to charts? -- You received this message because you are subscr

Re: how to define choices option per model's instance

2010-12-03 Thread Cal Leeming [Simplicity Media Ltd]
7;ve showed that definition in my first letter). Any suggestions about how I can assign choice attribute on the fly during instance creation. In future It doesn't change but my instances have to have different ranges in choices option. Best Regards, Alex On 2 December 2010 10:15, Cal Leemin

Re: Help for for loop

2010-12-09 Thread Cal Leeming [Simplicity Media Ltd]
>>> mylist = [1,2,3,4,5,6,7,8] >>> filter(lambda x: x%2, mylist) [1, 3, 5, 7] >>> This what you need? On 09/12/2010 10:34, Phani Chand wrote: i am passing though a list{1,2,3,4} but i want only the numbers with odd index in template written in html -- You received this message because you are s

Re: Help for for loop

2010-12-09 Thread Cal Leeming [Simplicity Media Ltd]
Uh, you *might* be able to use: {% for x in mylist %} {% if x % 2 %} yay: {{x}} {% else %} nay: {{x}} {% endif %} {% endfor %} On 09/12/2010 11:18, Phani Chand wrote: Can i use filter(lambda x: x%2, mylist) directly in my html page -- You received this message b

Re: Help for for loop

2010-12-09 Thread Cal Leeming [Simplicity Media Ltd]
itertools.izip(a, itertools.count()) if not i % 2 ] [2, 4, 6] That could probably be written a bit nicer.. On Thu, Dec 9, 2010 at 10:44 AM, Cal Leeming [Simplicity Media Ltd] wrote: mylist = [1,2,3,4,5,6,7,8] filter(lambda x: x%2, mylist) [1, 3, 5, 7] This what you need? On 09/12/2010 10:34

Re: Help for for loop

2010-12-09 Thread Cal Leeming [Simplicity Media Ltd]
Can't you use the % operator within if statements in templates? I was almost sure I'd done this before :| On 09/12/2010 11:27, bruno desthuilliers wrote: On 9 déc, 12:18, Phani Chand wrote: Can i use filter(lambda x: x%2, mylist) directly in my html page s/html page/template/ And no, yo

Startup seeks Python dev for large scale scraping / data mining

2012-02-02 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, If anyone is interested in the below spec, please feel free to contact me on cal.leem...@insurancezebra.com Cheers Cal InsuranceZebra, an Innovation Works, Inc. AlphaLab company seeks a Python developer to join its exciting entrepreneurial team - on a remote working basis with imm

Re: Automatically block requests from bad IP addresses

2012-02-12 Thread Cal Leeming [Simplicity Media Ltd]
That's pretty cute, we use a similar type of DDoS protection method in our webapps too, along with an abusive IP register (albeit ours isn't based on RPM - requests per minute). You might also want to consider looking at CloudFlare (free for even huge amounts of traffic), as they maintain a *huge*

Looking for paid advice on (NoSQL) Hadoop / MongoDB / Dynamo

2012-03-21 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, Currently looking at getting some expert advice relating to NoSQL solutions such as Hadoop, MongoDB, Dynamo and others. The kind of advice we're looking for is an 'overall' perspective and general discussion, rather than a step by step guide. Can pay market rates for up to 8 hours worth

[JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, Another urgent position has come up in our company, applicant needs to have some experience with using Django but must also be comfortable with PHP (our clients are a 50/50 split between PHP and Django). -- Simplicity Media Ltd are an established UK company providing bespoke IT solut

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread Cal Leeming [Simplicity Media Ltd]
Sorry, small mistake on the posting, Django should have obviously been under essential skills! Cal On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi all, > > Another urgent position has come up in our company,

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread Cal Leeming [Simplicity Media Ltd]
12, at 1:31 PM, Cal Leeming [Simplicity Media Ltd] wrote: > > > * MUST be able to work 30+ hours a week. > > > [...] > > > The position is full time, offering around $2000/month (roughly > £1200/month) for the right candidate - price/hours are negotiable. > > Jus

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread Cal Leeming [Simplicity Media Ltd]
bad language > > cheers, > El 10/04/2012, a las 22:31, Cal Leeming [Simplicity Media Ltd] escribió: > > Hi all, > > Another urgent position has come up in our company, applicant needs to > have some experience with using Django but must also be comfortable with > PHP (our cli

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-10 Thread Cal Leeming [Simplicity Media Ltd]
offer is "bad" >> > :) > > cheers, > El 10/04/2012, a las 23:18, Cal Leeming [Simplicity Media Ltd] escribió: > > > > On Tue, Apr 10, 2012 at 10:12 PM, andrea mucci wrote: > >> hi Cal >> >> Our solutions are high volume (peaking at aroun

Re: Django Book

2012-04-12 Thread Cal Leeming [Simplicity Media Ltd]
Boy, I've lost count of how many times I've had arguments about books vs documentation vs learning on your own. In short, the only way you're going to get updated books is if technically competent writers spend time writing it - but I doubt many devs would be interested in re-writing (and essentia

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-12 Thread Cal Leeming [Simplicity Media Ltd]
Further update on this - budget has changed so, we can now offer a higher rate and a part time alternative. * 1500$/month for 70 hours (20$/hour) * 2000$/month for 100 hours (20$/hour) Thanks Cal On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] < cal.l

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
le to offer you an on-site position (if this is what you wanted). On Thu, Apr 12, 2012 at 8:27 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Further update on this - budget has changed so, we can now offer a higher > rate and a part time al

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
20$/hour) >> * 2000$/month for 100 hours (20$/hour) >> >> Thanks >> >> Cal >> >> On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] < >> cal.leem...@simplicitymedialtd.co.uk> wrote: >> >>> Hi all, >>> >>&

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
However as a side note, we actually manage and maintain somewhere in the region of 40+ pay sites (including tours, members area etc), and literally thousands of 'mini SEO' sites. Cal On Fri, Apr 13, 2012 at 3:16 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
with companies in the adult industry - and we've certainly never had problems retaining clients or securing contracts as a result of that. > > > On Fri, Apr 13, 2012 at 15:16, Cal Leeming [Simplicity Media Ltd] < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> Just

Re: [JOB] Urgent - PHP/Python Developer needed

2012-04-13 Thread Cal Leeming [Simplicity Media Ltd]
adult industry and their sites content >>>> 18+ mature content. >>>> >>>> Cal >>>> >>>> >>>> On Fri, Apr 13, 2012 at 1:02 PM, Gerald Klein wrote: >>>> >>>>> Hi, I apologize I didn't get yo

Re: [JOB] Urgent - PHP/Python Developer needed

2012-05-01 Thread Cal Leeming [Simplicity Media Ltd]
gt; rate and a part time alternative. > > ** ** > > * 1500$/month for 70 hours (20$/hour) > > * 2000$/month for 100 hours (20$/hour) > > ** ** > > Thanks**** > > ** ** > > Cal > > On Tue, Apr 10, 2012 at 9:31 PM, Cal Leeming [Simplicity Media Ltd] < &

Re: [JOB] Urgent - PHP/Python Developer needed

2012-05-01 Thread Cal Leeming [Simplicity Media Ltd]
salaries, you can guarantee you're gonna be stressed as hell and on-call every weekend. Work satisfaction, opportunities/learning experience, and general life style means so much more - it just took me a few years to realise :) > > On Tue, May 1, 2012 at 7:25 AM, Cal Leeming [Simplicity Med

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Cal Leeming [Simplicity Media Ltd]
Hi, Just my two cents worth on this (albeit slightly off topic) - it's not all about technical ability or the industry you are working in. Most clients are willing to pay that extra premium for contractors who are able to manage expectations and go above and beyond. I've seen many great develope

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-03 Thread Cal Leeming [Simplicity Media Ltd]
travelling, covering free quotations etc. > > -- > Daniel Sokolowski > Web Engineer > Danols Web Engineeringhttp://webdesign.danols.com/ > Office: 613-817-6833 > Fax: 613-817-4553 > Toll Free: 1-855-5DANOLS > Kingston, ON K7L 1H3, Canada > > > > > On 03/05/2012

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-05 Thread Cal Leeming [Simplicity Media Ltd]
Good point - I'd still rather be a programming than a plumber though! On Sat, May 5, 2012 at 6:02 PM, Andy McKay wrote: > > A plumber is mostly manual labor which will take a toll on the body over > the > > years. > > Programming too takes its toll on the body over time (make sure you > have a n

Re: Django - Worldwide Developer Rates - Hourly Income - location and project duration specific

2012-05-05 Thread Cal Leeming [Simplicity Media Ltd]
Programmer* On Sat, May 5, 2012 at 8:22 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Good point - I'd still rather be a programming than a plumber though! > > > On Sat, May 5, 2012 at 6:02 PM, Andy McKay wrote: > >> &g

Re: where do you host your django app and how to you deploy it?!

2012-05-18 Thread Cal Leeming [Simplicity Media Ltd]
I know this is an old thread, but I feel obliged to comment. Some of our legacy clients used DreamHost for their django/python apps.. Then dreamhost decided their VPS's needed a software and hardware upgrade, which resulted in lost data, 4-ish days of downtime, numerous server config inconsistenci

Django hosting on heroku - any experiences?

2012-06-11 Thread Cal Leeming [Simplicity Media Ltd]
Been a while since my last post! Read through some of the archives, but couldn't seem to find many user reviews on Heroku from django-users list. Could anyone hosting their Django app with Heroku care to post their experiences? Looking for info like: * Downtime experiences (how long, how criti

Re: Django hosting on heroku - any experiences?

2012-06-11 Thread Cal Leeming [Simplicity Media Ltd]
Leeming [Simplicity Media Ltd] wrote: > >> Been a while since my last post! >> >> Read through some of the archives, but couldn't seem to find many user >> reviews on Heroku from django-users list. >> > > You might want to read this: <http://justcram

Re: Django hosting on heroku - any experiences?

2012-06-11 Thread Cal Leeming [Simplicity Media Ltd]
Thanks for this very detailed report, Rolo. It seems to be in-line with the article written up by David Cramer (in prev reply), and also other posts that I've read on the topic. One of the things that put me off from reading their site, is that Heroku's key selling point was "Never touch the comm

Re: Django hosting on heroku - any experiences?

2012-06-11 Thread Cal Leeming [Simplicity Media Ltd]
That's a good point - I think maybe the issue is just with PaaS in general, not specifically Heroku. On Mon, Jun 11, 2012 at 10:56 PM, Javier Guerra Giraldez wrote: > On Mon, Jun 11, 2012 at 4:42 PM, Cal Leeming [Simplicity Media Ltd] > wrote: > > There's a huge diff

Re: Django hosting on heroku - any experiences?

2012-06-11 Thread Cal Leeming [Simplicity Media Ltd]
If so, that would make a lot of sense :) On Mon, Jun 11, 2012 at 11:00 PM, Javier Guerra Giraldez wrote: > On Mon, Jun 11, 2012 at 4:56 PM, Cal Leeming [Simplicity Media Ltd] > wrote: > > As such - I get the impression that any developer who knows how to > maintain > &g

Stackato PaaS - any experiences?

2012-06-13 Thread Cal Leeming [Simplicity Media Ltd]
Okay, this time I've been reviewing the Stackato PaaS. http://www.activestate.com/stackato Has anyone else here had experiences using this in production to host Django apps? The demo video they made was cute, the management interface seems to be spot on (from the screenshots at least), and the co

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread Cal Leeming [Simplicity Media Ltd]
Just to echo on advice already given, your indenting is a real mess here. You can't get away with bad indenting like you can in other languages, because Python relies on indenting for the flow of code. (i.e. you use intends rather than brackets). You are also using mixed indents (some are 4 space

Our thanks/acknowledgments for Django

2012-06-20 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, Last week we released a new site into the wild - sadly I haven't had much time to contribute to tickets, or even support on the mailing list - so felt it was about time I started showing our appreciation for Django and its community. Therefore we created an acknowledgements section on the

Re: Our thanks/acknowledgments for Django

2012-06-20 Thread Cal Leeming [Simplicity Media Ltd]
note would you be willing to share total > turn around time / hour spent for the site you launched ? And would you > classify the project as small, medium, or large. > > > > On 20/06/2012 17:14, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi all, > > Last week we releas

Re: Installing Django @ Shared Host

2012-06-21 Thread Cal Leeming [Simplicity Media Ltd]
Unless they provide some sort of SaaS service where they take care of deployment for you, then you need shell access. There are plenty of Django friendly shared hosts if you are not comfortable deploying your own stack on a dedi/colo/IaaS cloud - see previous threads on this topic. Personal advice

Re: New to Django, need help starting

2012-06-21 Thread Cal Leeming [Simplicity Media Ltd]
+1 Personally, I'd really recommend having virtualbox/vmware instance running the same stack as your production environment (i.e. the env where you are going to deploy code to) so you can ensure no horrible sys lib bugs kick in (lxml is a pain for this!!). But if this is too much to start with, th

Re: strftime

2012-06-21 Thread Cal Leeming [Simplicity Media Ltd]
Hi Armagan, I would suggest investigating what the 'date' variable contains.. You can do this by doing: print type(date) print dir(date) print date I'd also recommend going back through your code and seeing how the date object is instantiated. For future reference, you do really need to provide

Re: Monitoring memory usage of an external component

2012-06-21 Thread Cal Leeming [Simplicity Media Ltd]
Depending on the web application server you use, this can usually restrict the memory limit for you - uWSGI is a fine example of this. You can also use the 'poor mans' memory checks by checking the resident memory usage (not sure what that func is in Java), and checking if its over a certain limit

Re: Monitoring cache usage?

2012-06-21 Thread Cal Leeming [Simplicity Media Ltd]
A quick search on Google found the following: https://github.com/dlrust/python-memcached-stats https://developers.google.com/appengine/docs/python/memcache/clientclass http://code.google.com/p/memcache-top/ http://www.mysqlperformanceblog.com/2008/11/26/a-quick-way-to-get-memcached-status/ If yo

Re: Monitoring cache usage?

2012-06-21 Thread Cal Leeming [Simplicity Media Ltd]
Oh also - I'm not entire sure it's possible to break down hits based on key prefix, at least easily. You might be able to analyse each one of the data slabs/pages/chunks, see which keys are inside, and relate that back to the number of hits against it. The following article goes into more detail:

Re: I need something to help with.

2012-06-21 Thread Cal Leeming [Simplicity Media Ltd]
Hi Oladipupo, It's always great to see people wanting to get involved. There are plenty of 'easy pickings' tickets on the Django tickets queue.. or if you don't have enough time/energy to do code contributions, then you could assist users with problems on the mailing list, or contribute to discus

Re: Import error

2012-06-22 Thread Cal Leeming [Simplicity Media Ltd]
Hi Emily, Here is a really good article (written by the very people who contribute to this list) on how to ask questions on the mailing list: https://code.djangoproject.com/wiki/UsingTheMailingList It tells you what you can do to try and resolve the issue yourself, and what sort of information y

Re: Send message to SMS Gateway

2012-06-23 Thread Cal Leeming [Simplicity Media Ltd]
>From the way your email is worded, I think you are looking at doing this the wrong way. Look at using something like BulkSMS - or an SMS USB device. Don't start trying to figure out how SMPP and SS7 works, you'll only give yourself a head ache and it absolutely wouldn't be relevant to you. Cal

Re: Race and Locking? was Re: Duplicate rows with same key in DB?

2012-06-23 Thread Cal Leeming [Simplicity Media Ltd]
Also - get_or_create doesn't always prevent a race condition if you have high traffic.. depending on your code+stack. I already did a post about this a while back: http://markmail.org/message/j3qr2y26i5uk7c3z On Sat, Jun 23, 2012 at 8:57 AM, Melvyn Sopacua wrote: > On 23-6-2012 9:52, Melvyn Sop

Re: Send message to SMS Gateway

2012-06-23 Thread Cal Leeming [Simplicity Media Ltd]
Just fyi, if you were working directly with an upstream provider (such as T-Mobile or O2), you would most likely need to be processing literally millions of messages a month.. you'd probably also need to meet minimum commit terms (such as throughput and contract duration). I suspect anything short

Re: 403 error when POSTing to a view with csrf protection

2012-06-24 Thread Cal Leeming [Simplicity Media Ltd]
Hi Mike, Please provide some code examples, a traceback snippet and a bit more info. Here are some great tips on how to do this: https://code.djangoproject.com/wiki/UsingTheMailingList Without this information, others on the list may find it much more difficult to help you. Cal On Sun, Jun 24,

Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-06-30 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, As some of you know, I did a live webcast last year (July 2011) on our LLG project, which explained how we overcome some of the problems associated with large data processing. After reviewing the video, I found that the sound quality was very poor, the slides weren't very well structured,

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread Cal Leeming [Simplicity Media Ltd]
most votes wins. Given our awful experiences with conferencing software, we'll probably be using livestream, and a backup stream from one of our own servers - both have a maximum capacity of 50 users at 720p. Cal On Sat, Jun 30, 2012 at 4:10 PM, Cal Leeming [Simplicity Media

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-02 Thread Cal Leeming [Simplicity Media Ltd]
gt; using livestream, and a backup stream from one of our own servers - both >> have a maximum capacity of 50 users at 720p. >> >> Cal >> >> On Sat, Jun 30, 2012 at 4:10 PM, Cal Leeming [Simplicity Media Ltd] >> wrote: >> >> Hi all, >>

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-02 Thread Cal Leeming [Simplicity Media Ltd]
gle+ Hangouts? > > On Mon, Jul 2, 2012 at 1:09 AM, Cal Leeming [Simplicity Media Ltd] > wrote: > > Wow - glad to see there's people interested in this! > > > > Here is the schedule, could everyone please select which days/times they > are > > available (enter mo

Re: Fw: PLEASE HELP

2012-07-02 Thread Cal Leeming [Simplicity Media Ltd]
Emily, Please refrain from sending chain/spam emails to the list, this isn't acceptable. Also - on a site note, you really shouldn't be giving out your entire mailbox by cc'ing everyone, this isn't very good practice at all. Cal -- You received this message because you are subscribed to the Go

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-02 Thread Cal Leeming [Simplicity Media Ltd]
Just in case anyone missed the URL, you can book your slot here: http://www.doodle.com/8ptehyqr6uezhtsy Voting open until 14th July. Cal On Mon, Jul 2, 2012 at 9:59 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Curious, I'll have to te

get_or_create() race condition MySQL - second fix!

2012-07-03 Thread Cal Leeming [Simplicity Media Ltd]
Hi guys, A while ago we released a monkey patch which resolved the get_or_create() race condition when used in combination with READ COMMITED transaction isolation. However, this caused issues with legacy applications, so we have released a new fix that works without READ COMMITED. The code snip

dateutil relativedelta compare - strange results

2012-07-03 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, Just spent about an hour figuring out what the hell was going on with dateutil comparisons, and thought I'd share with the group. Essentially, when trying to compare relativedelta to each other, we were getting very strange results. In the end, it was due to the fact 'calendar' needed to

Re: Highlighting Active Navigation Link - correct approach?

2012-07-06 Thread Cal Leeming [Simplicity Media Ltd]
I've actually just done a ticket about this.. https://code.djangoproject.com/ticket/18584 Personally, I think the approach mentioned in the ticket is a far saner way of doing things. Cal On Fri, Jul 6, 2012 at 12:55 PM, Dhiraj Thakur wrote: > > > On Monday, January 9, 2012 11:57:52 AM UTC+5:3

Re: Highlighting Active Navigation Link - correct approach?

2012-07-06 Thread Cal Leeming [Simplicity Media Ltd]
d. The other option is to see if the core devs would accept a patch which allows you to specify a 'urlname group' on the url() method in urls.py.. Cal On Fri, Jul 6, 2012 at 3:20 PM, Melvyn Sopacua wrote: > On 6-7-2012 16:01, Cal Leeming [Simplicity Media Ltd] wrote: > > I

Re: {% spaceless %} abuse (?)

2012-07-06 Thread Cal Leeming [Simplicity Media Ltd]
-1 on removing spaceless. On pages where you have lots of rows in a loop, the amount of whitespace you end up with can massively increase page loading times. Sure, you could use whitespace stripping middleware I guess, but some people prefer not to have that. I agree that spaceless does make cod

Re: Render time

2012-07-06 Thread Cal Leeming [Simplicity Media Ltd]
Just FYI - New Relic does a fantastic job of browser speed graphing - but it is an expensive product. On Fri, Jul 6, 2012 at 6:14 AM, Larry Martell wrote: > On Thu, Jul 5, 2012 at 10:48 PM, Andy McKay wrote: > >> I'm trying to use the Navigation Timing package to measure how long a > >> page tak

Re: {% spaceless %} abuse (?)

2012-07-06 Thread Cal Leeming [Simplicity Media Ltd]
sers (such as Chrome) handled it fine, but IE8/IE9 lagged pretty badly. Feel free to test for yourself, but this was certainly our experiences from it. Cal On Fri, Jul 6, 2012 at 3:36 PM, Russell Keith-Magee wrote: > On Fri, Jul 6, 2012 at 10:29 PM, Cal Leeming [Simplicity Media Ltd] >

Re: {% spaceless %} abuse (?)

2012-07-06 Thread Cal Leeming [Simplicity Media Ltd]
Oh, I should also mention that the last time I tested this was approx 6 months ago, so this may not be an issue any more. The other issue is it can cause 'View Source' to freeze up (or in firefox, just not display anything). On Fri, Jul 6, 2012 at 5:26 PM, Cal Leeming [Simplicity

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-12 Thread Cal Leeming [Simplicity Media Ltd]
Just a reminder that the poll will be closing in two days time, if you haven't already booked, please do so now! On Tue, Jul 3, 2012 at 12:35 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Just in case anyone missed the URL, you can book

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-13 Thread Cal Leeming [Simplicity Media Ltd]
Leeming [Simplicity Media Ltd] > wrote: > > Just a reminder that the poll will be closing in two days time, if you > > haven't already booked, please do so now! > > I thought somebody asked this but can't find it now... is there any > recording of the first one available

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-16 Thread Cal Leeming [Simplicity Media Ltd]
Hi guys, This has now been confirmed for the following date: - Thursday 9th August 2012 - 7:00 PM (UTC) Webcast details will be sent 48 hours before. Cheers Cal On Sun, Jul 1, 2012 at 4:09 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Wow

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-22 Thread Cal Leeming [Simplicity Media Ltd]
Could you clarify what you mean by "twich" and "auto VOD writing"..? Google failed me :/ On Sat, Jul 21, 2012 at 7:02 AM, b1- wrote: > +1 >> >> > And use some services like twich with auto VOD writing. > I think it will be intresting not only for us > > -- > You received this message because you

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-23 Thread Cal Leeming [Simplicity Media Ltd]
available after the webcast? > > > Thanks. > > > On Saturday, June 30, 2012 7:10:27 PM UTC+4, Cal Leeming [Simplicity Media > Ltd] wrote: >> >> Hi all, >> >> As some of you know, I did a live webcast last year (July 2011) on our >> LLG project, which

Re: MySQL total overheat (somewhat complex database)

2012-07-30 Thread Cal Leeming [Simplicity Media Ltd]
Could you provide us with the models.py for this table? Just the model definitions will suffice. Can you also provide the snippet of Python code which is generating this SQL Cal On Sat, Jul 28, 2012 at 7:44 PM, lubos wrote: > Hello, > > I have a quite sophisticated database with frequently int

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Cal Leeming [Simplicity Media Ltd]
Ah jeez... he was a good guy too, always keen to help others - really sorry to hear this news. Another harsh reminder on just how short and precious our time in this life really is :/ Cal On Fri, Aug 3, 2012 at 4:12 PM, Anoop Thomas Mathew wrote: > With my heartfelt condolence, I'd like to info

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-08-06 Thread Cal Leeming [Simplicity Media Ltd]
llation on this - we'll get there in the end! Cal On Mon, Jul 16, 2012 at 12:23 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi guys, > > This has now been confirmed for the following date: > > - Thursday 9th August 2012 - 7:00

Re: object.create speed, creating 3 objects takes 1 sec in sqlite

2012-08-07 Thread Cal Leeming [Simplicity Media Ltd]
Hi Anton, In short, attempting to do any sort of bulk import "out of the box" with the ORM, will always end with bad performance. No matter how fast your disks are (SSDs with 4000 iops in RAID 1 for example), you'll still only get around 0.1s per insert via the ORM on a single thread, and if you

Re: object.create speed, creating 3 objects takes 1 sec in sqlite

2012-08-08 Thread Cal Leeming [Simplicity Media Ltd]
1/11/cassandra-hadoopy-performance-tunning.html > > Ivo Marcelo Leonardi Zaniolo > +55 71 9302 3400 > imarcel...@gmail.com > www.informatizzare.com.br > imarcelolz.blogspot.com.br > Em 08/08/2012 01:18, "Cal Leeming [Simplicity Media Ltd]" < > cal.leem...@simplicitymed

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Cal Leeming [Simplicity Media Ltd]
Surya, Your original question does not really explain what problem you are having. >From what I can tell, you have read tutorials on the web that explain how to set up Django on OpenShift, but you have not explained what is wrong with them, nor what specific problem you are having. You'll need t

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Cal Leeming [Simplicity Media Ltd]
ort 80 > > On Sunday, August 12, 2012 10:43:46 PM UTC+5:30, Cal Leeming [Simplicity > Media Ltd] wrote: > >> Surya, >> >> Your original question does not really explain what problem you are >> having. >> >> From what I can tell, you have read tutori

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Cal Leeming [Simplicity Media Ltd]
t; maintenance downtime or capacity problems. Please try again later. >> ---------- >> Apache/2.2.15 (Red Hat) Server at appName-userID.rhcloud.com Port 80 >> >> On Sunday, August 12, 2012 10:43:46 PM UTC+5:30, Cal Leeming [Simplicity >> Media Ltd] wrote:

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Cal Leeming [Simplicity Media Ltd]
rds. > > > On Sun, Aug 12, 2012 at 2:10 PM, Cal Leeming [Simplicity Media Ltd] < > cal.leem...@simplicitymedialtd.co.uk> wrote: > >> You can't blindly follow a deployment tutorial and expect to not have to >> get your hands dirty - especially when it's not

Re: 回复: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-13 Thread Cal Leeming [Simplicity Media Ltd]
/var/lib/stickshift/688174c010/app-root/runtime/repo/.openshift/action_hooks/build: line 7: /var/lib/stickshift/680e98b8570/pingmeebldr/runtime//bin/pip: No such file or directory Tbh, I think you need to speak with OpenShift On Mon, Aug 13, 2012 at 12:37 PM, surya wrote: > Hi Pengfei, > >

Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-10 Thread Cal Leeming [Simplicity Media Ltd]
Hi guys, We have just released a new module that allows for lightweight/easy relational event logging and auditing field changes. Our use case was to satisfy four main requirements; * Log events directly from models, whilst keeping a relational link to the row that triggered the event * Keep tra

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
ng on the change > audit code > Sure thing, if you think of any additional changes please feel free to fire them over (it'd be great to see others using this in the wild!) > > Kurt Pruhs > Utah State University > Programing & Design Team > > > > > On Mond

Re: Iphone applications via django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
You can create a server side API for the app - but the actual interface is done using the methods mentioned by Mario previously. Cal On Tue, Sep 11, 2012 at 11:09 AM, Mario Gudelj wrote: > Nope. You do objective c or html and js with something like phonegap > On Sep 11, 2012 6:59 PM, "Sait Maraş

Re: tree.io installation with django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Looks like an incompatible version of Django perhaps (first glance). Alternatively, just patch it yourself based on the error given: @@@ django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting. @@@ See https://docs.djangoproject.co

Re: Plot points from a kml file in django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
http://stackoverflow.com/questions/833/how-to-process-an-uploaded-kml-file-in-geodjango http://iwoom.blogspot.co.uk/2010/11/python-django-reading-kml-points.html http://code.google.com/p/simplekml/ http://code.google.com/p/pylibkml/ http://pypi.python.org/pypi/pykml Come on man, use Google :)

Re: Django newbie with issues

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Ouch, 1.1 is very old indeed. I have seen compatibility issues before when running django/py apps on a mac, but can't say I've ever ran into this before. Could you upgrade to the latest (1.4.1) and see if you still experience the same issue? Cal On Tue, Sep 11, 2012 at 11:03 AM, Morrti wrote:

Re: Marketplace for Django apps

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
-1 It's not the cost that I'm concerned with, it's the community motivation that worries me. If we have a paid app store, we will not only end up with every tom/dick/harry submitting crappy apps (just like every other store), but it also changes the motivation of the community to be commercially

Re: Plot points from a kml file in django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Need a bit more info than that for anyone to help you. Please tell us exactly what information you have, what you are trying to achieve, and where you are getting stuck. Cal On Tue, Sep 11, 2012 at 1:49 PM, Coulson Thabo Kgathi wrote: > I googled, went through the geodjango tutorial, now my pro

  1   2   3   4   5   6   7   >