tag:blogger.com,1999:blog-80191433263035548422024-03-05T04:04:56.764-08:00Open SourceA blog where I will be sharing my Open Source experience.Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.comBlogger31125tag:blogger.com,1999:blog-8019143326303554842.post-9851054766116631162012-02-21T19:54:00.000-08:002012-02-21T19:54:13.970-08:00Second life<div dir="ltr" style="text-align: left;" trbidi="on">
I have participated in the open source world since I started using computer, mainly as a user and sometimes as a contributor. Firefox, Thunderbird, Google Chrome, Ubuntu, PortableApps are my most favorite open source products and community. I have also contributed to Mozilla Community in the past by creating useful features such as Attachment Reminder and adding libnotify support. That was the time when I used to blog every week. But, I became lazy and stopped blogging. Now, I am starting my blogs again, let's see how far I can go. <div>
<br /></div>
<div>
My next blog would be for <a href="http://cibonfire.com/">CodeIgniter Bonefire</a>, a very fast CodeIgniter based PHP development framework. </div>
<div>
<br /></div>
<div>
<br /><div>
<div>
<br /><div>
<div>
<br /></div>
<div>
<br /></div>
</div>
</div>
</div>
</div>
</div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-80373270269076614852009-04-21T16:59:00.000-07:002009-04-21T20:43:58.287-07:00Final 1.0 Release<div>Wow ...</div><br />I can't even believe that the semester is over. This semesters has provided me with the best learning experience because I have worked on something real, something that is going to be used around the world. Not everybody gets this oppotunity while studying. I am lucky that I got an opportunity to work on the Mozilla Project and get grades in reply.<div><br /></div><div>Anyways, I am very glad to announce that Attachment Reminder Bug is all set to find its place in the code. Few days ago, Magnus came up with the patch fixing style, convantion errors in my patch. I tested the patch and it worked fine. Finally, the bug is going to have the status "FIXED".</div><div><br /></div><div>Moreover, I have submitted couple of patches to the Message Compose Window Tango Icons bug. In the latest patch, I have merged all the icon images into one image and used image map technique to use that image in thunderbird. Merging all the images and make single image out of it is very tidious and boring job. But, I had not have to go through that trouble. Magnus prompt me a magic script which does all the merging. Here is the script.... </div><div><ol><li><code></li><li>#!/bin/bash</li><li>## Make a collage of the input images.</li><li><br /></li><li># Require at least one image argument as imput.</li><li>if [ "$#" -lt 1 ]; then</li><li> # Ex: ./do_collage.sh *.png</li><li> # ./do_collage.sh image1.png image2.png image3.png</li><li> echo "Usage: $0 input-files"</li><li> exit 1;</li><li>fi</li><li><br /></li><li>let w=16;</li><li>let h=16;</li><li><br /></li><li>let top=0;</li><li>let right=w;</li><li>let bottom=h;</li><li>let left=0;</li><li><br /></li><li>for file in ${@}; do</li><li> if [[ ! -e $file ]]; then</li><li> echo WARNING - file not found: $file</li><li> else</li><li> # Using -tile 1x => will be only one column => only top and bottom need to change.</li><li> echo "-moz-image-region: rect(${top}px ${right}px ${bottom}px ${left}px); /* `basename $file` */";</li><li> let top+=h;</li><li> let bottom+=h;</li><li> fi</li><li>done</li><li>echo -n "File to write to [collage.png]:"</li><li>read collagefile</li><li>if [[ ! -n "$collagefile" ]]; then</li><li> collagefile=collage.png</li><li>fi</li><li><br /></li><li># Use the imagemagick montage command.</li><li>montage -geometry 16x -background transparent -tile 1x ${@} $collagefile && echo Wrote to $collagefile</li><li><br /></li><li></code></li></ol><div><span class="Apple-tab-span" style="white-space:pre"> </span>Hopefully, this script will help you sometime.<br /></div><div><br /></div></div><div><code></code></div><code></code><div><code><span class="Apple-style-span" style=" ;font-family:'Times New Roman';"><pre style="word-wrap: break-word; white-space: pre-wrap; "><blockquote></blockquote><blockquote></blockquote></pre></span></code></div><div>Now, my major question is that "is it time to separate from Open Source Community?" I </div><div>do not think so! There are lots of opportunities in open source community. Just go on jobvite.com and see number of opportunities.</div><div><br /></div><div>I guess, this will be my last or second last blog for the course (I will keep writing the blogs, but not for marks!!!). So, ...</div><div>Thank you very much !!!</div><div>Good Bye ....</div><div>Sionara ... </div><div>Aavjo ...</div><div>Au Revoire ...</div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-48390929675619676112009-04-14T11:45:00.000-07:002009-04-14T12:12:43.881-07:00Presentation 3<div>I am almost done with my Attachment Reminder Bug. </div><div><br /></div>Here is my presentation 3 for the DPS911 Class based on Attachment Reminder Bug. If you have further questions, feel free to email me on chinu.ptl@gmail.com <iframe src="http://docs.google.com/EmbedSlideshow?docid=ddtr844z_245dzzd4cfc" frameborder="0" width="410" height="342"></iframe>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-41717823491384843802009-04-12T16:49:00.000-07:002009-04-12T17:20:27.089-07:000.9 Release and Planning for 1.0<b>Thunderbird can Tango!!</b><div><span class="Apple-tab-span" style="white-space:pre"> </span>As you can see in my <a href="http://cdpatel1.blogspot.com/2009/04/2nd-presentation-for-dps911.html">previos blog</a>, Thunderbird is merging Tango Icons in its Layout.</div><div><a href="http://tango.freedesktop.org/Tango_Icon_Gallery">Tango Icons Gallery</a> is a collection of icons to be used for software applications in Linux. Tango Icons will bring the same look for all the applicaitons in Linux. It will make the Linux more user friednly.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>During the bug, I came to know about lots of different topics: The community, XUL, CSS, Image Merging and much more. The community has been a real help to me. Bryan Clark, the lead Mozilla User Experience Developer, stood by me to get it done. Moreover, Megnus Melin provided me with a script which can merge all this icons in an image. Later on, I am going to use image mapping technic to get the icon from it. This will improve the performance of Thunderbird. </div><div><br /></div><div><b>Attachment Reminder!!!</b></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>This bug just needs a last release. I am so excited that I am going to finish this bug on time. After a lot of iterations, Megnus melin came up with the patch that had all of my small errors fixed. He also helped me to add a few functionalities in the bug as well. Thank you very much for your help and support.</div><div><br /></div><div><b>Final Release Planning:</b></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Firstly, I have to apply the patch of Attachmet Reminder, provided by Megnus, edit it if required and ask for UI review to the Bryan Clark. I am pretty sure that it will finish by the next two weeks.</div><div><br /></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Secondly, Tango Icon bug requires a lot of work. Before I do anything in the bug, I have to learn how to merge all the icons and create an image out of it. Link all those icons from the image to the Thunderbird compose window. It needs a lot of work. I will try my best to finish it by the end of the semester. </div><div><br /></div><div>My fingers are crossed for both features to get into the tree !!!</div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-79688696537720918012009-04-09T09:15:00.000-07:002009-04-09T09:25:16.613-07:002nd Presentation for DPS911I did my second presentation for the class, DPS911, today.<br /><br />The presentation was all about Tango Icons! What they are? How to use them? and much more! Have a look at it !!!<br /><br /><iframe src="http://docs.google.com/EmbedSlideshow?docid=ddtr844z_229g2cm4qcg" frameborder="0" height="342" width="410"></iframe><br /><br />Wish me luck for my next presentation on Tuesday !!!Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-68825919108466842462009-04-01T16:03:00.001-07:002009-04-01T18:24:35.609-07:000.8 Release0.8 release gave me more workplace skills than coding skills. In this release, I have done the least coding for all of my releases till date. In place of coding, I understand the major concept of open source community.<br /><br />I am a student and select a bug from the list generated by the professor. But, How do people voluntarily takes up initiative in a bug and fix it? I found that individual doesn't decide the bug and whom it is assigned but the community decides that. What happened to me is I interviewed Bryan Clark, the User Experience Developer, at Mozilla Messaging for one of course in the school. During the talk, I got impress by the kind of work he does. I felt like, I want to do that. Meanwhile, I was not having any bugs to fix and was looking for one. I told him that I am looking for a bug and he urgently replied me that he needs some help with what he is doing. Instantly, I got agreed on whatever kind of bug he wanted me to work on. He sent me the link of the bug. I got it approved from David. Eventually, I ended up doing the bug. The moral of the story is that community members do not go in bugzilla and look for the bugs that interest them. But, they got some reference from other community member for bugs and they fix them. The incident gave me the confidence that I can work on my own.<br /><br />The bug that I got is <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=483777">"<span style="display: inline;" id="summary_alias_container" class="bz_default_hidden"><span id="short_desc_nonedit_display">tango icons for message compose window</span></span>"</a> . In this bug, I have to apply the patch created by a person, Andreas Nilsson, contracted by Thunderbird for a period. Thunderbird people felt that it is very unnecessary to teach Andreas how the hg mercurial works. So tohughtful of them! So, Andreas just creates the regular patches for the file and I have to apply those patches, add images in the hg and submit the exceptable patches.<br /><br />Finally, I have made the patch and submit the patch. Let's see, if I have understood it correctly.Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-19023566049486761592009-04-01T12:04:00.000-07:002009-04-01T16:03:28.149-07:000.7 ReleaseI totally forgot to write a blog about my last two releases. Of course, I did my work but writing a blog totally slipped out of my mind. <br /><br />In my 0.7 release, I spent most of my time on understanding the politics in the open source community. Additionally, I submitted a patch for <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=478463">LIBNOTIFY </a>bug and a patch for "<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">Attachment Reminder Bug .</a>" At the end, I had to leave the LIBNOTIFY bug because they do not want that bug anymore.<br /><br />In the LIBNOTIFY bug, the whole issue was around notification stuff. Whenever the user gets an email, Thunderbird notifies the user through a pop-up window at the bottom-right of the window. Currently, Thunderbird creates its own pop-up window from the XUL element. In the begining, community wanted to change that by passing that even to the LIBNOTIFY, the UNIX library that handles notification (same as Growl notification in MAC OSX). But, callback method is not available in the LIBNOTIFY library. Lack of callback method will not allow the user to click on the notification and open the Thunderbird. Thunderbird want to have this feature. Finally, this issues remained undecided. Hence unfortunately, I had to leave the bug.<br /><br />Additional to LIBNOTIFY bug, I worked on "Attachment Reminder" bug and addressed the issues specified in the bug.<br /><br />At the end of the 0.7 release, I was again looking for a new bug ...Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-29375614782038999522009-02-22T20:32:00.000-08:002009-02-23T07:22:03.339-08:000.6 Release.<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">I guess this assignment is the best assignment of my whole life. I have learned a lot in this assignment. The concepts that I have learned during this release are:</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">> How to and what to edit in Makefile.in to include a module in the build?</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">> How many coding paths did Thunderbird use to notify a new message? How to edit those paths?</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">> SSH Tunneling.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">> VNC Server/Viwer.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">> Internal data transfer in Linux in CDOT Machines.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;"> and much more ....</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><o:p><span class="Apple-style-span" style="font-size: medium;"> </span></o:p></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">In the beginning, I was settled to work on </span><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=459096"><span style="color:blue;"><span class="Apple-style-span" style="font-size: medium;">https://bugzilla.mozilla.org/show_bug.cgi?id=459096</span></span></a><span class="Apple-style-span" style="font-size: medium;">, which is a session restore for Thunderbird. After 2-3 days, David gave me an opportunity to a more important and lively bug which uses LIBNOTIFY in Unix/Linux machines to show notifications.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><o:p><span class="Apple-style-span" style="font-size: medium;"> </span></o:p></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;"> My assignment was going pretty smooth and easy as David was mentoring me. Suddenly, INDIA, the CDOT System on which all my work was, got disconnected from the internet. So, I was unable to test my work remotely. Also, I was unable to receive any new mail notification because I lost the internet. I was totally clueless on what to do.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><o:p><span class="Apple-style-span" style="font-size: medium;"> </span></o:p></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">While I was there, John told me that I can copy the data internally. He helped me to create my account on AUSTRALIA, another CDOT Machine, and transfer all my data. He also taught me what SSH Tunnelling and VNC are. Although he helped me a lot, it took me 2 days to figure out how to use SSH Tunnelling and VNC Viewer. Chris also helped me with some issues.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><o:p><span class="Apple-style-span" style="font-size: medium;"> </span></o:p></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">Finally, I managed to achieve what I was supposed to.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span class="Apple-style-span" style="font-size: medium;"><br /></span></p><p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span class="Apple-style-span" style="font-size: medium;">Here is the patch for the release ... </span><span class="Apple-style-span" style=" "><a href="http://www.geocities.com/chinmay_patel@ymail.com/patch_06_INDIA.txt"><span class="Apple-style-span" style="font-size: medium;">http://www.geocities.com/chinmay_patel@ymail.com/patch_06_INDIA.txt</span></a></span></p><p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">Achievements:</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">1. Get rid of all the #ifndef 's so that there is only one path remaining to show the new mail notification.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">2. Add the mozgnome module as it is added in the browser/.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><o:p><span class="Apple-style-span" style="font-size: medium;"> </span></o:p></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><o:p><span class="Apple-style-span" style="font-size: medium;"> </span></o:p></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">Notes:</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">1. If you have any questions about SSH Tunnelling this page might help you </span><a href="http://zenit.senecac.on.ca/wiki/index.php/Tunnel_VNC_through_SSH"><span style="color:blue;"><span class="Apple-style-span" style="font-size: medium;">http://zenit.senecac.on.ca/wiki/index.php/Tunnel_VNC_through_SSH</span></span></a><span class="Apple-style-span" style="font-size: medium;">.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-family:"Georgia","serif";mso-fareast-Times New Roman";mso-fareast-language:EN-CAfont-family:";color:black;"><span class="Apple-style-span" style="font-size: medium;">2. Also, </span><a href="http://blog.chris.tylers.info/index.php?/archives/177-Using-the-CDOT-Systems.html"><span style="color:blue;"><span class="Apple-style-span" style="font-size: medium;">http://blog.chris.tylers.info/index.php?/archives/177-Using-the-CDOT-Systems.html</span></span></a><span class="Apple-style-span" style="font-size: medium;"> page is useful for Seneca CDOT System users.</span><span class="Apple-style-span" style="font-size: medium;"><o:p></o:p></span></span></p> <p class="MsoNormal"><o:p><span class="Apple-style-span" style="font-size: medium;"> </span></o:p></p>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-2320961974005953312009-02-04T04:25:00.000-08:002009-02-04T04:40:48.187-08:000.5 Release<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">Bug Name: Help prevent forgetting inclusion of attachments</a><div><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">Bug Id: 244455</a> </div><div><br /></div><div>A new patch is uploaded on the bases of comments made by Magnus Melin in the comment#23 in the bug. I have tried my best to address all those issues. Let's see what comments I am going to get for this patch. If you need more information about the patch, refer to the <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">bug</a>.</div><div><br /></div><div>Now, I am looking forward to take a new bug. The new bug is <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=459096">"Thunderbird Session Restore Bug" (459096). </a></div><div><br /></div><div>Hopefully, I will get into "Thunderbird Session Restore" bug and will resolve the the bug in the better way than the "attachment Reminder" bug.</div><div><br /></div><div><br /></div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-75167619944376172302009-02-01T21:50:00.000-08:002009-02-01T22:54:00.026-08:000.5 Beta ReleaseAlthough "0.5 Beta Release" title may look somewhat awkward, it is perfectly fine becuase this is just an inforaml release for testing my patch. So, I would like to focus on required tests for this patch.<div><br /></div><div>Let me get into the details very quickly. I need some volunteer for testing my patch. Those who are willling to test my patch, they can download the patch from <a href="http://www.geocities.com/chinmay_patel@ymail.com/attachmentreminderPatcho5Beta.txt">here</a>. The testers should look for the comments made by Mr. Magnus Melin in the <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455#c33">comment</a>. Plus, they should look for the errors in the Interface. Mainly, I would like to check for these:</div><div><br /></div><div><ol><li>White Spaces: As an editor I have used Notepad++ which shows all the spaces, tabs and new line characters seperately. I have tried my best to eliminate all the tabs and unintended white spaces. Let me know, if I am having any remaing unintended white spaces.<br /></li><li>Look for the user interface: Is this human interface OK or not? There is a user guideline for how to use this feature in my <a href="http://cdpatel1.blogspot.com/2009/01/attachment-reminder-04.html">blog</a>.</li></ol><div>One more interesting reason to test my patch is to get the contribution marks (for DPS909 and OSD600 students). This testing will give you hands on practice on applying a patch and test a patch. Hence, it is a good opportunity to DPS909 and OSD600 students. </div><div><br /></div><div>If the testers have any problems while checking these issues, they can email me on chinu.ptl@gmail.com. I am also available on IRC, "Chinmay" as a nick, on #seneca.</div><div><br /></div><div>At last, I would like to introduce my new idea. I have made a <a href="http://zenit.senecac.on.ca/wiki/index.php/User:Cdpatel1#Suggestion_BOX">suggestion Box</a> in my profile page. If anybody has any suggestions for me they are allowed to edit my suggestion box. I will look at the suggestions and try to apply it. </div><div><br /></div><div>Thank you very much for all your support.</div></div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-80584776693603672382009-01-26T18:37:00.000-08:002009-01-27T08:42:02.900-08:00Status Report<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-size:12.0pt;font-family:"Georgia","serif";mso-fareast-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";color:black; mso-fareast-language:EN-CA">I am having different opinions about my project, what to do and what not to do...</span></p> <p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height: normal"><span style="font-size:12.0pt;font-family:"Georgia","serif";mso-fareast-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";color:black; mso-fareast-language:EN-CA">I am almost done with my <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455"><span style="color:blue">Attachment Reminder Bug</span></a>. Only work I need to do is to polish the code and reply to comments made by the reviewer. It should not be that much work. However, addressing those comments, reply to those comments and get those reviewed take a lot of time. In the presentation David asked me to fix 4 items,<o:p></o:p></span></p> <ol start="1" type="1"> <li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;line-height:normal;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt"><span style="font-size:12.0pt;font-family:"Georgia","serif";mso-fareast-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";mso-fareast-language: EN-CA">Change "Advance" button label to "Advanced" button label.<o:p></o:p></span></li> <li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;line-height:normal;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt"><span style="font-size:12.0pt;font-family:"Georgia","serif";mso-fareast-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";mso-fareast-language: EN-CA">Consult labels "Oh, I did" and "No, Send Now" with Bryan W. Clark and correct them if needed.<o:p></o:p></span></li> <li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;line-height:normal;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt"><span style="font-size:12.0pt;font-family:"Georgia","serif";mso-fareast-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";mso-fareast-language: EN-CA">David also suggested me to open Attachment Window (a window from which you directly attach an attachment), when the user chooses the “Oh, I did” option. But, David wanted to discuss this issue with Bryan W. Clark.<o:p></o:p></span></li> <li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;line-height:normal;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt"><span style="font-size:12.0pt;font-family:"Georgia","serif";mso-fareast-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";mso-fareast-language: EN-CA">Last but the most important thing David wants me to discuss with Bryan is to what to do when the user closes the window by clicking “X” without choosing any of the options. Should I take it as positive or negative? <o:p></o:p></span></li> </ol> <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"><span style="font-size:12.0pt;font-family:"Georgia","serif"; mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:"Times New Roman"; color:black;mso-fareast-language:EN-CA">Let me discuss these issues with Bryan Clark and I will fix those tiny little things</span><span style="font-size: 12.0pt;font-family:Wingdings;mso-ascii-font-family:Georgia;mso-fareast-font-family: "Times New Roman";mso-hansi-font-family:Georgia;mso-bidi-font-family:"Times New Roman"; color:black;mso-fareast-language:EN-CA;mso-char-type:symbol;mso-symbol-font-family: Wingdings"><span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings">J</span></span><span style="font-size:12.0pt;font-family:"Georgia","serif";mso-fareast-font-family: "Times New Roman";mso-bidi-font-family:"Times New Roman";color:black; mso-fareast-language:EN-CA"> . <br /> <o:p></o:p></span></p> <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"><span style="font-size:12.0pt;font-family:"Georgia","serif"; mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:"Times New Roman"; color:black;mso-fareast-language:EN-CA">Now, the major confusion in my mind is that should I stay with this bug and fix all the items as required or take another bug and start working on it. My probable bug would be <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=459096">Thunderbird Session Restore bug</a>. I have read the bug and understood it and planning to work on it. However, I think my next release could be the combination of those two bugs. Let’s see what David is thinking.<o:p></o:p></span></p> <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"><span style="font-size:12.0pt;font-family:"Georgia","serif"; mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:"Times New Roman"; color:black;mso-fareast-language:EN-CA">Thank you very much for all the support. If you have any suggestion for me, feel free to make comments or send me an email at chinu.ptl@gmail.com<o:p></o:p></span></p> <p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; line-height:normal"><span style="font-size:12.0pt;font-family:"Georgia","serif"; mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:"Times New Roman"; color:black;mso-fareast-language:EN-CA">(Note: If you want to try my patch go to the <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">bug</a>. If you need further information read my <a href="http://cdpatel1.blogspot.com/2009/01/attachment-reminder-04.html">previous post</a>.)<o:p></o:p></span></p>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-22098724603461712212009-01-22T15:44:00.000-08:002009-01-22T22:04:09.839-08:00Attachment Reminder 0.4<div style="text-align: center;"><br /></div>Hi Guys,<div><br /></div><div>I am about to finish my feature, the Attachment Reminder. In this patch, I have moved the keyword chooser box to the 'advanced' button. Also, a checkbox is added if the user wants to turn-off/turn-on the feature.</div><div><br /></div><div>The major problem I encountered during this patch is to add new files to the build. Here, I have created 3 new files attachmentoptions.xul, attachmentoptions.js and attachmentoptions.dtd. For adding these files in the build, I had to edit the jar.mn files.</div><div><br /></div><div>Now, I am going explain the feature in detail with screen shots.</div><div><br /></div><div>1. How to use ??</div><div><br /></div><div><span class="Apple-style-span" style="color: rgb(85, 26, 139); text-decoration: underline;"><span class="Apple-style-span" style="color: rgb(0, 0, 0); "><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgENbCX76iwKN-NyY50laUKSQNx3NMUrjUpx-mc5Wf1t4OUN9UDdSzG3jQOufqJYD19y8QLFf8lkozdc5YX7Bjn8Y_m_2MS8Jrk03GcDaxXY8Rma7l48VrGiRGSumWq-FGcnyCoANoFUeGc/s400/image1.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5294348499569342722" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 271px; " /></span></span></div><div>--->>> Inside your email body, include one of the attachment keywords. (as an example 'attach'). Once you are done, click on the 'send' button. If everything works fine, a messege window pops up. It will ask you to continue or go back to the message and attach the attachments.</div><div><br /></div><div>2. How to handle this feature?</div><div><br /></div><div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzRZWuDQ9W95c17Z6OX8NMDD0txIQid-ijy-i0hXVg_c8WP-crfLCrW57sOQlezcvrz7X1JvmcItaANt11r4-7I4nJBHF8iGywjy5_IadQ0q5wpu9xsOrXfehxCK1tT6KaEo-In9rLgz6u/s1600-h/image2.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzRZWuDQ9W95c17Z6OX8NMDD0txIQid-ijy-i0hXVg_c8WP-crfLCrW57sOQlezcvrz7X1JvmcItaANt11r4-7I4nJBHF8iGywjy5_IadQ0q5wpu9xsOrXfehxCK1tT6KaEo-In9rLgz6u/s400/image2.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5294352962923918690" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 291px; " /></a></div><div><br /></div><div>--->>> You can uncheck the checkbox and turn off the feature. Hence, if the feature is annoying for the user, the user can trun it off. And if he founds it useful, he can add it anytime. </div><div><br /></div><div>3. Keyword Chooser</div><div><br /></div><div><br /></div><div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgp4C1EHzmuVnQvD8qVHGRXd_D6pb0J65mxtoljbJSQ6cGrZold0L3GWBoyMRQ0jqunVsor2x3QwmfzNxb_OLkyb61ZIWNwYG8fwnDGY2r5_z1USg6-YZX2nffwyhwt-6Jo2oQ0z6NsOls/s1600-h/image3.jpg"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgp4C1EHzmuVnQvD8qVHGRXd_D6pb0J65mxtoljbJSQ6cGrZold0L3GWBoyMRQ0jqunVsor2x3QwmfzNxb_OLkyb61ZIWNwYG8fwnDGY2r5_z1USg6-YZX2nffwyhwt-6Jo2oQ0z6NsOls/s400/image3.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5294358116505339170" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 289px; " /></a></div><div><br /></div><div>--->>> To open the keyword chooser, click on the 'advanced' button. In this keyword chooser, a user can insert new keywords, edit exising keywords and delete unnecesary keywords.</div><div><br /></div><div><br /></div><div>To download the patch go the <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">bug</a> .</div><div><br /></div><div><br /></div><div>If you have any problems, comments or suggestions, feel free to email me on chinu.ptl@gmail.com</div><div><br /></div><div>Thank you very much ...</div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com1tag:blogger.com,1999:blog-8019143326303554842.post-59075355896147009352008-12-03T08:59:00.000-08:002008-12-03T10:49:06.436-08:000.3 ReleaseI am so glad that I could make my 0.3 release on time. For my success I would like to thank all the contributors who helped me throught the project.<div><br /></div><div>Just as a quick reminder, my project was to add a functionality which reminds user to attach attachments in Thunderbird. To read more about it look up this <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">Bug</a>. </div><div><br /></div><div>Till 0.2 release I have added the functionality to check in the body of the email. This check will remind user to attach attachments based on some keywordds. In that feature I had a few default keywords. </div><div><br /></div><div>For 0.3 release, I needed to add a functionality which allows a user to Insert, Edit and Delete those keywords. And I am glad to announce that My code is working fine for "US English" Thunderbird. For more information about the project go to <a href="http://zenit.senecac.on.ca/wiki/index.php/User:Attachment_Reminder">http://zenit.senecac.on.ca/wiki/index.php/User:Attachment_Reminder</a> .</div><div><br /></div><div>Finally, I would like to thanks all my supporters. And hopefully, I will keep supporting open source community.</div><div><br /></div><div>---Chinmay Patel</div><div><br /></div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-26338771036072842962008-12-01T21:10:00.001-08:002008-12-01T21:29:01.185-08:00Few failures cannot disturb me anymoreYa, that's true. Currently, I am not in a possition to release my 0.3. Howver, I will release my 0.3 by the end of the week. <div><br /></div><div>I was planning to finish my 0.3 on last Thursday and I almost got it. Unfortunately, I just came to know the difference between Mozilla default preference and Mozilla user preference. Let me explain you in detail ...</div><div><br /></div><div>I am working on <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">Attachment Reminder Bug</a> . In this bug, I want to add a feature so that a user can add keywords that Thunderbird will look for in the body of the mail. I am totally done with interface desing and function calls. Means, I am able to capture the events initiated by clicking Buttons. In addition, I am also able to poppulate the listbox dynamically. The only thing I am having trouble with is modifying preference string. I have tried getDefaultBranch(), prefLock() and more different combinations. But, none of them worked. </div><div><br /></div><div>Now, I have two options. First is to start javascripts from scratch, which works most of the time. The other option is Tony. Tony is doing the same kind of saving, retriving and modifying preference string. He has offered me his code and I am going to look at the code today and will try to impliment if it is doing the same thing.</div><div><br /></div><div>Let me try different things and come back to you shortly with working 0.3. If you have any suggestions, I would love to hear from you.</div><div><br /></div><div>-- Chinmay Patel</div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-43283901379354613812008-11-15T19:15:00.000-08:002008-11-15T19:22:06.712-08:00Attachment Reminder 0.22<div>Download It Here: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455#c24">https://bugzilla.mozilla.org/show_bug.cgi?id=244455#c24</a><br /></div><div><br /></div><div>Here is my 0.22 release. Yes, it is not my 0.2 release but 0.22 release because my 0.2 release was up a week ago. And before I blog about it, I got comments on it. (Ha Ha ... So hot Bug !!! )Comments asked me to use Mozilla preference system to store keywords. In my 0.2 release, I was using Database system to store my keywords. Plus, comments asked me to remove tabs and add spaces as Mozilla standard. Now, I am going to list "Things Done", "Things Learned", "Problems and their Suggestions" and "Things To Be added" . </div><div><br /></div><div>Things Done: </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> Created a preference in mozilla preference System that allows me to store a CSV string which stores Attachment Keywords.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> Parse those keyword into an Array </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> Search for that keyword in Email Body.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> If it founds keyword, it will ask user to confirm Email sending witout attachments.</div><div><br /></div><div>Things Learned:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> As I did my 0.2 with databases, I learned how I can use mozilla databases and play with it.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> I love regular expression, but hadn't used it for Javascript in my whole life. However, I used it to check if the keyword exist in the email body or not .So, now I know how to use regular expression in Javascript.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> Mozilla preference System.</div><div><br /></div><div>Problems and their Suggestions:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> My first problem wat TABS and SPACES. Mozilla does not excepts Tabs in their code for indention. So, to solve that problem what I would suggest is to use Emacs as Editor. It's available for all the platforms. For Windows, here is a link how to doenload and install GNU Emacs in Windows http://www.cs.iupui.edu/~n241/faqs/faq0.html. </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> Database is not a big deal. They have excellent documentation for their databases. SqlLite's website also provides enough documentation. It only requires basic Database knowledge.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> Mozilla Preference System: Let me tell you honestly, it is damn simple. However, if you screw up somewhere, it's the worst errors you can have. It took me more than 12 hrs, of straight work, to figure it out. At the end Siddharth (Sid0) figured out that it was wrong Chrome URL. I would like to thank him in Public. Thank you very much Sid0.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> For regular expression, I would suggest to use proper flag everytime. It makes life so much easier.</div><div><br /></div><div>Things To Be added</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> User can disable the feature.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> User can add and Delete Keywords to be checked.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> ClarkW has really good Idea to remind user to attach attachment while he is writing Emails. He suggests to add a user-friendly panel at the bottom of the wondow.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> Localization of the feature so that it works in each and every language that Thunderbird supports.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>> Give me good ideas that I can add in this feature.</div><div><br /></div><div>Thank you very much to the community for its support. I will try my best to give this support back to the community. </div><div><br /></div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-43868007476986346392008-11-07T11:08:00.000-08:002008-11-07T11:50:11.623-08:00Extension LabThis lab was pretty straight forward for. When David explained the lab it was looking so hard to me as I thought that I needed to code everything. But when I red the lab I come to know that I don't have to code everything. All I needed is to create files needed and put those files into the right place. <div>My extension for the lab is up on my zenit <a href="http://zenit.senecac.on.ca/wiki/index.php/User:Cdpatel1">page</a>.</div><div><br /></div>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-14351952611745938902008-11-05T06:51:00.000-08:002008-11-05T08:24:03.320-08:00Attachment Reminder Bug in ThunderbirdDo you usually forget to attach the assignments in emails? If the answer is yes, you don't have to worry about that problem any more. Because I am working on the bug <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=244455">244455</a>. This bug reminds the user to attach the file when the user clicks the "send" button.<br /><br />Currently, I have find the function in which ,probably, I am going to add the javascript code.The function is <a href="http://mxr.mozilla.org/thunderbird/source/mail/components/compose/content/MsgComposeCommands.js#1622">GenericSendMessage</a>. This function validates all the fields *required* to be validated in the composeMessage Window. So, I think this function is the best place to validate the body of the email and look for some keywords such as "attach", "PFA" and so on. If the body contains such words, Thunderbird will check if there is an attachment. If not, then Thunderbird will remind the user to attach an attachment.<br /><br />What I am further looking for is the user can add keywords in the list of keyword that Thunderbird will search in body of the email.<br /><br />In progress of the release I had found an extension which does the same thing. But David found that I am not allowed to look at it's code as it is licensed under GPL3. If I would be allowed to take a look at the code, it would be easier to complete the task.<br /><br />Plus, I need your help to list all the keywords. Please add your keyword and your name in contributors here. http://zenit.senecac.on.ca/wiki/index.php/User:Attachment_Reminder#List_OF_Keywords<br /><br /><br />Thank You<br /><br /><br /><br /><span style="text-decoration: underline;"></span>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com2tag:blogger.com,1999:blog-8019143326303554842.post-49444129781727789172008-10-31T20:07:00.000-07:002008-10-31T21:00:59.646-07:00Modifying Firefox -- LabNow, that is real coding !!!<br /><br />In the beginning, It generated so many obstacles. First one was permissions: I use my laptop as second user so that I can stop spamming and unwanted installation by some websites without my permission. It was giving me "bad file number error" which I solved by running cmd prompt as administrator.<br /><br />Second obstacle was to dive into massive code sea of Mozilla. It took me an hour to find the proper place for the code and to understand that code.<br /><br />Logically I only need to find the Index of the current Tab. Then i need to insert a tab after that tab using tabContainer's insertBefore function. I thought these things would have worked. However, I red Aron's blog and came to know that I have to set the position variable to the currentTab+1.<br /><br />This lab gave me a pretty good idea to work with real tree becasue I have only work with extensions. This will help me for my next project which is "Attachment Reminder."Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-1321465478183438622008-10-23T23:58:00.000-07:002008-10-24T00:05:32.487-07:00So excited by watching my extension first in Search ResultI know this might be very common for many people. But it is so uncommon for me. When I search "rename attachment" in addons.mozilla.org as a Thunderbird extension, my extension was the top of all the search. If you want to give it a try go on <a href="https://addons.mozilla.org/en-US/thunderbird/search?q=rename+attachment&cat=all">https://addons.mozilla.org/en-US/thunderbird/search?q=rename+attachment&cat=all </a>.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfuDEdiwTKSL-yrPf62P-gQrZaCe1lAsr_888ZQQgevMbZtuLpNyAG1uoSO65FL38693jg2iOV7jy4OasoKlnUPRWDnTkMGHxoJKc_eTAYFPGBFkysCkPDeHzDREEYLj9Jfi5eYIpdPZvx/s1600-h/firstOnSearch.jpg"><img style="cursor: pointer; width: 476px; height: 284px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfuDEdiwTKSL-yrPf62P-gQrZaCe1lAsr_888ZQQgevMbZtuLpNyAG1uoSO65FL38693jg2iOV7jy4OasoKlnUPRWDnTkMGHxoJKc_eTAYFPGBFkysCkPDeHzDREEYLj9Jfi5eYIpdPZvx/s400/firstOnSearch.jpg" alt="" id="BLOGGER_PHOTO_ID_5260612813894279234" border="0" /></a>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-23696824028509519942008-10-15T19:49:00.000-07:002008-10-15T19:56:11.094-07:00Rename Attachment 0.1 ReleaseFinally, I am done. My first release is working and ready to use. Special thanks to David who pushed me a lot to finish this and gave me an opportunity to prove myself. I hope I did good ...<br />Sometimes, especially while sending resumes, a user may need to rename the attachment files. My extension will provide solution to those users by allowing them to rename the attachments while composing emails.<br />Download: <a href="https://addons.mozilla.org/en-US/thunderbird/addon/9271">https://addons.mozilla.org/en-US/thunderbird/addon/9271</a> (Note: only registered user of addons.mozilla.org can download it)<br />How to:<br />I have posted a blog about HOW TO Install and use this extension. <a href="http://cdpatel1.blogspot.com/2008/10/how-to-install-and-use-rename.html">http://cdpatel1.blogspot.com/2008/10/how-to-install-and-use-rename.html</a>.<br />Zenit Homepage: <a href="http://zenit.senecac.on.ca/wiki/index.php/User:Cdpatel1">http://zenit.senecac.on.ca/wiki/index.php/User:Cdpatel1</a><br />Project Homepage: <a href="http://zenit.senecac.on.ca/wiki/index.php/User:Rename_Attachment#Project_Details">http://zenit.senecac.on.ca/wiki/index.php/User:Rename_Attachment#Project_Details</a><br /><br />I am eagerly waiting for feedbacks for my first extension.Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-85627723974738797342008-10-15T18:59:00.000-07:002008-10-15T19:47:03.747-07:00How to Install and Use: Rename Attachment 0.1<span style="font-size:130%;"><span style="font-weight: bold;">Download:</span></span><br />https://addons.mozilla.org/en-US/thunderbird/addon/9271 (Note: Only registered uesr of addons.mozilla.org can download it.)<br /><br /><span style="font-weight: bold;font-size:130%;" >Install</span>:<br />Go to tools --> Add-ons.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-RTV34o4964X4u5LieHu8SLCJQQ_dYoT-swHDby6ieW1VOnIgWhENPYcX5WH3_1wEhbRHCaqwuHSFENZcQKQK2DCP3dTDFYA_qr98OF6pQ8-fNKW_ZKbwpM4XrLkHoCgTD8b5cKa6neA_/s1600-h/step1.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 435px; height: 293px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-RTV34o4964X4u5LieHu8SLCJQQ_dYoT-swHDby6ieW1VOnIgWhENPYcX5WH3_1wEhbRHCaqwuHSFENZcQKQK2DCP3dTDFYA_qr98OF6pQ8-fNKW_ZKbwpM4XrLkHoCgTD8b5cKa6neA_/s320/step1.jpg" alt="" id="BLOGGER_PHOTO_ID_5257574863760409250" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://picasaweb.google.com/chinu.ptl/Steps?authkey=9apahN4083k"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px;" src="http://picasaweb.google.com/chinu.ptl/Steps?authkey=9apahN4083k" alt="" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />Click on install higligted in red to install new add on.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnaIcg4ngY7UIE7Xc9WMq6sBNx4retjjU1dDJUkK_PbXfDca3U8vFChvoMHJB1Zv78LkekHkkrIupCr-9QQQ_JDbz9deyUj2TCmqA8KB9V8qA1yyEmXtCg0ImlanbXPVcQ1UHYcdv8R3AS/s1600-h/step2.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnaIcg4ngY7UIE7Xc9WMq6sBNx4retjjU1dDJUkK_PbXfDca3U8vFChvoMHJB1Zv78LkekHkkrIupCr-9QQQ_JDbz9deyUj2TCmqA8KB9V8qA1yyEmXtCg0ImlanbXPVcQ1UHYcdv8R3AS/s320/step2.jpg" alt="" id="BLOGGER_PHOTO_ID_5257575464445427362" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />A new explorer will popup. Path to the extension that you just downloaded. Select it.<br />After that wait for few seconds to get INSTALL button enabled. Click on the install button highlighted in red and restart Firefox.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPu-Rtn3sVacW9KVRbGrnWQ0eocHxk-CYnRzHrygaCCjGT1pdnUvvxgUh8-joW2b0zhptTRh9sWvX73gJZWAy5gbe-KVaOpV3LmR5joiVpBuc0WSFYth7wrO2bUgslkXfaXUOySIcv35yZ/s1600-h/step3.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPu-Rtn3sVacW9KVRbGrnWQ0eocHxk-CYnRzHrygaCCjGT1pdnUvvxgUh8-joW2b0zhptTRh9sWvX73gJZWAy5gbe-KVaOpV3LmR5joiVpBuc0WSFYth7wrO2bUgslkXfaXUOySIcv35yZ/s320/step3.jpg" alt="" id="BLOGGER_PHOTO_ID_5257575818978613394" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="font-size:130%;"> <span style="font-weight: bold;">Use It</span></span>:<br />Start composing the message and Attach a file to it.<br />Select the file that you wanted to rename and go to Tools-->Rename Attachment.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbyrJPQRdTGFrMSbHVXs2uKxfn4jxKUybfljKqeRHOhnzkS0_bI1PU6xAWldLSfCFL7huGfM6v0Vbj24fitkuXRId-98nFDNuAxVZ5XdDxG1uXxfYLVoWVz8mJ5erJBluYhodavnQbk67v/s1600-h/step4.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbyrJPQRdTGFrMSbHVXs2uKxfn4jxKUybfljKqeRHOhnzkS0_bI1PU6xAWldLSfCFL7huGfM6v0Vbj24fitkuXRId-98nFDNuAxVZ5XdDxG1uXxfYLVoWVz8mJ5erJBluYhodavnQbk67v/s320/step4.jpg" alt="" id="BLOGGER_PHOTO_ID_5257576897910387986" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />When you click on the "Rename Attachment" option a new window will be prompted. Enter the new name for the file in the textbox. click on OK and your file has been renamed.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0atVVx8PjP3Tk52wgCkvnyf5MLOiw0KhE4l88reb1ggLdZqKJyIAfSx6Ir-jQSaLTVjDsYGVcop3EhoUJ4pgW4jCRPe-pKy8rTOzQTxe_JQNVTN2C1v4rqNKxY9Mstwtdl2PLUHLf1R3L/s1600-h/step5.jpg"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0atVVx8PjP3Tk52wgCkvnyf5MLOiw0KhE4l88reb1ggLdZqKJyIAfSx6Ir-jQSaLTVjDsYGVcop3EhoUJ4pgW4jCRPe-pKy8rTOzQTxe_JQNVTN2C1v4rqNKxY9Mstwtdl2PLUHLf1R3L/s320/step5.jpg" alt="" id="BLOGGER_PHOTO_ID_5257577328616940722" border="0" /></a><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />I hope this is helpful to you. If you have any question or concern or feedback about extension email me on chinu.ptl@gmail.comChinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com2tag:blogger.com,1999:blog-8019143326303554842.post-43688700265469640732008-10-10T23:04:00.001-07:002008-10-10T23:51:17.326-07:00Renaming the AttachementThis is the first time I am blogging about my project. In fact, I don't have a particular project to work with. But Humph gave me an opportunity to work on "reanming the attachment file" in Thunderbird in compose window. It means that people will be able to change their attachment's name without changing the name of the original file on the OS. Humph is insisting me to create an extension in place of working in the tree itself. He prefers me to make an Extansion because he wanted me to know how to create an Extansion.<br /><br />I have some ideas to approach this problem .I would like to share these ideas with the open source community. If somebody has better ideas, DO let me know.<br /><br />This idea is just a theoretical idea. I don't know how to do it, or whether is it going to work or not, but just trying to think logically. It doesn't have to do anything with mozilla code. I am just thinkig out loud ....<br /><br />First of all, I have to add an option of "rename a file" in some XUL file. To be very honest, I have to start from scratch because I haven't researched about it. So , I don't know what is the name of the file. Probably it will be somewhere around http://mxr.mozilla.org/thunderbird/source/mail/components/compose/content/messengercompose.xul#697 .<br /><br />Secondly, I need to ask the user, what name he is willing to give to the file. Probaly I can use simple javascript function and take the name from the user.<br /><br />Then I have 2 ideas to go with.<br /><ol><li>Somehow I need to copy the file on the OS with the new file name, And pass it's location instead of the original file</li><li>Or I can just play around with the variable and finish the task.(Not sure how to do that).<br />I have found <a href="http://mxr.mozilla.org/thunderbird/source/mail/components/compose/content/MsgComposeCommands.js#2708">a function</a> in the mozilla tree that looks like doing the job. I have to figure it out how to use those functions.<br /></li></ol><br />Let's see how I solve this. And how much time does it take. If you have any suggestions or criticism feel free to comment on me. I need some feedback, good or bad, about my approach to the problem to keep my Energy flow going on .....Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-18184646472260938932008-10-10T19:02:00.000-07:002008-10-10T21:25:05.352-07:00Wow.. never thought it is only 2 lines of code ...I thought that it would be so much difficult to solve a bug. When I started the lab, I was so afraid of mozilla code. I couldn't think of where to start from. After a bit searching and browsing I found some related code.<br /><br />I red the function and understood something. But now, the real problem was in front of me. How can I search for a string in a string. I wished if I had Visual Studio's intellisense. I missed it to much. I don't know somehow I managed to find Find function to do my work. It was like ... I got a magic wond. I just used it and my patch was working.<br /><br />Another problem I was facing was to check my patch on Linux. Here CDOT lab machines became so handy. We can log into the machines remotely and work on it as we are working on our local computer. Further information is avalable on http://zenit.senecac.on.ca/wiki/index.php/CDOT_Development_Systems .Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-28999122059415978732008-10-10T17:39:00.000-07:002008-10-10T19:01:10.131-07:00Autoconf2.13 needed to build using mercurialI think this course is totally based on person's Energy and Enthusiasm. If you don't have those, don't dare to even think about it. Even I was feeling so much frustrated due to some failures during my Thunderbird builds and debugging the lab. But, I had a chat with Humph -- it is more impacting than David -- and he pushed me a lot. He provided me with Enthusiasm required for the course. I heartily thanks him for his approach towards me.<br /><br />Let me share my experience of building Thunderbird on our CDOT Lab computer. Though I had a working build of Thunderbird on Ireland machine, it was CVS build and I want a mercurial Build. So, as usual I went to <a href="http://developer.mozilla.org/en/Comm-central_source_code_%28Mercurial%29">documentation page to build Thunderbird using mercurial</a>. I followed the steps blindly and downloaded the source code by command hg clone http://hg.mozilla.org/comm-central/ src. And I created the mozconfig file as required. When I tried to build it, I saw and error. It was teeling me that I needed Autoconf2.13. I checked the version of Autoconfig file by command " autoconf --version ". I found out that Ireland machine didn't have Autoconfig2.13. Instead, It had 2.16. I tried to install it but I couldn't made it through. At the end I asked it on irc and Chris Tylor installed it for me. Thanx Chris. By the way, keep in mind that if you need to build Thunderbird, using Mercurial, on CDOT machines you need to have autoconf2.13<br /><pre class="eval"><br /><br /><br /></pre>Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0tag:blogger.com,1999:blog-8019143326303554842.post-51155909528933810582008-10-04T19:17:00.001-07:002008-10-04T19:27:03.193-07:00Lab 5 and My current Status ....Hi Guys,<br /><br />At this point of the course, I am somewhat confused. I don`t have proper project to work with. The major reason is I have chosen to work with Thunderbird and is a shortage of projects on TB. But, Dave created a project for me. In which I will allow a user to rename the attachment in the compose window. I think it will be good to start with.<br /><br />So, anybody need help with their project, they can ask me to help. Moreover, I have selected my 3 bugs that I am going to look after for semester. Not sure, If I will able to contribute or not but I`ll try my best. The bugs are:<br /><ol><li>https://bugzilla.mozilla.org/show_bug.cgi?id=232500</li><li>https://bugzilla.mozilla.org/show_bug.cgi?id=448971</li><li>https://bugzilla.mozilla.org/show_bug.cgi?id=349547</li></ol>Let me start working on the project and FINISH it.Chinmayhttp://www.blogger.com/profile/09867157010076328387noreply@blogger.com0