Be The Geek

Google Launched Domain Registry

Google launches domain registry on domain.

Google domains
Google launches domain registry on domain.

Google has announced the launch of a new domain registration service. Called Google Domains, it is being launched as an invite-only beta for both new domain registrations and domain transfers.
While Google itself isn't offering any website building tools, they've partnered with several website building companies, including Squarespace, Wix, Weebly, and Shopify, in order to provide full services for domain buying customers.

One of the big selling points with Google Domains is that they aren't charging an extra fee for private registration, something that often costs just as much as the domain registration itself with other registrars. Users with their domains registered through Google Domains also get up to 100 email addresses and custom subdomains.

Domain registration is only $12 per year, which makes it slightly cheaper than GoDaddy's rate, however with domain privacy free through Google Domains, it makes it significantly cheaper than GoDaddy's $20.98 for both registration and regular privacy of a .com domain name.

Users currently need a special invitation code to either buy or transfer domains through Google Domains. Google said they hope to make it "more widely available soon" and that they are using the early invite-only beta to work out any issues (e.g., customer support, services) that arise.

Google domains

WHOIS results for

Google launches domain registry on domain.
Google launches domain registry on domain.

Volkswagen Scandal - 18 Billion Penality



What did Volkswagen does?

The company is said to have been caught cheating on American air pollution tests. Volkswagen installed sophisticated software known as "defeat devices" in the electronic control module of diesel vehicles issued between 2008 and 2015. This software was able to sense when emissions testing was in progress based on the position of the steering wheel, vehicle speed, the duration of the engine's operation and barometric pressure. Once the software picked up on these inputs, it went into a type of "test mode" when the front wheels of the car were on a dynamometer. This allowed emissions controls to run full-tilt during official testing, but emitted 10 to 40 times the legal amount while on the road.
The allegations were made by the U.S. Environmental Protection Agency on Sept. 18, after independent researchers raised questions about emissions levels, prompting government agencies to investigate further.
Once regulators demanded an explanation, the EPA said Volkswagen "admitted" their cars contained those defeat devices.

How did VW react?

High-ranking executives have spoken out in recent days, with CEO Martin Winterkorn saying he was "deeply sorry" to have broken public trust and promised VW would fully cooperate with regulators.
VW called for an external investigation and is now conducting an internal probe.
During a launch event in Brooklyn this week, VW's North America CEO, Michael Horn, made a starker concession, saying "our company was dishonest" and that Volkswagen "totally screwed up." Still, a press release on Sept. 21 still referred the defeat devices as software "irregularities."
"We do not and will not tolerate violations of any kind of our internal rules or of the law," Winterkorn's statement said.

Will Volkswagen be punished?

The automaker could face U.S. fines of $37,500 per vehicle, the EPA told reporters last week. With around 482,000 of its diesel vehicles sold in the U.S. since 2008, this could mean a penalty of up to $18 billion.
Class-action lawsuits from customers are still on the table, too, but VW could face more than civil penalties. Reports suggest the U.S. Department of Justice has launched a criminal probe into whether the company deliberately cheated emissions tests.
The EPA has not yet forced Volkswagen to issue a total recall but expects to do so in the near future. Volkswagen would foot the bill for any repairs, although the EPA claims affected diesel cars are still safe to drive.

Will VW face fire outside the US?

The scandal has spread across the globe and Volkswagen now estimates 11 million vehicles worldwide are equipped with the defeat device software.
European authorities are reportedly planning to call a meeting of national representatives to discuss the case, though Italy and Switzerland are among the few that have launched their own investigations. Germany, Volkswagen's home country, is also planning to implement additional testing.
South Korea will conduct its own probe and has summoned Volkswagen reps to discuss the scandal.

Is this the end of Volkswagen as we know it?

A research note from ratings agency Fitch says Volkswagen should be able to absorb potential penalties from a U.S. investigation, adding that it's unlikely the company will face the maximum $18 billion fine. Fitch went on to praise the group's financial structure and "robust" free cash flow generation, which it predicted will reach 3.5 billion euros in 2015.
However, Volkswagen issued a statement Tuesday outlining a 6.5-billion euro provision to cover any service costs and "other efforts" meant to restore public trust, but that amount could be amended as investigations continue. Group earnings targets will also be adjusted.
Still, a number of analysts don't seem worried, and banks such as UBS say they're still positive on Volkswagen shares, despite showing major losses.

Will heads roll?

"I am sure that there will be personnel consequences in the end, there is no question about it," Olaf Lies, economy minister of the VW share-holding state of Lower Saxony, told German radio Tuesday morning.
It's unclear who will take the brunt of the blame as details emerge from a growing number of investigations, but there is some speculation over the job security of Volkswagen's chief exec, Winterkorn, who only months ago faced a leadership battle with the carmaker's chairman.
Speaking to Squawk Box Europe on Tuesday, Ferdinand Dudenhoffer, professor at the Center for Automotive Research at Universitat Duisburg-Essen, said there's no chance for Winterkorn to keep his position.
"They need a new start, and the new start can only be made with ... new personnel and new management," Dudenhoffer said.
The company has not made any formal indications of leadership changes since the scandal erupted.

Method Overloading And Method OverRiding

Method Overloading refers to Concept the defining the one or more functions or methods with same name with different Parameter Length or Parameter Types . So Functions are differenciated by their signature or Parameters .

Example For Method OverLoading

public class test
    public void getStuff(int id)
    public void getStuff(string name)
Method OverRiding is Totally Different Concept As Compared to Method Overloading . Method OverRiding Refers to Redefining the Function that Correspond to Some Other Class and Accessed Using Inheritance .

The Concept of Method OverRiding depends on Two Keywords - Virtual and OverRide

In Simple Scenario to Explain Method OverRiding with Example is Lets Assume We have a Base Class with function Sample() in Base Class then The Oher class that Derived From that Base Class Can Redefine the Functionality of That Sample() Function refers to Concept of Method OverRiding .

Example1  For Method OverRiding

class BC
  public virtual void Display()

class DC : BC
  public override void Display()

class Demo
  public static void Main()
     BC b;
     b = new BC();

     b = new DC();



Example1  For Method OverRiding

public class test
        public virtual getStuff(int id)
            //Get stuff default location

public class test2 : test
        public override getStuff(int id)
            //or - Get stuff new location



Value Types Vs Reference Types Dotnet

Stack and heap

In order to understand stack and heap, let’s understand what actually happens in the below code internally.

public void Method1()
    // Line 1
    int i=4;

    // Line 2
    int y=2;

    //Line 3
    class1 cls1 = new class1();

It’s a three line code, let’s understand line by line how things execute internally.
  • Line 1: When this line is executed, the compiler allocates a small amount of memory in the stack. The stack is responsible for keeping track of the running memory needed in your application.
  • Line 2: Now the execution moves to the next step. As the name says stack, it stacks this memory allocation on top of the first memory allocation. You can think about stack as a series of compartments or boxes put on top of each other.
  • Memory allocation and de-allocation is done using LIFO (Last In First Out) logic. In other words memory is allocated and de-allocated at only one end of the memory, i.e., top of the stack.
  • Line 3: In line 3, we have created an object. When this line is executed it creates a pointer on the stack and the actual object is stored in a different type of memory location called ‘Heap’. ‘Heap’ does not track running memory, it’s just a pile of objects which can be reached at any moment of time. Heap is used for dynamic memory allocation.

Why String Are Value Types Csharp Dotnet

The distinction between reference types and value types are basically a performance tradeoff in the design of the language. Reference types have some overhead on construction and destruction and garbage collection, because they are created on the heap. Value types on the other hand have overhead on method calls , because the whole object is copied rather than just a pointer.

Because strings can be  much larger than the size of a pointer, they are designed as reference types. Also, as Servy pointed out, the size of a value type must be known at compile time, which is not always the case for strings.

Strings aren't value types since they can be huge, and need to be stored on the heap. Value types are stored on the stack. Stack allocating strings would break all sorts of things: the stack is only 1MB, you'd have to box each string, incurring a copy penalty, you couldn't intern strings, and memory usage would balloon, etc

That is why a string is really immutable because when you change it even if it is of the same size the compiler doesn't know that and has to allocate a new array and assign characters to the positions in the array. It makes sense if you think of strings as a way that languages protect you from having to allocate memory on the fly 

Boxing And Unboxing in DotNet

Boxing and unboxing

I Recommend to Go to this link to Read about Value Types and Reference Types Before Going To Understand the concept of Boxing and Unboxing

Value Types Vs Reference Types Dotnet

Boxing and unboxing are the most important concepts you always get asked in your interviews. Actually, it's really easy to understand, and simply refers to the allocation of a value type (e.g. int, char, etc.) on the heap rather than the stack.


Implicit conversion of a value type (int, char etc.) to a reference type (object), is known as Boxing. In boxing process, a value type is being allocated on the heap rather than the stack.


