1. Загрузиться в режим командной строки (F8 после процедуры POST).
  2. C:\> attrib -s -h - r msdos.sys
  3. Открыть на редактирование msdos.sys.
  4. Найти строку:
    BootGUI = 1
    и заменить на:
    BootGUI = 0
  5. Сохранить файл.
  6. C:\> attrib +s +h +r msdos.sys
  7. Перезагрузить компьютер






When running program using MySQL Connector/C attempt to establish a connection to server failed with error from title. But
working of MySQL client is ok. MySQL server was installed with MSI installer.

Solution (works for me): need to explicit bind the inet address in MY.INI configuration file:

[mysqld]
...
bind-address=127.0.0.1
...

And use this address to specify server in  'mysql_real_connect' call.

NetBeans 7.1: change IDE language :: Java

| No Comments | No TrackBacks
Need to modify netbeans.conf
For Windows C:\Program Files\NetBeans 7.1\etc\netbeans.conf

Replace or add (if not present) following config variable:
netbeans_default_options = "... -J-Duser.language=en -J-Duser.region=US ..."
'Initialize' commands
target remote localhost:2331

'Run' commands
monitor endian little
monitor reset
monitor speed 30
monitor speed auto
set remote memory-write-packet-size 1024
set remote memory-write-packet-size fixed
set remote memory-read-packet-size 1024
set remote memory-read-packet-size fixed
symbol-file Default/a.out
delete breakpoints
b main
continue
Message
PDB 'filename' was not found with 'object/library' or at 'path'; linking object as if no debug info

The linker was unable to find your .pdb file. Copy it into the directory that contains object/library.

To find the name of the .pdb file associated with the object file:

Extract an object file from the library with lib /extract:objectname.obj xyz.lib.

Check the path to the .pdb file with dumpbin /section:.debug$T /rawdata objectname.obj.

You could also compile with /Z7, so the pdb doesn't need to be used, or remove the /DEBUG linker option if you do not have .pdb files for the objects you are linking.

Источник: MSDN
При сборке Qt проекта (TEMPLATE: app) в среде Microsoft Windows SDK v7.1 в процессе линковки была получена ошибка следующего содержания:

qtmaind.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol _main referenced in function _WinMain@16

Причина:
Т.к. приложение содержало элементы GUI (фактически, было оконным), то переменной
CONFIG файла-проекта Qt было присвоено значение "windows".

Документация qmake по этому поводу гласит:
The app Template
The app template tells qmake to generate a Makefile 
that will build an application. With this template, 
the type of application can be specified by adding 
one of the following options to the CONFIG variable definition:

Option Description
windows       The application is a Windows GUI application.
console       app template only: the application is a Windows console application.

Решение:
...статья не закончена...

Qt: MOC и namespace :: using namespace c/c++

| No Comments | No TrackBacks
MOC не обрабатывает корректно (точнее игнорирует) макросы определяющие границы пространства имен (namespace).

#define START_NS namespace ns {
#define END_NS }

START_NS
class MyClass : public QObject {
  Q_OBJECT
public:
  MyClass();
...
}
END_NS
При компиляции (gcc) среди прочего получим собщение об ошибке:

moc_MyClass.cpp: error: 'MyClass' has not been declared

Требуется явное указание namespace.
Need to install Cntlm because NPM does not support NTLM/NTLMv2 authenticating HTTP proxy. In command prompt execute the following commands.
npm config set proxy localhost:3128
npm config set registry "http://registry.npmjs.org/"
Then you can install modules from Node.js repository through HTTP (HTTPS set by default)
Прокси для PPM настраивается через переменную среды http_proxy
http_proxy=http://[username:password@]proxy.url[:port]
NetBeans: Deploying on Apache Tomcat
    profile mode: false
    debug mode: false
    force redeploy: true
Deployment error: Access to Tomcat server has not been authorized. 
Set the correct username and password with the "manager-script" 
role in the Tomcat customizer in the Server Manager.
...
В <Tomcat-dir>/conf/tomcat-users.xml добавить или изменить атрибут roles тэга user
<user name="user" password="passwd" roles="...,manager-script" />

Pages