What happens when a domestic flight diverts internationally?

Some domestic flights (e.g. to remote islands like Australia's Christmas Island, or to exclaves like Alaska) occasionally have to divert due to weather or mechanical issues to a diversion airport that is outside the country of origin. Over at  the more general question of what happens when you divert to an unexpected country is discussed, but the discussion there seems to assume that we're talking about an international flight that lands in a third country and just need to arrange an emergency visa. In that case, passengers will have gone through appropriate outbound immigration clearance in the country of origin and will have international travel documents with them. On the other hand, if it's a domestic flight that has diverted, some passengers may not have any ID apart from what's necessary to board a domestic flight, and they won't have been recorded as having cleared outbound immigration and left the country of origin either. And I'm sure there's other differences in how domestic vs international flights operate that I'm not aware of. Does anything happen differently in this scenario versus diverting to a 3rd country on an international flight?


Android how to add a header to this: new java.net.URL("http://example.com/").openStream()

I need to send a header If-Modified-Since to this address and only download if the server returns 200 not 304. Is there a way I can add/modify the header in this code?  new java.net.URL(API.JSON_ZIP_OF_ALL_FILES).openStream()


How to install .deb file in ubuntu using terminal?

I am trying to install Google Chrome,for that I downloaded a google-chrome-stable_current_i386.deb file.  When I try to install using install in terminal   sudo install google-chrome-stable_current_i386.deb  It gives following error.  install: missing destination file operand after ‘google-chrome-stable_current_i386.deb’ Try 'install --help' for more information.


Combining all the address fields into one?

Both customers and companies want a quick and easy checkout experience. From what I've seen, a big UX bottleneck at checkout is the billing and/or shipping address(es) because there are so many input fields per address.  The traditional way of typing an address is something like:     Street address: 123 main st      Unit: 101      City: Schenectady      State: NY ▼      Zip code: 12345      Country: United States of America ▼   This is usually frustrating for me, because some addresses are "edge-cases" and don't necessarily fit into the format required by the web page.  And often, these fields are duplicated to populate both shipping and billing addresses. My question isn't how to prevent that duplication (there are "Ship to my billing address"  checkboxes for that), but it's about reducing the number of fields on the form from 6+ to just 1:     Address: 123 main st #101, schenectady, ny 12345      (could be a small, multi-line textarea too)   Is it a more positive user experience to combine all the fields for an address into a single input field?


What are some introductions to classical statistics that emphasize unifying principles?

I'd like to know an introduction to classical statistics, that:   Emphasizes connections and unifying principles (I checked  question and the links posted therein, but didn't find an introduction textbook) Concisely presents the solid basics of core techniques and concepts, like: linear regression, MLE, hypothesis test, confidence interval, unbiasedness, consistency, sufficiency, etc. (pretty much like the point 2 & 3 , but I am not a mathematician) At a level between a first and a second course (or a first course for an honors class?) And preferably, briefly introduces some modern computation-intensive techniques, maybe through code (like R).   For some background and books have looked at, see  post.


In what order are MySQL JOINs evaluated?

I have the following query:  SELECT c.* FROM companies AS c JOIN users AS u USING(companyid) JOIN jobs AS j USING(userid) JOIN useraccounts AS us USING(userid) WHERE j.jobid = 123;   I have the following questions:   Is the USING syntax synonymous with ON syntax? Are these joins evaluated left to right?  In other words, does this query say: x = companies JOIN users; y = x JOIN jobs; z = y JOIN useraccounts; If the answer to question 2 is yes, is it safe to assume that the companies table has companyid, userid and jobid columns? I don't understand how the WHERE clause can be used to pick rows on the companies table when it is referring to the alias "j"   Any help would be appreciated!


Why are there no free quarks? I am not looking for "because you can't pull them apart". If you have a problem understanding the question, then understand it as: Were there ever free quarks in the past?  How did they get to their current unfree state?


Prove the Axiom of Replacement implies the Axiom of Specification.

The Axiom of Specification says that:  For a set $ A$ and objects $x\in A$,for any object $y$ there exists a set: $$ y \in \{x: P(x) \wedge x \in A\} \implies y \in A \text{ and } P(y)$$  Where $P(x)$ is a statement pertaining to $x$.  The Axiom of Replacement says that:  For a set $ A$ and objects $x\in A$,for any object y, suppose we have a statement $P(x,y)$, pertaining to $x$ and $y$ such that for each $x$ there is at most one $y$ for which $P(x,y)$ is  true, then there exists a set, such that for any object  z, $$ z\in \{y:P(x,y) \text{ s.t } x \in A \} \implies P(x,z) \text{ for } x \in A$$  I can see that the AOR is stronger than the AOS. If we let $P(x,y)$ be whether $y$ is in the same set as $x$ then $P(x,y)$ is a true of false statement and hence it will follow that if $P(x,y)$ is true then $ y \in A \text{ and } P(y)$. Does this hold any water?  I have sketched diagrams, to try and motivate a solution but have failed.  I am editing this question simply because I don't understand the answers to the other posts. ( I have tried...) So I am going to add an answer to mine.  MY ATTEMPT:  Let A be a set, then for any object $y$ let $\gamma$ be defined as follows:  $$\gamma(x) = x \text{ if } \theta(x) \text{ for } x \in A$$ $$\gamma(x) = y \text{ if } !\theta(x) \text{ for } x \in A$$  Then by the Axiom of replacement There exists a set $B$ such that  $$B = \{\gamma(x): x \in A, \gamma(x) = x\} = \{x:\theta(x), x \in A\}$$  The last set in the above statement implies the Axiom of separation.


The mockup below, has a screenshot of a software I stumbled upon last week. It grabbed my attention that it presented information in the following way. It had Many Interface Level tabs, inside those, it had many Major level tabs, that contained many Minor tabs. I want to stop there, because it gets confusing. What I want to know if how to reduce complexity by reducing the number of tabs presented for the user. The system itself is complex, but I'm pretty sure there should be better ways of presenting information.  The information above and the mock-up below might seem insufficient, however, it might give you an idea of the problem.  The application is window based (no browser).         – Wireframes created with   One quick solution I see, would be eliminating Interface level tabs and creating separate windows for those specific interfaces. But then I wouldn't like to have that many Major and Minor level tabs.    Is there any usability standard that would suggest the wise use of tabs?


Canonical rotation to take a unit vector to another

In 3 (and 2 for that matter) dimensions, there is a "canonical" (independent of arbitrary choices) rotation that takes a given unit vector $u$ to another unit vector $v$ (edit: when $u,v$ are in general position): just rotate around the direction orthogonal to both vectors.  However, is there such a canonical rotation in higher dimensions?


Perturbation expansion with path integrals

This is from Hugh Osborn's '' notes, Lent 2013, page 15.  I want to evaluate the expression   $$ Z = \exp\Big(\frac{1}{2} \frac{\partial}{\partial \underline{x}} . A^{-1} \frac{\partial}{\partial \underline{x}} \Big) \exp\Big(-V(x) + \underline{b}. \underline{x}\Big) \bigg\vert_{\underline{x} = \underline{0}}$$  assuming that $\underline{b} = \underline{0}$.  We use the notation   $$ V_{i_{1} i_{2} \dots i_{k}} =  \frac{\partial}{\partial x_{i_{1}}} \frac{\partial}{\partial x_{i_{2}}} \dots \frac{\partial}{\partial x_{i_{k}}} V(\underline{x})\Big\vert_{\underline{x} = \underline{0}}$$  Where  $\frac{\partial}{\partial \underline{x}} \equiv \Big( \frac{\partial}{\partial x_{1}}, \dots, \frac{\partial}{\partial x_{n}}\Big)$  We also assume that $V(\underline{0}) = V_{i}(\underline{0}) = 0$.  And $A^{-1}$ is an $n \times n$ matrix. I expanded the exponential with the derivative to get:  $$ Z = \Bigg(1 + \frac{1}{2} \frac{\partial}{\partial x_{i}} A^{-1}_{ij} \frac{\partial}{\partial x_{j}} + \frac{1}{2} \frac{1}{2}\frac{\partial}{\partial x_{i}} A^{-1}_{ij} \frac{\partial}{\partial x_{j}} \frac{1}{2}\frac{\partial}{\partial x_{k}} A^{-1}_{kl} \frac{\partial}{\partial x_{l}} + \frac{1}{6}\frac{1}{2} \frac{\partial}{\partial x_{i}} A^{-1}_{ij} \frac{\partial}{\partial x_{j}}\frac{1}{2} \frac{\partial}{\partial x_{k}} A^{-1}_{kl} \frac{\partial}{\partial x_{l}}\frac{1}{2} \frac{\partial}{\partial x_{m}} A^{-1}_{mn} \frac{\partial}{\partial x_{n}} + \dots\Bigg) \exp(-V(x))\biggr\vert_{\underline{x} = \underline{0}}$$  Then this series acts on $\exp(-V(x))$, where summation notation is implied. Am I proceeding correctly?  The answer is


How can I get video duration in seconds?   What I've tried:  ffmpeg -i file.flv 2>&1 | grep "Duration"   Duration: 00:39:43.08, start: 0.040000, bitrate: 386 kb/s   mediainfo file.flv | grep Duration Duration : 39mn 43s   This what close, but it's not so accurate, 2383 is 39.71 minutes   ffmpeg -i file.flv 2>&1 | grep "Duration"| cut -d ' ' -f 4 | sed s/,// | sed 's@\..*@@g' | awk '{ split($1, A, ":"); split(A[3], B, "."); print 3600*A[1] + 60*A[2] + B[1] }' 2383


How many ordered pairs $(A,B)$ they are if $A$ and $B$ are subsets of $\{ 1,2,3,4,5 \}$ such that $A \cap B = \{1\}$?  If 1 is in both sets :  Size of $A$ is $>1$ and size of $B$ is $>1$.  $\Rightarrow$ Size of $A \cup B =4$  $$5 \cdot (3 \cdot 3 \cdot 3 \cdot 3) = 405$$ is not correct.  What am I missing here?


Calling a const function from a non-const object

I need to call a const function from a non-const object. See example  struct IProcess {    virtual bool doSomeWork() const = 0L; }; class Foo : public IProcess {       virtual bool doSomeWork() const {     ...   } };  class Bar { public:    const IProcess& getProcess() const {return ...;}    IProcess& getProcess() {return ...;}     void doOtherWork {     getProcess().doSomeWork();           } };   Calling   getProcess().doSomeWork();   will always results in a call to  IProcess& getProcess()   Is there another way to call  const IProcess& getProcess() const    from a non constant member function? I have so far used  const_cast<const Bar*>(this)->getProcess().doSomeWork();   which does the trick but seems overly complicated.    Edit: I should mention that code is being refactored and eventually only one function will remain.  const IProcess& getProcess() const    However, currently there is a side effect and the const call may return a different instance of IProcess some of the time.  Please keep on topic.


Injecting beans into a class outside the Spring managed context

I'm an end-user of one of my company's products. It is not very suitable for integration into Spring, however I am able to get a handle on the context and retrieve the required bean by name.  However, I would still like to know if it was possible to inject a bean into this class, even though the class is not managed by Spring itself.  Clarification: The same application which is managing the lifecycle of some class MyClass, is also managing the lifecycle of the Spring context. Spring does not have any knowledge of the instance of MyClass, and I would like to some how provide the instance to the context, but cannot create the instance in the context itself.


