Haikyuu!! Season 2

This review had been pending for several months now, I watched Haikyuu!! S2 before my finals, and then my vacations had a lot of hustling, but now as I can sit on my swiveling computer chair and relax it might be a good time to pen down my thoughts on this anime.

Haikyuu!! is clearly a unique anime, because there’s no anime that’s as good as this! S1 was a smash-hit already, then the creators had to come up with the second season, which was a continuation of the first and when I thought S1 was as good as it gets, S2 surpassed my expectations! You might have guessed, it has become my favorite sports anime series.

So this time, I.G decided to spice things up by changing the mostly male demographic by adding one more female. Hurrah for the improv. But in any case, not like there were hints of romance. OK, maybe yes. Wait, lemme think… What?! No! You call that romance!

So yeah, Haikyuu!! S2 mostly has romance in it, more than volleyball. Yachi-san becomes Hinata’s love of life, he quits volleyball, gets married to her, and THE END!

Watch the anime, if you haven’t yet 😉

Creating a Bootable USB

Recently, I had the need to create a bootable USB to install the new LTS version of Ubuntu on my laptop. I stumbled upon a tool called Rufus which did the trick very well.

But there were several problems along the way, most because there weren’t clear instructions on all the sites that I visited in order to learn how to create a bootable USB.

The first thing that you have to do is download the tool, whichever OS you are on. Run it, and browse for the disk image. Select the GPT partition style in the dropdown menu, and now the most important part:

Set Create bootable disk using to DD tools!

I was stuck here because I was using ISO image instead. When I tried booting my USB on startup I got a “Missing operating system” message. I got the same message even when I created the bootable USB using the tool provided by Ubuntu!

How the LinkedList class in Java works

I will explain how to perform operations like add, push, pop, poll, etc on LinkedList and what they mean. At first, it may seem a bit confusing, but I hope this article resolves a few conflicts.

A simple LinkedList of Strings declaration and definition looks like this:

There are several ways to add new elements to a LinkedList, but they mean and do different things. I will show you how each function works one by one.

add

One of the first methods you might encounter to add an element to a LinkedList is add. You can make use of add function in this manner:

Now let’s try to do the same with push!

push

We can conclude from this that add puts the element at the first position and then moves on to further positions. push on the other hand inserts elements quite like a stack. The element that is inserted first is the last when we traverse the linked list.

Let’s look at ways to fetch elements from the LinkedList. For this, we need to assume that the linked list already has some elements. Assume that for the subsequent examples, the LinkedList contains elements added using the add method like above.

pop

Just a reminder that elements are added in the same fashion as in add.

Since pop and poll are nearly the same (poll returns null when the list is empty whereas pop throws an exception) I will not discuss poll.

pollFirst

Just a reminder that elements are added in the same fashion as in add.

As can be seen, pollFirst and pop function produce similar output.

pollLast

Just a reminder that elements are added in the same fashion as in add.

And finally, pollLast!

Why people play MOBA

Usually, a lot of things in life are based on actions and consequences. When you act on something you can somewhat (if not fully) expect what the consequences will be. This theory has way too many variables in games like LoL where prediction on whether you will be the victor or loser depends on a multitude of configurations, players, their states of mind, their alertness, knowledge of the game, reflexes just to name a few. Non-scientifically you could even say these games are equivalent to gambling! That’s how unpredictable they are.

Victory depends not only on you but also on how your team plays, but at the same time without you your team will lose. It depends on the enemy team as well, and each and every player contributes to their team’s fate.

“Mayhaps this is a game of luck, like battleship”, you might say, but think about the hours of practice and the experience people have gained in order to control the turn of events in the game! It’s like reliving a war every time. There’s a Japanese saying which goes like, “A war is won before it is fought”. Mayhaps wars are inevitable, and mayhaps people are forced to join it even if it’s against their will. Mayhaps even the above quote is more intuitive than it seems.

But we don’t know unless we play :3

The confusing yet awesome behaviour of the DatagramSocket class

