Archive

Author Archive

Photoshop under linux

April 12th, 2008

This morning i managed to install run Photoshop under Ubuntu Gutsy. Wine
never stops to amaze me.

At the bare minimum, i was impressed at how the installation was flawless.
well….almost ;) ….it looked like it had crashed towards the end, so i
killed the process, but by that stage, everything had already been installed
and registered, it seems.

Once installed, I had to add the Photoshop.exe to run under Windows 2000
emulation, otherwise things like keyboard accelerators aren’t recognised.

and how did it run? Brilliantly. it was clean and fast…..lightning fast.
Working on hi-res images, rotating layers, applying layer masks – all of it
worked at full speed…you’d never guess there was an emulation layer
sitting in the middle.

the only gotcha i seem to be coming across is the error message: “Unable to
continue because of a hardware or system error. Sorry but this error is
unrecoverable.”. It seems that this happens when the user profile becomes
“corrupt” and the only way to fix it is to blow away the photoshop settings
profile on boot. To do this, hold down immediately after
running photoshop, and answer yes when it asks you to delete the preferences
file.

appears tat you have to do this everytime you run the program though. O_o
…..i’m not convinced and i’m sure more digging around will disprove that.

Rex IT & Software

Gotcha: Converting .NET 1.1 website to .NET 2.0 Web Application

April 9th, 2008

Remember that when you’re converting from an ASP.NET 1.1 web site
project to an ASP.NET 2.0 web application, you need to configure IIS to
run as an application, and run in a .NET 2.0 app pool.

Without doing this, you’ll end up with a broken error like this:

Server Error in ‘/’ Application.

Parser Error=20
Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse
error details and modify your source file appropriately.=20

Parser Error Message: Could not load type ‘Project1._Default’.

Source Error:=20

Line 1: < %@ Page Language=3D"C#" AutoEventWireup=3D"true"
CodeBehind=3D"Default.aspx.cs" Inherits=3D"Project1._Default"%>
Line 2: =20
Line 3:

Source File: /project1/default.aspx Line: 1=20

Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433

Rex IT & Software

Making Sexy CSS Buttons

March 6th, 2008

http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html

Rex IT & Software

HD-DVD Discontinued

February 20th, 2008

http://www.toshiba.co.jp/about/press/2008_02/pr1903.htm

Okay so i got this one wrong.

hopefully now we see the market flood with cheap BluRay players as
manufacturers don’t need to gamble on which technology will win out. I bet
Sony are feeling relieved at the moment ;)

Rex IT & Software

CSS Rollovers without Image Flipping

February 18th, 2008

http://wellstyled.com/css-nopreload-rollovers.html

this technique changes the background-image offset, and the background image
contains the states for normal and hover. one single image needs to be
loaded – not several.

Rex IT & Software

Tips for Optimising Ubuntu

February 12th, 2008

I’m trying these out – lets see how they go….

http://www.socialretard.co.za/index.php/2008/01/19/optimizing-ubuntu/

Rex IT & Software

NRL Tipping Comp 2008

February 9th, 2008

Comp Name: Rex’s NRL Tipping Comp 2008
Comp #: 121315
Comp Password: ThePasswordIsWhat

To join:

1) Go to http://www.oztips.com/
2) Click the ‘REGISTER’ button on the homepage and set-up a Login (if you
don’t already have one with OzTips).
3) Once you have successfully registered a Username and Password, click the
‘JOIN A COMP’ button.
4) Enter the Comp # and Comp Password details above.
5) That’s it! Full instructions on how to Tip can be found on the website by
clicking on the ‘Help’ link in the top header.

For more information, visit http://tipping.xerxesb.no-ip.org

-xerx

Rex IT & Software

3rdRail Craziness

November 3rd, 2007

Installed 3rdRail (from CodeGear) a few days ago, and whenever i try to run gem, i get the following error:
/usr/local/lib/ruby/1.8/i686-linux/digest/md5.so: libcrypto.so.4 : cannot open shared object file: No such file or directory
The only google article i could find about it was in japanese (google translate rocks – http://rihi.cocolog-nifty.com/blog/2007/09/3rdrail_ubuntu__7fd4.html) and (i think) he suggested running the following command:
# Ln – sf / usr/lib/libcrypto.so.0.9.8 / usr/lib/libcrypto.so.4
which indicates to me that there is a difference between Fedora Core 7 (which 3rdRail is approved and tested against) and Ubuntu Gutsy (which i’m running).
EIther way running the command above resolved all the problems and gem continued to function as expected….Too bad the 3rdRail documentation is also quite poor – not a great start :(

Rex IT & Software

Potato Powered Webserver

July 18th, 2005



Heres one just for the nerds…

You heard right….this “beast” runs at
76KHz and draws its power from 5 potatoes, running at roughly 1 millionth of
the power of a 386 motherboard.

 

http://d116.com/spud/

 

fun fun style='font-size:10.0pt;font-family:Wingdings'>J

 

Rex IT & Software

This have been quiet lately…

July 18th, 2005


And I’m fully aware of it too – sorry :P

 

After coming back from holiday its been hard to get into the
swing of things – I still have over 2000 MSDN blog posts to sort through….

 

 

 

 

 

Rex IT & Software

The day the UNION saved my bacon

July 5th, 2005



namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"
downloadurl="http://www.5iantlavalamp.com/"/>

Sounds weird, right? Not quite :)

 

Imagine if you will, Xerxes sitting at his work desk on a
Saturday LATE afternoon
really pushing to get his work done to meet a looming deadline. At this point
in the story, my current task is to create an SQL query to load the same
information from three separate tables, but return the data as one column in
the result set. (See picture below…

 

face=Arial>

 

 

Okay so we have three tables like in the diagram
above….Tables B and C have a foreign key back to Table A. What I needed
to do was grab a list of ALL *_Name fields in each table and have them returned
in one column (because this “Name” field became one of the columns
in an outer query – ie: this also had to be a subquery.

 

At first it looks like a simple INNER JOIN on A_FK –
A_PK but if you do that then you’ll still end up getting 3 columns in the
SELECT clause…

 

Funnily enough the answer is so simple, but eluded me at the
start….Simple set theory dictates that the result of a UNION operation on
any two sets is the conglomeration of those two sets excluding
duplicates….That means I just had to UNION 3 select statements together,
and viola, all values for that “name” across each table came into
one field…(with a bit of field aliasing and inline table’ing :P)

 

For those interested – here is what the SQL looked
like (for obvious purposes, I cant post the real code, but hopefully this
conveys the point)

 

SELECT

           
A.PK,

           
NAMES.Name

           
D.Field,

           
E.Field,

           
F.Field,

           
G.Field,

FROM

           
A JOIN

           
(

                       
SELECT

face=Arial>A2.A_PK color=blue>AS PK,

face=Arial>A2.A_NAME color=blue>AS Name

                       
FROM A A2

 

                       
UNION color=blue>

 

                       
SELECT

face=Arial>B.B_PK color=blue>AS PK,

face=Arial>B.B_NAME color=blue>AS Name

                       
FROM B

 

                       
UNION color=blue>

 

                       
SELECT

face=Arial>C.C_PK color=blue>AS PK,

face=Arial>C.C_NAME color=blue>AS Name

                       
FROM C

 

           
) AS NAMES color=blue>ON
NAMES.PK = A.PK

           
JOIN D color=blue>ON
D.D_PK = A.A_PK

face=Arial>JOIN size=2 face=Arial> w:st="on">E ON
E.E_PK = A.A_PK

face=Arial>JOIN size=2 face=Arial> F color=blue>ON F.F_PK = A.A_PK

face=Arial>JOIN size=2 face=Arial> G color=blue>ON G.G_PK = A.A_PK

WHERE

           
Blah….

image001.gif
image002.gif

Rex IT & Software

Do YOU own an API?

June 23rd, 2005


I heard the rumours, but this seems to have sealed it –
employees at MSFT basically “own” blocks of code for themselves.

 

title="http://blogs.msdn.com/michkap/archive/2005/06/22/431394.aspx">http://blogs.msdn.com/michkap/archive/2005/06/22/431394.aspx

 

Its not that I disagree with the policy, and in fact I’m
a de-factor owner of entire modules at my current
place of work
, but owning a few API’s seems funny – I guess
when we’re talking on the scale of Windows, you’d need to have incredibly
fine granularity of code ownership – the worst thing would be for a bug
to arise in a block of code, and for no one to know what it does or who should fix
it.

 

Just interesting to think….

Rex IT & Software

.NET Debugging

June 20th, 2005


Eran Sandler has just started blogging….He’s a
pro when it comes to debugging using native-low level debuggers and always has
lots of interesting stuff to say.

 

Read Here!

 

 

 

Rex IT & Software

The Bungie.NET website

June 17th, 2005


href="http://msdn.microsoft.com/architecture/default.aspx?pull=/library/en-us/dnbda/html/bungie.asp">This
article over at MSDN discusses the design, architecture and implementation
of the Bungie.NET website. It’s really quite interesting to read how they
leveraged .NET and other technologies to create such a successful site.

 

( style='font-size:10.0pt;font-family:Arial'>Taken from article style='color:navy'>)

Summary: face=Arial> The Bungie.net
site is the online companion to the wildly successful Halo 2 video game for
Xbox, released in November 2004 by Microsoft. The site also acts as the
community hub for all things related to Bungie games. Built with the Microsoft
..NET Framework, Bungie.net serves up more than 4 million pages per day,
accumulating 300 gigabytes of online game statistics per month from more than 1
million games played daily. Deemed "Most Innovative Design" by IGN
Entertainment in 2004, the site provides innovative ways for users to view game
statistics and details as well as interact with each other through forums and
team Web pages. The release of the Bungie.net site represented a milestone in
online console game play. This case study provides insight into this
accomplishment.

 

Rex IT & Software

Microsoft Invites Hackers

June 17th, 2005


Yeap….In what has been dubbed the href="http://news.com.com/Microsoft+meets+the+hackers/2009-1002_3-5747813.html?tag=nefd.lede">“Blue
Hat” conference in US, Microsoft invited several security researches to
demonstrate various aspects of Windows being compromised, in an attempt to show
that the company is serious about squashing security holes…

 

Very interesting to read….

 

 

 

Rex IT & Software