How to create a archive template for custom post type

I've created a custom post type using Custom Post Type UI  and Advanced Custom Fields plugins. The name of my custom post type is article.  I want to have a page which lists all the articles in a table format with the links to respective article. To achieve it, I've created a page and applying a custom template to it:  <?php     $args = array('post_type' => 'article');    $article_posts = new WP_Query($args);     if($article_posts->have_posts()) :  ?>
         <?php while($article_posts->have_posts()) : $article_posts->the_post(); ?>
              <?php the_title() // <-- Here I want to have a link ?>	              <?php the_field('published_in'); ?>	              <?php the_field('article_author'); ?>	              <?php the_field('published_date'); ?>
         <?php endwhile; ?>
  <?php         else:  ?>        Oops, there are no posts.  <?php    endif; ?>   Question 1: I don't know how to get link to each article : I mean like the_title() which gives me title of the article is there the_link() which gives me link of that page?   Question 2: Now assuming I got the link, when user clicks that link he'll be taken to that article page with my custom single-article.php but how to display content of that requested article?


Is the center of the universe at absolute rest?

A twelve year old relative of mine asked me: If after there is a center of the universe (maybe the center is the point where the bigbang happened), could it be at absolute rest? Because everything is moving around the center! So in this universe, the center is at absolute rest. But Newton said there should be nothing that is at absolute rest.  I am also confused. What can I reply?


C# Parse string to date in the following format 19 March 2014 10:32:04 CEST

I am trying to convert strings to dates in the format below. I would like to keep the timezone format such that when i retrieve it from the DB it will be parsed to the correct time.  Another example of the string i receive is "19 March 2014 10:32:04 GMT";  `string date = "19 March 2014 10:32:04 CEST";  Console.WriteLine(date);  DateTimeOffset result = DateTime.ParseExact(date, "dd MMMM yyyy HH:mm:ss Z",             CultureInfo.InvariantCulture);' `   This is for a .net API   Thanks  Dan


#include "d3dApp.h" #include <WindowsX.h> #include <sstream>  namespace {     // This is just used to forward Windows messages from a global window     // procedure to our member function window procedure because we cannot     // assign a member function to WNDCLASS::lpfnWndProc.     D3DApp* gd3dApp = 0; }  LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {     // Forward hwnd on because we can get messages (e.g., WM_CREATE)     // before CreateWindow returns, and thus before mhMainWnd is valid.     return gd3dApp->MsgProc(hwnd, msg, wParam, lParam); }   I am curious about this use of namespace in C++. I started reading the documentation on namespace and I saw a lot of examples calling a name for the namespace like "namespace first" but none without anything after the namespace declaration like this one.


I need Integer Solution to this Equation

I need to know how to solve this equation where x and y are both variables Find integer Solutions. $$ \frac{1}{x} + \frac{1}{y} = \frac{1}{2} $$ from what I know I need at least 2 equations to solve for 2 variables. So I need a Hint


Likelihood Ratio Test statistic to test $H_0$ vs $H_1$

Let ${Y_1,...,Y_n}$ be independent random variables and $Y_i$~$N(\beta x_i, 1)$ where $x_1,...,x_n$ are fixed known constants, and $\beta$ is an unknown parameter.  I'm looking to find the p-value or rejection region for  the test  $$H_0: \beta=0 \quad \text{vs} \quad H_1:\beta\ne0$$  The Likelihood Ratio Test statistic $\Lambda$ is  $$e^{-1/2\left(\frac{\sum_{i=1}^n y_i x_i}{\sum_{i=1}^n x_i^2}\right)^2\sum_{i=1}^n x_i^2}$$  After setting $\Lambda < k$ and then solving the inequality  $\sqrt{-2\text{log}(k)}<\sum x_iy_i/\sqrt{\sum_{i=1}^n x_i^2} <-\sqrt{-2\text{log}(k)}$  (Someone told me that my last step is incorrect)


Fourier Transform of a radial function in $L^1(\mathbb{R}^2)$

Let $f \in L^1(\mathbb{R}^2)$ be radial, i.e. there exists $g: [0,\infty) \rightarrow \mathbb{R}$ such that $f(x) = g(|x|)$. Prove that $f$ is also radial. (Note that this result is true for $\mathbb{R}^n$ for a general $n \geq 1$. Here, for $n=2$, you can use the polar coordinates and change of variables.)   So if $f \in L^1(\mathbb{R}^2)$ is radial, I want to show that there exist a function $h: [0,\infty) \rightarrow \mathbb{R}$ so that $\hat{f}(\xi) = h(|\xi|)$. I know that:  $$\hat{f}(\xi) = \int_{\mathbb{R}^2} f(x)e^{-2\pi i \xi \cdot x} dx = \int_{\mathbb{R}^2} g(|x|)e^{-2\pi i \xi \cdot x} dx = \int_{-\infty}^\infty \int_{-\infty}^\infty g(|x|)e^{-2\pi i (\xi_1x_1+\xi_2x_2)} dx_1dx_2$$  I'm not really sure how to procceed from here


You were born in (the) winter: is the article necessary?

You were born in (the) winter.   I am interested in this particular case of using the article since someone's birth is often associated with a particular season of a particular year. Is the article necessary in such expressions? I'd like to have information on this case.


I have two arrays with matching keys and I need to merge the values of both into a new array. I'm beating myself up trying to figure this out. How can I do this?  $options = array(     "0" => true,     "1" => true,     "2" => false,     "3" => true );  $columns = array(     "0" => "first",     "1" => "last",     "2" => "id",     "3" => "group" );  $what_I_need = array(     "first" => true,     "last" => true,     "id" => false,     "group" => true );


Thanks for looking into my post. I am new to the stock investment. According to Benjamin Graham, He suggested investors to purchase a stock 1.5 times the current book value. Current Microsoft book values is 15$ If I multiply by 1.5 then I'll get 22.5$ but the stock is almost 194$ How to decide value of the stock?


Where does the anime leave off in the manga?

I've been wanting to read Soul Eater for awhile, but I've already seen the anime. Supposedly it leaves off somewhere around Chapter 10-12, but I've not been able to find where it clearly leaves off.   Where does the anime stop in the manga?


Differential application between spheres and fixed point problem

Prove that every differential application $f:\mathbb{S}^{n}\rightarrow\mathbb{S}^{n}$ such that $deg(f)\neq(-1)^{n+1}$ admits, at least, one fixed point. Here it is worth mentioning that $deg(f)$ denotes the degree of the application $f$ and $\mathbb{S}^{n}$ is the unit sphere in $\mathbb{R}^{n+1}$. Thank you in advance for any help.


I do not understand the concept of convolution. If possible could you please explain in layman terms so that I can solve this question.   What is the h(t)?


fopen is failing when I try to read in a very moderately sized file in PHP.  A 6 meg file makes it choke, though smaller files around 100k are just fine.  i've read that it is sometimes necessary to recompile PHP with the -D_FILE_OFFSET_BITS=64 flag in order to read files over 20 gigs or something ridiculous, but shouldn't I have no problems with a 6 meg file?  Eventually we'll want to read in files that are around 100 megs, and it would be nice be able to open them and then read through them line by line with fgets as I'm able to do with smaller files.  What are your tricks/solutions for reading and doing operations on very large files in PHP?  Update:  Here's an example of a simple codeblock that fails on my 6 meg file - PHP doesn't seem to throw an error, it just returns false.  Maybe I'm doing something extremely dumb?  $rawfile = "mediumfile.csv";  if($file = fopen($rawfile, "r")){     fclose($file); } else {   echo "fail!"; }   Another update:  Thanks all for your help, it did turn out to be something incredibly dumb - a permissions issue.  My small file inexplicably had read permissions when the larger file didn't.  Doh!


how to capture return status of each command from a Shell script with multiple commands

I'm new to shell scripting and writing a script with multiple rm commands.  the script has to remove files in some directories. I want to capture the exit status for each command and return the exit status if something fails and proceed with the next command. Can someone help me to correct my script.       #!/bin/bash     PATH1=mydir/folder/     PATH2=mydir/newfolder/      HOST= hostname | grep -o "[0-9]*" | head -1    case "$HOST" in    01)echo "Removing files in server 1.."     find $PATH1/logs -maxdepth 1 -mtime +30 -type f \( -name "*.log*" -o -name "*.out*" \) -exec rm -f {} \;     find $PATH1/logs -maxdepth 1 -mtime +30 -type f \( -name "*.log*" -o -name "*.out*" \) -exec rm -f {} \;     RETVAL=$?     ;;    02)echo "Remove logfiles in server 02"    find $PATH2/logs -maxdepth 1 -mtime +30 -type f \( -name "*.log*" -o -   name "*.out*" \) -exec rm -f {} \;    find $PATH2/logs -maxdepth 1 -mtime +30 -type f \( -name "*.log*" -o -name "*.out*" \) -exec rm -f {} \;    RETVAL=$?    ;;    *)    echo "Removal of log files is complete"    esac


"The Hypercube algorithm is so ..." or "Hypercube algorithm is so..."?

I have an algorithm inspired by mathematical concept called hypercube. I use Hypercube algorithm as a name. Now when I write about it, do I need "the" article in front of the name "Hypercube algorithm"? I have similar situation where I call a technique with the name "Most Monomial" where I do not use "the" article because it is a name such as Donald Duck. Is "the" article needed in front of the "Hypercube algorithm" or not?


How long do alien chestbursters gestate inside human hosts?

In the Alien movie, Kane is attacked by an alien facehugger which implants an embryo inside him. The embryo gestates in seemingly a matter of hours to become a chestburster.                                  In the Aliens movie, the marines find the colonists glommed to bulkheads inside the generator. Long dead. Mostly, that is. One colonist is still alive serving as an incubator for the queen's offspring.  The marines kill an infant alien after it bursts from a colonist's chest.                                  According to , after most of the marines are killed, the survivors say a rescue would take another 17 days, the amount of time for a ship to reach them from Earth. Using that, we can assume Newt was alone on colony LV-426 for at least 17 days and perhaps a couple of weeks longer.  Did the alien embyros take weeks to gestate in the second movie? Or was the hapless colonist captured by aliens mere hours before the marines arrived?  How much time do alien chestbursters gestate inside human hosts?  Answers from the movies, canon books, script writers, or other authentic sources are appreciated.


Linear equations given by $Ax = b$ have a solution if and only if $\operatorname{rank}(A|b) = \operatorname{rank}(A)$

