Monday, November 23, 2009

Acronyms

http://drupal.org/node/302232

AFAIK - As far as I know
AFAICT - As far as I can tell
ATM - At the moment

BoF - Birds of Feather

FWIW - For what its worth

IIRC - If I remember/recall correctly

IOW - In other words

noob - newbie, online slang for newcommer

PITA - Pain in the ass/arse

RTBC - Reviewed and tested by community

RTFM - Read the freaking manual

YMMV - Your milage may vary

Drupal Overview

Drupal Conceptual Architecture/Layers

Customizing Content Types

Install the Content Construction Kit

See the CCK Handbook on Drupal's website

Durpal Uses in-context preview/editing

Drupal Paths
Unique identifiers

Versions
Latest version is 6.14, 7 under development and will use PHP 5.2. Use PHP 5.2 with the installation.



Wednesday, October 14, 2009

Export/Import DataPump - Submitting DataPump Job via OEM - User does not exist

Subject: Export/Import DataPump - Submitting DataPump Job via OEM Database Control Fails with ORA-20204 in SYSMAN.MGMT_USER
Doc ID: Note:294680.1 Type: PROBLEM
Last Revision Date: 29-DEC-2004 Status: PUBLISHED
The information in this article applies to:
- Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 10.2.0.0
- Oracle Server - Personal Edition - Version: 10.1.0.2 to 10.2.0.0
- Oracle Server - Standard Edition - Version: 10.1.0.2 to 10.2.0.0
This problem can occur on any platform.
ERRORS
——
ORA-20204: User does not exist: SCOTT
ORA-06512: at “SYSMAN.MGMT_USER”, line 121
ORA-06512: at “SYSMAN.MGMT_JOBS”, line 109
ORA-06512: at “SYSMAN.MGMT_JOBS”, line 48
ORA-06512: at line 1
SYMPTOMS
——–
1. In SQL*Plus, you create a directory object, and grant the read and write
privilege on that directory, and the DBA privilege to SCOTT:
connect system/manager
create directory my_dir as ‘/home/datapump’;
grant read, write on directory my_dir to scott;
grant dba to scott;
column grantee format A20
column privilege like grantee
column table_name like grantee
column granted_role like grantee
select * from dba_role_privs where grantee=’SCOTT’;
GRANTEE GRANTED_ROLE ADM DEF
——————– ——————– — —
SCOTT DBA NO YES
select * from dba_sys_privs where grantee=’SCOTT’;
GRANTEE PRIVILEGE ADM
——————– ——————– —
SCOTT CREATE TABLE NO
SCOTT CREATE SESSION NO
SCOTT UNLIMITED TABLESPACE NO
select grantee,table_name,privilege from dba_tab_privs where grantee=’SCOTT’;
GRANTEE TABLE_NAME PRIVILEGE
——————– ——————– ——————–
SCOTT MY_DIR WRITE
SCOTT MY_DIR READ
2. You log in as user SCOTT to the ‘Oracle Enterprise Manager 10g
Database Control’ on the URL: http://my_host.my_domain:5500/em
3. You try to submit an export DataPump job:
- On the main Database Summary page, click on the link ‘Maintenance’
- On the main Database Maintenance page, click under ‘Utilities’ on the link
‘Export to files’
- On the page ‘Export: Export Type’, select ‘Schemas’, provide the Host
Credentials (OS username/password) to submit a job, and click on ‘Continue’
- On the page ‘Export: Schemas’ (step 1), add the SCOTT schema, and click on
‘Next’
- On the page ‘Export: Options’ (step 2), specify the Directory Object ‘MY_DIR’
and change the name of the Log file to a file that does not already exist,
and click on ‘Next’
- On the page ‘Export: Files’ (step 3), specify the Directory Object ‘MY_DIR’
and change the name of the Dump file to a file that does not already exist,
and click on ‘Next’
- On the page ‘Export: Schedule’ (step 4), specify the Job Name (e.g. EXP_1),
and click on ‘Next’
- On the page ‘Export: Review’ (step 5), click on ‘Submit Job’
4. The submit of the job fails with:
Export Submit Failed
ORA-20204: User does not exist: SCOTT
ORA-06512: at “SYSMAN.MGMT_USER”, line 121
ORA-06512: at “SYSMAN.MGMT_JOBS”, line 109
ORA-06512: at “SYSMAN.MGMT_JOBS”, line 48
ORA-06512: at line 1
CAUSE
—–
The user SCOTT does not have the privileges (such as MGMT_USER) to submit
the job.
FIX
In the Enterprise Manager Console, add the user who will run the Export/Import
DataPump job as an Administrator who can login to Enterprise Manager to perform
management tasks like set Blackouts, email notification schedules.
- login as user SYSTEM (or user SYS) to the ‘Enterprise Manager 10g
Database Control’
- At the top right, click on the link ‘Setup’
- On the page ‘Administrators’, click on the button ‘Create’
- On the page ‘Create Administrator: Properties’, add the user who will run
the Export/Import DataPump job
- Click on the button: ‘Finish’
- On the page ‘Create Administrator: Review’, click on the button: ‘Finish’
- On the page ‘Administrators’, confirm that the user has been added.
- At the top right, click on the link ‘Logout’
Now login as the user who will run the Export/Import DataPump job (SCOTT),
and re-create the DataPump job.

Monday, October 12, 2009

Test CC #s for Sandbox testing

Card Type Card Number CVC Expiration Date
American Express 3782 8224 6310 005 any four digits any future date
Discover 6011 1111 1111 1117 any three digits any future date
MasterCard 5555 5555 5555 4444 any three digits any future date
VISA 4111 1111 1111 1111 any three digits any future date

Thursday, January 15, 2009

Rotate log files

If there is no inbuild mechanism to rotate log files in an application, you can use logrotate.
Put something like this in /etc/logrotate.d in a file.
/opt/tomcat/logs/catalina.out {
rotate 14
size 5M
copytruncate
compress
postrotate
# reset ownership to comply with directory's permissions
chown vgnadmin:webops /opt/tomcat/logs/catalina.out.*
endscript
notifempty
missingok
}

Tuesday, December 9, 2008

Thursday, November 13, 2008

Semantic Web

From LinkedIn Answers
- A book like "A Semantic Web Primer" (Amazon)
- RDF, RDFS, and their representation (RDF/XML, N3)
- At least an intro to DL (see Franconi course), OWL. Which implies Logics
- At least one SW framework (Jena, Sesame)
- SPARQL
- Ontology engineering, how to build ontologies (also some top-level ontologies, like DOLCE)
- Protegé (and maybe SWOOP also)
- Existing ontologies and schemas (e.g.: SKOS, FOAF)
- Good computer science background, good knowledge of Software Engineering (e.g.: UML, Relational model, Web development), some education in AI would be appreciated
- In addition to general knowledge, specialization/experience in some particular application domain (mine is Life Science, which I think is cool, but there are others)
- See also:
http://iswc2008.semanticweb.org/tutorials/

-Explorer's Guide to the Semantic Web and Model Driven Architecture and Ontology Development.

-http://en.wikibooks.org/wiki/XQuery#The_Semantic_Web

-iswc2008 papers from:

http://sunsite.informatik.rwth-aachen.de/Publications/CEUR-WS/Vol-401/

while similar papers from other conferences can be found in the root folder:

http://sunsite.informatik.rwth-aachen.de/Publications/CEUR-WS/