Suramya's Blog : Welcome to my crazy life…

September 21, 2020

Diffblue’s Cover is an AI powered software that can write full Unit Tests for you

Writing Unit Test cases for your software is one of the most boring parts of Software Development even though having accurate tests allows us to develop code faster & with more confidence. Having a full test suite allows a developer to ensure that the changes they have made didn’t break other parts of the project that were working fine earlier. This make Unit tests an essential part of CI/CD (Continuous Integration and Continuous Delivery) pipelines. It is therefore hard to do frequent releases without rigorous unit testing. For example SQLite database engine has 640 times as much testing code as code in the engine itself:

As of version 3.33.0 (2020-08-14), the SQLite library consists of approximately 143.4 KSLOC of C code. (KSLOC means thousands of “Source Lines Of Code” or, in other words, lines of code excluding blank lines and comments.) By comparison, the project has 640 times as much test code and test scripts – 91911.0 KSLOC.

Unfortunately, since the tests are boring and don’t give immediate tangible results they are the first casualties when a team is under a time crunch for delivery. This is where Diffblue’s Cover comes into play. Diffblue was spun out of the University of Oxford following their research into how to use AI to write tests automatically. Cover uses AI to write a complete Unit Test including logic that reflects the behavior of the program as compared to the other existing tools that generate Unit Tests based on Templates and depend on the user to provide the logic for the test.

Cover has now been released as a free Community Edition for people to see what the tool can do and try it out themselves. You can download the software from here, and the full datasheet on the software is available here.


Using Cover IntelliJ plug-in to write tests

The software is not foolproof as in it doesn’t identify bugs in the source code. It assumes that the code is working correctly when the tests are added in, so if there is incorrect logic in the code it won’t be able to help you. On the other hand if the original logic was correct then it will let you know if the changes made break any of the existing functionality.

Lodge acknowledged the problem, telling us: “The code might have bugs in it to begin with, and we can’t tell if the current logic that you have in the code is correct or not, because we don’t know what the intent is of the programmer, and there’s no good way today of being able to express intent in a way that a machine could understand.

“That is generally not the problem that most of our customers have. Most of our customers have very few unit tests, and what they typically do is have a set of tests that run functional end-to-end tests that run at the end of the process.”

Lodge’s argument is that if you start with a working application, then let Cover write tests, you have a code base that becomes amenable to high velocity delivery. “Our customers don’t have any unit tests at all, or they have maybe 5 to 10 per cent coverage. Their issue is not that they can’t test their software: they can. They can run end-to-end tests that run right before they cut a release. What they don’t have are unit tests that enable them to run a CI/CD pipeline and be able to ship software every day, so typically our customers are people who can ship software twice a year.”

The software is currently only compatible with Java & IntelliJ but work is ongoing to incorporate other coding languages & IDEs.

Thanks to Theregister.com for the link to the initial story.

– Suramya

September 20, 2020

Its Doctor Who’s 57th Anniversary

Filed under: My Thoughts — Suramya @ 11:07 PM

57 Years ago on 19th Sept 1963, we first met the Doctor and the TARDIS. The adventures of the ‘Madman in a Box‘ have kept generations of viewers entertained. I read my first Doctor Who book in 1991/1992 (I think) and have been a fan ever since. I spent a lot of money and effort to find the old Target releases and even managed to get a complete collection of most of the available Doctor Who TV episodes. My personal favorites are: 10th Doctor, 4th Doctor/13th Doctor & the 9th Doctor. The 11th Doctor was a bit too hyper for my tastes and never managed to like the 12th Doctor much. I really love the 13th Doctor as she has some great stories and amazing acting. However the 10th is a clear winner thanks to David Tennant who set the bar so high with his amazing acting and portrayal of the Doctor that he replaced the 4th Doctor as my favorite doctor right from the start of his regeneration.


The TARDIS in its first Television appearance

Doctor Who is one of the longest running shows on television, and there are a lot of amazing quotes that have come from it. Some of my favorite quotes from the show are below:

