how can partion of single hardisk after install ubuntu

i have new dell laptop with Ubuntu window with single drive 1 Tb so how can part ion in three drive without any risk of my system data


How to encode UTF8 from database with PHP

I have simple PHP test API for my database. It queries MySQL DB and returns JSON. Problem is, some values are in Cyrillic and all I get is a question marks. My PHP code is like this:  <?php mysql_connect ( "localhost", "root", "" ); mysql_select_db ( "uni_database" ); $q = mysql_query ( "SELECT * FROM `students`" ); while ( $e = mysql_fetch_assoc ( $q ) )     $output [] = $e; print  (json_encode( $output ) ); mysql_close ();  ?>   Does anyone know how to encode values from DB to UTF8?


I'm having problems with the Chrome launcher icon for Ubuntu 14.04.  When I open Chrome for the first time, both via the icon launcher (call it icon1) that through any other way, it creates a new icon (call it icon2) in the Launcher; the default behavior, as you already know, should be to modify the clicked icon with a new background and an arrow on the left.  Then, if I move the mouse on icon2, it always display the same title (focus@will - google chrome) even if this page is not open in any chrome window.    Also, I can't use icon2 to open a new window because there is no such option; so if I leave only icon2 as the locked launcher icon, I'm unable to launch Chrome at all. Finally, when I type chrome in the dash, I have three different result.  This problem seems to be related to the last update (not too sure btw). I already tried to remove Chrome (without purge), but nothing changes.


$\subset$ vs $\subseteq$ when *not* referring to strict inclusion

Inspired by the confusion in the comments on :  I always thought that the standard was to read $\subset$ as "is a strict subset of", and $\subseteq$ could mean proper or improper inclusion.  Was I wrong?


I have a little issue. I have a figure made by 5 subifgures. They fill perfectly a page.  The problem is that, when I have some lines of text before the image, the figure goes to the next page without "splitting", so I have a page with only a few lines and, in the other page, my figure, and it's not so pleasant to see.  So I would like to have, for example, a few lines then two subfigures and the other 3 subfigures in the other page and so on. According to the white space.  I searched a bit for similar questions, but I didn't find a similar problem.  Thanks in adivce.


What does a particular part of this equation mean?

I've seen this a couple times. What does the part where y is over k with a space between them? What does this imply? (Below is the Binomial Theorem equation)  $$(x + a)^y = \sum\limits_{k=1}^{\infty}\binom{y}{k}x^ka^{y-k}$$


How do I attach events to dynamic HTML elements with jQuery?

