Recent Notes

Displaying notes 131 - 140
Created by voodoo on February 07, 2010 06:18:47    Last update: February 07, 2010 22:41:38
To start vncserver : # with default screen size of 1024x768 vncserver # start with display #2 vncserver :2 # with increased size of 1280x1024 vncserver -geometry 1280x1024 To stop vncserver (for display #1): vncserver -kill :1 The first time you start vncserver , it asks you to create a password. To change vncserver password : vncpasswd
Created by voodoo on February 07, 2010 06:11:53
Use the F8 key to enter and exit full screen mode for RealVNC vncviewer .
Created by voodoo on February 07, 2010 05:48:55
Error Message: Error activating XKB configuration Probably internal X server problem X server version data: The XFree86 Project, Inc 40300000 You are using XFree 4.3.0 There are known problems with complex XKB configurations. Try using simpler configuration or taking more fresh version of XFree software. If you report this situation as a bug, pleas include: - The result of xprop -root | grep XKB - The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb Answer from RealVNC : Hi, VNC Free Edition 4.1.2 doesn't provide the XKB extension. The fact that that causes parts of Gnome to crash or report errors seems to be a bug in Gnome - X applications should not in general assume the presence of X extensions unless they are incapable of operating without ...
Created by voodoo on February 07, 2010 04:59:36    Last update: February 07, 2010 05:01:41
From X(7) manual page : Although the layout of windows on a display is controlled by the window manager that the user is running (described below), most X programs accept a command line argument of the form -geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window. The WIDTH and HEIGHT parts of the geometry specification are usually measured in either pixels or characters , depending on the application. The XOFF and YOFF parts are measured in pixels and are used to specify the distance of the window from the left or right and top and bottom edges of the screen, respectively. Both types of offsets are measured from the indicated edge of ...
Created by voodoo on February 06, 2010 17:37:38
While hotmail and Yahoo mail have "traditional" anti-virus scans for attachments, it's a disappoint to find that Gmail blocks attachments by extension! I simply cannot understand how can the genius minds at Google consider this an effective "solution": genuinely good behaving executables are blocked simply because they are honestly named, while rogue agents can pass the inspection by simply changing their file extensions! References: Gmail Help - Zipped Attachments Trick Gmail Antivirus Scanner: Send Any File Type with Gmail. (.exe, .dll, .com, .bat)
Created by Dr. Xi on February 06, 2010 00:38:29    Last update: February 06, 2010 00:39:01
From Oracle doc: DBA_FREE_SPACE describes the free extents in all tablespaces in the database. Note that if a datafile (or entire tablespace) is offline in a locally managed tablespace, you will not see any extent information. If an object has extents in an online file of the tablespace, you will see extent information about the offline datafile. However, if the object is entirely in the offline file, a query of this view will not return any records. SQL> select tablespace_name, count(*) free_extends, sum(blocks) total_blocks 2 from dba_free_space 3 group by tablespace_name; TABLESPACE_NAME FREE_EXTENDS TOTAL_BLOCKS ------------------------------ ------------ ------------ SYSAUX 84 5616 USERS 1 12376 SYSTEM 2 904 UNDO 13 14016 SQL>
Created by Dr. Xi on February 06, 2010 00:25:00    Last update: February 06, 2010 00:26:50
Solution: grant unlimited tablespace to <user> or alter user <user_name> quota 250m on <tablespace_name> Example: SQL> create table customer ( 2 id number(9), 3 name varchar2(40)); create table customer ( * ERROR at line 1: ORA-01950: no privileges on tablespace 'SYSTEM' SQL> quit Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production C:\>sqlplus system@xe SQL*Plus: Release 10.1.0.5.0 - Production on Fri Feb 5 18:19:08 2010 Copyright (c) 1982, 2005, Oracle. All rights reserved. Enter password: Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production SQL> grant unlimited tablespace to jpa; Grant succeeded. SQL> quit Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production C:\>sqlplus jpa@xe SQL*Plus: Release 10.1.0.5.0 - Production on Fri Feb 5 18:20:42 2010 Copyright (c) 1982, ...
Created by Dr. Xi on February 06, 2010 00:15:01
This query lists the tablespaces in Oracle: SQL> select * from v$tablespace; TS# NAME INC BIG FLA ENC ---------- ------------------------------ --- --- --- --- 0 SYSTEM YES NO YES 1 UNDO YES NO YES 2 SYSAUX YES NO YES 4 USERS YES NO YES 3 TEMP NO NO YES SQL>
Created by Dr. Xi on February 05, 2010 23:53:17
SQL> select sys_context('userenv', 'current_schema') from dual; SYS_CONTEXT('USERENV','CURRENT_SCHEMA') ------------------------------------------------------------------------------- JPA SQL> alter session set current_schema = sys; Session altered. SQL> select sys_context('userenv', 'current_schema') from dual; SYS_CONTEXT('USERENV','CURRENT_SCHEMA') ------------------------------------------------------------------------------- SYS SQL>
Created by Dr. Xi on February 04, 2010 00:21:05    Last update: February 04, 2010 00:22:09
The table DBA_DATA_FILES contains information about data files used in an Oracle database. The table DBA_SEGMENTS describes the storage allocated for all segments in the database. SQL> select sum(bytes)/1024/1024 SIZE_MB from dba_data_files; SIZE_MB ---------- 905 SQL> select sum(bytes)/1024/1024 SIZE_MB from dba_segments; SIZE_MB ---------- 646.375 SQL>