Explicit conversion of same reference type (which is being created by boxing process); back to a value type is known as unboxing. In unboxing process, boxed value type is unboxed from the heap and assigned to a value type which is being allocated on the stack.

For Example
    // int (value type) is created on the Stack
    int stackVar = 12;
    // Boxing = int is created on the Heap (reference type)
    object boxedVar = stackVar;
    // Unboxing = boxed int is unboxed from the heap and assigned to an int stack variable
    int unBoxed = (int)boxedVar;

Real Life Example

    int Val_Var = 10;
    ArrayList arrlist = new ArrayList();
    //ArrayList contains object type value
    //So, int i is being created on heap
    arrlist.Add(Val_Var); // Boxing occurs automatically Because we are Converting int to Object Type This is Called Boxing
    int j = (int)arrlist[0]; // Unboxing occurs

Performance implication of boxing and unboxing

In order to see how the performance is impacted, we ran the below two functions 10,000 times. One function has boxing and the other function is simple. We used a stop watch object to monitor the time taken.
The boxing function was executed in 3542 ms while without boxing, the code was executed in 2477 ms. In other words try to avoid boxing and unboxing. In a project where you need boxing and unboxing, use it when it’s absolutely necessary.

Boxing And Unboxing in DotNet
Boxing And Unboxing in DotNet 



Google's New Logo: All You Need To Know

Google is all set to don a different look. The internet numero uno has unveiled a new logo just weeks after a surprise reorganization under a newly-formed parent company called Alphabet.Here's all you need to know about the company's new logo. 
The new logo

The revised design features the same mix of blue, red, yellow and green that Google has been using throughout its nearly 17-year history, though the hues are slightly different shades.A swirl of dots in Google's colors will also appear when a spoken command for information is being processed or one of the company's other services is performing a task.

Why the change
Google believes its new logo will provide a more versatile identity suited for seamless computing across devices. As the company said in a blog post, "Today we're introducing a new logo and identity family that reflects this reality and shows you when the Google magic is working for you, even on the tiniest screens. As you'll see, we've taken the Google logo and branding, which were originally built for a single desktop browser page, and updated them for a world of seamless computing across an endless number of devices and different kinds of inputs (such as tap, type and talk."

Google logo over the years
This is the sixth time that Google has changed its logo since Larry Page and Sergey Brin formed the company. However, the current redesign change marks the most noticeable change since the company dropped an exclamation point that appeared after its name until May 1999.

Google Reveals Secret Code for Recruiting

It’s the hiring process at Google.

You’re right, that’s a lot to think about, but fortunately for every unemployed people out looking for work, there’s a much better way to have a Google jobg.

No luck getting your foot in the door at Google?

Max Rosett, a new Google hire, recounted his recruitment story on Hustle earlier this week.
Rosett was a former data scientist with a huge online housing directory, but knew he wanted to become a computer engineer. Though he was earning a master’s degree, he writes that he didn’t feel ready to apply for a full-time software role. His unexpected journey to the Googleplex started three months ago, split seconds after he Googled “python lambda function list comprehension”, or so he says. “Up for a challenge?” When he agreed, he was led to, a programming test the company has also used in the past.

Rosett proceeded to solve a total of six problems over the next two weeks.
After all tests went well, Max was asked for his personal contact details, and a Google HR representative soon had him in its grubby little hands. Rosett’s experience is not unusual. I opened it and saw two sentences: ‘Type request to request a challenge. The first thing you have to do is to look at available positions if they plan opening up. He writes: “ is a brilliant recruiting tactic”.
Rosett’s experience proves that Google is continuing to evolve to improve its talent pipeline.

For example, according to comScore, Google commands the market for desktop searches in the both home and work, with 64% of the share. More will be known in the future as we see Google mature and consolidate its search engine business while other projects move on to different letters of the Alphabet. Why wouldn’t Google want to tap into some of that search frenzy?
A recruiter then called Rosett and, after he went through a more traditional one-to-one interview process, he ended up being hired by Google. Like Rosett, these candidates aren’t technically looking, but they wouldn’t mind having a conversation if the opportunity arose.

It perhaps shouldn’t come as a surprise then, that Google has tracked down new employees based on what they search for.

Difference Between Stored Procedure and Functions Sql

Stored Procedure and Functions


1. Function Must Return Value

   For Stored Procedure it's Not Must to return value it's optional 

2. Stored Procedures are pre-compile objects which are compiled for 
first time and its compiled format is saved which executes (compiled code) whenever it is called 

But Function is compiled and executed every time when it is called

