How far removed from source does one need to be to avoid Insider Trading?

As I tried to research and ponder , I couldn't help but wonder:   How many steps (i.e., persons) removed does one need to be from a source of material/non-public information regarding a company to avoid accusations of ?   For example, if the CEO tells a trader that tells his brother who tells his barber who tells his son who tells his wife who invests in the company, is the last person guilty of anything illegal?   Or, is there no degree of separation that makes having the information legal?    In other words, is it always illegal as long as a court can prove the flow of insider information? Does the final person's intent and/or ignorance that the information they received is material/non-public factor into the legality of any trades made following receipt of insider info?


Is there a way to dispute failed audits?

Is there a way to challenge "failed" audits? The system has failed me a few times already, where I thought the questions/answers were admissible, even if low quality:        So is there any way to challenge these?


"have you ever gone to" to ask past experience

is it correct to ask: Have you ever gone to Spain? if i want to know whether or not he had visited Spain in his life (experience)?


Plural form of noun before noun for the title of position in organizations

For naming job tile or position in organizations, I found that sometimes we use plural form of noun for describing another noun. For example     Corporate Communications Supervisor   and     Corporate Communication Supervisor   I used NGram and found that Communications Supervisor is used more widely than Communication Supervisor    Is there any rule for when to make the noun ,that is describing another noun, plural or singular?


70s/80s Animated space movie, two species - one tentacles and glass spheres

I am looking for the name of a kids animated space movie from the 70's or 80s.  I vaguely remember the people or one species thought the other creature/species was bad. The bad "creatures" looked like a beetle type thing that had many round glass spheres like eyes and tentacles.   By the end they realise the creatures are actually good and need help to survive and the tentacles can heal.


Is there somewhere where I can ask general programming or best practice questions?

Sometimes it would be really helpful to ask other users how they would deal with a certain problem, or what best practice would be with regards to solving a problem. This does not involve specific code discussion.  Where can I post such questions? From reading the rules StackOverflow doesnt seem appropriate?   If there isn't such a place, maybe one should be created?  Andy


How can I make a material only apply to a side of a plane?

How could a one-sided material be achieved with the Cycles renderer?  I would like to create a plane that is completely transparent from one side, and a mirror from the other side.  It would be cool if Cycles/Blender simple supported backface culling like the game engine. But I guess it doesn't?  How could something like that done with nodes?


How can I stop the regex at first match?

I have a string which goes like this.  010002 D324Y56HY INTEREST   010002 SAD21 INTEREST   I am trying to create two groups here with the regex (010002)[\s\S]\*INTEREST  But the regex matches last occurrence of INTEREST. I need it to stop the matching at the first occurrence and create another group with the next occurrences. Can someone guide me please?  Please find the link below.


"Every linear mapping on a finite dimensional space is continuous"

From      Every linear function on a finite-dimensional space is continuous.   I was wondering what the domain and codomain of such linear function are?   Are they any two topological vector spaces (not necessarily the same), as along as the domain is finite-dimensional? Can the codomain be a different normed space (and may not be finite-dimensional)?  I asked this because I saw elsewhere the same statement except the domain is a finite-dimensional normed space, and am also not sure if the codomain can be a different normed space (and may not be finite-dimensional).  Thanks and regards!


Number of random guesses needed to guess a number in a given set

I am not very good with probability theory and related stuff, so I would very much appreciate your help regarding a problem I have.   Imagine arbitrarily picking an integer $n\in [1,N]$ I want to guess $n$ by running a random number generator several times The random number generator spits out numbers $\in [1,N]$, with uniform distribution The random number generator does not keep track of previous guesses (i.e. can use the same guess more than once)   My question is: how can I estimate how many times do I have to run the random number generator, on average, before hitting the chosen number $n$?  I searched for an answer and found other posts, such as this one "", but there it was possible to get hints (higher/lower), so it's not really the same thing.  Thank you so much  EDIT: I wrote a python script to do some experiments and get some intuition.  Looks like on average it takes $N$ guesses, but I am not sure whether this holds in general, and why this is the case.  Here is the script:  import random import numpy  noTests = 100000 maxNumber = 100  noGuesses = [] targetNo = random.randint(0, maxNumber)  for i in range(1, noTests):      guessNo = 1      while True:         if random.randint(0, maxNumber) == targetNo:             break         guessNo = guessNo+1      noGuesses.append(guessNo)  avg = numpy.mean(noGuesses)  print "Average number of guesses to guess a number in [0,%d] is %d"%(maxNumber,avg) print "Estimated over %d tests"%(noTests)


exponential function and mathematical induction

May I ask how to solve the problem? Use mathematical induction to prove that for $x\geq0$ and positive integer $n$, $$e^x \geq 1 + x + \frac{x^2}{2!} + \cdots + \frac{x^n}{n!}$$


Is it possible to detect if everyting in the Universe is changing size?

This may be a trivial question, but I cannot find a good answer to it. What would happen if the size of everything in the Universe is multiplied by some constant factor at the same time, let's say everything doubles its size for instance. People double their size, houses double their size, streets, towns, Earth... up to the whole known Universe. The relative proportions and distance between objects would remain... If we measure our own size with a meter, the reading would be the usual one. From current theories, it this something that can or cannot happen? that can or cannot be detected? Would that change our perception of constants like c, gravity, or temperature? Why? (in very simple terms...) Is there any reference, any previous study of this problem?  (This part has been added/edited to improve the question) From , I went to  by , following  advice. This section describe in better words my idea. Citation:  8.2.6 Observability of expansion [...] To organize our thoughts, let's consider the following hypotheses:  The distance between one galaxy and another increases at the rate given by a(t) (assuming the galaxies are sufficiently distant from one another that they are not gravitationally bound within the same galactic cluster, supercluster, etc.). The wavelength of a photon increases according to a(t) as it travels cosmological distances. The size of the solar system increases at this rate as well (i.e., gravitationally bound systems get bigger, including the earth and the Milky Way). The size of Brooklyn increases at this rate (i.e., electromagnetically bound systems get bigger). The size of a helium nucleus increases at this rate (i.e., systems bound by the strong nuclear force get bigger).  We can imagine that:  All the above hypotheses are true. [...]   The author then propose to look at the first claim, all hypotheses are true...  If all five hypotheses were true, the expansion would be undetectable, because all available meter-sticks would be expanding together. Likewise if no sizes were increasing, there would be nothing to detect. These two possibilities are really the same cosmology, described in two different coordinate systems. But the Ricci and Einstein tensors were carefully constructed so as to be intrinsic. The fact that the expansion affects the Einstein tensor shows that it cannot interpreted as a mere coordinate expansion. Specifically, suppose someone tells you that the FRW metric can be made into a flat metric by a change of coordinates. (I have come across this claim on internet forums.) The linear structure of the tensor transformation equations guarantees that a nonzero tensor can never be made into a zero tensor by a change of coordinates. Since the Einstein tensor is nonzero for an FRW metric, and zero for a flat metric, the claim is false.  The author says this claim is impossible, the demonstration is not understandable for me as I'm not an expert in the domain, and don't know what are FRW or Ricci and Einstein tensors.


I found this creature climbing on the lower part of a wall inside apartment. Can you distinguish if it's a bed bug nymph or a booklouse? Sorry the photo quality isn't great, because it's so small (2 mm). Thanks in advance!


I want to change my OS from windows to UBUNTU. So what I did is below.  I downloaded the Ubuntu 16.04.3 LTS from  saved it in a usb and set the boot order of USB to be the first boot in BIOS. But the installation failed.  What causes the installation to fail? after saving the changes in BIOS the laptop restarts and goes to windows      Additional information  Laptop is new and i am installing to change os to practice programming better.


How to compute conditional expectation given sum of variables?

Given i.i.d. $\{X_k\}_{k=1}^n$ I wonder how I can compute $$ \mathbb{E}(X_1 + 2X_2|\sum\limits_{k=1}^n X_k). $$ I realize that I should expand it as $$ \mathbb{E}(X_1|\sum\limits_{k=1}^n X_k) + 2\mathbb{E}(X_2|\sum\limits_{k=1}^n X_k). $$ But what to do next? How can I extract knowledge from the sum?


Turn off Chrome/Safari spell checking by HTML/css

Is there a way for a web developer to turn off Chrome/Safari/WebKit's spellchecking on particular input or textarea elements? I mean either by special tag attribute or a proprietary CSS instruction.  There is a CSS instruction for turning off outlining of inputs so I thought that might also exist. I know how a user can do it.  Or, as a user, can I disable it for some particular domain?


Word order: already had been or had already been...?

Here is the sentence from a New York Times article: "...and three women whos homes already had been feng shui-ed by our instructor..." Could the words 'already' and 'had' been flipped in this case? Why or why not? I am just trying to understand this a bit more. Thanks!


Ubuntu 18.04 - Lock Executable to Ubuntu dock

In Ubuntu 16.04, I was able to lock executables to the Unity Launcher. While they were open, I just had to right click, and select "lock to launcher". Then they would stay in the launcher even when they were closed.   In Ubuntu 18.04, I am able to do this for installed applications, by right clicking and selecting "add to favorites" However, this does not work for executables.  How can I lock an executable to the Ubuntu dock in Ubuntu 18.04 with GNOME?


This is an exercise of Advanced linear algebra of Roman     Find an abelian group $V$ and a field $F$ such that $(V,F)$ can define two distinct vector spaces.   That is: I must find two distinct definitions of scalar multiplication. What I did was choose $V:=(\Bbb R^2,+)$ as the abelian group, and $F:=\Bbb C$ as the field, and defined scalar multiplication by   $(a+bi)\cdot (x,y)=(ax-by,by+ax)$, this defines a vector space because its just the complexification of $\Bbb R$ as a vector space. $(a+bi)\cdot (x,y)=(by+ax,ax-by)$ this is symmetric from the above definition.   But I dont found other example. Can someone show me a non so trivial example, or provide me a general rule to define such alternative scalar multiplications?    UPDATE: it seems that, from a known scalar multiplication defined by $d$, I can define an alternative scalar multiplication by $d\circ f$, where $f:V\to V$ is a group automorphism.


How do you determine the winner of a hand?

