index.html 18.7 KB
Newer Older
Pallav Agarwal's avatar
Pallav Agarwal committed
1
<title>Homepage - VARSTACK</title>
2 3 4 5 6 7 8
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
9 10 11 12
}(document, 'script', 'facebook-jssdk'));
var host = "varstack.com";
var hostwww = "www.varstack.com";
if (((host == window.location.host) || (hostwww == window.location.host))
13
        && (window.location.protocol != 'https:'
Pallav Agarwal's avatar
Pallav Agarwal committed
14
            || window.location.toString().match(/http.?:\/\/var/))){
15
  window.location = window.location.toString().replace(/^http:/, "https:").replace(/https:\/\/varstack/, "https://www.varstack");
16 17
}
</script>
Pallav Agarwal's avatar
Pallav Agarwal committed
18
<meta name=viewport content="width=device-width, initial-scale=1">
Pallav Agarwal's avatar
Pallav Agarwal committed
19 20
<meta charset="utf-8"/>

Pallav Agarwal's avatar
Pallav Agarwal committed
21
<noscript>
Pallav Agarwal's avatar
Pallav Agarwal committed
22
    <link href="/css/bootstrap.min.css" rel="stylesheet">
Pallav Agarwal's avatar
Pallav Agarwal committed
23 24 25
    <link href="/css/highlighting.css" rel="stylesheet">
    <link href="/css/style.css" rel="stylesheet">
    
26
    
Pallav Agarwal's avatar
Pallav Agarwal committed
27
</noscript>
28

Pallav Agarwal's avatar
Pallav Agarwal committed
29
<script id="loadcss">function loadCSS(e,n,o,t){"use strict";var d=window.document.createElement("link"),i=n||window.document.getElementsByTagName("script")[0],r=window.document.styleSheets;return d.rel="stylesheet",d.href=e,d.media="only x",t&&(d.onload=t),i.parentNode.insertBefore(d,i),d.onloadcssdefined=function(e){for(var n,o=0;o<r.length;o++)r[o].href&&r[o].href===d.href&&(n=!0);n?e():setTimeout(function(){d.onloadcssdefined(e)})},d.onloadcssdefined(function(){d.media=o||"all"}),d}
Pallav Agarwal's avatar
Pallav Agarwal committed
30
loadCSS( "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css", document.getElementById("loadcss"));
Pallav Agarwal's avatar
Pallav Agarwal committed
31 32 33
loadCSS( "/css/highlighting.css", document.getElementById("loadcss"));
loadCSS( "/css/style.css", document.getElementById("loadcss"));
    
34
    
Pallav Agarwal's avatar
Pallav Agarwal committed
35
</script>
Pallav Agarwal's avatar
Pallav Agarwal committed
36 37 38

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
Pallav Agarwal's avatar
Pallav Agarwal committed
39
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
Pallav Agarwal's avatar
Pallav Agarwal committed
40 41 42
    <![endif]-->

    
43
    <img src="/img/homepage.png" id="bg-img" alt="VARSTACK Logo - Bugs are always there">
Pallav Agarwal's avatar
Pallav Agarwal committed
44 45 46
    
    <div class="container">
        <div class="row" id="menu">
47 48 49 50
            <div class="col-sm-2 col-xs-2 menu" id="site_title">
                <a href="/" style="color:black;">
                    <img src="/img/logo.png" style="max-height:90%;">
                </a>
Pallav Agarwal's avatar
Pallav Agarwal committed
51
            </div>
52
            <div class="col-sm-6 col-xs-10 menu">
Pallav Agarwal's avatar
Pallav Agarwal committed
53 54 55
                <div class="row" id="top_menu">
                    <ul class="nav nav-pills">
                        <li class="active" id="blog"><a class="color_change" href="/">Blog</a></li>
56 57 58
                        <li class="" id="tips"><a class="color_change" href="/tips/">Tips</a></li>
                        <li class="" id="algo"><a class="color_change" href="/algo/">Behind The Scenes</a></li>
                        <li class="" id="about"><a class="color_change" href="/about_me/">About Me</a></li>
