Electron 1.0

For the last two years, Electron has helped developers build cross platform desktop apps using HTML, CSS, and JavaScript. Now we’re excited to share a major milestone for our framework and for the community that created it. The release of Electron 1.0 is now available from electron.atom.io.


Electron 1.0 represents a major milestone in API stability and maturity. This release allows you to build apps that act and feel truly native on Windows, Mac, and Linux. Building Electron apps is easier than ever with new docs, new tools, and a new app to walk you through the Electron APIs.

If you’re ready to build your very first Electron app, here’s a quick start guide to help you get started.

Microsoft has hit $1 trillion in all-time revenue, and with more profit than Apple


Last quarter, Microsoft hit a major milestone: $1 trillion in all-time cumulative revenue reports technology consultant Jeff Reifman.

He noticed the milestone while researching a post about Microsoft's tax breaks in the state of Washington.

Microsoft hit the milestone in its last quarter, according to the spreadsheet posted by Reifman.

Apple hit $1 trillion in revenue earlier, in 2015, his research shows.

On the other hand, when it comes to profits, Microsoft has come out slightly ahead of Apple: $261.6 billion in cumulative profits for Apple, and slightly more, $265.2 billion for Microsoft.

Amazon and Google, younger companies than Microsoft and Apple, have not yet hit the $1 trillion revenue mark, but are about half-way there, Reifman reports. Amazon, for instance, came in at $545 billion in all time revenue but only $3.31 billion in profit.

As for Google, Reifman's research shows it has so far earned $417.3 billion in all-time revenue with $96.3 billion, cumulatively, in profit.

Introducing the IIS Administration API

The IIS team has been working on a new RESTful API to manage your IIS configuration. While still under development, the team was eager to share a preview of the new API. The API allows configuration of IIS resources such as authorization rules, modules, and applications.


The API has been built with Hypertext Application Language (HAL) to allows APIs to have built-in discoverability. Starting at the root of the API, you can browse the entire API surface.

In addition to the API, the IIS team has also built an API explorer that makes it easy to browse the entire API surface.

Head on over to https://jimmyca-srv2.cloudapp.net:55539 and use the access token OgMks6N7CtZTptX2DTnLe8JvkmATOuqw1ZJnZzK1RojeYs251Wlfvg to check out the API explorer.

If you want more information visit the IIS blog at https://blogs.iis.net/adminapi/  and watch that space as the IIS team continues to post updates.

ASP.NET LinkButton: children disappears after postback

I have a LinkButton with image and label inside it or tags i and span as in the following picture.example_linkbutton

The code in the page is:

<asp:LinkButton ID="LinkButton1" runat="server">
    <i class="glyphicon glyphicon-plus"></i>
    <span class="js-add-button" runat="server" id="Span1">Add New</span>

After a postback everything inside the LinkButton disappeared. I've spent two days to understand why and the solution is very easy.

<asp:LinkButton ID="LinkButton1" runat="server">
    <i class="glyphicon glyphicon-plus" runat="server"></i>
    <span class="js-add-button" runat="server" id="Span1">Add New</span>

The tag i doesn't have runat="server" and for that you lost all content inside the LinkButton.

Happy coding!

Microsoft takes on IFTTT with Flow


IFTTT is one of the most useful online services. Today, Microsoft is taking on IFTTT with its new service called “Flow”. The company is launching the preview of Flow today, and it works almost like IFTTT.

Unlike IFTTT, Flow isn’t mostly focused on consumers — instead, it’s mostly focused on enterprise integrations. Flow lets you automate your workflow, and be more productive. With Flow, you can setup GitHub to automatically send a Slack notification and add a card in Trello when a new issue is submitted. Additionally, you can also archive your tweets to OneDrive, which is also an interesting flow. There are more than 35 connections available on Flow.

Microsoft Flow is live right now, and you can check it out here.

Microsoft open sources Xamarin's software development kit


Two months after being acquired by Microsoft, cross-platform development-tool vendor Xamarin is continuing to push the open-source envelope.

On April 27 at Xamarin's Evolve developer conference in Orlando, officials announced Microsoft has open-sourced the Xamarin software development kit (SDK).

At Microsoft's Build 2016 developers conference last month, Microsoft announced intentions to open source the Xamarin SDK, runtime, libraries and command line tools. Microsoft also announced it would make Xamarin part of the various Visual Studio releases at no additional cost.

Today, company officials said Microsoft has open sourced and contributed to the .NET Foundation the Xamarin SDK for Android, iOS and Mac under the same MIT license used for the Mono project. The native application program interface (API) bindings for iOS, Android and Mac, the command-line tools necessary to build for these platforms, and the cross-platform UI framework Xamarin.Forms are all part of what's now open sourced.

Microsoft also is working to help Xamarin developers more easily connect Visual Studio to Mac so they can create iOS apps natively in C#. Xamarin's iOS Simulator remoting allows developers to simulate and interact with their iOS apps in Visual Studio, with support for touch screens. And its iOS USB remoting allows devs to deploy and debug apps from Visual Studio to an iPad or iPhone plugged into their Windows PCs.

