Stand up straight!

1

Posted by Jaime | Posted in Health | Posted on 27-11-2007

Hey kids! What’s worse than being forced to watch “The Hills”? I know, I know!!! Being told over and over again by your parents to stand up straight… And you know what… They’re right. As much as it sucks to admit your parents are right, sometimes, this is a bit of advice that actually can save you some big time pain.

Everyone eventually gets back pain. Some people get it quicker than others and trust me… Back pain really really sucks. It’s not like what you think it is. It’s not like what you see on TV and it’s a lot more than your back. When you get back pain, sometimes it only affects your back. Sometimes, it gets much worse and can travel to you legs. Yes, it does travel to your legs and that is just part of the freakiness. 

So how does this happen? Believe it or not, when you slouch, you are forcing your spinal disks backwards toward your spine. When you stand up straight, you distribute your weight equally on your disk and it stays centered. So standing up straight helps, but that’s not the only thing that helps your back. Believe it or not, exercise actually helps. Now, if you’re lifting 200 lbs over your head, your going to mess up your back no matter what! But, if you use a treadmill, do some pull-ups, your actually helping your back!

For those of us who work in an office and are already doomed, like me, there are some things you can do. Check out this website for some good exercises you can do to strengthen your back: http://www.mayoclinic.com/health/back-pain/LB00001_D&slide=1

Hey, if you have any tips, share your wisdom and let the world know! Save your back!!!

Getting the datatype of an object

0

Posted by Jaime | Posted in Coding | Posted on 08-11-2007

In Java and C#, it’s really easy getting the datatype of an object that you are working with. If you don’t know what I am talking about, post a comment and I’ll explain it in more detail.Well anyway, surprisingly, I never had the need, until now, to do the same thing in C++. In other languages, you have the “typeof” keyword that allows you to get the datatype of an object.

This keyword exists on the Mac, but doesn’t do the same thing. To get the same type of functionality, you can use the “typeid” class to get the datatype and name of the object you are working on:

void GetMyType()

{

int i = 0;

cout << typeid(i).name();

}  

Enjoy!

Tell me how you really feel about GDB…

0

Posted by Jaime | Posted in Coding, Funny | Posted on 01-11-2007

I have some complaints about working with Xcode and GDB, but this guy had a mouthful to say: Click here. 

You know, most of us developers work on timelines that are already too short and the people mandating the schedules live in their own world, but this is something we all live with and having a debugger that takes time away from us is counterproductive.Apple has done a great job with their operating system, there is no denying that, but there is still some work that has to be done with their debugging tools. I’ve come from using Visual Studio, which is very reliable… I know, I know, the word reliable is usually not associated with Microsoft… ** cough cough ** red-ring-of-death!! ** cough cough ** blue-screen-of-terror!!! ** cough cough ** 

Uh-um… excuse me. Anyway, Microsoft has done a good job with their debugging tools and so shame on you Apple for letting your competitor shine where you should have.