I am trying to figure out, how vacuum packed sausages can be done in blender. The one you can buy in every grocery.  The sausages are not the problem, but the plastic packaging outside, which is normally really tight to its content  My first thought was to do it with a cloth simulation, letting a sheet falling down on it so the contours get visible. That will not work, because ... yeah it just looks like what it is... a sheet falling down on a couple of sausages...  The second thought was to use the shrink wrap modifier but that also will not work. If place a square under and over the sausages, the modifier only stretches the sheet also over the little gaps between the sausages. That doesn't look like accurate.  Is there maybe a way to let the content be a force to the surrounding package?  Its a bit complicated. The package behaves not quite like a second skin. You can see the plastic making an arc from one sausage to another but sticks very close to the content ...   Any other ideas?


Modern CV cover letter template not hyphenating words at the end of the line

I am using the Modern CV Cover letter  but the hyphenation at the end of the line is not working. Here you have an  of the cover letter with text in English and you can see how the hyphenation does not work and a lot of space is wasted in the document. The problem persists even when adding \usepackage[english]{babel} in the preamble.  I have tried the solutions proposed  and , but they do not seem to work.


I've been riding CitiBike for a couple years to ride to work in NYC (7mi commute) and am looking to purchase my own bike.  Are there any standard suggestions on what to look for in a commuter bike?  Note that I love CitiBike.  I love the convenience of fenders, chain guards, easy gears that never come off, lights built in, etc.  The only thing I don't like is it is big, bulky, and heavy.  Would like something that is lighter and faster that has the convenient attributes of CitiBike.


proof of that a continuous function has a fixed point

Can you please help me to understand this proof:     Consider $g(x)=f(x)-x$. $f(a)\ge a$ so $g(a)=f(a)-a\ge 0$. $f(b)\le b$ so $g(b)=f(b)-b\le 0$. By the Intermediate Value Theorem, since $g$ is continuous and $0\in[g(b),g(a)]$ there exists $c\in[a,b]$ such that $g(c)=f(c)-c=0$, so $f(c)=c$ for some $c\in[a,b]$."   My question is why $f(a)\ge a$ and $f(b)\le b$??  Thanks a lot!


E:Malformed line 2 in source list /etc/apt/sources.list.d/getdeb.list (URI)   ^^ This is what I get back, earlier I was trying to get Pokemon Online to install properly, and it wasn't working, so I tried to get getdeb, now it won't check or show updates without giving me the message above, what am I doing wrong?  EDIT: Now it keeps sending me the information that it's experiencing an error continually.  EDIT 2: These are the contents of the file /etc/apt/sources.list.d/getdeb.list:  deb http://    archive.getdeb.net/ubuntu precise-getdeb apps   deb   http://   archive.getdeb.net/ubuntu saucy-getdeb apps   deb http://    archive.getdeb.net/ubuntu saucy-getdeb apps   deb http://    archive.getdeb.net/ubuntu precise-getdeb games


Is the SQL Server IsShutdown property useful to determine whether a database is in a good state?

My company has a tool that monitors statuses on servers, services, databases, etc. We monitor a number of on-site servers for our customers. One particular simple check performed is to determine whether a SQL Server database is in a 'good' state by querying for the value of certain database properties. The four database properties we monitor are:   IsSuspect IsOffline IsEmergencyMode IsShutdown   This is the query we use:  SELECT name AS [SuspectDB],   DATABASEPROPERTY(name, N'IsSuspect') AS [Suspect],   DATABASEPROPERTY(name, N'IsOffline') AS [Offline],   ISNULL(DATABASEPROPERTY(name, N'IsShutdown'), 1) AS [Shutdown],   DATABASEPROPERTY(name, N'IsEmergencyMode') AS [Emergency] FROM sysdatabases WHERE (DATABASEPROPERTY(name, N'IsSuspect') = 1)    OR (DATABASEPROPERTY(name, N'IsOffline') = 1)    OR (ISNULL(DATABASEPROPERTY(name, N'IsShutdown'), 1) = 1)    OR (DATABASEPROPERTY(name, N'IsEmergencyMode') = 1)   In testing an upgrade to SQL Server 2008, it seems that quite a few of our databases are returning a 1 (true) value for the IsShutdown property. This was never the case previously with SQL Server 2005. The  for the property simply states "Database encountered a problem at startup".  As far as I can tell, the databases are perfectly fine. They are up, can be queried, etc. No issues.   Does the IsShutdown property really matter for my monitoring purposes, i.e., does it indicate that the database is in a bad state? Or should I just remove it from my query?   NOTE: In talking to one of our resident DBAs, they found that on some of our new SQL Server 2008 databases, the fact that the IsAutoClose property is enabled might have something to do with the reason for these databases having an IsShutdown of true. Disabling IsAutoClose seems to "fix" the IsShutdown being true.


What's the difference between the north and the south pole on a magnet?

I was testing out objects with magnets and I didn't understand what made the north pole different from the south pole. I thought the poles were made of different materials, but I realized it wasn't. Can someone tell me what factors differentiate the north from the south?


How do you Google Search without personalization and localisation?

Google Search results are customised based on your location and your search history.  Can you do a search that is independent of these factors, so that different users in different parts of the world get the same results for a particular search term?


Using Offset in Binomial/Logit GLM for Exposure Years?

I am building a GLM Model that predicts whether there will be a claim in a certain policy or not. So target variable is either 0 or 1, so my choice of GLM was Binomial, and link function was Logit. In the data I also have an Exposure column, which has values greater than 0 but less than or equal to 1. 1 means that the policy has experience of 12 months, and 0.5 would mean that the policy has experience of 6 months. How do i include this information in my GLM? Should I just use offset on exposure, or use log of exposure? Please suggest.


How is tension pulling at both ends? Please explain either theoretically or by intuition. Ideally, answers would imagine the string as made of particles, and consider their free-body diagrams to conclude that tension is pulling on both sides.


Cannot set int? to null inside of ?: Operator

I can sometimes assign null to int? but not inside a ? : , why?   example   int? a;  // good     int? b; // good       a = null;  // why is this allowed?     b = (a != null) ? 1 : null /* and this not allowed? */;       b = (a != null) ? 1 : (int?)null /* this is a fix */;


How do I refill a fire extinguisher in NYC. I went to the fire department and they do not refill them. I bought a new one but if the old one can be refilled, I would use it as a backup.


finding the value of $\sum_k (-1)^k \binom nk^2$

I am trying to find the value of: $$\sum_k (-1)^k {n \choose k}^2$$ The hint is that $(1-x^2)^n = (1-x)^n(1+x)^n$  I tried solving it using convolution but it didn't quite work.


Is it possible to install the Creative Cloud on WINE? I tried to run it using default settings and it crashes instantly. Was hoping someone got this working. Right now I dual boot Win and Ubuntu, and my whole workflow is so much faster, except when I have to do Video Editing and I need both After Effects and Premier Pro. Both of which are on my Windows boot.  I Tried using Open shot, and its too buggy, not enough features, and crashes my desktop when trying to do anything with it.


Is it possible to download YouTube Videos on my New Samsung Galaxy Y android phone and have it stored in my SD card?


I would like to know the complexity of this algorithm, I am a bit confused in the notation. for(int i=0; i<N; ++i)      for(int j=M-1; j>=i; --j)          ++x  The answers are:  O(min(N,M)) O(N*M) O(N+M) O(max(N,M))


Finding header font with Chrome's dev tools?

I've googled this but this info seems hard to find. Is there a way to identify header fonts using dev tools? I can get the body text, but clicking the various tabs (including COMPUTED) does not produce the header font.


Is Object constructor called when creating an array in Java?

In Java, an array IS AN Object. My question is... is an Object constructor called when new arrays is being created? We would like to use this fact to instrument Object constructor with some extra bytecode which checks length of array being constructed. Would that work?


I am looking to buy a nexus 4. I know that the new nexus 5 is coming out, and it is being released with Android KitKat installed. If I get a nexus 4 from a store such as best buy or another one, will my Nexus 4 come with Kitkat? If not, When is KitKat expected to be realised for the Nexus 4. If I am not in a rush to get a new phone, would it be better to by the Nexus 4 now, or the Nexus 5 in a few months?


Awk regular expression syntax with number of repetition - different handling between gawk 3 and gawk 4

I am having trouble understanding or explaining why the following expression fails in gawk 3.1.x and yet works in gawk 4.1.x:  (Minimum working example)  echo ";#ADCDE#" | awk '/#.{5}#$/' -> produces a match in gawk 4.1.x, does not produce a match in gawk 3.1.x  echo ";#ADCDE#" | awk '/#.*#$/' -> produces a match in both  Did something change between gawk 3 and 4 in how regular expressions are handled? I didn't think the repetition construct {n} was new for regular expressions. The same behaviour happens if I change the dot (.) with a character class or [A-Z]


Difference between function declarations with or without prototype

I'd like to know the following about this example code: 1. What is the difference between these two? 2. When or under which scenarios one will be used or preferred over the other? 3. Can I achieve inheritance with both methods or only with prototype?  //e.g 1 without prototype Test = function(){  this.val = null;  this.getVal = function(){     return this.val;  }  this.setVal(a){     val = a;  } }    //eg 2 with prototype. Test2 = function(){     this.val = null; } Test2.prototype.getVal = function(){    return this.val; } Test2.prototype.setVal = function(value){    this.val = value; }   As pointed out by one of the answerer the top one is duplicating the methods and the second one is sharing the methods. Can somebody please explain what is the difference between duplicating and sharing [I am newbie to JS...to me it sounds the same because they are going to return the same result.]


Solve $$z^3 + 5z^2 + (9 - 5i)z + 10 - 10i = 0$$  I have never dealt with equations with complex numbers in them so this is interesting; first Ill expand.  $$ \implies z^3 + 5z^2- 5iz + 9z + 10 - 10i = 0$$  I am stuck again -_-  any ideas? Thanks!


Proving that $2^{2a+1}+2^a+1$ is not a perfect square given $a\ge5$

I am attempting to solve the following problem:     Prove that $2^{2a+1}+2^a+1$ is not a perfect square for every integer $a\ge5$.   I found that the expression is a perfect square for $a=0$ and $4$. But until now I cannot coherently prove that there are no other values of $a$ such that the expression is a perfect square.  Any help would be very much apreciated.


How to recover lost data after installing Ubuntu 16.04

This has been asked quite a few times before but I want to add something extra hence a new question. Please take a moment before marking it as a duplicate.  I had dual booting with Windows 10 and Ubuntu 15.04 but later thought would replace it with only Ubuntu 16.04. I also had a partition on Windows to store personal data. While creating partitions for fresh Ubuntu installation I accidentally formatted the backup partition instead of the Windows partition.  I am now more keen to find out the list of files that I have lost in the process. I will be more or less okay if I can't recover the data.  From similar answers on data recovery it seems / is the tool of choice. But I want to know how I can effectively run this from a Ubuntu Live USB stick. When I tried to use Photorec I got an error saying - not enough free space available (I chose an external drive with 700GB free space). If I try using Testdisk it takes a lot of time analyzing the drive (1TB HDD deeper search). As of now my main requirement is to store the list of deleted files in a log or text file.  While I read the testdisk documentation if any expert can help me will be appreciated!  NOTE: Before format the partition was in NTFS and after EXT4