The Tenth Doctor : Look at these people, these human beings. Consider their potential! From the day they arrive on the planet, blinking, step into the sun, there is more to see than can ever be seen, more to do than – no, hold on. Sorry, that’s The Lion King… – The 10th Doctor

This is just a funny absolutely non-relevant quote from the 10th Doctor and I just loved it. The cherry on top was that this was said during the Doctor trying to stop the enslavement of Humanity, which is what most other series would treat as a really serious topic.

“The very powerful and the very stupid have one thing in common. They don’t alter their views to fit the facts, they alter the facts to fit their views.” – The Fourth Doctor, The Face of Evil (1977)

This is so true. People always try to change the facts to suit their personal views and that never ends well…

“You know that in 900 years in time and space I’ve never met anyone who wasn’t important before. – The 11th Doctor “

Everyone is important and that’s the lesson the 11th Doctor is trying to reinforce for us.

“We’re all stories in the end. Just make it a good one, eh?”

“People assume that time is a strict progression of cause to effect, but *actually* from a non-linear, non-subjective viewpoint – it’s more like a big ball of wibbly wobbly… time-y wimey… stuff. – The 10th Doctor”

There are a ton more quotes that are awesome but I don’t have the space to duplicate them all over here. So you can check them out: here & here & some more here.

Well this is all for now. Will write more later.

– Suramya

September 19, 2020

Darkened Blade (Fallen Blade 06) by Kelly McCullough

Filed under: Reviews-Fantasy — Suramya @ 6:10 PM

Darkened Blade (Fallen Blade 06)

by Kelly McCullough

Description:

Aral Kingslayer has nothing to lose – and only justice to gain. Torn apart by the death of his goddess, he must avenge her in order to save himself from being lost forever….

It’s been nine long years since the death of his patron, Namara, and exalted assassin Aral Kingslayer desperately misses the thrill and glory of being a higher power of justice. Now he is haunted by the ghosts of the past – and by the ghost of the lost goddess herself.

When Namara calls upon Aral in a dream to seek justice for her death and the ruination of her temple, Aral must obtain the help of his fellow former Blades and his Shade familiar, Triss, to pursue the vengeance he knows Namara deserves. Even if it means attacking Heaven’s Son – and going against one of their own – in a bloody battle of epic proportions…

Buy From:

Rating:

Review:

This is the final book in the Fallen Blade series with Aral finally working with all the surviving Blades to avenge the murder of his Goddess by the Son of Heaven. The novel was a satisfying end to a good series and addressed most of the ongoing open threads in a way that made sense. The dilemma Aral faces while going against the Son of Heaven is beautifully presented and his struggle seems real.

It is good that the series ended with this novel as otherwise it would have felt that the author was dragging the series just for the sake of it. After the last book, I was more than ready for them to go against Heaven’s Son. That isn’t to say that there isn’t scope for further stories in this universe, the ending has the scope for many many more stories to be told between the last chapter & the epilogue.

Check if out if you like epic fantasy & a troubled hero. Good read overall, though I still prefer his WebMage series more than the Fallen Blade

How to Toonify yourself

Filed under: Interesting Sites,My Thoughts — Suramya @ 10:57 AM

While surfing the web I came across ‘Toonify Yourself!‘ that allows you to upload a photo and see what you’d look like in an animated movie. It uses deep learning and is based on distillation of a blended StyleGAN models into a pix2pixHD image to image translation network.

It sounded interesting, so I tried it out with one of my pictures and got the following results:


Original image

Toonified Image

I quite like the result and am thinking of using it as my avatar going forward. What do you think?
Thanks to Hacker News for the link

– Suramya

September 18, 2020

Hackers – 25th Anniversary thoughts

Filed under: My Life,My Thoughts — Suramya @ 10:01 AM

15 September 2020, was the 25th anniversary of one of my favorite movies which also happens to be one of the most iconic movies about hacking ever released: Hackers. I first saw the movie in late 1999. I was introduced to it by Jerome who was my RA in college at the time and it has been one of the most fun and phenomenal movies on hacking that I’ve seen.

