Wednesday, July 11, 2012

How to figure out what a variable really is?

Wow it's been a while since I posted on this blog! I came across a stupid error today (the error wasn't stupid, I was...) where I needed to use an object in a function, but for some reason, PHP didn't think it was an object.

Eventually I used: gettype, then get_class, even tried a little is_object.  Of course all of them returned that it was indeed an object, it was the class I thought it was, and yes.. no really.. it's an object.  No matter what I tried however, any get call failed.
Turned out I was using said function in a couple places, and RIGHT BEFORE I needed it, I was setting that var to an array, then back to an object. It was failing on the array call, and not even in the place I thought it was failing.

Welp.. now I know to scroll back and read the ENTIRE log instead of tailing the last few lines.


Thursday, June 10, 2010

Treadmill

I own one.

Fascinating right? Every morning I'd make the trek (short walk) to the exercise room at my apartment complex, and about half the time, someone would be using MY treadmill. Irritating right? I'll take just about any excuse not to exercise, so I was basically skipping half my workouts.

I bought a treadmill.

Anyone that's been in my apartment knows, there is literally no space for a treadmill. I made space. It does fold down to quite flat, and I can put it under the bed (not easy nor convenient but still possible) if I really have to (please don't come over so I have to). I can't be any place in my apartment (except my bed!) without having to look at it. Good news! Every day since I've had it, I've walked/jogged on it for an hour or more. I tried to play "Red Dead Redemption" while walking, but that proved more difficult than I had anticipated (can't aim).

How long will this last? Hopefully until I break it from overuse :D

BFN

Wednesday, April 21, 2010

Forgetting my tar gzip for no reason

I just can't seem to retain the usual tar gzip commands I use.. SO here is my blog entry that is also a cheat sheet for commands I use often, but still can't seem to remember.

Tar Gzip Create: tar -czvf filename.tar.gz folder/
Tar Gzip Expand: tar -xzvf filename.tar.gz

Grant for Mysql;
GRANT <permissions ALL, SELECT> on DB.Table(*) to user@<ip or like '10.%'> identified by 'pwd';

Copy, preserving permissions, verbosely, recursively, forcing:
cp -pvfr files where

