Archive for the 'Blog' Category

Frustrated with FMOD

Saturday, November 25th, 2006

After much toying around with it today, I learned that FMOD’s WINCE API does not support MIDI or WMA.  I should have read the documentation.  WMA it was said to support on their website, but the documentation that came with the API’s were correct in saying they won’t work.  As the use of MP3 files for a program require a license (from my understanding including free projects), I have opted to use Ogg Vorbis for my sound format.

Freetip v1.0 released and thoughts on Pocket Hymnal

Friday, November 24th, 2006

Freetip is a clone of Iambic’s tipper.  It was an excellent start for a first C# .NET CF project.  I learned the basics of Windows form programming - never did that before.  In the past I only used C++ and programmed console apps.  I’m still struggling with some of the basics such as classes.  But I know I’ll make it through.  Initially I was trying all sorts of methods to create an “Exit” button.  Took me about 3 hours just to find out that all I needed was 1 line of code “Close();”.  That was disheartening.  Also I didn’t know that there was a control called “numericupdown”.  I was using “domainupdown” and using it with an array in an attempt to do the same thing as a numericupdown.

So overall, the things I learned from this project are:

  • How to close an application:  Close();
  • How to round up:  System.Math.Ceiling(str);
  • How to create a SmartDevice CAB installer.
  • How to make menus.
  • How to convert strings to another data type such as double or decimal.
  • How to limit the number of decimal places: str.ToString(”F2″);
  • How to create a dialog box: DialogResult result= MessageBox.Show(”Message”);
  • How to use textbox, numericupdown, and checkbox controls as well as modifying properties of each such as “.text” or “.increment”.

As for today, I started work on Pocket Hymnal.  With the LORD’s help today I learn a bit on how Microsoft SQL 2005 mobile worked as well as how to interface with FMOD for audio playback.  Man that was confusing - took me about 6 hours to finally get it to work.  When using the wrapper class, make sure you use:

byte[] filenameBytes = System.Text.Encoding.Default.GetBytes(filename + ‘\0′);

rather then:

byte[] filenameBytes = System.Text.Encoding.Default.GetBytes(filename+null);

Also note that objects in C# seem to be casesensitive so “filenameBytes” is different from ”
“filenamebytes”.
A tutorial on audio playback using C# with a FMOD wrapper class can be found here:
http://www.fmod.org/forum/viewtopic.php?t=4874&highlight=visual+studio+2005

So that’s one thing down….now to implement the rest of the program.

In summary, what I learned today:

  • A bit on Microsoft SQL 2005 Mobile.
  • How to get FMOD APIs to work with WM5 in Visual Studio 2005.
  • A bit on the .NET CF, that it is a subset of the full .NET framework (around 1.5 MB vs 30MB respectively) and that certain controls such as RichText is not available.
  • A possible workaround to the use of RichText is a standard HTML file as there is a “WebBrowser” control in .NET CF.

BBspot Questions

Wednesday, November 8th, 2006

You are Slackware Linux. You are the brightest among your peers, but are often mistaken as insane.  Your elegant solutions to problems often take a little longer, but require much less effort to complete.
Which OS are You?

You are .inf You are informative.  When you are gone you make life very difficult for others.
Which File Extension are You?

You are Lisp.  Very few people like you (Probably because you use too many parenthesis (You better stop it (Reallly)))
Which Programming Language are You?

You are metafilter.com You're involved in the community.  You like to share with your friends. You're into omphaloskepsis. You like pancakes and the color blue.
Which Website are You?

i-Net+ Certified

Wednesday, October 25th, 2006

Add one more certification on the completion list!  I’m now a CompTia i-Net+ Certified Professional.  Yay!

A Rotten Apple and a Bad HP Tech

Saturday, October 21st, 2006

The Apple Store @ Northpark overcharged me by $16 for a Macbook today. We bought the Macbook and I went home and off to school.  While I was at school, mom noticed the pricing error and went back to the store.  They argued with my mom. The person we talked to initially was very rude and got very defensive and then offensive and aggressive.  Mom returned home unable to get the problem resolved.  Later had to bring an internet printout of the price before they fixed it for a total of 3 trips to Northpark.  Our very first experience with Apple was not too good.  (The Macbook was not for me but a friend of my mom’s.  I really want a Macbook now after seeing what it can do!)

