HTML5 and … why it’s too early to use it in most of your projects

Well, today I decided to look into HTML5 and some statistics around it.

First thing first – I went to the following page: http://www.w3schools.com/browsers/browsers_explorer.asp and checked what is worth considering “an actual browser”.

Here we go – my screenshot:

Unfortunately most commonly used version of IE is… IE 8. Everything below, let’s say 3.5% (I think it’s a fair assumption) can be considered thing of the past (or the future ).

So… since we are talking about HTML5 here I decided to do a test in IE8 on a few HTML5 samples:

And a screenshot from my test with IE8:

 

Now exactly the same page for my current Firefox:

Basically it says: almost nothing is working in IE8.

So, what is my verdict?

If you are developing site specifically designed for iPad or some other very specific hardware with a newer/better browser or a version of the page specifically dedicated for use in a new browser or you don’t care about at least 13% of your visitors – Do not use HTML5!

And remember – more than 10% of your common customers are not ready yet!

Posted on March 14, 2012 at 16:53 by admin · Permalink · Leave a comment
In: English, WEB2.0 · Tagged with: ,

Apache, how to protect directory with a password

Another Q&EG.

Step 1: create .htpasswd file in your directory (or any other location on the server actually)

htpasswd -c .htpasswd username

Step2: create file / add following lines to the existing file; make sure AuthUserFile directive have full path.


AuthUserFile /var/www/www.site.com/html/.htpasswd
AuthType Basic
AuthName "Password Pup-up Title"

Step3: Enjoy.

Posted on March 5, 2012 at 12:15 by admin · Permalink · Leave a comment
In: English, Q&EG · Tagged with: 

HTML наци. Кто они такие?

Ну что же господа, я, будучи русским граммар наци, начинаю всё чаще использовать аналогичный подход и в HTML (4.01 transitional / XHTML 1.1 transitional / …).

Вот Вы спросите меня, ну а что же отличает настоящего HTML Nazi героя?

 

Шаг 1: Ну для начала все твои страницы должны иметь Uber Alles HTML: это значит что твой HTML ОБЯЗАН быть 100% валидным (без малейших исключений); готовым пройти строгие горнила w3c валидатора в любое время дня и ночи.
Что, уже понравилась идея? Добро пожаловать на данный ресурс http://validator.w3.org/!

Ну что же, твой код прошёл все испытания? Zer Gut! Ja, ja! Ты только что привнёс радость в сердца отцов Третьего Рейха, сынок!

 

Шаг 2: Ну что же… CSS! Да, не забудем о такой славной штуке как CSS, он может (и ОБЯЗАН) быть также 100% валидным CSS.

Проверять его здесь: http://jigsaw.w3.org/css-validator/
Что, не прошёл? Не беда совершенно! Ты никогда не думал ранее о суициде? Подумай! Внимательно читай сию документацию от корки и до корки: http://www.w3.org/Style/CSS/learning и даже и не думай возвращаться назад, пока всё не поймешь и исправишь, мелкий засранец мой славный гитлерюгентовец.

 

Шаг 3: Что, тебе показалось, что это уже всё? Какой же ты наивный, мой несчастный дорогой читатель.
Ты хоть когда-нибудь слышал или встречал такое выражение “Semantic HTML”? Что, никогда?! (О боги, с какими отбросами мне приходится работать!)

Ну что же… К сожалению у данной проблемы нет лёгкого и быстрого решения. Для начала постарайся запомнить одно простое правило, и никогда, я повторяю, НИКОГДА ВООБЩЕ, не используй такие HTML таги: <big>,<small>,<center>,<menu>,<strike>,<b>,<i>,<u>,<font>.

Ну что же, это был лишь шаг третий, на славном и увлекательном пути настоящего HTML наци!
Пока почитай пособия настоящего наци и выясни для себя, что же такое semantic HTML:

Но это было бы слишком просто, не так ли?