If I think of more (as I google them because I've forgotten them again) I'll edit my own post.. since this post is all for me anyhow :D

Deleting a block in VI:

First line: ma
Last line: :'a,.d


BFN

Thursday, April 1, 2010

UFO's and other Sewing projects

It's been SO long since I've spent some decent time sewing, so I've decided to dedicate tomorrow, and perhaps even Saturday and Sunday to getting some UFO's out of the way, as well as playing with some awesome new patterns and fabric I've acquired recently.

I ended buying a ton more fabric recently when it was on sale from fabric.com for $1/yard. Now I'm going to sit down and make at least one skirt with the 20 or so yards of different fabric I bought. I know.. that's a lot of fabric, so I'm self banned from buying new clothes until I make (and finish) at least two pieces.

I was thinking of making a pencil skirt from a pattern I recently bought. Last night I sat down to cut out the pattern and realised I'd bought a pattern one size too small. :( I could scale it, but I think instead I'm going to use the sloper I made in pattern making class a while back. That's what it's for after all!!

Today I just need to make sure I gather together all the notions, so tomorrow.. I'll be ready finally.

I miss boot camp terribly, but I don't think I'll be able to go back at all. The cost is just too prohibitive.

I've had a tough time getting up early ever since the time changed to daylight savings. This morning I had Lou literally PUSH me out of bed when he got up to leave for work, and I managed to get my jog in before he had left. Now if only he was there 5 days a week to give me a shove.

BFN

Monday, February 8, 2010

svn lock frustrations

Again with the technical geeky posts I know it's been a long time.

Every week or so, someone from my team decides to run an SVN update on staging using root. I don't know why, I don't care. Short of actually just deleting the folder, and checking out a fresh copy, here is what I do to fix it all:

The error:
svn: Can't open file 'PATH/TO/YOUR/FILES/.svn/lock': Permission denied

The solution:
cd /PATH/TO/MY/PROJECT
sudo find . -exec chown apache:development {} \;
sudo find . -exec chmod 2770 {} \;
svn cleanup

Usually I'll login as root to do the first three steps, then go back to my user to run the cleanup and updates.

LOL to people who don't like this solution, if it doesn't work for you? keep looking. Posting comments complaining isn't going to help.

BFN.

Tuesday, December 29, 2009

WOW, Power Auras DK export

Friends and Family not interested in WOW. This post will contain a large amount of gibberish.

I searched high and low to find any export from the Power Aura mod for a DK. Couldn't find one. I was forced (dragged kicking and screaming) to learn how to use the mod, and create my own. In the interest of others who might not like to learn then either... Here is my DK Frost spec export. It includes a horn of winter alert if you're in combat and it's not on, as well as an alert for killing machine and freezing fog.
I plan on making more for the holy priest, as I'm sure I'll be helping Lou make them for his chars too. Let me know if there is a spec you'd like an export for, and I'll gladly make more!

BFN

Here is the icky paste:
Set=Page 1@
Aura[1]=Version:st3.0.0E; gcd:bofalse; b:nu1; anim1:nu1; g:nu0.88627450980392; optunitn:bofalse; ignoremaj:botrue; stacksLower:nu0; target:bofalse; icon:stInterface\Icons\Spell_Frost_ArcticWinds; size:nu0.75; torsion:nu1; r:nu0.85098039215686; y:nu-30; x:nu0; customname:st; groupany:botrue; isAlive:botrue; timerduration:nu0; unitn:st; bufftype:nu1; stacks:nu0; focus:bofalse; raid:bofalse; texture:nu61; alpha:nu0.75; aurastext:stRime; symetrie:nu0; owntex:bofalse; isResting:bofalse; duration:nu0; mine:bofalse; multiids:st; inVehicle:bofalse; speed:nu1; anim2:nu0; stacksOperator:st=; realaura:nu1; InactiveDueToState:botrue; threshold:nu50; exact:bofalse; textaura:bofalse; sound:nu26; wowtex:bofalse; groupOrSelf:bofalse; customsound:st; combat:nu0; id:nu1; inParty:nu0; HideRequest:bofalse; Active:bofalse; aurastextfont:nu1; buffname:stfreezing fog; inRaid:nu0; tooltipCheck:st; customtex:bofalse; stance:nu10; spec2:botrue; isSecondary:bofalse; thresholdinvert:bofalse; spec1:botrue; Debug:bofalse; beginSpin:bofalse; Showing:bofalse; UseOldAnimations:bofalse; begin:nu0; off:bofalse; party:bofalse; texmode:nu1; inverse:bofalse; ismounted:bofalse; targetfriend:bofalse; randomcolor:bofalse; finish:nu1@
Aura[2]=Version:st3.0.0E; gcd:bofalse; b:nu1; anim1:nu1; g:nu0.89411764705882; optunitn:bofalse; ignoremaj:botrue; stacksLower:nu0; target:bofalse; icon:stInterface\Icons\INV_Sword_122; size:nu0.75; torsion:nu1; r:nu0.73725490196078; y:nu-30; x:nu0; customname:st; groupany:bofalse; isAlive:botrue; timerduration:nu0; unitn:st; bufftype:nu1; stacks:nu0; focus:bofalse; raid:bofalse; texture:nu62; alpha:nu0.75; aurastext:stKM; symetrie:nu0; owntex:bofalse; isResting:bofalse; duration:nu0; mine:bofalse; multiids:st; inVehicle:bofalse; speed:nu1; anim2:nu0; stacksOperator:st=; realaura:nu1; InactiveDueToState:botrue; threshold:nu50; exact:bofalse; textaura:bofalse; sound:nu27; wowtex:bofalse; groupOrSelf:bofalse; customsound:st; combat:nu0; id:nu2; inParty:nu0; HideRequest:bofalse; Active:bofalse; aurastextfont:nu2; buffname:stKilling Machine; inRaid:nu0; tooltipCheck:st; customtex:bofalse; stance:nu10; spec2:botrue; isSecondary:bofalse; thresholdinvert:bofalse; spec1:botrue; Debug:bofalse; beginSpin:bofalse; Showing:bofalse; UseOldAnimations:bofalse; begin:nu0; off:bofalse; party:bofalse; texmode:nu1; inverse:bofalse; ismounted:bofalse; targetfriend:bofalse; randomcolor:bofalse; finish:nu1@
Aura[3]=Version:st3.0.0E; gcd:bofalse; b:nu0.22745098039216; anim1:nu1; g:nu0.2; optunitn:bofalse; ignoremaj:botrue; stacksLower:nu0; target:bofalse; icon:stInterface\Icons\INV_Misc_Horn_02; size:nu0.75; torsion:nu1; r:nu1; y:nu-30; x:nu0; customname:st; groupany:botrue; isAlive:botrue; timerduration:nu0; unitn:st; bufftype:nu1; stacks:nu0; focus:bofalse; raid:bofalse; texture:nu44; alpha:nu0.75; aurastext:st; symetrie:nu0; owntex:bofalse; isResting:bofalse; duration:nu0; mine:bofalse; multiids:st; inVehicle:bofalse; speed:nu1; anim2:nu0; stacksOperator:st>=; realaura:nu1; InactiveDueToState:botrue; threshold:nu50; exact:bofalse; textaura:bofalse; sound:nu23; wowtex:bofalse; groupOrSelf:bofalse; customsound:st; combat:botrue; id:nu3; inParty:nu0; HideRequest:bofalse; Active:bofalse; aurastextfont:nu1; buffname:sthorn of winter; inRaid:nu0; tooltipCheck:st; customtex:bofalse; stance:nu10; spec2:botrue; isSecondary:bofalse; thresholdinvert:bofalse; spec1:botrue; Debug:bofalse; beginSpin:bofalse; Showing:bofalse; UseOldAnimations:bofalse; begin:nu0; off:bofalse; party:bofalse; texmode:nu1; inverse:botrue; ismounted:bofalse; targetfriend:bofalse; randomcolor:bofalse; finish:nu1@

Monday, December 21, 2009

That time of the year

It's that time of the year again, and again I find my purse rather empty. Last year I made tote bags, but this year I want something a bit quicker.

I've decided to make some little lined cosmetic bags. For my dance instructors, I'm going to make some lined drawstring shoe bags (for their dance shoes).

I still haven't figured out what fabric to use, for the shoe bags something a little "manly" and for the cosmetic bags I might use a variety of fabrics, mostly so that I can give some to boys to use as a toiletry bag.

I'll do one of each as a test run, then setup a production line so I can do as many as possible tonight and tomorrow night, then leave the rest for Thursday when I'm off work.

I am a little concerned the homemade presents seems a little cheap, but I think it's a lot nicer than a gift card, and I can't think of stuff to get people.

Boot camp finished on Friday. It was very sad. I can't believe another one is over!
On our final jog, I managed to almost keep up with the fast runners. I finished it well before the rest of the ladies, and I was very pleased. Misty took me aside and said I was doing a lot better, improving all the time, I was relieved. Part of the problem with not actually losing any weight while trying so hard, is that niggling voice which says "you're not trying hard enough".
Today I met up with another boot camp lady (Mara) and we did a warm up walk, then jog, then shuffled the cards from the Fit Decks I bought (Bodyweight, Dumbbell and Core) and gave ourselves a really good workout! I know it wasn't a boot camp level workout though, because at no point during the workout did I think "I can't do any more of these". Going to get a kitchen timer I can set for 30 seconds, and push ourselves harder. Counting reps gets distracting, and we have to do so many to get a Misty style workout.

Tomorrow morning I'm going to sew instead of work out. Wednesday Mara has agreed to meet up again, then probably nothing except skiing until next week! Can I go so long without a workout? Probably not, will have to think of something in the interim.

BFN
 

Made by Lena