Microsoft also unveiled some new Xamarin.Forms features; enhancements to the Xamarin Studio IDE to bring it closer to Visual Studio; and a Test Recorder Visual Studio plug-in at Evolve.

Windows 10 Anniversary Update Targeted For Late July Release


It may seem obvious but Microsoft is planning to release the Anniversary update for Windows 10 in late July. While the company has not explicitly said when it will be released, insiders at the company have acknowledged that the current road map is for the update to be finalized in mid-July.

As with all timelines, the release date could change, especially since we are a few months out and road maps are used for guidance and are not always hard dates. Considering that Windows 10 was released on July 29th, it would make sense that the company would release the Anniversary update on or around that date; the 29th is a Friday.

The last couple of Windows 10 builds have been packed with new features that should make most end-users happy. Everything from a new dark theme, although it’s far from perfect, to new Cortana features, enhancements to the Action Center, an updated Start menu and a lot more are coming in this release.

At this time, Microsoft still has a few more tricks up its sleeve, although they are small features, that will be coming with the update when it arrives. But, as we get closer to the release date, expect new feature introduction to slow down and a focus on bug bashing to spin up.

Earlier this week, Microsoft released a new build of Windows 10, 14332, that you can view here.

Remove multiple line in the same file with C#

Read the file, remove the multiple line (but it saves one of them) in memory and put the contents back to the file (overwriting) and create a backup file with the original file.


using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

namespace DelMultiLine {
   class Program {
      static void Main(string[] args) {
         if (args.Count() == 0 || args.Count() > 2) {
            Console.WriteLine("\nDelMultiLine (by Enrico Rossini - puresourcecode.com)");
            Console.WriteLine("Remove duplicate line in a file\n");
            Console.WriteLine("   delmultiline <Filename> <resultFilename>\n");
            Console.WriteLine("filename:       define a full path for the file you want to elaborate");
            Console.WriteLine("resultFilename: define the full path for the original file for a backup");

         string file1 = args[0];
         string file2 = "";

         if (args.Count() == 1) {
            if (string.IsNullOrEmpty(file2)) {
               file2 = file1 + ".old";
            else {
               file2 = args[1];

         Console.WriteLine(string.Format("Reading {0} in progress...", args[0]));
         string[] lines = File.ReadAllLines(file1);
         List<string> newline = new List<string>();

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

         Console.WriteLine("Deleting multiple line in progress...");
         for (int i = 0; i < lines.Length; i++) {
            List<string> temp = new List<string>();
            int duplicate_count = 0;

            for (int j = newline.Count - 1; j >= 0; j--) {
               //checking for duplicate records
               if (lines[i] != newline[j])
               else {
                  if (duplicate_count == 1)
            newline = temp;

         // reverse the array

         //assigning into a string array
         string[] newFile = newline.ToArray();

         // move the original file in a new location
         Console.WriteLine(string.Format("Copying original file in {0}", args[0]));
         File.Move(file1, file2);

         //now writing the data to a text file
         Console.WriteLine(string.Format("Write new file {0}", args[0]));
         File.WriteAllLines(file1, newFile);

         Console.WriteLine("Convertion is finished.");
         Console.WriteLine("\nPress any key to continue...");

Happy coding!

Under the hood of Microsoft's Windows Subsystem for Linux

Bash on Windows 10 was one of the big reveals at Microsoft's recent Build conference. Since then, there's been a lot of speculation about what Microsoft did to make this possible.

Microsoft is starting to provide more details via blog posts and a new Channel 9 video on what's going on under the covers.


Spoiler alert: There's no secret Linux kernel hidden in Windows 10. Instead, it's the Windows Subsystem for Linux (WSL) that was developed by the Windows Kernel team is what provides the foundation that enabled the Linux binaries to run on Windows.

WSL includes a user mode session manager, pico provider drivers that emulate a Linux kernel and pico processes that host the unmodified user mode Linux, like Bash, as Microsoft officials explain in an April 22 blog post.

"It is the space between the user mode Linux binaries and the Windows kernel components where the magic happens," according to Microsoft's post."By placing unmodified Linux binaries in Pico processes we enable Linux system calls to be directed into the Windows kernel. The lxss.sys and lxcore.sys drivers translate the Linux system calls into NT APIs and emulate the Linux kernel."

The Channel 9 architectural overview video and the related blog post both note that the Windows kernel does include the Drawbridge pico process/pico driver concepts. And it's these pico processes and drivers that "provide the foundation for the Windows Subsystem for Linux."

The post and video are worth checking out for those whose hearts beat just a little quicker when they see an OS architectural diagram.

Steve Jobs and Bill Gates Face Off

For a different Sunday morning, this is a best way to spend your two hours.

In this video Bill Gates and Steve Jobs are speaking about their companies, their and our life, the future of the world with different point of view.



Planet Xamarin

Planet Xamarin


<<  July 2017  >>

View posts in large calendar

Month List