<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>ansi &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/ansi/</link>
	<description>Feed of posts on WordPress.com tagged "ansi"</description>
	<pubDate>Sun, 06 Jul 2008 15:48:29 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[When PHP goes BOM! on Internet Explorer]]></title>
<link>http://fahodzi.wordpress.com/?p=21</link>
<pubDate>Sun, 29 Jun 2008 11:32:13 +0000</pubDate>
<dc:creator>James Ainooson</dc:creator>
<guid>http://fahodzi.wordpress.com/?p=21</guid>
<description><![CDATA[I was recently working on a web content management system with a friend and we made a very surprisin]]></description>
<content:encoded><![CDATA[<p>I was recently working on a web content management system with a friend and we made a very surprising discovery. We were actually using PHP to include content from another page on our local server unto the page that was curently being viewed. This thing worked perfectly when I was using the Eclipse editor but when I moved to my friends office and we started using Expression studio (which obviously doesn't seem to support PHP), the include statement started introducing unwanted characters. Although most of the browsers on which this was tested (Opera, Safari and FireFox) skipped these characters, IE of all browsers displayed them and messed up our template. Well we started to panic because we didn't know what we had done wrong and IE is one browser you don't want to mess with because everybody uses it.</p>
<p><!--more--></p>
<p>So we started digging on the Internet to find out what was actually wrong with the system. The first hint of our real problem was sensed when we saw a large number of newsgroup posts which described problems similar to what we were facing. Then we realized we were actually playing around with encoding problems. We figured out that saving the files we wanted to include with ANSI encoding saved the day.</p>
<p>The previous encoding format we were using was the UTF-8 format. This format is preceeded with a Byte Order Mark (BOM). This Byte Order Mark is obviously supposed to tell the reader of the format about the byte order of the file it is reading. When the PHP include function was called to include this file it also included the BOM characters which IE decided to display and mess up the template.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[تشفير الروابط والنصوص بواسطة الترميز UTF-8]]></title>
<link>http://ebncana.wordpress.com/?p=37</link>
<pubDate>Mon, 23 Jun 2008 17:01:15 +0000</pubDate>
<dc:creator>EbNCaNa</dc:creator>
<guid>http://ebncana.wordpress.com/?p=37</guid>
<description><![CDATA[في كثير من الاحيان يفكر البعض لماذا لا نستعمل عنوان الم]]></description>
<content:encoded><![CDATA[<p>في كثير من الاحيان يفكر البعض لماذا لا نستعمل عنوان الموضوع ليكون المعتمد عليه في عملية جلب بيانات هذا الموضوع عن طريق GET في صفحة ديناميكية معينة , وليس كما جرت العادة بالاعتماد على id هذا الموضوع وخاصة عندما يكون عنوان الموضوع باللغة العربية ... ان الناظر لواقع المواقع العملاقة اليوم والمتصدرة لائحة الترتيب الاقوى في محركات البحث يلاحظ بأنها تستعمل هذه التقنية الرائعة امثال موسوعة ويكيبيديا وشركة ووردبرس وجميع المدونات المستخدمة نظامها حول العالم ... وطبعا لا ننسى عملاق البحث جوجل .</p>
<p><!--more--></p>
<p><span style="color:#ff0000;">- ما هي الرموز المحبذ تحويلها الى الترميز utf-8 لكي تستعمل في الرابط ؟</span></p>
<p>انه ولكي تتم عملية تحويل الرابط بنجاح ... ولكي يتجلى المقصد من وراء تحويل الرابط الى الترميز utf-8 فان الرموز الاصلية للرابط يجب ان تكون اية رموز مع عدا رموز مجموعة المحارف ASCII , فمثلا يمكن ان نحول رموز او حروف اللغة العربية او الروسية او العبرية والسبب لان رموز او حروف اي من هذه اللغات لا تدخل في تركيب مجموعة المحارف ASCII وقس على ذلك الكثير الكثير من لغات العالم .<br />
احيانا نحتاج ايضا الى تحويل بعض رموز مجموعة المحارف ASCII الى الترميز utf-8 وسنذكر ذلك لاحقا مع مثال مفصل .</p>
<p> </p>
<p><span style="color:#ff0000;">- مم سيتحول الرابط بعد التحويل الى utf-8 ؟</span></p>
<p>حسب بروتوكول RFC 3986 فان الرموز التي يجب ان يتكون منها الرابط المشفر بالترميز utf-8 يجب ان تكون مشتقه بشكل مباشر او غير مباشر من مجموعة المحارف ASCII , وما دون ذلك من رموز فلن يقبل بالمرة في عملية تكوين الرابط المشفر .</p>
<p> </p>
<p><span style="color:#ff0000;">- ما هي مجموعة المحارف ASCII ؟</span></p>
<p>American Standard Code for Information Interchange وهي مختصرة في الحروف ASCII ، تلفظ عادة آسكي ، هي مجموعة رموز ونظام ترميز مبني على الألف باء اللاتينية بالشكل الذي تستخدم به في الإنجليزية الحديثة ولغات غرب أوروبية اخرى.<br />
من أكثر الإستخدامات شيوعا للنصوص المكتوبة باللآسكي تشتمل على إستخدامها في أنظمة الحاسوب، كما تستخدم في أجهزة الإتصالات وأنظمة التحكم التي تتعامل مع نصوص .</p>
<p> مجموعة الرموز المباشرة المشتقه من ASCII :</p>
<div style="float:right;width:98%;direction:ltr;background-color:#f2f2f2;text-align:left;border:#999999 1px solid;padding:2px;">
<h5><span style="color:#ff9900;">Code :</span></h5>
<p>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z<br />
a b c d e f g h i j k l m n o p q r s t u v w x y z<br />
0 1 2 3 4 5 6 7 8 9 - _ . ~</p></div>
<p> </p>
<p> </p>
<p> </p>
<p> مجموعة الرموز الغير مباشرة المشتقه من ASCII :</p>
<div style="float:right;width:98%;direction:ltr;background-color:#f2f2f2;text-align:left;border:#999999 1px solid;padding:2px;">
<h5><span style="color:#ff9900;">Code :</span></h5>
<p>! * ' ( ) ; : @ &#38; = + $ , / ? % # [ ]</p></div>
<p> </p>
<p> </p>
<p> </p>
<p><span style="color:#ff0000;">- ما الفائدة من تحويل الروابط الى الترميز utf-8 ?</span></p>
<p><span style="color:#0000ff;">1-</span> وهو الاهم ويتمثل في اعطاء المستخدم او صاحب الموقع الثقة العمياء من قبل محركات البحث في حال كان الرابط باللغة العربية وقمت بتحويله الى الترميز utf-8 .</p>
<p><span style="color:#0000ff;">2-</span> الدعم الكامل لجميع التطبيقات او البرمجيات التي لا تدعم الا الترميز utf-8 وعندها سوف يصبح الرابط او النص الذي قمت بتحويله الى نص عالمي مقروء ومفهوم ومعرف في هذه التطبيقات , الأمر يشبه ترجمة لغة معينة غير مشهورة الى لغة عالمية معتدمة من قبل الكثير من الدول الكبرى .</p>
<p><span style="color:#0000ff;">3-</span> في بعض الاحيان نحتاج لتحويل بعض رموز مجموعة المحارف ASCII نفسها الى الترميز utf-8 لكي يتوافق مع متطلبات الرابط ... مثال :</p>
<p>نفرض الرابط التالي :</p>
<div style="float:right;width:98%;direction:ltr;background-color:#f2f2f2;text-align:left;border:#999999 1px solid;padding:2px;">
<h5><span style="color:#ff9900;">Code :</span></h5>
<p>http://en.wikipedia.org/wiki/Percent-encoding</p></div>
<p> </p>
<p> </p>
<p> رابط جميل اليس كذلك ؟؟ ولكن ماذا لو اراد مدير الموقع اضافة العلامة سلاش / داخل الرابط العنوان نفسه ؟؟ ماذا لو قمنا بادخال / ولكن غير مشفر ؟؟ سيصبح الرابط كالتالي :</p>
<div style="float:right;width:98%;direction:ltr;background-color:#f2f2f2;text-align:left;border:#999999 1px solid;padding:2px;">
<h5><span style="color:#ff9900;">Code :</span></h5>
<p>http://en.wikipedia.org/wiki/URL-/Percent-encoding</p></div>
<p> </p>
<p> </p>
<p> هل تعتقد باننا لو دخلنا لهذه الرابط سيقوم الموقع باعطانا النتيجة بشكل صحيح ؟؟ انا لا اعتقد هذا الامر لان / تعني حسب بروتوكول HTTP الانتقال الى مجلد آخر داخل الموقع ولذلك فان الموقع سيعطينا بالضرورة خطأ 404 .. اذن ما الحل ؟هنا يأتي دور تحويل الرمز / الى الترميز utf-8 وهذا ما اعنيه بمتطلبات الرابط ... سيكون الرابط بعد تحويل الرمز / كالتالي :</p>
<div style="float:right;width:98%;direction:ltr;background-color:#f2f2f2;text-align:left;border:#999999 1px solid;padding:2px;">
<h5><span style="color:#ff9900;">Code :</span></h5>
<p>http://en.wikipedia.org/wiki/URL-%2FPercent-encoding</p></div>
<p> </p>
<p> </p>
<p>وهنا لاحظ القيمة 2F% وهي الصيغة المشفرة من الرمز / حسب ترميز utf-8 الرائع !!</p>
<p>اعتقد انكم مللتم من الكلام النظري ... وتريدون مشاهدة وتجربة المثال بأنفسكم ... حسنا لكم ذلك من خلال اداة تشفير الروابط وتحويلها الى الترميز utf-8 - <a href="http://www.almashroo.com/articles/wp-content/uploads/2008/06/utf8-urls.html" target="_blank">اضغط هنا لدخول المثال</a> .</p>
<p> </p>
<p>اتمنى انكم قد اتستفدتم ولو قليلا من هذا الدرس وتذكروا : " <span style="color:#ff0000;">لا لاحتكار العلم </span>" .</p>
<p> </p>
<p>اخوكم المحب : EbNCaNa</p>
<p> </p>
<p>السلام عليكم اخواني .</p>
<p> </p>
<p> </p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Byte Order Mark - BOM]]></title>
<link>http://ebncana.wordpress.com/?p=32</link>
<pubDate>Mon, 23 Jun 2008 08:59:04 +0000</pubDate>
<dc:creator>EbNCaNa</dc:creator>
<guid>http://ebncana.wordpress.com/?p=32</guid>
<description><![CDATA[تعريف :
Byte order mark هي مجموعة رموز في بداية الملف النصي ووظ]]></description>
<content:encoded><![CDATA[<p><span style="color:#ff0000;">تعريف :</span></p>
<p>Byte order mark هي مجموعة رموز في بداية الملف النصي ووظيفتها اعلام المستخدم بان هذا الملف تابع لمجموعة محارف يونيكود Unicode فاما ان يكون بترميز UTF-8 او UTF-16 او UTF-32 .<br />
هذه المجموعة من الرموز لا تكون ظاهرة بالملف واذا كنا نريد ان نعرف ترميز ملف معين فنستطيع ان تفتح الملف باي محرر HEX وننظر الى بداية ترتيب بيانات قيم HEX في المحرر والرسم التوضيحي التالي يبين ترميز الملف حسب مجموعة الرموز الاولى :</p>
<p> </p>
<p><a href="http://ebncana.wordpress.com/files/2008/06/untitledu1.jpg"><img class="alignnone size-full wp-image-35" src="http://ebncana.wordpress.com/files/2008/06/untitledu1.jpg" alt="" width="364" height="154" /></a></p>
<p>وطبعا إذا لم يكن يحوي تيار البيانات أي من هذه القيم فإن هذا الملف لا يُصنف على أنه من مجموعة الملفات المرمزة بواسطة Unicode .</p>
<p> </p>
<p><!--more--></p>
<p><span style="color:#ff0000;">العلاقة بين BOM و الترميز UTF-8 :</span></p>
<p>هناك علاقة وطيدة بين الـ Byte order mark والترميز العالمي المشهور UTF-8 فعند استخدامنا لأي محرر تقريبا واردنا حفظ الملف بترميز UTF-8 فان المحرر تلقائيا باضافة هذه الرموز الى بداية الملف والهدف كما اسلفنا ان يتم اعطاء هوية لهذا الملف على انه من مجموعة محارف Unicode والا فانك عندما تفتح الملف من جديد بدون هذه الرموز فان المحرر لن يتعرف على الترميز المناسب لهذا الملف وبالتالي فانه سيعتبر ترميز الملف ANSI او الترميز التلقائي للملفات عند فتحها بواسطة هذا المحرر .</p>
<p> </p>
<p><span style="color:#ff0000;">أهمية حذف الـ BOM من الملفات التي بترميز UTF-8 :</span></p>
<p>انه ومن المهم جدا للمبرمجين ان يقوموا بحذف هذه الرموز من بداية الملف والسبب ان بعض لغات البرمجة مثل لغة php لا تقبل من اي اشارة ان تتقدم على بعض دوالها المهمة مثل دالة الجلسات Session او الدالة Header والابقاء على رموز الـ BOM يعني تعطل الملف واعطاء خطأ برمجي لا يعرف المبرمج سببه في كثير من الاحيان لجهله برموز الـ Byte Order Mark فيأخذ بالبحث في المواقع والمنتديات عن سبب الخطأ ويحاول ان يعرض الكود الذي في داخل الملف على من هم اكثر خبرة منه علهم يعرفون السبب وفي الحقيقة ان الكود خالي من الشوائب والعيوب البرمجية تماما لكن سبب الخطأ البرمجي هو الرموز الاضافية في بداية الملف .</p>
<p>يمكن أن يقول البعض أنه ما من حاجة لاستخدام الترميز UTF-8 في ملفاتنا لأننا نستخدم الترميز ANSI ولا توجد مشكلة، والجواب طبعاً أن هذا الترميز هو الترميز العالمي والأكثر شهرة والأكثر فاعلية لأنه يعمل مع جميع لغات العالم ويعمل في جميع أنظمة التشغيل ولأنه متوافق أيضا مع المعايير القياسية للمواقع W3 .</p>
<p> </p>
<p><span style="color:#ff0000;">مشاكل وعقبات عند استعمال الترميز UTF-8 وعلاقتها بالرموز الاضافية BOM وحلولها :</span></p>
<p><span style="color:#ff0000;">1-</span> انا مبرمج اريد الانتقال من البرمجة بترميز ANSI الى الترميز UTF-8 ولكن المتصفح يظهر خطأ برمجي دائما مع العلم بان الكود سليم وخالي من الشوائب البرمجية .</p>
<p><a href="http://www.almashroo.com/articles/wp-content/uploads/2007/12/untitledu2.JPG"></a></p>
<p><a href="http://ebncana.wordpress.com/files/2008/06/untitledu2.jpg"><img class="alignnone size-full wp-image-34" src="http://ebncana.wordpress.com/files/2008/06/untitledu2.jpg" alt="" width="500" height="30" /></a></p>
<p><span style="color:#ff0000;">الجواب<strong> :</strong></span> من الواضح انك تستخدم دالة php طلائعية اي انها لا تقبل لاي رمز ان يسقبها في الملف والا تعطل عملها نهائيا وهنا فانك تستعمل الدالتين Session و Header ... الحل ان تقوم بتحميل اي محرر يحتوي على خاصية تحرير رموز HEX مثل PSPad وتقوم بحذف القيم الاولى في الملف وهي EF BB EF او ان تقوم بتحميل محلل يحوي خاصية حفظ الملف بدون BOM اي انك عند حفظك للملف فانه سيجعلك تختار ترميز الملف وانت اكيد ستختار الترميز UTF-8 واسفل هذا الخيار هناك مربع اختيار بالنقر عليه سوف يتم حفظ الملف مع الرموز الاضافية BOM وعند سحب علامة الصح من داخله فان الملف سوف يحفظ بدون هذه الرموز وانا ارشح محرر EMeditor او البرنامج الرائع Dreamweaver لهذه المهمة ... وبعدها قم بحفظ الملف وان شاء الله لن تعود هذه الأخطاء البرمجية للظهور مجددا .</p>
<p><span style="color:#ff0000;">2-</span> بحمد الله تم التخلص من مشكلة الرموز الاضافية ببداية الملف BOM واشتغل الملف بنجاح لكني عندما اريد ان اعدل على الملف اقوم بفتحه بواسطة المفكرة Notepad لكن لا يظهر لي بان الملف بترميز UTF-8 وانما يظهر على انها صاحب الترميز ANSI او لا يظهر الترميز بالمرة ؟!! اعتقد باني سأعدل عن فكرة البرمجة بواسطة الترميز UTF-8 !!</p>
<p><span style="color:#ff0000;">الجواب :</span> أخي، كل شي بالصبر وحب المعرفة يأتيك على رجليه ... برنامج المفكرة Notepad ومع الأسف فانه يعتبر كل ملف لا يحوي الرموز الاضافية BOM يعتبره بترميز ANSI !!! وليس المفكرة فقط وانما برنامج المفكرة ++ (Notepad ++ ) ايضا به نفس المشكلة طيب ما الحل ؟؟ من الافضل اخوي ان تقوم باستعمال محررات محترمة وصديقة للترميز UTF-8 لكي تتخطى هذه المشكلة وانا ارشح هنا برنامج Dreamweaver مرة اخرى لهذه المهمة لان الامور لا تلتبس عليه عند فتح ملف UTF-8 بواسطته وحتى لو كان الملف بدون BOM فأنه سوف يعتبره ملف يونيكود UTF-8 وارشح ايضا برنامج EMeditor لهذه المهمة ايضا .</p>
<p><span style="color:#ff0000;">وفي النهاية اقول لأخواني بان اي شيء تراه مفيد وغير متواجد عربيا وغير مكرر بعالم تطوير المواقع فعليك ثم عليك ان تقوم بنشره ولا تحتكر العلم !!</span></p>
<p> </p>
<p>في إمان الله إخواني في مقالات قادمة .</p>
<p> </p>
<p>المراجع :</p>
<ul>
<li><a href="http://blogs.msdn.com/michkap/archive/2005/01/20/357028.aspx">http://blogs.msdn.com/michkap/archive/2005/01/20/357028.aspx</a></li>
<li><a href="http://en.wikipedia.org/wiki/Byte_Order_Mark">http://en.wikipedia.org/wiki/Byte_Order_Mark</a></li>
<li><a href="http://unicode.org/faq/utf_bom.html#BOM">http://unicode.org/faq/utf_bom.html#BOM</a></li>
</ul>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Green Building Code coming soon!]]></title>
<link>http://askthefm.wordpress.com/?p=44</link>
<pubDate>Sat, 24 May 2008 03:12:47 +0000</pubDate>
<dc:creator>askthefm</dc:creator>
<guid>http://askthefm.wordpress.com/?p=44</guid>
<description><![CDATA[According to Green Technology Magazine there will soon be a green building rating system approved by]]></description>
<content:encoded><![CDATA[<p>According to <a href="http://www.green-technology.org/green_technology_magazine/briefs.htm" target="_blank">Green Technology Magazine</a> there will soon be a green building rating system approved by ANSI (American National Standards Institute).</p>
<p><a href="http://www.ansi.org/" target="_blank"><img class="alignnone size-medium wp-image-45" src="http://askthefm.wordpress.com/files/2008/05/ansi-logo.gif?w=261" alt="" width="261" height="77" /></a></p>
<p>Excerpt: <em><span style="font-family:Verdana,sans-serif;"><span style="font-size:x-small;">The only green building rating system that will be        accredited by the       <a href="http://www.ansi.org/" target="_blank"> American National Standards Institute</a> (ANSI), the National Green        Building Standard has been submitted to ANSI for approval and will become        the benchmark for green homes, according to the       <a href="http://www.nbnnews.com/NBN/issues/2008-04-21/Green+Building/index.html"> National Association of Home Builders</a> (NAHB). The standard defines        what green practices should be incorporated into home construction on a        national scale and how homeowners should maintain and operate their green        homes. The rating system ensures uniformity in everything from the size of        electrical outlets to testing medical devices. To get to this point, NAHB        volunteers and the       <a href="http://www.iccsafe.org/" target="_blank"> International Code Council</a> attended four public hearings and        considered  3,000 public comments submitted for consideration.</span></span></em></p>
<p>This sounds pretty good and I am interested to see how this really plays out.  If ANSI can get behind a rating system, then the other rating systems such as LEED and Greenpoint Rated will probably update their rules to be compatible.  It would make trying to get your building evaluated a lot simpler and less expensive.</p>
<p>As always I appreciate you visiting and would really like to here your comments.  Please send any questions or suggestions to <a href="mailto:askthefm@gmail.com" target="_self">askthefm@gmail.com</a></p>
<div>Social Bookmarks:<br />
<a href="http://del.icio.us/post?url=http://askthefm.wordpress.com/2008/05/23/green-building-code-coming-soon/"><img src="http://archaeoastronomy.wordpress.com/files/2007/01/delicious.png" border="0" alt="" /></a><a href="http://digg.com/submit?phase=2&#38;url=http://askthefm.wordpress.com/2008/05/23/green-building-code-coming-soon/"><img src="http://archaeoastronomy.wordpress.com/files/2007/01/digg.png" border="0" alt="" /></a><a href="http://www.newsvine.com/_tools/seed&#38;save?u=http://askthefm.wordpress.com/2008/05/23/green-building-code-coming-soon/"><img src="http://archaeoastronomy.wordpress.com/files/2007/01/newsvine.png" border="0" alt="" /></a><a href="http://reddit.com/submit?url=http://askthefm.wordpress.com/2008/05/23/green-building-code-coming-soon/"><img src="http://archaeoastronomy.wordpress.com/files/2007/01/reddit.png" border="0" alt="" /></a><a href="http://www.stumbleupon.com/submit?url=http://askthefm.wordpress.com/2008/05/23/green-building-code-coming-soon/"><img src="http://archaeoastronomy.wordpress.com/files/2007/02/stumbleit.gif" border="0" alt="" /></a><a href="http://www.technorati.com/cosmos/search.html?url=http://askthefm.wordpress.com/2008/05/23/green-building-code-coming-soon/"><img src="http://archaeoastronomy.wordpress.com/files/2007/01/technorati.png" border="0" alt="" /></a><a href="http://archaeoastronomy.wordpress.com/social-linking/"><img src="http://archaeoastronomy.wordpress.com/files/2007/01/que.png" border="0" alt="" /></a></div>
<p><a href="http://technorati.com/faves?sub=addfavbtn&#38;add=http://askthefm.wordpress.com"><img src="http://static.technorati.com/pix/fave/btn-fave2.png" alt="Add to Technorati Favorites" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[ANSI vs. ISO keyboards]]></title>
<link>http://bitguru.wordpress.com/?p=83</link>
<pubDate>Fri, 23 May 2008 08:56:31 +0000</pubDate>
<dc:creator>bitguru</dc:creator>
<guid>http://bitguru.wordpress.com/?p=83</guid>
<description><![CDATA[North America mostly uses ANSI keyboards. Europe mostly uses ISO keyboards. The layouts are similar,]]></description>
<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-84" src="http://bitguru.wordpress.com/files/2008/05/iso_vs_ansi_keyboards.jpeg" alt="ISO (top) and ANSI (bottom) keyboards" width="192" height="585" />North America mostly uses ANSI keyboards. Europe mostly uses ISO keyboards. The layouts are similar, but ISO has a few extra keys. An ANSI keyboard usually has two keys between <strong>L</strong> and <strong>Return</strong>, while ISO usually has three. Also, ANSI places <strong>Z</strong> adjacent to the left <strong>Shift</strong> key, but ISO has an intervening key. To allow for this, ANSI has a wider left <strong>Shift</strong> key than ISO.</p>
<p>I own a couple of ISO keyboards. I bought them on eBay in early 2006 because they were the cheapest USB keyboards I could find at the time. I can't really type on them, though, because my left pinky consistently hits the intervening key when it is hunting for the <strong>Shift</strong> key. (My right pinky also has some trouble with <strong>Return</strong>, but not to the same extent.)</p>
<p>The image to the right shows an ISO keyboard on top and an ANSI keyboard on the bottom. The ISO model is a Silicon Graphics SK-2502U. The ANSI model is an Inland "Windows 107-Key USB Keyboard" (which, at $4.99, just may be the cheapest <a title="Best Keyboard for Mac Mini?" href="http://bitguru.wordpress.com/2007/05/24/best-keyboard-for-mac-mini/" target="_blank">keyboard for Mac Mini</a>). Note the width of the left <strong>Shift</strong> keys and the relative location of the <strong>Z</strong> keys.</p>
<p>Now take a look at the European Dell Vostro 1310 keyboard shown below. Dell has inadvertently created a hybrid ANSI/ISO layout. This is no good because they have shifted all the letters on the bottom row one slot rightward from where a touch-typist would expect them to be!</p>
<p><img class="alignleft" src="http://bitguru.wordpress.com/files/2008/05/vostro1310.jpeg" alt="Dell Vostro 1310 keyboard" />The <strong>Z</strong> should be below <strong>A</strong> and <strong>S</strong> (in both ANSI and ISO) but on this laptop the <strong>Z</strong> is below <strong>S</strong> and <strong>D</strong>. Oops.</p>
<p>Dell <a href="http://direct2dell.com/smallbusiness/archive/2008/05/08/europe-vostro-keyboard-issue-what-we-re-doing.aspx" target="_blank">admits its blunder</a> and will provide replacement keyboards.</p>
<p>The Vostro keyboard error has received a lot of press on the web, but to my knowledge noone has mentioned the ANSI vs. ISO issue. It would seem to explain how this astounding error could have been made when the North American Vostro keyboard was adapted for European release.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[:-[  Cyanide and Happiness]]></title>
<link>http://rogerlima.wordpress.com/?p=326</link>
<pubDate>Sat, 17 May 2008 16:56:53 +0000</pubDate>
<dc:creator>rogerlima</dc:creator>
<guid>http://rogerlima.wordpress.com/?p=326</guid>
<description><![CDATA[
Clique na imagem para visualizar
]]></description>
<content:encoded><![CDATA[<p><a href="http://fc06.deviantart.com/fs26/f/2008/137/a/6/__l_by_kris_wilson.png"><img class="alignnone" src="http://fc06.deviantart.com/fs26/f/2008/137/a/6/__l_by_kris_wilson.png" alt="" width="448" height="267" /></a></p>
<p>Clique na imagem para visualizar</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Scripting with ANSI Color Codes]]></title>
<link>http://brianin3d.wordpress.com/?p=4</link>
<pubDate>Wed, 14 May 2008 16:36:43 +0000</pubDate>
<dc:creator>brianin3d</dc:creator>
<guid>http://brianin3d.wordpress.com/?p=4</guid>
<description><![CDATA[Oh the console! Love it or loath it, if you engage in computer actions you probably end up spending ]]></description>
<content:encoded><![CDATA[<p>Oh the console! Love it or loath it, if you engage in computer actions you probably end up spending a lot of time looking at a console.</p>
<p>Of course not all consoles are created equal. Some consoles are really just the equivalent of</p>
<p>while line=nextLine() ; do print line ; end</p>
<p>Typically this is reserved to crappy IDE's (yes, I know that's redundant, I'm making a hah-hah).</p>
<p>Some deluded souls think cygwin is a real console, only to discover half-way into trying to actually get something done that it ends up going nutso and spewing text in the most unlikely of locations. Infrequently this can lead to a series of awkward questions in the ER.</p>
<p>Gnome's terminal is pretty adequate, and of course you can't go wrong with xterm or a host of other well written, robust terminals that oddly enuff seem to show up only under flavors of UNIX (yes, netBSD... err.. Mac counts too).</p>
<p>Why is writing a solid console implementation so difficult?</p>
<p>Because a console is not about printing lines of text. A terminal is more like a pixel-based display where ever pixel is a character + presentation information.</p>
<p>It is a highly sophisticated user interface. Unlike the farktarded point-and-click UI's popular today for no good reason which use a maximum of say 8 buttons, a console typically has 108+ buttons.</p>
<p>Hah-hah, indeed. More importantly a console is really an interpreter.</p>
<p>No, I don't mean the shell, I mean the console is an interpreter. Just like with shells we have bash, tcsh and crapsh, terminals come in flavors like VT100, VT110, VT220, 3270, 5270 and plethora of others.</p>
<p>Since a terminals has to accept all sorts of input, the language for controlling the terminal is a done via "control codes." Typically a control code is just a string which is difficult to type.</p>
<p>For example: echo &#60;ESC&#62;[33mCheese&#60;ESC&#62;[0m</p>
<p>What is that &#60;ESC&#62;? Typically it is character 27. How do you type it? On a lot of consoles, you type it like this:</p>
<ol>
<li>hold down the control key</li>
<li>press the 'v' key</li>
<li>let go of the control and 'v' key</li>
<li>press the escape key</li>
</ol>
<p>Pretty neat, huh? That works for ANSI/VT100-based terminals. Not for all terminals. Luckily for us, that's just about all we really care about.</p>
<p>Of course a real console application (eg: vim) cares about all terminals and you start to move away from writing control codes directly and towards using terminal apis like curses/ncurses PDQ.</p>
<p>For hacking purposes, VT100 terminal codes will do just fine.</p>
<p>I know.. what a load of historic irrelevant blather and so what and quit wasting my time! What is it good for?!</p>
<p>When was the last time you looked at a log file? Let me put it a different way, when did you stop looking at log files? Chances are you are watching a log file right now! I know I am!</p>
<p>What percentage of log output do you care about for a given task? 10%? 2%? Isn't it a drag that it just blends in with the rest?</p>
<p>Of course you could grep it out, but then you lose the context... Or you might forget a term and have to reproduce the problem again (again [again]).</p>
<p>IMHO, a kick-aspirin use for VT100 color codes is for log highlighting, and it is some simple, it can be easily scripting into a general use script.</p>
<p>Here is the kind of usage I would like:</p>
<pre>usage: cat foo &#124; line_lite.sh ( pattern highlighting )+

pattern         is a ala grep
highlighting    is a colon separated list of colors

the colors are 

    reset        bright      dim         underline    blink
    reverse      hidden      black       red          green
    yellow       blue        magenta     cyan         white
    black_bg     red_bg      green_bg    yellow_bg    blue_bg
    magenta_bg   cyan_bg     white_bg
</pre>
<p>That way I can use it like: tail -f some.log &#124; line_lite.sh Exception red "some other text" green:underline</p>
<p>In order to make this happen, I need to convert that red, green:underline crap to the appropriate VT100 code.</p>
<p>Natually, I do this with sed:</p>
<pre>_line_lite_color_to_code() {
    echo ${*} &#124; sed "s,reset,0,g;s,bright,1,g;s,dim,2,g;s,underline,4,g;s,blink,5,g;s,reverse,7,g;s,hidden,8,g;s,black,30,g;s,red,31,g;s,green,32,g;s,yellow,33,g;s,blue,34,g;s,magenta,35,g;s,cyan,36,g;s,white,37,g;s,black_bg,40,g;s,red_bg,41,g;s,green_bg,42,g;s,yellow_bg,43,g;s,blue_bg,44,g;s,magenta_bg,45,g;s,cyan_bg,46,g;s,white_bg,47,g;s,:,;,g"
}

_line_lite_code() {
    _line_lite_color_to_code ${*} &#124; sed 's,.*,ESC[&#38;m,'
}
</pre>
<p>This will convert "green:underline" to [32;4m</p>
<p>Now we just need some way to do our matching and add the color code. Once again, it's sed time.</p>
<p>For each pair of pattern/color, we create a sed expression like: s!.*.*!<code>&#38;!g; </code></p>
<p>In this case we'd have s!.*some other text.*![32;4m&#38;[0m!g;</p>
<p>All that we have to do is concatenate our sed expressions for each pattern/color pair and then call sed.</p>
<p>Viola! Arbitrarily colored logs!</p>
<p>Here is sample output from something that's not a log:</p>
<pre>% jar_minder_javap sun.security.provider.PolicyFile &#124; line_lite.sh 'static'  red:bright
Compiled from "PolicyFile.java"
public class sun.security.provider.PolicyFile extends java.security.Policy{
    public sun.security.provider.PolicyFile();
    public sun.security.provider.PolicyFile(boolean);
    public void refresh();
    public boolean implies(java.security.ProtectionDomain, java.security.Permission);
    public java.security.PermissionCollection getPermissions(java.security.ProtectionDomain);
    public java.security.PermissionCollection getPermissions(java.security.CodeSource);
    protected java.security.cert.Certificate[] getSignerCertificates(java.security.CodeSource);
<strong>    static boolean access$002(sun.security.provider.PolicyFile, boolean);</strong>
<strong>    static boolean access$102(sun.security.provider.PolicyFile, boolean);</strong>
<strong>    static boolean access$202(sun.security.provider.PolicyFile, boolean);</strong>
<strong>    static boolean access$302(sun.security.provider.PolicyFile, boolean);</strong>
<strong>    static boolean access$200(sun.security.provider.PolicyFile);</strong>
<strong>    static sun.security.util.Debug access$400();</strong>
<strong>    static boolean access$500(sun.security.provider.PolicyFile, java.net.URL, sun.security.provider.PolicyInfo);</strong>
<strong>    static java.security.CodeSource access$600(sun.security.provider.PolicyFile, java.security.CodeSource, boolean);</strong>
<strong>    static java.lang.String access$700(sun.security.provider.PolicyFile, java.security.ProtectionDomain);</strong>
<strong>    static java.security.IdentityScope access$800();</strong>
<strong>    static {};</strong>
}</pre>
<p>Sadly, my olde ascii2html script is not quite it... but I think you get the idea.</p>
<p>Go forth and dig them control codes, my friend! They exist only to serve your dread will.</p>
<p>Here is a link to a copy of the script just in case: <a rel="nofollow" href="http://brianin3d.googlepages.com/line_lite.sh">http://brianin3d.googlepages.com/line_lite.sh</a></p>
<hr />
Dude has had this great link for a jillion years! <a title="ANSI/VT100 Terminal Control" href="http://www.fh-jena.de/~gmueller/Kurs_halle/esc_vt100.html">http://www.fh-jena.de/~gmueller/Kurs_halle/esc_vt100.html</a>, what a hero!</p>
<p>P.S.: Yes, I advocate EMACS-hateration. set -o vi or fight!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Wysoka wydajność za niewielką cenę]]></title>
<link>http://xteam7.wordpress.com/?p=599</link>
<pubDate>Thu, 08 May 2008 14:19:15 +0000</pubDate>
<dc:creator>ParalyserX</dc:creator>
<guid>http://xteam7.wordpress.com/?p=599</guid>
<description><![CDATA[
NEC Display Solutions przedstawia dwa nowe projektory DLP, NEC NP100        oraz NEC NP200, zaproje]]></description>
<content:encoded><![CDATA[<p><img src="http://4press.pl/ftp/0/229/%5B7909%5D_100_slantview%28s%29.jpg" border="0" alt="" hspace="7" vspace="11" align="left" /></p>
<p style="margin-top:0;">NEC Display Solutions przedstawia dwa nowe projektory DLP, NEC NP100        oraz NEC NP200, zaprojektowane specjalnie z myślą o małych i średnich        przedsiębiorstwach, jak również sektorze edukacyjnym. Kluczowymi        zaletami nowych produktów są niska cena oraz koszty użytkowania, a także        doskonałe parametry wyświetlanego obrazu. Projektory charakteryzują się        bardzo wysoką niezawodnością oraz niskim zużyciem energii, wynoszącym        zaledwie 228 watów. Oba modele są jedynymi w swojej klasie urządzeniami,        oferującymi czas pracy lampy wynoszący 3500 godzin (4000 godzin w trybie        ekonomicznym). Dzięki wysokiej jasności 2000 ANSI lumenów (NP100) i 2100        ANSI lumenów (NP200) oraz rozdzielczości SVGA (NP100) i XGA (NP200),        projektory gwarantują doskonałą jakość obrazu. Dysponują unikalnym        sposobem zabezpieczenia przed nieautoryzowanym dostępem. Pilot zdalnego        sterowania projektorem został zintegrowany z obudową. Po jego usunięciu,        projektor pozbawiony jest jakichkolwiek klawiszy do sterowania, w        związku z czym, może być obsługiwany tylko przez uprawnione do tego        osoby.<!--more--></p>
<p style="margin-top:0;">Podczas podejmowania decyzji o zakupie nowego sprzętu, dla wielu        średniej wielkości firm niezwykle ważnym aspektem są zarówno koszty        użytkowania, jak i cena zakupu konkretnego modelu. Nowe projektory NEC        Display Solutions NP100 oraz NP200 zaprojektowane zostały z myślą o        spełnieniu tych wymagań. Urządzenia są wyjątkowo energooszczędne,        zużywają podczas pracy jedynie 228W energii oraz zaledwie 7W w trybie        czuwania. Dodatkowo użytkownicy mogą korzystać z projektorów przez długi        okres dzięki czasowi pracy lampy, który wynosi 3500 godzin w trybie        standardowym oraz aż 4000 godzin w trybie ekonomicznym. Wymienne lampy        do obu projektorów dostępne są również w bardzo korzystnej cenie około        600 zł.</p>
<p style="margin-top:0;">Nowe projektory NEC NP100 oraz NP200 gwarantują obraz najwyższej jakości        nawet w bardzo jasnych pomieszczeniach i sprawdzają się znakomicie w        takich miejscach jak małe biura, klasy szkolne czy niewielkie sale        konferencyjne. Znakomita jakość obrazu osiągalna jest dzięki wysokiej        jasności 2000ANSI lumenów (NP100), 2100ANSI lumenów (NP200), a także        wysokiemu współczynnikowi kontrastu 1200:1 w modelu NP100 oraz 1300:1 w        NP200. Oba projektory są w stanie wyświetlać obraz z odległości od 1,2        metra do nawet 12 metrów. Doskonała reprodukcja kolorów osiągana jest        dzięki pięciosegmentowemu (NP100) oraz sześciosegmentowemu (NP200) kołu        barwnemu, niedostępnemu w konkurencyjnych rozwiązaniach budżetowych. NEC        Display Solutions wyposażył swoje nowe projektory segmentu podstawowego        w wiele praktycznych funkcji zapewniających komfort podczas codziennej        pracy. NEC NP100 oraz NEC NP200 posiadają manualną korekcję efektu        trapezowego w pionie, w zakresie do 40 stopni, a także optyczny zoom.        Pozwala to na swobodę wyboru miejsca ustawienia projektora. Ponadto oba        projektory wyposażone są w analogowe wejście oraz wyjście sygnału wideo,        a także złącza audio.</p>
<p style="margin-top:0;">Niewielkie wymiary oraz waga, to cechy szczególnie pożądane w przypadku        projektorów do niewielkich biur oraz sektora edukacyjnego. Ważące        jedynie 2,3 kg, NEC NP100 i NP200 mogą być bez przeszkód przenoszone z        jednego miejsca w inne, niemniej jednak istnieje możliwość        zainstalowania ich na stałe przy pomocy opcjonalnego uchwytu. Dla        dodatkowej ochrony, pilot zdalnego sterowania został zintegrowany z        obudową projektora. Po jego usunięciu projektor pozbawiony jest        przycisków, co skutecznie zabezpiecza urządzenie przed nieautoryzowanym        dostępem.</p>
<p style="margin-top:0;"><strong>Dostępność i gwarancja</strong><br />
NEC NP100 oraz NEC NP200        są już dostępne na rynku. Sugerowana cena modelu NP100 wynosi 1410zł        netto, natomiast modelu NP200 wynosi 1780zł netto. W zestawie z        projektorem dostarczany jest kabel zasilający, kabel D-SUB, pilot        zdalnego sterowania, osłona obiektywu, instrukcja obsługi oraz płyta CD        z dokumentacją. NEC Display Solutions udziela na projektory trzyletniego        okresu gwarancyjnego w systemie door-to-door.</p>
<p style="margin-top:0;">
<p style="margin-top:0;"><strong>Krótka specyfikacja techniczna:</strong></p>
<table border="1">
<tbody>
<tr>
<td></td>
<td><strong>NEC NP100</strong></td>
<td><strong>NEC NP200</strong></td>
</tr>
<tr>
<td>DLP:</td>
<td>1x1,4cm DDR DMD CHIP</td>
<td>1x1,4cm DDR DMD CHIP</td>
</tr>
<tr>
<td>Zalecana rozdzielczość pracy:</td>
<td>800 x 600 (SVGA)</td>
<td>1024  x 768 XGA</td>
</tr>
<tr>
<td>Kontrast:</td>
<td>1200:1</td>
<td>1300:1</td>
</tr>
<tr>
<td>Jasność w ANSI lumenach:</td>
<td>2000</td>
<td>2100</td>
</tr>
<tr>
<td>Zużycie energii:</td>
<td>228W maksymalnie (ECO Mode: 190W)</td>
<td>228W maksymalnie (ECO Mode: 190W)</td>
</tr>
<tr>
<td>Waga:</td>
<td>2,3 kg</td>
<td>2,3 kg</td>
</tr>
<tr>
<td>Dodatkowe:</td>
<td>Manualna korekcja efektu trapezowego (+/- 40 stopni), optyczny zoom,            funkcję ochrony przed nieautoryzowanym dostępem, plug &#38; play</td>
<td>Manualna korekcja efektu trapezowego (+/- 40 stopni), optyczny zoom,            funkcję ochrony przed nieautoryzowanym dostępem, plug &#38; play</td>
</tr>
</tbody>
</table>
<p style="margin-top:0;">
<p style="margin-top:0;">
<p style="margin-top:0;"><strong>O NEC Corporation</strong><br />
NEC Corporation, NEC Viewtechnology, Ltd. i        NEC Display Solutions, Ltd. doszły do porozumienia w sprawie połączenia        NEC Display Solutions, producenta monitorów, z NEC Viewtechnology,        dostawcy projektorów, w nową firmę, która od 1 kwietnia 2007 r. działa        na rynku monitorów LCD, monitorów plazmowych oraz projektorów. Nowa        spółka, której właścicielem 100% udziałów jest NEC Corporation, ma        siedzibę główną w Tokio w Japonii i działa pod nazwą NEC Display        Solutions, Ltd. Jej prezesem został Yoshiaki Tsuda.</p>
<p style="margin-top:0;">
<p style="margin-top:0;">NEC Display Solutions Europe GmbH z europejską siedzibą w Monachium w        Niemczech jest odpowiedzialna za działania firmy na obszarze EMEA,        podzielonym na cztery regiony sprzedaży: Europę Północną, Europę        Zachodnią i Południową, Europę Środkową oraz Europę Wschodnią wraz z        Bliskim Wschodem i Afryką. Dzięki korzyściom biznesowym, jakie niesie za        sobą dostęp do wiedzy i technologii NEC Corporation oraz własnemu        działowi badawczo-rozwojowemu, firma jest jednym z czołowych światowych        dostawców technologii wyświetlania obrazu w zakresie monitorów LCD,        monitorów plazmowych oraz projektorów. Firma posiada szeroką ofertę        monitorów, od podstawowych do profesjonalnych i specjalistycznych,        takich jak np. wielkoformatowe monitory do zastosowań reklamy cyfrowej        (technologie LCD i plazma) oraz monitory plazmowe dla kina domowego.        Oferta projektorów obejmuje produkty do różnych zastosowań, od lekkich        przenośnych projektorów, poprzez projektory biznesowe aż urządzeń do        pracy ciągłej (np. prezentacje w miejscu sprzedaży) i cyfrowych        projektorów kinowych. Dyrektorem zarządzającym europejskiej centrali        jest Bernd Eberhardt. Więcej informacji można uzyskać na stronie: <a href="http://www.nec-display-solutions.pl/" target="_blank">www.nec-display-solutions.pl</a></p>
<p style="margin-top:0;">
<p style="margin-top:0;">NEC Corporation (NASDAQ: NIPNY) to jeden ze światowych liderów wśród        dostawców Internetu, sieci szerokopasmowych oraz rozwiązań dostosowanych        do specyfiki działania dużych korporacji, jak również uwzględniających        specjalistyczne potrzeby konsumentów na całym świecie. NEC dostarcza        zindywidualizowane rozwiązania dla kluczowych segmentów rynku        komputerowego, sieciowego oraz urządzeń elektronicznych poprzez        wykorzystanie własnych doświadczeń na rynku IT i rynku sieciowym, a        także poprzez dostarczanie zaawansowanych rozwiązań półprzewodnikowych        oferowanych przez NEC Electronics Corporation. Grupa NEC zatrudnia ponad        150 000 osób na całym świecie. W celu uzyskania dalszych informacji,        proszę odwiedzić strony korporacyjne NEC pod adresem <a href="http://www.nec.com/" target="_blank">www.nec.com</a></p>
<p class="Data"><strong>Źródło &#38; Obrazek: <a href="http://4press.pl" target="_blank">4press.pl</a></strong></p>
<p><strong>Pliki do pobrania z serwera 4press.pl:</strong></p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td></td>
</tr>
<tr>
<td><img src="http://4press.pl/ftp/1/230/%5B7910%5D_100_slantview%28s%29.jpg" border="0" alt="" hspace="11" align="left" /></td>
<td class="Data" align="left" valign="top">
<p class="Header">Projektor NEC NP100 / NEC NP200</p>
<p><img src="http://4press.pl/ftp/7/7/%5B7%5D_jpegico.jpg" border="0" alt="" align="left" />Rozmiar zdjęcia: 5176 x 2624<br />
Wielkość pliku: 356 KB<br />
Typ pliku: .jpg<br />
<a href="http://4press.pl/ftp/3/232/%5B7912%5D_100_slantview.jpg"><span class="Data"><strong>pobierz plik</strong></span></a></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><img src="http://4press.pl/ftp/4/233/%5B7913%5D_100_frontlookdown%28s%29.jpg" border="0" alt="" hspace="11" align="left" /></td>
<td class="Data" align="left" valign="top">
<p class="Header">Projektor NEC NP100 / NEC NP200</p>
<p><img src="http://4press.pl/ftp/7/7/%5B7%5D_jpegico.jpg" border="0" alt="" align="left" />Rozmiar zdjęcia: 4948 x 2876<br />
Wielkość pliku: 342 KB<br />
Typ pliku: .jpg<br />
<a href="http://4press.pl/ftp/6/235/%5B7915%5D_100_frontlookdown.jpg"><span class="Data"><strong>pobierz plik</strong></span></a></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><img src="http://4press.pl/ftp/7/236/%5B7916%5D_100_topview_remcon%28s%29.jpg" border="0" alt="" hspace="11" align="left" /></td>
<td class="Data" align="left" valign="top">
<p class="Header">Projektor NEC NP100 / NEC NP200</p>
<p><img src="http://4press.pl/ftp/7/7/%5B7%5D_jpegico.jpg" border="0" alt="" align="left" />Rozmiar zdjęcia: 5418 x 4066<br />
Wielkość pliku: 478 KB<br />
Typ pliku: .jpg<br />
<a href="http://4press.pl/ftp/9/238/%5B7918%5D_100_topview_remcon.jpg"><span class="Data"><strong>pobierz plik</strong></span></a></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><img src="http://4press.pl/ftp/10/239/%5B7919%5D_remocon%28s%29.jpg" border="0" alt="" hspace="11" align="left" /></td>
<td class="Data" align="left" valign="top">
<p class="Header">Pilot zdalnego sterowania</p>
<p><img src="http://4press.pl/ftp/7/7/%5B7%5D_jpegico.jpg" border="0" alt="" align="left" />Rozmiar zdjęcia: 1936 x 3656<br />
Wielkość pliku: 315 KB<br />
Typ pliku: .jpg<br />
<a href="http://4press.pl/ftp/1/241/%5B7921%5D_remocon.jpg"><span class="Data"><strong>pobierz plik</strong></span></a></td>
</tr>
</tbody>
</table>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How to convert Unicode to Ansi and vice versa - More Easily?]]></title>
<link>http://weseetips.wordpress.com/?p=99</link>
<pubDate>Wed, 07 May 2008 19:03:40 +0000</pubDate>
<dc:creator>Jijo.Raj</dc:creator>
<guid>http://weseetips.wordpress.com/?p=99</guid>
<description><![CDATA[
For converting between Unicode and Ansi and vice versa, usually we use functions such as MultiByteT]]></description>
<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" src="http://weseetips.wordpress.com/files/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
For converting between Unicode and Ansi and vice versa, usually we use functions such as <span style="color:#0000ff;">MultiByteToWideChar</span>() and <span style="color:#0000ff;">WideCharToMultiByte</span>(). But they are bit hard to use. Is there any other easy way to convert Unicode to Ansi and vice versa? Yes! you can use <span style="color:#0000ff;">ATL conversion macros</span>.</p>
<p><img class="alignnone size-medium wp-image-12" src="http://weseetips.wordpress.com/files/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
In ATL there are some helper macros defined such as <span style="color:#0000ff;">W2A</span>() which is used to convert widechar to ansi and <span style="color:#0000ff;">A2W </span>which is used to convert ansi to WideChar. Before using this macros you should initialize the conversion by calling <span style="color:#0000ff;">USES_CONVERSION</span>. See the code snippet below.</p>
<pre>#include "atlconv.h"
...

// Ansi string.
char* pstrString = "Hello There!";

// Unicode string.
wchar_t* pUnicodeString = 0;

// Use this macro for Initializing the conversion.
// Actually, some member variable initialization deep inside.
USES_CONVERSION;

// Convert Ansi to Unicode.
pUnicodeString = A2W( pstrString);

// Convert Unicode to Ansi.
pstrString = W2A( pUnicodeString);</pre>
<p><img class="alignnone size-medium wp-image-51" src="http://weseetips.wordpress.com/files/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience - Beginners.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Τι σου είναι το facebook!]]></title>
<link>http://karpidis.wordpress.com/?p=145</link>
<pubDate>Tue, 22 Apr 2008 22:49:58 +0000</pubDate>
<dc:creator>karpidis</dc:creator>
<guid>http://karpidis.wordpress.com/?p=145</guid>
<description><![CDATA[
Τι σου είναι το facebook! Πριν κάποιο καιρό είχα ψάξει για ]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"><a href='http://karpidis.wordpress.com/files/2008/04/ansi.jpg'><img src="http://karpidis.wordpress.com/files/2008/04/ansi.jpg?w=225" alt="Ωραίο σόι είμαστε" width="225" height="300" class="alignnone size-medium wp-image-144" /></a></p>
<p>Τι σου είναι το facebook! Πριν κάποιο καιρό είχα ψάξει για το επίθετο μου στο διαδίκτυο (όχι δεν με λένε karpidis) και είχα δει κάποια που το όνομα της έμοιαζε ξένο. Άρα υπέθεσα πως είναι Ελληνοαμερικάνα. Δεν την έκανα add αφού μόνο μια ξαδέρφη έχω στην άλλη πλευρά του Ατλαντικού, και αυτή πολύ μικρή για να την αφήνει ο μπαμπάς της να κάθεται στο facebook. Προς το παρόν όσο ξέρω μόνο στο disney.com :) Πριν μια εβδομάδα μου ήρθε friend request από αυτή την συνονόματη. Και μένει Ελλάδα και είναι και δεύτερη ξαδέλφη μου όπως τελικά ανακαλύψαμε. Τον πατέρα της τον γνώρισα μόλις πέρσι αλλά χάρηκα. Καλή φάση τελικά το facebook. Πέρα από το spam βρίσκεις και συγγενείς :) Δεν έχετε να πείτε κούκλα η ξαδέλφη. Αν το ήξερα πως έχω τέτοιο σόι το <a href="http://politikoblog.gr/category/politikobloggr/vidcast/">vidcast</a> θα ήταν οικογενειακή υπόθεση :) <!--more--><br />
Δεν δίνω το link του προφίλ της μην αρχίσουμε τώρα τα pokes. Κοντά τα χέρια από τη ξαδελφούλα!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Networking Dictionary Part 25]]></title>
<link>http://kangoedin.wordpress.com/?p=93</link>
<pubDate>Wed, 09 Apr 2008 03:48:03 +0000</pubDate>
<dc:creator>Kang Oedin</dc:creator>
<guid>http://kangoedin.wordpress.com/?p=93</guid>
<description><![CDATA[compliance
A wiring device that meets all characteristics of a standard is said to be in compliance ]]></description>
<content:encoded><![CDATA[<p><strong>compliance</strong></p>
<blockquote><p>A wiring device that meets all characteristics of a standard is said to be in compliance with that standard. For example, a data jack that meets all of the physical, electrical, and transmission Standards for ANSI/TIA/EIA-568-B Category 5e is compliant with that Standard.</p></blockquote>
<p><strong>concatenation</strong></p>
<blockquote><p>The process of joining several fibers together end to end.</p></blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Why I Support A National Language]]></title>
<link>http://epsilongardener.wordpress.com/?p=87</link>
<pubDate>Sat, 23 Feb 2008 02:39:30 +0000</pubDate>
<dc:creator>J. Q. McClintic</dc:creator>
<guid>http://epsilongardener.wordpress.com/?p=87</guid>
<description><![CDATA[Image walking down the street in your town looking for that hot new little bistro or boutique and up]]></description>
<content:encoded><![CDATA[<p>Image walking down the street in your town looking for that hot new little bistro or boutique and upon wandering for a bit (because you forgot to write down the address) only to turn to someone to ask where it is and be met with a statement--in a language you don't speak--which amounts to "I'm sorry, but I don't speak your language".</p>
<p>Frustrating, no? It's also a case study in why we need an official language with a regulated canonical form.</p>
<p>First, the purpose of language is to facilitate communication between people, and so any time language becomes a barrier it has failed in its purpose. The first step to communication is to agree on a common medium of information exchang, i.e. a common language. It's not important which language it is, merely that it's common. For a language, this amounts to a national language.</p>
<p>Second, when Alice and Bob both say "I speak language X", American English for example (which I'll use without loss of generality for the remainder of this post), it doesn't mean much unless they're both referring to the same core set of words and rules for their composition. In other words, in other words, a canonical form of American English. This is very similar to ANSI C or ANSI Fortran, etc, where one might use any number of extra libraries or compiler flags but when you say ANSI C or Fortran, you mean the version as described by the relevant documents written and authorized by the American National Standards Institute. Likewise with ISO standards. This implies not only a national language but an independent standards body to regulate what counts as "Standard American English".</p>
<p>This is not to say people cannot nor should not learn other languages. Nor is it to say within various local communities different languages or flavors of a language should not be spoken. Quite the opposite: people should learn a second language and feel free to use it, especially within the family. But they should still know American English so when you or I walk down Main Street, Anytown USA we know we can ask for directions.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Como fazer Fluxogramas? - Parte 1]]></title>
<link>http://qualiblog.wordpress.com/?p=143</link>
<pubDate>Sat, 16 Feb 2008 23:08:36 +0000</pubDate>
<dc:creator>ronaldocgq</dc:creator>
<guid>http://qualiblog.wordpress.com/?p=143</guid>
<description><![CDATA[Existem diversos tipos de Fluxogramas, cada um com uma finalidade específica e um grau de complexid]]></description>
<content:encoded><![CDATA[<p>Existem diversos tipos de Fluxogramas, cada um com uma finalidade específica e um grau de complexidade adequado a ela.</p>
<p>O uso correto dessa ferramenta permite:</p>
<p><em><span style="color:#ff9900;">- Detectar rapidamente as atividades críticas para o processo;<br />
- Conhecer a seqüência das atividades (fluxo);<br />
- Entendimento claro e rápido do processo</span></em></p>
<p><strong><span style="color:#333399;">Isso não é pouca coisa!</span></strong></p>
<p><strong><span style="text-decoration:underline;"><span style="color:#0000ff;">TIPOS DE FLUXOGRAMA:</span></span></strong></p>
<p><span style="color:#ff6600;"><span style="text-decoration:underline;"><strong>Diagrama de Blocos</strong></span>:</span> Apresenta uma seqüência de atividades contínua e sem envolvimento de decisão. Pode ser utilizado em Instruções de Trabalho Simples ou Macro Fluxo de Processos. No Macro Fluxo só funciona para demonstrar relações contínuas entre os processos.</p>
<p><span style="color:#ff6600;"><span style="text-decoration:underline;"><strong>Fluxograma de Processo Simples</strong></span>:</span> Mostra as relações entre as fases e necessidades básicas de qualquer processo. Considero muito útil para Auditorias Internas quando o processo é verificado isoladamente, pois não apresenta o fornecedor nem o cliente do processo.</p>
<p><span style="color:#ff6600;"><strong><span style="text-decoration:underline;">Fluxograma Funcional</span></strong>:</span> Mostra a seqüência das atividades de um processo entre as áreas ou seções por onde ele flui. É útil para processos que não se completam em uma única área pois indica também os responsáveis por cada fase. Uma variante desse fluxograma apresenta também uma linha do tempo cronológica que permite a identificação de gargalos do processo.</p>
<p><span style="color:#ff6600;"><span style="text-decoration:underline;"><strong>Fluxograma Físico ou Geográfico</strong></span>:</span> Mostra o caminho percorrido por um processo no ambiente. É geralmente confeccionado sobre uma planta do setor ou da fábrica.<br />
<em><span style="color:#333399;">(Lembra de mapas do tesouro? É parecido...)</span></em></p>
<p><span style="color:#ff6600;"><strong><span style="text-decoration:underline;">Fluxograma ANSI</span></strong>:</span> É o mais complexo deles, mas também o mais completo, apresentando uma relação fiel (se for bem feito) da interação das etapas do processo. Para executá-lo, normalmente começamos com um Diagrama de Blocos onde vamos detalhando e incluindo alternativas de tomada de decisão até que tenhamos um “retrato” do processo o mais próximo possível da realidade. Ele possui uma simbologia internacionalmente compreendida, criada pelo “American National Standards Institute” (ANSI).</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[ANSI Escape Code. What?!]]></title>
<link>http://21or23.wordpress.com/2008/01/04/ansi-escape-code-what/</link>
<pubDate>Fri, 04 Jan 2008 20:23:30 +0000</pubDate>
<dc:creator>21or23</dc:creator>
<guid>http://21or23.wordpress.com/2008/01/04/ansi-escape-code-what/</guid>
<description><![CDATA[Can&#8217;t believe that I never came across ANSI CRI uptil now. Maybe, a side-effect of sticking to]]></description>
<content:encoded><![CDATA[<p>Can't believe that I never came across ANSI CRI uptil now. Maybe, a side-effect of sticking to MS-Windows.</p>
<pre>
import java.util.regex.Pattern;
import java.util.regex.Matcher;

public class ANSIEscapeCodeTest
{
  public static final String fancyMessage = "\u001B[32mI need a job!\u001B[0m";
  public static final String simpleMessage = "I need a job!";

  public static void main(String args[])
  {
    final String osName = System.getProperty("os.name");
    final Pattern pattern =
     Pattern.compile("windows", Pattern.CASE_INSENSITIVE);
    final Matcher matcher = pattern.matcher(osName);

    final boolean osIsWindows = matcher.find();
    System.out.println(osIsWindows ? simpleMessage : fancyMessage);
  }
}
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Projector Choice - Rule of Thumb]]></title>
<link>http://digitaltelevisionspecialist.wordpress.com/2007/11/08/projector-choice-rule-of-thumb/</link>
<pubDate>Thu, 08 Nov 2007 10:08:47 +0000</pubDate>
<dc:creator>Hugh Waters</dc:creator>
<guid>http://digitaltelevisionspecialist.wordpress.com/2007/11/08/projector-choice-rule-of-thumb/</guid>
<description><![CDATA[ Ambient light and light output of the  projector 
From the Projecta website:
&#8221; The clarity th]]></description>
<content:encoded><![CDATA[<p class="sIFR-replaced"> <!--YouTube Error: bad URL entered--><span style="font-weight:bold;" class="sIFR-alternate">Ambient light and light output of the  projector </span></p>
<p>From the <a href="http://www.projectascreens.com">Projecta</a> website:</p>
<p style="margin-left:40px;font-style:italic;">" The clarity the image should possess in order    for it to be perceived well  (quantity of light which comes from the projection screen) depends on the  quantity of ambient light present, the reflection value of the screen fabric and  the light output of the projector. For an optimum, legible projection quality,  the light output of the projector, the size of the projection screen and the  reflection value of the screen fabric should be attuned to one another.The  following rule of thumb applies in calculating this:</p>
<p style="margin-left:40px;font-size:0.7em;font-style:italic;"><strong>                          Output ANSI-Lumen projector<br />
LUX   =   ------------------------------------ X    reflection value   (=gain)<br />
             Surface area of screen in m.</strong></p>
<p><strong>LUX   =  100 too  little ambient light<br />
LUX   =  400 normal ambient light<br />
</strong></p>
<p style="margin-left:40px;font-style:italic;">The perceived amount of light that is reflected by the projection screen is  expressed in LUX. For an optimal image quality, the ratio between the LUX value  of the projected image and the wall behind it should be a minimum of 5:1. A rule  of thumb which may be used is that with normal ambient light, when the light  output of the background is approximately 80 LUX, the value of the amount of  light (LUX) that is emitted by the projection screen should be roughly 400 LUX.  If the amount of ambient light is too low, the LUX value of the background is  approximately 20 which means that the LUX value of the screen should be around  100."</p>
<p>  <!-- technorati tags begin --></p>
<p style="font-size:10px;text-align:right;">Tags: <a href="http://technorati.com/tag/projecta" rel="tag">projecta</a>, <a href="http://technorati.com/tag/projection" rel="tag">projection</a>, <a href="http://technorati.com/tag/%20screen" rel="tag"> screen</a>, <a href="http://technorati.com/tag/%20lux" rel="tag"> lux</a>, <a href="http://technorati.com/tag/%20ansi" rel="tag"> ansi</a>, <a href="http://technorati.com/tag/%20lumens" rel="tag"> lumens</a>, <a href="http://technorati.com/tag/%20fabric" rel="tag"> fabric</a>, <a href="http://technorati.com/tag/%20ambient" rel="tag"> ambient</a>, <a href="http://technorati.com/tag/%20light" rel="tag"> light</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
</item>

</channel>
</rss>
