Creating a bash completion script

I recently worked on creating a bash completion script for a project and I enjoyed it very much. In this post I will try to familiarize you with the process of creating a bash completion script.

What is bash completion?

Bash completion is a functionality through which bash helps users type their commands faster and easier. It accomplishes that by presenting possible options when users press the tab key while typing a command.

$ git
git git-receive-pack git-upload-archive
gitk git-shell git-upload-pack
$ git-s
$ git-shell

How it works

The completion script is code that uses the builtin bash command complete to define which completion suggestions can be displayed for a given executable. The nature of the completion options vary from simple static to highly sophisticated.

Why bother

It is good to provide such a functionality to users:
to save them from typing text when it can be auto-completed
to help them know what are the available continuations to their commands


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/ft1DJwY9wc4/bash-programmable-completion-tutorial

Original article

Google Revamps Search Engine To Include New Cards and Tags As It Celebrates Its 20th Anniversary

As Google celebrates its 20th anniversary, it announced a range of new updates to its namesake search engine. The Mountain View company announced it was drawing on its artificial intelligence capabilities to provide smart videos in Google search with a new “Featured Videos” card. It will start to play videos in results, one after another — but only show the short parts of videos that are relevant to your search. Google, the parent company of which is Alphabet, also introduced an activity card which would show pages a user has visited, at the top of search results. Users will have the ability to delete items from this activity card. The company also introduced “Collections,” through which it will let users save content from the activity card to their collections. Google will then use things you’ve saved, and your history, in order to recommend new content for your collections. CNBC adds:


Original URL: http://rss.slashdot.org/~r/Slashdot/slashdot/~3/dr5LYx5osLM/google-revamps-search-engine-to-include-new-cards-and-tags-as-it-celebrates-its-20th-anniversary

Original article

Slack Buys and Shuts Down Intelligent Email App Astro

Slack has acquired email app company Astro to incorporate it into Slack channels. As a result, Astro is shutting down its Mac, iOS, Android, Alexa and Slack apps. They’re no longer taking new users and existing ones will lose access on October 10th. Engadget reports: The company said that with over 50 million channels created to date, they’re increasingly becoming the platform through which teams collaborate. “But we all know that email is still a very important tool in business communication,” said Slack. “We’ve taken some steps to make it possible to integrate email into Slack, but now we’re in a position to make that interoperability much simpler and much, much more powerful.”

Last year, Astro launched its Astrobot Slack app, which let users manage their emails and check their Office 365 or Google calendars from within Slack. It also allowed them to do one search to pull up results


Original URL: http://rss.slashdot.org/~r/Slashdot/slashdot/~3/GFLk31PTgvU/slack-buys-and-shuts-down-intelligent-email-app-astro

Original article

Slack Acquires Astro

Last year, we predicted that channels will become the main form of business communication by 2025. Today, over 50 million channels have been created in Slack—this shift is clearly gaining momentum. 
We believe that what makes channels so powerful is a thriving platform that brings together conversations, files, and best-of-breed software tools into one streamlined hub for collaboration. More and more, channels are where work happens for teams around the world.
But we all know that email is still a very important tool in business communication. Billions of emails are sent every day, and in those are millions of documents exchanged, contracts negotiated and decisions memorialized. We’ve taken some steps to make it possible to integrate email into Slack, but now we’re in a position to make that interoperability much simpler and much, much more powerful. Our goal is to make it as easy as possible to help teams shift conversations


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/J6iOJk74OtQ/slack-acquires-astro-to-help-email-and-channels-work-together

Original article

Milkymist: VJ on an FPGA

The Milkymist One is an experimental hardware appliance for live video effects.

The small 172x145x45mm device creates visualizations similar to those generated by the MilkDrop software, and enables you to mix them with live footage from a camera and interact using MIDI and DMX controllers.

The Milkymist One is programmable and customizable at many different levels.

The simplest way one can use a Milkymist One is by affecting MIDI controls to the existing snippets of code (called “patches”) that create the effects. The Milkymist One ships with dozens of pre-existing patches.

Creating new patches can be done with a simple programming language based on the MilkDrop preset format. The Milkymist One device comes with a built-in editor.

Under the hood, the Milkymist One is like a mini-computer running our Flickernoise video synthesis software.

But we did not stop at open source software. As a matter of fact, when this project started in August 2007, one of


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/R_O1V2VDDHc/m1.html

Original article

Open Machine Learning Course

mlcourse.ai is an open Machine Learning course by OpenDataScience. The course is designed to perfectly balance theory and practice; therefore, each topic is followed by an assignment with a deadline in a week. You can also take part in several Kaggle Inclass competitions held during the course and work on your own projects.

Next session starts on October 1, 2018. Fill in this form to participate.

Navigation:
Prerequisites. Our course is not for total newbies. Though Machine Learning is covered from scratch, still participants are expected to know some math and be able to write code in Python.
Assignments. Here you’ll find demo versions of assignments. Assignments in a new session of the course will be different.
News. Here you can track main announcements during the course.
Resources. Links to other information mirrors of this course like Medium stories, Kaggle Kernels etc.
Contacts. Ways of reaching OpenDataScience and course team.
Support. Various ways


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/tZv5bE3HC_0/

Original article

Windows Virtual Desktop gives you a Windows 7 or 10 desktop on Azure

Enlarge / A VT100 remote terminal, which is basically the same thing as Windows Remote Desktop. (credit: Wolfgang Stief)
A new Windows version for multiple users was spotted last month, and now we know what it’s for: Windows Virtual Desktop (WVD) is a new service providing multi-user remote desktop and VDI in the Azure cloud.
WVD combines three things. Using the new Windows 10 version, WVD can be used to provide remote desktop sessions with multiple users remotely logged in to the same Windows 10 virtual machine (or, alternatively, a Windows Server virtual machine). This can provide both remoting of a full desktop session and of individual applications, serving as a replacement for the RemoteApp service that Microsoft cancelled last year. The service also supports full VDI, with remote users each having their own single-user virtual machine while both persistent and non-persistent VMs are supported. This is supported both with Windows


Original URL: https://arstechnica.com/?p=1380469

Original article

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: