Re: [Ilugc] A Terminal Chat Application
On Fri, Nov 18, 2011 at 8:26 AM, Shakthi Kannan shakthim...@gmail.comwrote: Hi, --- On Wed, Nov 16, 2011 at 7:03 PM, Prasanna Venkadesh prasmai...@gmail.com wrote: | Here is our page that consists of the source code ( | https://github.com/PrasannaVenkadesh/Whiz-Chat/downloads), and i request to | take a look at README.txt features.rdoc file before running for first \-- #1 If you decide to use features, you will want to integrate it with Cucumber [1] #2 You will need to use the copyright header notice as mentioned in the GNU website [2] #3 Avoid using system(). If you decide to use shell commands, you can enclose them within backticks, and return the result to a variable. Can you please show me an example code for this statement alone? It is good to check the status, always! #4 Follow Ruby coding guidelines, strictly. Fix your indentation. We will rearrange the codes soon. #5 Write variables in full. @choice instead of @choic. Will be done. #6 Ruby is also about being concise. You don't require the parenthesis in the if() statement. if @choice == 'y' instead of if(@choic == 'y') The same goes with function invocation: quit instead of quit(). --- | Most of the linux users spends time either in Web-Browser or in Terminal, | and we were thinking how nice it would be if we are able to chat from | terminal itself instead of opening a Web-browser. \-- Did you do some research on finding available chat clients that work from the terminal? If yes, how different are they from your implementation? Emacs has jabber support [3]. irssi has xmpp support [4] to talk to a Jabber network. There is also the option of using BitlBee [5] that can act as a gateway for multiple chat protocols. This allows you to use any console client of your choice. SK [1] Cucumber. http://cukes.info [2] GPL HOWTO. http://www.gnu.org/licenses/gpl-howto.html [3] Emacs Jabber. http://emacs-jabber.sourceforge.net/ [4] irssi-xmpp. http://cybione.org/~irssi-xmpp/ [5] BitlBee. http://www.bitlbee.org/main.php/news.r.html Thanks for spending time to do lot of research on this for us. And we will follow the above mentioned guidelines. To say frankly we did not do any homework or research on already available clients and now after seeing those links we get some more idea. -- Regards, Prasanna Venkadesh PuduvaiLUG (puduvai Linux Users Group): http://puduvailug.wordpress.com/ FOSS Jobs all over India: http://fossjobs.in ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
Hi: --- On Sun, Nov 20, 2011 at 2:24 PM, Prasanna Venkadesh prasmai...@gmail.com wrote: | Can you please show me an example code for this statement alone? \-- @now = `date` puts @now ` is a backtick or a backquote. SK -- Shakthi Kannan http://www.shakthimaan.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
On Sun, Nov 20, 2011 at 8:30 PM, Shakthi Kannan shakthim...@gmail.comwrote: Hi: --- On Sun, Nov 20, 2011 at 2:24 PM, Prasanna Venkadesh prasmai...@gmail.com wrote: | Can you please show me an example code for this statement alone? \-- @now = `date` puts @now Yeah.. thanks for this, it works but may i know why Backticks are preferred over system, inspite it increases lines of code. ` is a backtick or a backquote. -- Regards, Prasanna Venkadesh PuduvaiLUG (puduvai Linux Users Group): http://puduvailug.wordpress.com/ FOSS Jobs all over India: http://fossjobs.in ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
Hi, --- On Mon, Nov 21, 2011 at 12:22 AM, Prasanna Venkadesh prasmai...@gmail.com wrote: | Yeah.. thanks for this, it works but may i know why Backticks are preferred | over system, inspite it increases lines of code. \-- Length or number of lines is not important. With backticks, you can return the results to a variable. system() only returns the exit status. Also read: $ man system SK -- Shakthi Kannan http://www.shakthimaan.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
On Wed, Nov 16, 2011 at 7:03 PM, Prasanna Venkadesh prasmai...@gmail.comwrote: Myself(S. Prasanna Venkadesh http://prasopensource.wordpress.com) and S.Sathianarayanan(http://sathia27.wordpress.com/) has created a terminal application called WHIZ-CHAT - through wh application caich Debian / Ubuntu Linux users can do the following on their Google account from terminal itself: Perhaps this would get one started about the power of screen: http://www.linuxforum.com/content.php/131-Screen-The-Path-For-Beginners -- Regards, Rajagopal ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
Hi, --- On Wed, Nov 16, 2011 at 7:03 PM, Prasanna Venkadesh prasmai...@gmail.com wrote: | Here is our page that consists of the source code ( | https://github.com/PrasannaVenkadesh/Whiz-Chat/downloads), and i request to | take a look at README.txt features.rdoc file before running for first \-- #1 If you decide to use features, you will want to integrate it with Cucumber [1] #2 You will need to use the copyright header notice as mentioned in the GNU website [2] #3 Avoid using system(). If you decide to use shell commands, you can enclose them within backticks, and return the result to a variable. It is good to check the status, always! #4 Follow Ruby coding guidelines, strictly. Fix your indentation. #5 Write variables in full. @choice instead of @choic. #6 Ruby is also about being concise. You don't require the parenthesis in the if() statement. if @choice == 'y' instead of if(@choic == 'y') The same goes with function invocation: quit instead of quit(). --- | Most of the linux users spends time either in Web-Browser or in Terminal, | and we were thinking how nice it would be if we are able to chat from | terminal itself instead of opening a Web-browser. \-- Did you do some research on finding available chat clients that work from the terminal? If yes, how different are they from your implementation? Emacs has jabber support [3]. irssi has xmpp support [4] to talk to a Jabber network. There is also the option of using BitlBee [5] that can act as a gateway for multiple chat protocols. This allows you to use any console client of your choice. SK [1] Cucumber. http://cukes.info [2] GPL HOWTO. http://www.gnu.org/licenses/gpl-howto.html [3] Emacs Jabber. http://emacs-jabber.sourceforge.net/ [4] irssi-xmpp. http://cybione.org/~irssi-xmpp/ [5] BitlBee. http://www.bitlbee.org/main.php/news.r.html -- Shakthi Kannan http://www.shakthimaan.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] A Terminal Chat Application
Dear folks, Myself(S. Prasanna Venkadesh http://prasopensource.wordpress.com) and S.Sathianarayanan(http://sathia27.wordpress.com/) has created a terminal application called WHIZ-CHAT - through wh application caich Debian / Ubuntu Linux users can do the following on their Google account from terminal itself: 1. Login and set Status Message. 2. Check number of Unread Mails. 3. Chat with the contacts in your Gmail Account. 4. Get voice notifications. Here is our page that consists of the source code ( https://github.com/PrasannaVenkadesh/Whiz-Chat/downloads), and i request to take a look at README.txt features.rdoc file before running for first time. Inspiration: Most of the linux users spends time either in Web-Browser or in Terminal, and we were thinking how nice it would be if we are able to chat from terminal itself instead of opening a Web-browser. This saves your processor from consuming more power (since no GUI), Faster than Web-browser, and especially for those who use internet via mobile phone would love it because using internet from mobile and opening Gmail account takes nearly 10 min and our app log in into your chat box in just 10 seconds (Max.). This was our inspiration to develop this and future versions will be still more better. And we love any sort of feedback from you. -- Regards, Prasanna Venkadesh PuduvaiLUG (puduvai Linux Users Group): http://puduvailug.wordpress.com/ FOSS Jobs all over India: http://fossjobs.in ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
Greetings, On Wed, Nov 16, 2011 at 7:03 PM, Prasanna Venkadesh prasmai...@gmail.com wrote: Dear folks, Myself(S. Prasanna Venkadesh http://prasopensource.wordpress.com) and S.Sathianarayanan(http://sathia27.wordpress.com/) has created a terminal application called WHIZ-CHAT - through wh application caich Debian / Ubuntu Linux users can do the following on their Google account from terminal itself: 1. Login and set Status Message. 2. Check number of Unread Mails. 3. Chat with the contacts in your Gmail Account. 4. Get voice notifications. Here is our page that consists of the source code ( https://github.com/PrasannaVenkadesh/Whiz-Chat/downloads), and i request to take a look at README.txt features.rdoc file before running for first time. Inspiration: Most of the linux users spends time either in Web-Browser or in Terminal, and we were thinking how nice it would be if we are able to chat from terminal itself instead of opening a Web-browser. This saves your processor from consuming more power (since no GUI), Faster than Web-browser, and especially for those who use internet via mobile phone would love it because using internet from mobile and opening Gmail account takes nearly 10 min and our app log in into your chat box in just 10 seconds (Max.). This was our inspiration to develop this and future versions will be still more better. And we love any sort of feedback from you. Great Job! Have you looked at talk or screen or write which are already available? Just a thought. I have used these for support across continents using comand line. -- Regards, Rajagopal ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
On Wed, Nov 16, 2011 at 7:03 PM, Prasanna Venkadesh prasmai...@gmail.com wrote: Dear folks, Myself(S. Prasanna Venkadesh http://prasopensource.wordpress.com) and S.Sathianarayanan(http://sathia27.wordpress.com/) has created a terminal application called WHIZ-CHAT - through wh application caich Debian / Ubuntu Linux users can do the following on their Google account from terminal itself: 1. Login and set Status Message. 2. Check number of Unread Mails. 3. Chat with the contacts in your Gmail Account. 4. Get voice notifications. Here is our page that consists of the source code ( https://github.com/PrasannaVenkadesh/Whiz-Chat/downloads), and i request to take a look at README.txt features.rdoc file before running for first time. Inspiration: Most of the linux users spends time either in Web-Browser or in Terminal, and we were thinking how nice it would be if we are able to chat from terminal itself instead of opening a Web-browser. This saves your processor from consuming more power (since no GUI), Faster than Web-browser, and especially for those who use internet via mobile phone would love it because using internet from mobile and opening Gmail account takes nearly 10 min and our app log in into your chat box in just 10 seconds (Max.). This was our inspiration to develop this and future versions will be still more better. And we love any sort of feedback from you. Super. Congrats. First thought: Why don't you put this up on sf.net? Sourceforge will give you lot of exposure and capabilities. Are you using Google's APIs? UNIX even today does not have a neat conferencing tool on the console. We have xchat but that is a boring GUI. Only available choice is irssi or icb. Can you elaborate if you are using nCurses? Also I believe using Google API is neat because these days everyone has a Gmail account. However this should also work with UNIX usernames. That is my idea. Sorry for hijacking the thread. Best of luck and may God bless you with success. -Girish ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
And we love any sort of feedback from you. I like the idea and it is good to see that you have implemented it. Looking at the code, I notice that there several things that needs to be done to bring it to a reasonable quality. - Proper Indentation of code - Try avoiding system() as much as possible - 'reset' will clear the terminal emulator's (xterm) history find alternative. I don't know Ruby so I cannot comment on code any further. Ruby experts in the list might be able to help you better. I did try to do the setup but ruby gloriously crashes with libc's buffer overflow error. $ sudo gem install gmail *** buffer overflow detected ***: /usr/bin/ruby terminated === Backtrace: = /lib/libc.so.6(__fortify_fail+0x4d)[0x5dec5d] $ gem list *** LOCAL GEMS *** colorize (0.5.8) highline (1.5.1) mime (0.1) mime-types (1.17.2) xmpp4r (0.5) xmpp4r-simple (0.8.8) -- 0 ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
On Wed, Nov 16, 2011 at 7:53 PM, Girish Venkatachalam girishvenkatacha...@gmail.com wrote: On Wed, Nov 16, 2011 at 7:03 PM, Prasanna Venkadesh prasmai...@gmail.com wrote: Dear folks, Linux users can do the following on their Google account from terminal itself: 1. Login and set Status Message. 2. Check number of Unread Mails. 3. Chat with the contacts in your Gmail Account. 4. Get voice notifications. Inspiration: Most of the linux users spends time either in Web-Browser or in Terminal, and we were thinking how nice it would be if we are able to chat from terminal itself instead of opening a Web-browser. This saves your processor from consuming more power (since no GUI), Faster than Web-browser, and especially for those who use internet via mobile phone would love it because using internet from mobile and opening Gmail account takes nearly 10 min and our app log in into your chat box in just 10 seconds (Max.). This was our inspiration to develop this and future versions will be still more better. And we love any sort of feedback from you. Super. Congrats. Thanks for your wishes. First thought: Why don't you put this up on sf.net? Yes, i had a thought of putting it and will surely put it in sourceforge, since i started to learn VCS using Git so i initially did all my commits there and got a account in Github and now its time to do it in Sourceforge soon after my semester exams are over :-) Are you using Google's APIs? No, we are not using Google's APIs but Rubygems that access the Google via XMPP Protocol. UNIX even today does not have a neat conferencing tool on the console. We have xchat but that is a boring GUI. yeah, i have tried it, not so experienced with it. Can you elaborate if you are using nCurses? No, initially i got advice to used nCurses but since Ruby already has a gem for colouring called Colorize i just used it. But am not sure using which is efficient and please help us to improve better. Also I believe using Google API is neat because these days everyone has a Gmail account. Thanks for your suggestion and just now looked on the Google API for ruby and found it. Will implement it soon and update it. However this should also work with UNIX usernames. I have to accept here i am not aware of UNIX usernames. You mean internal chat within the same network? That is my idea. Sorry for hijacking the thread. Best of luck and may God bless you with success. Thanks a lot. And am really loving the feedback and the support from you all :-) Linux is popular for its community support and i am proud to belong to this community. -- Regards, Prasanna Venkadesh PuduvaiLUG (puduvai Linux Users Group): http://puduvailug.wordpress.com/ FOSS Jobs all over India: http://fossjobs.in ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
On Wed, Nov 16, 2011 at 9:14 PM, 0 0...@0throot.com wrote: And we love any sort of feedback from you. I like the idea and it is good to see that you have implemented it. Looking at the code, I notice that there several things that needs to be done to bring it to a reasonable quality. Your point is right. We need to make it a quality product. - Proper Indentation of code - Try avoiding system() as much as possible - 'reset' will clear the terminal emulator's (xterm) history find alternative. We have used 'reset' because the reason is the command 'history -c' clears only the history of commands used but not the chats that we exchanged using our app. When the terminal window is scrolled up it shows what all we had in chat, and its violating the privacy, so used reset to erase of everything. I don't know Ruby so I cannot comment on code any further. Ruby experts in the list might be able to help you better. Ya looking for their feedbacks too. I think our code should be packed well (like separating into individual modules). I did try to do the setup but ruby gloriously crashes with libc's buffer overflow error. :-( and finally thanks for your feedback and suggestions. :-) -- Regards, Prasanna Venkadesh PuduvaiLUG (puduvai Linux Users Group): http://puduvailug.wordpress.com/ FOSS Jobs all over India: http://fossjobs.in ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
We have used 'reset' because the reason is the command 'history -c' clears only the history of commands used but not the chats that we exchanged using our app. When the terminal window is scrolled up it shows what all we had in chat, and its violating the privacy, so used reset to erase of everything. Ah ok. reset is the right one to use here. But, what you really need is cup mode. Although, they are not supported in some terminal types. Cup mode is not very well documented so you might find a hard time getting details on them. Here is a short tutorial on that. On Unix Terminals, there is a feature to open an Alternate Screen which is essentially what cup mode is. To try it, you can do the following, $ echo -en \033[?1049h; clear; echo abcd; sleep 5; echo -en \033[?1049l The above commands create an alternate screen, stay on it for 5 seconds and exit to the original screen. The first echo line is to enter cup mode and the last echo line is to exit cup mode. And, To check whether a terminal supports cup mode, you can do the following, $ infocmp vt100 | grep smcup #vt100 doesn't support cup $ infocmp xterm | grep smcup #xterm supports cup sgr0=\E(B\E[m, smacs=\E(0, smam=\E[?7h, smcup=\E[?1049h, -- 0 ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] A Terminal Chat Application
On Wed, Nov 16, 2011 at 7:03 PM, Prasanna Venkadesh prasmai...@gmail.comwrote: Myself(S. Prasanna Venkadesh http://prasopensource.wordpress.com) and S.Sathianarayanan(http://sathia27.wordpress.com/) has created a terminal application called WHIZ-CHAT - through wh application caich Debian / Ubuntu Linux users can do the following on their Google account from terminal itself: Nice. Congrats. Its so nice to see practical apps being developed. Regards, Arun ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc