Skip to main content

Posts

Showing posts from March, 2013

AutoMapper from a List to Class Properties

I just found AutoMapper , a tool I wish I'd had years ago. This can take any of you classes and translate them into another class. This would have been especially useful when I've had to get an object out of and EntityFramework, and add in additional properties before display, which happens quite often. The code for this is pretty simple, an well defined on their site. I came across AutoMapper from my wife last week, and found it to be a perfect fit for on of my current issues. We're getting data from a Web service that has an Object and a lit of properties with their values, like the following. I needed to easy map each property to my display object type. There is the option of using reflection ( Looping through Object's properties in C# is an excellent example), and looping over each of the properties in my destination object, and filling them from values in the source object. Honestly, I did head down this path a bit, but realized I needed a more flexible so...

Dry Ice

What does Dry Ice evoke in you? For me I remember clearly selling popsicles at my middle school Fall festival and being reminded constantly not to touch the dry ice, sine I would burn myself. How could ice burn? At some point I did touch my arm, and man it hurt. At the same time, this was the greatest stuff ever, ice that didn't melt into water, and that could burn. Is there anything it couldn't do? Heck, I just read an article about the Orbit , a portable washing machine that is in development and uses dry ice to clean clothes. It also smokes and makes crazy awesome bubbles in milk and soda. About last Spring I started following the Penguin Dry Ice blog. This s a great place to get information about how you can actually use dry ice. For example, it's a great alternative to regular ice for any coolers, so long as you separate the ice from the food. I had food on top of the ice, and it froze. Turned into freeze dried fruit. I'd never considered it before since I a...

Potty Accidents

While we still struggle with accidents, we've tried a lot of different ideas, therapists, doctors, tests, anything. While we still haven't nipped this in the bud, we do seem to be making progress. A lot of this is thanks to reading It's No Accident: Breakthrough Solutions to Your Child's Wetting, Constipation, UTIs, and Other Potty Problems by Steven Hodges and Suzanne Schlosberg. It's no secret, they believe most (almost all) kids who have accidents at night or during the day are due to constipation. More specifically, our kids aren't getting enough fiber in their diets (all kids really) and so a lot end up with poop stuffed all in the their colon and the intestines, never really clearing out. So even though kids poop daily, it still doesn't ever clear out. We haven't gotten to doing an enema or Miralax yet, we really need an X-Ray anyway and to see the doctor again. But adding fiber has definitely made a different for both kids. If you are jut beg...

Best Free (or really cheap) Activities in DC

Growing up in DC, I had a LOT of time to wander the city, by foot, car and Metro. Here are some of the most memorable things I recommend everyone does. I still don't get tired of doing them. Smithsonian It wasn't until College when I spent a semester in London that I realized all museums were not free. This is because everything at the Smithsonian is free. It is, without a doubt, the most complete education you can get for free. History, Culture, Art, Nature, Space, Technology... everything is covered. And it isn't just pictured on the walls, they have activities for kids, family and adults all the time. While there are obvious options, like the Zoo or the Natural History Museum, I and my kids definitely recommend the following places to visit. The kids are still talking about some. Natural History Museum I know I mentioned it as obvious, but I can't overstate how incredible this place is. You should definitely check out the insect exhibit, with LIVE insect...

Kids Activities

I find myself often in a situation where it's some morning, I have the kids for the afternoon, and I'm not sure what to do with them. We could go to a movie, or play Legos, but living near Washington, DC, I want the kids to love the museums as much as I do, or to see what else is going on. This Sunday, while my wife was travelling, I took the kids to the Chocolate Festival in Old Town Fairfax. I didn't even know there wad an Old Town Fairfax, much less a chocolate festival. It was okay overall, but the best was seeing any type of chocolate you could imagine, and letting the kids pick something for themselves and their teacher. For finding cheap or free stuff going on nearby with the kids, I have to say About.com has consistently been the best. I tried si.edu (the Smithsonian Website) which is also good, but a little hard to navigate, partly because they have so much going on. At About I did a search of what to do with my kids this weekend, and a bunch of items came ...

Comic Book Storage

After you get into comic books, you quickly come to realize you need some way to store them. There are a lot of details on exactly how to store comic books to last years. Heck, there are even companies that you can mail your comic boo to, and will put it I a clamshell to last years. Honestly, I get comic books to read them, share them with others, and get my kids into them. Some might be worth money, but we're talking about maybe $20 for a few comics, and pennies for others. I would never make back the money I spent. At the same time, I do want then to look brand new for as long as possible. So, focusing on someone who doesn't want to spend much, and keep them safe but accessible, here's what the comic store has taught me. Bags (Sleeves) You need to get comic book bags. These are plastic (polypropylene) bags. You should get the Golden Age size. Comics today are more narrow than they used to be, so the Golden Age size doesn't give you a snug fit. But it does give ...

Backing Up Movies

I have quite a few DVDs at this point, and a lot of devices (my Surface Pro and iPods) which can't play them (no DVD player built in). So I find I'm nervous about having the DVDs just laying around and would prefer to back them up. A few movies are coming out now with a digital download option, which I have found confusing to use (and you only have a year to download the movie), but it's better than nothing. So I find I really need some way to back up my movies on the computer so that if they were somehow lost, I could get them. On top of it, I would like the ability to bring my movies with me on the iPods or trips. To be clear, I wouldn't want to share the movies with people (beyond my kids), but I do find I need a way to back up DVDs. After doing a bit of research and working with other options, the best and easiest option I have found is a mix of SlySoft AnyDVD and SlySoft Clone DVD Mobile . I know there are a lot of other options out there, but I really find Sl...

Securing Your PC

One of the biggest questions I get from people is what they should do to secure their computer. The Conversations go something like this: Phone: ring... ring... (btw, it's the middle of the day while I'm working without Internet access) Me: Hey, how are you doing? Family member: Fine, but I had a quick question... I keep getting pop-ups that say my computer s infected, and my antivirus is out of date, so I should open the window and buy the clean-up service. Does this make sense? Me: Do you have any security software installed now? Family Member: The computer had something installed when it came, so I've just kept using that... This then leads to some emergency troubleshooting, and the computer somehow ends up at my house while I try to get it fixed that evening, so the person isn't without a computer for a day. Typically most of my family members also don't want to pay the annual fee for some service, so they try to find free alternatives, which seem to...

Thinking Games

One of the things I’ve been blessed enough to get to do is read to my daughters class. In Second grade this was the highlight of my month. I got to pick any book I wanted, usually something a little off-normal, and watch the kids actual;y be interested in the story. In almost all cases I left the books behind so the kids could borrow them throughout the year. I remember clearly how I read Crazy Hair by Neil Gaiman (picked up that morning in a rush from the Comic Book Store… They saved the day). After that I mentioned that there was another book, The Wolves in the Walls , but it was kind of scary, so I didn’t bring it. They unanimously decided they wanted The Wolves in the Walls, and asked me about it the next month. That book went over really well with them. I usually got 15 minutes, and a book would take maybe 5 – 10 minutes, so I always had a few minutes left over to fill. At those times it’s always worth having a set of Rory’s Story Cubes handy. They have a set of things (vowe...