<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ranveer Aggarwal</title>
    <description>Programmer. Reader. Explorer.</description>
    <link>https://ranveeraggarwal.com/</link>
    <atom:link href="https://ranveeraggarwal.com/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Fri, 17 Jul 2026 21:17:46 +0000</pubDate>
    <lastBuildDate>Fri, 17 Jul 2026 21:17:46 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>Time Travel Accountability</title>
        <description>&lt;p&gt;A few months ago, I wanted to learn a musical instrument.  &lt;br /&gt;
Borrowed a Guitar from a friend and went through the basics. One night, as I lay awake in my bed, staring at the ceiling fan, I realized it’ll take a while for me to be good at it. The next thought that went through my head was,&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;I wish I had started this when I was 17.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I could’ve. My parents, realizing that the only way their typical studious kid was going to be cool in college was by playing Wonderwall on the six string. They enrolled me in a Guitar class. I saw other kids younger than me playing well already and was dejected. Didn’t continue further.&lt;/p&gt;

&lt;p&gt;Anyhow, so as the night progressed, imagining a life that could’ve been, I was struck with an interesting thought. I dream-traveled into the future.&lt;/p&gt;

&lt;p&gt;It’s 8 years from now. I am 33. Same dilapidated room, same single bed that’s too small for me to completely fit in. Future me has a lot less hair on his head, a lot more fat on his belly and wrinkles have started showing up. And similar thoughts plague me.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;I wish I had started something creative when I was 25.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Except this time, I have the power of time travel. My 33 year old can travel back 8 years and ask him to get in line. Thanks, future me! You are selfish AF, but hey! You set me straight.&lt;/p&gt;

&lt;p&gt;And here, I discovered another way to look at long term gratification (that I dub Time Travel Accountability).
A lot of us have been conditioned to work better when we’re accountable to someone. That may be our parents, our boss, our coach, sensei, dog, imaginary friend, whatever. I am here to tell you that there’s no one you’d rather impress than the 8 years future you. Because that person knows you - inside out, that person is super critical of you and that person has your best interests in mind. Wouldn’t you want that person to respect you?&lt;/p&gt;

&lt;p&gt;As the ancient Chinese proverb says,&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;The best time to plant a tree was 20 years ago. The second best time is now.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Well, you know what to do.&lt;/p&gt;

&lt;p&gt;Oh and those who are curious regarding where I am with music now, well it’s in a state of indefinite pause. I realised that there’s only so much bandwidth I can give to learning stuff and there are other priorities in life right now.&lt;/p&gt;
</description>
        <pubDate>Mon, 27 Jul 2020 09:30:00 +0000</pubDate>
        <link>https://ranveeraggarwal.com/blog/time-travel-accountability</link>
        <guid isPermaLink="true">https://ranveeraggarwal.com/blog/time-travel-accountability</guid>
        
        <category>musings</category>
        
        <category>goals</category>
        
        <category>accountability</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>Entering the Next Decade</title>
        <description>&lt;p&gt;Hello, 2020! Today is the beginning of a new year and a new decade. While the calendar is a made-up concept, and there’s absolutely no real reason to behave any different, we humans do perceive abstract changes of this nature. This change of date serves as a sort of psychological cache reset - we believe we can leave behind whatever we did before and be different people henceforth - starting today.&lt;/p&gt;