Yes, the video depictions of hacking are corny since there are no 3d file systems that we have to navigate and when we open a file it doesn’t give a 3D psychedelic video with equations floating around, but the overall concept and the whole mindset of what hacking actually means is very accurately depicted in the movie. For example, a lot of hacking involves social engineering and right in the beginning of the movie Dade/Crash Override social engineers a security guard to get access to the computer systems for the TV Network he is trying to take over. There are tons of quotes in the movie that cover/reference the core of the Hacker identity in the 90’s. Some of my favorites are:

We make use of a service already existing without paying for what could be dirt-cheap if it wasn’t run by profiteering gluttons.

[- Razor & Blade. While demoing Phone Phreaking]

We explore… and you call us criminals. We seek after knowledge… and you call us criminals. We exist without skin color, without nationality, without religious bias… and you call us criminals.
You build atomic bombs, you wage wars, you murder, cheat, and lie to us and try to make us believe it’s for our own good, yet we’re the criminals. Yes, I am a criminal. “My crime is that of curiosity.” I am a hacker, and this is my manifesto.

[From the Hackers Manifesto]

“Hackers of the world unite!”

“Hack the planet!”

These are all things that we grew up with, and refer to core hacker identity/mindset in 90’s. It actually surprised me to find that the original hacker manifesto was no longer easily available and had to resort to visiting the Internet Archive to pull up a copy of it. The movie gives you a good idea of what the original definition of hacking was: learning for the sake of learning & curiosity. It encouraged/inspired a whole generation of folks to go into computers & hacking. I remember this quote from one of the kids I watched a movie with in college, and he basically said, “watching this movie makes you want to go learn computers so you can do cool stuff like this instead of the boring ass programming crap we have been doing.”.

I saw the news of the movie’s 25th Anniversary on my twitter feed 2 days ago and since I was feeling nostalgic I watched the movie again yesterday night. And I’m happy to report, I still love the movie. Yes, there are parts of the movie that feel dated e.g. where they are all running around with floppy disks & CRT monitors and the phone couplers! and it’s corny to see everyone being on skateboards/rollerblading all the time. But overall the movie itself doesn’t feel dated in fact even the graphics from the movie have aged quite well.

The movie got a lot of flack on it’s release for being “dubious,” “unrealistic,” and “implausible.” A lot of the visualization was just plain silly (but really visually awesome) like the super cool looking 3d visual file systems that the protagonists have to navigate or the really cool looking 3D visualization with floating equations that come up when they try to view the ‘garbage file’.

Yes the movie is not accurate, but what movie is? I mean, it is at the end of the day a fictional story to tell people, have a great visual and audio extravaganza. All of that is not meant to be an accurate representation of the hacking process because honestly speaking, watching people type for three hours will probably be one of the most boring movies that I could think of and interestingly even with this visual extravaganza the movie was a comercial failure when it came out and it’s only over the years it’s become a cult favorite. There are other movies like ‘the Net’ or Sneakers that also covered Hacking/hackers but none of them had the lasting impact Hackers did.

Always remember: “This is our world now… the world of the electron and the switch, the beauty of the baud. “

#hacktheplanet

– Suramya

Drawn Blades (Fallen Blade 05) by Kelly McCullough

Filed under: Reviews-Fantasy — Suramya @ 9:56 AM

Drawn Blades (Fallen Blade 05)

by Kelly McCullough

Description:

Aral Kingslayer’s past is never more than a shadow’s breadth away in this Fallen Blade novel from Kelly McCullough.

Once one of the world’s greatest assassins, Aral Kingslayer has finally reclaimed his swords and his soul. But the forces that destroyed his patron Namara twelve years ago are still there, waiting…

In the days before the fall of his goddess, only one other rivaled Aral’s skills, Siri the Mythkiller – a woman who ruthlessly earned the title First Blade. As a friend, Aral owes her his loyalty. As a former lover, he owes her part of his heart. As a Blade, he owes her anything she asks, including his life.

When Siri seeks Aral’s aid, he knows he must go. But as they journey towards the ancient Sylvani Empire, only time will reveal whether Aral can save the former First Blade, or if he will simply fall with her…