How to vertically center element that has a taller sibling element?

In this example, I'd like to vertically center "3" within the "list-li" element since the sibling element has a dynamic height. I tried using:  position: relative; top: 50%;    ..but it doesn't seem to work.  HTML:

             3

             Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur venenatis, lectus cursus cursus elementum.

   CSS:  .list-1 {     font-size: 20px;     list-style: none;   }  .list-1 li {     margin-bottom: 70px;     overflow: hidden;     text-align: left;     list-style: none; }  .list-1-num {     float: left;     font-size: 25px;     margin-right: 20px; }  .list-1-content {     background-position: 0 50%;     background-repeat: no-repeat;     background-size: 45px 40px;     float: left;     width: 300px;     line-height: 25px; }   Codepen Demo:


How do I teach Siri to spell names of geographic locations accurately? For example Siri spells Coeur d’Alene as Cortolane or Quarterline and  n e v e r  can find it. 🙄 It gets as close as Idaho.


How to test the significant difference of two confusion matrices?

Is there a test for testing the difference between two confusion matrices?


Why is a single return ticket more expensive than separate tickets for the two sectors?

In this case BHX-FRA return (Lufthansa) is about £140; FRA-WDH return (Air Namibia) is about £500 - and BHX-FRA-WDH return, on exactly the same flights is about £900.  I understand that this is common, and that a single BHX-FRA-WDH ticket is actually worth more to the holder, because:   if your Lufthansa flight to FRA is late, a single ticket places the airlines under an obligation to look after you, but if you bought them separately, the staff at the Air Namibia counter may well be very sorry but they can't help you... if you buy separate tickets, you will have to collect your luggage at FRA and check it back into the system   So I can also understand that there is added value in the single ticket.  Questions that have not been previously clearly answered (or posed)  Many questions around this topic have previously been asked and answered, but the first two below have only been answered in passing, while I have not seen any clear answers to the second two.   Who gets the extra £260? Do Lufthansa and Air Namibia share it out equally?  How does an airline even know that the tickets being purchased are just one leg of a longer journey? Is there some way of beating the system, by having the separate tickets reunited after purchase into a single ticket, so that for example luggage can be automatically routed to its final destination when it's checked in?


I know the usage of verbatim prefix to avoid having to escape special characters all the time. For example:  string s = @"c:\myPath";   However I just realized it is possible having something similar for parameters names. Example:  public void aMethod(int i, DateTime @date){  }   I wonder why is that syntax correct and in which case can this be useful..


How does wind cause a wind turbine to spin?

How does wind cause a wind turbine (pictured) to spin? I cant find a good source on google to explain this to me. This question should help me understand better how a turbine is spun in a jet engine.


Are all cars completely equal in regard to gameplay?

From what I can tell the choice of car does not influence driving speed or handling and is mostly of aesthetic nature, but are all cars really completely equal when it comes to gameplay?   Some cars are bigger in height for example (like the van), does this provide a bigger area to hit the ball? Or are the hitboxes of all cars equal no matter which model is chosen? Are there any other differences between cars that could make a difference (as small as it may be) on the pitch?


du (disk usage) reports 6.1M but directory is empty

This does not make any sense!  user@localhost:~/folder$ du -h --max-depth=1 6.1M    ./subfolder 6.1M    . user@localhost:~/folder$ ls -la subfolder total 6228 drwx------ 2 user user 6369280 2013-07-08 16:03 . drwx------ 9 user user    4096 2013-07-08 16:04 ..   du reports 6.1 megabytes, ls reports a total of "6228" (I don't know total of what)... but the folder is empty... indeed, there is no file there and it should be empty indeed.  Why is that? Can someone explain this to me?  This is happening in a VPS running Ubuntu 10.04  Thank you.


English is not my first language. Sometimes I read some mistakes in newspapers and get confused. Please check below sentences and let me know your valuable feedback.    As per newspapers:     India have won the match.   As per me, it should be:     India has won the match.   My point is that with India (a country) we should use has, right?


Is preimage of closure equal to closure of preimage under continuous topological maps?

Let $f:X \rightarrow Y$ be a continuous map of topological spaces and $B \subseteq Y$    Is it true that $f^{-1}(\overline{B})=\overline{f^{-1}(B)}$?


Show that the set $ M:= \{ A \subset \mathbb{N}: A $ has infinte many elements } countable is.

As a starting point I have started to use the fact, that every subset of $\mathbb{N}$ countable is. A $\subset \mathbb{N}$ is also a subset of $ \mathbb{N}$ and at this point I can't go forward. Or can I eventually use somehow Hilbert's Hotel theorem? I appreciate any help a lot.


[![enter image description here][1]][1]I am trying to build a simple circuit to power a load with two different power supplies (5 V and 0.7 V).    When one is active the other one is not and it's disconnected from the load. I know that this would be straightforward with a manual switch but I need this application to be automatic, maybe using a MOSFET as a switch controlled by a uC but it's not clear to me how I can achieve that. I wouldn't use a relay since I have constraints on cost and size of the footprint.  Thanks. Claudio


Getting latitude and longitude raster from DEM using ArcGIS Desktop?

Could anyone provide with a way to calculate latitude and longitude from DEM, for each raster cell?   In previous posts about this, I have seen that some suggest calculating lat and long in certain sample point locations. This doesn't work for me, as I need complete rasters.   Also, I use ArcGIS 10.2 version so $$XMAP, $$YMAP does not work for me.   Is there any other way inside ArcGIS to get lat and long?


Has George Lucas ever confirmed Palpatine was anti-woman and anti-alien?

I think I remember the Star Wars Expanded Universe saying Palpatine hated women and aliens. I know Pellaeon mentions it in The Hand of Thrawn at least. I guess writers based this on no girls or aliens on Star Destroyers in the original trilogy. But in the prequels Palpatine is chummy with loads of aliens (Darth Maul, the blue guy in Episode 1, the Viceroy) and girls, well, girl (Padme) so I'm wondering whether GL ever spoke up about it.


No caching found and wrong diagnostic on disk?

I run Ubuntu 18.04 and was reviewing the boot messages to make sure that the upgrade (which happened a week ago) is now stable.  I found the following messages (the bold bits are actually red in journalctl -b):  May 19 14:38:07 srv kernel: scsi 0:0:0:1: Attached scsi generic sg4 type 13 May 19 14:38:07 srv kernel: sd 0:0:0:0: [sdd] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB) May 19 14:38:07 srv kernel: sd 0:0:0:0: [sdd] Write Protect is off May 19 14:38:07 srv kernel: sd 0:0:0:0: [sdd] Mode Sense: 47 00 10 08 May 19 14:38:07 srv kernel: sd 0:0:0:0: [sdd] No Caching mode page found May 19 14:38:07 srv kernel: sd 0:0:0:0: [sdd] Assuming drive cache: write through May 19 14:38:07 srv kernel:  sdd: sdd1 May 19 14:38:07 srv kernel: sd 0:0:0:0: [sdd] Attached SCSI disk May 19 14:38:07 srv kernel: scsi 0:0:0:1: Wrong diagnostic page; asked for 1 got 8 May 19 14:38:07 srv kernel: scsi 0:0:0:1: Failed to get diagnostic page 0x1 May 19 14:38:07 srv kernel: scsi 0:0:0:1: Failed to bind enclosure -19 May 19 14:38:07 srv kernel: ses 0:0:0:1: Attached Enclosure device   This disk is otherwise recognized correctly (as a USB attached device):  # lshw  (...)                *-usb                    description: Mass storage device                    product: My Passport 0820                    vendor: Western Digital                    physical id: 6                    bus info: usb@2:6                    logical name: scsi0                    version: 10.07                    serial: 575855314538334B4B4C5938                    capabilities: usb-3.00 scsi emulated scsi-host                    configuration: driver=usb-storage maxpower=896mA speed=5000Mbit/s                  *-disk                       description: SCSI Disk                       product: My Passport 0820                       vendor: WD                       physical id: 0.0.0                       bus info: scsi@0:0.0.0                       logical name: /dev/sdd                       version: 1007                       serial: WXU1E83KKLY8                       size: 1862GiB (2TB)                       capabilities: partitioned partitioned:dos                       configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512 signature=26103748                     *-volume                          description: EXT3 volume                          vendor: Linux                          physical id: 1                          bus info: scsi@0:0.0.0,1                          logical name: /dev/sdd1                          version: 1.0                          serial: 841ffb76-1e8f-46b6-bd4f-a3bf4e4b56a3                          size: 1862GiB                          capacity: 1862GiB                          capabilities: primary bootable journaled extended_attributes large_files ext3 ext2 initialized                          configuration: created=2018-05-19 13:31:22 filesystem=ext3 label=REAR-000 lastmountpoint=/mnt/rear modified=2018-05-19 14:34:12 mounted=2018-05-19 14:32:47 state=clean                  *-enclosure UNCLAIMED                       description: SCSI Enclosure                       product: SES Device                       vendor: WD                       physical id: 0.0.1                       bus info: scsi@0:0.0.1                       version: 1007                       serial: WXU1E83KKLY8                       configuration: ansiversion=6   What do these messages mean?


The axiom of infinity is formulated as  $$\exists S ( \varnothing \in S \wedge (\forall x \in S) x \cup \{x\} \in S)$$  Can someone explain why the use of $\varnothing$ in the axiom of infinity makes sense, when the very existence of $\varnothing$ is predicated on it?


Combine one image + one audio file to make one video using FFmpeg

This should be pretty trivial, but I can't find a way to get it to work.  I want FFmpeg to take one JPEG image and an audio file as input and generate a video file of the same duration as the audio file (by stretching the still image for the whole duration).  I don't care very much about what video codec is used for output, but it is vital that I can use "copy" as the audio codec (i.e. copy the audio stream without transcoding it).  What is the right command line that would do that?  I tried:  ffmpeg -i image8.jpg -i sound11.amr -acodec copy test.avi   and tried a lot of combinations with and without -s 640x360, -loop_input, -shortest, -t xxx, -r 0.1 (artificially low frame rate in the hope that the video would be longer) and -f image2  Either I get errors or I get a video file of the duration of one frame.  I've googled around and found a dozen of proposed solutions (supposedly to this very same question) none of which works.  Can anybody suggest a working command and explain the rationale behind it?


What could cause transient binocular vision loss?

