Articles, reviews, quizzes...

phpstorm + SVN + SSH Key Auth + windows

Если у вас возникает ошибка вида: Error:svn: E170013: Unable to connect to a repository at URL 'svn+ssh://user@svn.ru/SVN/project/branches/dev/test.cpp' svn: E170012: Can't create tunnel svn: E720002: Can't create tunnel: The system cannot find the file specified . Solution. Отредактировать файл…

audioTest

bassTest.mp3 …

android

Конт Root+Explorer+v4.1.4P.apk Game+Killer+v4.10.crk.apk APK+Editor+Pro+v1.8.8.apk GameGuardian.8.26.4.apk freedom-1.7.4.apk …

Update Denver to php 5.5.9. Short manual..

1. Скачать PHP http://phpdev.toolsforresearch.com/php-5.5.9-Win32-VC11-x86.zip 2. Распоковать в C:\WebServers\usr\local\php5 3. PROFIT!!! Everything should work fine. Naturally this should be done on off Denver. …

More 400 responses to the popular game four pictures one word + update

Council. Чтобы быстро найти слово по картинке, воспользуйтесь сервисом Google Images Search на ПК. COLD LOUD CROSS HOT SWEET CRUDE BALL YELLOW STRONG SOFT SOLID HEIGHT RED SOUR QUIET HAPPINESS WHITE PAST MORNING LARGE …

Examples of triggers MySQL

DROP TRIGGER IF EXISTS `update_sms_plus`; CREATE TRIGGER `update_sms_plus` AFTER UPDATE ON `sms_plus` FOR EACH ROW UPDATE sms_plus SET city = NEW.gorod WHERE id=NEW.id; …

MTS useful service commands + vCard

Room Name *111# Service menu *152# The cost of recent transactions *100*1# The residue packages *111*271# The residue traffic *111*919# Unsubscribe from newsletters 63-33 Anti-spam SMS 08-80 Call for others *116*79180000000# Recharge my account *110*9…

Batch JPEG compression without quality loss

I'm sure many wondered how quickly and easily compress all images at once. For example, to free up space or website optimization. Even Google Pagespeed recommends compress them such advice: If you compress lossless image ..., this will reduce the size 909 Б (3 %). In this…

Example model of the globe on WebGL

Working example here: Example model of the globe on WebGL So it looks in the browser on android: …

Detector bots in PHP

// detector bots function isBot($ua=null){ if ($ua===null) { if ($_SERVER['HTTP_CONNECTION'] == 'TE, close' || $_SERVER['HTTP_CONNECTION'] == 'close' || $_SERVER['HTTP_CONNECTION'] == 'TE' ) return 1; $ua = strtolower($_SERVER['HTTP_USER_AGENT']); } if (!$ua) return true; $list = array('…

Whois request to PHP

// Whois request to PHP function RipeIPInfo2($ip){ $oSocket = fsockopen("whois.tcinet.ru",43,$sErrorNo, $sErrorMsg); fputs($oSocket,$ip."\r\n"); while(!feof($oSocket)){ $line=trim(fgets($oSocket,128));dbg($line); if ($line[0]=='%' OR !$line) continue; $line=explode(':',$line); $result[$line[…

Executing shell commands with instant output in PHP



Bit operations in MySQL (Work with flags)

#Set flag 0x2: UPDATE `table` SET `flag`=`flag` | (0x2); #Set just a few bits (0x1 и 0x2): UPDATE `table` SET `flag`=`flag` | (0x1|0x2); #To remove the flag 0x2: UPDATE `table` SET `flag`=`flag` &~ (0x2); #Delete several bits (0x1 и 0x2): UPDATE `table` SET `flag`=`flag`…

How to run a script only once, automatically killing up

#!/bin/sh # kill all process with basename, but the current ps aux | grep ./`basename $0` | grep -v $$ | grep -v grep | awk '{ print $2}' | while read LINE; do kill -9 $LINE done …

Ubuntu + nginx + php + mysql + memcached + eAccelerator

Install and configure Nginx sudo apt-get install nginx sudo vim /etc/nginx/sites-available/default The default server { listen 80; server_name localhost; #access_log /var/log/nginx/localhost.access.log; charset utf-8; rewrite ^/sitemap\.xml$ /sitemap last; rewrite ^/robots\.txt$ …

Automatic delivery to email error_log

Wrote a simple shell script, which is like the tail-f command in real time monitors the error log and sends changes to mail. To protect against spam, the script will not send more than one letter per minute. #!/bin/sh tail -f -n0 /var/log/php5-fpm.log | grep PHP | while read LINE; do SEND_BUF="$S…

Maximum acceleration Firefox

Here are all the settings for maximum acceleration Firefox. Вы можете пронести их вручную в about:config или автоматически создав файл user.js in your profile: c:\Users\Ваш_пользователь\AppData\Roaming\Mozilla\Firefox\Profiles\Nabor_simvolov\ Файл: c:\Users\Ваш_пользователь\AppData\Roa…

Calculate the age of the person by the date of birth (php)

date_default_timezone_set('America/Los_Angeles'); function calculateAge($birthday){ return floor((time() - strtotime($birthday))/31556926); } //USAGE EXAMPLES echo calculateAge('1978-07-11'); echo calculateAge('7/11/1978'); echo calculateAge('7/11/78'); echo calculateAge('July 11, 1978'); And here…

Configuring Windows XP for maximum performance

Bad advice) For the sake of interest empirically established the required minimum services in Windows: DHCP Client Plug and Play Wireless setup Accounts Manager security (будет работать и без нее) The event log (система работает, wifi не загружается) Запуск серверных процессо…

Integrated functional MySQL

In MySQL has enough built-in functions and features that simplify the code. Unfortunately, not all programmers are aware of this and use their «Bicycles». ON DUPLICATE KEY UPDATE For example, there is a table with some objects (users , posts , etc.д.). If this object with such-and-such University…

Outline plan of a New 2015 year and celebrating Christmas , the festival «Best winter city»

Name and form events Date and time Venue Responsible organizations in t.ч. body (or bodies of) executive power Main activities Great winter skating rink on the red square 1 декабря 2011 – 3 March 2012 Red square ОАО «GUM TRADING HOUSE» Meeting D…

Increase productivity HTML5 Application

Library: https://github.com/ftlabs/fastclick - removes the delay 300MS in mobile browsers http://greensock.com/jquery-gsap-plugin - jQuery plugin to increase productivity jQuery.animate() For tests in 20 times faster than the native jQuery.animate(). Article: http://www.stubbornella.org…

logo

An example of how to develop a logo in the style of iOS for 15 minutes right in the browser. Press F12. Edit styles. Click on the logo to save the picture. S ` …

Benchmarks. PHP-FPM + OPcache vs HipHop vs Si vs kPHP

Configuration: Intel Dual Core 1.60GHz, 8Gg RAM PHP-FPM (PHP 5.5.3) + OPcache HipHop VM 2.4.0 (rel) As a web north acted nginx/1.4.1 (Ubuntu) Counting million decimal of Pi Was equivalent code written in php and C to calculate the number Pi million mark by the formula Bailey — Barua…

Installation of commercial programs for free on iOS 6,7 NO JAILBREAK!

Step by step illustrated instructions In the browser, iPhone/iPad, go to the address z.25pp.com . In the center at the top click on the big blue button. On inquiry , answer Install. Begin downloading an alternative Chinese app store. After downloading , run it. On the second VC…