Tags » Code 2

ASP:Hyperlink with dynamic url value from C# - "Object reference not set to an instance of an object"

Another gotcha found today.

I’ve created my ASP:Hyperlink field in the aspx page, with runat=”server” (oh yes, that one ain’t catching me out anymore).

In the C# code behind file, I set the URL to be one thing or another, depending on some other logic. 92 more words

Tips

Android Panda Animation :P

Spin-off of “Project: Animal attack”

Made using: Khan Academy Computer Science.

http://www.khanacademy.org/computer-programming/spin-off-of-project-animal-attack/5850363204861952

var decrease=0;
var movLeft=0;
var bodyX = 200;
var bodyY = 220;
var bodyW = 156; /////RESIZE VARIABLE
var bodyH;
var eyeMov=0; //eye movement in X
var nosePos;
var eyesClosed=0;
var eyeHeight;
var offsetBlink=0;
var leftEyeY=bodyY-bodyW/1.3+offsetBlink;
var rightEyeY=bodyY-bodyW/1.3+offsetBlink;
draw = function() {
 bodyH = bodyW/1.3;
 nosePos=bodyY-bodyW/1.5;
 leftEyeY=bodyY-bodyW/1.25+offsetBlink;
 rightEyeY=bodyY-bodyW/1.25+offsetBlink;
 eyeHeight=bodyW/17;
 
 background(207, 98, 83);
 fill(0, 0, 0);
 ellipse(bodyX, bodyY, bodyW, bodyW); // body? 115 more words
Cool

Troubleshooting a code upgrade - Cisco 2960

So I recently had a huge networking project where not everything went smoothly. Some of the switches that we upgraded the code on did not take the first time. 258 more words

Cisco

Upgrading Code on a Cisco 2960-XR

So I recently had a project where I had to upgrade just under 100 switches in less than a week. I thought I would share an easy way to upgrade code, granted that these were brand new out of the box switches, you can still apply the same concepts to production switches. 583 more words

Cisco

After a long hiatus, I'm back.

I’ve been aware for a long time that I have a bad habit of starting things and not following through with them. It’s been nearly two long months since my last post, and a lot has happened since then. 273 more words

Code

SML and OCaml: So, why was the OCaml faster?

My earlier post Four MLs (and a Python) listed a toy example program written in four languages in the ML family: Standard ML, OCaml, Yeti, and F♯. 1,739 more words

Code

Feedback on "Four MLs (and a Python)"

My last post got an unprecedented amount of attention after appearing on the popular site Hacker News. It spent about 14 hours on the front page there and got almost 11,000 unique visitors that day — a fair way above my usual daily average, for this whole blog, of about a hundred. 461 more words

Code