Martial Arts

Tuesday, 15. December 2009

The term martial arts refers to all of the various systems of training for combat that have been arranged or systematized. Generally, these different systems or styles are all designed for one purpose: physically defeating opponents and defending against threats. In fact, the word ‘martial’ derives from the name Mars, who was the Roman god of war.
mixed martial arts Martial Arts
According to legend, an Indian monk named Bodhidharma facilitated the transmission of Chan (China) or Zen (Japan) to China when he moved to southern China. His teachings lent a lot to martial arts philosophies like humility and restraint that continue even today. In fact, some have credited Bodhidharma with the initiation of Shaolin martial arts, though this assertion has been discredited by many.

Types of Martial Arts: Generally, martial arts can be broken down into five distinct categories: Stand-up or striking styles, grappling styles, low impact styles, weapons based styles, and MMA (A Hybrid Sports Style). Along with this, the emergence of MMA has caused quite a bit of mixing of styles in recent years to the point that a lot of dojos don’t look quite the same as they used to. Regardless, below are some of the more well-known styles.

Striking or Stand-Up Styles

  • Boxing
  • Karate
  • Krav Maga
  • Kung Fu
  • Kickboxing
  • Tae Kwon Do

Grappling or Ground Fighting Styles

  • Brazilian Jiu Jitsu
  • Russian Sambo
  • Shootfighting
  • Wrestling

Throwing or Takedown Styles

  • Aikido
  • Judo
  • Hapkido
  • Shuai Jiao

Weapons Based Styles

  • Iaido
  • Kali
  • Kendo

Low Impact or Meditative Styles

  • Baguazhang
  • Tai Chi
  • Chi Gong based styles

MMA- A Hybrid Sports Style

  • MMA

Read more at About.com

Adding new user to MySQL server

Wednesday, 4. November 2009

In Order to add a new user to MySQL server from command-line you have to do the following!

First you have to connect to MySQL server as root

mysql --user=root mysql

After connecting to the server as root you can create new user with CREATE USER command then set privileges by GRANT command.
Let’s create a new user for “administrator” and grant it to all privileges. I uses the ‘%’ wildcard for the host part, so it can be used to connect from any host. If you want to restrict access from other machines you can user ‘localhost’ as host part.


CREATE USER 'administrator'@'%' IDENTIFIED BY 'mypass';
GRANT ALL PRIVILEGES ON *.* TO 'administrator'@'%' WITH GRANT OPTION;

Tags: , .

احساس!

Wednesday, 28. October 2009

اصلا حسش نیست!!!

Tags: .

Which word stands for what?

Sunday, 13. September 2009

Tags: .

Year 2038 Bug, Y2K38

Sunday, 6. September 2009

unix2038 Year 2038 Bug, Y2K38You may know that the Unix timestamp was limited to the years 1970 to 2038. You may ask why you are limited to the years 1970 through 2038. Well, it’s because the original developers of Unix chose the start of the year 1970 as the base date that no programmer should need to go before! The Unix designers also decided that nobody would be using Unix after about 70 years or so, and therefore believed they could get away with storing the timestamp as a 32-bit value—which will run out on January 19, 2038! This will create what has come to be known as the

Y2K38 bug (much like the millennium bug, which was caused by storing years as two-digit values, and which also had to be fixed). We have to hope it will all be solved well before we get too close to that date.

http://en.wikipedia.org/wiki/Year_2038_problem

حالا ماه شدی…

Wednesday, 2. September 2009

خوب به نظرم دیگه درست شد فارسیش! (تیتر رو میگم!)

الان دیگه میشه هم فارسی نوشت هم انگلیش هم فینگلیش و … البته کلی زبونه دیگه! سعی می کنم فارسیش کم باشه کلا !

4  320x240 moon حالا ماه شدی...

Tags: .

فارسي

Tuesday, 1. September 2009

برام جالب بود ببینم وردپرس چه عکس‌العملی نسبت به نوشته فارسی (راست چین) نشون میده! فعلا که اصلا خوب نیست!

خوب بهتر شد  :-)  رفتم یه افزونه (Plugin) به اسم wp-rtl نصب کردم خیلی بهتر شد. فقط باید یه فکری به حال تیتر بالا کرد… اونم درست میشه!

اینم بگم من کلا بدم میاد از کلماتی مثل «افزونه» استفاده کنم! در ضمن هر جوری دوست دارم فارسی می نویسم دوست نداری نخون! قلت یا درثتش به خودم مربوته! 8-)

Collapsing rows in HTML table

Sunday, 30. August 2009

If you want to collapse some rows in you HTML table you can use the following script in your HTML document!


<script type="text/javascript">
var rowVisible = true;
function toggleDisplay(tbl) {
var tblRows = tbl.rows;
for (i = 0; i < tblRows.length; i++) {
if (tblRows[i].className != "odd") {
tblRows[i].style.display = (rowVisible) ? "none" : "";
}
}
rowVisible = !rowVisible;
}
</script>

and here is a button for activating script:

<input type="button" value="Hide Details" onclick="toggleDisplay(document.getElementById('TheTable'))" />

Now each time you press the button all odd rows will collapse . Note that you have to set your table id to “TheTable” & also set classes of odd rows to “odd”.

Here is an example:

Row1 Row 1
Row2 Row2
Row3 Row3

Speed up MySQL connection

Friday, 28. August 2009

If you want to run a MySQL server on you local network, you can disable name resolve feature in order to get faster connection (Up to 10x faster). Remember that after disabling name resolve you have to enter your server IP address each time you want to use it.

Ok, follow me if you want faster connection:

  1. Open your MySQL config file. /etc/my.cnf
  2. Find [mysqld] and insert following string below it
    • skip-name-resolve

Here is an example
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
skip-name-resolve

Tags: .

Creating Table from MySql

Wednesday, 19. August 2009

Here is a PHP code in order to view table in HTML format from MySql database, As one knows you have to place this code in php tag (<?php … ?>) in order to execute it.

print "<TABLE BORDER=0 CELLPADDING=2>\n";
$fields = mysql_list_fields("DATABASENAME", "YOURSQLTABLENAME");
$columns = mysql_num_fields($fields);
print "<TR>";
for ($x = 0; $x < $columns;$x++ ) {
print "<TH>" . mysql_field_name($fields,$x) . "</TH>\n";
}
print "</TR>\n";
$sql = "SELECT * from YOURSQLTABLENAME";
$result = mysql_query($sql);
while ($obj = mysql_fetch_object($result,MYSQL_ASSOC)) {
print "<TR>";
foreach($obj as $val) {
print "<TD>" . $val . "</TD>";
}
print "</TR>\n";
}
echo "</TABLE>\n";

Tags: .