2012-10-11T06:01:36 *** ecthiender has joined #amclug 2012-10-11T06:02:23 ,lis 2012-10-11T06:02:25 ,list 2012-10-11T06:02:25 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-10-11T06:02:39 ,list web 2012-10-11T06:02:39 ecthiender: doctype, fetch, headers, netcraft, size, title, urlquote, and urlunquote 2012-10-11T06:03:09 ,size http://thenextweb.com/insider/2012/10/08/apple-facebook-google-microsoft-and-others-join-forces-to-launch-new-web-standards-resource/ 2012-10-11T06:03:10 ecthiender: The server didn't tell me how long is but it's longer than 4KB. 2012-10-11T06:03:23 ,fetch http://thenextweb.com/insider/2012/10/08/apple-facebook-google-microsoft-and-others-join-forces-to-launch-new-web-standards-resource/ 2012-10-11T06:03:24 ecthiender: Error: This command is disabled (supybot.plugins.Web.fetch.maximum is set to 0). 2012-10-11T06:03:36 ,headers http://thenextweb.com/insider/2012/10/08/apple-facebook-google-microsoft-and-others-join-forces-to-launch-new-web-standards-resource/ 2012-10-11T06:03:37 ecthiender: x-cache: HIT, transfer-encoding: chunked, age: 215, vary: Accept-Encoding, x-cacheable: YES, last-modified: Tue, 09 Oct 2012 08:25:11 GMT, connection: close, link: ; rel=shortlink, cache-control: public, max-age=200, must-revalidate, date: Thu, 11 Oct 2012 04:03:47 GMT, content-type: text/html; charset=UTF-8, x-pingback: (1 more message) 2012-10-11T06:04:04 ,m 2012-10-11T06:04:04 ecthiender: http://thenextweb.com/xmlrpc.php 2012-10-11T06:04:18 ,help netcraft 2012-10-11T06:04:18 ecthiender: (netcraft ) -- Returns Netcraft.com's determination of what operating system and webserver is running on the host given. 2012-10-11T06:04:29 ,netcraft hashcube.com 2012-10-11T06:04:33 ecthiender: http://hashcube.com was running nginx on Linux when last queried at 11-Oct-2012 04:04:33 GMT 2012-10-11T06:04:50 ,netcraft http://facebook.com 2012-10-11T06:04:53 ecthiender: http://facebook.com was running unknown on Linux when last queried at 11-Oct-2012 03:33:27 GMT 2012-10-11T06:05:01 ,netcraft http://google.com 2012-10-11T06:05:12 ecthiender: timed out 2012-10-11T06:05:24 ,netcraft http://microsoft.com 2012-10-11T06:05:34 ecthiender: http://microsoft.com was running Microsoft-IIS on unknown when last queried at 10-Oct-2012 06:09:06 GMT 2012-10-11T06:05:38 ,netcraft http://servelots.com 2012-10-11T06:05:39 ecthiender: http://servelots.com was running Apache on Linux when last queried at 11-Oct-2012 04:05:39 GMT 2012-10-11T06:05:48 ,netcraft http://janastu.org 2012-10-11T06:05:51 ecthiender: http://janastu.org was running Apache on Linux when last queried at 11-Oct-2012 04:05:51 GMT 2012-10-11T06:06:03 ,netcraft http://socket.io 2012-10-11T06:06:05 ecthiender: http://socket.io was running nginx on Linux when last queried at 11-Oct-2012 04:06:05 GMT 2012-10-11T06:06:13 ,netcraft http://nodejs.org 2012-10-11T06:06:16 ecthiender: http://nodejs.org was running nginx on Solaris 9/10 when last queried at 10-Oct-2012 15:30:51 GMT 2012-10-11T06:11:45 ,list web 2012-10-11T06:11:45 ecthiender: doctype, fetch, headers, netcraft, size, title, urlquote, and urlunquote 2012-10-11T06:11:54 ,list utilities 2012-10-11T06:11:54 ecthiender: apply, countargs, echo, ignore, last, sample, shuffle, and success 2012-10-11T06:12:03 ,help sample 2012-10-11T06:12:03 ecthiender: (sample [ ...]) -- Randomly chooses items out of the arguments given. 2012-10-11T06:27:07 *** ecthiender has quit IRC (Ping timeout: 240 seconds) 2012-10-11T07:10:19 *** ecthiender has joined #amclug 2012-10-11T07:31:03 *** arvind_khadri has joined #amclug 2012-10-11T07:35:19 *** pradi has joined #amclug 2012-10-11T07:48:42 ecthiender, ping 2012-10-11T07:51:13 ecthiender, http://vim.spf13.com/ 2012-10-11T07:51:14 Title: spf13-vim - The Ultimate Vim Distribution (at vim.spf13.com) 2012-10-11T07:51:46 arvind_khadri, pong 2012-10-11T07:52:52 ecthiender, look at that site, a killer collection of everything that is ever needed to make vim cutting edge IDE :) 2012-10-11T07:53:07 corrects typos like :W :Q 2012-10-11T07:53:10 :p 2012-10-11T07:53:50 arvind_khadri, yeah 2012-10-11T07:56:56 ecthiender, so wassup 2012-10-11T08:01:15 arvind_khadri, nothing much 2012-10-11T08:01:30 ecthiender, gold came? 2012-10-11T08:01:57 arvind_khadri, what gold? 2012-10-11T08:02:13 ecthiender, hassan gold 2012-10-11T08:02:32 arvind_khadri, ?? from where is it supposed to come? 2012-10-11T08:02:58 ecthiender, anirbit was telling that ashish will score and get it for you guys 2012-10-11T08:03:44 arvind_khadri, oh idk 2012-10-11T08:04:03 ecthiender, oh ok 2012-10-11T08:55:55 ecthiender, Dinesh was asking you to look into the game development thing 2012-10-11T08:56:26 arvind_khadri, yeah I saw the mail. 2012-10-11T08:56:34 arvind_khadri, so what do I look into it? 2012-10-11T08:56:40 arvind_khadri, I mean what do I do? 2012-10-11T08:57:44 He was saying that probably look into that images thing, where you can create a street view kind of thing using them. And also about that spinning issue. 2012-10-11T09:06:54 ecthiender, ^ 2012-10-11T09:08:17 arvind_khadri, do you have a link to that thing? 2012-10-11T09:08:49 ecthiender, No. It might be in some mail he sent, if not will ask him again to send it 2012-10-11T10:08:03 *** pradi has quit IRC (Quit: Leaving.) 2012-10-11T10:37:45 arvind_khadri, you meant this? http://aerotwist.com/tutorials/create-your-own-environment-maps/ 2012-10-11T10:37:46 Title: Create Your Own Environment Maps | Aerotwist (at aerotwist.com) 2012-10-11T10:46:37 ecthiender, :) 2012-10-11T10:46:50 arvind_khadri, what do you mean? 2012-10-11T10:47:07 ecthiender, that you got the right link 2012-10-11T10:48:16 *** pradi has joined #amclug 2012-10-11T11:21:42 *** rohit has joined #amclug 2012-10-11T11:22:05 *** rohit is now known as Guest92299 2012-10-11T11:27:23 arvind_khadri, http://lenticular.attasi.com/ 2012-10-11T11:27:24 Title: lenticular.js - tilt-controlled images (at lenticular.attasi.com) 2012-10-11T11:29:39 ecthiender, amazing :) 2012-10-11T11:30:05 arvind_khadri, will this be useful for us? 2012-10-11T11:30:35 ecthiender, ya, I guess 2012-10-11T11:30:40 arvind_khadri, hmm.. 2012-10-11T11:39:52 *** pradi has quit IRC (Quit: Leaving.) 2012-10-11T11:41:08 arvind_khadri, http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array 2012-10-11T11:41:09 Title: c++ - Why is processing a sorted array faster than an unsorted array? - Stack Overflow (at stackoverflow.com) 2012-10-11T11:49:22 ecthiender, http://www.codecrap.com/content/214/ 2012-10-11T11:49:23 Title: codecrap.com - snippet #214 (at www.codecrap.com) 2012-10-11T11:50:50 arvind_khadri, did you read that? 2012-10-11T11:50:58 ecthiender, yes :D 2012-10-11T11:51:01 hilarious 2012-10-11T11:51:15 arvind_khadri, what is hillarious? :o 2012-10-11T11:51:42 ecthiender, the one that I gave you, and the one that you sent was nice. Great explanation 2012-10-11T11:52:13 arvind_khadri, I didnt know anything about compiler optimizations. so I didnt know about branch predictors and stuff. found pretty interesting 2012-10-11T11:52:31 ecthiender, yea. 2012-10-11T11:52:44 It was interesting. 2012-10-11T11:52:56 arvind_khadri, btw what will the bitwise operation do : int t = (data[c] - 128) >> 31; 2012-10-11T11:52:57 sum += ~t & data[c]; 2012-10-11T11:54:25 ecthiender, it will right shift 31 by so many 0's 2012-10-11T11:55:16 arvind_khadri, umm I'm pretty bad with bitwise. I dont the language you are speaking :P. I want to know how it is equivalent to : 2012-10-11T11:55:32 if(data[c] >= 128) { sum += data[c]; } 2012-10-11T11:55:39 arvind_khadri, ^ 2012-10-11T11:58:38 ecthiender, hmm, so let us say that data[c] = 138, then the if evaluates to true and sum becomes 138, assuming sum = 0. 2012-10-11T11:59:32 arvind_khadri, what? did you follow the question? 2012-10-11T11:59:54 arvind_khadri, I asked how are the bitwise statements achieving the same thing as above. 2012-10-11T12:00:21 yes that is what am explaining. Let me finish man :) 2012-10-11T12:00:34 ok 2012-10-11T12:00:59 so you should indicate that with .... probably :P 2012-10-11T12:02:57 *** pradi has joined #amclug 2012-10-11T12:03:19 so then ``int t = (data[c] - 128) >> 31;`` will evaluate to 10 >> 31 2012-10-11T12:04:26 which is 0 2012-10-11T12:06:01 and sum evaluates to 0, as sum = 0 + 1 & 138 2012-10-11T12:06:42 ecthiender, ^ 2012-10-11T12:08:06 10 >> 31 is 0? 2012-10-11T12:08:08 arvind_khadri, ^ 2012-10-11T12:09:28 ecthiender, yes :) 2012-10-11T12:09:36 and then what is ~t? 2012-10-11T12:09:46 complement of t 2012-10-11T12:11:44 so complement of t will be 1 2012-10-11T12:11:48 arvind_khadri, ^ 2012-10-11T12:12:11 what will be 1 & 138? arvind_khadri ? 2012-10-11T12:12:15 1 right? 2012-10-11T12:12:15 yes that is why the equation becomes what I mentioned above 2012-10-11T12:12:25 ecthiender, no, that will be 0 too 2012-10-11T12:12:34 1 & 138 is 0? 2012-10-11T12:12:44 so sum becomes 0? 2012-10-11T12:12:50 yes 2012-10-11T12:12:58 arvind_khadri, but sum should be 138. 2012-10-11T12:13:13 ecthiender, oh wait 2012-10-11T12:13:17 arvind_khadri, look at the if condition 2012-10-11T12:15:44 ecthiender 2012-10-11T12:15:51 srry for joining lat e 2012-10-11T12:15:54 late* 2012-10-11T12:16:07 what are you guys discussing 2012-10-11T12:16:08 joining where? and late for what? 2012-10-11T12:16:51 teh conversation :) 2012-10-11T12:16:55 ecthiender, you need to convert the decimals into binary or hexadecimal 2012-10-11T12:17:03 arvind_khadri, binary 2012-10-11T12:17:07 its bitwise. 2012-10-11T12:17:36 bitwise works also on hexadecimal, the compiler would convert into binary anyway 2012-10-11T12:17:42 Guest92299, then you have to say sorry in every channel you join 2012-10-11T12:18:14 :) 2012-10-11T12:18:33 are we discussing the branch prediction problem?\ 2012-10-11T12:20:39 Guest92299, who is this? 2012-10-11T12:21:04 rohit 2012-10-11T12:21:13 oh ok. 2012-10-11T12:21:16 couldn't identify myself 2012-10-11T12:21:18 change your nick man 2012-10-11T12:21:27 how do I do that 2012-10-11T12:22:18 type /nick yournick 2012-10-11T12:22:31 and then /identify yourpassword 2012-10-11T12:22:44 *** Guest92299 is now known as rohit 2012-10-11T12:23:14 *** rohit is now known as Guest10203 2012-10-11T12:23:43 *** Guest10203 is now known as static 2012-10-11T12:24:09 *** ChanServ sets mode: +o arvind_khadri 2012-10-11T12:24:55 *** arvind_khadri sets mode: +b *!*7d10b405@*.125.16.180.5 2012-10-11T12:25:26 static, which rohit? 2012-10-11T12:25:34 static, oh!! 2012-10-11T12:25:45 *** arvind_khadri sets mode: -b static!*@* 2012-10-11T12:25:57 static, sorry that I banned you 2012-10-11T12:26:14 static, how are you man, long time :) 2012-10-11T12:26:20 static, shit we were thinking you were some other rohit :P. 2012-10-11T12:26:34 sorry for the way I was replying. 2012-10-11T12:26:40 static, ping 2012-10-11T12:26:56 arvind_khadri, lol :D 2012-10-11T12:27:08 ecthiender, rofl :) 2012-10-11T12:27:09 arvind_khadri, can this go to bash.org? ;) 2012-10-11T12:27:17 seriously!! :) 2012-10-11T12:27:35 arvind_khadri, now he has stopped replying 2012-10-11T12:27:46 static, piinnng 2012-10-11T12:27:56 he pm'ed me 2012-10-11T12:28:08 static, arrey kaminey reply kar!! 2012-10-11T12:29:00 *** arvind_khadri sets mode: -b static!*@* 2012-10-11T12:29:19 *** arvind_khadri sets mode: -b *!*7d10b405@*.125.16.180.5 2012-10-11T12:29:23 lets see if I can send a message now 2012-10-11T12:29:25 cool 2012-10-11T12:29:28 :) 2012-10-11T12:29:31 static, nice :) 2012-10-11T12:29:39 static, sorry had set a ban on you :) 2012-10-11T12:29:41 anyway 2012-10-11T12:29:45 awesome to see you 2012-10-11T12:29:48 static, sorry man there is some other rohit. he is bit irritating 2012-10-11T12:30:01 you guys got some other rohit 2012-10-11T12:30:11 ya man.. 2012-10-11T12:30:14 static, thats why all this. yeah we were discussing branch prediction problem. 2012-10-11T12:30:18 static, yeah :( 2012-10-11T12:30:28 yes its simple 2012-10-11T12:30:48 see the guy who posted this problem basically had a vector of numbers 2012-10-11T12:30:58 he wanted to sum up all those > 128 2012-10-11T12:31:05 so the if condition is there 2012-10-11T12:31:23 this is replaced by the two lines you guys were discussing about 2012-10-11T12:31:34 now there are two cases 2012-10-11T12:31:45 static, ya we understand :) ust got stuck with bitwise operations. 2012-10-11T12:31:45 one : the number is bigger than 128 2012-10-11T12:31:54 ok 2012-10-11T12:31:55 and second its smaller 2012-10-11T12:32:20 now if its greater than we get a +ve quanitity 2012-10-11T12:32:30 and 32 bits 2012-10-11T12:32:35 32/8 = 4 bytes 2012-10-11T12:32:48 which is the size of an integer 2012-10-11T12:32:57 now right shift it by 31 2012-10-11T12:33:06 last bist that is the left most is for the sign 2012-10-11T12:33:17 so basically it gives us all zeroes 2012-10-11T12:33:39 negate that and and with the original gives us the original number 2012-10-11T12:33:44 so we skipped the branch 2012-10-11T12:33:54 so no branch oprediction for the compiler 2012-10-11T12:34:14 and is its a negative number(second cse) wher the data[c] is less than 128 2012-10-11T12:34:22 the leftmost bit is 1 2012-10-11T12:34:37 so the right shift operation will make all 1's 2012-10-11T12:34:58 since in right shift the extra bits a re padded according to what is there in the leftmost bit 2012-10-11T12:35:08 so negate that will give all zeroes 2012-10-11T12:35:16 and with anything you get zero 2012-10-11T12:35:19 add it to sum 2012-10-11T12:35:26 so the sum remains the same 2012-10-11T12:35:28 :) 2012-10-11T12:35:41 hence voilla the number is not added here 2012-10-11T12:36:18 static, yeah nice. thanks :) 2012-10-11T12:37:24 anyway check this: http://www.kickstarter.com/projects/adapteva/parallella-a-supercomputer-for-everyone 2012-10-11T12:37:25 Title: Parallella: A Supercomputer For Everyone by Adapteva Kickstarter (at www.kickstarter.com) 2012-10-11T12:37:27 static, arvind_khadri ^ 2012-10-11T12:50:18 *** static has quit IRC (Quit: Page closed) 2012-10-11T12:57:43 ecthiender, fucking amazing 2012-10-11T12:57:58 *** ChanServ sets mode: -o arvind_khadri 2012-10-11T12:58:33 arvind_khadri, no :) imagine you and I can have a supercomputer. :) and go crazy with 64 processors :P 2012-10-11T12:58:54 ecthiender, everyone in this world can have one :) 2012-10-11T12:59:08 I am just dumbfounded 2012-10-11T12:59:09 arvind_khadri, even the architecture is pretty amazing. and they only consume 9 watts. 2012-10-11T12:59:54 we can really learn parallel programming 2012-10-11T13:01:13 arvind_khadri, did you study any maths yet? 2012-10-11T13:01:25 No man 2012-10-11T13:01:44 I just go home and sleep 2012-10-11T13:01:57 hmm. I have studied some 2 chapters of graph theory. the basic ones. 2012-10-11T13:03:48 Nice 2012-10-11T13:20:13 arvind_khadri, email the trip photos na 2012-10-11T13:20:32 ecthiender, will do today 2012-10-11T13:20:40 arvind_khadri, cool = 2012-10-11T13:50:50 *** static has joined #amclug 2012-10-11T14:07:39 *** static has quit IRC (Quit: Page closed) 2012-10-11T14:30:00 *** pradi has quit IRC (Quit: Leaving.) 2012-10-11T14:35:30 *** pradi has joined #amclug 2012-10-11T16:50:49 *** pradi has quit IRC (Quit: Leaving.) 2012-10-11T16:51:18 *** arvind_khadri has quit IRC (Ping timeout: 276 seconds) 2012-10-11T18:33:19 *** ecthiender has quit IRC (Ping timeout: 246 seconds) 2012-10-11T19:23:08 *** ecthiender has joined #amclug 2012-10-11T19:26:47 *** ecthiender has quit IRC (Client Quit) 2012-10-11T20:44:39 *** ajaykools has quit IRC (Ping timeout: 276 seconds)