Why did future Janeway not tell Voyager about transwarp-hubs during Scorpion I&II?

For the hundredth time I am re-watching Star Trek: Voyager now, and I just wondered about the following:  In Endgame future Janeway travels back in time to lead Voyager home through a Borg transwarp-hub, which turned out to be a pretty dangerous undertaking. Years earlier though, during the war between Species 8472 and the Borg shown in Scorpion I&II, Janeway traded the modified borg-nanoprobes in form of a weapon for save passage through borg-controlled space. It seems to me, had she known about the transwarp-hubs, she could have just requested save travel directly to Federation space. It would have gone way faster and requires only knowledge of those hubs: Get a sphere to Voyager, let them open a conduit to a hub, go through and transmit the blueprints after. Seems to me everyone would've benefitted from this. Well, except Species 8472.   So why take the difficult approach of upgrading Voyager with tech from the future (by the way, where the heck was the timetravel-police we've seen in one of the other episodes?) and sending them through a hub, instead of just making past-Janeway trade the nanoprobes for a route to earth?


Can there be fractional hyper operators and if so how to they function?

If we call addition (and subtraction as they are the same) the first hyperoperator, multiplication (and division) the second, exponentiation (radicals, indices and logarithms) the third, then tetration the fourth and so on, we then have a definition of a hyperoperator.   My question is:     Is there a way to have a fractional hyperoperator such as an operation half way between addition and subtraction which would be the 1 + 1/2’th hyperoperator.


How to connect nodes in a star pathfinding for platformer games?

In this , it tells that in 2d platformer games, I should pre-define and connect node to find the correct path.  But I don't understand how to find the node's children. In my program, I define map as following, 0=free space, 1=solid terrain, 2=node  the original map definition is:  numpy.array([ [0,0,0,0,0,0,0,0,0,0,0],               [0,0,0,0,0,0,0,0,0,0,0],               [0,0,0,0,0,0,0,0,0,0,0],               [0,0,0,0,0,0,0,0,0,1,1],               [1,1,1,1,1,1,1,0,0,0,0],               [0,0,0,0,0,0,0,0,0,0,0],               [0,0,0,0,0,0,0,0,0,0,0],               [1,1,1,1,1,1,1,1,1,1,1], ])   the map after adding nodes  numpy.array([ [0,0,0,0,0,0,0,0,0,0,0],               [0,0,0,0,0,0,0,0,0,0,0],               [0,0,0,0,0,0,0,0,0,2,2],               [2,2,2,2,2,2,2,0,0,1,1],               [1,1,1,1,1,1,1,0,0,0,0],               [0,0,0,0,0,0,0,0,0,0,0],               [2,2,2,2,2,2,2,2,2,2,2],               [1,1,1,1,1,1,1,1,1,1,1], ])   so the map should be so   In the original A* (A star) algorithm, it searches 8 directions and every direction  checks only one node if available.  But in a platfomer, I don't know how to deal with this, there are too many possibilities. For example, assuming the character's jump value is 3, then we go to left now I can:   jump to left using 200% power, (keep pressing left while jumping and falling, move 6 steps actually) jump to left using 166% power jump to left using 133% power jump to left using 100% power jump to left using 66% power jump to left using 33% power just walk (the paths 1-7 in the pic)     8 directions and bigger jump value lead to more possibilities.  What's more, there are countless  possibilities when falling  from a high solid terrain.  For every possibility, in order to connect the nodes, I need to check the corresponding coordinate in the map (array) if existing node.  So I am confused. Am I over-complicating / misunderstanding A* or did I miss something because it requires a huge calculation for every node in a big map like 500*500?


When I try to upgrade from Ubuntu 19.04 I get the following error message: An upgrade from 'disco' to 'focal' is not supported with this tool. === Command detached from window (Sat Aug 15 11:21:17 2020) === === Command terminated with exit status 1 (Sat Aug 15 11:21:27 2020) ===


What is nedeed to prove that the tangent space on a manifold is a vector space?

I am currently working with the definition of tangent vectors being equivalence classes of curves. So $v =[\gamma]$ and $w=[\sigma]$ where $v,w$ are the vectors. I want to prove that the sum of this two equivalence class is also a equivalence class to give it the vector space structure.  We define the sum as: $v+w= [\phi^{-1} \circ (\phi \circ \gamma + \phi \circ \sigma)]$ where $\phi$ is a chart. I understand that the curves can not be added when they belong to the manifold, that's why we first map then into the reals where that can be performed. So now that the sum is defined, how can I prove that is another class at the point $p$ on $M$. Is it enough to make sure that the map passes by $p$? The same questions goes for the multiplication by the scalar. Thanks


Random variable iff constant on each element of a partition

Let $A=\{A_1,\ldots,A_n\}$ be a partition of a set $\Omega$ and let $F=\sigma(A)$. Prove that $X : \Omega \to \Bbb R$ is a random variable if and only if it is constant on each element of the partition.  I am trying to do the proof by contradiction but it seems the wrong way. Any hint? Thanks in advance for your help.


Do I need a visa to change from Heathrow airport to Gatwick airport?

I would like to find out if I am traveling to the USA and would like to change airports from Heathrow to Gatwick, I will be in transit for less than 12 hours, but I have a USA visa and not a British visa is it possible? If not what steps should I follow to make it possible. I am in Gaborone, Botswana


How to protect/hide MySQL Database credentials from SQL Injection attack like Havij?

I reacently learned about Havij, a SQL Injection tool. And I noticed, when it runs, it shows all database names and table names that target website has. Can we prevent it? Can we stop Outsiders see my MySQL database Name, Table Names, database type etc.? If it can, what are these methods?


Is it risky or difficult to wet clean an image sensor?

I've discovered spots on the image sensor of my DSLR camera that cannot be cleaned using a blower bulb, so I would like to know the risk of problems, such as further image deterioration or damage to the sensor or low-pass filter, associated with wet cleaning the image sensor.  Just how high (or low) is the risk?  Is this a difficult task to perform?  The products I expect to use are as follows:       In my research, I have also found the following products, for which there is a greater degree of trust because the manufacturer  when used properly:       Additionally, the reviews are generally positive, so is it worth it?  My biggest concern at this point is further staining or residue from the cleaning process.  How likely is this going to affect image quality, and would it be worse compared to the dust or other contaminants?


In what order should I watch the various parts of Love, Chuunibyou & other Delusions?

Now I noticed that this question has been slightly answered before but for absolute clarity, I need to know.  I came across these titles.    Chuunibyou demo Koi ga Shitai! Chuunibyou demo Koi ga Shitai! Lite Chuunibyou demo Koi ga Shitai! Ren Chuunibyou demo Koi ga Shitai! Ren Lite Chuunibyou demo Koi ga Shitai! Ren Specials Chuunibyou demo Koi ga Shitai! Ren: The Rikka Wars Chuunibyou demo Koi ga Shitai! The Movie Lite   Now because of my lack of knowledge as far as OVAs, ONAs, base series, and movies go in the anime genre exactly what is the chronological order of this list? And is it missing any titles from this series?  Oh, and I just finished the first season and if anything I know that I am supposed to watch the first lite series next right? Then the movie? (Ren specials and Rikka Wars, what order are these in?)


Questions no longer being accepted from my account?

I know that several people have raised this issue before, but I am not sure why this has happened to me. I have not asked many questions on SO, but whenever I have, I've worded them clearly, and if any more detail was needed, I obliged and provided more clarity.  Furthermore, when I did respond to a problem, I was clear and detailed.  The only times that I was down voted significantly was on May 11th, 2013 and January 20th, 2014. On both occasions, either my question or my response to my own question got voted back up; In the first case, I ended up with a positive net vote.  Given these details, why have I been banned? More over, I really don't know what to do to eradicate the ban; I can't add new questions of "high quality" to improve my reputation, as I have been banned. I can't really improve my previous posts anymore, as they have been clearly worded and explained, with code in most cases.  I really rely on SO to figure things out, so any solutions to my problem would be appreciated. Thank you.


How can I make the camera that follows my character position also follow the character rotation?

So I've tried to make the camera also follow my character rotation, I tried using the same process that I did for the position follow, using quaternion and transform.rotation but it was giving me some errors. Since I'm pretty new, I will ask for the best solution for my problem, here's the code:  void Start() {     followPos = transform.position - player.transform.position; }   void LateUpdate() {     transform.position = player.transform.position + followPos; }


Failing to remove the first node in a LinkedList

I am practicing using Java's LinkedList. The purpose of the main method here is to remove the given index's node.  The given node can be removed rightly, except the first node.  If I changed  removeLastKthNode(head, lastKth); into  head = removeLastKthNode(head, lastKth), it works.  But I don't know why removeLastKthNode(head, lastKth) cannot remove the first node.  Andreas gave me a link about this problem   However, problem here is that "removeLastKthNode" behaves as "pass by reference" when "lastKth" doesn't refer the first node(head node).  It is sure that "removeLastKthNode" somehow behaves like "pass by reference". But why the method "removeLastKthNode" didn't behave like "pass by reference" when "lastKth = arr.length" ?  It is confusing here.  Some results below: when "lastKth = 6"  Initial LinkedList: 2 4 6 8 11 3 7  After remove last6th LinkedList: 2 6 8 11 3 7   when "lastKth = 7"  Initial LinkedList: 2 4 6 8 11 3 7  After remove last7th LinkedList: 2 4 6 8 11 3 7   Node definition:  public class Node {     public int value;     public Node next;     public Node(int data) {         this.value = data;     } }   Main code:  import java.util.*;  public class RemoveLastKthNode_single {     public static void main(String[] args) {         int[] arr = {2, 4, 6, 8, 11, 3, 7};         //Arrays.sort(arr);          Node head = arrayToNode(arr);          System.out.println("Initial LinkedList:");         displayNode(head);          System.out.println();         int lastKth = 7;         removeLastKthNode(head, lastKth);         System.out.println("After remove last" + lastKth + "th" + " LinkedList:");         displayNode(head);     }      // refer https://www.jianshu.com/p/0d0dbfcbc1c3     public static Node arrayToNode(int[] arr) {         Node head = new Node(arr[0]);         Node other = head;         for (int i = 1; i < arr.length; i++) {             Node temp = new Node(arr[i]);             other.next = temp;             other = other.next;         }         return head;     }      public static void displayNode(Node head) {         while(head != null) {             System.out.print(head.value + " ");             head = head.next;         }         System.out.println();     }      public static Node removeLastKthNode(Node head, int lastKth) {         if (head == null || lastKth < 1) {             return head;         }          Node cur = head;         while (cur != null) {             lastKth --;             cur = cur.next;         }          if (lastKth == 0) {             head = head.next;         }          if (lastKth < 0) {             cur = head;             while (++lastKth != 0) {                 cur = cur.next;             }             cur.next = cur.next.next;         }              System.out.println(head.value + " YES ");         return head;     } }   Thanks for Andreas's comment. I figure out how it works.  Here is my logic. The reference to the "head node" is passed by value to "removeLastKthNode", so in memory I have a copy of head. And the copy of "head" also point to the "next node". It looks line a "two head snake". I can cut the "body" (because they are the exact one), but I cannot cut one snake "head" and make another "head" also be cut. Because they are different one in memory!  Image here.


