Question about rom 9900, override the method object failed

Before I update the ROM (9900jAllLang_PBr7.1.0_rel2435_PL5.1.0.622_A7.1.0.862_AT_T.exe) for my 9900, I can easily overrides the method of object to change text styles or field label, for example the size of the font, color of the text and so on.

But, after update, I can always control the color of text, except the font size!

I can make sure my codes worked properly 'before', I think this must be a problem of system because all my apps cannot resize the font size more!

Is there any other way to solve this problem? I need your help, thank you! ~

Code looks OK, but I would like you to try something.  Can you please set the font for the LabelField rather than change the paint of duing fonts.  Then change this:

LabelField = about new LabelField ("about aid and", USE_ALL_WIDTH |) LabelField.ELLIPSIS) {}
public void paint (Graphics g)
{
g.setFont (Font.getDefault () .derive (Font.BOLD, Font.getDefault () .getHeight (Ui.UNITS_pt) + 2, Ui.UNITS_pt));
Super.Paint (g);
}
};

to something like this:

LabelField = about new LabelField ("about aid and", USE_ALL_WIDTH |) LabelField.ELLIPSIS);

about.setFont (Font.getDefault () .derive (Font.BOLD, Font.getDefault () .getHeight (Ui.UNITS_pt) + 2, Ui.UNITS_pt);)

Tags: BlackBerry Developers