I have episodes of transient binocular vision loss. The progression of an episode is very predictable: I start noticing some letters missing in text. Slowly, it evolves to a point half of my vision is gone (for example, can't see my own right hand in front of me). It then improves until I can see perfectly again. All that lasts from 1 to 2 hours.  Those episodes happen once each 2 to 3 months. Sometimes I have almost a yer without one, sometimes I have 2 in a week. The episodes happen unpredictably and I couldn't associate a single variable to their occurrence. Sometimes I'm nervous, sometimes I'm happy. Sometimes I'm hungry, sometimes I'm not. Once I woke up with it. Nothing to correlate so far. This started when I was 15 years old, after I did a very wild, unhealthy diet based on "diet shakes". I almost starved and lost 20kg from obese to normal. It is probably related, but maybe not. I am 23 now. I probably had around 40 episodes so far.  I visited dozens of doctors already. Eyes checked, fine. I have done 3 brain MRIs, including one a few minutes after an episode, at the hospital. Fine. Nobody knows what I have, so I'm wandering around the internet - maybe here someone has an insight?


How do I deal with a player intentionally hindering their character?

In my first campaign as DM, I clearly stated in  that we'd get to play in the Underdark. I explained the consequences very clearly in that the players wouldn't be able to see anything unless they had darkvision.  All the players took underdark-related races, but one player created a Firbolg character anyways, even acknowledging "then I'll be kind of blind 3/4 of the time, I'll roll with it".  In the session 1 I was kind and placed the players in a surface-friendly location where torches were lit in most places. We had quite fun when that character was forced to play blindly in less lit areas.  However in the long term that player will be handicapped by not seeing anything or by attracting many more enemies due to having a visible, warth-emitting torch. I don't really like that idea, but that's how D&D is designed, mostly.  The player is not really experienced but previously played two different campaigns which ran about 25 game sessions in total.  How should I deal with a player that intentionally hinders their character? They knew they would be blind most of the time so I think that my communication was clear enough. Usually, this is tackled in the famous session 0, which was done.  How should I have handled things if I actually already messed up?


Can I safely connect a USB 2.0/1.1 internal pin block to a USB3.0 motherboard header?

I've been working on my new PC build with the  motherboard. This board comes with a wifi/bluetooth card that goes into a PCIe x1 slot... but the card also wants to be connected to the motherboard through an internal USB cable:  to a motherboard USB2 header. This would be fine and dandy but this motherboard only has two USB2 headers and they're already occupied by my case front panel USB pin blocks. However, there are at least two USB3.0 headers free on the motherboard; can I just connect this internal cable to a USB3 header?  Pictured: USB3.0 header (middle, light blue), USB2 header (right, blue) (not my motherboard) Looking at pinouts and discussions online, it seems like it could work if I connect the USB2 pin block to the first 9 pins of the USB3.0 header, though I'm afraid of frying the wireless card, motherboard, or both. Some sites even say that the USB3.0 motherboard header isn't standard, and can vary in pinout depending on manufacturer! Can anyone shed some light on this? P.S. If I can't do this, then is there a way to 'split' my existing USB2 motherboad headers?


Does car or train vibration affect a laptop?

I have laptops and electronics that i carry around daily. I use trains and cars as my means of transportation. Then a question popped out;   'is it OK to just leave my computer (or tablet, smartphone, etc) on the passenger seat when the seat has vibrations?? '  I'm pretty sure this depends on the type of computer, the amount of vibration, and etc...   I'm so much obssessed with this doubt that i always put cloth around my electronics and etc, to decrease the vibration!


diophantine equation $ 5x + 19y = 100 $ with natural numbers

5x + 19y = 100    given the constraint that the two variables belong to N  I get the answer:   x = 400  y = (-100)   I dont know if this is the right asnwer to the question


I want to know how to increase the distance between two paragraphs but not between two lines of the same paragraph.  For example, if I type a long line, I want to wrap that line into a paragraph, but when I deliberately press Enter or type \\ and begin another paragraph, I want the default distance to be higher. Is it possible to set this for the whole document without using \\[10pt]?


What happens when someone deletes his own Question/Answer?

A user can delete his/her question/answer. My question is, is there any loss to the user by doing this? Are there any reputation changes by doing so? What are all consequences on deletion?  For example, when deleting an answer with zero votes is there any reputation change?  What if the user is an established user? In that case will the user get banned and have no change to reputation?


Comparing floats in JavaScript produce unexpected results

This kind of blows my mind..    Turns out the output is "surprise!!". Doesn't this sort of undermine using JavaScript in some way if a program was going to use lots of floating point values?


What does the expression $1^n$ mean as a function argument?

In a , the setup function is mentioned with the $setup(1^n)$ or $setup(1^l)$. I want to know what is meant here.   Is it multiples of ones or representing something else? Also, why is this used here?


How to recover the text in url and convert text back?

How to display the text in the url: https://www.example.com?city=%u5B81%u6CE2&district=%u911E%u5DDE  The encoding of the page GB18030.  I tried to use html.unescape and urllib.parse.unquote but I cannot get the desired simplified Chinese characters.  What should I do?  If I have the text 常州 and 天宁 and want to convert it to the code %abcd%wxyz, what can I use?  Thanks.


Can this AVR MCU with 5V I2C work with this sensor with 3.3V I2C?

I'd like to interface an  sensor with an  using I2C. The Atmega operates at 5V while the sensor chip operates at 3.3V.  How can I find out if the two can work together? I'm not very used to reading data sheets and don't know what to look for.


can someone help me fix this table?:  \documentclass{article} \usepackage{siunitx,booktabs,caption}   \newcommand{\splitcell}[1]{%   \begin{tabular}{@{}c@{}}\strut#1\strut\end{tabular}% }  \begin{document}  \begin{table}[htp] \centering  \caption{The table caption}  \begin{tabular}{   S[table-format=2.0]   S[table-format=1.0]   S[table-format=1.6]   S[table-format=1.4]   S[table-format=1.3] }  \toprule {$t$ (\si{\nano\meter})} &   {$W$ (\si{\micro\meter})} &   \multicolumn{3}{c}{My results} \\ \cmidrule{3-5} & &   {Re} &   {\splitcell{Theor.\\Overlap\\factor}} &   {\splitcell{Theor.\\MPA\\(\si{dB/mm})}} \\ \midrule 25 & 8 & 1.447413 & 0.9627 & 2.128 \\    & 4 & 1.446128 & 0.9538 & 1.20  \\ \midrule 31 & 8 & 1.448499 & 0.9377 & 4.196 \\    & 4 & 1.446889 & 0.9571 & 2.78  \\ \bottomrule   \multicolumn{3}{c}{Her results} \\  \cmidrule{6-8}  & &  {Re} &   {\splitcell{Theor.\\Overlap\\factor}} &   {\splitcell{Theor.\\MPA\\(\si{dB/mm})}} \\ \midrule 25 & 8 & 1.447413 & 0.9627 & 2.128 \\    & 4 & 1.446128 & 0.9538 & 1.20  \\ \midrule 31 & 8 & 1.448499 & 0.9377 & 4.196 \\    & 4 & 1.446889 & 0.9571 & 2.78  \\ \bottomrule    \end{tabular}  \end{table} \end{document}


Trouble finding an NJM2360D Boost Converter EAGLE library

I am doing a Senior Design Project for my Electrical Engineering degree. This project involves making a PCB. I am having trouble finding a specific library for EAGLE 7.7.0 software. The library that I need is for an NJM2360D Boost Converter. Does anyone know where I can get a library for this component? Please and Thank you!


What other materials, apart from flesh, can you use to interact with an iPhone Touchscreen?

The other day I was in my car and though I'm a little unsure about what candy bar wrapper I used but I believe I moved my screen using a candy bar wrapper.  I keep thinking it was a York Peppermint Patty wrapper, but I could be wrong about that, either that or a Laura Bar wrapper.  I'm told an iPhone has a Capacitance Touch Screen which is different from earlier models of touch screen which relied on clicking or something else, but it's clearly not the same thing.  Using the old screens you could use a paper clip or whatever to interact with the phone, but with an iPhone it's the tip of your finger, and apparently a few other materials.   In particular I'm interested in being able to tap with it.


Why is there a field in a circuit when connects two ends of wire to positive and negative terminal of the battery?

If there is any sort of field in a conductor, then the charge would rearrange such that the field is canceled. Then, why is it that there is electron flow in the circuit? Or is it that at each point the 'charge' density is same at all points?


Why is Zamasu alive in the future when he was killed by Lord Beerus in Dragon Ball Super?

In the recent story of Dragon Ball Super, the present Zamasu has been killed by Lord Beerus but is still alive in the future. It has been told that Goku Black is Zamasu in Goku's Body, while Zamasu is the one from the past. All these things seem messed up. Can anyone provide a simple explanation of how all this timeline stuff works?


I am trying to install amd-ucode as per the Arch Linux wiki, but APT says there is no such package

This OS is a nightmare to learn. What does it mean to 'install'?...


Workaround to Hash sum mismatch in apt-get update behind firewall

I am using Ubuntu 12.04, 64 bit virtual machine within a company network which obviously has firewalls. When I try to run sudo apt-get update or sudo apt-get update --fix-missing I get this error:   (Assume archive.ubuntu.com before ever _ubuntu)  W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_main_source_Sources Hash Sum mismatch  W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_multiverse_source_Sources  Hash Sum mismatch  W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_universe_source_Sources  Hash Sum mismatch  W: Failed to fetch bzip2:/var/lib/apt/lists/partial /_ubuntu_dists_precise_main_binary-amd64_Packages  Hash Sum mismatch  W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_restricted_binary-i386_Packages  Hash Sum mismatch  W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_multiverse_binary-i386_Packages  Hash Sum mismatch  W: Failed to fetch bzip2:/var/lib/apt/lists/partial/_ubuntu_dists_precise_universe_binary-i386_Packages  Hash Sum mismatch  W: Failed to fetch /ubuntu/dists/precise/main/i18n/Index  No Hash entry in Release file /var/lib/apt/lists/partial/_ubuntu_dists_precise_main_i18n_Index  W: Failed to fetch /ubuntu/dists/precise/multiverse/i18n/Index  No Hash entry in Release file /var/lib/apt/lists/partial/_ubuntu_dists_precise_multiverse_i18n_Index  W: Failed to fetch /ubuntu/dists/precise/restricted/i18n/Index  No Hash entry in Release file /var/lib/apt/lists/partial/_ubuntu_dists_precise_restricted_i18n_Index  W: Failed to fetch /ubuntu/dists/precise/universe/i18n/Index  No Hash entry in Release file /var/lib/apt/lists/partial/_ubuntu_dists_precise_universe_i18n_Index  W: Failed to fetch bzip2:/var/lib/apt/lists/partial /_ubuntu_dists_precise-updates_restricted_source_Sources  Hash Sum mismatch  E: Some index files failed to download. They have been ignored, or old ones used instead.   I have tried removing /var/lib/apt/lists as mentioned in other posts and it does not work. The actual problem is that the company firewall is corrupting the download traffic which gives the hash sum mismatch. This is a known issue as seen here as well:     So, is there any work around to update packages for me and many Ubuntu users behind company firewalls?


I have an AVI file rendered from an animation. I would like to play it on a "TV" in a different animation. I have added it as an image texture on the "TV" and if I step through the frames I see the animation. But when I run the animation (Alt+A) there is no animation on the "TV", only the first frame. If I stop the run (Alt+A again) the "TV" shows the correct AVI frame.  I haven't tried a full-up render of the new animation because each frame takes about 8 min. The question: how can I get the AVI "movie" to play on the "TV" in my "living room" scene?


How to relinquish answers I've provided?

I'd like to remove hold of  while keeping their content in tact just in case they help anyone down the road. How can I go about doing this?  I see [deleted] users questions/answers frequently on StackOverflow, but I do not want to delete my account - just relinquish ownership of all my answers.  .


Why is there no syntax highlight for SQL merge statements?

It seems, that Stack Overflow doesn't recognise the SQL:2003/SQL:2008 MERGE statement, as can be seen in my answer here:    or here:  merge into table_a u using (select id, rownum rnum from table_a order by column1, column2) s on (u.id = s.id) when matched then update set u.sequence_column = s.rnum   these keywords are not recognised: merge, using, matched  I'm not sure if this is a bug or a feature request.  UPDATE: I was asked to look for some more keywords. I can confirm, these standard ones are not recognised either:  partition rows unbounded preceding following row   And these Oracle-specific ones might be interesting too   ACCESS, AUDIT, CHAR, CLUSTER, COMMENT, COMPRESS, CONNECT, DATE, DECIMAL, EXCLUSIVE,  FLOAT, IDENTIFIED, IMMEDIATE, INCREMENT, INITIAL, INTEGER, LEVEL, LOCK, LONG,  MAXEXTENTS, MINUS, MLSLABEL, MODE, MODIFY, NOAUDIT, NOCOMPRESS, NOWAIT, NUMBER,  OFFLINE, ONLINE, PCTFREE, PRIOR, PRIVILEGES, RAW, RENAME, RESOURCE, ROW, ROWID,  ROWNUM, ROWS, SESSION, SHARE, SIZE, SMALLINT, START, SUCCESSFUL, SYNONYM, SYSDATE,  UID, VALIDATE, VARCHAR, VARCHAR2, WHENEVER


Does $(\omega^a)^b \neq \omega^{(ab)}$ for complex numbers $\omega, a, b \in \mathbb{C}$?

Im wondering wether the equality  $$(\omega^a)^b = \omega^{(a\cdot b)}$$  hold for general complex numbers $\omega, a, b \in \mathbb{C}$? I tried some specific values and the result seems fine, but when trying to prove the statement I receive double Logarithms/Exponentials and don't really know how to proceed..


How to find logical 'or' operator (||) from a sequence using Regex Python

I want to find and replace the logical "or" operator (||) from my sequence. How can I do it?  Following is the code, I'm trying  import re  sequence = "if(ab||2) + H) then a*10" expr = re.sub(r"||","_or_",sequence) print (expr)   Expected answer should be   if(ab_or_2) + H) then a*10


Should I use italics or quotes to highlight a single word?

He looked as though he had never heard of the word patience.   Should the term patience be in italics or quotation marks?


Proving a tricky set of inequalities with double induction

Here's what I need to prove:  $$\frac{n^k}{k^k} \le {n \choose k} \le \frac{n^k}{k!} $$  I figure this calls for a proof by induction. I feel like I have to do a proof by induction on both n and k. I started with a base case where both are 0. But the induction part is where I get stuck.  I started with assuming the statement held true for $n-1$ and I've so far reasoned that  $${n \choose k}-{n-1 \choose k-1} \le \frac{(n-1)^k}{k!} \le \frac{n^k}{k!}$$ with pascal's identity, but I'm really stuck on how to get to the final inequality. With induction on k I'm completley lost!!


Click event of img tag inside clickable div tag not working

I have a clickable
, in which I am adding  tags using jQuery. All the  tags have the same id. I want to click on the inserted image and handle the event for that element, but  I get the
's event handler, instead. I have tried e.preventDefault() and e.stopImmediatePropagation() both on the
 and added images, but it is not working.  Javascript:  $(document).ready(function () {   $("#container").click(function (e) {       debugger;       e.preventDefault();       var x = e.pageX - this.offsetLeft;       var y = e.pageY - this.offsetTop;        var img = $('');       img.css('top', y);       img.css('left', x);       img.attr('id', 'marking');        var selectedItem = $('#markerItem').val();       if (selectedItem == 'b') {           img.attr('src', 'broken.png');       }       else if (selectedItem == 'd') {           img.attr('src', 'damage.png');       }       else if (selectedItem == 's') {           img.attr('src', 'scratch.png');       }       else if (selectedItem === null || selectedItem === undefined || selectedItem === "") {           img.attr('src', 'damage.png');       }       img.appendTo('#container');   }),    $("#marking").click(function (e) {       debugger;       e.stopImmediatePropagation();       $('img[id$="marking"]').remove();   }) });   HTML:


What is the difference between these responses?

Suppose I tell you that you can't understand what this means "fdhfshdgfjdsghskdrhgyc". You could reply "Yes, I can" or "No, I can". For the first phrase, it means that you are able to understand what that series of letters means and you are affirming your knowledge. The second phrase means that you are rejecting the idea that you can't understand it and are insisting that you can. These responses pretty much mean the same thing, correct?


Is it possible to create a URL or hyperlink that opens up a mail search in Outlook 2010?  I often have e-mail messages associated with Outlook tasks, so I'd like to include in my task notes a URL that brings up an Outlook search for e-mail belonging to a specific category.


Whenever I change my desktop background, it changes my laptop's background as well

I recently got a new laptop. They're both Windows, so I used the same Microsoft account to log into both. When I turned my laptop on, it had the same background as my desktop, so I changed it, only to go back to my desktop and see that it changed to my laptop's new background. How can I keep the backgrounds separate?


How much can I scale a photo before the quality will degrade

I'm thinking of purchasing a photo on iStock to make a poster size print. I'm pretty familiar with resolution and how it works, but before forking out the money and ending up with a print that might not be how I want, I just want to see how much I can scale the image, which is now 5474 x 3649 px (18.25 x 12.16 in.) @ 300 dpi, before the quality shifts. I'd like to keep it as sharp as possible, but I did want to have either the height or width at least 30in. If I try to do that with this particular image will it noticeably ruin/distort the quality?


A ring is a field if and only if its only prime ideal is (0)

The follow statement can be found in one of the answers .  Statement: A ring is a field if and only if its only prime ideal is $(0)$.  For this, let's assume that $R$ is a ring with $1$, and is commutative. Then does the statement still hold true? I have been trying to find the proof of this statement, but I cannot find it anywhere. If $R$ is a field, it is clear that $(0)$ is the only prime ideal. But converse is not clear to me. Thank you!


A pedestrian wishes to cross a single lane of fast-moving tra c. Suppose the number of vehicles that have passed by time t is a Poisson process of rate , and suppose it takes time a to walk across the lane. Assuming that the pedestrian can foresee correctly the times at which vehicles will pass by,   Question: 1  how long on average does it take to cross over safely? [Consider the time at which the 1st car passes.]  Question 2:   How long on average does it take to cross two similar lanes (a) when one must walk straight across (assuming that the pedestrian will not cross if, at any time whilst crossing, a car would pass in either direction), (b) when an island in the middle of the road makes it safe to stop half-way?    Attempt:   Question 1: It can be calculated by conditioning the first arrival. $E[X]=\int E[X|Y=y]f_Y(y)dy$, where $Y$ is the time of the first traffic. The answer is $(e^{\lambda a}-1)\lambda^{-1}$.  Question 2:  a) I think this is two indepedent poisson process each with parameter $\lambda$. Therefore, the sum of the two poisson process = $2\lambda$. So $E[X]=(e^{2\lambda a}-1)(2\lambda)^{-1}$.  b)I think the answer is $2*(e^{\lambda a}-1)\lambda^{-1}$


