Sovrapposizione caratteri

Salve a tutti,
ho un problema che riguarda i fonts della mia installazione, o meglio la resa grafica di questi e lo spazio che intercorre tra due caratteri. In pratica nel terminale mi capita di avere caratteri sovrapposti gli uni agli altri. Uso xfce4-terminal, ma succede anche con xterm, inoltre sto usando i liberation-fonts (ma succede con quasi tutti i fonts). Visto che ho problemi con le dimensioni dei caratteri, credo che sia un qualche problema in xorg. Però nel file di configurazione non c'è niente riguardo i fonts, quindi non so cosa toccare.
Grazie per l'aiuto,
Rief

Devi essere sicuro di usare dei font monospace per il terminale.
P.S. In caso cercassi una comunita' italiana, ti consiglio di dare uno sguardo ad Archlinux Italia.

Similar Messages

  • Objet type record/table e caratteri utf8

    Buongiorno a tutti.
    Ho questo rompicapo....
    ho creato due tipi oject:
    CREATE OR REPLACE TYPE "XI_REC" as object(
    zone varchar2(30),
    title varchar2(1000),
    CREATE OR REPLACE TYPE "XI_TABLE" as table of xi_rec;
    Sucessivamente ho creato una funzione che mi ritorna un XI_TABLE.
    dentro alla funzione per popolare il mio record uso:
    create or replace function xi_retrieve(iso_lang varchar2,Code number) return xi_table is
    out_rec xi_rec;
    out_table xi_table := xi_table();
    out_rec := xi_rec(null,null,null,null, null,null,null,null);
    out_rec.zone := '2';
    out_rec.title := v_title;
    out_table.extend;
    out_table(out_table.count) := out_rec;
    return(out_table);
    il problema si presenta quando alla mia variabile(v_title) associo delle stringhe con caratteri greci,facendo un debug vedo che il valore della variabile v_title è scritto correttamente con i caratteri greci.
    Quando chiamo la funzione con il comando:
    select myfunct(param1,param2) from dual
    come risultato ottengo dei caratteri che nulla hanno a che vedere con il greco.
    I caratteri che sono all'interno della tabella da cui recupero i dati sono scritti correttamente.
    Database:oracle 10g R2
    charset:UTF-8
    SO:W2003 server
    Avete qualche consiglio???
    Grazie 1000
    Paolo G.

    Ok....I can try...:)
    I have created two object like these:
    CREATE OR REPLACE TYPE "XI_REC" as object(
    zone varchar2(30),
    title varchar2(1000),
    CREATE OR REPLACE TYPE "XI_TABLE" as table of xi_rec;
    After I created a function...:
    create or replace function xi_retrieve(iso_lang varchar2,Code number) return xi_table is
    out_rec xi_rec;
    out_table xi_table := xi_table();
    out_rec := xi_rec(null,null,null,null, null,null,null,null);
    out_rec.zone := '2';
    out_rec.title := v_title;
    out_table.extend;
    out_table(out_table.count) := out_rec;
    return(out_table);
    The source data is a Greek_tab table.
    When I take the greek char from the table Greek_tab and put the data into my variable v_title
    i can watch the v_title value correctly(Μάρκα).
    But when i put it(Μάρκα) into my record (out_rec.title := v_title;)...something happened...
    when i call my function from sql command:
    select myfunct(param1,param2) from dual
    the result is:¿¿¿¿a
    Database:oracle 10g R2
    charset:UTF-8
    SO:W2003 server
    What ca i do???
    Thanks a lot...
    Paolo G.

  • Aggiungere caratteri a stringa

    Volevo fare un programmino che legge dalla seriale un buffer "carattere" alla volta che però ogni questi carattere si sommano come valore testuale a una stringa intera
    per esempio
    io ho a b c
    devo tirare fuori una stringa con scritto abc
    lo voglio fare su labview 8.5
    ho provato ad usare feedback e shift register ma senza risultati
    grazie

    Hi,
    Try "Concatenate String" function with shift registers. (Don't speak italian, sorry)

  • Non riesco a stampare in modo leggibile alcuni files di PDF mentre altri sì, stampano in caratteri

    Buon giorno, ho un problema. Dopo avere ricaricato adobe reader ed usando una stampante HP laser jet P1005 stampo alcuni file che mi arrivano, come fatture, ecc. in pdf senza problemi, altri invece vengono stampati nella totalità non lettere latine ma in una forma che non è ne cirillico nè greco con simboli strani che vanno dall' alfa greca maiuscola al simbolo di sommatorie ecc.ecc., ho seguito le istruzioni di selezionare la casella stampa come immagina ma non ho avuto risultati, SE QUALCUNO MI AIUTA  come spero tenga tresente che non solo ho quasi cento anni ma conosco l'inglese a palmi, grazie , Piero

    per dovere di "cronaca" è stato risolto qui http://www.ilvg.it/forum/viewtopic.php?f=1&t=5959&p=26421&hilit=Janitza#p26421
    Alessandro Ricco
    ILVG.it - Italian LabVIEW user Group, ADMIN & LabVIEW Champion

  • Error BO XI 3.1 on IIS

    i have two different errors using infoview interface of BO XI 3.1 running only on IIS (no tomcat), both about schedule options of a report:
    1) selecting recurrence I obtain always the error attached; I bypass the problem selecting english interface onstead of italian on "Preferred Viewing Locale" properties.
    2) selectiong formats and destination -> any checkbox (output format and output format details) I always obtain this js error:
    Linea:  711
    Carattere:  3
    Errore:  Argomento non valido.
    Codice:  0
    URL:  http://bo///AnalyticalReporting/PlatformActions/DeskI_Destination/FullClientDestinationFormatAction.aspx?cafWebSesInit=true&objIds=1735&appKind=InfoView&service=%2fInfoViewApp%2fcommon%2fappService.aspx&loc=en&pvl=en-US&containerId=1712&pref=maxOpageU%3d10%3bmaxOpageUt%3d200%3bmaxOpageC%3d10%3btz%3d46004%3bmUnit%3dinch%3bshowFilters%3dTrue%3bsmtpFrom%3dTrue%3b&ctx=singlepage&deltaId=2755&actId=436
    and I can't continue. I have to cancel the schedule operation.
    I also install FIXPACK 1.5 with no results.
    Thanks in advance

    It'll be better if this issue is fully investigated thru Support Incident. Please login to SMP and log one.

  • How to open a pdf file only in one computer

    I would like to sell pdf publications by allowing  the user to open them only in one computer. I learnt that this has been done  the past when I bought  some publications but I don't know the way to do it. Could you help me?
    thank you
    Marco

    thank you for your support
    Best Regards
    Marco
    Da:     Mylenium <[email protected]>
    Per:    MARCO1 <[email protected]>,
    Data:   09/10/2013 11:09
    Oggetto:        How to open a pdf
    file only in one computer
    Re: How to open a pdf file only in one computer
    created by Mylenium in Downloading, Installing, Setting Up - View the full
    discussion
    You will havwe to sign up for some service that supports rights
    management, use protected PDFs via LiveCyle/ Acrobat Connect or learn how
    to create your own ePub stuff using Digital Publishing Suite. In any case,
    it will probably cost you money upfront before you make any revenue.
    Mylenium
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in
    the forum to embed the image at
    http://forums.adobe.com/message/5746873#5746873
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/5746873#5746873]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/5746873#5746873]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up at Adobe
    Community
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.
    Il messaggio trasmesso può contenere informazioni di carattere
    confidenziale rivolte esclusivamente al destinatario. Ne è vietato l'uso,
    la diffusione, la distribuzione o la riproduzione da parte di altre
    persone e/o entità diverse da quelle specificate. Nel caso aveste ricevuto
    questo messaggio per errore, siete pregati di segnalarlo immediatamente al
    mittente e cancellare quanto ricevuto.
    This electronic mail transmission may contain confidential information
    addressed only to the person(s) named. Any use, distribution, copying or
    disclosure by any other person and/or entities other than the intended
    recipient is prohibited. If you received this transmission in error,
    please inform the sender immediately and delete the material

  • Screen painter error: EU_SCRP_WN32 : timeout during allocate / CPIC-CALL

    Dear all
    When i using SE51 to open any screen , the screen painter can't give me the graphical layout editor and shows the following message:
    EU_SCRP_WN32 : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Message no. 37033
    Anyone knows what is the problem?
    Detail information :
    SAP GUI Version : 710 for window
    Fatch Level : 11
    thanks for your input.

    Dear All... I had same problem for many mounths... My solution has been the "NAME" of my computer. My name contains a special char ( ì ) and the server didn't answer at my "request" to launch the screen painter SAP.
    So try to change your "PC-Name" without special char (ex: "office") and try again to launch the Screen Painter.
    I'm sorry for my bad english and i hope this reply will be usefull for You.
    Paolo
    ITALIAN VERSION:
    Ciao a tutti, io ho avuto questo problema e non sono riuscito a trovare risposta; nelle innumerevoli ricerche in rete, con colleghi e persone più esperte di me sono riuscito a capire che lo Screen Painter di SAP in realtà è una sorta di "richiesta"  che viene fatta al server. Se il Nome del PC contiene caratteri speciali, il server sembra non rispondere e quindi si va in timeout.
    In pratica ho risolto formattando il PC ed in fase di re-installazione de S.O. ho dato come nome solo il mio nome di battesimo ed ho risolto. Ho dovuto effettuare un Format perchè nonostante avessi cambiato il nome del PC da schermata di Windows, la modifica non sembrava essere effettuata correttamente.
    Ho testato questo problema su diversi computer e il problema si è sempre risolto in questa maniera.
    Spero che questo contributo sia utile a tutti Voi.
    Rimango a disposizione per qualsiasi chiarimento.
    Paolo

  • Tomcat - HTTP Status 500 - System Unavailable. Please try again later.

    HI,
    I installed ORACLE XE + TOMCAT 7 + ORACLE XE on windows XP.
    All seems to work under debug session but on normal session I found the following message only when I put a specific parameter on my query.
    The same query with the same parameter runs in the sqldev client whitout errors
    Here below the massages:
    HTTP Status 500 - System Unavailable. Please try again later.
    type Status report
    message System Unavailable. Please try again later.
    description The server encountered an internal error (System Unavailable. Please try again later.) that prevented it from fulfilling this request.
    Apache Tomcat/7.0.2
    and in the log file:
    2011-02-23 18:04:19 Commons Daemon procrun stdout initialized
    APEX Listener version : 1.0.2.238.15.24
    APEX Listener server info: Apache Tomcat/7.0.2
    Using Config file:C:\Programmi\Apache Software Foundation\Tomcat 7.0\temp\apex\apex-config.xml
    -- listing properties --
    PropertyCheckInterval=60
    ValidateConnection=true
    MinLimit=1
    MaxLimit=10
    InitialLimit=3
    AbandonedConnectionTimeout=900
    MaxStatementsLimit=10
    InactivityTimeout=1800
    MaxConnectionReuseCount=50000
    ***********ERROR***********
    init: # headers=46
    declare nm owa.vc_arr := ?;
         vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:18
    CALL:
    begin
    f(p=>?);
    commit;
    end;
    BINDS
    p:106:3:4503262208013405:::::PAGE CALL:
    declare
    nlns number := 999999;
    l_clob CLOB;
    lines htp.htbuf_arr;
    l_buff varchar2(32767);
    l_clob_init boolean:= false;
    l_file varchar2(5);
    begin
    OWA.GET_PAGE(lines, nlns);
    if (nlns > 1) then
    for i in 1..nlns loop
    if ( length(lines(i)) > 0 ) then
    if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32767) then
                   if (NOT l_clob_init) then
                        dbms_lob.createtemporary(l_clob, TRUE);
                        dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
                        l_clob_init:=true;
                   end if;
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := lines(i);
    else
    l_buff := l_buff || lines(i);
    end if;
    end if;
    end loop;
    end if;
    if (l_clob_init) then
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := '';
    end if;
    ? := l_clob;
    ? := l_buff;
    if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
    end;
    get_page FAILED:ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ^^^^^^^^^^^^ERROR^^^^^^^^
    ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ***********ERROR***********
    init: # headers=46
    declare nm owa.vc_arr := ?;
         vl owa.vc_arr := ?;
    begin
    owa.init_cgi_env( ?, nm, vl );
    htp.init; htp.HTBUF_LEN := 63;
    ? := sys_context('USERENV','SID');
    end;
    SID:18
    CALL:
    begin
    f(p=>?);
    commit;
    end;
    BINDS
    p:106:3:3777982020408238:::::PAGE CALL:
    declare
    nlns number := 999999;
    l_clob CLOB;
    lines htp.htbuf_arr;
    l_buff varchar2(32767);
    l_clob_init boolean:= false;
    l_file varchar2(5);
    begin
    OWA.GET_PAGE(lines, nlns);
    if (nlns > 1) then
    for i in 1..nlns loop
    if ( length(lines(i)) > 0 ) then
    if ( ( lengthb(l_buff) + lengthb(lines(i))) > 32767) then
                   if (NOT l_clob_init) then
                        dbms_lob.createtemporary(l_clob, TRUE);
                        dbms_lob.open(l_clob, dbms_lob.lob_readwrite);
                        l_clob_init:=true;
                   end if;
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := lines(i);
    else
    l_buff := l_buff || lines(i);
    end if;
    end if;
    end loop;
    end if;
    if (l_clob_init) then
    dbms_lob.writeappend(l_clob,length(l_buff),l_buff);
    l_buff := '';
    end if;
    ? := l_clob;
    ? := l_buff;
    if (wpg_docload.is_file_download) then l_file:='TRUE'; else l_file := 'FALSE'; end if; ? := l_file;
    end;
    get_page FAILED:ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    ^^^^^^^^^^^^ERROR^^^^^^^^
    ORA-06502: PL/SQL: errore : buffer della stringa di caratteri troppo piccolo di numero o valore
    ORA-06512: a line 32
    Could you kindly help me.
    Thanks in advance for your help
    Best Regards

    Hi Paolo,
    which APEX version do you use?
    There are only a few reasons that might lead to the behaviour you describe. These are
    - configured header size for Tomcat Connector is too small
    - configured character encoding for Tomcat Connector doesn't fit for APEX (you need UTF-8)
    - you don't have the required version of OWA_UTIL in your XE if you upgraded to a more recent APEX release (e.g. APEX 4.0)
    Have you configured the Tomcat's HTTP Connector to use the appropriate header size and character encoding?
    (see {thread:id=2174509})
    If you've upgraded your XEs APEX, e.g. to 4.0, you also have to update the OWA_UTIL in your XE. APEX versions from 3.0 onwards require at least 10.1.2.0.6, which is the version provided in the installation package. You may just update to that version by changing to the subdirectory owa of your APEX installation package and running
    @owainst.sqlas sys (just like in the steps before).
    You can check if you have the appropriate version of OWA_UTIL installed by running
    select owa_util.get_version from dual;In addition you may also want to check if you performed all steps of this small [url http://www.oracle.com/technetwork/developer-tools/apex/upgrade-apex-for-xe-154969.html]HowTo for the upgrade of APEX in XE databases.
    -Udo

  • Gdk-WARNING **: Error converting from UTF-8 to STRING

    I just installed Arch64 few days ago. In my old setup I was used to work with 2 softwares: Eclipse CDT and WingIDE.
    I tried to start these applications (they require java and python but they are binary releases) locally and I get this errors which I can't solve by myself googling... Reporting snapshots of my desktop too.
    [j_zar@Surprise eclipse]$ ./eclipse
    (eclipse:7864): Gdk-WARNING **: Error converting from UTF-8 to STRING: Impossibile aprire il convertitore da "UTF-8" a "ISO-8859-1"
    (eclipse:7864): Gdk-WARNING **: Error converting from UTF-8 to STRING: La conversione del set di caratteri da "UTF-8" a "ISO-8859-1" non è supportata
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: Failed to load Pango module '/usr/lib/pango/1.6.0/modules/pango-basic-fc.so' for id 'BasicScriptEngineFc'
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: pango_shape called with bad font, expect ugly output
    (eclipse:7864): Pango-WARNING **: pango_font_get_glyph_extents called with null font argument, expect ugly output
    (eclipse:7864): Pango-WARNING **: pango_font_get_metrics called with null font argument, expect ugly output
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Pango-WARNING **: /usr/lib/pango/1.6.0/modules/pango-basic-fc.so: wrong ELF class: ELFCLASS64
    (eclipse:7864): Gdk-WARNING **: Error converting from UTF-8 to STRING: La conversione del set di caratteri da "UTF-8" a "ISO-8859-1" non è supportata
    (eclipse:7864): Gdk-WARNING **: Error converting from UTF-8 to STRING: La conversione del set di caratteri da "UTF-8" a "ISO-8859-1" non è supportata
    (eclipse:7864): Gdk-WARNING **: Error converting from UTF-8 to STRING: La conversione del set di caratteri da "UTF-8" a "ISO-8859-1" non è supportata
    (eclipse:7864): Gdk-WARNING **: Error converting from UTF-8 to STRING: La conversione del set di caratteri da "UTF-8" a "ISO-8859-1" non è supportata
    (eclipse:7864): Gdk-WARNING **: Error converting from UTF-8 to STRING: La conversione del set di caratteri da "UTF-8" a "ISO-8859-1" non è supportata
    (eclipse:7864): Pango-WARNING **: pango_cairo_font_get_scaled_font called with bad font, expect ugly output
    [j_zar@Surprise wingide]$ ./wing
    (wing.py:7922): Gdk-WARNING **: Error converting from UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1'
    (wing.py:7922): Gdk-WARNING **: Error converting from UTF-8 to STRING: Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
    Anybody can help in this???
    Last edited by J_Zar (2007-10-30 11:48:28)

    There has been talk about adding these config files, that fixes this kinda problems, to a separate pkg with a helper script you run 32bit programs with.
    for quick fix
    Link
    Grab the 3 pango files, throw them somewhere, edit pangorc to corresponding paths for the 2 other files.
    Start program with
    export PANGO_RC_FILE="/path/to/pangorc"
    program
    for the string error, if its iconv
    export GCONV_PATH=/opt/lib32/usr/lib/gconv
    to previous command
    Note, you cant start 64bit programs that use pango/iconv from the terminal you exported the variable.

  • Can you improve the speed of my CSV Reader and Writer?

    hi all, i'm trying to develop a CSV Writer and Reader. i have done a good work to implement the special character and quoting it, it's also support multi line value but it's incredibly slow.
    can someone help to make it faster?
    here it's how to use the writer
    char *stringhe_sorgenti[10] = {0};
    out = OpenFile(nfile, VAL_WRITE_ONLY, VAL_TRUNCATE, VAL_ASCII);
    for(i = 0; i < sizeof(stringhe_sorgenti)/sizeof(char*); i++){
    stringhe_sorgenti[i] = (char*)calloc(200, sizeof(char));
    sprintf(stringhe_sorgenti[0], "example1");
    sprintf(stringhe_sorgenti[1], "example2");
    scrivi_riga_csv(out, stringhe_sorgenti, sizeof(stringhe_sorgenti)/sizeof(char*), formato);
    for(i = 0; i < sizeof(stringhe_sorgenti)/sizeof(char*); i++){
    free(stringhe_sorgenti[i]);
    CloseFile(out);
    here is the writer 
    void scrivi_riga_csv(int file_handle, char *stringa_sorgente[], int numero_stringhe, int formato)
    char delimitatore[2][2] = {{',', '\0'}, {';', '\0'}};
    char stringa_destinazione[1024] = {0};
    int index_destinazione = {0};
    int index_start = {0};
    int index_fine = {0};
    int errore = {0};
    int i = {0};
    //int k = {0};
    size_t lunghezza_stringa = {0};
    for(i = 0; i < numero_stringhe; i++){
    if(i != 0){
    stringa_destinazione[index_destinazione++] = delimitatore[formato][0];
    index_start = 0;
    lunghezza_stringa = strlen(stringa_sorgente[i]);
    // se la stringa sorgente
    if( (FindPattern(stringa_sorgente[i], 0, lunghezza_stringa, delimitatore[formato], 0, 0) != -1) // contiene delimitatore
    || (FindPattern(stringa_sorgente[i], 0, lunghezza_stringa, "\"", 0, 0) != -1) // contiene parentesi
    || (FindPattern(stringa_sorgente[i], 0, lunghezza_stringa, "\n", 0, 0) != -1) // contiene a capo
    // apro parentesi all'inizio
    stringa_destinazione[index_destinazione++] = '"';
    // metodo find pattern, piu' complesso ma piu' performante
    do{ index_fine = FindPattern(stringa_sorgente[i], index_start, lunghezza_stringa - index_start, "\"", 0, 0);
    if(index_fine != -1){
    index_fine++;
    // copio dall'inizio fino alle virgolette
    CopyString (stringa_destinazione, index_destinazione, stringa_sorgente[i], index_start, index_fine - index_start);
    index_destinazione += index_fine - index_start;
    // ne aggiungo una dopo
    stringa_destinazione[index_destinazione++] = '"';
    // aggiorno la posizione di start e riparto con il while
    index_start = index_fine;
    }while(index_fine != -1);
    CopyString (stringa_destinazione, index_destinazione, stringa_sorgente[i], index_start, lunghezza_stringa - index_start);
    index_destinazione += strlen(stringa_sorgente[i]) - index_start;
    // alla fine della riga chiudo la parentesi
    stringa_destinazione[index_destinazione++] = '"';
    else{
    // altrimenti la copio semplicemente e shifto l'indice della stringa di destinazione
    CopyString (stringa_destinazione, index_destinazione, stringa_sorgente[i], 0, lunghezza_stringa);
    index_destinazione += strlen(stringa_sorgente[i]);
    memset(stringa_sorgente[i], 0, strlen(stringa_sorgente[i]));
    errore = WriteLine (file_handle, stringa_destinazione, strlen(stringa_destinazione));
    if(errore == -1){
    errore = GetFmtIOError();
    MessagePopup("WriteLine -> WriteLine", GetFmtIOErrorString(errore));
    return;
     here how to read the file
    char *stringhe_sorgenti[10] = {0};
    for(i = 0; i < sizeof(stringhe_sorgenti)/sizeof(char*); i++){
    stringhe_sorgenti[i] = (char*)calloc(200, sizeof(char));
    out = OpenFile(nomearchivio, VAL_READ_ONLY, VAL_OPEN_AS_IS, VAL_BINARY);
    leggi_riga_csv(out, stringhe_sorgenti, sizeof(stringhe_sorgenti)/sizeof(char*), formato);
    strcpy(intestazione.data, stringhe_sorgenti[1]);
    for(i = 0; i < sizeof(stringhe_sorgenti)/sizeof(char*); i++){
    free(stringhe_sorgenti[i]);
    CloseFile(out);
     and here the reader
    void leggi_riga_csv(int file_handle, char *stringa_destinazione[], int numero_stringhe, int formato)
    char delimitatore[2][2] = {{',', '\0'},
    {';', '\0'}};
    char stringa_sorgente[1024] = {0};
    int stringa_in_corso = {0};
    int index_inizio_valore = {0};
    int index_doublequote = {0};
    int offset_stringa_destinazione = {0};
    size_t lunghezza_stringa = {0};
    int inquote = {0};
    int errore = {0};
    int i = {0};
    for(i = 0; i < numero_stringhe; i++){
    lunghezza_stringa = strlen(stringa_destinazione[i]);
    memset(stringa_destinazione[i], 0, lunghezza_stringa);
    do{ memset(&stringa_sorgente, 0, sizeof(stringa_sorgente));
    errore = ReadLine(file_handle, stringa_sorgente, sizeof(stringa_sorgente) - 1);
    // If ReadLine reads no bytes because it has already reached the end of the file, it returns –2.
    // If an I/O error occurs, possibly because of a bad file handle, ReadLine returns –1.
    // You can use GetFmtIOError to get more information about the type of error that occurred.
    // A value of 0 indicates that ReadLine read an empty line.
    if(errore == -1){
    errore = GetFmtIOError();
    MessagePopup("leggi_riga_csv -> ReadLine", GetFmtIOErrorString(errore));
    return;
    else if(errore == -2){
    errore = GetFmtIOError();
    MessagePopup("leggi_riga_csv -> ReadLine", "already reached the end of the file");
    return;
    else{
    lunghezza_stringa = errore;
    index_inizio_valore = 0;
    // metodo find pattern, piu' complesso ma piu' performante
    for(i = 0; i <= lunghezza_stringa; i++){
    // se come primo carattere ho una " allora e' una stringa speciale
    if(inquote == 0){
    if(stringa_sorgente[i] == '\"'){
    inquote = 1;
    index_inizio_valore = ++i;
    else{
    // altrimenti cerco il delimitatore senza il ciclo for
    i = FindPattern(stringa_sorgente, i, lunghezza_stringa - index_inizio_valore, delimitatore[formato], 0, 0);
    if(i == -1){
    // se non lo trovo ho finito la riga
    i = lunghezza_stringa;
    if(stringa_sorgente[i - 1] == '\r'){
    i--;
    if(stringa_in_corso < numero_stringhe){
    CopyString (stringa_destinazione[stringa_in_corso], 0, stringa_sorgente, index_inizio_valore, i - index_inizio_valore);
    offset_stringa_destinazione = 0;
    stringa_in_corso++;
    if(stringa_sorgente[i] == '\r'){
    i++;
    index_inizio_valore = i + 1;
    if(inquote == 1){
    // se sono nelle parentesi cerco le virgolette
    i = 1 + FindPattern(stringa_sorgente, i, lunghezza_stringa - index_inizio_valore, "\"", 0, 0);
    if(i == 0){
    if(stringa_sorgente[lunghezza_stringa - 1] == '\r'){
    lunghezza_stringa--;
    // se non le trovo ho finito la riga, esco dal ciclo for
    break;
    // se incontro una doppia parentesi salto avanti
    else if(stringa_sorgente[i] == '\"'){
    continue;
    // !!!! fondamentale non cambiare l'ordine di questi else if !!!!!
    // se incontro una parentesi seguita dal delimitatore
    // o se incontro una parentesi seguita dal terminatore
    // \r = CR = 0x0D = 13
    // \n = LF = 0x0A = 10
    // a capo = CR + LF
    else if( (stringa_sorgente[i] == delimitatore[formato][0])
    || (stringa_sorgente[i] == '\r')
    || (stringa_sorgente[i] == '\0')
    // salvo il valore
    inquote = 0;
    if(stringa_in_corso < numero_stringhe){
    CopyString (stringa_destinazione[stringa_in_corso], offset_stringa_destinazione, stringa_sorgente, index_inizio_valore, i - 1 - index_inizio_valore);
    offset_stringa_destinazione = 0;
    stringa_in_corso++;
    if(stringa_sorgente[i] == '\r'){
    i++;
    index_inizio_valore = i;
    // se sono andato a capo scrivo fino a dove sono e poi procedo con la nuova riga
    if(inquote){
    if(stringa_in_corso < numero_stringhe){
    CopyString (stringa_destinazione[stringa_in_corso], offset_stringa_destinazione, stringa_sorgente, index_inizio_valore, lunghezza_stringa - index_inizio_valore);
    strcat(stringa_destinazione[stringa_in_corso], "\n");
    offset_stringa_destinazione += lunghezza_stringa - index_inizio_valore;
    offset_stringa_destinazione++;
    }while(inquote == 1);
    // elimino le doppie parentesi
    for(i = 0; i < numero_stringhe; i++){
    index_doublequote = 0;
    do{ lunghezza_stringa = strlen(stringa_destinazione[i]);
    index_doublequote = FindPattern(stringa_destinazione[i], index_doublequote, lunghezza_stringa - index_doublequote, "\"\"", 0, 0); // contiene doppia parentesi
    if(index_doublequote != -1){
    index_doublequote++;
    memmove (stringa_destinazione[i] + index_doublequote, stringa_destinazione[i] + index_doublequote + 1, lunghezza_stringa - index_doublequote);
    }while(index_doublequote != -1);
    return;

    the format is CSV, i try to explain better what i'm doing.
    our client asked to save acquisition data with header description in an excel readable format, i've decided to use .CSV and not .TDM because it's a simple txt file and we never used .TMD but i will propose to use it.
    after some research on the internet i've found nothing to handle .CSV in CVI except from this csv_parse but i've found it difficult to be maintained so i've write it by my own hand.
    i've written two example of how to use my function to read or write and i've copyed my function used to read and write.
    in the write function i check with FindPattern if the string to be write contain some special character, if i find this i have to quote the string to respect the standard RFC4180 and if i find a quote i have to double it. aftere i've done this check i write the line in the file.
    in the read function, that is more complicated, i:
    check if the first character is a quote.
    if it's not i copy the string until the delimitier or until the end of the line.
    if it is i have a string with special character inside so:
    i find the first quote in the string. when i've found i check if it's follwed by another quote. this means that in the starting message i was writing a single quote.
    if it's not followed by another quote but it's followed by a delimiter or a carriage return i've finished the special line.
    if i don't find it it means that the special quote have a carriage return inside and i have to check the next line. before checking the next line i save this in my string.
    after this loop i check in every string if i have a double quote and i delete one.
    the main problem is in the speed of this, i'm acquiring data at 1000 S/s with 8 active channel for 60 second so i have 480000 data to be stored, divided in 60.000 row and 8 column. to read a file like that my pc stay "locked" for 15 second or more.
    i've tried to use the arraytofile function and it's extremly fast and i can also put header because the function can start from the last position in the file but the filetoarray function start from the beginning and i cannot read the header correctly. also if i'm using the european CSV with semicolon as delimiter with arraytofile i cannot select the semicolon but only the coma

  • PatternSyntaxException: Dangling meta character '*' near index 0

    Hi,
    I am using DocumentFilter to control the input in a JtextField In accordance with model of a mask.
    The mask can contain the following characters:
        //  # :  for  =---> NUMBER only
        //  ? :  for  =---> LETTER only
        //  A :  for  =---> LETTER end for NUMBER
        //  * :  for  =---> ANYTHING    I made a class that extends DocumentFilter and it look like this:
    public class MydocumentFilter extends DocumentFilter {
    public void insertString(...){
    // do anything
        } // insertString()
    public void remove(...)
    // do anything
        } // remove()
    @Override
        public void replace(
                DocumentFilter.FilterBypass fb,
                int offset, // posizione del cursore
                int length, // Length of text to delete (solo per sostituzioni...)
                String text,// testo da inserire
                AttributeSet attrs) throws BadLocationException {
    // here are some controls that change the value of the text variable, and at last call the super class..:
            super.replace(fb, offset, length, text.replaceAll(text, replace), attrs);
        } // replace()
    } // class  MydocumentFilterI have a problem when the user write wildcards (='*' OR '?').
    Then I get the message:
    Exception in thread "AWT-EventQueue-0" java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0.I know that '*' and “?” are is a metachars and for that I added this code before calling super.replace(...);
            if (text.compareTo("*") == 0){
                replace = "\\*";
            }but I don't get the expected result. I get -\*- instead then -*-
    here the code of the program that I use to make tests:
    * http://www.java2s.com/Tutorial/Java/0260__Swing-Event/CustomDocumentFilter.htm
    * @author Owner
    //public class IntegerRangeDocumentFilter extends DocumentFilter {
    public class NavBean_documentFilter extends DocumentFilter {
        enum CharAcceptability_ENUM {
            valid, invalid, overrite
        String mask;
        public NavBean_documentFilter(String mask_) { // constructor
            mask = mask_;
        } // constructor
        @Override
        public void insertString(
                DocumentFilter.FilterBypass fb,
                int offset,
                String string,
                AttributeSet attr) throws BadLocationException {
            System.out.println("insert string" + string);
            System.out.println(offset);
            super.insertString(fb, offset, string, attr);
        } // insertString()
        @Override
        public void remove(DocumentFilter.FilterBypass fb, int offset, int length)
                throws BadLocationException {
            System.out.println("remove");
            super.remove(fb, offset, length);
        } // remove()
        public void replace(
                DocumentFilter.FilterBypass fb,
                int offset, // posizione del cursore
                int length, // Length of text to delete (solo per sostituzioni...)
                String text,// testo da inserire
                AttributeSet attrs) throws BadLocationException {
            boolean valid = true;
            if (offset > mask.length()) {
                return;
            if (text.length() != 1) {
                return;
            CharAcceptability_ENUM charAcceptability_ENUM = checkTheInput(text, offset);
            String replace = null;
            switch (charAcceptability_ENUM) {
                case invalid:
                    replace = "";
                    break;
                case valid:
                    replace = text;
                    break;
                case overrite:
                    char cc = mask.charAt(offset);
                    replace = String.valueOf(cc);
                    break;
            // It is because * is used as a metacharacter to signify one or more
            // occurences of previous character.
            // So if i write M* then it will look for files MMMMMM..... !
            // Here you are using * as the only character so the compiler
            // is looking for the character to find multiple occurences of,
            // so it throws the exception.:)
            if (text.compareTo("*") == 0){
                replace = "\\*";
            text = replace;
            super.replace(fb, offset, length, text.replaceAll(text, replace), attrs);
    //        super.replace(fb, offset, length, text, attrs);
        } // replace()
        private CharAcceptability_ENUM checkTheInput(String text, int cursorPosition) {
            if (cursorPosition >= mask.length()) {
                return CharAcceptability_ENUM.invalid;
            char mappedCharInTheMask = mask.charAt(cursorPosition); // qui erro
            char charToSet = text.charAt(0);
            System.out.println("carattere da mettere = " + charToSet + " ; carattere della maschera = " + mappedCharInTheMask);
            boolean placeHolderFree = mask.contains(String.valueOf(mappedCharInTheMask));
            if (!placeHolderFree) {
                return CharAcceptability_ENUM.invalid;
            CharAcceptability_ENUM charAcceptability_ENUM =
                    CharAcceptability_ENUM.invalid;
            char holdPlace = mask.charAt(cursorPosition);
            switch (holdPlace) {
                case '*': // 
                    charAcceptability_ENUM = CharAcceptability_ENUM.valid;
                    break;
                case '#': // only numbers
                    if ( Character.isDigit(charToSet)) {
                    charAcceptability_ENUM = CharAcceptability_ENUM.valid;
                    break;
                case '?': //only letters
                    if (Character.isLetter(charToSet)){
                        charAcceptability_ENUM = CharAcceptability_ENUM.valid;
                    break;
                case 'A': // letters and numbers
                    if (Character.isLetterOrDigit(charToSet)){
                    charAcceptability_ENUM = CharAcceptability_ENUM.valid;
                    break;
                    default:
                        charAcceptability_ENUM = CharAcceptability_ENUM.overrite;
            System.out.println("valore di charAcceptability_ENUM = " + charAcceptability_ENUM.toString());
            return charAcceptability_ENUM;
        } // checkTheInput()
    } // class UsingDocumentFilter
    class RangeSample {
        public static void main(String args[]) {
            JFrame frame = new JFrame("Range Example");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            // questo (in generale) e' quanto si deve fare per usare un filtro...
            JTextField textFieldOne = new JTextField();
            JLabel jLabMask = new JLabel();
            JPanel panel = new JPanel();
            String explanation1 = "      ---  use of wildCard: ---";
            String explanation2 = " #  :  is for  =---> only NUMBER ";
            String explanation3 = " ?  :  is for  =---> only LETTER ";
            String explanation4 = " A  :  is for  =---> LETTER end NUMBER";
            String explanation5 = " *  :  is for  =---> ANYTHING      ";
            JLabel jLabExplanat1 = new JLabel(explanation1);
            JLabel jLabExplanat2 = new JLabel(explanation2);
            JLabel jLabExplanat3 = new JLabel(explanation3);
            JLabel jLabExplanat4 = new JLabel(explanation4);
            JLabel jLabExplanat5 = new JLabel(explanation5);
            panel.setLayout(new GridLayout(5, 1));
            panel.add(jLabExplanat1);
            panel.add(jLabExplanat2);
            panel.add(jLabExplanat3);
            panel.add(jLabExplanat4);
            panel.add(jLabExplanat5);
            jLabExplanat1.setForeground(Color.green);
            jLabExplanat2.setForeground(Color.red);
            jLabExplanat3.setForeground(Color.red);
            jLabExplanat4.setForeground(Color.red);
            jLabExplanat5.setForeground(Color.red);
            jLabMask.setForeground(Color.blue);
            //AAA-##:***
            String mask = "##-A#A:#????  ***";
    //        String mask = "***";
            Document textDocOne = textFieldOne.getDocument();
            NavBean_documentFilter filterOne = new NavBean_documentFilter(mask);
            ((AbstractDocument) textDocOne).setDocumentFilter(filterOne);
            String jLabelTxt = "mask to use :  " + filterOne.mask + "   ";
            jLabMask.setText(jLabelTxt);
            frame.setLayout(new GridLayout(3, 1));
            frame.add(panel);
            frame.add(jLabMask);
            frame.add(textFieldOne);
            frame.pack();
            frame.setLocation(300, 150);
            frame.setVisible(true);
        } // main()
    } // class RangeSampleany advice shall be appreciated
    thank you
    regards
    Angelo Moreschini

    All that many lines for a regex question (where the error message already pointed to), which has nothing to do with Swing. An SSCCE looks different.
    if (text.compareTo("*") == 0){
    replace = "\\*";
    text = replace;
    super.replace(fb, offset, length, text.replaceAll(text, replace), attrs);You must keep the text, the regex and the replacement string apart:
    String text= "A", regEx= "A", rep= "B";
    //String text= "*", regEx="\\*", rep= "*";
    text= text.replaceAll(regEx, rep);
    System.out.println(text);And why don't you use a JFormattedTextField with a MaskFormatter which does all the job for you.

  • [FLEX] VALIDATE CF

    Hi, someone have a code to validate CF in FLEX like this in java?
    public static boolean isValid(String parCF){
          // conversione della stringa in caratteri maiuscoli
          String cf = parCF.toUpperCase();
           * eliminazione degli eventuali spazi
          cf = StringMng.removeChars(' ', cf);
           * verifica della lunghezza del codice fiscale
          if (cf.length() == 16){
              * creazione della matrice con i caratteri dell'alfabeto
             char[] Carattere = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
                            'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
                            'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0',
                            '1', '2', '3', '4', '5', '6', '7', '8', '9'};
              * creazione della matrice con i valori attribuiti ai caratteri
              * dispari, corrispondenti alla matrice di caratteri
             int[] ValoriDispari = {1, 0, 5, 7, 9, 13, 15, 17, 19, 21, 2, 4,
                               18, 20, 11, 3, 6, 8, 12, 14, 16, 10, 22,
                               25, 24, 23, 1, 0, 5, 7, 9, 13, 15, 17, 19,
                               21};
              * creazione della matrice con i valori attribuiti ai caratteri
              * pari, corrispondenti alla matrice di caratteri
             int[] ValoriPari = new int[36];
             for (int i = 0; i < 26; i++){
                ValoriPari[i] = i;
             for (int i = 26; i < 36; i++){
                ValoriPari[i] = i - 26;
             // conversione della stringa da esaminare ad una matrice di caratteri
             char[] caratteriCF = cf.toCharArray();
             int valore = 0;
             for (int i = 0; i < caratteriCF.length - 1; i++){
                 * somma delle posizioni pari in base ai valori
                 * corrispondenti contenuti nell'array ValoriPari
                 * (tranne l'ultimo carattere che è quello di controllo)
                if ((i+1) % 2 == 0){
                   for (int j = 0; j < Carattere.length; j++){
                      if (caratteriCF[i] == Carattere[j]){
                         valore += ValoriPari[j];
                    * somma delle posizioni dispari in base ai valori
                    * corrispondenti contenuti nell'array ValoriDispari
                }else{
                   for (int j = 0; j < Carattere.length; j++){
                      if (caratteriCF[i] == Carattere[j]){
                         valore += ValoriDispari[j];
              * ottenimento del resto della divisione per 26 e
              * valutazione del carattere di controllo (ultimo carattere)
             valore %= 26;
             for (int i = 0; i < 26; i++){
                 * verifica che il valore dell'ultimo carattere corrisponda
                 * al valore ottenuto attraverso l'algoritmo di somma precedente
                if (caratteriCF[caratteriCF.length - 1] == Carattere[i]){
                   if (valore == i){
                      return true;
                   }else{
                      return false;
             return false;
          }else{
             return false;

    Nevermind. As you can see in the URL, there is no "c:" and I
    don't know why that was not there by default in the project set-up.
    It doesn't matter. Problem solved.
    ///johan

  • How to change style property in runtime

    Hallo. I have this style tag in my main application:
    <fx:Style>
         @namespace s "library://ns.adobe.com/flex/spark";
         @namespace mx "library://ns.adobe.com/flex/halo";
         @font-face {
         src: url("../caratteri/MyriadPro-Bold.otf");
         fontFamily: "MyriadPro-Bold";
         embedAsCFF: true;
         .mioStileMyriadProBold {
         fontFamily:MyriadPro-Bold;
         fontLookup: embeddedCFF;
    </fx:Style>
    It works good but i wish to change the fontFamily while the program is running. How can i do that?
    Thx a lot.
    Max

    Hallo. Thx for the answer. I would like to know if your solution is working always. I mean, in my example i showed you that i have this:
    .mioStileMyriadProBold {
    fontFamily:MyriadPro-Bold;
    fontLookup: embeddedCFF;
    But what if i have 2 custom styles??.. How can i change one or another specifically ??
    I hope you understand what i mean.
    Max

  • Troubles with using twice exec_sql in a procedure

    Then I've written a procedure (1), using exec_sql.execute, that executes an SQL string, given the number of columns.
    Then, I've written a procedure (2), using exec_sql.describe_column, that identifies the columns in the result of an SQL string.
    Both of them work.
    So I tried to merge them, so I shouldn't need to know how many columns I have to extract in the procedure (2), but, after executing the "(1)" part, an exception (ORA-306500: non-Oracle exception) is thrown when "res := exec_sql.execute(cursID)" is executed.
    Excluding exclusively one of the two parts with /* and */, I see that each part, stand alone from another, works!
    I use the same cursor (exec_sql.curstype) for both parts. I've also tried to use two different cursors, closing the former before opening the latter, but the results don't change.
    Where is the trouble?
    Thanks in advance.

    Here is the code. Thanks in advance.
    procedure push_xls_query(wh text_io.file_type, wh_web varchar2, titolo varchar2, testoquery varchar2) is
         type stringArray is table of varchar2(500) index by binary_integer;
         type intArray is table of pls_integer index by binary_integer;
         valori stringArray;
         tipi intArray;
         nRows number := 0;
         i number := 0;
         cursorID exec_sql.curstype;
         result pls_integer;
         colName varchar2(30);
         colLen number;
         colType pls_integer;
         numerocampi number;
         temp1 varchar2(80);
    begin
         -- Se la lunghezza del titolo e' maggiore di 31 caratteri, lancia una eccezione
         if length(titolo) > 31 then
              raise xls_exception;
         end if;
         pkg_txt_io.putline(wh, wh_web, '<Worksheet ss:Name="'||to_xml(titolo)||'"><Table>');
         numerocampi := 0;
    cursorID := exec_sql.open_cursor;
    exec_sql.parse(cursorID, testoquery, exec_sql.V7);
    message('Prima di execute'); message(' ', no_acknowledge);
         result := exec_sql.execute(cursorID);
    message('Dopo di execute'); message(' ', no_acknowledge);
         -- Stampa i nomi dei campi
         pkg_txt_io.putline(wh, wh_web,'<Row>');
         loop
              numerocampi:=numerocampi+1;
              begin
                   exec_sql.describe_column(cursorID, numerocampi, colName, colLen, colType);
                   tipi(numerocampi) := colType;
                   if colType in (exec_sql.NUMBER_TYPE,
                             exec_sql.FLOAT_TYPE,
                             exec_sql.ROWID_TYPE) then
                        temp1 := 'rightbold';
                   else
                        temp1 := 'bold';
                   end if;
                   pkg_txt_io.putline(wh, wh_web, '<Cell ss:StyleID="'||temp1||'"><Data ss:Type="String">'||to_xml(colName)||'</Data></Cell>');
              exception
                   when others then
                        if sqlcode=1 then -- -306500 then
                             exit;
                        else
                             message('Errore imprevisto: '||SQLCODE||' - '||SQLERRM);
                             message(' ', no_acknowledge);
                             return;
                        end if;
              end;
         end loop;
         pkg_txt_io.putline(wh, wh_web,'</Row><Row></Row>');
    i := 1;
    while i <= numerocampi loop
    valori(i) := null;
    exec_sql.define_column(cursorID, i, valori(i), 500);
    i := i+1;
    end loop;
    while (exec_sql.fetch_rows(cursorID)>0) loop
    nRows := nRows + 1;
         pkg_txt_io.putline(wh, wh_web, '<Row>');
    i := 1;
    while i <= numerocampi loop
    exec_sql.column_value(cursorID, i, valori(i));
              if tipi(i) in (exec_sql.NUMBER_TYPE,
                             exec_sql.FLOAT_TYPE,
                             exec_sql.ROWID_TYPE) then
                   temp1 := 'Number';
              else
                   temp1 := 'String';
              end if;
              pkg_txt_io.putline(wh, wh_web, '<Cell><Data ss:Type="'||temp1||'">'||to_xml(valori(i))||'</Data></Cell>');
    i := i+1;
    end loop;
         pkg_txt_io.putline(wh, wh_web, '</Row>');
    end loop;
         exec_sql.close_cursor(cursorID);
         pkg_txt_io.putline(wh, wh_web, '</Table></Worksheet>');
    end;
    procedure push_xls_simplequery(filename varchar2, testoquery varchar2) is
         wh text_io.file_type;
         wh_web varchar2(1);
    begin
         begin
              pkg_txt_io.delete_temp_file(filename);
         exception
              when pkg_txt_io.ex_web_io then null;
         end;
         pkg_txt_io.open(filename, 'w', wh, wh_web);
         push_xls_begin(wh, wh_web);
         push_xls_query(wh, wh_web, 'Sheet1', testoquery);
         push_xls_end(wh, wh_web);
         pkg_txt_io.close(wh, wh_web);
    end;

  • Gridbag layout resize problem

    I have some JLabel, as statusBar, when user diminishes the width of jframe the text of the jlabel is overlapped to the text of other jlabel, therefore the text becomes not leggibile
    I would want that when the user diminishes the width of the frame, the labels disappear one to the time
    I have this code:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class StatusBar extends JPanel {
         private JLabel userJLabel;
         private JLabel groupJLabel;
         private JLabel serverJLabel;
         private JLabel statusJLabel;
         private JLabel versionJLabel;
         public StatusBar() {
              userJLabel = new JLabel("TEXT ON LABEL ONE");     
              groupJLabel = new JLabel("TEXT ON LABEL TWO");
              serverJLabel = new JLabel("LABEL THREE");     
              statusJLabel = new JLabel("LABEL FOUR");
              versionJLabel = new JLabel("LABEL FIVE");
              //create border
              BevelBorder loweredBevelBorder1 = (BevelBorder) BorderFactory.createLoweredBevelBorder();
              //set border
              userJLabel.setBorder(loweredBevelBorder1);          
              groupJLabel.setBorder(loweredBevelBorder1);          
              serverJLabel.setBorder(loweredBevelBorder1);          
              statusJLabel.setBorder(loweredBevelBorder1);          
              versionJLabel.setBorder(loweredBevelBorder1);          
              //set statusBar layout
              this.setLayout(new GridBagLayout());
              GridBagConstraints c = new GridBagConstraints();
              c.weightx = 1;
              c.gridx = 0;
              c.gridy = 0;
              c.fill = GridBagConstraints.HORIZONTAL;          
              this.add(userJLabel, c);
              c.gridx = 1;
              c.gridy = 0;
              c.fill = GridBagConstraints.HORIZONTAL;
              this.add(groupJLabel, c);
              c.gridx = 2;
              c.gridy = 0;
              c.fill = GridBagConstraints.HORIZONTAL;
              this.add(serverJLabel, c);
              //non rimuovere il carattere di spazio altrimenti la statusBar non viene visualizzata correttamente
              //se l'utente diminuisce le dimensioni del JFrame dello studio
              JLabel emptyLabel = new JLabel(" ");     
              //emptyLabel.setPreferredSize(new Dimension(30, 23));     
              emptyLabel.setBorder(loweredBevelBorder1);
              //c.weightx = 1;
              c.gridx = 3;
              c.gridy = 0;
              c.fill = GridBagConstraints.HORIZONTAL;
              this.add(emptyLabel, c);
              //c.weightx = 0;
              c.gridx = 4;
              c.gridy = 0;
              c.fill = GridBagConstraints.HORIZONTAL;
              this.add(statusJLabel, c);
              //c.weightx = 0;
              c.gridx = 5;
              c.gridy = 0;
              c.fill = GridBagConstraints.HORIZONTAL;
              this.add(versionJLabel, c);          
         public static void main (String[] args) {
              JFrame frame = new JFrame("PROVA");
              frame.getContentPane().setLayout(new BorderLayout());
              frame.getContentPane().add(new JTextArea("bla bla bla"), BorderLayout.CENTER);
              frame.getContentPane().add(new StatusBar(), BorderLayout.SOUTH);
              frame.setSize(800, 600);
              frame.setVisible(true);
    }

    you could tryimport java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class StatusBar extends JPanel {
       private JLabel userJLabel;
       private JLabel groupJLabel;
       private JLabel serverJLabel;
       private JLabel statusJLabel;
       private JLabel versionJLabel;
       public StatusBar() {
          super(new FlowLayout(FlowLayout.RIGHT));
          userJLabel = new JLabel("TEXT ON LABEL ONE");
          groupJLabel = new JLabel("TEXT ON LABEL TWO");
          serverJLabel = new JLabel("LABEL THREE");
          statusJLabel = new JLabel("LABEL FOUR");
          versionJLabel = new JLabel("LABEL FIVE");
          //create border
          BevelBorder loweredBevelBorder1 = (BevelBorder) BorderFactory.createLoweredBevelBorder();
          //set border
          userJLabel.setBorder(loweredBevelBorder1);
          groupJLabel.setBorder(loweredBevelBorder1);
          serverJLabel.setBorder(loweredBevelBorder1);
          statusJLabel.setBorder(loweredBevelBorder1);
          versionJLabel.setBorder(loweredBevelBorder1);
          add(userJLabel);
          add(groupJLabel);
          add(serverJLabel);
          add(statusJLabel);
          add(versionJLabel);
       public static void main (String[] args) {
          JFrame frame = new JFrame("PROVA");
          frame.getContentPane().setLayout(new BorderLayout());
          frame.getContentPane().add(new JTextArea("bla bla bla"), BorderLayout.CENTER);
          frame.getContentPane().add(new StatusBar(), BorderLayout.SOUTH);
          frame.setSize(800, 600);
          frame.setVisible(true);
    }but this doesn't solve your second question..
    you could try FormLayout...
    http://www.jgoodies.com/freeware/forms/
    its very nice, i think it can do what you want too
    asjf

Maybe you are looking for

  • Move-item: The process cannot access the file because it is being used by another process.

    Hey, I have a powershell script where I first use Get-childitem to receive a number of files. Then I do some stuff with it and try to move the file afterwards. Unfortunately if I am using a lot of files I receive very often the error: The process can

  • Simplest way to make Motion Title Template

    I'm transitioning from FCP/Suite to Adobe Suite and am ironing out the 'why doesn't X work' frustrations one by one pretty successfully...except for when it comes to Titles. For one of my clients, I have created a rather basic lower third template so

  • Bringing vector graphics from illustrator photoshop final cut express.

    I'm having a heck of a time getting my logo from illustrator to photoshop to final cut express. It is squishing it. It looks jagged in photoshop. I am cutting and pasting from an eps file to a photoshop doc that is for film and video. I'm not sure wh

  • Does anyone know a site where i can get a new iphone WITHOUT A CONTRTACT!!!

    MY phone got water damaged and i want a cheaper new iphone but i already have a contract..so i need a site where i can just buy the iphone without a contract so it would be cheaper and i can just put old sim in new iphone! PLEASEEEEEEEEEEEE HELP!!!!!

  • Styling Ranges of text

    Hi, I'm having problem with the TextArea- and/or RichText-controls in Flex. I can't find any way to change the background color or individual lines or characters in the control. I've tried to apply styles to tags in the htmlText-property. But no luck