Suppose I have some jQuery code that attaches an event handler to all elements with class .myclass.   For example:  $(function(){     $(".myclass").click( function() {         // do something     }); });   And my HTML might be as follows:  test1 test2 test3   That works with no problem. However, consider if the .myclass elements were written to the page at some future time.  For example:  create link dynamically    In this case, the test4 link is created when a user clicks on a#anchor1.  The test4 link does not have the click() handler associated with it, even though it has class="myclass".  Basically, I would like to write the click() handler once and have it apply to both content present at page load, and content brought in later via AJAX / DHTML. Any idea how I can fix this?


Let $P$ is given permutation. How can I calculate $F$ such that $F*F=P$.


Prove $3 \cdot 5 \cdot 7 \cdot 11 \cdot prime_n = 2k + 1$

It is known that any prime greater than 2 is odd.  How do I show the combinations of all primes greater than 2 is also odd, $2k+1$?  I tried using induction, but what is appropriate for $prime_n$?   $3 \cdot 5 \cdot 7 \cdot 11 \cdot 2k + 1 = 2k + 1$?   Can we use $2k + 1$ to replace $prime_n$ since we know it will be odd?


Is it possible to reset and re-select the skills that I want my followers to have?  I want my Templar to be able to heal more, so I would like to change the skills that I originally selected for him.


Hey all i am hoping someone knows how to set up Server 2012 with auto logon?  I already tried:   But i am unable to find the checkbox that was in 2008 server that said "Users must enter a user name and password to use this computer."  Where else can i go/do in order to do this auto login?


Alignment difference when new questions are loaded on SO

When I clicked on a 1 question with new activity on an SO page, the new question was displayed, but with a visible misalignment from the rest of the questions. Is this intended? Please see the screenshot below.  Browser - 86.0.1 (64-bit) OS - macOS Mojave 10.14.6


How to recover deleted folder in Ubuntu 18.04?

Accidentally, Shift++ deleted a folder from home directory of Ubuntu 18.04, how can recover it? Pls. Its folder not a file ?


The general WKB approximation formula states that $$ \int_a^b\sqrt{E_k-V(x)} = (k+1)\pi \text{ with } x \in [a,b] $$ for a regular Schrödinger equation (without the $\hbar$ and such). However, in the special case of a radial equation, there exists a Langer correction $$ \ell(\ell+1) \rightarrow \left(\ell+\frac{1}{2}\right)^2 $$ as explained for example at  and in more detail at  , but I can't seem to find an analogue easy explained formula as above in the special case of a radial Schrödinger equation.  Edit  The duplicate link explains why there is a shift, but I still don't know if there is a formula analogue to the WKB formula. Do we have to change the right hand side? Does applying the shift makes the formula work? Is there need of a transformation?


What do I do when my computer won't boot after a drop?

I dropped my computer and now when I start it up it says:      Reboot and select proper boot device or insert boot media in selected   boot device and press a key.   I thought turning it back off, then on would work, but I get the same thing. I have a Toshiba.   What should I do?


$$\lim_{x\to-\infty} \frac{\ln(e^x+1)}{x}$$  due to Squeeze theorem and $\lim_{x\to0}\frac{\ln(1+x)}{x}=1$ we have   $$1\leftarrow\frac{\ln(e^x+1)}{e^x}\leq \frac{\ln(e^x+1)}{x}$$  what can be the upper bound of this function, or is there better solution?


Is "a total of 10 payments" singular or plural?

A total of 10 payments were made.   OR     A total of 10 payments was made.   Which is correct? Or can both be correct?


File system is getting full quickly. Most of the directories all full

I was trying to clean my ubuntu system and saw that most of the system directories look 100% full. Is this normal? How can I clean these (if unnecessary) files?


how to prove that $n(n+1)$ can't be square?

Prove: for $n$ is positive integer, it's impossible that: $$\exists k \in \mathbb Z, n(n+1)=k^{2}$$  I know that $(n,n+1)=1$, but the process seems odd using it.


Complaint procedure for visit visa to UK 6 month

Can the sponsor or applicant make a complaint for the decision of visit visa to UK for 6 months ?   What is the procedure or link to do that ?


Style inline code elements (including backticks) with white-space: pre-wrap

While writing , I noticed an annoying issue with the way the StackExchange software formats in-line code snippets (<code>...</code> or `...`) — any groups of consecutive whitespace are collapsed into a single space when the markup is displayed.  For example, if I write this:  To put two spaces between each element, use `array.join("  ")`.   It will be rendered like this:     To put two spaces between each element, use array.join("  ").   Notice that there appears to be only one space between the quotes in the rendered version.  Worse yet, even if you cut and paste the code snippet directly into a program, you'll most likely end up with only one space.  (At least, that's how it works in Firefox, and probably in most other browsers too.)  In posts this isn't so bad, because we can always use full code blocks if we have to, but this problem makes posting white-space sensitive code snippets in comments very difficult.  However, there is a very simple fix for this problem: just add the following CSS rule to the site style sheets:  code { white-space: pre-wrap; }   This will  of preventing browsers from collapsing consecutive spaces into one in code snippets.  Long lines will still wrap normally, so this change won't affect the appearance of most existing code snippets (and, where it does, I suspect the change will be an improvement at least as often as not).  As a minor side effect, this change makes browsers honor line breaks inside in-line code snippets.  I suspect at least some users (myself included) would consider this a useful feature.  If this is not desired for some reason, a simple work-around would be to strip line breaks from code snippets during Markdown parsing.  I've tested the effect of this change in Firefox using a local style sheet, and it seems to work fine.  The white-space: pre-wrap declaration is  (IE7 and older), but in those browsers, the code snippets should simply continue to look as they do currently.    Edit: In the comments below, Dennis describes a workaround using non-breaking spaces (&nbsp;, U+00A0).  This is somewhat inconvenient in comments (or using the backtick syntax in posts), since the non-breaking spaces need to be typed in literally, but it does provide a way to display several consecutive spaces in in-line code snippets if one really needs to.  Still, the existence of this workaround doesn't eliminate the reasons for this feature request stated above.


I’m studying a PhD in Theoretical Physics (quantum field theory, to be specific), but I would like to learn more about black holes (and related areas. Does anyone have any suggestions for textbooks/available notes on these subjects for people without much background in them? Obviously I’m very comfortable with mathematics and physics in general so I’m not looking for “pop science” material.


iOS app 1.4.3, iOS 9.2.1  While viewing a post, the app somehow ended up in a state where it refuses to do much of anything.  What does work:   Swipe-scrolling vertically Jumping to the previous / next post using the up / down buttons    Everything else, though, has no effect:   Swipe-scrolling horizontally will not return to the previous view Tapping on a code block will not zoom to code-block view Tapping Delete button to delete a post will show a confirmation dialog, but saying yes will not cause deletion The Add Comment button brings up the text field, but I cannot type anything in it; I can only dismiss it None of the other buttons (Share, More, etc.) do anything Cannot view user profiles or revision history Tapping on links in a post or comment will not show a web page Tapping on a tag shows some visual feedback with a temporary color change, but doesn't do anything else   I still receive push notifications, but tapping on them doesn't take me anywhere.


if you buy two seats on a flight will you be able to bring on twice the carry-on luggage?

Normally you're limited to one carry on item and one personal item on a plane. But if you bought two seats for yourself would you be able to bring two personal items and two carry on items on the plane?


entire function with constant modulus on circle -Schwarz reflection principle

Let $f(z)$ be an entire function whose modulus is constant on some circle. Show that $f(z)=f(z_0) + c(z-z_0)^n$ for some $n \geqslant 0$ and some constant $c$, where $z_0$ is the center of the circle.   I only know a sketch of the proof, using Schwarz reflection Principle. I would seriously appreciate giving details to it.


How to force a special numbering for a specific equation

I want to introduce a set of chemical reactions (see code below) within a text containing some standard equations. Standard equations should be numbered continuously, but the chemical reactions should be numbered R1-Rn. How can i do that ?  \begin{align}   \ce{CH4} &+ \frac{3}{2}\ce{O2} \rightarrow \ce{CO} + 2\ce{H2O} \label{eqn:hom2}\\   \ce{CO}  &+ \frac{1}{2}\ce{O2} \rightarrow \ce{CO2} \label{eqn:hom3}  \end{align}


What is the minimum intelligence for a cultist under Juiblex or Zuggtmoy?

In Mordenkainen's Tome of Foes one can gain Demonic Boons for joining specific cults, changing one's abilities, spells, resistances and even modify combat abilities. Various Demon-Lords (Juiblex, Yeenoghu and Zuggtmoy specifically) also offer an 'equal penalty' for intelligence, wisdom & charisma (though Yeenoghu leaves 'wisdom' untouched) - and this penalty can be quite severe. Given a loss of four to eight points many otherwise-enthusiastic cultists are left quite mindless, which is the point of the cult, story-wise. But what is the minimum? Inquiring minds want to know:  Cultists: Just how stupid can they get? Low-Ability History: Player Characters in 5e may have a minimum of three and maximum of twenty for any ability score. Note that previous editions even had negative ability scores, especially charisma (this gave fear-aura abilities) - but such a mechanic is not in 5e. Many automatons, oozes and slimes in the first edition of  had 'non-intelligent' or a zero-intelligence score - but with 5e even  have a surprisingly clever score of 3. Even 'utterly mindless' (i.e. 'actually devoid of all brain-matter') undead non-player  only have a penalty of -4 (DM's Guide p.282). So, just to specify &/or reiterate: Do cultist-creatures (humanoid or otherwise) have a minimum intelligence score, if any? Reason for asking: Many spells focus easily on targets with low ability scores, especially those with low wisdom - this would change game-play. Also, if any creature's lowest score was below that of a , the target may enter a non-ambulatory &/or . If this reduction were allowed to go below zero, one must assume instant death for any such gormless person joining such cults (this is a very possible and reasonable ruling - demonic cults are not known for their kindness nor protection of specific minorities). Thus, any rulings - even  ones - would be welcome.


Finding the minimal polynomial of $\sqrt 2 + \sqrt[3] 2$ over $\mathbb Q$.

I have to find the minimal polynomial of $\sqrt 2 + \sqrt[3] 2$ over $\mathbb Q$. The suggested way of doing it is to prove that $\mathbb Q[\sqrt 2 + \sqrt[3] 2]=\mathbb Q[\sqrt 2,\sqrt[3] 2]$ first.  I can prove that. It's enough to prove that $\sqrt 2,\sqrt[3] 2\in \mathbb Q[\sqrt 2 + \sqrt[3] 2]$ and that $\sqrt 2 + \sqrt[3] 2\in \mathbb Q[\sqrt 2,\sqrt[3] 2]$. The latter is obvious and $\sqrt[3] 2\in \mathbb Q[\sqrt 2 + \sqrt[3] 2]$ will follow from $\sqrt 2\in \mathbb Q[\sqrt 2 + \sqrt[3] 2].$ It remains to prove $\sqrt 2\in \mathbb Q[\sqrt 2 + \sqrt[3] 2].$  For $\alpha=\sqrt 2 + \sqrt[3] 2,$ we have   $$ \begin{eqnarray} &\alpha^0&=1,\\ &\alpha^1&=\sqrt 2 + \sqrt[3] 2,\\ &\alpha^2&=2+\sqrt[3]4+\sqrt 2\sqrt[3]2\\ &\alpha^3&=2+2\sqrt 2+6\sqrt[3]2+3\sqrt 2\sqrt[3]4\\ &\alpha^4&=4+4\sqrt 2+12\sqrt[3]4+8\sqrt 2\sqrt[3]2\\ &\alpha^5&=32+4\sqrt 2+20\sqrt[3]2+4\sqrt 2\sqrt[3]2 \end{eqnarray} $$  If I can express $\sqrt 2$ as a linear combination of $\{\alpha^0,\alpha^1,\cdots,\alpha^5\}$, I'm done. I don't know how to find out whether $$\{1,\sqrt 2,\sqrt[3]2,\sqrt[3]4,\sqrt 2\sqrt[3]2,\sqrt 2\sqrt[3]4\}$$ are linearly independent over $\mathbb Q$ but I think I don't have to care. I can use Gaussian elimination anyway. I write the matrix  $$\left[ \begin{array}{rrrrrr|r} 1 & 0 & 2 & 2 & 1 & 8 & 0\\ 0 & 1 & 0 & 2 & 1 & 1 & 1\\ 0 & 1 & 0 & 6 & 0 & 5 & 0\\ 0 & 0 & 1 & 0 & 3 & 0 & 0\\ 0 & 0 & 1 & 0 & 2 & 1 & 0\\ 0 & 0 & 0 & 3 & 0 & 5 & 0 \end{array}\right]$$  and by performing row operations I obtain a row echelon form, which proves that I'll obtain the reduced row echelon form if I want, which will give me the desired coefficients $a_0,\cdots,a_5$ such that   $$\sqrt 2=\sum_{i=0}^5a_i\alpha^i.$$  I don't have to find the coefficients -- I'm just satisfied with their existence.  If this is correct, I have proven that   $$\mathbb Q[\sqrt 2 + \sqrt[3] 2]=\mathbb Q[\sqrt 2,\sqrt[3] 2].$$  But I don't know how to proceed further. Of course, I can find the minimal polynomials of $\sqrt 2$ and $\sqrt[3] 2$ over $\mathbb Q$ but I don't know how to find the minimal polynomial of $\sqrt 2$ over $\mathbb Q[\sqrt[3]2]$ or the minimal polynomial of $\sqrt [3]2$ over $\mathbb Q[\sqrt 2].$  What I did is this. I wrote the equation  $$x=\sqrt 2+\sqrt [3]2$$  and by squaring and cubing obtained  $$W(x):=x^6-6x^4-4x^3+12x^2-24x-4=0.$$  I belive this is the required polynomial but I would need to prove that it's irreducible over $\mathbb Q.$ Eisenstein's criterion doesn't work, which means I'm lost.  Could you please help me with this? I would like to know three things.  1) Is my proof of $\mathbb Q[\sqrt 2 + \sqrt[3] 2]=\mathbb Q[\sqrt 2,\sqrt[3] 2]$ correct?  2) How can I use this fact? I believe it's supposed to make the solution easier to find.  3) How can I tell whether $W(x)$ is reducible over $\mathbb Q$ or not?  EDIT: 1) has been answered by André Nicolas in a comment. All of this answers 3) but I would like to ask whether we could know that the polynomial is irreducible without knowing that $\sqrt 2+\sqrt[3]2$ is its zero. Also, it would be to know whether  4) there is a theorem that would give me $\mathbb Q[\sqrt 2 + \sqrt[3] 2]=\mathbb Q[\sqrt 2,\sqrt[3] 2]$ without the need of performing the Gaussian elimination?  For these numbers it was possible to do, but a bit higher dimension and it would turn out impossible without a computer.


How to turn off invalid keypress beep in gnome-terminal?

Its very loud and unpleasant and I just know the settings for the terminal bell. But the terminal bell is useful and way more pleasant tune.


I am attempting to start MySQL with SELinux on CentOS 6 however I am getting the following error.      131212 09:08:08 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended 131212 09:08:58 mysqld_safe Starting mysqld daemon with databases from /u/mysql 131212  9:08:58 [Warning] Can't create test file /u/mysql/webserver.lower-test 131212  9:08:58 [Warning] Can't create test file /u/mysql/webserver.lower-test ^G/usr/libexec/mysqld: Can't change dir to '/u/mysql/' (Errcode: 13) 131212  9:08:58 [ERROR] Aborting   We have setup MySQL with many other servers however the difference here is that the mysql datadir is in a different partition than the standard /vat/lib.mysql. Instead it is in /u/mysql.  Here is the /etc/my.cnf  [mysqld] datadir=/u/mysql user=mysql # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0  max_allowed_packet = 32M  [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid   Here are the permissions for the mysql dir  drwxr-xr-x. mysql    mysql    system_u:object_r:mysqld_db_t:s0 mysql   and here are the permissions for one of the directorys in the /u/mysql dir  drwx------. mysql mysql system_u:object_r:mysqld_db_t:s0 databasefolder   Does anyone have any ideas on how to fix this? I can confirm that turning SELinux off resolves the issue so it has to be some sort of SELinux permissions issue.  Thank you


This is my jQuery function:  var flashField = function ($field) {     var colour = $field.css('background-color'); // gets colour ok     $field.css( 'backgroundColor', '#FF0000' ); // sets background ok     $field.animate({ 'backgroundColor': colour }, 1500); // nada }   I want to grab the element's current background, switch it to red and then fade back to the original colour.  However the animate function doesn't do anything and no errors are shown in the console.  What have I done wrong? Have tried searching but can't find anything that shows bad syntax or whatever.  (testing in Chrome 45.0.2454.93 m)


Resolve build errors due to circular dependency amongst classes

I often find myself in a situation where I am facing multiple compilation/linker errors in a C++ project due to some bad design decisions (made by someone else :) ) which lead to circular dependencies between C++ classes in different header files (can happen also in the same file). But fortunately(?) this doesn't happen often enough for me to remember the solution to this problem for the next time it happens again.  So for the purposes of easy recall in the future I am going to post a representative problem and a solution along with it. Better solutions are of-course welcome.     A.h  class B; class A {     int _val;     B *_b; public:      A(int val)         :_val(val)     {     }      void SetB(B *b)     {         _b = b;         _b->Print(); // COMPILER ERROR: C2027: use of undefined type 'B'     }      void Print()     {         cout<<"Type:A val="<<_val<<endl;     } };       B.h  #include "A.h" class B {     double _val;     A* _a; public:      B(double val)         :_val(val)     {     }      void SetA(A *a)     {         _a = a;         _a->Print();     }      void Print()     {         cout<<"Type:B val="<<_val<<endl;     } };       main.cpp  #include "B.h" #include <iostream>  int main(int argc, char* argv[]) {     A a(10);     B b(3.14);     a.Print();     a.SetB(&b);     b.Print();     b.SetA(&a);     return 0; }


I am trying to detect spaces on textarea my code is following  textarea.value.replace(/\s/g, '&nbsp;');   but it detects all whitespaces and I want to detect only spaces...  is any solution??


So I have a UTF8MB4 database on phpMyAdmin for MySQL, and I'm using PDO in PHP for interacting with my database, and I really want to know, just to be 100% sure that the 'bindValue' function really escapes data, I've heard that the SQL Query and the data is sent differently but I want to know if it's true, is there any way 'bindValue' can be bypassed where SQL injection can occur?  Example Code:  $db = new PDO(...);  //Notice how I'm not sanitizing $_GET, is this okay? $query = $db->prepare("SELECT * FROM table WHERE Username = :username"); $query->bindValue(":username", $_GET["username"]); $query->execute(); echo "Rows: " . $query->rowCount();  while($row = ...) {     echo $row["Username"]; }


How to sort the second column in descending order?


How to click dynamically added div with jQuery?

I have empty div that appends another div with jQuery function:
 //comes on start
delete
 //will be dynamically created
   I want event on a click:  $(document).ready(function() { $("#delete").click(function(){ console.log("delete"); }); }   But nothing happens on a click. How to make it work?


Are all the square roots of non-square numbers surds?

Quite self explanatory really, basically, are $\sqrt5 ,\sqrt3$ and $\sqrt7 $ and surds? (So basically, every square root of any non-square number)


I have been having this problem recently. Everytime I add a ppa it says click enter, so it succeeds. Then I need to run sudo apt-get update in order to update the ppa. So when I run this this comes up.


Wireless Nic not Claimed on Lenovo Laptop

I have been working on this for over 6 months and I have yet to find a resolution. OS: mcooper@ohLentLT:~$ cat /etc/lsb-release  DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"  Laptop is: Lenovo IdeaPAd L340 At the prompt I ran: sudo lshw -C network *-network UNCLAIMED               description: Network controller        product: RTL8821CE 802.11ac PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:01:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: ioport:3000(size=256) memory:d0700000-d070ffff  It's sad I know but I am not sure where to go from here: believe me when I say I am researching this all the time. I appreciate any help I cna get with this. Thanks Again. Michael


Visual Impact Assessment in QGIS or GRASS

Is it possible using QGIS or GRASS to perform a Zone of Visual Impact assessment? E.g. where can a 100m high structure be seen at a viewing height of 1.8m within 30km, taking into account elevation (also maybe buildings and wooded areas)? I'm pretty new to GIS but am having to learn pretty quickly for work. Any help would be much appreciated.


How can I create entirely new data types with BibLaTeX/Biber?

The title is pretty self-explanatory. I need something similar to , but for completely new entry types. (IIUC, the linked just shuffles one type onto another.)  I'm trying to define a @stackexchange type where I can cite StackExchange questions:  @stackexchange{se:l3help,   sitekey = {tex},   % sitetopic = {\TeX, \LaTeX, Con\TeX t, and related typesetting systems},   askid   = {45838},   title   = {What can \textit{I} do to help the \LaTeX3 Project},   askdate = {2012/02/26} }   where id must match the regexp [0-9]+, asked is a date, and sitekey provides a hard-coded mapping to the appropriate sitetopic when available. If sitekey isn't available, then sitetopic is required.  If sitetopic is supplied, then it overwrites the mapping from sitekey.  id, title, and asked are all required.  If there are any other fields you think should be included, feel free; I tried to pare down the data type only to the 'special' ones.  I would hope that this Q can cover most of the bases for different ways fields can act.  MWE (Adapted per comments)  \begin{filecontents}{references.bib} @stackexchange{se:l3help,     sitetopic = {tex},     title   = {What can \textit{I} do to help the \LaTeX3 Project},     askdate = {2012/02/26},     askid   = {45838},     askp    = {Brent Longorough},     askerid = 344,     ansp    = {Frank Mittelbach},     anspid  = 10109,     ansdate = {2012/03/01},     ansid   = 46427   } \end{filecontents} \begin{filecontents}{stackexchange.dbx} \DeclareDatamodelEntrytypes{stackexchange} \DeclareDatamodelFields{   sitekey,   sitetopic,   askdate,   askedit,   askid,   askp,   askpid,   ansp,   anspid,   ansid,   ansdate,   ansedit} \DeclareDatamodelEntryfields[stackexchange]{   sitekey,   sitetopic,   askdate,   askedit,   askid,   askp,   askpid,   ansp,   anspid,   ansid,   ansdate,   ansedit,   title} \end{filecontents} \documentclass{article}  \usepackage{csquotes} \usepackage[datamodel=stackexchange,backend=biber]{biblatex} \addbibresource{references.bib}  \newbibmacro*{stackexchangequestion}{%   \mkbibquote{\printfield{title}}   \mkbibparens{\printfield{askid}}   \addperiod }  \newbibmacro*{stackexchangeask}{%   Asked \mkbibdatelong{\printfield{askdate}}%     \iffieldundef{askedit}{}{ \mkbibparens{edited \mkbibdatelong{\printfield{askedit}}}}%   by   \printfield{askp} \mkbibparens{\printfield{askpid}}   \addperiod }  \newbibmacro*{stackexchangeans}{%   Answered \mkbibdatelong{\printfield{ansdate}}%     \iffieldundef{ansedit}{}{ \mkbibparens{edited \mkbibdatelong{\printfield{ansedit}}}}%   by   \printfield{ansp} \mkbibparens{\printfield{anspid}}   \addperiod }  \newbibmacro*{stackexchangesite}{%   \printfield{sitetopic}}  \DeclareBibliographyDriver{stackexchange}{%   \usebibmacro{bibindex}%   \usebibmacro{begentry}%   \usebibmacro{stackexchangequestion}%   \usebibmacro{stackexchangeask}%   \usebibmacro{stackexchangeans}%   \usebibmacro{stackexchangesite}%   \usebibmacro{finentry}}  \begin{document}  \cite{se:l3help}  \printbibliography \end{document}   Throws a Missing \endcsname error, likely caused by misuse of \usebibmacro.


I am going to pack a new computer for myself and I thought about Xeon series as main processor. Xeons tend to have very big caches even up to 32MB. And here is a question:  Is it a big advantage to have a big cache in everyday application? How does it impact on games, CAD drawings, browsers etc?


Which special variables are available when writing a shell command for a context menu

When extending the Windows' shell context menu (e.g. for adding an 'Open command here' prompt on directories), a 'command' key needs to be created in the registry.  The value of this 'command' key apparently can be any valid command line.  I want to know which 'special variables' are available for use inside this command line.  For example, I use following command for opening a cmd window from within a directory's context menu (*):  cmd.exe /e:on /f:on /s /k pushd "%V"   I cannot find any reference to what %V actually means or what the full list of such variables is.    (*)    Following registry keys are created for this:  [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmdshell] @=Open Command Prompt Here"  HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmdshell\command] @="cmd.exe /e:on /f:on /s /k pushd \"%V\""


I would like to . Apparently this is possible as of Minecraft 1.4.2, so how do I do it?


Creating separate table to keep track of a specific column using TIMESTAMP data type

I've a mysql table which has two columns changes frequently. One is  "available"(mainly 0,1) & the other is  "notification_preference". Now, I wanna create a "updated_at" column to keep track of of the changes of "available" column.  I've learnt that TIMESTAMP type updates automatically if a column of the corresponding row changes. I want to use "updated_at" column to keep track only of the "available" column.  So the question is, should I create a new table with "available" & "updated_at(TIMESTAMP)" or keep data in the same table and change the "updated_at" table manually? The main table is the following :   ...........................................  id                int  name              varchar  username          varchar  password          varchar  available         tinyint  updated_at        DATETIME  What I'm wanting to do is :  Main Table  ...........................................  id                int  name              varchar  username          varchar  password          varchar  available         tinyint  updated_at        DATETIME  Another Table for available  ...........................................  user_id  available         tinyint  updated_at        TIMESTAMP  which procedure is better?  There are other columns in the main table that might change sometimes, so I can't use TIMESTAMP for "updated_at" in the main table. Because if other columns of this table get updated, then "updated_at" will be updated too, but I don't want this. Thanks in advance.


How do I swap the Windows and Control keys in Windows?

I'm used to a Mac keyboard and that means my finger expect to find the shortcut key to the left of the spacebar. How can I turn the Windows key--command (⌘) key on a Mac keyboard) into the Control key and vice versa?


I'm starting to think about protecting my inputs from SQL injection. I've read about PDO and mysqli and will be using those techniques. While I was researching protection against SQL injection, I had a thought about a technique. Whenever I have an input from a user, I could scan the input string and search for occurrences of "'" or "DROP" and if the string contains those characters, then I could just not proceed. Would this technique prevent a lot of SQL injection?  Thanks for your help.


Session variables are apparently not working for me. I don't know what I'm doing wrong. This is the code that I'm using to check for a valid password:  if ($input_password_hash == $password_hash)  {   session_start();   $_SESSION['is_user'] = 1;   header("Location: ../new_look"); //or Location: index.php  } else echo "Wrong password.";   in the index.php file (where it redirects to), I have this code:  if ($_SESSION['is_user'] == 1) {   //show index page with navigation bar for registered user }  else {  //do something else }   but it's not working at all.  The session does apparently start and that can be verified by checking the cookie.  What am I doing wrong?


It's common knowledge that the word 'TeX' was inspired by the Greek word 'τεχ' pronounced "tech".   Just for satisfying my curiosity, anyone knows from where comes the letters 'La' in LaTeX?


I can't install flash on ubuntu 14.04 to play facebook games, videos or youtube videos

I can't install flash on Ubuntu 14.04 to play facebook games, videos or youtube videos.  I'm using firefox. I've installed Ubuntu restricted extras.


Which of the following is correct?      There has to be rules and regulations.     There have to be rules and regulations.


I have a text file abc.txt and its contents are:     /lag/cnn/org/one.txt    /lag/cnn/org/two.txt    /lag/cnn/org/three.txt   If I use:  $ tar -cvf allfiles.tar -T abc.txt   I'm getting the tar of files in the list. Similarly is it possible to copy those files in abc.txt to a folder?  I tried this:              $ cp --files-from test1.txt ./Folder   But it is not working.


which package has / creates terminfo files?

I was trying the new xubuntu 20.04 beta today, and wanted to report a bug concerning the terminfo files (the terminfo for xterm-256color has an escape sequence that older vte/terminals don't recognize, so when ssh'ing in to 20.04 from 18.04, vi becomes unusable, see ).  However, I can't find the package the terminfo files come from:  # ls -l /usr/lib/terminfo/x/xterm-256color -rw-r--r-- 1 root root 3503 Feb 26 08:14 /usr/lib/terminfo/x/xterm-256color # dpkg -S /usr/lib/terminfo/x/xterm-256color  dpkg-query: no path found matching pattern /usr/lib/terminfo/x/xterm-256color # apt-file search /usr/lib/terminfo/x/xterm-256color  (no output at all) #   apt list installed | grep terminfo doesn't list anything either.  I assumed the files get generated from some source during install, but that doesn't match the date (Feb 26 is way older than my install), and the file itself isn't a link to some other file, checking the link count.  So, which package is actually responsible for terminfo files, and how do I find out?


What are the available options for password protecting a folder? I'm talking about requiring a password to actually access the folder, not just user access rights. Is the third-party software out there secure and stable? What are the recommendations?


Why can't I post this to Stack Overflow? It's giving me an error

Error Message:  Oops! Your question couldn't be submitted because: Please add some context to explain the code sections (or check that you have not incorrectly formatted all of your question as code).  How do I fix this issue? It says that I need to explain my code more when I try to post this as google-apps-script. I have explained almost every part of the code. Also, this code was posted previously and I just added a few extra lines with explanations. What do they mean by "context" function doGet() {   var app = UiApp.createApplication();   //Create listBox   var listBox = app.createListBox();   //Add items to listBox   listBox.addItem("item 1").addItem("item 2").addItem("item 3").setName("myListBox");   //Create hidden app   var hidden = app.createHidden().setName('hidden').setId('hidden')   //Create button handler   var handler = app.createServerHandler("buttonHandler");   // pass the listbox into the handler function as a parameter and the hidden widget as well   handler.addCallbackElement(listBox).addCallbackElement(hidden);    //Create flextable   var table = app.createFlexTable().setId("myTable");    //Create flex table style attributes     table.setStyleAttribute("border-style", "solid")     table.setStyleAttribute("border-width", "1px")     table.setCellPadding(1);      //Create flex table headers   table.setWidget(0, 0, app.createLabel("Product Type")).setStyleAttribute("color", "blue");   table.setWidget(0, 5, app.createLabel("Size"));    var button = app.createButton("+", handler);    // add all widgets to the app   app.add(table).add(hidden);   app.add(listBox).add(button)   return app; }  function buttonHandler(e) {   var app = UiApp.getActiveApplication();   // get the position (is a string)   var pos = e.parameter.hidden;   // initial condition, hidden widget is empty    if(pos==null){pos='0'};   // convert to number    pos=Number(pos);   var table = app.getElementById("myTable");   // add the new item at the right place   table.insertRow(pos).insertCell( pos, 0).setText(pos, 0, e.parameter.myListBox);   // increment position   ++pos;   // save value   app.getElementById('hidden').setValue(pos);   // update app   return app; }


Latex Back Referencing Overfull \hbox Problem with hyperref

I encountered an issue with hyperref, as I wrote a long thesis. I have to \cite{} some references very often, then the back referencing becomes longer than one line (see the picture below). When this happens, I encounter the "Overfull \hbox" warning, which I really do not like (I want the output message without any warning and error). People seldom cite one reference in many pages, however, this is what I have to do. Since the back referencing number (links) becomes long, and do not break into multiple lines, this "Overfull \hbox" warning seems will not disappear, as I am continuing expanding my document pages (and citations to the same reference). Are there any way to suppress this warning, or a command to make long back referencing into multiple lines? Thank you very much!  This is one example with long backref, which encoutered the "Overfull \hbox" warning. The below is how I use the [hyperref] package. \usepackage[bookmarks=true, %only needed for PDF generation colorlinks,linkcolor=blue,citecolor=magenta,urlcolor=cyan, %link/ref/url colors linktoc=page,backref=page]{hyperref} %%backref=page in hyperref: back references in bibliography to show pages# of cited reference \hypersetup{breaklinks=true} The warning is at \openout9 = `TestBackref.brf'. Overfull \hbox (15.64209pt too wide) in paragraph at lines I finally put a link for minimal working example with bibliography (MWEB) at this link:


I have an idea of blender plugin where can i post it

I have an idea of blender plugin [in details] where can i post this idea hope some one make it real


How do I log every command executed by a user?

I want to monitor all user's activity in my server.  Even when the user executes a shell command from some editor like vim I want to see them in the log file.  I have checked the tool acct but it is not listing the complete commands. (Please correct me if I have missed some options which does already).  Which Linux tool I should be looking at to solve this problem?


does anyone understand why the code is returning empty array   $name = 'login'; $data = 'user2'; $sql = 'SELECT :name FROM test.users WHERE :name=:data'; $sth = $dbh->prepare($sql); $sth->execute([':name' => $name, ':name' => $name, ':data' => $data]); $res = $sth->fetchAll(); var_dump($res);


can I format c drive while ubuntu installed in other drive

I have dual boot my computer on a single HDD having windows in C drive and ubuntu installed in other drive. Can I format C drive and reinstall windows in C drive without affecting Ubuntu which is already installed ? Do I need to follow any specific path to do so or I should proceed with normal procedure.  I am facing one more problem that, Previously I was not able to access windows drive from ubuntu So I tried solution given on  . After that I was able to access but now again I am unable to access the drives. Please help me with the best solution for the above two mentioned problems


Background  My friend derived that $$i^i = e^{-(4m+1) \frac {\pi}{2} }$$ (though he was unaware about such thing earlier!). Initially my reaction was that there might be some flaw in the derivation process but after checking it thoroughly it felt genuine. Now while trying to find more about it I found  article which validates his derivation. Even though now I know it is correct but I don't know know about its mathematical significance.   Elaboration  I am quite comfortable with integral powers but when it comes to non-integral powers it becomes quite tough. For example when we ask what is $2^{1/3}$ it becomes a bit tougher but still it is a bit understandable that we are being asked of a number whose cube is 2. Then comes irrational part though it being much harder is still understandable like when asked about $2^{\pi}$ I can say that it is equal to $$2^3 \times 2^ \frac{1}{10} \times 2^ \frac{4}{100} \times 2^ \frac{1}{1000} \times ...$$. But then comes this $i^i$ which I can't understand even a little bit   Question  So the questions are:   Can it be visualized in some way as is depicted above and if possible can you also explain it with ?(Most Important)  What is its mathematical significance?    Thanks in advance.     EDIT   YouTube video gives a somewhat the answer I expected for this question but to a different question related to the visual interpretation  of $e^{\iota \pi} = -1$.


What is the most concise script to list the missing ones in a digit sequence?

For example,  we have the content  001 002 004 008 010   in a text file named file, how to extract the missing 3 5 6 7 9?


Which Pokémon games can I use to trade Pokémon with the Sun and Moon versions?

I would like to trade Pokémon from my previous games to my Pokémon Sun/Moon version. Which Pokémon games/tools can be used to realize those trades?


Cannot run Python3 script from subfolder // relative import error

I have a simple project structure like this:  ➜  (venv:evernote) evernote_bear_project git:(master) ✗ tree | grep -v pyc . ├── README.md ... (snip) ... ├── manage.py ├── sample │   ├── EDAMTest.py    <==== here is an import that won't work │   └── enlogo.png └── util     ├── __init__.py     ├── files.py        <====== This is being imported     └── test_files.py   Now I have a relative import in sample/EDAMTest.py:  from ..util.files import *    When I try to run python sample/EDAMTest.py from project root folder in command line, I get an error saying:  ValueError: attempted relative import beyond top-level package   I know this has been asked many times, but I still don't get it.  Since I'm running the script from the project root, in my understanding Python should be able to "know" that when I try to import from ..util.files import *, that it should go up one directory, no?    EDIT  Thanks for all the answers.   So what I understand from the link  is this:   I was running the module sample/EDAMTest.py directly via python sample/EDAMTest.py, and that meant    that the __name__ of the module was __main__  and now the path (sample/) was my "root" so to speak.    So now Python searches only this path and any path that's below it for modules / packages. Hence the error message attempted relative import _beyond top-level package_, so it cannot go one more level up, because it is at the root already.  Also Python cannot look one level "up", since this syntax from ..util.files import * does not go up a level in directory, but in a list of modules / packages it keeps on the "import search path" (sys.path)?  Is that correct?


How do I see which comment flags have been declined?

I have previously flagged a comment and the flag has been declined. I am perfectly happy for the flag to have been declined but I would like to know which comment it is so that I can possibly learn from it.  Is it possible somewhere in my profile to view this? If not, should it be possible?


Why does the figure jump to the next page?

I have the following latex file for the figures. The figures are read successfully but it does not align itself in the desired space between horizontal text lines, instead it jumps to the next page. For instance:  [first some sentences...........................................................................................................] [I want my figures to be in this line....................................................................................................] [Next some sentences.............................].      Please find my latex file below:  Let us consider the following graphs:   \begin{figure}{} \centering \begin{subfigure}{.5\textwidth}   \centering \includegraphics[height=5.8em]{C:/Users/abc/Documents/formula1}   \caption{Fig: $G_1~~~~~~~~~$}   \label{fig:sub1} \end{subfigure}% \begin{subfigure}{.5\textwidth}   \centering \includegraphics[height=5.8em]{C:/Users/abc/Documents/formula2}   \caption{Fig: $G_2~~~~~~~$}   \label{fig:sub2} \end{subfigure} \begin{subfigure}{.5\textwidth} \centering \includegraphics[height=7.8em]{C:/Users/abc/Documents/formula3} \caption{$G_1\triangledown G_2$} \label{fig:sub2} \end{subfigure} \label{fig:test} \end{figure} In the graph $G_1$, the pair of non adjacent vertices whose end vertices are not $G_2$ are (5, 4) and (5, 6).     Note. I want my figures to be aligned in the space between 'first some sentences' and 'next some sentences' as mentioned above, but here it jumps to the next page


What does the two speech bubbles notification icon means?

What does the two speech bubbles icon (second from the left) in the notification bar mean?


Symbolizing vector features using RGB values stored in three fields using ArcPy?

I need to symbolize a vector layer in Arcmap based on RGB (or HSB - can do either) values found in fields in the attribute table. I'm working with up to 10 different datasets, each with over 100 features. As a result, I can't manually adjust each feature's fill attribute, nor can I use a template .lyr file and then apply its symbology.  Is there a method via Arcpy that I can use to perform this?   Looking at the documentation it appears that symbology isn't exposed to Arcpy but I'm not familiar enough to know for sure.   Otherwise, are there any third-party scripts or tools that can accomplish this?


If two continuous functions are equal almost everywhere on $[a,b]$, then they are equal everywhere on $[a,b]$

Suppose $f$ and $g$ are continuous functions on $[a,b]$. Show that if $f=g$ almost everywhere on $[a,b]$, then, in fact, $f=g$ on $[a,b]$. Is a similar assertion true if $[a,b]$ is replaced by a general measurable set $E$?  I have known that the set $A=\{x \mid f(x) \neq g(x)\}$ has measure zero and we want to show that A is empty. Now let's assume $A$ is not empty. I am stuck in getting the contradiction.  Thanks for your hints and answers.


Using arcpy.gp.Int_sa in ArcMap gives Error 000824 tool is not licensed?

My Arcpy code is not working in ArcMap 10.1 because an error with the last line:      Error 000824: The tool is not licensed.    I have all my extensions turned on, so I don't know why I would be getting this error. It seems I only need to import arcpy.sa.   Did I do this correctly, or are there other modules that should be imported for this code to work?  import arcpy, os, string, glob, sys from arcpy import env from arcpy.sa import *  env.workspace = r"C:\VMshared\small_example_valley8\SD2part" outFolder = r"C:/VMshared/small_example_valley8/SDpartINT/INT"  for rasterFile in arcpy.ListRasters("*.tif"):     oName, oExt = os.path.splitext(rasterFile + ".tif")     outRaster = os.path.join(outFolder, oName + ".tif")      arcpy.gp.Int_sa(rasterFile,outRaster)


Show that the image of the function $f:(0,\infty)\rightarrow \mathbb{R}$, $f(x)=x+\frac1x$ is the interval $[2,\infty)$.

Show that the image of the function $f:(0,\infty)\rightarrow \mathbb{R}$, $f(x)=x+\dfrac{1}{x}$ is the interval $[2,\infty)$.   If $x=1$, then $f(1)=2$. So how can I show that the mage of the function is the interval $[2,\infty)$?


Finding duplicate records in field using ArcGIS for Desktop?

I'm looking for duplicate records in dbf files based upon the attribute called 'ID'. I have various dbf files from 500,000 records to 1.5 million and I know there are a host of duplicates.   I would like to add a field 'Duplicate' that says Yes or No (or 1 or 0 is fine) when the ID attribute is present elsewhere. Using the following python script in Field Calculator returns 1 for a duplicate entry and 0 for unique entry;  uniqueList = [] def isDuplicate(inValue):   if inValue in uniqueList:     return 1   else:     uniqueList.append(inValue)     return 0 isDuplicate(!FIELD_NAME!)   However, the 1st record of, for example, 5 duplicate IDs will also be returned as a 0 (the subsequent 4 are considered the duplicates). I would need all 5 to be marked as duplicate as the ID exists elsewhere.  Using the following code will give you an incremental count of how many times that ID occurs with 1 meaning the 1st occasion and so forth;  UniqueDict = {} def isDuplicateIndex(inValue):     UniqueDict.setdefault(inValue,0)     UniqueDict[inValue] += 1     return UniqueDict[inValue]  isDuplicateIndex( !YOUR_FIELD! )   I just want a 1 (or Yes) if the ID of that record exists elsewhere! (ArcGIS version 10.1)  I have seen other answers such as  but it doesn't quite work.


GDAL vsi (vsis3, vsizip, vsicurl) usage inside Geoserver as URL

I am trying to use vsi (vsis3, vsizip, vsicurl) from GDAL extension to read file directly from S3. i have already loaded GDAL Native Library (version: 2.4.4) into Geoserver. i can not use /vsis3/bucket/key as URL while i am trying to add new store in Geoserver. do you know how can i use vsi (vsis3, vsizip, vsicurl) inside Geoserver as URL?


Once I asked this question from my teacher and he replied "Because it passes light.". "And why does it pass light?" I asked and he said, "Because it is transparent.".  The same question again, Why glass is transparent? Why does light pass through it, while for opaque objects, it does not?


Shame him into not shooting: multiple stress tracks in a single conflict

If you insult the hitman enough, will he stop shooting at you? It doesn't seem likely, but that brings into play a question about whether some stress tracks are "more important" than others: If you shoot the clown, he'll probably stop making fun of you. This implies that physical conflict 'trumps' social conflict.  Which is important, because a lot of creatures (including PCs) tend to have much smaller tracks in some conflict types than in others. Mocking a hitman is a lot easier than punching him, but is that relevant when he's shooting you?  (Obviously you can also use his poor social defenses to drop aspects on him that can be tagged for various advantages, but I'm talking about actual attacks against his social stress track.)   Can being taken out on one track (say, social) cause you to stop being able to participate in a conflict focused on a different track (physical, mental)? If so, is there a clear priority of which conflict type trumps another?   There is some interesting precedent in the Hunger stress track from DFRPG: it's pretty clear that while being taken out by Hunger takes many choices for a Red Court Infected or White Court Virgin out of their player's hands, that character is still in the game for physical conflict (and arguably for the Virgin, social conflict) --otherwise it'd be very hard to satisfy the Hunger.  Or is this just so situational that the only possible answer is a throwing up of hands?


Show: $$\sum_{k=1}^{n-1} k·k!=n!−1$$ via combinatoric proof. I know how to prove via induction but not via combinatorial method.


How can I use an hbox inside a TikZ environment for text dimension measurement?

I'm trying to use an \hbox to measure the dimensions of a certain text. This is working in normal text as in the following example: \setbox37=\hbox{this is a text that I want to measure} text width is \the\wd37, text heigh is \the\ht37\\ text contents: \box37  The output is correct as I expected: text width is 159.63913pt, text heigh is 6.94444pt text contents: this is a text that I want to measure However, when trying to do the same inside a TikZ environmnet, the box I'm using is not assigned the text I pass to \hbox, instead I gets empty box with zero width & height. Here is the code: \begin{tikzpicture}   \setbox37=\hbox{this is a text that I want to measure}   \node[draw] at (0,0) {text width is \the\wd37, text heigh is \the\ht37};   \node[draw] at (0,-1) {text contents is \box37}; \end{tikzpicture}  And here is the output:  What am I missing here?


Making a buffer - degrees instead of meters

I just started working with GIS very recently.  I'm trying to create a buffer of 200m around the points of the layer "vlaamse venen naamloze laag". But in the distance box, the program will only allow me to create a buffer in degrees? I checked the project properties, but they are in meters.     I tried using this question, () but I can't figure it out.  Changing the CRS of the layers makes that the distance is put in meters but then i have a different problem. If I change them (e.g. to Lambert 72 or Lambert 2008), my layers dont overlap anymore, which they should.


I've been try to download Xcode for work, but for some reason the Mac App Store is giving me a bit of trouble. Activity monitor shows some network usage, but in Launchpad it seems the download isn't moving.   When I go to the purchases panel of the Mac App Store, I see this.     No status, no pause button, in fact - the button has no text on it! I've tried restarting the App Store, restarting my computer, even removing the com.apple.appstore folder in /var/folders but alas, no luck.  Can anyone diagnose the issue? When I removed com.apple.appstore, Xcode still showed up on Launchpad, and clicking on it did nothing - it was frozen in time. So can I kill off this partial download and start new?


Is there a way to make my Java Applet always on Top even in fullscreen?

Google Searching hasn't helped me find the answer to this.  I was wondering if there is a way to make a java Applet always on top, even when there are fullscreen applications.   Specifically I want to over-lay the applet on top of a Power-Point presentation. Is this possible, and if so, how?  Thank You!


How to take into account the symmetry of the metric tensor when doing the Functional derivative in GR?

I have a Straightforward question. When the functional derivative of the Ricci scalar to get the GR field equations. As the derivative is done using the metric which is symmetric do I have to symmetrize my results.  On mathematica with the package xAct the "VarD" function always symmetrizes when I do a variation with a symmetric tensor.   For normal GR as I understand the symmetry pops out on its own, but as I'm working on other formulations of GR, sometimes this symmetry isn't a given.   Edit: As pointed in the comments by Qmechanic there is a similar answered question:    I'm convinced now, as I expected, that I should symmetrize the results.


(The attribute image.itemtype has an invalid value.)

<img itemprop="image" alt="Picture." src="http://www.websitename.com/img/picture.jpg"/>   Here's my code. (Microdata). It gives me a warning on Googles Structured data testing tool.


I noticed a minor issue - or does this affect the epic and legendary badge calculation?  I just open the  and noticed:  rep cap was reached via rep from upvotes *only* on 26 days earned at least 200 reputation on 23 days   That is impossible. My rep was capped on 26 days but I reached 200 on only 23 days? It would make sense the other way around.


Cell phone ring made nearby speaker to create strange noise

I was sitting on my chair in office when my cell phone rung. Somebody was calling me, so there was a caller tune which was played.   But then I realized my speakers were producing strange sound when my phone was ringing.  My friend said It was because of disturbance produced by radiowaves. But even he was not sure why it happened.   Do anybody know the possible cause that made speakers make strange noise.  It only happens when there is a call or message on my cell phone, not when I play any song etc on phone


How to show $\sum_{k=n}^\infty{\frac{1}{k!}} \leq \frac{2}{n!}$

$$\sum_{k=n}^\infty{\frac{1}{k!}} \leq \frac{2}{n!}$$  Can someone show why this estimate holds true? I tried quite a bit but couldn't really find a way to approach this.   says it is true but I don't know what the gamma function is.  $$ \sum_{k=n}^\infty{\frac{1}{k!}} = \frac{1}{n!} + \sum_{k = n+1}^\infty \frac{1}{k!}$$ So then I need to show that$$ \sum_{k=n+1}^\infty{\frac{1}{k!}} \leq \frac{1}{(n+1)!} ~~\Big[\leq \frac{1}{n!}\Big]$$  Is it possible to do this by induction? I don't really know how to approach this now.


I was watching a numberphile video, and it stated that the limit of  $1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}+\cdots$ was $\frac \pi 4.$  I was just wondering if anybody could prove this using some terms and math I am likely to understand. I am a high school student taking Algebra II.


