XCODE C++ Decimal/Money data type?
Best way to store currency values in C++
Nested indenting issue How to get correct indentation after entering a nested list? I am writing a code review and I could not figure this out by googling. Here is an example of the three formatting styles I tried to use (but none of them works as I would like):  Case 1  The task is to align the last line (see below) "In the first line you use camelCase..." with the last line above the numbered list. In my first attempt, I added a new line (empty line) after the second numbered list item, and then indented by 4 spaces:     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame   In the first line you use camelCase, whereas in the second you use     snake_case.     As you can see, this gives the correct indentation but it introduces a blank line above the first numbered item.  Case 2  In this case I do not add the blank line after the second numbered list item ( but still indent by 4 spaces ):     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame In the first line you use camelCase, whereas in the second you use     snake_case.      In this case the line is considered as part of the last list item  Case 3  In this case, I try to add two blank spaces (invisible) at the end of the second list item:     Variable name casing: See  on "Snake Case". In Perl, we use "snake_case" instead of "camelCase", and be consistent. Example:   Line 14: my $testType  Line 18: my $right_frame In the first line you use camelCase, whereas in the second you use     snake_case.      In this case the line is considered part of the second item, and hence not correctly indented.  How to achieve the correct indentation? $\frac{1}{99989999} = 1.00010002000300050008001300210034005500890144... \times 10^{-8}$    (), which includes the Fibonacci sequence $(1\ 1\ 2\ 3\ 5\ 8\ 13\ 21\ 55\ 89\ 144\ldots )$.  This is fascinating to me but I can't figure out how this works, and a Google search doesn't seem to reveal anything. What are these circular splotches on my negatives? I was just chatting on the Ask Different chat - and the reputation numbers for me and the others chatting don't seem to match any other reputation count I can see on the sites here.  Is there some calculation being made? These numbers are the highest of any other combined reputation I have seen. For me - I'm listed over 10k - but no other aggregate reputation counter I can see is above 8k.  Perhaps I'm unaware how reputation is calculated, but the people there suggested a bug report in case this isn't intended.  (after three lines of text are drawn - a number shows beneath our icons in the left hand side) MacBook Pro never goes to sleep Prove universal morphism is unique up to unique isomorphism. I'm following along Wikipedia page() on universal property, and this seems it should be trivial, but I couldn't finish the proof.  The definition I am working with:   The problem   So I want to prove that if $(A, u)$ and $(A', u')$ are universal morphism from $X$ to $F$, then there exists unique isomorphism $k: A \rightarrow A'$ such that $u' = F(k) \circ u$.   My attempt:   For any $B \in C$ and $f: X \rightarrow F(B)$, there exists unique $h: A \rightarrow B$ such that $f = h \circ u$.  Letting $B = A'$ and $f = u'$, we see that there exists unique $k: A \rightarrow A'$ such that $Fk \circ u = u'$.  This shows existence and uniqueness. We only need that $k$ is isomorphism, but this is the part I cannot prove.   Similarly, there exists unique $k': A' \rightarrow A$ such that $Fk' \circ u' = u$.  Plugging into each equation, we get  $$Fk \circ Fk' \circ u' = F(k \circ k') \circ u' = u'$$  $$Fk' \circ Fk \circ u = F(k' \circ k) \circ u = u$$  but this of course doesn't imply $F(k \circ k') = id$, so it seems useless.   Thanks for your help! I'm quite confused about the following regular expressions I found in a shell script:  ${0##*/} ${0%/*}   How do they work? My character has a bite attack from his race.  What happens if he gains another bite attack from class abilities or spells?  Does the damage increase?  Can he make more than one attack?  Or is it simply that only the better version applies?  I would prefer answers from a Pathfinder context but 3.5e is also acceptable. Remove last character from line Using the salesforce GUI it seams impossible to schedule a job every 15 minutes. Or more than once a day. After I installed Ubuntu 13.04, I can't mount my NTFS partition.  Error mounting /dev/sda5 at /media/mrxfly/xFLyDiskData: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/mrxfly/xFLyDiskData"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option. Creating fillable PDFs I'd like to create a LaTeX document that when rendered into PDF, has forms that can be filled out using Adobe Reader or other such programs. Then I'd like to be able to extract the data. I deliberately would like to avoid using Acrobat for all the usual reasons (non-free, need different versions for different platforms etc).   Can this be done ? How to edit / how to format box overlapping with footer when scrolling down I just edited an answer on Unix&amp;Linux and when scrolling down, the semi-transparent right sidebar boxes "How to edit" and "How to format" kept their fixed positioning and overlapped with the page footer.     While posting this, I have seen several (not) duplicate questions about this issue, and although from my personal taste, I would prefer the boxes to stop scrolling before the footer is reached, I can accept the development teams decision to let it overlap.   However, on all those other posts, the boxes had an opaque background, so that the footer was hidden and the box content was readable. Here the boxes are transparent though, so the texts get mixed and are no longer well readable. As the title states, I'm having quite a lot of trouble with the integral:  $$\int_{-\ln 2}^{\ln 2}  \frac{(\sin x+x)^{1/3}}{e^x}dx$$  The problem is that my standard (admittedly sparse) repertoire of tricks seems to have no effect at all. I can't think of any clever substitution that would work, and it looks like a nasty integral all-round.   I was hoping to apply some symmetry arguments (especially considering the limits of integration), but the exponential function is neither even nor odd, so I don't see how this would work.   I'm afraid I have absolutely no idea how to approach this. I'm trying to identify fantasy book series I encountered some time ago. Here are things I remember:   it was a fantasy setting but with some s-f elements; with many worlds and possibility to travel between them; resembling  setting a little, the two main races were non-human and probably hostile to each other,  a labyrinth (?), which somehow played an important role in the plot, a protagonist was some kind of emissary and was sent on a mission to another worlds  time period: 80s - 90s    Does anyone know what it is the name of the series? Should north, south, east and west be capitalised? Should cardinal points be capitalised? Please give a reason why they should or should not. Does a (half) beheaded Ettin take bleeding damage of some sort? Let's say a character cuts off one of an Ettin's heads, but the other head is still intact, and it's as such still alive. Obviously, there's a lot of blood. Does the Ettin take continuous damage from naturally bleeding out? Or does it not work that way? "You just can't" vs. "you can't just " I'm a bit confused about this. Which expression is correct?     You can't just do that.    or      You just can't do that.   I'm trying to say:     You can't just bash an ideology because of what someone has said/done. Missing argument 2 for wpdb::prepare() Issue I'm having to update a WP installation for a community organisations from version 2.9.1 to the current 3.9.1.   The installation has a couple of custom built plugins that aren't documented.  I've just performed the WP version update and now I see a warning (Missing argument 2 for wpdb::prepare()) on every page that relates to the following line in the code of one of these custom built plugin:  $rows = $wpdb-&gt;get_results($wpdb-&gt;prepare("SELECT id, name FROM ".$table_name));   From what I've read online, this is due to a change in the coding, that requires 2 values to be sent to wpdb::prepare(), but I've no idea how the line of code given above, needs to be changed.  If someone could help me out, I'd really appreciate it. Why does performance of a regular hard drive decrease over the duration of a benchmark while SSD doesn't? I use HD Tune to measure performance of the hard drive.  The tests typically take 2-3 minutes and the transfer rate of a regular hard drive decreases dramatically as the test comes to a close.    However, the SSD drive performance stays the same over (pic below) the life of the test.  This happens on all my computers.  Why is that?