tag:blogger.com,1999:blog-116858592025-02-28T17:38:52.248+05:30Sandeep Shetty's BlogGetting from becoming to being...Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]Blogger170125tag:blogger.com,1999:blog-11685859.post-14811805956179079222020-12-13T08:14:00.001+05:302020-12-13T08:14:46.935+05:30The Hyderabadi Biryani Problem<p>&nbsp;<span class="d2edcug0 hpfvmrgz qv66sw1b c1et5uql rrkovp55 a8c37x1j keod5gw0 nxhoafnm aigsh9s9 d3f4x2em fe6kdd0r mau55g9w c8b282yb iv3no6db jq4qci2q a3bd9o3v knj5qynh oo9gr5id hzawbc8m" dir="auto">Everyone says Hyderabadi Biryani is amazing but if you say you didn't like the Hyderabadi Biryani you tried, they will ask you which restaurant you tried it at and then the inevitable answer will be "Oh, that one isn't good, you should try it at XYZ Biryani House" and so on till infinity. There is ALWAYS a restaurant where the biryani is better than the one you didn't like.<br /><br /></span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD53zhyphenhyphenEvSxqbVPKNPWBMAXK7JmFG08IFKy9svD-zpUNTJ3Tenu9lwEODvvghnlVZlq_4kzst4DNjL2VMRlshTZh_cY1OgAXBS5fogCZMgOIm_VvZIGWarjb-dchZTU8apDxk_/s2048/Hyderabadi_Chicken_Biryani.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1365" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD53zhyphenhyphenEvSxqbVPKNPWBMAXK7JmFG08IFKy9svD-zpUNTJ3Tenu9lwEODvvghnlVZlq_4kzst4DNjL2VMRlshTZh_cY1OgAXBS5fogCZMgOIm_VvZIGWarjb-dchZTU8apDxk_/s320/Hyderabadi_Chicken_Biryani.jpg" width="320" /></a></div><br /><p></p>Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-46593050786899067762020-10-03T08:42:00.015+05:302020-10-05T20:39:05.524+05:30Stumbled upon another security hole at a well know Indian company's website that is leaking their customer's sensitive personal information<p>&nbsp;I've stumbled upon another security hole at a well know <span data-offset-key="c8nrl-0-0"><span data-text="true">Indian company's website </span></span>that is leaking their customer's sensitive information.</p><p>Just like the <a href="https://sandeep.shetty.in/2013/12/security-breach-at-myntra.com.html" target="_blank">Myntra security hole</a> that I found a long time ago (which resulted in them setting up their <a href="https://www.myntra.com/security/whitehat" target="_blank">Responsible Disclosure Policy</a>), this hole too is just something I stumbled upon while using their website regularly. I didn't have to do anything special that a regular user wouldn't do and there is no "hack" involved. It simply seems to be a case of bad implementation or a bug that anyone with a decent technical background can easily recognize and take advantage of.</p><p>My Myntra report was in Dec 2013 and in the 7 years since, nothing much has changed with Indian companies taking security seriously or even setting up a basic responsible disclosure policy 😔.</p><p>For now I've sent an email to security@ their website address which thankfully didn't bounce and I've also messaged them on a few of their social accounts. Will wait for them to respond and give them time to fix it before publishing more details.<br /><br /><b>Update (Oct 5, 2020)</b>: emails to security@ their website bounced after 24 hrs 😔</p><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"><tbody><tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPpwywhV7joEX_OBKratyXul3D3OUtuCfnH9qFe26TGRxjeafw5GVl3APB91sISyZhvfRVSRJ40dEDYdWS4dLaInHXap69pOj_M9Olr4UI_FbrSaHM70dGrjO4bOEEd48ZYFHu/s1280/key-hole-2274790_1280.png" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1280" data-original-width="1280" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPpwywhV7joEX_OBKratyXul3D3OUtuCfnH9qFe26TGRxjeafw5GVl3APB91sISyZhvfRVSRJ40dEDYdWS4dLaInHXap69pOj_M9Olr4UI_FbrSaHM70dGrjO4bOEEd48ZYFHu/w320-h320/key-hole-2274790_1280.png" width="320" /></a></td></tr><tr><td class="tr-caption" style="text-align: center;"><span style="font-size: xx-small;">Pic source: https://www.needpix.com/photo/download/929205/key-hole-eye-by-looking-spy-spying-on-watch-burglary-burglar-privacy-policy</span><br /></td></tr></tbody></table><span class="py34i1dx" style="font-size: xx-small;"><span data-offset-key="feupi-7-0"><span data-text="true"></span></span></span><p><br /></p>Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-1939652549394791502019-09-24T03:58:00.002+05:302019-09-24T11:36:19.456+05:30Skinners are my new favorite minimalist footwear<div dir="ltr" style="text-align: left;" trbidi="on"> <br /> 8 years (March 2011) and 5 pairs (2 Classics, 1 Sprint, 1 KSO and 1 KSO EVO) of <a href="https://us.vibram.com/shop/fivefingers/" target="_blank">Vibram Five Fingers (VFF)</a>, 5 years (August 2014) and 4 pairs (1 Sensori Venture, 1 Amuri Venture, 1 Amuri Cloud, 1 Amuri Z-Trek) of <a href="https://xeroshoes.com/" target="_blank">Xero Shoes</a>, and 2 years and 2 pairs for <a href="https://skinners.cc/" target="_blank">Skinners</a> later, Skinners are my new favorite minimalist footwear. Here's why.<br /> <br /> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4nSFtR34RQv4bavkW4Pxg-GQyyKdImHLmbgqBomcvY32Sg4948wIs1cewzboeWuiOwPjQA8xodRyrQhRTkVowf_OeKha5KwEEhRQ3YXfFb6sNNvxI90_PbE1oPQbothdG3eFG/s1600/IMG_20190922_103823347.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4nSFtR34RQv4bavkW4Pxg-GQyyKdImHLmbgqBomcvY32Sg4948wIs1cewzboeWuiOwPjQA8xodRyrQhRTkVowf_OeKha5KwEEhRQ3YXfFb6sNNvxI90_PbE1oPQbothdG3eFG/s320/IMG_20190922_103823347.jpg" width="240" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">Skinners on a trek passing through streams, slippery and sharp rocks, pebbles, gravel and the works.</td></tr> </tbody></table> <br /> <br /> Even though I got my first pair of Skinners back in July 2017 (I was one of the original backers of their <a href="https://www.kickstarter.com/projects/skinners/skinners-revolutionary-ultraportable-footwear-with/" target="_blank">Kickstarter</a> back in June 2017) I didn't use them much primarily because, as a long time VFF user, my toes felt very constrained in them (like in a regular shoe). I ended up using it as a backup shoe (in case the VFFs and Xeros give up on me, which they have) for my travels because it's super compact and easy to pack. So they were stored away ready to be used in case of emergencies, which basically meant I didn't use them much.<br /> <br /> A couple of months ago, when the nylon lace on my Xero Venture tore during a trek, I had to use my Skinners and really loved it. The trek was during the rains, with slippery and sharp rocks, pebbles, gravel and the works, and I really loved how Skinners felt. Having tried that same trek earlier, completely barefoot (only for a short distance and ended up with bruises on my feet), I really appreciated the minimal yet right amount of protection the Skinners provided. I was hooked.<br /> <br /> I needed the same feel as Skinners and started looking around again to see if I could find alternatives that wouldn't constrain my toes and stumbled upon suggestions to try Skinners one-size bigger than your normal shoe size (especially if you have wide feet, which mine are and have become even more wider after I gave up on regular footwear). So I decided to give it a shot and ordered another pair of Skinners, this time, one-size bigger than my normal shoe size.<br /> <br /> Having used them through most of the monsoon season here in Mumbai and for a variety of purposes including trekking, I can now say Skinner are my new favorite minimalist footwear.<br /> <br /> <b>While the reasons why you would like one over the other will be different for everyone, here are my reasons for why I prefer them over VFFs and Xeros</b>:<br /> <br /> <ul style="text-align: left;"> <li>Skinners have the most minimalist sole of the lot offering more connection and feedback from the ground.</li> <li>I prefer minimalist footwear that cover my feet because it keeps my feet clean which is important to me because otherwise they get dry and crack when exposed to dust and the elements. Both VFFs and Skinners satisfy this criteria. When it comes to small puddles, I think Skinners do a better job as the water-resistant sole wraps around till the top and offers more protection (I used to get water seeping in on the VFFs where the sole meets the upper).</li> </ul> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaYEn4_9sz9mrImFo8zaTQEhckLQFnuTaf2Nf3Jdb3NTE4XpczJ_ESJ_nRnrFhJPqsQrUPjFIq2G9sON5OTcxEB-isltuserCZ4pWs0cjMtrtbUV9n3IAt_Cdcb3x4E0hFFd6c/s320/IMG_20190905_182447%257E2.jpg" style="margin-left: auto; margin-right: auto;" width="240" /></td></tr> <tr><td class="tr-caption" style="text-align: center;">The wrap around water-resistant sole is perfect for small puddles.</td></tr> </tbody></table> <br /> <ul style="text-align: left;"> <li>Wraparound footwear also feels more minimal to me in the sense that I can use my feet naturally without having multiple elements of&nbsp; the footwear get in the way like they do with the Xeros (had a few close calls while driving because the soles would get in the way and get stuck sometimes on pedal or mat).</li> <li>Except for my first few pair of Vibram Five Fingers (Classic, Sprint and the orignal KSO) each of which lasted me over 4 years, my experience with the newer VFFs (especially the KSO EVO) hasn't been very good when it comes to durability. I've had a similar experience with Xeros. Since Skinners don't have glues or seams it looks like they'll last longer as there are no parts that can fall apart. The sole can still get worn out and the upper can possibly tear but I'll have to see how they hold up.</li> </ul> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqx4iJm3gGcymI0kYAT8kihzEkUQIYk-tc_lv5t4YArZ7XwRKZZcYwrAwdgNTw86lyDaNv8N56KEwyCBZ34yeG1aYgTP1UxgYYyZLegoD0rA-VsGGxkJKbrUeQmc9oQIJdELsT/s1600/xero.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqx4iJm3gGcymI0kYAT8kihzEkUQIYk-tc_lv5t4YArZ7XwRKZZcYwrAwdgNTw86lyDaNv8N56KEwyCBZ34yeG1aYgTP1UxgYYyZLegoD0rA-VsGGxkJKbrUeQmc9oQIJdELsT/s320/xero.jpg" width="240" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">The hole that the lace goes through, torn on my first Xero.</td></tr> </tbody></table> <br /> <br /> <ul style="text-align: left;"> <li>Skinner are super compact and easy to carry along while traveling as a second shoe for emergencies, multi-sport (to slip into after bouldering or skateboarding) or the gym.</li> <li>Skinners are the easiest to get into and out of. </li> </ul> <br /> <b>A note about repairability</b>: This is important to me because I would rather pay a premium for a pair that lasts me a long time than pay less and have to change my shoes very often resulting in more waste at the landfill. The one thing the Xeros have going for them is that you can easily repair them at least when it comes to the laces. With the VFFs I couldn't find anyone in Mumbai to glue the soles properly when they come off and have lost 3 of them to bad repair work (glue that made them very stiff and painful to wear). Hopefully the glue-less and seamless design of Skinners means they might last longer.<br /> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikFlKGUfNDVTcJ__xOwkBhJBVPJkLFOu3khCD6qASvzrPW8QBqNAuQaA3DmTMQCb3pZRzMlZAax4o74fRLP6B8pP8JRKk72vSa97uX7GuhfWT4mUmFth55ia7vRggWtWAjvBOn/s320/IMG_20190624_152950.jpg" style="margin-left: auto; margin-right: auto;" width="240" /></td></tr> <tr><td class="tr-caption" style="text-align: center;">Replacing the torn lace with a paracord I picked up from Amazon.</td></tr> </tbody></table> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Rr41utAB-laolITIyl1ibnQNfNp0AOAmQgkKibh0spLpNhXwU5wn1wy4In-kju0UBIiUOQO-7qSvSFTu61b7K4aJvygzWBDn-Jqv-5jdmpBwY1hjYm3rd1FXnAP-KrcOIeXR/s1600/IMG_20190624_160556.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Rr41utAB-laolITIyl1ibnQNfNp0AOAmQgkKibh0spLpNhXwU5wn1wy4In-kju0UBIiUOQO-7qSvSFTu61b7K4aJvygzWBDn-Jqv-5jdmpBwY1hjYm3rd1FXnAP-KrcOIeXR/s320/IMG_20190624_160556.jpg" width="240" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">Good as new!</td></tr> </tbody></table> <br /> I recently also got the <a href="https://www.vivobarefoot.com/us/primusbio" target="_blank">Vivobarefoot Primus Lite II BIO</a> to try out (so your can look forward to a review of those) but I don't see myself wearing them for a while till I wear out the Skinners.<br /> <br /> <b>A word of caution</b>: I wouldn't recommend Skinners as your daily-everything shoe if you're just starting out transitioning to minimalist shoes and would suggest easing into them slowly.</div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-2043991316779923102016-11-25T18:00:00.001+05:302016-11-25T18:05:39.770+05:30Native apps can't be trusted<div dir="ltr" style="text-align: left;" trbidi="on"> The one thing the web has gotten right to some extent (thanks to the beauty of REST/HTTP) at least compared to desktop and native apps, is how it can uniformly show users if they are using a secure connection to a trusted source. The browser does this by clearly and consistently giving various hints (see Fig 1 and Fig 2 below):<br /> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh479T872KRBJTmRwAM-rtzSJxrcZA0xRvO31AeW82G7zPMp1a_ISS4PMpgF2IwKIoydhUT1hpXsOvLffneNymvC7KiV6S0pKgFz8kVdYDcKpdmStJKkQgnoNiyRLIWC9wk0npp/s1600/Screenshot+from+2016-11-25+15-01-45.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="43" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh479T872KRBJTmRwAM-rtzSJxrcZA0xRvO31AeW82G7zPMp1a_ISS4PMpgF2IwKIoydhUT1hpXsOvLffneNymvC7KiV6S0pKgFz8kVdYDcKpdmStJKkQgnoNiyRLIWC9wk0npp/s320/Screenshot+from+2016-11-25+15-01-45.png" width="320" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">Fig 1. Firefox indicating that you are securely connected to GitHub.</td></tr> </tbody></table> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj51tfR5VHx6PjPCixY9j0oUKYKPjGCvUNUfiqFb0KLxwC6HQyXEx_Mqm2DxI0jA7rA56CZj_R6s2mEZs7nHLzvnwhVuA61xPXdNt32qBDccuTsXf9xDsKiDupenLy6O32N8haU/s1600/Screenshot+from+2016-11-25+15-04-18.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj51tfR5VHx6PjPCixY9j0oUKYKPjGCvUNUfiqFb0KLxwC6HQyXEx_Mqm2DxI0jA7rA56CZj_R6s2mEZs7nHLzvnwhVuA61xPXdNt32qBDccuTsXf9xDsKiDupenLy6O32N8haU/s320/Screenshot+from+2016-11-25+15-04-18.png" width="320" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">Fig 2. Chrome indicating that you are securely connected to GitHub.</td></tr> </tbody></table> <br /> There is no reliable, trustworthy and consistent way for non-technical users to do this on desktop and native apps.<br /> <br /> This is how you add funds to your Paytm wallet from within the Uber app (see Fig 3 below):<br /> <br /> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody> <tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhumdVsb_U6jufYy1tLca6wITsHBg3KCWZL4EfzAswpSw7x9tTW36LMMI42Cl5HJ4vL-1N1Xl7DmDlPzmUHR-QFfvckGApH5whfDcgZ4qG55G7iX7k5EHEOhq1cq_qufknFeO4C/s1600/Screenshot_20161125-152206-merged.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhumdVsb_U6jufYy1tLca6wITsHBg3KCWZL4EfzAswpSw7x9tTW36LMMI42Cl5HJ4vL-1N1Xl7DmDlPzmUHR-QFfvckGApH5whfDcgZ4qG55G7iX7k5EHEOhq1cq_qufknFeO4C/s320/Screenshot_20161125-152206-merged.png" width="110" /></a></td></tr> <tr><td class="tr-caption" style="text-align: center;">Fig 3. Page to add funds to your Paytm wallet from within the Uber app.</td></tr> </tbody></table> <br /> <div class="separator" style="clear: both; text-align: center;"> </div> <br /> Notice the following in Fig 3:<br /> <ol style="text-align: left;"> <li>Since I opened this from within the Uber app and this "page" is running "inside" the Uber app, I have no way to verify if what I'm seeing is in fact a page severed by Paytm or a spoofed page that Uber is presenting to me.</li> <li>Even if I were to trust Uber here, there is no way for me to tell if this is happening over a secure connection.</li> <li>Say I'm willing to accept that this is in fact a page served securely by Paytm, I have no way to know if Uber has injected their own code to intercept everything I enter on that page.</li> <li>And now the really ridiculous bits (circled in red in Fig 3 above): The text that reads "Your payment details are secured via 128 Bit encryption by Verisign" and the various logos that are displayed at the bottom of the page are something I have to take at face value. These are also app-specific and not consistent.</li> </ol> <div> Also, note that I (as a non-technical end-user) have no way of knowing if all communication the Uber app is doing with it's servers is over a secure channel. I just have to "trust" that they are doing the right thing. Of course, as a technical user I could intercept the traffic on my phone and see how it's been sent, but that is exactly the point: You have to jump through a lot of hoops to "verify" what is happening. &nbsp;&nbsp;</div> <div> <br /></div> <div> The current state of affairs for security on native apps is absolutely ridiculous and it's crazy that we all put up with it.</div> <div> <br /></div> <div> Full Disclosure: I work at <a href="http://zeta.in/">Zeta</a>&nbsp;(at the time of writing this blog post), but the views expressed here are my own and not of my employer.</div> <div> </div> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-54661664652318444282016-11-25T04:24:00.001+05:302018-04-12T18:25:01.790+05:30What native apps get wrong over web apps<div dir="ltr" style="text-align: left;" trbidi="on"> <div dir="ltr"> </div> <ol style="text-align: left;"> <li>They need to be installed. This in itself is a big drawback.</li> <li>They need to be separately developed for each target platform. Unlike the desktop app days where Windows was almost ubiquitous, with mobile you have to support 2 platforms.</li> <li>They can get outdated if users don't upgrade. We are doomed to repeat the same mistakes we made with desktop apps.</li> <li>Deployment is blocked on a black box not in your control (aka the app store approval process). Kiss continuous deployment goodbye.</li> <li><a href="http://sandeep.shetty.in/2016/11/native-apps-cant-be-trusted.html">They have no trustworthy way to indicate to users that secure channels are being used to communicate secure information (unlike the address bar in web apps that clearly shows if the connection is secure and to the right place). If you think about it, there is a beauty to REST/HTTP that makes this possible.</a></li> <li>Each app needs to reinvent the wheel and ship infra that could have been shared, e.g., local data store, caching, etc.</li> </ol> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-48694823266460721242013-12-07T07:24:00.000+05:302014-12-22T00:52:13.197+05:30Security breach at Myntra.com exposes customer's personal information, order history and more<div dir="ltr" style="text-align: left;" trbidi="on"> <span style="font-family: inherit;"><b>Update (added on 3 Dec 2013): Based on my feedback Myntra.com has now setup [email protected] for reporting security issues and a <a href="http://www.myntra.com/security/whitehat">Responsible Disclosure Policy page</a>. Kudos to them for taking the first step towards a better responsible disclosure process and setting an example for other Indian companies.</b></span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">Last week a bug on <a href="http://myntra.com/">Myntra.com</a> let anyone with an account take over random customer accounts and highlighted the lack of responsible disclosure processes among Indian companies.</span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">On 28th November (2013), Myntra.com held a 3-hour (8-11pm) invite only <a href="http://www.elabs11.com/functions/message_view.html?mid=2120561&amp;mlid=196497&amp;siteid=2010001582&amp;uid=e2e7184cc2">Winter Sale event</a> where a few select customers got an additional 31% off on all orders above a certain amount.</span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">I was one of those customers and decide to login to my Myntra account to see the coupon, except I had forgotten my Myntra account password. So I went ahead and put in my email address and clicked on the forgot password link. As expected I got an email with instructions, to click on a link to set a new password. What happened next was very scary.</span><br /> <span style="font-family: inherit;"><br /></span> <br /> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwd5RCSsolc08k30H45k0-AWqes9pzFCewp-PpbV0CoCJvvfCDVB0-DoYSRj0TWpdrHB_5l9CWFgr6YlaxCDP2hfoVNEI8RgOptBbOLfKmfXv3MmEFo19psuTsPsIPD60JZvAW/s1600/myntra-new-password-form-cust1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwd5RCSsolc08k30H45k0-AWqes9pzFCewp-PpbV0CoCJvvfCDVB0-DoYSRj0TWpdrHB_5l9CWFgr6YlaxCDP2hfoVNEI8RgOptBbOLfKmfXv3MmEFo19psuTsPsIPD60JZvAW/s320/myntra-new-password-form-cust1.png" height="195" width="320" /></a></div> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">I clicked on the link and landed on the page on Myntra.com to set a new password but <b>instead of my email address I saw someone else's email address pre-filled in the form</b>. Curious to see what would happen, I went ahead and put in a new password and lo and behold, Myntra.com had let me take over another customer's account.&nbsp;</span><br /> <span style="font-family: inherit;"><br /></span> <br /> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc006yt7YgGyBOWulKlf5v5L_WjgPNED-sqcOTQnp4l7Yg3AWTUJ46_-CC4kVN65ybPl382O8ws5hSiK5wZHJgzRpDrYpbtMwCfDHltMA-1o1PlpL-YwiAzjZjgVBtz9DiWPax/s1600/myntra-account-details-cust1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc006yt7YgGyBOWulKlf5v5L_WjgPNED-sqcOTQnp4l7Yg3AWTUJ46_-CC4kVN65ybPl382O8ws5hSiK5wZHJgzRpDrYpbtMwCfDHltMA-1o1PlpL-YwiAzjZjgVBtz9DiWPax/s320/myntra-account-details-cust1.png" height="186" width="320" /></a></div> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">To see if this was repeatable, I went through the forgot password flow again and just like before it had another random customer's email address pre-filled in the form and let me take over that customer's account.</span><br /> <span style="font-family: inherit;"><br /></span> <br /> <div class="separator" style="clear: both; text-align: center;"> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8fnf71MWzheXfreLwUMREaSQA3biu-omtAxRUwvlu82tk3yM6qdNWzafHjBME1-EfjrLp0lUB6hluno5VQaXngHFr2Z9Ug_Zq2PhULnFXa0CFghnqo2jW6ed7A5oKnCvL0R6F/s1600/myntra-account-details-cust2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8fnf71MWzheXfreLwUMREaSQA3biu-omtAxRUwvlu82tk3yM6qdNWzafHjBME1-EfjrLp0lUB6hluno5VQaXngHFr2Z9Ug_Zq2PhULnFXa0CFghnqo2jW6ed7A5oKnCvL0R6F/s320/myntra-account-details-cust2.png" height="138" width="320" /></a></div> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;"><b>HOLY SHIT. Myntra.com just let me take over two customer accounts. No fancy hacks, just a scary little bug that presented other Myntra customer accounts to me on a platter.</b></span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">So the first thing I did was see if I could find anything on Myntra.com about responsible disclosure or a security contact but found nothing. So I sent an email to [email protected] and it promptly bounced with the message "<i>The email account that you tried to reach is over quota</i>".</span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">Next I&nbsp;<a href="https://twitter.com/sandeepshetty/status/406075754309373952">got in touch with them on Twitter</a> and 13 hours later someone got in touch with me, 16 hours later I was speaking to a Tech Lead from Myntra.com and 9 days later I have confirmation from them that they have fixed the bug and put measures into place to ensure this doesn't happen again.</span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;"><b>Note (added on 8 Dec 2013): The bug was fixed on the same day I reported it and the 9 days mentioned above includes time they took to monitor the fix and the Tech Lead at Myntra.com and me having issues around coordinating the final confirmation phone call.</b></span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">I don't know how long this bug was live and how many customers accounts were affected but <b>if your account was one of the affected ones, it means someone had COMPLETE access to your account, your personal details like your address and phone number, your order history, your myntra credit points, your saved payment details, your wishlist and your shopping cart</b>.</span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">Apart from the privacy concerns, the biggest threat that you need to protect yourself from, with a security breach like this is that it opens you up to <a href="http://en.wikipedia.org/wiki/Social_engineering_(security)">Social Engineering Attacks</a> where anyone with this privileged information can pretend to be from Myntra.com and use it for malicious purposes.</span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">While a lot of people reading this will focus on Myntra, I think it's important to focus on what this incident can teach us about the lack of <a href="http://en.wikipedia.org/wiki/Responsible_disclosure">Responsible Disclosure</a> processes among Indian companies.</span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">If you run an online service (and especially an ecommerce one) you MUST have a responsible disclosure process in place. The Open Web Application Security Project (OWASP) has a <a href="https://www.owasp.org/index.php/Manage_security_issue_disclosure_process">good primer on managing your security issue disclosure process</a>. At a very basic level you should atleast have a <i>security@</i> email address configured. Having a dedicated page for responsible disclosure on your website is an added bonus.</span><br /> <span style="font-family: inherit;"><br /></span> <span style="font-family: inherit;">Here are some examples of good responsible disclosure pages to get you started:</span><br /> <br /> <ul style="text-align: left;"> <li><a href="https://about.pinterest.com/terms/responsible-disclosure/" style="font-family: inherit;">https://about.pinterest.com/terms/responsible-disclosure/</a></li> <li><a href="https://37signals.com/security-response" style="font-family: inherit;">https://37signals.com/security-response</a></li> <li><a href="http://www.amazon.com/gp/help/customer/display.html?nodeId=201182150" style="font-family: inherit;">http://www.amazon.com/gp/help/customer/display.html?nodeId=201182150</a></li> <li><a href="https://www.engineyard.com/legal/responsible-disclosure-policy" style="font-family: inherit;">https://www.engineyard.com/legal/responsible-disclosure-policy</a></li> <li><a href="http://www.google.com/about/appsecurity/" style="font-family: inherit;">http://www.google.com/about/appsecurity/</a></li> <li><a href="http://www.ifixit.com/Info/Responsible_Disclosure" style="font-family: inherit;">http://www.ifixit.com/Info/Responsible_Disclosure</a></li> <li><a href="https://www.spotify.com/int/about-us/contact/report-security-issues/" style="font-family: inherit;">https://www.spotify.com/int/about-us/contact/report-security-issues/</a></li> <li><a href="https://www.gittip.com/security.txt" style="font-family: inherit;">https://www.gittip.com/security.txt</a></li> </ul> <br /> <br /> <span style="font-family: inherit;">Lastly, I think it's important for companies to be transparent and honest about security/data breaches. Hiding details about breaches from your customers makes them vulnerable to all kinds of attacks. <a href="http://www.informationisbeautiful.net/visualizations/worlds-biggest-data-breaches-hacks/">Security/Data breaches happen all the time</a>. The only way customers can protect themselves is by being informed.</span><br /> <div> <br /></div> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]5tag:blogger.com,1999:blog-11685859.post-38514282548621265762013-06-11T00:22:00.004+05:302013-06-22T17:11:34.144+05:30Indieweb Mention Test<div dir="ltr" style="text-align: left;" trbidi="on"> <div class=""> This is a non-specific mention of <a href="http://www.sandeep.io/39">http://www.sandeep.io/39</a>. </div> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-72546909555565218292013-06-11T00:17:00.002+05:302013-06-11T00:20:46.205+05:30Indieweb Repost Test<div class="h-entry"> Check out <a class="u-repost" href="http://www.sandeep.io/39">http://www.sandeep.io/39</a>. </div>Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-85448872079943966302013-06-10T06:34:00.002+05:302013-06-11T00:20:35.635+05:30Indieweb Like Test<div dir="ltr" style="text-align: left;" trbidi="on"> <div class="h-entry"> I like <a class="u-like" href="http://www.sandeep.io/39">http://www.sandeep.io/39</a>.</div> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-50345964428952249992013-06-09T01:25:00.001+05:302013-06-13T16:29:16.154+05:30Really Simple Social Blogging<div dir="ltr" style="text-align: left;" trbidi="on"> <div style="text-align: left;"> A proposal to implement a decentralized Tumblr/Facebook/Twitter like social blogging platform using simple things like <a href="http://webmention.org/">WebMention</a> and <a href="http://microformats.org/wiki/microformats-2">Microformats</a>. This is based on some <a href="http://indiewebcamp.com/plaintext#Machine_tags_based_repost">experiments</a> I'm doing with <a href="https://github.com/converspace/converspace">Converspace</a>&nbsp;on <a href="http://sandeep.io/">sandeep.io</a>&nbsp;and was inspired by&nbsp;<a href="http://tantek.com/2013/113/b1/first-federated-indieweb-comment-thread">The First Federated #Indieweb Comment Thread</a>.</div> <div style="text-align: left;"> <br /></div> <div style="text-align: left;"> Based on usage, it looks like I primarily do 4 things on <a href="http://sandeep.io/">sandeep.io</a>:</div> <ol style="text-align: left;"> <li><b>Post</b>&nbsp;original content. This could be text (both short and long form), links, photos, videos, quotes, etc. (<a href="http://www.sandeep.io/19">http://www.sandeep.io/19</a>)</li> <li><b>Repost</b>&nbsp;content from others I find interesting. (<a href="http://www.sandeep.io/36">http://www.sandeep.io/36</a>)</li> <li><b>Comment</b>&nbsp;on content from others. (<a href="http://www.sandeep.io/32">http://www.sandeep.io/32</a>)</li> <li><b>Like</b>&nbsp;content from others. (<a href="http://www.sandeep.io/33">http://www.sandeep.io/33</a>)</li> </ol> <div style="text-align: left;"> <br /></div> <div style="text-align: left;"> Turns out this is also broadly what you do on Tumblr, Twitter and Facebook:<br /> <ul style="text-align: left;"> <li><b>Tumblr</b>: blog, reblog, comment and like.</li> <li><b>Twitter</b>: tweet, retweet, reply and favorite.</li> <li><b>Facebook</b>: update status, share, comment and like.</li> </ul> </div> <div style="text-align: left;"> <br /></div> <div style="text-align: left;"> So I set out to see how this could be done in a decentralized way across the <a href="http://indiewebcamp.com/">#indieweb</a>. A couple of experiments later, I think I have a simple solution for achieving this, using nothing more than simple things like&nbsp;<a href="http://webmention.org/">WebMention</a>&nbsp;and&nbsp;<a href="http://microformats.org/wiki/microformats-2">Microformats</a>.</div> <div style="text-align: left;"> <br /></div> <div style="text-align: left;"> The "<b>social</b>" part of this is letting others know that you have done one of those 4 things listed above and especially the person whose content you've reposted, liked or commented on.</div> <div style="text-align: left;"> <br /></div> <div style="text-align: left;"> This is where&nbsp;<a href="http://webmention.org/">WebMention</a>&nbsp;comes. It's a simple way to let any URL on the web know that &nbsp;you've linked to it on your site. The problem however is communicating the context in which the URL was mentioned:</div> <div style="text-align: left;"> </div> <ul style="text-align: left;"> <li>Was it just mentioned in passing along with other content?</li> <li>Was it's content reposted?</li> <li>Was it liked?</li> <li>Was it linked to by someone commenting on it?</li> </ul> <div style="text-align: left;"> <br /></div> <div style="text-align: left;"> Taking a cue from the the experimental <a href="http://microformats.org/wiki/rel-in-reply-to#u-in-reply-to">u-in-reply-to</a>&nbsp;microformat, I'm using the following&nbsp;experimental&nbsp;classnames for links within h-entry:</div> <ul style="text-align: left;"> <li><b>u-mention</b></li> <ul> <li>I'm actually not using this because if a link within an h-entry does not have any of the classes below it is assumed to be a simple mention.</li> </ul> <li><b>u-repost&nbsp;</b>(<a href="http://pin13.net/mf2/?url=http://www.sandeep.io/36">http://pin13.net/mf2/?url=http://www.sandeep.io/36</a>)</li> <li><b>u-in-reply-to&nbsp;</b>(<a href="http://pin13.net/mf2/?url=http://www.sandeep.io/32">http://pin13.net/mf2/?url=http://www.sandeep.io/32</a>)</li> <li><b>u-like</b>&nbsp;(<a href="http://pin13.net/mf2/?url=http://www.sandeep.io/33">http://pin13.net/mf2/?url=http://www.sandeep.io/33</a>)</li> </ul> <div style="text-align: left;"> <br /></div> <div style="text-align: left;"> A target URL that receives a WebMention can&nbsp;retrieve&nbsp;the source URLs HTML content and look for the above Microformat classnames to figure out the context in which it was mentioned along with an h-card/p-author entry to figure out the person involved.</div> <div style="text-align: left;"> <br /></div> <div style="text-align: left;"> The target can then show:</div> <div style="text-align: left;"> <ul style="text-align: left;"> <li><b>Total number of likes</b> along with the&nbsp;details of the people that&nbsp;liked it.</li> <li><b>Total number of reposts</b> along with the&nbsp;details of the&nbsp;people that reposted it.</li> <li><b>Total number of mentions</b>&nbsp;along with the URLs of the sites that mentioned it.</li> <li><b>Comments</b> along with the details of the people that commented on it.</li> </ul> See this in action here:<a href="http://www.sandeep.io/39"> Indieweb Federated "Likes"</a>.<br /> <ul style="text-align: left;"> </ul> </div> <div style="text-align: left;"> <br /> An important part that is missing from the above is letting other people easily follow you and get updates when you post something on your site. A microformats based feed reader should solve that. Following someone also gives you the opportunity to send a WebMention to the profile URL of the person you followed which in turn allows that person to show a <b>Follower count</b> (using <b>u-follow</b> maybe) along with the details of the followers. I've yet to explore this but will be posting more details when I get to it and <a href="http://indiewebcamp.com/dogfood">dogfood</a> it.<br /> <br /> <br /></div> <div style="text-align: left;"> <b>Wishlist</b>: A microformats search engine that crawls the web looking for microformats, especially h-card so I can <i>search for people just like I can on silo social networks</i>.<br /> <br /> Here are some additional experimental classnames I'm considering but not yet using:<br /> <ul style="text-align: left;"> <li><b>u-quote</b>&nbsp;to be used when you quote text from a URL verbatim.</li> <li><b>u-follow</b>&nbsp;to be used when you follow/subscribe to a URL (usually a person)</li> </ul> <br /> <br /> <div> <h4> Todo</h4> <ul> <li>A way to undo WebMentions (e.g., unlike) by deleting the source URL and sending a WebMention for which the target would receive a 404 in turn deleting the original WebMention.&nbsp;</li> <li>I'm also hoping to extend WebMention to allow for private access to URLs to only the people that were sent a WebMention.</li> </ul> </div> <br /> <h4 style="text-align: left;"> Updates</h4> <div> 08 June, 2013</div> <div> <ul style="text-align: left;"> <li>Added h-card search wishlist.</li> </ul> </div> 09 June, 2013<br /> <ul style="text-align: left;"> <li>Added attribution to the <a href="https://twitter.com/eschnou">@eschnou</a>'s <a href="http://eschnou.com/entry/testing-indieweb-federation-with-waterpigscouk-aaronpareckicom-and--62-24908.html">indieweb comment thread</a> that was the first instance I know of that&nbsp;combined something like WebMention (Pingback) and Microformats to figure out context. It went beyond the simple <a href="https://github.com/converspace/webmention/commit/c5254d0c38f1eb61f705537b55cc6ca8e40b9eb1#L0R47">rel="in-reply-to" suggestion</a> made in WebMention and read h-cards.</li> <li>Added note about sending WebMentions to user profile URLs. (rememberd to add this thanks to this <a href="https://twitter.com/benwerd/status/343609497903824896">tweet</a> by&nbsp;<a href="https://twitter.com/benwerd">@benwerd</a>)</li> <li>Added note about private access.&nbsp;(rememberd to add this thanks to this&nbsp;<a href="https://twitter.com/benwerd/status/343610422861127680">tweet</a>&nbsp;by&nbsp;<a href="https://twitter.com/benwerd">@benwerd</a>)</li> <li>Added list of other experimental classnames I'm considering.</li> </ul> 10 June 2013<br /> <ul style="text-align: left;"> </ul> </div> <div style="text-align: left;"> <ul style="text-align: left;"> <li>Created the Todo section and added note about undoing WebMentions.</li> </ul> <div> <h4 style="text-align: left;"> See Also</h4> </div> <div> <ul style="text-align: left;"> <li><a href="http://www.sandeep.io/45">Share vs Repost and Link vs. Mention</a></li> <li><a href="http://www.sandeep.io/50">RSSB microformats to Activity Streams</a></li> </ul> </div> </div> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]2tag:blogger.com,1999:blog-11685859.post-30967742852006763412013-06-07T05:17:00.002+05:302013-06-07T15:41:12.771+05:30Extracting machine tags (aka triple tags) from a string<div dir="ltr" style="text-align: left;" trbidi="on"> Here's some working code to extract machine tags (aka triple tags) from a string. Possibly one of the ugliest regular expressions I've ever written.<br /> <br /> <div> <script src="https://gist.github.com/sandeepshetty/5725818.js"></script> </div> <h4 style="text-align: left;"> References</h4> <div> <ul style="text-align: left;"> <li>Spec:</li> <ul> <li><a href="http://www.flickr.com/groups/api/discuss/72157594497877875">http://www.flickr.com/groups/api/discuss/72157594497877875</a></li> <li><a href="http://www.aaronland.info/talks/mw10_machinetags/#62">http://www.aaronland.info/talks/mw10_machinetags/#62</a></li> <li><a href="http://tagaholic.me/2009/03/26/what-are-machine-tags.html">http://tagaholic.me/2009/03/26/what-are-machine-tags.html</a></li> </ul> <li>Regexes I found elsewhere:</li> <ul> <li><a href="https://github.com/ibolmo/habwatch/blob/bcba1a11b7073c2c864296ab89787af7b7fc0e00/lib/util/flickr/Flickr/Photo.class.php">https://github.com/ibolmo/habwatch/blob/bcba1a11b7073c2c864296ab89787af7b7fc0e00/lib/util/flickr/Flickr/Photo.class.php</a></li> <li><a href="https://github.com/cldwalker/has_machine_tags/blob/48ed628c04def3539387c6cdfd7145a004a4b8fc/lib/has_machine_tags/tag_methods.rb">https://github.com/cldwalker/has_machine_tags/blob/48ed628c04def3539387c6cdfd7145a004a4b8fc/lib/has_machine_tags/tag_methods.rb</a></li> </ul> <li>Regex syntax I used:</li> <ul> <li><a href="http://php.net/manual/en/regexp.reference.subpatterns.php">http://php.net/manual/en/regexp.reference.subpatterns.php</a></li> <li><a href="http://php.net/manual/en/regexp.reference.back-references.php">http://php.net/manual/en/regexp.reference.back-references.php</a></li> <li><a href="http://php.net/manual/en/regexp.reference.assertions.php">http://php.net/manual/en/regexp.reference.assertions.php</a></li> <li><a href="http://php.net/manual/en/regexp.reference.conditional.php">http://php.net/manual/en/regexp.reference.conditional.php</a></li> </ul> <li>unrolling-the-loop technique for quoted string with escaping:</li> <ul> <li><a href="http://ad.hominem.org/log/2005/05/quoted_strings.php">http://ad.hominem.org/log/2005/05/quoted_strings.php</a></li> <li><a href="http://stackoverflow.com/questions/5695240/php-regex-to-ignore-escaped-quotes-within-quotes/5696141#5696141">http://stackoverflow.com/questions/5695240/php-regex-to-ignore-escaped-quotes-within-quotes/5696141#5696141</a></li> <li><a href="http://stackoverflow.com/questions/249791/regex-for-quoted-string-with-escaping-quotes/249832#249832">http://stackoverflow.com/questions/249791/regex-for-quoted-string-with-escaping-quotes/249832#249832</a></li> </ul> <li>Negative lookahead as an alternative to using backreferences within character classes.</li> <ul> <li><a href="http://www.perlmonks.org/?node_id=747135">http://www.perlmonks.org/?node_id=747135</a></li> <li><a href="http://stackoverflow.com/questions/6050427/regex-problem-with-backreference-in-pattern-with-preg-match-all">http://stackoverflow.com/questions/6050427/regex-problem-with-backreference-in-pattern-with-preg-match-all</a></li> </ul> </ul> </div> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-73750186347727645202013-06-06T14:53:00.002+05:302013-06-06T22:41:00.572+05:30Does polling scale better than push?<div dir="ltr" style="text-align: left;" trbidi="on"> For the sake of simplicity, given 10000 subscribers, 1 publisher and assuming resource required for serving 1 pull request is roughly equal to resource required for sending 1 push:<br /> <ul> <li>A hub that is pulled from every minute has to serve&nbsp;<i>number of&nbsp;subscribers&nbsp;x 1440</i>&nbsp;requests per day, i.e.,&nbsp;<i>10000 subscribers x 1440</i>&nbsp;requests per day&nbsp;<b>irrespective of the number of updates</b>.</li> <li>A hub that pushes has to send (<i>number of subscribers x&nbsp;<i>number</i>&nbsp;of updates) per publisher</i>&nbsp;pushes per day&nbsp;&nbsp; i.e.,&nbsp;<i>10000 subscribers x&nbsp;<i>number</i>&nbsp;of updates x 1 publisher</i>&nbsp;pushes per day, i.e.,&nbsp;<i>10000 subscribers x&nbsp;<i>number</i>&nbsp;of updates</i>&nbsp;pushes per day.</li> <li>So that's&nbsp;<i>10000 x 1440</i>&nbsp;for pull and&nbsp;<i>10000 x&nbsp;<i>number</i>&nbsp;of updates</i>&nbsp;for push.</li> <li>Therefore, if&nbsp;<i>number</i>&nbsp;of updates per day is greater than 1440, a hub that pushes will require more resources than ones that is pulled from.&nbsp;</li> <li>More importantly, a hub that is pulled from&nbsp;<b>will not require additional resources if the number of updates per day increases</b>.</li> </ul> <br /> Would love to hear what you think (in the comments) especially if you think this might not be the case.<br /> <br /> <h4 style="text-align: left;"> Notes</h4> <div> <div> </div> <ul style="text-align: left;"> <li>This assumes that &gt;= 1 min latency is ok for your specific use-case.</li> <li>Resource required for serving 1 pull request might not be equal to resource required for sending 1 push. Here are my notes for why, I would love to hear yours:</li> <ul> <li>Given constant number of subscribers and publishers, a pull based system will experience a uniform load throughout while a push based system will experience load in bursts.</li> <li>Push potentially uses less bandwidth though Pull can take advantage of caching.</li> <li>Push has the overhead of subscribers not being available, keeping track of such subscribers and retrying several times.&nbsp;</li> </ul> <li>Proof by induction doesn't work because with push not every subscriber is subscribed to every publisher.</li> </ul> <br /> <br /> See <a href="http://sandeep.shetty.in/2013/06/pushhubpullsub.html">PushHubPullSub</a><br /> <br /> This was inspired by my notes on&nbsp;<a href="http://indiewebcamp.com/push-vs-pull">Push vs Pull</a>&nbsp;on the&nbsp;<a href="http://indiewebcamp.com/">IndieWebCamp wiki</a>.</div> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]1tag:blogger.com,1999:blog-11685859.post-71487712741650656192013-06-06T04:25:00.003+05:302013-06-06T14:57:42.756+05:30PushHubPullSub<div dir="ltr" style="text-align: left;" trbidi="on"> <i>publishers Push updates to a Hub and updates are Pulled by Subscribers from the hub.</i><br /> <i><br /></i> PuSH (PubSubHubbub) is a good way to solve the publishers and hubs problems (offloading work and polling lots of sites respectively). The idea with PushHubPullSub is to simplify subscribers by having them poll the hub.<br /> <br /> See&nbsp;<a href="http://sandeep.shetty.in/2013/06/does-polling-scale-better-than-push.html">Does polling scale better than push</a>?<br /> <br /> <b>Update</b>: Moved the <i>Does polling scale better than push</i>&nbsp;section to a blog post of it's own.<br /> <br /> This was inspired by my notes on&nbsp;<a href="http://indiewebcamp.com/push-vs-pull">Push vs Pull</a>&nbsp;on the&nbsp;<a href="http://indiewebcamp.com/">IndieWebCamp wiki</a>.</div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]1tag:blogger.com,1999:blog-11685859.post-42314721008414394412013-05-31T12:15:00.000+05:302013-05-31T12:38:28.581+05:30RecentChanges, a simple alternative to ActivityStreams<div dir="ltr" style="text-align: left;" trbidi="on"> <div style="text-align: left;"> <span style="font-family: Arial, Helvetica, sans-serif;">For updates watch:&nbsp;<a href="https://github.com/converspace/recentchanges">https://github.com/converspace/recentchanges</a></span><br /> <span style="font-family: Arial, Helvetica, sans-serif;"><br /></span> <span style="font-family: Arial, Helvetica, sans-serif;">Some thoughts on representing updates to a&nbsp;site inspired by wiki style RecentChanges:</span></div> <div style="text-align: left;"> </div> <div style="text-align: left;"> </div> <ul style="text-align: left;"> <li><span style="font-family: Arial, Helvetica, sans-serif;">Every resource (URL) has a RecentChanges endpoint.</span></li> </ul> <ul style="text-align: left;"> <li><span style="font-family: Arial, Helvetica, sans-serif;">The RecentChanges endpoint at each level of the (URL)&nbsp;hierarchy&nbsp;aggregates all RecentChanges under it.</span></li> </ul> <ul style="text-align: left;"><ul> <li><span style="font-family: Arial, Helvetica, sans-serif;">The&nbsp;RecentChanges endpoint of the&nbsp;site aggregates site-wide&nbsp;RecentChanges.</span></li> </ul> </ul> <ul style="text-align: left;"> <li><span style="font-family: Arial, Helvetica, sans-serif;">RecentChanges only requires/uses 4 verbs:&nbsp;Post, Respond, Update, Delete. (open to renaming these but the idea is that 4 verbs are enough)</span></li> </ul> <ul> <li><span style="font-family: Arial, Helvetica, sans-serif;">Examples:</span></li> </ul> <ul style="text-align: left;"><ul> <li><span style="font-family: Arial, Helvetica, sans-serif;">Sandeep Shetty posted Foobar. (new post)</span></li> </ul> </ul> <ul style="text-align: left;"><ul> <li><span style="font-family: Arial, Helvetica, sans-serif;">Sandeep Shetty updated Foobar. (edited an existing post)</span></li> </ul> </ul> <ul style="text-align: left;"><ul> <li><span style="font-family: Arial, Helvetica, sans-serif;">AnonymousOnPurpose&nbsp;responded to Foobar. (commented on a post - could even be a response to a specific comment)</span></li> </ul> </ul> <ul style="text-align: left;"><ul> <li><span style="font-family: Arial, Helvetica, sans-serif;">Sandeep Shetty deleted Foobar. (deleted a post)</span></li> </ul> </ul> <br /></div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-31150611547034963772013-05-06T05:45:00.000+05:302013-06-07T22:44:16.241+05:30Thinking About Metadata<div dir="ltr" style="text-align: left;" trbidi="on"> Some of my thoughts on tagging and metadata in <a href="https://github.com/converspace/converspace">Converspace</a>:<br /> <br /> <ul style="text-align: left;"> <li><b>Syntax over Interface</b>: I prefer (from a user experience perspective) how tagging (and other meta-data like mentions, etc.) evolved on Twitter to be just syntax and became part of the content (without being obtrusive) with no special interface elements dedicated to them. This allows for the same interface to serve people that don't need them, and the ones that do. Invisible to the users that don't need it but yet, always there for people that need it.</li> <li><b>Visible Metadata</b>: My preference for tags&nbsp;being part of the content has the advantage of them being always visible (moves/hangs with the content). However, it also has the disadvantage of not being able to&nbsp;cleanly&nbsp;do things like <i>private tags</i>&nbsp;(like how <a href="https://pinboard.in/">Pinboard</a>&nbsp;does with <a href="https://pinboard.in/tour/#privacy">tags that start with a period</a>. e.g., <span style="font-family: Courier New, Courier, monospace;">.secret_tag</span>). One obvious advantage of private tags is that you can do stuff like what <a href="https://www.facebook.com/selectivetwitter/info">Selective Tweets</a>&nbsp;does with the #fb tag, but without having a visible public tag: like this IFTTT receipe&nbsp;that <a href="https://ifttt.com/recipes/14872">crossposts Pinboard bookmarks to Twitter that have the <span style="font-family: Courier New, Courier, monospace;">.twitter</span> private tag</a>. <strike>For the specific use case of publishing workflows, I'm considering using (something I'm calling) local&nbsp;<i>action tags</i> (tags that start with &amp;, e.g.,&nbsp;<span style="font-family: Courier New, Courier, monospace;">&amp;action_tag)</span>&nbsp;that are&nbsp;ephemeral&nbsp;and&nbsp;consumed by the publishing workflow and not saved as part of the content. Action tags obviously cannot be&nbsp;interspersed&nbsp;with the content and will have to be added at the end. Still need to figure out how this will work when the publishing workflow is also adding machine tags at the end.</strike>&nbsp;</li> </ul> <b>Update (after sleeping over it)</b>: Won't be implementing actions tags (as described above) because of it's limited scope (especially when it comes to allowing third-parties to participate in the publishing workflow) <strike>and I'm on the fence about&nbsp;<a href="http://tagaholic.me/2009/03/26/what-are-machine-tags.html">Machine/Triple tags</a></strike>.<br /> <br /> <b>Update (May 07, 2013)</b>:<br /> <ul style="text-align: left;"> <li><b>Auto-tagging</b>: Allow for the publishing workflow to automatically add tags (including&nbsp;<a href="http://tagaholic.me/2009/03/26/what-are-machine-tags.html">Machine/Triple tags</a>). This is hard when you&nbsp;don't have a separate tags property and&nbsp;only have one blob of text (content). For example, it might not make sense to add tags at the end of single-line post when it is missing an ending&nbsp;punctuation mark. To allow for auto-tagging, I came up with a syntax for&nbsp;<i>trailing tags</i>. <i>Trailing tags&nbsp;are preceded by a blank line, starts with two spaces, followed by space-separated tags, followed by the end-of-string</i>. e.g., "<span style="font-family: Courier New, Courier, monospace;">\n\n &nbsp;#additional_tag1 #additional_tag2"</span>. Trailing tags&nbsp;can be added at the end of content if they do not exist or tags can be appended to existing ones. I chose this syntax for the following reasons:</li> <ul> <li>When viewing the Markdown, trailing tags appear slightly indented, which visually separates them from the rest of the content.</li> <li>AFAIK, it doesn't conflict with existing Markdown&nbsp;syntax. This makes it invisible when rendered&nbsp;by processors that don't support it.</li> </ul> </ul> <b>Update (June 05, 2013)</b>:<br /> <br /> <ul style="text-align: left;"> <li><b>Machine tags are invisible metadata</b>: Machines tags provide context for "machines" and should be syndicated but not displayed.</li> </ul> <br /> <div> <br /></div> <div> <b>See also</b>:</div> <div> <ul style="text-align: left;"> <li><a href="http://microsyntax.pbworks.com/w/page/20869409/Sightings">http://microsyntax.pbworks.com/w/page/20869409/Sightings</a></li> <li><a href="http://www.flickr.com/groups/api/discuss/72157594497877875/">Flickr: Discussing Machine tags in Flickr API</a></li> <li><a href="http://pigsonthewing.wordpress.com/2008/07/04/triple-tags-on-twitter/">http://pigsonthewing.wordpress.com/2008/07/04/triple-tags-on-twitter/</a></li> <li><a href="http://microformats.org/wiki/microblogging-nanoformats">http://microformats.org/wiki/microblogging-nanoformats</a></li> <li><a href="http://www.pigsonthewing.org.uk/suggested-method-of-publishing-microformats-in-twitter-posts/">http://www.pigsonthewing.org.uk/suggested-method-of-publishing-microformats-in-twitter-posts/</a></li> <li><a href="http://microformats.org/wiki/picoformats">http://microformats.org/wiki/picoformats</a></li> <li><a href="http://twitterdata.org/">http://twitterdata.org/</a></li> <li><a href="http://blog.wolfspelz.de/2009/09/twitter-microtagging-personal-tags.html">http://blog.wolfspelz.de/2009/09/twitter-microtagging-personal-tags.html</a></li> <li><a href="http://microsyntax.pbworks.com/w/page/20869401/Publishing">http://microsyntax.pbworks.com/w/page/20869401/Publishing</a></li> </ul> </div> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-15240540215750426132013-04-29T05:24:00.002+05:302013-04-30T13:03:22.739+05:30Webmention action<div dir="ltr" style="text-align: left;" trbidi="on"> <br /> Exicted to see all the action around <a href="http://webmention.org/">webmention</a>, a modern alternative to the pingback protocol I drafted.<br /> <br /> <ul style="text-align: left;"> <li><a href="http://tantek.com/2013/113/b1/first-federated-indieweb-comment-thread">http://tantek.com/2013/113/b1/first-federated-indieweb-comment-thread</a>&nbsp;&nbsp;</li> <li><a href="http://aaronparecki.com/articles/2013/03/31/1/a-response-to-replies-i-received-on-my-post-an-open-challenge-to-app-net">http://aaronparecki.com/articles/2013/03/31/1/a-response-to-replies-i-received-on-my-post-an-open-challenge-to-app-net</a>&nbsp;</li> <li>Client library for sending webmention and pingback notifications:&nbsp;<a href="https://github.com/aaronpk/mention-client">https://github.com/aaronpk/mention-client</a></li> <li><a href="http://pingback.me/">pingback.me</a>, a service to convert Pingbacks to WebMentions</li> <li><a href="http://indiewebcamp.com/comment">http://indiewebcamp.com/comment</a></li> <li><a href="http://indiewebcamp.com/webmention">http://indiewebcamp.com/webmention</a></li> <li><a href="http://lists.w3.org/Archives/Public/public-rww/2013Apr/0078.html">http://lists.w3.org/Archives/Public/public-rww/2013Apr/0078.html</a></li> </ul> <br /></div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-37565993421494634782013-04-07T02:55:00.000+05:302013-04-07T02:55:35.440+05:30Grains vs Milk<div dir="ltr" style="text-align: left;" trbidi="on"> <br /> <blockquote class="tr_bq"> "It's also important to consider the big picture when judging the suitability of various foods. It helps to tell stories about the food we eat, to think about narratives. Grains aren't just little morsels of protein, carbs, and fiber bred for our enjoyment. They are baby plant eggs. Those macronutrients are there to sustain the seed's growth and those micronutrients are there to protect it. They are the plant's lifeline to immortality. They are literally shaped by the hand of evolution to survive and ravage the digestive tract of the poor sap that swallows them and discourage further consumption. Grain is only food because we deemed it so. Dairy? Dairy is objectively, absolutely food. Its fat, protein, and carbs are there to be consumed, albeit by young cows, sheep, and goats. It's meant to spur growth, to pack on muscle and fat and weight. And yeah, eating dairy protein causes an insulin spike, but that can be useful if you know what you're doing." -- <a href="http://www.marksdailyapple.com/dairy-insulin/">http://www.marksdailyapple.com/dairy-insulin/</a></blockquote> </div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-53329762466696757452013-03-10T05:10:00.000+05:302013-04-18T09:56:03.273+05:30Habit Domino, the simplest habit-forming/habit-tracking android app that could possibly work<div dir="ltr" style="text-align: left;" trbidi="on"> What started out as an audacious idea inspired by a <a href="http://sandeep.shetty.in/2013/01/finishing.html">death in the family</a>, to build a game-like habit-forming/habit-tracking android&nbsp;app (codenamed <b>World of Doers</b>), got <a href="http://sandeep.shetty.in/2013/03/just-enough.html">refined</a> into <a href="https://play.google.com/store/apps/details?id=com.simpthings.habitdomino">the simplest habit-forming/habit-tracking app that could possibly work</a>.<br /> <br /> The basic premise of <a href="https://play.google.com/store/apps/details?id=com.simpthings.habitdomino">Habit Domino</a> is that once you've committed to forming a habit, the simple act of recording the routine and visiting the app once a day, has a sort of domino effect, driven by awareness and emotion, that gets you to complete the routine consistently till it turns into a habit.<br /> <br /> No Graphs. No Reminders. Just commit to forming the habit and visit the app once a day.</div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-34696785837683951182013-03-10T04:37:00.000+05:302013-03-10T04:37:14.336+05:30Just Enough<div dir="ltr" style="text-align: left;" trbidi="on"> There is a point at which a solution is just enough to solve a problem. Anything less and it won't solve the problem and anything more will only add marginally utility.<br /> <br /> This is especially important because customers usually assign a certain value to a solution and therefore, are willing to pay a certain amount for it. Adding more features doesn't necessarily mean they'll pay more. Strive instead to refine your ideas by removing stuff till you're left with just enough to solve the problem at hand.</div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-30777311292349134442013-03-10T03:35:00.000+05:302013-03-10T05:13:16.596+05:30Ambition is the side-effect of a finite (limited) mind<div dir="ltr" style="text-align: left;" trbidi="on"> Since we have a finite (limited) mind we cannot possibly "see" things in their entirety. So we&nbsp;aggregate&nbsp;and summarize.&nbsp;Instead of seeing the journey that is someone's life, we focus on the destinations they're reached. It's little wonder then that we aspire to reach destinations instead of paying attention to the journey and price we pay to get to our destinations.<br /> <br /> This post was inspired by Clayton Christensen's&nbsp;<b>How Will You Measure Your Life?</b>&nbsp;TEDxBoston talk from 2010&nbsp;:<br /> <iframe allowfullscreen="" frameborder="0" height="236" src="http://www.youtube.com/embed/tvos4nORf_Y" width="420"></iframe></div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-49377413522388493912013-01-24T02:52:00.001+05:302013-01-24T02:54:52.316+05:30Fiction<div dir="ltr" style="text-align: left;" trbidi="on"> <span style="font-family: inherit; line-height: 18px;">All memory is fiction. Facts are just part of the plot.</span></div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-12166710152307365402013-01-24T02:51:00.002+05:302013-01-24T02:55:07.350+05:30Explore<div dir="ltr" style="text-align: left;" trbidi="on"> <span style="color: #333333; font-family: lucida grande, tahoma, verdana, arial, sans-serif;"><span style="line-height: 18px;">Almost all good things in life are stumbled upon (found), not reached. Explore.</span></span></div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-45021878345167744922013-01-24T02:35:00.001+05:302013-01-24T02:49:32.824+05:30Finishing<div dir="ltr" style="text-align: left;" trbidi="on"> With yet another person in the family passing away, I find myself in that, by now, familiar zone of reflecting on all the things I haven't finished, that I want to, before I die. I imagine being told that I have 2 months to live. What would I do? What would I finish?<br /> <br /> This state is very similar to the days leading up to a long vacation. The time when you're the most productive because you want to finish things so that you can get them out of the way and enjoy your vacation without worries.<br /> <br /> I want to feel this way all the time. I want to always be <strike>dying</strike> finishing.</div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]3tag:blogger.com,1999:blog-11685859.post-21514871179755524642013-01-24T02:21:00.001+05:302013-01-24T02:24:02.526+05:30No Risk<div dir="ltr" style="text-align: left;" trbidi="on"> Taking risks won't seem daunting if you don't think in terms of right or wrong. Make a choice and execute full-on.</div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0tag:blogger.com,1999:blog-11685859.post-11568304376100465212012-10-29T13:23:00.001+05:302012-10-29T13:23:37.624+05:30Password Free Database<div dir="ltr" style="text-align: left;" trbidi="on"> Got around to implementing <a href="https://developer.mozilla.org/en-US/docs/persona">Mozilla Persona</a> for <a href="https://github.com/converspace/converspace">Converspace</a>. It has its flaws but not having to store user passwords in the db is a big win!</div> Sandeep Shettyhttp://www.blogger.com/profile/05858379451002808518[email protected]0