Xavier Spriet
I'm a software developer currently located in Windsor, Ontario. I'm very interested in discrete math & algos, several programming languages (but I've been specializing in Python and PHP for now), and RDBMS. I'm currently learning about Android development, lisp and fuzzy graphs.Follow Me
Blogroll
Tags
Categories
- Events (1)
- tech (8)
- Computer Science (1)
- Databases (2)
- Django (1)
- linux (5)
- Programming (2)
- unix (4)
- Web Development (1)
- Web Frameworks (1)
Archives
Author Archives: Xavier
Algorithms in Python: Binary Operations
Today I’d like to demonstrate a simple implementation of Kenneth Rosen‘s binary addition and multiplication algorithms as outlined in "Discrete Mathematics and its Applications". Both algorithms are very simple and work the same way we’ve all learned to do decimal … Continue reading
Posted in Computer Science, Programming, tech
Tagged algorithms, CS, programming, python, tech
Leave a comment
Algorithms in Python: Base Expansion
I felt it would be helpful to folks interested in Python and studying algorithms, to review some commonly studied algorithms in Computer Science by providing a small description and a Python implementation of each algorithm. This week, we’ll cover an … Continue reading
Django Context Processors Best Practice
In this post, i’ll show you a simple trick to ensure your Django context-processors don’t break when Django 1.2 (and possibly future releases as well) is released. If you’re not familiar with the concept of context-processors, I’ll also explain what … Continue reading
Posted in Django, Web Development, Web Frameworks, tech
Tagged convention, Django, python, tech, tips
Leave a comment
Penguicon 7.0
Our little gang from the Windsor Unix Users Group just got back from Penguicon 7.0 on Sunday night. As always, it was so much fun we hardly managed to get any sleep, and we all came home with a lot … Continue reading
Posted in Events, linux, tech
Tagged arduino, convention, engineering, linux, php, sci-fi, tech
2 Comments
Extending PostgreSQL with Python
One of the features I enjoy the most about PostgreSQL is the ability to write stored procedures in C, Perl, TCL, PgSQL, and yes… obviously also in Python. I’ve been using this feature since 7.4, so any recent version of … Continue reading
Fixing custom sequences in PostgreSQL
PostgreSQL provides a mechanism called sequences, which I believe is extracted from ANSI-SQL92, though I’m too lazy to check, which are basically stateful counters that provide some helper functions. The primary use of sequences in PostgreSQL and Oracle, is to … Continue reading
Apache2 shortcuts
I’ve been maintaining and managing Apache servers for over 10 years now, but for some reason, I never bothered to RTFM when it came to enabling/disabling modules and site configs in apache2.. As it turns out, you don’t have to … Continue reading
Ahh those cool little CLI tools…
The list of Unix/Linux utilities available grows every day. Here’s a little list of cherry-picked utilities i’ve found myself using more and more lately… Inotail: Inotail uses the Linux kernel’s inotify API, which was implemented with v2.6.13 to monitor changes … Continue reading
on Delicious
on Google Books
on HackerNews
on LinkedIn
on Twitter