Can static code blocks throw exceptions?
Why doesn't Java allow to throw a checked exception from static initialization block?
How do I create an invisible character? I cannot remember how to create an invisible character in LaTeX, i.e. I want to put a space that has the width of a particular character, say `M'. I know there is a command for this, and this is a really dumb question, but my Google-fu has failed me. DataView.Sort - more than just asc/desc (need custom sort) How to read a single character from the user? How do I create a vertical version of \not? Let's say a 10N cube (in air, on Earth) rests flat on a scale at the bottom of a tank of water, and the scale reads 8N, so there is 2N of buoyant force on the cube.  How does the buoyant force manifest itself on the cube?  I assume the force is normal to the surface of the scale, but if there isn't any water under the cube, how does the water push up on the cube? What is a natural response to &quot;Good to see you. How you doing?&quot;? Will a natural response include &quot;doing&quot; as in &quot;I'm doing okay&quot; or will &quot;I'm okay&quot; be more natural? How do I register a custom URL protocol in Windows? How do I register a custom protocol with Windows so that when clicking a link in an email or on a web page my application is opened and the parameters from the URL are passed to it? Setting the hostname: FQDN or short name? I've noticed that the "preferred" method of setting the system hostname is fundamentally different between Red Hat/CentOS and Debian/Ubuntu systems.   and the  say the hostname should be the FQDN:     HOSTNAME=&lt;value&gt;, where &lt;value&gt; should be the Fully Qualified Domain   Name (FQDN), such as hostname.example.com, but can be whatever   hostname is necessary.   The  is slightly more ambiguous:     Setup prompts you to supply a host name for this computer, either as a   fully-qualified domain name (FQDN) in the format hostname.domainname   or as a short host name in the format hostname.    says the hostname should not use the FQDN:     3.5.5. The hostname      The kernel maintains the system hostname. The init script in runlevel   S which is symlinked to "/etc/init.d/hostname.sh" sets the system   hostname at boot time (using the hostname command) to the name stored   in "/etc/hostname". This file should contain only the system hostname,   not a fully qualified domain name.   I haven't seen any specific recommendations from IBM about which to use, but  seems to have a preference.  My questions:   In a heterogeneous environment, is it better to use the vendor recommendation, or choose one and be consistent across all hosts? What software have you encountered which is sensitive to whether the hostname is set to the FQDN or short name? Empty drives show 2 GB used, Explorer shows nothing I have 4 drives in Windows: C:, D:, E: and F:. Except C:, all of them are empty.    Suddenly it shows up to 2 GB space used – even when there are no files.     [  When I format the drives, it's fine for a while until it shows used space again.  I use Windows 8.1 Pro 64 Bit. Given that$(3x-1)^7=a_7x^7+a_6x^6+a_5x^5+...+a_1x+a_0$, find $a_7+a_6+a_5+a_4+...+a_1+a_0$ Given that$$(3x-1)^7=a_7x^7+a_6x^6+a_5x^5+...+a_1x+a_0$$find $$a_7+a_6+a_5+a_4+...+a_1+a_0$$  Is there anyway to do the question without using binomial theorem and expanding the expression on the LHS?? I have this on the command line:    ln -sf $PWD/wine-   and then I hit Tab to complete the filename.  In earlier versions of Ubuntu, this worked just fine to complete the wine- filename (and as a side-effect $PWD would be expanded at that time).  But now it turns it in to  ln -sf \$PWD/wine-   which isn't what I meant at all and doesn't complete anything as the file does not literally start with $.  How do I get completion back to the less broken behaviour?  set tells me these are my current settings:  BASHOPTS=checkwinsize:cmdhist:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor Why are .goutputstream-xxxxx files created in home folder? I find a lot of files with names of the like  .goutputstream-xxxxx   where xxxxx are some alphanumeric characters.  Here is a screenshot of the home folder    Any idea why I should keep these or can I remove and also stop further creation? An $n \times n$ matrix $M$ of integers has the property that $M_{ab} = M_{xy}$ iff $a+b=x+y$. How many distinct elements are there in $M$? Lets say I'm building a base class which will be extended upon by the children class. So a base class is called Base and children can be Child1, Child2, etc.  In the base class's constructor, how can i get the value of Child1/Child2?  This is all using PHP I am trying to find all directories in a folder recursively while exclude all git submodules  by excluding all path containing .git file. How could I do it?     Explanation:  .git file exists at the root of every submodules folder. This submodule folder could be included anywhere.    Test Case  $ mkdir Test $ cd Test $ mkdir a $ mkdir b $ mkdir c $ cd a $ mkdir .git $ cd .. $ cd b $ touch .git $ cd .. $ cd c $ mkdir c1 $ mkdir c2 $ cd.. $ find . -type d \( \( ! -name . -exec [ -e {}/.git ] \; -prune \) -o \( \( \  -name .git\  -o -name .vscode\  -o -name node_modules\  -o -name Image\  -o -name Rendered\  -o -name iNotebook\  -o -name GeneratedTest\  -o -name GeneratedOutput\   \) -prune \) -o -print \) | sort    Expected Results  . ./a ./c ./c/c1 ./c/c2 File names for JSP include directive to avoid compilation of them FTP client on windows that save session password in encrypted text Filezilla or WinSCP save password in plain text which is unsecured on public machines. Is there any FTP client can save and encrypt password so that people using it only can access to FTP but not able to see password? Thanks! Simulating Key Press C# I use Windows 10 with the same Microsoft account on 3 different computers, each one with a different physical keyboard layout: ITA, UK, DE.  In "Control panel - Clock and International settings - Language" I have ITA as display language with ITA/DE/UK keyboard layouts, followed by ENG(US) with only UK layout.  In the same window I opened "Advanced settings" where I set an override (second drop-down list) to the default ("the first one on the list") language/keyboard: that would be ITA/ITA, while I want (on this computer) ITA/DE.  However, when now I log in in the other computers, I get ITA/DE there as well, while each computer should have a different one, being the physical keyboards different: ITA/DE here, ITA/UK on the second one and ITA/ITA on the third one.  If I change one, they all change. And if I don't apply the override, the issue seems to be the same.  Basically the last used language AND keyboard settings are stored on the cloud and applied wherever I log in.  How to set Windows 10 to remember, PER computer, the last used language/keyboard layout settings, without having that setting follow me? How do I write a cpp macro which expands to include newlines?