&lt;h3 id=&quot;looking-back&quot;&gt;Looking Back&lt;/h3&gt;
&lt;p&gt;For me, 2019 was a transformative year. Here’s what I think I learned:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Sleep. Reading Matthew Walker’s &lt;em&gt;Why We Sleep&lt;/em&gt; in January changed everything I knew about sleep (which was practically nothing). Sleeping 8 hours a day and keeping a near consistent circadian rhythm probably helped me in doing what follows.&lt;/li&gt;
  &lt;li&gt;Fitness and Nutrition. I’ve been unfit and obese for the 10+ years. That changed to some extent in 2019. Losing 22Kgs through quantified nutrition and physical activity, my quality of life has improved for the better. How did I do it? In short, by watching what I eat and moving more. A detailed post on this soon.&lt;/li&gt;
  &lt;li&gt;People Interactions. In general, dealing with people was always hard for me. I sought to change that this year. Started off with Dale Carnegie’s established set of principles (which, in a nutshell, say “Be Nice to People”). What did I get in return? Probably nothing; it’s an unquantifiable, intangible feeling. It’s just more peaceful to live this way.&lt;/li&gt;
  &lt;li&gt;Read Non-Fiction. I considered myself a reader, but I would only read stories. Turns out, reading facts, real-life accounts, frameworks, ideas, etc can positively change your life. And they did. One book that I’d like to particularly call out here is James Clear’s &lt;em&gt;Atomic Habits&lt;/em&gt;. I’ll probably write some more on that soon.&lt;/li&gt;
  &lt;li&gt;YouTube. Early this year, I cleared my YouTube browsing history. My recommendations majorly consisted of TV Show reruns and clickbaits. Discovered this new genre called infotainment. Starting with VSauce, Veritasium, TED and moving on to Kurzgesagt, 3Blue1Brown, etc. changed the kind of content I consumed during dinner. There’s usually a lot of YouTube videos on anything you can think of. Critiques, discussions, animated narratives. How do they help? Take Kurzgesagt’s video on Dyson Spheres for instance. Watching the video rekindled my interest in astronomy and got me interested enought to grab a book in that space (no pun intended). On the other hand, I had read up Sapiens in one shot. YouTube helped me recall and assimilate what I had read.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And these are a few of the major ones. There’s so much more that I learned from books, videos and in general people around me that I can probably make this a 7-part series where Voldemort dies in the end. However, if there’s one takeaway from 2019, it’s&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Do things that scale&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Crash diets, long continuous work hours, 4-hour workouts just don’t work. Instead what works is slow progression, and of course reading as much subject matter about something as you can.&lt;/p&gt;

&lt;h3 id=&quot;whats-next&quot;&gt;What’s Next?&lt;/h3&gt;
&lt;p&gt;Honestly, I don’t know. None of the above hit me on January 1st 2019. I started fixing my sleep habits in February, my fitness journey late December 2018, reading books late January 2019 and so on. But the fact that it’s a new year and there’s 300+ days of possiblities made me believe that I could do it.&lt;/p&gt;

&lt;p&gt;3 years ago, I had screenshot-ed this pearl of wisdom from a stranger on Hacker News:
&lt;img src=&quot;https://i.imgur.com/iNM9gkV.jpg&quot; class=&quot;img img-responsive&quot; /&gt;
And this year, I think I’m going to try this out.  &lt;br /&gt;
For starters, I want to blog more. From a framework-of-micro-improvements perspective, one blogpost every Saturday. [1]&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;[1] Update (26th July 2020): Yeah yeah, that didn’t happen. Anyhow, better late than never. Expect something soon.&lt;/p&gt;
</description>
        <pubDate>Wed, 01 Jan 2020 09:00:00 +0000</pubDate>
        <link>https://ranveeraggarwal.com/blog/new-year</link>
        <guid isPermaLink="true">https://ranveeraggarwal.com/blog/new-year</guid>
        
        <category>musings</category>
        
        <category>goals</category>
        
        <category>habits</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>GSoC Pre-Selection: Do&apos;s and Don&apos;ts</title>
        <description>&lt;p&gt;If you were a mentor, what would you want in a student?&lt;/p&gt;

