Question: Find all "tame" solutions of $f(x+y)+f(x-y)=2(f(x)+f(y))$.     This is how I've tried to begin— Plug in $y=0$ to get $f(0)=0$.   $y\to x$ gives $f(2x)=2^2f(x)$. Also, I've noted that $f$ is an even function by $y\to -x$ substitution.   Now, I somewhat think that $f(kx)=k^2f(x)$ but I'm not sure how to land onto there.  And at the end of the day, I believe $f(x)=ax^2$ but I cannot proceed into that stage.


Most of this discussion involves events at the end of Harry Potter and the Deathly Hallows so if you haven't read that book and don't want spoilers, then stop reading right now.  Yes, now.  It's not clear whether limbo is something everyone moves through in Harry Potter when they die, but when Harry is killed, he not only ends up there, but Dumbledore is there, waiting for him.  Did Dumbledore wait for him all that time, in limbo, until Harry showed up?  Did he have any way of watching what Harry was doing in that time?  Or did he have a way to enter limbo when Harry did to meet him there?  And once Harry was gone, was Dumbledore able to move on, or would he be stuck there?


Installing for the 1st time, having trouble setting up dual boot between Ubuntu 17.10 and Windows 10 UEFI

Everything went well during installation, I created a 50GB partition for Linux, chose the "Install alongside windows 10" Option, because "something else" did not work for me before. However, after rebooting, it boots directly into Windows 10. I've tried going to the BIOS to change the BOOT order but Ubuntu doesn't even show up there, I tried opening the boot menu (pressing f12 key on my laptop during reboot) and the only option there is windows boot manager, which also boots to win 10.  I tried boot-repair and it said it repaired succesfully but the problem still remains. Here's the report:   My computer runs on UEFI and I've already disabled secure boot. I also tried Legacy boot but no luck there either.  Please help, I can't figure out how to get the Grub menu, so I can actually choose which system I want to boot.


PHP not receveing characters with accents from Ajax

I made a script in Ajax that simply recovers data from MySQL and gives it back to PHP when a select option is changed:  $country = $_POST['country']; $sql = "SELECT id,name FROM regions WHERE idcountry='$country' ORDER BY name ASC"; $result = mysqli_query($connexion->db, $sql); $count_row = $result->num_rows;  $regions_arr = array();  while( $row = mysqli_fetch_array($result) ){     $idregion = $row['id'];     $nameregion = htmlentities($row['name']);      $regions_arr[] = array("id" => $idregion, "name" => $nameregion); } // encoding array to json format echo json_encode($regions_arr);   And in my PHP page I have this script:  <script> $(document).ready(function(){ $("#sel_country").change(function(){     var countryid = $(this).val();      $.ajax({         url: '/include/ajax/getRegions.php',         type: 'POST',         data: {country:countryid},         dataType: 'json',         success:function(response){              var len = response.length;              $("#sel_region").empty();             for( var i = 0; i<len; i++){                 var id = response[i]['id'];                 var name = response[i]['name'];                  $("#sel_region").append("<option value='"+id+"'>"+name+"</option>");              }         }     }); }); }); </script>   Everything works at is has to, except for some of the names recovered that have special characters, for instance "Genève" or "Zürich". Those values are not showed at all, my option has the correct value for the id but it looks empty in the name.  I searched and I tried with uriencode but it doesn't seem to change, any idea how to fix this? Thank you!  UPDATE AND SOLUTION  I solved this by changing my tables to utf8m64 in this way (for each table):  ALTER TABLE `table_name` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;   Then in my script Ajax I added this:  mysqli_set_charset($link, 'utf8mb4');   And then it finally works :)


COM doesn't support generics?What would be the best way to replicate this List<T> so that it's COM visible in the tlh file. EDIT::  c#::  [ComVisible(true)]     [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]     [Guid("FA677671-5E26-4307-AD2B-19BF1E7AFF8B")]     public interface IEvents     {         IEvents[] CreateListeners();     }   in C++ i have,   CComSafeArray<CSharp::IEvents> ppSA;     pInterface->CreateListeners(ppSA->GetSafeArrayPtr());   My question what i should do in this Create instance function so asto replicate this statement  List evt=new List(); in the managed c#?


I have a printer it do not print HP 2600 from Ubuntu 20.04. I have connected with a USB cable

I have purchased a HP2600(all in one) after the printer HP F2200 broke down it was 15 years old.I have the icon when I print,tel me that there is a correct printer I click print but nothing happen. Please Help.


How is division symbol usage currently defined?

I've been in a lengthy discussion today about how to interpret the division symbol. There seem to be two views on what it means.  • Everything on the left hand symbol is divided by everything on the right hand of the symbol. or  • The operator only deals with the term to its immediate left and right.  Which is correct? I tried to find a specific definition for the usage of the division operator but I couldn't find it.


Installing Drupal patches in Ubuntu terminal

I'm new to Ubuntu and I never ran Drupal patches before and now is my first to do so: I've searched here in the Drupal answers with the phrase: "Patches, Ubuntu" But I didn't find instruction on how to run patches for a module in a local site via the Ubuntu terminal. I've also searched some in Google in Youtube but I found ways for many other CLIs, but not for the Ubuntu terminal.  Is it possible to run the patches there as I would run Drush commands?


Image uploader close button is not responding on election nomination page

In the election nomination page, the image uploader section have the old UI. The close icon on the page is not responding, so unable to close the uploader page. Screenshot for reference:    Configuration: Operating System: Windows 10 Zoom: 100% Mozila Firefox : 80.0.1 (64-bit) Google Chrome : Version 85.0.4183.102 (Official Build) (64-bit)


Beamer -- not indenting itemize in a single environment

The output in the MWE posted at the end of this post is shown below. Notice how the default indentation from itemize gives an asymmetric slide w.r.t the spacing to the left and right of the itemize environment. How can I push the bullet points to the left so that the spaces to the left and right are the same? Such a solution would ideally be:   implementable on a one-off basis, so that it is applied when necessary (since some itemize environments should be given the default indentation) independent of the margin size, so that the solution doesn't need to be changed when the margin size is changed     \documentclass{beamer}   \begin{document}  \begin{frame}{A title} \begin{itemize} \item Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod \item tempor incididunt ut labore et dolore magna aliqua. \item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi \item ut aliquip ex ea commodo consequat. \begin{itemize} \item Duis aute irure dolor in reprehenderit in voluptate velit esse \item cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat \end{itemize} \end{itemize}    \end{frame} \end{document}


What did you guys just DO! Updates to both my 16.04 environs killed the desktops!

I just had updates run automatically in my 16.04 test and 16.04 live environments and they killed the desktops after I rebooted them! No launcher, no status bar at top. I know they are running, I can left click on desktop to get to settings, but there is no way to closes that once it is open! Provide restore please!


What causes damage, kinetic energy or momentum?

Let's assume we have 2 bullets. The first bullet has $450$ $J$ of KE and $3$ $kg.m/s$ of momentum, while the second bullet has $250$ $J$ of KE and $5$ $kg.m/s$. Now if they are both shot at ballistic gelatin, which one is expected to cause more damage if both are stopped by the gelatin? By damage here I mean more penetration, bigger cavity, heat and any other deformation of the gelatin.    In other words, if the velocity of a projectile is doubled, will the amount of damage it causes when it collides with an object double or quadruple?


From (say Apostol Analysis) we find the following two facts:   X is closed iff it contains ALL its accumulation points. X is closed iff it contains ALL its boundary points.   So, one must conclude that X contains all its accumulation points $\iff$  X contains all its closure points. How to show this fact (without claiming X is closed) ?  Thanks in advance.


I'm following along with the examples in Chapter 6 Redirection of The Linux Command Line (2012).  I am trying to redirect the standard output of an ls command to a text file.  I keep receiving a permission denied error. I'm using Ubuntu 13.04.  See below:  ta2tyrants@Vaio:/$ ls -l /usr/bin >> ls-output.txt bash: ls-output.txt: Permission denied   I tried to run this command using root access and get the same error:  ta2tyrants@Vaio:/$ sudo ls -l /usr/bin >> ls-output.txt bash: ls-output.txt: Permission denied   What am I doing wrong? Is there a way to get around this?


To analyse $f:\mathbb{C} \rightarrow \mathbb{C}$ can I just analyse $f:\mathbb{R}^2 \rightarrow \mathbb{R}^2 $?

To analyse $f:\mathbb{C} \rightarrow \mathbb{C}$ can I just analyse $f:\mathbb{R}^2 \rightarrow \mathbb{R}^2$ ?  My question is why would a complex valued function have different properties than a real 2-valued function, since I can construct a isomorphism between the spaces $\mathbb{R}^2$ and $\mathbb{C}$. Can I define derivatives and integration in the same way because of this isomorphism?   I'm asking this specially because I'm studying Complex Analysis this semester, and read about the result "If $f:\mathbb{C} \rightarrow \mathbb{C} \in C^{1}$ then $f \in C^\omega$" and I'm wondering if there is an analog one for real 2-valued functions.


How can I reverse the 'fn' key on an Apple Keyboard so that F1, F2, F3... are used as default?

To be more clear, right now the volume and brightness keys are used and I have to hold 'fn' in order to execute an F1, F2, F3, F4, F5... command. Can I reverse this so it's function key by default and holding 'fn' enables the volume and other special controls?


In a Google Spreadsheet, how can I force a row to be a certain height?

In a Google Doc spreadsheet I would like to have each row the same height no matter how much text is in each cell.  I have tried "resize row" but no matter how many pixels I put in, the row expands downward to the height of the highest cell with full expanded text.  How can I force the row to stay a certain height and insert scrollbars for all text that is longer than that height?    Here's a video explaining what I mean:


Logic Expressions with at least and statements

I have the statement "been(x,y)" which means " x has been to y" x is a set of names and y is a set of place. I'm trying to figure out how to write "Every person has been to at least two different places." using only quantifiers and been(x,y)  but I'm lost. Would I need to create a new statement like P(x) or a new variable and how do I include the at least function? I'd really appreciate the help


I'm using 18.04 Linux operating system on my device. How to install Feem software on my system?


Excel conditional formatting fragmentation

Often, I create a sheet with conditional formatting, and set the cell ranges so that the conditional formatting rules are only applied once to a range of cells, e.g.   Make $A$1:$A$30 red and Make $B$1:$B$30 blue.   After inserting/deleting a number of rows and/or columns the conditional formatting rule set becomes very fragmented, with the same rules repeated for a different ranges. e.g.   Make $A$1:$A$2 red  Make $A$3:$A$4 red  Make $A$5:$A$9 red Make $A$10:$A$20 red  Make $A$21:$A$30 red ... Make $B$1:$B$2 blue  Make $B$3:$B$4 blue Make $B$5:$B$9 blue Make $B$10:$B$20 blue  Make $B$21:$B$30 blue ....   Is there a good practice way of preventing this, or am I doomed to cleaning up the rule sets manually when they get too messy?


