|
|
|
: |
|
|
|
, . . , 68% .
, «» « ». 1968, 1969 1973 . . , .
. , , - : « …, „ “ ()… , ». Windows, - . , . , , : , , , . , .
, MIX/MMIX -, .
: donald knuth the art of computer programming 4 |
|
|
|
Stuxnet myrtus, . -. ( , , ), , - . FreeBSD 6 , fuck 2 , merde scheize . , FreeBSD 75 % 25 % -, . , myrtus schmuk, , . , .
, , , C-- - . , , . , XXXX ѻ , . , , .
: stuxnet |
php EVIL |
|
- php: .
,
function foo ()
{
function callback_fn() { }
$str = preg_replace_callback ($pattern, $replacement, 'callback_fn', $str);
}
'Fatal error: Cannot redeclare callback_fn'. foo() .
: cannot redeclare fatal error php |
Picasa Web Albums. |
|
- - Picasa Web Albums. , , .
:
, . , , , , .
. . , - . .
footnotes
1 99% / , . - , 1% , . , .
2 , , . . «$i». - .
3 , . . , - .
-1 . — - , . , - IT, , , IT .
: picasa picasa web albums php google api |
:) |
|
. , . , .
1. , WP. , , , . , — . XML API, , HTML. , . , . , , 15. , . UPD. . «***».
2. , — , . , <lj user="username"> , WP , [ljuser=username]. , [user=] , WP . , . [xuser=LiRu_Username, LJ_Username], , , , . .
, , . API , , , . ValeZ, « API » — , . , , .
3. . , HTML, . - , , API. — / , , . , , . - : «! () MT API!», , . , HTML.
.
, .
: PHP. , , .
: liveinternet livejournal php . wordpress extension |
|
|
|
. … , , ? , , ?
LJUsers http://www.liveinternet.ru/users/%%username%%/profile. , . . , …
— . « liveinternet MovableType MetaWeblog API ». , . , — . «, , mt.supportedMethods!». liveinternet.ru WordPress. :

, «». API, , , . blogger.getPost («server internal error»), metaWeblog.getPost - « » . — , HTML . , HTML . . , . THIS IS RUSSIA!..
ps. WordPress, Lightroom. «infrared», « , » . . . . , .
: liveinternet wordpress movabletype plugin api metaweblog this is russia |
LIci |
|
LiveInternet WordPress — LIci.
. : , , . : . , — . .
:
, . , , . .
. , ? - , . - , . , , , ? . , , — , . - , . . , . , , , , - . - -, DVD, mp3, . ո .
: liveinternet wordpress lici liveinternet |
|
|
|

, . - . — , , , . . «-» . , … , «», . , « », «»?
… . , , . -, . , - , . ? , - , ?
, . - , , . — , , , , -, , , , , , , , , .
…
: |
Firefox |
|

, .. , .
.
<select> « », - .
, , : Firefox, , «» , , , . , , .
: firefox usability |
PHP, cURL , ! |
|
, PHP cURL -?
:
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
curl_setopt($, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$cookie_file_path chmod 0777.
, , cURL cookies. . «» .
?
: curl cookies curl_setopt php curlopt_cookiejar |
.BAT |
|
, .bat ?
for /f "tokens=*" %%X IN ('dir /b *.lrcat') do ( my_command "%%X")
— . my_command . Cmd ? 866 1251? - ? …
. bat, .
++ , .
, , Lightroom. Firefox .
: windows dos batch bat |
PHP |
|
« 3 ». « — ». « ».
, , ValeZ. . PHP:
function ru_lang_plural ($num, $str0, $str1, $str2)
{
if ($num == 0 || ($num > 4 && $num < 21)) {
return $str0; // 0 , 5
} else {
if ($num > 10) $n = $num % 10;
else $n = $num;
if ($n == 1) return $str1; // 1
if ($n > 1 && $n < 5) return $str2; // 2
};
}
( ), :
code:
$lang = array (
'str1' => ' {%0, }, !',
'str2' => ' {%0; } !'
);$plurals = array (
// , ,
'' => array ('', '', ''),
' ' => array (' ', ' ', ' ')
);
function ru_lang_plural ($num, $plurals)
{
if ($num == 0 || ($num > 4 && $num < 21)) {
return $plurals[0]; // 0 , 5
} else {
if ($num > 10) $n = $num % 10;
else $n = $num;
if ($n == 1) return $plurals[1]; // 1
if ($n > 1 && $n < 5) return $plurals[2]; // 2
};
}
function parse_lang_str ($strName, $vars = array ())
{
global $lang;
// , . .
$str = $lang[$strName];
if ($vars) {
foreach ($vars as $N => $value) {
$GLOBALS['_value'] = $value;
$str = preg_replace_callback
(
"/\{%($N)[,;](.+?)\}/",
create_function(
'$matches',
'global $plurals, $_value;
return $_value . ' ' . ru_lang_plural($_value, $plurals[trim($matches[2])]);'
),
$str
);
};
};
return $str;
}
for ($n = 0; $n < 12; ++$n) {
echo $n . "<Br>";
echo parse_lang_str ('str1', array (0=> $n)) . '<Br>';
echo parse_lang_str ('str2', array (0=> $n)) . '<Br>';
echo "<br>";
};
, .
.
++ , «code», ?
: php |
|
|
|
. YouTube RuTube . YouTube , .
, , . Tutorial , . , . - , , . . , — , — .
ActionScript . ECMAScript, JavaScript . , - — . . , , F1. — ActionScript 3.0 ? «/v\=(\S+)/» . . . — «» ? ? , «/v\=(.+)/» .
, , . YouTube ? .
: flash youtube |