• Home
  • About
Blue Orange Green Pink Purple

How to implement DES and Triple DES from scratch

A simple Ruby implementation with lots of comments. This document explains how to implement DES, from the perspective of learning how the algorithm works.

Read More 0 Comments   |   Posted by Chris Hulbert
Jan 13

Emails in C#: Delivery and Read receipts / Attachments

When sending emails with System.Net.Mail in C#, you can specify you want certain receipts:

Delivery receipts: These are the receipt emails that get sent back to you by *your* email server when it is satisfied that the email was sent to the other's server.

Read More 3 Comments   |   Posted by Chris Hulbert
Dec 16

Using Java libraries in a C# app with IKVM

I'm sure all us C# guys, at some point or another, have looked 'over the fence' with envy at all those juicy Java libraries. In my case, recently I needed to export and import some Excel files, and found that there aren't really any good C# libraries for it.

Read More 1 Comment   |   Posted by Chris Hulbert
Nov 27

Learning Java tutorial

Hi,
I've been recently trying to learn a bit of java - specifically web app development using struts 2 and hibernate. I'm up to version 3 of the tutorial so far.

Read More 27 Comments   |   Posted by Chris Hulbert
Nov 17

Using generic database providers with C#

This snippet of code shows how to use the generic System.Data.Common types to connect to any database, using a string to define which database provider you want to use. The magic happens with the 'Activator.CreateInstance' below, where C# has the ability to create a class from a string.

Read More 0 Comments   |   Posted by Chris Hulbert
Oct 29

Scheduled task executable batch babysitter

Hi again,
When setting up scheduled tasks to run on an windows server, i've found it useful to wrap my executable with a batch file,

Read More 0 Comments   |   Posted by Chris Hulbert
Sep 30

Working with query strings in Javascript using Prototype

Here's a bit of javascript that uses query strings. It parses the query string into a dictionary object called params, tests if a certain parameter was passed, and if it was passed it fills in a couple of input boxes with the passed values.

Read More 0 Comments   |   Posted by Chris Hulbert
Sep 09

Still fighting with String.Format?

If you're anything like me, you'll still be getting the hang of String.Format ever since sprintf was removed from our toolbag. So, here's a tool to interactively play with a format specifier to see how it formats a value that's been parsed in each of the common types.

Read More 0 Comments   |   Posted by Chris Hulbert
Aug 24

How I'd build the next Google

How I'd build the next Google
-or-
How to exploit the fact that only the first 10 pages of a search result are really necessary, to do a distributed map-reduce that doesn't bottleneck on the difficult-to-parallelise 'reduce'.

Read More 0 Comments   |   Posted by Chris Hulbert
Aug 24

Getting IIS and Tomcat to play nicely with isapi_redirect

If you've got a Java application hosted within Tomcat, and you want to plug it into an existing IIS site, here's how. Oh and before we start, this is for IIS 6, and Tomcat 6.

Read More 0 Comments   |   Posted by Chris Hulbert
Aug 11

Using the new ODP.Net to access Oracle from C# with simple deployment

Microsoft has deprecated System.Data.OracleClient, so here's a simple example of using the new ODP.NET Oracle.DataAccess.Client, with the following benefits:

* Simple Xcopy deployment
* No Oracle [instant] client installation needed
* No TnsNames.Ora file needed

Read More 53 Comments   |   Posted by Chris Hulbert
Previous Page 2 of 6 Next Page

Chris' Babble

  • About
    Hi, i'm Chris Hulbert, a software guy from Sydney Australia.
  • Categories
    • code
    • Portfolio
    • Uncategorized
  • Recent Articles
    • How to implement DES and Triple DES from scratch
    • How to use Cookies in Struts 2 with ServletRequest and ServletResponse
    • How to use sessions with Struts 2
    • Using Quartz Scheduler in a Java web app (servlet)
    • Javascript date picker that Doesn't Suck!(tm)
    • Using Oracle XE with Hibernate


  • Home
  • About

© Copyright Chris' Babble. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top