I have seen this example in a number of course material Show that the hypotheses “It is not sunny this afternoon and it is colder than yesterday”, “We will go swimming only if it is sunny”, “If we do not go swimming, then we will take a canoe trip”, and “If we take a canoe trip, then we will be home by sunset” lead to the conclusion “We will be home by sunset”. and the propositions are identified as p - “It is sunny this afternoon” q- “It is colder than yesterday” r- “We will go swimming” s- “We will take a canoe trip” t- “We will be home by sunset” All of them translate the second premise as r--> p. I am not able to understand why. Doesn't the second premise mean " if it is sunny then we will go swimming" and if yes then it should be p-->r or if the second premise is a biconditional then it should be r<-->p


Unable to un-hide base class's member function

I am having a problem that I was not able to re-produce with a small self-contained example. That is, I wrote such an example (appears below), but the small example compiles, while the actual code does not.  I have a function template defined in the base:  template<class ExplicitSpace> struct ExplicitState {     ...     template<class Neighbor>     std::vector<Neighbor> successors() const {...}     ... };   I have the following in the deriving type:  template <typename CostType_> struct GridMapState: ExplicitState<GridMap<CostType_>> {     using Base = ExplicitState<GridMap<CostType_>>;     using Base::Base; // inherit constructors     using Base::successors; // this is supposed to do the trick      ...     std::vector<Neighbor> successors() const {         // return static_cast<const Base *>(this)->template successors<Neighbor>();           // the above commented version compiles         return successors<Neighbor>(); // this does not compile     }     ... };   As the comment indicates, I can explicitly call successors() of the base, but I cannot rely on using Base::successors; to make it visible.  gcc 4.8.2. gives the following:  GridMapState.h: In member function ‘std::vector<StateNeighbor<GridMapState<typename ExplicitState<GridMap<CostType_> >::CostType> > > GridMapState<CostType_>::successors() const’: GridMapState.h:20:35: error: expected primary-expression before ‘>’ token          return successors<Neighbor>();   Here is the small example that attempts to re-produce the problem, but it compiles just fine:  template <typename U> struct A {     template <typename T>     T f() {return T(0);} };  template <typename V> struct B : A<int> {     using MyT = int;     using Base = A<int>;     using Base::f;     MyT f() {return f<MyT>();} };  int main() {     B<int> b;     std::cout << b.f() << std::endl;     return 0; }


Can I take a one-month French language course in Paris if I have a Spanish D type student visa?

I am an Indian citizen holding an Indian passport with a Spanish multi-entry type D student visa for less than 180 days. I secured this visa for a non-remunerable internship, which I have just completed.  My visa is still valid for a little more than a month and I have come to Paris. I am a chef and I wish to do another stage (non-remunerable internship) here in Paris for a month, for which I have already been accepted. At this stage, I need a document called Convention de stage and for this reason I need to join a French language learning course here, which will provide the document. Am I authorized to take this 20-hour per week course and do the internship as well?  From my research and understanding, the type D visa is equivalent to being a resident, in which case I can take the course without having a separate French student visa. Is that correct?


Recently, I migrated a joomla 2.5 site with K2 from a shared host to a dedicated web server with 1 GB of RAM and 8 CPU cores. My problem is now that the website loading is very slow, much slower than on the busy shared server!  Time to first byte is 7 to 10 seconds! But this is only the case for joomla pages. If I put a static page, or even a dynamic page which loads phpinfo for example, it loads in a little fraction of a second.  What I have on the home page is intro of 15 newest articles in the main section plus tag cloud, 15 most read item titles and things like this in modules. I tried to reduce this numbers to just 1 and then the website loads in just 2-3 seconds. It seems the load time increases gradually with number of items being loaded, either in the main section or in the modules. So I guess there is something wrong with MySQL server configuration? I have MySQL 5.5.42 and database type in joomla configuration is mysqli, the same as what I had on the shared hosting.  The mysql server and website are on the same VPS and I am using localhost in joomla configuration. Could anybody advice on this please?


Does a Paladin 3/Fighter 1 get the level 4 ability score improvement?

I'm about to level up in a fifth edition campaign and so far I'm a level 3 paladin. I'm thinking of multiclassing into a fighter instead of increasing my paladin level to 4. I am wanting to know, if I do multiclass into a fighter and not increase my paladin level, will I still get the +1 (to two) or +2 (to one) ability score improvement or not?


What tools, equipment, and techniques do you use to solder fine-pitch SMT parts?

Possibly many questions have been asked on soldering smd parts, but I haven't found specific answers, Like:   Do you use a watchmakers lens or some other type of magnifying glass while soldering these miniature components? What would be most optimum to see a larger picture? How do you solder components where pads lie beneath the package, I don't own a reflow oven and have tried to ignore these packages but can't do that anymore.  Are there any techniques to manually solder BGA, iLCC, CSP amongst others. What tools do you use, apart from tweezers, soldering iron, solder wire, and a bright/ illuminated workplace. Any suitable "third hand" that you have found that makes a monster of a difference? Is there a specific tip thickness to use for the soldering iron, what about the solder wire guage? For prototyping if would not always be feasible to make a pcb, do you solder these components on a veroboard or do you buy a breakout board?   You could add more to these based on your experience and wisdom...  Your turn.


I've opened 21st port, but still can't connect to any ftp server using ftp command.     limmy@Limmy-U:~$ ftp ftp.gnu.org ftp: connect to address 208.118.235.20: Connection timed out Trying 2001:4830:134:3::b... ftp: connect: Network is unreachable   What the reason of it? Thanks      limmy@Limmy-U:~$ sudo iptables -L [sudo] пароль для limmy:  Chain INPUT (policy ACCEPT) target     prot opt source               destination          ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ftp  Chain FORWARD (policy ACCEPT) target     prot opt source               destination           Chain OUTPUT (policy ACCEPT) target     prot opt source               destination          limmy@Limmy-U:~$ ftp ftp.gnu.org ftp: connect to address 208.118.235.20: Connection timed out Trying 2001:4830:134:3::b... ftp: connect: Network is unreachable ftp> exit


How to create augmented matrix in iBook Author using LaTeX

I am very new to LaTeX so please bear with me if my question is rudimentary. I searched through other questions and while this question has been answered the solutions provided did not work for me, the solutions specifically at  did not work in iBook Author. This question is how to make an augmented matrix in iBook Author which has minimal support for LaTeX. I am working in iBook Author and am trying to add an augmented matrix. I can get the matrix to display but not the horizontal line. The use of "array" has not worked for me as it is not supported by iBook Author. In iBook Author, there is no need to enter \documentclass, \begin{document}, etc. which is why it is not included in my example.  This is what I use to get the matrix but I need it to be an augmented matrix with a continuous vertical line separating the 4th digit in each row:  \begin{bmatrix} 4 & 8 & -12 & 4 \\ 3 & 5 & 6 & 7 \\ 2 & 5 & 3 & 8 \\ \end{bmatrix}   I have tried using "array" as well as "ccc|c" and nothing has worked. Any help provided would be greatly appreciated. Thank you.   Please see the screen cap below from the text file, created using Word for reference to what I am trying to achieve.


How to edit current command in terminal with some editor?

Let a long command in a default ubuntu terminal (gnome-terminal?). I need to edit this command in some editor (vim?) and run. So, I can copy the current line to the clipboard, start vim, insert the command to it, edit the command, copy it to the clipboard and paste it to the terminal prompt and run. Is there a simpler way to edit the current command with some editor?


Thesis template to B5 paper size. What about margins?

I successfully changed the paper size from A4 to B5 of the Thesis template downloaded from   I modified the main.tex file by setting twoside and adding the following lines:  \usepackage{calc} \usepackage[dvips=false,pdftex=false,vtex=false,b5paper]{geometry} \geometry{bindingoffset=5mm} \usepackage[cam,b5,center,pdftex]{crop}   The margins are set in the Thesis.cls file at line 74. The default values for A4 paper are:  \setmarginsrb  { 1.5in}  % left margin                { 0.6in}  % top margin                { 1.0in}  % right margin                { 0.8in}  % bottom margin                {  20pt}  % head height                {0.25in}  % head sep                {   9pt}  % foot height                { 0.3in}  % foot sep   which have been modified to:  \setmarginsrb   {4.7cm} %leftmargin                 {3.4cm} %topmargin                 {3.4cm} %rightmargin                 {3.4cm} %bottommargin                 {15pt}  % head height                 {0.15in}  % head sep                 {9pt}  % foot height                 {0.3in}  % foot sep   These settings produced a page layout like the following.  The questions are:   What are the correct margins for the B5 paper size? My University does not provide any information. With the settings I made in the main.tex and Thesis.cls, it seems I can change only left and right margin, because nothing seems to change by modifying the other parameters. Did I mess up with the code?


Is there a good way to manage and store RAW photo files to the cloud?

I love my Nikon d7000, takes great images. I upgraded from a 6MP D50 and one thing I was not prepared for was the huge amount of disk space that collections of 16MP files were going take up. I use Aperture 3 and now Lightroom 5 for my photography workflow. Both are great but the real bottleneck is deciding how and where to archive the RAW files. I've tried backing up LR catalogs to cloud accounts but there were literally 45k files that had to be transferred and whole process was incredible show because of the amount and size of the files. The best thing I'v come up with is to just use an external drive but in this cloud age there has to be a better way, no?


I am looking for a solution to separate the tag names by comma. The tag name i am using is without a link. Here goes the code:  <?php $my_tags = get_the_tags();?> <?php echo $my_tags[0]->name?><?php $count=1; foreach ($my_tags as $my_tag) { if ($count != 1) {?> <?php echo $my_tag->name?> <?php } $count++; } ?>   The above code i got it from this page --> . But, the outcome is without a comma(,) if there are more than 1 tag.  Any solutions? Thanks!


Putting a simple if-then-else statement on one line

I'm just getting into Python and I really like the terseness of the syntax. However, is there an easier way of writing an if-then-else statement so it fits on one line?  For example:  if count == N:     count = 0 else:     count = N + 1   Is there a simpler way of writing this? I mean, in Objective-C I would write this as:  count = count == N ? 0 : count + 1;   Is there something similar for Python?  Update  I know that in this instance I can use count == (count + 1) % N.   I'm asking about the general syntax.


While modifying a node script I inadvertently created a directory with files in it called "Test..".  I have tried deleting it from explorer and it just tells me:     Could not find this item   This is no longer located in c:\myparentfolder. Verify the item's location and try again.   But the directory is still there. Couriously if I create another directory called "Test" and then delete "Test.." from explorer, it will delete "Test" and leave "Test..".  I have also tried rmdir /s /q "Test.." but it just tells me that      The system cannot find the file specified.   How can I remove this folder?


Do retail investors have any use for market orders when they could use marketable limit orders instead?

If a retail investor wants to take liquidity, should they use market orders, or marketable limit orders? Retail investors do not always have the internet connection speed necessary to be updated on the latest market movements, especially when the market is moving quickly. A market order could execute at a wholly unfavorable price. In contrast, a marketable limit order prevents trading at unfavorable prices. Marketable limit orders take liquidity just like market orders, while having the advantage of preventing regret caused by outdated market information from slow internet connections. For retail investors, is there any use for market orders when marketable limit orders could be used instead?


Marking a command as a variable in order to be reused within piped or separate commands

In Linux, would it be possible to create a multi-pipe command, serving the same type of command ie: grep however different output alteration done to it?  Strict example:  grep 10-Feb file.txt | awk '{print $2}' | cut -d . -f 1,2 | sort | uniq -c | sort -rn | head -20 ;  grep 10-Feb file.txt | awk '{print $2}' | sort | uniq -c | sort -rn | head ;  grep 10-Feb file-txt [..]   Would it be possible to make the first grep and path an argument, and make it automatically apply to the following commands?   $=[grep 10-Feb file.txt] | awk '{print $2}' | cut -d . -f 1,2 | sort | uniq -c | sort -rn | head -20 ;  $ | awk '{print $2}' | sort | uniq -c | sort -rn | head ;  $ [..]   As an edit:  I cannot set-up the above command in a bash script since I have limited access to root from which I can call the scripts from.  I am interested in assigning a command as a variable from the command line solely.


Allow high rep users to indicate that a honeypot question is a false-positive

Having seen at least two questions here on Meta today about reviewers running into honeypot questions that may have been edited into shape in the meantime and undeleted, I think there needs to be a mechanism in place for users to audit this audit mechanism.  I grant you, having an It's not fair button to report a false positive underneath the I understand one would be asking for a lot of clicks from disgruntled users who were upset that they were delayed in their quest to click to badges paradise, so perhaps putting a 5K or 10K rep floor on the ability to do so would curtail some, but certainly not all, abuses of such a system.  Why is this important?  Reviewers that may be tripping these honeypots deserve a clear-cut example to follow. Really, perhaps the "mini-lecture" that accompanies these would be better served with some custom text from a human.  Given the frequency with which they come up, this may or may not be prohibitive, but in place of that human touch, consistency would be the best teacher.  Learning from a moving (or an already edited) target is almost futile.


Unlike Hollywood movies, Bollywood movies are quite different, because they're usually mixed with masala i.e dance, song and love sequences. This is the case in most films which are released in various languages in India.  Can someone explain, Why do Bollywood movies have song and dance sequences?


I'm stuck underground. How do I get back to the surface?

I'm stuck underground.   I can't mine any further to reach lava. There is no water nearby, and zombies can't reach me.  I can't see to find any blocks to suffocate my character.  NBTEdit and similar programs don't work on Mac, so I can't edit my save file to escape. I have hardly any blocks so cannot jump and lay my way up. I can't see, and do not have any torches, so can't make a staircase back up. I don't want to make new save as I have an awesome house filled with stuff that took me ages to find.    How can I get back to the surface?


Convert urban/hybrid with hydraulic disk brakes from flat handlebars to drops

I have a  that I want to convert from flat bars to drops.  Can anyone suggest brake levers that:   will be compatible with the BR-M355 calipers that came with the bike will be compatible with the hoses fitted to the bike are of standard brake hood construction and can be used as a comfortable hand position on drops (i.e. I'm not looking to somehow bodge installation of MTB levers) are easily available in the UK are not crazy expensive (< £200) don't involve/require a cable to hydraulic conversion mechanism   Ideally, I'd prefer the levers don't include an  derailleur gear shift mechanism, because the bike has an Alfine hub, for which I'll make separate provision for shifting. However, provided any derailleur shift system can be left disconnected without impacting comfort and braking performance, I could live with it.  If I absolutely have to, I could replace the levers, hoses, calipers and disks, but I'd rather not spend the money replacing the whole brake system if I can get away with only replacing the levers.  I understand the geometry of drops on this bike might not be ideal, and some may feel I would be better off simply replacing this bike with a road bike. That's not an option for me, and neither is owning a second bike.  Thanks!


When is a cellular automaton "bidirectional"?

From .   "A (bi-directional, deterministic) cellular automaton is a triplet $A = (S;N;\delta)$, where $S$ is an non-empty state set, $N$ is the neighborhood system, and $\delta$ is the local transition function (rule). This function deﬁnes the rule of calculating the cell’s state at $t +1$ time step, given the states of the neighborhood cells at previous time step $t$"  I haven't found other "bidirectional" CA via Google, so I wonder what does the term say about this automaton's properties. Does it mean that the state $t+1$ can be used to find out the state t?


Turning on minimizing on click on Ubuntu 18.04

I tried this command in order to minimize on dock with single click on icon  gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'   But I get the following error:  Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.'previews'   What I've found so far:  Following command line have fixed so many people's issue on 16.04 (I suppose) as it seems.  export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/   But the problem with that command line is that I can't find a usr or 'username' named folder as well as there isn't a single folder named x86_64-linux-gnu in my system. So I feel like I can use this command line to fix my issue if I find the location of my GIO modules or on where I should use this command line. Alternative solutions may be appreciated but I prefer some command lines to get used to Linux distros.  The fix:   sudo mv /etc/ld.so.conf.d/libc.conf /etc/ld.so.conf.d/xuserlocal.conf sudo ldconfig sudo reboot   then after reboot  gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'


Proof Verification: $\dim\mathrm{Im} T+\dim\ker T=\dim V$

So I'm trying to prove the classic dimension theorem for linear transformations. Here is what I have so far:  Given a linear transformation $T:V\rightarrow W$  Let the basis of $\mathrm{Im}T$ be $\{u_1,...,u_m\}$ where $\forall u\in V:T(u)$.  Let the basis of $\ker T$ be $\{v_1,..,v_k\}$ where $\forall v:T(v)=0$.  Lets prove $B=\{u_1,...,u_m,v_1,..,v_k\}$ is a basis of $V$:  (1) $B$ is linearly independent: Assume (falsely) that $B$ isn't linearly independent. Since $\{u_1,...,u_m\}$ and $\{v_1,..,v_k\}$ are both the basis of $\ker T$ and $\mathrm{Im}T$ repectively, they must each be linearly independent.If this is the case, $\exists b\in V:b\in \{v_1,..,v_k\}\cap \{v_1,..,v_k\}$ however this contradicts $\mathrm{Im}T\cap \ker T=\emptyset$ so $B$ must be linearly independent.  (2)$\mathrm{span}(B)=V$: Assume (falsely) that $b_2\in V| b_2\notin \mathrm{span}(B)$. If this is the case, then $b_2\notin \{\forall u\in V:T(u)\}\cap\{\forall v:T(v)=0\}$. This is impossible because $b_2\in V$ so $\mathrm{span}(B)=V$  Since (1) and (2) are true, according to basis identities, $B$ is a basis of $V$. This means that $\dim V=|B|=\dim\ker T+\dim\mathrm{Im}T$ QED


Is reverse engineering SHA256-HMAC function possible?

Assume HMAC function is used to generate a 6-digt integers time-based onetime password. As follows:   $$K_h =\operatorname{HMAC}(k,t) = H((k\oplus\text{opad})\mathbin\| H((k\oplus\text{ipad})\mathbin\|t))$$  Then:  $$T=K_h \bmod 10^6$$ where $t$ is time, $k$ is a secret key, and $T$ is a one-time password.  Now assume that an attacker knows t and can observe unlimited number of one-time passwords. Is it possible for him to solve for the secret key ($k$)? References would be nice.


Update value in Multidimensional list in Python

I have an list like the following  line_37_data = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]   When I print line_37_data[0][0] , the value 0 is printed.  When I update the list as line_37_data[0][0] = 5, the list gets modified like below  [[5, 0, 0], [5, 0, 0], [5, 0, 0]]   How can I can update the value in the list based on the index ?  Note :- I don't use NumPy. This is pure plain Python without any libraries. I am using 2.7 and not Python 3


Windows Update Displays "Downloading Windows 10" instead of Updates

I'm using windows 7 pro and do not want to upgrade to windows 10. To prevent the permanent notifications i've removed update KB3035583. Also the reservation of the upgrade is canceled so Windows Update should not download 10.  But when to execute Windows Update to perform updates it looks like it will download windows 10 but instead it downloads the updates.  It looks that there is some UI issue


Make hyperref expand section titles when \label is executed?

MWE:  \documentclass{article}  \usepackage{hyperref}  \begin{document}  \newcommand*{\ordinal}{First} \section{\ordinal{} Section} \label{sec:first}  \renewcommand*{\ordinal}{Second} \section{\ordinal{} Section} \label{sec:second}  I want this to say ``First Section'': \nameref{sec:first}  \end{document}   I end up with \newlabel{sec:first}{{1}{1}{\ordinal {} Section}{section.1}{}} in the .aux file, whereas I wanted \ordinal{} to be expanded immediately when the \label command is executed.  Is there any sane way to make hyperref expand the section title when writing out the \newlabel command?


If you choose an answer to this question at random, then what is the chance you will be correct?  A) 25%  B) 50%  C) 60%  D) 25%  On internet you can find the problem .


