Categories
Life Product Reviews Random

Off Camping

heading out camping for the 4th/5th about an hour and half south east of Portland, will post up pics once I am back. In the meantime, if you are bored this holiday, check out http://www.geni.com – a social network for your family tree, it is very addicting, I added 70 or so relatives already, and then others added more, last time I checked my tree was up to 250 – in a day!

Happy 4th of July (with Lucy in the Sky – I remember pine trees and the coat of many colors – I was 19, I’d do anything, s#it like that now scares me but I’d like to do it again) ala 311 🙂

 

Technorati tags: , , , , ,
Categories
Uncategorized

Portland Differences #6 – Cool Street Names

One of my favorite things about Portland, is that the street names around where I live are named after Simpson’s characters! Matt Groening grew up in Portland, which is really cool to boot, but how cool is it to live on “Burnside” street, for Montgomery C. Burns 🙂

People probably think I am getting on the Simpsons Movie bandwagon here, since this is my 2nd Simpson’s related blog post in like a week, but I swear, I liked them before the movie 🙂 – Oh yeah, on a unrelated not, 7-11’s are turning into Kwik-E-Marts, but Portland isn’t one of the cities, WTF is up with that? Anyway’s –  Here are the street names and corresponding Simpsons character.

Ned Flanders

image

Reverend Lovejoy

image

Mayor Joe Quimby

image

C. Montgomery Burns

image

Sideshow Bob Terwilliger

image

Kearney

image

and there might be more, that I just don’t know of. But it is really cool to say, yeah lets go meet on this bar, down on Flanders. Ahh, Flanders. I always think of the little ditty, “Hens love roosters/Geese love ganders/Everyone else loves Ned Flanders.” and Homer chimes in “Not Me!” and then they say “Everyone who matters loves Ned Flanders” – hilarious! 🙂

Technorati tags: , , , , , , , , , , , ,
Categories
Business Intelligence Geeky/Programming SQLServerPedia Syndication

SSRS: RunningValue() to get Cumulative Totals

If you have a SSRS (SQL Server Reporting Services) report, and you want to aggregate values on a column, the function RunningValue() is what you would use.

The function takes 3 parameters, the field you want to “run the value” on, the function you want to run on it (Sum for example), and then the scope. The scope can be “Nothing” ex: RunningValue(Fields!Blah.Value,Sum,Nothing) but where the scope really comes into play is when you want to group by given fields in your row.

So if you want to group by say, salesperson, and run their values by day of their sales for a month to date total, you would have

 

Salesperson           Date           Daily Sales          Month To Date Sales
——————————————————————————-
Homer Simpson   
                              07/01/2007       50                            50
                              07/02/2007       43                            93
Bart Simpson
                              07/01/2007        5                              5
                              07/02/2007        8                              13

 

How you achieve this is: on the row with the salesperson, there is a group defined if you right click. Look at the group name, by default it is usually table1_detailsGroup or something similar (if you used the wizard).

Then, the column for the Month to Date Sales would have the expression

=RunningValue(Fields!DailySales.Value,Sum,”table1_detailsGroup”)

Where you can see the scope is now defined as the table group name as a string.

Technorati tags: , , , , , ,
Categories
Random

Create Your Own Simpsons Character

A while back (way back in April 2005 – wow they had blogs then?), I posted on how to create your own South Park character, and you know, looking at my referrer logs, this is one of the top queries to get to my site

Today I read on Jeff’s blog about the Simpson Character creator, well, you know I just had to try it. (BTW Jeff, I can’t link to individual posts on your site, you might want to turn on permalinks or whatever they are called on blogger.com)

Anyway’s, here is my character

simpsons_avatar

You can create your own at http://www.simpsonsmovie.com/main.html

Technorati tags: , , , , ,
Categories
Geeky/Programming Product Reviews

Browser Wars: Handling a Phishing Site

The other day, I got an email from US Bank saying I need to login to their site and change my password, funny though, I don’t bank at US Bank. What’s the deal? A “phishing” attempt was made!

Phishing, according to Wikipedia, is: In computing, phishing is a criminal activity using social engineering techniques.[1] Phishers attempt to fraudulently acquire sensitive information, such as usernames, passwords and credit card details, by masquerading as a trustworthy entity in an electronic communication. eBay and PayPal are two of the most targeted companies, and online banks are also common targets. Phishing is typically carried out by email or instant messaging,[2] and often directs users to give details at a website, although phone contact has been used as well.[3] Attempts to deal with the growing number of reported phishing incidents include legislation, user training, and technical measures.

Woah, ok, long definition. What it means is someone tries to pass themselves off as someone else to jack your passwords.

Anyway’s, since I rarely get phishing emails, I decided to test out how Firefox 2.0 and Internet Explorer 7 (On Vista) compare as far as their phishing filters.

firefox_phish ie_phish

As you can see from the screenshots, Firefox on the left, Internet Explorer on the right.

Firefox puts a gray shade over the webpage, and pops a balloon up saying :”Suspected Web Forgery”. You can ignore, or get the hell out, which brings you to your homepage. You can clearly see in the address bar that the URL Address is not US bank at all, clearly a hoax. You can also report the site as not a phishing site if by some chance it isn’t.

Internet Explorer makes the address bar “red”, I am assuming meaning “stop!” It actually then displays an error message saying that it is a phishing site and gives a brief overview of the meaning of a phishing site. Two options. “Click here to close” (with a green shield, meaning, go, good) and “Continue to this website (not recommended)” with a red shield, stop, bad. Also they display the URL again in the page contents, and allow you to report it as not a phishing site as well.

Which one is the winner here? Hard to say. I think I like Microsoft’s implementation better, for a few reasons. First, they don’t show the actual image of the site like Firefox. Unsuspecting or unfamiliar users might see that US Bank site the way Firefox displays it and say, hey! that looks like it, so it must be OK. Where on IE, they get the error message, say WTF and close out. I like the red address bar on IE as well, and when you are on some sites (ex: Paypal) it is green, which is good as well. One place where Firefox might be better is in the terminology. They call it a “web forgery” where Microsoft calls it a “phishing website”, but to be true to what it really is, Microsoft is correct.

In any event both browsers are doing good in handling fake websites and making sure the users know they are about to get hoodwinked. A year or two ago, people would just blindly hit these sites and put in their username/password, and be taken to the cleaners.

Technorati tags: , , , , , , , , , , , , , ,
Categories
Business Intelligence Geeky/Programming SQLServerPedia Syndication

SSRS Exporting Report to Excel – Keep Formatting on Export Round 2

Earlier I blogged about exporting SSRS (SQL Server Reporting Services) Reports to Excel and keeping formatting. Well, my previous solution works, but not always (doh!)

I found in a new report that I created that the formatting was taking on all columns. The solution? Wrap those expressions in CDec() function and it works. It was for some currency and percentage formatted columns.

Nothing can ever be easy!

Technorati tags: , , , , , ,
Categories
Life

Congrats

Congrats to Brad and Sarah on the birth of their daughter early this morning.

Now, who is next, Brye?

Technorati tags: , ,
Categories
Random

31st Biggest City in US – Portland

According to the Census Bureau, Portland is the 31st biggest city in the US with 537,081 people. Kind of interesting.

Via Metroblogging Portland

Technorati tags: , , , , ,
Categories
Life Product Reviews

Google Maps Sucks (and has led me in circles!!)

Yes, it is true. Google Maps sucks. Twice now, I have looked something up, only to be led on a wild goose chase around town. On top of the that, they have less features (in my opinion) than Microsoft Live Maps. Let’s take a look at the debacles:

 

1) Fire on the Mountain

