Ronnie Diaz

  • Localize Date Format in C# .Net Date Culture Formatting

    Generic functions: Example Usage: For some commonly used cultures see reference links below containing full list: References CSharp-Online (code examples), http://en.csharp-online.net/Localization_Like_the_Pros%E2%80%94Date_formatting CSharp-Example (list of cultures), http://www.csharp-examples.net/culture-names/ Continue reading

  • c# .net list anonymous read only store dynamic types in session

    If you’re new to .Net 4.0 “dynamic” type, then you may or may not be surprised to find this is reserved for unique object types with read-only properties, as compared to its previous counterpart the “object” type. In general, this… Continue reading

  • The Memory of 2012 Aurora Shooting

    Jonathan Blunk, Alexander J. Boik, Jesse Childress, Gordon Cowden, Jessica Ghawi, John Larimer, Matt McQuinn, Micayla Medek, Veronica Moser-Sullivan, Alex Sullivan, Alexander C. Teves, Rebecca Wingo These short amount of words do not come close to describing the 12 lives… Continue reading

  • Open Source Free Geocodes US Zipcodes Cities

    Data is provided “as is” without warranty or any representation of accuracy, timeliness or completeness. Licensing information and data provided by http://www.geonames.org. Enjoy. 🙂 Plain text is too large to simply paste into WIP. Files are in compressed zip folders… Continue reading

  • Convert VDI to VMDK with VBoxManage

    Cloning virtual HDs First, make sure you have enough HD space to store both hard drive (images) so you can maintain original in case of failure/conversion corruption/power outage during conversion etc. If this is on an external HD or remote… Continue reading

  • Keep Batch File Open to enter more commands

    Typically the solution you will see to this question upon googling is to add “pause” to the end of your batch file. This will keep the batch open, but it will not allow you to enter additional commands and after… Continue reading

  • .NET Map Drive in C# (WPF)

    Complete class reference updated for WPF (not yet tested). For backwards compatibility, previous Win32 code maintained in code comments (and just replace ‘Window’ with ‘Form’). References StackOverflow (blog), http://stackoverflow.com/questions/3465182/how-to-map-a-drive-using-c PINVOKE (code references and snippets), http://pinvoke.net/default.aspx/Structures/NETRESOURCE.html MSDN (info on class types… Continue reading

  • WPF Quick Reference

    get window handle bring to front common resource dictionaries for skinning (this blog) References wpf get window handle (stackoverflow) http://stackoverflow.com/questions/1556182/finding-the-handle-to-a-wpf-window wpf bring to front (stackoverflow) http://stackoverflow.com/questions/257587/bring-a-window-to-the-front-in-wpf Continue reading

  • Is your brain faster than your PC?

    Computer vs the brain I wrote a post quite some time ago illustrating methods that humans can use to solve multiplication faster than you can lookup on a PC.The methods are very simple and involve practice over a weekly (or… Continue reading