I want to put several tables in the same table float like this:  \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document}  \begin{table}  \caption{Internal exon scores}\label{tab:internal} \begin{tabular}{|c|l|l|} \hline Ranking&Exon Coverage&Splice Site Support\\ \hline E1&Complete coverage by a single transcript&Both splice sites\\ E2&Complete coverage by more than a single transcript&Both splice sites\\ E3&Partial coverage&Both splice sites\\ E4&Partial coverage&One splice site\\ E5&Complete or partial coverage&No splice sites\\ E6&No coverage&No splice sites\\ \hline \end{tabular}  \caption{External exon scores}\label{tab:external} \begin{tabular}{|c|l|l|} \hline Ranking&Exon Coverage&Internal Splice Site Coverage\\ \hline X1&Complete coverage by one or more transcripts&Splice site covered\\ X2&Exon coverage >= 80\%&Splice site covered\\ X3&Exon coverage < 80\%&Splice site covered\\ X4&Exon coverage < 80\%&Splice site not covered\\ X5&No coverage&Splice site not covered\\ \hline \end{tabular}  \end{table} \end{document}   When I build the document, table 2's caption is closer to the bottom of table 1, which makes things confusing. hspace{} doesn't seem to work in the table environment. I've worked out that the subfloat package appears to be causing the spacing behaviour of the captions. Is there anything else that I can do to introduce a blank horizontal break to space out the captions?


If I cast the Polymorph spell on an ally to assist the group in a fight, will he attack us or fight alongside us?

What happen if I  an ally to assist the group in a fight? Will he end up attacking us, or remember the fact than we are ally and help us?  The only relevant part I can find is this:     The target's game statistics, including mental ability scores, are replaced by the statistics of the chosen beast. It retains its alignment and personality.


Should Good Content Strategy Possibly Create Multiple Domains?

[See the notes below about duplicate questions.]  We have a friend whose site sells different types of things-- rare coins, jewelry, fine art, antiques, etc.  For SEO reasons (creating a high-quality information site about each market/topic), we were wondering if it was better to keep this all together as one site, with a somethingcoins.com type URL (and so jewelry would be somethingcoins.com/jewelry), or whether we should create a separate somethingjewelry.com and target that whole site on jewelry products and related information, to be an authority in that one jewelry market.  So I guess the question is, for Google rankings, is it better to have multiple small sites which are each focused on a single topic/market?  Will this lead to higher authority for the site?  Or should we continue to group them all (like somethingcoins.com/jewelry) and trust that the aggregate number of inbound links and overall site authority will be better this way?  It also seems more difficult for somethingcoins.com/jewelry to compete against other sites that are targeted/focused on jewelry only (or am I maybe wrong about that?).  RE: DUPLICATE QUESTIONS. I know there are other questions here about multiple domains, but those seem to be asking how to redirect multiple top-level domains into a single site, or to show a single site's content on multiple top-level domains, possibly in different languages, but all assuming that the site content itself makes sense as one collection of pages. Our question here is different--- mostly asking if their current collection of coins, jewelry, art, etc, makes sense to group together on a single site if we're trying to create an authority site for each of those markets.  Thanks so much for your feedback and ideas.  UPDATE #1 re: DUPLICATE QUESTIONS. I should clarify that I'm not suggesting multiple domains like buygoldjewelry.com, buycheapjewelry.com, etc. which is the focus of the linked "Duplicate" question above.  I agree with the advice on that question, that Google wants you to build a brand.  But aren't BrandCoins.com and BrandJewelry.com two completely separate sites, target audiences, and markets?  Each can be a solid information site for the particular market, since they are very different (rare coins vs. fine art, for example).  Or more importantly, doesn't combining these all to just Brand.com/coins and Brand.com/jewelry actually LOWER the authority of the overall site in each category, when it competes against other sites focused on ONLY jewelry, for example?


i havent used it in a bit and to my understanding, if a had a class member called speed, and a parameter in a setter method called speed, if i used the keyword "this" it would be referring to the parameter, so the method should be written  public void setSpeed(float speed) {   speed = this.speed; }   however, in the documentation for it, the example shows it the other way (which i know ive seen and used several times in the past)  public void setSpeed(float speed) {   this.speed = speed;  }   so am i mixing up what the "this" keyword is actually referring to or is this just special syntax involved with using it for some reason?


Remove Gnome Shell completely after installing it?

I wanted to try gnome-shell in 11.10 (also 12.04 now)  I removed it, however, classic Gnome is still there and the battery icon is changed (too big and can't use a icon pack on it like faenza)   Also, numerous applications were added and the entries remain on the login screen.    How can I remove it completely, rolling back all changes made when installing gnome-shell?


Do you know of a neat proof of the algebraic independence (over $\mathbb{C}$) of the functions $f(t) = e^{at}$ and $g(t)=e^{bt}$ when $a$ and $b$ are linearly independent over $\mathbb{Q}$? IMPORTANT: $f$ and $g$ are algebraic independent if for any nonzero polynomial $P \in \mathbb{C}[x, y]$, the function $P(f(t),g(t))$ is not the zero function.


show that if $\displaystyle\lim_{n \to \infty} f(n+x)=0$ then $\displaystyle\lim_{x \to \infty}f(x)=0$

Let $f : \left[0,\infty\right]\to \mathbb R$ be uniformly continuous.   If $\displaystyle\lim_{n \to \infty} f(n+x)=0$ where $x$ is in $[0,1]$  then $\displaystyle\lim_{x \to \infty}f(x)=0$  Furthermore if $f$ is just continuous , what happens to the result?


I think this is very awkward thing that there is no blog site for Stack Overflow, whereas many of the Stack Exchange sites have their . Why isn't there any blog site for Stack Overflow? Is there any specific reason? N.B: I'm intentionally forgetting the fact that Stack Overflow hasn't a Twitter account!!!


Handle signals in the Java Virtual Machine

Is it possible to handle POSIX signals within the Java Virtual Machine?  At least  and  should be quite platform independent.


In D&D3e, if you successfully hit a target you always did at least 1 point of damage (before applying Damage Resistance), even if you had a Strength penalty.  I can't find any mention of that rule in the 5e PHB.  Does the rule no longer apply, or did I just overlook it?


Does SOQL join not respect OWD /sharing settings?

A->B are two objects connected using lookup relationships. If somehow, I get read only access to child record but do not have access on parent record then still i am able to see data from parent record through formula fields. Similarly will SOQL in Apex also allow me to fetch fields from parent record regardless of using 'WITH Sharing ' keyword at class level?


What site to use for career recommendations?

I'm looking for advice regarding what kind of professional career to pursue if you have / like several determined skills. In my particular case skills that belong to DSP, Electrical and StackOverflow sites. Where should I post this kind of questions? Is there a specific community for career advice or I should use any of the mentioned sites?


The use of "so" instead of "thus" in reported speech

Is it common for native speakers to use the adverb "so" instead of "thus" in reported structures? For example:  Alan said," The chemist diluted the syrup, thus it lost its effectiveness."  Alan said that the chemist had diluted the syrup, so it lost its effectiveness.


Is Biot-Savart law obtained empirically or can it be derived?

There's already a question like this  so that my question could be considered duplicate, but I'll try to make my point clear that this is a different question.   Is there a way to derive  from the Lorentz' Force law or just from Maxwell's Equations?   The point is that we usually define, based on experiments, that the force felt by a moving charge on the presence of a magnetic field is $\mathbf {F} = q\mathbf{v}\times \mathbf{B}$, but in that case the magnetic field is usually left to be defined later.   Now can that force law be used in some way to obtain Biot-Savart law like we obtain the equation for the electric field directly from Coulomb's Force law?  I wanted to know that because as pointed out in the question I've mentioned, although Maxwell's Equations can be considered more fundamental, those equations are obtained after we know Coulomb's and Biot-Savart's laws, so if we start with Maxwell's Equations to obtain Biot-Savart's having use it to find Maxwell's Equations then I think we'll fall into a circular argument.   In that case, without recoursing to Maxwell's Equations the only way to obtain Biot-Savart's law is through observations or can it be derived somehow?


Can I install Java on a live persistence Ubuntu?

I wanted to know can I install Java and other software on persistence Ubuntu (USB drive). How can we do that because when I tried sudo apt install default-jdk I got a msg related to dpkg and something that the drive is only read only,? Help plz


limit for an oscillating function $\sin\frac{1}{x}$

$\lim\limits_{x\to 0}   \frac{\sin(x\sin\frac{1}{x})}{x\sin\frac{1}{x}}$  Since $\lim x\sin\frac{1}{x} = 0$, and $\lim \frac{\sin x}{x} = 0$, final answer should be $1$.   Is the answer $1$ or it does not exist?


Open a window on a remote X display (why "Cannot open display")?

Once upon a time,  DISPLAY=:0.0 totem /path/to/movie.avi   after ssh 'ing into my desktop from my laptop would cause totem to play movie.avi on my desktop.  Now it gives the error:   No protocol specified Cannot open display:    I reinstalled Debian squeeze when it went stable on both computers, and I guess I broke the config.   I've googled on this, and cannot for the life of me figure out what I'm supposed to be doing.   (VLC has an HTTP interface that works, but it isn't as convenient as ssh.)  The same problem arises when I try to run this from a cron job.


Proving Combinatorical Summation: $n!=\sum_{k=0}^n(-1)^k\binom{n}{k}(n-k)^n$

been stuck with this question for the last few hours, any help would be appreciated.  $$ {\large n! = \sum_{k = 0}^{n}\left(-1\right)^{k}{\,n\, \choose \,k\,} \left(\,n - k\,\right)^{n}} $$  what I did:  $\sum_{k=0}^n(-1)^k\binom{n}{k}(n-k)^n=n!\sum_{k=0}^n\frac{(-1)^k(n-k)^n}{k!(n-k)!}.$  So we are left to prove $\sum_{k=0}^n\frac{(-1)^k(n-k)^n}{k!(n-k)!}=1$. tried doing so using induction, or treating the sum as geometric sequence (which turned out poorly)  Suggestions?


significant statistical/practical differences for a set of items for two populations

Suppose that we have two groups that they select N items. For example, in the table below, we have number of people from each group that have selected each item. items:  A   B    C   D      E       F   G   H    K      L G1:     3   4    52  633    1000    0   6   915  890    500 G2:     1   19   17  333    1000    25  6   110  951    510 Population of group 1: 1000 Population of group 2: 1050  Is there any test that determines the differences in which items are statistically/practically important/significant? Thanks very much.


