`Double.ToString` with N number of decimal places
How do I format a Decimal to a programatically controlled number of decimals in c#?
How to best encapsulate monetary values in a database how to add xsl attribute Hello,   I create an app using the Promoted Links in Sharepoint 2013. I chose to do this because the feature has the awesome hover effect and is easy to customize the image.  The issue is that I have been trying to figure out how to change the tile sizes. They are awesome the way they are, however I just need them smaller. I still want the hover effect as well and for the text to match the same ratio as the tile. I have tried web zones, I have done each ID but with no luck. I have attached a sample image of the tiles I'm referring to. Please help. I encountered such a formula for pooled variance:  $$\frac{(n-1)s_x^2+(m-1)s_y^2}{n+m-2}\left(\frac{1}{n} + \frac{1}{m}\right)$$  Here we have two samples of the following sizes $n$ and $m$. $s_x, s_y$ are the sample variances.  I understand that the first term is a weighted average, but from the second term comes? The  spell says:     The spell captures some of the incoming energy, lessening its effect on you and storing it for your next melee attack. You have resistance to the triggering damage type until the start of your next turn. Also, the fist time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type, and the spell ends.   The  cantrip says:     Lightning springs from your hand to deliver a shock to a creature you try to touch. Make a melee spell attack against the target. You have advantage on the attack roll if the target is wearing armor made of metal. On a hit, the target takes 1d8 lightning damage, and it can’t take reactions until the start of its next turn.   If I absorb fire damage with absorb elements, would I be able to add an extra 1d6 fire damage to my next shocking grasp attack? I understand that there is an upper limit. But why do you have to type at least 15 characters to post a comment? It is easy to work around it anyway (like adding dots or other useless things). In Blender 2.8, how do I light an EEVEE scene with an HDR? The most efficient method to obtain the total entries into a mysql table How to show textures in the 3D View editor? $K \subset \mathbb{R}^n$ is compact iff it is closed and bounded I want to prove $\Leftarrow$.  I just need one more step, now. If I find a compact set that contains K, then it will finish the proof. Rudin take a k-cell to do that, but before it he proves that every k-cell is compact, and I think I can take a more simple compact to do this step. I has thinked in the closed ball, but don't know how to prove that it is compact. Can anyone help me to find this set, if it really exists? Thanks. What software to cite in a manuscript, and how? When writing a manuscript for a scientific article, I often wonder what software I should cite or acknowledge, and how.  The first problem is to make a choice which software to cite. On the one hand, there is no way to cite all software, as this would mean to cite my whole software stack (Linux, GNU tools, emacs, git, ...). On the other hand, not citing any software is not fair, either. Furthermore, some software explicitly asks to be cited, some software doesn't. Also, some software is really crucial to the results, some isn't. Another important aspect is that citing software is not only about giving credit to the authors of the software, but also to give other scientists hints on what software they might want to use. So, the choice which software to cite is a problem.  The second problem is how to cite the software. Some (scientific) software does provide a classical scientific article that can be cited. However, in this case, no URL to the software is given. Others do not have an associated article. How do I cite these? I have seen people that cite the manual of a software, others just give the URL. What is the way to go?  Another aspect is where to cite the software. Some software can be cited in the course of the articles text, but when it comes to more fundamental software, other places may be more appropriate.  Are there any good ideas out there on any of these aspects? How can I lock a file using java (if possible) Get different and common items in two arrays with LINQ While looking at online code samples, I have sometimes come across an assignment of a String constant to a String object via the use of the new operator.  For example:  String s; ... s = new String("Hello World");   This, of course, compared to  s = "Hello World";   I'm not familiar with this syntax and have no idea what the purpose or effect would be.  Since String constants typically get stored in the constant pool and then in whatever representation the JVM has for dealing with String constants, would anything even be allocated on the heap? Multiple vs single field capture for phone number form input Working on a form dealing with phone numbers, I've seen two methods to capture user input .   In past practices example 2 (image below) has proved effective in controlling phone number lengths on forms.   However with responsive in mind it would seem example 1 is considered a more popular pattern on forms. I've researched both patterns with the findings below.     Example 1  Pros   1 input = less taps on mobile device 1 input = less coding   Cons   could be difficult to control phone number format (1-555-555-5555, +22444455555, and etc)   Example 2  Pros   easier to control phone format reduced user error   Cons   3 inputs = more taps on mobile device more inputs = more coding   Both inputs have pros and cons and I'm not such which method would provide the best user experience for responsive environments. Can anyone share some insight or provide a better way to use phone number inputs? What is the difference between procfs and sysfs? What is the difference between procfs and sysfs?  Why are they made as file systems? As I understand it, proc is just something to store the immediate info regarding the processes running in the system. Turn off paragraph indention for a single line I’ve recently purchased a new Mac Mini, and I’ve been importing my old pictures into the Photos app.  I want to have these photos backed up to iCloud, along with the photos currently on my iPad. I then want everything synced to my Mac Mini, but not to my iPad, which has limited storage capacity.  Is it possible to have the Mac Mini and iPad set up to backup to iCloud, but only download backed-up photos to the desktop? I would like to create an alias to rm command in order to have a confirmation message after executing this command. So I am creating an alias like this alias rm='rm -i'. But as far as I know this is a temporary alias and it lives until you close the terminal.  As it is explained  to save alias permanently I need to execute ~/.bash_aliases or ~/.bashrc commands in terminal and add my alias there. But when I execute ~/.bashrc I get following error message :  bash: /home/bakhtiyor/.bashrc: Permission denied   When I run ~/.bash_aliases I get another error message like this:  bash: /home/bakhtiyor/.bash_aliases: File or directory doesn't exist.   What is the actual problem and how can I solve it? AWS dynamodb support for "R" programming language