Re: CSS question

2011-08-22 Thread Cal Leeming
OP - let me know if you resolved your issue. If not, ill show you the standard way of doing it. For the record - vertical align in some usages isnt going to work very nicely cross browser/versions. On Aug 21, 2011 10:47 PM, "Joshua Russo" wrote: > I know this is a bit off topic but I know this pl

Re: FW: MySQLdb version doesn't match _mysql version

2011-08-22 Thread Cal Leeming
Aug 22, 11:18 am, Kejun He wrote: > > Did you install python-mysqldb in your mechine?? > > > > On Mon, Aug 22, 2011 at 3:45 PM, Cal Leeming [Simplicity Media Ltd] < > > > > cal.leem...@simplicitymedialtd.co.uk> wrote: > > > Hold on, i would say this is a

Django/Python remote work opportunity - immediate start

2012-01-09 Thread Cal Leeming
s to avoid duplication!) Cheers *Cal Leeming* Technical Director - Simplicity Media Ltd *P** *Please consider the environment before printing this email. The information contained in this email is confidential and is intended for the use only of the addressee. Any unauthorised dissemination or copyi

Re: Ann: DSE v.3.0.0 Beta #1

2011-06-24 Thread Cal Leeming
letting us know about this. On 24 Jun 2011 06:49, "Thomas Weholt" wrote: > > On Fri, Jun 24, 2011 at 3:54 AM, Russell Keith-Magee > wrote: > > On Fri, Jun 24, 2011 at 9:44 AM, Cal Leeming [Simplicity Media Ltd] > > wrote: > >> > >> > >

Re: Curious int/float/division/math 'gotcha' in py (discussion)

2011-06-29 Thread Cal Leeming
Thanks for explaining this Geoff. My math is somewhat basic, so it's always good to learn new things like this. On 29 Jun 2011 08:00, "Geoff Kuenning" wrote: > > > On Jun 29, 1:37 am, Tom Evans wrote: >> Damn, this was the bit I meant to comment upon - hard and fast rules >> are dangerous. Integr

Re: More than one project using the same database

2011-06-30 Thread Cal Leeming
and now i have to support and maintain that bad code for 5 years) lol. On 30 Jun 2011 16:46, "Cal Leeming [Simplicity Media Ltd]" < cal.leem...@simplicitymedialtd.co.uk> wrote: > On Thu, Jun 30, 2011 at 4:36 PM, Tom Evans wrote: > >> On Thu, Jun 30, 2011 at 4:24 PM, Cal L

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-07 Thread Cal Leeming
To be honest, there is no reason why someone cant make something which they believe will be useful, and use the django-users archive as db filler. If it doesnt catch on in the community, at least you'd learn a bunch of new stuff and get the opportunity to try out new things outside of a typical pro

Re: Inspecting objects

2011-07-12 Thread Cal Leeming
On Tue, Jul 12, 2011 at 6:25 PM, Lukich wrote: > Hi. I have just started diving into Django and this question came up > - is there a way for me to examine all the attribute values of an > object? In Rails there's such a thing as debug statement which spits > out all the details about the object

Re: Satchmo, the bloated manatee

2011-07-29 Thread Cal Leeming
On Fri, Jul 29, 2011 at 6:14 PM, Jacob Kaplan-Moss wrote: > Hi Bobby -- > > I'm quite sorry if you took my words as a threat. Such wasn't my > intent -- at all. I'm simply trying to make clear certain community > expectations. You're completely right that banning would be wildly > inappropriate, a

Re: Django for a front end designer

2011-08-04 Thread Cal Leeming
On Wed, Aug 3, 2011 at 9:15 AM, Andre Lopes wrote: > If you want to start with a PHP Framework, consider CodeIgniter. It is > the easier Framework for a starter. > I personally came from CodeIgniter. Trust me, it is a *terrible* framework (in comparison to lightweight PHP frameworks and django).

RE: Need experts to develop for you? Try Bixly

