Below is the code i use to output the post tag (taxonomy) count/number. I want to be able to split the count based on post type that the taxonomy features in (rather than the total number).   So i have the default "post" Post type, aswell as "blogs", & "pics". I want the taxonomy count to display something like: x posts | x blogs | x Pics              <?php             $tags = get_tags( array('name__like' => "a", 'order' => 'ASC') );             foreach ( (array) $tags as $tag ) { ?>
                                                 <a href="<?php echo get_tag_link( $tag->term_id ) ?>">                                   <?php echo $tag->name ?>                         <?php echo $tag->count ?>
             <?php } ?>


How to install and run beamer theme on MiKTeX 2.9

I've been trying to use this beamer theme: . When I try to compile the sample .tex file included it gives me an error that reads:   ! Fatal fontspec error: "cannot-use-pdftex" ! ! The fontspec package requires either XeTeX or LuaTeX to function. ! ! You must change your typesetting engine to, e.g., "xelatex" or "lualatex" ! instead of plain "latex" or "pdflatex". ! ! See the fontspec documentation for further information. ! ! For immediate help type H <return>. !............................................... l.38 } |''''''''''''''''''''''''''''''''''''''''''''''' | This is a fatal error: LaTeX will abort |............................................... ) ) ) ) (\end occurred when \ifx on line 20 was incomplete) (\end occurred when \ifx on line 20 was incomplete) (\end occurred when \ifx on line 6 was incomplete) (\end occurred when \ifx on line 6 was incomplete) Here is how much of TeX's memory you used: 22086 strings out of 493921 418411 string characters out of 3147276 482941 words of memory out of 3000000 24934 multiletter control sequences out of 15000+200000 5018 words of font info for 17 fonts, out of 3000000 for 9000 841 hyphenation exceptions out of 8191 61i,1n,70p,412b,277s stack positions out of 5000i,500n,10000p,200000b,50000s No pages of output. PDF statistics: 9 PDF objects out of 1000 (max. 8388607) 0 named destinations out of 1000 (max. 500000) 31 words of extra memory for PDF output out of 10000 (max. 10000000)   How can I solve this problem? I'm still fairly new to LaTeX. I have tried switching the typesetting engine to XeTeX and LuaLaTeX on TeXMaker 4.3


Can we change the Text Effect(Video editing) font as of 2.79 version?  If not, how can a text created by Text Editor be pulled into the Video Timeline Editor?  Thanks, Anand


Determining the number of subgroups of $\Bbb Z_{14} \oplus \Bbb Z_{6}$

I want to determine      how many subgroups does the additive group $G:=\Bbb Z_{14} \oplus \Bbb Z_{6}$   have?   There are many related posts in our site, for instances:  and . However, it seems that those problems worked with small numbers. I know that $|G|=84=7.2^2.3$ so if $H$ is a subgroup of $G$ then $|H|$ can be taken $12$ possible values as divisors of $84$. Listing all subgroups with given possible orders seems to be not a good choice. Is there any other efficient method to deal with this particular problem? Could it be easier for us if we write $G \simeq \Bbb Z_{2} \oplus \Bbb Z_{2} \oplus\Bbb Z_{3} \oplus \Bbb Z_{7}$?


How to convert JSON to Javascript array?

I need to convert JSON data string to a JavaScript array. This my JSON data:  [["Claim","1"],["issue","4"]]   And i want to get   var data = new google.visualization.DataTable(jsonData);          data.addColumn('string' , 'category');         data.addColumn('number' , 'count');         data.addRows([             ['Claim', 1],             ['Issue', 4]         ]);


Can I choose to delay my turn in combat?

In D&D 4e there was an option to Delay your initiative:     Perform your actions as desired and adjust your initiative to your new   position in the order.   Does this rule to change initiative order still exist in 5th edition? I cannot find it in the PHB.


What is the difference when we use 'should' instead of 'If'?

Should you be lucky to visit the Seoul, you will be happy.   If you are lucky to visit the Seoul, you will be happy.      What is the difference between the two sentences in meaning? And what is the reason we change the order of the sentence 'you should' into 'should you'?


Why is "t" sometimes pronounced like "d" in American English?

Why, in American English, is the word Italy is pronounced /ˈɪdəli/ and not /ˈɪtəli/? What is the rule that is followed in the pronunciation of Italy to make the letter t pronounced like a d? Why is the same rule not followed for Italian, which is pronounced /əˈtæljən/ or /ɪˈtæljən/?


Let us consider a linear regression model $\underline{Y} = X \underline{\beta} + \underline{\epsilon}$, where X is an $n \times p$ matrix, rank($X$) = $p$, $E(\underline{\epsilon}) = \underline{0}$, $D(\underline{\epsilon}) = \sigma^2 I$.  (Here, $E(.)$ stands for expectation, $D(.)$ denotes the variance covariance matrix and $I$ is the $n$-th order identity matrix.)  Let the $n \times n$ hat matrix $H$ be defined as $H = \big( \big( h_{ij} \big) \big) = X (X^{'}X)^{-1}X^{'}$.  If $h_{ii} = 0$ or $1$ for some $i$, then how can I show $h_{ij} = 0$ for all $j \neq i$?


Running Ubuntu Server 18.04 LTS, I'm trying to install a project that I'm currently working on. The problem is that the setup requires several commants, therefore I have created a .sh file to make it easier for any other setting the project up. But i have encountered a problem when adding a new URL to install packages from. To start the script, I run  blueprint@ubuntu:~$ bash install-project.sh   A bit down in the file, there is the following line:  sudo add-apt-repository ppa:builds/sphinxsearch-stable   which seems to be working fine, I could not see any error messages. But the next line:  sudo apt-get update   gives the following error:  Hit:1 http://se.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://se.archive.ubuntu.com/ubuntu bionic-updates InRelease Hit:3 http://se.archive.ubuntu.com/ubuntu bionic-backports InRelease Hit:4 http://se.archive.ubuntu.com/ubuntu bionic-security InRelease Ign:5 http://ppa.launchpad.net/builds/sphinxsearch-stable/ubuntu bionic InRelease Err:6 http://ppa.launchpad.net/builds/sphinxsearch-stable/ubuntu bionic Release   404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/builds/sphinxsearch-stable/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   As far as I can see, when running sudo apt-get install ... on any sphinxsearch packages, they seem to install, so that is not my problem.  But it stops the bash file to continue running (and there are several more commands to run after that) which is really annoying. The only solution I have come up with so far is to create two different .sh files, one for before the error and one for after. But it seems like a stupid and cumbersome way to do it.  Does anyone know if there is any way to for example suppress the errors from apt-get update so that the bask file does not stop there? Or if there is any way to make the bash file not stopping on errors?


Predicting with both continuous and categorical features

Some predictive modeling techniques are more designed for handling continuous predictors, while others are better for handling categorical or discrete variables.  Of course there exist techniques to transform one type to another (discretization, dummy variables, etc.).  However, are there any predictive modeling techniques that designed to handle both types of input at the same time without simply transforming the type of the features?  If so, do these modeling techniques tend to work better on data for which they are a more natural fit?  The closest thing that I know of would be that usually decision trees handle discrete data well and they handle continuous data without requiring an up front discretization.  However, this isn't quite what I was looking for since effectively the splits on continuous features are just a form of dynamic discretization.  For reference, here are some related, non-duplicate questions:


Request, software to draw publishing quality diagrams

I'm trying to find a new solution for nice publishing quality schematics (as opposed as prntscreen ltspice as I'm doing right now) I downloaded dia and toyed with it but it doesn't seem to have a large community around it, not that intuitive of an interface and not that many symbols. It looked promising however. So I'm looking for visio kind of software, open source ideally (eventhough I know I could ''acquire'' it) with nice GUI ( I can't imagine texing a circuit like for Circuitikz) and a lot of symbols. Basically as easy as ltspice to use but options to make it look nicer, export to pdf, resize symbols etc. Any recommandations? What do you people use?


Move using keyboard instead of drag and drop

I wonder how I can move items/folders using keyboard instead of drag and drop. Like sometimes I'm opening a folder and there is an item in it which I want to move it to another location but I don't want to open another finder window and drag and drop. I'm using macOS Sierra


\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class \usepackage{amsmath}  \begin{document} \abovedisplayskip=0pt\relax% remove this line in  your production \begin{gather*} \int \sec^2(5 - 3x/4)\,\mathrm{d}x\\ \int \frac{1}{\cos^2 (5 - 3x/4)}\,\mathrm{d}x \end{gather*} \end{document}     How to remove the white space on the left of gather* when using standalone class?


Pumping lemma $L=\{a^ib^j | i \neq j ; i,j \ge 0\}$

So, let's have language $L=\{a^ib^j | i \neq j ; i,j \ge 0\}$ I have to prove that it's not regular. \begin{align} \omega=a^nb^{n+1}=a^{n-1}ab^{n+1} \end{align}  \begin{align} x&=a^k\\ y&=a\\ z&=a^{n-k-1}b^{n+1}\\ \\ i=2:xy^iz&=a^ka^ia^{n-k-1}b^{n+1}\\ &=a^ka^2a^{n-k-1}b^{n+1}\\ &=a^{n+1}b^{n+1}\\ \end{align}  $\#_a(\omega)=\#_b(\omega)\implies a^{n+1}b^{n+1} \not\in L $  I'd like to ask if this is a correct proof?


Why should I use virtual and override when it can be done by implement that parent class function in child class with same signature?

I have below codes,  First code:      {         public virtual void Test()         {             Console.WriteLine("Parent Test");         }      }      class Child : Parent     {         public override void Test()         {             Console.WriteLine("Child Test");         }          static void Main()         {             Child c = new Child();             c.Test();          }     }   Output: Child Test  Second code:      {         public void Test()         {             Console.WriteLine("Parent Test");         }      }      class Child : Parent     {         public void Test()         {             Console.WriteLine("Child Test");         }          static void Main()         {             Child c = new Child();             c.Test();          }     }   Output: Child Test  I can able re-implement a function in child class without using virtual and override. Second code also gives same output then why I should virtual and override?


A baby zombie jumped onto a zombie and rode it, is this a glitch?

I have no mods and it is my Xbox-360 and the zombies didn’t spawn that way. Is this a glitch?


My database stores each product as its sub-products There are several tables I use to get all the information in one view. How can I arrange the data like this?        Product 1 made out of:                Product 4   Product 5 made out of:         Product 7   Product 8   Product 9 made out of:         Product 10         Product 6         Every time a product´s component has sub-components, I'd like to display the details. And each time the details have sub-details, etc.


How to remove elements from a list in a certain pattern?

I have been trying to work on this certain pattern for quite some time but I am unable to come up with a solution. For example I have list like: n = ['M', 'M', 'B', 'B'].   Now, I know how to remove the elements from a list that have odd indexes or even indexes like del n[1::2] for odd indexes and del n[0::2] for even indexes.   However, I am looking to remove in a pattern like this: 0, [1], 2, [3], [5], [8]..... so on and so forth. The brackets are for the elements in those certain indexes to be removed.  The n list is just an example, I have much larger lists with more elements. So far, all the things I have tried haven't worked and I would appreciate any help on this. Thanks.


$F(x)=\frac{1}{x}\int_0^x f(t)dt$ is monotone if and only if $f$ is monotone

Let $f:(0,\infty)\to \mathbb{R}$ be a differentiable function and $F:(0,\infty)\to \mathbb{R}$, $F(x)=\frac{1}{x}\int_0^x f(t)dt$. Prove that $f$ is monotone if and only if $F$ is monotone. I could prove the "$\implies$" part by only using $f$'s continuity (I just made the substitution $t=xs$ and used $f$'s monotony). For the "$\impliedby$" I don't really have many ideas. I tried to differentiae $F$, but to no avail. I also tried to start from the definition of monotony, but I couldn't relate $F$'s monotony to $f$'s.


REGEX Get String If Not Contain Specific Word

I want to get string if the string not contain word "RAM".     String : 16/32/64 GB    2 GB RAM 32/64 GB  3 GB RAM  64 GB  4 GB RAM   And the result to be obtained  :     String : 16/32/64 GB     32/64 GB  64 GB    What the regex pattern should be used? Please help me. Thank You.


creates word clouds based on the frequency on words in a text, similar to tag clouds. What makes it unique is that it can lay out words in arbitrary directions without too much white space. See the  for many examples.  Given a list of words together with their frequency, is there some package that provides at least some of the functionality in (La)TeX? If not, is there some way to abuse the TeX layout engine to produce word clouds?  (This is not meant as advertisment for wordle, I just do not know of anything that is similar.)


says that the (enemy) bugbear is part of the combat when he knows about it.   says you can only be surprised at the beginning of combat.  Could the unnoticed bugbear wait until every enemy the party knows about is dead, and then attack to surprise them? Basically, when does an encounter end, and when does another start?


Let $G=S_n$ and let $V$ be the permutation module of $G$ with basis $\{x_1,\ldots,x_n\}.$  Let $\lambda, \mu \in \mathbb{C}$ to allow one to define a $\mathbb{C}G$-homomorphism $\rho:V \to V$ by $$\rho(x_j):=\lambda x_j+\mu\sum_{i \neq j}x_i.$$  By using the above fact or otherwise, how can we prove that $V$ is the direct sum of two non-isomorphic irreducible $\mathbb{C}G$ -submodules?  I tried to prove this by construction. A familiar irreducible submodule in this case is the $1$-dimensional space $U:=\operatorname{span}\{x_1+\cdots+x_n\}$. I intend to find another $(n-1)$-dimensional submodule $W$  which makes $V=U\oplus W$ hold, but it's hard to do so. Is there a way to use the fact instead of a random construction?


Cannot install any Linux on newly built computer. Splash screen>flash of desktop>only mouse on screen

hopefully this is a noobish question that can easily be solved because it has given me quite a headache. I recently upgraded my machine, before I outline my problems here are the specs.   Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz 3.70GHz 16GB DDR3 RAM Radeon 6800 Graphics Card Gigabyte Motherboard (using BIOS) Multiple HDD tested, ranging from SSD to 160GB old Samsung HDD.  Currently running windows 8.1 (sad face)   Here is the process I have become accustomed to. When booting from a live USB, I will see the splash screen of whatever Distro I have loaded, then it flashes the desktop for a second, then goes blank. After a minute of blank screen a mouse cursor appears, and nothing after that.  I have made a 16GB live USB in FAT32 using the programs Rufus, Lili Live USB installer, and UnetBootin. All produce the same results. I have tested Ubuntu 12, 14, 64bit flavors. I have also tried Debian and Linux mint 17 Cinnamon.  One interesting thing to note is that Linux Mint 17 32-bit was able to display the desktop in compatibility mode. In this mode the USB booted to the desktop instead of the installer, despite me choosing the install option in UnetBootin. When I run the installer from here, it gets to formatting "swap" and then crashes, leaving me with a cursor on the screen again. The HDD it was installing to becomes unreadable until I use the disk-part utility in windows to "clean" it.   I have ran a memory test from the options in unetbootin, no errors to report.   My BIOS settings were tested as follows:   Write protection toggled on/off Fastboot disabled Setting for 2+TB HDD on/off (apologies for not remembering the name for this setting) USB set to first boot device Setting for forcing computer to ignore graphics card on/off (again, apologies for lack of specific name for setting)   Please tell me I have missed something easy, as I cannot wait to get Ubuntu running on this thing. My old Dell Dimension 8150 barely handled the Unity interface, and I'm excited to see this thing rip it up. Thank you in advance for your time!


When Stack Exchange site users reach  (or  for beta sites) they can view deleted posts. This can be very useful but deleted answers stay in their default ordering unless sorted by votes, so viewing a question with a lot of deleted answers can be cumbersome if you only want to see non-deleted posts.  The  at  is a particularly good example:    Can we have an option to not show deleted answers?    This is not a dupe of  because, as :     That was posted 6 years ago and the resolution was to just simply sort deleted posts to the end. This is asking for the ability to toggle viewing them at all. It'd at least be nice to revisit the issue, 6 years later


Correct Intuition? Standard Deviation and distance in $n$ dimensional space.

Basic Question  Is there an intuitive explanation of standard deviation in terms of Euclidean distance in $n$ dimensional space?  Longer Version of Question  To begin a more detailed sketch of my question, for simplicity let's just focus on the simple case of a discrete random variable that is uniformly distributed. In this case, the variance is given by the following formula, which I've abducted straight from Wikipedia:  $$ \frac1{n}\sum_{i =1}^n (x_i - \mu)^2$$  where $\mu$ is the mean. The standard deviation is then the square root of this. Now, I can't help noticing that the square root of the sum returns the euclidean distance from the vector $X = (x_1, x_2, \dots, x_n)$ to the vector $\vec \mu = (\mu, \mu, \dots, \mu)$. That is, the standard deviation can be expressed as:  $$ \frac1{\sqrt{n}}|X - \vec \mu |$$  So I wonder, is there any significant conceptual relationship between this distance $|X - \vec \mu |$ and standard devation or is this just a coincidence?  Even More Details...  I have looked up many explanations of standard deviation and its cousin variance. Here are some that I've seen already, each sort of following from the previous one:   We square the values before summing to get rid of the sign, which is obviously not important. This explanation is often criticised by hardcore statisticians and I can sort of see why: it doesn't explain why squaring beats taking the absolute value. We square the values so that we pay a greater price for greater deviations. This explains why squaring beats taking absolute values. But why not raise to the power of $4$, or $6$, or any other even power before summing? What is so special about $2$? The thing that is so special about $2$ is that it's the second moment of intertia, whereas the mean is the first moment, so mechanically it makes sense. I don't follow this. My intuition is totally OK with the mean: the point where, if I put my finger, the weights on either side will balance. But the second moment is harder for me to imagine physically like this.   Note, this is a question about intuition. I "understand" the mathematical formula at a shallow level: what all its terms mean, how to calculate it given a dataset. But I am not comfortable with my grasp on why this formula is "the best" one to use in so many applications e.g. the least squares method to fit data. I'm particularly confused as to why squaring is chosen as opposed to raising to some other even power e.g. $9234324$.   And this is where my intuition steps in and tries to provide an explanation that goes right back to the fundamental theorem of Pythagoras: euclidean distance. Here is my thought process: "The number $2$ is special. It's the unique power that makes Euclidean distance work. So maybe it's also the unique number that makes variance work." But then why the multiplying factor of $\frac1{\sqrt{n}}$? Is it just simply a case of: swallow it up and accept the definition, or can this intuition be resolved somehow?


As it currently works. The endusers have to go the URL:     and that works  but i want the users just to go to:   to access the page.  I now have in my httpd.conf on RedHat 6:  <Virtualhost *.80> DocumenRoot /var/www/html/owno ServerName olaf-owno.europe.eu ServerAlias owno.olaf.europe.eu </VirtualHost>   What do i have to add/modify to put this in practice ?  Johans


Few years ago I have configured proxy server on freebsd by IT guys. it's functions   register computers by MAC address. filter web sites, messengers, downloads set few computers without internet access set some computers with limited internet access. set some computers with full internet access /using exception by ip/. save and review internet usage of people.   i have manual how to add computer by mac, add ban list website and restrict or exception a computer. but now it's not working and i can't find it guys to fix it  So I want to try it myself on Ubuntu. Please again please tell me how to configure proxy server on Ubuntu STEP BY STEP? It's very important for me. Please help me. Or if you have already documented manual please share with me.  Thank you for your help


Miraak NEVER absorbs any dragon souls in 'At the Summit of Apocrypha' quest

I've been playing the Dragonborn DLC for awhile. Now, I'm in the 'At the Summit of Apocrypha' quest. The issue I'm encountering is the bug where Miraak NEVER absorbs any dragon souls, leaving him permanently ethereal during the fight, not allowing me to finish the quest. And my character is ALWAYS absorbing the dragon souls.  I've been finding possible solutions on the Internet. Here's what I've already tried:   Installing Unofficial Skyrim and Dragonborn Patch Uninstalling Unofficial Skyrim and Dragonborn Patch Kill all dragons before attacking Miraak Using the ff. console commands:   setstage DLCMQ06 500 setstage DLCMQ06 580 resurrect resethealth disable and enable tcl  Sneaking behind stone pillars, pile of books, and behind Miraak Resetting and reloading a save game Followed EVERY known Youtube videos of Bugfix Use of petty weapons and armor Changing the difficulty Reinstalling the game


how to navigate between lightning components in Salesforce community?

Old way (using event force:navigateToComponent is deprecated) and new way (lightnign:navigation) is not supported in communities. How can I implement navigation?


Moderated regression: Why do we calculate a *product* term between the predictors?

Moderated regression analyses are often used in social sciences to assess the interaction between two or more predictors/covariates.   Typically, with two predictor variables, the following model is applied:  $Y = β_0 + β_1*X + β_2*M + β_3*XM + e$  Notice that the test of moderation is operationalized by the product term $XM$ (the multiplication between independent variable $X$ and moderator variable $M$). My very fundamental question is: why do we actually calculate a product term between $X$ and $M$? Why not, for instance, the absolute difference $|M-X|$ or just the sum $X + M$?   Interestingly, Kenny alludes to this issue here  by saying: "As will be seen, the test of moderation is not always operationalized by the product term XM" but no further explanation is given. A formal illustration or proof would be enlightening, I guess/hope.


Find limits of series: $\lim_{n \to \infty} (1+x)(1+x^2)\cdots(1+x^{2n})$


I am an Indian National holding Indian Passport.  Do I need a Thailand Transit Visa if going from India to Vietnam via BKK where the layover is 9 hours approx ? I am travelling by Thai Airways.


Proving that the mothersequence converges to $x$ if any subsequence contains a subsequence which converges to $x$

Dear reader of this post,  I am currently working on some problems about sequences and their subsequences. I  proved a claim and because this prove involves some elementary concepts, I would like to ask three related questions. The claim is as follows: For any real number $x$ and  $x_m \in \mathbb{R}^{\infty}$, show that $x_m \rightarrow x$ if every subsequence of $(x_m)$ has itself a subsequence that converges to $x$.   My prove is as follows: Take any subsequence $x_{m_{k}}$. As stated, I know that $\exists$ a (sub)subsequence $x_{m_{k_{i}}} \rightarrow x $. Let $\bar{x}_{m_{k_{i}}}$ be the non-convergent part of the subsequence. Redefine $x_{m_{k}}$ as $\tilde{x}_{m_{k_{i}}} = \left\lbrace \bar{x}_{m_{k_{1}}},\bar{x}_{m_{k_{2}}},\ldots,x_{m_{k_{1}}},x_{m_{k_{2}}},\ldots \right\rbrace $. Redefine the mother sequence $x_m$ furthermore as  $\tilde{x}_m = \left\lbrace \tilde{x}_{m_{1}},\tilde{x}_{m_{2 }},\ldots \right\rbrace$. Finally, take any $\epsilon >0 $. I know that for any $ \tilde{x}_{m_{k}}$ $\exists M \in \mathbb{N}$ for which $\forall i > M$ $| \tilde{x}_{m_{k_{i}}} - x | < \epsilon $. Thus, $x_m$ is convergent.  After having stated my prove, I'd  like to ask my three questions:   I think the prove requires each subsequence to contain infinitely many elements. Is this correct and does every subsequence contain indeed infinitely many elements in general? Do I really need to redefine the sequence $x_m$ and its subsequences $x_{m_{k}}$ and is this legitimate?  If these two questions are answered positively, is my prove correct?   Thank you very much for your support. I am looking forward for your replies.


Progress bar update in child thread not updating, Work done in main thread

I have an application which has a C# front end (GUI client), and a C++ back end (business logic). The back end is responsible for requesting progress bar functionality and does this by issuing events which the front-end has observer delegates to respond to and act upon. so events are dispatched and responded to in the main thread. I would like to spawn a second thread to display and update the progress bar, as the main thread is occupied by the back-end doing its thing. While I can show the progress bar window when supposed to, and correctly hide when finished, it will not respond to updates/increments. ProgressBarWindow holds the progress bar control (pBar). ProgressBarWindow is owned by progressBarThread. public static EventObserver.ProgressBeginEvent pbe = null; public static EventObserver.ProgressFinishEvent pfe = null; public static EventObserver.ProgressIncrementEvent pie = null; public static Thread progressBarThread = null;  static private void InitialiseProgressBarManager() {      // Setup the progress bar callbacks...     pbe = new EventObserver.ProgressBeginEvent(delegate         (int currentIncrements, int totalIncrements, string message)     {         // Create the thread and progress bar window...         progressBarThread = new Thread(() =>         {             ProgressBarWindow sw = new ProgressBarWindow();             sw.pBar.IsIndeterminate = false;             sw.pBar.Minimum = currentIncrements.Value;             sw.pBar.Maximum = totalIncrements.Value;             sw.pBar.Value = 0;             sw.Show();              pie = new EventObserver.ProgressIncrementEvent(delegate ()             {                 sw.pBar.Value++;        // The calling thread cannot access this object... see below              });              pfe = new EventObserver.ProgressFinishEvent(delegate ()             {                 progressBarThread.Abort();                 progressBarThread = null;             });         });          progressBarThread.SetApartmentState(ApartmentState.STA);         progressBarThread.IsBackground = true;         progressBarThread.Start();     }); }  The window shows when expected, and the ProgressIncrementEvent gets raised correctly (it is owned by the thread), however I get an exception when it tries to access the value. The calling thread cannot access this object because a different thread owns it.  Do I need a mutex or some other lock? I was hoping the scope of the observer delegate would allow the delegate to have mutable access to the thread local ProgressBarWindow even though it is being invoked from the main thread? I'm not a great C# developer and even less so C# threading so I am a bit stuck about what I should be doing here or even if I can achieve this behaviour. Any help or direction to get this working would be appreciated. P.S I am using WPF with ProgressBarWindow being defined in XAML.


why lines of Lyman series are absent in absorption spectrum of hydrogen ?


Why did people remain at Hogwarts after Dumbledore's death?

From what I’ve read on here, people remained at Hogwarts after Dumbledore’s death, mainly in Dumbledore’s Army. But why wouldn’t the parents just have their children come home?  Also, I know the Ministry was largely controlled by Death Eaters, but how did Snape remain Headmaster, especially with someone like McGonagall still present?


Is it safe to charge my MacBook Pro with a 24W solar panel with USB-C?

I charged my 2016 13"   this morning with a 24W solar panel.  I am not sure if this is safe to do longterm for the the laptop. Am I damaging the MacBook if I do this? What would happen if I used a 60W solar panel?


Why are the keyboard indicator lights out of sync in Ubuntu 16.04?

As I noted in my answer to  The keyboard indicator lights seem to go out of sync at boot on Ubuntu 16.04 For example Set your BIOS to Num Lock ON and boot. Keep an eye on the indicator throughout the boot and login process. You'll note that it goes out and has to be tapped twice before it accurately reflects the num lock status. Why is this and how can this faulty behavior be resolved.  One of the systems I'm experiencing this on doesn't have an option to turn off the numlock at boot. The other one does and even when NumLock on at boot is disabled the indicator light is still out of sync.


Encryption/Decryption for Salesforce Integration with Other Systems by WebServices

I have to expose a synchronous ws that allows to acquire the same message sometimes encrypted and sometimes not. How should I do the WS? examples of outbound WS for cryptography?  Please Help me ....


How to run a moving window function in a conditional statement in PostGIS for buffer artifact removing?

I try to remove the artifacts which occur when running the ST_Buffer function in PostGIS PostGIS 2.5.1 (See picture). For this case I wrote a function that should loop trough every segment (row) and erase (ST_Difference) the Polygons with the smaller areas (I assume the "normal-shaped") from the bigger ones (With additional artifacts).   --CREATE TABLE line(name char(10), geom geometry); --INSERT INTO line VALUES('line','LINESTRING(0 0,30 10,40 30,70 40)');  WITH firstblocks AS(  SELECT  row_number() Over() AS id, ST_Buffer(ST_Line_Substring(the_geom, 8*n/length,   CASE     WHEN 8*(n+1) < length THEN 8*(n+1)/length     ELSE 1   END),4, 'endcap=flat join=mitre mitre_limit=3.0' ) As the_geom  FROM   (SELECT    ST_LineMerge(geom) AS the_geom,   ST_Length(geom) As length   FROM line   ) AS t  CROSS JOIN generate_series(0,CEIL(length/8)::int) AS n WHERE n*8/length < 1  )  --Erase the smaller geometry from the bigger one SELECT      CASE          WHEN ST_Area(the_geom) <= ST_Area(lead(the_geom) OVER(PARTITION BY id ORDER BY id))         THEN ST_Difference(the_geom, lead(the_geom) OVER(PARTITION BY id ORDER BY id))         ELSE ST_Difference(lead(the_geom) OVER(PARTITION BY id ORDER BY id), the_geom)     END AS new_geom FROM firstblocks;   The code works but loading the data as a new layer in the QGIS-Database Manager throws out the error: There was an error creating the SQL layer ... Somehow I am struggling with the conditional statements, while using a moving window approach. How can I combine them successfully?


This question has been asked a few times before, but even after following tutorials such as   and following the settings, I've been unable to get rid of fireflies in my render. The current render looks like this:   What additional steps can I take to decrease the amount of fireflies / reduce graininess in my renders? I've tried clamping and all of the other techniques in the tutorial but it doesn't seem to help, or at best, has a minimal effect.  Here's the model itself. It's pretty simple, no textures (just shaders).   For reference, the blend file is here:


adobe-flashplugin provides out of date Flash

Not a duplicate as per the answer!  This is my first posting here and I'm still a novice user of Ubuntu. I use Ubuntu 17.10 and Firefox 59.0.2 (64 bits). I've already installed the flash plug-in as I read , but I still can't load a website using flash (Adobe Connect). I've got the same problem like . Now, instead of that screen, I see a white screen. Then I tried to install the plug-in for freshplayer-pepperflash with the terminal:  sudo apt install browser-plugin-freshplayer-pepperflash   but the package couldn't be found. Thanks in advanced for your help.  Screenshot before installing flash plug-in:   Screenshot after installing flash plug-in:


What is the difference between electric potential and electric potential energy?

I am really confused between electric potential and electric potential energy. Please help me in understanding the two terms and also show the differences between them.


The natural map $\text{Spec}A_f\to \text{Spec}A$ is a homeomorphism onto $D(f)$

Let $A$ be a commutative ring with $1$ and $f\in A$ a non-nilpotent element. Then the set $\text{Spec}A_f$ has a natural one-to-one correspondence with the subset $D(f)\subset \text{Spec}A$ consisting of all $\mathfrak{p}\in \text{Spec}A$ with $f\notin \mathfrak{p}$. So $D(f)$ is an open subset of $\text{Spec}A$. Is it true that the natural map $\text{Spec}A_f\to \text{Spec}A$ is a homeomorphism onto $D(f)$? (I merely know that this map is a continuous injection onto $D(f)$.)


Let $a,b,c,d$ be real numbers such that $a^2+b^2+c^2+d^2=1$. Prove that $$(1-a)(1-b)(1-c)(1-d)\geq abcd.$$  I thought about substituting $a=\sqrt{w},b=\sqrt{x}$, etc. (assuming first that $a,b,c,d$ are positive), and then looking at the convexity of the function $f(r)=(1-\sqrt{r})/\sqrt{r}$ and applying some Jensen-type inequality. But such an inequality applies to the sum of functions, not the product.


I want my touchpad to be disabled when I use my mouse. How can I do that? touchpad-indicator has stopped working on 11.10. It used to work on 11.04. Gnome3 is not a solution as I don't like it and find it buggy.


Proof that poles on real axis count as "half" a residue when evaluating real integrals

There is a small formula for finding definite integral by complex analysis methods : If $f(x)$ contains cosine and sine functions along with polynomial functions then $f(x)$ can be treated as  a real or imaginary part of $f(z)$. Then find the singular points of $f(z)$ and check which point lies in the upper half plane. CASE(a): If the singular point does not lie on real axis in this case we apply Cauchy residue theorem and may use Jordan's lemma and everything is clear to me. CASE(b): If the singular points lie on real axis, then there are two methods:  Method 1: Use the Cauchy residue theorem and take a semicircular contour which leaves the points of singularity on real axis.  Method 2 (short one): $\int_{-\infty}^\infty f(z)dz$ = $\pi i$ [$\sum$ residue at poles within C], if Jordan's lemma applied.   Now my question is what is proof for this short method? I thought of many things for why there is a factor of $\pi i$ in place of $2\pi i$ but they don't look right.


What could cause only one radiator to not become warm?

I have gas powered hot water heat in a home I purchased. When I tested it this morning I got a lot of whistling and other noises that subsided for the most part. After the heat had run for 20-30 minutes, I checked it radiator in the house. All the radiators were at least warm, with the exception of one of the radiators upstairs.  What could cause this single radiator to not get warm at all? I noticed slight temperature variances between the other radiators, but this one seemed to not be warm at all. I assume it should get warm if the hot water is flowing through it, and I also assume the hot water must be flowing through it to complete the circuit. So, what gives?


In ES6, how the "Tail Calls" avoid the stack overflow?

In ES6 new features, I cannot understand the "Tail Calls", Calls in tail-position are guaranteed to not grow the stack unboundedly. Makes recursive algorithms safe in the face of unbounded inputs.  function factorial(n, acc = 1) {     'use strict';     if (n <= 1) return acc;     return factorial(n - 1, n * acc); }  // Stack overflow in most implementations today, // but safe on arbitrary inputs in ES6 factorial(100000)   I searched but I still cannot understand clearly.   Can anyone explain to me why the old javascript(ES5) will have problems with recursive algorithm? How the "Tail Calls" avoid the problem?


I am considering a purchase where UbuntuStudio is pre-installed on a machine.  But, before I purchase the laptop, I am curious if packages such as Eclipse or Netbeans install on UbuntuStudio the same way that Eclipse would install on Ubuntu 20.04.  I realize that most people use UbuntuStudio because they are talented artists.  But, I have one young user that is artistic and another potential user that is more of a developer.  Could anyone help me out with this question before I mistakenly waste a thousand dollars?  (Thanks!)


Are the following sentences correct?  It's high time the government took steps to eradicate terrorism. It's high time to take steps to eradicate terrorism.  I am asking this question because I have learned that the verb should be in the past form if we use "high time". Thanks


Filezilla or WinSCP alternative for Ubuntu

On Windows I'm using FileZilla to upload/download files on my WordPress website, via sftp, while using ssh key.   Now Linux is my primary operating system. For the last month FileZilla client was working fine on Ubuntu 16.04, but now it crashes whenever I start it. I search on internet and found that it is happening with a lot of users. Unfortunately the FileZilla support just have one answer if we ask them:     Ubuntu 16.04 is old OS, use 17.10 or Debian latest version.   I don't want to use 17.10. So I am looking for FileZilla client alternative for Linux, which I can use as sftp client with ssh key.   I found gFTP (which is an old program and I'm not sure how much secure is it?), I also found that I can use Ubuntu file manager to connect to my server. Is that a good idea to connect to server while using Nautilus or Caja?   Actually I don't want to put my username / password in dialogue box which appear when I click File > Connect to server, instead I want to use my .ppk key. How I can add that in Nautilus or Caja?


How to determine the following maximum value of the expression

Find the maximum and minimum values of the expression: $$\frac x{x^2+1} + \frac y{y^2+1} + \frac z{z^2+1}$$where $x,y,z$ are real numbers satisfying the condition $x+y+z=1$. And what is the minimum? I thought the maximum value occurs when x, y and z are real positive, since if a solution is negative, there would be lesser than a positive symmetric. So, it's correct to use AM >= GM dividing by x, y and z all fractions?


Print data between two lines (only if "range end" exists) from a text file

I need to parse a file, and I'm looking to print a segment of data between two specific lines. From a "range start" to "range end" but only if the "range end" is present.  If the source file is:  [This is the start] of some data  this is information this is more information This is does not contain the ending required  [This is the start] of some other data this is info I want this is info I want [This is the ending I was looking for]   It should print:  [This is the start] of some other data this is info I want this is info I want [This is the ending I was looking for]   Using grep I've been able to find the data I need and print upwards, but only by a fix number of lines.   Given that the number of lines of data is not constant, is there a way I can use grep or sed, to work up from the end line to find the next occurrence of a given string and capture the specific range I want?   The "range start" of the data segment should be printed along with any data between the "range start" and "range end" point, and the "range end" match is what determines if the whole range of lines should be printed at all. If a range (data segment) does not have the specified end, it should not be printed. If multiple segments have an end point, then all segments containing an end should be printed. No case exists where the input file will have an end without a start, or multiple ends to a single start.   does not solve my problem, as it starts printing on the first line matched and keeps printing until the the first end segment is found. I need to print only the segments that contain the specified end statement.


What is the benefit to the "seen x minutes ago" on User Profile page?

I reword my sentence as follows. Mainly based on      saying indirectly more and less that it is useful only for creepy stalkers. I totally disagree with that comment. And here I asked you:     what is the benefit to the "seen x minutes ago" on User Profile page?   In other words, what led him to conclude that "seen x minutes ago" in grid layout (as my proposal) will be useful only for creepy stalkers but "seen x minutes ago" on the current user profile does not? It really does not make sense!


The flat FRW metric is given by:  $$ds^2=-c^2dt^2+a(t)^2dr^2$$  If we take $dt=0$ then we get:  $$ds=a(t)\ dr$$  Thus we find that space expands.  If we take $ds=0$ to find the null geodesic followed by a light beam we get:  $$c\ dt=a(t)\ dr$$  Does this imply that cosmological time expands along with space?


I want to use VBScript to catch errors and log them (ie on error "log something") then resume the next line of the script.  For example,   On Error Resume Next 'Do Step 1 'Do Step 2 'Do Step 3   When an error occurs on step 1, I want it to log that error (or perform other custom functions with it) then resume at step 2. Is this possible? and how can I implement it?  EDIT: Can I do something like this?   On Error Resume myErrCatch 'Do step 1 'Do step 2 'Do step 3  myErrCatch: 'log error Resume Next


Can nautilus show the real file transfer progress?

When I copy large files to an external drive, although nautilus's progress popup indicates it's finished, the transfer is not actually completed, I need to open terminal and use sync to make sure it is finished, and for large files, sync will take a long time. Is it possible to let the GUI, e.g. nautilus tell me the actual progress.


how to get the size of data type in python at run time?

Just like we have the sizeof('data_type') function in C, is there any function that returns the number of bits or bytes in python?    The function int.bit_length() eliminates the zeros before first one.


Is there in LaTeX a symbol or a macro for the average integral with a horizontal slash? I know about \strokedint, but I'd prefer the dash to be horizontal.


I spilled tea on my laptop and now my touchpad isn't working

I was sitting in my bed and left my computer to the side, and I accidentally knocked over a cup of tea I was drinking earlier, I'm pretty sure everything on my computer works except the touchpad. The touchpad won't work; it won't move my mouse or click on anything! My computer is an HP Laptop and Windows 10 and is Model 14-cf0006dx.


Regression Proof that the point of averages (x,y) lies on the estimated regression line

How do you show that the point of averages (x,y) lies on the estimated regression line?


I know how i can disable auto logon in windows 7 by using netplwiz, but is there a way ( possibly a keyboard combination pressed during startup ) that will prevent autologon only for this one boot?


If $a,b,c>0$ and $a+b+c=1$, prove that $\sqrt{\frac{ab}{c+ab}}+\sqrt{\frac{bc}{a+bc}}+\sqrt{\frac{ac}{b+ac}} \le \frac{3}{2}$.

I can't see any ways I could use the fact that $a+b+c=1$. I've tried solving the inequality using various AM-GM inequalities, but I just can't make it. I need some help. Thanks.


Why do we say "Eastern Europe" but "East Asia"?

My girlfriend, who is not a native English speaker, asked me this yesterday: why are some geographical regions prefixed with the nouns North, South, East and West, but others are prefixed with the adjectives Northern, Southern, Eastern and Western?  For example, it's far more common (to my British ear at least) to hear people talking about "Eastern Europe" and "Southeast Asia" than the alternatives "East Europe" and "Southeastern Asia."  Why is this the case? I couldn't think of a convincing explanation. Is there a hidden logic that I can't fathom, or is it just one of those wierd idiomatic things?


Display a portion/ branch of the menu tree using wp_nav_menu()

I have a menu defined in WP Admin that looks like this:    I want to be able to display all the child links on the sidebar whenever I am at a parent page. For example, if the user is on my "About Us" page, I want a list of the 4 links highlighted in green to appear on the sidebar.  I looked at the documentation for  and it doesn't appear to have any built-in way to specify a particular node of a given menu to use as the starting point when generating the links.  I created a solution for  which relied on the relationships created by the page parent, but I am looking for one which uses the menu system specifically.  Any help would be appreciated.


Average minimum distance between $N$ points generate i.i.d. uniformly on the shell (sphere) of ball

What is the expected minimum euclidean distance between $N$ points uniformly and independently chosen on the shell(sphere) of 3-D ball of radius $R$?   Note that the expected minimum distance might be difficult to compute, so a good lower bound is also fine.   My approach  I take the approach similar to this   .   Suppose we put $N$ circles of radius $r$ uniformly on the surface of the ball. Therefore we could compute the expected minimum distance by the following expression \begin{align} E[D]=\int_0^\infty P(D>t) dt. \end{align}  So, it remains to compute  $P(D>t)$. Actually, since we are after a lower bound on  $E[D]$ it is enought to give a lower bound on $P(D>t)$.  Let $S_i$ be the event that the pair of circles does not intersect which should be given by \begin{align} P(S_i) =  \frac{ Surf(R)-Surf(r)}{Surf(R)}= 1-\frac{  \pi r^2}{ 4\pi R^2}=1-\frac{ r^2}{ 4 R^2} \end{align}  Now the probability that euclidean minimum distance $D$ between $N$ balls is bigger than $t$ should be similar to  \begin{align} P[ D \ge t] \stackrel{?}{=}  P[ \cap S_i] \end{align} However, I think we somehow need to converte from the geodesic distance to euclidean distance but I am not very sure how to do that?


I don't know if it is necessary for them to eat. But it makes me wonder why there is pudding in Harry Potter and the Chamber of Secrets when Nearly Headless Nick invited Harry to his Deathday Party.  (Feel free to edit and include the chapter)


Issues with trailing slash vs no trailing slash and if I even need to redirect?

my question pertains to the trailing slash and no slash in domains and the correct method for setting this up in Google Webmaster tools. I have read all other threads on this site related to this question and still cannot understand what is correct for my situation - please help.  I recently created a new blog on Blogger and I registered the [http:// no "www" with no "/"] and [http://"www" with no "/"] with the latter () being nominated as my preferred domain.   However, I recently noticed that both URL versions (slash (“/”) and no trailing slash) of my domain address return a HTTP/1.0 200 OK status code, which according to Google (e.g. Search Engine Optimisation Starter Guide) is bad and will cause issues in terms of duplicate content and diluted links /split page rank.   From what I understand the method to rectify this is to create a 301 redirect from one to the other (depending on preference and/or performance).  My preference would be to use the "www" and no trailing slash, purely because I think most people would use this.  By the way, if I enter ["www" with no "/"] version of my domain in a browser bar it does not (at least I don't think it does) auto add the slash however, if I copy and paste the the domain elsewhere, it displays as [http://"www" with a "/"]?? Does this mean that I am NOT using the trailing slash? I am confused.  How do I let Google know that I want the NO trailing slash version of my site recognized as my preferred site? Or have I already done this, by nominating  as the preferred site? Unlike a WordPress site, I do not have access to a htaccess file. Or do I register the [http://"www" with a "/"] version in Google Webmaster tools and nominate my existing [http://"www" with no "/"] a second time as the preferred domain?  There is a redirect option in Blogger, but I think this is for pages and posts only…. I am not sure.  Otherwise how do I use the rel=canonical tag in my template to achieve this?  OR Do I need to nothing?  Apologies for all the information, I am fairly new to this and need help to understand.


Where should I ask a question about converting from Java to C++?

I understand that this would not be constructive to those looking for a specific answer. However, I would like to get some feedback about other's experiences going (back in my case) to C++ from Java or some other managed language.   Of course I would like to post it in the appropriate location. Is there such a location within SO/SE?


Evaluating $\sqrt{2 + \sqrt{2 + \sqrt{2 + \sqrt{2 + \cdots }}}}$

I saw this problem in a math competition and I have no idea how to solve it:  $$\sqrt{2 + \sqrt{2 + \sqrt{2 + \sqrt{2 + \cdots }}}}$$


How to use a .iso image as a CD-ROM Repository?

I have all images of Debian, Ubuntu and Ubuntustudio as .iso. How can I use them as repository to install my desired packages with sudo apt-get install package-name?  I easily mount the .iso file with Archive Mounter, but when adding CD-ROM in Software Sources it says Please Insert CD-ROM.   How should I do this without burning them to disk?


How to query osm2pgsql tables for address geocoding?

I am new to geocoding and am trying to build a geo application. I used osm2pgsql to convert my osm data to pgsql gis extended database with the following tables planet_osm_line, planet_osm_polygon, planet_osm_point, planet_osm_ways, ...etc  My first query is to find the distance between 2 randomly given addresses using the above generated tables.   Can someone explain how to query these tables to attain the result ?  The duplicate  which was linked does not have proper information to query tables.   For example, I need to know which column has the name of the streets and which column has the house numbers and which column has names of the city or state and how to query between them to geocode or reverse geocode.


to edit sources.list, on doing from root user,   nano etc/apt/sources.list   nano text editor appears as a new file and on saving, it throws an error:-     etc/apt/sources.list : no such file exist**      How to edit this to update debian? (apt-get update not working).


Given $n$, exist $k$ such that $2^k$ contains $n$ as string.

I have this doubt:     Given $n\in \mathbb{N}$, does exist $k\in \mathbb{N}$ such that $2^k$ contains $n$ as a string in it?   For example, $53$ is in $2^{16}=65\color{red}{53}6$.  I just thought the problem right now so I don't have knowledge if it's even possible to solve it, but sounds a very nice problem. Does someone has an idea?


I want to start a bounty on my own question from the app, but I do not see any button for that!


Completely remove some strange iTunes-purchased songs

I do not understand why my iPhone recently gets some strange songs and I would like to delete them, completely.   To remove them, I first locate these songs in my iTunes library. But when I try to delete them, I get this message before continuing:  These items will be hidden from your iTunes purchases.  What I am looking for is a way to completely remove those songs. So simply hiding them from itune does not suffice. Any idea how to do that?


Creating a tornado plot with PGFPlots and force a break in one of the horizontal bars

To display a sensitivity analysis I want to produce a . In the plot a specific base case value is compared to the values produced after changing parameters in the model. I started from this . With this I was able to get this MWE:   \usepackage{pgf} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{positioning} \usetikzlibrary{calc} \usetikzlibrary{intersections,backgrounds} \usetikzlibrary{decorations.pathmorphing}  \pgfplotsset{     TornadoPlot/.style={% Overall settings         width = 1\textwidth,     line width=1pt,     tick style={line width=0.8pt},     xmin = -50, xmax = 50,     xtick       = {-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50},     xticklabels = {-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50},     xmajorgrids = true,     minor x tick num = 1,     tick align = outside,     xtick pos = left, ytick pos = left,     xbar, bar shift=0pt,     height = 7cm,     enlarge y limits = 0.1, ytick = {0,1,2,3,4,5,6},     nodes near coords={         \pgfkeys{/pgf/fpu=true}%         \pgfmathparse{\pgfplotspointmeta}%         \pgfmathprintnumber{\pgfmathresult}     },     nodes near coords align = {horizontal},     before end axis/.code={         \draw ({rel axis cs:0,0}-|{axis cs:0,0}) -- ({rel axis cs:0,1}-|{axis    cs:0,0});     }              } }  \begin{document} \begin{tikzpicture}     \begin{axis}[TornadoPlot, legend style={at={(0.975,0.25)}}]             \addplot[fill=green!40] coordinates{(-3.5,0) (-16,1) (-17.5,2) (-19,3) (-34,4) (-27,5) (-22,6)};             \addplot[fill=red!40] coordinates{(4,0) (19,1) (12.5,2) (28.5,3) (34,4) (82,5) (38,6)};             \legend{upside, downside}      \end{axis} \end{tikzpicture} \end{document}   However, one of the bars (82, 5) has a positive x value that is outside the range of the domain of the plot. Can I restrict the length of that bar and force a break, while still displaying the original value of x? I have seen  for vertical bar-charts, but so far I have not been able to reproduce this for my tornado plot.


List = 1 2 3 4 5 for i in $LIST do sum=`expr $l_$i + $b` done   here l_1, l_2, l_3, l_4 and l_5 are variables having some values. when I am trying to access those values within the for loop using loop variable i, the value of i is getting substituted in the expression i.e the statement (1 + $b) is getting executed instead of ($l_1 + $b). I have tried various combinations of $ symbol and also used paranthesis but nothing seems to be working. Please help!!


How to reset evolution settings to defaults?

I have not used Evolution for long time now and I would like to reset all the settings and start from scratch. How would I be able to do this?


I noticed that my MacBook Pro 5,5 middle 2009 is very slow so i thought i had some malicious software in it but today i went to check something about the hardware in the computer under "About this Mac" and i noticed that i only had 2gb RAM which is wrong because i have 2 RAM memories of 2GB each. So i opened the laptop and started trying some stuff. I removed one of them and the computer didn't even start i just got a beeping sound. But when changed the memory to the other RAM Slot the computer started with 2GB RAM as always and in conclusion both RAM memories are fine. It seems that one of the memory slots is fried. Only way i found to check if one of the slots is broken was to do a memtest so i ran the command memtest all but i got no errors and the system didn't freeze. The question is: how could i see if the RAM Slot is broken besides doing this memtest?  Additional info: in december i put the laptop to charge at work, after an hour or two i noticed that the laptop was so hot that i almost couldn't even grab it, i could fry eggs on it. But nothing else happended it was working as usual. Maybe that's the reason why this is happening. So once again, how could i check if the memory slot is broken and in case it is how could i fix it?


Show Every Data from Mysql Database except the last one

$query = "SELECT id,subject,date,notice from sam_notice ORDER BY id DESC LIMIT 1";$result = $conn->query($query);   This query pulls the last one only and i can view in  section 1  $query2 = "SELECT id,subject,date,notice from sam_notice ORDER BY id DESC";$result2 = $conn->query($query2);   This query pulls all data to view in  section 2  What is the change i need in query2  so that it can pull all data except the last one?


Cross-browser window resize event - JavaScript / jQuery

What is the correct (modern) method for tapping into the window resize event that works in Firefox, , and Internet Explorer?  And can you turn both scrollbars on/off?


Help with installing Ubuntu 16.04.5 (black screen)

I have HDD and flash drive and i want install ubuntu from flash When im boot from flash,only black screen (iso from getmyos and ubuntu) Flash:FAT32 CPU:amd64 On VirtualBox it work On wibu 20.04 on other HDD work too Now on this HDD Windows Vista and i want install ubuntu or kali Help please


LINQ-to-SQL CompiledQuery.Compile() with Update, Delete, Insert?

All,  So I've got all my select queries in LINQ-to-SQL converted to using CompiledQueries to speed things up.  Works great so far for select statements, but I haven't been able to figure out how to pre-compile insert, update, or delete statements.  Granted, when you're inserting, deleting or updating in LINQ-to-SQL, you have to use the object model.  But obviously somewhere along the way it generates a query, which would be nice to pre-compile and store in a static member.  Is this possible?  What is LINQ performance like for updates, deletes and inserts when its not pre-compiled?  I could see it being a lot faster than the selects, because what they do underneath is a lot simpler and less "dynamic"...


I use xterm as my default terminal emulator (mainly because I also use OSX and BSD, so having a cross-platform terminal emulator comes in handy). I have added an xterm icon to my Unity launcher, but it does not let me open multiple xterm windows, i.e. once one window is open, right-clicking on the icon again will not show the option of opening a new window. I know that I can open new windows from the command line, but it would be nice to be able to do so from the launcher, same as I would if I were using gnome-terminal (or any other application for that matter).  Is there a way to add the 'new window' option to the launcher for xterm?


Are canonical link functions and link functions the same thing?

Are Canonical link functions and the link functions the same thing?   If not, can anyone tell the difference between them?   I know a link function is a function that links a linear predictor to the response variable.  Then isn't that a canonical link function too? I'm so confused, could anyone help?  Also if we're taking the distribution of the response variable, say $Y$ as a $lognormal$ distribution, i.e $Y \sim LogN(\mu,{\sigma}^2)$, then what should be the natural link function to be applied?   What I did was, first transform the distribution into $Normal$ distribution and hence use the link function $g(\mu) =\mu$, but in the solution it's given as $log(\mu)$, how is that?   Can anyone help?


How to add a location to "Places" instead of "Bookmarks" in Nautilus/Ubuntu's File Manager?

I want to add a custom bookmark to Nautilus's/Ubuntu's File Manager's sidebar, right under:  Places  As opposed to adding it right under  Bookmarks


If $p,q$ are distinct primes and $a$ is not divisible by $p$ or $q$, then $\gcd(a, pq)=1$.   I want to show this using linear combinations, so that a linear combination of $a$, and $py$ will give $1$. So for some $x,y,x',y'$:  $ax+py = 1 = ax'+qy'$, and  $a(x-x')+py-qy'=1-ax'-qy'$.   Not sure where to go from here. Hints appreciated.


Prove that $512^3 + 675^3 + 720^3$ is a composite number

We have to prove that the number    $$N=512^3 + 675^3 + 720^3$$       is composite.     I tried to use the identity $(a^3+b^3+c^3)=(a+b+c)(a^2+b^2+c^2-ab-bc-ca)+3abc$ hoping to take out some common factors from the R.H.S. but it didn't work. I also used $a^3+b^3=(a+b)(a^2-ab+b^2)$ (in all possible combos) and tried to combine with $c^3$ but that too didn't work. I nearly spent about 5 hours struggling with the question but no result :(   Please help!   Thanks in advance.


Can I add an Artificers infusion to my pact blade?

In the Artificer section that talks about Artificer infusions it says "you gain the ability to imbue mundane items with certain magical infusions". So if I was to use an Artificer infusion on a normal weapon (Greatsword in my case) and then can I use the pact blade ability on that weapon, would it keep the infusion because the weapon does turn magical and the infusion says it can be used only on nonmagical items


If $f$ is differntiable at $x_0$, then $f$ is continuous at $x_0$. How does this work?

There's a similar post here. but I haven't got the answer:    I just started learning calculus for physics, so I don't understand well yet. I was watching an MIT OpencourseWare Lecture (link below), and I just couldn't understand the last section of the video where the proof of a theorem was being explained. I did search online for answers but didn't understand their explanations, and it feels like I'm missing something really obvious.  The theorem states: If $f$ is differentiable at $x_0$, then $f$ is continuous. The proof goes like this:  1) $$ \lim_{x\to x_0} f(x)-f(x_0) = 0 $$ 2) $$ \lim_{x\to x_0} \dfrac{f(x)-f(x_0)}{x-x_0}\cdot(x-x_0)=f'(x_0)\cdot0=0 $$  What did I understand is that the first equation is just the definition of continuity: $\lim\limits_{x\to x_0} f(x) = f(x_0)$ rearranged. But I do not understand the second part at all.    Can someone please explain what is happening in the second equation? Also:  1) Where does the $f'(x_0)$ suddenly come from?  2) Why is it being multiplied with $\dfrac{x-x_0}{x-x_0}$?  It does look vaguely familar to the difference quotient: $\lim\limits_{\Delta x\to 0} f'(x_0) = \dfrac{f(x_0+\Delta x) - f(x_0)}{\Delta x}$  I am suspecting that it has something to do with $\Delta x$ being implied somewhere.  Here are the links:  (starts at 46:10)


difference between "++value" in this two example

#include<iostream> #define LOG(x) std::cout<<x<<std::endl void increment(int value) {     ++value;      } int main() {     int a = 6;     increment(a);     LOG(a);     std::cin.get(); }  I press F11 and debug into the function of "increment".The parameter of function equal to 6.But why the "value++"doesn't work .I know it is called "pass by value",but I think local value should change in the function of body. #include<iostream>     #define LOG(x) std::cout<<x<<std::endl     void increment(int& value)     {         ++value;              }     int main()     {         int a = 6;         increment(a);         LOG(a);         std::cin.get();     }  here I pass by reference and the value plus one. Is that the reason the compiler can not get the address of "++value",so it will be discarded,sorry for the fist submit.


Congruence class $[a]$ modulo $m$, $\gcd(x, m) = \gcd(a, m)$

I'm currently stumped on this question:  Let $a$ and $m$ be integers such that $m\ge1$. Consider the congruence class of $a$, i.e., $[a]$ modulo $m$. Prove that: For all $x\in[a]$, $\gcd(x,m)=\gcd(a,m)$.   From this, I know that the congruence class of $[a]$ modulo $m$ is the set of integers  $[a]={x\in Z|x\equiv a\pmod m}$}. And by the Linear Congruence Theorem, $x\equiv a\pmod m$ if and only if $\gcd(x,m)|a$.  I'm not sure where I can go from knowing this. Any ideas?


If one particle is dependent on the other how can an action on one particle affect the state of another if when you measure a particle, the result you see is based off of something that technically hasn't happened yet?


Closure of an open ball is a subset of the closed ball

I am trying to show this is statement holds for all metrics:  Any help would be awesome


Guys I'm working on android , and i have a static variable , lets say "var" , if it's null then if statement is executed or else is executed , the thing is , even after i "var" is not null , if i restart tab it works as expected , someone enlighten me .  **protected static String ipath="" , ipath1;**    protected OnClickListener selimg = new OnClickListener() // for first image {      @Override     public void onClick(View vw)      {         // TODO Auto-generated method stub         Intent i = new Intent(                 Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);                  startActivityForResult(i, RESULT_LOAD_IMAGE);      }    };  protected void onActivityResult(int requestCode, int resultCode, Intent data) {     super.onActivityResult(requestCode, resultCode, data);      if (requestCode == RESULT_LOAD_IMAGE && resultCode == RESULT_OK && null != data) {         Uri selectedImage = data.getData();         String[] filePathColumn = { MediaStore.Images.Media.DATA };          Cursor cursor = getContentResolver().query(selectedImage,                 filePathColumn, null, null, null);         cursor.moveToFirst();          int columnIndex = cursor.getColumnIndex(filePathColumn[0]);         String picturePath = cursor.getString(columnIndex);         cursor.close();         ImageView imageView = (ImageView) findViewById(R.id.imageView1);         ImageView imageView1 = (ImageView) findViewById(R.id.imageView2);         **if(ipath == "")         {         ipath=picturePath;          imageView.setImageBitmap(BitmapFactory.decodeFile(picturePath));         }         else         {             ipath1=picturePath;             imageView1.setImageBitmap(BitmapFactory.decodeFile(picturePath));          }**      } }


I am a C++ newbie and I am working on a program that simulates a phonebook. Now, for the insert operation, function is defined as follows:  void PhoneBook::insert(const string& name, const string& number)   But it still works and inserts the contact as well if I remove the reference symbols. So, I am a little confused here, why do I need them?  void PhoneBook::insert(const string name, const string number)


How to apply jpeg image rotation not with Exif header mention of this rotation, but with recomputing the data on Windows 10?

Is this option available somewhere? I have a lot of scanned data that has reorientation from landscape to portrait in Exif files, but not in jpeg data itself. And I can't use some file uploaders like Froala due to this issue, files are not correctly processed.   Link to froala issues:     So any ideas how to explicitly rotate the jpeg image data with some tools, anb better allowing the batch mode?


I tried using Stirling's approximation and d'Alambert's ratio test but can't get the limit. Could someone show how to evaluate this limit?


I currently got the intuos art wacom tablet so still learning how to use it. I'm currently in illustrator trying to draw out a map and the brush tool is doing something weird and I cannot figure out why. You can see in my image that where there are curves the black slightly spills over and is filling in half the curve with black. Brush setting is set up as a new calligraphic brush and the size is set to pressure, 3pt-3pt.


Can Lucky be used on an attack roll if the roll is a 'Nat 1'?

Rolling a 1 or 20, PHB pg 194      [...] If the d20 roll for an attack is a 1, the attack misses regardless of any modifiers or the target's AC.        Lucky Feat, PHB pg 167      [...]You can choose to spend one of your luck points after you roll the die, but before the outcome is determined.   Rolling a 1 on an attack roll (Nat 1) is often called being an auto-fail and with a good reason. Is it intended for these rolls to be instant failure/success? Because as soon as you see that 1 on the die you know: you have failed and there is a limited number of ways to change that. The question is: "Is Lucky one of them?".  I can see a DM calling "You have failed so hard that even your inexplicable luck can't get you out of this one", and it is usually fun for the players when something so unlucky happens to someone else. At least in my experience. My question is if it was meant to be like that as seeing that 1 alone can be a confirmation for failure. Are features like Lucky(dice manipulation features) worded that way to prevent these manipulations?


Converting a scientific notation number to a normal number in PHP

I've tried code from other similar questions to mine, but they don't give me the correct output. I have this float number in scientific notation: 1.79555554E+10 The expected output should be: 17955555400 I have tried the following: sprintf('%.0f',floatval(1.79555554E+10)) and i'm getting this output 17955555376 I'm close but not quite there..how do I write my code so that the output would be 17955555400?


Is there any software or hardware which lets you stop, slow down, speed up or even reverse time?

Obviously I'm talking about time in terms of the PC clock rather than real time.  We were testing an application we've developed at work by setting the clock forward and back to simulate different scenarios and I started thinking how useful it would be if you could adjust the rate(?) of the system clock with finer control. So you could make a minute pass in a second or a day pass in 30 seconds and watch how the program you're developing copes with changes in date and time.  Is there any such software available?   I'd be interested to hear if anyone knows of any software or hardware which can let you do some or all of the above.


My background plane disappear when I use game engine

This is my blender project before game engine   This is the blender engine result as you can se the plane disappear    this only happens when I use the game engine I can render without proble ms  How I can fix that?


How do you defeat royal ripeness in Final Fantasy XIII-2?

He's so hard! He's invincible! I just need advice on how to beat the hell outta him! Please I've literally tried for months and he won't die! Advice needed make it a simple answer! 😩sigh


How much space to allocate to the swap partition?

I am currently installing Ubuntu on a new dedicated server with 8GB RAM. How much space should I allocate to the swap partition?   The server will be used to handle 50,000 visitors monthly. (Not sure if this information is helpful or not)


how to list all the terminal installed programs?

Let's say I’ve installed few things from the terminal and I want to list them so I can remove the installations. how can it be done?  thank you!


Unable to fetch data from the Stack Overflow API (too many requests)

I am trying to fetch API data from:       But I am getting the error:     {error_id: 502, error_message: "too many requests from this IP, more   requests available in 24527 seconds", error_name:   "throttle_violation"}   I saw this answer:     But, I'm not able to understand how to set backoff to 10. Do we have to edit it?  Is there some way to resolve this issue?


Why does a definition of multiplication in Presburger Arithmetic result in an undecidable theory?

Presburger  Arithmetic is a decidable theory but if multiplication is added to it would that theory remain decidable?  UPDATE: I began to write out the axioms that would distinguish Presburger Arithmetic from Peano Arithmetic and realized that adding the Peano axioms which give semantics for multiplication (E.g., commutativity of multiplication, the distributive law -- essentially, all of the peano axioms which include the multiplication symbol -- etc) to Presburger Arithmetic result in Peano Arithmetic. And the decidability of Peano Arithmetic is already widely known due to Gödel. So I've decided to change my question: why does a definition of multiplication in Presburger Arithmetic result in an undecidable theory? In other words, why would the addition of the multiplication symbol and axioms for multiplication result in an undecidable theory?


how to get or reflect the name of the bash function which is called?

i did not yet found a solution to this. Anyone a hint?  i sometimes write bash functions in my shell scripts and i love to have my scripts being verbose, not just for debugging. so sometimes i would like to display the "name" of a called bash function as a "variable" in my scripts.  what i did sometimes is setting just a regular variable containing the function name. like this:  test () {     funcName=test     echo "function running..."     echo "\$0 is : $0"     echo "function name is : $funcName" }   but that is kinda stupid.   Is there something better?


My Blender started acting wierd after I bought a brand new graphics card, because the old one fried. The geometry in viewport is all glitched, but what is more wierd when I look at it through camera or render it, everything is fine. Here are examples, in the first picture I have enabled backface culling and in the second one I deleted everything, and created brand new cube also I have disabled backface culling. For some reason backface culling reduces the flickering but it is still present.      The graphics card is Radeon RX 580 with 8GB of memory if it helps in any way.  I have tried reinstalling blender, I made sure that my graphic card's drivers are up to date. I tried every method from Window Draw Method in user settings.The card's fine, I don't see any glitches anywhere else just in blender viewport. I would appriciate any suggestions cause I looked through various forums and couldn't find anyone with similiar problem. Thanks in advance.


Why does 4.9E-324/2.0 returns 0.0 in java

I am writing a java program. When I do 4.9E-324/2, it returns 0.0. Using BigDecimal returns the correct value. Am I missing something?  double x = 4.9E-324/2.0;  System.out.println(x); //result is zero System.out.println(BigDecimal.valueOf(4.9E-324).divide(BigDecimal.valueOf(2.0)).toPlainString()); //result is a non-zero value


Unable to import Encryption Key in Marketing Cloud

Tried to generate SSH Key and PFX files to be imported into Key Management in Marketing Cloud.  It gives errors each time.  SSH Key Generation:  openssl genrsa -des3 -out private.pem 2048 openssl rsa -in private.pem -outform PEM -pubout -out public.pem   Error when uploading private key into Key Management:      File is not encrypted. No passphrase required.   Error when uploading private key into Key Management:         Object reference not set to an instance of an object.   PFX FIle Generation:  openssl req -x509 -days 365 -newkey rsa:2048 -keyout my-key.pem -out my-cert.pem openssl pkcs12 -export -in my-cert.pem -inkey -my-key.pem -out accountmgmt.pfx   Error when uploading PFX file into Key Management:      The key file does not contain any valid public encryption keys.   I am not sure which format would it support.


Application icon appearing in the corner of window

I was trying to use Elementary interface in my Ubuntu. I also installed elementary-tweaks. I removed everything but I don't know if happened after removed.  Here goes what is happening, I didn't explain well.


In Game of Thrones S08E03, "The Long Night", Daenerys's dragon Drogon blasts fire at Jon Snow to burn the wights surrounding him and he is unscathed, being half Targaryen.  But later the White Walker dragon Viserion tries to kill him with blue fire and he hides, as if he could be burnt. Is he just scared?


Is there, or will there be a Windows 8 live tile for stack overflow?  That might show notifications and reputation etc?


Invalid filename extension in apt sources.list

N: Ignoring file 'yandex-browser.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'yandex-browser.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Type 'andex.ru/yandex-browser/deb' is not known on line 1 in source list /etc/apt/sources.list.d/yandex-browser.list E: The list of sources could not be read.   How can I fix this?


Beamer with Warsaw Theme: Two column navigation

I am using Beamer with the Warsaw theme to make a presentation.  I quite like having a mini-outline of the TOC at the start of each slide.  However, I have found that it tends to take up quite a bit of vertical space.  Hence, I am wondering if it is possible for the per-slide TOC (\sections and \subsections) to be split over two columns so:  A B C D   to  A B  or  A C C D      B D   I am aware of the compress option which forces list of sections and subsections to be on a single line but this is a bit too extreme.  I have also seen a couple of questions relating to splitting the global table of contents over two columns -- however I am interested in the mini-TOC which appears at the start of every frame (with the Warsaw theme at least).


Ensure a single instance of an application in Linux

I'm working on a GUI application in WxPython, and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail quickly. Under Win32, I can simply make a named mutex and check that at startup. Unfortunately, I don't know of any facilities in Linux that can do this.   I'm looking for something that will automatically be released should the application crash unexpectedly. I don't want to have to burden my users with having to manually delete lock files because I crashed.


Which is the right preposition when referring to OS? "In" or "on"?

I can see two expressions about Operating System: "on Linux" and "in Linux". E.g.:      The application can run on Linux.     The application can run in Linux.    Which one is right? Or both are right?


Non Linear regression to obtain diminishing marginal effect / elasticity

I am working with some real estate data on housing units. For a given market, I have data on occupied units, rents, and control variables such as population, demographics, income levels etc. I'd like to obtain the diminishing marginal effect and the elasticity estimate. i.e the point at which rents have a diminishing effect on occupied units. I attempted to do this using ols - log-log regression, I need non-linear model to fit the data. import statsmodels.formula.api as sm  model1 = sm.ols(formula = 'np.log(Occupied_units) ~ np.log(Rent) + np.log(Income) + np.log(unemployment)', data=df).fit()  My question is, what non-linear models can I use to estimate this diminishing effect? and how do I interpret the results? i.e the point at which the effect starts to diminish.


phpinfo still shows old PHP version after installing new version from source

I downloaded PHP 7.3.18 from . Then I configured it, maked it and installed it from source. If I execute php -v then I get  PHP 7.3.18 (cli) (built: Jun 17 2020 12:55:46) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.18, Copyright (c) 1998-2018 Zend Technologies  but phpinfo shows 7.2.5 What am I missing?


Instagram profile image problems - noise suggestions?

So I am trying to upload this logo -   Have tried from 110x110 72dpi all the way through to 12000x12000 150dpi jpeg and png. All look awful!  After doing a bit of research think it may be because of the red, I have already tried just adding some noise but it has completely changed the image when I upload to instagram. I feel like that is somewhat a good sign as it definitely makes a difference but I'm look for suggestions about the kind of noise I should be using or what settings when I apply the filter.


How to create a custom home page template?

I've built a few drupal sites, and always end up creating a content type for Home Page so that I can have a custom template for my home page content, however it seems excessive to have a whole content type just for this. Is there a better way to have a custom home page template?   Wordpress has the front-page template, is there something like that for Drupal?


What are the available transportation modes from Paris (Opera) to CDG?

I have two heavy bags, so I am looking for good suggestions \ options to go  from the Hotel Westminster (perched between Opera \ Pyramides) to CDG for a 10AM Monday morning international flight.  Update: I should have noted there are two passengers. Tradeoffs to be considered include:   cost  speed  convenience (lines, pickup modality, etc)   Although I have seen at least 3 transportation options, I suspect there may be others and look forward to other good options.


I have 3 selection fields as following:   selection field 1 selection  field 2 selection field 3   The selection field 1 and 2 are filled up through a simple MySql query. What I have to do is when user has selected one or several options from selection field 1 and 2, I need to perform an AJAX request to page2.php and then they will be returned some results. Fortunately this works well.  In page2.php there is a selection field with id select_field. The problem appears when I'm trying to reference this id from page1.php.  How can I resolve this problem?


Can the closure of isolated point set be uncountable

Let $S\subset [0,1]$ be a countable set, $\bar{S}$ is the closure of $S$. Can $\bar{S}$ be uncountable? I think it can not be, but I can't find a proof.  Edit: I just realized that my previous question is trivial. But what I really mean is that suppose $S$ is countable and with isolated points can $\bar{S}$ be uncountable?


Close votes outside Close Vote queue should count towards Reviewer/Steward badge?

I'd like to let something out of my chest that's been annoying me since I got access to the . Maybe someone can shed a light on the topic.  I'm an enthusiastic fan of the . There, sometimes, the Right Thing To Do (TM) is to just vote to close the question. It's either an outright request for product or about fixing a device. Plain and simple.   However, if I vote to close it, that vote won't count towards my Reviewer/Steward badges for Close Vote review queue. That really annoys me. The result is that I would either click Skip or No Action Needed, wait for someone to vote to close the question and then cast my close vote by visiting the Close Vote review queue.  That's really annoying because I feel cheated. I performed a perfectly valid Close Vote review (even though it's outside the queue), so I think it should count towards those badges. Moreover, it forces me not to do the right thing on the First Post queue.  There's been some arguments about the issue. Below are a few links I gathered from a few meta stacks:        Some folks argue that voting to close outside the queue should not count towards the badge because the symmetrical review, deciding not to close a post, wouldn't count outside the queue either. That's just silly! There's no such symmetry. If I vote to close a question outside the queue, well, I just did a close vote review, exactly like I would have done in the queue (for that particular question, that is). For that reason, I think it should count towards my badge. It's pointless to compare with the Leave Open decision on the First Post queue.  As a result of this reasoning, I think the kind folks at SE.EE should consider counting the votes to close outside the Close Votes review queue towards the Close Votes Reviewer and Steward badge.  Do you agree with me?


Clicking on the comment edit button causes multiple inputs to be shown

See below gif, as it shows the issue clearly:    When clicking on the edit button, it doesn't actually get rid of the edit link, and clicking it multiple times causes undesired behavior. (This can simply happen if a user double clicks on the edit button by accident.)


What happened to Luke's hand in The Last Jedi?

At the end of Star Wars The Last Jedi, Luke       became a Force Ghost and vanish lefting only his clothes.   But what happens with his bionic hand?      It dissapear with him? It was counted as part of Luke's organic body?


Where can I see the list of my saved drafts?

I am not able to find the "my drafts" section on a Stack Exchange site.  Where is it?


why we must to follow 50ohm and 100ohm impedance in PCB boards? is it a standard value for all device input and output impedance?

In PCB / PWB boards we are following 50ohm impedance for single ended lines and 100ohm impedance for Differential lines? is it a standard value for all device input and output impedance? Each and every IC internal architecture done by millions of transistors so this impedance values determined by the IC pins connected to which pin of the transistors (BJT/FET)? Could you please help me to clarify this? thanks in advance.


How do I show $f_n(x)=n^2 x^n(1-x)$ pointwise converges to $0$ on $[0,1]$?     I first started with the case $x=1/2$ to try out. We see that $n^2(1/2)^n(1/2)=n^2/2^{n+1}$ which goes to $0$ as $n$ goes to infinity since $n^2 < 2^{n+1}$.  Now I need to generalize. If I take the derivative of $f_n(x)$ then I get, after simplifying, $$f_n'(x)= n^2x^{n-1}(n-(n+1)x).$$  So, we know $x=0$ and $x=n/(n+1)$ are critical points.  I plotted the graph and I see that as $n$ gets larger, the maximum of the function on $[0,1]$ grows and gets closer to $x=1$.


I know how to convert a list of list to a flat list. For example,   import itertools list_ = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] merged = list(itertools.chain.from_iterable(list_)) print(merged) >> [1, 2, 3, 4, 5, 6, 7, 8, 9]    Is it possible other way around? in this case, for a given flat list, is it possible to make a list of list contains three elements? I want to see the output like this  [[1, 2, 3], [4, 5, 6], [7, 8, 9]]     for a given input [1, 2, 3, 4, 5, 6, 7, 8, 9]


MySQL set ID of primary child with constraint

I have two MySQL tables where the primary relationship between the two is one-to-many. I also need a one-to-one relationship in the parent_table with the ID for the primary record from the child_table. You can kind of think of it as like a dad having lots of kids but having one kid that's his favorite ;P. Is it possible to setup a DB constraint such that a parent can have the ID of a child only if that child is a child of the parent?  parent_table (One)   id: Primary Key   primary_child_id: {ID from child table}  child_table (Many)   id: Primary Key   parent_table: {ID from parent table}


Fade in action applicable to all objects (in cycles)

I am trying to make a schematic video about assembling a machine. For a lot of objects (bolts, etc...) I use the same delta location action, so they get assembled in their position. This allows me to use the NLA editor, to make almost all the animations.  The problem is when I try to fade in & fade out objects. Loc, rot & scale works well, because all objects share these properties. But transparency depends on the material.  I've tried to have all materials end with a mix node connected to a transparent shader. So with the 'Fac' slider I can animate the fade. But the result action can't be shared between different objects, as they have different materials.   So, is there any visibility property of object I can animate? This would be great for motion graphics too.  Thanks


I'm having issues with a script i'm writing.  I'm trying to monitor free disk space, and to have an email generated for each filesystem over a certain threshold.  When using this script with 'echo' instead of 'mail', the output looks correct to my terminal.  When i incorporate mail, only the critical warning is sent, and the body of the email includes the other filesystems.  I'm trying to send individual emails for each filesystem.  I'm not looking for an answer, but maybe a certain place to focus on to try and determine what my issue is.     #!/bin/bash     #The following script will check filesystems (local/nfs only)     #and notify via email current user if over certain threshold.      #Thresholds for script to call     CRITICAL=90     ALERT=70      #Gets local/nfs disk info, greps out header/tmp filesystems and awks column 1 and 5     #while read loop is enabled to parse through each line     df -l | grep -vE '(^Filesystem)' | awk '{ print ($5  " " $1)}' | while read output;     do         #updates variables to reads current step         usage=$( echo $output | awk '{print $1}' | cut -d'%' -f1 )         part=$( echo $output | awk '{print $2}' )          #if percentage matches alert or critical, email current user         if [ $usage -ge $CRITICAL ]; then             mail -s "Critical Warning: Filesystem $part is at $usage% of capacity." $USER         elif [ $usage -ge $ALERT ]; then             mail -s "Warning: Filesystem $part is at $usage% of capacity." $USER         fi     done


Can i carry two iphone 6s from hongkong to india?

I m planning to buy 2 iphones 6s in hongkong, one for me and one for my girl friend , but I m not sure If I  will have any problem bringing the iPhone 6s even before it launches in india.


I'm playing minecraft 1.7.2 and I type /gamerule keepinventory true, and it says that there's no keepinventory rule. How do I keep inventory on death? I'm fighting the Ender Dragon and keep dying.


Sort objects in python and group objects that have identical values?

An example problem. The actual problem uses datetimes but this simplifies it for this example unordered_list = [Class(letter='A', value=5),                    Class(letter='B', value=3),                    Class(letter='C', value=2),                    Class(letter='D', value=8),                    Class(letter='E', value=5),                    Class(letter='F', value=8)]  sorted_list = fun(unordered_list)  expected_result = [Class(letter='C', value=2),                    Class(letter='B', value=3),                    (Class(letter='A', value=5), Class(letter='E', value=5)),                    (Class(letter='D', value=8), Class(letter='F', value=8))] # or expected_result = [(Class(letter='C', value=2)),                    (Class(letter='B', value=3)),                    (Class(letter='A', value=5), Class(letter='E', value=5)),                    (Class(letter='D', value=8), Class(letter='F', value=8))]  I don't really mind what format they're in; list, set, tuple I'm not picky. I've had a go at answering the question myself below. However I think there is a faster or more pythonic method. Bit of extra code if you want to run the example problem class Class:     def __init__(self, letter, value):         self.letter = letter         self.value = value      def __str__(self):         return self.letter+'->'+str(self.value)  The python sort method (sorted(unordered_list, key=lambda x: x.value)) does not solve this problem by itself because items of the same value aren't grouped


Accessing polygon geometries from a geodataframe - keep getting a key error

I have two geodataframes. One of about 5000 points (geolocated by me using GoogleV3, and one of 25000 polygons (from a govt-provided shapefile). Every point will be in one (and unless only one) polygon. I would like to identify which polygon the point is in. I am struggling to conceptualize how to do this, particularly as I cannot seem to access the 'geometry' column of the geodataframe that was imported by the shapefile. For example, if I call foo = offices.loc[3,'geometry']  I get a point: the coordinates of the 4th item in the GDF. However, if I call bar = zones.loc[3,'geometry']   I get a KeyError bar = zones.loc[3,'geometry'] Traceback (most recent call last):    File "/opt/anaconda3/envs/Geolocating/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3080, in get_loc     return self._engine.get_loc(casted_key)    File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc    File "pandas/_libs/index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc    File "pandas/_libs/hashtable_class_helper.pxi", line 1625, in pandas._libs.hashtable.Int64HashTable.get_item    File "pandas/_libs/hashtable_class_helper.pxi", line 1632, in pandas._libs.hashtable.Int64HashTable.get_item  KeyError: 3   The above exception was the direct cause of the following exception:  Traceback (most recent call last):    File "<ipython-input-17-8f543fae5979>", line 1, in <module>     bar = zones.loc[3,'geometry']    File "/opt/anaconda3/envs/Geolocating/lib/python3.8/site-packages/pandas/core/indexing.py", line 889, in __getitem__     return self._getitem_tuple(key)    File "/opt/anaconda3/envs/Geolocating/lib/python3.8/site-packages/pandas/core/indexing.py", line 1060, in _getitem_tuple     return self._getitem_lowerdim(tup)    File "/opt/anaconda3/envs/Geolocating/lib/python3.8/site-packages/pandas/core/indexing.py", line 807, in _getitem_lowerdim     section = self._getitem_axis(key, axis=i)    File "/opt/anaconda3/envs/Geolocating/lib/python3.8/site-packages/pandas/core/indexing.py", line 1124, in _getitem_axis     return self._get_label(key, axis=axis)    File "/opt/anaconda3/envs/Geolocating/lib/python3.8/site-packages/pandas/core/indexing.py", line 1073, in _get_label     return self.obj.xs(label, axis=axis)    File "/opt/anaconda3/envs/Geolocating/lib/python3.8/site-packages/pandas/core/generic.py", line 3739, in xs     loc = index.get_loc(key)    File "/opt/anaconda3/envs/Geolocating/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3082, in get_loc     raise KeyError(key) from err  KeyError: 3  I have no idea where to even begin, since I can't access specific rows to check if the point is within the polygon.


The array value changed after calling static method with the array Java

The value of array elements are getting changed while calling a static method with the parameter passing the same array as argument but primitive value does not get changed Is it work differently in the case of while we pass data structure as method argument ? Want to know why array element get changed after the method call with the array .. I was expecting value 0 in the last syso statement instead of 999 public class TestStatic {          public static int square (int x)     {         x = x + 1;         return x * x;            }      public static int[] changeArr(int a[])     {         a[0] = 999;         return a;     }          public static void main(String[] args)     {         int a = 10;          System.out.println((square(a)));         System.out.println(a);          int arr[] = {0,0};         changeArr(arr);         System.out.println(arr[0]);     } }  Actual Output: 121 10 999   I was expecting 121 10 0


How is the expansion of space itself explained in LQG?

To explain the expansion of space I have often heard people saying that space is continuously created. This picture is usually applied to cosmological scales but I`m nevertheless curious if some microscopic description of this process could be found (or probably is already available?).  The first thing which comes into my mind by thinking about this is that in theories like loop quantum gravity, there is an idea that space is quantized. Would space expansion then be explained as the creation of new quanta in loop quantum cosmology? Or are there other different ideas, such as the quanta themselves changing properties? Do people actually working on this already have some interesting results?


Can you book a flight from, say... San Diego to Cancun that has a plane change in L.A. and not board the flight in San Diego but rather in L.A.?  Say you "missed" your San Diego flight and were able to drive to L.A. in time for the flight from L.A. to Cancun, could you just go from there?  Some times flights are a lot cheaper leaving from one city as compared to another.


Mathematical induction for high school maths

Can someone PLEASE help me with this. Thank you The solutions of the equation $z^{100}=1$ are $1, w_1, w_2, w_3, \ldots, w_{99}$. Prove $1\times w_1\times w_2\times ...\times w_{99} = -1$.


Will applications in the software center receive updates of new versions?

Is it possible to provide updates for software in Ubuntu 11.10 software center. For example upcoming versions of vlc, inkscape and many others.


ATmega328p Motor circuit resetting the controller

I've made a circuit to run 5V DC motor via ATmega328p  micro controller GPIO as shown below.whenever there is a connection to 5V DC motor, and if it tries to actuate the motor, micro controller will get reset.If there is no motor connection relay will get actuated properly. power supply circuit is also provided. please let me know how to resolve this.


Brightness changes while "Adaptive Brightness" is disabled in Windows 8.1/10 with Intel HD Graphics

The brightness changes with the colors displayed on the screen on my Lenovo Thinkpads with Intel HD Graphics. Light colors make the screen brighter, dark make it darker. Same behavior in Windows 8.1 and 10.  The "adaptive brightness" feature in Windows is disabled.


Finding a group that spans a vector space of Polynomials

I am having problem finding a group that spans this vector space:  $S={ p(x) \in R_4[x]} \big| p(x)=p(x-1) $  My idea was to substitute: $ a+bx+cx^{2}+dx^{3}+ex^{4}=a+b(x-1)+c(x-1)^{2}+d(x-1)^{3}+e(x-1)^{4}$  But it led me nowhere. what can I do?  Thanks in advance.