Using SASS and Compass to Solve 2 CSS files into 1 CSS File

I’m currently building a simple SenchaTouch app that includes a twitter stream.  The example CSS that came with the app was global  in nature.  That is, it set styles on all image tags, h2 tags, etc.  Here is what it looks like:   h2 { font-weight: bold; padding-bottom: 3px; } img { border-radius: 5px; float: left; } .tweet { font-size: 70%; margin-left: 60px; color: #333; min-height: 50px; } .x-list-item { border-top: 1px solid white; } .posted { float: right; } What this does is every img tag will get a float left.  Very bad!  So, I’ already using Sass (style with attitude) and compass in my app so all I need to do is wrap the code that actually uses … Continue Reading

HttpClient Verses WebClient with .Net and C#

I often find I do what I know over and over again and don’t look for new solutions if the old tried and true solution works.  At my last hackathon, I wrote an app the screen scraped the starbucks site.  I noticed when I looked at the site that a redirect happened after sign in.  My WebClient call did not follow the redirect.  I asked for help from a very bright Microsoft Azure guy (Josh Twist) who blogs at  Josh suggested switching to HttpClient and making sure to set the option that follows redirects. Perfect!  I’m hooked on HttpClient now forever. WebClient is now just in my rear view mirror. … Continue Reading

Microsoft’s ASP.NET MVC Lite, Building a TextReformatter With JsonResult

  Introduction   People often ask me if I use MVC or WebForms for my Microsoft ASP.NET projects.  I always tell them MVC, but I don’t use it in the classic way that most others do.  That is to say, I emit no html from my views, and for that matter really don’t even use views (with the exception of one view which is essentially my entire app.   People often refer to this as a SPA or Single-Page-Application. What this basically means is that my entire view is built with JavaScript (in my case Sencha’s ExtJS) and the only interaction with the server is to simply bring down Json results. In this post, I’m going to build a simple app following this principle. It’s purpose will be to take a big pile of text, chop … Continue Reading

Microsoft ASP.NET presentations at Silicon Valley Code Camp on 10/8 and 10/9

  SV Code Camp is happening next weekend with well over 200 sessions.  The conference is really technology agnostic and try hard to keep it that way, but I am an ASP.NET guy these days so I think it reasonable I take my Code Camp Coordinator hat off for the moment and put on my ASP.NET hat.  As an ASP.NET Microsoft MVP, I feel I’m in a good position to give a tour of some sessions in ASP.NET and throw in my own 2 cents.  Below are a list of these sessions in no particular order.   Demystifying ASP.NET MVC, $(Lino).MVC{getknowledge()} Sunday, October 9th 9:45AM MVC (Model View Controller) is one of the hottest patterns around building web sites these days no matter what the technology. When Microsoft first … Continue Reading


Get every new post delivered to your Inbox

Join other followers: