General Simple Linux Printing Questions

So, I'm using Arch Linux with XFCE. In Ubuntu, it's relatively simple to set up printing. However, on Arch Linux, I don't know how to do it. I have a few simple questions:
* Are all those "easy to use" printing setup GUIs just configurators/frontends for cups?
* I have an HP printer, should I use hplip?
* What is hplip exactly? Is it another printing system like cups? Is it a cups addon?
* Is it easy to set up printing in Linux given that you have a pretty good printer that is "linux compatible"?

iBertus wrote:
solarwind wrote:
So, I'm using Arch Linux with XFCE. In Ubuntu, it's relatively simple to set up printing. However, on Arch Linux, I don't know how to do it. I have a few simple questions:
* Are all those "easy to use" printing setup GUIs just configurators/frontends for cups?
* I have an HP printer, should I use hplip?
* What is hplip exactly? Is it another printing system like cups? Is it a cups addon?
* Is it easy to set up printing in Linux given that you have a pretty good printer that is "linux compatible"?
1.) Yes, most are simply CUPS frontends.
2.) Yes, you should.
3.) It's a set of printer drivers for HP printers. It supports most printers and their functions.
4.) Yes, you just need to find the correct driver for the printer and set it up using the CUPS web-gui.
     Remember, after running CUPS, you can access the interface from http://localhost:631 in a web browser.
Thanks! I set it up for my HP and it worked great!
However, when I run any of the hp-* tools from the command line, the copyright notice gets shown, then after a few milliseconds to a few seconds depending on which hp tool I run, another copyright notice gets shown and it freezes.

