December 2010 - Digital Tool Factory blog December 2010 - Digital Tool Factory blog

The Digital Tool Factory Blog

An update on the mysterious PhotoShop color shift

The problem started happening to me again recently, the information I found at this link fixed it.

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog


29
Dec 10


Written By Steve French

 

How to prevent images and photos from being stolen your site

they're welcome 2itThe Problem: You need to prevent people from saving images and photos that are featured on your website

The Cause: There is no real solution to this – if you can see it online, you can copy it, but you can make it more difficult.

The Solution: Insert this bit of code in your BODY

tag ondragstart=”return false” onselectstart=”return false” oncontextmenu=”return false”

that’s it!

Thanks to HyperGurl for the initial start on this problem.

Creative Commons License photo credit: weegeebored

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog


27
Dec 10


Written By Steve French

 

An inspiring comment from Keith Smith on Mixergy

A stoic philosopherphoto © 2009 David Bleasdale | more info (via: Wylio)I was listening to Keith Smith on an old interview on Mixergy and he caught my ear with his description of losing most of his fortune in a business downturn.  It went something like this:

Andrew Warner (the interviewer): So you lost everything?

Keith Smith: Well, I had a lot of great experiences I wouldn’t have had otherwise.

Such a great (and classic Stoic way) of looking at events.

On another note, his company, Big Door Media has an interesting glossary of Game Mechanics and directory of game mechanic resources.

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog


07
Dec 10


Written By Steve French

 

Zachary Burt writes one of the better blogs about positive psychology

As those of you who know me personally know I have a new obsession in the form of positive psychology.  My main gripe is that I cannot find trustworthy online guides on the topic (like one would for, say woodturning or baking).  Thus I was delighted to find the  blog of Zachary Burt.  He has not written a huge amount of content, but the posts are well written and well reasoned.  Check out his posts on entrepreneurship and positive psychology.

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog


07
Dec 10


Written By Steve French

 

How to fix the copy file problem in C#

Cavalry moving forwardphoto © 1918 National Library of Scotland | more info (via: Wylio)The Problem: You need to copy a file from one location on the server to another and cannot remember how.

The Cause: It is too short and simple, and easily forgotten

The Solution: Just use the following code:

public static void CopyAndRenameFile(string OldPath, string OldFileName, string NewPath, string NewFileName)
    {
        if (File.Exists(OldPath + OldFileName))
        {
            File.Copy(OldPath + OldFileName, NewPath + NewFileName, true);
        }
    }

That’s it!

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog


06
Dec 10


Written By Steve French

 

How to fix the “Unable to cast object of type” problem

Drill Bitsphoto © 2008 Justin Gurbisz | more info (via: Wylio) The Problem – you have several asp.net web controls (.ascx files) in your website project and for no obvious reason you suddenly get the error “Unable to cast object of type ‘YourWebControlName_ascx’ to type ‘YourWebControlName_ascx’.”  You recompile and the program works, then stops working.  You recompile and it works again, then it stops working, ad infinitum, but the working times become less frequent, and eventually the site stops working at all.

The Cause – ASP.net will cache the wrong things.  In my case I converted the project from a full solution to a regular website and did not remove the compiled files (SolutionName.dll) in the bin and obj directories, which compounded the problem.

The Solution – Delete everything in in the “Temporary ASP.net Files” directory, which (on my machine) was located here C:WindowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files.  Then delete everything in obj directory, and the solution files from the bin directory.  That should fit it!

This was more of a stupid error on my part than a great mystery, but problematic nonetheless.

 

This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog


03
Dec 10


Written By Steve French

 




Copyright 2011 Digital Tool Factory. All Rights Reserved. Powered by raw technical talent. And in this case, WordPress.