Categories
Geeky/Programming

Vista – Hide Ad-Hoc Networks

Since I am getting my Internet today, this probably isn’t such a big deal, but for the past few days I have been “borrowing” the coffee shop’s wifi below my apt. Comes on in the morning, shuts off at night. But, there are like 20 wifi points in the list to connect to. I hate ad-hoc networks, they just seem shady.

So, if you want to hide them from the list:

netsh wlan add filter permission=denyall networktype=adhoc

To reverse this again run the following:

netsh wlan del filter permission=denyall networktype=adhoc

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

New Windows Live Writer (Beta 2)

I just installed the updated Windows Live Writer  – man this is the best tool I have seen in a long time. It really makes it easy to publish blog posts. If I would have had it like 3 years ago, man 🙂

 

Technorati tags: , ,
Categories
Geeky/Programming

TFS Source Control: No Commands Available

Setting up Visual Studio 2005 and Team Explorer on my new Vista (I don’t think this is just a Vista issue, probably happens on XP as well) laptop, and when I went to go check out something from source control, I right click on a team project and get “No Commands Available” and everything is grayed out.

I figure out that the Source Control Plug-in wasn’t set correctly.

Goto. Tools->Options->Source Control->Plug-In Selection and change the drop down to Visual Studio Team Foundation Server

Works like a charm! 🙂

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

Joost is cool

I got an invitation to Joost. https://www.joost.com/

What Joost is: TV but over the Internet. The interface is cool, they seem to have a lot of programming, and not just independent stuff. Looks like I just found another way to get entertainment. (XBOX 360, Amazon, Netflix, Other online video, and now Joost)

I am watching Spiderman cartoon right now in the corner of my screen, and it is pretty good quality. There are AD’s it looks like they pop up in the background, etc. Doesn’t seem to intrusive, yet. We will see 🙂

 

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

SQL Server 2005 – Reporting Services – Windows Vista

I just got my new laptop, and I am installing Visual Studio 2005 and SQL Server 2005. Ran into a snag, that took me a little bit to find the answer.

First, SQL Server 2005 setup is just ghetto. There are two setups, “server” and “tools” and sometimes it just doesn’t work right. Anyways, only SQL Server 2005 with SP2 is supported on Vista. You would think that there would be a slipstream download with the RTM and SP2? Nope. Not that I could find at least.

Other thing I found. By default, you cannot install Reporting Services (SSRS). Reporting Services depends on IIS to run the report web server. Even though I had IIS installed on Vista, it still wasn’t finding it. Searching Google for “SQL Server 2005 Reporting Services Vista” didn’t really give me much luck (easily).

Eventually I found this KB article http://support.microsoft.com/default.aspx/kb/920201

Basically you need to turn more things on in IIS. I turned pretty much everything on but classic ASP and CGI, reinstalled SQL 2005 and no warnings – great! 🙂

So, I go to connect to my instance, and no AdventureWorks DB. I installed everything I thought? WTF? Well, I found this article on reinstalling AdventureWorks sample OLTP and DW databases

http://msdn2.microsoft.com/en-us/library/ms143758.aspx

Because you know, once you install SP2 on SQL Server 2005, you can’t really run the RTM setup without it complaining, and then, it says you already have a newer version installed – bah!

So, in the end, SQL Server 2005 with all the fixings is doable on Vista. Just make sure you have IIS configured correctly!

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

TFS Team Build, TFSBuild.props and Visual C++

Team Foundation Server is a pretty sweet setup. It integrates source control into the Visual Studio IDE, and makes it easy for teams to work on projects together. With a little tweaking you can set up Continuous Integration and nightly builds. There are many different ways to set up your project layouts and references, which can make it easier to do deployments, etc. The one thing they forgot to mention is that, it is really easy with .NET projects. It gets a little hairy with Visual C++ projects.

What happens is that if you have VC++ projects that output libs (assemblies in .NET Land), and another project needs to reference them, you will probably run into pathing issues on your TFS buildserver.

TFS wants to output all the binaries to a specific folder. With VC++, there is a TFSBuild.props file that gets created dynamically that overrides the output folder (nice huh?). It is really a pain to try to override this yourself from what I have been researching. 20 different ways and no real solid method.

On your TFS server, in the path

C:Program FilesMSBuildMicrosoftVisualStudiov8.0TeamBuildMicrosoft.TeamFoundation.Build.targets

Is where all the settings are stored for how the builds happen.

There is a place in there where you can find the setting where the path gets overridden for VC++. It is set as $(OutDir)

When you make projects on your local machine, the output dir is set to $(SolutionDir)$(ConfigurationName)

Everything builds fine on your local machine, but once you try to set up a team build and have it build on the TFS server, it croaks, because the paths to libs arent the same.

Even though Microsoft says all over, never edit the .targets file, I did anyways, and all our projects build and have no issues on the TFS Server.

One other quick thing I have found different for VC++ projects compared to .NET projects. When you create a team build, you need to specify Win32 for the CPU target instead of the default Any CPU. Another quirk as usual 🙂

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