&lt;p&gt;As a participant, you are completely unknown to a mentor. You can embellish your resume with all the technologies in the world, with all sorts of exotic projects, but that wouldn’t bump up your chances.   &lt;br /&gt;
Here’s a bunch of Dos and Don’ts:&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;introducing-yourself-to-the-community&quot;&gt;Introducing yourself to the community&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Do&lt;/strong&gt;  &lt;br /&gt;
“Greetings, I am a student, new to open source and I see that this community is gearing up for GSoC this year. This community does work in the field of my interest and I would love to become an active contributor, with this program as my first step. I had a look at the ideas page, and the project titled “XYZ” intrigues me. Since I haven’t worked with this community before, I would like to get started with some simple contributions. I read the getting started guide and here are my doubts …”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don’t&lt;/strong&gt;  &lt;br /&gt;
“Hello, I know C++, give me anything you have that has C++” (because I want a GSOC on my resume and $5500, to yourself).   &lt;br /&gt;
“Hello, I am an olympiad winner with a 10/10 GPA in the most prestigious university of my country where I spent 2 years of mine working my ass off to get in and that makes me better than 99.999% programmers in my country, so select me.”  &lt;br /&gt;
“Hello, I want to GSOC, give me project” (exact words, intentional grammatical mistake).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Make your intent clear. Do your own research. The community isn’t there for you, it’s there for the project. Show interest in the project more than GSoC.&lt;/em&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;pre-gsocpre-mentor-selection-credits-kalpesh-krishna&quot;&gt;Pre-GSoC/Pre-Mentor-Selection [Credits: Kalpesh Krishna]&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Do&lt;/strong&gt;  &lt;br /&gt;
Make small contributions to the project. Solve some trivial bugs. Then make a major contribution. This will take your chances of getting selected to nearly a hundred percent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don’t&lt;/strong&gt;  &lt;br /&gt;
Wait around for someone to give you a project. As a mentor, one has several potential applicants. One would choose the candidate that sounds the most serious about the project.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Sitting around, waiting for your mentor to allot you work almost never helps. You taking initiative and solving bugs does. In most cases, you can never irritate anyone with a stupid question. There IS no stupid question. Generally, mentors love to work along with potential candidates to get them familiar with the codebase. The only thing is, you need to come out, and seem interested.&lt;/em&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;asking-the-mentor-about-the-project&quot;&gt;Asking the mentor about the project.&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Do&lt;/strong&gt;  &lt;br /&gt;
“The project titled XYZ intrigues me, I have done work ABC/Read PQR in this regard and here’s an idea on how to go about this problem. Here’s the diagram showing the idea flow and maybe there are better ways, but this is my take. I am open to suggestions.” (Even if it’s wrong, communicate with him/her on the right approach).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don’t&lt;/strong&gt;  &lt;br /&gt;
“Okay this project is cool. What to do?”  &lt;br /&gt;
“Done. What next?”  &lt;br /&gt;
“Okay done. What do I do next?”&lt;/p&gt;

&lt;p&gt;&lt;em&gt;He’s a mentor, not an instruction manual. Do your own research before asking questions.&lt;/em&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;programming&quot;&gt;Programming&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Do&lt;/strong&gt;  &lt;br /&gt;
“I am proficient with Python, here’s my Github profile to show the same.”  &lt;br /&gt;
“I am not proficient with Python, but I have programmed in C++. I’m working on my Python skills, and here’s where I am reading from.”  &lt;br /&gt;
“I don’t know programming at all, here’s where I am learning from. I am working on this mini-project to teach myself, here’s the Github link.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don’t&lt;/strong&gt;  &lt;br /&gt;
Lie about being proficient, when you aren’t.  &lt;br /&gt;
“I will learn after selection”&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Mentors would prefer enthusiastic students over programming gurus. Do not lie.&lt;/em&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;h3 id=&quot;application&quot;&gt;Application&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Do&lt;/strong&gt;  &lt;br /&gt;
Break the project statement and possible solution down into chunks. Distribute over 3 months. This shows that you know the project. That you’re serious about it. Show it to your mentor, make changes to it, make a draft 1,2,3,4… before final submission. This is what your timeline should look like:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Week 1: Read up required material.&lt;/li&gt;
  &lt;li&gt;Week 2,3: No work due to exams.&lt;/li&gt;
  &lt;li&gt;Week 4: Catch up in Week 2,3. Start on an implementation.&lt;/li&gt;
  &lt;li&gt;Week 5: Start implementation of module 1.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Don’t&lt;/strong&gt;  &lt;br /&gt;
“Okay, Mr. Mentor, I like this project, I’ll submit the application on time.”&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Loop the mentor in. Show him you actually care about the project and understand it.&lt;/em&gt;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;These may look like small things, but these things would help build the mentor’s trust in you. This is the only way a mentor would know you.&lt;/p&gt;

&lt;p&gt;Here are some other tips:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Concentrate on one project at once. Do not indulge in 5 separate communities parallel-y. Choose wisely.&lt;/li&gt;
  &lt;li&gt;Avoid choosing projects like “make a website” unless you have something to show that makes you stand out. There are hundreds of applications for projects like these.&lt;/li&gt;
  &lt;li&gt;Hang around in the community to see projects that are most impactful and immediately required. Try projects like these.&lt;/li&gt;
  &lt;li&gt;Most communities have difficulty levels on their ideas page. Choose the harder projects, you can be sure there’s little or no competition. Plus, no one expects you to complete 100% of such projects in a short span of 3 months.&lt;/li&gt;
  &lt;li&gt;Get your application reviewed by multiple people before sending it across.&lt;/li&gt;
  &lt;li&gt;Start by December if you’re applying by April [Credits: Kalpesh].&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Originally, an answer to &lt;a href=&quot;https://www.quora.com/What-do-mentors-see-in-a-participant-while-selecting-them-for-GSoC-What-skills-should-a-participant-posses-and-how-is-selection-done&quot;&gt;What do mentors see in a participant while selecting them for GSoC?&lt;/a&gt; on &lt;a href=&quot;https://www.quora.com/&quot;&gt;Quora&lt;/a&gt;.&lt;/p&gt;
