Category: Programming

  • Blowfish

    Do that whole login password setup. Encrypt everything text… I’ll try and figure out a way to encrypt pictures as well, but there’s really no point in doing that either. Images will be product images… I just don’t want the data will be useful at all. The page will be all managled anyways.
    blowfish… the saviour. (more…)

  • flash dynamic preloader

    Flash has a nice tendency to not load stuff properly. This is because I’m so used to linear processing, as opposed to parallel taskes to be done at the same time.
    With this in mind, flash causes start/finish issues. Flash will try to use an object that hasn’t been completely loaded yet. So checks all these checks have to be put in place.
    The alternative to checks, is to preload that objects. Which, if you know nothing about actionscript is a little daughting.
    I’m in the middle of writing a modular preloader for dynamic content in actionscript 2. At least the dynamic content’s size can be calculated.
    This really shouldn’t be that hard, except the fact that I don’t know the scruture of actionscript. Perhaps this will be the new thing I’m going to learn…

  • New pet project, simple group schedular

    – Allow user to login/register.
    – Select what days they are free to do this project.
    – Colate Dates which are good.
    – Different shades from Red to Green, where the more green something is, more people can show.
    User: ID / Login / Password / email / IM contact
    Event: ID / Description /Map / Date Start / Date Finish / Notes (Unique rows)
    Event_User: Event.ID / User.ID (Unique rows)
    Attendence: User.ID / Attending_bool / Note
    Populate Calender:
    Given: Event.ID
    Select * from attendence, Event_User where Event.ID = $EventID

  • Flash Burnin Effect

    This is for a flash action script 2.0 file.
    requires: http://laco.wz.cz/tween/to be installed to function
    Note some aspects of this code:
    – dynamically loads a directory full of images (jpgs specifically)
    – fade aspects are definable.
    – recursive function for looping through images.
    – just a setInterval for the master loop. (more…)

  • Simple pleasures in life

    Yesterday was such a beautiful day.
    I accomplished so much in the span of the day.
    Had good food, panzerroties from the local pizzeria and grilled chicken on a greek salad.
    Sat in the sun, smoked a good cuban cigar, having some fine jamacian rum and vanilla coke while read a book by Philip K Dick – The Minority Report.
    The Minority Report, is just one of the short stories that are in that book. It’s a compilation of serveral short stories.
    After all that lounging I decided to wash my car and driveway.
    That got me in a productive mood, so sat down and nearly finished writing the adminsitration backend for my client. Just need to tweak a few things, and all should be good.
    All in all, a very productive day. Hope the rest of summer can be like this.

  • For wick2o, Logic

    Lisp function logic
    Store as “CubeSize”, “CylinderSize”, “ShrinkBy”, “Count”
    prompt “What dimension do you want for the cube?”
    prompt “What dimension do you want for the cylinder?”
    condition: Cylinder diameter must be smaller than cube
    prompt “What factor do you want to shrink each cube by??”
    prompt “Total Number of cubes in the end”
    MasterCube = {
    Draw cube, with it’s centre at 0,0,0
    Draw THREE cylinders, along each exists, with it’s length intersectin along an axis in the cube.
    subtract the three cylinders from the cube.
    }
    for (i=0; i 0,0,0 @ // creates new object
    shrink previous object by ShrinkBy
    }
    find out what the cylinder hole size is for smallest cube.

  • LL – Gallery 0.5

    LL – Gallery version 0.5. here
    Modifications:
    – created some CSS
    – changed colors
    – borders around stuff
    – added checking for a single textfile name “folder.info” which is HTML safe. So I can give a description of the folder, and contents.

  • New gallery app I made

    I was fed up with not being able to find a simple, elegant design.
    The apps I saw out there we all kind of overkill to me. I don’t need comments to my photos, and just was a pain to manually upload a lot of photos through a web interface to get the images up and running.
    Features that I required:
    – manually parse a directory full of pictures.
    – generate a thumb in small and medium sizes, cached to save server processing
    – create a easy to use and understand interface [more html than programming]
    – show the filename as the description of the photo.
    – have subfolders as albums.
    – link to the original large photo.
    Features that I added:
    – ability to show the size of the original file, in denominations of bytes, kilobytes, megabytes.
    What I originally wanted to do was have to create and .htaccess file to link to a specific file at all times. So I would only need to upload the pictures. However I couldn’t figure it out, so I just put a < ? include("..index.php");?> as the index.php file in all folders, except the initial gallery page. Where it reference the actually gallery.php file.
    If you have any suggestion to add to this same, simple app… let me know, I may add to it.