Submitting form elements with the same name

I have a form which allows the user to create extra "rows" using JQuery (using .clone) so that they can decide how many of the same information they need to submit. My issue is that I cannot work out how to access these form items within my controller.  the form that is being submitted may look like this  <input type="text" name="Amount" id="Amount">    <select name="Item">        <option value="1">Item 1"</option>        <option value="2">Item 2"</option>        <option value="3">Item 3"</option>    </select> <input type="text" name="Amount" id="Amount">    <select name="Item">        <option value="1">Item 1"</option>        <option value="2">Item 2"</option>        <option value="3">Item 3"</option>    </select> <input type="text" name="Amount" id="Amount">    <select name="Item">        <option value="1">Item 1"</option>        <option value="2">Item 2"</option>        <option value="3">Item 3"</option>    </select>   Basically, the block between input and the select could be repeated an infinite number of times. When I submit to the controller I am then using FormCollection form to access the form elements. from there I am unsure how I can access the items that have been submitted. I thought of using a for loop and then accessing them via something like form["Amount"][i] but obviously that is not going to work.  Am I going about this the right way and if so, does anyone have any suggestions about how this might work?  Thanks in advance.


Quick question, we have a Windows AD domain "company.com"  Computers are joined to this Windows domain "company.com" and we also have a web server at "www.company.com".  A request has come in that the higher ups also want our website to respond to "company.com" (without the www).  Since this is our AD Domain name, is there some sort of trick where I can point only port 80 traffic on "company.com" to a web-server, or would I have to run IIS/redirect on all the AD servers?


exchange a column of many many csv files using awk

There is a similar post, but this one is slightly different. I have a csv file in which the second column contains some alphanumeric data. I need to delete this entire column and replace it with a new one. I need to do this for many files in the same directory. The files are named treatables-000.csv, treatables-001.csv, and so one. Here's an example : Original file:   t ,  group,     1 aaa,  baddata1,  bbb aab,  baddata1,  bbc ....... aaad  baddata2   bbb    Column 2 needs to be replaced with the columnp1,p2,p3,... p20,p1,p2,... It should be of the same length as the original. How can I do this using the command line? The files may all be of different length.


Not Able To Install Ubuntu With Windows 7

First of all sorry if this question seams repeated I am a rookie, I tried many links but not able to do that is not working in my case. On my laptop currently Windows 7 is installed and I want to install Ubuntu alongside it, but I am not getting that option in my Ubuntu to [install alongside of it] menu. I tried to select "Something else" option but I don't know how to  partition it. It is my Windows 7 disk image screen shot    And this is screen shot for Ubuntu GPart


Pattern check returning false javascript/typescript

I am trying to validate if a string I entered matches the date format 'MM/yyyy'  Below is a sample of the code I am using for the same:  var date='05/2016' var patt= new RegExp('^((0[1-9])|(1[0-2])|[1-9])\/(\d{4})$'); patt.test(date);   However the above code is returning false.  I tried running it with the regex checker:   The pattern seems to be working fine.  Could someone please let me know what is missing.


Missing S Corp Tax Return - Who Is Liable for Penalty (Company vs Shareholders)?

I have a company that was incorporated in November 2015 as a S Corp.  There was no activity at the company for November / December 2015 and a tax return was not filed for 2015.  I found that even with no activity, all S Corps are required to file a yearly tax return.  The penalty for this seems to be $195 per month per shareholder (we have two shareholders in the company) with the max # of months capped at 12 (so a total of ~$4,800 = 2 x $195 x 12).  I am currently floating the possibility of selling my stake in the company.    Who is liable here for my half of the penalty ($2,400) - the corporation or me?  If I sold my share in the company right now, and the 2015 return was filed as late somewhere down the line - would I be liable for the penalty?


Gave my full name, age, office address and mobile number to a probable scammer

What's the worst that can happen if I have given my name, office address, age and mobile number to a person who was most probably a scammer?  I'm still not sure, it was scam, because emails were very well written without any spelling mistakes, he provided legal documents and proofs for everything he said. I. After more investigation, I've started realizing that it was a scam.I 'm considering myself a big fool for sharing this information with him.   I ended the conversation in a nice way, didn't let him know that I'm doubting his credibility.  What can I face as a result of sharing the information that I mentioned?


How to perform imputation of values in very large number of data points?

I have a very large dataset and about 5% random values are missing. These variables are correlated with each other. The following example R dataset is just a toy example with dummy correlated data.  set.seed(123)  # matrix of X variable  xmat <- matrix(sample(-1:1, 2000000, replace = TRUE), ncol = 10000) colnames(xmat) <- paste ("M", 1:10000, sep ="") rownames(xmat) <- paste("sample", 1:200, sep = "") #M variables are correlated   N <- 2000000*0.05 # 5% random missing values  inds <- round ( runif(N, 1, length(xmat)) ) xmat[inds] <- NA  > xmat[1:10,1:10]          M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 sample1  -1 -1  1 NA  0 -1  1 -1  0  -1 sample2   1  1 -1  1  0  0  1 -1 -1   1 sample3   0  0  1 -1 -1 -1  0 -1 -1  -1 sample4   1  0  0 -1 -1  1  1  0  1   1 sample5  NA  0  0 -1 -1  1  0 NA  1  NA sample6  -1  1  0  1  1  0  1  1 -1  -1 sample7  NA  0  1 -1  0  1 -1  0  1  NA sample8   1 -1 -1  1  0 -1 -1  1 -1   0 sample9   0 -1  0 -1  1 -1  1 NA  0   1 sample10  0 -1  1  0  1  0  0  1 NA   0   Is there a (best) way to impute missing values in this situation? Is the Random Forest algorithm helpful? Any working solution in R would be much appreciated.  Edits:  (1) Missing values are randomly distributed among the variables and samples.As number of variables is very large (here in the example - 10000), while the number of samples is small here in the above dummy example it is about 200. So when we look at any sample over all the variables (10000), there is high chances that there will be missing value at some variable - due to large number of variables. So just deleting the sample is not option.   (2) The variable can be treated both as quantitative or qualitative (binary) in the process of imputing. The only judgement is how well we can predict it (accuracy). So predictions like 0.98 instead of 1 might be acceptable rather 0 vs 1 or -1 vs 1. I might need to tradeoff between computing time and accuracy.   (3)  The issue I have thinking how overfitting can affect the results as the number of variables are large compared to number of samples.   (4) As the total quantity of missing values is about 5% and is random (not concentrated in any variables or samples as precaution was taken to remove the variables or samples that have very high missing values)   (5) Making data complete for analysis is first objective and accuracy is secondary. So not too sensitive to accuracy.


Every time I login to ssh terminal to edit files I execute the command  export EDITOR=nano   How Could I set nano as default editor so I shouldn't execute this command anymore


Floating point rounding which rounds 0.5 to 0

I did some search on the net. However, there is no solution for those case below.  if the value is less than or equal to 5, drop it and all the digits to the right of it.  if the value is greater than 5, increase by 1 the number to be rounded.  123.4561235 round to 123.456123.  123.4561236 round to 123.456124.  Is there any way to do so?


World is playable but not located in saves folder

So I have been working on my Minecraft world for like a year. I can play and save my world without any problems, but when I look in the saves folder, my world is the only one not in there. I need the file is so I can reset my computer without losing my Minecraft level. Where is my world even saving to?  Please help.


The plus minus sign after take a root of terms

It's basic question, but sometimes might confuse me.  Why do we adding the plus minus sign $(\pm)$ after take a root of something?  And why sometimes we just write the plus term only. I can't give a specific example that explain what i mean is, but i know if this question is clear.  Sorry for my stupid question, maybe i have some misconceptions about it.


Switching between different graduate departments within the same graduate school?

How difficult it is to switch between different graduate departments within the same graduate school? And how can a student initiate the process?  Some have told me that it's easier than getting into a graduate department via PhD admissions. But I do wonder - does it depend on what school it is? (I'm at Brown). What other factors determine how easy it is to get into another graduate department? Would they look at your transcript/GRE scores/etc? I have GRE scores of 96th percentile Verbal/96th percentile Math/99th percentile Analytical/89th percentile Biology. My grades are weaker though. I'm currently a student in a Geoscience department and am considering switching to Physics or a Biology-related field.  Of course, one has to convince someone else to be able to take them on. Most of my experience is with Physics and Scientific Computing, however, and a lot of fields really value the skills that people in Physics/Scientific Computing have.


Is QGIS (2.16) multi-threaded?   I do not see multiple processes on the console while running it on Ubuntu.    It only uses one CPU.   Is there anything to do to enable it?


Run a specific command with root password prompt even if running as root

I want to run a specific command, such as rm, while logged in as root, but I want the root password prompt to be shown every time. When I run su -c "command" as root, I was not prompted for a password.


chapter title long and necessity to cut it

my chapter title is too long and I have the necessity to cut it in two different lines. well which could be the best way to cut it?I tried using \newline but unfortunately this modification affects also title page in every page.


Switch order of monitors via command line / shortcut in Windows 7

My current desktop setup is  [2][3][1]   where 3 is the main display and 1 is disabled.  I would like to be able to toggle between that setup and  [3][2][1]   where 3 is still the main display and 1 is still disabled. Essentially, I just want to switch monitors 2 and 3.  Ideally I would like to assign this to a shortcut, but to do so (I think...) I need to be able to do this via command line.  If possible, I'd also like to do this without third party software. [edit: although, if Windows does not support this natively, I would accept a third party solution.]  Thanks!


Get coordinates by mouse click as user's input?

I'm doing some stuff with digitizing and one thing that would nice to have is to get coordinates by mouse click.  My problem is that I don't know how can I create utility similar to this from map tool, where I can easly create method:  def canvasReleaseEvent(self, e):     if e.button() == Qt.LeftButton:         x = e.pos().x()         y = e.pos().y()          point = self.iface.mapCanvas().getCoordinateTransform().toMapCoordinates(x, y)         print(point)   For example, when user wants to digitizing, he has to show a point on canvas, where to start. To do this, he clicks on a button to call a function for getting coordinates from canvas.  The main problem I struggle with is that I don't know how I can craete method for catching coordinates, that only works when I call it (not like in maptool, when it works all the time).  Is there any way to do that?


Special determinant where each row is a rotation of the previous one

Calculate the determinant      $$ \begin{vmatrix} 1 & 2 & 3 & \cdots & n-1 & n \\ 2 & 3 & 4 & \cdots & n & 1 \\ 3 & 4 & 5 & \cdots & 1 & 2 \\ \vdots & \vdots & \vdots & & \vdots &  \vdots \\ n-1 & n & 1 & \cdots & n-3 & n-2 \\ n & 1 & 2 & \cdots & n-2 & n-1 \end{vmatrix} $$   I know the answer is $(-1)^\frac{n(n-1)}{2}\frac{n^{n-1}(n+1)}{2}$, and it is possible to solve with a tedious amount of linear elementary transformations, i.e. first you add other columns to the first column, and then subtract the first column from other columns, blah blah. However, is there a cleverer and faster way?