</description>
        <pubDate>Fri, 09 Dec 2016 06:30:00 +0000</pubDate>
        <link>https://ranveeraggarwal.com/blog/gsoc-dos-and-donts</link>
        <guid isPermaLink="true">https://ranveeraggarwal.com/blog/gsoc-dos-and-donts</guid>
        
        <category>gsoc</category>
        
        <category>python</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>A Lightweight UI for Medical Visualizations (GSoC 2016)</title>
        <description>&lt;p&gt;Currently, if you have an OpenGL interface, you need to use Qt/GTK or some UI library to create a window and focus out of the OpenGL window to do simple UI tasks like fill forms, click on a button, save a file, etc. Our idea is to get rid of the external interfaces and have the UI built in.   &lt;br /&gt;
 So, all the interaction happens within the 3D world interface.&lt;/p&gt;

&lt;p&gt;Currently, no library in Python offers such a functionality, much needed during scientific visualisations.   &lt;br /&gt;
So, we built this cross platform minimal interface on top of VTK, which provides a very simple but powerful API, and can be tweaked to create futuristic interfaces.&lt;/p&gt;

&lt;h3 id=&quot;the-project&quot;&gt;The Project&lt;/h3&gt;
&lt;p&gt;A complete list of all my commits into the project are listed &lt;a href=&quot;https://github.com/ranveeraggarwal/dipy/commits/MRG_scifi_ui?author=ranveeraggarwal&quot;&gt;here&lt;/a&gt;.  &lt;br /&gt;
Here’s the &lt;a href=&quot;https://github.com/nipy/dipy/pull/1111&quot;&gt;PR [#1111]&lt;/a&gt; with all the changes.  &lt;br /&gt;
Here’s what we did:&lt;/p&gt;

&lt;h4 id=&quot;building-a-button&quot;&gt;Building a Button&lt;/h4&gt;
&lt;p&gt;Using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vtkTexturedActor2D&lt;/code&gt; we built a button with functionalities to change icons and add callbacks. This is what we got.&lt;/p&gt;

&lt;center&gt;
    &lt;img src=&quot;/assets/images/posts/gsoc16/button1-0.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
    &lt;p&gt;A button overlay&lt;/p&gt;
&lt;/center&gt;

&lt;h4 id=&quot;a-text-input-field&quot;&gt;A Text Input Field&lt;/h4&gt;
&lt;p&gt;We built a textbox using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vtkTextActor&lt;/code&gt; and added ways to edit the text in the text box. Starting from an editable actor, we ended up with a multi-line text box. We rewrote a lot of code while building this and this is where we ended up with the idea of having a generic UI super class for all the UI elements. This element also introduced ui parameters (to pass between the element and the interactor) which were later deprecated.&lt;/p&gt;

&lt;center&gt;
    &lt;img src=&quot;/assets/images/posts/gsoc16/textbox3-0.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
    &lt;p&gt;A text box&lt;/p&gt;
&lt;/center&gt;

&lt;h4 id=&quot;line-sliding&quot;&gt;Line Sliding&lt;/h4&gt;
&lt;p&gt;While building the line slider, we realised the need for multiple elements within one element. This is where the idea of a common &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;set_center&lt;/code&gt; method came up. This element also introduced changes in the way we added elements to the renderer. We also introduced a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ui_list&lt;/code&gt; for each element that carries all the sub-elements in that element. We ended up with this.&lt;/p&gt;

&lt;center&gt;
    &lt;img src=&quot;http://i.giphy.com/L6eTW6BC91tew.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
    &lt;p&gt;The Line Slider&lt;/p&gt;
&lt;/center&gt;

&lt;h4 id=&quot;circular-slider&quot;&gt;Circular Slider&lt;/h4&gt;
&lt;p&gt;Using techniques similar to above, we built a circular slider, using a lot of math. The circular slider underwent a lot of modifications while adding it to the panel because we wanted to maintain a constant value while moving it around.&lt;/p&gt;

