2012-07-11T07:49:28 *** arvind_khadri has joined #amclug 2012-07-11T08:14:16 *** ecthiender has joined #amclug 2012-07-11T08:16:20 arvind_khadri, ping 2012-07-11T08:16:33 ecthiender, pong 2012-07-11T08:16:57 arvind_khadri, check this out http://gutomaia.net/nodeNES/ 2012-07-11T08:16:58 Title: nodeNES (at gutomaia.net) 2012-07-11T08:17:10 its a NES simulator on node 2012-07-11T08:18:22 ecthiender, I don't see the source. Firefox 2012-07-11T08:18:46 arvind_khadri, you have to type in :P. or you can check the examples from a above tab 2012-07-11T08:19:29 ecthiender, daffaq, they expect people to type assembly code :P 2012-07-11T08:20:24 *** ecthiender_ has joined #amclug 2012-07-11T08:20:37 *** ecthiender has quit IRC (Disconnected by services) 2012-07-11T08:20:40 *** ecthiender_ is now known as ecthiender 2012-07-11T08:20:52 arvind_khadri, you have to type in :P. or you can check the examples from the overhead tab 2012-07-11T08:21:18 ecthiender, daffaq, they expect people to type assembly code :P 2012-07-11T08:21:44 arvind_khadri, yeah :P. check the examples 2012-07-11T08:21:56 ecthiender, saw, nice :) 2012-07-11T08:22:07 NES was assembly I guess. because they used to interact with the hardware directly. 2012-07-11T08:22:28 and the sprites were all hardware sprites in those days 2012-07-11T08:22:53 arvind_khadri, but I dont understand any part of the code. do you? 2012-07-11T08:24:09 ecthiender, a lil. Most of the assembly code will specific to the assembler/machine arch. 2012-07-11T08:24:36 arvind_khadri, hmm 2012-07-11T08:25:12 ecthiender, That made me think of the microprocessor thing we had, if only we had been taught better. 2012-07-11T08:25:53 arvind_khadri, yeah man. I was thinking the exact same thing. if we could have learnt those things. 2012-07-11T08:26:28 arvind_khadri, http://fir.sh/projects/jsnes/. 2012-07-11T08:26:29 Title: JSNES: A JavaScript NES emulator Ben Firshman (at fir.sh) 2012-07-11T08:27:02 ecthiender, Assemblers are very much a part of compilers, and there was nothing related to all that in the microP lab 2012-07-11T08:30:39 arvind_khadri, yeah 2012-07-11T08:35:31 arvind_khadri, what was the course for muP? was it about a particular processor's arch? or was it about assembly language? i think it was specifically about 80806. 2012-07-11T08:35:38 s/80806/8086/ 2012-07-11T08:35:39 What ecthiender meant to say was: arvind_khadri, what was the course for muP? was it about a particular processor's arch? or was it about assembly language? i think it was specifically about 8086. 2012-07-11T08:35:55 ecthiender, yes specific to 86 2012-07-11T08:36:15 arvind_khadri, so it was nothing to do with assemblers right? 2012-07-11T08:36:35 ecthiender, but the lab was. 2012-07-11T08:36:49 MP has everything to do with assemblers 2012-07-11T08:37:00 arvind_khadri, the lab was to right instructions to the 8086 2012-07-11T08:37:13 ecthiender, and after the code :P 2012-07-11T08:37:27 arvind_khadri, hmm ok 2012-07-11T08:37:27 you don't sit and stare at the code right :D 2012-07-11T08:39:00 yeah you write code but we were supposed to write code specific to 8086. thats what I'm trying to tell. the course wasnt about generic assemblers. but specifically about the 8086 instruction set 2012-07-11T08:39:26 even the lab 2012-07-11T08:39:37 arvind_khadri, 2012-07-11T08:40:57 ecthiender, yes I got that. What am saying is that you had to run that code using a executable from the assembler. So we could have been taught about the assemblers a bit. 2012-07-11T08:41:28 arvind_khadri, hmm yeah I totally agree. 2012-07-11T08:41:45 ecthiender, :) 2012-07-11T08:42:47 arvind_khadri, actually I remember now, Doddegowda was trying to teach us about assemblers, I suddenly recalled that day. but as usual no was listening. thats partly because Doddegowda made little sense I think. But he was trying I guess 2012-07-11T08:43:16 ecthiender, hmmm 2012-07-11T08:44:28 arvind_khadri, you know, you might disagree with me. but teachers like sangeeta and ishfaq pretended to be good teachers. but they were the hypocritical bunch. they pretended to teach us and be good teachers. 2012-07-11T08:44:57 and they taught us balls. sangeeta would shout making no sense at all. 2012-07-11T08:46:02 actually no one could explain to us in an interesting and proper manner! or were we too cocky to listen to them at all? 2012-07-11T08:46:07 ecthiender, :) 2012-07-11T08:46:48 ecthiender, see the fact is no one knew CS like we knew and we do 2012-07-11T08:47:05 the thing is we had learned all that, and also we were looking for more and new 2012-07-11T08:47:53 I mean we have learned C++, there is no point in learning, Java, C#, maybe there should have been Python and Lisp 2012-07-11T08:48:27 Then we would know the different regimes of programming languages. 2012-07-11T08:48:41 arvind_khadri, well I didnt, and I still dont. I dont any shit about OS, about compilers, automata, or algorithm analysis, or networks or anything theoretical CS. 2012-07-11T08:49:16 you are just being modest :) 2012-07-11T08:49:23 But I feel languages can be learnt on your own. I'm talking about theoretical CS. 2012-07-11T08:49:48 no I am not. I know what and how much I know. and I know I know nothing :) 2012-07-11T08:52:10 ecthiender, languages can be introduced from a theoretical CS aspect also 2012-07-11T08:53:32 arvind_khadri, yeah okay. so whats your point? 2012-07-11T08:53:57 arvind_khadri, we could have taught python and lisp? and then what? ignore compilers and automata? 2012-07-11T08:54:30 ecthiender, no my point is we could have learned them all. :) 2012-07-11T08:57:34 arvind_khadri, my point is we dont and did not know fundamental CS concepts (atleast I dont). so its not like we knew a lot, so they should have taught something else. its like we knew nothing(and still dont), if we had better teachers and if the environment was better, we could have been better persons :) 2012-07-11T08:57:56 ecthiender, that is true 2012-07-11T08:57:57 :) 2012-07-11T08:59:20 it is also about how your peers react when you have an idea to do something and learn new things, which is what is environment is. 2012-07-11T09:13:26 arvind_khadri, yeah 2012-07-11T11:24:42 *** ecthiender has quit IRC (Ping timeout: 264 seconds) 2012-07-11T11:42:17 *** ecthiender has joined #amclug 2012-07-11T12:08:19 arvind_khadri, ping 2012-07-11T12:08:30 arvind_khadri, ping ping ping 2012-07-11T12:08:40 ,list 2012-07-11T12:08:40 ecthiender: Admin, Alias, BadWords, Channel, ChannelLogger, Conditional, Config, Dict, Encyclopedia, Factoids, Games, Google, Karma, Lart, Later, Math, MessageParser, Misc, Network, Owner, Plugin, PluginDownloader, Quote, RSS, Seen, String, Topic, Unix, User, Utilities, Web, and Wikipedia 2012-07-11T12:08:55 ,lart arvind_khadri for being absent minded 2012-07-11T12:08:55 * alipi_not resizes arvind_khadri's terminal to 40x24 for being absent minded 2012-07-11T12:38:44 *** ajaykools has joined #amclug 2012-07-11T12:56:21 arvind_khadri, where the eff are you? 2012-07-11T13:05:10 ecthiender, was away, talking to interns 2012-07-11T13:05:32 arvind_khadri, for 1 and half freaking hours? 2012-07-11T13:05:43 arvind_khadri, flirting with the intern girl is it? :P 2012-07-11T13:05:44 ecthiender, yes 2012-07-11T13:05:47 balls. 2012-07-11T13:05:51 she is not here 2012-07-11T13:05:55 was talking to the guys 2012-07-11T13:05:56 balls your balls 2012-07-11T13:06:08 arvind_khadri, enjoyed talking to guys? :P 2012-07-11T13:06:18 ecthiender, they did :P 2012-07-11T13:06:38 arvind_khadri, heh :D I dont think you got the undertone. :D 2012-07-11T13:06:47 arvind_khadri, anyway did you see Dinesh's mail? 2012-07-11T13:07:40 ecthiender, I saw. You should reply. 2012-07-11T13:08:08 arvind_khadri, I replied. forgot to cc you 2012-07-11T13:08:15 wait I'll forward them 2012-07-11T13:08:37 ecthiender, ok 2012-07-11T13:14:42 ecthiender, ok we will do it soon 2012-07-11T13:15:24 arvind_khadri, and we have to tell him also, when we are done. he wants to "iron out the details" as well. so better be soon. 2012-07-11T13:15:43 ecthiender, yes ok 2012-07-11T13:15:56 arvind_khadri, and one more thing I totally forgot. The thing we were talking about last night. I looked up, you were correct. Its not possible to do that. 2012-07-11T13:16:13 ecthiender, hmmm, :) 2012-07-11T13:16:58 arvind_khadri, so we have to come up with a way. maybe when you request a page from your code, you should send the client headers and not send any headers that identifies the server or the code. is that possible? 2012-07-11T13:17:10 arvind_khadri, was I clear? 2012-07-11T13:17:33 ecthiender, we can try what you told. I have thought of doing that. 2012-07-11T13:17:53 arvind_khadri, maybe you should try now. 2012-07-11T13:43:22 arvind_khadri, are you trying that out now? 2012-07-11T13:43:30 arvind_khadri, when can we talk about the FB app? 2012-07-11T13:58:33 ecthiender, no, we can talk about it when you are free 2012-07-11T13:59:24 arvind_khadri, okay. so you brainstormed about the use cases? you said that you are going to need one brainstorming to come up wth them. 2012-07-11T14:01:40 arvind_khadri, it'll be better of you can reply sooner 2012-07-11T14:01:53 ecthiender, yes. I was replying to a mail 2012-07-11T14:03:11 so what we have thought is, that if someone posts a status update saying that there is re-narration available for a particular link, then the app should tell it to the server. 2012-07-11T14:03:24 the server then will crawl the required pages. 2012-07-11T14:03:43 And if you also have any ideas of what a good fb app is, that is also welcome. 2012-07-11T14:05:41 arvind_khadri, okay. 2012-07-11T14:22:21 *** ecthiender_ has joined #amclug 2012-07-11T14:22:40 *** ecthiender has quit IRC (Read error: Connection reset by peer) 2012-07-11T14:29:35 *** ecthiender_ is now known as ecthiender 2012-07-11T15:17:01 ecthiender, hmm, was busy then, dinesh was talking to someone, and the app was failing for some utf-8 fuck up 2012-07-11T15:17:13 love the fact that mongodb has everything in Unicode 2012-07-11T15:17:26 my BP has just shot up. 2012-07-11T15:18:23 arvind_khadri, happens. :) happens with me when we do a release or when there's a critical bug found in the live app. 2012-07-11T15:19:13 It really irks me that people can follow standards, but they don't 2012-07-11T15:19:33 arvind_khadri, what wasnt in utf-8? 2012-07-11T15:19:49 ecthiender,the param from the client side. 2012-07-11T15:19:55 arvind_khadri, oh okay 2012-07-11T15:20:22 ecthiender, I mean, someone need not set specifically utf-8. It just has to be utf8 2012-07-11T15:21:09 arvind_khadri, oh ok 2012-07-11T15:22:57 ecthiender, hey can you tell me how can I check if we should be using a cached version of jQuery or should it be fetched 2012-07-11T15:32:57 arvind_khadri, you dont have to check. the browser does that for you. just use a cdn version of jquery 2012-07-11T15:33:16 arvind_khadri, preferably google one 2012-07-11T15:33:32 ecthiender, I use the jquery one 2012-07-11T15:35:00 arvind_khadri, use the google one. everyone uses that. so there are high chances your user wont have to download jquery, it will already be there in the cache 2012-07-11T15:35:38 ecthiender, oh ok 2012-07-11T15:37:47 arvind_khadri, does jquery have a CDN/ 2012-07-11T15:37:50 ? 2012-07-11T15:41:54 does not look like 2012-07-11T15:42:58 arvind_khadri, http://stackoverflow.com/questions/2180391/why-should-i-use-googles-cdn-for-jquery#2180401 2012-07-11T15:42:59 Title: performance - Why should I use Googles CDN for jQuery? - Stack Overflow (at stackoverflow.com) 2012-07-11T15:43:08 ecthiender, I don't know if they have it, 2012-07-11T15:43:19 i have read that 2012-07-11T15:43:23 you can ignore the above link. just pasted for reference 2012-07-11T15:43:27 yeah ok 2012-07-11T15:44:04 jquery does not have CDN. 2012-07-11T15:46:32 ecthiender, hmmm, I will use google cdn and see 2012-07-11T15:50:41 arvind_khadri, okay 2012-07-11T16:14:35 ecthiender, google CDN is faster than jquery cdn 2012-07-11T16:15:02 arvind_khadri, yeah. and the reasons are listed in the above link 2012-07-11T16:15:17 is there a way I can check if jquery is loaded so that I can load/call other jquery plugins? 2012-07-11T16:21:54 ecthiender, ^ 2012-07-11T16:22:02 ecthiender, feeling so hungry now 2012-07-11T16:22:05 arvind_khadri, one sec 2012-07-11T16:23:16 arvind_khadri, Idk. have to google 2012-07-11T16:23:42 ecthiender, ok, I know of one way is to check if $ is defined or not 2012-07-11T16:23:47 arvind_khadri, http://api.jquery.com/load-event/ 2012-07-11T16:23:48 Title: .load() jQuery API (at api.jquery.com) 2012-07-11T16:24:07 arvind_khadri, yeah that could be one way 2012-07-11T16:24:24 arvind_khadri, $ or jQuery 2012-07-11T16:25:20 arvind_khadri, so if you want to just check, then you can do that way. but if you want a handler, you can use the load event on that script tag I think 2012-07-11T16:25:39 ecthiender, yes. The link you gave is for load events when jquery is loaded :). I want to know if jQuery in itself has loaded or not 2012-07-11T16:26:01 arvind_khadri, oh right :) . there must be some native browser load event 2012-07-11T16:26:20 arvind_khadri, so do you just want check? or have a callback associated? 2012-07-11T16:26:53 ecthiender, Probably a call back associated 2012-07-11T16:28:17 arvind_khadri, then you have to go for load events. but they can be messy if the event is not a standard, each browser will have its own implementation. but I think the load event is standard. 2012-07-11T16:29:28 ecthiender, hmmm 2012-07-11T16:32:08 arvind_khadri, but why do you need to check if jquery is loaded? 2012-07-11T16:32:38 ecthiender, as we are also loading jquery-ui, which works only if jquery is loaded 2012-07-11T16:38:09 arvind_khadri, what if you execute code only after document has loaded? that way, I think, the above cases will be handled. 2012-07-11T16:39:03 ecthiender, hmmm, so when document has loaded, is it necessary that jquery has also loaded? 2012-07-11T16:39:59 arvind_khadri, yes. when all resources are loaded in the DOM, then only the load element on document will fire 2012-07-11T16:40:16 s/load element/load event/ 2012-07-11T16:40:17 What ecthiender meant to say was: arvind_khadri, yes. when all resources are loaded in the DOM, then only the load event on document will fire 2012-07-11T16:43:04 ecthiender, you mean DOMLoaded? 2012-07-11T16:43:31 arvind_khadri, no not DOMLoaded. DOMLoaded is deprecated now from W3C 2012-07-11T16:44:04 arvind_khadri, there is a load event on every element which will fire only when all elements inside it are loaded. 2012-07-11T16:46:48 arvind_khadri, I think there is one more event called DOMContentLoaded 2012-07-11T16:47:19 arvind_khadri, but you are using jquery right? so use $(document).load() or $(document).ready() 2012-07-11T16:47:38 I can't use jquery to check it!!! 2012-07-11T16:47:50 arvind_khadri, you can!!!!!!!!!! 2012-07-11T16:48:00 arvind_khadri, that the beauty of it !!!!!!!!! 2012-07-11T16:48:09 if it is not loaded then it will halt 2012-07-11T16:48:14 I have tried it. 2012-07-11T16:48:19 arvind_khadri, when the event is fired, jquery will be loaded. 2012-07-11T16:48:33 arvind_khadri, okay maybe you should try on window element 2012-07-11T16:48:42 ecthiender, hmmm 2012-07-11T16:48:45 arvind_khadri, 'cause thats what we use 2012-07-11T16:49:22 arvind_khadri, if jquery is not loaded, the event wont fire and nothing will execute. the browser should show the page as still loading 2012-07-11T16:49:34 ecthiender, hmmm 2012-07-11T16:50:01 loads of todos for you from day 1 :P 2012-07-11T16:50:13 try $(window).load(). I'm betting my ass it will work arvind_khadri 2012-07-11T16:50:26 arvind_khadri, FU! you do that! 2012-07-11T16:50:32 :P 2012-07-11T16:50:46 its just one line! arvind_khadri 2012-07-11T16:50:54 yes yes I will :) 2012-07-11T16:51:02 I was just pulling your leg 2012-07-11T16:51:10 lol :D okay 2012-07-11T16:51:31 ecthiender, feeling so hungry, am going to eat 2012-07-11T16:51:39 will see you later :) 2012-07-11T16:51:56 arvind_khadri, okay. even me. I will probably leave soon. 2012-07-11T16:52:06 arvind_khadri, see you tomorrow then :) 2012-07-11T16:52:16 ecthiender, yea, bye :) 2012-07-11T16:52:17 Oh and the FB app. I might call you in the night 2012-07-11T16:52:18 gn 2012-07-11T16:52:19 arvind_khadri, 2012-07-11T16:52:27 ecthiender, Hmmm ok. 2012-07-11T16:54:16 *** arvind_khadri has quit IRC (Quit: Leaving) 2012-07-11T17:24:04 *** ecthiender has quit IRC (Quit: gotta go)