Re: Generate brochure pdf

2010-04-21 Thread thanos
I've been doing generating complex catalogs and books from django by using TeX or LaTex. Generating PDF from scratch is a pig. Its not much different from programming in postscript. Latex or Tex make life very easy and are very expressive. They are available on all platforms. I've been using TeX/L

Re: Working for a startup.

2010-04-22 Thread thanos
d in Python and not in legal English. Their rational is that Python is less ambigious and the English and more clean, readable and structured than XML. (http://www.sec.gov/ rules/proposed/2010/33-9117.pdf). Thanos On Apr 22, 1:40 am, "Joe Goldthwaite" wrote: > I've been

Re: Decode a JSON object?

2010-05-03 Thread thanos
Thomas Try: >>> import simplejson >>> simplejson.loads('{"totalspace":243862.672,"freespace":94053.564}') {'freespace': 94053.5638, 'totalspace': 243862.671} >>> Although cjson is a lot faster, you

Re: Python Database Framework

2010-05-14 Thread thanos
Elixir gets my vote. I now always use http://www.sqlalchemy.org/ for any db work. But Elixir is cool. I used it with http://elixir.ematia.de/apidocs07/elixir.ext.versioned.html and it saved my bacon ! On May 14, 10:51 am, Nabil Servais wrote: > Hello > Le 14 mai 2010 à 16:47, Ozgur Yılmaz a éc

Re: Python Database Framework

2010-05-14 Thread thanos
Django is great and I've writing quite a lot with it but my projects need dynamic multiple database connections. Now with 1.2 I might do things differently. But I would miss elixir.ext.versioned ! thanos On May 14, 11:07 am, Jirka Vejrazka wrote: > > Do anyone knows a Python Databas

Re: "Pro Django" book still up to date

2010-01-27 Thread thanos
It's useless. The "The definitive guide to Django" by Holovaty and Kaplan-moss is okay, but the Pro version is really just a waste of paper and time. Thanos Vassilakis On Jan 27, 11:55 am, Achim Domma wrote: > Hi, > > I'm interested in buying the "Pro Django&

Re: What's the going rate for a Django developer?

2010-01-29 Thread thanos
In new York I know a few consultants at $1100/day - and that rate is confirmed. On Jan 29, 9:16 am, Dougal Matthews wrote: > I think the answer to that is probably "it depends". > >    1. Permanent or contractor? >    2. What country? >    3. Often it even matters what city? >    4. How much expe

Re: Images, videos and thumbnails.

2010-02-12 Thread thanos
I would take a different tack. Store my videos is a service such as Vimeo and then link to their generated thumbnails. I'm doing that using django-picasa (http://pypi.python.org/pypi/django- picasa/1.2). The code might give you an idea now how do it. I'd also serve up my videos from them and save m

Re: Getting uploaded images to show

2010-02-13 Thread thanos
le.com/p/django-googledata/ ) to store my uploaded images and show them. It will even show you an thumbnail in your admin view ! Thanos On Feb 13, 5:14 am, holger wrote: > I am new to django and I am trying to get an image upload to work. > > I am using the admin interface with a Imag

Re: Need help understanding a custom upload example

2010-02-16 Thread thanos
(100K). I'm also using WebFaction and that's the strategy I'm using to handle very large images (> 100 Meg). Yours Thanos. On Feb 16, 10:07 am, Brandon Taylor wrote: > Hi Everyone, > > I'm confused about creating a custom upload handler and how it ties >

Re: what is the name of your super class?

2010-02-19 Thread thanos
anguage Reference!" Its a great read, I'm not joking and your answer is there some where under Data Model. Thanos On Feb 19, 5:51 pm, Joel Stransky wrote: > Bit of a python question here. > Say I have a class named MySuperClass and an extension of that class called > My

Re: Dev environnement, Eclipse, pydev, Windows, remote developement

2010-02-25 Thread thanos
How about running your linux in vmware or virtualbox on your windows machine. Its the right way to go. You can then develop in you production environment. BTW do you use virtualenv. It can save you a lot of pain! Thanos On Feb 25, 9:59 am, Eric Brockmann wrote: > Hi all ! > > Just be