What is a low pass filter, and does a camera need to have one?

I have read on some camera reviews that they don't have a low pass filter and therefore they have sharper images.  Since I am a novice, I wonder what is a low pass filter and is it good to have one on a camera?


How to find an open cover of X which does not admit a finite subcover?

Let X be an infinite set. Let X be endowed with discrete metric. Give an open cover of X which does not admit a finite subcover.  The open sets in X are singletone sets I know that and X=$\cup_x$ {x} where x$\in$X. But now i dont know how to solve this problem.


What criteria must a badge meet to be tracked?

Over on , I'm getting close to a bronze badge in the  tag:    However, when trying to track this badge, it doesn't show up in the selection screen!    Since the game was released recently, I don't believe the tag was created much more than a month or two ago. Does a tag need to be created for a certain amount of time before it can be tracked? If not, why is the  tag not appearing in the Tag Selection screen?


How to install Office 2010 32 bit on Ubuntu 18.04?

I am trying to install MS Office 2010 32bit on my Ubuntu 18.04.   Following is my Wine version:   wine --version     wine-3.0 (Ubuntu 3.0-1ubuntu1)   When I run setup.exe I am getting following in the log. And installation stops. Can I get some tip, how can I make it work? Should I re-install Wine?  0094:err:mscoree:LoadLibraryShim error reading registry key for installroot 0094:err:mscoree:LoadLibraryShim error reading registry key for installroot 0094:err:mscoree:LoadLibraryShim error reading registry key for installroot 0094:err:msi:ITERATE_WriteRegistryValues Could not create key L"SOFTWARE\\Microsoft\\CTF\\TIP\\{70FAF614-E0B1-11D3-8F5C-00C04F9CF4AC}\\Category\\Category\\{70FAF615-E0B1-11D3-8F5C-00C04F9CF4AC}\\{A8BA876D-E619-11D3-8F5D-00C04F9CF4A0}" 0094:err:msi:ITERATE_Actions Execution halted, action L"WriteRegistryValues" returned 1627 0094:err:mscoree:LoadLibraryShim error reading registry key for installroot 0094:err:mscoree:LoadLibraryShim error reading registry key for installroot 0094:err:mscoree:LoadLibraryShim error reading registry key for installroot 0094:err:rpc:RpcAssoc_BindConnection rejected bind for reason 0 008c:err:rpc:RpcAssoc_BindConnection rejected bind for reason 0


How can I tell when a MySQL table was last updated?

In the footer of my page, I would like to add something like "last updated the xx/xx/200x" with this date being the last time a certain mySQL table has been updated.  What is the best way to do that?  Is there a function to retrieve the last updated date? Should I access to the database every time I need this value?


Keyboard Shortcut for formatting posts on Mac should support ⌘

The keyboard shortcuts for bold and italics on SO et al is incorrectly implemented on Mac, IMHO.  On Mac, we use the ⌘ key to invoke keyboard shortcuts. However, on SO, I have to remember to use control.   Can we get the ⌘ for keyboard shortcuts implemented please?


When to use #import & when @class - iPhone

I have already created a class named "Category"  In some online examples I have seen - they have implemented #import "Category.h"  In some examples - class in pre declared like @category before @interface new class  So I am confused  => When to use #import & => When to use @class?


Can Ubuntu provide an IDE for C, C++ programming?

I am a beginner in the field of programming. I have tried to learn C and C++ on a Windows 7 computer using the Turbo C++ compiler, but faced frequent failures and finally my laptop's motherboard failed. Please guide me so that can I install Ubuntu on my Windows 7 computer. Can Ubuntu provide a built-in IDE for C, C++ programming, and if not, what is the solution for my problem on Ubuntu?


Blurred colormap using matlab2tikz to export Matlab imagesc picture

I'm using matlab2tikz to export imagesc figures into TikZ/pgfplots code. This process gives me a TikZ file and a rasterized png version of the image with colours matching the colourbar at the time of execution.  The problem is that the resulting image is upside-down and displays a blurred colormap, as shown below.  This is the tikzpicture:    while this is how it should look like (screenshot from Matlab R2013a):    The file produced by matlab2tikz is as follows  \begin{tikzpicture}  \begin{axis}[% width=5.296in, height=4.747in, at={(1.01in,0.641in)}, scale only axis, point meta min=1, point meta max=8.715, axis on top, separate axis lines, every outer x axis line/.append style={black}, every x tick label/.append style={font=\color{black}}, xmin=0.05, xmax=1.05, every outer y axis line/.append style={black}, every y tick label/.append style={font=\color{black}}, y dir=reverse, ymin=0.05, ymax=1.05, axis background/.style={fill=white}, colormap/jet, colorbar, colorbar style={separate axis lines,every outer x axis line/.append style={black},every x tick label/.append style={font=\color{black}},every outer y axis line/.append style={black},every y tick label/.append style={font=\color{black}}} ] \addplot [forget plot] graphics [xmin=1.05,xmax=0.05,ymin=1.05,ymax=0.05] {ainf-1.png}; \end{axis} \end{tikzpicture}%   while the Matlab code that generates the figure is  figure imagesc([1 0.1], [1 0.1], mean_e_range) colorbar   My primary concern is how to sharpen the blurred surface of the colormap. As for the other problem, at worst I can plot the upside-down figure in Matlab and then get the upside-down TikZ version of such upside-down figure, which is the final picture I want.


Miller-Rabin-Test : Why can we be $100\%$ certain after $4$ tests for $p=13$?

I have question about a homework.  The question is:        Why can we be $100\%$ sure after $4$ tests for the special case of $p=13$?   I don't get it. I have a formula that states, that every test increases certainty by $\left(\frac14\right)^k$, where $k$ is the number of tests. So after $4$ tests I get around $99.6\%$ certainty, not $100\%.$


Providing additional fusing for multiple motors one branch circuit

so i have a 30A disconnect available for use at a customer site for running 2 5HP motors ( at 480V)  the only question i have though is if the line is sized for a 10HP motor would both the 5HP motors need additional fuse protection?   Or could i get away without having addtional fuses protecting the motors ?


Is there a way to communicate with a particular player or particular clan?

I accidentally rejected someone entry from the clan. I felt really bad about it because I recognized his name, and he explained that he comes on leaves the clan frequently for trophy reasons. Is there anyway I can send an invite now that he's in another clan?  In clash of the clans can you communicate with anyone outside of your clan? I know there's the global chat, but it's not a good chance someone will see a message addressed to them?  Aside from your own clan, can you ever message another clan, for example in war?


What is the unlisted requirement for posting on protected question (beyond 10 rep)?

I was just granted the Association Bonus for a new StackExchange site, as soon as I signed into it.  The purpose was to suggest an answer for a question, and at the bottom of the question, where the answer box is found, I instead was greeted with the message:     protected by ___ 2 hours ago      This question is protected to prevent "thanks!", "me too!", or spam   answers by new users. To answer it, you must have earned at least 10   reputation on this site.   So, there must be another requirement beyond the 10-minimum reputation, but it is unlisted.  What is that other requirement?


How to denote an angle and a triangle in a formula in Latex?

I'm almost new to Latex, and I need to denote an angle D, and a triangle ABC as the following in Latex. Ho can I do that?      I know that there are other more standard ways to denote angles and triangles in math docs, but I just need the above format.  Please help. Thanks.


During U-substitution, is the $du$ that we use as the infinitesimal in $\int f(u) \ du$ changing size?

I am familiar and comfortable with the following definition of an integral (defined as the the Riemann Sum where n approaches infinity).    I have circled in red two terms to emphasize a concept that I was taught: the $\frac{b-a}{n}$ term effectively becomes the $dx$ term. This intuitively makes sense to me.   Additionally, I am familiar with the following statement (as expressed here: )    However, I have boxed in red something that I find rather confusing when trying to interpret it through the understanding that $\frac{b-a}{n}$ sorta kinda equals $dx$...  Specifically, the $du$ value appears to be changing throughout the interval $[ g(a), g(b)]$. To reframe this in the "Riemann Sum" version,we would have something like: $\text{ "value that varies depending on where you are"} * \frac{g(b)-g(a)}{n}$  This is very confusing to me...because, if this is the correct interpretation, I'm not quite certain I understand why this is allowed.


i have looked at tons of tutorials and stuff, and even looked at other responses, but I still can't find .minecraft and %appdata%. I tried using run, reinstalling the launcher, etc, but nothing helps.


How to "bond" sshd to only a given interface?

How can I limit sshd to only listen on given interface when using OpenBSD 5.3?


Passing an argument to a scheduled class method

I have created a schedulable class   global class ScheduledClassTesting Implements Schedulable{      global void execute(SchedulableContext sc)     {          testScheduleClass();          System.abortJob( sc.getTriggerId() );       }      public void testScheduleClassMethod(string argPass){      }  }   However it doesnot allow me to save as it give the following error(which makes sense).  Save error: Method does not exist or incorrect signature: testScheduleClass()   Is it possible to create a method similar to testScheduleClassMethod() which accept's an argument(type string) at the time it is being scheduled?


Currently, I am studying smooth manifolds and I want to solve some exercises. There is a question that says:  Show that the dimension of a connected topological manifold is defined without ambiguity! Meaning that if $\dim M=n$, with the change of charts, the dimension still is $n$. Then show that this is true for a $C^r$ connected manifold using Inverse Function Theorem.   To prove the first part, let $(U,\varphi)$ and $(V,\psi)$ be two charts with $\varphi(U) \subseteq \mathbb{R}^m$ and $\psi(V) \subseteq \mathbb{R}^n$ and suppose that $U \cap V \neq \emptyset$. Then, since $\psi \circ \varphi : \varphi (U \cap V) \rightarrow \psi (U \cap V) $ is a homeomorphism, $m=n$. Now, using this, if $M$ is a connected topological manifold with atlas $\mathcal{A}$, for all charts $(U_{\alpha}, \varphi_{\alpha})\in \mathcal{A}$, $\varphi_{\alpha}(U_{\alpha}) \subseteq \mathbb{R}^n$ and $n$ is constant for all the charts. Am I right?  But I have a problem showing the second part! I think that since every $C^r$ manifold is also a topological manifold, the answer to this question would be trivial! Why do we need "Inverse Function theorem" to answer it??  Any help is appreciated.


My Bars on top and at left disappeared. I can now only right click and choose - change desktop background - Pressing Ctrl+Alt+T bring terminal out. Problem is I know nothing about it. There is now only my wall paper on the screen.


New instance every time while using ubuntu 20.04 in a bootable pendrive

I just installed ubuntu 20.04 in bootable pendrive.I wanted to use ubuntu in bootable pendrive,as my laptop has no free space in harddisk.Whenever i boot ubuntu 20.04 using bootable pendrive it shows checking file system everytime,after some time it shows me the installation window with two options (Try Ubuntu,Install Ubuntu).So i had to click on try ubuntu every time.Everytime the screen shows up and when i click Try ubuntu it once again shows the manufacturer logo and loads as new desktop each time and the files i stored in it and the update i made to the sofware is no more.I tried it out in different pendrive too. please help to solve the issue that it shows new setup everytime i turn on my laptop and the files in it and the changes i made gets erased


