How Do I Add a Splitter to my WPF Window?

Splitters are a useful UI feature where the width or height of a control on the form can be modified to show more or less information.

An Example of this is the splitter between the folder tree-view in and the file and subfolder detail view in Windows Explorer, allowing the size of the folder tree-view on the left-hand side of the form to be sized up to 50% of the form width. Windows Forms 1.1 included a Splitter control, and Windows Forms 2.0 included a SplitContainer.

WPF does not have equivalent versions of either of these controls; however it is possible to add splitters to your WPF application using the WPF Grid, and a GridSplitter. The example code below allows the two columns in the grid to be re-sized. This is done by adding a GridSplitter as a child item of the Grid.

<Window x:Class="PSC.Splitter.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="PSC.Splitter" Height="300" Width="300">
    <Grid>
      <Grid.ColumnDefinitions>
        <ColumnDefinition />
        <ColumnDefinition />
      </Grid.ColumnDefinitions>
      <StackPanel Background="#feca00" Grid.Column="0">
        <TextBlock FontSize="35" Foreground="#58290A" 
                   TextWrapping="Wrap">Left Hand Side</TextBlock>
      </StackPanel>
      <GridSplitter/>
      <Border CornerRadius="10" BorderBrush="#58290A" 
              BorderThickness="5" Grid.Column="1">
        <TextBlock FontSize="25" Margin="20" Foreground="#FECA00" 
                   TextWrapping="Wrap">Right Hand Side</TextBlock>
      </Border>
    </Grid>
</Window>

Happy coding!

Microsoft announces formation of AI and Research Group with over 5000 computer scientists

cortana-microsoft_story

For the last year or so, Microsoft has backed artificial intelligence as "the most important technology on the planet" and has released various products that make use of AI. The company's flagship AI product, Cortana, is available to all Windows 10 users - although its capabilities vary depending on which part of the world you're in. Now, the company will be bringing its artificial intelligence research under one umbrella with the formation of the Microsoft AI and Research Group that will include 5000 computer scientists.

The AI and Research Group will be headed by Microsoft veteran of 20 years, Harry Shum, who has worked with Microsoft Research and Bing prior to this appointment. The group will bring together various related teams such as Information Platform, Cortana and Bing, and Ambient Computing and Robotics teams.

According to Microsoft's post about the announcement, the company will be taking a four-pronged approach to democratize AI:

  • Agents: Harness AI to fundamentally change human and computer interaction through agents such as Microsoft’s digital personal assistant Cortana
  • Applications: Infuse every application, from the photo app on people’s phones to Skype and Office 365, with intelligence
  • Services: Make these same intelligent capabilities that are infused in Microsoft’s apps —cognitive capabilities such as vision and speech, and machine analytics — available to every application developer in the world
  • Infrastructure: Build the world’s most powerful AI supercomputer with Azure and make it available to anyone, to enable people and organizations to harness its power

Currently, there are no announcements regarding any upcoming products, but with the newly formed group we can surely expect to hear more about AI and related products from the software giant in the not-too-distant future.

Source: Microsoft

Alan Turing's computer-generated music gets restored after 65 years

alan_turing

Alan Turing is considered to be one of the fathers of computer science. He played a crucial role in World War II counter intelligence and worked for the Government Code and Cypher School at Bletchley Park.

He was also responsible for breaking a large number of Nazi ciphers, including the German Enigma code. After the war, Turing continued his work as a pioneer computer engineer, and developed what’s considered to be one of the first designs for a stored-program computer.

But it seems code breaking wasn’t Turing’s only talent.

Now the earliest known recording of computer-generated music, created more than 65 years ago, has been restored by the University of Canterbury. But the interesting thing is that it was created on computer programming techniques devised by Turing himself. 

Here's the story. In 1951, a BBC outside-broadcast unit in Manchester used a portable acetate disc cutter to capture three melodies played by a primeval computer. This gigantic computer filled much of the ground floor of pioneering British computer scientist Alan Turing's Computing Machine Laboratory.

Now, decades later, director of the Turing Archive for the History of Computing, Professor Jack Copeland, and his fellow researcher UC alumni and composer Jason Long, have restored the music. However, it has not been so easy. The researchers had to do some electronic sleuthing to recreate the historic sound accurately.