Pallav Agarwal's avatar
Pallav Agarwal committed
59
                    </ul>
Pallav Agarwal's avatar
Pallav Agarwal committed
60 61
                </div>
            </div>
62 63 64 65 66
            <div class="col-sm-4 col-xs-12 menu">
                <form action="/search/" id='search-form'>
                    <input id="search-box" type="text" name="query" placeholder="Search..">
                </form>
            </div>
Pallav Agarwal's avatar
Pallav Agarwal committed
67 68 69 70 71
        </div>
        
        <div class="row" id="image"> </div>
        
        <div class="row" id="content">
Pallav Agarwal's avatar
Pallav Agarwal committed
72
            <div class="col-md-7 col-md-push-3">
Pallav Agarwal's avatar
Pallav Agarwal committed
73
                <div class="row" id="data">
Pallav Agarwal's avatar
Pallav Agarwal committed
74 75 76 77 78 79 80
                    <div class="col-md-12">
                        <br />
                        <h3>Homepage</h3>
                        <hr />
                        <div class="row text-justify" id="content-holder">
                            <div class="col-md-12">
                                
81 82 83 84 85 86 87 88 89
  <a href="/2017/07/10/How-far-have-I-come-working-at-Google/">AN INTERN'S VIEWS - HOW FAR HAVE I COME?</a>
  <p class="author" style="text-align: right;">
    <span class="date">Jul 10, 2017</span>
  </p>
  <div class="content">
    <p>AKA, what the hell about work? I have gone on and on about getting here. The things I found here. But I have still made no mention of what I do here. Well, here it is. So sit back, and read on.</p> <ol> <li><a href="/2017/05/07/How-I-got-here/">An intern's views - How I got here</a></li> <li><a href="/2017/06/07/A-month-end-at-Google/">An intern's views - A month's end at Google</a></li> <li><a href="/2017/07/10/How-far-have-I-come-working-at-Google/">An intern's views - How far have I come?</a></li> <li>An intern's views - End of diary</li> </ol> <p>In case you haven't read the last article, you might want to.</p> <p>So where were we? Oh yeah, end of...
  </div>
  <br /><br />

90 91 92 93 94
  <a href="/2017/06/07/A-month-end-at-Google/">AN INTERN'S VIEWS - A MONTH'S END AT GOOGLE</a>
  <p class="author" style="text-align: right;">
    <span class="date">Jun 07, 2017</span>
  </p>
  <div class="content">
95
    <p>The series:</p> <ol> <li><a href="/2017/05/07/How-I-got-here/">An intern's views - How I got here</a></li> <li><a href="/2017/06/07/A-month-end-at-Google/">An intern's views - A month's end at Google</a></li> <li><a href="/2017/07/10/How-far-have-I-come-working-at-Google/">An intern's views - How far have I come?</a></li> <li>An intern's views - End of diary</li> </ol> <p>Okay, okay.. I know this article is a bit late (and I've backdated it a bit), but I've been really busy. As it turns out, work at Google isn't all that easy (...did I think it would be?). But I'll get to that later 😉.</p> <p>So let's walk through my first few days in the office. So, on my first...
96 97 98
  </div>
  <br /><br />

99 100 101 102 103
  <a href="/2017/05/07/How-I-got-here/">AN INTERN'S VIEWS - HOW I GOT HERE</a>
  <p class="author" style="text-align: right;">
    <span class="date">May 07, 2017</span>
  </p>
  <div class="content">