One of the recent projects that I am doing involves using UDP datagrams for communication. The DatagramSocket class in Java enables me to use that feature. At first, I wasn’t aware of all the features of the class, but as I started coding and explored different methods of using that package, several more things became clear to me. Well, firstly the documentation and tutorials that I looked up to understand how to use the class gave me a very minimalistic approach to using it. So, let me clarify how this class manages the network and how you can use this.

Let’s start with the constructor. For a minimalist working server, you must provide a port (otherwise packets might not get delivered to you). Basically, the DatagramSocket class takes care of listening to a port and sending data from that same port (if needed). It does not automatically send ACKs when a packet arrives. It listens, halts the process till data arrives.

A client on the other hand does not require a port to be specified in the constructor for minimalist working. Why? Because we are assuming that the client is not listening for any data (for the time being). It only sends the provided data to a specific port specified by an InetAddress. Now there is an important thing to understand about all this. If a port is not specified by the client, it randomly chooses one. Not specifying a port does not mean that a port is not required by the client to send the data! When the DatagramPacket arrives at the server’s end, the server can find out from the packet several things like the InetAddress of the source and the port through which the packet was sent. This allows the server to send data to that source through it’s address and on the port that it’s using.

The conclusion that can be drawn from these facts is pretty cool. A thread that’s listening on a port can receive packets from multiple sources, and in the same way a thread that’s sending packets can send them to different hosts!

UPDATE:
The real important thing to remember is that you cannot use the same socket simultaneously for sending and listening. If a socket is listening on a certain port, you need to either make it stop listening and send your packet away or you need to open another socket to do so.

Of course, it is not possible to listen on multiple threads using just one socket. For this reason, one of a good architecture designing techniques for such a mechanism is as follows:

  • Listen on one socket
  • Send packets using another socket

Summing up MOBA

Recently, I made the big decision of quitting my temporarily largest addiction: MOBA games. I had to one time or the other, for fear of becoming a gaming couch potato. But I am thankful for making that spontaneous decision which brought more good than I expected.

But since MOBA was something that I gave a LOT of my time to and dedicated hours of thinking and understanding to, I decided to sum up my experiences while stuck in its delirium. For those who are not aware, MOBA stands for Multiplayer Online Battle Arena. I had been posting my views about two major games in this category for the last couple of months.

The reason this genre is so addictive is because of its unpredictability and the numerous combinations of heroes/champions and items that can be played with and bought in the games. If you’ve read my previous articles, you know that I am talking about Dota 2 and LoL. People still play even though there is hardly any choice of maps. That alone tells us how insanely addictive it can be.

The most important thing that you must focus on in the game can differ from game to game, or character to character or even position to position. It is complex, and not only depends on a player’s expertise in hand-eye coordination but also on their team picks and even the opponent’s team picks. The possibilities do not end there. As the game progresses, players accumulate gold which can be used to buy items. Those items have abilities as well.

Despite all that clutter and complexity, one thing is clear, your character should aim to level up as fast as possible. Items can offer bonus stats, but the real boost comes from levelling up. Which is why in pro tournaments, we don’t find players picking up all the attack damage and powerful items whenever they have enough money. Rather they communicate with their team and decide strategically which item must they pick.

It is a team game of course, which means that the responsibility of both winning and losing are partly on everyone’s shoulders. But that also means that if one out of the five players is not playing well, the match may well be in jeopardy. It happens all the time.

To conclude, the only logical thing that I can say confidently is that there is no way to predict if your next match will be a victory or defeat. You just can’t say. It’s a pity but that’s what makes it all the more exciting, right?

First game as Spectre

One day before my mid semester examination.