3. Function can Accept only Input Parameters
   But Stored Procedure Can Accept Both Input and Output Parameters

4. Functions can be called from Procedure whereas Procedures cannot be called from Function

5. Functions Like Views only Accept Data Select Statements It does not Allow the Permanent Storage of data so it does not allows DML statements like Insert , Update , Delete

Whereas Store Procedure Allows All type of DML statements like Insert , Update and also Select Statements.

6. Funtions can be used in Select Statements like views to View data 
But Stored Procedure Cannot be Embedded in Select Statements


Difference Between Views And StoredProcedure Sql

Stored Procedure Vs Views

1. Stored Procedure are collection of pre-executed sql Statements that accepts parameters as input and depending on input parameters passed gives the Output Result

Views Act like Virtual Tables That Contains set of Rows and Columns from multiple original table of Database according to defined Query Commands

2. Stored Procedure Cannot be Used as Large Building Block or we can simply say It cannot be treated as tables in large queries 

But Views Can be treated like tables we can Use Views similar to table and execute select statements on Views Similar to Tables

3. Stored Procedures Allow the Use of Data Manipulation Command like Insert Data , Update data on Table or Schemas To Manipulate Data

But Views Cannot have Data Manipulation Command It can only give list of data or View of data based on set of Queries in it . Views cannot be used to Permanently store data in database it allows just to view the data.

4. Views  can have  only one Select Statement Allowed To Use

Store Procedure Can Use Various Set of Statements That also Include If-Else Statements

5. View is a virtual table that only exists when you use the view in a query. Its considered virtual table because it acts like a table, and the same operations that can be performed on a table can be performed on a view. Virtual table doesn't stay in the database, it gets created when we use the view and then delete it. 

But Stored Procedure Physically Exist 

6. Views are Used for Providing Security to data So that by using the Views we can View only Particular view of the schema to the user Not the Full View with required columns. Their is no physical presence of view data anywhere in database.

Stored Procedure allows to perform any type of data Manipulation operation But We can also Put Security Permission on Store Procedure In order to Restrict its Access From Unauthorized User

7. Code Sample For Stored Procedure and Views
This Stored procedure is used to Insert value into the table tbl_students. 

Create Procedure InsertStudentrecord
 @StudentFirstName Varchar(200),
 @StudentLastName  Varchar(200),
 @StudentEmail     Varchar(50)
   Insert into tbl_Students (Firstname, lastname, Email)
   Values(@StudentFirstName, @StudentLastName,@StudentEmail)
View Example
CREATE VIEW [Category Sales For 1997] AS

SELECT DISTINCT CategoryName,Sum(ProductSales) AS CategorySales

FROM [Product Sales for 1997]

GROUP BY CategoryName 

Jquery Full Calender Integrated With ASP.NET

Jquery Full Calender Integrated With ASP.NET

- First you need to define the function in Code-Behind using c# or that will make a Class that contains the similar properties that is required by Jquery full calendar to Fill the Calendar

- Then We Use Jquery Ajax and make request to that function that will pass some data that you can fill manually or you can also fetch that from database and then return that to this Ajax Request

- Now use the Code below to Plot then on Full Calendar

If you have any problem setting this please tell me in comments I am here to help you setting this up

Download Full Solution Code Here . Don't Forget to Share Us on Social Media