Fire on the Mountain (http://portlandwings.com/) is a cool buffalo wings in Portland. I found it by Googling “best wings in Portland”. Anyway’s, I have a post written up for the wing debate, that will come later, but for now, let’s compare Google Maps vs. Microsoft Live Maps

fire_on_the_mountain_google_maps fire_on_the_mountain_live_maps

Now, there are few details here. On Google maps, when you search and fine FOTM in Google, it will show you a small map, you click on it and you get to here. Great, it even has a little link and info about the place – awesome! But, take a close look. The address is 4225 N Interstate Ave, Portland, OR, but Google has the dot located (zoom in a little) – Some # 9th Ave NE – WTF????? Now, the picture on the right, the Microsoft Live Maps. Background info here. Searching for “Portland wings” in search.live.com, you will see local listings, no map, but there is a link to FOTM, and it brings you here which then if you click on interactive map, brings you here which is the screenshot I have above. The correct address, and it is located in the correct spot! What is even better is there is a bird’s eye view here as well.

Now, if I got driving directions on Google Maps (which, BTW, I did) and follow them, without double checking the address against what they mapped, I end up in ghettoville, which, I did (thank god I had my T-Mobile dash, which has Live Maps for Mobile, which saved me again!). Winner – Microsoft Live Maps

2) Post Office

