cookie - ка задать время жизни.
Как в $expires записать время жизни кука в секундах?
#lspci 00:00.0 Host bridge: Intel Corp. 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03) 00:02.0 VGA compatible controller: Intel Corp. 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
xorgsetup определил что катра на 810 чипсете. Driver "i810" VendorName "Intel Corp." BoardName "82845G/GL [Brookdale-G] Chipset Integrated Graphics Device" BusID "PCI:0:2:0"
Есть ли в иксах (xorg) нормальный драйвер для такой видюхи?
The lead-in character for a restricted ISO 8601 time is an `@'-sign. The particular format of the time in restricted ISO 8601 is: [[[[[cc]yy]mm]dd][T[hh[mm[ss]]]]]. Optional date fields default to the appropriate component of the current date; option- al time fields default to midnight; hence if today is January 22, 1999, the following date specifications are all equivalent:
`19990122T000000' `990122T000000' `0122T000000' `22T000000' `T000000' `T0000' `T00' `22T' `T' `'
Есть файл, в котором время задается следующим образом:
Apr 26 23:56:33 ..... Apr 26 24:53:20 .....
Задача, выбрать из файла все строки, попадающие в диапазон который передан в программу в виде ISO8601. Руками разбирать лень, к тому же может быть есть готовые модули и функции, подскажите если кто занет.
Подскажите, как при создании временной таблицы указать ключевое поле.
Вот так, например, не работает:
$sth = $this->{dbh} -> prepare("
CREATE TEMPORARY TABLE
tmp$i
primary key (subject_id)
TYPE = HEAP
SELECT
subject_id
FROM
subject
WHERE
subject_id LIKE '$$find_by[$i][1]%'");
$sth ->execute();
print ( $DBI::errstr);
А вот так, работает но нет ключевого поля(индекса)
$sth = $this->{dbh} -> prepare("
CREATE TEMPORARY TABLE
tmp$i
TYPE = HEAP
SELECT
subject_id
FROM
subject
WHERE
subject_id LIKE '$$find_by[$i][1]%'");
$sth ->execute();
print ( $DBI::errstr);
Можно сделать ALTER после создания таблицы, но хочется узнать - можно ли сделать сразу.Запускаю mysql:
root@stalcker:/tmp# /etc/rc.d/rc.mysqld start
root@stalcker:/tmp# Starting mysqld daemon with databases from /var/lib/mysql
050428 19:14:50 mysqld ended
не работает :(, смотрю, в чем дело:
#tail -20 /var/lib/mysql/stalcker.err
050428 18:57:36 mysqld started
InnoDB: Error: log file ./ib_logfile0 is of different size 0 630784 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
050428 18:57:36 Can't init databases
050428 18:57:36 Aborting
050428 18:57:36 InnoDB: Warning: shutting down a not properly started
InnoDB: or created database!
050428 18:57:36 /usr/libexec/mysqld: Shutdown Complete
050428 18:57:36 mysqld ended
Что не так?вот часть fstab
//10.1.1.254/user_docs /mnt/user_docs smbfs fmask=666,dmask=777,rw,noexec,nosuid,iocharset=koi8-r,codepage=cp866,username=sh are,password=share 0 0
вот как задаю кодировку в smb.conf
character set = koi8-r client code page = 866
и так пробовал
unix charset = koi8-r display charset = koi8-r dos charset = 866
ядро собрано с подержкой cp866
<*> SMB file system support (to mount Windows shares etc.) [*] Use a default NLS Default Remote NLS Option: "cp866"
| ← предыдущие | следующие → |