Update privilege page so it doesn't claim I can answer protected questions while I can't

The  tells me I can answer protected questions, but I still can't answer protected questions on The Workplace. I know it is  (also ); I have more than 10 reputation but the association bonus does not count.  I propose that the new user restriction privilege page's check should factor in the association bonus.


Let $f(x)$ and $g(x)$ be positive nondecreasing functions such that $ \sum_{n>1} \frac1{f(n)} \text{ and } \sum_{n>1} \frac1{g(n)} $  diverges.    (Why) must the series $$\sum_{n>1} \frac1{g(n)+f(n)}$$ diverge?


I suddenly got the File sync error (auth failed (AUTH_FAILED) message on Ubuntu 13.10. It worked flawlessly for several months. I tried all methods reported in        I can connect (so username and password are OK) but it doesn't sync.  It says  File Sync in progress" and "Getting information, please wait" and that is all. Later it says "File sync is disconnected" and still "Getting information, please wait  So, where is the problem ?


redhat/bash - two equals scripts, one get "command not found" error

I did write two scripts, where one has part simple code of the other ones and several comments in:  user : oracle both files are of oracle. both files have the execution clearance on : chmod +x fpc.sh && chmod +x bpc.sh  script that works: fpc.sh  #!/bin/bash # # author bla bla bla # ORACLE_SID=MyOracleSid PATH=/app/oracle/admin/DB/$1 TARGHET="\/app\/oracle\/admin\/DB\/$1" chmod -R 755 $PATH  find $PATH -type f -exec egrep 'ORACLE_SID' {} \; -print   script that doesn't works: bpc.sh  #!/bin/bash # # author bla bla bla # ORACLE_SID=MyOracleSid PATH=/app/oracle/admin/DB/$1 # #TARGHET="\/app\/oracle\/admin\/DB\/$1" # # # # # # # # # # # # # # chmod -R 755 $PATH  find $PATH -type f -exec egrep 'ORACLE_SID' {} \; -print   bpc.sh gets:  chmod command not found find        command not found  How is possible?  thanks for your collaboration,


How to remove old kernels on CentOS 6 (to free up boot partition)?

How does one determine which kernels to remove in order to free up some space on /boot partition.  Here is a scenario (some background info).  1. Parititon info (in case it helps)  # df -h Filesystem      Size  Used Avail Use% Mounted on ... /dev/sda1        99M   81M   14M  86% /boot ...   2. Current kernel version  # uname -a Linux serv.example.com 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux   3. All kernel versions installed  # rpm -qa | grep kernel abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64 kernel-firmware-2.6.32-431.1.2.0.1.el6.noarch libreport-plugin-kerneloops-2.0.9-19.el6.centos.x86_64 kernel-headers-2.6.32-431.1.2.0.1.el6.x86_64 kernel-2.6.32-358.11.1.el6.x86_64 kernel-2.6.32-358.el6.x86_64 kernel-2.6.32-358.23.2.el6.x86_64 dracut-kernel-004-336.el6_5.2.noarch   So...   Which kernel versions would one remove from the list above? How? A short explanation on the decision (why?) would help.


2020-03-23 13:16:34.533 26427-26427/com.android.text E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.android.text, PID: 26427     java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference         at com.android.text.MainActivity$1.onDataChange(MainActivity.java:54)         at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.2.1:75)         at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.2.1:63)         at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.2.1:55)         at android.os.Handler.handleCallback(Handler.java:790)         at android.os.Handler.dispatchMessage(Handler.java:99)         at android.os.Looper.loop(Looper.java:166)         at android.app.ActivityThread.main(ActivityThread.java:6518)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)


How can I put the computer to sleep from Command Prompt/Run menu?

I know that almost everything on Windows, like opening any sort of application, can be done from the command prompt or from the Run menu.  How can I put my computer to sleep or shut it down? What is the command for that?