Why is the determinant of the 0x0 matrix equal 1?

I don't understand why the determinant of the 0x0 matrix equals 1.


Mysql-server-5.1 installation gone wrong

I was installing mysql-server-5.1 on ubuntu and the installation was interrupted. This caused an error and now I can't remove the package or reinstall it.  This is the console output:  amatteo@ubuntu:~$ sudo apt-get install mysql-server-5.1 Reading package lists... Done Building dependency tree        Reading state information... Done mysql-server-5.1 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded. 7 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up mysql-server-5.1 (5.1.49-1ubuntu8.1) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing mysql-server-5.1 (--configure): subprocess installed post-installation script returned error exit status 1 Setting up man-db (2.5.9-4) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing man-db (--configure): subprocess installed post-installation script returned error exit status 1 Setting up wamerican (6-3) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing wamerican (--configure): subprocess installed post-installation script returned error exit status 1 Setting up wbritish (6-3) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing wbritish (--configure):  subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already dpkg: dependency problems prevent configuration of language-support-writing-en:  language-support-writing-en depends on wamerican; however:   Package wamerican is not configured yet.  language-support-writing-en depends on wbritish; however:   Package wbritish is not configured yet. dpkg: error processing language-support-writing-en (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Setting up wspanish (1.0.25) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing wspanish (--configure):  subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already dpkg: dependency problems prevent configuration of language-support-writing-es:  language-support-writing-es depends on wspanish; however:   Package wspanish is not configured yet. dpkg: error processing language-support-writing-es (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already Errors were encountered while processing:  mysql-server-5.1  man-db  wamerican  wbritish  language-support-writing-en  wspanish  language-support-writing-es E: Sub-process /usr/bin/dpkg returned an error code (1)   At first it was just mysql-server-5.1, but now it shows errors on every package I've installed since then.  Any ideas?  Thank you in advanced.


C++ - storing pointers to stack variables

If I have this code:  class MyClass {... } ... std::vector<MyClass*> myObjects; for(int i = 0; i < 4; i++) {     MyClass m;     myObjects.push_back(&m); }   Is code such as this safe? Note that I am not "newing" the objects up, but creating them on the stack, but storing pointers to them. i.e. what (if anything) in the C++ spec is there that guarantees that it won't "re-use" (part of) the stack memory that m occupies, either for a subsequent iteration of the loop, or for something else entirely?  It compiles fine and seems to work ok. But I'm not sure whether there is any mechanism that recognises that I have taken a pointer to the object, so don't overwrite the memory address with something else.


What is the differences between pushtopics and platform events?

what is the differences between pushtopics and platform events? When i can use the pushtopics and when i can use the platform events? thanks


I know that a Group G is defined as a set of elements with a binary operation with these three properties:  1) Associatively  2) Inverses Exist  3) Identity Exists  However there are many definitions such as the one found on wikipedia that say closure is also a property and what not. However I have seen some other things about groups and it said closure is not included as a property, mainly Harvard Abstract Algebra videos on Youtube.  I know that closure can come from those three properties sometimes, but not all the times. So my question is, is closure a property of a group?   I believe it is because there has been more information supporting it being one, then it not being included.


CPU frequency drops to and is capped at 0.48 GHz

I have a Dell Inspiron 7348 (BIOS version A13, the most recent) and the CPU frequency is always capped at exactly 480 or 490 MHz. I had this same problem under win10 but modifying a registry key for this intelppm process did the trick, or so it appeared. Everything was just as laggy as before but the frequency wasn't limited. Then I decided to install Ubuntu 20.04, and the problem still didn't go away. The laptop performs pretty well for the first couple of seconds after boot and then everything just lags out, which makes me think that there's perhaps a process that does it straight after booting up? Here's a list of things I have tried:  Disabling Intel Speedstep. Made no difference.  Using cpufreq to set the mode to Performance. Didn't work either.  Changing the minimum frequency. Didn't work.  Disabling intel_powerclamp and doing away with it altogether. Also didn't work   I also used prime95 to put the cpu on 100% load and the frequency was still capped. Any ideas as to what might be causing it? Thanks in advance and sorry for any mistakes as this is my first post here. I couldn't find any other posts suggesting anything that solved my problem. Edit:


There have been many times where I look at a champion, and like it, but I've got no idea which lane it is meant to go in. How do I determine which lane to go in?  I've been playing LoL for awhile, and yet I'm still a newbie to quite a few tings.


Why did Ubuntu change the network configuration

As we all know, to configure the network, we can edit /etc/network/interfaces and execute /etc/init.d/networking restart.  Today I try to use Ubuntu 17.10 and I've found the network configuration had changed. Now we should edit /etc/netplan01-netcfg.yaml and execute netplan apply.  OK, this might be a bad question but I really want to know why Ubuntu did such a change. Is there a strong reason to explain all of changes like this one?


Teleporting a player from the overworld to the end

Is there any way to teleport a player from the overworld to the end?   Or a way of teleporting a player to a random enderman in the end?


Converting beamer slides to animated images

As a follow up to , I'd like to know how to generate an animated image (gif) from a series of beamer slides.  Martin Scharrer came up with this example:    Some hints on cropping the PDF file are also welcome. =)


Find the number of solutions of $x^2=x\mod m$ for any integer $m$.  I was thinking about bringing the $x$ over to the other side and somehow apply chinese remainder thm.


Can the t-test be used to test the difference between percentiles of 2 samples?

For example, instead of testing the difference in mean, I want to test the difference in the 75th percentile of the 2 groups.  Does the central limit theorem hold? and what would be the equation for the standard error?


Consider a dictionary 'a' if:  a = {6:32 , 1:15 , 3:45 , 2:12 , 5:46, 4:99}   I want to sort this dict by values with respect to its keys, such as this:  a = {2:12 , 1:15 , 6:32 , 3:45 , 5:46 , 4:99}   I wanted to know if it's possible without importing any modules.  Thanks


Find all endomorphisms between (Q,+) and (R,+).Which of them are automorphisms?

Can you help me how can i find all endomorphisms between (Q,+) and (Q,+).Which of them are automorphisms?


I'm playing with trailing return types. If I put the following code into a header file and add it to a library project, then unit test, everything works fine . . .  namespace ContainerStats {  // The trailing return type allows one to be less verbose relative to // std::tuple<typename std::iterator_traits<Iter>::value_type, //            typename std::iterator_traits<Iter>::value_type> template<typename Iter> auto summean(Iter first1, Iter last1)->decltype( std::make_tuple(*first1, *first1) ) {     using value_type = typename std::iterator_traits<Iter>::value_type;     value_type sum = std::accumulate(first1, last1, value_type());     value_type mean = sum / (last1-first1);      return std::make_tuple(sum, mean); }  }   However, if I split definition and implementation into header . . .  // .h namespace ContainerStats { template<typename Iter> auto summean(Iter first1, Iter last1)->decltype( std::make_tuple(*first1, *first1) ); }   and cpp . . .  template<typename Iter> auto ContainerStats::summean(Iter first1, Iter last1)->decltype( std::make_tuple(*first1, *first1) ) {     using value_type = typename std::iterator_traits<Iter>::value_type;     value_type sum = std::accumulate(first1, last1, value_type());     value_type mean = sum / (last1-first1);      return std::make_tuple(sum, mean); }   Then, I end up with a curious linker error . .   Linking CXX static library libDemo.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libDemo.a(ContainerStats.cpp.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libDemo.a(ContainerStats.cpp.o) has no symbols  Linking CXX executable demo_tests Undefined symbols for architecture x86_64:   "decltype(std::make_tuple(*(fp)*(fp))) ContainerStats::summean<std::__1::__wrap_iter<float*> >(std::__1::__wrap_iter<float*>, std::__1::__wrap_iter<float*>)", referenced from:       summean_sum_Test::TestBody() in stats_test.cpp.o       summean_mean_Test::TestBody() in stats_test.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   As a sanity check for my build setup, I added a dummy function to the header returning a bool and cpp implementation that just returns true. The has no symbols part of the error vanishes, but the symbols not found part remains related to the function with the trailing return type.  EDIT  As another check, I just used the more verbose return type (described in the code comment in the first snippet), and got the same error.  What am I doing wrong?


Show $\mathbb{E}[f(X)g(X)] \geq \mathbb{E}[f(X)]\mathbb{E}[g(X)]$ for $f,g$ bounded, nondecreasing

Let $X$ be a random variable and let $g,f$ be real-valued, nondecreasing, and bounded.   Show that $\mathbb{E}[f(X)g(X)]\geq \mathbb{E}[f(X)]\mathbb{E}[g(X)]$  Having a hard time seeing where to start for some reasons, any hints?  I managed to write:  $\mathbb{E}[f(X)g(X)] = \frac{1}{4}\mathbb{E}[(f(X)+g(X))^2 - (f(X)-g(X))^2]$  But I'm not sure if this is in the right direction or not.


Proving existence of points in a twice differentiable function

Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a twice differentiable function.  Prove that if $x_1<x_2<x_3$ and $f(x_1)=f(x_2)=f(x_3)=0,$ then there exists a point $q\in(x_1,x_3)$ such that $f''(q)=0$.  I think it's based on Rolle's theorem, but I can't prove it rigorously. Would anybody have a rigorous way to prove this?


Is there a public API for Stack Overflow?

I was just trying to find out if there was a public API for the Stack Overflow site. I want to know so that I could maybe use it for whatever it would let me use it for (like web-service or non browser application that can access Stack Overflow). I have a few (specific) ideas but I don't want anybody to get the jump on me before I have a chance to implement one of them ;). I know that is a little silly since there are a limited number of things that such a thing could be used for. It's not about $$ or copyright* or anything like that; I just want to do it my way first if possible. Anyhow I tried googling this and you can imagine how many results you get for "StackOverflow public api".


Let $P(x) = 1 + x + x^2 + x^3+ x^4 + x^5$. What is the remainder when $P(x^{12})$ is divided by $P(x)$?   (a) $0$   (b) $6$   (c) $1+x$   (d) $1 + x + x^2 + x^3+ x^4 $   The way I adopted to solve this question was by putting x=1 which gives remainder= $0$ and this matches with option (a). But the answer to this question is 6. I am not able to understand the solution given:  It would be great if someone could explain the solution in simpler or more intuitive terms. Another way of solving the question is also welcome.


prints out a lot of very detailed protocol statistics like number of TCP reset messages received or number of ICMP "echo request" messages sent or number of packets dropped because of a missing route.  When in Linux netstat is considered deprecated at nowadays, then is there an alternative?  Statistics provided by ss -s are superficial compared to the ones provided by netstat.