Theorem: Given a system of linear equations $Ax = b$ where $A \in M_{m \times n}\left(\mathbb{R}\right)$, $ x \in \mathbb{R}^{n}_\text{col} $, $ b \in \mathbb{R}^{m}_\text{col}$ Deduce that a solution $x$ exists if and only if $\operatorname{rank}\left(A|b\right) = \operatorname{rank}\left(A\right)$ where $A|b$ is the augmented coefficient matrix of this system  I am having trouble proving the above theorem from my Linear Algebra course, I understand that A|b must reduce under elementary row operations to a form which is consistent but I don't understand exactly why the matrix A|b need have the same rank as A for this to happen. Please correct me if I am mistaken


I'd like to have the same indentation within a tcolorbox as I have in the rest of the document.  How can I get it?  Thanks.  MWE:  \documentclass[a4paper]{book}  \usepackage{lipsum} \usepackage[most]{tcolorbox}  \begin{document}  \chapter{Example with \texttt{tcolorbox}} \lipsum[1-8]  \begin{tcolorbox}[breakable,enhanced] \lipsum[9-14] \end{tcolorbox}  \end{document}   The first block of text has the typical indentation, but that in the box doesn't.


Let $x_n \rightarrow x$ and let $p(t)$ be a polynomial. Show that $p(x_n) \rightarrow p(x)$

I want to solve the proof by using mathematical induction. I'm just not exactly sure of how I should start, like how should I do the base case?


I know it's possible to modify an element's style attribute using JavaScript, but is it possible to modify the global CSS rule itself? Take the following example:  $('div.test').css('display', 'none');   That modifies all pre-existing elements matching:

   If this script were executed while a page was half loaded the DOM tree would not be complete and any matching elements not loaded wouldn't have this styling rule applied. Is there a way to modify the actual div.test rule itself using JavaScript?  By the way, I do have my own solution to this and am not asking for any workarounds. I would just like to know if this in particular is possible since I've never seen it done before.


Experiencing tears/glitches in my screen on Ubuntu 16.04 and 17.04

For around 1 week so far I've noticed screen tears and other graphical glitches.  I have only noticed them while browsing (in Chrome and Firefox), either while watching streams in flash or html5 format (Netflix, YouTube, twitch, even gifs) or scrolling through a big screen of text or images.  Here are some examples of the glitches I see:                This is really annoying, since it is constant and is very distracting.  The issue started on Ubuntu 16.04, and I did a fresh reinstall of Ubuntu 17.04 thinking this would solve it, but it didn't.  Currently I am running Ubuntu 17.04 64-bit version on an old Dell Studio 17. This is the gpu info:  lspci | grep VGA 02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV730/M96 [Mobility Radeon HD 4650/5165]   I have tried 4 different kernel versions and the issue persists:    4.6.3   4.10.0   4.11.12   4.12.3     I don't know what to do to fix this, can you guys help me figure this out?


Can Minecraft on the PC be played with an Xbox One controller?

I had figured that Minecraft had native Xbox One controller support, but found that I was wrong (at least as of January 19, 2016).   I've found resources that indicate that Minecraft can be played using the Xbox 360 controller with some help from other programs, but I'm unaware of any programs that claim to work with the Xbox One controller:


Given a battery of unknown chemistry and unknown origin, how to I tell it's a rechargeable alkaline manganese, NiMH or NiCd battery by looking at its electrical or physical properties, eg. maybe they have a different distinct capacity-weight-ratio or significantly different discharge or charge behavior. Taking them apart is not an option. I'm not sure if this might be better on the chemistry SE.


I wanted to list the content of a pwd and display only file starting with dot. I tried ls -a | grep ^\. but I cannot figure out why the output contains also the files which do not start with dot. For example:  Pictures .pip .pki .profile projects Public   I know that I can achieve what I want with ls -ld .* I am just curious about this behaviour of grep which I can't explain.


How to select dynamically generated element in Javascript

I set button which id will be switched by clicking them.  To achieve this, I worked like below code. In my work, clicked id will be generated dynamically.  I would like to know how to select generated element in javascript?  Thanks    document.getElementById("button").addEventListener('click',function(){   this.id="clicked" });  document.getElementById("clicked").addEventListener('click',function(){   this.id="button" }); <button id='button'>button</button>


I have two distribution of one variable and I've used t test to find how much they are significantly different. But I'm not very familiar with this test and don't know what does this values mean? is there any threshold to be sure the two distribution are different?


I've been searching for hours in the game to find a Stronghold and haven't seen one. Apparently lots of mobs and treasures can be found there, but the question is where can we find those?  Can we find them near a ravine or abandoned tunnels?


Put terminal command into graphical icon

I installed SCID, a GUI (chess) application, via downloading the sourcecode from "" I then unpacked that and navigated my terminal to the respective directory. I entered "./configure" and then " sudo make install" I can open that programm entering scid in the terminal. Now I want something, i can click and drag into the bar on the left, that does exactly that.  Kind regards  Markus


Idiom/word for "Doing the wrong thing to achieve a good goal"

How would you describe someone doing something that is for the common good (well-intended), but is very inefficient, and possibly even harmful to what they're trying to achieve?  e.g.   The new mayor is finally serious about climate change, but he wants charge all petrol cars $2000 a month, starting today! To incentivise more women to join our company, the CEO is offering double the men's salary for women who apply for the same role. The IT department so paranoid about company security that every website must first be signed off by the IT manager before entering.   Pretty much situations that make you think "I agree with what you're trying to do, but that's not how you do it! You'll only end up upsetting people, and make them NOT want to support your ideals."  I've looked at: Counterproductive, hindering, Barking up the wrong tree (too focused on being wrong), misguided, off the mark, carry water in a sieve, bikeshedding, etc., but nothing fits.  Thanks in advance!


How to fix iPhone 4S error 29 when flashing even after replaced battery and also the IOS 9.3.6 Signed IPSW not working but should I flash IPSW 9.3.5 ?


Meaning of source numbers in U.S. and International Marriage Records, 1560-1900

There are 3 records in  about the marriage of Luke Lea and Elizabeth Wilson, showing two different birth states for her:   Source number: 1307.136: North Carolina  Source number: 1307.082: North Carolina  Source number: 23917.001: Lousiana   The similarity in the first two source numbers makes me wonder if the two entries derive from the same source (e.g., one family Bible or pedigree).  Is that how source numbers work in that collection?  (In any event, I know that the frequency of a claim has no bearing on its truth.)


C++ execv no known conversion "const char *[6]" and "char *const *"

I am trying to call execv() with some arguments, imagePath and outputPath are std::string so I converted those to C strings, then I am converting integers to C strings as well. The error I'm getting is function not viable: no known conversion from 'const char *[6]' to 'char *const *' for 2nd argument int      execv(const char * __path, char * const * __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;  What is the difference between const char *[] and char *const *? void Utility::ExecCrop() {     // convert numbers to strings     const char* x_char = std::to_string(job.x).c_str();     const char* y_char = std::to_string(job.y).c_str();     const char* w_char = std::to_string(job.w).c_str();     const char* h_char = std::to_string(job.h).c_str();          const char* arguments[] = { imagePath.c_str(), outputPath.c_str(), x_char, y_char, w_char, h_char };      execv(execPath.c_str(), arguments); }


Normal distribution tail probability inequality

I am trying to show that $$P(X>t)\leq \frac{1}{2}e^\frac{-t^2}{2}$$ for $t>0$ where $X$ is a standard normal random variable.  Perhaps this is simple.  I have been starting with  $$ \int_{t}^{\infty} \frac{1}{\sqrt{2\pi}} e^\frac{-x^2}{2}dx \leq \int_{t}^{\infty}\frac{x}{t}\frac{1}{\sqrt{2\pi}}e^\frac{-x^2}{2}dx = \frac{1}{t\sqrt{2\pi}}e^\frac{-t^2}{2}$$  but this is not what I want...I am looking for a much stronger inequality.   Any help in the direction of getting the $1/2$?


How do I make a keyboard shortcut for a command that requires 'sudo'?

I am trying to install Ubuntu on a Laptop that came with Windows. There are many minor problems, as one might expect.  There is one regarding the keyboard backlight: The function keys do not work.  As such, I decided to do a workaround. The commands:  sudo /etc/acpi/asus-keyboard-backlight.sh up   and   sudo /etc/acpi/asus-keyboard-backlight.sh down   do seem to work. As such, I wanted to know how to make a keyboard combination (preferably with Fn+F6 / F7 as it was originially) that will execute the above commands (ideally without asking for the password every time).  I have tried just typing them in the keyboard shortcut section under command, but that did not seem to do anything.  Any ideas?


I'm trying to create a latex table, but I need some features such as:    Is there a latex package that can help me?


Which of the following is more idiomatic?  List out the groups you participate in.  List out the groups you're participating in.


Gimp ,, move objects (drag & drop) from work window to another?

move objects (drag & drop) from work window to another on GIMP?


Camel or Pascal for Method Fields or Parameters Coding Standard

What is best practice for method fields or parameters (Camel or Pascal):  public string DoSomething(string documentName, string firstName) {     return string.Empty;     }  public string DoSomething(string DocumentName, string FirstName) {     return string.Empty;     }


I saw a similar type of question in this forum but let me tell you my data point is far less than the data mentioned in that my data points are very less compared to other posts. I have only 20 data points. I need to do forecasting using that data in R. Can you please suggest some forecasting technique using such a small data? I tried to take 19 observation as training and 1 observation to validate & fitted an auto.arima model but while I'm trying to predict it for 1 time period ahead I'm getting prediction as null.


/dev/sda2: Error - Computer not booting normally

I installed Lutris and rebooted. After that, the computer logs in, boots, and a black screen appears with the message /dev/sda2: clean, xxxxxxx files, xxxxxxx/xxxxxx blocks.


Asus VivoBook x543UB wifi driver propblem

Ubuntu 19.10 installed to the new notebook. Wifi is not working even wifi adapter icon not displayed, only can see the bluetooth. How can I fix this problem. The issue is more complicate since the notebook hasn't Ethernet port. Does anyone handled this issue? Here is output from console:  azamat@vivoBook:~$ sudo lspci -knn | grep Net -A3; 02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]     Subsystem: AzureWave RTL8821CE 802.11ac PCIe Wireless Network Adapter [1a3b:3040] azamat@vivoBook:~$ rfkill list 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no azamat@vivoBook:~$


