How do I resolve an error when attempting the "opam init" command? Here is the command:     opam init  Here is the error I am getting:     bash: /use/local/bin/opam: cannot execute binary file: Exec format error  Are there any suggestions on what we should try?
bash: ./program: cannot execute binary file: Exec format error I'm trying to run a program, but an error happens like this:  bash: ./program: cannot execute binary file: Exec format error   The result of file program was:  program: ELF-32-bit LSB executable, ARM, EABI4 version 1 (SYSV), dynamically linked(uses share libs), for GNU/LINUX 2.6.16, not stripped   How can I fix this error?  I'm using Ubuntu 14.04.2 (amd64) with VMware. I also tried with Ubuntu i386, but result was same.
How are Anonymous inner classes used in Java? How to protect SHTML pages from crawlers/spiders/scrapers? I have A LOT of SHTML pages I want to protect from crawlers, spiders &amp; scrapers.   I understand the limitations of SSIs. An implementation of the following can be suggested in conjunction with any technology/technologies you wish:     The idea is that if you request too many pages too fast you're added to a blacklist for 24 hrs and shown a captcha instead of content, upon every page you request. If you enter the captcha correctly you've removed from the blacklist.   There is a whitelist so GoogleBot, etc. will never get blocked.   Which is the best/easiest way to implement this idea?  Server = IIS    Cleaning out the old tuples from a DB every 24 hrs is easily done so no need to explain that. Is there a complete list of these? I've seen lots of Q&amp;A about "What does x icon mean" but it would be really useful if there were a complete list for reference! How to write 1, 2, ... as a subscript to a letter? In the movie Wonder Woman, we see Wonder Woman as a child who grows into an adult. During the same time we see the people around her - the Amazons - not seem to age at all. It's revealed that Wonder Woman is special.      She's actually a God and presumably immortal   The Amazons are, well, not quite human, but they aren't the same as WW.   It's also revealed that:      A long time ago there was a war between the Gods and all of them perished by the hands of Ares. Before Zeus died, he created Wonder Woman out of clay.   All of the Amazons have bronze aged weaponry and do not seem aware of the changes to the outside world. This suggests that they are several thousand years old.   Presumably Wonder Woman has a normal life span as a child and has just become an adult at the beginning of the film. This seems very incongruent to me. Maybe I missed something though.  So, does the film or the DC Extended Universe give any indication of how old Wonder Woman is? Or is my assumption that she's several thousand years old (based on the weaponry) correct, despite the apparent incongruity I brought up? Showing that $G/(H\cap K)\cong (G/H)\times (G/K)$ I'm using C# on Framework 3.5.  I'm looking to quickly sort a Generic List&lt;T&gt;.  For the sake of this example, let's say I have a List of a Person type with a property of lastname.  How would I sort this List using a lambda expression?  List&lt;Person&gt; people = PopulateList(); people.OrderBy(???? =&gt; ?????) Try to do something vs. Try doing something Is there any differences between      Try to do   And     Try doing   Thank you in advence. Upgrade to the latest PHP version in ubuntu 16.04 How can I escape white space in a bash loop list? I have a bash shell script that loops through all child directories (but not files) of a certain directory.  The problem is that some of the directory names contain spaces.    Here are the contents of my test directory:  $ls -F test Baltimore/  Cherry Hill/  Edison/  New York City/  Philadelphia/  cities.txt   And the code that loops through the directories:  for f in `find test/* -type d`; do   echo $f done   Here's the output:   test/Baltimore test/Cherry Hill test/Edison  test/New York City test/Philadelphia   Cherry Hill and New York City are treated as 2 or 3 separate entries.  I tried quoting the filenames, like so:  for f in `find test/* -type d | sed -e 's/^/\"/' | sed -e 's/$/\"/'`; do   echo $f done   but to no avail.  There's got to be a simple way to do this.    The answers below are great.  But to make this more complicated - I don't always want to use the directories listed in my test directory.  Sometimes I want to pass in the directory names as command-line parameters instead.  I took Charles' suggestion of setting the IFS and came up with the following:  dirlist="${@}" (   [[ -z "$dirlist" ]] &amp;&amp; dirlist=`find test -mindepth 1 -type d` &amp;&amp; IFS=$'\n'   for d in $dirlist; do     echo $d   done )   and this works just fine unless there are spaces in the command line arguments (even if those arguments are quoted).  For example, calling the script like this: test.sh "Cherry Hill" "New York City" produces the following output:   Cherry Hill New York City How can you draw more detailed/smoother images in pygame? Let $S$ and $T$ be finite non-empty sets such that $|S| = |T|$. Show that the function $f : S\to T$ is onto if and only if it is one-to-one. This is a recent homework bonus question assigned in my Proofs and Conjectures class. It (evidently) includes and evaluates our understanding of elementary-set theory and how to determine and prove that the function f is onto and one-to-one. I haven't been able to really grasp firmly how it is we do this. Help would be much appreciate, thank you. Approximation of real number to the power of irrational Say I have two numbers, $c\in\Bbb R^+\,,q\in\Bbb{R\setminus Q}$.  Is there a way to approximate the value of $c^q$?  This question bugging me because of how simple it sound in compare to how complicated it is. First I want to understand what a power of irrational number is, when talking about $\Bbb R^+$(I use this domain for sake of simplicity) we have very well defined actions for power a rational number, we can even use some theorems to get $c^{a/b}=\sqrt[b]{c^a}$, but when I am dealing with irrational number I can not do this.  I know that we have some definition for this because the solution of the equation $2^x=3$ is irrational.  So what exactly does it mean to take something to a irrational power and is there a way to approximate a numeric value for this? Configure HAProxy to include host headers for different backends I am exploring the use of HAProxy as a balancer in front of a set of web apis that run on IIS.   node1.myapp.mycompany.com node2.myapp.mycomapny.com   We are currently using Host Headers to correctly resolve the right web application on IIS.  For example, we may have otherapp.mycompany.com running on the same server/port, but using Host Headers IIS knows which one to serve up.  My initial attempt at HAProxy left me with 404 errors, because I was not including the host headers in my request, and so IIS was serving back the default site bound to the given IP, and not resolving by host name.    The fix left me with something like this:  frontend localnodes     bind *:80     mode http     default_backend nodes  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80   This works great for a single backend, but I am left scracthing my head on how to include the correct host headers depending on which backend is serving up the request:  backend nodes     mode http     balance roundrobin     option forwardfor     reqirep ^Host: Host:\ node1.myapp.mycompany.com     server web01 node1.myapp.mycompany.com:80     server web02 node2.myapp.mycompany.com:80   The above does not work whenever node2 is used because it doesn't resolve correctly in IIS (node2 in this case is on a different server, and therefore different IP.  In fact, if they were running on the same server/ip I suspect the request work "work", but they would all be served by node1 per the host header).     Is it possible to set the host based on the url of the backend used to serve up the request? If so, this implies my checks also need to provide the correct host header based on backend, how would that be done?   Edit: Am using HA-Proxy version 1.7.9 2017/08/18  Let me give this just a little more background.  We used to have just myapp.mycompany.com serving up api requests.  We need to expand it.  Our clients will still call myapp.mycompany.com, but that will just point to the HAProxy, which will balance it out to node1.myapp.mycompany.com and node2.myapp.mycompany.com.  Our current server configurations have us binding a single IP address on each server, so we use host headers to resolve. "At the time" versus "at that time" I did a fresh install of Ubuntu 16.04. /dev/md1 contains an ext4 filesystem that is mounted at /:  /dev/md1 on / type ext4 (rw,relatime,data=ordered)   Now I want to set the automatic filesystem check interval to one month, but I'm getting a strange error that I find no useful information about:  &gt; tune2fs -i 1m /dev/md1 tune2fs 1.42.13 (17-May-2015) tune2fs: Filesystem has unsupported read-only feature(s) while trying to open /dev/md1 Couldn't find valid filesystem superblock.   Rebooting didn't help. On another machine running Ubuntu 12.04, the same command works like a charm.  Does anyone have an idea what's wrong?  The command tune2fs -l /dev/md1 works fine, by the way. Here is its output:  tune2fs 1.42.13 (17-May-2015) Filesystem volume name:   &lt;none&gt; Last mounted on:          / Filesystem UUID:          38366a40-bbe1-476b-acfe-d271be6335eb Filesystem magic number:  0xEF53 Filesystem revision #:    1 (dynamic) Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum Filesystem flags:         signed_directory_hash Default mount options:    user_xattr acl Filesystem state:         clean Errors behavior:          Continue Filesystem OS type:       Linux Inode count:              8380416 Block count:              33521664 Reserved block count:     1676083 Free blocks:              32419430 Free inodes:              8312762 First block:              0 Block size:               4096 Fragment size:            4096 Group descriptor size:    64 Reserved GDT blocks:      1024 Blocks per group:         32768 Fragments per group:      32768 Inodes per group:         8192 Inode blocks per group:   512 Flex block group size:    16 Filesystem created:       Thu May 31 10:01:27 2018 Last mount time:          Thu May 31 10:49:41 2018 Last write time:          Thu May 31 10:15:14 2018 Mount count:              7 Maximum mount count:      -1 Last checked:             Thu May 31 10:01:27 2018 Check interval:           0 (&lt;none&gt;) Lifetime writes:          5782 MB Reserved blocks uid:      0 (user root) Reserved blocks gid:      0 (group root) First inode:              11 Inode size:               256 Required extra isize:     32 Desired extra isize:      32 Journal inode:            8 First orphan inode:       4325378 Default directory hash:   half_md4 Directory Hash Seed:      9d55d989-2c2b-4ad8-a29e-53c8798ec68e Journal backup:           inode blocks Checksum:                 0x3d9f8d23 Should the noun after "any" be singular or plural? I always thought with "any" I should use the plural, but on the internet I can find both:   It can be found in any book. It can be found in any books Do you have any books? It can be said in any language.  This can be understood by anyone.  It has been used in any form.   So, what's correct?  Is there any rule? What is the limit of cabin baggage on Wizz Air flights? What's the weight limit on Wizz Air, for cabin baggage?    I can't find anything about the weight on their website. I know that for Ryanair is 10kg, and EasyJet say they don't have a limit for weight. How to get the current time in Python Capturing speaker output in Java