In Texas Hold'em poker, there are some cases where a particular card, often called kicker, acts as a tiebreaker between players to determine who wins the pot, or if the pot has to be shared.  For some combinations such as three or four of a kind, there is no doubt: the kicker is the 5th card of the chosen combination, and determines the winner.  Example     Alice has 7 and 10   Bob has 7 and K   On the board are 7, 7, 2, 3, 4   In that case, both have a three of a kind. But because Bob has a king and Alice only a 10, he wins.  Most of poker websites explaining the rules clearly mention the role of the kicker applying to three of a kind and double pairs. But much fewer say something about colors, straights and full houses, and I found many contradicting answers. I also asked the question to some used online poker players and they also gave me contradicting answers.  I have tried to search for official tournament rules, but most of them only explain what happens with bad behaviors, bad deals, incorrect or confusing betting, showing cards when you shouldn't, acting when it's not your turn, etc. without mentioning subtleties about combinations at all.  To simplify my question, I will take three examples; I think it's better to start with examples before getting to the general answer if one exists. So, what's happening in the following 3 examples? Could you give a more generalized answer?  Example 1 - Flushes     Alice has 2♣ and 3♣   Bob has 4♣ and 5♣   On the board are 6♣, 8♣, 10♣, 2♥, 5♦   Contradicting answer 1: it's a tie, because the highest card included in the flush is the 10, which everybody chooses to include in their 5 showdown cards. Contradicting answer 2: Bob wins, because he has the greatest private card that is part of the flush  Example 2 - Straight     Alice has 6 and K   Bob has 6 and J   On the board are 4, 5, 7, 8, 10   Contradicting answer 1: it's a tie, because the greatest card in the straight is the 8 for both Alice and Bob Contradicting answer 2: Alice wins, because she owns an extra king, compared to the jack of Bob  Example 3 - Full house     Alice has 3 and 7   Bob has 3 and 6   On the board are 3, 3, 2, 2, 5   Contradicting answer 1: it's a tie, because one is supposed to choose only five cards to make a combination, and a full house is already five cards. There couldn't be any kicker, and thus their showdowns are strictly equals. Contradicting answer 2: Alice wins because of her extra 7, compared to the 6 of Bob  Thank you very much for your answers.  Note: I'm unable to post next to you, so I edit my own post; strange not be able to answer to an answer.  Ok, So if I summarize what you are saying :   In the flush case, Bob wins because at some point, their hand differs. Technically, I can continue comparing the highest private card to decide who wins. I had it correct. In the straight case, if the highest card of the straight is public, then it's technically always a tie, no matter what the players had as second private card (asuming that only one of the two cards was part of the straight). In a full house if both players have the same triplet and the same pair, it's always a tie, no matter what the players had as second private card (assuming again that only one of the two was part of the full house).   Please confirm me that what I summarized is correct.  Thank you for your answer.


On both Earth 1 and Earth 2, the Time Vault has what appears to be braille text all over the its walls.    What, if anything, does the braille say? Does it read the same between universes?


I use the CryptoStream class to encrypt a text. If I want to decrypt it, I have to know the key and the iv so I can get the original text back, but where do I save them, so that they cannot be stolen?  With tools such as cheat engine, you can read values from the RAM of other programs and when I save the key/iv in a variable you can read them too. Is there a way to prevent that? And is there an way to save the decrypted Text instantly in a SecureString? So it is never saved as a plain string?  (I don’t know anything about security associated with c#. If anyone can recommend a crash course or a book, I'd be grateful!)


Show "Edit summary" common comments like a tags

It would be cool to show the most common edit summary comments like a tags, to be able to fill this field it by clicking, not by typewriting.  E.g., like this:


UK transit visa on arrival for Italian refugee or travel documents holder

I'm gonna travel from Stockholm to Rome via British airways but have long layover in London Heathrow.  My question is:   Do I need transit visa to go outside airport and just explore city? if I do require visa can I get that visa on arrival to UK on the airport from British border control officer?


How to detect an environment variable in MVC5?

I have 3 environments. 1 Dev, 1 Staging and 1 PROD  I want to create an env variable so that when the application runs, it knows if its in Dev or Staging or PROD.  I'm guessing that I can add this to the Web.config file. If this is true, how can I do it? And how can i use it in my View?


how might I password protect and encrypt a folder in the Ubuntu terminal?

Just wondering how to password protect and encrypt a folder in the Ubuntu 20.04 terminal (not OS)? Any help is appreciated Thanks


Processing Tools Help Documentation for QGIS?

I'm used to ArcGIS but am attracted to QGIS for its open source (free) nature.  At present I'm trying to use native QGIS processing tools and also script my own algorithms (was used to geoprocessing with ArcPy).    The main hurdle I find with QGIS is the lack of documentation on how to use the existing tools (something similar to ArcGIS Help website).  ArcGIS Help is excellent.  Usually a simple read through their description and examples for any given tool has me able to use it very quickly.  I realize Esri has the budget for this and QGIS is open source, free, and programmed by volunteers, but without good explanations on how to use QGIS tools how can one expect to master them as much as the ArcGIS tools?    Example:  ArcGIS Help's entry for their  tool   Is there a book, a website, etc. where similarly helpful instruction is given on the tools available in QGIS and how to use them?  I am familiar with using "processing.alghelp(..tool name..)" in QGIS' python console, but the "help" results offer no real instruction on how to use the tools.


This is probably too many questions at once but my time is short as the semester is coming to an end and I really want to work this issue out before my class time is over.  Please humor me.  Yesterday I asked how to move the vertices so that they stitch together and got two answers that worked quite well.  At first though selecting the vertices that I needed to move to the origin of the "Y" axis and scaling them to "zero Y" left a split with parallel lines of vertices because I had not set up my mesh exactly correct from the beginning of my modeling effort.  When I moved the mesh so that they them moved to that "zero Y" point I found that I could not drag them accurately.  I went a little beyond that point each time so I then scaled them again to "zero Y" and things looked better.  It would help if I knew a way to accurately move the mesh to that point.    Today I find that I cannot flip the normals so that I can see the material on the mesh.  Supposedly, according to the book I am using in class I can find it in the Mesh Tools while in Edit mode.  That command may have been there in the release of blender that the text was written to, but it doesn't appear in my 2.72 Blender.    I tried selecting all the vertices in Edit mode as directed and pressing "Ctrl-N" as directed, but all that did was make the normals appear to face the wrong way on both sides of the Mesh.  Can you help with this? Also, Please tell me how to make Blender have only one screen after I have split it into two vertically.  It is hard to get the Properties window to show up where I want it to be when I have two windows up.


How to crop everything hidden by an vector OPACITY mask in Adobe Illustrator?

I have lot of objects which are bounded by opacity mask.   I need to get rid of my opacity mask, clipping each object where it intersects with my mask. It is a lot of hassles to do it manually.  Is there some other easy way? Some automatic clip of all objects?


The starting position for most new extract brewers is to use a partial boil set up.  Defined as using a pot smaller than the intended batch size, all the ingredients are boiled in a smaller volume.  Then the wort is diluted to the final desired batch size.  (Often the dilution step is used as part of a cooling step)  What are the Ups and Downs of both Partial vs. Full boils?


How to extract string between two characters with sed

I need some help with sed. I have tried to look for information to do this but I couldn't find any specific and people hardly provide an explanation of the provided solution so this makes difficult to understand how sed works.  Basically I have files with the following format:  NAME_DIGITS_ddd-11s-21a-ds_DIGITS_DIGITS.xml   I want to copy the first DIGITS (e.g 00004574), which is the string between the first and second underscores.  Any idea of how to do this?  Considering that the first digits could be 0 what can I do to delete them?  I would appreciate any example for these two cases and an explanation would be really welcome too.  I have achieved the opposite: delete the characters between first and second underscores with: sed s/_[^_]*_/_/ but cannot see how to do what I really need.


Can a "staff arcane focus" also act like a Quarterstaff?

Can I use a Quarterstaff as an Arcane Focus (Staff)?  In my opinion it would make sense.  They both even have the same weight!   The reason I'm asking this is because I'm making a wizard and it would be awesome if the answer to this question is yes!


Sending Email to additional email address on person account

I am working for a telco client and I have an interesting use case where I need some help. We have a person account enabled in Salesforce which will be used to send a communication on the closure of a case. Now the customer has a primary email address but he can also provide a temporary email of his son if he wants the case rep to contact his son as he is out of town. now we want to send the email via SFMC to his son for that particular case without creating a new person account and changing the customer preferred email address. Does any one have any suggestion on this? How I can just send a email to an additional email address that I have capture without impacting the primary email address of the customer and indeed all subscriber list should be updated with son email address?


Why does my computer go "New USB device" every time I plug one into a different port?

Let's say I have a mouse. I plug this mouse into slot 1 out of 4 on a computer. It goes through the new device detected and all of that, which is fine. But if I come back later with the same mouse and plug it into say slot 3, it does the detecting all over again! Why is this?


Is there a good way to represent file structure in a question/answer?

I'm always looking for the best way to represent a file structure on my posts.  I generally use this one:  Project  |  +-- file 1  |      +-- dir 2  |  |    |  +-- file 2.1  |      +-- dir 3  |  |    |  +-- file 3.1  |  +-- file 3.2  |      +-- dir 4  |  |    +  |-- dir 4.1   Is there a real convention for those representations? Is there any script (Windows, Linux or web app service) that provide formatting?  Any advice / tool / recommendation / ISO ( ? ;) ) would be appreciated.  Some examples:


Yesterday, I voted to close a question as a duplicate. Today, I'm curious if the question is still open, but I did not keep a link to that question.  Is there some way to see a list or history of questions that I voted to close? On my activity tab, I can only find "reviews", which does not include questions that I vote on outside of reviews.


How to give items in minecraft java 1.16.2 that have enchantments

I'm trying to make a Minecraft java map and I'm confused about how to give enchanted items, and because I need multiple at a time, I can't use /enchant. I have no idea about how to go about this as after I input the amount it doesn't let me input anything else.


When is the new closing system going to be turned loose?

I'm 3k on SO, and I'm anxious for the new closing/on-holding system to break out of its meta prison.   What is the ETA for the new system to come to other sites?


Integral of $\int_{-\infty}^\infty x^2e^{-\frac {(x-\mu)^2}{2\sigma^2}}dx$

Calculate this integral  $\int_{-\infty}^\infty x^2e^{-\frac {(x-\mu)^2}{2\sigma^2}}dx$  I know the trick can be using $E[x^2]=var[x]+E^2[x]$, but how to solve it in an analytic way?


how to get the records which deleted from recycle bin in salesforce

I have a doubt, please give a suggestion. Here is it.       can we get the records which we deleted from recycle bin. If it is there, please share the answer.   Thanks and regards KS Kumar


Can a Terminal window be resized with a Terminal command?

So that I could resize the window to a certain size from within Terminal.


I'm excited by the sound of Blender 2.80, but I'm reluctant to abandon 2.79 as I've spent so long learning it very slowly, (I'm 63). Can I load 2.80 without destroying 2.79? Will the blend files I made in 2.79 work in 2.80? PS: I don't expect to be able to run both at the same time.


