[IoT] Connect Intel Galileo Gen 2 to Arduino Uno via nRF24L01

1
Comments
[IoT] Connect Intel Galileo Gen 2 to Arduino Uno via nRF24L01

Guys from Newark element14 have sent me a nice dev board - Intel Galileo Gen2. I was curious because before, Microsoft declared that Windows 10 IoT Core will run on this board. I planned to run my previous benchmark on this board to see if it can beat Raspberry PI 2. Unfortunately, with the latest release they removed this board from the compatibility list :( But this is not a big problem because I have some plans about home automation and I can use this board in it. I have couple nRF24L01 modul...

Read further...

Build and test ASP.NET 5 application using AppVeyor

1
Comments
Build and test ASP.NET 5 application using AppVeyor

For those who do not know, AppVeyor is Continuous Integration and Deployment service for .NET projects. It is free for open-source projects. Currently, AppVeyor supports latest DNX version (1.0.0-rc1-final) and I've recently migrated my pet project to this version. I will show you how easy it is to build and run all unit tests on CI server every time you commit to GitHub. Visual Studio project (MSBuild) In LearnWordsFast project we are using Visual Studio 2015 as a development environment, so in...

Read further...

[ASP.NET 5] Lazy DBContext initialization with Entity Framework 7

2
Comments
[ASP.NET 5] Lazy DBContext initialization with Entity Framework 7

I will show you how to do lazy db context initialization with Entity Framework 7. The idea is simple, we need an easy way to get database context in a request. If db context was used in the request we should call SaveChanges method and dispose used context if not we shouldn't do anything. For "client", code should look like this: public class SomeRepository { private readonly IDbContext _db; public SomeRepository(IDbContext db) { _db = db; } public void Add(Item item) { _db.Current.Items.Add(ite...

Read further...

[WPF][MVVM] TreeView: Scroll To Selected Item

0
Comments

Here is the MVVM way to bring selected TreeViewItem into a view. First we need an attached behavior. We cannot use regular behavior because we will attach this property through Style. public class BringSelectedItemIntoViewBehavior { public static readonly DependencyProperty IsBringSelectedIntoViewProperty = DependencyProperty.RegisterAttached( "IsBringSelectedIntoView", typeof (bool), typeof (BringSelectedItemIntoViewBehavior), new PropertyMetadata(default(bool), PropertyChangedCallbac...

Read further...

[ASP.NET 5] Production Ready Web Server on Linux. Kestrel + Supervisord

2
Comments
[ASP.NET 5] Production Ready Web Server on Linux. Kestrel + Supervisord

In the previous article I've used nohup + su + init.d script to run kestrel in a background. But as Daniel Lo Nigro suggested in comments it's much easier to do the same with Supervisor And he was absolutelly right, config is much smaller, and you can easelly see status and output of a program. First, install supervisor: sudo apt-get install supervisor Now you can create config for your application: sudo nano /etc/supervisor/conf.d/kestrel_default.conf With following content: [program:kestrel_de...

Read further...

ZohoPeopleTimeLogger v1.2 - Special for Andre

0
Comments
ZohoPeopleTimeLogger v1.2 - Special for Andre

Because Andre is so special, the previous version of ZohoPeopleTimeLogger was not working with his account. I've fixed couple issues in the program to make him happy. Now, my friend, you can enjoy this lovely program! This release (v1.2) is dedicated to you! Download Now seriously! There was a small issue in a way I got information from zoho. I used user email to get user specific data (time log) but as I found out it is case sensitive, so Andre@something.com and andre@something.com are differen...

Read further...

[C#] Zoho People Client Library

0
Comments
[C#] Zoho People Client Library

 Zoho People Client v1.0.0 released. ZohoPeopleClient - C# asynchronous client library to interact with the Zoho People API. Supported API TimeLogAPI (Get/Add/Delete) JobsAPI (Get) LeaveAPI (GetHolidays) FetchRecordAPI (Get) NuGet Package Source Code GitHub Current Release Build Status Examples Sign in with login and password var client = new ZohoClient(); var token = await client.LoginAsync(login, password); // save token for further use Sing in with token // load token from storage var client...

Read further...

ZohoPeopleTimeLogger v1.1 Even Smarter Than Before

0
Comments
ZohoPeopleTimeLogger v1.1 Even Smarter Than Before

Yes! It finally happened. New version of ZohoPeopleTimeLogger released :) Download In ZohoPeopleTimeLoger v1.1 you don't need to think about your time tracking at all! This smart program will do everything for you. Do you have any booked vacation in this month? Not a problem. Press "Make me happy!" button and ZohoPeopleTimeLogger will fill all days in this month except vacations   The same with public holidays! It will leave them empty... But, wait for this..... You can now fill in a single...

Read further...

[Windows 10] VIDEO_SCHEDULER_INTERNAL_ERROR after wake up

49
Comments
[Windows 10] VIDEO_SCHEDULER_INTERNAL_ERROR after wake up

I have installed new Windows 10 on my PC, everything was fine until I decided to put my computer in to a sleep mode. After a while I turn on my computer and got my first BSOD. That was VIDEO_SCHEDULER_INTERNAL_ERROR. After this error, I have tried to update my chipset and video drivers, that didn't work. Then I have disabled Inter Rapid Start Technology in BIOS, result is the same - still BSOD after returning from the sleep mode. Probably this is driver issue, so now I am waiting for a fix from...

Read further...

[Fix][Windows 10] ctrl+c / ctrl+v not working in cmd.exe

2
Comments
[Fix][Windows 10] ctrl+c / ctrl+v not working in cmd.exe

After installing Visual Studio 2015 on my fresh Windows 10, I've figured out that ctrl+c \ ctrl+v not working anymore in command prompt (cmd.exe) For some reason, VS has put my cmd.exe in the legacy mode. To fix that: Open cmd.exe Right click on a windows header Go to Properties  Option tab Deselect Use legacy console Close cmd.exe

Read further...