&lt;center&gt;
     &lt;img src=&quot;http://i.giphy.com/UpmVl5a064Qgg.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
     &lt;p&gt;The Circular Slider&lt;/p&gt;
 &lt;/center&gt;

&lt;h4 id=&quot;3d-menus&quot;&gt;3D Menus&lt;/h4&gt;
&lt;p&gt;Moving on, the idea was to use the existing elements in 3D. Using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vtkAssembly&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vtkFollower&lt;/code&gt;, the former taking a lot of time to understand (but thanks to efforts by my mentors, it turned out to be not so convoluted), we successfully ported several 2D elements to 3D. We couldn’t do 3D sliding, so that is something we will be appending to future work.&lt;/p&gt;

&lt;center&gt;
    &lt;img src=&quot;/assets/images/posts/gsoc16/orbital-menu0.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
    &lt;p&gt;The Orbital Menu&lt;/p&gt;
&lt;/center&gt;

&lt;center&gt;
    &lt;img src=&quot;/assets/images/posts/gsoc16/orbital-menu1.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
    &lt;p&gt;A More Complex Orbital Menu&lt;/p&gt;
&lt;/center&gt;

&lt;h4 id=&quot;a-2d-panel&quot;&gt;A 2D Panel&lt;/h4&gt;
&lt;p&gt;A 2D Panel is basically a collection of 2D elements. Built in such a way that they relatively stay the same, not depending on the size of the panel, the panel turned out to be more useful than we thought after we managed to set up a panel of panels.  &lt;br /&gt;
We also used the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;set_center&lt;/code&gt;s recursively to move the panel with all its elements around. We also used it to align panels to the left or right of the screen.&lt;/p&gt;

&lt;center&gt;
     &lt;img src=&quot;http://i.giphy.com/p5k3vQjkMKnEA.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
     &lt;p&gt;A Panel&lt;/p&gt;
 &lt;/center&gt;

&lt;center&gt;
     &lt;img src=&quot;/assets/images/posts/gsoc16/panel1.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
     &lt;p&gt;A Right-Aligned Panel&lt;/p&gt;
 &lt;/center&gt;

&lt;h4 id=&quot;a-file-menu&quot;&gt;A File Menu&lt;/h4&gt;
&lt;p&gt;The time had come to build a file dialog. Using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;os&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;glob.glob&lt;/code&gt; we built a file menu for displaying files in the current folder and changing directories when clicked.&lt;/p&gt;

&lt;center&gt;
     &lt;img src=&quot;http://i.giphy.com/cdJVIQrz7MiPe.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
     &lt;p&gt;The File Menu&lt;/p&gt;
 &lt;/center&gt;

&lt;h4 id=&quot;a-file-dialog&quot;&gt;A File Dialog&lt;/h4&gt;
&lt;p&gt;To put all that we had done to test, we built a file save dialog. This used almost everything we had built till now - panels, buttons, text box, etc. Here, for inter-object communication, we introduced optional parent references for each element. In the end, it all worked out well :)&lt;/p&gt;

&lt;center&gt;
     &lt;img src=&quot;http://i.giphy.com/q2u8f5b0lPi7e.gif&quot; class=&quot;img-responsive&quot; style=&quot;height:300px&quot; /&gt;
     &lt;p&gt;The File Menu&lt;/p&gt;
 &lt;/center&gt;

&lt;h3 id=&quot;future-work&quot;&gt;Future Work&lt;/h3&gt;
&lt;p&gt;Here’s what we want to do in the future:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Build robust 3D elements&lt;/li&gt;
  &lt;li&gt;Convert the prototype elements to futuristic looking elements&lt;/li&gt;
  &lt;li&gt;Add unit tests - we don’t have a unit testing framework right now, we are looking for one&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;acknowledgements&quot;&gt;Acknowledgements&lt;/h3&gt;
&lt;p&gt;There are countless brilliant brains that went behind this project.&lt;/p&gt;

&lt;p&gt;Both my mentors, &lt;a href=&quot;http://garyfallidis.github.io/&quot;&gt;Eleftherios Garyfallidis&lt;/a&gt; and &lt;a href=&quot;http://marccote.github.io/&quot;&gt;Marc-Alexandre Côté&lt;/a&gt; have stood by my side, all through the summer, with regular (and at times more than that) meetings, reviews and suggestions. I could ping them at any odd time of the day and they would promptly reply to all my doubts. &lt;a href=&quot;http://aix1.uottawa.ca/~fgingras/doc/rabbit.html&quot;&gt;The Story of the Rabbit’s PhD Thesis&lt;/a&gt; holds true.&lt;/p&gt;

