Jamie Ly

Jamie Ly

Developer, student, person

Skip to content
  • Arts/Crafts
  • Programs
  • Writings
  • About

Programming

There are 108 posts filed in Programming (this is page 5 of 8).

Post navigation

Project Euler Problem 1 Solution: Clojure

After PhillyETE, I wanted to try out some Clojure, so I decided to solve the first problem of Project Euler. I coded up my own solution using some of the references on the Clojure site. Project Euler Problem Description, from Project Euler Find the sum of all the multiples of 3 or 5 below N. […]

in Programming | 257 Words

Word Jumble Game: Part 5

I used jQuery for the UI. I am a recent convert to jQuery, having mostly used Prototype + Scriptaculous. The word list is embedded into the page script as a javascript array. On document ready, html is generated, which writes the first and last word to the page, and creates blank input boxes for the […]

in Software | 129 Words

Word Jumble Game: Part 4

Search The problem of generating the chain of clues is a simple search problem. In this case, depth-first search was used, because the algorithm would attempt path depth-wise and only explore another branch if the generated chain was not long enough. Another tactic would have been to use a breadth first search. To use breadth-first […]

in Software | 311 Words

JRun Virtual Directories

I’m posting this because I always spend half-an-hour trying to find this information. To set up virtual mappings or virtual directories (what I call them) for ColdFusion on JRun on OSX, edit the jrun-web.xml file in (this is where mine was, you may have to look elsewhere): Add an entry to the jrun-web-app xml element […]

in administration | 110 Words

Word Jumble Game: Part 3

The first thing I did was made sure that the word list would be cached on application start. This was as simple as creating an Application.cfc cfcomponent and implementing the onApplicationStart function.  This function reads the dictionary in (described in the last entry) and caches the word list in a ColdFusion array. There are other […]

in Software | 283 Words

Word Jumble Game: Part 2

In my last entry, I described the concept behind the Word Jumble game. In this entry, I will describe initial steps in creating the game. Firstly, I needed some dictionary of words. The Unix flavors have built-in dictionaries, and I develop on OSX, so I Googled the location of its dictionary: I knew I wanted […]

in Software | 199 Words

Word Jumble Game: Part 1

For a recent Regular Expressions Tech Talk at Wharton, I wrote a Word Jumble game.  I will be describing the game and some of the key concepts used in making the game. Here’s the github repo. The premise of the game is to transform one word into another by replacing a single letter in the […]

in Software | 238 Words

Mediawiki-Usage/Changes Storage and Visualizations

A coworker and I have been doing some work on visualizations of wiki updates. The server-side code, written in Ruby, stores changes from a media-wiki feed. I got a chance to use the Google Visualization API, which is really simple and useful for a wide variety of domains. He also turned me on to HAML, […]

in Libraries | 99 Words

Date Validation in ColdFusion

Someone asked me about Date Validation the other day. Here are two simple approaches for use in your CF apps. Assume that the strDate variable contains your date. On the server-side, you may use IsDate(strDate). On the client side, !isNaN(new Date(strDate)). I don’t know for sure if the client-side code is the best way to […]

in Programming | 225 Words

Tech Talk: Regular Expression Recap

Yesterday I presented a tech talk on regular expressions. Overall, the feedback was very helpful! One thing I need to work on is making sure that my examples are work 100%. I know it can be very confusing when someone stumbles through an example. Another thing which I need to work on is pacing. Unfortunately, […]

in Programming | 203 Words

Bubble Breaker Using Canvas!

I wanted to try out some canvas element functionality, given that I have a feeling it will steal a lot of Flash’s thunder. I whipped up a bubble-breaker game (the mechanic should be very familiar to you) in a few hours. Enjoy the demo! I may do a quick write up at a later point. […]

in Programming, Software | 97 Words

Drupal Org Chart – Graph Viz Update

I have updated the Google Code repository with updates to integrate GraphViz. It expects the PEAR GraphViz package to be installed.  To install it, issue command: If you’d rather not mess with PEAR, download the package, extract the class Image_GraphViz, and alter two two lines of code that depend on the PEAR::System package. It should […]

in Programming, Software | 126 Words

Graphiz Problem!

I was working on the Drupal OrgChart module tonight, specifically the rendering of the chart image via GraphViz, and I got stuck for at least an hour on a trifle! I planned to use the PEAR library for GraphViz (Image_GraphViz) and I wrote a function using the class it provides. I run the procedure and […]

in Libraries | 229 Words

Drupal Module: Org Chart

I created an org chart module. It interacts with the profile module to display an organizational hierarchy. From the project description: An organizational chart that uses the profile.module. Install in your modules directory. Currently, it uses profile fields to build the chart. It assumes that there will be two fields that hold the following data: […]

in Programming | 131 Words

Stikked Patch

We’ve been using Stikked for an internal pastebin. The current version on Google Code has a few bugs. I modified this code to fix two problems specifically: The Download Code link was not working properly The Short URL functionality was not working, as Snipr had deprecated the version of the API that the program was […]

in Software | 692 Words

Post navigation

Archives

Independent Publisher empowered by WordPress