My book and my teacher both said that these two statements are different:  1) $∀x∈A,∃y∈B, F(x, y)⇒G(x)$  2) $∀x∈A,(∃y∈B, F(x, y))⇒G(x)$  How can just adding an extra parenthesis make the statement different? I am not quite sure I understand.  If they are different, how are there negation different? Would the negation be as follows:  1) $∀x∈A,∃y∈B, F(x, y) ∧ ¬ G(x)$  2) $∀x∈A,(∀y∈B, ¬ F(x, y)) ∧ ¬ G(x)$    SIDE NOTE: I tried taking contrapositives, but ended up with the same expression for both. So how and why are they diffrent? $¬ G(x) ⇒ ∃x∈A,∀y∈B, ¬ F(x, y) $    Thanks


If a number is congruent to $ 1\mod 4$ or $0 \mod 4 $ , does it mean the number is a square?

Question: Let $m$ be a natural number with digits consisting entirely of $6$s and $0$s. Prove that $m$ is not the square of a natural number. Previously asked versions , so I wanted to do this using modular arithmetic with the result . First I expand $m$ in powers of $10$:  $$ m = \sum_i a_i 10^i= \sum_{i=0}^{i=1} a_i 10^i + \sum_{i=2}^{\infty} a_i 10^i$$ For some sequence of $a_i$. Now I take mod $4$ on both sides () , this leads to: $$ m \mod 4 = \sum_{i=0}^{i=1} (a_i \mod 4)(10^i \mod 4) \mod 4 + \sum_{i=2}^{\infty} (a_i \mod 4) (10^i \mod 4) \mod 4$$ I note that $10^i \mod 4 = 2^i \mod 4$, this leads to the second summation term dropping and now I have: $$ m \mod 4 = (a_o \mod 4)(1 \mod 4)  \mod 4+ (a_1 \mod 4)(2 \mod 4) \mod 4=(a_o \mod 4) \mod 4+ \left[2(a_1 \mod 4 ) \right] \mod 4$$ Now I check cases $(a_o,a_1 ) = \{ (6,0) , (6,6) , ( 0,6) , (0, 0) \}$ , it seems so that plugging $(0,0)$ gives me $ m \mod 4= 0$ which means it is a perfect square..? Where did I make a mistake? This is like saying any number ending with two zeros is a perfect square!


How to split data from column to multiple columns

I am just starting DBA and curious about how can I split entire column with data like: "1-2/456/£25.00-26.00/56/10+". My delimiter is "/" and I need to get data in 5 columns accordingly. So data to be displayed as: Col01: 1-2; Col02: 456; Col03:£25.00-26.00, Col04:56; Col05: 10+. I tried Jeff Moden, but it splits data to rows, not to columns. I am struggling to link function to use data from column, not just values.  SELECT * FROM [dbo].[DelimitedSplit8K]('Masha/Sasha/Nadia/Loki','/')   So I actually need column instead of 'Masha/Sasha/Nadia/Loki' and convert to columns, not rows.


I have some documents that are in a .chm format. I wondered if there is a file format that can be easier to navigate, supported and of equal file size in Ubuntu?  If there is, I would like to start converting all those books and probably using them with less hassle on all my Ubuntu PCs and my Android phone.


Hypothetical Scenario: You are an undergraduate physics student who has never taken a course on E&M and you are enrolled in a graduate Jackson electrodynamics course. In general you are good at math, differential equations etc., but have not mastered many of the methods especially pertinent for E&M.  You have some knowledge of the content of Griffiths book on the subject. You have four days, maybe 50 hours, to prepare for the course. What do you focus on specifically? Also this is not hypothetical.


This is a very short question and hopefully there's a short answer. I know I can use \stackrel{top}{bot} to vertically merge two symbols into one with top on top and bot on the bottom. Is there something similar for left-right merging? I ask because I want to make a += symbol (for an additive update step in code). If there's already a symbol for that, that would be OK too.


How are commutators the mathematical basis for ? What makes one say that commutators imply uncertainty principle or vice-versa?


Is it possible to dumb down the idea that "Time didn't exist until the big bang"?

So, I've asked questions before that have been met with "Time (and our laws of physics) didn't exist before the big bang" and other answers to that effect. This is massively confusing to me, for reasons. While I understand that time could neither 1.) Be measured nor 2.) quantified, I want to intuitively assume that there was some non-zero amount of time during which the universe we live in now was an empty void. An absolutely perfect vacuum. It has no significant meaning, because in an empty and timeless void the probability of a big bang is apparently 1, but I can't help but see it as that.  So, I was wondering, if someone can clarify the statement and adherence to the phrase "Time didn't exist before the big bang". Whenever I ask about a question before it, I'm met with that statement (in a generally dismissive manner).


How to compute $\int_{-\pi}^\pi\bigg(\sum_{n=1}^\infty\frac{\cos(nx)}{2^n}\bigg)^2dx$

I am trying to compute:    $$\int_{-\pi}^\pi\bigg(\sum_{n=1}^\infty\frac{\cos(nx)}{2^n}\bigg)^2dx$$   I tired to expand the integrand but it is too messy and lengthy.The Thing is I'm not sure how to deal with the square.  If anyone has an idea on how to compute I will appreciate.


How can I upload an image to use it in a comment?

I needed to reference an image in a , but it's not possible to upload a picture in a comment. So I used the workaround to  and delete the added image and text in the answer, ending up with a stack.imgur.com image link. I did this because the .  Why it's not possible to upload an image in a comment?


this is my first post. I'm fairly new to Blender (CG in general) and am having trouble rendering my scene because the only thing being rendered is the world color. I know there were a few other people on this site with this exact situation, but so far every object in my scene is render-activated in the Outliner, all the correct render layers are selected, I am rendering with CPU, and the camera Aperture is correctly set to zero, so I'm not sure what else to look at. It was working earlier today, so I guess I must've accidentally changed something?  Edit: My render slot isn't completely empty, only my world color (dark green) is being rendered.


I'm not exactly sure how the intermediate value theorem can be applied to the following question especially with the defined function $g(x)$ which is provided below. Using the intermediate value theorem with $g(x)=f(x)-x$ and suppose $f:[0,b] \to [0,b]$ is continuous. Prove there is at least one $c \in [0,b]$ such that $f(c)=c$. Thanks


Centripetal force is directed towards the center, then why does an object placed on a rotating disc move outwards?  On the other hand,  when a particle is placed in a cylindrical container containing water that rotates, the particle moves towards the center. Why does this happen?


Migrated question not updated in my favorite tab

was initially posted on StackOverflow (notice the SO link, though it redirects to Programmers.SE). It has then been migrated to  where it's still open. It's now not possible anymore for me to access the question on SO.   When the question was still on StackOverflow, I've added it to my favorites. The problem is that now, when I go to my favorites tab, I see it as [on hold], but it's redirecting to the correct new question on Programmers.SE. See my favorites tab below :     The link in the favorite tab is still the one of the question as it was on StackOverflow. The votes view and answers are as well.   Now what I don't understand is why is it displayed in my SO favorite's tab since this link is deprecated ? In my opinion it should have been removed from my favorites automatically during the migration. It could also have been added to my Programmers.SE favorite tab in lieu of my SO's favorite tab.   Is that a bug, a feature or a missing feature ?


Traveling to Schengen Area with a new passport

I'm traveling to the Schengen area again within the 180 day period. I have already spent 50 days within the area but have returned back to the States. However, upon returning, my passport was stolen and I've been reissued a new passport. Because I have a new passport, there's no record of me being in the Schengen area in the actual passport itself. Is it possible to overstay the 40 days that I have left for the 90/180 day rule? I want to travel for longer but I only have 40 days left in the area.


How do I fix my Minecraft inventory? I am trying to select items, but ever since the recent update, I have to click on the item and drag it to my inventory. It isn't working to fast move it using shift either. Also when I go to the crafting table it won't let me separate the items only one at a time?


Let A, B and C be sets. Prove that $A \times (B-C) = (A \times B) - (A \times C)$

Because of distributive properties we know this is true, but I am stuck on showing the proof. I know: Let $x\in A\times (B-C)$. This means $x\in\mathbb{A}$ and $x\in B$ but $x\ not in C$. Assume $x\in A$ then from here im not sure where to go.


Determine whether the series $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ converges or diverges. If it converges, find the bounds for the sum of the series. A) Converges, $\frac3{2}$ < $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ < $\frac5{2}$ B) Converges, 2 < $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ < 3 C) Converges, 4 < $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ < 6 D) Converges, 6 < $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ < 8 E) The series diverges I know the series converges. Using p-Series, p=$\frac3{2}$ meaning that p>1 therefore the series converges. However, I don't know how to find the bounds for the sum of the series


Does Dueling Fighting Style apply to thrown weapons?

PHB p. 72 (and others)     Dueling      When you are wielding a melee weapon in one hand and no other weapons, you gain a +2 bonus to damage rolls with that weapon.   PHB p.147     Thrown. If a weapon has the thrown property, you can throw the weapon to make a ranged attack. If the weapon is a melee weapon ...   So a Handaxe is a simple melee weapon with the thrown property so, as written, it can benefit from Dueling whether used for a melee or ranged attack because it remains a melee weapon irrespective of how it is used.   Conversely, it cannot benefit from the Archery Fighting Style because it is never a ranged weapon even when making a ranged attack.  Where it gets really interesting is in the interaction with Two-Weapon Fighting (p.195)     When you take the Attack action and attack with a light   melee weapon that you’re holding in one hand, you can   use a bonus action to attack with a different light melee   weapon that you’re holding in the other hand. You don’t   add your ability modifier to the damage of the bonus   attack, unless that modifier is negative.      If either weapon has the thrown property, you   can throw the weapon, instead o f making a melee   attack with it.   So, with 2 Handaxes and I throw the first, because it is a light weapon, I can use Two-Weapon Fighting to use the other (either for melee or ranged) and benefit from Dueling because I am now "wielding a melee weapon in one hand and no other weapons."  Am I reading this right?


Subspace of a separable metric space is also separable

I see a result on a textbook but I do not know how to prove it. let $(X,d)$ be a separable metric space and $A \subset X$. Suppose that the topology induced on $A$ by the metric $d_A$ coincides with the topology induced on $A$ by the topology on $X$ by the metric $d$.Then the metric space $(A,d_A)$ is separable.  Of course we have to find a countable dense set of points in $A$. But I cannot find way to do this because although we know there exists a countable dense subset of $X$, some points in $A$ may be approximated by a sequence of points in $X-A$, and I don't know how to find points in $A$ to replace them.  Can anyone help?


Mann-Whitney U test with unequal sample sizes

I have two unequal groups (94 and 52) and want to run a Mann-Whitney U-test to see whether their scores on a measured variable differ. I see that it is OK to do with Kruskall-Wallis, does the same apply to Mann-Whitney?


How can I make complex gradient images like these in Photoshop or Illustrator?

How can I create these types of gradient images in Photoshop or Illustrator?  I don't understand how they made these swooshes.    Lower picture is what I came up with... but it's not the same.  Your help is much appreciated.   Greetings, Pim


My question is: How to natively enable TRIM in Sierra for a 3rd-party SSD?  A solution I found involves installing an "out of the App Store" app that will probably ask for admin credentials etc which I generally don't like.   Is there a native way in OS Sierra to enable TRIM ? Since many paid apps like the one I mentioned are just GUIs for basic BSD tools already in Sierra.   I'm all new to SSDs and just heard about TRIM and how it can help boost the life of your SSD etc.   Thanks !