I am running k-fold cross validation on my training data, and then choosing the best set of hyper parameters, re-training on the training data and testing on a new (unseen) testing data. I am getting the following testing results (results on the unseen data):  R^2: 1.000 Adj R^2: 1.000 RMSE: 0.081 MSE: 0.007 MAE: 0.045 MAPE: 0.058   Can $R^2$ have a value of 1.00 but RMSE have a  value of 0.081? Doesn't an $R^2$ of value 1 indicate no errors at all?


Does LaTeX really perform worse than Word?

A new study in 1 concludes that even novice MS Word users perform better than expert LaTeX users in document creation.   I have read the article and I feel like I have identified some flaws in their approach and design but I figured this community would be the best positioned to rigorously evaluate these results.  Based on this study can we conclude that Word works better than LaTeX?   Markus Knauff & Jelica Nejasmic. 2014. An Efficiency Comparison of Document Preparation Systems Used in Academic Research and Development. PLOS ONE DOI:    UPDATE Since the question has been closed, but it's clear that there is interest to discuss the topic, I've set up a .  UPDATE 2 I have created a  to clarify the reason why this question was closed when other similar questions remain open.  UPDATE 3 People in glass houses... The article had to be republished a few months later due to publishing errors whilst using Arbortext :-) see


Prove that $\displaystyle{\lim_{n \to \infty}a_n ^{1/k}}= a^{1/k}$ if $a_n \ge 0$ for all $n$ and $\displaystyle{\lim_{n \to \infty}a_n}= a$  The book tells me to use $x^k - y^k = (x-y)(x^{k-1}+x^{k-2}y+ \dots + y^{k-1})$ with $x= a_n ^{1/k}$ and $y= a^{1/k}$. I did that and I rearranged to get an expression for $|a_n ^{1/k}-a^{1/k}|$. After that I divided the problem into two cases: $a=0$ and $a>0$. If $a>0$ then there exist positive integers $m$ and $N$ such that $a_n >m$ for all $n>N$. Using this, we can find a lower bound $L$ for the denominator of the expression for $|a_n ^{1/k}-a^{1/k}|$ for $n > N$. Then  $|a_n ^{1/k}-a^{1/k}|< |a_n-a|\frac{1}{L}$ and the rest is easy. However, I can't deal with the case when $a=0$. How can I complete this proof?