Conditional Expected Value Problem involving Poisson and Gamma distributions

The question is      An insurance company supposes that the number of accidents that each of its policyholders will have this year is Poisson distributed, with a mean depending on the policyholder: the Poisson mean $\Lambda$ of a randomly chosen person has a Gamma distribution with the $\Gamma(2, 1)$-density function $f_\Lambda(\lambda) = \lambda{e^{-\lambda}} $ ($\lambda > 0$). Find the expected value of $\Lambda$ for a policyholder having $x$ accidents this year ($x = 0, 1, 2, \ldots$)   I am very unsure of how to solve this problem. I know that we need to solve for $E(\Lambda\mid X=x).$ I am pretty sure, but not sure what comes after this.


Newton’s first law states that $\Delta v=0$ unless acted on by an external force, $F_{\mathrm{net}}\neq0$.  Can someone explain to me what the $\Delta v$ symbol means?


Java: Why aren't NullPointerExceptions called NullReferenceExceptions?

Was this an oversight?  Or is it to do with the JVM?


Tensor products of simple modules over algebras

Let $A$ and $B$ be $\mathbb{C}$-algebras. Suppose that $M$ and $N$ are respectively simple $A$ and $B$ modules.   We can regard $M$ and $N$ as $A\oplus B$-modules in natural way, namely, $AN=0$ and $BM=0$. Let $M\otimes_{\mathbb{C}} N$ be the tensor product of $A\oplus B$-modules $A$ and $B$.  ${\bf My\ Question:}$ Is $M\otimes_{\mathbb{C}} N$ still a simple $A\oplus B$-module? What conditions on $A$ and $B$ will make this result true? Thanks very much in advance!


pgfplots: percentages and endvalues in stacked ybar

I have two questions regarding the pgfplots package. I have attached the source code I worked on. There are two features I am not able to realize:   I would like to put the total value (sum of the whole stacked bar) on top of the bar, rotated by 90°. For me, it was only possible yet to get the value of each part of the stacked bar by using the nodes near coords command. Additionally, the percentage of each part of the stacked bar as relative to the whole stacked bar should be displayed in the bar, also rotated by 90° (addition equals 100%)   If it is somehow possible, percentages should have only one significant digit, and those below 5% should not be displayed in the bar. I know this is a pretty complex example, but maybe there is one who can solve it.  \documentclass{article}  \usepackage{pgfplots,pgfplotstable}   \usetikzlibrary{pgfplots.groupplots}    \pgfplotsset{compat=1.8}   \pgfplotstableread{  Criterion  ddd     ccc     vvv   (0)    700         750         750   (a)    700         750         750   (b)        1200        750         750       (c)    33      345     345  (d)    34      333     345  (e)    234     344     344   }\Rob   \pgfplotstableread{  Criterion  ddd     ccc     vvv   0      70          75          75    a      70          75          75    b          120         75      75        c      3       34      34  d      3       33      34  e      23      34      34  }\Gab   \begin{document}  \begin{tikzpicture} \begin{groupplot}[group style= {     columns=2,xlabels at=edge bottom,     ylabels at=edge left,     horizontal sep=1cm,group name=plots, }, ymin=0, enlarge x limits={abs=.5}, enlarge y limits={upper,value=0.4},  ylabel=Mon, ylabel style={text height=0.02\textwidth,inner ysep=0pt},  ybar,ybar stacked, major x tick style = transparent,  /pgf/bar shift=0pt, /pgf/bar width=9pt, x tick label style={text height=2ex},    xlabel style={yshift=-2ex},  xticklabels from table={\Rob}{Criterion},  xtick=data,legend columns=-1, legend style={draw=none, /tikz/every even column/.append   style={column sep=5pt}}]  \nextgroupplot[xlabel=Rob, xlabel shift = -7.5cm, legend to name=grouplegend] \pgfplotstableforeachcolumn\Rob\as\col{     \ifnum\pgfplotstablecol=0      \else       \edef\tmp{         \noexpand\addplot table [x expr=\noexpand\coordindex,y=\col] {\noexpand\Rob};         \noexpand\addlegendentry {\col}     }     \tmp     \fi }  \nextgroupplot[xlabel=Gab, xlabel shift = -7.5cm] \pgfplotstableforeachcolumn\Gab\as\col{     \ifnum\pgfplotstablecol=0      \else     \edef\tmp{         \noexpand\addplot table [x expr=\noexpand\coordindex,y=\col] {\noexpand\Gab};     }     \tmp     \fi   }   \end{groupplot}  \draw[dashed] (plots c1r1.south west) -- ++(0,-1.5);   \draw[dashed] (plots c1r1.south east) -- ++(0,-1.5);  \draw[dashed] (plots c2r1.south west) -- ++(0,-1.5);  \draw[dashed] (plots c2r1.south east) -- ++(0,-1.5);  \node at (plots c1r1.south) [inner sep=0pt,anchor=north, yshift=-12ex]     {\ref{grouplegend}};  \end{tikzpicture}  \end{document}


What does returning true or false do to onclick?

I would like to know what happens when returning true or false to an onclick?  This is the code,  <button onclick="return test()">Button</button>  <script type="text/javascript">          function test() {         alert("hey");         return false;     } </script>   Changing false to true doesn't change the function behavior.  What exactly does true or false do when returned to onclick?


Let $f(z)$ be entire function. Show that if $f(z)$ is real when $|z| = 1$, then $f(z)$ must be a constant function using Maximum Modulus theorem

Let $f(z)$ be entire function. Consider the functions $e^{if(z)}$ and $e^{−if(z)}$ and applying the Maximum Modulus Theorem, show that if $f(z)$ is real when $|z| = 1$, then $f(z)$ must be a constant function.  (We take $f(z)=u(z)+iv(z)$)  I am confused as so far I have $|g(z)|=|e^{if(z)}|=|e^{-v(z)}|$ and then since $f(z)$ is real, $f(z)=u(z)$ and $v(z)=0$ so I assumed it would follow that $|g(z)|=|e^{v(z)}|=1$.  Similarly, $|g(z)|=|e^{-if(z)}|=|e^{v(z)}|=1$.  Using Liouville I assumed one could say that both $g(z)$ and $h(z)$ are bounded entire functions, they are constant and so it follows that $v(z)$ is constant, meaning that both its partial derivatives are equal to 0 and, due to Cauchy Riemann, both of the partial derivatives of $u(z)$ are equal to zero.  It would then follow that $f(z)$ is constant.  I don't know how to go about the question using the Maximum Modulus Theorem, also I feel I am overlooking the importance of $|z|=1$ perhaps?  Any help would be much appreciated!!


Arduino I2C bus fails when one slave is powered down

I have a set of Arduino Nano units where one is I2C master broadcasting messages to a number of slaves. It works perfectly fine when they are all powered on.  The Arduino units are all interconnected with wires between A4 (SDA), A5 (SCL) and GND. All of them have separate 5V lines. I have tried with internal pullups (as configured by the Wire lib) and by external 4.7k resistors.  The problem is when I cut the 5V line on one of the slaves. That slave will then pull the A4 and A5 lines to GND. My pullups doesn't do enough to pull it back. How can I circumvent this behavior?  My ideas range from using some kind of solid state "relay"/analog multiplexer to ensure the I2C bus is electronically disconnected from the Arduino when powered down, to using some opto-decoupler. I have not used such methods before and perhaps there are better ways of doing this. I'd prefer not to add extra hardware unless I have to. By the way, I don't necessarily need to have bidirectional communication over the bus. I only need the master to broadcast messages to all slaves at once.


Can my old laptop with a Intel Atom N450 1.66 GHz run ubuntu without that much lag? It only has 1gb of ram which i feel might be an issue


Add blank/empty page after every page automatically

I wrote my thesis and my school wants an one-sided print. The printing and binding will be done by a professional bookbinder. They only accept only two sided manuscripts.    My \documentclass:  \documentclass[ 11pt, ngerman, onehalfspacing, headsepline, oneside ]{MastersDoctoralThesis}     Because of that I need to add a blank page after every page of content. I don't want to do this manually using \newpage or \clearpage because there are too many pages. Is there any LaTeX command (or package) to do this (automatically)?  Thanks for your help!


How to Hibernate Ubuntu Gnome 16.04 from the GUI?

I'm able to hibernate my system with the command systemctl hibernate. However If I try to hibernate it with the Alt + Shutdown menu, then my system is suspended instead of truly hibernate.  Is there anyway to hibernate from Gnome GUI?  The extension "Hibernate status button" have not solved the problem.


Specifying character encoding on a string in PHP / MySQL database

I created a CMS in PHP using PDO/MySQL. On each page in the CMS I have the HTML charset entered as UTF-8:  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">  I have a couple of <textfield> elements that the user can enter some descriptive text of the item into. This works well for strings that are typed out into the <textarea>, however the client has a tendency to copy and paste from another document, by the looks of it. Every so often I see a � on the page, however, in the database, it's actually a hyphen, or an apostrophe, etc.  I know that it's an encoding issue, but what I'm not sure of is where the problem is. If I'm setting the page charset as UTF-8, should the content not save as UTF-8?  If I change the charset to Latin-1 (ISO 8859-1) the symbol appears correctly. I was under the impression that UTF-8 had a broader character range than Latin-1, which kind of adds to the confusion.  Is there a work around for this in PHP? Can I force a field in MySQL to be a specific charset?  I have checked a few Questions and Answers on SSO without much luck. Most of the answers are "Make sure you're declaring your charset", which I am.


In Vs On Vs At (when talking about streets)

I have found many sentences with street names and some of them have these three prepositions. I Don't know, but I believe that Americans use (on + name of the street) and British use (in + name of the street). So if I am correct about this, are these sentences correct?     He lives in Oxford St.      He lives on Oxford St.   I also came across that "in" is not used when we want to talk about exact location, you'd use "at" instead. So, are these sentences correct?     He lives at 4732 Marshall Drive.      Alice's office is at 26515 Main Street.   These last two sentences I've come across them using the prepositon "on", but if "at" is used to exact location, I think that "on" would be incorrect. I don't know if there is any difference between British and American English in this case.


I'm an undergraduate student. I used to think that a PhD certifies a person as an expert in a specific topic of a specific field. I've now been told that while that's true, a PhD most importantly proves that you are capable of independent research in general.  A professor of fluid dynamics told me that if he wanted to shift his research to an unrelated topic like dog anatomy, rather than getting a second degree he would seek out successive projects that get progressively closer to his research interest (e.g. a project on modelling blood flow in a dog, etc.), until eventually he is working on his originally unrelated research interest.  Is the above approach generally valid? If it works, then what legitimate reason is there to get a second PhD?


