Kasulikku UNIX käsud

Changing your password: passwd Change your password. Do this regularly, and keep your password secret. File manipulation commands: cp file1 file2 Copies file1 to file2. mv file1 file2 Moves file1 to file2. If the arguments are in same directory, this command just renames file1 to file2. If file2 is a directory, file1 is moved to

Uus programmeerimine slängi

Egyptian brackets This is the style of brackets, kui avaus sulg pannakse lõpus selle joone: kui (a == b) { printf(“hello”); } Miks me nimetame seda stiili “Egiptuse sulgudes?” Võrdle asukohast sulgudes asukohast käed seda pilti: (This style of brackets was used

13 Best CSS Hack

1. Target IE6, IE7, and IE8 with only 4 tähemärki (hack) See the source above for a quick explanation. And don’t ask me to explain why 9 works for IE8…but it does. Use these with caution. [css] keha { värv: red; /* all browsers, muidugi */ värv : green9; /* IE8 and below */ *värv…

Pildi suuruse muutmine ja ümarate nurkadega, kasutades CSS

The idea is to use the background-size: cover; CSS property which handles the centering, cropping and, hästi, covering. Here’s an extract from the fiddle: div.yourWrapper { laius: 50px; kõrgus: 50px; -webkit-border raadiusega: 10px; -moz-border raadiusega: 10px; border raadiusega: 10px; tagapõhi: url(‘some_image.jpg’) no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }