Adam K Dean

Posts

Fibonacci Numbers & The Golden Ratio

Published 26 October 2010 in archive with tags php , fibonacci So here I am doing some designs when I think, hmm, maybe I will use the golden ratio to lay out the design, Fibonacci's Spiral and what not, but the amount of tedious workings out.. (having to use a pencil..tedious...physical movement you see..) so I wrote a script. I don't really like using C# for scripts, being it isn't a script but.. sometimes you just want something like putty in your hands to quickly test a hypothesis or whatnot, and PHP is great for that. Big project, ASP.NET but a little versatile albeit-unable-to-really-report-errors-very-well scripting language, PHP is the don. Continue reading …

SQL INSERT with WHERE clause

Published 14 October 2010 in archive with tags sql So here I am, again, resigned to having to deal with SQL. I don't like SQL and it doesn't like me. One of the main reasons is because when I put a nicely formatted piece of code into Management Studio, it mangles it and disfigures it horribly as if saying "not only does this SQL not work but I have chewed it up and spat it back out at you." Continue reading …

Detect printing with CSS & ASP.NET

Published 24 September 2010 in archive with tags aspnetwebforms , printing So, as in my previous post, I had an awesome idea of how to detect people printing a page of a website. Basically, when they go to print from our site, they get a different layout, that doesn't have anything that looks like a site. So surely if I just put a little tracker file in between the CSS file and the request, that'd work like a charm, right? Continue reading …

Dynamic CSS with ASP.NET - in one line of code

Published 24 September 2010 in archive with tags csharp , aspnetwebforms Whether you want a separate sheet for each browser, or you want to track when people print a page from your site (as is my case), how do you get code to run in a CSS file? You can't. How do you get an ASPX file to serve up CSS? Well, you can't. But like House MD, I have the answer and I'll tell you eventually. Continue reading …

Simple abstract classes explained

Published 21 September 2010 in archive with tags abstract , abstractclass , csharp Blogular activity has suffered a little here; but setting up a workshop and devising plans to build steam engine in said workshop will do that to you. Today some simple code, written to simplify showing abstract classes. Every tutorial I see they throw in stupid code that isn't really needed to show the primal functionality of abstract classes. So here is an example that has nothing more than what it needs. Continue reading …



Newer Page 40 of 42 Older