I've been trying to solve these two problems regarding limits and series, yet I couldn't find a proper solution:   Let $\sum_{n=0}^\infty x_n$ be a real number series, which is convergent. Show that $\mathop{\underline{\lim}}_{n \to \infty} nx_n = 0$. Additionally, knowing that $x_{n+1} < x_n$, find that $\exists \ lim_{n\rightarrow \infty}nx_n = 0$. Let $(a_n)_{n \ge 0}$ be a series of $R$ defined as follows: $a_{n+1} = \sin a_n, \ \forall n\in N$ and $a_0 \in (0,\frac{\pi}{2})$.   a) Find $lim_{n\rightarrow \infty}a_n$ and $lim_{n\rightarrow \infty}\frac{1}{na_n^2}$.  b) Find the nature of the following series $\sum_{n=0}^\infty a_n^\alpha$, where $\alpha$>0.  Any help with these two will be much appreciated. Thank you all in advance!  PS: If someone could give step-by-step proof, that would be great.  PPS: This question has been marked as possible duplicate of . Even though the given link adresses a similar problem, it is not the same as the one I have posted. Above all, my post consists of two separate problems, whilst the one given in the link has only one.


How to move my cube left or right using touch Inputs (C#) in unity

I am trying to create a 3d game in unity. I have a cube in unity and I want it to move left or right on swipe . It should move to a distance till where user swipe or take their finger off of a screen. I want it to move fast or the cube should move fast on swipe and cube should flow smooth. Like in the gif there is a circle and the user use their finger to move the circle till wherever the user swipe it and it should be instant and I want my cube to move like that at a distance till where user swipe their finger and it should be instant and fast.  I don't know how to do it. Any help is appreciated!


Read and write values in Multidimensional arrays in verilog

How can we read and write values in a multidimensional array in verilog, i had read in  regarding different operations that can be done on multidimensional array. like if there is a part of code like this  input [15:0] me;  reg [15:0] p_array [7:0]; reg abc_pqr [2:0];  abc_pqr[0] <= me[0]; abc_pqr[1] <= me[1]; abc_pqr[2] <= me[1]; p_array[abc_pqr[0]] <= me[0]; p_array[abc_pqr[1]] <= me[1]; p_array[abc_pqr[2]] <= me[2];   so is this code will work and will not produce any error?  What is the difference between these two while assigning value  "<=" and "=", i had seen "<=" in most of the places during passing values.


Windows Boot Manager: Make Ubuntu the default instead of Windows

When I boot my computer, I get the Windows Boot Manager with Vista selected and Ubuntu as the other item in the list.  If I choose Ubuntu, I get the GRUB menu. I have updated GRUB menus before so I know how that works, but since Windows Boot Manager comes first, I don't know how to change the default.  I looked at this question:  But it seems that that uses GRUB, but the default I want to change is before GRUB even comes up. Any ideas?


ResultSet data comparison to String in java

Im trying to make a conditional statement in my java GUI program. I was already able to make connection with my database db2 and also able to execute query to obtain a result set.   The problem is that when i use a table data to compare with a string in a conditional statement (if), It always returns false and goes to else clause even though the data from the resultset is identical to the string im comparing it to.  I have written the code below.  String query3 ="select * from module where uname='ADMIN' and modulename='SETADMIN'";                 PreparedStatement pst2 = conn.prepareStatement(query3);                 ResultSet rs2=pst2.executeQuery();                 rs2.next();                 if (rs2.getString(1)=="ADMIN"){                     JOptionPane.showMessageDialog(null, "if statement working");                 }                 else{                     JOptionPane.showMessageDialog(null, "if statement not working");                 }   the resultset that will be obtained by the query would look like this  **UNAME   MODULENAME    CANADD   CANEDIT   CANDELETE**   ADMIN     SETADMIN       T        T           T   everything else in the program seems fine except for the if clause always returning false and going straight to else clause  Any help would be much appreciated :)


Why lithium ion batteries explode ? (Reason behind it )

I heard the reason for lithium ion battery explosion is lithium burns when exposed in air but Few days ago I pierced one of my batteries (10-20 holes) and it didn't explode , why ? It was broken phone battery (still works but %35 maximum capacity and 3.7v max voltage) .  Also I heard in somewhere ,  lithium ion batteries only explode when it's charged , is it true ?   The reason I asked because I have a lot of old & broken lithium ion batteries in my workshop and I'm collecting them in glass air tight jar so when I got enough time or batteries , I send them to recycling center for disposal.


how to remove certain words in line before a certain word

this one is abit complex.. i need to edit a file that contains lines that have 5 ":" to differentiate.. what i want is to Regex remove anything before 4 ":" and keep what ever is left on that line.. example:  DATA:1000:031:6566:3180:sdhfdsd  DATA:cuoleL  DATA:000:45:133:37081:fsdfsd  DATA:jhh0:70165:50:687:csdhg  DATA:236:93438:34:1ds:dsdbhz  now for this example in line 1 i want to get only "3180:sdhfdsd" and delete whatever is before it i.e "DATA:1000:031:6566:"  and as you can see line 2 doesnt have 5 ":" so the search skips line 2..  please reply... thanks again community!


Do I have to incur finance charges on my credit card to help my credit rating?

Does using a credit card actually build up your credit score or do you have to incur charges by not paying it off for X amount of time to help with your credit rating? If I'm paying it off every month and using it for everything I buy, am I doing myself a disservice?


Please add a list of failed review audits

I apparently failed too many First Post-review audits, and have been banned for two days.  I would like to have a list of audits I failed, so I can try and find some pattern in what I'm doing wrong.  It can be linked from the profile page or the review page.


Did Vader intend to eventually bring Padme back to life?

With regards to Anakin's vision of Padme's death, and how Palpatine's offer can lure him, I saw this comment in another question:     He believed that even if Padme did die, he could use the Dark Side to bring her back. So ultimately, he wanted a little Zombie Padme action.   When he finally turned to the dark side, Sidious promised that together they will rediscover the secret to bring the dead back to life.  Considering that the eventuality of Padme being dead did come to pass, then does Vader still intend to bring her back in the years since, on the off chance that the secret of Darth Plagueis is successfully rediscovered?  Edit: This is not a duplicate. The other question asks if the Sith ever rediscovered Darth Plagueis' secret of bringing one back from death. This question isn't asking if the secret was rediscovered, it's asking if Vader still plans to do what he originally wanted to do with that power once he learns to use it. (Not to mention that question's answers are all Legends)  My question, however, is asking about Darth Vader's original MOTIVE for joining the dark side. Vader joined the dark side so that, in the event Padme dies, he can bring her back to life. Turns out, she really died, but then he needs to first rediscover the secret to bringing one back from the dead before he can use it on Padme.  So, FROM VADER'S PERSPECTIVE, does he still intend to bring Padme back to life - which is why he joined the dark side in the first place - in the event the secret is indeed rediscovered, for the rest of his life spent as a Sith?


Is a company e.g. Pfizer, singular or plural?

Here is from an article from the  magazine:     One drug he talks about is an antidepressant called reboxetine (branded as Edronax by   its makers, Pfizer) that he used to prescribe to his patients.   Pfizer is a drug company. It is a singular noun. Why is it described as its makers, which is plural?


Property of free submodules for a module over a PID

This question was asked  and remains without solution.   It's possible to produce an example of an integral domain $R$ and a free $R$-module $M$ with free submodules $L, L'$ such that $L+L'$ is not free. We can take $R=M=K[x,y]$ , $L=<x>$ ,  $L'=<y>$.  If $R$ is a PID and $M$ is free $R$-module, then for every pair of submodules $L, L'$ of $M$ we know that $L+L'$ is free.  My question is the following. If $R$ is a PID and $M$ is an $R$-module, is it true that $L+L'$ is free whenever $L$ and $L'$ are free submodules of $M$?


In Adventurer's League season 7 are all creatures from the SRD manual allowed?

In Adventurer's League Season 7, which creatures are PCs allowed to polymorph themselves or others into? Do they have access to the entire SRD, or only a limited set of creatures?


My purpose is to define ajax method callback with jquery.  all DOM of parent div are loaded dynamically i have define delete button foreach comments and i want to get confirmation from twitter bootrap modal befor throw the ajax request :        this.deleteComment = function () {          self = this;          $("button[name='deleteComment']").each(function (index, el) {              $(this).unbind().bind('click', function (event) {                  event.preventDefault();                  var ref = $(this).attr('data-ref');                  var callback = function () {                      /*$.ajax({                         url: '/path/to/file',                         type: 'DELETE',                         data: {param1: 'value1'},                       })                       .done(function() {                         console.log("success");                       })                       .fail(function() {                         console.log("error");                        });*/                      alert("multiple");                  }                  self.confirm("Delete Comment ", "Are you sure you want \                    to delete this Comment ?", callback);              });          });      }       this.confirm = function(head, question, callback) {             $(".modal-title").html(head);             var body = $("<p/>").text(question);             $(".modal-body").html(body);             $("#deleteModal").click(function(event) {                 callback();                 $('.customModal').modal('hide');             });             $('.customModal').modal('show');     }


Granting someone a wish in a humiliating manner

Context: I'm an academic, and I often apply for grants in my home country. Its a tedious work, and the application has to prove that I am capable to finish the project I propose, not only at scientific level, but at management and accounting level. After passing successfully the evaluation process, a whole different process starts. It consists in you interacting with the grant agency. The grant agency assigns you a manager who makes sure your paperwork is in order. She (it's usually a she) has a very short fuse and seems hell bent on making your life miserable. To use a metaphor, it feels like you are a famished beggar and when you beg someone for food, they throw a half eaten chicken wing on the floor and then they tell you vanish because you're disgusting. In my case, the chicken wing is my slashed budget.  So, what would be a proper idiom, or expression to describe the process by which someone answers a request in a most humiliating, condescending manner?


Gnome Tweak Tool Broken after partial upgrade - Ubuntu 20.04

Software Updater performed a partial upgrade today and removed the gnome-tweak-tool and I think one of the depencies - gir1.2-handy-0.0.  I've tried installing in the Terminal and with Synaptic, but I got a broken package error with both. Installed gir1.2-handy-0.0, but still get this error when installing the tweak tool:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  gnome-tweak-tool : Depends: gnome-tweaks but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I also tried:    Fixing the broken install  sudo apt --fix-broken install  Purging the tweak tool and reinstalling it:  sudo apt-get purge gnome-tweak-tool sudo apt-get autoremove && sudo apt-get autoclean sudo apt-get install gnome-tweak-tool  Installing the package from the Focal repository    Still getting the same result.


Finding a closed form $x_n$ for the recurrence relation $x_{n+2} = px_{n+1} + qx_n + r$

