So… those guys you have at school who are jerks and douches are… much different when they are with their parents and/or elders. Their mannerisms and even they way they talk is much more submissive… and with that, it’s much more cuter
:3 <3
Archive for November, 2010
Epiphany
C++ TUTORIAL: Your TimeZone
Cause I’m bored as fuck and I finished my FileTime function in Sys360, I will tell you how to get your TimeZone adjustment in native C++. Most people won’t really use this, but there’s no fkn function on the web that grabs the TimeZone adjustment or native function for this, and for people trying to make time related functions that deal with timezone… well here…
#include <time.h>
typedef unsigned char byte;
typedef unsigned long long ulong;
typedef long long i64;
static i64 tzSecs(void) {
time_t t;
tm *ptr;
byte day;
ulong num[2];
t = time(NULL);
ptr = gmtime(&t); // Standard UTC time
// Get difference in seconds
num[0] = (ptr->tm_hour * 3600) + (ptr->tm_min * 60);
day = ptr->tm_mday;
ptr = localtime(&t); // Local time w/ time zone
num[1] = (ptr->tm_hour * 3600) + (ptr->tm_min * 60);
// If not the same then get difference
if (day == ptr->tm_mday) { // No date difference
if (num[0] < num[1])
return (num[1] – num[0]); // Positive ex. CUT +1
else if (num[0] > num[1])
return -(num[0] – num[1]); // Negative ex. Pacific -8
}
else if (day < ptr->tm_mday) // Ex. 1: 30 am Jan 1 : 11: 30 pm Dec 31
return (86400 – num[0]) + num[1];
else return -((86400 – num[1]) + num[0]); // Opposite
return 0;
}
Believe it or not… It took me a few days to realize that MS’s [dumb] FileTime function was calculated by UTC 0 time and my function was 8 hours behind… I forgot about Time Zones v.v So this lil function set it right ^_^
Sys360 Backtracking – COMMUNITY HALP
So I got bored and started up Sys360 again and I decided to want to add a few more features, but I would like some help getting some information because of the lack of time… and effort I want to put into this cause it bores me sometimes, but I’m the type that when I leave something unfinished, my tummy is unsettled XDDD After a few frustrating hours, I finally got my algorithm working for FileTime time stamps… they are gayyyyy D: why the hell would you want to track how many 100 nano second intervals it is since 1/1/1601, wtf??? Why not just make a friggen ulong and store the date, hey, you can even put milliseconds in there if you care D: wtffffff?? And I didn’t want to work on the complex STFS or FATX (although i made a lil progress) so I’ve been recreating my GPD class :3
If anyone could provide me with a few things…
Mainly I added KeyVault reading class (reads values out of the KV) but I don’t know the specific offsets to objects or whatever, and it would be cool if the community would help wif this :3
Also, info on XEX’s like decompression and decryption, other than that, I have everything else under *somewhat* control. :3
Also, RAVE TOMORROW
:D:D:D:D:D
Epic Small World Moment 0.o
So, I’m playing Gaylo: Reacharound, right? I get a random friend request from some furry (friend 1), I accept it. Apparently, his Xbox was freaking out and he couldn’t send messages to his friends, so he told another friend (friend 2) to send messages to all his [friend 1] friends, telling him that he couldn’t send messages out. Well, friend 2 saw my gamertag on his friends list, saw my name and where I lived and something he remembered way back when clicked on in his brain.
About 5-6 years ago, I played this retarded 2D, sprite, furry chatroom-game thing, and I had apparently met this kid on there. We talked for about a week, he was going through somethings like questioning sexuality n stuff, I think I prolly helped him or gave him advice or was just a friend or something, but I had influenced him so much, he kinda became obsessed wif me a little bit. Not like, stalker gunna rape me obsession, just a wow super awesome influence, need to remember!!!!111!1one! type of obsession.
Friend 2 was apparently that guy 0.o He remembered my full name and what state I live in and stuff, small fucking world indeed…