&lt;p&gt;The people who built VTK and those who built the Python wrapper for it have done an amazing job. It’s an amazing framework, still in development. I am also indebted to the people who discuss all their doubts online and leave breadcrumbs leaving to the right resource.&lt;/p&gt;

&lt;p&gt;And lastly, my colleagues who gave me valuable feedback like, “Try red!”.&lt;/p&gt;

&lt;p&gt;Thank you all!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/ranveeraggarwal/dipy/commits/MRG_scifi_ui?author=ranveeraggarwal&quot;&gt;[List of Commits]&lt;/a&gt;   &lt;a href=&quot;https://github.com/nipy/dipy/pull/1111&quot;&gt;[Pull Request]&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Fri, 19 Aug 2016 14:50:20 +0000</pubDate>
        <link>https://ranveeraggarwal.com/blog/gsoc-2016-summary</link>
        <guid isPermaLink="true">https://ranveeraggarwal.com/blog/gsoc-2016-summary</guid>
        
        <category>gsoc</category>
        
        <category>python</category>
        
        <category>dipy</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>A Summer with KDE (GSoC 2015)</title>
        <description>&lt;p&gt;It seems like yesterday when I was an open source newbie on IRC, equipped with the knowledge of programming in C++, learnt through university courses. Little did I know that writing programs is just the prologue of the process called software engineering. Not wary of things like building, good practices and writing code that doesn’t just run on my machine, but on the machines of all those who are affected by it, I started the summer struggling through cmakes and compiler errors and understanding code that was written well, just not by me.&lt;/p&gt;

&lt;p&gt;Step 1 was packaging software and publishing it on launchpad. My mentor, Jonathan Riddell taught me this process by going through instructions step by step, and every time, giving me knowledge about tools that I wasn’t aware about. After a lot of failed attempts in sending patches upstream, I finally managed to get PackageKit and PackageKit-Qt5 pushed on to launchpad, and they built successfully. This was done because in everything following this, these two applications would be required. And this was a success because I didn’t face any problems in the subsequent parts of the project. The packages can be found &lt;a href=&quot;https://launchpad.net/~ranveeraggarwal/+archive/ubuntu/kpackages&quot;&gt;here&lt;/a&gt;. I have also described a sequence of steps as learnt in the process in an earlier blogpost.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://i.imgur.com/SsojDvy.png&quot; class=&quot;img-responsive&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The next part of my summer was spent in understanding KDE terminology, how KDE software works, how to make KDE software work (pun intended), and understanding PackageKit by pinging a lot of people on IRC. After making a compilation of KDE documentation for myself and playing around with Frameworks 5 and Qt, I started working on making an application that would install a given package via PackageKit. This involved understanding the PackageKit API and also PackageKit-Qt, a Qt Wrapper for PackageKit. Building this application took more time than was estimated, but at the end of this exercise, I was pretty much well versed on using PackageKit and building a Frameworks application. This application has been put on KDE’s git repositories and would be helpful to anyone who’d want to do this exercise in the future.&lt;/p&gt;

&lt;p&gt;Until this point, I was working on code written by myself. Now was the time to get into a real working application. This was Dolphin. I spent some time experimenting with Dolphin, and working out on how to make it install Samba. Later realizing I had set out on the wrong path, the real place to work it out was KDE-Network-Filesharing. Now, Network-Filesharing wasn’t on KF5 yet and this seemed like a good opportunity to learn some porting, the code for Filesharing not being too large in volume. So, after spending a lot of time on some well written blog posts by people who had done it previously and archived mailing lists (those are real life savers) and also the porting scripts, I was able to successfully port Network-Filesharing to KF5 and it’s now on the frameworks branch. Though it still needs kdelibs4 support, most of it is on KF5 and uses Qt5.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://i.imgur.com/ZyKXzOy.png&quot; class=&quot;img-responsive&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Next up was the task of using what I had learnt in the initial phases (installing software) and using it to do some actual work. And so, after getting a good hang of the Filesharing code, I managed to make it PackageKit compliant and now it installs Samba via PackageKit-Qt5.&lt;/p&gt;

