Categories
Uncategorized

links for 2008-01-03

Categories
Random

Best of Bootie 2007

Best of Bootie 2007 is out! http://bootieusa.com/bestofbootie2007/index.htm

Best of Bootie 2006 was awesome. It reminds me of playing Wii at Brye’s before the Holiday Party last year.. good times..

 

Technorati tags: , , , ,
Categories
Blogging

Blogging in 2007 – Stats

Well, end of the year, here are some stats on my blog..

around 63,000 page loads, and 46,000 uniques up from 35,000 page loads and 22,000 uniques in 2006, almost doubled!

posts per month:

# December 2007 (17)
# November 2007 (16)
# October 2007 (13)
# September 2007 (21)
# August 2007 (24)
# July 2007 (31)
# June 2007 (40)
# May 2007 (28)
# April 2007 (24)
# March 2007 (51)
# February 2007 (26)
# January 2007 (17)

 

Total Posts – 308 (with this post)

Average Posts Per Month – 25.5

High Month – March

Low Month – October

I don’t have more detail on the comments or the categories, but this is pretty good info.. hopefully next year it just gets better..

Happy 2008!

Technorati tags: ,
Categories
Uncategorized

Madison Differences #2 – Craigslist/Citysearch/Local Papers

One big difference between Madison and Portland is that it is tough to find stuff in Madison, unlike Portland. Portland is a big enough city where it has its own Citysearch and Craigslist is used a lot more. Madison just fits into the “National” citysearch, and craigslist is pretty empty.

Portland as the Mercury and Willamette Weekly, and other local papers, and really the only one I have seen here in Madison is the Isthmus, and there is a Madison magazine as well, but there are slim pickin’s, even in online zines or blogs in Madison. Smaller city = smaller footprint I guess…

Either that or I just haven’t found the hidden gems yet 🙂

Technorati tags: , , , , , , ,
Categories
Life Random

Time to Reset?

The xkcd comic today says it all, which actually got me thinking about writing this post

 

Funny, yes. I think sometimes everything just needs to be reset back to zero. I remember back in the day, trying to beat Metroid on the NES and having to leave the NES on for days without shutting it off. Sometimes it would lock up – hit reset. Your computer every day, you probably reboot – time to reset! Development projects – usually they get to a point where there is so much bloat – for small programs and large (Vista was Microsoft’s attempt at a reset) – and you just say, lets start from scratch again, we can do it better.

High school to college – reset. When you move somewhere new – reset. Every year you have your birthday, xmas, new years – reset’s. Sometimes in relationships it is best to just reset – start over, forgive and forget, get back to ground zero – reset. Every day you wake up is another reset, another day to try something new, make something better.

Sometimes things just need to be reset, just to be reset – like the sign above. 2008 is right around the corner, and the new year is usually a good time to reset those bad habits, or just reset goals and timelines, and just get a fresh look on everything going on, should be an exciting year…

Technorati tags: , ,
Categories
Random

iPhone Commercial Incorrect?

Just recently going back to the dark side, and getting cable again, I have noticed some new iPhone commercials on TV. There is one where they talk about kind of going on vacation, and show you all the things you can do with the iPhone to aide in planning, etc. If you watch closely, you will see the date is August 6th (a Monday) and the time is like 1:25 PM. But when they click on the stocks icon, it updates the stocks, but the at the bottom it says “markets closed” – hmm…

I’m not 100% sure either but then the phone rings, but it isn’t a ringtone that comes on the phone by default – weird. I looked for a couple minutes on YouTube/Google but couldn’t find the commercial to put up here or watch again, oh well 🙂

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

SQL 2005: OpenRowset, Dynamic MDX and Variable Scope

So, the other day I had to create something in T-SQL that called a MDX query using OpenRowset – this is pretty easy to do, you can query around the openrowset and get the values back you need in a T-SQL Query. This was fine when the MDX query was a static string.

The format of the query would be like this:

SELECT * FROM OpenRowset(‘MSOLAP’, ‘DATA SOURCE=MySSASServer; Initial Catalog=MySSASDB;’,’MyMDXQuery HERE’) as a

Now, the * will give you the columns from your MDX query, in the example above MyMDXQuery would be replaced with your actual MDX query.