Is it possible to add a horizontal scrollbar to a text box that works in all browsers? Currently if the text value is bigger than the size of the text box you have to highlight the text and move cursor to the right to see the rest of the text. I'd like user to have a scrollbar to use instead.


What happens if the earth stops rotating?

I was wondering what would happen to all the components on the surface of the Earth if the Earth suddenly stops rotating but does not stop revolving.


How to implement wait in Selenium tests using Python?

Here is my code:  for i in patient:     patientFind.send_keys([i])  patientFind.send_keys(Keys.ARROW_DOWN) patientFind.send_keys(Keys.ENTER)   so there is this text box where I need to individually input the letters and a drop down menu appears as each letter is put in the text box.  Unfortunately after that for loop end there is a tiny bit of delay in the drop box selection so it ends up clicking the wrong thing.  Is there a way to make selenium wait a few seconds between key presses? How do I make it so that selenium would wait 1 or 2 seconds after it completes that for loop before it goes on to press the down arrow?  Of course I can use time.sleep(5), however is there any better way of doing it using webdriver?


Let $P(n)$ be the statement "all horses in a set of n horses are of the same colour."  Basis Step: Clearly, $P(1)$ is true.  Inductive Hypothesis: Suppose that $P(k)$ is true for some arbitrary integer $k\geq 1$; that is, all horses are of the same colour.  Inductive Step: We now prove that $P(k+1)$ is true.  Consider any $k+1$ horses. Number these horses as $1,2,3,...,k+1$. By the inductive hypothesis, horses $1,2,...,k$ have the same colour. Also, by the inductive hypothesis, horses $2,3,...,k+1$ have the same colour. Because the set of the first $k$ horses and the last $k$ horses overlap, all $k+1$ horses must be of the same colour and we have shown $P(k+1)$ is true.  Therefore, all horses in a set of $n$ horses are of the same colour, for all integers $n\geq1$.


