trickyInc: a dynamic css / javascript php library

I am very pleased to introduce trickyInc, a flexible and extensible dynamic css / javascript library written in php.

Download

Documentation

I won’t go into detail here about what it does, because the google code project covers that pretty well. If you have any interest in dynamic css and/or javascript, I urge you to check it out. I have been using it on all of my projects lately, and I am enjoying the hell out of it.

I would love some developer feedback on this, so if anyone finds this interesting enough to use, please let me know about your experience, and open issues in the google code project as necessary. I would also love any feedback regarding making it faster / safer / better / whatever.

trackback

Tags: , , , , 3 responses »
  1. Anonymous's gravatar

  2. Anonymous's gravatar

  3. Anonymous's gravatar

Leave a Reply

ok to use:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

bonus!

If you want to post code, you can use:

<pre lang="[language]">[code]</pre>

Where [language] is a valid geshi language type, and where [code] is your code.

GMFDYUI

google mother fucker, do you use it?

An attractive friend of mine pointed out that I hadn’t posted in a bit, so this is what you get.

This is a terribly simple drop in php script that basically just redirects people to Google with a query.

This is useful when someone ask you a stupid question, when it should be obvious that they just need to Google it. You can give them a link that may appear to be useful, but will it only taunt them for being foolish.

example

download

This was inspired by http://justfuckinggoogleit.com/ and of course whoever originally came up with the Samuel L macro. A sarcastic apology to anyone offended by the language in this post. Get off the internet, thank you.

trackback

Tags: , , , no responses »

Leave a Reply

ok to use:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

bonus!

If you want to post code, you can use:

<pre lang="[language]">[code]</pre>

Where [language] is a valid geshi language type, and where [code] is your code.

Javascript measurements, window.onload, and getimagesize

If you use a lot of javascript for animations / measurements (like I do), it can be very useful to include the width and the height of any images you use in your <img/> tags. This will make sure that width / height measurements taken by your javascript are accurate before waiting for all of the images to load. This leaves you free to run your code as soon as the dom is ready, without worrying about remeasuring once window.onload fires.

A teensy bit of php will take care of this for you if you do not already know the image size, or don’t care to look into it:

<img alt="i am lazy" src="/images/myImage.jpg" <?php list($w,$h) = getimagesize($path_to_image); echo "width=\"$w\" height=\"$h\""; ?>/>

trackback

Tags: , , , , no responses »

Leave a Reply

ok to use:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

bonus!

If you want to post code, you can use:

<pre lang="[language]">[code]</pre>

Where [language] is a valid geshi language type, and where [code] is your code.

mlurl (my little url): a personal url shortener

mlurl - my little url

A friend (and boss) of mine thought that this would be a good idea, and not being foolish/strange enough to be a coder himself, I decided to make it because it could be useful.

It is a drop in php script that allows you to host your own url shortener / redirector like snurl or tinyurl. Only you will be able to add / remove url’s from it.  This would allow you to essentially brand the url’s you send, or just simplify the linking process on your site or elsewhere.

If you have any trouble, check out the README.txt included, or leave a comment here.

download

trackback

Tags: , , , , , , 4 responses »
  1. julfo's gravatar

    Hi,

    This is great, but i have one suggestion, or even a request. I feel that mlurl would be improved if you made it so that you didn’t have to log in to create urls. Of course there could still be an admin area, but not necessary to log in to create links. If you did that then this would be perfect. Perhaps you could creat Mlurl v.2?

    Thanks,
    Julfo

  2. atom's gravatar

    I am working on another version between other things. It will most likely be released on this site when I am done.

  3. diancitie's gravatar

    Great article.Thanks.

  4. 青岛卓众's gravatar

    青岛卓众(www.chinajoyzone.com)给博主拜年来了,恭祝新的一年事事顺心,万事如意。

Leave a Reply

ok to use:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

bonus!

If you want to post code, you can use:

<pre lang="[language]">[code]</pre>

Where [language] is a valid geshi language type, and where [code] is your code.

mootools rainbow toy: the trickeries! technicolor dream machine

the treickeries! technicolor dream machine

I got a little bored this weekend, and decided to make myself a toy to play with rainbows, and give it a stupid name.

There is actually some pretty cool stuff going on, it is written in javascript(w/some sweet sweet mootools), and a little bit of php for automagic.

I wrote a class to make the rainbow, and one for the sliders you see. If you think either would be useful, they are included in the head.

trackback

Tags: , , , , , no responses »

Leave a Reply

ok to use:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

bonus!

If you want to post code, you can use:

<pre lang="[language]">[code]</pre>

Where [language] is a valid geshi language type, and where [code] is your code.