I am creating a summoner and I'm curious about a particular evolution: Trip (bite) (2 points). It states     An Eidolon becomes adept at knocking foes to the ground with its bite, granting it a trip attack. Whenever the Eidolon makes a successful bite attack of the selected type, it can attempt a free combat maneuver check. If successful, the target is knocked prone. If the check fails, the Eidolon is not tripped in return. This ability only works on creatures of a size equal to or smaller than the Eidolon. The Eidolon must possess the bite evolution to select this evolution.   So this is the scenario I envision: The Eidolon successfully bites and trips an opponent, knocking them prone. The opponent can use a move action to regain their feet, but it will provoke an attack of opportunity. The Eidolon can use this attack of opportunity to bite the opponent, and if successful can trip them again, keeping/knocking them prone. Can the Eidolon continue to do this indefinitely, keeping the opponent prone (at least until it fails a combat maneuver check), or is there some limit whether it can do this, or how many times it can do this?

Let's say "John" is a fighter who has selected a number of feats to focus on tripping his enemies, including , and , and wielding a Reach Weapon while under the effect of a potion of Enlarge Person.  Greg is approaching John, and moving from 20ft to 15ft, is tripped by John's AoO, then hammered by Greater Trip.  Greg takes a move action to stand, granting John a second AoO.  Can John use this AoO to trip Greg again, thus keeping him prone?  (Using Greater Trip to provoke an AoO to prevent Heat Death of the Universe. Boredom may still be an unfortunate side effect)


I'm writing a small web app using a SQlite database to store users information. But I cannot figure out why I get a NullPointerException if the password entered is wrong only once the first time.  Here is my method checkPasssword() :  private boolean checkPassword(String password) throws SqlJetException {     boolean valid = false;      File fileDb = new File(DB_FILE);     db = SqlJetDb.open(fileDb, true);      db.beginTransaction(SqlJetTransactionMode.READ_ONLY);     try     {         ISqlJetTable table = db.getTable(USERS_TABLE);         ISqlJetCursor cursor = table.lookup(PASSWORD_FIELD, sha1(password));         if (!cursor.eof())         {             valid = true;         }     }      catch (NoSuchAlgorithmException e)     {         e.printStackTrace();     }      finally      {         if (db != null)         {             db.commit();             db.close();         }     }      return valid; }   At this line :   db.close();   I get a NullPointerException only if the password is wrong the first time even with the if condition before. If the password is correct the first time and wrong a second time it works! It works every time the password is correct.  Here is the StackTrace :  # java.lang.NullPointerException at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.runSynchronized(SqlJetEngine.java:219) at org.tmatesoft.sqljet.core.table.engine.SqlJetEngine.close(SqlJetEngine.java:233) at Login.checkPassword(Login.java:91) at Login.doPost(Login.java:43) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:738) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:551) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:478) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:462) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:279) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) at java.lang.Thread.run(Thread.java:744)   Any idea ???  Edit : I solved it just by moving db.close() outside of the finally block.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


If I were president...   Why don't we have article "a"  before "president"?   Thank you!

Why is there no the before president and captain?     They elected him president.       She was made captain of the team.


I need to calculate the number of weekdays between a StartDate and EndDate. I use the following which works fine but my StartDate needs to be the 'TradeDate' in the table, and not a specific date set for the StartDate. How can I change the 'SET @StartDate' correctly to pick the 'TradeDate' for each record in the table?  Declare @StartDate DATEtime Declare @EndDate DATEtime SET @StartDate = ? ? ? SET @EndDate = GETDATE() SELECT (DATEDIFF(dd, @StartDate, @EndDate) -1) -(DATEDIFF(wk, @StartDate, @EndDate) * 2) -( CASE WHEN DATENAME(dw, @StartDate) = 'Sunday' THEN 1 ELSE 0 END ) -( CASE WHEN DATENAME(dw, @EndDate) = 'Saturday' THEN 1 ELSE 0 END ) as DaysOutstanding, DealTicketReference, PortfolioCode from tbl where StatusId = '1' and Type = '0'

How can I calculate the number of work days between two dates in SQL Server?   Monday to Friday and it must be T-SQL.


I have a problem and I am totally stuck!  I have to show that when the distribution of two random variables $X$ & $Y$ given by $g(x,y)=f(x)f(y)$ is invariant to orthogonal transformations, then it holds that $$f(x)f(y)=f(0)f\left(\sqrt{x^2+y^2}\right).$$   Any ideas on how to approach this? I have found that when the random variables are transformed by an orthogonal matrix like this $\scriptstyle \begin{bmatrix}\tilde{X}\\\tilde{Y}\end{bmatrix}=\begin{bmatrix}a&b\\c&d\end{bmatrix}\times \begin{bmatrix}X\\Y\end{bmatrix}$, then the distribution of $(\tilde{X},\tilde{Y})$ is given by $\tilde{g}(x,y)=f\left(\frac{dx-by}{ad-bc}\right)f\left(\frac{ay-cx}{ad-bc}\right)$, and my thought was that maybe it could be proven that $f\left(\frac{dx-by}{ad-bc}\right)f\left(\frac{ay-cx}{ad-bc}\right)=f(0)f\left(\sqrt{\scriptstyle\left(\frac{dx-by}{ad-bc}\right)^2+\left(\frac{ay-cx}{ad-bc}\right)^2}\right)$, but it doesn't get me anywhere.

We have to stochastic variables X and Y, and we define   $ \begin{pmatrix} \tilde{X} \\ \tilde{Y} \end{pmatrix}=\begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} X \\ Y \end{pmatrix} $  for $a,b,c,d \in \mathbb{R}$, i.e. $\tilde{X}=aX+bY$ and $\tilde{Y}=cX+dY$. We know that both $X$ and Y, and $\tilde{X}$ and $\tilde{Y}$ are uncorrelated, and the distribution of (X,Y) has density $g(x,y)=f(x)f(y)$. Here $f$ is a density with respect to the lebesgue measure for a probability measure on $\mathbb{R}$, and f is continous and strict positive.      Furthermore, we say that the distribution of (X,Y) is invariant to orthogonal matrices $\begin{pmatrix} a & b \\ c & d \end{pmatrix} $ if $(X,Y)$ and $(\tilde{X},\tilde{Y})$, have equal distributions. In general, a matrix O is orthogonal if $OO^T=O^TO=I$, where I is the identity matrix.   Now I have to show that if the distribution of $(X,Y)$ is invariant to orthogonal transformations, then it holds that  $f(x)f(y)=f(0)f(\sqrt{x^2+y^2})$  for alle $x,y \in \mathbb{R}^2$.   Can anyone help me with this problem?


I just installed Ubuntu 18.04 and am running into an issue where I am constantly being asked to enter my login keyring password because "the password you use to login to your computer no longer matches the keyring password".  How do I fix this as I do not know what the default keyring password is.

I am on Ubuntu and I have forgotten the password for my Gnome Keyring (yes, stupid me, I know). Any way I can get it back? I have already looked at , but it says it's not possible if my home directory is encrypted and unfortunately my home directory is encrypted.


Ubuntu 14.04 and iPhone 5s. Connecting iPhone via USB cable mounts the device and I can open it in Ubuntu. Syncing photos with Shotwell works fine. Both Rhythmbox and Banshee also recognize the iPhone and pretend to be able to sync with it. By this I mean they go through the motions of syncing and even claim that the sync is complete yet the music app on the phone remains empty.   When connecting the iPhone to the PC, I get the "Lockdown (-3)" error that has been talked about extensively in other threads and have followed all advice to no avail. Solutions that seem to have worked for versions of iOS <5 (e.g. as suggested in the above duplicate suggestion) no longer work with new versions.   Is there anyone here with the same experience who has managed to get the music sync to work properly?

Is it possible yet to synchronise music to an iPhone running iOS 5/6?  I tried it in the  (Quantal Quetzal) live environment, but I didn't have any luck with  or .  Is there some way to do it?


Rick Riordan has written several series of books based on Greek/Roman/Norse Demigods and Egyptian Magicians. If someone wanted to read them in chronological order, how would that flow?

There are several dozen novels, short stories and other works set in the same world as Rick Riordan's Percy Jackson and the Olympians. Many of them aren't released chronologically in relation to each other. If I was a completely new reader, what would be the best order to read these in?  Novels:   The Lightning Thief The Sea of Monsters The Titan's Curse The Battle of the Labyrinth The Last Olympian The Lost Hero The Son of Neptune The Mark of Athena The House of Hades The Blood of Olympus The Red Pyramid The Throne of Fire The Serpent's Shadow The Sword of Summer The Hammer of Thor (Unreleased) The Hidden Oracle The Dark Prophecy The Burning Maze The Tyrant's Tomb The Tower of Nero (Unreleased)   Short Stories:   The Two Headed Guidance Counselor The Library of Deadly Weapons My Demon Satyr Tea Party My Personal Zombie Apocalypse Percy Jackson and the Stolen Chariot Percy Jackson and the Bronze Dragon Percy Jackson and the Sword of Hades The Diary of Luke Castellan Percy Jackson and the Staff of Hermes Leo Valdez and the Quest for Buford The Son of Magic (Written by Haley Riordan but still canon) The Son of Sobek The Staff of Serapis The Crown of Ptolemy   Graphic Novels:   The Lightning Thief Graphic Novel The Sea of Monsters Graphic Novel  The Titan's Curse Graphic Novel The Lost Hero Graphic Novel  The Red Pyramid Graphic Novel The Throne of Fire Graphic Novel   Other:   Percy Jackson's Greek Gods Percy Jackson's Greek Heroes Demigods and Monsters (A book of real-world essays on the original series with an introduction by Riordan) Percy Jackson and the Olympians: The Ultimate Guide The Kane Chronicles Survival Guide Camp Half-Blood Classified Camp Jupiter Classified (Unreleased)   Let's just ignore the movies and video game.


