Category: Coding


HTTPService Over SSL Flex 4

August 9th, 2010 — 1:23pm

Using SSL for HTTPService communication and loading images is very easy in Flex 4. There are differences between using HTTPService over SSL and loading images over SSL, however neither is complicated.

Communication using HTTPService over SSL

  1. Host the flex 4 application on an SSL enabled host
  2. Ensure the application is loaded over SSL (i.e. the URL has https:// prefix)
  3. Make HTTPService.url a relative path to where the SWF is stored

Using SSL for mx:Image

Set the Image.source attribute to the full URL, including the https:// prefix, like so:

<mx:Image source="https://server.com/image.jpg"/>

Comment » | Coding

Cartoon Shader using GLSL

May 14th, 2010 — 12:01pm

Here is an example of a shader written in the OpenGL Shading Language (GLSL). It is very simple shader, only assigning 4 different color values, yet the result is pretty cool. I’ll post the link to the source code once I add it to my git repository.

For introductory material on GLSL, check out Lighthouse 3D (where I got this cartoon example). Also check out the orange book for more in-depth discussion and examples on shaders.

Comment » | Coding, Unix

Ask comp.lang.c to Do Your Homework

May 11th, 2010 — 11:45pm

A funny post on comp.lang.c.

Comment » | Coding

Why No Games on Linux?

May 11th, 2010 — 11:54am

Thought I would share an interesting article on why there are no games on linux. Want more games on linux? Solve these problems!

Comment » | Coding, Unix

Python 2 to 3

December 2nd, 2009 — 9:11am

Updating to Python 3? I found a nice cheat sheet by Mark Summerfield that shows a concise summary of the differences between Python 2 and Python 3, as well as some of the more common features of Python 3.

This document is freely available from InformIT’s website, but I have also mirrored it. Download the cheat sheet below.

Python2Python3.pdf from greynode.org

Python2Python3.pdf from InformIT’s site

Comment » | Coding

Back to top