2012-08-27T07:48:37 *** pradi has joined #amclug 2012-08-27T07:53:47 *** arvind_khadri has joined #amclug 2012-08-27T08:00:41 *** pradi1 has joined #amclug 2012-08-27T08:00:41 *** pradi has quit IRC (Read error: Connection reset by peer) 2012-08-27T08:43:10 *** pradi1 has quit IRC (Quit: Leaving.) 2012-08-27T08:47:39 *** pradi has joined #amclug 2012-08-27T09:20:13 *** ecthiender has joined #amclug 2012-08-27T09:25:38 arvind_khadri, ping 2012-08-27T09:25:47 ecthiender, pong 2012-08-27T10:07:02 arvind_khadri, wassup? 2012-08-27T10:07:11 !hi 2012-08-27T10:07:11 Welcome to #amclug 2012-08-27T10:07:16 !ping 2012-08-27T10:07:16 Factoid 'ping' not found 2012-08-27T10:07:18 ,[ing 2012-08-27T10:07:19 ecthiender: Error: Missing "]". You may want to quote your arguments with double quotes in order to prevent extra brackets from being evaluated as nested commands. 2012-08-27T10:07:22 ,ping 2012-08-27T10:07:22 pong 2012-08-27T10:10:02 ecthiender, was working on setting up emacs :) 2012-08-27T10:10:04 you? 2012-08-27T10:10:28 arvind_khadri, that build thing 2012-08-27T10:10:34 arvind_khadri, setting up what? 2012-08-27T10:11:30 arvind_khadri, i mean setting up what on emacs? 2012-08-27T10:11:39 ecthiender, python ide 2012-08-27T10:20:34 arvind_khadri, hmm nice :) 2012-08-27T10:46:41 *** pradi has quit IRC (Quit: Leaving.) 2012-08-27T10:54:43 ecthiender, it will be nice after it is working :( 2012-08-27T10:54:58 *** pradi has joined #amclug 2012-08-27T10:55:18 arvind_khadri, so its not working? 2012-08-27T10:55:25 ecthiender, not yet 2012-08-27T11:11:57 arvind_khadri, so what are you trying to exactly? use org mode? and get metadata about modules from ipython? 2012-08-27T11:13:32 ecthiender, no not org mode. IDE like eclipse :) 2012-08-27T11:14:04 org-mode is just for organizing. 2012-08-27T11:14:09 arvind_khadri, what do you mean exactly? like have a explorer tab? 2012-08-27T11:14:18 arvind_khadri, in the project directory 2012-08-27T11:14:19 ? 2012-08-27T11:14:29 arvind_khadri, or more features? 2012-08-27T11:15:14 ecthiender, more features like code completion 2012-08-27T11:16:34 arvind_khadri, okay. so you are trying to setup a plugin? (i dont know what plugins are called in emacs) 2012-08-27T11:17:02 ecthiender, ya it is a plugin :) 2012-08-27T11:17:26 arvind_khadri, hmm 2012-08-27T11:17:55 arvind_khadri, i found this for vim https://github.com/gnpkrish/vim-python-IDE :). Even I have to setup all this. 2012-08-27T11:17:56 Title: gnpkrish/vim-python-IDE · GitHub (at github.com) 2012-08-27T11:18:32 ecthiender, looks good 2012-08-27T11:18:34 :) 2012-08-27T11:19:58 arvind_khadri, you know there's something called pathogen for vim 2012-08-27T11:20:09 ecthiender, what is that? 2012-08-27T11:21:09 arvind_khadri, its like a plugin/snippet/everything else manager for vim :) 2012-08-27T11:21:13 arvind_khadri, https://github.com/tpope/vim-pathogen 2012-08-27T11:21:14 Title: tpope/vim-pathogen · GitHub (at github.com) 2012-08-27T11:22:09 ecthiender, nice :) 2012-08-27T11:22:45 arvind_khadri, yeah. so all these bits of modules can be kept organized it is. I dont use it yet though. 2012-08-27T11:22:56 arvind_khadri, dont want to setup in this machine, I have to do it again 2012-08-27T11:23:02 ecthiender, hmmm :) 2012-08-27T11:24:00 arvind_khadri, do you use real tab characters or spaces for tabs? 2012-08-27T11:24:15 ecthiender, real tab 2012-08-27T11:25:27 arvind_khadri, oh! but it is advised to use spaces right? instead of real tab characters? 2012-08-27T11:25:55 ecthiender, really? I don't know. I am used to using tabs. 2012-08-27T11:26:58 arvind_khadri, oh ok. was looking at python community's guidelines. looks like they also do that. I use two spaces for a tab. so if there is too much nesting in the code, it doesn't look ugly 2012-08-27T11:27:30 arvind_khadri, http://wiki.python.org/moin/Vim. in the indentation section. 2012-08-27T11:28:31 ecthiender, ya, pythonistas use tabs :) 2012-08-27T11:28:34 ecthiender, hmmm 2012-08-27T11:28:51 arvind_khadri, no :) they use spaces :_ 2012-08-27T11:29:09 arvind_khadri, or atleast wiki.python.org suggests to use spaces 2012-08-27T11:29:46 ecthiender, oh 2012-08-27T11:30:40 arvind_khadri, check this out http://stackoverflow.com/questions/119562/tabs-versus-spaces-in-python-programming 2012-08-27T11:30:41 Title: coding style - Tabs versus spaces in Python programming - Stack Overflow (at stackoverflow.com) 2012-08-27T11:31:45 ecthiender, oh fuck I have to re-learn programming now :( 2012-08-27T11:31:51 arvind_khadri, no :) 2012-08-27T11:32:32 arvind_khadri, there's nothing to re-learn :) you just have to change your tabs to spaces. your editor will take care of that :) 2012-08-27T11:33:50 arvind_khadri, so that when people collaborate, the indentation doesn't screw up. and to maintain the editor to editor compatibility 2012-08-27T11:34:05 ecthiender, ya I understand 2012-08-27T11:34:21 arvind_khadri, I hope I didnt make you feel bad or something :P 2012-08-27T11:34:29 ecthiender, no man :) 2012-08-27T11:34:42 feel bad about what? 2012-08-27T11:36:23 arvind_khadri, I dont know. you were like "fuck I have to re-learn programming" :P. so I thought. 2012-08-27T11:36:40 ecthiender, that was just a joke :) 2012-08-27T11:36:49 arvind_khadri, oh okay :D 2012-08-27T11:36:52 arvind_khadri, good then 2012-08-27T11:39:09 arvind_khadri, whats PEP-8? 2012-08-27T11:39:55 ecthiender, pep is the community which gives guidelines about writing code in python. PEP-8 is a specific style guideline 2012-08-27T11:40:22 arvind_khadri, hmm. what does pep expand to? 2012-08-27T11:40:32 ecthiender, and with the IDE I was also trying to setup the style checker, that is PEP-8 then my code would also have indents as spaces :P 2012-08-27T11:41:00 arvind_khadri, hmm. good :) so would have found out eventually. 2012-08-27T11:41:09 arvind_khadri, PEP expands to? 2012-08-27T11:41:33 arvind_khadri, nevermind 2012-08-27T11:41:45 ecthiender, got it :) ?? 2012-08-27T11:41:51 yeah arvind_khadri :) 2012-08-27T12:07:15 *** ajay_ has joined #amclug 2012-08-27T12:12:45 *** ajay_ has quit IRC (Ping timeout: 252 seconds) 2012-08-27T12:27:11 arvind_khadri, I spoke to Aravind on last thursday. he said he'll get back to me if he has any clarification. I had asked him to make a simple hello world app on fb. do i need to follow him up? or should i wait for him to reply? 2012-08-27T12:27:30 ecthiender, wait for him to reply 2012-08-27T12:27:37 okay arvind_khadri 2012-08-27T12:38:24 *** pradi has quit IRC (Quit: Leaving.) 2012-08-27T12:54:32 *** pradi has joined #amclug 2012-08-27T14:04:49 arvind_khadri, wow, I follow the same style as outlined in PEP-8 :O 2012-08-27T14:05:22 ecthiender, but you don't code in python at #cube 2012-08-27T14:05:25 :P 2012-08-27T14:07:04 arvind_khadri, yeah :P. but we follow exactly those guidelines, like from when to indent long function names/param lists, spaces around operators and parens :) I think we follow JS style outlined by crockford. Its the same 2012-08-27T14:07:59 arvind_khadri, the coolest thing is I dont have to adapt a new style ;), which I was little worried about :P. 2012-08-27T14:08:15 ecthiender, hehe :) 2012-08-27T14:10:36 arvind_khadri, so if you see, almost all the different communities follow the same sort of style guidelines, maybe little deviation here and there, so it illustrates that writing clean code across different languages is essentially in the same style 2012-08-27T14:10:56 s/communities/language communities/ 2012-08-27T14:10:57 What ecthiender meant to say was: arvind_khadri, so if you see, almost all the different language communities follow the same sort of style guidelines, maybe little deviation here and there, so it illustrates that writing clean code across different languages is essentially in the same style 2012-08-27T14:11:34 arvind_khadri, event the way to write comments! 2012-08-27T14:11:41 s/event/even/ 2012-08-27T14:11:42 What ecthiender meant to say was: arvind_khadri, even the way to write comments! 2012-08-27T14:12:06 ecthiender, ya 2012-08-27T14:13:33 nice :) I like this 2012-08-27T14:14:20 * ecthiender likes the concept of an essential common coding style guide across all languages 2012-08-27T14:15:59 arvind_khadri, what convention do you follow in variable names and method names? 2012-08-27T14:16:58 ecthiender, as in camel cases or underscores? 2012-08-27T14:17:07 arvind_khadri, yeah, 2012-08-27T14:17:15 ecthiender, underscores 2012-08-27T14:17:21 arvind_khadri, for both/ 2012-08-27T14:17:22 in python 2012-08-27T14:17:22 ? 2012-08-27T14:17:32 and camelCase for JS 2012-08-27T14:17:39 arvind_khadri, for both variable names and method names? 2012-08-27T14:17:57 variables are generally one word 2012-08-27T14:18:41 arvind_khadri, maybe in your case right now. but it usually isn't. 2012-08-27T14:18:53 ecthiender, yes 2012-08-27T14:19:29 we follow underscore separated variable names, and mixedCase method names. both for JS and PHP 2012-08-27T14:19:53 ecthiender, nice 2012-08-27T14:19:57 arvind_khadri, :) 2012-08-27T14:21:20 arvind_khadri, all these actually dont have much significance, apart from consistency. Consistency inside the project or in the community. Consistency in coding style facilitates readability. right? 2012-08-27T14:21:53 ecthiender, yes, it is just for ease of readability 2012-08-27T14:23:15 arvind_khadri, and that helps. when you are editing your peer's code. the moment you see a mixedCase name, say, you know thats a method 2012-08-27T14:23:52 arvind_khadri, anyway are you busy? 2012-08-27T14:24:20 ecthiender, not really just setting up emacs, have been getting it in shape 2012-08-27T14:24:30 arvind_khadri, so its working is it? 2012-08-27T14:24:49 ecthiender, looking up documentation works :) code completion is not there yet 2012-08-27T14:25:09 arvind_khadri, hmm. good good. carry on. 2012-08-27T15:01:44 ecthiender, got it working :) a complete ide now, with pep8, and project folders 2012-08-27T15:03:15 arvind_khadri, naiice :D 2012-08-27T15:03:34 * ecthiender cant wait to setup IDE for vim 2012-08-27T15:03:34 ecthiender, ya :) 2012-08-27T15:34:09 ecthiender, hmmm :) 2012-08-27T15:34:36 ecthiender, the tabs thing is a pain 2012-08-27T15:35:46 arvind_khadri, what tabs? 2012-08-27T15:35:58 ecthiender, indentation 2012-08-27T15:36:09 arvind_khadri, oh! 2012-08-27T15:38:10 arvind_khadri, there is no direct way to do it ? I think there should be. you have to put in your config file or something 2012-08-27T15:38:34 ecthiender, there is, have to find it 2012-08-27T15:42:09 arvind_khadri, maybe you have found this by now. 2012-08-27T15:42:09 http://stackoverflow.com/questions/3165503/emacs-global-configuration-of-tabs 2012-08-27T15:42:10 Title: Emacs global configuration of tabs - Stack Overflow (at stackoverflow.com) 2012-08-27T15:43:45 ecthiender, thanks 2012-08-27T15:45:54 arvind_khadri, this also might help http://www.emacswiki.org/emacs/SmartTabs 2012-08-27T15:45:55 Title: EmacsWiki: Smart Tabs (at www.emacswiki.org) 2012-08-27T15:49:23 arvind_khadri, working? 2012-08-27T15:49:37 ecthiender, trying what you gave 2012-08-27T15:50:12 arvind_khadri, just try (setq-default tab-width 2) and see if it works 2012-08-27T15:51:00 arvind_khadri, essentially that will insert two spaces. rest all in that post is about indenting, i dont think you have to worry about that 2012-08-27T15:51:30 arvind_khadri, emacs will do the indenting for you. you just tell it that you want 'n' spaces instead '\t' 2012-08-27T15:51:41 s/instead/instead of/ 2012-08-27T15:51:42 What ecthiender meant to say was: arvind_khadri, emacs will do the indenting for you. you just tell it that you want 'n' spaces instead of '\t' 2012-08-27T15:53:50 ecthiender, seems to work :) 2012-08-27T15:54:14 arvind_khadri, cool :D 2012-08-27T15:54:39 arvind_khadri, done then eh? full fledged python IDE? 2012-08-27T15:54:42 :) 2012-08-27T15:54:55 arvind_khadri, completion works? 2012-08-27T15:54:59 ecthiender, yes :) 2012-08-27T15:55:45 ecthiender, completion works in all modes :P 2012-08-27T15:55:54 with code-documentation 2012-08-27T15:56:15 arvind_khadri, sleek and sexy as it could be :) 2012-08-27T15:56:18 nice :) 2012-08-27T15:56:29 ecthiender, yes, loving my emacs more now 2012-08-27T15:56:48 arvind_khadri, I only have local identifier completion in my vim now. 2012-08-27T15:57:05 ecthiender, hmmm, set it up soon :) 2012-08-27T15:57:06 arvind_khadri, really want to have a more functional IDE 2012-08-27T15:57:30 arvind_khadri, what are modes in emacs? 2012-08-27T15:57:31 ecthiender, it takes a whole day. 2012-08-27T15:58:01 arvind_khadri, heh :D. but its worth it man. you are going to use the setup for the rest of your life 2012-08-27T15:58:24 and quite extensively :) 2012-08-27T15:58:56 ecthiender, modes are like different setups, every buffer has a major and minor mode 2012-08-27T15:59:18 and every buffer can have only one major mode, but many minor modes 2012-08-27T15:59:38 arvind_khadri, wow! it sounds like music theory :P (major and minor modes), so what do they signify, these modes? 2012-08-27T15:59:53 arvind_khadri, oh different setups? as in? 2012-08-27T16:00:22 arvind_khadri, you can setup different rule for, say, tabs in different modes? 2012-08-27T16:01:27 ecthiender, e.g python-mode signifies that the present buffer is a python code and it will have indentation and code coloring, then there can be a minor mode like yasnippet mode, which will support other things like snippets 2012-08-27T16:01:40 there is also something called global-mode 2012-08-27T16:02:09 arvind_khadri, oh, I see. 2012-08-27T16:09:40 arvind_khadri, you were asking me to use yasnippets and org mode right? 2012-08-27T16:09:48 ecthiender, yes 2012-08-27T16:16:27 arvind_khadri, you have to install ruby for yasnippets? 2012-08-27T16:16:50 ecthiender, No, I dint do it for emacs, you just need the snippets 2012-08-27T16:19:36 arvind_khadri, its not working :( it is trying to load some rb file. even the official page says to install some other plugin . no proper docs. heading home. will try tomorrow 2012-08-27T16:19:45 bye :) 2012-08-27T16:19:46 ecthiender, done :) I was trying to get code browsing. 2012-08-27T16:19:47 bye 2012-08-27T16:19:51 gn :) 2012-08-27T16:19:55 arvind_khadri, nice :) gn :) 2012-08-27T16:20:01 *** ecthiender has quit IRC (Quit: gotta go) 2012-08-27T16:20:41 *** pradi has quit IRC (Quit: Leaving.) 2012-08-27T16:22:21 *** pradi has joined #amclug 2012-08-27T16:26:58 *** pradi has quit IRC (Client Quit) 2012-08-27T16:39:39 *** arvind_khadri has quit IRC (Ping timeout: 244 seconds)