Why don't elementary particles with spin $\frac{3}{2}$ exist?

The question is simple: why aren't there elementary particles to be found in Nature which have an intrinsic spin of $\frac{3}{2}$? Do the laws of physics (say, quantum field theory) prohibit their existence? Why shouldn't there be an intermediate value (between spin $1$ and $2$, both of which do exist)?


Is there a word for a person who avoids their responsibilities?

What do you call a person who avoids their responsibilities by disregarding them and just continue doing other things?


Strip metadata from all formats with FFmpeg

How can I remove all metadata from all formats via FFmpeg?  I can just set special metadata for each format per man ffmpeg. Any option or method to clear all metadata and strip media from all metadata available on ffmpeg?     -metadata key=value        Set a metadata key/value pair.         For example, for setting the title in the output file:                 ffmpeg -i in.avi -metadata title="my title" out.flv


Are there an easy way to coloring tables depending on the value in each cell?

I viewed in this post  a solution to my question, but...    Are there any easier way (or alternative) to do this using colors?  Thank you. ------------------ edited after showed than it´s duplicate ------------- I think that there are many sols, but for example this is easy using a normal table without pgf...     I´m trying to adapt to similar colors to apply to the table probabilitiess


In , I asked about whether a character could willingly not use their shield or Dex bonus on certain attacks due to wanting to be hit. This raises the greater question-  Can someone decide to be hit?  The question was answered , but it is for 4e, and I am asking about 5e. This question is assuming that a hostile enemy is making an attack roll against a PC, and the PC in question wants to be hit by the attack.


