ln -s /path/to/real/file /path/to/non-existant/file
Help: ln --help
Blogs, Emuārs, Pieraksti, Mirāža. Paroles. Attēli. Linux, Android. Tehnoloģijas. Četri guru no pieciem viedajiem izvēlas tieši šo blogu.
ln -s /path/to/real/file /path/to/non-existant/file
Autors: BH
#!/bin/bash
DIREKTORIJA="/home/bh/test/";
ls -d $DIREKTORIJA*/ | while read -r FILE
do
mv -v "$FILE" `echo "$FILE" | iconv -f UTF-8 -t ASCII//TRANSLIT -c | tr ' ' '_'`
done
Autors: BH
Autors: BH
Autors: BH
Autors: BH
Autors: BH
<?php
$dob = '1984-09-04';
$age = date('Y') - date('Y', strtotime($dob));
if (date('md') < date('md', strtotime($dob))) {
$age--;
}
?>
Autors: BH
var sURL = unescape(window.location.pathname);
function refresh(){
window.location.href = sURL;
}
function refresh(){
window.location.replace(sURL);
}
<meta equiv="refresh" content="0;url=http://example.com/" />
strValueName = "HKLM\SYSTEM\CurrentControlSet\Control\Windows\" _
& "ShutdownTime"
Set oShell = CreateObject("WScript.Shell")
Ar = oShell.RegRead(strValueName)
Term = Ar(7)*(2^56) + Ar(6)*(2^48) + Ar(5)*(2^40) + Ar(4)*(2^32) _
+ Ar(3)*(2^24) + Ar(2)*(2^16) + Ar(1)*(2^8) + Ar(0)
Days = Term/(1E7*86400)
WScript.Echo "ShutdownTime = " & CDate(DateSerial(1601, 1, 1) + Days) _
& " UTC"
Autors: BH
Autors: BH
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"
uname -r
2.6.24-19-generic
uname -a
Linux bh-desktop 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux
Autors: BH
/usr/local/bin/php -q /home/user/data/www/domain_name/script.php
/usr/local/bin/GET http://domain_name/required_script.php
Designation | Sides | Layers (total) | Diameter | Capacity | ||
---|---|---|---|---|---|---|
(cm) | (GB) | (GiB) | ||||
DVD-1[12] | SS SL | 1 | 1 | 8 | 1.46 | 1.36 |
DVD-2 | SS DL | 1 | 2 | 8 | 2.66 | 2.47 |
DVD-3 | DS SL | 2 | 2 | 8 | 2.92 | 2.72 |
DVD-4 | DS DL | 2 | 4 | 8 | 5.32 | 4.95 |
DVD-5 | SS SL | 1 | 1 | 12 | 4.70 | 4.37 |
DVD-9 | SS DL | 1 | 2 | 12 | 8.54 | 7.95 |
DVD-10 | DS SL | 2 | 2 | 12 | 9.40 | 8.74 |
DVD-14[13] | DS DL/SL | 2 | 3 | 12 | 13.24 | 12.32 |
DVD-18 | DS DL | 2 | 4 | 12 | 17.08 | 15.90 |
4.7GB = 4.38GB.
Long story short - media companies / salesmen and women claim that 1GB = 1000 MB, 1MB = 1000KB and 1KB = 1000B. Of course we all know that 1GB = 1024 MB, 1MB = 1024KB and 1KB = 1024B.
So, 4.7GB = 4,700,000,000B according to the companies.
But really, 4,700,000,000 / 1024 / 1024 /1024 = 4.377GB
Autors: BH
This is a reference to the entries in about:config, where all user preferences can be viewed and modified. Entries that apply to Firefox or Thunderbird may also apply to Mozilla Suite/SeaMonkey and vice versa.
In windows, you should be able to change the languge of gtk+ to english by adding a new environment variable 'lang' with a value of 'c'.
( right-click on My Computer -> properties -> Advanced -> Environment Variables )
Snippet is a programming term for a small region of re-usable source code or text. Ordinarily, these are formally-defined operative units to incorporate into larger programming modules. Snippets are often used to clarify the meaning of an otherwise "cluttered" function, or to minimize the use of repeated code that is common to other functions.
Snippet management is a feature of some text editors, program source code editors, IDEs, and related software. It allows the user to persist and use snippets in the course of routine edit operations.
Autors: BH