My mom’s Compaq computer’s DVD+/-RW drive never worked at burning stuff it only read discs.  Tonight I talked online with one of their techs who was not all there and gave me links to firware upgrades for different parts than what was installed in my system.  It took 45 mins with about 35 mins pretty much just waiting for him to respond.  He was pretty careless in my opinion.  Anyway…here was the chat and to make matters worse he doesn’t even give me a case #.  He just says that’s fine I have your serial number.

On a brighter note.  I did get my USB/Serial adaptor so my Wacom Artz II 6×8 pad now works again!  Yay!!!!

Another DART day…

Friday, October 20th, 2006

Today I rode the DART to school and back again.  It sure beats driving - I get time to just relax and read my Bible and I don’t have to worry about being stressed out.  The bus stop is just right outside of my school building and it’s only 0.03 walk to the bus stop at my house.  Talk about convenient!  And for $2.50 for a daypass, that’s $7.50 a week - big savings compared to driving 60 miles a day to and from Lancaster.

I’m still prepping for the CompTIA INet+ Certification test.  Found out that if I can take it by October 31, 2006, I can save a bundle and get my certifcation.  Guess it’s back to hitting the books…I’m 46% done with this online course for INet+ and it’s only been like 3 days.  Not bad - thank you Lord Jesus for a good memory.

An interesting day…

Tuesday, October 17th, 2006

So, I got ready to goto school, jumped in my car and sped off.  When I got past the schoolzone on Abrams and Whitehurst the car refuses the accelerate.  Started up the car again and within 3 seconds after I hit the accelerator to accelerate a bit, the car dies again.  Tried it one last time before thinking - “Oh no!  I have to get to school.”  I call up my mom and she takes me to school.  We leave the car there for the time being with yield lights flashing.  Upon arriving at school on my way to my first class, I find out that my instructor for my afternoon class is ill and that his class was canceled.  Yay!  Time to go home.  This is the first time that I rode DART all the way somewhere without the use of a car.  Learned that I had to take the 553 from Cedar Valley College to Ledbetter and then take the DART rail going from the red line to the blue line and finally switching onto the 582 to get me to Abrams.  I really enjoyed my ride but I have learned that I need to plan DART trips better.  It took me 2.5 hours to get from Lancaster to back home.  My car (the 1986 Toyota Camry) turned out to have a dead battery and it turned out mom’s car’s battery was nearly depleted as well so it couldn’t jump my car.  Well, everything turned out well and I’m now sitting at home after a yummy meal of hot dog and pizza from Sam’s (takes mom!) getting ready to begin homework.

Hallelujah!  Thank you Jesus for an interesting day.

Wacom Artz II 6×8 Tablet

Tuesday, October 17th, 2006

I finally found my Wacom Artz II tablet!  This thing has been in the closet collecting dust for about 4 years.  Now that I’m getting back into Flash, it’s time to use it again.  Unfortunately, the new Compaq computers do not come with a serial port so I had to go buy a serial to USB adaptor on eBay for $10.  Not a bad price for a good adapter.  I can’t wait to get it.  There’s plenty to animate and learn - I’ve been using SwishMax for the effects but I’d like to learn how to do it in Flash.  At times I think that perhaps doing it in SwishMax and then exporting and using it in Flash may be the ideal solution for complex effects.

Another great tool out there is Sothink’s SWF Decompiler.  You can rip any and every resource from a SWF file and get an FLA file from it.  It’s just awesome!  Great way to rip and learn how to get things done with ActionScript.

1000 Guitars of Praise - Update

Sunday, October 15th, 2006

I attended the 1000 Guitars of Praise event tonight and to me it was personally disappointing.  The main program where the 1000 guitar players came out and played didn’t start until 8:10pm.  Prior to that it was just worldy music being played (Johnny Cash, etc.).  They claim that God is the main event, but it’s more of a concert than anything else.  The gospel was preached, however it was not the full gospel.  Well all in all, it was still interesting to hear what 1000+ guitars sounded like.

A+ Certified

Friday, October 13th, 2006

Hallelujah Jesus!  As of 10:23am this morning, I’m now officially a CompTIA A+ Certified Computer Technician.  MCP, here I come!