“Today all that remains of the recording session is a 12-inch single-sided acetate disc, cut by the BBC's technician while the computer played. The computer itself was scrapped long ago, so the archived recording is our only window on that historic soundscape,” said the researchers.

“What a disappointment it was, therefore, to discover that the frequencies in the recording were not accurate: the recording gave at best only a rough impression of how the computer sounded.”

They found that there was a deviation in the speed of the recording, probably as a result of the turntable in BBC's portable disc cutter rotating too fast. But, with some electronic detective work, it proved possible to restore the recording – with the result that the true sound of this ancestral computer can be heard once again, for the first time in more than half a century.

The computer music researchers were then able to calculate exactly how much the recording had to be speeded up in order to reproduce the original sound of the computer.

“As well as increasing the speed – and so altering the frequencies – we also filtered out extraneous noise from the recording; and using pitch-correction software we removed the effects of a troublesome wobble in the speed of the recording,” added the researchers.

“It was a beautiful moment when we first heard the true sound of Turing's computer.”

The complete 1951 recording, including God Save the King, nursery rhyme Baa Baa Black Sheep and Glenn Miller hit In The Mood, can be heard here over at the university’s website.

Europe’s Court of Justice rules that hyperlinking can infringe on copyright

EuropeanCommissionEuropa

On Thursday, the Dutch publisher of Playboy won a major legal victory concerning photographs that had been uploaded to the internet without its permission on a file sharing site. The ruling handed down by the European Union Court of Justice could have enormous consequences for users across the internet.

The case stemmed from a complaint against a Dutch website called GeenStijl, which had posted links to leaked photos from Playboy in October 2011. The website had received a tip that the pictures had been uploaded to FileFactory. It posted a cutout of one of the images and linked to the rest. Sanoma Media, Playboy’s Dutch publisher, requested that content be removed, which GeenStijl refused to do. Sanoma then sued the GeenStijl and its parent company, GS Media, arguing that the hyperlink and part of one of the images infringed on its copyright. The case found itself before the EU court, which ruled that posting hyperlinks amounted to copyright infringement, because the website profited from the traffic that it generated.

The court noted in its ruling that the website’s editors knew that the works had yet to be published in the print magazine and that its distribution through FileFactory was unauthorized. "Whoever post[ed] those links knew or ought to have been aware of those facts and the fact that that rightholder did not consent to the publication of the works in question on that latter website."

They key point in this case comes down to the phrase "Communication to the public of their works" in Article 3(1) of Directive 2001/29, On the harmonisation of certain aspects of copyright and related rights in the information society:

Member States shall provide authors with the exclusive right to authorise or prohibit any communication to the public of their works, by wire or wireless means, including the making available to the public of their works in such a way that members of the public may access them from a place and at a time individually chosen by them.

The court noted that the directive does not define "communication to the public", but that EU laws do work to protect the rights of copyright owners. It also surmised that those seeking to communicate to the public must make a judgment call as to the ethical nature of what they’re doing: balancing legitimate news against copyright infringement.

Amazon Kindle Fire HD 8 Gets 50 Percent More RAM At A 40 Percent Price; Takes On iPad Mini 4 Head On

Amazon just announced the 2.0 version of last year's Fire HD 8. They claim that the brand new Fire HD 8 tablet comes with improved features. The Kindle Fire HD 8 still looks the same as the one released last year, so what's really new with it?

Amazon's Kindle Fire HD 8 Tablet Gets A New Assistant

NY Times reports, Amazon Echo's cloud-based intelligent digital personal assistant, Alexa, goes mobile as the newest update to come in the Kindle Fire HD 8 will include Alexa. With the Fire HD 8 being the first Amazon tablet to be integrated with Alexa, you can interact with your gadget and ask it to perform certain functions for you such as playing music, read audiobooks, search the web and a lot more.

Other Amazon Kindle Tablets don't have to worry because they are getting Alexa, too. The update will also come to the Amazon Fire, Fire HD 10, and the Fire HD 8 2015.

Bigger Memory And Faster Processor For The 2016 Kindle Fire HD 8

Amazon's Kindle Fire HD 8 Tablet 2016 is equipped with a quad-core MediaTek processor that allows it to perform faster than it used to with the Kindle Fire HD 8 2015. According to CNET, the Kindle Fire HD 8 2016 supports microSD cards up to 200 GB, but also offers more RAM and internal storage of either 16 GB and 32 GB.

