Mail deforma palabras al usar ñ, acentos o dos puntos

Compre hace un año una IMac de 27 pulgadas. Desde entonces Mail ha deformado las palabras de correos y de adjuntos cuando aparecen en ellos la letra ñ, el acento o los dos puntos. Me refiero a correos entrantes y salientes. Desde entonces solicito solución a Apple y no me contestan. Ayer cambié a Lion y el problema continúa.

Compre hace un año una IMac de 27 pulgadas. Desde entonces Mail ha deformado las palabras de correos y de adjuntos cuando aparecen en ellos la letra ñ, el acento o los dos puntos. Me refiero a correos entrantes y salientes. Desde entonces solicito solución a Apple y no me contestan. Ayer cambié a Lion y el problema continúa.

Similar Messages

  • Mail and iCal no longer syncing To Dos

    I have been an avid user of the 'To Do' functionality in Mail and iCal for several years now. For some reason, they have recently stopped working together. I can create new 'To Dos' in Mail, but they do not show up in iCal. Similarly, I can edit 'To Dos' that were previously created in Mail (and still visible in iCal), but the changes do not propagate. I can, however, manually add new To Dos in iCal just fine.
    I am saving all my 'To Dos' to the 'On My Mac' account, and they show up fine in Mail. I have tried changing the calendar the events are associated with to no effect. Indeed, I have even created new calendars to add 'To Dos' to in case that worked, but it has not. If I ask Mail to reveal in iCal, it shows iCal alright, but not the new To Do. Similarly, if I ask iCal to 'Show in Mail' of an old event, it will pull up Mail, but not the right event.
    Any idea what might have broken the link between Mail and iCal? This has been going on for a while, not sure if before or after the upgrade to 10.5.7, unfortunately. Also, I ran 'Busy Mac' for a while, but turned it off several months ago once Google sported proper CalDAV integration, and things were working fine.
    Message was edited by: Snoeren
    Message was edited by: Snoeren

    Works for my almost instanly i create a ical event in my computer it shows in mobileme in the browser,are you creating new events in mobileme home as show below::

  • Usar photoshop en dos maquinas a la vez

    se que puedo usar una sola licencia de photoshop cs6 en dos maquinas distintas, siempre y cuando no las use a la vez;
    pero si necesitara usarlas al mismo tiempo, seria posible si estos equipos no cuentan con internet?

    Estoy de acuerdo con eso,
    Y como si lo necesitaba urgente, lo intente y no se puede trabajar en photoshop si no esta activado,
    y como ya lo active en un equipo no lo puedo activar en el otro sin desactivarlo en el primero.

  • [FLA MX] dibujar una linea con as teniendo dos puntos

    Saludos forer@s:
    Pues eso, quiero que el usuario cree su propia ruta sobre un
    mapa dado y
    quiero que vaya haciendo una l�nea a trav�s de
    puntos.
    saludos
    http://www.arousa-norte.es
    http://www.acquariumgalicia.com
    http://www.e-imaxina.com
    http://www.osalnes.com
    http://www.stsanxenxo.com
    http://www.hotelperegrina.com
    http://www.campingmoreiras.com
    http://www.escapateaogrove.com
    http://www.turismogrove.com
    http://www.atlantika.net

    Buenos días señor,
    la herramienta 'convertir punto de ancla' (V) con movimiento
    de la ráton (applicado a un rincón punto de ancla) hace dos
    manejadores de contraria dirección, que pueden mover sólo
    al mismo tiempo.
    Por separar los manejadores, emplear la herramienta 'V' otra
    vez al fin de un manejador, con movimiento de la ráton.
    No sé si he entendido el problema exacto (yo hablo sólo un
    poco de español).
    Cordiales saludos --Gernot Hoffmann
    The tool 'Convert anchor' (V) with mouse movement (applied
    to a corner point) creates two handles in opposite direction
    which can move only simultaneously.
    In order to separate the handles, apply the tool (V) once
    more at the end of one handle, moving the mouse.
    I'm not sure whether I understood your problem correctly
    (I'm talking only a litte Spanish).
    Best regards --Gernot Hoffmann

  • Impedimento uso "Contactos" do mail

    Usando o mail pelo iPhone não temos acesso aos "contactos" que vamos gravando na conta do próprio mail.
    Só temos acesso se incluídos no próprio iPhone, o que nem sempre acontece.
    Para quando uma alteração no software que permita usar a conta do mail de igual maneira que nos computadores?

    Help obtained into
    Mail.app rules won't be saved

  • When I click on a link for an e-mail MS outlook dosen't open. It works in Chrome and IE. When i go to the optiions / programs mail to dosen't show up as an opt

    When I am browsing on a web site and I click on an e-mail address that should open Outlook it dose not. it doesn't do any thing. I have tried this in safe mode and still nothing, I have also looked in the options / programs to see what program mail to has assocated with it but there is no mail to showing
    the links work with Chrome and IE

    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    Please report back soon.

  • Command to Stop and Start the SBO Mailer Service

    Good day,
    I have an issue on my SAP server (SAP 2007 SP01 PL10) where the SBO Mailer server is intermittently stopping.  This is causing Emailed Alerts and emails from SAP to stop working.
    I want to create a Scheduled Task in Windows to run a batch file which will stop then restart the SBO Mailer service.
    Do you know the DOS command to stop and also start the SBO Mailer service?
    Thank you
    EvS

    Good Day,
    We have had the same problem. I Added this scheduled task to Validate if service is running and to Restart if Necessary..
    We are still working on this issue. I have a feeling itu2019s the SMTP rejecting the emails
    @echo off
    rem ***********************************************************************
    rem *                                                                     *
    rem *   This script will stop & restart the SAP SBO Mailer service        *
    rem *                                                                     *
    rem *   Created by Anthony Galvano from Syntax to recycle the service     *
    rem *   on Mar 22 2011                                                    *
    rem *                                                                     *
    rem ***********************************************************************
    call wmic /locale:ms_409 service where (name="B1LicenseService") get state /value | findstr State=Running
    if %ErrorLevel% EQU 0 (
        echo Running
    ) else (
        echo **** Now restarting SBOMailer service  ***
    net start SBOMail
    timeout /T 5
    Anthony

  • Can't Delete or Move Mail for Exchange Account

    I am using Mail to connect to my work e-mail.  It's an Exchange account.  Every time I try to move an e-mail I get: "messages could not be moved to the mailbox XXX".  If I try and delete an e-mail message I get "messages could not be moved to the mailbox Trash".  If I click on the question mark on the pop-up dialog, I get :
    The selected topic is currently unavailable.
    The topic you were trying to view could not be found.
    The lack of detailed error message doesn't allow me to send a detailed query to our IT support team.  I don't see how they can help me when I have no details about the error.
    I didn't get this error before I upgraded to Lion.  Anyone having similar problems?  Is there a way to get better error messages?
    ...Stephen

    I have the same problem regularly and also don't know how Mail can recover from this situation. One way I figured out is to delete the local Exchange folder when Mail is not running. If you then start Mail again it automatically rereads your whole mailbox from the server. But only remove the Exchange mailbox if you have any others .
    You can find it at <user>/Library/Mail/
    Actually, I have a folder V2 there and my exchange folder is inside this one.
    Hope that helps for a quick fix.
    Nevertheless, I'm also interested in a "user friendly" solution. It seems that Mail struggles at some points and then dos not resync with the exchange server again. Don't know why, because I thought that the Exchange server is the leading instance for that mailbox. By the way, I had this problem also with Snow Leopard.

  • Apple Mail forever fetching To Do from Lotus Notes IMAP server

    The subject says it all. I have three lines in my Mail activity:
    [To Do - <mailbox>] Updating cache directory
    Received 6 of 6 headers...
    [<mailbox>] Synchronizing with server
    Getting unread counts
    [<mailbox>] Communicating with server
    [Apple Mail To Do] Fetching
    What I normally do just click the stop signs to cancel and then all is fine. I can continue to check mail and it will run normally until the next time it happens.
    I know IMAP is a bit funky. This is a Lotus Notes server. My IMAP Path Prefix is blank. Everything works with this account. This is not a big deal, but it is slightly annoying.
    Any ideas on how to fix it?

    Apple Mail > Preferences > Composing > Create notes and to dos in "On my Mac"
    Then, delete all the old, completed to do items that may be connected to the IMAP account. Delete the to do folder on the IMAP account. Delete any associated Calendar in iCal. It seems to be gone now.

  • Teclas de acento do teclado, alt sempre?

    Sempre teremos que usar acentos atraves de tecla alt? Isso nao ira mudar nunca?

    No lo se. Mi Mac tiene teclado en Ingles y tengo que usar Option si quiero que las letras grabadas en cada tecla correspondan a la realidad. Puedes activar varios lenguajes/regiones diferentes en el panel de control, y luego usar el Visor de Teclado (que se puede habilitar en el mismo panel y que aparece en la barra de menu) para observar como se mapean las teclas en cada region.
    O puedes ver como regionaliza Apple las diferentes configuraciones aqui: http://support.apple.com/kb/HT2841

  • Mail report from ORACLE Financials

    Hi,
    I am running a customized report as a request from ORACLE APPLICATIONS under NT:
    destype=MAIL desname=[email protected]
    I am getting REP-4202 (Error occurred while logging on to the Mail subsystem) as a result in request log output.
    When I mail same report on app server from DOS promt everything is OK.
    When I run same report from OFIN with default destype everything is OK as well.
    Is it possible to mail reports using destype=MAIL from ORACLE Financial or should I use alert?
    Please respond ASAP.
    Thanks a lot. Andrei.
    null

    Thank you very much for your reply
    I have changed the fonts in the report, but when i run it from the EBS its has the same problem. from the EBS output font look like as (COURIER) rather than CALIBRI WESTERN.
    tell me what i have to change anything.

  • Mailing reports from oracle applications

    Hi,
    I am running a customized report as a request from ORACLE APPLICATIONS under NT:
    destype=MAIL desname=[email protected]
    I am getting REP-4202 (Error occurred while logging on to the Mail subsystem) as a result in request log output.
    When I mail same report on app server from DOS promt everything is OK.
    When I run same report from OFIN with default destype everything is OK as well.
    Is it possible to mail reports using destype=MAIL from ORACLE Financial or should I use alert?
    Please respond ASAP.
    Thanks a lot. Andrei.

    hi Andrei,
    You mentioned maling a report on app server from DOS promt.
    Can you please tell me how you do that.
    Thanks.

  • Como lo uso

    Ojala alguien pudiera decirme como aprendo a usar Labview debido por que casi no hallo informacion consisa para un novato.

    Hola que tal.
    Creo que pasas por el momento por el cual yo pasé hace 2 meses aproximadamente.
    En este link: http://cnx.rice.edu/content/col10241/latest hay un tutorial en línea del cual puedes aprender rápidamente pero está en inglés. Tiene buenos ejemplos y puedo decirte que puedes aprender de ese tutorial aunque tu nivel en LV sea cero.
    Espero que este link sea de buena ayuda para ti.
    Hasta luego y buena suerte.
    P.D. Si en este mensaje no se ven correctamente algunas palabras por los "acentos", por favor hazlo saber para omitirlos en el siguiente texto que escriba en el foro.

  • Non-static method destroyApp(boolean) cannot be referenced from a static co

    Hi guys, ive been writing, erasing and rewriting code, and finally my midlet runs well. It get complicated when i began to use the class Canvas, because the main process required values from the Canvas class. Im not sure if the program is well designed. Sugestions are apreciated.
    Well, i used static public boolean hilo; to share that variable between classes, and its working, however there is just a final procedure I want to implement, and that is that terminate the midlet when the user press the erase button.
    When I detect the button, i cant call the notifyDestroyed() method.
    Here's the code
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    public class TS_Online extends MIDlet implements CommandListener {
    public static Display display;                    // Objeto para que muestre en pantalla
    private SSCanvas sscInicio;               // Objeto canvas para mostrar imagenes
    private Form frmServidor;                    // Objeto forma
    private TextField ip1;                         // Direcci�n IP
    private TextField ip2;                         // Direcci�n IP
    private TextField ip3;                         // Direcci�n IP
    private TextField ip4;                         // Direcci�n IP
    private TextField puerto;                    // Puerto a conectarse
    private Command cmdEntrada;               // Objeto comando
    private Command cmdSalida;                    // Objeto comando
    private Command cmdVolver;                    // Objeto comando
    // * Constructor *
    public TS_Online() {
         display = Display.getDisplay(this);                    // Obtiene la pantalla
         sscInicio = new SSCanvas();                              // Nueva forma
         cmdEntrada = new Command("Entrada", Command.STOP, 2);
         cmdSalida = new Command("Salida", Command.STOP, 2);
         cmdVolver = new Command("Volver", Command.BACK, 1);
         sscInicio.addCommand(cmdEntrada);                    // Coloca el comando Entrada
         sscInicio.addCommand(cmdSalida);                    // Coloca el comando Salida
         sscInicio.setCommandListener(this);                    // Define la forma que escucha comandos
         ip1 = new TextField("Direcci�n IP:", "0", 3, TextField.NUMERIC);     // Caja de texto
         ip2 = new TextField(null, "0", 3, TextField.NUMERIC);
         ip3 = new TextField(null, "0", 3, TextField.NUMERIC);
         ip4 = new TextField(null, "0", 3, TextField.NUMERIC);
         puerto = new TextField("Puerto:", "24300", 5, TextField.NUMERIC);
         frmServidor = new Form("Configuraci�n");          // Titulo de la forma
         frmServidor.append(ip1);
         frmServidor.append(ip2);
         frmServidor.append(ip3);
         frmServidor.append(ip4);
         frmServidor.append(puerto);
         frmServidor.addCommand(cmdVolver);                    // Coloca el comando Salida
    // * Metodos *
    public void startApp() {
         sscInicio.hilo = true;                                   // Habilita el hilo
         new Thread(sscInicio).start();                         // Hilo en Canvas
         display.setCurrent(sscInicio);                         // Define objeto a mostrar
         sscInicio.setTitle("TicketShop S.A.");               // Titulo de la forma
    // Metodos comunes en todos los Midlet
    public void pauseApp() {
         System.out.println("*** Pausado ***");
         sscInicio.hilo = false;                                   // Detiene el hilo
    public void destroyApp(boolean unconditional) {
         sscInicio.hilo = false;
         System.out.println("*** Terminado ***");
         notifyDestroyed();
    public void commandAction(Command c, Displayable s) {
         if (c == cmdEntrada) {
              if (sscInicio.img == sscInicio.ts) {          // Configurar servidor
                   sscInicio.hilo = false;
                   sscInicio.ip = true;
                   System.out.println(sscInicio.hilo);
                   frmServidor.setCommandListener(this);
                   display.setCurrent(frmServidor);
              } else {
                   sscInicio.valido();                              // Tiquete valido
         } else if (c == cmdSalida) {
              sscInicio.invalido();                              // Tiquete invalido
         } else if (c == cmdVolver) {                         // Volver a la pantalla anterior
              sscInicio.setCommandListener(this);
              sscInicio.hilo = true;                              // Arranca el hilo
              new Thread(sscInicio).start();                    // Hilo en Canvas
              display.setCurrent(sscInicio);
              System.out.println(sscInicio.hilo);
    // * Clase graficadora *
    class SSCanvas extends Canvas implements Runnable {
    private int sleepTime;                                        // Tiempo de retrazo
    static public boolean ip;                                   // Configurar IP
    static public boolean hilo;                              // Continuar hilo
    static public Image ts = null;                         // Contenedor imagen
    static public Image rojo = null;                         // Contenedor imagenpri
    static public Image verde = null;                         // Contenedor imagen
    static public Image img = null;                         // Contenedor imagen
    static public String mensaje = null;                    // Cadena de salida
    //private CommConnection cc = null;                         // Conector para puerto
    private SocketConnection sc = null;                    // Conector para red
    private SocketConnection cc = null;                    // Conector para red
    public SSCanvas() {
         // Cargamos las im�genes a usar
         try {
              ts = Image.createImage("/TicketShop.PNG");     // Procedimiento para cargar las imagenes
              rojo = Image.createImage("/Rojo.PNG");          // Procedimiento para cargar las imagenes
              verde = Image.createImage("/Verde.PNG");     // Procedimiento para cargar las imagenes
         } catch (IOException e) {}                              // Error si no encuentra las imagenes
    void iniciar() {
         img = ts;                                                  // Imagen de bienvenida
         mensaje = "Conectando al servidor";                    // Mensaje de inicio
         // Tiempo de espera para configurar servidor
         for (sleepTime = 1;sleepTime <= 3; sleepTime++) {
              try {
                   mensaje = mensaje + ".";                    // Mensaje de inicio
                   repaint();                                        // Redibuja la pantalla
                   serviceRepaints();                              // Espera que termine
                   Thread.sleep(1000);
              } catch (InterruptedException e) {
                   System.out.println(e.toString());
         sleepTime = 50;
         img = verde;
         System.out.println("Iniciar");
    void codigo() {
    void valido() {
         img = verde;                                             // Imagen OK
         mensaje = "Tiquete OK";                                   // Tiquete valido
         AlertType.CONFIRMATION.playSound(TS_Online.display);     // Sonido
    void invalido() {
         img = rojo;                                                  // Imagen OK
         mensaje = "Tiquete Inv�lido";                         // Tiquete valido
         AlertType.ERROR.playSound(TS_Online.display);     // Sonido
    // thread que contiene el game loop
    public void run() {
         System.out.println("*** Hilo arrancado ***");
         if (img == null)
              iniciar();
         while (hilo) {
              System.out.println("Hilo");
              // Actualizar pantalla
              repaint();                                                  // Redibuja la pantalla
              serviceRepaints();                                        // Espera que termine
              try {
                   Thread.sleep(sleepTime);
              } catch (InterruptedException e) {
                   System.out.println(e.toString());
    public void keyPressed(int keyCode) {
         if (keyCode == -8) {                                        // Si presiona borrar
              hilo = false;                                   // Salir de la aplicacion
              System.out.println("*** Terminado ***");
              TS_Online.destroyApp(true);
              notifyDestroyed();
    public void paint(Graphics g) {
         // Borrar la pantalla
         g.setColor(255,255,255);
         g.fillRect (0, 0, getWidth(), getHeight());
         // Coloca la imagen correspondiente
         g.drawImage (img, getWidth()/2, 10, Graphics.HCENTER|Graphics.TOP);
         // Poner texto
         Font fuente = Font.getFont (Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_MEDIUM);
         g.setFont(fuente);
         g.setColor(0,0,0);
         g.drawString(mensaje, getWidth()/2, getHeight() - 40,Graphics.TOP|Graphics.HCENTER);
    }Im using the boolean hilo to stop the thread. I seems to work fine for me. By the way, im using 4 textFields to get the IP address, however they appear one over the other, id like to see them one next to the other, or a better way to validate an IP address.
    Thanks for the help!!

    Well, the solution was really easy, i just needed to create a reference to the midlet inside the Canvas class public SSCanvas(MIDlet m), so i got this new code, however, it seems cool in the emulator but i still cant get two comands in a row in the phone.
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.microedition.rms.*;
    public class TS_Online extends MIDlet implements CommandListener {
    public static Display display;               // Objeto para que muestre en pantalla
    private SSCanvas sscInicio = null;          // Objeto canvas para mostrar imagenes
    private Form frmServidor;                    // Objeto forma
    private StringItem subtitulo;               // Subtitulo de la forma
    private TextField[] ip;                    // Direcci�n IP
    private TextField puerto;                    // Puerto a conectarse
    private Command cmdEntrada;               // Objeto comando
    private Command cmdSalida;                    // Objeto comando
    private Command cmdVolver;                    // Objeto comando
    private String direccion;                    // Direcci�n del socket
    private RecordStore rsDireccion = null;     // Almacenamiento RMS
    // * Constructor *
    public TS_Online() {
         display = Display.getDisplay(this);                    // Obtiene la pantalla
         sscInicio = new SSCanvas(this);                    // Nueva forma con ref este midlet
         cmdEntrada = new Command("Entrada", Command.STOP, 2);
         cmdSalida = new Command("Salida", Command.STOP, 2);
         cmdVolver = new Command("Volver", Command.BACK, 1);
         sscInicio.addCommand(cmdEntrada);                    // Coloca el comando Entrada
         sscInicio.addCommand(cmdSalida);                    // Coloca el comando Salida
         sscInicio.setTitle("TicketShop S.A.");               // Titulo del canvas
         // Constructor forma Configurar Servidor
         ip = new TextField[4];                                   //
         ip[0] = new TextField(null, "190", 3, TextField.NUMERIC);     // Caja de texto
         ip[1] = new TextField(null, "65", 3, TextField.NUMERIC);
         ip[2] = new TextField(null, "161", 3, TextField.NUMERIC);
         ip[3] = new TextField(null, "158", 3, TextField.NUMERIC);
         puerto = new TextField("Puerto:", "24300", 5, TextField.NUMERIC);
         ip[0].setLayout(Item.LAYOUT_2);                         // Coloca los elementos pegados
         ip[1].setLayout(Item.LAYOUT_2);
         ip[2].setLayout(Item.LAYOUT_2);
         ip[3].setLayout(Item.LAYOUT_2);
         frmServidor = new Form("Configuraci�n");          // Titulo de la forma
         subtitulo = new StringItem("Direccion IP:", "");
         frmServidor.append(subtitulo);                         // Coloca cadena de texto
         frmServidor.append(ip[0]);
         frmServidor.append(ip[1]);
         frmServidor.append(ip[2]);
         frmServidor.append(ip[3]);
         frmServidor.append("\n ");
         frmServidor.append(puerto);
         frmServidor.addCommand(cmdVolver);                    // Coloca el comando Salida
    // * Metodos *
    public void startApp() {
         sscInicio.hilo = true;                                   // Habilita el hilo
         new Thread(sscInicio).start();                         // Hilo en Canvas
         sscInicio.setCommandListener(this);                    // Define la forma que escucha comandos
         display.setCurrent(sscInicio);                         // Define objeto a mostrar
    // Metodos comunes en todos los Midlet
    public void pauseApp() {
         System.out.println("*** Pausado ***");
         sscInicio.hilo = false;                                   // Detiene el hilo
    public void destroyApp(boolean unconditional) {
    public void salir() {
         sscInicio.hilo = false;
         System.out.println("*** Terminado ***");
         destroyApp(false);                                        // Destruir objetos
         notifyDestroyed();                                        // Salir de la aplicacion
    String cargarIP() {
    String cadena;
    // Cargar la direccion del servidor
         try {
              rsDireccion = RecordStore.openRecordStore("ipRecordStore", true );     // Crear si no existe
         } catch (Exception error) {}
         try {
              byte[] byteOutputData = rsDireccion.getRecord(1);     // Lee el primer registro
              cadena = new String(byteOutputData);
              System.out.println("Cargada: " + cadena);
         } catch (Exception error) {
              cadena = "190.65.161.158:24300";
         try {
              rsDireccion.closeRecordStore();                         // Cerrar
         } catch (Exception error) {}
         return cadena;
    void guardarIP (String cadena) {
    // Almacenar la direcci�n ip y puerto
         try {
              RecordStore.deleteRecordStore("ipRecordStore");     // Borrar si existe
         } catch (Exception error) {}
         try {
              rsDireccion = RecordStore.openRecordStore("ipRecordStore", true );     // Crear si no existe
         } catch (Exception error) {}
         try {
              byte[] byteOutputData = cadena.getBytes();     // Almacena los datos
              rsDireccion.addRecord(byteOutputData, 0, byteOutputData.length);
              System.out.println("Guardada: " + cargarIP());     // rsDireccion.getNumRecords()
         } catch (Exception error) {}
         try {
              rsDireccion.closeRecordStore();                    // Cerrar
         } catch (Exception error) {}
    void mostrarIP(String cadena) {
    int i, j=0, k;
         for (k=0; k<=2; k++) {
              i = cadena.indexOf('.', j);                         // Posicion del punto
              if (i < 0) {
                   ip[k].setString("0");                         // Si hay error coloca 0
              } else {
                   ip[k].setString(cadena.substring(j, i)); // Extrae direccion
              j = i + 1;
         i = cadena.indexOf(':', j);                              // Posicion del punto
         ip[3].setString(cadena.substring(j, i));          // Extrae direccion
         i = cadena.lastIndexOf(':');                         // Posicion dos puntos
         puerto.setString(cadena.substring(i+1));               // Extrae puerto
    public void commandAction(Command c, Displayable s) {
         if (c == cmdEntrada) {
              if (sscInicio.img == sscInicio.ts) {          // Configurar servidor
                   sscInicio.hilo = false;
                   direccion = cargarIP ();                    // Cargar del record
                   mostrarIP(direccion);                         // Mostrar en la forma
                   System.out.println("*** OK ***");
                   frmServidor.setCommandListener(this);
                   display.setCurrent(frmServidor);
              } else {
                   sscInicio.entrada = true;                    // Tiquete entrada
                   AlertType.ERROR.playSound(TS_Online.display);     // Sonido
         } else if (c == cmdSalida) {
              sscInicio.entrada = false;                         // Tiquete salida
              AlertType.ERROR.playSound(TS_Online.display);     // Sonido
         } else if (c == cmdVolver) {                         // Volver a la pantalla anterior
              direccion = ip[0].getString() + "." + ip[1].getString() + "."
                   + ip[2].getString() + "." + ip[3].getString() + ":" + puerto.getString();
              guardarIP(direccion);                              //Almacenar en record
              sscInicio.setCommandListener(this);
              sscInicio.hilo = true;                              // Arranca el hilo
              new Thread(sscInicio).start();                    // Hilo en Canvas
              display.setCurrent(sscInicio);
              System.out.println(sscInicio.hilo);
    // * Clase graficadora *
    class SSCanvas extends Canvas implements Runnable {
    private int sleepTime;                                        // Tiempo de retrazo
    static public boolean entrada = true;                    // Tiquete de entrada
    static public boolean hilo;                              // Continuar hilo
    static public Image ts = null;                         // Contenedor imagen
    static public Image rojo = null;                         // Contenedor imagenpri
    static public Image verde = null;                         // Contenedor imagen
    static public Image img = null;                         // Contenedor imagen
    static public String mensaje = null;                    // Cadena de salida
    static public String mensaje2 = "";                    // Cadena de salida Codigo de barras
    MIDlet midlet;                                                  // Enlace al midlet inicial
    CommConnection cc = null;                         // Conector para puerto
    //SocketConnection sc = null;                    // Conector para red
    //SocketConnection cc = null;                    // Conector para red
    public SSCanvas(MIDlet m) {
         midlet = m;                                                  // Referencia al MIDlet iniciado
         // Cargamos las im�genes a usar
         try {
              ts = Image.createImage("/TicketShop.PNG");     // Procedimiento para cargar las imagenes
              rojo = Image.createImage("/Rojo.PNG");          // Procedimiento para cargar las imagenes
              verde = Image.createImage("/Verde.PNG");     // Procedimiento para cargar las imagenes
         } catch (IOException e) {}                              // Error si no encuentra las imagenes
         img = ts;                                                  // Imagen de bienvenida
         mensaje = "Conectando";
         mensaje2 = "";                                             // Mensaje de inicio
    void iniciar() {
         img = ts;                                                  // Imagen de bienvenida
         // Tiempo de espera para configurar servidor
         for (sleepTime = 1;sleepTime <= 3; sleepTime++) {
              try {
                   mensaje = mensaje + ".";                    // Mensaje de inicio
                   repaint();                                        // Redibuja la pantalla
                   serviceRepaints();                              // Espera que termine
                   Thread.sleep(1000);
              } catch (InterruptedException e) {
                   System.out.println(e.toString());
         mensaje = "Conectado!";
         img = verde;
         repaint();                                        // Redibuja la pantalla
         serviceRepaints();                              // Espera que termine
         sleepTime = 50;
         System.out.println("Iniciar");
    void codigo() {
         try {
              System.out.println("Leyendo");
              CommConnection cc = (CommConnection)Connector.open("comm:com0;baudrate=9600");
              //cc = (SocketConnection)Connector.open("socket://127.0.0.1:24300");
              //int baudrate = cc.getBaudRate();
              InputStream ic  = cc.openInputStream();          // Entrada serial
              //OutputStream oc = cc.openOutputStream();
              StringBuffer sbCodigo = new StringBuffer();     // Cadena de diferentes tipos de datos
              int ch = 255;
              while(ch > 32) {
                   ch = ic.read();
                   //oc.write(ch);
                   if (ch > 32)
                        sbCodigo.append((char)ch);
              mensaje2 = sbCodigo.toString();                    // Codigo de barras
              if (mensaje2.equals("2864634059CULIB")) {
                   valido();
              } else {
                   invalido();
              ic.close();                                             // Cierra las conexiones
              //oc.close();
              cc.close();
         } catch (Exception e) {
              Alert a = new Alert("Error!", e.toString(), rojo, AlertType.ERROR);
              a.setTimeout(Alert.FOREVER);                                   // Alerta hasta que oprima boton
              TS_Online.display.setCurrent(a);               // Despues de la alerta vuelve a Inicio
              try {
                   Thread.sleep(5000);
              } catch (Exception x) {}
    void valido() {
         img = verde;                                             // Imagen OK
         mensaje = "Tiquete OK";                                   // Tiquete valido
         AlertType.CONFIRMATION.playSound(TS_Online.display);     // Sonido
    void invalido() {
         img = rojo;                                                  // Imagen OK
         mensaje = "Tiquete Inv�lido";                         // Tiquete valido
         AlertType.ERROR.playSound(TS_Online.display);     // Sonido
    // thread que contiene el game loop
    public void run() {
         System.out.println("*** Hilo arrancado ***");
         if (img == ts)
              iniciar();
         while (hilo) {
              //System.out.println("Hilo");
              // Leer codigo de barras
              codigo();
              // validar codigo de barras
              //validar();
              // Actualizar pantalla
              repaint();                                                  // Redibuja la pantalla
              serviceRepaints();                                        // Espera que termine
              try {
                   Thread.sleep(sleepTime);
              } catch (InterruptedException e) {
                   System.out.println(e.toString());
    protected void keyPressed(int keyCode) {
    mensaje = Integer.toString(keyCode);
    //int action = getGameAction(keyCode);
         if ((keyCode == -8) || (keyCode == 42)) {               // Si presiona borrar o *
              AlertType.ERROR.playSound(TS_Online.display);     // Sonido
              ((TS_Online)midlet).salir();
         } else if (keyCode == -51 || keyCode == -52 || keyCode == -53) {
              AlertType.ERROR.playSound(TS_Online.display);     // Sonido
    public void paint(Graphics g) {
         // Borrar la pantalla
         g.setColor(255,255,255);
         g.fillRect (0, 0, getWidth(), getHeight());
         // Coloca la imagen correspondiente
         g.drawImage (img, getWidth()/2, 20, Graphics.HCENTER|Graphics.TOP);
         // Poner texto
         Font fuente = Font.getFont (Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_MEDIUM);
         g.setFont(fuente);
         g.setColor(0,0,0);
         g.drawString(mensaje, getWidth()/2, getHeight()/2,Graphics.TOP|Graphics.HCENTER);
         g.drawString(mensaje2, getWidth()/2, 5,Graphics.TOP|Graphics.HCENTER);
    }

  • Notes - what determines whether they are stored in the inbox or not?

    Hello - I have two IMAP accounts, both set to display Mail notes in their respective inboxes. However, if I create a new note within desktop Mac Mail, it is always placed within the 'On My Mac' category and does not appear in either inbox, even if I have the inbox open at the time. Am rather confused by this - can anyone shed any light?

    Depends on your settings. If you go to Mail -> Preferences -> Composing -> Create Notes And To Dos In
    This is how it will work. Mine is currently set to be created on whichever section I'm under.
    At least for me it will also only save the note if there is data in it or it is the only note available on that account.

Maybe you are looking for

  • Printing With HP LaserJet 1022 Has Stopped!

    Hi All, I have had my Express and HP printer for a year never had any problems, my configuration is this. My AirPort Express connects to my wireless NETGEAR router, my HP is plugged into the AirPort Express. Yesterday I changed the password on the ro

  • Line endings in Dreamweaver CS5

    I have been using Dreamweaver CS3 to work on web pages ever since it came out. But between Dreamweaver and my FTP client and what the people I am working with use, we are having problems with line endings. Specifically, if I edit a file in Dreamweave

  • Only first line printed in Smartform

    Hello, I have a form in Arabic langauge text, when I add a text to a window, only the first line of the text (which in the text editor I have more than 3 lines) is displayed. when I start SAP GUI in english I have all the text displayed and only only

  • 802.1X authentication process in Active Directory joined computer.

    Hi, I'm not really sure my understanding of the authentication process of an Active Directory joined computer, and I would like to know the purpose of multiple times auth as described below: 1. When Windows start up, 2. it will authenticate to the 80

  • Apple watch  doesnt work with apple tv

    i get it all paired then nothing is in there it keeps going back to add device and giving you a 4 digit code says its paired then nothing there but add device again  goin in circles