Linear independence of vectors over larger fields

I was just wondering whether anyone knows an answer to the following:  Suppose that ${\mathbb F}$ is a subfield of a field ${\mathbb G}$ and that $v_1,\ldots ,v_k$ are linearly independent vectors in ${\mathbb F}^n$ (over $\mathbb F$). Is it necessarily true that $v_1,\ldots ,v_k$ are also linearly independent when considered as vectors in ${\mathbb G}^n$ (over $\mathbb G$})?  Any help would be much appreciated. Thanks!


How to add a subdomain for every user that registers with PHP on Apache?

I have created a basic signup/login form with PHP.   Now I want to let my website create a subdomain for every user signed up on my website.   For example, My domain is "mydomain.com" and "Tom Smith" registers through the 'register form' with his name. I would like my website to automatically create a subdomain: "tomsmith.mydomain.com".   What is the best way to do this?


could you please help me find the error in my logic? The function doesn't work well and I can't figure out why. The instructions are: Write a function remove_duplicates that takes in a list and removes elements of the list that are the same. Do not modify the list you take as input! Instead, return a new list. For example: remove_duplicates([1,1,2,2]) should return [1,2].  For [1, 2, 2, 5, 5, 5, 7, 7] I'm getting this output [1, 2, 5, 7], which is good. However, for [4, 9, 9, 4] the output is [9, 9, 4], which is wrong. I can't find out what the problem is. I started learning programming a few weeks ago, so I'm a novice. Thanks!  My code:  def remove_duplicates(l):     nl = list(l)     i = 0         while i <= len(nl)-2:         j = i + 1         while j <= len(nl)-1:             if nl[i] == nl[j]:                 nl.remove(nl[j])             else:                 j += 1         i += 1     return nl


