Quantcast
Channel: Ramblings on startups, NYC, advertising and hacking (mostly Python)
Browsing all 14 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Combine 2 Django Querysets from Different Models

If you’ve ever tried to concatenating two or more querysets from different models (i.e. combined = queryset1 | queryset2), you’ve hit this lovely error: Cannot combine queries on two different base...

View Article



Image may be NSFW.
Clik here to view.

Resize Windows with Ease on OS X

Spectacle is a fantastic free OS X application that gives you window control with simple, customizable keyboard shortcuts.Filed under: Tech Tagged: OS X, Spectacle, Utilities

View Article

Image may be NSFW.
Clik here to view.

Sort Django Query (Order By) Using Values Within IN()

In MySQL, you can use the FIELD() function to easily sort a result set by a list of ordered ids: To accomplish this in Django, you can make use of the extra() QuerySet method to create an additional...

View Article

Image may be NSFW.
Clik here to view.

Create or Update with a Django ModelForm

I recently had a use case where I needed to have a single form that could act as either a create or update form. The tricky part was that I wouldn’t know which one was necessary until the data was...

View Article

Image may be NSFW.
Clik here to view.

Jason Calacanis & Fred Wilson

Filed under: Startups Tagged: Fred Wilson, Jason Calacanis

View Article


Image may be NSFW.
Clik here to view.

Google Developers Mobile-Friendly Test

Analyze any URL and determine if the page has a mobile-friendly design. Read more here.Filed under: Hacking Tagged: Google Developers, Mobile-Friendly Test, QA

View Article

Image may be NSFW.
Clik here to view.

Google Developers PageSpeed Insights

Analyze any URL and find out how to make it fast on both mobile and desktop. Give it a try.Filed under: Hacking Tagged: Google Developers, PageSpeed Insights, QA

View Article

Image may be NSFW.
Clik here to view.

Things to Consider when Upgrading to Django 1.8

Django 1.8 was released back on April 1 and there’s a few things to be aware of when making the upgrade… 1) django.contrib.formtools has been removed. If you were making use of it, grab the new 3rd...

View Article


Image may be NSFW.
Clik here to view.

Switching from django-storages to django-storages-redux

django-storages provides a variety of storage backends in a single library. Unfortunately it hasn’t seen a release since March of 2013 despite widespread usage and support for the library....

View Article


Image may be NSFW.
Clik here to view.

Invalid Certificate after Security Update 2015-004 in Mavericks

After recently installing Security Update 2015-004, I found that I could no longer browse to any website using the root certificate “VeriSign Class 3 Public Primary Certification Authority – G5″...

View Article

Image may be NSFW.
Clik here to view.

Counting Lines of Code

Here’s a handy little shell script for counting lines of code (recursively in all directories beneath the current directory) based on the type of file: Filed under: Hacking

View Article

Django Form Credit Card Field with Pattern, Length and Luhn Validation

I’ve been doing a bit of ecommerce work lately and one of my needs was a credit card field for a Django form. Ideally it needed to support all major cards (PayPal offers a good reference list) and be...

View Article

Django and MySQL + Emoticons

This has been documented elsewhere previously but for my own recollection, here it is again. If you create a typical UTF-8 database (CHARACTER SET utf8 COLLATE utf8_unicode_ci), you’ll run into the...

View Article


Image may be NSFW.
Clik here to view.

How to Remove the 2019 Fox Float X2 EVOL Air Sleeve

Just received the 2019 Fox Float X2 and right away I noticed that Fox has moved to a retaining wire to hold the air sleeve in place (rather than the small tab and screw in past years). I’m assuming...

View Article
Browsing all 14 articles
Browse latest View live




Latest Images