Why is $\mathbb{R}^2$ not a subset and /or a subspace of $\mathbb{R}^3$?

One thing this suggests--at least to me--is that the x-y plane and $\mathbb{R}^2$ are not necessarily equivalent.  For example, I could define the following: $X = \left\{ \begin{bmatrix} x\\y\\z\end{bmatrix} x,y \in \mathbb{R} \land z = 0\right\}$.  Am I wrong to think, one, that this is a subset of $\mathbb{R}^3$?  As I write this it occurs to me that while scalar multiplication is closed under the above rules, addition doesn't pass the smell test for a subspace... so, OK, it's certainly not a subspace.  I would welcome any insight readers of this query can provide.


how to convert the content of subfolders recursive to pdf format?

i have a folder with tons of subfolders containing png's.  how can i step recursively through the subfolders and convert that files to pdf? The pdf should have the name of the subfolder and be saved in the starting folder ... there are no folders in folders, no problem with double names expected. i'm beginner, tried other ideas, but terrible things happend ...  joe


Pretty self-explanatory (I know this is a common question). I'm not sure. Can someone help me out?


Is there a location where I can drop in a custom JavaScript file in Drupal 7.x?  It just includes simple event actions for menus, and I don't want to edit the theme/module files.  Or do I have to just add the "include" hook to the theme/module?


Is "any of (plural noun)" used with a singular or plural verb?

Does one say, "If any of my grandchildren does not attain the age of eighteen..."  or does one say, "If any of my grandchildren do not attain the age of eighteen..."  The second phrase seems to imply that more than on grandchild must not attain the age of eighteen before the contingency comes into play.  Whereas, the first implies that if only one grandchild does not attain the age of eighteen, then the contingency is "activated".   Does anyone have "any" thoughts on this subject?    This question is not a duplicate of the question "". That question is about whether a noun that is positioned immediately after any should be singular or plural: e.g. "any grandchild" vs. "any grandchildren". This question is about whether a verb used with the structure "any of [plural noun]" should be singular or plural.


"None of us is" vs "None of us are", Which is Correct?

Background We have a motivational poster in our office that says:  None of us is as smart as all of us.   I think that it's grammatically incorrect, and here is my reasoning:  All of the tigers have spots. All of us are here. None of us are dead yet.  The three examples all sound correct when using the plural "are", rather than "is". Question Unfortunately, some of my coworkers disagree with me. They believe that the quote is correct when it uses the word "is". So my question is this: Is the motivational quote grammatically correct or should it say "all"?


Why don’t photons interact with the Higgs field?

Why don’t photons interact with the Higgs field and hence remain massless?


removing file extension in strings in javascript

I have to parse strings that present name of files as:  myfilename.txt anotherfilename.jpg a.filename.with.dots.jpg   I need to extract the filename without it's extension. for example "myfilename.txt" should return "myfilename" and "a.filename.with.dots.jpg" should return "a.filename.with.dots" not that some filename are problematic in what they contain and the javascript should be able to handle this.  what's the best was of doing this? this is what I tried so far and didn't work.  namearr = name.split('.') filename = namearr.splice()   I can use regex like      ^(.?)..?$   for this but it seems like an overkill for this  the problem I see with other answered for this is that they don't take in account the number of dots the filename can contain. (not excluding the extension)