Hungerford's statement in what is class in Gödel-Bernays axiomatic set theory.

For a collection $C$ define an object $b \in C$ iff $b$ is a class and $b \notin b$ and otherwise $b \in C$. Then we can decide any object whether it belongs to $C$. In Hungerford's Algebra p.2 it states in illustrating Gödel-Bernays axiomatic set theory that     Intuitively we consider a class to be a collection $A$ of objects such that given any object $x$ it is possible to determine whether or not $x$ is a member (or element) of $A$   Since it's possible to determine whether an object belongs to $C$, $C$ must be a class.  Then there is a paradox whether $C \in C$. How to avoid this in Gödel-Bernays axiomatic set theory.


Suggestions on how to prove the following equality. $a^{m+n}=a^m a^n$

Let $a$ be a nonzero number and $m$ and $n$ be integers. Prove the following equality: $a^{m+n}=a^{m}a^{n}$  I'm not really sure what direction to go in. I'm not sure if I need to show for $n$ positive and negative separately or is there an easier way. Can you use induction on integers?  My attempt: 1) Base case $m=0$. Prove that $a^{m+n}=a^m a^n$. Is true.  2) Assume the result holds for $m$.  So I want to prove it holds for $m+1$.  So I know that $a^{m+n}=a^ma^n$. So does this imply that: $a^{m+n+1}= a^{m+1+n}= a^{m+1}a^n$? Am I going in the right direction? I'm not sure what to do next...


I'm totally new at Ubuntu/Linux.  I've installed the server on an old Pentium 4 with 1gb of RAM. The problem is that the monitor (Samsung LED 3d TV through HDMI) gives the message this resolution isn't supported. So I can't see if everything is working. It should work at 800*600 at 32 bit 75 Hz. Can anyone help me to change the resolution at bootup.   For your information, U don't know how to get to a save mode, edit cfg files and so on. I've read a lot of the posts on this site, but I can't do anything with them.


Can someone be too late for being a great physicist?

I am a first year physics student, but I am 20 years old (pretty old for my country, average starting age is 18), because I started after leaving med school, which I find extremely jailed in "memorization walls", with no place for analytical problem solving, something that I have loved all my life. I started to love physics because I was introduced to neuroscience, which lead me to information theory, probability analisis, mathematics and physics. I decided to study physics not only because I practically become obsessed with any problem I encourage, but also because I find physics to be the only "real" foundation of the understanting of nature, thanks to its mathematical basis. Well, now the problem is that I constantly see that most physicists that discover great things all started very very young, which is not my case. So, besides I am really good at math (the first of my class), I am sometimes dissapointed about the fact that I am maybe too old to make a difference, and this sometimes brings me back to think if I made the right decision when I left med school.  The thread here is about sharing information about cases of physicists that did great discoveries without being extremely precocious or "geniuses" since they were kids. Also your opinion about this kind of situation would be of real help.  What do you think of this and my decision?


What version of ubuntu is to be installed in dell-mini-10?

I am using Dell Ubuntu Mini 10 version of Ubuntu.  The problem is: I tried both 12.04 and 13.04, but both are extremely slow on this laptop.So I am now running 11.04 which is near it's End Of Life and will give no further support.  So what should I do now? Is there any better option than using 11.04?


Is $L^{p}$ space with alternate norm Banach?

$E$ is a measurable set of finite measure and $1 \le p_{1} < p_{2} < \infty$. Consider the linear space $L^{p_{2}}(E)$ normed by $||.||_{p_{1}}$. Is this space Banach?


Why is the light speed a limit? Why can't anything go faster than light? Not even a single atom?


If ΣXn and ΣYn both are convergent then prove ΣXnYn is also divergent.

I am practicing some questions on convergence and divergence and stumble onto this problem.  Can anyone provide me some hints on how should I solve this question?   I already read a similar question on stackexchange but in the answers they have taken Xn=Yn, but I want to know, is the same true if both the series are different.


Wrting out names with 6 cells between them

I would like to write out names from another worksheet to another worksheet with 6 cells inbetween the names.  Sub names()  Dim i As Integer Dim j As Integer  For j = 2 To 6054 Step 6 For i = 2 To 1010 Worksheets("Worksheet2").Cells(j, 12).Value = Worksheets("Worksheet3").Cells(i, 1).Value Next i Next j  End Sub   When i run the code it writes out the last name to every cell.


how to determine if 2 dates object equals each other?

this is my 1st question in stackoverflow.  var str="Oct 13,2011"; var date1=new Date(str); var date2=new Date(str);   of course valueOf(date1)==valueOf(date2)  but why date1!=date2  or say,how to determine 2 date object if they equal each other.  Date is a js object


What is the right preposition: On/In/At and the right question word: What/Which websites...?

How do I know which of the following questions is grammatically correct?  On/In/At what sites will this product be able to be sold?  On/In/At which sites will this product be able to be sold?  What/Which sites will this product be able to be sold?   And does it make sense to write "will this product be able to be sold"? Thank you!


I damaged the head of a screw in my laptop and now I can't get it out.  What's the best way to remove it?  Soldering it to something? Or is there any other way?


I want to implement a mechanism to compare similar / identical paths. For example, a person who makes the trip home - work every day, be able to detect these paths and create groups to compare different indicators (speed, altitude, ...).  For each trip taken by each driver is recorded with GPS coordinates along the path, so for every trip I have the coordinates along the route. Is there any algorithm to detect similarity between paths? I'm using a geospatial representation of MongoDB.  I am conducting a pre-processing on the gps data to eliminate error, consisting of round the coordinates to 3 decimal places approximately 111.32 m. Now I'm interested to know how I can consider that two paths are the same / similar to compare.  Thanks in advance.


Is there any way to execute something when closing the laptop's lid?

I'm wondering if there is any way to execute a program, run some command or anything else when closing the laptop's lid. My question aims to be generic, both for Windows and Linux. Something useful should be locking the laptop when closing the lid (Win + L in windows), or running expensive processes such as antivirus analysis etc. without doing it manually before closing the lid.


Find maximum divisors of a number in range

While playing around with programming, a problem suddenly came across my mind.      Given $n$ let's say $2^{64}$ (64-bit unsigned integer). Find a positive integer $x$, $1 \leq x \leq n$, such that $x$ has maximum divisors.   My attempt was: Let $n = p_1^{a_1} \times p_2^{a_2} \times ... \times p_k^{a_k}.$ The number of divisors is given by: $$(a_1 + 1) \times (a_2 + 1) \times ... \times (a_k + 1)$$  We need to find the maximum of these products. Since $(a_1 + 1)_{max} \implies {a_1}_{max}$, the product becomes: $a_1 \times a_2 \times .... \times a_k$ Let $P = a_1 \times a_2 \times .... \times a_k$. The maximum of $P$ means $a_i = a_j$ where $1 \leq i, j \leq k$.   So I guess my question is how can we find a number that is less than $n$ which has this property?     Thanks,


A question about the "Required reviews completed" and "under review"

I submitted my paper to a very good journal. After two months and in the first round of revision, I received comments from four reviewers requesting major revisions. I edited my manuscript as they suggested and submitted the revised version. After 4 months and in the second round of revision, I again received comments from four reviewers in that three of reviewers directly recommended that our paper should be accepted for publication, and a reviewer requested major revision. I again edited my manuscript as the reviewer suggested and submitted the revised version. After 4 months, my paper status was changed to "Required reviews completed", but after two weeks it was changed to "Under review" again. Could you guide me what it means and is it possible the reviewers reject it despite their first opinions?


I am new to DSLR camera and just purchased a Nikon D3400.  Is autofocus determined by the lens or the camera? I'm using the 18-55 kit lens and the 70-300 ASP Lens.


How to get Subtype name in Field using field calculator

I would like to get feature subtype name in another field using field calculator.   Any one can advise to make this success?  I am expecting ".Cal" file code using with Field calculator.


X is a binomial random variable, then is aX+b follows a binomial distribution?

I know when X ~ N(mu, sigma^2), then aX+b follows normal distribution. But I'm curious when it happens to binomial random variable. And I don't intuitively understand how multiply constant to binomial random variable. Could anyone help me to understand. Thanks in advance.


Why doesn't the Java Installer set the environment variable PATH automatically?

When I started learning Java I was always asked to set the environment variable PATH before using the compiler. Now, I know why I have to do so.   But why does the Java installation wizard not do it by itself as other software do?  EDIT: Before this question gets closed as primarily opinion based; I'm looking for an authoritative answer, from one of the Oracle folks here.


