October, 2010

Qt C++ Screen Capture using BitBlt

So I got to thinking I wanted to be able to take abitrary screen captures based on some startx/starty -> endx/endy input. I found various sites showing how to do this, but most of them were pretty confusing. I thought I would post the final working code here. void RSystem::snap(int startx, int starty,int endx,int endy) [...]

Tags: , , ,

Posted in: c/C++, C/C++ Programming, Tips and Tricks, Topics, Tutorials | No Comments »

Samurai Sword with 1 million layers OMFGBBQTURNIP

I swear to Christ if I read one more comment by an idiot talking about Damascus Steel layered 1 million times, and the ultimate Japanese sword I am going to scream. How it’s done: You take four billets, if you don’t know what a billet is, then stop talking about forging. You fold those four, [...]

Tags: , ,

Posted in: Humor | 2 Comments »

HowTo JavaScript/jQuery place divs in a circle, calculate a cirlce etc.

So, I was working with my father, a physicist and mathematician, who wants to have a little math example done in javascript. We haven’t finished the meat and potatoes of the project, but one hurdle was the necessity to place 8 divs in a circle on the page. This is a variation on the Tirgrams [...]

Tags: , , ,

Posted in: Javascript Tutorials, jQuery/JavaScript, Tips and Tricks, Topics | 2 Comments »

Tip: Flex/AS3 keyboardEvent listener

If you are writing a flex app, you might get this error TypeError: Error #1009: Cannot access a property or method of a null object reference. if you do, it simply means that you are trying to do something with an object that hasn’t yet been created. If that object is the stage, then you [...]

Tags: , , ,

Posted in: ActionScript 3 Tutorials, Computer Science, Flex/AIR Tutorials, Tips and Tricks | No Comments »

HowTo Knock it off with crazy MYSQL queries and the qTranslate plugin unistall

We’ve all done it. Either we learn some tricks in MYSQL, or read a cool post about some obscure programming trick you can do with SQL and decide to try it in a pinch on a live database. Just don’t do it. 9 times out of 10 you have access to SSH, and PHP, and [...]

Tags: , , ,

Posted in: Computer Science, MySQL, PHP Tutorials, PHP/MySQL, Tips and Tricks, Topics | No Comments »

Powered by Wordpress. Design: Supermodne.