title: Put the knife down and take a green herb, dude. |
descrip: One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com Using 89% of the same design the blog had in 2001. |
FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white. As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green. |
|
Friday, December 19, 2014 | |
You remember how neat it was when you learned you could serialize .NET DataTables to xml files? Well, I do. Now you could create simplest-case tests for your controller logic against "real" data about as complex as you wanted, but without having to worry about your database's shifting state -- or even having a database installed on a workstation. Now you could send a limited set of clean data to a contractor and *know* (essentially) that what you got back was going to be pretty much plug and play. It was wonderful. Well, TIL... You can do just as cool (probably cooler) a set of stuff with Powershell. From often Googled "Hey, Scripting Guy!" If I need to shut down Windows PowerShell or to reboot my computer, how can I continue to access the same process objects? I use the Export-Clixml cmdlet. Man, that's easy. $myObject | Export-CliXML MyObject.xml ... years later ;^) ... $myObject = Import-CliXML MyObject.xml You lose some functions, etc, if your object had them, but hello, quick state restore. Beautiful. Labels: noteToSelf, powershell posted by ruffin at 12/19/2014 02:24:00 PM |
|
| |
MarkUpDown is the best Markdown editor for professionals on Windows 10. It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support. Features you won't find anywhere else include...
You've wasted more than $15 of your time looking for a great Markdown editor. Stop looking. MarkUpDown is the app you're looking for. Learn more or head over to the 'Store now! |
![]() |
|
|