Ubuntu 12.04 LTS iso for 64-bit intel i7-4700MQ quad core laptop

I have a Lenovo Ideapad with Intel i7-4700MQ processor. Which Ubuntu iso should I download for installation?


Does a stack subsite exist for the aforementioned class of individuals or those interested in that field? Does a subsite along these lines already exist?


Are there any tools that I can use to defrag my Windows partition from Linux?


Some icons in inbox/achievements are wrong, only on chat

Today I'm seeing the wrong icon in the dropdowns only on chat.  The circled icons should be Writers, not Worldbuilding:    They're correct on the Q&A sites:    I've only seen this for Writers so far.  If I get any inbox notifications or rep for other late-in-the-alphabet sites, I'll update.  As you can see in the screen shot from chat, Meta.SE is fine.  I suspect this has to do with the creation of new sites, indexing, and caching, but new-site is Tuesday and it's Thursday now, so that's some pretty heavy-duty caching if that's the cause.


Proving an inequality $\frac{x^2}{y+z}+\frac{y^2}{x+z}+\frac{z^2}{y+x}>\frac{1}{2}(x+y+z)$, for $x,y,z>0$

I'm having trouble proving the following inequality:  $\frac{x^2}{y+z}+\frac{y^2}{x+z}+\frac{z^2}{y+x}\geq\frac{1}{2}(x+y+z)$, for $x,y,z>0$  There is an equality case, which is where $x=y=z$. Then assume without loss of generality that $x>y>z$. By combining the fractions, we get $\frac{x^2(x+z)+y^2(y+z)(x+y)+z^2(y+z)(x+z)}{(y+z)(x+z)(x+y)}>\frac{x^3+y^3+z^3}{(2z)^2(2x)}$.  I have no idea if this is at all useful and I would be very grateful for some hints.


How to find lost information about the projection?

I have problems to find lost projection and hope someone could give a hint. I think there is no way to find the projection automatically so I did try a semi-automatic approach shown below.   My initial data are ESRI Shapefiles (only .DBF, .SHP, .SHX). The only information I have is that these Shapefiles should be somewhere in Germany. So my idea was to collect first all Projections for Germany. I did that using the following filter on this website:    There are about 71 projections. I wrote a small application using Openlayers, OpenStreetMap and proj4js and it looks like this:    A click on a Listitem registers a new projection and I am able to tell at a glance if the projection is correct or not. That works for a small set of Data unfortunally. Most of them apprearing somewhere in the water. Here is the JS Method that load a new projection:  function switchProjection(stringProj4JSDefinition) {          var arrTmp = stringProj4JSDefinition.split('#');          var epsg = arrTmp[0];         var projection = arrTmp[1];          proj4.defs('' + epsg + '', '' + projection + '');          ol.proj.proj4.register(proj4);          map.setView(new ol.View({             projection: '' + epsg + ''         }));          var vectorSource;         map.getLayers().forEach(function (layer) {             if (layer instanceof ol.layer.Group) {                  layer.getLayers().forEach(function (groupLayer) {                      if (layer instanceof ol.layer.Vector) {                         vectorSource = layer.getSource();                     }                  });             }             else if (layer instanceof ol.layer.Vector) {                 vectorSource = layer.getSource();             } else if (layer instanceof ol.layer.VectorImage) {                 vectorSource = layer.getSource();             } else if (layer instanceof ol.layer.Image) {                 vectorSource = layer.getSource();             } else {                 vectorSource = layer.getSource();             }          });          map.getView().fit(vectorSource.getExtent(), map.getSize());     }   Any ideas what else I could try?  I am new to GIS.  Most of my shapefiles are already projected to Cartesian coordinate system, so maybe that's problem here but I'm usure.


How to guess the type of a file in python?

Is there a way or a package to guess the type of a file in Python? For example, is it a way to detect a file could be open as ascii, unicode or binary?   Thanks in advance!


How do I bake a texture using Cycles bake

I created a interior scene and  i don't know how to bake a texture using cycles bake.


Would Starlord be able to hold an Infinity Stone as long as he did after the events of GotG2?

In Guardians of the Galaxy      Peter Quill is able to hold on to an infinity stone for quite a long time because of his celestial father   My question comes from the fact that in the second movie      He loses all his celestial power with his father's death   Would he still be able to hold on to an infinity stone?


I am not professional physicist; but I am curious about Stephen Hawking's "imaginary time". It would be better to elaborate exactly what it is. I am not confused because of the word "imaginary" but I find it confusing to imagine a two dimensional "plane time". If we express time in a plane instead of a one dimensional axis, then what does the movement of an observer along the imaginary axis signify physically?


EntityQuery get contents which were not modified

I'm writing a very basic query to get the count of contents which were not modified. The logic I'm applying here is simple too, just check if created = changed The SQL query is pretty straightforward too. SELECT COUNT(nid) FROM node_field_data WHERE type = 'my_content_type' AND created = changed  However getting this into EntityQuery syntax seems to be a bit difficult. $query = \Drupal::entityQuery('node')            ->condition('status', 1)            ->condition('type', 'my_content_type')            ->condition('created', 'changed', '='); //Need help here  $not_updated = $query->count()->execute();


As far as I am aware no other countried are used an article before them, but people usually refer to Ukraine as "The Ukraine".   Why?


lost all my admin privileges in windows 7

Today I suddenly encountered a problem, the last thing I remember i did before the problem occurred was that I was installing a game from the Steam, the game asked to install Nvidea Physx, after that, the current problems happened (without any error showing up):   Can't see task manager when i right click my task bar or even after pressing CTRL+ALT+Del. I managed to activate task manager from gpedit.msc but it gets disabled automatically. Can't access the regedit.exe (says deactivated by administrator). The CPU is always higher than 65%. Random processes (even like Firefox, adobe reader..) takes around 50%, when i kill it, another random process takes 50%.. I tried scanning my PC (and I'm still doing it again) with Malwarebytes and have Quarantined many suspicious things but all the problems before remained.   (notice that I'm doing all this using my only administrator account which was working fine 4 hours ago).   I activated the default Administrator account (which is hidden by default) but the same problems are happening even with it. I tried doing a system restore but it showed an error after the system gets restarted (an error with a 80070005 error code which looked unhelpful to me). Also the SFC scannow terminated without any problem.   I'm really clueless now, it looks like I have lost all my administrator privileges in a glimpse.  Example of the problems Malwarebytes has found:


BC - no "\\n" at the end + start with zeros?


The inverse of $x^3+1$ modulo $x^8+x^4+x^3+x+1$ over $\Bbb F_2$?

I'm thinking a problem related to bloch cypher AES. In a step of AES, I need to solve the thing stated below: How to solve the inverse of $x^3+1$ modulo $x^8+x^4+x^3+x+1$ over $\Bbb F_2$? Namely find $g(x)$ s.t. $(x^3+1)g(x)\equiv1~(\text{mod}~x^8+x^4+x^3+x+1)$.


This is a dumb question and I don't really know how to word it. When you take an antiderivative and plug in number you are given the area under the curve starting at 0 (assuming C is 0). I can easily see how the derivative of an integral is given by the function value, but why does the integral start at 0 and not any other number? When I try to imagine the area of some curve starting at negative 1 for example the area under the curve would intuitively to me still be given by the antiderivative. 0 makes sense as a starting point but for some reason I can't visualize it. I'm not sure if that made any sense but if anyone could help me wrap my head around it I'd appreciate it.


In the US, is it culturally acceptable for a graduate student to give a small gift to a professor?

I am an overseas student who was recently admitted to a PhD program in the US, and I will soon travel to the US to meet my future PhD advisor and my fellow grad students. My future PhD advisor has also kindly accepted to be my host for the duration of the several days I will spend in the US. I really appreciate his help, as I know hosting a student in addition to all the other responsibilities that come with being a professor may be a hassle, and also he has saved me from paying for a B&B by offering to host me.   Anyway, I think I would like to give a small gift to my professor just as a token of appreciation for his consideration, but I have doubts as to whether this would be appropriate, since I come from a different culture, and I cannot easily assess how people would react to such a thing in the US. In my culture, too, it would be inappropriate to buy an expensive gift for a professor. In the best case, the professor would sternly refuse to accept the gift, and in the worst case, the professor could have negative ideas about you, e.g., s/he could think you were trying to ingratiate yourself with him/her, that you intended to give the gift as a form of bribe, etc. BUT a small gift with little to no monetary value wouldn't be turned down, and it would most probably be accepted as a token of heartfelt thankfulness. The question for me is, of course, where this boundary is in the US.   And in case you're wondering what I consider buying for him...well, my country happens to have nice tea sets and/or plates made of porcelain, they are popular souvenirs that tourists like to buy here, and one can easily buy a nice, small decorative plate for under 10 dollars, for instance. So I suppose I could buy something like that.   Would that be acceptable? Or would I be judged negatively?   Thank you very much in advance for your answers.


What is the definition of STI? (formely STD)

We know that for laymen, an STI (sexually transmitted infection) is something that can spread via sexual activities. However, there are some infections that can spread sexually but is not considered STI:s, like cholera. Also, there are a lot of STI:s that can be transmitted via non-sexual means. So it seems like STI means something that it typically spreads via sexual activities.  So my question is, is there any formal definition?


Each number in a subset $S\subseteq \{1,\ldots,2n\}$ does not divide another one. Then $\max |S|$?

This problem comes from a seemingly innocuous question from a professor during a lesson for a Math Olympiad course. [A part of this question is really a classic of number theory/combinatorics]  Problem: Let $S$ be a a non-empty subset of $\{1,2,\ldots,2n\}$. It is clear that if $|S|$ is "enough large" then, independently from the choice of $S$, there are for sure some distinct $a,b \in S$ such that $a$ divides $b$.  Then, what is the maximal $k$ such that, for some $S$ with cardinality $k$, if $a,b$ are distinct members of $S$ then $a$ does not divide $b$?  [Ps. I know the solution]


I am a new user and I need some help! I think I've figured out the basics of creating a document, but certain symbols are not transferring into the pdf: the box, the diamond and the "force" turnstile. I don't know what the error messages mean or how to address them. I've attached screen shots of this and I'm hoping it's something simple that I'm missing because I'm just new to LaTeX. If anyone could help I'd be very grateful.


How to prove this inequaliy $(a+b)^3+(b+c)^3+(c+d)^3+(d+a)^3\ge 8(a^2b+b^2c+c^2d+d^2a)$


If $H$ is the orthocenter of acute triangle $ABC$, then the circumcenters of triangles $ABH$, $BCH$, $CAH$ determine a triangle congruent to $ABC$

