Near with stopwords

Hi, we have an unexpected behavior with the command NEAR with a stopword inside. Example:
select * from textos
where contains(texto,'near((cat,and,dog),0,true)')>0
The error that is returned is:
ORA-29902: error in executing ODCIndexStart() routine ORA 20000: Oracle Text error: DRG-50901: text query parser syntax error
Thanks!
Regards

"and" is both a reserved word and a stopword, so you will need to both escape it and remove it from your stoplist or use a stoplist that does not contain it, as shown below.
scott@ORA92> -- reproduction of error:
scott@ORA92> create table textos
2 (texto varchar2(60))
3 /
Table created.
scott@ORA92> insert into textos values ('cat and dog')
2 /
1 row created.
scott@ORA92> create index textos_idx
2 on textos (texto)
3 indextype is ctxsys.context
4 /
Index created.
scott@ORA92> select * from textos
2 where contains(texto,'near((cat,and,dog),0,true)')>0
3 /
select * from textos
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50901: text query parser syntax error on line 1, column 11
scott@ORA92> -- correction of error:
scott@ORA92> drop index textos_idx
2 /
Index dropped.
scott@ORA92> create index textos_idx
2 on textos (texto)
3 indextype is ctxsys.context
4 parameters ('stoplist ctxsys.empty_stoplist')
5 /
Index created.
scott@ORA92> select * from textos
2 where contains(texto,'near((cat,{and},dog),0,true)')>0
3 /
TEXTO
cat and dog
scott@ORA92>

