Button created in ajax success will not launch even using recommended jQuery.fn.on event delegation

I have a successful jQuery AJAX return and in the success section I create a button.  It all displays correctly in the browser, but clicking on the button has no effect.  I am using the recommended jQuery event delegation of jQuery.fn.on for dynamically created content and it still does not work. Here is the relevant jQuery code containing the event delegation of $("button").on('click', function(): $(document).ready(function() {     $("button").on('click', function() {         alert("One of the buttons was clicked.");     });      const apigw_endpt = "https://blahblah.execute-api.region.amazonaws.com/api";     $.ajax({         url: apigw_endpt + "/return_all_cosmosdb_rcds",         type: "GET",         dataType: "json",         success: function (jsonlist) {             for (var i = 0, size = jsonlist.length; i < size ; i++) {                 $("#table_body").append('
\n');                 let item = jsonlist[i];                 for (const key in item) {                     console.log(`${key}: ${item[key]}`);                     if (key == 'id') {                         $("#table_body").append(`<td>${item[key]}</td>\n`);                         rcd_id = key;                     }                     else if (key == 'image_fname') {                         $("#table_body").append(`<td><button id='button_${i}'>${item[key]}</button></td>\n`);                     } else {                         $("#table_body").append(`<td>${item[key]}</td>\n`);                     }                 }                 $("#table_body").append('
');             }         },         error: function (xhr, status, errorThrown) {             jq_ui_alert('dialog-message', "There was an AJAX problem with the get_all_cosmosdb_rcds Lambda function.");             console.log("Error: " + errorThrown);             console.log("Status: " + status);             console.dir(xhr);         }     }); });  The data returned from the AJAX function looks like this: [     {     "id": "803035021",     "image_fname": "004.JPG",     "_ts": "1612994128"     },     {     "id": "631573429",     "image_fname": "021.JPG",     "_ts": "1612994173"     },     {     "id": "612593039",     "image_fname": "4307733.png",     "_ts": "1612994917"     } ]  Here is the relevant html:

ID	Filename	TimeStamp


Open select dropdown using button click jquery

<select id="selectid"> <option value="1">User1</option> <option value="2">User2</option> <option value="3">User3</option> </select>     I have a select with 3 option .I have a requirement in which by button click i want to show the select dropdown .Is there any way to achieve this in all browser using jquery .Any help is appreciated


Another question about making the name of an author bold in the bibliography

I'm using biblatex and wish to print a name (which has a "ä" character, say "Därwin") bold every time it shows up in the bibliography.   provides a solution that works, provided my tex file is ISO-8859 encoded (I'm not sure I understand all the details about encoding). However, it ruins the detection of the last author in the list, whose name should be preceded by "and" and not followed by a comma. So instead of "Smith and Doe (1990)" I get "Smith, Doe, (1990)", even when the author printed in bold is Därwin.  Here's a MWE:   \documentclass{article}  \usepackage[latin9]{inputenc}   \usepackage[style=authoryear-comp,natbib=true,%  minbibnames=15,%  maxbibnames=15,%  backend=biber]{biblatex}  \usepackage{filecontents}  \begin{filecontents}{\jobname.bib}  @Book{Darwin.84,    author =      {C. D\"{a}rwin},    title =   {The different forms of flowers on plants of the same species},    publisher =   {John Murray},    address =      {London},    edition =      2,    year =    1884}   @ARTICLE{Davies.pnas04,  AUTHOR = {Davies, T. J. AND Barraclough, T. G. AND Chase, M. W. AND Soltis, P. S. AND Soltis, D. E. AND Savolainen, V.},  TITLE = {D\"{a}rwin's abominable mystery: {Insights} from a supertree of the angiosperms.},  JOURNAL = {Proc. Natl. Acad. Sci. U.S.A.},  VOLUME = {101},  PAGES = {1904--1909},  YEAR = {2004},  MONTH = Feb,  NUMBER = {7}  }   @ARTICLE{Vamosi.el10,  AUTHOR = {Vamosi, J. C. AND Vamosi, S. M.},  TITLE = {Key innovations within a geographical context in flowering plants: towards resolving {D\"{a}rwin}'s abominable mystery.},  JOURNAL = {Ecol. Lett.},  VOLUME = {13},  PAGES = {1270--1279},  YEAR = {2010},  MONTH = Oct,  NUMBER = {10}  }    \end{filecontents}  \addbibresource{\jobname.bib}   \newcommand{\makeauthorbold}[1]{%  \DeclareNameFormat{author}{%    \ifnumequal{\value{listcount}}{1}      {\ifnumequal{\value{liststop}}{1}        {\expandafter\ifstrequal{##1}{#1}{\textbf{##1\addcomma\addspace ##4\addcomma\isdot}}{##1\addcomma\addspace ##4\addcomma\isdot}}        {\expandafter\ifstrequal{##1}{#1}{\textbf{##1\addcomma\addspace ##4}}{##1\addcomma\addspace ##4}}}      {\ifnumless{\value{listcount}}{\value{liststop}}        {\expandafter\ifstrequal{##1}{#1}{\textbf{\addcomma\addspace ##1\addcomma\addspace ##4}}{\addcomma\addspace ##1\addcomma\addspace ##4}}        {\expandafter\ifstrequal{##1}{#1}{\textbf{\addcomma\addspace ##1\addcomma\addspace ##4\addcomma\isdot}}{\addcomma\addspace ##1\addcomma\addspace ##4\addcomma\isdot}}%      }%  }%  }  \makeauthorbold{Därwin}    \makeatother   \begin{document}   Les \oe{}uvres de \citeauthor{Darwin.84} ont souvent été citées, par exemple par \citet{Davies.pnas04,Vamosi.el10}.    \printbibliography   \end{document}   It produces this output:   How to get "and Savolainen, V. (2004)" ?


How should I record sex change/gender reassignment?

My tree includes a living relative who was born male and is now legally and otherwise female. My only record of the change, at this point, is an alternate name (I use GRAMPS). I have recorded her birth name and gender as male--it's perhaps worth noting that this person did father children, so her original "maleness" needs to be preserved. However, her eventual death record will refer to her as female and I feel that documenting this as a name change only is insufficient.


I am trying to connect to a mysql db. I have installed the mysqldb package but it still says 'ImportError: No module named 'MySQLdb' when I import.  Why?


Automatically generated list not behaving properly

I've found a good way of looped list making . And the code run just as I needed.  x=["alpha","betta", "gamma"] y=[[] for _ in range(len(x))] y[1]=3   Will give me [[], 3, []] as expected. But when I tried to upscale the code:  z=[10,20,30] x=["alpha","betta"] y=[[] for _ in range(len(z))] y=[y for _ in range(len(x))] y[1][1]=4   Will give me the correct shape but I will get [[[], 4, []], [[], 4, []]]  Instead of [[[], [], []], [[], 4, []]] I've obviously fallen into the trap mentioned in the link but I don't understand why and how to avoid this problem


Why add salt to the water when cooking pasta?

What is the effect of adding salt to the water when cooking pasta?


I want to be able to open any link in a new tab, but some websites  work like this:  Whenever I click on a link, the link opens in the current tab so neither right-click, middle-click nor Ctrl+Click work.  Is there a way around this?  EDIT2: As you seem to mistake that only SOME, not ALL the links are regular,  shows the behavior of the links on the site.  EDIT: Notice that not all of the links in the  work like regular links. What I actually want to accomplish is to easily (a) compare the definitions of multiple words or (b) branch out and compare the definitions of multiple referenced words, but the individual links for words open in the same tab.


Can one excel in graduate school with a demanding family life?

The essential gist of my question relates to what the real, unvarnished realities are of graduate, post-graduate, research, fellowship, and professorship attainment - when you aren't a single person with no pressing demands other than feeding yourself.   [EDIT: I am humbled by the incredibly helpful and thoughtful responses so far, all of which are +1 from me. I'll leave the question open a few more days before clicking 'accept' on any one, but you all have my gratitude and I hope others will benefit anywhere near as much as I have. ]  What I don't know is what succeeding in this path truly requires in time committment and family support.   Right now I can handle a 12-14 credit course schedule with 3.7-4.0 GPA (in the top 5-10% for college and program, dean's list, etc), work part-time, and still have time to be home and not have a burn-out/breakdown - and the academics are the easy part by far! I could do more, but I need to work more too.   What I really need to know is how sharply different is the time/dedication curve of graduate work and above. I realize each step is a filter that removes most of the entrants (most people don't get a degree, most who do don't attend/finish graduate school, most who do don't seek a PhD,  most who do don't seek/gain professorship...and on and on). But I don't know how severe the stepping is - I'm not talking "tenured professor at MIT or bust" - I realize that bar is many orders of magnitude higher.  Background Details: As an "adult, returning" undergraduate student with a (disabled) wife and kids, I'm halfway through a bachelor degree now. I've located a field of study (in a focus of Industrial Engineering) that has made me very interested in altering my life path to include seeking a Masters and maybe even a PhD/professorship (my father was a professor, so its not a purely novel concept to me). I've met and spoken with my advisor and 2 other professors with experience in related fields, and all is encouraging; I have a graduate school in mind, I've received lots of great advice on preparing for school (on this forum and in person), I test well (no GRE fears remain), good grades/class rank, good prospects for future strong referal letters, etc - a comparitively charmed existence for which I am very grateful! I just have to investigate whether I can make it through with an intact, cared for family!  Any guidance you could provide me, and other aspiring "non-traditional" students alike, would be appreciated immensely - thank you!


Parallel option performing worse on cluster

I'm trying out oracles parallel option on a cluster and surprisingly I am getting worse results with the parallel option. I was expecting some improvement with the parallel option but certainly not worse results. I am wondering why this is the case, and if there is anything wrong with the way I am using the parallel option on my cluster.   I am using a degree of 4 when the number of CPU's I have is 8. I have tried adding parallel to the cluster directly ALTER CLUSTER cluster PARALLEL 4 as well as at the statement on both the index /*+ PARALLEL_INDEX(clust_index, 4) */and tables /*+ PARALLEL(4) */,   Here is my trace from the parallel:    Without parallel:


Find the greatest common divisor of $2^{2004}-1$ and $2^{2002}-1$.   Using Euclidean algorithm:  $$2^{2004}-1=4(2^{2002}-1)+3$$ $$2^{2002}-1=x\cdot 3+y$$  The solution manual says that $2^{2002}-1$has the remainder $0$ when divided by $3$, that is $y=0$ so GCD is $3$. But how do I find that remainder?


C# Generic Type Inference... anyway to automatically infer the type of array elements?

I'm building a MVC core IHtmlHelper extension to handle tables. Roughly speaking you provide the extension with an IEnumerable list of data records and a column layout and it produces an HTML table.  For the column layout I'd like some of the methods to be lambdas that accept a data record and return a value from it. For example for each row of the table the first column should contain such and such value from the data record.  So the MVC IHtmlHelper extension method will look like:  namespace TableStuff {     public class Column<T>     {         public Func<T, string> TDContent { get; set; }         // ... plus any other settings needed     }      public static class Table     {         public static IHtmlContent BasicTable<T>(             this IHtmlHelper htmlHelper,             IEnumerable<T> Data,             IEnumerable<Column<T>> Columns             )         {             return new HtmlString("just a mockup");         }            } }   To use it you:  public class Test {     class ListEntry     {         public string Id { get; set; }     }      public void DefineTable()     {         // fake a couple of things to make example minimal         IHtmlHelper t = null;         var Data = new List<ListEntry>();          // generate the table; in reality this would be a razor page via @Html.BasicTable(...)         var c = t.BasicTable(Data, new [] {             new Column<ListEntry> { TDContent = i => i.Id }         });     } }   What I'm wondering is why "new Column< ListEntry > { ... }" has to specify an explicit type. I'd really rather have it just be ""new Column { ... }" and have the type inferred as ListEntry.


Suppose that a satellite circles around a planet that exerts $2000N$ of gravitational force on the satellite.    I understand the fact that since the circular motion and the centripetal force are always perpendicular to each other, the work done by gravity is 0.  However, the satellite is being moved from one point to another, so Intuitively I am thinking "there must be some work done to move the satellite from point A to point B".  But besides the gravitational force, there is no force acting on the satellite.  Can some one explain me the gap with my logic and intuition?


Another method to integrate $\int\sec x dx?$

$$\int\sec x dx?$$  This is the method I used: $$\int\sec x\times\frac{\sec x +\tan x}{\sec x +\tan x}dx=\int\frac{\sec^2x+\sec x\tan x}{\sec x +\tan x}=\ln(\sec x +\tan x)+c$$  I would like to see another method to solve this integral.


Sorry for my interruption. I am looking for an answer to this question: Calculating  $$\sum_{k=1}^{2002}r_k$$ in which $r_k$ is the remaining of $2^k$ divided by $2003$. I thought that $2$ was a primitive root of $2003$, but I was wrong, in fact $ord_{2003}(2) = 286$. I hope you can help me on this question.


Permission denied to change gid(group) of a file I own

It appears I still miss some things about the way permissions work. I am on a debian 7 system btw. just now I have this file of which I downloaded and it belongs to myuser:myuser, that is both user and group are set to me. It also resides in my $HOME directory since that is where I downloaded it to.  So far so good. Now I want to share this file with some other users of the pc and for that I want to switch the group ownership of the file to group "users". however that fails:  nass@quarx:~/xmas_carol$ chgrp -R users *  chgrp: changing group of movie.mov': Operation not permitted   And the contents of the folder are:  -rwxr-xr-x 1 nass nass 2482411461 Feb  6 03:57 movie.mov   I am fuzzy about what is going on with the permissions. Can someone explain


How can I install Ubuntu tweak on Ubuntu 16.04

I can't install Ubuntu tweak on 16.04.  I've had it on 4 previous versions of Ubuntu, so I know exactly what to do in order to install it, it just doesn't work on 16.04.  Is anyone having the same problem?  Can anyone help?


I need to be able to access the working area of the primary monitor using C# in WPF. I am looking for a solution that does not utilize the System.Windows.Forms namespace. I assume that this would require some sort of wrapper around a Win32 call.  Edit: Forgot to mention that I also need to get left/top of the primary monitor.


Is there a JS API to get information about headers that were sent?

Of course I can set headers when issuing requests programmatically, i.e. for Ajax calls.  But is there a way to let the browser do its thing and access the request headers for resources in a document, similar to timing information provided by the ?  I'd like to know the complete set of headers the browser used when requesting the document and its resources.


Eevee - Light inside a bulb lamp not passing through glass

Using Eevee, I'm trying to simulate a light bulb. I have a sphere with glass material and inside it, I have a Point light. But the light is not passing through the glass:  However, if I disable the sphere object, the light is working:   How to make the light inside a bulb lamp pass through glass (using Eevee)? Here my test project:


Possible counter-proof of the constant rule of integration

$$∫(2x+10)^{-1}dx$$ $$=\frac{1}{2}∫(x+5)^{-1}dx$$ $$=\frac{1}{2}\ln|x+5|+C$$ but here is the same integral, yet different answer $$∫(2x+10)^{-1}dx$$ Let $u = 2x+10\implies \frac{du}{dx} = 2 \implies dx = du/2$ $$\implies \frac{1}{2}∫u^{-1}du$$ $$=\frac{1}{2}\ln|u| + C$$ $$=\frac{1}{2}\ln|2x+10| + C$$ Yet, $\frac{1}{2}\ln|2x+10|$ does not equal $\frac{1}{2}\ln|x+5|$ Please let me know if I made any mistakes. I have been seeing this over and over in my DE class and it keeps bugging me


Connect to a MySQL server over SSH in PHP

I have my database on remote Linux machine, and I want to connect using SSH and PHP functions (I am currently using ssh2 library for that). I tried using mysql_connect, but it gives me can't access (although I have granted permission) when I tried using this function:  $connection = ssh2_connect('SERVER IP', 22);  ssh2_auth_password($connection, 'username', 'password');  $tunnel = ssh2_tunnel($connection, 'DESTINATION IP', 3307);  $db = mysqli_connect('127.0.0.1', 'DB_USERNAME', 'DB_PASSWORD',                           'dbname', 3307, $tunnel)     or die ('Fail: '.mysql_error());   I got error "mysqli_connect() expects parameter 6 to be string, resource given". How can I resolve this?


How to secure Cpanel/WHM from malacious uploads

Recently my site's index.php file was replaced with some malicious javascript code.  I really don't know how it was added to the page.  Today when I tried to download the file via FTP, my local anti-virus software gave me a warning. I presume this means it was not uploaded from my computer.  Is there any way to install anti-virus software on my VPS (running CentOS 5 and Cpanel/WHM)?  Also what is mod_security. Will it be helpful in future?


How do I access administrator account from standard user on window 7 if I don't know the password to the administrator account

Thanks for the help.  I forgot my admin account password and want to log in through standard because its the only one I can access.  any suggestions?


How to get the current sandbox-name programmatically (dynamically) via APEX?

Now after all mere subscribers has per default a lot of sandboxes available, I need a way to programmatically (dynamically) get the sandbox-name of the sandbox org where the actual code is executed.   Just for clarification: I'm not looking for the name of the org, but the name of the sandbox, which are two different things.  One example purpose for this requirement is to tag notification emails, so that it's clear which sandbox-org has created it. For sure I don't want to hardcode it. Also I don't want to use a custom setting.  If found a few unclean approaches like   UserInfo.getUserName().substringAfterLast('.'); ==> this is not reliable, username might have been changed or a system-user might act. But this comes closest to what I need.  use of Organization.IsSandbox ==> not good enough, does not tell me which of the 25+ possible sandboxes it is. Only that's not production. I need more use of Organization.Name ==> all the same for all sandboxes use of Organization.InstanceName ==> provides the server name like CS83, very nice, but not good enough   I think there is no officially supported way to get it... but I'm not 100% sure...  Is there any approach to "hack" that sandbox name out of the guts of the platform? I need no sample code, just an idea or a concept is good enough for me.


Combine the output of two commands in bash

Is it possible to combine output from these two commands?  node ~/projects/trunk/index.js  python ~/projects/trunk/run.py run   Neither command exits so I'm not sure how to do this.


Non-Normal Distribution to Normal Distribution (including 0s and -ve numbers)

I have a around 150 different data sets (which do not follow a normal distribution), on which I want to run the Anova test. My data set comprises of 0s and negative numbers, which are very significant and cannot be ignored. I looked at Box-cox transformations, but they required elimination of 0s and negative numbers. Is there any other technique which can be used for the transformation. And does a function of this technique exist in Python or R?


My data is described here   I am trying to see the effect of an interaction using lmer so my base case is:  my_null.model <- lmer(value ~ Condition+Scenario+                               (1|Player)+(1|Trial), data = my, REML=FALSE)  my.model <- lmer(value ~ Condition*Scenario+                               (1|Player)+(1|Trial), data = my, REML=FALSE)   Running the anova gives me significant results, but when I try to account for random slope ((1+Scenario|Player)) the model fails with this error:     Warning messages:  1: In commonArgs(par, fn, control, environment()) :    maxfun < 10 * length(par)^2 is not recommended.  2: In optwrap(optimizer, devfun, getStart(start, rho$lower, rho$pp),  :   convergence code 1 from bobyqa: bobyqa -- maximum number of function evaluations exceeded  3: In commonArgs(par, fn, control, environment()) :   maxfun < 10 * length(par)^2 is not recommended.  4: In optwrap(optimizer, devfun, opt$par, lower = rho$lower, control = control,  :    convergence code 1 from bobyqa: bobyqa -- maximum number of function evaluations exceeded  5: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :    Model failed to converge with max|grad| = 36.9306 (tol = 0.002)  6: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :    Model failed to converge: degenerate  Hessian with 1 negative eigenvalues   Alternatively if it fails to converge after a lot of iterations (I set it to 100 000) and I am getting the same results after 50k and 100k it means that it is very close to the actual value, just it does not reach it. So can I report my results like this?  Note that when I set the iterations so high I get only these warnings:   Warning messages: 1: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :  Model failed to converge with max|grad| = 43.4951 (tol = 0.002) 2: In checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv,  :  Model failed to converge: degenerate  Hessian with 1 negative eigenvalues


D7- I am receiving an obscene amount of spam user sign ups - how can I fix this?

My site is getting a ridiculous amount of spam user sign ups every day. The second I enable 'allow anonymous users to create accounts', 10 spam accounts exist inside of the first 20 seconds of enabling. This seems completely insane. How do I stop this from happening? I'd also prefer not to use the Captcha method, as it does very little from my experience.   So far, I've tried: Honeypot, captcha, ReCaptcha, Antibot, Badbot... And none seem to fix the problem.


Installation error low-graphics mode multiple video cards

I am starting a brand new install and every time I go through the boot up process I get the message "running in low-graphics mode" I click OK, which then gives you the 4 options:  run in low-graphics mode for just one session;  reconfigure graphics;  trouble shoot this error;  exit to console login;   select run in low-graphics mode give you a message that graphics is going to restarts, but just hangs there after clicking ok (must ctrl-alt-del to restart - you see the normal unmounting [OK] etc. messages)  selecting reconfigure graphics gives you two options: use default (generic) configuration;  use your backed-up configuration;  I chose use default and it just gets caught in a loop you can click ok 100 times and still just gives you the same options.  You hit cancel and it sends you back to the main menu  Troubleshoot this error allows you to look at the xlog where it says:  Warning couldn't open module nvidia; then loaded module nouveua.  It does this 3 times once for each card.  Then it proceeds to load all the DVI interfaces DVI-1 - DVI-10 giving them the correct model for each monitor  detected and setting initial mode sizes for each.  Each monitor detected with proper model and serial number.  The Xlog then goes on to load the rest of the hardware mouse, keyboard, etc. Last 3 lines of the log file read;  AIGLX: Suspending AIGLX clients for VT switch;  NOUVEAU(0):NVLeaveVT is called;  Server terminated with error (1). Closing log file;   It gives an option to review start-up errors, but that is empty.  Also gives you an option to edit the configuration file which just throws in a loop again.  you just keep clicking OK.  Selecting the Last option: Exit to console login just blacks the screen and you must ctrl-alt-del (flashes to show unmounting) to restart the PC  The system has 3 NVIDIA cards NVS285 (dual dvi) and two (2) NVS 440 (quad dvi).  I have tried both the 12.04.3 as well as 13.10 and both hang on the same section.  Does anyone have an idea what is going on?  Being there was no errors in the X-Log I can not seem to find out why this is stuck here.


Let fontsize inside command proportionally resize

I would like to write a \newcommand to define a stylish word, like \LaTeX.  Let's take this example:  \newcommand{\mystyle}{      \textit{\raisebox{+0.2ex}{M}      \kern-0.66em\raise-0.3ex\hbox{\scriptsize y}      \kern-0.3em\raise0.4ex\hbox{\scriptsize s}      \kern-0.75em\raise-0.3ex\hbox{\scriptsize t}      \kern-0.3em\hbox{yle}      }      }   The problem is, when \mystyle is put inside \title{} or \section{} the fontsizes which are defined by brute force (1st 4 letters) get too small since they do not proportionally scale with the remaining letters. If I write \LaTeX inside \title{} there is no problem.   How to get my command working smoothly like that?


Solve $x^{5} \equiv 2$ mod $221\ $ [Taking modular $k$'th roots if unique]

We know that $221 = 17*13$. So we can check if the system has roots to both of those equations separately, which it does:  $x^{5} \equiv 2$ mod $13$ has the solution $6 + 13n$ and $x^{5} \equiv 2$ mod $17$ has the solution $15 + 17n$.   I got these numbers from wolfram, I have no idea how to solve this problem WITHOUT a calculator. And even after finding these numbers. How would one obtain a solution modulo $221$? I was thinking the Chinese Remainder Theorem but I am under the assumption that CRT only applies to problems with powers of $x$ which are $1$.  Thanks.


What is the tolerable magnetic field (in Tesla) for a hard disk?

I was wondering what would be the safest magnetic field for a hard drive so that the data inside it is safe and not wiped off?  For example I have a 2.1 home theatre system and when I take my android phone near it to check the magnetic field range it gives me a reading of 1000 micro Tesla. Would that be considered safe for a nearby hard disk?


I've got shortcode that needs to include JS library only once and only there where it's used.  function shortcode_function($atts, $content = null) {     $class = shortcode_atts( array('something' => '0'), $atts );      return "<script src=\"http://maps.googleapis.com/maps/api/js?sensor=false\"></script>              And here goes HTML code for the map."; } add_shortcode("sh", "shortcode_function");   The problem is that above example is going to include library several times if maps shortcode is used several times. How can I prevent that? Or more precisely: how can I do it "the correct way"? Can I use wp_enqueue_script() in that place?  Just one requirement: I really need this to include that library only-when-shortcode-is-used.


Generating multiple combinations of strings

I have a list of n letters as strings such as: input: ["A", "B", "C", "D"]  What I need to do is create all possible combinations of these letters with given length, for example if: L = 2 output: ["A", "B"], ["A", "C"], ["A", "D"], ["B", "C"], ["B", "D"], ["C", "D"]  L = 3 output: ["A", "B", "C"], ["A", "B", "D"], ["A", "C", "D"], ["B", "C", "D"]


QUERY - pivot multiple columns, variable number of rows

I have a table that looks like this:  RECIPE     VERSION_ID     INGREDIENT    PERCENTAGE 4000       100            Ing_1          23,0 4000       100            Ing_100         0,1 4000       200            Ing_1          20,0 4000       200            Ing_100         0,7 4000       300            Ing_1          22,3 4000       300            Ing_100         0,9 4001       900            Ing_1           8,3 4001       900            Ing_100        72,4 4001       901            Ing_1           9,3 4001       901            Ing_100        70,5 5012       871            Ing_1          45,1 5012       871            Ing_100         0,9 5012       877            Ing_1          47,2 5012       877            Ing_100         0,8 5012       879            Ing_1          46,6 5012       879            Ing_100         0,9 5012       880            Ing_1          43,6 5012       880            Ing_100         1,2   There are 100 ingredients per recipe/version. I'd like to display the data from this table like this:  RECIPE     INGREDIENT_Vxxx     PERCENTAGE_Vxxx     INGREDIENT_Vyyy     INGREDIENT_Vyyy (ETC) 4000       Ing_1               23,0                Ing_1               20,0 4000       Ing_100             0,1                 Ing_100              0,7   Because in different versions of recipes, ingredients could be removed or added, I'd like to display both ingredient and percentage per version per recipe. There's also the difficulty that different recipes have different number of versions.  I'm not even sure if this is possible at all or where to begin. Maybe with the PIVOT function?  Could anyone please point me in the right direction?


How can I install a CPAN module into a local directory?

I'm using a hosted Linux machine so I don't have permissions to write into the /usr/lib directory.  When I try to install a CPAN module by doing the usual:  perl Makefile.PL make test make install   That module is extracted to a blib/lib/ folder. I have kept use blib/lib/ModuleName but it still the compiler says module can not be found. I have tried copying the .pm file into local directory and kept require ModuleName but still it gives me some error.  How can I install a module into some other directory and use it?


Calling a JavaScript function named in a variable

I have a JavaScript variable which contains the name of a JavaScript function. This function exists on the page by having been loaded in and placed using $.ajax, etc.  Can anyone tell me how I would call the javascript function named in the variable, please?  The name of the function is in a variable because the URL used to load the page fragment (which gets inserted into the current page) contains the name of the function to call.  I am open to other suggestions on how to implement this solution.


How can water evaporate at room temperature?

Boiling point of water is 100 degree Celsius. The temperature at which water in liquid form is converted into gaseous form. Then how it possible for water to evaporate at room temperature?


I'm trying to write a regex that can detect if a user's phone number matches a given string, regardless of formatting (ie. only matching on integer characters).  For example, given the phone number '5555555555', I want the numbers '555-555-5555' and '(555) 555-5555' to be considered a match.  Any ideas?


I am wondering how to get the relative path name? Any existing library can help this?  c:\123  c:\123\1234\zaq\erf  I would like to get something like 123/1234/zaq/erf


How to count the number of set bits in a 32-bit integer?

8 bits representing the number 7 look like this:  00000111   Three bits are set.     What are algorithms to determine the number of set bits in a 32-bit integer?


For $\mathbb{N}$ a structure in $\mathcal{L}=\{s, 0, 1\}$, are the sum and product definable?

Reading about interpretability made me think about the $s$ function that somehow always bothered me in the language of PA. My question is the following     Given $\mathbb{N}$ as a structure in $\mathcal{L}=\{s, 0, 1\}$ (understood in the usual manner), are the sum and product operations definable?   In a broader sense I wonder if there is some way around a recursive definition when trying to describe these functions. For $\mathbb{N}$ there surely is since you can explicitly describe the functions with an infinite number of sentences of the form $s(0)+s(0)=ss(0)$ and $s(0)*s(0)=s(0)$ (although this of course does not make them definable), however with bigger models of PA these sentences might not suffice.


Advanced (undergraduate) book on electromagnetism

I am an undergrad student and i have been through a first easy course on electrodynamics and i have used the book of Griffiths which let me satisfied.But the next two courses I will be taking are notoriously hard mathematics-wise so i want a step-up from Griffiths. I want a mathematically rigorous and comprehensive book that also builds up intuition (because physics is not only maths).    I have looked at Purcell's book and found it very pedagogic, it impressed me but I do not know if it is as difficult as I want.    Do you suggest that I buy Purcell's book or do you have anything else in mind?


I was wondering if my proof for this problem was correct.  Let $x = 2^n$. Then the problem reduces to is $x^2 = O(x)$, which is clearly false.


how many space assigned for empty dictionary in python?

If we create an empty dictionary, like: idict = {}, how many spaces are assigned for this dictionary ? I know for the list, if we initialize a list like ilist = [], it will always over-allocate the size, first is 4 space, then 8. What about a dictionary ?


Can't show Azerbaijan characters ?? Help me please, How to fix this ?


I am trying to summon a villager that will trade custom player heads in 1.15.2.  Here is the code I have found to summon a villager trading a mob head:  /summon villager ~ ~1 ~ {VillagerData:{profession:farmer,level:5,type:plains},Offers:{Recipes:[{buy:{id:emerald,Count:1},sell:{id:dragon_head,Count:1},maxUses:1}]}}   Here is the code I have found to give myself a custom player head from FreshCoal.com, but it seems that something may be slightly off with this code. It works in a command block, but also triggers a warning:  /give @p player_head{display:{Name:"Strawberry Jam"},SkullOwner:{Id:"adc3ea73-5b42-4fea-a237-4a72b5",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzBiOGI1ODg5ZWUxYzYzODhkYzZjMmM1ZGJkNzBiNjk4NGFlZmU1NDMxOWEwOTVlNjRkYjc2MzgwOTdiODIxIn19fQ=="}]}}}   Here is the code that I try for the custom villager, but it does not work:  /summon villager ~ ~1 ~ {VillagerData:{profession:farmer,level:5,type:plains},Offers:{Recipes:[{buy:{id:emerald,Count:1},sell:{id:player_head{display:{Name:"Strawberry Jam"},SkullOwner:{Id:"adc3ea73-5b42-4fea-a237-4a72b5",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzBiOGI1ODg5ZWUxYzYzODhkYzZjMmM1ZGJkNzBiNjk4NGFlZmU1NDMxOWEwOTVlNjRkYjc2MzgwOTdiODIxIn19fQ=="}]}}},Count:1},maxUses:1}]}}   How can I change the code to make it work correctly? Right now, my villager trades only air.


Hats break formatting for :        Also applicable for localized sites, .  I think my post is not a dup of  because in current case timestamp is not cutted off, but overhangs.


I am trying make a Victorian style dress for my model and I need a little help. I am trying to make shiny patterns using the nodes.I can't find any videos on this anywhere.


How is it possible that the spell didn't work fully?

At the end of Fantastic Beasts and Where to Find Them (first movie from the series)      All city including Jacob is obliviated by the rain.    The main characters are sad about it, so it seems they believe it really worked. But at the beginning of the Fantastic Beasts: The Crimes of Grindelwald (second movie) we find out that      the spell didn't work on Jacob and he still remembers what happened and he still is in love with Queenie   How is that possible? Is it possible that more people would also not be enchanted?  My thought:       Did Queenie managed that? She would be willing to probably.


This seems like a very simple question. I want to move my Thunderbird profile from Windows to Ubuntu. Where exactly should I place the file in Ubuntu? Please give me the path to the folder where I would plug it in. Thank you so much.


Minimal prime of a ring is contraction of some prime ideal of any extension of the ring.

Let $S$ be a commutative ring with $1$ and let $R$ be any subring of $S.$ Let $p$ be a minimal prime of $R.$ Then how can I show that there is a prime ideal $q$ of $S$ whose contraction is $p,$ i.e., $q \cap R = p.$  What I am trying to show is the  necessary and sufficient condition that $p=p^{ec}.$ Clearly $p \subset p^{ec}.$ But the other way I couldn't complete. I need some help.


I got a question in linear algebra: 1) Let A and B be $n\times  n$ matrices. If $I - AB$ is an invertible matrix, then prove that $I - BA$ is invertible.  Can someone tell me how to solve this question? I've no idea how to start. Thank you!


Are there cameras which can continuously shoot for an unlimited amount of time?

I've noticed that the quality of pictures on my DSLR is considerably higher than the quality of video. This got me thinking that if one could continuously shoot at high FPS, it should be possible to shoot "videos" of extremely high quality. Obviously you'd need to capture the sound separately, but it shouldn't be a problem. However my own cheap camera can do a 10-shot burst at most and as far as I know most DSLRs have similar restriction.  Is there a DSLR on the market which can do high-speed bursts for an unlimited (or considerable) amount of time?


How do I analyse principal component scores?

I have carried out a principal component analysis on 10 emotions I have observed in animals e.g. happy, playful, aggressive etc (5 positive emotions and 5 negative). Each animal is given a score for each emotion from 1 to 100. E.g. an extremely happy animal receives a "happy" score of 100. My PC1 is positively correlated with positive emotions and negatively correlated with negative emotions. Thus, I have labelled the PC "Good welfare". I have component scores for each animal for PC1. I want to assign each animal to a poor or good welfare category based on these PC scores but how do I go about this? The scores range from 3.12673 to -2.23454. Could I take animals with a minus score as having poor welfare and those with a positive score had good welfare? I don't know how to interpret the component scores. Thanks!


I published a paper two years ago, and recently I realized two sub-figures (Fig.3c and Fig.3d) in my publication are wrong. When drawing those two figures, I forgot to put one parameter in the equation so resulted in the wrong figures. Nobody has spotted this mistake yet. Now this publication has around 12 citations, but none of them really discussed anything about two wrong figures. These two figures don't affect key conclusions at all, nor does it affect other figures at all. If I really need to publish a correction, I need to change the figure and change two sentences related to these figures. But I want to correct it anyway, for being a science guy with integrity. So I wonder in my case, I should contact the editor and request a correction, right? I hope these mistakes wouldn't result in a retraction, and that would be really bad.


Problem with wifi Ubuntu 12.04, Qualcomm Atheros QCA95665

I bought a Dell Inspiron 14 3442 laptop pre-installed with Ubuntu 12.04 LTS , however I am having issues with the WiFi connection. I receive the error message: Has closed the connection every time that I attempt to activate the network. Wired and bluetooth connections are working perfectly but issue is solely with wireless.  My wireless network card is a Qualcomm Atheros QCA95665 / AR9565.  $ lspci -nnk | grep -iA2 net 06:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)     Subsystem: Dell Device [1028:020c]     Kernel modules: ath9k 07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 07)     Subsystem: Dell Device [1028:0651]     Kernel driver in use: r8169   And the output of modinfo ath9k are:  filename:       /lib/modules/3.5.0-60-generic/updates/dkms/ath9k.ko license:        Dual BSD/GPL description:    Support for Atheros 802.11n wireless LAN cards. author:         Atheros Communications srcversion:     BC752C884CE7A724FD00A1C alias:          platform:qca955x_wmac alias:          platform:ar934x_wmac alias:          platform:ar933x_wmac alias:          platform:ath9k alias:          pci:v0000168Cd00000036sv*sd*bc*sc*i* alias:          pci:v0000168Cd00000037sv*sd*bc*sc*i* alias:          pci:v0000168Cd00000034sv*sd*bc*sc*i* alias:          pci:v0000168Cd00000033sv*sd*bc*sc*i* alias:          pci:v0000168Cd00000032sv*sd*bc*sc*i* alias:          pci:v0000168Cd00000030sv*sd*bc*sc*i* alias:          pci:v0000168Cd0000002Esv*sd*bc*sc*i* alias:          pci:v0000168Cd0000002Dsv*sd*bc*sc*i* alias:          pci:v0000168Cd0000002Csv*sd*bc*sc*i* alias:          pci:v0000168Cd0000002Bsv*sd*bc*sc*i* alias:          pci:v0000168Cd0000002Asv*sd*bc*sc*i* alias:          pci:v0000168Cd00000029sv*sd*bc*sc*i* alias:          pci:v0000168Cd00000027sv*sd*bc*sc*i* alias:          pci:v0000168Cd00000024sv*sd*bc*sc*i* alias:          pci:v0000168Cd00000023sv*sd*bc*sc*i* depends:        ath9k_hw,ath9k_common,mac80211,ath,compat,cfg80211 vermagic:       3.5.0-60-generic SMP mod_unload modversions  parm:           debug:Debugging mask (uint) parm:           nohwcrypt:Disable hardware encryption (int) parm:           blink:Enable LED blink on activity (int) parm:           btcoex_enable:Enable wifi-BT coexistence (int) parm:           enable_diversity:Enable Antenna diversity for AR9565 (int)