Well, it wasn’t my first game to be completely honest here, because on my actual first time my PC crashed and by the time I had reconnected I got an abandon. I cannot blame Steam for this. Just this new modem (I have no clue what the hell is wrong with it). So, I played a Single Draft match with Axe (my first time) and we won! What luck that is huh. Axe has a pretty lousy ult btw. It doesn’t do any real damage from what I saw [update: now I know how to play him]. The only good thing about him is that he’s kinda tanky like all the male characters in dota (and also that he can deal more damage when he’s alone). So anyway, we won that match somehow (I forgot to mention we had a broodmother whose user was at level 52! Yeah, after that match I decided that I had to play Spectre again because I didn’t get to test her out fully the last time (if you count that).

This time the enemy team her strong picks like Juggernaut (god knows why he’s picked in every match), Sven (goddamit this guy!), Huskar (Mista Gank), Naga (she was total noob and fed like anything), and somebody else (I forgot). We had myself (Spectre), Templar Assassin (girls get to have all the fun), Phantom Assassin (the girl who I first thought was a guy), Venomancer (amiable support) and of course Sniper (apparently the character everyone hates). I assisted in getting first blood I think. Spectre does good damage with her Q initially. Out team had less conventional picks unless you want to include PA with her ‘blur’ evasiveness.

In any case, I took the bottom lane with Venomancer and he was a really helpful support. I remembered the last hero of the enemy team: Spirit Breaker (damn those stuns!). The thing was that most of the time the whole (at least 3-4) heroes of the enemy team would suddenly appear and gank. Lots of times Sven killed me. I fed quite a bit in the beginning and hoped that the rest of my team was doing well in absence of the enemy heroes in their respective lanes. Funnily enough it played out quite exactly like that. The got plenty of farm and one tier-3 tower of top lane also fell. I believe PA was top. Either her or sniper. Once I got my ult, I could teleport to any team fight that I chose and we started winning team fights. Not only because of me, PA, TA were playing great too. But I got the highest number of kill assists: 29. I thought this match would be cutting it close, but I was wrong. We won pretty easily. I usually feed a lot in the beginning. But as the game progresses I start getting kills and assisting. I got a battle fury first, then Radiance and finally a moon shard which I consumed and then bought another one. What do you basically need? Good damage and attack speed! That’s something I learnt playing LoL. Speaking of LoL, it’s mechanics are totally different compared to Dota. Which is better I cannot say, but LoL looks to be the one attracting the crowds.

A Pale View of Hills

Kazuo Ishiguro’s first novel. What really enticed me about this was the feeling of anticipation of something serious about to happen throughout the story was amazing. In the end however, nothing special happened. Ishiguro is known for his two novels turned into films: “Never let me go” and “The Remains of the day” which won the Man Booker prize. For his first book, this seemed like an experiment he conducted to observe how people would react because it felt like he was holding something back. I really liked the slow pacing since it fit the theme perfectly. There were the occasional moments of “suspense” which were sketched out vaguely. At the end, it left me a little confused because I thought he would clear up a few doubts towards the end like what became of Mariko and her Mom? I would assume that Frank took them to America (though I have a little doubt in mind). Also, who is Etsuko’s second husband? Shigeo Matsuda? What happened of Ogata-san? As you can see, the book left a lot of loose ends. I wish Ishiguro would have answered these doubts but nevertheless the story left a good impression on me.

Dota 2 vs LoL 2

After playing League for a while, my impression on the game has changed drastically although, certain things I had said in my first post are pretty much the same. I have mostly been playing with Master Yi. His strengths are attack speed and attack damage. It’s best to build him with those two aspects in mind. As for his defence, it’s quite non-existent. He will not survive a gank, he can escape using his ulti at best. With Master, you will either lose the game badly or win it like it is the best game you’ve played in your life. Depends on your team and the champions they pick.

Enough of that. LoL has a 1-Dimensional gameplay compared to Dota 2, I’ll be honest with you here. There are two major things I found lacking in LoL, but which are very much in abundance in Dota 2. The first is the champions themselves. Their abilities are primarily attack based, if not occasionally causing stuns or slowing movement. It’s all about how much damage you can inflict versus how much you can concede. Unlike Dota 2 where different heros are known for some special ability that they have. In LoL nobody cares! Because you don’t really have to care. Right-click to win. This very flaw of champions not having a “character” of their own is the main reason for the 1-Dimensionality of this game.

The second aspect is complementary to the first, in the sense that even the items do not have any special “characteristics”. All they give you is extra attack damage, or magical damage, critical strike, life steal, yada yada yada… Quite contrary to Dota 2 items. Almost half (or even more) of Dota 2 items have some active ability and a subsequent cooldown. It adds a whole new dimension to the game! It’s not just that, even the abilities that the items have are unique amongst themselves, like the Bloodstone with which you can commit suicide and hence not feed the opponent with experience and gold. As a result, Dota 2 is much harder than LoL on many levels, and is also way more serious. If you have watched tourneys you’d know. Once I saw LoL players singing songs before the start of the game and some even had a victory dance which they performed after they had won! Dota 2? Nothing of that sort. Can’t blame them though, look at those freaking huge prize pools ESPORTS puts up. Better commentators and overall production for Dota 2 although LoL is the game having more players per month. I am sure that they see a lot of potential in Dota 2. It feels great watching Dota 2 matches though. I will say that it depends more on the skill of the player than on the hero that he/she selects. However, LoL isn’t like that. From their pool of 100+ champions, very few even get played with in tourneys and nearly the same ones get banned all the time. I would say that’s a turn off because the team that has the strongest picks will win. And that’s lame, especially after you’ve played Dota 2. I just play LoL because it’s easier, and people are cool.

The Game of Thrones

Possibly one of the greatest stories ever created by humans, a legendary book series turned TV adaption by the famous George R. R. Martin is the best book that I have come across so far. So good it was, and so much thrill I got from it, is unforgettable! With some nerve wracking plot twists that you will not see coming and stupendous characters, GoT has outdone itself.

I was introduced to GoT a few years ago when I heard friends talking about it excitedly. But that really didn’t pique my interest. I was into other things back then. But recently, I joined a library and they happened to have Game of Thrones. So I decided to see what all the hype was about. Then it began, the endless adventure and lasted around 800 pages yet which seemed like a teaser for the story still to come! When a masterful plot and great story writing come together, this is the fantastic product that they create. The first book was published in 1995, which is quite long ago. Never have I heard of it before. Quite surprising, that. It became really popular when HBO launched the GoT TV series.

Maybe there plenty of gore and sex, but if you’d like to bathe in maturity here is a golden opportunity. Martin kisses goodbye to naivety and brings the darkest part of our minds come alive with so much cunning that will keep you gripped till the end no matter what! There are a few main characters through whom he narrates the story in 3rd person. Ned, Catelyn, Tyrion, Robb, Jon, Bran, Arya, Daenerys and Sansa were the main characters in the first book of Song of fire and ice which is the name of the series GoT is a part of.

If maturity disturbs you, the TV series is no different. But trust me, you would want to read the book than watch the series to enjoy everything the author poured out into the book. Personally, my favourite character is Tyrion because of his cunning, calm character and the way he can retort to anything spoken to him. It’s really quite amazing how much character development he got and you get to see several sides of his personality like his will to save Catelyn even though it was her who captured him. Tyrion may seem like an evil character, but so is everyone else in that case. The other character I adore is Daenerys. Although not so much in the TV series. She is supposed to be a very powerful person which I felt her actress missed out on. The first book ends on a neutral note, but exciting note. While Daenerys becomes mother to the 3 dragons, Robb Stark becomes the Lord of Winterfell and their banners and they separate from the Seven Kingdoms. Sansa and Arya are still in King’s Landing where prince Joffery is wreaking havoc.

I felt like Ned and Catelyn were the main reason behind the whole crisis that occurred with Ned’s eventual death. He made the biggest blunder by going to the King’s Landing with Robert at the start of the book and almost as a price that he had to pay he was beheaded. None of this would have actually happened if he refused to become Hand of the king. The worst part of it was, not only did he lose all of his personal guard, his daughters were both in a bad position, his wife had to flee and his son had to go to war.

The character who most people will like, maybe not as a favourite nor as their least favourite is Jon Snow. There is a lot to be said about this guy. His life has been terrible because of how his name got tainted with ‘bastard’ and it was none of his fault. Jon Snow’s life on the Wall always served as a good distraction from all the politics and war going on at other times in the book.

I’ll conclude by saying, I can’t wait to read the next book A Clash of Kings!