I am wondering whether I have to use hyphens in this case? I haven't used them before in the text this sentence is included in, but they seem necessary here. or maybe I could just avoid them? .Furthermore, this master is crucial to enhance her capacity in researching and developing underground-water-related projects, which are necessary to assist in meeting the urgent demand of water for zones with scarcity. .Furthermore, this master is crucial to enhance her capacity in researching and developing underground water related projects, which are necessary to assist in meeting the urgent demand of water for zones with scarcity.


java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString on a null object reference

import android.content.Context;  import android.content.SharedPreferences;  import android.os.Bundle;  import android.util.Log;  public class MainActivity extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          SharedPreferences           sharedPreferences=this.getSharedPreferences("com.example.sharedpre",Context.MODE_PRIVATE);         SharedPreferences.Editor editor = sharedPreferences.edit();         editor.putString("username", "VJ").apply();         String user=savedInstanceState.getString("username","");          Log.i("username",user);     } }


Changing visudo caused a problem with sudo

I added something in visudo and now when I want to run sudo it gives me the following error: Sorry, user reza is not allowed to execute '/bin/su' as root.  What should I do?


Combination Problem Involving Integers 1-9 to Reach a Sum of 10

I received a word problem that goes like this.  A local kindergarten is thinking of making posters that show all the different ways of adding two or more integers from 1 to 9 to get a sum of 10. If there is enough space on each poster for up to 50 possible solutions, how many posters will the school need to make?  (Note: sums that contain the same number but in a different order are considered to be different; for example, 1 + 9 and 9 + 1 are two different solutions.)  What is the answer to this problem, and more importantly, how do I solve it?  To be clear, a solution such as,"1+1+1+1+1+1+1+1+1+1+1," is a valid one.  Please make your explanation somewhat thorough and be available to explain further. Thanks!


Jutifying: irrational + rational = irrational

I am not sure how to show this. This is what I tried.   Proposition: If x is rational number and y is an irrational number then x+y is an irrational number.  Logically speaking this is  P=x is rational  Q= Y is irrational  R= x+y is irrational  $P\wedge Q \rightarrow R$  Explanation: What I did  $x=\frac{p}{q}$ P and Q integer  Y cannot be written as the a rational by definition  So therefore  $x+y=\frac{p}{q}+y$  Will not be a rational number as there cannot be a common denominator.


Could tell me someone why the solution for Fermat's last Theorem is important? Which impact does it have on other things?  For me the statement itself seems not so useful, but maybe there is a big Impact I don't know.


Selling a PC that is currently running Ubuntu. I need to switch back to windows 10 for the buyer. It previously had windows 10 installed. I downloaded the windows 10 iso file,and copied all of the files to a formatted USB drive. I have rebooted from the USB drive, but I dont think its working. I installed unetbootin to make a bootable USB drive that way, but i cannot find the iso file in unetbootin. It was difficult to find the iso file just to copy it to the USB drive manually, i had to find its location through the internet browser i used to download the file, but i cannot find it from my desktop. When I can find it, there is a "lock" icon over the file, im not sure if that is relevant as I am pretty bad with computers. How can I re-install windows and get rid of Ubuntu the easiest way? I dont care what happens to any of my data.


Notepad++ Gurus: how to unhide notepad++ search-result window

When you use find-all and find-in-files in Notepad++ a search-result window appears below the screen. On my system this window have been hidden (possible I have dragged it to minimize) and it cannot be unhide.  I have tried to drag all bars in notepad++ window; but nothing was able to unhide it. The window is still there - somewhere in dark - and if I press F7 and enter, the first search result will be open. but the search-result window is still hidden.


What order do multiclass characters spend Hit Dice at the end of a short rest?

This is a followup question to "".  Under the rules for Short Rest (PHB p. 186, or ):     A character can spend one or more Hit Dice at the end of a short rest, up to the characters maximum number of Hit Dice, which is equal to the character's level. For each Hit Die spent in this way, the player rolls the die and adds the characters Constitution modifier to it. The character regains hit points equal to the total.   I have a multiclass character - level 1 Monk (d8 Hit Die), levels 2 - 4 Wizard (d6 Hit Die). At the end of a short rest I can spend up to 1d8 and 3d6 Hit Dice to regain hit points.  Can I spend the dice from my pool in any order? Or do I have to spend them in the order that I got my class levels - so always a d8 first, then the d4's?


What's a good way to show people that they can swipe on an app

I'm trying to give people a visual clue that they're able to scroll left and right inside of an app for the iPhone. I tried to show that you're able to scroll left and right by having a tiny part of the next screen displayed.    I then tried to go with a left and write button approach but that also seemed not to work. What's a good way to show people that they're able to scroll left and right.


How can I include the cursor in the screenshots created when PrtScr is pressed?

I want to make it so that when I press the print screen key on my keyboard, it actually includes the cursor. I know that it is calling gnome-screenshot, but I can't find any way to change the arguments it is using with it. If anyone knows about this, it would be greatly appreciated.


Does anyone have a method to remove the "Ads by Speedcheck" malware?  My mom has it and it completely crippled her computer.  I googled it and just got a bunch of sites (ironically) that were short on info but big on ads.  No "legit" hits (such as SE) came back.  The one blog I did find that didn't look like an obvious ad trap gave instructions that didn't work.  I should probably just smoke the HD and start from scratch, but if anyone knows of a tried and true method I'd like to hear it.  She's using Win 7, which probably makes a difference if your suggestion is manual.


Do the negative effects of wish apply to free wishes?

The description of the DnD 5e wish spell states "Finally, there is a 33 percent chance that you are unable to cast wish ever again if you suffer this stress." There are items and situations that grant a "free" wish spell. An example of this is the deck of many things (moon card). Now,   if a player gets such a free wish, is there still a chance that they will not be able to cast wish ever again? if a player already failed the "33% test" in the past, will they be able to use a free wish when it is granted to them?   I know that a DM has, of course, the final say in this, but I am curious to what is common among other DMs. The thing is that 1d3 wishes from a DoMT sounds fun, but it seems a bit disappointing to me if a player gets such a card but is already not allowed to use wish spells anymore (or if the card causes a player to be unable to use wish ever again).


How calculate sequential values based on group field?

In field calculator i calculate sequential values in field [ORDER_ID]  What need change in script to calculate sequential values based on group field [GROUP_ID]. I select values manually and use autoincrement () in Field Calculator.  Parser: Python  Expression: autoIncrement() Pre-Logic Script Code:  rec=0 def autoIncrement():  global rec  pStart = 1  pInterval = 1  if (rec == 0):    rec = pStart   else:    rec = rec + pInterval   return rec   This is the result. Field ORDER_ID is already calculated manually (i select GROUP_ID and use autoincrement).     What changes script needed to use it in field calculator?


Unable to reload same gif image, if used twice in a page

I am using same gif image twice in a page. Both the images will be hidden initially. Based on certain criteria I am showing those gif images (when clicked on particular target one gif image will be shown at a time). I am unable to reload the gif image. See the attached plunker  1)           <script>     var img1 = document.getElementById("img1");     var img2 = document.getElementById("img2");      function toggle1() {         if (document.getElementById('gif-1').style.display == "none") {             document.getElementById('gif-1').src = '';             document.getElementById('gif-1').src = 'http://insightgraphicdesign.net/wp-content/uploads/2014/07/coke-responsive-logo.gif';             document.getElementById('gif-1').style.display = "block";         } else             document.getElementById('gif-1').style.display = "none";     }      function toggle2() {         if (document.getElementById('gif-2').style.display == "none") {             document.getElementById('gif-2').src = '';             document.getElementById('gif-2').src = 'http://insightgraphicdesign.net/wp-content/uploads/2014/07/coke-responsive-logo.gif';             document.getElementById('gif-2').style.display = "block";         } else             document.getElementById('gif-2').style.display = "none";     } </script>   But if I use one gif image it is working properly, see this plunker (sometimes it is not working may be plunker blocking due to security. better put it in a html and check)  2)     https://plnkr.co/edit/74huqUZmkoc6T6BdNOlz?p=preview      <script>     var img1 = document.getElementById("img1");      function toggle1() {         if (document.getElementById('gif-1').style.display == "none") {             document.getElementById('gif-1').src = '';             document.getElementById('gif-1').src = 'http://insightgraphicdesign.net/wp-content/uploads/2014/07/coke-responsive-logo.gif';             document.getElementById('gif-1').style.display = "block";         } else             document.getElementById('gif-1').style.display = "none";     }  </script>   can anyone help me to make the plunker 1 to work? (both gif images should reload whenever I click the two buttons).  Thanks, HariKrishnan P


The unclickable link: hover options in chat have thwarted my quest for knowledge

While perusing my local chat room, I espied a link in a  that I desired to visit:    But Lo! Whereupon I attempted to click said link, the hover options appeared and blocked my passage:    Woe unto me! The link is unreachable! However shall I proceed?  Mayhaps the interface can be improved so none shall have to suffer as I have this day.


How can you tell windows to prefer a swap file on one driver over another?

I have a machine with both a SSD and a HDD in it.  I have two Windows installs one on the HDD and one on the SSD.  I've partitioned the SSD to have one OS in the majority of it and a small partition for swap on  in the remainder. The HDD has a different install of Windows.  For the Windows that is installed HDD I setup the swap to have swap files on both drives (HDD and small SSD partition).  When I look at prefermance monitor stats, it looks like the HDD swap is used before the SSD swap.  How can I tell Windows to use the secondary SDD swap file before the HDD one?


Question about the best way for structuring website directories?

I am designing my Wordpress website directories and url structure, my website is a listing of doctors.  I have a review section for collecting user reviews as a single post that can indexed by google, doctor's profile and medical procedures landing pages (I will show reviews for each procedure inside its landing page) Which of these path are the best structure for my website:    Home > reviews > rhinoplasty reviews > review title Home> procedures > rhinoplasty > reviews


Convert a Cannondale SM1000 (about 1991 model) to disk brakes

I've got an older, about 1991, model Cannondale SM1000 mountain bike purchased new.  Would it be worth it to convert to disk brakes and if so what would be the process?


Why is this trigger finding a null value despite the field being populated?

Financial Account is a child of Client in a Master-Detail relationship. The client (John Sandbox) has a Wealth Advisor, 'John Smith', on his client record, however, the system debug that pulls finAcct.client__r.Wealth_Advisor__c shows this field as 'null'.  Does anyone have any idea why I am not getting the value in this field? The goal of this trigger is to make sure that the lookup fields for the Client Team (one of which is 'Wealth Advisor') always match between the client record and the financial account record when they are linked. Thanks!      Boolean UpdateMe;     List <Financial_Account__c> FinAcctsToUpdate = new List<Financial_Account__c>();      //Loop through all Financial Accounts in Trigger.new     for(Financial_Account__c finAcct : newFinAccts){         UpdateMe = false;          System.debug('finAcct WA Lookup: ' + finAcct.Wealth_Advisor_Lookup__c);         System.debug('Client: ' + finAcct.client__c);         System.debug('Acct WA: ' + finAcct.client__r.Wealth_Advisor__c);          if (finAcct.Wealth_Advisor_Lookup__c != finAcct.client__r.Wealth_Advisor__c){             finAcct.Wealth_Advisor_Lookup__c = finAcct.client__r.Wealth_Advisor__c;             UpdateMe = true;         }         if(UpdateMe == true){             FinAcctsToUpdate.add(finAcct);         }         UpdateMe = false;     }      if(FinAcctsToUpdate.size() > 0 ){         update FinAcctsToUpdate;     }


Ability to easily switch between directories in different areas

I'm doing something where I'm frequently changing between two directories far away from each other in the system's file tree.   Is there anyway I can assign some kind of short name to each one for use with the cd command so that I can type cd directoryA and cd directoryB for example, instead of repeatedly typing cd C:/A/Really/Long/File/Path/Name/Makes/My/Fingers/Hurt?


How can I preserve border width when scaling an object with Inkscape?

I want the borders to stay fixed in Inkscape when I'm resizing an object. I found these buttons in Inkscape v0.48.3.1, but they don't seem to work. Is there any other settings that I should turn on?  These are the buttons that should control that:    EDIT The answer below should be valid, but for some reason this doesn't work for me as I mentioned in the question already. It's probably a bug or there's some additional settings which prevent the normal behavior.


As I speak, I noticed that I use the word "have" a lot! Also, I was wondering whether this over-usage is right. For instance,       I have copied the file to your computer     where I could've used       I copied the file to your computer   instead! Am I right or do they differ subtly?


Concept about pass by reference OR value

public class Foo { public static void change(int[] arr){     arr = null; } public static void change2(int[] arr){     arr[0] = 99; } public static void main (String[] args){     int[] arr = {1,2,3,4,5};     change(arr);     System.out.println("it should null: "+Arrays.toString(arr));     change2(arr);     System.out.println("updated array : "+Arrays.toString(arr)); }   }   CONSOLE OUTPUT  it should null: [1, 2, 3, 4, 5]  updated array: [99, 2, 3, 4, 5]   I need to get understanding about pass by reference as i passed int[ ] to first method i.e change() it does not null the array as per my understanding it should change to NULL as array references are pass by reference but if i pass array to second method i.e change2() it changed the value at specific index. It means that reference is being passed.


Installation of BusyBox on panda board on Android ICS kernel

I am trying to install BusyBox on panda board which has an ICS Android kernel.  I used the steps below:   Download binary file which supports the panda board Push it into /system/busybox folder Install the BusyBox command line tools on the target by executing the following commands on booted filesystem: pc ./adb shell target$ cd /system/busybox target$ ./busybox --install . target$ ./sh  #here i am getting error like ./sh: precmd: not found Save the original sh executable by renaming it, and then create a soft-link to BusyBox sh:target$ cd /system/bin target$ mv sh sh.android target$ ln -s /system/busybox/sh sh Export export PATH=$PATH:/system/busybox:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin   Step 3 is to install BusyBox, and step 4 is to make BusyBox shell as default shell. But I am getting an error in the 3rd step. I want to make BusyBox shell as default shell, so I can run scripts on panda board.  I appreciate any type of suggestions or solutions. Thanks in advance.


I'm trying to recreate a memory dumper in C. I would like to iterate over memory using pointers and load the value when accessible.  #include<stdlib.h> #include<stdio.h>  int main() {     unsigned long ptr = sizeof(long);     printf("%s\n", (char*)ptr); // gives memory violation error     return 0; }   When I hit printf("%s\n", (char*)ptr) it raises a memory violation exception.  Is there any way either to handle this exception or to know if a pointer is accessible? Thanks.


don't understand the reason of NullPointerException in my case. Selenium Webdriver + Java

I have test:      @Test  public void postStatusTest() {  loginPage.logInFacebook("my-email", "my-password");  facebookMainPage.checkNotifications();  facebookMainPage.postStatus("Test");  }   where:    public FacebookMainPage checkNotifications(){   if (driver.findElements(notificationsButton).size() > 0) driver.findElement(notificationButton).click();   return new FacebookMainPage(driver);   }   and:    public FacebookMainPage postStatus(String statusText){  driver.findElement(textField).click();  driver.findElement(textField).sendKeys(statusText);  driver.findElement(postButton).click();  return new FacebookMainPage(driver);  }   can you, please, explain why in my case both methods checkNotifications and postStatus return NullPointerException? I've read theory, but I hardly understand what in my case can be wrong.


Finding new lines in one file compared with another

I need to compare two txt files. Every line of both txt files contain entries. One entry per line. The new file contains entries the old one lacks. I have tried to use diff and vimdiff but these don't work because the lines may be in different order.  For example:  OLD FILE  alpha beta gama   NEW FILE  delta omega beta alpha gama rho phi   diff and vimdiff compares line 1 with line 1, line 2 with line 2, etc and even if I sort both files the comparison will not succeed because I can have new items between the sorted versions, like  "alpha, beta, rho"  versus "alpha, beta, gama, rho".  How do I get a list of entries that the new file have that the old one does not?


I installed Spotify (folowing the instuctions here: )  For some reason it adds an ugly low res icon/item to the menu bar that does not fit the theme at all. I tried to search the options for an option to remove it, but I could not find any.  Screenshot:   So my question is, if there is some tool or something I could use to remove items from the menu bar? Or just a way to hide this ugly green icon


Is there a way to, for example, print Hello World! every n seconds? For example, the program would go through whatever code I had, then once it had been 5 seconds (with time.sleep()) it would execute that code. I would be using this to update a file though, not print Hello World.  For example:  startrepeat("print('Hello World')", .01) # Repeats print('Hello World') ever .01 seconds  for i in range(5):     print(i)  >> Hello World! >> 0 >> 1 >> 2 >> Hello World! >> 3 >> Hello World! >> 4


Pre-populate record with values from previous record

In a Ruby on Rails app I'm working on I have a Model that belongs_to a User.  The User can create many of these.    When a user goes to the new action, I want to prepopulate the values with the values from the last record they created.  These can then be changed if desired and used to create a new record.   I'm assuming that in the new action of my controller, I can get the most recent record (using something like this).  Model.first(:order => "created_at DESC")   Once I have that, how can I use it to pre-populate the record I created with the new method?


I have a form that I would like to center in a div, but also apply a max-width  Here is what I have:  HTML:

        <form method="POST">            {% csrf_token %}                <legend>Join Today</legend>                {{ form|crispy }}                <button class="btn btn-outline-info" type="submit">Sign Up</button>        </form>

Already Have An Account? Sign In

   CSS:  .form-register {   display: inline;   margin: 0 auto; }  form {   width: 80%;   max-width: 300px;   display: inline;   margin: 0 auto; }    However if I switch the width and max-width between the two CSS classes, I get either of the following results:     or


How to recover partition that is lost while installing ubuntu

I am very new to Ubuntu, and in the anxiety to install Ubuntu ended up doing a big mistake.  While installation, I chose to overwrite my current windows 7 OS; and thought that it would only format my C: However, after installation, I have found that all my partitions are deleted and data lost.  Is there a way to recover those data? I have searched across the forums, and found out about testdisk. However, I need a very detailed step by step guide, as I completely new to Ubuntu. Some of the steps in various tutorials I found seem too advanced to me.  Any help would be highly appreciated.


What is the difference between an academic CV in the US and an academic CV in France?

I am currently applying for graduate school in France. How (if at all) would I modify my existing CV in the standard US format to conform to French academic standards?  I have searched online, but most results are comparing a standard US resume to a European CV.


Is it possible to "shut off" battery charging in OSX with an application rather then physically. Could this be done with AppleScript (I doubt it) or will need to be obj-c cocoa application? Essentially my idea is an app that'll shut off the charger when requirements are met (like the computer is in sleep mode, or the battery hasn't been drained in a few days)


I hope this makes sense. If I have an object:   var a = {"minlength":true}  var a = {}   How can I tell if the object is empty (the second line of code)


Forward from Apache to nginx listening on different port

I have both Apache and nginx installed and running on an Ubuntu 14.04 LTS server at Digital Ocean. Apache is listening on port 80 and nginx on port 8080. Thus, the following http requests work:  www.mysite.org/ www.mysite.org:8080/   with the first site served up by Apache and the second served by nginx.  I would prefer the sites to be responsive to something like:  www.mysite.org www2.mysite.org   but I've not been able to get that to work yet.  I do understand the basics of virtual hosts as described in . In particular, I can get those sites working if they're both served by apache with the content served from different document roots. But what Apache configuration will send requests to www2 over to a different port served by the nginx server?


mysql table keep showing little black question marks despite trying everything

I copied and pasted one paragraph in mysql table. many other paragraphs from table display alright but this one paragraph has lot of black background question marks in place of Apostrophes or single &double quotes.i have utf-8 in meta tag. surprisingly str_replace is no working either.this quote mark ( ’ ) is causing a lot of trouble can't replace it with (') using str_replace. i'have tried $story=str_replace("’","'",$story); and $story=str_replace("\’","\'",$story);  .i have been searching through solutions but none of them seems working.


Exactly how secret was the reveal in The Empire Strikes Back?

Arguably the most famous scene in Star Wars is when Darth Vader reveals to Luke Skywalker that      He is Luke's father.   This surprise was kept secret to most of the crew and even the cast , with Dave Prowse, the actor playing Darth Vader, delivering a fake line, the actual line being overdubbed. (Of course, Darth Vader wasn't voiced by him in the first place; all lines were overdubbed by James Earl Jones).   Like Mark Hamill relates in :     But, for example, your big scene, one of the classic cinematic moments when Darth Vader divulges his true identity, is no longer a revelation.       It's such a great moment! The fake line that was put in there just to try and keep the secret was "You don't know the truth: Obi-Wan killed your father!" But as much as I enjoyed leaking false information, it was a wonderfully hard secret to keep because (Irvin) Kershner, the director, brought me aside and said "Now I know this, and George knows this, and now you're going to know this, but if you tell anybody, and that means Carrie or Harrison, or anybody, we're going to know who it is because we know who knows."   So how do we explain ?       And [David Prowse] offered a glimpse of a possible plot for the second sequel. Darth Vader and Luke Skywalker, the young hero in the first film played by Mark Hamill, are hooked up in a do-or-die light saber duel when Luke learns that Darth is, in fact, his long-lost father.   So exactly how secret was this secret anyway?    As DVK points out , the newspaper article is probably authentic.