The /r/ sound in "drawing" in British English?

One of my pet peeves is that, in the UK, many people seem to mispronounce the word "drawing".  The correct pronouciation is . Why then, do so many people allow that /r/ to creep in to give /ˈdrɔː.rɪŋ/?  This is particularly annoying when educated and otherwise erudite people make this mistake.  Can anyone shed any light as to the cause or explanation for this?


Changing NAD27 to NAD83 in R, Error in proj4string

I am having trouble changing latitude/longitude data (from spreadsheet dataset) from NAD27 to NAD83. I am using R. The spreadsheet has 2 million coordinates so I can't upload the data for you all to work with. This is the code I have so far:  lat=c(dataset$Latitude[which(dataset$Projection=="NAD27")]) lon=c(dataset$Longitude[which(dataset$Projection=="NAD27")]) d=data.frame(lat, lon)  coordinates(d)=c("lat", "lon") proj4string(d)=CRS("+init=epsg:4267")  CRS.new=CRS("+init=epsg:4269") Nad27to83_projection=spTransform(d, CRS.new)   However, after the proj4string line, I receive the following error:     Error in proj4string<-(*tmp*, value = new("CRS", projargs = > "+init=epsg:4267 +proj=longlat +datum=NAD27 +no_defs +ellps=clrk66 +nadgrids=@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat")) :      Geographical CRS given to non-conformant data: -9.8732102099e+10  3.8108480000e+06 -1.0300835057e+02  3.7622300000e+05   In addition, after the spTransform line, I receive this error:     Error in spTransform(d, CRS.new) :      No transformation possible from NA reference system   I am stuck. Please let me know if anyone can help!


Why the dipole interaction term in the Hamiltonian has all diagonal elements to be zero in the energy eigenbasis?

I have been studying the semi-classical light matter interaction from the book, "Light matter interaction" by Weiner and Ho. They have defined the total Hamiltonian of a two level atom placed in an EM radiation as $$\hat{H}=\hat{H_{0}}+\hat{V}(t)$$ where $H_0$ is the unperturbed Hamiltonian of the two level atom and $\hat{V}(t)$ is the dipole interaction term given by $\hat{V}(t)=\hat{\vec{d}}\cdot\vec{E}$. $\vec{d}$ is the dipole moment of the atom given by $\vec{d}=-e\vec{r}$. The eigenstates of $H_0$ are $|1\rangle$ and $|2\rangle$. Now, it has been argued that since $V(t)$ has an odd parity with respect to $\vec{r}$, the diagonal terms $V_{ii}=\langle i|\hat{V}|i \rangle=0$. However, I am not able to understand why this should be so. Some thoughts Without loss of generality, we can take the dipole moment to be $\hat{\vec{d}}=-e\hat{x} \mathbf{e_x}$ and the driving field $\vec{E}=E_0 cos(\omega t) \mathbf{e_n}$, so that $\hat{V}(t)=-e\hat{x} E_0 cos(\omega t) cos(\phi)$ where $\phi$ is the angle between $\mathbf{e_n}$ and $\mathbf{e_x}$. In such a case, we have $$V_{ii}=\langle i|\hat{V}|i \rangle=e E_0 cos(\omega t)cos(\phi)\int_{-\infty}^{\infty}\phi^{*}_i(\vec{r}) x \phi_i(\vec{r}) d\vec{r}$$ If the wavefunction $\phi^{*}_i(\vec{r})$ has a definite parity(assumption 1), then indeed this integral is $0$. In case of a spherically symmetric potential with no interaction between electrons in the atom, assumption 1 indeed holds. However, in the presence of interaction between electrons, I am not so sure if it will hold true! Am I thinking about it the right way? Is there a way to prove this without assumption 1? Or is the assumption 1 always true?