Given a recurrence relation:   $$ x_{n+2} = px_{n+1} + qx_n + r $$   Find the general term $x_n$ given initial conditions $x_1 = a$ and $x_2 = b$, where $a,b,p,q,r$ are some given numbers, $n \in \mathbb N$.   Since this is a non-homogeneous linear recurrence relation i've started with solving for $x_n^h$ which is a solution for homogeneous relation:  $$ x_{n+2} - px_{n+1} - qx_n = 0 \\ \lambda^2-p\lambda - q = 0 $$  I'm assuming here that two distinct roots $\lambda_{1,2}$ exist for this equation (single root case is handled similarly). So the general term is in the form:  $$ x_n = C_1\lambda_1^{n-1}+C_2\lambda_2^{n-1} $$  With the initial condition it's possible to find the values for $C_1$ and $C_2$:  $$ C_1 + C_2 = a \\ C_1\lambda_1 + C_2\lambda_2 = b $$  After solving the system of equation with respect to $C_1$ and $C_2$:  $$ C_1 = \frac{b-a\lambda_2}{\lambda_1 - \lambda_2} \\ C_2 = \frac{b-a\lambda_1}{\lambda_2 - \lambda_1} \\ $$  Which eventually results in:  $$ x_n^h = \frac{(a\lambda_2 - b)\lambda_1^{n-1} - (a\lambda_1-b)\lambda_2^{n-1}}{\lambda_2 - \lambda_1} $$  Final solution consists of a sum of particular and homogeneous solutions, but that is where I got stuck. What is the way to find the particular solution for the given problem? I'm pretty new to such kind of problems so any details are very much appreciated.  upd:  Based on the technique in @rtybase answer here are my findings:  $$ \begin{align} x_1 &= a \\ x_2 &= b \\ x_3 &= pb - qa + r \end{align} $$  Writing the system for $c_1, c_2, c_3$:  $$ \begin{align} a &= c_1 + c_2 + c_3 \\ b &= c_1\lambda_1 + c_2\lambda_2 + c_3 \\ pb+qa+r &= c_1\lambda_1^2 + c_2\lambda_2^2 + c_3 \end{align} $$  Now solving for the coefficients gives a huge formula. The answer to this problem suggests that:  $$ x_n = \frac{(\lambda_2(a+\gamma) - b -\gamma)\lambda_1^{n-1} - (\lambda_1(a + \gamma) - (b-\gamma))\lambda_2^{n-1}}{\lambda_2 - \lambda_1} - \gamma $$  Where:  $$ \gamma = \frac{r}{p+q-1} $$  Unfortunately I was not able to arrive at exactly the same result, but testing my solution (not posting since it's monstrously big) using SameQ in Mathematica with the given answer shows that they are equivalent. Those transformations are not very obvious to me, so i skipped them since the answer matches the given one (yet the symbolic expressions are different)


TAP Airlines refusing refund of Top Executive tickets

We have fully refundable "Top Executive" tickets but they are refusing to give refunds. Only credit vouchers. Unacceptable. Has anyone been successful in getting refund rather than a voucher which has very limited date for when it can be used.  What recourse is there?


I suddenly became curious that why the sun doesn't burn out at once?  What makes the sun burn gradually?


It is stated that the Earth is a 'squashed sphere' due to the very slight bulge at the equator. (Thought in reality it's such a small difference, it's essentially spherical)  Typical values:  Equatorial Diameter: 12,756 km Meridional Diameter: 12,714 km  I'm looking at why the Earth has this tiny bulge.   Some sources I read talk about the tidal effect from the moon. But others talk about the Earth spinning causing this.   The books I have (and videos I've watched) just talk about this things separately and don't really explain the difference  Surely the bulge due to a mixture of both? which one has a greater effect? Does the rotational bulge not effect the oceans or something? Does the tidal bulge only effect the water? I'm really confused


Configure Windows 7 to show all windows in black and white

I have difficulty viewing different types of colors.   Many would call it a color impairment, because when I see to many colors my brain gets overloaded.  I would like the following for Windows 7   Is there accessibility setting that can make all windows in Windows 7 black and white?


I have a proof for it. I just want to make sure it's correct.   Assume, for the sake of contradiction, that $\sqrt{2}$ is rational.   Then, $\sqrt{2} = \frac{a}{b}$ (1) , where a and b are integers and gcd(a,b)=1.  Note that $\sqrt{2}$ is non-integer. Thus, b does not divide a  Squaring both sides of equation (1),  2 = $\frac{a^2}{b^2}$. This means that $b^2|a^2$   Let p be a prime where p|$a^2$. Then $p|a$  Now assume that p| $b^2$. Then p|b. However, this is a contradiction because $gcd(a,b)= 1$  Therefore, $gcd(a^2, b^2)=1$. However, this contradicts the earlier conclusion that $b^2|a^2$   Hence, $\sqrt{2}$ cannot be rational.   Therefore, $\sqrt{2}$ irrational.  Is there something wrong with this proof?


i have iPhone 6 of 16GB, which is upgraded to 200GB, it's not showing upgrade storage capacity on the iPhone, still showing only 16GB


What is the name of the problem where lines appear in a photo where there should just be a smooth gradient?

I don't remember the name of this problem and it drives me crazy. I googled everything similar to "lines in photo" but I didn't find the solution.  The problem is that on my PC monitor I don't see anything, but when I download the photo on my smartphone I see these lines that surround the source of light. I know that some of the problem is my not-top-quality smartphone screen, but I also know this problem has a name and it comes out, for example, when you save an img in really low quality.   I attach the screenshot I took on the smartphone (the only way I can see the problem also on the PC monitor):


When a creature is prone, can it make opportunity attacks?

If a creature is knocked prone, can it still make opportunity attacks?


Give:  $fn(S)=\prod_{x\in S}x$  what is:  $fn(\emptyset)$  I can see reason that it would be defined as 1 or 0.    Note: I thought about restricting the domain of $S$ but that would make the problem less general. If there is no general answer then answers for restricted domains would be valid.


When I try to save a new file in TextEdit, I always get a popup saying I can't save with ".txt" at the end of the file name.  I want to save a plaintext file, but TextEdit insists on saving as .rtf instead. It also lists .doc, .odt, .html, and some others.  How can I save a TextEdit document as plain text?


How to check that a daemon is listening on what interface?

Ex.: an sshd is configured to only listen on wlan0. So. Besides checking the sshd_config how can I check that a daemon is listening on what inerface? netstat can do it? how? (OS: openwrt or scientific linux or openbsd)  UPDATE:   I thought sshd could be limited to an interface... but no... (192.168.1.5 is on wlan0...)  # grep ^ListenAddress /etc/ssh/sshd_config  ListenAddress 192.168.1.5:22 #  # lsof -i -n -P COMMAND     PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME sshd      23952 root    3u  IPv4 1718551      0t0  TCP 192.168.1.5:22 (LISTEN) # # ss -lp | grep -i ssh 0      128              192.168.1.5:ssh                           *:*        users:(("sshd",23952,3)) #  # netstat -lp | grep -i ssh tcp        0      0 a.lan:ssh                   *:*                         LISTEN      23952/sshd           #


Pointer type casting from unit8_t buffer to structure

I'm trying to typecast the uint8_t buffer to structure with bit field as below. #include<stdio.h> #include<inttypes.h>  struct msg{     uint64_t field:56; };  void main() {    uint8_t buf[8]={0x7,0x6,0x5,0x4,0x3,0x2,0x1};    struct msg *m = buf;    printf("buf=%"PRIx64"\n",m->field); }  But I'm getting the output as below.  Actual output: buf=1020304050607 Expected output: buf=7060504030201   Am I doing anything wrong while typecasting?


What is Normalisation (or Normalization)?

Why do database guys go on about normalisation?    What is it? How does it help?    Does it apply to anything outside of databases?


Why does something taste less sweet after eating something else that is sweet?

Why does something taste less sweet after eating something else that is sweet, especially if you don't drink water in-between.


I'm using 14.04 and would like to move the launcher to the bottom of the screen.  Is there a way to do this ?  Thank's


Expected number of die rolls to get 6 given that all rolls are even.

A fair 6-sided die is rolled repeatedly in till a 6 is obtained. Find the expected number of rolls conditioned on the event that none of the rolls yielded an odd number  I had tried to figure out what will be the conditional distribution of $\frac{X}{Y}$ but I can't solved it yet Where $X $ is the face numbered 6 is obtained and $Y$ is the event only even number is occured


The vector space formed on C[0,1] and the norm $(\int_{0}^{1}|f(t)|^2 dt)^{1/2} $