EGMO (BAMO 2013/3)     Let $H$ be the orthocenter of an acute triangle $\triangle ABC$.   Consider the circumcenters of triangles $\triangle ABH$, $\triangle BCH$, and $\triangle CAH$. Prove that they are the vertices of a triangle that is congruent to $\triangle ABC$.   I solved the problem by showing that the circumcenters are found by taking the homothety of the original vertices to the nine-point circle with a scale factor of $-1$, thus they are congruent.  In the book, the hint said "Show that $$O_BO_C = 2(1/2)BC$$" where $O_b, O_c$ are the circumcenters. I am wondering how someone would get this using homothety.


I know how to put on the elytra wings, but I don't know to acually fly. I do know that you have to go to a high mountain or structure but once you are there, how do you start taking flight?


1060 GTX Ubuntu 20.10 nvidia-driver-460 No Compatible GPUs found for path tracing

I'm running Ubuntu 20.10 with nvidia-driver-460 installed and a GTX 1060 yet Blender 2.8 says "No compatible GPUs found for path tracing" What else do I need to do?


Does a flexible date car rental price matrix tool exist?

I know there are comparison rental tools like Kayak and Expedia, but I'm specifically thinking of a tool similar to Google Flight's flexible date matrix, where they'll show you the lowest prices for a matrix of start and end dates.  I've found that with car rentals, the prices can change drastically just by booking a day earlier or later, or sometimes even just hours apart, to the tune of 50% a price reduction, and doing this all manually is pretty frustrating.  To be clear: I know there are existing price comparison tools, but I'm specifically asking about whether something similar to Google Flight's flexible date tool exists, where you can get a sense for price changes across multiple start/end dates and durations.


Drawing a constant randomly distorted circle

I am trying to draw a special and contradictive plot : A circle with random distortions which have to remain constant regardless of how many times I build the document.  An example of what I am trying to achieve can be seen below    This figure was produced with the following code  \documentclass{standalone} \usepackage{tikz}    \usetikzlibrary{decorations.pathmorphing}   \begin{document}     \begin{tikzpicture}         % axes         \draw[ultra thin] (-2.5, 0) -- (2.5, 0);         \draw[ultra thin] (0, -2.5) -- (0, 2.5);         % undistorted sphere         \draw[ultra thin, dashed] (0, 0) circle (2.25cm);         \draw[ultra thin, dashed, ->] (0:0) -- (125:2.25);         \node at (-1, 1) {$R$};         % distrorted sphere         \draw[very thick] plot[domain=0:350,smooth cycle ] (\x:2+rnd*0.5);         \draw[very thick, ->] (0:0) -- (45:2.1);         \draw[ultra thin, ->] (1, 0) arc (0:45:1);         \node at (1.2, 0.4) {$\theta$};         \node at (0.7, 1.25) {$R(\theta)$};     \end{tikzpicture} \end{document}   The problem with the code is that whenever I make a change to it and rebuild the document, the "distorted" circle will have a different shape, since I am using the rnd function. The reason I would like to have a constant-random shape is because I would like to denote its radius at an angle θ, therefore it has to touch the outline of the circle.  Any idea on how to achieve such a thing?


A lightweight editor that supports search and replace in math mode

My professor asked me to change all p,q variables to i,j variables in my paper. If I just search and replace it will have too many false positives, because it will highlight every word with letter p in it. I want to search only within math mode, but apparently my editor does not support this. Is there some lightweight editor, or maybe even web tool that can search and replace within only math mode? I want to do just this one task and get back to using my old editor.  I am looking for point-and-click solutions, not writing macros etc.


Is it possible to create a holographic lighting in cycles? This is possible In the Blender Internal render engine, but I'm not going for linking lamps. Here is what I mean (the light that is holding the sphere inside it) -


We have a connected app which is android mobile app. We want the Users using that app to force logout of the app and re-login again. To do so, I have given the session time out value to 15 mins in connected app and session settings and set "force logout on session end" to true, even then, the User is logged in when I checked after 15 mins. even then, the User is logged in when I checked after 15 mins.   When I revoke the access for the user by manually revoking or immediately expiring the refresh token, when the app is opened, I am getting the error as "Check your internet connection" rather than user logout  Is there any way to force logout User from Connected App


Relationship between Ideals and subgroups ??

I am just wondering if Product of two Ideals is again an Ideal.  Let $I$ and $J$ be ideal of Ring, then is $IJ=\{ij: i\in I, j\in J\}$ still an ideal?


How to boldify a part of text with maths?

If decide to go to bold mode and then I type inside maths, the maths won't be bold.  \documentclass{article} \begin{document}  \textbf{The unknown $x$ is to be found.}  \end{document}   will produce     Of course, I could do  \textbf{The unknown $\mathbf{x}$ is to be found.} but I was wondering if there is a simple way to tell LaTeX:     Please, for this part, boldify both text and maths


GRUB menu doesn't show "Windows" selection in dual boot with Ubuntu

I have installed Ubuntu in my laptop with Windows 10 in dual boot mode. I was expecting GRUB to show me a menu with Windows/Ubuntu selection, but I see only Ubuntu there.   How I can add Windows to the GRUB menu? When Ubuntu starts I can see the Windows disk with files - so Windows is not deleted.  Disk state:


What, if any, are the differences between implementing one class as a child of another versus having the child employ an instance of the parent?

so please bear with me on this.  I struggle some in understanding certain aspects of the concept of inheritance.  As such, I was wondering, what would be the difference between implementing one class, say "Child", as the child of another, say "Parent", versus simply making "Child" create and utilize a "Parent" object within itself?  For example, given the parent class as:  class Parent:     def __init__(self, arg):         self.arg = arg      def parent_method(self):         print(self.arg)   What would be the difference between making and implementing a child class:  class Child(Parent):     def __init__(self, arg):         super().__init__(arg)  Child('foo').parent_method()   Versus:  class Child:     def __init__(self, arg):         self.parent = Parent(arg)      def call_method(self):         self.parent.parent_method()  Child('foo').call_method()   Both of which simply print:  foo   Is the only difference here syntactical? I mean, it definitely seems more efficient to use inheritance here, but is there something else I'm missing?  Thanks!


I have been using model averaging and model selection bases on AIC and BIC for a while. I have recently discover the stepwise regression technique and I found a lots of people critize this methods.   Why stepwise regression is to avoid ? Is it just only because you may not capture interaction between variable and therefore loose informations ?  Thank you


How can I remove the Evolution package completely?

how can I remove Evolution and all related packages? I feel like I don't need them.


speed: nginx on windows with php fastcgi hosting laravel

I'm trying to host a laravel app on a windows machine and I am trying to find out whether I should use WAMP or WNMP for best speed. Right now I have nginx and php fastcgi running in service wrappers. I have been searching and found threads about nginx having the best scalability due to its event driven nature but I have not been able to figure what happens when the requests start piling up on the php fastcgi process.   the limited on 1024 concurrent connections of the worker of nginx is fine. My only concern is the php behind the windows nginx.  I have yet to find a discussion about the way the php fastcgi server acts with multiple requests (ie. threads, event driven noblocking...etc.)  I have read on some sites about running apache to handle dynamic content while nginx handles all the static content. I'm wondering if that means the best windows config for laravel is for apache to run as a fastcgi (I'm not even sure if that is possible) with mod_php behind an nginx   Thanks in advance to anyone who can clear up my confusion :)  The linked post does contain a discussion of WAMP as a stack vs Windows with each component installed separately, but I'm curious about WEMP/WNMP) vs WAMP  -Chris


$E[X|Y]$ is equal to the almost surely unique and deterministic function of $Y$, say $\varphi (Y)$, such that $$E[X f(Y)]= E[\varphi (Y)f(Y)]$$ for all bounded, measurable and non-negative $f$'s. How can I prove this fact? In particular, how the a.s. uniqueness and the equality of the conditional expectation to $\varphi(Y)$ follows from the definition of the conditional expectation defined as usual by $$E[X|Y]=\sum_x x\cdot P(X=x|Y)?$$


Distinguishing between valid and fallacious arguments (propositional calculus)

I am having some difficulties understanding logical arguments. I was taught that the notion of a valid argument is formalized as follows:  "An argument $P_1, P_2,\cdots , P_n  ⊢ Q $ is said to be valid if $Q$ is true whenever all the premises $P_1, P_2,\cdots , P_n$ are true.  An argument which does not satisfy this condition is a fallacy."  But (according to my book) the argument $$p \rightarrow q,\quad q\;⊢ \;p\; $$ is a fallacy, but I don't see why. If we construct a truth table  $p$ | $q\;$ | $p \rightarrow q$ |  T | T | T |  T | F | F |  F | T | T |  F | F | T |  we see that when $p$ and $q$ are true, $p \rightarrow q$ is also true (line 1). So then, why isn't this valid? I do know that for an argument to be valid, with premises $P_1, P_2,\cdots , P_n$, the proposition $$(P_1 \land P_2 \land \cdots \land P_n) \rightarrow Q$$ should be a tautology, but that doesn't dispel my confusion.   What am I missing?


Mathematical Olympiad Treasures Problem 1.92 how does this relate to geometric sequence

You are supposed to show that if  $a,b,c$ are nonzero real numbers   and  $(ab+bc+ca)^3 =abc(a+b+c)^3$  $a, b, c$ are terms of a geometric sequence.  One given solution is that:  $(ab+bc+ca)^3 −abc(a+b+c)^3 = (a^2 −bc)  (b^2 −ac)  (c^2 −ab)$   How does the new factorization imply that $a,b,c$ are part of geometric sequence?


i had complete my website but without protect?

I have my design for my website that consists of several web pages and class ,and that these pages call functions inside this class. Now that I have completed the site and there are customers who want to buy a copy from this site, what is required is to help me. How can I save the site from theft or copying and pasting? I mean, I want to sell a copy and not steal it? How can I keep the main code  i think api not good


Are stingrays' barbs poisonous of venomous?

I understand that when a snake bites you and you die, it's venom, and when you bite a snake and you die, it's poison.  What about stingrays' barbs? They don't bite you, they kind of shoot at you, but you don't bite them either.   At first I thought it would be poisonous, because it's outside of it's body and it doesn't bite you. The poison is kind of injected.  Then I thought it's venom, because the animal itself makes an effort to attack you with it.  So, are stingrays poisonous or venomous?


How do you collect valuable information from regular "User Group" meetings?

The scenario:   You work on a SaAS application.  Some of your users use your application heavily each day. Every 2 weeks (or month or whatever), a "User Group" of your most avid users gets together to talk shop and see how their progress is going in the context of a larger project they are working on. You can participate and potentially direct some group activities aimed at improving the application.   How do you gather valuable user information in this group setting?


Find all the numbers $n$ such that $\frac{4n-5}{60-12n}$ can't be reduced.   Attempt:  $$\gcd(4n-5,60-12n)=(4n-5,-8n+55)=(4n-5,-4n+50)=(4n-5,45)$$  $$n=1: (4-5,45)=1\quad \checkmark\\ n=2: (3,45)=3\quad \times\\ n=3: (7,45)=1\quad \checkmark\\ n=4: (11,45)=1\quad \checkmark\\ n=5: (15,45)=15\quad \times\\ n=6: (19,45)=1\quad \checkmark\\ n=7: (23,45)=1\quad \checkmark\\ n=8: (27,45)=9\quad \times\\ \vdots$$ So the answer is that it can't be reduced for $n=1,3,4,6,7,..$ i.e  $$\bigg\{n\bigg|n\notin \begin{cases}a_1=2\\a_n=a_{n-1}+3\end{cases}\bigg\}$$  I want to verify that my solution is correct