Is there a command that adapts automatically the size of the parentheses at the terms of the equations?  For example, in my ocasion I used \Big( but it's seems not enough.  I think could be more bigger.


Why do some users (still) not have the association bonus?

From  on Meta SO I understand that the change in the value of question upvotes from +5 to +10 led to a bug resulting in some users not receiving the association bonuses. That question is now marked as .  But, I came across  who has over 200 reputation on SO but who has not been given the association bonuses on their other accounts.  So, I suppose this means that this bug has still not been resolved completely?


When do I need to use @Override, after implemented abstract method

public interface Game{    public abstract boolean isValid(int coup); }  public Machin implements Game{     //Do I need to write @Override here ?    public boolean isValid(int coup){      //exemple      if (coup==0){         return false      }      return true    }  }  I don't understand Overriding with abstract method could you help me ? Do I need to put @Override ?


Simultaneous Requests To Site With JS Cause CPU Spike

someone is making many requests to a specific page on my site that has JS on it. Subsequently, it's driving the CPU load to 100+ if I don't restart apache.  What I tried:  - Reduce KeepAlive timeout - Installed mod_evasive (doesn't seem to work due to MaxChildProcesses, basically it's installed and blacklisting IP's but I can still hit refresh 20 times and it wont block anything) - Installed DDOS DEFLATE (usless, CSF is better) - Configured CSF to protect port 80 and ban IPs with more than 50 connections (many false positives still doesn't prevent CPU spike) - Installed limitipconn only to find out it doesn't work at all with apache 2  - Enabled syn cookies and reduced various tcp timeouts  - Optimized the site to make it less prune to DDOS attacks  Nothing really works and they can still crash my server whenever they want.   Any ideas?  Thanks Oliver


In Python, How can i copy the output to the clipboard without installing or using other pyperclip? maybe win32 or ctypes?

I am working on a project, which is to create a calculator, but part of the project is to copy the output to the clipboard. The requirement state:  It must automatically copy the result to the operating system  clipboard Solutions that require the user install any software will NOT be accepted (in case you are not sure, this means NO Pyperclip.)       import math #for the math functions  def addition(x, y):     return x + y #function addition  def substraction(x, y):     return x - y #function for substraction  def multiplication(x, y):     return x * y #function for multiplacation  def division(x,y):     return x / y #function for division  def square_root(x):     return math.sqrt(x) #function for square root  Restart = "Y" #variable used to restart the calculator  while Restart == "Y": #while loop to keep the calculator looping      print("Select Operation Number:")     print("1 = Addition")     print("2 = Substraction")     print("3 = Multiplication")     print("4 = Division")     print("5 = Square Root (Of the First Number)") #Statements to let the user know what operations are available      operationInput = int(input("Enter Operation Number (1/2/3/4/5)")) #operationInput is where the user will pick the operation by typing in the correlating number      firstNumber = float(input("Enter First Number: ")) #User inputs the first number     secondNumber = float(input("Enter Second Number: ")) #User inputs the second number      if operationInput == 1:          print(firstNumber, "+", secondNumber,"=",addition(firstNumber, secondNumber)) #If the input is 1 then it will add the two numbers      elif operationInput == 2:          print(firstNumber,"-",secondNumber, "=", substraction(firstNumber, secondNumber)) #If the input is 2 then it will give you the difference of the two numbers      elif operationInput == 3:          print(firstNumber, "*", secondNumber, "=", multiplication(firstNumber, secondNumber)) #If the input is 3 then it will multiply the two numbers      elif operationInput == 4:          print(firstNumber, "/", secondNumber, "=", division(firstNumber, secondNumber)) #If the input is 4 then it will divide the two numbers      elif operationInput == 5:          print("The Square Root of ", firstNumber, "is ", square_root(firstNumber)) #If the input is 5 then it will find the square of the first number       else:         print("Invalid Input") #If a character other than 1-5 is entered then this will show invalid      Restart = input("Type Y to start over the calculator or N to stop") #This will ask if the user wants to restart the calculator      if Restart == "N":         print("Thank you for using!") #If no it will print thank you for using


How to embed a text file in a .NET assembly?

I would like to embed a text file in an assembly so that I can load the text without having to read it from disk, and so that everything I need is contained within the exe. (So that it's more portable)  Is there a way to do this?  I assume something with the resource files?  And if you can, how do you do it and how do you programaticaly load the text into a string?


I was given a homeowork where i need to explain why did water cool down slower when it had a coat of oil on top of it. We had a cup with just water and a cup with same amount of water but some oil on top. I know the starting temperatures and the temperatures after 10 min in the cups, i know the volume of water and oil, i know the size of the cups, i know the mass of the mixture. But i don't know how to explain this problem with formulas. I would really like to know where to start, what to calculate. Thank you.


does a child under 2 need a passport for a Mexican domestic flight?

My husband, 1.6 year old and myself will be crossing the U.S border into Tijuana this friday. We plan on flying from Tijuana to Chihuahua and back. Does my child under 2 years old need a passport to be able to fly from Tijuana to Chihuahua when both places are in Mexico? Keep in mind I have crossed the border multiple times with my child with just a birth certificate.


How can mixed content compromise an entire HTTPS session?

Google Chrome is probably one of the stricter browsers out there in terms of highlighting SSL errors.  Most browsers will point out when you are viewing an HTTPS page which loads insecure images/Javascript, I understand how this is a security issue - an attacker could have modified the non-SSL content in a way which gives them access to the secure content, injected some javascript for example.  However once you have viewed an HTTPS page with mixed content, Google Chrome will continue showing you the mixed content warning (a red line through the 'https://') for as long as you stay browsing the same domain, even for subsequent pages which only include other HTTPS resources. Only once you navigate to another domain, or open a fresh tab does it tell you you're secure again.  What is the danger it's protecting you from here? How could mixed content on a previous page actually affect the security of subsequent secured pages? I understand that mixed content should be flagged up, but there must be a specific reason that Google is persisting this warning, other than "Well you still need to know about it"


Relation between the convergence of $\sum a_{n}$ and $\prod (1+a_{n})$

What is the relation between the convergence of $\sum a_{n}$ and $\prod (1+a_{n})$ where $a_{n} \in \mathbb{C} \ \forall n$ ?  Where can I find some references about this topic ?


How can we show that $\mathbb Q$ is not a free $\mathbb Z$-module?

I am really confused from the definition.  How do we know that $\mathbb Q$ is not a free $\mathbb Z$-module?  In class people use it as a trivial fact, but I don't seem to understand.


How can you completely remove a package?

I am trying to do a clean install of the octave3.2 package.   To do this, I removed it, then tried to reinstall it.   When I reinstalled, an error occurred. It could be a bug in the package, but I want to make sure I have everything removed so that I can do a clean install.  Is it enough to do this?  sudo apt-get --purge remove octave3.2


I have planned to build a circuit to display voltage and time value using PIC16F877A micro controller.To do this i tested the circuit using Proteus software as i attached here. It can display up to 5V.  my question is can i read up to 300V using this micro controller?(I planned to use LR8N3G voltage regulator to give input voltage to PIC).will it damage the PIC? If so how can I read high voltage from this?


What does $\sum_{n=2}^{\infty} \ln(\zeta(n))$ converge to?

Introduction  I was playing around with the zeta function when I thought of this series:  $$\sum_{n=2}^{\infty} \ln(\zeta(n))$$  According to  this sum converges and gives the following approximation:  $$\sum_{n=2}^{\infty} \ln(\zeta(n))\approx 0.83067$$    Questions   Is this a "known" series from before? I find this series quite cool and I thought I would find it somewhere but I didn't.  says it confirmed the convergence by the root test, can anybody confirm this? What's the closed-form of what the series converges to (exact value)?     Extra: My attempts  I tried to solve the 3rd question, but I don't have much ideas. An attempt I made was to note that:  \begin{align} \sum_{n=2}^{\infty} \ln(\zeta(n)) &= \sum_{n=2}^{\infty} \ln(\prod_p \frac{1}{1-p^{-n}}) \\\\ & = \sum_{n=2}^{\infty} \sum_p \ln(\frac{1}{1-p^{-n}})) \\\\ & = -\sum_{n=2}^{\infty} \sum_p \ln(1-p^{-n})) \end{align}  ...but it didn't get me anywhere.  also lists some integrals that are equal to $\ln(\zeta(n))$, but I'm not that familiar with them. Here's an example:  $$\displaystyle \ln \zeta (s)=s\int _{0}^{\infty }{\frac {\pi (x)}{x(x^{s}-1)}}\,\mathrm {d} x$$ And also: $$\displaystyle \ln \zeta (s)=s\int _{0}^{\infty }J(x)x^{-s-1}\,\mathrm {d} x$$ where $J(x)$ is the Riemann prime-counting function. I doubt that these are going to help, but I'll just put them here.  I'm not experienced in evaluating infinite series so I don't have anymore ideas. It would be highly appreciated if some of you could shed a little bit of light on this question!  Thanks in advance!   EDIT 1:  As  noted,  is quite similar because my series is equal to $\ln(v)$ in the other question.  EDIT 2: Using basically the same method as in , we obtain (using one of the equations above):  \begin{align} \sum_{n=2}^{\infty} \ln(\zeta(n)) &= \sum_{n=2}^{\infty} n\int _{0}^{\infty }J(x)x^{-n-1}\,\mathrm {d} \\\\ & = \int _{0}^{\infty}J(x)(\sum_{n=2}^{\infty}\frac{n}{x^{n+1}})\,\mathrm {d} x \\\\ &= \int_0^{\infty} J(x) \frac{2x-1}{(x-1)^2x^2}\,\mathrm {d} x\end{align}  This is a quite interesting result which I believe is correct, but I'm still not satisfied. We can do better!


How to bypass external hard drive permissions

I bought an external hard drive from a computer repairman when he could not fix the computer I brought in for repair. I have not been able to access it since bringing it home to use because access is denied to me and I do not have permission to access the files. I did not do this and he wants to charge me to undo what he did. How can I remove these permissions myself  or is this money wasted? Computer needing repair was an ace notebook eMachines


I tried to install Ubuntu following all the instructions, but still the installation says "you need at least 8.6gb..."

I am new to Ubuntu and recently I bought a new Dell Computer: Inspiron 13 5000 with 256 SSD, model i5379-5893GRY-PUS. I am trying to install Ubuntu.  I did try a lot of configurations, but none was successful. Things I already tried:   Disable fast boot powercfg off AHCI enable Startup windows on safe mode and then restarting Disable security boot Partitioning on windows   I really don't know what else to try.   Commands:  $ fdisk -l  Disk /dev/loop0: 61.6 MiB, 64573440 bytes, 126120 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop1: 318.1 MiB, 333533184 bytes, 651432 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop2: 962 MiB, 1008779264 bytes, 1970272 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop3: 426.5 MiB, 447172608 bytes, 873384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/sda: 7.4 GiB, 7948206080 bytes, 15523840 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x4f4e129b  Device     Boot   Start     End Sectors  Size Id Type /dev/sda1  *         64 3731283 3731220  1.8G cd unknown /dev/sda2       3731284 3739475    8192    4M ef EFI (FAT-12/16/32)   $ lsblk -f (DONE USING MANJARO)  NAME   FSTYPE   LABEL    UUID                                 MOUNTPOINT loop0  squashfs                                               /run/miso/sfs/livefs loop1  squashfs                                               /run/miso/sfs/mhwdfs loop2  squashfs                                               /run/miso/sfs/desktopfs loop3  squashfs                                               /run/miso/sfs/rootfs sda    iso9660  MJR17110 2018-05-07-20-05-15-00               /run/miso/bootmnt ├─sda1 iso9660  MJR17110 2018-05-07-20-05-15-00                └─sda2 vfat     MISO_EFI FDB1-353B     $ ls -ltr /dev/sda*  brw-rw---- 1 root disk 8, 0 Jul  4 05:36 /dev/sda brw-rw---- 1 root disk 8, 2 Jul  4 05:36 /dev/sda2 brw-rw---- 1 root disk 8, 1 Jul  4 05:36 /dev/sda1   $ ls -ltr /dev/loop*  brw-rw---- 1 root disk  7,   7 Jul  4 05:36 /dev/loop7 brw-rw---- 1 root disk  7,   6 Jul  4 05:36 /dev/loop6 brw-rw---- 1 root disk  7,   5 Jul  4 05:36 /dev/loop5 brw-rw---- 1 root disk  7,   4 Jul  4 05:36 /dev/loop4 brw-rw---- 1 root disk  7,   2 Jul  4 05:36 /dev/loop2 brw-rw---- 1 root disk  7,   1 Jul  4 05:36 /dev/loop1 brw-rw---- 1 root disk  7,   0 Jul  4 05:36 /dev/loop0 crw-rw---- 1 root disk 10, 237 Jul  4 05:36 /dev/loop-control brw-rw---- 1 root disk  7,   3 Jul  4 05:36 /dev/loop3   $ sudo lshw -C storage  *-usb:0                           description: Mass storage device        product: USB Reader        vendor: ChipsBnk        physical id: 1        bus info: usb@1:1        logical name: scsi0        version: 1.00        serial: 110074973765        capabilities: usb-2.00 scsi emulated scsi-host        configuration: driver=usb-storage maxpower=100mA speed=480Mbit/s   *-storage UNCLAIMED        description: SATA controller        product: Sunrise Point-LP SATA Controller [AHCI mode]        vendor: Intel Corporation        physical id: 17        bus info: pci@0000:00:17.0        version: 21        width: 32 bits        clock: 66MHz        capabilities: storage msi pm ahci_1.0 cap_list        configuration: latency=0        resources: memory:d1230000-d1231fff memory:d1234000-d12340ff ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:d1233000-d12337ff


I have an idea for a character but don’t know the specifics. A paladin with two shields, would I get the ac bonus from both shields, and would I be able to use the shields as weapons? If i can use them as weapons, how powerful would they be?


What is "baseline" in precision recall curve

I'm trying to understand precision recall curve, I understand what precision and recall are but the thing I don't understand is the "baseline" value. I was reading this link    and I don't understand the baseline part as shown in "A Precision-Recall curve of a perfect classifier" what does it do? and how do we calculate it? Is it just a random baseline we select? For example I have twitter data with attributes like retweet,status_count etc and my class label is Favorited 1 if Favorited and 0 if not Favorited and i apply  naive bayes on it and now I want to draw precision-recall curve, how should I set my baseline in this case?


Reason for multiple bars in Legend entries

I am have a similar Grouped Bar Chart as shown in   and wish to know why there are multiple bars in the legend entry. Is it possible to modify the legend so as to consolidate these bars?


Addons not appearing when I search for them

I am trying to install a addon that lets me  files but it is not appearing after I press the button "install from file" and select the file. Here are some pictures of what I do to install it.      As seen above it is nowhere to be found! (sorry for the poor quality pictures)


Show that not exists any polynomial function such that $f(x) = \log (1+x)$.

Does anyone have any idea on that problem?     Let $f : \mathbb{R} \to \mathbb{R}$ be a polynomial function. Show that not exists any $f$ such that $f(x) = \log (1+x)$.   It's easy to show that $a_0 = 0$ and $a_1 = 1$. But after i don't have any idea. Any point? Thanks!


What can a questioner do if a well-written question goes almost completely unnoticed?

I recently posted a  to Stack Overflow, which I think was well-written and thought-out. However, since dozens of questions are posted every minute, I feel like it is getting close to impossible that my question - basically most questions around here for that matter - is going to get enough exposure to have a chance of being answered. Instead it will get stuck at around 5-30 views, and then never to be seen again.   Is there anything a questioner can do about this? I obviously do not want to repost and thereby spam the site. Will reformulating my question "bump" it? Any other options, or is it just plain bad luck if your post gets buried by the acute stream of incoming posts?


When an LED is burned out, specifically which part is burned out? Is it the semiconductor or the wires? Can we use a burned out LED to generate electricity?


A regular surface with non zero mean curvature is orientable

How can I prove that any regular surface with non zero mean curvature is orientable?  UPDATE: The surface is embedded in $\mathbb{R}^3$.


intersection of two non empty subgroups of (Q,+) is not equal to {0}

Let G be a group of rationals under addition, if $G_1$ and $G_2$ are two non empty subgroups of G, then prove that $G_1 \cap G_2 \neq${0}


How to invoke template constructor on a separate file?

I have the following files  // File : Node.hpp  #ifndef NODE_H #define NODE_H  template <class T> class Node { public:         Node(T data);       private:         T data_; };  template class Node<int>;     #endif   The second file is the Node.cpp  #include "Node.hpp"  template <class T> Node<T>::Node(T data) {         data_ = data;         next_ = 0; }   Now in the a.cpp file I have  #include "Node.hpp"  #include <iostream>  int main() {      Node<int> a(20); }   On compiling I get  meow@vikkyhacks ~/Arena/c/LinkedList $ g++ -I ./include/ lib/Node.cpp a.cpp -o main && ./main && echo && rm main /tmp/ccswcJfR.o: In function `main': a.cpp:(.text+0x15): undefined reference to `Node<int>::Node(int)' collect2: ld returned 1 exit status   As you can see I have already template class Node<int>; to the Node.hpp, but still the linker is complaining about something which I believe is that it cannot find Node's constructor. How do I go about this ?  Duplicate Thread  This is not a duplicate of  because I already read that and its not helping me solve this problem. I need to know "How I can have the template constructor along with the class definition ?" and this is not discussed in the duplicate thread


In the proof of some proposition, it appears that the following statement should hold:     $$ \sum_{r=1}^{n+1} \sum_{\beta=0}^{r-1} C^{n+1}_r C^n_{\beta} =2^{2n}. $$   However, using the definition of combinatorials does not help:  $$ \sum_{r=1}^{n+1} \sum_{\beta=0}^{r-1} C^{n+1}_r C^n_{\beta} =  \sum_{r=1}^{n+1} \sum_{\beta=0}^{r-1} \frac{(n+1)!}{(n+1-r)!r!} \frac{n!}{(n-\beta)! \beta!}.$$  I suspect that this has something to do with the binomial expansion. Any ideas?


Check the convergence of $\sum_{n=1}^{\infty}\frac{n}{n^4+n^2+1}$ and if it converges find the sum

Check whether the series converges or not. If yes, find the sum of the series $$\sum_{n=1}^{\infty}\frac{n}{n^4+n^2+1}$$  My Efforts  Observe $n^3<n^4+n^2+1$  $\therefore$ $\frac{1}{n^4+n^2+n+1}<\frac{1}{n^3}$ which further implies that $\frac{n}{n^4+n^2+n+1}<\frac{n}{n^3}=\frac{1}{n^2}$  Since $\sum_{n=1}^{\infty}\frac{1}{n^2}=\frac{\pi^2}{6}$, we conclude by comparison test that the series converges.   I am not able to find the sum of this series? Any hints or directions will be appreciated.


I have a doubt that why TWRP Recovery tool is being developed for each smartphone specifically even it does an almost same thing in android phones?


I've installed ipython inside virtualenv on my macOS. My PATH environment variable also shows virtualenv path to be at the beginning. which command also shows that ipython at the correct location.   The problem is, when I run ipython, the shell is finding the previous installation in an odd place. Here's some examples:  (csv_import) $ ipython -bash: /usr/local/bin/ipython: /usr/local/opt/python3/bin/python3.6: bad interpreter: No such file or directory (csv_import) $  (csv_import) $ which ipython /Users/zeinep/.virtualenvs/csv_import/bin/ipython (csv_import) $  (csv_import) $ echo $PATH /Users/zeinep/.virtualenvs/csv_import/bin:/Users/zeinep/.avn/bin:/Users/zeinep/.nvm/versions/node/v10.14.1/bin:/usr/local/lib/python3.6/bin:/Users/zeinep/Library/Python/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin (csv_import) $  (csv_import) $  (csv_import) $ /Users/zeinep/.virtualenvs/csv_import/bin/ipython Python 3.6.5 (default, Jun 17 2018, 12:13:06)  Type 'copyright', 'credits' or 'license' for more information IPython 7.3.0 -- An enhanced Interactive Python. Type '?' for help. In [1]:            As can be seen, if I use a full path, it works. Otherwise, old installation at /usr/local/bin/ipython is run even though the shell should be finding the one in in virtualenv as far as I can see.


Are there any plugins for LaTeX or TeX in Netbeans, Eclipse or any IDE?

I was wondering if there are any plugins for LaTeX or TeX in Netbeans, Eclipse or any IDE? Thank you so much.


Any tips on how I should properly be naming python variables? Like any correct forms or for clean code. Like for instance myNum = 1  or mynum = 1  or my_num = 1


I am coming from a functional-programming background at the moment, so forgive me if I do not understand closures in C#.  I have the following code to dynamically generate Buttons that get anonymous event handlers:  for (int i = 0; i < 7; i++) {     Button newButton = new Button();      newButton.Text = "Click me!";      newButton.Click += delegate(Object sender, EventArgs e)     {         MessageBox.Show("I am button number " + i);     };      this.Controls.Add(newButton); }   I expected the text "I am button number " + i to be closed with the value of i at that iteration of the for loop.  However, when I actually run the program, every Button says I am button number 7.  What am I missing? I am using VS2005.  Edit: So I guess my next question is, how do I capture the value?


add/show X more comments needs to be seperated

When wanting to, simply, see "more comments" on SE sites the cursor is automatically put into the comment box.   On a computer this really isn't a problem - in fact I probably wouldn't even notice. But on the mobile website it's a real pain in the next because every time it not only selects the comment box but zooms right in on the comments box (at least on iOS) - in order to read the other listed comments you first need to zoom out just to be able to even fully see what is written.   I would propose removing the automatic selecting of the "add comments" box - because it can be selected very simply anyway.


I discovered the following conjectured identity numerically while studying a family of related integrals.  Let's set $$ R^{+}:=  \frac{2}{\pi}\int_{0}^{\pi/2}\sqrt[\normalsize{8}]{x^2 + \ln^2\!\cos x} \sqrt{ \frac{1}{2}+\frac{1}{2}\sqrt{ \frac{1}{2}+ \frac{1}{2}  \sqrt{ \frac{\ln^{2}\!\cos x}{ x^2 + \ln^2\! \cos x}}}}\,\mathrm{d}x, \tag1 $$ $$ R^{-}:=  \frac{2}{\pi}\int_{0}^{\pi/2}\frac{1}{\sqrt[\normalsize{8}]{x^2 + \ln^2\!\cos x}} \sqrt{ \frac{1}{2}+\frac{1}{2}\sqrt{ \frac{1}{2}+ \frac{1}{2} \sqrt{ \frac{\ln^{2}\!\cos x}{ x^2 + \ln^2\! \cos x}}}}\,\mathrm{d}x. \tag2 $$ We may numerically observe with at least 500 digits of precision that $$  \begin{align} & R^{+}R^{-} \stackrel{?}{=}1 \tag 3 \\\\ & R^{+} \stackrel{?}{=} \sqrt[\normalsize{4}]{\ln 2} \tag4 \\\\ & R^{-} \stackrel{?}{=}\frac{1}{\sqrt[\normalsize{4}]{\ln 2}}. \tag5 \end{align} $$  How can we prove it?  A version of this has been sent to Eric Weisstein, these integrals are on Mathworld as .


Proving that $\frac{1}{a_1....a_n} \geq (n-1)^n $ under certain conditions

Suppose $a_k > 0$ for $k=1,...,n$ and $\sum_{k=1}^n \dfrac{1}{1+a_k} =  n-1 $. Prove that $$ \prod_{k=1}^n \dfrac{1}{a_k} \geq (n-1)^n $$  Proof: Taking $log$ in both sides we obtain that $$ \sum_{k=1}^n  \log(1/a_k) \geq n \log (n-1) $$ And by hypothesis, it be enough if we can prove $$ \sum_{k=1}^n \log \left( \dfrac{1}{a_k } \right) \geq n \log \left( \sum_{k=1}^n \dfrac{1}{1+a_k} \right) $$ I dont see how to prove this. But, we go back to the beginning and apply Harmonic-Geometric mean ineq to $( \prod 1/a_k )^{1/n} $, we obtain $$ \left( \prod_{k=1}^n \dfrac{1}{a_k} \right)^{1/n} \geq \dfrac{n}{\sum_{k=1}^n a_k } \geq \sum_{k=1}^n \dfrac{1}{1+a_k} = n -1 $$ and this would be the end but we still to prove that $$ n \geq (a_1+.... + a_n) \left( \dfrac{1}{1+a_1} + ... + \dfrac{1}{1+a_n} \right) $$ but I am unable to prove this. Any assistance would be greatly appreciated.


Cannot log in with Apple ID after performing password reset

My wife forgot the password to her Apple ID account. Her Macbook Air (OS X Yosemite) restarted to install some updates. She has her user account set up through her Apple ID account.  Since she forgot the password she reset it from my laptop.  She can log in to iCloud and Apple ID with the new password, but cannot log in with the new password on the Air.  When she tries to log in she is greeted with this message:     "This account uses an iCloud password to log in. If you need to change   the password, use another device to change it at appleid.apple.com."


Is this a sufficient prepared statement?

I've read through many of the recommended questions regarding php, pdo and prepared statements, but I still find myself questioning if what I have is enough to prevent an sql injection or other attack. I have a single form that collects user emails and sends them to a table in my phpadmin database. The database connection is functional and the html form successfully sends the email input into the table, see the code below. My question is, is what I have sufficient to prevent sql attacks?? <?php $dbHost = ""; $dbUser = ""; $dbPassword = ""; $dbName = "";  try {   $dsn = "mysql:host=" . $dbHost . ";dbname=" . $dbName;   $pdo = new PDO($dsn, $dbUser, $dbPassword); } catch(PDOException $e) {   echo "DB Connection Failed: " . $e->getMessage(); }  $status = ""; if($_SERVER['REQUEST_METHOD'] == 'GET') {   $email = $_GET['email'];    if(!filter_var($email, FILTER_VALIDATE_EMAIL))  {       $status = "Please enter a valid email<br/>(no space at the end)";     } else {        $sql = "INSERT IGNORE INTO contactinfo (email) VALUES (:email)";        $stmt = $pdo->prepare($sql);              $stmt->execute(['email' => $email]);        $status = "Success! Please click the confirmation link in the email I've sent you. It will expire in 12 hours.";       $email = "";     }   } ?>


How to recover files lost during cut and paste

Running Ubuntu 20.04.1 LTS, I plugged in a usb flash drive and an external drive via usb. Using GUI "Files" I created a new directory (let's call it New_Directory for further reference) in the external hard drive. I then selected another directory in the usb flash drive (this directory contained only one archive), and cut it. I switched to another window of "Files" where the external hard drive was opened. There I clicked "paste". The moving process began. It was taking some time. I didn't notice if it finished or not, but at some point in time the external hard drive's status began rapidly changing, as if it was being plugged in and out quickly (which it was not - it sits firmly on a solid ground). After that the directory I wanted to move disappeared. It is nowhere to be found. It isn't in Trash, hidden files do not display it among them, find -name dir_name returns nothing. Interestingly, the New_Directory also vanished. I can't find it. Could it be of importance that its name contained ;( at the end? Yeah, irony. Lessons learned:  important files should rather be copied than moved; perhaps copying files to the desktop first is safer than from one external device to another.  Would you please suggest a way to restore this archive? P. S. It was only later that I noticed "Undo" and "Redo" buttons in GUI "Files". They seem to only keep track of the last operation which unfortunately was overwritten since then. But I know for sure that when I cut and pasted the directory, it was not in the buffer - "paste" option was disabled, as if there was nothing to paste.


Class declaration without private or public at the beginning

Why there is a Java class declaration without public or private at the beginning?  For example :   class MyClass{   // code  }


Do I need a transit visa for a layover in the United Arab Emirates?

Do I need a transit visa for a layover via airports in the UAE, such as Dubai International Airport or Abu Dhabi International Airport? If so, what are the requirements for such a visa? Can I get the transit visa on arrival?


How do you do load testing and capacity planning for databases?

This is a  about capacity planning for databases. Related:      I'm looking to create a canonical question of tools and methods of capacity planning for databases. This is intended to be a canonical question. Obviously, the general workflow is:  Put your scenario in place Add monitoring Add traffic Evaluate results Remediate based on results Rinse, repeat until reasonably happy  Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices.


When I write a document, I get always Underfull and Overflow warnings. I know what do these warnings mean.   I want to know what LaTeX (TEX I guess) does to format a paragraph. I mean, how it decides where to break a line, for example. I have got an Underfull warning on paragraph I wrote (sorry I don't have it now); as a result, I got a part of the word development (lopment) written in the margin.   Why does LaTeX not wrote deve- in the first line and lopment in the next line?


I installed  soft PhotoRec and recovery some files after I want to delete but i cant  how can I delete this files and folders? can somebody help me I am new user.  “recup_dir.1” can't be put in the trash. Do you want to delete it immediately?


Man undergoes cryonic suspension, through multiple millennia. Has a redhead girl friend and they reunite in each age

I read this novel in the 90s. The main character goes into cryonic suspension several times. In one era the planet is dying. Humans are struggling to survive. There are very few humans, life is grim and they live underground. He freezes again, and millennia later humans live in space stations above earth. He is sort of a concubine for a female leader. They also have genetically modified gorillas as servants.  At each of the times he always somehow reunites with his girlfriend who has also frozen and reawakened. She's a redhead.   It'd be amazing if someone can ID this novel.


Repeated measures ANOVA with unbalanced data

I am a master's student, and I need your help. I did experiment on one group of rats, the group was tested during 8 days, this is the first stage. The same group was also tested again but this time the test phase was 7 days. I tried to do my analysis using ANOVA repeated measures but I had a problem with the days. I want to know the difference in the 2 tests but the days are not the same number. I don't know how to handle it. If there is any way to do the analysis using repeated measures ANOVA.  I tried to use repeated measures ANOVA within subjects effect. My first factor will be test with 2 levels (test 1 & 2), second factor is day with the level of? Here is the problem! If I write 8 there will be extra day in test 2 and the analysis can't run!


Don't get right uploaded file name in IE8 (asp.net mvc)

In my MVC project I have a form to upload a file. If I use Google Chrome, Firefox or Opera to upload a file, I get only the file name like Inventory_June_2013.xlsx.   When I use IE8 to upload a file, I get a file name like  C:\Documents and Settings\gornel\My Documents\Inventory_June_2013.xlsx.  How to fix this?  UPD This is my File.cs  using System; using System.ComponentModel.DataAnnotations; namespace Argussite.SupplierService.Core.Domain { public class File : Entity {     public const int ContentTypeLength = 100;     public const int FileNameLength = 100;     public const int StorageNameLength = 100;      protected File()     {}      public File(string name, string contentType, long fileSize)     {         Name = name;         ContentType = contentType;         FileSize = fileSize;         StorageName = Guid.NewGuid().ToString("D");         UploadTime = DateTime.Now;     }      [Required, MaxLength(FileNameLength)]     public string Name { get; set; }      [Required, MaxLength(ContentTypeLength)]     public string ContentType { get; set; }      public long FileSize { get; set; }      [Required, MaxLength(StorageNameLength)]     public string StorageName { get; set; }      public DateTime UploadTime { get; set; } } }   And it's code from controller  public ActionResult UploadFile(Guid eventId, HttpPostedFileBase file)     {         //...         var document = new File(file.FileName, file.ContentType, file.ContentLength);         @event.FileId = document.Id;         @event.ActualDate = document.UploadTime;          Context.Files.Add(document);          file.SaveAs(GetFilePath(document.StorageName));          Register(new DocumentUploadedNotification(@event, @event.DocumentType, document, UrlBuilder));          return RedirectToAction("Details", "Suppliers", new { id = @event.SupplierId });     }   I use class HttpPostedFileBase and property FileName.


Determinant of the character table of a finite group $G$

This is an exercise from the book "Groups and Representations" by Alperin & Bell. This quantity is well defined upto a sign. By column orthogonality relations, its squared norm is  $\displaystyle\prod_{\substack{g}} |C_G(g)|$, where g runs over the representatives of the conjugacy classes. If the group is cyclic, the determinant is just a Vandermonde determinant.   I wonder if there is a nice explanation for an arbitrary group.


I had an interview question:     You were told that a search engine result by target query does not satisfy a requirement by its position. How would you test it?   How would you test it?  I had some thoughts though:   You need a list of input search queries You need a target position for each of the query You match each target position with actual   But it was not enough.


Why is Tony Stark in the Iron Man suit unaffected by G-forces, inertia and blunt force trauma?

Tony's suit is an engineering marvel, and they explain many facets of the technology to help give legitimacy to the special powers, abilities and weapons it has.  I never read the Iron Man comics, but in the movie they really don't have a technological explanation for how he miraculously seems to be unaffected by crushing G-forces of sudden acceleration, the inertia of sudden stops and hair-pin turns, and especially the blunt force trauma from getting smashed in the face with Thor's hammer.  Certainly it appears the suit takes punishment, but Tony always remains unscatched, never a collapsed lung, broken bone or even a bloody nose.  In my infantile understanding of theoretical physics, the same technology that would be used to counter G-forces and sudden blunt force trauma to the body inside would be the very same technology used for  which in my honest opinion would be a much more stunning technological achievement than his heralded Arc Reactor.  Was their ever an explanation proferred for this and if so was it indeed attributed to Anti-Gravity?


jquery event fires on item's previous class

I use a jquery function on a div.class. In the function I change the class on $(this) so that the function may only be called once per div.  Inspecting the element with Firefox web developer options shows the class as changed, yet the click event for the original class will still fire on the element with the new class.  Code below; I also tried to implement this with toggleClass, exact same results.  Any suggestions?  $('div.cluebox').click(function(e) {             $( this ).removeClass("cluebox").addClass("emptyBox");;      });   Thanks


I am working on a simple code that keeps incrementing a counter every second and will stop incrementing only when a 'q' is pressed .  I tried getchar() and getline()  , but they require the user to enter an input for every loop .  to make it simpler , this code keeps counting on the console forever until I terminate it by ( Ctrl+c ) , I would like to use 'q' to do the same functionality.  #include <stdio.h> #include <stdlib.h> #include <windows.h> int j=0; int main() {     printf("Enter Q to quit !\n");     while(1)     {     j++;     printf("%d\n",j);     Sleep(1000);     system("cls");     }     return 0;  }


What does $2^π$ : the multiplication of $2 \pi$ many times?

This is rather an intuitive question, in the sense that indeed a real number raised to the power of an irrational doesn't make sense but I wanted to know what does it mean intuitively. If $2^7=2*2*2*2*2*2*2, 2^{\frac{1}{2}}=\frac{1}{\sqrt{2}}$ and $a^b=a*a*a*a*a*...*a\, \,  b$ many times, I'm curious as to what does $2^π$ mean. Obviously it's equal to $8.8249778271...$ but what's the meaning in the aforementioned scenario?


The method for roots of a scalar function $f$ alternates Newton steps ($x_k\mapsto z_{k+1}$) and simplified Newton steps ($z_{k+1}\mapsto x_{k+1}$).  I think I need to Taylor expand all the f, but I do not know how to deal with the $f(z_{k+1})$ term. Seems like Taylor expanding that is very hard. Any help is appreciated.


What is the pythonic way to avoid default parameters that are empty lists?

Sometimes it seems natural to have a default parameter which is an empty list. Yet . If for example, I have a function: def my_func(working_list=[]):     working_list.append("a")     print(working_list)  The first time it is called the default will work, but calls after that will update the existing list (with one "a" each call) and print the updated version. So, what is the pythonic way to get the behavior I desire (a fresh list on each call)?


Given a short exact sequence, is the following true?

Say $0 \to M_1 \to M_2 \to M_3 \to 0$ is a short exact sequence and each $M_i$ is an $R$-module. If $M_2$ is finitely generated, then so also is $M_1$?


Can we have a square or triangle or heart or *something* after employees' names?

Given that not all employees have a diamond:     All Stack Overflow employees aren't given a moderator diamond; the Community team has tightened up internal policies regarding who gets one and who doesn't. [...] —      can we have some visual indication that they are an employee?  This was  back in 2011, but declined. However, the situation appears to have changed now with fewer employees being given a diamond.  That way when they post on a meta site we know that it's somewhat "official".  Failing that please ensure that everyone includes the fact they're an employee in their profile given that  to add employee to their profile pages was also declined.


In Magic, can an ability target a permanent that is being sacrificed as part of that ability's activation cost?

Suppose my opponent has a  in play, and I have  and no creatures. During my turn I cast  to gain control of the Colossus and attack with it. So far I haven't done anything controversial.  Now, at this point what I want to do is sacrifice the Colossus to my Attrition, so that my opponent doesn't get him back at the end of the turn. However, Attrition's ability requires a target, and the Colossus is the only potential target on the battlefield. Is it legal to activate the ability and target the Colossus, even though I also want to sacrifice him as part of the ability's cost?  In other words, can I target a creature with an ability, and also sacrifice that same creature as part of the ability's activation cost?  (The ability won't resolve, of course, but that was never the real goal. Normally it would be better to target another of the opponent's creatures, but in this case he doesn't have any, so the Colossus is the only potential target.)


How to find this infinite summation: $\sum_{n=1}^{\infty}\frac{1}{(2n-1)^2}$?

It is given that $f(x)=|x|$ in $-\pi\le x\le \pi$ then the value of    $$\sum_{n=1}^{\infty}\frac{1}{(2n-1)^2}$$   is equal to       a) $\Large \frac{\pi^2}{2}\qquad$ b) $\Large\frac{\pi^2}{4}\qquad$ c) $\Large\frac{\pi^2}{6}\qquad$ d) $\Large\frac{\pi^2}{8}$   I expanded the series $$\sum_{n=1}^{\infty}\frac{1}{(2n-1)^2}$$ $$=\frac{1}{1^2}+\frac{1}{3^2}+\frac{1}{5^2}+\frac{1}{7^2}+\ldots$$ Now, I don't have any clue how to proceed.


When I ran this command:  sudo apt install openjdk-8-jre-headless   I keep getting this:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


Prove that neither $A$ nor $B$ is divisible by $5$

Let the sum   $$ {1+ \frac12 + \frac13 + \frac 14+ \dots +\frac1{99} + \frac 1{100}}$$  be written as $\frac AB$, where $A$ and $B$ are positive integers with no common factors. Show that neither $A$ nor $B$ is divisible by $5$.    Using Mathematica, I found the sum is $$\frac AB=\frac {14466636279520351160221518043104131447711}{2788815009188499086581352357412492142272}$$


Is it possible to perform operations individually to faces?

I would like to know if it is possible to perform operations (extrude and scale mainly) to individual faces as opposed to groups of faces.  Currently when I select these faces...    And extrude, I get this:    I would like to know how to get this:    Setting the pivot point to Individual Origins doesn't work either for contiguous selections of faces.      I often need to do this kind of extrude+scale to lots of faces at a time, so it is simply not efficient (bordering on impossible) to do them one at a time as I did for the example.


Why do corticosteroids harm COVID-19 patients?

states that steroids could do more harm than good in treating coronavirus (COVID-19), referring to .      Understanding the evidence for harm or benefit from corticosteroids in   2019-nCoV is of immediate clinical importance.   It's unclear to me how exactly the use of corticosteroids (which is a common treatments for Asthma patients) can do harm other than the vague explanation of "steroids also impair the immune system's ability to fight viruses".   How exactly does the use of steroids harm the body in case of fighting a virus such as SARS-CoV-2 (2019-nCoV) that causes COVID-19?


Why could starfleet officiers not beam (ancient) nukes aboard a borg ship?

We have seen several times starfleet officers beaming aboard Borg vessels and do their thing. As long as they are not a threat. The Borg only assimilate things that are worthy of assimilating. To my understanding anti-matter warheads cannot be transported with the transporter, but nuclear warheads could have (nukes don't use anti-matter). Now take the Tsar Bomba. That nuke was detonated 400 years earlier. But it generated a fireball of 8km in size. A Borg ship would never survive such an explosion. And you don't even need a Tsar Bomba like nuke to destroy the Borg Cube. A much smaller nuclear explosion would do the trick.


Why is $\int_{0}^{\infty} \frac{1}{1 + x^t} \mathop{\mathrm{d}x}=\frac{\pi/t}{\sin(\pi/t)}$?

I don't know how to show $$ \int_{0}^{\infty} \frac{1}{1 + x^t} \mathop{\mathrm{d}x}=\frac{\pi/t}{\sin(\pi/t)} $$ for $t > 1$. I guess I'm supposed to use properties of gamma function and Euler's reflection formula. (I'm sorry if it turns out to be trivial -- I'm not a math student.)


Where does my browser save youtube videos?

If I suddenly lose my Internet connection, all of the Youtube videos that were pre-loaded by my browser (Chrome or Firefox) can still be watched and watched again, since they are saved somewhere in the memory of my PC.  Where does my browser save such videos? In what format?  I am interested in both Windows and Ubuntu-similar operative systems.


Just starting to properly learn the chapter on homomorphisms, and it will be great if I can understand the following question I have:  How could I actually show that when there are two groups $G$ and $H$ (finite), and $|G|$ and $|H|$ are coprime, then then homomorphism $\Phi:G \rightarrow H$ must be trivial.   My idea: Since $Im(\phi)$ and $Ker(\phi)$ are respective subgroups of the groups $G$ and $H$, then by Lagrange's Theorem $|Ker(\phi)|||G|$ and $|Im(\phi)|||H|$. I think if we just show that the |$Im(\phi)$| is $1$, then it implies that the $|Ker(\phi)|$ is equal to the order of $G$. Hence $\phi$ must be trivial. But if this is correct, I cant seem to show $|Im(\phi)|=1$. However, is this the correct way?   Can someone please help me show the homomorphism $\Phi$ is trivial if my idea is completely off?


Can I install Window7 on an existing Ubuntu 14 laptop by shrinking the Ubuntu 14 partition, installing Windows 7 into the created freespace, and running Boot Repair to get the Grub boot menu with both Windows 7 and Ubuntu 14.  Here is the layout of my partitions as shown by GParted:  Partition     FileSystem   Size           Flags /dev/sda1   Fat32          512.00 Mig      boot  /dev/sda2   ext4           224.42 Gig /dev/sda3   linux-swap       7.97 Gig   Does this still look ok in terms of installing Windows after shrinking /dev/sda2?


Fifteen lines are drawn in a plane such that four of them are parallel.What is the maximum number of region in which the plane is divided?......Tried to solve but did not get any idea


Schengen visa for multiple visits, how to fill out the forms?

I'm planning to travel to France a few times in the next few months (tourist). Since I need a Schengen visa, I just don't know how to fill out the forms (which only have questions about travel dates of ONE single trip).  How do I report that I am traveling a few times, because if I don't they might only give me a single entry visa (or a visa not valid long enough for my next trips). I can only see that I'm requesting a multiple entry visa, nothing else about how long I need it to be valid.  Do I need to provide proof of hotel/flight reservations and travel insurance for all the trips or would the first one suffice?  How do I approach this issue so that I get a Schengen visa for at least 4.5 months? I am applying in the UK at their London application centre.


How do I sudo without having to enter my password?

I'm trying to setup sudo without no password but still I get prompted for password, I'm using ubuntu, here is the relevant line from the sudoers configuration file :  gandalf ALL=(ALL:ALL) NOPASSWD: ALL


We'll be having external auditors coming over to perform a review on our Oracle database. They will be running a tool to perform the review and for that, they require a user ID that can connect to the database and grab information from it.  We have an existing user in the database for this. However, it is a production ID and we cannot afford to have it locked out. We would like to clone / duplicate this ID including its roles and rights.  Is there a way we can do so in Oracle?


When labelling polygons, not all labels are displayed - QGIS 1.7.0

I am trying to create a simple map of Mexico showing the state polygons and their label.  The state shapefile is from , and the specific file is the first one from the top (Áreas Geoestadísticas Estatales (7.43 Mb)).  I edited the attribute table to create a new column with shorter state names called NOM_SHORT.  To add labels I used the "ABC" dialog as below:     However not all states were labelled, including Oaxaca and San Luis Potosí, as shown below (painted in light grey).  Why?   Here is attribute table:


Can't access list items/links added to DOM

The Problem  I made a "Type Ahead" search feature in Javascript that returns results that match what you are typing. The search results are returned as list items (with links) and are added to the DOM, but the links do not open up on the first click, and they did not show up when I tested a mouseenter eventlistener function that logs elements you enter on the page. I thought the problem might be with z-index, but I set both the li and a to a higher index and that didn't help.    const arr = ['pink', 'blue', 'green', 'purple'];  function findMatches(wordToMatch, arr) {   return arr.filter(item => {     const regex = new RegExp(wordToMatch, 'gi');     return item.match(regex);   }); }  function displayArr() {   const matchArray = findMatches(this.value, arr)   const html = matchArray.map(item => {     const regex = new RegExp(this.value, 'gi');     const itemName = item.replace(regex, `<span class='hl'>${this.value}</span>`);     return `       <li>        <span class='name'>${itemName}</span>       </li>       `;   }).join('');   suggestions.innerHTML = html; }  const searchInput = document.querySelector('.search'); const suggestions = document.querySelector('.suggestions');  searchInput.addEventListener('keyup', displayArr);  //check for element const all = document.querySelectorAll('a, ul, li, span, form, input');  function logElement(e) {   console.log(e.target); }  all.forEach(a => a.addEventListener('mouseenter', logElement)); <form class="search-form">   <input type="text" class="search" placeholder="Search">

 </form>     As you'll see, the lowest element you can get to is the ul I'm not sure if this is a CSS or JS problem.  Thank you in advance for your help.


Bezout identity of 720 and 231 by hand impossible?

Is it possible to solve this by hand? Without using the Extended Euclidean Algorithm  We do the Euclidean algorithm and we get:  720 = 231 * 3 + 27  231 = 27 * 8 + 15  27 = 15 * 1 + 12  15 = 12 * 1 + 3  12 = 3 * 4 + 0  The GCD is 3.  We now isolate the remainders:  27 = 720 - 231 * 3  15 = 231 - 27 * 8  12 = 27 - 15 * 1  3 = 15 - 12 * 1  We proceed by substitution:  3 = 15 - 12 * 1  What now? How can we proceed when we have *1? There is no substitution possible?  Help! Thanks!


How do I not raise a Python exception when converting an integer-as-string to an int

I have some HTML I am trying to parse.  There are cases where the html attributes alone are not going to help me identify the row type (header versus data).  Fortunately, if my row is a data row then it should have some values that can be converted to integers.  I have figured out how to convert the unicode to an integer for those cases that it is possible to make the conversion.  I am struggling to write the logic to move past the cells that the conversion will not work because the cell has content that must be treated as text.  for example if rowColumn[1][3] can be converted to an integer I can do so by   int(rowColumn[1][3].replace(',','').strip('$'))   but I get an error if rowColumn[1][3] has text content.


I was able to post in chat with less than 20 rep by joining 20 sites

I joined 20 other sites (out of the many) and even with 1 rep was able to post in any of the chatrooms. For example: In ELL, I have just 1 rep and have posted messages in its chat.  ell.stackexchange.com/users/18923/lamart This seems like a bug because I should have needed 20 rep to post. . EDIT: From , I got the idea to make this edit. To reproduce this bug/error:  Create a new SE account. Use it to make an account here. You will get 1 default rep. Choose a random SE site and use this account to get 1 rep on that random site. Repeat the above step 20 times. Now you have 1 rep on 20 network sites but the net SE rep is 20. Go to the ELL chat and ping me. (important step)  From my comment: I have now got 40 rep since people voted this question up. Initially I had net 20 rep gained by creating 20 accounts on 20 different SE sites. Those default 1rep added up to get me to 20rep and I was able to chat. The link says one needs 20 rep in any of the SE site to chat in "all the other" category chatrooms..... but I did not have 20 rep on ELL at that moment.


Why can't I award a bounty to an existing answer immediately?

I just put a 50 reputation bounty and selected Award an existing answer but it won't let me award the existing answer for 24 hours.  Because the answer is there, how come I can't award it immediately?  Perhaps this is a bug?


What does it mean when one says that a point is lying on the circle?

$${(x-h)^2 + (y-b)^2 = r^2}$$ What does a point lying on a circle mean? Does it mean that I can show this equation to anyone and they would be able to understand that it really is a circle?  Edit: The equation of a circle is made out of coordinate axes 'X' and 'Y'. If I input numbers x,y that satisfy the equation then a Circle will emerge after joining those points? But it is also possible that the user might join points in random order and a circle might never emerge. I have a diagram below to show you what I understand in mathematics.    In previous post, I asked what is the meaning of equation of the circle and equation of a cube. The answer was, if I input x,y that satisfies the equation then the points lie on the circle. This post is not duplicate of my previous post. In this post I want to know what the meaning of points lying on the circle is. If points are lying somewhere then do I need to join them to make a circle? But there is a possibility that I can draw a line segment connecting those points in random order. I have illustrated my understanding in the diagram above.


difference between accuracy and Rand index (R)

I'm very confused, when I read on the wikipedia "From a mathematical standpoint, Rand index is related to the accuracy, but is applicable even when class labels are not used."   and   But when I use in R the rand.index function from fossil package and the Accuracy function from MLmetrics it doesn't give the same answer  > Accuracy(predicted, real) [1] 0.8266667  > rand.index(predicted,real) [1] 0.7114989  Please can someone explain to me the difference between these two and which one should I use?  NB:I use the k-medoids clustering algorithm (function pam from cluster package)


How to change the default HTML edit program from MS Word to Netbeans in Windows 7

I am trying to change the default HTML editor program from MS Word to Netbeans, however, I am unable to change the default edit command of Windows using the Windows file options  I already did   Searched how to chance the edit command of other files, and trying to adapt it for html, no luck, the registery keys were missing at my system Tried to edit the default programs, this, only chanced the double click behavor, but I wanting to chance the right click and then edit behavor


CREATE TABLE plan    (       id                VARCHAR(30) NOT NULL,       name              VARCHAR(20),       amount            INT,       interval          INT,       currency          CHAR(3),       object            VARCHAR(20),       livemode          BOOLEAN,       interval_count    INT,       trial_period_days INT,       created           TIMESTAMP,       updated           TIMESTAMP,       deleted           TIMESTAMP,       PRIMARY KEY (id)    );    Produces   'ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'interval          INT,       currency          CHAR(3),       object            ' at line 6'   Doesn't work. However if the 'l' at the end of 'interval' is removed. It works.  CREATE TABLE plan    (       id                VARCHAR(30) NOT NULL,       name              VARCHAR(20),       amount            INT,       interva           INT,       currency          CHAR(3),       object            VARCHAR(20),       livemode          BOOLEAN,       interval_count    INT,       trial_period_days INT,       created           TIMESTAMP,       updated           TIMESTAMP,       deleted           TIMESTAMP,       PRIMARY KEY (id)    );    I don't understand if this is a problem with attempting to use 'interval' and 'interval_count'. What's going on here.


I just installed Ubuntu (12.04.4) and I upgraded to 13.10  I have no idea how to fix this :/  $ sudo apt-get install -f  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   xserver-common-lts-saucy 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded. 1 not fully installed or removed. After this operation, 1,718 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 175174 files and directories currently installed.) Removing xserver-common-lts-saucy ... Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-saucy' dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with   different file `/usr/lib/xorg/protocol-precise.txt', not allowed dpkg: error processing xserver-common-lts-saucy (--remove):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  xserver-common-lts-saucy E: Sub-process /usr/bin/dpkg returned an error code (1)


My first experiment with qtree puzzled me: why is the first tree output (it is copied from the manual) and the second not?  \documentclass[msmallroyalvopaper     ]{memoir}  \usepackage{qtree}  \begin{document}  text - this works:  \Tree [.DP my pony ]  but this produces nothing:  \Tree [.Human Person Stuff]   end \end{document}


I was thinking about how asteroids get "burned" up in the upper atmosphere as they approach the earth surface due to the atmosphere of earth heating the asteroids immensely as a result of air compression which is nothing strange.  This however seems opposite of things I observe day to day. While I am travelling in my car I open my window, and to my surprise the car became very chilly and I develop goosebumps (body response to cold), so I am inclined to think that the temperature of my body dropped slightly as a result of me travelling in our Air.    This creates a sort of paradox, for a person travelling at asteroid-speeds s\he would say that as we speed up we heat the objects up, but for a person who travels at day-to-day speeds they would say as we increase in speed we cool things down, but both cannot be correct so who is correct?  So my question is at what speed does temperature raise and not fall as we travel through air? And if so why is that?


Using article published dates effects SEO?

In my blog I publish articles with date below under it.  My questions are:   Using dates will have positive impact or negative impact? After few years of publishing the post, since my post age is old will it remain in same position of search results or it will go down? Finally, should I use published dates or not?


I got the following enum:   public enum detallistaDocumentStatus {      /// <remarks/>     ORIGINAL,      /// <remarks/>     COPY,      /// <remarks/>     REEMPLAZA,      /// <remarks/>     DELETE, }   then I got a class property of type detallistaDocumentStatus:   public detallistaDocumentStatus documentStatus {         get {             return this.documentStatusField;         }         set {             this.documentStatusField = value;         }     }   In the real life the user will send us a number (1, 2, 3 or 4) representing each enum value in the order they are declared.  so, is it possible to cast like this?   det.documentStatus = (detallistaDocumentStatus)3;   if not, how could I get the enum value using an integer as an index, we are using a lot of enums, so we want to do something generic and reusable


Do I need to include the preposition "with" in the sentence below

Our professional, personable staff is committed to providing you the best services and support.   Shouldn't it be: Our professional, personable staff is committed to providing you with the best services and support.


Find $\lim_{n \to \infty}\left(1+\frac{1}{n^2}\right)\left(1+\frac{2}{n^2}\right)\cdots\left(1+\frac{n}{n^2}\right)$

Problem: find $\lim_{n \to \infty}\left(1+\frac{1}{n^2}\right)\left( 1+\frac{2}{n^2}\right)\cdots\left(1+\frac{n}{n^2}\right)$  My thought: Taking the log and we get $\sum_{k=1}^{n}\ln(1+\frac{k}{n^{2}})$. There is an inequality in another problem, which says: $$\frac{k}{n+k}\lt \ln\left(1+\frac{k}{n}\right)\lt\frac{k}{n}, \forall k \in N^{+} $$. So I think maybe I can use it here. Plug in $n^2$ and sum over k, we get $$\sum_{k=1}^{n}\frac{k}{n^2+k}\lt \sum_{k=1}^{n}\ln\left(1+\frac{k}{n^{2}}\right) \lt\sum_{k=1}^{n}\frac{k}{n^2}=\frac{1}{n^2}\frac{n(n+1)}{2}=\frac{n+1}{2n}$$ Anyway, the limit is $\sqrt{e}$(So if we take the limit of both sides of the above inequality, it should be$\frac{1}{2}$ and the right hand side is just right), but I cannot go further with the left side.   Any hint would be appreciated!


Do you have any advices how to test a multithreaded application?  I know, threading errors are very difficult to catch and they may occur at anytime - or not at all. Tests are difficult and the results are never for sure. Certainly it is best to carefully design and program the concurrent modules. Nevertheless - I do not want to leave out the test aspect. So running a lot of threads that are all working on the same items can invoke threading errors, sometimes.  Any ideas or best practices to get a high hit rate of hidden threading errors? (I am using .Net/C#)


What would Happen if a Primordial Black Hole, with 5-10x time the mass of Earth, were to fall into our Sun?

So lately i heard of this theory that planet 9 might be a Primordial Black Hole (PBH) with 5 - 10 times the mass of Earth. I was thinking to myself, what would happen, if such a PBH (if it even exists) were to fall into our sun? Would it slowly consume the sun, even tough its mass is just a fraction of the star? Would the sun eventually become a black hole itself?  PS: Sorry for any typos or any wrong wording (I´m not a native english speaker)  PPS: I´m not a physicist or anything, i´m just interested in the universe and how it works.


Terminal velocity of a steel ball in water

I am investigating on the terminal velocity of steel balls moving in water. I used the balls with different diameters, such as 3.17mm, 6.02mm, etc. And I used a full-filled 1L graduated cylinder. I dropped the ball below the water surface. And I calculate the terminal velocity by a program called Logger Pro.   Theoretically, the terminal velocity of steel ball with diameter 3.17mm in water is about 37m/s. But in my experiment, it is only 0.7m/s. The difference is really huge.   And also, I got a graph of terminal velocity as a function of square of radius of steel ball. It is a straight line, but it does not go through origin.   Can anyone help me with that?


Why does Wikipedia state that angular velocity is equal to angular frequency?

Isn't Wikipedia wrong?  At the Wikipedia article  it says that angular frequency and angular velocity are equal.   But how on earth are they equal?  Angular velocity is changing all the time while angular frequency is a constant(at least if period is constant ).  The only case they might be equal is in constant velocity.   Even in circular motion , suppose it's not moving in constant velocity.   Why would they be equal?   Angular velocity is changing every second.  While angular frequency is just a constant.   If you have such a system the angular velocity would be d0/dt which is different every second.  While the angular frequency would be the repetitions per second multiplied by 2 pi.  Angular frequency is a one value every time.  And velocity you can't even say it's value because it's dependant on time.   I don't really understand the statement in Wikipedia which says both are equal.    Can you explain?   Edit: this is even more bizarre in harmonic non circular motions.   Suppose you have a pendulum oscillating.   Then the angular frequency would be a constant measure of an imaginary circle. While angular velocity would be defined as the derivative of the angle.    The two are certainly not equal.   One is a changing derivative and one is constant.    But even in circular non constant motions it doesn't make sense as explained above.


How to get rid of the option to select the option to choose the operating system

I installed Ubuntu 18.04 LTS on my desktop in drive D. My desktop has Window 10 installed on Drive C.   I deleted the Ubuntu OS from my D drive uisng window 10 disc management where I delete the drive D and make a new volume D again.   But when I press the F11 key upon restart, its still showing me the options to choose the OS like Windows and Ubuntu.   Can you please help me how to get rid of this option when I press F11.   My desktop Motherboard  is of MSI Brand.   I am attaching the picture when I press the F11 keys.


I want to set up my PhD thesis, given a template. The problem is that I have to put inside my papers, which are all from different authors and with different packages. I am willing to pay for that. Is there anyone willing to help?


what is diffrence between private access modifier and no access modifier in java?

For the unused members eclipse give me a warning "The value of the field is not used" with private access modifier. If modifier has been changed to public or no modifier then there is no warning.  This is create confusion for me. Default modifier is not public in java.  Eclipse change the warning if modifier has been changed to private and no modifier. There must be difference.


Reputation on post's revisions page may have "k" or "m"

The reputation on the post's revisions page doesn't not have a thousand ("k") or million ("m").    Usually on the post or Users page, the user's reputation with the "k" or "m". Adding the "k" or "m" with the reputation will improve the readability.    Can this be applied to the revisions page too.


How can I find a question I know I asked, but can't remember what site I asked it on?

I distinctly remember asking a question somewhere where I asked for an example of an algorithm with a specific O(n) complexity, but I can't remember where I asked it. I checked the most likely culprits (statistics, mathematics, computer science), but they don't appear to be on those. It might have been deleted, but I don't know. Is there a way for me to find this question again?


Ubuntu shows up in boot manager even after deleting it and the efi partition

I messed up something in ubuntu and then tried doing a reinstalling but it gave an error saying bootloader not installed , this also messed up the grub which booted into a cli type interface . then i deleted the following partitions -> ubuntu , swap , efi . Now even tho there are no ubuntu partitions left ubuntu shows up in boot manager I have a ssd+hdd in my laptop. Windows is on the ssd and i installed ubuntu on a partition of the hdd.


I know equation accepts only one line, and gather accepts several lines. Then when there is only one line, is there any advantage of equation over gather? If not, why does equation exists at all? May I always use gather? Or, is there some caveat?


I realized that the hostname had changed while I was doing some work using terminal in OS X Yosemite. I thought there might be an IP address conflict so I reset it. However I still get another device's name (someone else's iPhone, to be exact) when I use the hostname command:  Last login: Fri May  1 15:52:42 on ttys000 SomeonesiPhone:~ irem$  SomeonesiPhone:~ irem$ hostname SomeonesiPhone.wireless.duke.local   What's going on and how can I fix this?  It appears the IP address has not changed. But the address that I get by doing ipconfig getifaddr en0 is different from my public IP address.  I looked up my public IP address using Google, like this:


Ubuntu Dock is showing in all the displays

I recently updated to Ubuntu 20.04 LTS, in my Dell XPS 13. I connected an external monitor and used it as the primary monitor. And initially, the dock was in the external monitor only. Then I went to the Settings > Appearance. And changes the show on to All displays. I tried turning it back to the external display, but it is not changing.   I tried restarting, and to change the setting, but nothing works. I just want to keep my laptop's built-in monitor clean without the dock.


Best way to backup/clone a hard drive in Mac OS X 10.10 (Yosemite)

I have a MacBook Pro which I use for work. I have a lot of software installed and configured which I do not want to have to re-install/configure in the event my MacBook Pro is stolen or damaged.   I’d like to somehow “clone” the drive in a way that if something were to happen I could just go buy a new MacBook Pro, use the clone program to load my HD image and instantly be back where I was before the old computer broke or got stolen.   I know there is a time machine backup built into Mac OS X but that is only good for backing up individual files like documents or pictures - which I do not care about. I want to be able to get back all my installed apps with their custom configurations so I don't lose time from working - hence the HD clone - image idea.   What is the best way to do this?


I have an apex class which fetches and upserts data from external source to Salesforce. Below is the batch class: global class PolicyCalloutBatchClass implements Database.Batchable<Integer>,Database.AllowsCallouts, Database.Stateful {  global Iterable<Integer> start(Database.BatchableContext context) {        Integer[] values = new Integer[0]; while(values.size() < 2999) {     values.add(values.size()); } return Test.isRunningTest() ? new Integer[1] : values ; }     global void execute(Database.BatchableContext context, Integer[] values) {                  HttpRequest policyreq = new HttpRequest();         policyreq.setMethod('GET');         policyreq.setTimeout(120000);         policyreq.setEndpoint('<endpoint>');         policyreq.setHeader('Authorization', 'Bearer ' + <token>);         Http policyhttp = new Http();         HTTPResponse policyres = policyhttp.send(policyreq);         String policyresponse = policyres.getBody();         JsonParser objJsonParser = (JsonParser) JSON.deserialize(policyresponse, JsonParser.class);                    JsonParser.cls_value clsValue = objJsonParser.value;         Map<String, JsonParser.cls_data> clsDataMap = new Map<String, JsonParser.cls_data>();         for(JsonParser.cls_data objClsData: clsValue.data){             clsDataMap.put(objClsData.id, objClsData);         }         list<Policy__c> updatelist = new list<Policy__c>();         for (String eachIdFromMap : clsDataMap.keySet()){                          Policy__c policy = new Policy__c(                 unique_id__c = clsDataMap.get(eachIdFromMap).id,                 agent_id__c = clsDataMap.get(eachIdFromMap).agentId);             updatelist.add(policy);           }         try{             upsert updatelist unique_id__c;             }         catch(DmlException e){             system.debug('This class didnt compile');         }     }     global void finish(Database.BatchableContext context) {              } }  Below is my Mock test class: global class MockHttpResponseGenerator implements HttpCalloutMock {     // Implement this interface method     global HTTPResponse respond(HTTPRequest req) {         String jsonbody = '{ ' +               '"id": "11111"' +               '}' ;          HttpResponse objHttpResponse = new HttpResponse();         objHttpResponse.setBody(jsonbody);         objHttpResponse.setHeader('Content-Type', 'application/json');         objHttpResponse.setStatusCode(200);         return objHttpResponse;     } }  Below is my test class:   @isTest  private class PolicyUpdateController_Test {     static testMethod void testPostCallout() {         Test.setMock(HttpCalloutMock.class, new MockHttpResponseGenerator());                    Test.startTest();         PolicyCalloutBatchClass  obj = new PolicyCalloutBatchClass ();         Database.executeBatch(obj, 50);          Test.stopTest();              } }  Though I am not seeing any errors in my code, my batch apex class is covered only 8%. Complete execute method is left uncovered. Can anyone please suggest the changes to my above test class so that I can get this done. Thank you in advance!


Write $1/1 + 1/2 + ...1/ (p-1)=a/b$ with $(a,b)=1$. Show that $p^2 \mid a$ if $p\geq 5$ is prime [Wolstenholme's theorem]

Write $\frac 11 + \frac12 + ...\frac1{(p-1)} =$ $\frac ab$.Such that $(a,b)=1$. Show that $p^2 \mid a$ $\text{if}$ $p\geq 5$.  I was trying to apply something with prime modulus, but I am unsure how exactly to go about it.


Short story with competitors complaining to government about a new very popular synthetic food

Synthetic foods are all the rage, and while some are new and novel, many are attempts to recreate the taste and texture of a natural foods, with varying degrees of success. One company introduces a new synthetic food that becomes wildly popular. The competition analyzes it, and based on discovering what natural creature it is based on, they petition the government to ban it.      They discover that the product is synthetic human flesh, so consuming it is not technically cannibalism, but it is similar, as they explain to the panel of government officials.


How can I go back to the login screen of Ubuntu via command line?  I often use reboot -n or shutdown -t now while I have terminal open but sometimes I just want to logout without rebooting.


Are Transit Visas for Germany required for our group?

We are 3 family members traveling together. We hold a Palestinian Authority passport, an Egyptian passport, and a Jordanian passport. We have a 3 hour layover/transit in Frankfurt, Germany, then we continue to Kiev, Ukraine.    Do each of us need a transit visa for this 3 hours layover?    Note: Each of us has a valid visa to Ukraine


Why does anyone take Cold Fusion seriously?

The original Pons/Fleischmann experiment was deeply flawed, and it seems the same errors are reproduced in followup experiments these past 30 or so years. The Pons/Fleischmann apparatus was not properly purged of He before the experiment. An independent examination of their electrodes, ‘Measuring helium in electrolyzed palladium’ precisely quantified the presence of He in the P/F electrodes, but one lab noted that this looked like the palladium contained He from a manufacturing process. Precious metals are typically processed with an induction furnace and an inert atmosphere of helium or argon.  “Induction furnaces are widely used throughout metallurgy not just because of their efficient melting abilities, but also because of their usefulness in forging new alloys. Because induction is a no-contact process that doesn’t utilize combustion, induction furnaces can work in inert atmospheres and vacuums – which is necessary when creating alloys that oxidize if heated in the presence of air. As an additional benefit, the magnetic forces in an induction furnace can be directed to stir the molten metal, which is very useful for creating fully homogenized alloys.”    So, there really is no question of a nuclear fusion reaction without any validated reaction products. That the same errors are repeated over and over again by cold fusion proponents in search of a positive result suggests something pathological.


Do IP bans affect everyone in the house that uses the same wifi?

Heres an example, Lets say person 1 and person 2 like to play the same game, person 1 gets IP banned for botting in the game but does person 2 get affected? lets say they both use different pcs but the same wifi, what happens?