• First American Financial exposed 16 years’ worth of mortgage paperwork, including bank accounts
    by Dieter Bohn on May 24, 2019 at 9:25 pm

    Brian Krebs has revealed that a company that primarily works in real estate insurance has left as many as 885 million records exposed on its website — going back to 2003. First American Financial Corp’s big mistake should have been obvious to anybody who would have given a second thought to security. If you had the URL for any document on its website, you could simply add or subtract one to a number in the URL to access another document. Given the type of business this company is in, those records include incredibly private information. Krebs spoke with Ben Shoval, who brought the exposure to his attention and who says the documents potentially included “Social Security numbers, drivers licenses, account statements, and even internal... Continue reading […]

  • Snap is looking into licensing music for users to embed in posts
    by Dami Lee on May 24, 2019 at 9:21 pm

    Snap is in talks with Sony Music Entertainment, Universal Music Group, and Warner Music Group to license songs for users to embed in posts, according to a Wall Street Journal report. The deal would give users access to a broad catalog of songs to post on Snapchat, much like the features available for Instagram Stories and TikTok. The licensing deal would come at a time when tech companies are increasingly leaning into music features as a core part of their offerings. The popularity of these videos has allowed social media platforms to launch hit songs — Lil Nas X’s “Old Town Road,” which has been the number one song on the Billboard Top 100 for several weeks, first gained popularity through TikTok as a meme. Facebook secured a licensing... Continue reading […]

  • Some OnePlus 7 Pro phones are having strange phantom tap touchscreen problems
    by Chris Welch on May 24, 2019 at 8:25 pm

    By all accounts, the OnePlus 7 Pro is the nicest phone released by the company yet — with a higher price that reflects as much. But some early buyers are reporting that they’ve noticed phantom screen presses, where apps are responding as if something on the screen had been tapped even when the phone is sitting idle. OnePlus is aware of the issue, according to Android Police, and says it’s treating it as a high priority after managing to successfully reproduce the problem. If you just bought this phone, you’re no doubt hoping that the phantom taps are something that can be eliminated through a software update and aren’t indicative of a deeper hardware dilemma. The OnePlus 7 Pro has a first-of-its-kind OLED screen with a refresh rate of... Continue reading […]

  • Social Blade shaped YouTube culture, and creators are now banding together to save it
    by Julia Alexander on May 24, 2019 at 7:55 pm

    To those outside of YouTube, Social Blade is just another analytics site that tracks subscriber growth or loss. But it’s not. Social Blade has become a crucial component to being a YouTube creator, providing creators with numbers to prove why they matter as a community. Now, Social Blade’s time might be up. YouTube’s product team is introducing a change to the platform in August that will hide live subscriber counts. The change will affect third-party sites that use YouTube’s API to render their data, including Social Blade. Dozens of YouTube channels dedicated to live-streaming subscriber battles (like T-Series versus PewDiePie) will no longer work because they won’t have access to Social Blade’s data counter. Social Blade was the first... Continue reading […]

  • Teenage Engineering’s first record label is a showcase for its delightful synths
    by Dani Deahl on May 24, 2019 at 7:50 pm

    Swedish music hardware company Teenage Engineering has developed a cult following around their design-forward synthesizers. Now it’s expanded into another portion of the music industry and launched a record label. Naturally called Teenage Engineering Records, the company says the label only has two rules for releases: “it needs to be a good song,” and the song must use at least one Teenage Engineering instrument. The label’s first release is “You’re In Love with Your Hair” by newcomer Swedish artist Emil Lennstrand, otherwise known as Buster. This appears to be his first release ever, and Teenage Engineering says he’s currently finishing up a bunch of songs that will be released in the near future. “You’re In Love with Your Hair” was... Continue reading […]

  • Amazon still hasn’t fully given up on its mall kiosks
    by Chris Welch on May 24, 2019 at 6:05 pm

    Amazon can’t seem to decide whether it wants its own mini-stores inside shopping malls. After the company decided earlier this year to close the many kiosks it had maintained at malls, a few new ones have sprung up. As Business Insider notes, Amazon’s revamped mall presence is being called “Presented by Amazon.” Unlike the previous mall kiosks, which were showcases for Amazon’s Echo, Kindle e-readers, Fire TV, and other first-party hardware, this new approach offers “a themed selection of top brands, frequently updated and presented to you by Amazon.” So, as with its Amazon 4-star retail stores, it sounds like the selection at Presented by Amazon will be rotated out on a regular basis — and it won’t be limited to Amazon’s own products. ... Continue reading […]

  • Taika Waititi’s live-action Akira movie gets May 2021 release date
    by Julia Alexander on May 24, 2019 at 5:30 pm

    Thor: Ragnarok director Taika Waititi’s next big-budget project, a live-action version of the beloved manga series Akira, finally has a release date, The Wrap reports: May 21st, 2021. Waititi’s project, which is being distributed by Warner Bros., was first announced in 2017. The announcement came just before Waititi’s first major blockbuster film, Thor: Ragnarok, was released. Although Waititi built up a cult-like fan base around himself thanks to movies like What We Do in the Shadows and Eagle vs Shark, the Akira announcement made longtime fans of the manga series — and the critically acclaimed 1988 anime adaptation — nervous. Waititi told Dazed magazine in April 2018 that he was more than aware of the concern. “What I wanted to do was... Continue reading […]

  • CrossFit storms off Facebook and Instagram, citing long list of grievances
    by Dami Lee on May 24, 2019 at 5:18 pm

    CrossFit, the branded workout regimen, deleted its Facebook and Instagram pages earlier this week and explained the reasoning through an impassioned press release. The announcement lists various reasons for the indefinite suspension of its accounts, including accusations that Facebook’s News Feeds are “censored and crafted to reflect the political leanings of Facebook’s utopian socialists.” The issue stemmed from the deletion of a South Africa-based Facebook group, Banting 7 Day Meal Plans, which the company says happened without warning or explanation. The group, which is unrelated to CrossFit but has 1.6 million members espousing the benefits of a low-carb, high-fat diet like CrossFit’s recommended nutritional regimen, has since been... Continue reading […]

  • Hulu has ordered a horror anthology series based on North American Lake Monsters
    by Andrew Liptak on May 24, 2019 at 5:10 pm

    Hulu has ordered a new horror anthology series based on Nathan Ballingrud’s short-story collection North American Lake Monsters, according to Deadline. It’ll be produced by Babak Anvari and Lucan Toh, the creative team behind the horror film Wounds, which debuted at the Sundance Film Festival in January. They’re already familiar with Ballingrud’s work: Wounds is based on another Ballingrud story, The Visible Filth. Anvari wrote and directed the movie, and Toh was one of the producers. The film stars Dakota Johnson, Armie Hammer, and Zazie Beetz. The North American Lake Monsters series is planned as an eight-episode season, produced by Mary Laws, who produced AMC’s Preacher and co-wrote Nicolas Winding Refn’s film The Neon Demon. Hulu... Continue reading […]

  • Elon Musk’s Boring Company staged a race between a Tesla in a tunnel and one on the road
    by Andrew J. Hawkins on May 24, 2019 at 5:00 pm

    The Boring Company, Elon Musk’s tunneling venture, staged a race recently between two Tesla vehicles: one on the road in normal traffic, and the other in the 1.14-mile tunnel that runs underneath SpaceX’s headquarters in Hawthorne, Calif. Suffice to say, it wasn’t much of a contest. The tunnel Tesla was the clear victor, emerging out onto the road a full 3 minutes and 8 seconds before the one took surface streets. In fact, the car in the tunnel reached the finish line before the car in traffic even got passed the first red light. Wanna race?— The Boring Company (@boringcompany) May 24, 2019 Most notably, the Tesla in the tunnel hit a maximum speed of 127 mph. That’s significantly faster than what the... Continue reading […]

