File list command line (hidden and subfolders)

I need to get a text list of all the files (hidden and visible) off a hard drive, subfolders included. Ideally the list would have the filename, path, size, and creation (or last modified) date if possible. Can someone please tell me what command I need? Also, is it possible to have this created as a .csv file or something similar for use in Excel?  I am not super proficient with Ubuntu so an explanation of each command item would also be greatly appreciated.


Windows Server 2012 - What type of memory do I have?

My Windows Server is running on 3gb of memory right now, and I would like to upgrade to 16gb.  However, I don't know what type of memory to buy.  I know that the notches in the physical RAM are different depending on the memory type.  Is there a way in Windows Server 2012 to detect the type of memory so I get the correct one?


Removing Windows (10), get/keep key for later reinstall?

I've been dual booting Linux (Kubuntu) and Windows for a couple of months now, and I'm thinking of making a full switch, since I haven't booted Windows since I started dual booting.  However, I don't want to forsake Windows, in case I were to need it later for a specific application.  Is it possible to delete Windows, but keep the product key so that you can reinstall Windows later?


Deriving the conditional distributions of a multivariate normal distribution (more than 2)

(This is a follow up on another question .)  I struggle when I condition several variables on another. My question is how to find the distribution of: $(y_1, y_2|y_3)$ where  \begin{align} Y &\sim MVN_3(μ, Σ)  \\[5pt] \text{where } μ &= (0,0,0)  \\[5pt] \text{ and covariance matrix is }Σ &= \begin{bmatrix}1 &\rho_{12} &\rho{13}  \\ \rho_{12} &1 &\rho_{23}  \\ \rho_{12} &\rho_{23} &1 \end{bmatrix} \end{align}  Can I use the same form as in the question above?   The other way would also be interesting: $(y_1|y_2, y_3)$...


Where are the audio files of "Voice Memos" stored on macOS Mojave?

There are no options for Voice Memos application to specify path to save.  Searching for the recording name also did not reveal any file in Finder.  I wish to edit the audio file in Audacity but I need to find the saved file first.


Can DNS Servers give nearest IP to resolvers?

I know what happens when I request example.com, but I wish to know is it possible to dispatch nearest server IP determined in a zone file to client? is there any DNS Server doing this? Just like CDN but for IP connections


How should "do my homework" questions be closed? (Missing "demonstrate minimal understanding")

Just recently,  question was posted. Here's the body of the question:     Write a function called highlight() that prompts the user for a string. Your code should ensure that the string is all lower case. Next, prompt the user for a smaller 'substring' of one or more characters. Then replace every occurrence of the substring in the first string with an upper case. Finally, report to the user how many changes were made (i.e., how many occurrences of the substring there were).      What would a script for this be?   This is basically a "do my homework for me" style question. In the past, I would have voted to close this question for lacking minimal understanding and moved on. However, it looks like this close reason was removed, and I'm having difficulty figuring out which alternative to use (if at all).  Here were some of the close reasons I was considering, and ultimately decided against since they didn't seem to precisely match:   Duplicate of    I sort of doubt there exists a precise duplicate of this question -- the question is a fairly specific request for some code. I could maybe link to a duplicate question that answers a part of the original (for example, checking if the string is lowercase), but it wouldn't answer every aspect of the problem. Problem that can't be reproduced/typographical error    This sort of matches, since it asks the user to produce a SSCCEE, but doesn't really match since there isn't even a problem to begin with (and closing a question because I couldn't "reproduce" a non-existent problem feels a bit silly to me) Unclear what you're asking    It's pretty obvious what the user is asking -- I could produce a 5 line script in about 20 seconds that precisely matches his spec. Too broad    The text for "Too broad" states that "There are either too many possible answers, or good answers would be too long for this format". This doesn't apply to this question -- once again, the answer I could give would be fairly short and would closely resemble solutions other people would give.   So, what should I do here? Am I misunderstanding how the close reasons should now be used? Should I use the "other" close reason and explain that the OP should have put in more effort? Should I simply downvote, perhaps leave a comment, and move on? Or is the new policy to embrace these kinds of questions and just post an answer?


How can I prove this inequality  $$|\log(1+x^2)-\log(1+y^2)| \leq |x-y|$$  where  $x, y \in (0,+\infty)$. I'm trying but not getting any idea how to show.  Please someone help.


I have a question about simple field extensions.  For a field $F$, if $[F(a):F]$ is odd, then why is $F(a)=F(a^2)$?


Finding if a linear transformation exist

I have to following question which I find hard to solve.  Is there a linear transformation from $\mathbb{R}^5$ to $\mathbb{R}^4$ such that: $T:\mathbb{R}^5→\mathbb{R}^4$ Such that: $\text{ker}T=\{(x,y,z,w)\in \mathbb{R}^5 \mid x=2y $ and $ z=2t=3w\}$ Define it on a basis of $\mathbb{R}^5$  Now I understand that I need to complete the basis to $\mathbb{R}^5$ with the standard basis, but I don't know how. From there, after I found that basis, I can prove that a linear transformation exists (and only one, such that $T(Xi)=Yi$. Your help is appreciated, thank you.


I have been pondering on this over the last couple of days. I'm currently writing a web application (actually adding a screen to an existing, extensive application). I know that using "tables" for layout is a big no-no. But in this app, all of the pages use tables for layout. I decided to do my new page using divs instead.  But I came across 2 hurdles.    A lot of the layout stuff that I need to do were already done on the other pages and if I  use divs instead, I cant reuse any of that (CSS's and JS and that kinda stuff). That leads to more work and pushes out my completion date. Some of the more complex parts of the layout are really difficult to do using divs and are really easy to do using tables. Maybe its just me being "old-school"y as I am not much of a web/html kinda guy (I get by).   So, why can't I use tables? I'm not trying to be argumentative, just want to see if there are any compelling arguments beyond the "Its the right thing to do" type stuff. I know it is the right thing to do. I'd like to know why?


Timestamp retrived with `date -r file` does not fit the time order of commands

I was playing around with the command date to create timestamps and profile the execution of a script. I decided to set four of them, named t1 through t4. For t2 I created an empty file whose last modification time I could use at a later stage to retrieve the stamp.  As a test I launched the following line:  t1=$(date +%s.%N) && t2=$(date +%s.%N) && touch t3 && t4=$(date +%s.%N)   When reading the values stored in the variables/files with  echo $t1 ; echo $t2 ; date -r t3 +%s.%N ; echo $t4   I obtain  1552985555.199182223 1552985555.200921201  # t2 1552985555.199194549  # t3 1552985555.204244831   There I was surprised to see that t3<t2, that is the file t3 appears to have been created before the variable t2 that has been defined earlier.   This behaviour is reproducible (I make sure to remove the file t3 before each repetition). Once in a while. though, I get the expected time order:  1552985629.214695802 1552985629.216438952  # t2 1552985629.295196920  # t3 1552985629.300037794   Both date and touch are from GNU coreutils 8.12. For the rest: Ubuntu 14.04 LTS, GNU bash 4.3, filesystem ext4.  Would someone please double-check this evidence, point to oversights and suggest solutions? In the end the aim is to monitor the development of a script in a consistent and correct way   Addition: for example these are 20 repetitions launched 1 second apart: the same output is in one line, so please look at the second and third column  1552986458.449690567 1552986458.451507586 1552986458.451223453 1552986458.454980321 1552986459.462222634 1552986459.464054243 1552986459.463223485 1552986459.467449036 1552986460.474568039 1552986460.476331886 1552986460.475223518 1552986460.479723115 1552986461.486642776 1552986461.488337967 1552986461.487223550 1552986461.491586674 1552986462.498636420 1552986462.500441307 1552986462.499223582 1552986462.503847530 1552986463.510775519 1552986463.512552869 1552986463.511223615 1552986463.515951772 1552986464.522958303 1552986464.524715464 1552986464.523223647 1552986464.528149986 1552986465.535135630 1552986465.536956933 1552986465.535223679 1552986465.540370390 1552986466.547042343 1552986466.548551235 1552986466.547223712 1552986466.551542698 1552986467.558193986 1552986467.560011358 1552986467.559223744 1552986467.563421722 1552986468.570405064 1552986468.572197220 1552986468.571223777 1552986468.575637535 1552986469.582805473 1552986469.584617345 1552986469.583223809 1552986469.588061790 1552986470.595186569 1552986470.596950654 1552986470.595223841 1552986470.600317667 1552986471.607334711 1552986471.609094157 1552986471.607223874 1552986471.612469522 1552986472.619539297 1552986472.621338541 1552986472.619223906 1552986472.624619165 1552986473.631362828 1552986473.633185880 1552986473.631223939 1552986473.636591552 1552986474.643786598 1552986474.645547837 1552986474.643223971 1552986474.648885524 1552986475.656067174 1552986475.657817777 1552986475.659224003 1552986475.661214859 1552986476.668232234 1552986476.670022104 1552986476.671224036 1552986476.673411532   created with  while :; do    rm -f t3   t1=$(date +%s.%N) && t2=$(date +%s.%N) && touch t3 && t4=$(date +%s.%N)   echo $t1 $t2 $(date -r t3 +%s.%N) $t4   sleep 1 done


Does restoring database clear buffer cache and stored proc cache

on our development server, we refresh database (restore from production backup) every week. my question is does restore db clear its buffer cache/stored procedure cache from sql memory? Does it have the same/similar effect of  DBCC FREEPROCCACHE and DBCC DROPCLEANBUFFERS  Thanks.


Is RFLP markers are dominant or codominant?

there are several markers used in molecular biology,. marker analysis. RFLP is most commonly used marker which having several advantages. is RFLP marker co-dominant or dominant ?


I need to prove that if $D$ is dense in $X$ and $X$ has no isolated points, then $D$ has no isolated points. I managed to prove that if $A\subset X$ is open, then $A$ has no limit points, but can't seem to make use of that. My attempt was to prove that $X = D'$, since $\overline{D} = X$, so that would imply $D \subset D'$, but it's not working out... Any tips?


I am writing a program that takes a user input and depending on their answer gives them a different answer. How do I use a string that the user entered with an if - else statement?  I have this so far:  import java.io.*; import static java.lang.System.*;  import java.util.Scanner;  class t1_lesson07_template{       public static void main (String str[]) throws IOException {                Scanner scan = new Scanner(System.in);                System.out.print("Hello, welcome to the companion planting guide. ");               System.out.print("Lets get started! To begin, just input the desired plant in the box to learn what plants to grow with it!");               String plant = scan.nextLine();               if (plant == "Asparagus") {                 System.out.print("Tomatoes, parsley, and basil.");               }        }  }   I am wondering about the syntax for the if statement in this case.


