Опубликовано Stanislav Sidelnikov 04.30.2012, 09:11%
phpStorm supports jQuery very well since its 2.1 version. You just need to set it up properly and you’ll have the documentation displayed for every function. Very convinient. But if you use Yii, all phpStorm says about the jQuery functions is “have no idea”. We can fix it by simply marking /web/js/jquery.js file as plain text (right-click the file in the Project Explorer, choose “Mark as Plain text”). Well, before that, phpStorm was trying to find the documentation in that file, not in the one we specified in the settings.
Опубликовано Stanislav Sidelnikov 04.02.2012, 18:38%
I’ve spent the whole day today trying to solve the problem. A simple SELECT query executing about 3 times in a row (jQuery) leads to crash of the mysqld process. And it’s only true for executing it from the php script:
$limit = 10; $s = OutputProcessing::encodeString($term); $query = "SELECT name label, name value, id id FROM items_base_description WHERE name LIKE '%$s%' LIMIT 0, $limit"; $result = mysql_query($query, $connection) or die(mysql_error($connection) . "\n" . $query);
The reason was that I didn’t add an index to the ‘name’ field. After adding the index, everything worked fine. BTW, I use PHP 5.3.3 and MySQL 5.1 for development environment.
Опубликовано Stanislav Sidelnikov 10.19.2011, 09:50%
Sorry, this entry is only available in Русский.
Опубликовано Stanislav Sidelnikov 09.30.2011, 12:37%
Sorry, this entry is only available in Русский.
Опубликовано Stanislav Sidelnikov 09.23.2011, 11:48%
Sorry, this entry is only available in Русский.
Опубликовано Stanislav Sidelnikov 09.09.2011, 00:46%
I recently had to create a custom 404 Error Page in my ASP.NET MVC project. I thought I would do that in minutes. 6 hours later I found 2 ways to solving the problem. Читать дальше »
Опубликовано Stanislav Sidelnikov 08.26.2011, 19:27%
Sorry, this entry is only available in Русский.
Опубликовано Stanislav Sidelnikov 08.26.2011, 09:55%
Sorry, this entry is only available in Русский.
Опубликовано Stanislav Sidelnikov 08.12.2011, 15:59%
Для позиционирования на определенной строке динамического списка нужно для свойства ТекущаяСтрока установить ссылку: Элементы.Список.ТекущаяСтрока = Ссылка; Это работает, если для списка установлен источник-таблица.
Опубликовано Stanislav Sidelnikov 06.23.2011, 09:48%
Sorry, this entry is only available in Русский.
Опубликовано Stanislav Sidelnikov 06.22.2011, 14:48%
Sorry, this entry is only available in Русский.
Опубликовано Stanislav Sidelnikov 05.20.2011, 13:03%
In the previous article I wrote about a shortage of OpenMP – it’s not supported by Visual Studio 2010 Express Edition. But we can elemenate this limitation. Читать дальше »
Опубликовано Stanislav Sidelnikov 05.19.2011, 22:02%
As a part of my diploma work, I had to find out how to develop multithreaded applications. The obvious option is developing apps based on Win32 threads (for Windows only, of course). The library is free, but not cross platform. There are also several cross platform libraries letting you develop multithreaded applications. The most wide spreaded ones are Intel TBB, OpenMP, Boost MPI.
Читать дальше »
|
|