I am trying to get this to work for a while now and dug around, but so far have found no solution. CASE I have a tree-view in which I can click on an item within that tree-view to load data in a couple of tab-panes. This works fine via AJAX. Other options, like changing data within the input files and automatically saving (using pretty much an onkeyup at the inputs) works fine too, no problem here. One of my tab-panes has a sidebar with a button, in which I want users to assign a profile to this data. The jQuery is as following: $('#profiles').on("click", ".content-container", function(e, data) {       e.preventDefault();          console.log('i got hit in the face');      });  This is in my main.js file. The rest of my 2000 lines work fine, so it isn't the JS file or the opening of jQuery. The .content-container is the static item in which I load my pane controls where, within, the underlying HTML has been placed.

  For the sake of argument, this is the most basic I'll put down the button. You click on a href in that sidebar, and it should simply give me a console.log back. However, every time it refreshes the page since my href is being automatically filled with my standard URL (no # but a reference to localhost), hence the e.preventDefault. When I click on this button it fails to prevent the default action and reloads the page anyway. I thought I did everything right by assigning it to the .on since I know it will be placed later in the code, but apparently it still doesn't see it in my code.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Suppose, for example, we take a particle in polar coordinates $(r, \theta)$ with a central force, so $U = U(r).$ The Lagrangian is $$\mathcal{L} = \dfrac12 m (\dot{r}^2 + (r\dot{\theta})^2) - U(r).$$  The corresponding equation of motion for $r$ is $$m\ddot{r} = m\dot{\theta}^2r - \dfrac{\mathrm{d}U}{\mathrm{d}r}.$$  Using angular momentum conservation, $L = mr^2 \dot{\theta}$ is constant, so we can use it to eliminate $\dot{\theta}$ and obtain $$m\ddot{r} = \dfrac{L^2}{mr^3} - \dfrac{\mathrm{d}U}{\mathrm{d}r}.$$  However, suppose we return to the original statement of the Lagrangian and  eliminate $\dot{\theta}$ there. Then we'd have $$\mathcal{L} = \dfrac12 m\left(\dot{r}^2 + \dfrac{L^2}{m^2r^2}\right) - \dfrac{\mathrm{d}U}{\mathrm{d}r}.$$  Applying the Euler-Lagrange equation $\dfrac{\mathrm{d}}{\mathrm{d}t}\dfrac{\partial \mathcal{L}}{\partial \dot{r}} = \dfrac{\partial \mathcal{L}}{\partial r}$ to the above, $$m\ddot{r} = -\dfrac{L^2}{mr^3}-\dfrac{\mathrm{d}U}{\mathrm{d}r}.$$  This is wrong; we can't eliminate $\dot{\theta}$ in the Lagrangian this way before applying the Euler-Lagrange equations, but why not?

If there is a system, described by an Lagrangian $\mathcal{L}$ of the form   $$\mathcal{L} = T-V = \frac{m}{2}\left(\dot{r}^2+r^2\dot{\phi}^2\right) + \frac{k}{r},\tag{1}$$   where $T$ is the kinetic energy and $V$ the potential energy, it is also possible to define the total energy $E$ of the system   $$ E = T + V =\frac{m}{2}\left(\dot{r}^2+r^2\dot{\phi}^2\right) - \frac{k}{r}.\tag{2}$$  If the angular momentum $M$ is defined by $$ M = m r^{2} \dot{\phi},\tag{3}$$ then $E$ can be written as  $$ E = \frac{m}{2}\dot{r}^2 + \underbrace{\frac{M^2}{2mr^2}-\frac{k}{r}}_{V_\textrm{eff}\left(r\right)},\tag{4}$$  where the last two terms are written as new, "effective" potential $V_\textrm{eff}\left(r\right)$.    In addition, using the definition of $M$, the Lagrangian $\mathcal{L}$ can be written as  $$ \mathcal{L} = \frac{m}{2}\dot{r}^2 + \underbrace{\frac{M^2}{2mr^2}+\frac{k}{r}}_{-V_\textrm{eff}\left(r\right)},\tag{5}$$  where the sign of $V_\textrm{eff}\left(r\right)$ has been changed, since $\mathcal{L} = T-V$. But from this argument, it appears that there are two different possible ways to construct the same effective potential. This seems to me contradictory. Where is my mistake?


I am new to salesforce development and my requirement is perform dynamic search using sosl query. Display product details along with checkbox for product selection. I displayed the search results in visualforce page but unable to add checkbox.  Apex code:      prodlist = New List<Product2>();     searchquery = string.escapeSingleQuotes(keyword);     system.debug('&&&&&&'+searchquery);             if(searchquery != null){     List<List<SObject>>searchList = Search.query('FIND \''+searchquery+ '\' IN NAME FIELDS RETURNING Product2(Name,IsActive,Brand__c,Vendor_Style__c, where IsActive=true)');     system.debug('&&&&&&'+searchList);     prodlist = ((List<Product2>)searchList[0]);   Visualforce code:           <apex:pageBlock id="pageblockId3" title="Product Details" rendered="{!prdselect}" >          <apex:pageBlockTable value="{!prodlist}" var="prod">                         <apex:column value="{!prod.Name}" headerValue="Product Name" />                                     <apex:column value="{!prod.Vendor_Style__c}" headerValue="Vendor Style" />                                  <apex:column value="{!prod.Brand__c}" headerValue="Brand Style" />                  <apex:column value="{!prod.IsActive}" headerValue="Active" />          </apex:pageBlockTable>               <apex:pageBlockButtons >   Any suggestions would be really helpful.

I'm trying to fetch the contact record and showing on page using  its showing error      Unknown property EditContact_controller.wrapperClass.conList   Which thing is unknown.  here is my controller  public class EditContact_controller{     public List<wrapperClass> wrapClassList{get;set;}     public List<contact> conList;     public wrapperClass wc{get;set;}      public EditContact_controller(){         wrapClassList = new List<wrapperClass>();         conList = new List<Contact>();         conList = [SELECT Id, FirstName, LastName FROM Contact LIMIT 10];         For(Contact co : conList){             wc = new wrapperClass();             wc.flag = false;             wc.conWrap = co;             wrapClassList.add(wc);         }     }     public class wrapperClass{         public boolean flag{get;set;}         public Contact conWrap{get;set;}       }     }   Here is my VFPage  <apex:page controller="EditContact_controller" tabStyle="Contact"> <apex:form id="frm">     <apex:pageBlock title="Contact Records">          <apex:repeat value="{!wrapClassList}" var="contactTable" id="cont_Table">             <table>                 <tr>                     <th> Action </th>                 </tr>                  <tr>                     <th> First Name </th>                 </tr>                  <tr>                      <th> Last Name </th>                 </tr>                   <tr>                     <td> <apex:inputCheckbox value="{!contactTable.flag}"/> </td>                 </tr>                  <tr>                     <td> <apex:outputField value="{!contactTable.conList.FirstName}"/> </td>                 </tr>                  <tr>                     <td> <apex:outputField value="{!contactTable.conList.LastName}"/> </td>                 </tr>               </table>                    </apex:repeat>      </apex:pageBlock>  </apex:form>


I just got asked to review an edit on this post:    after it had been deleted. At least, I'm pretty sure I was shown it after the deletion.  Is this intentional, or a bug?  If it's not a bug - shouldn't the reviewer be told the post is deleted?  (Perhaps I should mention the edit was the addition of a tag, not some grand rewrite.)

In some cases, questions and answers that have been deleted are still showing up on /review pages. They do not have "Improve" buttons, but they can still be approved or rejected. I'm not sure what causes a post to end up in this limbo state instead of being removed from the queue entirely, which I think is what's supposed to happen.  The suggested edit I noticed this on was , but it just leads to a "Page Not Found" message now.  Tim Stone provided the following screenshot of another instance :


I have an ISO file on a Linux machine for which I don't have root access. I am looking for some command or software that would allow me to extract all the files on the ISO without the need for root. Any ideas?

I have a large ISO file on a server, and I need to access the file in it, without having root access. Thus, I can't simply mount it. What should I do to be able to extract an ISO on LInux without root access?


Suppose there is an equation $a^2 - b^2 = X$ how many pairs of $(a,b)$ exist to find $X$, when $a,b$ and $X$ are positive integers. It would be great if you could direct to proof although not necessary. An example: $a = 13, b = 11 X = 48$. 13^2 - 11^2 = 48  how many more $(a,b)$ pairs exist for 48? How to find out/them ? I am not a Maths student although i see that this is a variant of a 'diophantine equation'?

Inspired by this Hagon Von Eitzen's answer( ) I started investigating how I could express natural numbers as differences of squares. Using the method explained in the solution, I investigated natural numbers up to $60$ manually. I observed the following:  There is no way to express numbers of the form $4k+2$ as a difference of two squares.  2.There is one and only one way to express prime numbers (except $2$) as a difference of two squares.  The smallest number that can be expressed as a difference of two squares in two different ways is $15$ and the smallest number that can be expressed as a difference of two squares in three different ways is $45$.  As, $15= 8^2-7^2=4^2-1^2$. $45=23^2-22^2=9^2-6^2=7^2-2^2$. I could prove point $2$ easily but could not prove point $1$. Also I am interested in knowing how I could find the smallest natural number that could be expressed as a difference of two squares in four different ways without manual calculation.


I will begin to teach calculus and topology in a college and I would like to know if there are some books or sites which teach us to draw 3D pictures as torus, möbius band, etc.  I saw some mathematicians which can draw difficult pictures by hand on blackboard as möbius band very well. I thought maybe they learn from somewhere.  Thanks

My drawing skills are pretty awful, and although I haven't yet had to teach multivariable calculus, someday I will.  (And next semester in calculus II we're already doing some volumes by integrating cross sections, volumes and surface areas of rotation, etc).  Is there a guide somewhere on how to draw standard 3D "math shapes" (sphere, torus, paraboloid of revolution, intersection of a cube with a plane through a given selection of three vertices, hyperboloid of two sheets, Möbius band, helix...)?  I can sort of do a cube by drawing a square partially in front of another square, with some of the edges dotted, and connecting the corresponding vertices.  That's about as far as it goes at present.  If there isn't such a guide specifically for math, I suppose I could (with much trepidation) look for more general books on drawing techniques...any ideas for a geodesic to get to math drawing?


