Getting rid of string

If I run select col from x, I get:
col
abc er 12 12
fse gd 23 23
I just need to get rid of the last 2 characters so that I get the following:
col
abc er 12
fse gd 23
how do I achieve this?
Thanks,

Alternative is regex for 10G
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL>
SQL> SELECT x, regexp_replace(x, '[ ]*..$', '') xxx
  2    FROM (SELECT 'ENAME99w0T 12   34' x
  3            FROM dual
  4          UNION ALL
  5          SELECT 'ENAME99w0T 1234' x
  6            FROM dual
  7          UNION ALL
  8          SELECT '   34' x
  9            FROM dual
10          UNION ALL
11          SELECT '4' x FROM dual) t
12  /
X                  XXX
ENAME99w0T 12   34 ENAME99w0T 12
ENAME99w0T 1234    ENAME99w0T 12
   34             
4                  4
SQL>

Similar Messages

  • Babylon window displays every time i start my computer it says strings.dat is missing or corrupted how can you get rid of this?

    When i start my computer a window appears from Babylon and the message in the window is strings.dat is missing or corrupted.
    it has a button to push that says ok but when clicked on with curser nothing happens i uninstalled all babylon down loads and this was left behind would just like to get this out of my computer.
    can someone please help.

    pretty much exactly what i just figured out how to do it ealrier today! its a bug*er!
    i have posted a help request on a tech forum with logs etc incase there is any deeper infection, and will post any decent answer here. ok?
    basics for ridding of the actual babylon searchbar is like this...
    loading firefox, noticed that my google search bar wasnt google anymore and had ababylon icon instead!
    ASLO the browser displayed a FAKE GOOGLE search page!
    so i opened firefox, typed "about:config" in url bar and then you look just underneath the url bar, and you'll see another search bar.
    type babylon into it. right click on all of the results, and click reset.
    thats it now disabled totally for now.
    next go to tools>addons and look down the list and click uninstall babylon...
    bingo.
    but its not over yet! .....
    next go to start> search and type "babylon" (without the quotes) and see what comes up, mainly in programme files\mozzilla\search plugins
    and in the macromedia folder. if you get a "cannot delete.." notice, then that just means you havnt closed firefox (wich is odd coz you've apparently uninstalled the bug*er), so close firefox, then delete. you should now get rid of them all.
    it DOSNT show up on add/remove programmes, and it didnt show up on uninstall in advanced system care, though you may try the other uninstall button to the right , but you'll need to type in the "pathways" ( eg C:\my computer\programme files/etc).
    i'm still not convinced that this is the end of it though.
    from other forums i have noticed folk contacting AND phoning babylon and basaically being either abused or told they wont help.
    it seems to be invisible to AVG (i have the premium one too!) though around the time i installed the xvid codecs i did get an avg notice warning of an infection found in my t-mobile modem (dongle) but it seemed to actually be the tmobile liveupdat.exe, so i left it as i am sure i would get even worse problems if a effed around with it. (ie no connection, (eventually)
    this is th link to the posting i made on techguy
    please dont post willy nilly babylon posting on it so the volunteers dont get pist off, as that wont help if there are really deeper problems to solve. this is the link to it [[have i cleaned babylon hijack infection properly?|here it is]]

  • Can't get rid of a TX - message keeps appearing and being processed by OSB

    I have some sort of a poison message or TX I can't flush. Every 10 seconds I get a log message like the second one below, and the number of pending messages in multiple places and OSB proxy service messages processed keep climbing - all without producing any new messages on my part. I've tried deleting the default server store on the OSB managed server and the filestore for the JMS server. No luck.
    When this first started happening, the error messages looked like the first one below. Something I did caused the change, I assume. However, it's the same TX ID throughout.
    So, first, how can I get rid of this thing? It's driving me nuts and keeping me from closing out a POC.
    Second, why is it happening? I have one suspicion - could it be because that somehow we configured mutiple domains with the same name for a distributed application? It's not my normal practice but it happened. These domains don't communicate directly, but there are domains that need to communicate with both. So I'm guessing the name ambiguity may be hurting us. Just a guess, though.
    In this case, the sgosb domain's proxy service (this domain name is unique) is receiving messages from a queue resident in the pega_domain in Singapore and another proxy service is putting a message to another queue in the pega_domain in the UK. This is not in a single TX; the first proxy service forwards the message to a queue in the sgosb_domain, the second proxy service gets that message and puts it into the other pega_domain. It's an XA TX for each proxy service.
    Just to make it more fun, the sgosb_domain has another proxy service reading from a different queue and forwarding it to a queue in the third pega_domain in the US.
    TIA for any help or insight.
    Oh yes, the OSB domain is WLS 10.3.4, while the pega_domains are WLS 10.3.2
    Original error message
    ####<Apr 13, 2011 4:32:13 AM GMT> <Error> <EJB> <sg01app510> <sgosb_1> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <<anonymous>> <> <92f54a30d60e6302:-4b6d523c:12f4cfeaabc:-8000-0000000000000123> <1302669133597> <BEA-010026> <Exception occurred during commit of
    transaction Xid=BEA1-039B0B6D3D0E77C1B135(1898471720),Status=Rolled back. [Reason=Unknown],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since
    begin=0,seconds left=600,XAServerResourceInfo[WLStore_pega_domain_ProcessEventJMS_Store_mgd1]=(ServerResourceInfo[WLStore_pega_domain_ProcessEventJMS_Store_mgd1]=
    (state=new,assigned=none),xar=null,re-Registered = false),SCInfo[sgosb_domain+sgosb_1]=(state=rolledback),SCInfo[pega_domain+pega_1]=(state=rolledback),properties=
    ({}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=sgosb_1+152.64.128.243:22110+sgosb_domain+t3+, XAResources={eis/tibjms/Topic,
    WLStore_sgosb_domain_FileStore_auto_1, eis/aqjms/Queue, eis/wls/Queue, eis/tibjms/Queue, WLStore_sgosb_domain__WLS_sgosb_1, eis/AQ/aqSample, eis/aqjms/Topic,
    eis/pramati/Queue, eis/sunmq/Queue, WLStore_sgosb_domain_WseeFileStore_auto_1, WLStore_sgosb_domain_MesssageForwardingJMS_Store_mgd1,
    WSATGatewayRM_sgosb_1_sgosb_domain, eis/jbossmq/Queue, eis/activemq/Queue, eis/fioranomq/Topic, eis/tibjmsDirect/Topic, eis/wls/Topic,
    eis/tibjmsDirect/Queue, eis/Apps/Apps, eis/webspheremq/Queue},NonXAResources={})],CoordinatorURL=pega_1+nj09mhm5078:22111+pega_domain+t3+):
    javax.transaction.RollbackException: This transaction does not exist on the coordinating server.  It was probably rolled back and forgotten.
            at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
            at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
            at weblogic.transaction.internal.CoordinatorImpl_1032_WLStub.commit(Unknown Source)
            at weblogic.transaction.internal.TransactionImpl$1.run(TransactionImpl.java:331)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
            at weblogic.transaction.internal.SecureAction.runAction(SecureAction.java:72)
            at weblogic.transaction.internal.TransactionImpl.commit(TransactionImpl.java:327)
            at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:252)
            at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:239)
            at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:553)
            at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:424)
            at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:326)
            at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
            at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
            at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
            at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
            at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: javax.transaction.RollbackException: This transaction does not exist on the coordinating server.  It was probably rolled back and forgotten.
            at weblogic.transaction.internal.CoordinatorImpl.commit(CoordinatorImpl.java:94)
            at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    The error message I'm getting now
    ####<Apr 13, 2011 4:51:38 AM GMT> <Error> <EJB> <sg01app510> <sgosb_1> <[ACTIVE] ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <>
    <92f54a30d60e6302:-42808c28:12f4d3173cb:-8000-0000000000000032> <1302670298730> <BEA-010026> <Exception occurred during commit of transaction
    Xid=BEA1-0011D0679BA5074B8E12(1930603846),Status=Rolled back. [Reason=javax.transaction.xa.XAException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds
    left=60,XAServerResourceInfo[WLStore_sgosb_domain_MesssageForwardingJMS_Store_mgd1]=(ServerResourceInfo[WLStore_sgosb_domain_MesssageForwardingJMS_Store_mgd1]=
    (state=rolledback,assigned=sgosb_1),xar=WLStore_sgosb_domain_MesssageForwardingJMS_Store_mgd1239571724,re-Registered =
    false),XAServerResourceInfo[WLStore_pega_domain_ProcessEventJMS_Store_mgd1]=(ServerResourceInfo[WLStore_pega_domain_ProcessEventJMS_Store_mgd1]=
    (state=rolledback,assigned=pega_1),xar=null,re-Registered = false),SCInfo[sgosb_domain+sgosb_1]=(state=rolledback),SCInfo[pega_domain+pega_1]=(state=rolledback),properties=
    ({}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=sgosb_1+152.64.128.243:22110+sgosb_domain+t3+, XAResources={eis/tibjms/Topic,
    WLStore_sgosb_domain_FileStore_auto_1, eis/aqjms/Queue, eis/wls/Queue, eis/tibjms/Queue, WLStore_sgosb_domain__WLS_sgosb_1, eis/AQ/aqSample, eis/aqjms/Topic, eis/pramati/Queue, eis/sunmq
    /Queue, WLStore_sgosb_domain_WseeFileStore_auto_1, WLStore_sgosb_domain_MesssageForwardingJMS_Store_mgd1, WSATGatewayRM_sgosb_1_sgosb_domain, eis/jbossmq/Queue, eis/activemq
    /Queue, eis/fioranomq/Topic, eis/tibjmsDirect/Topic, eis/wls/Topic, eis/tibjmsDirect/Queue, eis/Apps/Apps, eis/webspheremq/Queue},NonXAResources=
    {})],CoordinatorURL=sgosb_1+152.64.128.243:22110+sgosb_domain+t3+): weblogic.transaction.RollbackException: Unknown reason
            at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1881)
            at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:345)
            at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:239)
            at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:553)
            at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:424)
            at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:326)
            at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
            at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
            at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
            at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
            at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: javax.transaction.xa.XAException
            at weblogic.store.gxa.internal.GXAResourceImpl.prepare(GXAResourceImpl.java:1227)
            at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:1295)
            at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:500)
            at weblogic.transaction.internal.ServerSCInfo.startPrepare(ServerSCInfo.java:380)
            at weblogic.transaction.internal.ServerTransactionImpl.localPrepare(ServerTransactionImpl.java:2593)
            at weblogic.transaction.internal.ServerTransactionImpl.localPrepare(ServerTransactionImpl.java:1321)
            at weblogic.transaction.internal.SubCoordinatorImpl.startPrepare(SubCoordinatorImpl.java:183)
            at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
            at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
            at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    .>Edited by: SteveElkind on Apr 13, 2011 5:50 AM

    Tom,
    Thanks! Succinct and easy to understand as ever.
    Yup, that covers it - I had also just seen this in the docs after looking at atheek1's earlier response (thanks to him/her as well). It's covered almost as clearly there as you state it here (http://download.oracle.com/docs/cd/E11035_01/wls100/jta/trxcon.html).
    While the ESB domains meet all of those requirements (except for cross-domain security configuration), each of the other two sets of domains (3 in each set) do not meet the naming uniqueness criteria for domain and server names; they do for JMS server names. I saw the store names in the TX identifier string as included resource, and assumed they might play a part - that's why I changed them. As you say, an unnecessary change. Oh well - it was an easy one.
    My normal practice has been for unique names in the past, due to problems I had years ago with cross-domain JMS traffic in an earlier WLS version. I guess it's the wrong time to have forgotten that lesson.
    Does anyone know of a quick way of changing a domain name quickly without rebuilding the domain? In the past WLST resulted in incomplete copies for me, is that still a problem? Server names are easy, just some global search-and-replace in the config.xml file (and in the management scripts, too)
    /Steve

  • I have a site here in china that keeps taking over my opened web pages. i have blocked the cookies, the web page, images and it still keeps poping up. how do i get rid of it?

    I am an English Teacher here in China and I depend on my computer a lot. The site is 61.132.255.222 and I done everything I can to block it from taking over web sites. what can I do to get rid of it. it is a php application. here it is.
    PHP Logo
    PHP Version 5.2.14
    System Windows NT 11244CDF7B4F465 5.2 build 3790
    Build Date Jul 21 2010 18:41:42
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--without-pi3web"
    Server API Apache 2.0 Handler
    Virtual Directory Support enabled
    Configuration File (php.ini) Path D:\WINDOWS
    Loaded Configuration File (none)
    Scan this dir for additional .ini files (none)
    additional .ini files parsed (none)
    PHP API 20041225
    PHP Extension 20060613
    Zend Extension 220060519
    Debug Build no
    Thread Safety enabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams php, file, data, http, ftp, compress.zlib
    Registered Stream Socket Transports tcp, udp
    Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*
    Zend logo This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    PHP Credits
    Configuration
    PHP Core
    Directive Local Value Master Value
    allow_call_time_pass_reference On On
    allow_url_fopen On On
    allow_url_include Off Off
    always_populate_raw_post_data Off Off
    arg_separator.input & &
    arg_separator.output & &
    asp_tags Off Off
    auto_append_file no value no value
    auto_globals_jit On On
    auto_prepend_file no value no value
    browscap no value no value
    default_charset no value no value
    default_mimetype text/html text/html
    define_syslog_variables Off Off
    disable_classes no value no value
    disable_functions no value no value
    display_errors On On
    display_startup_errors Off Off
    doc_root no value no value
    docref_ext no value no value
    docref_root no value no value
    enable_dl On On
    error_append_string no value no value
    error_log no value no value
    error_prepend_string no value no value
    error_reporting no value no value
    expose_php On On
    extension_dir C:\php5 C:\php5
    file_uploads On On
    highlight.bg #FFFFFF #FFFFFF
    highlight.comment #FF8000 #FF8000
    highlight.default #0000BB #0000BB
    highlight.html #000000 #000000
    highlight.keyword #007700 #007700
    highlight.string #DD0000 #DD0000
    html_errors On On
    ignore_repeated_errors Off Off
    ignore_repeated_source Off Off
    ignore_user_abort Off Off
    implicit_flush Off Off
    include_path .;C:\php5\pear .;C:\php5\pear
    log_errors Off Off
    log_errors_max_len 1024 1024
    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off
    mail.force_extra_parameters no value no value
    max_execution_time 30 30
    max_file_uploads 20 20
    max_input_nesting_level 64 64
    max_input_time -1 -1
    memory_limit 128M 128M
    open_basedir no value no value
    output_buffering 0 0
    output_handler no value no value
    post_max_size 8M 8M
    precision 14 14
    realpath_cache_size 16K 16K
    realpath_cache_ttl 120 120
    register_argc_argv On On
    register_globals Off Off
    register_long_arrays On On
    report_memleaks On On
    report_zend_debug On On
    safe_mode Off Off
    safe_mode_exec_dir no value no value
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value
    sendmail_from no value no value
    sendmail_path no value no value
    serialize_precision 100 100
    short_open_tag On On
    SMTP localhost localhost
    smtp_port 25 25
    sql.safe_mode Off Off
    track_errors Off Off
    unserialize_callback_func no value no value
    upload_max_filesize 2M 2M
    upload_tmp_dir no value no value
    user_dir no value no value
    variables_order EGPCS EGPCS
    xmlrpc_error_number 0 0
    xmlrpc_errors Off Off
    y2k_compliance On On
    zend.ze1_compatibility_mode Off Off
    apache2handler
    Apache Version Apache/2.0.55 (Win32) PHP/5.2.14
    Apache API Version 20020903
    Server Administrator [email protected]
    Hostname:Port ahdx:8005
    Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
    Timeouts Connection: 300 - Keep-Alive: 15
    Virtual Server No
    Server Root D:/Apache2
    Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dir mod_env mod_imap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_userdir mod_php5

    I am an English Teacher here in China and I depend on my computer a lot. The site is 61.132.255.222 and I done everything I can to block it from taking over web sites. what can I do to get rid of it. it is a php application. here it is.
    PHP Logo
    PHP Version 5.2.14
    System Windows NT 11244CDF7B4F465 5.2 build 3790
    Build Date Jul 21 2010 18:41:42
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--without-pi3web"
    Server API Apache 2.0 Handler
    Virtual Directory Support enabled
    Configuration File (php.ini) Path D:\WINDOWS
    Loaded Configuration File (none)
    Scan this dir for additional .ini files (none)
    additional .ini files parsed (none)
    PHP API 20041225
    PHP Extension 20060613
    Zend Extension 220060519
    Debug Build no
    Thread Safety enabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams php, file, data, http, ftp, compress.zlib
    Registered Stream Socket Transports tcp, udp
    Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*
    Zend logo This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    PHP Credits
    Configuration
    PHP Core
    Directive Local Value Master Value
    allow_call_time_pass_reference On On
    allow_url_fopen On On
    allow_url_include Off Off
    always_populate_raw_post_data Off Off
    arg_separator.input & &
    arg_separator.output & &
    asp_tags Off Off
    auto_append_file no value no value
    auto_globals_jit On On
    auto_prepend_file no value no value
    browscap no value no value
    default_charset no value no value
    default_mimetype text/html text/html
    define_syslog_variables Off Off
    disable_classes no value no value
    disable_functions no value no value
    display_errors On On
    display_startup_errors Off Off
    doc_root no value no value
    docref_ext no value no value
    docref_root no value no value
    enable_dl On On
    error_append_string no value no value
    error_log no value no value
    error_prepend_string no value no value
    error_reporting no value no value
    expose_php On On
    extension_dir C:\php5 C:\php5
    file_uploads On On
    highlight.bg #FFFFFF #FFFFFF
    highlight.comment #FF8000 #FF8000
    highlight.default #0000BB #0000BB
    highlight.html #000000 #000000
    highlight.keyword #007700 #007700
    highlight.string #DD0000 #DD0000
    html_errors On On
    ignore_repeated_errors Off Off
    ignore_repeated_source Off Off
    ignore_user_abort Off Off
    implicit_flush Off Off
    include_path .;C:\php5\pear .;C:\php5\pear
    log_errors Off Off
    log_errors_max_len 1024 1024
    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off
    mail.force_extra_parameters no value no value
    max_execution_time 30 30
    max_file_uploads 20 20
    max_input_nesting_level 64 64
    max_input_time -1 -1
    memory_limit 128M 128M
    open_basedir no value no value
    output_buffering 0 0
    output_handler no value no value
    post_max_size 8M 8M
    precision 14 14
    realpath_cache_size 16K 16K
    realpath_cache_ttl 120 120
    register_argc_argv On On
    register_globals Off Off
    register_long_arrays On On
    report_memleaks On On
    report_zend_debug On On
    safe_mode Off Off
    safe_mode_exec_dir no value no value
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value
    sendmail_from no value no value
    sendmail_path no value no value
    serialize_precision 100 100
    short_open_tag On On
    SMTP localhost localhost
    smtp_port 25 25
    sql.safe_mode Off Off
    track_errors Off Off
    unserialize_callback_func no value no value
    upload_max_filesize 2M 2M
    upload_tmp_dir no value no value
    user_dir no value no value
    variables_order EGPCS EGPCS
    xmlrpc_error_number 0 0
    xmlrpc_errors Off Off
    y2k_compliance On On
    zend.ze1_compatibility_mode Off Off
    apache2handler
    Apache Version Apache/2.0.55 (Win32) PHP/5.2.14
    Apache API Version 20020903
    Server Administrator [email protected]
    Hostname:Port ahdx:8005
    Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
    Timeouts Connection: 300 - Keep-Alive: 15
    Virtual Server No
    Server Root D:/Apache2
    Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dir mod_env mod_imap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_userdir mod_php5

  • How do I get rid of Yahoo search from starting in the creation of a new tab?

    my home page works correctly and I have removed the Yahoo tool bar from plugins/apps (can't remember which) But whenever I open a new tab it opens on this
    http://search.yahoo.com/?fr=freeze&type=W3i_NA,132,3_6,Tab%20Search,20110520,16934,0,19,0
    I would like it to open on my home page, which firefox does on startup. But I can't find a setting in options that will allow you to dictate what first appears when opening a new tab.
    I tried this solution but it didn't work
    https://support.mozilla.com/en-US/questions/811550?s=getting+rid+of+yahoo+search&as=s

    Do you also have a search bar on your tabs bar if so, it is probably "New Tab" extension, but suggest going through all of the following.
    '''Remove the Yahoo Toolbar'''
    # "Ctrl+Shift+A" (Add-ons Manager)
    # Select Puzzle piece on left-side for Extensions List
    # Find "Yahoo Toolbar" and click on "Uninstall" button, and restart Firefox. ''(if you really need to keep the Yahoo toolbar, you can hide the toolbar instead with customize, and still change all the search defaults as below)''
    '''Then to fix the default search engine''' used at the Location Bar, change the value of '''keyword.URL''' in '''about:config''' to one of the values shown in [http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28external_-_search_engine.29 Location Bar search] at MozillaZine.
    * Google Search (Google search results page)<br>'''http://www.google.com/search?ie=UTF-8&oe=UTF-8&q='''
    # type in '''about:config''' into the location bar (in a new tab)
    # if the warning message nonsense comes up ''uncheck'' the box '''before''' dismissing the dialog message
    # '''filter on keyword'''
    # right-click on '''keyword.URL''' and choose "modify" then paste in the Google search engine string of your choice.
    # '''filter on defaulturl'''
    # right-click on '''browser.search.defaulturl''' ''(if it exists)''and again choose "modify" then paste in the Google search engine string of your choice.
    # '''filter on ytff'''
    # right-click on '''yahoo.ytff.search.popup_src''' ''(if it exists)'' and again choose "modify" then paste in the Google search engine string of your choice, if adventurous might see if "reset" would remove and see if gone in next session (well not for those keeping the extension).<br
    >--above used in https://support.mozilla.com/questions/850287
    #If new tabs open with a Yahoo search, then in "C:\program files\Mozilla Firefox: Find the yahoo.xml file and delete it ([/questions/892957])
    #If you find an extension call "New Tab" uninstall it (it is unwanted malware), this little gem came with a reinstall of "PicPick" software for me and adds a search bar to the already overcrowed tabs bar, when doing the reinstall update for PicPic do a custom install without anything relating to yahoo.
    '''Avoiding the problems:''' Many software installations contain additional baggage known as crapware. The Yahoo Toolbar is packaged with Java [http://imageshack.us/photo/my-images/266/javainstall.png/ picture]
    More information on ask.com, Yahoo Toolbars which involve extensions, not just changes to the home page.
    * http://kb.mozillazine.org/Problematic_extensions
    * Uninstalling toolbars - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Uninstalling_toolbars

  • How to get rid of the Unwanted background shadow

    I created a popup (in DataGrid).  However, when th popup DataGrid displays, the backgroun becomes shadowed (see the image).  Anyone knows how to get rid of it?  Thanks.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox
    xmlns:mx  ="http://www.adobe.com/2006/mxml"
    borderColor  ="#6CC417"
    borderStyle  ="solid"
    dropShadowColor  ="#F9B7FF"
    dropShadowEnabled ="true"
    shadowDirection  ="right"
    shadowDistance  ="10"
    >
    <mx:Script>
    <![CDATA[
    import mx.containers.Grid;
    import mx.events.FlexMouseEvent;
    import mx.events.ListEvent;
    import mx.managers.PopUpManager;
    import com.esri.solutions.flexviewer.widgets.PopupForms.Popup_HomeState;
    private var popup:Popup_HomeState;
    private function itemClickEvent(event:ListEvent):void {
    var iIndex:int = event.rowIndex;
    var sItem:String = dg.dataProvider[iIndex].col1;
    showPopup(sItem);
        popup.addEventListener(Event.CLOSE, closePopUpWindow);
        popup.addEventListener(FlexMouseEvent.MOUSE_DOWN_OUTSIDE, closePopUpWindow);
    public function showPopup(s:String):void {
       if(s == "Home State" || s == "Unit State") {
    popup = PopUpManager.createPopUp(this, Popup_HomeState, true) as Popup_HomeState;
    PopUpManager.centerPopUp(popup);
    private function closePopUpWindow(evt:Event):void {
        PopUpManager.removePopUp(popup);
    ]]>
    </mx:Script>
    <mx:VBox>
         <mx:DataGrid id="dg" width="360" height="176"
          rowCount="8"  showHeaders="true"  itemClick="itemClickEvent(event)"  >
             <mx:columns>
                 <mx:DataGridColumn dataField="col1" width="120" headerText=""
    itemRenderer="com.esri.solutions.flexviewer.widgets.myForms.DGRenderers.ImageRenderer"  />
                 <mx:DataGridColumn dataField="col2" width="260" headerText=""/>
             </mx:columns>
         </mx:DataGrid>
    </mx:VBox>
    </mx:VBox>
    --------------------- Below is Popuup_HomeState.mxml
    <?xml version="1.0" encoding="utf-8"?><mx:VBox  xmlns:mx ="
    http://www.adobe.com/2006/mxml"borderColor ="
    #6CC417" borderStyle ="
    solid" dropShadowColor ="
    #F9B7FF" dropShadowEnabled ="
    true" shadowDirection ="
    right" shadowDistance ="
    10" 
    >
    <mx:Script><![CDATA[import  
    mx.containers.Grid;import  
    mx.events.FlexMouseEvent;import  
    mx.events.ListEvent;import  
    mx.managers.PopUpManager;import  
    com.esri.solutions.flexviewer.widgets.PopupForms.Popup_HomeState; 
      private  
    var popup:Popup_HomeState; private  
    function itemClickEvent(event:ListEvent):void { var iIndex:int = event.rowIndex; 
    var sItem:String = dg.dataProvider[iIndex].col1;showPopup(sItem);
    // register event listeners for closing the popup window 
    // when the popup window close button is clicked...popup.addEventListener(Event.CLOSE, closePopUpWindow);
    // or when an area outside the popup window is clicked...popup.addEventListener(FlexMouseEvent.MOUSE_DOWN_OUTSIDE, closePopUpWindow);
     public  
    function showPopup(s:String):void { 
     if(s == "Home State" || s == "Unit State") { 
    //helpWindow = PopUpManager.createPopUp(this, Popup_HomeState, false); popup = PopUpManager.createPopUp(
    this, Popup_HomeState, true) as Popup_HomeState;PopUpManager.centerPopUp(popup);
    // method to close the popup window on close or mousedownoutside eventprivate  
    function closePopUpWindow(evt:Event):void {PopUpManager.removePopUp(popup);
    ]]></mx:Script> 
     <mx:VBox>
     <mx:DataGrid id="dg" width="360" height="176" rowCount="
    8" showHeaders="true" itemClick="itemClickEvent(event)" >
     <mx:columns>
     <mx:DataGridColumn dataField="col1" width="120" headerText=""itemRenderer="
    com.esri.solutions.flexviewer.widgets.myForms.DGRenderers.ImageRenderer" />
     <mx:DataGridColumn dataField="col2" width="260" headerText=""/>
     </mx:columns>
     </mx:DataGrid>
     </mx:VBox>
     </mx:VBox>

    Problem solved by change the
    popup = PopUpManager.createPopUp(this, Popup_HomeState, true) as Popup_HomeState;
    to
    popup = PopUpManager.createPopUp(this, Popup_HomeState, false) as Popup_HomeState;

  • How to get rid of the large slideshow images in Web gallery (CS4)

    Here is the deal.
    I've created a flash web gallery/ But the new CS4 has the option for slideshow with this flash stuff. CS3 use to create thumbnail and large images folders. The new one creates 3 folders: 1. thumbnails, 2, medium images, 3 large images (for the slideshow). That's great, until I go to upload process. I have pretty limited space. So I'm ready to get rid of the slideshow option, but there's no such option in gallery creating process. The only solution I have in mind is to redirect slideshow images to the medium size folder. But thats pretty annoying process during the creation of each gallery.
    So does anyone has an idea how to skip the slideshow creation or another method to skip creating 3 folders, all with the same images?

    Extend DefaultListCellRenderer, not BasicComboboxRenderer. Here's an example that wraps the original renderer and uses it where possible (i.e. instanceof JLabel). No 'white square'.import java.awt.BorderLayout;
    import java.awt.Component;
    import java.text.DecimalFormat;
    import javax.swing.*;
    public class ComboRendererTest {
      public static void main(String[] args) throws Exception {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            new ComboRendererTest().makeUI();
      public void makeUI() {
        JComboBox comboBox = new JComboBox();
        comboBox.addItem(new Double(1));
        comboBox.addItem(new Double(2.25));
        comboBox.addItem(new Double(3.5));
        comboBox.setRenderer(new TwoDecimalRenderer(comboBox.getRenderer()));
        JFrame frame = new JFrame();
        frame.add(comboBox, BorderLayout.NORTH);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(200, 200);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    class TwoDecimalRenderer extends DefaultListCellRenderer {
      private ListCellRenderer defaultRenderer;
      private static final DecimalFormat FORMAT = new DecimalFormat("#.00");
      public TwoDecimalRenderer(ListCellRenderer defaultRenderer) {
        this.defaultRenderer = defaultRenderer;
      @Override
      public Component getListCellRendererComponent(JList list, Object value,
              int index, boolean isSelected, boolean cellHasFocus) {
        Component c = defaultRenderer.getListCellRendererComponent(list, value,
                index, isSelected, cellHasFocus);
        if (c instanceof JLabel) {
          ((JLabel) c).setText(FORMAT.format(value));
        } else {
          c = super.getListCellRendererComponent(list, value,
                  index, isSelected, cellHasFocus);
          setText(FORMAT.format(value));
        return c;
    }db

  • I have installed oracle 10g in my winxp machine. i am using enterprise manager. i am not able to shutdown the system as it asks for os username and password. i have provided my os username and password but eerror persiste. somebody pls help me to get rid

    I have installed oracle 10g in my winxp machine. i am using enterprise manager. i am not able to shutdown the system as it asks for os username and password. i have provided my os username and password but eerror persiste. somebody pls help me to get rid of this.

    Here I am using Java Type IV for database
    connection.
    So,there was no necessity of creating DNS.How your app communicates with db shouldn't matter for the end user. Still, you may want to use a functional network name also for the thin client driver connection string.
    So,is there any other way to solve this problem.What is the problem really? Do you not use dns for network naming? Maybe you have to manage the hosts file on every client then.

  • Can't get rid of pesky junk mail

    I use the Apple Mail Version 6.5 (1508) application for my emails.  I have found the Junk Mail feature to be very helpful.  If I label a message "Junk," It is treated as junk when I receive the same message later on.  However, there is one pesky junk mail that is being sent to me about 5 times per week that ignores the junk mail label and does not go to the trash.  After labeling it Junk several times, I gave up and went to the Rules function and made a rule that, when it is received, it is to be deleted.  That works just fine on my Mac, but I know it is still being sent because it still shows up on the email app on my iPhone.
    Questions:
    1.  Why doesn't Mail succeed in tagging that message as Junk so that it will go to Junk Mail like all the other stuff?
    2.  Is there anything I can do to force that message to Junk Mail?  I'd rather not have to use Rules to get rid of it.
    3.  Is there any kind of Junk Mail filter available for an iPhone 4S that runs on iOS 6.1.3?  I've submitted that to Apple as a suggestion, but, of course, I've had no reply.
    Thanks for any assist you can give.

    I went to my provider's web site and set my email Rule to delete any message containing the unique name used in the sender.  So far the string of emails has stopped, but sometimes spammers take holidays off, so I'll wait to see what happens later, but I'm really excouraged as of now.  Thanks again for the suggestion.

  • How do I get rid of the ugly yellow that is on Mozilla desk top now? I hate it

    how do I get rid of the ugly yellow on my desk top now with mozilla it is so ugly and annyoying? Can I change the color?

    See my second reply here:
    *[[/questions/1038807#answer-670671]] Who took a pee on Foxfire Start page; how get rid of yellow color?
    Mozilla shows snippets on the about:home page to run different campaigns and that changes regularly.
    If you prefer not to see snippets on the about:home page or if there are problems with a snippet then you can set the <b>browser.aboutHomeSnippets.updateUrl</b> pref to an empty string on the <b>about:config</b> page.
    Delete the <b>storage\persistent\moz-safe-about+home</b> folder in the Firefox profile folder with Firefox closed ("3-bar" Firefox menu button > Exit/Quit) to remove snippets stored in IndexedDB and make Firefox use a default snippet set.
    You can reset the browser.aboutHomeSnippets.updateUrl pref via the right-click context menu to the default value to re-enable the snippets and make Firefox recreate the moz-safe-about+home folder.
    Close and restart Firefox after changing the value of the browser.aboutHomeSnippets.updateUrl pref.

  • Trojan, possibly mackeeper, on macbook air and can't get rid of it

    So I accidentally downloaded a file that would allow me to watch a video because "mine was out of date" or something, not Adobe, and wasn't really paying attention and realized that I download it and when I thought i was deleting it I realized I installed it instead. I wasn't that worried about it at first because I was always under the impressions that macs couldn't get any type of virus at all. I had thought that just deleting the files off the computer would solve my problems but they didn't and can't seem to find any other suspicious files so they appear to be gone. I continuously get adds for "mackeeper", anti-virus products and then just some random stuff every time i open a new tab. I have spent hours trying to figure out how to get rid of this and I have been unsuccessful. I download an anti-virus product, Sophos Anti-virus, and did a full scan but it said there were no threats, maybe due to me deleting files. I then checked my extensions in my Safari preferences and there is not a single extension there. I have tried looking/ using the terminal and activity monitor to help this, due to others suggesting this with instructions, and haven't been able to understand the directions at all to get it to work. Also I get these pop-ups in both safari and chrome. I don't know what to do next and can't find anything that seems to work. Would a complete reboot of the computer fix this? Do I need to try a new anti-virus system? or is there some other way to fix it that I'm missing? or am i screwed because I actually installed this program and then deleted the files that I found which I also deleted from the trash? Please help

    There is no need to download anything to solve this problem. You may have installed a variant of the "VSearch" ad-injection malware. Follow Apple Support's instructions to remove it.
    If you have trouble following those instructions, see below.
    Malware is always changing to get around the defenses against it. This procedure works as of now, as far as I know. It may not work in the future. Anyone finding this comment a few days or more after it was posted should look for a more recent discussion, or start a new one.
    The VSearch malware tries to hide itself by varying the names of the files it installs. To remove it, you must first identify the naming pattern.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for two files with names of the form
              com.something.daemon.plist
    and
               com.something.helper.plist
    Here something is a variable string of characters, which can be different in each case. So far it has always been a string of letters without punctuation, such as "cloud," "dot," "highway," "submarine," or "trusteddownloads." Sometimes it's a meaningless string such as "e8dec5ae7fc75c28" rather than a word. Sometimes the string is "apple," and then you must be especially careful not to delete the wrong files, because many built-in OS X files have similar names.
    If you find these files, leave the LaunchDaemons folder open, and open the following folder in the same way:
    /Library/LaunchAgents
    In this folder, there may be a file named
              com.something.agent.plist
    where the string something is the same as before.
    If you feel confident that you've identified the above files, back up all data, then drag just those three files—nothing else—to the Trash. You may be prompted for your administrator login password. Close the Finder windows and restart the computer.
    Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.
    The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.
    Open this folder:
    /Library/Application Support
    If it has a subfolder named just
               something
    where something is the same string you saw before, drag that subfolder to the Trash and close the window.
    Don't delete the "Application Support" folder or anything else inside it.
    Finally, in this folder:
    /System/Library/Frameworks
    there may an item named exactly
                v.framework
    It's actually a folder, though it has a different icon than usual. This item always has the above name; it doesn't vary. Drag it to the Trash and close the window.
    Don't delete the "Frameworks" folder or anything else inside it.
    If you didn't find the files or you're not sure about the identification, post what you found.
    If in doubt, or if you have no backups, change nothing at all.
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • How to get rid of flag in mail

    I downloaded the new Lion, and mail has this new fonction of flag.  But it put a flag on all messages and it take 4 step to delete a message now.  How do I get rid of this fonction.  Basicaly I don't want any flag ever!!!!!

    Use PreparedSatement class,
    e.g.
    // Where the name field is defined as char, i.e. needs quotes in SQL.
    String sql = "select * from person where name = ? ";
    PreparedStatement statement = connection.prepareSatement(sql);
    statement.setString(1, "Bob");
    statement.executeQuery();
    This will get rid of hardcoding db vendor dependant quotes in your sql,
    Hope this helped.

  • How do I get rid of the image of people in the desert on my startup page

    I've just upgraded to the latest version of firefox, and now am faced with an image that appears to link to a video (instead of the fox). How do i get rid of this and get back to a simple page. I'm not very technical
    Thanks

    If you do not want to see snippets on the about:home page or if there are problems with a snippet then you can set the <b>browser.aboutHomeSnippets.updateUrl</b> pref to an empty string on the <b>about:config</b> page.
    Delete the <b>storage\persistent\moz-safe-about+home</b> folder in the Firefox profile folder with Firefox closed ("3-bar" Firefox menu button > Exit/Quit) to remove snippets stored in IndexedDB and make Firefox use a default snippet set.
    You can reset the browser.aboutHomeSnippets.updateUrl pref via the right-click context menu to the default value to re-enable the snippets and make Firefox recreate the moz-safe-about+home folder.
    Close and restart Firefox after changing the value of the browser.aboutHomeSnippets.updateUrl pref.
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)

  • Get-rid of the format we get using Get-ADuser in a CSV. Send CSV data in an email in table format

    Hi,
    I am using get-ADuser in order to extract a few AD attributes of some users. I export the users and their respective attributes to a CSV. However, the output in CSV i get has the following format in each cell for its AD attribute. 
    @{description=<Value>} or @ { info=<Value>}
    I have tried to use Expandproperty switch in order to get rid of it but it does not accept null values and hence if a user has no value for a said attribute, the previous value is copied for that user too. However, without expand property it gives me the
    above format in the output.
    $Desc = Get-ADUser $Username -Properties description | select description
    I would like the cells to contain only values and not this format along.
    Also, once I have the CSV with values I would also like to copy the values from CSV in an email in the form of a TABLE. I have been able to copy the content in an email using the following however, this in not in a table format. 
    $mail = Import-Csv $newlogonfile | Out-String
    Please HELP!

    Yes I am already using Export-Csv but still getting the same kind of format in output :-
    $Username = $Event.Properties[5].Value
                $Title_var = get-aduser $Username -properties Title | select Title
           $Ofc_phone = get-aduser $Username -Properties OfficePhone | select OfficePhone
           $Info_var = get-aduser $Username -properties info | select info
           $Display_Name = get-aduser $Username -properties DisplayName | select DisplayName
                $Mail = Get-ADUser $Username -Properties Mail | select Mail
           $Desc = Get-ADUser $Username -Properties description | select description
            $Props = @{ 
                    User = $Event.Properties[5].Value;
                    TimeCreated = $Event.TimeCreated;
                    LogonType = $Event.Properties[8].Value;
                    DCName = $Event.MachineName;
    Workstation_address = $Event.Properties[18].Value;
    Title = $Title_var;
    OfficePhone = $Ofc_phone;
    Info = $Info_var;
    DisplayName = $Display_Name;
            Description = $Desc;
           EMail = $Mail
                $LogonRecord = New-Object -TypeName psobject -Property $Props
                $Result += $LogonRecord
    $Result | Export-Csv -Path $logFile -append -UseCulture -NoTypeInformation # Log it to CSV
    OUTPUT has values in this format in the CSV :-
    @{info=} @{description=abc} @{DisplayName=} @{Officephone=}
    @{Mail=[email protected]}

  • Get rid of the initial asterisk when using PasswordField masking in console

    Hi!
    How can I get rid of the initial astrerisk when using the PasswordField script from Sun?
    I've tried to check whether the BufferedReader is empty or not, but with no succes.
    Here comes the code:
    PasswordField.java
    import java.io.*;
    public class PasswordField {
        *@param prompt The prompt to display to the user
        *@return The password as entered by the user
       public static String readPassword (String prompt) {
          EraserThread et = new EraserThread(prompt);
          Thread mask = new Thread(et);
          mask.start();
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          String password = "";
          try {
             password = in.readLine();
          } catch (IOException ioe) {
            ioe.printStackTrace();
          // stop masking
          et.stopMasking();
          // return the password entered by the user
          return password;
    }EraserThread
    import java.io.*;
    class EraserThread implements Runnable {
       private boolean stop;
        *@param The prompt displayed to the user
       public EraserThread(String prompt) {
           System.out.print(prompt);
        * Begin masking...display asterisks (*)
       public void run () {
          stop = true;
          while (stop) {
             System.out.print("\010*");
          try {
             Thread.currentThread().sleep(1);
             } catch(InterruptedException ie) {
                ie.printStackTrace();
        * Instruct the thread to stop masking
       public void stopMasking() {
          this.stop = false;
    }

    Hello Yajai,
    The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.
    I hope this help. Let me know if you have any further questions.
    Regards,
    Sean C.
    Attachments:
    SetTimeout.bmp ‏2305 KB

Maybe you are looking for

  • Question about the DB adapter

    Question about the DB adapter ns2006.0.7 Question: It seems that we can only have 1 db adapter, but in the adapter defiition we have to specify the database.  If I want to communicate to several different databases on different platforms, Oracle / SQ

  • Error in setting Pricelist/Currency code

    I'm using Siebel Self-Services 8.1.1 and I always get the following error every for new session of the application: "Error in setting Pricelist/Currency code. Please contact System Administator". Anyone having an idea how to solve it? Thanks! /Jon-Er

  • 'Photo's resizing? Best size for best quality?

    Hi, I want to put a London underground tube (metro) map on the 'Photos' section on my iPhone. I know that iTunes resizes all images before they go onto the phone, but that is the best size and quality to ensure the image comes out the clearest on the

  • How to keep cycle locators in place?

    Let's say I want to cycle a particular part over and over. As I'm mixing, I select a track that is shorter than the part I want to cycle, and logic automatically resets the cycle locators to match the length of whatever regions are in that track. Thi

  • Barcode printing in Reports

    I AM PRINTING BARCODE IN DEV. 6I USING THE FONT 3OF9 IT IS PRINTING BUT THE BARCODE SCANNER PULSAR MS6220 IS NOT READING THIS CODE GENERATED BY DEVELOPER