I heard a sportscaster say this. Since gerunds are preceded by possessive pronouns, this would have to be a present participle. (him, who is going back).  I do think, however, that the gerund (his going back) would have been more appropriate. Can someone tell whether this is wrong usage, gerunds are preceded by objective pronouns in informal speech, or why he chose him here. Can you use the objective to put emphasis on the person rather than the action itself? I am aware of the fact that some might be annoyed by my repeated questions regarding this topic but I have not been able to answer this despite having looked at various sources, covering this topic.


Have 3prong dryer cord and 4prong dryer outlet.how do i chane it to work how much and show me pics n videos

How to change 3prong to 4 prong dryer cord How to wire a 3prong outlet where a 4 prong is currently?


Generate unique integer like hash from ID python

I want to generate a unique integer from member IDs. I have a table like: id   name   code 1    john   182734987  The ID is unique so the code based on the ID should be unique too. How can I generate the code? NOTE: I don't want to convert ID to String and make a hash from String. Just Int(ID) to unique random numbers(Code). And of course the GUUID/UUID is not my solution. because I need to use the ID as something like seed.


Counting overlapping matches with Regex in C#

The following code evaluates 2 instead of 4:  Regex.Matches("020202020", "020").Count;   I'm guessing the regex starts looking for the next match from the end of the previous match. Is there any way to prevent this. I have a string of '0's and '2's and I'm trying to count how many times I have three '2's in a row, four '2's in a row etc.


Does SOQL return Id, RecordType fields always, without requesting?

I have seen Salesforce returning Id field, and RecordType field in SOQL. for example,  Account acc = [select Name from Account limit 1]; System.debug('Returned Id: '+acc.Id);   Are these fields always returned by SOQL? Or at certain times (tried this in EXEC Anonymous). Any other fields returned without being requested? Wondering if there is any documentation reference available for this behavior?


Install Windows XP .iso on USB (Linux, Lubuntu)

I have windows xp iso file, and I want to upload it on a usb (pendrive).  Then I want to install the Windows on my computer.  How can I burn the windows .iso file on my pendrive?


2560x1080 resolution in Ubuntu 16.04 with opensource ATI driver

I am trying to get my new 21:9 monitor to work with Ubuntu 16.04. So far I've tried using xrandr, but with little success. When i try to set it at 2560x1080 the screen glitches horribly and is unusable. The screen usually defaults to 1920x1080.  The closest thing I've found on the internet was using it at 2160x912. I'm using a ATI 6950 via HDMI and stock opensource driver. I've tried upgrading the kernel to 4.8 and 4.9 but still no luck. Also tried an HDMI -> DVI adapter. Still nothing.  I've also tried upgrading and it still didn't do the trick.  Thanks.


Installing Ubuntu OpenStack requires at least five machines with two disks, two of which have two network interfaces. Why?

Installing Ubuntu OpenStack requires at least five machines with two disks, two of which have two network interfaces (NICs). Install Ubuntu Server on one of the machines with two interfaces.  Why do I need two disks? What if I have 5 machines with 2TB capacity each but on a single disk? Would this setup not work i:e ? Why do we need 2 interfaces on two machines? I understand for one machine, one interface connects to the internet and the second to the local network. But why do we need 2 interfaces for the second machine?


JasperReport Exception NoClassDefFoundError: org/apache/commons/collections/ReferenceMap

