Monday, December 17, 2018

What is DevOps?

Azure DevOps is the evolution of VSTS (Visual Studio Team Services)

You can build, test and deploy any language or platform to any cloud.

Details?

https://www.telerik.com/blogs/microsoft-azure-devops-what-you-need-to-know

Monday, November 19, 2018

RegEx pattern tester

Do you want to test your regex pattern? Here you go which allows to identify whether your RegEx will work appropriately or not. It's very useful when coding with RegEx:

http://regexstorm.net/tester

Wednesday, May 30, 2018

Software Development for Portable Devices - Questions

In my BITS Work Integrated Learning Program, Software Development for Portable Device is one of my favorite topic which dealt:
1) Arduino board program
2) Rasbery Pi program
3) Andriod App development
4) Hardware part of portable devices

Also, the letcturer Mr.ChandraShekhar put great effort to make this course intesting and enjoyable. I highly recommend anyone to pursue this course in BITS.

Here are the sample Questions:




Paper-2 




Tuesday, May 29, 2018

Cloud Computing - Questions

Cloud Computing is one of the emerging IT technology. I have taken up this course in my M.Tech from BITS Pilani. I planned to post questions so that it would help others as I always believe questions ignite minds!




































Cloud Computing - Regular Comprehensive - Apr 2018



Cloud Computing - MidSem Regular - Sep 2017

Add caption

Wednesday, April 11, 2018

What every programmer must know about encoding?

Any programmer working with any language should know about encoding.

Computers stores data in the form of bits i.e 1s and 0s. When you enter any character using keyboard, it saves that character as bytes. When English speaking people developed computers and OS they defined the basic/common encoding ASCII.

ASCII uses only 7 bits to store characters (alphabets, numbers, special chars...etc). 7 raise 2 is 128. So only 128 characters are supported in ASCII encoding system.

When Europeans, Japanese,  Chinese and Indians wants to work with their characters it was not supported using English_American system.

Europeans thought of using the other bit in ASCII and adapt some of their characters so that they can store upto 256 characters. But still that was not enough for the world wide users.

Even US English speaking people came across problem when storing special characters like degree (°C), Square, Cube...etc which are not part of ASCII's 128 character list.

 People started developing their own code pages at that time and developed abundant amount of code pages. Even US English speaking people came across code page called "windows-1252" which is Latin based and extended 128 ASCII into 256. But, this created lots of confusion to encode/decode appropriately and to share information.

Smart people around the world planned to fix this issue by introducing concept called Unicode. It supports lakhs of characters (code points) so that all characters used in the world are handled.

Unicode comes with variations like UTF8, the most widely used file encoding system and UTF16 & UTF32. UTF8 means it start using 1 byte for character and if that is not sufficient it goes upto multiple bytes. Similarly UTF16 and 32.

Here are the FAQs

1) What is encoding?
It is the process of converting text into bytes

2) Why encoding needed?
Because the default ASCII encoding couldn't support all the characters used in the world except English countries.

3) As a developer where I need to be careful about encoding?
  A) When ever you get chance to read files provided by others, have conscious effort on what encoding is used in the file. So that you could use same to decode in your language API

 B) Know what is the default encoding your programming language supports. So that you can override that when required.
For Ex:
.NET supports UTF-16 for chars and strings
StreamReader constructor uses UTF-8 as default encoding if user doesn't specify the same
https://msdn.microsoft.com/en-us/library/yhfzs7at(v=vs.110).aspx#Anchor_2
https://msdn.microsoft.com/en-us/library/ms143456(v=vs.110).aspx#Anchor_2

4) Is encoding and encryption same?
No, Encoding is just way of formatting the data and setting rule how to read the data. But, encryption just alter the data and re-alter it at receiving end.

5) What is code page?
Every language speaking people defined the extension of ASCII characters as per their language from 128 to 255 is called their code page. For ex: windows-1252

6) Do you want to know more details on this encoding?
Reference 1: http://kunststube.net/encoding/
Reference 2: https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/

Happy Coding!

Friday, April 6, 2018

When you modify existing code!

Modifying or Refactoring production code is like performing beating heart surgery! :)

Yes, here is my suggestions or lessons learnt when doing this:

1) Don't change the code sequence without knowing complete understanding
Code Sequence is very important factor when writing code. This often has perfect sequence of algorithm to solve problem. If this is broken without understanding it then it will surely create bugs and your life would become hell. So, be care here.







Saturday, February 24, 2018

Software Architect Interview with AntWorks

1) What is delegate and how do you make two subscribers of event call parallel? i.e If they called sequentially there would be chance that event maintained data could be accessed/modified by one other and other might get data integration issue.

2) How reflection is implemented in C#?

3) What is the default parameter in C++/C# ?

4) Let's say you have Method1 in class A and fields like x, y. If you create multiple instances of A, how much memory Method1 consume?
class A{
int x;
int y;
Method1(){...}
}
If it consumes only single code memory then how this method know the value of members x, y of A?

5) What is the use of 64-bit processors than 32 bit ones?

6) Let's say, you have list updated by thread getting data from some driver. When ever there is change in list then you need to notify the interested people. Write a code for this.

7) How to share data among multiple process where data size is huge?

8) Can I share data using Dlls? If yes then data could be red by unwanted processes right??


Thursday, February 22, 2018

Difference between Various Parse in C#

C# supports 3 supported Parse function:
1) int.Parse(stringTobeParsed...);
2) int.TryParse (stringTobeParsed, out intVariableToCatchResult) : int
3) Convert.ToInt(...)


Out of these 3, the most preferred one is 2nd one i.e TryParse which doesn't throw exceptions like other 2 and based on it's return value, one can understand whether conversion is success or not. i.e we should process the out value only when this function returns true. When exception stuff exist in input params, it returns false.


Reference:


https://www.codeproject.com/Tips/845439/Difference-between-int-Parse-Convert-ToInt-and-int