I've searched around all over and haven't found a conclusive answer to this question.  I need a script that can give ALL permissions for an associated role.   Any thoughts, or is it even possible?  This gets me CLOSE - but I can't seem to flip it around and give the summary for roles, rather than users.     WITH    perms_cte as (         select USER_NAME(p.grantee_principal_id) AS principal_name,                 dp.principal_id,                 dp.type_desc AS principal_type_desc,                 p.class_desc,                 OBJECT_NAME(p.major_id) AS object_name,                 p.permission_name,                 p.state_desc AS permission_state_desc         from    sys.database_permissions p         inner   JOIN sys.database_principals dp         on     p.grantee_principal_id = dp.principal_id ) --role members SELECT rm.member_principal_name, rm.principal_type_desc, p.class_desc,      p.object_name, p.permission_name, p.permission_state_desc,rm.role_name FROM    perms_cte p right outer JOIN (     select role_principal_id, dp.type_desc as principal_type_desc,     member_principal_id,user_name(member_principal_id) as member_principal_name,    user_name(role_principal_id) as role_name--,*     from    sys.database_role_members rm     INNER   JOIN sys.database_principals dp     ON     rm.member_principal_id = dp.principal_id ) rm ON     rm.role_principal_id = p.principal_id order by 1


How to Align bottom footer element after my text ends

This could be very easy solution but i cant seem to fix or find it for hours now. How can i have my transparent footer block stick to bottom of page after the text. I know sounds easy but cant see to make it work? Any suggestions would be grateful, thanks again Stewart       body {     background-color: #828282;     overflow-x: hidden;     margin: 0px; }     .footer {     position: absolute;     bottom: 0px;     width: 100%;     height: 180px;     background-color: rgba(0, 0, 0, 0.2); }     .text {     position: absolute;     left: 50%;     transform:translateX(-50%); /* center */ }

TERMS OF USE FOR ALL USERS

  BY USING OUR WEBSITE YOU AGREE TO THESE TERMS – PLEASE READ THEM CAREFULLY. Introduction: These Terms of Use for all Users govern your use of Venus and your agreement with us. Interpretation: In the Terms of Service:

  To reflect changes in laws and regulatory requirements which apply to Venus and the services, features and programs of Venus where such changes require Venus to change its terms and conditions in a manner which does not allow us to give reasonable notice to you; and to address an unforeseen and imminent danger related to defending Venus, Fans or Creators from fraud, malware, spam, data breaches or other cybersecurity risks. We may also make other changes to any part of the Terms of Service, and we will give you reasonable notice of such changes by email or through Venus, and you may contact us to end your agreement with us before the changes take effect. Once any updated Terms of Service are in effect, you will be bound by them if you continue to use Venus.

  To reflect changes in laws and regulatory requirements which apply to Venus and the services, features and programs of Venus where such changes require Venus to change its terms and conditions in a manner which does not allow us to give reasonable notice to you; and to address an unforeseen and imminent danger related to defending Venus, Fans or Creators from fraud, malware, spam, data breaches or other cybersecurity risks. We may also make other changes to any part of the Terms of Service, and we will give you reasonable notice of such changes by email or through Venus, and you may contact us to end your agreement with us before the changes take effect. Once any updated Terms of Service are in effect, you will be bound by them if you continue to use Venus.

  To reflect changes in laws and regulatory requirements which apply to Venus and the services, features and programs of Venus where such changes require Venus to change its terms and conditions in a manner which does not allow us to give reasonable notice to you; and to address an unforeseen and imminent danger related to defending Venus, Fans or Creators from fraud, malware, spam, data breaches or other cybersecurity risks. We may also make other changes to any part of the Terms of Service, and we will give you reasonable notice of such changes by email or through Venus, and you may contact us to end your agreement with us before the changes take effect. Once any updated Terms of Service are in effect, you will be bound by them if you continue to use Venus.


I am a new user of precise pangolin and learning to use the terminal. I just wonder whether there is any easy command/combination of commands to open an application (LibreOffice Writer, for example) via terminal, just like we use sudo apt-get install <<packagename>> to install an application.


Regex to not match inside html anchor tag

I have a requirement where I don't have to match a specific word when in occurs between anchor tag. Anchor tags can have other html tags nested.  For Example:      Test
Test - MANUALLY

Google&nbsp;

 Resolving as duplicate of Test

Test  test
   Here every "Test" gets selected. All I want here is getting only "Test" not present inside "anchor tag" and also not part of attributes of "anchor tag".  Regex I used was:      (?!]*>)(Test)(?![^<]*<\/a>)/gi


we are working on something in that requires BIOS information, i know that these information is available in HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System registry setting. But i need to do this in C++.  is there any API available for this?? i dont want to read from the system registry due to some limitation on client system. Is there any other way to do this??


Simple proof that if $a^2$ is divisible by a prime $b$ then $a$ is divisible by $b$.

I know it's obvious that if $a^2$ is divisible by $b$, given that $b$ is prime  ,then $a$ is divisible by $b$. Is there any way to prove this without going into the fundamental theorem of arithmetic? I was told it can be proved starting from the fact that every number is the product of distinct primes, but is there a simpler way?


The quaternion group has the following presentation:  \begin{eqnarray} Q=\langle i,j,k|ijk^{-1},ik^{-1}j^{-1},ij^{-1}k\rangle.  \end{eqnarray} I have derived down $i^2=j^2=k^2$ by a proper multiplication of the words in the relation. My question is how to get $i^4=j^4=k^4=1$.


How to avoid big blinking cursor in the beginning and end of HTML table?

I have observed that when viewing HTML tables in Google Chrome, when we click in the beginning or end of the table (left-most or right-most), a big blinking cursor is shown next to it.  How to avoid that?  I have written a sample piece of HTML code that simulates this issue:  <title>test cursor</title>

col1	col2

col1	col2

col1	col2

col1	col2

col1	col2

col1	col2

col1	col2

col1	col2

col1	col2

col1	col2

     The big line on the right side is actually the blinking cursor. I am using Chrome browser version 87.0.4280.88 (Official Build) (64-bit). How to avoid this big blinking cursor?  Thanks!


An integral domain $R $ is a gcd-domain if for all $a,b \in R\setminus \{0\} $ there exists $d\in R  $ such that    $d$ divides both $a $ and $b $  for all $d'$ in $R $, if $d'  $ is a common divisor of $a $ and $b $ then $d'  $ divides $d $   But I can't come up with an example of integral domain which is not a gcd-domain. Can you find one or give me a hint ?


Breaking a small-scale Example Diffie-Hellman?

I started to read about Diffie-Hellman exchange and I encountered a problem which I don't know how to solve.  Given $g=3$, $p=131$, $g^x\bmod p=112$, $g^y\bmod p=74$, compute $g^{xy}\bmod p$   $113$ $110$ $112$ $111$   How could I compute $g^{xy} \bmod p$? Or at least verify which one is correct. Any idea?


From where I download kerenl source code for version 3.8.0-29-generic

heena@heena:~$ uname -r 3.8.0-29-generic   Also   heena@heena:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.3 LTS Release:    12.04 Codename:   precise   I want to download source code for this version. From where I can get the source code for this?  is not having this version listed


How do I put the content in bottom of a div with min-height?

This is what I've tried. Is there any simple way to do this?    .minh { min-height:70px; border:1px solid #f00 } .btm {   vertical-align:bottom;   bottom:0; }
   This goes to bottom


In Machine learning we use activation functions to give non-linearity to the output of neuron. But what is the exact non-linearity in this context? How it differs in different activation functions(e.g. sigmoid, relu ...)?


What's wrong with this derivation that $i\hbar = 0$?

Let $\hat{x} = x$ and $\hat{p} = -i \hbar \frac {\partial} {\partial x}$ be the position and momentum operators, respectively, and $|\psi_p\rangle$ be the eigenfunction of $\hat{p}$ and therefore $$\hat{p} |\psi_p\rangle = p |\psi_p\rangle,$$ where $p$ is the eigenvalue of $\hat{p}$. Then, we have $$ [\hat{x},\hat{p}] = \hat{x} \hat{p} - \hat{p} \hat{x} = i \hbar.$$ From the above equation, denoting by $\langle\cdot\rangle$ an expectation value, we get, on the one hand $$\langle i\hbar\rangle = \langle\psi_p| i \hbar  | \psi_p\rangle = i \hbar \langle \psi_p | \psi_p \rangle  = i \hbar$$ and, on the other $$\langle [\hat{x},\hat{p}] \rangle = \langle\psi_p| (\hat{x}\hat{p} - \hat{p}\hat{x}) |\psi_p\rangle =  \langle\psi_p|\hat{x} |\psi_p\rangle p - p\langle\psi_p|\hat{x} |\psi_p\rangle = 0$$ This suggests that $i \hbar = 0$. What went wrong?


How to isolate the text from a bitmap logo?

I have been given a logo from a client that they want me to 'extract' or 'cut' the text out of and use just the text with a transparent background to fit with the design ethos of their marketing.   I'm using Photoshop CS6 and have tried using channels, magic wand and eraser but I can't get clean edges on the text.  I'm pretty new to Photoshop and any help appreciated.


Easiest way to add references in TeXnicCenter

i am currently working on a file where i just want to use the easiest possible way to add citations. I tried using biblatex as explained here:  However, the minimal working example does not show any references: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  \usepackage{biblatex} \addbibresource{sample.bib}  \begin{document} Let's cite! The Einstein's journal paper \cite{einstein} and the Dirac's  book \cite{dirac} are physics related items.   \printbibliography  \end{document}  I made a plain text-file i named sample.bib containing wich is in the same folder as the .tex file: @article{einstein,     author =       "Albert Einstein",     title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})     [{On} the electrodynamics of moving bodies]",     journal =      "Annalen der Physik",     volume =       "322",     number =       "10",     pages =        "891--921",     year =         "1905",     DOI =          "http://dx.doi.org/10.1002/andp.19053221004",     keywords =     "physics" }  @book{dirac,     title={The Principles of Quantum Mechanics},     author={Paul Adrien Maurice Dirac},     isbn={9780198520115},     series={International series of monographs on physics},     year={1981},     publisher={Clarendon Press},     keywords = {physics} }  @online{knuthwebsite,     author    = "Donald Knuth",     title     = "Knuth: Computers and Typesetting",     url       = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",     keywords  = "latex,knuth" }  @inbook{knuth-fa,     author = "Donald E. Knuth",     title = "Fundamental Algorithms",     publisher = "Addison-Wesley",     year = "1973",     chapter = "1.2",     keywords  = "knuth,programming" } ...  however, there is literally no blibliography/reference list printed. Can someone help me?


As far as I know, if I set write permission to a directory (+w), I will be able to copy files inside and the execution permission to a directory (+x) allows me to list the content of it.  I get problems when I set /root directory with rwx----w- permissions (702), and try to copy a file inside. I get and error that says something like:     cp: cannot perform 'stat' on '/root/myfile': Permission denied   Why does this fail?