Dealing with text overflows...

I have a list of dynamically generated band names which I need to display across 2 fixed height columns on my page.  The list varies in length considerably according to the requirements of the site owner who is using a CMS to update the database.  Is there any way of using css to make the text flow automatically to the 2nd div when the first is full?  Or something else?  php?
Thanks

Hi again -got the css3 version working and its absolutely perfect so very pleased with that.  Obviously though there are problems with the other browsers so for the time being I've set the text overflow to scroll, which is just about ok though not very elegant.
So I would really like to crack the php solution - also good practise for me as I am trying to learn it.
I've spent quite a while trawling looking for code snippets and found the following, which is slightly different in that the code is - I think - attempting to limit the length of the text that goes into the various cells, whereas I am trying to limit the number of records.  I think mine is probably simpler but am struggling to adapt it.  Before I spend hours and hours on it I wondered whether you could take a quick look and let me know whether you think its feasible?
For the basic code - to assign 2 divs to divide the records between:
<div><?php echo($text[1]);?></div>
<div><?php echo($text[2]);?></div>
The php - limits the content to 100 words per div, I think...
$words=explode(" ",$text);
$c=count($words);
echo("<div>$words[0] ");
for($i=1;$i<=$c;$i++){
if($i%100!=0)echo("$words[$i] ");
if($i%100==0){echo("</div><div>$words[$i] ");}
echo("</div>");
I can work out some but not all of it so would be very grateful for any advice,
Thanks again,
SW

Similar Messages

  • Problem with text-overflow:ellipsis

    I have a panel on my page that I am trying to stop from becoming too deep, so I have set a max-height and am expecting the text to present me with '...' when the box is no longer large enough. Trouble is, it's not working. The only time I can get CSS to activate the ellipsis is if I use text-overflow:nowrap, but I need it to wrap for three lines maximum before the ellipsis kick in.
    I have this a rule in my external style:
    .pnlchat {
              background-color: #2a2d2c;
              padding: 35px 35px 28px 35px;
              margin-bottom: 9px;
              max-height:100px;
    And this is inline CSS:
    <div class="pnlchat" style="overflow:hidden; white-space: normal;text-overflow:ellipsis;">
    What am I doing wrong?

    I like this jQuery Condense Plugin. 
    https://github.com/jsillitoe/jquery-condense-plugin
    You can configure it to truncate text to however many characters you wish.
    I have a working example below.  Click the MORE+ or LESS+ links to see it in action.
    http://alt-web.com/FluidGrid/Fluid2.html
    Nancy O.

  • What is the best file type to use when dealing with text data?

    Hello,
    I am trying to read off text information from a file stored on the phone. I am currently using a txt file to store the data; however the input streaming process is very slow. Is there another way, or file type I can use which is much quicker?
    Regards,
    vj

    do buffering in stead of reading char by char.

  • Scripting with text

    Hello. I have a few simple things that I want to know how to do in Illustrator with Java script so that I can easily automate it. I have looked at examples of scripts but most are too large and doing too many things for me to understand. If you can answer any one of these please do so.
    1) How to determine the font size of text without having text selected? All fonts in my files should be the same size so this may require just testing the first text found, possibly by just scrolling through all of the objects until text is found. I would like to have the font size to be set to a variable that I can use it later.
    2) How to set all text in document to a given font size and type? Let's say Helvetica, 6pt.
    3) How to convert all text to black? I have some files that begin with gray text but I would like to take a whole document, scroll through each text and convert them all to black.
    2) How to select everything and transform-scale? I would like to know how to scale with and without strokes and effects in script.
    4) How to select everything and center it both horizontally and vertically?
    6) How to insert the file name without extension and put into bottom right corner?
    7) How to embed an unopened file and put into bottom left corner?
    8) How to add a stroke of 1 px to inside edge of document?
    Thanks for any help you can give.

    This is probably NOT the fastest of methods of dealing with text but should be the easiest to understand… Should get you started.
    #target illustrator
    var docRef = app.activeDocument;
    with (docRef) {
    // Get a swatches color object by name
    var myColor = swatches.getByName('Black').color;
    // Get a text font object by name
    var myFont = textFonts.getByName('Helvetica');
    // Loop thru stories
    for (var i = 0; i < stories.length; i++) {
    // Then loop thru characters
    for (var j = 0; j < stories[i].characters.length; j++) {
    // Change character Attributes
    stories[i].characters[j].characterAttributes.size = 6;
    stories[i].characters[j].characterAttributes.fillColor = myColor;
    stories[i].characters[j].characterAttributes.textFont = myFont;

  • How to deal with tiny text size on the display, especially in email?

    I got a Macbook a week ago. I have been using a Windows laptop for about 5 years. Before that I had a couple of Mac desktops.
    All in all I am very happy with the Macbook. I haven't had any of the problems which have come up in these forums, unexpected shutdown, bad DVD drives, etc. One thing I love about mine which I had not seen mentioned before I got it is that the Macbook (or mine anyway) is absolutely whisper quiet. I cannot hear the hard drive doing anything. My Dell laptop sounds like a construction site in comparison.
    The main issue that is vexing me has to do with the high-res, small-size display. The combination of those two factors means that the text size onscreen is often so small that even with reading glasses I have serious eyestrain.
    Back on my Dell this was a lot easier to deal with. In Internet Explorer and Outlook Express, there are very simple settings in the menus to make text sizes better. And this is really important -- those text sizes are remembered after you close and restart the program.
    So far as I can tell, that is not true (in general) on the Mac. I find this shocking, since Apple makes such a big deal about the simplicity and usability of the Mac.
    Specifically, in Safari I went into preferences and reset the fonts. A little more complicated than in Internet Explorer but it basically works alright.
    With Apple Mail, though, it is really troublesome. There is no remember-able setting to increase the text size for viewing (that I can find). And the on-screen size of 12 point text in an incoming email in Apple Mail is just absurdly small. It makes me wonder if Apple is taking bribes from the American Opthalmology Association. This is going to ruin my eyesite pronto.
    Of course I can hit Command-+ several times when viewing each email to increase the text size to a readable size. But what a pain.
    Is there a way to make those settings rememberable?
    Otherwise I like Apple Mail. But I really prefer not to have to hit 6 keystrokes when looking at each email just to get it to a reasonable size.
    I looked at the help files for Mozilla Thunderbird. They seem to indicate that program works the same way.
    How about Eudora? Any others? Any suggestions much appreciated.
    thanks
    Paul D.
    Macbook   Mac OS X (10.4.7)   1st gen. iPod Mini 4Gb

    Hi Jeff, thanks for your careful attention and your comment.
    But I have to point out you've missed what I'm talking about.
    In OE, in the View menu (right on the menu bar, not under Tools>Options) there is a setting called "Text Size" which allows you to set the text size for viewing and composing (independent of sending). That makes it very easy to make the text easier to read on small screens. It does not "change the appearance of the formatted text so that it no longer corresponds to the intent of the sender". It merely makes the text bigger or smaller, like a magnifying glass.
    Via email I had some back and forth today with another poster here discussing this. You might be interested to see the email he sent me in which he included both Helvetica 12 and Helvetica 14. I took a screenshot of the email he sent me (from Apple Mail). When I read this email in Apple Mail with the "Message Font" set to Arial 18 (which is the size I need it set at for readability), Helvetica 14 is displayed at a smaller size than Helvetica 12.
    screenshot here: http://www.pbase.com/paulduke/image/64910338/original
    That's weird.
    Here's a test I did, and this is what really matters to me.
    I sent two emails from Windows/Outlook Express. For one I set the default composing font to Arial 12. For the other I set the default composing font to Arial 18.
    When I downloaded and read these emails in Apple Mail, sure enough, the Arial 18 font appears much bigger than the font in the Arial 12 mail.
    Then I did the reverse. I set the "Message Font" in Apple Mail prefs to Arial 12. Sent an email.
    Then I changed the "Message Font" to Arial 18 in prefs and sent another email.
    Then I downloaded both these emails into Outlook Express.
    On OE, font size is displayed exactly the same in both emails.
    So that's good -- I know that Apple Mail, whatever the setting in "Message Font", is sending some sort of "standard" font size. (By the way, I have Apple Mail set to send Rich Text Format mail). My correspondent tells me that Apple Mail doesn't send "true" HTML mail, and Outlook Express does, so perhaps that explains this.
    Okay, no big deal. But if I were a graphic designer and I wanted to know for sure that my carefully crafted email styles were getting through, I might be going bonkers because of this.
    But I'm not a graphic designer, and for the moment my concerns are assuaged.
    And I accept the wisdom of your advice to "go native". I'm trying, I'm trying...
    PD
    Macbook   Mac OS X (10.4.7)   1st gen. iPod Mini 4Gb

  • What's the deal with the swoosh sound when sending texts? IOS 5.1 needs to have an option to turn it off., What's the deal with the swoosh sound when sending texts? IOS 5.1 needs to have an option to turn it off.

    What's the deal with the swoosh sound when sending texts? IOS 5.1 needs to have an option to turn it off., What's the deal with the swoosh sound when sending texts? IOS 5.1 needs to have an option to turn it off.

    Trax and kirt are correct. I'm pretty good with technology, being an engineer and all, and I can tell you for a fact that this 'swoosh' sound (triggered by a successfully sent SMS) can NOT be disabled from ANY menu in iOS 5. The ONLY way to disable it is to flip the silent switch on the left hand side of the phone. This is extremely annoying for some people (like trax, kirt, and myself). For what we pay for Apple products and, in particular, this phone, we simply didn't expect to have to deal with such annoyances. That's why we're Mac users. Please fix this bug.
    I feel like I shouldn't have to say this but it bears repeating: turning off message sounds from the 'sounds' menu does not fix his problem. It still emits the swoosh noise. Whoever suggested this clearly didn't try it because it obviously doesn't work. Who posts a solution to a problem without knowing for a fact that their solution is correct? I find that response condescending because he writer is assuming we're not smart enough to have tried it. In reality, it's vice versa.

  • Best way to deal with a lot of text in a presentation

    I'm creating a 2-3 minute medical presentation in FCP and Motion that contains a lot of bullet text. I'm using FCP 6 and Motion 3. Is it best to create several individual Motion projects and import them into FCP or should I have I have a single 3 minute Motion project imported into FCP (which I'm currently doing). I'm having issues matching up the timing with objects in FCP and I'm constantly shifting the text in Motion. How do others deal with a lot of Motion elements, particularly text?

    Pacific Man wrote:
    All of those are great ideas. I hadn't considered bringing the completed edit into Motion. I would think that it would be slow, though. Is it a bad idea to create a single 2 minute Motion project and import it into FCP? I'm trying to figure out what is a "best practice" when doing text intensive corporate work in FCP.
    I don't think that I will have enough control over the assets in Keynote, although that's not a bad idea either.
    You would use the completed edit as the underlying layer for timing. You might or nmight not render in Motion. You could turn off or delete the timing layer, export the Motion project as a movie or just drop the .motn file on top of the FCP timeline. One way or another you must render everything together into a single flattened movie.
    You have total control over text attributes and assets in Keynote. But you do not have all fo the geewhiz effects available in Motion. which are inappropriate for a medical presentation unless this is about new designer drugs.
    Your presentation equeipment may dictate your construction methods more than anything else. Video has a limited number of pixels. Keynote really doesn't. Your text will be shown in crisp vectors. If your text is converted to a video codec, you will lose that.
    bogiesan

  • Newbie needs InDesign CS5 help: text overflow into new page

    Hello...  so, I've been using InDesign CS5 to create a document, because it transfers nicely into the pdf format.  I had written most of the stuff a couple months ago, am transferring it to InDesign via copy and paste, and then have to go in an "re-do" the bolds and italics and hyper links etc, b/c it does not transfer those things to InDesign.  I can live with that.  However, with this 10+ page document, how can I copy all my text and paste it onto 10 pages+ of InDesign, rather than piece-by-piece on a page-by-page basis?
    As of now, I have to take the first page of my original, and then copy and paste and estimate, add and subtract until the sizing is right...  and then I have to do that with page 2...  and page 3... and page 4.. and... well, you get the idea.  More than 10 pages of this!  Now, the straw breaking this camel's back is the fact that I have to go in and do a revision in one part...  so that I have to move and shift part of page 2 to page 3, and page 3 to page 4, and page 4 to page 5, and...   ahhhhhhhhhhhhhhhhh!!! 
    Is there ANY way to get text to simply overflow from one page to the next?  When you try to drag a text box down to the next page you've added, it stops at the bottom of the page and will not let you flow into the next page.  I am not particularly tech savvy and don't know coding or html or etc.  I am looking for a way to allow text to flow from one page to the next as if you were writing a Word doc.
    I have 80 more pages and 7 more documents to do this with.  Please help!  I want to cry at the thought of dealing with this in every single 8 to 12 page document I'm recreating. 

    All is not lost for autoflow even using copy paste. Here's a nifty little trick that will help you:
    ID does not require a text frame before you paste, so if you don't start with one, or don't use the one you've already drawn, ID will conveniently draw a 2" square text frame in the center of the screen if you issue a paste command. This frame will contain all of the copied text, but most of it will be overset (you'll see a red plus sign inthe "out port" on the lower right of the frame).
    Overset text can be picked up and flowed using autoflow, just as if you were placing a text file, so use the selection tool (black arrow) to select that small text frame if it isn't already selected, then click the red plus sign to pick up the overset. You should now have a loaded text cursor that looks sort of like the upper left corner of a page. DON'T click it anywhere yet.
    First press backspace to delete the small text frame (which should have remained selected). Now you can start your auto-flow holding the Shift key and clicking your loaded cursor wherever you like. All of the text, including what was visible in the now deleted frame is in the cursor waiting for you.

  • Detecting/Correcting text overflow

    Hi folks,
    Has anyone here ever been able to successfully determine if a TextItem in PS has overflow in it? Basically I am trying to write a script that replaces text in a document. If this in turn causes text overflow I would like the script to reduce the point size. I have done a few exeriments with both point and paragraph text.
    There seems to be no obvious methods or properties for determining that overflow occurs. I thought I could cheat and measure the widths and heights of the text items before I replace the text, then check to see if they are different afterwards and if so, reduce the point size.
    However in the case of point text it is not possible to determine the text width so I would have to do something like rasterize it then do the measurement. In the case of paragraph text the height and width of the text box do not change if there is overflow.
    Does anyone have any better, more efficient ideas?
    cheers
    Ben

    Many thanks Paul, that method works fine for point text.
    As for paragraph text I think I have come up with a solution.
    If we convert a paragraph text layer into a point text layer by doing something like:
    ArtLayer.textItem.kind = TextType.POINTTEXT;
    and overflow has occured, photoshop will clip out the overflowed text.
    So after converting the paragraph to point text we need only check that our
    text contents matches the text we are trying to replace it with.
    These solutions are a both work arounds, it would be nice if there was a proper
    method or property to deal with this. Maybe I will make a dear adobe entry.

  • Apple wireless BT keyboard with TEXT MESSAGING?

    I know that I can sync the Apple wireless bluetooth keyboard with the my iPhone 4, but I just want to verify that it will work with text messaging, in addition to the usual email, etc. apps. Frankly, that's the main reason I need it. I messed up my elbow from texting so much. I don't want to, but I MUST text a lot, so I figured I'd get the keyboard to save elbow injuries. Sounds silly -- lugging around a wireless keyboard in order to text... but it actually wouldn't be so bad. I do a lot of texting from my house, anyway.
    One more thing -- The wireless keyboard can only be paired with one device at a time, right?

    The Bluetooth keyboard will work with the messaging application.
    I know I always turn the Bluetooth off on the iPhone so when I pull out my keyboard it is a bit of a pain in the ***. Granted I only use it with long emails on the road that would take an hour to write with the keyboard on the iPhone, so it's not too bad. The iPad dock keyboard will also work with the iPhone and iOS4.x so if you need a keyboard and don't want to deal with the Bluetooth than that is an option too, just a thought.
    As far as the Bluetooth keyboard goes it can only be paired with one device at a time.

  • Expanding design elements with text?

    I'm developing the following page of a client's site:
    http://www.dancingeyes.com/prackart/profile.html
    and I'm wondering if it's possible to have a specific section of the page layout expand vertically as needed (for text overflow due to browser font size, etc.), and yet move sections below it accordingly?
    For example, on the page linked to above, if for some reason the text in the upper section (the "Family Roots - The Early Years" paragraphs in white over gray background) were to need more vertical space due to larger font size or added content, the medium gray background will correspondingly expand downward to accommodate (as will the outer darker gray browser fill shape, as I want it to). The problem is that it just overflows and overlaps the black-on-white text below ("Working with Clay", etc.), rather than pushing all that content down correspondingly too. Is there some basic layout structure I can/should use to achieve this? Can separate horizontal sections of a layout be made to expand and contract independently, depending on browser/user settings/fluctuations?
    My first hunch was to put all the black-on-white text below in the footer, but that didn't quite work.
    Any ideas/tricks/suggestions for a new Muse user?
    Thanks!

    The first thing to check will be objects with intersecting boundaries. Try to place objects in such a way that they either land above or below the other object or is totally contained inside the other object like a rectangle.
    Any kind of intersections or incorrect overlays can cause the content to be placed in a fixed position rather than flowing in relation to the content above it.
    Cheers,
    Vikas

  • Eyedropper issue with text color (CS6 / Win7)

    Hello there,
    I'm dealing with many bugs with my CS6 (same as my colleagues), but all of them are already here, so no need to create new topics. But this one is kind of new to me and I didn't find it here.
    Problem is picking-up a color for text from various objects (even other text) holding shift. In previous version holding shift with eyedropper took your desired color without any other attributes and put it in stroke / fill depending on what you've active. But now it doesn't work. It just show me the selected color in color selection, but it won't apply to my text.To avoid picking new attributes from other text, I've to save desired color, select my text I want to have in this color and apply .. And this is not the way I want to work with my illustrator
    Maybe I forgot to set something in options, but I don't know where. Would be glad for any help
    Honza
    (not native speaker)

    It's been discussed already here and appears to be a bug.

  • Problem with text resizing and moving

    After much pain with this issue, I'm going to ask for help.
    The whole issue(s) resolves around text upsizing, changing and moving in Muse.
    No amount of grouping, layering and locking has stopped this issue for me.
    I don't have divs that are a pixel off and whatnot. This happens even when I have a blank site and I test it (as seen in the example pic below).
    The majority of the time, this is an issue when viewing Muse created sites on Android, although text does move when viewed on iOS.
    Example 1:
    I have a square div. I put text in the div that I want to stay contained in the div. Basic right?
    View site on browsers and iOS devices it generally plays by the rules (although not always, there are some movement going on). When viewing this example text and div on an android device, the text resizes larger. This results in the text overlapping the div and moving EVERYTHING below it down. This makes it impossible to tightly design anything for a website.
    I know Android has options within it for users to set text viewing size, but this worthless from a web designer standpoint. That is something I can't control.
    Example 2:
    I have 1 text field and set the typeface to 15. There is nothing else on the page, just a background image (under "Fill"). Viewed on browsers and iOS looks fine. When viewed on Android this text balloons to some enormous size (25+) that makes the website utterly useless. This random resizing makes it impossible to design to. 
    Example 2.5:
    I take that same text from example 2, copy it into 2 of the same size text fields. They are placed next to each other, taking up the same width as Example 2. It now looks like 2 columns of text. Set the typeface to 15 again. I view it on Android and get the resizing issues from example 1 not example 2. It's noting to the extent of example 2 but like example 1, it still changes enough to ruins any design I'm trying to accomplish.
    Is there any place in Muse to lock the text? I don't want to make the text into an image (obviously).
    I been dealing with this in Muse for 6 months and haven't been able to find anything online or in forums about. I understand with the bevy of platforms out there nothing will look the same across the board, but right now I don't see how I can continue working with this issue.
    Am I the only one dealing with this?
    Thank you for any assistance.

    Welcome to the annoying realities of working with text on websites... Nothing you describe is unique to Muse.
    Every browser has it's own text engine and thus each line breaks text differently. Even the exact same web page on the same computer with the same fonts will sometimes result in different line breaks in different browsers, or even in different versions of the same browser. It's just a side effect of the nature of determining a line break, where even the most miniscule difference in calculations can result in an entire word fitting, or not fitting.
    There are two "tools" that are especially important to understand and use effectively in order to create designs that work as effectively as possible with the variation in line breaks from one site viewer to the next.
    Text Frame Height Always Matters
    If a text frame is drawn to the exact height of the text wthin the frame, then any increase in the number of lines of text due to changes in line breaks will result in the text frame growing and other objects below the text frame being moved down.
    If a text frame is drawn larger than the height of the text then when line breaks change the text frame won't grow unless the changes in line breaks are severe enough to result in the flowed text being taller than the text frame was originally drawn.
    If you resize a text frame smaller than the text within the frame in Muse Design view, the frame will snap back to be large enough to accommodate the text, but a dotted horizontal line will appear within the text frame indicating the "minimum height" for the text frame. If line breaks change in the browser the text frame will grow or shrink in height down to the minimum height indicated by this dotted line.
    Careful sizing of text frames can go a long way to creating a design that will continue to work well even when line breaks, and thus text frame heights change.
    Grouping Has Consequences
    As part of the output process, Muse collections the objects you've drawn into a hierarchy of horizontal groupings, vertical groupings, or stacks. When line breaks change in different browsers and text frames change height, when the text frames are located in this output heirarchy determines what impact the change in height has on other objects (if any).
    For example, if you have a layout that looks like a 2x2 grid of text frames, by default Muse will interpret it to act as two colums. So if the first text frame gets taller it will push the text frame below it down, but won't impact the location of the two text frames in the second column.
    If that's not the behavior you want, the way to tell Muse to treat things differently would be to group the two items in the first "row". This would cause the top to to be treated as a horizontal group. If anything in the group grows taller than the group, the group resizes taller and pushes the objects below it down. Thus if the top to items are grouped, if either one of them grows taller than the group it would push both the text frames below downward.
    The 2x2 grid is just a simple example of the concept. In most cases you don't have to do anything special to get the behavior you want, but it is important to understand grouping has this ramification. Grouping an arbitrary set of objects on your page can result in undesired behavior when text frames resize in the browser.
    For the Andriod screenshot you've provided, I don't have an immediate explanation. For us to explain what's shown we need to know the exact browser, browser version, Android version and device the screenshot is for. It would also be immensely helpful to have the URL for the page, so we can attempt to reproduce what you're seeing and view the exact code involved.

  • Dealing with null values from a database (easy?)

    I'm sure this should be a simple question :
    I'm creating a dynamic dropdown of my companies products that once a product is selected draws values (links) from a database and displays them (links to User guides, FAQs etc).
    My problem is dealing with blank entries in the database - i.e. if a product doesn't have a User guide I've left the database blank.
    I'd like to show 'none' or 'not available' if the entry is blank rather than the 'null' I currently get.
    I'm sure it should be a straightforward if .... else .... but I'm struggling and would appreciate any help,
    Many thanks,
    Mo

    Thanks for the message, the cut down piece of code I'm using for the output is:
    <%
    while (rs.next())
    //header row
    out.println("<tr bgcolor='#666666'>");
    out.println("<td><font style='font-family:arial;color:#ffffff;font-size:10px;'>Product Name</font></td>");
    out.println("<td><font style='font-family:arial;color:#ffffff;font-size:10px;'>FAQs</font></td>");
    out.println("<td><font style='font-family:arial;color:#ffffff;font-size:10px;'>Technical Information</font></td>");
    out.println("</tr>");
    //results
    out.println("<tr border='1' bordercolor='#CCCCCC' bgcolor='#FFFFFF'>");
    out.println("<td><font style='font-family:arial;font-size:12px;font-weight:bold;'><a style='text-decoration:none' href=" + rs.getString("ProductURL") + " target='_blank'><font color='#669999'>" + rs.getString("ProductName") + "</a></td>");
    out.println("<td><font style='font-family:arial;color:#000000;font-size:10px;'>" + rs.getString("FAQs") + "</td>");
    out.println("<td><font style='font-family:arial;color:#000000;font-size:10px;'>" + rs.getString("TechInfo") + "</td>");
    out.println("</tr>");
    stmt.close();
    conn.close();
    %>
    It's the FAQs and TechInfo strings I need to use the statement on - if there's no entry show 'none',
    Thanks again,
    Mo

  • How should I deal with exceptions?

    I have three possible choices that I see:
    (1) Deal with them in an exception handler class. Use try/catch/throw in the class. Have throw call a method in the exception handler class.
    (2) Use try/catch/throw and handle the exception in the same class where the exception occurs.
    (3) Use throws and deal with the exceptions in the mediator class. The mediator class allows for communication between my FileHandler class, my DBHandler class, my UIClass, and any future classes.
    Note that for each exception, I want to call a method in the UI class that displays a message to the user about the error so it can be debugged and a method in some class to write the error to an error log text file.

    Handling
    can mean as little as logging the error.I'm gonna have to go ahead and disagree with youthere, %.
    Disagree with me? This cannot be tolerated! 8)Watch it, lest yet get yer ass smote.
    Except for where you're intentionally
    smothering exceptions in finally blocks, or maybe
    just recording an InterruptedException, justlogging
    it is little better than smothering it. So what about unchecked exceptions? Are these .NET
    demon spawn?I let unchecked exceptions bubble up. I'd expect an appserver to catch and log them, so that a bug in one app doesn't cause the whole server to barf. But other than that kind of situation, these are exceptions that you usually shouldn't try to handle.
    >
    I'm curious, since this thread is so much about
    handling exceptions. What do people do besides
    report them? If you get a SQL exception, what
    recovery actions are you taking? Anything that I'm
    missing?Usually it just bubbles up, or it's a wrapped in a more appropriate or layer-specific exception and rethrown. Sometimes there might be a retry, but usually the exception bubbles up to the higher layers and gets presented to the user as something like, "Could not connect. Retry?" What I hate to see is this:
    try {
        // get stuff from the DB
    catch (SQLExeption exc) {
        // log it
    // Continue here (where "here" may be the calling method)
    // with no idea that anything went wong.If you do that, you might as well not have an exception mechanism. Just go back to return codes and don't bother checking them.

Maybe you are looking for

  • Could not synchronise IPad 3 and MacBook pro (retina 15)

    Good day! i have a very strange problem. When i am trying to synchronise my ipad with Mac ITunes freezes(not responding) So far, i have tried many solutions but nothing happened to solve my issue. restore ipad default configuration(full format) reins

  • My left shift keyboard not working

    APPLE support team and all. please help me.  any solution to solve this problem ? when i click left shift now working. for right its working well.

  • Help with uploading large video to ipad2

    Hi guys, I'm using the ipad 2 with camera connection kit to import videos from a Mobius camera which is working fine for videos less than a minute long but when I try to import anything larger (2 minute) it won't work? There is approx 6gig space on t

  • AGP replacement

    I have a hp laptop.Can i replace the agp crd/graphics card of it with the higher one. the full specification of the laptop is given below Product Name g6-2125tu Product Number C5H81PA Microprocessor 2.5 GHz Intel Core i5-3210M Microprocessor Cache 3

  • Keyboard is not working, even as an external device.

    Hello, I'll be very gratefull if you can help me with this. I had some splashing issue with my cup of coffee and my laptop the other day, and then I had my Keyboard working in any way possible except for the right one. Like anyone would expect I boug