$[\mathsf{I},\mathsf{C}]$ and $[\mathsf{J},\mathsf{C}]$ are equivalent if $\mathsf{I}$ and $\mathsf{J}$ are.

Let $\mathsf{I}$ and $\mathsf{J}$ be equivalent categories. Let $\mathsf{C}$ be another category. I need to prove that the categories of functors $[\mathsf{I},\mathsf{C}]$ and $[\mathsf{J},\mathsf{C}]$ are equivalent.  Let functors $E\colon\mathsf{I}\to\mathsf{J}$, $E'\colon\mathsf{J}\to\mathsf{I}$ together with natural isomorphisms $\eta\colon 1_{\mathsf{I}} \Rightarrow E'E, \epsilon\colon EE' \Rightarrow 1_{\mathsf{J}}$ define an equivalence of categories.  Define a functor $y\colon[\mathsf{I},\mathsf{C}]\to[\mathsf{J},\mathsf{C}]$ which maps each functor $F\colon\mathsf{I}\to\mathsf{C}$ to $FE'$ and each natural transformation $\alpha\colon F\Rightarrow G$ to the natural transformation $\beta\colon FE'\Rightarrow GE'$ such that for any $j \in \mathsf{J}$ we have $\beta_j = \alpha_{E'(j)}$.  I have proven that this functor is faithful and essentially surjective on objects, but I'm not sure how to prove that it is full.


I might be having a brainfart here, and I probably am, however it's somewhat hard to word my problem, so I'm having some issues finding help.    Essentially, in Java, you can do something like this:  // create some generic class public class Test {    public void random() {} }  // other class public class Test2 {    public Test2() {       someFunction(new Test() {          public void random() {             System.out.println("howdy");          }       });    }     private someFunction(Test t) {       t.random();    } }   I'm looking to convert this idea (modifying the contents of a class while passing it as a variable) into C#. I understand it can be done with lambda expressions, however I cannot for the life of me seem to figure it out. Any help is appreciated.


Problem with literate and breaklines=true in listings package

As the title says, the option breaklines=true seems to have an undesired interaction when using literate; in the following example the closing parenthesis doesn't get colorized   \documentclass{article} \usepackage{xcolor} \usepackage{listings}  \lstset{   literate=     {)}{{\textcolor{red}{)}}}{1}     {(}{{\textcolor{red}{(}}}{1},   breaklines=true, }  \begin{document}  \begin{lstlisting} () \end{lstlisting}  \end{document}     Commenting out the breaklines=true option produces the desired result. What is producing this odd behaviour and how can it be prevented?


Javascript redirect after form submission

I'm fairly new to JavaScript and I'm trying to figure out a way to, instead of showing a "Thank You" div when a user hits the "Submit" button of my form, go to an HTML page of my choosing, i.e., www.site.com/thanks.html. I've found a few different ways that this is possible, but have yet not be able to successfully implement anything within this specific form and need a bit of help.  Here is the form HTML:

         <input class="inputbox span3" type="text" id="rp_name" name="rp_name" placeholder="Name" value="" />         <input class="inputbox span3" type="text" placeholder="Email" name="rp_email" id="rp_email" value="" />

         <input class="inputbox span6" type="text" name="rp_subject" placeholder="Subject" id="rp_subject" value="" />

         <input class="btn" id="submit-form" type="submit" name="submit" value="Send Message" />

         <textarea class="textarea span6" placeholder="Available Days" name="rp_message" id="rp_message">         </textarea>

   Here is where it's pulling the "success message" js from:  $.ajax({      type: 'POST',      url: 'php_helpers/contact_form.php',      data: data_html,      success: function(msg){       if (msg == 'sent'){          success.html('
Message successfully sent!
')  ;            $('#rp_name').val('');          $('#rp_email').val('');          $('#rp_message').val('');         }else{            success.html('
Message not sent! Please Try Again!
')  ;          }      } });   So I need to swap out the "div class="alert alert-success"" area with a redirect. Hoping this is a simple fix!  Thanks for any help!


On XP, best way to synchronize files and folders

I'm using SyncToy 1.4 and it would be fine for what I need except that:    It can't handle the assigned drive letter changing between systems (e.g. syncing a USB drive),  it leaves its own (hidden) files in the folders being synched (is this a limitation of the OS/FS?),  it recreates empty folders for ones that have been deleted,  it syncs new sub folders in folders that have been unselected from syncing  and sometimes finds all the files have changed when they are still the same as they were. it can't handle very long file path/name   SyncToy 2.1 is too slow to be usable. Especially when run again on a folder without any changes it will start from scratch scanning all the files and sub-folders for differences.   It has to be a solution without using Internet based storage, as this isn't always available and otherwise can be far too slow. I'd prefer something that doesn't add its own files to the folders to be synched, and something with which it's quick and easy to change file and folder synching selections. When run the less interactive the better, ideally safely synching multiple folder pairs with a couple of mouse clicks (as SyncToy does).  Do I have to use rsync and batch files? Something with a GUI for granny to use without difficulty, would be better. Here's my criteria:    There is no requirement for an Internet connection. It must not create it's own housekeeping files/folders in either source or target (maybe this has to be done because of a shortcoming of NTFS?) Test: Source folder with two none-empty sub-folders A and B. Move sub-folder B into sub-folder A, does it duplicate this in the target folder? Test: Rename a file in sub-folder A, does it duplicate this in the target folder?  Can multiple folder pair syncs be done at the same time with only one or two mouse clicks? Does it have an option for previewing the changes it's about to make? Does it allow easy changing of source and/or target paths? It must be quick, (especially if re-scanning two folder trees with nothing changed). Test: Sync USB drive on PC 1 then copy files and folders from USB drive to PC 2, change folders and files on PC 2 (while those on PC 1 stay the same), sync USB drive on PC 2 and then re-sync the files and folders on PC 1 from the USB drive. Can it do this without any errors? Excluding installation, can granny use it comfortably? -->


A cross product is possible in a $3$D and in a $7$D system. What prevents a cross product from being possible in a vector system of higher number of dimensions? For instance $15$D or $2^n$$-1$ dimensions?


So, the title pretty much says it all. I want to search a JSON, but try and not make it case sensitive. So here is my JSON file:  {    "Data" :      [             {"Name": "Widget", "Price": "25.00", "Quantity": "5" },     {"Name": "Thing", "Price": "15.00", "Quantity": "5" },             {"Name": "Doodad", "Price": "5.00", "Quantity": "10" }      ]  }   Unfortunately for me, I have not coded in a long time so basically I wrote the JavaScript part of my code in the HTML file also. It's a bit muddled together:  <!DOCTYPE html>       <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Document</title>
             <form id="form1">                 What product do you wish to find? <input name="name" type="text" size="20">             </form>             <button id="fetchUserDataBtn">Cauta</button>

                  Can I manage to add a function somewhere in here, so that when the user introduces "Thing" or "Widget" in the search area, it will find the product, even though it's not written exactly like in the JSON file?


Prove that $\lim_{x\to 2}x^2=4$ using $\epsilon-\delta$ definition.   By the mean of $\epsilon-\delta$ definition, $|x-2|\le \delta,|x+2|\le \delta+4$  then $|x-2||x+2|\le \delta(\delta+4),|x^2-4|\le \delta^2+4\delta$.  Assign $\epsilon=\delta^2+4\delta,|x^2-4|\le\epsilon$.  Q.E.D.  Is this method correct? If yes, why I always see people do this by putting $\delta = \min(1,\epsilon/5)$...?  Thanks.


Visiting Greece with back-to-back Schengen visas (One from Germany, other from Italy)

I have a Schengen Visa issued by Germany, which expire on 11th Jan 2014, and I can remain in the zone till 11th Jan 23.59 PM. I have already visited Germany in the past with this visa, so I can travel whenever in Schengen zone directly from my country (Turkey).  I have a second Schengen Visa issued by Italy, which START on 12th Jan 2014, such that I can remain in Schengen zone from 12th Jan 00.00 AM onwards (I'm putting times to clarify which dates are inclusive).  I would like to travel to Greece with this visa: Entering the country on 6th January, and leaving the country on 19th January.  Is this allowed? Or do I have to leave the country first, and then re-enter through Italy?


Use of "can" or "may" to imply possibility

1."There can/may be many reasons for this".  2."It can/may rain tomorrow."  I thought that my concept is clear regarding difference between 'can' and 'may',but I get confused while using them in aforementioned lines.


Definite integration integration by parts

Evaluate the integral $$\int_0^1\frac{x^7-1}{\log (x)}\,dx $$   [1]:   I'm trying to solve this definite integral since 2 hours.  Please, I need help on this.


I browse Stack Overflow quite frequently and I often find that when I come across a helpful answer I want to be able to save the best answer for later. It would be nice if I could save those snippets/answers to my account so later I can quickly find what I was looking for.


Can a warlock choose an upcast spell as a Mystic Arcanum?  For example, say I have a warlock and want to be able to summon bheur hags using . This is slightly problematic due to  being CR 7. Could I then take an upcast Conjure Fey as my 7th-level Mystic Arcanum?


I want the object falling start from frame 250 until 350. But, I can't find where to set it. It always starts at 1.


I'm trying to make it so a villager will teleport home when the time is 13000. Here's what I got:  /time query daytime 13000   With a comparator got to a command block with this in it:  /tp @e[type=Villager,name=Wizard] -685 56 510   But it doesn't tp the villager when the time is 13000!


bash variable with spaces why cd "$myvar" results in one parameter, but myvar='"some stuff"' in two?

I'm struggling to understand why following does not work as expected in bash:  $ myvar='"some stuff"' $ echo $myvar "some stuff" $ cd $myvar bash: cd: "some: No such file or directory   I know the canonical way is to ():  $ myvar="some stuff" $ echo $myvar some stuff $ cd "$myvar"   But e.g. here  answer by Alex for macOS advices to escape quotations, which I also tried and it's the same as putting double quotations inside single ones in my case. Why in one case cd gets two parameters and in other two from as I see it same "some stuff"?


How can I test the login for an expired session?

I'm developing a login plugin and need to test the login form that pops up after a session has expired.   I would like to see the popup appear on my request. Any hack is fine. Ideally some little javascript to run from the console.


I have a database with users and each has a role. U for user and A for admin. I have a method in on class called getRole() which gets the role of a user ad returns it as String. In an other class I call this method, save its result to a String and then test that String. If it is A (admin) then proceed. The problem is that the String returns A, but the programm doesn't continue. What is wrong here?  getRole() Method:  public String getRole() throws SQLException {      userid = "c##lambros";     password = "16111111";     jdbcUrl = "jdbc:oracle:thin:@localhost:1521:ORCL";     conn = DriverManager.getConnection(jdbcUrl, userid, password);     checkRole = "SELECT role FROM users where username = '" + usernameF.getText() + "' AND password = '" + passwordF.getText() + "' ";     System.out.println(checkRole);     stmt = conn.createStatement();     rset = stmt.executeQuery(checkRole);     while (rset.next()){     role = rset.getString(1);     System.out.println("The User's Role is " + role);     }      return role;     }   IF Statement:      Login login = new Login();     TermResultsFromDB terms = new TermResultsFromDB();     String role;     try {          role = login.getRole();         System.out.println(role);          if(role=="A"){         terms.getTerms(query);         terms.setVisible(true);         terms.setLocation(z, y);         terms.pack();         }          else if (role!="A")             System.out.println("Sorry! Not sufficient Privileges!");      } catch (SQLException f) {     }


I was wandering if there is a way i could possibly due to factory reset Linux? If someone could help that would be great.


I have a dll file that I want to decompile. I know there are ILSpy, dotPeek and similar programs, but I have yet to find one that will actually create the cs file.  The dll I'm dealing with has several hundred classes in it and it would take days to manually copy everything.  Is there a tool that will take a dll file and return a set of cs files?


I am currently installing Ubuntu 12.04.3. Everything was going fine until I came across this...     Installing System   It is sssooooooo close to being finished! Like 1/6 of the way there! I just wanted to know if this is normal or if something is wrong. I'm installing it through a flash drive if that helps   Also,what will happen if I press the skip button that pops up when I click Installing System?


How to typeset \end{verbatim} in verbatim environment?

How to typeset \end{verbatim} in verbatim environment or in any other verbatim-like environment its own \end tag?


Should I use the definite article before "news" in the second and third sentences? Isn't it wrong to use 'from" instead of "on" in the first sentence?  You can read news reports on a Telegram news channel. 2. All news are about contemporary art. 3.I think that's good, because almost all news lately is about the coronavirus.  Can I also use "all of the news" in 2 and 3? This is one passage but I devided it into several sentences.


Macbook Pro not detecting Dell monitor - Catalina

I am trying to connect a 15-inch Macbook Pro 2017 to a p3418HW Dell monitor, through a USB-C to HDMI adapter (). The monitor shows: "No HDMI signal from your device". I have tried the following suggestions on the net, with NO result:  resetting SMC resetting NVRAM several times disconnecting and reconnecting power and HDMI cables with different orders  I have also tried the cable, adapter with the same monitor with a 13-inch Macbook Pro 2016 and strangely everything works well!! Any advice is appreciated!


I have a monthly average for a value and a standard deviation corresponding to that average. I am now computing the annual average as the sum of monthly averages, how can I represent the standard deviation for the summed average ?  For example considering output from a wind farm:  Month        MWh     StdDev January      927     333  February     1234    250 March        1032    301 April        876     204 May          865     165 June         750     263 July         780     280 August       690     98 September    730     76 October      821     240 November     803     178 December     850     250   We can say that in the average year the wind farm produces 10,358 MWh, but what is the standard deviation corresponding to this figure ?


`Try doing and do` vs `Try doing and doing`

Which one is correct, possibly both?  Try reducing your query and searching again Try reducing your query and search again


Is there a reasonably complete online database of science-fiction works?

Is there a reasonably complete online database of sf works?   For written sf: the  For movies: the    What about other media, such as comics, and radio programs?  (SF as in speculative fiction: science fiction, alternate history, fantasy… Note that I'm looking for a database aiming at exhaustivity in its domain, not a selection based on notability or tastes.)


How to display userid when posting comments?

I'm logged in yet when I post a comment, it always comes up with an artificial userisxxxxx. how to get my user name to display instead of an artificial userxxxxxx?


How to generate and correlate more than two random variables which are from different non-parametric distributions given then correlation matrix?

I tried to fit three variables using the non-parametric method(kernel smooth), and those distribution for each of three variables are different, so cholesky descomposition won´t work for replicate the correlation calculated by the historical data when i´m trying to make a simulation.      And I need a way to simulate these variables which meets follow requirements:   Each simulated variable should still follow it´s fitted non parametric    distribution. Correlation should be replicated.   Anyone has an idea? I´ll apreciate.  Zhe


When Chrome has crashed, it displays a warning (under the address bar) upon restart, offering to restore tabs. I'm launching chrome in kiosk mode and I don't want theses warnings to be displayed.  Is there a way to do this ?


Can you please tell me what "working out of" means in this context?  "African composers working out of European-based choral and instrumental art music traditions are gaining recognition, as are the varied roles that women play in making music."   Google Books: 'The Harvard Dictionary of Music' By Don Michael Randel


Compiler error when referring to type in a separate class

I am defining 3 classes in C++ and trying to make maximum use of Curiously recurring template pattern (CRTP). I am using VS 2017.   Code:   `  template<typename Outer> class OuterClass <Outer, uint32_t> {     using datatype = uint32_t;  static uintptr_t GetAddr(void const volatile* const ptr) {             auto const addr1 =            get_addr();             auto const addr_virtual =     ptr;             auto const baseAddr =         Outer::base_addr;             uintptr_t const addressCalcd = uintptr_t(baseAddr) + uintptr_t( addr_virtual - addr1 );         return addressCalcd;     }; };  template<typename Outer> class OuterClass <Outer, uint64_t> {     using datatype = uint64_t;  static uintptr_t GetAddr(void const volatile* const ptr) {             auto const addr1 =            get_addr();             auto const addr_virtual =     ptr;             auto const baseAddr =         Outer::base_addr;             uintptr_t const addressCalcd = uintptr_t(baseAddr) + uintptr_t( addr_virtual - addr1 );         return addressCalcd;     }; };  template<typename Inner, typename Outer> struct InnerClass {      GetAddVal CastVl()  const volatile {      uint32_t addrl = uint32_t(Outer::GetAddr(static_cast<const volatile R*>(this)));         return VAL_CAST{ addrl };     }     operator Outer::datatype() const volatile {         return RegBlock<Outer, Outer::datatype>::readReg(*this);     }     operator Outer::datatype() const {         return RegBlock<Outer, Outer::datatype>::readReg(*this);     }     void operator=(Inner const  & x) volatile;     void operator=(const Outer::datatype x) volatile; };   The errors are in the InnerClass. Firstly,   uint32_t addrl = uint32_t(Outer::GetAddr(static_cast<const volatile R*>(this)));  is perfectly fine. I can refer to the static class Outer::GetAddr no problem.   However, I cannot refer the typedef'd    operator Outer::datatype() const volatile {  Error: C2833 "operator qualified-name" is not recognized operator or type  This is also an error for :    void operator=(const Outer::datatype x) volatile;   C2805  binary "operator =" has too few parameters.  Why can I refer to static classes using the :: and not anything typedef'd ? Should I consider nesting the "InnerClass" inside the "OuterClass" ? Ideally I don't want to have nested classes at all.


Searching for a string in all .txt files

Is there a way to search for a string test123 in all textfiles on the hdd?


How to compute $$\sum_{k=1}^{180}\cos\left(\frac{2\pi}{k}\right)$$ I have tried several ways to do it (including euler formula, etc), but all failed. The answer given by wolframalpha appeared to be a bad irrational number... Edited: The source of the problem is a test from our school. Maybe there is a typo on the upper bound $180$. How if the problem changes to $\sum_{k=1}^{180^\circ}\cos\left(\frac{2\pi}{k}\right)$? Is there a chance to have a closed form?


Access CIFS share through another server

I have CIFS-share on NAS-server and that share is accessible to one server.  That share is mounted to my server   \NAS-server\share -> U:\  The server to which the NAS-share is mounted is sharing its local disks to another servers.   I was wondering whether its possible to share that CIFS-share to another machines which currently use the local disks on the same server. As is the server is acting like a proxy for that actual NAS-server?


My first camera was a Pentax k1000, can I use the 1 : 2 50mmlens from the Pentax k100 on my Nikon digital SLR?


Ubuntu 12.04 Not Detecting Ethernet Wired Connection

I recently did a full install of Ubuntu 12.04 (not a dual boot) on my laptop. In the past on my dual boot, I connected to a wired ethernet connection with no trouble at all.  Now, my laptop isn't detecting a wired connection when the cable is plugged in. I've tried restarting things and tinkering with files as suggested by other answers with no success.  lspci | egrep -i --color 'network|ethernet'  01:00.0 Ethernet controller: Qualcomm Atheros QCA8172 Fast Ethernet (rev 10) 02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)


Assume that Y is compact. Prove that f is continuous.

Let $f:X\rightarrow Y$ be any map. The graph of f is the set $\Gamma_f=\{(x,f(x))|  x\in X\}\subset X \times Y$.  Assume that Y is compact. Prove that if $\Gamma_f \subset X \times Y$ is closed then $f$ is continous.   I was able to prove the converse (where it was also given that Y is Hausdorff), but I'm having trouble proving this direction.


How do I use reflection to call a generic method?

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


I can't move my family into Lakeview Manor! I think it's a glitch!

I have tried multiple things that don't work for some reason. I have loaded up a save before I bought the house, I have deleted and re-downloaded the Hearthfire DLC, but I still can't move my family, so nothing works! I think it's because I don't own the house. Will someone please help fix this problem?


After adding the most recent set of updates, I can't get into Ubuntu at all. I get a screen saying that I am running in low-graphics mode, 'your screen, graphics card and input device settings could not be detected correctly etc'.   I can hit return and then get to the next screen saying 'what would you like to do?' however, i can't choose from the 4 options, the only keystroke that will register is escape, which takes me to a black screen with a login.   I have an Nvidia GeForce 7050/nForce 610i and it has caused problems in the past, but I have always got round it by choosing to boot in recovery mode. Now, no matter which version I try to boot into I can't get into Ubuntu at all.


Lost reputation from suggested edit approval on post left behind when account is deleted

On Programmers.SE, I  () back in November. Since it was a suggested edit, I earned +2 reputation when my edit was approved.   The author of that post appears to have had their account deleted sometime yesterday. The post, however, was not deleted. .     Is that what's supposed to happen? , but does it make sense to lose rep if the owner of the post is deleted?   (Given that , I suspect that what really happened is that the post-owner directly approved my suggested edit; I imagine this is related. Perhaps the question actually ought to be "are you supposed to lose rep from suggested edits if the sole edit-approver's account is deleted?".)


Is this proposition regarding equipotence true, without the needing axiom of choice?

Proposition: let $A$ and $B$ be arbitrary sets. Then, there exists a set $C$ such that $A\cap C=\varnothing$ and $C\sim B$. This proposition seems really easy at first, but when I tried to prove it, it got me really thinking a lot about it. In the end, I think I managed to prove it succesfully, though I used the axiom of choice in order to do so. I write here my idea together with a sketch of my proof: The first set that one knows that does not belong to $A$ is $A$ itself, so if $B$ had cardinality $1$, then $C=\{A\}$ would work. Similarly, if $B$ had cardinality $2$, any other set $X$ such that $A\in X\neq\{A\}$ would give a working set $C=\{A,X\}$ (this is using axiom of regularity). I think after having worked a bit with ordinals that it is natural to think $X=S(A)=A\cup\{A\}$. Using the replacement axiom, it is posible to define a recursive sequence whose image is $\{A,S(A),S(S(A)),...\}$ and if $B$ were numerable, then $C=\{A,S(A),S(S(A)),...\}$ would work. However, this led me to see how I could do this in general for any ordinal, but this will use that $B$ is equipotent to some ordinal. The idea is then to have a copy of the ordinals, starting on $A$ rather than on the empty set. Define a transfinite sequence as follows:  $x_0=A$. For every ordinal $\alpha$, $x_{\alpha+1}=S(x_\alpha)$. For every limit ordinal $\lambda$, $x_\lambda=\bigcup_{\delta<\lambda}x_\delta$.  The following facts are then true (I won't include proof for this but many of the arguments are by transfinite induction):  For any two ordinals $\alpha,\beta$, if $\alpha<\beta$ then $x_\alpha\in x_\beta$. For any ordinal $\alpha$, $\alpha\sim C_\alpha:=\{x_\delta|\delta<\alpha\}$ (which exists by axiom of replacement). For every non-zero ordinal $\alpha$, $A\in x_\alpha$. For any ordinal $\alpha$, $A\cap C_\alpha=\varnothing$.  With these facts on hand, it is possible to give now the argument. Using the axiom of choice, $B$ can be well ordered, and so it must be equipotent to some ordinal $\gamma_B$. Now, we have $B\sim\gamma_B\sim C_{\gamma_B}$, and by transitivity, $C_{\gamma_B}$ satisfies $B\sim C_{\gamma_B}$. Also, $A\cap C_{\gamma_B}=\varnothing$ and therefore $C=C_{\gamma_B}$ is a set that satisfies the required conditions. End of the proof. For this, I required quite some notions of ordinals and axiom of choice, however it seems as a rather elementary proposition, so now I ask: is there an easier way to prove this, using more basic tools from set theory? And also, independently from simpleness, is there a way to prove this wothout using the axiom of choice? Thanks for reading and any reply is welcome :). Greetings.


Is there a second level (yellow/orange) Matrix in The Matrix?

In the last episode of The Matrix trilogy, when Neo becomes blind, he sees a yellow/orange Matrix (as opposed to “regular” Matrix, the green one) in what is supposed to be the real world. He has powers he used to only have in the Matrix.  Are there clear explanations of this? I have two hypotheses:   What is said to be the “real world” is another matrix (yellow/orange), which contains the other one (the green one). Neo has root access to this matrix, hence the control over machines. He has some sort of wireless connection to the machines system, therefore he can control them outside the Matrix.    I find the second one more convincing. I prefer the first one. It means we never see the real world in any of the movies.  Edit: the question was marked as duplicate to a complementary, but different question: how can Neo control the machine while he is not connected to The Matrix. This is not my question, this one of the facts that leads me to my question.  The discussion with the Oracle and the Architect mentions the source. This suggests the yellow/orange things which appears when Neo is in the “real world” is the source, as opposed to the Matrix (green). However looking at our world (the real real, outside the fiction) you have programs, their source, both on a computer, which is part of the world. Both sources and programs are “virtual”.  The wireless hypothesis means Neo's plug has something special that makes it possible for him to communicate with the machines' system in some way. So he can be both in the “real world” and the “meta Matrix” which contains both the source and the running programs. But if he can connect wirelessly, why does he have to protecting the core part of the Matrix?  What puzzles me, and makes me think about the other hypothesis is the mention to these several reboots of the systems, and previous occurrences of Neo facing the Architect (as depicted on the screens). How can this be the same person in the physical world? Is he a clone? Why did it have to be a clone? What makes his physical body critical for it, as opposed to his counterpart (program) in the Matrix? With the first hypothesis, Neo is a meta program of the yellow/orange matrix, hence he is just patched between reboots. This quote of the Oracle can be interpreted as a mention to another Matrix including the Matrix.     Oracle: The power of the One extends beyond this world. It reaches   from here all the way back to where it came from.   What are the actual facts leading to the wireless hypothesis?


For a group homomorphism, does there exist a subgroup of the domain isomorphic to the image?

Let $\phi : G \to H$ be a group homomorphism. Is is it true that, there exists a subgroup $K$ of $G$ such that $K$ is isomorphic to the image of $\phi$?  Edit: How about for finite $G$?


Why can't I access some tables in postgresql

I am running into some strange problem in PostgreSQL  $ sudo -u postgres psql Blogging psql (10.10 (Ubuntu 10.10-0ubuntu0.18.04.1)) Type "help" for help.  Blogging=# \dt                List of relations  Schema |         Name          | Type  | Owner  --------+-----------------------+-------+-------  public | Blogs                 | table | e  public | Posts                 | table | e  public | __EFMigrationsHistory | table | e (3 rows)  Blogging=# select * from Blogs Blogging-# ; ERROR:  relation "blogs" does not exist LINE 1: select * from Blogs                       ^   The same problem occurs when I log in as the owner of the tables:  $ psql -U e Blogging psql (10.10 (Ubuntu 10.10-0ubuntu0.18.04.1)) Type "help" for help.  Blogging=# \dt                List of relations  Schema |         Name          | Type  | Owner  --------+-----------------------+-------+-------  public | Blogs                 | table | e  public | Posts                 | table | e  public | __EFMigrationsHistory | table | e (3 rows)  Blogging=# select * from Blogs;  ERROR:  relation "blogs" does not exist   I created the database when running my application which uses Entity Framework, following . But I had  not sure if they are related to my question here.


90s (or earlier) movie with experimental, invisible, teleporting, time-traveling ship

So, I watched this in 1996 and thought it was pretty good, and now I want to find its title so I can rewatch it!  There's an experiment with a ship in order to make it completely invisible. Unfortunately, that experiment goes wrong and the ship ends up far in the future where the experiment has been started up again. This future experiment caused the ship from the past to teleport into the future. At random intervals, the ship teleports to a random place in the world and puts everyone in danger of dying because of it.


Why is the potential energy minimal when the repulsion and attraction force between molecules is 0?

According to this potentialcurve and the other curve(?) the potential energy is minimal when the intermolecular forces equal zero.     Why? How should I interprete negative potential energy in this context?


How can empathy be distinguished from sympathy?

I typically use "empathize" to mean: "to see or understand something from the other person's perspective." In my use, one needn't have actually experienced the problem in question to empathize with someone who is experiencing it. E.g. I've never had a child of mine die, but I like to think I can empathize with the Mom who has.   However, some've told me that that one can't empathize with someone's condition without experiencing it. This perspective seems counter-intuitive to me. Using it as a guide suggests "sympathize" is the more correct term. "Sympathize" has connotations of "pity", which in turn suggests, "to feel sorry for."  I am a hospice nurse, and I've always seen myself as empathizing -- thoughtfully understanding -- with those in my care, not sympathizing.  What is the correct definition and usage of both "empathy" and "sympathy"?


SQL Employee Clock in/out times reformatting?

I am relatively new to SQL and have written a bunch of various views.  I have been asked to created a report for our monthly payroll using clockings from SQL server.  Currently SQL formats things:  Date | Name | Clock In | Clock Out --- 01/02/2018 | Name | 2018-02-01 07:55:08.563 | 2018-02-01 10:21:42.183  01/02/2018 | Name | 2018-02-01 10:32:37.153 | 2018-02-01 13:12:33.773  01/02/2018 | Name | 2018-02-01 13:33:10.123 | 2018-02-01 15:04:16.880   However I would like it something like this:  Date | Name | Clock In | Clock Out | Clock In | Clock Out | Clock In | Clock Out -- 01/02/2018 | Name | 2018-02-01 07:55:08.563 | 2018-02-01 10:21:42.183 | 2018-02-01 10:32:37.153 | 2018-02-01 13:12:33.773 | 2018-02-01 13:33:10.123 | 2018-02-01 15:04:16.880   I have things currently working in excel using the formula:  {=INDEX(Payroll_Clockings[Start Time], SMALL(IF(1 = ((--($A9=Payroll_Clockings[Date Value])) * (--($J$4=Payroll_Clockings[Name]))), ROW(Payroll_Clockings[Start Time]) -1, ""), COLUMN() -1))}   But being an Array formula this can take a long time to refresh when there are 50+ records.  so it would be ideal to reaarange things through SQL.  the SQL view i am using is:  SELECT        TOP (100) PERCENT CONVERT(VARCHAR(19), ShopFloor.EmployeeActivity.StartEvent, 103) AS Date, Admin.Employee.FirstName + ' ' + Admin.Employee.Surname AS Name, ShopFloor.EmployeeActivity.StartEvent AS [Start Time],                           ShopFloor.EmployeeActivity.FinishEvent AS [Finish Time], ShopFloor.EmployeeActivity.ClockNumber AS [Clock No.] FROM            ShopFloor.EmployeeActivity LEFT OUTER JOIN                          Admin.Employee ON ShopFloor.EmployeeActivity.ClockNumber = Admin.Employee.ClockNumber WHERE        (ShopFloor.EmployeeActivity.StartEvent BETWEEN GETDATE() - 180 AND GETDATE()) AND (NOT (ShopFloor.EmployeeActivity.ClockNumber IN (100, 10090, 10000, 777, 999, 10001, 10098, 10002))) AND                           (ShopFloor.EmployeeActivity.ActivityTypeCode = 1) ORDER BY Date, Name, [Start Time]   Hopefully this makes sense and any help would be appreciated!    I don't normally create tables, only deal with creating views from current tables but I think this would be an example of our table.  IF EXISTS(SELECT 1 FROM sys.tables WHERE object_id = OBJECT_ID('myTable')) BEGIN;     DROP TABLE [myTable]; END; GO  CREATE TABLE [myTable] (     [myTableID] INTEGER NOT NULL IDENTITY(1, 1),     [Date] VARCHAR(255),     [Name] VARCHAR(255) NULL,     [StartEvent] VARCHAR(255),     [FinishEvent] VARCHAR(255),     [ClockNumber] VARCHAR(255) NULL,     PRIMARY KEY ([myTableID]) ); GO  INSERT INTO myTable([Date],[Name],[StartEvent],[FinishEvent],[ClockNumber])  VALUES('03/03/2019','Abdul Pugh','2018-09-12 10:50:36','2017-09-11  05:21:44','CN-102'); INSERT INTO myTable([Date],[Name],[StartEvent],[FinishEvent],[ClockNumber])  VALUES('08/23/2017','Kiayada Knight','2018-09-18 17:22:47','2017-06-15  05:03:34','CN-101');


Blue pill or red pill: Interpretation of analogies

In The Matrix, when Morpheus offers the blue pill or red pill, he explains:     You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe.   The "story" part could be interpreted as "the story of Neo living in the Matrix ends, he wakes up in his "bed" (i.e. the cocoon) and he will have the shock of meeting a reality he might have trouble believing in. This interpretation is wrong, but we could be excused for understanding it that way.     You take the red pill - you stay in Wonderland and I show you how deep the rabbit-hole goes.   Adding to the confusion, staying in Wonderland could mean he would stay in the Matrix, the "wonderful, imaginary place". The rabbit hole took Alice to Wonderland. How deep it goes is precisely to that place. This interpretation is also wrong, but I think we know this only because we know what happens later.  Is Morpheus being deceitful or particularly cryptic? Or were the Wachowskis simply a bit all over the place with the analogies?


Is it better to write sql query as a stored procedure or write it inside C# and execute it dynamically

What I mean is if I have two ways to write a SQL query:   write it inside SQL as a stored procedure and execute it from C#  build a query in C# then execute the query so it does not exist in my database    Which is better and why?


How to have an event occur after x seconds?

I want a method to run after every 10 or 15 seconds.   My timer is set to:   timer = (double) gameTime.ElapsedGameTime.TotalSeconds;   What would be the logic to check for every 10 or 15 seconds?


I am reading book "Pro PHP and jQuery", I see:   but Stack Overflow put jQuery call at near top:   My question is:  Is best practice when put script link jQuery at the end near  inside HTML page?


Can Pokémon Home be used to transfer the Mew into a new game of Let's Go?

When Pokémon Let's Go! Pikachu/Eevee was released, a special edition included the Pokéball controller. This controller contained a Mew, which could be transferred to the game.  Once the Mew was transferred to a game, it was no longer in the controller and starting a new game meant losing the Mew.  Now that Pokémon Home has been released, does that still hold true? Or would it be possible to start a new game and keep the Mew by doing the below?   Transfer the Mew from Let's Go! to Home Start a new game on Let's Go! Transfer the Mew back into the new game of Let's Go!


Can I multi-class between a class and an archetype of that class?

Background  I am playing Pathfinder with a character who is a Fighter with the  archetype. There is an ability that the Fighter (sans archetype) earns at third level called "Armor Training," which allows, among other things, moving at his normal speed while wearing Medium Armor. I particularly want this ability, or something comparable to it, so that my character can wear Mithral Full Plate and move full speed. However, this ability is replaced by the Polearm Master's ability, "Steadfast Pike."  Question  First, I assume that you cannot (RAW) opt out of acquiring the Polearm Master's class ability and instead acquire the base fighter ability. Given that assumption, can you multi-class into Fighter, advance to level 3, and earn the ability that way?  If that is legal, what advantages or disadvantages are there to this approach?   Do you only gain the benefits of Favored Class with one of the two fighter classes? For the purpose of feats that require you to be a Fighter of a given level, do you add both classes together? Does the calculation of bonus feats change (from remaining a single-class fighter)? Does this affect the ability to re-sell a feat at 4th level (i.e., would you need to reach 4th level as a core Fighter or as a Polearm Master rather than being a 2nd level Polearm master and 2nd level core fighter)?


Extremely high disk activity without any real usage

In a nutshell, the problem looks like this picture:    In short, gigantic latency, very slow read speed (I assume that is caused by the same thing). After a very very painful few minutes, everything seems to go back to normal.  What the heck is going on that can cause that?  Note: Note the fact that 100% activity happens at a wide range of speeds.


Prevent upvotes for duplicates, or carry upvotes to master question

Questions that are duplicates and triplicates are still asked, even though the automatic "Related Questions" list that appears must be showing them!  These re-asked questions still get upvotes even after a question has been closed as a duplicate. To further discourage the questions, perhaps prevent upvotes to them after they've been closed? Or transfer the upvotes to the master (canonical or original)?  Also, this might help meta question .


Find a polynomial f(x) of degree 5 such that 2 properties hold.

I have been trying to find a polynomial $f(x)$ such that these $2$ properties hold:   $f(x)-1$ is divisible by $(x-1)^3$ $f(x)$ is divisible by $x^3$   To start, I set $f(x) =ax^5 + bx^4 + cx^3 + dx^2 + ex + f$. This is divisible by $x^3$, so $d, e, f $  must be $0$. So polynomial $f(x) = ax^5 + bx^4 + cx^3$  This minus $1$ is divisible by $(x-1)^3$. So I used synthetic division and got that the remainder of $ax^5 + bx^4 + cx^3$ divided by $(x-1)$ is $a+b+c-1$. But it should divide out evenly, so $a+b+c-1 = 0$.  From here, I can't find any other equations involving the three variables. Could someone have any suggestions for how to continue? Thanks in advance. :)


A property P of morphisms of $S$-schemes $f : X \rightarrow Y$ is local on $X$, or $Y$, or $S$ or

I have asked the same question , but thought that is was a good idea to post it here also.  I am learning schemes theory at school and I have for now only lectures notes that I am taking during the course. The professor is quite often using following expressions, without having defined them : if $S$ is a scheme and if $f : X \rightarrow Y$ is a morphism of $S$-schemes he often says that some property P of $f$ is   (1) local on $X$  (2) local on $Y$  (3) local on $X$ and $Y$  (4) local on $X, Y$ and $S$  and I have several question on this, and related to this.  I went to the library to look at all Grothendieck's EGA's and found the same frequent use of the expression la question est locale sur in the same four cases - at least, maybe there are other than these four ? But I found in them no definition of the meaning of la question est locale sur, which means the question is local on in english.  I guess that (1) means that $f$ has the property P if and only if for every open cover $(U_i)_{i\in I}$ of $X$, all restrictions $f_{|U_i} : U_i \rightarrow Y$ have the property P, and that (2) means that $f$ has the property P if and only if for every open cover $(V_i)_{i\in I}$ of $Y$, all corestrictions $f^{-1} (V_i) \rightarrow V_i$ have the property P. For (3) obviously it is equivalent to check (1) and (2), but I cannot state a more synthetic formulation.  Does (3) means that $f$ has property P if and only if for every open cover $(U_i)_{i\in I}$ of $X$ and for every open cover $(V_j)_{j\in J}$ of $Y$ all morphisms $U_i \cap f^{-1} (V_j) \rightarrow V_j$ have the property P ? For (4) it is sufficient to define what means P is local on S. Does this means that $f$ has the property P if and only if for every open cover $(W_i)_{i\in I}$ of $S$, every morphism $p^{-1}(W_i) \cap f^{-1}(q^{-1} (W_i)) \rightarrow q^{-1} (W_i)$ has the property P ? Or is there something more clever than this. Combining this with (3) is equivalent to (4), but here again, is there a more synthetic formulation for this ?  In (1), (2), (3), (4) I used "local morphisms" (restrictions in (1), corestrictions in (2) etc). Is it possible to express these morphisms thanks to fiber products, and if so, how ?  In (1), (2), (3), (4) I used the word every cover but sometimes in the course it suffice to have the fact for only one cover to have it for all. How does this work ? (I call Q this question.)  Sometimes its not only open covers that are used, but open affine covers. For $i\in\{1,2,3,4\}$, is (i) equivalent to the assertion (i) with "open" replaced by "open affine", or even by "affine" ?  Is answering to question Q easier with "open" replaced by "open affine", or only "affine" ? Of this note, what does the following sentence mean : the property P of the morphism of $A$-algebras $\varphi : B' \rightarrow B$ is local on $\textrm{Spec}(A)$ (resp. on $\textrm{Spec}(B')$, resp. on $\textrm{Spec}(B)$, resp. on "combinations of the previous") ?   I have a last question : all the previous questions are local for the topology of the schemes involved, which is a topology in the "classic" sense. Is all of this translatable to Grothendieck topologies ? If so, how ? And then, intuitively, in the case of the Zariski site, is the same ?  I know that this was a lot of question, but all are intimately related to this "local on" stuff, so I preferred to ask all of them in one shot.


How can I track down what's filling my 'tempdb' transaction log?

We have a large and fairly well tuned SQL Server 2016 Enterprise Edition. Given the number of cores we have, our tempdb is currently comprised of 16 2,950 MB files running on a ram disk with a 16 GB transaction log file. All of the files are set to not autogrow and, as a general rule, this has run fine.  We have recently started to get some random "transaction log for tempdb database is full" errors. There's no set time when this is occurring so it is probably some user interaction. Since all interaction is through stored procedures, it's most likely some strange set of parameters or data that's causing the problem but we are unable to track down exactly what might be causing it. Any suggestions that might help us identify the culprit are appreciated.  I have been using the information in  to track this down. And that gives valuable information but it doesn't give me a way to actually determine what the spurious circumstances are that is causing the transaction log to fill up.   Is there some way to trigger a snapshot or log what is actually causing the issue. Worst case I can write a monitoring program that pings the server every half second and uses variations on those queries to capture anything that is huge and has an open transaction but that still doesn't guarantee that I will actually catch whatever is causing the issue.


Why do features in QGIS drawn on same datum as Google imagery from OpenLayers move?

I have just started using QGIS. I've loaded the "openlayers" plugin and added a google hybrid layer, which is based off the WGS84 datum to my understanding. Now I create a shapefile and add a new line vector layer based on the same datum. I draw a line and then zoom out. Now, the line has moved with regards to the google map (i'm drawing a road and now the road no longer lines up with the original road I'm using for a guide).   My end goal is to make a georeferenced shapefile with some roads. Is my methodology flawed or is their a problem with my plugin (assuming the former of course!)?


Anyone has a guide on how to upgrade EOL 14.04.3 LTS to 16.04?  Was looking into this  but seems to be not applicable.  Thanks.   Also plan to upgrade to 18.04 after upgrading to 16.04  By the way getting the following when running apt-get update.  ~# apt-get update Err http://old-releases.ubuntu.com main InRelease  Err http://old-releases.ubuntu.com trusty InRelease  Err http://old-releases.ubuntu.com trusty-updates InRelease  Err http://old-releases.ubuntu.com trusty-backports InRelease  Err http://old-releases.ubuntu.com trusty-security InRelease   Reverted back to archive as suggested still getting errors.  Err http://archive.ubuntu.com trusty InRelease  Err http://archive.ubuntu.com trusty-updates InRelease  Err http://archive.ubuntu.com trusty-backports InRelease  Err http://archive.ubuntu.com trusty-security InRelease


Visiting Romania with a type D visa for Germany

I have a Schengen visa type D for 134 days, can I visit Romania for a short stay (like 4 days)? I have reserved my ticket from Bucharest to Germany.


Is there any stable open terminal plugin for nautilus?


Show that $\lim_{p \to \infty}||x||_p=||x||_M$

Let  $$||x||_p=\left( \displaystyle \sum_{i=1}^n|x_i|^p\right)^{\frac{1}{p}}$$ and $$||x||_M=\max\{|x_1|,|x_2|,...,|x_n|\},$$ norms in $\mathbb{R}^n$. Show that $$\lim_{p \to \infty}||x||_p=||x||_M, \ \forall x \in \mathbb{R}^n.$$


Each photon of light bulb carries momentum. Why does the light bulb not recoil from conservation of momentum?


The equation  $$ a_n x^n+\dots+a_0=1, \qquad a_n\neq 0, \qquad a_i\in\mathbb{Z} $$ has $\geq 4$ distinct integral solutions. How can I prove that  $$ a_n x^n+\dots+a_0=-1 $$ has no integral solution?


Customize the Duplicate Username error message in a Community

When a Community user tries to register using an email address that already exists in the system (using self-registration), they receive a very generic error message:     "Your request cannot be processed at this time. The site administrator has been alerted."   Does anyone know how we can customize this error message (via code or anything else) to rather display something like this:     "Oops! Looks like you're trying to register with an email address that is already associated with a User. Please go back to the login page and log in with the email address and your existing password."


Do they have butter in the (canon) Star Wars galaxy?

Prompted by a  from the greatly esteemed ♦TimPost, we know that they have a wide variety of foodstuff in the Star Wars Galaxy, but do we have any  in-universe confirmations that they have butter?    For reference, I'm aware that they have  (that could theoretically be churned into butter) and that in the , Obi Wan cuts through droids     as if they were made of butter     Note also that the  doesn't appear to contain any canon sources, only outdated EU novels and comics.


I am trying to install Ubuntu 13.10 32 bit on older PC with only 256MB of RAM but every time it gets to the screen where choice needs to be done between demo and install it just hangs and I can not go any further. Sometimes it hangs even sooner on the purple screen. The mouse get sluggish and clicking on buttons does not do anything. Is it possible to run this OS on this older PC and if so what steps should I take to get it installed?? If I can not use Ubuntu on this PC can someone recommend another Linux OS which can be used?? Just trying to move away from Windows XP.


What is the difference between grey and gray? I've seen both used and I'm wondering which I should use when talking about the color. Why are there two spelling's for the same word and is there a difference in the meaning between the two?


How to find out the variant of my Galaxy Nexus?

There have been some Jelly Bean updates for Galaxy Nexus, but most of these are specific to a certain variant of the Nexus. How can I easily find out which variant I have?


The Sorgenfrey line ($\mathbb R$ endowed with the lower limit topology $\tau_l$) is Lindelöf

In course of showing that the Sorgenfrey line $(\mathbb R$ endowed with the lower limit topology $\tau_l)$ is lindelöf I've made the following attempt:    I've picked up a cover $\mathcal U$ of $\mathbb R$ by the elements chosen arbitrarily from $\tau_l.$ Next for $q\in\mathbb Q$ I've choosed $G_q\in \mathcal U$ such that $q\in G_q$ to form the set $K=\{G_q:q\in\mathbb Q\}.$ My intuition says that this $K$ must cover $\mathbb R$ since no matter what irrational I choose, on its left there exists (due to denseness of $\mathbb R$) arbitrarily close rational which would get enclosed in some member of $K.$ Now here where I got stuck since I can't convert my intuition to the mathematical language. Can someone suggest me any way out?


I hadn't played Minecraft in a few days prior to this, but when I fired it up, I had no sounds whatsoever, either in the menu or the game. First thing I checked was in-game, and all audio settings were set to 100%. I then tried the "Hold-F3-and-push-S" thing, and that had no effect. I then deleted the entire .minecraft folder (after having copied my saves out) and reinstalled, and even deleted my Minecraft.exe and re-downloaded it from minecraft.net. None of those had any effect.  I tried downloading a sounds set, with no effect. I looked in the assets/indexes/1.7.10.json file to see what files were there, and verified that the sounds exist. For example, I checked the walking on grass sound, found the file, made a copy to .ogg and played it in VLC, and it played fine.  I rebooted into Fedora and played the java version (same computer) and it plays the sound just fine, so I'm wondering what the issue is with Windows 7.  Anyone have any suggestions?


Prove that the square root of 3 is irrational

I'm trying to do this proof by contradiction. I know I have to use a lemma to establish that if $x$ is divisible by $3$, then $x^2$ is divisible by $3$. The lemma is the easy part. Any thoughts? How should I extend the proof for this to the square root of $6$?


How do I find out how long a script took to run in the Firefox console?

When I want to figure out how fast my JavaScript is I usually resort to "estimating" how fast it appears to be, this is extremely inefficient and most times I'm outright wrong.  In Ubuntu when you want to tell how long a program took to run, you'd use the time command like this:  time script_name.py   The output would look like this:  program output....  real    0m0.123s user    0m0.123s sys     0m0.123s   How can I get FireFox to show me similar information in the browser console?  NOTE: I'm using the latest version of FireFox & Lubuntu 18.04 (LTS).


How to replace line in file with pattern with sed?

I'm reading a lot of documentation on sed, and am still stumped on my particular use case.  I want to replace this line in a conf file with my own line:  Replace this line: #maxmemory <bytes> with: maxmemory 26gb  This is what I tried:  sed s/maxmemory.*bytes.*/maxmemory 26gb/ /etc/redis/redis.conf  I get the error: sed: -e expression #1, char 30: unterminated `s' command  Which stumps me because I don't know what that means. So my question is:  How can I accomplish what I want? What does that error mean? (so I can learn from it)


Star Trek: Why Is Voyager Referred To Without A "The" In Front?

Just happened to catch S1E3 yesterday (Parallax), and noticed that Paris refers to Voyager as the Voyager. Whenever we hear about other ships in Star Trek, they are always prefaced by "the" - "the Enterprise", "the Defiant", even "the Equinox" on Voyager as I recall. At some point in Voyager, the "the" was dropped - is there a reason why? It sounds awkward to me, but I usually rewatch the last few seasons of Voyager, which might bias me. Given that it seems the writers started out with using the definite article and later dropped it, I'm curious if the showrunners ever addressed this, as I'm sure people noticed the shift.


is explained very nicely in the link . But still i have not understood  Why is P value interpreted under null hypothesis?


So I’m having an issue when every time i attempt to run os-uninstaller it gives me an error saying:   Please use this software in a live-session   What exactly am I doing wrong here?


How can get the enum values from an int input? Let's say I have this enum below.  [Flags] public enum Weeks {     Sunday = 1,     Monday = 2,     Tuesday = 4,     Wednesday = 8,     Thursday = 16,     Friday = 32,     Saturday = 64 }  public List<Weeks> GetEnumValues(int input) {     // Don't know what is the logic here     // Help is much appreciated }   Then the output is as follows  Examples: 1.) input = 3; This means Sunday and Monday hence 1 + 2 = 3; This should return List<Weeks> { Sunday, Monday } 2.) input = 20; This means Tuesday and Thursday hence 4 + 16 = 20; This should return List<Weeks> { Tuesday, Thursday } 3.) input = 40; This means Wednesday and Friday hence 8 + 32 = 40; This should return List<Weeks> { Wednesday, Friday }   Thank you in advance.


Is it possible to have 2 ethernet connections over 1 cable?

Can I have one 4-twisted-pair cable (cat5) and split them into 2 ethernet ports? I know ethernet only needs 4 wires so that wouldn't be the problem but will it interfer with eachother or would that be no issue?


Let $s_p^2 = bs_1^2 + (1-b)s_2^2$, this can be an unbiased estimator of population variance, provided we find the correct value for $b$; in particular, $s_p^2 = \frac{(n1-1)s_1^2 + (n_2-1)s_2^2}{n_1+n_2-2}$ is an unbiased estimator   To minimize variance of $s_p^2 = bs_1^2 + (1-b)s_2^2:V(s_p^2)=b^2 V(s_1^2) + (1-b)^2 V(s_2^2)$ we need to find $\frac{d}{db}V(s_p^2)=0$ but I cannot solve this for $s_p^2$.   Intuitively, would think that the weighted average minimizes the variance; however, I want to know the precise proof of this.  How can i get this?   Thank you in advance.


Beamer pdf generated with pdflatex on Linux won't open with Windows/Adobe Reader

Apologies if this question is a duplicate, but I couldn't find anyone with the same problem as me:  I'm using TexMaker 4.1 to compile .pdf's with the pdflatex command.  My operating system is Linux Mint 17 Qiana (I think this might be relevant).  I've also just tested a few pdfs and I only encounter problems with posters and presentations made with beamer, not ordinary documents.  I can open all the files I generate with the pdf viewer that came packaged with Mint, called Okular.  I can open all the files on my Mac with Preview.  So far so good.  Then I have to give a presentation, so I whack my .pdf onto a usb stick and go to open the file on the standard windows machine that's in the seminar room (or any other machine running Adobe Reader).  Adobe Reader gives the error "There was a problem reading this document (131)".  Then I panic.  I have found a way of fixing the problem (although I don't understand it).  I run the following in the command line:  gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -DsAFER -sOutputFile=output.pdf input.pdf   (gs is ghostscript.)  So although there is a way of fixing the problem post hoc, I'd prefer it if the problem didn't exist at all.  Does anyone know what's going on?  Please ask for any more details that will be relevant to the question.  Thanks.


Render result is worse than render view mode. It looks very flat like 2D. How to fix it?

I am a newbie, using Blender 2.91 to make a sword. But my render result looks very flat like 2D, even worse than render view image. I am not satisfied with images on render view and material view mode either. Can you tell me how to fix it? I have tried to change the viewport settings and shading nodes on world, but it still didn't come to the ideal result. (I want the blade looks metal and handle looks lead.) I spent the whole afternoon but no good effect. Can you help me take a look? Thanks in advance.


Where are Adobe Flash cookies (sol files) stored?

Adobe Flash cookies (files with .sol extension) used to be located in ~/.macromedia. This folder no longer exists in Ubuntu 14.04LTS and newer. If the method of installing Flash has any effect on the location, the Ubuntu Installer option is how I installed it. So where are the Flash Cookies now located? I've tried searching for .sol files with no luck - and yes I have "Show Hidden Files" enabled in File Manager. Does anyone know where they're stored now?


Can a function be Riemann integrable, but not Lebesgue integrable?

I understand that there are functions where the Lebesgue integral exists, but they are not Riemann integrable (e.g. the Dirichlet function). Are there also functions that are Riemann integrable but not Lebesgue integrable?  If we e.g. have a function $f(x)=x$, $x\in[0,5]$ and have to find the Lebesgue integral of that function $\int_x x d\lambda$ how is the calculus then. I know it should be the same as when we integrate with respect to Riemann (25/2). But how do we calculate it if we don't use the Riemann integral?


What does the explicit keyword mean in C++?


I have some void methods and I need to test them, but I'm not sure about how to do it. I just know how to test methods that return something, using Assert. Someone knows how to do it? Do you guys know some links with exercices in this style?


How do i "copy" a sharepoint 2010 view into a new view preserving custom formatting?

I have a View on a list that is customized with conditional column formatting. I want to copy this and modify it. How?


How can I list net work devices and ipv4 address on linux without ifconfig/ip command

I already figured out that on Linux I can list network devices  (cd /proc/net/dev_snmp6/ && for device in *; do echo $device; done|sort)   but how can I get the ipv4 address of the device?  I do not have ifconfig/ip installed - and I'd like to keep it this way.


why my authors and addresses do not show?

Here is my node, anything wrong? But my authors and addresses do not show. Thanks.   \documentclass[11pt,oneside,english]{amsart}  \usepackage{authblk}  \@ifundefined{showcaptionsetup}{}{%  \PassOptionsToPackage{caption=false}{subfig}} \usepackage{subfig} \makeatother  \usepackage{babel} %\usepackage{csquotes} %\usepackage[style=apa]{biblatex} %\DeclareLanguageMapping{american}{american-apa}  \title{Forming Competitively Balanced Teams}  \author[1]{ABC} \author[2]{DEF}  \affil[1]{School1 \\ Email: abc@school1.edu} \affil[2]{School2\\ Email: def@school2.edu \\ }  \begin{document} \begin{abstract} adfadf \end{abstract}  \section{aaa} \section{bbb}  \end{document}


I am looking for an image hosting solution where:   I provide a user with a dedicated link That user clicks it and lands on a gallery management page where they can upload and remove images     In addition, I want to show this user's gallery this way:   Based on the gallery ID or something, I embed some JavaScript code on my web page (so it loads at the visitors browser's run-time rather than web crawlers that eat bandwidth) A visitor loads the page and sees the gallery. I will style it using my CSS.     The above solution frees me from bandwidth usage, file uploading coding, complicated API/REST calls and much more. The image files are not going through my server. All I want is to be able to generate some unique "gallery-id", to which I will redirect one user (the "owner" of that gallery) as well as display it on a web page.    Any solution for the above?  NOT A DUPLICATE OF ANY OTHER QUESTION - please read the question.


I'm Having trouble replicating the Black Body model for sun shown on this plot    To my understanding I should only use Planck's formula:  $$I(\lambda) = \frac{2\pi hc^2}{\lambda^5}\dfrac{1}{exp\left(\frac{hc}{k_bT\lambda}\right)}\cdot 10^{-9}$$  Being $\lambda$ in [m] and having the last factor, $10^{-9}$, added for the units presented. What i get is    Can anyone see why?


I'm trying to setup a image decal in cycles, and I can't figure how to setup the nodes to work fine. Does anyone know the solution?


What is the difference between “tits” and “boobs”?  P.S. I'm not sure if this question is appropriate but as English is not my native language I really would love to know the difference.


Counting The Number Of Ways To Seat Six People At A Table

How many ways are there to seat six people at a circular table where two seatings are considered equivalent if one can be obtained from the other by rotating the table?  I've been struggling with this for a while now and would like to ask for some help.


space between beamercolorbox in headline

I'm trying to create a horizontal headline box consisting of two different colors. This is what I have right now:  \documentclass{beamer} \usepackage{lmodern}   \definecolor{accent1}{RGB}{0, 110, 220} %blue \definecolor{accent2}{RGB}{255, 248, 220} %cornsilk   \setbeamercolor{accent12}{fg=accent1,bg=accent2} \setbeamercolor{accent21}{fg=accent2,bg=accent1}  \setbeamerfont{section in head/foot}{family=\rm}  \makeatletter \setbeamertemplate{headline} {     \leavevmode     \hbox     {         \begin{beamercolorbox}[wd=0.5\paperwidth,ht=3ex,dp=1.5ex,right]{accent12}         \end{beamercolorbox}         \begin{beamercolorbox}[wd=0.5\paperwidth,ht=3ex,dp=1.5ex,left]{accent21}             \usebeamerfont{section in head/foot}\hspace*{2ex}\insertsectionhead         \end{beamercolorbox}      }     \vskip0pt% } \makeatother  \beamertemplatenavigationsymbolsempty %remove navigation panel  \begin{document}  \section{Introduction} \begin{frame}     hello \end{frame}  \end{document}     there are a few problems with this code.   As you can see in the output there is a small space between the two color boxes, but why? Both boxes are set to a width of 0.5\paperwidth? There are overfull hbox warnings, why and how to get rid of them?


How to download lynda.com videos for offline use

I have access to the full library of lynda.com in the university. I would like to know how I could download the videos so that I can watch them at home. As a tip: If I send the link of the video with the help of "Internet Download Manager" I can watch the same video without being in the network of the university! But it has to be done for each and every video. How can I do this for all the small and big videos on the page in one tutorial? Thank you in advance!


Looking to set up Debian 9 and Ubuntu 18.04 LTS

I'm setting up to run something that requires "Linux Debian 9 and Ubuntu 18.04 LTS" I'm a first time Linux user. I just set up a computer to run it with a fresh HDD.   I'm able to find a DVD for 18.04 on Ebay but I'm not sure what Debian 9 is. Can I buy any version of 18.04 and then download and run Debian 9? Or are all versions of Debians on there? Is Debian a "distribution"? I watched a video talking about distributions, but am not sure what it is.  Basically my question is : can I install the 18.04 I have as a first step and then work on figuring out Debian 9? Or do I have to acquire 18.04 and Debian 9 at the same time ?


Do not send me emails about questions written by me (even if they have a tag I am subscribed to)

I subscribed to the tag "ecm", so I often receive such emails:    PROBLEM: Many of these email are about questions written by me. (I am quite active in that field, usually answering but also often asking)  Would it be possible to not send me emails about questions written by me?


What is the 'whoopsie' process and how can I remove it?

On one of my machines I have a process running called "whoopsie". I'm running 12.04 server and never specifically installed anything with this name.  Google seems to imply that it has something to with error logs but I'm not finding too much information. The fact that I didn't manually install it and the 3 other servers I checked did in fact have no such running process OR executable made me a bit confused.  Does anyone know what the "whoopsie" process is?  Does anyone know what packages might have installed it? The server is quite plain, it has a LAMP stack, Samba and print servers and the Nagios NRPE plugin, nothing more installed, just standing there being a nice backup-server.  Some more info:  $ whoopsie -h Usage:   whoopsie [OPTION...]  Help Options:   -h, --help           Show help options  Application Options:   -f, --foreground     Run in the foreground   and  USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND   whoopsie   913  0.0  0.4  24448  2092 ?        Ssl  May07   0:00 whoopsie   and  $ sudo cat /etc/passwd | grep whoop whoopsie:x:107:118::/nonexistent:/bin/false


Suppose every family makes babies until a boy is born: will this result in gender bias in the society?

Suppose in a society where every family wants a boy in their family at least: The family give births to children until the first boy is born. As soon as the first boy is born, they stop making babies.  Will such practice result in the society having more males than females?  what if I change the question to "every family stops making baby as soon as two boys are born"?


Question is that :  Suppose a matrix $A\in M_n(\mathbb{C})$ is a commutator by which i mean $A=BC-CB$ for some $B,C\in M_n(\mathbb{C})$ then we see that Trace of $A$ is $0$  But Suppose a matrix is of trace zero can we say that it is commutator?  I have tried seeing this for $2\times 2$ matrices and end up with nothing reasonable..  I would be thankful if some one can suggest me a way to proceed in this case.


Can I post questions while immediately giving an answer, when I think it is important enough to share?  I guess this is not the original spirit of Stack Exchange, though sometimes I think it would be good to have it saved somewhere. Also for myself in the case I might forget the answer...


I have an old house that was remodeled with a bathroom addition added years ago. I have two breaker panels: the outside service entrance panel (A) and another panel in the garage (B). I found bonds from neutral to ground at the service entrance panel (A) and in the garage panel (B).    The service entrance panel (A) was added for the remodel; it has a 125 amp breaker that feeds the garage panel (B) (3 wires: 2 hot and 1 neutral but no ground). It also feeds the bathroom addition. The neutral and ground are bonded in both panels.   What panel should have the neutral and ground bond?


How long is it okay to marinate pork ribs for?

I want to grill pork ribs for lunch on Sunday and usually I marinate them in the fridge over night (<18 hours). The supermarket only had "fresh" ones (usually I buy pre-packaged, which are good for a couple of days), so I asked if it was okay to keep them in the fridge until I marinate them tomorrow and the guy said:  Yes, better even marinate them today to add more flavor!  I've never heard/seen anyone marinate meat for more than maybe 18 hours, let alone almost 2 days. Is that really an okay thing to do? The marinade is: 3Tbsp ketchup, 2Tbsp apple juice, 1.5Tbsp balsamic vinegar, 1Tbsp honey, 1Tbsp BBQ sauce, 1.5tsp soy sauce, 1.5tsp mustard, 1.5tsp sugar, 1 onion and a couple of ground spices. If it's not okay to marinate the ribs for that long, is it still okay to keep them in the bag in the fridge until tomorrow evening or should I rather freeze them now, then defrost them again in the afternoon tomorrow?


Accidently deleted PATH environment variable - how do I get it back?

I had to add the JDK path in the system variables which is under environment variables, but by mistake I deleted the default path which was present in the Path and pasted the JDK path.  So how do I get the default path back?


How to find real world Selenium projects

Where can I find sample or real Selenium projects. All the material I can find on github and on internet are basic, and never intermediate or advanced.  How does a real Selenium project look in real life? How can I find sample code?


Will CDC work with SQL Server Always on Availability groups? Do you need to set up CDC on both/multiples nodes if using Availability Clusters?


How to calculate distance between two parallel lines?

Suppose there are two parallel lines: $w_1x_1+w_2x_2=c_1$ (Line 1) and $w_1x_1+w_2x_2=c_2$ (Line 2). What is the distance between them (the shortest distance between any two points)?  I know the answer is $d=\frac{|c_1-c_2|}{||w||}$ where $||w||=\sqrt{w_1^2+w_2^2}$.  The method I was going to calculate is as follows:  1) find any point on Line 1 $(x_1^0,x_2^0)$ such that $w_1x_1^0+w_2x_2^0=c_1$  2) calculate the perpendicular line (Line 3) to Line 1 and passing through $(x_1^0,x_2^0)$  3) find the point $(x_1^1,x_2^1)$ where Line 3 intersects Line 2  4) calculate the distance between $(x_1^0,x_2^0)$ and $(x_1^1,x_2^1)$  However I couldn't figure out the algebra of this method. Can someone show me the steps of the above calculation? Or is there any simpler way to calculate this? Thanks.