I have read this question:     I do understand that here on Earth lightning consists of electrons moving in space and some of these electrons are tracing path, and eventually lightning will move in the direction of least resistance.  Now the reason why some electrons need to trace the path is because there is atmosphere here and the electrons moving interact with air, and the actual lightning is where the electrons find the path of least resistance through the air molecules.  Now in space, there is no air, there is no resistance from air. I do understand that even vacuum is not empty and there is permettivity and permeability of space (meaning in some sense some resistance), but still, there is no air and electrons can practically move freely in vacuum.  Now if there is no resistance from the air molecules, and the electrons do not interact with anything (matter or other particles) in space, then they could just go in a perfectly straight path, because there is no need for tracing the path of least resistance.  Question:   Since there is no air, there is no resistance, and the path of least resistance should be a straight line?

Can lightning occur in space artificially?  Can lightning channel along a laser or proton beam in space?


When I start my iMac I get the apple logo and the swirling gear then it freezes in this position. I have tried    Command-R during startup---it can't find recovery partition Press Shift during startup - nothing happens Press D during startup It cannot find a "bootable cache"   I have "heard" that Ubuntu can be used to at least start the Mac and maybe it will load programs from the mac to correct my startup problem  I need to know which version of Ubuntu I should use for a bootable DVD or USB stick and what kind of format does Ubuntu have to be in…. Ie. Iso, or what.

At that location there is an ISO image which is described as "This image is adjusted to work properly on Mac systems."  What specific problems on the Mac does this image address that the standard images don't? I ask because I need to know which ISO to recommend to Apple Mac users.


I have labels with for="#input_id" tag as illustrated below. However, multiple labels trigger the same input field (with id) to attach a user selected file. I want to now which label triggered the input field.  Document1 Document2 Document3 Document4  <input type="file" id="input1" accept="application/pdf" />  $("#input1").change(function() { //some js for checking file type and file size etc //looking for some code to findout which label clicked to trigger file input   });   When i click labels it triggers input field however i need to know which label clicked to save file path to suitable div by using data-fpath="some path".  I use jquery however any javascript solution is OK for me.

Is there any way to get the ID of the element that fires an event?  I'm thinking something like:    $(document).ready(function() {   $("a").click(function() {     var test = caller.id;     alert(test.val());   }); }); <script type="text/javascript" src="starterkit/jquery.js"></script>  <form class="item" id="aaa">   <input class="title"></input> </form> <form class="item" id="bbb">   <input class="title"></input> </form>     Except of course that the var test should contain the id "aaa", if the event is fired from the first form, and "bbb", if the event is fired from the second form.


Is there a word for implying something that is actually false to be true, without specifically stating it to be true or false?  As an example (can’t really think of anything better):     persons A and B on the phone:      (A) Are you ready, I’m near your house.         (B) (While still in bed) What do  you think, I’ll see you in 10.         (A) Alright, Just checking, I’ll see  you in 10 then.         (B) (Frantically tries to get ready).   Edit: I’m gonna anwser my own question here in case someone finds this post, but I think the anwser I was looking for is:  equivocate; “use ambiguous language so as to conceal the truth or avoid committing oneself.”

I want to write about the Chinese Government during the Cultural Revolution and argue that whilst they created the appearance of more political openness, it was merely a façade.  Is there a word that expresses the inauthenticity of their actions? Like the 'falseness' of their policies but referring specifically to the fact that they pretend to be something they're not and that they hide something more sinister.


I have trouble to comprehend what my mistake is in the following calculation:  If we set $\sqrt{-1}$ to be the new number with the property that $(\sqrt{-1})^2 = -1$ then I can write $$\frac{1}{\sqrt{-1}}=\sqrt{\frac{1}{-1}}=\sqrt{-1}.$$  But we also have (and I know this is the correct result) $$ \frac{1}{\sqrt{-1}}\cdot\frac{\sqrt{-1}}{\sqrt{-1}}=\frac{\sqrt{-1}}{-1}=-\sqrt{-1}$$  What am I missing? Thanks.

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


Let $\mathbb{CP}^{n}$ be the set of all complex lines containing origin in $\mathbb{C}^{n+1}$ and $\mathbb{CP}^{n}$ has the quotient topology inherited from the natural projection $\mathbb{C}^{n+1}-\{0\}$ → $\mathbb{CP}^{n}$. How can I show that $\mathbb{CP}^{2}$ is homeomorphic to the orbit space $ ( S^2 \times S^2)/\mathbb{Z}_2$ where $\mathbb{Z}_2$ acts on $ S^2 \times S^2$ defined by $(x,y) \rightarrow (y,x)$, This question was asked in my differential geometry exam and I had no idea about it.

Show that $\mathbb{CP}^2$ is homeomorphic to the orbit space of $(S^2\times S^2)/\mathbb{Z}_2$. The action is given by $(x,y) \mapsto (y,x)$. My attempt: I can see that $S^2\times S^2$ is a subset of $S^5$. I am unsuccessfully trying to restrict the action of $S^1$ on $S^5$ to $S^2\times S^2$ to get the required map.


I'd like to know if there is such a thing as a Star Trek corpus somewhere online. Has one ever been compiled?   By corpus I include the following:    The series episodes script.  The movies script    as text whatever the format (I can extract it).

Through the years I have purchased a few Star Trek scripts. I even have a DS9 script a buddy of mine mistakenly took off set and dazzled me with at Christmas years ago. As neat as those are to own, they are impossible to search. Is there a place on the internet where the Star Trek show or movie scripts can be obtained in digital format?  (Sometimes I remember a quote and would love to find it. From time to time the internet delivers. Occasionally it does not. I want to have a resource to find quotes as I think of them.)


We recently bought our domain. It turns out, two generations ago, it was a porn site.  Now we're still blocked in some filters, resulting in blocked pages at several corporate routers.  I'm now sending mails out to some of those filters, but is there a general way of whitelisting?

I have a friend who purchased a domain name recently that he found out (after buying it) is apparently blocked by many corporate firewalls or proxies b/c it's been tagged as porn by the blacklist db they're using.    Are there any common agencies he can appeal to in order to get the domain name off the black lists?  It's not just one corporation, either, he's looking at marketing a subscription-based service to a certain industry, so any contacting a particular firewall/proxy admin and have them manually update the blacklist won't scale well.  Thanks in advance. Paul


I have win 7 and installed Ubuntu 18.04.  It went well and I used it for most of the day.  Then I rebooted and chose win7.  It did come up but it couldn't access anything.  Like the explorer would not come up and it couldn't run any programs. I re-installed it and now it comes up but Ubuntu doesn't. So, I thought I'd go through the Ubuntu install and see if there was an option to "fix", but all it comes up with is to remove that and re-install over it. Isn't there some way to do this without a complete re-install?  (I was so proud to have gotten my Thunderbird contents moved to Ubuntu, I'd hate to have to do that again). Thanks

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


Is there any different in performance between the following:  (1) Two statements  INSERT IGNORE... UPDATE...   (2) One statement  INSERT INTO...ON DUPLICATE KEY UPDATE   Note that while this question  asks about the difference between INSERT IGNORE and INSERT...ON DUPLICATE KEY UPDATE I'm more concerned about which of the above two patters (using one statement, or two) would perform better.

While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise cause failure. After some research, my options appear to be the use of either:  ON DUPLICATE KEY UPDATE which implies an unnecessary update at some cost, or INSERT IGNORE implies an invitation for other kinds of failure to slip in unannounced.  Am I right in these assumptions? What's the best way to simply skip the rows that might cause duplicates and just continue on to the other rows?


I am creating a workflow that sends an email to internal & external users. Since, in sharepoint Online, workflows are not allowed to send emails to external users. It is not the case in "workflow 2010", so I created a "workflow 2010" and attached it to the site collection through "Sharepoint Designer 2013".    Now here is my SendEmail workflow, is there a way I could start this workflow from my Sharepoint Addin (Office 365) i.e JavaScript solution  Thanks

I am trying to start share-point workflow using CSOM(Client side object model) by following means of code. But i got the following error from the line mark in comment. Please help me to figure out this error.     Error :- Cannot invoke method or retrieve property from null   object. Object returned by the following call stack is null.   "GetWorkflowDeploymentService new   Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager() "    public bool StartWorkFlow()  {     string workflowName = "UpdateDealStatus";     // connect to the workflow services via a CSOM client context    var workflowServicesManager = new WorkflowServicesManager(_sharepoint,                  _sharepoint.Web);    // connect to the deployment service    var workflowDeploymentService = workflowServicesManager.GetWorkflowDeploymentService();    // get all installed workflows   var publishedWorkflowDefinitions =    workflowDeploymentService.EnumerateDefinitions(true);             _sharepoint.Load(publishedWorkflowDefinitions);     try    {       _sharepoint.ExecuteQuery();//Error thrown from this line    }    catch (Exception ex)    {      }     // find the first workflow definition    var firstWorkflowDefinition = publishedWorkflowDefinitions.First();     // connect to the subscription service    var workflowSubscriptionService = workflowServicesManager.GetWorkflowSubscriptionService();     // get all workflow associations    var workflowAssociations = workflowSubscriptionService.EnumerateSubscriptionsByDefinition(firstWorkflowDefinition.Id);     _sharepoint.Load(workflowAssociations);    _sharepoint.ExecuteQuery();     foreach (var association in workflowAssociations)    {        Console.WriteLine("{0} - {1}",        association.Id, association.Name);    }     return true; }


I am trying to run aws create lambda function. It goes as follows -  eval $(aws lambda create-function \ --function-name $FUNCTION_NAME \ --runtime $RUNTIME \ --role $ROLE \ --handler $HANDLER \ --region $REGION \ --zip-file $ZIP_FILE \ --profile $PROFILE \ --environment $env_variables)   All the variables come from command line. It is failing for env_variables. This gets constructed as -  env_variables="Variables={INPUT=${DAYS}}"   where DAYS is actually "20 days"  How can I avoid this space and pass my command successfully.

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


By default, Trello adds the newest attachment to the top of a stack. Short of deleting all attachments on a card and re-adding them in the order I require, is there any other way to sort them?

Is there any way to organize attachments in cards? I got a lot of attachments in my project cards and I would like to organize them in some kind of folder or groups.


I want to decrease attack surface by preventing the plaintext string or encryption key from ever being typed or otherwise entered into a computer. Ideally the decryption key would be something that the user can generate and store in their head. But encryption should still be as strong as possible. I don't need to be able to decrypt without a computer, though that would be cool.

Some ciphers are talked about at , but (at the time of writing) I don't see an answer.   Are they strong enough, or are non-computer ciphers more or less just a toy and one should abandon using them for practical purposes?


I have to prove that if $f:\mathbb R\to \mathbb N$ is continuous, then it's constant. Th result looks intuitive, but I can't prove it. I try by contradiction : suppose there is $x,y\in\mathbb R$ s.t. $f(x)\neq f(y)$. So in somehow $|f(x)-f(y)|\geq 1$, and thus, using the $\varepsilon -\delta $ definition with $\varepsilon <1$ I tried to get a contradiction, but since there is no reason to have $|x-y|\leq \delta $, I couldn't find a way to write it properly. Can someone give hint ?

I'm stuck on a question which asks to prove that any continuous integer-valued function of a real variable is constant. In my lecture notes we are told that a map is continuous if the preimage of any open set is open.  How do I use this to answer the question? A full answer would be greatly appreciated as I can't seem to figure out how to solve it in my  notes, in analysis books or anywhere online.


I can't get the flash to fire with flash triggers on.  Can anyone help?   Body: Nikon D7000  Flash: Yongnuo YN-565EX  Trigger: Yongnuo RF-603II wireless flash trigger

I have a Yongnuo YN-560 III and a pair of RF-603II (C3) triggers. I have a Canon Rebel T5i.   I put one trigger on the hot shoe.  When this trigger is in TX mode I get a blue comm light and I can fire a test flash using the large test button on the trigger. But when I press the shutter button to take a picture, there's no flash.  The trigger and flash are on Channel 1. The trigger on the hot shoe is set to TRX. TX is fine, TRX gives me no flash. The flash and camera are in M mode.  I don't have a trigger on the flash because the Mark III has a built-in trigger The problem seems to be the camera.  The trigger can talk to the flash but the camera is not sending a flash command through the trigger in the hot shoe to the flash.  Grateful for anything you could suggest.


Using ArcPy I'm Trying to Set up a Where Clause in my "FeatureClassToFeatureClass_conversion"  This {Where Clause} needs to Query Two Columns in the data:  FEATURE = 'ENVIRONMENT'  and   TEMPERATURE > 50   I'm having a hard time doing both queries in the same expression as you would using "AND"     "\"FEATURE\" = 'ENVIRONMENT'" ?AND?  "\"TEMPERATURE\" > 50"

I am trying to create a query for the select by attribute function within a Python script.This is my current code.      lot = '96'     dp = 756421      lotFile = "D:\\NCT_GIS\\DATA\\Regional_55.gdb\\Murray\\cadastre"     arcpy.MakeFeatureLayer_management(lotFile, "lot_lyr")      arcpy.SelectLayerByAttribute_management("lot_lyr", "NEW_SELECTION", "\"LOTNUMBER\" = " + lot + " AND " + "\"PLANNUMBER\" = " + str(dp))   Unfortunately I cannot concatenate and integer and if I convert DP to a string then the query is invalid as the PLANNUMBER field is numeric whilst LOTNUMBER is text.  Does anyone know how to get the variables into the query properly so that I can input any lot and dp as this will eventually become an addin where users can specify which land parcel they are interested in.


I need help with a script that deletes all but the newest -img directories.  Contents of /media/andy/MAXTOR_SDB2/  01-16-18-img   2018-01-26-11-img   Clonezilla_Images   Family_Movies_AND_PICS   lost+found   MAXTOR_SDB2   sdb2_listing.txt   SDB2_Mountpoint

I have a folder containing a lot of folders and different files with the following structures :  NASA │ ├── a │   ├── doc1 │   ├── doc2 │   ├── doc3 │   ├── folder1 │   └── folder2 │ ├── b │   ├── doc1 │   ├── doc2 │   ├── doc3 │   ├── folder1 │   └── folder2 │ ├── c │   ├── doc1 │   ├── doc2 │   ├── doc3 │   ├── folder1 │   └── folder2 │ ├─ x ├─ y └─ z          I want to delete the content of the folder (NASA/) except specified folders and files.   For example I want to keep a folder, b folder and x file.     I tried   :   rm !(a/) -r NASA/   And (as explained in the answer ):  find NASA/ -type f ! -iname "x" -delete   But this is not very straight forward and I have to use a bash script.    Am I missing a more easy way ? How can I do this in a single command?


I have been troubled by the biblatex package for a few days in TexWorks. I follow the instructions from the internet in many ways,but things don't make sense to me.  This is my code   \documentclass{article}  \usepackage[backend=biber]{biblatex} \addbibresource{reference.bib}  \begin{document} It didn't make sense\cite{gbms}  \printbibliography \end{document}   and this is my reference.bib   % This file was created with JabRef 2.10. % Encoding: GBK   @Article{gbms,   Title                    = {{Generalized Born Model Based on a Surface Integral Formulation}},   Author                   = {Avijit Ghosh, Chaya Sendrovic Rapp, and Richard A. Friesner},   Journal                  = {J.Phys.Chem.B},   Year                     = {1998},   Pages                    = {10893-10990},   Volume                   = {102} }   First I use the pdfLaTeX, things work well and give me the pdf without giving the bibliography   Then I use the biber command the console give me this:  INFO - This is Biber 2.2 INFO - Logfile is 'parameters.tex.blg' ERROR - Cannot find control file 'parameters.tex.bcf'! - did you pass the "backend=biber" option to BibLaTeX? INFO - ERRORS: 1   I don't know why it happen?  I also tried the backend=bibtex, the program seems to interrupt and give that ! Undefined control sequence. So, anyone knows this kind of problem?

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


This is the question:   I am still struggling with this and here is my answer so far:    I found some difficulties to get the a3. Can you check my implementation? then, how do I actually get the expression for my finding?

There are two one-letter words in English (“I” and “a”), and according to  there are 122 two-letter words. Let $A_n$ be the number of strings of n letters that may be formed from some sequence of one- and two-letter words, by concatenating them all together.  Find $a_3$  Give an expression for an in terms of $a_{n-1}$ and $a_{n-2}$, that works for all n ≥ 3.  So far a1 makes sense to just be "I" and "a" so a total of 2. a2 would be the 122 two letter strings plus a combination of adding the one letter words (i and a) giving ai, ia, ii and aa.  This would give a total of 126 for $a_2$.  doing the combinations for $a_3$ gives 495 but that doesn't seem right as there is no evident patter to use the formula $a_n=a_1r^{n-1}$.


I have done  sudo usermod -a -G wireshark user   And then I have rebooted the system (kubuntu). Now, when entering the password for the GUI, kubuntu crashes and returns to the login screen. However, I can login from the console.   How can I undo this command?

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


I'm simply trying to get my array to print correctly. This is what I have so far.  public class Driver {     public static void main(String[] args)     {         //create new instance of the ArrayLab class with parameter of 10         ArrayClass array = new ArrayLab(10);          array.initialize(); }     I do realize that I have a parameter for my class, the problem remains the same whether or not I have just a simple instance variable with the class parameter inside of the java array field.    public class ArrayClass {     //array instance variable     private int[] array = new int[]{0,0,0,0,0,0,0,0,0,0};      //array constructor     public ArrayClass(int integer)     {         //array parameter field [0,1,2,3,4,5,6,7,8,9] 10 in total.         int[] temp = {1,2,3,4,5,6,7,8,9,10};         array = temp;      }      public void initialize()     {          System.out.println(array);      } }   It all compiles, but the problem I'm having is when it prints the output is comes up as something like this [I@1443957. What does that imply?

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I clicked on a link and was taken to , which troubled me a bit and is a bit different from what I expect of the Motley Fool, of which people have presented as offering advice like "Live below your means." The video, masterfully presented to be grabbing and engaging, offers a free lunch by revealing the revolutionary new secret sauce technology powering possibly the next Apple Watch and some of its competitors, and while it makes no direct claim (at least in the portion before I closed it down) about what your ROI will be for following this stock tip, it keeps telling how it is riding on the coattails of perceptive investment decisions that have returned a hundredfold.  I looked and did not notice any statements that this was a paid advertisement and did not represent Motley Fool.  Has Motley Fool jumped the shark, or is this something separate from what I understand to be a good source of financial advice? (Is this a classy pump-and-dump?)

A while back I checked out  while doing some research on mutual funds. I found their educational content to be a great overview of what to look for and started exploring. While The Motley Fool has a lot of great content, I'm not entirely comfortable with their incessant up-selling.   They always so eager to tell me about some "insiders" stock of the day that they are sure is just about to explode tomorrow if only I will give them some of my valuable personal information. Is this a scam? Are they just using their legacy educational content to bait people into their premium services? Are their premium services even any good? The Motley Fool once had a fair amount of Internet street cred.  Are The Motley Fool's stock picks and services worth giving any mind share to or are they just another Jim Cramer loudly shouting ticker symbols to sell advertisements?


Let $G$ be a non-abelian group of order $2p$ for a prime $p>2$.  As a small part of an exercise I am trying to show that if we take $A, B \leq G$ s.t $|A|=p, |B|=2$ (existence guranteed by Sylow) then $AB=G$. but I'm having trouble showing that. I thought about looking at $B \curvearrowright G/A$ by left multiplication, if we could show it is transitive that is enough I think.

I'm looking for a simple proof that up to isomorphism every group of order 2p (p prime) is either $\mathbb{Z}_{2p}$ or $D_{p}$ (The Dihedral group of order 2p).  I should note that by simple I mean short and elegant and not necessarily elementary. So feel free to use tools like Sylow Theorems, Cauchy Theorem and similar stuff.  Thanks a lot!


For example, if we have:   $$\sum_{n=1}^{\infty}a_n$$  Where the ratio test is satisfied. That is $\exists L$ s.t.  $$\lim_{n \to \infty} \left| \frac{a_{n+1}}{a_n} \right| = L < 1$$  Does this mean that for the same $L$ that the root test's terms converge as well? That is, is it true that:  $$\lim_{n \to \infty} \left| a_n^{1/n} \right| = L$$  This is for a homework problem, but the homework is not to prove the general case; I was just wondering if this was true or not.

This may have been asked before, however I was unable to find any duplicate. This comes from  of "Mathematical Analysis: An Introduction" by Browder. Problem 14:     If $(a_n)$ is a sequence in $\mathbb R$ and $a_n > 0$ for every $n$. Then show:   $$ \liminf(a_{n+1}/a_n) \le \liminf((a_n)^{(1/n)}) \le \limsup((a_n)^{(1/n)}) \le \limsup(a_{n+1}/a_n)$$   The middle inequality is clear. However I am having a hard time showing the ones on the left and right. (It seems like the approach should be similar for each). This is homework, so it'd be great if someone could give me a hint to get started on at least one of the inequalities.  Thanks.


The first image, the material properties shows in one way.     On the second image, the material properties, is displayed in a different way   Why is it different?  could you tell me why this happens to me? thank you, regards

Complete beginner here.  I'm trying to follow  tutorial on Anisotropic shaders, but my property panel looks nothing like the property panel in the tutorial.  For example, when creating a material, this is what his property panel looks like:    But this is what mine looks like, if I follow the same path:    I'm sure I'm missing something obvious.  How can I see the property panel shown in the tutorial?


I am a nontraditional applicant for MD or MD/PhD programs and wanted to ask questions about my application here.  I spent six years at another MD/PhD program. I have various publications at the top journals (Cell, Science, Nature). I had a mental health crisis that resulted in some abnormal behavior. It led to me withdrawing from that MD/PhD program, but I have spent two years recovering.  I maintain a strong interest in academic medicine and I am ready to take another go at it.  How might my application be processed differently? How successful could an applicant like myself be? Do you have advice on how I can present myself in the best manner?  Thanks very much for your time.

I committed plagiarism at the end of my PhD. My psychiatrist found that the plagiarism is related to a psychiatric disorder (mental health problem). I have published many papers in top journals and this behavior was clearly out of character.  I was asked to voluntarily withdraw from my PhD program. However, I have a psychiatric explanation, and I have a psychiatrist who can vouch that my mental health issues have been resolved and there should be no further incidents in the future.  After taking time off to get treated and to recover, now I am considering applying to PhD programs again.   However, I am facing a question from most universities that I am applying to. Is there any hope for a student who committed misconduct that is related to a disability?  I am nervous about this application. Can anyone help me figure out how to deal with this issue in a proper way?


Since I came to Ubuntu I have been facing a problem with full screen videos in Firefox. It looks like the display is synchronized with my graphics card. The strangest is that out of full screen the problem does not occur. (I have an Nvidia 1050 GPU, if it helps)   Thank you for any help.

I just upgrade from Ubuntu 17.10 to Ubuntu 18.04, there is an issue when playing youtube video.The video stops play but audio playing, then I move the cursor & video is playing...... What should I do??


Let $f(x):R\to C$ be a function from real number to complex value. And let we use the defination that if $f(x)=g(x)+i\cdot h(x)$, then $\int_{[a,b]}f(x)dx := \int_{[a,b]}g(x)dx + i\cdot\int_{[a,b]}h(x)dx$. How can I prove the inequality:  $$\left\lvert \int_{[a,b]}f(x)dx\right\rvert \le \int_{[a,b]}\left\lvert f(x)\right\rvert dx$$

This is a step in a lecture note I'm reading. It should be simple because the author considers it obvious but I can't see it. What am I missing?  Suppose $U$ and $V$ are integrable over measure space $(\Omega,\mathcal{F},\mu)$. Claim: $$ \int_\Omega\sqrt{U^2+V^2}d\mu\geq\sqrt{\left(\int_\Omega Ud\mu\right)^2+\left(\int_\Omega Vd\mu\right)^2}. $$ Alternative phrasing: with $Z=U+iV$, claim that  $$ \int_\Omega|Z|d\mu\geq\left|\int_\Omega Zd\mu\right|. $$ Thank you for your time!


I'm a soon published author going through my final edit of the book and I got stuck thinking about this one. I understand that when writing this you should type in "There are". When people are saying this though, they usually say it quickly contracting it to "There're". Here's the question: When I am writing what someone is saying, could I spell it as "There're", or will I have to type the correct way of "There are" while risking losing a certain "way of speaking" to the sentence?  I know some of the sentences above may have a slightly strange way of being put forth, but English is not my native language and it's getting late here. I hope you understood my question.

Q: "Do you have any juice?"   A: "Yes, there's some in the fridge."   Sounds perfectly fine to me, but:     Q: "Do you have any towels?"   A: "Yes, there's some in the closet."   Does not.  I asked for towels - plural - so wouldn't "Yes, there're some in the closet," in which there are is turned into a contraction be the correct way to say it?  Spellcheck, however, doesn't like "there're", and I think I'm the only person I've ever heard use the word "there're".  Even folks who I know say "there are" shorten it to "there's" when possible.  Am I saying it wrong, or are both forms acceptable?


We have a 6 month old little boy.  His baby mattress has a side that's firm (for infants) and a side that is soft (for toddlers.)  He's about 19 lbs (last time weighed) and I am wondering when should I flip his mattress over.  But more generally, for future reference, when does child stop being an infant and becomes a toddler?  [edit]  The reason why I asked this is that I want to know the transition period from when a child stops being an infant and becomes a toddler.  I figured that a toddler stops being a toddler around 3 - 4 years and my kid is nowhere near there.

I just  that a baby becomes a toddler when it starts moving around. The question which came back was "what age does a toddler stop being a toddler?".  That got me searching, and I found at least one reference that said "Toddlers are babies from one year to four years of age".  I'd never consider a four-year-old as a baby. Is this just me, or a geographical difference?


I have a folowing question:  $\mathbb{R}^3$ \ $\mathbb{Q}^3$ is a union of disjoint lines. This exercise is in the book: Set theory for the working mathematician of Krzysztof Ciesielski.  Any can give help me in how make a selection of the disjoint lines?  Thanks.

I have the following question:  $\mathbb R^3\setminus \mathbb Q^3$ is a union of disjoint lines. This exercise is in the book: Set theory for the working mathematician of Krzysztof Ciesielski.  someone can give me a help on how to proceed?


I want to provide proof for the following equation:  $$\sum_{r=0}^n(-1)^{n-r}\binom{n}{r}r^n = n!$$  I think it resembles the typical way of representing the Principle of Exclusion & Inclusion:  $$\sum_{\emptyset \ne J \in [n]}(-1)^{\mid J\mid-1}\mid\cap_{j\in J}Z_j\mid$$  However, still vague to let $Z_j$ to be which set to connect two different representations.  any advice or pinch of hints?

If $l$ and $n$ are any positive integers, is there a  proof of the identity     $$\sum_{k=0}^{n}(-1)^{k}\binom{n}{k}(l-k)^n=n!\;$$   which uses the Inclusion-Exclusion Principle?  (If necessary, restrict to the case where $l\ge n$.)    This question is closely related to   and also


I'm attempting to install Ubuntu (I've tried 16.04, 17.10 and 18.04 daily build). Each time I encounter an error when the image is booting, something along the lines of TSC_DEADLINE error, update microcode. I've read some people have had success with updating their motherboard bios but this didn't help me, unfortunately. Other solutions appear to be related to those who already have Ubuntu installed.  Is there a way to alter the iso with the new microcode before installation?  Thanks for any help.

I would like to know how can I customize the Ubuntu installer NOT customize Ubuntu, I just want to modify the installer.  We have a large environment here with lots of developers and since we don't use Windows, I want to customize the installer to automatically set the timezone to NYC, the keyboard layout to English USA, put the company logo in the installer etc...


In the current monthly Reputation Leagues, one user has more monthly reputation than total. Could this be a counting error or is this an issue because an inconsistency in caching or the methods of calculating reputation?

When I went to the  to see my ranking in the reputation league, I saw this. Is this an error? My total reputation is less than my monthly reputation.


I have been rendering in cycles forever and haven't knowingly changed any output settings for this specific piece but I can't figure out why my HDRI disappears when I try to render the image? It's rendering any other kind of lighting (I have a couple of point lights in the scene) but the HDRI won't show. I can see it in my viewport. Any help would be amazing since I have to meet a deadline with this piece.

I'm trying to make a test render of my model. But everytime I render it the render looks completely different from the viewport. The viewport is in render mode so it should look something like that, but this doesn't come even close.   I'm using cycles renderer. And my world note is just the standard one so nothing installed there.  There are 2 sun's in the scene both set to 0.5.  I've tried different hdris but they all have the exact same outcome. I've pressed alt+h to see if there was anything hiddden in my scene that blocked the background and nothing shows up so I don't think that's the problem. I've also copied it to a new Blend file to see if there was anything wrong with the file itself but it also happens there so it must be something in my settings I guess. But I just can't find out which one    this is how it looks in the viewport render.    And this is how it looks when I render it.  I really don't know how to fix this so I hope someone can help me here


E.g. .  According to  :   PC2 - DDR2 6400 - theoretical bandwidth in MB/s, corresponds to base frequency (6400 corresponds to DDR2-400) S - SO-DIMM   What are the others? 666-12 looks like timings, E looks like speed class from the same table @Wikipedia (corresponds to part of the timings), what is 3 and 2Rx8, I've no idea.  (The reason for asking is to find out which of these letters and numbers must match for the modules to be able to run in Dual Channel mode w/o slowing each other down. I still wish to know the meaning of the description though.)  EDIT: I've looked though the suggested duplicates, namely: , , ,  - and none explains this particular designation.

I’m attempting to replace faulty RAM and I am trying to understand the meanings of the label to make correct decision.  I have a 2GB stick of SAMSUNG  RAM which appears to have gone bad.   The top line reads:  2GB 1Rx8 PC3-10600U-9-10-A0   The part number reads:   M378B5773CH0-CH9 1051   Doing a number of searches, I ended up  which lists the manufacturers part number as:  M378B5773CH0-CH9 1110   Notice there is a difference my stick has 1051 but that website lists it as 1110.  What is the meaning of the part number, and the last 4 digits?  Is there a significant difference between the 1051 and 1110 that affect the machine?


ASUS X540SA, Ubuntu 16.04.1 LTS, Kernal 4.4.0-36-generic  The touchpad seems to be detected as a mouse instead of a touchpad. The touchpad is recognized as a "pointer" rather than a touchpad. It has the basic usability of a mouse, with no ability to use multiple fingers or touch scrolling. Along with this, the mouse moves whenever I try to click with my thumb, due to the touchpad registering my thumb as a mouse movement as well. It is extremely difficult to right click because of this as well.  laptop@laptop-X540SA:~$ xinput ⎡ Virtual core pointer                          id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ FTE1001:00 0B05:0101                      id=10   [slave  pointer  (2)]   The touchpad is detected as FTE1001:00 0B05:0101 and there is no "touchpad" setting in my mouse preferences either.  Shown here:    Is this a problem with the kernel or can I fix this manually?

I have an ASUS E402S laptop with Ubuntu 64-bit 16.04 LTS installed. The main problem is that the OS does recognize the touchpad with basic functions, but additional options such as scrolling through pages or between open applications are non-existent.  This is what my xinput result is showing:  ⎡ Virtual core pointer                      id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ Logitech USB Receiver                     id=9    [slave  pointer  (2)] ⎜   ↳ Logitech USB Receiver                     id=10   [slave  pointer  (2)] ⎜   ↳ FTE1000:00 0B05:0101                      id=12   [slave  pointer  (2)] ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]     ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]     ↳ Power Button                              id=6    [slave  keyboard (3)]     ↳ Video Bus                                 id=7    [slave  keyboard (3)]     ↳ Sleep Button                              id=8    [slave  keyboard (3)]     ↳ USB2.0 VGA UVC WebCam                     id=11   [slave  keyboard (3)]     ↳ Asus WMI hotkeys                          id=13   [slave  keyboard (3)]     ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]   Apparently my touchpad's type is not shown in the list. What are the possible solutions to fix this issue?


Possible Duplicate:          Why is goto considered evil in Java, and why is is not suitable for use in high-level programming languages?

Everyone is aware of Dijkstra's  (also  .html transcript and  .pdf) and there has been a formidable push since that time to eschew the goto statement whenever possible. While it's possible to use goto to produce unmaintainable, sprawling code, it nevertheless remains in . Even the advanced  control structure in Scheme can be described as a sophisticated goto.  What circumstances warrant the use of goto? When is it best to avoid?  As a followup question: C provides a pair of functions, setjmp and longjmp, that provide the ability to goto not just within the current stack frame but within any of the calling frames. Should these be considered as dangerous as goto? More dangerous?    Dijkstra himself regretted that title, for which he was not responsible. At the end of  (also  .pdf) he wrote:     Finally a short story for the record.   In 1968, the Communications of the ACM   published a text of mine under the   title "The goto statement considered   harmful", which in later years would   be most frequently referenced,   regrettably, however, often by authors   who had seen no more of it than its   title, which became a cornerstone of   my fame by becoming a template: we   would see all sorts of articles under   the title "X considered harmful" for   almost any X, including one titled   "Dijkstra considered harmful". But   what had happened? I had submitted a   paper under the title "A case against   the goto statement", which, in order   to speed up its publication, the   editor had changed into a "letter to   the Editor", and in the process he had   given it a new title of his own   invention! The editor was Niklaus   Wirth.   A well thought out classic paper about this topic, to be matched to that of Dijkstra, is , by Donald E. Knuth. Reading both helps to reestablish context and a non-dogmatic understanding of the subject. In this paper, Dijkstra's opinion on this case is reported and is even more strong:     Donald E. Knuth: I believe that by presenting such a   view I am not in fact disagreeing   sharply with Dijkstra's ideas, since   he recently wrote the following:   "Please don't fall into the trap of   believing that I am terribly   dogmatical about [the go to   statement]. I have the uncomfortable   feeling that others are making a   religion out of it, as if the   conceptual problems of programming   could be solved by a single trick, by   a simple form of coding discipline!"