104
    <p>AKA, how I got an internship in Google. In case you were wondering why the actual title is so obscure, it is because I want this article to be mostly linked by the rest of the (monthly) articles in this series (I'll update the links as I write them)</p> <ol> <li><a href="/2017/05/07/How-I-got-here/">An intern's views - How I got here</a></li> <li><a href="/2017/06/07/A-month-end-at-Google/">An intern's views - A month's end at Google</a></li> <li><a href="/2017/07/10/How-far-have-I-come-working-at-Google/">An intern's views - How far have I come?</a></li> <li>An intern's views - End of diary</li> </ol> <p>So, for those who know me, you'd know that getting into Google had...
105 106 107
  </div>
  <br /><br />

108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
  <a href="/2016/09/26/YourHonour-k8s-programming-judge/">YOURHONOUR: A K8S BASED DISTRIBUTED PROGRAMMING JUDGE</a>
  <p class="author" style="text-align: right;">
    <span class="date">Sep 26, 2016</span>
  </p>
  <div class="content">
    <p>So, this is something I have been working on recently for some time. The project's name is YourHonour, and is is a Kubernetes(k8s) based Online Judge for organising programming competitions.</p> <p><strong>YourHonour</strong> came into being because the Open Source solutions already present either do not fit all the criteria, or are just too hard to setup. The ones that are easy to set up, as well as provide complete functionality are either paid, or non-free.</p> <p>Anyway, I decided to build my own judge. Hell, how hard can it be? As it turns out, creating a judge isn't as easy as I...
  </div>
  <br /><br />

  <a href="/2016/06/09/Bugzilla-Landfills/">LEARNING FROM MISTAKES: BUGZILLA LANDFILLS</a>
  <p class="author" style="text-align: right;">
    <span class="date">Jun 09, 2016</span>
  </p>
  <div class="content">
    <p>This post is regarding a recent incident that happened when I was working for my project in Google Summer of Code.</p> <p>My day's task was to automate the filing of a bug in bugzilla if and when a build fails. Though, not too hard, it would obviously require testing, because I can't just assume that my code would work the way it is supposed to.</p> <p>This didn't seem like much of a problem at that time. What I decided to do was, test on a single bug and delete it when I'm done. Simple Enough?</p> <p>As it turns out, it...
  </div>
  <br /><br />

Pallav Agarwal's avatar
Pallav Agarwal committed
126 127 128 129 130 131 132 133 134
  <a href="/2016/05/13/SAT-Solver/">DETERMINING LEGAL USE FLAG COMBINATIONS USING A CNF SAT SOLVER</a>
  <p class="author" style="text-align: right;">
    <span class="date">May 13, 2016</span>
  </p>
  <div class="content">
    <p>I spent my time doing something rather interesting today.</p> <p>In my proposal, I had mentioned that the USE flag combinations to be tested would be:</p> <blockquote><p>Without any USE flag turned on</p> <p>With all USE flags turned on</p> <p>Few random combinations based on default flags, or inverse of default flags or those generated by tatt.</p></blockquote> <p>Yesterday, a guy, Harald Timeraider pointed out that some of the USE flag combinations given by the above rules may not be legal. For example, if an ebuild specifies <code>REQUIRED_USE="^^ (a b c)"</code> then EXACTLY one flag out of <code>a</code>, <code>b</code>, and <code>c</code> should be enabled....
  </div>
  <br /><br />

135 136 137 138 139
  <a href="/2016/05/13/Reference-Sheets-and-Useful-Links/">REFERENCE SHEETS AND USEFUL LINKS</a>
  <p class="author" style="text-align: right;">
    <span class="date">May 13, 2016</span>
  </p>
  <div class="content">
140
    <p>This post was long due. I often find blog posts, reference sheets and useful links that I feel I should bookmark. However, I often lose these bookmarks when I shift Operating Systems or browsers (which happens very often). I am hoping that this will be a better and a more reliable way to keep track of all these resources.</p> <ol> <li><a href="http://python-future.org/compatible_idioms.html">Python Future</a>: This is a brilliant cheat sheat to write cross compatible code for both PYTHON-2 and PYTHON-3</li> <li><a href="http://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/">What Color is Your Function?</a>: An absolutely amazing article about the design choices of a <em>modern language</em>. I won't spoil...
141 142 143
  </div>
  <br /><br />

144 145 146 147 148 149 150 151 152
  <a href="/2016/05/06/Ultimate-control-over-mobile-browser/">ULTIMATE CONTROL OVER MOBILE BROWSER WITH FIREFOX</a>
  <p class="author" style="text-align: right;">
    <span class="date">May 06, 2016</span>
  </p>
  <div class="content">
    <p>It is no secret that I love firefox. Even though sometimes, it can run a bit slower than Chrome, Firefox has always provided me with better developer tools and better control over all of my settings, even those which are usually unavailable via <code>about:config</code>.</p> <p>However, it was only recently that I discovered, that <code>about:config</code> works flawlessly on the mobile version of the firefox browser too. That means, all of the features you'd think that mobile browsers miss, like proxy settings, cache, pipelining settings, etc. can be found just by typing <code>about:config</code> on the URL.</p> <p>Before you go off try, and...
  </div>
  <br /><br />

153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
  <a href="/2016/05/06/SSH-port-forwarding-and-some-cool-uses/">SSH PORT FORWARDING AND SOME COOL USES</a>
  <p class="author" style="text-align: right;">
    <span class="date">May 06, 2016</span>
  </p>
  <div class="content">
    <p>I'll begin with some of the bare minimum and absolutely amazing things ssh port forwarding is capable of, and see if I can convert this to a proper blog post later.</p> <p><br/></p> <h4><strong>1. Local port forwarding</strong></h4> <p>Syntax:</p> <pre><code>ssh -L8081:example.com:80 pallav@myserver.com </code></pre> <p>Meaning: Opens a SSH connection to myserver.com, and forward all requests to <strong>my</strong> port 8081 to port 80 (default http port) of example.com <em>via</em> myserver. Thus, if example.com is blocked on my PC, but it can be accessed by some other PC which I have ssh access to, then I can use this command to gain access to the...
  </div>
  <br /><br />

  <a href="/2016/04/30/Google-Summer-of-Code-with-Gentoo/">GOOGLE SUMMER OF CODE WITH GENTOO</a>
  <p class="author" style="text-align: right;">
    <span class="date">Apr 30, 2016</span>
  </p>
  <div class="content">
    <p>I am excited to say that I've been accepted for this year's summer of code under Gentoo Organisation. <a href="/gsoc">This section of the blog</a> will be dedicated to documenting anything and everything I learn that is interesting or remotely related to my project.</p> <p>My proposal for the project can be found <a href="/img/gsoc.pdf">here</a>. The abstract for the same has been given below.</p> <blockquote><p>Gentoo is an operating system with extreme focus on configurability and performance. To provide fully customizable experience, without interfering with the stability of the system, Gentoo has a concept of masked packages. These masked packages (or versions) are...
  </div>
  <br /><br />

Pallav Agarwal's avatar
Pallav Agarwal committed
171 172 173 174

<!-- Pagination links -->
<div class="pagination" style="text-align: center; width: 100%;">
  
Pallav Agarwal's avatar
Pallav Agarwal committed
175
  <span class="page_number ">Page: 1 of 3</span>
176 177
  
    <a href="/page2" class="next">Next</a>
Pallav Agarwal's avatar
Pallav Agarwal committed
178 179
  
</div>
Pallav Agarwal's avatar
Pallav Agarwal committed
180

Pallav Agarwal's avatar
Pallav Agarwal committed
181 182
                            </div>
                        </div>
Pallav Agarwal's avatar
Pallav Agarwal committed
183 184
                    </div>
                </div>
185
                <hr /><br />
Pallav Agarwal's avatar
Pallav Agarwal committed
186 187 188 189 190
            </div>
            <div class="col-md-3 col-md-pull-7" id="recent">
                <h4>RECENT POSTS</h4>
                <ul class="nav nav-pills nav-stacked">
                    
191 192 193 194
                    <li>
                        <a href="/2017/07/10/How-far-have-I-come-working-at-Google/" class="color_change">An intern's views - How far...</a>
                    </li>
                    
195 196 197 198
                    <li>
                        <a href="/2017/06/07/A-month-end-at-Google/" class="color_change">An intern's views - A month's...</a>
                    </li>
                    
199 200 201 202
                    <li>
                        <a href="/2017/05/07/How-I-got-here/" class="color_change">An intern's views - How I...</a>
                    </li>
                    
203 204 205 206
                    <li>
                        <a href="/2016/09/26/YourHonour-k8s-programming-judge/" class="color_change">YourHonour: A k8s based distributed programming...</a>
                    </li>
                    
207
                    <li>
208
                        <a href="/2016/06/09/Bugzilla-Landfills/" class="color_change">Learning from mistakes: Bugzilla Landfills</a>
209 210
                    </li>
                    
Pallav Agarwal's avatar
Pallav Agarwal committed
211 212 213 214
                </ul>
                <h4>RECENT TIPS</h4>
                <ul class="nav nav-pills nav-stacked">
                    
215 216 217 218
                    <li>
                        <a href="/2016/05/06/Ultimate-control-over-mobile-browser/" class="color_change">Ultimate control over Mobile Browser with...</a>
                    </li>
                    
219 220 221 222
                    <li>
                        <a href="/2016/04/27/SSH-keys/" class="color_change">Easy sharing of SSH keys</a>
                    </li>
                    
223 224 225 226
                    <li>
                        <a href="/2015/08/01/SSH-from-Windows/" class="color_change">Using SSH from Windows 10 without...</a>
                    </li>
                    
Pallav Agarwal's avatar
Pallav Agarwal committed
227 228 229 230
                    <li>
                        <a href="/2015/07/27/Boost-Python-Performance/" class="color_change">Cython: Boost Python Code Performance</a>
                    </li>
                    
Pallav Agarwal's avatar
Pallav Agarwal committed
231
                    <li>
232 233 234 235 236 237 238 239 240
                        <a href="/2015/07/01/Vim-Mappings/" class="color_change">Quick intro to custom Vim Mappings...</a>
                    </li>
                    
                </ul>
                <h4>TAGGED POSTS</h4>
                <ul class="nav nav-pills nav-stacked">
                    
                    <li>
                        <a href="/2016/05/13/Reference-Sheets-and-Useful-Links/" class="color_change">Reference Sheets and Useful Links</a>
Pallav Agarwal's avatar
Pallav Agarwal committed
241 242 243 244 245 246 247 248 249
                    </li>
                    
                </ul>
                <br />
                <br />
            </div>
            <div class="col-md-2">
            </div>
            <div class="row">
250
                <div class="col-md-7 col-md-offset-3 col-xs-10 col-xs-offset-1">
251 252
                    <div class="row">
                            <div class="col-xs-4">
Pallav Agarwal's avatar
Pallav Agarwal committed
253
                                <div class="fb-like" data-href="//www.varstack.com" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
254 255 256 257 258 259 260
                            </div>
                            <div class="col-xs-8 text-right">
                                <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
                                <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
                                <script src="/js/script.js"></script>
                                
                                
261
                                
262 263 264 265 266 267 268
                            </div>
                    </div>
                    <br/>
                </div>
                <div class="col-md-7 col-md-offset-3 col-xs-10 col-xs-offset-1">
                    <div id="disqus_thread"></div>
                    <script type="text/javascript" async>
269 270 271 272 273 274 275 276 277
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = 'varstack';

/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
    dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
Pallav Agarwal's avatar
Pallav Agarwal committed
278 279 280 281 282 283 284
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-21768487-2', 'auto');
ga('send', 'pageview');
285 286
                    </script>
                    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
Pallav Agarwal's avatar
Pallav Agarwal committed
287
                </div>
Pallav Agarwal's avatar
Pallav Agarwal committed
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
            </div>
        </div>
    </div>


    <div class="modal fade" id="imagemodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                        <span class="sr-only">Close</span>
                    </button>
                    <h4 class="modal-title" id="myModalLabel">
                        Image Preview
                    </h4>
                </div>
                <div class="modal-body">
                    <img src="" id="imagepreview" style="max-height: 100%; max-width: 100%;">
                </div>
            </div>
        </div>
    </div>