Tuesday, October 7, 2008

Microsoft Expression Blend

Until recently the way Microsoft allowed you to design windows programs with .NET was called Windows Forms and this feature set of familiar looking tools was built into Visual Studio (which is a relatively expensive program but makes editing code much easier). Now Microsoft has released Expression Blend, the new way to create Windows Applications. Guess what, Expression Blend is a completely separate program from Visual Studio. You know what else, you can't edit your code directly from Expression Blend either now. So if you want to use the newest Microsoft technologies you have to fork out the money for both programs.
Now that I've got that out of my system I'd like to introduce you to creating Windows Applications with Expression Blend through what Microsoft calls WPF or Windows Presentation Foundation. Essentially you don't need Blend to create forms through WPF but it's a lot easier if you do. CoDe magazine online has a great article that helped me get started using WPF called WPF meets iPhone. This tutorial takes you through the steps of creating a new project from scratch making an interface similar to the iPhone. The online article has everything you need except Expression Blend and C# 2008 Express or VB Express (depending on which language you prefer, the tutorial offers code samples for each) including the C# and VB source code and all the resources needed. Following the article isn't hard and taught me enough to start creating my own forms with Expression Blend.
If you like this article and use Microsoft Technologies for your programming I would highly suggest subscribing to the magazine. You can read a lot of the content online, but as usual subscribers usually get a little more content.
Try and put your own twist on the iPhone interface and

Thursday, September 25, 2008

Google Tools

Ok, I discovered this a while ago but haven't used it much or discovered how powerful it is until recently. Google has a list of products that are very useful. Some of those that I have been experimenting with are Gmail, Google Docs, Reader, and Calendar.
Gmail is a very popular web based e-mail system. It is pretty comparable to other web based e-mail systems out there (Yahoo, Hotmail, etc). I haven't used Gmail extensively but it works. I don't know why it's still in beta, but it will probably be in beta forever. Don't let that stop you from using it, as far as I can tell it's fully feature complete.
Google Docs is really the tool that I think is so cool. With Docs you can upload an array of files or create your own files right on the web. With Docs you can store Documents, Spreadsheets, and Presentations. You can upload files of type DOC, RTF, ODT, SXW, TXT, PPT, PPS, CSV, XLS, ODS, PDF, and more. After you upload the files you can view and edit them online. You can also create Documents, Spreadsheets, and Presentations online. After you create or edit your uploaded files you can download them in any of the different formats that apply. You no longer need Microsoft Word to create a word document and send to your professor. You can create a document online and download it as a .DOC file and send it to your teacher. You could also upload an Open Office document and download it as a Microsoft Office document or vice-versa with any of the types.
Reader is an RSS reader just like the one integrated into your web browser or e-mail program. An RSS reader is something that is really lacking from Google's Chrome browser but they do have a web service for it. Google reader is a straight forward RSS reader. When you pull it up it will show all of the posts agregated and sorted by date. All of the different feeds are listed down the left side and clicking on one will show the posts for that feed sorted by date.
Calendar works similarly to the calendar that is built into Microsoft Outlook. You can add events, set reminders, and repeat events in a multitude of ways. The whole experience is very intuitive. You can embed the calendar in your website or export it to iCal, XML, or HTML formats. You can also add multiple calendars and share calendars with friends.
There are many more tools on Google's product site. All of these tools are great and useful. One thing that I would like to see would be these services integrated into Google's Browser. How great would it be if I could actually read my RSS feeds when I'm offline which I currently can't do with Chrome. Also it would be awesome to open and edit documents while offline because Chrome cached them. I would also like to be able to check my calendar without logging in to Google to do so. I'm just saying that would be a super nice feature. The really great thing about all these services is that you can use them from any computer when you log into Google.

Tuesday, September 9, 2008

Google Chrome

