Jul 20 19:40:03 <--SESSION STARTED--> Jul 20 19:40:08 Roll Call Jul 20 19:40:30 Ria Das Jul 20 19:40:33 amrita mukherjee Jul 20 19:40:51 kishan goyal Jul 20 19:41:19 * Debashree (n=Debashre@117.201.96.217) has joined #dgplug Jul 20 19:41:25 arpita kapoor Jul 20 19:41:45 Sunny Sharma Jul 20 19:41:52 debashree banerjee Jul 20 19:42:20 ok, moving ahead Jul 20 19:42:47 Answer for the last day's problem Jul 20 19:42:59 kushal, let me paste Jul 20 19:43:09 people who could not solve it, please paste upto what ever you did Jul 20 19:43:28 aritra bose Jul 20 19:44:37 * Debashree_ (n=Debashre@117.201.97.34) has joined #dgplug Jul 20 19:44:48 links please Jul 20 19:44:49 kushal, http://rafb.net/p/kViANW81.html Jul 20 19:45:14 kushal, i corrected the small mistake just after you leaved Jul 20 19:45:31 *left Jul 20 19:45:45 * mether (n=sundaram@nat/redhat-in/x-b31369098a8860a7) has joined #dgplug Jul 20 19:46:00 ria, let me check the code Jul 20 19:46:04 others ? Jul 20 19:46:07 kushal, ya sure Jul 20 19:46:13 kushal, its working Jul 20 19:46:38 ria, almost Jul 20 19:46:46 ria, try with TCS.NS Jul 20 19:46:48 :p Jul 20 19:46:51 ok Jul 20 19:47:13 kushal, working Jul 20 19:47:17 with tcs Jul 20 19:47:18 :) Jul 20 19:47:24 ria, nope Jul 20 19:47:29 ria, check the webpage Jul 20 19:47:36 ria, the last trade value Jul 20 19:47:49 ria, and what your code is showing Jul 20 19:47:49 ya i think the total number is not given Jul 20 19:47:53 ria, yes Jul 20 19:48:01 the decimal Jul 20 19:48:10 ria, that means you need a better way to fetch the data Jul 20 19:48:20 kushal, i can print untill < is encountered Jul 20 19:48:29 i think that will work Jul 20 19:48:30 ria, that you decide :p Jul 20 19:48:35 ya Jul 20 19:48:36 ok Jul 20 19:48:48 kushal, but that way it will work i think Jul 20 19:48:50 amrita, arpita Debashree_ kishanGoyal sunny_slls bose_aritra ? Jul 20 19:49:05 ria, don't think so, try and see :) Jul 20 19:49:28 amrita, arpita Debashree_ kishanGoyal sunny_slls bose_aritra are you people here ? Jul 20 19:49:32 kushal, i showed you that day the part which i completed Jul 20 19:49:39 kushal, the decimal point does not make much difference, though not exact :) Jul 20 19:49:44 amrita, ok Jul 20 19:49:45 kushal, ok will try Jul 20 19:49:54 kushal: i missed last class...im trying now.. Jul 20 19:50:05 kushal, after that i got dc and couldn't understand the rest Jul 20 19:50:06 kushal, i can't understand the last part Jul 20 19:50:08 kushal, i am not very clear with all this am trying Jul 20 19:50:50 Debashree, tell me which part ? Jul 20 19:51:06 kushal, ! Jul 20 19:51:11 amrita, yes Jul 20 19:51:14 kushal, last two lines Jul 20 19:51:18 kushal, how the calculation is being done. Jul 20 19:51:25 arpita, which last two lines ? Jul 20 19:51:30 kushal, you told us to show the last trade value Jul 20 19:51:30 Debashree, calculation ? Jul 20 19:51:34 amrita, yes Jul 20 19:51:47 kushal, after link.read() Jul 20 19:51:57 kushal, means how 52 is coming? Jul 20 19:52:14 kushal, how to fetch the actal value? Jul 20 19:52:16 Debashree, that is something ria figured out, Jul 20 19:52:29 amrita, that is the problem you should solve :p Jul 20 19:52:35 kushal, yes how did she do it? Jul 20 19:52:43 Debashree, you can find a better way Jul 20 19:52:43 kushal, can't get last three lines of ria's program Jul 20 19:53:00 ria, can you explain all how you did that Jul 20 19:53:03 kushal, last two i mean Jul 20 19:53:19 ria, please explain Jul 20 19:53:25 http://rafb.net/p/kViANW81.html Jul 20 19:53:45 arpita, did you understand what will be the output if we print data? Jul 20 19:53:50 Debashree, ^^^ Jul 20 19:54:27 arpita, Debashree ? Jul 20 19:54:32 ria, it will only give the latest values? Jul 20 19:54:32 ria, yes it prints all details Jul 20 19:54:48 data gives the page source Jul 20 19:55:11 the CSS and HTML all this of the page Jul 20 19:55:17 you go to the site Jul 20 19:55:33 and enter a company name and get the site Jul 20 19:55:41 wait Jul 20 19:55:58 i did WIT Jul 20 19:56:20 now go to view Jul 20 19:56:32 kushal, can you give the site regarding modules? Jul 20 19:56:41 and click on view page source Jul 20 19:56:48 amrita, docs.python.org Jul 20 19:56:53 http://finance.yahoo.com/q?s=WIT Jul 20 19:57:11 go here and do view->view page source Jul 20 19:57:21 Debashree, arpita done? Jul 20 19:57:28 yes Jul 20 19:57:36 ok Jul 20 19:57:41 what is it exactly showing in view page source??? Jul 20 19:57:59 thats the CSS, i mean how the page is designed Jul 20 19:58:08 o.k Jul 20 19:58:19 see if you print data in your program you will get this Jul 20 19:58:23 the page source Jul 20 19:58:25 ok? Jul 20 19:58:30 arpita, every web page you see is written in a language called HTML, so what you see is the HTML source Jul 20 19:58:47 ria,o.k Jul 20 19:58:56 now you come down Jul 20 19:59:06 you will find last trade Jul 20 19:59:22 use '/' Jul 20 19:59:36 and then type last trade to directly go there Jul 20 19:59:40 arpita, ok? Jul 20 19:59:58 i mean press '/' Jul 20 20:00:11 did you get last trade? Jul 20 20:00:14 arpita, ? Jul 20 20:00:30 yes...got it Jul 20 20:00:33 ria, ! Jul 20 20:00:43 amrita, ask Jul 20 20:01:06 arpita, should i proceed? Jul 20 20:01:06 ria, on going to the link we are able to see the last trade value Jul 20 20:01:12 ria,! Jul 20 20:01:13 ya Jul 20 20:01:23 ria,i can't see the value Jul 20 20:01:39 arpita, no need to see the value Jul 20 20:01:43 sunny_slls, wait Jul 20 20:01:43 so view->view page source means? Jul 20 20:01:58 ! Jul 20 20:01:58 * Debashree has quit (Read error: 110 (Connection timed out)) Jul 20 20:02:03 above you will view Jul 20 20:02:06 amrita, means to show the HTML source code, like you see the .c file to show C source code Jul 20 20:02:06 ria, i got the place where last trade is written and there details of page desgn portion of last trade is given Jul 20 20:02:07 sunny_slls, yes Jul 20 20:02:20 arpita, ya ok fine Jul 20 20:02:40 ok now arpita see the program Jul 20 20:02:44 i did not understand the last trade Jul 20 20:02:55 sunny_slls, that is what I asked to fetch from the page Jul 20 20:02:56 you were absent last class Jul 20 20:03:13 kushal, please explain him the question first Jul 20 20:03:13 * makghosh (n=joy@117.201.97.71) has joined #dgplug Jul 20 20:03:15 yes Jul 20 20:03:19 sunny_slls, try to present in the sessions or else you will not understand many things Jul 20 20:03:28 arpita, in the program Jul 20 20:03:56 10th line will find 'last trade' Jul 20 20:04:02 which you did manually now Jul 20 20:04:15 as data means the page source Jul 20 20:04:16 kushal, ok Jul 20 20:04:24 arpita, up to this ok? Jul 20 20:04:27 clear? Jul 20 20:04:38 ria, just by writing data='last trade' we have value of last trade in data?? Jul 20 20:04:49 no no Jul 20 20:04:58 i am not talking about the value Jul 20 20:04:58 but please explain the question? Jul 20 20:05:15 x = data.find('Last Trade:') Jul 20 20:05:26 when you do this Jul 20 20:05:36 the string last trade is found Jul 20 20:05:44 from the page source Jul 20 20:06:00 ria, o.k only the string last trade is found on doing so not the value? Jul 20 20:06:08 sunny_slls, from finance.yahoo.com you have to fetch the last trade value for any given company Jul 20 20:06:16 ya arpita Jul 20 20:06:22 kushal, ! Jul 20 20:06:27 so x is the position of last trade Jul 20 20:06:36 a numerical value Jul 20 20:06:51 sunny_slls, yes Jul 20 20:06:53 you can do help(str) Jul 20 20:07:09 to see what find does Jul 20 20:07:14 arpita, ok? Jul 20 20:07:26 now see Jul 20 20:07:30 kushal,how we can find the last trade value? Jul 20 20:07:35 ria, yes Jul 20 20:07:38 sunny_slls, that is the problem Jul 20 20:07:45 go the page source Jul 20 20:07:58 sunny_slls, you are supposed to solve it, now ria is telling how she did that Jul 20 20:08:13 now you see Jul 20 20:08:23 * bose_aritra has quit (Read error: 110 (Connection timed out)) Jul 20 20:08:30 after last trade string you will find the value Jul 20 20:08:35 in page source Jul 20 20:08:53 in between them there are lot of other things Jul 20 20:09:00 i mean the HTML code Jul 20 20:09:03 kushal, not that module page Jul 20 20:09:16 arpita, did you get that? Jul 20 20:09:36 amrita, there you can find it, open your eyes :) Jul 20 20:09:49 got it... Jul 20 20:10:04 ria,last trade value then some html code then it is written 10.81 Jul 20 20:10:05 arpita, did you get 10.81? Jul 20 20:10:11 ya Jul 20 20:10:17 ria,yes got it Jul 20 20:10:25 10.81..yes... Jul 20 20:10:26 i have counted the number how far it is Jul 20 20:10:31 ya kishanGoyal :) Jul 20 20:10:42 a rough count though Jul 20 20:11:03 i mistakenly counted wrong Jul 20 20:11:07 kushal,! Jul 20 20:11:16 anyways the number is 52 Jul 20 20:11:31 sunny_slls, yes Jul 20 20:11:37 not understood Jul 20 20:11:42 i mean 52 letters in between Jul 20 20:11:46 arpita, ok? Jul 20 20:12:14 ria,o.k Jul 20 20:12:16 sunny_slls, that is the problem you are supposed to solve Jul 20 20:12:29 now see the program Jul 20 20:12:49 12th line Jul 20 20:13:04 xx = x + 52 Jul 20 20:13:10 * Prakhar (n=prakhar@122.163.71.100) has joined #dgplug Jul 20 20:13:13 ria,no. of characters in between is coming to 62 Jul 20 20:13:17 x was the position of last trade Jul 20 20:13:18 but i can't understand anything.. Jul 20 20:13:44 sunny_slls, good, so be in session or else next sessions you will not understand anything Jul 20 20:13:46 arpita, i did less counting i printed and i made changes Jul 20 20:13:58 arpita, check that later Jul 20 20:14:11 when you print you will understand Jul 20 20:14:19 ria,o.k Jul 20 20:14:30 are blank spaces counted?? Jul 20 20:14:37 ya Jul 20 20:14:41 arpita, yes Jul 20 20:14:51 * makghosh_ (n=joy@117.201.97.74) has joined #dgplug Jul 20 20:14:53 o.k Jul 20 20:15:03 now http://rafb.net/p/PiYp1o33.html is how I solved it Jul 20 20:15:16 first found the place for "Last Trade:" Jul 20 20:15:23 * Debashree_ has quit (Read error: 110 (Connection timed out)) Jul 20 20:15:24 so x was the last trade position Jul 20 20:15:31 kushal, just wait a minute Jul 20 20:15:35 ria,cannot understand last line of the program Jul 20 20:15:46 then took from next 53rd char to 72th one (72 is a random number) Jul 20 20:15:48 ria, ok Jul 20 20:16:13 * amrita_ (n=amrita@117.201.97.188) has joined #dgplug Jul 20 20:16:23 arpita, see xx is the position of 10.81 Jul 20 20:16:23 * Kkhushi (n=khushbu@59.180.138.187) has joined #dgplug Jul 20 20:16:30 i mean it is for 1 Jul 20 20:16:42 position of 1 Jul 20 20:16:49 kushal: me and Kkhushi did it. she'll be here in a while Jul 20 20:16:55 arpita, understood? Jul 20 20:17:02 Prakhar, ok Jul 20 20:17:12 khushbu mohta Jul 20 20:17:12 ok, Kkhushi is here Jul 20 20:17:15 ria,xx is position of 10.81 Jul 20 20:17:27 the first character Jul 20 20:17:30 but what do you mean by it is for 1?? Jul 20 20:17:40 o.k o.k Jul 20 20:17:41 1 in 10 Jul 20 20:17:42 got it Jul 20 20:17:56 it is the position of 1 of 10.81?? Jul 20 20:17:58 so you need to print upto 1 Jul 20 20:18:05 of 81 Jul 20 20:18:06 ria,yes Jul 20 20:18:13 so total 5 characters Jul 20 20:18:28 arpita, so its from xx to xx + 5 Jul 20 20:18:31 arpita, ok? Jul 20 20:18:42 that's it Jul 20 20:18:43 ria,yes understood now thanks a lot Jul 20 20:18:49 kushal, http://wiki.dgplug.org/index.php/User:Khushbu/Python_assignment Jul 20 20:18:49 arpita, nope Jul 20 20:18:50 :) Jul 20 20:19:12 kushal, your link? Jul 20 20:19:32 is the wiki down ? Jul 20 20:19:43 kushal: wiki is down Jul 20 20:20:01 eh Jul 20 20:20:09 kushal, your link is not working Jul 20 20:20:17 kushal, can you give it again Jul 20 20:20:18 ? Jul 20 20:20:19 kushal: its taking too long to respond Jul 20 20:20:31 yes Jul 20 20:20:40 * munichlinux has quit ("Ex-Chat") Jul 20 20:20:42 http://rafb.net/p/PiYp1o33.html Jul 20 20:21:50 kushal, i said you the same thing Jul 20 20:21:50 * amrita has quit (Nick collision from services.) Jul 20 20:21:55 * amrita_ is now known as amrita Jul 20 20:22:05 Kushal, i did exactly the same :) http://rafb.net/p/vXMmGP75.html Jul 20 20:22:09 kushal, you also did until it finds ria, yes Jul 20 20:22:25 kushal, you said me not in that way Jul 20 20:22:38 kushal,understood a bit Jul 20 20:22:45 only i can change one line to get the desired Jul 20 20:23:15 Kkhushi, your output needs to be fixed , a bit more fine tune :p Jul 20 20:23:27 ria, I said your choice Jul 20 20:23:40 kushal, you also said me no Jul 20 20:23:46 'no' Jul 20 20:24:22 ria, kushal, i can print untill < is encountered Jul 20 20:24:22 i think that will work Jul 20 20:24:22 ria, that you decide :p Jul 20 20:24:23 ria, don't think so, try and see :) Jul 20 20:24:40 kushal, you said it later what i pasted Jul 20 20:24:43 ria, don't think so, try and see :) Jul 20 20:24:48 ria, I asked you not to think, try and see Jul 20 20:24:49 * Kkhushi_ (n=khushbu@59.180.145.102) has joined #dgplug Jul 20 20:25:04 o i interpreted wrong Jul 20 20:25:05 anyway moving ahead Jul 20 20:25:06 :) Jul 20 20:25:30 Problem you should solve later at home : Home Task Jul 20 20:25:32 sure Jul 20 20:25:56 Write a program to print Roman equivalent of a decimal number Jul 20 20:26:42 To solve now Jul 20 20:26:52 * Kkhushi__ (n=khushbu@59.180.144.152) has joined #dgplug Jul 20 20:27:04 Write a program which will split a given file into small parts Jul 20 20:27:23 and then another code which will join these parts into the original file Jul 20 20:29:02 * makghosh has quit (Read error: 110 (Connection timed out)) Jul 20 20:29:38 kushal, http://rafb.net/p/Yj1oYm21.html Jul 20 20:29:53 kushal, i corrected it and working now better Jul 20 20:30:07 ria, ok Jul 20 20:30:56 every one understood the problem ? Jul 20 20:31:27 kushal, can you give the module link? Jul 20 20:31:32 yup Jul 20 20:31:43 ria, docs.python.org Jul 20 20:31:48 * Prakhar is away for 10 minutes Jul 20 20:32:05 all python documentation can be found at docs.python.org Jul 20 20:32:15 kushal, what do you mean by small parts? Jul 20 20:32:35 ria, split a file into smaller size files Jul 20 20:33:03 kushal, an example? Jul 20 20:33:12 ria, google Jul 20 20:33:27 for file splitter Jul 20 20:33:47 kushal, actually i did not understand the question Jul 20 20:34:07 ria, google for file splitter Jul 20 20:34:24 i find for windows Jul 20 20:35:02 ria if we have a essay in a file we have to split the file in smaller files containing one para or something like that Jul 20 20:35:07 yes Jul 20 20:35:23 Kkhushi_, very strange example :p Jul 20 20:35:26 kishanGoyal, Jul 20 20:35:28 afk Jul 20 20:35:31 Kkhushi, ok Jul 20 20:35:34 kushal, wait Jul 20 20:36:00 kushal, the splitted parts will be in files? Jul 20 20:36:23 there will be separate files for them? Jul 20 20:36:45 Kkhushi, will there be separate files for them? Jul 20 20:36:54 i mean the smaller parts? Jul 20 20:36:56 ria, yes Jul 20 20:37:04 ok thanks Kkhushi Jul 20 20:37:53 kushal, on what basis we'll split the files?? Jul 20 20:38:18 number of characters?? i guess Jul 20 20:38:24 Kkhushi, you decide Jul 20 20:38:31 Kkhushi, it may be a binary file Jul 20 20:39:36 http://docs.python.org/lib/bltin-file-objects.html this is what you need to know Jul 20 20:41:19 * Prakhar has to urgently leave Jul 20 20:41:29 kushal: sorry, urgent work Jul 20 20:41:35 * Kkhushi has quit (Nick collision from services.) Jul 20 20:41:43 * Kkhushi__ is now known as Kkhushi Jul 20 20:42:18 kushal: i'll read the log later. Jul 20 20:42:27 btw, I am going to take SVN class , so everyone mail me their desired password (at least 6 characters ) Jul 20 20:43:01 kushal: waiting for your permission :) Jul 20 20:43:17 Prakhar, no need , just go :) Jul 20 20:43:29 kushal: ok, thanks Jul 20 20:43:31 kushal: bye Jul 20 20:43:42 * Prakhar (n=prakhar@122.163.71.100) has left #dgplug ("Konversation terminated!") Jul 20 20:44:59 * Kkhushi_ has quit (Read error: 110 (Connection timed out)) Jul 20 20:45:46 * Kkhushi_ (n=khushbu@59.180.136.201) has joined #dgplug Jul 20 20:46:10 kushal, http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/224800 Jul 20 20:46:16 * Kkhushi has quit (Nick collision from services.) Jul 20 20:46:21 kushal, see this is the program :) Jul 20 20:46:24 * Kkhushi_ is now known as Kkhushi Jul 20 20:46:29 i am trying to understand it Jul 20 20:46:36 ria, I asked you all to solve it Jul 20 20:46:47 kushal, i know Jul 20 20:47:00 kushal, was just trying to get an idea Jul 20 20:47:08 ok Jul 20 20:47:15 i just read http://docs.python.org/lib/bltin-file-objects.html now Jul 20 20:47:15 no problem on that Jul 20 20:47:21 which you earlier Jul 20 20:47:32 *you gave Jul 20 20:47:36 ria, no need to tell everything you are doing Jul 20 20:47:48 kushal, sorry Jul 20 20:49:49 People don't forget to mail me details I asked Jul 20 20:50:07 kushal, a six letter password and what else? Jul 20 20:50:55 arpita, username if you want Jul 20 20:51:18 arpita, I will put your names as user names Jul 20 20:51:20 kushal, where will this be used? Jul 20 20:51:24 arpita, svn Jul 20 20:51:45 kushal, what is that?? Jul 20 20:51:50 arpita, google Jul 20 20:51:59 <--SESSION STOPPED-->