2013-01-02T05:20:09 *** arvind_khadri has joined #amclug 2013-01-02T07:21:11 *** pradi has joined #amclug 2013-01-02T08:01:17 *** ecthiender has joined #amclug 2013-01-02T08:09:02 arvind_khadri, ping 2013-01-02T08:27:07 ecthiender, pong 2013-01-02T09:26:01 *** Glitchd has joined #amclug 2013-01-02T09:26:17 does anyone in here use teamspeak? 2013-01-02T09:28:09 *** Glitchd_ has joined #amclug 2013-01-02T09:28:09 *** Glitchd has quit IRC (Read error: Connection reset by peer) 2013-01-02T09:28:23 *** arvind_khadri has quit IRC (Ping timeout: 256 seconds) 2013-01-02T09:32:23 *** Glitchd_ has left #amclug 2013-01-02T10:02:01 *** ecthiender has quit IRC (Quit: gotta go) 2013-01-02T10:02:35 *** ecthiender has joined #amclug 2013-01-02T10:39:38 *** arvind_khadri has joined #amclug 2013-01-02T10:47:04 ecthiender, ping 2013-01-02T10:48:14 ecthiender, I have fixed the json and committed it. Ran the json against a json lint before committing :) Am really embarrassed on what I did. 2013-01-02T10:53:11 arvind_khadri, hmm. you should be :P. 2013-01-02T10:53:51 but the important thing is to learn from these things. 2013-01-02T10:54:53 like never push code until you know it works! it might become bottleneck for other developers. like here I couldn't load the app because JSON.parse was throwing error and the execution stops there. 2013-01-02T10:56:31 arvind_khadri, there is one more interesting problem now. creative a recursive function to create navigational links. you up for it? :P 2013-01-02T10:56:42 s/creative/creating/ 2013-01-02T10:56:43 What ecthiender meant to say was: arvind_khadri, there is one more interesting problem now. creating a recursive function to create navigational links. you up for it? :P 2013-01-02T10:58:06 ecthiender, hmmm, I have tried to do that earlier in python. It is good to structured data for that. Like in a xml 2013-01-02T10:59:32 arvind_khadri, so do you want to do it? 2013-01-02T10:59:47 ecthiender, ya :) 2013-01-02T10:59:54 arvind_khadri, there is thing to be done. and another is to investigate why nothing is getting rendered. 2013-01-02T11:00:04 arvind_khadri, once we are done with these. I think we are good to go. 2013-01-02T11:00:27 without styles that it is. just the content dynamically rendered from the JSON. 2013-01-02T11:00:55 ecthiender, I see, you look up why it is not getting rendered properly. I will do the function thing. 2013-01-02T11:00:59 arvind_khadri, have a look at the createNavigation function in framework.js 2013-01-02T11:01:13 * arvind_khadri is looking. 2013-01-02T11:01:56 ecthiender, ok, looked at it 2013-01-02T11:02:06 arvind_khadri, this is the function you have to modify to recursively descend to all child elements(pages here). 2013-01-02T11:02:31 but there is a catch too. 2013-01-02T11:03:05 you have to group them together (the parent and its children) in the navigation menu. 2013-01-02T11:03:12 arvind_khadri, got it? 2013-01-02T11:03:25 arvind_khadri, was I clear? I dont think so. 2013-01-02T11:03:45 ecthiender, aah I see 2013-01-02T11:03:54 group as in a visual element? 2013-01-02T11:04:21 arvind_khadri, yes. we are creating a navigation bar. 2013-01-02T11:04:41 ecthiender, ok 2013-01-02T11:04:49 arvind_khadri, you understand right? 2013-01-02T11:05:05 I got the catch, but what is the problem there? I mean what is it that has to be solved? 2013-01-02T11:05:14 arvind_khadri, all of it :) 2013-01-02T11:05:38 arvind_khadri, right now, the function just looks at the children of the home page and creates the nav bar. 2013-01-02T11:06:16 ecthiender, the routes for children are created? 2013-01-02T11:07:08 arvind_khadri, what do you mean? 2013-01-02T11:07:12 arvind_khadri, the JSON is there. 2013-01-02T11:07:20 arvind_khadri, you have the data. the logic is not there. 2013-01-02T11:07:41 ecthiender, ok, will do that. 2013-01-02T11:09:54 arvind_khadri, basically you have to write a function that will take defined relation in the JSON (of pages) and create a navigation interface for it :P 2013-01-02T11:09:55 !! 2013-01-02T11:10:11 arvind_khadri, we are using bootstrap for the UI ;) 2013-01-02T11:10:18 ecthiender, ya, got the picture :) Nice. 2013-01-02T11:10:45 Hey yesterday was nice man. A local person came and played flute, was just amazing flute. 2013-01-02T11:12:47 arvind_khadri, nice :) 2013-01-02T11:16:43 ecthiender, hey look up M.sanitize, if it is being passed an empty string, it fails out. I added a condition for checking if the str is not empty, this makes the browser non-responsive 2013-01-02T11:16:45 arvind_khadri, do you think its a lot work? or it should be fairly easy? 2013-01-02T11:17:29 ecthiender, it is quite a amount of work. 2013-01-02T11:17:30 arvind_khadri, M.sanitize returns an empty string upon passing an empty string 2013-01-02T11:17:39 arvind_khadri, i just checked 2013-01-02T11:19:24 ecthiender, I get a TypeError 2013-01-02T11:19:40 arvind_khadri, did you pull code? 2013-01-02T11:20:03 ecthiender, No. 2013-01-02T11:20:13 arvind_khadri, how did you commit then? :o 2013-01-02T11:20:23 arvind_khadri, I had pushed some code. anyway pull now. 2013-01-02T11:20:28 ecthiender, I didnt pull after committing man 2013-01-02T11:21:03 arvind_khadri, oh thats okay. 2013-01-02T11:21:27 ecthiender, hmm, so why am I getting a TypeError. 2013-01-02T11:21:43 arvind_khadri, can you show me the code? thats causing TypeError. I checked in all browsers. I get an empty string, right away. 2013-01-02T11:22:12 arvind_khadri, also look at the code. you will know why it will return empty string, when you pass any *falsy* values 2013-01-02T11:22:55 arvind_khadri, you mean when you pass nothing? like no arguments? 2013-01-02T11:22:58 ecthiender, the json has lot of empty "name" which is used in Page model 2013-01-02T11:23:36 arvind_khadri, empty names? shouldn't be! cause they are the page names! their ids are also needed. 2013-01-02T11:24:28 ecthiender, ya, sorry, confused it with another tag. 2013-01-02T11:24:40 arvind_khadri, so whats the problem? 2013-01-02T11:26:26 arvind_khadri, what I was telling you was, you can write the recursive functions, which identify nodes as being terminal or not. and leave it at that if you dont want to code the UI part of it. 2013-01-02T11:27:10 ecthiender, Ya I got that. 2013-01-02T11:27:31 arvind_khadri, so then its not so much work right? 2013-01-02T11:28:00 ecthiender, hmmm ya. 2013-01-02T11:28:44 ecthiender, I think createNavigation is making M.sanitize fail 2013-01-02T11:30:31 arvind_khadri, hmm 2013-01-02T11:30:53 ecthiender, failing for me both on google-chrome and firefox 2013-01-02T11:38:04 arvind_khadri, add these lines on the top: if(typeof str !== "string") { 2013-01-02T11:38:05 str = ''; 2013-01-02T11:38:05 } 2013-01-02T11:38:48 arvind_khadri, but sanitize has deeper problems. I am investigating 2013-01-02T11:46:13 arvind_khadri, can you pull code? I just fixed sanitize. 2013-01-02T11:46:29 *** pradi1 has joined #amclug 2013-01-02T11:46:29 *** pradi has quit IRC (Read error: Connection reset by peer) 2013-01-02T12:36:44 *** ecthiender has quit IRC (Read error: Connection reset by peer) 2013-01-02T12:39:04 *** ecthiender has joined #amclug 2013-01-02T12:48:53 *** arvind_khadri has quit IRC (Quit: Leaving) 2013-01-02T13:16:27 *** arvind_khadri has joined #amclug 2013-01-02T13:16:52 ecthiender, the js engine just hangs. 2013-01-02T13:19:26 ecthiender, the home page renders for you? 2013-01-02T13:19:39 arvind_khadri, no. 2013-01-02T13:19:48 aah ok 2013-01-02T13:19:50 arvind_khadri, there is nothing to be rendered. no content. 2013-01-02T13:20:01 arvind_khadri, you work at the console :P. 2013-01-02T13:20:35 arvind_khadri, but if you look at the elements in the panel. some of the text are content are getting rendered. they are just hidden. 2013-01-02T13:20:39 ecthiender, ya sure, but the page itself does not load. The js engine just hangs. Lot of mem is free. 2013-01-02T13:20:44 everything is hidden basically. 2013-01-02T13:21:13 arvind_khadri, umm. this has not happened to me. 2013-01-02T13:21:34 ecthiender, I don't even know where to start debugging from 2013-01-02T13:22:10 arvind_khadri, did you pull my changes in santize ? 2013-01-02T13:22:17 ecthiender, yes 2013-01-02T13:23:07 arvind_khadri, pull now. i just pushed some code. clear the cache and relaod page and tell me what happens. 2013-01-02T13:24:16 ecthiender, the same. 2013-01-02T13:24:57 arvind_khadri, what browser? 2013-01-02T13:25:07 arvind_khadri, look at the network panel. 2013-01-02T13:25:34 see if everything is loading. 2013-01-02T13:26:52 arvind_khadri, ?? 2013-01-02T13:27:04 ecthiender, firefox. maraa2.json takes a long time to load 2013-01-02T13:27:22 arvind_khadri, so did it load? 2013-01-02T13:27:51 ecthiender, yes, when it loads it brings down the engine. 2013-01-02T13:28:32 arvind_khadri, you at office right? can you check from some other machine? 2013-01-02T13:28:45 ecthiender, ya ok 2013-01-02T13:29:49 arvind_khadri, for me it works in both browsers. we are not doing anything heavy that it will bring JS engine down or something. 2013-01-02T13:29:56 I think. 2013-01-02T13:30:14 ecthiender, ya I know :) 2013-01-02T13:31:32 arvind_khadri, try this URL too: http://localhost/maraa/new.html#policy-making-and-governing-institutions 2013-01-02T13:31:37 replace localhost! 2013-01-02T13:31:49 that should render a table. 2013-01-02T13:37:08 arvind_khadri, did it work? 2013-01-02T13:50:11 arvind_khadri, hey 2013-01-02T13:52:04 ecthiender, yes, it works fine on other machine 2013-01-02T13:52:14 :( 2013-01-02T13:52:35 arvind_khadri, its okay. I think I have figured out a way to do it. 2013-01-02T13:52:42 without recursion. 2013-01-02T13:52:55 arvind_khadri, so you can stop working on it. :) 2013-01-02T13:53:13 ecthiender, hmmm, but I wanted to do that and also the page itself is not rendering on my machine 2013-01-02T13:53:35 sorry for the inconvenience man. I thought debugging will take more time, so was thinking I need a helping hand. 2013-01-02T13:53:55 arvind_khadri, hmm you can try. first try to debug why it isnt working on your machine. 2013-01-02T13:54:17 arvind_khadri, did you try another browser? 2013-01-02T13:54:42 ecthiender, yes, will try upgrading the browser and see 2013-01-02T13:54:52 arvind_khadri, no a different one? 2013-01-02T13:55:04 ecthiender, yes tried in chrome 2013-01-02T13:55:10 arvind_khadri, same thing? 2013-01-02T13:55:22 ecthiender, yes 2013-01-02T13:58:13 arvind_khadri, thats strange. 2013-01-02T14:02:42 ecthiender, ya man. 2013-01-02T14:03:14 ecthiender, hey when will you leave for Keduli? 2013-01-02T14:04:20 arvind_khadri, before 11 I guess. 2013-01-02T14:04:38 ecthiender, so you also won't be here for the conference :P 2013-01-02T14:04:49 arvind_khadri, yeah I guess. 2013-01-02T14:04:59 ecthiender, hmmm 2013-01-02T14:34:16 ecthiender, updated chrome too. No luck 2013-01-02T14:35:35 arvind_khadri, your JS engine hangs. what could be the reason? 2013-01-02T14:43:58 *** pradi1 has quit IRC (Quit: Leaving.) 2013-01-02T15:00:51 *** arvind_khadri has quit IRC (Ping timeout: 255 seconds) 2013-01-02T15:32:48 *** pradi has joined #amclug 2013-01-02T15:34:09 *** pradi has quit IRC (Client Quit) 2013-01-02T15:34:34 *** ecthiender has quit IRC (Quit: gotta go) 2013-01-02T15:35:56 *** pradi has joined #amclug 2013-01-02T15:43:08 *** pradi has quit IRC (Ping timeout: 255 seconds) 2013-01-02T15:47:24 *** pradi has joined #amclug 2013-01-02T16:20:34 *** pradi has quit IRC (Read error: Connection reset by peer) 2013-01-02T16:23:53 *** pradi has joined #amclug 2013-01-02T16:28:00 *** pradi has quit IRC (Client Quit) 2013-01-02T16:30:30 *** pradi has joined #amclug 2013-01-02T17:14:55 *** pradi has left #amclug 2013-01-02T20:37:50 *** ecthiender has joined #amclug 2013-01-02T21:49:58 *** ecthiender has quit IRC (Read error: Connection reset by peer)