<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7656369716665383369</atom:id><lastBuildDate>Fri, 30 Aug 2024 06:47:27 +0000</lastBuildDate><category>php</category><category>web-programming</category><category>MySQL</category><category>flash</category><category>human rights</category><category>installations</category><category>xml</category><category>Python</category><category>actionscript</category><category>database</category><category>macintosh</category><category>unicode to preeti conversion</category><category>web-designing</category><category>ASP.NET</category><category>Apache</category><category>MAMP</category><category>Thailand</category><category>basics</category><category>c compilers</category><category>c programming</category><category>content management system</category><category>internet</category><category>introduction</category><category>jsp</category><category>object oriented programming</category><category>polymorphism</category><category>search engine optimization</category><category>snow leopard</category><category>socket problem</category><category>tomcat</category><category>travel tips</category><title>Programming Bullets</title><description>Any intelligent fool can make things bigger, more complex, and more violent.&lt;br&gt;It takes a touch of genius - and a lot of courage - to move in the opposite direction.&lt;br&gt;&#xa;- EF Schumacher&lt;br&gt;&#xa;&lt;br&gt;&#xa;Any man can shoot a bullet! It takes a real man to ride one!</description><link>http://programmingbullet.blogspot.com/</link><managingEditor>noreply@blogger.com (Vibhu Mishra)</managingEditor><generator>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-3008321620380271830</guid><pubDate>Mon, 24 Oct 2016 16:27:00 +0000</pubDate><atom:updated>2016-10-24T09:27:47.288-07:00</atom:updated><title>UPDATE - October 2016 / new project</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Been a while since my last post on this blog. Fact is - I haven&#39;t been doing much programming lately but am about to undertake a large project on information management and employing advanced and logical data systems to support and in some cases, automate and even drive decision making and workflows in a very complex, global, real world process that generates about 50,000 distinct pieces of non-electronic outputs every year.&lt;br /&gt;
&lt;br /&gt;
More on this to follow in the coming days.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://programmingbullet.blogspot.com/2016/10/update-october-2016-new-project.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-6637925445187012144</guid><pubDate>Fri, 21 Jun 2013 08:19:00 +0000</pubDate><atom:updated>2013-06-21T01:19:58.961-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">database</category><category domain="http://www.blogger.com/atom/ns#">MySQL</category><title>MySQL foreign key constraints</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Below are explanations for MySQL&#39;s foreign key constraints:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;1. &lt;b&gt;ON DELETE &lt;u&gt;&lt;span style=&quot;color: #990000;&quot;&gt;RESTRICT&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;post-text&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;This means that a given parent row cannot be deleted if a child row referencing to it exists. It can be deleted only if there are no referencing child rows.&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Modern database systems make this clause redundant as this would be default behavior of any foreign key. I am not sure which versions of MySQL include this as default, still wouldn&#39;t hurt keeping this clause.&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;2. &lt;b&gt;ON DELETE &lt;u&gt;&lt;span style=&quot;color: #990000;&quot;&gt;CASCADE&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;ON
 DELETE CASCADE means that if a given parent row is deleted then all referencing child rows will also be deleted.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;3. &lt;b&gt;ON DELETE &lt;u&gt;&lt;span style=&quot;color: #990000;&quot;&gt;SET NULL&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;ON
 DELETE SET NULL means that if a given parent row is deleted then all referencing child rows will be set to NULL.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;4.&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;b&gt;ON DELETE &lt;u&gt;&lt;span style=&quot;color: #990000;&quot;&gt;NO ACTION&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Same as ON DELETE RESTRICT, that is, &lt;/span&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;a 