Why does the speed of light in vacuum have no uncertainty?

I could understand that the definition of a second wouldn't have an uncertainty when related to the transition of the Cs atom, so it doesn't have an error because it's an absolute reference and we measure other stuff using the physical definition of a second, like atomic clocks do.  But why doesn't the speed of light have uncertainty? Isn't the speed of light something that's measured physically?  Check out that .


Find records from one table which don't exist in another


I have iBall Andi 3.5 KKe winner, Android 4.2.2. It records every call and there is a logo "REC" on calling screen, showing recording time. There is no option of turning call recording off. In apps there is nothing like "auto call recording". I have rooted my phone. How to remove/uninstall auto call recording?


I have recently seen a post on Twitter that said something along the lines of:  "If you are a gnome and cast Reduce on yourself, you can use Mage Hand to pick you up by the collar for a quick getaway"  This sounds really cool, but I wonder if it is within the rules defined by Mage Hand. Mage Hand :  You can use the hand to manipulate an object, open an unlocked door or container, stow or retrieve an item from an open container, or pour the contents out of a vial. You can move the hand up to 30 feet each time you use it.  The hand can't attack, activate magic items, or carry more than 10 pounds. from looking around on RPG.SE I saw :  An object is any physical thing that is not a creature:  ... targets creatures, objects, or a point of origin for an area of effect...   The same question then continues to discuss that an object is not a creature. For completness sake,  shrinks the player to:  ...and its weight is reduced to one-eighth of normal.  Which for an average  of 40-45 pounds, would be below the weight capacity of Mage Hand, assuming they weren't carrying more than 10-15 pounds of gear. So my question is: Can I Use Mage Hand on a reduced PC, who has enough gear to be below the weight limit of Mage Hand, to pick him up and fly?


Is the following true:     $g\circ f$ bijective iff $f$ and $g$ bijective?   Or can the requirements be weakened for $g$ (i.e. $g$ only injective or surjective)? Or $f$?


SQL Server : check for existing entry before UPDATE

I am consolidating incorrect entries in a table. Specifically for this online shop there are manufacturers and their article numbers. Sometimes manufacturers have been created twice with two different names, such as "VHY" and "Vishay" which should be the same. So I want to consolidate this into one correct manufacturer.  I have the following SQL statement:  /** Old Manufacturer Name **/ DECLARE @old varchar(100) = 'VHY'; /** New Manufacturer Name **/ DECLARE @new varchar(100) = 'VISHAY';  /** Updating the table **/ UPDATE [ESO65].[dbo].[ESO$Manufacturer Item] SET [Manufacturer Code] = @new WHERE [Manufacturer Code] = @old   Unfortunately I get the error message:      Violation of PRIMARY KEY constraint 'ESO$Manufacturer Item$0'. Cannot insert duplicate key in object 'dbo.ESO$Manufacturer Item'.   This is because there are duplicate entries where Manufacturer Code = VHY, Manufacturers Item No_= TEST and Manufacturer Code = Vishay, Manufacturers Item No_= TEST. So this is the duplicate object violation.  How do I delete all entries for old where there is double entries and then rename the old to new?


Parallel execution of a program on multiple files

I have a small script that loops through all files of a folder and executes a (usually long lasting) command. Basically it's  for file in ./folder/*; do     ./bin/myProgram $file > ./done/$file done   (Please Ignore syntax errors, it's just pseudo code).  I now wanted to run this script twice at the same time. Obviously, the execution is unnecessary if ./done/$file exists. So I changed the script to  for file in ./folder/*; do     [ -f ./done/$file ] || ./bin/myProgram $file >./done/$file done   So basically the question is: Is it possible that both scripts (or in general more than one script) actually are at the same point and check for the existance of the done file which fails and the command runs twice?   it would be just perfect, but I highly doubt it. This would be too easy :D If it can happen that they process the same file, is it possible to somehow "synchronize" the scripts?


How to show the search box in Google Search results page?

I need to know the proper way to propagate the search-box in the Google search result page. I tried searching the Google for the procedure, but no luck. Any idea how to make appear the search-box ?


Where do the assumptions for linear regression come from?

I'v already known that there are several assumpations when using linear regression model. But I cannot understand why some of them exists. They are:   independent errors normal distribution of errors homoscedasticity   Why cannot I just simply use least square method without these assumptions ?  I want to know how it affect the $R^2$, slope, and p-value if some assumptions are invalid. For example: "if the independent error assumption is false, the p-value is less then its true value."


No internet connection upon upgrading from ubuntu 18.04 to 20.04

I was wondering if anyone has had the same problem: I upgraded from LTS 18.04 to LTS 20.04 with no problems. Once I restarted this morning, I no longer had access to the internet. It shows that I'm connected wirelessly, but if I try to open any web page, I get that the Server could not be found. I've had this problem before when I installed LTS 18.04, due to the booting process, but now it seems to be something different. Can anyone assist? Update: Here are the results of the commands requested by chili555: nuno@nuno-HP-Stream-Notebook:~$ ping -c3 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=113 time=3739 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=113 time=2881 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=113 time=2752 ms --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2032ms rtt min/avg/max/mdev = 2752.423/3124.113/3739.134/438.031 ms, pipe 3 nuno@nuno-HP-Stream-Notebook:~$ ls -al /etc/resolv.conf lrwxrwxrwx 1 root root 29 Nov  1  2017 /etc/resolv.conf -> ../run/resolvconf/resolv.conf


I have this code:  if [[ $1 = "-s" ]] && [[ $2 = 0-9 ]] then   echo "yes" fi   0-9 does not work for me.  What I really want is to type, for example, -x 3 (or any number).


What is the meaning of & following an identifier in C++?

Here is a simple example given to illustrate overriding an operator in C++. I don't understand the meaning of the & in 'CVector&' in lines 9 and 12. It doesn't look like they are passing the address of a CVector, it seems like the & can be ommitted, since the operator is just taking in a CVector as a parameter.   #include <iostream> using namespace std;  class CVector {   public:   int x,y; CVector () {}; CVector (int a,int b) : x(a), y(b) {} CVector operator + (const CVector&); };  CVector CVector::operator+ (const CVector& param) { CVector temp; temp.x = x + param.x; temp.y = y + param.y; return temp; }  int main ()   {    CVector foo (3,1);    CVector bar (1,2);    CVector result;    result = foo + bar;    cout << result.x << ',' << result.y << '\n';    return 0;   }


Include Watir test cases in a Continuous Integration system

Did anyone succeed deploying Watir test cases to a continuous integration system such as Team City or Hudson?     I'm trying to find a way to have the test scripts executed and have the results generated in a report format? Any experiences using the Ruby plugin for Hudson plus the ci_reporter?


search for a certain file or items in certain files

I am missing a file. how can I do a search for it on the whole system? default windows search does not return a result. it concerns a .txt file. can I do a search for strings which refer to the content of the file? os: win 7 ult 64bit.


What is the easiest way to export just the selected objects in Illustrator?

The title says it all, I want to know what the simplest way to export the selected objects.  In Inkscape, there is a menu option called export selected which does just this.    The aforementioned option lets you export the selection as a composite image or as a batch of individual images.  Both would be nice, but in this scenario I want to export the selected objects as a single image.  I can already create a new document, and paste in the selected items.  I am looking for a way that is easier than this.  How can I save / output / export only the objects I currently have selected, to an image file, in Adobe Illustrator CS5?


I am reading SQL Server Execution plans by Grant Fritchey, He mentions:      SQL Server does not keep execution plans in memory forever. They are   slowly aged out of the system using an "age" formula that multiplies   the estimated cost of the plan by the number of times it has been   used. The lazywriter process, an internal process that works to free   all types of cache (including the plan cache), periodically scans the   objects in the cache and decreases this value by one each time.      If the following criteria are met, the plan is removed from memory:         more memory is required by the system    the "age" of the plan has reached zero   the plan isn't currently being referenced by an existing connection.      He also mentions earlier in the book the following:      Once the optimizer arrives at an execution plan, the estimated plan is   created and stored in a memory space known as the plan cache –   although this is all different if a plan already exists in cache.   I would assume that the plan could theoretically reach zero if the actual and estimated plan differ. This would give the estimated plan execution count zero even though it was stored in the cache.   My question is What are the different scenarios that a plan age could reach zero? And am I correct in my assumption?  Fritchey, G. (2012). SQL Server Execution Plans. Springfield, USA: Simple Talk Publishing.


about luminance and illuminance: what is the difference?

First of all, let me say that english is not my first language, so please excuse any mistakes that you could meet from here on out.  I read several articles and explanations about luminance and illuminance, I have almost understood what is the difference between them but I'm still a little confused and that's the reason why i'm writing here.  Avoiding the technical definitions, I understood that Illuminance is the amount of light perceived on a surface, while Luminance, then, is how much reflected light is perceived looking at that surface.  The question is: can I consider the light reflected like a form of illuminance?  For example: consider a subject, a female/male portrait on a white background, there are not light sources in this subject but sources of light are behind my back and bring light to my subject. I take a photo of this subject with my camera. What my eyes as well as the sensor of my camera perceive is only light reflected from the subject....uhhmmm...light reflected? I could say that what I catch with my eyes and with my camera is Luminance...or Illuminance?  I mean, yes, light is reflected from the subject but then reflected rays of light become incident rays of light for my eyes and for the sensor of my camera...don't you agree?  Hoping my question is clear, if it's not clear just tell me, I will try to explain myself better.


I know that Bentham sacrificed himself to save Luffy so that he can escape from Impel Down.  He disguised as Magellan to open the gates for Luffy, but later the real Magellan came and it seems like the two fight each other (not in screen).  My friends believed that he's dead at that fight. But when I read , it is stated that he's currently become the new queen of Newkama Land.     Bentham, alias Mr. 2 Bon Kurei, is a former officer agent of Baroque   Works and an okama (a Japanese slang term for a transvestite). While   he was once an enemy of Luffy's as a part of the Baroque Works, the   two became quick friends, leading Bon Kurei to sacrifice himself for   Luffy both at Alabasta and later at Impel Down.    He is currently the new Queen of Newkama Land.   So I want to know, is Bentham or Bon Kurei dead or alive after Impel Down arc? If he alive, have he shown in comics ar anime after Impel Down arc?


I am not sure about this problem.   Let $K/F$ be a finite separable extension and let $\widetilde{K}/F$ be a normal closure of $K/F$. Is $\widetilde{K}/F$ necessarily separable?   I tried considering $\alpha \in \widetilde{K} \backslash K$ and assume it is inseparable over $F$. Then I considered $m(x)$ that is satisfied by $\alpha$, and $\widetilde{K}$ contains all roots of $m(x)$. Then I am not sure how to proceed. Can anyone help?


I have the following table:  Column 1 | Column 2 | Column 3 1        | A        |       70 2        | A        |       32 3        | A        |        4 4        | B        |       44 5        | B        |       98 6        | B        |       10   Column 1 contains the ID number of the row, Column 2 a string (which repeats across other rows), and Column 3 a number. I want to keep one entry per Column 2 string, but also the one with the highest number in Column 3. So the resulting table I am interested to get is:  Column 1 | Column 2 | Column 3 1        | A        |       70 5        | B        |       98   Any ideas?  Thanks.


How do I bookmark a comment for my own reading later?

Throughout the stack exchange sites, often times it happens with me that I find a particularly engaging discussion on a topic, but can't read it immediately due to lack of time or whatever.  When I later try to find that discussion, I cannot at times. It's frustrating.   I'm aware of the star symbol under questions which lets me bookmark it. But if I have to find a particular comment, I still have to scroll down a lot to find it. It's a real pain in the a**.   I'm not looking to permalink a discussion to share it somewhere else. I just want to be able to bookmark it for my own reading...later.   How can I do this? Is there a browser plugin or such that'll let me do this?


What happens when you run out of movement while jumping?

According to the PHB (p 182) after a 10 foot movement the player is able to make a long jump whose length is equal to their strength score.  Each foot jumped costs 1 foot of movement.  I have a character with a speed of 25 who can jump 30 (due to the jump spell tripling their normal jump distance of 10).  What happens when he runs out of movement?   The player moves the full distance of the jump The player stops moving when they run out of movement and fall The player moves up to their movement speed, then finishes the jump on their next turn


I use a Intel i3 proccesor with 4gbs of ram. I want a flavor thats lightweight and also modern looking.


A chapter in my book ends with an odd-numbered page. The next page is an empty page with an even number.   How to remove the numbering and header on the empty page?


How does Linux route packets destined for another interface?

How are packets routed inside a single linux machine? Imagine the following setup:        +--------------------+       |  apache on         |       |  192.168.1.30:80   |       |    |               |     +---+  |             +---+     |en0|--/             |en1|    <------   packet to 192.168.1.30:80     +---+                +---+ 192.168.1.30/24       10.0.0.30/24       |                    |       +--------------------+  Apache is bound to 192.168.1.30   When sending a packet to 192.168.1.30, it is usually dropped. However, when one activates /proc/sys/net/ipv4/ip_forward, the packet is routed to the far IP. (Thanks . for the correction.)  Sending a packet to 192.168.1.30 is accepted on the host even though it is sent to an interface with a different IP.   Since this can be a security issue, I was wondering how Linux treats the routing with respect to the firewall.  How does such a packet traverse the firewall? Will it first go through the FORWARD and then the INPUT table?


Where can I compare airfares *including baggage fees*?

There are lots of places where I can compare flight fare costs, where the listed prices include all taxes and fees.    This capability is eroding due to practices like route-dependent carry-on bag fees that are very hard to locate in order to quantify.  I've had searches where I wind up finding a list of flight options, then spending a half an hour per option to try to quantify the baggage fees, and once you value that time you're not really saving anything by doing a price comparison.    I'd like to be able to enter into a search engine whether or not I plan to bring a carry-on and how many bags I plan to check, so that I can see the price of the ticket as I plan to take it, and not have to search for the modifiers every time.  Does this exist?     Related:


I was resolving some problems on codewars and tried to convert a string to a list of numbers like this:  "102904".split("").map(parseInt);   The expected result would be something like this:  [1, 0, 2, 9, 0, 4]   But it returns instead:  [1, NaN, NaN, NaN, 0, 4]   At believe that map should apply to each element in the list which are strings of 1 digits. One could believe that it isn't parsing correctly because the base isn't used but:  "102904".split("").map(function(x){ return parseInt(x);}); [ 1, 0, 2, 9, 0, 4]   Using parseInt(x, 10), doesn't change the result. But sending directly parseInt to map creates NaN...  I tried on Chrome and Firefox and I receive the same results.


How can I /give a named painting in Minecraft Bedrock Edition?

I'm attempting to give a player a painting named 'hel' using the following command: give @p painting 1 0 {display:{name:"hel"}}  But I'm getting the following error:  Line 1, Column 2 Missing '}' or object member name  I've tried everything I can think of to fix it. What am I doing wrong?


Error installing Android Studio! How to uninstall it completely?

I tried installing android studio in my Ubuntu 14.04 using terminal. I entered the commands  sudo add-apt-repository ppa:paolorotolo/android-studio sudo apt-get update sudo apt-get install android-studio   It was downloaded successfully but when it was getting installed, an error occurred in dconf-ing a package. It also has created an .desktop file in /usr/share/applications but I cannot run it. I want to uninstall it, as it was not fully installed, I tried sudo apt-get autoremove but didn't work.  Please help me uninstalling android studio fully.


Configure WLAN as metered or tethered in macOS

MacOS seems to assume a WLAN connection to be free of charge if and only if it is not a tethered iPhone connection. So it will run all background update and maintenance processes via that WLAN connection. As my WLAN is in fact a small box with LTE access (payed by volume) I would like to configure the connection as if it were a tethered mobile connection, which it really is.  The answers to the similiar question  all recommend some third party tools, how can I solve it solely with built-in functionality and tools (macOS Sierra, if it helps)?


Set no wallpaper, but single color background

I was trying to find the setting to disable the wallpaper on my Android phone. I've found some suggestion which suggest to make a fake black png or something like that, but it's going around the problem instead of solving it. Technically, it's still a wallpaper, and I don't want to have any...  How to set not to use wallpaper on Android? There must be some way, even on Windows it's possible...  I'm using Samsung Galaxy S4


Derived class that inherits virtual class c++

class vehicle{ ... }; class motorVehicle: virtual public vehicle{ ... }; class twoWheels: virtual public vehicle{ ... }; class motorcycle: public motorVehicle, public twoWheels, virtual vehicle{//(1) .... };   (1) Why does class motorcycle has to inherit class vehicle, when it is already contained in classes motorVehicle and twoWheels? In the explanation from the book it is written that class motorcycle has to inherit class vehicle in order to make sure that the constructor of the base class (vehicle) will be called. If this explanation is correct, I don't understand why it says "virtual vehicle"? What type of inheritance is this?


Why is gender typically coded 0/1 rather than 1/2, for example?

I understand the logic of coding for data analysis. My question below is on the use of a specific code.   Is there a reason why gender is often coded as 0 for female and 1 for male?  Why is this coding considered 'standard'?  Compare this with Female = 1 and Male = 2. Is there a problem with this coding?


Algorithmic, put curled bracket over states

I am using the algorithm package and I want to but brackets over a set of lines, because it will be repeated for some cases..   \documentclass[a4paper,10pt, twoside]{book}  \usepackage[utf8]{inputenc}  \usepackage{algorithm}  \usepackage{algorithmic}   \begin{document}  \begin{algorithm}  \caption{my algorithm}  \begin{algorithmic}  \STATE \(value = 9\)  **  \IF{lalla}  \ENDIF  \ELSE *  \end{algorithmic}  \end{algorithm}  \end{document}   So I want a curled bracket on the right of the lines from ** to * and then to add a comment there, is this possible?


Fisher Information of a function of a parameter

Suppose that $X$ is a random variable for which the p.d.f. or the p.f. is $f(x|\theta)$, where the value of the parameter $\theta$ is unknown but must lie in an open interval $\Omega$.  Let $I_0(\theta)$ denote the Fisher information in $X.$  Suppose now that the parameter $\theta$ is replaced by a new parameter $\mu$, where $\theta = \psi(\mu)$ and $\psi$ is a differentiable function.  Let $I_1(\mu)$ denote the Fisher information in $X$ when the parameter is regarded as $\mu.$  Show that $$I_1(\mu) = [\psi'(\mu)]^2 I_0[\psi(\mu)].$$  How would I do this?  Do I need to use a Taylor expansion?  Regardless, I would appreciate a written proof.  This isn't for class but the above statement has been mentioned in texts without any detail whatsoever.  Thanks!


How can I open all files from many folders in one window?

I have many folders with many images in each one. I want to open a new file explorer window with all the images from all folders. Here is a screenshot :    In each folder there are many images I want to open a new window of file explorer that will contain all the images from all folders so I can browse them easy instead entering and exit each folder.


`UnboundLocalError` in this little code snipet is confusing me

def h(y):     x = x + 1  x  = 5 h(x) print(x)   So this is from the MIT 6.00.1 course.  This bit of code throws an UnboundedLocalError: local variable 'x' referenced before assignment.  I even tried doing this like this:  x = 5 def h(y):     x = x + 1  h(x) print(x)   But that also gives the UnboundLocalError.  My thought process was that declaring x = 5 before the function is created and placed into the global stack (sorry if the lingo is wrong) would ensure that when we call h(x) the globally scoped variable x would have a value to pass to the function.  I'm also curious that this somewhat similar snippet of code does NOT produce the UnboundLocalError:  x = 12 def g(x):     x = x + 1     return x  g(x)   And I am running these code snippets through Python Tutor, I (am fairly sure) that I generally understand the order in which things are occurring as the code executes.    Sorry, and thanks in advance - I am looking to understand what's really going on here instead of glossing over it.  I realize that usually locally scoped variables are less confusing and less likely to cause weird bugs.


Could somebody explain this output?  $ echo ! ! $ echo !! echo echo ! echo ! $   I expected sedond echo to write only !!


I created a new home directory for myself on my SSH server and when I log in my bashrc is never loaded, I always have to type . ~/.bashrc after I log in. How can I save keystrokes so this is done automatically?


batch rename file names including spaces and patterns

I would like to rename a bunch of files which are named in a general form of,  text1 text2 [firstname.lastname] text3 ... textn.ext  I want to remove the text [firstname.lastname] from the name of a file. To simplify the task, assume that [firstname.lastname] is a fixed first and last name for all the files.  I use Ubuntu 12.04, and I tried the following command,  $ find . -name "*.ext" -print | xargs sed -i 's/[firstname.lastname]//g'  but it doesn't work.


Fractional part from a float value in C++ without any inbuilt libraries

float f = 735.64;     int i = (int)f;     float f2 = f - i;     cout<<f2<<endl;       The value outputted by f2 is simply not 0.64 but something like 0.6400015 I just want to have the value in f2 as either 0.64 or 0.640000.. so could I do it without using any inbuilt functions as such?  Thanks.


What is the proof that det(A) = det(A transpose)?

Why det(A) = det(A transpose)? Can you give me the proof?


Can a satellite remain directly over a city?

Is it possible to put an artificial satellite into an orbit in such a way that it will always remain direct over a city (I mean at any specific place)?


Travel with violin Amtrak from Trenton NJ to Lancaster PA

Does anyone have experience taking musical instruments out of Trenton? My violin case just measures outside the sizing given on amtrak.com for medium-sized cases. What I want to avoid is getting to the train station, and then being forced to buy a second ticket because my case is two inches too long (all the other dimensions easily fit). Does anyone know how strict they may be about allowing it? It seems that I really shouldn't have a problem with the overhead space and such, and as far as I know, it's not a particularly busy train. I'll also be going from Indianapolis back to Trenton non-stop. I've done a lot of reading so far about cellos on Amtrak, but any violin-specific advice would be appreciated.


How to search with GNU find for several file types at a time?

How is it possible to use the GNU find command to match several file types at a time (one search command)?  The man page says:  -type c     File is of type c:     b      block (buffered) special     c      character (unbuffered) special     d      directory     p      named pipe (FIFO)     f      regular file     l      symbolic link; this is never true if the -L option or the -follow            option  is in  effect,  unless  the  symbolic link is broken.  If            you want to search for symbolic links when -L is in effect, use            -xtype.     s      socket     D      door (Solaris)   and I want to search for files (f) and symbolic links (l) and pipe it to another process. How can I search for both at the same time?  I have tried  find -type fl | … find -type f -type l | … find -xtype f -type l | …   I know a workaround would be to use a subshell  (find -type f; find -type l) | …   but I just want to know if it is possible.


I have a file like below   Event1 A B C Event2 CC CC DD Event1 E N D Event2    Now I could sed between Event 1 and Event 2 and able to take all the lines between those but what I want is, if the Sed can output only if the lines between Event1 and Event2 has "B" as a content.  So my output looks like  Event1 A B C Event2


Can an iPhone 5's camera good enough to take a picture where the quality is decent on a 16x20 photo


No supersymmetric particles have been found in the LHC. Isn't this proof that Supersymmetry doesn't exist?

The LHC can reach energies from $7(TeV)$ to $13(TeV)$ (see ) and the question of which this is supposed a duplicate. Which I think it isn't, because in that question (which has been asked already eight years ago) there is nothing asked (which obviously just couldn't) about the current situation. In an answer to it, it is said that until 2020 (which is just a guess) the lower bound of SUSY particles will be reached. Now the lightest sparticle is the  with a supposed mass of about $300(GeV).$, which is 40(!) times as high as the energy the LHC can supposedly reach and I think (correct me if I'm wrong) that there are sparticles which have a mass lower than this. I couldn't find the mass though of the next lightest sparticle (after the neutralino) predicted by any theory that incorporates SUSY. For sure, the neutralino hasn't been found though. Maybe that's because it's difficult to find them, Which I don't know. Wouldn't (in the light of this) the next sparticle (with respect to mass) have been found yet?  So isn't this proof that the search for supersymmetric particles is a search in the dark for nothing and supersymmetry is non-existing?


Should we not start sentences with "And" , "But" ,"So" and "Because"?

Personally, I use “but” and “so” to start sentences, but not “and” and “because”.  Today I was talking to a friend of my brother on this matter, who is in 6th Grade. He takes tuition from a private tutor who told him that in early days using “and”, “but”, “so” to start a sentence was okay, but now-a-days it is becoming obsolete and that we should not use them to start a sentence. He is a reputed teacher here and he keeps track of current affairs. (He is the one who told me, when I was his student, that “will” is being used after “I” now-a-days and I followed the advice.) So I could not deny this information. Tried to find in Google about this but no source made me think it is trustworthy. So I would like to know this in StackExchange,   What is the actual rule and is this rule being changed?    PS- I don't use “because” to start sentences but I always had a doubt. So I added it!


How can I use my Ubuntu install drive for extra storage on Windows

I have Ubuntu and Windows 10 installed on two seperate hard drives. The ubuntu drive was originally extra space for Windows. I had some large games installed on it and I backed them up before wiping it. I would like to put them back but I cant resize the partition to create another. In Ubuntu I cant repartition because I cant unmount the drive. In Windows it doesnt show any partition options in any software I've tried.  The Ubuntu drive is GPT 1Tb.  Windows drive is MBR 500Mb. Maybe that's the problem. If so, what's steps should I take to ultimately end up with a usable partition for windows?


Is someone doing negative SEO for my website?

We are getting too many clicks and links from some junk websites, most of the websites are expired domain when we try to visit it.  We have got these list of domains from using our web master tools and Google Analytics.  INFO: These domains are blocked by Google for malware.   We get too many links and clicks from the following domains.  So, We are thinking that, someone is doing negative SEO for us or want to demage our website.   Since these visits, Our ranking position is dropped.   Can someone help me ?  cheapdedicatedhostingcornwall.xyz    sharedhostingclwyd.xyz   makemoneywithresellerhostingcastlereagh.xyz  bestpriceforvpshostingdiscount.xyz   affordableresellerhostinggrampian.xyz cheapdedicatedhostingarmagh.xyz  sharedhostingdiscountcarrickfergus.xyz vpshostingdiscountcentral.xyz vpshostingbackupcambridgeshire.xyz webhostsfreeuk.xyz allaboutsharedhostingards.xyz sharedhostingcambridgeshire.xyz affordablededicatedhostingalderney.xyz findsystemissueonline.xyz networkissuereportinfo.xyz learnsystemlogs.xyz foundsystemerrorlogs.xyz checksystemalertsonline.xyz systemnetworkreports.xyz erashows.xyz anysearchhere.xyz financeholowin.xyz away-network-alert.xyz system-critical-alert.xyz browser-error-alert.xyz energyholo.xyz secondclassbooking.xyz systemcheckinfo.xyz


Python Regex Search Wildcard string or number

I am looking for a string in the following format:  "5\'x5\'-ClimateControlled(xxxxxxx)IndooraccessUpperLevelElevatoraccess"   Where the (xxxxxxx) wildcard portion can be any combination of numbers, letters, or symbols. I have found that if the wildcard portion is a number, the following works:  pattern = '5\'x5\'-ClimateControlled.IndooraccessUpperLevelElevatoraccess' regex = re.compile(pattern) regex.findall(raw)   However, sometimes the wildcard portion is a string or symbols, in which case the search returns nothing. What is the syntax for a true wildcard search where the portion in the middle can be anything?


Call to a member function on a non-object

So I'm refactoring my code to implement more OOP.  I set up a class to hold page attributes.  class PageAtrributes  {   private $db_connection;   private $page_title;      public function __construct($db_connection)      {         $this->db_connection = $db_connection;         $this->page_title = '';     }      public function get_page_title()     {         return $this->page_title;     }      public function set_page_title($page_title)     {         $this->page_title = $page_title;     } }   Later on I call the set_page_title() function like so  function page_properties($objPortal) {         $objPage->set_page_title($myrow['title']); }   When I do I receive the error message:     Call to a member function set_page_title() on a non-object   So what am I missing?


I believe the answer is $m = \lceil \sqrt[d]n \rceil$ or  $\lfloor \sqrt[d]n \rfloor$.  Can anyone help me?


Download the latest version of python-pip using apt-get

Ubuntu 12.04 Python 2.7 apt 0.8.16~exp12ubuntu10.17 for amd64 compiled on Jun 13 2014 17:42:13   When I run sudo apt-get install python-pip It installs a a very old version.  $ pip --version pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)   This has caused me all sorts of problems as that version of pip has trouble locating many packages.  When I try to install the  via apt-get It wont locate it.  [$ sudo apt-get install python-pip=1.5.6 Reading package lists... Done Building dependency tree        Reading state information... Done E: Version '1.5.6' for 'python-pip' was not found][2]   NOTE: I have previously run apt-get update and apt-get update  When I try to install pip by executing sudo python get-pip.py I get   $ python get-pip.py Downloading/unpacking pip   Cannot fetch index base URL https://pypi.python.org/simple/   Could not find any downloads that satisfy the requirement pip Cleaning up... No distributions at all found for pip Storing debug log for failure in /home/user/.pip/pip.log    I believe this is because of some issues with the Ubuntu VM proxy settings which I can get resolved later in the week.   Preferably I just want to install a recent version of pip via apt-get but I am open to any solution.   Any help is much appreciated


Symmetry factor of $n$-point one-loop diagram

If we have a one-loop diagram in $\phi ^ 3$ scalar field theory with $n$ external lines, then what is its symmetry factor?    I have drawn the diagram I am looking for, but instead of $6$ external lines, I want the diagram to have $n$ external lines. Please ignore the arrows in my diagram and assume that the external points are held fixed.


MacBook Pro (13-inch, 2016, Two Thunderbolt 3 ports) - Increasing Battery Life

Hi How to effective Battery charge in MacBook Pro (13-inch, 2016, Two Thunderbolt 3 ports).  As per my previous experience , i was using MacBook Air and i charge it 100 % and wait till drain then again Charge it. I used it two years, with in two years. Battery got damaged.I am worry about my new MacBook Pro.  My Doubts are-  1- Charge it 100% and wait upto 20 % and again charge full.  2- Charge 100% and Wait till it drain 1% and again charge it.  2- Always Charge MacBook Pro, when it is in use  3- How to increase Battery life of MacBook Pro  I have gone through it  . but really not able to understand key points.  Please help me out to increase Battery life of my mac book pro


click function does not work on dynamically created element

can anyone explain why this code works:  $(document).ready(function(){ $("#file").on('change',function(){ $("#selected_files_div").append("<input type='button' class='red_button'>"); $(".red_button").on('click', function(){ // do something }); }); });   but this one does not work?       $(document).ready(function(){     $("#file").on('change',function(){   $("#selected_files_div").append("<input type='button' class='red_button'>");     });     $(".red_button").on('click', function(){     // do something     });     });   Appending always works but click event works only in first.. case


Is power analysis necessary in Bayesian Statistics?

I've been researching the Bayesian take on classical statistics lately. After reading about the Bayes factor I've been left wondering if power analysis is a necessity in this view of statistics. My main reason for wondering this is the Bayes factor really just appears to be a likelihood ratio. Once it's like 25:1 it seems like I can call it a night.  Am I far off? Any other reading I can do to learn more? Currently reading this book: , by W.M. Bolstad (Wiley-Interscience; 2nd ed., 2007).


I wish to add a symbol from MS Symbol to my document. Specifically, I need to add the   \plus   character and only that to my document below.  \documentclass[a4paper,12pt,twoside]{book}  \usepackage[left=2.50cm,right=2.50cm,top=2.50cm,bottom=2.75cm]{geometry} \usepackage{amsmath,amssymb,amscd,amsbsy,array,color} \usepackage{fancyhdr,framed,latexsym,multicol,pstricks,slashed,xcolor} \usepackage{picture} \usepackage{indentfirst} \usepackage{enumitem}  \usepackage[amsmath,framed,thmmarks]{ntheorem} \usepackage{changes}   \newtheorem{Theorem}{Theorem}  \theoremclass{Theorem} \theoremstyle{break} \theoreminframepreskip{0pt} \theoreminframepostskip{0pt} \theoremframepreskip{1cm} \theoremframepostskip{1cm} \theoremstyle{break} \def\theoremframecommand{% \psshadowbox[fillstyle=solid,fillcolor=blue,linecolor=black]} \newshadedtheorem{them}[section]{Theorem}  \theoremstyle{nonumberplain} \theoremsymbol{\rule{1ex}{1ex}} \def\theoremframecommand{% \psshadowbox[fillstyle=solid,fillcolor=red,linecolor=black]} \newshadedtheorem{proof}{Proof}   \title{Real and Complex Analysis} \author{Michael Dykes and Croix Snapp}  \begin{document} \maketitle  \begin{them}[Arithmetic of Natural Numbers] There are operations \textbf{addition} $\plus$,   \textbf{multiplication} $\cdot$ and a partial order $\leq$ on $\bn$ which are uniquely determined by the following conditions: \begin{enumerate}     \item Addition is associative, commutative, and has the identity element $0$.     \item Multiplication is associative, commutative, and has $1 \eqdef \sigma(0)$ as its identiy element.     \item The distributive law holds:     \[     (\ell + m) \cdot n = \ell \cdot n + m \cdot n, \q \q \ell,m,n \in bn.     \]     \end{enumerate}     \end{them}      \end{document}   When I compile I get an error of course. I don't know how to import just that one symbol into my document without changing all my other symbols. Please help.


how to differentiate row echelon matrix from reduced row echelon. so I beg for your help, thanks in advance.

what the difference between row echelon matrix and reduced row echelon?


Windows 8.1 keeps changing my boot order in favor of Windows

I installed Ubuntu 14.04 LTS on a partition of an external disk drive connected to my HP 400-224 PC.  The Ubuntu boot partition is sdb.  EFI mode is enabled for both Ubuntu and Windows 8.1.  Secure boot is enabled; fast boot is disabled; legacy boot is disabled.  When I boot Ubuntu and restart within Ubuntu, grub-efi lets me choose whether I want Ubuntu or Windows.  However, if I go back to Windows and restart, Windows always changes my boot order, placing ubuntu last in the list.  I always have to manually modify my UEFI settings and place Ubuntu ahead of Windows if I want to go back to Ubuntu.  This seems like too much work.  Is there any way to keep Windows from doing this?


Highlight for reputation notifications in top bar is too small

When I move my mouse over the little inbox icon, it gets highlighted pretty well:  　  Sure, it's half a pixel off-center, but it's pretty good.  But when I move my mouse over my reputation notification:  　  The grey is the wrong size!  It looks weird.  Not only is it not centered, it's too thin.   This happens in Firefox 39.0 and Chrome 41.0.2272.43.  It doesn't affect the mobile site.


Calculate $E(X^{2n})$ where $X$ is normal (0,1)

I need help proving the following:  Let $X$ be normally distributed with parameters $\sigma=0$ and $\mu=1$. Let $n$ be a positive integer. Show that:  $$E(X^{2n})=\frac{(2n)!}{2^nn!}=:(2n-1)!!$$  I've tried the change of variables $Y=X^2$ and then calculating the integral, but got nowhere. Any hints?  Thanks in advance!


What are alternatives to generic collections for COM Interop?

I am attempting to return a collection of departments from a .NET assembly to be consumed by ASP via COM Interop. Using .NET I would just return a generic collection, e.g. List<Department>, but it seems that generics don't work well with COM Interop. So, what are my options?  I would like to both iterate over the list and be able to access an item by index. Should I inherit from List<Department>, implement an IList, IList<Department> or another interface, or is there a better way? Ideally I would prefer not to have to implement a custom collection for every type of list I need. Also, will List[index] even work with COM Interop?  Thanks, Mike  Example .NET components (C#):  public class Department {     public string Code { get; private set; }     public string Name { get; private set; }     // ... }  public class MyLibrary {     public List<Department> GetDepartments() {         // return a list of Departments from the database     } }   Example ASP code:  <% Function PrintDepartments(departments)     Dim department     For Each department In departments         Response.Write(department.Code & ": " & department.Name & "
")     Next End Function  Dim myLibrary, departments Set myLibrary = Server.CreateObject("MyAssembly.MyLibrary") Set departments = myLibrary.GetDepartments() %>
Departments
 <% Call PrintDepartments(departments) %>
The third department
 <%= departments(2).Name %>   Related questions:


I have dual boot Windows 7 and Ubuntu 13.10.  I want to upgrade the version of Ubuntu to 15.04. Will that affect my data? And is that possible? If yes, how can I do that?


Loopcuts ignore surface on messed up mesh

I recently started my first real project in Blender. An AK47. Most parts I managed to model decently. Now I reached a point where I don't know what to do. I got stuck on the parts that are complex and molded from a single piece of metal. The Sights looks good to me now, but if I add a sub surface modifier it screws it all up since loop cuts won't behave in the way I need them to. I tried recalculating the normals, remove doubles. I know that I did something wrong here. I just don't know the "correct" way of structuring this mesh for it to work.


Where is Reset Security Token option in salesforce

Users can obtain their security token by changing their password or resetting their security token via the Salesforce.com user interface by following the path Your Name | Setup | (Personal Setup) | My Personal Information | Reset My Security Token, and then clicking on the Reset Security Token button.  The above option is not visible in salesforce.com website.


Using Iris Colorpicker on TinyMCE shortcodes page

I'm actually working on a small shortcodes plugin.  On plugin main file I register TinyMCE button and link core js about button:  add_filter("mce_external_plugins", "shortcodes_tinymce_plugin"); add_filter("mce_buttons", "register_shortcodes_button");  function register_shortcodes_button($buttons) {     array_push($buttons, "separator", "shortcodes");     return $buttons; }  function shortcodes_tinymce_plugin($plugin_array) {     $plugin_array['shortcodes'] = PLUGINDIR_URI . 'tiny_mce_script.js';     return $plugin_array; }   Which contains this code:  (function() {     tinymce.create('tinymce.plugins.shortcodes', {      init : function(ed, url) {                        ed.addButton('shortcodes', {               title : 'Utilizer shortcodes',               image : url.replace('/js','')+'/img/shortcodes.png',               cmd : 'shortcodes',             pluginurl : ajaxurl                         });          ed.addCommand('shortcodes', function() {             ed.windowManager.open({                 file : url.replace('/js','')+'../../tinymce_shortcode.php',                 width : 510 + parseInt(ed.getLang('button.delta_width', 0)),                 height : 415 + parseInt(ed.getLang('button.delta_height', 0)),                 inline : 1             }, {                 plugin_url : url             });         });      }   });   tinymce.PluginManager.add('shortcodes', tinymce.plugins.shortcodes);  } )();   When you click the button modal page loads this file tinymce_shortcode.php which contains this content on top of document:  <?php   require_once("../../../../wp-load.php");   if ( !current_user_can('publish_posts') ) exit();  wp_register_script( 'shortcodes',   PLUGINDIR_URI . "shortcodes.js", false, "1.0", true );    wp_register_script( 'tiny-mce-popup',   PLUGINDIR_URI . "tiny_mce_popup.js", false, "1.0", true );     wp_enqueue_script(      array(          'iris',          'json2',          'jquery',          'jquery-ui-core',          'jquery-ui-sortable',         'jquery-ui-tabs',         'jquery-ui-slider',         'jquery-ui-datepicker',         'jquery-ui-autocomplete',         'tiny-mce-popup',         'shortcodes',         'media-upload',          'thickbox',     )   ); ?>   Then on bottom right before body gets closed I execute this code:  <?php do_action('admin_print_scripts'); ?> <?php do_action('admin_print_footer_scripts'); ?>   All of javascript libraries are loaded like jquery, jquery-ui, media-upload, thickbox, jso2 etc. Only iris the color picker ones do not get loaded. Any help is really appreciated.


Why is expectation defined by $\int xf(x)dx$?

I recently found out that the expectation of a random variable $X$ in a probability space $(\Omega, \mathcal F,  \mathbb P)$, $\mathbb E(X)$, is just the term used in probability theory for the measure of the function $X$; i.e.:  $$ \mathbb E(X)=\mathbb P(X) $$  or, for a real-valued random variable $X:\Omega\to\mathbb R$:  $$ \mathbb E(X)=\int_\Omega X(x)\mathbb P(dx) $$  The thing is, I am also familiar with the definition of the expectation of a random variable $X:\Omega\to\mathbb R$ with probability distribution function $f$ to be:  $$ \mathbb E (X)=\int_\mathbb R xf(x)dx $$  Here, the integral is with respect to the Lebesgue measure on $\mathbb R$.    We can define the function $f$ in the following way: we have $F(x)=\int_\mathbb R f(x)dx$, where $F(x)=\mathbb P(X^{-1}((-\infty,x]))$.    I can't see any way to show that these two definitions are equal to one another.  The only transformation between integrals with respect to different measures that I know is that $\mu(f^{-1}(g))=\mu(g\circ f)$, which gives that $\mathbb E(g)=\mu_X(g)$, where $\mu_X$ is the image measure $\mathbb P\circ X^{-1}$, but that doesn't seem to help.  Why can we write $\mathbb E(X)=\int_\mathbb R xf(x)dx$?  Why are these two definitions consistent?


Mount encrypted volumes from command line?

If I have an encrypted external disk (or an internal disk that is not in fstab), I see an entry for it in Nautilus -- with an entry like "X GB Encrypted Volume".  I can click on this volume, and am prompted for a password to decrypt and mount the device.  But how do I do this from the command line?  , and other docs I can find, only refer to GUI methods of decrypting the device; but this won't do in the context of headless servers or SSH logins.  Is there a simple way to get devices to mount to automatic locations in /media just like they would with the GUI?  (I'm not asking about encrypted home directories -- I'm aware of ecryptfs-mount-private.  This question is about additional encrypted volumes.)


Is there a way to position anchors handles length precisely by text input?

I thought there was a way to edit anchors handles precisely in Illustrator a bit like in Cinema 4D (pictured below) but I can't find it.    And when I browse Adobe's help, it seems to be something that I've dreamt of.  In fact I'm just trying to get some symmetry in a circular part of a hand made path. I've drawn a black line on my shape below that highlights the handles length difference between two anchors.  Is the only way of achieving this is by using the ellipse tool ?    Thanks for the help.


Stack Overflow knows I am a robot and greets me in robot language

Because of a slightly flakey connection, I think I was just prompted to prove I am a human when trying to post an answer.  However, although the dialog box popped up and the rest of the page was masked with an overlay, instead of the Flights of the Concords screenshot and the captcha prompt, the dialog box consisted only of the immortal text [object Object].  I think this means Stack Overflow is on to me and knows I am not human, and is trying to talk to me in Robot language, a silent little language only Robots can understand*.  Sorry, no screenshot. I was a little flustered at being called out like that.  *With apologies to   Update: Martin Smith provided one:    and I reproduced it the same way (paste into the sandbox and TAB then ENTER to post something fast to see the error:    I'm using Chrome 31 on OS X.


Bijective mapping defined by modulo operation

Q. If $m$ and $n$ are two positive integers and $f:A\to A,$ where $A=\{0,1,2,3,...,m-1\},$ is defined by $f(x)= nx\pmod m.$ Find the condition on $n$ and $m$ which ensures that $f$ is one-to-one and onto.   My attempt: Here $f^{-1}$ must exist if $f$ is a bijection. Now as $f$ maps $x$ to $nx$ under modulo $m$ so $f^{-1}$ must map $x$ to $n^{-1}x$ under modulo $m.$ But in $\mathbb Z_m$(or here $A$), $n^{-1}$ will exist iff $\gcd(m,n)=1.$ So I think the required condition should be that $m$ and $n$ are relatively prime. (I don't know what the actual answer is!) I have just started with number theory and discrete mathematics this semester. So I don't have much knowledge to deal with such type of questions involving moduler arithmetic. So kindly guide me saying that whether my approach is correct or not. If not, please suggest me a way to reach the answer to this question or if it is correct, then can we reach the same conclusion using a different approach? I would love to know about your insights. Thanks in advance...


Are there any app exchange apps/tools which we can use to compare the meta data between two orgs


Why is Preview app bloating image file size?

A client sent me a 420 KB photo, saying the file size was too low for a web form with a minimum requirement of 1 MB.  I opened it in Preview app, chose File > Export… and the JPEG quality slider was initially at roughly 80%. At that setting, the new file size was higher at 503 KB. If I dragged the slider to Best quality the file size increased to 1.5 MB.  Unless I'm incorrect in thinking this, the app can't add any new image data to increase the quality of the JPEG, right? I understand it might add some for a thumbnail but the photo already displays one of those. So what's Preview adding to the file that would increase its file size at all, let alone by over 300% for Best quality?


Related:   Should first posters be required to click through a screen showing their formatted post, confirming they approve of how it looks before submitting? So often code isn't indented properly; this would give the OP an opportunity to fix it so others don't have to.  Certainly if they're stuck, someone else can fix it for them as is often the case now, but oftentimes it's a simple matter of not realizing it'll look the way it does. (hence the flurry of edits after the post is made)  This is compounded by the fact that improperly formatted code becomes very small, and easy to miss on the scroll down to Post Your Question  Perhaps beyond just a minimum rep, it would also be based on how often other users have edited their posts, as a metric for how well they've historically done it right.    Edit: this question has been closed as a dupe. While I see the very close relation between the two, the lone answer on the other post explicitly does not address my recommendation of which users to present the confirmation to. I.E. Base it on the number of third-party edits the poster has received.  So tell me this: if my question is closed as a dupe, and the other question doesn't answer this question, how does one go about getting a relevant answer? Do I need to open a bounty on the other post? That seems overkill for a question that hardly benefits me as an individual.


Does *first of all* always go with *second of all*?

According to , first of all is twice as popular as firstly, but secondly is a hundred times more popular than second of all.  When I present two points, do I have to be consistent in the choice of these phrases (if I use firstly, should the other be secondly)?  Because If I choose the most popular, my sentence would be like "First of all he is rich, secondly he is also smart." Which exhibits kind of inconsistency. How does it sound?


How to assign .* as a value to variable in bash

When I am assigning .* to a variable , it is assigning all hidden files.  [root@s1 ~]# a=".*" [root@s1 ~]# echo $a . .. .bash_history .bash_logout .bash_profile .bashrc .cache .config .cshrc .history .lesshst .mozilla .pki .rnd .ssh .tcshrc .viminfo .virsh .xauth6SHzeY .xauthhAVYfm .xauthI6Cte3 .xauthk7ea35 .xauthlXtiZ9 .Xauthority .xauthQm7mJ8 .xauthTpWbxP .xauthY9KsdC   I expect below output :      .*   How to escape it, thanks.  I tried below and it gives output    [root@s1 ~]# a='".*"'     [root@s1 ~]# echo $a     ".*"      ".*"   but not      .*