I am going to build an Auto Guided Robot using Fuzzy Logic, UWP App (C#), Windows 10 IoT Core, and Raspberry Pi 3, and I will divide this tutorial into a couple of blogs to make it easier, shorter and quicker to learn and implement.
This is the robot, you will see at the end of this blog series: (hopefully working as intended 🙂 )
In this blog post, I will show you how to use Fuzzy Logic in your UWP (Windows 10) Applications to make it much smarter and usable, but before we get started, Do you even know what is Fuzzy Logic? Don’t Worry! I will tell you in a nutshell what is fuzzy logic?
It’s an approach to computing based on “degrees of truth” rather than the usual “true or false” (1 or 0) Boolean logic on which the modern computer is based on.
Fuzzy logic seems closer to the way our brains work. We aggregate data and form a number of partial truths which we aggregate further into higher truths which in turn, when certain thresholds are exceeded, cause certain further results such as motor reaction.
A similar kind of process is used in neural networks, expert systems and other artificial intelligence applications.
Fuzzy logic is essential to the development of human-like capabilities for AI, sometimes referred to as artificial general intelligence: the representation of generalized human cognitive abilities in software so that, faced with an unfamiliar task, the AI system could find a solution.
In this blog, I’ll be talking about a new Xaml Control in Windows 10 which is “SplitView | Hamburger Menu” Control, and here’s an example in some apps in Windows 10
Note: if you didn’t get Windows 10 Developer Tools, you can check this Blog to get you ready.
So, Let’s Start building this in our upcoming Windows 10 Apps 😉 Continue reading
In this blog, i’ll show you how to get you App PackageFamilyName in Windows 10 in C# Code without Store, because it’s not available yet for Windows 10
In Windows and Windows Phone, we used to get App PackageFamilyName from the Store by “Associating the App, and get the unique PFN of the App”
Why do i need PFN:
If you are intending to use communication between Apps, or using App Services, you’ll absolutely need the PFN to connect the App and Service you are using or whatever the scenario you are building.
Let’s Get Started:
- Open Visual Studio 2015 CTP, Create new project, select Windows 10 (Blank Template)
- Open MainPage.xaml.cs and these namespaces.
The first, because we will be using a class inside it called Package
and the second, to show MessageDialog.
- Then, in Public MainPage() add this code.
var currentPack = Package.Current;
var pfn = currentPack.Id.FamilyName;
new MessageDialog("PFN = " + pfn).ShowAsync();
This code to show the PFN in a Message Dialog using Package Class.
- Now, run the demo, and the PFN should appear in a Message Dialog as shown:
Now, you have got your App PFN, you can use it to connect to other App using App Services.
Here’s the Code Sample.
Feel free to contact me, if you face any problem.
In this blog post, we will walk through How to integrate your Windows/Windows Phone 8.1 apps to Windows 10 Apps (Universal App Platform).
“Writing for Windows 10, is writing for all devices.”
First of all, we will have to make some modifications in package.appxmanifest but, unfortunately there’s no tools in Visual Studio CTP and Windows 10 Developer Tools yet.
But, to solve this problem at the meanwhile, there’s a Powershell script is written to do most of work till the full version, and you can get this file from HERE.
After you download the Powershell file, unzip it and place unzipped folder in the C Drive.
And you can get these tools from HERE.
Now, Let’s Start 🙂
- Open your Win/WP 8.1 Project and Right Click the project and hit Open in File Explorer.
- Click File > Open command prompt > Open command prompt as shown:
- Then, write following command.
And hit Enter.
This will convert the .csproj to UAP and will update the package.appxmanifest
- Now, you will find your project migrated to UAP.
- Make some edits in package.appxmanifest by adding uap: before some capabilities and Application Extensions and Protocols like shown below:
- And if you are migrating Windows 8.1 App, Change the tile size like shown below:
- Before you run, you have to add some extensions to solve Platform Specific issues (e.g phone back button), Right Click References and then hit Add Reference > Universal App Platform > Extensions
Add: Windows Desktop Extension SDK and Windows Mobile Extension SDK
- Now, Run your App, you might face some issues in xaml like Phone Styles, change them to public style that could run in Windows 10 UAP.
- About the Charms, they are not existed anymore in Windows 10 with the same UI but, you should replace them with in-app UI for (Search – App Settings – Sharing).
And Here are some tips to put in your consideration while migrating to Windows 10:
- Don’t forget to add Reference to Platform Extension SDKs, if needed.
- Review conditional code (#if…) and convert to adaptive code where appropriate.
- Replace calls to deprecated APIs, if any.
- Replace references to undefined styles in XAML (as we mentioned above).
- Update code that integrates with Charms bar.
- Extend your UI to create a great, adaptive UI that works across multiple device families.(The most Important)
This was a very simple scenario for migrating you Win/WP 8.1 App to Windows 10.
Keep in mind, it’s still a preview 😉