Currently, on the internet world are a lot of data. Very important is how and where to store them. Therefore, I decided to study database mongodb. MongoDB (from “humongous”) is a scalable, high-performance, open source NoSQL database. Written in C + +, MongoDB features:

Continue reading

Some it is necessary to disable backspace button in browser. This javascript code can help to disable backspace:

document.onkeydown = function () {
 var e = event || window.event;
 var keyASCII = parseInt(e.keyCode, 10);
 var src = e.srcElement;
 var tag = src.tagName.toUpperCase();
 if(keyASCII == 13) {
  return false;
 if(keyASCII == 8) {
  if(src.readOnly || src.disabled || (tag != "INPUT" && tag != "TEXTAREA")) {
   return false;
  if(src.type) {
   var type = ("" + src.type).toUpperCase();
   return type != "CHECKBOX" && type != "RADIO" && type != "BUTTON";
 return true;

The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.

The reset styles given here are intentionally very generic. There isn’t any default color or background set for the body element, for example. I don’t particularly recommend that you just use this in its unaltered state in your own projects. It should be tweaked, edited, extended, and otherwise tuned to match your specific reset baseline. Fill in your preferred colors for the page, links, and so on.

Continue reading

Some said that you cannot centre floated elements but this is not quite true. It’s true that usually you can only float left or float right but if you have a group of buttons (for example it is menu) and you want them to be fluid in width then it would be nice to have them all float in the centre of the page. There is no problem if the floats have a width because you can then ascertain the main parents width and use margin:auto to center the whole block. However that means that the floats cannot be a fluid width (i.e. shrinkwrap their content) or you would have to class each individual element and apply a different width to each which is a little unsatisfactory.

Continue reading

At grub-boot loader screen select Recovery mode the version of the kernel that you wish to boot and type e for edit. Select the line that starts with kernel and type e to edit the line.

Go to the end of the line and type init=/bin/bash as a separate one word (press the spacebar and then type init=/bin/bash). Press enter key to exit edit mode.

Back at the GRUB screen, type b to boot into single user mode. This causes the system to boot the kernel and run /bin/bash instead of its standard init. This will allow us gain root privileges (w/o password) and a root shell.

If you wanna reset root password remount paritions
mount -rw -o remount /
Setup root password


Today I found very usefull function, witch let to remove (disable) menu in wordpress admin. Its remove_menu_page( $menu_slug ) and remove_submenu_page( $menu_slug, $submenu_slug ).

It’s easy to remove menu entries and it is not necessary anymore to edit wordpress core. This is a small example, where I removed the entries to the comments and the submenu-page discussion.

Copy this example to function.php, and you will see, that it work.

function remove_admin_menu () {
		remove_menu_page( 'edit-comments.php' );
		remove_menu_page( 'link-manager.php' );
		remove_menu_page( 'tools.php' );
		remove_submenu_page( 'options-general.php', 'options-discussion.php' );
add_action( 'admin_menu', 'remove_admin_menu' );

This function will disable comments, links, ant tools menu.