My LaTeX document does not properly represent German character. In my opinion, I have my preamble set correctly. what needs to be set correctly, so that the characters such as Ä, ß, etc. are represented?  My preamble:  \usepackage{lmodern} \renewcommand{\sfdefault}{lmss} \renewcommand{\ttdefault}{lmtt} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{fancyhdr} \pagestyle{fancy} \setcounter{secnumdepth}{3} \setlength{\parskip}{\medskipamount} \setlength{\parindent}{0pt} \usepackage{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage{nomencl}   and the document settings:  \documentclass[12pt,a4paper,english,ngerman,intoc,bibliography=totoc,index=totoc,BCOR10mm,captions=tableheading,titlepage,fleqn]{scrbook}


creating equiangular HDRI of my own scene

I have created a room in an arch viz project.  It has no windows.  Currently I'm using a studio light HDRI setup for lighting.   I'm rendering out what I will call backplates and then separately rendering out some animations of forground characters and objects, and then compositing them together with the backplate.  Here is my problem.   One of the objects I am rendering separately is all chrome, so it is now reflecting only the studio lights of the current HDRI. But I need it to reflect my actual room.  So I would like to create a quick and dirty HDRI equiangular map of my actual room.  -The backplate renders is 1280 x 720px. -I am using Cycles  Can anyone provide me a detailed workflow on how to properly create my HDRI map within Blender? Please also tell me what size it should be.


I'm trying to do some treatement after creating an item but the treatement is done twice because in my code after creating the item, I'm updating it , so the event reciever get fired twice: first when I add the element and the second when I updated it. Here's the code :  if (Mode == OperationMode.New) {     item = ListeActions.AddItem();     item["Client"] = new SPFieldLookupValue(myClient.ID, myClient["Name"] as string).ToString();     //the Event Reciever ItemAdded is fired here } if (Mode == OperationMode.Edit) {     item = ListeActions.GetItemById(ActionItemID); } TextField ACObject = (TextField)Page.GetControlById("ACObjectID"); UserField ACAssignedTo = (UserField)Page.GetControlById("ACAssignedToID"); NoteField ACDetails = (NoteField)Page.GetControlById("ACDetailsID");  item["Object"] = ACObject.Value; item["AssignedTo"] = ACAssignedTo.Value; item["Details"] = ACDetails.Value;  item.Update();  //if we're in the case of adding new item then the event //reciever ItemAdded is fired here for the second time //while ItemUpdated is not fired   So how can I stop the second fire of itemAdded resulting on the item.Update() yet keep the first fire since I need to keep applying my treatement?  PS: in the case of updating an existing ListeActions.item the itemUpdated is fired twice too !!  BTW : This Code isn't written in the itemadded method nor in the itemupdated method, actually it's the code in a user control for a webpart development.


Get Currently Executing Class/Method Name?

I have seen a few different flavors of exception logging utility out there, and a common concept is to capture the class and method that were running when the exception was thrown. In the case that made me wonder this, the logger is used for more than just exceptions. It has method signatures like:  public static void logMessage     (LoggingLevel loggingLevel, String className, String methodName, String message)   It seems to me that we should be able to get the className and methodName parameters programatically. Can it be done? How?


I performed a hierarchical multiple regression to study the effect of different variables, above and beyond the apriori selected more important variables. The R script used to perform this regression is listed below.  Data <- read.csv("~/Desktop/data.csv", header=T,quote="") Data$catVar.f <- factor(HMRdata$catVar) HRModel1 <- lm(responseV ~ catVar.f, Data) HRModel2 <- lm(responseV ~ catVar.f + v1, Data) HRModel3 <- lm(responseV ~ catVar.f + v1+ v2, Data) HRModel4 <- lm(responseV ~ catVar.f + v1 + v2 + v3, Data) summary (HRModel1) summary (HRModel2) summary (HRModel3) summary (HRModel4) anova (HRModel1, HRModel2, HRModel3, HRModel4)   My supervisor thought that the collinearity within the variables may pose a problem, and so asked to me perform a similar method called sequential regression, in which, instead of adding the new variables in the later regression analyses, I added residuals of these variables regressed against the previous, more important variables. The R script for this regression method is listed below –  RModel1 <- lm(v1 ~ catVar.f, Data, na.action = na.exclude) v1residuals <- resid(RModel1) RModel2 <- lm(v2 ~ catVar.f + v1residuals, Data, na.action = na.exclude) v2residuals <- resid(RModel2) RModel3 <- lm(v3 ~ catVar.f + v1residuals + v2residuals, Data, na.action = na.exclude) v3residuals <- resid(RModel3) SRModel1 <- lm(responseV ~ catVar.f, Data) SRModel2 <- lm(responseV ~ catVar.f + v1residuals, Data) SRModel3 <- lm(responseV ~ catVar.f + v1residuals + v2residuals, Data) SRModel4 <- lm(responseV ~ catVar.f + v1residuals + v2residuals + v3residuals, Data) summary (SRModel1) summary (SRModel2) summary (SRModel3) summary (SRModel4) anova (SRModel1, SRModel2, SRModel3, SRModel4)   To my surprise, the outputs (for summary and anova functions) of both the regression methods are exactly the same. Since I do not know the statistical principals behind these methods, I cannot figure out the reason for the same outputs. Can somebody please explain why both methods gave the same outputs? Also, is there any mistake in my approach?  EDIT - outputs from anova  Hierarchical Regression output  Model 1: responseV ~ catVar.f Model 2: responseV ~ catVar.f + v1   Model 3: responseV ~ catVar.f + v1 + v2 Model 4: responseV ~ catVar.f + v1 + v2 + v3 + v4 Model 5: responseV ~ catVar.f + v1 + v2 + v3 + v4 + v5 + v6 +v7 + v8          Res.Df    RSS Df Sum of Sq        F    Pr(>F)     1     53 7324.2 2     52 2663.8  1    4660.3 111.3874 9.347e-14 *** 3     51 2057.7  1     606.1  14.4874 0.0004238 *** 4     49 1968.2  2      89.5   1.0699 0.3516141 5     45 1882.8  4      85.4   0.5103 0.7283774   Sequential regression output  Model 1: responseV ~ catVar.f Model 2: responseV ~ catVar.f + v1  residuals Model 3: responseV ~ catVar.f + v1residuals + v2residuals Model 4: responseV ~ catVar.f + v1residuals + v2residuals + v3residuals + v4residuals Model 5: responseV ~ catVar.f + v1residuals + v2residuals + v3residuals + v4residuals + v5residuals + v6residuals +v7residuals + v8residuals    Res.Df    RSS Df Sum of Sq        F    Pr(>F)     1     53 7324.2  2     52 2663.8  1    4660.3 111.3874 9.347e-14 *** 3     51 2057.7  1     606.1  14.4874 0.0004238 *** 4     49 1968.2  2      89.5   1.0699 0.3516141 5     45 1882.8  4      85.4   0.5103 0.7283774


Looking for a book about a slave that gathers friends and goes into a desert to find a dragon

I remember reading this book back in late 90's. It is about a slave that gathers some friends and goes into a desert to find/fight a dragon. There is also a revolt/uprising in the slaves' home town. I can't remember if this is a single book or a trilogy.  I think the rulers were called Sorcerer-lords or Sorcerer-Kings. And I remember one character was called Boris or Borys.


I am writing a function that prompts for the name of a file and then make sure the input starts with a alpha char, if it doesn't it will re prompt the user for a name until the criteria is met. It also gives an additional message if the user inputs a path(a path is anything with a '/' for the purpose of this assignment). That is where I am getting an issue...  here is my code...  #1) make a getname function that will prompt for filename function getname(){ trap control_c SIGINT local fname=$1;  #if there is no input prompt user for file name if [ ! $1 ]; then         read -p "Enter a file name: " fname; fi;  #until grep is given a valid file name until ( grep -E '^[a-zA-Z_]\w+$' <<< "$fname" > /dev/null 2>&1); do              #this is were the error is         if echo "$fname" | grep -E '/';               then                           #this tests if fname is a file directory         echo "Paths are not a legal file name.";         fi;         read -p "Enter a legal file name: " fname; done echo "$fname" }   The if statement within the until loop will not prompt the user that paths are not valid input under any circumstances and also produces no errors. How would I properly implement a grep in an if statement?


Who shot Vader's ship during the Battle of Yavin, Han or Chewie?

At the end of the movie Star Wars: Episode IV — A New Hope (1977), during the Battle of Yavin, we are witnesses to how, while Darth Vader and his wingmen were on the tail of Luke's X-wing in the Death Star trench, two failed series of laser shoots, one behind and one in front of Vader's left-hand wingman, the Millennium Falcon succeeds with a third one in blasting the mentioned ship, whose explosion distracts Vader's right-hand wingman whom, in turn, collides and knocks Vader's TIE Advanced fighter out of the trench before he can shoot down Luke. Just after the shooting, we can see a closeup view of Han Solo, wearing a headset and shouting euphorically 'Yahoo!', which does not allow us to know if Chewbacca was sitting next to him or not, which made me thinking if Chewbacca could have been wearing the other headset and battling Vader's ship and TIE fighter companions with the ventral or dorsal quad laser cannon. Notice also that some time elapsed between the hit of Vader's wingmen and the shot in which appears Chewbacca and Han and, last but not least, after saying 'Great shot, kid! That was one in a million! Han stirs Chewie up as if Solo was telling the Wookiee: Your shot was great too, my friend! The aforementioned leads me to ask, who really shot Vader's ship during the Battle of Yavin, Han or Chewie?


What are the differences between \newcounter vs \newcount?  So far as my knowledge goes \newcounter is from LaTeX and  \newcount is from TeX. Also, I  \newcounter has an optional automatic reset mechanism. So, if I define \newcounter{mycounter}[section], mycounter is reset to zero every time the section counter is incremented.  Are there any other differences between the two? Are there specific places or situations of their use? And internally, what exactly is used by \newcounter? Is it actually \newcount?


I had the game but got nervous about traveling to catch Pokemon because of other people knowing where I am. I will get the game again but I want to know if this is true or not first.  Can Pokemon Go give your location to complete strangers?


Can you do Desktop Development using JavaScript?

I know there's JScript.NET, but it isn't the same as the JavaScript we know from the web.  Does anyone know if there are any JavaScript based platforms/compilers for desktop development? Most specifically Windows desktop development.


How do I know the script file name in a Bash script?

How can I determine the name of the Bash script file inside the script itself?  Like if my script is in file runme.sh, then how would I make it to display "You are running runme.sh" message without hardcoding that?


How can I search only those photos which haven't been added to any album on Google Photos?

I selected a group of photos and added them to an album.  But now, I want to exclude those photos from my search, because I don't want to add them to another album by mistake and vice versa - I want to add all photos to some album.  I searched on Google, but found nothing.  Do you know any solution?


FM Transmitter (Modulator) Circuit Simulation Problem

I've asked my question before, and I am writing this new question with some edits based on my previous problem.  I am building a small FM Modulator ( Transmitting ) simulation on (Multisim). I've used a circuit that I had from Google, and welling to use it for my simulation. Note that this simulation is only for (Educational and Learning Purposes), Therefore, I've replaced the mic and the antenna with some signal generator and oscilloscope or signal analyzer.  The circuit that I used for my transmitter as follows:    When I built that circuit on Multisim, I've made many variable capacitors to notice any changes on the result and how the signal would be effected when the simulation is running.  I've placed function generator with ( Sinusoidal Function ) with ( 1 KHz ) Frequency on the input. On the other hand, The output has both of an oscilloscope and a Signal Analyzer.  the output was weird on oscilloscope. But signal analyzer has almost a Sin function signal same as output. So the system has worked as Integrator, Not a modulator.  Example of the built circuit including the input and output stuff:    After having many changes on the circuit and too many tries, I've tried to add a capacitor attached to resistor in series with a signal generator to check if it removes the DC or ripples. and tried to connect the grounding to the circuit directly.. I had some other weird results as Follows:    Also, I've used another circuit (just a test), Used a function generator on the input, and added a carrier function generator on the emitter of the transistor, and put some oscilloscope to analyze the output as follows:     The output was also weird. Therefore, I guess the problem is how I am using the circuit and how I apply the input and output devices.  As for my information, when I am applying a (Sin) function signal to the input. the modulated output should be as follows:    Any suggestions whats wrong in my circuit and what changes do I have to make to have the expected results?


Can I install Ubuntu 64-bit on Lenovo ThinkCentre M710t?

I bought a Lenovo PC model ThinkCentre M710t.  It says The CPU is Pentium G4600.  Is it OK to install Ubuntu 17.10 amd64?


How do i establish the convergence of the series  $$1-\frac12-\frac13+\frac14+\frac15+\frac16-\frac17-\frac18-\frac19-\frac1 {10}+...$$  where the number of signs increases by 1 in each "block"?  I cannot apply the Dirichlet test because the sequence of partial sums of $1,-1,-1,1,1,1,...$ is not bounded.  Please help.


Why does extending a nested list in Python also extend subsequent nested lists?


Is there an injective $C^1$ curve dense in the plane?

Is there a curve $\gamma : \mathbb{R} \to \mathbb{R}^2$ injective and $\mathcal{C}^1$ whose range is dense in $\mathbb{R}^2$?


How to handle more than 9 parameters in Kiviat Diagrams?

This email is regarding  to draw Kiviat Diagrams.  This Solution is working perfectly upto 9 axis. But when we make number of axis as 10, it's giving error as : "You already have nine parameters."   Can you please suggest, how to handle more than 9 axis using second solution suggested in above mentioned URL.


As the title says,     Find all positive integers $n$ for which $(n-1)!+1$ is a power of $n$.   The solutions I've found are $\{2,3,5\}$ (thanks Brandon!), but I'm having difficulties proving that these are the only ones. What I've got so far is that $n$ must be prime since $(n-1)!+1$ would not be congruent to $n$ if $n$ were composite.


Best way to do file transfer via SCP using python and a .pem file

I wanna to replicate that command in python:  scp -i aKey.pem aFile.txt ec2-user@serverIp:folder   I found some examples of SCP but didn't found neither using a .pem key, and without informing the user password. How can I make this in python?


Can change in kinetic energy be negative? If yes then kinetic energy would be negative which is not possible please explain


Let Y be an ordered set in the order topology. Let $f,g: X \rightarrow Y$ be two continuous function.  Show that the set {$x | f (x) \leq g (x) $} is closed in $X$. Any help would be appriciated. Thanks.


How do I open the door southwest of Snowdin?

I've tried a variety of things, including checking the door with every possible combination of lit mushrooms, but none worked. The only thing that happened here was a random encounter with (IIRC) Glaze, who killed me very quickly. I never managed to get a rematch, however.


would placing a solid rod inside a hollow pipe increase the ability to resist bending?

I would like to know if by placing a solid rod of steel inside a piece of hollow steel pipe increase the strength ?


Quadratic residue p-1 modulo p for p primes

It seems that for every prime p = (4k + 1), p-1 is a quadratic residue modulo p. It seems that for every prime p = (4k - 1), p-1 is not a quadratic residue modulo p.   I can't figure how to proove this, does anyone has an idea ?   Best regards


I have a webserver document root as /var/www/html, inside that I have a folder called system. If I access the url         in browser the access time of the file(hello.img) is changed but not the system folder. My requirement is when I access the file in a folder, the folder access time also has to be updated. I didn't find it in filesystem option. Your Help is much appreciated.  Regards, Sugumar


What Is the logic and the intuition of the Heisenberg Uncertainty Principle based on? Is it Quantum Superposition or on the electromagnetic spectrum?

With many sources on the internet it has sort of become diluted as to how and why the Heisenberg uncertainty principle still makes sense. One claims that it is due to quantum superposition and that a particle can have multiple positions and velocities at the same time while other sources claim that this happens due to the fact that we cannot pinpointed the exact position of the particle as we would need to increase the frequency of the electromagnetic wave in order to see it, but that this will cause it to alter it and some others claim that the principle has nothing to do with measurement. So are any of the right and how?


Is locally Lipshitz mapping on a compact set globally Lipschitz?

Let $f: K \rightarrow \mathbb  R$ be a locally Lipschitz mapping on a compact subset $K$ of $\mathbb R^n$. Is it then $f$ Lipschitz?


In a QGIS-project I have a shapefile consisting of polygons. However some of the polygons are double and thus laying over each other. Is there a way I can select all these 'conflicting' polygons so I can delete them from the shape?


It would be good to be able to view SO using light text on dark background.  The use case is evening or night on a mobile device when you don't want alert your significant other that you're lurking on SO, which has quite distinctively bright, mostly white pixel, pages.  It may also reduce battery use.


Is the twin paradox purely a general relativistic effect?

Please excuse my ignorance here, but for most of my life I thought that the twin paradox was predicted by special relativity (ie. time dilation). I also know that the twin paradox has been explained multiple times on this site and others. What I want to know is that, if general relativity were "turned off", would the paradox go away? In other words, is the only phenomenon involved the fact that a clock will run slower in an accelerating frame?


How and where would I be able to enable/disable gzip compression?

In Drupal 7 where would I be able to enable/disable gzip compression? Is there a module for this functionality?


Serializing anonymous function with BinaryFormatter

I would like to serialize classed what potentially can have properties what's current value is an anonymous function. As far as I knew this does not work out ob the box. However my very first unit test seems to be pass:  [Test] public void AnonymousTest() {     Func<double, double, double> func = (double a, double b) =>     {         if (a > 0) // Dummy if branch to make sure this is a delegate and not expression         {             return a + b;         }         return 0;     };     var persistedFunc = SaveAndLoad(func); // Serialize and deserialize with BinaryFormatter     Assert.AreEqual(7, persistedFunc(3, 4)); // Green }   My question: is this working just because the deserialized delegate is running in the very same assembly, where the anonymous function exist and exist with the very same compiler generated name, or can we expect it will work in the future with the potentially changed and recompiled assembly?  EDIT: To narrow the question: Do we know at all what are the prerequisites of this is working? Say could a simple future recompile render useless the persisted state?


Mobile app markup bar support while editing

When creating a question/answer on the Android app, it gives you a little bar above the keyboard to bold/italicize, add a link easily, add a picture etc.  When editing however, this bar isn't shown. To ease editing on mobile, it would be exceedingly helpful to have this bar show up. I find myself resorting to the full site to add a embedded link if I can't at the moment remember the exact syntax.


Short story with alien group mind taking over other life forms and replacing their eyes with a green sensory organ

I'm trying to remember the name of a short story. I thought it was Asimov but I could be wrong.  It was about this alien group mind that takes over other life forms. The way you can recognise the creatures that have been taken over is their eyes get replaced by a new sensory organ that looks like green hair.


The word "master" when used in the sense of one thing controlling another thing (as opposed to skill mastery) has become an unword in growing circles. In communities of people who write technical specifications, the concept of one thing (non-human) having control over other things is common. Is there a deanthropomorphized equivalent? Examples:  Master data list -- a primary, singleton, authoritative, commanding list of vendors, accounts, files, etc. which all other lists of same must reference and synchronize to  What I tried:  Authoritative. This word can convey substantially the same meaning. But it is clumsy for having too many syllables for a very common thing: "authoritative vendor list," "authoritative account list". Also it fails to convey active command. You could describe some dictionary as authoritative but you would not say it is commanding. When an entry from a "master data list" is deleted, it is not sufficient that other references to it become invalid, instead every other reference to it must be deleted simultaneously. This is an active change which is propagated by the change above.


Can we make a list of "favorite questions"?

I found myself difficulty in searching for "favorite questions"; can we place the list in the profile view?


Why do we still use high voltage at home (on sockets) in the 21st century?

Just wondering, most of all equipment at home have components/circuitry inside to transform high voltage (AC) into lower voltage (mostly DC), also all modern LED lambs. Modern products become more and more efficient and operates at low voltages. Still we have only very high voltage sockets at home.  Also nowadays many manufacturers provide adapters with their consumer products. The amount of adapters is enormous, I think I have at least 40 adapters lying around the house. All of them are near or below 24 volts. For example my laptop adapter output 19 volts.  Would it be more efficient to have a (isolated) 24v AC socket instead of 240v? The transformation is done at the fuse box (what is the name in English, cupboard with energy meter). To step down isolated 24v AC is much easier (requires less components and no transformer i guess) for each product. Or is there any downside doing this? It will reduce the amount of repeating components required for many products, cables, transformers etc.  I know why AC is used instead of DC to transport electricity so that is why I suggest 24v AC. Or do we need a higher voltage?  What could be the reason why we don't have this green environment socket? Any downsides or is there no reason at all?


I just chose a Pokemon at the start  of the game, but then I realised I could walk away 4 times and get Pikachu.  Is there a way to restart the game?


Recommended skills for a job in cryptology

First let me apologize if this is an ill posed question. Let me also note that I do not in any way seek a comprehensive answer, simply your thoughts on what makes for a valuable asset to a company like the NSA. I am a Maths student in the US, and I realize that a problem-solving mind is at minimum required for said question.   Some other responses I would find helpful include coursework, relevant programming languages, as well as helpful books. I am currently reading Schneier's (sic?) Applied Cryptography.


SqlServer: can one table's PK be the FK of two table's?

I have three tables project, users and proj_user. The PK of proj_user table is the FK of project and users table's pk e.g.(project_id,user_id)  My question is, is it possible if the project_id and user_id's data is different  like project_id = '12345' and user_id = 'abc987'  Please reply  kind regards Vivek


can you please tell why there is no output while running

I am trying to solve  problem. I wrote  `  public static void main (String[] args) throws java.lang.Exception     {         Scanner sc=new Scanner(System.in);         int t=sc.nextInt();         while(t>0){             String s=sc.next();             if(s=="b" || s=="B"){                 System.out.println("BattleShip");             }             else if(s=="c" || s=="C"){                 System.out.println("Cruiser");             }             else if(s=="d" || s=="D"){                 System.out.println("Destroyer");             }             else if(s=="f" || s=="F"){                 System.out.println("Frigate");             }             t--;         }     }   `  There is no mistake in terms of syntax. Please help me what is mistake


Proving that a three complex numbers form an equilateral triangle with vertices on unit circle

While solving questions from Mathematial Analysis by Apostol, I came across this question:-  Q. Given three complex numbers $z_1$, $z_2$ and $z_3$ such that $\left| z_1 \right| = \left| z_2 \right| = \left| z_3 \right| = 1$ and $z_1 + z_2 + z_3 = 0$. Show that these numbers are vertices of an equilateral triangle inscribed in the unit circle with the center at origin.  Unfortunately, I could not get much ideas to solve this questions. However, from the given data, I inferred that the numbers are on the unit circle and hence, the vertices of the triangle are on the unit circle.  Also, I figured out that the centroid of this triangle is at origin. Now, if somehow we prove that the orthocenter of this triangle is also at origin, we will prove that the triangle is equilateral. But, I could not find a possible way to prove it by just using the information given in the question.  Another thought that I came across was to show that between any pair of the complex numbers (given) the difference in their argument, as measured from the positive X - axis, is $\dfrac{2\pi}{3}$ or $120^o$. If we prove this, we will prove that the triangle is equilateral. Again, there are no further ideas to implement this idea as well for the final proof!  Help will be appreciated!


How to restrict the maximum allowed input value in a text field to be 10?

I have a UITextField. I'd like to restrict the maximum allowed input value in the field to be 10.  That is, when the user is inputting the number inside, once the input value is larger than 10, the value in the input field won't be updated anymore unless the user is inputting a value less than or equal to 10.


I have this very simple homework problem:   Let $X_1,\ldots,X_n$ be a random sample from the $\operatorname{Bernoulli}(p)$ distribution. Find the Fisher information $I(p)$.    I freely admit that my problem is I don't comprehend what a Fisher Information is.  (Incidentally, is there a difference between Fisher Information and Fisher Information Matrix?)  This is what I have thus far.  Since a Bernoulli Distribution is a Binomial Distribution, the samples are independent and individual.  Since the likelihood function is $\mathbb{L} = \prod_{i=1}^n f(X_i\mid\theta)$ and the log likelihood is $\ell = \log(\mathbb{L}(\theta))$ this yields $I(\theta) = \mathbb{E}\{\mathbb{\ell}\,'(\theta)\mathbb{\ell}\,'(\theta)^T\} = -\mathbb{E}(\mathbb{\ell}\,''(\theta))$.  However, I do not know if I'm on the right path.  I'd appreciate insight.  Thanks, Andy


What's the formula for getting 3-stars in a cup?

I finished a couple of cups getting 1st place in every race and still got a 2-star rating, so the ranking isn't only based on your position (or total points).  Is there a defined formula or is it yet another Nintendo secret?


Is associative binary operator closed on this subset?

Here is the problem:  Suppose that $*$ is an associative binary operation on a set $S$. Let  $$H:= \{a \in  S\mid a * x = x * a \mbox{ for all }x\in S\}.$$  In other words, $H$ is consisting of all the elements of $S$ that commute with every element in $S$.  Show that $H$ is closed under $*$.


Characters appear as gibberish in mysql (Hebrew)

My charset in the database is set to utf8_unicode_ci, all files encoded in UTF8 (without BOM).  Here is my php code:  <?php     require_once("./includes/config.php");      $article = new Article();      $fields = array(         'status' => '0',         'title' => 'מכבי ת"א אלופת אירופה בפעם ה-9',         'shorttitle' => 'מכבי ת"א אלופת אירופה',         'priority' => '1',         'type' => '1',         'category' => '2',         'template' => '68',         'author' => '1',         'date' => date("Y-m-d H:i"),         'lastupdate' => date("Y-m-d H:i"),         'preview' => 'בלה בלה בלה',         'content' => 'עוד קצת בלה בלה בלה',         'tags' => 'מכבי ת"א,יורוליג,אליפות אירופה',         'comments' => '1'     );      $article->set($fields);     $article->save();   for some reason, the Hebrew characters appear like this in phpmyadmin:     ×ž×›×‘×™ ×ª"× ××œ×•×¤×ª ××™×¨×•×¤×” ×‘×¤×¢× ×”-9   Database connection code:  <?php     final class Database     {         protected $fields;         protected $con;          public function __construct($host = "", $name = "", $username = "", $password = "")         {             if ($host == "")             {                 global $config;                  $this->fields = array(                     'dbhost' => $config['Database']['host'],                     'dbname' => $config['Database']['name'],                     'dbusername' => $config['Database']['username'],                     'dbpassword' => $config['Database']['password']                 );                  $this->con = new mysqli($this->fields['dbhost'], $this->fields['dbusername'], $this->fields['dbpassword'], $this->fields['dbname']);                  if ($this->con->connect_errno > 0)                     die("Database connection error: ".$this->con->connect_error);             }             else             {                 $this->con = new mysqli($host, $username, $password, $name);                  if ($this->con->connect_errno > 0)                     die("Database connection error: ".$this->con->connect_error);             }         }   Any ideas why?


Can I assemble lasagna the day before I cook it. This is with fresh pasta. I’m worried the pasta will be soggy


2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.  What is the sum of the digits of the number 2 power of 1000 (2^1000)?  Can anyone provide the solution or algorithm for this problem in java?


Why does all order $n$ subgroups of an order $2n$ group have to be normal?

I see it for $D_3$ and $D_4$ but I would like to prove it for order $n$.  I have these definitions:     A normal subgroup $H$ of a group $G$ is a subgroup that consists of   complete conjugacy classes of $G$.      A conjugacy class $C$ is those set of elements which commute, ie $$g_2  =  g g_1g^{-1}; \forall g\in G; g_1,g_2 \in C $$   So an order $2n$ group, $G_{2n}$ can have order $n$ subgroups, $SG_n=C_1 \cap C_2 ... C_k$  Why all order $n$ subgroups of $G$ have to be normal?


What's the difference between mobile and desktop processors?

I just read about the new Samsung Galaxy Note Edge having a 2.7 GHz quad-core processor and 3GB of RAM.  The laptop I bought last year by HP is 4 GB of RAM and 2.3 GHz quad-core and my iMac is even older and is 2.5 GHz i5.  Does this mean that the new Samsung gadget is more powerful than my desktop?  Is the 2.7 GHz the same kind of GHz as non-mobile devices (is it scaled up, or compared, etc.)?  Why, in terms of power, do modern computers not have two of those Samsung quad-core processors running in parallel pushing out 5.4 GHz processing power for the amount of electrical energy as two Galaxy Note batteries?


I am on Ubuntu, I have 2 external hard drives, of of them is an SSD. The HDD is from a laptop with windows 10 on it, the SSD is completely empty, I want to use it to copy everything on the HDD to the SSD. I'm using a powered usb 3.0 hub with 2 sata to USB 3.0 cables to connect the drives to  my computer.   I was going to this with dd but I realized windows has many partitions, sdb1(C:\ drive), sdb2(EFI system partition), sdb3 (Microsoft reserved partions), sdb4(basic data partition). How can I copy all of them to the SSD using dd?


Improving accuracy in time series forecasting

I am trying to forecast a very typical sales data. I have tried Arima, ETS, Holtwinters and even neural networks but I can't get a model with more than 40% accuracy [Absolute sum of(forecast-Actual)/Sum of Actual]. Can anyone suggest me how to proceed?  Here is the data


What is the highest possible temporary AC at level 1, without any help from others?

Assuming you are level 1 and have access to any item that you can afford at character creation rolling the maximum amount of starting gold, and all spells that are available to you due to character creation, how high can your  AC become (permanently or temporary)?  Constraints:   Only , the Unearth Arcana is not legal for this character creation. All  are legal, all other races are illegal for character creation. Items are those that you can purchase. All spells, skills, feats and abilities available to a player character are eligible. A sole player character has to achieve this AC on their own, without any help from allies (pet companions, PCs, NPCs, etc.) Starting attributes can be rolled (that includes all 18s down the line) or achieved by point-buy. I have no preference for either.     Heavily related:   This linked question is about permanent AC. My current question, however, also includes options for increasing the AC with temporary means.


File explorer needs to be restarted w/out admin priv. - HOW?

In Windows 8 how do I restart explorer without admin privileges?


I am working on an app and I want to format a number such as 1,000,000 as a short string.  Some examples would be:  1000 => "1k" 50000 => "50k" 83952 => "84k" 1000000 => "1m" 1000000000 => "1b"   I was thinking the best way to do this would be using a  or just rounding it then counting the number of "0"'s.  Anyone have an example of using a NSNumberFormatter in this manner or any resources to get started.


Don't we need the axiom of choice to choose from a non-empty set?

I recently read a proof that had the following in it: "since $A$ is non-empty, we can find an element $x$ in $A$." This proof did not mention the axiom of choice, but it seems to me that it would be required to make the proof formal. Would I not require a choice function to allow me to find/pick some element $x$ from $A$ after noting that A is non-empty? Thanks


Instruct Google Search to blacklist w3schools.com from search results

Every time I Google for any CSS property, the first result is always on w3schools.com (a.k.a. the most useless, bogus and misleading site around).  Is there a way to add it to some sort of a black list, to get useful results first instead?


Current and voltage - Incompatibility between Ohm's Law and Power Law!

Ohm's Law: I $=\frac{V}{R}$: Increasing voltage increases current.  Power Law: P $={V}*{I}$: Increasing voltage decreases current.  Am I missing something?


How to initialize template Queue class in main function

I've been searching for hours for real, I couldn't find any where I was wrong. It works when I don't do it as a template, but it gives an error when it is a template. this is header file #ifndef Queue_h #define Queue_h   template<class T> class Queue { public:     Queue();     ~Queue();     bool isEmpty() const;     int size() const;     //Enqueue: Items are added to the back of the queue     void enqueue(const T& newItem);     //Dequeue: Items are removed from the front of the queue     void dequeue();     //Get Front: Take a look at the first item struct QueueNode {         T item;         QueueNode *next;              };     QueueNode *front_p;     QueueNode *rear_p;     int _size; };  This is c++ file #include <stdio.h> #include "Queue.h" #include <iostream> #include <string>  using namespace std;  template <class T>  Queue<T>::Queue():front_p(NULL), rear_p(NULL), _size(0){  };   template <class T> Queue<T>::~Queue() {     // dequeue until queue is empty     while ( _size > 0 )         dequeue(); };   template <class T> bool Queue<T>::isEmpty() const{     return front_p == NULL; };  template <class T> int Queue<T>::size() const{     return _size; };  template <class T> void Queue<T>::enqueue(const T& newItem) {      // create a new node     QueueNode *newPtr = new QueueNode;     // set data portion of new node     newPtr->item = newItem;     newPtr->next = NULL;     if ( 0 == _size )         front_p = newPtr;     else        // insert the new node at the rear of the queue        rear_p->next = newPtr;       // in either case set rear to point to new node and increment num_items    rear_p = newPtr;    _size++;  };   template <class T> void Queue<T>::dequeue(){     if ( 0 == _size )     {         cout<<"empty"<<endl;         return;     }         else { // queue is not empty; QueueNode *temp = front_p; if ( front_p == rear_p ) {     front_p = NULL;     rear_p = NULL; } else     front_p = front_p->next; temp->next = NULL; delete temp; _size--; } };  This is the main part. The problem starts here, either there is an error in the cpp file or I am initialize it incorrectly. #include <iostream> #include <stdio.h> #include "Queue.h" #include "SomeClass.h" using namespace std;   int main(int argc, const char * argv[]) {               Queue<int> q1;     Queue<SomeClass> q2;           return 0; }  error message Undefined symbols for architecture x86_64:   "Queue<int>::Queue()", referenced from:       _main in main.o   "Queue<int>::~Queue()", referenced from:       _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Undefined symbol:queue<int>::Queue();


Format of "2016-10-22T16:27:54+0000" to convert to datetime

I want to convert a string to datetime.  The string is:  date_created = "2016-10-22T16:27:54+0000"   And I am trying to convert that with:  datetime.strptime(date_created, '%y-%m-%dT%H:%M:%S+0000')   but the format does not match.  So, what is the correct format to use?


Many posts here show animated graphics to illustrate solutions about content uncovering. How can I get GIF file for my slides to upload?


Word for one who likes to share knowledge when asked

Working in an organization where your coworkers like to share information and knowledge.    What can we call someone who likes to share knowledge when asked?


How do I install ? Is there an easier way other than official installation instructions?


Graphical error while reprojecting Shapefile with QGIS

I'm trying to retroject Natural Earth's Shapefile of the world (Admin 0 – Countries on this page: ).  Here's the original Shapefile in QGIS 3.4.1:    Reprojected in Robinson World, centered at Long 0:    All seem good. However, when I try to reproject centred at a different longitude (say Montréal at -73.3), here's what happens:    The polygons aren't sliced at the edge of the new map, and the software is confused as to where polygons start and end.  What's a good way to deal with these problems?


How do I install Ubuntu alongside UEFI enabled Windows 8?

I recently (about a month ago) bought a Dell XPS 8500 Desktop with UEFI enabled Windows 8 Pro pre-installed. I am trying to install Ubuntu 13.04 64-bit dualboot with Windows on this computer. I don't know much about UEFI, but I think I followed the correct instructions to do this installation. Here's what I've done so far:   I have a 256GB SSD drive with the Windows OS partition and a 1TB drive for data. I created a 100GB partition on the 1TB drive for ubuntu. This was done through Windows Disk Management. I downloaded Ubuntu and created a bootable USB as per the instructions on the Ubuntu website.  I tried installing Ubuntu through the USB.   PROBLEM: While installation, I do not see a "Install alongside Windows 8" option like I have usually seen in all my previous installs.   Now, I don't know if this has to do with UEFI and I don't know much about that anyway.   QUESTION: How should I proceed with the installation?  I am currently on the same computer through Windows. I also have access to a laptop with Windows 8 Pro (possibly not enabled with UEFI - it's an old computer with newly installed OS) alongwith Ubuntu 12.10 dualboot.   Let me also add that my Secure Boot is ON. I also tried it with SecureBoot OFF, but didn't work.  I followed all the steps mentioned here in order:    EDIT: I "tried" Ubuntu without installing it via the LiveUSB. It is not able to access any of the drives. Do you think that has anything to do with this issue? Any help would really be appreciated. Thank you so much.


