web analytics

MS Word: put syntax highlighed code into the document

Here is the simple method to put the code with highlighting into the Word document:

Download and install Notepad++. This is easy-to-use and yet very powerful text editor with a lot of features, support of the plugins etc. Put your code into the Notepad++ edit window Configure the language, if Notepad++ did not do this […]

Oracle: how to clone profiles

Here is the simple script for cloning the Oracle profiles.

SET serveroutput ON DECLARE  CURSOR c_profiles IS   SELECT PROFILE, RESOURCE_NAME, LIMIT   FROM dba_profiles   ORDER BY PROFILE, resource_name;   s_PROFILE                     dba_profiles.PROFILE%TYPE ;   s_prev_PROFILE        dba_profiles.PROFILE%TYPE ;   s_RESOURCE_NAME     […]

Windows: local printer option is greyed out

Some time ago I need to add the local printer to the system, however, this option was greyed out in the “Add printer” wizard. The problem was caused by local policy, preventing the adding of the new devices to the system.

The following should be done to enable “Add local printer” option

Start the policy […]