Posts

Showing posts from December, 2016

Cyclomatic Complexity and C Code

Cyclomatic Complexity refers to the code complexity and the relevent threat level of code having bugs. It's measured as counts and the range is generally 1-10 good - very less possible bugs, 10-20 average - few bugs possible, 20-30 High threat - high number of bugs possible due to high complexity, >30 is very dangerous with very high number of complex bugs possible. Generally a program counting the Cyclomatic complexity goes through the code and counts the various conditions, branches, go to's etc. Then by counting the edges of code flow graph w r t nodes, the CC count is calculated. What I have to do with all this? Basically in my current organization we have CBA - continuous build automation facility which produces nightly builds of all projects. It also performs linting, static code analysis and produces various red/yellow etc flags for code quality issues. Recently a red flag was seen in a feature I halped integrate. This is a third party component, but since we integrat...

Thinking about getting a Raspberry Pi 3 to use as Living Room Computer

Well, I have a laptop for home use. But it's got kind of cramped feeling when using it for media consumption - because mainly that's what we use it for. Basically I have an external HDD to which I dump whatever media I get my hands on. This is then used on the laptop. So I'm looking at a setup which is cost effective and at the same time let us do the TV thing with external HDD and also lets us do bit of browsing for news etc.  Recently I purchased a Logitech MK215 wireless Keyboard Mouse combo and it's made this setup much better. So now I'm thinking of shifting to bigger display - at least a 18.5 - 24" monitor. The problem is connecting laptop to this will just make the laptop work as desktop and it's not good for battery. Also it gives us a tangle of cables plus the space used. Then there's the screen switching between external and internal display. So it's not just the ideal setup. What I want is a low power one box solution that will let me pla...

My views regarding smart phone purchase

Many of us are routinely looking at buying yet another smart phone and there are so many options out there, so many features, combinations and different hardwares, it becomes challenging. Looking at the available choices it can be frustrating at times - especially for people looking to buy an Android phone. There are some people who want an iPhone. New buy is simple for them. If you have the budget go for the latest and greatest from Apple. Otherwise settle for one or two gen older iPhone. You know what you are getting. You want it so you take it with all the shortcomings or the lack of features there-of. They spend considerable amount on phone and get something that can be very fulfilling for them. Next are people who are looking for just calling and light games-entertainment. They usually have budgets from INR 5000 to 10000. And from options front they have Androids only. The entry level androids are quite limiting in hardware/features and overall performance. But they can be good va...

Android Games I Like

I occasionally use my Android phone for playing games. Most of the android games are not comparable to PC Games where you get lots of content, slick graphics and great game play too. There are some games on Android which strive to be equivalent and also manage to be so. Lets take a look at them:  1. Modern Combat 5: Blackout - Excellent Game, pity can't be played offline. Bugs out once in a while due to god knows what issues. But overall awesome when it works.  2. Brothers in Arms: WWEII era game that manages to look and play the part. Really awesome game - felt like I'm almost back to Call of Duty. The missions and games are totally worth. 3. Modern Warplanes: Relatively new game but is very engaging. Excellent graphics and great controls. Overall awesome experience.  4. Hill Climb Racing and Hill Climb Racing 2: Total timepass.  5. Asphalt 8 and Asphalt Extreme: Great racing games. The graphics are top notch and the races even more so. 6. Overkill 3: This is the game I have p...

A Recap of Year 2016

It's about the end of this year and I felt like I should put together a recap post for this year. The thing is I'm not posting as much sine I have been busy elsewhere. (New home it is ;) ) But a lot of things happened. I started the year with a switch to Linux Mint, but after using it for 3-4 months got bored, and instead switched to KDE Neon distro which showcases latest plasma developments and certainly is cutting edge and exciting. But because of stability related issues - yeah it's cutting edge ;C - I had to abandon it. So couple of months back I'm back on Ubuntu. Actually my old Acer laptop which boasted of 1GB of RAM and was proving to be bane of all Linux distros I was trying, died second time. It turns on and everything seems to be working except no display. Maybe the LCD panel is gone or maybe the connector is damaged, I don't know. I don't have a spare monitor to connect to the D-SUB port so I can't check if it's really working or just making s...

Git Proxy Settings

Command to use: git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080     change proxyuser to your proxy user     change proxypwd to your proxy password     change proxy.server.com to the URL of your proxy server     change 8080 to the proxy port configured on your proxy server If you decide at any time to reset this proxy and work without proxy: Command to use: git config --global --unset http.proxy Finally, to check the currently set proxy: git config --global --get http.proxy

A test of merging two big files in Linux

Update: "Beyond Compare" it is. Certainly for big files weighing in MBs it's the clear winner since meld just craaaaaawls. Unfortunately you get only 30 days of eval period with Beyond Compare and it's paid after that. But for anybody doing serious amount of compare and merge "Beyond Compare" may prove to e good investment. Otherwise for all us fellows who just occasionally merge things "Meld" it is! I contribute to Ubuntu Translations. Recently a curious thing happened. While going through some translations I noticed that there are some projects where upstream translations are available. But those are not yet imported in Ubuntu packages available on Launchpad. One such package was inkscape. When I checked the upstream website for inkscape I found that in trunk there's a translation available and there is a lot of work done. So I downloaded the po file from there and tried to upload it to Launchpad. Rosetta(Launchpad Translations Managem...