Archive for the ‘Learning’ Category

Matching Developer Certificate to Code Signing Profile

Monday, January 25th, 2010

From http://www.iphonedevsdk.com/forum/iphone-sdk-development/17999-profile-doesn-t-match-application-identifier.html

I was getting a “Code signing profile doesn’t match developer certificate” error.  After much troubleshooting.  I am able to set the Code Signing Profile in Project Info but the selection was greyed out when I was editing Active Target.

Finally fixed the bug by updating the plist!

Post by joni:

There were so many steps, I’m not sure I remember them all, but here are the parts I do remember, in case this helps anybody:

- I had two “System” keychains, so I deleted one of them
- I set the “login” keychain to be the default, so that new keys would be added there (it should show up bold when it’s the default)
- deleted the old public and private keys for my developer identity, and the wwdr and iphone developer certificates (in both the login and system keychains)
- quit keychain access and restarted it
- generated completely new keys, certificates, app id, provisioning profile
- made sure everything got added to the login keychain, not the system keychain
- in xcode deleted the old provisioning profiles from the Organizer and the device
- added the new profile to xcode and the device
- updated the info.plist (since I’d changed the com.yourcompany part of the app id in the new profile)

After verifying it worked with beta 4, I upgraded again to beta 5, did a clean rebuild, and everything still works fine.

Byte Order Mark (BOM) 

Thursday, January 21st, 2010

From: http://forum.joomla.org/viewtopic.php?f=309&t=275353

“” is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.

Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they’d appear as literal text on your page.

The Unicode Consortium’s FAQ on the Byte Order Mark is at http://www.unicode.org/faq/utf_bom.html#BOM .

Horrible first post of the year I know but hey Henry suggested I post my bug zappers online and this is something =P.

Web Development – Dev Tools, Flash Embed

Friday, August 7th, 2009

Essential Developer Tools

Flash Content Embed

http://www.alistapart.com/articles/flashembedcagematch/

“How can you best embed Flash content?”

It should be a simple question, but is likely to evoke a lot of different opinions and arguments, as each of the many available embedding techniques have their own pros and cons. In this article, I will look into the complexities and subtleties of embedding Flash content and examine the most popular embedding methods to see how good they really are.

The key ingredients of a great Flash embedding method:

  • Standards Compliance
  • Cross-Browser Support
  • Support for Alternative Content
  • Avoidance of Flash Content/Player Mismatches
  • Auto-Activation of Active Content
  • Ease Of Implementation

http://code.google.com/p/swfobject/

What is SWFObject?

  • Offers two optimized Flash Player embed methods; a markup based approach and a method that relies on JavaScript
  • Offers a JavaScript API that aims to provide a complete tool set for embedding SWF files and retrieving Flash Player related information
  • Utilizes only one small JavaScript file (10Kb / GZIPed: 3.9Kb)
  • Is the successor of SWFObject 1.5, UFO and the Adobe Flash Player Detection Kit
  • Intends to unify all existing Flash Player embed methods and provide a new standard for embedding Adobe Flash Player content

Why should you use SWFObject?

  • Is more optimized and flexible than any other Flash Player embed method around
  • Offers one solution for everybody: It shouldn’t matter if you are an HTML, Flash, or JavaScript developer, there should be something in it for everyone
  • Breaks the cycle of being locked into vendor specific markup and promotes the use of web standards and alternative content
  • Uses unobtrusive JavaScript and JavaScript best practices
  • Is easy to use

ABC Language Feedback – Mandarin Chinese Class

Friday, August 7th, 2009

I was pleased with the overall learning environment at ABC Language Exchange and am looking forward to more classes in the future if time permits.  I am glad to see that there is a wide variety of choices and different levels available.  I do have some feedback that may help.

