[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...

Результаты первого дня

0
Comments
Результаты первого дня

Вчера я написал о начале маленького проекта по привлечению средств на помощь нашей армии, и уже сегодня видны результаты: 17$ за один день, это 340 грн по текущему курсу привата. И это в выходной день! Обычно в выходной день у меня было не больше 2$! (в будние дни ~10$) НО! Не нужно клацать на рекламу (ну только если она вам интересна)! Так как Google может заблокировать аккаунт если увидит подозрительную активность (а сегодня она была таковой) Наша цель сделать сайты популярнее для поисковиков,...

Read further...

Как ВЫ можете помочь воинам Украины!

0
Comments
Как ВЫ можете помочь воинам Украины!

Не хочу вдаваться в полемику о том почему началась и так на долго затянулась война, почему руководство страны принимает такие, а не другие, решения. Кому выгода или нет война на востоке Украины. Но есть неоспоримые факты: Призывают служить обычных людей. Наших с вами соседей\знакомых\друзей\родных Обеспечение нашей армии оставляет желать лучшего (и это мягко сказано) Как результат имеем просто нищенские условия существования людей на передовой. Нет теплых вещей, нет аптечек, нет обмундирования,...

Read further...

Migrate Wordpress site from OpenShift to VPS

2
Comments
Migrate Wordpress site from OpenShift to VPS

For all my new sites, I'm using free OpenShift account. But it is not 100% stable. Now, I have 5 sites located on OpenShift, and at least once a week, I need to restart one of them (usually it's error 503). So, when number of visitors on sevennet.org exceeded 4000 per day I have decided to move this wordpress blog to my VPS. Here is a small instruction how to do that Prepare your VPS\VDS On your VPS you should have nginx\apache with php and mysql installed. I would recommend you to change apache...

Read further...

[Fixed] [ERROR] /usr/sbin/mysqld: unknown variable 'log_slow_verbosity=query_plan'

3
Comments

Error during installing MySQL server 5.5 on Ubuntu 14.04 I got following error when try to install mysql-server-5.5 on ubuntu 14.04: [ERROR] /usr/sbin/mysqld: unknown variable 'log_slow_verbosity=query_plan' After that I got start: Job failed to start To fix that: open /etc/mysql/my.cnf for edit and comment following string log_slow_verbosity=query_plan Then start installation from scratch: sudo apt-get install mysql-server

Read further...

How to connect to OpenShift with putty (ssh)

7
Comments
How to connect to OpenShift with putty (ssh)

I'm hosting 5 of my sites on OpenShift. Sometimes I need to connect to my applications through ssh. On Windows, I'm using putty to do that. Here is small "how-to" about connecting to the OpenShift application. First, you need a private and a public keys. To generate them you need puttygen Open puttygen and press generate:   Move your mouse in "Key" area until progress bar is full. Then type your passphrase and press save private key. Also, copy all text from Public key section (starts from...

Read further...

How to check if AdBlock is enabled

1
Comments

Here is the simplest way to check if AdBlock is enabled on your site: First of all you should create simple javascript file with following content: var isAdsDisplayed = true; Name it adsbygoogle.js and upload to your web server. Then on the page where you want to check if AdBlock is enabled or not just add the following script: <script src="/js/adsbygoogle.js"></script> <script> if(window.isAdsDisplayed === undefined ) { // AdBlock is enabled. Show message or track cu...

Read further...

Статистика блога 2014, или можно ли заработать в интернете?

0
Comments
Статистика блога 2014, или можно ли заработать в интернете?

Вот и пролетел еще один год, 2014-й... Год выдался ммм.... как сказать.... нестандартным. Были как плохие моменты так и хорошие. Будем наедятся что в 2015 будет больше хорошего и меньше плохого. Но пост не об этом. Еще один год в истории моего персонального блога. Собственно, статистикой этого блога я и хотел бы с вами поделиться. Возможно кого-то это вдохновит на создание свое блога\сайта\портала и т.д. Итоги года: рост посещаемости на 500%, переезд на новый домен и рост прибыли в 10 раз На нач...

Read further...