2011-03-14 Thread Cal Leeming
In regards to your original post, one thing I'd certainly like to see from this, is some example code from your developers. It doesn't need to be anything conclusive, just random snippets of code you guys have written. For a company to say they "specialise" in Django development, but to not have an

Re: Is Django suitable for this purpose?

2015-01-20 Thread Cal Leeming
On Tue, Jan 20, 2015 at 10:43 PM, Avraham Serour wrote: > I'm not sure what kind of answers you expect by asking if django is the > best tool on a django forum... > Actually, OP should expect impartial advice on suitability, as list membership does not automatically mean devout follower. > > I

Re: Django + Bamboo

2015-01-25 Thread Cal Leeming
CircleCI is also worthy of mentioning, I preferred them over Codeship due to flexibility. Cal On Fri, Jan 23, 2015 at 6:46 PM, Daniel França wrote: > I gave up Bamboo and start using codeship, 100 times easiet > > On Fri 23 Jan 2015 at 19:17 Gabriel Patiño wrote: >> >> Daniel, >> >> Did you mak

Re: Smoke tests

2015-01-25 Thread Cal Leeming
Hi Tom, Personally I'm not convinced by the concept of smoke tests in production, if you have a proper development workflow, and your build works in dev, then you should be confident that your build will work in prod. Testing URL endpoints in prod should be part of your devops testing, and kept co

Re: Smoke tests

2015-01-26 Thread Cal Leeming
ndant. > > > And yes, it is probably a buzz word :) I ignored it for a while but when I > heard about it from third different source, I started to digging into it... > > Cheers, >Tom > > UTC+1 Cal Leeming napsal(a): >> >> Hi Tom, >> >> Personally I

Re: Django + Bamboo

2015-01-26 Thread Cal Leeming
x27;t support this at that moment. > > Em Sun Jan 25 2015 at 2:27:00 PM, Cal Leeming escreveu: >> >> CircleCI is also worthy of mentioning, I preferred them over Codeship >> due to flexibility. >> >> Cal >> >> On Fri, Jan 23, 2015 at 6:46 PM, Daniel F

Re: Django + Bamboo

2015-01-26 Thread Cal Leeming
Doh, I thought bitbucket was hg only. *red face* Cal On Mon, Jan 26, 2015 at 6:08 PM, Daniel França wrote: > But it was using git, and I'm not on that project anymore anyway. > > Em Mon Jan 26 2015 at 7:06:54 PM, Cal Leeming escreveu: >> >> I'm almost tempted

Re: Looking for a way to broadcast live video streams. Is it possible with Django ?

2015-01-27 Thread Cal Leeming
This really isn't something Django can do out of the box, but if you're looking to get simple video streams integrated into your site, then perhaps consider using LiveStream embed instead? If you're looking to create your own service, then unless you are a skilled programmer with experience in mul

Re: Chess App

2015-02-16 Thread Cal Leeming
Hello, This should help; https://www.facebook.com/help/110919988996182 As for chess, you can look at; https://pypi.python.org/pypi/python-chess Also, try and use Google in future to answer questions like these, I was able to find this first time by searching for "how to make a facebook app" foll

Re: Recommended monitoring tools for Django

2015-02-22 Thread Cal Leeming
Or just use Pingdom? Unless you're doing some complex checks, I wouldn't recommend writing your own checking scripts, because then you need to worry about deploying that and ensuring its up and running etc.. Checks of checks of checks. Fun :) Cal On Sun, Feb 22, 2015 at 3:43 PM, Larry Martell wr

Re: Django App DB replicas - call for suggestions

2015-02-23 Thread Cal Leeming
>From what I can tell, you want to run a copy of the database on multiple mini devices and have replication between them? If so, this isn't really a good use case for replication, and adds several unnecessary layers of complexity. So lets look at the end goal, you want multiple clients to have read

Re: Global access to request.user

2015-03-27 Thread Cal Leeming
There is a reason that state is passed around from method to method, rather than being stored as a global, because this is the correct way to do things. However, it sounds like the architectural design of your code is flawed, as throwing around the request object indicates that you don't have modu

