 Friday, April 25, 2008
The thing about gluten-free living is that it isn't something you can do alone. It's hard hard work, and you need someone to help you through the tough times. I'm very fortunate in that I have a very loving family that do their best to be supportive. My Beautiful Wife is amazing. She's basically had to relearn how to how to cook, because almost ever recipe calls for wheat. Things you don't think about like gravy or chicken. My Beautiful Wife has to read every label in the grocery store every time we shop because things that didn't have wheat in them last week, do this week. There is so much work that she has to put into each meal, and I greatly appreciate it.
My brother J actually ordered a burger wrapped in lettuce for me from In-N-Out and that's how we discovered protein style. My Mom when I lived at home had to learn what had wheat in it, and she also had to re-learn to cook family favorites. It really isn't something you can do alone. I'm thankful to my family for wanting me to feel better and working so hard to do so.
 Monday, April 21, 2008
I have a project at work coming up that will require some dynamic charts. As I don't feel the need to reinvent a wheel that others have perfected before me, I decided to take a look at Google Charts. The first thing I noticed was that this was extremely easy to use. It took me about 45 seconds to create the graphic used on this post. For a pie chart all you basically have to do is set the data and the labels and you're done.
Chart Type:cht=p3 Chart Size:chs=250x100 Data: chd=t:20,40,5,10,5
Labels: chl=muffin%7Ccoffee%7Cscone%7Cbagels%7Cdounut
So the URL to call the graph looks like this:
http://chart.apis.google.com/chart?cht=p3 &chd=t:20,40,5,10,5 &chs=250x100 &chl=muffin%7Ccoffee%7Cscone%7Cbagels%7Cdounut" As you see this is a very simple example of what Google Charts can do.The documentation is fantastic. You can create just about any chart you'd like. The short list is: line charts, sparkline charts, bar charts, pie charts (2D and 3D), scatter plots, maps (yes maps), venn diagrams, radar charts and the google-o-meter. Google Charts is a very nice full featured Chart API that I know I'll be using in the future. Happy Coding
 Friday, April 18, 2008
One of the things I've been working on for the past week was automating some SVN (Subversion) administrative tasks. As I originally come from a Unix background my first thought was to use PERL. In the past I've used PERL for lots of these kind of tasks on Windows Servers. ActivePerl made it very easy to install on Windows boxes. Heck I even had a PERL script that FTPed into a remote server and downloaded files with a specific extension and deleted the files on the remote server after the download was over. That script ran for 3 years with minimum maintenance.
However I thought this time I'd see about using Microsoft PowerShell. I have to tell you I think PowerShell rocks. The best way I can describe PowerShell is it's the Windows equivalent of BASH or Korn shell in Unix or Linux. It allows you write a shell script for repetitive tasks, just like any other shell. In fact I found the syntax for PowerShell to almost be a blend of C# and PERL. So I felt comfortable writing PowerShell scripts very quickly.
In SVN I wanted to add new files to the repository. If you're using TortoiseSVN, this task is easy to do with the GUI. However I want files to be added to the repository any time a automated file sync happens. So I wrote a quick script for this:
$results = @(svn st) $pattern = "^\?" $re = new-object System.Text.RegularExpressions.Regex($pattern) $resultCount = $results.length - 1 for($j=0; $j -le $resultCount; $j++) { $add = $results[$j] $match = $re.Match($add); if($match.Success) { $add = $add -replace("^\?.{6}","") svn add $add } }
Let's go over what this script is doing. First we load the results of the " svn st" command in an array. $results = @(svn st)
Now we use a regular expression to find the items that need added. These are denoted by the "?" at the beginning of the line. So we define the pattern and set the System.Text.RegularExpression object. (This is the .NET System.Text.dll) Then we set the pattern "$re = new-object System.Text.RegularExpressions.Regex($pattern)".
Next we create a $resultCount variable that holds the number of items in our array. This will be used in our "for loop". Now we look through the items in the array, and if the item matches the regular expression it will be added to the SVN repository. However there's one hicup. The file path to be added from our array starts with "? ". So we need to trip that off. Again we use a simple regular expression and the -replace parameter, and now we have a correct path.
It's added to the SVN Repository and we're done. Well almost. We have to save the script into a ".ps1" file. However it won't run just yet. It has to be signed. Signing a PowerShell script isn't hard, but it does require some work. Scott Hanselman has a great post on his blog about Signing PowerShell Scripts that is just excellent, I highly suggest you read his tutorial.
Happy Coding
 Wednesday, April 16, 2008
How much time do you spend on the computer during the week? I know I spend at least 60 hours a week. True I need a computer for my work, but that's still a lot of time spent in front of a machine. That's a lot of time not being active. I've been thinking about this quite a bit lately. Well Saturday May 3rd 2008 is Shut Down Day. The premise is simple, don't turn your computer on that day. See if you can go 24 hours without a computer. More important it's about realizing there is life " outside the monitor". I know I can do it, and I'm sure you can too!
 Monday, April 14, 2008
