I know we can use userinfo.CurrencyIsoCode to get currencycode for user in multi currency org. For single currency org we can manually look into company information and see currency locale.   But is there any way we can use apex to get currency code for single currency org's. I checked both organization and user object if there is any field for default currency but there is no field. Currencytype object is also not enabled in single currency org.    I need to know if there is any other salesforce object from where we can get this information. I don't want to create a custom object where admin can store this information.
I'm looking for a way to get the Default currency symbol (in a none-multi-currency org) of the salesforce org locale (to have it displayed on a visualforce page in a field that can't be &lt;apex:inputField&gt; or &lt;apex:outputField&gt;) preferably query-able from apex (via the database, a describe or whatever) and then again the actual symbol, meaning € for Euro, $ for dollar, and so on...  There must surely be some sort of mapping hidden in the code somewhere salesforce does this via the input/outputfields if bound to an sobject of type currency  Can anyone point me in the right direction?
Why is the d'Alembert's Principle formulated in terms of virtual displacements rather than real displacements in time? What's better here - a single column or multicolumn primary key? Let's assume you have a table groups and a table item. Each item belongs to exactly one group. It is an inherent part of that group. An item cannot exist outside of a group and it cannot be moved to another group.  When trying to decide on a primary key for the item table, what should I use?  Should I make up an artificial global serial key like this:  CREATE TABLE items (     item serial PRIMARY KEY,     group integer NOT NULL REFERENCES groups(group), );   ... or should I rather use a composite key and per-group item serial like this:  CREATE TABLE items (     group integer NOT NULL REFERENCES groups(group),     item integer NOT NULL,      PRIMARY KEY(group, item) );   The reason why I'm leaning more towards the second solution is that the post URL will always show the group and item, so it makes sense to have both of them as the composite primary key. In case of the first solution, the URL contains superfluous information because the group ID can already be deduced from the item ID alone. The URL structure is given, however, and cannot be changed.  The disadvantage of the second solution is that you have to manage a per-group serial (i.e. each item integer should start from 0 for each group).  What's better in terms of best practices, normalization and performance? Or is it simply a matter of taste? This is an attempt to gather together the various questions about time that have been asked on this site and provide a single set of hopefully authoritative answers. Specifically we attempt to address issues such as:   What do physicists mean by time? How does time flow? Why is there an arrow of time? Labels disappear while zooming Finding $\int \frac {dx}{\sqrt {x^2 + 16}}$ Writing a git post-receive hook to deal with a specific branch Dual monitors not working with an Nvidia card Even my main monitor is shown as unknown. I have tried setting up dual monitors using Nvidia settings with no joy however it does recognize that I have 2 monitors.  This was not an issue in 11.04. My problem with the Nvidia settings appears to be that my 2 monitors require different resolutions but even when I set them to a resolution that they both can handle, it is then only appearing in cloned mode. I really hope someone can help or I will have to roll back to 11.04.  Why won't Ubuntu 11.10 recognize that I have 2 Monitors?   Here is the contents of my xorg.conf:  # nvidia-settings: X configuration file generated by nvidia-settings # nvidia-settings:  version 280.13  (buildd@rothera)  Thu Aug 11 17:28:49 UTC 2011  Section "ServerLayout"     Identifier     "Layout0"     Screen      0  "Screen0" 0 0     InputDevice    "Keyboard0" "CoreKeyboard"     InputDevice    "Mouse0" "CorePointer"     Option         "Xinerama" "0" EndSection  Section "Files" EndSection  Section "InputDevice"     # generated from default     Identifier     "Mouse0"     Driver         "mouse"     Option         "Protocol" "auto"     Option         "Device" "/dev/psaux"     Option         "Emulate3Buttons" "no"     Option         "ZAxisMapping" "4 5" EndSection  Section "InputDevice"     # generated from default     Identifier     "Keyboard0"     Driver         "kbd" EndSection  Section "Monitor"     # HorizSync source: xconfig, VertRefresh source: xconfig     Identifier     "Monitor0"     VendorName     "Unknown"     ModelName      "CRT-0"     HorizSync       30.0 - 83.0     VertRefresh     50.0 - 76.0     Option         "DPMS" EndSection  Section "Device"     Identifier     "Device0"     Driver         "nvidia"     VendorName     "NVIDIA Corporation"     BoardName      "GeForce 7025 / nForce 630a" EndSection  Section "Screen"     Identifier     "Screen0"     Device         "Device0"     Monitor        "Monitor0"     DefaultDepth    24     Option         "TwinView" "1"     Option         "TwinViewXineramaInfoOrder" "CRT-0"     Option         "metamodes" "CRT: 1280x1024 +1024+0, DFP: 1024x768 +0+0"     SubSection     "Display"         Depth       24     EndSubSection EndSection"   ok I have tried disper -e. Problem is that Nvidia settings appear to be treating both monitors as the same one. so changing the settings to one has no effect, but change the other and it affects both screens identically.  Results of disper -l as follows:      carter@carter-desktop:~$ disper -l display DFP-0: HP vs17  resolutions: 320x240, 400x300, 416x312, 512x384, 576x432, 680x384, 640x480, 720x450, 640x512, 800x512, 840x525, 800x600, 960x540, 832x624, 960x600, 896x672, 1024x768, 1152x864, 1280x960, 1280x1024 display CRT-0: CRT-0  resolutions: 320x240, 400x300, 416x312, 512x384, 576x432, 680x384, 640x480, 720x450, 640x512, 800x512, 840x525, 800x600, 960x540, 832x624, 960x600, 896x672, 1024x768, 1152x864, 1360x768, 1280x960, 1440x900, 1280x1024, 1400x1050, 1600x1024, 1680x1050, 1600x1200, 1920x1080, 1920x1200, 1792x1344 carter@carter-desktop:~$ Alternative to LibreOffice Base for Ubuntu Is a continuous function $ f\colon(0,\infty)\to R$, such that $f(x)\leq f(nx)$ increasing? The IPA symbol for the labiodental flap (ⱱ) How do Horcruxes work? A few questions regarding the Horcruxes.   Had Voldemort actually succeeded in using a Horcrux, would he come back the same age (biologically and/or aesthetically) he was when he made the Horcrux, or the age he would biologically be if he had never died (half died)? If Harry was a Horcrux, then in the graveyard, when Wormtail added Harry's blood to the potion to bring Voldemort back, didn't that technically use up the Horcrux inside of Harry? So in Deathly Hallows when Voldemort kills Harry, shouldn't Harry have actually died rather than just have the Horcrux inside him destroyed, seeing as it was technically used in the Goblet of Fire? UK PLAB Visa Refusal due to unexplained bank deposits I had applied for a PLAB (Doctors) Visa for the UK to appear in PLAB test. I got refused on the basis of two recent large deposits in the bank statement I provided (my mothers). In reality, these are my own savings which I had deposited in her account to make it more strong. The only objection I got was that I must provide evidence for the source of these deposits. Other than this, I have previously travelled to the UK and USA as well as other parts of the world and my travel history is fine. Can someone please advise on how to proceed and re-apply? I'm trying to split a string up into words and punctuation, adding the punctuation to the list produced by the split.  For instance:  &gt;&gt;&gt; c = "help, me" &gt;&gt;&gt; print c.split() ['help,', 'me']   What I really want the list to look like is:  ['help', ',', 'me']   So, I want the string split at whitespace with the punctuation split from the words.  I've tried to parse the string first and then run the split:  &gt;&gt;&gt; for character in c: ...     if character in ".,;!?": ...             outputCharacter = " %s" % character ...     else: ...             outputCharacter = character ...     separatedPunctuation += outputCharacter &gt;&gt;&gt; print separatedPunctuation help , me &gt;&gt;&gt; print separatedPunctuation.split() ['help', ',', 'me']   This produces the result I want, but is painfully slow on large files.  Is there a way to do this more efficiently? I can't install software-center on Kali What happened to the link to the duplicate when a question is closed as a duplicate? Possible Duplicate:          This question:      has been closed as an exact duplicate, but there is no link to the duplicate so we can neither assess whether the closure is valid nor see the explanations in the duplicate question.  It wasn't so long ago that the duplicate links were shown &mdash; is there a policy change (and if so, why?), or is it just a glitch? What's in an Eclipse .classpath/.project file? How can I find the cheapest prepaid SIM card for a given country? A student prepares for an exam by studying a list of 12 problems. She can solve 9 of them. For the exam, the instructor selects 7 problems at random from the 12 on the list given to the students. What is the probability that the student can solve 5 of the 7 problems on the exam?  I am really confused by this problem. My first initial thought was to do:  (5 chose 7)(7 chose 0)/ (12 chose 7)  I am not 100% sure about this though. My multimeter is rated to 600V.  How can I readily (and safely) use it to measure higher voltages? I use a dual monitor.  The colors appear entirely different on the new monitor than they do on my laptop.  When you are selecting colors etc, to be included in a website design, it totally freaks me out.  Is there no software solution that finds how the settings of one of the monitor is and puts that to the second one?  Otherwise what all settings do I need to change manually on the second monitor to make it appear as it does on the laptop?  Thanks in advance.