Comment by Chase Seibert on Java: Looking for hack to deal with Windows file...
I ended up prototyping my own java.io.File by downloading the latest version from the JDK and branching it. I'm working on an AoP solution that would be more maintainable.
View ArticleComment by Chase Seibert on Is there a jQuery Click method?
It also does not populate HTTP Referrer.
View ArticleComment by Chase Seibert on Can I call jQuery's click() to follow an link if...
window.location works, but not not post HTTP Referrer, and breaks the back button.
View ArticleComment by Chase Seibert on Creating a unique key based on file content in...
In this case, the strength of the hashing function is immaterial. MD5 will absolutely prevent duplicates to a virtual mathematical certainty.
View ArticleComment by Chase Seibert on Fulltext search on many tables
An index isn't your database table. It's a separate denormalized copy just for fast searching.
View ArticleComment by Chase Seibert on Validate/clean a FileField on a non-model form in...
FYI - I do see the InMemoryUploadFile object in request.FILES.
View ArticleComment by Chase Seibert on Why are form field __init__ methods being called...
You are correct, but I'm still trying to understand why importing MyForm is calling the ModelChoiceField() constructor before I've actually instantiated a MyForm object. See my edit.
View ArticleComment by Chase Seibert on Why are form field __init__ methods being called...
I've been using Python for a couple of years, but this still surprised me. Probably because that would not happen in Java.
View ArticleComment by Chase Seibert on Facebook.ui method: 'apprequests' hangs only on...
Same issue as poster. Moving to port 80 fixed it for me.
View ArticleComment by Chase Seibert on Using pg_restore on dump file
That's why I suggested django smuggler, it gives you the dump file right in the browser as a file download.
View ArticleComment by Chase Seibert on Tell git to treat a set of files as "disposable"
It's just a development database, and just local development sessions.
View ArticleComment by Chase Seibert on How to replicate tee behavior in Python when...
This worked for me, though I found stdout, stderr = proc.communicate() easier to use.
View ArticleComment by Chase Seibert on To have no LaTeX margins for pictures
\newgeometry{margin=0in} works for me
View ArticleComment by Chase Seibert on Django custom management commands:...
Fixed the issue for me.
View ArticleAnswer by Chase Seibert for Is it a good practice to make an index on every...
I think the best practice here is to put a few indexes in initially, as best-guesses for what indexes will be needed. But after that, you want to actually measure which queries are slow and index...
View ArticleAnswer by Chase Seibert for Is creating elements in javascript at runtime...
Inserting DOM elements into an already rendered page is much slower than rendering those same elements from a page refresh. How much slower depends on how you do the insertions. It's also largely...
View ArticleAnswer by Chase Seibert for Jquery attr src removes one string from src but...
The following works for me. What's different about your code?<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><img src="foobar"><a href="#"...
View ArticleAnswer by Chase Seibert for os.path python module not working in heroku
Something like the following worked for me on similar Heroku/MEDIA_ROOT issue.TEMPLATE_LOADERS = ('django.template.loaders.filesystem.Loader','django.template.loaders.app_directories.Loader',)BASE_PATH...
View ArticleAnswer by Chase Seibert for Persisting session variables across login
I actually think your initial design made sense. If you want to save some session variables across the login/logout boundary, you can do something like this.from functools import wrapsclass...
View ArticleDjango-nose --with-profile getting no results ("0 function calls")
I'm trying to diagnose some slow running unit tests, but I'm not having any luck getting the profiler working with django-nose. I came up with a repo case on a brand new Django project.django-admin.py...
View Article