Wrapping question....

Here is a page -
http://66.165.80.209/jargon.php
The content is being pulled from a database, and then scanned
for a set of
keywords. When one is found, that word is highlighted, and
the word's
definition is placed in a pop-up container that is shown as
you mouse over
the word.
The visibility of that definition span is controlled by this
rule -
.jargon a:hover span { visibility:visible; }
My questions are -
1. Why isn't this working in IE6?
2. Note the "rutrum" that is highlighted on the left margin
of the 7th line
down (and the ipsum that is several lines below it - if you
don't see them
there, adjust your font size until they are) - why is the
definition box not
properly positioned? It's as if that word were on the right
margin not the
left.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================

This is a multi-part message in MIME format.
------=_NextPart_000_0043_01C75748.481165B0
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Yep, on checking again, the only thing unbalanced is me.
It does not work in FF2 either.
"Murray *ACE*" <[email protected]> wrote
in message =
news:[email protected]...
Definitely not unbalanced. It works OK in IE7, just not in
IE6.
I also note that it doesn't work in Safari2x. Dang. Well the
first =
one=20
works, but not the others. Hmmm....
--=20
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
"Frozen Carp"
<[email protected]> wrote in =
message=20
news:[email protected]...
Your spans appear to be nested and unbalanced.
"Murray *ACE*" <[email protected]> wrote
in message=20
news:[email protected]...
Here is a page -
http://66.165.80.209/jargon.php
The content is being pulled from a database, and then
scanned for a =
set of
keywords. When one is found, that word is highlighted, and
the =
word's
definition is placed in a pop-up container that is shown as
you =
mouse over
the word.
The visibility of that definition span is controlled by this
rule -
.jargon a:hover span { visibility:visible; }
My questions are -
1. Why isn't this working in IE6?
2. Note the "rutrum" that is highlighted on the left margin
of the =
7th=20
line
down (and the ipsum that is several lines below it - if you
don't =
see them
there, adjust your font size until they are) - why is the
definition =
box=20
not
properly positioned? It's as if that word were on the right
margin =
not=20
the
left.
--=20
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) =
Technotes
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
------=_NextPart_000_0043_01C75748.481165B0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.6000.16414"
name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>Yep, on checking again,
the only thing =
unbalanced is=20
me.</FONT></DIV>
<DIV><FONT
face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>It does not work in FF2
either.</FONT></DIV>
<DIV><FONT
face=3DArial></FONT> </DIV>
<DIV><FONT
face=3DArial></FONT> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT:
5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Murray *ACE*" &lt;<A=20
=
href=3D"mailto:[email protected]">forums@HAHAgreat-web-sigh=
ts.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:[email protected]">news:ernc8d$7ug$1@forums=
.macromedia.com</A>...</DIV>Definitely=20
not unbalanced.  It works OK in IE7, just not in
IE6.<BR><BR>I =
also note=20
that it doesn't work in Safari2x.  Dang. 
Well the first one =
<BR>works, but not the others. 
Hmmm....<BR><BR>-- <BR>Murray --- =
ICQ=20
71997575<BR>Adobe Community Expert<BR>(If you
*MUST* email me, don't =
LAUGH=20
when you do =
so!)<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR><A=20
=
href=3D"
templates.com</A>=20
- Template Triage!<BR><A=20
=
href=3D"
> - DW=20
FAQs, Tutorials &amp; Resources<BR><A=20
href=3D"
http://www.dwfaq.com">http://www.dwfaq.com</A>
- DW FAQs, =
Tutorials=20
&amp; Resources<BR><A=20
=
href=3D"
com/support/search/</A>=20
- Macromedia (MM) =
Technotes<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR><B=
R><BR>"Frozen Carp"=20
&lt;<A=20
=
href=3D"mailto:[email protected]">coreyBLAH@YADA=
YADAYADAyouneedawebstore.com</A>&gt;=20
wrote in message <BR><A=20
=
href=3D"news:[email protected]">news:ernc0l$7o0$1@forums=
.macromedia.com</A>...<BR>Your=20
spans appear to be nested and
unbalanced.<BR><BR>  "Murray *ACE*" =
&lt;<A=20
=
href=3D"mailto:[email protected]">forums@HAHAgreat-web-sigh=
ts.com</A>&gt;=20
wrote in message <BR><A=20
=
href=3D"news:[email protected]">news:ernafj$5q2$1@forums=
.macromedia.com</A>...<BR> =20
Here is a page -<BR><BR>  <A=20
=
href=3D"
/A><BR><BR> =20
The content is being pulled from a database, and then
scanned for a =
set=20
of<BR>  keywords.  When one is
found, that word is =
highlighted, and=20
the word's<BR>  definition is placed in a
pop-up container that =
is shown=20
as you mouse over<BR>  the
word.<BR><BR>  The visibility of =
that=20
definition span is controlled by this rule
-<BR><BR>  .jargon =
a:hover=20
span { visibility:visible; }<BR><BR> 
My questions are =
-<BR><BR> =20
1.  Why isn't this working in
IE6?<BR>  2.  Note the =
"rutrum"=20
that is highlighted on the left margin of the 7th
<BR>line<BR>  =
down (and=20
the ipsum that is several lines below it - if you don't see
=
them<BR> =20
there, adjust your font size until they are) - why is the
definition =
box=20
<BR>not<BR>  properly
positioned?  It's as if that word were =
on the=20
right margin not <BR>the<BR> 
left.<BR><BR>  -- <BR>  =
Murray=20
--- ICQ 71997575<BR>  Adobe Community
Expert<BR>  (If you =
*MUST*=20
email me, don't LAUGH when you do so!)<BR>  =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR> =20
<A=20
=
href=3D"
templates.com</A>=20
- Template Triage!<BR>  <A=20
=
href=3D"
> - DW=20
FAQs, Tutorials &amp; Resources<BR> 
<A=20
href=3D"
http://www.dwfaq.com">http://www.dwfaq.com</A>
- DW FAQs, =
Tutorials=20
&amp; Resources<BR>  <A=20
=
href=3D"
com/support/search/</A>=20
- Macromedia (MM) Technotes<BR> =20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR><BR><BR><BR></B=
LOCKQUOTE></BODY></HTML>
------=_NextPart_000_0043_01C75748.481165B0--

Similar Messages

  • Q10 Browser Word Wrap Question

    When in mobile browser, how do I get to word wrap.  If zoom out the words are too small, if zoom in have to scroll horizontally to read full sentences. Very annoying.  Thanks
    Chief
    Solved!
    Go to Solution.

    Hey chief9900,
    Welcome to the BlackBerry® Support Community Forums.
    The word wrap feature  is currently not available for the BlackBerry Q10 Browser, one option is to use the reader mode feature, see here:
    http://docs.blackberry.com/en/smartphone_users/deliverables/50635/mwa1334235028048.jsp
    Let me know if you have any other questions.
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • DW CS3 Text wrap question??

    Hello, can you guys help me figure out why the text is wrapping under these photos?  http://www.cvbcmanteca.org/ministries.htmlThe site is based on a template, but I needed to add more of the same on the page, and just went into the code and copied the code and inserted.  I thought it would have duplicated the look, but  for some strange reason, text is wrapping below the image under the "Filippino Ministry" and "fit ministry" section about middle down the page.  How do I keep it in the area to the right?
    Thanks Guys

    I'm sorry. It was late when I posted my first reply and I am dealing with a terrible cold right now so I didn't notice the error my coding took on when I posted it.
    There are two ways to prevent this:
    As stated above, you could add a number of "spaces" which read as " &-n-b-s-p-;" (without the quotes and dashes) as follows:
    ...and get involved in learn relevant lessons                                          from God's Word.
    , or add the pixels to the bottom margin of the images in the style sheet as follows:
    .category img {
         margin-right:15px;
            margin-bottom:20px;
         border:none;
         float:left;
    Hope that helps a little more. Adding the 20px to the stylesheet does the trick and is by far the easier of the two. (see attahced result)

  • GIFT question import - word wrap

    I've created an excel macro spreadsheet to export all of my questions to the GIFT text format.  Some of the answers are single sentence, maybe 100 characters max, some are single words, etc.
    The problem is when I import the question file, the answer text fields are not adjusting height to accommodate the text length. Is there a way to have Captivate 7 handle word wrapping question text without having to manually adjust the height of each answer text field?

    Did you get an answer to this question? I have the same question.

  • Textflow and flowComposer word wrap

    Hi
    I have a word wrap question re...
    I have a textflow that I'm splitting into multiple sprites (pages). I also have a columnCount of 2, so the text fits into two columns, and then continues onto the next page.
    Here's an example of the text...
    testString+='<p ALIGN="LEFT">Description</p><textformat blockindent=10>Product details with decent length that that overruns the column line '+i+'</textformat>';
    ... and I've concatenated it 500 times so I have a decent length test string to put into the textFlow.
    Which comes out like (imagine 3 lines per page)...
    Description                                                                                                Description
      Product details with decent length that that overruns the column line 1            Product details with decent length that that overruns the column line 4
    Description                                                                                                Description
      Product details with decent length that that overruns the column line 2            Product details with decent length that that overruns the column line 5
    Description                                                                                                Description
      Product details with decent length that that overruns the column line 3            Product details with decent length that that overruns the column line 6
    (page break)
    Description                                                                                                Description
      Product details with decent length that that overruns the column line 7            Product details with decent length that that overruns the column line 10
    Description                                                                                                Description
      Product details with decent length that that overruns the column line 8            Product details with decent length that that overruns the column line 11
    Description                                                                                                Description
      Product details with decent length that that overruns the column line 9            Product details with decent length that that overruns the column line 12
    (etc for about 10 pages until we get to the 500th pair)
    It works nicely, however, I'm wondering how you set it up to NOT word wrap on 'Product details with decent length that that overruns the column line 1' - so in other words, cut that line of if it hits the column edge?
    I tried LineBreak.EXPLICIT, but that only allows one page to be created, and no word wrapping occurred.
    Or is there a way to set it up within an html tag?
    Thank you.

    kethryvalis wrote:
    The "Name" text bounding box that I've created is set to a specific height/width (and needs to stay that way) with a font size of 94.22 pt; however, some of the names are REALLY long and are too big for the bounding box.  They word-wrap.  When I run the "data merge," I need Photoshop to automatically resize the text in the bounding box so that it doesn't word wrap.
    That is not possible its a contradiction resized text would not be font size 94.22.  Data driven graphics as far as I know does not have any text re-sizing feature.  Your template needs to be sized to support the longest text possible.   Text length need to be limited to fit within the space provided in the template psd file.
    It may be possible to write a Photoshop script to resize text layers to fit within some bounds. However is not possible to explain to you thoroughly in simple terms that would enable you to write the script. You most likely know the logic needed to do the resize and really don't need it explained to you.   What you lack is Photoshop scripting knowledge.  You have no script programming skills.  Learning a supported scripting language takes time and of top that you need to learn Adobe Document Object Model and it limitations and about Adobe's Scriptlistener Plug-in that records Action Manager scripting code. Developing Photoshop scripts is not an easy user feature like Adobe Actions Palette recorder/editor. Scripts need to be designed and programmed and debugged.
    Scripts are easy to use like actions and are more powerful then actions. You most likely have use some that are shipped with Photoshop,  Image Processor, Fit Image, Photomerge, lens correction  etc. Find your Photoshop version version Presets\Scripts folder and open any of the  .jsx file in the folder in a text editor see if you can understand somewhat what is written.  If you can you may want to learn scripting Photoshop.  Most Photoshop users never write a Photoshop script.

  • Question for experts/ wrapping - data pump

    Hello All,
    In am using ORACLE 10.2.0.4.0
    i have an issue while export / import wrapped procedures:
    I have some procedures / packages that are wrapped and when i do export for their related schema and then import it to the database, i got the below error
    Compilation errors for PROCEDURE PROC_NAME
    Error: PLS-00753: malformed or corrupted wrapped unit
    Line: 1
    Text: CREATE OR REPLACE PROCEDURE "PROC_NAME" wrapped
    After i did many tests on this scenario i Noted that:
    This error is not appearing on all procedures, there are some that will be corrupted after the import and some will not be corrupted.
    After i did the normal import export, i found that the character set of the imp/exp is different then the one of the database, so i changed the character set of the database to be the same as the one used by the import, i redo my tests and i found that this solved the issue of normal imp/exp, so now and if i am doing normal exp/imp the recompilation of procedures will not fail after the normal old import. but at this stage the imp/exp character set has changed again.
    The character set of my db was : AR8MSWIN1256 and when i did exp/imp it was for exp /imp AR8ISO8859P6, so i changed the one of my db to AR8ISO8859P6 , after changing the database character set to AR8ISO8859P6 the recompilation was working fine for the normal exp / imp, but now the character set for import/ export changed to AR8MSWIN1256 !! why ?
    The Data pump export import was not solved even after changing the character set of the database, the procedures were imported with errors and it was fixed after recompiling it.
    My issue that i have too many clients and i am not able always to change the character set of the database because i may face ERROR "ORA-12712: new character set must be a superset of old character set"
    Hope the above description is clear,
    Any suggestions or ideas to solve the issue of wrapped procedures with expdp/impdp? can i force certain character set for the expdp/impdp ? knowing that with release 10.2.0.1.0 the expdp/impdp is totally not working with the wrapped procedures

    Any ideas?

  • Buffered Reader Question about wrapping around another Reader

    I'm reading about BufferedReaders and in the API the following paragraph reads:
    In general, each read request made of a Reader causes a corresponding read request to be made of the underlying character or byte stream. It is therefore advisable to wrap a BufferedReader around any Reader whose read() operations may be costly, such as FileReaders and InputStreamReaders. For example,
    BufferedReader in = new BufferedReader(new FileReader("foo.in"));
    I was wondering if somebody could explain their reasoning in slightly less complicated terms...I can't really figure out what their reasoning is. Thanks

    If every time you wanted to read a character, you had to talk to the hard disk device, it would be very slow. This is because communicating with the disk is thousands of times slower than communicating with main memory.
    The buffered reader reads in chunks, buffers those data, and allows you to request them one character at a time.

  • Many questions wrapped up in one

    I am currentlt rearranging our house due to new baby on the way and would like answers to the following questions:
    1. I am looking to replace my iMac G4 17" with a Macbook - how can I transfer all my photos (in iphoto), files and information over?
    2. I would like to link the Macbook to an LCD TV, how can I do this and does the TV (not yet bought) need to have any specific connections?
    3. I want to run my iPod through a stereo system (something like the Monitor audio stuff) which could also play DVD's linked to the TV.
    4. Am I better going for the airport extreme or express for wifi connection, and can I link an HP 4120 printer wirelessly and to a Dell PC??
    5. Will the Macbook be a good replacement for the iMac, as I seem to hear some reports about quality, and the iMac has never missed a beat although feeling quite slow now?
    As you will no doubt get the idea I am looking to save space and still have a decent entertainment system in the house, my apologies for the long winded questions but any answer would be much appreciated.

    Hi MrAPPO, welcome to apple forum.
    1. I believe you can use migration assistant
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh2333.html
    2. Buy an appropriate adapter ($19.99) from apple.
    ~mini DVI to VGA (for vga interface on your LCD)
    ~mini DVI to DVI (for DVI interface)
    ~mini DVI to video (for TV or RCA / svideo interface)
    3. I believe iTV from apple will serve that need better rather than macbook.
    4. Honestly never try HP4120 wirelessly, but you can connect to dell if you share and sets both mac and dell properly.
    http://docs.info.apple.com/article.html?artnum=19652
    http://docs.info.apple.com/article.html?artnum=107998
    5. No complaint for my "early" black macbook quality, and if there is some, Apple pretty much already solved it.
    But if you already familiar with iMac, why not stays with iMac and go with iMac intel.
    Hope this help.
    Good Luck.

  • Wrapped Code - Question

    We wrap our code in 10g and 11g database for production installations using regular wrap command provided by Oracle.
    Is there a way to know what version of the wrapped code it is currently running. Meaning is there a way to embed the version number string in the wrapped code to be able to view it later what version of wrapped code is currently running.
    Thanks

    Anything after the procedure/function signature is wrapped if I remember correctly. So you may be able to do something like this:
    CREATE OR REPLACE PROCEDURE /* VERSION X.XX */ TEST ...HTH!

  • Wrap images with h1 question

    Is it OK to wrap images on my page with h1 formatting?
    http://www.lash-it.com/faq/usetips.html
    I'm thinking I could wrap all the info below <h2>USE TIPS</h2> with <h1>, and then create an h1 img rule to center the images and eliminate my class="center_image" rule.

    What Murray is saying, the future in web design is going to be more structured using semantics markup. If we regard the page that you have linked us to as a newspaper, we have our heading complete with logo (header), our index (nav) to find our way around, we have notes or comments (aside) that have no direct relevance to our article and our article (article).
    The following is the construction of the page (document) for our web site
    <doctype />
    <html>
         <head>
              <meta />
              <title></title>
              <link />
              <script></script>
         </head>
         <body>
              <header>
                   <h1></h1>
                   <img />
              <nav></nav>
              <aside>
                   <h2></h2>
                   <p></p>
              </aside>
              <article>
                   <h2></h2>
                   <img />
                   <p></p>
                   <section>
                        <h3></h3>
                        <img />
                        <p></p>
                   </section
              </article>
              <footer>
                   <p></p>
              </footer>
         </body>
    </html>
    There are variations to the above, but I think that it shows the hierarchy in using semantic markup and the use of h-elements that Murray was referring to. In versions of html<5, the elements would be written as divs as in <div id="header">. In html5 we can now use <header>. This not only gives the document a cleaner look, but it gives the various parts of our document a meaning. This is important (or will be) for the likes of screen readers and search engine bots.
    And to get back to your original post, don't use a header element to wrap the image, the image can be turned into a block element using display:block if required to do so.
    Gramps

  • More of a complaint wrapped around a question

    My Airport Utility requires an ethernet connection to find my Airport Extreme. This is inconvenient. Is it normal? Is it some sort of security limitation? What if I had a few others around as range extenders?

    Allan Leedy wrote:
    My Airport Utility requires an ethernet connection to find my Airport Extreme. This is inconvenient. Is it normal? Is it some sort of security limitation? What if I had a few others around as range extenders?
    I can think of three reasons why a Mac would be unable to connect to an AirPort Extreme without an Ethernet cable: (1) The Mac is too far away (as you guess). (2) The AirPort Extreme is in such a state so that it's not broadcasting a network name. (3) The Mac doesn't have the AirPort Extreme's network selected under the AirPort menu bar item.
    You should be able to test the first possibility by putting your Mac next to the AirPort Extreme. As for the second option, if you're just starting to configure your AirPort Extreme, it will have a strange network name that may start with "Apple" (I can't remember) and ends in the last characters of its MAC address, as in "Apple Network 148def". If you see such a network name, select it. The third option should be treatable by doing a reset of the AirPort Extreme.

  • A rant about C with a question at the end. :P

    C is okay. It's just really hard to understand.
    So this is my rant about it. It starts out by listing where I've been in terms of programming and then lists my difficulties with C itself.
    I discovered C many years ago. I'm not too sure how. All I know is that for many years I've wanted to know what this C thing was all about, but had no way or knowledge of how to. I didn't really know anybody before I got the 'net last year, so asking someone else was out of the question. Plus, I wouldnt've known what question(s) to ask.
    As I became more proficient with the whole technology thing, I began to go to the local libraries nearby and use their free internet access to look stuff up. But I didn't get the idea to do any research about C, most likely because I didn't have the mental capacity to plan well and my access was once or twice weekly at best. Plus, the only computer I had at home was 66MHz and ran DOS, and I only knew BASIC around that time which I was comfortable and content with, so wasn't looking for a new language. I think I knew about assembly language but didn't pursue it if I did.
    A couple of computer upgrades later, I finally got the 'net at home and began to see the convenience of being able to spontaneously look something up when I wanted to as good, rather than weird. Ideas gradually began to pop into my head that I'd run off and look up, and one day C became one of them. So I did some research on C and finally began to learn what it was: an incomprehensible mess of manually managed memory and low-level trickery. Since I knew a fair bit about assembly language now I decided C was worse than asm (and I had no chance of learning asm back then), and left it at that.
    Being the BASIC coder I was (pun intended), I found the syntax and concepts over my head by several miles. But the fascination never died, and kept poking at me again and again. And I just had to keep forgetting about it.
    I moved on from QuickBASIC, which I'd been using for just about everything, to FreeBASIC, which was in such a beta state when I tried it, I disliked it enough to move on and discovered PHP.
    PHP has been called the BASIC of the 21st century, and I can understand why. There are typically at least 10 ways to do something whether in principle or method, multiple functions do the same or an equivalent task, and overall it just doesn't look like a good language. But beyond all that, PHP made sense to me. As I went along many of the things I expected to perform in a given way performed in said way, which was a huge confidence boost. The model it followed might have been convoluted, but something inside my head "clicked" when I saw PHP, so I liked it, since I could understand it easily.
    But recently, I found myself hitting too many walls. I wanted to get into graphical software development, and none of the graphical extensions PHP had available would work for me. PHP-GTK did work but prevented PHP from outputting anything as an Apache module, without throwing a single error anywhere. PHP-QT wouldn't compile on my system. PHP-TK did compile, but both segfaulted when any tk_* function was called and also exhibited the Apache module issue.
    So I decided then and there that I needed to switch languages.
    The problem was, my current machine happens to be so slow that a GIMP operation that executes in 6 seconds on the lowest generation AMD CPU from 4-5 years ago will execute in 38 seconds on mine. I have no idea why; the machine is, after all, 2.66GHz.
    Although PHP is pretty snappy on my system, I don't know how other languages would fare and don't really want to risk the experiment; I want to switch to a language I know will be as fast as, or faster than, PHP. So I decided that a compiled language would have to be it, since I regarded PHP as the fastest language I knew. I was probably wrong, but whatever.
    So I set my mind to understanding C. I'd asked around online before, and someone took pity on me and explained the basics of C and I did my best to understand them. This was great for a couple of days, but didn't last all that long unfortunately. So I asked around again, dreading their responses, and with good reason too: most of the tutorials I read often left me boggled and flew over my head at one point or another, which didn't help.
    But I got some dreaded tutorial links, and did my best to read them. It took me a couple of weeks to finally convince my brain to understand the point of a language that utilizes variables that doesn't contain any data, but instead references to other variables. I eventually grasped the why, but am still having quite a hard time understanding the how.
    So then, after that initial hurdle, I moved onto other topics. Or rather tried to. I quickly discovered that C interconnects some of its issues so deeply that it's hard to learn one thing at a time, move on and learn the next thing - how I best learn. I don't create paths very well by reading information; I create those paths by staying away from information and letting it slowly process in my mind. But to actually remember it in the first place, it needs to make sense, and C doesn't make sense because things are so interconnected and... we come full circle.
    To be honest, after about a fortnight of trying to understand pointers, I still don't understand them. I've read what is probably the best the web has to offer about pointers. Has it helped? Not really.
    Either the documentation:
    - is too terse and I have to slow down, risking losing interest in what I'm reading
    - skips over vital points or assumes I know Pascal or some other language
    - is hard to understand or is poorly written
    - puts segments in the wrong order, so I don't understand everything something might depend on before I reach that something
    ...and in general I either give up on reading the documentation, give up on C or just cry. I've done the 3rd a few times, the 2nd quite a few times and the 1st pretty much as many times as I've read documentation.
    So what are my issues with C?
    Let me address the two I can think of right now:
    Pointers aren't addressed "simply"; if I declare a pointer to int named x I have to use *x to access what x points to, rather than use *x to get x's location, like one does with non-pointer variables where & is used to get an address. It'd be nice if we used &x to get x's value if x wasn't a pointer and *x to get x's value if x was a pointer, rather than use this convoluted scheme.
    Also, I've heard that it's a common misconception that C handles arrays natively. Elsewhere, I've heard that strings are merely arrays of char. I can understand the 2nd, but what do I do with the 1st?
    I do understand that if I say printf("%d\n", x[1]) I'm effectively saying x++; printf("%d\n", x), but I don't understand how this fully works. For example, let us consider the following code:
    char *filename = "<insert file here>";
    int i;
    struct stat filebuffer;
    int status;
    FILE *handle;
    handle = fopen(filename, "r");
    status = stat(filename, &filebuffer);
    char *buffer = malloc(filebuffer.st_size);
    for (i = 0; i < filebuffer.st_size; i++) buffer[i] = fgetc(handle);
    printf("%s\n", buffer);
    You'll of course notice the array notation. Do I understand why if I replace said notation with something to the effect of...
    buffer++
    buffer = fgetc(handle);
    ...the program segfaults? No. Likewise, I don't understand why the...
    buffer++
    *buffer = fgetc(handle);
    ...in the loop does work, printf("%s"...); causes segfaults and printf("%d"...); does not.
    Another thing I found is that declaring a char *, filling it with data, and then using memcpy on said char *, the program works fine, but if I declare for example char x[1] = "hi"; the compiler will shout at me for not allocating enough arrays. Only while writing this did I realize that the 2nd element is for the null byte.
    Suffice to say that C confuses me. To bits. Although I have written a 500 line program in it (579 to be exact). All said program does is display a message on the screen via Xlib, but I managed to figure out how to make a word wrapping engine using strsep and how to use XDrawPoint XDrawLine to not only create a nice UI but also let me define various UI "styles" which can be loaded at startup.
    Said program uses a very big helping of "if it doesn't work stab it until it does", so not only do I not understand how a lot of it works, it probably wouldn't compile under anything except gcc. Which is from a theory perspective quite a problem, IMHO. Almost every 2nd variable is typecast to this or that type.
    So put simply, every tutorial or introduction to C hasn't made a lot of sense to me. Maybe I learn slowly; I'm hoping it's that, because I can't see anything besides assembly language which would be faster than C. I plan to learn asm after I've mastered the very basics of C, but I may end up having to learn the other way around if I expect to get anywhere.
    Like I said in the title, I have one actual question in this post. So here it is:
    Are there any fun, easy reading tutorials out there that don't visually look like they came out of 1992 and read like http://poignantguide.net/ or http://learnyouahaskell.com/?
    -dav7

    dav7 wrote:Pointers aren't addressed "simply"; if I declare a pointer to int named x I have to use *x to access what x points to, rather than use *x to get x's location, like one does with non-pointer variables where & is used to get an address. It'd be nice if we used &x to get x's value if x wasn't a pointer and *x to get x's value if x was a pointer, rather than use this convoluted scheme.
    Pointer syntax is extremely unfortunate. The best part:
    char *a; // It's a pointer.
    *a; // It's a character. Good move, guys.
    Also, I've heard that it's a common misconception that C handles arrays natively. Elsewhere, I've heard that strings are merely arrays of char. I can understand the 2nd, but what do I do with the 1st?
    Insofar as C has arrays, C strings are character arrays. C arrays are just a promise that the system won't mess within a certain set of memory addresses. Array syntax is a concise way to calculate and dereference a specific location in memory, relative to an address that you hope is the beginning of some memory you reserved. array[n] = *(array + n), right? Personally, I would have left out the subscript notation entirely. Regardless, any time you choose to use brackets, you can mentally substitute in an explicit addition and dereference there. You're saying, "Give me the number stored at the memory address I have just calculated, which I know by my science holds something I put there intentionally, and not garbage at all."
    One more clarification with regard to pointer arithmetic is necessary: when you add 2 to an int*, the resulting address is actually 2*sizeof(int) bytes after your base address. Same for a double*: 2*sizeof(double).
    I do understand that if I say printf("%d\n", x[1]) I'm effectively saying x++; printf("%d\n", x), but I don't understand how this fully works.
    It's not the same! First of all, in example #2, you're passing a pointer to an int. In example #1, you're passing an integer, since [] dereferences pointers for you. Any time you use those brackets, it's as if you had typed an asterisk yourself. Second, in example #1 you're not messing with x. In example #2 you're incrementing x by four bytes (the likely size of one integer). Doesn't make a difference in this short example, but if x ever gets used again it will be very significant.
    Another thing I found is that declaring a char *, filling it with data, and then using memcpy on said char *, the program works fine, but if I declare for example char x[1] = "hi"; the compiler will shout at me for not allocating enough arrays. Only while writing this did I realize that the 2nd element is for the null byte.
    Looks like a counting problem. Arrays are indexed from 0, but sizes are specified from 1 on up. Your "char x[1]" has only index [0]. To hold a two-character string, you'll need at least size three (char x[3]), so that x[0]='h', x[1]='i', x[2]='\0', the null terminator.
    Suffice to say that C confuses me. To bits.
    Any time you get confused by pointers or arrays (which are the same thing), take a step back and think about what's happening in terms of memory addresses. Draw it out on paper if you think you're making a mistake. In some languages you can ignore low-level details like that and write perfectly fine programs, even though you won't be able to optimize them without knowing how your code maps onto the machine. But in C, everything that looks like a high-level feature is just shorthand for setting a few bytes to different numbers, and the abstraction is so leaky that you can't get by without understanding it. Types are just a way for the compiler to catch dumb mistakes (some people believe this is helpful) and to automate some math, like the pointer arithmetic above. In a running program there are no types, so when you're trying to figure out what a program is actually doing, you need to consider what the types are shorthand for.
    If you're having trouble "thinking like a programmer", by which I mean sanity-checking your use of syntax and stepping through a program so you know what it does, you might want to get up to speed in a different language, or by working through a book on algorithms.
    Last edited by pauldonnelly (2008-11-03 22:54:12)

  • Text wrap not working... What am I doing wrong?

    Hi... I guess I do not know how to set up the text wrap in reflow to follow the size of the container that it is in...
    I have created a text box with the text the size I want and the width and hight of the box is correct... While editing the text it wraps correctly... But the moment I un-select the the text it ignores its container and overflows... Basically goes from being vertical text back to horizontal... I tried the different overflow options in the layout tab but no luck...
    Here are some images for reference... This one is correct and following the wrap (but only happens when i am editing the text)
    But then when I deselect the text... The wrap goes away and this happens... Even though you can see the container is still the same width...
    My plan is to have it be vertical for desktop browser sizes and then be horizontal for mobile and tablet... I was really hoping it was as easy as setting the size of text box... But it is not seeming to work...
    Thank you for any help!!!

    Just tried adobe direct support via chat to get help on this.... OMG I wanted to blow my brains out... So very very unhelpful and a complete waste of time.... They had no idea and said moderators on the forums would be better support... I explained that I had asked this question on there several days ago.... Getting so over adobe... WOW!

  • Table header wrap text?

    Hi,
    Is it possible to wrap the text of a table heading? I have found this question in many places always with a negative answer. Althought they are old posts and in main thread of this forum [POLL: Web Dynpro UI elements - enhancement proposals; in the first response Armin says that header text wrapping is now supported. Anyone knows how? I am working with NW7.0
    Thanks,
    Gabriel.

    Hi Gabriel,
    The header text wrapping is now supported in the SAP CE 7.1 and SAP NW 7.0 EHP 1.
    This a table column property.
    For documentation on NW 7.0 EHP 1 please refer the following link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c4/219041d3c72e7be10000000a1550b0/frameset.htm
    Regards,
    Kartikaye

  • CS4 Text Wrap issue - HELP!

    HELP!  I taught myself PageMaker 6.5 and I got REALLY good at the basics, but not so great at the in-depth things.  Consequently, when I upgraded to InDesign CS4, the same holds true, so please feel free to treat me like a 2-year-old in your explanations.  Now for my dilemma:
    I create a quarterly magazine.  Most of the pages are 2- or 3-column spreads.  Many times, a photograph (and its caption) will span more than just one column, but not necessarily the entire width of two.  In other words, my photo could span all of column 1 and 1/2 of column 2, with the text flowing to the right of the photograph, then expanding to fill all of column no. 2 beneath it.  In PageMaker, when I text-wrapped around the pic, leaving enough bottom text wrap to insert my captioning, the text would wrap perfectly, keeping the text in perfect alignment horizontally across the columns.  That, in turn, kept the bottom edge of all my columns exactly equal. 
    In InDesign, however, that's not the case. The text doesn't align equally horizontally across the columns, hence ruining my clean horizontal text margin at the bottom.  This happens any time I have a photo that spans all of one and part of one (or two, in the case of a centered photograph) column.  In fact, even if I place a photo that fits within just one column, the horizontal text alignment gets screwed up.  I'm attaching a .pdf of page 35 of the issue I'm working on to show you what I mean.
    I've tried choosing all three columns and clicking the "align top edges," but that just drags all three columns up to the 1/2 inch margin at the top of the page, and my text actually starts 1/4" beneath that (3/4" from the top page edge) because of the page numbering, and when I drag all three columns back down to the 3/4" mark, the wrapping gets all screwed up again.  So I tried "align bottom edges," and that didn't work either (it worked to a point... anything that actually had text flowing to the bottom of the column was fine, the same thing occurred then above the column with a photo spanning all of it.  Geez, I'm confused just trying to explain it.  Hopefully, the attached .pdf will help make sense of this.  
    Consequently, I'm moving columns manually for this issue (all 60 pages of it), because it has to be at the printers by the end of the weekend and I'm just plain out of time.  If anyone can give me some guidance so I don't have to do this again next time, I'd really appreciate it.
    You can email me at [email protected] if you have any ideas. Thanks for your help.
    Barb

    Thanks so much to both Peter and Bob.  I'm sure this will fix the problem.  At least I know it wasn't something I was doing wrong and it really is a glitch in the program.  I'll play with the baseline grid, since it seems that will be the best option. I have a few months to experiment with it before the next issue goes to press.
    Does setting a preference act like a default?  In other words, will it then apply to all pages in all new documents I create or is it specific to the document in which I'm working when I set it? If the latter, I'm guessing I can just include it when I set up my master page so it will apply throughout the issue?  Which, of course brings me to yet another question: how do I save my Master Pages so I don't have to redo them with each issue?
    I'm finding that the majority of InDesign is a lot more user-friendly and easier to navigate than the old PageMaker -- many fewer steps for the same end result.  I hope to take a class if I can find one in my area, because I'm certain I'm doing many things the "hard way."  Learning as you go is okay, but you miss a lot of the finer points along the way and spend entirely too much time trying to figure things out or bugging people like you in this forum.
    I apologize if some of what I ask seems rather elementary. 
    And Scott, sorry, but I've always felt that, out of all the fonts available, Comic Sans is the most readable.
    Barb

Maybe you are looking for

  • I am in URGENT need. Plz help me.

    First I will tell what I am doing --> I am storing a table that was displayed in JTable, in a file. Then when I click a button(Display table), a file chooser allows me to select that file in which I stored the table. Now when I open that file I shoul

  • I tried to download the Acrobat trial on my iMac with Yosemite 10.10.1.  I received an error.  What shall I do?

    I tried to download the Acrobat trial on my iMac with Yosemite 10.10.1.  I received an error.   what can I do?

  • Block breaker deluxe game shows half of screen

    i just got my iPod nano and i downloaded the game Block Breaker Deluxe. when i played it the first, time it played just fine. When i played it again, it only started to show half of the game. when i exit the game and go back to the menu, the menu is

  • Valid time dimensions

    Hi, When reverse engineering an Oracle 12c database (using Data Modeler stand alone, 4.1 EA2 using a thin jdbc connection) on some tables valid time dimensions are detected in the database. This suggests the existence of a period for clause on the ta

  • Clean Sweep

    This question is from my friend, as you'll notice in my 'model' section, I don't own an iBook. Her iBook is the final rev, she bought it about two months before the Macbook came out. I don't know all the specs, but I know she's not running iLife 06 b