Re: Global access to request.user

2015-03-27 Thread Cal Leeming
eal ugly when you introduce co-routines and overall makes for much less readable code (imho). Cal [1]: http://nedbatchelder.com/blog/201008/global_django_requests.html [2]: http://en.wikipedia.org/wiki/Single-page_application On Fri, Mar 27, 2015 at 3:30 PM, Thomas Güttler wrote: > >

Re: Global access to request.user

2015-04-01 Thread Cal Leeming
On Wed, Apr 1, 2015 at 9:36 AM, Thomas Güttler wrote: > Am 27.03.2015 um 17:16 schrieb Cal Leeming: >> >> Hmm this all sounds quite dirty :/ >> >> However if you absolutely want to have a global object, you could try >> something like [1], although I don't

Re: Returning JSON object

2015-07-06 Thread Cal Leeming
Also, you need to try and use Google more to answer your own questions :) I googled for "django your object is not serializable" and that page I linked was the first result. Cal On Mon, Jul 6, 2015 at 10:28 AM, Cal Leeming wrote: > You need this; > https://docs.djangoproject.c

Re: Returning JSON object

2015-07-06 Thread Cal Leeming
You need this; https://docs.djangoproject.com/en/1.8/topics/serialization/ Cal On Mon, Jul 6, 2015 at 10:25 AM, ADEWALE ADISA wrote: > Hi guys, > I have a model called Page: > > class Page(models.Model): > category = models.ForeignKey(Category) > title = models.CharField(max_length=128)

Re: Preventing race conditions when submitting forms

2014-11-25 Thread Cal Leeming
+1 - conflict resolution is not an easy task, and really depends on your business logic/use case. It's worth mentioning that the approach django-concurrency uses may not be suitable for your use case, and in my opinion implementing this restriction on a per model basis is not the best approach, es

Re: Preventing race conditions when submitting forms

2014-11-26 Thread Cal Leeming
Sadly I have to say "good luck with that" if you're using Django, as the forms library does not support partial form data out of the box, and it's architectural design makes this difficult to achieve. This is a particularly annoying restriction of Django, especially when building REST APIs. I'm pre

Re: Multiple levels of user in django application

2014-11-29 Thread Cal Leeming
I'm not sure if this was one of your requirements, but as you raised the concern of performance I thought it was worth mentioning. Object level permissions in Django will create an additional row for every object you set a permission on, this can have a devastating impact on performance depending

Re: Web and mobile app with Django? Kivy? sth else?

2014-12-02 Thread Cal Leeming
Hi Mariusz, Short answer - Hack something together in the fastest way possible, don't worry about it being clean, tidy or even tested. Because if you do, you'll still be working on this project in 2 years time... Look at using something like PhoneGap [8], just enjoy the experience and ship it :)

Re: Web and mobile app with Django? Kivy? sth else?

2014-12-05 Thread Cal Leeming
complicated since maybe there's no > PhoneGap-type-of-framework for Python? > > > W dniu środa, 3 grudnia 2014 00:56:17 UTC użytkownik Cal Leeming napisał: >> >> Hi Mariusz, >> >> Short answer - Hack something together in the fastest way possible, don't >>

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-06 Thread Cal Leeming
Hi Artie, First, I would strongly recommend reading some of the work by David Mytton at Server Density, he and his team have been using MongoDB extensively for many years and they have shared a lot of their insight [1]. It's also worth mentioning that Postgres has support for JSON field type [2] w

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-10 Thread Cal Leeming
coleifer/peewee [2] https://news.ycombinator.com/item?id=4076834 On Wed, Dec 10, 2014 at 7:17 PM, Artie wrote: > Can you please advise why actually you hate Django ORM and what should be > considered instead of it? > > суббота, 6 декабря 2014 г., 23:18:06 UTC+2 пользователь Cal Leeming > напис

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-12 Thread Cal Leeming
nd making an appropriate choice based on your use case, making sacrifices dependant on your needs etc. [1] https://groups.google.com/forum/#!topic/django-users/pZCk4cFVcSI > Collin > > On Wednesday, December 10, 2014 3:21:07 PM UTC-5, Cal Leeming wrote: >> >> If you're using

