Tool for enabling or disabling nginx sites (a2ensite analogue for nginx)

0
Comments

If you have previously used Apache you should now about a2ensite tool. If you start using nginx you probably find out that there are no such tool for nginx. You can use following command to do that: ln -s /etc/nginx/sites-available/mysite /etc/nginx/sites-enabled/mysite and then restart nginx sudo service nginx restart But... I have found one small script that can do that for you. Also, it can display list of all available or enabled sites, disable site and automatically restart nginx. Just put...

Read further...

nginx wordpress configuration

0
Comments

Simple but working nginx configuration for wordpress based web site... server { server_name site.com; root /var/site.com/www; index index.php; location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location ~ /\. { deny all; } location ~* /(?:uploads|files)/.*\.php$ { deny all; } location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/ph...

Read further...

Migrate from Apache to nginx + php-fpm and speed up your site twice

0
Comments
Migrate from Apache to nginx + php-fpm and speed up your site twice

This blog is hosted (together with mintchocolate.org) on a small VPS (1x2.8 Ghz, 256 Мб RAM, 10 Gb SSD). This VPS is shipped with apache2, php and mysql. As you can see I am using wordpress for this blog, also I have approximately 1000 unique visitors per day (half of them visit this and this articles). So it is good to have small response time. Apache First I need to measure how slow my blog is. I have used loadimpact.com to do that. This is result for apache2: [caption id="" align="aligncenter...

Read further...

[How-to] Downgrade Nexus from 5.0 to 4.4

4
Comments

I have installed Android 5.0 on my Nexus 7 (2012, wi-fi) and that was the biggest mistake I have ever done with my tablet pc. I don't know, maybe the problem is not in Android Lollipop, but in my concrete device, but after installing 5.0 it becomes incredibly slow! First 5 minutes after restart it works fine, but then everything become soooo sloooow.... Here are some steps that can help you with downgrading your Nexus device (5 or 7) from  5.0 to 4.4 (or whatever you want). Download factory imag...

Read further...

[How-to] BlueStacks: Change Android device id

2
Comments

Sometimes you need to change android device id in your Android emulator. If you are using rooted BlueStacks image - you can use Android ID Changer. This tool works only on rooted devices! Download Android ID Changer

Read further...

[Fixed] Apache mod_status: /server-status forbidden from 127.0.0.1

1
Comments

If you have mod_status enabled but still got this error (403) when trying to connect from localhost (127.0.0.1) you can should do following: First, go to /etc/apache2/mods-enabled/status.conf and check that you have all hosts that you want to connect from is added to Allow from, something like this:   <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 ::1 </Location> Second, create VirtualHost configuration for 127.0.0.1 with f...

Read further...

[Solution] Cacti + RRDTool. Graph not working problem fixed

3
Comments

If you have problems with graph in your Cacti first what you should do is enable debug mode in Cacti. To enable debug mode: Go to "Graph Management" Open any graph (Localhost - Load Average) Press "Turn On Graph Debug Mode." Now you should see something like this: RRDTool Command: /usr/bin/rrdtool graph - \ --imgformat=PNG \ --start=-86400 \ --end=-300 \ --title='Localhost - Load Average' \ --rigid \ --base=1000 \ --height=120 \ --width=500 \ --alt-autoscale-max \ --lower-limit=0 \ --u...

Read further...

[How-To] Horizontal Field Of View for Unity3d camera

0
Comments

In Unity3d you can change only vertical field of view for a camera by default. This means whenever you change height unity will automatically scale environment. But if you change width unity will just add some space (or decrease) to left and right side of the screen (no content resizing). If you want to have opposite behavior, so when you increase width all content will  be scaled and if you increase height only space added to the view, you need to modify camera fieldOfView field. Here is a simp...

Read further...

[How-To] Get free developer account in the Windows Store

5
Comments

Edit: This information is outdated! Recently, Microsoft have introduced new "Dev Center Benefits" program. If you're a serious app development expert, as past of this program you can create developer account in the Windows Store or the Windows Phone Store for free. But then you need to publish application in one of those stores. To get free account you need: Go to Dev Center Benefits Press "join" Sign in with your microsoft account (or create new one) Fill all necessary information. Create  Wind...

Read further...

[Review] New features of Windows 10 Technical Preview

0
Comments
[Review] New features of Windows 10 Technical Preview

As you can see in my previous post  I have successfully installed Windows 10 Technical Preview on Virtual Box. Now I want to show you new features which were added in Windows 10 Technical Preview. No window borders: Now: Before: New show\hide windows animations Now windows slide from top with fade in effect. New Start menu Taskbar in bottom position: Left: Top: Right: Virtual Desktops You can easily "jump" between virtual desktops by pressing Ctrl + Win + Left\Right arrows You can also run each...

Read further...

[How-To] Install Windows 10 Technical Preview

0
Comments
[How-To] Install Windows 10 Technical Preview

Hi everybody! Finally! Next version of windows is available for download. This is just Technical Preview, but it already contains a lot of cool features. First of all: Download Windows 10 Technical Preview Because this is technical preview it is not recommended to install this system to your main computer, so for this tutorial we will install windows 10 on virtual box. Install VirtualBox Create new "Windows 8.1 64-bit" VM Mount downloaded ISO as CD drive Start VM We will see almost the same inst...

Read further...

[Fixed] Unable to parse YAML file in Unity 3d project

1
Comments

Sometimes you may get following errors: Unable to parse YAML file: [mapping values are not allowed in this context] at line 1 or Unable to parse YAML file: [could not find expected ':'] at line 2 Both of those errors usually caused by version control system (eventually by user). In first case svn added <<<<<<< .mine in to .meta file after conflict. In second case it was git, added text to highlight conflict. To fix those errors you just need to go though all .meta files and...

Read further...

How-To root BlueStacks App Player

11
Comments

To root original BlueStacks vm you can use BlueStacks MultiTool. But I have more simpler solution. You can just download already rooted BlueStacks image. There are two version of rooted BlueStacks available for download: BlueStacks Rooted setup v0.8.12.3119 Mod - android 4.0.4 (recomended, more stable!!!) BlueStacks Rooted Superuser setup v0.9.3.4070 Mod - android 4.4.2 Remove your old BlueStacks and install rooted vm. Enjoy!

Read further...

[How-To] Bluestacks: change screen resolution

28
Comments

To change screen resolution in BlueStacks Android emulator you need to edit two registry items: 1. Run regedit.exe 2. Set new resolution (in decimal): HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Height and HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\FrameBuffer\0\Width Kill all BlueStacks processes. Restart BlueStacks

Read further...

Games

0
Comments
Games

Bricks Avalanche Destroy as many bricks as possible!      

Read further...

Bricks Avalanche

0
Comments
Bricks Avalanche

Casual Destroy as many bricks as possible! You need to destroy rows of bricks by filling gaps in the row. Remake of old "BrickGame" game. https://www.youtube.com/watch?v=2KEAj02wYiI

Read further...

[Fixed] Error building Player: Win32Exception: zipalign.exe in Unity3d

9
Comments

During building your Unity3d project for Android devices you might get following error:: "Error building Player: Win32Exception: ApplicationName='C:/Program Files (x86)/Android/android-sdk\tools\zipalign.exe', CommandLine='4 "D:\code\Game\Temp/StagingArea/Package_unaligned.apk" "D:\code\Game\Temp/StagingArea/Package.apk"', CurrentDirectory='Temp/StagingArea'" To fix this error: Go to C:\Program Files (x86)\Android\android-sdk\build-tools\20.0.0 (you may have different version) Copy zipalign.exe...

Read further...

Seven - Мир грёз

0
Comments

Seven - Мир грёз Em C Am H7 Ночь и тишина вокруг меня За мраком ночи спят деревья и поля Но я не с ними я во снах что памятью хранят Там где все те кто любят, ждут меня Припев Em C Am H7 Там в мире грез нет горечи и слез Богатство и успех сопутствует у всех Любовь и доброта там правила всегда А жизнь течет вперед не зная смерти ход Лица в памяти всплывают лица Дом родной родной очаг А сердце радость наполняет До краев души не чает Нету больше сожалений и печали больше нет Я ведь дома, у камина,...

Read further...

[How To] Automatically start a program when you turn on your computer

0
Comments

Autostart a program you use every day by adding a shortcut to the Windows Startup folder. (If this is too much of a distraction or makes your computer start too slowly, you can always delete the shortcut from the Startup folder.) Windows 7 Right-click the icon of the program you want to start automatically, and then click Copy (or press Ctrl + C). In the All Programs list, right-click the Startup folder, and then click Explore. Click Organize > Paste (or press Ctrl+V) to paste the program sho...

Read further...

[Fixed] "Setup was unable to create a new system partition or locate an existing system partition" during installing Windows 8.1(8, 7, Vista, etc) from USB

267
Comments

If you try to install any version of Windows from USB falsh drive you may got this error: "Setup was unable to create a new system partition or locate an existing system partition" I have already found tricky solution for Windows 7 but it didn't help me with Windows 8.1. So I have found another solution that will be suitable for any Windows version. Basically you just need to copy all installation files from USB flash drive to your HDD (or SDD) drive and make it bootable, and then continue insta...

Read further...

[Fixed] The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

12
Comments

The problem arises when you have your application compiled for AnyCPU Platform, you are running on a 64bit system and the installed ADO.NET provider (Microsoft ACE.OLEDB.12.0) is the 32bit version. When using the AnyCpu target Platform your code will be executed as 64bit code on 64bit systems and as 32bit code on 32bit systems. An application executed as 64bit cannot use 32bit drivers (and viceversa). The Microsoft.ACE.OLEDB.12.0 has two different version for 64 and 32bit that cannot be installe...

Read further...

Enity Framework "column in table is of a type that is invalid for use as a key column in an index"

1
Comments

After adding Index attribute with IsUnique set to true for string value in my code first model [Index(IsUnique = true)] public string Email { get; set; } , I've tried to update my database, but got following error: "column in table is of a type that is invalid for use as a key column in an index". I've got this error because unique constraint can't be over 8000 bytes per row and will only use the first 900 bytes even then so the safest maximum size for my field would be 450 characters. To add th...

Read further...

Апостиль на свидетельство о рождении

1
Comments
Апостиль на свидетельство о рождении

Возможно вам, как и мне, понадобилось апостилировать свидетельство о рождении. Вот небольшая инструкция для облегчения поисков. Все инструкции, адреса и т.д. будут проводиться для условий Киева. Получения свидетельства Украинского образца. Если у вас свидетельство выдано еще во времена СССР его желательно заменить, так как апостиль ставиться только на документы выданные в Украине. Поменять его можно по месту выдачи предыдущего. Если нет такой возможности апостиль можно поставить на нотариально з...

Read further...

Решение проблем с установкой Windows 8.1 (8, 7, Vista, etc) с USB флешки (Программе установки не удалось создать новый или найти существующий системный раздел)

150
Comments
Решение проблем с установкой Windows 8.1 (8, 7, Vista, etc) с USB флешки (Программе установки не удалось создать новый или найти существующий системный раздел)

Привет всем любителям маздая ;) Надумал я обновить вянду у себя на PC, друг подкинул крякабельную windows 8.1 и соответствующий кряк. Образ залит на флешечку, машина уходит в ребут, загрузка пошла, доходим до выбора диска, нажимает Далее и видим уеб*щное  сообщение с всеми нелюбимой ошибкой "Программе установки не удалось создать новый или найти существующий системный раздел". Ну думаю, хрен с вами, нарыл я уже один раз способ решения данной проблемы, но доблестные программисты майкрософта пофик...

Read further...

[urlHandler] MSI installation released

0
Comments

Now you could install UrlHandler by using msi installation. This installation is in progress now, so for now it is necessary to perform some post installation steps. In the future all installation process will be automated. Please read README file. Download: Msi installation Source code 

Read further...

[sevennet.org] Идея заработка в интернете

2
Comments
[sevennet.org] Идея заработка в интернете

Решил я заработать деньжат в интернете, но вестись на разводы "легкого заработка в интернете" я не собирался. Подумав немного на чем в интернетах можно сделать денег, была выбрана реклама. Но для заработка на рекламе нужны посетители и сайт на который они будет заходить. Для заходов нужно появляться в поисковой выдаче, а что бы быть не в самом конце списка желателен уникальный контент. [caption id="" align="alignright" width="330"] КДПВ[/caption] Но где брать уникальный контент? Тут то мне и при...

Read further...