January 2012
2 posts
Found - Lync for Mac 2011 crashes on 10.7.2
The Lync client for Apple’s OSX platform was released recently - much to a sigh of relief from most Apple users. While Communicator 2011 was ‘OK’ it was on OCS 2007 R2 experience, not Lync, and so felt like the poor cousin of your fellow Windows Lync users. Anyways, I ran into a problem. On all of my Mac machines Lync just wouldn’t run - I’d fire it up, sign in, and bang, it would...
Maslow's Hierarchy of Needs of Software...
via hanselman.com Just remember the point that you’re not cool until you have continuous integration. Posted via email from Adam Hathcock’s Life in Software | Comment »
December 2011
3 posts
The interesting bits on the recent Hash Table...
Check out this website I found at packetstormsecurity.org It’s interesting that normal .NET is not affected but ASP.NET is since it uses a different hash function than the one available in the framework. Also, it is interesting how many platforms are affected as well. Posted via email from Adam Hathcock’s Life in Software | Comment »
Another Microsoft mention
Use Compression You can reduce network bandwidth requirements by employing a compression scheme, such as gzip. Using compression is even more important when using an XML-based format like Atom. You should consider using compression to reduce the network requirements when you use the OData client for Windows Phone, which only supports the Atom XML format. ...
Simple Producer Consumer With Tasks And .NET 4
Threading was never so easy since .NET 4 with the TPL has been released. I know I am a bit late but there are so many nice things which might still be new to many of us. The IEnumerable interface has become famous with the introduction of LINQ but many of us have not yet realized that IEnumerable<T> and T[] or List<T> can be exchanged in many cases but there are cases where it is...
November 2011
3 posts
SharpCompress 0.7
Reworked API to be more consistent. See Supported formats table. Added some more helper methods - e.g. OpenEntryStream (RarArchive/RarReader does not support this) Fixed up tests Another fine release. Posted via email from Adam Hathcock’s Life in Software | Comment »
Petzold Book Blog - .NET Streams and Windows 8...
PETZOLD BOOK BLOGCharles Petzold on writing books, reading books, and exercising the internal UTMRecent Entries< PreviousBrowse the ArchivesSubscribe to the RSS Feed.NET Streams and Windows 8 IStreamsNovember 8, 2011 New York, N.Y. I am currently engaged in writing an EPUB viewer for Windows 8. EPUB is a popular format for electronic books. The standard is maintained by the International...
Opportunistic Refactoring
My sense is that most teams don’t do enough refactoring, so it’s important to pay attention to anything that is discouraging people from doing it. via martinfowler.com Agreed Posted via email from Adam Hathcock’s Life in Software | Comment »
October 2011
2 posts
Windows 8 Development Platform Clarified
via lhotka.net Stuff all Metro interested people need to understand. It’s easy to see why it’s confusing. Posted via email from Adam Hathcock’s Life in Software | Comment »
SharpCompress mentioned by WCF Data Services team.
OData Compression in Windows Phone 7.5 (Mango) - WCF Data Services Team Blog - Site Home - MSDN Blogs They’re just using one specific part since GZip isn’t implemented in Windows Phone. It’s still cool and I like just knowing people are using my stuff. Posted via email from Adam Hathcock’s Life in Software | Comment »
September 2011
4 posts
CQRS is too complicated
via codeofrob.com Great summary post. I like the lol at the mapped domain objects. Posted via email from Adam Hathcock’s Life in Software | Comment »
Look what I did: SharpCompress 0.6 Release
sharpcompress.codeplex.com Added 7Zip support and RAR SOLID support, plus lots of fixes and little additions. Check out the release page Posted via email from Adam Hathcock’s Life in Software | Comment »
“foreach” vs “ForEach” extension
“foreach” vs “ForEach” blogs.msdn.com This is a blog post from 2009 that I should have read. I keep making a ForEach extension method. Eric is right though. Side effects should be explicit. Posted via email from Adam Hathcock’s Life in Software | Comment »
1 tag
Testing Metro with VS 11 and C#
So I loaded up the Dev preview of VS11 and started with a default grid project. I was just curious to see what stuff is being loaded. .NET, WinRT, whatever… The first point of confusion was that there were no References on the VS project. Looking at the csproj I see this: <ItemGroup> <!— A reference to the entire .Net Framework and Windows SDK are automatically...
August 2011
1 post
Google thinks I am in a different country. -...
Receive email alerts when new replies are posted Subscribe to the feed for this discussion via google.com Since my work ISP is in Switzerland, I need to change my search country so everything isn’t in German. Posted via email from Adam Hathcock’s Life in Software | Comment »
June 2011
1 post
SharpCompress 0.4
Check out this website I found at sharpcompress.codeplex.com I’m actually using this in-house at work. Helps stamp out bugs and usage. Posted via email from Adam Hathcock’s Life in Software | Comment »
May 2011
4 posts
2 tags
Silverlight, Out of Browser and GZip
Much to my dismay, Silverlight 4 going out of browser with GZip compression just isn’t supported. With Silverlight in the browser, the browser will likely add the Accept Encoding header with gzip (and probably deflate) for you. Then the browser will also decode the optionally gzipped data automagically. I guess that’s why there is no GZipStream in Silverlight at all :) ...
WCF WebAPI Preview 4 pains
I’ve switched over to the WCF WebAPI from just vanilla WCF with some fairly bad pains. 1) You’re not supposed to used WCF Contracts with .NET clients. According to this stackoverflow post WebAPI wants you to use a generic HttpClient instead of a contract. This, frankly, sucks. I want .NET clients to use the contract and non-.NET clients to use http straight up. The only issue has...
NuGet gallery - NUnrar
Recommended Version NUnrar - Unrar in pure C# - 1.0.0 Edit Manage Owners Delete By Adam Hathcock NUnrar for extracting rar files in .NET with forward-only reading and file random access APIs. Project site License Report Abuse Contact Owners PM> Install-Package nunrar Packages details Rating: Ratings: 0 Average: 0 ...
NUnrar 1.0
This is the same as 0.9 plus some bug fixes. Most of my attention is focused on SharpCompress. via nunrar.codeplex.com Finally got around to packaging this. Now to attempt NuGet Posted via email from Adam Hathcock’s Life in Software | Comment »
April 2011
3 posts
SharpCompress 0.1
This first milestone has a read-only API for Archives (random access) and Readers (forward-only) for both RAR and ZIP. Basic zip with deflate is all I’ve done. More exotic zip types will be worked on soon. I think 0.2 will be writing for Archives and Writers (forward-only) for zip. API CHM is included. This first milestone has a read-only API for Archives (random access) and Readers...
Silverlight COM Toolkit
silverlightcom.codeplex.com I’ve just contributed to this project as I’ve needed to access arbitrary files from a fully trusted Silverlight 4 client. It’s dumb that full trust won’t give you file access (except through COM!) Maybe Silverlight 5 (probably announced with beta today) will allow this. Posted via email from Adam Hathcock’s Life in...
1 tag
NUnrar 0.9 (1.0 beta)
Final RarReader interface defined. API is unlikely to change. I’ll probably just release the same thing as 1.0 unless major complaints are reported or bugs are found. http://nunrar.codeplex.com/releases/view/63846 Also, CHM created with API reference: http://nunrar.codeplex.com/releases/view/63845 Posted via email from Adam Hathcock’s Life in Software | Comment »
March 2011
1 post
NUnrar 0.8.1
http://nunrar.codeplex.com/releases/view/63482 Exposed FileTimes (Modified, Accessed, Created) on entries Using ICollection on RarArchive.Entries and RarArchives.Volumes that will only access the archive as entries are requested. This speeds up reading of initial entries rather than reading all at once. Both user requests :) I finally figured out how the RarReader interface should work to...
February 2011
5 posts
1 tag
NUnrar 0.8
NUnrar 0.8 Lots of little fixes and some API changes: Adding extras to API (IsMultipartVolume, IsSolidArchive, IsFirstVolume) Made RarArchive.Entries and Volumes be lazy so work is only done when needed. Added Mono target Implemented RarOptions.GiveDirectoryEntries CRC values for multi-volume archives should be correct exceptions are thrown for Solid and Encrypted archives since NUnrar...
NuGet and Add-BindingRedirect
Strong names and binding redirects Another important part of the story that we haven’t yet discussed is assembly strong naming. When an assembly has a strong name, the binding to that assembly becomes very strict. That is, if assembly C depends on assembly X 2.0, it’s not going to be happy with any other version of X, even if it’s X 2.0.0.1. Note: I’m now talking about assembly versions rather...
Self hosting WCF 4 REST stories
I’ve figured out how to create a ServiceHost that will do REST work with GET/POST/PUT and I assume DELETE as well. Just haven’t tried that. Using the WebServiceHost alone will create 405 errors for POST and PUT. Do that, there is the aptly named “enableWebScript” endpoint behavior to use in the config file. But I abhor WCF xml configuration so doing it through code...
2 tags
Inject dependencies on NHibernate domain objects...
Having just dove head first into the NHibernate world, I’m learning all kinds of “stuff.” I say stuff that way because I don’t know if I like it or not yet. Any case, I ran into the situation where I wanted domain objects created from NHibernate to be automatically injected with objects from the DI container I was using. Specifically, Unity since I’m such a...
MonoMac and I create comictoolx
This is more of a “see how far I can get before I get bored” project. Plus, I wanted a CBR reader for my new mac mini. Using NUnrar and ever improving MonoMac tutorials I’ve created something that actually works. Apple did most of the heavy lifting for me by creating ImageKit and having some decent documentation for it. A nice MonoMac developer also recently added bindings...
December 2010
2 posts
1 tag
NUnrar 0.7.4
Made a new bugfix release after having been told about a stupid mistake I made. Namely, I was wrapping a stream with another and forgot to override Dispose to dispose the wrapped stream. NUnrar 0.7.4 Enjoy. Posted via email from Adam Hathcock’s Life in Software | Comment »
3 tags
Silverlight 4 font woes
This may or may not be a specific RichTextBox problem so I’m going to treat it like it is not. The situation is that I’m displaying a document with text that can specify any font that it desires. Of course, you cannot display text in a font that isn’t installed. Silverlight 4 does not give any kind of font list by font name. Wait! Fonts.SystemFontFaces will give you a list...
November 2010
8 posts
1 tag
Adventures in Silverlight 4 hit-testing.
Problem: I have misspelled words in a RichTextBox contained a DataGrid. I want to be able to right click on it and get the suggestions. I use TransformToVisual on the ContextMenu with 0,0 to transform to the RichTextBox’s relative points. I then iterate over the characters in the proper Run in the RichTextBox using GetCharacterRect and testing of the point from the ContextMenu’s...
1 tag
Silverlight 4 WCF Server-side Exceptions are...
All I want is a nice stacktrace from the server to the client. Is that so hard to ask? Apparently, it is. Honestly, I don’t care what soap or security requires. I don’t think I’ve gotten an explanation as to why it was hard in Silverlight 2/3. Read these and let your eyes glaze over at the hacks: http://msdn.microsoft.com/en-us/library/dd470096(VS.95).aspx ...
ComicTool 0.4.3 and NUnrar 0.7.2
Pulling double duty here. Needed a change to NUnrar for ComicTool. ComicTool 0.4.3 -Lots of changes trying to make things more responsive for large files. Largest I tested was 200mb. -Did some refactoring to make the code cleaner. Probably being anal. -UI will freeze a bit more during page/thumbnail loads but overall loading is much faster. Try it NUnrar 0.7.2 Added fix for old-style...
3 tags
ComicTool 0.4.2 - Silverlight CBZ/CBR Viewer
Bugfixes: Loading now uses .NET Framework decoders. This is faster and more robust it seems. Using .NET ImageTools for display still is easier. Exporting is better. ComicTool 0.4.2 Try it out. Posted via email from Adam Hathcock’s Life in Software | Comment »
3 tags
ComicTool 0.4.1 - Silverlight CBZ/CBR Viewer
I made the image loading be on demand but Thumbnails are preloaded. Saves a lot of memory. I’ll try to be more descriptive in my posts for people that actually read them. ComicTool 0.4.1 Try it out. Posted via email from Adam Hathcock’s Life in Software | Comment »
NUnrar 0.7.1
I really need to consider what a 1.0 release actually is :) NUnrar 0.7.1 Fixed improper stream disposal. Added Silverlight binary. Posted via email from Adam Hathcock’s Life in Software | Comment »
1 tag
ComicTool 0.4
I guess I just have an itch that I like scratching. ComicTool 0.4 adds: Saving/Export: Save original downloaded file or export to CBZ and PDF. Added Editing: Delete and Undelete pages. Reorder pages. Export changes to CBZ and PDF. Added keyboard shortcuts. Added dragging of main image in scroll viewer. Reintroduced thumbnails at the top. Try it out! Posted via email from Adam...
3 tags
ComicTool 0.3
The UI is now usable and stable. From now on, I’ll mostly just be doing fixes unless someone really hates it or has a good suggestion. Again, try it against URLs or just local files! ComicTool 0.3 Posted via email from Adam Hathcock’s Life in Software | Comment »
October 2010
2 posts
ComicTool 0.2
I did some low hanging fruit already: CBZ support added Drag/Drop and OpenFile support. ComicTool 0.2 Posted via email from Adam Hathcock’s Life in Software | Comment »
ComicTool 0.1
I finally got around to using nunrar for something. I’ve made a pure Silverlight comic viewer that will load files via URLs. A querystring on the hosting file can be used to make easy shortcuts. Right now it only supports CBR and URL loading but there is more to come. You can play with it here. ComicTool 0.1 Posted via email from Adam Hathcock’s Life in...
September 2010
2 posts
Just added twitter to my posterous
via blog.mandula.co.uk And I just had to go with the Man Men theme. Posted via email from Adam Hathcock’s Life in Software | Comment »
NUnrar 0.7 - now with multi-part forward-only...
There are two entry points to NUnrar: RarArchive and RarReader. RarArchive requires random access to a file and can extract any file in any order. RarReader performs a forward-only streaming extraction of a single or multi-part archive. This can be used to extract downloaded multi-part files on the fly. http://nunrar.codeplex.com/releases/view/52086 Posted via email from Adam...
August 2010
3 posts
NUnrar 0.6.1
Bug fix release: http://nunrar.codeplex.com/releases/view/50950 Posted via email from Adam Hathcock’s Life in Software | Comment »
NUnrar 0.6
Everyone needs to unrar things. http://nunrar.codeplex.com/releases/view/50033 Changes: Updated to .NET 4.0 Changed API to look like ZipArchive on BCL Team blog http://blogs.msdn.com/b/bclteam/archive/2010/06/28/working-with-zip-files-in-net.aspx Posted via email from Adam Hathcock’s Life in Software | Comment »
Silverlight Duplex Polling and null...
Using these two break points, I confirmed that we have a usable session state object in httpcontext.Current when we first received message from underlining channel, however when the user code is invoked for that same message it became null. via blogs.msdn.com I ran across this and it should have been obvious. The call will return the initial message and set the current context to null while...
July 2010
4 posts
More on Zip in .NET
First, I’d like to thank everybody for their comments on the Zip APIs. It’s great to know that I’m working on something that a lot of people will hopefully find useful. I’ll try to address the themes that came up in the comments. via blogs.msdn.com Apparently, there are a bunch of comments on how Zip should work in the BCL. I should read these and reflect on how to make NUnrar better. ...
Studio Styles .info
I just stumbled upon a color settings sharing site for Visual Studio: http://studiostyles.info/ I’ve submitted mine. Mainly for backup purposes: http://studiostyles.info/schemes/secondary-colors Posted via email from Adam Hathcock’s Life in Software | Comment »
Read the fine print: DispatcherTimer
A DispatcherTimer will keep an object alive whenever the object’s methods are bound to the timer.via msdn.microsoft.com After staring at Windbg attached to Silverlight and wondering how I can debug DependencyProperty reference chains, I looked at DispatcherTimer. Then I finally found this gem on the MSDN page. Thanks. Posted via email from Adam Hathcock’s Life in...
SQL CE 4 announced.
The biggest improvement is that it now designed and tested to work in a multi-threaded environment. Previous releases of SQL CE only worked in client-apps and would corrupt/crash in server environments. SQL CE 4 specifically supports server scenarios. We also now support shared hosting and medium trust - which wasn’t supported before. We are also updating SQL CE’s SQL support to...