Prove that  $\lim_{n \rightarrow \infty} \frac{2^{n}}{n!} = 0$ using the hint that $0 < \frac{2^{n}}{n!} \leq 2 \, \left(\frac{2}{3}\right)^{n-2}$ for all $n \geq 3$? I know there is a thread already about this question but there is none that use this hint to solve this question. How can you use this hint to prove it?


I'm considering replacing an outdoor lighting fixture with an LED motion-sensitive fixture, but I'm not sure how to safely do the wiring.  The location is protected (under a porch) but still needs to be weatherproof. Here's the existing fixture and mount:    The obvious replacement would be another lamp that included its own box cover, so that its wiring would be covered and protected. But, the fixture I like doesn't include such a cover:    You can see it's meant to be screwed into the wall, but doesn't cover anything. The power cable ends with bare wires which are meant to be wire-nutted to the supply wiring, probably inside a junction box. But, how do I get the wire safely into the junction box while keeping things weatherproof?  One option would be to replace the lamp's power cable with one ending in a grounded plug, and install a weatherproof outlet box. But that's ugly and complex.  Are there weatherproof junction box covers that include provisions for sealed entry of cables?


Two PCs, one ethernet port - whats the best solution

I have two PCs which need to share one ethernet port.  What is the best solution?  I have tried using a splitter, and then two splitters.....only one PC gets internet at a time.  What can I try?  Thanks