Buy From:

Rating: (4/5)

Review:

Drawn Blades is the fifth book in the Fallen Baid series and picks up soon after the previous book ended. Things start off at a quick pace with Siri, also known as Mythkiller coming back in Aral’s life after years of him not knowing if she was alive or not. It appears that by now pretty much all the blades referred, or name checked in the previous books have come back to life and/or become part of the plot in one of the previous books. If the books were less well written it would be easy to get to a point where the additional books become more of the same but fortunately, that is not the case.

And as always, there are a lot of complications in this book, with past regrets, vengeance and regrets coming back and haunting Aral & Siri. We finally get to explore more of the others in this book with a more detailed overview of their society & structure than what we have seen in the past. It was a fascinating view and really expanded the world the stories are based in. They also encounter fallen gods and a whole lot of other way interesting stuff which we can’t go into details because spoilers. Significant changes to how Aral looks at things happen in the book, which really sets up shades nicely for the next entry in the series which I’m really looking forward to reading.

September 17, 2020

Blade Reforged (Fallen Blade 04) by Kelly McCullough

Filed under: Reviews-Fantasy — Suramya @ 11:25 AM

Blade Reforged (Fallen Blade 04)

by Kelly McCullough

Description:

After the fall of the goddess of justice, temple assassin Aral Kingslayer lost his purpose in life and turned to the bottle. That might have been the end of him if luck hadn’t given him a few people to help him get back on his feet—notably the irresistible Baroness Maylien Dan Marchon, who once sought his aid in claiming the throne that’s rightfully hers. Reluctant to resume the role of an assassin, he turned her down.

But now Aral has learned that one of the few people willing to help him in his darkest days has been imprisoned by Maylien’s uncle, King Thauvik. Aral knows he can’t let an old friend die, but the alternative is to return to the life he left years ago. It was the death of Thauvik’s half brother that earned Aral the name Kingslayer, and now he is thrust into a war that will see no end until he lives up to his name…

Buy From:

Rating: (4.5/5)

Review:

The 4th book in the series starts off in a very weird way. Aral is back at the Gryphon which has been destroyed getting drunk, we have no idea how he got there and why Jax & Faran are not there with him. This is never completely explained in the book and it bugged me. I had to check to make sure I was reading the correct book in the series and hadn’t missed any book in the middle. However once I got past that I liked the book, we have an old flame back in Aral’s life making a play for the throne. Plus there is a living legend who has come back from the dead to make things very difficult & dangerous for Jax. I liked how he had to change his whole way of thinking to get through the mission and how throughout the book he is slowly healing himself. Though his struggle with addiction is still a big part of the character. The following paragraph from the book really highlighted the difficultly Aral is going through with his addiction, and I loved it. Its rare when writers get nuances like this rather than just handwaving it away to advance the plot.

I didn’t answer Triss. I couldn’t. It was taking everything I had not to tear out the cork and drink off half the bottle on the spot. I could feel sweat breaking out on my brows and the palm of the hand holding the bottle as I fought with my own desire. Fuck me but I wanted that drink bad. Without seeming to cross the intervening space, I found myself holding the whiskey out over the water, willing my hand to unclench. It wouldn’t, and probably better that it didn’t.

I ignored that and the increased urgency in his voice and used a word of opening to free the cork—a spell where normally I would have simply torn it free with my teeth. Then, slowly, oh so very damned slowly, I turned the bottle over and poured the contents into the sea. It felt more than half like I’d opened a vein and it was my own blood I was draining away, but I did it. When it was empty, and only when it was empty, did I let the bottle fall into the water and sink to the bottom. I watched it all the way down. Then I sat back against the wall of the cavern and dangled my bare feet in the cool water.

The book is the commulation of the previous three books and if you read this without having read the previous books some parts of it will not make sense. However it can be read as a standalone for the most part.

How HTTPS Works? Explained in a comic!

Filed under: Computer Security,Security Tutorials,Tech Related — Suramya @ 10:41 AM