C#- Collection

We had posted about  array before. however C# also includes specialized classes that hold many values or objects in a specific series, that are called ‘collection’.
There are two types of collections available in C#: non-generic collections and generic collections.and now we are going to learn about non-generic collections

Every collection class implements the IEnumerable interface so values from the collection can be accessed using a foreach loop.

The System.Collections namespace includes following non-generic collections.

Non-generic Collections Usage
ArrayList ArrayList stores objects of any type like an array. However, there is no need to specify the size of the ArrayList like with an array as it grows automatically.
SortedList SortedList stores key and value pairs. It automatically arranges elements in ascending order of key by default. C# includes both, generic and non-generic SortedList collection.
Stack Stack stores the values in LIFO style (Last In First Out). It provides a Push() method to add a value and Pop() & Peek() methods to retrieve values. C# includes both, generic and non-generic Stack.
Queue Queue stores the values in FIFO style (First In First Out). It keeps the order in which the values were added. It provides an Enqueue() method to add values and a Dequeue() method to retrieve values from the collection. C# includes generic and non-generic Queue.
Hashtable Hashtable stores key and value pairs. It retrieves the values by comparing the hash value of the keys.
BitArray BitArray manages a compact array of bit values, which are represented as Booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0).

we will take the above one by one and learn more about them in the next couple of blog posts :).