Re: Seeking for advise on usage MySQL together with MongoDB

2014-12-16 Thread Cal Leeming
s would you look towards as more mature, well > supported, nicely designed solutions? > Which shortcomings were you fighting against, and what do you think the > project should be doing differently? > > Cheers, > > Tom > > On Friday, 12 December 2014 18:05:02 UTC, Cal Le

Re: Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-12-16 Thread Cal Leeming
This actually looks like an interesting framework, and I'd like to start off with the good points. The author (Jonas) has very kindly shared his work the community, and I really do applaud the effort he has put into this. SPAs (single page applications) are becoming much more common, and framework

Re: ANN: Django website redesign launched

2014-12-16 Thread Cal Leeming
Personally I really like it. The footer menu contrast is a little bright with the white/light green, however it's worth noting that the color/contrast experience will vary depending on what equipment your using. Typically if a site has been designed on an Apple Thunderbolt/MBP Retina display, then

Re: Devils advocate question

2014-12-16 Thread Cal Leeming
One thing to note, DigitalOcean is truly awesome but it is a no-frills service. You get an API and raw performance at dirt cheap pricing, everything else you have to handle yourself. If you don't have the necessary devops/sysadmin skills, e.g. knowledge of how to recover crashed databases, corrupt

Re: Devils advocate question

2014-12-16 Thread Cal Leeming
$6.95 a month but it's about. I do something random abs > could cost myself a bucket. > > Sayth > > On Wed, 17 Dec 2014 11:14 AM Cal Leeming wrote: > >> One thing to note, DigitalOcean is truly awesome but it is a no-frills >> service. You get an API and raw perfo

Re: ANN: Django website redesign launched

2014-12-17 Thread Cal Leeming
e problems happen. Cal On Wed, Dec 17, 2014 at 4:20 AM, Torsten Bronger < bron...@physik.rwth-aachen.de> wrote: > > Hallöchen! > > Cal Leeming writes: > > > [...] > > > > The footer menu contrast is a little bright with the white/light > > gree

Re: Devils advocate question

2014-12-17 Thread Cal Leeming
On Wed, Dec 17, 2014 at 2:53 AM, Tim Chase wrote: > > On 2014-12-17 00:14, Cal Leeming wrote: > > One thing to note, DigitalOcean is truly awesome but it is a > > no-frills service. You get an API and raw performance at dirt cheap > > pricing, everything else you have to

Re: Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-12-17 Thread Cal Leeming
wo questions depends a lot on your code base / project > requirements. > > I would love to hear more about the wonky API though if you wouldn't mind. > > Cheers > > > On Wednesday, December 17, 2014 12:23:52 AM UTC+1, Cal Leeming wrote: >> >> This actually loo

Re: Random row

2014-12-20 Thread Cal Leeming
Somewhat off-topic for django-users, this would have been better placed on StackOverflow. If I understood your question correctly, I think you need to remove the "for row in namesreader" and replace with; namesreader = csv.reader(csvfile, delimiter=' ', quotechar='|') return random.choice(row) O

Re: Random row

2014-12-20 Thread Cal Leeming
Doh sorry, hit return too quickly. return random.choice(namesreader) On Sat, Dec 20, 2014 at 9:42 PM, Cal Leeming wrote: > Somewhat off-topic for django-users, this would have been better placed on > StackOverflow. > > If I understood your question correctly, I think you need t

Re: Bristol (UK) startup seeks awesome Python/Django engineer

2015-01-03 Thread Cal Leeming
Hi all, For what it's worth, I was the lead engineer on this project and can give some assurance that the code is of decent quality, although there are some modules which could be improved. Sadly I had to move onto a different role for personal reasons, but can personally say that Gleem are a dece

Re: Django frustrations :)

