Browse > Home

| Subcribe via RSS

It’s Come To The End

May 8th, 2009 | Stumble It! | Digg This | No Comments | Posted in Site Information

My life is in ruins, I’ve messed everything up.
I’ve lived, I’ve laughed, I’ve loved!
Nothing more for me and everything for all the wrong people.
My mind, my body, my heart can no longer take all the pain and stress in this world.
I’ve fucked everything up big time.
I just want everbody to know I love them.

Tommy, as we always said, the Smith family should end with me - and it is. LOL

If I had dope, I’d od.
If I had rope, I’d hang.
But I have a rifle, I’ll use that.

I love everybody.

Sean, Mike, Jim, Mikie Mike, Rho, Mom, Tommy, Betty, Bob, Bill, Fade, Ray.

My finally note: this is all my fault and nobody to blame besides myself.

James!

Debt

November 26th, 2008 | Stumble It! | Digg This | No Comments | Posted in Love, Writings

My mind is gone,
Emotions are numb,
Haven’t felt this way before,
Can this be real?

Butterflies turn my insides,
Soft touches of sweet caress,
Make my world turn careless.

Is it too soon, too quick?
Everything I will recollect,
My heart going into debt.

Night of passions once again,
As I kiss your lips into abyss.
Your beauty brings a haze,
Before my eyes,
Blurs my vision,
Of everything but you.

Eyes made of emeralds,
Hypnotize me, paralyze me.
With the voice of an angel,
Soothing to the ears,
Comforting to the soul.

You put my mind to rest,
With each and every tender kiss.
Whirlpool of feelings rushing my mind,
Creating madness of some kind,
Can it be I’ve fallen for you.

jQuery UI Dialog - Toggle Closeable & Non-Closeable

August 3rd, 2008 | Stumble It! | Digg This | No Comments | Posted in Programming, Random

So I’m working on a administration panel using quite a bit of JavaScript & jQuery. jQuery is pretty powerful and with their UI version of jQuery it adds a lot of useful tools. But there was one thing I wanted with the jQuery.Dialog module/widget. I wanted to toggle when a dialog was closeable and not closeable.

So here are a few modifications I added to 1.5.2 of jQueryUI.

First you must have the non minified version, so you can see the full source code. Below this function:

destroy: function() {
(this.overlay && this.overlay.destroy());
this.uiDialog.hide();
this.element
.unbind('.dialog')
.removeData('dialog')
.removeClass('ui-dialog-content')
.hide().appendTo('body');
this.uiDialog.remove();
},

I added this:

closeable: function ( closeable ) {
this.options.closeable = closeable;
},

And then in the two close areas of the dialog code:

close: function() {

And

.click(function() {
self.close();
return false;
});

I added this short line of code:

if( options.closeable == false ) return false;

Of course you can add this code to the destroy function as to make sure you don’t kill it with a destroy either and I’m going to be adding it in there.

You can also send this through with the options when you initiate your dialog:


$("#editDialog").dialog({
modal: true,
overlay: {
"background-color": "#000",
"opacity": "0.75",
"-moz-opacity": "0.75"
},
resizable: false,
title: title,
height: 450,
width: 600,
closeable: false
});

And also here’s how you toggle between the two:

Make the dialog able to close:
$("#editDialog").dialog("closeable", true);

Make it so that the dialog can’t be closed:
$("#editDialog").dialog("closeable", false);

Well that’s it for right now. Just putting this up for future if I need it.

Programming In C Again

July 17th, 2008 | Stumble It! | Digg This | No Comments | Posted in Programming, Random


#include <stdio.h>
int main (void)
{

So it’s been approximately eight years since I’ve done C coding. And it is one of the harder languages, especially when you don’t touch it for a while. With coding if you move to a different language and don’t touch other languages much, you tend to start “forgetting” things. So this post is mostly for my own account to try and remember in the future.

Few things to remember:

    1. Any functions should be in a include file or above your main() call.
      Any variables in a function should all be declared at the top of the function.
  • For the first one, the compiler on the first machine didn’t “care” that a function I used “str_replace” was declared under main(). But when moving the source code to a second machine and compiling on that machine, it cared deeply about this and once I moved str_replace() above it, it worked just fine.

    As for the second thing. I spent hours last night trying to figure out why a variable I declared at the beginning of main() wasn’t sticking towards the bottom of main. This “char” variable wasn’t int the scope of a if/while statement or any other scope of the program, so it should have been sticking. Once I moved all the declarations to the top, problem seemed to be solved.

    These were just the two biggest head aches, but really quite simple compared to find a function that worked correctly for string replacing. I should have really probably used C++, but somebody said, C at the beginning and my thick headed brain decided on C instead of C++. But it is the first time of actually using a C program with MySQL database C API. So it was all fun in the end to see the program come out working.


    return 0;
    }

    Just A Update

    June 28th, 2008 | Stumble It! | Digg This | No Comments | Posted in Random

    So there’s been things that I’ve been wanting to put up here. A few tutorials on setting up certain servers. As I found out were a bitch to install. One tutorial I hope to get up soon is a SVN tutorial. Pretty simple tutorial actually, a lot better than having to search it out. So many sites tell you everything to do, but miss a step here or a step there. Which screws you over. It really isn’t that bad getting Apache2/SVN/WebSVN/SLL (using OpenSSL) all running, if you know the process.

    But I’ve been working a lot, both side and regular work hours. And haven’t really felt like writing the tutorial, even though I started the day after I figured it all out. Now my next process is figuring out how to make a WML/WAP/XHTML (mobile profile) site. I hate, I mean I hate with a passion WML/WAP shit. One of the worse standards out there right now. Think that cross-browser compatibility is hard, try cross cell phone compatibility! And then to do the correct content delivery system per carrier, per cell phone. Not easy shit and to think my job is supposedly easy.

    As for other things, today (or yesterday) Friday was Bill Gates final day as CEO of Microsoft. I’ve actually have had a little debate with a few friends about him this past week. A friend of mine thinks that nobody on Earth should have as much money as he has. My way of thinking, he’s made, he’s been successful and people keep paying him - so he deserves it. It’s not like he’s stealing from the poor if they give it to him.

    And final one, the great old George Carlin. One of the greatest comedians of all time died on Sunday. He will be greatly missed and it’s a damn shame I never made it to one of his shows. And really, can you say “Rest in Peace” or any fucking corny line like that for George Carlin? Just can’t figure out the right words for this guy. He’s under six feet of dirt or will be soon and dead that’s it and that’s probably the way he would have liked it to sound. So long George!

    Also, I have started a YouTube channel. You can visit it by clicking here. It’s basically my take on religion and Atheism, have any questions feel free to message me on YouTube with them.

    Tags: , , , , , ,