tag:blogger.com,1999:blog-207079602009-04-15T13:08:58.397-07:00blog.averetek.NET musings, news, and product reviews courtesy of the Averetek development team.PeterTnoreply@blogger.comBlogger13125tag:blogger.com,1999:blog-20707960.post-65067118914085095662007-09-25T11:56:00.000-07:002007-09-25T12:04:51.506-07:00Creating a New Event Log Source for ASP.NETI was trying to set up error handling for a web app using the Windows event log and ran into trouble creating a new source. This code:<br /><br /><blockquote><br />string SourceName = "New Test Source";<br /><br />if (!System.Diagnostics.EventLog.SourceExists(SourceName))<br />&nbsp; System.Diagnostics.EventLog.CreateEventSource(SourceName, Application");<br /></blockquote><br /><br />which has successfully run in the past, now throws a security error. Apparently ASPNET doesn't have permission to read the Security event log. Probably picked up in some recent security update.<br /><br />I tried adding relevent permissions, but still ran into trouble. Reluctantly, I followed the advice under "First Approach" at <a href="http://support.microsoft.com/kb/329291">http://support.microsoft.com/kb/329291</a> and proceeded to manually add my new source directly to the registry. Worked like a champ, and now I'm back on the road again.<br /><br />To avoid a little message in each entry protesting lack of info about event IDs, add a string for EventMessageFile. I used C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-6506711891408509566?l=blog.averetek.com%2Fdefault.html'/></div>Jeffhttp://www.blogger.com/profile/15797039422600639140noreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1150400105784814312006-06-15T12:23:00.000-07:002006-06-15T12:35:05.806-07:00Generating Unambiguous CodesAn end user wrote to customer support for help because she couldn't get access to a site with the authorization code that had been generated for her.<br /><br />The code she received was 0WUGOS. The first character is a zero, the fifth is the letter O. Depending on the font being used, they can be hard to tell apart. How much do you want to bet she was typing the letter O for both?<br /><br />When writing a routine to generate a code that somebody will have to type in, it's a good idea to throw out any characters that could be easily mistaken for another. The letters I and O and the numerals 1 and 0 are the most likely suspects. If you really want to avoid any possible confusion, throw out U and V too.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-115040010578481431?l=blog.averetek.com%2Fdefault.html'/></div>Jeffhttp://www.blogger.com/profile/15797039422600639140noreply@blogger.com1tag:blogger.com,1999:blog-20707960.post-1144255413348000872006-04-05T09:33:00.000-07:002006-04-05T09:43:33.366-07:00SQL database and table sizes plus undocumented stored proceduresAs I extend my knowledge of SQL development I am constantly finding new tools that are undocumented. Here are some nice ways to know what state your database is in and some other tools to help maintain it.<br /><br /><a href="http://www.4guysfromrolla.com/webtech/032906-1.shtml">http://www.4guysfromrolla.com/webtech/032906-1.shtml</a><br /><br /><a href="http://www.mssqlcity.com/Articles/Undoc/SQL2000UndocSP.htm">http://www.mssqlcity.com/Articles/Undoc/SQL2000UndocSP.htm</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-114425541334800087?l=blog.averetek.com%2Fdefault.html'/></div>Mr. Engineerhttp://www.blogger.com/profile/10669234620720867130noreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1143922622922369602006-04-01T12:16:00.000-08:002006-04-01T12:17:02.966-08:00Atlas<a href="http://weblog.infoworld.com/udell/2006/03/31.html#a1417"><img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px;" src="http://weblog.infoworld.com/udell/screenroom/atlas.png" border="0" alt="" /></a><br />Microsoft is working on an AJAX toolkit called Atlas. Here's a good <a href="http://weblog.infoworld.com/udell/2006/03/31.html#a1417">overview</a> in the form of a screencast from Jon Udell. He interviewed Microsoft's Shanku Niyogi, who demonstrated some of the capabilities. AJAX extensions for ASP.NET, pretty cool!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-114392262292236960?l=blog.averetek.com%2Fdefault.html'/></div>Jeffhttp://www.blogger.com/profile/15797039422600639140noreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1140940235078589152006-02-25T23:38:00.000-08:002006-02-25T23:52:30.903-08:00Distributed computing & Enigma<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://blog.darkfrequency.com/uploaded_images/220px-Nsa-enigma-706960.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://blog.darkfrequency.com/uploaded_images/220px-Nsa-enigma-703313.jpg" alt="" border="0" /></a><br />This is a cool opportunity to use technology to solve one of history's mysteries. The M4 project is using distributed computing to decipher the 3 original <a href="http://en.wikipedia.org/wiki/Enigma_machine">Enigma</a> messages. The <a href="http://www.bytereef.org.nyud.net:8080/m4-project-first-break.html">first message</a> has already been broken. Binaries are available in multiple flavors for Windows and Unix.<br /><br /><a href="http://www.bytereef.org.nyud.net:8080/m4_project.html">M4 project home page</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-114094023507858915?l=blog.averetek.com%2Fdefault.html'/></div>PeterTnoreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1139359181664166132006-02-07T15:27:00.000-08:002006-02-07T16:41:50.723-08:00Symbol Characters in HTMLEver wonder what's the best way to represent a symbol or special character in HTML? For example, if you want to display the registered trademark symbol (®), there are at least three ways to do so:<br /><br />1) Enter the raw character - ®<br />2) Encode it using a <a href="http://www.blooberry.com/indexdot/html/tagpages/c/charents.htm">numbered character entity</a> - &amp;#174;<br />3) Encode it using a <a href="http://www.blooberry.com/indexdot/html/tagpages/c/charents.htm">named character entity</a> - &amp;reg;<br /><br />There are advantages and disadvantages to each approach. After a little searching, I found an excellent article on the subject at <a href="http://www.blooberry.com/indexdot/html/tagpages/text.htm">http://www.blooberry.com/indexdot/html/tagpages/text.htm</a>. In this case, they recommend going with the numbered character entity. Check out the article to find out why.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-113935918166416613?l=blog.averetek.com%2Fdefault.html'/></div>Jeffhttp://www.blogger.com/profile/15797039422600639140noreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1138859997926566232006-02-01T21:49:00.000-08:002006-02-01T21:59:57.936-08:00My must-have appsMost of my time is spent using Outlook, MSN Messenger, Visual Studio, and SQL Management Studio. Here’s my tidy list of other applications I use on a daily basis.<br /><br /><a href="http://www.bayden.com/SlickRun/">SlickRun</a> – spend five minutes with this great application and then spend the rest of your life wishing you had thought of it. SlickRun is a free floating command line utility for Windows. I use it about 100 times per day and almost never use the XP Start menu anymore.<br /><br /><a href="http://jetstat.com/iisadmin/">JetStat.com IIS Admin</a> – while there are many utilities to let you run & manage multiple IIS sites in Windows XP, very few of them are as lightweight as this one. It runs in the tray, and when minimized consumes less than 2 MB.<br /><br /><a href="http://www.aisto.com/roeder/dotnet/">.NET Reflector</a> – Loetz’s Reflector is a class browser for .NET components. It disassembles and displays in VB, C#, IL, and Delphi. It also has an analyzer that enumerates class dependencies, allowing you to quickly see the impact code changes will have on the rest of your application.<br /><br /><a href="http://www.ultraedit.com/">UltraEdit</a> – I use less than half of the features available and it still smokes any other editor out there.<br /><br /><a href="http://www.axosoft.com/Products/OnTime.aspx?cn=otm_overview">OnTime</a> – Dark Frequency standardized on AxoSoft’s OnTime for defect tracking. Feature-rich, highly customizable, and reasonably priced – the single-user version is even free.<br /><br /><a href="http://picasa.google.com/index.html">Picasa</a> – I have a million photos and this helps me organize them with Google's customary efficiency.<br /><br /><a href="http://blogs.geekdojo.net/brian/articles/Cropper.aspx">Cropper</a> – Brian Scott’s simple screen capturing app that lets you selectively capture parts of your desktop. Outputs to GIF, JPG, PNG, and others.<br /><br /><a href="http://www.apple.com/itunes">iTunes</a> – WinAmp may whip the llama’s ass, but iTunes it’s still the best platform for playing and managing my music. It’s an OK MP3 player but anyone can do that. The Smart playlists, hooks into the music store, and (of course) the iPod integration make it all work. <br /><br />I also love my <a href="http://www.blackberry.com/">BlackBerry</a> but who knows how <a href="http://www.usatoday.com/tech/products/services/2006-02-01-blackberry-life_x.htm">long that will last</a>…<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-113885999792656623?l=blog.averetek.com%2Fdefault.html'/></div>PeterTnoreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1137803572539372542006-01-20T16:30:00.000-08:002006-02-01T22:05:50.746-08:00More controlI always want to know more about how to control what is going on with my computer. Here are some interesting and useful ways to control System and startup activities.<br /><br /><a href="http://www.microsoft.com/technet/prodtechnol/windows2000serv/maintain/featusability/systeman.mspx">http://www.microsoft.com/technet/prodtechnol/windows2000serv/maintain/featusability/systeman.mspx</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-113780357253937254?l=blog.averetek.com%2Fdefault.html'/></div>Mr. Engineerhttp://www.blogger.com/profile/10669234620720867130noreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1137734387762868952006-01-19T21:15:00.000-08:002006-01-19T21:19:47.763-08:00Useful Run Commands for Windows<p>Gurneet Ravikanth shares an extensive list of Windows commands you can init by using Start > Run.</p><p><a href="http://weblogs.asp.net/dvravikanth/archive/2006/01/18/435764.aspx">Useful Run Commands for Windows</a></p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-113773438776286895?l=blog.averetek.com%2Fdefault.html'/></div>PeterTnoreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1137648598028956092006-01-18T21:20:00.000-08:002006-01-19T21:21:54.336-08:00Command CompletionThis is an oldie but goodie. I spend a lot of the time working at the command line, and since I'm a two-fingered typist I'll take any shortcut I can find to save keystrokes. Here's a cool registry hack that I stumbled across some time back that forces the command processor to complete your command with the [TAB] key.<br /><br /><ol><li>Go to Start > Run and type <strong>regedit</strong>.</li><li>Expand the <strong>My Computer\HKEY_LOCAL_MACHINE\Software\Microsoft\<br>Command Processor </strong>node.</li><li>Double-click the CompletionChar key and set Value Data to <strong>9</strong>.</li><li>Close the Registry Editor.</li></ol><p>Start the Command Processor, type <strong>cd \[TAB] </strong>and watch the magic. Subsequent [TAB] key presses will cycle through the available items alphabetically.</p><p>To my knowledge this works on all versions of Windows since NT 4.0.</p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-113764859802895609?l=blog.averetek.com%2Fdefault.html'/></div>PeterTnoreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1137046612310296262006-01-11T22:04:00.000-08:002006-01-11T22:16:52.333-08:00Wealthy and a nerd? Here's your next Mercedes<a href="http://blog.darkfrequency.com/uploaded_images/mercedes-755226.jpg"><img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; CURSOR: hand" alt="" src="http://blog.darkfrequency.com/uploaded_images/mercedes-750736.jpg" border="0" /></a>In my opinion there are few production cars that are cooler than the Audi S4, but check out the new Mercedes S-Class. Wired us running a story on it titled "The Ultimate Geek Car?".<br /><br />It's equipped with night-vision, radar, massaging seats, and an automated acceleration/braking control system that maintains a set distance between you and the vehicle in front of you. It also goes 0-60 in 5.4 seconds.<br /><br />Now if I only had $100,000 laying around...<br /><br /><a href="http://www.wired.com/news/technology/0,69960-0.html?tw=rss.index">[Wired] The Ultimate Geek Car?</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-113704661231029626?l=blog.averetek.com%2Fdefault.html'/></div>PeterTnoreply@blogger.com0tag:blogger.com,1999:blog-20707960.post-1137027667393358322006-01-11T16:50:00.000-08:002006-01-11T17:01:07.400-08:00Development SSL Certificate for Windows XPI had the need to install an SSL server certificate on my development machine. Of course, for development, nobody wants to go out and buy a real certificate from a real CA. I knew that many CAs offer free certificates for development, but you still have to jump through their hoops, wait for them to issue it, etc. There's also OpenSSL, but that has it's own set of hoops.<br /><br />Turns out Microsoft has made available "Internet Information Services (IIS) 6.0 Resource Kit Tools". One of the tools in the kit allows you to create your own self-signed SSL certificate. Very simple to use, with several overridable parameters if the defaults don't work for you.<br /><br />If you need SSL on a Windows XP development machine, this looks like the way to go. You can download it at <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;DisplayLang=en</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-113702766739335832?l=blog.averetek.com%2Fdefault.html'/></div>Jeffhttp://www.blogger.com/profile/15797039422600639140noreply@blogger.com1tag:blogger.com,1999:blog-20707960.post-1136776725463454902006-01-08T19:11:00.000-08:002006-01-11T21:50:18.926-08:00Logitech Cordless Desktop MX 5000 Laser. Conclusion: MediocreI’m a big fan of Logitech gear. I used to swear by Microsoft hardware but became a Logitech convert when I tried out a co-worker’s MX 10 00 mouse. It was amazingly accurate and smooth. I picked up a Cordless Desktop MX 1000 Laser kit for myself and really liked it.<br /><br /><a href="http://blog.darkfrequency.com/supporting_files/kit.jpg"><img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 115px; CURSOR: hand; HEIGHT: 98px" height="139" alt="" src="http://blog.darkfrequency.com/supporting_files/kit.jpg" border="0" /></a>I figured the MX 5000 Laser must be just as good, if not better, right? Not really. For the most part the design of the standard 102 keys is the same as the MX 1000, and for the most part it performs the basic functions of a keyboard properly (in the sense that keystrokes appear on the screen). It fails to meet expectations when it comes to the special features Logitech added.<br /><br /><a href="http://blog.darkfrequency.com/supporting_files/lcd.jpg"><img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 158px; CURSOR: hand; HEIGHT: 145px" height="130" alt="" src="http://blog.darkfrequency.com/supporting_files/lcd.jpg" border="0" /></a><br /><br />The MX 5000 sports an integrated 102 x 42 pixel multi-function display. Logitech uses it to show the currently playing song (built-in iTunes and Windows Media support), IM alerts, and the output of the “smart calculator”, a calculator built-in to the keyboard. The keyboard also has everything else you’d expect; media controls, browser navigation, and “special” function keys.<br /><br />The first thing I noticed is that the keyboard and mouse froze when my co-workers mobile phone rings. This sounds weird I know, especially considering the phone is not Bluetooth capable…just a regular old Nokia. Nonetheless it was predictable, and only a hard reboot of the machine would resolve it. Once there was more than 20 feet between his phone and the keyboard there was no longer an issue.<br /><br />The other negative is that when the keyboard attempts to display an alert (like an IM contact signing in) on the LCD there is a 10-15 second window where keystrokes are delayed. Disabling the alert functions resolves this, but should I have to? The mouse also experiences delay at weird times but I can’t tie it to any event at this point.<br /><br /><a href="http://blog.darkfrequency.com/supporting_files/mediacontrols.jpg"><img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 125px; CURSOR: hand; HEIGHT: 116px" height="70" alt="" src="http://blog.darkfrequency.com/supporting_files/mediacontrols.jpg" border="0" /></a>This keyboard has touch-sensitive volume and zoom controls, replacing the volume wheel and media buttons of the MX 1000. The controls are positioned on the left side, which is intuitive to me, but their functioning is flaky. Occasionally the keyboard will take a second to recognize that I’m trying to adjust the volume and then it will rapidly make the adjustment to catch up. I assume this is because the keyboard is just sending a series of keystrokes that are queuing up. The play/pause/next/previous media controls are also touch-sensitive. In order to hit these buttons you actually have to apply pressure to the buttons, but they don’t give way when depressed, which I would expect. Another design problem with the media controls is that there’s no physical differentiation between the buttons so you have to look at them to press one. They’re also really small and grouped closely so I find myself hitting the wrong ones on accident sometimes.<br /><br />On the plus side the battery life for the rechargeable mouse is great. It was out of the dock for over a week before it needed a charge, and then I just docked it for the night and it was ready in the morning. The keyboard runs on 4 standard AA batteries (included) and if it’s similar to the MX 1000 they will last a few months.<br /><br /><a href="http://blog.darkfrequency.com/supporting_files/hub.jpg"><img style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 116px; CURSOR: hand; HEIGHT: 112px" height="128" alt="" src="http://blog.darkfrequency.com/supporting_files/hub.jpg" border="0" /></a>Also cool is the Bluetooth USB receiver that comes with the kit. The receiver is also a hub so it allows you to connect other Bluetooth devices to your PC. I connected my Blackberry 7100 to it in a few simple steps and it works reliably. The specs claim that it has a range of up to 60 feet, but I haven’t tested this.<br /><br />Suggested retail price is $149. My recommendation is that you wait for the next pass before parting with your cash. From a functional standpoint it does more than most other keyboards but the features that it has that other keyboards lack are borderline gimmicky at best.<br /><br /><br /><strong>UPDATE @ 1/11/05:</strong> I'm returning this keyboard. After installing a series of updates from Windows Update I rebooted my machine, only to find that the keyboard could not make a connection to the Bluetooth receiver. I think MS must have pushed something in the update that messes with Logitech's Bluetooth implementation. So I plugged in a regular old PS2 keyboard to my system and no love. No love even after a hard reboot, jacking it in to the USB port, etc. The keyboard was fine in the BIOS but it disappeared once Windows started. I used Remote Desktop to get on my machine and I uninstalled the Logitech software. After that it was back to normal.<br /><br />Logitech sucks for disabling the PS2 ports on my system, and their Bluetooth keyboard sucks too.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/20707960-113677672546345490?l=blog.averetek.com%2Fdefault.html'/></div>PeterTnoreply@blogger.com0