Can not get file path from resource folder - Java (exception)

I try to automate a page that I have. In the page I need to upload a PDF file. The problem is that I want selenium via java will get the file from the resource of the project and not hard coded. (since some have windows and some mac and some ubonto so the solution is to get the path dynamically). I manually hard coded I enter the path it worked and return the path, however to let java return the path it crash. this is my code:   /******* test *******/     public  void testFileUpload() throws Exception {         WebDriver deiver2 = getWebDriver();                 Thread.sleep(3000);         deiver2.switchTo()                 .activeElement();         deiver2.findElement(By.xpath("//input[@type='file']"))         .sendKeys(                 "X:\\project\\src\\test\\resources\\TAX12.pdf");          ClassLoader classLoader = getClass().getClassLoader();         String path = classLoader.getResource("TAX12.pdf").getPath();         System.out.println("\n\n path is  " + path);          System.out.println("END");      }  I want in the send keys to send the file, the exists however it is not worked. java.lang.NullPointerException      at org.testng.Assert.fail(Assert.java:97)     at tests.ExPubPaymentPageTest.tryFile(ExPubPaymentPageTest.java:58)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:134)     at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:597)     at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)     at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)     at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:816)     at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)     at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)     at java.util.ArrayList.forEach(ArrayList.java:1259)     at org.testng.TestRunner.privateRun(TestRunner.java:766)     at org.testng.TestRunner.run(TestRunner.java:587)     at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)     at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)     at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)     at org.testng.SuiteRunner.run(SuiteRunner.java:286)     at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)     at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)     at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187)     at org.testng.TestNG.runSuitesLocally(TestNG.java:1109)     at org.testng.TestNG.runSuites(TestNG.java:1039)     at org.testng.TestNG.run(TestNG.java:1007)     at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)     at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)  the file exists in the folder and worked if manually set the path, but not locate the file if I want it to do it by himself (for win / mac / linux etc)


A ternary tree is an ordered tree where each node has either $0$ or $3$ children. Such a tree is full if all leaves are at the same distance from the root. Derive an explicit formula for the number of leaves and the total number of nodes, in a full ternary tree of height h.  Here's what I know, number of nodes = number of edges + $1$ AND with $i$ internal vertices has $l = (m - 1)i + 1$ leaves. But how exactly do I create an explicit formula for number of leaves and total number of nodes?


Calculate the Integral $\int _0^{\frac{\pi }{2}}\:\frac{\sin^{7/2}x}{\sin^{7/2}x+\cos^{7/2}x}dx$

I have to calculate this Integral -  $$\int _0^{\frac{\pi }{2}}\:\frac{\sin^{7/2}x}{\sin^{7/2}x+\cos^{7/2}x}dx$$  I have no idea how to start, Hint someone ? Thanks.


Say $a$ and $b$ are integers. $\gcd(a,b)$ is then $d$. Now if $a$ equals $dm$ for some integer $m$ and b equals $dn$ for some integer n, how come the gcd of this m and n is always 1?


"Tag plus something else" search looks ugly on beta sites when the tag wiki excerpt contains the tag name

Searching for a [tag-name], plus some other criteria, results in an ugly tag information box which seems to show HTML tags treated as text, rather than as HTML.  Here's an example:  and look at the tag description box:    With a quick sampling I was unable to reproduce this on other beta sites, but I've also been unable to quickly identify a tag that actually uses the tag name itself within the tag wiki excerpt, which seems very related.


I see more and more exact duplicates on SO. Instead of being merged they are being simply closed. I think this is very big disservice to SO. Why don't moderators merge duplicates? Why don't owners of the site do anything about this?  EDIT  It's disservice because this way we have more and more junk. Duplicates are duplicates and should be merged so that information in in one place.     If the duplicate has no answers then there is no benefit to merging.   Of course there is. You don't need to waste your time with dupes.     It also means that the search routes to the main question are   diminished which makes the posting of new duplicates more likely   There's easy solution for this which I gave in  back in march.     If both questions have answers that have been accepted, which one   should be unaccpeted?   There are plenty of solutions. You accept most voted accepted answer or the first accepted answer or both (I think this is be the best). Yes, there will be possibility of many accepted answers to one question. So what?     When a question is closed as a duplicate, there is a link to the   duplicate question. What more do you want?   I don't want yet another link. I want to have all answers to some problem in one place. Is this that hard? Isn't this natural expectaion?     Removal of the question means that the text in it is no longer searchable - that's a disservice.   See my answer above to Scrooge's comment.


I'm new to unix. I typed this command in ubuntu terminal:  pwd | echo   I expected to see the output of pwd in terminal(/home/fatemeh/Documents/Code/test)  but the output was just a single empty line.  why this happens?


Run Comand on all files (folders ad subfolders)

All, I have a lot of PDF files. Does there exist a way to apply to all PDFs in folder and sub-folders at one time?  Example, I have:   /pdf/test/pdfa.pdf /pdf/example/aa/test.pdf   I'd like to apply this command on each file:  $ convert -density 200x200 -quality 60 \     -compress jpeg filename.pdf filename_compress.pdf   Can anyone help me?


Install Ubuntu alongside Windows in UEFI

I want to install Linux alongside Windows and my Device is UEFI and I have GPT disk , I want to install it manually to create swap and home partition and I already have EFI partition by Windows so should I mount it to /boot/efi or install Linux without editing it? and if I should edit it , after that if I decided to uninstall Linux? Should I cancel the mount of the EFI partition or Leave it as it was? Because some people mount it and some people install it without doing this step. Another thing what should I choose in device for bootloader installation?


Where do you get industry specific stock photos?

Any other designers have suggestions on how/where to find photography on luxury fashion designers?  I'm looking for legitimate licensing.  I know the main sites like Shutterstock, iStock, and Getty Images. Where do you go about finding more industry specific photographs though? A lot of the stock sites by nature focus on broad topics and subjects for mass appeal. Should I just try to find a professional fashion photographer that might be able to license me out some of his unpublished pieces - where would I even begin finding that?


Is the Ubuntu touchscreen driver compatible with MSI Creator 15 ? I will buy MSI CREATOR 15 A10SDT-491TR, the most important point for me is the smooth operation of the touch screen with UBUNTU. Has anyone tested it before?


I use different computers with different fonts installed. My favourite font is Frutiger, so whenever it is present at the machine I'm working on, this one should be used. Currently, I'm setting the following switch manually:  \usepackage{ifthen} \newboolean{frutigerAvailable} \setboolean{frutigerAvailable}{false}  \ifthenelse{\boolean{frutigerAvailable}}{     % Frutiger available     \setsansfont[]{Frutiger Neue LT W1G}     \setmainfont[     BoldFont={Frutiger Neue LT W1G Bold},      ItalicFont={Frutiger Neue LT W1G Light Italic},     BoldItalicFont={Frutiger Neue LT W1G Bold Italic}]{Frutiger Neue LT W1G Light}     \newfontfamily\headfootfont[]{Frutiger Neue LT W1G Light}     \newfontfamily\titlefont[]{Frutiger Neue LT W1G Medium}     \newfontfamily\titledescriptionfont[]{Frutiger Neue LT W1G Light} } {      % Frutiger not available, use different font     \setsansfont[]{...}     \setmainfont[     BoldFont={...},      ItalicFont={...},     BoldItalicFont={...}]{...}     \newfontfamily\headfootfont[]{...}     \newfontfamily\titlefont[]{...}     \newfontfamily\titledescriptionfont[]{...} }   Is there a programmatic way to determine whether a font is present or not on a certain system with LuaTeX?


Was there a Wilhelm Scream in The Last Jedi?

The famous "" sound effect has been found in every canon Star Wars film, most recently in  and                                    Was it used in The Last Jedi?


I am having trouble understanding the estimation of an AR process. In some textbooks, the AR(1) process is defined as follows: $y_{t}=\theta y_{t-1}+ϵ_t$ (which does not contain a constant). So the OLS estimator is biased. I am confused about the cause of the bias. It is explained that $y_{t-1}$ is dependent on $ϵ_{t-1}$ although it is independent of $ϵ_t$. However in linear regression, if the equation does not contain a constant, we cannot make sure the expectation of disturbance is zero. So the OLS estimator is bias without a constant. Does it mean that the OLS estimator is unbiased if I add a constant in AR process?


Dual citizen return to home country (South Africa) on expired passport

What will happen if I arrive at the border with my expired South African passport?    I can leave Australia on my current Australian passport so boarding the plane is not an issue, and South Africa can't prevent me from entering (I believe) as I was born there, but    will there be a fine? Will there be any issue?    I have my birth certificate and ID document, but am unable to replace my passport in time.


An already Spoken to customer issue that has been resolved

In a technical environment, what is the most suitable sentence to use when answering to someone about a problem that they had and we solved it for them:   The problem is solved The problem has been solved


Show that $\int_{\mathbb{R}} |\mathbb{E}(e^{i \xi X})|^2 \, d\xi < \infty$ implies $P(X=x)=0, \forall x\in\mathbb{R}$.

Let $X$ be a real-valued random variable with $\varphi_X\in L^2(\mathbb{R})$, where $\varphi_X$ denotes the characteristic function of $X$. Prove that $P(X=x)=0, \forall x\in\mathbb{R}$.    Since $\varphi_X\in L^2(\mathbb{R})$, I believe that implies that $X$ must be continuous, then we use that to conclude that $P(X=x)=0$ for all $x\in\mathbb{R}$. However, I am having a hard time formalizing this idea. Any help would be appreciated.


Bash script to replace two steps: cd ./some_dir, ls -al?

I'd like to write a bash scipt that would change to target directory and list the contents of new directory, all in one step. It would replace the two commands I constantly use consecutively:   cd ./some_directory ls -al   After executing the script, my current directory would change, and ls -al would show the dir list.   cdl ./some_directory   Is this possible?


Can I travel through the Schengen Zone on a type D student visa (for Spain) if I have already lived in the country of the vissa for more then 90 days?

I am currently living in Spain on a 5 month trip, I was granted a student visa for 180 days. This is a type D visa and I would like to travel in the month after my program is finished, will I have problems with this if I have already lived in the country of issue for 90 days? and as a bonus question, can I re-enter the Schengen Zone through a different country to return to Spain?


Let $(M,d)$ be a metric space. For a subset $A\subseteq M$ we define the distance of a point $x$ to $A$ as $$\alpha_A(x):=\operatorname{dist}(x,A):=\inf_{y\in A}d(x,y)$$ Prove that: a) $|\alpha_A(x_1)-\alpha_A(x_2)|\leq d(x_1,x_2)\text{ for all }x_1,x_2\in M$. b) $\alpha_A:M\to\mathbb{R}$ is continuous. c) $\alpha_A(x):=0\leftrightarrow x\in\bar{A}$. d) If $A$ is closed and $K\subseteq M$ compact with $A\cap K=\emptyset$, then $A$ and $K$ have a positive distance, meaning $$\operatorname{dist}(K,A):=\inf d(x,y)>0\text{ for }x\in K,y\in A.$$  My ideas so far: a) I can imagine that this is true because I imagine $A$ being a ball and individual distance on $\alpha$ is the closest distance to that ball. But I don't know how to write down the proof mathematically. b) Now I'm lost here. Don't know how to approach this. c) Again, I can easily imagine that since $x$ is in $A$, meaning the closest distance to the subset is $0$, but I can't prove that mathematically. d) Similar to before, I have no idea how to write down the mathematical proof. But I imagine this one as a situation with two separate balls, since the intersection is the empty set. Meaning that the "gap" between them is the positive distance. Can someone show me how to write down mathematical proofs on this type of questions?


I want to generate a regex that will allow the exact string "[TEST]". What is the required regex?  Thanks.


Is it possible to integrate c++ code in php

I have done face recognition project in c++(opencv) now i need to integrate my c++ code to php is it possible? how it can be accomplished?


Finite degree field extension is a simple extension iff there are only finitely many intermediate fields.

Let $F\subset E$ be a finite degree field extension. Then $E=F[\alpha]$ for some element $\alpha \in E$ iff there are only finitely many fields $K$ with $F \subset K \subset E$. In other words, a finite degree field extension is a simple extension if and only if there are only finitely many intermediate fields.  I don't know how should begin the proof. Is there any book you can suggest to read this proof of theorem?  Thanks a lot.


Retrieving MXD Display view page units with ArcPy?

I've read some articles about translating map units into page units for getting distances in an MXD.  I have not seen a post about how to get the page units programmatically from ArcPy.  Is it possible to in any version of ArcMap 10.x to get the page units programmatically?  DisplayUnits and mapUnits from dataframe do not suffice.  Edit:   only answers how to translate units between map and page units.  It does not answer how to retrieve with arcpy page units (cm, in, etc.). I am not looking for the answer to how to translate units from map distance to page distance and back.  I am simply asking about how to retrieve page units.


Can I travel without getting in trouble for being out of status?

I am an international student. My passport and visa are not expired but I believe I'm out of status because I'm not going to school for now due to financial issues. I want to go see a friend in LA.    Can I use my passport at the airport? Is it safe ?    I'm scared because I'm out of status.


I wonder if there is a place on Stack Exchange where I can ask for advice when repairing household appliances.   Like a washing machine that is shocking people from the drum, or a TV with interference on the screen.


$\bar{.9}$ is distinct from 1 in $\mathbb{R}$ so why does $\bar{.9} = 1$

Recently I brought up the idea that $\bar{.9} = 1$ with some friends and asked why or why not. One friend suggested that since $\bar{.9}$ is distinct from 1 in $\mathbb{R}$ they must not be equivalent.  Thoughts?


I'm trying to install ubuntu 13.04 to a 32gb usb stick so I can bring It to and from school. I've install about three time now using the something else install method And every time I install it says something like this "Installation complete please restart your computer". When i restart the computer and hold down alt (Due to the fact that I'm on mac) The usb doesn't show up as a bootable thing. When i go to reinstall it to the usb useing a cd it says that it is installed on it. So I want to know how to fix this   NOTE (I don't want the iso on the usb thats on the cd. I want the os on the USB so i can bring to and from school)  computer specs for home and school they are macs  if they were pc this would be SOOO much easier saying how I've installed it on pc before but not mac and a usb together


Formal definition of numbers with real exponents

The definition of the exponential with integer exponents is straightforward to define: $x^n=\underbrace{x\cdot\ldots\cdot x}_{n-\text{times}}$.  These days I've been thinking about the formal definition of the exponential with real exponents.   My question:     What is the definition of $a^{b}$, where $a,b\in \mathbb R$.


How to tag more than 20 people in Facebook

In , someone is asking how to tag more than 50 people in a picture. He even has a link to someone who has done it.  I can only tag up to 20 people.  How are some people able to tag more than 20 people?


I have Ubuntu 14.10 thats dual booted (with windows 7) with 6 GB of RAM and i want to delete the swap partition without having any errors when booting into Ubuntu if its possible how?  BTW my Linux swap is taking about 5 GB and thats a lot.


What's the difference between (int *pointer) and (int* pointer)

While passing pointer to a function in C, on the receiving end, two conventions are seen:  void foo(int *pointer)   and   void foo(int* pointer)   What's the difference between them?


Is the statement true or false?     If $(x_n)$ has a convergent subsequence,then $(x_n)$ is bounded.   The statement is False.  However, can someone please show me an example of a sequence with numbers to make it easier to understand. Thank you.


If one of my python files is called hello.py, is there a way to import it to my other python file, called main.py, in the following way:  main.py  name = "hello" import name   I get the following error:     ModuleNotFoundError: No module named 'name'


comparison Integer object with primitive int

I am comparing integer object with primitive int but getting null pointer exception if Integer object is null  public static void main(String[] args) {          Integer a = null;         int b = 1;          if (a != b) {             System.out.println("True");         }      }   Output : Exception in thread "main" java.lang.NullPointerException     at com.nfdil.loyalty.common.Test.main(Test.java:10)   I am getting this because its trying to convert null integer object (a.intValue()) into primitive int.   Is there any other way to avoid this?


Regular interference pattern can be observed if the two wave sources are coherent.  Two sources are coherent if they have the same frequency and constant phase difference.  Could someone please explain to me what constant phase difference implies?


More Power? (do I need to upgrade my pc?)

In advance, I'd like to thank you for your help. And apologies for the amateur question – but that’s exactly what I am.  For the last several years, I have taken on minor graphic design/editing jobs at work (in the finance industry… but we don’t have a designer on hand and I wanted to learn). I’ve been doing so with the stock PC and free utilities like Inkscape and Gimp. However, the PC has begun crashing when working on projects and moves very slowly. Could be the computer bogged down or too old at this point, but I’m inclined to think it’s simply not the right tool for the job (Pentium Dual Core E5800 @ 3.2GHz, 4 GB RAM, GeForce 210).  I have enjoyed these projects and think I will continue to do more and more, both at work and at home independently. So for this I ask for your suggestions and advice when looking for a new computer.  While, budget isn’t a hard cap, I’m hoping to keep it around $1,000. I would prefer a PC over a Mac. Are there any laptops that would work – maybe with a docking station?  Thanks!


Does Armor of Agathys work for melee spell attacks like Spiritual Weapon?

(PHB 215) states:     If a creature hits you with a melee attack while you have these hit points, the creature takes 5 cold damage.   Since it doesn't specify that it has to be a weapon attack, does it also work for melee spell attacks?  Specifically, would it work against  (PHB 278)?


How to set up value for serial type in PostgreSQL?

I have a primery key in my table as follows:  CREATE TABLE a (     id serial NOT NULL,     valuea citext NOT NULL,     CONSTRAINT a_pkey PRIMARY KEY (id), );   Table had the following rows:  id value 198  b 199  j   By accident I did this insert  Insert Into a(id,valuea) values (200,'hello');   Now, when I try to do another insert in the correct way:  Insert Into a(valuea) values ('b');   I expect it to insert (201,b) but the serial counter doesn't know 200 has been used because of the last manual insert.  I get:     ERROR:  duplicate key value violates unique constraint   "a_pkey" DETAIL:  Key (id)=(200) already exists.   I understand this error.. basically it happens because my last insert was not used the Serial and therefore it's counter didn't rise up.  What I don't know is how to fix it?  How do I tell the serial counter to start from 201?


I got this message when trying to update nodejs and nodejs-dev (with --with-new-pkgs option) in Ubuntu 18.04.   The following packages have unmet dependencies:  libssl-dev : Conflicts: libssl1.0-dev but 1.0.2n-1ubuntu5.1 is going to be installed               Recommends: libssl-doc but it is not going to be installed  libssl1.0-dev : Conflicts: libssl-dev but 1.1.0g-2ubuntu4.1 is going to be installed E: Broken packages


Suppose $1\le p < r < q < \infty$. Prove that $L^p\cap L^q \subset L^r$.    So suppose $f\in L^p\cap L^q$. Then both $\int |f|^p d\mu$ and $\int|f|^q d\mu$ exist. For each $x$ in the domain of $f$, $|f(x)|^r$ is between $|f(x)|^p$ and $|f(x)|^q$.   So $|f|^r\le\max(|f|^p,|f|^q)=\frac12({|f|^p+|f|^q+||f|^p-|f|^q|})$.  The RHS is integrable, and since $|f|^r$ is bounded above by an integrable function, it is also integrable. So $f\in L^r$.  Is my argument correct?    Actually is this still true when $q=\infty$? In this case, we have $1\le p < r < \infty$. Is $L^p\cap L^{\infty}$ necessarily a subset of $L^r$? Why?  Please show that if $f\in L^p\cap L^{\infty}$, then $||f||_r \le ||f|_p^{p/r} ||f||_{\infty}^{1-p/r}$  EDIT: Thanks for the link to the first part of my question. I'm still quite interested in the case $q = \infty$.


ps2pdf error with \arrow in chemfig package

The conversion of dvi to pdf fails when using the \arrow command. For instance, the file  \documentclass{article} \usepackage{chemfig}  \begin{document} \schemestart A\arrow B \schemestop \end{document}   returns:  Error: /undefined in XC@. Operand stack: --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostring  val-- --nostringval-- false 1 %stopped_push 2045 1 3 %oparray_pop 2044 1 3 %oparray_pop 2025 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:961/1684(ro)(G)-- --dict:1/20(G)-- --dict:88/200(L)-- --dict:178/300(L)-- --dict:58/200(L)-- Current allocation mode is local Current file position is 33303 GPL Ghostscript 9.26: Unrecoverable error, exit code 1   Thank you for helping !


I had my innodb file format changed from antelope to barracuda recently.  Is it safe to have both antelope and barracuda at the same time? I have my setup running properly now.   What issues I would face? Or should I change it back to antelope.


I'm new on Ubuntu 14.04 LTS (64bit) and I'm just getting a hold of this new way of doing things.  I am using a program built for UNIX and I managed to install it and get it all work perfectly, but I am a little bit lazy so I'm trying to figure out a way to make an application shortcut just by double clicking on it (without using Teminal to go to the path and then typing the command for the program).  The command after I get into the right path:  java -cp jts.jar:total.2013.jar -Xmx512M -XX:MaxPermSize=128M jclient.LoginFrame .   Please try to make it as detailed as poosible because, as I said, I'm very new at this.


I've installed Arduino but as the title says, I can only upload with sudo. And yes my user is part of the dialout group so that's the weird thing.   Arduino did function before on my system. What could be wrong?  Output ls -l:  ls -l /dev/ttyUSB* crw-rw-rw- 1 root dialout 188, 0 apr  2 09:23 /dev/ttyUSB0


How to find the machine from which a user logged into current machine using ssh?

In a multi server architecture, is it possible to find out from which machine a user logged into current machine using ssh?  For example, user1 logged into host1. From there, the user logged into host2 as sruser using ssh.  In above example, would it be possible to trace the sruser session of host2 back to user1 session in host1?  Would it be possible to get the hostname or terminal of user1 session?


What's the correct (British) pronunciation of 'the'?

I've been an English student since school, however, I always feel like I'm mispronouncing the word "the". Oxford online dictionary defines the pronunciation of 'the' as: /ðə/, /ðiː/, /ðɪ/. So, are the three correct in every situation?, if not, when should I use each of them?


I really didn't know how to name this thread so I apologize about it. My question is: what is the linguistic term that refers globally to the words "vocabulary", "words", "phrases", "collocations", "expressions", "jargon", "idioms", "lexicon" etc?   I am doing an article on this and in the process of writing my paper when I put the word "vocabulary" I feel like I am referring only to single-words (e.g.: coincidence) opposite to when I write "phrase" which refers to more than one word without a verb/subject (e.g.: many thanks) or when I write "expression/idiom" it refers, generally speaking, to more words with a verb/subject (e.g: She is pulling my leg). The problem is I need to refer to these in one word, what is that word? I was thinking of "lexicon" but I am not sure. Is there something like "linguistic inventory"? I really need this word.  Thank you a lot. I hope that wasn´t so confusing.


Can an "SFDC changed data capture" by an ETL tool be made 100% reliable?

We've implemented an ETL extraction out of SFDC using the "Change data capture" mechanism with SFDC as the Data Master (described ).  We do daily delta extractions using a filter on systemmodstamp and using the extract_all functionality of DataLoader CLI so we also include records with IsDeleted = true.   However we've noticed that sometimes deleted records are not returned as part of the ETL query result. In most cases they are, but sometimes they're not.   I suspect this has to do with many records being deleted at once, thus forcing a purge of the Recycle Bin within the day. This would mean that our end-of-day delta query will not pick up those deletes and the data will stay in our BICC system forever (as it will never be updated/deleted from SFDC again).  (Some background info on the recycle bin process , by the way)  So the question is:      is there any way that we can make the delta queries in this daily ETL extraction process 100% reliable?   Can I force deleted records to stay in the Recycle Bin for at least 24 hrs? Or should we do a full database dump each night? (I hope not..) We can't be the first company struggling with this?


If $\vec{a},\vec{b},\vec{c},\vec{d}$are unit vectors, $(\vec{a}\times\vec{b}).(\vec{c}\times\vec{d})=1$ and $\vec{a}.\vec{c}=\frac{1}{2}$,then

If $\vec{a},\vec{b},\vec{c},\vec{d}$are unit vectors such that $(\vec{a}\times\vec{b}).(\vec{c}\times\vec{d})=1$ and $\vec{a}.\vec{c}=\frac{1}{2}$,then $(A)\vec{a},\vec{b},\vec{c}$ are non-coplanar $(B)\vec{a},\vec{b},\vec{d}$ are non-coplanar $(C)\vec{b},\vec{d}$ are non-parallel. $(D)\vec{a},\vec{d}$ are parallel and $\vec{b}$ and $\vec{c}$ are parallel.    My Attempt: $(\vec{a}\times\vec{b}).(\vec{c}\times\vec{d})=1$ $(\vec{a}.\vec{c})(\vec{b}.\vec{d})-(\vec{a}.\vec{d})(\vec{b}.\vec{c})=1$ $\frac{1}{2}(\vec{b}.\vec{d})-(\vec{a}.\vec{d})(\vec{b}.\vec{c})=1$    Book's Solution which i did not understand: $(\vec{a}\times\vec{b}).(\vec{c}\times\vec{d})=1$ is possible only when $|\vec{a}\times\vec{b}|=|\vec{c}\times\vec{d}|=0$ and $(\vec{a}\times\vec{b})$ is parallel to $(\vec{c}\times\vec{d})$ And the correct option given is $(C)$.  I could not solve this problem after some efforts.Please help me.Thanks.


Minecraft 1.14: How to check if a player has a position with a specific y-axis within a circular x,z area

Pretty much it's a climbing game. The first person to reach a certain height within the game boundaries wins. It's multiplayer so there could be people outside of the game at the specific y-axis as well. I need a command that will detect a player within the radius:  /execute if entity @a[x=244,z=345,distance=..2] run...   AND check if that specific player is ALSO at an exact y-axis:  /execute if entity @a[y=70] run...   If you picture it visually, I want the detection area to be a top-down circle instead of a sphere. Once a player reaches that detection area, it will run a command. Hope you guys can help! Thanks :)


What really happened once we write L = L[::-1]?

As we all know L[::-1] reverses L, no matter L is a list or a string  >>> l=[1,2,3] >>> l[::-1] [3, 2, 1] >>> s 'abc' >>> s[::-1] 'cba' >>>    But I wonder what the two colons mean. I know it goes from back to front using '-1' as step length, but can you explain in more depth? Thanks :D


What should a letter of motivation/statement of purpose contain?

I am applying for some postdoc programs and have come across a requirement called "motivated letter of application" which I assume is essentially similar to what many here refer to as statement of purpose.   Since I never had to write such a letter before I am not quite sure what it should contain. I couldn't find any specific instructions regarding the letter so I wonder whether or not there are general (subject-agnostic) guidelines or expectations regarding this type of personal letter.   Is it essentially about:   who I am, or  what I have done so far, or what I want to do in the future, or why I am applying to this specific position?   (1) is essentially answered by the CV, so it would be mostly re-iterating the same stuff in a less verbatim/list format.  (2) is again answered partially by the CV and partially by the list of publications and thesis.  That leaves (3) and (4), where the first one is dependent on what resources I can get. I mean, coming from a cross-disciplinary field I can imagine developing towards a number of different fields. I don't feel like there is one very specific thing/project I want to do. Finally, (4) is also a bit tricky to answer, since the truth would be as simple as, "it's a cool position". The more elaborate answer would be something like "I like the project description and consider myself fulfilling the requirements"  Those of you who do read such letters of motivation, what do you actually look for in specific terms? Things like "suitability of the candidate" doesn't help much in terms of structuring the letter, I think.


PowerPC g++ generates two destructor calls at the end of main

In disassembling C++ object code for a main function that could ultimately get linked with the object code for a class, I have stumbled upon a strange scenario.  There is no explicit call to a destructor and the object is not constructed via a copy constructor. At line 30, the destructor is called via bl and then again at line 54. However, the main function should have exited at line 48 with the blr instruction...    int main(void){ c:  90 01 00 24     stw     r0,36(r1) 10: 93 e1 00 1c     stw     r31,28(r1)   int temp;   SimpleMemory mem; 14: 48 00 00 01     bl      14 <main+0x14>         14: R_PPC_REL24 _ZN12SimpleMemoryC1Ev   mem.setData(42); 18: 38 61 00 08     addi    r3,r1,8 1c: 38 80 00 2a     li      r4,42 20: 48 00 00 01     bl      20 <main+0x20>         20: R_PPC_REL24 _ZN12SimpleMemory7setDataEi   temp = mem.getData(); 24: 38 61 00 08     addi    r3,r1,8 28: 48 00 00 01     bl      28 <main+0x28>         28: R_PPC_REL24 _ZN12SimpleMemory7getDataEv 2c: 38 61 00 08     addi    r3,r1,8 30: 48 00 00 01     bl      30 <main+0x30>         30: R_PPC_REL24 _ZN12SimpleMemoryD1Ev   return 0; 34: 80 01 00 24     lwz     r0,36(r1) 38: 38 60 00 00     li      r3,0 3c: 83 e1 00 1c     lwz     r31,28(r1) 40: 38 21 00 20     addi    r1,r1,32 44: 7c 08 03 a6     mtlr    r0 48: 4e 80 00 20     blr 4c: 7c 7f 1b 78     mr      r31,r3 50: 38 61 00 08     addi    r3,r1,8 54: 48 00 00 01     bl      54 <main+0x54>         54: R_PPC_REL24 _ZN12SimpleMemoryD1Ev 58: 7f e3 fb 78     mr      r3,r31 5c: 48 00 00 01     bl      5c <main+0x5c>         5c: R_PPC_REL24 _Unwind_Resume   By muddling around with different combinations of the object member function calls, the second destructor call gets introduced whenever there is at least one member function call (no matter what it is).  So basically, why are there two indirect function calls that have identical relocation symbols?  The compiler I am using is GCC DDCI PowerPC ELF 4.6.1-1.


How do you reindex an array in PHP but with indexes starting from 1?

I have the following array, which I would like to reindex so the keys are reversed (ideally starting at 1):  Current array (edit: the array actually looks like this):  Array (  [2] => Object     (         [title] => Section         [linked] => 1     )  [1] => Object     (         [title] => Sub-Section         [linked] => 1     )  [0] => Object     (         [title] => Sub-Sub-Section         [linked] =>      )  )   How it should be:  Array (  [1] => Object     (         [title] => Section         [linked] => 1     )  [2] => Object     (         [title] => Sub-Section         [linked] => 1     )  [3] => Object     (         [title] => Sub-Sub-Section         [linked] =>      )  )


Grammar of "supposed to": part of speech / word class, active or passive?

If I say     I'm supposed to go.   Is supposed to here an adjective in a passive construction?


Can I mix 12 gauge and 14 gauge wire in the same 15 amp circuit?

I have 12/3 wire from a switch to 3 light fixtures; can I feed the switch with 14/2 wire from a 15 amp breaker?


Error 1004 when tried to change data in secondary worksheet

I'm trying to change the background color in a range of a secondary worksheet, using a function. The code is this:   Function pintar(fila As String, colI As String, _                colF As String, celdai As Integer, _                celdaf As Integer, xColor As String) As String      Dim ci, cf, barra As String     Dim micolor As Long     Dim Re, Gr, Bl, fi As Integer      micolor = CLng("&H" + xColor)      Re = CInt(CLng("&h" + Left(xColor, 2)))     Gr = CInt(CLng("&h" + Mid(xColor, 3, 2)))     Bl = CInt(CLng("&h" + Right(xColor, 2)))       'Posiciones      ci = colI & fila     cf = colF & fila     barra = ci & ":" & cf     'Range     fi = CInt(fila)      On Error GoTo ups     Dim ws As Worksheet     Dim rng As Range     Set ws = Worksheets("cronograma")      With ws         Set rng = .Range(.Cells(fi, celdai), .Cells(fi, celdaf))     End With      rng.Interior.color = RGB(Re,Gr,Bl)      pintar = "OK"  ups:     MsgBox (CStr(Err.Number) + ": " + Err.Description)     pintar = "Error"  End Function   When I execute it, I get an runtime error 1004, on the rng.Interior.color = RGB(Re,Gr,Bl) line. Could you please help me with this?


I have:   string turtle = "turtle" var charArray = turtle.ToCharArray()   When I do:  var distinct = charArray.Distinct().ToArray() // distinct = ["t","u","r","l","e"]   My question is:  How do I save the characters that got deleted from charArray when I called Distinct on it? How do I get the variable distinct to equal "t" (the character that was removed)  Thanks!


Comment upvotes and flags don't work when reviewing on mobile

Normally, when I browse a site in desktop mode on my iPhone, I can tap a comment and the upvote and flag options will appear:    However, this doesn't work when reviewing from mobile. I can tap or long-press whatever I want, but the upvote/flag options won't appear.  This is not really a duplicate of ; that's simply a  which has never been updated to  (so I do understand the close votes). For proof, see the screenshot below:    (and flagging is possible as well, by the way)


Why is it not possible to use the "cut" command to manipulate a file in the Finder?

On OS X 10.6 (Snow Leopard), I don't seem to be able to us the "Cut" command on a file in the Finder, like you can do in Windows Explorer on Microsoft Windows. (In Windows, once you select a file and "cut" it, you can then move to a different directory and "paste" the file to that location.)   The only way I can move a file using keyboard or contextual menu commands is to copy the file to another drive or location and then delete the old version of the file.   In the Finder's 'Edit' menu, 'Cut' is in the list but if a file itself is selected, it is always greyed out. 'Copy' is not. Why is this?


What is Ambient Occlusion and what are some of it's uses? I see it is used in creating what might be called "shadow catchers" in the following node tree setup:


I have the apex class that makes the call to two endpoints in the same method like below  @future (callout=true) public static void createSegSubSegment(String jsonBody,String endPoint) {     String clientId = 'xxxxxx';     String clientSecret = 'xxxxx';     String resource = 'xxxxxx';     String tenant_id = 'xxxxx';     String bearerToken = '';             try{                                String reqbody = 'grant_type=client_credentials&client_id='+clientId+'&client_secret='+clientSecret+'&tenant_id='+tenant_id+'&resource='+resource;              Http h = new Http();             HttpRequest req = new HttpRequest();             req.setBody(reqbody);             req.setMethod('POST');             req.setEndpoint('https://..........');             HttpResponse res = h.send(req);              if(res.getstatusCode() == 200 && res.getbody() != null){             deserializeResponse resp1 = (deserializeResponse)JSON.deserialize(res.getbody(),deserializeResponse.class);             bearerToken = resp1.access_token;             }              Http http1 = new Http();             HttpRequest req1 = new HttpRequest();             req1.setMethod('POST');             req1.setTimeout(20000);             req1.setHeader('Authorization','Bearer '+bearerToken);             req1.setEndpoint('https://..........');             req1.setBody(jsonBody);             req1.setHeader('Content-Type', 'application/json;charset=UTF-8');             HttpResponse res1 = http1.send(req1);          }     }    I was able to make the mock call to the 1st endpoint from my test class like below   @IsTest public class calloutTest {     private static testMethod void callFutureMethod() {               .......         .......          Test.startTest();         Test.setMock(HttpCalloutMock.class, new HttpMockCalloutTest());         handleD365Request.createSegSubSegment(jsonBody,endPoint);         Test.stopTest();      }   Where HttpMockCalloutTest is like below  @isTest global class HttpMockCalloutTest implements HttpCalloutMock{     global HttpResponse respond(HTTPRequest req){         HttpResponse res = new HttpResponse();         res.setStatus('OK');         res.setStatusCode(200);         res.setBody('Test Mock Callout');         return res;     } }   How can I make the mock call to the other endpoint.I am little confused as I have the endpoints are called from the same method in the original apex class


Is there such a thing as a reverse dictionary?

Is there any tool online that generally permits me to enter a phrase or idea and get back a word that means something similar? For example, if I were looking for a better word or phrase for arguing winsomely but forcefully in favor of something, where might I go to find such a definition?


"Doctor's appointment" or "doctors appointment"?

I've looked this up online, but I can't find any explanations from reasonably credible sources, so I'm posting my question here! (Was that a comma splice?)  Should I refer to the appointment that I made with my doctor as a "doctor's appointment" or "doctors appointment"? What if I'm referring to more than one appointment with two different doctors?


What language do QGIS expressions use, what language should QGIS queries be written in?

part of the docs says it supports only a small part of the SQL syntax but does that mean it's SQL based or am I better writing expressions in something else, MySQL?   This is similar to  but my query was not limited to the field calculator, it also applied to the filter and label options. I understand from the answer to that question that QGIS has it's own language for the field calculator is that the same for label by expression and filter by expression. I generally try SQL based syntax on these as a first approach with support from here when those fail.


Most influential/illuminating papers/books/courses on lattice based cryptography?

I'm interested in some sort of "compendium" on lattice-based crypto. There are a bunch of maths behind FALCON and other stuff. A lot of articles are devoted to lattice crypto, but not of them are of paramount importance. The other problem is that there are papers that are obviously influential, but they are hard to understand "from scratch".  To start with something I may notice some of them:  GPV framework:    "How to Use a Short Basis: Trapdoors for Hard Lattices and New Cryptographic Constructions".   Cryptanalysis:    "Learning  a  Parallelepiped:  Cryptanalysis  of  GGH and NTRU Signatures"   Basic courses :   winter school on lattice-based crypto () Regev course on lattices in CS () Vinod's course ()   Surveys:   "Lattice-based Cryptography" part from the book "Post-Quantum Cryptography". "A Decade of Lattice Cryptography", Peikert.   Unfortunately, I didn't find anything on discrete Gaussian distributions and properties of continuous Gaussians (why is it "not far from" uniform over any "small" parallelopiped), how to generate them; on smoothing parameter and its "intuitive" meaning. Also, reductions from average to worst-case are somewhat tricky and uneasy to understand form Ajtai papers. And there is a direction of research on ideal lattices, which somehow related to integer rings of number fields ($\mathbb{Z}_K$), this is completely obscure.


Usage of the abbreviations "w/" and "w/o" in presentations

I like to use the abbreviations "w/" for "with" and "w/o" for "without" on my powerpoint slides and also in emails. According to this discussion  the meaning of these abbreviations is well known in English speaking countries.  Recently, a colleague pointed out that these abbreviations do not look very professional on slides presented at some conferences. Since we are both non-native speaker, I'd like to know your opinion on using them on slides, does that look awkward or non-professional to native-speakers?  (I am working in natural sciences, if this matters)


"isanswered:no" returns questions with accepted answers

According to the , isanswered:no      returns only questions with no accepted or positively-scored answers   However, if I perform the following :  isanswered:no closed:no answers:1   I get questions back that have an accepted answer.  In all cases, the accepted answer is scored 0 or lower.  However, I expected to get back no questions with accepted answers.  This seems to be a bug to me.  If it's not a bug, how can I search for questions with these criteria?   one or more answers with none scoring greater than 0, and no accepted answer    that I can do this:  isanswered:no closed:no answers:1 hasaccepted:0   But shouldn't hasaccepted:0 be redundant to isanswered:no? If not, then the help text is misleading.


I'm working on a project and I noticed some strange values. I did some tests with various input values and ended up with this - what seems to me - weird behavior:  1 + 0.72 = 1.72 // expecting 1.72 2 + 0.72 = 2.7199999999999998 // 2.72 1 + 1.72 = 2.7199999999999998 // 2.72 1 + 2.72 = 3.72 // 3.72 1 + 3.72 = 4.720000000000001 // 4.72   Does anyone have a clue on what's going on and how to prevent this, that is, how do I make sure I get what I'm expecting?


Could anyone clarify once and for all the usage of suggest? All the grammars I have consulted allow for only four possibilities:  Suggest + ing form Suggest that + direct object + should + bare infinitive Suggest that + direct object + bare infinitive Suggest that + direct object + simple past  They all say that suggest must never be followed by an indirect object. However, I keep finding sentences that seem to contradict these rules:  "We suggested to the committee that they review the case again." (Merriam-Webster online dictionary." "Can you suggest to them that Company Name develop the Italian version of the website?" (this website's thread of some months ago)  to mention only a few. Could anybody please help?


Manipulating DOM in Javascript not working out

Hi I'm trying to create a simple calculator website, and I'm trying to manipulate the DOM to display an updating equation, but it won't add the child to the display container.  HTML:

   In the Javascript, I have the following code to add an element to the "display" div:  JAVASCRIPT:  const display = document.querySelector("#display");  var eqnDisp = document.createElement("p"); eqnDisp.classList.add("eqnDisp"); eqnDisp.textContent = "DISPLAY SOMETHING"; display.appendChild(eqnDisp);   Am I missing a line? I have the exact code for another page and it works but not here.


Can 2017 be written uniquely as a sum of 2 squares?

I know that $2017 = 9^2+44^2$, but how can I prove that this is the only possible way you can write 2017 as a sum of 2 squares?


This app promises to run "fstrim" without root but I am not sure if it works

I am not sure if  works. Can someone please help me? My phone is new and in its warranty period so I can't root it yet. I tried this app but I am not sure if it actually did something. Unlike the other famous app on the PlayStore for fstrim, it doesn't require root access which is quite incredible.


I'm designing a scheme for management of a small number of cryptographic keys (< 100 at any given time) and I had an idea: rather than storing all the keys, could I just store one master key and use a KDF to derive the particular key I need by varying the salt in a certain way?   For example, if I need the second encryption key for usage X, I'd give something like PBKDF a salt of   $$2||“encryption”||X||<random value>$$  which would uniquely derive the second version of that particular key.


fast question what does this do in c++;  auto asd = (1,2,3,4,5);   note: this does note emit an error  Is this a class? If it is a struct of data or class or array, can you tell me how to get the individual element value;  When i cout << asd ; It return always the last number, in this case 5  thanks in advance


I am DMing the Curse of Strahd adventure. My players' party is a silver dragonborn fighter, a high elf cleric and a tiefling druid. He brought the fighter to Barovia because he's the last living descendant of Argynvost and he wants to wipe out the bloodline completely, and he brought the cleric because [reasons].  Now I've had an idea for the druid, but I'm not sure if I can make it work. As part of her backstory, she's been travelling the planes trying to find a cure for the curse that befell her homeland (which we've decided is Flotsam from the Dragonlance universe, since it's not out of the question that they'd have some kind of "devil's quarter" there for wayward Tieflings). On one of her journeys she got lost in a demiplane, where she attracted the attention of the Lady of Pain due to her having a pretty unique tail, and the Lady sent an emissary to offer her passage to and a key for Sigil in exchange for half the tail, which she accepted.  Obviously the key won't work in Barovia due to the rules on getting to other planes, which is why Strahd can't leave as well (and the druid tried to use it after realising she'd been transported and it didn't work), but obviously if he could he'd want to in order to escape his endless torment. So I hit upon the idea that the reason he brought the druid to his realm was to offer to restore her ruined wings in exchange for her key (whether he can do this or not or even intends to is a subject for another session) but my question is: is there anything in the 5e RAW that would enable Strahd to make use of a Sigil key to escape Barovia if he had one? I mean DM fiat means I could just say it works, but I'd like to have a way to justify him doing this if that's the way the campaign ends up going (at which point Strahd would escape and start terrorising other planes if they don't go after him).  TL;DR: Could Strahd do anything with a key to Sigil that would allow him to escape Barovia?


Division between power series that converge at least for |x| < r, only valid for |x| sufficiently small?

I have this book Calculus, Ninth Edition by Varberg, Purcell, and Rigdon; there's a particular point of a theorem (and another line after that) about Infinite Series that I really don't understand. I quote from Section 9.7, Operations on Power Series:     Let $$f(x) = \sum_{n=0}^{\infty} a_n \cdot x^n$$ and $$g(x) =\sum_{n=0}^{\infty} b_n x^n$$, with both of these series converging at least for $|x| < r$.    If the operations of addition, subtraction, and multiplication are performed on these series as if they were polynomials, the resulting series will converge for $|x| < r$ and represent $f(x) + g(x)$, $f(x) - g(x)$, and $f(x) \cdot g(x)$, respectively. If $b_0 \neq 0$  the corresponding result holds for division, but we can guarantee its validity only for $|x|$ sufficiently small....We mention that the operation of substituting one power series into another is also legitimate for $|x|$ sufficiently small, provided that the constant term of the substituted series is zero.   What does it mean by "sufficiently small"? How do I find the limit of how large $|x|$ can be before divisions and substitutions between power series become invalid? My book doesn't go into detail on the exact nature of this restriction and doesn't include a proof of the theorem. If I were dividing one power series by another I don't really know what I should be looking for. I wasn't able to find information about convergence sets for a series generated by two power series divided by each other.


I watch a number of different tags at the same time using the tag filters and I noticed that today, the sort order of the newest tab seems to have an issue.  Towards the bottom of the first page, I have questions from May 2011 and Dec 2011.  There seems to be questions missing/skipped in the sorted list.   When I check the old questions listed, I can see no recent updates that would have pushed it to the top.  Even so, newest sort order used to be ordered by the question posted date, not active date.    See  for example.  Is this bug?  How can I restore the correct sort order as it was before?  EDIT: Just checked again and now it's fixed.  I wonder, what was the problem?


How correctly overcome problem with an infinity MAPE?

Should I choose an other metric or is the way to handle this problem?


I have the following code that iterates over a dictionary, and if the key doesn't have a value, it checks another dictionary for a value and assigns it. I keep getting the following exception though.  -      $exception  {"Collection was modified; enumeration operation may not execute."} System.Exception {System.InvalidOperationException}   foreach (KeyValuePair<string, string> param in request.Field.StoredProcedure.Parameters) {     if ((param.Value == null || param.Value.Length == 0) &&          request.SearchParams.ContainsKey(param.Key))     {         request.Field.StoredProcedure.Parameters[param.Key] =              request.SearchParams[param.Key];     }     else if (param.Value == null || param.Value.Length == 0)     {         throw new ArgumentException(             "No value could be found for sproc parameter " + param.Key);     } }   Are you not able to assign a value to a collection while you are iterating over it?


I'm using Ubuntu 14.04 and my ethernet (eth0) connection is working fine. (with DHCP)  However, when I read the /etc/network/interfaces, there is nothing about eth0 in it.   Is Ubuntu 14.04 reading the eth0 settings from somewhere else?  $ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback   I want to set my eth0 with a static address but I don't understand why there is there nothing about eth0?


If you plan to retire overseas, are you going to be taxed from the US or from the country overseas?   I was not able to find any rules that could answer that question for traditional 401k funds.   I would like to know for US-citizens and non-US-citizens.  Where do you have to pay the taxes?


Hi I'm having an issue with yum, I seem to have broken dependencies? I have a general knowledge of Linux but I'm not sure how to fix this. Running CentOS 6.6.  Here's the output from yum:  yum update Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds from cached hostfile  * epel: mirror.symnds.com Resolving Dependencies --> Running transaction check ---> Package ntpdate.x86_64 0:4.2.6p5-1.el6.centos will be updated --> Processing Dependency: ntpdate = 4.2.6p5-1.el6.centos for package: ntp-4.2.6p5-1.el6.centos.x86_64 ---> Package ntpdate.x86_64 0:4.2.6p5-2.el6.centos will be an update --> Finished Dependency Resolution Error: Package: ntp-4.2.6p5-1.el6.centos.x86_64 (@base)            Requires: ntpdate = 4.2.6p5-1.el6.centos            Removing: ntpdate-4.2.6p5-1.el6.centos.x86_64 (@base)                ntpdate = 4.2.6p5-1.el6.centos            Updated By: ntpdate-4.2.6p5-2.el6.centos.x86_64 (updates)                ntpdate = 4.2.6p5-2.el6.centos  You could try using --skip-broken to work around the problem ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: ntp-4.2.6p5-2.el6.centos.x86_64 is a duplicate with ntp-4.2.6p5-1.el6.centos.x86_64 ntp-4.2.6p5-2.el6.centos.x86_64 has missing requires of ntpdate = ('0', '4.2.6p5', '2.el6.centos')   Running yum --skip-broken doesn't seem to do anything. I'm assuming this is important to resolve due to the NTP exploit that was recently found.  Thanks!


Change Terminal 'user@host' colours - Gnome

I've pretty much got the terminal colour scheme I want, however the user@host colours stick out like a sore thumb, and really don't fit in with the scheme. See screenshot in link:    How do I go about changing the user@host colours (currently green)? Also, is it possible to change the archive colours (currently red)?


Revoke the privilege to down vote an answer, from the user who has posted an answer, for that question

Title/Request Elaborated:   Down voting an answer is a privilege given to users who have at least 125 reputation points. I am requesting for a feature to prevent users from down voting (other) answers to the question, as soon as the user gives his/her own answer to the question. As a follow up, a user who has down voted an answer to a question, the user shall then be labelled as a referee, and his/her privilege to give an answer shall get revoked. Optionally, the user may be given the option to sacrifice his/her down votes to answers in that question, for the sake of giving his/her own answer to the question.   Motivation:  Users are generally able to be objective while giving up and down votes, provided they have given an answer to a question. As soon as they give an answer, however, they more or less lose their objectiveness. While a user would definitely not vote an answer other than his/hers up for having lost objectiveness; this is not the case for voting down...  A user may vote an answer down, simply because it is not theirs. <<< this is the tl; dr  I think we would all agree that in any sports, it wouldn't be appropriate to let a player be a referee. We don't allow this for up-votes, by disallowing casting up-votes for our own answers; and this suggestion/request asks one for the down-vote counterpart.


I have a requirement to get the ID of a custom field in apex .  When we navigate to Setup-->Create-->Object--> Click on Object --> Click on field .In field detail page url we can find field Id  https://orgaddress/00NG000000EyFpU   how that can be accomplished dynamically through Apex?  Thanks in advance


How does Captain America know about Iron Man's parents' fate?

In the climax of Captain America: Civil War (2016), Zemo showed Iron Man how his parents really died, and that the Winter Soldier was responsible.  Afterwards, Iron Man asked Captain America whether he knew about it. Captain America admitted that, while he didn't know that Bucky (the Winter Soldier) was responsible, he did know that Howard and Maria's deaths weren't accidental.  But how? How did Captain America know the truth behind Iron Man's parents' death? How did he know that it was not an accident, but murder? This incident happened on 16 December 1991, and Captain America was buried in ice at that time. Did anyone tell him after he awoke? Am I missing something here?


I'm new to Ubuntu. Just started my course this week. I would like a  simple explanation for what the kernel is and what it does in Ubuntu.


According to the OED a 'son of a gun' was a child born to a woman who accompanied her husband on a Royal Navy gunship. However I distinctly remember hearing on a BBC Radio 4 history programme that the 'sons of guns' were children born to 'ladies of easy virtue' with whom British sailors frequented in foreign ports. They would be allowed on to any subsequent ship to give birth, which happened on the gun-deck between the guns, and the ship's doctor would attend them. As no one took responsibility for fatherhood the child would be known as a 'son of a gun'. Wikipaedia is clearly unsure concerning these two possible origins. Does anyone know anything about this?


"Harpulia" and "Javanese" processes cause high cpu usage

I'm wondering what is the purpose of "Harpulia" and "Javanese" processes (see screenshot below)  Hi !  They're high in CPU usage (and make my macbook pro fans to be running loud) and they do not seem to be essential as I can cut it so the fans are slowing down.  Oftentime these processes appear when I watch a video on chrome but it is not the only time they appear. On the other hand, they do not seem to be related to any chrome processes.  Thanks in advance for the help.  PS : on the screenshot these processes does not use much CPU compared to most of the time (it can be more than 100% per process).


I want to install java plug-in in firefox .   I read that installing java plug-in is not secure.  EDIT1 : Can anyone please tell me why java installation is not secure, and should I install it or not.


I would like to know which one is correct, "She is not yet here." or "She is not here yet." Or are they both correct?


I'm using an HP Gaming Pavilion-15-dk0045tx laptop and I recently installed the 20.04 release, after installing the new release my home screen looks like this. If I open any application the screen looks fine but the home screen looks like this. Can someone help me solve this issue?


Why does a prism refract light into a rainbow?

Why does a prism refract light such that the different frequencies of light “spread out”? The same goes for rainbows, why do the raindrops “spread out” the different frequencies of light?


How to read multiple linear regression coefficients for dummy variables in Python?

I'm fairly certain this will be quickly answered but I couldn't find anything that addressed my specific use case.   I'm running a multivariate linear regression using scikit-learn. I created dummies for two variables (is_listed and paid_vs_public) and have one variable that is a numeric value. I am trying to find the relation to the y, called fill-rate.   Here's the output I get below:  [('publish_event_start_delta',0.017666929441105143), ('is_listed', -0.36775097784982064), ('event_paid_type', -2.9127009412292346)]   How do I interpret the event_paid_type coefficient when I've encoded it as :   final_df['event_paid_type'] = final_df.event_paid_type.map({'free event':0, 'paid event':1})


I need a word that means "easily understood or relatable to the common man"

I can't think of a word that would summarize this phrase into one coherent adjective. It's for a thesis I'm writing about a musical composer.


Is there any formula to compute $\sum_{k=1}^n\frac {1}{k^k}$? Where the value of $k$ ranges from $1$ to $n$.


Understanding the Convergence of Series (Rudin theorem)

In Rudin's Principles of Mathematical Analysis, there's a theorem that reads:     $\sum a_n$ converges if and only if for every $\epsilon > 0$, there is an integer $N$ such that $\lvert \sum_{k = n}^m a_k \rvert \le \epsilon$ if $m \ge n \ge N$. (3.22)   I'm having a bit of trouble understanding this theorem. Is it saying that every sum of $a_k$ from one point to another (both greater than or equal to $N$) must be less than some arbitrary epsilon? If so, what exactly is it "saying" and what's the significance? If someone could provide me with a simplified/"dumbed down" explanation of this theorem, it'd be tremendously helpful. Thank you.


I'm going to play a Warlock character starting at 3rd level. I want to know if he can become a lich. If this is possible, is there something that I must do before he can become a lich,  such as take some spells or skills? I want to change characters after he becomes a lich, so I only need to worry about the the pre-conditions. The DM gave no limits.


What is the start and stop value when we are doing [::-1] for any sequence? I know it will reverse the string. But want to understand how it is implemented.  s[:] - for this start is 0 and stop is len(s).  So how is it working for s[::-1]  Can somebody please explain how it is implemented?


use dots instead of comma in math mode with babel package use

hi i started to use math mode for lab reports but when i use the babel package (\usepackage[spanish]{babel}) the dots changes by comma, i been tried to use \DeclareMathSymbol and \mathcode.="8000` options but the bug persist. Can anyone help me?


of course the problem is how to prove if a and b are both algebraic real numbers then a+b and ab is also an algebraic number .  would you explain it without using vector spaces or extensions or etc. things we know are :   there exists a polynomial which its root is a there exists a polynomial which its root is b   please just keep it simple!


I f $$A_{(n+1)\times(n+1)}= \begin{pmatrix}x_{1}^{n}& x_{1}^{n-1} &\ldots& x_{1}& 1 \\  x_{2}^{n}& x_{2}^{n-1} &\ldots& x_{2}& 1\\ \vdots & \vdots & &\vdots &\vdots \\ x_{n}^{n}& x_{n}^{n-1} &\ldots& x_{n}& 1 \\ 1&1&\ldots&1&1\end{pmatrix}$$ be a matrix, i like to calculate the $det (A)$. I think that this matrix is rather than like vandrmonde matrix, what is your idea?


Signature field with centred content underneath it

I am using  \documentclass[a4paper,12pt,openany,leqno,footinclude=true]{memoir}   and want some signature lines that have   dotted lines; plus a designation below the line    I have:  \noindent\begin{tabular}{ll} \makebox[2.5in]{\hrulefill} & \makebox[2.5in]{\hrulefill}\\ Ronaldo & Date\\[8ex]% adds space between the two sets of signatures \makebox[2.5in]{\hrulefill} & \makebox[2.5in]{\hrulefill}\\ Dr. Fernando Torres \begin{center}Assistant Professor Discipline Of Computer Science School Of Engineering La Liga \end{center} \newline  & Date\\ \end{tabular}    The content of "Assistant Professor ..." does not left align below the signature line and I can't use a \newline too.  I want that content to either be   left aligned; or centre aligned (I tried using the center environment, but it didn't work).   I guess centre aligned designation below the signature line would be great.  Here is a minimal example:  \documentclass{article}  \begin{document}  \noindent\begin{tabular}{ll} \makebox[2.5in]{\hrulefill} & \makebox[2.5in]{\hrulefill}\\ User Representative & Date\\[8ex]% adds space between the two sets of signatures \makebox[2.5in]{\hrulefill} & \makebox[2.5in]{\hrulefill}\\ Program Manager & Date\\ \end{tabular}  \end{document}


I have the quaternions $q = x_0 + ix_i + jx_2 + kx_3$ where $x_i \in \mathbb{R}$ and $i,j,k$ satisfy the relations $$ i^2=j^2=k^2 = -1, \hspace{0.3cm} ij=-ji=k,\hspace{0.3cm}  jk=-kj=i,\hspace{0.3cm}  ki=-ik=j$$ I also have that $f(q) =q^2$ defines a smooth map from $\mathbb{R}^4 \cup \{\infty\} \cong S^4$ to itself. I have to find how many solutions are there to the equation $q^2 = 1$. Can someone help me ?


Understanding the proof for showing that there are infinitely many $n\in\mathbb{Z}^+$ such that $n!+1$ is divisible by at least two distinct primes

There is another post pertaining to this question; however, the other post does not address some specifics that concern me in the proof. Proof: Let $n=p-1, p \geq 7$. Then $p|(p-1)!+1$. We will show that $(p-1)!+1=p^n$ has no solutions. Suppose not. Suppose $(p-1)! + 1 = p^n$ has a solution for $p\geq 7$. Then $(p-1)! =p^n-1  = (p-1)(p^{n-1}+\cdots+p+1)$. So $(p-2)!\equiv n (\mod p-1)$. Now suppose that $(p-1)|n$. Then $p-1\leq n$. So $(p-1)!+1<p^{p-1}\leq p^n$. Hence, there are no solutions. It remains to show that $(p-1)|(p-2)!$. But $p-1=2m$ means $2m|(p-2)!$. QED  Questions:  My understanding is that at the start of the proof, Wilson's theorem is used to show that at least one prime divides $n!+1$.  Why do we want to show that $(p-1)!+1=p^n$ has no solutions? The way I see it is that $p^n$ is composite, and we are basically saying that $p^n\nmid (p-1)!+1$, so no composite number divides $n! +1$. But how and where in the proof do we actually show that another prime $q \neq p$ divides $n!+1$?    Thanks in advance.


I can't get dragon souls, Miraak keeps stealing them!

I've recently started doing the Dragonborn quests in Skyrim, but after the quest 'Temple of Miraak', Miraak steals my dragon souls. Is there any way to stop this apart from killing him?


What is the general guideline for dropping dummy variables in a regression model?

For an ordinary least square (OLS) regression problem of the form $y = \beta + w_1 x_1 + \ldots + w_n x_n$, let's say I have 3 categorical variables.   gender: male, female type: office, field, manager ethnicity: white, black, other   And let's also say I have some other continuous variables (not made explicit here). I know that when I dummy encode (e.g. one-hot encode) the categorical variables, I will have the following variables.   gender_male, gender_female type_office, type_field, type_manager ethnicity_white, ethnicity_black, ethnicity_other   I know that I should drop one of the gender dummy variables; let's say, gender_female. What about the other dummy variables? Should I drop one from each too? Or can I leave them all in?  I found one  that seem to suggest that I should drop 1 dummy variable and leave the rest alone. Is this the right approach?  Let's say I decide to drop one dummy variable derived from each of the categorical ones. My model might look like the following.  $y = 1.0 + 0.8 \mathrm{gender_{male}} + 0.7 \mathrm{type_{field}} + 0.2\mathrm{type_{manager}} - 0.8 \mathrm{ethnicity_{white}} + 0.5 \mathrm{ethnicity_{black}} + w_6 x_6 + \ldots + w_n x_n$  With the exception of gender, which is binary, how do I account and explain for the dummy variables that I dropped out? (e.g. type_office and ethnicity_other).  I guess I am having problems reconciling what to do to avoid mathematical problems (e.g. singularities) and then dealing with the side-effects of how to explain or interpret the model. In this , one reply suggest to leave everything in for OLS regression if regularization is used.


What is the meaning of International Passport data page  Please explain .


I have been receiving requests from ip addresses which seems to me like attempts to gain control over the system. These seem to be DOS Attacks due to the sleep(x) function attached. But not all of them have the sleep function, so I need to know which kind of attack are these. I'm attaching the screenshot's of the apache logs that I had taken.      For the time being I have blocked the IP and set the time out limit to 2 seconds. But I am still not satisfied and would like to know if there's any other preventive measures that I can take.


I want to try simple script  flag=false while !$flag do    read x    if [ "$x" -eq "true" ]    then      flag=true    fi    echo "${x} : ${flag}" done   But when I run it, if I type true, I will see that x="true" and flag="true", but the cycle doesn't end. What is wrong with the script? How can I properly invert a boolean variable?


uname -m -p -i. What does every parameter stand for?

I have CentOS7 installed on my computer. uname -a prints the following: Linux c7 3.10.0-1127.el7.centos.plus.i686 #1 SMP Sun Apr 5 18:08:31 UTC 2020 i686 i686 i386 GNU/Linux  As stated in man uname page, uname -m denotes machine hardware name (i686 in my case), uname -p denotes processor type (i686 in my case) and uname -i denotes hardware platform (i386 in my case). I have been trying to find out what exactly every option means. After hours of searching I came to the conclusion that there are contradictions among given answers (even on StackExchange). As far as I understand, uname -m stands for what architecture the kernel was compiled for, therefore, in my case I have a Linux kernel which is build for i686 ISA (right?). But I have some misunderstanding about uname -p. People (and some docs) claim that it prints the ISA of the processor. I have i7-4800MQ, so uname -p should print something like x86_x64/amd64/x86-x64, but it prints i686. I think that it might be due to the reason that my CPU works in Legacy Mode (or so) using i686 ISA, since the distro is 32-bit (right?). The last option is uname -i which prints i386. I don't even have any assumptions about this one. I don't see any connection with i386 architecture in these conditions. Can someone clearly explain what does every parameter stand for in my case?


I'm not a native English speaker, and the use of could and would always confuses me. Could someone please explain it to me?


Creating a contour raster from contour lines shapefile

I'm trying to create a 3D view in Qgis 3.0 for the first time. It's asking for a raster file from which to calculate elevations. All I have for elevation data is a shapefile of contours (as lines).  I've tried simply rasterizing the contour lines shapefile, but it comes up with Error 1 "Wrong value for -outsize parameter" and I can't seem to get any information on this error.    Is there a way to get a raster file suitable for use with the 3D view from a shapefile with contour lines?  Edit - I've followed the link trail from the previous question, they all seem to link back to the tutorial which @Marco linked to.  The trouble is, all those start with converting the vectors to raster, and that, as the question suggests, is where I'm having the problem. Perhaps, given that converting raster contour lines to raster DEM is so well covered I should change the question title to just "How do I convert vector contours to raster contours?"


Clear the terminal in "vi" mode? (equivalent of "ctrl+l" from "emacs" mode)

I am aware of Ctrl+L on bash terminal (using it on Ubuntu) which clears the screen by applying appropriate scrolling on bash terminal. After learning that the terminal is by default set to emacs mode and that I have been using vim on the rest of my programming life, I wanted to shift to vi editing mode on terminal by using: set -o vi. But it seems there is a learning curve here too. Here is my simple question:  How to clear the terminal in vi mode?  On a parallel note, am I right if I assume that every (at least the most used) command in emacs mode has equivalents in vi mode? Clarification of similarity: There seems to be a similar question --  Which asks to force Ctrl+l as well to work in vi mode. But clearly, it doesn't clarify whether is an existing/default way of clear-screen operation, in vi mode!!  So, I reckon its a different question. P.S. : Update: As @Gilles pointed out, the Ctrl+L seem to work in command mode of vi style editing. That means we have two possible ways to clear the screen of a terminal in vi mode:  From the default insert-mode, we should press Esc to move to command-mode and then use Ctrl+L.  Use the answers in  to get Ctrl+L working directly in insert-mode   My current question requests to explain any method other than the two, possibly native to insert-mode.


What is the origin of the Emperor of Mankind?

While attempting to answer  about the Rebirth of the Emperor, I realised I don't know much about his first-birth.  The  has a section describing his birth and the reasons behind it, but it has no citation...       So what do we actually know about His origin?   Is the Lexicanum correct or is this just someone's best guess as there is no citation to corroborate it?


Baked metal material looks different than material preview

I have tried a lot of different settings, but I'm not sure how to make the material preview to bake the same. I've tried mixed shaders in world settings with diffuse and glossy, but they all turn out pretty dark. Thank you in advance ! It's a metal material, and I have so far 5 lights.  This is what it looks like in material preview:  Rendered view:  Current Bake settings:  Current World settings:


Making my first bash script, can't get the cd command to 'stick.'

For my first bash script, I want to create something that's really been annoying me: when I switch folders, I want the contents of that folder to be displated automatically. I tried adding this following code to ~/.bashrc:  alias go='cd; ls'   Simple enough I thought! Not so. While typing go /etc does indeed list the contents of /etc, my working directory hasn't actually changed, I'm still in the one I was in before. How do I remedy this?


I get a JavaScript error when attempting to post a question on Stack Overflow, using IE8

I am unable to post questions on Stack Overflow. I am using IE8. Is that a supported browser? As far as I can remember I was able to post questions earlier. Here's the JavaScript error:     "JSON is unidentified"   full.js Line 108   Code:0 Char 405   URI:


How to login into Drupal 8 using the REST API?

Ok i've spent my whole afternoon trying to get this running:   Setup a freshly installed Drupal 8 Activate the WebServices (HAL, HTTP Basic Auth, Restful Webservices, Serialization) Install REST UI Module Activate the REST Module for e.g. /user/{user} under Configuration -> Web-Services -> REST (i'm activating GET/POST with json and basic_auth) Fix the permissions so all "authenticated user" can access the Restful Webservices for User content   I basically followed this tutorial to get there:   Then i go forward and create a POST call looking like this:  GET http://{my-host}/user/testing  // with following headers obj {   'Authorization': 'Basic dGVzdGluZzptYXN0ZXI=',   'Content-Type': 'application/json' }   Well, the user "testing" really exists, i've checked this like 100 times. The Basic Authorization user i'm giving him (i obfuscated the data here since it is still plain text base64) - believe me, it is a correct credential too, even from the admin user.  The path is correct too with /user/{user} - but he is always returning a 404 Not Found ...? Why?  Well what i try to achieve is a login trough a REST API call - so i can login with an existing drupal user from an external system (auth0). As far is i understood from the docs this should all be possible with the /user/{user} endpoint - but i'm totally unsure because i couldn't find any working examples for it.