I want to create reports with jasper in java by using eclipse, but I get awalys this exection:        Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/ReferenceMap      at net.sf.jasperreports.engine.util.JRSingletonCache.<init>(JRSingletonCache.java:53)      at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.<clinit>(JRXmlDigesterFactory.java:181)      at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:205)      at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:170)      at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:154)      at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:146)      at at.campus02.bp2.knapp.main.testReport.main(testReport.java:27)     Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.ReferenceMap      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)      ... 7 more     This is my code:    import java.util.HashMap; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperExportManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.view.JasperViewer;  public class testReport {   public static void main(String[] args) {   // TODO Auto-generated method stub    try {    String stringPath = System.getProperty("user.dir") +"\\init\\Blank_A4.jrxml";    //System.out.println(stringPath);      HashMap<String, String> param = new HashMap<String, String>();        JasperReport jr = JasperCompileManager.compileReport(stringPath);    JasperPrint jp = JasperFillManager.fillReport(jr, param);    JasperExportManager.exportReportToPdf(jp); //   JasperViewer.viewReport(jp);       }    catch (JRException e) {    // TODO Auto-generated catch block    e.printStackTrace();   }  } }     These are the JARs and class folders in the project:   commons-beanutils-1.9.2.jar commons-collections-3.2.1.jar commons-digester-1.8.jar commons-logging-1.2.jar groovy-all_2.0.1.jar jasper-compiler-jdt-5.5.9.jar jasperreports-4.0.0.jar   I hope someone can help me with the problem. Thanks!


Keep sharp edges with Subdivision Surface Modifier

I would like to keep the angle 90 in the area indicated as I apply the subdivision surface modifier on the object. I appreciate help.


$x$ is a positive real number.  $n,\, k$ are positive integers.  I tried showing this by assuming an integer $t$ such that ${x} + t/n < 1$ and ${x} +(t+1)/n > 1$ , where $t \in [0, n-1]$ is an integer.     I got $$\sum = n[x]+(n-1-t) + [x]$$ can't go any further.


How do I could transfer a software from OneDrive folder in my Host to my VM terminal of Ubuntu server 20.04 and then install it?

The scenario I have is: I am using Workstation 10 and my laptop, and running a virtual machine Ubuntu server 20.04 I have my terminal open, I am using Windows 10 pro as host and on my desktop I have the OneDrive folder, both are configured with brigde Network connection and they can ping each other, what I need is from the terminal of my Ubuntu server virtual machine to transfer that software that is in my Host's Desktop (Windows 10) and then install it using the terminal, what would be the commands that allow me run this task? As software you can give me an example and give me the steps how to do it.


i want to install csh but the following error appears

I need to install Kdevelop and csh package on my ubuntu 13.10 os but couldn't locate package and following errors appears;  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package


I'm firing off a Java application from inside of a C#  console application. It works fine for the case where the Java application doesn't care what the "default" directory is, but fails for a Java application that only searches the current directory for support files.  Is there a process parameter that can be set to specify the default directory that a process is started in?


When referring to a noun, when does the gender matter?

In most languages, gender plays a much more important role than in English. Nevertheless, it is possible to refer to a noun using its gender.     The ship was launched on 4 October 1853. Tayleur left Liverpool on 19 January 1854, on her maiden voyage.   How does one know that "ship" is feminine? Are there masculine nouns?


Do lycanthropes need to do damage in order to inflict the curse?

I'd like to clarify whether were-creatures need to do damage in order to have a chance of inflicting the lycanthropy curse.  Considering the creature stats in isolation it would appear the answer is no. E.g. For the werewolf (all other lycanthropes are similar):     Bite ... Hit: 6 (1d8 + 2) piercing damage. If the target is a humanoid, it must succeed on a DC 12 Constitution saving throw or be cursed  with werewolf lycanthropy.   From the above, the possibility of being afflicted applies whenever the bite attack hits. So if damage reduction or immunities kick in, and the target takes zero damage, there's still a possibility of getting the curse.  However, page 206 of the MM also states:     Curse of Lycanthropy. A humanoid creature can be afflicted with the curse of lycanthropy after being wounded by a lycanthrope.   The keyword here is wounded, which implies that the attack must actually deal damage.  The problem though, is that as far as I can tell: wounding isn't established in game terminology. Can we assume it really is synonymous with damage > 0? Or am I reading a little too much into the explanatory text?


Install newer package version from trusty-backports

In an ubuntu 14.04 system with the latest updates:  $ ansible --version ansible 1.5.4  $ apt-cache policy ansible ansible:   Installed: 1.5.4+dfsg-1   Candidate: 1.5.4+dfsg-1   Version table:      1.7.1+dfsg-1~ubuntu14.04.1 0         100 http://ca.archive.ubuntu.com/ubuntu/ trusty-backports/universe amd64     Packages  *** 1.5.4+dfsg-1 0         500 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages         100 /var/lib/dpkg/status    How can I install the newest version of ansible (1.7.1) from trusty-backports ?  Is it in general safe to use the packages from trusty-backports ?


I'm preparing a presentation on an overview of algebraic and differential topology, and my introduction includes some motivational material on Degree Theory. I have two fundamental and invaluable mathematical consequences of this theory so far:   Homotopy/Homology of Spheres Brouwer's Fixed Point Theorem   Do any others come to mind?


How to create "list of pairs" from an even-length list in python?

I have a list like this, with an even number of elements: straight_list = [1, 2, 3, 4, 5, 6]  There are six items in this list. I'd like to group them into three pairs, like this: paired_list = [(1, 2), (3, 4), (5, 6)]  What's the best way to do this? More generally, given a list with 2*n items, what's the best way to create a list of n pairs? I have come up with the following: straight_list = [1, 2, 3, 4, 5, 6] paired_list = []  for i in range(len(straight_list)//2):     j = i*2     pair = (straight_list[j], straight_list[j+1])     paired_list.append(pair)      print(paired_list)  # [(1, 2), (3, 4), (5, 6)]  I also can make it work like this, though it's a tongue-twister: [tuple(x) for x in list(np.array(straight_list).reshape(len(straight_list)//2,2))] # [(1, 2), (3, 4), (5, 6)]  Is there a more elegant, functional, and/or "Pythonic" way to create this list of pairs? (In some ways, this is almost an inverse of this question: )


Is there a tool to make custom character sheets?

Is there a tool out there, preferably free, specifically for making custom, system-agnostic character sheets? I'm looking for something a little more focused than a general program like PhotoShop/GIMP, Illustrator/Inkscape, or Word.


I am not sure if one exists but is there a conjugate of the following:  $$\sqrt{3}+\sqrt{2}-\sqrt{5}$$  I attempted it many times but can't get anything.


I have the following grep  grep -r --color -L "class public interface" * | grep "authenticate"   I want it to bring back files that don't contain "class public interface" anywhere in the file, but contain "authenticate".  But what I have is not working as expected.There is a file that I know should come up as it does not contain "class public interface" but contains "authenticate"  Is there something wrong in my command?


The Parallelogram Identity for an inner product space

For a given inner product space $V$, I would like to prove the inequality $$\|\mathbf{x}+\mathbf{y}\|^2 + \|\mathbf{x}-\mathbf{y}\|^2 = 2(\|\mathbf{x}\|^2 + \|\mathbf{y}\|^2).$$  We see that $$\|\mathbf{x}+\mathbf{y}\|^2 + \|\mathbf{x}-\mathbf{y}\|^2 = \langle\mathbf{x}+\mathbf{y},\mathbf{x}+\mathbf{y}\rangle + \langle\mathbf{x}-\mathbf{y},\mathbf{x}-\mathbf{y}\rangle,$$  which by linearity $$=\langle\mathbf{x},\mathbf{x}+\mathbf{y}\rangle + \langle\mathbf{y},\mathbf{x}+\mathbf{y}\rangle + \langle\mathbf{x},\mathbf{x}-\mathbf{y}\rangle - \langle\mathbf{y},\mathbf{x}-\mathbf{y}\rangle.$$  I've been trying to figure out how to go about this proof using linearity in the second argument of an inner product, but my textbook does not say that linearity necessarily holds in the second component. If it does, how would I go about the rest of this proof? If not, should I be potentially using some aspect of conjugate symmetry to prove this statement?


Note: the below is outdated, search was changed once again:    For a few reasons, we recently changed the guts of how search works on our sites.  If you keep up, you've probably read somewhere that we were using .  There are a few areas that utilize search that all got a replacement tonight:   Search itself (box in the upper right) Related Questions (to the right of a question) Titles (when asking a question, this finds similar questions that may have already been asked)     As of now, we've moved search over to , specifically the  flavor.  We invite you to try it on all sites in the network, for example here's the search pages for the trilogy:         As with all the features we add, it's better with feedback, please use the search and post feedback here (quality, issues, good/bad results?).  We'll be watching the next few days to make tweaks as we go.  Of course, if you're able to break it, post that too - we'll be watching and adding awesome as fast as we can.


I am mostly new to Latex. I was looking for a template which I like. The problem is I don't know how to obtain that. Here is one. This one looks very challenging for a new one like me. I will really appreciate any suggestion.   \documentclass{article} \usepackage{listings}% http://ctan.org/pkg/listings \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{changepage,lipsum,titlesec} \usepackage{enumitem} \usepackage{underscore} % Allows literal underscores \usepackage{fixltx2e} % Allows \textsubscript{} \usepackage{graphicx} \usepackage{titling} \usepackage{color} \usepackage{pdfpages} \usepackage{tikz} % For diagrams \usepackage{hyperref} \usepackage{fancyhdr} % For headers and footers \usepackage{geometry} \usepackage{mathtools}   \geometry{  a4paper, % Change this if you intend to print on a different paper size, such as letter paper.  total={210mm,297mm},  left=20mm,  right=20mm,  top=30mm,  bottom=30mm,  } \pagestyle{fancy}  %Settings \newcommand{\courseName}{COURSE101} % Insert course name here \title{\courseName: Unit 1} \author{Your name} \date{} % If you'd like to have a date, place it here  % Headers and footers. See documentation for 'fancyhdr' package for more information. \lhead{\courseName} % Left header \chead{} % Center header \rhead{} % Right header \lfoot{} % Left footer \cfoot{\thepage} % Center footer \rfoot{} % Right footer  % Lecture block settings. \lstset{   basicstyle= \normalfont,   mathescape=true, % Allows for adding equations.   escapechar={~}, % You may wish to change this symbol, if you use ~ in your notes a lot.   breaklines=true, % Automatic text wrapping.   columns=fullflexible }  \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0.4pt} \renewcommand*\rmdefault{ppl} %Set font  \begin{document} \maketitle \thispagestyle{fancy}  \section*{Example lecture block} \begin{lstlisting} Main bullet point     Sub-point (use tabs)     Enclose regular LaTeX with the ~\textasciitilde{}~ (tilde) symbol: ~\LaTeX~     Enclose math with the ~\$~ symbol: $ \frac{1}{2} $ \end{lstlisting}  % For each lecture/session/workshop, use one of these blank \section and lstlisting blocks \section*{Lecture title} \begin{lstlisting}  \end{lstlisting}  \end{document}


I would like to use something, maybe a. b. or (1) (2) to show which equation correlates with which part of the table. Also it will be nice to be able to reference the various models in my discussion. I looked at another thread but their tip of using /label{} didn't really work.   Here's the code:  \documentclass[twocolumn]{article}  \usepackage{booktabs, makecell, tabularx} \renewcommand\theadfont{\normalsize} \renewcommand\theadgape{} \setcellgapes{2pt} \newcolumntype{L}{>{\raggedright\arraybackslash}X} \usepackage{caption} \usepackage{textcomp} \usepackage{graphicx} \raggedbottom \usepackage{amsmath,geometry} \usepackage{rotating} \usepackage{booktabs, makecell} \usepackage[referable]{threeparttablex} \usepackage{siunitx} \usepackage[skip=1ex]{caption} \usepackage{upquote} \usepackage{balance} \usepackage[lite]{mtpro2} % Times Roman math font  \begin{document}  $\text{CEO Salary} =    \beta_0 +    \beta_1\,\text{return} +    \beta_2\,\text{bonus} +    \beta_3\,\text{stock awards} +    \beta_4\,\text{option awards} +   \beta_5\,\text{other compensation}    \beta_6\,\text{age} +   \beta_7\,\text{age sq} +   \beta_8\,\text{male} +   \beta_9\,\text{industry} +   \beta_{10}\,\text{volume} $ \label{eqn:first}    $\text{Total Compensation} =    \beta_0 +    \beta_1\,\text{return} +    \beta_2\,\text{age} +    \beta_3\,\text{male} +    \beta_4\,\text{interaction term?} +   \beta_5\,\text{industry}    \beta_6\,\text{volume} +   \beta_7\,\text{age sq} +   \beta_8\,\text{male} +   \beta_9\,\text{industry} +   \beta_{10}\,\text{volume} $ \label{eqn:second}   \end{document}


Ubuntu 14.04 Unity not functioning, no launcher

Yesterday I turned my computer to find that the launcher was missing.   In addition, I could not using ctrl-alt-t would bring up a blank white screen.   The only terminal could be found by clicking ctrl-alt-f1.   I used ccsm to turn on Unity.   Unity panel service was working.   I installed tweak tool.   I did all the troubleshooting I could find related to this subject.   Nothing would work.   I ultimately reinstalled Ubuntu 13.10.   Also, I do not have an nvidia graphics card.   I have an intel integrated graphics controller.     Some of the troubleshooting I tried were found:


sudo apt-get update cancelled half way through, now cannot run sudo apt-get update

I'm a new user of ubuntu. It's been working fairly well so far. Today I've tried doing 'sudo apt-get update' and it's freezing after fetching data. This is the output:   sudo apt-get update  Hit:1 http://archive.canonical.com/ubuntu xenial InRelease Hit:2 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]     Hit:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease                      Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease Get:6 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [92.2 kB] Fetched 187 kB in 0s (225 kB/s)     Using sudo apt-get clean and then sudo apt-get update, I get the following issue:   E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/   Using sudo rm -rf /var/lib/apt/lists/lock and then sudo apt-get update I get a new issue:   ** (appstreamcli:3466): WARNING **: Exception: Unable to get write lock on /var/cache/app-info/xapian/default: already locked     sudo fuser /var/cache/app-info/xapian/default    shows nothing.   file /var/cache/app-info/xapian/default    shows   /var/cache/app-info/xapian/default: directory


Is there a function to test if objects match other objects?

I have an object like this but more complex:  var obj =  {   a: foo,   b: bar,   sub:{     a: foz     } }   and then I have a conditionals based on the keys and values, for example:  {   a: ^f,   sub:{      a: z$   } }   Is there a method for checking the conditionals are true for all of the objects properties. I'm also fine with chome-only-features or something like underscore. I can also re-structure the structure of my conditionals.


Comma separated tax terms, with "and" before last item

I have a taxonomy called "location". I'm outputting a comma separated list of these taxonomy terms for a post. This is fine, but I don't know how to split the second-to-last and last items with "and" instead of a comma.   Here is my code. Is there a way to do it using the counter maybe?  $locations = get_the_terms($post->ID, 'location');  $locations = array_values($locations); for($cat_count=0; $cat_count<count($locations); $cat_count++) {    echo $locations[$cat_count]->name;    if ($cat_count<count($locations)-1){     echo ', ';   }  }   Note: This code is in the sidebar for a category archive template and inside a WP_Query, so it's all within the loop. The WP_Query is outputting multiple posts of a custom post type called Projects and I'm trying to list the location tax terms for each one.


I need to generate random alphanumeric string (5 or 6 char) in order to put it to specific field. Could anyone pls provide me solution ? Have tried several methods described in another posts on stack but without success.  Have tried something like that:  public static String generateString(Random rng, String characters, int length) {     char[] text = new char[length];     for (int i = 0; i < length; i++)     {         text[i] = characters.charAt(rng.nextInt(characters.length()));     }     return new String(text); }   but no idea why random is passed as an argument and what should I provide for it while calling method


Installing 32-bit libraries to run Second_Life_3_8_2_303583_i686

How to install 32-bit libraries to run Second_Life_3_8_2_303583_i686 on a 64-bit 16.04?  gaius@gaius-HP-Pavilion-dv6-Notebook-PC:~$ sudo apt-get install lib32ncurses5 Lettura elenco dei pacchetti... Fatto Generazione albero delle dipendenze        Lettura informazioni sullo stato... Fatto lib32ncurses5 is already the newest version (6.0+20160213-1ubuntu1). 0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati. gaius@gaius-HP-Pavilion-dv6-Notebook-PC:~$   gaius@gaius-HP-Pavilion-dv6-Notebook-PC:~$ sudo apt-get install lib32z1 Lettura elenco dei pacchetti... Fatto Generazione albero delle dipendenze        Lettura informazioni sullo stato... Fatto lib32z1 is already the newest version (1:1.2.8.dfsg-2ubuntu4). 0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.


Appending entry to array is causing all previous entries to be changed to latest entry

I'm trying to take a 3 digit number then generate children in the following order: a. 1 is subtracted from the first digit b. 1 is added to the first digit c. 1 is subtracted from the second digit d. 1 is added to the second digit e. 1 is subtracted from the third digit f.1 is added to the third digit Don't subtract if 0 and don't add if 9. Here's the code I'm using to do it where p is an array of 3 digits def generate_children(p):     children = []     i=0     for x in p:         if x != 0:             child1 = p             child1[i] = child1[i]-1             children.append(child1)             print(children)         if x != 9:             child2 = p             child2[i] = child2[i] + 1             children.append(child2)             print(children)         i+=1     return children  If I give this a parent of 345 it should return [245,445,335,355,344,346] at the end. However when I run it with the print statements it gives me below. Why does every entry in the array become the same after being appended? [[2, 4, 5]] [[3, 4, 5], [3, 4, 5]] [[3, 3, 5], [3, 3, 5], [3, 3, 5]] [[3, 4, 5], [3, 4, 5], [3, 4, 5], [3, 4, 5]] [[3, 4, 4], [3, 4, 4], [3, 4, 4], [3, 4, 4], [3, 4, 4]] [[3, 4, 5], [3, 4, 5], [3, 4, 5], [3, 4, 5], [3, 4, 5], [3, 4, 5]]


find ... | xargs grep --> colors missing for output of grep

This way I get colored output:  grep class testdata.py    Since this gets set in my .bashrc:  alias grep='grep -n --color'   But if I search like this, I see no colored output:  find -name '*.py'  | xargs grep "class"   Has someone an idea how to enable colored output of grep if called via find ...| xargs grep?


Is it possible to write all mathematical formulas in a separate file and add them in main file on-demand?

Consider this scenario:  I have a report to write and I want to write all mathematical formulas in a separate file and then add them in the main report file on demand (i.e. include/import/add/call a certain formula in specific part of my report).  Please note that I'm not talking about referencing or citation (\ref or \cir) to that formula. What I want, is to have the formula itself in the generated pdf. Somehow like a function call in programming languages!  Is this possible?


How to implement hashcode() for a specific Java class?

I'm learning about hashcode() and equals() methods in Java. I know exactly what is hashcode() method. I tried to understand how to implement hashCode() method for a specific class. For example, if I have class Book, and it has these fields: id, book_name, author_name, etc.   And I implement the equals() method and 2 books are equals when book_name and author_name are equals. And now I want to adapt hashcode() method to be consistent.   So how to implement hashcode() method for this situation? After that I want to add the books into a HashMap. Any feedback will be appreciated.


Quick way to tell if an installed application is 64-bit or 32-bit

I've got a third-party application (in this case Cognos Data Manager) installed on 64-bit Windows Server 2003.  Is there a quick way to determine if an application has been built/compiled as a 64-bit application or as a 32-bit application?  By default a program wanted to be installed in Program Files (x86). I'm guessing that means that it is a 32-bit version. I had to get it to talk to an Oracle database and to get that working I eventually reinstalled it in a directory path which didn't have brackets "(" and ")" in it, as that was causing a problem. I've also installed both 64-bit and 32-bit Oracle clients.  For future reference, I'd like to be able to type a command "xxxx fred.exe" and have it tell me whether fred.exe would be needing 32-bit or 64-bit setup (eg ODBC data sources etc).


What is the physical significance of negative sign in Faraday's law of induction?

People say that negative sign has something to do with Lenz's law. I understood that negative sign is used to get correct sign of emf according to definition of emf. But how we can relate negative sign with Lenz's law definition? If there is any relation Lenz law then how do you come to know that with only a negative sign?


How do i convert a binary int into a string?

I'm looking to convert an integer representation of binary into a string. i'm not allowed to use bitwise operations. when i converted the decimal integer value into that integer binary representation, i could've put the digits in a string and reverse, but i'm searching for a more elegant way.  Any ideas?


My bountied question is likely not to have a answer that works. But there is an upvoted answer that doesn't actually answer the question

I don't care if the bounty disappears as what I want is a working answer. Since it's unlikely that the question will/can be answered, how can I indicate that the only answer that is on the question is wrong. I've put a comment on it, but that sort of disappears in "add / show more comments" collapsed area. The primary problem is that's it's been upvoted despite being wrong.  What I'm concerned about is that the answer will have automatically have a marker on it as having gained the bounty (by default) and that may mislead future readers into thinking that it's a correct answer.   The irony is that the answer is a good one, but not to my question.    Update: the question got a couple of answers that though don't work in my use case, could work for others  (i.e. they are not 100% answers) so the question of awarding is now resolved.


Hi I have the following problem:  Let $R$ be a ring and $S\subset R$ multiplicatively closed and $M$ be an $R$-module. Show: $M$ is flat $\Leftrightarrow S^{-1}M$ is a flat $S^{-1}R$-module.  I think I can show $"\Rightarrow$" but for $"\Leftarrow"$ I don't know how to start. Can someone help me please?


Sorry of the messy conf file. I have been trying everything, so it's become a mess. I want to enable SSL and redirect all traffic to https. Currently, with the below conf file, I can navigate to HTTP with no issues. HTTPS just redirects back to HTTP. If I uncomment line 5, then the browser simply says too many redirects. Any help is appreciated.   UPDATE: Based on the comment below, I updated the conf file. Same issue. The minute I add return 301 I get too many redirects error.       # Redirect all variations to https://www domain server {   listen 80;   server_name name.com www.name.com;  # return 301 https://www.name.com$request_uri; }  server {   listen 443 ssl;   server_name name.com;    ssl_certificate /etc/letsencrypt/live/name.com/fullchain.pem;   ssl_certificate_key /etc/letsencrypt/live/name.com/privkey.pem;    # Set up preferred protocols and ciphers. TLS1.2 is required for HTTP/2   ssl_protocols TLSv1 TLSv1.1 TLSv1.2;   ssl_prefer_server_ciphers on;   ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5;    # This is a cache for SSL connections   ssl_session_cache shared:SSL:2m;   ssl_session_timeout 60m;    #return 301 https://www.name.com$request_uri; }


Partial hyphenated wildcard sub domain dns records

What are the correct DNS records for {any}-the-sub.example.com? While avoiding  CNAME *.example.com  For extended subdomain {any}.the-sub.example.com that would be something like:  the-sub.example.com     A       0.0.0.0 *.the-sub.example.com   CNAME   the-sub.example.com   However same doesn't apply when using hyphen {any}-the-sub.example.com. nor the *-the-sub.example.com or *the-sub.example.com wont work right?


'Sarah and Jane's philosophy of life' or 'Sarah's and Jane's philosophy of life'?

I am not sure. I want to say 'Jane's and Sarah's etc' but the 'etc' being both's, is it written 'Jane and Sarah's etc.'? And is this always the case or are there exceptions?   Thanks


I have a question that has been bothering me for quite some time. In second order logic sometimes there is an indication that a variable can be both bound and free. The simplest example I can give is using the variable $v_0$ and the constants $c_0, c_1$ who are not equal to one another. How does one interpret the following formula. $$(v_0=c_0)\wedge \left[ \exists v_0 (v_0 = c_1)\right]$$  I see a few possible interpretations:   The statement is not actually valid because variables cannot be both bound and free. The formula will always be false because $(v_0=c_0)$ restricts $v_0$ such that there cannot exist a $v_0=c_1$ The formula is true when $v_0=c_0$ because one essentially treats the free version of a variable differently from the bound version such that even though $v_0=c_0$ in this particular instance, it still theoretically could be that a variable $v_0$ equals the constant $c_1$ and thus the existence clause is satisfied as well.   I also recognize that it could be something completely different from any of these that I have not thought of yet, I was just curious if there was an accepted way to handle variables which are both free and bound because I have not found any satisfying answers as of yet.


Inaccurate visit count for referring sites.  Example from     Also saw some 441 on  and


Verb for removing someone's incorrect belief or notion?

I'm trying to recall a specific (and interesting) verb, which I'm 90% sure exists. The verb means, roughly, to make someone aware of something, to open their eyes. But it's used in a particular way: in the sense of relieving someone of their prior, mistaken views (perhaps by revealing some new evidence, or pointing out something they simply hadn't considered before). Examples:  "She _______ him of [some notion he held] by pointing out [something]."   "Seeing the reality of how they lived _________ me of any [conservative/socialist/whatever] leanings I might have held."


Class II isolated power supply (wall wart) -- referencing the output to mains neutral?

If you connect the negative terminal of a Class II (isolated) wall-wart-type power supply to the neutral of the mains circuit feeding the wall wart, will that cause any damage or hazards that I should be aware of, besides the wall-wart's + terminal being considered a "live" mains wire at that point (as its now mains-referenced)?  Would the results be different if a switching wall-wart was used instead of an iron-core one?  Update: this application is being wired to the interconnect circuit on hardwired smoke detectors, which is the reason it's neutral-referenced -- it seems that all interconnected hardwired smoke detectors use the '9V on interconnect wire with respect to neutral = alarm' convention -- this only works if your supply for this is neutral-referenced.  Obviously, this'd be in a sealed box where wayward fingers, tongues, etal couldn't get at it, and I was planning on removing the barrel plug anyway as it's a hinderance to chassis wiring.


Is Shamir's Secret Sharing Scheme insecure for larger field?

According to , if you are using shamir's secret sharing scheme with a field of order $p$, "High values of $p$ are risky because Eve knows that the chance for $f(x)\pmod{p}=f(x)$ increases with a higher $p$". Is this true? It seems wrong.


I have bought a PRIMERGY TX100 S1 Server with a trial version of Windows Server 2008 R2 Web Edition.  My internet connection with a static IP is very very fast (about 50 mega bit per second) for both downloading and uploading.   My site serves text based contents only, no streaming.  How many simultaneous requests can be handled by a medium class server on the average? Can it handle at least 1000 simultaneous requests?  Edit 1  For those have experiences in this field, they might have a rough prediction.


Which values of $\alpha, \beta > 0$ make $f(x,y)=\frac{|{x}|^{\alpha}|{y}|^{\beta}}{x^2 + y^2}$ continuous?

Find which values of $\alpha, \beta > 0$ make $f: \mathbb{R^2} \rightarrow \mathbb{R}$ continuous.       $$ \left\{  \begin{array}{c} f(x,y)=\frac{|{x}|^{\alpha}|{y}|^{\beta}}{x^2 + y^2}, {\ \ \ }(x,y) \neq (0,0) \\  0, {\ \ \ }(x, y)=(0,0) \end{array} \right.  $$   The limit of $f$ in $(0,0)$ has to be 0 for $f$ to be continuous. Let's consider the sequence  $\{x_k\} =\{ (\frac{1}{k},\frac{1}{k})\}$.   It converges to $(0,0)$ and its points are all different from $(0,0)$, so if $f$ is continuous in $(0,0)$ then $\{f(x_k)\}$ must converge to 0.  $\{f(x_k)\}=\frac{|{\frac{1}{k}}|^{\alpha}|{\frac{1}{k}}|^{\beta}}{(\frac{1}{k})^2 + (\frac{1}{k})^2}=\frac{{\frac{1}{{k}^{\alpha}}}{\frac{1}{{k}^{\beta}}}}{\frac{2}{k^2}}=\frac{k^2}{2{k}^{\alpha + \beta}};$    So if $\alpha + \beta =2$ then $\{f(x_k)\}$ converges to $\frac{1}{2}$, and if $\alpha + \beta <2$ then $\{f(x_k)\}$ does not converge. We have then that if $\alpha+\beta \le 2$ $f$ is not continuous. What I can't prove is that if $\alpha+\beta \gt 2$ then $f$ is continuous (I don't even know if it's true).


While at least some answers from every question seem to have been up-voted as a "helpful" answer:   about 49% of questions have score of 0 or 1. another 21% of questions have a score of 2.   Most questions seem to have an answer or two with score +5. Is it that we have a lot of fluff questions and not useful ones? Or perhaps it just seems more natural to vote for answers than questions? If we want the most useful info on Stack Overflow to filter to the top, how can this disparity be fixed?  I think this may cause real problems for people getting the badges which require +25 or +100 votes on questions.    I like a lot of the feedback I'm seeing. Two problems are highlighted:   The work flow doesn't promote voting for questions the way it promotes voting for answers. One solution: when a user answers a question, the system should invite them to vote for the question.  If someone cares enough to answer a question, then they care enough to vote for it as well. Users with less than 15 reputation cannot vote for questions or answers. Is this warranted?  Maybe these users could provisionally vote for questions and answers and those ratings would only take effect when the user reaches 15 reputation?   All I ask is this. As you browse Stack Overflow, when you see a good question: vote for it.  If everyone does, then this problem will disappear.


How to start custom applications as root automatically on boot?

I have made a sound based installation using OpenFrameworks and Puredata that runs on Ubuntu 12.10.  I need the installation to run continuously for days together. When the power goes off, i need the apps to start automatically on reboot.  My problem is, I have got everything installed in the root account because that is how few of them would run. So i need the system to run those programs as root without asking for a password.  Somehow it sounds very silly to me but I guess there must be a way to do this.  Any help/pointers are appreciated. Thank you


Reading passwords without showing on screen in Bash Scripts

How can one read passwords in bash scripts in such a way that tools do not show it on a terminal? (Changing font to black-on-black is easily worked around by copy & paste, so it's not solution.)


How to show the inequality for $\int_{0}^{\pi/4}\tan^n(x) dx$

I can't seem to figure out the inequality option, I substituted n=2 for the answer bit is there any elegant way of getting it?


How to find the encoding of a python3 bytes object

I know that bytes.decode gives a string and string.encode gives the bytes, but only if the correct encoding is used.  Suppose I have a bytes object encoded using gb18030 If I try to decode it using big5:  >>name = '深入 damon' >>b1 = name.encode('gb18030') >>> b1.decode('big5') UnicodeDecodeError: 'big5' codec can't decode byte 0xc8 in position 2: illegal multibyte sequence   Is there some way the encoding can be found from a bytes object? I couldn't find any useful api in this regard in python3docs.


How can I get the Client IP of the java RMI programming?

Can anyone explain how I can get the client IP of the Java RMI programming, including a sample of how to use it?  I have looked up the , but it is hard to understand.  I would like to print the client IP on server


What flash should I get for my Samsung mirrorless?

I want to start and try using a flash for my photos. Since I never used more than build-in flashes of compact cameras, I am completely new to the topic of choosing the right flash for me.  After some reading I'm still not quite sure of what I should or can even use. The different camera manufacturers are using slightly different hot shoes/methods of communication between flash and camera, is that right?  I own a Samsung NX300m. Does that mean I can only use flashes explicitly built/modified for NX cameras? Since of course nobody wants to make flashes for cameras that do not get produced anymore, in that case there wouldn't be a big range of flashes for me.  Does anything of this change if I use a remote trigger?


In his lightsaber duel with Vader on the Death Star II, Vader throws his saber at the scaffolding Luke is on. This causes Vader to lose track of Luke.  While he searches for Luke, they have a short conversation. Luke is standing still, apparently hiding in dim light.    Vader can also sense Luke's feelings and realizes that Leia is his sister. When he says that she will turn to the dark side, Luke emerges with a speed that suggests he was crouching down…behind some stairs a few feet away from Vader (his cloak seems to be in the bottom right of the screenshot).    The choreography here has always confused me because there doesn't seem to be anything under the staircase to hide under, nor does there seem to be as much darkness as the earlier shots suggest. Further, Luke emerges just a few feet away from Vader in a direction he was looking a moment before. How did he miss Luke under there?  How was Luke hiding in his duel with Vader on the Death Star II?  Full scene:


Why Do Pin Numbers Sometimes Look Like Reference Designators?

Sometimes when I look at schematics like the Beagleboard and the Raspberry Pi, some of the pin numbers look like reference designators, like C10. And what makes it even more confusing is that there is a capacitor named C10. Why would they do this for some components and not for others where they use regular numbers like simply 1,3, etc.? Why would they do this? Do they refer to them like,"the C10 pin" for pins and, "the capacitor at C10", or something similar to that? Is there any specific or special reason to do this?


Is there the opposite of click event in Jquery?

I made a search bar with search icon. I want this, when I click the #forminput, #search will return white; and after I click another object, #search will return lightgray color. How can I do this? My codes:  $(document).ready(function(){ $("#forminput").click(function(){ $("#search").css("color", "white"); }); });   Have a nice day.


Proper python syntax of while loop with multiple or conditions

I am learning Python by trying to code up a simple adventure game. I have created a while loop to get a choice of direction from the user and I am clearly not doing it in an efficient way. I have created a while loop with multiple 'or' conditions to keep looping until the user provides one of the four valid directions as input. Unfortunately this extends the line beyond 80 characters with the tab. What is the best way to either break this line onto two lines so as not to get a syntax error or write this sort of loop more efficiently?  while direction != "N" or direction != "S" or direction != "E" or direction != "W":     if direction == "N":         print "You went N to the Mountain Pass"         return 'mountain'      elif direction == "S":         print "You went S to the Shire"         return 'shire'      elif direction == ...   When I try to break the first line into two, no matter where I break it I get  a syntax error...    File "sct_game1.py", line 71   while direction != "N" or direction != "S" or                                               ^ SyntaxError: invalid syntax   I'm open to suggestions on how to break the line successfully, or even better, writing this loop more efficiently.  Thanks.


What short story has an “alien” invasion described point-of-view-style, where the aliens are revealed to be humans?

From what I remember, the story is a POV telling of someone describing an alien invasion in detail.  As the story progresses, the aliens themselves are described by the narrator. However this is done in such a way as to obscure the fact that the narrator is describing humans who have invaded his/her home world (i.e. their skin was smooth and they had claws and teeth etc.)  Does anybody know of such a story?


Values of $\sum_{n=0}^\infty x^n$ and $\sum_{n=0}^N x^n$

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


The question is clear. Can "Wow!" be a sentence?  Imagine a hypothetical context where I'd utter something like this:     Wow! What an amazing idea! I should think about a way to push this fix.   We see "wow" in casual speech often. It bears punctuation marks (typically an exclamation mark, denoting the rising intonation) and a capital letter — just like all "regular" sentences.  On the other hand, neither Wow! nor What an amazing idea! contain any verbs. These certainly don't have any parts of speech in the other sentence, so what are they? Are they sentences or clauses? In other words, can "Wow!" be a sentence despite its lack of [any implied] verbs, and subsequently lack of any distinguishable predicates?  Please back up your answers with references.


I am having trouble installing Lubuntu 18.04 on a Dell Inspiron 6000 laptop with a scrubbed-clean HD and 2 GB of RAM. I downloaded the OS on a Windows 7 machine and transferred it to a 4 GB thumb drive and tried it on the laptop. It came up no bootable media. I then went back to the PC and unpacked the download on the thumb drive. Same answer. What do I do now? Please understand--I am not a techie! Also--there is no operating system on the Dell I. 6000 so I cannot instruct anything from it. I have found instructions for resetting the BIOS on this computer to be very confusing


How to refer to (or avoid) a numbered entity in section title

I need to refer to a model described elsewhere, from a section title, like  \section{Analysis of model X}    One way of referring to a model is to create a new counter, and then write  \section{Analysis of \cref{grandmodelofeverything}}   But now hyperref will complain because of invalid token, and it does not look good in the TOC either, especially since the titles of the sections the describe the models are more descriptive than  \section{Model 1}   They are currently like  \section{Adding the effect from Y processes}   Do I need to invent semi-descriptive long names like "The model by Authors with this modification" or can I live with these quirks?


Returning tokens for the 10 token limit: which ones?

Splendor rules regarding tokens (gem coins) state:     A player can never have more than 10 tokens at the end of their turn (including jokers). If this happens, they must return tokens until they only have 10 left. A player can return all or some of those they’ve just drawn....   That phrase "those they've just drawn" is used ambiguously.  1) Does the phrase "those they've just drawn" mean you can return only those drawn on that turn?  That doesn't make sense, but the phrase could be interpreted that way (or not). Or does it simply mean that you aren't required to hold newly acquired coins for a turn?  2) Does the phrase "return all" mean that the player can return literally any number of their coins to the bank without purchasing, no matter when they were acquired?  3) Can you return coins without purchasing, even if you are below the 10 token limit?


Will the little character ever do anything if u drop enough candies in candy box 2?

I've almost dropped 8,000 candies on the ground and he just keeps noming and I'm just wondering he actually does anything.


How to avoid jQuery on() method bind twice?

I want to trigger a customized job on window resize after certain data is loaded:  function doJob() {      ...  }  DataLoaded() {    $(window).on("resize", function() { doJob(); }); }   However DataLoaded can be occured multiple times, how can I make sure doJob() only bind once ?      PLEASE NOTE, bind once, but can be executed multiple times, so $("...").one("...") is not my goal   IMO:        set a global variable isBind to check if method is bind, which looks redundant   $(window).off("resize").on("resize", ....), I'm not sure if calling off() first is a safe way


I have created an alert box which will output the details from the form I am now wondering how I start the Java validation part so that if the form is filled in  correctly an alert box with the form details will show however if it is wrong instruct the user to fill in the invalid boxes.  HTML   <form id="foo" onsubmit="formAlert(); return false;" method="POST">
First Name<input type="text" id="first_name" value="" />

Last Name<input type="text" id="last_name" value="" />

Phone Number<input type="number" id="phone_num" value="" />

<input type="submit" value="click me" onclick=""/>
 </form>   Java Script   function formAlert() { alert_string = ''; var userName = document.getElementById('first_name').value; var userLastName = document.getElementById('last_name').value;  var phoneno =  document.getElementById('phone_num').value; if(userName === "" || userName === null){   alert("Please enter name"); } if(userLastName === "" || userLastName === null){   alert("Please enter lastname"); }   else if(phoneno === "/^(?([0-9]{3}))?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;" || phoneno === null){       alert("Please enter Phone number");     }  else{  alert_string += userName + " ";  alert_string += userLastName;  alert_string += phoneno;  alert(alert_string);   } }


Are there any stats on the user agents that visit the SE sites? So you can tell how many browsers/devices are used to visit SE sites.  Not only will this be interesting, but useful for stackapp developers to see how much of the SE community use the browser/device their app needs and how far their app has gone.  15 upvotes is quite a lot and yet answer from anyone!!!


avoid duplicate values in array php for multidimensional array

My array contains duplicate values ...  i tried using array_unique function but its not working..  Code below...     while($rowTable = mysql_fetch_array($resultTable)) {  $selQuery = "SELECT * FROM dump_hotelamenities WHERE HotelCode='$rowTable[HotelCode]' LIMIT 5"; $resultQuery = mysql_query($selQuery);  while($row=mysql_fetch_array($resultQuery)) {     echo "
 Hotel Code : " .$row['HotelCode'];     //$info = array();     $info=(str_replace('YES','',$row['PAmenities']));     $info_new=array();     $info_new =array_unique(explode(';',$info));      echo "
 Hotel Features : " ;      print_r ($info_new);      echo "
";   } }    OUTPUT:   Array ( [0] => Small pets allowed under 5 kg [1] => Small pets allowed under 5 kg [2] => Large pets allowed over 5 kg [3] => Large pets allowed over 5 kg [4] => Wheelchair-accessible [5] => Wheelchair-accessible [6] => Car park [7] => Car park [8] => Garage [9] => Garage [10] => Mobile phone coverage [11] => Wired Internet [12] => Wi-fi [13] => Transfer service [14] => Secure parking [15] => Room service [16] => Laundry service [17] => Hotel safe [18] => Cloakroom [19] => Lift access [20] => Newspaper stand [21] => Supermarket [22] => Bicycle storage [23] => Sun terrace [24] => Gym [25] => Newspapers [26] => Restaurant [27] => Non-smoking area [28] => Photocopier [29] => Sun loungers [30] => Children& [31] => apos [32] => s play area [33] => TV lounge [34] => Sauna [35] => Massage [36] => Spa treatments [37] => Year of construction - 2008 [38] => Number of floors main building - 10 [39] => Apartments - 25 [40] => Studios - 1 [41] => Connecting rooms [42] => Connecting rooms [43] => Apartment complex [44] => Nearest Bus / Metro Stop - 25000 m [45] => Ski slopes - 2000 m )


Here is the formula for the variance : $\sigma^2=\dfrac{\sum(X-\mu)^2}{N}$.  My question is why do we SQUARE the difference between the mean and the variable, why don't we use absolute value ...The result will be different!  I saw online that it's to make the value positive, but like why don't we choose 4 or 6 as exponent?   Hope someone can enlighten me!   Thanks :) Ayman


Why I obtain a white page when I import a backup of an old WP blog on my local web server?

I am pretty new with WP (I came from Joomla) and I am finding some problem loading an old WP backup on my local Apache.  I have take the directory containint an old blog (named blog) and I have put it inside my local www directory of my Ubuntu local system.  Then I have import the database backup on my local MySql server and finally I have change the wp-config.php file changing the information about my local database.  The problem is that when I try to open the address:  http://localhost/blog/   in my browser it appear a withe page and I can't see no output  Why? What could be the problem? How can I try to solve it?  Tnx  Andrea


Minimizing estate tax on US assets of non-resident alien

There is an estate tax of 40% on US situs assets of non-resident aliens. Is there any way to minimize this tax using, for example, trusts? Can someone elaborate on this?


Transit visa for F 1 student back from India to US via London

I have a question and a concern regarding transit visa requirement for Indian Citizen travelling back to US via London while on F 1 Visa. I have one semester left and I am visiting my family this winter. I will be coming back on 19th of January from New Delhi to Boston via London. I have visited UK's official website but I am not clear with conditions for Transit visa considering that I have a connecting flights with same airline (landing on LHR on 19th January at 5:40 pm and schedule to take off on 20th January at 9:20 am). It would be great If somebody here can comment on this and provide me with some detailed information about this.   Thanks


different maps for different zoom levels in openlayers?

I'm trying to create a mixture of maps that will load in depending on zoom level However, it will only show as one map to the user, and depending on the zoom level, it will load in a different map  I really like open street map data when zoomed out, and skobbler maps when zoomed in, so would like to create this one combined map  I think from what i've read its possible, but all the examples i found refer to detail layers   any examples or pointing in the right direction would be appreaciated


Cutting output from sudo in a bash script

I am writing a script that is supposed to ask for user's password, do some stuff with it and eventually pass it to sudo. This is roughly how it looks:  echo "input password: " read -s password printf "\n"  echo $password | sudo -S <somecommand> | <what i need>   It all works as it should, but sudo outputs "[sudo] password for user: " whenever I call the script. I would like to cut this, but leave all other output. This is what I've tried for :  grep -v -e "[sudo] password for user: " awk -F"[ ',]+" '/[sudo] password for user:/{print $2}' sed -En "s/[sudo[ password for user: '(.*)',/\1/p"   Obviously, since I am here none of this worked. Does anyone have an idea on how to do this?


how to update time automatic and insert into MySql without opening of the time page by using ajax and php? Without using CRON JOBS

''' <?php      $page = $_SERVER['PHP_SELF'];      $date_for_hold = date("Y-m-d");     $now = time();     $today = strtotime('18:11:35');     $tomorrow = strtotime('tomorrow 23:16:00');     if (($today - $now) == 0) {         $refreshTime = $today - $now;         //MySQL Queries...         echo "Data Inserted"; }     else{         echo "Not Inserted"; }  ?>  ''' I need this without opening the page and time runs in the backend, when time reaches to 5:00 a.m it will automatically insert data into the mysql database.


I can't install Skype for Ubuntu 12.04. Downloaded from official Skype site, but cant install. All the time same mistake something about i386. What’s wrong?


What is the meaning of "Dick" when it is a person's name?

Some people are named "Dick". What does "Dick" mean when it is a name?


Acceptance in PhD Program With Unfortunate Background

So here is my situation: I am applying for a PhD for Fall 2022. Not too long I found ago that my ex boyfriend had used my name online to post all kinds of crap. This includes revenge porn, as well as racist and anti-semitic comments. I have filed police reports, but all of this is still attached to my name (which is a very rare name btw) and available online, and probably will never go away. I am so scared of not being admitted because of this. Is there anything I can do?


How can I make my white LED strip light warmer?

I recently bought warm white LED strips and installed them. Even though they are considered "warm" white (3000K), the light is very white and not close to incandescent light and it hurts the eyes.   Is there any way to make the light warmer? maybe hacks like painting the strip LED's?


Normalizing the solution to free particle Schrödinger equation

I have the one dimensional free particle Schrödinger equation  $$i\hbar \frac{\partial}{\partial t} \Psi (x,t) =  -\frac{\hbar^2}{2m} \frac{\partial^2}{\partial x^2} \Psi (x,t), \tag{1}$$  with general solution  $$\psi(x,t) = A e^{i(kx-\omega t)} + B e^{i(-kx-\omega t)}. \tag{2}$$  I'd expect that the solution is normalized:  $$ \int_{-\infty}^\infty |\psi(x,t)|^2 dx = 1. \tag{3}$$  But   $$|\psi(x,t)|^2 = \psi(x,t)\psi^* (x,t) = A^2 + B^2 + AB ( e^{2ikx} + e^{-2ikx} ), \tag{4}$$  and the integral diverges:  $$ \int_{-\infty}^\infty |\psi(x,t)|^2 dx = \frac{AB}{2ik} (e^{2ikx} - e^{-2ikx})\biggl|_{-\infty}^\infty + (A^2+B^2) x\biggl|_{-\infty}^\infty. \tag{5}$$  What is the reason for this? Can it be corrected?


I'm trying to create a template c++ Stack, and i'm having some issue with the linker. I've tried to put all the classes into one cpp file, and it works just fine, but the problem begin once I separate them into different files here's my classes  main class :  #include <iostream> #include "stack.h"  using namespace std;  int main() {     Stack<double>* st = new Stack<double>();     st->push(new Data<double>(10));      cout << st->pop()->getData();      return 0; }   stack.h :  #ifndef STACK_H #define STACK_H  #include "data.h"  template <class T> class Stack { public:     Stack():_current(NULL){}     void push(Data<T>* const);     Data<T>* pop();   private:     Data<T>* _current; };  #endif;   stack.cpp :  #include "stack.h"  template <class T> Data<T>* Stack<T>::pop() {     if(this->_current == NULL)     {         cout << "Empty stack." <<endl;         return NULL;     }     else     {         Data<T>* tmpPtr = this->_current;         this->_current = this->_current->getPrev();         return tmpPtr;     } }  template <class T> void Stack<T>::push(Data<T>* const data) {     if(this->_current == NULL) // Empty stack;     {         _current = data;         _current->setPrv(NULL);     }     else     {         Data<T>* tmpPtr = this->_current;         this->_current = data;         this->_current->setPrv(tmpPtr);     } }   data.h  #ifndef DATA_H #define DATA_H  template <class T> class Data { public:     Data(T data):_data(data){}     T getData() const { return this->_data; }     void setPrv(Data* const prev){ this->_prev = prev; }     Data* getPrev() const { return this->_prev; } private:     Data<T>* _prev;     T _data; };  #endif


Expectation that the Distance Between two Points in the Unit Disc is 1

On pg. 64 of David William's book Wrighing the Odds, there appears the following exercise:     Problem. Two points $A$ and $C$ are chosen independently at random in the unit disc $D$. Let $d$ denote the distance between them. Prove that $E(d^2)=1$, where $E$ denotes expectation.   We have the measure space $D$ with the Lebesgue measure $\mu$, so we can form the product space $D\times D$ with product measure $\lambda=\mu\times \mu$. For any real $r\geq 0$, we can consider the subset $S_r$ of $D\times D$ defined as $S_r=\{(a, b)\in D\times D: d(a, b)\leq r\}$. Then if $f$ denote the distribution function of the random variable $d^2$, we have $\lambda(S_r)=\int_0^r f dx$. This would give us $f$, and then one can calculate $E(d^2)$ by using the fact that $E(d^2)=\int_{\mathbf R}xf(x) dx$.  But the above approach is cumbersome. The author also seems to have something else in mind, for he has given as hint "use the pythagorean theorem to exploit symmetry".  Can somebody see a better approach? Thanks.


Can not update Bash on Debian 6.0 (Squeeze)

I can not update  on a Debian 6.0 (Squeeze) server to get rid of the discovered vulnerability:  bash --version GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)  apt-get update apt-get install bash Reading package lists... Done Building dependency tree Reading state information... Done bash is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.   Can I use Squeeze-LTS for this server just to update Bash? After one week I will be on another server, so I will not make any other updates.  uname -m x86_64  lsb_release -a No LSB modules are available. Distributor ID: Debian Description:    Debian GNU/Linux 6.0.5 (squeeze) Release:        6.0.5 Codename:       squeeze


Verification test for Ubuntu 18.04.3 LTS download

I just downloaded ubuntu 18.04.3 LTS.   The web site suggests running a given command on the terminal, whereupon the following answer should emerge:  ubuntu-18.04.3-desktop-amd64.iso: OK   However, the answer I get (without any chance or clue as to what to do) is:  shasum: ubuntu-18.04.3-desktop-amd64.iso:  ubuntu-18.04.3-desktop-amd64.iso: FAILED open or read shasum: WARNING: 1 listed file could not be read.   Incidentally, when I tried to install ubuntu 18.04.3 it all went fine until, just before finishing, a message popped up:      "it is not possible to install the bootloader; choose a different   device to install the bootloader on".   No matter which option I chosed (I also tinkered with the boot sequence to no avail), when re-starting my computer, it went to the already installed Windows 10. This OS is on a 256GB SSD drive, while I was recommended (not know the rationale behind it, though) to rather install Ubuntu on the 500GB HDD. Thank you.


What happens when a string literal is changed?

I want to change a string literal into all-uppercase one. Here is my code:      // a and b are the same literal      String a = "Test";     String b = "Test";     // now I want to change all b's letter      // into uppercases, but fail.     b.toUpperCase();     System.out.println("a = " + a + ", " + "b = " + b);     // print: a = Test, b = Test      String c = "Test1";     System.out.println("c = " + c + " , c.toUpperCase() = "                 + c.toUpperCase());     // print: c = Test1 , c.toUpperCase() = TEST1      // change letters of "Test" literal      // into uppercase and success     System.out.println("Test".toUpperCase());     // print: TEST   My question is:     1. b can't be changed into uppercase one, but c and "Test" can. Why?  What I know is:     1. a and b reference to the same object in string pool.     2. String is immutable, but it seems not relevant to this question.


Why does Bash implement time as a reserved word instead of a builtin?

Bash Reference Manual says     The use of time as a reserved word permits the timing of shell builtins, shell functions, and pipelines. An external time command cannot time these easily.    But it only compares reserved word time and external command time, and doesn't address the question:  Why does Bash implement time as a reserved word, instead of a builtin command?  What advantages can that give? What are other reserved words which can also be implemented as (builtin or external) commands? What are their advantages over their command counterparts? (Trying to figure out if their advantages are shared or specific to each of them)  For example,    the reserved word [[...]] versus the builtin command test or [ the reserved word select versus the builtin command read


Bat file for compiling unknown number of C files

I have some c files that I want to compile separately and link them together using a bat file. I will compile/link them using gcc.  The problem is that new c files might be added and I want the bat file to compile/link everything without knowing the exact number of files(without modifying the bat file).  Something like :  for X=1:number_of_c_files     gcc -c sourceX.c   and then link them together.   All the files  are named compile_to_cX.c , where X is a value from 1 to the number of c files from the directory.  Thanks in advance !


I am new to TeX/LaTeX. How do I install TeX on Windows (7)? It seems that there are many different implementations, so which one is best for my OS?


OpenSSL WARNINGS when using -purpose command

I created a self-signed certificate with OpenSSL. When using the -purpose parameter to examine the certificate I see some warnings in the output. Can someone explain this warnings ?  C:\OpenSSL\keys>C:\OpenSSL\bin\openssl x509 -in ca.crt -purpose Certificate purposes: SSL client : Yes SSL client CA : Yes (WARNING code=3) SSL server : Yes SSL server CA : Yes (WARNING code=3)


Decision for Ubuntu or Lubuntu on little bit Old notebook

Currently i have an Acer Aspire 2930 with 3 GB RAM,and according to the net,Lubuntu is the lightest Ubuntu derivative.  Can you guys tell me technically (But not to technical) how could Lubuntu become lighter than normal Ubuntu ? What are advantages and disadvantages of each OS ?  Should i choose Lubuntu or Ubuntu to be Dual-booted with Windows 7 on my Aspire ?  Sorry for this such question,i'm just new to Ubuntu


Can I write an alias that takes an argument?

I have some remote machines, where I need to compile some source code. What I normally do is write an alias, that says something like:  alias g++='g++ `pkg-config --cflags opencv --libs opencv`'   Then when I go to compile remotely, I would do g++ -o test test.cpp.  For whatever reason, Ubuntu wont let me do that. Instead, Ubuntu works, when I do:  g++ file.cpp -o file `pkg-config --cflags opencv --libs opencv`   But this means I cannot write an alias for g++. Is there a way I can write an alias that will take an argument? what should I do?


Badges awarded by page views (Famous Question)

The (gold) Famous Question badge has the description: "Asked a question with 10,000 views."  Aren't all users who ask a question going to acquire this badge eventually? I mean, it would have to be something seriously obscure to not pick up a few pageviews every-so-often and even very mediocre questions will get significant pageviews just from people looking to avoid duplicates.  It seems to me, anything based on pageview counts should apply a rolling window to the criteria. So the badge description would be "Asked a question with 10,000 views in 60 days" or similar.


How can I prove      $$\sqrt{2}^{\sqrt{2}^{\sqrt{2}^{\sqrt{2}^{\sqrt{2}...}}}}=2$$   I don't know which method can be used for this?


Running Oracle DB Server on RHEL with less memory

I have a VM/Hyper-V for RHEL 7 where I need to install Oracle DB Server (12.1.0.2.0) - Standard Edition (SE2) along with App server, apache, local LDAP and other products for Developer Coding  I want to run the Oracle with as less memory as possible, so that my VM is optimum. How to start a Oracle Server Instance with minumum memory


Inner Product on $\mathbb{R}$ and on $\mathbb{C}$

This is a question of the book Linear Algebra of Kenneth Hoffman.  Describe explicitly all inner products on $\mathbb{R}$ and on $\mathbb{C}$.  I think that if $<,>$ is one inner product on $\mathbb{R}$ (or $\mathbb{C}$) then $< ,>=K[,]$, where $[,]$ is the standard inner product. Is that correct?


Wordpress using varchar(255) for index with InnoDB and utf8mb4_unicode_ci?

I'm trying to learn a bit more about the details of proper database construction and ran across something that confuses me. In a current Wordpress installation, I'm finding varchar fields used for indexes which are longer than the 191 characters, which the documentation seems to say is the max. I'm running MariaDB 10.x which I believe matches up with MySQL 5.7, and the  confirms the limit when using utf8mb4_unicode_ci collation and compact as the format.  I'm finding varchar(200) and varchar(255) indexed fields, e.g. wp_postmeta, the field meta_key is varchar(255). Am I wrong or confused on this? The db is using the InnoDB engine. Thanks for any clarification.


I'm trying to set an alias for sudo !! in Bash. I tried alias sbb='sudo !!', but it interprets that as a literal  !! and prints   sudo: !!: command not found   If I use double quotes, it substitutes the double bang in the string itself, so that doesn't work.  Is there any way to make this work? Or an alternative alias? `


I can't run the black square program in OpenGL

I wrote this code in C++:  #include <windows.h>  #include <GL/glut.h>  void drawPoint() {     glBegin(GL_POLYGON);    glVertex3f(20, 20, 0);    glVertex3f(80, 20, 0);    glVertex3f(80, 80, 0);    glVertex3f(20, 80, 0);    glEnd();  }   int main(){      drawPoint();  }   The compiler should run the program, by showing a window with a black square.   But when I run, it doesn't execute anything. I use Eclipse, but I don't think the latter is the problem because I executed an example program this morning and it worked well. Can you help me? :)


Paradox - Special Theory of Relativity (edited)

I have been asked to retitle this question and I have been asked to edit the question to adhere to mainstream physics. And I simplified it. So here it is:  Two cars approach each other at the same constant speed relative to earth. Special theory of relativity (SPR) tells us that the clocks inside each car will run slower than an identical clock at rest. Most importantly, the clocks inside each car run at the same (slower) rate because they are traveling at the same speed. SPR also tells us that whenever relative motion exists between two inertial frames of reference, the approaching clocks will run at different rates.  Yet in this case the approaching clocks run at the same rate (as demonstrated above). How can SPR explain this paradox?


Where does a Topology student go after Munkres?

Firstly I apologize if this is a bit of a soft question, it's hard for me to ask this quite concretely so I do apologize if this post doesn't seem like I'm asking something immediately.    Let me explain a bit of my background, Topology is the area of mathematics that I enjoy doing the most by far, with regards to the books I've read, I've gone through most of the first 300 pages of Topology: A First Course by Munkres (I still have a few things after Seperation Axioms and stuff to go through). I've also read a bit of Willard's General Topology  I'm currently studying Algebraic Topology and Differential Topology (and Differential Geometry) on my own, and I'm thoroughly enjoying it, but currently it seems that Algebraic Topology and Differential Topology, don't use that much General Topology apart from Compactness, Connectedness and the basics. I've yet to see (in my limited knowledge of Alg and Diff Topology) any real use of things like Separation Axioms and deeper theory from General Topology.  E.g for Differential Topology if your topological space $M$ is second countable and Haursdoff, then you're good to go.   While I certainly have a lot more Differential Topology and Algebraic Topology to learn  (and I look forward to it), I also feel like I should learn a bit more of General Topology.  The reason I've given this long explanation (because I hope it will also help others studying Topology who have similarities), is because the path most Topology students follow is the following  $$\text{General Topology} \to \text{Algebraic Topology/Differential Topology}$$  in which one would usually read Topology A First Course by Munkres or a similar intro to general topology book, then follow that with something like Algebraic Topology by Hatcher and Differential Topology by Guillemin and Pollack and Milnors Topology from the Differentiable Viewpoint.    Now (finally) onto my two questions.    If I want to broaden my knowledge of General Topology, what book do I go to next after Munkres? Should I learn some Pointfree Topology (Frame Theory)?. Also I should mention that I don't want to specialize in General Topology. I hope to someday specialize in Algebraic Topology or Differential Topology/Differential Geometry, so would learning more about General Topology have any direct benefit to my studies of these subjects?


Let me paste code first:  <?php  $category = get_the_category(); $category_id = get_cat_id( single_cat_title("",false) ); $args = array(     'posts_per_page'   => 5,     'post_type'        => array('post', 'shows', 'hosts'),     'orderby'          => 'post_date',     'order'            => 'DESC',     'category'         => $category_id );  $myposts = get_posts( $args ); foreach ( $myposts as $post ) { ?>     <!-- My Markup was here --> <?php } if( function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>   Everything works fine except pagination (I mean pagenavi). Any suggestion?


Automatically move its associated objects when move one object

In Adobe Illustrator, if we create a graphic figure with multiple related objects, we may want them move dependently. Let me show you a case:    I created a figure with 3 circles and 2 segments, the 2 segments connected the 3 circles on their centers. When I moved one of the circles, saying the middle, what I wanted was the 2 segments still connected its center. However currently the result is they seem independent with each other.  How can I make it work?


On entire functions with prescribed zeros

I want to find an entire function with zeros at m+in where m and n are integers. I get a difficulty in making the index natural number for both m and n to write the infinite product. Please help me.


Generating correlated samples from bernoulli variables

I am trying to implement a program that samples from two identically distributed Bernoulli random variables, $X_1$ and $X_2$, such that they have a specific correlation coefficient, $\rho$. I found a post that almost does what I want to do:  However, the parameter $p$ of the Bernoulli distributions is dependent on $\rho$, i.e., I can't leave $p$ fixed and generate samples with a desired $\rho$. In theory, I do not see any reason why this should not be possible.


Should golden badges be awarded with some rep points?

Would it be a good idea to also reward users with rep points when they unlock a new golden badge?  Access to 100% of the moderation tools only happens at 10k points. Scoring that amount of rep is hard and takes time, reflecting the commitment of a user toward the community.  As many of you are aware, the FAQ states that access to the previous level of moderation is achieved at 3k points, and going from 3k to 10k is a really LONG LONG way.  Since golden badges also represent a higher commitment to the community and can be very difficult to get, I wonder if we should also reward a user with rep points (300? 400? 500?) to help him on his journey.  What do you think?


How does Hawking Radiation not violate energy conservation?

If Hawking Radiation is produced by particle-antiparticle pairs forming from the vacuum, with one particle being absorbed by the black hole and one escaping, how is the original energy required to create the pair not adding to the overall energy of the universe if the two do not annihilate?


I have a ring of vertices, and I would like to connect them with another edge together quickly.  I tried bridging 4 vertices together, but that took too long and made faces. Extruding with 'E' would also take too long. I couldn't find any way to do it before, but here is an example of what I would like to do:  How do I do this? I tried the bridge loop method, but it does all of the vertices at once, and it creates triangles, which I do not want either.


Can wizards really cast spells in armor?

I've just read the , and I'm not sure I'm up to speed regarding casting spells while clad in armor. The only mention I can find about this (page 79):     Because of the mental focus and precise gestures required for   spellcasting, you must be proficient with the armor you are wearing to   cast a spell. You are otherwise too distracted and physically hampered   by your armor for spellcasting.   Does this mean that a character who starts out with a single level fighter (or any other class with heavy armor proficiency) can from then on gain levels as wizard and forever more cast spells, without any penalty whatsoever, while wearing full plate?  I've played all editions of D&D, and this seems both a bit overpowered and very un-D&D-ish to me. Have I missed something?


Why are multiple simultaneous inferences problematic, but not multiple inferences across time?

It's often claimed that a good practice in statistics is to make adjustments for simultaneous inference to control so-called family-wise error rates.  So for example if we did 100 tests some would say we should use more stringent $p$-values to avoid making at least one error, perhaps by using a Bonferroni correction or something similar.  But if we performed those tests on different days, no one would care to make such an adjustment.  Why when we perform many tests at once is it important to control family-wise error rates but not if we spread them out?  In the latter case do we not simply accept that mistakes are going to be made, so why not in the former?


how to bind to a checkbox click inside a thead inside a table inside a div

I'm trying to bind to a checkbox click as described in title because I have a dynamic grid, which is pageable, and has a "select all" checkbox in the header. However, when fetching data for the grid, the select all checkbox in the header always gets replaced, so I can't bind to it directly. I've tried the following: var selectAllBox = $("#ItemSelectionGrid").find('thead').find('.k-checkbox'); selectAllBox.on("click", onSelectAllClick);  I'm just wondering if I could do something like: $('#ItemSelectionGrid').on('click', 'some way to select the descendent checkbox', onSelectAllClick);  which would always trigger that event even if the checkbox got replaced on a data fetch. Note that there are no other checkboxes in the thead element itself, so I don't necessarily need to select by class if it's faster to do it by type.


How to break AES/CBC/PKCS5 when key and IV are reused?

I'm doing a code review for a crypto solution that reuses the same key with a constant IV.  I want to demonstrate that this is not the right way to do things by figuring out the key and decrypting all of their test data.   I have access to lots of ciphertext. I know the same key is used. I know the same IV is used. Cipher is AES/CBC/PKCS5 Plaintext is 16 bytes. Ciphertext is 32 bytes (PKCS5 padding?) I can put whatever plaintext I want through the system and then get that ciphertext.   What's the high-level pseudo code or process to break this system?


How do the Iron Man suit thrusters work?

To fly like Iron Man does, a great deal of energy is needed. Stark solves this by inventing a miniature arc reactor with a new element powering it. Supposing the energy is there, how is it converted to thrust?


Error when installing Snort in Linux “Unable to locate package snort”

I am trying to install Snort in Linux Ubuntu 20.04. Then I got this error "Unable to locate package snort". I tried to fix this error but I couldn't do it. Do I need to install Kali Linux before installing Snort? If not how can I solve this error in Ubuntu 20.04?


Prove that if m is a square integer then m is neither congruent to 2 modulo 5 nor congruent to 3 modulo 5.  I've seen this problem done for modulo 4 and modulo 8 but this doesn't seem to work for me as the 2k doesn't square nicely to a 4. Maybe I'm misunderstanding, but I'm very lost on this problem and where to start/how to prove. Case proof? Proof by contradiction? Any help is appreciated, thanks


Minecraft: Give player score based on item equipped

Im working in a rpg map and i use scoreboards for strenght, intelect, talent, etc. is it possible to give a player a score if the player is using a specific item? (armor equipped or item in main hand/specific hotbar slot) example:     Witch Helmet |    +3 intelect when equipped       Broken Wand | +1 intelect -1 power when in main hand   i know it is possible to detect for a item in a players inventory but i don´t know how to only remove the stats once when the item is unequipped and make it multiplayer compatible.


Finding limit of two quotients: $\lim_{t \to 0} \left(\frac{1}{t\sqrt{1+t}}- \frac 1 t\right)$

$$\lim_{t \to 0} \left(\frac{1}{t\sqrt{1+t}}- \frac 1 t \right)$$  I am attempting to find the limit but I am not sure where to even start, I have tried previous methods but they do not seem to help.


Return all pairs of integers from a given list of integers that have a difference of 2

Like the title says, i need to find the difference of integers in a list by 2 and must return a list with tuples.   initial_list = [1, 2, 3, 4] expected_output = [(1, 3), (2, 4)]   I wrote this code:  arr = [1, 2, 3, 4] n = 2 arr1 = [] for i in range(len(arr)):     x = i + n     if x in arr:         arr1.append(x) print(arr1)   But doesn't work...  Can u help me?  Thx


Why do the meta description of my webpage is showing in Google SERP on mobile and not on web?

My aim was to display the meta description on this page to improve CTR - However, I was disappointed because the meta description is only shown in Google SERP on mobile not on Web. Please see the 2 images.  Please note : The meta description have the keywords search in Google bar.    Here, the below images is snapshot of web, which lack the meta description. Any one please help me get the meta description on web SERP as well?


Italics used for the plural treatment of words?

Do these look right to you? I'm pluralizing the following words. In doing so, I'm italicizing the word to be pluralized but not the 's':  ands (instead of and's) wherefores (instead of wherefore's) hiss (instead of his's)


After OSX Update -> Yosemite: No option to login and run the system.  Via Firewire (T) and Diskutils && Diskwarrior: "Unvalid Disk-Label @ 499239710720: cksum mismatch"  Diskwarrior: no option to rebuild Diskutills: Unvalid Disk-Label @ 499239710720: cksum mismatch  What could I do to reboot and rerun the machine? How to fix this problem?


Why Optical Microscope can not be used for higher magnification

Why optical microscope can not be used for higher magnification? Enlist different microscope used for higher magnification (> 2000 x).


java+ ConcurrentModificationException forEach(enhanced) loop single thread

I am not able to understand the reason, why the below code is throwing CME, even when this is run as single thread application  import java.util.ArrayList; import java.util.List;  public class ConcurrentModification {      public static void main(String[] args) {         ConcurrentModification con = new ConcurrentModification();         con.call();     }      void call() {         List<Integer> l = new ArrayList<Integer>();         for (int i = 0; i <= 10000; i++) {             l.add(i);         }              for (Integer j : l) {                 if (j % 3 == 0) {                     l.remove(j);                 }             }       } }   Reason:(after going through the answer and other links)     You are not permitted to mutate a list while you are iterating over it.    Only Iterator remove's method can be used to delete element from list   For Each loop is using iterator beneath it   but l.remove(j) is not using that iterator, which causes the exception


Example of a non-Noetherian complete local ring

I was looking for an example of a non-Noetherian complete local commutative ring with $1$. I would appreciate if anyone can point to a reference.


Java Error java.lang.NullPointerException 2

public FileWindow(JMenuItem menuItem,final JTextArea text, JMenuItem save){      //Open     menuItem.addActionListener(new ActionListener(){         public void actionPerformed(ActionEvent event){             openFile();              if(fileToOpen == JFileChooser.APPROVE_OPTION){                 text.setText("");                 try{                     Scanner scan = new Scanner(new FileReader(Open.getSelectedFile().getPath()));                     while(scan.hasNext()){                         text.append(scan.nextLine() + "\n");                     }                 }catch(Exception e){                     System.out.println(e.getMessage());                 }             }         }     });      //Save     save.addActionListener(new ActionListener(){         public void actionPerformed(ActionEvent event){             saveFile();             if(fileToSave == JFileChooser.APPROVE_OPTION){                 try{                     BufferedWriter out = new BufferedWriter(new FileWriter(Save.getSelectedFile().getPath() + ".txt"));                     out.write(text.getText());                     out.flush();                     out.close();                  }catch(Exception e){                     System.out.println(e.getMessage());                 }             }         }     }); }   I'm getting an error on this line --> "menuItem.addActionListener(new ActionListener){" I tried initiating the variables but that didn't work. Any help would be very appreciated!


Saying things like "rain rains"  "thunder thunders"  etc


Why do people suggest you try using another USB port?

Just curious why this is always on the list for trouble shooting USB devices.  Is it just because how USB works, some kind of tech myth, or just in case there's an actual hardware fault with the USB port?


There are always an error when I using h2o rest api to get models information

I created some models in web ui like this:   But when I want to get all models information in rest api, it shows that "NullPoiterException".   ps: The api to import file is ok.


If $A, B$ are open dense subsets of a metric space $X$, is their intersection dense?? We know normally intersection of two dense sets are not dense.


Problem from "The Theory of Finite Groups" by Kurzweil and Stellmacher

I am currently working my way through The Theory of Finite Groups by Kurzweil and Stellmacher and came across the following question in the first chapter:  Let $G$ be simple, $|G| \ne 2$, and $f : G \to H$ be a homomorphism. If $A \unlhd H$ is a normal subgroup of index $2$, then $\text{range}(f) \le A$.  Please could someone help me to prove this statement? It doesn't seem like it should be too difficult but having spent some time on it I'm still getting nowhere.  Thanks!


Different output between xelatex and lualatex with the same font

With the following code, I get the small caps with lualatex but not with xelatex,  \documentclass{article} \usepackage[no-math]{fontspec} \setmainfont[SmallCapsFeatures={LetterSpace=155}] {Charis SIL}          % sets the document font \begin{document} číčí abcd $abcd$ $číčí$  \bfseries\scshape abc ABC \normalfont \\ The german ß compiles to SS when used   \end{document}   and the tracking works only with lualatex. The font is