This is me in the USA:
create your own personalized map of the USA
or check out ourCalifornia travel guide
And this is me in the whole world:
create your own visited country map
or check our Venice travel guide
Rather disappointing :-)
A simple blog that will be used to store tips regarding photography, excel, and python
In really, really rare occasions Diddlbiker feels like he accomplished something brilliant. Today was one of those days. And the best thing is: my artwork is actually something small, elegant and comprehensible. What happened, was that my clients would need a table in a certain format, but the model it supported would demand a different format: | ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
Clearly, my users want to specify a percentage increase for each year. I on the other hand, want a factor that compounds the increases year after year. The solution I came up with was non-equi self join with a kick: SELECT tblYear.Year, Exp(Sum(Log([tblRate].[Rate] + 1.0))) AS Factor FROM tblIncrease AS tblYear INNER JOIN tblIncrease AS tblRate ON tblRate.Year <= tblYear.Year GROUP BY tblYear.Year; I achieve two things in the query. First of all, by using a JOIN ... ON ... <= ... I'm able to pick up all years up to and including the 'current' year. Second, SQL doesn't have a PRODUCT aggregate function. By turning the factors into logarithms I can multiply them by adding them together - and SUM is something that you can do in SQL! Once they're all summed, I can reverse the logarithm by using an EXP (exponent) function. The query basically turns the first table (input-friendly) into the second table (model-friendly) without any scripts, temp tables or other garbage. Brilliant! |
This is the original picture. | ![]() |
This is the picture saved at a 25% quality level. Yes, it's pretty bad. | ![]() |
This is the previous picture opened, and saved again at a 25% quality level. You'd expect an even worse picture, but it looks exactly the same! | ![]() |
The process is repeated two more times (four times in total), but no difference with the first picture... | ![]() |
![]() ![]() | ![]() |