What to call a person who always says he can do everything?
Is there an idiom for people who boast too much?
TRON: Game A.I algorithm? I have a scenario where I have multiple threads adding to a queue and multiple threads reading from the same queue. If the queue reaches a specific size all threads that are filling the queue will be blocked on add until an item is removed from the queue.  The solution below is what I am using right now and my question is: How can this be improved?  Is there an object that already enables this behavior in the BCL that I should be using?  internal class BlockingCollection&lt;T&gt; : CollectionBase, IEnumerable {     //todo: might be worth changing this into a proper QUEUE      private AutoResetEvent _FullEvent = new AutoResetEvent(false);      internal T this[int i]     {         get { return (T) List[i]; }     }      private int _MaxSize;     internal int MaxSize     {         get { return _MaxSize; }         set         {             _MaxSize = value;             checkSize();         }     }      internal BlockingCollection(int maxSize)     {         MaxSize = maxSize;     }      internal void Add(T item)     {         Trace.WriteLine(string.Format("BlockingCollection add waiting: {0}", Thread.CurrentThread.ManagedThreadId));          _FullEvent.WaitOne();          List.Add(item);          Trace.WriteLine(string.Format("BlockingCollection item added: {0}", Thread.CurrentThread.ManagedThreadId));          checkSize();     }      internal void Remove(T item)     {         lock (List)         {             List.Remove(item);         }          Trace.WriteLine(string.Format("BlockingCollection item removed: {0}", Thread.CurrentThread.ManagedThreadId));     }      protected override void OnRemoveComplete(int index, object value)     {         checkSize();         base.OnRemoveComplete(index, value);     }      internal new IEnumerator GetEnumerator()     {         return List.GetEnumerator();     }      private void checkSize()     {         if (Count &lt; MaxSize)         {             Trace.WriteLine(string.Format("BlockingCollection FullEvent set: {0}", Thread.CurrentThread.ManagedThreadId));             _FullEvent.Set();         }         else         {             Trace.WriteLine(string.Format("BlockingCollection FullEvent reset: {0}", Thread.CurrentThread.ManagedThreadId));             _FullEvent.Reset();         }     } } Not sure if there is a cultural difference. In our family it is considered normal to frighten the child so that he behaves the way we want.  Example- Parent: Eat that quickly or the God will punish you! Parent: Don't go on the stairs. The ghost is hiding there and it'll catch you! Parent: Be quiet or the police will grab you!  Does this kind of behavior from the parent's side has any abnormal effects on the baby in the longer run? Can this behavior be accepted as normal?  Has any research been done on this aspect? I try unsuccessfully to install the ECW support (mainly to use ECW file in QGIS 2.2). We attempt to follow and adapt the howto provided by .  My first supprise was the repository ubuntugis-unstable is unavailable for trusty and the repository  doesn't have libgdal-ecw-src package. Finally in desperation we add ubuntugis-unstable for the raring distribution in source.list.  And apply the following commands   chmod +x ERDAS-ECW_JPEG_2000_SDK-5.1.1.bin ./ERDAS-ECW_JPEG_2000_SDK-5.1.1.bin # Select option desktop read only sudo cp -r ERDAS-ECW_JPEG_2000_SDK-5.1.1 /usr/local/ sudo ln -s /usr/local/ERDAS-ECW_JPEG_2000_SDK-5.1.1/Desktop_Read-Only/lib/x86/release/libNCSEcw.so /usr/local/lib/libNCSEcw.so sudo ldconfig sudo apt-get install libgdal-ecw-src sudo gdal-ecw-build /usr/local/ERDAS-ECW_JPEG_2000_SDK-5.1.1/Desktop_Read-Only   The ECW format seems to be installed  gdalinfo --formats | grep -i ecw   ECW (rw+): ERDAS Compressed Wavelets (SDK 5.1)   JP2ECW (rw+v): ERDAS JPEG2000 (SDK 5.1)   But .... Gis crash when a ECW raster file is open with the following message :   QGIS died on signal 4Abandon (core dumped)   If anyone have an idea Does the following series have a closed-form expression:  $$\sum_{k=0}^{\infty} \frac{z^k}{(k!)^2}$$  I know that it must converge because:  $$\sum_{k=0}^{\infty} \frac{z^k}{k!} = e^z$$  and the $(k!)^2$ denominator obviously increases more quickly than the $k!$ denominator.  This problem came up in computing the probability of a draw in a football match with each team's goal scoring modeled as a Poisson process.  Thanks,  John The Time That 2 Masses Will Collide Due To Newtonian Gravity Intuitive explanation of binomial coefficient formula Is FFmpeg missing from the official repositories in 14.04? Is it safe to travel to Miami Beach shortly after hurricane Irma? Two months ago my girl and I booked our vacation. We are from Berlin, Germany and wanted to see the U.S. Our first stop is Miami Beach at the 15th and we want to stay there for 3 days and continue to NYC. Later on we will go to Vegas and come back to Miami the 26th of September and stay there another 4 nights.  I expect the hurricane will be gone by the 15th, but I have no idea whether it will be okay. For me okay means that we can reach our hotel and sleep there.  What do you suggest? I know this question is primarily opinion based, but here in Germany we don't have hurricanes and I don't know how fast the state will recover. Firefox 33 doesn't see Java Plugin I am trying to enable Java (not JavaScript) in my Firefox v. 33 so that I can use applets within the browser.  Currently, I just get a dark gray box across the whole screen when I try to load an applet, without any error message or prompt to install plugin.  As per , I tried going into the Firefox plugin page to activate it, however, it wasn't there listed.  I do have Java 7 installed and it is in the path:  &gt;java -version java version "1.7.0_71" Java(TM) SE Runtime Environment (build 1.7.0_71-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)   What do I need to do to get Firefox to see my Java installation and recognize it as a plugin so that I can enable it and view applets inside the browser? Windows 7 booting fail with error code 0xc0000225 I have an HP laptop Pavilion DV4. Last night, I installed Ubuntu and there was an problem about partitioning the hard disk, and I think I deleted the Windows boot record.  I didn't burn a recovery disc but there is built-in recovery partition on the hard disk.  All I want to do is to perform a Factory Restore but I need recovery disc. I could burn that disc from the recovery partition using HP recovery manager, but can't burn now. I can't also boot HP recovery manager using F11 key, because it has the same boot error.  I want to boot Windows 7 and want to burn recovery disc. How can I boot into my old windows 7. If I can boot it, I can burn Recovery Disc and I will make Factory Restore if it's needed.  I didn't make any changes to windows 7 partition but I did a problem about Boot Record.  There is a system partition on hard disk with the size of about 200 MB.There is BOOT folder too.  Installation of Ubuntu also failed, so I'm booting from Live Ubuntu USB. How can I profile a multithread program in Python? I'm developing an inherently multithreaded module in Python, and I'd like to find out where it's spending its time. cProfile only seems to profile the main thread. Is there any way of profiling all threads involved in the calculation? Use of comma separating two adjectives If I had the phrase       two blond haired, blue eyed people    would the comma be out of place?    should I hyphenate "blond haired" and "blue eyed"? How to show similar display of codes of different programming languages in LaTeX I am very new to LaTeX and I am writing my thesis. In a chapter, I want to show my codes, which are in Mathematica.   I use the listings package as follows:  \documentclass{article}   \usepackage{listings}   \begin{document}   \lstset{language=Mathematica}    \begin{lstlisting}   Do[i^j,{i,1,10},{j,1,10}]   \end{lstlisting}    \end{document}   However, the output is much different to what the code looks like in the Mathematica IDE (even if I use other languages in \lstset{language=&lt;name&gt;}):    I read some questions on the site but, in some of them, the font or color of the codes were not the same. Could you please help me to display something like the picture below in LaTeX?  If it is important, I am using the BiDi package. maximize volume of triangle in given perimeter I wish to have long and short forms of command line options invoked using my shell script.  I know that getopts can be used, but like in Perl, I have not been able to do the same with shell.  Any ideas on how this can be done, so that I can use options like:  ./shell.sh --copyfile abc.pl /tmp/ ./shell.sh -c abc.pl /tmp/   In the above, both the commands mean the same thing to my shell, but using getopts, I have not been able to implement these? Why General Leibniz rule and Newton's Binomial are so similar? The binomial expansion:  $$(x+y)^{n} = \sum_{k=0}^{n} \binom{n}{k} x^k y^{n-k}$$  The General Leibniz rule (used as a generalization of the product rule for derivatives):  $$(fg)^{(n)} = \sum_{k=0}^{n} \binom{n}{k} f^{(k)} g^{(n-k)}$$  Both formulas can be obtained simply by induction; Newton's binomial also has a combinatorial proof . It's striking how these formulas are similar; is there a possible connection between them? I was thinking that maybe the General Leibniz rule could be obtained using a combinatorial argument as well (hence the binomial coefficients)... Integrating radial free fall in Newtonian gravity Force a rebuild of the start menu program index/database in Windows 10 With Windows 10 Microsoft migrated to a database-ish solution for indexing programs in search and the start menu, rather than just using a /startmenu/ directory. AFAIK the exact implementation is still pretty unclear, but there is something along those lines.  Updating from 8.1 to 10 causes it to migrate everything from /startmenu/ to the new system, which ignoring issues such as a (seemingly arbitrary) cap of 500 applications, works fine.  However this failed for me, and from googling seems to be an issue from upgrading with an older dev build, which then carried on to RTM.  So does anyone know a way to force a rebuild/re-index of the program library? Rebuilding the system wide index through control panel (also in &lt;=8.1) has no effect. The discrimination between short and long option is only `-`? On Unix system, options begin with - is short option, while options begin with -- is long option. Is my understanding right?