New Features For Amazon's Kindle Fire HD 8 2016

The Fire HD 8 2016 runs on Fire OS 5 and now has a front-facing camera plus a primary camera with 2 megapixels. Sources suggest that Amazon's latest tablet has an 8-inch display, stereo speakers with Dolby Audio and a 4,750 mAh battery that can last up to 12 hours.  The Fire HD 8 2016 will come in four colors: black, tangerine, blue and magenta.

Is Kindle Fire HD 8 2016 Tablet Better Than The iPad Mini 4?

There have been rumors that Amazon's Kindle Fire HD 8 2016 is two times more durable than the iPad Mini 4 after enduring several tumble tests. It is a lot more affordable which ideal for practical reasons, but the Fire HD 8 is no match to Apple's iPad Mini 4 in terms of the device's premium build quality.


The Euro: And its Threat to the Future of Europe

From Nobel Prize-winning economist and best-selling author Joseph Sitglitz, author of Globalization and Its Discontents, this is the essential, must-read guide to the future of Europe.

Solidarity and prosperity fostered by economic integration: this principle has underpinned the European project from the start, and the establishment of a common currency was supposed to be its most audacious and tangible achievement. Since 2008, however, the European Union has ricocheted between stagnation and crisis. The inability of the eurozone to match the recovery in the USA and UK has exposed its governing structures, institutions and policies as dysfunctional and called into question the viability of a common currency shared by such different economies as Germany and Greece.

Designed to bring the European Union closer together, the euro has actually done the opposite: after nearly a decade without growth, unity has been replaced with dissent and enlargements with prospective exits. Joseph Stiglitz argues that Europe's stagnation and bleak outlook are a direct result of the fundamental flaws inherent in the euro project - economic integration outpacing political integration with a structure that promotes divergence rather than convergence. Money relentlessly leaves the weaker member states and goes to the strong, with debt accumulating in a few ill-favoured countries. The question then is: Can the euro be saved?

Laying bare the European Central Bank's misguided inflation-only mandate and explaining why austerity has condemned Europe to unending stagnation, Stiglitz outlines the fundamental reforms necessary to the structure of the eurozone and the policies imposed on the member countries suffering the most. But the same lack of sufficient political solidarity that led to the creation of a flawed euro twenty years ago suggests that these reforms are unlikely to be adopted. Hoping to avoid the huge costs associated with current policies, Stiglitz proposes two other alternatives: a well-managed end to the common currency; or a bold, new system dubbed 'the flexible euro.' This important book, by one of the world's leading economists, addresses the euro-crisis on a bigger intellectual scale than any predecessor.

Mobile apps are now bigger than the web — a trend that threatens to eat Google's core business

Apps are eating the web.

Over the past decade, there has been an inexorable movement from the open internet to the walled gardens of apps — and this trend just hit a major milestone.

According to new data from ComScore, more than half of all time Americans spend online is spent in apps — up from around 41% two years ago.

It's a stat that will be discomfiting to advocates of the open web, as well as companies whose core business is built around it — notably Google.

As content that was once freely available and indexable on websites becomes silo-ed away in closed-off apps, it makes it harder to search and link to content. This is, of course, the cornerstone of Google's original business. Google is fighting back, by making the internal contents of apps searchable. But it is not clear that Google will come to dominate app search the same way it did web search.

Below is the data from ComScore, showing how mobile dominates when it comes to platforms people use to get online — and on mobile, apps are the most popular way of accessing information.

adamblog2_reference

And here's how the amount of time spent in apps has rocketed over the last few years.

adamblog1_reference

Amazon regala Kindle e promuove la lettura nei Paesi in via di sviluppo

Amazon regala Kindle, gli e-reader più in voga tra coloro che amano leggere in digitale. Solo pochi giorni fa, il 24 agosto, la nota azienda statunitense ha annunciato il suo nuovissimo progetto chiamato Kindle Reading Fund. Nasce con lo scopo di promuovere la lettura e, contemporaneamente, rendere quella digitale più accessibile a livello mondiale. L’intenzione è quella di donare un gran numero di Kindle, tablet Fire e milioni di e-book ai paesi in via di sviluppo in collaborazione con varie organizzazioni, tra cui Worldwidereader, con la quale ha già collaborato in passato.