Visiting Netherlands with Italian Schengen visa without visiting Italy

I had a plan to visit Italy on a company trip. Got the visa from the Italian embassy but unfortunately, the company has now changed plans to visit the Netherlands. The company says I can travel to the Netherlands with this visa but won't be visiting Italy at all. But my visa also mentions that I need to report back to the embassy after travel. I am confused as in what to do as I don't have time to apply for the Netherlands visa also. Will this have any issue for my next visas?


Why didn't Tom Bombadil take the Ring to Mordor?

He was certainly more resistant to the Ring than any other character in The Lord of the Rings. He could have handled the Ring with greater ease throughout the journey, especially in Mordor, as compared to Frodo.  Does this idea not come to anyone's mind or is there some deeper reason?


Travelling from Indonesia to New Zealand

My husband will travel from medan Indonesia to New Zealand, but the ticket needed to transit in Singapore and Sydney.  Transit in Sydney for 3 and half hours.  My question is do my husband need to buy transit Visa for transit in Sydney?


Should I use Past Simple or Past Perfect in this sentence?

He (broke)/(had broken) his leg in March and had been in hospital for about five weeks.   I think it should be (had broken) because it happened before he went to hospital. Is it correct?


This question is based on Everitt et al. (A Handbook of Statistical Analyses Using R) and I am trying to answer these questions:   Load the Default dataset from ISLR library. The dataset contains information on ten thousand customers. The aim here is to predict which customers will default on their credit card debt. It is a four-dimensional dataset with 10000 observations. The question of interest is to predict individuals who will default . We want to examine how each predictor variable is related to the response (default). Do the following on this dataset:  a) Perform descriptive analysis on the dataset to have an insight. Use summaries and appropriate exploratory graphics to answer the question of interest.  b) Use R to build a logistic regression model.   c) Discuss your result. Which predictor variables were important? Are there interactions?   However, I am more interested in understanding when one should use -1 and the relevance of excluding intercept in a model. Here is the data summary:      # Set up data     data("Default", package = "ISLR")      #create default binary     default_binary     <-       ifelse(regexpr('Yes', Default$default) == -1, 0, 1)     dflt_str <-       ifelse(regexpr('Yes', Default$default) == -1,              "Not Defaulted",              "Defaulted")      stdn     <- ifelse(regexpr('Yes', Default$student) == -1, 0, 1)     stdn_str <-       ifelse(regexpr('Yes', Default$student) == -1, "Not-Student", "Student")      blnc <- Default$balance     incm <- Default$income      df <-       data.frame(default_binary, dflt_str, stdn, stdn_str, blnc, incm)      # with intercept     fm0 <- default_binary ~ stdn + blnc + incm     # no intercept as indicated by -1     fm1 <- default_binary~-1+stdn+blnc+incm     regression_model_without_minus_1 <- glm(fm0, family = binomial())     regression_model_with_minus_1 <- glm(fm1, family = binomial())   and for summary of the model, I get:    Can someone please explain me the difference between results with -1 and without -1 in these models with merits and drawbacks. Thanks for helping me!


