[vNext] Install ASP.NET 5 (DNX) on Ubuntu

10
Comments
[vNext] Install ASP.NET 5 (DNX) on Ubuntu

ASP.NET MVC application on Linux? Easy! As you may know, Microsoft recently released a lot of their products under MIT license. .NET Core runtime, .NET CoreFX, ASP.NET 5, MVC 6, Entity Framework 7, MSBuild, everything is now available on GitHub. Our goal is: run Asp.Net MVC application with postgresql database on ubuntu server Today we are gonna start with setting up .NET environment. In the new asp.net stack you can choose between full .NET runtime and .NET Core. For now .NET Core has a lot of...

Read further...

[Fix] VT-x is not available. (VERR_VMX_NO_VMX)

1
Comments

I got this error after installing Visual Studio 2015 CTP 6 with Windows Phone 8.1 emulator. Sometimes  you can get this error if you turned off VTx or AMDv in bios. So, first things to do is: make sure that Virtualization is enabled in bios. Next - turn off Hyper-V. After installing Visual Studio with emulator it automatically turn Hyper-V on. And, apparently, Virtual Box cannot work together with Hyper-V. Run cmd.exe as administrator Execute command dism /online /disable-feature /featurename:Mi...

Read further...

[How-to] Record sound in .NET application

0
Comments

First import mciSendStringA from winmm.dll: [DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)] private static extern int mciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback); To start recording: mciSendString("open new Type waveaudio Alias recsound", null, 0, 0); mciSendString("set recsound time format ms bitspersample 16 channels 2 samplespersec...

Read further...

Windows 10 Technical Preview Build 9926

0
Comments
Windows 10 Technical Preview Build 9926

As you know Microsoft released new version of Windows 10. Now you can update your current system to Windows 10 Technical Preview for free. I have installed this version (build 9926) on Virtual Box. Here is a small review: First impression First impression was bad. After installing Windows 10 I want to start internet explorer to check how it works, but I have found out that you cannot search in start menu anymore. What a fuck? I am used to using this operation so much! Whenever I want to start a ...

Read further...

How-to Backup Wordpress Site

1
Comments

Here are two commands to backup your wordpress site. First you need to backup database: mysqldump -uUSER -h127.0.0.1 -pPASSWORD DB_NAME > database.sql Now you can archive www root folder: tar -chvzf www.tar.gz /var/site.com/www After this manipulations you can copy this two files to the same place. How to Restore WordPress Site

Read further...

Идея заработка в интернете. Выводы

1
Comments
Идея заработка в интернете. Выводы

Чуть больше года назад я писал о идеи заработка в интернете. С момента начала у меня завелось 5 сайтов с контентом который я копировал с других сайтов (где это разрешено правилами и лицензией). Заработок вырос до 200$ в месяц. Но! Настал тот день когда мой аккаунт в Google AdSense заблокировали: А за пару дней до этого google забанил один из сайтов (sevennet.org) из поисковой выдачи за не уникальный контент: И действительно, почитав правила и гайдлайны я увидел там пункты запрещающие постить не...

Read further...

[Fix] Call to undefined function imagecreatefromgif()

0
Comments

If you get following error: Call to undefined function imagecreatefromgif() You just need to install right version of GD. After 2.0.28 gif support was reverted back. To fix this error: sudo apt-get install php5-gd If you are using nginx with php5-fpm do: sudo /etc/init.d/php5-fpm restart

Read further...

[WPF] Binding ItemsSource to Enum

2
Comments

Suppose you need to bind ItemsSource dependency property to enum's values. For example in ComboBox. You have following enum: public enum ExampleEnum { Red, Green, Yellow } Now you can use ObjectDataProvider <Window x:Class="ExampleApplication.Window" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:local="clr-namespace...

Read further...