given parent row cannot be deleted if a child row referencing to it 
exists.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://programmingbullet.blogspot.com/2013/06/mysql-foreign-key-constraints.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-5498420654563230311</guid><pubDate>Fri, 22 Jun 2012 09:00:00 +0000</pubDate><atom:updated>2012-06-22T02:00:30.395-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">web-programming</category><title>ASP.NET on a Macintosh</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Greetings all,&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
This has been a question running through many minds, can one do ASP.NET programming on a Mac. Well I have just tried it out and it works!&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
So far, I tried only basic scripts and these executed perfectly on my MacBook Pro. Can&#39;t wait to dive deep into it!&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;
Stay tuned for updates...&lt;/div&gt;
&lt;/div&gt;</description><link>http://programmingbullet.blogspot.com/2012/06/aspnet-on-macintosh.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-2675934106497475280</guid><pubDate>Tue, 19 Jun 2012 02:52:00 +0000</pubDate><atom:updated>2012-06-18T19:54:57.669-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">internet</category><category domain="http://www.blogger.com/atom/ns#">Thailand</category><category domain="http://www.blogger.com/atom/ns#">travel tips</category><title>Moved to Thailand -- Internet!?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
Greetings fellow programmers and computer people!&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
I have recently moved to Thailand and found a new place to stay, now only thing remaining before I can start churning out one line of code after another and sharing it with the wider world outside my MacBook (x2) and MacBook Pro is getting the wire to the outside world -- yes, I am talking about Internet!&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
My apartment has free wireless for its residents but the speed is terrible, now I am trying to get a line of my own -- easier said than done -- in fact the problem is finding a good source of information, there are many many websites, unfortunately all in Thai.&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
So, now being the the helpful kind I am&amp;nbsp; (yeah right!!!), I am sharing unofficial &lt;a href=&quot;http://translate.google.com/&quot; target=&quot;_blank&quot;&gt;Google Translation&lt;/a&gt; translated versions of pages that I found helpful, also included are the URLs of the pages and the Thai versions as they appear on these pages.&lt;br /&gt;
&lt;br /&gt;
Please note that I take no responsibility for the text underneath, I have simply copy pasted the Thai version and the version translated by Google Translation (&lt;a href=&quot;http://goo.gl/BeRsu&quot; target=&quot;_blank&quot;&gt;Link to translation&lt;/a&gt;), page version as of 19 June 2012, 09:45 local Thai time.&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;
&lt;b&gt;Mi-Fi (from TrueCorp)&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot;&gt;
URL: &lt;a href=&quot;http://www3.truecorp.co.th/trueonline/product/detail/61/Mi_Fi&quot; target=&quot;_blank&quot;&gt;http://www3.truecorp.co.th/trueonline/product/detail/61/Mi_Fi&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;width: 600px;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;b&gt;Specifications:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul class=&quot;list_fucntion&quot; style=&quot;border-width: 0px; color: #323232; line-height: 20px; list-style-type: none; margin: 0px 0px 30px; outline-style: none; padding: 0px;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;
      &lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;- รองรับการแชร์อินเตอร์เน็ตแบบ Wi-Fi,&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;เข้าใช้งานได้พร้อมกัน 5 เครื่อง&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;
      &lt;span style=&quot;font-size: x-small;&quot;&gt;- รองรับเครือข่าย 3G/HSPDA คลื่นความถี่&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;850/1900/2100 MHz&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;
      &lt;span style=&quot;font-size: x-small;&quot;&gt;- รองรับความเร็วสูงสุด 7.2 Mbps&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;(Download) และ 5.7 Mbps (Upload)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;
      &lt;span style=&quot;font-size: x-small;&quot;&gt;- หน้าจอแสดงผล OLED แบตเตอรี่&lt;br /&gt;
      &amp;nbsp;&amp;nbsp;1500 mA, ใช้งานได้นาน 4 ชม.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;td style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;,Arial,Helvetica,sans-serif;&quot; valign=&quot;top&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;hps&quot;&gt;- Support for&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;shared&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Internet access&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;Wi-Fi,. &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;Access&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;5 computers&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;at once&lt;/span&gt;.&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;hps&quot;&gt;- Support for&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;network&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;3G/HSPDA&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;spectrum&lt;/span&gt;. &lt;span class=&quot;hps&quot;&gt;850/1900/2100 MHz.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;hps&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;hps&quot;&gt;- Supports&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;a maximum speed of&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;7.2 Mbps.&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;(Download)&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;5.7 Mbps (Upload).&lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;&quot; id=&quot;result_box&quot; lang=&quot;en&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;span class=&quot;hps&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;OLED&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;screen&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;displays&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;the battery&lt;/span&gt;&lt;span class=&quot;&quot;&gt;. &lt;/span&gt;&lt;span class=&quot;hps&quot;&gt;1500 mA,&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;up&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;4&lt;/span&gt; &lt;span class=&quot;hps&quot;&gt;hour&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;</description><link>http://programmingbullet.blogspot.com/2012/06/moved-to-thailand-internet.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-3486873765924097409</guid><pubDate>Tue, 17 Apr 2012 10:09:00 +0000</pubDate><atom:updated>2012-04-17T03:10:42.749-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">search engine optimization</category><category domain="http://www.blogger.com/atom/ns#">web-designing</category><category domain="http://www.blogger.com/atom/ns#">web-programming</category><title>Search engine optmization for Cultures-Connect</title><description>&lt;span class=&quot;default_text&quot;&gt;Search engine optimization for Cultures Connect (&lt;/span&gt;&lt;span class=&quot;default_text&quot;&gt;&lt;a href=&quot;http://wwwcultures-connect.net/&quot; class=&quot;orange&quot; target=&quot;_blank&quot;&gt;www.cultures-connect.net&lt;/a&gt;) &lt;/span&gt;&lt;span class=&quot;default_text&quot;&gt;is a project that I have just taken up, it involves comprehensive search engine optimization and promotion of the website. In addition to employing traditional SEO  techniques, customized content is also being developed for the website.&lt;br /&gt;&lt;br /&gt;Cultures-connect is an initiative of two social and cultural  anthropologists and it is conceived as a platform for exchanging ideas  and networking individuals interested in inter-cultural encounters. It  also aims to promote cultural exchanges on a high level. The specialties  of the institution involve organizing specialized travel, launching  social projects and anthropological research.&lt;br /&gt;&lt;br /&gt;Personally, while working on this project, I have found that it is  engaged in wonderful work in remote Himalayan communities, I encourage  you to visit their website, not only to see my work, but more to see  their work and be inspired by them.&lt;br /&gt;&lt;/span&gt;</description><link>http://programmingbullet.blogspot.com/2012/04/search-engine-optmization-for-cultures.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-354765365945480476</guid><pubDate>Tue, 10 Apr 2012 10:19:00 +0000</pubDate><atom:updated>2012-04-10T03:19:51.672-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">human rights</category><category domain="http://www.blogger.com/atom/ns#">web-designing</category><category domain="http://www.blogger.com/atom/ns#">web-programming</category><title>Report about the 100-day campaign website on CNN</title><description>It is not often that a drop in the ocean feels like much, infact I will  still call an action I took few months back as a mere drop in the ocean,  but I am proud that I was atleast able to to make this one drop  contribution.&lt;br /&gt;&lt;br /&gt;I developed the website for the 100-day campaign against caste-based discrimination and untouchability, &lt;a href=&quot;http://www.100daysagainstcastediscrimination.com/&quot;&gt;http://www.100daysagainstcastediscrimination.com&lt;/a&gt;.  At the end of its 100-day activism, the website proudly received  pledges from more than 1600 people who committed themselves to end  caste-based discrimination and untouchability practices.&lt;br /&gt;&lt;br /&gt;I was especially gratified to see the website being featured on the CNN iReport website, &lt;a href=&quot;http://ireport.cnn.com/docs/DOC-676684&quot;&gt;http://ireport.cnn.com/docs/DOC-676684&lt;/a&gt;. Rikke Nöhrlind, Coordinator of &lt;a href=&quot;http://www.idsn.org/&quot;&gt;International Dalit Solidarity Network&lt;/a&gt;  noted, “The campaign is a fantastic initiative and we would like to  encourage  everyone to go to the website and register their commitment  to help end  one of the biggest human rights issues the world is facing  today.”&lt;br /&gt;&lt;blockquote&gt;Read the complete CNN iReport at &lt;a href=&quot;http://ireport.cnn.com/docs/DOC-676684&quot;&gt;http://ireport.cnn.com/docs/DOC-676684&lt;/a&gt;&lt;/blockquote&gt;</description><link>http://programmingbullet.blogspot.com/2012/04/report-about-100-day-campaign-website.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-8689415088951222794</guid><pubDate>Sun, 15 Jan 2012 15:49:00 +0000</pubDate><atom:updated>2012-01-15T07:55:22.988-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">macintosh</category><title>Staying safe from MacDefender, MacProtector or MacSecurity malwares</title><description>According to the Apple KnowledgeBase article (http://support.apple.com/kb/HT4650),&lt;br /&gt;&lt;br /&gt;This “anti-virus” software is malware (i.e. malicious software). Its  ultimate goal is to get the user&#39;s credit card information which may be  used for fraudulent purposes.&lt;br /&gt;&lt;br /&gt;The most common names for this malware are &lt;span style=&quot;font-weight: bold;&quot;&gt;MacDefender&lt;/span&gt;, &lt;span style=&quot;font-weight: bold;&quot;&gt;MacProtector&lt;/span&gt; and &lt;span style=&quot;font-weight: bold;&quot;&gt;MacSecurity&lt;/span&gt;. &lt;p&gt;&lt;/p&gt;A recent phishing scam has targeted Mac users by redirecting  them from legitimate websites to fake websites which tell them that  their computer is infected with a virus. The user is then offered Mac  Defender &quot;anti-virus&quot; software to solve the issue.&lt;br /&gt;&lt;p&gt;Apple released a free software update (&lt;a href=&quot;http://support.apple.com/kb/DL1387&quot;&gt;Security Update 2011-003&lt;/a&gt;) that will automatically find and remove Mac Defender malware and its known variants.&lt;br /&gt;&lt;br /&gt;The Resolution section below also provides step-by-step instructions on how to avoid or manually remove this malware.&lt;/p&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;      For details visit:&lt;/span&gt;&lt;br /&gt;&lt;a href=&quot;http://support.apple.com/kb/HT4650&quot;&gt;http://support.apple.com/kb/HT4650&lt;/a&gt;</description><link>http://programmingbullet.blogspot.com/2012/01/staying-safe-from-macdefender.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-8345334747371968234</guid><pubDate>Wed, 28 Dec 2011 09:14:00 +0000</pubDate><atom:updated>2011-12-28T01:21:54.531-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Apache</category><category domain="http://www.blogger.com/atom/ns#">MAMP</category><category domain="http://www.blogger.com/atom/ns#">MySQL</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">web-programming</category><title>Trying out MAMP!</title><description>As this year comes to an end and 2012 is just lurking around the corner, I feel the sudden urge to try something new and write about it.&lt;br /&gt;&lt;br /&gt;So here goes, over the next few days, I will be trying out the MAMP server environment and writing about it.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;What exactly is MAMP?&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(80, 80, 80); font-size: 11px; line-height: normal; font-style: italic;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(80, 80, 80); line-height: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;MAMP stands for Macintosh, Apache, MySQL and PHP and for years has offered the perfect solution for a local developing environment under Mac OS X. The MAMP is also available free of charge for smaller projects.*&lt;/blockquote&gt;MAMP  is a development  I have heard a lot about and so far, I did not feel the need to migrate as my own (stock) configured Apache, MySQL and PHP works wonders, not saying that they still don&#39;t work wonders. But one thing that I read about MAMP PRO got my ears up:&lt;br /&gt;&lt;blockquote&gt;With MAMP PRO, you can easily connect your local server with an existing Dynamic DNS provider, as for example dyndns.com. Making it very simple to quickly make the results of your work accessible externally for superiors and prospective customers. And because you can set up many virtual hosts, you can easily offer alternative configurations or suggestions.*&lt;/blockquote&gt;So keep checking back as I delve into this subject and write back what I find.&lt;br /&gt;&lt;br /&gt;[* = quotes from MAMP&#39;s website: http://www.mamp.info/en/mamp-pro/]</description><link>http://programmingbullet.blogspot.com/2011/12/trying-out-mamp.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-8191522657489685499</guid><pubDate>Tue, 08 Nov 2011 08:03:00 +0000</pubDate><atom:updated>2011-11-08T00:07:34.934-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">unicode to preeti conversion</category><title>Important message regarding Preeti-Unicode Utility</title><description>&lt;span style=&quot;font-weight: bold;&quot;&gt;Important message regarding Preeti-Unicode Utility for Non-Profit or Social Organizations&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you or your organization is involved in non-profit, social or other kind of work that aims for the good of the entire society, or you are a researcher or scholar, and need to use this software, please contact me through email regarding the nature of your work.&lt;br /&gt;&lt;br /&gt;For such work, no amount would be charged for the system.&lt;br /&gt;&lt;br /&gt;My contact details can be found on my website at &lt;a href=&quot;http://www.vibhumishra.com&quot;&gt;http://www.vibhumishra.com&lt;/a&gt; or &lt;a href=&quot;http://www.vibhumishra.com/contact.php&quot;&gt;http://www.vibhumishra.com/contact.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thank you,</description><link>http://programmingbullet.blogspot.com/2011/11/important-message-regarding-preeti.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-8160151295183959710</guid><pubDate>Tue, 08 Nov 2011 08:01:00 +0000</pubDate><atom:updated>2011-11-08T00:02:24.024-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">actionscript</category><category domain="http://www.blogger.com/atom/ns#">flash</category><category domain="http://www.blogger.com/atom/ns#">human rights</category><category domain="http://www.blogger.com/atom/ns#">MySQL</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>100 day campaign against caste discrimination and untouchability</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLVdWjWygoqY9tQz-5z_5m7rnpVKLbW7rylTOaUwwA7BK-zmgYyPVuYNb1qboxMzds9_8_Ufs_CoLBM0HEpWVDwhXvCweQnkVyoEfep7tBWy_Csx-9FPCxvzCdAc53yt3D_BB-7PB9kQ6b/s1600/campaign.png&quot;&gt;&lt;img style=&quot;display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 203px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLVdWjWygoqY9tQz-5z_5m7rnpVKLbW7rylTOaUwwA7BK-zmgYyPVuYNb1qboxMzds9_8_Ufs_CoLBM0HEpWVDwhXvCweQnkVyoEfep7tBWy_Csx-9FPCxvzCdAc53yt3D_BB-7PB9kQ6b/s400/campaign.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5655055100216150258&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Despite national legal standards and international obligations, caste  discrimination and untouchability practices are still prevalent in  Nepal, particularly in rural parts of the country.&lt;br /&gt;&lt;br /&gt;To widely disseminate the content of the recently promulgated  Caste-based Discrimination and Untouchability (Offence and Punishment)  Act 2068 to ensure its effective implementation, the United Nations Human Rights Office in Nepal (OHCHR-Nepal) and the National Dalit Commission have jointly launched this campaign.&lt;br /&gt;&lt;br /&gt;On 16th September, the President of Nepal officially inaugurated the  launch of the campaign and over a 100 participants, including Government  representatives, Human Rights Defenders and media personalities, took  part in the campaign&#39;s first National Consultation programme organized later in the day.&lt;br /&gt;&lt;br /&gt;The ultimate goal is to ensure that victims as well as their family  members are able to invoke the rule of law in order to access justice. A  culture of accountability must replace the present culture of impunity  in Nepal.&lt;br /&gt;&lt;br /&gt;To pledge your commitment to end practices of caste discrimination and untouchability, visit the campaign website: &lt;a href=&quot;http://www.100daysagainstcastediscrimination.com&quot;&gt;http://www.100daysagainstcastediscrimination.com&lt;/a&gt; and make your mark today!</description><link>http://programmingbullet.blogspot.com/2011/11/100-day-campaign-against-caste.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLVdWjWygoqY9tQz-5z_5m7rnpVKLbW7rylTOaUwwA7BK-zmgYyPVuYNb1qboxMzds9_8_Ufs_CoLBM0HEpWVDwhXvCweQnkVyoEfep7tBWy_Csx-9FPCxvzCdAc53yt3D_BB-7PB9kQ6b/s72-c/campaign.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-720470443285697998</guid><pubDate>Thu, 13 Oct 2011 05:09:00 +0000</pubDate><atom:updated>2011-10-12T22:16:52.318-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">actionscript</category><category domain="http://www.blogger.com/atom/ns#">flash</category><category domain="http://www.blogger.com/atom/ns#">human rights</category><category domain="http://www.blogger.com/atom/ns#">MySQL</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">xml</category><title>Flash - XML - MySQL - PHP integration project</title><description>It has been a while since my last post, though I did not do much or did do a lot... strange that I can&#39;t remember, I did infact finish one project.&lt;br /&gt;&lt;br /&gt;The project involves Flash - XML - MySQL and PHP integration. Primarily using Action Script, this is a campaign web presence and I urge  to visit the website &lt;a href=&quot;http://www.100daysagainstcastediscrimination.com/&quot;&gt;http://www.100daysagainstcastediscrimination.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On a side note, I will also encourage everyone, even if you who are not in Nepal or do not do any work related to human rights or social inclusion, to pledge your commitment to end caste discrimination and untouchability practicies. By getting people to know about these ghastly practicies in which people of &quot;certain&quot; communities are treated as &quot;untouchables&quot;, and are subjected to inhumane acts and at times even killed for &quot;violating&quot; these so called norms.&lt;br /&gt;&lt;br /&gt;Nepal has recently enacted  a new law that outlaws such practicies and discrimination based on caste. This campaign aims to raise public awareness about the law and to advocate for its effective implementation.&lt;br /&gt;&lt;br /&gt;Jointly undertaken by the United Nations Human Rights Office in Nepal (OHCHR-Nepal) and the country&#39;s National Dalit Commission, the campaign was started on 16 September and will continue until 24 December.&lt;br /&gt;&lt;br /&gt;Make your mark - pledge your commitment - spread the word!&lt;br /&gt;&lt;a href=&quot;http://www.100daysagainstcastediscrimination.com/&quot;&gt;http://www.100daysagainstcastediscrimination.com/&lt;/a&gt;</description><link>http://programmingbullet.blogspot.com/2011/10/flash-xml-mysql-php-integration-project.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-4119061539145044154</guid><pubDate>Mon, 08 Aug 2011 06:48:00 +0000</pubDate><atom:updated>2011-08-07T23:54:44.213-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">unicode to preeti conversion</category><title>Unicode to Preeti Conversion - Mac OS X 10.7 &quot;Lion&quot; compatibility</title><description>Regarding compatibility for the Macintosh OS X version of this utility, &lt;span class=&quot;default_text&quot;&gt;the last release of the project, 0.8.4b (for Mac OS X 10.6.6) &lt;em&gt;should work&lt;/em&gt;  on Lion.&lt;br /&gt;&lt;br /&gt;People who tried this version on OS X 10.7 have reported  no issues, if you are using an earlier version of the Converter and  encounter problems in Lion, please upgrade to version 0.8.4b.&lt;br /&gt;&lt;br /&gt;Meanwhile, I continue to work on a release for a full &quot;Lion&quot; version. Support will be gradually added for converting Unicode to other fonts (including Hindi fonts) continues.&lt;br /&gt;&lt;br /&gt;The last stable version, 0.8 already has support for converting  following fonts:&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;Preeti, &lt;span style=&quot;font-weight: bold;&quot;&gt;to and from&lt;/span&gt;, Unicode&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Kantipur, &lt;span style=&quot;font-weight: bold;&quot;&gt;to and from&lt;/span&gt;, Unicode&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Fontasy Himal, &lt;span style=&quot;font-weight: bold;&quot;&gt;to&lt;/span&gt;, Unicode&lt;/li&gt;&lt;/ul&gt;For regular updates, please visit: &lt;a href=&quot;http://www.vibhumishra.com/unicode-preeti.php&quot;&gt;http://www.vibhumishra.com/unicode-preeti.php&lt;/a&gt;&lt;br /&gt;</description><link>http://programmingbullet.blogspot.com/2011/08/unicode-to-preeti-conversion-mac-os-x.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-8885713296091893730</guid><pubDate>Fri, 23 Jul 2010 06:33:00 +0000</pubDate><atom:updated>2010-07-22T23:49:42.008-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">human rights</category><title>Discrimination kills  - Maternal mortality and human rights</title><description>&lt;center&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Though this is not on a programme subject, it is something very important - the importance of which cannot be expressed even if all lines of code written in the world so far or will be written is raised to the power of nth degree where n is all lines of code written in the world so far and be written... &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Please share this documentary as widely as you can in your blogs, on Facebook, through emails etc...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;object style=&quot;background-image: url(&amp;quot;http://i4.ytimg.com/vi/oS_MFDP3BXc/hqdefault.jpg&amp;quot;);&quot; height=&quot;344&quot; width=&quot;425&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/oS_MFDP3BXc&amp;amp;hl=en_US&amp;amp;fs=1&quot;&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;embed src=&quot;http://www.youtube.com/v/oS_MFDP3BXc&amp;amp;hl=en_US&amp;amp;fs=1&quot; allowscriptaccess=&quot;never&quot; allowfullscreen=&quot;true&quot; wmode=&quot;transparent&quot; type=&quot;application/x-shockwave-flash&quot; height=&quot;344&quot; width=&quot;425&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Discrimination kills - Maternal mortality and human rights&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Discrimination against women leads to preventable deaths and injuries during pregnancy and child birth. Each year hundred of thousands of women and girls die and millions more become disabled as a result of complications during pregnancy and child birth.&lt;br /&gt;&lt;br /&gt;A study by United Nations Human Rights office (OHCHR) finds a clear relationship between maternal mortality and morbidity and violations of human rights.&lt;br /&gt;&lt;/center&gt;&lt;br /&gt;------&lt;br /&gt;&lt;a href=&quot;http://www.youtube.com/unohchr&quot;&gt;http://www.youtube.com/unohchr&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The study by the UN Human Rights office is produced under the request of the Human Rights Council.&lt;br /&gt;&lt;br /&gt;The short documentary is the story of a widower whose wife died during childbirth. He speaks of  how his wife&#39;s death could have been prevented. The UN human rights  office says discrimination against women is causing unnecessary deaths  and injuries during pregnancy and childbirth. &lt;br /&gt;&lt;br /&gt;For more details on this and other works of OHCHR, visit their global website: &lt;a href=&quot;http://www.ohchr.org/&quot;&gt;www.ohchr.org&lt;/a&gt; or the website of its Nepal office: &lt;a href=&quot;http://nepal.ohchr.org/&quot;&gt;nepal.ohchr.org&lt;/a&gt;</description><link>http://programmingbullet.blogspot.com/2010/07/discrimination-kills-maternal-mortality.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-7610278086500699492</guid><pubDate>Sun, 18 Jul 2010 15:07:00 +0000</pubDate><atom:updated>2010-07-18T08:23:46.129-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">content management system</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">web-designing</category><category domain="http://www.blogger.com/atom/ns#">web-programming</category><title>PHP/MySQL based Content Management System (CMS)</title><description>I have just finished the development of a PHP/MySQL based Content Management System (CMS). Below is a low-resolution screen-shot of the system.&lt;br /&gt;&lt;br /&gt;Details about this system can be viewed on my website at &lt;a href=&quot;http://www.vibhumishra.com/index.php?projects&amp;amp;cms_1&quot;&gt;http://www.vibhumishra.com/index.php?projects&amp;amp;cms_1&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;There are two versions of this system, one with an ordering component which will let one do business online and the other without this component, some of the other features (common to both versions) include:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Display web-based advertisements such as Google AdSense ads.&lt;/li&gt;&lt;li&gt;Ability to publish pages straight away, save drafts and archive pages.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Flash and other multimedia integrated.&lt;/li&gt;&lt;li&gt;Tracking individual page hits, user browsing trends and other information.&lt;/li&gt;&lt;li&gt;Full-featured password-protected administrator side, including with Secured HTTP (https://) support (server feature).&lt;/li&gt;&lt;li&gt;3-customizable colour themes (customizable by site visitors).&lt;/li&gt;&lt;li&gt;Multiple font support (not restricted to standard web fonts).&lt;/li&gt;&lt;/ul&gt;A screen shot of the CMS, (populated with dummy data):&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWjvAw5b7_L-kqBMOSdonWYvVRK5ehTBAJsrg4OiQnn6-r0LYZ8hBGe8EcDdB9IvqxsUce1BXcKRr9hsVKLgOh8Qbw8qqCrZTm188p87ftcanpESyLb2wnzf11Od2o_PCUqeRwjfE4IdIV/s1600/design_am_small.jpg&quot;&gt;&lt;img style=&quot;display: block; margin: 0px auto 10px; text-align: left; cursor: pointer; width: 400px; height: 311px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWjvAw5b7_L-kqBMOSdonWYvVRK5ehTBAJsrg4OiQnn6-r0LYZ8hBGe8EcDdB9IvqxsUce1BXcKRr9hsVKLgOh8Qbw8qqCrZTm188p87ftcanpESyLb2wnzf11Od2o_PCUqeRwjfE4IdIV/s400/design_am_small.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5495266378031022242&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</description><link>http://programmingbullet.blogspot.com/2010/07/phpmysql-based-content-management.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWjvAw5b7_L-kqBMOSdonWYvVRK5ehTBAJsrg4OiQnn6-r0LYZ8hBGe8EcDdB9IvqxsUce1BXcKRr9hsVKLgOh8Qbw8qqCrZTm188p87ftcanpESyLb2wnzf11Od2o_PCUqeRwjfE4IdIV/s72-c/design_am_small.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-3267622495795222300</guid><pubDate>Fri, 16 Jul 2010 09:35:00 +0000</pubDate><atom:updated>2011-10-12T22:18:32.280-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">installations</category><category domain="http://www.blogger.com/atom/ns#">macintosh</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">snow leopard</category><title>Enabling PHP on stock Mac OS X 10.6 Snow Leopard</title><description>&lt;span style=&quot;font-size:100%;&quot;&gt;A quick way of enabling the stock installation of PHP on Mac OS X 10.6 &quot;Snow Leopard&quot;. You may use either the Terminal or the user interface of the Finder.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;1. Go to &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;/etc/apache2&lt;/span&gt;&quot;&lt;br /&gt;&lt;br /&gt;2. Use either of the options:&lt;br /&gt;&lt;br /&gt;2.a. If using Finder: Give yourself access privileges (read-write access) to file &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;httpd.conf&lt;/span&gt;&quot; and open the file using your favourite text editor&lt;br /&gt;&lt;br /&gt;2.b. If using Terminal: Using your favourite text editor (vi, pico etc), using sudo open the &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;httpd.conf&lt;/span&gt;&quot; file.&lt;br /&gt;&lt;br /&gt;3. Uncomment (remove the #) in front of line:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;&quot; &gt;  &lt;blockquote&gt;LoadModule php5_module libexec/apache2/libphp5.so&lt;/blockquote&gt;&lt;/span&gt;4. Add the following lines (preferably at the end of the document so that it is easier to debug later if required):&lt;/span&gt;#IfModule php5_module$&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;font-size:100%;&quot;  &gt;&lt;blockquote&gt;AddType application/x-httpd-php .php&lt;br /&gt;AddType application/x-httpd-php-source .phps&lt;br /&gt;&amp;lt;IfModule dir_module&amp;gt;&lt;br /&gt;DirectoryIndex index.html index.php&lt;br /&gt;&amp;lt;/IfModule&amp;gt;&lt;br /&gt;&amp;lt;/IfModule&amp;gt;      &lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;In the above, replace &lt;span style=&quot;font-style: italic;&quot;&gt;#&lt;/span&gt; with an &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;&amp;lt;&quot;&lt;/span&gt; and the &lt;span style=&quot;font-style: italic;&quot;&gt;$&lt;/span&gt; with an&lt;span style=&quot;font-weight: bold;&quot;&gt; &quot;&amp;gt;&quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Try by running a test php page.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-family:courier new;font-size:100%;&quot;  &gt;    &amp;lt;?php phpinfo(); ?&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;In the above, replace&lt;span style=&quot;font-style: italic;&quot;&gt; #&lt;/span&gt; with an &lt;span style=&quot;font-weight: bold;&quot;&gt;&quot;&amp;lt;&quot;&lt;/span&gt; and the &lt;span style=&quot;font-style: italic;&quot;&gt;$&lt;/span&gt; with an&lt;span style=&quot;font-weight: bold;&quot;&gt;  &quot;&amp;gt;&quot;&lt;/span&gt;&lt;/span&gt;</description><link>http://programmingbullet.blogspot.com/2010/07/enabling-php-on-stock-mac-os-x-106-snow.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-2417717846897723035</guid><pubDate>Wed, 24 Feb 2010 05:55:00 +0000</pubDate><atom:updated>2010-02-23T22:27:16.499-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">object oriented programming</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">polymorphism</category><category domain="http://www.blogger.com/atom/ns#">web-programming</category><title>Object Oriented Programming and Polymorphism in PHP</title><description>&lt;span style=&quot;font-weight: bold;&quot;&gt;Introduction:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One of the greatest strengths of any programming language is its Object Orientation and from this comes Polymorphism, way back when I was in college, I studied this section of programming with immense interest and while at first, avenues for its implementation were very limited this is growing day by day.&lt;br /&gt;&lt;br /&gt;Following are some examples and implementation of these concepts.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;All Object Oriented Programming languages (OOP languages) offer some form of polymorphism. Following is an example of implementation of polymorphism using PHP:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;border: 1px solid rgb(212, 212, 212); padding: 10px; font-family: courier new;&quot;&gt;&lt;br /&gt;    interface vehicle{&lt;br /&gt;        function getType();&lt;br /&gt;        function getCapacity();&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    abstract class baseVehicle implements vehicle{&lt;br /&gt;        protected type = $type;&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;       function getType(){&lt;br /&gt;           return ($this-&gt;type);&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   class motorbike extends baseVehicle{&lt;br /&gt;       function getCapacity(){&lt;br /&gt;           return (&quot;2 people&quot;);&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   class car extends baseVehicle{&lt;br /&gt;       function getCapacity(){&lt;br /&gt;           return (&quot;5 people and 400 litres of boot space&quot;);&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   class truck extends baseVehicle{&lt;br /&gt;       function getCapacity(){&lt;br /&gt;           return (&quot;3 people and 10 tonnes of cargo space&quot;);&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt; &lt;br /&gt;   $vehicleArray = array(&lt;br /&gt;       new motorbike(&quot;Enfiled Bullet Motorcycle&quot;),&lt;br /&gt;       new car(&quot;Tata Indigo Station-wagon&quot;),&lt;br /&gt;       new truck(&quot;Leyland Flatbed Truck&quot;)&lt;br /&gt;   );&lt;br /&gt;&lt;br /&gt;   foreach ($vehicleArray as $vehicleData) {&lt;br /&gt;       echo $vehicleData-&gt;getType() . &quot; - &quot; . $vehicleData-&gt;getCapacity() . &quot;\n&quot;;&lt;br /&gt;   }&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Output:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;border: 1px solid rgb(212, 212, 212); padding: 10px; font-family: courier new;&quot;&gt;Enfiled Bullet Motorcycle - 2 people&lt;br /&gt;Tata Indigo Station-wagon - 5 people and 400 litres of boot space&lt;br /&gt;Leyland Flatbed Truck - 3 people and 10 tonnes of cargo space&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;If there are any questions or feedback regarding this, please post in the comments box!</description><link>http://programmingbullet.blogspot.com/2010/02/object-oriented-programming-and.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-7138603101218550468</guid><pubDate>Mon, 23 Nov 2009 14:42:00 +0000</pubDate><atom:updated>2009-11-23T06:45:20.041-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">database</category><category domain="http://www.blogger.com/atom/ns#">flash</category><category domain="http://www.blogger.com/atom/ns#">xml</category><title>Examples of Flash Charts and Graphs soon</title><description>I will try to upload some examples and screen-shots of some graphs and charts generated through Flash which gets in the data from databases or XML files.&lt;br /&gt;&lt;br /&gt;Check in soon!</description><link>http://programmingbullet.blogspot.com/2009/11/examples-of-flash-charts-and-graphs.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-6777245875617027671</guid><pubDate>Mon, 12 Oct 2009 13:47:00 +0000</pubDate><atom:updated>2009-10-12T06:50:22.670-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">flash</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">xml</category><title>Implementation of PHP-Flash-XML - Realtime Graphs!</title><description>Hi all,&lt;br /&gt;&lt;br /&gt;One great implementation I have of PHP-Flash-XML project is for generating real time graphs. I already have this working for Pie Charts, Bar Graphs and Line Graphs. Now I am working on Line Graphs with 2 or more variables and scatter plots.&lt;br /&gt;&lt;br /&gt;For more details about this project, see my website, &lt;a href=&quot;http://www.vibhumishra.com/index.php?php-flash-xml&quot;&gt;http://www.vibhumishra.com/index.php?php-flash-xml&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;More updates soon...</description><link>http://programmingbullet.blogspot.com/2009/10/implementation-of-php-flash-xml.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-6495776918532285899</guid><pubDate>Wed, 26 Aug 2009 14:53:00 +0000</pubDate><atom:updated>2009-08-26T07:57:45.034-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">actionscript</category><category domain="http://www.blogger.com/atom/ns#">flash</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">web-programming</category><category domain="http://www.blogger.com/atom/ns#">xml</category><title>PHP - XML - Flash Integration</title><description>Since the past few months, I have been working on projects involving a great deal of PHP, XML and Flash integration.&lt;br /&gt;&lt;br /&gt;Some common example of such integration are dynamic Flash websites, XML-based Flash applications, components for PHP-based websites, the list is endless.&lt;br /&gt;&lt;br /&gt;Examples and sample of this work can be seen on my website: &lt;a href=&quot;http://www.vibhumishra.com&quot;&gt;www.vibhumishra.com&lt;/a&gt;. Over the next few days, I will be putting some samples of the ActionScript involved on this blog as well.</description><link>http://programmingbullet.blogspot.com/2009/08/php-xml-flash-integration.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-4643104689489408822</guid><pubDate>Fri, 12 Jun 2009 13:28:00 +0000</pubDate><atom:updated>2010-03-24T07:45:45.034-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Python</category><title>Updates &amp; Examples of Python coming soon</title><description>Hi all,&lt;br /&gt;&lt;br /&gt;I haven&#39;t been able to update this blog all that often but I will do so very soon.&lt;br /&gt;&lt;br /&gt;Just a few quick updates:&lt;br /&gt;&lt;br /&gt;1. Along with this blog, do visit my website too, it has a comprehensive list and details of many projects I have been working on - including the Unicode to Preeti converter. The address of my website is &lt;a href=&quot;http://www.vibhumishra.com&quot;&gt;http://www.vibhumishra.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. I will be putting a number of great example code for those of you starting to learn Python as well as some higher end examples for the more experienced programmers, do check back in soon.&lt;br /&gt;&lt;br /&gt;All for now - Please send in your comments - I would love to hear from you!</description><link>http://programmingbullet.blogspot.com/2009/06/updates-examples-of-python-coming-soon.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-9044208756648389744</guid><pubDate>Thu, 09 Apr 2009 09:17:00 +0000</pubDate><atom:updated>2009-04-09T02:21:35.624-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">c compilers</category><category domain="http://www.blogger.com/atom/ns#">c programming</category><title>C / C++ Compilers for Mac OS X</title><description>A new post after a long time...&lt;br /&gt;&lt;br /&gt;Getting straight to the point, there are loads of C/C++ compilers around.&lt;br /&gt;&lt;br /&gt;I used to use one back in the old days of System 9.1... I am forgetting what it was called but it was a pretty good one, a few functions were quirky and sometimes the debug mode didn&#39;t work all that well.&lt;br /&gt;&lt;br /&gt;Now we have MacOS X, and there are also quite a few compilers around. I will soon put a list of them as well as installing them on the Mac...&lt;br /&gt;&lt;br /&gt;Till next time...</description><link>http://programmingbullet.blogspot.com/2009/04/c-c-compilers-for-mac-os-x.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-2194787124728664602</guid><pubDate>Tue, 24 Feb 2009 15:46:00 +0000</pubDate><atom:updated>2009-02-24T20:24:40.353-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">installations</category><category domain="http://www.blogger.com/atom/ns#">Python</category><title>Installing Python on Mac OS X (10.3, 10.4 or 10.5) from scratch</title><description>Installing Python on a Macintosh running Mac OS X 10.3 &quot;Panther&quot;, 10.4 &quot;Tiger&quot; or 10.5 &quot;Leopard&quot; is quite simple and straight forward, the steps are very similar to the ones for&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download the installer from &lt;span style=&quot;font-family:courier new;&quot;&gt;http://pythonmac.org/packages/py25-fat/dmg/python-2.5-macosx.dmg&lt;/span&gt; (approximately 18MB)&lt;/li&gt;&lt;li&gt;Mount the disk image.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Backup your &lt;span style=&quot;font-family:courier new;&quot;&gt;.bash_profile&lt;/span&gt; before you install.&lt;/li&gt;&lt;li&gt;Double click &lt;span style=&quot;font-family:courier new;&quot;&gt;MacPython.mpkg&lt;/span&gt; to start the install process. This would install the Python Frameworks along with the extras including IDLE. They would be installed in the &lt;span style=&quot;font-family:courier new;&quot;&gt;Applications/MacPython 2.5&lt;/span&gt; folder.&lt;/li&gt;&lt;/ol&gt;Once installed, you may try the installation with the simple &quot;hello world&quot; trial.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Open TextEdit or your favourite text editor, in a blank text only file, type&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;print &quot;hello world&quot;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Save the file with the extension &lt;span style=&quot;font-family:courier new;&quot;&gt;.py&lt;/span&gt; and close the text editor.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Open this file with IDLE and from the &lt;span style=&quot;font-family:courier new;&quot;&gt;Run&lt;/span&gt; menu, select &lt;span style=&quot;font-family:courier new;&quot;&gt;Run Module&lt;/span&gt;.&lt;/li&gt;&lt;li&gt;You should see &lt;span style=&quot;font-family:courier new;&quot;&gt;hello world&lt;/span&gt; in the Python Shell.&lt;/li&gt;&lt;/ol&gt;All done, Python is now installed! Have fun!&lt;br /&gt;&lt;br /&gt;If you have any questions or problems, just post back!</description><link>http://programmingbullet.blogspot.com/2009/02/installing-python-on-mac-os-x-103-104.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-8678128710071799485</guid><pubDate>Thu, 12 Feb 2009 14:18:00 +0000</pubDate><atom:updated>2009-02-24T20:24:40.353-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">installations</category><category domain="http://www.blogger.com/atom/ns#">Python</category><title>Installing Python on Mac OS X (Leopard)</title><description>Mac OS X 10.5.x (Leopard) comes with Python 2.5.1 pre-installed. However this installation is without the IDLE.app, the need for IDLE.app comes in if you are interested in a light-weight Python development (Leopard&#39;s Xcode 3.0 allows working with Python though...)&lt;br /&gt;&lt;br /&gt;To install IDLE.app and other Python 2.5 extras,&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Download the installer from &lt;span style=&quot;font-family:courier new;&quot;&gt;http://pythonmac.org/packages/py25-fat/dmg/python-2.5-macosx.dmg&lt;/span&gt; (approximately 18MB)&lt;/li&gt;&lt;li&gt;Mount the disk image.&lt;/li&gt;&lt;li&gt;Do a &quot;Show Package Contents&quot; on the &lt;span style=&quot;font-family:courier new;&quot;&gt;MacPython.mpkg&lt;/span&gt; (context-click / control-click the package)&lt;/li&gt;&lt;li&gt;Backup your &lt;span style=&quot;font-family:courier new;&quot;&gt;.bash_profile&lt;/span&gt; before you install.&lt;/li&gt;&lt;li&gt;Navigate to &lt;span style=&quot;font-family:courier new;&quot;&gt;Contents &gt; Packages &gt; PythonApplications-2.5.pkg&lt;/span&gt;, double click to install. This would install the extras including IDLE.app. They would be installed in the &lt;span style=&quot;font-family:courier new;&quot;&gt;Applications/MacPython 2.5&lt;/span&gt; folder.&lt;/li&gt;&lt;li&gt;Using Terminal, create a symbolic link for the system&#39;s &lt;span style=&quot;font-family:courier new;&quot;&gt;Python.framework&lt;/span&gt; in the location expected by the pythonmac.org tools:&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;cd /Library/Frameworks&lt;/span&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;&lt;br /&gt;sudo ln -s /System/Library/Frameworks/Python.framework/ Python.framework &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;It is recommended that you delete the newly installed Python Launcher.app, because it is already present inside the system &lt;span style=&quot;font-family:courier new;&quot;&gt;Python.framework&lt;/span&gt;.&lt;br /&gt;If you have installed Apple&#39;s developer tools (Xcode et al), it is recommended that you delete the newly installed Build Applet.app, because it is already present in &lt;span style=&quot;font-family:courier new;&quot;&gt;/Developer/Applications/Utilities/MacPython 2.5&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;For more information:&lt;br /&gt;•  &lt;a href=&quot;http://wiki.python.org/moin/MacPython/Leopard&quot;&gt;http://wiki.python.org/moin/MacPython/Leopard&lt;/a&gt;&lt;br /&gt;•  &lt;a href=&quot;http://python.org/download/mac/&quot;&gt;http://python.org/download/mac/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://programmingbullet.blogspot.com/2009/02/installing-python-on-mac-os-x-leopard.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-6018715950948613410</guid><pubDate>Wed, 11 Feb 2009 05:30:00 +0000</pubDate><atom:updated>2009-02-10T21:40:47.466-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">macintosh</category><category domain="http://www.blogger.com/atom/ns#">unicode to preeti conversion</category><title>Unicode to  Preeti Converter...</title><description>Over the past few months, I have been working on a robust Unicode to Preeti and Preeti to Unicode Conversion Software, the &quot;Unicode to Preeti Converter Project&quot;, there are three versions of the software - (a) Web Based, (b) Windows Based and (c) Macintosh Based. Currently, the supported fonts include Preeti and Kantipur. Support for the fonts will be added in due course of time.&lt;br /&gt;&lt;br /&gt;The prototype for the Macintosh (OS X) and the Web-based versions are ready and currently in the &lt;span style=&quot;font-weight: bold;&quot;&gt;Beta Testing&lt;/span&gt; phase. Once the Macintosh version has finished this phase, work would commence on the Windows version.&lt;br /&gt;&lt;br /&gt;This software can be used to convert text in legacy fonts like Preeti, Kantipur or other Nepali or Hindi (Devanagari Script) Fonts into UTF-8 encoded (unicode) text.&lt;br /&gt;     &lt;br /&gt;For more details and updates or to know more about other projects visit my website, &lt;a href=&quot;http://www.vibhumishra.com/&quot;&gt;www.vibhumishra.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div  style=&quot;text-align: left;font-family:trebuchet ms;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;You might want to look at:&lt;br /&gt;&lt;li style=&quot;text-align: left; font-family: trebuchet ms;&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/UTF-8&quot;&gt;http://en.wikipedia.org/wiki/UTF-8&lt;/a&gt;&lt;/li&gt;&lt;li face=&quot;trebuchet ms&quot; style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://www.vibhumishra.com/index.php?unicode-preeti&quot;&gt;http://www.vibhumishra.com/?unicode-preeti&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</description><link>http://programmingbullet.blogspot.com/2009/02/unicode-to-preeti-converter.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7656369716665383369.post-2595911335888837562</guid><pubDate>Wed, 04 Feb 2009 04:29:00 +0000</pubDate><atom:updated>2009-02-24T20:24:52.749-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">installations</category><category domain="http://www.blogger.com/atom/ns#">jsp</category><category domain="http://www.blogger.com/atom/ns#">tomcat</category><category domain="http://www.blogger.com/atom/ns#">web-programming</category><title>Setting up Tomcat on Mac OS X</title><description>&lt;span style=&quot;font-style: italic;&quot;&gt;from &lt;a style=&quot;font-style: italic;&quot; href=&quot;http://wiki.apache.org/tomcat/TomcatOnMacOS&quot;&gt;http://wiki.apache.org/tomcat/TomcatOnMacOS&lt;/a&gt; - many thanks!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Found this link after a long search for trying to setup Apache Tomcat on my Mac OS X:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Many thanks again to Basil Bourque and Michael Valentiner - for the 2008 update,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;1. Upgrade to Mac OS X 10.4.6&lt;/span&gt;   &lt;p&gt;- I do not know if 10.4.6 is required, but it sure made an easy Tomcat install.&lt;br /&gt;- Apply all of Apple&#39;s Software Updates, especially the Java 5 update. &lt;/p&gt;  &lt;h5 id=&quot;head-2bc99b558851ca097f4d08d71481eec3eeeaaa01&quot;&gt;2. Download apache-tomcat-5.5.16&lt;/h5&gt;   &lt;p&gt;- Unzip.&lt;br /&gt;- Move it to your home folder. &lt;/p&gt;  &lt;h5 id=&quot;head-b5f3055ecb31d53c8284b944af382a8ec473bcd9&quot;&gt;3. Fix the Unix file permissions&lt;/h5&gt;    &lt;p&gt;- Download the freeware &lt;a href=&quot;http://wiki.apache.org/tomcat/BatChmod&quot; rel=&quot;nofollow&quot;&gt;BatChmod&lt;/a&gt;, a GUI wrapper around the Unix &quot;chmod&quot; command.[&lt;a rel=&quot;nofollow&quot; href=&quot;http://macchampion.com/arbysoft/&quot;&gt;http://macchampion.com/arbysoft/&lt;/a&gt;]&lt;br /&gt;- Drag and drop the entire Tomcat folder onto the &lt;a rel=&quot;nofollow&quot; href=&quot;http://wiki.apache.org/tomcat/BatChmod&quot;&gt;BatChmod&lt;/a&gt; icon.&lt;br /&gt;- Check *all* the checkboxes.&lt;br /&gt;- Click &quot;Apply&quot; and give your Administrator password. &lt;/p&gt;&lt;h5 id=&quot;head-ebafc66d4ce9cfc3bf4fc7cbe0e261a1fd088ed3&quot;&gt;4. Start Tomcat&lt;/h5&gt;   &lt;p&gt;- Launch /Applications/Utilities/Terminal.&lt;br /&gt;- Navigate to the Tomcat folder (apache-tomcat-5.5.16): &lt;/p&gt;&lt;pre&gt;  cd ~/apache-tomcat-5.5.16&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;- Run the startup script:  &lt;/p&gt; &lt;pre&gt;  ./bin/startup.sh&lt;br /&gt;&lt;/pre&gt; &lt;p&gt;- You should see something like this:  &lt;/p&gt;&lt;br /&gt;&lt;pre&gt;  Using CATALINA_BASE:   /Users/basilbourque/apache-tomcat-5.5.16&lt;br /&gt; Using CATALINA_HOME:   /Users/basilbourque/apache-tomcat-5.5.16&lt;br /&gt; Using CATALINA_TMPDIR: /Users/basilbourque/apache-tomcat-5.5.16/temp&lt;br /&gt; Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;- Notice that somehow the startup script(s) have used Java 5 on Mac OS X even though it is not the default Java runtime at the command line. I hope to parse that script later to discover how they did this.&lt;br /&gt;&lt;/p&gt;&lt;h5 id=&quot;head-3e79f5a43cd4b705a39609ca043d8ea4f5c91053&quot;&gt;5. Test Tomcat&lt;/h5&gt;    &lt;p&gt;- Launch a web browser such as Safari.&lt;br /&gt;- Goto &lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;http://127.0.0.1:8080/&lt;/span&gt;&lt;br /&gt;- You should see the cute Tomcat logo on the welcome page. &lt;/p&gt; &lt;p&gt;You are technically done at this point. But as a good pratice, I also did the following additional steps. &lt;/p&gt;&lt;h5 id=&quot;head-73d05742427309385ea0b325ec8ea852c7c48a92&quot;&gt;6. Start the Firewall&lt;/h5&gt;   &lt;p&gt;- System Preferences &gt; Sharing &gt; Firewall &gt; Start&lt;br /&gt;- Also, click the Advanced button on that panel, to (a) block UDP, and (b) start logging. It is fascinating to see how quickly a computer directly on the Internet starts to get queried/tested/attacked. Open /Applications/Utilities/Console to see the log. &lt;/p&gt;&lt;h5 id=&quot;head-2aba2c2ecd31e715a921ac57238b7ccb48aebacb&quot;&gt;7. Enable Port-Forwarding&lt;/h5&gt;  &lt;p&gt;- Add a rule to do port-forwarding from port 80 to Tomcat&#39;s default port 8080. Type this in the Terminal:  &lt;/p&gt; &lt;pre&gt;  sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in&lt;/pre&gt;This would not be necessary if you are already using another server for example Apache (web server) which uses port 80 by default.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;8. Test Tomcat&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;- Launch a web browser such as Safari.&lt;br /&gt;- Goto: http://127.0.0.1/ [note: no port 8080 at the end]&lt;br /&gt;- You should see the cute Tomcat logo on the welcome page.&lt;br /&gt;- To be sure it is working, and not cached by the browser:&lt;br /&gt;• Try another browser.&lt;br /&gt;• Click the Reload button in the toolbar of the browser.&lt;br /&gt;• Choose the Reload command, such as View &gt; Reload Page in Safari.&lt;br /&gt;&lt;h4 id=&quot;head-1bf854e79acf5c401d066c98c06484ce2d387997&quot;&gt;Updated for 2008 (by Michael Valentiner)&lt;br /&gt;&lt;/h4&gt;Verified running Tomcat 6.0.14 on Mac OS X 10.5.1.&lt;br /&gt;Did not need to set up JAVA_HOME and did need to fix Unix file permissions.&lt;br /&gt;The System Preferences &gt; Sharing &gt; Firewall has moved to System Preferences &gt; Security &gt; Firewall. Able to enable logging, but haven&#39;t figured out how to block UDP.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div  style=&quot;text-align: left;font-family:trebuchet ms;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;You might want to look at:&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;post-body entry-content&quot;&gt;&lt;li  style=&quot;text-align: left;font-family:trebuchet ms;&quot;&gt;&lt;a href=&quot;http://wiki.apache.org/tomcat/TomcatOnMacOS&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;http://wiki.apache.org/tomcat/TomcatOnMacOS&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li face=&quot;trebuchet ms&quot; style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;a href=&quot;http://tomcat.apache.org/&quot;&gt;http://tomcat.apache.org/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;text-align: left; font-family: trebuchet ms;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Apache_Tomcat&quot;&gt;http://en.wikipedia.org/wiki/Apache_Tomcat&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/div&gt;</description><link>http://programmingbullet.blogspot.com/2009/02/setting-up-tomcat-on-mac-os-x.html</link><author>noreply@blogger.com (Vibhu Mishra)</author><thr:total>0</thr:total></item></channel></rss>