C# – Array

An array is a special type of data type which can store fixed number of values sequentially using special syntax.

The following image shows how an array stores values sequentially.


As you can see in the above figure, index is a number starting from 0, which stores the value. You can store a fixed number of values in an array. Array index will be increased by 1 sequentially till the maximum specified array size.

Array Declaration

An array can be declare using a type name followed by square brackets [].

Example: Array declaration in C#
int[] intArray; // can store int values
bool[] boolArray; // can store boolean values

string[] stringArray; // can store string values

double[] doubleArray; // can store double values
byte[] byteArray; // can store byte values
Courses[] customClassArray; // can store instances of Courses class


An array can be declared and initialized at the same time using the new keyword. The following example shows the way of initializing an array.

Example: Array Declaration & Initialization
// defining array with size 5. add values later on
int[] intArraySample1 = new int[5]; 
// defining array with size 5 and adding values at the same time
int[] intArraySample2 = new int[5]{1, 2, 3, 4, 5};
// defining array with 5 elements which indicates the size of an array
int[] intArraySample3 = {1, 2, 3, 4, 5};

In the above example, the first statement declares & initializes int type array that can store five int values. The size of the array is specified in square brackets. The second statement, does the same thing, but it also assignes values to each indexes in curley brackets { }. The third statement directly initializes an int array with the values without giving any size. Here, size of an array will automatically be number of values.

Initialization without giving size is NOT valid. For example, the following example would give compile time error.

Example: Wrong way of initializing an array
int[] intArray = new int[]; // compiler error: must give size of an array

Late initialization

Arrays can be initialized after declaration. It is not necessary to declare and initialize at the same time using new keyword. Consider the following example.

Example: Late initialization of an Array
string[] strArray1, strArray2;