The problem comes in, if you want your MDX query (which is a string), to contain some variable, so that you can pass something into the OpenRowset (say a date, or some other variable)…

The problem is, you need to execute the whole query (not just the OpenRowset) as a string, and the scope of variables is lost. You cannot declare a variable outside the TSQL string you want to EXEC, then set it inside the TSQL statement, then use it after. This makes it tough to get data out of the OpenRowset execution. Now if you just are executing the TSQL and getting a result set back for a report or something, it will work without doing what I am doing here, but if you need a scalar value back or something to use in a query later in your proc, then you need to do this. I tried different solutions and this was the only one I could get to work. Like I said, declaring a var before and trying to use in the TSQL exec wont work. Also, a RETURN wont work, it will give you an error saying it doesn’t work in the scope or something similar, here is an example of what does work – using a temp table.

 

DECLARE @TSQL varchar(max)

CREATE TABLE #results
(
  mytempresult DECIMAL(10, 3)
)

SET @TSQL = ‘
DECLARE @myVar AS DECIMAL(10,3)

SELECT @myVar =
SELECT [Measures].[MyMeasure] FROM
OpenRowset(
”MSOLAP”,
”DATA SOURCE=MySSASServer; Initial Catalog=MySSASDB;”,
”WITH
   MEMBER Measures.[MyMeasure]
  AS (‘ + @SomeDynamicString + ‘)
SELECT
{[Measures].[MyMeasure]} ON COLUMNS
FROM [MyCube]
”)
as a

INSERT INTO #results VALUES (@myVar)

EXEC ( @TSQL )

DECLARE @myVarForReal AS DECIMAL(10, 3)
SELECT  @myVarForReal = mytempresult
FROM    #results

DROP TABLE #results

as you can see, I CREATE the temp table outside the TSQL var, then I actually declare a var inside the TSQL statement, set it in my OpenRowset call, which I pass in some other var (@SomeDynamicString) and then insert that value into my temp table.

I then EXEC that TSQL statement, and then grab my variable for real from the temp table, and drop the temp table. You would think that I could just reference @myVar after the EXEC, but it doesn’t exist, and if I declare it outside the TSQL var, it will be empty after, and it won’t get set when I EXEC the TSQL.

Just a “gotcha” if you ever run into executing dynamic MDX from TSQL and you need to get a scalar value back from the MDX.. whew 🙂

Technorati tags: , , , , ,
Categories
Random

Google Reader: Shared Items – Link Blog

Here is my Google Reader shared items link blog – http://www.google.com/reader/shared/10787205546622911766

The RSS Feed is here: http://www.google.com/reader/public/atom/user/10787205546622911766/state/com.google/broadcast

Check it out if you want to see what I find interesting, mostly going to be BI/Database/Programming posts I find that are useful.

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

Total Geekdom: Ordering Pizza Via Text Message

So I read last week you could order pizza via text message now, from Papa Johns. Was feeling like some pizza last night, so I decided to try it out. I already had an online account at Papa Johns, to order delivery, so I went there and checked it out. I set up 4 favorite orders, and then texted FAV to 47272. You have to have your mobile set up in your online account so it knows it is you first.

Once I texted FAV, it texted me back with my 4 options I set up, and I texted back FAV1 to order my first favorite. It wanted me to confirm, so I texted Y1 to confirm. Since I already had it set up online to deliver to my apt, and the tip amount set, and to use my check card as payment, I didn’t have to do anything. 35 minutes later, the pizza shows up, I sign the receipt, and all is good.

I think the next logical step is for me to just “think” about pizza and they just bring it to me automatically.

 

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

Windows Vista and netsh – How to connect to adhoc networks if you IT dept locks you down…

Ok, so for some reason you can’t play with adhoc networks, maybe your IT dept locked you down, maybe something else happened, some security software or something jacked your settings. Well, you can use netsh to allow adhoc access again. Maybe you don’t even want to connect to ad-hoc, but you want to run one, same difference.. anyways, just run this cmd:

netsh wlan delete filter permission=denyall networktype=”adhoc”

and you should be good to go!

Technorati tags: , , , ,