How to change the date format?
How do I adjust the Clock Indicator format?
Stack Overflow is getting a Meta of its own Calculate the area on a sphere of the intersection of two spherical caps Given a sphere of radius $r$ with two spherical caps on it defined by the radii ($a_1$ and $a_2$) of the bases of the spherical caps, given a separation of the two spherical caps by angle $\theta$, how do you calculate the surface area of that intersection?   To clarify, the area is that of the curved surface on the sphere defined by the intersection. At the extreme where both $a_1,a_2 = r$, we would be describing a spherical lune.   Alternatively define the spherical caps by the angles  $\Phi_1 = \arcsin(a_1/r)$ and $\Phi_2 = \arcsin(a_2/r)$. If you have a java.io.InputStream object, how should you process that object and produce a String?    Suppose I have an InputStream that contains text data, and I want to convert it to a String, so for example I can write that to a log file.  What is the easiest way to take the InputStream and convert it to a String?  public String convertStreamToString(InputStream is) {     // ??? } How to determine the architecture of an installation or Live CD/DVD? How can I determine which architecture (x86 or x64) my Ubuntu installation medium is for?  I don't have it installed, I just need to know which files on the installation media I can use to determine the architecture. I wonder is it legal to register a domain name that contains a company name. For example cococola.cc (considering that this domain name is available). Can I buy and use any domain names that contain a name of a trademark? Is it legal to develop a game using D&D rules? For a while now I've been thinking about trying my hand at creating a game similar in spirit and execution to Baldur's Gate, Icewind Dale and offshoots. I'd rather not face the full bulk of work in implementing my own RPG system - I'd like to use D&amp;D rules.  Now, reading about the subject it seems there is something called "The License" which allows a company to brand a game as D&amp;D. This license seems to be exclusive, and let's just say I don't have the money to buy it :p.  Is it still legal for me to implement and release such a game? Commercially or open-source? I'm not sure exactly which edition would fit the best, but since Baldur's Gate is based of 2nd edition, could I go ahead an implement that?  in short: what are the issues concerning licensing and publishing when it comes to D&amp;D?  Also: Didn't see any similar question... Python does not find packages installed without Anaconda How to undelete a directory that was just deleted with "rm -R" command (in cloud drive)? I deleted an important directory with rm -R command. This is an very populer host data. It was located /var/zpanel/hostdata/ayrintilih After remove ayrintilih directory has gone everything.  I tried to undelete with ext4magic program. But it need to another hdd volume for recovery.  Error message:   ERROR: can not use "/root/recoveried" for recover directory. It's the same filesystem : "/dev/dm-0"   My ISP just replied my request:  Unfortunately there is no way to add another Volume to a virtual Instance.  If it would be a dedicated Server, we could do it, but not in a Cloudserver.  You could try to minimize the partition and create another one, that would  count as another Volume. We also recommend to have allways a  Backup for your Important files. Supporting Multiple Screen Sizes in Storyboards (3.5 and 4 inch screens) When should we use proximity rule in "either/or", and "neither/nor"? According to this , if at least one of the nouns involved is plural then it should take the plural form of the verb. Otherwise, it should take the singular form of the verb. But in the last part it says not all grammars agree to those rules thus proximity rule applies. However, it doesn't explain when to apply the proximity rule and when not to use the former rules. Spring's SecurityContextHolder.getContext().getAuthentication() returns null after RedirectView is used in HTTPS/SSL how to launch Bluez on Lubuntu Trying to launch a BT adapter/manager(default installed on Lubu)a little window informs me that it cannot because there's no Bluez launched.  In terminal: sudo apt install bluez, it answers: Bluez is already the new version (5.46-0ubuntu3) Then invites me to remove a couple of obsolete packages.  So where's Bluez Daemon to launch?  Writing:systemctl status bluetooth.service ; hcitool dev  Answer:   bluetooth.service - Bluetooth service    Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset    Active: inactive (dead)      Docs: man:bluetoothd(8)   Command:lspci -k | grep -A3 -i "wireless\|network\|bluetooth" Answer: 04:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)     Subsystem: Quanta Microsystems, Inc AR242x / AR542x Wireless Network Adapter (PCI-Express)     Kernel driver in use: ath5k     Kernel modules: ath5k 0f:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller oem@oem-Extensa-5220:~$ In Lubuntu, there's no 'Add New Program...' button in Desktop Session Settings. Is there an easy way to add new autostart programs in Lubuntu? My reputation suddenly raised by 10k! Ubuntu touchpad issues - mouse pointer jumps around How to unzip a zip file from the Terminal? What's the meaning of a set to the power of another set? Free way to clone HDD to SSD? How do I clone a generic list in C#? Get most common value for each value of another column in SQL I have a table like this:   Column  | Type | Modifiers  ---------+------+-----------  country | text |   food_id | int  |   eaten   | date |    And for each country, I want to get the food that is eaten most often.  The best I can think of (I'm using postgres) is:  CREATE TEMP TABLE counts AS     SELECT country, food_id, count(*) as count FROM munch GROUP BY country, food_id;  CREATE TEMP TABLE max_counts AS     SELECT country, max(count) as max_count FROM counts GROUP BY country;  SELECT country, max(food_id) FROM counts     WHERE (country, count) IN (SELECT * from max_counts) GROUP BY country;   In that last statement, the GROUP BY and max() are needed to break ties, where two different foods have the same count.  This seems like a lot of work for something conceptually simple.  Is there a more straight forward way to do it?