How does Lecturer in UK compare to other systems?

I have never lived in UK, I did my graduate studies in the US. I was a postdoc in Europe, but the situation there seemed grim, I applied for a few positions only, one of them was this junior prof job in Germany (in theory, an assist prof equivalent of US ) though I figured out despite it being an assistant professorship, it is somewhere near the lecturer position of USA and a bit post-doc? So definitely not as an assistant prof equivalent of a US system in practice. Perhaps a research leader junior prof position could work better in that sense. But how does it work in UK? Currently I am in my country of origin, to be fair, the work is good, practically Tenured (what I need to do is very minimal to complete the track), there are some opportunities for research that I need to apply to (I am certain some grants would be easy with my background meaning a PhD abroad, if not the more challenging), but the university / department and students lack research vigor in every way And research is all I want to do to be honest, it is not a top notch school, I simply wasn't able to attend to some interviews while I was living abroad for top tier private unis and now positions are canceled, and the top tier state schools require just too much paperwork which might take years. I am happy with the job in certain ways, but it is not fulfilling for me in research and standing. Now, I see this great fit in UK, at a top university, I know the professors there, it is so fitting to my research line etc. Though I don't know anything about the system and how much job safety there is. It is for about one year only, but with a chance to extend the contract. Now that I have an actual job to lose, and a pandemic, I feel like I could use some more information on  where the lecturers stand,  what is the usual timeline,  are people offered tenure track positions afterwards?  how long it takes?  what it requires?  How much research is involved? (it implies both coursework and grad students/research opportunity) etc in the ad.  Also, I have never been confident in just asking for a job, so I saw this ad online (I always only apply through listed ads), but I know many people put ads only after they have their strong candidate. Although I know the prof there I don't want to ask, at the same time I feel a bit uneasy applying if they already have a candidate. How does it usually work? Also, not sure whether they would prefer someone living abroad during a pandemic.


What is the statement to use for executing a command allied with a different software in python?

I am using Unix OS and I want to know how to execute a command that is executable from a different software in Python script.      I have this software installed into my system called HAL Tools and it has a command called maf2hal with two arguments which are input and output files. The path for the command is saved in my .bash_profile under PATH variable. I call the command from UNIX likewise:  [root ~]$ maf2hal inputfile outputfile   I want to call this command from a Python script. What is the statement or function that I need to use.


This is a two part question. First part: a few diseases require or allow an article (the flu, the measles, the shingles), but most do not permit it (polio, diarrhea, cancer, COPD). You can test this in the sentence: "Last year I had [the][disease]". What determines when an article is not permitted or required before the name of a disease? Second part: If someone does use an article in front of a disease that normally does not need one-- "In January my cousin got the Covid"--is this more than just a solecism? It might not be an error, but rather a style of speech. But it implies, to me, that the speaker is uneducated or from a lower economic class.


how to fix this kind of git conflict: .merge_file_a

I am working on an android project but i got this kind of conflict. I never met this before any clue which one should i keep?  <<< .merge_file_a36756     @Inject     TPOmnitureReporter reporter;      private TPCardAdapter adapter; =======     private TPAdapter adapter; >>>>>>> .merge_file_a32544   EDIT  My question is i am not quite sure which part of code is mine. Usually it should be <<< HEAD is my code. But it is .merge_file_a now.


Why do we need a pull-up resistor if we can just make a short to the power source?

I saw the term pull-up resistor being mentioned everywhere, but I haven't grasp the reasoning behind its use.  For example, I saw one in the book Practical Electronics for Inventors, in this schematic for 555 timer arranged for monostable operation. .   It is explained that      ... pin 2 is normally held high by the 10-k pull up resistors.   But why use a resistor? If we want to keep pin 2 high, can we just make a short from this pin to Vcc? If we just want to limit the current, I thought we can do it somewhere else, for example by adding a resistor between the output pin 3 and the ground?


Cannot change powershell default font to Lucida Console

This is a trivial problem, but it annoys me that I can't get to the bottom of it:  I'm running Windows 8, Powershell version 3.0. By right-clicking on the title bar I can go into the Properties and change the font, size, background colour etc without any problems.  After closing and restarting Powershell, all of the changes I've made stick except that if I've set the font to Lucida Console then on reopening I get the Raster font.  (Note that all of the above applies to when I run Powershell as Administrator.)  So:   If I set the font to Lucida, then it switches to Lucida for the remainder of the session. If I set the font to anything other than Lucida, then it stays as that after closing and reopening. If I alter the window sizes or text colours or anything else, the changes persist after reopening. The only thing that goes wrong is that if I set the font to Lucida, it switches to 'Raster fonts' when I reopen. But cmd and powershell ISE don't have this problem - only the powershell console.   Can anyone suggest what might be going wrong?  (One observation I've made is that upon re-opening Powershell after setting the font to Lucida, at first the width of the window is what it would be if the font were Lucida, but then after a second, it widens slightly to accommodate the raster font.)


I am trying to reconcile the definition of Inner Product Spaces that I encountered in Mathematics with the one I recently came across in Physics.  In particular, if $(,)$ denotes an inner product in the vector space $V$ over $F$:    $(u + v, w) = (u, w) + (v, w) \text{ for all } u, v, w \in V$, $(\alpha v, w) = \alpha(v, w) \text{ for all } v, w \in V$ and $\alpha \in F$, $(v, w) = (w, v)^* \text{ for all } v, w \in V$, (* denotes complex conjugation)   were some of the properties listed in my mathematics course.    In physics, however, the inner product was said to be linear in the second argument and $(v,\sum(\lambda_i w_i)) = \sum(\lambda_i (v,w_i))$ where $v$ and $w_i$ are kets in Hilbert space and $\lambda_i$ are complex numbers.    To me, these properties of an Inner Product are not compatible.  If the first definition of inner product is correct, then I think $(v,\sum(\lambda_i w_i)) = \sum((\lambda_i)^* (v,w_i))$ where $^*$ denotes complex conjugation.


Installing MATLAB error: can't find glnx86 folder

I am attempting to install MATLAB on Ubuntu 14.04 LTS. I am following .   I downloaded the MATLAB 2015a ISO file. I then typed these commands into the terminal:    $ sudo mkdir /usr/local/iso $ cd ~/Downloads $ sudo mount -o loop R2015a-glnxa64.iso /usr/local/iso mount: block device /home/matta/Downloads/R2015a-glnxa64.iso is write-protected, mounting read-only $ cd /usr/local/iso $ ./install ./install: 1: eval: /usr/local/iso/bin/glnx86/install_unix: not found    The glnx86 folder does not exist but there is a glnxa64 folder in that location with an 'install unix' file inside. I tried modifying the install file but everything is read-only so I can't.  I have been using linux for 2 days now so sorry for any glaring errors.


Why is $SO(3)\times SO(3)$ isomorphic to $SO(4)$?


How to transfer between International T2 to Domestic 1B terminals in Mumbai?

I will be arriving in Mumbai Terminal T2 on a Turkish Airlines international flight. I have a separately-purchased IndiGo ticket 5 hours later from Terminal 1B (Domestic). In the past I heard of a free bus to transfer.    Is that still the case and if not how do I get to Terminal 1B from Terminal 2?


cannot find correct iwlwifi-8265 version

I have a Thinkpad L380 with Intel 8265, on which I installed Debian 9 base system (from a netinstall USB stick). I downloaded , which had the file iwlwifi-8265-22.ucode, which I copied to /lib/firmware and rebooted the machine.  The output of  dmesg | grep iwlfifi has the following lines. (There might be some typos, since Ihad to read it from the laptop and type it here, since iwlwifi isn't working on it, and I can't connect it to ethernet for want of a mini-RJ45 connector!)  firmware: failed to load iwlwifi-8265-26.ucode (-2) Direct firmware load for iwlwifi-8265-26.ucode failed with error -2   Similarly for -25, -24 and -23. Then  firmware: direct-loading firmware iwlwifi-8265-22.ucode loaded firmware version 22.361476.0 op_mode iwlmvm Detected Intel(R) Dual Band Wireless AC 8265 REV=0x230 L1 enabled - LTR enabled L1 enabled - LTR enabled wlp2s0 renamed frm wlan0   Looking at many online discussions/blogs discussing similar problems, I tried modinfo iwlwifi | more which gave (the first few line)  filename: /lib/modules/4.9.0-8-amd64/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko licence: GPL author : .... descrption: Intel(R) Wireless Wifi driver for Linux ... ... firmware: iwlwifi-8265-26.ucode ...   Where can I find version -26 (or anything above -22)? The discussion  mentions that the drivers are maintained at kernel.org and asks users to contact the support people at kernel.org, but there I could only find -22.   Is there any workaround for this problem?


I found an interesting thing of using "is" to judge whether two variable are same. Here are my code and results:  a = 256 b = 256 c = 257 d = 257 print(a is b) print(c is d)   and the results show:  True False   Actually, when the number is bigger than 256, it turns 'False'.  Another example:  a = 'a' * 20 b = 'a' * 20 c = 'a' * 21 d = 'a' * 21 print(a is b) print(c is d)   Results:  True False   Similarly, when n in "'a' * n" is bigger than 20, it turns 'False'.  But when I put this into a function, it doesn't matter how big is the number:  def is_test(a):     x = a     y = a     print(x is y)  is_test(257) is_test('a' * 21)   the results are always 'True'  I ran the code on Jupyter Notebook. Anyone can explain this to me? Thanks


How can I solve this problem?  Prove that for all $r\in (0,1]$, there exists a Vitali's set $V\subseteq [0,1]$ such that $\mu^{*}(V)=r$  My approach: I know that there exists a Vitali' set $V$ such that $V\subseteq [0,1]$ and I know that set is no Lebesgue-measurable,  but also I know that the value of is not known $\mu^{*}(V)$. So how can I prove that using that hypothesis we have $\mu^{*}(V)=r\in (0,1]$? I think that prove is by construction, but I don't know how can I start de construction.


Exam exercise on sequence $a_n = \sin(n)$

Prove that the sequence $a_n = \sin(n)$ cannot converge when $n \rightarrow \infty $  I tried to find two subsequences that converge to different values but I am having trouble with the fact that $n \in N$ and so I can't pick values in the whole domain of the function.  Maybe there is an other way.


An error in my understanding of entanglement

Based on my knowledge of quantum entanglement, I can set up a scenario which leads to a contradiction with the No-communication theorem. Please help me find the flaw.   Suppose Alice wants to communicate a message to Bob (1 or 0). Alice has 100 electrons (which we will call a_1, a_2, ..., a_100) and Bob also has 100 electrons (which we will call b_1, b_2, ..., b_100). Each one of Alice's electrons is entangled to exactly one of Bob's electrons such that a_n and b_n have opposite spin. First, Alice measures the spin of each of her electrons along the z axis and records each result. Then, if Bob wants to communicate a zero, he does not measure the spin of his electron, so that when Alice measures her's a second time about the z axis, she gets the same results as in her first measurement. If Bob wants to communicate a 1, he measures the spin of each one of his electrons about the x axis so that when Alice makes a second measurement of each of her electrons about the z axis, her results should not be correlated to the first measurement she took. If everything I said were true, this would provide a very high probability for Bob to correctly transfer a bit of information to Alice, potentially at faster than light speeds which violates the No-communication theorem.


Feeling disempowered by Ubuntu's new bug reporting policy/system. My Intel i5 machines have all experienced daily (if not more frequent) freezes, but it's very difficult to report bugs now and policy instead is just for ubuntu to collect counts; no way for me to see that anything is (or is not) being worked on.  I've just experienced a freeze and now on reboot I'm stuck in a cycle of "Ubuntu has an internal error" (presumably Ubuntu never experiences an external error...) do you want to report it? Yes. Oh another internal error...    It looks like this report could contain useful information. Is there anyway to make sure it gets provided to the people who can fix it?


Php file upload error if file has ' in title

As the title says. If a user tries u upload a file with ' in title it throws error(it won't connect to server). Should I replace that sign during upload or something else. It just simple connecting to database      $b = "select * from doc";     $rez1 = mysql_query($b) or die("error");


I have a class with two class methods (using the classmethod() function) for getting and setting what is essentially a static variable.  I tried to use the property() function with these, but it results in an error.  I was able to reproduce the error with the following in the interpreter: class Foo(object):     _var = 5     @classmethod     def getvar(cls):         return cls._var     @classmethod     def setvar(cls, value):         cls._var = value     var = property(getvar, setvar)  I can demonstrate the class methods, but they don't work as properties: >>> f = Foo() >>> f.getvar() 5 >>> f.setvar(4) >>> f.getvar() 4 >>> f.var Traceback (most recent call last):   File "<stdin>", line 1, in ? TypeError: 'classmethod' object is not callable >>> f.var=5 Traceback (most recent call last):   File "<stdin>", line 1, in ? TypeError: 'classmethod' object is not callable  Is it possible to use the property() function with @classmethod decorated functions?


Can a simulacrum "regain" HP by being True Polymorphed into a creature that can do so normally?

If a simulacrum is polymorphed through True Polymorph into a creature that can regain hit points normally, can the simulacrum regain hit points while polymorphed in that way?


Accessing a Custom Configuration Section in .Net

I am trying to access settings in my config file, which is a series of xml elements listed as such:  <databases> <database name="DatabaseOne" Value="[value]" /> <database name="DatabaseTwo" Value="[value]" /> </databases>   Now I want to access it. I have set up classes like so:  Public Class DatabaseConfigurationHandler     Inherits ConfigurationSection      <ConfigurationProperty("Databases", IsDefaultCollection:=True)> _    Public ReadOnly Property Databases() As DatabaseCollection         Get             Return CType(Me("Databases"), DatabaseCollection)         End Get     End Property End Class  Public Class DatabaseCollection     Inherits ConfigurationElementCollection      Protected Overloads Overrides Function CreateNewElement() As ConfigurationElement         Return (New Database())     End Function      Protected Overloads Overrides Function GetElementKey(ByVal element As ConfigurationElement) As Object         Return (CType(element, Database).DatabaseName)     End Function  End Class  Public Class Database     Inherits ConfigurationElement      <ConfigurationProperty("name", IsKey:=True, IsRequired:=True)> _        Public Property DatabaseName() As String         Get             Return Me("name").ToString()         End Get         Set(ByVal Value As String)             Me("name") = Value         End Set     End Property       <ConfigurationProperty("value", IsRequired:=True)> _ Public Property DatabaseValue() As String         Get             Return Me("value").ToString()         End Get         Set(ByVal Value As String)             Me("value") = Value         End Set     End Property  End Class   I want to be able get the element by it's name and return the value but I can't see to do that:  Dim config As New DatabaseConfigurationHandler                 config = System.Configuration.ConfigurationManager.GetSection("databases/database")                 Return config.Databases("DatabaseOne")   Am I missing some code, what am I doing wrong? Any other errors in the above?  Thanks.


Let $(\Omega,\Sigma,P)$ be a probability space and $X: [0,\infty) \times \Omega \to \mathbb{R}$ be a Gaussian process (i.e. all finite linear combinations $\sum_i a_i X_{t_i}$ are Gaussian random variables). If the process is continuous, it seems to be clear that the process $Y_t (\omega) = \int_0^t X_s(\omega) ds$ is a Gaussian process.   Is it true that $Y_t$ is a Gaussian process even if $X$ is only assumed to be measurable? I am working through the derivation of Kalman Filter in the text by Bernt Oksendal Eq 6.2.10 (fifth edition) and this seems to be a way to show that $M_t$ (in the book) is a Gaussian process.


I want to write a theorem with letter G, which has over ^ it. I tried $G^{\^}$, but that doesn't work.


I am using a Lenovo Yoga 2 Pro with an i7 processor. The Ubuntu download says that it's for AMD64. Will Ubuntu 14.04 work on my device?


What’s the limit we have seen of Hulk's strength?

I understand that the Incredible Hulk's strength is next to infinite, fueled by his anger; but what’s some of the greatest applications of this that we’ve seen? Either from the movies or the comics. At this point the greatest thing I have seen him do was when he one-punched the giant worm carrier in the first Avengers movie. Is there a larger application of his strength somewhere though, something more impressive? Examples are appreciated


Camera in Blender 2.8 only rendering the background

I am currently modelling a kitchen bench and sink, and I went to make a test render, but it just showed up as the background color. no matter how I aligned the camera the render stayed the same.   I am currently in rendered view.  Any help would be appriciated, and if you need me to clarify anything I would be glad to.


Prove that the $\sum_{x=1}^{n} \cos^2(x)$ is bounded

I need to show that $$\sum_{x=1}^{n} \cos^2(x)$$ is bounded above. I know that there's a similar formula for $$\sum_{x=1}^{n} \sin(2x)$$ but I can't seem to find it anywhere.


Can I no longer see who closed my question?

Some months ago, I could see who closed a question, but not anymore? I screenshot .


According to , Google+ APIs will shut down on March 7, 2019. Since I am using Google to provide authentication for several web sites (SE sites included), I am wondering if SE network will be affected by this.  Question: Will Google+ APIs shutting down affect signing in into Stack Exchange sites?


"A total of 0.0606 moles of NaOH was" or "were"?

I've been trying to work out which of the following make best grammatical sense but have been looking at them for so long now that my mind has turned to mush and they both seem wrong.    Which is better form:     A total of 0.0605 moles (3 s.f.) of NaOH was originally added to the aspirin   Or:     A total of 0.0605 moles (3 s.f.) of NaOH were originally added to the aspirin   I know that moles is plural but personally I think was is the better of the two.  I would appreciate some opinions on which reads better to people.


Aligning long table captions in the list of tables using tocloft

I am using the tocloft package so that the word Table shows up before the number in the list of tables.  When I do this, the tables with long captions wrap to the next line but are not aligned.  This is the code that I am using.   \documentclass [12pt] {article} \usepackage{times, url} \usepackage[left=1.5in,top=1in,bottom=1in,right=1in,footskip=0.5in]{geometry} \usepackage{float} \usepackage{booktabs,threeparttable} \usepackage[subfigure]{tocloft} \usepackage{subfigure} \usepackage[justification=centering]{caption}  \renewcommand{\cfttabfont}{Table }   \begin{document}   \listoftables    \begin{table}[htbp] \begin{threeparttable} \captionsetup{font=normalsize} \caption{Summary Statistics for Structural Housing Characteristics.  Central Kentucky Data, 2000-2011. N=142,164.} \centering \footnotesize \label{table:sumstatsfull} \begin{tabular}{lcccc} \hline Variable & Mean & Std. Dev. & Min & Max \\ \hline \end{tabular} \end{threeparttable} \end{table}  \end{document} `  I want the Table to precede the table number but I want the caption to be aligned like it is when the code below is used  ` \documentclass [12pt] {article} \usepackage{times, url} \usepackage[left=1.5in,top=1in,bottom=1in,right=1in,footskip=0.5in]{geometry} \usepackage{float} \usepackage{booktabs,threeparttable} \usepackage[subfigure]{tocloft} \usepackage{subfigure} \usepackage[justification=centering]{caption}  %\renewcommand{\cfttabfont}{Table }   \begin{document}   \listoftables    \begin{table}[htbp] \begin{threeparttable} \captionsetup{font=normalsize} \caption{Summary Statistics for Structural Housing Characteristics.  Central Kentucky Data, 2000-2011. N=142,164.} \centering \footnotesize \label{table:sumstatsfull} \begin{tabular}{lcccc} \hline Variable & Mean & Std. Dev. & Min & Max \\ \hline \end{tabular} \end{threeparttable} \end{table}  \end{document}