Well, Google Chrome has been out for a few days now and I have to say I like it. If you've been keeping up with my posts you should know that I regularly use Opera as my web browser. So far I don't think that has changed. Chrome is laking some very important features that Opera includes, such as syncing bookmarks, no Mac support, and a built in RSS reader just to name a few. I do like how the bookmarks are set up similar to Safari. As far as the RSS feeds go I've been getting by using Google Reader online, but sometimes I'm not connected to the internet (Shock!) and I would like to be able to read previous posts on some blogs. With Opera I can go back and reread blog posts because it download the feed to the hard disk and I can read them when not connected. Google Reader requires a connection to the internet to load. At first I downloaded Chrome on my work computer and as soon as I tried to run it an error message came up saying that the program failed to initialize in memory and nothing would happen. So, I installed the browser on my laptop and it worked just fine. After a couple of days a solution arose on the internet. Chrome does not play well with Symantec programs. See Chrome runs each tab in a sandbox so that if one tab crashes then it will get rid of that tab and it's instance in ram, allowing the other tabs to run smoothly. Symantec doesn't like this feature and thinks that Chrome is trying to do something funny to your memory so it blocks it. How do you get Chrome to run with Symantec? Well you turn the sandbox feature off. Can you do this through the setup or options? Sadly Chrome doesn't have an option for turning off sandbox, so you have to edit the shortcut icon that links to Chrome. In the target box you have to add a space and --no-sandbox after the last quotation mark.



This will turn off the sandbox feature and allow Google Chrome to run alongside Symantec programs.
Overall I really like where Google is taking the browser experience, especially with the search feature built right into the address bar (Opera will search Google if you type in g and then the search terms). I acknowledge that Chrome is still in beta and being developed, but I can really see this going places. Is Chrome going to be my default browser, no. Will I use it and keep an eye on updates, yes.

You can download Google Chrome at Google.com/chrome

Thursday, September 4, 2008

Kids In Mind

Today I bring you Kids-In-Mind.com. If you have children, take children to movies or just like to know what the movie is rated for then this is your site. I like to know what kind of content is in a movie before I watch it, sometimes I can tell by the trailer, sometimes I can't. At Kids in Mind there is a listing of movies currently out in theaters. With a quick glance you can see the ratings for sex, violence and profanity. When you click on the movie title you can read a synopsis of the movie, and then detailed offenses in each catagory.
Under the sex category anything from kissing, touching, lovemaking or displays of skin are recorded. The good thing about the review is that it doesn't specify which characters offend or when so you don't know who is kissing who, you just know that somewhere in the movie someone kisses. If you haven't seen the movie this really shouldn't spoil it for you.
The violence/gore catagory is just as strict, any kind of physical violence or general gore (blood, guts, etc) counts. The same spoiler rules count here also so you don't know who got their head chopped off.
The profanity category simply counts the number of times certain words are used, and also catalog gestures and explain what the gestures were mentioning. This usually goes into even categorizing name calling and steryotypes.
There are also additional sections for substance use, discussion topics, and message. In the substance use section they discuss any alocohol or other drugs used or mentioned in the film. Discussion topics are a list of moral or values that are displayed or challenged in the film. Topics range from what did the character do right, how could the character have made the situation better to simple moral issues discussed in the film. The message section simply talks about the movies message and tones about certain subjects.
There are also links to the movie's official site, IMDB listing and critics.com.
The site's design is very clean and functional. There are adds on the site, but they don't get in the way and are minimal. Overal this site is very enjoyable and the best I've come across so far, if you're iffy about whether or not to see a movie I would check out this site for a content rating first.

Friday, August 15, 2008

Fantastic Contraption

I really like my blog to have pictures and/or video with the text, 'cause quite frankly pot (plain ole text) has to be pretty interesting if I'm going to read it. Too bad I can't have any pictures or videos with my post this week, but it would kind of spoil the whole subject. Now for the good stuff...