Found a fantastic explanation of HTTPS works, what is SSL/TLS & why you should care about any of it in a easy to understand comic format. I love seeing comics like this that aim to show concepts in simple ways.

Have you ever wondered why a green lock icon appears on your browser URL bar? And why is it important? We did too, and this comic is for you!
Follow the adventures of Certificat, Browserbird, and Compugter as they explain why HTTPS is crucial for the future of the web and how it all works together.
Don’t let the bad crabs get you (you’ll know what we mean in the comic). Get to know HTTPS and why it is essential to your privacy.

Check it out at: howhttps.works

– Suramya

September 16, 2020

Crossed Blades (Fallen Blade 03) by Kelly McCullough

Filed under: Reviews-Fantasy — Suramya @ 11:17 AM


Crossed Blades (Fallen Blade 03)
by Kelly McCullough

Description:

For six years, former temple assassin Aral Kingslayer has been living as a jack of the shadow trades, picking up odd jobs on the wrong side of the law. But the past is never dead, and Aral’s has finally caught up to him in the beautiful, dangerous form of Jax Seldansbane – a fellow Blade and Aral’s onetime fiancée.

Jax claims that the forces that destroyed everything Aral once held dear are on the move again, and she needs his help to stop them. But Aral has a new life now, with a fresh identity and new responsibilities. And while he isn’t keen on letting the past back in, the former assassin soon finds himself involved in a war that will leave him with no way out and no idea who to trust…

Buy From:

Rating: (4.5/5)

Review:

Crossed Blades starts about a month or so after the previous book with Aral reuniting with his lost love Jax who he thought had died with the rest when their temple was destroyed and Goddess murdered. The story is a lot more dark than the previous volumes in the series, with a lot of focus on revenge & vengeance. There is a lot of double dealing in the book and you don’t always know who to trust as everyone has a hidden agenda. Not all is as it seems which requires you to pay attention to the plot & actions of each of the characters.

Aral’s dealings with Faran on the other hand are a treat, he is really unsure on how to handle a teenager who is also one of the best assassins around and has been surviving on her own for years. I like the fact that they don’t downplay her experiences even though they don’t go into a lot of details about it. I expect that they will cover them in future books.

The vengeance part of the story is pretty stark and some of the plot twists make it complicated to achieve. I really didn’t get the goal of the other main character (I am not going to name them as that would be moving into the spoiler territory) till the last chapter and I loved it. I think we will see them again in future books.

Looking forward to reading the next book in the series.

Potential signs of life found on Venus: Are we no longer alone in the universe?

Filed under: Interesting Sites,My Thoughts,News/Articles — Suramya @ 11:15 AM

If you have been watching the Astronomy chatter the past two days, you would have seen the headlines screaming about the possibility of life being found on Venus. Other less reputable sources are claiming that we have found definite proof of alien life. Both are inaccurate as even though we have found something that is easily explained by assuming the possibility of extra-terrestrial life there are other potential explanations that could cause the anomaly. So what is this discovery, you might ask which is causing people worldwide to start freaking out?

During analysis of spectrometer readings of Venus, scientists made a startling discovery high in its atmosphere; they found traces of phosphine (PH3) gas in Venus’s atmosphere, where any phosphorus should be in oxidized forms at a concentration (~20 parts per billion) that is hard to explain. It is unlikely that the gas is produced by abiotic production routes in Venus’s atmosphere, clouds, surface and subsurface, or from lightning, volcanic or meteoritic delivery (See the explanation below), hence the worldwide freak out. Basically the only way we know that this gas could be produced in the quantity measured is if there are anaerobic life (microbial organisms that don’t require or use oxygen) producing the gas on Venus. Obviously this doesn’t mean that there aren’t ways that we haven’t thought about yet that could be generating this gas. But the discovery is causing a big stir and will cause various space programs to start refocusing their efforts on Venus. India’s ISRO already has a mission planned to study the surface and atmosphere of Venus called ‘Shukrayaan-1‘ set to launch late 2020’s after the Mars Orbiter Mission 2 launches and you can be sure that they will be attempting to validate these findings when we get there.