Netflix Cracked Disc and Movie Review: Death of a President

Well, I have no cable, so I look for ways to get some digital entertainment. Lately I have been watching the first two seasons of Grey’s Anatomy, so I can catch up and actually have a coherent conversation with Emily about the show (pretty sure it is her fave). I have been getting the DVD’s from Netflix. Thing is, disc 2 of season 2 was cracked like big time. First time I have encountered that, so I went to Netflix site, returned it, but now I have disc 3, which does me no good, so I need to wait. In the meantime, I went and checked out the Xbox Live Marketplace on my 360 to see if there were any new releases. Found one – “Death of a President” (IMDB and Wikipedia).

This movie is set in the near future (2008) and goes through the fictional assassination of President George W. Bush. It shows characters such as his speechwriter, secret service agents, etc talking about that day, and the investigation through the eyes of the FBI.

Throughout the movie you see how they go about figuring it out. First it is the environmentalist they target, who is organizing the protest that day. He doesn’t pan out, so they look at foreigners, they find one that was in the vicinity, from Syria, traveled to Afghanistan, This is great because they can use words like Al Queda, Terrorist, even though the guy really isn’t. Basically he gets convicted on these things alone.

During the protest there as a black veteran that got arrested on suspicion of the assassination, they eventually let go. You come to find out that he has a brother who dies in Iraq, and his parents are distraught. He comes to find that his father committed suicide the day after the assignation, and left a note saying he did it. Also the vet finds evidence in his house that his dad left that really shows he was planning it out, etc.

The vet tries to bring this evidence to the FBI, but they ignore it, they have their terrorist. Now President Cheney passes the USA Patriot Act III which gives even more power to the executive branch and law enforcement to take away civil liberties of the US citizens.

At the end of the movie, I was left with this. Right now in this country, if you are

1) Protesting against any policy of this administration
2) Someone who has lost a loved one because of the unjustified war (that now people are finally realizing was unjustified)
3) A foreigner

that you are in serious trouble. Really the administration is out to get anyone who doesn’t agree with the crazy foreign and domestic policy. They try to use the term “Patriot” to describe someone who is in total agreement with them, even though common sense shows that the policies they are pushing really aren’t the best for anyone, well, maybe their pocketbooks.

People should really watch this movie, it is really cool how they actually have footage of President Bush and Vice President Cheney, I am assuming they took from current speeches, etc, or it is computer aided video, but it is pretty cool, convincing. I always wonder if maybe aliens get transmissions from Earth, and if they did, they might think this is real if they miss the beginning and ending 🙂

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

C# .NET Test Driven Development with Visual Studio 2005

As of late I have been stuck in C++ world. MFC/Win32, pointers and HRESULT’s. Ugh. Earlier this week I got a chance to get back to C# and .NET (aka My Roots).

I needed to create a class library for a project, basically from scratch, since there was no existing library created. I started to go at it, and about 2 minutes into it, I was like, wait, let me try to do this test first. Test Driven Development (TDD) is one of the pillars of the Agile development methodology. In the past, there has always been existing code, that was written Non-TDD, so basically what you would end up doing is adding tests to this existing code. When doing that, you kind of get into a rut where you find it easier (at least you think it is easier), to add new code, then write tests after.

So, I fired up Visual Studio 2005, created a solution, added a test project, with a test class, and one method, and started writing a test, basically on how I would think I would exercise my non existing class library. By doing this, it really makes it easier in my opinion to practice TDD.

Run the test, doesn’t even compile, why? because I haven’t even created my class library project yet. No compile = Tests Fail. What I need to do is make my tests pass. So I add just enough (but not to much) to make it pass.

I keep adding to my class library so I can get my tests to pass, and after a while, I have a nice tight class library for my project, fully tested, great code coverage, and more confidence in my code.

What is really nice, is that when I actually needed to use the class from a webpage, I basically copied my unit test code into the web page and it works, just as expected.

I’d have to say that with Visual Studio 2005, and .NET languages, doing TDD is really kind of fun. People will always say, “well you spend more time writing tests than code”, and well, yes, that might be true the first time you are writing your class library, if a bug does happen to come up, you basically have everything in place to track it down, whereas if you do not have tests, then you spend your time debugging and tracking down things for hours. A little time up front saves you tons of time down the road, and you become way more confident in your code base.

If you haven’t tried TDD with VS2005, go for it!! I bet you will really enjoy it!

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

VS2005: Missing Project Template – Where did my Console App Template Go?

So I fired up VS2005, and wanted to make a quick prototype C# Console Application, except I couldn’t find the Project Template!!

Found out that if you close Visual Studio,  run the VS CMD prompt, and run this: “devenv /installvstemplates”

It should add the templates back.

Good to go!

Technorati tags: , ,
Categories
Geeky/Programming

T-Mobile Dash Windows Mobile 6 Upgrade!

I installed the Windows Mobile 6.0 Upgrade today on my T-Mobile Dash. Haven’t dug into the new features yet, but the looks of it, are awesome. New Icons, sleeker design.

Found the link here

Technorati tags: , , ,