| Commenting Trickery. |
|
|
| 09:43pm 24/06/2008 |
| |
|
music: Iron Man by Black Sabbath
|
When I'm testing out two different versions of code, and I want to see what the differences are between their output, there's an easy way to switch the activity between these two different sets of code:
/**/
Do_Action("Alpha");
/*/
Do_Action( "Beta");
/**/
|
In the above code, as you can see from the coloration, Do_Action("Alpha"); is the only code that is going to be executed. But if I remove one of the asterisks in the first comment, you'll see a different set of code:
/*/
Do_Action("Alpha");
/*/
Do_Action( "Beta");
/**/
|
Why does this work? In the re-colored parts below, you'll see that the comment controls, that is, the parts the control where the comments start and end, is in green, but the actual comments, the stuff in the comments, is in red. I've also moved the actual comments into a 3rd, seperated line. You can see that by simply removing the first asterisk in the first comment, we do not change the number of comments (always 2), but instead simply change what parts of the code is commented out, and which parts are left in.
/**/
Do_Action("Alpha");
/* /
Do_Action( "Beta");
/* */
|
/* /
Do_Action("Alpha");
/ */
Do_Action( "Beta");
/**/
|
It's a nice little trick, might come in useful for you some day I hope.
Always abuse your languages! |
|
| |
|
Post |
| |
| One month. - Barenaked Ladies eat your heart out! |
|
|
| 06:12pm 31/01/2008 |
| |
mood:  ecstatic
|
It's been one month since I quit smoking. What have I learned in that month? The following:
#1 It is hard to quit smoking. #2 It is even harder to do it cold turkey. #3 It is even harder than that to quit when you brother in law who smokes comes back into town. #4 Other smokers tend to be humored that you think you can quit. #5 That attitude helps since you want to show them up. #6 Your significant other can help you remember why you're quitting. #7 Your significant other can make you wonder why you're quitting. (Just kidding.) #7 (For real real, not for play play) The extra stress of knowing you can't have a cigarette to deal with the stress you have is like 5 times as bad. #8 You have to want to quit. You can't quit for someone else, you have to quit for yourself. #9 Getting to a month makes everything else worth it, knowing you'l be there later in life for your significant other (Gabi), friends (Jaime), and family (Ari, Nathan, Jojo, and Adam). 10# Smokers smell bad. |
|
| |
|
Post |
| |
| Moving in! |
|
|
| 09:18am 02/11/2007 |
| |
Well, we got our bed and 2 dressers and our computers moved in (the two that Gabi's letting bring with me, plus her computer), and the comcast guy should be here any minute, so I should have internet soon. (Posting from my phone at the moment) So I feel like we're pretty much moved in, which is nice. We'll be moving everything else over later, so here's to hoping everything goes well with our move as well as with Adam and Michael's. Have fun all! |
|
| |
|
Read 1 - Post |
| |
| |
|
|
| 08:16pm 10/10/2007 |
| |
Posting from my phone! Woot! |
|
| |
|
Post |
| |
| |
|
|
| 03:16am 22/09/2007 |
| |
In work related news, a short, effeminate black man that calls himself C-Tone (Think of an in-the-closet T-Bob from http://somethingpositive.net/ with more melanin.) in my class at West has been bragging about the fact that he's a player, in that he's dating 3 women, and keeping it from all of them.
So I got one of their numbers and texted her "Are you one of C-Tone's girlfriends?"
Adam, thou hast taught me well in the art of "Stirring up shit".
In boredom related news, I'm fucked up:
Of course, as all of you know, I'm not Histrionic, I'm just helping people by showing them they should be paying attention to me. Also, I'm not Narcissistic, I'm just really freaking awesome and I just happen to be aware of it. And finally, I'm not Obsessive Compulsive, I just like to balance out everything that touches me so that it touches both sides of my body in the same place with the same pressure, that way my brain doesn't flip out and start making me walk in circles.
Ok, ya, I'm Freakish, Unstable, Crazy, Kooky, Eccentric, Damaged, Unpredictable, and Predatory. Or F.U.C.K.E.D.U.P. for short. |
|
| |
|
Post |
| |
| |
|
|
| 12:52am 21/09/2007 |
| |
Ok, you ever read a webcomic and say "Heh, thats funny, but no where near realistic"? Well, in reference to http://somethingpositive.net/sp06062007.shtml, I stumbled upon the dating profile of a burn victim. Not an inmate, but damn, aside from the apparent minor humor, there is one thing: All things below, aside from the bolding (the emphasis is mine), are left alone, so consider it [sic]...
dream girl adventurous dream girl seeks friendship a nd love Location: Merrick, NY Age: 47 Eye Color: Brown Height: 05 feet 02 inches Interested in: Friendship, Dating, Serious Relationship, Condition(s): Burn Victims, Condition(s): Burn Victims, Looking for a Man Between the ages of 48 and 55 Smoking: Not at All Drinking: Socially Education: Grad Ethnicity: Caucasian Religion: Christian Children: No Want Children: Perhaps Favorite Books: I liike books written by James Patterson. or Mary Higgins Clark such as Loves Music Loves to Dance. Favorite Music: anything slow, soft rock Favorite Movies: love stories Favorite Hobbies: pets A Little More About Me: I'm looking for friendship to start off and then let's see where that goes. What I am looking for: i'm looking for a man that is honest, understanding, caring and nonjudgmental. A best friend that will accept my ideas without reservation or judgment.
Apparently, the burn victim doesn't like smoking. Hmm... |
|
| |
|
Read 1 - Post |
| |
| Posted using TxtLJ |
|
|
| 07:53pm 20/09/2007 |
| |
Adam! Download Thriller! |
|
| |
|
Post |
| |
| Tonight was good. |
|
|
| 11:19pm 02/09/2007 |
| |
So, tonight silent_r_infork and I had an encounter with a "quote unquote" gentleman.
This "gentleman" hit on nipperstixchik (my fiance for the uninitiated [unintelligent]) and then later put his arm around silent_r_infork's shoulder and tried to insult him. silent_r_infork then put his mouth near the "gentleman"'s ear and whispered "Remove your arm, Now." and after he had done so, whispered, "Don't ever touch me again." with this expression: 
Later on, silent_r_infork and nipperstixchik told me the full story about the "gentleman" hitting on her, (drawing a picture of her was included) and silent_r_infork defending her honour (yes, I can be British if I want to, damn it!) After I understood what the situation was, I asked silent_r_infork to turn around so that I could go back and "explain the intricacies of courting my common law wife" to the "gentleman". By that I mean that silent_r_infork drove me back to the party so that I could give him a hug and whisper into his ear "If you ever hit on my girlfriend again, I swear to God I will kill you and hide your body where no one will ever find it. And the fact that I don't have a criminal record should be proof enough of my skill."
silent_r_infork and I feel good about the party, and our complete deconstruction of the "gentleman"'s comprehension of his place in the world and his role in it. |
|
| |
|
Read 2 - Post |
| |
| Posted using TxtLJ |
|
|
| 08:56am 02/09/2007 |
| |
Where did mankind get the idea that he we don't have any unresolved issues when we die, we don't stay behind as ghosts, or something? |
|
| |
|
Post |
| |
| |
|
|
| 06:12pm 01/09/2007 |
| |
I'm not sure why this needs to be posted, but my subconscious says the lack of an attached face to the art of S*P has restricted my comprehension of it recently. (Have I mentioned that my subconscious seems to be getting less abstract to my point of view, almost to the point of being like I'm thinking along 2 different lines at the same time?)
HERE! |
|
| |
|
Post |
| |
| Posted using TxtLJ |
|
|
| 02:49pm 30/08/2007 |
| |
Phone aaa |
|
| |
|
Post |
| |
| Posted using TxtLJ |
|
|
| 09:46am 30/08/2007 |
| |
Here i sit, my cheeks a-parted, i came to shit, but only farted. |
|
| |
|
Read 1 - Post |
| |
| Posted using TxtLJ |
|
|
| 08:35am 27/08/2007 |
| |
n the break room. This particular test took me 7 minutes, so obviously i now have 1 hour and 23 minutes to kill. woohoo. |
|
| |
|
Read 1 - Post |
| |
| Posted using TxtLJ |
|
|
| 08:35am 27/08/2007 |
| |
Lj well, i'm bored at work today. They gave us a test, told up that we had an hour and a half To get the test done, and when we were done, we could sit i |
|
| |
|
Post |
| |
| Posted using TxtLJ |
|
|
| 09:05am 23/08/2007 |
| |
west is a joke, and the IT here is a waste of space, and they waste air. |
|
| |
|
Post |
| |
| |
|
|
| 02:25pm 21/08/2007 |
| |
You know how you know I have too much fucking time on my hands?
I found a way to run linux programs over the network on my windows machine, and while the computer i'm at is running windows, the programs I'm using are running on a linux machine. And the programs look like they are running on windows.
I've lost my fucking mind. |
|
| |
|
Read 2 - Post |
| |
| NSFW |
|
|
| 11:55pm 15/08/2007 |
| |

Closest thing to albino porn yet. |
|
| |
|
Read 2 - Post |
| |
|
|
|