Similar Questions

  • extend ListField, how to get a valid result of getSelectedIndex inside the method object?

    Hi all

    I have replace the method object to extend ListField to create my own color ListField.

    I need to avoid the double drawRow between the method object

    and the drawFocus() method.

    inside the method object, I always get the 'bad' selectedIndex (previous)

    (or rectangular previous on getFocusRect()).

    my questions are:

    1. how to get current selectedIndex (or FocusRect) inside the method object when we extend ListField?

    2. is there any other method called before object, the method which returns SelectedIndex valid?

    3. how to avoid the double drawing between object and drawFocus()?

    Thank you.

    If everything you do is add your own color, and then you can do this by using a fillRect in the drawListRow method.  In there.  I have the code that did this, but only for lines not targeted, as it detects with:

    If (listField.getSelectedIndex ()! = index) {}

    //

    }

  • g.clear () call to the method object refuses the development of drawing for checkbox

    Hello

    I have this custom field extend the CheckboxField, with him object method is overloaded as follows:

    protected void paint (Graphics g)
    {
    int bgColor = _fontStyle.getBackgroundColor ();
    If (bgColor! = - 1).
    {
    g.setBackgroundColor (_fontStyle.getBackgroundColor ());
    g.Clear ();
    }
    g.setColor (_fontStyle.getForegroundColor ());
    Super.Paint (g);
    }

    the _fontSytle is defined by the user and transmitted as a reference of custom style, everything works fine in a first time without g.clear (), but I soon found out when the background color is black, while the foreground is white, paint reverse color. So I added this g.clear () and the problem was solved.

    However, the compensation seems to graphics here refuses the development of drawing and I was not able to trace which is cleaned and what is the indicator for the development of design. BTW, the "g.isDrawingStyleSet (Graphics.DRAWSTYLE_FOCUS)" returns true.

    So I was wondering if anyone here can provide a diagnosis on what could be the cause and how to fix it. Thanks in advance.

    Christian

    Nope, the g.clear () must be called to display the colors correctly. As I said, it can work in some cases, but just mess up from time to time.

    So what I do now is take a workaround to override the drawFocus() as default

    protected void drawFocus(Graphics g, boolean on)
        {
            refreshFooter(on ? getLabel() : "");
            // customize draw focus logic here as the default one conflicts with the paint method
            XYRect rec = new XYRect();
            getFocusRect(rec);
            g.invert(rec);
        }
    

    Thus the development of drawing must rely on paint and so don't mess the color.

    In any case, thanks much for the reply!

  • Protégé M200: Question about Vista TPM and the Bitlocker

    You want to know if I have a TPM chip to launch bitblocker on the M200 using Vista. Just call Toshiba Technical Support - the guy was totally distraught!

    If I don't have a TPM chip, then I can install it?

    Hello

    It is a good question. To my knowledge the Portege M200 does not support TPM but the Portege M400, R400 module and the R200

    But the Bitlocker, which is only available on the Vista Enterprise and ultimate can also be used without the TPM chip but then some functions are not available; for example, the SecureBoot.
    Without TPM only the OS volume encryption is available.
    In this case you can encrypts the entire Windows volume including both data and file system user, the file of hibernation, the page file and the temporary files.

    Using volume of BONE (HDD) encryption an encryption key will be generated. This key will be written to the USB and then the USB is required!

    AFAIK the Bitlocker requires 2 partitions. A partition must be created as needs at least 50 MB primary partition. I recommend a? about 1.5 GB
    The second big partition Vista can be installed.

    After the installation of Vista the Bitlocker must be enabled in Group Policy (units without secure TPM). This can be done using the command 'gpedit '.
    And then under models of administration-> windows components-> Bitlocker bitlocker function can be activated!

    Anyway, there is much information Bitlocker and I think you should also consult the Microsoft Web site for more information:
    BitLocker Windows Drive Encryption step-by-step guide

    I hope I could help a little

  • I have a Photosmart C7280 and s question about a decision of the network.

    I currently have two workstations connected to a router via ethernet cables.  They are connected to a single (not HP) printer with USB cable through a USB switch.  Two laptops to connect to the wireless router.  I could replicate the existing configuration with the C7280, but the idea of a network in which the laptops were allowed to participate is very attractive.  One of the laptop is running Windows version 7, the other computers running Linux.  If I go for an ethernet network, the laptops will be able to connect to the printer via the router?  If I go for a wireless network, desktop computers will be able to connect to the printer via their ethernet cables?  A couple of Wireless USB adapters are a possibility.

    I understand that you have questions about networking with your printer.

    Yes, wired network connections will be no problem to connect to a wifi connected printer.  Most routers bridge cable and wireless to work as a single network.  There are some routers between wired and wireless networks, but these are before any company grade routers and network equipment.

    A wired desktop computer will be able to print to a wireless printer as long as it is connected via the same router.  Conversely, a wireless computer can print to a printer connected Ethernet as long as it's the same router.

    I recommend using a network for the printer configuration, if possible, to avoid printing problems.  USB hubs have been known to cause printing problems, although this isn't always the case.

  • Question about a post on the forum, help

    http://supportforums.BlackBerry.com/T5/Java-development/XML-parsing-using-DOM/m-p/545678#M110568

    can someone please see post above.

    My question is this code point, the synchronized block startng.

    Which is the right place or it should be as below.

     Object obj = Application.getEventLock();
         for (int i=0;i
    

    Thanks in advance

    The synchronization is needed by updating the user interface.  You should like few other things as you can while holding this lock.  I think that the way you have it properly.

    That said, I would recommend that people do not use this approach.  In addition, it is an expensive way to add fields to the form.  By adding this, you cuase the screen available for each field that you add.  You do better something like this:

    VerticalFieldManager newVFM = new VerticalFieldManager();
    for (int i = 0; i)<>
    {
        
    Node value = list.item (i).
    getChildNodes () .item (0);
    _node = List.Item (i) .getNodeName ();
    element value = .getNodeValue ();

    METTREAJOURCHAMP (newVFM, _node, element);

    }
    {Synchronized (application.getEventLock ())}
    _SCREEN. Add (newVFM);

    }
    ..

    ' Public Sub METTREAJOURCHAMP (VerticalFieldManager newVFM, node of the chain, string element) {}

    String title = "SectionName".
    newVFM.add (new RichTextField("." + élément));
    {if (node. Equals (title))}
    newVFM.add (new SeparatorField());
    }

    Edit: Corrected according to the following post.  Thank you

  • How to draw and the positioning of images in FieldManager using the method object?

    How can I add and the positioning of my images in the position desired in FieldManagers?

    I need to add more than 2 fields (HorizontalFieldManager/VerticleFieldManager) in my application and I draw an image using the method of painting ovverided.

    NOTE: The image will be established if I do not use mainScreen.add (SeparatorField ()) or mainScreen.add (hori2), see below.

    If I use mainScreen.add (mainScreen.add (hori2) SeparatorField ())... n then the horizontalFieldManger won't be empty, drawn in the output screen.

    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    
    public class BackgroundImage extends UiApplication
    {
        private Bitmap backgroundBitmap;
        private Bitmap fieldBitmap;
    
        int width, height;
    
        public static void main(String[] args)
        {
                BackgroundImage theApp = new BackgroundImage();
                theApp.enterEventDispatcher();
        }
    
        HorizontalFieldManager hori2;
    
        public BackgroundImage()
        {
            //The background image.
            backgroundBitmap = Bitmap.getBitmapResource("jalan_logo.png");
    
            MainScreen mainScreen = new MainScreen();
    
            hori2 = new HorizontalFieldManager();
    
            HorizontalFieldManager horizontalFieldManager = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.USE_ALL_HEIGHT){
    
                //Override the paint method to draw the background image.
                public void paint(Graphics graphics)
                {
                    System.out.println("come to here..!!");
                    width = graphics.getScreenWidth();
                    height = graphics.getScreenHeight();
                    //Draw the background image and then call paint.
                    graphics.drawBitmap(width/2, height/2, 150, 40, backgroundBitmap, 0, 0);
                    super.paint(graphics);
                }            
    
            };
    
            //The LabelField will show up through the transparent image.
            LabelField labelField = new LabelField("This is a label");
    
            //Add the manager to the screen.
            mainScreen.add(horizontalFieldManager);
    
           mainScreen.add(new SeparatorField());
           mainScreen.add(hori2);
           hori2.add(labelField);
    
            //Push the screen.
            pushScreen(mainScreen);
        }
    }
    

    Help, please.

    I have already pointed out the problem with USE_ALL_HEIGHT in first Manager add you to the form. Drop this style bit, otherwise sublayout your screen will generate an exception, and nothing appears!

    If you want HorizontalFieldManager to be of a particular size, regardless of the height of managed fields, replace its sublayout:

    HorizontalFieldManager fieldManagerTopBanner = new
             HorizontalFieldManager()
    {
         protected void sublayout(int maxWidth, int maxHeight) {
            super.sublayout(maxWidth, maxHeight);
            int myDesiredHeight = ;
            setExtent(getWidth(), Math.min(myDesiredHeight, maxHeight));
         }
    
         protected void paint(Graphics g)
         {
              // g.setBackgroundColor(0x000000);//blue
                 g.drawBitmap(100, 150, 100, 200, jlnLogoImg, 0, 0);
    
              //g.clear();
                super.paint(g);
         }
    };
    
  • Several Questions about educational Versions of the software

    Well, I have several questions about teaching from Adobe software.  I will attend school in the near future (now I'm not enrolled in any type of school) and I see that Adobe has huge discounts on "educational software".

    What exactly is the difference between the "commercial" version of a program and an educational version?  Do you need some kind of student card to activate an educational version, or proof that you are in school, or something special like that?  I noticed people unopened sell educational versions on eBay and I heard there is no differences between the software, but this makes me wonder... why the price difference?

    Also, I intend on buying another Mac in the near future - probably for the school.  My second question is - with this software (education), is that I can put programs on my desktop and my laptop, or they won't work on one person on one computer?  I've heard people that serial numbers cannot be activated so many times.

    Last question.  My HDD recently crashed and I lost a good bit of things and had to re - install everything.  If this would never happen again, reinstall all Adobe programs on a hard drive nine?  Or I will meet the all 'serial numbers cannot be activated so many times?

    Very well.  I think about the fact.  Any input would be great.  Thank you.

    -Mike

    In terms of content, there normally is no real difference between the editions of the retail and educational/student. There may be some additional fonts or clip art in the commercial version, but this varies from one version to the other, and a product.

    You must qualify to buy an educational/student version. These qualifications are listed on the Adobe Web site. Normally, you must provide proof of reserve that sells licenses of software for you. You can not buy now for the reason that you will be a student in the future. You must have purchase student status.

    Unlike versions of retail, education/student Adobe versions software are not transferable. Sale of such software 'closed' on eBay must be regarded with suspicion. Adobe resellers do not offer software on eBay sales. The software is either stolen, used (but reconditioned), or pirated goods.

    Most of the Adobe software, including the Creative Suite software, can be activated at the same time on two computers owned and used by a single individual. second computer is usually a laptop, if first computer is a computer at home for students. For retail sales, usually first computer is a desktop computer and the second computer is a mobile computer or at home. Computers must not run the software at the same time. And No, two students may not share a single copy on two separate computers.

    The software can be turned on and off but after 20 or if these cycles, you will need to call Adobe and explain what is happening to get characters such cycles. If you are enabled on both systems and a hard drive or a computer turns off and you need to reinstall the software without having the possibility to disable the system blew, Adobe activation support group normally will be granted an additional activation, assuming that you do not have a record of abusing the privilege (as your hard drive breaks down once a month!).

    -Dov

  • Question about high latency of the processor

    Hey there,

    Hoping that someone here is able to help me with a high level of CPU Ready I see in one of my groups.

    Our cluster specification:

    8 guests - ESXi 4.0

    Dual - core Xeon 6 per host

    72 GB memory per host

    DRS and HA on

    Resources to its customers:

    32 guests (4 per host) with 4 vCPU and 20 GB of memory (use ave is 15 to 17 GB)

    The guests are Win 2 k 3 servers. Most traffic is read traffic and traffic - based application and is busy. Load of the CPU on each host is about 40-50% to the total of peak, but guests are higher than I think we should for the time loan CPU. See the chart below. I was wondering how concerned I should be at the ready time CPU?

    CPUReady.PNG

    My first thought is that if the server has 12 hearts and we have 4 guests each asks 4 vCPUs in time with an activity semi busy, then we'll always see higher than normal loan of CPU time. Mainly because there is always one of the guest who has be waiting for the moment on the processors. So assuming that it is correct, if I was to lower the number of CPU 3 on each client (or maybe even 2), I should actually see the loan CPU time go to zero without affecting the performance of comments? maybe even win a few performance?

    Just check my logic here. Making sure that I'm not crazy (which my wife would probably).  :-)

    Thanks in advance!

    -Adam

    The rule is that whatever it is ready by more than 10% * by vCPU * is bad, if with vCPU you will get higher numbers, so its nothing to worry too much.

    Jason Boche said it is much better that I did

    http://www.yellow-bricks.com/2010/01/05/ESXTOP-valuesthresholds/comment-page-1/#comment-5861

    are you really an application performance problems?

  • The attributes defined for SelectCheckbox in the view object Failed

    Hello

    I expanded the view object of the table to filter the records and the table contains the selection box (no change has for this box). When I choose one of the records to help select the check box and go to an action, the error is coming as "Attribute defined for SelectCheckbox in the view object TeamTableVO failed" ... Is the error due to VO scope or any other reason...

    Help, please...

    Kind regards

    Praveen

    Hello..

    Check the following

    1. check if the value of any attribute is set, if yes remove

    2. check the attribute map

    3. set your columns can Yes

    4. check if its VO selected to interview

  • Question about consistent errors in the event viewer XP Home Edition

    I ran a program called VEW looking errors up to twenty in the XP Event Viewer.

    Here is the data for the analysis of files:

    V01c Vino event viewer run on Windows XP in English
    Report run at 28/01/2012 23:42:23

    Note: All dates below are in the format dd/mm/yyyy

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    "System" Log - error Type
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Journal: "System" Date/time: 01/28/2012 22:48:06
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 01/28/2012 22:47:40
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 01/28/2012 22:35:31
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 27/01/2012-22:49:54
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 27/01/2012-22:37:21
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 27/01/2012-14:32:57
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 27/01/2012 03:38:23
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 25/01/2012-13:53:36
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 25/01/2012-13:32:34
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 24/01/2012 23:35:59
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 24/01/2012 23:21:10
    Type: error category: 0
    Event: 29 Source: W32Time
    The time provider NtpClient is configured to acquire time from one or more time sources, however none of the sources are currently accessible.  No attempt to contact a source will be for 14 minutes. NtpClient has no source of accurate time.

    Journal: "System" Date/time: 24/01/2012 23:21:10
    Type: error category: 0
    Event: 17 Source: W32Time
    Time provider NtpClient: an error has occurred during the DNS lookup of the manually configured peer 'time.nist.gov, 0x1 '. NtpClient will try the DNS lookup in 15 minutes. The error was: a socket operation was attempted to an unreachable host. (0 x 80072751)

    Journal: "System" Date/time: 24/01/2012 23:18:36
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 24/01/2012 02:15:46
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 24/01/2012-12:58:29 AM
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: "System" Date/time: 24/01/2012 00 h delighteth
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: 'System' time: 23/01/2012 23:26:32
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: 'System' time: 23/01/2012 23:26:19
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: 'System' time: 23/01/2012 23:02:41
    Type: error category: 0
    Event: 10005 Source: DCOM
    DCOM got error "% 1058" try to start the service NMIndexingService with arguments "" to start the server: {E8933C4B-2C90-4A04-A677-E958D9509F1A}

    Journal: 'System' time: 23/01/2012 18:28:49
    Type: error category: 0
    Event: 7023 Source: Service Control Manager
    Windows Driver Foundation - User-mode Driver Framework service terminated with the following error: a device attached to the system is not functioning.

    Journal: "System" Date/time: 24/01/2012 23:35:59

    Parameters of scanning has been:

    • System
    • Errors
    • 1-20 errors, valued at twenty.

    What are these errors and they are nothing to worry about?

    I have Nero 8 on this system and have an updated hosts file the running here: http://winhelp2002.mvps.org/hosts.htm

    Not sure, but I may have changed a network setting to activate the new hosts file work properly.

    Seen these errors for a while. system works well and smoothly.  No symptoms of malware or infection seen or found.  I would call these software errors as they seem does not affect the operation of the system.

    XP Home Edition SP3 P4 2.8 2 GB RAM

    Joe

    Oh yes :)

    I have never used the program VEW and don't think I will check it - I just look at the Event Viewer logs the old-fashioned way (manually) if I think that there is a problem, but that might just be the old me.

    It is true that XP Home doesn't have Group Policy Editor, but all policy settings are always available via the registry.

    Some malware will change your GP settings and cause problems.

    I have a little import registry will correct all the ones I know, so if someone has these symptoms, any flavor of XP, they are running, I'll just send the script because sometimes you will be not able to solve the problem, even if you have not the GP Editor.

    The registry always import work - and work well for XP Home or XP Pro.  If you have the symptoms and XP Home, what would you?   Start the import operation of the registry.

    If you're curious, off on my SkyDrive it is a spreadsheet Excel (Group Policy settings) who has all the parameters of GP and where they are in the registry.  I do not recommend start searching, but it is useful to know where things are if there is a problem.

    I would not allow the connection of a security XP stuff unless you think you're being attacked.  More and verbose logging slows things down.  My Event Viewer Security log is empty.

    Find the links to the Microsoft Support Engineer for the most part useless to actually solve a problem (because it help you with your problem), if someone has a question or point of Event Viewer, I usually just send them this:

    To view the logs in Event Viewer, click Start, settings, Control Panel, administrative tools, event viewer.

    A shortcut to the event viewer is to click on start, run and enter in the box:

    %SystemRoot%\system32\eventvwr.msc

    Click OK to launch the event viewer.

    The most interesting newspapers are usually the system and Application logs.

    Some newspapers such as security and Internet Explorer may be completely empty or have just a few items.  The default settings for XP wants do not connect all this activity, unless you need to solve a problem in these areas.  If you enable logging for them the papers fill up quickly and could adversely affect the performance of your system with all the extras (often unnecessary) activity.

    If you have Microsoft Office installed, it has its own newspapers, and they can be empty or occasional boring activity very little or, if there is no problem with your desktop applications.  It's normal.

    Not every event is a problem, some are informational messages that things work very well, and some are warnings.

    However, no event should defy reasonable explanation.

    Each event is sorted by Date and time.  Errors will be red Xs, warnings will have yellow! s.
    Informational messages have white is.  Not every error or warning event means that there is a serious question.

    Some are excusable at boot time when Windows starts.  Try to find only the events to the date and time around your problem.

    If you double-click on an event, it will open a window of properties with more information.  On the right are black up and down arrow keys to scroll through the open events. The third button that looks like two overlapping pages is used to copy the details of the event in your Windows Clipboard.

    When you find an interesting event that occurred at the time of your question, click on the third button at the top and arrows to copy the details and then you can paste the details (right click, paste or CTRL-V) the text in detail here for analysis.  Remove all personal information from your information after you paste If you are forced to do so.

    If you paste an event, it will look something like this annoying system startup event:

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7035
    Date: 14/07/2010
    Time: 17:54:18
    User: Jose
    Computer: computer

    Description:
    The Remote Access Connection Manager service was sent successfully a starting control.

    To get a fresh start on any log of the event viewer, you can choose to clear the log (the log backup is available), and then reproduce your problem, then just look at the events around your show and troubleshoot events that are happening when you have your question.

    You can search for events on the World Wide Web and get ideas.  It's where people events they see and then to the top of their questions, ideas and solutions:

    http://www.EventID.NET/

    If you find your event in the discussion, the first idea or discussion does not necessarily mean it is the "answer" to your situation, so read through all the ideas to find the one that sounds more like your situation.

  • question about sending mail and the use of UrlEncodedPostData

    Hello

    I need to send over https three things:

    (1) framework, which is a byte [] object, and has some information about the device and the things that need to be sent to the server

    object String 2) imei - imei of the device.

    (3) data - some data, which are a String object

    now I need to use URlEncodedPostData, but...

    UrlEncodedPostData _post = new UrlEncodedPostData(null, false);
    
    _post.append("frame", ???)-> my frame is a byte[] object
    

    so, what should I do? should I change channel frame? but, later when I send the _post to the server that I use:

    _httpConnection.openDataOutputStream(_post.getBytes());
    

    YH, the problem is-how to put a byte [] object to the urlEncodedPostData and then send it?

    The point of encoding is to ensure that special characters can be detected correctly.  There is no URL address, as the settings.

    You will notice that the class that you are trying to use is called URLEncodedPostData.  I don't know if the same URL encoding is used in BOTH and given POST, but I think this class should be used in the data of PUBLICATION, rather than to GET data (look at the name).  You will find that the process of encoding data GET is not so difficult and I don't know if you look you will find J2ME coding code on the Web, that will help you create correctly to GET URL format.

    However, I still think you should consider the difference between GET and POST, and what data is passed by each type of application.  I think that if you had done that earlier, you wouldn't be in this position, you understand better my answers and you will understand how to create the queries POST you have to best use later.  GET and POST are NOT Blackberry or specific RIM, they are the Web specifications and used on all platforms.  There is a lot of documentation out there.

  • question about how to combine the two scripts.


    Hello

    I have a sql script that can display a table (or view) all the information, it works fine. I call it validate_table.sql, as below:

    command prompt
    accept invites owner "Enter table owner:
    accept invites from TABLE_NAME "Enter object (table/View...) "name:"


    column owner format a10 column 'owner '.
    column format a30 topic 'Object name' object_name
    column object_type format a15 direction "Type of object".
    Status format a10 column titled "Status".
    in the heading of column created format a20 "created."
    the LAST_DDL_TIME format a20, heading 'LAST_DDL_TIME.
    Select
    owner
    object_name
    object_type
    status
    , to_char (created, "DD_MON_YY hh24:mi:ss") created
    LAST_DDL_TIME,
    Of
    DBA_OBJECTS
    where
    object_name = upper ('& table_name') and owner = upper ('& owner');


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    Guest - table/view structure-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt


    describe and owner... & table table_name

    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list assigned user/subsidies-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    set pagesize 50000
    set linesize 10000
    set verify off
    Set feedback off
    column lvl format A4 direction "Lvl".
    proprietary format of columns A14
    format column in table_name A29
    A38 dealer column format
    column privilege A10 format


    SELECT 'Role' lvl, t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee IN (SELECT FROM dba_roles role WHERE = role t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    UNION
    SELECT 'User' lvl t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee IN (SELECT username FROM dba_users WHERE username = t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    UNION
    SELECT 'Pub' lvl, t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee = 'PUBLIC' and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    ORDER BY 1, 2, 3;

    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list of synonyms created.

    prompt -- ----------------------------------------------------------------------- ---

    command prompt


    proprietary format of columns A15
    synonym_name A20 column format
    A15 table_owner column format
    format column in table_name A40
    DB_link A40 column format

    Select the owner, synonym_name, table_owner, table_name, DB_link from DBA_synonyms where Table_name = upper ('& table_name') stopped by the owner;


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list index created-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    Select
    table-name
    index_name
    index_type
    nom_tablespace
    status
    of DBA_indexes
    WHERE table_name = upper ('& table_name') and owner = upper ('& owner')
    order of table_name, index_name;


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list of constraints-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    format column in table_name A15
    format of column cons_type A15
    cons_name A20 column format
    check_cons A25 column format
    VALIDATED A20 column format
    column status A10 format
    last_change A20 column format

    Select
    table-name
    (case constraint_type
    When 'P', then 'Primary Key '.
    When 'R' then 'Foreign Key'
    When 'C' then 'check '.
    When 'U' then 'single '.
    When 'o' then 'read only display '.
    When 'V' then 'check the view. "
    When 'H' then 'Hash expression. "
    When 'F' then 'REF column.
    When the of ' then 'additional logging.
    cons_type end)
    constraint_name cons_name
    condition_de_recherche check_cons
    status
    VALID
    last_change
    of dba_constraints
    where owner = upper ('& owner')
    and table_name = upper ('& table_name')
    order of cons_type;

    I have another script that allows to display the newly created tables (table, table names) in the last 24 hours.

    SET SERVEROUTPUT ON;

    DECLARE

    CURSOR tmp_cur IS

    SELECT master, object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE') and the owner not in ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN") and last_ddl_time > sysdate - 1;

    tmp_rec tmp_cur % ROWTYPE;

    BEGIN

    FOR tmp_rec IN tmp_cur LOOP

    DBMS_OUTPUT. PUT_LINE)

    tmp_rec. Owner | ' ' || tmp_rec.object_name);

    END LOOP;

    END;

    /

    The gap of the first script (validate_table.sql) is that it can only check table one by one by manual entry, then how can I combine these two scripts, to make a scipt that can check all newly created tables (not a table) in the last 24 hours?

    I thank very you much in advance!

    Hello

    If you already know how to find the owner and all the tables created table_name recently.  One thing you can do is to change all the WHERE clauses in validate_table.sql, so instead of things like

    where object_name = upper ('& table_name') and owner = upper('&owner');

    you say

    WHERE (owner, object_name) IN

    (

    SELECT master, object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE')

    AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")

    AND last_ddl_time > SYSDATE - 1

    )

    ;

    Here is another approach:

    Validate_table. SQL is quite handy as it is.  You may want to run this script for tables, even when you know that they are not new.  Divide into 2 scripts: one called ask_and_describe_table.sql, which looks like this:

    -Ask_and_Describe_Table.sql

    accept invites owner "Enter table owner:

    accept invites from TABLE_NAME "Enter object (table/View...) "name:"

    -You can use any name path instead of d:\some_dir below:

    @d:\some_dir\describe_table & owner, table_name

    and the other one called Describe_Table.sql, which starts like this:

    -Describe_Table.sql

    DEFINE owner = & 1

    DEFINE table_name = & 2

    column owner format a10 column 'owner '.

    ...

    and continues with the same exact content as validate_table.sql.

    Now, to write another script (I'll call it Describe_Recent_Tables.sql):

    -Describe_Recent_Tables.sql - create and run Describe_Many_Tables.sql

    -Turn OFF the devices designed to help people to read the output:

    SET ECHO OFF

    SET FEEDBACK OFF

    SET PAGESIZE 0

    VERRIFY OFF SET

    -Create a Describe_Many_Tables.sql:

    COIL d:\some_dir\describe_many_tables.sql

    SELECT ' @d:\some_dir\describe_table '

    ||      owner

    ||      '  '

    ||      object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE')

    AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")

    AND last_ddl_time > SYSDATE - 1;

    SPOOL OFF

    -Features lighting designed to help people to read the output:

    SET ECHO ON

    SET FEEDBACK ON

    SET PAGESIZE 50

    SET VERRIFY ON

    -Describe_Many_Tables.sql performance

    @d:\some_dir\describe_many_tables

    I guess that all of your tables have standard names (for example, start with a letter, no spaces in the name,...), which don't require quotation marks.  If they could, then the same basic approach will work, but the details are a little messier.

    When you want to see the information on a single table or view, no matter how old it is, driven

    Ask_and_Describe_Table

    or, if you do not need to question the owner of the table and the name, something like

    Describe_Table SCOTT EMP

    (You can find that you really need not Ask_and_Describe_Table.sql).

    When you want to do this for all the tables created in the last 24 hours:

    Describe_Recent_Tables

  • Question about network vMotion of the Ferguson VCP5 CERT Guide book.

    I'm studying for my VCP5-VTC, and I have a question.

    On page 154, a book that I read, it says network vMotion is a vDS ability but not vs.

    Can someone help me understand what is vMotion network?

    If it comes to vCenter linked mode, this means that the network vDSs are migrated between vCenters when the vCenter fails?


    I thought that most of the work made by the switch hidden on the CDS of the ESXi server that does not migrate anywhere. ?

    Thank you in advance for thinking about my question. I googled 'network vmotion' but most of the responses were in regards to VM vMotion.

    maintain the stats from the network for the movement of virtual machines between hosts

    Sorry I don't have an environment real stats

  • Question about how 'First' makes the sequences

    Hi all

    I have a small question. I have a calendar in which I placed a transparent video with a timecode effect thereon for the purpose of lining of the stuff. I turned the visibility of it, but I wonder if I should remove it before as I give to improve the rendering time. First will interfere with him or she will calculate that it is there as an object for "invisible" also?

    This may sound really stupid to ask, but I'm learning how to be as effective as possible in my workflow and if first does not care that it is because he is disabled, so I'd be inclined to let incase I need it again, but if she would accelerate rendering my project then I would take it before my final DVD build I intend to publish.

    Any thoughts?

    Premiere Pro makes that material visible. So feel free to leave there with visibility turned off.

    Edit: to prove to yourself, add an effect to transparent video which causes the rendered line go red. As a"camera view". Die the eyeball and the Red goes. Make sense?

Maybe you are looking for