I am unable to install ADnet wifi adapter driver in ubuntu via install.sh file to access internet

I allowed the permission through chmod +x install.sh command and also in properties of the .sh file, but it didn't work and showed following error when run:  Authentication requested [root] for make clean: rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~ rm -fr .tmp_versions rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd hal/rtl8188e/usb ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd hal/rtl8188e ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd hal/OUTSRC/rtl8188e ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko  cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko  cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko Authentication requested [root] for make driver: make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.0-46-generic/build  M=/home/swapnil/Desktop/ADNet  wifi/Driver/linux/RTL8188EUS_linux_v4.1.4_6773.20130222/driver  /rtl8188EUS_linux_v4.1.4_6773.20130222  modules make[1]: Entering directory '/usr/src/linux-headers-5.3.0-46-generic' arch/x86/Makefile:147: CONFIG_X86_X32 enabled but no binutils support make[1]: *** No rule to make target  'wifi/Driver/linux/RTL8188EUS_linux_v4.1.4_6773.20130222/driver /rtl8188EUS_linux_v4.1.4_6773.20130222'.  Stop. make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-46-generic' Makefile:678: recipe for target 'modules' failed make: *** [modules] Error 2 ################################################## Compile make driver error: 2 Please check error Mesg   I was running Realtek wi-fi driver auto installation in terminal, but it failed to install. Ubuntu 18.04Lts, and here is lsusb command's output:  Bus 002 Device 003: ID 12d1:108a Huawei Technologies Co., Ltd.  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 002: ID 0461:4d81 Primax Electronics, Ltd Dell N889  Optical Mouse Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 002: ID 413c:2107 Dell Computer Corp.  Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub   Please look it into matter and suggest me solution to this problem. Thanks in advance.


What was the purpose of banning use/development of cloaking technology in Treaty of Algeron?

The  prohibited the development or use of cloaking technology by the Federation. This treaty was a peace treaty and use of cloaking technology in one's own space couldn't disturb peace. Plus, the Romulans already had cloaking technology, so banning it was unfair for the Federation. So, why was this ban introduced?  Another thing: There were many things to ban, but why cloaking technology?


How to download https file in AIX without wget and curl?

In an UNIX environment running AIX where I'm a not privileged user (without sudo) if I need to download a file from HTTPS server and there is no wget or curl... How I do it?  Is there any replacement for wget/curl?


Delete within a function doesn't work in Javascript

My goal is to remove properties in an object with values greater than a given number "num" using a function. However, "delete" is not working. What would make delete not work in this situation, and is there a better solution?        function removeNumbersLargerThan(num, obj) {       for(var key in obj){         if(obj[key] > num){           delete obj.key;         }       }       return obj;     }      var obj = {     a: 8,     b: 2,     c: 'montana'     }     removeNumbersLargerThan(5, obj);     console.log(obj); // --> { b: 2, c: 'montana' }


Update the records from JSON string in apex

I have a JSON string in the format '{"key1":{"Field1__c":"false", "Field2__c":"false","Id":"XXXXXXXXXX909"}}' I need to update the record corresponding to "key1". To achieve that I tried the below code: public void updateRecords(String jsonString){    Map<String,Object> deserializedJSON = (Map<String,Object>)JSON.deserializeUnTyped(jsonString);   SObject sObj = (sObject)deserializedJSON.get('key1');  update sObj;   }  But doing this I am getting the below error: System.TypeException: Invalid conversion from runtime type Map<String,ANY> to SObject Then I changed my code to: public void updateRecords(String jsonString){    Map<String,Object> deserializedJSON = (Map<String,Object>)JSON.deserializeUnTyped(jsonString);   Map<String,SObject> sObj = (Map<String,sObject>)deserializedJSON.get('key1');  update sObj;   }    After doing this I am getting the error:System.TypeException: Invalid conversion from runtime type Map<String,ANY> to Map<String,SObject> Any suggestions how can I update any sObject record provided in JSON string?


Representation of the Lorentz group from representation of its Lie algebra

In many books on particle physics, it is first shown that the Lie algebra of the Lorentz group is isomorphic to   $$ su(2) \oplus su(2) , $$  then by this fact, it is implicitly assumed that for each representation of $su(2)\oplus su(2)$, one can construct a representation of the Lorentz group.   But it is well known that the group $SO(3)$ has a Lie algebra isomorphic to $su(2)$, but half of the latter's representations do not lead to a representation of the former.   The question is then, does every representation of $su(2)\oplus su(2)$ lead to a representation of the Lorentz group? even though it cannot be unitary?   In particular, does the representation labeled as $(1/2, 0)$ lead to a representation of the group?


How to fix misalignment of button and text input

I am trying to make a small section on a site with a text input, a button, and some text. However, it seems the input and button arent properly aligned with the text. Why is this, and how can I fix it? Here is what I have:   :root {      --font: "Bebas Neue", cursive;      --color1: 227, 227, 227; /* Light Grey */     --color2: 18, 18, 18;    /* Dark Grey  */  }  html, body {      font-family: var(--font);     color: rgb(var(--color1));     background: rgb(var(--color2));     overflow: hidden;     flex-direction: column;  }  @keyframes _slide_down {      0% { top: -200%; }     10% { top: -100%; }     100% { top: 0.8%; }  }  .slide_down {      position: absolute;     left: 0;     right: 0;     top: 0.8%;     margin-left: auto;     margin-right: auto;     animation: _slide_down 5s;  }  .top_left { position: absolute; top: 0.8%; left: 1%; }  .padded { padding: 1%; }  .squircle  { border-radius: 30px; }  .centered { text-align: center; margin: auto; display: block; }  .large { font-family: var(--font); font-size: 300%; }  .medium { font-family: var(--font); font-size: 38%; }  .glowing { text-shadow: 0 0 10px rgba(var(--color1), 0.6); }  ._glowing { box-shadow: 0 0 10px rgba(var(--color1), 0.6); }  .right_rounded { border-top-right-radius: 15px; border-bottom-right-radius: 15px; }  .left_rounded { border-top-left-radius: 15px; border-bottom-left-radius: 15px; }  .stretched { width: 45%; }  .squished { width: 13%; } <link rel = "preconnect"              href = "https://fonts.gstatic.com">     <link href = "https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap"              rel = "stylesheet">  <div id = "generated_fen"             class = "large stretched slide_down centered padded glowing">          FEN Key:          <input type = "text"                 id = "fenID"                 class = "stretched padded medium left_rounded"                 placeholder = "xxxxxxxx/xxxxxxxx/x/x/x/x/xxxxxxxx/xxxxxxxx x xxxx - x x"/>          <button type = "button"                 id = "set_to_fen"                 class = "squished padded medium right_rounded"> Set FEN </button>      </div>     How would I fix this? I want my input and button to not be completely aligned to the top of the div, but also not lower than the text either. They should be perfectly inline with the text, if that makes sense. Here is a sort of example, where the orange line is where I want the vertical middle of each element to line up. As of now, you can see they are not.


Fix permissions in /usr/lib after chmod on dir

I "accidentally" ran   sudo chmod -R 0755 /usr/lib   And now many things in my system don't work. Is there a cure for this (Manjaro 17.1) that doesn't involve re-installing my entire system?


Please bring back the previous favicon (or change to grayscale)

Take a look at this:        This is empty. Heartless. I won't say ugly, just bad. The worst favicon I've ever seen, and I saw my share in the last 20 years. It got no meaning, nothing.  Please change it back to the stacked, colorful, balloon. Please.        If the purpose is having different icon than the main site, why not simple grayscale like all other meta sites in the network?


Predicting in Neural Network with Softmax or Logistic activation output

So I'm wanting to make a neural network from scratch for predicting classifications and labels. The activation layer for the output in these networks would be softmax for classification and logistic for labels. However, whenever you are predicting a new value you will get some probability values for the output, so how do you determine the label or class based off these probabilities? Do you choose the largest or sample? For example, consider three possible classes -> [1,2,3] lets say my output from my softmax layer was [0.25, 0.15, 0.6] (a probability distribution), is the actual predicted value class 3 as it has the highest value?or would you sample? For labeling, lets say we have three different labels, so the output from the logistic layer is [0.23, 0.65, 0.9], how would you determine the final labels? Would it just be if it was greater than 0.5? so the predicted value would be [0,1,1]? or would you sample?


Confused about the concept of time and time dilation

I am having a hard time understanding what is time. If scientists define time as a multiple of caesium frequency, then time itself is dependent on motion, so what if I have a number of particles that are at 0 Kelvin? Do these particle experience time by the fact it exist in the fabric of spacetime?  And if so, is this the fundamental reason why time dilation exists? Because you cannot exceed the speed of light therefore your movement is restricted, thus the time dilates as your movement is restricted?


How to adjust the size and placement of chapter heading in report class

