Vatsal Parekh

Software engineer who enjoys coding and gaming
mostly gaming

  • Of assignment and copy in Python

    Assignments in Python bind/rebind values or are used to modify attributes/items of objects.

    Lets look at some examples in python repl:

    >>> foo = 420
    >>> bar = 42
    >>> id(foo)
    140010894053264
    >>> id(bar)
    140010929038688
    

    For those who don't know what id is

    >>> help …
    Read more...

  • Reading fortune dat files with python using structs

    Well first a bit about fortune program:

    fortune - print a random, hopefully interesting, adage.

    Taken from the man page of fortune. Read man fortune for more.

    I always have fortune command inside my .bashrc, so whenever I open a terminal I am …

    Read more...

  • My First Blog Post

    Well I don't have anything noteworthy to share. So here are two lorem ipsum paragraphs.

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in sagittis metus. Vivamus eget malesuada leo, non elementum nulla. In lacinia sollicitudin lorem, vel posuere lorem malesuada …

    Read more...