A few questions about Arrays and Array Methods.

I have 2 dimentional arrays in a number of classes, and I wish to pass them about as variables, however, I can only seem to send int[], rather than int[][]. Gives me some compile errors.
Another thing. How do i get the length of an array?
I've tried: getLength(object), but it's a 2d array (int[][]), and It's having none of it. How do i get the length of a particular side?

An object like int[][] only has a single "length", and that is the length of the first dimension. This object is an array that contains arrays of int, and each of those arrays could have a different length. Your 2D array may happen to be rectangular but that isn't a requirement of Java. So you would have to write your own code to find the lengths of the sides. The first side would be theArray.length, the second side would be theArray[0].length, and like that.

Similar Messages

  • A few questions about MacBooks and Parallels Desktop.

    I have a few questions about MacBooks and Parallels Desktop.
    1) I understand I need at least 1GB of RAM to run Parallels Desktop but what about the hard drive, is the stock 60GB drive big enough?
    2) Related to question 1, even if it was big enough to allow me to install and run Windows would the 60GB drive be enough if I wanted to install a Linux distribution as well?
    3) This has nothing to do with Parallels Desktop but thought I'd ask it here anyway, do Apple Stores carry just the stock MacBooks, or do they carry other configurations?
    Thanks
    Keith

    1. Depend on how intensive you use that HD for saving data on both Mac OS and XP. For standard installation on both OS X and XP, the space of 60 Gb is enough.
    2. Same answer as no 1. You can install all three on that HD space, but the extra spacce available will be less and less for your data. You can save your data on external or back up on cd/dvd and erase it from the HD to keep the free space.
    Remember to leave at least 2 or 3 Gb for virtual memory usage.
    3. Just call them, maybe they don't have it in store stock, but by appointment they might configure one for you before your pick-up date.
    Good Luck

  • New to Arch(64), with a few questions about Xorg and more

    Hello and Happy New Year everyone,
    I'm a user that has just recently decided to try and switch to Linux as the main OS for all things that don't concern gaming. I've been using the "server side" of Linux at work for a couple years now, but when it comes to its desktop part I consider myself not fully competent yet. Under recommendation of a friend I decided to give Arch a shot, and I can say that it really suits my philosophy on how an OS should be like.
    I have a few issues I'm currently struggling with that I couldn't seem to solve by looking on my own: as they are mostly minor and shortly described, I thought about packing them up in one single thread to avoid making too many. I've used i686 as testing grounds and am now using x86_64, but most of my problems apply to both.
    Here's my hardware, for reference:
    - Intel E8400 CPU (3GHz, dual core)
    - Asus P5Q-E motherboard
    - 2 GB DDR2 800 RAM.
    - nVidia 8800GT video card with 512MB memory
    - Samsung SyncMaster 713BM flat panel, connected via DVI cable
    - Creative SBLive! 5.1 OEM card (dug up for the occasion since it has hardware mixing)
    I'm using the latest Xorg from the repos, nvidia proprietary drivers, ALSA, Xfce4 + compiz-fusion, and SLIM as my login manager.
    And here are my headaches:
    - (32/64) A similar issue to the one I just mentioned: compiz-fusion doesn't seem to stick around as my window manager, even though I manually set it as per Method 2 from this wiki page. Although it did work for a while, after some time (perhaps after installing some package? but I didn't really install anything X related) it simply stopped working. To get my windows, I have to manually run fusion-icon after login.
    - (32/64) I'm using MPlayer with libass to watch my favourite anime, but sometimes MPlayer freezes up, forcing me to xkill it. Disabling ASS embedded subs yields error message 11, something about unsufficient resources. Disabling subs entirely prevents MPlayer from crashing. Oh, the errors only happen on specific points of certain videos, and all the videos work just fine under WinXP with MPC or VLC.
    - (32/64) Why do anti-aliased fonts under Linux still look so bad, even though I installed the appropriate packages suggested in the wiki? I don't mind disabling anti-aliasing entirely and just using Verdana, but is there some trick to it besides setting sub-pixel hinting under rclick->settings->user interface?
    - (32/64) My SBLive might be 5.1, but I'm only using the front connector as I use either two stereo speakers or headphones all the time. But the volume setting in applications (such as MPlayer) seems to affect the PCM meter of ALSA's mixer, putting it over 0 dB gain and generating sound distortion.
    - (64/don't know if 32 too) Why does Compiz's framerate drop so badly when I push alt-tab? I'm using the default application shifter, hardware acceleration, and there should be no reason why the framerate should drop like that (expecially considering that wobbly windows or cube rotating don't affect my performance at all). I've read around the net about very similar occourances with the task switcher, but I've found no real solution.
    - [SOLVED] (32/64) The first obstacle I came across was that I couldn't set my screen refresh any higher than 60Hz when I actually wanted 75Hz: I solved this by setting the vertical refresh to 76.0-76.0 in xorg.conf. However, for some reason this setting doesn't stick on reboot: I have to log in and manually run rclick->System->NVIDIA X Server Settings for it to apply.
    - [SOLVED] (64 only) The 32 version of Xorg was fine, but for some reason I'm not getting the correct keyset (Italian) under X, while everything works in vc. I think I read something about disabling a module called "keydev", but is this really the way to go?
    - [SOLVED] (64 only) Although I can hear sound in just about every application, the 64 bit version of Pidgin doesn't "ring" on received messages even though the associated option is enabled.
    I kindly thank you in advance for your assistance: I will provide any configuration files that might be needed to help me out
    Last edited by Akaraxle (2009-01-03 21:25:43)

    xisal wrote:
    Take a look into /etc/hal/fdi/policy/10-keymap.fdi. This works with portuguese layout:
    <snip>
    The file did not exist, so I created it and changed "pt" to "it". Thanks a bunch, that fixed it!
    Try SMPlayer.
    Ah, I'd rather not involve Qt. Besides, isn't SMPlayer simply a frontend to Mplayer (who already has GMplayer integrated into it, IIRC)?
    Mikko777 wrote:
    Why would you want to use 75Hz with lcd display?
    Does it make a difference?
    On my monitor, from my point of view, it appears to make a difference. It's that simple
    azleifel wrote:In gmplayer Preferences -> Audio -> (assuming alsa selected) -> Configure driver and change the mixer channel to something other than PCM, e.g. Master.
    For all the three combos, I have "driver default" selected. The other option is "default"; I tried to manually type "Master" into the mixer channel field, but then gmplayer's windows and my Xfce taskbar started blinking, so I knew I had just "crossed streams".
    Regarding NVIDIA X Server Settings, running "usr/bin/nvidia-settings --load-config-only" at login is the only way to apply the settings "automatically".
    I've slapped that on my ~/.xinitrc before "exec startxfce4". Thanks in advance, going to test it now!
    About the refresh and non-decorated windows issues (which *appears* to be solved after I've wiped the xfce-session cache), I've been thinking: could they somehow be related the login manager I've chosen, SLIM?
    P.S. New question: is there any way to enable the ALT+num126 for ~ keyboard behaviour I'm used to under M$ environments?
    Last edited by Akaraxle (2009-01-03 09:43:02)

  • A few questions about Canvas and other Image related stuff.

    I am just starting to play around with Canvas in the hopes of using it to make a little game (not an applet) in my spare time. I have gotten a ball to bounce around the screen and switch colors when it bounces without too much work. (hooray for me!).
    I was wondering:
    1) If you always have to repaint the whole area of the canvas, or can you repaint sections of the screen?
    2) Can there only be one canvas per frame, or if you can have more, like say, one for each sprite (I tried in my own simplistic way but the second canvas overrode the first when I added it to the frame) or do you have to lay out all the sprites in one canvas every time before you paint?
    3) Is Canvas the best platform for rendering my animations and doing collision detection, or are other ways of presenting the images better? By better I mean lower usage of resources, higher speed, accessibility of events that occur. (I have read in the mindprod java glossary "[Canvas] receives all the raw mousing events. Panels, in contrast, see only a few.")
    4) In a call to paint which tells it to display some images which are much larger than the frame the canvas is in, is time and effort spent working on those pixels that aren't displayed or does it take about the same amount of resources as for images that fit in the frame since the same amount of picture is actually displayed?
    5) Is there any convenient way to layers with canvas besides just controlling the order in which the images are painted. (I will admit I haven't searched for this information yet, because I just thought about it.)
    6) Is there any other information you guys would care to bestow on me?
    If any of this question is ridiculous, obvious, ignorant or any other negative adjective, then I apologize. I will continue messing around in the meantime.
    Thanks
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Okay, well I got it to work by drawing them both to the same canvas. duh I guess.
    Can you have more than one canvas in a frame? How do you set the size if so.
    How do I implement the z-order? I thought of doing it manually by sending the paint method a list of objects to paint and manually managing the order of that list. Would that be an acceptable way to do it?
    Should I only be trying to paint to one canvas? What I would like to do is have several canvases with transparent backgrounds so that I can draw different layers in the same frame. That way flying stuff would be painted on a different canvas than stuff on the ground, and then putting it all in a frame would tie the pictures together into a scene. Kind of like how they do distance in animation by having different layers of drawings on clear plastic that they can move at different speeds to give the illusion of depth.
    Any advise? Sorry for the douba-post
    Thanks
    --John                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Few questions about partitioning and formatting in Windows 8

    Hello,
    I'm very shortly after a Windows 8 reinstall and I want to make use of this moment to finally understand partitioning and formatting in Windows 8.
    Before using Windows 8, I was an XP user for 5 years and I actually never bothered myself with formatting my main system partition, that's probably why my computer ended up working like a slime for the last years. Anyway, by now I have been using Windows 8 for a year.
    Three weeks ago I faced a system-related problem with my laptop (IdeaPad Y580) which prevented it from peacefully shutting down. A good friend of mine (XP user for his entire life, and now Windows 7 newbie user) told me, that I should keep all my non-system stuff on separate partition and that I should do the main system partition format from time to time to keep my PC out of trouble. It is sure that he took his knowledge from using XP, and here's my first question - does this method apply to Windows 8?
    I mean as far as I know, back then, in XP, partitioning was possible only during Windows installation, and now, in Windows 8 we have a Disk Management for this, which do not require running Windows installation to create new partitions.
    I'm mentioning this due to the fact that originally (I mean by factory settings) my drive has only one visible partition - C: (1TB), so I would need to use the Disk Management to take some space from C: partition and allocate it to the new D: partition.
    In case I do this whole partitioning operation and create a D: partition, is it sure that formatting my system-only C: partition won't have effects on my D: partition, and all the programms and data I have here will stay on their places and work after format? (I'm worried about this because I've seen in some partitioning guide a warning not to format the main partition after the partitioning operation, because it would erase totally all data - I'm not sure if I misunderstood something or is it a mistake? EDIT: here's the link for this guide, just jump to the "Final Thoughts" section to see what I'm taking about: http://www.technorms.com/8438/windows-8-create-hard-drive-partition ).
    If this whole method of keeping your system running fine doesn't apply to Windows 8, I guess I'm okay with having only one C: partition.
    By the way, it doesn't matter for me if I create new partition in terms of conflicts with preinstalled Lenovo OneKey Recovery, since I had to reinstall my Windows 8 recently from non-Lenovo CD, and either way my laptop is now totally clean, without Lenovo stuff (I found Lenovo Recovery CD for Y580 on the internet, but it had non-single-language Windows 8 in it, and I needed a single-laguage one in order to have my Product Key recognised, so I just used a pure Windows 8 SL installer)

    I just found out that I can't even transfer my Users folder or Program Data to other drive than the one with the system, because it would prevent me from updating my system or even from actually booting to my system. So apparently my whole topic is for nothing... I guess I should live with only one drive, and whenever my system totally crashes again I should do the backups to my external HDD. It's sad though that Windows 8 is a total opposite to user-friendly OS, to say the least.

  • A few questions about VoiceOver and Safari

    1. Let's say I'm reading, item by item, a website that's basically a long text document. When I have interrupted reading to do something in another application or the menu, can I quickly find the position in the text where I jumped out? It would be enough to be able to jump to the paragraph in question.
    2. Sometimes while browsing a website the VO cursor suddenly lands on an item which is outside the HTML content, such as the close or zoom button. Moving the VO cursor around a bit can sometimes spontaneously bring it back into the HTML content. How can VO decide to stop interacting and then restart interacting without me giving those commands? Has anyone else noticed this behavior and maybe found a way to fix it?
    3. How can I tell VoiceOver to read the current web page from the VO cursor position through to the end without me having to jump item by item? I know that stopping interacting with the HTML content and then pressing VO+A will read the entire web page, but I explicitly would like to have it read from VO cursor onwards.
    4. How can I go back one web page and quickly find the link I clicked? For example, a web page might contain ten links called "link 1" to "link 10" which are scattered around the page. Clicking on link 5 brings me to another page. How can I go back and quickly land on link 5?
    Thanks in advance for helpful answers!

    Here are a few suggestions:
    1. Instead of reading using the VO-A command, try reading group by group. You can then set a hotspot (VO-Shift-number) to which you can return by hitting VO-number.
    2. Try unchecking the "Mouse cursor follows VO cursor" checkbox in the Web category of VoiceOver Utility. However, this is a known bug.
    3. Set a keyboard shortcut in the Keyboard and Mouse pane of System Preferences in the All applications category for the command Start Speaking Text. This is a useful thing to have as it works whether VoiceOver is on or off. While there, set a shortcut for Stop Speaking as well, as it too will come in handy. Both these commands are in the Speech submenu of the Services menu command.
    Then, triple-click with the physical mouse or trackpad button. Navigate to last item using VO-Shift-end (or VO-Shift-fn-right arrow on a laptop or wireless keyboard). This is best done in DOM mode, since you do not then risk getting stuck inside a group. Make sure your end target text is not a link, so if it is, navigate to the previous non-link text. Hold down Shift and click with the physical mouse button. You should then have a block of highlighted text. Hit your Start Speaking Text shortcut and listen. To stop it, hit your Stop Speaking shortcut.
    Unfortunately you can't restart at the position you stopped at with this method; you simply have to navigate to the point at which you left off, then redo the selection process.
    4. Make sure that the checkbox "Press Tab to highlight each item on a webpage" in the Advanced tab of Safari's Preferences is set. If you remember the name of your link ("link 5" in your example), when you return to the page containing it, you can use the Link Chooser menu (VO-U) to find your link again. You can then use Tab to move to the next link on the page. Alternatively, you can simply use Tab all the way; each link will in turn be spoken, and if it has been clicked previously, VO will add "Visited" after the name.
    HTH
    Archie

  • A few questions about Memory and Power Supply for MSI 975X Platinum Powerup Edit

    Bought this Motherboard: MSI 975X Platinum Powerup Edition
    975X Platinum V.2(7246-020)
    I have a P4 CPU HT in it with 2 512mb sticks of DDR2 memory (533mhz).
    I am upgrading to a Core 2 Duo 6600 CPU which has a 1066mhz FSB
    What memory speed should I purchase to achieve the fastest bus speed without overclocking???
    I get confused as my current memory is 533 which I guess on a Pentium 4 with HT cuts the FSB speed in 1/2 to 266mhz.
    Any recommendations?
    Do I need to buy Dual Channel or can I just buy 2 sticks?
    Thank you
    Peter

    Quote from: /dot on 07-February-07, 15:46:41
    Great info again guys!
    I'll stay away from OCZ (I read it's more for overclockers).
    @DryHeat:
    I watched your sig, great setup! I'm planning for about the same setup (MSI 975x PUE, P180, C2D, ...). But will try a Scythe Ninja for CPU cooler and use an MSI graphic card (maybe 2 cards for 4 monitors in total).
    Is your setup silent or just quiet? Makes a big difference for me.
    What would you change now? And what is the most noisy component?
    Sorry for all the questions but I'm not an expert and by budget does not permit me from making any mistakes.
    The case fans create the most noise.  When they are all on "low" I an hardly hear them and have to shake the mouse to see if it's on, but on medium it sounds like a "standard" computer.  Not terrible, but not quite.  On high they are down-right loud.

  • Few questions about j2ee and my program

    Hello
    I'm new on this forum and in j2ee :)
    I've to write program which should be in working similar to video on demand system but without streaming movies only database and etc.
    I'm gonna write database in mysql. It will contain user and movies. I'll use the tomcat server.
    Can you tell me what should i learn to do it, i mean can i use jdbc to do it or maybe i should use something diffrent, and what will i need more i mean jsp, servlets?
    Sorry for such a question but i'm just beginner in j2ee and i hope you will help me :)

    Hello
    I'm new on this forum and in j2ee :)Welcome.
    I've to write program which should be in working
    similar to video on demand system but without
    streaming movies only database and etc."streaming database"? Not sure what you mean.
    I'm gonna write database in mysql. It will contain
    user and movies. I'll use the tomcat server.Sounds ambitious for somebody who's new to Java and Java EE
    Can you tell me what should i learn to do it, i mean
    can i use jdbc to do it or maybe i should use
    something diffrent, and what will i need more i mean
    jsp, servlets?Yes, learn JDBC. And servlets and JSPs. That's quite a lot.
    Sorry for such a question but i'm just beginner in
    j2ee and i hope you will help me :)I don't know how this helps you. It seems to go without saying: If you want to write Java EE applications, you should know Java EE well.
    %

  • Few questions about alsa and vlc

    how to set sound via spdif in vlc ?
    how to set default sound output as spdif ? (ESI Juli@)
    how to disable dmix and set sampling to 192khz ?

    Don't know too much, but S/PDIF would be handled by ALSA not VLC...
    Check out asound.conf for default output...
    Check autostart for DE/WM...
    Might look into using JACK instead of ALSA...

  • Few question about Java and MySQL connection

    Hi!
    I have some problems with creating connection between Java and MySQL.
    I followed the restrictions in mysql-connector-java.jar' readme, I set the CLASSPATH :
    CLASSPATH=.;D:/mysql/mysql-connector-java.jar;
    I copied this jar file to the right place (descripted above), and I used the right steps to load it:
    Class.forName('com.mysql.jdbc.Driver"); and it throws a ClassNotFoundException
    Why? All the paths are correct, everything is on the right place.... I dont know why.
    When I installed the JBuilder8, and copied the jar file to JBuilder8/jdk4/jre/lib/ext it worked without any CLASSPATH in enviromental variables.
    If I want to run my program on machines where are not JBuilder, what should I do?
    Please help, if you can.
    Thanks,
    henpanta

    Yeah. So if I compiled my program with JBuilder to an .exe file, I cant run it on other machines, if the jar file isnt in the same place?
    If I tried your advice, java -classpath mymainclass I got the next message:
    main class not found. Believe me, its there. :(

  • Few questions about apex + epg and cookie blocked by IE6

    Hi,
    I would like to ask a few questions about apex and epg.
    I have already installed and configured apex 3.2 on oracle 10g (on my localhost - computer name 'chen_rong', ip address -192.168.88.175 ), and enable anonymous access xdb http server.
    now,
    1. I can access 'http://chen_rong' , 'http://localhost' , 'http://192.168.88.175' without input username / password for realm 'XDB' in IE6;
    2. I can access 'http://localhost/apex/apex_admin' , 'http://192.168.88.175/apex/apex_admin' , and I can be redirected into apex administation page after input admin/<my apex admin password> for realm 'APEX' in IE6;
    3. I can access 'http://chen_rong/apex/apex_admin' in IE6, but after input admin/password , I can not be redirected into administation page, because the cookie was blocked by IE6.
    then, the first question is :
    Q1: What is the difference among 'http://chen_rong' , 'http://localhost' , 'http://192.168.88.175' ? I have already include site 'chen_rong' into my trusted stes! why the cookie was blocked by IE6. I have already tried firefox and google browser, both of them were ok for 'chen_rong', no cookie blocked from site 'chen_rong'!
    and,
    1. I have tried to use the script in attachment to test http authentication and also want to catch the cookie by utl_http .
    2. please review the script for me.
    3. I did:
    SQL> exec show_url('http://localhost/apex/apex_admin/','ADMIN','Passw0rd');
    HTTP response status code: 401
    HTTP response reason phrase: Unauthorized
    Please supplied the required Basic authentication username/password for realm XDB for the Web page.
    Web page http://localhost/apex/apex_admin/ is protected.
    MS-Author-Via: DAV
    DAV: 1,2,<http://www.oracle.com/xdb/webdav/props>
    Server: Oracle XML DB/Oracle Database
    WWW-Authenticate: Basic realm="XDB"
    Date: Tue, 04 Aug 2009 02:25:15 GMT
    Content-Type: text/html; charset=GBK
    Content-Length: 147
    ======================================
    PL/SQL procedure successfully completed
    4. I also did :
    SQL> exec show_url('http://localhost/apex/apex_admin/','ANONYMOUS','ANONYMOUS');
    HTTP response status code: 500
    HTTP response reason phrase: Internal Server Error
    Check if the Web site is up.
    PL/SQL procedure successfully completed
    SQL> exec show_url('http://localhost/apex/apex_admin/','SYSTEM','apexsite');
    HTTP response status code: 401
    HTTP response reason phrase: Unauthorized
    Please supplied the required Basic authentication username/password for realm APEX for the Web page.
    Web page http://localhost/apex/apex_admin/ is protected.
    Content-Type: text/html
    Content-Length: 147
    WWW-Authenticate: Basic realm="APEX"
    ======================================
    PL/SQL procedure successfully completed
    my second questions is :
    Q2: After I entered into realm 'XDB', I still need went into realm'APEX'. how could I change the script show_url to accomplish these two tasks and successfully get the cookie from site.
    the show_url script is as following:
    CREATE OR REPLACE PROCEDURE show_url
    (url IN VARCHAR2,
    username IN VARCHAR2 DEFAULT NULL,
    password IN VARCHAR2 DEFAULT NULL)
    AS
    req UTL_HTTP.REQ;
    resp UTL_HTTP.RESP;
    name VARCHAR2(256);
    value VARCHAR2(1024);
    data VARCHAR2(255);
    my_scheme VARCHAR2(256);
    my_realm VARCHAR2(256);
    my_proxy BOOLEAN;
    cookies UTL_HTTP.COOKIE_TABLE;
    secure VARCHAR2(1);
    BEGIN
    -- When going through a firewall, pass requests through this host.
    -- Specify sites inside the firewall that don't need the proxy host.
    -- UTL_HTTP.SET_PROXY('proxy.example.com', 'corp.example.com');
    -- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes,
    -- rather than just returning the text of the error page.
    UTL_HTTP.SET_RESPONSE_ERROR_CHECK(FALSE);
    -- Begin retrieving this Web page.
    req := UTL_HTTP.BEGIN_REQUEST(url);
    -- Identify yourself.
    -- Some sites serve special pages for particular browsers.
    UTL_HTTP.SET_HEADER(req, 'User-Agent', 'Mozilla/4.0');
    -- Specify user ID and password for pages that require them.
    IF (username IS NOT NULL) THEN
    UTL_HTTP.SET_AUTHENTICATION(req, username, password, 'Basic', false);
    END IF;
    -- Start receiving the HTML text.
    resp := UTL_HTTP.GET_RESPONSE(req);
    -- Show status codes and reason phrase of response.
    DBMS_OUTPUT.PUT_LINE('HTTP response status code: ' || resp.status_code);
    DBMS_OUTPUT.PUT_LINE
    ('HTTP response reason phrase: ' || resp.reason_phrase);
    -- Look for client-side error and report it.
    IF (resp.status_code >= 400) AND (resp.status_code <= 499) THEN
    -- Detect whether page is password protected
    -- and you didn't supply the right authorization.
    IF (resp.status_code = UTL_HTTP.HTTP_UNAUTHORIZED) THEN
    UTL_HTTP.GET_AUTHENTICATION(resp, my_scheme, my_realm, my_proxy);
    IF (my_proxy) THEN
    DBMS_OUTPUT.PUT_LINE('Web proxy server is protected.');
    DBMS_OUTPUT.PUT('Please supply the required ' || my_scheme ||
    ' authentication username/password for realm ' || my_realm ||
    ' for the proxy server.');
    ELSE
    DBMS_OUTPUT.PUT_LINE('Please supplied the required ' || my_scheme ||
    ' authentication username/password for realm ' || my_realm ||
    ' for the Web page.');
    DBMS_OUTPUT.PUT_LINE('Web page ' || url || ' is protected.');
    END IF;
    ELSE
    DBMS_OUTPUT.PUT_LINE('Check the URL.');
    END IF;
    -- UTL_HTTP.END_RESPONSE(resp);
    -- RETURN;
    -- Look for server-side error and report it.
    ELSIF (resp.status_code >= 500) AND (resp.status_code <= 599) THEN
    DBMS_OUTPUT.PUT_LINE('Check if the Web site is up.');
    UTL_HTTP.END_RESPONSE(resp);
    RETURN;
    END IF;
    -- HTTP header lines contain information about cookies, character sets,
    -- and other data that client and server can use to customize each
    -- session.
    FOR i IN 1..UTL_HTTP.GET_HEADER_COUNT(resp) LOOP
    UTL_HTTP.GET_HEADER(resp, i, name, value);
    DBMS_OUTPUT.PUT_LINE(name || ': ' || value);
    END LOOP;
    -- Read lines until none are left and an exception is raised.
    --LOOP
    -- UTL_HTTP.READ_LINE(resp, value);
    -- DBMS_OUTPUT.PUT_LINE(value);
    --END LOOP;
    UTL_HTTP.GET_COOKIES(cookies);
    dbms_output.put_line('======================================');
    FOR i in 1..cookies.count LOOP
    IF (cookies(i).secure) THEN
    secure := 'Y';
    ELSE
    secure := 'N';
    END IF;
    -- INSERT INTO my_cookies
    -- VALUES (my_session_id, cookies(i).name, cookies(i).value,
    -- cookies(i).domain,
    -- cookies(i).expire, cookies(i).path, secure, cookies(i).version);
    dbms_output.put_line('site:'||url);
    dbms_output.put_line('cookies:');
    dbms_output.put_line('name:'||cookies(i).name);
    dbms_output.put_line('value:'||cookies(i).value);
    dbms_output.put_line('domain:'||cookies(i).domain);
    dbms_output.put_line('expire:'||cookies(i).expire);
    dbms_output.put_line('path:'||cookies(i).path);
    dbms_output.put_line('secure:'||secure);
    dbms_output.put_line('version:'||cookies(i).version);
    END LOOP;
    UTL_HTTP.END_RESPONSE(resp);
    EXCEPTION
    WHEN UTL_HTTP.END_OF_BODY THEN
    UTL_HTTP.END_RESPONSE(resp);
    END;
    /

    I use oracle database enterprise edtion 10.2.0.3. I have already figured out the epg on 10.2.0.3 to support apex 3.2.
    And as I described above, the apex site works fine for ip address , and localhost. but the cookie will be blocked by IE6, if I want to access the site by 'http://computername:port/apex/apex_admin'. This problem does not occured in firefox and google browser. Could someone give me answer?

  • Question about RAC and ASM

    Hi,
    We are thinking about build RAC using ASM for OEM database. It'll have two nodes, oracle 10g and Hitachi san with solaris ( or linux ). I've few questions about RAC and ASM.
    1) Do I need to have ASM instance running on each node ? ( most likely yes... but want to make sure )
    2) can I share oracle_home between ASM instance and database instance ? what is the best choice ?
    3) I'm planning to use shared disks for all files, all databases.... what are the pros/cons ?
    4) what should be the installation procedure ? Meaning, first create ASM instance on each node, then install cluster software, build RAC databases...... can someone explain..
    5) I believe RMAN is the only option for backup since I'm using ASM, correct ?
    I'm a newbie to RAC and ASM..
    Thanks,

    user4866039 wrote:
    1) Do I need to have ASM instance running on each node ? ( most likely yes... but want to make sure )yes.
    2) can I share oracle_home between ASM instance and database instance ? what is the best choice ?in 10g you can, in 11gr2 you cannot. and it might be better to seperate them because it will give you more flexibility with patching.
    3) I'm planning to use shared disks for all files, all databases.... what are the pros/cons ?if you share your oracle_home you won't be able to do rolling updates. so i recommend to keep oracle_homes local.
    4) what should be the installation procedure ? Meaning, first create ASM instance on each node, then install cluster software, build RAC databases...... can someone explain..follow the install guide for your respective version. for 10g you'd install clusterware first, then asm and database is last.
    5) I believe RMAN is the only option for backup since I'm using ASM, correct ?pretty much. you could stop your database and dump the raw devices or use asmcmd/asmftp but rman is definitely the best choice
    Bjoern

  • A few questions about the ka790gx and dka790gx

    i have a few questions about the ka790gx and dka790gx , how much better is the dka790gx compaired to the ka790gx ? . how much difference does the ACC function make to overclocking etc , i plan on getting a phenom II 940BE or 720BE . i already have the ka790gx so would it be worth building another system using the dka790gx mobo , or should i keep what i already have and just change the cpu ?

    It's largely irrelevant what other boards had VRM issues other than the KA790GX - the fact is it died at stock settings. Since there is little cost difference between the more robust DKA790GX (or Platinum if you really need 1394) why bother with the proven weakling? There are other examples around of the KA not having a robust power section.  There's no way I would use even a 95W TDP CPU in the KA and absolutely not O/C.....!
    As for the credentials of Custom PC, I have generally found their reviews accurate and balanced, and echo my own findings where applicable. If a little too infrequent.
    The fact that the KA has such a huge VRM heatsink leads me to my other comments on the Forum, particularly regarding the "fudge" aspect:
    """Henry is spot on - the notion that adding a heatsink to the top of the D2PAK or whatever MOSFETS is effective is virtually worthless. The device's die thermal junction is the tab on the device back - which is always against the PCB pad. The majority of heat is therefore dissipated in to the board, and the fact that the epoxy plastic encapsulation gets hot is simply due to the inability of the heat to be conducted away from the device die via the tab. Not sure when Epoxy become an effective conductor of heat.... Good practice is to increase the size of the PCB pad (or "land" in American) such that the enlarged PCB copper area acts as an adequate heatsink. This is still not as effective as clamping a power device tab to an actual piece of ali or copper, but since the devices used are SMD devices, this is not possible. However, the surface area required to provide sufficient PCB copper area to act as a heatsink for several devices isn't available in the current motherboard layouts. Where industrial SBC designs differ in this respect is to place the VRM MOSFETs on the back of the PCB on very enlarged PCB pads - where real estate for components is not an issue.
    Gigabyte's UD3 2oz copper mainboards sound like a good idea, on the face of it. However, without knowing how they have connected the device tabs to where and what remains a mystery. I suspect it is more hype than solution, although there will be some positive effect. From an electrical perspective, having lower resistance connecting whatever to whatever (probably just a 0V plane) is no bad thing.
    The way the likes of ASUS sort of get round the problem is to increase the sheer number of MOSFET devices and effectively spread the heat dissipation over a larger physical area. This works to a degree, there is the same amount of heat being dissipated, but over several more square inches. The other advantage of this is that each leg of the VRM circuit passes less current and therefore localised heat is reduced. Remember that as well as absolute peak operating temperature causing reduced component life, thermal cycling stresses the mechanical aspects of components (die wire bonds for example) as well as the solder joints on the board. Keeping components at a relatively constant temperature, even if this is high (but within operating temperature limits), is a means of promoting longevity.
    For myself, the first thing I do with a seperate VRM heatsink is take it off and use a quiet fan to blow air on to the VRM area of the PCB - this is where the heat is. This has the added benefit of actively cooling the inductors and capacitors too....
    Cooling the epoxy component body is a fudge. If the epoxy (and thus any heatsink plonked on top of it) is running at 60C, the component die is way above that.....
    It's better than nothing, but only just."""

  • A few questions about Patone colors

    I have a few questions about patone colors since this is the first time I use them. I want to use them to create a letterhead and business cards in two colors.
    1)
    I do understand that the uncoated is more washed out than the coated patone colors. I heard that this is because the way paper absorbs the inkt. This is why the same inkt results in different colors on different paper (right?). My question is why is the patone uncoated black so much different than normal black (c=0 m=0 y=0 k=100) or rich black:
    When I print a normal document with cmyk, I can get pretty dark black colors. Why is it that I cannot have that dark black color with patone colors? Even text documents printed on a cheap printer can get a darker color than the Patone color. It just looks way too grey for me.
    2) For a first mockup, I want to print the patone colors as cmyk (since I put like 10 different colors on a page for fast comparison). I know that these cmyk colors differ from the patone colors and that I cannot get a 100% representation. But is there a way to convert patone to cmyk values?
    I hope that some of you can help me out with my questions.
    Thanks.

    You can get Pantone's CMYK tints in Illustrator, (Swatches Panel > Open Swatch Library > Color Books > PANTONE+ Color Bridge Coated or Uncoated) but in my view, what's the point?  If you're printing to a digital printer, just use RGB (HSB) or CMYK. Personally, I never use Pantone's CMYK so-called "equivalents."
    Pantone colors are all mixed pigmented inks, many of which fluoresce beyond the gamut limits of RGB and especially CMYK. The original Pantone Matching System (PMS) was created for the printing industry. It outlined pigmented ink formulations for each of its colors.
    Most digital printers (laser or inkjet) use CMYK. The CMYK color gamut is MUCH SMALLER than what many mixed inks, printed on either coated or uncoated papers can deliver. When you specify non-coated Pantone ink in AI, according to Pantone's conversion tables, AI tries to "approximate" what that color will look like on an uncoated sheet, using CMYK. -- In my opinion, this has little relevance to real-world conditions, and is to be avoided in most situations.
    If your project is going to be printed on a printing press with spot Pantone inks, then by all means, use Pantone colors. But don't trust the screen colors; rather get a Pantone swatch book and look at the actual inks on both coated and uncoated papers, according to the stock you will use on the press.
    With the printing industry rapidly dwindling in favor of the web and inkjet printers, Pantone has attempted to extend its relevance beyond the pull-date by publishing (in books and in software alliances, with such as Adobe) its old PMS inks, and their supposed LAB and CMYK equivalents. I say "supposed" because again, RGB monitors and CMYK inks can never be literally equivalent to many Pantone inks. But if you're going to print your project on a printing press, Pantone inks are still very relevant as "spot colors."
    I also set my AI Preferences > Appearance of Black to both Display All Blacks Accurately, and Output All Blacks Accurately. The only exception to this might be when printing on a digital printer, where there should be no registration issues.
    Rich black in AI is a screen phenomenon, unless in Prefs > Appearance of Black, you also specify "Output All Inks As Rich Black," -- something I would NEVER do if outputting for an actual printing press. I always set my blacks in AI to "Output All Blacks Acurately" when outputting for a press. If you fail to do this, then on the press you will see any minor registration problems, with C, M, and Y peeking out, especially around black type.  UGH!
    Good luck!  :+)

  • Few questions about iPhone 4S

    Hi,
    Recently I got an iPhone 4S, it is my first new phone in a long time, before this I had an old nokia, so I just have a few questions about it.
    I havve read a alot of horror stories about the 4S battery life, mine seems ok, here is what I would like to know
    1) How long should a healthy battery last?
    2) how long should it take to charge to 100% from 1 or 2%?
    On my daily commute I use listen it to music and sometimes user twiiter/facebook. I also get alerted of emails when they come in. So far it has just about lasted just about two days maybe before I had to recharge. Is this about right? As stated above I am coming from an old nokia, which is very dated now but the battery lasted almost a week before I had to charge, so having to charge my phone this often is new to me. My iPhone is really great and I just don't want any problems. I have turned off all extras that I don't need.
    BTW are the iPhone 4S battery issues a software or hardware issue?
    Thanks

    I attempted to read your post, but in amongst all the random, unrelated waffling, I couldn't actually find exactly what your iPhone related question for this "Using iPhone" forum was.
    Would you like to clarify? Concisely.

  • Few questions about Lenovo G550

    Hello, I plan to buy an inexpensive laptop, propably it will be a Lenovo G550L but I got few questions about this model. Here are my questions:
    1. What 320GB hard disks are mounted inside G550L, Western Digital, Seagate or Hitachi (exact model if possible)?
    2. How are the hinges of LCD screen in this model, cause they look pretty weak. Do they break easy, does anyone got any experience with this type of hinges which are "forward type" instead of normal?
    2. I have noticed that there are two types of laptop chassis in this model one is matte black and another is grey glare. How to determine which model has which finish? Which finish got laptops with T4300, 3GB RAM, 320GB HDD, Intel IGP x4500, no card reader, no hdmi.
    Thanks in advance.
    Regards

    my friend samsung any net, toshiba regza link, panasonic viera link is their special TM to support CEC
    but just for their product not  other products,for instance a samsung dvd player and a samsung lcd can sync easily with with hdmi cable
    and in this case you dont need an extra remote control to control dvd besides tv.just with having a remote you can control both of them or the other audio visual products from that campany
    please think???? how could you control your lenovo when it does not have a remote?
    every device need to send signals to the remote not by just some wires like HDMI
    lcd has  a  remote and a dvd player also has a remote and if those are from a unit company,they share a common signal with HDMI cable ,then you could control both of them with just one remote.
    this can ease your work,as you dont need a lot of remote around your devices
    but they should be from just a unit producer cause they uses different protocols
    and of course they want to sell their various products and oblige you to buy other products from that producer to have the compability for having just one remote.

Maybe you are looking for

  • New iMac will connect to Airport but not Internet

    I've just bought an Intel iMac 2.94ghz, brought it home and tried to get it onto the internet. It sees my wireless network and connects just fine, with all bars full. But if I try to view a page in Safari, I get the 'You are not connect to the Inerne

  • Packed Material Details Report

    Hi, At the time of delivery we packed the material . and also at the time of delivery i have to give packed details with material and quantity wise is it possible? and also one moth or 2 months etc..,  can i get the packed details which is already de

  • APP - PAY - 06153 error at step 40 while assigning job code to employee.

    Hi, I am getting error AP-PAY-06153 : System Error : Procedure at step 40. When i save any changes made in the employee assignment, this error is displayed. Can anyone help me resolve this issue? Thanks and regards, Aruna.

  • Custom tool in netwever

    Hello Guru,                     First time I have started Netwever in my server ecc6.0 in that I have done everything but one problem is coming that one I am not able to find out custom tool through that I can design the screen , when I double click

  • EJB Deployment On Tomcat

    Hi, I am ashish,i want to learn how to deploy EJB on Tomcat server so pls help me out for tht thnx, Ashish Dave