&lt;p&gt;Next, I took up Plasma-Desktop and package installs for KCMs, specifically access and locale.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://i.imgur.com/S5R7hH9.png&quot; class=&quot;img-responsive&quot; /&gt;&lt;/p&gt;

&lt;p&gt;First, I took up KCM access. Now KCM access has this option of enabling a screen reader. The problem? The option stays there even if the screen reader isn’t installed. So, the idea was to have that option only when a screen reader is installed, and if it isn’t, disable that option and have a button to install screen reader. Again, some Qt magic and using my past implementation of PackageKit, this was done – and now, it works as expected.&lt;/p&gt;

&lt;p&gt;Next up was K3b. Now, K3b needs some codecs which need an interface for installing. Again, this has been implemented using PackageKit, but the UI part is on the todo list. Thereafter I started working on locale (now known as translations). Here, instead of using PackageKit, the idea was to use libKubuntu, which is a more stable way of doing it, and had been done previously. Yet again, this has been partly implemented, and I hope to complete its implementation soon (this took some time give that this wasn’t the usual PackageKit implementation).&lt;/p&gt;

&lt;p&gt;And this pretty much summarizes up the summer. The most challenging part in it all? Working out how each application, programmed differently by different work. The most fun and interesting part? Same. Thanks to exposure to a variety of codebases, I can now work on most KDE applications easily and the learning curve wouldn’t be as steep.&lt;/p&gt;

&lt;p&gt;I am indebted to my mentor Jonathan Riddell and all the people on #kde-devel, #packagekit and #kubuntu-devel without the help of whom I would still have been stuck on compiling my first codebase. It’s an amazing community and they are really very helpful. Even the easiest of my doubts were met by great enthusiasm and not once was I not given a response for an issue I faced. This is something that is not very common on IRC. Hats off to the KDE community for that! Google Summer of Code ’15 has been an amazing experience, and I will surely stick around the community as a contributor for as long as would be possible :)&lt;/p&gt;
</description>
        <pubDate>Thu, 06 Aug 2015 06:30:00 +0000</pubDate>
        <link>https://ranveeraggarwal.com/blog/gsoc-2015-summary</link>
        <guid isPermaLink="true">https://ranveeraggarwal.com/blog/gsoc-2015-summary</guid>
        
        <category>gsoc</category>
        
        <category>kde</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>Programming Humor</title>
        <description>&lt;p&gt;A friend of mine claimed to be an &lt;em&gt;expert in computers&lt;/em&gt;. Further, he asked me to throw any Computer Science term at him, and he’d tell me its meaning in a jiffy.  &lt;br /&gt;
I’m going to illustrate a few of the answers that I got from him.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Argument: The thing that two people get in when they disagree&lt;/li&gt;
  &lt;li&gt;Function: A procedure to do something; alternatively a party&lt;/li&gt;
  &lt;li&gt;Environment: Surrounding&lt;/li&gt;
  &lt;li&gt;String: A material consisting of threads of some material twisted together&lt;/li&gt;
  &lt;li&gt;Thread: a long, thin strand of cotton, nylon, or other fibres used in sewing or weaving.&lt;/li&gt;
  &lt;li&gt;Statement: Something you say&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At this point, I received a call from a batchmate, who was stuck on an assignment. I guess when you say, “Dude! Check if the parent is killing the child correctly” over the phone, it’s bound to raise some eyebrows.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Constant Variable: An oxymoron?&lt;/li&gt;
  &lt;li&gt;Bug: A creature that is small and crawls&lt;/li&gt;
  &lt;li&gt;Runtime: Time when you should go for running?&lt;/li&gt;
  &lt;li&gt;Heap: A random &lt;em&gt;stack&lt;/em&gt; of objects&lt;/li&gt;
  &lt;li&gt;Python: Obviously a kind of snake&lt;/li&gt;
  &lt;li&gt;RTFM: Kamasutra&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Contributions from Dheerendra.&lt;/p&gt;
