How to find the $20$ consecutive composite numbers

I have a little confusion over the following problem:       Find the $20$ consecutive composite numbers.     HINTS:  $$\color {green} {\text{Numbers}\,\, 20!+2,20!+3,\cdots ,20!+21 \,\,\text{will do the trick. The following result by Euclid has been known for more than 2000 years.}}$$   But the solution is not very clear to me specially I do not understand why $k$  has been added to $20!$ where the numbers are of the form $20!+k,k=2....,21$.   Can someone explain it? Thanks and regards to all.


How do I prove that all people are illusion and only I am real in this world?

I am sure that, I am the only real person who is living in this world and all you all just illusion.  My brain works in two ways it creates the world and makes me feel it i.e it only generates both input and output stimulus . Whatever I think in my brain,it will be created outside the world but in such a way I don't realize it.And even matter and energy can be created through my brain but I am not aware of it..  So nobody is real in this world except me.  Please note :to explain "I am like semi-god I can create anything and might be I am not aware of it "thats why this question arised ...it is nothing to do with dreams/matrix .. So how do I make realize all of you that you are just a illusion and created by me?


I have a small problem. I'm on Debian 7, i have made a new user with group. I need to make this user fully privileged and JAILED to directory /usr/share/nginx.  When i want to connect to sftp there appears connection problem.  This is because of set configuration of Match Group/Match User. Without of that connection is successfull but with "/" directory of system.  This is my sshd_config  Port - im connecting to right port  Subsystem sftp internal-sftp  Match User testsftp     ChrootDirectory /usr/share/nginx     AllowTCPForwarding no     X11Forwarding no     ForceCommand internal-sftp  Match Group sftpgroup     ChrootDirectory %h     X11Forwarding no     AllowTcpForwarding no     ForceCommand internal-sftp   I have uncommented usePAM


The Möbius function is the sum of the primitive $n$th roots of unity.

Did you know that the Möbius function $\mu$ is the sum of the primitive nth roots of unity? I want to know about meaning of this.   This statement is expressed as,  $$\mu(n) = \sum_{\substack{k=1 \\ (k,n)=1}}^n \exp\left(\frac{2\pi ik}{n}\right).$$


I dont know what to do with Ubuntu ISO file

So trying to find the iso for Ubuntu to put on my flash drive but when I download I get a prompt to open with winrar and when I do extract it’s just a bunch of random folders and I have no idea where the ISO is can someone help point me in the right directions since I have no idea what I’m doing.  Thank you very much.


I am writing a scientific paper and I wonder if 's is only used refering to a possession.  For example, I think "bird's feathers" is a correct expression, but I wonder if "bird's exposure", meaning exposure of birds to something (here I write about pollutants), it's correct or it's written "bird exposure".  In general, I guess my question is about the use of 's as "[something]'s [something]" instead of "[something] of [something]". Another example would be "feather's formation" or "feather formation" instead of "formation of feather".  I hope I have explained myself properly. Thanks!


Is it possible to create an alias or synonym for a database?

Is it possible to create a database alias or synonym?  What I am hoping to be able to do is have NewDatabaseName aliased as OldDatabaseName to prevent having to rewrite a ton of code.  Backstory: I was approached by a client with a ridiculous self-induced problem.  They have a third-party application that has a SQL server back-end.  The users have been writing custom reports against this database using Visual Basic, with all database connection information hard-coded in their programs.    Recently the third party software renamed their database.  Now all the report EXE's are failing.    Oh, they dont' have a lot of the source code either.  I held back my laughter and said I would see what I could do.


How can I /give a player a named arrow in Bedrock Edition?

I want to give a player a specified item that makes something when used, but first I need to actually give them the item, and that's where I'm stuck. I am attempting to use the following command: /give @p arrow 1 1 {display:{Name:"Arrow of destiny"}}  However I'm getting the error:  Line 1, Column 2 Missing '}' or object member name  Why is this not working? What am I doing wrong?


Let $ABC$ be a non-isosceles triangle. Medians of $\triangle ABC$ intersect the circumcircle in points $L,M,N$. If $L$ lies on the median of $BC$ and $LM=LN$, then prove that $2a^2=b^2+c^2$.  My Attempt:    Let $G$ be the centroid of $\triangle ABC$ and $D$ be the mid-point of $BC$.  Since $LM=LN$, therefore $LM$ and $LN$ will subtend equal angles on the circumference of circumcircle  $\Rightarrow \angle GBL=\angle LCG$  $GL=GL$  Altitude of $\triangle BGL$ from $B$ to $GL$=Altitude of $\triangle LGC$ from $C$ to $GL$  Area($\triangle BGL$)=Area($\triangle LGC$)  Now, based on this ,can it be said that $\square GBLC$ is a parallelogram. If yes then   $$DL=GD=\frac{m_{a}}{3}$$  $\Rightarrow AD.DG=BD.DC$  $$m_{a}.\frac{m_{a}}{3}=\frac{a^2}{4}$$  $\Rightarrow 4m^2_{a}=3a^2$  $\Rightarrow 2b^2+2c^2-a^2=3a^2$  $\Rightarrow b^2+c^2=2a^2$  I am not sure whether this justification is sufficient(the one that I have written in bold). What more can be added to seal the issue


