Create a Tables of signs and variations of function using tkz-tab package

I have a serious problem to solve. I would like to make a function monotonicity in my latex doc and i write  \begin{tikzpicture} \tikzset{arrow style/.style = {blue, ->, > = latex’, shorten > = 6pt, shorten < = 6pt}} \tkzTabInit[espcl=5]{$x$ /1, $\ln x +1$ /1.5, $x \ln x$ /2}% {$0$ ,$1/\E$ , $+\infty$}% \tkzTabLine{d,-,z,+,} \tkzTabVar% { D+/ / $0$ ,% -/ \colorbox{black}{\textcolor{white}{$\dfrac{-1}{e}$}}/ ,% +/ $+\infty$ / }% \end{tikzpicture}   and it shows error. Is something with any package or some setting i have to to in the doc??      I sent you an exact example of what i try to do


Why is a link being separated from the rest of my "About Me"?

Recently I hit 1,000 rep on Stack Overflow so I went to remind myself of what privileges I got (because I knew I would be getting some) and saw that the main thing I was getting was my expanding usercard (because seeing up/downvote totals I've been doing via a Chrome Addon).  Seeing as how I totally forgot about this on  where I have everything (for now) minus mod powers (again, for now) I went to see what it looked like.    Something caught my eye though. I knew my "About Me" stuff would get chopped off but there was a link there which should not be showing because it's close to the bottom.    As you can see not only is the link at the bottom and a far bit away from where my usercard cuts off my "About Me" but it's also totally ignoring that there's text around it.  So why is a link being separated from the rest of my "About Me" and displayed? Would it still do this if I used <!-- summary: [your text here] --> given that HTML doesn't work in it?


Is there a difference between taking a far shot on a 50mm lens and a close shot on a 35mm lens?

I am looking for a prime lens to pick up, and I'm wondering if there is any difference between 35mm and 50mm in terms of the end product if I just stand back more with the 50mm. I use the Sony a6000 and am looking at the SEL50F18 and SEL35F18.  I understand that something like a fish eye lens will give a different effect, but is that what is going on in 35 vs 50mm? Or is 50mm effectively just taking a 35mm and cropping the center out (but with increased quality)?


When to use a comma and a semi-colon when a word is repeated (repetition).

I'm confused with when to use a comma or semi-colon when a word is repeated for emphasis because it's a general rule if you are to write two independent sentences together, they must have a conjunction to join them or a semi-colon. Yet, on Facebook or other writings I always see a comma used.  For example, Let's say I'm repeating "I". Is it:  I am the best; I am strong; I am dangerous.  Or,  I am the best, I am strong, I am dangerous.  Another example.  The car is black; the car can fly; the car is wet.  Or,  The car is black, the car can fly, the car is wet.


What is the locus of points $(s,t)$ equidistant from the convex side of parabola $y = x^2$?  Now, it is quite easy to determine s and t separately as functions of x, but can you define t as a function of s? Can it even be done? When the question is applied to the concave side, something interesting happens.


I have some troubles with this problem :     Let $ABCD$ be a convex quadrilateral. $M$, $N$, $P$ and $Q$ are the   midpoints of the sides $AB$, $BC$, $CD$ and $AD$.  $AN$, $BP$, $MD$   and $CQ$ are interescting in $X$, $Y$, $Z$ and $T$ like in the figure   below. Prove that $[XYZT] = [AMX] + [BYN] + [CZP] + [DTQ]$.   It is noted with $[ABC]$ the area of $ΔABC$.     Since $M$, $N$, $P$ and $Q$ are midpoints, the first thing that came in my mind was the median property : the median divides a triangle in two echivalent triangles (with the same area).  I would appreciate some suggestions.  Thanks!


How to install ffmpeg on Ubuntu 14.04 (32-bit)?

When I try:  sudo apt-get install ffmpeg   I get:  Reading package lists... Done Building dependency tree        Reading state information... Done Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'ffmpeg' has no installation candidate   And I don't know how to install ppa packages.


RSA encryption with private key, decryption with public key (again)

First of all let me point out that I am aware of all the theory behind asymmetric encryption and signing, and other related areas like signcryption, etc. It seems that mathematically it is possible to do what title suggests, however there is not a single working example of how to do it in practice, if possible at all.  I want to ENCRYPT the message/data with a private RSA key (signing it won't suffice) and save it to a file.  An application will open that file and decrypt the message with a public RSA key. To point out, anyone can have the public key. This is not a concern in this case.  I want to make it impossible to SEE the message content that is not created by the holder of private key. Signing the message with RSA private key is not acceptable (or signing with a symmetric key and then encrypting the key) because the message content is READABLE but only a subject to validation. Circumventing the authentication validation could be as trivial as a single call patching.  Is there a single working example (that is potentially not ruining the algorithm) of encrypting the message with a private and decrypting the message with a public key. As a side note: it would be great if this would be doable in dotnet.  Thank you very much in advance.


Should I use the commands My Sql in capital letters?

Please excuse me if my question is simple. because when I see the examples about php and MySql in internet, they use from the capital letters for commends MySql. Is it necessary to use the capital letters in MySql? $sql = "INSERT INTO MyGuests (firstname, lastname, email) VALUES ('John', 'Doe', 'john@example.com')";


What are the in universe telltale indicators of an away beam down or beam up? What do witnesses experience?

As a long time fan, I'm familiar with the tell tale sound effects that indicate when the beaming process is taking place. What do residents of the Star Trek universe witness from the ground when people beam back to or down from the ship?


dd command behaves differently on Ubuntu 14.10 vs 16.04

If I run the following command on Ubuntu 14.10:  sudo dd if=/dev/zero of=/dev/sdb bs=1M count=100   It effectively erases my SD card.  If I run the exact same command on Ubuntu 16.10 (or 16.04), nothing happens. I've tried it on two different Ubuntu 16 machines. Literally nothing happens. I see the same dd output, but when I unplug and plug the SD card back in all the folders are still there, the partition is still there, everything.  Does anyone have insights as to how this could happen?  Edit:  As per request:  user@cobalt:~/Desktop$ sudo parted /dev/sdb print Model: Generic- SD Card (scsi) Disk /dev/sdb: 7948MB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End     Size    Type     File system  Flags  1      1049kB  7948MB  7947MB  primary  ext4


Preventing instanceof and casting in Java

How do I avoid using instanceof and casting in this situation if I want to have different validators where the method signatures differ?  Code  for(BatchValidator validator : validators) {   try {          if (validator instanceof BatchErrorValidator) {       ((BatchErrorValidator<T>) validator).validate(targets);     } else if (validator instanceof BatchWarningValidator) {       ((BatchWarningValidator<T>) validator).validate(targets, header);     }   } catch (BatchValidationException e) {     handleImportExceptions(e, header.getSequenceId());   } }


Listen to my audiobooks on iphone6 that are not bought from itunes

Total Apple noob here.  I have a macbook running yosemite 10.10.5 and an iphone six.  I have some audiobooks in mp3 format on the macbook. How can I listen to these audiobooks on the iphone?  -I plug my iphone into the macbook.....it does not show up in finder  -it does show up in itunes. I dragged and dropped the mp3s into my iphones audiobooks folder in itunes. It transfers, and when done, the audiobooks library is still empty. When I use the files app on my phone it says I still have 0 files. The audiobooks then show up in my music library, and can only be accessed from apple music app (which does not play audiobooks well).  -The audiobook files do not show up on my files system on the iphone when I try to access them with third party audio book apps.  How can I achieve this?


Film set on an escape pod from a sabotaged space station

I saw this movie when I was about 12 (20 years ago), and it's stuck with me for some reason.  A group of survivors are onboard an escape pod after their space station exploded. Amongst them is a dwarf engineer with a cyber arm and a blind man. The members start dying and it turns out the blind man (who is not really) is the killer, and the original saboteur.  I would guess it can out after Alien, it has a similar aesthetic (although much lower budget). It may have been a straight-to-video release.


Possible Duplicate:          I have a script, in which a script snippet is  x=3 awk '$2=$x{print $1}' infile   the external variable is x,  but it prompts an error in awk  so in this situation,how to make awk run successfully?  thanks!


Why $ \lim_{t\to\infty} \frac{W_t}{t} = 0 $  I tried to write it as Wiener process is defined which is:  $ \lim_{t\to\infty} \frac{W_t}{t} = \lim_{t\to\infty}\lim_{N\to\infty} \frac{\sum_{k=1}^{\lfloor Nt \rfloor} \varepsilon_{k}}{\sqrt{N}*t}*\frac{\lfloor Nt \rfloor}{\lfloor Nt \rfloor} $  and then use a Law of large numbers but I got expression $ 0*\infty $   any hints or solution would be appreciated.


Concatenate text from multiple rows into a single text string in SQL server?

I have a table in a SQL-Server database (SQL-Server 2016) with 2 fields: ConcateCode   ID int, Random nchar(5)  ID  Random  1   A2dd4 2   2f4mR 3   dhu9q 4   0lpms  Now I need a query where I get all the Random-fields concatenated in one field from Start-ID to End-ID, e.g. something like SELECT ConcateCode FROM Table WHERE ID >= 1 AND ID < 5  and returns A2dd42f4mRdhu9q0lpms. The problem is that I can't use a StoredProcedure, because my Programming-Language doesn't support Stored-Procedures, but only direct table access or queries. The question sounds stupid easy, but I try to solve the problem now for a week and get no solution. Hope someone is more intelligent than me.


Is there a way to report to google scholar some systematic mistakes?

I've noticed, for citations, that some BibTeX files provided by google scholar are having regular errors (I believe these are errors).  For bib items, there is the "pages" field, in which we could input a range or a number of pages an article has. I've found at least two journals (in a short time span) whose articles have a wrong "pages" field. For instance  @article{baffou2009heat, title={Heat generation in plasmonic nanostructures: Influence of                  morphology},   author={Baffou, G and Quidant, R and Girard, C},   journal={Applied Physics Letters},   volume={94},   number={15},   pages={153109},   year={2009},   publisher={AIP} }   or   @inproceedings{ammari2015super,   title={Super-resolution in high-contrast media},   author={Ammari, Habib and Zhang, Hai},   booktitle={Proc. R. Soc. A},   volume={471},   number={2178},   pages={20140946},   year={2015},   organization={The Royal Society} }   Similarly, this last paper is not a proceeding, but an article from the journal "Proceedings of the Royal Society".   Probably there are some other mistakes around.  I know that these data are collected automatically, but, is there any way to report the errors to help google scholar to perfect their algorithms?


Find all points where the curves $f(x) = x^3-3x+4$ and $g(x) = 3x^2-3x$ share the same tangent line.  Graphing them I see that they look like they share a tangent line at $x=2$.  I got the derivatives of both and set them equal to each other and got $x=0$ and $x=2$.  After plugging $2$ back in I got $6$. So the point is $(2,6)$.  Is that correct?


If $f$ is holomorphic on a domain $D$, and $f$ is bounded on $D$, does this imply that $f'$ is bounded on $D$?

If $f \leq M$ on $D$, we can use Cauchy's estimate to note that $f'(a) \leq M/r$ where $r$ is the radius of the largest circle around $a$ that is contained in $D$. Yet, we can make $r$ small by taking $a$ close to the boundary of $D$. So can $f'$ be unbounded on $D$?


I was having a bit of trouble with an integral  $$\int {1 \over (x^2-1)^2}dx$$  It was given as a partial fractions problem, and I tried a substitution of  $x=sec(\theta);dx=sec(\theta)tan(\theta)d\theta$  to get $$\int{{\sec(\theta) \tan(\theta)}\over{\tan^4(\theta)}}d\theta=\int{\cos^2(\theta)\over \sin^3(\theta)}d\theta$$  but I can't seem to move past this. Any suggestions would be greatly appreciated.


We are totally panicking about our 5 hour layover at Ataturk on the 19th July. We will be flying Turkish airlines and need to stay at the airport for 5 hours till we board our onward flight to Billund, Denmark No other airline tickets are available.  Is it safe? Would the airport be affected?  Honest opinions pls!


Find Fourier Series of the function $f(x)= \sin x \cos(2x) $ in the range $ -\pi \leq x \leq \pi $  any help much appreciated   I need find out   $a_0$ and $a_1$ and $b_1$  I can find $a_0$ which is simply integrating something with respect to the limits I can get as far as  $$\frac{1}{2} \int_{-\pi}^\pi \ \frac12 (\sin (3x)-\sin(x)) dx$$   How would I integrate the above expression ?  secondly how would I calculate $a_1$ and $b_1$ but despite knowing the   to find the fourier series Im having trouble applying them to this question


Why can the QFT be replaced by Hadamard gates?

I'm studying Shor's Algorithm. In the book, author explains QFT can be replaced by Hadamard gates? Why this process is possible??    Thank you everybody. This is QPE. I attach part of book!!


Given N sampled values, what does the "p-th quantile of the sampled values" mean?


How to Toggle Selected Objects Visibility with H shortcut as in Maya

I want to be able to toggle the visibility of selected objects with a shortcut (H) the way you can do in Maya and XSI, shown in the GIF. I'm guessing scrippting is needed. I've tried to do it my self but I'm new to Python and Blender and as soon as the objects are hidden they seem to no longer be in a selection state/list. Eg if I manually select the hidden object/s in the Outliner and try to print the selected object to the console, none seem to be selected. Is this possible to do with the current state of Blender 2.8?


sparked my question.   Will my PC receive the Long Term Support (LTS) using LXDE in Ubuntu 12.04?  What does it mean that ? Does it just mean it's not explicitly tested with new hardware and doesn't get point releases? Or does it mean that LXDE packages don't get the same kind of community support as community-supported packages that more commonly appear in Ubuntu installations?


Proving $\left|\frac{w-z}{1-\bar{w}z}\right|$ < 1

How to prove $\left|\frac{w-z}{1-\bar{w}z}\right|$ < 1 if |z|<1 and |w|<1?    Please give me a hint.


Supposedly, the infinitely nested radical $$\sqrt{a-\sqrt{a+\sqrt{a+\ldots}}}\tag1\label{1}$$ converges to $$\frac {A-1}{6}+\frac 23\sqrt{4a+A}\sin\left(\frac 13\arctan\frac {2A+1}{3\sqrt 3}\right)\tag2$$ where $A=\sqrt{4a-7}$. In fact, that's how Ramanujan arrived at the famous nested radical $$\sqrt{2-\sqrt{2+\sqrt{2+\ldots}}}=2\sin\left(\frac {\pi}{18}\right)\tag3$$ So I'm wondering how you would prove $\ref{1}$. My best try was to set $(1)$ equal to $x$ and substitute to get $$x=\sqrt{a-\sqrt{a+\sqrt{a+x}}}$$to get an octic polynomial. But I'm not too sure how the trigonometry made its way into the generalization.  And I also wonder if there is a way to generalize this even further to possible $$\sqrt{a-\sqrt{a-\sqrt{a+\sqrt{a+\ldots}}}}$$ which has period $4$ instead of $3$.


Does the word "table" have anything to do with a table?

I am curious to know why a numerical chart can be called a table. What is the relation to the table at which people eat?


Minecraft 1.13.2: changing LAN hosts without using intial hosts playerdata?

When I take a single player world from a friend who was hosting the LAN server I have their player data instead of my UI. Is it possible to start with mine and then host? Also, in a way in which the friend doesn't lose their data when they rejoin?


I have been trying for a week to install (not live cd) Ubuntu on an external drive.  I am totally new to Linux and would love to try it out. That's why I want to install it on an external drive and not dual boot.   I used two USBs, one with a live Linux system, and another to install it onto. I chose the boot location as the external hard drive when installing Linux. But when I boot the PC (without the drive inserted)  GRUB appears and stays there. However when the drive is inserted and I boot the PC GRUB appears and gives me the option to go to Ubuntu.   So it seems as if Ubuntu is installed on the USB, but something important for booting seems to be installed on the PC and therefore when I use the drive on a different PC it doesn't boot (which is the main reason I'm installing Linux).   Please help me fix this!


Surjectivity of a map from a space to itself

I am wondering how to prove that a non-zero degree map from $A \to A$ is surjective. For example, identifying $S^1 \subset \mathbb{C}$, we can take $f:S^1 \to S^1$ via $f(z) = z^k$ with $k\neq 0$. This is a map of degree $k$. How can I show that it is surjective?  Note that I am interested in general topological spaces, not the circle example in specific.


Google Analytics configuration setting for Drupal multisite (domain and submain)

I am working on a Drupal mulsite project (using single database) and using Google Analytics module for this.  I have follow the below steps for GA configuration:   Created a domain name example1.com and a sub-domain name example2.com. Create an account on GA and create property for both of this domain name in GA account. Both property give me two different Tracking ID (same as below screenshot).      Into the configuration setting of GA from drupal admin section I have added Web Property ID of example1.com and into domain setting added both the domain name example1.com and example2.com into the section of List of top-level domains (a same as attached screenshot).      Now this configuration is only working for emample1.com, not for example2.com. So can anyone please tell me how can I use Web Property ID of domain exmaple2.php to get the result?


How many attack/damage rolls does a sorcerer make when using the Twinned Spell metamagic option?

Two related questions:   When using Twinned Spell with an attack spell, do you make one attack roll for both targets, or one each? When using TS with a spell that deals damage: do you roll damage once for both targets, or once per target? If it's a non-attack spell, each gets its own Saving Throw, obviously.


Tonight I'll be playing Power Grid for the second time with my game group. It's the second time for all of us.   What key strategy or tactic should I focus on to give me the best chance of winning?


Error using JDBC "java.lang.NullPointerException"

I get error on      java.lang.NullPointerException: Attempt to invoke interface method   'java.sql.Statement java.sql.Connection.createStatement()' on a null   object reference at   com.example.jacquesarroyo.onlinelibrary.suggestions$3.onClick(suggestions.java:81)   Here's the code I used:  add = (Button) findViewById(R.id.btnadd); errorlbl = (TextView) findViewById(R.id.lblerror); title = (EditText) findViewById(R.id.txttitle); author = (EditText) findViewById(R.id.txtauthor); year = (EditText) findViewById(R.id.txtyear); location = (EditText) findViewById(R.id.txtlocation);  ipaddress = "10.0.0.5";    db = "SampleDatabase";  username = "admin" password = "admin"; connect = ConnectionHelper(username, password, db, ipaddress);  add.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             try {                 st = connect.createStatement();                 preparedStatement = connect                         .prepareStatement("Insert into Books(Title,Author,Year) values ('"                                 + title.getText().toString()                                 + "','"                                 + author.getText().toString()                                 + "','"                                 + year.getText().toString() + "')");                 preparedStatement.executeUpdate();                 errorlbl.setText("Data Added successfully");             } catch (SQLException e) {                 errorlbl.setText(e.getMessage().toString());             }         }     });  @SuppressLint("NewApi") private Connection ConnectionHelper(String user, String password,                                     String database, String server) {     StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()             .permitAll().build();     StrictMode.setThreadPolicy(policy);     Connection connection = null;     String ConnectionURL = null;     try {         Class.forName("net.sourceforge.jtds.jdbc.Driver");         ConnectionURL = "jdbc:jtds:sqlserver://" + server + ";"                 + "databaseName=" + database + ";user=" + user                 + ";password=" + password + ";" + "ssl=false";         connection = DriverManager.getConnection(ConnectionURL);       } catch (SQLException se) {         Log.e("ERROR", se.getMessage());     } catch (ClassNotFoundException e) {         Log.e("ERROR", e.getMessage());     } catch (Exception e) {         Log.e("ERROR", e.getMessage());     }     return connection; }   line 81 is: st = connect.createStatement();


I am trying to understand the Georgi chapter of tensor methods in $SU(3)$ representations, and I don't know how to resolve the tensor product of 2 matrices in a 2 heavy quark + 2 light antiquark system. Namely:  Let the tetraquark system be:           $QQ\bar q\bar{q}$  So, those $Q$ heavy quarks interact and can be understood in the $3\bigotimes 3$ representations for $SU(3)$, and $\bar q\bar q$ can be understood as the $\bar 3\bigotimes\bar 3=3\bigoplus\bar 6$ representations for $SU(3)$.  The interaction diagram for the $Q$ heavy quarks is shown in the following scheme, which is an analogy to the Feynman Diagram where a gluon is understood to be exchanged between upper and lower arrows:  $i'\xrightarrow{(T_{a})^{i'}_{i}}i ,  {}^iQ$  $j'\xrightarrow{(T_{a})^{j'}_{j}}j ,  {}^jQ$  So, as usuall we consider the elements of $3$ representation as $u^i$, and therefore the elements of $\bar 3$ representation as $v_{j}$.  I must understand how does the following expression transform:  $(T_{a})^{i'}_{i}(T_{a})^{j'}_{j}\cdot(1/2)\cdot (w^iv^j+w^jv^i)=\Xi\cdot(1/2)\cdot(w^{i'}v^{j'}+w^{j'}v^{i'})$  In other words, how can one give the correct value of $\Xi$?  Note1: $T_a$ is understood to be the $a-ith$ generator of the associated Lie Algebra, which come from the definition of the Gell-Mann Matrices.  $(T_{a})^{i}_{j}\propto(\lambda)_{ij}$, in matrix notation.  Note2: I understand the Young Tableaux and they are not intended to be used here, so please don't try to explain this situation through the tables.   Note3: I assume this is a purely solvable mathematical problem and doesn't need a deep insight into the physical concepts...  Also requesting information about how to understand the tensor products in these cases, since I have been checking many sources but the definitions seem not clear enough.


blend files open in 2.79 version instead of 2.83 when double clicked

I can't find an answer even tho I have solved this issue already once. For some reason when I double click .blend file it opens it in 2.79 instead of 2.83. All I remember that there are multiple ways to set this in windows 10 but I can only remember one and that doesn't work. Which is to right click the .blend and set it to open with the 2.83. There is one thread about this from 2015 but it is useless nowadays. I can't delete the 2.79 as I need it for some files that I don't want to convert to 2.8+.


Novel about a dying sun and a generation ship

I've been trying to remember the name of this novel I read many years ago and it's driving me crazy. It's possible that I'm mixing two different novels together in my head but I don't think so. The story followed several plot lines but they all revolved around the Earth's sun dying- one followed the construction of a ship that was being sent into the sun to try and find out what was happening. I remember there was a lot of description of the heat shielding they were using and talking about how it would take the ship many, many years to reach the center. The other plot line I remember was on a generation ship where things had gone wrong somehow. One member of the original crew(I think he was augmented in some way) was leading a group of second or third generation decendants who had forgotten all about earth and technology. The novel spanned thousands of years. If this sounds familiar to anyone please let me know. Thank you so much!


Why is it "you look beautiful" and not "you look beautifully"?

You look beautiful  "Beautiful" is an adjective here. We often use "adverbs" to modify "verbs". Here the verb is "look" and instead of an adverb, we have an adjective "beautiful". Shouldn't it be:  You look beautifully  ? Two other examples are:  I work hard (instead of hardly) He looks handsome (not handsomely)  Do the adjectives work as adverbs here or it is another grammatical construction that I don't know?


Change Detection using Raster Calculator

I'm currently analyzing the change detection for urban expansion over a decade starting from 2006-2016. How can I use raster calculator in order to know the changes? For example, from agriculture to urban area and etc. I already classified the images into 4 classes, urban area,vegetation,water bodies and barren land.


Monitor total network traffic outside the network

I'd like to monitor my network traffic outside the local network on my main computer (a gentoo linux desktop workstation), which goes through a 3g wifi router (a Huawei e5220); this is a wifi only device, I have to connect to it directly through wireless connection, and I can't install any monitoring system on it.  I have a 10gb per month limit, but to check it I've to go on my mobile operator website and browse through 5 pages, and the web interface of the Huawei doesn't show reliable statistics. Since sometimes I have file transfers within the local network (a notebook, my mobile phone), the statistics shown in conky through totalup/totaldown or even the ifconfig's RX/TX output are not correct, since I'd just like to have the sum of R&T traffic outside of 192.168.xxx.xxx. I know that the statistics will not be precise (using other devices that will connect to internet through the 3g router, I'll never know the exact amount of used traffic if not by going to my operator's website), but an approximate value would be enough.  I already checked out other questions about iptraf, ifstat, wireshark and other tools (I don't want a graphic monitoring tool, I just need a simple output text I can use with python/bash scripting), but none of them seems to answer to my situation.  Thanks  EDIT: This is not a duplicate of : as explained I can't change the firmware of the router and it's a wireless only device, so I can't use another computer or wifi router to monitor the bandwidth.


Implement a Single Instance Java Application

I'm not sure if the is a Windows or a Java question.  I have a Java application running under Windows. I have associated a particular file extension (say, .xyz) with my application, so that when I double click a .xyz file, my Java application is started and the main() method sees the .xyz file as its first argument.  But when I click another .xyz file, a new instance of the Java application is launched. I would prefer the existing application to handle the new file.  Is there a standard way to do this, or do I need to program it from scratch?  If the latter is the case, I presume I have to do something like this: When the second instance of the application is launched, it checks if another instance is already running (how?), opens a communication link to that first instance, and passes the name of the file. Right?


How to use malloc for initialize a char array in C?

i try to allocate a char array with malloc but the size is always "8" : char *d = malloc(2356 << 1); printf("size of *d: %d\n", sizeof(d));  output: size of *d: 8  char *d = malloc(2356 * sizeof(*d); printf("size of *d: %d\n", sizeof(d));  output: size of *d: 8  char *d = malloc(2356 * sizeof(char)); printf("size of *d: %d\n", sizeof(d));  size of *d: 8  Please help me, what's is wrong with my code? Thanks!


I made a program with python that runs correctly when run with python interpreter. It reads some files from the same directory. In order to run the script from other paths, the script changes its working directory to its own location.  import os abspath = os.path.realpath(__file__) dname = os.path.dirname(abspath) os.chdir(dname)   But this does not work when I package it to .exe. Because when running .exe the __file__ variable is "main.py".  I know that it can be fixed by explicitly setting a fixed path:  os.chdir('/Fixed/Path')   But is there an elegant solution?


Should I be afraid of getting too many up votes?

I have had a question in mind for a long time:   Imagine that I posted a good answer to a question. Is it okay for the OP to up-vote all of my posts (answers and questions) without my knowledge? I know that the OP can accept my answer and up-vote it, but is it legitimate for the OP to up-vote all of my posts?  For example, if I had 200 questions and 100 answers, the OP up-voting all of my posts would result in a high reputation gain, like 1000 rep at the one time. What should I do about it?  Can I up-vote all of a user´s posts without knowing him? Will I or the OP get banned? Will all of the reputation be taken away?


I read this sentence on BBC News,     He was among those beaten by police during the infamous Selma-Montgomery voting rights march of 1965.   link:   As  I read suggested, Infamous is used for      having an extremely bad reputation   or     deserving of or causing an evil reputation   It seems to me, the word infamous only can be used to describe a event caused by the bad people, so in this BBC News article, it is the attack on the march being bad (infamous) and the march itself organised by civil rights activists to express a good will is not.  I just lost here, can someone explain it to me why they use infamous here?


Where to find and how to use Ubuntu's version of Windows's Run dialog?

I'm switching over from Windows to Ubuntu, and I want to know how to get the functionality of Windows Run dialog in Ubuntu.   In Windows, I just go to the Start button, and enter in the search field run, and the Run dialog pops up. I mainly use this program to connect to servers in my network by typing \\ + the name of the server.    How do I replicate this functionality in Ubuntu? Do I use the command line? I've read elsewhere about an old GNOME program called "Run" that I can get by installing the Compizconfig Settings Manager, but I don't know if this is what I want.


I am reading a computer science puzzles book.   And I get the following question -  "You have a five quart jug, a three quart jug and unlimited supply of water. How would you come up with exactly four quarts of water ?"  The question is pretty simple and I figured the sequence of "water transfers" to solve it.  But there was an interesting side-note that I did not know.  The side-note said that as long as the two jugs size relatively prime, it is possible to find a pour sequence for any value between one and the sum of the jug sizes.  It is true for 5 and 3.   But I want to know if it is really generally true or not ? If it is, it is really cool! What is the theorem called ? Who discovered it ?


Adding the name of the corresponding file to the plot in matplotlib

I am new in Python (and in programming at all) and trying to build the program for .csv data analysis. I have multiple .csv files and for each of them I build a plot. How do I add the name of the corresponding file to the title of the plot? Thanks!    Below is the coresponding part of the code:  import numpy as np import pandas as pd import matplotlib.pyplot as plt import glob  for fName in glob.glob('*.csv'):      df, loops = openF(fName)     fig, ax = plt.subplots(1, 1)      for i in range(loops):         df.loc[df['loop']==i+1][['freq','phase']].plot(x='freq', y='phase', logx=True, ax=ax)     ax.set_title('Phase/Freq'.format(fName))     ax.set_xlabel('Frequency, [Hz]')     ax.set_ylabel('Phase, [rad]')    plt.show()


Using ArcPy outside ArcMap gives error no module named arcpy?

I want to use some arcpy function outside arc map  i used following code but it ends up with error no module named arcpy can anyone help  import sys sys.path.append("D:\Installed Softares\ArcGIS\Desktop10.1\arcpy"); import sys.arcpy Radiancetemp = "C:\\Model_Uz\\radianMap" # Process: Raster Calculator arcpy.gp.RasterCalculator_sa("Float(\"%LE71970282002228EDC00_B6_clip.TIF %\" * 0.03705882) + 3.2", Radiancetemp)


Why does the C++ map type argument require an empty constructor when using []?

See also      Not a major issue, just annoying as I don't want my class to ever be instantiated without the particular arguments.  #include <map>  struct MyClass {     MyClass(int t); };  int main() {     std::map<int, MyClass> myMap;     myMap[14] = MyClass(42); }   This gives me the following g++ error:     /usr/include/c++/4.3/bits/stl_map.h:419: error: no matching function for call to ‘MyClass()’   This compiles fine if I add a default constructor; I am certain it's not caused by incorrect syntax.


Latex by default indents the first line of a new paragraph, but does not leave empty vertical space.   Currently, I am writing a text with many formulas in it. I don't think this paragraph style works well in my document, because the empty space after a formula is much more recognizable than new paragraphs and this hides the structure of the text.  I started to use \\ \\ for adding empty lines, but this seems to be really bad form.  So I have two questions:   How can I globally change the way a new paragraph is indicated. In particular, how can I add empty vertical space? How is this usually handled in mathematics and physics texts?


schengen visa duration on stay is less than visa validity

Hi got my schengen visa for 3 weeks validity but duration of stay shows 10 days, how long i can stay 10 days or 3 weeks please help


Why are t-tests rather than z-tests used in linear regression?

Do the explanatory variables need to have normal distribution in linear regression? Why are there z-tests rather than t-tests in logistic regression?


How to transfer screenshots from iPhone to OS X?

I dont' want it done automatically, I just want to get a bunch of screenshots from the phone to the Mac (OS X El Capitan). I plug in the phone but only iTunes starts up and I can't find any photos in it.


is a wonder. It lets you duplicate a hard drive to another, completely zero a hard drive, etc. But once you launch a dd command, there's nothing to tell you of its progress. It just sits there at the cursor until the command finally finishes. So how does one monitor dd's progress?


If you have a line passing through the middle of a circle, does it create a right angle at the intersection of the line and curve? More generally, is it valid to define an angle created between a line and a curve? Is the tangent to the curve at the point of intersection a valid interpretation (I.e a semi circle has 2 right angles) I saw it in a debate thread and it got me curious now.


When some one places a lure module do i take othere poeples pokemon?

If some one placed a lure module on a PokeStop and I go there am I stealing their Pokemons? For example when I see a Pidgey spawn does that mean everyone seea the Pidgey spawn and the first who clicks wins? Because I really don't want to steal other people's Pokemon when some one paid for that.


How to handle unknown type of numbers in C?

I need to write a method to calculate the average of an unknown type of numbers (double, float, int...). I tried to do something like this, but it works for double type only:  double average(void *arr, int length, int bytes) {     int i;     double sum = 0;     double num;     for (i = 0; i < length; i++) {         memcpy(&num, (char *) arr, bytes);         sum += num;         arr = (char *) arr + bytes;     }     return sum / length; }   Any suggestions?


repeated nginx ubuntu 16.04 error on update install

Every time I run sudo apt-get update an error is getting thrown regarding nginx.  The following NEW packages will be installed: nginx 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. 1 not fully installed or removed. Need to get 0 B/3.498 B of archives. After this operation, 37,9 kB of additional disk space will be used. Selecting previously unselected package nginx. (Reading database ... 542828 files and directories currently installed.) Preparing to unpack .../nginx_1.10.0-0ubuntu0.16.04.4_all.deb ... Unpacking nginx (1.10.0-0ubuntu0.16.04.4) ... Setting up nginx-full (1.10.0-0ubuntu0.16.04.4) ... Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. invoke-rc.d: initscript nginx, action "start" failed. dpkg: error processing package nginx-full (--configure): subprocess installed post-installation script returned error exit   status 1 dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-core (>= 1.10.0-0ubuntu0.16.04.4) | nginx-full    (>= 1.10.0-0ubuntu0.16.04.4) | nginx-light (>= 1.10.0-0ubuntu0.16.04.4) |   nginx-extras (>= 1.10.0-0ubuntu0.16.04.4); however: Package nginx-core is not installed. Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. nginx depends on nginx-core (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx- full (<< 1.10.0-0ubuntu0.16.04.4.1~) | nginx-light (<< 1.10.0-  0ubuntu0.16.04.4.1~) | nginx-extras (<< 1.10.0-0ubuntu0.16.04.4.1~);  however: Package nginx-core is not installed. Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed.  dpkg: error processing package nginx (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a   followup error from a previous failure.                       Errors were encountered while processing: nginx-full nginx E: Sub-process /usr/bin/dpkg returned an error code (1)   I've tried to resolve as suggested in other posts without success:  sudo apt-get remove nginx sudo apt-get -f install    # (as mentioned in )  $ systemctl status nginx.service nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mo 2016-11-07 21:05:51 CET; 7min ago Process: 10372 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)   I also tried the following... as the error persists.  apt purge nginx apt autoremove apt install nginx   How many options do I have from here to get on the right track?  Should I try uninstalling/disabling apache2?


Reference request: convergence for periodic Markov chains

Consider an irreducible but possibly periodic Markov chain on a finite state space with transition matrix $P$. We know there exists a unique stationary distribution $\pi$. If the Markov chain were aperiodic, we would have $P^n_{ij} \to \pi(j)$ as $n \to \infty$. This fails if the chain is periodic, but we have convergence of the Cesaro averages: $$\frac{1}{n}\sum_{k=1}^n P^k_{ij} \to \pi(j) \text{ as } n \to \infty.$$ Can anyone point me to a reference that states this fact? Every reference I've seen only considers convergence for aperiodic chains, or "fixes" periodicity by considering a lazy version of the chain. Alternatively, is there a simple way to obtain this result using the result for aperiodic chains?


I want to prove, that $GL(n,K)$ is open in $M(n,K)$, where ($K=\{\mathbb{R},\mathbb{C},\mathbb{H}\}$.  For the prove I don't want to use that the determinant is continous. Alternativly I assume a submultiplicative norm.  First step: Define $U_A:=\{B\in M(n,K):\Vert A-B\Vert<\frac{1}{\Vert A^{-1}\Vert}\}$ and show that it is a neighbourhod of $A$ in $M(n,K)$.  Second step: I show that the series $\sum_{k\ge0}(1-A^{-1}B)^kA^{-1}$ converges absolutely and the limit is inverse to $B$.  For the second step I should use the Neumann series, right? But I have some problems with the first step. Any help?


What's the JS equivalent of Pythons Tensorflow tf.random.set_seed(123)?

It's a shame they didn't just repeat the API, or at least didn't try to keep it as close as possible... So, what's the JS equivalent of tf.random.set_seed(5)? Thank you. And no,  is not an answer for mine, I don't need to implement my own PRNG, I don't need "random seed" for my own purposes, I need to seed TensorFlow so it initializes my neural networks in a repeatable way.


By theory I know that Naive Bayes Classifier is a linear one, but when I implemented the decision boundary it was a curve (not linear as shown below). Is there any explanation why this is happening? or Are there any reasons to make Naive Bayes nonlinear?  Here is the code  from sklearn.naive_bayes import GaussianNB  classifier = GaussianNB()  classifier.fit(X_train, y_train)  y_pred = classifier.predict(X_test)


Nodejs Mongo result is not the same as copied result

I've got a problem with MongoDB. When I make something like :   User.find({}, (err, result) => { })   I get something like :  [{ _id: someId name: someName surname: someSurname }]   When I copy it to clipboard and paste to any variable like :  let a = [{ "_id": "someId" "name": "someName" "surname": "someSurname" }]   And I check if ( a === result ), I get false and its not the same. My question is why, and how to fix it cause I need change "result" to something like "a"


Let $f: \mathbb{C} \rightarrow \mathbb{C}$ be an analytic function and let $a \in \mathbb{R}$. Show that if $\Re f(z) \geq a$ for all $z \in \mathbb{C}$, then $f$ is constant.    Now I know that I need to use the Liouville's theorem, to get the partials in respect of $(x,y)$: $u_x=v_y$ and $u_y=-v_x$.  The problem I'm stuck with is what $f$ should be. Will I use $f(z)= u(x,y)+iv(x,y)$?


Can words like "what" be the subject of a sentence?

In a question like "Who hears a noise?",  is the subject of the sentence who?  I can think of a few tests for subjects like: "the subject is the phrase that inverts with the auxiliary to form a question". But this is a question and there is no auxiliary. We could say that's because it's a subject, but that would be just to presuppose that it's a subject in the first place.  I can think of tests like: "the form of the verb will agree with the number of the subject", but on the other hand who does not seem to have  fixed grammatical number, and it sometimes seems like who might actually be agreeing with noun phrases later in the sentence:   Who are the most prolific writers of our age? Who is the most prolific writer of our age?   There are also tests like "the subject is usually the first noun phrase in the sentence". But of course if we have a question like:   Who have you bitten?   ... you, not who seems to be the subject. The first noun phrase test is not very good.  I also know that some theories of grammar say that there is a gap in wh- questions that the wh- word is extracted from. So can this gap for instance be the real object of a question? If so, is [See community wiki post in the linked to question]  How can we show whether who is really the subject of my original example question? And how about other wh- words like what? Can they (also) function as subjects?


Better query to select multiple columns into a single output column?

I have the following query that sort of works, but I find it to be kludgy and inefficient.  Is there a better way to write this query?  I know this is a bit of an odd query, else I would probably have found some advice when searching, but it is necessary for our business logic.  We've been doing this in Hibernate queries and using software to output the file but we're needing to improve performance drastically and that means using raw sql.  The output of this query is to be used to partially populate a helper table that we query to figure out which of our 40-odd product tables a particular item is contained in.  Could the following query be replicated using something like GROUP_CONCAT in reverse? Note that the second and third column must be repeated on each line.  The fields all contain the same type of data.  SELECT 'Pn', 'Mfg', 'TableId', 'SourceColumn', 'OtherData' SELECT PN1, Mfg, '26', 'PN1', OtherData FROM Table  UNION ALL SELECT PN2, Mfg, '26', 'PN2', OtherData FROM Table UNION ALL SELECT PN3, Mfg, '26', 'PN3', OtherData FROM Table UNION ALL SELECT PN4, Mfg, '26', 'PN4', OtherData  INTO OUTFILE 'XXX.dat' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n' FROM Table d;   Input looks like the following table:       |  PN1  |  PN2  |  PN3    |  PN4    |  MFG  |  TableId  |  OtherData  |     -----------------------------------------------------------------------     |  asdf |  abde |  12354  |  asdfc  |  2    |  26       |  0.2456     |     |  nupo |  1354 |  null   |  null   |  2    |  26       |  1.53       |     |  ...  |  ...  |  ...    |  ...    |  ...  |  ...      |  ...        |     |  ...  |  ...  |  ...    |  ...    |  ...  |  ...      |  ...        |     |  ...  |  ...  |  ...    |  ...    |  ...  |  ...      |  ...        |   I want the output .dat file to look like this:       "Pn","Mfg","TableId","SourceColumn","OtherData"     "asdf",2,26,"PN1",0.2456     "abde",2,26,"PN2",0.2456     "12354",2,26,"PN3",0.2456     "asdfc",2,26,"PN4",0.2456     "nupo",2,26,"PN1",1.53     "1354",2,26,"PN2",1.53     ...     ...     ...   If I take the INTO OUTFILE clause out, I get an output that looks like this:       |  Pn      |  Mfg     |  TableId    |  SourceColumn  | OtherData  |     -----------------------------------------------------------------     |  "Pn"    |  {blob}  |  "TableId"  |  "PN"          |  {blob}    |     |  "asdf"  |  {blob}  |  "PN1"      |  "PN1"         |  {blob}    |     |  "abde"  |  {blob}  |  "PN2"      |  "PN2"         |  {blob}    |     |  "12354" |  {blob}  |  "PN3"      |  "PN3"         |  {blob}    |     |  "asdfc" |  {blob}  |  "PN4"      |  "PN4"         |  {blob}    |     |  "nupo"  |  {blob}  |  "PN1"      |  "PN1"         |  {blob}    |     |  "1354"  |  {blob}  |  "PN2"      |  "PN2"         |  {blob}    |     |  ...     |  ...     |  ...        |   ...          |   ...      |     |  ...     |  ...     |  ...        |   ...          |   ...      |     |  ...     |  ...     |  ...        |   ...          |   ...      |


Use of the definite article "the" before "church"

I was in a Teacher's selection for a school in my country, and one of the coordinators said that she heard a mistake from another teacher that was unacceptable. I tried to figure out why was that, but I thought it was silly and forgot about it. Then I was asking about the weekend in my classroom and one of my Ss said the same sentence. I corrected him according to the coordinator, as she is way more experienced than me, but I couldn't actually explain why to him. The sentence was:     I went to the church.   I can't see the mistake in this sentence if the church had been previously mentioned in the context of the conversation. I understand, as a non-native speaker, that if you are talking to a person that doesn't have any idea of where you were and doesn't have any previous information about the specific place, the article 'the' should not be used. Also, I am assuming church as a count noun. So instead, we would say:     I went to a church.   Is it correct to use the indefinite article since I don't have any idea of which church he is talking about?   I made a research about it and found that places that people use in common (like school, church, hospital, work) but are not necessarily the same, we would omit the article, so we would use the sentence that the coordinator accept:      I went to church.   Like this sounds strange to me, but since I am not a native speaker, I think that it is OK.   I really don't think that it was an unacceptable mistake, since the use of the article will depend on the context. So, if I am talking to my student, asking what he did last weekend and we were not talking about anything before, which one should he use?


How is Hawkeye able to withstand this thing?

In Avengers: Endgame, Hawkeye retrieves the soul stone, holding it in his hand (seemingly without difficulty).  However, in previous movies, e.g., Guardians of the Galaxy volumes 1 and 2, it's an important plot point that Quill was only able to handle the power stone because of his heritage (i.e., he's a part lowercase-g god, not pure human).  Question: How is Hawkeye able to handle the soul stone?  I have two ideas, but I don't know if either of these are accurate:   Simply because he was wearing a glove (if I remember correctly).  Although that seems like pittance compared to an infinity stone. The soul stone has effectively "chosen" him because of the sacrifice of Black Widow.  Another human in the same setting would be destroyed.  The infinity stones have minds of their own.   Another possibility is that it's only the power stone that destroys humans on contact, but I don't think that's accurate, as it doesn't match Ego's explanation in Guardians of the Galaxy vol. 2.


Files not seen after complete scan for recovery with Easeus data recovery

I formatted by Desktop drive,  I used Easeus data recovery during scanning all files will be showing, but after completion, I can't find all files


Alright so I have computer currently with an Inateck "SuperSpeed" PCI-E expansion card with 4 USB 3.0 Slots.   Now we need about 16 pieces of hardware plugged into this machine from a far distance. Our current setup is USB 3.0 Extender that gets its own power that connects to a USB 3.0 hub where each has 3 to 4 additional USB 3.0 slots. Now imagine that for each of those 4 slots. The problem is, it that it is extremely unreliable. If you turn on the machine with everything plugged in we get the blue screen of death. Instead we have to plug everything in, in a very specific order. So that all 16 pieces of hardware are read.   Is there limits to what I am trying to do here? The computer is a simple Dell Inspiron 3650. Is the problem with the motherboard that comes on this machine?  If so what might be some hardware components that I need? Or maybe just point me into the direction of a motherboard that might be able to handle this kind of pressure.


I am no JavaScript expert, but I found some code like this  a();  function a(){   alert('a'); }   and I was surprised to find it works (I think something like that will not work in Python). I expected that the function a can't be executed before being created. How does interpreter work and why functions can be called before declaration?


Which Edition Of SQL Server Is On The Disc?

I have several SQL Server 2008 R2 setup discs, but they're not labelled with which edition (Standard, Developer, Enterprise etc.) they are for.  Running them doesn't give much help as it just shows that it's a SQL Server 2008 R2 install, nothing more specific (unless I'm looking in the wrong place).  I hope that one of you smart cookies will be able to point me in the right direction to find out the edition of SQL Server on the discs.


Can this quick way of showing that $K[X,Y]/(Y-X^2)\cong K[X]$ be turned into a valid argument?

I've been trying to show that   $$ K[X,Y]/(Y-X^2)\cong K[X] $$  where $K$ is a field, $K[X]$ and $K[X,Y]$ are the obvious polynomial rings over the indeterminates $X$ and $Y$ and $(Y-X^2)$ is the ideal generated by the polynomial $Y-X^2$.  Though I'm sure there's a fairly easy way to find an explicit isomorphism between the two rings, the following argument jumped out at me:   If we substitute in a value for $X$ - $x$, say, then the ideal $(Y-x^2)$ is a maximal ideal of $K[Y]$.  So the quotient $K[Y]/(Y-x^2)$ is a field; in fact, the homomorphism $K[Y]\to K:P(Y)\mapsto P(x^2)$ and is clearly surjective, so the quotient is isomorphic to $K$.    I'd like to be able to deduce from this that $K[X,Y]/(Y-X^2)\cong F[X]$, but I can't see a nice way to do it.  I know that the 'substitution' maps $P(X,Y)\mapsto P(x,Y)$ are homomorphisms, but I can't see a nice way of pulling all these homomorphisms back to the polynomial ring in two variables.    Or maybe I'm completely wrong and there is no way to turn this into a valid argument.  Can anyone help me?


Does radio room in Fallout Shelter always attract the same kind of low stats dwellers?

I've been running several 1-slot radio room for a while and I only get dwellers from the wastelands whose SPECIAL stats sums 12  From time to time, one stat peaks to three instead of the usual max 2 points but it is still a 12 SPECIAL dweller  Should I always expect this? Do stats depend on the quality of the room/broadcasters or it will always be the same no matter what I do?  I am not asking about getting legendary or rare dwellers, it's just that if it's always as it's happening on my case. I have for example a +1 SPECIAL pet to newborns, maybe there could be a way of getting better stats for attracted dwellers


How do I add fields to a layer attribute table .created by CSV import into QGIS?

I have added a layer from a delimited text (csv) file.  I now wish to add the usual X, Y and Rotation fields to allow me to move and rotate the layer labels.  However, it doesn't seem possible to edit the attribute table as the edit icon is greyed out for this table.    Can I somehow overcome this problem?


How to get iWork and iLife after upgrading to Yosemite from Mavericks?

I bought a mid-2014 MBP Retina (activated on 30/09/2014) from a friend and did a re-installation of Mavericks, then upgraded to Yosemite right after the re-installation (without associating the mac to my Apple account. I only did that after upgrading to Yosemite.)  Now I realise that I cannot get the iWork and iLife apps for free (I should have associated the mac to my Apple account and use it to get iWork and iLife before upgrading, right?).  Is there anyway to get that apps without re-install everything ?  Thank you in advance for your help.


Is Attribute based encryption sub-class of Identity based encryption

I have a basic question related to Identity and Attribute based encryption.  Construction of IBE scheme was first shown by Boneh et al. in 2001 and I think in 2004 Sahai and Waters introduced  Attribute based encryption in 2004 for multiple attributes. ABE extended to CPABE or KPABE schemes.  Can ABE schemes be considered as child of IBE schemes or ABE can be considered as subclass of IBE schemes. Or ABE schemes cannot be categorized as a variant of IBE scheme at all.  Is there a generic name under which I can group the IBE and ABE schemes? Please suggest.


Determining correct term for a button with options and Vue JS example

I am familiar with some UI terms but certainly not all.  I remember smiling when I figured out what people meant by the term "snackbar" (and have now designed one myself).  However, there is a button which normally has a small-ish triangle to the right.  Normally you click the button and a single action happens, however if you specifically click the "small-ish" triangle, you'll get a dropdown list of options.  The default one is typically the one you'd have gotten had you just clicked the main part of the button.  But the other options are things an advanced user might want to do.  Another thing I've seen on the side is a .. but rotated 90 deg.  Screenshot:   Again, my question is what the normal term is (if there is one).  any additional link to a VueJs example would be over the moon.


username different in Terminal and System Preferences

I am new to Mac.  Recently I realized something for usernames.  When I type whoami in Terminal. It returns apple. However in System Preferences>Users and Groups" there is only one user and it says "sinan". (I am suspecting this could be the real name not the username)  Shouldn't be both the same?  Can I change the username in the terminal? Would that affect anything on the system (Lion)?


I have a simple family tree defined in Latex and package genealogytree: \documentclass{article} \usepackage[all]{genealogytree} \begin{document} \begin{tikzpicture} \genealogytree[template=formal graph]{child[id=fam_A]{g[id=na1,male]{a_1}p[id=na2,female]{a_2}child[id=fam_B]{p[id=nb1,male]{b_1}g[id=na3,female]{a_3}c[id=nb2,male]{b_2}c[id=nb3,female]{b_3}}child[id=fam_C]{g[id=na4,male]{a_4}p[id=nc1,female]{c_1}c[id=nc2,male]{c_2}union[id=fam_D]{p[id=nd1,female]{d_1}c[id=nd2,female]{d_2}c[id=nd3,male]{d_3}c[id=nd4,male]{d_4}}}c[id=na5,female]{a_5}}} \end{tikzpicture} \end{document}  I can generate PDF using commandline: pdflatex myFile.tex  But I would like to have result as SVG file. How can I extract it to SVG file (not SVG inside PDF)? Thank you for help !


Are the prime numbers used for RSA encryption known?

I read that one reason why RSA is secure is because it uses a huge number that's called the modulus which is the product of two prime numbers.  For maths reasons the prime numbers being prime numbers allow only them to be multiply together and have that exact modulus as a result.  Getting both prime numbers from the modulus is hard. It would take years to do so and this is where the security comes from.  There seems to be an interest to find more and more prime numbers. A lot of prime numbers are known publicly and every once in a while they find another one. They become longer and longer, which helps with the algorithm.  If multiplying two primes is so much easier then the inverse task, why does nobody do this? Why does nobody multiply all known primes and build a table of results?  Would this be as impractical as solving factorisation problem? Or are the primes used for RSA secret?  I heard that people do this with hashing algorithms to build so called "rainbow tables" and am wondering why not the same is happening to RSA.  I'm not really into cryptography and would appreciate an answer in simple terms if possible.


How to prevent alt-f1 from selecting Dash

I am running Ubuntu 12.04. Alt+F1 gets intercepted by Unity (I'm guessing) and highlights the Dash icon. I don't want it to do that, as I want Alt+F1 for other purposes. I have scoured google and tried everything I could find, to no avail. How can I prevent Unity from handling Alt+F1?


Use the /testfor command with scoreboard, don't want to use @p or @a

I've been trying to make a Minecraft shop but I only want myself accessing it, I've tried multiple variations of:  /testfor (nameofplayer) {score_ka1:1}   (ka1 is just another objective for amount of kills a player has)  Also, I don't want to replace (nameofplayer) with something like @p because it wouldn't work.


Does the direction of magnetic field in a solenoid point from north to south anywhere?

Is there any case where the direction of magnetic field inside a solenoid points from its North Pole to its south?


Let $V$ be a real vector space of dimension $n$ and let $\langle \, \cdot\, , \,\cdot\, \rangle$ be an inner product on $V$. We can define a linear functional on the space of endomorphisms of $V$ by $$ \alpha(A) := \int_{S^{n-1}} \langle Av, v \rangle d\mu, $$ where $S^{n-1}$ is the unit sphere defined by the inner product and $d\mu$ is the Lebesgue measure on $S^{n-1}$. This functional is actually a multiple of the trace. Here's a nasty proof of this:  Let $(e_1,\ldots,e_n)$ be an orthonormal basis of $V$. Given $v \in V$ we write $v = v_1 e_1 + \cdots + v_n e_n$, so $v \in S^{n-1}$ if and only if $\sum |v_i|^2 = 1$. We now write $$ Av  = \sum_{j=1}^n v_j \, A e_j = \sum_{j,k=1}^n v_j \, a_{jk} e_k $$ so that $$ \langle Av ,v \rangle = \sum_{j,k} a_{jk} \, v_jv_k. $$ It's now classically known that $\int_{S^{n-1}} v_j v_k d\mu = c \, \delta_{jk}$ for some constant $c$ that's not terribly important here (and depends on the normalization of $\mu$ anyway), so we get $$ \alpha(A)  = \int_{S^{n-1}} \langle Av, v \rangle d\mu = c \operatorname{tr}(A). $$ Question Is there not a better way of doing this? That is, is there not some way of seeing that $\alpha = c \operatorname{tr}$ for some nonzero $c$ without breaking out the local coordinates? This basically comes down to showing that $\alpha(AB) = \alpha(BA)$ for any $A,B \in \operatorname{End} V$, but I can't see how to show that (or equivalently that $\alpha$ vanishes on the commutator) without going through the same calculations as above.


New to Linux. Mint and I don't mix. I want to switch from Mint to Ubuntu. I have no files to save.  How can i accomplish total, clean, complete Ubuntu install (No home folder creation. No dual anything. No partitions to save anything.)? Do I actually have to "uninstall" the Mint OS?  I cannot find anything anywhere that explains how to do this. What key do I press during start-up to let me change boot order to the bootable Ubuntu USB?


How do I set up a "secure" open resolver?

This is a  about securing public DNS resolvers   Open DNS servers seem pretty neat and convenient, as they provide IP addresses that we can use consistently across our company regardless of where they are located. Google and OpenDNS provide this functionality, but I'm not sure that I want these companies to have access to our DNS queries.  I want to set up something like this for use by our company, but I hear a lot about this being dangerous practice (particularly in regards to ) and I want to make sure that we do this right. What things do I need to keep in mind when building this type of environment?


How to align right within equation array

Suppose I have something like the following:      \begin{eqnarray*} \mathrm{gcd}(x^3 + 6x^2 + 5x + 5, x^3 + 13x^2 + 6x + 3) &=& 102x^2 + 108x + 2 \ \mathrm{with} \ p = 109 \\ \mathrm{gcd}(x^3 + 2x^2 + 9x + 4, x^3 + 3x^2 + 7x + 9) &=& 1 \ \mathrm{with} \ p = 131 \\ \mathrm{gcd}(x^3 + 3x^2 + 9x + 12, x^3 + 6x^2 + 12x + 4) &=& 6x + 122 \ \mathrm{with} \ p = 157 \end{eqnarray*}   How do I align the statements at the end of each line (i.e. the "with p = ..." bit) to the right?


Please share if you have a faster approach, but I’ll share what I have so far. I think it reduces to some combinatorial problem, I’d like to see a combinatorial argument if possible.   From computing for small $n$ in wolfram alpha, I think the answer is \begin{align*} \ln(x^2-x+1)&=\sum_{n=1}^\infty (-1)^n \frac{a_n}{n} x^n \\ &= -\frac{1}{1}x^1+\frac{1}{2}x^2-\frac{2}{3}x^3+\frac{1}{4}x^4-\frac{1}{5}x^5+\dots \end{align*} where $a_n=2$ if $n=3,9,27,81,\dots$ and $a_n=1$ otherwise.  We know $$ \ln(1+x)=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+\dots $$  So $$ \ln(1+(x^2-x))=\frac{x}{1}(x-1)-\frac{x^2}{2}(x -1)^2+\frac{x^3}{3}(x-1)^3-\dots$$  Now we compute the coefficient of $x^n$. \begin{align*} x^8 \to -\frac{1}{4}\binom{4}{4}+\frac{1}{5}\binom{5}{3}-\frac{1}{6}\binom{6}{2}+\frac{1}{7}\binom{7}{1}-\frac{1}{8}\binom{8}{8}=\frac{1}{8}\cdot8! \\ x^9 \to \frac{1}{5}\binom{5}{4}-\frac{1}{6}+\frac{1}{7}\binom{7}{2}-\frac{1}{8}\binom{8}{1}+\frac{1}{9}\binom{9}{0}=-\frac{2}{9}\cdot 9! \\ x^{10} \to \frac{1}{5}\binom{5}{5}-\frac{1}{6}\binom{6}{4}+\frac{1}{7}\binom{7}{3}-\frac{1}{8}\binom{8}{2}+\frac{1}{9}\binom{9}{1}-\frac{1}{10}\binom{10}{0}=\frac{1}{10} \cdot 10! \end{align*} In other words, I want this identity: $$ \sum_{r+k=n} (-1)^{r+1} \frac{1}{r} \binom{r}{k} = (-1)^n \frac{a_n}{n} n! $$  with $a_n$ defined as above. Any help to prove the identity would be appreciated. Any other faster approaches would also be appreciated. Thanks!  Also, this LaTeX was a pain to type. Is there a way to reduce it? (Like \frac to \f, \binom to \b)


Can I extract a program or script from an ISO image or bootable drive?

Is it possible to extract a specific script from an .iso or bootable drive?  I want to use a Ruby script would come pre-installed if I were using Kali Linux, but without actually using Kali Linux.   Is it possible to pull it from kali.iso in Ubuntu 14.04?


Is it possible to change text color for all headings?

I want to change only the color (not font size, etc.) of all headings in my documents (\section, \subsection, \subsubsection, ...). I want to keep all other settings fixed.   Is there a way to do this?


Any help would be appreciated.  If $n$ is a natural number $\ge 2$ how do I prove that any graph with $n$ vertices has at least two vertices of the same degree?


Could someone explain simply, the significance of Quadratic Reciprocity? I recall it being referred to as a ``crowning achievement,'' but I failed to grasp why.


Trying to increase Swap file in Ubuntu 18.04

I have been following the solution given in the answer here:  However when I reboot the old swap is still in place.  $ free -h               total        used        free      shared  buff/cache   available     Mem:            31G        1.9G         27G        1.3G        2.3G         27G     Swap:          979M          0B        979M   I have a recommendation from VMWare Workstation to increase it to 4 GB.  $ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> /dev/mapper/ubuntu--vg-root /               ext4    errors=remount-ro 0       1 # /boot was on /dev/nvme0n1p2 during installation UUID=daf8150f-9039-42e9-972b-873a1cc274d0 /boot           ext4    defaults        0       2 # /boot/efi was on /dev/nvme0n1p1 during installation UUID=5181-A887  /boot/efi       vfat    umask=0077      0       1 /dev/mapper/ubuntu--vg-swap_1 none            swap    sw              0       0   How do I do this?


How to estimate the I/O operations performed by MySQL queries?

On Amazon's RDS, you pay about $0.10 per 1 million I/O requests. I've noticed a very high number (in hundreds of thousands) of I/O requests for a very low traffic database. On seeing this, I did some further research, and found this question which describes that for a 6,000 user website, he was generating 800 million I/O requests a month, which would cost him about $80 / month.  Therefore, I want to know in advance how many I/O operations a MySQL query would generate, and how to optimize / minimize them. Is there any way to estimate how many I/O operations a query would perform, and any general rules I can follow to keep them as low as possible?


Changing an object's angle and velocity by a given angle and velocity

I'm working on making a simple-ish physics engine for my game, but I'm not sure how to do the math on part of it.  How I currently have my engine setup is as follows:  Every object affected by physics has a "velocity" which consists of it's angle and force.  Each object has an "push" function that takes a new velocity and affects the current velocity with it.  The angle of velocity is global. So moving towards the right of the screen will always have an angle of 90. For example, if an object's velocity has a force of 10 and an angle of 90 and I adjust said velocity by an angle of 180 with a force of 10 it'll get a new velocity. This velocity will have a force of 0, so it's angle is irrelevant. Or if I take that earlier velocity with an angle of 90 and a force of 10 and adjust it by a velocity with an angle of 180 and a force of 5, the resulting velocity will have the angle of 90 but the force of 10.  I'd provide more examples and test cases, but I don't know how to figure out the velocity of an object moving with a force of 13 and an angle of 32 when it's pushed by a velocity of 5 at an angle of 193.  TLDR;  I have objects with angular momentum. I want to be able to "push" them with a given force and angle and have them adjust accordingly(taking their current force and angle into account).


Make "Internal Speakers" a permanent option in sound options on the menu bar

Sometimes I use a headset with my iMac, but I often need to switch between both. Unfortunately, I need to unplug the headset every time to do this. This is a hassle, because the iMac is located far back at the table and is surrounded by documents and other things.  Back when I had Windows, I could just switch between "Internal Speakers", "Headset" and every other sound-system that was connected to the PC.  When using the options in the sound icon in the menu bar, the "Internal Speakers" option disappears as soon as the Headsets are plugged in.  How can I make them stay? I really would like to choose between both outputs without unplugging the headset.  edit: no workaround like in "Use internal speakers with others plugged in", just making "Internal Speakers" a permanent option without alternative solution


Require Airport Transit Visa in Germany?

Me and my family is travelling from San Jose, Costa Rica to New Delhi (India) via following itinerary  San Jose (United Airlines) - Houston (United Airlines) - Frankfurt (Lufthansa) - New Delhi  We have 2 hrs transit at Frankfurt and we have a valid B1/B2 U.S. Visa. I called up German Embassy in San Jose and they said that you require a Airport Transit Visa but seeing in various forums and online on German embassy's website I see that though transit is required for Indian Citizens but an exception is there if you have a valid U.S. visa. I am not sure what type of U.S. Visa are they talking about here. Does my B1/B2 visa hold as an exception for transit in that rule?  I am not sure if I need to get the transit visas or not and feel that embassy guys just didn't listen to me properly before giving me a verdict of getting a Transit Visa.


Maybe this is a trivial question, but I am struggling with it for a while.  I have an alkaline AA battery which is consuming 80mA for 8 seconds each 30 minutes. I need to calculate how many days it will last before reaching 1.1v. I know it depends a lot on the battery type, but let's say it is a Duracell battery.  I have problems in calculating the "average" consumption per hour, as the battery is drained for just 8 seconds (80mA) each 30 minutes.  Thanks for any help.


SQL Rearange data from multiple cells into one

I am trying to create a view that groups by a particular column (let's say BRAND) and all instances of a 2nd column (let's say COLOR) for each BRAND, grouped in a single cell and separated by semicolon. It's hard for me to put it in words but this is what I am looking for:  FROM THIS TABLE  |BRAND  |COLOR  | |-------|-------| |TOYOTA |BLUE   | |NISSAN |BLUE   | |FORD   |BLUE   | |NISSAN |RED    | |NISSAN |GREEN  | |FORD   |RED    | -----------------   TO THIS VIEW  |BRAND  |COLOR          | |-------|---------------| |TOYOTA |BLUE           | |NISSAN |BLUE;RED;GREEN | |FORD   |BLUE;RED       | |-------|---------------|   I wish I could provide code but I have not come up with any ideas.


Getting java.lang.NullPointerException: null in DynamoDB

I am working with DynamoDB, I am extracting the information of my table "orders" correctly but I just have problems with one.  For example, if I want to get the userID, I got it correctly doing that:  String user_idp = item.get("user").getM().get("user_id").getS();    But if I want get the same for other field called provider I got java.lang.NullPointerException.  String pr = item.get("provider").getM().get("name").getS();   The error that I got is:  There was an unexpected error (type=Internal Server Error, status=500). No message available java.lang.NullPointerException: null   Here is the structure:    "provider": {     "address": "someadress",     "name": "somename",     "phoneNumber": somePhoneNumber,     "provider_id": "someProviderId"   }     I am missing something with DynamoDB, can you help me?  Thanks!


I have an animation of objects running along a spline and they vary their scale following a sine pattern. The thing is that the spheres sometimes overlap. I have made a loop which contains another loop in order to detect distance minus the estimated radius to scale down or up depending on the space between. However I have failed miserably.  I know this require to reassign loops but I think I haven´t done it in a proper way. Objects are always scaled down.


Does it make sense to train kalman filter on unscaled (Timeseries-)data, to clean it?

I have Timeseries data to clean and I got the tip to use a kalman Filter. My Question is, does it make sense to "fit" this kalman-filters parameters to an unscaled and unnormalized (therefore raw) dataset of timeseries, with the purpose to clean it? Or will I get far more accurate results when normailzing, and then denormalizing it?


Limit of a function - $x$ either rational or irrational - limit $1$ or $0$.

Show that: The continuous functions $f_{n,k}(x):=(\cos(k!\pi x))^{2n},0\leq x \leq 1$ satisfy the relation $\lim_{k\to \infty}(\lim_{n\to \infty}f_{n,k}(x))=\begin{cases} 1, & \textit{if x is rational}\\0,&\textit{if x is irrational}\end{cases}$ on the interval $[0,1]$.  Usually I start doing this type of problem by plotting $f$ for some $n$ and $k$ but I can't seem to see a correlation between the plots and the limit of the function. Anyways, here were my general ideas: I was thinking that it is $1$ only if the argument of the cosine is an even multiple of $\pi$, meaning that, let's say $x=\frac{a}{b}$ for the rational case, then I was thinking that if $k$ is large enough a number in $k!$ cancels with $b$ leaving only $j!\pi a$ in the argument (where $j!$ is $k!$ without the $b$). Similarly I was thinking that when $x$ is irrational then it wouldn't cancel with a number in $k!$, right? Meaning that the argument of the cosine is uneven, meaning not $1$. And since all of it is to the power of $2n$, that would mean that for $\cos(k!\pi x)\neq 1$ the limit of $n\to \infty$ would be $0$, right? Now, even if my argumentation were correct I don't know how to write it down mathematically correct. Could anyone help me out here?


All integer values of $\frac{a^2+b^2+1}{ab-1}$

Determine all possible values of $\frac{a^2+b^2+1}{ab-1}$ where $a,b$ are positive integers.  I am quite certain one should use a Vieta jumping argument, but I cannot complete it.  Let $\frac{a^2+b^2+1}{ab-1} = k \in \mathbb{Z}$ with $a+b$ being minimal. Clearly $k > 0$ and we have $a^2 - kab + b^2 + k + 1 = 0$. Without loss of generality $a\geq b$. We see that $x_1 = a$ and $x_2 = kb-a = \frac{b^2+k+1}{a}$ are the roots of $x^2 - kbx + b^2 + k + 1 = 0$. The expression $kb-a$ shows they are both integers and $\frac{b^2+k+1}{a}$ they are both positive. To reach a contradiction, it suffices to have $b + \frac{b^2+k+1}{a} < a + b$, i.e. $b^2 + k + 1 < a^2$. Hmm, if we can perhaps somehow assure $k\leq a$, we will just consider pairs $(a,b)$ with $a\neq b$ and $a+b$ minimal $-$ that's how we can rule out the case $a\neq b$ and the rest will be very easy. So any idea how to complete this argument, if it indeed works?  Any help appreciated!


How to use a Twig variable as View name in drupal_view() Twig Tweaks function?

This works: {{ drupal_view('nursing_resource_blog_teasers', 'block_1') }  But this doesn't: {% set view_name = "nursing_resource_blog_teasers" %} {{ drupal_view(view_name , 'block_1') }  It appears that drupal_view() isn't allowing a variable as the View name. Is there a way to make this work?


$\det{\begin{bmatrix} A & B \\ C & D\end{bmatrix}}=(D-1)\det(A) +\det(A-BC) $?

I found this identity in ,  When $D$ is a $1 \times 1$ matrix, $B$ is a column vector, and $C$ is a row vector, then $$\det{\begin{bmatrix} A &  B \\  C & D\end{bmatrix}}=(D-1)\det(A) +\det(A-BC)= (D+1)\det(A) -\det(A+BC)$$  I wonder how to prove that. Thanks!


I manage to use graphical images in both text and tables as if they were letters: \documentclass{article} \usepackage{graphicx} \newcommand{\inspictext}{  \includegraphics[width=0.04\textwidth]{example-image-b}}  \begin{document}  Some text \inspictext \begin{table}   \newcommand{\inspic}{  \includegraphics[width=0.04\textwidth]{example-image-a}}   \begin{tabular}{llc}     A &\inspic \\     B &\inspic \\   \end{tabular}   %  \caption{the symbol \inspictext is ..}                                                                                \end{table} \end{document}  This is confirmed in the output:  I would like to use an image also in the table caption. Therefore, I uncomment the line    %  \caption{the symbol \inspictext is ..}     I get an error: ! Argument of \@caption has an extra }. <inserted text>                  \par  l.14     \caption{the symbol \inspictext is ..}  How to fix?


How to sum all 'Luas_sawah' attributes in accordance with the 'Kabupaten' attributes?


Problem : Evaluate $ \int \cfrac { \sec^2x}{ ( \sec x +  \tan x)^{9/2}}dx $      Solution :   $ \int \cfrac { \sec^2x}{ ( \sec x +  \tan x)^{9/2}}dx $      $ \int \cfrac { \sec^2x}{ \left(1+ \sin x \over \cos x \right)^ {9/2}}dx $      $ \int \cfrac { \sec^2x}{ (\sin {x \over 2} + \cos {x \over 2})^9 \over (\cos^2 {x \over 2} - \sin^2 {x \over 2})^ {9/2}}dx $      $ \int \cfrac { \sec^2x}{ \left(\cos {x \over 2} + \sin {x \over 2} \over\cos {x \over 2} - \sin {x \over 2}\right)^ {9/2}}dx $      $ \int \cfrac { \sec^2x}{ \left(1 + \tan {x \over 2} \over 1 - \tan {x \over 2}\right)^ {9/2}}dx $      $ \int \cfrac { \sec^2x}{[tan({ \pi \over 4}+ { x \over 2})]^  {9/2}}dx $   Am I doing right ?


Number of permutations of $D,D,D,O,O,O,G,G,G$ such that no two $D$ are adjacent and no two $G$ are adjacent

I have the following problem.  I already solved it but I am not happy with my solution.  I hope for a more slick solution and maybe somebody can help with it.  Is there a way to solve this problem with just the stars/bars method?  Compute the number of ways to permute all letters from $D,D,D,O,O,O,G,G,G$ such that no two $D$ are adjacent and no two $G$ are adjacent.  My attempt. For $k=2,3$, let $\Delta_k$ denote the set of permutations s.t. only $k$ of $D$ are adjacent, and let $\Gamma_k$ denote the set of permutations s.t. only $k$ of $G$ are adjacent.  Let $U$ be the set of all permutations without any conditions. Then $$|U|=\frac{(3+3+3)!}{3!3!3!}=1680.$$  We have $$|\Delta_3|=\frac{(1+3+3)!}{1!3!3!}=140$$ (as $\Delta_3$ is the set of permutations of $DDD,O,O,O,G,G,G$), and $$|\Delta_2|+2|\Delta_3|=\frac{(1+1+3+3)!}{1!1!3!3!}=1120$$ since this number counts the permutations of $DD,D,O,O,O,G,G,G$.  Therefore $$|\Delta_2|=1120-2(140)=840.$$  Similarly $|\Gamma_3|=140$ and $|\Gamma_2|=840$. We want to find $|\Delta_i\cap\Gamma_j|$.  Since $\Delta_3\cap\Gamma_3$ is the set of permutations of $DDD,O,O,O,GGG$, $$|\Delta_3\cap\Gamma_3|=\frac{(1+3+1)!}{1!3!1!}=20.$$  Since $|\Delta_2\cap\Gamma_3|+2|\Delta_3\cap\Gamma_3|$ counts the permutations of $DD,D,O,O,O,GGG$, we have $$|\Delta_2\cap\Gamma_3|+2|\Delta_3\cap\Gamma_3|=\frac{(1+1+3+1)!}{1!1!3!1!}=120$$ so $$|\Delta_2\cap\Gamma_3|=120-2(20)=80.$$  Similarly $|\Delta_3\cap\Gamma_2|=80$. We now want to find $|\Delta_2\cap\Gamma_2|$.  Since $|\Delta_2\cap\Gamma_2|+2|\Delta_3\cap\Gamma_2|+2|\Delta_2\cap\Gamma_3|+4|\Delta_2\cap\Gamma_3|$ counts the number of permutations of $DD,D,O,O,O,GG,G$, we get $$|\Delta_2\cap\Gamma_2|+2|\Delta_3\cap\Gamma_2|+2|\Delta_2\cap\Gamma_3|+4|\Delta_2\cap\Gamma_3|=\frac{(1+1+3+1+1)!}{1!1!3!1!1!}=840.$$  Hence $$|\Delta_2\cap\Gamma_2|=840-2(80)-2(80)-4(20)=440.$$ By inclusion-exclusion principle we have $$|\Delta_2\cup\Delta_3\cup\Gamma_2\cup\Gamma_3|=\sum_{k=2}^3|\Delta_k|+\sum_{k=2}^3|\Gamma_k|-\sum_{i=2}^3\sum_{j=2}^3|\Delta_i\cap \Gamma_j|.$$  Therefore $$|\Delta_2\cup\Delta_3\cup\Gamma_2\cup\Gamma_3|=2(840)+2(140)-(440+80+80+20)=1340.$$  The question asks for the size of $U\setminus(\Delta_2\cup\Delta_3\cup\Gamma_2\cup\Gamma_3)$, which is $$|U|-|\Delta_2\cup\Delta_3\cup\Gamma_2\cup\Gamma_3|=1680-1340=340.$$


How to control the position of label in a tree tikzpicture

Here is my graph with a part of code:  \tikzstyle{bag} = [text width=2em, text centered] \tikzstyle{end} = [] \begin{tikzpicture}[sloped] \node (a) at ( 0,0) [bag] {$\ln r_0$}; \node (b1) at ( 3,1.5) [bag] {$\ln r_{10} + \sigma_1\sqrt{\Delta t_1}$};     But I want label setting above the node like    Furthermore, how to control the size of  words and don't change the line?


"Why does it not sell?" or "Why it does not sell?"  The first seems correct by gramatics but the second is suggested by my intuition.


Why should one have a secondary DNS server?

I'm very confused.  I basically understand how DNS works. Here's an example that helps illustrate what I'm having trouble understanding.  Right now, I run a small web-server. I use my provider's DNS manager, so I don't have a DNS server hosted on the machine.  Let's say for a second, that I don't use my host's DNS, and I decide to set up a DNS server on my server. Hypothetical scenario: my server (entire) server goes down - DNS included. Why do I need backup DNS? If the server is down, who cares if the DNS server is down too, considering that even if I had DNS up (it wasn't on the crashed server), it wouldn't be able to forward requests anyway since the server would be down?  Is the point of having secondary DNS, to be able to change the IP addresses that your DNS server points to, so if your webserver was down, you could redirect traffic to a backup? How would you switch to the secondary provider, in the event that your main DNS provider becomes unavailable? Is a backup DNS system basically up all the time? How is it configured? Is it just an exact clone of the DNS server you would have on your server? Do they run simultaneously?  Hopefully someone can see what I'm hung up on, and provide some guidance.


Inexperienced with computers - Did I accidentally upload my files on to the internet?

I posted this question on reddit yesterday and I am grateful that someone replied to me. But I wanted to get a second opinion because I still feel a little anxious. I am not sure if this is the right place to post my question, but here it is anyways:  I am an individual who is very inexperienced with computers. Yesterday I accidentally dragged one of my folders, which contained a lot of personal information, onto my Google Chrome browser (I was on google.com), and it looked liked the directory of my folder was readily available on the browser. My question is: did I just upload my personal information onto the internet?  Thank you for any responses.


How to stop the ping command if there is no reply after 1 sec?

I'm writing a loop that checks whether a connection has been established.  I'm doing   ping -c 1 8.8.8.8 while [ $? -ne 0 ] do   sleep 0.5   ping -c 1 8.8.8.8 done   Now I'm not sure how this works, if the ping request got blocked on its way out (iptables or other) the command and the script will hang indefinitely. What I want is to stop waiting for a reply after 1 sec and send a new request. That until I get a reply faster than 1sec, the $? is equal to 0 and it breaks the loop.


Calculating the gravity gradient of a black hole

Given a black hole of, say, $10^8 \odot$ (solar masses), how can I calculate the gravity gradient ($\frac{\Delta g}{m}$?) at a given distance from it?


Can I disable the keyboard media controls when on the lock screen?

I lock my work iMac Pro every night, but sometimes when I get in the next morning music is leaking out of my headphones. I've discovered that the "unmute" and "play" keyboard buttons are still effective when the OS is locked. It would seem that the cleaner running a cloth over the keyboard "makes things happen" even when the machine should be locked.  Short of remembering to close any app that can play media before I lock the machine, can this be disabled? Ideally I'd like these keyboard shortcuts to do nothing while the machine is locked. It doesn't seem quite right that somebody can control my computer to some degree without logging in!


FAQ link still visible under "Off Topic" close vote description

Under the "Close" dialog as well as the explanation below a closed question:     Questions on Stack Overflow are expected to relate to programming or   software development within the scope defined in the FAQ. Consider   editing the question or leaving comments for improvement if you   believe the question can be reworded to fit within the scope. Read   more about closed questions here.   I understand that the links forward to the appropriate help center page, but it's still incorrect.


Sending two text files with mail command - No -a support

I searched but did not find this answer. I am running an old RedHat 5.3 system on one server (working on upgrade to 7 in progress) but I want to send 2 text files using the mail command. I do this all the time with a single file like this:  mail username -s 'MySubject' < /home/directory/file1.txt   I tried this:  mail username -s 'MySubject' < /home/directory/file1.txt < /home/directory/file2.txt   But that send the output of the first part including the results of the mail command along with both text files.  Is there a better way to do this?


Can you Join the imperials after starting the the stormcloak quest?

Can you join the Imperials Once you have started "Joining the Stormcloaks" ?  Cause I wanted to join the Stormcloaks but then I saw how racist  Ulfric was and wanted to join The Imperial Legion.   I am playing on PS3.


series charging three 18650 batteries with three chargers off the same 5V supply

being from a CS background I am a complete noob at this. I'll keep this short. I have a couple of 18650 batteries that i salvaged from an old laptop battery. I want to make a balanced 3S charger with over-discharge protection. I know that I could use a 3S BMS, but BMS aren't good at charging as they dont balance the cells properly.   I've seen many YouTube videos, regarding DIY balanced 18650 chargers and most of them uses this schematics   this works perfectly for charging only and also does the cell-balancing.   But i wish to obtain the output from the charging modules as they also features a over-discharge protection IC in them. And embedded them into a project, without any hassle.  So, the question: will this work? those are TP4056 with over-discharge protection.


How can I determine what program/process is calling for sjjgtggx.dll?

I receive this error message during boot: Error loading C:\users\owner\AppData\Local\Mozilla\sjjgtggx.dll The specified module could not be found. How do I determine what program/process is calling for this dll?


Can not close after retracting original close vote

Today I closed a question as a duplicate, only to realize it should be closed as off-topic. After retracting the close vote, I could not close it as off-topic.  Is this by design? Or an accidental feature? :)


I wish to add blocks in  beamer theme. I am not able to get the frame around the blocks.  \documentclass[12pt]{beamer} \usepackage{config/presento}  \begin{document} \begin{frame}   \frametitle{Frame title}   \begin{block}{Observation 1}      Simmons Hall is composed.   \end{block}   \begin{exampleblock}{Observation 2}     Simmons Dormitory is composed of brick.   \end{exampleblock}   \begin{alertblock}{Conclusion}     Simmons Hall $\not=$ Simmons Dormitory.   \end{alertblock} \end{frame}    \end{document}       How I would use the standard blocks in Presento beamer theme as in other themes like Madrid etc. What line should add/remove in the .sty file to get the frames around the standard blocks(like alert, example and basic block.) Thanks in advance.


Why are there two separate boxes about duplicate questions?

There is one box at the top with links to the duplicates, and one box under the question, starting with "marked as duplicate by ...". Actually I have never seen the links before today - I have totally missed them, so I have just wondered throughout all the years I have been a passive reader, where those duplicates were. I think when I have arrived at a page, I have just scrolled past the "header" (including the title of the question, an ad and the first duplicate box) down to the question text and the first answer, and there in between - the second duplicate box, which I have noticed. But there is no explanation or hint where to find the duplicates, which one have to find further up the page.  Reading and scrolling from the top to the bottom, I think it is illogical to go up again to find the links/duplicates, that the second box mentions. A notice could be written that they are "above", but I think it would just be better if these were combined, to have all information in one place/box.  Or is there any reason that this information should be split into two boxes?


Magic stone (Bonus action) with Eldritch Blast (cantrip 1 action)

Ok so now for a question that I have can I use Magic Stone and then Eldritch Blast, or is the normal way as I think it is, is only Eldritch Blast and then Magic Stone?


i want to add li elements it´s work fine, but the remove dosen´t work for the new elements.  I had three li Elements at the start, for that the remove function work´s.  With my "add" Function i create the Li Elements with the same class, why it doesent work for the new one ?    $(document).ready(function(){     $("#add_li").click(function (){         $("ol").append("
" + $("input").val() + "X
");     });     $("#remove_li").click(function(){         $("li:last").remove();     });     $(".remove").click(function(){         $(this).parents('li').remove();     });      var log = $('.remove');     console.log(log);     console.log(jQuery);      });


I was wondering about generic installations of all applications in linux. And what that means? Well, when I was using windows I knew that if I want to install an application I am double-clicking the .exe file and then next,next,next.  In linux, I have understood that maybe there is a common (not generic) way to install any application. Installing from source maybe? Well is there any step by step method that can be used to install  application like in windows or not?  I am asking because I do not want to keep asking the google, how to? So, I have managed to install recently from source freecad from  and I think that it would be a very nice start as common method, right?  But the thing then is where to find the right source and when an application has a very unique method of installation!


Why can't "thanks" ever be singular as a noun?

While looking at the part of speech of the noun "thanks" in an online dictionary I noticed that it was a plural noun and wondered if it could be used in singular form. Glancing at the origin it appears that the old English word "thanc" was once used as the singular form of this noun. I assume it would be appropriate at that time period to say "I have a thank!" if you felt thankful for a single thing instead of being limited to always say "I have thanks!" as we do in modern English.   Nowadays, I believe we only use the plural form "thanks" as the noun in all cases. We can never have a single "thank". Instead we can only have "thanks"! I find this odd! It would make sense to have kept the singular form of the noun. Often we are grateful for a single action or event and it seems more accurate to have a single "thank" rather than many "thanks".   Is there any known specific background history as to why this is?


"An opportunity for a complete positive transformation of your child for which you have always aspired for".   The above sentence appears on the board of a private primary school. I think the writer has made a redundancy in use of preposition. The sentence should correctly read as follows:     "An opportunity for a complete positive transformation of your child which you have always aspired for."    or:     "An opportunity for a complete positive transformation of your child for which you have always aspired."


What terminal command checks the Ubuntu version

What terminal command tells the version of Ubuntu.


Linking surface integral of a gradient field to a contour integral

I have a vector field $F$ deriving from a scalar potential $f$, i.e. $F=\text{grad}(f)$. I want to compute the integral of $F$ over a surface (To evaluate the flux of $F$). I think there exists a theorem linking this integral over a surface to the integral of $f$ over the edge of the surface but I can't find it.   What I find is :  -Green theorem linking integration of $\text{div}(F)$ over a surface to $F$ over a line  -Stokes theorem linking integration of $\text{curl}(F)$ to integration of $F$.   But no theorem linking integration of $F$ over a surface to $f$ over a contour.  Can someone help me ?  Thanks


Apt Hash Sum mismatch when I try to do and Update

When I try to run an update I get this error E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/universe/binary-amd64/by-hash/SHA256/76a1d961a2306c3e94f119eee121a77da780b8d9f98ec45e9b6a76c5dd40b2a3  Hash Sum mismatch    Hashes of expected file:     - Filesize:686028 [weak]     - SHA256:76a1d961a2306c3e94f119eee121a77da780b8d9f98ec45e9b6a76c5dd40b2a3     - SHA1:ff6fb009d5e2e19a0c924bb5f4a2d4f02c629e26 [weak]     - MD5Sum:4469774a13ddbd466922a2bb09a42710 [weak]    Hashes of received file:     - SHA256:4bbe1b9216e4a4f5b7e3e90b47f68c9a6d6705bc86313f440b52d2ef7f3b765a     - SHA1:b94cb236ec50a2f6fa69de476b247c822b74dd95 [weak]     - MD5Sum:64a72e5fb7d55a4a3c60f0916abcc24e [weak]     - Filesize:686028 [weak]    Last modification reported: Wed, 04 Nov 2020 20:18:42 +0000    Release file created at: Wed, 04 Nov 2020 21:56:32 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead.


Let X be a nonsingular variety of dim n over an algebraically closed field k. Let Y be an irreducible closed subscheme defined by a sheaf of ideals $\mathscr I$.  Then I want to prove that  Y is a nonsingular variety over k iff  (1)  $ \Omega_{Y/k}  $ is locally free, and  (2) the sequence $ 0 \rightarrow \mathscr I/\mathscr I^2  \rightarrow \Omega_{X/k} \otimes \mathcal O_Y \rightarrow \Omega_{Y/k} \rightarrow 0 $ is exact.   This is a theorem from Hartshorne's Algebraic Geometry (Chapter II, theorem 8.17).Assuming (1) and (2) and proving Y is nonsingular is okay. But the other way is not clear.  So I will assume Y is nonsingular.  The subdivision (1) follows directly as Y is nonsingular (In fact  $ \Omega_{Y/k}  $ will be locally free of rank q = dim Y)  . But am not able to do the 2nd subdivision.  We have the following exact sequence $ \mathscr I/\mathscr I^2  \rightarrow \Omega_{X/k} \otimes \mathcal O_Y \rightarrow \Omega_{Y/k} \rightarrow 0 $ (which is called the second exact sequence in literature). Let us name the map  $ \mathscr I/\mathscr I^2  \rightarrow \Omega_{X/k} \otimes \mathcal O_Y $ as $ \delta $ and the map $\Omega_{X/k} \otimes \mathcal O_Y \rightarrow \Omega_{Y/k}  $ as $ \phi $.  My aim is to prove that $\delta$ is injective. I will mimic the proof of Hartshorne and try to tell what I have not understood there-  Let y $\in$ Y be a closed point. Then ker $\phi$ is locally free of rank r= (n-q) at y, so it is possible to choose sections $ x_1, x_2,...x_r \in \mathscr I $ in a suitable neighbourhood of y, such that $dx_1,dx_2,...,dx_r$ generate ker $\phi$  (This is because X is nonsingular, so $\Omega_{X/k} \otimes \mathcal O_Y $ is locally free $ \mathcal O_Y $- module of rank n, and Y is nonsingular,  so $\Omega_{Y/k}$ is locally free $\mathcal O_Y$-module of rank q). Let $\mathscr I'$ be the ideal sheaf generated by $   x_1, x_2,...x_r $, and Y' be the corresponding closed subscheme.   So far everything is fine. Now he says- By construction. the $dx_1,dx_2,...,dx_r$ generate a free subsheaf of rank r of $\Omega_{X/k} \otimes \mathcal O_{Y'} $ in a neighbourhood of y. I don't understand why $dx_1,dx_2,...,dx_r$ generate a free subsheaf of rank r of $\Omega_{X/k} \otimes \mathcal O_{Y'} $ in a neighbourhood of y? This is my first question.  Now suppose we assume this. It follows that in the exact sequence for Y' $ \mathscr I'/\mathscr I'^2  \rightarrow \Omega_{X/k} \otimes \mathcal O_{Y'} \rightarrow \Omega_{Y'/k} \rightarrow 0 $, we have $\delta $  injective ( Here also $\delta$ is the map $ \mathscr I'/\mathscr I'^2  \rightarrow \Omega_{X/k} \otimes \mathcal O_{Y'}$ and it is injective  because its image is free), and $\delta $ is injective says that this is a short exact sequence and $ \mathscr I'/\mathscr I'^2 $ becomes locally free. So $\Omega_{Y'/k}$ also becomes locally free of rank (n-r).  Now he says that the previous part of the proof shows that Y' is irreducible and nonsingular. But according to me the previous part assumes irreducibility and proves nonsingularity.. I am not able to conclude that Y' is irreducible from the above data. This is my second question. Can any one please help?


"directory junction" vs "directory symbolic link"?

In the context of NTFS:  MKLINK [[/D] | [/H] | [/J]] Link Target /D      Creates a directory symbolic link.  Default is a file symbolic link. /H      Creates a hard link instead of a symbolic link. /J      Creates a Directory Junction. Link    specifies the new symbolic link name. Target  specifies the path (relative or absolute) that the new link refers to.   Isn't a directory junction the exact same thing as a directory symbolic link? What's the difference between mklink /D f1 f2 and mklink /J f1 f2 ?  Since a "directory" is actually just a file, what would be the difference between a directory symbolic link and a file symbolic link?


Entering in an accompanied visa but then separating

Is it ok If we enter the country together however the adult leaves them in the state to go travel?


What are normal, tangent and binormal vectors and how are they used?

I would like to find out the following information:   What are they? Example usage in game development (the area they are used in)   About the following vector types:   Normal Tangent Binormal   A simple game development centric explanation would suffice.


How do you hide back faces so that you only see faces when its normal is facing the camera? When exporting it for use in a game, the face is rendered in only the direction of its normal, so this would be useful to have something similar.


Ubuntu 18.4 How to update only security update

I use several  Ubuntu 18.4 and I would like to install only security update from command line. What command should I use?,and if it can be automatically?  Thanks