Так или иначе мы уже достаточно близки к концу сего славного повествования, Mein Freund! Уже почерпнутых знаний тебе должно хватить на ближайшее время, но вскоре ожидается ещё более прекрасное и яркое будущее!

Внимание, ты уже готов? Встречайте: Ze Semantic Web! Бу-га-га!!!

 

Шаг 4: Здесь ты должен начать готовить себя к встрече славных реалий великого, прекрасного и одновременно ужасного Semantic Web!

Почитай, особенно перед сном очень полезно вот эти милые статьи, в них ты найдёшь множество информации для размышления, это всё очень весело и увлекательно:

Ну что же, сейчас ты, вероятно, уже ознакомился со всей необходимой тебе информацией и можешь вздохнуть и поразмыслить о судьбах мира в кресле-качалке. Мы гордимся тобой! И даже возможно твои вебсайты выглядят терпимо real gut в моих глазах!

 

Danke schön!

 

Posted on March 1, 2012 at 15:12 by admin · Permalink · Leave a comment
In: Russian

Thoughts about HTML and development. HTML Nazi.

Well, being a Russian Grammar Nazi, as it seems, now I am starting to pick up the same approach in HTML (4.01 transitional / XHTML 1.1 transitional / … ).

So, if you ask me, what can a real HTML Nazi hero do?

 

Step 1: First of all –  your pages must have Uber Alles HTML: this means your HTML MUST be 100% valid (no exceptions); ready to pass a w3c validator at any given time of the day or night.
Like the idea? Welcome on board bro! http://validator.w3.org/

Have your code passed it? Zer Gut! Ja, ja! You just made fathers of a Third Reich proud, son!

 

Step 2: Next thing… CSS! yes, your CSS can (and MUST) be 100% valid CSS.

Test it here: http://jigsaw.w3.org/css-validator/
Didn’t pass? No problem! Suicide is your answer Please read documentation here: http://www.w3.org/Style/CSS/learning And don’t come back until it’s valid! Poor bastard Good hitlerjugend boy.

 

Step 3: You think that’s it? Wishful thinking, poor sucker my dear reader.
Have you ever heard an expression “Semantic HTML”? No?! Double face palm… (It’s me this time).

Well… there is no quick/easy solution to that problem now. Just remember few simple rules – Never and I mean NEVER, use following tags: <big>,<small>,<center>,<menu>,<strike>,<b>,<i>,<u>,<font>.
And it was  just a step three on a long, exciting journey to become a real HTML Nazi!

Get yourself familiar with:

But, this would be too easy, wouldn’t it?

Well, this is almost over, Mein Freund! That might be enough for the moment, but a new brighter and more exciting times are about to come!!!

Behold: Ze Semantic Web! Mua-ha-ha!!!

 

Step 4: Be all ready and prepared to face the reality of the glorious Semantic Web!

You can find more info here, it’s all fun, fun, fun!

Now as you finished reading, sit back and relax. You’ve just made me proud! And your website probably looks acceptable real gut to me now! Danke schön!

 

PS: If you lack a sense of humour please leave immediately!

© Arte Arefjev

Posted on February 27, 2012 at 21:06 by admin · Permalink · Leave a comment
In: English, Uncategorized, WEB2.0 · Tagged with: 

How to install samba (aka smb) on Red Hat Linux /quick and easy guide

Well, well, well…

Just a side thought: I am going to add new tag “Q&EG” (quick and easy guide) to all similar guides from now on.

Step 1.1 – install samba via yum:

yum install samba

Step 1.2 – or via rpm:

Obtain Samba rpm from rhn.redhat.com

rpm -ivh samba*.rpm

Step 2 – config file creation and change:

cd /etc/samba
mv smb.conf smb.conf.backup
vi smb.conf

And put into smb.conf following content (notice my share of apache htdocs directory – /var/www/html):

[global]
workgroup = wrkgrp
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes

[share]
writeable = yes
admin users = smbuser
path = /var/www/html
force user = root
valid users = smbuser
public = yes
available = yes

Step 3 – add new user into system and samba and restart smb deamon:

adduser smbuser
passwd smbuser
smbpasswd -a smbuser
service smb restart

Step 4 – Now it’s time to test it and add mapped network drive in your windows (I only tested on WinXP so far):

Run “cmd” from Windows/RUN
and enter following (note my server IP:192.168.1.12 ):

net use z: \\192.168.1.12\share /user: smbuser ***password***

Posted on February 15, 2012 at 15:49 by admin · Permalink · Leave a comment
In: English, Linux, Q&EG

Problems with mysql installation on Windows 7? Have been there…

Hi Folks!
Today I run into an interesting problem with installation of MySQL on my new Windows 7 / 64bit.
MySQL just didn’t want to be installed! And stopped during confuguration process.

Tried many things, googled for solution, but in most of the cases people said something like this “as this is not your first installation, please go and find files, bla bla bla… then delete “some” files.”.

THIS IS MY FIRST INSTALLATION! No files are created YET!

Well… solution is quite simple actually: SWITCH OFF YOUR WINDOWS FIREWALL (in my case it was Norton Internet Security) during installation.
Hope this might help somebody one day.

Posted on February 14, 2012 at 21:33 by admin · Permalink · Leave a comment
In: English, Fighting the system, mySQL

HowTo pg_dump with no password

Ever wanted to have pg_dump running via cron?

Well… now you can!
Create a file called .pgpass in your user directory
and put following content inside:


localhost:5432:db_name:db_login:db_pass****

Note: might also be useful to put permissions right:


chmod 0600 ~/.pgpass

Posted on January 25, 2012 at 16:53 by admin · Permalink · Leave a comment
In: English, PostgreSQL

How to install PostgreSQL with yum

How to install PostgreSQL with yum – step by step guide:

Note: Right now do everything as “root” user.

1) check current install status:
yum list postgres*

2) Pick packages you might need (in that sample this is my choice – you might want different packages):

yum install postgresql84 postgresql84-contrib postgresql84-libs

3) Install default DB:

service postgresql initdb

4) Login as a postgres user:

su - postgres

5) Create new user with admin access rights:

createuser -P -s -e username

6) Optional, but really needed for PHP Postgres Admin step – exit from postgres user and edit “pg_hba.conf” so PHP & PHPPostgres Admin can login into your DB (notice word password):

# "local" is for Unix domain socket connections only
local   all         all                               password
# IPv4 local connections:
host    all         all         127.0.0.1/32          password
# IPv6 local connections:
host    all         all         ::1/128               ident

That’s all folks. Keep it short and simple!

Posted on January 20, 2012 at 10:36 by admin · Permalink · Leave a comment
In: Uncategorized

Restore PostgreSQL db from backup


psql -U username -h host1 dbname < infile_name_sql

Posted on January 20, 2012 at 10:25 by admin · Permalink · Leave a comment
In: English, PostgreSQL

Backup & Restore mySQL database | quick guide

Create a backup:

mysqldump -u username -p password --databases database1 database2 db_name3 > multi_db_names.sql
mysqldump --all-databases > alldatabases.sql
mysqldump --all-databases | bzip2 -c > databasebackup.sql.bz2
mysqldump --all-databases | gzip > databasebackup.sql.gz

Restore from a backup:

mysql -u [username] -p [password] [database_to_restore] < [backupfile] gunzip < backup_name.sql.gz | mysql -u username -p password db_name

If you have to put username & password in full:

mysql --user=root --password=mysecretpassword virtualad_db < virtualad_db2010-06-28.sql

And my working sample:
mysql -u root -p -h 127.0.0.1 keywords < keywords_dump_db.sql

Posted on June 28, 2010 at 12:55 by admin · Permalink · Leave a comment
In: mySQL