Help recovering Nikon raw files (.nef) from corrupted sd card

I have come back from a family vacation looking forward to put my hands on this problem: I was shooting with my Nikon D600 camera and a dreadful message showed up (card err). I changed to a different card and had no problem with it for the rest of the trip.  The problematic card is a Kingston 32GB which contains some hundreds of RAW (.NEF) files. I have tried different programs so far without success: Lazesoft, ZAR, PhotoRec, testdisk. Windows sees the drive (e:) but doesn't allow to explore it. Testdisk shows a partition error message. Photorec, after 5 hours hasn't found anything.  This is really desperate, I can't imagine missing those photos. Ideas?


I have a problem that's kind of weird. The numpad operation keys (+, -, *, /) dont work as expected. I cant do the math when transforming objects.   For example hitting G while object is selected, then X then 2 + 2 doesn't move the object 4 units on the X axis, instead - it moves it 22 units, like if that + hit was ignored.   I've noticed it when moving from Blender 2.68 to later versions. (actually after installing 2.68 after the installation of 2.75, the 2.68 also works that way)  Is there anyway to get back the old functionality?


Get projection or calculate latitude and longitude from a central point

I have a central point (with longitude) and I measure a radius (30º) degrees, I have a distance of 200 KM. Problem: know with precision what is the latitude and longitude of the point that is 200 km from a known point that it is at 30º degrees (heading) a determined central point. Try to find it in several places, and I didn't find it. They even ate me and gave me an answer to a question that I asked previously, only using a library, and I used to research or summarize it all by hand.


I have two monitors on one PC (extend option). The colour for two monitors are different, how can I make the colour settings.  E.g For monitor A, the colour is as shown in the below image    and for the monitor B, the colour is as shown in the below image


As a retention incentive, I was granted stock (about $60,000) in my employers privately owned company.  The stock grant went through payroll in December and had FICA taken out but no income tax. I anticipate a huge tax bill when I file ($20,000+).  Is the IRS going to clobber me for this? Will I have penalties for not paying quarterly taxes or be forced to pay quarterly taxes this year even though this was a one-time thing? Should I do anything now or handle it all when I file?  Someone asked "Can you confirm this is outright stock grant and not the more commonly granted options?". I'm not sure what the difference is. I was given 200 shares of restricted stock. The value of those shares shows up on my paystub and W2 as income paid to me. From the outside, it looks like my company paid me a $60,000 bonus and then I gave it back to them for 200 shares.     Mod note - this question was merged from  as the OP lost access to the account that posted it and wanted to make changes.


Black Holes - behaviour of masses perpendicular to accretion disk

If the accretion disk is on the (x,y) plane of an orthogonal reference frame what happens to objects outside the (x,y) plane (e.g. objects on the z-axis) ? In other words why is the accretion disk a disk and not a sphere (as space in 3D). Thank you. Twelvetones


Expression or word that means "a tactic is stolen by the enemy and used against oneself"

I'm looking for something different from . I'm considering a scenario in which one intends to use a certain tactic to defend oneself against some enemy. However, before the tactic can be used, it is stolen by the enemy and used against the person him/herself.  Example: Alex told the plagiarizer he'd sue them unless they delete the video. However, that only prompted the plagiarizer to ______ with a defamation lawsuit.


Philosophers who challenged the premise of the question of "the meaning of life"

One thing that gets talked about often when people talk about philosophy (perhaps a stereotype of what philosophers do) is the question of the meaning of life, "what is the meaning of life?" One concern I have with this question is that it's not entirely clear to me what the question means or whether it makes sense, since meaning comes after life. You first have life, and then develop a conception of "meaning". So perhaps it doesn't make sense to ask for what life means because the idea of "meaning" is something we have just created while living. I don't really know if my point is clear, but I was wondering if any philosophers have written about something like this, perhaps challenging the premise of the question of the meaning of life. I'm very interested to read about how philosophers either defend the validity of this question or criticize it.


Lightning Web Component embedded in Visualforce Page via Aura Component and App not displaying

I am writing a lightning web component that is going to be used in Salesforce Classic, Lightning Experience and an Employee Community. It does not HAVE to be a lightning web component - I could use a traditional Aura Lightning Component if I must.   However, what I am finding is that the visualforce page does not work, even when the lwc component is embedded in a aura component that is then used with Lightning Components for Visualforce. I can see from the documentation  that using a lwc directly from within visualforce is not supported, but I was under the impression that it may work if wrapped in an aura component.   My question then is this:  Has anyone had success having a lwc wrapped in an aura component display successfully within Visualforce? Or is this completely unsupported behaviour?


