Programming

*Basic Facts:* OS: Windows Python version: 2.7 Django Version: Instant Django( [link]) . I have Django installed using Instant Django and everything is fine until I beging to fiddle with database settings. Here is what my setting....
*Basic Facts:* OS: Windows Python version: 2.7 Django Version: Instant Django( [link]) . I have Django installed using Instant Django and everything is fine until I beging to fiddle with database settings. Here is what my setting.py looks
8 minutes ago
This article explains how to monitor memory usage in your web application by requesting the MemoryMXBean and exposing collected metrics within a Primefaces LineChart component in a JSF page.
This article explains how to monitor memory usage in your web application by requesting the MemoryMXBean and exposing collected metrics within a Primefaces LineChart component in a JSF page.
27 minutes ago
There is a lot of advice out there on how to go about building your own custom exception classes. A lot of these sources are at least partially correct. Some are totally wrong. Some even advocate abandoning the base System.Exception cl...
There is a lot of advice out there on how to go about building your own custom exception classes. A lot of these sources are at least partially correct. Some are totally wrong. Some even advocate abandoning the base System.Exception class altogether, but that’s throwing the baby out with the bathwater, in my opinion. None that I've seen show how to serialize/deserialize your custom exception class should it have additional data in it's subclass. It’s enough to make one despair of ever finding the “right” way to build an exception class.
30 minutes ago
Let Radical Rich show you how in this demonstration video from 855 ft up in the air!
Let Radical Rich show you how in this demonstration video from 855 ft up in the air!
31 minutes ago
Scenario - you have an ID of a site column (SPField belonging to SPWeb)and you want to find out if there is a field by that ID in the collection. Problem: if you try something like: web.Fields[fieldID] == null The result is an...
Scenario - you have an ID of a site column (SPField belonging to SPWeb)and you want to find out if there is a field by that ID in the collection. Problem: if you try something like: web.Fields[fieldID] == null The result is an exception if the field doesnt exist. What a shame. So you choice is to put a try-catch around that code to check for the exception. That does not make for pretty code though, so what I do is: if (!web.Fields.SchemaXml.Contains(fieldID.ToString())) By checking the schemaXml of the fields object, we check if the field ID exists using a simple string comparison.
36 minutes ago
HTML5 is one of the most popular markup language in this era. Mostly designers and developers use this amazing language as it is easy to understand and has advanced features than other languages.
HTML5 is one of the most popular markup language in this era. Mostly designers and developers use this amazing language as it is easy to understand and has advanced features than other languages.
37 minutes ago
The Web is evolving continuously and you can see that novel and innovative websites are being launched every now and [...]
The Web is evolving continuously and you can see that novel and innovative websites are being launched every now and [...]
38 minutes ago
An introduction to the Apache Pivot framework with examples for creating rich clients either programmatical or using xml templates.
An introduction to the Apache Pivot framework with examples for creating rich clients either programmatical or using xml templates.
40 minutes ago
I am incredibly honored to be the recipient of the INETA Community Champion Award – the annual recognition for those who contribute notably to the Microsoft developer community. While the recognition from INETA is definitely rewarding, I...
I am incredibly honored to be the recipient of the INETA Community Champion Award – the annual recognition for those who contribute notably to the Microsoft developer community. While the recognition from INETA is definitely rewarding, I have actually gotten much more back from our wonderful community compared to what I have given and have to share this recognition with my cohorts. ...
about 1 hour ago
Like most Americans, I lead a largely sedentary lifestyle. I’ve never been particularly athletic. The closest I’ve ever been was 5 years of forced physical training courtesy of the United States Army. That experience drilled in me a part...
Like most Americans, I lead a largely sedentary lifestyle. I’ve never been particularly athletic. The closest I’ve ever been was 5 years of forced physical training courtesy of the United States Army. That experience drilled in me a particular distaste for exercise, so with the exception of some fair weather golf, I don’t get much exercise. Between my disdain for exercise and my hectic...
about 1 hour ago