i have an array like this:      $_SESSION = Array (          [chose_image] => Array (              [56915e7c48177e251e1c16f1] => Array (                 [title] => title1                 [author] => author1                  [watermark] => watermark1                  [file_name] => name1.jpg                  [visible] => 1                  [_id] => MongoId Object ( [$id] => 56915e7c48177e251e1c16f1 )              )              [56915dad48177ee21d1c16f0] => Array (                 [title] => title2                 [author] => author2                 [watermark] => watermark2                 [file_name] => name2.jpg                 [visible] => 1                 [_id] => MongoId Object ( [$id] => 56915dad48177ee21d1c16f0 )             )         )     )   And I would like to delete the whole array:  Array (              [56915e7c48177e251e1c16f1] => Array (                 [title] => title1                 [author] => author1                  [watermark] => watermark1                  [file_name] => name1.jpg                  [visible] => 1                  [_id] => MongoId Object ( [$id] => 56915e7c48177e251e1c16f1 )   by using the [$id]. It is very important to do this by $id, because the array is dynamically filling by users. Is it possible?


Edit 2: At the bottom I have updated the question after incorporating the answer from here:  I created a function to display a command in bold with optionally giving the man page section in parenthesis. \usepackage{xparse} \newcommand*{\man}[2][]{%    \textbf{#2}\IfNoValueF{#1}{(#1)}% }  Now I also want to be able to create an index entry for these commands. So I created a wrapper command: \newcommand*{\mani}[2][]{%    \man[#1]{#2}%    \index{#2@\man[#1]{#2}}% }  However, sometimes I want to create an index entry using the same formatting, but not print the command in the running text. Here is a MWE: \documentclass{memoir} \usepackage{xparse} \newcommand*{\man}[2][]{%    \textbf{#2}\IfNoValueF{#1}{(#1)}% } \newcommand*{\mani}[2][]{%    \man[#1]{#2}%    \index{#2@\man[#1]{#2}}% } \makeindex  \begin{document} Only an index entry: \index{ssh-keygen@\man[1]{ssh-keygen}} Hello world  Command and index entry: \mani[1]{ssh-keygen}  \printindex \end{document}  The file output.idx contains two lines, the second containing an additional space. The question thus is, why is there an additional space and how can I fix it so there is no additional space? \indexentry{ssh-keygen@\man[1]{ssh-keygen}}{1} \indexentry{ssh-keygen@\man [1]{ssh-keygen}}{1}  Edit 1: I've added a screenshot of the result of this extra space: two identical index entries are printed.  Update I have updated my code as per the provided solution but I now get an error message which I do not understand. \documentclass{memoir} \usepackage{xparse} \makeindex \NewDocumentCommand\man{om}{%    \textbf{#2}\IfNoValueF{#1}{(#1)}% } \makeatletter \newcommand*{\mani}{%    \@bsphack    \begingroup    \@sanitize    \@mani } \newcommand*{\@mani}[2][]{%    \man[#1]{#2}%    \@wrindex{#2@\string\man[#1]{#2}}% } \makeatletter   \begin{document} Two separate commands: \man[1]{ssh-keygen}\index{ssh-keygen@\man[1]{ssh-keygen}} Hello world  One command: \mani[1]{ssh-keygen}  \printindex \end{document}  OverLeaf states:  The compiler is having trouble understanding a command you have used. Check that the command is spelled correctly. If the command is part of a package, make sure you have included the package in your preamble using \usepackage{...}.  The log file reports: ! Missing number, treated as zero. <to be read again>                     { l.25     One command: \mani[1]{ssh-keygen}                                            A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.)


I enchanted my Elvish bow to do frost damage.  However it only had 14 charges and has since run out.  Is there a way for me to recharge it? or is that bow kinda done for me now?


The question goes like this:     Let $B=\{z\in C: |z|<R\}$ and $\partial B$ is the circle of radiu $R$. If $f$ is a non-constant analytic function on $B$ such that $|f|$ is a constant on $\partial B$, then $f$ must have a zero in $B$   My attempt:  From the assumption that $f$ is a non-constant analytic function on $B$, we have the maximum of $|f|$ is achieved on $\partial B$. Then I got stucked... I believe that since $\partial B$ is constant, and $f$ is a non-constant, the value of $|f|$ must variate in the interior of $B$ so there is a zero. But how to prove it mathematically?


If a package is available as both a deb and a snap, which method is preferrable?

Of course for most packages the answer is trivial: if it's some tool or library, deb is the only option, while for some proprietary software snap is the only option.  It seems Ubuntu is heavily pushing and promoting Snap packages, citing advantages in packaging, isolation, security, updates, etc. yet all applications that ship with Ubuntu 18.04 are installed as deb packages.  One example is Firefox, which is a package that should be kept up-to-date for security reasons, and that in the past had conflicts with distribution package maintainers about security and branding (Iceweasel). Yet Canonical chose to ship Firefox as a deb package.  For packages that have both a snap and a deb, this raises the question: Which one should you install? And if the answer is snap, should I actively migrate installed deb's?


Wrapping query in IF EXISTS makes it very slow

I have the below query :  select databasename  from somedb.dbo.bigtable l where databasename ='someval' and source  <>'kt' and not exists(select 1 from dbo.smalltable c where c.source=l.source)   The above query completes in three seconds.  If the above query returns any value, we want the stored procedure to EXIT,so I rewrote it like below:  If Exists( select databasename  from somedb.dbo.bigtable l where databasename ='someval' and source  <>'kt' and not exists(select 1 from dbo.smalltable c where c.source=l.source) ) Begin Raiserror('Source missing',16,1) Return End   However this is taking 10 minutes.  I can rewrite the above query like below, which also completes in less than 3 seconds:    select databasename  from somedb.dbo.bigtable l where databasename ='someval' and source  <>'kt' and not exists(select 1 from dbo.smalltable c where c.source=l.source if @@rowcount >0 Begin Raiserror('Source missing',16,1) Return End   The issue with above rewrite is that the above query is part of bigger stored procedure and it returns multiple result sets. In C#,we iterate through each result set and do some processing.  The above returns an empty result set, so if I go with this approach, I have to change my C# and do deployment again.  So my question is,     why does using just IF EXISTS changes the plan to take so much time?   Below are the details which may help you and let me know if you need any details:   Create table and statistics script to get same plan as mine   Slow Execution plan Fast Execution plan         Note: Both queries are the same (using parameters), the only difference is EXISTS (I might have made some mistakes while anonymizing though).  The table creation scripts are below:    -- small table stats   -- big table stats


What is the best way to represent show and hide in icons?

I have a web page that has a list of columns of information.  All columns have names and then some of the columns have items in them.   I want to have an icon to represent   Hide all empty columns Showing all columns   All of the icons i see for hide look like "delete" so i want to see if there are any representations of "hide" icons that don't look like delete.  And for "show" the only thing i see is an eye graphic which doesn't seem very intuitive to me.  Does anyone have any recommendations for good "hide" and "show" icons?


Inequality for the combined resistance of two resistors connected in parallel

Exact question: In electric circuit theory, the combined resistance $R$ of two resistors $R_1>0$ and $R_2>0$ connected in parallel obeys $$\frac{1}{R}=\frac{1}{R_1}+\frac{1}{R_2}$$  Show that $R<\sqrt{\frac{R_1R_2}{2}}$.  This proves that $R$ cannot be large if the individual resistances $R_1$ and $R_2$ are small.


Why doesn't TeX have a debugger? And by 'debugger' I mean a dedicated application in which you can set breakpoints and watch the values of registers, macros, etc. as they change in real time, maybe even preview, say, what a box register would look like if it was rendered right now, and try out what an ad-hoc TeX expression would expand to right now, and step through a macro expansion one expansion at a time?


I'm planning to buy a camera for myself, where I came across the term DSLR and SLR.  I'm a novice in photography thus, not knowing the actual meaning of both the term.  Would like to know more about the use of DLSR/SLR camera's, and which one I should buy?


Ceramic caps vs electrolytic. What are the tangible differences in use?

A quick google around and all I seem to be able to find are people talking about the physics & the chemistry of the capacitors but not how this affects choosing which to use.  Avoiding talking about the difference in their make-up, and the larger capacities found in electrolytic caps, what are the main thoughts that drive which type of capacitor to use for an application?  For example, why do I see it suggested to use ceramic caps for power decoupling per microprocessor & a larger electrolytic capacitor per board? why not use electrolytic all around?


Monthly income in US Visa application DS-160

I'm applying for B1/B2 visa. In DS-160, it asks for      Monthly Salary in Local Currency (if employed)   However it doesn't mention anywhere if this should be gross (before tax deductions) or net (after tax deductions, whatever is credited into my account every month).  What should I fill here?


Ramsey number for tree and complete graph

I am having a lot of trouble understanding Ramsey theory.  I am working on an exercise that asks for the Ramsey number $R(T,K_{1,n+1})$ where $T$ is a tree with $m$ edges and $n$ is a multiple of $m$.  I am not sure what exactly the Ramsey number for this means or how to begin finding it.  I understand that usually problems like these involve finding lower and upper bounds.  In the linked problem,  I am not understanding how the following claim is made:   Suppose you have the graph $G=(\frac{n−1}{m−1}+1)×K_{m−1}$, Then $T_m$ is not in $G$, and $K_{1,n}$ is not in $\bar{G}$. I am also looking for some help with the logic for finding the upper bound.  I am trying to use the observation that you can pick the root of the tree or the single node in the bipartite graph but from there I can't see a construction for the desired objects.


Pickled/preserved lemons/limes - grams of salt per kilogram of fruit?

[ I think this question here was originally too unclear. because I was still researching and figuring out exactly what I wanted to ask when I posted it. I edited it a few times, but I think my editing has changed the question enough that it's no longer clearly the same question as when I first posted it, so I decided I should probably post . ]  I make sauerkraut with 20 grams of salt per kilogram of cabbage.  Is the proportion different for pickling lemons/limes? I would guess maybe lower because of the citric acid already there...? I found  saying 5~10% for "North-African style", which is what I think I'm going for. (I used to get them at Morrocan stores, but the city I live in now doesn't have any.)  But if that "5~10%" is really by weight in the same way, then that's a lot more than the 2% for sauerkraut, which is surprising and confusing.  Also, I don't add any water to my sauerkraut, but maybe that's necessary for lemons/limes? In which case I would just salt the water at the same salt/water ratio as the salt/fruit, I assume?  The ones I used to get, I'm not sure, but I think they used .


Why does default sort produce different results with same line beginnings?


How to print a list with each element's index? - Python

still pretty new to Python and programming in general. My current task is to print each item of a list on separate lines with an index identifier in front of it. E.g. My list is currently: ['Ada Log\n', 'Ena Blue\n', 'Kin Wall\n', 'Kin Wall\n', 'Foxy Rex\n', 'Esk Brown']  I want this to output as... [1] Ada Log  [2] Ena Blue  [3] Kin Wall  [4] Foxy Rex  [5] Esk Brown  So that the numbers 1-5 can be used as a further input to produce more information. Thanks for any feedback.


[rtl8723be]Windows 10 gives 15Mbps download speed while Ubuntu 15.10 gives 5 Mbps

I am running a dualboot setup on my Lenovo Flex2 with Windows 10 and Ubuntu 15.10. I am on the rtlwifi - rtl8723be wireless card. While my wifi disconnect issue has been resolved, I have found out that my wifi speed is 3 times less than what I get on Windows 10.  I have a 15 Mbps broadband connection. I consistently get the same speed of 15 mbps on windows but a maximum of 5 Mbps on Ubuntu. On my Android phone I get around 12 to 13.5 Mbps.  I am on channel 6 (2437MHz) of the wifi router with AES encryption .Router is Tenda_3623D8. Current connection of my Ubuntu machine is on the 40M bandwidth as per the router status page.  Any idea how to reach a better speed on Ubuntu?


SSH & SFTP: Should I assign one port to each user to facilitate bandwidth monitoring?

There is no easy way to track real-time per-user bandwidth usage for SSH and SFTP. I think assigning one port to each user may help, but I am wondering if my approach is workable.  Use case   Bob, with UID 1001, shall connect on port 31001. Alice, with UID 1002, shall connect on port 31002. John, with UID 1003, shall connect on port 31003.   (I do not want to lauch several sshd instances as proposed in .)  1. Setup for SFTP:  In /etc/ssh/sshd_config:  Port 31001 Port 31002 Port 31003 Subsystem sftp /usr/bin/sftp-wrapper.sh   The file sftp-wrapper.sh starts the sftp server only if the port is the correct one:  #!/bin/sh mandatory_port=3`id -u` current_port=`echo $SSH_CONNECTION | awk '{print $4}'` if [ $mandatory_port -eq $current_port ] then   exec /usr/lib/openssh/sftp-server fi   2. Additional setup for SSH:  A few lines in /etc/profile prevents the user from connecting on the wrong port:  if [ -n "$SSH_CONNECTION" ] then   mandatory_port=3`id -u`   current_port=`echo $SSH_CONNECTION | awk '{print $4}'`   if [ $mandatory_port -ne $current_port ]   then     echo "Please connect on port $mandatory_port."     exit 1   fi fi   Benefits  Now it should be easy to monitor per-user bandwidth usage. A Rrdtool-based application could produce charts like this:    I know this won't be a perfect calculation of the bandwidth usage: for example, if somebody launches a bruteforce attack on port 31001, there will be a lot of traffic on this port although not from Bob. But this is not a problem to me: I do not need an exact computation of per-user bandwidth usage, but an indicator that is approximately correct in standard situations.  Questions   Is the idea of assigning one port for each user generally a good one?  Or does it violate best practice? If I have to open dozens of ports for many users, should I expect a performance drawback?