Archive for the ‘Software’ Category
Dropping a Default constraint of a column in sql
I have had some troubles to delete a column in Sql ’cause this column had a default value defined. The solution I found is this: getting the name of the contraint with the following query: select name from sys.default_constraints where parent_column_id=(select column_id from sys.all_columns where column_id=(select column_id from sys.columns where object_id=(select object_id from sys.tables where [...]
In: Software · Tagged with: drop constraint default delete
OpenCV-2.2.0 Visual C++ 2010
The process is slighty different from the one described here OpenCV-2.1.0 Visual C++ 2010 on Windows 7 1. Create a new Win32 Console Application project 2. Change the project’s Property Pages > Configuration Properties > VC++ Directories in order to include the OpenCV directories Include directories: C:\OpenCV2.2\include\opencv; C:\OpenCV2.2\include (In OpenCV 2.2 the include directory contains [...]
In: Software · Tagged with: OpenCV
Atom to RSS 2.0 converter – The C# way
This blog was on blogger but a few weeks ago it started to launch a java connection exception. It doesn’t allowed me to publish my blog at this address through ftp. Then I decided to switch to WordPress so I extracted a backup from blogger in the Atom format and tried to import it, but [...]
Releasing the code
I’ve been receiving feedback from the users of one of my projects, MSNAliceBot. This little project doesn’t had the number of downloads as my projects for flickr. But the users are more “participative”. I wanted to continue the develop of this project because i think it got some potencial. But I’m running out of time [...]
1D Histogram with OpenCV C++
I’d like to say again that the documentation of the OpenCV is very poor. This is a histogram of 1D for an image of 8 bit single channel (grayscale). The code is commented for an easier understanding. I used the same image to obtain the histogram as i made it in Python The advantage of [...]
Obtaining the histogram of an image with Python
To obtain the histogram of an image with Python using the PIL there is a specific function called histogram. So, this code just create a grafic of that histogram. Call it this way: C:\python>python histogram.py inputfile.jpg output.jpg The image could be .gif, .png, and other formats supported by the PIL The code is here Here [...]
Batch watermarking images with Python
I was wondering how to put a mark on my photos, i mean all the photos from a directory in my hard drive (i’m a little bit lazy ) So i read about the PIL (Python Imaging Library) and found this script: Watermarks with PIL then i extend it to do batch processing. Use it [...]
flickrBuddy 0.1
This tool allows you to see and download the most interesting pictures of your contacts in flickr. No source code for the moment -i need to figure out how to do some things with threads… You’ll need the .Net Framework 2.0 to run it The tool page is here Use Facebook to Comment on this [...]
Sierpinski’s triangle
I had always wanted to program the chaos game,… I know, it is a stupid thing… Well here is it: I used Opengl in C# with the Tao Framework. Most of the opengl in my code is from the nehe tutorials. You can put as many points as you want, but be careful with your [...]
MSNAliceBot: a .net Chatter bot
Some time ago,… about a year and a half i programmed an inteface between the programD of alicebot.org and my msn messenger acount using dotMSN. The process was a mess. There was a programD server running on my machine; a wget which passes the paremeters in an url and file processing to get the answers [...]

English
Español
Français