How does one show that $(C[0,1], ||.||_{2})$ where $||.||_2=(\int_{0}^{1}|f(t)|^2dt)^{1/2}$ and $C[0,1]$ is the space of all continous function which are mapped from $[0,1]\rightarrow \mathbb{R}$, is not complete?   First to show that $(C[0,1], ||.||_{2})$ is a normed vector space:   $||.||_2$ fulfills $||f(t)||=0 \Rightarrow f(t)=0$   $||.||_2$ fulfills the  scalar multiplication property: $$||\lambda f(t)||_{2} = (\int_{0}^{1}|\lambda f(t)|^2dt)^{1/2}=|\lambda|(\int_{0}^{1}| f(t)|^2dt)^{1/2}=|\lambda|||f(t)||_2$$  Thirdly, it also fulfills the triangle inequality:$$||x(t)+y(t)||_2^2 = \int_{0}^{1}|x(t)+y(t)|^2dt \le \int_{0}^{1}|x(t)|^2dt + 2\int_{0}^{1}|x(t)y(t)|dt +\int_{0}^{1}|y(t)|^2dt \le ||x(t)||_2^2 + 2||x(t)||_2||y(t)||_2+||y(t)||_2^2 = (||x(t)||_2+||(y(t)||_2)^2$$  this also shows the closure under addition in $C[0,1]$  so , $(C[0,1],||.||_2)$ is a normed vector space , but how can we show that it is not complete?


I noticed that $f(x) = x\phi(x)$ seems to be one-to-one, where $\phi(x)$ is Euler's Phi function.  In particular, I'm writing some numerical python code and the line I have looks something like  sorted([n*phi(n) for n in range(1,1000)])   and there are no duplicates in the list.  First, is it one-to-one?  Second, if it is, is there a simple proof sketch?


Find the limit for $\lim_{n\to \infty}\frac{n}{\sqrt[n]{n!}}$  I have no idea how to do this - they always say use the ratio test when there are factorials but the nth root stuff makes it so ugly and i can't get anything to come out of it. Does anyone know what process I should use?


how to adjust a div in the middle of the page

(can't post pictures yet) the questionmark is a bit lower than the "Status Update" text and I want to align it, but i don't know how. The css and html is here: .qmarkCircle {   border-radius: 50%;   width: 0.8em;   height: 0.8em;   display: inline-flex;   justify-content: center;   align-items: center;   padding: 2px !important;   margin-left: 5px;   background: #fff;   border: 1px solid #666;   color: #666;   font: 0.8em Arial, sans-serif;   font-weight: bold;   box-sizing: initial;    &:hover,   &:after{     content: "?" !important;   } }
{{ 'home.status-title' | translate }}

   hope this is enough


How can I download my div as an image? (In JavaScript, Jquery or PHP)  I have a simple HTML code:

 <button id="downloader" onClick="download('downloadThis')">Download</button>   And I want to download it as an image:


Analytic function is identically zero on open unit disk if $|f(z)|\leq 1-|z|$.

Let $f$ be an analytic function defined on open unit disk with $|f(z)|\leq 1-|z|$. I need to establish $f$ is zero on disk .  If I'm able to prove that $f(0)=0$ and $f(0)\leq f(z)$  then $f$ is identically zero, I'm not able to achieve either of them. Any hint would be sufficient.


I want to move all the files, but not the folders, inside a folder to another directory.  I have been using this command:  find . -maxdepth 1 -type f -exec mv {} destination_folder \;  But now I want to move all the files except the ones that start with "exe_", so I tried:  find . -maxdepth 1 -type f -exec mv !(exe_*) part1a_si_atom-exp001 \;  But now it also moves directories. What can I do?


How did The Doctor and Clara escape his timeline?

In the last episode of season 7, The Doctor goes into his timeline to save Clara. It ends when they see his war regeneration and Clara faints. Did I miss a special episode between that one and the 50th anniversary special? Because they never explained how they escaped his timeline.


'npm' is not recognized as an internal or external command + VS Code + Salesforce

I am getting the error "'npm' is not recognised as an internal or external command" while creating project in VS code using Salesforce CLI. Don't know what I am missing out. Can anyone guide me.


How to permanently delete my question from Stack Overflow?

I want my question to be deleted permanently from Stack Overflow for some reasons. I have deleted the question, but when searching in Google, it is still showing up. I don't have a reputation over 10,000 to delete. But I want it to be deleted from my account. Can anybody help me on this?


I am not sure whether I have used Present Perfect correctly in the following sentence:  "Influenced by my academic background and experience, my research interests are diverse and interdisciplinary. They have been shaped by the academic programs that I have completed, which provided me with good foundations to explore different topics in the field of English Linguistics, Literature and Culture.  Can you help me out?


I have a USB disk with a partition labeled "Backup"  I am using the package usbmount which automatically mounts the disk at /media/usb[0-7]  I wish to create a bash script check that the disk with the label of "Backup" is mounted at /media/usb0 before commencing.  To date I have used e2label to both check and update the disk label.  Beyond this I am unsure of the best way to approach this.


How to code to skip a shapefile, if it doesn't exist?

So if shapefile 'AAA010' does not exist, how can I skip the Merge and Clip and move on to the next part of the script? If possible I would like to keep the current script as it is, but by just adding else or if, Sorry still trying to learn the ins and outs.  import os, fnmatch, arcpy   arcpy.env.workspace = r'C:\Users\sysadmin\Desktop\DataMagement\Comp_3\SA_MGCP3.gdb'   fcMerged = 'MergedFeatureClass' fcClipped = 'fcClipped' fcToClip = r'C:\Users\sysadmin\Desktop\DataMagement\Country.shp'  filesMatched = list()  for root, subfolders, files in os.walk (r'C:\Users\sysadmin\Desktop\DataMagement\MGCP_Raw'):      for f in fnmatch.filer(files, 'AAA010.shp'):              filesMatched.append(os.path.join(root,f))      if filesMatched:         print ' files found - merging'         arcpy.Merge_management (filesMatched, fcMerged)         arcpy.Clip_analysis (fcMerged, fcToClip,fcClipped)      else:          print 'nothing found - skipping'


Should there be a comma before 'just'? "If you love yourself just ignore them"

Is there a comma before 'just' in the sentence below?  If you love yourself just ignore them because no matter how hard you try they won't understand.


Disk brakes severely reduced in power after replacing bearings

so I am creating a few posts about bearings and wheels, (story so far):      I have now got the wheels, bearings and freehub working.  Started riding to work this morning and I almost couldn't stop at a junction.  Thankfully wasn't going too fast.  I physically can not get the wheel to lock.  I have to use both brakes at full force to get the bike to roll to a stop.  If I only use one brake I would not stop at any junction in time.  Could the cause be any of the following:   Over greased bearings? Over greased axle? not tightened cone hubs enough? not tighted axle enough?   I do not have any grease on the disk brakes them selves.  Rather nervous getting on the bike now.  Don't seem to be doing too well with this bike home fixing thing.  over greased bearings?  EDIT  Forgot to mention that it is hydraulic disk brakes.  EDIT 2  So in the end I took it to the LBS as I didn't have much confidence in my self at this point.  They had to replace the front pads but where able to clean the rear and cleaned the rotors.  (I had tried to clean the rotors but obviously not vigorously enough).  He said it was a bit of a pain to do.  All is working again.  They double checked my wheels and said I had put them back together correctly which is reassuring.  Thanks for all the help


When do I clear US customs and immigration if connecting at a US airport to my final destination elsewhere in the US?

I'm a British citizen travelling from London Heathrow (LHR) to the Hartford, Connecticut airport, and have a two hour stopover in Newark, New Jersey (EWR) on my itinerary. At what stage would I clear immigration and customs on arriving in the USA?


Converting LaTeX to HTML but keeping equations as LaTeX

I'm using tex4ht for conversion of heavily maths loaded LaTeX files into HTML to be able to serve them in a web app. Can successfully convert all equations to MathML and jsMath. But as equations are not web optimized, some of them are rendered wrongly or dont even get rendered as they are in original PDF's. So I decided to use maths as LaTeX as I think Mathjax can handle LaTeX equations better than jsMath or MathML.  Have already seen ,  and   I can manage to leave inline maths as they are but struggling with aligned standalone maths.  For example:  After a time $t$, the ground state $\ket{g}$ and the excited state $\ket{e}$ will each have accumulated a phase that is proportional to their energies: \begin{align} \ket{\psi(0)} \to \ket{\psi(t)} = \frac{e^{-iE_1 t/\hbar}}{\sqrt{2}} \ket{g} + \frac{e^{-iE_2 t/\hbar}}{\sqrt{2}} \ket{e}\, . \end{align} We can take out the factor $e^{-iE_1 t/\hbar}$ as a global unobservable phase, and obtain \begin{align}\label{eq:atomequator} \ket{\psi(t)} = \frac{1}{\sqrt{2}} \ket{g} + \frac{e^{-i(E_2 - E_1)t/\hbar}}{\sqrt{2}} \ket{e}\, . \end{align}   So I can get tex4ht not to convert $\ket{g}$ in first line into image but having issues with maths within {align}.   I'm using michal-h21's .cfg file described in this answer:   any help would be greatly appreciated.  PS: I'm not a LaTeX expert and did not write the documents myself. So I somehow need to find a way to workout the LaTeX I have without modifying or with minimum amount  of modification.


Significant figures in a practical experimental problem

Here is a question that combines uncertainties in measurements and significant figures.  Consider the following results to measure the value of g:  $$g={9.7,9.8,9.7,10.0,10.1,10.3}$$  Then to four decimal places $\bar{g} = 9.9333$, while the uncertainty of the mean is $$0.2422/\sqrt{6} = 0.0989$$  But clearly we would not quote these values as they stand.  So, what would be the statement of the mean value of g and its uncertainty to the correct number of significant figures? Would it be $\bar{g}=9.9 \pm 0.1$ or $\bar{g} =9.93 \pm 0.10$? The original measurements had two significant figures, but it would seem using the mean and its uncertainty would permit an additional significant figure. And what is the general rule for the significant figures for mean values and their uncertainties?


How can I set the value of auto property backing fields in a struct constructor?

Given a struct like this:  public struct SomeStruct {     public SomeStruct(String stringProperty, Int32 intProperty)     {         this.StringProperty = stringProperty;         this.IntProperty = intProperty;     }      public String StringProperty { get; set; }     public Int32 IntProperty { get; set; } }   Of course, a compiler error is generated that reads The 'this' object cannot be used before all of its fields are assigned to.  Is there a way to assign values to the backing fields or the properties themselves, or do I have to implement properties the old-fashioned way with my own explicit backing fields?


I have a switch that controls an outlet on the other side of the room. On the other wall there are two outlets that I have lamps plugged into. It would be really great if i could use that switch to turn those lamps on and off with out having to run a extension cord across the room.  I have a seen smart switches, smart wall outlets, smart electric cords, to smart light bulb intermediary sockets.  What is important to me is that I have price options when buying and installing the solution, and of course it all works together when installed.  P.S. an Developer API would be nice as well.  So what are my options?


struct constructor error, why use default constructor function will call a error?

#include <iostream> using namespace std;  struct Foo{     Foo(){}     Foo(int){}     void fun(){} };  void main() {     Foo a(10);     a.fun();     Foo b();     b.fun();//error     Foo c = Foo(); // this is the right way to use default constructor?     c.fun(); }   The code has an error when compiling, because b is not a type of class, who can tell me what is b? And the meaning of Foo b()?


The Public Platform team is continuing to work towards  and we’re here today to announce a new onboarding experience for the review queues. In the  (), we learned that each queues’ instructions could be easily misinterpreted and additional information was difficult to find. Without proper guidance or context, new reviewers would contribute inconsistent reviews and risk having their review privileges suspended. With this release, our goals were to 1) better highlight the review privilege and 2) provide upfront instruction and guidance for successful reviewing. New privilege announcements Community moderation is a significant aspect of Stack Overflow and the Stack Exchange sites. We want users to be aware and familiar with this newly earned privilege, but also celebrate the opportunity to contribute to the community in a unique way.  Many users were discovering the review queues by chance. Once the privilege is earned, a new review queue icon with a red alert would appear in the top-right part of the navigation. We are adding a popover to bring more attention to this easy-to-miss icon. We will also be adding notices for when users earn access to other, higher reputation queues. Additionally, new reviewers will also receive an email notification about the newly earned privilege. They will only get the email if they earn the privilege and don't perform a review within 24 hours (anyone who doesn't want to receive email notifications like this can visit their  and turn off "Tips and Reminders"). We are also showing a popover to users who earned access to review queues in the past, but have never done a review or haven't reviewed in the last 30 days. This popover is only appearing for the next 90 days. The goal is to engage users who may not have interacted with the queues since we made  and . Welcome banner  If a reviewer clicks “Learn more” on the on-page popover or goes to the review queue home page (/review), they’ll be greeted with an onboarding message with general information about the review queues. Informational modals  Queue-specific modals will appear upon page load as you visit each queue. They summarize and highlight important aspects and tips about reviewing in a particular queue. This information can be revisited at any time by clicking “Learn more” under the page header. Feedback As always, please leave your feedback and any bugs you may discover related to this release below this post. We will be monitoring this post for the next few weeks (May 4, 2021). After May 4th, please report any further issues as new questions.


