What to do with this specific scenario of a key reuse
How does one attack a two-time pad (i.e. one time pad with key reuse)?
Bluetooth earphones work fine until sleep. After resuming from sleep however, they appear to connect for a brief moment before disconnecting. On blueman, the error given is Resource temporarily unavailable. This issue arose only after updating to 18.04 LTS.   Here's the terminal output for lsusb:  Bus 001 Device 002: ID 8087:8001 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 004: ID 1bcf:0002 Sunplus Innovation Technology Inc.  Bus 002 Device 003: ID 04f2:b477 Chicony Electronics Co., Ltd  Bus 002 Device 002: ID 0a5c:21f1 Broadcom Corp. HP Portable Bumble Bee Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub How do websites block selecting text and how do I unblock that? There's a website () that somehow blocks selecting text. Also it blocks Ctrl+A to select everything, there is also no “Copy” in the popup menu.  What I have tried:  Some sites use JavaScript to block selection. So I disabled all JavaScript sources in no-script addon in Firefox. I tried the same site in Google Chrome with the Script Safe addon. Made sure that everything is blocked, still can’t select text. Mousepointer remains an arrow and not a text cursor also on the whole site.  Used about:config to disable JavaScript completely in Firefox. Still no effect.  I read that some sites use DIVs with the style display:block so I used Inspect to examine the styles of the site. There is not one mention of "block" on the whole website, not in embedded CSS nor in object style=-attributes.  The text is not an image or flash or some HTML5 canvas ect. Everything is within DIV and P tags but no style was found that might block the text selection.  How can the website still block any selection of text? Not to mention why browsers support such behaviours at all. I just want to use a selected word or sentence and want to search google for it using right mouse click. It’s pretty annoying when a website does such things and forces me to type technical terms and names into google by hand. It disturbs my workflow. $ \int_1^2\int_1^2 \int_1^2 \int_1^2 \frac{x_1+x_2+x_3-x_4}{x_1+x_2+x_3+x_4}dx_1dx_2dx_3dx_4 $ Overloading getter and setter causes a stack overflow in C# Making adult decisions are/is really not fun.     What is the proper answer and why? My gut says "is" but I can't explain why. What is the word for when someone is overly nice and actually isn't nice at all? What is the word for when someone is overly nice and actually isn't nice at all because of the unnecessary added information/comments? For example, they will say things like "Your hair looks so good that wayyyy omg you should do it that way ALL the time! Looks way better than how you usually do it." And the word I'm looking for is not passive aggressive and it is not sarcasm. There is a word for these types of people. What is it? These people think they're being kind but actually blunt and rude. Another example would be for someone to say "hey you're beautiful, but maybe if you didn't wear harsh makeup you would look better" and they intend to sound like they're being nice when you know they don't like you and are saying in out of spite. In Windows I used command-line clipboard copy-and-paste utilities...      pclip.exe and gclip.exe     These were UnixUtils ports for Windows (but they only handled plain text). There were a couple of other native Windows utilities which could write/extract any format.    I've looked for something similar in Synaptic Package Manager, but I can't find anything.    Is there something there, that I've missed? ... or maybe this is available in Bash scripting?    The type of utility I'd like will be able to read/write via std-in/std-out or file-in/file-out, and handle Unicode, Rich Text Format, picture, etc. clipboard formats...    NB: I'm not after a clipboard manager. Programming with Dynamic Divisor function asymptotics Define $\tau_{r}(n) = \sum_{d_1...d_r = n}1$.   One exercise in a book on sieve theory asked for an elementary proof by induction of the fact that   $$\sum_{n\le x}\tau_r(n) = \frac{1}{(r - 1)!}x(\ln x)^{r - 1} + O\left(x(\ln x)^{r - 2}\right)$$  The base case $r = 2$ is easy with reversing the order of summation.  The only other progress that I made was the fact that $\sum_{n\le x}\tau_{r}(n) = \sum_{d\le x}\left\lfloor\frac{x}{d}\right\rfloor\tau_{r- 1}(d)$, but I don't know how to proceed. Can anyone help me with this problem?     Let $f:[0,\infty)\longrightarrow \mathbb R$ be a continuous function such that for each $x&gt;0$, we have $\lim_{n\to \infty}f(nx)=0$. Then prove that $\lim_{x\to \infty}f(x)=0$.   Our teacher told first to prove Baire's theorem, and then show that this is a consequence of that theorem. I proved Baire's theorem, and I spend a few hours thinking on how Baire's theorem is related to this problem, but I couldn't find anything. I'd really appreciate your help. What diceless tabletop RPG techniques are there? I am interested in using a diceless resolution system for my roleplaying, but am not sure what my options are in that vein. I can think of basically two categories of diceless tabletop role-playing systems - systems which eschew any randomisation, and those which randomise by some method other than dice.  Examples  Non-random tabletop systems  One option is of direct comparison of stats or other game statistics without a randomization factor. The obvious example here is Amber DRPG, but I suspect that there are other narrative driven RPGs out there that I don't know about.   Even in Amber, situation resolution it is rarely by direct comparison between stats. Narrative techniques can be used to manoeuvre two characters into a situation which narrows the gap between their ranking, widens it, or brings other stats into the picture - the classic example of course being Corwin relying on his stamina to stretch out conflicts with his siblings such that it becomes a dominant enough factor that he can escape.  Other randomisation techniques  I have seen card-based randomization system. Over the years, I've played quite a few home brew games based on the original SAGA Dragonlance system, which was similar to the SAGA Marvel superhero system.  The basic mechanics were that you had a hand size according to your experience, and for any skill check you would play a card from your hand and replace your card from the draw pile. If you had a card of the right suit as the skill check (a strength card on a strength check) you would also draw a card from the draw pile and add that to your skill check, so a small trump was often worth more than a medium value card not of the correct suit. When you were wounded, you would discard cards to the value of the damage, but those cards wouldn't be replenished - your hand size would be reduced until you were healed. One nice aspect of the system was that it simulated fatigue beautifully, you might start a scene with a spread of high, medium and low cards, but as your high cards were played they would more often than not get replaced by lower value cards, until you were left with a bunch of useless cards and feeling very vulnerable.    The only other system I've played without dice was Everway which, if I remember correctly, used a combination of these techniques, stats based resolution, card resolution and GM fiat.  What I would be interested in is what other diceless resolution techniques exist, ideally with examples of tabletop diceless resolution methods people have tried and how they found them to play. I am trying to find ways to quantitatively describe the shapes of various polygons. For my project, these polygons represent lakes, rivers, lagoons, and parks. So they can be almost any shape. One easy metric is to calculate perimeter vs. area, which is at best an only slightly useful metric. But I would also very much like to be able to say something about the 'roundness' of a polygon. Or how 'compact' the shape is on a map.  The only way I can think of doing this easily is to calculate the area of each polygon in relation to a bounding box for that polygon (which I already have). But this seems like a poor solution.  So now I am thinking of something more like this - take the centroid of the polygon, add on a series of buffers of increasing areas (say 50%, 100%, 150%), then compare how much overlap there is between each buffer and the original polygon. A perfect circle will have perfect overlap at 100%, and I can use the 50% and 150% buffers to judge how much and in what way each polygon differs.  But even that feels cumbersome, and like a poor workaround for what somebody else has probably already figured out far better.  For reference, at a minimum I will need to be able to look at the resulting indices for the shape of various polygons, and be able to make an educated guess as to their source (River? Reservoir with dendritic shape? Lake/Lagoon? Park?) I need to use a metaheuristic algorithm to solve an optimization problem on a Python codebase.  Metaheuristics usually need to be written in C++ or Java as they involve a lot of iterations, while Python is weak from this point of view.  Questions:   do any Python metaheuristic packages which wrap faster languages as C++/Java exist? do any Python metaheuristic packages based on maybe cython on numba exist? other solutions? How to tell if a site is using Drupal 7 I know how to check , but is there a way to tell if a site is built with Drupal 7? Prove that a subset of a separable set is itself separable Calling Overridden Constructor and Base Constructor in C# I have two classes, Foo and Bar, that have constructors like this:  class Foo {     Foo()     {       // do some stuff     }      Foo(int arg)     {       // do some other stuff     } }  class Bar : Foo {     Bar() : base()     {       // some third thing     } }   Now I want to introduce a constructor for Bar that takes an int, but I want the stuff that happens in Bar() to run as well as the stuff from Foo(int).  Something like this:  Bar(int arg) : Bar(), base(arg) {   // some fourth thing }   Is there any way to do this in C#?  The best I have so far is putting the work done by Bar() into a function, that also gets called by Bar(int), but this is pretty inelegant. Graphics issues after/while installing Ubuntu 16.04/16.10 with NVIDIA graphics Auto-run scripts security options $(document) vs. $("document") Newton's cradle Why, when one releases 2 balls in , two balls on the opposite side bounce out at approximately the same speed as the 1st pair, rather than one ball at higher speed, or 3 balls at lower speed?