I spent most of my free time yesterday playing a game called Fantastic Contraption. The game is very simple, use five types of items (clockwise wheel, counter-clockwise wheel, neutral wheel, fluid rod, and solid rod) to make a fantastic contraption that will move an object from the start area to the goal area. Sounds simple right, trust me, it's not. What I love about this game is that the physics are pretty much spot on which is good because that's what the whole game is based on. It's really great because every control works just as you think it would (BTW save yourself some time and use the shift key when resizing and moving instead of clicking the resize button).

When you make a contraption that successfully completes a level you can save it and share it with your friends. I've saved some of mine which you can see links to at the bottom of this post. Once you get the hang of it I think it would be fun to have a challenge and see who could come up with the simplest solution to each level. Anybody up for it? Discuss it in the comments and see if we can come up with some rules for what the simplest design is. Maybe see who could get the prize in the goal quickest, who knows? Write in the comments and let me know what you think.

Here are my submissions for
Level 1, Level 2, Level 3, Level 4, Level 5, Level 6, Level 7, Level 8, Level 9, Level 10, Level 11, Level 12, Level 13, Level 14

Wednesday, August 6, 2008

Brain Den

So, you're at work and bored in front of the computer (duh! Why else would you be reading this?). Brainden.com is a place that I often wind up when I'm in this position. Please don't go there now, finish reading this post. Most of the time I just try to solve the puzzles in my head because people have already posted an answer. The thread that you see below was first solved by yours truly and the first puzzle that I solved first, btw. See what you can do with the puzzle before moving on to the website. I'll post the answer and the link to the post later (I want you to figure out the answer on your own). So here it is:

Most of today was spent in meetings with the PHB*, explaining why our project is behind schedule.

A quick virtual summary (what I imagine was said, rather than what was actually said): So anyway, it was a relief to get back to programming. As I dug into a bitmap edge detection algorithm, I ran into a spot where I needed to check the eight pixels surrounding the current one, in clockwise order, given any starting position. I whipped out a quick conditional statement that tested for each of eight possibilities, which works fine, but is ugly. Since it worked ok, I couldn't justify a lot of time to optimize it, so I gave myself five minutes to see if I could come up with a slicker way to do it. I didn't, so I moved on, but now it's 11PM and I just thought of another way to do it, and I figured it might be fun to see if anyone can find an even simpler solution.

So here's the problem ...

Consider the following diagram:



Find a single function f(x,y) that, given any one set of the eight coordinates, returns the coordinates of the adjacent square, moving clockwise. You may use any mathematical operands, including rounding, absolute value, trig functions, etc., but no conditionals.

*Pointy Haired Boss

Thursday, July 24, 2008

E3 Update



Well, we got back from Charleston Saturday. Had a blast, while we were there we went to see The Dark Night, which was awesome. The movie was so awesome that we are going to see it again, and I usually don't watch movies a second time in the theater.
Now down to the real stuff, E3 has come and gone and some really big announcements were made. Xbox 360 Dashboard will get a complete makeover in this fall's update you can read more about it on Gizmodo. The new dashboard looks so much better than the old one. Microsoft has also contracted a deal with Netflix so that you can use your Xbox 360 like a Roku box to stream movies to your TV. To use this serviceThe update will also include what looks like the Nintendo Miis where you create your own 3D avatar.
Speaking of the Wii, the major announcement for me from Nintendo was Wii Sports Resort (seen in the video above) which is almost like a sequal to the most loved Wii game Wii Sports wich came packaged with your Wii. At E3 three of the activities in Wii Sports Resort were shown: Frisbee, Jet Ski, and Sword Fighting. Wii Sports Resort will also include a new Accessory for the Wiimote called the Wii MotionPlus that will increase accelerometer controls for the new game. Hopefully this new accessory will be utilized in future games for better control with the Wiimote and more realistic gameplay.
Some other things I am excited about are Fable 2, Lego Batman, Star Wars: The Clone Wars, and a new edition of Tecmo Bowl on DS.


















Click the image for more screenshots