PowerShell Improvements In Windows 10

Though Windows 10 gets a fresh command prompt and lots of hotkeys, powershell wasn’t left behind.

Here are some highlights that you can expect.

PackageManagement: A package manager is a convenient way to manage all of the software that you download, install, and remove. Instead of hopping from website to website, you just browse packages with PackageManagement (formerly known as OneGet). By subscribing to different repositories, you can pick which packages are available to you.

OneGet is technically available already for Windows 8.1, but only if you install Windows Management Framework 5.0. When Windows 10 comes around, PackageManagement will be integrated with the system by default.

Secure Shell (SSH): Secure Shell has long been a staple protocol for establishing encrypted connections between remote systems. Without SSH, it’s easy for outsiders to intercept data as it’s being transmitted.

PowerShell Features: With version 5.0, the language of PowerShell itself is being enhanced with new features like: classes and enums, new built-in commands, expanded features for existing commands, syntax coloring in the console, and more.

For in-depth details, check out the What’s New in PowerShell 5.0 article by Microsoft.

Check out Git 2.5

Here’re the best features of new Git:

  • Triangular Workflow visualization (common in opensource projects)

Triangular workflow

  • support for multiple worktrees

read: https://github.com/blog/2042-git-2-5-including-multiple-worktrees-and-triangular-workflows

Node Webkit together in nwjs.io/

NW.js is an app runtime based on Chromium and node.js. You can write native apps in HTML and JavaScript with NW.js. It also lets you call Node.js modules directly from the DOM and enables a new way of writing native applications with all Web technologies.

It was created in the Intel Open Source Technology Center.

Introduction to node-webkit (slides)
Creating Desktop Applications With node-webkit
WebApp to DesktopApp with node-webkit (slides)
Essay on the history and internals of the project

Git: https://github.com/nwjs/nw.js

Google Calender to Outlook 2013 Calender migration

I hope you know that google’s calender sync services is now deprecated, so you can only import google cal into outlook and subscribe for regular updates (using simple outlook’s open internet calender option) but cannot push additions from outlook back to google cal

Hence I’ve decided to migrate to Outlook 2013 calender for good

For this follow:

  1. Export Outlook Calender events: https://support.google.com/calendar/answer/37111?hl=en
  2. Import these events into an existing outlook calender. Note that you have multiple outlook calenders out of the box, eg. Local Cal, Cal that syncs with office online etc.
    1. Use File -> Import Option to import the ics file downloaded in step 1

Angular2: Creating child components programmatically

The use case is to implement a Component that can contain a TextBox Child Component or a Dropdown etc.



as per above there are 2 approaches:

  1. child components wrapped in an ng-for. If the number of children is unknown then NgFor is the right approach Eg. http://www.syntaxsuccess.com/viewarticle/recursive-treeview-in-angular-2.0
  2. If number of children is fixed, you can use the DynamicComponentLoader to load them manually. The benefits of manual loading is better control over the elements and a reference to them within the Parent (which can also be gained using templating…)

    If you need to populate the children with data, this can also be done via injection, the Parent is injected with a data object populating the children in place…

    Again, a lot of options. I have used ‘DynamicComponentLoader’ in my modal example,https://github.com/shlomiassaf/angular2-modal



Quick Start

Unless you wish to contribute to the project, I recommend using the hosted version at devdocs.io. It’s up-to-date and works offline out-of-the-box.

DevDocs is made of two separate pieces: a Ruby scraper that generates the documentation and metadata, and a JavaScript app powered by a small Sinatra app.

DevDocs requires Ruby 2.2.2 and a JavaScript runtime supported by ExecJS (included in OS X and Windows; Node.js on Linux). Once you have these installed, run the following commands:

git clone https://github.com/Thibaut/devdocs.git && cd devdocs
gem install bundler
bundle install
thor docs:download --all

Finally, point your browser at localhost:9292 (the first request will take a few seconds to compile the assets). You’re all set.

The thor docs:download command is used to download/update individual documentations (e.g. thor docs:download html css), or all at the same time (using the --all option). You can see the list of available documentations by running thor docs:list.

Note: there is currently no update mechanism other than git pull origin master to update the code and thor docs:download to download the latest version of the docs. To stay informed about new releases, be sure to watch this repository and/or subscribe to the newsletter.