Similar Messages

  • Sharing Linux printer with Mac

    P4 with Debian Etch (testing), kernel 2.6.12-1-686,
    Gnome desktop and USB attached printer and scanner
    PMac G5 running OS X Tiger (10.4.4)
    I've got my AppleTalk/zeroconf LAN setup working for file sharing - with netatalk and task-howl on the Linux box.
    When I had my printer connected to my Mac I could print to it from the Linux box with just CUPS whether the Mac AppleTalk connection with the Linux box was active or not. Then I decided I wanted more desk space around my Mac and moved the printer to my Linux box. Now I can print from my Linux box, but I can't seem to figure out how to print to it from my Mac :-P
    For once I'm finding the printer setup on my Mac the more difficult I've tried it outside the AppleTalk connection by simply supplying an address of 192.168.2.69:631 and though the printer definition is accepted, actual printing says the printer is busy. I've also tried it with the AppleTalk connection up, again supplying the same address, with the same results. I've also tried variations of addresses without success.
    I'm sure I'm tripping over the obvious but what??? Is there a way to specify the Linux printer from my Mac outside AppleTalk? Or if I need to through AppleTalk, do I need to further edit my Linux netatalk setup - maybe the papd.conf???
    If I do need to (somehow) use the Linux printer with AppleTalk, there is another lesser question. How do I ensure that the howl tools (mDNSResponder for advertising) start at login like afpd and atalkd. Following is the mDNSBrowse info if it's any help.
    I'm keeping notes on the detail steps in order to share the setup with anyone else they might help, so if you want to see the detail steps I've taken so far I can send along the text file or put it up on my dotMac account for download.
    Thanks,
    Lee C
    debian1:/home/leec# /etc/init.d/mdnsresponder restart
    Stopping Rendezvous service discovery responder daemon: mDNSResponder.
    Starting Rendezvous service discovery responder daemon: mDNSResponder.
    debian1:/home/leec# mDNSBrowse afpovertcp.tcp
    browse reply: Add Service debian1 afpovertcp.tcp. local.
    browse reply: Add Service debian1 afpovertcp.tcp. local.
    resolve reply: debian1 afpovertcp.tcp. local. 169.254.103.69 548
    resolve reply: debian1 afpovertcp.tcp. local. 169.254.103.69 548
    resolve reply: debian1 afpovertcp.tcp. local. 169.254.103.69 548
    resolve reply: debian1 afpovertcp.tcp. local. 169.254.103.69 548
    browse reply: Add Service slpmacg5 afpovertcp.tcp. local.
    browse reply: Add Service slpmacg5 afpovertcp.tcp. local.
    resolve reply: slpmacg5 afpovertcp.tcp. local. 192.168.2.14 548
    resolve reply: slpmacg5 afpovertcp.tcp. local. 192.168.2.14 548
    resolve reply: slpmacg5 afpovertcp.tcp. local. 192.168.2.14 548
    resolve reply: slpmacg5 afpovertcp.tcp. local. 192.168.2.14 548

    Hi Lee,
       Of course I don't mind your sharing my instructions; the more testing we have the better. Did you not have to do any configuration of netatalk and the howl-tools? I know it's zeroconf but I've never dealt with an app that didn't require some configuration. Well, maybe the dream is true...
       In theory my instructions are symmetric. The Mac's /etc/cups/client.conf file has a ServerName line. Of course, whether or not Apple's print mechanism will honor it is another matter. I can't test it but I would think it worth a try. I would think that getting printing to work from Mac to Linux would require that the Linux server be setup to share its printer via CUPS as I described.
       Once the Linux box is sharing its printer via CUPS, here is how I would guess you should add it to the Mac via the Printer Setup Utility.
    In the "Printers" menu, select "Add Printer...". The Printer Browser dialog will open. Click on the "IP Printer" button, the second button at the top left. Beside "Protocol:" select "Internet Printing Protocol - IPP". That is the protocol CUPS uses and points to port 631 which is what you want for a printer shared via CUPS. In the address line naturally you want to put the local address of Linux box. Under "Queue:" you can put the name you chose when you setup the Linux printer to work with CUPS. However, assuming that you only have one print queue, it should work to leave that blank.
    Below that is another group of fields to fill in. I'm not sure how important they are. I am guessing here since I haven't tested it but I would guess that "Name:" and "Location:" are for display purposes only and that what you put there doesn't really matter. The "Print Using:" menu is another matter. I'm sure that the driver resides on the machine to which the printer is attached so specifying a driver on the client doesn't really make sense to me if you're using IPP. I know that in a purely Linux environment, all I have to specify is the ServerName so no driver should be necessary. I would think that "Auto Select" would be the best choice if you have to make one but I would try not doing anything with it if you can. If neither of those work, try selecting the actual make of the printer. Since you had it connected to the Mac once, I assume that you actually do have a driver. I just don't see why you would need it.
       Setting up the printer to work with CUPS was the only thing that I really had to research when setting up our Linux lab and server. I think the only important decision was the driver. The printer that our Linux server uses is itself a JetDirect network printer so the Device URI was actually important as well but the printer currently connected to my Mac (OS X configured CUPS automatically) has a Device URI of file:///dev/null so it can't be very important for a local printer. However, if the Linux box has a device file for the local printer, you may have to use that as the Device URI. (with file:// in front of it)
       If you've set the cups.conf file as I described in my instructions, (allow the Mac access to <Location />) you can actually configure the CUPS queue via the web from the Mac. Just aim your browser to http://<Linux_IP>:631/printers and click on the "Add Printer" link at the bottom left if it isn't already listed. If it is already listed then maybe Linux configures local printers automatically too. Otherwise you may have to click on the "Configure Printer" link.
    Gary
    ~~~~
       You may be right, I may be crazy,
       But it just may be a lunatic you're looking for!
             -- Billy Joel

  • How to use Linux Print queue in client_text_io.fopen to print from Windows

    We have a forms application deploed on LINUX (Oracle application server 10g).
    I have to print a file from local windows PC to a linux Print Queue from forms
    I have the following code
    PROCEDURE file_to_printer (i_filename_output IN VARCHAR2
    ,i_network_printer IN VARCHAR2) IS
    l_line VARCHAR2(2000);
    l_fileid_output client_text_io.file_type;
    l_fileid_print client_text_io.file_type;
    BEGIN
    l_fileid_output := client_text_io.fopen (i_filename_output,'R');
    l_fileid_print := client_text_io.fopen (i_network_printer,'W');
    WHILE 1 = 1 LOOP
    client_text_io.get_line (l_fileid_output, l_line);
    client_text_io.put_line (l_fileid_print, l_line);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    client_text_io.fclose (l_fileid_output);
    client_text_io.fclose (l_fileid_print);
    END file_to_printer;
    Everything works fine if I use a windows printer like \\machine\printer.
    I want to use a Linux printer and specified the print queue as
    \\machine\print_queue_name. It's not working
    and I get error ORA-302000 on the following line
    l_fileid_print := client_text_io.fopen (i_network_printer,'W');
    and if I give only the queue name no error but it's not printing.
    Could you please tell me how to use a Linux/Unix print queue in this situation

    the simplest way is to edit the interface file (look in /etc/lp/interfaces for existing printers). Each script is
    run per print job where stdin has your print data, and stdout is going to your print device. You can just
    send the output to a file instead (assuming you can create a file in the windows directory from the solaris
    box). If it's a network share, you could use smbclient.
    -r

  • Image Printing Question

    Hello,
    Bottom line summary: How do I use the Media and Quality setting to get a good image?
    I have an image printing question for an HP 8600 Office. I am trying to get a decent quality image to print
    on regular paper. I gather that I will not get the quality of a photo printer. I gather I'm supposed to use
    HP glossy paper. Please read on ...
    Images come out grainy (rastery) when embedded from an MSPaint project, and if I use Word. However when I printed just an image from image viewer it came like a photo ... but I can't remember what I did. It definitely is capable of printing better. My cartridges all check out, etc. I did the Print Quality Report ... I sure wish I could get that quality when I print other things.
    I tried messing with different settings from the Print - Preference. The Quality (Best, Normal, Draft) doesn't effect the outcome. I tried going into Print - Preference - Media and it makes a difference. I can't figure out which is the best setting for plain paper ... but it's not plain paper. The image rendering algorithm appears to be different for different Media settings. I also tried setting the Advanced Resolution to Maximum DPI. I haven't been totally methodical about this as I was in a rush.
    I see that the printer is being "smart", perhaps a little too smart. 
    So my question is multipart:
    - Is there documenation on the what the Print - Preference - Media settings do?
    - How do I get it to not use grainy/rastery image method, but use the nicer photo method?
    - Should I print Maximum DPI?
    Thanks,
    - Dave -

    Hi @DaveGold , and welcome to the HP Forums!
    I hope you had a great holiday!
    I see you're looking into photo setup options. I'd like to help!
    First I'd recommend this document on Changing Print Settings in Windows 7.  This document should show all the settings you're looking into.
    Also, another thing to keep in mind, when you select 'best print quality' and 'photo paper'. It will only be as good as the source image.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Printer question: Is it possible to print 2 pages in 1 side paper?

    Printer question: Is it possible to print 2 pages in 1 side paper? If so how ?

    Duplicate post.
    Printer question: Is it possible to print 2 pages in 1 side paper?
    Re: Printer question: Is it possible to print 2 pages in 1 side paper?

  • Simple X-fi Question, Please Help

    !Simple X-fi Question, Please HelpL I've been looking for an external sound card that is similar to the 2002 Creative Extigy and think I may found it in the Creative X-Fi. I have some questions about the X-fi though. Can the X-fi:
    1. Input sound from an optical port
    2. Output that sound to 5. surround- Front, surround, center/sub
    3. Is the X-Fi stand-alone, external, and powered by a USB or a wall outlet (you do not need a computer hooked up to it)
    Basically I want to connect a TosLink optical cable from my Xbox to the X-Fi. That will deli'ver the sound to the X-Fi. Then I want that sound to go to a 5. headset that is connected to the X-fi via 5. front, surround, and center/sub wires. The X-Fi has to be stand-alone and cannot be connected to a PC to do this.
    Thank you for your help.

    The connector must match, and the connector polarity (plus and minus voltage) must match.  Sorry, I don't know if the positive voltage goes on the inside of the connector or the outside.    Any wattage of 12 or more should be adequate.
    Message Edited by toomanydonuts on 01-10-2008 01:29 AM

  • Before I buy: speed and printer questions

    I am looking to buy a new TC 500gb version to replace my linksys WRT54G. To upgrade the wireless router as well as start a backup system I have yet to ever initiate.
    Two questions/concerns come up:
    #1) After the initial back up to TC I understand there are hourly incremental back ups - Can that time interval be adjusted, and how long does that back up take (I do now add much data/ files to my main Comp usually) also during those incremental back ups does that affect the computer much, such as if I am playing an internet game, will I lag out while it is backing up every hour?
    #2) Setting up a printer through usb port to be accessed by my home network. My HP C6180 all in one works fine being seen through the aged, but battle tested linksys, any reason it shouldn't work with the TC?
    Thanks for any insights you might have in this regard.
    I have cable isp access, My Main Comp is where the cable modem and TC would be, I have a G4, a G5 and a MBP scattered around the house accessing via wireless.
    Message was edited by: Steven Swift

    Hi Steven, welcome to the discussions.
    After the initial backup (recommend that you use ethernet for this), TC will backup incrementally every hour assuming you will be using Time Machine. There is no way to alter this with Apple software, but a number of users have reported satisfaction with Time Machine Editor, http://timesoftware.free.fr/timemachineeditor/, which will allow you to schedule backups whenever you would like. This might be a good solution if you notice slow downs with other devices during a backup session.
    Backups should be relatively quick, but be aware that very small changes in some programs (like Entourage, vmFusion, Parallels) require the entire database to be backed up, not just the small change that might have been made.
    The printing question is the most difficult as the boards are busy with users who are having troubles in this regard. Perhaps some other users have used the same HP and can comment. Bear in mind that if your HP is compatible, only the printing function will work through the network. Scanning and other advanced functions are not supported.

  • Simple Crop tool question... how do I save the crop section?

    Hi,
    I have a very simple crop tool question. I'm a photoshop girl usually... so Illustrator is new to me. When I select the crop section I want... how do I save it?... if I select another tool in the tool panel, the crop section disappears and I can't get it back when I re-select Crop tool. If I select Save as... it saves the whole document...and not just my crop section.
    Like I said, simple question...but I just don't know the secret to the Illustrator crop tool.
    Thanks!
    Yzza

    Either press the Tab key or F key.

  • A Simpler, More Direct Question About Merge Joins

    This thread is related to Merge Joins Should Be Faster and Merge Join but asks a simpler, more direct question:
    Why does merge sort join choose to sort data that is already sorted? Here are some Explain query plans to illustrate my point.
    SQL> EXPLAIN PLAN FOR
      2  SELECT * FROM spoTriples ORDER BY s;
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT |              |   998K|    35M|  5311   (1)| 00:01:04|
    |   1 |  INDEX FULL SCAN | PKSPOTRIPLES |   998K|    35M|  5311   (1)| 00:01:04|
    ---------------------------------------------------------------------------------Notice that the plan does not involve a SORT operation. This is because spoTriples is an Index-Organized Table on the primary key index of (s,p,o), which contains all of the columns in the table. This means the table is already sorted on s, which is the column in the ORDER BY clause. The optimizer is taking advantage of the fact that the table is already sorted, which it should.
    Now look at this plan:
    SQL> EXPLAIN PLAN FOR
      2  SELECT /*+ USE_MERGE(t1 t2) */ t1.s, t2.s
      3  FROM spoTriples t1, spoTriples t2
      4  WHERE t1.s = t2.s;
    Explained.
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT       |              |    11M|   297M|       | 13019 (6)| 00:02:37 |
    |   1 |  MERGE JOIN            |              |    11M|   297M|       | 13019 (6)| 00:02:37 |
    |   2 |   SORT JOIN            |              |   998K|    12M|    38M|  6389 (4)| 00:01:17 |
    |   3 |    INDEX FAST FULL SCAN| PKSPOTRIPLES |   998K|    12M|       |  1460 (3)| 00:00:18 |
    |*  4 |   SORT JOIN            |              |   998K|    12M|    38M|  6389 (4)| 00:01:17 |
    |   5 |    INDEX FAST FULL SCAN| PKSPOTRIPLES |   998K|    12M|       |  1460 (3)| 00:00:18 |
    Predicate Information (identified by operation id):
       4 - access("T1"."S"="T2"."S")
           filter("T1"."S"="T2"."S")I'm doing a self join on the column by which the table is sorted. I'm using a hint to force a merge join, but despite the data already being sorted, the optimizer insists on sorting each instance of spoTriples before doing the merge join. The sort should be unnecessary for the same reason that it is unnecessary in the case with the ORDER BY above.
    Is there anyway to make Oracle be aware of and take advantage of the fact that it doesn't have to sort this data before merge joining it?

    Licensing questions are best addressed by visiting the Oracle store, or contacting a salesrep in your area
    But I doubt you can redistribute the product if you aren't licensed yourself.
    Question 3 and 4 have obvious answers
    3: Even if you could this is illegal
    4: if tnsping is not included in the client, tnsping is not included in the client, and there will be no replacement.
    Tnsping only establishes whether a listener is running and shouldn't be called from an application
    Sybrand Bakker
    Senior Oracle DBA

  • SIMPLE APEX PRINTING IN 4.0

    Question: Using APEX 4.0 I am finding that I am having a world of hurt trying to get very BASIC printing setup. I am not using BI and do not need PDF or RFT formats. Essentially, I would like to be able to create Interactive reports that do three things:
    1) Provide a "Print" link for the user
    2) Pass any interactive parameters to the print so the filtering and such are maintained
    3) Disable the Interactive Search bar on the printer friendly page.
    Working through the documentation I can't find any clear references to just printing a report on a page. I have found how to setup the printing for using the APEX_ADMIN site and I have found the "printer freindly" template and have been able to work with that. The rest is coming across very cryptic.
    I thought these would be simple but every solution I try seems very "gummy". I have added a print link to the Navigation Bar but it always references the only a single page. So I added a print button to each page (which was easy) but it doesn't pass the Search and Filter parameters to the printer friendly view of the data.
    I have also noticed that only about 2 pages of output go to the printer when I have about 800 records on the screen (that one is weird).
    I am a very good PL/SQL programmer so if the solution is code-based, please hit me with it.
    My platform is APEX 4.2 on Windows 2003 Server - Oracle XE
    Any help would be great!
    Thanks

    Thanks for everyones help.
    I have basically figured out the system now. here is what I have (maybe help someone else).
    ON THE SERVER
    1) I installed a standalong OC4J instance on my server
    2) I connect to the admin control panel (port 8888 was the default)
    3) I deployed toe FOP war file that comes with APEX
    4) I started the OC4J
    IN APEX ADMIN:
    I logged into the APEX_ADMIN app and set the printing up in the Manage Instance section:
    MANAGE INSTANCE ---> INSTANCE SETTINGS --> REPORT PRINTING TAB
    STANDARD
    HTTP
    LOCALHOST
    8888
    /fop/apex_fop.jsp
    Then I saved that.
    IN APEX:
    I The created a simple app with a Interactive Report. I edited the report to allow the DOWNLOAD section to use PDF.
    When I ran the report and used the ACTION menu in the search bar, I was able to download to PDF and print the result. All parameters set in the search passed right through!
    I then created another report of the "classic" variety and enabled printing and set the results for INLINE and PDF. That also worked fine.
    Hope this helps.

  • Basic Security & form printing questions.

    Hi, I am not an Oracle Forms developer yet, just gathering info, but I have 2 probably simple questions for you forms experts out there that maybe you can help me with.
    Lets say that this new application will have 10 users and I create a main menu with 5 categories. Can forms allow me to give 4 users read/viewable rights to, lets say 3 categories,instead of all 5 categories? Bsically I just need to know if it offers some kind of security that I can create for each individual user.
    The next question is if I create 10 forms that is supposed to 'retrieve' data, but I need to also have these 10 forms print out 'without' the data. Do I need to create 20 forms, or is 10 sufficient and oracle would allow me to print the forms out either with or without data.
    Thank you in advance
    null

    There is menu-level security, meaning that only users that have certain roles may execute certain menu choices.
    There's no special security at form level, apart from the database level security.
    If a database user does not have insert, update & delete priviledges on a datablock in the form (but has the select priviledge), then, he won't be able to change the data in that block using the form, and if he'd try to, he'd get an error when trying to commit the changes.
    Well, you may use set_block_property(your_block, update_allowed, property_true) or set_block_property(your_block, update_allowed, property_true) in the when new-form-instance trigger to make the form behave as you will when opened by a given database user.

  • Simple Error Handling Question

    I know that in general, when you are handling an error, you can either pass the back by adding a throws declaration to the method in question, or surround with try/catch and handle the error.
    What do you do if you want the error to force the application to stop? Just send a simple output message and then stop.
    Thx,
    hqd

    What do you do if you want the error to force the
    application to stop? Just send a simple output
    message and then stop.You should stop wanting that. If the code in method X
    encounters an error it can't deal with, it should
    throw that error to whoever calls it. It is the
    responsibility of the caller to decide what to do,
    not the responsibility of method X.But the buck has to stop somewhere. Are you saying that only the main method should ever stop a program?
    Maybe this is one of the gaps in my understanding of good overall design, but it seems perfectly valid to me to have certain methods that, when they error, I know I always want my application to stop. Passing it along up the chain might involve adding a whole bunch of throws declarations.... why... just to say we have no methods that stop the application. Say this piece of code is not longer used in the spot that throws it's possible error up the chain.... now you have to remove all those throws.... isn't this ripple effect on our code bad design?
    What am I missing?
    Thanks,
    hqd

  • Mac OS Lion - General Topic - Wireless Printer, Scanner, External Harddrive, Disk Management

    Dear All,
    I just fall in the mac world since I got an ipad and then an iphone and was very happy about these product I did purchased a mac mini server (Mac OS Lion 10.7.2 I think, basically the last version available).
    But now I need to learn about the Mac OS world and this is not straight forward, particularly regarding my existing hardware devices installation (printer, scanner etc...).
    I have some queries below, anyone who could help me is welcome.
    Thanks for all your support,
    Best Regards,
    1. I have a wireless printer Samsung CLP315W for which I could download the driver and print through the USB cable but I did see yet how to make it work through the WI-FI network. I mean in windows, the printer was detected as shared printer on the network. How does it work here ?
    2. I have a scanner canoscan Lide 30 which looks unfortunately not supported by Lion OS: indeed I could download the scanner toolbox labelled for "Mac OS" but I got the message: "PowerPC application not supported".
    Do I have any chance to make this scanner working or must I throw it in the paper bin ? (I must say I am not satisfied by my Mac in this respect, I would expect a better compatibility with hardware devices.
    3. I do have an external harddisk with various informations in as pictures, pdf files, offices files (word, excel) etc... This is a LaCie which was NTFS formatted with my previous computer based on windows OS.
    At a first instance, it was recognized by my mac OS but all folders appears in read-only.
    Do I have a way to apply the change to "full access" for all folders at once ?
    Why is it in "read only" in mac OS when it is not under windows ?
    Assuming I expect to continue using this disk as external backup but also expect to be able to access to it by windows OS computer, what is the best format ?
    4. I bought a mac mini server with 2*500Go disk, but I just wonder: how to use this disk ? I mean I would see one disk as backup, somehow safe and the second use on daily basis when applications stands.
    How does the disk management in general under Mac OS ?

    Hi jean-jack,
    The first thing you should look at, is if your are Mac enabled. If they are not, then there is a great chance that they will work badly or not at all.
    About your questions:
    1. Normally a Mac is supposed to detect it automatically and make it ready to use (try printing a document to see if this works). If your Mac doesn't recognize it, you can always add it manually in "printing and scanning" in your system preferences. This is accesible by just entering it in Spotlight (magnifying glass in the upper right corner) and adding it via the "+" icon (you may have to enter your password first using the lock in the lower left corner). After that he should recognize it as a WiFi printer and you should be able to use it.
    2. Since it concerns an older scanner, it is simply not supported by Lion (Lion doesn't support PowerPC applications anymore). Therefore it is sadly ready for the trash can.
    3. To change the accesibility of your hard disc to "full acces" you have to ctrl+click on the hard disc in Finder. In the drop down menu, you'll see the option "info". This option will open a small screen that allows you to adjust the settings for "sharing and responsibility" (found at the very bottom). Nevertheless I highly recommend you to format your hard disc to "exFAT" or "FAT32", because they give a much better compatibility to your Mac and are also readable on a Windows computer. You can do this by entering "disc aid program", once again in Spotlight. In this little program you are able to adjust the format of every single hard disc connected to your computer. Also not that this progress will completely erase all the files on your hard disc.
    4. To split the hard disc into partitions, you can use the same program explained above. Simply choose your hard disc and press "adjust size". Here you can divide your hard disc into different partitions, which will be seen as different hard discs.
    Good luck!
    Michaël Duwyn

  • General feedback, comments and questions

    Background: Written many web applications over the years (Java [cocoon, struts, home-grown frameworks], ISAPI, cgi-bin), and also worked with RAD tools like Delphi doing client/server apps. Consequently, JSF looks very interesting to me, especially when you consider .NET and Web Forms. Here are my comments/questions:
    -     The name �Request Events� is confusing. Should be �UI State Change Events� or something.
    -     Why isn't there a subclass of FacesEvent for �Request Events�?
    -     Are there any standard events that all components respond to? (i.e page lifecycle events)
    -     Is there anyway to explicitly state that a component responds to specific types of events (like the way Validators tell you what types of attributes they respond to)? What I�d like to see is the ability to generate an Events tab in the development tool, like most modern RAD environments.
    -     In order to take advantage of a central dispatching mechanism (ApplicationHandler), it would make sense for all pages to flow through the FacesServlet. Is there a pass-through mechanism that doesn�t require a response tree, or would this just be some type of application event? In other words, how does FacesServlet process requests that aren�t mapped to a component tree?
    -     Can you give us an idea about how the model references will work, and what the standard way for the application handler (and its delegates) will get a handle to a model reference will be? (i.e. session parameter).
    -     Why use UIParameters instead of attributes?
    -     I understand that grid and table display functionality is handled by standard Renderers. I still think that JSF needs to have a more complete standard suite of components as well, including grid and table components that can be bound directly to collections and ResultSets. (I know this isn�t EJB-friendly, but in reality many servlet-based applications don�t use EJB). Just requiring a UIPanel alone and the appropriate Renderers isn�t enough. I think that in order for JSF to be successful, it must have at least the standard components that .NET does.
    -     This is a minor detail, but shouldn�t there be a simple addMessage(Message message) method on the FacesContext instead of requiring you to send in null?
    -     You should be able to declaratively associate an ApplicationHandler � you shouldn�t have to add a ServletContextListener to do this.
    -     You should be able to specify a RenderKit for an entire application declaratively. This brings up the question of whether or not an application-wide context is needed (or if the JSF implementation should just subclass ServletContext).
    -     You should also be able to specify the RenderKit for a given session as well as a specific Tree.
    -     Currently, I don�t see any support for modifying the render kit in the JSP implementation. Shouldn�t this be an attribute of the <faces:usefaces> tag?
    -     I�m worried about the performance implications of this design for more complex user interfaces with many controls on a given page. I�ve seen others raise this concern as well, especially when you consider the overhead of copying component values, and constantly traversing the component tree. I recognize that there are a lot of places where object pooling can be used (Renderers, the components themselves, LifeCycle objects, etc.), but does anyone have any specific comments on how this can be achieved with minimal overhead, especially when you consider that a given application may have filters and additional logic in the ApplicationHandler (that may in turn talk to the EIS tier).
    I�m glad to see that for events, encoding, and decoding, you can either handle it directly in the component or delegate it to the proper handler (either a RequestEventHandler or a Renderer). This addresses the fact that in-house controls will likely be bound to a specific client device (at least originally).
    In general, I think this is a great move forward, and it�s one thing that we�ve been lacking for a while (there have been many non-Sun efforts on this front for a while, but we really need a standard if Java is going to remain the preferred platform for rapidly building web apps).
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Kito D. Mann
    [email protected]
    Virtua, Inc.

    In regards to my third point:
    - Is there anyway to explicitly state that a component responds to specific types of events (like the way Validators tell you what types of attributes they respond to)? What I�d like to see is the ability to generate an Events tab in the development tool, like most modern RAD environments.
    I just realized that this is handled implicitly by the fact that all UIComponents are JavaBeans. JavaBeans supports this via EventSetDescriptors. This is what happens when you haven't worked with any GUI tool kits (like Swing) for years :-). It'll be nice to see this functionality in the servlet world.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Kito D. Mann
    [email protected]
    Virtua, Inc.

  • Very simple and quick question about Arrays

    Hi,
    I have the following code to produce a student grades provessing system. I have got it to store data in the array, i just cant figure out how to add the integers from the row to produce a total. Thats all I want to do create a total from the 6 marks and add a percentage.
    Any help would be greatly appreciated.
    -------------CODE BELOW----------------------
    import java.util.*;
    public class newstudent1_2
    public static void main (String[]args)
    System.out.println ("-----------------------------------------------"); //Decorative border to make the welcome message stand out
    System.out.println (" Welcome to Student Exam Mark Software 1.2"); //Simple welcome message
    System.out.println ("-----------------------------------------------");
    int [][] mark;
    int total_mark;
    int num_students;
    int num_questions = 9;
    Scanner kybd = new Scanner(System.in);
    System.out.println("How many students?");
    num_students =kybd.nextInt();
    mark = new int[num_students][num_questions] ;
    for (int i=0; i<num_students; i++)
    System.out.println("Enter the Students ID");
    String student_id;
    student_id =kybd.next();
    System.out.println("Student "+i);
    for( int j=1; j<num_questions; j++)
    System.out.println("Please enter a mark for question "+j);
    mark[i][j]=kybd.nextInt();
    System.out.print("id mark1 mark2 mark3 mark4 mark5 mark6 mark7 mark8");
    //This section prints the array data into a table
    System.out.println();
    for (int i=0; i<num_students; i++)
    for( int j=0; j<num_questions; j++)
    System.out.print(mark[i][j]+"\t"); //the \t is used to add spaces inbetween the output table
    System.out.println();
    --------------END OF CODE---------------
    Thanks.

    I had to do this same sort of thing for a school assignment but i didnt use an array.
    import java.text.DecimalFormat;
    import TurtleGraphics.KeyboardReader;
    public class grade_avg
         public static void main(String[] args)
              int grade, total = 0, count = 0;
              double avg = 0.0;
              KeyboardReader reader = new KeyboardReader();
              DecimalFormat df = new DecimalFormat("0.00");
         for (;;)
                   grade = reader.readInt("Please enter a grade: ");
              if (grade > 0)
                        total = total + grade;
                        count ++;
              if (grade == 0)
                        avg = total / count;
                        System.out.println("The average is: " + df.format(avg));
                        System.exit(0);
    }output looks like:
    Please enter a grade: 100
    Please enter a grade: 50
    Please enter a grade: 0
    The average is: 75.00

Maybe you are looking for

  • Safari 3.1.2 to next upgrade

    I'm using Safari 3.1.2. I downloaded 3.2, but did not get a chance to install it. Looks like 3.2.1 is out now. I'll install it and see how it works and report back. If it doesn't work, I have the 3.1.2 installation file if I need to reinstall... here

  • Outputing reports to Word from Oracle reports

    I have already created the template in word, I saved it as an html file. Opened it from Oracle reports and have started working on the web source, but I don't really know where to go from here. Help it urgent. Thanks

  • Windows 8 mouse auto clicking everything

    Ever since I have had my lenovo laptop with windows 8 installed I've had a problem with the mouse (touchpad) clicking on everything that I dont choose to click on (auto clicks). I've spoken to friends who have different laptops but have windows 8 ins

  • Help with date column

    I have a Table xyz with the following columns: sdate DATE count_views NUMBER(20) The table was created by someone about 1.5 years back. It contains data from the month of june, 2009 till date. When I run a query on it: SELECT DISTINCT sdate FROM xyz

  • Moving photos from pc to iphone

    How do I transfer photos from my Desktop PC to my Iphone 4S or IPad