How do you know a variable type in java?
How to check type of variable in Java?
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? Convert 12-hour date/time to 24-hour date/time I have a tab delimited file where each record has a timestamp field in 12-hour format:     mm/dd/yyyy hh:mm:ss [AM|PM].   I need to quickly convert these fields to 24-hour time:     mm/dd/yyyy HH:mm:ss.   What would be the best way to do this? I'm running on a Windows platform, but I have access to sed, awk, perl, python, and tcl in addition to the usual Windows tools. I've been looking for a simple regex for URLs, does anybody have one handy that works well?  I didn't find one with the zend framework validation classes and have seen several implementations. In eevee, shadows are clipped by camera distance How do I hide a parent div if the child div doesn't contain an  tag? How is voltage always able to increase, if electrons move at the speed of light? How to create a sequence with leading zeroes using brace expansion When I use the following, I get a result as expected:  $ echo {8..10} 8 9 10   How can I use this brace expansion in an easy way, to get the following output?   $ echo {8..10} 08 09 10   I now that this may be obtained using seq (didn't try), but that is not what I am looking for.  Useful info may be that I am restricted to this bash version. (If you have a zsh solution, but no bash solution, please share as well)  $ bash -version GNU bash, version 3.2.51(1)-release (x86_64-suse-linux-gnu) After a table of addresses is geocoded, ArGIS provides information about each geocoded address, among those the "match score" of the candidate to which the address was matched, which ranges from 0 to 100. According to their documentation "The match score is based on how well the locations found in the reference data match with the address data being searched."  It seems intuitive that 100 means an address with the exact name was found in the Address locator and 0 means no such address was found. However, I could not find any information about how exactly this score is calculated, particularly if values are somewhere between the extremes. I this known?  I found the pointer to  in the answer to , but I could not find any information in that paper that would answer the question. The problem statement is: for $a,b$ coprime, prove that there exists positive integers $x,y$ such that $ax-by=1$.  The question is form Arthur Egnels' problem solving text, and from the chapter on the pigeonhole principle.    My question: His proof begins by generating a list $a,\ldots,a(b-1)$, where he then points out that each element in this list(which proceeds sequentially) doesn't have remainder $0\pmod{b}$.  He then shows that we arrive at a contradiction if we assume that we also don't get remainder $1$ in this list $\bmod b$.  To show the contradiction in this last statement, he first states that we would have positive integers $p,q $ where $ 0&lt;p&lt;q&lt;b$ so that $pa\equiv qa \pmod{b}$.  He then goes on to point out that since we $a$ and $b$ are coprime, we then have that $b| q-p$.  I understand the last part here, but don't see why we get $pa\equiv qa \pmod{b}$.  Thanks in advance Virtual Host Setup Redirecting Request to Local IP address How can I replay Apache access logs back at my servers to do real world load testing? I looked at  but I couldn't see how to replay my own existing logs in any of those tools. I have a bug that only occurs under certain load operations which my existing JMeter and AB testing stuff can't reproduce.  I want to simply give the tool access_logs and have it play them back, either faster or at the same speed. How to change the voltage polarity in an inverting amplifier? I want to implement a simple circuit which can map -10V  +10V voltage range to 0V 5V voltage range. Thus I'm planning to use two op-Amps, one for the slope and the other for the offset. So basically I'm planning to use an inverting amplifier and a summing amplifier consecutively.  But Inverting amplifiers multiplies the input voltage with a minus sign. I need a positive slope. How can I overcome this?  Also Could you gibe me any ideas for a cheap op-Amp models for this purpose? Creating centerline from lines using QGIS How do I create a centerline (vector data) from two parallel polylines (vector data) in QGIS? For example, if the distances between two parallel lines are 14m, then I want to create a centerline at 7m from both lines. How to extract BibTeX entries (as DOI, abstract, etc.) I want to automate personal reading notes generation, I'd like to be able to automatically extract a field's content from a BibTeX entry (other than year or author).  E.g. given a BibTeX entry  @article{einstein05,    author={Albert Einstein},    title={Zur Elektrodynamik bewegter K{\"o}rper},    abstract={Interesting article, which claims that time is relative.},    journal={Annalen der Physik und Chemie},    volume={17},    year={1905},    pages={891--921} }   I want to have a macro in my TeX file (e.g. \citeabstract) that will return the string Interesting article, which claims that time is relative. (the same for DOI, etc.)  I've found the \printfield command that might help me, but I'm not smart enough to know how to use it.  I don't know if it has any influence on the answer, but I'm using BibLaTeX+BibTeX. Availability of MXD file for OpenStreetMap data in Esri Geodatabase? From what I understand, an ArcGIS mxd file contains the "styling" information on how to show data.  I downloaded and imported OpenStreetMap data into my geodatabase. Now I need to show them.  Is there any available mxd file match the OpenStreetMap fields/values that I can use?  I check this question(), but the links are all dead.  ps: right now the all the highway/roads/trail display as a single line in my map. I want to use mxd to show them in a better way, like Mapnik or google. This is supposed to be related to the  (my justification for the independence tag). In Williams' Probability with Martingales, 2BCL is proven and then the following is given as an exercise:  Prove $S \doteq \sum_{n=1}^\infty p_n &lt; \infty \implies \prod_{n=1}^\infty (1-p_n) &gt; 0$ assuming $0 \leq p_n &lt; 1$. Hint: Show that $S &lt; 1 \implies \prod_{n=1}^\infty (1-p_n) \geq 1 - S$.   Proving the hint: I tried to find $\{a_n\}$ s.t. $$\prod_{n=1}^\infty (1-p_n) \geq \prod_{n=1}^\infty e^{a_n} = e^{\sum_{n=1}^\infty a_n} \geq 1 - \sum_{n=1}^\infty a_n \geq 1 - S &gt; 0$$ That is, find $\{a_n\}$ s.t.: 1a. $1 - p_n \geq e^{a_n}$ 1b. $a_n \leq p_n$ I thought of $a_n = \ln(1-p_n)$ (a reason why $p_n &lt; 1$, I guess) Is that right? Edit: Actually, assuming my proof is right, is $S &lt; 1$ used in the proof? If so, where?  From Williams book: I am a Chinese citizen married to a US citizen last year. I am going to apply for a UK tourist visa. The name shows on my passport is my maiden name, while any other documents the UK visa needed, such as bank statement, is with my married name. I can provide my marriage license to prove the link between my maiden name and married mane.   Can I apply for this UK visa with my situation? How can I randomize order of elements in a list? Evidence for quantum gravity from gravitational waves The rumor spreads that .  I am far from being an experimentalist, but I want to know if there is any chance that the mentioned observations will reveal any experimental evidence for quantum gravity.  Personally, I feel like this is merely impossible as gravitational waves should propagate in agreement with classical General Relativity. But I might very well not see pitfalls if there are any.  UPDATE: by "evidence for quantum gravity" I mean experimental results which don't agree with predictions of General Relativity or its classical generalizations. They might be coming from string theory or loop gravity or from a completely different approach which we haven't discovered yet. I want to understand what are the chances that new physics will show up during the upcoming  gravitational wave observations.  Also, I expect gravitational waves to be in a highly coherent state, thus making the individual gravitons unobservable. Is this true? IMAP: how to move a message from one folder to another (using the IMAP commands, not with the assistance of any other mail package)