- It is really easy to start off enrolling as an absolute beginner student.  The dates are available and the newsletters keep people up to date.  However, the process is much tougher for levels beyond absolute beginner.  As someone taking a second class after the absolute beginner class, it took a long time to get myself into a class since response times were slow for my evaluation and scheduling over email and over the phone.  There are no clear dates of enrollment and no place on the web to see when the available dates and times are.  If it was possible to post information on classes (languages, levels, dates/times and teachers), this would greatly increase productivity for the website and increase ABC Language’s overall enrollment.

- Books can make a huge impact on the class as well as seen with learning from Active Chinese (with web accompaniment) and Far East Chinese For Youth.  Both books have their pros and cons.  Active Chinese is a bit more scattered in teaching.  The learning is conversation style and there is less organization in the book.  However, the web accompaniment was a great help – flash version of the dialogue, audio, pdf resources of vocabulary, and the homework/tests.  Chinese For Youth is more colorful and entertaining.  On top of that, it is also more organized so it is easier to learn the basics all at once.  However, the student is pretty much on their own outside of the book and the teacher.  There is no guide unless the student purchases the $30 audio cds per book.  The CDs aren’t as helpful as the Active Chinese website but it is a small outside resource that could help.

- I found that classes can differ greatly according to teachers so if there was a section of the website with reviews and recommendations of the teachers, it would be very helpful.  The feedback could even be filtered by ABC Language so that nothing is overwhelmingly negative and every teacher has equal numbers of pros and cons shown so there is equal chance of enrollment.

- That being said, Mavi Graves is one of the best teachers for learning the Chinese Language.  Having learned it herself as a native English speaker, she knows best the tips and tricks on how to learn words and learn how to pronounce them as well.  She may not have as deep of a background with the history of Chinese but she is a great person for teaching beginner Chinese.  She has a lot of patience with the students and paces them well.  It was much easier to learn vocabulary with Mavi’s help.  The homework was useful as well even though not everybody in the class was consistent with this.

- Wendy is a good teacher for learning correct pronounciation which is critically important in learning how to speak Chinese.  She also has background information on the culture and even the history of the characters which makes her a great resource when learning about writing and remembering characters.  The drawback is that Wendy is not a native English speaker and this is apparent by her accent.  It is sometimes hard to understand her and it is sometimes hard for her to understand questions from students.  She may also go too fast sometimes in speaking which makes it hard for students to keep up.  Her teaching style is less organized so some chapters of the book may be repeated for multiple weeks and she many times begins her class with teaching random Chinese words and phrases.  Since these random words aren’t used often after they are presented, they are quickly forgotten.  It is harder to learn vocabulary with Wendy because not enough time is spent on learning the words.  As said before, her forte is pronounciation so a lot of time is spent on that thus students gain a lot more out of this.  Wendy may be a good teacher for Advanced levels of chinese where practice and pronounciation is needed the most.

- One thing that made the last class tougher to handle was the changing class levels as more students trickled in.  The class started off a bit beyond my level but I eventually caught up.  However, new students that showed up to class had increasingly higher levels, thus the average level of the class increased to a point where it went far beyond my skill level within a short amount of time.  If there was a way to categorize levels and students (perhaps by the number of years they have learned the language), it would be better for students to keep in pace with the class.  Other students at my level who started at the same time as me were equally overwhelmed with the increased level of new students to the point of deciding to discontinue taking Wendy’s class in the end.  The teacher needs to maintain the level of the class to the level she started with with the students who have been around the longest.

It is my hope that the next time I contact ABC Language for furthering my studies, I will have a much easier experience finding the appropriate class for me.  I fully support and recommend ABC Language Exchange and I hope that its services will continue for a long time.

Freemarker

Tuesday, July 28th, 2009

Iteration

<#list mainItem.item as item>
<#local x = x+1>
<#local itemTitle = item.title />
<#local itemLink = item.link />
<a href=”${itemLink}”>${itemTitle}</a>
<#if x < 4> &#183; </#if>
</#list>

Looping

item_has_next = foreach (where item can be replaced by key name)

item_index = count (where item can be replaced by key name)