</description>
        <pubDate>Mon, 30 Mar 2015 05:34:20 +0000</pubDate>
        <link>https://ranveeraggarwal.com/blog/cs-humor</link>
        <guid isPermaLink="true">https://ranveeraggarwal.com/blog/cs-humor</guid>
        
        <category>programmming</category>
        
        <category>humor</category>
        
        <category>random</category>
        
        
        <category>blog</category>
        
      </item>
    
      <item>
        <title>Dual Booting Windows with Ubuntu</title>
        <description>&lt;p&gt;Dual booting Windows and Ubuntu has always been a painful task. With the advent of &lt;strong&gt;Secure Boot&lt;/strong&gt; this pain has now reached the next level. So what do we do? Using VM isn’t an option thanks to performance issues.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;http://3.bp.blogspot.com/-1pOdeS95c3g/UxgVZBcufTI/AAAAAAAAA-I/tFV6eplRFYE/s1600/Windows_8.1_Adds+Unity-Style_Search_Feature.png&quot; class=&quot;img-responsive&quot; /&gt;&lt;/p&gt;

&lt;p&gt;After numerous experimenting on my poor laptop (I guess I used to screw it up almost once a month) I finally found a foolproof (almost!) working method.&lt;/p&gt;

&lt;p&gt;Here are the steps (Assuming you have Windows running on UEFI firmware):&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Create a partition. This is the most trivial step. Can be done by right clicking on My Computer and then going for &lt;em&gt;Manage &amp;gt; Disk Management&lt;/em&gt; and then shrinking a volume. You can either leave it at that or give that volume a new label. Doesn’t affect the installation.&lt;/li&gt;
  &lt;li&gt;Go to the &lt;em&gt;BIOS menu&lt;/em&gt;. This can generally be accessed from the start screen by pressing an assigned key. For my laptop (Dell Inspiron 7520) it was &lt;kbd&gt;F2&lt;/kbd&gt;.&lt;/li&gt;
  &lt;li&gt;Disable &lt;strong&gt;Secure Boot&lt;/strong&gt;. This can be found under &lt;em&gt;Boot&lt;/em&gt; or in some cases &lt;em&gt;Security&lt;/em&gt; category. Just hit &lt;kbd&gt;Enter&lt;/kbd&gt; when you get the Secure Boot option and then hit disable.&lt;/li&gt;
  &lt;li&gt;Now you will need a UEFI-compatible bootable media. For this, you will need a software known as &lt;a href=&quot;http://sourceforge.net/projects/win32diskimager/&quot;&gt;Win32 Disk Imager&lt;/a&gt;. Just write your ISO onto your Pen Drive (or any other bootable media device) and that’s it! You have created a UEFI-compatible media.&lt;/li&gt;
  &lt;li&gt;Next, boot from the Pen Drive you created.&lt;/li&gt;
  &lt;li&gt;After that install normally. Use the partition that you created in step one (&lt;strong&gt;Ext4&lt;/strong&gt; file system and mount point &lt;strong&gt;/&lt;/strong&gt;).&lt;/li&gt;
  &lt;li&gt;Now you have installed Ubuntu, the only thing remains is to fix the boot. Upon restart, you will see all options on the GRUB menu, but the Windows options won’t work. For that you need to do something.&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;To fix your boot, you will need to install &lt;strong&gt;boot-repair&lt;/strong&gt;. To do this, fire up a terminal and type:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  sudo add-apt-repository ppa:yannubuntu/boot-repair &amp;amp;&amp;amp; sudo apt-get update
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;and press &lt;kbd&gt;Enter&lt;/kbd&gt;. And then type:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  sudo apt-get install -y boot-repair &amp;amp;&amp;amp; (boot-repair &amp;amp;)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;and press &lt;kbd&gt;Enter&lt;/kbd&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;And then do a &lt;strong&gt;Recommended Repair&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;http://pix.toile-libre.org/upload/original/1335260967.png&quot; class=&quot;img-responsive&quot; /&gt;&lt;/p&gt;

&lt;p&gt;And that’s it! Check out your system by restarting and trying to boot into all your OSs (Windows would most probably be labelled as &lt;em&gt;Windows UEFI Boot Loader&lt;/em&gt;).&lt;/p&gt;

&lt;p&gt;This method works in most cases. In case it doesn’t, mail me at ranveer[at]ranveeraggarwal[dot]com&lt;/p&gt;
</description>
        <pubDate>Mon, 27 Jan 2014 09:34:20 +0000</pubDate>
        <link>https://ranveeraggarwal.com/blog/ubuntu-windows-dual-boot</link>
        <guid isPermaLink="true">https://ranveeraggarwal.com/blog/ubuntu-windows-dual-boot</guid>
        
        <category>tutorial</category>
        
        <category>ubuntu</category>
        
        <category>windows</category>
        
        
        <category>blog</category>
        
      </item>
    
  </channel>
</rss>