tag:blogger.com,1999:blog-50743592256369477962024-02-20T03:08:31.839-06:00David LongDavid Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-5074359225636947796.post-79304515236667915012011-09-30T12:32:00.001-05:002011-09-30T12:32:20.565-05:00Fixing MMS on Dell Venue Pro<h2>Symptoms:</h2> <ol> <li>You forced the Mango updated on your Dell Venue Pro. (Here's a page with instructions if you haven't seen it yet: <a href="http://www.wpcentral.com/force-mango-update-early-through-zune-software">http://www.wpcentral.com/force-mango-update-early-through-zune-software</a>) <li>Someone sends you a text message with an image. <li>When you click the "Get media content now" link, the message flickers but you don't see the image.</li></ol> <h2>Problem:</h2> <p>The "MMS Proxy" setting s was erased from your phone when you applied the software update. <p> <h2>Solution:</h2> <ol> <li>Dial the number ##634# to launch the diagnostics page.</li> <li>Go to "MMS Settings"</li> <li>After the Mango update, all of these fields were blank for me.</li> <li>Click the "Restore system defaults" button. <li>You'll get a "Success, Setting is Done!" message. <li>You'll see your carrier's values in the text boxes. <li>Now go back to the messaging app and you should see the images when you click the "Get media content now" link.</li></ol> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com2tag:blogger.com,1999:blog-5074359225636947796.post-72036919961763370582011-02-04T12:46:00.001-06:002011-02-04T12:46:46.074-06:00Improve Your Productivity with AutoHotKey<p>I’ve been meaning to write something about using the <a href="http://www.autohotkey.com/">AutoHotKey</a> utility to increase productivity. Then I saw this article in <a href="http://lifehacker.com/">LifeHacker</a> which prompted me to get started:</p> <blockquote> <h5><a href="http://lifehacker.com/5751343/how-to-make-your-caps-lock-key-search-google-chrome-os+style">How to Make Your Caps Lock Key Search the Web, Chrome OS-Style</a></h5></blockquote> <p>If you haven’t heard about AutoHotKey, it’s a program that runs in your task bar that lets you create your own hotkeys. I never use the caps lock key, so AuthoHotKey let me change its behavior and put the wasted button to good use. Now whenever I press caps lock, Windows starts a new tab in Chrome and moves the focus to the address bar so it’s ready for a new search.</p> <p>My other use for AutoHotKey is to improve my typing speed when writing SQL queries. I spend a lot of time at work writing SQL code in the SQL Server Management Studio. Because of this, I’ve typed “SELECT * FROM” a countless number of times. With AutoHotKey, I’ve defined “Windows Key + Z” as a keyboard shortcut that will type this for me.</p> <p>Here’s what my AutoHotKey script looks like so you can get started with your own script:</p> <blockquote> <p>#z::Send SELECT * FROM{Space}<br><br><font color="#008000">; Add some media keyboard shortcuts since my laptop doesn’t have them…<br></font>#.::Send {Media_Next}<br>#,::Send {Media_Prev}<br>#/::Send {Media_Play_Pause}<br><br><font color="#008000">; Fix one of my common typing errors…<br></font>::helath::health<br><br><font color="#008000">; Create a new tab in chrome when caps lock is pressed. Note that you’ll have to<br>; change the path to Chrome on your computer… (Copied from the LifeHacker article)<br></font>Capslock::<br>SetTitleMatchMode, 2<br>If WinExist("ahk_class Chrome_WidgetWin_0")<br>{<br>WinActivate<br>WinWaitActive<br>Send ^t<br>Send ^l<br>}<br>else<br>{<br>Run "C:\Users\<strong><font style="background-color: #ffff00">your_user_name</font></strong>\AppData\Local\Google\Chrome\Application\chrome.exe"<br>sleep 100<br>Send ^t<br>Send ^l<br>}<br>return<br>+Capslock::Capslock</p></blockquote> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com1tag:blogger.com,1999:blog-5074359225636947796.post-80731094137297051332011-01-24T10:30:00.001-06:002011-01-28T23:32:26.079-06:00Goals for the Year<p>Around this time each year, we have to create goals for the year at work. I really don’t like this process. I understand that they are trying to make a quantitative way to evaluate the performance of all of the employees, but it’s hard to make goals when I don’t have control over what I work on.</p> <p>At church this week I was thinking that even though I dislike goals at work, it would probably be beneficial to have personal goals so that I can manage my free time better. Here are my goals that I have come up with.</p> <ol> <li>Read More <ul> <li>The <a href="http://net.bible.org/bible.php">Bible</a> <li><a href="http://www.gutenberg.org/files/2848/2848-h/2848-h.htm">Antiquities of the Jews</a> by Flavius Josephus <li><a href="http://books.google.com/ebooks?id=7VWZRVvoE0MC&source=gbs_slider_user_shelves_7_homepage">Decision Points</a> by George W. Bush <li><a href="http://www.amazon.com/Liberty-Tyranny-Conservative-Mark-Levin/dp/1416562850">Liberty and Tyranny</a> by Mark Levin</li></ul> <li>Write More – I hated writing in school, but you can’t take over the world if you can’t convey your thoughts to others. I’ve also had to write quite a bit more for work for project proposals. <li>Build a robot for the <a href="http://dprg.org/index.html">DPRG</a> May competition <li>Play the piano better <li>Home Automation – be able to control several of the lights in my house <li>Balance work time better. I always end up having to make up at least 2 hours on the weekends.</li></ol> <p>I’ll have to come back and put in some deadlines.</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-58664918045057751232011-01-21T11:55:00.000-06:002011-01-21T11:54:05.198-06:00Virtual PC vs. VirtualBox<p>If you want to run a Linux VM on Windows 7 64bit, don’t even bother trying to get it to work under <a href="http://www.microsoft.com/windows/virtual-pc/">Microsoft Virtual PC</a>. Not only is not supported, it just doesn’t work. I spent several hours trying to tweak parameters to no avail. It looks like it is trying to do the virtualization at a lower level which would give better performance with the trade off being compatibility issues. It does work great for running Windows VM’s, though. I’ve used the Windows XP VM, and it works fine.</p> <p>In order to get my Linux VM running, I ended up using <a href="http://www.virtualbox.org/">VirtualBox</a> for the virtualization software. It was shocking how easy it was to get <a href="http://www.ubuntu.com/">Ubuntu</a> installed and running. The wizard’s in VirtualBox step you through mounting the ISO and booting up the VM. Eventually I want to get a website using <a href="http://www.mono-project.com/Main_Page">Mono</a> up and running to play with. For now, I’ll just use it for some cross-platform browser testing for my client’s websites.</p> <p><strong>Conclusion:</strong></p> <p>If you want to run a Linux VM, try VirtualBox. If you only want Windows VM’s then either Virtual PC or VirtualBox will work fine. On the server side, I’m still biased towards Hyper-V.</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-44771568170573469612011-01-08T00:52:00.001-06:002011-01-08T00:52:32.259-06:00“The Colorado Kid” by Stephen King<p>Last night I finished reading “<a href="http://en.wikipedia.org/wiki/The_Colorado_Kid">The Colorado Kid</a>” by Stephen King. This was the first Stephen King book I’ve read. My wife and I really like the show “<a href="http://www.syfy.com/haven/">Haven</a>” on the <a href="http://www.syfy.com/">Syfy</a> channel which is supposed to be based on this book.</p> <p>I was hoping that it would give more background information or clues into the show’s mysteries, but it didn’t. The book and show are set in a similar north eastern town, but the two main characters in the book are only side characters on the show. About the only things in common are the setting and mysterious atmosphere.</p> <p>I would read another Stephen King book in the future, though. I know there are plenty to choose from…</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com1tag:blogger.com,1999:blog-5074359225636947796.post-35486892789634618392011-01-07T23:59:00.001-06:002011-01-09T23:58:37.276-06:00Recommended Local Businesses<p>As a former small business owner, I like helping other small businesses. Here are some small businesses in the Plano, Murphy, & Wylie area that I recommend:</p> <h2>Food</h2> <p><strong>Napolis Restaurant<br></strong>701 N. Hwy 78<br>Wylie, TX<br>972-442-4653<br><a href="http://napolistx.com/Wylie.htm">http://napolistx.com/Wylie.htm</a> </p> <p><strong>Mogio's Gourmet Pizza</strong><br>158 West FM 544<br>Murphy, TX 75094<br>(972) 423-8100<br><a href="http://mogiospizza.com">http://mogiospizza.com</a> </p> <h2>Car</h2> <p><strong>Highway 78 Auto<br></strong>3302 N Highway 78<br>Wylie, TX 75098<br>(972) 442-2269<br><a href="http://maps.google.com/local_url?q=http://www.hwy78auto.com/&dq=Highway+78+Auto,+Wylie+TX&f=q&source=s_q&hl=en&geocode=&sll=37.0625,-95.677068&sspn=41.682395,92.900391&ie=UTF8&ll=33.035507,-96.489143&spn=0.04325,0.090723&t=h&z=14&iwloc=A&cid=11892866267817495371&output=embed&oi=miw&sa=X&ct=miw_link&cd=1&cad=homepage,cid:11892866267817495371&ei=15UnTdrUKJa8zAT2252_Cw&s=ANYYN7l6YAk4sH7MQcy3AatJ131RR9IR_w">hwy78auto.com</a></p> <h2>Dentist</h2> <p><strong>Westgate Dental<br></strong>520 W. Brown Street Suite A<br>Wylie, TX 75098<br>(972) 429-4311 <br><a href="http://www.mywyliedentist.com/">http://www.mywyliedentist.com/</a></p> <h2>Haircut</h2> <p><strong>Billy Luke<br></strong>7602 W. Campbell Road<br>Suite #1<br>Dallas, TX 75248<br>214-532-4983<br><a href="http://www.salonsbyjc.com/operators/index2.asp?r_id=53">http://www.salonsbyjc.com/operators/index2.asp?r_id=53</a></p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-9913781026122852832011-01-06T11:30:00.001-06:002011-01-17T14:27:14.223-06:00Audio Stuttering in Windows 2008 R2<p>I’ve been running Windows Server 2008 R2 64bit for my desktop OS at work for a while now. When playing background music with Windows Media Player, I’ve always had music skipping/stuttering issues. You can especially notice it when moving windows around or running a high CPU task (like Flash animations).</p> <p>I think I’ve finally figured out how to fix it. It looks like in Windows 2008, the audio processes are by default given a CPU priority below low. Because of that any other program will preempt Windows Media Player which would cause the stuttering. It turns out that there is a registry key that controls this:</p> <blockquote> <p>Key: HKLM\Software\Microsoft\Windows NT\CurrentVersion\multimedia\SystemProfile<br>Value: SystemResponsiveness<br>Type: REG_DWORD</p></blockquote> <p>In Windows 2008 R2, the default value is 100 (decimal). In Windows Vista this value is 20 (decimal). The <a href="http://msdn.microsoft.com/en-us/library/ms684247(v=vs.85).aspx" target="_blank">MSDN article</a> describing this registry key says that this value controls “the percentage of CPU resources that should be guaranteed to low-priority tasks. For example, if this value is 20, then 20% of CPU resources are reserved for low-priority tasks.” It sounds like the remaining percentage is divided up between the open multimedia applications. I’m going to set this key to 50 (decimal) on my computer and see if that makes a difference. Rebooting as soon as I can close all of my windows… It looks like that worked. <p>Other posts about this: <ul> <li><a href="http://nerdfortress.com/2008/03/12/using-windows-server-2008-workstation-audio-stutters/">http://nerdfortress.com/2008/03/12/using-windows-server-2008-workstation-audio-stutters/</a> <li><a href="http://www.msfn.org/board/topic/115014-fix-potential-audio-problems/">http://www.msfn.org/board/topic/115014-fix-potential-audio-problems/</a></li></ul> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com5tag:blogger.com,1999:blog-5074359225636947796.post-16348743503934337282011-01-03T13:04:00.001-06:002011-01-04T20:33:05.032-06:00Quandrantid Meteor Shower<p>It looks like the Quandrantid meteor shower will peak tonight around 7pm CST. The radiant will be in the north west between the big dipper and the little dipper. It doesn’t sound like Texas will be able to see many of them, but the viewing time is so early in the evening that it might not hurt to look anyways.</p> <p>More info:</p> <blockquote> <p><strong>Elusive Meteor Shower and Solar Eclipse to Ring in 2011<br></strong><a href="http://www.wired.com/wiredscience/2011/01/quadrantid-meteors/">http://www.wired.com/wiredscience/2011/01/quadrantid-meteors/</a></p> <p><b>Promising Quadrantid Meteor Shower to Peak Next Week<br></b><a href="http://www.space.com/spacewatch/quarantid-meteor-shower-peaks-next-week-101231.html">http://www.space.com/spacewatch/quarantid-meteor-shower-peaks-next-week-101231.html</a></p></blockquote> <p>Europe and Asia will also get to see a partial solar eclipse to go along with the meteor shower, but it won’t be visible in the US.</p> <p><strong>Update:</strong> We weren’t able to see any meteors. There was a big, thick cloud right over the northwest horizon where they should have been. Orion looked very nice, though.</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-28238013432445758462010-12-31T13:21:00.000-06:002011-01-03T13:22:06.322-06:00Original Series Star Trek Movies<p>For Christmas, my wonderful wife bought me all of the Star Trek movies I was missing from my collection. We’ve started watching all 11 of them in order now. She hasn’t seen most of them. So far we’ve made it through #7 (Generations). We both agree that this is how we would sort the original series movies from best to worst:</p> <ol> <li>6: The Undiscovered Country <li>4: The Voyage Home – Directed by Leonard Nimoy. In one of his autobiographies, he tells how he used a “Mission Impossible” style plot structure: multiple teams of people working separately towards a common goal. <li>2: The Wrath of Kahn <li>5: The Final Frontier – Well connected plot—just not the best plot. <li>3: The Search for Spock – It seems bad to rank this one so low, but the plot wasn’t very connected. It does set the stage for #6. <li>1: The Motion Picture – We both fell asleep during this one.</li></ol> <p>This ranking still preserve the rule that the even number movies are the best.</p> <p>Next we’ll have to see how the next generation movies compare…</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-46455409035012096882010-12-20T13:12:00.000-06:002011-01-03T13:20:10.899-06:00Lunar Eclipse<p>Make sure you go see the total lunar eclipse tonight between 1:41am and 2:53am CST. The middle of totality is at 2:17am.</p> <blockquote> <p>The 12 Stages of Monday's Total Lunar Eclipse<br><a href="http://www.space.com/spacewatch/total-lunar-eclipse-12-stages-101219.html">http://www.space.com/spacewatch/total-lunar-eclipse-12-stages-101219.html</a></p> <p>How to Watch the Dec. 20 Total Lunar Eclipse<br><a href="http://www.space.com/spacewatch/total-lunar-eclipse-moon-observing-tips-101215.html">http://www.space.com/spacewatch/total-lunar-eclipse-moon-observing-tips-101215.html</a></p></blockquote> <p><strong>Update</strong>: Clouds messed up more than half of the eclipse last night, but I did get a couple of pictures:</p> <p><img src="http://sphotos.ak.fbcdn.net/hphotos-ak-ash1/hs742.ash1/163405_10150108256005312_784575311_7467119_7608777_n.jpg" width="402" height="105"></p> <p>Here are some pictures other people took of the eclipse: <a title="http://wvs.topleftpixel.com/10/12/23/" href="http://wvs.topleftpixel.com/10/12/23/">http://wvs.topleftpixel.com/10/12/23/</a></p> <p>And here’s a video of the entire eclipse: <a title="http://blogtown.portlandmercury.com/BlogtownPDX/archives/2010/12/21/here-is-what-you-missed-during-last-nights-eclipse" href="http://blogtown.portlandmercury.com/BlogtownPDX/archives/2010/12/21/here-is-what-you-missed-during-last-nights-eclipse">http://blogtown.portlandmercury.com/BlogtownPDX/archives/2010/12/21/here-is-what-you-missed-during-last-nights-eclipse</a></p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-83106510191664537502010-11-05T01:09:00.000-05:002011-01-05T00:10:00.900-06:00Favorite Utilities<p> </p> <p>Xenu Link Checker<br><a href="http://home.snafu.de/tilman/xenulink.html">http://home.snafu.de/tilman/xenulink.html</a><br>This is the best tool I've seen that will crawl a site and check all of the links.</p> <p>HTTrack - Download Websites<br><a href="http://www.httrack.com/page/2/en/index.html">http://www.httrack.com/page/2/en/index.html</a><br>Lets you download a website to disk. I've used this to archive old hospital web sites.</p> <p>CPU ID - Hardware Inventory<br><a href="http://www.cpuid.com/cpuz.php">http://www.cpuid.com/cpuz.php</a></p> <p>FileZilla - FTP Client<br><a href="http://filezilla-project.org/">http://filezilla-project.org/</a></p> <p>.Net Reflector<br><a href="http://www.red-gate.com/products/reflector/">http://www.red-gate.com/products/reflector/</a></p> <p>Microsoft Live Mesh<br><a href="http://www.mesh.com/">http://www.mesh.com/</a><br>"With Live Mesh, you can synchronize files with all of your devices, so you always have the latest versions handy. Access your files from any device or from the web, easily share them with others, and get notified whenever someone changes a file."</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-32375523576867523672010-07-05T01:03:00.000-05:002011-01-05T00:03:22.597-06:00Registering Extensions for Windows Search<p>If you are a programmer who uses the Windows Search service to index documents on your local computer then this should be useful:</p> <blockquote> <p>How to register Microsoft Filter Pack with SharePoint Server 2007 and with Search Server 2008<br><a href="http://support.microsoft.com/?id=946336">http://support.microsoft.com/?id=946336</a></p></blockquote> <p>By default, the Windows Search service only indexes content with certain file extensions. Of course they leave out the extensions used in source code. Step #3 from the KB article tells how to add registry keys that tell the Windows Search service to index additional file types. I’ve done this for all of the common .Net file types: cs, aspx, xml. Now, whenever I do a search through Windows Explorer or the start menu, I’ll see my source code in the search results.</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-17066997847420917262010-06-04T21:38:00.000-05:002011-01-04T21:56:12.810-06:00Access Denied when Running Site Locally<p>"Could not load file or assembly 'xxxxxx' or one of its dependencies. Access is denied." <p>If you get this exception when running an ASP.Net site through the Visual Studio web server, make sure that McAfee isn't causing the problem. Here's what I had to do to turn it off: <ol> <li>Open the "VirusScan Console" <li>Go to properties on "Access Protection" <li>Click on "Common Maximum Protection" <li>Make sure "Prevent creation of new executable files in Windows folder" is set to NOT block. <li>Click "OK" <li>Now restart the Visual Studio web server and it should work!</li></ol> <p>I’ve also had this problem when the Windows Search Service is trying to index the DLL’s in my “bin” folder every time I compiled. You could try using the “Process Monitor” tool to see if there’s another program accessing your DLL causing the locking problem.</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-67136413682753809932010-04-21T15:14:00.000-05:002011-01-05T09:20:37.852-06:00Space used by SQL tables<p>This SQL might be useful to you. It will show you which tables in your SQL 2005+ database are taking up the most space. Parts of the code were taken from the sp_dbsize system stored procedure.</p> <div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; font-size: 8pt; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper"><pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100.23%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; height: 479px; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"><span style="color: #0000ff">DECLARE</span> @TotalReserved <span style="color: #0000ff">AS</span> <span style="color: #0000ff">INT</span><br><span style="color: #008000">-- Get the database size...</span><br><span style="color: #0000ff">SELECT</span> @TotalReserved = <span style="color: #0000ff">sum</span>(<span style="color: #0000ff">convert</span>(<span style="color: #0000ff">dec</span>(15),reserved)) * 8192 / 1024<br><span style="color: #0000ff">FROM</span> sysindexes<br><span style="color: #0000ff">WHERE</span> indid <span style="color: #0000ff">in</span> (0, 1, 255)<br><br><span style="color: #0000ff">SELECT</span> *,<br> <span style="color: #0000ff">CASE</span> <span style="color: #0000ff">WHEN</span> <span style="color: #0000ff">Rows</span> > 0 <span style="color: #0000ff">THEN</span> Reserved * 1024 / <span style="color: #0000ff">Rows</span> <span style="color: #0000ff">ELSE</span> -1 <span style="color: #0000ff">END</span> <span style="color: #0000ff">as</span> <span style="color: #006080">'AvgBytesPerRow'</span>,<br> Reserved * 100 / @TotalReserved <span style="color: #0000ff">as</span> <span style="color: #006080">'Percent'</span>,<br> replicate( <span style="color: #006080">'X'</span>, Reserved * 100 / @TotalReserved ) <span style="color: #006080">'Reserved Space Graph'</span><br><span style="color: #0000ff">FROM</span> (<br> <span style="color: #0000ff">select</span> t.Table_Name,<br> (<br> <span style="color: #0000ff">SELECT</span> <span style="color: #0000ff">CAST</span>(<span style="color: #0000ff">CAST</span>(<span style="color: #0000ff">SUM</span>(Reserved) <span style="color: #0000ff">AS</span> <span style="color: #0000ff">FLOAT</span>) * 8192 / 1024 <span style="color: #0000ff">AS</span> <span style="color: #0000ff">NUMERIC</span> )<br> <span style="color: #0000ff">FROM</span> sysindexes<br> <span style="color: #0000ff">WHERE</span> id = OBJECT_ID( t.Table_Name ) <span style="color: #0000ff">and</span> indid <span style="color: #0000ff">in</span> (0, 1, 255)<br> ) <span style="color: #0000ff">as</span> <span style="color: #006080">'Reserved'</span>,<br> (<br> <span style="color: #0000ff">SELECT</span> i.<span style="color: #0000ff">rows</span><br> <span style="color: #0000ff">FROM</span> sysindexes i<br> <span style="color: #0000ff">WHERE</span> i.indid < 2<br> <span style="color: #0000ff">AND</span> i.id = OBJECT_ID( t.Table_Name )<br> ) <span style="color: #0000ff">as</span> <span style="color: #006080">'Rows'</span><br> <span style="color: #0000ff">FROM</span> information_schema.tables t<br>) a<br><span style="color: #0000ff">ORDER</span> <span style="color: #0000ff">BY</span> Reserved DESC</pre><br></div> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-31777098000899466922010-01-04T14:25:00.000-06:002011-01-04T14:25:29.161-06:00CSS Text-Overflow<p>Text-Overflow CSS property:<br><a href="http://msdn.microsoft.com/en-us/library/ms531174(VS.85).aspx">http://msdn.microsoft.com/en-us/library/ms531174(VS.85).aspx</a> <p>Emulate text-overflow:ellipsis in Firefox with CSS<br><a href="http://www.jide.fr/emulate-text-overflowellipsis-in-firefox-with-css">http://www.jide.fr/emulate-text-overflowellipsis-in-firefox-with-css</a></p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-18665195702319327452010-01-04T14:23:00.000-06:002011-01-04T20:34:01.468-06:00How to Reinstall F5 VPN<p>I often have to log in to an F5 VPN to do my work, but sometimes all of the F5 components just don’t want to work. Here are the steps to uninstall the F5 components so that the login process will reinstall the latest version.</p> <ol> <li>Download <a href="https://firepass.fpfaq.com/sandbox/f5wininfo.exe">https://firepass.fpfaq.com/sandbox/f5wininfo.exe</a></li> <li>Run the program as an administrator.</li> <li>Tools > Remove Components > Yes</li> <li>Close the program</li> <li>Log in to to your F5 VPN site.</li></ol> <p>Now the F5 components will be reinstalled and the “Network Access” will work.</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com8tag:blogger.com,1999:blog-5074359225636947796.post-90637788808358871862009-04-16T15:13:00.000-05:002011-01-04T20:36:29.872-06:00TreeView Bug with Bold Fonts<p>In a .Net 2.0 Windows forms app, if you can’t get the a TreeNode to be displayed as bold within a TreeView, take a look at this KB article:</p> <blockquote> <p>The text of a node may be truncated when you programmatically set the Font property of the node to the Bold value in a Windows Forms-based application that uses the .NET Framework 2.0<br><a href="http://support.microsoft.com/?scid=kb;en-us;937215&x=8&y=13">http://support.microsoft.com/?scid=kb;en-us;937215&x=8&y=13</a></p></blockquote> <p>You have to modify the "Text" property of the Node <em>after</em> it has been added to the TreeView.</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-2761399046086256782009-02-12T14:13:00.000-06:002011-01-04T14:13:40.147-06:00Flickering ListView<p>If you have a ListView in a Windows Forms app, use the following code to stop it from flickering:</p> <div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper"><pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"><span style="color: #0000ff">using</span> System.Reflection;<br> <br><span style="color: #008000">// For some reason the "DoubleBuffered" property isn't exposed on the ListView class</span><br><span style="color: #008000">// so we have to use reflection to set it even though it's a "protected" property...</span><br><br>PropertyInfo oDoubleBuffered = <span style="color: #0000ff">this</span>.listView1.GetType().GetProperty(<br> <span style="color: #006080">"DoubleBuffered"</span>, BindingFlags.NonPublic | BindingFlags.Instance );<br><span style="color: #0000ff">if</span> ( oDoubleBuffered != <span style="color: #0000ff">null</span> )<br> oDoubleBuffered.SetValue( <span style="color: #0000ff">this</span>.listView1, <span style="color: #0000ff">true</span>, <span style="color: #0000ff">null</span> );</pre><br></div> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0tag:blogger.com,1999:blog-5074359225636947796.post-72221889251171440342009-01-04T23:57:00.000-06:002011-01-04T23:57:26.229-06:00Temporary Assemblies with XmlSerializer<p>If you are using the XmlSerializer in your app, these pages might help you with some scalability problems: <blockquote> <p>Scott Hanselman's Computer Zen - Changing where XmlSerializer Outputs Temporary Assemblies<br><a href="http://www.hanselman.com/blog/ChangingWhereXmlSerializerOutputsTemporaryAssemblies.aspx">http://www.hanselman.com/blog/ChangingWhereXmlSerializerOutputsTemporaryAssemblies.aspx</a> <p>Scott Hanselman's Computer Zen - HOW TO Debug into a .NET XmlSerializer Generated Assembly <a href="http://www.hanselman.com/blog/HOWTODebugIntoANETXmlSerializerGeneratedAssembly.aspx">http://www.hanselman.com/blog/HOWTODebugIntoANETXmlSerializerGeneratedAssembly.aspx</a></p></blockquote> <p>Also, make sure that you cache the XmlSerializer class that gets generated for your type. Each time a serializer class gets generated, it gets compiled into a separate assembly and loaded into your AppDomain. The problem is that assemblies can not be unloaded from an AppDomain so it just fills up with these generated assemblies.</p> David Longhttp://www.blogger.com/profile/02277490018355612429noreply@blogger.com0