Code To Fetch Events Using Jquery

 <script type="text/javascript">
        $(document).ready(function () {
                type: "POST",
                contentType: "application/json",
                data: "{}",
                url: "Default.aspx/GetEvents",
                dataType: "json",
                success: function (data) {

                        header: {
                            left: 'prev,next today',
                            center: 'title',
                            right: 'month,agendaWeek,agendaDay'
                        editable: true,
                        events: $.map(data.d, function (item, i) {
                            var event = new Object();
                   = item.EventID;
                            event.start = new Date(item.StartDate);
                            event.end = new Date(item.EndDate);
                            event.title = item.EventName;
                            event.url = item.Url;
                            event.ImageType = item.ImageType;
                            return event;
                        }), eventRender: function (event, eventElement) {
                            if (event.ImageType) {
                                if (eventElement.find('span.fc-event-time').length) {

                                } else {

                        loading: function (bool) {
                            if (bool) $('#loading').show();
                            else $('#loading').hide();
                error: function (XMLHttpRequest, textStatus, errorThrown) {
        function GetImage(type) {
            if (type == 0) {
                return "<br/><img src = 'Styles/Images/attendance.png' style=

            else if (type == 1) {
                return "<br/><img src = 'Styles/Images/not_available.png' style=

                return "<br/><img src = 'Styles/Images/not_available.png' style=



Web Method In C# that Pass the Event to Jquery Ajax Request

        public static IList GetEvents()
            IList events = new List<Event>();
            for (int i = 0; i < DateTime.DaysInMonth(DateTime.Now.Year, 

DateTime.Now.Month); i++)

                events.Add(new Event
                    EventName = "My Event " + i.ToString(),
                    StartDate = DateTime.Now.AddDays(i).ToString("MM/dd/yyyy"),
                    EndDate = DateTime.Now.AddDays(i+1).ToString("MM/dd/yyyy"),
                    ImageType = i % 2,
                    Url = @""
            return events;

Class To Define the Event

 public class Event
        public Guid EventID { get { return new Guid(); } }
        public string EventName { get; set; }
        public string StartDate { get; set; }
        public string EndDate { get; set; }
        public int ImageType { get; set; }
        public string Url { get; set; }

Using Report Viewer with Dataset Csharp and vb

For Using Report Viewer in or Desktop Application using Csharp or Visual basic I am today providing a simple step by step solution -

Demo File is also available to Download so that you can have a demo for how to use or Use Reports With Dataset in . I have provided Both Csharp and Vb code

Step 1 - First of Start a C# Project or Vb Project and then Add an Empty Webform to it .

Step 2 :- Now Right Click on Solution in Solution Explorer and Click on Add then click on New Item . Then Click On DataSet and Give a Name and Click Ok . This will add a Dataset in your Project . I will recommend it give dataset a name similar to database table whose data you want to show in Report Viewer

Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet
Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet

Step 3 :- Now After Dataset is added Right Click on Dataset Page and Click on Add then click on DataTable It will add a DataTable

Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet
Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet

Step 4:- Now Add Columns to DataTable and Must Ensure that the name of these DataTable column must be same to Names of Columns in Database that Corresponds to this DataTable

Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet
Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet

Step 5 :- Now Again Right click on solution in Solution Explorer and Click on Add then click on New and then click on Report give it a name and click on ok . This will add a Report to your Project

Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet
Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet

Step 6 :- Now From You Controls Toolbox in Visual Studio . Place a Report Viewer Control on your WebPage as shown in image below

Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet
Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet

 Step 7 :- Now Open your Recently Added Report file you will see it same as shown below

Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet
Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet

Step 8 :- Now we need to Add the Previously added dataset or need to link the dataset we added in previous steps to the report file

Step 9 :- So for that linking Right Click on Dataaset folder in sidebar of Report Then Click on Add Dataset then you will see the following screen

Step 10 :- Now select the Added Dataset from Combox for DataSource and then after that Choose the DataTable from Next Last Combobox

Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet
Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet

Step 11  :- Now Dataset Fields will be added Under Dataset folder in Left Sidebar of Report . Now you can Drag drop fields from Left Sidebar and also Place the Textbox for Labelling like I have added for ID,Name and heading etc

Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet
Using Report Viewer with Dataset Csharp and vb , Using Reporting in asp .net dotnet

Step 13:-  Now we need to Add the Code so Open Cshar Code side of Webpage where you have added the Report viewer control And Add the following code according to your choose language c# or vb

Now At Page_Load Event of your WebPage Add the Following Code According to C# or VB

Imports System.Data
Imports System.Data.SqlClient
Imports Microsoft.Reporting.WebForms

        'VB CODE
        ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local
        ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report.rdlc")

        Dim dsUsersInfo As New DataSet1
        Dim con As New SqlConnection("Your Connection String")
        Dim cmd As New SqlCommand("select * from YourTableName", con)
        Dim da As New SqlDataAdapter()
        da.SelectCommand = cmd

        'DataTable1 is the DataTable we have created in Dataset1 that contains our columns
        da.Fill(dsUsersInfo, "DataTable1")

        Dim datasource As New ReportDataSource("DataSet1", dsUsersInfo)

        'CSharp Code
        'ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local
        'ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report.rdlc")

        ' DataSet1 dsUsersInfo = new DataSet1();

        '        SqlConnection con = new SqlConnection("Your Connection String"));

        '            con.Open();
        '            SqlCommand cmd1 = new SqlCommand("select * from TableName", con);

        '            SqlDataAdapter da = new SqlDataAdapter(cmd1);
        '            da.Fill(dsUsersInfo, "DataTable1");
        '            con.Close();

        '        ReportDataSource datasource = new ReportDataSource("DataSet1", dsUsersInfo.Tables[0]);


Step 12 :- Now when you run the Page where you have added the Report viewer control It will show the Report with data from database