DeveloperHell | Languages: All | PHP | Python | .NET | Java | CSS | Ruby | Javascript   Site: Statistics
want to join us? register, it's easy | help
category icon

Browser Plugin Detection

in Python added by iFadey, 2 weeks ago browser flash javascript pattern plugin silverlight

Have you ever wondered how to detect plugins loaded by your browser using JavaScript? In this tutorial you will learn to detect plugins in IE way and for other browsers. You will also learn to use Lazy Function Definition pattern to optimize your object detection code.

1 comment save report
category icon

Generate Random IP with Python

in Python added by codysnider, 2 weeks ago random ip

In need of an IP address on-the-fly that appears to be valid? Try this.

comment save report
category icon

Django performance tips

in Python added by admin, on 12/6/2010 django framework intermediate

Django handles lots of traffic with ease; Django sites have survived slashdottings, farkings, and more. Here are some notes on how we tweak our servers to get that type of high performance.

comment save report
category icon

Ruby on Rails 2 scaffolding

in Python added by prodevtips, on 28/3/2009 beginner tutorials ruby on rails

Basic tutorial on how scaffolding in RoR 2 can work.

comment save report
category icon

Documenting Your Project in Python [pdf]

in Python added by nirajam, on 8/3/2009 Open source Python markup

The tutorial provides a few tips to start documenting your project through the seven rules of technical writing that summarize the best practices, and a reStructuredText primer, which is plain text markup syntax used in most Python projects.

comment save report
category icon

Project browser in WxRuby

in Python added by prodevtips, on 24/5/2008 framework oo programming wxruby

Advanced TreeCtrl tutorial

comment save report
category icon

A Lightweight Approach to Aspect-Oriented Programming in Python

in Python added by admin, on 21/4/2008 aspect-oriented intermediate

aspects.py library provides means to intercept function calls. Functions and methods (also in Python standard library and third party code) can be wrapped so that when they are called, the wrap is invoked first. Depending on the wrap, the execution of the original function can be omitted, or the function can be called arbitrarily many times. Wraps are able to modify the arguments and the return value of the original function. In the terminology of aspect-oriented programming, the library allows applying advices (wraps) to call join points of methods and functions in around fashion.

comment save report
category icon

Using Pyke, the Python knowledge engine

in Python added by admin, on 22/3/2008 intermediate knowledge engine

This describes how to use pyke from within your python program.

comment save report
category icon

Learning Python Programming Language Through Video Lectures

in Python added by admin, on 8/3/2008 beginner tutorials video lectures

One of the upcoming projects I am doing (I will reveal it in one of the next blog post) is going to be written entirely in Python. I have a good understanding of Python but, same as I had with JavaScript, I have little experience doing projects from the ground up in it. Before diving into the project I decided to take a look at a few Python video lectures to learn language idioms and features which I might have not heard of.

comment save report
category icon

The state of Python profilers in two words. Use cProfile.

in Python added by admin, on 1/3/2008 intermediate profiling

This is for people who still wonder what they should use every time. cProfile was added in Python 2.5 after much discussion about the downsides of existing profilers.

comment save report
category icon

Python - 15 Line HTTP Server - Web Interface For Your Tools

in Python added by admin, on 14/2/2008 intermediate oo programming web server

I write a lot of command line tools and scripts in Python. Sometimes I need to kick them off remotely. A simple way to do this is to launch a tiny web server that listens for a specific request to start the script.

comment save report
category icon

Python as Config Language -- Forget XML and INI files

in Python added by admin, on 12/1/2008 configuration-file

A programming language has all the advantages as a language for encoding parameters. I see why it's rare -- too many programmers have spent too much time with MS's abominable INI files and think it's "normal".

comment save report
category icon

Using raw SQL in django

in Python added by admin, on 3/1/2008 django framework intermediate sql

For a django project I'm working on, I need to run a simple query with COUNT and GROUP BY statements to collect some summary data. I tried working with the model API, and eventually fell back to using raw SQL instead.

comment save report
category icon

Human-Readable Encryption Keys

in Python added by admin, on 29/12/2007 cryptography intermediate

Somehow, we have to present these random 128-bit keys to the user, and I think I've found a pretty good way. We use RFC 1751, which defines a 'Convention for Human-Readable 128-bit Keys' - basically just a mapping of blocks of bits to strings of English words.

comment save report
category icon

Python: Some Concurrency Tricks

in Python added by admin, on 27/12/2007 concurrency intermediate

Here are a few concurrency tricks if you're stuck using threads. I used these tricks years ago to write a Swing application in Jython, and I found them to be helpful enough to warrant a blog post, albeit a few years delayed.

comment save report