Django: How to access session data from inside a FormView in

1. Add get_form_kwargs() to your FormView in
class RegistrationFormView(FormView):
    template_name = 'registration/registration_form.html'
    form_class = RegistrationForm
    success_url = 'results'
    def get_form_kwargs(self):
        kwargs = super(RegistrationFormView, self).get_form_kwargs()
            'request': self.request
        return kwargs
2. Change __init__ in your to include request as a parameter:

For those of us that use Safari sometimes and cant install a nifty Chrome plugin:''+document.title+'&body='+escape(location.href),'_blank');

jQuery: Number increment animation that works with decimals

(function ($) {
    Drupal.behaviors.stats = {



I recently returned from Haiti where I met a very special person named Michneider. She is a 14 year old orphan who lost her mother when she was four years old and her father in the 2010 earthquake. She has been living with doctors from Ti Kay (An NGO working on Tuberculosis) as she literally has no where to go.

Announcing What's for Lunch

The new app that takes all the guesswork out of cafeteria eating. Now your cafeteria diners don’t have to wonder whether tomorrow's lunch will be pizza day, sloppy joes, or spaghetti and meatballs - they can just download the what's for lunch app, and have the weekly menu "served up" right to their phone.

"Swepple, the scheduling application designed by Grade 8 student Christian, has been named a "Best in State" winner in the 2014 Verizon Innovative App Challenge. Christian and his team earned top points for creativity, innovative design, and application of STEM principles to the development process. The competition is sponsored by the Verizon Foundation and the Technology Student Association." - Alida Clemans CGPS

A Drupal module to display a web based "faces book" from your S2 Netbox security system's API.

$path = "E:\FacultyHome1"
$items = Get-ChildItem -Path $path
foreach ($item in $items) {

Launching the new

function mymodule_form_alter(&$form$form_state$form_id)  {

Bootstrap style Quicktabs in Drupal

Got the Drupal Bootstrat theme installed and looking to get "bootstrat" style QuickTabs? Edit template.php and add:

Using the MailChimp PHP API and the FIlemaker plugin SmartPill, which enables you to execute php from within a FIlemaker database, I was able to syncronize data between a FM database and a MailChimp list.

Just launched the new

Drupal image styles (formerly image cache) and image quality issues

Most people with image style quality issues look to the "JPEG Qaulity" setting (admin/config/media/image-toolkit in Drupal 7).


Just finished my newest Drupal 7 microsite for Columbia Grammar and Prep School. Sports schedules, game scores, news, photo galleries and more! Check it out at

Some Hurricane Sandy Photos From Across The Web

Dear Crash Course Team

I was genuinely sad when I learned today that Crash Course World History was approaching its final episode. Your videos have been without a doubt one of the highlights of my week. Your combination of poignant, witty, informative, and multi-dimensional writing, great editing, wonderful graphics and an entertaining host have helped me know even more about the fascinating history of the world I live in.

Apple Software Update Server 10.8 URL

The software update server in Mountain Lion (10.8) works and can serve updates to older clients. (See: Software Update Service compatibility)

However, Apple's documentation and KB articles containing conflicting information about what the URL should be. 

I got my 10.8 server to provide updates to my 10.6 clients at

Auto configure Mac airport (wireless) settings from the command line

These are the settings we use on school owned laptops used exclusively on our campus.

I ♥ Drupal 7

Wow, I just finished a new website powered by drupal 7 + adaptivethemes + ubercart 3. They make an amazing, flexible, and powerful team!


my_custom_network_dashboard_widgets() {

School shuns Apple servers for Windows

For a self-described "Mac person" working as a technology manager in a college preparatory school that had been a "Mac school" for as long as he could remember, it was a hard thing to have to face but he said it out loud: "Apple never took enterprise computing seriously," says a somewhat disillusioned Adam Gerson

Centrify Corporation, the leading provider of security and compliance solutions that centrally control, secure and audit access to cross-platform systems and applications using Active Directory, today announced that the Columbia Grammar and Preparatory School (Columbia Prep) is leveraging its Centrify Suite solution to centralize all security and policy controls for its growing Macintosh student and faculty user populations.

PHP LDAP Bind Authentication With Active Directory


Living the Dream: Mac Clients Powered by WIndows Servers

Last week I presented at the 2011 NYSAIS Education and Information Technology Conference.

Quota Monitor Menu and Windows/Extreme Zip Quotas

Quotas on Windows/Extreme Zip have to be set up very specifically for Quota Monitor Menu to work. Windows Server 2008 introduced a new mechanism for quotas called "The File Server Resource Manager" that does not fully work with the Mac finder. The quotas are enforced but not visually indicated or acessible to Quota Monitor Menu. You have to use the "old style" quotas (right click on the volume ->Properties) and follow these instructions from Group Logic about where in the share hierarchy they are assigned.

The problem is Mac OS X Server.

The problem is Mac OS X Server. The problem is Apple's implementation of AFP and OD. I am an Apple user, stockholder, fanboy, certified system administrator and programmer with over ten years of Mac Server admin experience. So, I don't say this lightly. Apple servers are junk at the enterprise level. AFP as Apple has implemented it is just not stable with a large number of connections. Their own engineers admit to as much if you talk to them candidly. I also find OD to become corrupted and cranky periodically.

RIP Steve Jobs

‎"If you walked into the office of almost any chief executive and asked him or her to describe a favorite font, I’m pretty sure you would be greeted with a blank stare and silence. If you asked Steve Jobs you had better make yourself comfortable: Mr. Jobs was passionate about typography and would have described, in great detail, the intricacies of a single serif..."

It looks like Microsoft Office 2011 when paired with Mac network home directories is still susceptible to random read only documents because of spotlight. In our testing we confirmed conclusively that when the processes was running certain Word documents would open as read only. We fixed this by disabling spotlight indexing on our home folders. You can do this while logged in as the user by having them run an apple script or terminal command:
Subscribe to RSS
© 2011 Adam Gerson.