Total Pageviews

Wednesday, 14 September 2016

Samsung S7 Edge headache!

Samsung's own community blog and XDA developers' forum have been buzzing with user instances complaining about the sudden appearance of grey bands on the screen of the Galaxy S7 Edge, the intensity of which seems to increase when the brightness levels are reduced. Some users are also complaining about performance being hampered, just days after, they bought the phone.

he South Korean company, that hit bull's eye with its new batch of Galaxy S phones, and quickly followed them up with an even better Note phablet -- well, it did for some time before going kaput -- is clearly in disarray. After the Note 7 fiasco, users are now complaining about seeing translucent shades of grey on Samsung's Galaxy S7 Edge. 


Interestingly, one user also mentions that, "Samsung is aware of the fault and not bothered to replace it."The claims are supported with images, and at least one video that show the shades of grey in action.

Samsung was caught foot in mouth recently when multiple reports of the Note 7 exploding started emerging. In its own internal investigation, the company found as many as 35 cases of exploding Note 7 phones, something that has been attributed to faulty batteries. The company, thereafter, issued a global recall of the Note 7 and announced that it will give buyers who had already purchased the device (in the US, for instance) a replacement over the coming weeks.

Looks like world leading smartphone company is coming to dead with Galaxy S7 Edge. If this continues we can't say, there will be any users for Samsung. I personally would like the company to go through their product and remodel it again whereas for users they should try to return what they can.  

We can find various memes about S7 Edge on social sites and company should be serious about on going issues with their product. 



Tuesday, 13 September 2016

Generating Bill using HTML and Javascript

In this tutorial, I will be talking about how to generate bill using HTML and JavaScript. Basically,
We are going to create form and assign value for each and every item available in Menu. So i hope you know basic about HTML and JavaScript. Basically, we are going to use checkbox and radio buttons.

The only difference in checkbox and radio button is, checkbox allows you to choose more than one item where as checkbox allows user to choose only one item. Like in below menu program,  in Dishes and Starter you can choose more than one items but in soft drinks you can only choose one items from listen items.
That should cover almost everything about the difference and basic needed for program. Now, let’s start program, code is :-




<html>
<head>
    <title>Generate Bill</title>
   
<script type="text/javascript">
    function display()
    {
    form=document.getElementById("form1");
    total=0;
    var msg="";
    //check if the checkBox is checked or not.
   if(form.Checkbox1.checked==true)
    {
        msg=msg +"Veg Pizza \t- Rs." + form.Checkbox1.value +"\n"; // add the dish name and its price to the msg.
        total=total+parseInt(form.Checkbox1.value); // calculate the total.
    }
    if(form.Checkbox2.checked==true)
    {
        msg= msg + "NonVeg Pizza \t- Rs." + form.Checkbox2.value + " \n";
         total=total+parseInt(form.Checkbox2.value);
    }
   if(form.Checkbox3.checked==true)
    {
        msg=msg +"Veg Burger \t- Rs." + form.Checkbox3.value +" \n";
         total=total+parseInt(form.Checkbox3.value);
    }
   if(form.Checkbox4.checked==true)
    {
        msg=msg + "Chicken Burger \t- Rs." + form.Checkbox4.value + " \n";
         total=total+parseInt(form.Checkbox4.value);
    }
   if(form.Checkbox5.checked==true)
    {
        msg=msg + "Gobi Manchuri \t- Rs." + form.Checkbox5.value + "\n";
         total=total+parseInt(form.Checkbox5.value);
    }
   if(form.Checkbox6.checked==true)
    {
        msg=msg+ "Mashroom Manchuri \t- Rs." + form.Checkbox6.value + "\n";
         total=total+parseInt(form.Checkbox6.value);
    }
   if(form.Checkbox7.checked==true)
    {
        msg=msg+ "Baby corn Manchuri \t- Rs." + form.Checkbox7.value + "\n";
         total=total+parseInt(form.Checkbox7.value);
    }
   if(form.Checkbox8.checked==true)
    {
        msg=msg+ "Tamoto Soup \t\t- Rs." + form.Checkbox8.value + "\n";
         total=total+parseInt(form.Checkbox8.value);
    }
   if(form.Checkbox9.checked==true)
    {
        msg=msg+ "Masala Papad \t\t- Rs." + form.Checkbox9.value + "\n";
         total=total+parseInt(form.Checkbox9.value);
    }
   if(form.Radio1.checked==true)
    {
        msg=msg+ "Coke \t\t- Rs." + form.Radio1.value + "\n";
         total=total+parseInt(form.Radio1.value);
    }
     if(form.Radio2.checked==true)
    {
        msg=msg+ "Pepsi \t\t- Rs." + form.Radio2.value + "\n";
         total=total+parseInt(form.Radio2.value);
    }
     if(form.Radio3.checked==true)
    {
        msg=msg+ "Sprite \t\t- Rs." + form.Radio3.value + "\n";
         total=total+parseInt(form.Radio3.value);
    }
     if(form.Radio4.checked==true)
    {
        msg=msg+ "Thums up \t\t- Rs." + form.Radio4.value + "\n";
         total=total+parseInt(form.Radio4.value);
    }
   
    form.txtarea.value=msg + "\n \t Total :\t"+ total; // display the msg and the total to the textArea.
    }
   

</script>

</head>
<body>
<form id=form1>
    <h4> Dishes</h4><br />
    <input id="Checkbox1" type="checkbox" name="grp1" value="120"/> Veg Pizza<br />
    <input id="Checkbox2" type="checkbox" name="grp1" value="250"/> NonVeg Pizza<br />
    <input id="Checkbox3" type="checkbox" name="grp1" value="40"/> Veg Burger<br />
    <input id="Checkbox4" type="checkbox" name="grp1" value="60"/> Chicken Burger<br />
   
    <h4> Stater </h4><br />
    <input id="Checkbox5" type="checkbox" name="grp2" value="60"/> Gobi Manchuri <br />
    <input id="Checkbox6" type="checkbox" name="grp2" value="75"/> Mashroom Manchuri<br />
    <input id="Checkbox7" type="checkbox" name="grp2" value="75"/> Baby corn Manchuri<br />
    <input id="Checkbox8" type="checkbox" name="grp2" value="55"/> Tamoto Soup<br />
    <input id="Checkbox9" type="checkbox" name="grp2" value="35"/> Masala Papad<br />
   
    <h4> Soft drinks </h4><br />
    <input id="Radio1" type="radio" name="grp3" value="15"/> Coke<br />
    <input id="Radio2" type="radio" name="grp3" value="15"/> Pepsi<br />
    <input id="Radio3" type="radio" name="grp3" value="15"/> Sprite<br />
    <input id="Radio4" type="radio" name="grp3" value="15"/> Thumsup<br /><br />
   
    <input id="btn1" type="button" value="Submit" onclick="display()" /><br /><br />
   
    <textarea id="txtarea" cols="40" rows="10"></textarea><br /><br />

</form>
</body>
</html>





In above program, it takes various inputs from user and calculates total amount. All the value is assigned in programming phase that actual frontend doesn’t show amount.
I hope you enjoyed doing it, its easy to execute. So, go ahead and give it a try.
happy coding !

 

Wednesday, 7 September 2016

Introduction to C++

Before we start on what actually c++ is, I would like to assume couple of things. If you are here looking for C++ introduction I would like to assume you know about computer programs and computer programming with basic knowledge about C programming language .
So, that being said, let us start with what actually C++ is. C++ was first developed by Bjarne Stroustrup in 1979 (some people would like to say early 80’s, don’t worry both means same.) at Bells Labs and is totally based upon C-programming language (which is why I assumed you know about C programming language) , This programming language is also known as advanced version of C programming language or incremented C version.

C++ is cross-platform programming language i.e. it works in various version of operation system like: - windows, Mac OS, different version of Linux and UNIX. This is why C++ is still popular in present day due to this feature.
C++ is hard to categorize, Compared to assembly programming language, it is high-level programming language but it also includes many low-level facilities to manipulate the computer’s memory. Due this feature C++ is excellent programming language for writing efficient “system” program.

American National Standard Institution (ANSI) and International Standards Organization (ISO) provide “official” and generally accepted standards definition of many programming including C and C++. Programs written in these standards are guaranteed to run on any devices. This system was necessary for various standards being developed around the world which might lead to inconsistency in programming world.