Does an upcast lesser restoration count as magical healing of 6th level or higher

I'm playing through a published module (not naming to avoid potential spoilers) and I just got attacked by an aboleth's tentacle attack and due to not receiving the whisper from the DM on Roll20 (He whispered the character and not me by mistake so I didn't receive it.) I waited more than a minute before trying to cure the disease. The creature's stat block says for the tentacle attack     Tentacle. Melee Weapon Attack: +9 to hit, reach 10 ft., one target. Hit: 12 (2d6 + 5) bludgeoning damage. If the target is a creature, it must succeed on a DC 14 Constitution saving throw or become diseased. The disease has no effect for 1 minute and can be removed by any magic that cures disease. After 1 minute, the diseased creature's skin becomes translucent and slimy, the creature can't regain hit points unless it is underwater, and the disease can be removed only by heal or another disease-curing spell of 6th level or higher. When the creature is outside a body of water, it takes 6 (1d12) acid damage every 10 minutes unless moisture is applied to the skin before 10 minutes have passed.   The important part here is that it specifically requires a "disease-curing spell of 6th level or higher." We got it cured with lesser restoration by retconning the one minute due to the technical issues with Roll20 but this brought up the question of "does an upcast spell such as Lesser Restoration count as a disease-curing spell of 6th level or higher?"