Recentemente, quest’ultima ha infatti lavorato con Amazon al progetto LEAP 2.0, grazie al quale ben 61 biblioteche del Kenya e circa 500.000 dei suoi abitanti hanno potuto beneficiare degli e-book. La Worldwidereader, inoltre, può vantare di aver fatto in modo che, negli scorsi 6 anni, una gran quantità di libri abbia raggiunto oltre 4 milioni di persone. Si tratta di numeri impressionanti, considerato che in alcuni paesi la cultura non viene purtroppo promossa e i giovani di oggi si interessano sempre meno alla lettura. Basti pensare alle decine di librerie che chiudono ogni anno.

Amazon promuove la lettura e, proprio come per la Worldwidereader, non è la prima volta e non sarà l’ultima. L’azienda ha infatti donato, e continua a donare, migliaia di e-book di ogni genere a studenti e insegnanti. In collaborazione con la National PTA, inoltre, sta lavorando ad un progetto che vede il coinvolgimento dei genitori in un programma di lettura chiamato Family Reading Experience. Il supporto della famiglia è molto importante nella formazione dei bambini, quindi la speranza è che anche quest’iniziativa riscuota un grande successo. I più piccoli sono il futuro e, fortunatamente, Amazon lo sa bene e porta un aiuto non indifferente.

Se ciò non fosse abbastanza, è sufficiente citare alcuni degli altri enti a cui Amazon regala i Kindle. Ci sono il Seattle Children’s Hospital, Mary’s Place, Rainier Scholars e tantissimi altri ospedali, case famiglia e associazioni no-profit. Amazon promuove la lettura e, secondo un suo portavoce, il sogno dell’azienda è fare in modo che i libri e i benefici che portano arrivino a più persone possibili, comprese quelle dei paesi in via di sviluppo. Per informazioni più dettagliate, si può consultare il sito ufficiale.

How to Get Access to WindowsApps Folder in Windows 10

Just like almost all the programs, Windows App installation files are also stored in the Program Files folder in your C drive.

windowsapps-folder-programfiles

However, the folder is hidden from plain sight. To see the folder, head over to the Program Files folder, click on the “View” tab and then select the “Hidden Items” checkbox.

windowsapps-folder-check-hidden-files

This action will show you all the hidden folders including the “WindowsApps” folder.

windowsapps-folder-windowsapps

Though you can see the folder, you cannot open the folder to see the files in it. If you try to open it, your access will be denied even if you are the administrator.

windowsapps-folder-access-denied

To get access to the WindowsApps folder, right-click on the folder and then select the “Properties” option from the list of context menu options.

windowsapps-folder-select-properties

The above action will open the Properties window. Here, navigate to the Security tab and click on the “Advanced” button appearing at the bottom of the Window.

windowsapps-folder-select-advanced

Once the Advanced Security Settings window has been opened, click on the “Change” link. You will receive a UAC (User Access Control) prompt. Simply click on the button “Yes” to continue.

windowsapps-folder-click-change

Now the window will show you all the permissions of the WindowsApps folder. As you can see, this folder belongs to the system, thus you are not able to access it. To change it, click on the “Change” link appearing next to “TustedInstaller.”

windowsapps-folder-click-change-again

The above action will open the “Select User or Group” window. Here enter your administrator username and click on the button “Check Names.’ This action will automatically fill in the object name. Now, click on the “Ok” button to continue.

windowsapps-folder-enter-username

Here in the main window you can see the that the owner of the folder has been changed to your specified administrator account. Before applying the change, make sure that the “Replace owner on sub containers and objects” checkbox is selected. Otherwise you won’t be able to interact with other files and folders inside the WindowsApps folder.

After you’ve done everything, click on “Ok” button to save the changes.

windowsapps-folder-apply-permission-changes

As soon as you click on the Ok button, Windows starts to change the file and folder permissions. This process may take some time, so sit back and wait until the process is completed.

WIndows_Security

Once the file and folder permissions have been changed, you can easily access it like any other folder in the Program Files folder as long as you are an administrator or have administrator rights.

windowsapps-folder

Do comment below sharing your thoughts and experiences about using the above method to get access to WindowsApps folder in Windows 10.

Advertsing

125X125_06

Planet Xamarin

Planet Xamarin

Calendar

<<  September 2017  >>
MonTueWedThuFriSatSun
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

View posts in large calendar

Month List