What to do when MBR was corrupted
Try number one - fdisk
Find Dos\'s fdisk. Create boot floppy
Reload system from this floppy and start fdisk /mbr
Bad news - its helps rarely. fdisk clear just a few bytes. Corrupted loader code still present
Try number two - Kill em\'all
It means clear all mbr sector
turn on/off XWindows autostart
Turn off XWindows autostart
To switch of XFree autostart in Linux just change file /etc/inittab
Replace id:5:initdefault: with id:3:initdefault: and reset computer
In this case linux startup process will stop at level 3 in Full multiuser console mode. (If Level 5 startup process will go until is for XWindows loads)
PHP Proxy HTML контента
<?php
//ini_set (\'error_reporting\', E_ALL);
//ini_set (\'display_errors\', \'on\');
function CachedFileImport($cachefilename, $filename, $cachelivetime, $newbaseurl)
{
//cached newspaper import
$cachedtime = filemtime($cachefilename);
//update cache every minute
// echo $cachedtime.\'-\'.time();
$isUpdateCache = time()- $cachedtime > $cachelivetime;
$text = "";
if(!$isUpdateCache){
$text = ImportFile($cachefilename);
}
Ultra Edit - usage details
UTF-8 Autodetection
Lately for non english text they using UTF-8 encoding
But there are still many data stored in local encoding (windows-1251, KOI8, ...)
To Ultra edit detect UTF-8 encoding automatically, You have to check item in one\'s preferences
Advanced - Configuration... - General - Load/Save/Conversions - Auto detect UTF-8 files
File format conversion Unix/Mac to DOS format
PHP - Передача DateTime параметров веб-сервису на .NET
.NET требует передавать параметры типа DateTime в формате YEAR-MONTH-DAYTHOUR:MINUTES:SECUNDS
Пример на PHP:
$dt = $cur_issue->DateStr("Y-m-d"); //Add time as SOAP needed
$dt .= \'T\';
$dt .= $cur_issue->DateStr("H:i:s");
Дата будет вида 2007-06-04T11:24:56
ISA и ActiveSync - заставим работать два продукта MS вместе
1. Необходимо создать файл "c:\Program Files\Microsoft ActiveSync\wspcfg.ini" с двумя строками
(не использовать Remote Network Access Application в Active Sync):
[rnaapp]
disable=1
2. На ISA сервере выделяем следующие адреса как локальные Local Address Table (LAT):
169.254.2.1 и 169.254.2.2 (для устройст Windows Mobile 5.0)
или
SQL MSSQL INSERT SELECT
Чотбы вставить в таблицу запись с зависимостью от значений полей другой таблицы, в MSSQL можно использовать синтаксис INSERT с SELECT
Пример:
Для таблицы table1 с полями
RefId - указатель на запись в root_table
RefCount - числовое поле
RefText - текстовое поле
Можно использовать следующий SQL запрос привязывающий запись в table1 с записью root_table с Id = 1:
VS2005 Добавление нового источника данных с SQL server (MSSQL 2005/Express)
Если при попытке добавить новый источник данных с SQL сервера выдается сообщение об отсутствии Интерфейса вида:
Links to File/Directories/Removable Drives with NTFS - it is easy
Frequently we need to make link for existing file or directory in more sutable place
We can do it in Windows 2000/XP with means of NTFS
Microsoft give us util "linkd" in Windows 2000 Resource Kit. This package provide Windows users with unix/linux standard commands. But as always MS wants money.
freopen's feature in Visual Studio
freopen's feature in Visual Studio
If you close with \'fclose\' function standard stream (stdout, stderr) redirected with freopen, Then when next fopen will be called it will return handler to new opened file and standard stream will be linked to it to. This behaviour is discovered in Visual Studio v6,v7.
Example:
- « первая
- ‹ предыдущая
- …
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- …
- следующая ›
- последняя »