Where is the scientific evidence to support the assertion that nothing can travel faster than light in vacuum?

It is true that so far, nothing has ever been observed to travel faster than light in vacuum. However, just because nothing so far has yet to travel faster than light does not mean that nothing in the universe can travel faster than light.   Are there solid evidence supported by experiments to support the assertion that nothing travels faster than light?


If $f$ is bounded by $M$ on $[a, b]$ and if the restriction of $f$ to every interval $[c, b]$ where $c$ in $(a, b)$ is Riemann integrable, then $f$ is Riemann integrable and that $\int _c^b f \to \int_a^b f$ as $c \to a+$.  I am stuck with this problem.


What is the most efficient/elegant way to parse a flat table into a tree?

Assume you have a flat table that stores an ordered tree hierarchy:  Id   Name         ParentId   Order  1   'Node 1'            0      10  2   'Node 1.1'          1      10  3   'Node 2'            0      20  4   'Node 1.1.1'        2      10  5   'Node 2.1'          3      10  6   'Node 1.2'          1      20   Here's a diagram, where we have [id] Name.  Root node 0 is fictional.                          [0] ROOT                           /    \                [1] Node 1          [3] Node 2               /       \                   \     [2] Node 1.1     [6] Node 1.2      [5] Node 2.1           /            [4] Node 1.1.1   What minimalistic approach would you use to output that to HTML (or text, for that matter) as a correctly ordered, correctly indented tree?   Assume further you only have basic data structures (arrays and hashmaps), no fancy objects with parent/children references, no ORM, no framework, just your two hands. The table is represented as a result set, which can be accessed randomly.   Pseudo code or plain English is okay, this is purely a conceptional question.  Bonus question: Is there a fundamentally better way to store a tree structure like this in a RDBMS?    EDITS AND ADDITIONS  To answer one commenter's ('s) question: A root node is not necessary, because it is never going to be displayed anyway. ParentId = 0 is the convention to express "these are top level". The Order column defines how nodes with the same parent are going to be sorted.  The "result set" I spoke of can be pictured as an array of hashmaps (to stay in that terminology). For my example was meant to be already there. Some answers go the extra mile and construct it first, but thats okay.  The tree can be arbitrarily deep. Each node can have N children. I did not exactly have a "millions of entries" tree in mind, though.  Don't mistake my choice of node naming ('Node 1.1.1') for something to rely on. The nodes could equally well be called 'Frank' or 'Bob', no naming structure is implied, this was merely to make it readable.  I have posted my own solution so you guys can pull it to pieces.


Why am I not getting 10 rep for an upvote?

Recently I answered  question on Stack Overflow. Instead of getting 10 reputation, it got 3. I didn't get any downvotes on that answer. I am bit confused at this stage. Can anybody explain what is going?


I have database of 800GB average but when I run a backup job (of system and user databases) the transaction log backup reports a failure: There is not enough space on the disk.  When I make a transaction log backup the size of this would decrease or do I need a shrink (after or before run a backup)?


Why do we say kith & kin and not kin & kith?

Why do we often say "kith and kin" and not "kin and kith"? I was taught to believe that family comes first and the other later, and I do still believe in what I was taught.