I have tried all the StackOverflow solutions for similar questions, and could`t find anything.  I have this snippet of code and I need to extract the text between html tags, everything between > and < .  word = "div class="name">                         Text_I_Want_To_Extract                      </div>"  m = re.search('>(.+)<', word) print (m)   I have tried various regex expressions but I failed. I always get empty result. I am guessing it is because I am extracting everything between > and < symbols.  Did anyone had this kind of problems with Python 3 ?


Find $$\lim_{x\to 0} \frac{(1+x)^{1/x} - e}{x}$$.  I tried applying L'Hopital's rule but had difficulty with deriving $(1+x)^{1/x}$, and it seemed to me that there is probably a more elegant solution than the horrible derivative WolframAlpha gave (which was also not useful, as the derivative contained $\frac{1}{x}$ as an exponent). Any help would be appreciated.


I'm trying to prove that $X\subset \mathbb N$ is countable, in another words, if there is a injection $i:X\to \mathbb N$ then $X$ is countable. I know this is true intuitively but I couldn't find any easy proof of this fact. My attempt is to find another injection $g:\mathbb N\to X$ and use Cantor-Bernstein theorem.   I need help to find a simple proof of $X\subset \mathbb N$ is countable.  Thanks


Is there any regular, balanced, connected bipartite graph that does not contain any Hamiltonian cycle?

In a set of balanced, connected bipartite graphs, all with regularity $r \ge 2$, is it possible that there exists a bipartite graph that does not contain a Hamiltonian cycle ?   My argument: The bipartite graph is balanced, so both of the partition has the same number of vertices. It's regularity $r \ge 2$ and the graph is connected, that means we can switch between the partitions, so there is a Hamiltonian path. Lets say that we have followed the Hamiltonian path from vertex $u$ and reached to a vertex $v$ and exhausted all the vertices, now how do I prove that there must be an edge that will take me back to $u$ from $v$?   I am getting lost with this construction of the "Hamiltonian cycle".  So does this mean that there can be such bipartite graph (connected, balanced, $r \ge 2$ regular) that does not contain a Hamiltonian cycle? If yes, can someone give me a concrete example?  N.B.: $r$-regular: every edge is $r$-degree.


I can't add a book that I've written that's not on Amazon

Is there any chance that there will be support to my Careers profile for adding books that aren't available to purchase through Amazon.com? My book was published through Smashing Magazine and it isn't available there.


Aura:Id of dynamically created compontns cannot be accessed

Below is my code to create the component dynamically - The component is "ui:inputselect"  $A.createComponent(             RecoveryLineItem.Attributes[i].name,{                 "class" : "slds-input ",                 "aura:id" : 'ExampleId',                 "label" : RecoveryLineItem.Attributes[i].label,                 "multiple" : RecoveryLineItem.Attributes[i].multiple             }, ....   ..  console.log(component.find('ExampleId').get("v.value"))    Or console.log(component.find('ExampleId'))  is Giving as 'Undefined"  How to access the aura:id of the dynamically created components?


How are electrons wave as well as particles?

I am  newbie to all this and I learned that electrons can be wave as well as particles.  I don't have problem with the particle thing but how is it a wave?  Isn't the wave just a path of energy travel.   For example: waves in string is a path of energy travel. Then how can electron be somethings like this?  Am I misinterpreting the term wave? Or is there something else?  Are waves also made up of particles? Please explain in simple words.


How is "winded" pronounced in "he winded a horn"?

Either "wɪnd" or "waɪnd" is acceptable, according to , but merely being acceptable doesn't satisfy me. "Wɪnd" seems better to me, due to the connotation of blowing wind, etc, but apparently "waɪnd" is preferred, being listed first.  Which was originally intended?  (Or does it really not matter?)


Is there a "nice" way to think about the quotient group $\mathbb{C} / \mathbb{Z}$?  Bonus points for $\mathbb{C}/2\mathbb{Z}$ (or even $\mathbb{C}/n\mathbb{Z}$ for $n$ an integer) and how it relates to $\mathbb{C} / \mathbb{Z}$.  By "nice" I mean something like:   $\mathbb{R}/\mathbb{Z}$ is isomorphic to the circle group via the exponential map $\theta \mapsto e^{i\theta}$, and $\mathbb{C}/\Lambda$ is a complex torus for $\Lambda$ an integer lattice (an integer lattice is a discrete subgroup of the form $\alpha\mathbb{Z} + \beta\mathbb{Z}$ where $\alpha,\beta$ are linearly independent over $\mathbb{R}$.)   Intuitively, it seems like it should be something like a circle or elliptic curve.


Can't Select Ubuntu 18.04 Installation Type

When I try to run the Ubuntu 18.04.1 LTS installer on my Lenovo Yoga 910 I'm stuck here. I want to erase my Windows 10 and just have Ubuntu but it seems as though the installer thinks I want to dual boot. Any suggestions on how to fix this? I would prefer not to  have to make a dual boot.


Quoting a question at the end of a sentence which is itself a question

If my sentence is a question and ends with a quote of a question, where exactly do I put a question mark?   Did she ask, "Is it raining"?  Did she ask, "Is it raining?"?  Did she ask, "Is it raining?"


How to check whether $$\sum_n \frac{(-1)^n (2n)!x^n}{(n!)^2 4^n}$$ converges or diverges. The ratio test is inconclusive and I don't know what to do with $(2n)!$


How do i mirror along grid aix using mirror modified?

The mirror modification is not mirroring along the x axis like i wanted, it is doing this:  Can sb please help me?


"minus" is not working correctly in Excel?

I am trying to find the result of 692.79-692.45 using Excel, but find the following issue:        692.79 and 692.45 are exact numbers with only two digits, but the result is not 0.34. Is there any solution to this problem? Thanks for any help.


Do you need line of sight to cast spells on someone?

The rules on spellcasting contain the following section:   To target something [with a spell], you must have a clear path to it, so it can't be behind total cover. If you place an area of effect at a point that you can't see and an obstruction, such as a wall, is between you and that point, the point of origin comes into being on the near side of that obstruction.  This section is not really clear to me. Should this mean that only non-transparent objects are  a problem in targeting, or that you have to have line of sight and line of effect as well? Also, can you prevent a wizard from casting spells by blinding her?


I have written a trigger on custom object Order_Item__c. This object has a custom field Shipping_Number__c. When the user enters value in Shipping_Number__c and clicks save, the contact lookup field will automatically populate with contact record which has same shipping number as the value entered by the user. The trigger is working fine. I am unable to get code coverage. The coverage is 0%. Any insights will be lot helpful.  Trigger:  trigger updatelookupfield on Order_Item__c (before update, before insert)  {       Set<String> shippingNumbers = new Set<String>();      for (Order_Item__c collectNumFromOrder : Trigger.new) {         shippingNumbers.add(collectNumFromOrder.Shipping_Customer_Number__c);     }        List<Contact> contactList = [SELECT id, Shipping_customer_number__c FROM Contact WHERE Shipping_Customer_Number__c IN :shippingNumbers];      Map<String, Contact> shippingNumToContactMap = new Map<String, Contact>();      for (Contact c : contactList) {         shippingNumToContactMap.put(c.Shipping_customer_number__c, c);     }      for (Order_Item__c o : Trigger.new) {            if (o.Shipping_Customer_Number__c != null) {             o.RSM_Shipping_Contact__c = shippingNumToContactMap.get(o.Shipping_Customer_Number__c).id;         }         else {             o.RSM_Shipping_Contact__c = null;         }      }     }    Test Class:  @isTest public class testupdatelookupfield{      Static testMethod void insertOrderItem()     {   // create and insert the contact record - this part is correct         contact c = new contact();         c.Shipping_Customer_Number__c = '0987654';         c.lastName = 'Surekha';        insert c;           // create an order item and insert it         Order_Item__c op = new Order_Item__c();          op.Name = 'Test Varun Order';         op.Shipping_Customer_Number__c = '0987654';         insert op;           system.assertequals(op.RSM_Shipping_Contact__c,c.id);     } }


How to directly evaluate path integral for harmonic oscillator by brute force method?

It is easy to evaluate the green's function using path integral approach by evaluating classical action and using functional calculus method. Is it possible to evaluate path integral for harmonic oscillator directly by evaluating the integral for every time slice up to the last fixed time slice? It cumbersome yet I think it is possible.


Can I safely eat uncooked raw chicken that has been in my freezer over a year?

Can I safely eat raw uncooked chicken that has been in my freezer since April 2018 (over a year)?


Why does "==" sometimes work with String.trim?

I have the following code  public static void main(String... args) {      String s = "abc";     System.out.println(s.hashCode());     String s1 = " abc ";     System.out.println(s1.hashCode());     String s2 = s.trim();     System.out.println(s2.hashCode());     String s3 = s1.trim();     System.out.println(s3.hashCode());     System.out.println();     System.out.println(s == s1);     System.out.println(s == s2);     System.out.println(s == s3); }   OP:   96354 32539678 96354 96354  false   -- Correct true    -- This means s and s2 are references to the same String object "abc" . false   -- s3=s1.trim()... which means s3="abc" yet s==s3 fails.. If the above conditon were to be considered (s==s2 is true..) , this should also be true..    Why am i getting "false" when i check s==s3 ?..


With Lua how can I get the current date-time with milliseconds.  In this format 'YYYY-MM-DD hh:mm:ss'.


I needs help actually i am trying to download java and eclipse. How can i download java for Ubuntu 14.04.


A while loop with an if statement and a for loop in it

I am trying to create a small program where I can have the program read in a word. If the word has 6 letters, display the word backwards.  If not, tell the user how many letters the word has. Do this until the user enters “japan”.   The example output is:     Enter a word > chess      chess has 5 letters      Enter a word > google      Magic six! ELGOOG      Enter a word > japan      Goodbye!   The if statement and the for loop are bypassed for some reason and I'm not sure why. My current code is as such:  import java.util.*; //imports the utilities public class WordPyramid {     public static void main(String[] args) {         String n;         Scanner kb = new Scanner(System.in);         System.out.println("Enter a word: ");           while ((n = kb.nextLine().toLowerCase()) == "japan" ) {             int y = n.length();             {                 if (y == 6) {                     String reverse = "";                      for (int i = y - 1; i >= 0; i--) {                         reverse = reverse + n.charAt(i);                         System.out.println(reverse);                     }                 }                 else {                     System.out.println(n + " has " + y + 1 + " letters ");                 }             }         }     } }


Is this  $x^6 + x^5 + x^4 + x^3 + x^2 + x + 1$ irreducible in $\mathbb Q[x]$? Can you help please?


How to handle a native OS (Ubuntu) file upload window in selenium in java. Can Auto-It tool be used for this? If not please let me know the tool name Please anyone help me on this... thanks in advance


The little amount of body hair humans have don't seem to be of much use for keeping warm. Our Simian cousins on the other hand sport thick furs.  At which point during the species evolution and why did humans lose their fur?


Infected, back-doored Windows 7, is it safe to keep it using after Kaspersky Anti-Virus clean up?

So I got this computer from my cousin. As far as I can tell, it has LOTS of back-doors, trojans etc. installed. You can see the installed programs as below w/ lots of activeX:    I fear these backdoors would be integrated to the OS via updates (if such thing is possible). So is the safest course a fresh install or would Kaspersky do just enough so that I tell my cousin that she can use without any concerns?  Edit: What are we looking at?  The OS is in Turkish, this is the Uninstall Program window. The other languages: I don't know. The computer has only Turkish language installed as OS's native language.


80's sci-fi novel, young girl is seemingly the sole survivor of a major disaster (disease?), meets other "Alphas" (next stage of evolution) like her

I read this sci-fi novel in the 80's. It is similar to the current TV series .  The story was about a young girl who ends up alone after some major disaster - a disease I believe. She thinks she is alone but eventualy discovers that there are others like her, other Alphas. She meets a young boy about her age who also believed he is alone, so they team up and travel across America to a location where they believe others like them are headed. Alphas are the next stage of evolution - smarter, stronger, healthier.  I have searched the web but can't find this book.


Finding files by only knowing extension?

I'm somewhat disorganized in my file saving habits, so I wind up using the Search function in Windows Explorer more often than one should. I was wondering, is it possible to have Windows find all files of a certain extension ( like, say for example all .rar files) if it is, how?


Does the Dispel Magic spell affect skeletons and other undead?

According to the MM skeletons are animated by dark magic.  They heed the summons of spellcasters who call them from their tombs. The magical energy motivates a skeleton to move and think in a rudimentary fashion.  I assume that a similar effect animates and controls all undead.  So if I cast dispel magic on a skeleton or any other undead do they cease to be animated and can't move or act?


I'm running the Postfix mail server ru000397.widhost.net. I'm getting some of these messages in postmaster@ru000397.widhost.net.  The mail service is working and, obviously, there is much free space on all drivers.  Transcript of session follows.   Out: 220 ru000397.widhost.net ESMTP Postfix  In:  EHLO m145.gem.godaddy.com  Out: 250-ru000397.widhost.net  Out: 250-PIPELINING  Out: 250-SIZE 52428800  Out: 250-ETRN  Out: 250-STARTTLS  Out: 250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN  Out: 250-ENHANCEDSTATUSCODES  Out: 250-8BITMIME  Out: 250 DSN  In:  MAIL FROM:<mailman@m145.gem.godaddy.com> BODY=8BITMIME  Out: 452 4.3.1 Insufficient system storage  In:  RCPT TO:<info@gilperformance.it>  Out: 503 5.5.1 Error: need MAIL command  In:  DATA  Out: 503 5.5.1 Error: need RCPT command  In:  QUIT  Out: 221 2.0.0 Bye   For other details, see the local mail logfile   main.cf:  master.cf:   Here is my df outputs:  [root@ru000397 ~]# df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda2        22G   20G  1.5G  94% / tmpfs           7.8G   12K  7.8G   1% /dev/shm /dev/sdb        2.7T  1.7T  867G  67% /usr/local/psa  [root@ru000397 ~]# df -i Filesystem        Inodes    IUsed     IFree IUse% Mounted on /dev/sda2        1455328   242748   1212580   17% / tmpfs            2035051        2   2035049    1% /dev/shm /dev/sdb       181141504 11000662 170140842    7% /usr/local/psa   Here is my message_size_limit:  [root@ru000397 ~]# postconf -n|grep message_size_limit message_size_limit = 52428800


Find the inverse of $[f(z)=3z^2+z+3]$ in $\mathbb{Q}/(z^3-2z-2)$ already prove that polynomial $z^3-2z-2$ is irreducible about $\mathbb{Q}$, now how can I find the inverse of that given polynomial? someone to please explain to me


The number of words that can be made by permuting the letters of _MATHEMATICS_ is

The number of words that can be made by permuting the letters of MATHEMATICS is   $1) 5040$  $2) 11!$  $3) 8!$  $4) 4989600$  First of all I do not understand the statement of the problem, I would like if some one tell me with an example.


why does the jacobian point towards the maxima of a function?

I can derive the Jacobian of a multivariate function $f(x,y)$ by creating a horizontal vector: $$\left[\frac{∂f}{∂x} ~,~ \frac{∂f}{∂y}\right].$$  This vector will point to the maximum value of the function.  But why is this? Why does arranging the partial derivatives of $f(x,y)$ into a vector mean that it points to the peak of the function? The partial derivative can tell us the rate of change in a parameter. I don't see how this connects to the function's maxima.


How to filter but its not case sensitive using regexp on javascript

This is the code I got on stackoverflow also         but I want to enhance it to make not case sensitive         or should I change the \\b because I think it's a match symbol.        What should I do?   function filter() {     var regex = new RegExp('\\b' + this.value);     var $els = $lbs.filter(function () {         return regex.test($(this).text());     });     $lbs.not($els).hide().prev().hide();     $els.show().prev().show(); };  input.keyup(filter).change(filter);


How to connect an LED indicator to a circuit?

I would like to know how can i add a safety switch with an LED indicator to a circuit , so that if the safety switch is on then the LED lights , and when i want to use the device , all what i have to do is to press the normally-open switch.   I have attached this schematic and im not sure if it will work correctly  ,as i am a very beginner in electronics   Thanks


I have a small requirement where in i need to remove the duplicate values from the array that i am getting.  Overview In the below code, what i am trying to do is to get top 1000 employee names(Should Cost Modeler People Picker Field) through REST API from List A and appending those values in LIST B Drop down. But as i get all the names through REST API there are many duplicate values in the array.   What i would like to do is to remove the duplicate values and then append the values to drop down.  //Get the employee names  function getAllEmployeeNames(){ var results; $.ajax({     url: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/lists/getbytitle('Should Cost Projects')/items?$select=Should_x0020_Cost_x0020_Modeler/Title&$expand=Should_x0020_Cost_x0020_Modeler/Id&$top=500",     type: "GET",     async:false,     headers: {         "Accept": "application/json;odata=verbose",     },     success: function (data) {         if(data.d.results.length>0){             results=data.d.results;         }     },     error: function (data) {     //alert("Error");     } }); return results;   }   // To Append the Employee Name to drop down on form load.  var employeeName=$("input[title^='Employee Name']").val(); $("input[title^='Employee Name']").hide(); $("input[title^='Employee Name']").after("<select id='EmployeeField' class='ms-RadioText'><option value=''></option></select>"); $("input[title^='Project Name']").hide(); $("input[title^='Project Name']").after("<select id='ProjectField' class='ms-RadioText'><option value=''></option></select>"); var allEmployeeNames=getAllEmployeeNames(); console.log(allEmployeeNames);       $.each(allEmployeeNames,function(i,employee){     $.each(employee.Should_x0020_Cost_x0020_Modeler.results,function(j,item){         if(employeeName==item.Title){             $("#EmployeeField").append("<option selected='selected' value='"+item.Title+"'>"+item.Title+"</option>");         }else{             if(item.Title!=undefined){                 $("#EmployeeField").append("<option value='"+item.Title+"'>"+item.Title+"</option>");             }                    }        });          });   // the code that i am using to remove duplicates but it is not working.  $(allEmployeeNames).each(function() {     $(this).siblings('[value="'+ $(this).val() +'"]').remove(); });     Please help me solve this problem.  Thanks


How can one show that a möbius transformation maps the unit circle to some axis?

Suppose I have the möbius transformation f(z) = $\frac{1+z}{1-z}$ and I want to show that it will map the unit circle (excluding the point 1) to the imaginary axis.  Would it help to express my unit circle in polar form?     Here's what I did: f(e$^{i\theta}$) = $\frac{1+e^{i\theta}}{1-e^{i\theta}}$  But I'm not sure where to go from this step.


Sci-Fi TV show from mid-to-late 80's, Family, Other Planet, "Good Food" in grocery

Does anyone remember a TV show from the mid-to-late '80's that was somewhat sci-fi (ish) where a family gets either transported to another planet, or to another time/dimension where everything is a utopian society.   There's not much I recall except that I thought the young teen son in the show was handsome (shut up, I was 11) and when the mom & daughter went to the grocery store, all the food items are labeled generically (white with black letters) and all the labels say "good food".  Anyone recall the name of this show?


Assign property of second object to every element in first object(JS)

I have code to merge two objects  Here is code    var obj1 = [{ food: 'pizza', car: 'ford'}, {food:'apple',car:'volvo'}]; var obj2 = { animal: 'dog' }   var allRules = Object.assign({}, obj1, obj2);  console.log(allRules);     It works, but in new object I have two elements and dog as 3 element. You can see it from snippet.  But I need two elements with dog as property. So it will be food, car and animal as key in every element of object.  How I can do this?  UPDATE  For merging array with object property I understood, but if I have two arrays like this      var arr1 = [{     food: 'pizza',     car: 'ford'   },   {     food: 'apple',     car: 'volvo'   } ];  var arr2 = [{   animal: 'dog' }, {animal:'cat'} ];   And want to merge it to one array with 1 element of 1 array, get's 1 element of 2 array , etc.  How I can do this?


Linear map $f:V\rightarrow V$ injective $\Longleftrightarrow$ surjective

Maybe I am not good at looking for the right questions but I haven't seen this task anywhere so I hope it is no duplicate.  I have to prove the following statement:     Let $V$ be a finite dimensional vector space and $f:V \rightarrow V$ a linear map. Show that $f$ is injective $\Longleftrightarrow$ $f$ is surjective.   The following is already known:  $(i)$ $\ker f$ and $\def\Im{\operatorname{Im}}\Im f$ are linear subspaces $(ii)$ There exists an isomorphism $V/\ker f\rightarrow \Im f$ $(iii)$ If $U\subset V$ is a linear subspace then $\dim V/U=\dim V-\dim U$ $(iv)$ $f$ is injective $\Longleftrightarrow$ $\ker f=\{0\}$  So my approach is the following:  $"\Longrightarrow "$ Let $f:V\rightarrow V$ be injective. Then due to $(iv)$ $\dim\ker f=0$. Hence due to $(ii)$ and $(iii)$ $\dim V/\ker f=\dim V=\dim\Im f$. Since $\dim V=\dim\Im f$ it implies that $f$ is surjective.  $"\Longleftarrow "$ Let $f$ be surjective. Then $\dim\Im f=\dim V$. Additionally, because of $(ii)$ it is $\dim\Im f=\dim V/\ker f$. Thus $\dim V=\dim V/\ker f=\dim V-\dim\ker f$. This means that $\dim\ker f=0$ and hence $\ker f=\{0\}$ and thus $f:V\rightarrow V$ is injective.  For me it all makes sense but maybe I missed something.  Thank you in advance.


How to properly catch exceptions with java file I/O

I'm trying to become familiar with file I/O in Java. I started off by getting a lot of errors when compiling, such as error: unreported exception IOException; must be caught or declared to be thrown. So I made some changes to the code and ended up with:  public static void main(String[] args){     FileInputStream in = null;     FileOutputStream out = null;     String content = "hello";     byte[] contentBytes = content.getBytes();      try{         out = new FileOutputStream("output.txt");         out.write(contentBytes);     }catch(IOException e){      }catch(FileNotFoundException e){      }     finally{         if (out != null)             out.close();     } }   Still, I get this error:  FileIO.java:16: error: exception FileNotFoundException has already been caught         }catch(FileNotFoundException e){          ^ FileIO.java:21: error: unreported exception IOException; must be caught or declared to be thrown                 out.close();                          ^ 2 errors    Where did I "already catch" FileNotFoundException? Because of the second error, do I need to put another try and catch statement in the finally clause to catch IOException? That seems messy and over-complicated. Am I doing something else wrong? And why doesn't java let me do what I want without forcing me to catch exceptions?   EDIT:  If I do:  public static void main(String[] args){     FileOutputStream out = null;     String content = "hello";     byte[] contentBytes = content.getBytes();      try{         out = new FileOutputStream("output.txt");         out.write(contentBytes);     }catch(FileNotFoundException e){      }catch(IOException e){      }     finally{             if (out != null)             out.close();      } }   I get:  FileIO.java:20: error: unreported exception IOException; must be caught or declared to be thrown                 out.close();                          ^ 1 error


I'm trying to solve exercise 5 in chapter 14 of Rudin's Real & Complex Analysis:     Suppose $f$ is a trigonometric polynomial,   $$f(\theta) = \sum_{k=-n}^n a_k e^{ik\theta}$$   and $f(\theta) > 0$ for all real $\theta$. Prove that there is a polynomial $P(z) = c_0 + c_1z + ... + c_nz^n$ such that $f(\theta)= |P(e^{i\theta})|^2$ ($\theta$ real).   I've made good progress but I can not finish it. My thoughts:  Define $F(z) = \sum_{k=-n}^n a_k z^k$. This is a rational function that is positive on the unit circle so it must be of the form: $$F(z) = c \prod_{j=1}^n\frac{(z-\beta_j)(1-\overline\beta_j z)}{(z-\gamma_j)(1-\overline\gamma_j z)}$$  where $c > 0$. $\beta_j$ are zeros of $F$. $\gamma_j$ are poles.  On the unit circle $$f(\theta) = F(e^{i\theta}) = c \prod_{j=1}^n\frac{(e^{i\theta}-\beta_j)(1-\overline\beta_j e^{i\theta})}{(e^{i\theta}-\gamma_j)(1-\overline\gamma_j e^{i\theta})}$$  The terms in the product simplify to $$\left| \frac{e^{i\theta} - \beta_j}{e^{i\theta} - \gamma_j} \right|^2$$  If I can show that this is a polynomial, I'll solve the exercise, but it doesn't look like a polynomial to me.  Is there a better way?


Convert string (ex. 08:00) to datetime c#

I'm using an api that provides time as a string, for example "14:45". Ultimately, I would like to convert that UTC time string to the user's local time zone, but I'm not exactly sure how to do this.   The only solution I could think of is to convert the string to a DateTime and then convert that DateTime to local before pushing that out as a string back in the original format (ex. "14:45" becomes "11:45"). I'm stuck trying to convert the string to a DateTime given that it's not in the typical format. Any suggestions? Thanks!


I want to close slide panel after click outside it or on X button inside, I have working code but there is one issue, if inside panel there is any element with class or ID after click on it panel also is closed. Here is my fiddle  and my code:   const open = document.getElementById("open") const slide = document.getElementById("slide") const close = document.getElementById("close")  open.onclick = function() {     slide.classList.toggle("active") }  document.onclick = function(e) {     if(e.target.id !== "slide" && e.target.id !== "open") {         slide.classList.remove("active")     } } .main {   max-width:600px;   overflow:hidden; } #slide {   position:absolute;   top:0;   right:0;   width:400px;   height:100vh;   transform: translateX(100%);   border: 1px solid; } #slide.active {   transform: translateX(0); }
   Click to open

X
     Lorem ipsum dolor sit amet consectetur adipisicing elit. Exercitationem incidunt asperiores quo architecto consectetur pariatur illum amet recusandae quod repudiandae eum neque, illo minus culpa aut voluptatibus dicta. Aspernatur, soluta?         Aliquid, sit alias. Veniam ullam deleniti aut ipsum ipsa repudiandae architecto tempora suscipit voluptates? Earum quaerat nam dignissimos cumque perspiciatis assumenda? Exercitationem aspernatur officiis vel earum consequatur illo ullam minima!


Can anybody explain the concept of interfaces with good example. I searched but didn't find a good answer. I'm still confused with these concepts.  I found an example for interface from Internet which is shown below. The code works without the interface with the same output. Then what is the purpose of it? Or is it not the real implementation of interfaces?. I need to move from procedural coding to object oriented programming. It would be better if anyone can explain not in more complex technical words.   <?php interface IPillage { public function emptyBankAccounts(); public function burnDocuments(); }  class  Employee  { public function emptyBankAccounts() { echo "Call employees and ask to transfer funds to Swiss bank account"; } public function burnDocuments() { echo "Torch the office suite of the employee"; }  }  class Executive  extends Employee implements IPillage { public function emptyBankAccounts() { echo "Call executive and ask to transfer funds to Swiss bank account"; } public function burnDocuments() { echo "Torch the office suite of the executive"; }  } $obj1=new Employee(); $obj2=new Executive(); $obj1->emptyBankAccounts(); echo '<br>'; $obj2->emptyBankAccounts(); ?>


Number of sets in equality of union of more than three sets

Suppose $A_{1}$, $A_{2}$, $\dots$, $A_{30}$ are thirty sets each having $5$ elements and $B_{1}$, $B_{2}$, $\dots$, $B_{n}$ are $n$ sets each having $3$ elements. Let $\bigcup\limits_{i=1}^{30} A_{i} = \bigcup\limits_{i=1}^{n} B_{i} = S$ and each element of S belongs to exactly $10$ of $A_{i}$'s and exactly $9$ of the $B_{j}$'s. Then what is the value of $n$?  I know the formula for union of $3$ sets. If $3$ sets are given with the above condition then I can solve it. Here exactly $10$ of $A_{i}$'s and exactly $9$ of the $B_{j}$'s means each element of $S$ lie in intersection of exactly $10$ of $A_{i}$'s and exactly $9$ of the $B_{j}$'s. Am I right? I don't know how would I handle union of more than $3$ sets.


Anyone manage to get thumbnails for GIF files working in 18.10? None of the previous methods for adding a custom thumbnailer seemed to work for me like it did in past Ubuntu versions.


Level 10 Circle of the Moon Druid has two uses of wild shape. At level 2 a player gets "combat wild shape" so you can choose to use your bonus action to transform.   Combat starts, your first turn you bonus action wild shape into a giant eagle (80 fly speed) and fly up into the air 160 feet (dash action). Round 2, you move yourself over an unsuspecting enemy, maybe you even use your action to dash higher. Let's say at this point you are 300 feet above an enemy (and you have keen sight so you can definitely see him.) Time for bonus action wild shape into an orca (8-12k pounds).  Xanathar's says when you fall, you instantly descend 500ft. So you can easily drop down on an enemy before he can react. Besides, you are now a huge beast and hard to avoid. Max damage = 20d6 (200ft)  How would you rule on a target enemy taking damage vs. how much damage do you take?


Backlight change with FN keys do not work on Asus

Asus g53 laptop, Ubuntu 14.04, KDE 4.13.3  Fn+{f5f6} should change the screen brightness but only the animation appears with the panel (I can increase the values but the brightness does no change)   I have already tried to add this to grub  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_aspm=force acpi_backlight=vendor"   Does not work. I tried this one too, I do not know what should happen after the first command but I just got back the console without anything seeming to happen:   I have also installed this    On GNOME and Unity this function works like a charm. Why not on KDE? Keyboard backlight is working on KDE.


Partition type FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF and drive unreachable

I had Ubuntu dual booted on my 2015 MacBook Pro. I tried to remove the Ubuntu partition using Disk Utility, then when I attempted to delete the Linux partitons, it is completely gone out of sight. I was unable to regain that space to add it to my system. After a restart, the only boot option I see (holding the Option key) was EFI boot. Using the Internet Recovery Mode, I opened the terminal.   my diskutil list results were like this:     gpt -r show disk0 result is as below:     It used to be named Macintosh HD (like the drive) and now it has lost its name and the partition type turned into FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF  I learned that I have to edit the partition table and modify the type of disk0s2 to get my main data partition back and make Boot OS X invisible. That's why I followed the guides to do that as in   As a result, I managed to modify the GUID type to Apple CORE storage (53746F72-6167-11AA-AA11-00306543ECAC):    When I tried to diskutil verifyDisk disk0 and diskutil repairDisk disk0, i get an error.     I restarted the computer but still the only boot option I see was EFI boot.  What's the problem? What am I doing wrong? Please help me, it's very important for me to reach that disk having all my information inside.


location info of objects not changing in any frame for physics simulation (but their position changes)

I am new to blender and using it for generating a dataset for another problem that I am working on. I use physics simulation to make objects fall. The problem I am facing is that the object.location value does not update after simulating. I can see that the objects did move in 3d view. Do I have to do something different to get the location in the last frame? (need python solution for this) I am using the following code for simulating  def simulate(start_frame=1, end_frame=200):    for i in range(start_frame, end_frame + 1):        bpy.context.scene.frame_set(i)        bpy.context.scene.update()


What let's us do stuff like $F(a) = F(b)$ for $a=b$?

In Tao's Analysis vol 1 we have various proofs from properties and operations on natural numbers, as well as axioms.  For example additive identity $a+0=a$.  But then in some proofs we apply these changes when the arguments are inside function calls. For example if $a+0=a$ then $S(a+0)=S(a)$.  What let's us do this? Maybe it's just so obvious it needs no further proof but what lets us say $F(a) = F(b)$ if $a=b$?


I started a QGis project with adding information layers from OpenStreetMap such as the streets and railways for a city. This data has WGS 84 CRS. After that, I made a shapefile with urbanized bodies of land using the OpenLayers plugin.   Problem: I want to calculate the areas for the shapes I made. When I use Open Field Calculator or Export/add Geometry columns the values I get are like this "0.0000099" which doesn't seem right.   Any idea how I can solve this?  My version (which didn't work): I added some data with Stereo 70 CRS which did overlap due to Enabled on the fly CRS. However when I tried to convert my WGS 84 data to stereo 70, my shapes got moved away and the calculated areas are still with "0.0000099".  So is there any workaround for such a problem or do I have to import my areas into AutoCad, scale them can calculate manually?


I am testing my new (dual boot) Ubuntu install. When playing with basic terminal commands I noticed that i was logged in (or something to that effect) twice! Here are my commands and the terminal results.  ~$ who karsus   :0           2016-01-27 21:24 (:0) karsus   pts/9        2016-01-27 21:24 (:0) ~$ w 21:26:46 up 3 min,  2 users,  load average: 0.28, 0.34, 0.15 USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT karsus   :0       :0               21:24   ?xdm?  55.54s  0.14s init --user karsus   pts/9    :0               21:24    1.00s  0.03s  0.00s w ~$    Did I do something wrong? When I first saw this I restarted my laptop and went to the terminal straight after log in. Then I got the results posted above.  Is that normal? - If so what does it mean?  Thank you for your help.


In Representation of electromagnetic waves we show both electric and magnetic fields perpendicular to each other and having zero magnitude at one point and maximum at other point. This representation and understanding of EM waves violating law of conservation of energy...


Finding a Registry Key In Order to Delete It

A couple of months ago, I acquired some lovely malware. After removing this (lovely) malware  I received a pop message, further improving my day. The message indicates that there was a problem starting (bogus) file tosendto.dll, because the file could not be found.  Searching the registry with the phrase "tosendto.dll" does not yield any results. This error seems to be significantly impacting my computer's performance, and I'm out of ideas to find the key invoking the file. Any and all help would be much appreciated.


I have several child classes that I would like to not have to rewrite certain initialized code for.. I've tried something like..  #include <iostream>  struct A {    A() { init(); }    virtual ~A() {}    void init() { load(); }     virtual void load() = 0; };  struct B : public A {     void load() { std::cout << "loading.." << std::endl; } };  int  main(int argc, char* argv[]) {     A* a = new B; delete a;     return 0; }   Which gives the runtime error/exception - "pure virtual method called"..  I've read through other threads that explain that this is not possible; but I don't see any solution besides being forced to re-write the same code over and over in the child class.  Is there a better way to encapsulate this?  (Other than doing this in the child constructor..)


Does the following PHP MySQL statement protect against SQL Injection?   $strSQL = "SELECT * FROM Benutzer WHERE Benutzername = '".$Benutzer."' AND Password = '".md5($PW)."'";   The Variables $Benutzer and $PW are inputs from the User.  We're checking the username and password against common SQL Injection techniques:     ' or 0=0 --, " or 0=0 --, or 0=0   --, ' or 0=0 #, " or 0=0 #, or 0=0 #, ' or 'x'='x, " or "x"="x,   ') or ('x'='x, ' or 1=1--, " or   1=1--, or 1=1--, ' or a=a--, "   or "a"="a, ') or ('a'='a, ") or   ("a"="a, hi" or "a"="a, hi" or 1=1   --, hi' or 1=1 --, hi' or 'a'='a, hi') or ('a'='a and hi") or   ("a"="a.   Am I missing something? Should I use a different method to protect against SQL injection?


How to retrieve or remove bios password for compaq 620 laptop?

I want to run Android Simulator on my pc which requires virtualization enabled from bios.I am not able to goto bios because bios is locked with password.Please tell me how can i unlock bios so that i can change the vitualization setting?  I have searched on google but not getting correct solution.  EDIT:  i tried    Remvoing the bios cell,hard drive,battery for 10 minutes.    On removing bios cell clock is wiped out but bios password is not reset


How long is garlic butter safe, and why is it not a botulism risk like garlic in oil?

I've been making garlic butter for years, storing it for months at a time. When I read that garlic-in-oil can grow dangerous amounts of botulinum toxins after similar lengths of time, I wondered how safe garlic butter is and why.   Evidently, the  specifically target storage in oil. I couldn't find a satisfactory explanation for butter not being mentioned with a preliminary search. The first Google result turns up a grossly unhelpful Yahoo! Answers page whose sources do not mention butter at all.  To the point: is garlic butter safer than garlic-in-oil, and why? Is butter not also an anaerobic environment, so that the same precautions should apply as with oil?


Wifi not working after fresh install of ubuntu 20

I just installed ubuntu on a partition of my windows C drive. Wifi is not working. I found some instructions saying to add the ubuntu iso file to the home drive, then in software & updates under 'additional drivers' i was to locate the correct driver for my wifi device. However, it says "Broadcom & subsidiaries: BCM4360 802.11ac Wireless Network adaptor this device is not working" below that there is a button net to "Using Broadcom 802.11 Lunix STA wireless driver source from bcmwl-kernel-source (proprietary). when choosing this second option i get an "Error while applying changes: pk-client-error-quark: could not do media change question as no klass support (8)" I am unsure what to do. I am very unfamiliar with ubuntu but need it for a class. Any help would be appreciated.


Does it mean anything when all items load negatively on one factor?

note: A few people have marked this question as duplicate - But my question here is not answered in the other question. Though a fine distinction, what I was asking about here was not whether the signs of a factor matters in the absolute, but whether there was any significance to the relationship between factors (i.e. whether they were largely the same sign, or largely different signs).  So I am fairly familiar with factor analysis, and am aware of answers  and  that tangentially address my question. I believe I am right in my answer to the question I'm asking, but I wanted to make sure.   Essentially, I have, for each of several hundred participants, answers to two sets of almost identical questions. For examples' sake, let's say these are ratings of their current mood state on 10 items at the start (A) and the end (B) of a questionnaire survey. I expect that these mood rating items should load onto two main factors (positive and negative) and that these loadings should be consistent (i.e. both sets A and B should break down similarly into two factors).  When I run the factor analysis, I find pretty much what I expected, except that for rating set A, items 1:5 load positively on factor 1, and items 6:10 load positively on factor 2, while for rating set B, items 1:5 load positively on factor 1, while items 6:10 load negatively on factor 2. Within each factor, the direction of the loadings are consistent across all items. This analysis was performed using varimax rotation.  Now, my understanding is that the difference between the two results is meaningless. Only the relative loading within each factor matters, and the reversal in sign is simply due to the factor analysis randomly converging on a factor that points in the opposite direction, but is essentially the same (except conceptually reversed). But I have had a colleague try to interpret the difference between the two analyses as meaning something with regards to the difference between the two factors.   Is my understanding right, or is there actually something to the difference?  A visual representation that might be more helpful - this is essentially what my output looks like:


This is something I was wondering about for quite a while.   Is it possible to construct a statement that can only be proven by using 'proof by contradicition' or contraposition? Or to put it differently: If we do not use contradictions or contrapositions, would we be able to build the same mathematical framework that we would get without using them?


Exercise: Should we trust our naive bayes or a human "guru"?

This is from an exercise about the cost of missclassifications using a Naive Bayes classifier. We know that for some example which has three binary features $x_1,x_2,x_3$ the posterior is $P(Y = 1 | X_1 = x_1, X_2 = x_2, X_3 = x_3) = p$. There are two classes, y $\in$ {0,1}.The cost for misclassication is $c_m$. For each prediction we can either trust our naive bayes classifier, or ask a human expert with cost $c_h $ < $c_m$, who is 100% accurate.   The question is which of the two procedures would  minimize the expected cost?  Edit: I think part of the confusion we are having is this: We have two possible outcomes. So normally, if y = 1 is true, but we decide on state y = 0, i.e. a = 0, the cost should be $p*c_m$. If in contrast  y = 0 is true, but we decide on state y = 1, i.e. a = 1, the cost should be $(p-1)*c_m$. Would choosing the optimal action a* not imply by itself then that we are deciding based on the higher posterior?  BUT, the the answer below suggests that we already should take into account that the classifier goes with the maximal posterior before searching for optimal action a*: In this scenario, the cost would always be $c_m*min(1-p,p)$. For instance, if p = 0.45, the Naive Bayes decides on y = 0 (because of the higher posterior for y=0), so the cost is $0.45*c_m$, but even if p = 0.55, the cost would be $0.45*c_m$ since now Naive Bayes is choosing y =1.


win 10 Pro: How to avoid change of screen resolution?

I know that in Windows 7 there was a Group Policy that could be used to disallow changes of screen resolution.  I'm googling but I cannot find the policy name/path.   Could you help me?


Closed form for $ \int_0^\infty {\frac{{{x^n}}}{{1 + {x^m}}}dx }$

I've been looking at  $$\int\limits_0^\infty  {\frac{{{x^n}}}{{1 + {x^m}}}dx }$$  It seems that it always evaluates in terms of $\sin X$ and $\pi$, where $X$ is to be determined. For example:  $$\displaystyle \int\limits_0^\infty  {\frac{{{x^1}}}{{1 + {x^3}}}dx = } \frac{\pi }{3}\frac{1}{{\sin \frac{\pi }{3}}} = \frac{{2\pi }}{{3\sqrt 3 }}$$  $$\int\limits_0^\infty  {\frac{{{x^1}}}{{1 + {x^4}}}dx = } \frac{\pi }{4}$$  $$\int\limits_0^\infty  {\frac{{{x^2}}}{{1 + {x^5}}}dx = } \frac{\pi }{5}\frac{1}{{\sin \frac{{2\pi }}{5}}}$$  So I guess there must be a closed form - the use of $\Gamma(x)\Gamma(1-x)$ first comess to my mind because of the $\dfrac{{\pi x}}{{\sin \pi x}}$ appearing. Note that the arguments are always the ratio of the exponents, like $\dfrac{1}{4}$, $\dfrac{1}{3}$ and $\dfrac{2}{5}$. Is there any way of finding it? I'll work on it and update with any ideas.    UPDATE:  The integral reduces to finding   $$\int\limits_{ - \infty }^\infty  {\frac{{{e^{a t}}}}{{{e^t} + 1}}dt} $$  With $a =\dfrac{n+1}{m}$ which converges only if   $$0 < a < 1$$  Using series I find the solution is     $$\sum\limits_{k =  - \infty }^\infty  {\frac{{{{\left( { - 1} \right)}^k}}}{{a + k}}} $$


What is the function of __init__ method here

class myThread(threading.Thread):      def __init__(self,str1,str2):         threading.Thread.__init__(self)         self.str1 = str1         self.str2 = str2     def run(self):         run1(self.str1,self.str2)   I know the __init__ is used to initialize a class but What is the its purpose in the next line.Is there any alternative to this?


Does a diatomic molecule falling into a black hole dissociate?

I've just answered , and while I'm confident my answer is correct I'm less certain about the exact consequences. To simplify the situation consider a diatomic molecule falling into a Schwarzschild black hole with its long axis in a radial direction.    The inner atom cannot interact with the outer atom because no radially outwards motion is possible, not even for electromagnetic fields travelling at the speed of light. However I find I'm uncertain exactly what the outer atom would experience.  We know that the outer atom feels the gravitational force of the black hole even though gravitational waves cannot propagate outwards from the singularity. That's because it's experiencing the curvature left behind as the black hole collapsed. Would the same be true for the interaction of the outer atom with the inner atom? Would it still feel an electromagnetic interaction with the inner atom because it's interacting with the field (or virtual photons if that's a better description) left behind by the inner atom? Or would the inner atom effectively have disappeared?  If the latter, presumably the fanciful accounts of observers falling into the black hole (large enough to avoid tidal destruction) are indeed fancy since it's hard to see how any large scale organisation could persist inside the event horizon.  Later:  I realise I didn't ask what I originally intended to. In the above question my molecule is freely falling and the question arose from a situation where the object within the event horizon is attempting to resist the inwards motion. I'll have to go away and re-think my question, but thanks to Dmitry for answering what I asked even if it wasn't what I meant :-)


Is there a significant danger to market orders as opposed to limit orders?

I'm following an automated trading system. It gives me buy/sell signals periodically. I usually just add/subtract 0.5% from the current price (as reported by Google Finance) and buy/sell.  Last Monday, I did the same, but apparently the stock I was trying to sell fell in price quicker than my broker could sell it at my limit price. It fell about 3%. I wouldn't have minded selling at 1%, 2% or, frankly speaking, any percent lower. I just don't wanna hold on to it.  So, should I just use market orders instead of limit orders? Will it cost me more money to use market orders than limit orders with my current +/- 0.5% formula?


How to show that a set of discontinuous points of an increasing function is at most countable

I would like to prove the following:       Let $g$ be a monotone increasing function on $[0,1]$. Then the set of points where $g$ is not continuous is at most countable.     My attempt:    Let $g(x^-)~,g(x^+)$ denote the left and right hand limits of $g$ respectively. Let $A$ be the set of points where $g$ is not continuous. Then for any $x\in A$, there is a rational, say, $f(x)$ such that $g(x^-)\lt f(x)\lt g(x^+)$. For $x_1\lt x_2$, we have that $g(x_1^+)\leq g(x_2^-)$. Thus $f(x_1)\neq f(x_2)$ if $x_1\neq x_2$. This shows an injection between $A$ and a subset of the rationals. Since the rationals are countable, $A$ is countable, being a subset of a countable set.    Is my work okay? Are there better/cleaner ways of approaching it?


In an article that gives general work advice, I've seen the following sentence  Don’t take your complaint to your boss when she’s running between meetings ...  There is no context that states the gender of the boss, the author however has chosen to use she to refer to boss. Is the author here implicating that boss is feminine? Or does this have to do with the gender of the word boss?


How can I transform the following equation: $$x^{14} = 14^x$$ to something of the form $$x = \cdots$$ Thanks!


How to render with sky texture but get transparent background?

I use sky texture as world as part of my lightning setup. How do I render with transparent background while keeping the light emitted by sky texture?


The constraints of Universal Introduction in logic proofs

I'm having some trouble understanding the constraints on the rule of inference Universal Introduction.  From :     The full generalization rule allows for hypotheses to the left of the turnstile, but with restrictions. Assume $\Gamma$  is a set of formulas, $\varphi$  a formula, and $\Gamma \vdash \varphi (y)$ has been derived. The generalization rule states that $\Gamma \vdash \forall x\,\varphi (x)$ can be derived if $y$ is not mentioned in $\Gamma$  and $x$ does not occur in $\varphi$.   (Emphasis mine)  I dont understand why these constraints are correct. I have seen other constraints elsewhere, and those I understand (I think). For example, the universal introduction in Dirk van Dalen's Logic and Structure (4th ed) is:     $${\forall I}\, \frac{\varphi}{\forall x\, \varphi} $$   where the intended restriction is: the variable $x$ may not occur free in any hypothesis on which   $\varphi$ depends, i.e. an uncancelled hypothesis in the derivation of $\varphi$.   I understand why this is correct (we learned a similar pair of constraints in class), but according to the constraints described on the Wikipedia article, I dont see why I would not be able to infer the following (obviously this is incorrect) from the set of premises $\Gamma = \{\exists x \varphi(x)\}$  $$ 1.\ \exists x \varphi(x) \quad \quad \quad \quad \quad \quad \quad \quad \text{premise} $$  $$ 2.\ \varphi(y) \quad \quad \text{1, existential elimination} $$ $$ 3.\ \forall x \varphi(x) \quad \text{2, universal introduction} $$  This seems to imply that $\exists x \varphi(x) \vdash \forall x \varphi(x)$, and I dont see how this would violate the conditions on Wikipedia. $y$ has not been mentioned in $\Gamma$, and $x$ does not occur in $\varphi$.  Am I misunderstanding something? Or is the Wikipedia article wrong?


How can I verify an account as belonging to a Stack Exchange employee?

Recently on Meta SO, . Someone using the name  responded, with the claim that they are an . However, their profile does not contain any mention of their status as an official employee. They don't have any reputation beyond a token amount from the Sports stack. And they haven't yet responded to any requests from users to add this information to their profile. The only thing that matches their statement is that they have a large amount of question on the Meta SO related to Stack Overflow ads, which to be fair seems like it can't be faked.  From a normal user perspective, there feels something fishy about this whole situation. Could someone from the Stack Exchange team clarify whether this person is who they claim to be and whether they are actually speaking for the team? And if they are an official employee, could you please ask them to state so on their profile?


Trigonometric limit $\lim_{x\to 0} \frac{\cos(a+2x) - 2\cos(a+x) + \cos(a)}{x^2}$ without l'Hospital

Compute the following limit:  $$\lim_{x\to 0} \frac{\cos(a+2x) - 2\cos(a+x) + \cos(a)}{x^2}\   .$$  How would I go about solving this problem? I can't use l'Hospital.


Gmail blocking e-mail from my personal domain

For some reason Gmail has started blocking e-mail from my domain (flanigan.net).   I have had DKIM (opendkim), DMARC (opendmarc), and SPF implemented for some time. I am not on any of the SPAM or issues list that I can find. I have no history of bad behavior or issues, and I have no problem with sending e-mail to any other domain (yahoo, outlook.com, etc, etc).   The message I get back is unhelpful. I have filled in all the forms and done all the Gmail help guides I can find.   I just do e-mail from home use and for some friends and charities I support. All said and done only 40 users. Again no history of issues or SPAM.   Bounced Message Headers below:      Subject: Returned mail: see transcript for details   Date: 2016-12-16 11:10   From: Mail Delivery Subsystem    To:       The original message was received at Fri, 16 Dec 2016 11:10:19 -0500 from     >ns1.flanigan.net [IPv6:::1]      ----- The following addresses had permanent fatal errors ----- >>        (reason: 550-5.7.1 [2600:3c02::f03c:91ff:fe89:bda4      12] Our    system has detected that)      ----- Transcript of session follows ----- ... while talking to gmail-smtp-in.l.google.com.:    DATA    550-5.7.1 [2600:3c02::f03c:91ff:fe89:bda4      12] Our system has    detected that   550-5.7.1 this message is likely unsolicited mail. To reduce the amount of spam  550-5.7.1 sent to Gmail, this message has been blocked. Please visit <<< 550-5.7.1    550 5.7.1  for more information. u1si2266860ywd.269 - gsmtp   554 5.0.0 Service unavailable      Reporting-MTA: dns; ns1.flanigan.net   Arrival-Date: Fri, 16 Dec 2016 11:10:19 -0500


Unable to apt install armhf packages with unmet dependencies

I am trying to setup an multi arch environment to cross compile armhf board. The steps I followed is quite simple.  Install ubuntu-18.04.1-desktop-amd64 on VirtualBox. sudo dpkg --add-architecture armhf vim /etc/apt/sources.list and add followings.  deb [arch=armhf] http://ports.ubuntu.com/ trusty main universe
    deb-src [arch=armhf] http://ports.ubuntu.com/ trusty main universe [And put [arch=i386,amd64] for the other lines.]   sudo apt update sudo apt install libgstreamer1.0-dev:armhf  And the installation was unsuccessful with following error. sudo apt install libgstreamer1.0-dev:armhf Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgstreamer1.0-dev:armhf : Depends: libgstreamer1.0-0:armhf (= 1.14.0-1) but it is not going to be installed                              Depends: libc6-dev:armhf but it is not going to be installed or                                       libc-dev:armhf                              Depends: libglib2.0-dev:armhf but it is not going to be installed                              Depends: libc6:armhf (>= 2.4) but it is not going to be installed                              Depends: libglib2.0-0:armhf (>= 2.40) but it is not going to be installed                              Depends: gir1.2-gstreamer-1.0:armhf (= 1.14.0-1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  I've some searching and tried following things and didn't help.  sudo apt -f install Tried install missing dependant package manually but it's recursive. I mean, if I do sudo apt install gir1.2-gstreamer-1.0:armhf, it fails with unmet dependency of libgstreamer1.0-0:armhf  Any advice will be appreciated! Thanks.


Why do we need switch-case statements in java if we already have if-else if-else statements

Could you please let me know why do we need switch-case statement in java if we already have if-else if-else statements.  Is there any performance advantage for switch-case statements?


I am new on unix systems, I want to ask about the hosts file that is in /etc/hosts what does used for ??  also  I want to ask that when connect using ssh=> I wrote on hosts file the following x.x.x.x (server IP) server.hostname  and when use ssh root@server.hostname it says that  Unable to resolve host 'server.hostname': Connection failed.


Is there another way to acess resultset without throwing a null point exception

I'm trying to access the data from a single row fetched by a select query. When I try to access the data through rs.getString() it throws NullPointerException.  Any method to access the data from the result set leads to a NullPointerException. Why does this happen?  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {     doGet(request, response);      boolean status=true;     String email=request.getParameter("user");     String password=request.getParameter("pass");      PrintWriter pw = response.getWriter();      if (status) {         String driverName = "org.hsqldb.jdbcDriver";         String URL = "jdbc:hsqldb:hsql://localhost/";         String UID = "SA";         String PWD = "";         Connection con = null;         PreparedStatement sql = null;         ResultSet rs = null;          try {             Class.forName(driverName);             con = DriverManager.getConnection(URL, UID, PWD);              System.out.println("connected = " + con);              sql = con.prepareStatement("SELECT * FROM \"USER\" where email='"+email+"' and password='"+password+"'");             boolean sql_st=sql.execute();             System.out.println(sql_st);             rs=sql.getResultSet();              if(rs.next())             {                 HttpSession hp = request.getSession(true);                 rs=sql.getResultSet();                  hp.setAttribute("name", rs.getString("name"));                 pw.println("
Welcome "+rs.getString("name")+"
");             }             else             {                 pw.println("
invalid credentials
");                 pw.println("go back");             }         } catch (SQLException e) {             e.printStackTrace();         } catch (ClassNotFoundException e) {             e.printStackTrace();         }      }     else     {         pw.println("
Invalid Input
");         pw.println("go back");     }


How to clone relative to an entity's coordinates?

This is kind of a sequel to the other post I made, 'Scoreboard/Cloning Help' and someone said maybe I could clone stuff relative to an entity's coordinates, I thought it was an amazing idea, but he didn't post any command to go with it.     If you guys could help my find how to do that, that would be awesome.


equality of two continuous and periodic function

I need to solve the following problem.   Show that if $f$, $g$ : $\mathbb R$ → $\mathbb R$ are continuous, periodic and $\lim_{x→\infty}$ $(f(x) − g(x)) = 0$, then $f = g$.  I have only used the definition of convergence so far. (Unfortunately, I couldn't go further for almost an hour.) For all $\epsilon$ there exists $ r\in \mathbb R$ such that $|{f(x)-g(x)}|\le \epsilon$ for all $x\geq r$  will you give me some hint?


Why is the convolution of two box kernels a triangle kernel?

Can anyone show the mathematical steps proving   $K_{box}*K_{box} = K_{triangle}$


Define $f:[0,\infty)^2\to\mathbb{R}$ as $f(x,y)=(1+x)^t(1+y)^{1-t}-x^ty^{1-t}$, where $t\in [0,1]$.   Is it true that $f(x,y)\geq 1$ for all $x,y\geq 0$? I'm almost sure that this is the case. A simple simulation study made me more confident of the inequality. I tried to prove it by differentiation. Since $$ \dfrac{\partial f}{\partial x} = t\left(\dfrac{1+y}{1+x}\right)^{1-t}-t\left(\dfrac{y}{x}\right)^{1-t} $$ and  $$ \dfrac{\partial f}{\partial y} = (1-t)\left(\dfrac{1+x}{1+y}\right)^{t}-(1-t)\left(\dfrac{x}{y}\right)^{t} $$ So any saddle point (x,y) is such that $x=y$ and $f(x,x)=1$. But, is this a minimum?  Is there another way to prove it? Of course, if it is true...


How to create a div up to the bottom of the site?

I have a  element, which has a colored background, and starts after an header. When I set the height to 100%, the element reaches over the bottom so a scrollbar appears. I want it to reach to the bottom but not further. The code should explain it a bit, the red is the div I want to not go further than the bottom. Is there a possible way to do this? I can use JavaScript, html, css, etc...   html,body {     height: 100%;     background-color: green; } #text{     height: 100%;     background: #ff0000;     margin-left: 20%; } header{   background-color: black;   color: white;   padding: 16px; } My Header
     test


Is it possible to purchase a pre-paid SIM card that with cellular Internet access in Iceland ? If so, in what parts of Iceland can I expect coverage ?


I plug my Backup Plus Portable Drive (Seagate) into my MacBook Air (10.13.3 MacOS High Sierra Version) into my USB ports, both of them.  The drive lights up, I can hear it running however it is not showing up in Finder.  I have searched the Web for all sorts of solutions however I am unable to find any and Seagate was no help.  thanks for any help, this drive holds valuable information that I need to at most get off of it so I can throw it into a fire pit.  Thanks again.


Does my Schengen visa allow me to enter the Schengen area into another state after I've finished my visit to the issuing state?

Does my Schengen Visa allow me to re-enter the Schengen zone after I've completed my initial visit to the issuing country? My visa is still valid for about a year. I'm intending on visiting a different country in the Schengen zone other than the one who issued it and don't intend on visiting the issuing country on this occasion. As my Schengen is still valid, that should be fine?


The timeout period elapsed prior to obtaining a connection from the pool

I'm getting this error every few days. I won't see the error for a few days then I'll get a flurry of 20 or so all with in a minute or so.  I've been very thorough going throw my code so that I'm using this basic setup for my DB access.  try {   myConnection.Open();   mySqlDataAdapter.Fill(myDataTable);   myConnection.Close(); } Catch (Exception err) {   if (myConnection.State != ConnectionState.Closed) myConnection.Close();   throw err; }   The way I understand it this should execute my queries and immediately release the connection back to the pool but if something goes wrong with the query then I catch the excpetion close my connection then throw the error up, which eventually gets trapped at the application level and logs and emails me the error.  Even using this throughout my code I'm still running across the issue. What can I do to diagnose the root cause of the issue?


How do I remove index.php from url in CodeIgniter 2.2

I have tried all the methods I can find on the web but nothing seems to work. I still get a 404 page. I already modified $config['index_page'] = ''; and add the lines to .htaccess as suggested by the ci documentation site. Please help. I am stressed with this for a whole day now!  these are what I put in .htaccess. I am using LAMP  RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]


Why can't we delete more than five answers in a day?

Out of curiosity, I just wanted to know: What is the reason that we can't delete more than five answers of our own in a day?  I am aware of the fact that this is a feature of Stack Overflow, but is there any specific reason for such a restriction as I am just trying to delete my own answers, not anyone else's, so shouldn't I have the authority to do so?  I get the point which Mysticial mentioned in comments, but what about the users who have a large number of reputation points, say more than 10k or may be 5k?  Ok I got the point that it is to restrict the rage quitters to delete there good quality answers. But why it is set to 5? As even then also any rage quitter can delete his standard good quality answer also!(Sorry if that is too obvious)  My curiosity becomes more after watching the some good answers(Score of 255) getting detete from this question:-


can somebody please explain to me how is this possible?  df -h Filesystem      Size  Used Avail Use% Mounted on /dev/md2        204G  170G   24G  88% /  du -ah / | sort -rh | head -20 121G    / 88G /var   So, essentially my / folder is 121GB large (running all as the root user), but my hard drive is 170GB full?  Running the Ubuntu 12.04.


Animate Property gets activated whenever I move an object

I think I must have changed a setting by accident.    Whenever I select an object and do any operation on it (move, rotate, scale, etc), suddenly the boxes in the Transform tab become yellow and the Animate property settings (The diamonds next to the yellow boxes on the right hand side of the photo) become activated.  I don't know what these are and what these do (I don't think they do anything atm), but I know this is not the default behavior.  How can I change this back to default behavior? (i.e. no yellow boxes, no diamonds)


Why is $\sum_{k=0}^n (_k^n) 2^k$ simplified as $3^n$ and not just $2^n$ ? The answer uses the binomial theorem as a solution: let $a=1$ and let $b=2$. So $1+2 = 3$. But since $1+2 = 3$ why do we not use $1+1 = 2$?


Can't identify partition for installing Ubuntu 16.04 in dual boot with Windows 10

I try to install Ubuntu 16.04 as a dual boot with Windows 10.  Unfortunately the  installer can't identify the partition I set unallocated with the build-in Windows 10 disk manager. When I come to the installation it directly sends me to Something else without giving me the opportunity to choose Install alongside Windows.  Searching for this problem I discovered that fast startup & secure boot must be disabled, but still the same error remains.    I also noticed an additional error I could not interpret when wanting to start the installation:    I'm using an Dell Inspiron with Windows 10, UEFI and using an SSD.  It would be very nice if you could explain:   What exactly is the problem? How do I troubleshoot this? How do I solve this problem?   I'm still a beginner to Ubuntu so thanks a lot for your time!  ---------- EDIT ------------ Here are all partitions shown. The dark Part with 30 GB is unallocated. Even through this I still should be able to see the partitions in the "Something else" part. But I can not choose anything in the dropdown "Device for boot loader installation:" If I click "+" / "-" / "Change" it basically crashes as it doesn't react anymore to clicking on new objects.


How do I support arbitrary section depth?

Rather than subsubsection is there a sectionlevel{2}? I am writing a rather large monograph and I need levels as deep as 10 such as: 1.2.3.4.5.6.7.8.9.1: This is a very deep section.  I have set \secnumdepth{10} but how do I use it? Must I write a package of my own? How can I use the \label and \ref capabilities or must I re-implement these in my own package too?


Large whitespace at Springer journal template

I just downloaded Springer WWWJ template from  and after I compiled, there is a huge whitespace on the right. Whitespace was there even if I use the sample from the template directly, anyone has similar experience?


So I am studying tenses and while going through Past-Perfect Tense I am stumped.  My research shows that Past-Perfect can be used to show three kinds of timelines (don't know if this is the right word to describe it but I hope you get the point).  1. An action started in the past and ended in the past.     I have read The Hobbit. (Present-Perfect)   How is it any different from,     I read The Hobbit. (Simple Past)    Don't they both tell us the same information that at sometime in the past I have read The Hobbit and I have finished reading it. Or are these going to be different answers (telling the same thing) to different questions ?     Have you read The Hobbit ?      Answer in Present-Perfect.    vs     What book did you read ?      Answer in simple past.   2. An action that started in the past and remains true in the present.  and   3. An action that started in the past, remains true in the present and may continue in the future.  The following example is most suitable for which of the above ? Are 2 and 3 basically the same ? i.e. If something is true in the present, it is likely to continue to be true in the future as well ?      "We have lived in the hut for three days."      (a) We have lived in the hut for three days sometime in the past and are not living anymore.       (b) We have lived in the hut for three days sometime in the past and are still living  today.        (c) We have lived in the hut for three days sometime in the past, are still living  today and will continue to live.   How can I differentiate between these three situations, given a Present-Perfect sentence ?  Thanks.


Can't Resume from Suspend in Ubuntu 14.04 64bit

Hi Everyone first thing is that i got a problem when i suspend the PC, it suspends like a normal PC but when i try to resume that's when i get the problem.... i can't resume, the PC turns ON but in the screen theres no signal only blackscreen here my PC specs.  PC specs: Video Card:AMD Radeon HD 6480M Discrete-Class RAM: DDR3 de 4 GB Microprocessor: 2.5 Ghz VISION A4 Technology from AMD with AMD Dual-Core A4-3310MX Accelerated Processor Display: 35,5 cm (14,0") High-Definition LED HP BrightView Display (1366 x 768) Hard Drive: 500 GB SATA (5400 rpm)  If need more specs, please advise me.   PS: i know, i saw other posts but i was unsure if those methods were going to work in Ubuntu 14.04LTS 64Bit


USB flash drive write protected. Cannot reformat

I accidentally pulled out my USB  flash drive  while formatting. Now when I insert it, a window pops-up saying it needs formatting. But formatting fails because it says that the stick is write protected. I tried using disk part, low level formatting, command prompt using admin. Nothing worked.  Does anybody know another method I could try?


First order logic and first order set theory

(1) I understood that in the language of first order logic quantification cannot be over sets (there are no predicate variables that can be bound by quantifiers), whereas the language of second-order logic extends the language of first-order logic by allowing quantification of predicate symbols and function symbols (where these symbols may be assigned sets as their extensions  ).   (2) I understand that in first order set theory (which uses a first order language) the (first order) variables x,y and z range over sets.  Suppose we have some mathematical theory, T, which concerns some kind of entity. Externally to T, these entities might be able to be understood as sets of sets (but lets suppose that they are not defined as such in the formal theory, T). They would then form the domain of the mathematical theory. Could we, in that case, use FO to quantify over such elements of the domain in this mathematical theory? If so, then it would seem the distinction between FO quantification and SO quantification becomes theory relative in a way which is rather strange. Does this not trivialise the distinction somewhat? While Full SO quantification allows quantification over arbitrary subsets of the domain, certain of those subsets might be elements of the domain of our hypothetical mathematical theory, T, and so in T we might quantify over these elements, treating them as substitutable for FO variables.


Proving the convergence of limit of the integral

Suppose $1<p<\infty$ and $q$ is the conjugate exponent to $p$. Suppose $f_n\to f$ a.e. and $\sup_n||f_n||_p<\infty$. Prove that if $g \in L^q$, then $\lim_{n\to\infty}\int f_ng=\int fg$.  My attempt: Using Holder's inequality, I got $|\int f_ng|\le \int|f_ng| \le ||f_n||_p ||g||_q \le M||g||_q$ for some $M>0$.  However, I stuck here and I have no idea how to proceed. Does the boundedness of integral implies $\lim_{n\to\infty}\int f_ng=\int fg$? If not, what should I do?


My homework is as follows:  Step Two - Create a file called connections.txt with a format like:  Kelp-SeaUrchins Kelp-SmallFishes   Read these names in from a file and split each string into two (org1,org2).  Test your work just through printing for now.  For example:    cout <<  “pair  =  “ << org1 <<  “ , “ << org2 << endl;   I am not sure how to split the string, that is stored in a vector, using the hyphen as the token to split it. I was instructed to either create my own function, something like int ind(vector(string)orgs, string animal) { return index of animal in orgs.} or use the find function.


Script to save lots of shapefiles into different CRS in QGIS

I have a lot of shapefiles that I need to save in a different CRS... is it possible to automate this process with a script in QGIS?


Better to change rim or tyre size to get lower rolling resistance on trekking tyre?

Changed back tyre 700x35c (WTB ALLTERRAINasaurus) to 700x23c (Schwalbe Lugano) and front rim from 18 to 13 inner width (photo below), is it better to change rim or tyre size to get lower rolling resistance ?  One of changes made significant improvement (>20% shorter travel time), but not sure which one.    Pressure around max 500kPa front, 700kPa back (max. >8bars)


How to generate random points on a sphere?

How do I generate $1000$ points $\left(x, y, z\right)$ and make sure they land on a sphere whose center is $\left(0, 0, 0\right)$ and its diameter is $20$ ?.  Simply, how do I manipulate a point's coordinates so that the point lies on the sphere's "surface" ?.


Finite extension of domains : preimage of non-zero ideal is non-zero?

Let $B$ be a commutative domain and $A \subseteq B$ a subring. Suppose that the extension $A \to B$ is finite, i.e. $B$ is finitely generated as an $A$-module. If $I \cap A = \lbrace 0 \rbrace$ for some ideal $I$ of $B$, can we conclude that $I = \lbrace 0 \rbrace$?  I know that if $I$ contains a nonzero prime ideal, the statement holds since $A \to B$ is an integral extension, whereby no two comparable prime ideals of $B$ can have the same intersection with $A$. But does the statement still hold if $I$ does not contain a nonzero prime ideal? And what if $A \to B$ is only assumed to be an integral extension?


What is light in terms of physics? Whenever looking for definition on the internet getting explanation or translation of my language, a common definition/explanation for light was      Light is light. We get it from the Sun, when we flip on the switch, or   turn on the flashlight. We see it! But that explanation doesn't really   explain anything   This was explanation or it just was an example of light. Can anyone define what exactly light is? Is it motion? Is it energy? Or vice versa?


What do __intit__ ,__name__ and __main__ do?

I have seen programs with the dunder method's __init__/__main__. I have no idea what they do, can anyone help me?


On what basis were the characters selected?

Now that Thanos has all the 6 Infinity stones at the end of Avengers: Infinity War, he is the most powerful creature in the universe. When he snapped his fingers during the last scene of the movie Drax, Starlord, Black Panther and many more started disintegrating into dust.   And in the post-credits scene, Nick Fury also died.  On what basis were they "chosen" for destruction?


Show that $(X_1 \mid X_1 + X_2 + \dots + X_k)$ has binomial distribution, where $X_i$ has Poisson distribution $\lambda_i$

If $X_1$, $X_2$, $\dots$, $X_k$ are random variables with Poisson distribution with the following parameters: $\lambda_1$, $\lambda_2$, $\dots$, $\lambda_k$.  Show that $(X_1 \mid X_1 + X_2 + \dots + X_k)$ (conditional probability) has binomial distribution.  If I suppose that $(X_1 \mid X_1 + X_2 + \dots + X_k)$ has binomial distribution and given that the sum $Y = X_1 + X_2 + \dots + X_k $ has Poisson distribuition (with $\sum_i^k \lambda_i$ parameter), I can build the result and the distribution is a Binomial with parameters $(k, \frac{\lambda_1}{\lambda_1 + \lambda_2 + \dots + \lambda_k})$, but looks like I done from the end to beginning. There is a direct method?  I am asking for an explanation, and the similar post did not help me.


If I enter an IP for a website rather than the string form, does my local DNS server understand this and will I bypass the DNS process?

This is purely out of curiosity. But if I were to type in the IP of a website, would the request still go through the forward lookup process? If not, at what point and by which step is it realized that this is the location by IP and not a hostname as a string?   Also, how would this be recorded in my hostfile? If it goes through the entire lookup process, will the hostfile contain the string hostname as well as the IP and populate locally?


Prove that if $A \mathbin{\triangle} C = B \mathbin{\triangle} C$, then $A = B$

I know what I'm supposed to do.  Since $A \mathbin{\triangle} C =  B \mathbin{\triangle} C \Longrightarrow (A-C) \cup (C - A) = (B- C) \cup (C - B)$  Prove $A$ is a subset of $B$:  Let $x$ be an element of A. Prove that $x$ is also an element of $B$ using the hypothesis that $(A-C) \cup (C - A) = (B - C) \cup (C - B)$  Prove $B$ is a subset of $A$:  Let $x$ be an element of $B$. Prove that $x$ is also an element of $A$ using the hypothesis that $(A-C) \cup (C - A) = (B- C) \cup (C - B)$.  But I don't know how to do it. Where should I start? Any suggestion would help.  Thank you very much.


$\mathbb Z^n/\langle (a,...,a) \rangle \cong \mathbb Z^{n-1} \oplus \mathbb Z/\langle a \rangle$

I am trying to show the isomorphism  $$\mathbb Z^n/\langle (a,...,a) \rangle \cong \mathbb Z^{n-1} \oplus \mathbb Z/\langle a \rangle.$$  I've tried to define $\psi:\mathbb Z^n \to \mathbb Z^{n-1} \oplus \mathbb Z/\langle a \rangle$ an epimorphism with $\ker(\psi)=\langle (a,...,a) \rangle$ so to apply the first isomorphism theorem, but I couldn't come up with an appropiate morphism. Any hints or suggestions would be greatly appreciated.


First of all, sorry for bad English...  I got a Problem with the mirror modifier... The origin of my object is set to the 3D-curser, which is in the center (0, 0, 0). When I mirror my object, it duplicates to the other side (as it should) but the position is wrong... Why is that?... (The black line is the line I'm mirroring in)    When you see the objects from the top, It looks like the object is mirrored in a line that isn't even there, as you can see at the photo below, where the yellow line illustrates the unexisting line.    Any ideas what could cause this mistake?


Ubuntu behave sometimes different in Virtualbox client then standalone. I want, in terminal, to detect if Ubuntu is running in Virtualbox client. Even if Virtualbox Guest additions are not installed. Which happens sometimes. Is that possible? If so how?  My search direction was something similar as VBox guest addition. Guest additional does communicate with Virtualbox host. So maybe a signal can be capture. But this direction gets to complicated. I presume there must be a difference between Ubuntu running standalone, and Ubuntu in VM client what can be captured.  title seems to cover the topic, but the content, in my view, not. But I have no idea what and even how to search.


Android: NullPointerException: Attempt to invoke virtual method 'boolean

I am getting the following error:  *E/AndroidRuntime: FATAL EXCEPTION: main      Process: xxx.mxxxa.xxx, PID: 10610     java.lang.NullPointerException: Attempt to invoke virtual method 'boolean    java.lang.String.contains(java.lang.CharSequence)' on a null object reference*    on the following lines:  public void onLoadResource (WebView view, String url) {                  if (datingView.getUrl().contains("messages.php") && datingView.getUrl().contains("messages.php" +                         "")){                     bannerReklam.setVisibility(View.GONE);                 }else if (datingView.getUrl().contains("upgrade.php") && datingView.getUrl().contains("upgrade.php" +                         "")){                     bannerReklam.setVisibility(View.GONE);                 }else if (datingView.getUrl().contains("index.php") && datingView.getUrl().contains("index.php" +                         "")){                     bannerReklam.setVisibility(View.GONE);                 }else if (datingView.getUrl().contains("join.php") && datingView.getUrl().contains("join.php" +                         "") ){                     bannerReklam.setVisibility(View.GONE);                  }else{                      bannerReklam.setVisibility(View.VISIBLE);                 }                  // if url contains string androidexample                 // Then show progress  Dialog                 if (progressDialog == null && url.contains("instasquare")                         ) {                      // in standard case YourActivity.this                     progressDialog = new ProgressDialog(arkadasBulMain.this);                     progressDialog.setMessage("Loading...");                     progressDialog.show();                 }             }   This problem causes the application to stop. This error occurs for versions below android 9.0.


what is the diff between singleton object and base class object

I am working on my app and i confuse in between singleton class     object and object from my base class, both provide that single    instance  use again and again. what is actually difference and     advantage of singleton?      and which approach is best.


Filter by date in Java with startDate and endDate

In database I have eventName: "TestEvent", startDate : ISODate("2018-11-07T13:24:03.124Z"), endDate: ISODate("2020-11-07T13:24:03.124Z")  I am setting two dates fromDate and toDate, for example fromDate:01/01/2020 toDate:01/01/2021  I want to check if the event is within this range I entered. I tried like this but the results are not correct. if ((fromDate.after(s.getStartDate()) && toDate.before(s.getEndDate())) || s.getStartDate().equals(fromDate) || s.getEndDate().equals(toDate))  Please help me, I am using utils.Date in my project. If i use : fromDate:08/08/2017 toDate: 09/09/2022  or fromDate:08/08/2019 toDate: 09/09/2019  it should return this event in this range. If i use : fromDate:01/01/2000 toDate: 01/01/2001  this event should not be in the results


I'am trying to export menu items but the generated yaml files does not contains any reference to this elements. All menu files look like this:  uuid: 12....04 langcode: en status: true dependencies: {  } id: how-works label: 'How it works' description: 'Menu description' locked: false   Is there a way to export/import menu elements?


POSIX compliant way to redirect stdout and stderr to a file

I am trying to write a script which is POSIX compliant, so it can run on any *nix system (Debian, Fedora, CentOS, AIX, Arch... ALL of them). When it comes to redirection, I am rather confused on what is supported by POSIX and what is not.  If I redirect ls -l file missingfile &> out.txt this works perfectly in bash. The line from stderr complaining that missingfile doesn't exist, and the permissions output from file, are both in out.txt. However, I believe this is only working because these shells support more than just POSIX standard operators. Upon researching this question I've come across conflicting answers.  , for example, seems to imply that &>, >&, >>& and &>> are non-standard operations. However,  explicitly states that some-program > some_file 2>&1 is POSIX compliant. Does this mean that the >& operator (using digits for stderr & stdout) is POSIX compliant whereas using &> to auto redirect both stderr and stdout to a file is not POSIX compliant? Or are both &> and >& not POSIX compliant / POSIX compliant (one of these two people are wrong)?  I considered just avoiding the & sign completely and using ls -l file missingfile >out.txt 2>out.txt however this comes with its own issue. Running the ls command this way causes the shell to open two file handles for out.txt, both pointing to offset 0 in the file. So when ls looks for these two files, one of the messages gets clobbered.  What one would expect ls -l file missingfile >out.txt 2>out.txt to output:  -rw-r--r-- 1 blah blah 0 Jun  3 13:18 file ls: cannot access 'missingfile': No such file or directory   What is actually output:  -rw-r--r-- 1 blah blah 0 Jun  3 13:18 file le or directory   What is the best way to redirect both stdout and stderr to a file in a POSIX compliant fashion?


Can i change the default Mac App Store install folder?

I prefer to have all applications installed per-user, to ~/Applications/ rather than globally. The default location for apps installed from the Mac App Store is the global applications folder located at /Applications/.  Is there a defaults write com.apple.AppStore command I can run in the terminal, or perhaps a .plist file I can edit manually, to change this default preference?


Someone has left____ wet towels on the bathroom floor. his or her or their


Stumbled across what appears to be a 15pin serial cable when cleaning out the equipment room today.  I'm familiar with 25 pin and  Any idea what these are commonly used for?