Sci Fi Mountain Range
Completely pointless but I learnt a bit about html canvas doing it! Just hit the draw range button to get draw a new one 🙂
Completely pointless but I learnt a bit about html canvas doing it! Just hit the draw range button to get draw a new one 🙂
Here’s my little function to return a random number between two numbers:
1 2 3 4 5 6 7 8 9 |
function randomNumberBetween(from, to, allowZero){ var diff=(to+1)-from; var rnum = Math.floor((Math.random() * diff)); rnum+=from; if(rnum==0 && allowZero===false){ rnum=from==0?1:from; // just make it easy for now } return rnum; } |
The ‘allowZero’ flag does just that.. though if you use this function you may wish to change what it does if it does generate a zero. It’ll work on […]
Let’s start with an example of what we’re trying to achieve – click the rows to show and hide a detail row: I figured this would be pretty straight forward with lots of examples out there in the wild but unless […]
Having created a rudimentary audit of DDL changes to SQL Server, I wanted to be able to quickly look at the changes through SSMS. To do this, I added a custom report on the object explorer right click menu that […]
[highlighter] I’m a bit green when it comes to the rank functions in T-SQL so this was a nice exercise. We needed a report to display totals per page in grouped data so this was a bit of a head […]