Travelling to the us with a eu passport that expires weeks after return

Can a EU citizen visit the US on a passport that expires the same month they are visiting?  Visiting: 26th of oct - 9th of Nov  Visa is valid until: 12th of November  Passport is valid until: 22th of November  I realize there is information about this here:  and that this question is a duplicate of .  However the answer given & information on this page states something about US citizens visiting EU, not the other way around. Do EU citizens visiting the US also need to have a passport that has a validation longer than 6 months?  I checked all Dutch documentation I could find on this, they have great lists of what countries require 3 or 6 months validity, but the US is in none of them. Does this mean there is no validity requirement?   claims I can travel as long as I leave the country before my passport expires. But it is no official source.  Also, the answer quotes this part:     However, the US has signed agreements with a number of countries to waive this requirement.   And the given link goes to a 404 page. How do I find out what countries are waived? I will be visiting from The Netherlands.  The reason why I am asking by the way is because if I do need a new passport, I also need a new ESTA. And this means no returning esta line access, extra costs and extra time.


why the diagonal elements of the inverted correlation matrix is related to correlation with all other variables

For an inverted correlation matrix $C^{-1}$, I read that its diagonal elements  are related to the multiple correlation between measure i as a criterion predicted from all other measures in the set, as :  $$ R_{i,12...p} = \sqrt{1 - \frac{1}{C^{-1}_{ii}}} $$  Why is that?  There is a related question . But that is about the off-diagonal elements.


Finding the limit of the sequence $x(n) = (1+2/n)^n$

What we are allowed to use - 1) The fact that limit of $(1+1/n)^n$ exists and assumed to be some real number $e$ 2) Subsequencial properties of limits of sequences 3) Basic properties of limit  In the previous question $x(n) = (1+1/n^2)^{(2(n^2))}$  We just used the fact that the given sequence is square of the subsequence of the sequence $(1+1/n)^n$  And shall thus converge to $e^2$  I'd expect we'd be required to use something similar in this question but I am unable to, can't see a valid subsequence forming.  Edit - This question is not a duplicate of the question suggested as that question assumes that a lot more theorems have been proven, especially, Limits of log.


How can I get x-y values of an intersection point that corresponds to the actual graph values and not TikZ coordinates?

I have a .csv file plotted and a vertical line at a specific x value. I found the intersection point and now I need to get its x and y values that correspond to actual plot values and not tikz coordinates. This is my code, I found the two custom commands on the internet and while they seem to work, they don't work as I want them to. Can anyone help me modify those commands to return the real value? \usepackage{pgfplots} \usepackage{tikz}     \usetikzlibrary{arrows,shapes,calc,positioning,intersections}  \begin{document}  \makeatletter \newcommand\xcoord[2][center]{{%     \pgfpointanchor{#2}{#1}%     \pgfmathparse{\pgf@x/\pgf@xx}%     \pgfmathprintnumber{\pgfmathresult}% }} \newcommand\ycoord[2][center]{{%     \pgfpointanchor{#2}{#1}%     \pgfmathparse{\pgf@y/\pgf@yy}%     \pgfmathprintnumber{\pgfmathresult}% }} \makeatother   \begin{tikzpicture}     \begin{axis} [ width=\textwidth,height=7cm,cycle list name=black white,ymode=normal,xmode=log,grid=both,xlabel=$Hz$,ylabel=$V/\sqrt{Hz}$]         \addplot[name path global=n] table [x=freq (Hz), y=V / sqrt(Hz), col sep=comma] {data.csv};         \addplot[thick,sharp plot,update limits=false, name path global=h]coordinates {(1000,-2e-6) (1000,1.3e-5)};         \fill [name intersections={of=n and h,by={intersection1}}] (intersection1) circle[radius=2.5pt];         \node [above right] at (intersection1) {(\xcoord{intersection1},\ycoord{intersection1}) $1.167uV/\sqrt{Hz}$};         \legend{Voltage Noise Density}     \end{axis} \end{tikzpicture}  \end{document}  And here is the data.csv freq (Hz),V / sqrt(Hz) 10.00,11.42E-6 13.80,9.718E-6 19.05,8.272E-6 26.30,7.041E-6 36.31,5.994E-6 50.12,5.103E-6 69.18,4.344E-6 95.50,3.699E-6 131.8,3.150E-6 182.0,2.683E-6 251.2,2.286E-6 346.7,1.949E-6 478.6,1.662E-6 660.7,1.418E-6 912.0,1.211E-6 1.259E3,1.036E-6 1.738E3,888.1E-9 2.399E3,763.0E-9 3.311E3,657.6E-9 4.571E3,569.2E-9 6.310E3,495.5E-9 8.710E3,434.2E-9 12.02E3,383.9E-9 16.60E3,342.8E-9 22.91E3,309.6E-9 31.62E3,283.2E-9 43.65E3,262.4E-9 60.26E3,246.2E-9 83.18E3,233.9E-9 114.8E3,224.6E-9 158.5E3,217.7E-9 218.8E3,212.9E-9 302.0E3,209.9E-9 416.9E3,208.7E-9 575.4E3,209.7E-9 794.3E3,214.2E-9 1.096E6,224.7E-9 1.514E6,245.2E-9 2.089E6,268.5E-9 2.884E6,216.4E-9 3.981E6,109.9E-9 5.495E6,51.88E-9 7.586E6,25.49E-9 10.47E6,13.03E-9 14.45E6,6.933E-9 19.95E6,3.898E-9 27.54E6,2.346E-9 38.02E6,1.502E-9 52.48E6,1.006E-9 72.44E6,693.4E-12 100.0E6,487.5E-12   The result is this:  But in the parenthesis I want it to display (1000,0.1167). The weird thing is that when I specified the coordinates of the vertical line I wrote the actual values and not relative tikz coordinates. So why can't it just return something similar?


What do you call someone who makes decisions?

I am looking for a word that means someone makes choices. The choice doesn't have to be good or bad just that they are decisive. I am looking for the word to be in the form of a noun. As an example - "That woman makes many decisions; she is a (insert here)".   The only thing I can think of is chooser or decider but I'm not even sure those are words.  Thanks for any help in advance.


Prove that $\tan 7°30' = \sqrt {6} - \sqrt {3} + \sqrt {2} - 2$

Prove that:  $$\tan 7°30' = \sqrt {6} - \sqrt {3} + \sqrt {2} - 2$$  My Work: I guess that I have to use the formula : $$\tan A = \frac {2 \tan(\frac {A}{2})}{1-\tan^2 (\frac {A}{2})}$$  But, I am not being able to use it. Please help me.


how to changes the sudo password and to know it when it had been forgotten?

i have any problem when installing any aplication in ubuntu. i cant found my sudo password. and how to make the installation of JDK JRE and netbeans on ubuntu?


How do I save an SSH key passphrase for an unattended process?

I've created passphrase protected RSA key. The public key is installed on remote server in authorized_keys in the user's .ssh directory.  From requesting server, I can SSH into the remote server without a problem, but I need to enter passphrase every time I do this.  I want to use this key for a Munin server to SSH into a Munin node and get data, so the procedure fails because of the passphrase.  I have thought of two options:   Remove the passphrase from the key. Save the passphrase somewhere, maybe in a configuration file?   Is there a better solution?  I think ssh-agent is supposed to do something like this, but I cannot find concise information about it.


pagebreak if only 1/4th of the page left?

I have a document with some tabulars one after the other.  I want the tabulars begin on a new page if there is very little room left on the actual page, like 1/4th.  Otherwise, there should not be a pagebreak.  So I need some kind of conditional \pagebreak, how can I do this?


Sum $\sum_{i=1}^\infty \frac{-1^{i-1}}{2i-1} $ in a different order

I'm supposed to sum this infinite series in a different order so that the limit appears to be .5. I need to  to add the first k positive terms, and subtract the first l negative terms, so that the result is within $\pm  .05 $ of $.5$ (between .45 and .55), $$\sum_{i=1}^\infty \frac{-1^{i-1}}{2i-1} $$  How do I set it up to add the positive terms, and subtract the negative?


Can somebody help me with the execute commands in Minecraft?