I run several different web pages on different servers (with different IP addresses). These pages are linking to each other in order to boost number of backlinks pointing to my pages.   I would like to move all those projects to a single virtual host (with a single IP address). My question is, how Google handles links within different domain names but same IP address. Is there some penalization for it? Could this lead to lower PageRank?


Use of 'are' or 'were' for this past tense sentence

The boys are Liam and Ethan.  My eight year old student is explaining her choice of 'are' rather than 'were' in this sentence from a past tense recount of her weekend, stating that the boys are still friends, so using 'were' would imply there had only temporarily been friends.  So, is 'are' correct or should it still be 'were'?


Convolution of discrete uniform distributions

For two independent, discrete, uniformly distributed random variables $X$ and $Y$, I wish to obtain the distribution of the sum $Z=X+Y$. I have the densities: $$f_X(x)=\left\{\begin{matrix} \dfrac{1}{m+1},\;x\in [0,m]\\0,\;\text{otherwise}\end{matrix}\right.$$ $$f_Y(y)=\left\{\begin{matrix}\dfrac{1}{n+1},y\in [0,n]\\0,\;\text{otherwise}\end{matrix}\right.$$ $$f_Z(z)=\sum_{x=-\infty}^\infty f_X(x)f_Y(z-x)$$  I know that $f_Z(z)$ should look like a trapezoidal distribution. However, without knowing this, is it possible to calculate that distribution in a convenient way symbolically?   I'm finding it tedious to keep track of summation limits and such. For instance, separate cases for $m>n$ and $m<n$. I was wondering if there is a natural or intelligent notation for this, since this problem seems to be just so symmetric w.r.t $\,X$ and $Y$.  To make the question concrete: what is the most natural, symbolic/non-graphical way to solve for $f_Z(z)$? (I don't mind using another convolution formula if there is one, by the way)  Any help would be appreciated. Thanks.


I could not find any references related to what does ${#} actually means in shell scripting, My rough guess is that it means the last variable passed to an invocation, but not completely sure.


How to limit zoom level in OpenLayers 2.x

I would like to have only 3 levels of zoom available (from level 6 to level 8).  demolayer2 = new OpenLayers.Layer.WMS( "abc...","http://localhost:8080/geoserver/gwc/service/wms", {layers: 'def...', transparent:"true", format: 'image/png', numZoomLevels: 3, minZoomLevel: 6 },{isBaseLayer:false},  { tileSize: new OpenLayers.Size(256,256)});  map.addLayer(demolayer2);   map.addControl(new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher')}));  map.zoomToExtent(new OpenLayers.Bounds(-4.601615515076983,39.8769407866263,-3.0527184873294764,41.16710732525929));


I have configured my MySQL Database to require passwords on all users, even root from the machine itself.  Now I discovered that there are empty Users in my Database  Reproduce: mysql -u root -p and then use mysql; & select * from user;  It gives me 2 entries, one with "localhost" and user <empty> and one with the machine's hostname and <empty>.  Now I tried to access the account with mysql -u ' ' (yes it's correct, leave a space between the ' things) and I log in without a password. The user can "only" see information_schema and test, the two databases created by default. He does not has access to mysql or any other custom created databases.  I already changed the Password of this user to something I won't tell you  mysql -u root -p use mysql; UPDATE mysql.user SET Password=PASSWORD('thisisasecretpassword') WHERE USER='root'; FLUSH PRIVILEGES;   Now my Questions:   Is any MySQL Server vulnerable for an attack with this entry? Could an attacker break out of this account or the two default databases? Should I password-protect those Users or can I delete them? Are They required for some MySQL-internal things?


Why should we be forced to consider titles when discussing a topic that has nothing to do with them?

My question is not about your right to use a title or gender identification (or lack thereof) — it's a right you already have. My question is purely about the necessity to do so within the scope of the SE sites, especially the technical ones like StackOverflow. So no offence meant.  Why should users be forced to consider titles or gender — or even use them — when discussing a topic that has nothing to do with either? I have never seen a technical question (programming, math, etc.) where the title/gender/gender identification of the person asking, or that of the person answering, the question played any role whatsoever. Is it not enough to require users to show each other the basic respect that every human being deserves and block/suspend/remove those who refuse to do so?  Yes, I understand that it's important for some (not even all) of the questions on sites like The Workplace but does it really matter on StackOverflow? Any introductions that state the name of the person asking the question already gets edited out so why does my title/gender/gender identification matter more than my name? Do I not also have the right to be called by my name then? Is your editing out "Hello, my name is Isak" from my question disrespectful? Should you be allowed to remove part of my identity from my question? Or does it even play a role when the goal of the site is to ask and answer questions that have nothing to do with your name/title/gender/gender identification?  I believe that every human being is deserving of the same amount of respect and that respect can not be forced by silly 'call them by their title' rules. A respectful environment is build when users refusing to be respectful are blocked/suspended/removed and the rest are left to show respect in their own way. Forcing naming conventions creates a more politically correct environment but that has nothing to do with respect.  In my opinion the FAQ on gender pronouns should be more like:     We understand that people identify by different gender pronouns and   respect your right to do so. However, unless it is relevant to your   question we ask you to word your question in a gender neutral form.      We also ask users to not address other users by a gender   pronoun that they have not identified with on a SE site. Even if they   have identified with a specific gender pronoun we understand that you   still have to right to refer to them in a neutral way (not use their   specified pronoun), as long as it does not force a gender pronoun on them that they have not identified with and is done in a respectful way.   In my opinion the less rules you have and try to enforce the more authentic the community is. Then when someone does use your preferred gender pronoun to refer to you, you know that it's out of respect and not because they are afraid of breaking the rules.  What I love about the SE network is that you can ask questions and get honest feedback. To me it has never had anything to do with gender and I believe that for sites like StackOverflow gender doesn't matter at all. I want a place where I can ask a question about programming and get an answer about programming, nothing more. I want it to be as simple as possible because StackOverflow (and the SE network) is a tool that I use to get help and help others and when that tool becomes too cumbersome and cluttered by rules I will find another one.


Is it possible to apply modifiers to multiple objects at once?

You can copy modifiers from one object to other objects with CtrlL> Make links > Modifiers, or the Copy attributes addon.  However, is it possible to apply modifiers to many objects at once?


A simple question.   What proof will be sufficient for the existence of God? (where God is someone who is all capable ,all knowing , all  present)


Proof that the sequence of prime number is infinite.

Can someone please tell me how to prove that there is no last prime number? I am familiar with Euclid's one, but I'm looking for a different way. I'm in 11th grade and I can do intermediate algebra and basic calculus. Only a basic idea/guidelines would suffice.


Set STM32 GPIO clock and data pins as fast as possible

I have an STM32 that toggles nine GPIO pins repeatedly (one clock pin and eight data pins to load an FPGA image using SelectMap). I am doing this using the standard library function GPIO_WriteBit that modifies one GPIO bit, and changing one pin at a time.  Unfortunately, this turns out to be quite slow. Is there a way I can make "raw GPIO toggles" very very fast? Is there a clock parameter I should change? Can I use some sort of FIFO, or interrupt-based method?  I have configured the GPIO pins as follows:    GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;   GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;   GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;   GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;   (Note: The  (see page 133) states that the GPIO is capable of:  Fast toggle capable of changing every two clock cycles   But I cannot see how to activate this fast toggling.)


I need to choose appropriate hardware for virtualize with vmware - 1 windows server 2016 (active directory, wsus, centralized antivirus software...) - 1 windows server 2008 (run 2 server software) - 1 pfsense (openvpn only) - 1 linux server machine (cacti, loganalyzer)  For the host machine I can shoose between: 1 x 8 core Xeon Silver 4110 2.1 GHz - 16 GB RAM; 2 x 8 core Xeon Silver 4110 2.1 GHz - 16 GB RAM; 1 x 10 core Xeon Gold 5115 - 32 GB RAM; 2 x 8 core Xeon E5-2670 - 48 GB RAM;  What can I choose with the minimum requirement? Is the first sufficient?


weird gradients appearing in the final render

I m trying to render an animation sequence using cycles, but soon as i import my images "tried Tiff,Png and OpenEXR"into after effects i keep getting these wierd lines "Gradients",i want to know what is the best color management settings for a "blender to After Effect workflow". Settings are in the pictures below:


Why are centrifuge space-station designs not a reality?

Considering how  for the crew of a space station to have at their disposal a 1g environment (or more) at the rim to a 0g environment at the axis of rotation, why aren't modern space stations like the  built around a centrifuge design à la ? And if they already exist, why haven't I heard of them?


We are evaluating a different forum solution for our business need.   Can we use Stack Exchange? Is there any enterprise version? What is the pricing model? Is there any on-premise solution or everything is in the cloud? If we need to develop new features, should we have access to the code or need to go through Stack Exchange development team? How much we can customize? What is the account manager's contact info for Europe? Can we import content from another forum? Gold support? What is the SLA for customer support?   Many thanks in advance for your reply.


Blend hose with constraints at both ends

I have a model of a hose that I'd like to pose for a render. The hose, pictured below, has two "rigid" ends. If I use a Curve modifie I can control where the bending starts, but not when it ends. This is deforming the other end that should not be bended as the middle. Is there a way to constrain the deformer for it to end at the "2" mark? Or should I try something else?


What's the short story where the man is sick and tired of advertising?

I'm trying to remember the title and author of this story.  It's just a few pages long and starts with a man on a bus coming home from work looking at the screen on his watch.  His wife is talking to him on the little screen.  Everything in his environment is covered by ads, even the toilet paper.  He finally gets fed up and finds a little room somewhere that he can rent for an exorbitant amount to find some peace - in the room there are no ads, no piped in music, no screens of any kind.    I think the story is by Ray Bradbury but I'm not 100% sure.  It's not in any of my Bradbury collections.  If you know this story, please post the title and author - thank you!


Should I be honest about my past history of attending a Master degree in the past?

I am planning to attend a PhD program in the future. Should I be honest that I have some experience of attending a full-time Master degree in the past for three years? I had a somewhat rocky relationship with the thesis supervisor resulting in me being kicked out from the program. I am a bit worried that revealing this might be not too beneficial for me during the application process. Can I pretend that I did something else during the three years? In reality, I did some work in a part-time manner while attending my old program (self-employed).


how to use preg_match for whitelisting a string?

i want to check a string contains unwanted character or not.  I want to allow only a string which will contains only @ _ a-z .  I want if the string contains anything except this character will give me a false output. i want to check a string which will return true if the string doesn't contains my expected characters.   I tried to use preg_match to do this. But unable to do this. I think preg_match isnot the function i need for this. Please suggest me the best way to reach my desire goal.   $text='Hel&o'; if(!preg_match("/.@_[a-zA-Z0-9]/", $text) ){ return false; }else { return true; }


(Is it wrong to) Use commands to begin and end equations (?)

I'm helping a professor write the second edition of his book, so I'm working with a lot of "old" code and bad practices. Something I've found is that he has defined macros for beginning and ending equations,  \newcommand{\be}{\begin{equation}} \newcommand{\ee}{\end{equation}}   I don't remember where, but I think I read here somewhere that this is a bad practice. Could someone explain why?


How do I install Psiphon on Ubuntu 14.04 LTS (Step by Step)

I have tried using Psiphon through Wine but it didn't work. Please tell me how I can install it using terminal step-by-step.


Why can't I get a pure white background, even using multiple light sources?

Edit: THIS IS NOT a duplicate of . Reading my question and the linked one you will see I HAVE ADDRESSED the issues suggested by the answers of said question, and I'm still not getting satisfactory results. My setup is very different from his (I have four lights and he has only one). My question also talks about RAW not getting blown out whites, the linked question's author makes no reference to RAW.  I've been doing "good enough" white background photography from time to time, for a number of years, using a cardboard box with cutouts, tracing paper, and 3 60W filament lights (yes! and, yes! I burned myself with them too). The results have been more or less acceptable, though they require a little photoshopping afterwards.  Part 1: Gear and Setup  Now I've upgraded my gear a bit. I have 3 YN-560 flashes, a Nikon SB700, an umbrella, and a small DIY softbox. I've also found an interesting piece of plastic to use as a background: it's a diffuser found inside LCD TVs. It's what they use to get a perfectly even backlight for your screen.   I've been trying to get pure white with my new setup but I've had little success. The latest experiment, with the diffuser sheet, was actually worse. The setup I use is:  Plastic diffuser as cyclorama. 1 flash lighting the back, with a black card to prevent spill 2 flashes with umbrella and softbox on each side of the product 1 flash lighting the diffuser sheet from below  The result is this:    Terrible, and not even close to pure white.  A better example is this:    I suppose the problem is the lighting from the underside. In the first photo, light spills from the floor and gives a creepy light. In the second one, the base of the figurine shades it and, and it allows me to better light it from the sides.   The problem is: if I don't light the bottom, I may get a blown white background, but no white "floor". But if I increase the light from the sides, the object starts getting blown out as well.  Part 2: Highlight Warning lies  When I was taking the photos, I managed to get highlight clipping warnings on my background. I thought, great, the figure is fine but the background is blown! Then I went to import the photos into Lightroom. To my surprise none of the photos had highlight clipping. Why does this happen? My guess is the highlight clipping indicated by the camera is based on the embedded preview, and not in RAW data. What I use in Lightroom is RAW, and in raw there is still a little bit of headroom.  I also have a very weird histogram:    This fools lightroom and it doesn't let me use the usual sliders. For example: moving the highlights slider doesn't do much, but the shadows sliders adjusts the brightness of the figurine in the photo (since lightroom considers it to be shadows). Is it possible to edit the photos the traditional way, or does this sort of high-key photography always fool Lightroom? ...or does Lightroom think I don't want clipping on my images and it's doing something weird on import?


I use ubuntu 14.04LTS, when I type in:  sudo apt-get install vlc       I receive this error:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:    vlc : Depends: vlc-nox (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed    Depends: libavcodec55 (>= 6:9.1-1) but it is not installable or             libavcodec-extra-55 (>= 6:10~~git20131218.b3189af~ubuntu14.04.1) but it is not installable    Depends: libavutil53 (>= 6:9.1-1) but it is not installable    Recommends: vlc-plugin-notify (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed    Recommends: vlc-plugin-samba (= 3.0.0~~git20150319+r59816+33~ubuntu14.04.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.


What's the actual difference between RSA encrypting and Descrypting and RSA Signing?

this question arised because I'm working with Windows' CNG library and it has 4 functions for RSA:   BCryptEncrypt (private key, message) BCryptDecrypt (public key, message) BCryptSignHash (private key, hashed message) BCryptVerifySignature (public key, signature, hashed message)   So I was wondering, is there any difference between "Encrypting + Decrypting" and "Signing + Verifying"? I mean, if I hash the message and then encrypt it, wouldn't that be the same as Signing it? or Am I missing some logic that is behind that function? (talking about RSA in general, not about how windows' CNG work).  The only visible difference I see is:   For Encryption and Decryption I can use OAEP and PKCS1 padding. For Signing and Verifying I can use PKCS1 and PSS padding.   But again, is this because of how those functions are made in this library? or because the "operation" and the output are done in different ways depending on if it is Signing or Encryption?  If they are different, then why do we need the Signing part? Isn't encrypting with private and decrypting with public secure enough to "sign" it?


I'm responding a test. I write a correct answer:        I was telling the stories this time yesterday.   He isn't answering the calls at the moment.      Is the use of the definite article in these examples correct?


I'm writing a class that does essentially the same type of calculation for each of the primitive numeric types in C#.  Though the real calculation is more complex, think of it as a method to compute the average of a number of values, e.g.  class Calc {     public int Count { get; private set; }     public int Total { get; private set; }     public int Average { get { return Count / Total; } }     public int AddDataPoint(int data)     {         Total += data;         Count++;     } }   Now to support that same operation for double, float and perhaps other classes that define operator + and operator /, my first thought was to simply use generics:  class Calc<T> {     public T Count { get; private set; }     public T Total { get; private set; }     public T Average { get { return Count / Total; } }     public T AddDataPoint(T data)     {         Total += data;         Count++;     } }   Unfortunately C# is unable to determine whether T supports operators + and / so does not compile the above snippet.  My next thought was to constrain T to types that support those operators, but my initial research indicates this cannot be done.  It's certainly possible to box each of the types I want to support in a class that implements a custom interface e.g. IMath and restrict T to that, but this code will be called a great number of times and I want to avoid boxing overhead.  Is there an elegant and efficient way to solve this without code duplication?


I've quite a few questions in this regard:   Is there a theoretical limit?  What has been achieved till date?  What is commercially available today?  If there is a sudden exponential increase in price after a certain limit, what limit is that?


The repository 'http://ppa.launchpad.net/dirk-computer42/c42-backport/ubuntu eoan 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.   How do I fix the issue?


ShareLaTeX timeout: lstlisting doesn't work

I created a new document using the default presentation template – simple-beaver. Then I added the following:   \usepackage{listings} at the top of the file right after \documentclass{beamer} declaration a new frame:  \section{Some Code}   \begin{frame}{Code}     \begin{lstlisting}       print "Hello world"   \end{lstlisting} \end{frame}    When I press Recompile sharelatex throws time out error. Any ideas how can I make the listings package work in sharelatex presentation?


I'm playing starter edition so I can't get ranked normally.  I've just been playing through the AI beating them at very hard. How good is that for player leagues?  I've seen these:   But that seems outdated as the AI has been changed in HoTS.


I'm having this error on my website EntityMalformedException: Missing bundle property on entity of type commerce_line_item. in entity_extract_ids() (line 7866 of /var/www/xxx/xxx/includes/common.inc). and I don't know why it showed up recently.   Any one has encountered this error?


To be clear, yes, we can see everything from Google Earth or other satellite imagery, but that doesn't mean we can explore it.  GE can't see into forests, canyons and caves.  Has every mountain been scaled? Has every ocean depth been mapped? Has every jungle been navigated?  Basically, the question is, is there any part of our planet left to explore? To put your foot on a rock and shove a flag in the ground and name it whatever you please.  What are the main areas left for exploration that someone might want to try and do.  Clearly not every square foot of the Sahara has been navigated, but that's a bit harder than say, a North American forest.


Adding value to a variable, through a function

In a game I'm working on, I have an advancement system that is supposed to trigger based on exponent levels:    function machinesOwnedAdvancement(machine,machineLevel) {   if (machine >= Math.pow(2,(machineLevel+5))) {     console.log(machineLevel);     machineLevel += 1;     console.log("Machine is upgraded. It is now level: " + machineLevel);   } }     The function will be called as such:  machinesOwnedAdvancement(scribes, scribesAdvancementLevel);   Where scribes is number of machines owned, and scribesAdvancementLevel is initially = 0. The idea is that it 'should' add 1 to the advancement level. The console.log suggests it does, but when the next game tick occurs (i.e. the function is called again), the console.log(machineLevel) is still at 0.  Maybe I'm mistaken about how function arguments can be used to manipulate variables??


Are animals in the matrix real or programs?

There are animals in the matrix. Does this mean that real animals are hooked up to the machine and give it energy and exist in the matrix? Or every time there is an animal seen in the matrix, it's just a program?  I don't think this question is a duplicate of "why there is no animals in the matrix?". Why are there only programmed animals in the Matrix? Why wouldn't they use animals as a source of energy as they use humans?


When is a English dialect considered to be non-grammatical/have non-grammatical phrasing?

So the question is when a dialect of English is considered non-grammatical. I am aware that it can be considered non-standard, however some phrases can be to an extent not to be considered non-grammatical. So where the cases in which it is actually considred non-grammatical. Thanks.


What's equal this:${\frac 12 ^ \frac 13} ^{\cdots \frac1n}$?

I want to know wht's equal this number :${\frac 12 ^ \frac 13} ^{\cdots \frac1n}$, however it's seems trivial that is converge to 1 , but i don't know how i can evaluate it , Really i have two question: the first is : what is the partial sum of it ? and what's equal for n large enough or go to infty ?


New Oxford American Dictionary describes "the" as an adjective

When I look at the definition given from the Mac OS X Dictionary (I have set American English as interface language, and the dictionary used is then the New Oxford American Dictionary), I read:     the /ði/ /ð(ə)/ /ði/ [called the definite article]   adjective   1. denoting one or more people or things already mentioned or assumed to be common knowledge: what's the matter? | call the doctor | the phone rang. Compare with a.   • used to refer to a person, place, or thing that is unique: the Queen | the Mona Lisa | the Nile.   • informal denoting a disease or affliction: I've got the flu.   • (with a unit of time) the present; the current: dish of the day | man of the moment.   • informal used instead of a possessive to refer to someone with whom the speaker or person addressed is associated: I'm meeting the boss | how's the family?   • used with a surname to refer to a family or married couple: the Johnsons were not wealthy.   • used before the surname of the chief of a Scottish or Irish clan: the O'Donoghue.   I have never thought of an article as adjective. Is normally an article defined as adjective?


How to read this LASSO Coefficient Path Plot?

I am seeing this plot  a lot in machine learning literature. But how to read it? In general I know $\lambda$ is increasing from left to right, and we are getting larger coefficients. But  What are the x and y axis? and two scales of each axis?


Click event works with jQuery but not with Vanilla JS

AddEventListener is not working for me. This is what I have tried: const mtRemoveKeywords = document.querySelectorAll('.mt-remove-keyword'); for (let mtRemoveKeyword of mtRemoveKeywords) {   mtRemoveKeyword.addEventListener('click', (e) => {         alert('JS');   }); }  I do not get an error message, so nothing happens. I guess this is because the selector is a dynamic element. I also tried it with windows.onload but that didn't help. The weird thing is that I have tried it with jQuery and that worked! $(document).on('click', '.mt-remove-keyword', function() {      alert('jQuery'); });  Why is it not working with Vanilla JS?


I found a jungle biome in my new Minecraft world, but I'm afraid of cutting down the big trees (the ones that are 2 squares wide and long), because I don't know if I can replant them.  So is it possible to grow new ones with saplings or to spawn them in any other way?


Let $A$ be a matrix, how to show that the left null space of $A$ is the orthogonal complement of the column space of $A$?

Let $N(A^\top)$ be the left null space of $A$  $N(A^\top) = \{x| A^\top x = 0\}$  Let $C(A)^\perp$ be the orthogonal complement of the column space of $A$.  $C(A)^\perp = \{y| y^\top x = 0 \text{ for all } x \text{ in the column space of A}\}$  I want to show that they are equal.  In particular, I want to show that  $C(A)^\perp \subseteq N(A^\top)$    Proof attempt:  Let $y \in C(A)^\perp$, then $y^\top x = 0$.   Since $x$ is in the column space of $A$, there exists some vector $v$ such that $x = Av$, hence $y^\top (Av) = 0$.   This is the same as writing $(y^\top A) v = 0$ or $(A^\top y)^\top v = 0$.    I want to conclude that this implies $A^\top y = 0$ and hence $y \in N(A^\top)$. But this doesn't necessarily have to be the case.  First, $v$ could be zero.   Second, even if $v$ is not zero, you can have the case $(A^\top y)^\top = [-1, 1]$ and $v = [1, -1]^\top$, so $(A^\top y)^\top v = 0$ even though $A^\top y \neq 0$  Can someone please help?


Prove that $n^2+11n+2$ is not divisible by $12769$

My  Attempt :  Prime factorisation of $12769$ is $113^2$  $n^2+11n+2-113^2m=0$  The conjugate of this quadratic equation becomes:  $\sqrt {113 (113m+1)} $  which can never be a rational as (113,113m+1)=1 and 113 is not a perfect square (and its prime )  I belive this method is right,but I am asking for a modular method of doing this, which I believe will be easier. Thanks


Why didn't I get the Mortarboard badge again after I achieved 227 in a single day?

Why didn't I get the Mortarboard badge again even though I achieved 227 in a single day (18-01-2018)?  Removing the tag wiki of 4, it still stands at 223.    Yes, I have gone through the discussion . But the scenario in that question is totally different.


google-chrome install/upgrading failed in ubuntu 13.04

if i try to install, this shows up:  sudo apt-get install google-chrome-stable Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  google-chrome-stable : Depends: lib32gcc1 (>= 1:4.1.1) but it is not installable                         Depends: lib32stdc++6 (>= 4.6) but it is not installable                         Depends: libc6-i386 (>= 2.11) but it is not installable E: Unable to correct problems, you have held broken packages.   if i try to upgrade, this happens:  sudo apt-get  upgrade google-chrome Reading package lists... Done Building dependency tree        Reading state information... Done The following packages have been kept back:   google-chrome-stable 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.   plz, help...


How does this series yield an irrational function

It is well known that the euler number $e$ is irrational. It is also well known that the Taylor expansion of $e$ can be represented as  $$e=\sum_{k=0}^{\infty}\frac{1}{k!}$$ Now, when we look at the term $$T(k)=\frac{1}{k!}\quad\forall k\in\mathbb{Z}$$ We realize that $T(k)$ has to be a rational number for all $k$. How can a sum of rational numbers yield an irrational number $e$? I am not a mathematician, hence all and any help is appreciated.


Rules about using that to describe people?

Can I say, "He is the only person that I know."?  Are there rules about using that to describe people?


How to finish this proof using Cauchy-Schwarz inequality?

What should I do next?   I've tried to show that  $n\sum_{i=1}^n a_i >= \sum_{i=1}^n a_i + n$ but it gets me to sth like:  $\sum_{i=1}^n a_i >= \frac{n}{(n-1)}$  $a_1, a_2... \in R$


Can anyone give me some tips on Lighting in Cycles?

I am using the Cycles render engine. I love the ability to use my GPU for rendering, and I have achieved some nice results texture-wise, but I am having a hard time with lighting.   One problem in particular I've noticed is Hemi and Spot lights don't seem to work.   I also don't know what is the most professional way to setup lighting in Blender. I have heard some people say to use planes with an emitter texture for lighting. Does that work better than lamps?


Is "The Venue in the map" or "...on the map"?

How can it be determined, if the correct version is "The Venue is in the map" or "The Venue is on the map"? And which is correct?


Is it possible to unearn a hat in Winter Bash?

I was thinking: Are users able to unearn hats in Winter Bash? Let's say I was going to delete the answer I did in order to get the Snaphat hat, will I lose the Snaphat hat? (P.S.: Of course I won't do that, that was just a example...) I am just curious if that would happen or not.


The time complexity with conditional statements

How does one calculate the time complexity with conditional statements  i=1 while i<=n     j=1     while i<=n        if i==j           k=1           while k<=j              k+=1              print("hello")        else           print(""world)        j*=2    i*=2   The time complexity is θ(nlgn) or θ(lgn*lgn)?


EM Algorithm seems to work, but Q is not monotonic. Possible reasons?

I have implemented Expectation maximization to fit some of the parameters of a linear Gaussian state space model using Kalman filtering / smoothing.  The model is:  $x(t) = Ax(t - 1) + w(t); w(t) \sim \mathcal{N}(0, Q)$  $y(t) = Hx(t) + v(t); v(t) \sim \mathcal{N}(0, R)$  $m(0) = m_0, P(0|0) = P_0$  // Initial mean and variance  The parameters $\theta$ consist of some of the entries of $A, Q, R$ as well as the initial conditions $m_0, P_0$.  On each iteration of the EM algorithm I (1) set the new initial conditions to $m_0 = \hat{m}(0|T), P_0 = \hat{P}(0 | T)$, where $\hat{m}, \hat{P}$ are the posterior estimates from the smoothing step.  and (2) use a numerical optimizer to maximize $\mathcal{Q}(\theta)$ (the expected log likelihood).  From what I can see on small 2D examples, this step is correctly computing the maximum of $\mathcal{Q}$.  The new initial conditions and new parameters are then fed back into the smoother to do it all again.  To check the correctness of my implementation, I have simulated data from a model with known parameters $\theta_{\text{true}}$ for a variety of sample sizes $N_1, N_2, ...$ (e.g. 100, 1000, ...) and for each of these datasets I run my EM algorithm to convergence to get parameter estimates $\hat{\theta}_1, \hat{\theta}_2, ...$  I am consistently observing that $\hat{\theta}_i \rightarrow \theta_{\text{true}}$, and moreover, this convergence is monotone.  So, it seems quite clear that my implementation is correctly inferring the parameters, and it's estimates improve with more data.  I am also looking at the log-likelihood directly, which can be calculated from the filtering recursion, and this function is increasing monotonically.  So, running my EM implementation is maximizing the likelihood itself as well.  However, during the EM iterations $t = 1, 2, ...$ the function $\mathcal{Q}(\theta^t)$ is not necessarily monotone in $t$ as it should be.  It seems to either increase monotonically (as it should), decrease monotonically, increase and then fall back down before converging, or decrease and then climb back up before converging.  In each case however, parameter estimates are still accurate.  Does anyone have suggestions for how this could be the case?  I have checked and rechecked my code and my math an innumerable number of times, and am not finding any bugs.


I just can't understand the concept of $\lim \sup/\inf$ of sets, even after reading a lot about it. In limit infinum why do we have union sign with intersections (infima)? Can someone explain it very easily? Thank you very much.


Finding roots/zeros for collision detection?

For the most simple of 2D games, I have implemented a posteriori collision detection (overlapping rectangles) on the x/y Cartesian plane, but am now interested in understanding the basics of a priori collision detection...  In the link , I noticed the reference to Newton’s Method.  So, I want to better understand the link b/w finding zeros of an equation and detecting a posteriori collision.    Let's start with the most obvious case of finding roots of an equation:  If you have a projectile's trajectory modeled as a quadratic function, you can find the roots to predict at what time the height will equal zero (or any other constant height, actually, by just solving f(x)=C to be f(x)-C=0 and then finding roots of that expression).    So, as I understand, finding the root can tell me the time at which the object will be at any chosen height.  More broadly, we basically know the (x,y) location of the object for any given time.  But how does root finding, in particular, translate to detecting collisions with another object?  (The other object may be stationary, or be moving.  If the latter, do you also determine roots/location of this moving object as well? Calculate the (x,y) trajectory of both objects and determine where they will intersect?)  Again, the basic question is where does root finding come into play?  Any links to a basic primer on this topic, with a simple example would also be greatly appreciated.


When should we remove pseudo-tags from a title?

Very often you see different forms of "pseudo-tagging" in titles. For example:  c# - how to sniff packets in an app without relying on WinPCap? JS / Jquery: Unable to access the properties of an object returned from an ajax call C++: Using enum as template type argument ...  Some times these can be removed from the title without making the title look weird or non-descriptive. Some other times it's not as obvious:  "MySQL implications of ‘like’ vs ‘join’ query" vs "Implications of ‘like’ vs ‘join’ query" "Can I create a “view” on a Python list?" vs "Can I create a “view” on a list?"    When should the title contain the language it's referring to versus having it on the tags only?


Central axis motor or wheel motor for conversion to electric bike?

I'm planning to convert my "mechanical" bike into an E-bike for riding long distances to work, and I would like to buy only the motor kit since I already have the bike. I can see that I have two options for motor kits: central axis motor and wheel motor (see pictures)   vs   Intuitively, I think the wheel motor is more practical and better since I can keep the gears from the original bike. It's also easier to install/remove. The central axis motor involves more mechanical work and the front gears would vanish, but it is a bit more hidden, so to say.  I can find the same engine power for both options, but I can't figure out which one should I get and I would like to hear your opinion about this. Which one should I go for and why? What are the drawbacks of one and the advantages of the other?  Thank you!


Live Agent button in Lightning Component

Is this possible to develop a lightning component which display Salesforce live agent chat button? Can someone please give me guideline?   I tried putting the Javascript code in the controller but the button doesn't display at all.  I need to integrate the lightning component on Salesforce community which is based on Koa template.