Nathan 的个人资料Nates Stuff照片日志列表更多 ![]() | 帮助 |
|
Nates StuffPerspectives on Computing :: Leave a Comment
1月20日 Booing the Former President on Inauguration Day Shows Very Poor Taste!There are things that people do that are in poor taste. Some things that come to mind is scavenging at the dump (yeah, I saw this guy do that one time), yelling at the waitress for onions on your burger, or leaving the lavatory without property sanitizing your hands. If you do any of those things you are likely guilty of poor taste. Now, I don't really like Bush nor do I like Obama but I do show proper respect to both of these individuals. Being a Republican without a party I tend to starkly disagree with much of President Obama's platform. I understand that many people have a lot of pent up emotion and anger toward the decisions the previous administration has made. Personally I have much of it toward both former President Bush and President Obama, but there is absolutely no way I would ever boo either of them at the inaugural ceremony! Apparently many of those in attendance choose to boo anytime President Bush and Vice President Dick Cheney where shown on the screen. Having recently undergone back surgery, Vice President Cheney was in a wheel chair for heavens sakes! I have personally never been to an inauguration, but I should think that the kind of patriotic atmosphere that exists would prohibit such disgustingly undignified acts. To those who choose to boo, you have none of my respect! I place you below the people who use profane language, below people who put gum under restaurant tables, below people who throw lit cigarettes out the window, and even below people spit on the ground while indoors. You people have no sense of taste and could never earn respect from anyone who does. 8月21日 Product Reviews: Westinghouse 32H570D & Jensen HD5112
There are all kinds of new electronics out there to buy. Flat screen TV's, iPods, iPhones, HD Radio's, BluRay, etc.. However, I personally feel that there are some companies who's business model is to produce junk and sell it as these new style electronics. In the case of both of these products it is obvious that they rushed to market in such a way that makes them completely worthless! This is much reminiscent of the late 90's where computer manufacturers were pushing out components before they were ready resulting in very unstable PC's! Another thing to note is that I am a little more savvy than the average consumer. Not to tout too much my credentials as a "product test guy" but I did used to work for a service company called Service West and I would fix electronics. When you see the guts of some electronics you really see the difference between brands! You could (at least then) really tell the difference between a Sony and a JVC! The Sony was eloquent and beautiful inside and I never saw many of them! Some of the JVC's I worked on I had to de-solder wires just to get the unit open to perform a simple mechanical adjustment and they were always in there because the user tried to do two things at once (like change disks and press play in rapid succession). In short, you get what you pay for. Unlike computers where you buy a Dell for the name or cereal where you pay a lot more for the little improvement in quality; electronics are a little different. If you can make a cheaper brand electronics component work for you then that's great but it is not going to be as good as quality as a better brand. Westinghouse 32H570D Flat Panel TVWhen we first purchased this TV we loved it! The best feature was the DVD player, it is built in such a way that you can pop a DVD into the front of the TV (front loading) and it will turn the TV on and start playing the DVD. How they were able to do a front-loading DVD slot and keep the TV so low profile I'll never know. I bought this from Target back in April 2008 and returned it exactly 90 days later. I was hoping to find something else to replace it with but we're going to be doing a lot more homework before trying that again. The Pro's:
The Con's:
I would not recommend this unit to a friend! It's possible they fix the "bugs" and will have a good product in the future, but from other reviews their technical support was very poor and sending the TV for repair is very expensive. I can not recommend this brand to a friend either. Jensen HD5112This radio supposedly had it all! Literally! HD Radio, MP3/WMA playback on CD/CD-R/CD-RW, SD Memory, USB. IPod link, Aux input, pre-outs, Satellite ready, EVERYTHING! The problem? None of it worked! (more below) I really wanted this product to work for me -- epically since these puppies aren't easy to install! Plus it was pretty inexpensive and I knew that anything else wouldn't have as many features. I thought that if I can just find 1 brand of product compatible with the SD reader or USB, or CD ROM then I would be fine. I couldn't find any combination that worked! I purchased this from WalMart in August 2008 and returned it days later. The Pro's:
The Con's:
I would not recommend this unit to a friend. Based on the whole number of poorly implemented features I could not buy this brand of electronics again. I have bought the XOVision DVD player for my car to replace this CD Player. It should get here in the next week so look for a review on that. 6月16日 Nerd QuizFor now on you may address me as my proper title: I wish the title was a little less blasphemous; therefore you may alternately call me 'King Nerd'. That would also match with my wife who is a "Slightly Dorky Nerd Queen".
I also scored quite high on the version 1.0 test: Remember, that is 92 percentile! --Nathan Zaugg 6月12日 3D Modeling With GoogleThose who know me will tell you that Microsoft might as well just put me on payroll because I talk about their new products all day long. I have even characterized myself as an "Unofficial, Unpaid, Microsoft Solutions Evangelist". Having said that, I know what's good and bad about the products I love so much. I also know when someone else has something worth taking a look at. Google DefinedGoogle: very successful Internet advertising company seeking to find, buy, and evolve technology that has promise and then figure out a way to turn a profit on the new technology. And they are very good at what they do. When Google purchased KeyHole (Google Earth) everyone started scratching their heads and wondered why! I may not understand exactly how but I am almost positive that they have turned a profit on it. Well, here is another interesting gem. Google SketchUp is a armature 3D modeling tool. It's easy to pick up and has some pretty cool features. I created the sketch below of my back yard (or at least how I want it to be). There is tons of detail from the landscape brick in the back to the translucent windows. I did the below model in less than an hour and when I started I couldn't figure out how to add dimension to my square shape or how to move it around.
Cool FeaturesSome of the cool features are textures, and the 3D model community. The textures makes these simple sketches look very life-like. It has most of the common building materials and many basic outdoor shrubs & plant-life. You can also capture an image from Google Earth and transpose it onto your work area. You can even take a picture of something and mold it to your objects.
I added my model to the Google search and now anyone can use my shop! The Not So CoolIt would be nice if there was more keyboard involvement. I find my self switching between tools a lot and it's cumbersome. While you can get results pretty quickly the interface is difficult to maneuver even after using it for a while. Simple tasks like changing the size of a rectangle are complicated. You also have an inability (or at least it seems to me for now) to make things exact. I'd like to be able to enter the size of the rectangle and then enter the coordinates. And although it's pretty fast for 3D modeling it does make you wait quite a while for some tasks and I think it could be a whole lot faster! It seems to be written in Ruby and my guess is that it does not take advantage of hardware acceleration and that if it were written in a language like C++ or C# than it would be much faster! Also, I hate the name! Couldnt they have named it Google 3D, G-3D, or even GSketch? All said, for a free pice of software it does help a lot in convincing my wife that a 30-35 shop will not look too big for our yard! --Nathan Zaugg 6月9日 Silverlight 2.0 Beta 2 Released & Installation HelpMicrosoft Silverlight 2.0 Beta 2 has been released. This version is supposed to be pretty stable as I understand it. The tools on the other hand, still feel very much like a beta! I had a heck of a time getting this junk installed! The link to download Silverlight 2.0 Beta 2 for Visual Studio is here: http://silverlight.net/GetStarted/
My Installation Isssues
Here is the output of the error:
so I hit the net and find these instructions: http://weblogs.asp.net/bradleyb/archive/2008/03/06/installation-tips-for-sivliverlight-tools-beta-1-for-visual-studio-2008.aspx try to uninstall the KB:
Then RUN: msiexec /uninstall VS90-KB949325.msp /L*vx VS90-KB949325-2.log
Hit the web agian: http://silverlight.net/forums/p/17663/58925.aspx
Downloaded tool: MSIINV Download Link: RUN:
No luck! Still not giving me the GUID for KB949325! RUN:
Took SEVERAL minuets to run and created a 10MB text file! When it was done I tried to run msizap but it wouldn't go. I'm just going to install these packages seperatly now that I have them extracted from silverlight_chainer.exe.
RUN THE FOLLOWING:
This is also a good resource:
This seems to only be a problem if you were an early adopter of the Visual Studio 2008 SP1 Beta 1 fix. Avoiding Circular Dependencies (Tangles)The term "circular dependency" may be foreign to some programmers (especially if you do Java as it is a pretty common practice). However, anyone who has done some scripting for a referential database knows that you have to run scripts in a certain order. Running scripts out of order causes errors when you run. The interesting trick is that if you run that same incorrectly-ordered DDL script again and again you will eventually get it to run without errors. If you were unaware of the order being incorrect and thought to yourself in that moment "Stupid database!" then this blog post is for you! What is a circular dependency?It is simply two libraries that use each other (either directly or indirectly) as shown below: Figure 1: Circular Dependency
Figure 2: Complex Circular Dependency
The complexity of a circular dependency may vary. If you are using Visual Studio and have all of your projects loaded into a single solution AND you add Project References (Right click on project -> Add Reference -> Projects Tab -> {Project Name}) then the IDE will not allow you to create Circular Dependencies. In fact, this is a good practice as Visual Studio will ensure the correct build order. Why are circular dependencies bad?Just like our Database example above, a circular dependency makes it so you can not guarantee that your application has the latest code. That is a big deal! Here is why:
As you can see in this scenario, there is no such thing as a "correct" build order when there are these circular dependencies. The only way you can arrive at the correct version of the code is to build it as many times as there are nodes in our circle. That would mean for Figure 1 that we would need to build twice and three times for Figure 3. Some of these dependencies can get really ugly! Here is some actual code running in an actual company that I did analysis on some time ago using a tool called Structure 101.
How do I fix circular dependencies?There are some steps to take to solve even the most complex tangles! They all involve refactoring your code though.
Figure 3: Refactor a Common
SummaryThere are two kinds of design concepts for nTier (and other types of architectures as well) called Logical Layout Design and Physical Layout Design. The Logical Layout is simply that your software occupies the same project/package but leverage different classes. In contrast Physical Layout Design forces each tier to be separated into different Projects/Packages. So long as we are careful to manage the dependencies between these packages from the start this is the preferable way to code. While the logical layout does not suffer from the dependency problem eventually you may wish to break these classes apart and find that there are a lot of inner-dependency that should not exist simply because they occupied the same project. Remember to keep it clean! 5月28日 XAML Cheat SheetA few weeks ago I gave a presentation on Silverlight at the Utah Code Camp. I was really impressed by a presentation I saw last time on Ruby and everyone really liked the cheat sheet that was provided. For my presentation this year I created an XAML Cheat Sheet. For those who are learning XAML it is a pretty good resource but it's most helpful for me when I know how to do something but I can't remember the syntax. This is a work in progress so keep on checking back. It can be downloaded in the Media section of my website (http://www.InteractiveASP.NET) or by clicking here. Please drop me a line if you think you have something useful to add or you want to thank me for the hard work it took to put this thing together! Nathan Zaugg 5月19日 SP1 for the .Net Framework 3.5 and Visual Studio 2008 Released to BetaAs promised by Microsoft when Visual Studio 2008 launched late last year, there is a service pack for available both for the .Net framework 3.5 and Visual Studio 2008. Information about the release can be found on ScottGu's Blog and mostly include bug fixes and performance enhancements, but the points of interest for me are:
Installation Cautions
A direct download link can also be found here: http://msdn.microsoft.com/en-us/vstudio/products/cc533447.aspx
--Nathan Zaugg 4月20日 Utah Code Camp :: Spring 2008 AnnouncementI have been doing Code Camp for over a year now (that may not seem like a lot but this will be my 3rd time presenting there). Code Camp is awesome! It's a full day of free training in a verity of topics that most developers find interesting. Topics Include:
You can visit http://www.utcodecamp.com for more information (Yes, I know I put the Microsoft technologies first -- I'm an unpaid unofficial self-proclaimed Microsoft Technologies Evangelist!). Wither you are just starting out in your career or have been doing this stuff for years you will get something out of Code Camp! It's not one of those Microsoft "For developers" class sessions where it's just a giant power point and you didn't get any real substance! In fact, that is part of the Code Camp Manifesto (http://blogs.msdn.com/trobbins/archive/2004/12/12/280181.aspx) Information: Date: April 26, 2008 (This Saturday) I will be doing the Silverlight 2.0 presentation so please come!! Thanks! 4月18日 Disable an ASP.NET button after clickingI was creating a payment form recently and I wanted to disable the submit button after the user had clicked it so that there was no chance of them clicking it twice on accident. This seems like one of those things that just ought to be a slam dunk! Back when I was doing ASP, this was one of the easiest things I ever did. I have done it with asp.net before, but I never needed validation to work as well. It took me a long time, many searches and trial and error but I found a solution that will disable the button and doesn't get in the way of validation. protected override void OnInit(EventArgs e) { // We need this to get our button event Form.SubmitDisabledControls = true; btnProcessPayment.UseSubmitBehavior = false; // Attach javascript code to the OnClientClick event btnProcessPayment.OnClientClick = "javascript:if ( Page_ClientValidate() ) " + "{this.disabled=true; this.value='Please Wait...'};"; base.OnInit(e); } The javascript is pretty straight-forward. We are simply calling the validation function ourselves, if it validated we disable the button and change the text. What does the rest of the code do then? Well, normally when a control is disabled it doesn't post data on postback. Fortunantly, ASP.NET makes it easy to override that default behavior. Without this data our button click event would never fire! You can also do this in the HTML as well.
<form id="form1" submitdisabledcontrols="true" runat="server"> <asp:button id="btnProcessPayment" onclick="btnProcessPayment_Click" runat="server" onclientclick="javascript:if ( Page_ClientValidate() ) {this.disabled=true; this.value='Please Wait...'};" usesubmitbehavior="false" text="Process Payment" />
I hope this is useful to someone! If you end up using it on one of your sites, please leave a comment! Thanks! |
||||
|
|