header image
 

Alejandro Parody – Sing along to the tune of Alejandro by Lady GaGa

I know that you are dumb
And I know you cant google
But I just cant keep answering anymore
how do i know?

He’s got both hands
in his pocket
and he wont look at you,
Wont look at you

he hides dumbness
En su bolsillo.
Has his boss round his finger.
Too bad for you.

you know that i hate it dude
so run as fast as you can go
At this point I gotta choose,
nothing to loose.

Don’t call my name.
Don’t call my name, how do i know?
I’m not your b*tch.
I’m not your b*tch, how do i know?

Dont wanna search for obsolete stuff
Just want a better job huh?
Don’t call my name.
Don’t call my name, how do i know?

how do i know?
how do i know?
how do,how do i know?.
how do,how do i know?. [2x]

Category:  Uncategorized     

Converting an ASP.NET site into a SharePoint site

Converting an ASP.NET site into a SharePoint site – CodeProject

Category:  Uncategorized     

GridView formatting a datetime column

DateTime Format in gridview colum – ASP.NET Forums

See this post on how to format a datetime column
also how to create links that have formatting (eval overloading explained here)

Category:  Uncategorized     

Run As Different User (Right Click option for an exe) in Windows 7

Hidden Right-Click (Context) Menu Options in Windows 7 – The Winhelponline Blog

just do a shift + right click :)

Category:  Uncategorized     

xsl functions for .net

XSLT Stylesheet Scripting using

public double circumference(double radius){ double pi = 3.14; double circ = pi*radius*2; return circ; }

Category:  Uncategorized     

Graphics Card Hierarchy Chart

Graphics Card Hierarchy Chart : Best Graphics Cards For The Money: February ’10

Category:  Uncategorized     

Aussie firms…

There’s a workplace
Where the grass is really greener
Warm, wet and wild
There must be somethin’ in the water
Talents put to good use
Working to clear specification
They’ve got
big fat paychecks
We Try a little sneak peek (At them)

You could travel the world
But nothing comes close
To the Golden Coast
Once you work for them
You’ll be falling in love
Oooooh oh oooooh

Aussie firms
They’re unforgettable
short commutes
talent comes out on top
latest tech
So hot
they’ll melt your Popsicle
Oooooh oh oooooh

Category:  Uncategorized     

Loading animation in a winform C#

A simple task – get a “loading” animation when you click a button on a winform

My solution (works!)

1) in your form designer, you need a panel!!!! this is what will be used to draw the loading bitmap

2) in your form constructor you need something like this

<title>Snippet</title><pre style="font-family: consolas;">        <span style="color: blue;">public</span> TestForm()
        {
            InitializeComponent();
            <span style="color: green;">//Enable double buffering to reduce flicker.</span>
            <span style="color: blue;">this</span>.SetStyle(<span style="color: rgb(43, 145, 175);">ControlStyles</span>.OptimizedDoubleBuffer, <span style="color: blue;">true</span>);
            <span style="color: green;">//Enable paint via message to reduce flicker. </span>
            <span style="color: blue;">this</span>.SetStyle(<span style="color: rgb(43, 145, 175);">ControlStyles</span>.AllPaintingInWmPaint, <span style="color: blue;">true</span>);
        }

3) In your button click event you need something like this

        <span style="color: blue;">private</span> <span style="color: blue;">void</span> btnClickMe_Click(<span style="color: blue;">object</span> sender, <span style="color: rgb(43, 145, 175);">EventArgs</span> e)<br />        {<br />            InitAnimation();<br />            <span style="color: rgb(43, 145, 175);">Thread</span> backgroundThread = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Thread</span>(<span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">ThreadStart</span>(AnimateImage));<br />            backgroundThread.Start();<br /> <br />            //Do something grand here!<br /> <br />            backgroundThread.Abort();<br />            ClearAnimation();<br />        }<br /><br />4) helper stuff, that does the animation work ...<br /><br /><title>Snippet</title><pre style="font-family: consolas;"><span style="color: blue;">        #region</span> Animation<br /> <br />        <span style="color: blue;">void</span> InitAnimation()<br />        {<br />            panel1.Visible = <span style="color: blue;">true</span>; // this is your panel added in step 1<br />        }<br /> <br /> <br />        <span style="color: blue;">void</span> AnimateImage()<br />        {<br />            <span style="color: rgb(43, 145, 175);">Stream</span> strImage = <span style="color: blue;">this</span>.GetType().Assembly.GetManifestResourceStream(<span style="color: rgb(163, 21, 21);">"WindowsApplication1.Images.loadingAnimation.gif"</span>); // its up to u to figure out the resource name, <br />                                 //else use an absolute file path in the new Bitmap constructor, see line below<br />            <span style="color: rgb(43, 145, 175);">Bitmap</span> animatedImage = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Bitmap</span>(strImage); <span style="color: green;">//new Bitmap(@"C:\Images\loadingAnimation.gif");</span><br /><br />            <span style="color: rgb(43, 145, 175);">Graphics</span> gfx = panel1.CreateGraphics();<br />            gfx.DrawImage(animatedImage, <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Point</span>(0, 0));<br /> <br />            <span style="color: rgb(43, 145, 175);">ImageAnimator</span>.Animate(animatedImage, <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">EventHandler</span>(<span style="color: blue;">this</span>.OnFrameChanged));<br /> <br />            <span style="color: blue;">while</span> (<span style="color: blue;">true</span>)<br />            {<br />                <span style="color: rgb(43, 145, 175);">ImageAnimator</span>.UpdateFrames();<br />                gfx.DrawImage(animatedImage, <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Point</span>(0, 0));<br />            }<br />        }<br /> <br />        <span style="color: blue;">private</span> <span style="color: blue;">void</span> OnFrameChanged(<span style="color: blue;">object</span> o, <span style="color: rgb(43, 145, 175);">EventArgs</span> e)<br />        {<br />            <span style="color: green;">//Force a call to the Paint event handler.</span><br />            <span style="color: blue;">this</span>.Invalidate();<br />        }<br /> <br />        <span style="color: blue;">void</span> ClearAnimation()<br />        {<br />            panel1.Visible = <span style="color: blue;">false</span>;<br />        }<br /> <br /><span style="color: blue;">        #endregion</span>

Category:  Uncategorized     

BPGlobalPR

Street Giant » Leroy Stick – the man behind @BPGlobalPR

Category:  Uncategorized     

Playing games on a PC using a gamepad…

GameSpot Forums – PC & Mac Games – PC Games with Gamepad Support ***List*** (user contributions are very welcome)

Category:  Uncategorized