Similar Messages

  • Compare word by word  with stopword list

    I write my program to read file text and separate the word by word. Now I want compare the word with stopword list. Please help me how to I compare the word with stopword list...please help me..thanks...
    import java.io.*;
    import java.util.*;
    import java.util.StringTokenizer;
    class token {
    int flag = 0;
    public static void main (String args[])
         token baca = new token();
         baca.readFile();
    } // end main
    void readFile()
         String record = null;
    try {
              FileReader fr = new FileReader("farrago.txt");
              FileWriter out = new FileWriter("test1.txt");
              BufferedReader br = new BufferedReader(fr);
              BufferedWriter br1 = new BufferedWriter(out);
              record = new String();
         while ((record = br.readLine()) != null)
              StringTokenizer stTok = new StringTokenizer(record," ");
              while (stTok.hasMoreTokens())
                   //System.out.println(stTok.nextToken());
                   br1.write(" " + stTok.nextToken());
                   br1.newLine();
         } // END WHILE
         br.close();
    br1.close();
         } catch (IOException e)
         // catch possible io errors from readLine()
         System.out.println("IOException error: ");
         e.printStackTrace();
    } // end of readMyFile()
    } // end of class

    okay, thanks..now i add all stopwordlist in hash table,see my code..
    Now how I want to COMPARE this stopwordlist in hashtable with my text file.
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    public class MySword {
    public static void main (String args[])
         Hashtable ht;
    String s;
         ht = new Hashtable();
         try {
         BufferedReader in = new BufferedReader(new FileReader("stopwordEnglish.txt"));
         while ((s = in.readLine()) != null)
              ht.put(new Integer(s.hashCode()), s);
         catch(IOException e)
              System.err.println("IO ERROR: " + e.getMessage());
         System.out.println("words:"+ ht);
    }

  • Multi-value parameter report - error : Incorrect syntax near ',' with multi-valued parameter in SSRS

    Hey,
    I created a report in Reporting Services  where I added multi-value parameter
    ( Filter).  When I run my report, and try to select more than one parameter, I get an error:  Incorrect syntax near ','
    then i put in parameter expression :  join(Parameters!Filter.Value,",")  
    and add : dbo.ufnSplit  before calling parameter in query :
    >>>  set @valwhere = 'table.field IN (select * from dbo.ufnSplit(' + @Filter + ' , '',''))'
    but i still have errors : incorrect syntax near 'text'  which is the second value of the picklist of the parameter,
    Please Any idea ?
    Thanks !!

    I have sometimes had to collate as default with the SQL query
    currently I've just using
    CompanyName in
    (selectitemfromdbo.fnSplit(@function,','))
    In the SSRS report text box I have Join(Parameters!Company.Value,",")

  • CREATE TABLE AS using WITH

    I am converting a PostreSQL query to T-SQL but am running into a syntax error that I cannot understand.
    My main query below works fine.
    WITH itowner AS (
            SELECT itowner_1.comp1id AS businessserviceid,
                person.name AS itowner_name,
                person.username AS itowner_username,
                person.component_id AS itowner_id
               FROM dbo.rel_BusinessServiceHasITOwnerPerson itowner_1
          JOIN comp_Person person ON person.component_id = itowner_1.comp2id
    busowner AS (
             SELECT bown.comp1id AS businessserviceid,
                person.name AS busown_name,
                person.username AS busown_username,
                person.component_id AS busown_id
               FROM dbo.rel_BusinessServiceHasBusinessOwnerPerson bown
          JOIN comp_Person person ON person.component_id = bown.comp2id
    cat AS (
            SELECT biz.component_id businessserviceid, biz.bsname AS Business_Service, 
    c.name AS Category
    FROM dbo.comp_BusinessService biz
    left outer join rel_BusinessServiceHasCategory a on biz.component_id = a.comp1id
    join comp_ApoCategory c on a.comp2id = c.component_id
    LEFT OUTER JOIN comp_ApoCategory c1 ON c.parent = c1.objectuuid
     SELECT 
        cat.Category,
        biz.component_id AS businessservice_id,
        biz.bsname as businessservice_name,
        biz.description,
        itowner.itowner_name,
        busowner.busown_name
       FROM comp_BusinessService biz
       LEFT JOIN itowner  ON itowner.businessserviceid  = biz.component_id
       LEFT JOIN busowner ON busowner.businessserviceid = biz.component_id
       LEFT JOIN cat      ON cat.businessserviceid      = biz.component_id;
    However, as soon as I wrap it in a CREATE TABLE AS I get an syntax error at the first WITH.
       Incorrect syntax near 'WITH'.  Expecting ID.
    Below is the full statement.
    CREATE TABLE "dm_amd_business_services" AS
    WITH itowner AS (
            SELECT itowner_1.comp1id AS businessserviceid,
                person.name AS itowner_name,
                person.username AS itowner_username,
                person.component_id AS itowner_id
               FROM dbo.rel_BusinessServiceHasITOwnerPerson itowner_1
          JOIN comp_Person person ON person.component_id = itowner_1.comp2id
    busowner AS (
             SELECT bown.comp1id AS businessserviceid,
                person.name AS busown_name,
                person.username AS busown_username,
                person.component_id AS busown_id
               FROM dbo.rel_BusinessServiceHasBusinessOwnerPerson bown
          JOIN comp_Person person ON person.component_id = bown.comp2id
    cat AS (
            SELECT biz.component_id businessserviceid, biz.bsname AS Business_Service, 
    c.name AS Category
    FROM dbo.comp_BusinessService biz
    left outer join rel_BusinessServiceHasCategory a on biz.component_id = a.comp1id
    join comp_ApoCategory c on a.comp2id = c.component_id
    LEFT OUTER JOIN comp_ApoCategory c1 ON c.parent = c1.objectuuid
     SELECT 
        cat.Category,
        biz.component_id AS businessservice_id,
        biz.bsname as businessservice_name,
        biz.description,
        itowner.itowner_name,
        busowner.busown_name
       FROM comp_BusinessService biz
       LEFT JOIN itowner  ON itowner.businessserviceid  = biz.component_id
       LEFT JOIN busowner ON busowner.businessserviceid = biz.component_id
       LEFT JOIN cat      ON cat.businessserviceid      = biz.component_id;
    Any advice on getting the correct syntax?
    Thanks, Bruce...

    ;WITH itowner AS (
    SELECT itowner_1.comp1id AS businessserviceid,
    person.name AS itowner_name,
    person.username AS itowner_username,
    person.component_id AS itowner_id
    FROM dbo.rel_BusinessServiceHasITOwnerPerson itowner_1
    JOIN comp_Person person ON person.component_id = itowner_1.comp2id
    busowner AS (
    SELECT bown.comp1id AS businessserviceid,
    person.name AS busown_name,
    person.username AS busown_username,
    person.component_id AS busown_id
    FROM dbo.rel_BusinessServiceHasBusinessOwnerPerson bown
    JOIN comp_Person person ON person.component_id = bown.comp2id
    cat AS (
    SELECT biz.component_id businessserviceid, biz.bsname AS Business_Service,
    c.name AS Category
    FROM dbo.comp_BusinessService biz
    left outer join rel_BusinessServiceHasCategory a on biz.component_id = a.comp1id
    join comp_ApoCategory c on a.comp2id = c.component_id
    LEFT OUTER JOIN comp_ApoCategory c1 ON c.parent = c1.objectuuid
    SELECT
    cat.Category,
    biz.component_id AS businessservice_id,
    biz.bsname as businessservice_name,
    biz.description,
    itowner.itowner_name,
    busowner.busown_name
    INTO dm_amd_business_services --New table
    FROM comp_BusinessService biz
    LEFT JOIN itowner ON itowner.businessserviceid = biz.component_id
    LEFT JOIN busowner ON busowner.businessserviceid = biz.component_id
    LEFT JOIN cat ON cat.businessserviceid = biz.component_id;

  • Creation of Custom service

    Hi All,
    I have created a custom component(ZipBulkDownload) in the content server, and created a resource(service) in the component. I am not able to call the service "No Service found for ZipBulkDownload" and in the backend (in the server log file) it is showing the following error message
    "The request was not processed by the Service handler because of a protocol error.".
    In the UCM the following error is been thrown
    IdcAdmin: The request was not processed by the Service handler because of a protocol error.
    The request headers parsed from the request are:
    {IDC_REQUEST_AGENT=webserver, HTTP_ACCEPT_ENCODING=gzip,deflate, SERVER_SOFTWARE=Apache/2.0.63 (Win32), QUERY_STRING=IdcService=ZipBulkDownload, HTTP_CGIPATHROOT=/idc/idcplg, HTTP_INTERNETUSER=sysadmin, ThreadCount=1, HTTP_HOST=localhost:90, EXTERNAL_EXTENDEDUSERINFO=\@Properties LocalData\ndUserLocale=English-US\nblFieldTypes=\ndEmail=abhijit\\\@estuate.com\nuPhone=\nblDateFormat=M/d/yy {h:mm[:ss] {aa}[zzz]}!mAM,PM!tAsia/Calcutta\nuCompany=\ndFullName=System Administrator\ndUserType=\ndUserAuthType=LOCAL\ndUserChangeDate={ts '2010-06-25 19:30:22.406'}\ndUserTimeZone=\ndUserArriveDate={ts '2010-06-25 19:30:12.890'}\nuPhoneNumber=\n\@end\n\n, HTTP_COOKIE=IntradocLoginState=1, HTTP_CONNECTION=keep-alive, SERVER_NAME=localhost, REMOTE_HOST=127.0.0.1, RemoteClientHostAddress=127.0.0.1, HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 ( .NET CLR 3.0.4506.2152), RemoteClientPort=4440, HTTP_TARGETINSTANCE=idc_ucm, EXTERNAL_USERSOURCE=IDC/LOCALUSERS, EXTERNAL_ACCOUNTS=#all, HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5, RemoteClientRemotePort=1395, REMOTE_ADDR=127.0.0.1, IdcAuthChallengeType=http, EXTERNAL_ROLES=admin,sysmanager, IsSocketConnection=1, SERVER_PORT=90, PATH_INFO=/cs-admin/pxs, IDC_REQUEST_CTIME=1277697906, SERVER_PROTOCOL=HTTP/1.1, SERVER_PROTOCOL_TYPE=NONE, HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8, PATH_TRANSLATED=E:/UCM/weblayout/idcplg, GATEWAY_INTERFACE=CGI/1.1, REQUEST_METHOD=GET, HTTP_RELATIVEURL=/cs-admin/, SCRIPT_NAME=/idc/idcplg/cs-admin/pxs}
    !$IdcAdmin: !$The request was not processed by the Service handler because of a protocol error.<br>The request headers parsed from the request are:<br>{IDC_REQUEST_AGENT=webserver\, HTTP_ACCEPT_ENCODING=gzip\,deflate\, SERVER_SOFTWARE=Apache/2.0.63 (Win32)\, QUERY_STRING=IdcService=ZipBulkDownload\, HTTP_CGIPATHROOT=/idc/idcplg\, HTTP_INTERNETUSER=sysadmin\, ThreadCount=1\, HTTP_HOST=localhost:90\, EXTERNAL_EXTENDEDUSERINFO=\\@Properties LocalData\\ndUserLocale=English-US\\nblFieldTypes=\\ndEmail=abhijit\\\\\\@estuate.com\\nuPhone=\\nblDateFormat=M/d/yy {h:mm[:ss] {aa}[zzz]}\!mAM\,PM\!tAsia/Calcutta\\nuCompany=\\ndFullName=System Administrator\\ndUserType=\\ndUserAuthType=LOCAL\\ndUserChangeDate={ts '2010-06-25 19:30:22.406'}\\ndUserTimeZone=\\ndUserArriveDate={ts '2010-06-25 19:30:12.890'}\\nuPhoneNumber=\\n\\@end\\n\\n\, HTTP_COOKIE=IntradocLoginState=1\, HTTP_CONNECTION=keep-alive\, SERVER_NAME=localhost\, REMOTE_HOST=127.0.0.1\, RemoteClientHostAddress=127.0.0.1\, HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 ( .NET CLR 3.0.4506.2152)\, RemoteClientPort=4440\, HTTP_TARGETINSTANCE=idc_ucm\, EXTERNAL_USERSOURCE=IDC/LOCALUSERS\, EXTERNAL_ACCOUNTS=#all\, HTTP_ACCEPT_LANGUAGE=en-us\,en;q=0.5\, RemoteClientRemotePort=1395\, REMOTE_ADDR=127.0.0.1\, IdcAuthChallengeType=http\, EXTERNAL_ROLES=admin\,sysmanager\, IsSocketConnection=1\, SERVER_PORT=90\, PATH_INFO=/cs-admin/pxs\, IDC_REQUEST_CTIME=1277697906\, SERVER_PROTOCOL=HTTP/1.1\, SERVER_PROTOCOL_TYPE=NONE\, HTTP_ACCEPT=text/html\,application/xhtml+xml\,application/xml;q=0.9\,*/*;q=0.8\, PATH_TRANSLATED=E:/UCM/weblayout/idcplg\, GATEWAY_INTERFACE=CGI/1.1\, REQUEST_METHOD=GET\, HTTP_RELATIVEURL=/cs-admin/\, SCRIPT_NAME=/idc/idcplg/cs-admin/pxs}<br>--------------<br>No service defined for ZipBulkDownload.!syExceptionType,java.lang.Throwable
    java.lang.Throwable
         at intradoc.common.IdcLogWriter.doMessageAppend(IdcLogWriter.java:80)
         at intradoc.common.Log.addMessage(Log.java:270)
         at intradoc.common.Log.errorEx2(Log.java:218)
         at intradoc.common.LoggingUtils.logMessage(LoggingUtils.java:99)
         at intradoc.common.SystemUtils.reportErrorEx(SystemUtils.java:555)
         at intradoc.common.SystemUtils.errEx(SystemUtils.java:640)
         at intradoc.common.SystemUtils.err(SystemUtils.java:631)
         at intradoc.server.ServiceManager.onError(ServiceManager.java:630)
         at intradoc.server.ServiceManager.processCommand(ServiceManager.java:331)
         at intradoc.server.IdcServerThread.run(IdcServerThread.java:197)
    Please suggest us where we are going wrong or please give me a url which helps me to create a custom service.It is really urgent as my project deadline is too near
    With thanks and regards
    Mohan
    Edited by: user13306659 on Jun 27, 2010 10:02 PM

    Hey there,
    A couple things to check:
    1. Is the component enabled? Obvious question but you would be surprised how often it happens. I've been doing this 6+ years and sometimes I still forget to enable a new component I've created.
    2. Did you restart the content server? Service definitions need a content server restart to take affect.
    A few other things:
    1. There is an out of the box component called the ContentBasket that does the exact functionality you built. It takes a set of content items, and zips them up for download.
    2. A reference for creating almost all the pieces of a custom component in UCM: http://cfour.fishbowlsolutions.com/2010/05/28/how-to-adding-an-external-database-lookup-to-a-ucm-checkin-form/
    3. Take Venkat's suggestion and post anything UCM specific in the ECM forum in the future: WebCenter Content
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw_OTN_WCS >

  • Third Party Document/object  Repository Compatiblity

    We are in the process of planning for the implementation of Oracle Webcenter as our primary Document Management System. I have searched the Webcenter site and forums, but cannot find an answer to my question:
    Can Oracle Webcenter be used with a separate Document Repository? Note these are final documents that are inactive and if revised would also be separate documents. They however it would be useful if they could be searched and capable of being part of the DMS workflow for final dispostion of Documents (not generic "content"), that can be sent from Webcenter. In this scenario, Webcenter is used only as the active document application, and when that document is finalized, sent to the non-Oracle repository.
    If this is possible, can you search that repository via Webcenter? Or is the Webcenter DMS proprietary, and not open source with other non-Oracle based Document and object repositories, e.g. Dspace and Fedora?
    Thank you in advance.

    I think the answer is: yes, it is possible, but you will need to consider which product is responsible for what functionality.
    There is not any product in the WebCenter portfolio that does indexing. Even WebCenter Content uses other technologies such as Oracle Database (namely, Oracle Text), or Oracle Secure Enterprise Search for that. In fact, Oracle SES might a product you are looking for - but it'd need to be licensed separately, and you'd need to check if there are adapters for the systems you mentioned (or you'd need to write your own, or you a compatible one).
    As for participation in workflows or dispositions (federated records management), it is likewise. WebCenter Content: Records (formerly, Universal Records Management) is capable of federated records management on condition that an adapter exists. In fact, for filesystem repositories (that might be compatible) it uses Oracle SES (which is one of pre-reqs), so it might be the same question as before.
    Alternatively, you could use 'pure workflow' products such as Oracle BPM or BPEL Process Manager that can integrate nearly with anything via SOAP.
    Finally, you could try to 'link' documents in your other repository to document in WebCenter Content. This would probably be a customization.

  • Third Party Document/Object Repositories

    I was referred to this Forum from the Webcenter Content Forum, as I could not get a definitive answer. We are in the planning stages of implmenting Webcenter for a DMS. If SES is used, will it search other indices in separate document repositories that use PostgresSQL, e.g. Dspace, Fedora? Or even NoSQL?
    In order to decide if it will work, the question appears to be one of open APi's. This is not just a matter of linking files, but searching and retrieving them. Does Webcenter/SES include truly open API's? I see some hints that it might (with alot of customization), but no one has seemed to address this specific use case in the documentation or on the Forums I can identify.
    Has anyone else tried this?
    Thanks in advance.

    I think the answer is: yes, it is possible, but you will need to consider which product is responsible for what functionality.
    There is not any product in the WebCenter portfolio that does indexing. Even WebCenter Content uses other technologies such as Oracle Database (namely, Oracle Text), or Oracle Secure Enterprise Search for that. In fact, Oracle SES might a product you are looking for - but it'd need to be licensed separately, and you'd need to check if there are adapters for the systems you mentioned (or you'd need to write your own, or you a compatible one).
    As for participation in workflows or dispositions (federated records management), it is likewise. WebCenter Content: Records (formerly, Universal Records Management) is capable of federated records management on condition that an adapter exists. In fact, for filesystem repositories (that might be compatible) it uses Oracle SES (which is one of pre-reqs), so it might be the same question as before.
    Alternatively, you could use 'pure workflow' products such as Oracle BPM or BPEL Process Manager that can integrate nearly with anything via SOAP.
    Finally, you could try to 'link' documents in your other repository to document in WebCenter Content. This would probably be a customization.

  • Non-Programmer Needs Help!!! (desperately)

    Ok, I want to create games for a virtual world website. I also want the website to be a game itself. Right now, I am working on creating a card game for two players (with the option of playing the computer). They each have 2 decks to draw from and a place for 2 cards to be displayed (their "hand") before they place it on the game board. I don't want their opponent to see the cards in their "hand" until they are placed on the game board. When a player has two cards in his hand, I want them to have the capability of enlarging the image of the card to full size in a pop-up type window, so they can calculate their strategy. The game itself is similar to the popular battle card games, so regular playing card games don't help me. I want the image of the card to be displayed on the game board either right side up or upside down depending upon the button pushed by the player. I want each player to play 1 card from one pile (blue-50 cards total) and 4 cards from the other pile (red-200 cards total). They can only draw 1 blue card, and 1 red card on their first turn. After that, they can only draw 1 red card per turn, until they have drawn 4 red cards total. The total number of cards each player can have on the game board is 5 cards, then the round ends. Each deck has the same cards but shuffled in random order. The decks can't be stacked the same, for each player. Each card has a certain value. The card from the blue pile is the main card that the cards from the red pile will add to or subtract from. If the match between the opponents is tied, no score is given to either player, but the cards from both players to go to the corresponding "tie" piles (one red and one blue) that will be randomly distributed by the computer, once each player has exhausted their own decks first. The tie piles are used at the end of the game to play the final round or rounds of the game. After each round, the victor of that round gets the points on his opponents cards, plus 1000 points for winning the round. I want the cards to just "disappear" or placed in the computer's "discard" pile after each round, so they cannot be used again. I want each player to have a turn being first at the beginning or each round. (If player 1 is first in round 1, player 2 will go first in round 2 and so on.) I want the scores for each card to be calculated and placed in a box according to which player the cards belong to. Once the round is ended, the victor will receive the final score in their "total score" box. I also want a "round number" box to indicate which round it is. No winner will be declared until the players use all their cards and/or the computer deals all the tie deck cards (which are shuffled before dealing). At the end of the game, the person with the highest score is the winner.
    I also would like to allow players to challenge each other and accept or decline a challenge. In order to do that, the players must login first. There must also be a list of available players to challenge.
    Is there a program that not only builds the user interface, but also will allow me to insert my graphics? Kind of like WYSIWYG HTML builders? (Preferably FREE) I have a gui builder, but have no clue as to how to put in the graphics or get it to work. I don't have any connections to the programming world, nor am I able to return to school at this time. The programs that Sun offers are not adequate for me, because I need to be able to install it, and run it without going through the "msdos classpath" thingy. I need a "wizard" type program that is truly for "dummies." Something that I can just put in my images and tell it what I want it to do IN PLAIN ENGLISH. For instance, if I want the "login button" to save the login information to a file and/or to the game. The players can have their same login info stored in a file, and they can return without creating a new name. The website service I want to place this on, doesn't allow chmoding for CGI, so I can't use that. Another example, if I want each card to have a differnt point level and either subtract from or add to the blue. Or how to get the pop-up for the card displayed in the player's hand. I don't know what else to do. Any suggestions?

    <blockquote>
    The programs that Sun offers are not adequate for me, because I need to be able to install it, and run it without going through the "msdos classpath" thingy. I need a "wizard" type program that is truly for "dummies." Something that I can just put in my images and tell it what I want it to do IN PLAIN ENGLISH. For instance, if I want the "login button" to save the login information to a file and/or to the game. The players can have their same login info stored in a file, and they can return without creating a new name. The website service I want to place this on, doesn't allow chmoding for CGI, so I can't use that.
    </blockquote>
    This is a surely a joke. You honestly expect to get this for free. Even for an experienced programmer, to write 3/4 decent games - configure them to your network and meet these conditions. You're talking BIG or big-ish project here. As per your request, there is no such thing as point and click programming and there never ever will be.
    Use Macromedia Director. Closest thing you'll get to
    WYSIWYG programming. It's for simpletons and
    non-programmers.Ah, noooo. The shockwave games have been programmed in Lingo, which is quite powerful and much harder as a programming language than java (its also outdated, has some nasty featured and its a definite falling star). Flash gets a bit nearer with a point and click effort and you can do a surprising amount without knowing about programming, also as a media for the Internet its better supported than Shockwave and even java for the Web. But for any sort of worthwhile game need sprogramming knowledge.
    To conclude:
    you don't want to learn to program.
    noone is going to do this for you.
    You're a bit f***ed then aren't you.
    On a brighter note, if you pay me ?1,000.00 (half in advance), I'll think about it - solution in java or Flash, 3 games, ?1,500.00 for both. I can take it or leave it btw, couldn't give a sh*t either way.

  • Client-side greek character set problem

    hi everyone,
    i am a .net developer and absolutelly new to oracle, its my first project that i have make oracle and .net co-operate and it's proving to be a nightmare!
    i ll try and provide as much info as possible to you
    we have a unix sap server with oracle 10.something on it (i can check exactly what version if that's of importance) and i am writting a .net app which accesses the oracle db and retrieve some data we need
    the locale settings of the db are american_america.we8dec and i cannot temper with that machine, it is out of the question
    i have made the connection to the db using just connection string info, not tns and stuff, and i have set my dev machine's nls_lang to we8dec everywhere i could find it with a 'find' in the registry
    however my app displays the data (which is in greek) showing random symbols that obviously make to sense
    furthermore when i connect to the db via sql developer or navicat i still get the same symbols
    i understand it is something to do with my client system's settings but i cant work it out
    i would really appreciate your help i am sorry if it is something very simple but i just cant find it
    thanks

    user9084006 wrote:
    i am a .net developer and absolutelly new to oracle, its my first project that i have make oracle and .net co-operate and it's proving to be a nightmare!Welcome. It's a brand new universe, but if you take it step by step I'm sure you'll do fine. Get someone near with Oracle dev and dba background to guide you, so you don't get stuck or go down broken roads.
    we have a unix sap server with oracle 10.something on it (i can check exactly what version if that's of importance)It is of importance most of the time. Down to at least 4 positions (for example, "10g" is just a marketing label and mostly useless in a techincal context - 10.2.0.5 is more like it).
    Also mention platform (unix OS) details.
    and i am writting a .net app which accesses the oracle db and retrieve some data we needHow is the to-be retrieved data loaded or entered to begin?
    >
    the locale settings of the db are american_america.we8dec and i cannot temper with that machine, it is out of the question Please post output from:
    SQL> select * from nls_database_parameters where parameter like '%CHARACTERSET';
    and i have set my dev machine's nls_lang to we8dec everywhere i could find it with a 'find' in the registryDoes your dev (client) machine use a "we8dec" character set? Likely, as you seem to be on Windows, you should have set nls_lang client char set part to match win-1252 or whatever client char set (code page) is in use.
    however my app displays the data (which is in greek) showing random symbols that obviously make to senseNo surprise since DEC character set does not have a greek character in its repertoire. If I'm not all mistaken DEC MCS (or similar) is the charcter set to which WE8DEC corresponds. You could check against mapping table in Locale builder, but available characters should be per following link or close enough.
    http://czyborra.com/charsets/iso8859.html#ISO-8859-1 (second chart is DEC-MCS)
    Please provide a sample of those "random symbols".
    furthermore when i connect to the db via sql developer or navicat i still get the same symbolsIf that's Oracle SQL Developer it should give a true picture of what's actually stored - which, unfortuantely, seem to be invalid character data.
    i understand it is something to do with my client system's settings but i cant work it out See above. But even if you correctly setup client environment, the db won't be able to store the data if databas character set is in fact WE8DEC.
    >
    i would really appreciate your help i am sorry if it is something very simple but i just cant find it I'm not sure, but it would seem as you have been given unfeasible conditions to work from. So maybe it's not up to you, until a character set migration has been taken place.
    In general, the Database character set should be a suitable superset (repertoire) that covers all current (and hopefully future) language alphabets requirements.
    You might want to search forum for 'we8dec' to find previous related discussions.
    Edit:
    - Added url with DEC MCS.
    - platform info
    Edited by: orafad on Jan 26, 2012 12:28 PM
    Edited by: orafad on Jan 26, 2012 12:43 PM

  • Text Search skiping HTML tags

    I have a table containing clob column.
    select code, details from search order by code;
    CODE DETAILS
    4 just a <b>test </b>insert
    5 just a <b>test</b> insert
    9 <HTML>just a <i>test</i> insert</HTML>
    10 checking test insert
    I have created a context index and add html tags in the stop list.
    exec ctx_ddl.create_stoplist('mystop', 'BASIC_STOPLIST');
    exec ctx_ddl.add_stopword('mystop', '<b>');
    exec ctx_ddl.add_stopword('mystop', '</b>');
    CREATE INDEX searchi ON search(details)
    INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS
    ('FILTER CTXSYS.AUTO_FILTER SECTION GROUP CTXSYS.AUTO_SECTION_GROUP STOPLIST MYSTOP');
    But when I search 'test insert' it only shows the following rows
    SQL> SELECT score(1), code, details FROM search WHERE CONTAINS(details, 'test insert', 1) > 0 ORDER BY score(1);
    SCORE(1) CODE DETAILS
    5 10 checking test insert
    5 9 <HTML>just a <i>test</i> insert</HTML>
    I would like to define a text index which skips the html keywords and returns all the rows contain the searching phrase

    Since you did not use code tags in your post, most of your html does not show, so it is difficult to tell what html is in your data or what values you set for your stopwords. One problem with stopwords is that, although the word is not indexed, it still expects some word where the stopword was, so searching for "word1 word2" will not find "word1 removed_stopword word2". How about using a procedure_filter as demonstrated below? I only removed a few tags, so you would need to either expand it to include others or searching for starting and ending tags and remove what is inbetween.
    SCOTT@orcl_11g> CREATE TABLE search
      2    (code      NUMBER,
      3       details  CLOB)
      4  /
    Table created.
    SCOTT@orcl_11g> INSERT ALL
      2  INTO search VALUES (4, 'just a <b>test</b> insert')
      3  INTO search VALUES (5, 'just a <i>test</i> insert')
      4  INTO search VALUES (9, '<HTML>just a test insert</HTML>')
      5  INTO search VALUES (10, 'checking test insert')
      6  SELECT * FROM DUAL
      7  /
    4 rows created.
    SCOTT@orcl_11g> CREATE OR REPLACE PROCEDURE myproc
      2    (p_rowid    IN ROWID,
      3       p_in_clob  IN CLOB,
      4       p_out_clob IN OUT NOCOPY CLOB)
      5  AS
      6  BEGIN
      7    p_out_clob := REPLACE (p_in_clob, '<html>', '');
      8    p_out_clob := REPLACE (p_out_clob, '</html>', '');
      9    p_out_clob := REPLACE (p_out_clob, '<HTML>', '');
    10    p_out_clob := REPLACE (p_out_clob, '</HTML>', '');
    11    p_out_clob := REPLACE (p_out_clob, '<b>', '');
    12    p_out_clob := REPLACE (p_out_clob, '</b>', '');
    13    p_out_clob := REPLACE (p_out_clob, '<B>', '');
    14    p_out_clob := REPLACE (p_out_clob, '</B>', '');
    15    p_out_clob := REPLACE (p_out_clob, '<i>', '');
    16    p_out_clob := REPLACE (p_out_clob, '</i>', '');
    17    p_out_clob := REPLACE (p_out_clob, '<I>', '');
    18    p_out_clob := REPLACE (p_out_clob, '</I>', '');
    19  END myproc;
    20  /
    Procedure created.
    SCOTT@orcl_11g> SHOW ERRORS
    No errors.
    SCOTT@orcl_11g> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('myfilter', 'PROCEDURE_FILTER');
      3    CTX_DDL.SET_ATTRIBUTE ('myfilter', 'PROCEDURE', 'myproc');
      4    CTX_DDL.SET_ATTRIBUTE ('myfilter', 'ROWID_PARAMETER', 'TRUE');
      5    CTX_DDL.SET_ATTRIBUTE ('myfilter', 'INPUT_TYPE', 'CLOB');
      6    CTX_DDL.SET_ATTRIBUTE ('myfilter', 'OUTPUT_TYPE', 'CLOB');
      7  END;
      8  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE INDEX searchi
      2  ON search (details)
      3  INDEXTYPE IS CTXSYS.CONTEXT
      4  PARAMETERS ('FILTER myfilter')
      5  /
    Index created.
    SCOTT@orcl_11g> SELECT token_text FROM dr$searchi$i
      2  /
    TOKEN_TEXT
    CHECKING
    INSERT
    TEST
    3 rows selected.
    SCOTT@orcl_11g> COLUMN details FORMAT A35
    SCOTT@orcl_11g> SELECT score (1), code, details
      2  FROM   search
      3  WHERE  CONTAINS (details, 'test insert', 1) > 0
      4  ORDER  BY score (1)
      5  /
      SCORE(1)       CODE DETAILS
             3          4 just a <b>test</b> insert
             3          5 just a <i>test</i> insert
             3          9 <HTML>just a test insert</HTML>
             3         10 checking test insert
    4 rows selected.
    SCOTT@orcl_11g>

  • Which 15" MacBook Pro will be best for my planned use?

    I am heading back to school and am required to get a MacBook Pro for class (I am a Design, Art & Technology - AKA Multimedia - major).  The suggested specs from the school are as follows:
    15-inch MacBook Pro
    2.7GHz Quad-core Intel Core i7, NVIDIA GeForce GT 650M with 1GB GDDR5 memory
    8GB 1600MHz DDR3 SDRAM - 2x4GB
    750GB Serial ATA Drive @ 7200 rpm
    I am in the process of researching if this is the best computer for my needs.  I am upgrading from my current laptop - a 2.53 GHz 15" MacBook Pro from '09 with 4GB of RAM and 7200 RPM 750 GB HDD (upgraded from a 5200 RPM 250 GB HDD) running 10.6.8 - which has been holding up great for four years.  At this point though I need a second computer that has a quadcore processor.
    My normal/expected usage:
    I will likely be working on projects in web design, some light game design, app design, interactive installation, etc. for class.  I anticipate working on video editing software and Photoshop as well.  I regularly use Ableton Live with an external audio interface, MIDI devices and third party plugins for music production (20 to 40+ track mixing & mastering) and may start to use it for live or interactive projects.  I run an external monitor as a second screen when at home and do a good amount of multitasking work with the second display where quickness switching between applications is key.
    I stopped by the local Apple store today and had a conversation with one of the sales reps exploring the possibilities of deviating from my school's suggested bundle above.  We talked about the benefits of SSD's on performance but the drawbacks on storage size to $$ ratio (I need at least 500GB of storage space, preferably 700GB).  The rep suggested multiple times that the Retina display model would be best for me because it is a more durable computer and makes more sense than dropping the 2.7 GHz processor to a 2.6 GHz on the above recommendation and using the money to upgrade the hard drive to an SSD (since it would be a similar computer but without the hi-res screen).  But the Retina models were in stock, while the custom non-retina model I was considering building online was not, so I do not know if the rep was just doing his job as a salesperson and trying to move what the store had in stock...
    What I am hoping to get opinions on is: Given my planned usage, will the school's suggestion be sufficient/will my downgrade of proccessing power to fund an SSD be insufficient/does it make sense to really stretch my budget and get the Retina 15" 2.7 GHz with 8GB RAM and 512/768 GB SSD?  Even with the educational pricing and my usage, I don't know if the upgrade to the Retina 15" is justified - but I am not very experienced in comparing computers.  Any thoughts or suggestions?  Thanks!

    I say DITTO to what Clinton just told you, AND what woodmeister said.
    As to use of the External HD  use same for all large media files, PDF , pics, movies etc.
    Keep your internal SSD for programs and primary (use it every day) working files of small size.
    Yes, I would replace the SSD as upgrade and RAM myself.
    Ram takes 30 seconds to do, anyone can do that nearly with eyes closed.  EASY
    SSD, youd need to use carbon copy cloner or likewise, clone your internal HD to the SSD, check with a boot to make sure all ok........then install the SSD, very easy, like Clinton said, .....done it many times.
    You asked:
    Are you able to reference info on them without moving the data to the internal SSD?
    Yes, you can alter, open close etc files off the external HD same as you can the internal SSD, however access speed will be slower, but plenty fast enough for anything you want to do, watch movies off same, work on/ alter/ create files on internal and then backup to external
    You need an external HD at any rate for Time Machine backup, and backup in general. NEVER trust any internal HD, or a single copy of anything.
    In fact you should always have at least 2 backups for data, in which case a 2nd external HD is highly recommended.

  • Mac Aluminum keyboard VOLUME KEYS not remapping

    So I bought a new full size aluminum keyboard from apple. Totally great design, except that the volume keys are perplexing me. Apple, in its infinite wisdom, has moved the volume keys to F10, F11 and F12, instead of above the keypad where they used to be.
    There's apparently no way I can figure out how to move these volume keys back to the old places which are easier to use.
    But even if they couldn't move, the big problem I'm having is when I use Final Cut Pro. I map the function keys F1 through F9. However, I CANNOT map any of these keys unless I check the keyboard control panel box to use the function keys as "standard function keys". This is great except that when I check this, I can no longer adjust the volume with the volume keys without holding down the "FN" key. I adjust the volume a LOT while working with video. So holding the FN key each time to adjust or mute the volume is VERY VERY ANNOYING.
    So here's the question, is there a solution to this or are the Apple Engineers giving their users the middle finger? I've called Apple and they have no answers. Awesome.
    Thanks,
    Frustrated

    I had another unrelated keyboard problem that gave me a tiny bit of information.
    (QPI would not connect to keyboard on start and restart, Apple updated the SMC to fix this problem but only on the new Ash Can Mac Pros, older Mac Pros are simply out of luck)
    In this process I was shipped a replacement keyboard for free as a troubleshooting test.
    I was sent the wrong keyboard as luck would have it.
    In this case the wrong keyboard was the "A" model and my Mac Pro uses the "B" model.
    The tiny bit of information I received is that Apple defines the "A" model as "Keyboard, Extended, Wired (2007)" and the "B" model as "Keyboard, Extended, Wired (2011)".
    This can be helpful.
    You can contact Apple and request the 2007 model as a replacement part.... OR.... use the serial number from an older Mac and request a replacement keyboard.
    This will allow you to purchase a spare "A" model. ($50-$60)
    (it also helps to know the model number of the keyboard but not much because Apple does not seem to have that as a reference)
    How long the 2007 model will be available requires a crystal ball but we can bet that it won't be around forever.
    The writing is on the wall.
    DID YOU KNOW?
    You can no longer purchase a compatible Apple Monitor for ANY Mac Pro previous to 2013.
    Since the new model keyboard is incompatible (or nearly) with older machines and there is no Apple monitor compatible with older machines, the writing on the wall says.... you MUST purchase a new Mac if ANY peripheral fails.
    (management calls this.... "doing good business")
    To answer your question.
    If a peripheral fails and your computer is still fully functional, you are out of luck IF.... you did not buy compatible spares when they were available.
    I certainly did. (I bought both original keyboard and aluminum "A" model spares as well as three 27" DisplayPort monitors.... Displayport monitors work with Thunderbolt machines -  Thunderbolt monitors do Not work with DisplayPort machines.... its One-Way Street)

  • Custom Eviction Policy

    Hello,
    I am storing a few Maps into Coherence - each map might have a few hundred entries. The problem i have at this point is with the eviction policies. If i set the high units on the front map of a near cache to be 100 - it never works. It sees 1 entry per map.
    I created a custom eviction policy where it will remove items from my map when the size of the map reaches the high units of that particular near cache. The problem is that this item is no longer present in the front or back map.
    Is there a way to create a custom eviction policy where i can evict entries out of the front map but not the back map?
    Thanks

    When i put my maps into tangosol i just do:
    NamedCache mCache = CacheFactory.getCache(cacheName);
    mCache.put(cacheKey, deepCopy(cacheObj));
    where cacheObject is a Map and i make a deep copy of that map for thread safety.
    The map contains over 100 entries.
    Here is my cache config file:
              <cache-mapping>
                   <cache-name>CouponCache</cache-name>
                   <scheme-name>content-near-with-eviction</scheme-name>
              </cache-mapping>
              <!--
                   Near caching scheme for all Content Caches
              -->
              <near-scheme>
                   <scheme-name>content-near-with-eviction</scheme-name>
                   <front-scheme>
                        <local-scheme>
                             <scheme-ref>default-front-eviction</scheme-ref>
                        </local-scheme>
                   </front-scheme>
                   <back-scheme>
                        <distributed-scheme>
                             <backing-map-scheme>
                                  <local-scheme>
                                       <scheme-ref>default-back-eviction</scheme-ref>
                                  </local-scheme>
                             </backing-map-scheme>
                        </distributed-scheme>
                   </back-scheme>
                   <!--
                        Specifies the strategy used keep the front-tier in-sync with the back-tier
                   -->
                   <invalidation-strategy>present</invalidation-strategy>
                   <!--
                        It specifies whether or not the cache services associated with this cache scheme should be automatically started at a cluster node.
                   -->
                   <autostart>true</autostart>
              </near-scheme>
              <!--
                   Default front cache eviction policy scheme.
              -->
              <local-scheme>
                   <scheme-name>default-front-eviction</scheme-name>
                   <!--
                        Least Frequently Used eviction policy chooses which
                        entries to evict based on how often they are being
                        accessed, evicting those that are accessed least
                        frequently first. (LFU)
                        Least Recently Used eviction policy chooses which
                        entries to evict based on how recently they were
                        last accessed, evicting those that were not accessed
                        the for the longest period first. (LRU)
                        Hybrid eviction policy chooses which entries
                        to evict based the combination (weighted score)
                        of how often and recently they were accessed,
                        evicting those that are accessed least frequently
                        and were not accessed for the longest period first. (HYBRID)
                   -->
                   <eviction-policy>
                        <class-scheme>
                             <class-name>com.att.uma.cache.eviction.MyEvictionPolicy</class-name>
                        </class-scheme>
                   </eviction-policy>
                   <eviction-policy>LRU</eviction-policy>
                   <!--
                        Used to limit the size of the cache.
                        Contains the maximum number of units
                        that can be placed in the cache before
                        pruning occurs.
                   -->               
                   <high-units>100</high-units>     
                   <expiry-delay>12h</expiry-delay>
              </local-scheme>
    I did not list all of the methods specified by the interface - as they are irrelevant to my issue.
    Here is my eviction class:
    public class MyEvictionPolicy extends AbstractMapListener implements EvictionPolicy
         private final static Log log = LogFactory.getLog(DefaultUnitCalculator.class);
         LocalCache m_cache = null;
         public MyEvictionPolicy() {}
         public void requestEviction(int cMaximum)
              int cCurrent = m_cache.getHighUnits();
              if(log.isDebugEnabled())
                   log.debug("* requestEviction: current:" + cCurrent + " to:" + cMaximum);
              // eviction policy calculations
              Iterator iter1 = m_cache.entrySet().iterator();
              while(iter1.hasNext())
                   Entry entry = (Entry) iter1.next();
                   if (cCurrent > cMaximum)
                        if((entry.getValue() instanceof Map))
                             Map map = (Map) deepCopy(entry.getValue());
                             Iterator iter2 = ((Map) entry.getValue()).keySet().iterator();
                             while(iter2.hasNext())
                                  if(cCurrent == map.size())
                                       entry.setValue(map);
                                       break;
                                  String key = (String) iter2.next();
                                  map.remove(key);
                                  if(log.isDebugEnabled())
                                       log.debug("* requestEviction: current:" + cCurrent + " to:" + cMaximum);
                   else
                        break;
    }

  • Subquery and procedure  - problem

    Hello,
    I have procedure created with option "WITH RESULT VIEW ProcViewTest1".
    When I try to execute statement below everything is ok.
    select * from ProcViewTest1 WITH PARAMETERS ('placeholder' = ('$$str1$$', 'Michal'))
    But when I try to execute:
    select *, (select * from ProcViewTest1 WITH PARAMETERS ('placeholder' = ('$$str1$$', 'Michal'))) as col1 from dummy
    I have error: "sql syntax error: incorrect syntax near "WITH"
    I checked that in the case of procedures without parameters can be used as a subquery.
    Why I have this message?
    What shoul I do?
    Maybe the error is in syntax?
    Best regards,

    Hello,
    I have procedure created with option "WITH RESULT VIEW ProcViewTest1".
    When I try to execute statement below everything is ok.
    select * from ProcViewTest1 WITH PARAMETERS ('placeholder' = ('$$str1$$', 'Michal'))
    But when I try to execute:
    select *, (select * from ProcViewTest1 WITH PARAMETERS ('placeholder' = ('$$str1$$', 'Michal'))) as col1 from dummy
    I have error: "sql syntax error: incorrect syntax near "WITH"
    I checked that in the case of procedures without parameters can be used as a subquery.
    Why I have this message?
    What shoul I do?
    Maybe the error is in syntax?
    Best regards,

  • To buy or not to buy CUDA-Card while editing 1080p vs 720p. Advice needed!

    Hello folks,
    I am relatively new to editing, not so much to computers and technologies. I was happily editing some GoPro 720p footage. Nearly with no issues, specifically I can fly through the previews at up to 3x fast-forward. 4x brings up stuttering.
    Now as a contrast I started editing 1080p and it's a pain in the *ss. Above 2x (that is 3x and 4x) the stuttering while previewing footage in Premiere Pro CS6 starts.
    I've read the FAQs (specifically about optimization, CUDA, multi-core, and so on). I have a Quadcore Q9550, 8 GB RAM, SSD main for the OS, secondary SATA 7200 RPM and a third SATA disk. When I look at the task manager and I do the 3x fast-forward in 1080p (also in 720p for the case, no obvious differences actually) I cannot see any "bottleneck" in my hardware. The HDD/SSD drives are nearly not working, the CPU is about 50% and the RAM is also about 50% of usage.
    So I don't understand why this is happening? Do I actually need a CUDA graphics card? (Got a 9600 GT with 512MB RAM) Shouldn't the REST of the PCs hardware be completely "stressed" before I need to add a CUDA card to the system? Why doesn't it use the full CPU quadcore for the preview?
    I also have checked and re-checked the correct sequence settings, and have done it manually and also the "quick way" buy using "Make new sequence from clip". Results where the same.
    I appreciate your advice.
    Thanks in advance,
    marknekk

    When I look at the task manager and I do the 3x fast-forward in 1080p (also in 720p for the case, no obvious differences actually) I cannot see any "bottleneck" in my hardware. The HDD/SSD drives are nearly not working, the CPU is about 50% and the RAM is also about 50% of usage.
    Unlike Win8, Win7 Task Manager won't tell you much about disk I/O - Resource Monitor is a better tool for that.
    Windows 8 Task Manager:
    Note "active time", "average response time". Win8 Task Manager is awesome.
    Windows 7/8 Resource Monitor:
    You still get "active time" (blue graph), giving you an idea of utilization but not "response time".
    Have you tried doing a 3x playback test with the SSD you have? Put a video clip there temporarily, and do a 3x playback on it, see if the behavior is the same.
    Also, tried a 3x playback at 1/4th or 1/8th of resolution?

Maybe you are looking for

  • Using Calculate tab in a field.  Not letting me choose fields to use.

    I am trying to make one field calculate a few other fields into a sum.  But in the Calculate tab it seems I can pick all of the fields on the sheet or none at all.  It's not letting me pick and choose.  What am I doing wrong?

  • ERROR WHILE PRODUCT GROUP CREATION

    Dear All, I am trying to creat the product Group but system is giving the following error. Message No.M3749 "Required parameters missing when calling up module". Please give your valuable input to overcome the issue. Thanks & Regards, Vijay Mankar +9

  • HT202856 What resolutions and refresh rates does the MacBook Pro support?

    Why does this article provide lots of useful information EXCEPT the piece I want?  It does not show what resolutions and refresh rates the MacBook Pro supports over Displayport: http://support.apple.com/kb/HT6008 I've heard it only supports 4k at 30

  • SSIS Web Service Task Error with WCF Service

    I have read all the other posts on this site and have not been able to resolve my issue. For testing purposes i created a very simple WCF service that takes no arguments and returns true.  That is all it does. When i create a winform client and insta

  • Visible property for transient attribute.

    Hi, I am using J developer 11g Release 2.In my page i need to set the visible property for the transient attribute(conform password) because the transient attribute needs to be disable for some condition.I have tried but the property was working only