How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error     ! Package titlesec Error: Not allowed in `easy'   settings.


Show that if $ p =2^n +1$ is a Fermat prime, then 3 is a primitive root modulo $p$

I am not sure how to go about this problem. Does anyone have any insight into a good start/theorems I may need to employ?


How to open stubborn javascript links in a new tab or new window?

Some websites use "creative" (javascript?) hyperlinks which break browser functionality, such as the ability to  ctrl+click or middle click links to open them in a new tab.  A common example, taleo HR websites   No matter what I try, I can only follow links by clicking on them normally; I can't open them in a new window. Is there any way around this?


How to start X program on local display?

I'm ssh-ing into a Raspberry Pi. I would like to start an X program remotely, on the Pi's display.  I know you can export DISPLAY to have programs open up on your computer when you ssh-in. But I'm looking for the opposite.  What I'd like to have is have a program open up on the Pi's own (HDMI connected) display, when I run a command from ssh.  What I'm looking for is to have a program run on the Pi and display it on the Pi. Pretty much I'd like to just remote control the Pi, using my desktop's keyboard.   I'm on Raspbian / Deb Wheezy.


Fire not rendering in cycles (img sequence)

I have set up some fire in my scene, using a domain with a custom material, an object whose flow is set to 0, etc. Basically, when rendering in the view port it works fine. But when I click the "animate" button to make my image sequence, no fire shows up.  It's not very convenient for me to upload my .blend file, so I would just like a list of the possible solutions.  I'm using the newest version of blender as of this post (I believe it's 2.74a).  Here is my node setup:   SOLUTION  As per the comment below, the Transparent setting in the film tab of the render settings was the problem.


Probabilities regarding $\lim \sup$ and $\lim \inf$ of sequence of independent random variables.

Exercise :     Let $X_n, n=1,2,3,\dots$ be a sequence of independent continuous random variables. It's also given that all of $X_n$ have the same probability density function $f(x)$, for which it is $f(x) > 0 \space \forall \space x \in \mathbb R$. For a given real number $b$, consider the following events :    $$A=\lim \sup_n \{X_n >b\}, \space B=\lim \inf_n \{X_n>b\}$$   $$G = \lim \sup_n \{X_n \leq b\}, \space D = \lim \inf_n\{X_n\leq b\}$$   Explain with simple words what each of the events above means and calculate their probabilities of happening.   Discussion :  It seems something that may have to do like Borrel - Cantelli Theorems, but I'm not even close to sure on how to proceed and make conclusions. Any help will be greatly appreciated as this is a past exam problem.


Python fastest byte to string conversion

I need to convert a byte array to a string to send to an SPI device.  Is there a more efficient way of doing this ?  def writebytes(bytes):   str = ""   for i in bytes: str += chr(i)   self.spi.transfer(str)


I can't start Ubuntu, GRUB does not appear

I have a problem trying to get to Ubuntu. I installed as usual: first, I took some space from Windows, then started Ubuntu from usb, selected Install Ubuntu alongside Windows, finished installation, but when I restart my computer GRUB does not appear, and it goes directly to Windows and there's no other way to start Ubuntu.  I've tried all the solutions I found on the internet, but I've run out of options. I tried:   boot-repair from a live USB Changing boot path from Windows cmd (bcdedit) Tried with the Ubuntu terminal efibootmanager from live USB I made sure that installation was in UEFI mode (same as Windows) I disabled secure boot from BIOS I disabled Windows fast start   I don't know if it's useful information, but I'm trying this in my laptop, which is a Lenovo Thinkpad e560, Intel i7, 16GB RAM, 500 GB disk, running Windows 10 home.  I hope you have some more solutions to try :)


We have an Oracle database, one data file (users tablespace) of the instance got corrupt and another data file (containing application data) was deleted due to some issue.  The database is in ARCHIVELOG mode, but we neither have data file backup of both data files nor the pertaining archive logs. Hence, I guess we cannot go ahead with the recovery of data files. I am unable to open the database as the data files are not available and face.   ORA-01589: must use RESETLOGS or NORESETLOGS option for database open    I am just able to STARTUP MOUNT the database  I wanted to ask if we can somehow we can open the database by taking both the tablespaces offline after STARTUP MOUNT the database instance. Or if there is any other way I can start the database.   There was a power issue and the  server got abruptly shutdown. When we tried to restart the database and found that we were facing ORA-01589: must use RESETLOGS or NORESETLOGS option for database open. On further analysis we found that 2 of datafiles were creating problem as one got corrupt other deleted as mentioned. As of now if I try to restart the database it says one datafile which belongs to users tablespace need recovery. I wanted to confirm as if we can start the instance by bringing the tablespace offline.  I tried:  SQL> select open_mode from v$database;  OPEN_MODE ---------- MOUNTED  SQL> alter database open resetlogs; alter database open resetlogs * ERROR at line 1: ORA-01194: file 1 needs more recovery to be consistent ORA-01110: data file 1: '/flowsystems/oradata02/flsta02/system01.dbf'   I don't have any archive logs.


by remaining calm- a dangling participle?

I am wondering whether "remaining" is a dangling participle in the following:  By remaining calm, a solution is usually possible.  I'd appreciate your help.


How can I deactivate Bluetooth on system startup?


IF $f(x) = \int_{0}^{\phi (x)} g(t) dt$, How could we find $f'(x)$?

Given $$f(x) = \int_{0}^{\phi (x)} g(t) dt$$ How could we find $f'(x)$? Please explain your answer.


DoubleAA (a mod for over a year) seems to have to vote extra times to undelete a post.          Shouldn't it just say his name once?  Week has passed and five more have been added... this is getting out of control!


$$\int_ {0}^{\infty} \frac{(e^{3x}-e^x) \ \mathrm dx}{x(e^x+1)(e^{3x}+1)}$$ I tried converting it to $$\int_ {0}^{\infty} \frac{\big((e^{3x}+1)-(e^x+1)\big) \ \mathrm dx}{x(e^x+1)(e^{3x}+1)}$$ integral-calculator.com says no antiderivative found. I would like to see how it is solved by Feynman's Trick.


Why am I going to get the Hero of Time hat for posting this question?

The WinterBash site defines  as follows:    So why will I win that hat by posting this question, even though it is not "on the hour" right now?


The main effect will be non-significant if the interaction is significant?

I am using linear mixed models to identify important factors, and it turns out that:   A: significant  B: not significant A×B: significant   Does it mean that because A×B shows that the effect of A depends on the effect of B, only the effect of A is not actually significant?  I have read many sources, and they seem to suggest that if the effect of A×B is significant, then we cannot interpret that the effect of A is significant on our dependent variable. Am I understanding right?


i have a big error warning in my Ubuntu 14 because of Spotify.   This the error :  E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/repository.spotify.com_dists_stable_non-free_i18n_Translation-en%5fUS E: The package lists or status file could not be parsed or opened. E: _cache->open() failed, please report.   I want to uninstall this program, how to do it ?


Minecraft new 1.14.2 tag display name detection command

I'm creating a command to switch between cameras using the testfor command to identify which camera the player is holding. My "cameras" are items with custom names 1,2,3,4, etc.  This is the code i am using:  /execute if entity @a[team=camera,nbt={SelectedItem:{id:"minecraft:black_stained_glass_pane",tag:{display:{Name:"camera 1"}}}}]   The code does not detect the renamed item. It detects if I remove the name, but I require the custom name for my project.  I've also tried this thing as said in other people´s question.  {Name:\"camera 1\"}}   But it does not work - the code turns red. I'm not sure what is wrong or how to fix it. I'm running Minecraft 1.14.2 Java edition.


How would I implement a simple site search with php and mySQL?

I'm creating a site that allows users to submit quotes.  How would I go about creating a (relatively simple?) search that returns the most relevant quotes?  For example, if the search term was "turkey" then I'd return quotes where the word "turkey" appears twice before quotes where it only appears once.  (I would add a few other rules to help filter out irrelevant results, but my main concern is that.)


How does a light move in a material?  " aa=  moves in a vacuum --> captured by an atom for 10^(-8) sec  --> vacuum -> captured by an atom --> and so on. "  Is aa= true? you can say something about "10^(-8) sec" capturing time too because i dont know, i might hear about it somewhere long long ago.  Is this why the speed of light is slower than a vacuum?


Why is angular velocity a vector quantity?

Angular velocity is $$\omega= \frac{dƟ}{dt},$$ here $\theta$ and $t$ are scalar quantities. But $\omega$ is a vector quantity. Why is it such?  So far I know the direction of $\omega$ is along the axis of rotation. If so, why?


Error concerning xwatermark package after updating package list

I have a problem, that came up after updating the whole package list of Miktex, and I am 100% sure it is due to the package xwatermarks. After compiling the text I get the following error, right before \begin{document}: ! Extra \endgroup. \document ->\endgroup \let \BeforeStartOfDocument \@firstofone \cpt@beforest... l.161 \begin{document}  I am sure because removing the usage of \usepackage[printwatermark]{xwatermark} the documents get properly compiled. Below I report my full preamble (so as to be 100% accurate in my topic); I would like to ask if someone can help me in using xwatermarks anyhow and avoid the problem. As far as the final document anything is fine, it is enough to remove \usepackage[printwatermark]{xwatermark}. Thank you in advance for any eventual help. \documentclass[11pt,a4paper]{scrartcl} \usepackage{latexsym} \usepackage{textcomp} \usepackage{parskip} \usepackage{lipsum}  \usepackage{changepage} \usepackage{caption} \usepackage{soul} \usepackage{booktabs}                 \usepackage[english]{babel}                              \usepackage{placeins} \usepackage{hyperref} \usepackage{textcomp} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsfonts,amssymb} \usepackage{multicol} \usepackage{wasysym} \usepackage{datetime} \ddmmyyyydate \usepackage{longtable} \usepackage{multirow}   \usepackage{color} \usepackage[printwatermark]{xwatermark} \usepackage{xcolor} \usepackage{graphicx}   %%\new[allpages,color=red!50,angle=45,scale=3,xpos=0,ypos=0]{DRAFT} %Questo mette la filigrana sotto l'immagine %%\newwatermark[allpages,color=red!10,angle=45,scale=2,xpos=0,ypos=0]{DRAFT \today} %Questo mette la filigrana sopra l'immagine      \usepackage[TABTOPCAP, FIGBOTCAP]{subfigure} \newcommand{\figbox}[1]{%   \fcolorbox{white}{white}{     \vbox to 6.5 cm{%     \vfil     \hbox to 8 cm{%       \hfil       #1%       \hfil}%     \vfil}}}  \newcommand{\Bfigbox}[1]{%   \fcolorbox{white}{white}{%     \vbox to 5.6 cm{%     \vfil     \hbox to 7 cm{%       \hfil       #1%       \hfil}%     \vfil}}}     \newcommand{\Cfigbox}[1]{%   \fcolorbox{white}{white}{%     \vbox to 4.5 cm{%     \vfil     \hbox to 6.4 cm{%       \hfil       #1%       \hfil}%     \vfil}}}  \makeatletter \def\subfigtopskip{4pt} \def\subfigbottomskip{4pt} \def\subfigcapskip{2pt} \subtabletopcaptrue       \makeatletter \def\printtitle{                 {\centering \Large \normalfont \textbf{\@title}\par}}  \def\piedipagina{%                       { \textup{\@title}}}          \makeatother  \title{\large{Title}}    \makeatletter \def\printauthor{     {\large \@author}} \makeatother  \author{%     \textup{dt. Giacomo Del Bianco} \\     \textup{Research \& Development \footnotesize{\textsc{Reactive Hot-Melts}}} \\     \vspace{50pt}     \textup{\today}\\     }   %%% Headers and footers \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{lastpage}     \lhead{} \chead{} \rhead{} \footnotesize{\lfoot{\footnotesize ~\scshape{\piedipagina} $\cdot$ \footnotesize\today}} \cfoot{} \rfoot{\footnotesize Page \thepage\ of \pageref{LastPage}} \renewcommand{\headrulewidth}{0.0pt} \renewcommand{\footrulewidth}{0.4pt}   \setkomafont{sectioning}{\rmfamily\bfseries\boldmath}    \usepackage[runin]{abstract} \setlength\absleftindent{10pt} \setlength\absrightindent{10pt} \abslabeldelim{\quad} \setlength{\abstitleskip}{-10pt} \renewcommand{\abstracttextfont}{\small \slshape}  \textheight = 22 cm   \renewcommand{\figurename}{Figura}  \renewcommand{\listfigurename}{Indice delle figure}  \renewcommand{\listtablename}{Indice delle tabelle}   %%% Start of the document \begin{document} \end{document}


Using DataTable to evaluate string equation

I have this TextBox where you can type in something like "1 + 2 + 3". I want the program to evaluate the answer (6 in this case) and assign it to a var. Then output the answer to a TextBlock. Tried the following but I'm getting a red underline under DataTable. It says 'DataTable' does not contain a constructor that takes 0 arguments  using System.Data;      private void ButtonCalculate_Click(object sender, RoutedEventArgs e)     {         string equation = textBoxEquation.Text;         var answer = new DataTable().Compute(equation, "");         textBlockAnswer.Text = answer;     }


I need to find: $$\frac{d}{dx} x!$$  Is there a way to find this? If not, is there a proof that shows we cannot find it?  The graph of $x!$ Function


Need a word for when an event or situation that is very unlikely to happen, happens

I need a word for when an event or situation that is very unlikely to happen, happens. For example, let's say the nerdy kid in school, who is an outcast with no friends, dates the popular girl in school. From a stereotypical view point, the likely hood of a "nerd" to date the popular girl in school is very unlikey, but what if it did happen? Is there a word for this type of scenario?


Why can I see my own deleted answers but not questions?

When deleting an answer, even after refreshing the page I still see it (but with red background and such). But with questions, the behavior is different, yielding a 404 error and such.   For instance, one of my deleted questions:    I can't see it at all. I get "page not found".  Why is this behavior inconsistent? What harm is there in me being able to see my own deleted questions? It'd be nice to be able to bookmark a deleted question and come back to it, seeing what you wrote and deciding if you want it undeleted. With answers you can do that, but not questions.


Looks like there are problems on imgur     Ironically I try to post the printscreen here   Show the following error     Failed to upload image; an error occured at imgur   Seem to have happen before but with different message, so I report it just in case.


Transiting through Heathrow airport with a Bangladeshi passport and Canadian Student Visa

I would be helped a lot if you could answer to my question.  Would I be able to transit through Heathrow airport without a transit visa for travelling to India from Canada having a Canadian Student Visa on Bangladeshi passport? I would have a layover of 4 hours.  I have read that a passenger from a certain group of countries having a Canadian visa would be able to transit through Heathrow airport with any visa. I want to be sure of my finding.  Much thanks. I really appreciate your time.


What is causing the white on the left of this page filling picture?

I am trying to make a page filling picture with a relative coordinate system. I used geometry to set the margings to 0pt and am drawing the picture using tikz. It almoast worked, but I can still see white at the left of the page and I can't explain why.  MWE:  \documentclass[12pt]{article} \usepackage[a3paper,margin=0pt]{geometry}%No margins, A3 paper \usepackage{tikz} \usetikzlibrary{arrows.meta,backgrounds,positioning,shadings} \begin{document}% \begin{tikzpicture}[x=0.01\paperwidth,y=0.01\paperheight, very thick]%Coordinates relative to paper size     \fill[color = green!70] (0,0) rectangle (20,100);%(0,0) should be at the very left of the page, but it is't.         \fill[left color = green!70,right color =blue!50] (20,0) rectangle (26,100);         \fill[color = blue!50] (26,0) rectangle (72,100);         \fill[left color =blue!50, right color = red!60] (72,0) rectangle (78,100);         \fill[color = red!60] (78,0) rectangle (100,100); \end{tikzpicture}% \end{document}   Output:   I did not expect to see that white bar at the left of the page, since I thought I had specified the coordinates in such a way that (0,0) is at the very left of the page. What went wrong?


How to know current Email governor limits?

I am using SingleEmailMessage api for sending emails. I want to know the email limit quota usage, so that I can prevent further exceptions. Is there any way to know the quota usage in apex, so that I can handle exception with ease.


Why does Saruman travel to Fangorn forest?

When Aragorn, Gimli and Legolas find the dead bodies of the orcs that they had pursued to the edge of Fangorn, they see an old man robed in white:     Suddenly Gimli looked up, and there just on the edge of the fire-light   stood an old bent man, leaning on a staff, and wrapped in a great   cloak; his wide-brimmed hat was pulled down over his eyes. Gimli   sprang up, too amazed for the moment to cry out, thought at once the   thought flashed into his mind that Saruman had caught them   It is implied in the book (though never verified AFAIK) that this was Saruman, particularly since Gandalf confirms that it was not him     "You certainly did not see me," answered Gandalf, "therefore I must   guess that you saw Saruman."   So if it was indeed Saruman, why would he travel all the way to Fangorn alone? Orthanc to Fangorn is not a short journey and he also had the Palantir at his disposal so what is the purpose of his being there (assuming that it is indeed Saruman).


I understand that you have to have visas to enter some countries, but I was wondering whether you have to pay for each visa separately or you can get a visa to go everywhere. You see videos and lists on what you should pack to travel the world, but no lists on the documentation needed.


Is it possible to make re find the smallest match while using greedy characters

Disclaimer: I'm not a regex expert.  I'm using Python re module to perform regex matching on many htm files. One of the patterns is something like this:  <bla><blabla>87765.*</blabla><bla>   The problem I've encountered is that instead of finding all (say) five occurrences of the pattern, it will find only one. Because it welds all the occurrences into one, using the <bla><blabla>87765 part of the first occurrence and the </blabla><bla> part of the last occurrence in the page.  Is there any way to tell re to find the smallest match?


what are the chances of healer to target P.E.K.K.A or Archer Queen?

Assume that there is a attack going on, with 3 P.E.K.K.As and an Archer Queen. Now, I planed to throw a healer in the middle of the Archer Queen and a P.E.K.K.A locked on two air defences, what are the chances that healer targets Archer Queen and left the P.E.K.K.A (If the other P.E.K.K.As are locked in the core )??  EDIT- I have seen  but it have'nt helped as my question is different, as if the healer is thrown at a distance that the Archer Queen and P.E.K.K.A are at same distance which will healer heal first?? (I probably want the healer to target the Archer Queen).


Is there any difference between "To like for somebody/something to be something" vs. "to like somebody/something to be something"?   In the following case there seems to be a difference, because the former seems to suggest that one would like so for the sake of the other, and latter for ones own.          "I would like for you to be happy" vs. "I would like you to be happy"  Here, the above distinction makes no sense, since the weather is inanimate. Is the former a valid thing to say at all?     "I would like for the weather to be nice" vs. "I would like the weather to be nice"


How can screenshots/video taken from a 3DS XL be uploaded to a computer?

I see people uploading videos and images of 3DS games all the time.  I also see Twitch and Youtube videos of people showing off their top and sometimes even their bottom screens to the viewers.  How does someone record or stream their top and/or bottom screens? If screenshots are taken on the 3DS, how are they uploaded to a computer (USB charger?)?  Are special cords or accessories needed to do this?


"Natural Places" data for rivers, lakes, mountains, trails, etc. (everything except city/road/etc. data)

Wondering if there are any data sets for world that describe places like named mountains, rivers, lakes, parks, etc. I know a little of , but it only seems to barely cover the national parks and just high level things. I'm looking for the level of detail found on :    If not, I'd be interested to know how they did that.


How do I disable the boot splash screen, and only show kernel and boot text instead?

I'd like to be able to disable the Ubuntu splash screen that I see on boot with the indicator meter of progress, and replace that with a text-only readout of the boot up process (such as you can get by hitting the esc key during the splash screen).  Is this possible?  I am not asking to disable X and get to text-only login, I"m asking how to deactivate the "Ubuntu" loading screen with the dots, so that I can see text output from the boot process - processes being started, kernel messages, etc.  When I wrote this question I was not asking how to disable X altogether, only the boot splash screen.


How to install a single SSL certificate for www and non-www

I have purchased an SSL certificate and I should be able to configure IIS 7 to use that certificate for both  and   I have looked online but didn't find a solution so far. Is this possible to do? According to the company that issues SSL, a single SSL can be used in both cases.  Thank you


I am traveling with Turkish Airlines (return ticket) from Saudi Arabia to Pakistan. Can I visit Istanbul during my layover time (15 hours)? I am a Pakistan national and I have a resident permit of Saudi Arabia.


On the group of all complex roots of unity whose orders are powers of $p$, prime number

$A=\{z\in\mathbb{C}: z^{p^n}=1\;\mathrm{for\;some\;integer}\;n\geq1\}$. I have to prove:  1) Every proper subgroup of $A$ is cyclic,  2) if $B,C$ are subgroups of $A$ then $B\subseteq C$ or $C\subseteq B$,  3) for every $n\geq0$ there exists an unique subgroup of $A$ with $p^n$ elements.  Could you help me please?


Connecting a Gas Dryer to a Propane Tank

I have a gas dryer for sale, but do not have a gas line hook-up. Can I use a small propane tank to test the dryer for potential buyers?


Favorite tags selection in navigation bar & feed for android app

When using the web interface, there is a favorite tags section where you can select a list of tags that you view most frequently.  This has become a cornerstone of my normal  on stack overflow, but it doesn't look like this is possible in the Android app.  There should be a mechanism by which you can add some favorite tags to the nav bar. Clicking these tags will take you to a list of similarly tagged questions.  Perhaps also the feed should include a section for each favorite tag.  These would be presented on their own, much like how "hot new questions" and "new unanswered questions" appear in the feed.  Perhaps something like this:


Find the linear recurrence of degree at most 2 for the following sequence

Suppose $a_0,a_1,a_2$ satisfy the recurrence $a_n = 3a_{n-1}-3a_{n-2}+a_{n-3}$ for $n\ge3$   Let $c_n=a_{n+1}-a_n$ for $n\ge1$ and $c_0=0$   Find a linear recurrence of degree at most 2 for the sequence $c_0,c_1,c_2,...$  I'm not entirely sure what they are asking for but I think it is asking for a recurrence relation for $c_n$ where the characteristic polynomial has degree at most 2.  I tried finding a closed form for $a_n$ to try and get rid of the $a_n$ in the $c_n$ equation, but I can't figure it out when the initial conditions aren't specified ($a_0,a_1,a_2$)  Any help would be appreciated!


Typesetting double brackets and double parentheses

I need the LaTeX equation with double square bracket and double paranthesis. Can anyone suggest me the proper code? Here, I had attached the screenshots.


How do I, as a player, encourage my fellow players to role play?

I am a player in a group of 5 +1 dm. Three of them are wonderful, as well as the DM. They role play, provide commentary, and are great sports when it comes to the game.  The last two are a bit more problematic. They don't seem to know how good the game is when you actually act, rather than simply stating "I.. [generic action]" followed by an immediate die roll without prompt from the DM. Allow me to clarify.  The first one is energized, and is the kind of person that is always everything everywhere just because. Normally I don't have a problem with those who won't stop talking, but he will not stop cracking inappropriate jokes (usually on the subjects of porn and the like), even after every player collectively has told him it's an issue. Simply put; one who does not take the game seriously, and is rather crude.  The second one is a phone-looker. The ONLY time that he looks away from his phone is when it's his turn in combat. I'm not embellishing at all, most of the time, he's not even at the table. I talked to the DM and he agrees it's a problem, but the DM is far too shy and frankly a big pushover to speak up.  With the two types of players above, how do I, as a player, NOT a DM, shape them up to enjoy the game more via more serious participation? Please note I'm not looking for suggestions to give to my DM, but rather actions that I as a player can take initiative on. Answers involving both me and the DM are applicable, but they should hinge on an integral part by the player.  For reference, we're running Dungeon of the Mad Mage in D&D 5e.


How to prove that the following sequence converges?

Let $u_1$=2 and $u_{n+1}=2+\frac{1}{u_n}$ for $n\geq 1$. Prove that the sequence converges to $\sqrt{2} +1$. I have no clue how to do it,probably using Cauchy sequence definition. The hint given in textbook is: $|u_{n+2}-u_{n+1}|<\frac{1}{4}|u_{n+1}-u_n|$ Any help is appreciated!


I don't know how to compute this integral:  $$\int_{0}^{1}\cot^{-1}(1-x+x^2)\,\mathrm{d}x $$  Could somebody provide me with a hint?  Note: $\cot^{-1}(x)$ is the $\text{arccot}$ function.


Why does my grep expression need to use $'string' to match tab characters?

If you take this code:  echo -e '\t\t\tString' | grep '^[\t]*String'   the result is blank because it doesn't match, yet this:  echo -e '\t\t\tString' | grep $'^[\t]*String'   works. I swear that I must have used the first line's code a hundred times in my scripts and in the terminal, without ever using the "$" character like that, and it's always seemed to work. Has there been some recent change? Why does it need the "$" character? Or am I doing something wrong?


I have 2 svg, one svg is the wave, and other one is the people in the background,  i want to combine my svg so its become overlap like this  here is my html code


I have a screenshot where I want only a part of the pasted image, and I want to turn the white that's in it transparent.   First I need to crop the pasted image. I have selected the layer and a rectangle which I want. I can't seem to find the option that crops the current layer to the current selection. What's this called?


why $ax + by$ can take any value if their gcd is $1$

Given 2 integers $a$ and $b$ whose gcd is 1 (coprime). Now the value of $ax + by$ can be any multiple of gcd$(a, b)$, which is 1 in this case. So literally  $ax + by$ can be any integer value. I have verified it for some small coprime numbers, but what is the mathematical reason behind this?


Best method to find out set bit positions in a bit mask in C

What would be the best way to identify all the set bit positions in a 64 bit bitmask. Suppose my bit mask is 0xDeadBeefDeadBeef, then what is the best way, to identify all the bit positions of the set bits in it.  long long bit_mask = 0xdeadbeefdeadbeef; unsigned int bit_pos=0; while(mask) {   if((mask&1)==1) {      printf("Set bit position is:%d \n",bit_pos};   }   bit_pos++;   mask>>=1;  }   One way is to loop through it, and check if a bit is set or not, if it is set, Return the count position and continue looping until the MSB, so for 64 bits, I would iterate until I have all the set bits traversed or all 64 bits traversed, if MSB is set, but there must be a better way of doing it?


Comparing Artin with Dummit and Foote' Algebra text

I am about to take a course in undergraduate Algebra which is using Artin's Algebra.  I have been studying from it and haven't really appreciated the combination of text and problems (granted, I haven't gone too deep into the text).    Now, this is the text for the class, so I would expect a nice compliment from the lecture to go along with Artin.  I was thinking about getting Dummit and Foote, which seems to have high praise across the board.  What are the strengths and weaknesses of Dummit and Foote, compared to Artin?  Is there a better text for a class at this level?  EDIT: I really don't want a recommendation for another text, but how does Artin compare to other texts.


It seems that both 49.9Ω and 50Ω resistors are a thing:     Given that they're typically 1% tolerance, why have both? In particular, why even bother with 49.9Ω?


Need help finding a standardquote about reserved Identifiers in C++

The coding convention at the company I'm working for requires to let any private member variable have the prefix _. I know that it is forbidden in plain C and I also know the text from the ISO/IEC:9899 where it is stated as reserved.  I was looking up in the N3690 document for finding anything stating about it, but I couldn't find. So I wasn't able to find anything that forbids me using this prefix in C++ standard, but I might just have overlooked something that was stated like "C++ behaves in regards to ........ same as mentioned in the C standard section....."  So I'm just asking you for helping me finding the exact phrase for C++ (11 preferred) that is reserving the _ same as it is in C.  Since C++ implements libraries and all this stuff from C, it feels wrong using identifier in C++ that are explicitly stated as reserved in C. But for criticizing our coding convention I should at least be able to find a base against it, but currently I'm just able to argue. (And can't even verify that I'm right so far regardless of I couldn't imagine that I'm wrong.)


What can I do against moderators with double standards?

On Arqade I re-edited a question title to make it a tad clearer, . I was heckled to oblivion, with comments telling me that titles were up to the OP in the end, and it was not my place to judge that.  So I went back to a previous question that had had a title that was in line with what the meta post suggests, a question that I had asked, changed the title back to the first title I had picked, and then the moderators banned me right away.  For no apparent reason, except to say, double standard.  They told me I had no right to judge the original askers intent, yet they judged my intent on my very own question.   What do I do in this case? The moderators that have banned me have made baseless claims, accusing me of trolling, when in fact, the same moderator who has banned me has trolled me before, making rude, accusatory comments directed towards me in the past.


Is it ok to use caulking instead of tape and mud on my new drywall ceiling?

My contractor told me it's much cleaner to use caulking instead of mud/tape on my new ceiling. He's not talking about the corners. He's talking about where the seam of the drywall sheets meet. I've never heard of this method. Is this acceptable?


Can I buy a plane ticket from A-B-C but get on the plane at B?

I'm planning a trip to South-Korea in April. I was looking at flight ticket prices and found that I can go from Brussels to Seoul (and back) for about 600€. It lands in London however. I then tried to find the same flight but from London (I was expecting I could get the price even more down if I'm not doing BRU-LHR), but no search engine found it and the cheapest was at about 700€.  Here you can see what I'm talking about in action:    It's the same date and everything, and it's much cheaper from Brussels although it lands in London.  Question: This seem really strange.  Why does this happen, and is it possible to buy the ticket from Brussels but only get on the plane from London?


List<RPC> mrpcs = new ArrayList<>();  rpcs = hibernateSession.createQuery("FROM RPC").list();   This gives me a warning. The Intellij's solution is to change List<RPC> to List  I want to avoid warnings on my program.  Should I keep like this or change it?


Get secret_value from multiple hashes md5(known_value_n + secret_value)

The attacker knows multiple hashes like md5(known_value_n + secret_value), for multiple known values. Does it help him to discover secret_value better then just single md5(known_value + secret_value)? secret_value is long enough, 20-30 characters.


To do DataBinding of the Document in a WPF RichtextBox, I saw 2 solutions so far, which are to derive from the RichtextBox and add a DependencyProperty, and also the solution with a "proxy".  Neither the first or the second are satisfactory. Does somebody know another solution, or instead, a commercial RTF control which is capable of DataBinding? The normal TextBox is not an alternative, since we need text formatting.  Any idea?


Meaning of $\gtrless$ in the context of multiple hypothesis testing

While reading a paper, I encountered the symbol $\gtrless$, which I had not seen before:    Please point me to a reference or tell me what the symbol and associated symbols above and below means.


Why do Jedi use lightsabers instead of blasters? Blasters seem to be more practical. Is there a special bond or something between lightsabers and Jedi?


Nested OR and AND condition with db_select

How can I convert the following query with db_select   SELECT * FROM 'my_table' WHERE (condition1 < "value1" AND ((conidition2 > "value2") OR (condition3 < "value3")))   OR (condition4 < "value5" AND ((condition6 < "value6") OR (condition7 < "value7")))   I am trying with  $query = db_select('mytable');  $query->condition(           db_and()->condition("condition1","value1")                  ->condition(                              db_or()->condition("condition2","value2")->condition("condition3","value3")                              )); $query->condition(           db_and()->condition("condition4","value4")                  ->condition(                              db_or()->condition("condition5","value5")->condition("condition6","value6")                              ));    $query_debugg = $query->__toString(); dpm($query_debugg);   issue is with the "AND" in between where is should be "OR", it is expected I know.how can I change it  Output String  SELECT  FROM  {mytable} mytable WHERE ( (condition1 = :db_condition_placeholder_0) AND( (condition2 = :db_condition_placeholder_1) OR (condition3 = :db_condition_placeholder_2) ))AND( (condition4 = :db_condition_placeholder_3) AND( (condition5 = :db_condition_placeholder_4) OR (condition6 = :db_condition_placeholder_5) ))


Do placed units increase in damage when you level up the ability?

For spells like Heimerdinger's turret and Shaco's boxes, say I place the unit then level up the ability. Do the existing placed units increase in damage, or does the ability level up only apply to units placed after leveling up?  This question is asking for all placeables, not just traps.


Installing missing packages automatically in TexLive

How can we get all the missing packages automatically installed with TexLive.  This option exists in  MikTeX.  Is there some comparable way of doing this using TexLive?  I am on linux mint.


Is $\sqrt{4 + 2\sqrt{3}} - \sqrt{3}$ rational?

Is there a method to proving whether nested roots like $\sqrt{4 + 2\sqrt{3}} - \sqrt{3}$  are rational or not?  For simpler radicals, I can try using a contradiction, assume that they do equal some rational number and use algebra to simplify and show how one side of the equation is clearly rational but the other reduced to some well known root, like 2 or 3, and conclude irrationality.


I am writing my cv and with the following code   \documentclass[11pt,a4paper]{moderncv} \moderncvtheme[green]{classic}                   \usepackage[utf8]{inputenc}                   \usepackage{floatflt} \usepackage{fancyhdr}  \usepackage{geometry} \geometry{a4paper,left=2cm,right=1cm, top=2cm, bottom=1.5cm,headheight=21pt}  \usepackage{tikz}  \usepackage{wrapfig} \usepackage{lipsum}  \firstname{C} \familyname{N} \title{Curriculum vit\ae{}}               \address{}{}   \photo[128pt]{picture}           \usepackage[english]{babel}                \begin{document}   \section{studies}  \cventry{Dec 01, 2010 -- Jan 01, 2011}{student assistant}{}{}{}{chair of statistics xxxx \newline student assistant as a tutor of statistics 2 } \cventry{Jul 31, 2008 -- Sep 30, 2011}{matriculation Bachelor of Science x}{}{}{}{university of x}      \end{document}   I produce the following output    What I don't like is the line breaking of the date. In the first entry the "-" is in the second line and in the second entry it is in the first line. So I would prefer a more uniform formatting, so that the "-" is either in the first line or in the next line, but always the same and not switching. Any ideas?


Finding the limit of $\frac {n}{\sqrt[n]{n!}}$

I'm trying to find  $$\lim_{n\to\infty}\frac{n}{\sqrt[n]{n!}} .$$   I tried couple of methods: Stolz, Squeeze, D'Alambert  Thanks!  Edit: I can't use Stirling.


I have an email application that will be called upon to deliver to the UI the number of new messages for a given user on each page load. I have a few variations of things I am testing on the DB level but all are abstracted by the stored proc call.  I'm trying to slam the DB to see what the breaking point (# of requests per second) would be.   In a nutshell, I have a table such as this userId, newMsgCount with a clustered index on userId. SQL should be able to server hundreds or thousands of these responses per second. I think the laggard is my .NET app.  How can I make this a good test to achieve the test results based on SQL performance?  Is there a tool for this that i can give it a stored proc name and param for it to pund my  DB?  I want to see if the DB can return a min. of 250 responses per second.


Featured MSE posts are not listed in the sidebar of child Meta sites

Stack Overflow currently shows two featured posts in the sidebar under Featured on Meta:   MSE: A proposed philosophy of question migration MSO: Documentation Update, September 29th   Meta Stack Overflow only shows one featured post:   MSO: Documentation Update, September 29th   Can you make it list MSE posts as well? I'm tagging this as a bug, but not sure whether it's intentionally missing.


I restarted migration assistant, do I need to delete data from the first transfer?

I recently bought a new Mac, and was using the migration assistant to transfer all the stuff from my old Mac. I forgot to plug one of the computers in though, so the transfer got stopped (and wouldn't start again) when it died. I just set it up to restart, with both of them plugged in. It has about 9 hours remaining (out of 12).  My question is... is there going to be data on the harddrive somewhere from the first (failed) transfer? I'd hate to already be cluttering up a new computer. If the data is there somewhere, how do I go about deleting it?  Thanks!


[question:]      Prove by induction that the i th Fibonacci number satisfies the equality $$F_i=\frac{\phi^i-\hat{\phi^i}}{\sqrt5}$$where $\phi$ is the golden ratio and $\hat{\phi}$ is its conjugate. [end]  I've had multiple attempts at this, the most fruitful being what follows, though it is incorrect, and I cannot figure out where I am going wrong:  [my answer:] What follows is an incorrect approach, after which comes the approach that I should have done  Inductive Hypothesis: $$F_i=\frac{\phi^i-\hat{\phi^i}}{\sqrt5}, i\in\mathbb{N}  $$   (I include 0) Base case: $$F_0=\frac{\phi^0-\hat{\phi^0}}{\sqrt5}=0$$  Proof: $$\begin{eqnarray*} F_{i+1}&=&\frac{\phi^{i+1}-\hat{\phi^{i+1}}}{\sqrt5}\\ &=&\frac{\phi*\phi^i-\hat{\phi}*\hat{\phi^i}}{\sqrt5}\\ &=&\frac{\frac{1+\sqrt5}{2}*\phi^i-\frac{1-\sqrt5}{2}*\hat{\phi^i}}{\sqrt5}\\ &=&\frac{\frac{\phi^i+\sqrt5\phi^i}{2}-\frac{\hat{\phi^i}-\sqrt5\hat{\phi^i}}{2}}{\sqrt5}\\ &=&\frac{\frac{\phi^i+\sqrt5\phi^i-\hat{\phi^i}+\sqrt5\hat{\phi^i}}{2}}{\sqrt5}\\ &=&\frac{\phi^i+\sqrt5\phi^i-\hat{\phi^i}+\sqrt5\hat{\phi^i}}{2*\sqrt5}\\ &=&\frac{1}{2}\left(\frac{\phi^i+\sqrt5\phi^i-\hat{\phi^i}+\sqrt5\hat{\phi^i}}{\sqrt5}\right)\\ &=&\frac{1}{2}\left(\frac{\sqrt5\phi^i}{\sqrt5} + \frac{\sqrt5\hat{\phi^i}}{\sqrt5} +\frac{\phi^i-\hat{\phi^i}}{\sqrt5}\right)\\ &=&\frac{1}{2}\left(\phi^i+\hat{\phi^i}+F_{i}\right)\text{   by inductive hypothesis}\\ &=&\frac{1}{2}\left(\sqrt5*...\right)\\ \end{eqnarray*}$$ Actually I just saw my error in that line (I eventually multiplied by $\frac{\sqrt5}{\sqrt5}$ and  substituted for $F_i$, but I see that the conjugates are added there, not subtracted).  Correct approach: $$\begin{eqnarray*} F_{i+1}&=&F_{i} + F_{i-1}\\ &=&\frac{\phi^i-\hat{\phi^i}}{\sqrt5}+\frac{\phi^{i-1}-\hat{\phi^{i-1}}}{\sqrt5}\\ &=&\frac{\left(\phi+\hat{\phi}\right)\left(\phi^i-\hat{\phi^i}\right)-\phi\hat{\phi}\left(\phi^{i-1}-\hat{\phi^{i-1}}\right)}{\sqrt5}\text{ (see answer for why this works)}\\ &=&\frac{\phi^{i+1}-\phi\hat{\phi^i}+\hat{\phi}\phi^i-\hat{\phi^{i+1}}-\phi^i\hat{\phi}+\phi\hat{\phi^i}}{\sqrt5}\\ &=&\frac{\phi^{i+1}-\hat{\phi^{i+1}}-\phi\hat{\phi^i}+\phi\hat{\phi^i}-\hat{\phi}\phi^i+\hat{\phi}\phi^i}{\sqrt5}\\ &=&\frac{\phi^{i+1}-\hat{\phi^{i+1}}}{\sqrt5}\\ \text{Q.E.D., punk problem.} \end{eqnarray*}$$  From what I searched on the web, there is no available source proving this of the Fibonacci sequence - all inductive hypothesis proofs prove the actual sequence with induction.   Bill, it's always easy to forget about the inherent properties of special numbers... I didn't even realize $\phi$ + $\hat{\phi}$ = 1 in your first hint, as well as the multiplication, until you pointed it out. Alex, I'm sure that going through the problem that way will produce the result, also, but with Bill's, it's much faster.    Thanks for the help.


PHP: how to convert php file to PDF file

i want to send an email with a PDF attachment.but the file is a php file which generated dynamically.so i want to convert the php file into PDF..  i have used phpmailer here.  $mail->AddAttachment("view.php");    how to convert view.php to a pdf file


14.04 Parallels and VirtualBox resolution issues

I recently installed Ubuntu 14.04 on Parallels and VirtualBox. Been trying multiple methods to fixing the resolution with no luck. I am running both these VMs on my mid-2013 MBPr: Intel Iris:   Chipset Model:    Intel Iris   Type: GPU   Bus:  Built-In   VRAM (Total): 1024 MB   Vendor:   Intel (0x8086)   Device ID:    0x0a2e   Revision ID:  0x0009   Displays: Color LCD:   Display Type: Retina LCD   Resolution:   2560 x 1600   Retina:   Yes  I have tried editing my xorg.icof file (never did exist in /etc/X11/ in the first place) -  Tried making sure I added the refresh rate to the file, usually leads to the system not letting me login in. The resolution seems great when I'm installing Ubuntu for the first time. But the moment I reboot it and it logs into my user. It's stuck in 640x320. It's hard to even get around and change settings since I can't see but a fourth of pop-up windows.


Why do the eigenvalues of $A^TB$ equal the nonzero eigenvalues of $AB^T$?

Given two matrices, $A,B\in\mathbb{R}^{m\times n}$ where $m>n$, why do the eigenvalues of $A^TB$ equal the nonzero eigenvalues of $AB^T$?  Essentially, why do the eigenvalues of the inner product between matrices equal the nonzero eigenvalues of the outer product between two matrices?


In previous releases of Ubuntu, I used Ubuntu Tweak to change the paths to the user folders (Music, Documents, Videos, etc). I can't find an option in Gnome 3 to do this, and Ubuntu Tweak's ppa still has no version for Oneiric.


What is the relationship between a gravitational wave and a graviton?

Gravitational waves were theorized a century ago and recently discovered, leading to the awarding of the 2017 Nobel Prize in Physics. According to :     Gravitational waves transport energy as gravitational radiation, a   form of radiant energy similar to electromagnetic radiation.   The comparison to electromagnetic radiation makes me think that gravitational waves must be describable in  as well. It also makes me think that the particle form must be the long-rumored . Yet, about the graviton, Wikipedia has to say:     the graviton is a hypothetical elementary particle   I understand that relativity and quantum mechanics are not well integrated, and that this gravitational wave is a macro-scale phenomenon that, experimentally, doesn't have much to do with particles. But I have basically no understanding of how gravity is interpreted in quantum mechanics (it seems like you can ignore it at such small scales).  Shouldn't the detection of a gravitational wave be evidence in favor of the existence of its corresponding particle? Can gravitational waves be used to 'prove' the existence of the graviton particle?


Why do we say "It's time we ate" and not "It's time we eat"?

Why do we use the simple past but not the present or future in the following expressions:  Don't you think it's time we went a little further Don't you think it's time we ate Don't you think it's time we went home


Is there a way like wrap the line after at most 60 letters but it should not break inside some commands like listings does?  Example:      \documentclass[a5paper]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{listings}     \usepackage{xcolor}      \lstset{%       language=[LaTeX]TeX,       backgroundcolor=\color{gray!25},       basicstyle=\ttfamily,       breaklines=true,       columns=fullflexible     }      \begin{document}     \begin{lstlisting}     The roadrunner is the fastest running bird \remark{Check this again with a zoologist!}.     \end{lstlisting}     \end{document}   Output:      The roadrunner is the fastest running bird         remark{Check this again with a zoologist!}.   That should not happen! In my eyes this problem is not discussed in .


The sum of several consecutive positive integers is equal to 1000 . Find all such numbers.    I don't know where to start , and how to start in solving this question. So please help.


I Have a problem at the installation of Ubuntu 17.00 with windows 10 .  What is the problem please !!


Problem  sudo notify-send Test "Hello World"   Displays a notification as expected.  notify-send Test "Hello World"   Does not display a notification.  Further information  Ubuntu version 16.04.  The notifications appear to use notify-osd instead of notification-daemon. Running notify-send appears to launch a notify-osd process under the user that ran notify-send. I'm not sure what dbus is.   No error messages  There are no errors in the syslog. When I run the following code no error messages occur.   #include <libnotify/notify.h> #include <stdio.h> int main() {     gboolean x = notify_init ("Hello world!");     printf( "notify_init: %d\n", x );     NotifyNotification * Hello = notify_notification_new ("Hello world", "This is an example notification.", "dialog-information");     GError *err = NULL;     x = notify_notification_show (Hello, &err);     printf( "notify_notification_show: %d\n", x );     if(err != NULL) {         printf("Error detected!\n");         printf("Error message:%s\n", err->message);     }     else {         printf("No error detected.\n");     }     g_object_unref(G_OBJECT(Hello));     notify_uninit();     return 0; }   I do not know what I'm doing. Thanks for the help.  Python Notify  In the past, I've used a python program that has working notifications. I tested a hello world notification and it works without sudo!   #!/usr/bin/env python # -*- coding: utf-8 -*- import gi gi.require_version('Notify', '0.7') from gi.repository import Notify  Notify.init("test") n = Notify.Notification.new('test', 'test2') n.set_urgency(Notify.Urgency.CRITICAL)     n.show()   Code from   I am not sure why this works. The python Notify is just wrapping the library used in the C example. I'd prefer not to use python but will if I must.  Edit  The problem occurred again. Resolved by adding urgency critical.


Print text file if it exists, or print it does not exist

I am trying to print out the full text of a text file. But if that text file does not exist, I want it to print that it does not exist, otherwise it wont let the rest of the code work. Printing out only the text files works for x in ABC:     print(f"{x}:")     with open("./" + x + "/Log.txt") as f:     print(f.read())  However, when I am trying to see if that file is found, I get an error. This is how I tried to do it (it is wrong) for x in ABC:     print(f"{x}:")     with open("./" + x + "/Log.txt") as f:         if f.empty:             print("No files found.")         else:             print(f.read())


Is there a difference between 'They all had done something' and 'They had all done something'?

So, I preparing for this test and one of the questions is this.  The teacher remarked that they all had done it very badly.  Why is this sentence structure wrong? I found  that expands more on the position of the word all in a sentence.


setting up a database to be shipped in an android app and then have listview pull from it

I want to have a database in my app that my ListView will pull "name" from then display more data elsewhere in the same activity. It is a static database that will not be modified by the user in any way.   How do I make the database and have it in my app when shipped?   Can it be as easy as pulling from a spreadsheet in res/...?


Divisibility, LCM and GCD for fractions (rationals)

how do i find lcm of two fractions?  For example:  $\frac{2}{3}$ and $\frac{5}{8}$


Should Objective-C header include #ifndef macro?

Currently, if I create a header file in Xcode, it creates one with   #ifndef Types_h #define Types_h  // ..    But if I create a Cocoa class, then the header generated is of the form  #import <Foundation/Foundation.h>  NS_ASSUME_NONNULL_BEGIN // ..   Is #ifndef not required in the later case? Does Objective-C automatically include only headers once?


Does $\sqrt{n} \left( \hat{\theta}_n - \theta \right) \overset{d}{\rightarrow} F_\infty$ imply $\hat{\theta}_n \overset{p}{\rightarrow} \theta$?

Suppose  $$ \sqrt{n} \left( \hat{\theta}_n - \theta \right) \overset{d}{\rightarrow} F_\infty, $$  where $\hat{\theta}_n$ is a sequence of random variables, $\theta$ is a constant and $F_\infty$ is some distribution function.   Does this imply that  $$ \hat{\theta}_n \overset{p}{\rightarrow} \theta \; ? $$


Why was this major Star Wars character killed off in The Force Awakens?

Towards the end of the new Star Wars film The Force Awakens,      Kylo Ren kills his father, Han Solo.   This event caused a lot of grief among fans who were devastated to see this character go, and the filmmakers surely anticipated such a reaction.  Why, out of universe, was the decision made to kill off this character?


No new or edited answers after a bounty?

I created a bounty on a question not my own. But since then there has been no updates and I'm still having the problem. There still is no accepted answer either. I'd rather have my reputation disappear then award it to the highest answer since there has been no effort done at all and I'm still left with the issue.  My feature request would be to not award the bounty if there has been no activity at all since the bounty start. Perhaps award it if someone at least attempted to improve it's answer. And perhaps refund the bounty, or have it extended for X days.


How do you type Unicode characters using hexadecimal codes?

This is in Windows, but answers for other operating systems can be handy to others.  Most guides say something to the effect of "hold down the Alt key and type in the code on the keypad".  This works fine for decimal codes (like 65 for 'A'), but not for  codes (like  for 'A').  Some applicatons provide other facilities that will allow hexadecimal Unicode character codes to be typed and then transformed.  Word allows you to type the code (such as 200f) and then convert it to Unicode by typing Alt-X.  I'm looking for a general method of doing this that will work with the standard input.


How do I restart network manager at logon automatically?

After fiddling around for a long time with a recently purchased USB WiFi adapter (a TP-LINK AC 600 Archer T2UH), I have finally got it working under Ubuntu (KDE neon User Edition 5.6), but only by manually restarting network-manager manually after each login using the following commands:  sudo service network-manager stop sudo service network-manager start   Note that if I don't issue the above commands after login, the network manager will still start up normally, but no WiFi networks are detected and I cannot establish a WiFi connection. However, by issuing the above commands I am able to select and connect to an access point normally.  I have tried adding the two lines above to ~/.profile so that I don't have to manually type them in each time I log in, but it doesn't seem to work. Is there anything else that would be worth trying? All I really want at this point is to have the above two lines executed automatically after logging in.  Sorry if the solution is obvious. This is my third day using Linux and I think I've hit my troubleshooting limit. Any help would be greatly appreciated.


Is losing privileges after placing bounty OK?

My rep went over 2,000 today which meant I could edit other people's posts. Great! Then I added a bounty to a previous question, which brought me back down to 1,984...and I can no longer edit other posts. Should this changed? Or is this ideal?


How to make sure graduate admissions committees are able to recognize/verify the material a student has self studied

I posted a similar question at the following  yesterday; since, however, the focus of the question was different, I'm posting this question in a separate post.  It seems as if I'll be taking the next year off and studying a lot of mathematics on my own and apply to graduate schools in the next cycle. There's a lot of advice both on this website and Academia StackExchange for such students. However, I'd like to know how can students who have studied material outside of class better convince the admissions committee of the work they have done thus far. I know it's generally difficult to do this as an international student; the situation must be different for U.S citizens, I suppose.  Assuming I don't get to take courses which I'll be self studying over the next few months, how should I go about making sure the admissions committee take due notice of the work I have done, and more importantly, they can recognize it, if not verify it completely. Of course, I will keep in touch with my math adviser. In addition, what else can I do? Say, I am studying abstract algebra on my own in the summer, working out problems in, say, Dummit and Foote's book. Should I, perhaps, make a website (a Google site), periodically type the solutions to the work I have done and post it online, so when I apply to graduate schools, I can refer admissions committees to this portfolio of sorts.  In a nutshell, I'd like to know, especially for students who have gone through such a process/situation, of the list of best possible set of actions one can do to make sure the work one has done outside of class is duly considered, if someone who is interested in mathematics schools doesn't have a large number of math courses.  Edit:  I have an additional query: I'll be taking next year off, but I'll be able to visit my college. Even though I won't be enrolled in classes, preferably with the instructor(s) who already know me, sit in their classes, work on problem, and perhaps even take exams. even though I won't get a grade, I could ask the instructor to mention in the letter that I completed this task. She could also comment on how well I did relative to my peers. Thoughts?


Parallel examples with glosses on same line

I'm writing a linguistics paper and I need to use the example environment a lot. I have noticed in some papers that examples are presented in parallel, that is with 2 different examples starting on the same line, with glosses under, but I have no idea of how to achieve that myself. I enclose a snip from a paper to illustrate what I mean and what I would like to achieve.   I use the cgloss4e and gb4e packages for example, and the documentation that I've found does not provide any information on this.   A MWE would be:   \documentclass[12]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{cgloss4e} \usepackage{gb4e}  \begin{document}  Some text.   \begin{exe}   \ex \gll Ein hund \\ a dog \\ \ex \gll Un chien \\ a dog \\  \end{exe}   \end{document}   The two examples follow each other, although I would want them to be on the same line.   I've found no questions on this issue on this forum. Any thoughts?


How to prove that $\mathbb{Q}$ is not the intersection of a countable collection of open sets.

I am reading chapter 4 of  and trying to solve question 4.14, in which we are asked to show that:  $\mathbb{Q}$ is not the intersection of a countable collection of open sets. The clue is to use Baire's Category Theorem.  I can't see how to do that, and can't see the connection to Baire's category theorem. Intuitively, I agree that this seems reasonable, since any intersection of open sets is a set with non empty interior (am I right about that?). So, if $\mathbb{Q}$ were an intersection like that it would contain an open interval (again, hope I am right would like to know if not.). But, I guess this is not a proof, and, can't see the connection to Baire's theorem.  Thank you!! Shir


For any point outside of a circle, is there ever only one tangent to the circle that passes through the point? Are there ever more than two such tangents? (I cannot find the exact answer i need. My question does not involve any actual numbers and equations. I just need a direct answer if there is only one tangent to the circle that passes through the point and why/how...) Thank you!


Is it possible (and safe/reliable/non-damaging) to use a 20-pin ATX PSU with a 24-pin ATX motherboard?

I have a reasonably-decent old 20-pin PSU which I want to use on a newer 24-pin ATX motherboard.  I see that the   mentions that 24-pin ATX is backward-compatible, and I can find 20-to-24 pin adapters to buy for a couple of dollars/pounds at lots of places, but I can't find any mention of restrictions on the use of these.  Will this work on any motherboard, or is it a per-motherboard compatibility question?  Are there any other restrictions like the level of power available (and hence the additional 4 pins with +12, +5 and +3.3V lines which are already on other pins)?


Why does SQL Server use a better execution plan when I inline the variable?

I have a SQL query that I am trying to optimize:  DECLARE @Id UNIQUEIDENTIFIER = 'cec094e5-b312-4b13-997a-c91a8c662962'  SELECT    Id,   MIN(SomeTimestamp),   MAX(SomeInt) FROM dbo.MyTable WHERE Id = @Id   AND SomeBit = 1 GROUP BY Id   MyTable has two indexes:  CREATE NONCLUSTERED INDEX IX_MyTable_SomeTimestamp_Includes ON dbo.MyTable (SomeTimestamp ASC) INCLUDE(Id, SomeInt)  CREATE NONCLUSTERED INDEX IX_MyTable_Id_SomeBit_Includes ON dbo.MyTable (Id, SomeBit) INCLUDE (TotallyUnrelatedTimestamp)   When I execute the query exactly as written above, SQL Server scans the first index, resulting in 189,703 logical reads and a 2-3 second duration.   When I inline the @Id variable and execute the query again, SQL Server seeks the second index, resulting in only 104 logical reads and a 0.001 second duration (basically instant).  I need the variable, but I want SQL to use the good plan. As a temporary solution I put an index hint on the query, and the query is basically instant. However, I try to stay away from index hints when possible. I usually assume that if the query optimizer is unable to do its job, then there is something I can do (or stop doing) to help it without explicitly telling it what to do.  So, why does SQL Server come up with a better plan when I inline the variable?