Ahh, the Post Office. Disgruntled workers, people always impatient, just a fun time. Well I had a package to mail, so I figured I would walk to the post office. Lets dig into the results:

post_office_google_maps post_office_live_maps

On the left, searching for the Post office near my address. There are two results on the map – here is the link. One that is around 7-8 blocks and one that is around 15-16 blocks away. Of course I am going to walk to the nearest one. As I walk today, in the rain no less, I get to the area of the first result, and it is just residential homes, no post office, nothing. Another big WTF!! So once again I pull out the T-Mobile dash, Live Maps for Mobile, search for Post Office near my address, and it gives me the address for the second (read: farther one in Google) away, and that is it. So I walk there, do my business, walk home. But, getting home is what got me thinking of this post, so then I search on maps.live.com – “post office” around my address, and this is what I get (the picture on the right) – link here. So, Once again, Microsoft Live Maps wins out.

So chalk up two times that Google Maps has really thrown me for a loop, which is two times to many. From now on, Microsoft Live Maps.

Has anyone else experienced this craziness??

Technorati tags: , , , , , , , , , , , , , , , , , ,
Categories
Business Intelligence Geeky/Programming SQLServerPedia Syndication

SSAS 2005 – Named Sets – TopCount – Static/Dynamic and Ordering

Named Sets in SSAS 2005 (SQL Server Analysis Services 2005) are a good thing. You can set up named sets for things like “Last 3 months” or “Yesterday” which is really nice for end users. The nature of dates is that you can make the MDX dynamic but yet the named set is still “static”.

You can also create sets when running MDX queries, and use them later in queries you run. These are dynamic named sets. The problem is, when you are working on your cube, you cannot define dynamic named sets in the “Calculations” tab. The named sets there are static. If you try to define a named set that say, for instance, tries to get the “Top X Salespeople by Revenue” or something, you can create it, but what happens is when you deploy your cube, the named set gets run for one slice of the cube, usually just the default (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=817566&SiteID=1   and http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1304964&SiteID=1).

I did read on a site, that in SSAS 2008, you will be able to create dynamic named sets in the cube editor, so that is good.

One other thing with named sets, if you create a named set that is using TopCount, when you bring it into an Excel pivot table, you will see the Top X values you are looking for (sliced incorrectly, as I stated above, but still there). Thing is, they are sorted by the SET Expression, not the Numeric Expression. I haven’t found a way to get them to sort by the numeric expression. Example from above, you have the Top 3 Salespeople by Revenue. You want to see that sorted by revenue. If you run a MDX query using TopCount

SELECT
{[Measures].[Revenue]} ON COLUMNS,
{TOPCOUNT([Employees].[Salespeople].MEMBERS,3,
    [Measures].[Revenue])} ON ROWS
FROM
    [MyCube]

you will see it ordered in the query results correctly

John Smith           $1000
Amanda Jones      $950
Homer Simpson     $500

etc

Now if you take the TopCount out –

TOPCOUNT([Employees].[Salespeople].MEMBERS,3,
    [Measures].[Revenue])

and create a named set in your MDX Script of the cube editor

CREATE SET CURRENTCUBE.[Top 3 Salespeople by Revenue]
 AS TOPCOUNT([Employees].[Salespeople].MEMBERS,3,[Measures].[Revenue]) ;        

or even like this as the forums above say

CREATE SET CURRENTCUBE.[Top 3 Salespeople by Revenue]
 AS TOPCOUNT(Existing [Employees].[Salespeople].MEMBERS,3,[Measures].[Revenue]) ;  

When you pull that named set into your pivot table in Excel, they wont be ordered by Revenue, instead, by name

Amanda Jones      $950
Homer Simpson     $500
John Smith           $1000

Funky stuff. My recommendation – if you are going to be needed dynamic named sets like the ones created above, just create a SSRS (SQL Server Reporting Services) report instead, or wait until SSAS 2008 comes out.

Note:

Now, the above is just what I have found. There might some crazy way that I am unsure of in MDX or somewhere to get this to work, but I can’t find anything that would let me do what I want.

Technorati tags: , , , , , , , , , , , , , , ,