2014-08-16 Thread Cal Leeming [iops.io]
If you're serious about wanting to learn more, then the best thing you can do is learn more about Python itself. Until you understand Python, you won't understand the internals of Django and it's strengths/weaknesses. Have a look at http://learnpythonthehardway.org/ - If you are adventurous, star

Re: Push like notifications app

2014-08-17 Thread Cal Leeming [iops.io]
Cal On Sun, Aug 17, 2014 at 1:07 PM, Guy Bowden wrote: > Hi, > > I'm looking for an app that will allow me to 'push' notifications/messages > to a user / users / groups via the admin system. > > > examples: > show all users a notice about a new feature > show users a notice about planned main

Re: Push like notifications app

2014-08-17 Thread Cal Leeming [iops.io]
That was strange, my email decided to send as I was typing the rest of my reply :X See in-line again. On Sun, Aug 17, 2014 at 3:53 PM, Cal Leeming [iops.io] wrote: > > > Cal > > > On Sun, Aug 17, 2014 at 1:07 PM, Guy Bowden wrote: > >> Hi, >> >> I

Re: Desperatly seeking help with ALLOWED_HOSTS

2014-08-17 Thread Cal Leeming [iops.io]
Can you please send us the traceback of the error generated? (assuming there is one) Cal On Sun, Aug 17, 2014 at 7:25 PM, Subodh Nijsure wrote: > I am totally stumped why I can't get my site to work when DEBUG=False. > > I have entered my domain name and IP address in the ALLOWED_HOSTS > > I e

Re: using historic changes from django-admin to templates?

2014-08-17 Thread Cal Leeming [iops.io]
Several projects have attempted this, though personally I don't feel any of them are the right solution; https://www.djangopackages.com/grids/g/model-audit/ Django reversion is probably your best bet, and although I don't agree with the approach, it gets the job done; https://github.com/etianen/dj

Re: Desperatly seeking help with ALLOWED_HOSTS

2014-08-17 Thread Cal Leeming [iops.io]
h > > On Sun, Aug 17, 2014 at 11:37 AM, Cal Leeming [iops.io] > wrote: > > Can you please send us the traceback of the error generated? (assuming > there > > is one) > > > > Cal > > > > > > On Sun, Aug 17, 2014 at 7:25 PM, Subodh Nijsure <

Re: Desperatly seeking help with ALLOWED_HOSTS

2014-08-17 Thread Cal Leeming [iops.io]
django.request': { > 'handlers': ['file'], > 'level': 'DEBUG', > 'propagate': True, > }, > }, > } > > I removed the {% compress %} tags from my templates for now so I can > disa

Re: Caching some application data in memcache v/s in django process itself

2014-08-19 Thread Cal Leeming [iops.io]
On Wed, Aug 20, 2014 at 12:54 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Wed, Aug 20, 2014 at 4:27 AM, Subodh Nijsure > wrote: > >> Hello, >> >> I have application that servers time-series data for 10+ units. This >> data can get big and I don't want to retrieve 5-6MB worth

Re: Caching some application data in memcache v/s in django process itself

2014-08-19 Thread Cal Leeming [iops.io]
for future, never know when it might come in handy :) Cal On Wed, Aug 20, 2014 at 1:07 AM, Cal Leeming [iops.io] wrote: > > > > On Wed, Aug 20, 2014 at 12:54 AM, Russell Keith-Magee < > russ...@keith-magee.com> wrote: > >> >> On Wed, Aug 20, 2014 at 4

Re: hosting django app

2014-08-22 Thread Cal Leeming [iops.io]
Have a look at Heroku too Alternative, your own VPS on DigitalOcean if you have enough in-house devops guys Cal On Fri, Aug 22, 2014 at 9:25 AM, ngangsia akumbo wrote: > my boss uses php to build web apps > > he is n9ot very convince that django can be very cheap in hosting as php. > > is the

Re: Decrypting Encrypted Customer Data from Django Queries Not Working, But Working with Regular DB Queries