How do I call the method convertName in main? When i tried other ways, it came up with the error    cannot reference non static method from static area.  /* This program will take a name string consisting of EITHER a first name followed by a last name  (nonstandard format) or a last name followed by a comma then a first name (standard format).  Ie. “Joe Smith” vs. “Smith, Joe”. This program will convert the string to standard format if  it is not already in standard format. */ package name;  public class Name {      public static void main(String[] Args){             boolean flag1 = hasComma ("Alex Caramagno");      }     public static boolean hasComma(String name) {             // indexOf will return -1 if a comma is not found             return name.indexOf(',') >= 0;      }      public String convertName(String name) {             if (hasComma(name)) {                     return name;             }              int index = name.indexOf(' ');             String first = name.substring(0, index);             String last = name.substring(index+1);             String convertedName = last + ", " + first;             return convertedName;        }      }


CMSIS vs HAL vs Standard Peripherals Library

So I'm switching from PICs to ARM and I bought an STM32F4 discovery board. So far I understand that to program it you can either access all registers directly in memory (obvious way) and also there are 3 main libraries you can use to make your life easier. Now my question is, which one of those 3 (CMSIS, HAL, Std Peripherals Lib) is the most LOW level one? ie. the one with the less overhead. My goal is to learn the controller's inner workings and not make my life easier (only a little), so I would like to know which of these is closer to the core without resorting to use assembly.


Prove the sequence converge and find its limit

Consider the following sequence:     $a_{n+2} = \frac{a_{n+1}+a_{n}}{2}$, $a_{1}$ and $a_{2}$ are given.   Write $a_{n}$ as a function of $a_{1}$ and $a_{2}$ and show that its limit is $\frac{a1 + 2a_{2}}{3}$  I think I am loosing myself on algebra here. I can't even do the first part. Any help is welcome, thanks a lot!


sed: delete all occurrences of a string except  the first one

I have a logfile with timestamps in it. Occasionally there are multiple timestamps in one line. Now I would like to remove all of the timestamps from a line but keep the first one.  I can do s/pattern//2 but that only removes the second occurrence and sed doesn't allow something like s/pattern//2-.  Any suggestions?


I was trying to run chmod on some files and accidentally specified the wrong directory. Now, sudo doesn't work, and I rebooted. I can log in, but I can't do anything as root. How can I fix this?  This is different than  as this describes what to do if you can't boot your system. It also addresses problems that may be encountered if you ran chmod on another directory or just accidentally specified /, like I did. It also explains how to fix sudo when/if it gets broken.


How to setup default toolbars and menu item?

I need to customize the UI for a group of users at another office.  I want to turn off a bunch of toolbars and menus that are not needed.  I know how to save my configurations (Settings -> Customization...) to a INI file.    How do I setup the other users computers to load the INI at startup?   I am using Windows 7 and Qgis 2.0.1.


How to display a .jpg file in ArcMap for georeferencing?

I'm struggling to georeference a .jpg map. When I load it in to ArcMap, I cannot see the picture at all, so I cannot georeference it. (I tried to zoom to the map layer but the map just does not appear).  Does anyone have a solution for this?


Better Way To Decide Which Stack Exchange Is Appropriate For Question

I want to ask following question:     How to boot  kernel via NFS without erasing the original on board kernel?   This is equally suited for best for Stack Overflow, Server Fault, Super User, Unix & Linux and Network Engineering.  For such scenario, how does one make a decision on which Stack Exchange is better suited?  Advantage of Stack Overflow is that it will receive faster response due to user base, and also majority of technical question qualify automatically for Stack Overflow rather than a specific site like Unix & Linux.  I am also sure, majority of new user will directly go ahead and put such question on Stack Overflow, thus making specific sites redundant.  Please suggest how you tackle such scenario, thank you.


How did Regulus Black discover the Dark Lord's secret?

We all know that Regulus Black was the first person to discover the Dark Lord's secret and also managed to locate one of the Horcrux. The question is,   How did he learn about the Horcruxes that the Dark Lord created? How did he manage to find one?  How did he happen to get a replica of the Horcrux?


I want to split an image.jpg into parts and merge it again.  I used the following commands:   split -b 1440 image.jpg # It divides it into 6 parts. cat xaa.jpg xab.jpg xac.jpg xad.jpg xae.jpg xaf.jpg > new-image.jpg    Now I want a script that does the same work of the previous commands.


I experienced some days ago in SO that whenever I'd like to tag in comment the answerer, or anyone who has already written a comment below the same answer, the tag disappears.  @name doesn't list out the person with "name" and when I send the comment itself, it's not visible in the final result.  What's the reason, if there's any?


What determines the number of comments that are displayed?

I'm curious how it is decided how many comments to display before the "Show more comments" link. Sometimes I see a dozen comments on a question and no "Show more comments" link, in other occasions no comments are visible at all, only the link.


How to draw circles inside each other in tikz?

I would like to draw four circles inside each other, with some text in the area between the circles (naming that area).  So far I got:  \documentclass{article}  \usepackage{tikz}  \usetikzlibrary{shapes,backgrounds}  \def\firstcircle{(0,0) circle (1.5cm)} \def\secondcircle{(45:2cm) circle (1.5cm)} \def\thirdcircle{(0:2cm) circle (1.5cm)} \def\fourthcircle{(0:2cm) circle (1.5cm)}  \begin{document}   \begin{tikzpicture}     \draw \firstcircle node[below] {$first$};     \draw \secondcircle node [above] {$second$};     \draw \thirdcircle node [below] {$third$};     \draw \fourthcircle node [below] {$fourth$}; \end{tikzpicture}  \end{document}   but I don't know what to do to:   make one circle bigger than each other (with fourth circle being the largest) make the text not appear inside in the middle of the circle, but in the areas between the circles (it would be nice if the text arched following the circle) make the circles appear inside each other.   Thanks.


Remove characters between different parameters

I have a string of different emails     ex: "email1@uy.com, email2@iu.it, email3@uu.edu"  etc, etc   I would like to formulate a Regex that creates the following output     ex: "email1,email2,email3"  etc, etc   How can I remove characters between an "@" and "," but leaving a "," and a Space  in C#  Thank you so much for the help!!


By "hand cipher", I mean a symmetric cipher for which encryption and decryption can can both be performed with a pencil on graph paper, consuming about 10-20 seconds per character by a proficient user. Additional simple tools, e.g. a deck of cards or a multiplication table, may be used to expedite the process. No mathematical proficiency is required other than mental addition, subtraction, and maybe multiplication.  Basically, it should be a cipher that someone of average mathematical abilities can master, and it should require no digital technology or cryptographic tools that cannot be constructed out of paper.  For example, four-square in CBC mode seems secure to me because CBC is a well established mode of operation and four-square seems to be a good block cipher as it accommodates large keys and seems to produce a random-looking output. However, the fact that four-square in CBC was never widely adopted before digital encryption became a consumer technology leads me to believe that someone broke the cipher and thus discouraged people from using it.  So is there any hand cipher that the best supercomputers would take years to cryptanalyze? If not, then for which hand cipher is the best known attack the most complex?


Create record in Lightning with populated fields

Is there a way to use the sforce.one.createRecord to create an Opportunity and fill in fields with data? In Salesforce Classic this was accomplished by adding parameters to the url (ex: ?name=foo).   Has Salesforce given a way to do this in Lightning?


Why are the neutron and proton masses nearly equal?

The neutron to proton mass ratio is nearly one. Is there some fundamental reason from this or this simply a coincidence?


Switch sound input when microphone is connected

I have a microphone that I sometimes connect to my computer for online meetings. When I connect it, I need to go into the sound settings and change input device.  Is it possible (in ubuntu 16.04) to have the input source automatically change when I connect the mic?


Interpreting coefficients of first differences of logarithms

My problem is interpreting coefficients of such time series model:  \begin{equation} \ln Y_t - \ln Y_{t-1} =b_1 \cdot \left(X_{t}-X_{t-1}\right)+b_2 \cdot Z_t.\end{equation}  I don't know how to interpret coefficients $b_1$ and $b_2$.  Hope that someone can help.


What book featured a city with many shrines for gods?

I read a thin fantasy novel about a city, where many gods were worshiped, each god had some type of temple, and one night each year all the gods roamed the streets and you'd better stay inside. I remember that a great frog-god hopped through the streets.    Anybody know this book? I read it at least 25 yrs ago, it was an English-written Dutch library book. Not from a well-known writer I think.


Let $n$ be contained in $\mathbb N$. Show that $ n^{1/2}$ is either an integer or it is irrational.

My textbook shows the proof of $\sqrt{2}$ but I'm having trouble doing the same exact thing for $\sqrt{n}$. So, I have $A:= \{x$ contained in $\mathbb R: x^2 < n\}$. First if $x^2 < n$ then $x < n$. We know that $A$ is nonempty because $1$ is contained in $A$.... I'm completely lost after this. I know it involves taking an $r$ and so on...


How to tell if a beverage will hydrate or dehydrate?

Beverages of any type generally contain some measure of water. However, in the case of some liquids, the non-water components take more water from the human body to filter out than the water contained in the beverage.  The most-known example of this is salt-water from the ocean - there is too much salt so the body tries to use water from the body to "water down" the salt water.    Given a beverage with unknown additives, how would one determine if the beverage would actually hydrate or dehydrate a person?  If you knew the ingredients (and the amounts), could you tell that way?  Edit:comments seem to indicate that it depends on the solutes and tonicity of the solution: are there any other factors to be aware of? What (common) solutes will have the largest affect on whether the human body will be hydrated and why?  if you need "common" to be defined, consider it defined as: contained in many[more than 3] store-bought beverages


Do you need to clear immigration when connecting at DXB Terminal 1?

As I have never been to Dubai Airport T1, I wanted to ask whether arriving passengers can remain airside and board their onward flight without having to pass immigration. I am well aware that this is possible at T3, since Emirates uses the airport as a hub. But passengers on airlines arriving at T1 will most likely not connect to another flight (or at least not on one ticket and thus most likely need to clear immigration to recheck luggage).  My intention would be to fly the triangle CDG-DXB-AMS for the simple reason of flying on a B787-10. STA from Paris 22:35, STD to AMS at 00:40. With my passport I don't need a visa for the UAE and I would travel with hand luggage only.


Javascript; is this use of "hasOwnProperty" redundant?

Looking through some of our app code I found the following:  for (prop in aBunchOfData.properties) {   if (!aBunchOfData.properties.hasOwnProperty(prop)) continue;   doABunchOfProcessing(aBunchOfData.properties[prop]); }   As far as I understand, for ... in will only loop through the "own" properties of an object. Can the hasOwnProperty check here ever make a difference? If so, under what conditions?  Thanks!


Getting key with maximum value in dictionary?

I have a dictionary: keys are strings, values are integers.  Example:   stats = {'a':1000, 'b':3000, 'c': 100}   I'd like to get 'b' as an answer, since it's the key with a higher value.  I did the following, using an intermediate list with reversed key-value tuples:  inverse = [(value, key) for key, value in stats.items()] print max(inverse)[1]   Is that one the better (or even more elegant) approach?


So, on my HP650 i have internal HDD on which i have windows 10. I installed Ubuntu 18.04. on external HDD which is connected via USB.  The problem is that GRUB menu doesn't show up at start, so I can't choose which OS to run, it goes to windows. Only way i can boot Ubuntu is manually, by pressing esc during startup, entering boot device options, and selecting Ubuntu.    These are boot options and boot order in bios   I also tried changing boot order in Ubuntu terminal with no luck.  I disabled fast startup in windows.   Any ideas?


Mongodb - Security weakness while using --authenticationDatabase admin?

I was trying to create a new Mongodb instance based on my old Mongo Database. In my current DB I have an user and password configured. So, I can access my database using:  $ mongo --host $MONGO_HOST -u $MONGO_USER -p $MONGO_PASSWORD --authenticationDatabase admin   This works perfectly. But accidentally, I typed:   $ mongo --host $MONGO_HOST --authenticationDatabase admin   And this is when the problem came in! The MongoDatabase authorized my connection for the database!  The security.authorization is set as true in my mongod.conf. Is this a weakness in MongoDB? Is there any method to always force the authentication?  EDIT 1: Current configuration for mongo:  {     "config" : "/etc/mongod.conf",     "net" : {         "bindIp" : "0.0.0.0",         "port" : 27017     },     "security" : {         "authorization" : "enabled"     },     "storage" : {         "dbPath" : "/var/lib/mongodb",         "journal" : {             "enabled" : true         }     },     "systemLog" : {         "destination" : "file",         "logAppend" : true,         "path" : "/var/log/mongodb/mongod.log",         "quiet" : true     } }


Confidence interval for the p-value estimate when doing Monte Carlo testing

The second paragraph of the  section of the Wikipedia article on resampling statistics, the values of a confidence interval for a p-value from a MC sampling is given:     After $N$ random permutations, it is possible to obtain a confidence interval for the p-value based on the Binomial distribution. For example, if after $N = 10000$ random permutations the p-value is estimated to be $\hat{p}=0.05$, then a 99% confidence interval for the true $p$ (the one that would result from trying all possible permutations) is $[0.044, 0.056]$.   What's the formula to calculate it?


Can chromatic dragons potentially learn Change Shape?

As far as I remember, only the Ancient metallic dragons have it listed in the Monster Manual, but could all dragons potentially learn to Change Shape?  As a note, this is a homebrew world so I'm aware I can change them to be able to do this, but I'm just wondering if the default is that they can or can't.  This question is related: , but my question is a bit more concise, focusing on just the question of chromatics and potential ability.


How to stop Brute Force SSH Login attack on Windows Server?

I'm facing very strange attack on my server where I've received logs from Hosting Provider that, the attack is happening from my IP address. Attack is - Brute Force SSH Login Attack. When I scanned traffic on SSH port and on that IP address using Microsoft Network Monitor, I have not found a single packet that have been sent from or received on that alleged IP address. I have received below log: ==================== Excerpt from log for xx.xx.xx.xx ==================== Note: Local timezone is +0200 (CEST) Oct 15 03:26:19 shared05 sshd[10854]: Invalid user roque from xx.xx.xx.xx port 48108 Oct 15 03:26:19 shared05 sshd[10854]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=xx.xx.xx.xx Oct 15 03:26:21 shared05 sshd[10854]: Failed password for invalid user roque from xx.xx.xx.xx port 48108 ssh2 Oct 15 03:26:21 shared05 sshd[10854]: Received disconnect from xx.xx.xx.xx port 48108:11: Bye Bye [preauth] Oct 15 03:26:21 shared05 sshd[10854]: Disconnected from invalid user roque xx.xx.xx.xx port 48108 [preauth]  I blocked the IPs which were hitting to SSH Port(Port No.: 22) but that also didn't help. I installed Anti-Virus but that didn't help as well.


I need the label of a Field, I have Api's objectfield Name

In my controller I have a List of string. This list contains The Object Name, and the Field Name. So, I need to get the "Label" Name of this fields.  I need to make a query where the conditions is the object name and the fieldname.  Please take consideration that this is Dynamic, So, I cant just simply create a list of the object because in this list of string I may have any object of the whole solution.   So, I dont know how to make this query to the metadata, in order to know the labels name of my list string of fields. Example:  I have "Student__c" in a variable, I need to get "Student" in another variable. but it gotta be the "real" label of the respective object.   and it can be a plenty of fields, so cant not be hardcore. It have to be consulting in somewhere the correct label, but I dont know where to consult. I'll really appreciate your help!


What if array name is put in square brackets?

I saw such a piece of C code: int main() {     static int a[] = {7,8,9};     printf("%d", 2[a] + a[2]);;          return 0; }  What does 2[a]  mean here?


What is the pressure term appearing in Bernoulli's Equation?

In Bernoulli's equation the pressure plus kinetic and potential energy is constant. But what is this pressure term, physically?  Is it the pressure of the fluid on the walls of the container or is it the pressure exerted on the fluid by the surroundings (air/liquid as air is also fluid). Because these two types of pressure are entirely different. In torricelli's law it is the pressure exerted by the atmosphere on the fluid and in venturimeter it is the pressure that the fluid under consideration exerts on the tube. I want some logical answers so that I could easily see what this pressure is physically - the formulas I know.


RealVNC Viewer: How can I escape from the remote desktop screen by using keys?

I often use  to connect to remote VNC desktops served by RealVNC Server, Tight VNC Server, X11VNC... etc.    When connected, all pressed hotkeys are passed to (captured by) the remote desktop, and that is OK for me, but I then need use to the mouse to click on my local desktop if I want to interact with local programs... and keys are always faster than the mouse.    Is there any hotkey to escape from the remote desktop and send focus to the local desktop?


Is the algebraic closure of a $p$-adic field complete

Let $K$ be a finite extension of $\mathbf{Q}_p$, i.e., a $p$-adic field. (Is this standard terminology?)  Why is (or why isn't) an algebraic closure $\overline{K}$ complete?  Maybe this holds more generally:  Let $K$ be a complete Hausdorff discrete valuation field. Then, why is $\overline{K}$ complete?  I think I can show that finite extensions of complete discrete valuation fields are complete.


How to keep harddrive spinning / prevent spindown?

I'm using Windows 8.1 with an external hard drive. My external seems to go to sleep very quickly, like in a single minute. I constantly wait 2-3 seconds when accessing files on my external harddrive (where all my important stuff is). I have not had this problem on other OSs with this same external HDD.  I checked my power settings, its supposed to wait 40 minutes before spinning down (on battery and plugged in). This is clearly not happening. What might be the problem here?


I have a sql server which being monitor by Nagios. One day, i received some alerts from nagios come with some sensitive information like:  Critical Alert: dbi connect (Server name: ABC, Encrypted Password: 1, User:  Sa.......)   How can i hide this ?


Dimensionality of a Hilbert Space: Countable or Uncountable?

(My question is different than  and , so hold back on casting a close vote, please). So, I was reading on , and ran into this statement in the Dirac-von Neumann axioms: The space $\mathbb{H}$ is a fixed complex Hilbert space of countable infinite dimension. This is rather confusing to me; I use position and momentum as bases for this Hilbert space all the time, and those bases have cardinality $2^{\aleph_0}$. How is it that the space is countably infinite when we use uncountable basis sets to perform basic calculations?


What is the difference between Philosophy and Theology?

In attempting to wrap my mind around the basic vocabulary, concepts, and methods of philosophy, I find myself wondering what the difference is between a philosopher and a theologian.   can have two meanings: 1. Theology is a rational study of the existence of God/gods and the nature of religious ideas. 2. Theology is simply a study of a particular religion (or all religions), really more the practice than the theory, but maybe a mixture.  It seems from an immediate reading that definition 1 would lead to the conclusion that a theologian is a philosopher (perhaps that theology is a branch or subset of philosophy), but definition 2 appears to be rather unphilosophical in nature.    So, how does philosophy answer this question?   Is theology considered a proper subset/branch of philosophy overall? Does it depend entirely on which of the above 2 definitions of theology fits a particular theologian as to whether he is a philosopher or not?   I think this answer is simple and fairly self-evident, but somewhere in my gut I feel like I'm missing something.  Is there a treatment of this question in the literature?    Edit: the answers so far seem to want to redefine theology or other terms - that is fine, but please be clear that you are redfining them, and provide, if possible, sources for why the term should be different than given (support from historical works, other sites, etc.).


How many ways are there to express a natural number N as a sum of two or more consecutive natural numbers?  How do I count the no. of ways, they don't seem to follow any pattern.


Glossy in camera tracking  I am having some fun with camera-tracking in Blender.  That is my result so far:    My question is: how can I make this table reflect the ship?   Nodes are standard Blender's setup for motion tracking.  There is a plane on Backround layer, receiveing the shadow. I tried adding glossy shader to the plane. But then plane is reflecting surroundings (light and skybox) which is breaking the effect.   Good solution for me would be if plane could reflect only the ship, and be transparent to all the other, but I don't know how to approach this.  Do you know any trick that could help me out?


How do I pre-populate a jQuery Datepicker textbox with today's date?

I have a very simple jQuery Datepicker calendar:  $(document).ready(function(){     $("#date_pretty").datepicker({      }); });   and of course in the HTML...  <input type="text" size="10" value="" id="date_pretty"/>   Today's date is nicely highlighted for the user when they bring up the calendar, but how do I get jQuery to pre-populate the textbox itself with today's date on page load, without the user doing anything?  99% of the time, the today's date default will be what they want.


I have a string which is a path and is a variable in which I have to save in my database. But the path is   C:\foldera\folderb\folder1\folder2   and obviously I need it to be   C:\\foldera\\folderb\\folder1\\folder2   for the insertion in database of mysql.  Please help me find the solution. I tried str_replace but it won't work. Thanks in advance.


Black screen after plymouth at ubuntu 14.04

Recently my Ubuntu 14.04  LTS stopped going further than plymouth.  It goes like this:   Process BIOS process grub menu ( I choose 1st option called Ubuntu) black screen for couple of seconds plymouth screen black screen for long time (2 min) I terminate process   Does anyone have an idea how to solve this issue?


Number of monic irreducible polynomials of prime degree $p$ over finite fields

Suppose $F$ is a field s.t $\left|F\right|=q$. Take $p$ to be some prime. How many monic irreducible polynomials of degree $p$ do exist over $F$?   Thanks!


What is this problem in Ubuntu 16.04? I have had this problem for 2 months now and I can't seem to be able to delete partitions loop0,  loop1, or loop3.


How can we get questions regarding our server through Stack Exchange?

We are an academic lab that developed several online servers. Is there a way we can have people ask questions about the servers, and answer them directly on a Stack Exchange site (, for example)? We would use tags, but none of us have enough reputation to start one.


We are all Indian passport holders. We plan to travel in 2 groups to Vienna from Mumbai.   The first group goes BOM-LHR-JFK-LHR-Vienna-LHR-BOM. Everybody in this group will have valid visas for USA & Schengen. Would it be necessary to have UK visa?  The second group goes BOM-LHR-Vienna-LHR-BOM. Everybody in this group will have valid visas for Schengen. Would it be necessary to have UK visa?


Does anybody know, how I can allign 16 images like a grid with 4 columns and 4 rows?   \begin{figure} \begin{tabular}{cccc} \subfloat[0,1 s]{\includegraphics[width = 1.5in]{25.gif}}& \subfloat[25 s]{\includegraphics[width = 1.5in]{26.gif}}& \subfloat[750 s]{\includegraphics[width = 1.5in]{27.gif}}& \subfloat[1618,55 s]{\includegraphics[width = 1.5in]{28.gif}}\\ \subfloat[0,1 s]{\includegraphics[width = 1.5in]{29.gif}}& \subfloat[25 s]{\includegraphics[width = 1.5in]{30.gif}}& \subfloat[750 s]{\includegraphics[width = 1.5in]{31.gif}}& \subfloat[1618,55 s]{\includegraphics[width = 1.5in]{32.gif}}\\ \subfloat[0,1 s]{\includegraphics[width = 1.5in]{33.gif}}& \subfloat[25 s]{\includegraphics[width = 1.5in]{34.gif}}& \subfloat[750 s]{\includegraphics[width = 1.5in]{35.gif}}& \subfloat[1618,55 s]{\includegraphics[width = 1.5in]{36.gif}}\\ \subfloat[0,1 s]{\includegraphics[width = 1.5in]{37.gif}}& \subfloat[25 s]{\includegraphics[width = 1.5in]{38.gif}}& \subfloat[750 s]{\includegraphics[width = 1.5in]{39.gif}}& \subfloat[1618,55]{\includegraphics[width = 1.5in]{40.gif}}\\ \subfloat[0,1 s]{\includegraphics[width = 1.5in]{41.gif}}& \subfloat[25 s]{\includegraphics[width = 1.5in]{42.gif}}& \subfloat[750 s]{\includegraphics[width = 1.5in]{43.gif}}& \subfloat[1618,55 s]{\includegraphics[width = 1.5in]{44.gif}}& \end{tabular} \caption{4 x 5} \end{figure}


When i open my drive in linux it can't open ,what i do

Error mounting /dev/sda2 at /media/rajeev/A480692B80690560: Command-line `mount -t "ntfs" -o  "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177"  "/dev/sda2" "/media/rajeev/A480692B80690560"' exited with non-zero exit status 14: Windows is hibernated,  refused to mount. Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state.  Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with  the 'ro' mount option.


Specific example of a space that is separable but not second countable.

A toplogical space $X$ is said to be second countable   if there exists a countable basis for the topology.      $X$ is separable if there exist a countable dense subset.   Show that a second countable space always is separable.      Give an example of a space that is separable but not    second countable   The first part was easy and i managed to solve it on my own  Assume that $X$ is second countable and let $B_1, B_2, B_3...$ be a countable basis. Construct the set $A$ by taking one element $x_n$ out of every $B_n$. Then $A$ becomes dense because every open set $U$ contain a $B_n$ which in turn contain the element $x_n$ in $A$.    Again, like in the question i posted yesterday, i had trouble to come up with an example but our professor gave an example during the last lecture but i dont fully understand it:  "For an example of a separable but not second countable space let $X$ be the real line provided with the cofinite topology, i.e. where a set is open if its either empty or if its complement is finite.   Then every infinite set is dense and hence $X$ is separable.  But for an arbitrary countable family of open sets $U_1, U_2...$ write $U_i = X$\ $A_i$, where $A_i$ is finite, there is an element $x \in X$\ $(\cup_i Ai)$, because $A_i$ is countable,  such that the open set $X$\ $\{x\}$ is then not able to contain any $U_i$. Consequently $X$ is not second countable."  We asked him to explain it in more detail but his english is poor and nobody understood anything...:)       Def: A subset $A$ of a topological space $X$ is dense in $X$ if for any point $x$ in $X$, any neighborhood of $x$ contains at least one point from $A$.   $1.$ "Then every infinite set is dense"  Take $A$ to be one of these infinite sets. If $x \in A \subset X$ then it trivially fulfills the definition. But if we take a $x \not\in A$ why is it not possible to find a neighborhood in these finite sets that does not contain an element in $A$?  edit: its obvious if it is only open neighborhoods, open sets in the topology, but that is not specified in the definition.  $2.$ I am not fully understanding this either  "But for an arbitrary countable family of open sets $U_1, U_2...$ write $U_i = X$\ $A_i$, where $A_i$ is finite, there is an element $x \in X$\ $(\cup_i Ai)$, because $A_i$ is countable,  such that the open set $X$\ $\{x\}$ is then not able to contain any $U_i$. Consequently $X$ is not second countable."  Is it possible to express this in a simpler way?


Show that if $f$ is continuous on $(0,1)$ and $\lim_{x \to 0}f(x) = + \infty$ then $f$ is not uniformly continuous

I must show that if $f$ is continuous on $(0,1)$ and $$\lim_{x \to 0}f(x) = + \infty$$ then $f$ is not uniformly continuous. I am not sure if we have to use epsilon- delta proofs or how to show this.


I know there is something wrong with this but I don't know where. It's some kind of a math fallacy and it is driving me crazy. Here it is: $$-1= (-1)^3 = (-1)^{6/2} = \sqrt{(-1)^6}= 1?$$


For example:     Making new friends is important to your happiness.    and     To make new friends is important to your happiness.    I know the second sentence sounds odd, but I'm not sure if it's grammatically wrong or just not used as much.   Thanks a lot.


Unable to record https website in jmeter

1) Trying to record secure website. 2) Error is displaying -- can't record secure website.  Please help to record and send me the steps and settings how to record secure script in JMeter.  Thanks in advance.


I found a a few of these guys on my composter, so they could have easily been eating bugs or decaying organics (or both):     To me it looks like a stink bug with oversized legs, not like the ones I'm used to seeing. His body measures just under 3cm, and I haven't pulled on his legs to get a measurement (I haven't pulled on it at all).  The legs seem to be at least 1.5 times the body length as do the antenna.  The body is grayish brown and the antenna and parts of the leg seem reddish brown.  I'm a microbiologist, so things big enough to see in a jar are not really my specialty.  That said, here's info that I've been trying to use ID it:  Wingless Normal compound forelimbs (don't seem to have any kind of   prey modification)    Segments filiform antenna (I think)   2 Tarsomeres (I think)   In the middle of South East US   Have had (unusually) heavy rains   Underside of the limbs and antenna seem red, but to seems gray  I've never seen it before! (and I usually notice such things).  Update: Despite my 4 year old putting other bugs and some leaves in with it, the bug died.  I took the opportunity to get some much better photos, and low and behold when I started manipulating it I was able to pull out a substantial rostrum that I missed!  These guys are good at hiding those.  So going back to assassin bugs, can anyone id which assassin bug it is?  More photos: [I would add more but I think this should be plenty]      I at least think it's quite a pretty specimen (to betray my mammalian aversion to bugs).


why search results not showing while searching with the half name in sharepoint 2010

Here i configured the search services but while searching with half name of  the uploaded document the search results are not showing the document..


He is one of the boys who "play" or "plays" football?

Which one is correct?        He is one of the boys who play football.   He is one of the boys who plays football.      Please state the reason as well.


Shell script- To fetch the content from the specific tag at all occurrence using shell scripting

I have an XML file on my server. In that file, I have many tags in which there is a tag for example, "container" tag. I need to fetch the content of all the container tags content separately. Many thanks in advance.


What's the correct type of brackets to use in a matrix?

I had my first day of Linear Algebra today, and we got introduced to matrices, one thing that kept nagging me though, was that I kept seeing matrices written in a few different styles, namely  $$ A = \left[ \begin{array}{ccc} a & b & c \\ d & e & f \\ g & h & i \end{array} \right] $$  as well as   $$ B = \left( \begin{array}{ccc} a & b & c \\ d & e & f \\ g & h & i \end{array} \right) $$  and on really rare occasions I've even seen   $$ C = \left\{ \begin{array}{ccc} a & b & c \\ d & e & f \\ g & h & i \end{array} \right\} $$  So my question is, which of these is considered most correct to use? $A$, $B$, or $C$?


Going to Maastricht on student visa with Multi Schengen visa issued by Netherlands embassy in India. Can I take a flight to Frankfurt and from Frankfurt to Maastricht by Bus? Some people say that since this is first visit I must go to an airport in Netherlands. Immigration in Frankfurt will not permit to enter in Schengen area, as the my final destination is Maastricht Netherlands?


Decide convergence divergence of $\sum \dfrac{1}{(\ln n)^{\ln n}}$

Does the series $\sum \dfrac{1}{(\ln n)^{\ln n}}$ converges?  I can intuitively say that it converges, because $(\ln n)^{\ln n} $ is going to $\infty$ on a hayabusa


Fastest way to determine if an integer's square root is an integer

I'm looking for the fastest way to determine if a long value is a perfect square (i.e. its square root is another integer):    I've done it the easy way, by using the built-in  function, but I'm wondering if there is a way to do it faster by restricting yourself to integer-only domain. Maintaining a lookup table is impractical (since there are about 231.5 integers whose square is less than 263).   Here is the very simple and straightforward way I'm doing it now:  public final static boolean isPerfectSquare(long n) {   if (n < 0)     return false;    long tst = (long)(Math.sqrt(n) + 0.5);   return tst*tst == n; }   Note: I'm using this function in many  problems.  So no one else will ever have to maintain this code.  And this kind of micro-optimization could actually make a difference, since part of the challenge is to do every algorithm in less than a minute, and this function will need to be called millions of times in some problems.    I've tried the different solutions to the problem:   After exhaustive testing, I found that adding 0.5 to the result of Math.sqrt() is not necessary, at least not on my machine. The  was faster, but it gave incorrect results for n >= 410881.  However, as suggested by , we can use the FISR hack for n < 410881. Newton's method was a good bit slower than Math.sqrt().  This is probably because Math.sqrt() uses something similar to Newton's Method, but implemented in the hardware so it's much faster than in Java.  Also, Newton's Method still required use of doubles. A modified Newton's method, which used a few tricks so that only integer math was involved, required some hacks to avoid overflow (I want this function to work with all positive 64-bit signed integers), and it was still slower than Math.sqrt(). Binary chop was even slower.  This makes sense because the binary chop will on average require 16 passes to find the square root of a 64-bit number. According to John's tests, using or statements is faster in C++ than using a switch, but in Java and C# there appears to be no difference between or and switch. I also tried making a lookup table (as a private static array of 64 boolean values).  Then instead of either switch or or statement, I would just say if(lookup[(int)(n&0x3F)]) { test } else return false;.  To my surprise, this was (just slightly) slower. This is because .


I'm using the Webform module for Drupal 8. The module confirmation settings for a form are the following:   Page (redirects to new page and displays the confirmation message) Inline (reloads the current page and replaces the webform with the confirmation message.) Message (reloads the current page/form and displays the confirmation message at the top of the page.) URL (redirects to a custom path or URL) URL with message (redirects to a custom path or URL and displays the confirmation message at the top of the page.)   But how am I able to submit a form via AJAX so that the page doesn't reload on submit, but a confirmation message still replaces the form? What did I do wrong?    EDIT:  Here is the solution which works:  First you have to hook the form alter function and set an AJAX callback (as in ):  use \Drupal\Core\Form\FormStateInterface;  function MYTHEME_form_alter(&$form, FormStateInterface $form_state, $form_id) {   if ( isset($form['#webform_id']) && $form['#webform_id'] == 'MYWEBFORM' )   {     // add an AJAX callback to the form submission     $form['actions']['submit']['#ajax'] = array(       'callback' => '\Drupal\MYMODULE\Controller\DefaultController::processFormSubmission',       'event' => 'click',     );   } }   Then in the processFormSubmission function you can process the form (put use \Drupal\Core\Form\FormStateInterface; at the top of your file) like:  // Instantiate an AjaxResponse Object to return. $ajax_response = new \Drupal\Core\Ajax\AjaxResponse();  /* do sth */  // in the DOM: replace the form with the text 'form submitted' $ajax_response->addCommand(new \Drupal\Core\Ajax\HtmlCommand('#MYFORM', 'form submitted'));  return $ajax_response;


How to prove this identity related to multiplicative functions

This is question 2.6 of textbook Apostol introduction to analytic number theory and I am unable to solve it.  Prove that $\sum_{d^2 | n} \mu(d) = {\mu}^2(n) $ .  RHS = r where $n = p_{1} ... p_{r} {p_{r+1}}^{a_{r+1}}...{ p_{k}}^{a_k} $ , $a_{r+i}$ such that i>0 . But i am not able to prove lhs equal to it. So, can you please help! !


Just reading about tracking and security. So far from resources I gather that the MAC address of my machine is known to the router and when the router communicates with the modem the MAC address of the router is passed and the machine's MAC address is lost. But after that, when an IP connection is made, what happens to the modem MAC address? The ISP gets the information as it should (for billing and tracking) but after that does it communicate that to the websites so they might track me via Router MAC address? Also even after using the VPN is the modem MAC address communicated to the other sites, or does just VPN provider see it and pass on its own MAC when communicating with other sites?


Writing a bot for an online game without screen-scraping or mouse macros

I want to write a bot that will only send simple commands. The game is an android game which I run in Bluestacks. Game is very simple. The actions the player can take are very limited and the game does not send/receive any data unless the user takes an action, so I believe that the information sent is simple or imitable at least. I don't want this bot to work with screen-scraping and mouse macros because I need to be able to use the computer meantime. So, after some research, I found that I can imitate the information sent by this game. I believe I first need a network sniffing application to examine the packages sent/received. This is the point I could come so far, could you please show me a starting point explaining what to do next? Which application can I use to examine the transferred information?  Game is running with an android emulator(Bluestacks) under win7.  Just FYI, I checked the game policy and there isn't anything against this bot, it will neither be abusive nor will make me any profits anyway.


Is the "Peer Pressure" badge revoked when undeleting a post?

I recently earned the  badge for deleting one of my posts with a score of -3 or lower.  That got me thinking. The peer pressure badge is . What would happen if I undeleted my negative post? Would the peer pressure badge be revoked from my account? If it was revoked, could you re-earn the badge by deleting the post again?


Should I remove non-significant variables from my regression model

I have run a multiple linear regression using stepwise regression to select the best model, however the best model returned has a non-significant variable. When I remove this the AIC value goes up indicating the model without the significant variable is a worse fit. Should I remove the non-significant predictor or should I leave it in as it is a better model?


Postgresql how match content like "[\s\S]*?" in regex

I want to replace content of long Strings in postgres column.  The match pattern is "{Begin}{anything}{mid}{anything}{end}", and the match is non-greedy version.  Begin, mid, end is fixed content while anything can include character, number, space, newline etc.  With common regex we can use ([\s\S]*?) but it doesn't work well in Postgres. How can I do with this.  Example: I have a DB column name "descriptor", I want to match content   "<function type="class"> {anything} <arg name="class.name">com.ehi.jira.plugin.workflow {anything} </function>",   and it should match the shortest content.With common regex I will use   "<function type="class">([\s\S]*?)<arg name="class.name">com.ehi.jira.plugin.workflow([\s\S]*?)</function>".   But it doesn't work in postgresql.


Shell escape after PDF is finished and closed?

I like to escape to the shell using \write18 at the very end of the compilation after the PDF file got completely written and was closed, so that I can use it as part the shell command. Is this somehow possible or does TeX simply closed the PDF at the very last thing? Placing it direct before \end{document} or in \AtEndDocument doesn't help (unsurprisingly).  AFAIK \writes are actually whatsit objects and would be normally be part of the document. So I don't have much hopes.  Background  This is used for automatic PDF-to-PNG conversion as a new feature of standalone. At the moment I do this in the preamble in the second run when the old PDF did not yet got opened. This works fine, but I would like to avoid the need to compile standalone diagrams twice.


Bash perform variable expansion of string

I'm trying to have two layers of indirection, though let me know if I'm a victim of the  Boiled Down Explanation of What I'd Like to Achieve > test1=\$test2 > test2="string to print" > echo $test2 string to print > echo $test1 $test2  This all makes sense, but what I want is to perform a command using $test1 and print out string to print.  My gut reaction was that this should work > echo $(echo $test1) $test2  Bollocks.  Does anyone else know if this is possible? More Detailed Explanation of Why I Wish to Accomplish This I want to create a text file template containing $variables which can be re-used to generate many text files.  My thinking is: set environment variables, process the template file and output to another file. Example: > #set vars > cat template.txt | magic_var_expansion_cmd > out1.txt > #set vars > cat template.txt | magic_var_expansion_cmd > out2.txt > #set vars > cat template.txt | magic_var_expansion_cmd > out3.txt  This could obviously be used in a script, and in more sophisticated ways but this is the  in my mind's eye.


I came across this strange code snippet which compiles fine:  class Car {     public:     int speed; };  int main() {     int Car::*pSpeed = &Car::speed;     return 0; }   Why does C++ have this pointer to a non-static data member of a class? What is the use of this strange pointer in real code?


How do I fix a vboxdrv setup failure in VirtualBox?

So, I tried creating an OS with VirtualBox, and I got this error:  Kernel driver not installed (rc=-1908)  The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing  '/etc/init.d/vboxdrv setup'  as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.   So I did the obvious, running the Vboxdrv setup. I ran this command:  sudo service vboxdrv setup   I got an error while doing so.:  stopping kernel drivers...done.  Uninstalling old virtualbox dkms kernel modules/etc/init.d/voboxdrv: 302: /etc/init.d/vboxdrv: /usr/share/virtualbox/src/vboxhost/do_dkms: not found ...done. (Failed, trying without DKMS) recompiling VirtualBox kernel modules...failed! (look at /var/log/vbox-install.log to find out what went wrong.)   So, I took a look at /var/log/vbox-install.log to see if I can find anything. I got this error:  /etc/init.d/vboxdrv: 334: /etc/init.d/vboxdrv: /usr/share/virtualbox/src/vboxhost/build_in_tmp: not found   Any help? Thanks.


Will 'at' command be executed after the reboot?

If I schedule something with 'at` like,  $ at noon warning: commands will be executed using /bin/sh at> echo "Will I be created?" > /tmp/at_test at> <EOT> job 12 at Fri Jun 30 12:00:00 2017   And if I reboot the machine before execution time, will my command be executed?  Unlike regular cron which schedules tasks from file, does at store this 'info' somewhere?


General definition of stochastic processes

I'm trying to understand the basic concept of random processes.I already understood that a continuous-time random process is defined by X(¥,t) where ¥ is each element in the Sample Space and t is the time index.     By this definition, we can see the random process as an ensemble of sample realizations ( time-functions defined for each outcome in the Sample Space) or as a set of random variables ( each one defined for a specific time t ). In my mind, the value of the time-function ( sample realizations ) X(¥1,t) reflects the changing value of the probability of outcome ¥1 being choosen in the sample space, is that correct ?    For example, we have a boy B in the sample space representing outcome ¥1.Having this outcome ¥1 at time t=0 equals 30%.As the time passes, the sample spaces gets more crowded and at time t=5, the probabily of choosing boy B equals 20%.   Can i think that the time-function X(¥1,t) will equal 0,3 for t=0 and 0,2 for t=5 ? Does X(¥1,0)=0,3      and     X(¥1,5)=0,2         ?  Thanks in advance


How to find out which keybinding is represented by a particular character sequence

To get the character sequences of a particular keyboard shortcut we use showkey -a or verbatim insert (Ctrl+V). What is the opposite of it? How can I get the keyboard shortcut in human readable format from character sequences? I used some keybindings for example ^[^? ^X^U ^[[3;5~ ^[[1;2D ^[[1;2C ^[[1;5C ^[[1;5D ^[[1;6C ^[[1;6D ....  Now I do not remember which key/key-combination they used to represent. How can I find that out? Update 1 I am looking for something which will output Ctrl+R or Ctrl+Delete etc, I mean in human readable format. Any reference to a table which has possible character sequences and their human readable formats will also do.


Has anyone ever got a remote JMX JConsole to work?

It seems that I've never got this to work in the past. Currently, I KNOW it doesn't work.  But we start up our Java process:  -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=6002 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false   I can telnet to the port, and "something is there" (that is, if I don't start the process, nothing answers, but if I do, it does), but I can not get JConsole to work filling in the IP and port.  Seems like it should be so simple, but no errors, no noise, no nothing. Just doesn't work.  Anyone know the hot tip for this?


I'm new to Ubuntu and planning to install it on my Dell Inspiron 910, because in Windows XP some random updates ate all my 8GB storage (SSD).  Even after stripping down XP to the bone, I'm unable to install any of the updates due to no storage space available. Therefore, I've decided to install Ubuntu instead.  After doing research, I came across various versions of Ubuntu.   First it was 32bit / 64bit. And then, I found Lubuntu, Xubuntu, etc. I have tried Lubuntu from a live disk which did not help me to connect with WiFi (known problem I assume). After some reading I realized, there were different specifications of the Ubuntu versions, especially about disk space that each version requires. In my case, it is pretty important. So, given the fact I only have 8GB SSD.  Which one will be most suitable for me?


Is a loop in $X$ based at $a\in X$ homotopic to its reverse loop?

A loop in a topological space $X$ based at $a\in X$ is a continuous function $\rho: [0,1]\rightarrow X$ such that $\rho(0)=\rho(1)=a$.   The reverse of $\rho$ is $\overline{\rho}$ such that $\overline{\rho}(s)=\rho(1-s)$ for each $s\in [0,1]$. Clearly $\rho$ is also a loop based at $a$.  It seems rather obvious that $\rho$ is homotopic to $\rho$, i.e. there exists a continuous function $H:[0,1]\times [0,1]\rightarrow X$ such that $H(0,t)=H(1,t)=a$, $H(s,0)=\rho(s)$, and $H(s,1)=\overline{\rho}(s)$, but I'm not sure how to define/construct such a homotopy?


Why does describing a quantum state take an infinite amount of classical information?

In chapter 1 of Quantum Computation and Quantum Information by Michael A. Nielsen & Isaac L. Chuang, I came across this paragraph on quantum teleportation,  Intuitively, things look pretty bad for Alice. She doesn’t know the state $\lvert\psi\rangle$ of the qubit she has to send to Bob, and the laws of quantum mechanics prevent her from determining the state when she only has a single copy of $\lvert\psi\rangle$ in her possession. What’s worse, even if she did know the state $\lvert\psi\rangle$, describing it precisely takes an infinite amount of classical information since $\lvert\psi\rangle$ takes values in a continuous space. So even if she did know $\lvert\psi\rangle$, it would take forever for Alice to describe the state to Bob.  So Alice and Bob share a qubit each from an EPR pair created long ago and now Alice wishes to teleport the state $\lvert\psi\rangle$ to Bob by only sending classical information. I do not understand why describing $\lvert\psi\rangle$ takes an infinite amount of classical information, since to my knowledge, only the amplitudes of the basis vectors need to be known($\lvert\psi\rangle=\alpha \lvert 0\rangle+\beta \lvert 1\rangle$). Maybe I did not understand properly what it means for Alice to know a state $\lvert\psi\rangle$. Any guidance would be helpful. Thank you. PS: I'm not from a Quantum mechanics background.


iptables installed in centos 7 but nat table was not there

[root@localhost yum.repos.d]# iptables --version  iptables v1.4.21  [root@localhost yum.repos.d]# iptables -L -t nat  iptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.


Why is MySQL returning rows not matching the ID?

I have a simple table (set up for testing purposes) with just an id bigint(20) auto_increment column and 2 rows.  Now, if I try select * from abc where id = '1', it works fine obviously, but any of these will also return the same row:   select * from abc where id = '1d' select * from abc where id = '0001blah'   What's the deal? Does it have something to do with quotes? I always thought = meant it would return only the exactly matching rows...


Whenever i enter my details and submit the query give me an error  INSERT INTO `temp_user_detail` (`email`, `username`, `profession`,  `experience`, `current_work`, `state`, `job_type`, `about`, `college`,  `diploma`, `department`, `looking`) VALUES  ('mailmeabhishek95@gmail.com', 'abhinift2014', 'nj', 'Less than 2  years', 'Home', 'Kerala', 'Fixed Term', 'hii', 'Arch Academy Of Design',  'Bachelor's Of Fashion Technology', 'Lifestyle Design', 'Work')You have  an error in your SQL syntax; check the manual that corresponds to your  MySQL server version for the right syntax to use near 's Of Fashion  Technology', 'Lifestyle Design', 'Work')' at line 1   here is the php part   $hi= "INSERT INTO `temp_user_detail` (`email`, `username`,   `profession`, `experience`, `current_work`, `state`, `job_type`,   `about`, `college`, `diploma`, `department`, `looking`) VALUES  ('$email', '$userid1', '$profession', '$experience', '$current',  '$state', '$jobtype', '$about', '$college', '$diploma', '$depart',  '$looking')"; $run=mysql_query($hi) or die(mysql_error());


What's the term for a r.v. X "upper bounding" Y probabilistically?

What's the term for when a random variable $X$ has a higher probability of being greater than t than the probability of $Y$ being greater than $t$ for all real $t$? I recall reading a term for this somewhere but can't remember where, and this this turns out to be annoying to Google. I don't want to end up making up a new definition when one exists somewhere. Additionally, are there any other related notions of a random variable upper/lower bounding another? It doesn't really make sense to say $X > Y$ for example (unless maybe if the essential min of $X$ is strictly greater than the essential max of $Y$).


Compute volume of tetrahedron using a triple integral

I'm trying to compute the volume of a tetrahedron with the vertices (0, 0, 0), (0, 0, 1), (2, 0, 0), (0, 2, 0). It needs to be done using a triple integral. Not allowed to use "det" or other functions.  I think first I need to find a plane equation using those 4 points right? But how do I do that?


Prime number expressible as $2^2+3^3+5^5+7^7+11^{11}+\cdots$

I found that $2^2+3^3=31$ and $31$ is a prime, also $2^2+3^3+5^5+7^7$ is a prime. After these the only prime I found is $2^2+3^3+5^5+7^7+11^{11}+\cdots+83^{83}+89^{89}$. And I've checked $p(n)$ up to $1009$, but I couldn't find another prime of the form  $$ 2^2+3^3+5^5+7^7+11^{11}+\cdots+p(n-1)^{p(n-1)}+p(n)^{p(n)}. $$ Is there any other prime with that form?


Hiding the Taskbar Label Only for Specific Applications

I run my taskbar buttons with the setting Combine when taskbar is full.   Q: Is there any way to force some of your pinned taskbar applications to only use the "icon" rather than the icon + label?  I am aware of the trick to force the size of the taskbar icons for all applications (detailed  and ), but there are some applications that I would like to only have the icon, and others where it is important to show icon and label together.


I have Ubuntu 14.04 with python-2.7 and python-3 support. I am porting my python application from python-2.7 to python-3. I have example.py file which is importing below modules. and I #!/usr/bin/python3 as python evn variable.  import gtk, gobject, time, sys, os, subprocess, signal   **ImportError: No module named 'gtk'**   I am getting above error, when trying to run with python3.  Any idea what is missing here?


Is hyperref really the best way to add metadata to a TeX file?

So I know one of hyperref's features is that it can add metadata to you PDFs. This is a nice feature and if you're putting stuff online, it's good to include metadata.  But is the hyperref package really the best way to do it? I mean, if you're using hyperref anyway, that's fine. But if you don't want hyperrefs in your document, it seems weird to include the package, and then turn off pretty much all its functionality. And given that hyperref is a shorthand for "package conflict nightmare", is seems insane that you should have to deal with it just for the sake of some metadata.  So I have two questions.   Is there a good reason that hyperref includes this functionality which is apparently unrelated to its primary purpose? Is there a better (smaller, less conflicty, easier...) option to include metadata in my PDFs?


Why is using a shell loop to process text considered bad practice?

Is using a  to process text generally considered bad practice in POSIX shells?  As , some of the reasons for not using shell loop are conceptual, reliability, legibility, performance and security.  This  explains the reliability and legibility aspects:  while IFS= read -r line <&3; do   printf '%s\n' "$line" done 3< "$InputFile"   For performance, the while loop and  are tremendously slow when reading from a file or a pipe, because the  reads one character at a time.  How about conceptual and security aspects?


Why can the last block contain a full block of padding in CBC Encryption?

I'm trying to understand the SSL Poodle Attack and I'm wondering why the last block of a CBC Record can be full of padding? Wouldn't that mean that the useful data was already a multiple of the key size?  Maybe I'm misunderstanding something else here, as it would seem like you can pad by any number of full blocks of padding. Just don't see why an SSL Library would do that.  Thanks!


How can I know ASAP when my PC loses Internet connectivity and I'm away from the PC

I need to know ASAP when my PC loses Internet connectivity.  It is of no use to me if my PC waits until it's back online and then emails/SMSs me that service has been restored.   Is there a way to generate a more timely notification, while it is still offline?  For example, a notification triggered by failure of a periodic ping?


What word, like 'alviary' is the name for a list of all words in a language?

I thought it was called an 'alviary' or 'alveary' (poss. 'alvary'), but I can't find anything on any search engines for it (they're mostly interpreted as bee-keeping expressions or names).  I'm sure there is a word that sounds similar, that means 'a list of all (or most) words in a language'.  e.g. a dictionary without the definitions.  Totally stumped on this one.


\bar vs. \overline - when to use what, semantically?

Following the question "" which is simply about the lengths of both, I'd like to know when to use \bar and when to use \overline from a semantically viewpoint.  I always used \bar, because up until now I only had single letter mean values to type. But now I came to a problem where I needed a wider "bar".  Then I just tried  \documentclass{article}  \begin{document}   \[ \bar{a} \overline{a} \]   \[ \bar{abc} \overline{abc} \] \end{document}   where one can see that they also differ in position (\overline is lower), and also in thickness (\overline is thicker).  So, the question here is:  What does \bar represent semantically? And when to choose it over \overline and vice versa?


how do I go about removing all the language packs I don't need

I just noticed that in /usr/share/help I have the ubuntu help files in 70 different languages. I only speak 2, and I only really compute in one. I also noticed that it is full of broken symbolic links to /usr/share/help-langpack.  I want just want to get rid of all the languages I don't need. How can I do this without getting all rm -r happy? I'm preferably looking for a way to do this without installing any new packages, as my main goal is to get rid of excess stuff on my machine. I'd like to find a way to do this preferably with dpkg, or apt.


Regional Mathematics Olympiad 1999 Question

find all solutions in integers m,n of the equation (m-n)^2 = 4mn/(m+n-1)  On solving i got, (m + n)[(m + n)/(m - n)^2 - 1] = 0  thus either m = -n or m + n = (m - n)^2  I tried some even odd stuff as m,n are integers but i am stuck now.


Is there any difference in meaning between "All these" and "All of these"?

Possible Duplicate:          Are they fully interchangeable, or do they have a somewhat different usage?  Common sense suggests that "all these" would refer to a group of objects as a group, and "all of these" would refer to each and every object inside the group.  Also,  is a link to google ngrams, which shows an interesting thing: "all of these" had almost no use before 1960s. It is a little bit confusing, because I always thought it is grammatically fine, and I would expect it to be used at leas as much as "all these".


I am reading a book on control theory for multiple input multiple output (MIMO) systems. The author claims that for the identity matrix $I$ and the complex transfer function matrices $G_1$ and $G_2$ (let us assume they are square matrices) the following identity holds: $$(I-G_1G_2)^{-1}G_1=G_1(I-G_2G_1)^{-1}.$$  Is this statement true? And how can I derive it?


How to configure putty multiple with jumpboxes

At my company we have a strict security policy and to access my server i need to use different jumpboxes like this:   jump_box_1 (has public access) jump_box_2 (has private access) my_server (here is my database) public_server (has access to my_server)   So far i managed to access my_server starting from jump_box_1 with putty and multiple tunnels like this:  1. start a ssh command to open a port on jump_box_1:  ssh -L 2222:jump_box_2:22 my_user@jump_box_1  2. start putty session configured like this(this 3 pictures are from the same connection):    and now i can access my database with:  host: localhost  port: 1521  What i want is to get rid of putty and use only ssh commands so in the end to automate all of this.  Thank you.


Installed Xubuntu 13.04 and cannot update to 14.04, can't find server

Today I installed xubuntu 13.04 and I can't update it to ver. 14.04. I can't install any apps from software center too. When i click "find best server for your location" I can't find any server. But my internet is working. what's wrong? p.s. Sorry for my english.


Is someone "casted" or "cast" in a film role?

Can the word 'casted' be used in this headline?       Michael Fassbender Casted In Upcoming "Kung Fury" movie


How to check how many numbers a bit flag / bit mask contains

I am storing all my equipped guns using a bit flag, and was just wondering if it was possible to check how many numbers are contained in a bit flag.  e.g. :  13 would contain 1, 4, and 8  NOTE: I am new to bit flags so my question might not make too much sense or I might have used the wrong terminology, if so just let me know and I will be happy to change it.


Proving an analytic function is rational

If f is analytic in $|z| \leq1 $ and satisfies $ |f(z)| = 1$ on $|z| = 1$ prove that f is a rational function. I need a clue how to think about this? should i use the fact that f can be written as a power series?


The bijection between homogeneous prime ideals of $S_f$ and prime ideals of $(S_f)_0$

It is well-known that if $S$ is a graded ring, and $f$ is a homogeneous element of positive degree, then there is a bijection between the homogeneous prime ideals of the localization $S_f$ and the prime ideals of $S_{(f)}$, the subring of $S_f$ comprising the homogeneous elements of degree $0$.    This is proposition II.2.5b in Hartshorne, exercise 5.5B in Ravi Vakil's notes $[1]$ (p. $130$ of the February $24$, $2012$ version), and proposition 8.1.21 of Akhil Mathew's notes $[2]$ (p. $136$). Unfortunately I cannot follow any of those proofs to my own satisfaction, perhaps because I'm not well-versed in commutative algebra.  The crux of the proof appears to be to show that, given a homogeneous prime ideal $\mathfrak{p}$ of $S$ not containing $f$, the construction used to obtain a prime ideal $\Psi (\mathfrak{q})$ of $S$ from a prime ideal $\mathfrak{q}$ of $S_{(f)}$ will recover $\mathfrak{p}$ when $\mathfrak{q} = S_f  \mathfrak{p} \cap S_{(f)}$. To be precise, let $\Psi (\mathfrak{q})$ be the homogeneous ideal of $S$ generated by $$\bigcup_{d \in \mathbb{N}} \{ s \in S_d : s / f^d \in \mathfrak{q} \}$$ and let $\Phi (\mathfrak{p}) = S_f \mathfrak{p} \cap S_{(f)}$. It's easy to see that $\Phi \circ \Psi$ acts as the identity on $\operatorname{Spec} A$ (or, for that matter, the set of all ideals of $A$), but I cannot see any obvious reason why $\Psi \circ \Phi$ should act as the identity on the set of prime ideals of $S$ not containing $f$. A detailed proof of this point would be much appreciated.  References  $[1]$ .  $[2]$ Algebraic geometry notes (covers material at the level of the first and second volume of EGA): , and .


Failed Ubuntu 15.10 installation on UEFI system, how to report this bug

Yesterday I had to try installation of new Ubuntu 15.10 more than 5 times.  I have noticed methods that give me unbootable system on reboot after installation. It says it cannot detect UEFI partition even if it exist and is made during same installation time.   If I upgrade from 15.04 to 15.10 using Bootable CD, if ways half way saying it cannot detect UEFI partition If I install using Something Else option during installation, it fails on reboot.   The only way for me to get bootable system was to erase whole hard drive and let it make all partition by itself (lost most of my data :'( forgot to backup in frustration)  I am very much confirmed of what I experienced yesterday (whole day) and I am pretty much sure that there is a bug in installer, so how do I report a convincing bug-report to Canonical?


Can I drop the /g/ sound in the pronunciation of longer?

I know some words like '' finger'' and ''stronger'' have /ŋg/pronunciation, and the rule of pronouncing /ŋg/ may vary. According to Merriam-Webster () you could say /ˈlȯŋ-gər/  also  /-ər/. But on Cambridge dictionary site, it is said that the pronunciation of younger, younger and stronger has /ŋg/ sound. Which pronunciation is more commonly used, or both are accepted?


how to compile and execute java code file in c# dynamically by passing params

I have a requirement to compile and run java programs from C# dynamically by passing parameters. Ex: below is java code i have to execute this code from c# by passing parameters num1, num2. How to do in c#?   import java.util.Scanner;  public class AddTwoNumbers2 {  public int CalAdd(int num1, int num2) {      return num1 + num2;        }  }     I am looking for calling Java code file in c# like below, python code called in c# example code        var engine = Python.CreateEngine();         var scope = engine.CreateScope();         //try         //{          var compilerOptions = (PythonCompilerOptions)engine.GetCompilerOptions();      ErrorSinkProxyListener(errorSink);         var scriptSource = engine.CreateScriptSourceFromFile(@"C:\Nidec\PythonScript\download_nrlist.py", Encoding.UTF8, Microsoft.Scripting.SourceCodeKind.File);         var compiledCode = scriptSource.Compile();         compiledCode.Execute(scope);         engine.ExecuteFile(@"C:\Nidec\PythonScript\download_nrlist.py", scope);          //get function and dynamically invoke         var calcAdd = scope.GetVariable("CalcAdd");                    result = calcAdd(34, 8); // returns 42 (Int32)


Moving points onto lines (~neighborhood)

I do have two vector layer, of which one is a point layer based on "events" by remote sensing and the second one is a line layer from local research.   In my case these are earthquakes and tectonic faults, but I guess one could simply choose "car-accidents and roads" as a general example.  So what I'd like to do is move/copy the points onto the closest point of the lines, as long as its within a tolerance distance (say 1-2km or 0.0xx°), with the new point layer (+attr moved y/n).  Any ideas ?  Linux, QGIS 1.8


How do i make a command block delay in minecraft 1.16

I have tried multiple things that were used in earlier versions but they no longer work as commands have changed a lot so I was wondering how I can delay them for my adventure map


Windows 8 removes Grub as default boot manager

I have a Sony VAIO S series with Windows 8 preinstalled, and I installed Ubuntu 12.10 on a new partition. When the PC boots Grub is display, and I can choose between Windows 8 (didn't worked at the beginning, had to change Grub settings) and Ubuntu 12.10. When I select Ubuntu 12.10 everything is OK, but when I use Windows 8, and I restart Grub isn't displayed anymore (Windows 8 boots immediately).  I booted a Ubuntu 12.10 LiveUSB, used efibootmgr, and found out that Windows 8 (each time it boots) changes EFI default bootloader from Grub to Windows Boot Manager.  How do I change this in Windows 8? I read something about bcdedit, but it does not work or I don't know how to use it...


I am running Ubuntu 14.04 and had not had problems with the wifi until a couple of days ago. I have tried numerous help posts, most of which with similar fixes, and nothing worked.  It started after I switched to using 'Auto ethernet' in order to download things faster, and when I tried switching back to wireless, I found that the hardware switch for the wireless has been disabled, and I can no longer connect wirelessly.  Hitting the actual switch doesn't do anything.   sudo rfkill list all returns:  0: phy0: Wireless LAN Soft blocked: no Hard blocked: yes   lspci | grep Wireless returns:  10:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)   sudo rfkill unblock all does nothing and neither does: sudo rfkill unblock wlan  Nothing in the hardware changed, I only noticed the problem after I installed another distribution on another partition, when I unplugged it from the ethernet.


Why didn't the basilisk bite in Chamber of Secrets destroy the Horcrux?

As the title asks, why didn't the basilisk bite received in the Chamber of Secrets destroy the Horcrux inside the bitten person?   Yes, I know Fawkes quite quickly healed the bite wound with his phoenix tears, but when Harry used the basilisk fang to destroy Tom Riddle's diary the destruction of that Horcrux was immediate. When Ron hit the locket with the Sword of Gryffindor, it was destroyed immediately. Although the destruction of the ring occurred off-page, Dumbledore used the Sword of Gryffindor to destroy it, so presumably, like the locket, it was gone right away. Nagini died straightaway when Neville decapitated her. The destruction of the Hufflepuff cup happens off-page. The diadem seems to have been destroyed by Fiendfyre immediately as well, as when Harry examined it outside the Room of Requirement it was already leaking a blood-like substance, and then it cracked in half. When Voldemort hit Harry with Avada Kedavra in the forest, Harry woke up in limbo with the last fragment of Voldemort's soul - that awful flayed baby-like being - separated from him immediately.   Is there a logical/canon-based explanation for why the fragment of Voldemort's soul residing in Harry wasn't destroyed upon Harry being bitten by the basilisk?  NOTE: I've read the HP Wiki's entry on Horcruxes; however, I find the HP Wiki to be inconsistent in its accuracy, so I'm hesitant to accept the Wiki's explanation on the matter. I'd prefer an explanation constructed from information in the books or a statement by JKR, or the like.


How do I make a Google Form public on the web, but for viewing only?

I'm trying to share a Google Form document in Google Drive and make it public to view, but I don't want anyone to be able to edit it.   If I set the link sharing mode to anything other than "Off", the "Access" field appears and says "Anyone (no sign in required) Can edit". I tried clicking on "Can edit" and I can't change it to view only. How can I share this document publicly without allowing people to edit it?


What does the graph of the function $$ f(x) = (-1)^x $$ look like?  It seems as if on all even $x$, $y = 1$, and on all odd $x$, $y = -1$, but between these values (fractional indices) y's value is ambiguous.


Elevating process privilege programmatically?

I'm trying to install a service using InstallUtil.exe but invoked through Process.Start. Here's the code:  ProcessStartInfo startInfo = new ProcessStartInfo (m_strInstallUtil, strExePath); System.Diagnostics.Process.Start (startInfo);   where m_strInstallUtil is the fully qualified path and exe to "InstallUtil.exe" and strExePath is the fully qualified path/name to my service.  Running the command line syntax from an elevated command prompt works; running from my app (using the above code) does not. I assume I'm dealing with some process elevation issue, so how would I run my process in an elevated state? Do I need to look at ShellExecute for this?  This is all on Windows Vista. I am running the process in the VS2008 debugger elevated to admin privilege.  I also tried setting startInfo.Verb = "runas"; but it didn't seem to solve the problem.


Create global variable from program parameter in Python

I'd like to assign an "external" value for a global variable in a standalone Python program from a command line parameter and let my functions manipulate it (please disregard the fact that using global variables is discouraged in general). I have tried like the following:  def my_function():     global global_var     global_var+=1  def main(argv):       global_var = sys.argv[1]     my_function()  if __name__ == "__main__":     main(sys.argv)   But it doesn't work because of the following reason:  NameError: global name 'global_var' is not defined   The problem occurs in the global global_var line in my_function, the function seemingly cannot recognize this as global despite the explicit qualification as like this.  I guess that this is because my global_var doesn't exist before my_function()'s definition. But I cannot define my global_var at the beginning of the code (before my_function()) either because main() should stand at the end and main() parses the program parameters. Right?


Here is the problem. I have a long-term visa (I live and work in Germany and I'm married). I want to visit London (to be specific, I am from Tunisia).  I heard that having a long-term visa for a European country can make it easier for me to apply for a UK visa (as I saw, the visa is required in my case).  I don't know how I should apply for this visa, and to use my European visa to facilitate the steps.


Does every infinite finitely generated group contains an element of infinite period?

Is it true that every infinite finitely generated group contains an element of infinite period?  I think it is true, but I can't prove it.


What are the derivatives of position with respect to time

According to , the derivatives of position with respect to time are position, velocity, acceleration, jerk, snap, crackle, pop.  Who came up with snap, crackle, and pop?  What about higher order derivatives?


Wondering why you would choose to use smaller capacitors in parallel vs one bigger one.  Here's an example:      Is this a component size and track width choice?  Thanks!


The sum of the $n$ smallest odd numbers is equal to $n^2$

if given a positive integer $n$ is the sum of the $n$ smallest odd numbers equal to $n^2$


I have a Schengen visa valid for longer than my allowed duration of stay. Can I ignore the duration and overstay?

I have a Schengen visa valid from 19/07/2016 to 10/08/2016. But the duration of stay is 7 days only.  I want to stay for 6 days more, for a total of 14 days. And my flight includes travel from a Schengen state to another.


i'm tring to implement In App Billing into my application. I wrote this code.  public class Settings extends PreferenceFragment {      ServiceConnection mServiceConn;     IInAppBillingService mService;     PendingIntent pending;     Intent intent;     Bundle bundle;      @Override     public void onDestroy() {         super.onDestroy();         if (mService != null) {             getActivity().unbindService(mServiceConn);         }        }      @Override     public void onCreate(Bundle savedIstanceState) {         super.onCreate(savedIstanceState);         addPreferencesFromResource(R.xml.settings);          getActivity().getActionBar().setTitle(getString(R.string.settings));           mServiceConn = new ServiceConnection() {                 @Override                 public void onServiceConnected(ComponentName arg0, IBinder arg1) {                     // TODO Auto-generated method stub                        mService = IInAppBillingService.Stub.asInterface(arg1);                 }                  @Override                 public void onServiceDisconnected(ComponentName arg0) {                     // TODO Auto-generated method stub                     mService = null;                 }             };              intent = new Intent("com.android.vending.billing.InAppBillingService.BIND").setPackage("com.android.vending");             getActivity().bindService(intent, mServiceConn, Context.BIND_AUTO_CREATE);              try {                 bundle = mService.getBuyIntent(3, getActivity().getPackageName(), "pro_version", "inapp", "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ");                 pending = bundle.getParcelable("BUY_INTENT");                 getActivity().startIntentSenderForResult(pending.getIntentSender(), 1001, new Intent(), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0));             } catch (RemoteException e) {                 // TODO Auto-generated catch block                 e.printStackTrace();             } catch (SendIntentException e) {                 // TODO Auto-generated catch block                 e.printStackTrace();             }      }  }   When i launch the application and open this Fragment the app crash with this error:  01-31 19:59:30.969: E/AndroidRuntime(11546): java.lang.NullPointerException: Attempt to invoke interface method 'android.os.Bundle com.android.vending.billing.IInAppBillingService.getBuyIntent(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String)' on a null object reference   In the AndroidManifest obviously i've these permissions:   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>       <uses-permission android:name="android.permission.INTERNET"/>   <uses-permission android:name="com.android.vending.BILLING"/>


Component.find(namespace:componentName) : Finding Component By Type

I know that   component.find(AURA:ID_VALUE);   will work, but does anyone know if there is a way to do a find by type instead of id?  What I am referring to would look similar to   component.find("ui:inputcheckbox");


I have been having difficulty configuring applications in 18.04 to access file systems and mounts. I am not a frequent Ubuntu user although I know Linux in general well.  In this case the application 'vuze-vs' installed from snap will not show any folders or file systems I have created after installation. I have given the folders permission to access using my user, vuze runs as this user as well. The standard chmod 777. I can access the folders and mounts from my user via cli. Create and remove files no problem.  When browing in vuze to configure the file destination though these locations are not in the select lists....  Any pointers on what is going on here? If I was using CentOS I would think it is a selinux context type of issue. Or I may be of the mark completely.


I'm working with TeXworks, and on my Windows machine I had a typesetting called something like "pdflatex+makeindex+bibtex". However, now that I'm working on my Mac that option is not available, so now when I build my tex-file the bibliography isn't working.  How can I fix this?  Thanks!


A client needs to produce a large logo for their front office and the production company requires us to convert the CMYK 40,48,77,17 to RAL or Pantone. I have never been faced with such a request and not sure how to approach this correctly? The logo is black text + an icon in this single CMYK code (flat color). thanks


What happens if I have only the 8 (black) ball left to pot and my opponent who has a colored ball scratches the cue ball? Do I get a ball in hand or do I have to try potting the black ball from behind 'the line'?


If I cast Darkness at 4th level and someone else casts Daylight at 4th level, how do the two spells interact?  I found  back in October 2014 that says the spell does not get stronger when upcast, but as is written in the Player's Handbook (p. 201):     When a spellcaster casts a spell using a slot that is of a higher   level than the spell, the spell assumes the higher level for that   casting.   Therefore, if we both cast Darkness and Daylight at 4th level, they do not dispel each other - but how would they interact when they meet each other?


Is what statisticians call a "random variable" what physicists call an "observable" in QM?

I read at  that      A random variable is a variable whose value depends on the outcome of a probabilistic experiment. Its value is a priori unknown, but it becomes known once the outcome of the experiment is realized.   That sounds to me like the definition of an observable in quantum mechanics modeled by hermitian operators. In addition it seems to me what statisticians call  of a random value is what physicists call eigenvalue of a hermitian operator. The set of realizations of a random variable would then be the  (set of eigenvalues) of an operator. So could I tell a statistician that a "random variable" is in fact an operator?


Adding Edge Loops Around Airplane Window

I would like to add an edge loop around each one of these windows and are not 100% sure on the best way to do it even after watching some videos.  If someone could point me in the right direction that would be great. Thanks.


Is it possible to connect 2 routers with different internet connections?

These are wireless routers which use SIM cards. Both routers are the same model and they can be reached with an ethernet cable. Is it possible to configure these routers so devices connected to Router 1 use the network connection provided by the SIM in the Router 1 while devices connected via Router 2 use the Router 2 SIM, but still being able to let's say remote connect. If I'm using a PC connected to the Router 1 and I'd like to make a remote connection to a PC which is connected to the Router 2? So the devices would be on the same local network but it wouldn't just use the internet connection from one of the routers.


Slice array with objects and get array with objects copies

When I made a slice of array containig objects new array are still have references to objects in initial array. How can I make a slice with objects copies?  var obj1 = {name: 'object1'}; var obj2 = {name: 'object2'}; var array = [obj1, obj2]; var arraySlice = array.slice(0, 1); arraySlice[0].name = 'object1RENAMED'; console.log(array[0].name); console.log(arraySlice[0].name);     Prints:  object1RENAMED object1RENAMED


In the sentence "I have the hiccups", could the "the" article be omitted?

I work as a tutor for an online English school and one student asked me this:  "In this sentence: I have the hiccups  Could it be: I Have hiccups?"  I have done a lot of research on advanced article usage but I haven't found anything even close to that. I have no idea what to say.   Any help will be appreciated. Especially if you can suggest articles about this subject.  Thanks in advance.  Edit:  It is not a duplicate to  because talking about having "hiccups" is not the same as talking about having "flu".


Calculate limit in limit: $\lim_{n\to \infty}(\lim_{k \to \infty}(\cos{(|n!\pi x|)^{2k}} )) $

I have problem with calculating $\displaystyle \lim_{n\to \infty}(\lim_{k \to \infty}(\cos{(|n!\pi x|)^{2k}}  )) $   I only get hint that it will be $1 \vee 0$ regarding to wheter $x \in \mathbb{Q}$ or $x \in (\mathbb{R}- \mathbb{Q})$ but don't have idea how to find it.


Do U.S. citizens need visa for short term stay in london?

I am US citizen. Do I need UK visa for short stay as voluntary research student. My finance will be cared by my college in us and my parents.  B.Shah


Natural logarithm transfomation and zeroes

I am using Stata 13 to estimate a simple regression. Given a rather positive skew of a few of my covariates, I figured to ln-transform the variables.  However, I have a substantial amount of zeroes in the covariates. Ln-transforming the variables thus leads to many missings.  I came across several ways of handling the issue:    Replacing zeroes to a small value (e.g. 0.00000001)  Nottreating the issue Dummying the zeroes in a new variable   I do not like option 1 and 2. Replacing feels somewhat random and just wrong. Not treating the issue results in missing information. I thus prefer option 3. But it does not seem to work for me so far. Here is an example of what I do.   clear clear matrix set more off  sysuse nlsw88  hist tenure  gen ln_tenure=ln(tenure)  gen null_tenure = 1 if ln_tenure==. & tenure!=.   reg wage grade tenure south reg wage grade ln_tenure south  reg wage grade ln_tenure null_tenure south   The nlsw88 example dataset provides us with 51 observation with tenure=0. Simply regressing wage on grade with tenure is hence based on 51 more observations compared to regressing wage on grade and ln_tenure.   To not miss out on the information at tenure=0, I created the dummy null_tenure=1 for all tenure=0. Obviously, null_tenure gets omitted when introducing it to the regression.   I have two questions:    Does this way of handling missings created by ln-transforming data make sense? If so, How can I circumvent the dummy to be omitted ?   /R


I'm starting to want to advance my own skillset and I've always been fascinated by machine learning. However, six years ago instead of pursuing this I decided to take a completely unrelated degree to computer science.   I have been developing software and applications for about 8-10 years now, so I have a good handle but I just can't seem to penetrate the maths side of machine learning/probabilities/statistics.   I start looking at learning material and on the first page it might include something which confuses me and immediately sets up a barrier in my learning.   Is a strong background in maths a total requisite for ML? Should I try and fill in the blanks of my maths before continuing with ML? Can self learning really work for just a developer without any hard computer science background?    Related question:


Where does gravity get's its energy from?

So I have read  post and I have another question about it. The first answer says that if we lift an object up that is the energy we "give" to gravity and then gravity uses that energy to pull the object back down. But if we launch a rocket and that rocket goes in a stable orbit gravity will keep applying energy to it to pull it back down.   So let's say that the energy that was required to launch the rocket was 1000 Newtons, and that gravity uses a force of .1 Newtons per second to pull it back down. It will then take 10000 seconds to reach the energy that we used to launch it. So after that 10000 seconds where does gravity then get its energy from?


Print lines of a file between two matching patterns

How can I print all the lines between two lines starting with one pattern for the first line and ending with another pattern for the last line?    Update I guess it was a mistake to mention that this document is HTML. I seem to have touched a nerve, so forget that. I'm not trying to parse HTML or do anything with it other than print a section of a text document.    Consider this example:  aaa bbb pattern1 aaa pattern2 bbb ccc pattern2 ddd eee pattern1 fff ggg   Now, I want to print everything between the first instance of pattern1 starting at the beginning of a line and pattern2 starting at the beginning of another line. I want to include the pattern1 and pattern2 lines in my output, but I don't want anything after the pattern2 line.  pattern2 is found in one of the lines of the section. I don't want to stop there, but that's easily remedied by indicating the start of the line with ^.  pattern1 appears on another line after pattern2, but I don't want to look at that at all. I'm just looking for everything between the first instance of pattern1 and the first instance of pattern2, inclusive.  I found  that almost gets me there using sed:  sed -n '/^pattern1/,/^pattern2/p' inputfile.txt   ... but that starts printing again at the next instance of pattern1  I can think of a method using grep -n ... | cut -f1 -d: twice to get the two line numbers then tail and head to get the section I want, but I'm hoping for a cleaner way. Maybe awk is a better tool for this task?  When I get this working, I hope to tie this into a git hook. I don't know how to do that yet, either, but I'm still reading and searching :)  Thank you.


PHP - Some special character is appearing as question mark�  while displaying.  I have added the utf-8 encoding for both html and php but its not working       <!DOCTYPE html>          <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1">                <?php       require_once 'db_connect.php';      header('Content-Type: text/html; charset=utf-8');     $output = '';        $connect = mysqli_connect("localhost", "root", "", "appsrx1a_skyfler");       $query = "SELECT * FROM candidate_tabletest where id =      '".$_POST["member_id"]."'";    $result = mysqli_query($connect, $query);      ?>
          <?php     while($row = mysqli_fetch_array($result))     {
                    Address	                    <?php echo $row["address"];?>

      <?php             }   ?>
           In database the content of Address field is :- "H.No 2 – D, L.C.H, SAIDABADCOLONY, HYDERABAD – 59"  but in when it echoes the address it shows :- "H.No 2 � D, L.C.H, SAIDABADCOLONY, HYDERABAD � 59."  I have made some research but i have added the meta tag for utf which were mentioned in many documentation . What might be the solution for this ?


I've always thought that "programming" sounded more professional opposed to "coding".  But after looking at the words more closely I'm not entirely sure they mean the same thing.  But even if they do mean the same thing, from another person's viewpoint, is it really more  professional too say "programming" over "coding"?


How to account for the beam weight in a torque question?

Supposing there are two objects on each side of a beam (at different distances), for the beam to be balanced the net torque must be 0. But how do we account for the beam's weight?


Does light have mass? If yes, will it exert force? If no, then how are light particles are travelling at light speed? If light doesn't have mass how is it attracted by gravitational force (black holes)? And what actually is light?


YA Fantasy romance novel about a girl whose brothers go off to war once they reach a certain age

I'm not even sure if this book even exists or I have dreamed it. It's about a girl, I remember she had an older brother that went somewhere (war I think) once he reached a certain age. The oldest one died, and the birthday of the the middle one was just around the corner, so he was the next one to go.  I do remember they were really poor and lived in a somewhat caste society or there is some hierarchy. One day mom sent her into the city to do some work (tailoring?) but she had also some plans there so she tried to hide from guards. When she started to get out of the city some rebels made chaos, she almost got caught.


I have a question about using the phrase "some kind of _".  Is it incorrect to say "some kind of + plural noun"?     For example, is it wrong to say "are these rock-like things some kind of chocolates?"   I didn't use "kinds" and that kind of adds to my question. Is "kind" always plural, like "some kinds of chocolates"? Because although I'm using "some", it feels like "kind" shouldn't be a countable noun.  Anyway, I don't think I've heard of "some kind of + plural", but I think it makes more sense then using singular, since I think chocolates are countable. Please help!


I'm writing about a past event and I'm unsure which sentence is technically correct.      We walked on the beach   or      We would walk on the beach.    I'm aiming for less is best in my writing without compromising correct, UK English grammar.   Thank you so much for your help in advance!