strArray1 = new string[5]{ "1st Element",
                           "2nd Element", 
                           "3rd Element",
                           "4th Element",
                           "5th Element" 

strArray2 = new string[]{ "1st Element",
                           "2nd Element",
                           "3rd Element",
                           "4th Element", 
                           "5th Element" 

However, in the case of late initialization, it must be initialized with the new keyword as above. It cannot be initialize by only assigning values to the array.

The following initialization is NOT valid:

Example: Wrong way of initializing an array
string[] strArray;

strArray = {"1st Element","2nd Element","3rd Element","4th Element" };

Accessing Array Elements

As shown above, values can be assigned to an array at the time of initialization. However, value can also be assigned to individual index randomly as shown below.

Example: Assigning values to array index
int[] intArray = new int[5];
intArray[0] = 10;
intArray[1] = 20;
intArray[2] = 30;
intArray[3] = 40;
intArray[4] = 50;

In the same way, you can retrieve values at a particular index, as below:

Example: Accessing Array elements

intArray[0];  //returns 10
intArray[2];  //returns 30

Use a for loop to access the values from all the indexes of an array by using length property of an array.

Example: Accessing Array elements using for loop
int[] intArray = new int[5]{10, 20, 30, 40, 50 };

for(int i = 0; i < intArray.Length; i++)

Array properties and methods

Method Name Description
GetLength(int dimension) Returns the number of elements in the specified dimension.
GetLowerBound(int dimension) Returns the lowest index of the specified dimension.
GetUpperBound(int dimension) Returns the highest index of the specified dimension.
GetValue(int index) Returns the value at the specified index.
Property Description
Length Returns the total number of elements in the array.

Array Helper Class

.NET provides an abstract class, Array, as a base class for all arrays. It provides static methods for creating, manipulating, searching, and sorting arrays.

For example, use the Array.Sort() method to sort the values:

Example: Array Helper class
int[] intArr = new int[5]{ 2, 4, 1, 3, 5};



You can create an instance of an Array that starts with index 1 (not default starting index 0) using Array class as shown below:

Example: Array Helper class
Array array = Array.CreateInstance(typeof(int),new int[1]{5},new int[1]{1});

array.SetValue(1, 1);
array.SetValue(2, 2);
array.SetValue(3, 3);
array.SetValue(4, 4);
array.SetValue(5, 5);

for (int i = 1; i <= array.Length; i++)
    Console.WriteLine("Array value {0} at position {1}", array.GetValue(i), i);

Array value 1 at position 1
Array value 2 at position 2
Array value 3 at position 3
Array value 4 at position 4
Array value 5 at position 5

 never forget  :
  1. An Array stores values in a series starting with a zero-based index.
  2. The size of an array must be specified while initialization.
  3. An Array values can be accessed using indexer.
  4. An Array can be single dimensional, multi-dimensional and jagged array.
  5. The Array helper class includes utility methods for arrays.

C# Variable

Example: C# Variable

namespace CSharpTutorials
    class Program
        static void Main(string[] args)
            string message = "Hello World!!";


The variable in C# is nothing but a name given to a data value. In the above example, message is the name of the variable that stores the string data value “Hello World!!”. As the name suggests, the contents of a variable can vary, i.e., you can change the value of a variable at any time.

In C#, a variable is always defined with a data type. The following is the syntax variable declaration and initialization.

Variable Syntax:
<data type> <variable name>;

<datatype> <variable name> = <value>;

A variable can be declared and initialized later or it can be declared and initialized at the same time. In the following example, the first statement declares a variable called “message” without assigning any value to it. In the second statement, a value is assigned to the “message” variable.

Example: Variable Declaration
string message;

// value can be assigned after it declared 
message = "Hello World!!";

In the following example, variable is declared and initialized (a value is assigned to it) at the same time.

Example: Variable Declaration & Initialization
string message = "Hello World!!";

Multiple variables of the same data type can be declared and initialized in a single line separated by commas.

Example: Multiple Declarations
int i, j, k, l = 0;

int amount, num;

When declaring multiple variables of the same data type, you can put them in multiple lines for the sake of readability; even if split across multiple lines, the compiler will consider it to be one statement, until it encounters a semicolon (;).

Example: Multi-Line Declarations
int i, j, 
    l = 0;

The value of a variable can be assigned to another variable of the same data type. However, a value must be assigned to a variable before using it.

Example: Variable Assignment
int i = 100;

int j = i; // value of j will be 100

The following example would give a compile time error because string value cannot be assinged to a int type variable.

Example: Invalid Variable Assignment
string message = "Hello World!!";

int i = message; // compile time error

You must assign a value to a variable before using it otherwise the compiler will give an error. For example, in the following code, we have declared a variable called i without assigning any value to it. If we then try to display the value of the variable on the console, we will get a compile time error.

Example: Invalid Variable Assignment
int i;

//Following will give compile time error: "Use of unassigned local variable 'i'"
int j = i;
 Points to Remember :
  1. The variable is a name given to a data value.
  2. A variable holds the value of specific data type e.g string, int, float etc.
  3. A variable can be declared and initialized in separate statements and also in the single statement.
  4. The value of a variable can be changed at any time throught out the program as long as it is accessible.
  5. Multiple variables can be defined seperated by comma (,) in a single or multiple line till semicolon(;).
  6. A value must be assigned to a variable before using it otherwise it will give compile time error.

First C# Hello World Program

Every console application starts from the Main() method of Program class. The following example code displays “Hello World!!” on the console.

Example: Simple Console Project with C#

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace CSharpTutorials
    class Program
            static void Main(string[] args)
            string message = "Hello World!!";

The following image illustrates the important parts of the above example.

Let’s understand the above C# structure.

  1. Every .NET application takes the reference of the necessary .NET framework namespaces that it is planning to use with the “using” keyword e.g. using System.Text
  2. Declare the namespace for the current class using the “namespace” keyword e.g. namespace CSharpTutorials.FirstProgram
  3. We then declared a class using the “class” keyword: class Program
  4. The Main() is a method of Program class which is the entry point of the console application.
  5. String is a data type.
  6. ‘message’ is a variable, that holds a value of a specified data type.
  7. “Hello World!!” is the value of the message variable.
  8. Console is a .NET framework class. WriteLine() is a method which you can use to display messages to the console.
Every line or statement in C# must end with a semicolon (;).

Compile and Run C# Program

In order to see the output of the above C# program, we have to compile it and run it by pressing Ctrl + F5, or clicking Run button or by clicking the “Debug” menu and clicking “Start Without Debugging”. You will see following output in the console:

Hello World!!

C# Access modifiers

Access modifiers are applied on the declaration of the class, method, properties, fields and other members. They define the accessibility of the class and its members.

Access Modifiers Usage
public The Public modifier allows any part of the program in the same assembly or another assembly to access the type and its members.
private The Private modifier restricts other parts of the program from accessing the type and its members. Only code in the same class or struct can access it.
internal The Internal modifier allows other program code in the same assembly to access the type or its members. This is default access modifiers if no modifier is specified.
protected The Protected modifier allows codes in the same class or a class that derives from that class to access the type or its members.

C# Version History

C# is a simple & powerful object-oriented programming language developed by Microsoft.

C# has evolved much since its first release in 2002. C# was introduced with .NET Framework 1.0 and the current version of C# is 6.0.

The following table lists important features introduced in each version of C#:

Version Important Features
C# 1.0
  • Basic features
C# 2.0
  • Generics
  • Partial types
  • Anonymous methods
  • Iterators
  • Nullable types
  • Private setters (properties)
  • Method group conversions (delegates)
  • Covariance and Contra-variance
  • Static classes
C# 3.0
  • Implicitly typed local variables
  • Object and collection initializers
  • Auto-Implemented properties
  • Anonymous types
  • Extension methods
  • Query expressions
  • Lambda expressions
  • Expression trees
  • Partial Methods
C# 4.0
  • Dynamic binding (late binding)
  • Named and optional arguments
  • Generic co- and contravariance
  • Embedded interop types
C# 5.0
  • Async features
  • Caller information
C# 6.0
  • Expression Bodied Methods
  • Auto-property initializer
  • nameof Expression
  • Primary constructor
  • Await in catch block
  • Exception Filter
  • String Interpolation
C# 7.0
  • out variables
  • Tuples
  • Discards
  • Pattern Matching
  • Local functions
  • Generalized async return types
  • throw Expressions

C# – Get Started

C# is an elegant and type-safe object-oriented language that enables developers to build a variety of secure and robust applications that run on the .NET Framework. You can use C# to create Windows client applications, XML Web services, distributed components, client-server applications, database applications, and much, much more. Visual C# provides an advanced code editor, convenient user interface designers, integrated debugger, and many other tools to make it easier to develop applications based on the C# language and the .NET Framework.

And here in we are going to post a C# tutorials that will help you learn the essentials of C#, from the basic to advance level topics.

These tutorials are designed for beginners and professionals who want to learn C# step-by-step.

Add to your favorite and follow us on our Facebook page.

How To Create  multiple site collections with new content databases 

To Create  multiple site  collections with new content databases , follow the bellow steps

1-  create web application  ex:

2 – from application management > manage web application

3 – select your web app and go to managed path

4 – inter the path and from type combo box select “Explicit inclusion” ex:

5 – create new content database using SharePoint management shell (run as admin)


New-SPContentDatabase -Name wss_Content_SharePoint-WebApplication
6 - create the new site collection by running the bellow powershell script

$url = "http://Developersportal.ner/Sharepoint"
$ContentDatabase = "wss_Content_SharePoint"
$WebsiteName = "Sharepoint"
$WebsiteDesc = "Sharepoint site"
$Template = "STS#1"
$PrimaryLogin = "developersportal\sp_farm"
$PrimaryDisplay = "sp_farm"
$PrimaryEmail = ""

New-SPSite -Url $url 
–ContentDatabase $ContentDatabase 
-Name $WebsiteName 
–Description $WebsiteDesc  
-Template $Template 
-OwnerAlias $PrimaryLogin 
–OwnerEmail $PrimaryEmail

Enjoy your new site collection

It’s official: Microsoft has acquired GitHub for $7.5 billion

After much speculation, Microsoft has confirmed its acquisition of the social coding platform Github in an all-stock deal worth $7.5 billion.

The acquisition is expected to close by the end of the year, subject to regulatory approval.

As part of the purchase, Microsoft is installing a new CEO. Former Xamarin chief Nat Friedman will replace the outgoing GitHub CEO and co-founder, Chris Wanstrath. Microsoft says that Wandstrath will join the company as a technical fellow.

The deal is unlikely to change the day-to-day running of GitHub. Microsoft says that the service will continue to run independently, and will retain its “developer ethos.”

This story is developing.