Friday, 15 May 2009
Animator Vs Animation
It's amazing how people can create these videos using just Flash, a lot of time and effort must have been put in for this creativity!
Friday, 1 May 2009
Packages!!

Found today's xkcd comic strip quite funny, now looking at eBay, you don't get quite the level of quality for 99p, see http://cgi.ebay.co.uk/MAKE-150-A-DAY-WITH-BUM-MARKETING-SECRETS-EBOOK-ON-CD_W0QQitemZ290309278574QQcmdZViewItemQQptZLH_DefaultDomain_3?hash=item290309278574&_trksid=p3286.c0.m14&_trkparms=72%3A1688%7C66%3A2%7C65%3A12%7C39%3A1%7C240%3A1318%7C301%3A0%7C293%3A3%7C294%3A50 and http://cgi.ebay.co.uk/Tesco-Clubcard-point-codes-4-life-30-000-points-a-year_W0QQitemZ170327122070QQcmdZViewItemQQptZUK_Tickets_Trave_Vouchers_Coupons_LE?hash=item170327122070&_trksid=p3286.c0.m14&_trkparms=72%3A1688%7C66%3A2%7C65%3A12%7C39%3A1%7C240%3A1318%7C301%3A0%7C293%3A1%7C294%3A50.
Addition for the Visual C++ Developer
.gif)
For those of you developers that are still using Visual C++, a new Visual C++ 2008 Feature Pack has been added :) for Visual Studio 2008, so now it has been updated from a couple of years ago, click on here http://www.microsoft.com/downloads/details.aspx?FamilyId=D466226B-8DAB-445F-A7B4-448B326C48E7&displaylang=en for the download.
The new and improved feature and functionility includes a much more modernised user interface with now the supply of the Office Ribbon User Interface, see above diagram, amongst many other new controls like dialogue boxes to the Standard C++ library. Hurrah!
There is also an updated feature called Smart Pointers that allow dynamically created C++ objects to be carefully handled and ensures objects to be deletely safely with the library function auto_ptr in handling these C++ pointers. For instance the code below, allows the transfer of ownership from one application to another for the auto_ptr copy constructor, for allowing to share the same memory resource: -
shared_ptr
ASSERT(0 != sp);
// increase reference count of shared object
shared_ptr
ASSERT(0 != sp2);
ASSERT(0 != sp);
See http://msdn.microsoft.com/en-us/magazine/cc507634.aspx for more information.
Double check the logic
As part of the task, I had been given some logic from a specification like this, and have to code (similar to this) in C++: -
On paper
There are 6 categories, A, B, C, D, E, and F.
Two images, image1, and image 2.
if (category == "A" || cateogory == "B")
[
Output Image1
]
if (category != "B" || category != "B")
[
Output Image2
]
The code that I wrote: -
if (category == "A" || category == "B")
{
output(image1);
}
if (category != "A" || category != "B")
{
output(image2);
}
Now this is wrong in terms of the logic, which I had found out that if it specifies this in the logic, the code doesn't reflect this.
This is because, say category A can fall into both the if statements, its an OR statement so it can meet the criteria of category B
Solution :
if (category != "A")
{
//Fall into the next one
if (category != "B")
{
Output(image2);
}
}
This solves the logical error.
On paper
There are 6 categories, A, B, C, D, E, and F.
Two images, image1, and image 2.
if (category == "A" || cateogory == "B")
[
Output Image1
]
if (category != "B" || category != "B")
[
Output Image2
]
The code that I wrote: -
if (category == "A" || category == "B")
{
output(image1);
}
if (category != "A" || category != "B")
{
output(image2);
}
Now this is wrong in terms of the logic, which I had found out that if it specifies this in the logic, the code doesn't reflect this.
This is because, say category A can fall into both the if statements, its an OR statement so it can meet the criteria of category B
Solution :
if (category != "A")
{
//Fall into the next one
if (category != "B")
{
Output(image2);
}
}
This solves the logical error.
Subscribe to:
Posts (Atom)