Recently, Minecraft had removed the /testfor command, which broke these sets of commands that I was trying to execute today.  /testfor @p[r=10] {SelectedItem:{id:"minecraft:feather",tag:{display:{Name:"Roc's Feather",Lore:[Jump higher using this feather.]}}}}`   Now normally, from Minecraft 1.13 onwards, the new /execute command would've been the replacement for the /testfor command, but as I soon found out, the command failed to detect my Roc's Feather and thus could not execute an /effect command that gave me a Jump Boost, for 1 second, at level 3.  I tried remaking my feather from scratch with this command here:  /give @p minecraft:feather{display:{Name:"{\"text\":\"Roc's Feather\",\"color\":\"light_purple\",\"bold\":true,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}",Lore:["{\"text\":\"Jump higher using this feather.\",\"bold\":false,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}"]}} 1   But the execute command I placed did not detect this type of uniqueness.  /execute if entity @p[distance=10,nbt={SelectedItem:{id:"minecraft:feather",Count:1b,tag:{display:{Name:"{\"text\":\"Roc's Feather\",\"color\":\"light_purple\",\"bold\":true,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}",Lore:["{\"text\":\"Jump higher using this feather.\",\"bold\":false,\"italic\":true,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}"]}}}}] run effect give @s minecraft:jump_boost 1 3 true   Can somebody tell me what I'm doing wrong here because I cannot even tell what's the issue.


Let $a, b, c$ be positive real numbers such that $abc = 1$. Prove that   $a^2 + b^2 + c^2 \ge a + b + c$.   I'm supposed to prove this use AM-GM, but can't figure it out. Any hints?


Is there a command to output the current value of the clipboard?  Example (this command doesn't exists, it's just an example of what I'm looking for:  cat clipboard > Hello world!   Also, if the clipboard is stored somewhere, where is it located?


how to install aircrack ng on ubuntu 17.04

I don't know how to install aircrack-ng I have downloaded its latest version. I am new to use ubuntu.So,please respond forward to my question


Can a space $X$ be homeomorphic to its twofold product with itself, $X \times X$?

Let $X$ be  a  topological  space  of  infinite  cardinality. Is  it  possible  for  any  $X$  to  be  homeomorphic  to  $X\times X$  $?$  For example, $\mathbb R$  is  not  homeomorphic  to  $\mathbb R^{2}$, and $S^{1}$  is not  homeomorphic  to  $S^{1} \times S^{1}$ . What  other  topological  spaces  might we consider$?$ What  properties  of  a  space  may  ensure  or  contradict  this  possibility$?$  From  the  little  topology  I  have  learnt  yet,  I  have  not  seen  this  happening.


Hi I am trying to induce a validation in custom object using trigger. The condition if InvoiceTotal">25000 then either second level approver field OR third level apporver field must have specht or Waterweg. If not it should throw an error before saving. Here is my code   trigger CT_PISA_ApproverValidations on CTPISA__BookingCapture__c (before update)  {     for(CTPISA__BookingCapture__c bc:trigger.old)     {                          if(bc.CTPISA__InvoiceTotalVATIncluded__c >= 25000)             {                 Boolean approver_check_ok=False;                 if(bc.Second_Level_Approver__r.LastName=='Specht'|| bc.Second_Level_Approver__r.LastName=='Waterweg')                 {                     approver_check_ok = True;                 }                 else if(bc.Third_Level_Approver__r.LastName=='Specht'|| bc.Third_Level_Approver__r.LastName=='Waterweg')                    {                     approver_check_ok = True;                 }                 system.debug('Flag ' +approver_check_ok);                 if(!approver_check_ok)                 {                     CTPISA__BookingCapture__c er= Trigger.newMap.get(bc.Id);                     er.adderror('For Invoices bigger than € 25.000 either Waterweg or Peter Specht have to be on the list of selected approvers.');                 }                     }                   }       }              Any idea why it is throwing error in all the scenarios even if one of the field satisfies the condition? I tried using validaiton as well but it fails to satisfy one of the conditions. IF( OR(NOT(OR( AND( CTPISA__InvoiceTotalVATIncluded__c >= 25000, NOT(CONTAINS( Second_Level_Approver__r.LastName , "Specht")) , NOT(CONTAINS( Second_Level_Approver__r.LastName , "Waterweg"))), AND( CTPISA__InvoiceTotalVATIncluded__c >= 25000, NOT(CONTAINS( Third_Level_Approver__r.LastName , "Specht")) , NOT(CONTAINS( Third_Level_Approver__r.LastName , "Waterweg"))))),AND(CTPISA__InvoiceTotalVATIncluded__c >= 25000,OR(NOT(CONTAINS( Second_Level_Approver__r.LastName , "Specht")),NOT(CONTAINS( Second_Level_Approver__r.LastName , "Waterweg"))), OR(NOT(CONTAINS( Third_Level_Approver__r.LastName , "Specht")),NOT(CONTAINS( Third_Level_Approver__r.LastName , "Waterweg"))))), true, false)


What prevents investors from buying high yield stocks and selling them as soon as their dividend is paid out?   I guess I am confused: If you know the yield and when the dividend will be paid out, why not buy a share an instant before the dividend is paid out and then sell it?  Do you have to have held the share for some amount of time to get the dividend? Is there too much volatility in the instant the dividend is paid out?


Why can applesauce be used in place of oil?

In many recipes, mostly desserts, it is suggested that you can substitute oil with applesauce to reduce the fat content. But why applesauce?  Is there something special about applesauce or are there other ingredients than can be used?


Is quantum mechanics just a mathematical trick?

We are learning about the wave/particle duality of electrons, and how electron orbitals are just standing waves each with a different discrete amount of energy, which got me wondering, is quantum mechanics just a mathematical trick? That is, are electrons just a particle but move around like waves due to the forces acting on it, a phenomenon that just happens to be explainable by waves? Or, is there any deeper, more fundamental physics governing the physics of elementary particles? I watched a Veratasium video on pilot-wave theory, which I think kind of explains my answer, but I had one problem with it, which was the existence of physical waves. Where would such waves exist in real life(in the video, it was in a tub of some kind of oil)? Also, Veratasium said that this is not actually how elementary particles behave in real life, so I also wanted to know if we actually know that to be true. So basically my question is: what are elementary particles, and why is their behavior described by wave functions? Sorry if this is a really basic/bad question. I don't really know much about quantum mechanics and I'm just trying to understand why things are the way they are.


Some directories are highlighted green in my ll list so that it becomes unreadable. How can I switch that off?    I tried to upload a screenshot, but it wont show it... I hope my question is still clear  So, I tried to change it following    I went through all the types in the list  di = directory fi = file ln = symbolic link pi = fifo file so = socket file bd = block (buffered) special file cd = character (unbuffered) special file or = symbolic link pointing to a non-existent file (orphan) mi = non-existent file pointed to by a symbolic link (visible when you type    ls -l) ex = file which is executable (ie. has 'x' set in permissions). *.rpm = files with the ending .rpm   but that type did not change. it actually is a directory. for some reasons there seem to be two styles for directories. one is just dark blue no background, the other one has the green background that makes it unreadable. the di option only changes the directories that are dark blue and readable. Ideally I would avoid having a solution that removes all highlighting like ll --color=none. I would prefer to just get rid of that background The unreadable directories have the signature drwxrwxrwx, while the readable ones have drwxr-xr-x


How to Subtract 30Days, 3 Months & 1 Year In Epoch time from now using java?

I have an EpochTime for Now and I want to get 30 days, 3 Months, and 1 Year back epoch time How to do that in java code.  long todayEpochTime = System.currentTimeMillis()/1000; System.out.println(todayEpochTime);


I just updated to Jelly Bean on my GS3 and am mostly impressed.   I am having trouble with the screen timeout setting, however.  When I go into Display>Screen Timeout and select a time, say 30 seconds, I get a message that says "Screen will turned off when screen is locked.  Secured lock time is currently set to 5 seconds." My question is where? I cannot find this Secured Lock time setting in Display settings, Lock Screen settings or Security settings, which would seem to be the intuitive places to look for it. Further, even though I get this message, my screen now does not turn off at after 5 seconds, or ever as far as I can tell.  After walking away from the phone for 20 minutes, I returned to the screen  blazing in all its AMOLED glory.


How to calculate FP and TN in precision and recall for multiclass word sense disambiguation?

I want to calculate precision and recall for word sense disambiguation. Naturally, for that I need to calculate TP, TN, FP and FN. I know TP is the number of documents that the tag of the test sentences equals to the tag of the classifier and FN is the number of documents that the tag of test sentences is not equal to the tags that the classifier found. But what is TN and FP? I can't see any other case more than the two cases I described above. For example my test sentence is as like as below:  fist sentence:         word1 word2 word3 word4 tag1 second sentence:  word1 word2 word3 word4 tag2  If my classifier finds the correct tag which is equal to the tag in sentences, it's TP unless it's FN. So what is TN and FP? My classifier finds whether the right tag or the wrong. There is no other case. Is there any TN and FP in this condition?


Accidentally formated external hard drive (2TB) with bootable UBUNTU iso (v.17.04, 64bit,1,5GB), how can I recover my data?

So there's the problem: I wanted to create a bootable USB from an ISO image BUT I accidentally I did that one on my external hard disks instead of the usb.  Now that drive is 2TB and it was full of picture, files etc. I would like to recover as much as possible from that. Since I'm pretty a n00b with Ubuntu I'm trying to figure out how to use Testdisk (which I've heard it's a very good tool for data recovery). Questions:   is it not possible just to unmount the iso in order to get again access to the other files? Does the mounting "formats" in some ways the rest of the drive? Testdisk asked me to specify the partition table type, what is and what I should answer? There are other possible ways to recover the data? I mean, nothing was "really" formatted and also the iso is not big enough to mess everything up.   Sorry if those questions are out of topic of not so detailed, and thanks for any possible answer.


The authentication servers are down for maintenance so Minecraft failed to log in even though there are people on it. Please, I bought Minecraft but it doesn’t work. Is there something wrong with my computer?


Disabled all services in msconfig - login no longer working

I disabled all services in services using msconfig and restarted.  Now - my login details no longer work. I have no network access and the forgot my password option doesn't do anything.  I have restarted using shift+restart to try get into safe mode but this just brings me to the same logon page.  Does anybody know what caused this or how I can resolve the issue?


What is the role of different damage types in D&D 5e

I'm not sure I understand the purpose of the different types of damage, i.e. if I take 3 cold damage as opposed to 3 fire damage, I lose 3 hit points, but what else? Is the only purpose that maybe I have defense against fire damage, but not cold damage?


Show my posts deleted by me on my Activity page

It is .  However, it is .   The combination of the two seems silly.  I can delete my answer because it strikes me it's wrong, do some research, edit and undelete. I've done that, it works. But if in the meanwhile I close the browser window or get distracted, I might not even find my self-deleted answer to edit and undelete. Because it won't show up on the list of my actions.  Please:   Allow seeing your own post deleted by you (and not by something else) on the Activity tab Introduce deleted action on that list to know you deleted your post.


Redhat High Availability Add-On on Centos 5.8

could we use Redhat High availability Add-On on CentOS 5.8 server? in other words should we purchase a license for Redhat high availability clustering for CentOS 5.8 or its included in CentOS without any charge?  We are going to have a clustering in a project and Redhat clustering add-on is required. i want to know that could we use CentOS with clustering instead of purchasing redhat OS and its Add-On licenses?  Thanks in Advance


iPhone 4 passcode lock disabled and no access to iTunes

My phone is disabled and I have no access to iTunes. It is telling me to try again in 23,805,632 seconds but of course I can't wait 50 years!


Passing interface object in constructor - do I copy the interface object?

Following code:  public interface VehicleAbilities {    public void activateHyperDrive(); }  public class Car implements VehicleAbilities {     public void activateHyperDrive() {        fastenSeatBelt();        pressTheRedButton();    } }  public class Garage {    VehicleAbilities iVehicle;    public Garage(VehicleAbilities aVehicle) {        iVehicle = aVehicle;    }     public void fireUpCars() {        iVehicle.activateHyperDrive();    } }  public static void main (String[] args) {     Car car = new Car();     Garage garage = new Garage(car);     garage.fireUpCars(); }   My question is this: Is the car that activateHyperDrive is called on in garage object the same car instance as in main, or is it copied when it´s passed to garage? AFAIK Java is pass-by-value only, so isn´t the object copied? Are there any problems that can come up? Thank you.


I have open File Manager window in Ubuntu 16.06 (Unity). I want to make this window size to 400px x 400px and I want to locate top-left corner of this window in point (50, 20). To do this I run command:  wmctrl -r Home -e 0,50,20,400,400   After that I run command to check:  wmctrl -lG | grep Home   I get that response  0x02a00959  0 59   55   400  400  szymon-Vostro-14-5459 Home   We see that Home window has correct size, but it's located in point (59,55). Why?


Showing that $f(x) = g(x)$ $\forall x$ if $f(r) = g(r)$ for all rationals $r$

Let $f: \mathbb{R} \to \mathbb{R}$ and $g: \mathbb{R} \to \mathbb{R}$ be continuous functions. Suppose that for all rational numbers $r$, $f(r) = g(r)$. Show that $f(x) = g(x)$ for all $x$.


Favorites improvements - search, categorize, personal tags, add note, favorite answer

I'm a big fan of the favorites feature. I usually mark questions with good answers of code snippets for later use.  Most of the time I can't find the favorite I'm looking for so quickly as desired. I know I marked the question in Stack Overflow, but it takes time to find it again, because of the following reasons:   lot of favorites lot of answers for a question (last time I was looking for an answer in the question ) the question title is not always what I'm looking for   To make favorites more useful I suggest the following features to be added:   Allow to mark an answer as favorite Allow to tag questions with own tags (those tags are personal and can not be seen by others) Search function over favorites Allow to add a personal note to a question


How to get access to new c++11 standard sized types?

The types I am talking about are shown on page 3 here:   int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t  I am using Visual Studio 2012.  If it's different for GNU/Mingw include how to get them on those compilers too.


This is intentionally a duplicate of the following question (because the answers there are not completely correct, and as a new user I somehow cannot comment there):   ADDED NOTE: The "How do I set up a Cron job?" question too wrongly states that "sudo crontab -e" edits /etc/crontab (it does NOT) - it IS marked as a duplicate of the "Editing crontab" question.  (hoping to get some upvotes here, so I can help correcting wrong answers in the intended way)


I'm a curious programmer. So these days I was reading the documentation from the PHP site and this link was "PHP type comparisons"   I decided to do some exercises to fill the tables of comparisons but there are some answers that I can not see why, for example:  <?php var_dump(false == array()); // Okay, an empty array is considered false. True result var_dump('' == array()); // false ? Why not true if an empty string is considered false ? var_dump(0 == array()); // false ? Why ? var_dump(null == array()); // true. Why ? ?>   Can you help me about this? I can not understand why some comparisons, I can not find anywhere explanation.


I've got a USB drive here, that somebody asked to try and fix. When inserting it, it shows up in explorer, but when I double click it I get a message saying "Please insert a disk into drive H:". So I went to disk management, to see if it was correctly formatted. It doesn't show up in the upper pane, and in the lower pane it tells me there is no medium in H:.  After this I used chkdsk: the path is invalid. Then I tried TestDisk, which is supposed to look at raw data, and this can't even find the disk.  So I'm assuming the drive is dead, even though its LED is burning. But I was wondering if there might be something else I could try?  This system is Windows 7 Ultimate 64bit by the way.  (I'm translating things from a Dutch install, so some names might be wrong)


Do magic items really cost at least as much to create as they do to purchase?

The table on page 129 of the DMG lists the costs to craft an item.  Taking as an example a Common magic items, such as a level 1 spell scroll, the cost is listed as 100 gp.  The crafter can only make 25 gp worth of progress per day, so this takes 4 days worth of effort, at 8 hours per day.  The crafter must use a spell slot to cast the spell once on each of those days.    Meanwhile, the guidelines on page 139 for the costs of magic items states that a common magic item is worth 50-100gp with consumables, such as a spell scroll, costing half.  So a first level spell scroll "should" cost at most 50 gp.    Looking at the tables for other rarities of items, again the creation cost is listed as the maximum of the suggested values for items of that rarity, and that doesn't even take into account the value of the crafter's time to work for many, many days to craft it.  Am I missing something here?  Can someone explain how this makes sense?   (Obviously, this assumes a campaign where at least common magic items are available for purchase)  I understand that the prices listed in the DMG are suggested starting points only, but why are the suggested starting points for item values inconsistent with the suggested starting points for item creation?


Track object coordinates during animation wpf

How can I track the coordinates of an object while animating in real time?     public void MoveTo(FrameworkElement fe, double pathlength, double x)     {         double speed = 250;          double X = Math.Abs(pathlength + x);         double quart = Math.Sqrt(X * X);          double time = quart / speed;          var left = new DoubleAnimation         {             From = x,             To = pathlength,             Duration = new Duration(TimeSpan.FromSeconds(time))         };          fe.BeginAnimation(Canvas.LeftProperty, left);     }


Question's link brings me to incorrect page

I tried clicking on the top question's link on this page (Buying at a lower price [duplicate]):     However, when I click on it, it brings me to the wrong question. It brings me here:   Is this a weird bug, or am I really confused?  EDIT:  I tried going to the supposed poster's account (). When I click on the question on his account (Buying at a lower price [duplicate]), it also brings me here:


How do you tell what model of bike I have?

I bought this bike 2 days ago. I searched for some info, but couldn't find it. The only information I found was to be around 1972


Counterexample for Monotone convergence theorem

Let $f_n : [0,1] \rightarrow \mathbb{R}$ be a sequence of monotone decreasing measurable functions $f_n \geq f_{n+1}$ that converges pointwise to $f: [0,1] \rightarrow \mathbb{R}$. What would be the counterexample which shows that Monotone convergence theorem does not apply for such sequence?  Besides original version of MCT (non-negative monotone increasing sequence) we also stated slightly different version where MCT applies also if ${f_n}$ are measurable, monotone increasing and $f_1$ is integrable.   My intuition is that I should come up with the sequence of functions that are measurable but not integrable (they need to converge though), however I did not manage to come up with something so far. Thanks for your help in advance!


A long time ago, I created a Google mail account. I fell for a trap that was common back then (not sure how it is nowadays) and ended up with two Google accounts—one for Gmail (using the Gmail email address I would like to use) and one for everything else (using an email address at an external mail provider).  Hoping that I could associate my Gmail and my actual Google account, I deleted my Gmail account only to discover that deleted account names cannot be used again. So basically my old Gmail account along with the Google email address I would like to use is gone.  My main Google account got assigned a different Gmail account in the mean time.  Do you know if it is possible to re-use my preferred Gmail address? If possible, I would like to assign it to my main Google account. But I'd also be happy to have it as a second Google account, anything is better than the current situation.


Is there a term for making a statement while denying you're making said statement? e.g. "I'm not saying your mom... but"

Is there a particular term for making a statement while explicitly denying ownership of the statement? Sometimes this is followed up by an appeal to another party to validate the truth of the statement. We've probably heard this a lot recently. For example:  "I'm not saying she's a crook..."


Neutrinos have mass, and only interact with gravitional and weak force, what make it very difficult to detect.  Neutrinos is known to travel very closer to speed of light and have very small mass altought neither have a precise measure.  Particles with no mass like photons and gluons (altought there is no free gluon) must travel at speed of light (vacuum).  Particles that have mass must travel in any velocity lower than speed of light.  Dark matter can have hot particles (near speed of light) and cold particles (non relativistic velocity).  My questions are:    Does neutrinos have always the same velocity?  Is it possible to have neutrinos travelling with non-relativistic speeds? Why only referred neutrinos as possible hot dark matter and not to cold dark matter?


why does ResultSet have NullPointerException?

Hi i wrote this java webservice but i get a NullPointerException out of executeFetchQuery? What is causing this NullPointer. I thought the connection could not be made because of this error: Error executeFetchQuery: java.lang.NullPointerException  package nl.jorisdek.dinnerspinner.business;  import java.sql.*; import java.util.ArrayList; import javax.sql.DataSource; import javax.annotation.Resource; import javax.ejb.LocalBean; import javax.ejb.Stateless;  /**  *  * @author Joris  */ @Stateless @LocalBean public class DbConnect {     @Resource(name = "jdbc/dinnerspinner")     private DataSource ds;     private Statement st;     private PreparedStatement pst;      public DbConnect(){     }      public void executeModifyQuery(String sql) {          try{             Connection con = ds.getConnection();             con.createStatement().execute(sql);             con.close();         } catch(Exception ex) {             System.out.println("Error: "+ ex);         }     }       public ResultSet executeFetchQuery(String sql) {         ResultSet rs = null;         try {             Connection con = ds.getConnection();             rs = con.createStatement().executeQuery(sql);             con.close();         }         catch(Exception ex) {             System.out.println("Error executeFetchQuery: "+ ex);         }          System.out.println("rs: "+rs);         return rs;     }        public ArrayList<Dishes> getDishes() {         //Map json = new HashMap();           ArrayList<Dishes> dishes = new ArrayList<>();         String sql = "SELECT * FROM dishes";         ResultSet rs = executeFetchQuery(sql);         //ResultSetMetaData metaData = rs.getMetaData();         try {                         while(rs.next()){                 Dishes dish = new Dishes();                  dish.setId(rs.getInt("id"));                 dish.setNaam(rs.getString("naam"));                 dish.setWinkel(rs.getString("winkel"));                 dish.setIngredienten(rs.getString("ingredienten"));                 dish.setExtra(rs.getString("extra"));                 dish.setKosten(rs.getDouble("kosten"));                 dish.setBereiding(rs.getString("bereiding"));                 dish.setGezond(rs.getBoolean("gezond"));                 dish.setGoedkoop(rs.getBoolean("goedkoop"));                 dish.setSimpel(rs.getBoolean("simpel"));                 dish.setSnel(rs.getBoolean("snel"));                  dishes.add(dish);              }         } catch(Exception ex) {             System.out.println("Error getDishes: "+ ex);         }          return dishes;     }  }   I think you need this   java.lang.NullPointerException     at nl.jorisdek.dinnerspinner.DishesSoap.getDishes(DishesSoap.java:35)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


I am trying to create file associations that will show my icon on file types.  I created the file myapp-xxx.xml:  <?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">     <mime-type type="application/myapp-xxx">         <comment>My app dummy mime</comment>         <sub-class-of type="application/octet-stream"/>         <glob pattern="*.xxx"/>         <generic-icon name="MyApp"/>     </mime-type>     </mime-info>   I placed MyApp.png in /usr/share/icons/  I placed myapp-xxx.xml in /usr/share/mime/packages/  I ran   sudo update-mime-database /usr/share/mime   and my files of type xxx are correctly associated with the mimetype - and start with my executable.  But, running   sudo gtk-update-icon-cache /usr/share/icons/ -f  The icon did not show on my file, and I got error:  gtk-update-icon-cache: No theme index file.   I tried to mimic the way other programs, like libreoffice, create icons...  Created a directory MyApp inside icons, and created a file index.theme listing a few sizes (16, 24, 32, ...) and in a file called mime I added png resized to those sizes.  I rerun the command  above,   sudo gtk-update-icon-cache /usr/share/icons/MyApp -f  gtk-update-icon-cache: Cache file created successfully.   But no file association either - in fact, I lost the file association that my .desktop created with the application !  How do I add the icon to my file ?


I downloaded cruft-0.2.tar.gz and extracted the files into a directory. Here is the list of files:  COPYING        cruft.1  cruft.doc  INSTALL   keygen.c  packing.list cruft-0.2.lsm  cruft.c  cruft.h    keygen.1  Makefile   How do I install this program? I am using Ubuntu 16.04 LTS


How can make a div vertically center to parent div

This is MY demo Work in JSFIDDLE  NB without using table property    I want to make the class .box should be vertically centered  CSS  .main{ height:300px; border:1px red solid;position:relative} .box{width:40px; height:40px; background:red; }  /* for centering */ .box{ display: inline-block;position:relative; top:50% } .main{ text-align: center; }   HTML


Simulating the Windows key on an old keyboard

I'm using a very old keyboard that doesn't have a physical Windows key — it does have a  and an AT/XT switch on the back — but I don't want to completely miss out on the functionality of the Windows key.  Is there some group of keys in Windows 7 Pro that simulates Win when used together? In other words, I want to be able to take any key combination that uses Win, mentally remove Win and drop in this other group of keys and have the original combo work.  If no such combination exists, how can I create one?  I know that I could just plug in a newer keyboard that has a Windows key, but the whole point of this question is to avoid that. None of the existing  questions seem to address this; the closest is , but it doesn't actually say how to create the mapping.  This is for my work computer, so "install this utility/plugin" isn't a good option for me. Feel free to answer with those for the benefit of others, though.


Problem  Internet Explorer 11 (on Windows 8.1) seems to ignore system font smoothing preferences. Even though ClearType is enabled on the system, IE11 keeps smoothing using gradients.  Question  Is there any way to enable ClearType smoothing in IE11?


Mirror Linux disk writes to secondary disk

I would like to set up a Linux system to use one primary storage device, but copy all writes to that device to another secondary device without blocking for every write - e.g. an NVMe SSD as primary and spinning rust as secondary.  The only way I can think of doing this currently would be to either run a frequent rsync in the background, or something like a btrfs-send of the live stream of disk writes.


Use Induction to prove that for all $n \in \mathbb{N}, (x^n + \frac{1}{x^n}) \in \mathbb{Z}$ if $x+\frac{1}{x}\in\mathbb{Z}$.

Assume $x \in \mathbb{R}$ and $(x + \frac{1}{x}) \in \mathbb{Z}$.   Use Induction to prove that for all $n \in \mathbb{N},~ (x^n + \frac{1}{x^n}) \in \mathbb{Z}$.  I'm not sure how to use the information given to prove the induction step. What I have so far is.  $P(n) : (x^n + \frac{1}{x^n}) \in \mathbb{Z}$  Base Case Then $(x^0 + \frac{1}{x^0}) = 2 \in \mathbb{Z}$  Induction Hypothesis: $x^k + \frac{1}{x^k}\in \mathbb{Z}$  Want to prove: $x^{k+1} + \frac{1}{x^{k+1}} \in \mathbb{Z}$  My first step was  $x^{k+1} + \frac{1}{x^{k+1}} = x \cdot x^k + \frac{1}{x} \cdot \frac{1}{x^k}$


I would like to share access to encrypted data among many recipients. I do not know the recipients ahead of time (when encrypting the data). Once the data is encrypted, I do not have access to the plaintext (so I cannot re-encrypt).  Right now, I have a shared secret key that is distributed to recipients as they are granted access to the data (again, encrypted so I do not have access ot the shared key). Unfortunately, that means any recipient of the shared secret can leak the key, compromising the data for everybody.  I can't really prevent "bad" recipients from the leaking the key (or the plaintext, for that matter), but I would like to be able to distribute unique keys to each recipient so that if a key is leaked, I can determine who did it.  I think I want a symmetric encryption scheme where the ciphertext can be decrypted by a set of keys, rather than a single key. Each secret key is unique and it's hard to derive one secret key from another (so one recipient cannot forge another's key), but its simple for me to generate new secret keys (so I can easily add new recipients).  Does such a schema sound familiar?


change Viewport Display -> Display As for selection (many objects)

Quite simply I have many objects (thousands, imported data, I wish outline had a scrollbar in blend file mode) and I would like to set a large selection of them as display-as wire-frame and another large selection of them as display-as bounding box. Changing this value on a single Properties -> Object Properties only effects one object though, and I see no menu item to apply this to a selection. How can I change many object's view-as mode? I am open to scripted options as a last resort


How to retrieve a stolen Yahoo account's password?

One of my friends just got hacked on her PC and her Yahoo account password was stolen. Now the hacker use her account under her name for bad reason. He may have change alternative email, security question, etc.  What can we do about that? We need her account back. Is it possible?   ps. I tried to google search for Yahoo contact information but I'm not sure where to knock Yahoo door.


Function $ y = x^n - nx$, where $x \geq 0$ and $n \geq 2$.

$f(x)=x^n - nx$ where $x \geq 0$ and $n \geq 2$.    Count the coloured area on the graph of the function, when n is 2, greater than 2 and goes towards infinity.  How can we mathematically prove that when n = infinity the area is equal to -infinity?


Generate a certificate signing request for an SSL server

I'm running CentOS 6.2 LAMP and I've just purchased an SSL certificate via Namecheap that I'm trying to install on my server.  is the certificate I purchased.  How do I complete this process without the use of a web host?  So far, I have installed SSL using yum install mod_ssl openssl and I am now being asked for a CSR via NameCheap and to choose my Server type.  Are mod_ssl and openssl both in there for Apache2?    What is a CSR and how do I generate one?  The tutorials I've found online are all using self signed certificates, which is not what I want.


How to go from elliptic coordinates back to cartesian?

I know that the transform form cartesian to elliptical is  $x=a \cosh \mu \cos \nu; \;\;\;\; y=a \sinh \mu \sin \nu$  How do I go back to cartesian if I have an expression in elliptical, meaning that I need the relations  $\mu = f(x,y);\;\;\;\nu=g(x,y)$?


Compress a directory using tar/gz over SSH to local computer?

I'd like to essentially tar/gz a directory on a remote machine and save the file to my local computer without having to connect back into my local machine from the remote one. Is there a way to do this over SSH? The tar file doesn't need to be stored on the remote machine, only on the local machine. Is this possible?


Is there a trick to use the correct NDx filter?

I have 3 ND (neutral density) with values of 2, 4  and 8.  I know these filters remove light levels, but I don't know when I have to use each filter.  Thanks for your time!


. The equation $x^3 +10 x^2 − 100 x + 1729 = 0$ has at least one complex root $α$ such that $ | α | > 12$.

Show that the equation,  $x^3+10x^2−100x+1729=0$ has at least one complex root $z$ such that $|z|>12$.


I have just started coding in c++.  I wrote a code for reverse a string . I get null results.  void main () {     string str1="abcde";string rev="";     int n=str1.size();     for(int i=n-1;i>=0;i--)     {         rev += str1[i];     } printf("%s \n", rev); }   Could anyone please tell me.


What is the sum of number of ways of choosing $n$ elements from $(n+r)$ elements where $r$ is fixed and $n$ varies from $1$ to $m$ ? Can this be reduced to a formula ?  $$ \sum ^m _{n=1} \binom{n + r}n $$


.NET framework bug? Parameter of override method does not change

the following code does not work as I would expect:  using System; using System.Data;  namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             MyClass cl = new MyClass();             cl.doSomething();         }     }      public class MyClass : BaseClass     {         protected override void doSelect(DataTable dt)         {             dt = null;         }          public void doSomething()         {             base.Fill();         }     }      public class BaseClass     {         private DataTable dtMain = null;          protected virtual void doSelect(DataTable dt)         {         }          protected void Fill()         {             dtMain = new DataTable();             this.doSelect(dtMain);             if (dtMain == null)                 Console.WriteLine("as I would expect");             else                 Console.WriteLine("why not changed???");         }     } }      I tested it with other reference types, but same behavior. Is this a framework bug? When I use the ref keyword it works as I expect:  protected virtual void doSelect(ref DataTable dt) { } and so on   Would be nice I anyone could help me with this!


Unknown filesystem. grub rescue: file not found

I have 320GB HDD messed with Ububtu 10.04 and Windows Developers preview. I formated Windows partition and deleted the Linux boot folder from the disk, I thought it may help me to install newer version of Linux because my Windows installation was messed up with a problem and I can't install Windows on Linux .  Now I get a grub rescue terminal and after searching a lot I got someway out but there was another a problem when I insert the windows 7 disc. It does not give anything just a paused Starting Windows screen.  I tried the Ubuntu Live CD but same problem occurred so I starting to mess with GRUB rescue terminal when I ran the commands:  set root=(hd0,12) set prefix=(hd0,12)/boot/grub insmod /boot/grub/linux.mod   I got the message file not found  How would I fix this problem?


I am enjoying the new "snap" applications, but apps installed using this method doesn't seem to be using the system gtk theme I have set.   Some use Adwaita or worse, Raleigh.   How can I have them use the standard Ambience theme I'm using across the whole system?


I have a five year old netbook, EEE PC 1001 HA (bought in February 2010), and recently there was some news that Microsoft has stopped supporting Window XP. Can I switch over to Ubuntu? I have worked out it and liked it. Can you tell me which version of Ubuntu would be good? And as it does not have a CD drive, can I use pendrive instead?


I have two surface plots, which I would like to have to same color for the same height. So, as the first plot is dark blue for f(x,y)=0, the right plot should also be dark blue for f(x,y)=0. However, the color dark blue is assigned to the lowest point of the plot. Thus, the color for f(x,y) in the right plot is a bright orange.  Sample source:  \documentclass{report} \usepackage{pgfplots}  \begin{document}  % first plot \begin{tikzpicture} \begin{axis}[] \addplot3[surf,colormap name=hot,domain=-2:2] {exp(-x^2-y^2)}; \end{axis} \end{tikzpicture}  % second plot \begin{tikzpicture} \begin{axis}[] \addplot3[surf,colormap name=hot,domain=-2:2] {exp(-x^2-y^2)-exp(-(x-1)^2-(y-1)^2)}; \end{axis} \end{tikzpicture}  \end{document}     How can I force the plots to have the same color for the same height?