Archive for the 'tech' Category

Packer for .NET 4.0.1 Released

Sunday, November 23rd, 2008

Packer for .NET has been updated to include a CSS Minify mode which does the same for CSS that JSMin does for JavaScript. Thanks for this addition goes to Chris Lienert who updated the open source project with work done by Daniel Crenna and Michael Ash to port YUI Compressor.

Why Minify CSS?

CSS can be very complex and it helps to place inline comments in your stylesheets to assist with maintenance. These comments can explain workarounds which are used to support cross-browser layouts. We all have workarounds or even hacks to support legacy browsers like IE6. Often these techniques do not make much sense when they are viewed months later without any context. Normally comments are left out of CSS files because they increase the size of the documents and reveal internal details to any curious developer digging through your code. Now you can minify your CSS during your deployment process with Packer for .NET to strip your comments and unnecessary whitespace. The minification process also uses other techniques to further reduce the size of the output document.

More information:

Update: Version 4.0.2 is out which includes updates to includes wildcard expansion for the command-line utility. There was also a bug where the output file could not match the input file which has been fixed.

Presentation: Embracing jQuery

Monday, November 10th, 2008

Tomorrow in Milwaukee and Wednesday in Fox Valley I will be presenting "Embracing jQuery." The presentation is made up of four parts:

  • The Basics of HTML, CSS and JavaScript
  • JavaScript Tools
  • jQuery Basics
  • jQuery Advanced

Last week I gave this presentation in Madison and it was very well received. And this presentation is not .NET specific, so if you have any interest just in jQuery and AJAX please feel free to attend this presentation. I will be going through everything you need to know to start building interactive web interfaces with jQuery.

Below is the information for the Milwaukee and Fox Valley meetings:

Milwaukee

November 11
7:00PM

Direct Supply Inc
6663 N Industrial Road
Milwaukee, WI 53223
Map

Fox Valley

November 12
6:00PM

Fox Valley Technical College
Room A161A
1825 N. Bluemound Road
Appleton, Wisconsin 54912
Map

Torrent Servers in the Cloud

Tuesday, November 4th, 2008

New hosting services in the cloud like Amazon Web Services and Windows Azure could make for solid torrent servers. Podcast and screencast services like .NET Rocks and dnrTV produce content which is pulled down primarily with torrent feeds. Typically services which release new content do so on a schedule and hit suddenly with a considerable amount of traffic which makes torrents the best option. But then there are times after most users have all of the latest content and the servers sit idle, or worse yet, there is a limited number of seeding servers which causes delays during peak periods for all users. With these new "cloud" services it could be possible to fire up supporting extra seed servers during peak periods and power them down when they are not needed.

The appeal that I see with Amazon WS is the fact that the charges are accumulated by the hour. Amazon WS also has an API to allow developers to create control systems to manage their virtual servers. With the API you could fire up the additional seed servers as new content is pushed to the primary seeding server to replicate the content ahead of publishing the new torrent content in the RSS feed used by torrent clients like µTorrent.

And hosting content is not that expensive. I recently saw hosting for 1 terabyte of bandwidth for about $7 a month. That is really quite cheap if someone wanted to produce their own audio or video content and make it available on a minimal budget. It should not be necessary to rely solely on YouTube to host your video content. You could produce quality video and host it yourself on a virtual servers in the cloud and not have to deal with the low quality video that YouTube is still using. Services like hulu.com are pretty impressive. I have been watching full screen movies on my 37" LCD with my attached LCD TV and it is better quality than Time Warner cable.

Connect the dots and you can see that the traditional media distribution mechanisms are already far out of date.

Hulu for Web Video

Friday, October 24th, 2008

I have really liked watching videos on Hulu.com lately. I have a Mac Mini hooked up to my LCD TV and put the videos into full screen mode. It is better quality than I am getting from cable, SD and HD. A new feature which I overlooked until someone pointed it out is that you can send a link to a specific clip, like a snippet from the latest SNL show. And you can also embed the video right into your blog. It is so much better than YouTube, and cable. I do not even have to bother to set my DVR to record my favorite shows. I can just pull them up whenever I want.

Cable is going to have to step it up, and YouTube as well.

Consumer Unions for Cheaper Mobile Phone Bills

Thursday, March 27th, 2008

Mobile phone plans really suck. Yesterday I saw a commercial for Sprint with their new CEO and he stated that he is going to change things up. Their offer seems to be $99 for unlimited everything. I can get unlimited web, GPS, txt and voice for a fixed monthly fee like I do with cable TV and internet. It is an obvious solution. More people have phones than any other electronic device. Every adult and nearly every high school and college student has one and are paying much more than a typical cable bill. Yet it is not uncommon to go over your minutes and get hit with more than $200 in over charges. I have seen it a few times over the last couple of years and I do not like it.

So I am wondering, is there such a thing as a consumer union where consumers combine together to collectively bargain with the mobile phone providers? If I wanted unlimited web, GPS, txt and voice for $60 and I had 1,000 people who are willing to sign up for a 2 year contract for that deal is it reasonably possible to make a deal with the big mobile phone companies?