I’m looking for a generic word that means “debit or credit”.  Say I have a transaction, and I don’t know whether it’s a debit on the account or a credit on the account, and I want to ask about it, is there a word I can use?   For example, if I were asking whether a book were green or blue, I would ask, “What’s its color?”  If I ask whether a transaction was a debit or a credit, can I fill in the blank, “What’s its _?”  (Background: I’m looking to name a variable while programming, and the best I can come up with is type, which is not very descriptive).


Looking for a novel I read about twenty years ago about a man who can change reality with his mind

This will probably be a long shot, but I read a novel about twenty years ago that I'm sure is from the late sixties.    I can only really remember the main plot point: There's a man in it who can change reality at will with only his mind.  A medical doctor studies him and uses this to his own ends.  Two more things: there was an alien invasion and people were preoccupied with a volcano at some point.  Don't remember any character names or locations.  Sorry about that.  If I knew those, I'd probably be able to find this myself.  My son and his wife are really getting into sci-fi books and stories and I'd like to be able to recommend this one to them, since I remember enjoying it at the time.


I need to add the creation date of the file with the file name. Eg if a creation date of the file Test is 22 Mar 2017, then I need to change it as test_rbc_22032017. I am able to perform for a single file but not sure how to create a script to change the name for n number of files in a given directory. I tried the below but no luck  for f in /path ; do mv -n ""$f"_RBS_(date -r "$f" +"%Y%M%D")"; done   but no luck. please suggest a solution


Whenever an Order is inserted with Pricebook and Status of 'Activated', create a child Order_Pricebook__c record.  trigger createorderpricebook on Order (before update)  {     for(Order ce:trigger.new)     {         if(ce.status =='Activated')         {         order cf = [select id,pricebook2.id from order where id=:ce.id];         Order_Pricebook__c gh = new Order_Pricebook__c();         gh.name= 'ela';         gh.Order__c = cf.id;         gh.Price_Book__c = cf.pricebook2.id;         insert gh;         }       } }   How can I rewrite this Apex Trigger  to handle bulk operations?


Is there a term for this kind of video game background?

Ok, I have an odd little question.  I'm sure that I've played a number of video games with this kind of stylized 2D background, though I can't think of an good example for the life of me (I tried, promise):   Instead of a single background image, this kind of background has several 2D images stacked on top of each other. If you move a little left or right, the images shift a just a little bit accordingly. You might see a little more of one image or another, but the overall effect is to create a kind of 2D depth of vision, like a paper diorama.   That isn't the best description, but hopefully gets the memory across.   So, my question: Does this kind of background have a name?


"depends on who you ask" vs "depends on whom you ask"

Use the adjective exalted to describe something (or someone) that is raised in rank, value, or power.           Which group has the most exalted status at your high school depends on who you ask.      Is the sentence correct or should we use whom instead of who?


How is a 16 byte data type stored on a 64 bit machine

I have been seeing that we could use extended data types like unsigned long long which consume 16 bytes of memory, i.e. sizeof(an unsigned long long variable) results in 16 on my 64 bit machine, I understand that largest possible data type is restricted by the architecture of the system, i.e. to 8 bytes on my 64 bit machine, I just wanted to know how is this data type handled on a machine whose CPU instruction set is only 64 bit long. Please help. Thanks


combinatorics - How many permutations if no two balls of the same color to be adjacent to each other?

I have 4 different color balls B1, B2, B3 and B4 and their quantity is given by  n1, n2 ,n3 and n4 respectively.  Now, I want to arrange these balls in a straight line next to each other. However, in this arrangement I want no two balls of the same color to be adjacent to each other. ex: if there is 1 ball for each of 4 colors then answer would be 4! = 24    I'm not able to come up with a generic formula for this. Can somebody help me with this?  Update: So I went through that duplicate marked question and the answer mentioned there doesn't has any generic formula which solves my problem!


Why Clone Troopers changed to Storm Troopers?

Is there an explanation of why the clone troopers changed to storm troopers? And why the clone troopers seemed to be more organized and specialized (colors, weapons variations, etc) than Storm troopers?


Wouldn't the use of WayneTech by Bane fully expose Bruce Wayne's identity as Batman?

As everyone sifts through the rubble of Gotham after retaking the city, it quickly becomes clear that the Tumblers used by Bane's forces were manufactured by Wayne Enterprises. They're all the same, precise design as Batman's super-car...it becomes public knowledge that the Bat was Wayne technology as well.  Batman (apparently) died, Bruce Wayne disappeared...how can anyone doubt that Wayne was Batman? Plus, Batman showed up just as Bruce Wayne reappeared. I can see how you might miss that at the time, but in retrospect...plus Coleman Reese, now no longer necessarily bound by gratitude to Wayne....  Is there another angle to this, or is it utterly clear to everyone in the world who Batman was?


When should we refer to an object by the type of the interface?

In the following code, I have two different ways to instantiate an object of class B.  public interface A {}  public class B implements A {}  public static void main(String[] args) {     A test1 = new B();     B test2 = new B();   }   What is the difference between the variables test1 and test2? When should I instantiate using the Interface type (type1) and when should I not?


Do characters provoke opportunity attack when they leave another character's reach who is not facing them?

"You can make an opportunity attack when a hostile creature that YOU CAN SEE moves out of your reach."   In 5E do you have to specify which way your character is facing at all times?  If an enemy who is behind him leaves melee range but his back is to him does that enemy provoke an opportunity attack?    Are enemies within five feet and 360 degrees of a character considered to be within reach?  For example... Kruska and Atone are attacking Dip.  Dip is facing or only attacking Kruska.    Then Atone moves out of Dip's reach (melee range 5 feet) to engage a silly looking wizard.    Does Atone's move provoke an opportunity attack from Dip even though he's not facing him?  Is he assumed to be able to see him?


I read this series around 1994.  The protagonist was a boy who could summon elemental magic, or maybe it was just that he could summon elementals - I can't remember.  A companion of the boy, an old man, was some kind of wizard or magic user who had a phoenix as a familiar. Another of the boys companions obtained a sword that could absorb the souls of its enemies.  I think much of the series consists of the boy and his companions battling demons.  I think the boys elemental magic makes the demons weak when they are in its presence.  At the climax of the series there is a battle between the old man (wizard) and a powerful demon made of diamond.  The boy is also here but is unable to summon his elemetal magic because the substance the floor is made of prevents it.  The old man is lying on the floor, almost dead, and scratches some symbols.  The old man cries out "Uriel" and the angel Uriel is summoned.  Uriel askes the demon why he has summoned him.  The demon says, "I did not summon you, the old man did."  The demon happens to be Uriel's most hated enemy, and Uriel is happy to finally find him alone, without backup.  So Uriel and the demon battle and the demon is defeated.  Can anyone remember the series this is from?


How to boot Ubuntu 17.10 into a tty? (without loading gdm)

Following the advice  from , I've tried to load Ubuntu without a graphics environment by replacing quiet splash in the grub boot script with text, and alternately by appending it to the parameters.  This hasn't worked; Ubuntu 17.10 still launched the Gnome Display Manager and shows the login screen. However can I boot Ubuntu 17.10 into a terminal interface? Thank you.  For future people: Rinzwind's systemctl command works for me, while the similar systemctl command from  did not work. guiverc also points out that text as boot parameter only refers to outputting kernel messages as text, not to booting into a command line interface.


Do you really need a visa to transfer through Heathrow?

My wife and step-daughter, both from the Philippines, wonder if they can go via London Heathrow when going from Oslo, Norway, back to Manila, Philippines.  There are SO many rumours that you'll need a VISA just for transfer, so what is the FACT?  They are Philippine citizens, with a valid visa for Norway/Schengen (BUT the old one is expired, and the new one not in their Passports yet...) if THAT matters - and on their way back to their homeland.  They'll go with a SAS-flight from Oslo to Heathrow, and a Catay Pacific from Heathrow to Manila. Will they need any VISA for the transfer...?


What is the Lowest point of gravity on the Earth map?

what is the lowest gravity point on the earth surface and where is it exactly on the map and what is the importance of having low gravity on earth surface...


Different output for recliner power supply safe to use 25V 2.5A to a 29V 2A

My father broke his power supply for his recliner. He's on oxygen 24/7 and I was trying to find out if it was safe to use a slightly different power supply cause I can't find an exact match. The one he broke says it's input is 100-240V and output is 25V,2.5A. I can only find ones that have the output slightly different saying 24-29V, 2A or 29V, 2A. Not sure if that .5 is a big deal or weather it wouldn't work or most of all if it was unsafe being he's in his 70's and on oxygen 24/7. I wanna make him as comfortable as possible and get him back in his beloved recliner lol but didn't want to waste my time if it wouldn't work or risk his safety before buying one and leaving it plug in with him. Any help is much appreciated and thank you in advance for taking the time to read this and answer. Theres a pic of the old broken one attached also.


Intuitive reason why sampling without replacement doesnt change expectation?

Suppose we have $10$ red balls and $10$ blue balls. We pick $5$ balls. What is the expected number of red balls we have?  Let $X_i$ be the event that the $i$th ball is red. Then the answer is $E[\sum _1 ^5 X_i]= \sum _1 ^5 E[x_i]$. Buy why are all the $E[X_i]=\frac12$? Obviously I can verify this for $X_1$ and the computation works out for $X_2$, but it is not intuitive to me at all why this is true for all $X_i$, especially when it seems to me like $X_i$ is dependent on all the $X_j$s before it- what is the intuitive reason for why this computation works out so nicely?


How can I repeat the last command in shell without filling up history?

I'm working on a project that requires compilation for each test run.  Every time I want to test it out again I press Up to get the last command and Enter to run it.  The issue is that it fills my History up, so if I want to use a command from before I started a coding session, it's completely buryed in hundreds of the same exact command.  How can I run a command without it filling up my History?  And if there isn't a way to do that, is there some way to skip over repeats when going back in History?  I am not totally certain what shell I am using. I am running Terminal, on OSX.  But I would like the answer for as many different shells as is known, because that would make this question more valuable for others later.  $ echo $0 -bash   EDIT: After a short discussion in comments and some additions to the original text of the question, better search results have appeared in the sidebar, showing this is a duplicate of .  I'll be marking it as so and closing it.