The only way to conclusively prove life exists on Venus would be to go there and collect samples containing extra-terrestrial microbes. Since it’s impossible to prove a negative this will be the only concrete proof that we can trust. Anything else will still leave the door open for other potential explanations for the gas generation.

Here’s a link to the press briefing on the possible Venus biosignature announcement from @RoyalAstroSoc featuring comment from several of the scientists involved.

The recent candidate detection of ppb amounts of phosphine in the atmosphere of Venus is a highly unexpected discovery. Millimetre-waveband spectra of Venus from both ALMA and the JCMT telescopes at 266.9445 GHz show a PH3 absorption-line profile against the thermal background from deeper, hotter layers of the atmosphere indicating ~20 ppb abundance. Uncertainties arise primarily from uncertainties in pressure-broadening coefficients and noise in the JCMT signal. Throughout this paper we will describe the predicted abundance as ~20 ppb unless otherwise stated. The thermal emission has a peak emission at 56 km with the FWHM spans approximately 53 to 61 km (Greaves et al. 2020). Phosphine is therefore present above ~55 km: whether it is present below this altitude is not determined by these observations. The upper limit on phosphine occurrence is not defined by the observations, but is set by the half-life of phosphine at <80 km, as discussed below.

Phosphine is a reduced, reactive gaseous phosphorus species, which is not expected to be present in the oxidized, hydrogen-poor Venusian atmosphere, surface, or interior. Phosphine is detected in the atmospheres of three other solar system planets: Jupiter, Saturn, and Earth. Phosphine is present in the giant planet atmospheres of Jupiter and Saturn, as identified by ground-based telescope observations at submillimeter and infrared wavelengths (Bregman et al. 1975; Larson et al. 1977; Tarrago et al. 1992; Weisstein and Serabyn 1996). In giant planets, PH3 is expected to contain the entirety of the atmospheres’ phosphorus in the deep
atmosphere layers (Visscher et al. 2006), where the pressure, temperature and the concentration of H2 are sufficiently high for PH3 formation to be thermodynamically favored. In the upper atmosphere, phosphine is present at concentrations several orders of magnitude higher than predicted by thermodynamic equilibrium (Fletcher et al. 2009). Phosphine in the upper layers is dredged up by convection after its formation deeper in the atmosphere, at depths greater than 600 km (Noll and Marley 1997).

An analogous process of forming phosphine under high H2 pressure and high temperature followed by dredge-up to the observable atmosphere cannot happen on worlds like Venus or Earth for two reasons. First, hydrogen is a trace species in rocky planet atmospheres, so the formation of phosphine is not favored as it is in the deep atmospheres of the H2-dominated giant planets. On Earth H2 reaches 0.55 ppm levels (Novelli et al. 1999), on Venus it is much lower at ~4 ppb (Gruchola et al. 2019; Krasnopolsky 2010). Second, rocky planet atmospheres do not extend to a depth where, even if their atmosphere were composed primarily of hydrogen, phosphine formation would be favored (the possibility that phosphine can be formed below the surface and then being erupted out of volcanoes is addressed separately in Section 3.2.2 and Section 3.2.3, but is also highly unlikely).

Despite such unfavorable conditions for phosphine production, Earth is known to have PH3 in its atmosphere at ppq to ppt levels (see e.g. (Gassmann et al. 1996; Glindemann et al. 2003; Pasek et al. 2014) and reviewed in (Sousa-Silva et al. 2020)) PH3’s persistence in the Earth atmosphere is a result of the presence of microbial life on the Earth’s surface (as discussed in Section 1.1.2 below), and of human industrial activity. Neither the deep formation of phosphine and subsequent dredging to the surface nor its biological synthesis has hitherto been considered a plausible process to occur on Venus.

More details of the finding are explained in the following two papers published by the scientists:

Whatever the reason for the gas maybe, its a great finding as it has reenergized the search for Extra-Terrestrial life and as we all know: “The Truth is out there…”.

– Suramya

« Newer PostsOlder Posts »

Powered by WordPress