2014-10-08 Thread Cal Leeming [iops.io]
For the record, this approach towards data security is completely wrong. Consider using FDE on your databases, rather than encrypting individual fields. Cal On Wed, Oct 8, 2014 at 11:11 PM, G Z wrote: > so I have a database of information with encrypted customer names. When I > use a plain pyt

Re: Decrypting Encrypted Customer Data from Django Queries Not Working, But Working with Regular DB Queries

2014-10-08 Thread Cal Leeming [iops.io]
ys that application level encrypting is better because its > encrypted over a link, and this is why most web apps use the salt method. I > would love to hear more about what your talking about I'm still learning. > > Also whats wrong with my code tho? > > On Wednesday, October 8

Re: Django Instant Messenger Package needed

2014-11-06 Thread Cal Leeming [iops.io]
Depends on what you are trying to do but, you might want to consider a third party product for this; http://www.iron.io/mq Building your own instant messenger system properly is hard, if you can do this directly on the client (via web sockets, HTTP push/pull, flash stream with JS IPC etc) then you

Re: Where does django store auth migrations?

2014-11-09 Thread Cal Leeming [iops.io]
Sounds like a bit of a weird edge case, I've had all sorts of problems previously when moving to custom user models from an app with existing migration data. Personally I'd say get rid of the migration data for that specific model and re-initialize, it's just not worth trying to figure out why the

Re: Using Django with Gulp.js

2014-11-13 Thread Cal Leeming [iops.io]
Personally I use a mixture of Vagrant, Docker, Gulp and makefiles to automate the entire process. You run the gulp process as a backgrounded job, and then the django runserver in the foreground.. of course, this means gulp is then not interactive.. if you want both to be inter, then you have to us

Re: Using Django with Gulp.js

2014-11-14 Thread Cal Leeming [iops.io]
ng lists and this is the email account I use to catch them all rather > than dumping them all in my main email account (I have over 1GB of email in > this account at the moment from various open source projects). I prefer to > keep my name out of Google as much as possible for privacy reason

Re: Alternative to fabric

2014-11-17 Thread Cal Leeming [iops.io]
There isn't really such a thing as a "deployment plugin", there are many aspects to deployment workflow that should be considered. It really depends on how you are intending on deploying your application, if you are dockerizing it then your CI system should be building the images and pushing to a

Re: Advice needed: Adaptive/Responsive Images in Django?

2014-11-20 Thread Cal Leeming [iops.io]
It really depends on what your end goal is. tl;dr - the fastest fix for you will probably be to use CloudFlare polish [1] Long answer: Responsive images are fine, but useless on mobile devices if your original image is not mobile optimized (due to bandwidth/speed limitations on most networks, if

Re: Cherokee for home developing

2010-10-28 Thread Cal Leeming [Simplicity Media Ltd]
his group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Cal Leeming Operational

Re: 2D map application: performance and design question

2010-11-01 Thread Cal Leeming [Simplicity Media Ltd]
> the wrong way. > > best regards, > Lars > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send emai

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]
rs" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. >

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

2010-11-02 Thread Cal Leeming [Simplicity Media Ltd]
t; -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com >

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]
ecause you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this gr

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]
you'd like to know more about the company, you can check out the following links: http://uk.linkedin.com/pub/cal-leeming/5/391/380 http://www.linkedin.com/pub/adam-lyons/11/904/85a http://www.linkedin.com/company/2456950 https://www.facebook.com/insurancezebra http://www.alphalab.org/ -- Yo

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]
have the structure in place to train people on the job, slowly introduce them into sensitive/complex systems etc. Everyone's got to start somewhere! > > anyway, the fact that there is someone who has a salary so painful not > exclude that the offer is a shit. > No need for

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]
mention that we have other openings coming up in the next few months which are purely Python/Django based - and we are also considering taking on interns this year. Cal ** ** > > *From:* django-users@googlegroups.com [mailto: > django-users@googlegroups.com] *On Behalf Of *Cal Leeming [S

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

  1   2   3   4   5   6   7   >