<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>mysql &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/mysql/</link>
	<description>Feed of posts on WordPress.com tagged "mysql"</description>
	<pubDate>Tue, 24 Nov 2009 14:48:39 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Análisis Comparativo de Bases de Datos de Código Abierto vs Código Cerrado]]></title>
<link>http://comunidadvicux.wordpress.com/2009/11/24/analisis-comparativo-de-bases-de-datos-de-codigo-abierto-vs-codigo-cerrado/</link>
<pubDate>Tue, 24 Nov 2009 13:57:37 +0000</pubDate>
<dc:creator>truney</dc:creator>
<guid>http://comunidadvicux.wordpress.com/2009/11/24/analisis-comparativo-de-bases-de-datos-de-codigo-abierto-vs-codigo-cerrado/</guid>
<description><![CDATA[Hola gente!!!, aquí les dejo una monografía que encontré en la red, es un poco antigua ya que mysql ]]></description>
<content:encoded><![CDATA[Hola gente!!!, aquí les dejo una monografía que encontré en la red, es un poco antigua ya que mysql ]]></content:encoded>
</item>
<item>
<title><![CDATA[Синхронизация Drupal-сайтов с помощью migraine]]></title>
<link>http://kuroikaze85.wordpress.com/2009/11/24/%d1%81%d0%b8%d0%bd%d1%85%d1%80%d0%be%d0%bd%d0%b8%d0%b7%d0%b0%d1%86%d0%b8%d1%8f-drupal-%d1%81%d0%b0%d0%b9%d1%82%d0%be%d0%b2-%d1%81-%d0%bf%d0%be%d0%bc%d0%be%d1%89%d1%8c%d1%8e-migraine/</link>
<pubDate>Tue, 24 Nov 2009 13:26:34 +0000</pubDate>
<dc:creator>kuroikaze85</dc:creator>
<guid>http://kuroikaze85.wordpress.com/2009/11/24/%d1%81%d0%b8%d0%bd%d1%85%d1%80%d0%be%d0%bd%d0%b8%d0%b7%d0%b0%d1%86%d0%b8%d1%8f-drupal-%d1%81%d0%b0%d0%b9%d1%82%d0%be%d0%b2-%d1%81-%d0%bf%d0%be%d0%bc%d0%be%d1%89%d1%8c%d1%8e-migraine/</guid>
<description><![CDATA[Синхронизация developement и production серверов в Drupal — занятие нелёгкое. Даже в 6 версии не хва]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img src="http://kuroikaze85.wordpress.com/files/2009/11/drupal2drupal.png" alt="" title="drupal2drupal" width="127" height="54" class="alignleft size-full wp-image-231" /><br />
Синхронизация developement и production серверов в Drupal — занятие нелёгкое. Даже в 6 версии не хватает простого способа переноса и восстановления контента. В модуле CCK есть нужный функционал, но одним custom-контентом сайт обычно не ограничивается. Код модулей и ядра можно синхронизировать с помощью систем контроля версий, но что делать с базой?</p>
<p><!--more--></p>
<p>На этот счёт есть разные подходы &#8211; начиная от обновления контента руками (годится для сайтов где контента немного) до дампа+восстановления всей базы целиком. Последний способ хорош, когда большой сайт надо отзеркалить 1 в 1. Но что если нам надо только перенести контент (созданные ноды, словари, alias&#8217;ы, таблицы с контентом модулей) при этом оставив конфигурацию прежней? Например, мы пробуем различные конфигурации на dev-сервере, и хотим синхронизировать контент с production-сервером. При полном дампе наши настройки будут просто перезаписаны настройками с сервера. А если нам надо перенести изменённую и протестированную конфигурацию с developement на production?</p>
<p>Для этих целей в компании Shearer Software был написан <a href="http://shearersoftware.com/software/server-administration/migraine/">migraine</a> &#8211; небольшой python-скрипт. Он отдельно синхронизирует контент и конфигурацию, умеет находить diff-ом несоответствия в структуре таблиц и сам разбирается с таблицами, в которые данные должны вставляться инкрементно.</p>
<h2>Установка и настройка</h2>
<p>Migraine настраивается с помощью ini-файла и путём редактирования скрипта (думаю, в будущем все изменяемые опции будут перенесены в файл настроек). В ini-файле нужно указать сервер, пользователя и пароль к двум базам данных &#8211; test и production. Можно не указывать пароли, тогда migraine будет каждый раз спрашивать их при запуске. Даём скрипту права на выполнение:</p>
<pre class="brush: bash;">
chmod +x migraine.py
</pre>
<p>Создаём в каталоге с migraine папку <code>database</code> и в ней ещё две: <code>test_dump</code> и <code>prod_dump</code>. У python должны быть права на чтение и запись в эти папки.</p>
<p>После этого запускаем сам скрипт (вначале на dev-сервере):</p>
<pre class="brush: bash;">
python migraine.py --config=migraine.ini
</pre>
<p>При запуске без параметров действия migraine сохраняет backup обеих баз, после чего его можно сохранить в репозиторий на всякий случай <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Если migraine встретит незнакомые таблицы, она выведет их список на экран. После этого надо открыть скрипт migraine.py и вписать таблицы в один из четырёх разделов:</p>
<ul>
<li><code>config_tables</code>: таблицы конфигурации. Они будут скопированы с dev на production</li>
<li><code>content_tables</code>: таблицы с контентом. Будут скопированы с production на dev</li>
<li><code>temp_tables</code>: временные таблицы. Они будут проигнорированы, но в будущих версиях могут очищаться</li>
<li><code>cache_tables</code>: кеш-таблицы. Будут очищены</li>
<li><code>config_tables</code>: таблицы конфигурации. Они будут скопированы с dev на production</li>
<li><code>sequence_tables</code>: таблицы последовательностей. Они синхронизируются особым образом</li>
<li><code>ignored_tables</code>: эти таблицы будут проигнорированы, никаких действий с ними производиться не будет</li>
</ul>
<h2>Использование</h2>
<p>Чтобы перенести контент на тестовый сервер, надо запустить скрипт с ключом <code>--migrate-to-test</code>:</p>
<pre class="brush: bash;">
python migraine.py --dump-prod --config=migraine.ini
python migraine.py --migrate-to-test --config=migraine.ini
</pre>
<p>Обратите внимание, при каждом запуске надо явно указывать файл настроек. Чтобы перенести конфигурацию на production-сервер, надо запустить скрипт так:</p>
<pre class="brush: bash;">
python migraine.py --dump-test --config=migraine.ini
python migraine.py --migrate-to-prod --config=migraine.ini
</pre>
<p>Первая строка сохраняет дамп таблиц в каталог <code>database/test_dump</code> и <code>database/prod_dump</code>. Вторая обновляет базу данных из этих таблиц. Если production- и developement-сайты находятся на разных машинах, можно просто добавить эти каталоги в CVS вместе с кодом модулей.</p>
<p>В документации указано что с ключом <code>--no-action</code> migraine просто перечислит действия с базой, не выполняя их, но в последней версии этот ключ не распознаётся.</p>
<p>При синхронизации сайта использующего CCK может выдаваться сообщение о несовпадении схем базы. Это происходит от того что CCK перестраивает таблицы в соответствии с существующими в системе типами контента. Необходимо перенести настройки (а можно и контент) CCK с помощью встроенных средств самого модуля, и потом уже запускать migraine.</p>
<h2>Рекомендованный алгоритм синхронизации</h2>
<p>Сами авторы migraine рекомендуют следующий алгоритм синхронизации:</p>
<ul>
<li>Зайдите на тестовый сайт по SSH</li>
<li>Убедитесь что изменения кода и возможные апгрейды модулей зафиксированы в VCS</li>
<li>Сохраните копию базы тест-сервера командой <code>python migraine.py --dump-test</code></li>
<li>Внесите получившиеся файлы в систему контроля версий</li>
<li>Если production-сервер находится на другой машине, копируйте дамп базы туда (cvs/svn update должно быть достаточно)</li>
<li>В меню <code>Admin / Site Maintenance на production переведите сайт в режим обслуживания (Maintenance)</li>
<li>Сохраните дамп базы production командой <code>python migraine.py --dump-prod</code>. Этот дамп будет бэкапом на случай если что то пойдёт не так.</li>
<li>Если PHP-скрипты изменялись, обновите их на production-сервере из репозитория</li>
<li>Запустите <code>update.php</code> на production-сервере, если модулям необходимо изменить что нибудь в схеме таблиц для контента (это могут быть например только что установленные модули).</li>
<li>Перенесите конфигурацию на production: <code>python migraine.py --migrate-to-prod</code>. Если миграция не срабатывает из за несовпадения схем CCK, повторите на production те же действия с типами контента, что и на test, и попробуйте ещё раз).</li>
<li>Очистите кеш CSS: <code>rm /files/css/*</code></li>
<li>При желании можно опять сделать дамп базы production-сервера и закомиттить в систему контроля версий - как контрольную точку после успешной синхронизации</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Membuat database menggunakan SQL SERVER 2005]]></title>
<link>http://ankacenter.wordpress.com/2009/11/24/membuat-database-menggunakan-sql-server-2005/</link>
<pubDate>Tue, 24 Nov 2009 12:29:12 +0000</pubDate>
<dc:creator>kondesmg</dc:creator>
<guid>http://ankacenter.wordpress.com/2009/11/24/membuat-database-menggunakan-sql-server-2005/</guid>
<description><![CDATA[Pembuatan aplikasi pada toko sering menggunakan database untuk penyimpanan data, apalagi jika aplika]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Pembuatan aplikasi pada toko sering menggunakan database untuk penyimpanan data, apalagi jika aplikasi tersebut digunakan untuk warehouse atau pabrik atau rumah sakit. Database yang digunakan bermacam-macam, tergantung kebutuhan dari penggunaan aplikasi diperuntukkan, misal <a href="http://www.microsoft.com/2010/en/Basic.aspx" target="_blank">Microsoft Access</a>, <a href="http://www.mysql.com" target="_blank">MySQL</a>, <a href="http://www.microsoft.com/sqlserver/2008/en/us/default.aspx" target="_blank">SQL Server</a>, <a href="www.ibm.com/db2" target="_blank">IBM Database</a>, dll. Untuk penggunaan database dengan kapasitas besar lebih disarankan menggunakan SQL Server atau IBM Database karena penggunaannya lebih stabil dan aman.</p>
<p>SQL Server (versi berapapun) bisa digunakan untuk menghandle data dengan kapasitas besar tapi untuk penggunaan yang lebih safety SQL Server untuk diupdate sesuai kemampuan komputer atau isi kantong anda <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>Untuk Tutorial membuat database tunggu edisi selanjutnya <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> .</p>
<p>&#160;</p>
<p>Best Regards</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Connecting Sphinx with MySQL]]></title>
<link>http://ushasriit.wordpress.com/2009/11/24/connecting-sphinx-with-lamp-server/</link>
<pubDate>Tue, 24 Nov 2009 11:24:07 +0000</pubDate>
<dc:creator>ushasriit</dc:creator>
<guid>http://ushasriit.wordpress.com/2009/11/24/connecting-sphinx-with-lamp-server/</guid>
<description><![CDATA[I have done this in Fedora First download sphinx and put that folder it in some location( as i kept ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have done this in Fedora</p>
<p>First download sphinx and put that folder it in some location( as i kept in Computer/File system/usr/sphinx)</p>
<p>For installation follow the steps:</p>
<p>- open the terminal window and add the command like this</p>
<p>$ cd  /usr</p>
<p>$ cd sphinx</p>
<p>$ ./configure &#8211;with-mysql  (for configure MySql with sphinx search engine)</p>
<p>- Now install mysql-devel package that contains the libraries and header files for developing  Mysql client application</p>
<p>For fedora &#8211;  $ yum install mysql-devel</p>
<p>For ubuntu &#8211;  $ apt-get install mysql-devel</p>
<p>-  Then give the command</p>
<p>$ make</p>
<p>$ make install</p>
<p>Finally sphinx has been installed</p>
<p>- Open sphinx folder and create a file with the name sphinx.conf  and it will have content like this</p>
<p>source book<br />
{<br />
type            = mysql<br />
sql_sock        =/opt/lampp/var/mysql/mysql.sock<br />
sql_host        = localhost<br />
sql_user        = root<br />
sql_pass        =<br />
sql_db          = library<br />
sql_port        = 3306<br />
sql_query       = SELECT id, title, summary, author library_book<br />
sql_query_info  = SELECT * FROM library_book<br />
}</p>
<p>index book<br />
{<br />
source          = book<br />
path            = data/book<br />
docinfo         = extern<br />
charset_type    = sbcs<br />
}</p>
<p>indexer<br />
{<br />
mem_limit       = 32M<br />
}</p>
<p>searchd<br />
{<br />
port            = 3312<br />
log             = log/searchd.log<br />
query_log       = log/query.log<br />
read_timeout    = 5<br />
max_children    = 30<br />
pid_file        = log/searchd.pid<br />
max_matches     = 1000<br />
}</p>
<p>- In the above code library is the database which has to be created in the Mysql and</p>
<p>library_book is a table in library database.</p>
<p>- sql_sock        =/opt/lampp/var/mysql/mysql.sock</p>
<p>Check out for the mysql.sock in your system and paste the location in sphinx.conf file. This makes the main connection between Mysql and sphinx</p>
<p>- Create another two more folders data and log inside the sphinx folder. The datas added in the table is automatically updated in data folder.</p>
<p>You can search the records by giving the search command in the terminal window</p>
<p>eg :  $ search java</p>
<p>It will display the list of records containing the word java</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sesiune Chat]]></title>
<link>http://muzeuupb.wordpress.com/2009/11/24/sesiune-chat/</link>
<pubDate>Tue, 24 Nov 2009 10:41:38 +0000</pubDate>
<dc:creator>Mihai Mircea</dc:creator>
<guid>http://muzeuupb.wordpress.com/2009/11/24/sesiune-chat/</guid>
<description><![CDATA[Am ţinut acum două zile o sesiune pe ConcertChat cu privire la abordările tehnice pe care le-am folo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Am ţinut acum două zile o sesiune pe ConcertChat cu privire la abordările tehnice pe care le-am folosit atât noi, cât şi celelalte 3 echipe cu care am discutat. Din partea noastră a participat responsabilul pe probleme tehnice, George Neagoe, iar din partea celorlalte echipe au participat, după cum urmează: </p>
<ul>
<li>Mihai Dumitrescu &#8211; echipa <a href="http://centralmallro.wordpress.com">Backwards IOC</a></li>
<li>Simona Posea &#8211; echipa <a href="http://pow3rpuffgirls.wordpress.com/">Powerpuff Girls</a></li>
<li>Maria Dumbravă &#8211; echipa <a href="http://fantastic4ioc.wordpress.com/">ITea</a></li>
</ul>
<p>Un prim subiect abordat a fost gestiunea tipurilor de utilizatori care vor putea vizita site-ul şi ce va putea face fiecare tip în parte. Opţiunea aleasă de noi a fost să împărţim în două mari categorii utilizatorii, anume administratori şi vizitatori. Un administrator are dreptul de a adăuga imagini cu exponate, de a adăuga/şterge colecţii, de a adăuga pagini noi pe site sau de a le modifica pe cele existente, etc. Un vizitator poate să vizualizeze tot content-ul site-ului (orice exponat din orice colecţie, istoric, pagini) şi poate lăsa mesaje text care vor fi stocate în baza de date, urmând să fie analizate de administrator.</p>
<p>Altă problemă importantă dezbătută a fost motivarea alegerilor făcute în ceea ce priveşte tehnologiile utilizate până acum în realizarea site-ului. Aici părerile au avut multe în comun, însă au existat şi anumite păreri contradictorii. De exemplu, echipa Backwards IOC a ales să folosească Joomla (un CMS gratuit şi foarte folosit peste tot în lume) pe când celelate echipe au folosit în special PHP şi MySQL. Nu se poate spune că o anumită alegere este mai <em>bună</em>, chiar dimpotrivă, având în vedere specificul destul de diferit ale site-urilor. O altă motivaţie pentru utilizarea Joomla a fost şi uşurinţa de folosire precum şi structurarea inteligentă, tool-uri care pot fi folosite fără a avea o bază solidă de cunoştinţe PHP şi MySQL.</p>
<p>Fiecare echipă şi-a prezentat părţile dinamice ale site-urilor, precum şi o listă completă a tehnologiilor folosite. Două dintre echipe, a noastră şi Backwards IOC au integrat un tur virtual, creat în Flash, ambele fiind de acord că mult mai indicat ar fi să îl realizeze 2D, deoarece implică mai puţină muncă pentru a-l face să arate bine. Ne menţinem însă opţinuea de a lucra la un tur 3D, în caz ca timpul o va permite.<br />
Pentru mai multe detalii legate de ce s-a discutat, <a href="http://ltfll-lin.code.ro:11080/concertChat/roomContent.jsp?channelID=PG-FI-TH-BI-E3"><b>aici</b></a> puteţi vedea conversaţia integrală.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mysql tips]]></title>
<link>http://nguyenhoaiphuong.wordpress.com/2009/11/24/mysql-tips/</link>
<pubDate>Tue, 24 Nov 2009 09:57:38 +0000</pubDate>
<dc:creator>banananguyen</dc:creator>
<guid>http://nguyenhoaiphuong.wordpress.com/2009/11/24/mysql-tips/</guid>
<description><![CDATA[1. IF statement I have this table: tbl_1 Type     Value x              1 x              2 y         ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>1. IF statement</p>
<p>I have this</p>
<div id="EchoTopic">table: tbl_1</p>
<p>Type     Value<br />
x              1<br />
x              2<br />
y              1<br />
z              0<br />
x              3<br />
y              1</p>
<p>I&#8217;d like to get the average of Value when Type = x in one sql query.</p>
<p>I tried this: SELECT IF(Type=&#8217;x', AVG(Value), 0) FROM tbl_1</p>
<p>The result I want is: 2   [= (1+2+3)/3]</p></div>
<blockquote><p>SELECT<br />
AVG(IF(Type=&#8217;x', Value, NULL))<br />
SUM(IF(Type=&#8217;y', Value, NULL))<br />
FROM tbl_1;</p></blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Install LAMP on UBUNTU]]></title>
<link>http://sanhom.wordpress.com/2009/11/24/install-lamp-on-ubuntu/</link>
<pubDate>Tue, 24 Nov 2009 06:38:11 +0000</pubDate>
<dc:creator>sanhom</dc:creator>
<guid>http://sanhom.wordpress.com/2009/11/24/install-lamp-on-ubuntu/</guid>
<description><![CDATA[Title: Install LAMP on UBUNTU command $apt-get install apache2 php5 libapache2-mod-php5 libapache2-m]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Title: Install LAMP on UBUNTU</p>
<p>command<br />
$apt-get install apache2 php5 libapache2-mod-php5 libapache2-mod-php5<br />
$apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP - MySQL Working with UTF-8]]></title>
<link>http://drenganathan.wordpress.com/2009/11/24/php-mysql-working-with-utf-8/</link>
<pubDate>Tue, 24 Nov 2009 04:15:20 +0000</pubDate>
<dc:creator>Renga</dc:creator>
<guid>http://drenganathan.wordpress.com/2009/11/24/php-mysql-working-with-utf-8/</guid>
<description><![CDATA[Heres a list of actions you should do in order to get PHP + MySQL working with UTF-8: 1. Database: C]]></description>
<content:encoded><![CDATA[Heres a list of actions you should do in order to get PHP + MySQL working with UTF-8: 1. Database: C]]></content:encoded>
</item>
<item>
<title><![CDATA[Conactar MySQL en C]]></title>
<link>http://ubuntuparatodos.wordpress.com/2009/11/23/conactar-mysql-en-c/</link>
<pubDate>Tue, 24 Nov 2009 01:05:44 +0000</pubDate>
<dc:creator>leonciokof</dc:creator>
<guid>http://ubuntuparatodos.wordpress.com/2009/11/23/conactar-mysql-en-c/</guid>
<description><![CDATA[En este tutorial vamos a aprender a como crear una conexión con una Base de Datos en MySQL en lengua]]></description>
<content:encoded><![CDATA[En este tutorial vamos a aprender a como crear una conexión con una Base de Datos en MySQL en lengua]]></content:encoded>
</item>
<item>
<title><![CDATA[Novos serviços cloud disponíveis na BSRSoft]]></title>
<link>http://bsrsoft.wordpress.com/2009/11/23/novos-servicos-cloud-disponiveis-na-bsrsoft/</link>
<pubDate>Tue, 24 Nov 2009 00:03:41 +0000</pubDate>
<dc:creator>BSRSoft IDC</dc:creator>
<guid>http://bsrsoft.wordpress.com/2009/11/23/novos-servicos-cloud-disponiveis-na-bsrsoft/</guid>
<description><![CDATA[Acabamos de disponibilizar diversos novos serviços em nosso segmento de cloud computing (computação ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:justify;">Acabamos de disponibilizar diversos novos serviços em nosso segmento de cloud computing (computação em nuvem) em nosso portal.</p>
<p style="text-align:justify;">Todos eles estão relacionados a bancos de dados.</p>
<p style="text-align:justify;">Já contávamos com o MySQL Cloud e agora oferecemos serviços Postgres Cloud e Oracle DB Cloud (versão 10g).</p>
<p style="text-align:justify;">Com essas opções, cobruimos praticamente todo o espectro de aplicações que precisam de bancos de dados para funções desde controle de um simples site até aplicações empresariais com grande quantidade de transações e necessidade de alta escalabilidade, alta estabilidade e velocidade, além de granualaridade em configurações.</p>
<p style="text-align:justify;">Todos estes serviços rodam em nossos cluster especializados em bancos de dados, especialmente otimizados para tarefas que envolvem grande quantidade de IO de disco (usamos RAID 5 SCSI), grande quantidade de memória em cada nó e enorme poder de processamento.</p>
<p style="text-align:justify;">Somos capazes hoje, de atender a grandes exigências do mercado corporativo, a custos baixos, aproveitando todo o ganho de escala que a computação em nuvem proporciona.</p>
<p style="text-align:justify;">Alta velocidade na entrega de serviços contratados neste cluster , agilidade na escalabilidade e baixa latência de conexão são outros diferenciais que somos capazes de oferecer dentro de nossa infraestrutura.</p>
<p style="text-align:justify;">Nosso produtos de DB na nuvem agora são:</p>
<ul style="text-align:justify;">
<li>MySQL 5 Cloud</li>
<li>PostgreSQL Cloud</li>
<li>Oracle 10g Cloud
<p>Mais dados sobre estes serviços e informações para contratação instantânea em:</li>
</ul>
<p style="text-align:justify;"><a href="http://shop.bsrsoft.com.br/category.php?id_category=15" target="_blank">http://shop.bsrsoft.com.br/category.php?id_category=15</a></p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ruby On Rails running threads &amp; MySQL silently stops updating after 5 transactions]]></title>
<link>http://philostler.wordpress.com/2009/11/24/ruby-on-rails-running-threads-mysql-silently-stops-updating-after-5-transactions/</link>
<pubDate>Mon, 23 Nov 2009 23:58:02 +0000</pubDate>
<dc:creator>Phil Ostler</dc:creator>
<guid>http://philostler.wordpress.com/2009/11/24/ruby-on-rails-running-threads-mysql-silently-stops-updating-after-5-transactions/</guid>
<description><![CDATA[In my current Ruby n Rails project, the focus of work is to periodically update database entries fro]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In my current Ruby n Rails project, the focus of work is to periodically update database entries from XML feeds.</p>
<p>Naturally I&#8217;ve implemented a threading system using the rufus-scheduler gem for updating database entries every so many minutes. However I soon noticed that after running on the development enviroment with 1 minute intervals on updates, that the updating of the<strong> </strong><em>last updated time</em> column in the db suddenly stopped after about 5 iterations. No error, warnings or other signals (smoke or otherwise).</p>
<p>After a bit of head scratching I finally managed to mentally link the 5 iterations to the pool number setting in the database.yml file. Executing my database updates within the thread job was stopping Rails from cleaning up the unrequired connections (for whatever reason. I suspect this is because the thread is sent back to sleep before this can occur).</p>
<p>So the solution is to simply call the cleanup manually via&#8230;</p>
<p><code><strong>ActiveRecord::Base.connection_pool.clear_stale_cached_connections!</strong></code></p>
<p>&#8230; at the end of every job execution run. Problem sorted!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PHP şi alte asemenea]]></title>
<link>http://betyourmom.wordpress.com/2009/11/24/php-si-alte-asemenea/</link>
<pubDate>Mon, 23 Nov 2009 22:00:46 +0000</pubDate>
<dc:creator>ajanca</dc:creator>
<guid>http://betyourmom.wordpress.com/2009/11/24/php-si-alte-asemenea/</guid>
<description><![CDATA[Deoarece vorbim despre un site de pariuri, este normal ca interfaţa să asigure facilităţi orientate ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Deoarece vorbim despre un site de pariuri, este normal ca interfaţa să asigure facilităţi orientate utilizator precum  : posibilitatea utilizatorului de a vedea istoria pariurilor jucate până acum, de a vedea ce pariuri a propus (să nu uităm de pariurile speciale ce se pot face pe acest site!) şi ce mize au fost jucate pe respectivele pariuri. De asemenea, pentru simplitate, userul trebuie să aibă opţiunea de a pune în cont o sumă dorită şi de a paria folosind acei bani, decât să trimită bani pentru fiecare pariu.</p>
<p>Toate aceste lucruri duc evident la nevoie de a implementa o structură bazată pe conturi, în care un utilizator trebuie să se înregistreze pe site pentru a putea beneficia de toate aceste facilităţi. În primă fază noi am implementat cele două module esenţiale pentru acest mecanism, şi anume interfaţa de autentificare (pentru cei care au cont deja) şi interfaţa de înregistrare. Pentru acestea este nevoie de programare server-side, pentru care noi am ales limbajul PHP (<strong>P</strong>HP: <strong>H</strong>yperText  <strong>P</strong>repocessor).</p>
<p>Datele sunt preluate de la utilizator printr-un formular şi sunt salvate într-o bază de date. Ca sistem de gestiune a bazelor de date am ales <strong>MySQL</strong>, PHP având deja funcţii care pot interacţiona cu un astfel de server.</p>
<p>În principiu , realizarea acestor două formulare nu ridică probleme. Totuşi , programarea server-side are nişte restricţii despre care merită să vorbim puţin. În mod normal, un formular de înregistrare ar fi structurat astfel : o pagină în care se introduc datele, o pagină care conţine scriptul PHP ce prelucrează datele şi o pagină la care ar trebui să fie redirectat utilizatorul după ce s-a înregistrat (nu are sens să rămână pe pagina cu formularul de înscriere) .De asemenea,reamintim că protocolul HTTP se bazează pe cereri : clientul (browserul) cere o anumită pagină , de la o locaţie specificată şi serverul trimite răspunsul în format HTML. Dacă pagina conţine cod PHP, acesta va fi interpretat (de server) şi eventualul output al acestui cod va fi adăugat la conţinutul paginii ce va trimis clientului ca răspuns.</p>
<p>HTTP este un protocol stateless, adică nu există un context al cererilor. Ele sunt independente, nu se salvează informaţii de la o cerere la alta. De asemenea, în cadrul unei cereri nu se poate solicita decât o singură pagină. Asupra acestei proprietăţi vom mai reveni, dar momentan este important să o menţionăm.</p>
<p>Pagina în care se află scriptul este cerută de browser când au fost introduse datele , de obicei prin apasărea unui buton , şi tot scriptul va efectua şi redirectarea. Pentru a efectua o redirectare, serverul nu trebuie să fi trimis output HTML ca răspuns la cererea curentă. De aceea, scriptul de PHP se va afla într-o pagină separată. În cazul nostru, tot procesul de autentificare se face într-o singură pagină,ceea ce complică puţin lucrurile. Inevitabil, serverul a trimis deja o parte din output şi nu mai poate trimite altă pagină ca răspuns. Soluţia noastră a fost redirectarea folosind o tehnologie client-side, şi anume <strong>JavaScript</strong>.</p>
<p>O altă problemă, despre care probabil că vom mai discuta când vom vorbi despre securitatea site-ului, este cea a modului în care sunt preluate datele de către scripturile PHP. Este preluat şirul de caractere introdus de utilizator şi concatenat cu alte şiruri pentru a forma o comandă SQL (ex: introduce userul &#8220;sebaNU&#8221; in baza de date &#8211; &#8220;sebaNU&#8221; este textul introdus de utilizator). Dacă utilizatorul ştie să profite de acest lucru, prin datele introduse poate crea o comandă SQL cu efecte nedorite pentru noi <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Acest lucu poarta numele de <strong>SQL Injection</strong> şi poate fi evitat prin trecerea şirului de caractere introdus printr-un filtru care să alăture un escape character fiecărui caracter special din SQL. Noi am implementat această funcţionalitate, folosind o funcţie din PHP.</p>
<p>Închid aici menţionând că orice întrebare,completare sau informaţie legată de cele de mai sus este binevenită.</p>
<p>P.S. Am strecurat nişte surprize pentru Seba. Cine le găseşte primeşte 5000 coins la crearea contului <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[utilites: backup-manager]]></title>
<link>http://guruway.wordpress.com/2009/11/23/utilites-backup-manager/</link>
<pubDate>Mon, 23 Nov 2009 16:55:08 +0000</pubDate>
<dc:creator>guruway</dc:creator>
<guid>http://guruway.wordpress.com/2009/11/23/utilites-backup-manager/</guid>
<description><![CDATA[apt-get install backup-manager // ставим бэкап-менеджер nano nano /etc/backup-manager.conf // редакт]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>apt-get install backup-manager</strong> // ставим бэкап-менеджер<br />
<strong>nano nano /etc/backup-manager.conf</strong> // редактируем конфиг<br />
<strong>export BM_REPOSITORY_ROOT= &#8220;/backups&#8221;</strong> // указываю каталог куда бэкапить<br />
<strong>export BM_TEMP_DIR= &#8220;/backups/tmp&#8221;</strong> // временный каталог, как понимаю это куда будут падать файлы, до сжатия<br />
<strong>export BM_REPOSITORY_USER= &#8220;root&#8221;</strong> // настраиваем права на каталог с бэкапами<br />
<strong>export BM_REPOSITORY_GROUP= &#8220;root&#8221;</strong><br />
<strong>export BM_REPOSITORY_CHMOD= &#8220;770&#8243;</strong><br />
<strong>export BM_ARCHIVE_NICE_LEVEL= &#8220;10&#8243;</strong> // приоритет процесса  по сути nice -n 10<br />
<strong>export BM_ARCHIVE_METHOD= &#8220;tarball-incremental&#8221;</strong> // тип архива<br />
<strong>export BM_ENCRYPTION_METHOD= &#8220;false&#8221;</strong> // метод шифрации архива, отрубаем ибо не надо.<br />
<strong>export BM_TARBALL_FILETYPE= &#8220;tar.bz2&#8243;</strong> // формат архивации<br />
<strong>export BM_TARBALL_DIRECTORIES= &#8220;/&#8221;</strong> // каталоги которые будем бэкапить к примеру &#8220;/etc /var/log&#8221;, но мне надо корень.<br />
<strong>export BM_TARBALL_BLACKLIST= &#8220;/backups&#8221;</strong> // указываем что пропустить при бэкапинге, я пропустил каталог с бэкапами.<br />
<strong>export BM_TARBALLINC_MASTERDATETYPE= &#8220;weekly&#8221;</strong> // частота бэкапа, еженедельно или ежемесячно.<br />
<strong>export BM_TARBALLINC_MASTERDATEVALUE= &#8220;7&#8243;</strong> // день недели для бэкапа.<br />
<strong>export BM_MYSQL_DATABASES= &#8220;__ALL__&#8221;</strong> // тут идет бэкап mysql баз данных, перечисляем какие.<br />
<strong>export BM_MYSQL_ADMINLOGIN= &#8220;root&#8221;</strong> // юзер от которого бэкапим.<br />
<strong>export BM_MYSQL_ADMINPASS= &#8220;&#8221;</strong> // пасс юзера<br />
<strong>export BM_MYSQL_FILETYPE= &#8220;bzip2&#8243;</strong> // вид архивов<br />
<strong>export BM_UPLOAD_METHOD= &#8220;none&#8221;</strong> // указываем тип аплоада бэкапа, я ставлю none &#8211; мне никуда не надо его заливать.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[utilites: automysqlbackup]]></title>
<link>http://guruway.wordpress.com/2009/11/23/utilites-automysqlbackup/</link>
<pubDate>Mon, 23 Nov 2009 16:35:24 +0000</pubDate>
<dc:creator>guruway</dc:creator>
<guid>http://guruway.wordpress.com/2009/11/23/utilites-automysqlbackup/</guid>
<description><![CDATA[apt-get install automysqlbackup // устанавливаем бэкапилку для мускуля. nano /etc/default/automysqlb]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>apt-get install automysqlbackup</strong> // устанавливаем бэкапилку для мускуля.<br />
<strong>nano /etc/default/automysqlbackup</strong> // редактируем основной конфигурационный файл<br />
<strong>USERNAME=root</strong> // указываем имя юзера от которого бэкапим бд<br />
<strong>PASSWORD=тут_пишем_пасс</strong> // password этого юзера<br />
<strong>BACKUPDIR= &#8220;/backups/mysql&#8221;</strong> // указываем директурию куда будут падать бэкапы<br />
Далее можно настроить отправку логов на мыло<br />
<strong>MAILCONTENT= &#8220;quiet&#8221;</strong> // может быть log &#8211; только лог шлется, files &#8211; шлются лог и sql-файлы, stdout &#8211; вываливает логи на экран и quiet &#8211; шлет на мыло только логи с ошибками.<br />
<strong>MAILADDR= &#8220;root&#8221;</strong> // указываем адрес куда будут слаться логи в данном случае юзеру root, если настроен MTA, то можно указать реальный email-адрес.<br />
<strong>MDBNAMES= &#8220;mysql $DBNAMES&#8221;</strong> // имена бд которые надо сбэкапить<br />
<strong>DBEXCLUDE= &#8220;&#8221;</strong> // имена бд которые НЕ надо бэкапить<br />
<strong>CREATE_DATABASE=yes</strong> // включить ли фун-ию CREATE DATABASE в бэкап, лучше &#8211; ДА<br />
<strong>DOWEEKLY=6</strong> // в какой день недели делать бэкап<br />
<strong>COMP=gzip</strong> // выбираем сжатие gzip или bzip2</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Use MySQL to Create CSV Files]]></title>
<link>http://laneshill.wordpress.com/2009/11/23/use-mysql-to-create-csv-files/</link>
<pubDate>Mon, 23 Nov 2009 16:19:23 +0000</pubDate>
<dc:creator>laneshill</dc:creator>
<guid>http://laneshill.wordpress.com/2009/11/23/use-mysql-to-create-csv-files/</guid>
<description><![CDATA[At my job, often we have to do reports.  These dreaded CSV files are usually approached with a mix o]]></description>
<content:encoded><![CDATA[At my job, often we have to do reports.  These dreaded CSV files are usually approached with a mix o]]></content:encoded>
</item>
<item>
<title><![CDATA[Truco del día: deshabilitar innodb engine en mysql]]></title>
<link>http://flossblog.wordpress.com/2009/11/23/truco-del-dia-deshabilitar-innodb-engine-en-mysql/</link>
<pubDate>Mon, 23 Nov 2009 15:12:55 +0000</pubDate>
<dc:creator>sedlav</dc:creator>
<guid>http://flossblog.wordpress.com/2009/11/23/truco-del-dia-deshabilitar-innodb-engine-en-mysql/</guid>
<description><![CDATA[Para deshabilitar un engine (motor de almacenamiento) en mysql debemos: Editar el fichero my.cnf # v]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div style="line-height:172%;font-size:11px;">
<p>Para deshabilitar un engine (motor de almacenamiento) en mysql debemos:</p>
<h5>Editar el fichero my.cnf</h5>
<pre style="border:1px dashed rgb(204,204,204);background-color:rgb(244,245,247);font-family:monospace;margin:5px 0;padding:8px 12px 8px 10px;">
# vim /etc/my.cnf
</pre>
<h5>Agregar al fichero</h5>
<pre style="border:1px dashed rgb(204,204,204);background-color:rgb(244,245,247);font-family:monospace;margin:5px 0;padding:8px 12px 8px 10px;">
skip-nombre-del-engine
</pre>
<h5>Por ejemplo, para deshabilitar innodb agregamos al fichero</h5>
<pre style="border:1px dashed rgb(204,204,204);background-color:rgb(244,245,247);font-family:monospace;margin:5px 0;padding:8px 12px 8px 10px;">
skip-innodb
</pre>
<h5>Reiniciar el servidor mysql</h5>
<p>CentOS / Fedora / RHEL</p>
<pre style="border:1px dashed rgb(204,204,204);background-color:rgb(244,245,247);font-family:monospace;margin:5px 0;padding:8px 12px 8px 10px;">
# service mysqld restart
</pre>
<p>Debian, Ubuntu, Otras distros</p>
<pre style="border:1px dashed rgb(204,204,204);background-color:rgb(244,245,247);font-family:monospace;margin:5px 0;padding:8px 12px 8px 10px;">
# /etc/init.d/mysqld restart
</pre>
<h5>Obtener información sobre los engines</h5>
<pre style="border:1px dashed rgb(204,204,204);background-color:rgb(244,245,247);font-family:monospace;margin:5px 0;padding:8px 12px 8px 10px;">
# mysql -u root -p -e 'show engines;'
</pre>
<p>El comando anterior mostraría:</p>
<p><a style="border:none;" target="_blank" href="http://flossblog.wordpress.com/files/2009/11/engine.png"><img src="http://flossblog.wordpress.com/files/2009/11/engine.png" alt="Mysql engines" title="MySql engines" width="500" height="185" class="alignnone size-full wp-image-272" /></a>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Database engines in MySQL. MyISAM and InnoDB]]></title>
<link>http://phpwala.wordpress.com/2009/11/23/database-engines-in-mysql-myisam-and-innodb/</link>
<pubDate>Mon, 23 Nov 2009 14:39:33 +0000</pubDate>
<dc:creator>Hitesh Mathpal</dc:creator>
<guid>http://phpwala.wordpress.com/2009/11/23/database-engines-in-mysql-myisam-and-innodb/</guid>
<description><![CDATA[What is a Database Engine? A database engine is basically a software layer in every DBMS that create]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>What is a Database Engine? </strong><br />
<em>A database engine is basically a software layer in every DBMS that creates table, updates them and retrieves information from them. </em>  Since data and database may be of different natures MySQL DBMS provides several kinds of DBMS engines. We discuss  two of them, that are most popular-   </p>
<p><strong>1)MyISAM   </strong>      </p>
<p>MyISAM is the default database engine of MySQL, that is based on ISAM (Index Sequential Access Method). ISAM was developed by IBM for fast retrieval of data in Mainframe Computers. MyISAM is fast in data access and supports full text searching.   The limitation of this is, MyISAM is not suitable for transactional tables or it does not support foreign key constraints. (i.e. referential integrities). This is poor in crash recovery also.                 MyISAM locks the table until the operation is not complete. For example if you are inserting a row, the next operation say ‘updating of row ‘will wait until the first finishes.   </p>
<p> <strong>2) InnoDB  </strong>          </p>
<p> InnoDB  is more safe database engine of MySQL. InnoDB is good for transactional tables. It supports foreign key constraints. COMMIT, ROLLBACK sort of operations can be performed in this engine. Crash recovery is more easy in this. This stores data in clustered indexes (Storing the rows in primary key order while<em> MyISAM stores the rows as they added</em>).      InnoDB is designed for large volume of data for high performance. This is also good for multi-user concurrency.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Redmine Database Backup to S3, Periodically]]></title>
<link>http://cloudbuzz.wordpress.com/2009/11/23/redmine-database-backup-to-s3-periodically/</link>
<pubDate>Mon, 23 Nov 2009 10:01:44 +0000</pubDate>
<dc:creator>samof76</dc:creator>
<guid>http://cloudbuzz.wordpress.com/2009/11/23/redmine-database-backup-to-s3-periodically/</guid>
<description><![CDATA[Someone somewhere has alreaddy done this. But its fun doing it your way and more fun when you blog(b]]></description>
<content:encoded><![CDATA[Someone somewhere has alreaddy done this. But its fun doing it your way and more fun when you blog(b]]></content:encoded>
</item>
<item>
<title><![CDATA[Asterisk CDR in MySQL]]></title>
<link>http://sysbrain.wordpress.com/2009/11/23/asterisk-cdr-in-mysql/</link>
<pubDate>Mon, 23 Nov 2009 08:35:11 +0000</pubDate>
<dc:creator>Jabi</dc:creator>
<guid>http://sysbrain.wordpress.com/2009/11/23/asterisk-cdr-in-mysql/</guid>
<description><![CDATA[Install Mysql Server and MysqlClient apt-get install php5-mysql mysql-client-5.0 mysql-client libmys]]></description>
<content:encoded><![CDATA[Install Mysql Server and MysqlClient apt-get install php5-mysql mysql-client-5.0 mysql-client libmys]]></content:encoded>
</item>
<item>
<title><![CDATA[Reseting Password For Mysql]]></title>
<link>http://mathivananpalanivel.wordpress.com/2009/11/23/reseting-password-for-mysql/</link>
<pubDate>Mon, 23 Nov 2009 07:12:35 +0000</pubDate>
<dc:creator>Mathivanan</dc:creator>
<guid>http://mathivananpalanivel.wordpress.com/2009/11/23/reseting-password-for-mysql/</guid>
<description><![CDATA[UPDATE user SET Password=PASSWORD(’newrootpassword’) WHERE User=’root’; FLUSH PRIVILEGES; Note:Type ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p> UPDATE user SET Password=PASSWORD(’newrootpassword’) WHERE User=’root’;<br />
FLUSH PRIVILEGES;</p>
<p>Note:Type Your Password in place of newrootpassword</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Soluții tehnice]]></title>
<link>http://centralmallro.wordpress.com/2009/11/23/solu%c8%9bii-tehnice/</link>
<pubDate>Mon, 23 Nov 2009 02:02:26 +0000</pubDate>
<dc:creator>mihaidumitrescu</dc:creator>
<guid>http://centralmallro.wordpress.com/2009/11/23/solu%c8%9bii-tehnice/</guid>
<description><![CDATA[Acum câteva ore am participat la o sesiune de chat alături de managerii altor trei echipe și am disc]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div>
<div>
<p>Acum câteva ore am participat la o sesiune de chat alături de managerii altor trei echipe și am discutat despre tehnologiile pe care le-am utilizat fiecare în realizarea proiectului sau ce tehnologii am dori să utilizăm pe viitor.</p>
<p>Am purtat această discuție alături de:</p>
<ul>
<li><strong>Simona Posea</strong> (alias Blossom) – managerul echipei <em>PowerpuffGirls<strong> </strong></em></li>
<li><strong>George Neagoe </strong> – responsabilul tehnic al echipei <em>Muzeu Upb</em></li>
<li><strong>Dumbrava Maria</strong> – managerul echipei <em>ITea</em></li>
<p><em><br />
</em></ul>
<p>Am căzut de acord că tehnologiile folosite sau pe care am dori să le utilizăm mai târziu sunt:</p>
<ul>
<li><strong>php+mysql</strong></li>
<li><strong>javascript</strong></li>
<li><strong>Flash</strong></li>
<li><strong>XML</strong></li>
</ul>
<p>Am rămas plăcut impresionat de colegii mei deorece sunt foarte muncitori și și-au facut siteurile de la zero spre deosebire de echipa mea leneșă care am preluat o infrastructură deja existentă și am modelat-o după cum am dorit. Așa ca doar atât vreau să spun: <em>BRAVO LOR</em> !</p>
<p>Discuția nu s-a rezumat doar la cele prezentate mai sus.</p>
<p>Transcript-ul complet al conversației poate fi găsiti <a href="http://ltfll-lin.code.ro:11080/concertChat/roomContent.jsp?channelID=PG-FI-TH-BI-E3">aici</a></p>
</div>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Environment Consistency - MySQL (Apple Macintosh)]]></title>
<link>http://devinj2ee.wordpress.com/2009/11/22/environment-consistency-mysql/</link>
<pubDate>Mon, 23 Nov 2009 01:22:40 +0000</pubDate>
<dc:creator>Thomas Campbell</dc:creator>
<guid>http://devinj2ee.wordpress.com/2009/11/22/environment-consistency-mysql/</guid>
<description><![CDATA[We need to make our life easier by creating consistency for every machine. What this means is every ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>We need to make our life easier by creating consistency for every machine. What this means is every machine you try to use, whether it be yours or your colleagues, the environment will be the same when you sit down to help them with something. This is very important if you’re a Development Manager and you’re trying to help one of your staff.</p>
<p>This is one of several <a title="Environment Consistency" href="http://wp.me/pED03-D" target="_blank">posts</a> in regards to this subject.</p>
<p>I really don&#8217;t use MySQL too much.  At work, I have Oracle and Sybase.  But I think I&#8217;m going to use it in the example code that I post later.  Because we&#8217;ll be using Hibernate, for the most part, it really doesn&#8217;t matter.  Hibernate hides the nuances of each type of database from us (for the most part).  Anyway, the real reason has to do with our <a title="Environment Consistency - PHP (Apple Macintosh)" href="http://wp.me/pED03-3o" target="_self">earlier PHP post</a> and a post about WordPress that I&#8217;ll be making later.  So, here we&#8217;re going to install MySQL.</p>
<p>Here we&#8217;re going to install MySQL for the Macintosh.  We&#8217;ll go back and do it for Windows in a later post.</p>
<p>First off, we need the binary.  We&#8217;ll go to the <a title="MySQL Website" href="http://dev.mysql.com/downloads/" target="_blank">MySQL website</a> to download the 5.1 MySQL version file called &#8220;mysql-5.1.41-osx10.5-x86.dmg&#8221;.  After we&#8217;ve gotten that downloaded double click it and we&#8217;ll see this window after the image has been mounted:</p>
<div id="attachment_268" class="wp-caption aligncenter" style="width: 695px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-22-at-12-21-04-pm.png"><img class="size-full wp-image-268" title="Mounted MySQL Package" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-22-at-12-21-04-pm.png" alt="Mounted MySQL Package" width="685" height="171" /></a><p class="wp-caption-text">Mounted MySQL Package</p></div>
<p>Now click on the icon for &#8220;mysql-5.1.41-osx10.5-x86.pkg&#8221; and you should see this window:</p>
<div id="attachment_250" class="wp-caption aligncenter" style="width: 632px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-35-48-pm.png"><img class="size-full wp-image-250" title="MySQL 5.1.41 Installer Welcome Screen" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-35-48-pm.png" alt="MySQL 5.1.41 Installer Welcome Screen" width="622" height="441" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Welcome Screen</p></div>
<p>click &#8220;Continue&#8221;</p>
<div id="attachment_251" class="wp-caption aligncenter" style="width: 631px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-36-02-pm.png"><img class="size-full wp-image-251" title="MySQL 5.1.41 Installer Important Information" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-36-02-pm.png" alt="MySQL 5.1.41 Installer Important Information" width="621" height="443" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Important Information</p></div>
<p>click &#8220;Continue&#8221;</p>
<div id="attachment_252" class="wp-caption aligncenter" style="width: 631px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-36-17-pm.png"><img class="size-full wp-image-252" title="MySQL 5.1.41 Installer Software License Agreement" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-36-17-pm.png" alt="MySQL 5.1.41 Installer Software License Agreement" width="621" height="443" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Software License Agreement</p></div>
<p>click &#8220;Continue&#8221; and a window will drop down</p>
<div id="attachment_253" class="wp-caption aligncenter" style="width: 516px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-36-42-pm.png"><img class="size-full wp-image-253" title="MySQL 5.1.41 Installer Agree to Software" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-36-42-pm.png" alt="MySQL 5.1.41 Installer Agree to Software" width="506" height="181" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Agree to Software</p></div>
<p>click &#8220;Agree&#8221;</p>
<div id="attachment_254" class="wp-caption aligncenter" style="width: 631px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-36-56-pm.png"><img class="size-full wp-image-254" title="MySQL 5.1.41 Installer Select A Destination" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-36-56-pm.png" alt="MySQL 5.1.41 Installer Select A Destination" width="621" height="443" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Select A Destination</p></div>
<p>click &#8220;Continue&#8221;</p>
<div id="attachment_255" class="wp-caption aligncenter" style="width: 631px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-37-13-pm.png"><img class="size-full wp-image-255" title="MySQL 5.1.41 Installer Confirm Install Location" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-37-13-pm.png" alt="MySQL 5.1.41 Installer Confirm Install Location" width="621" height="442" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Confirm Install Location</p></div>
<p>click &#8220;Install&#8221;</p>
<div id="attachment_256" class="wp-caption aligncenter" style="width: 456px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-37-43-pm.png"><img class="size-full wp-image-256" title="MySQL 5.1.41 Installer Enter Password" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-37-43-pm.png" alt="MySQL 5.1.41 Installer Enter Password" width="446" height="247" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Enter Password</p></div>
<p>you&#8217;ll need to type in your password so that you&#8217;ll have permission to install the software and after you&#8217;ve done that, the software should start to install</p>
<div id="attachment_257" class="wp-caption aligncenter" style="width: 632px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-37-58-pm.png"><img class="size-full wp-image-257" title="MySQL 5.1.41 Installer Installing" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-37-58-pm.png" alt="MySQL 5.1.41 Installer Installing" width="622" height="445" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Installing</p></div>
<p>and when it&#8217;s done you&#8217;ll see this window:</p>
<div id="attachment_258" class="wp-caption aligncenter" style="width: 631px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-38-40-pm.png"><img class="size-full wp-image-258" title="MySQL 5.1.41 Installer Successful Install" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-38-40-pm.png" alt="MySQL 5.1.41 Installer Successful Install" width="621" height="442" /></a><p class="wp-caption-text">MySQL 5.1.41 Installer Successful Install</p></div>
<p>Now you have the MySQL database installed.  But you don&#8217;t want to have to start it by hand every time your system boots.  You&#8217;d rather it start automatically for you.  We have an app for that. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Go back to this window</p>
<div id="attachment_268" class="wp-caption aligncenter" style="width: 695px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-22-at-12-21-04-pm.png"><img class="size-full wp-image-268" title="Mounted MySQL Package" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-22-at-12-21-04-pm.png" alt="Mounted MySQL Package" width="685" height="171" /></a><p class="wp-caption-text">Mounted MySQL Package</p></div>
<p>and this time click on &#8220;MySqlStartupItem.pkg&#8221; and you&#8217;ll see this window</p>
<div id="attachment_271" class="wp-caption aligncenter" style="width: 628px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-39-06-pm1.png"><img class="size-full wp-image-271" title="MySQL 5.1.41 Startup Item Installer Welcome Screen" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-39-06-pm1.png" alt="MySQL 5.1.41 Startup Item Installer Welcome Screen" width="618" height="443" /></a><p class="wp-caption-text">MySQL 5.1.41 Startup Item Installer Welcome Screen</p></div>
<p>click Continue</p>
<div id="attachment_271" class="wp-caption aligncenter" style="width: 628px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-39-06-pm1.png"><img class="size-full wp-image-271" title="MySQL 5.1.41 Startup Item Installer Welcome Screen" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-39-06-pm1.png" alt="MySQL 5.1.41 Startup Item Installer Welcome Screen" width="618" height="443" /></a><p class="wp-caption-text">MySQL 5.1.41 Startup Item Installer Welcome Screen</p></div>
<p>click Continue</p>
<div id="attachment_261" class="wp-caption aligncenter" style="width: 631px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-39-55-pm.png"><img class="size-full wp-image-261" title="MySQL 5.1.41 Startup Item Installer Select Destination" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-39-55-pm.png" alt="MySQL 5.1.41 Startup Item Installer Select Destination" width="621" height="442" /></a><p class="wp-caption-text">MySQL 5.1.41 Startup Item Installer Select Destination</p></div>
<p>click Continue</p>
<div id="attachment_262" class="wp-caption aligncenter" style="width: 631px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-40-23-pm.png"><img class="size-full wp-image-262" title="MySQL 5.1.41 Startup Item Installer Confirm Destination" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-40-23-pm.png" alt="MySQL 5.1.41 Startup Item Installer Confirm Destination" width="621" height="444" /></a><p class="wp-caption-text">MySQL 5.1.41 Startup Item Installer Confirm Destination</p></div>
<p>click Install</p>
<div id="attachment_263" class="wp-caption aligncenter" style="width: 629px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-40-51-pm.png"><img class="size-full wp-image-263" title="MySQL 5.1.41 Startup Item Installer Successful Install" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-40-51-pm.png" alt="MySQL 5.1.41 Startup Item Installer Successful Install" width="619" height="447" /></a><p class="wp-caption-text">MySQL 5.1.41 Startup Item Installer Successful Install</p></div>
<p>and you&#8217;re done.  Click Close.</p>
<p>We could go through the process of starting MySQL by hand but it&#8217;s just as easy to reboot our machine.  That way we&#8217;ll know it starts automatically for us as well.  So, reboot!</p>
<p>After you&#8217;ve rebooted, let&#8217;s start up a &#8220;Terminal&#8221; window.  Once that&#8217;s done, type in the following command:</p>
<blockquote><p>ps -aef &#124; grep mysql</p></blockquote>
<p>and you should see results that look similar to this:</p>
<div id="attachment_264" class="wp-caption aligncenter" style="width: 668px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-49-49-pm.png"><img class="size-full wp-image-264" title="MySQL 5.1.41 Confirm Install" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-49-49-pm.png" alt="MySQL 5.1.41 Confirm Install" width="658" height="339" /></a><p class="wp-caption-text">MySQL 5.1.41 Confirm Install</p></div>
<p>MySQL doesn&#8217;t have a Graphical User Interface so a lot of what we&#8217;ll be doing is via the command line.  Because of this, we need to put the /usr/local/mysql/bin in our PATH environment to make life easier for us.  We do this by cd-ing to the /etc directory and then editing the profile file using vi (via sudo).  We&#8217;ll be executing these commands:</p>
<blockquote><p>cd /etc<br />
sudo vi profile</p></blockquote>
<p>and our window should look like this:</p>
<div id="attachment_269" class="wp-caption aligncenter" style="width: 696px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-22-at-12-34-32-pm.png"><img class="size-full wp-image-269" title="MySQL 5.1.41 Edit /etc/profile" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-22-at-12-34-32-pm.png" alt="MySQL 5.1.41 Edit /etc/profile" width="686" height="269" /></a><p class="wp-caption-text">MySQL 5.1.41 Edit /etc/profile</p></div>
<p>In this file, you should see a line that says PATH.  You want to put the line &#8220;/usr/local/mysql/bin:&#8221; right after the = sign of that line.  You should see a window that looks like this:</p>
<div id="attachment_270" class="wp-caption aligncenter" style="width: 696px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-22-at-12-42-05-pm.png"><img class="size-full wp-image-270" title="MySQL 5.1.41 Change PATH" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-22-at-12-42-05-pm.png" alt="MySQL 5.1.41 Change PATH" width="686" height="269" /></a><p class="wp-caption-text">MySQL 5.1.41 Change PATH</p></div>
<p>Save it and end your Terminal session and start a new one so that this will take effect for you.</p>
<p>Now that the MySQL server is started, we need to get in and do some things for security reasons.  The server starts with no password for the &#8220;root&#8221; user and it also has an anonymous account.  We need to fix those issues.  So we start up a &#8220;Terminal&#8221; window again and we&#8217;ll be executing the following command to get us into the MySQL interface:</p>
<blockquote><p>mysql -u root</p></blockquote>
<p>and the first thing we&#8217;re going to do is delete the anonymous users by running this command:</p>
<blockquote><p>DELETE FROM mysql.user WHERE user=&#8221;;</p></blockquote>
<p>your window will look like this:</p>
<div id="attachment_266" class="wp-caption aligncenter" style="width: 659px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-58-46-pm.png"><img class="size-full wp-image-266" title="MySQL 5.1.41 Delete Anonymous Users" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-9-58-46-pm.png" alt="MySQL 5.1.41 Delete Anonymous Users" width="649" height="355" /></a><p class="wp-caption-text">MySQL 5.1.41 Delete Anonymous Users</p></div>
<p>And finally we need to get in and change the password for our root user.  Start up a &#8220;Terminal&#8221; window and get in MySQL by this command:</p>
<blockquote><p>mysql -u root</p></blockquote>
<p>then run the following command</p>
<blockquote><p>UPDATE mysql.user SET password = PASSWORD=(&#8216;xxxxxx&#8217;);</p></blockquote>
<p>Be aware here though.  First off, you&#8217;re changing ALL the passwords of ALL the users in your database.  This is a fresh install so that&#8217;s OK but if for some reason you&#8217;re following this and it&#8217;s not a fresh install then be aware.  Secondly, I&#8217;m changing the password to &#8216;xxxxxx&#8217;, you&#8217;ll want to change it to something real.</p>
<p>How will we know that our password has been changed?  We now have to add the &#8220;-p&#8221; argument when we try to get into MySQL from now on else we can&#8217;t get in.  So we&#8217;ll be executing a command like this</p>
<blockquote><p>mysql -u root -p</p></blockquote>
<p>and the server will now ask you for the password when you try to get into your server.</p>
<p>The window for this will look like the following for these commands:</p>
<div id="attachment_267" class="wp-caption aligncenter" style="width: 700px"><a href="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-10-29-08-pm.png"><img class="size-full wp-image-267" title="MySQL 5.1.41 Change root Password" src="http://devinj2ee.wordpress.com/files/2009/11/screen-shot-2009-11-20-at-10-29-08-pm.png" alt="MySQL 5.1.41 Change root Password" width="690" height="421" /></a><p class="wp-caption-text">MySQL 5.1.41 Change root Password</p></div>
<p>We now have MySQL installed on our Apple Macintosh.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Concluziile Chat-ului #2]]></title>
<link>http://thewebbies.wordpress.com/2009/11/22/concluziile-chat-ului-2/</link>
<pubDate>Sun, 22 Nov 2009 23:21:11 +0000</pubDate>
<dc:creator>andreitra</dc:creator>
<guid>http://thewebbies.wordpress.com/2009/11/22/concluziile-chat-ului-2/</guid>
<description><![CDATA[(De fapt ar trebui sa fie chat-ul #1 avand in vedere ca nu am mai avut si prima discutie, intrucat n]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>(De fapt ar trebui sa fie chat-ul #1 avand in vedere ca nu am mai avut si prima discutie, intrucat nu mergea concertChat-ul, dar facem abstractie <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>Am avut in seara de duminica un chat impreuna cu Mircea (WebSmiths), Sergiu (QWERTY), Tiberiu (Gold) si Catalin (Power Over Web) legat la tehnologiile utilizate pentru implementarea site-ului. A fost o discutie foarte interesanta, care s-a intins peste 2 ore, in care am discutat despre mai multe lucruri.</p>
<p>Astfel, intai am vorbit eu despre beneficiile JavaScript  si am cazut de acord ca este un mecanism foarte util in dezvoltarea unei interfete. Am continuat cu PHP-ul despre care ne-a vorbit Catalin &#8211; o alta solutie consacrata careia am avut putine lucrui sa-i reprosam, cu atat mai putin cu cat beneficiaza de un suport enorm in ziua de astazi. Tiberiu ne-a povestit despre aventurile lui cu AJAX si ne-a explicat de ce proiectul echipei sale va utiliza mai mult aceasta tehnologie.</p>
<p>Ulterior, am schimbat putin registrul, trecand de la tehnologii &#8220;de baza&#8221; (ca sa le zic asa) la platforme deja implementate, care vin sa simplifice viata (cel putin pe hartie <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) dezvoltatorului implementand deja anumite functionalitati sau oferind o serie de servicii facile acestuia. Am discutat impreuna cu Mircea despre JavaFX ca inlocuitor pentru AJAX, Flash sau Silverlight, oferind posibilitatea integrarii de cod Java direct in aplicatie (cu performantele de viteza aduse de acesta). In final, am discutat cu Sergiu legat de CMS-uri (Content Management Systems), ce reprezinta platforme care faciliteaza dezvoltarea de content Web prin utlizarea unor programe implementate in limbaje consacrate. Astfel de CMS-uri sunt Drupal sau WordPress. In particular, topic-ul CMS-ului WordPress a fost foarte bine-venit, intrucat echipa noastra tocmai ce luase decizia de a migra proiectul, renuntand la ideea &#8220;facem totul de la 0&#8243;, catre o solutie bazata pe o structura deja implementata.</p>
<p>Discutia s-a dovedit a fi una interesanta, in care am putut afla despre unele tehnologii noi, impreuna cu avantajele / dezavantajele lor si aplicatiile in care se preteaza a fi folosite.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Solutii tehnice]]></title>
<link>http://pow3rpuffgirls.wordpress.com/2009/11/23/solutii-tehnice/</link>
<pubDate>Sun, 22 Nov 2009 23:14:47 +0000</pubDate>
<dc:creator>Simona Posea</dc:creator>
<guid>http://pow3rpuffgirls.wordpress.com/2009/11/23/solutii-tehnice/</guid>
<description><![CDATA[In aceasta seara, impreuna cu inca 3 reprezentati din echipe diferite, ne-am strans sa discutam desp]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In aceasta seara, impreuna cu inca 3 reprezentati din echipe diferite, ne-am strans sa discutam despre solutiile tehnice pe care fiecare dintre noi le propune (sau deja le-a folosit) in dezvoltarea proiectului sau.</p>
<p>Cei 3 cu care am avut onoarea sa discut sunt:</p>
<ul>
<li><strong>Mihai Dumitrescu</strong> &#8211; managerul echipei Backwards IOC</li>
<li><strong>George Neagoe </strong> &#8211; responsabilul tehnic al echipei Muzeu Upb</li>
<li><strong>Dumbrava Maria</strong> &#8211; managerul echipei ITea</li>
</ul>
<p>Ca o privire de ansamblu,  tehnologiile folosite/sau pe care intentionam sa le folosim sunt:  <strong>php+mysql, javascript, xml si flash.</strong></p>
<p>Mihai ne-a vorbit si despre Joomla, care se pare ca face aproape totul in locul tau  (fapt pentru care o sa-l incerc si eu cat mai curand <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>Oricum, discutia nu s-a rezumat doar la acestea de mai sus.  Transcript-ul conversatiei poate fi gasiti <a href="http://ltfll-lin.code.ro:11080/concertChat/roomContent.jsp?channelID=PG-FI-TH-BI-E3">aici</a></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