lets say I have a base class B and 2 classes that derived from it:  class B { public:      A_type* Check_Memory(const LeafInterface* leaf = 0); }  class D1 : public B {}  class D2 : public B {     A_type* Check_Memory(const LeafInterface* leaf, U32* faults); }   now, when I call:  D1 d1; d1.Check_Memory(leaf);   it call the function from the base class as expected,  but when I do the same with:  D2 d2; d2.Check_Memory(leaf);   instead of calling the function from the base class, I get the following error: function does not take 1 arguments.  does my only solution is declaring another function in D2 that call the base function? is there more elegant way in C++ for doing it?

I have a function with the same name, but with different signature in a base and derived classes. When I am trying to use the base class's function in another class that inherits from the derived, I receive an error. See the following code:  class A {     public:     void foo(string s){}; };  class B : public A {     public:     int foo(int i){}; };  class C : public B {     public:     void bar()     {         string s;         foo(s);     } };   I receive the following error from the gcc compiler:  In member function `void C::bar()': no matching function for call to `C::foo(std::string&)' candidates are: int B::foo(int)   If I remove int foo(int i){}; from class B, or if I rename it from foo1, everything works fine.   What's the problem with this?


Why the float values are different from double values when set precision on  std::cout   ??      std::cout << std::setprecision(20) << endl;     float num = 1.2;     cout <<  num << endl;     double num2 = 1.2;     cout <<  num2 << endl;   Output:  1.2000000476837158203 1.1999999999999999556

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Suppose I have a large supply of small rods that are magnetized, each extremity of the cylinder with the usual N or S magnetic pole. I assemble those small rods into the shell of a hollow sphere, say all S poles pointing towards the center of the sphere. What happens to the magnetic field lines inside and outside the sphere?

Setup: we have a large number of thin magnets shaped such that we can place them side by side and eventually form a hollow ball. The ball we construct will have the north poles of all of the magnets pointing toward the center of the ball, and the south poles pointing away from the center. The magnets in this case are physically formed such that in this hollow ball arrangement they are space filling and there are no gaps between them.  Is such as construction possible? If so, what is the magnetic field (B-field) inside and outside the ball?


Could you please give me an idea how I should tackle the problem ()? I have looked up for the solution and followed the suggestion to update the Bios to the latest version (). The error retains.  Error:   ACPI Error: [SDS0] Namespace lookup failure, AE_NOT_FOUND (20160930/psargs-359)   ACPI Error: Method parse/execution failed, [\SHAD._STA] (Node ffff...), AE_NOT_FOUND (20160930/psparse-543)   ACPI Error: [SDS0] Namespace lookup failure, AE_NOT_FOUND (20160930/psargs-359)   Info:   Motherboard: ASUS - TUF X299 MARK 2 ATX LGA2066 Motherboard CPU: Intel - Core i7-7800X 3.5GHz 6-Core Processor Memory: G.Skill - Ripjaws V Series 32GB (2 x 16GB) DDR4-3200 Memory Storage: Samsung - 960 EVO 250GB M.2-2280 Solid State Drive Video Card: MSI - GeForce GTX 1080 Ti 11GB DUKE OC Video Card

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I have a Dell Inspiron N5110 running Windows 7 SP1. The webcam is Dell P/N: T3NPC.  I was on YouTube watching TeamFourStar. Right as I finished the video I was watching, I exited Mozilla and went to shutdown my computer for the night when I noticed (white LED next to camera) the built in webcam was on. I opened task manager and without even having to show processes from all users there it was, WebcamDell2.exe. I haven't used my webcam for about a month. Last time I used it was for Skype. I already have my computer calling me Dave,(HAL 9000) the last thing I need is for it start watching me sleep.

I have a Microsoft LifeCam HD sitting atop my monitor.  Today, completely out of the blue, its light came on -- I was simply browsing the web (in Chrome) when it happened.  After about 5 minutes the webcam turned off.  Naturally, I immediately suspected my ex-wife (when in doubt, I always suspect her), but she isn't computer savvy enough.  I looked over the process list and didn't see anything suspicious.  I am running a couple of open source projects and free apps (e.g., greenshot, powermenu, supertray), but I've had them for years.  Autoruns reports nothing suspicious in the startup and neither does Windows Defender.  Anyways, what could it be?  What should I look at next?


Question inspired by the question at  .  One of the ansers says this about the "volatile" keyword :  "Also, it is declared volatile, which means that if any thread changes the value of the variable, this change will immediately be reflected in all other threads."  This seems to suggest that if a variable is NOT declared volatile, then it will not be the case that "change will immediately be reflected in all other threads", or IOW, "changes to the variable will be reflected only later".  Questions :  (a) is that understanding correct ? (b) If so, when precisely ARE changes then applied / exposed to other threads ?

At work today, I came across the volatile keyword in Java. Not being very familiar with it, I found . Given the detail in which that article explains the keyword in question, do you ever use it or could you ever see a case in which you could use this keyword in the correct manner?


I'm trying to extend xml.ElementTree.Element. The problem is that the constructor gives me a ready made Element instance which I cannot extend without tampering with the source code of xml.  Is there a way to initialize a class that inherits from Element and copy the whole Element attributes into the SubClass?  import xml.ElementTree as ET  root = ET.parse('file.xml').getroot() # retrieves Element instance  class ExtendedElement(ET.Element):     def __init__(self, element):         pass         # somehow initialize the ExtendedElement instance         # with all methods and attributes of element         # without copying each attribute individually         # ie self.attrib = element.attrib      def custom_method(self):         print(self.attrib)  ext = ExtendedElement(root)  ext.custom_method()  assert root.attrib == ext.attrib assert list(ext) == list(root)   Usually I would just go on and call self.__dict__.update(element.__dict__), however Element doesn't seem to have a __dict__ (how is this even possible?).   I want to avoid copying all attributes individually as I might miss some hidden ones without knowing.

I'm trying to understand the use of super(). From the looks of it, both child classes can be created, just fine.   I'm curious to know about the actual difference between the following 2 child classes.  class Base(object):     def __init__(self):         print "Base created"  class ChildA(Base):     def __init__(self):         Base.__init__(self)  class ChildB(Base):     def __init__(self):         super(ChildB, self).__init__()  ChildA()  ChildB()


So I have these    I want to combine them all. Is it possible?

I've been stressing these days searching for a video on using a Normal map with a Bump map, but I haven't found something good. Some suggest connecting the Bump input into the Displacement output and others suggest connecting it to the Normal output of a Shader (both using a Bump node). What would be considered a right way of doing it? The Bump node has a Normal output. Is that for the Normal map?  I have this road scene where the bricks are too smooth and I would go for making them more bumpy -   I want to use the Noise texture as a Bump map, but the bricks already have a Normal map so that I have no idea where the bump node should be connected. And when connecting it into the Displacement output nothing happens.  In a tutorial by Andrew Price called "The Secrets Of Realistic Texturing", the Normal map is connected into the Displacement output, but I'm not sure if it is a good way of doing it and the bumps are more like some streched lines which is not what a Noise texture would do -   Here's the file if anybody comes up with something -   I'm unable to upload the maps (too high resolution), sorry. But, you can use maps of your own.  Here's the node setup -


I'm in the process of cleaning some junk out of our SE.  Is it possible to search for questions that have a negative score, i.e. to exclude search results that have a score of zero or greater?  The exclude -score:0 -score:1 gets interpreted as search terms. Currently, I am limited to "sorting by score" and looking at the last pages.

I want to search for new downvoted questions to improve or flag them.   I tried in the searchbar: votes:-1 is:question   but votes:XX only works with positive numbers. I can't query for downvoted questions. Is there a work-around to this? If there's not, should this feature be added?


I am trying to combine/flatten a series on paths in Sketch. When I use Layer > Combine I get very unexpected results. I am assuming there is a fairly simple solution that I am missing here, can someone help me out? I have attached examples below (you can especially see the different paths when a gradient is applied). Thanks!  [  [

Is there a way in Sketch to expand a shape? For example, let's say I have an outline of something. I'd like to expand that outline to be a solid shape so I can apply boolean operations to it with other shapes. Is that possible?


Wifi stopped working on my Ubuntu 14.04 on a Dell XPS 13 Ultrabook. I looked at  question and ran the wireless script.  is the link to the script I generated. Can someone please help me with the situation.   I don't see any Wifi networks. I tried reinstalling the Broadcom drivers and it didn't work.When I search for additional drivers in my system settings, it already shows that BCM4352 driver is in use.

I recently updated my Lenovo Y50 computer to 16.04. Since the update, I have been unable to see or connect to any wireless networks. The output of running sudo lshw -C network is:     *-network UNCLAIMED          description: Network controller          product: BCM4352 802.11ac Wireless Network Adapter          vendor: Broadcom Corporation          physical id: 0          bus info: pci@0000:08:00.0          version: 03          width: 64 bits          clock: 33MHz          capabilities: pm msi pciexpress cap_list          configuration: latency=0          resources: memory:d1600000-d1607fff memory:d1400000-d15fffff   The fact that the wireless network controller is unclaimed leads me to believe that this is a driver related issue. I have checked and made sure that "Use proprietary driver" is checked in System Settings > Software & Updates > Additional Drivers and I have run sudo apt-get install --reinstall bcmwl-kernel-source I have also restarted after every driver change to finish the changes. Is there anything else I should try?  EDIT: Here is the result of running lspci -nnk | grep 0280 -A2:        08:00.0 Network controller [0280]: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)     Subsystem: Lenovo BCM4352 802.11ac Wireless Network Adapter [17aa:0623]     Kernel modules: bcma, wl   Running sudo modprobe wl && dmesg | grep wl returns an error:      modprobe: ERROR: could not insert 'wl': Required key not available


Assume that I have 1 unit of something and then I add ½ unit resulting in a total of 1.5 units. Then I add half of the half (0.25 units) for a total of 1.75 units. Then I add the half of the half of the half (0.125 units) resulting in 1.875 units. IIUC, the result will be finite and have a limit but what is it and is there a general formula I'm looking for?  The problem seems similar to a Riemann sum where an infinite sequence has a finite value, or similar to Xeno's paradox about Achilles and the tortoise.

Why does the following hold:  \begin{equation*} \displaystyle \sum\limits_{n=0}^{\infty} 0.7^n=\frac{1}{1-0.7} = 10/3\quad ? \end{equation*}  Can we generalize the above to      $\displaystyle \sum_{n=0}^{\infty} x^n = \frac{1}{1-x}$ ?   Are there some values of $x$ for which the above formula is invalid?  What about if we take only a finite number of terms? Is there a simpler formula?     $\displaystyle \sum_{n=0}^{N} x^n$   Is there a name for such a sequence?    This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: .


In $\Delta ABC$ if $$a^2+b^2+c^2-ac-\sqrt{3}ab=0$$ Then Prove that Triangle is Right angled  I tried in this way:  Multiplying with $2$ both sides we get  $$2a^2+2b^2+2c^2-2ac-2\sqrt{3}ab=0$$    $$(a-c)^2+(a-\sqrt{3}b)^2+c^2=b^2$$  Also  $$(a-c)^2+(b-\sqrt{3}a)^2+c^2=2a^2-b^2$$  How to proceed?

In a $\triangle ABC,a^2+b^2+c^2=ac+ab\sqrt3$,then the triangle is $(A)$equilateral $(B)$isosceles $(C)$right angled $(D)$none of these    The given condition is $a^2+b^2+c^2=ac+ab\sqrt3$. Using sine rule, $a=2R\sin A,b=2R\sin B,c=2R\sin C$,we get $\sin^2A+\sin^2B+\sin^2C=\sin A\sin C+\sin A\sin B\sqrt3$  I am stuck here.


i'm try to get a bowfish function working for simple char buffers. The program fails when I try to decrypt an encrypted buffer and fails on the EVP_CipherFinal_ex() call.  #include <string.h>  #include <openssl/evp.h>  #include <openssl/buffer.h>  #include <openssl/blowfish.h> #include <openssl/evp.h>  int do_crypt(unsigned char *inbuf, int inlen, unsigned char *outbuf, int *outlen, int do_encrypt) {       outbuf=(unsigned char*) malloc(inlen+EVP_MAX_BLOCK_LENGTH);       int tmplen=0;       unsigned char key[] = "0123456789";       unsigned char iv[] = "12345678";        EVP_CIPHER_CTX ctx;       EVP_CIPHER_CTX_init(&ctx);       EVP_CipherInit_ex(&ctx, EVP_bf_cbc(), NULL, NULL, NULL, do_encrypt);       EVP_CIPHER_CTX_set_key_length(&ctx, 10);       EVP_CipherInit_ex(&ctx, NULL, NULL, key, iv, do_encrypt);        if(!EVP_CipherUpdate(&ctx, outbuf, outlen, inbuf, inlen)) {           /* Error */           printf("* update failed *\n");           EVP_CIPHER_CTX_cleanup(&ctx);           return 0;       }        int db=*outlen;        if(!EVP_CipherFinal_ex(&ctx, outbuf+db, &tmplen)) {           /* Error */            ERR_print_errors_fp(stderr);           printf("* finalise failed *\n");           EVP_CIPHER_CTX_cleanup(&ctx);           return 0;       }         (*outlen)=db+tmplen;        EVP_CIPHER_CTX_cleanup(&ctx);        return 1;  }  int main(int argc, char **argv) {       char *plain="ENCRYPT DECRYPT this string";       int plain_len=strlen(plain);       unsigned char *cipher;       int cipher_len;        printf("***** ENCRYPT *****\n");       if (!do_crypt((unsigned char*) plain, strlen(plain), cipher, &cipher_len, 1)) {           printf("failed to encrypt\n");           return 1;       }        char *decrypt;       int decrypt_len;       printf("***** DECRYPT *****\n");       if(!do_crypt(  cipher ,cipher_len , decrypt, &decrypt_len, 0)) {           printf("failed to decrypt\n");           return 1;       }  printf("decrypt=\"%s\"\n",decrypt);   printf("decrypt_len=%d\n",decrypt_len);       return 0;  }    any help would be much appreciated.

In , someone suggested in a  that I should not cast the result of malloc. i.e., I should do this: int *sieve = malloc(sizeof(int) * length);  rather than: int *sieve = (int *) malloc(sizeof(int) * length);  Why would this be the case?


please do not close without reading I have tried to read several questions/ answers on why to use List<Object> vs ArrayList<Object> while declaring a collections datatype in Java. But I am unable to understand why do we need that (maybe I am missing a key concept here). Can someone please answer/clarify the following questions for me (I have also attached the code snippet)? // first method List<Object> myL = new ArrayList<>();  // second method ArrayList<Object> myAl = new ArrayList<>();  I have read in several places that using the first method is preferred because if we decide later that myL needs to be a linkedList we can change its reference to point to a LinkedList object. But when I type .getClass().getSimpleName() for both myL and myAL they both are stored as ArrayList, so how will List<Object> make any difference v/s ArrayList<Object>, as both are stored as "ArrayLists". Any explanations will be greatly appreciated! Thanks in advance.

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


CREATE OR REPLACE VIEW doesn't seem to work in SQL Server. So how do I port CREATE OR REPLACE VIEW to work on SQL Server?  This is what I'm trying to do:  CREATE OR REPLACE VIEW data_VVVV AS  SELECT      VCV.xxxx,         VCV.yyyy AS yyyy,         VCV.zzzz AS zzzz FROM  TABLE_A ;   Any ideas?

In Oracle, I can re-create a view with a single statement, as shown here:  CREATE OR REPLACE VIEW MY_VIEW AS SELECT SOME_FIELD FROM SOME_TABLE WHERE SOME_CONDITIONS   As the syntax implies, this will drop the old view and re-create it with whatever definition I've given.  Is there an equivalent in MSSQL (SQL Server 2005 or later) that will do the same thing?


Can somebody explain what is meant by ?  What other kinds can there be?

I am been studying differential geometry and spacetime and I keep coming across the term . I am having a hard time coming up with an intuitive understanding of this idea. What is an intuitive meaning of globally hyperbolic.  My background is mostly mathematics at a higher undergraduate level.


So I've been doing a lot of reading about the twin paradox and have encountered several different explanations that strive to resolve it. First off let me start by saying general relativity is not an adequate explanation and in fact has nothing to do with resolving the paradox. (That much has been made clear to me from what I have read, as it has been pointed out that believing general resolves the paradox is a common misconception) To drive that point home let me propose a slight variation on the twin paradox that removes acceleration all together.   Some ancient race of aliens long ago set up an experiment for us without our knowledge to help us understand space time. The experiment contains two space craft with clocks on board separated by a very large distance. The first clock, clock A, was accelerated to .866 speed of light millions of years ago (Thus time runs at half speed) and is set on a trajectory to fly past earth. As it flies past earth it resets its clock to 0 and continues on its way. (The aliens also left behind a clock on Earth, clock C, that starts ticking the moment Clock A passes earth and resets itself to 0) The other clock, clock B, was also accelerated to .866 the speed of light long ago and is on the same trajectory as clock A but in the opposite direction so that it heads towards Earth. The two ships and their respective clocks pass each other at a distance of four light years away from earth at which point clock A transfers its time reading to Clock B. Clock B flies past earth and relays its time measurement so as to be compared to Clock C. The time reads half the time elapsed by Clock C, but how could this be possible if time dilation is always symmetrical?

Please will someone explain what time dilation really is and how it occurs? There are lots of questions and answers going into how to calculate time dilation, but none that give an intuitive feel for how it happens.


I have an Windows 10 and Ubuntu 20.04 in dual boot and i have a big problem with internet speed on Ubuntu.   I use  to test my speed connection and on Windows i have 800+ Mbps Download and 500+ Mbps Upload, but on Ubuntu i have 40+ Mbps Download and 500+ Mbps Upload. I try different settings like disabling ipv6, use another dns, etc.  The difference is to big, and if i try do download something on Ubuntu, or to update packages it took to long time.  What should i do to increase my speed on Ubuntu? I also disabled power saving  Ubuntu Download Speed 40+ Mbps  Ubuntu Upload Speed 500+ Mbps  Windows Download Speed 800+ Mbps  Windows Upload Speed 500+ Mbps  So, the only issue is with download speed. If i try to download something, on Windows is instant, on Ubuntu take very long, hours sometime when on Windows take 2-3 minutes.  I don't use Wifi, i use wired connection (cable)  lspci -knn | grep Eth -A3  09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)     Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:3831]     Kernel driver in use: r8169     Kernel modules: r8169 0a:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM951/PM951 [144d:a802] (rev 01)

I have just installed Ubuntu 20.04 and I am facing a pretty big issue. My download speeds are really low compared to the Windows 10 that I have installed on dual-boot setup.   This is the speed I'm getting in Windows.    And this is what I'm getting in Ubuntu.   My network adapter is Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller.   I have tried changing the DNS options but that doesn't help.  Device is a Lenovo Y700-15ISK Laptop.  Output lshw:  *-network DISABLED        description: Wireless interface        product: QCA9377 802.11ac Wireless Network Adapter        vendor: Qualcomm Atheros        physical id: 0        bus info: pci@0000:08:00.0        logical name: wlp8s0        version: 30        serial: cc:b0:da:b7:60:65        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=ath10k_pci driverversion=5.4.0-29-generic firmware=WLAN.TF.2.1-00021-QCARMSWP-1 latency=0 link=no multicast=yes wireless=IEEE 802.11        resources: irq:142 memory:94000000-941fffff   *-network        description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:09:00.0        logical name: enp9s0        version: 15        serial: c8:5b:76:3e:55:50        size: 1Gbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.048.00-NAPI duplex=full ip=192.168.100.2 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s        resources: irq:131 ioport:3000(size=256) memory:94304000-94304fff memory:94300000-94303fff   Also, the ifconfig shows a lot of dropped RX packages that are increasing as we speak:


I need to answer and show if a Monoid with left cancellation property always a group.  I managed to show that it is correct when cancellation property holds for both left and right (that was part a of the question), but I have a feeling i proved it wrong because i didn't use the right side at all. what I did is :   M is finite though if $x \in M$ there is some $i \in N$ such that  $x = x^i$   then  $x*e = x*x^{i-1}$  so  $x^{i-1} = e$  then $x^{i-2}$ is the inverse of x  so i proved that G is a Group without using the right cancelation property.   where am I wrong..   any help will be appreciated

Let $G$ be a non-empty finite set with an associative binary operation so that cancellation law holds, i.e. $ab=ac$ or $ba=ca$ implies $b=c$, for any choices of $a,b,c$ in $G$. Assume that there is an identity element $e$ in $G$. Show that $G$ is a group.  Proof: To show $G$ is a group, conditions must hold. Suppose that $ab=ac$, then $b=eb=(a^{-1}a)b =a^{-1}(ab)=a^{-1}(ac) =(a^{-1}a)c=ec=c$. So left cancellation holds in $G$.  2) Suppose $ba=ca$, then $b=be=b(aa^{-1}) =(ba)a^{-1}=(ca)a^{-1} =c(aa^{-1})=ce=c$. So right cancellation holds in $G$.  3) If $a$ exists in $G$ then $aa^{-1}=a^{-1}a=e$, where $a$ is an inverse of $a^{-1}$. Since inverses are unique, $(a^{-1})^{-1}=a$.  4) Let $x$ be the inverse of $ab$. Then $(ab)x=e$. By associativity we have $a(bx)=aa^{-1}$. Through left cancellation we have  $bx=a^{-1}bx=ea^{-1}=b(b^{-1}a^{-1})$ and $x=b^{-1}a^{-1}$.  Thus $(ab)^{-1}=b^{-1}a^{-1}$. So all conditions hold, $G$ is a group.  Is this proof correct? I know to show $G$ is a group these conditions have to be met. This is all I have to show right?


I migrated a question from  to .  3 of the 4 comments got copied over, but the 4th didn't get copied.  Why not?  Is this a bug?

I migrated  over .  When it got there, it had lost . I’m confident that the comment wasn’t deleted by a moderator on Stats since it was gone immediately after the question arrived on that site.  This looks like a bug, no?


So if I wrote:     You and I have a lot of places to go   is this wrong?  I was chatting to a friend on social media and he kept correcting me. 'You should' and 'I should' sound correct however 'me should' sounds wrong but no matter how hard I tried to explain from my side we got nowhere .

When the phrase is used as an object, why so many native speakers are saying "you and I" instead of "you and me"? I'm not a native speaker but I thought "you and me" is correct. Not sure if this falls into the same category, but "Just between you and me" sounds more natural than "Just between you and I".


I'm going to despair: It seems nobody has a problem when passing an argument for the width of \includegraphics, but I always get Runaway argument?. Whenever I remove the [#2\textwidth] from my command definition, the command works!  My command looks like this (still room to improve):  \newcommand{\figcap}[5][htbp]{% \begin{figure}[#1]% \centering% \includegraphics[width=#2\textwidth]{#3}% \caption{\label{\Lf{#5}}{\small{}#4}}% \end{figure} }   And my call is like this:  \figcap{1}{1920px-Cone-....png}{Normierte ... (blau, grün, rot).}{test}   Using LaTeX2e <2017-04-15> I get this error:  Runaway argument? width=1\textwidth ]{1920px-Cone-....png}\caption {\label {\Lf \ETC. ! Paragraph ended before \Gin@iii was complete. <to be read again>                     \par    I've spend hours of reading and trying, but I don't find the problem. The packages I'm using are:  documentclass[a4paper,draft,twoside]{report} \usepackage{german} \usepackage[latin1]{inputenc} \usepackage{a4} \usepackage{amsmath} \usepackage{url} \usepackage{graphics}   And before you ask: \newcommand{\Lf}[1]{fig-#1}

\documentclass[a4paper,12pt]{article}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{amssymb} \usepackage{amsthm} \newtheorem{montheoreme}{Théorème}[] \newtheorem{monlemme}{Lemme}[] \newtheorem{mondem}{Démonstration}[] \newtheorem{moncorol}{Corollaire}[] \newtheorem{mondefin}{Définition}[] \newtheorem{chapter}{Chapitre} \newtheorem{monremarq}{Remarque} \newtheorem{monpropos}{Proposition} \newtheorem{monexpl}{Exemple} \usepackage{graphics} \begin{document}  \begin{Large}  \textbf{Biographie :} \end{Large} \\  \includegraphics[scale=0.1]{800px-Karl_Weierstrass.jpg} \textbf{Karl Theodor Wilhelm Weierstrass :} habituellement appelé Karl Weierstrass, orthographié Weierstraß en allemand, né le 31 octobre 1815 à Ostenfelde (Westphalie), mort le 19 février 1897 à Berlin, était un mathématicien allemand, lauréat de la médaille Copley en 1895.\\ Il a étudié les mathématiques à l'université de Münster et obtint une chaire à l'Université technique de Berlin. Il fut immobile les trois dernières années de sa vie et s'éteignit à Berlin à la suite d'une pneumonie.\\ Karl Weierstrass est souvent cité comme le « père de l'analyse moderne ». Il consolida des travaux de Cauchy sur les nombres irrationnels et leur amena une nouvelle compréhension. Ses travaux les plus connus portent sur les fonctions elliptiques.


I reinstalled MiKTeX and now I can't make bibliographies anymore. I have a file called a.tex containing \documentclass{book} \usepackage[backend=biber]{biblatex} \bibliography{b}  \begin{document} \cite{a} \printbibliography \end{document}  and b.bib containing @book{a,     title={a},     author={a} }  Even after compiling multiple times with LaTeX and biber, there is no bibliography and it says that the citation is undefined. Am I missing something? Why doesn't it work? I installed the latest updates in the MiKTeX console.

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


How should one solve the following integral? $$\int \tan^2(x) \sec (x) \ dx$$  I can't think of any substitutions to be made involving $\tan^2(x)=\sec^2 (x)-1$ or $\sec^2(x)=\tan^2(x)+1$, which is how I've been solving most of the similar problems in my book until now. What should I do?

I'm stuck in this problem. I can not integrate $\int \sec\theta\tan^2\theta \,d\theta$. Can anyone help me.


What gives? How come Ubuntu chews through both of my two batteries so fast?  Using 18.04.1 by the way.

This question is present as a matter of historical interest.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .   It is possible to greatly extend the usage time of a laptop or netbook running on battery by disabling various services and installing various packages.   What tricks or tips do people have for getting an extra hour or two out of their batteries?


The following trick is supposed to enable selecting from a Quick Look preview:  defaults write com.apple.finder QLEnableTextSelection -bool TRUE   … and then relaunch Finder.  In the past it worked for me, but not longer.  Is this broken in Sierra?

I used to be able to just quicklook files and copy the text directly from there, removing the need to launch applications to open it which is just awesome, however, it doesn't seem to work since El Capitan. I have tried running the terminal command (defaults write com.apple.finder QLEnableTextSelection -bool TRUE) that enables it but it didn't work.  What options exist to customize quick look or replace the default plug in with one that allows text selection?