I'm going to start by warning you that this post is a rant. A rant that I'm sure most Technology Workers have from time to time. A minimum of once a month I meet someone new outside of work and my family. After some chitchat about the weather or whatever we have in common that brought us to whatever event we are at to keep the conversation going they always ask "That" question, you know which one. "So what do you do for a living?". I hate this question. There are two very good reasons why I hate this question. First, what I do for a living doesn't really tell you what type of person I am. If you'd truly like to learn who I am and what I'm about, ask me about my family or my hobbies. Ask me what I'm passionate about. These subjects are something I can speak volumes on with such enthusiasm we'd talk for hours. I'd be delighted to tell you what the Little Boy did yesterday. I'd love to tell about my Beautiful Wife, and how we meet, and how wonderful she is to me. Heck, I'll even be happy to talk with you about film verses digital photography and the merits of both. My second reason, most people have no idea what I do. I'm not trying to be mean or condescending. It just from personal experience I know people who don't work in IT (Information Technology) have no idea what I do. They'll ask me what I do for a living and I say "I'm a Sr. Web Developer." And their eyes glaze over while their brain tries to connect any synapse to any other connection to the words "Web" and "Job". The most common reply is; 'my nephew just built a website, I should send you the link, you'll love it! It's got blinking banners and a cute little bunny picture, it's great!". Honestly this has happened at least a dozens of times. So in a futile attempt I try to clarify by telling them that what I write is Online Banking software. Again, the glazed over look, and then they tell me, "You know I have trouble logging in to my Online Banking, why do you think that is?" By this point I just simply shrug my shoulders and say, I have no idea and change the subject.
 Friday, April 11, 2008
I'm sure by now everyone has seen an Apple iPhone. The iPhone's true genius lies in its user interface. The ability to scroll through lists with a swipe of your finger or to resize an image by putting two fingers on the screen and moving them apart is both brilliant and intuitive. This kind of innovation is what is needed for consumer electronics. I’ve had several PDAs including an iPaq with a full size keyboard attachment, yet I was never completely comfortable with it as a single source for all my needs. Most of the time I carried a laptop around with me too. There always seemed to be this lack of understanding between me and the device on how we should communicate. Being left handed the handwriting recognition and I never saw eye to eye. The stylus was another point of contention. Poking at the device with an object smaller than a crochet hook just didn’t seem like a good way to interact with it, let alone try to put in anything more than a couple of words.
The Wii, and more specifically the Wiimote has shown that consumer electronics that are easy to use will rule the market. Let’s face it for the last two holiday seasons in a row people have lined up to purchase a Wii. There are a plethora of articles about the elderly using and loving the Wii. This is because Nintendo understood that changing how we interacted with the games was more important than having the most realistic graphic engine. I’ve played both the Xbox 360 and the Playstation 3, and they are amazing. The graphics are crystal clear and photorealistic. However they just aren’t nearly as much fun as the Wii. The Wii is just plain fun and anyone of any age group can play it. Again the Wiimote is the reason for this.
The Wiimote is a simple controller built on great technology. It connects to the Wii via Bluetooth technology. The way the Wiimote tracks your movements is done by a infrared camera in the remote, and the Wii sensor bar has infrared LEDs in it which the camera can see. Using these common technologies allow the Wiimote to be used for other uses. That is something that Johnny Lee has done and has done well. He recently gave a TED Talk in Monterey California. If you watch this video until the end you'll notice he gets a well deserved standing ovation.
If you haven’t heard of Johnny Lee he is a research scientist at Carnregie Melon University. Instead of using hyper-expensive hardware that most people won’t have a shot at even seeing he uses the Wiimote to do some amazing things with user interfaces. Being a person that wants to share these technologies he’s put the software that he’s written up on his website. What I really appreciate about his work is that he’s made it freely available, but also decided to use tools that are freely available to almost anyone with a computer and an internet connection.
I feel these kind of innovations are vital and I applaud Johnny Lee and his work. The great thing about these technologies is that you can get your hands on it right now. If you have a Wii, you can start playing with the software with just five dollars worth of parts from Radioshack. You can even buy the IR LEDs and the Safety Glasses with LEDs for under 20 bucks.
 Monday, April 07, 2008
After my last post, my Beautiful Wife and I were talking and she suggested that I write a follow up post about all the food that have wheat and wheat gluten in them that you wouldn't suspect. We've found these foods after trial and error. Now that I've been living without wheat or gluten in my regular diet, I find that I can taste wheat immediately in almost anything that actually has it. This has been as valuable as being able to read the labels. There is still somefoods out there that don't correctly list all the ingredients. However most are doing a really good job of it. Hopefully this quickly list will help you as in learning to live gluten free.
Candy
Unfortunately I have a sweet tooth a mile wide. So finding which sweets you can't eat is as important as the ones you can. As with all food, you'll learn that you have to read the package, even if you think it's safe.
- Red Vines: Wheat is it's main ingredient. I loved Red Vines, so this one was hard for me to give up.
- Twix: Twix has a cookie center, wheat...sorry
- KitKat: KitKat is just like Twix
Snacks
- CornNuts: CornNuts, as will most snack foods of this type use wheat as an agent for making the artificial flavoring stick to the snack. The last time I looked original CornNuts were okay, but any of the flavored ones, watch out for.
- Doritos Nacho Cheese Chips: Like the CornNuts, Doritos use wheat as an agent for making the artificial flavoring adhere to the chip.
Condiments
- Soy Sauce: Wheat is the second ingredient in Soy Sauce, water is the first. So as much as we may love it, we have to avoid soy sauce or using very sparingly.
- Hollandaise Sauce: While the original recipe for hollandaise is butter, lemon juice and egg yolks most chain restaurants use a prepackaged hollandaise sauce that they just heat up. Of course this prepackaged sauce uses wheat.
© Copyright 2008 Russell A. Kelly
Theme design by Bryan Bell
newtelligence dasBlog 1.8.5223.1  | |  | Page rendered at 8/20/2008 10:22:16 AM (Pacific Daylight Time, UTC-07:00)
|
On this page....
Search
Contact
Navigation
Categories
Blogroll
Sign In
|