Re: ImageField and built-in filesystem storage

2010-03-02 Thread thanos
You take a look at how I did things in http://code.google.com/p/django-googledata/ Thanos On Mar 2, 4:44 am, Xavier Ordoquy wrote: > Hi, > > I'm currently working on Django for a website on a legacy database but I'm > facing an issue on getting ImageField working with i

Re: What validation tests are applied to ImageField?

2010-03-17 Thread thanos
DJango's ImageFields uses the PIL verify to check the image. trial_image = Image.open(file) trial_image.verify() See: http://www.pythonware.com/library/pil/handbook/image.htm On Mar 15, 10:56 pm, john2095 wrote: > The documentation states about the ImageField > > "Like FileField, but validate

Re: Django performance vs others

2012-10-10 Thread thanos
For real performance I suggest taking a big breath and looking at ChicagoBoss. It's a move I've done that has saved me a lot of money on AWS. On Wed, Oct 10, 2012 at 9:07 AM, Amirouche Boubekki < amirouche.boube...@gmail.com> wrote: > 2012/10/10 Moonlight > >> I think this

Re: Slow page load

2011-11-18 Thread thanos
Why are you calling os.path.join 27636 times ? These are the questions you could be asking yourself ... On Nov 18, 10:55 am, Dre wrote: > I thought my code was faulty, but the admin interface is also very > slow. > It takes 8096 msec for a model with 1000 database rows to be opened > using the ad

Re: django templates and tex/latex

2013-03-16 Thread thanos
t http://groups.google.com/group/django-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To uns

MemoryError on insert_query

2011-07-19 Thread thanos
os: win32 db: oracle 10 django: 1.3 python: 2.7 While inserting around 750K of records I get the following error trades done 661000 in 4007.3089 trades done 662000 in 4011.9012 Traceback (most recent call last): File "manage.py", line 14, in execute_manager(settings) File "c:\

Re: MemoryError on insert_query

2011-07-19 Thread thanos
Thanks Tom settings.DEBUG was True, now False and all well Thanks again Thanos trades done 75 in 3640.7334 trades done 751000 in 3645.2171 trades done 751812 in 3649.1547 (6711, 6732, 751812) On Jul 19, 11:56 am, Tom Evans wrote: > On Tue, Jul 19, 2011 at 4:33

Re: fastapi skills

2021-02-18 Thread thanos
i konw it well but will only work remote. Thanos On Thu, Feb 18, 2021 at 12:17 PM suresh natarajan wrote: > does anyone know fastapi well ? there is an opening with a startup. > please msg > > -- > You received this message because you are subscribed to the Google Groups > &q

Re: Anyone want to take over maintaining Instant Django?

2010-07-14 Thread Thanos Vassilakis
I would be quite interested. I use instant django so might work out for me. Thanos On Jul 14, 2010, at 2:48 PM, cjl wrote: Thanks for the replies. To be clear, I'm not looking for hosting, I'm looking for someone to take it completely off my hands. This means doing whatever you

Raw query with "where-in" clause

2013-02-10 Thread Thanos Diacakis
ay to do this? The Python DB-API docs seems to be very light. Could not find anything relevant. Thanks Thanos -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Caching and Vary: Cookie header

2011-03-07 Thread Thanos Diacakis
ure out if the user is logged in or not, without tripping the Vary: Cookie header, or is there a better way of doing this altogether? BTW, it seems that it is significantly faster (15x CPU time) to cache a whole view, that to cache a fragment, so I'd like to avoid that if possible. Thank

Re: Caching and Vary: Cookie header

2011-03-07 Thread Thanos Diacakis
Doh - thanks. I guess to keep the structure simple, I can set the page up for anonymous users, fully cached and all, and then use AJAX to figure out if they are logged in and tweak my header. Thanos On Mar 7, 9:43 am, Tom Evans wrote: > On Mon, Mar 7, 2011 at 4:23 PM, Thanos Diacakis wr