I live in a condo and this past year we signed a contract with Time Warner to get a half off deal for basic plus movie and sports channels for 2 years. We have less than 200 people living here so if 200 people can make such a negotiation happen, it should be possible for a group of 1,000 to sign a contract to get an unlimited usage deal for a great price.

Find me on Twitter

Saturday, March 15th, 2008

I just create my Twitter account. Twitter has come up in discussions at work and with several friends who are using it. Nobody really has a good sense of what it really is or how to use it. I think it is broadcast IM or micro blogging. I am not sure how I will find it useful, but I have avoided it because it is just another potential distraction from the work I should be doing. Here are the things I plan on twittering about...

  • Links to good articles or blog entries
  • Links to my new blog entries or articles
  • The artist and title of a really good song I am listening to at the moment
  • Random thoughts while I work at my computer, likely related to software development
  • Questions on a problem I am currently trying to solve

And through these twitterings, or tweets as some call them, I hope to get some interactions going with people who are interested in and working on the same topics. My current primary interests are building dynamic web interfaces using ASP.NET AJAX and jQuery and extending Visual Studio 2008 to assist with creating those interfaces. In the work that I do we often do very quick projects (2 to 3 months) and doing the setup for a new web site to support the client-side functionality that I now do typically is a bit of work. My self-training on the topic of modern AJAX UI was done with the Kvetch Reborn project which actually has some features in common with Twitter. The source for it is available for download. I have used what I have learned for Microsoft ASP.NET AJAX and jQuery to assemble that application which has rich client-side functionality with direct integration with the server-side on a single page. I have more to do in automating the setup work for creating such projects, including completing the baseline features for the JavaScript Browser.

Lotsa Blogs

Friday, January 4th, 2008

Kevin over and ScribeSonic is cleaning up the vast collection of feeds taking up space in his blog reader. You might say he has a plethora of feeds.

:)

He is using Google Reader, which I also use. An easy way to subscribe to a new feed is to use the little bookmarklet/favlet that you can find on the Settings tab. It is buried towards the bottom. As you come across a good blog entry via services like DotNetKicks.com or DZone you can click this link in your toolbar to send the feed to Google Reader to subscribe to it immediately. This link is copied below.

[ Subscribe... ]

Also keep in mind that RSS content can be more than just comments from some blithering blogger. One useful kind of feed is the latest activity on your source control system, such a project hosted in Subversion. I created a little RSS generator that uses the log and list commands from the Subversion command-line tool to generate an RSS feed for any URL you throw at it. There are a few query string parameters that you can use to customize the behavior. Just look at the sample links to see how they can be used. They are pretty self-explanatory. (url, title, username, password)

[ SvnTracker ]

It is a very tiny web application and the source for it is available via the link at the bottom of the page. It is a bit sluggish, but when it placed being an aggregator like Google Reader you should never notice the delay. If you want to use it, please host it on your own server as this is just a temporary location.

Remote Office Franchises

Saturday, September 29th, 2007

Years ago a friend of mine and I worked on an idea for remoting to work. We wanted to find a happy medium between the office versus home contrast. The stark difference between fighting traffic to get to the office downtown and walking from the kitchen to your home office is significant. And you have distractions at the office but at home you may have different distractions. Scott Hanselman writes that he can sometimes hear his wife playing with their son. Scott also writes that it can get lonely when he sits alone for hours without any face to face conversations with co-workers.

The concept for the happy medium addressed many shortcomings of a single massive office located in the center of the city. The following scenarios are what we wanted to make possible. I will use Scott's situation as an example. When Scott was interviewing for his position he could have been given the option to work at a remote office which happens to be a 10 minute drive from his home. He would be set up with a desk at this remote office where he can dock his computer and directly access the main company network with high speed access. His desk would be grouped in a room with a few others from Microsoft with other employees who also live near him. They could arrange to have lunch together and chat about company news during the day as they work.

Then a few months later Scott decides he wants to fly his family down to Florida in the middle of winter to enjoy the warm weather for a couple of weeks but he has a deadline at work. No problem. He will just request a temporary desk at a remote office at one of the franchise offices in Florida. He will be able to do his work in Florida with no major differences and still spend the rest of the day and weekend with his family in Florida.

(more...)

Controlling the Scroll Area

Saturday, July 21st, 2007

I have recently become a fan of the ability to make a section of a web page to scroll using the overflow rule in CSS. (overflow?) But the problem is that sometimes you need to have an item in the scroll area to be visible which means you must slide the scrollbar down to the item. Making this work was something that eluded me until one of my co-workers pointed me to a comment on Telerik.com. Their example is pretty complicated and I do not understand what all of the complex math is about when all you need to know is the two values, the current and destination positions, in order to move the scrollbar. I simplified it with the following example.

(more...)

Future iPhones?

Wednesday, July 11th, 2007

It was a no brainer that Apple would progressively release new iPhone alternatives after the initial release of the $600 phone. A nano version of the phone should be coming out at the more reasonable price of $300. It makes me wonder how far they will go.

Imagine a iPhone Shuffle. It could have a "drunk dial" feature that would randomly call people after midnight. But seriously, could they create an iPhone that small without the number pad if it had decent voice command features? What if it could speak the names in your phone book to you as you scroll through them? That could get tedious so they may need a very minimal screen. I am going to bet on them creating something quite small that pushes the concept of what we think a phone has to be.