Using ST_Difference to remove overlapping features?

I am trying to use ST_Difference to create a set of polygons (processing.trimmedparcelsnew) that do not contain any of the area covered by another set of polygons (test.single_geometry_1) using PostGis 2.1 (and Postgres SQL 9.3). Here is my query:  CREATE TABLE processing.trimmedparcelsnew AS SELECT     orig.id, ST_Difference(orig.geom, cont.geom) AS difference FROM      test.single_geometry_1 cont,     test.multi_geometry_1 orig;   But the resulting polygons have not been trimmed, instead they seem to have been split where they intersect with the other layer. I have tried just running the select without putting the result in a table and everything else I can think of, but I can't seem to get this function to work.  I have attached a picture of the result      After comments, I have tried adding a WHERE clause. I want the parcels that have no intersections, and the intersecting areas of the other parcels removed (the layer test.single_geometry represents contamination I want removed from my parcels). I tried an intersect but of course I actually want the non intersections so I am now trying a disjoint. I have also tried adding the orig to my table but the documentation for ST_Difference () does say it returns the exact geometry I need (a geometry that represents that part of geometry A that does not intersect with geometry B), so I am confused as to why I would want the original polygon in my table instead. Anyway, here is my modified code:  CREATE TABLE processing.trimmedparcelsnew AS SELECT     orig.id, ST_Difference(orig.geom, cont.geom) AS difference, orig.geom AS geom FROM      test.single_geometry_1 cont,     test.multi_geometry_1 orig WHERE ST_Disjoint(orig.geom, cont.geom);     Following from dbaston's answer I have now tried:  CREATE TABLE processing.parcels_trimmed AS SELECT id, COALESCE(ST_Difference(geom, (SELECT ST_Union(b.geom)                                           FROM test.single_geometry_1 b                                          WHERE ST_Intersects(a.geom, b.geom)                                          AND a.id != b.id)), a.geom) FROM test.multi_geometry_1 a;   The result of this is just a copy of test.multi_geometry_1. Though now the splitting is no longer occurring.   I tried the earlier version, but again just get a copy of test.multi_geometry_1:   CREATE TABLE processing.parcels_trimmed_no_coalesce AS SELECT id, COALESCE(ST_Difference(geom, (SELECT ST_Union(b.geom)                                           FROM test.single_geometry_1 b                                          WHERE ST_Intersects(a.geom, b.geom)                                          AND a.id != b.id)), a.geom) FROM test.multi_geometry_1 a;   I am starting to wonder if there is something else I am doing wrong? The proceeding statement is:  DROP TABLE IF EXISTS processing.parcels_trimmed_no_coalesce;   And I am running the queries from the PostgreSQL SQL query window and Openjump.   The statement I use to see the table is:  SELECT * FROM processing.parcels_trimmed_no_coalesce;     In the interest of simplification I have now reduced this query down to just:  SELECT id, COALESCE(ST_Difference(geom, (SELECT ST_Union(b.geom)                                           FROM test.geometriestocutagainst b                                          WHERE ST_Intersects(a.geom, b.geom)                                          AND a.id != b.id)), a.geom) FROM test.geometriestocut a;   This still results in just the original polygons (test.geometriestocut) when the desired result is the original trimmed against test.geometriestocutagainst.


Install failed using Wubi under Windows 8

I just ran the wubi installer under windows 8.  After reboot, I got the dual boot option. Windows is still working, but Ubuntu only makes the computer restart.   I had no errors during the installation.   Any idea ? Ty


Intuition behind dividing groups into classes

In group theory, a group $G$ can often be divided into classes. Two elements $U,V \in G$ belong to the same class if $\exists R\in G: RUR^{-1}=V$. This always strikes me as counter-intuitive. Apart from groups like symmetry groups, where one can assign "physical meaning" to the group elements, I lack understanding/a reason for why this distinction of classes is as powerful as it is. Why would an abstract group be divisible into classes? (Maybe a historical argument can help.)  Of course, I do not doubt that it is possible to do this when looking at concrete group tables and figuring out the classes manually. Is there an underlying reason for why dividing the group is most of the time possible with classes that do not only consist of one or all elements of the group?  Another thing is, why can an element only belong to exactly one class? The definition seems a bit lax; I sometimes wonder why there cannot be to different $R_1,R_2$ that sort some element into two different classes? Because then that is actually the same class for both elements...  Edit  This also comes from the fact that, when trying to devide a group into classes given only the group table and no "visual representation" (e.g. symmetry operations) for the group elements, how can at some point I know that I have found all elements of the class; that is, without calculating all possible combinations $RUR^{-1}$? "There might be some other combination of elements, that connects two classes..."


startup script that needs a user password to execute itself (ubuntu 16.04)

Let's say I wanted an automated script to start right after a login prompt. The script, however, needs a user password before it can be executed manually using sudo 'script' command from the terminal.  Now, I suppose I could write a script with the needed password and just set it up as one of the startup apps but the thing is I'm trying to avoid putting any sensitive information inside it. And for now, I want this to be an isolated case.  I'm certain there are workarounds but I'm new to Ubuntu, so any help will be most appreciated.  EDIT: I have tried that. I created a new file in /etc/sudoers.d/ and set the overrides there.  The following line seems to be working just fine:  user ALL = NOPASSWD : ALL   Problem appears when I try setting it up for a specific script:  user ALL = NOPASSWD : /home/user/script   Also tried:  user host = (root) NOPASSWD : /home/user/script   as well as some of the other combinations but nothing works. I'm using Ubuntu 16.04 LTS.   Inside the script there is a simple sudo command and if I run bash 'script', it always asks me for a user password except in the first example but that's exactly what I'm trying to avoid. I only want override for this script.  I have also changed permissions on the sudoers.d/override file as directed in  post.  So I have no idea why it won't work...


Is it okay to publish your dissertation as a book and are there things that you should leave out of the book?

If I have found a publisher that will publish my dissertation, is this ok, to publish your original dissertation as a book. if so are there things you should leave out of dissertation like appendix or signature page.


decision making statement with string condition

What is the correct way to put string in a condition statement? I tried this, but it won't print x.      String c = "c" ,d = "d";     Scanner in = new Scanner(System.in);     String selection = in.next();     if ( c == selection){         System.out.println("x");   Assume I input c.


South African passport holder traveling via Heathow to Ireland

My daughter is traveling from SA to Ireland Dublin via Heathrow .  She will be catching a connecting flight to Dublin via an Irish airline  What visa is required ?


Is there any difference between "name of film" and "film's name"?  How can I say that I need to remember film's name?


When the hamiltonian isn't equal to energy?

I have the following hamiltonian:  $$H = \frac{p_1^2}{2}+\frac{(p_2-k\;q_2)^2}{2}   ,\qquad  k\in\mathbb{R}.$$  I know that the hamiltonian isnt explicitly dependent on time so $H$ is a motion constant. But, is the hamiltonian equal to energy?


Proof that we can find rational numbers arbitrarily close to $\sqrt{2}$: direct approach.

The statement of the proposition:  Proposition. For every rational number $\epsilon > 0$, there exists a non-negative rational number $x$ such that $x^{2} < 2 < (x+\epsilon)^2$.  The most common approach to proving the proposition is by using contradiction (,). My question is: is it possible to prove the proposition directly? More concretely, is it possible to find a function $f: \mathbb Q^+\rightarrow \mathbb Q^+$ such that for arbitrary positive rational $\epsilon$, we have $$f(\epsilon)^2 < 2 < (f(\epsilon) + \epsilon)^2 $$ ?


Is the following $f:S^3 \rightarrow S^2$ a submersion?

I have $f:S^3 \rightarrow S^2$ given by $$f(x_0,x_1,x_2,x_3) = (x_0^2+x_1^2-x_2^2-x_3^2, 2x_0x_3+2x_1x_2,2x_1x_3-2x_0x_2)$$ I define $\tilde{f}:S^3\subset \mathbb{R^4} \rightarrow S^2 \subseteq \mathbb{R}^3$ so that I have $$d\tilde{f}_{(x_0,x_1,x_2,x_3)} = \begin{pmatrix} 2x_0 & 2x_1& -2x_2 &-2x_3\\ 2x_3& 2x_2& 2x_1&2x_3 \\ -2x_3 & 2x_3 & -2x_0 & 2x_1 \end{pmatrix}$$ I argued that since the differential has maximum rank, equal to 3 and equal to the dimension of the image, then the differential is surjective and therefore $f$ is a submersion. Is it correct? Or, for example, do I have to argue something more regarding the differential ? Like $d\tilde{f}_x: T_xS^3 \subseteq T_x\mathbb{R^4} \rightarrow T_xS^2 \subseteq T_x\mathbb{R^3} $ ?


The sum of n independent poisson($\lambda_i$) random variables is poisson($\sum_1^n \lambda_i$) random variable.

How can I show that the sum of n independet poisson random variables is a poisson random variable? I need to conclude that the sum of i.r.v with distribution $Poisson(\lambda_i)$, i=1,...,n, is $Poisson(\sum_1^n \lambda_i)$.


Figures of Merit (Erdős number) in Resume/CV

I've noticed recently that colleagues, friends, and others seeking employment, have shown, among other things, their Erdős number on their resume/CV.  I've also seen some put down their h-index, or their publication with the most citations (the running tally of citations for that publication), or the Impact Factor journal that they have ever published in, etc.  I know there is a  on just h-index in a CV/resume (so please do not mark as duplicate), but this is a broader question about other figures of merit, especially Erdős number.  I realize that having a CV/resume that stands out is important and can give an edge to getting that coveted position, but is listing these types of things appropriate?  Let me just make clear that I am not endorsing doing this or saying that I have done it, I am just asking if this is common, acceptable, or purposeful.


Show that $xy=0$ is a variety but not a manifold

As a subset of $\mathbb{R}^2$ the equation $xy=0$ is the union of $x=0$ and $y=0$.  That is two lines. This is an algebraic variety. Why is this not a manifold?


Different Python Variables with Same Value Pointing to Same Object

In python, I have declared two variables with same value. Strangely, they are pointing to same object. I need to understand how this objects and their corresponding values are assigned.  #!/usr/bin/python  a = 100 b = 100  print id(a) print id(b) -------------------- Output :  157375428 157375428 -------------------   I assume, a and b are two different variables with same value. Then why the same object is pointing to both of them ?


Windows 10: Rename pinned items in Windows Explorer's Quick Access

I just got done upgrading Windows 8 to Windows 10 and I've found that the 'Favorites' panel in Windows Explorer got replaced with a 'Quick Access' panel and I can't seem to find a way to rename the pinned items in Quick Access like I could for favorite items under Windows 8.  Some of my pinned items are program-generated folders and I really don't have the option to rename them.  Am I missing something or did the rename feature get left out?


Configure mouse speed (not pointer acceleration!)

Is there way to increase the mouse speed in KDE4? I don't want any pointer acceleration, it's just the mouse speed that I want to change.  Edit: Unfortunately, editing the xorg.conf is not an option for me, because I want the users to be able to configure the mouse speed themselves and it is company policy do deny users permission to change the xorg.conf.


Passive voice misuse for technical documentation

I am writing technical documents (user requirements, user guides etc) often and MS Word and Grammarly often give me an error message "Passive voice misuse".  For example:   Function X is shown in this video. It can be done by clicking this button. This button can be used. If more details are needed, they can be found in Annex A.   for all examples above Grammarly gives "Passive Voice Misuse". The same for MS Word. My question is   Are these examples completely fine or they can be rewritten in a better way from the native language speaker point of view?  As I understand Grammarly and etc is not a good reference here. I am asking just about my specific examples.  Please do not mark it as duplicated with . There are some similarities, but my question is more generic, but the other is very specific and related to only one example. and that question is not answered.  UPDATE 1 after some reading, I can rewrite my examples like this   This video shows Function X. To do it click this button. Use this button. Annex A contains more details if needed.   Is it really better from native English speakers?


Capital Gains Term when purchasing more of the same asset

How does Capital Gains Term work in this scenario?  Buy x amount of xyz stock and hold for over a year. Then buy z amount of the same asset and hold for less than a year.  Questions:  If I sell the initial x amount of xyz stock (held > 1 yr) after purchasing z amount of zyx (held < 1 yr) for a profit, is it taxed at long term capital gains? If I sell all in the scenario is it all taxed as short term? or is it X amount taxed long term and Z is tax short term?  Any Documentation would be appreciated as well.


Sending parameter when JS method called in Lightning Web Components

I have a table that looks something like this   Here's my code I haven't tried a lot.  HTML:  <template>

Name

Phone

Email

             <template for:each={contacts.data} for:item="contact">

{contact.Name}

{contact.Phone}

{contact.Email}

                             <lightning-button variant="base" data-key={contact.Id} label="Edit" title="Base action" onclick={handleEdit} class="slds-m-left_x-small"></lightning-button>                             <lightning-button variant="base" data-key={contact.Id} label="Delete" title="Base action" onclick={handleDelete} class="slds-m-left_x-small"></lightning-button>

             </template>

 </template>   JS:  import { LightningElement, api, wire, track } from 'lwc'; import getContacts from '@salesforce/apex/ContactManager_CTRL.getContacts';  export default class ContactTable extends LightningElement {     @api recordId;     @track editLabel;     @track deleteLabel;     @wire(getContacts, {accountId: '$recordId'}) contacts;      handleEdit() {         console.log('======== :: called');     }      handleDelete() {         console.log('======== :: called' + this.deleteLabel);     } }   on click of the edit button I want to send a contact id or contact as a parameter, is there a way to achieve this?  How can I achieve this in LWC?


Let me know if you need any help using the computer.   I don't understand why 'use' ends with -ing. Shouldn't we use 'to' after the verb-'need'?  If I can say “I need to use the computer now”, why is the gerund used in the sentence above?


asp.net mvc put controllers into a separate project

I'm just learning asp.net mvc and I'm trying to figure out how to move my controllers into a separate project.  Typically when I have designed asp.net web apps before, I created one project for my models, another for my logic, and then there was the web.    Now that I'm learning asp.net mvc I was hoping to follow a similar pattern and put the models and controllers each into their own separate projects, and just leave the views/scripts/css in the web.  The models part was easy, but what I don't understand is how to make my controllers in a separate project be "found".  Also, I would like to know if this is advisable.  Thanks!


Title sections are not shown correctly (content from the previous section is shown after the title of the following sections)

I'm trying to list some sections inside a chapter (let's say sections 2.1, 2.2, 2.3, 2.4 and 2.5), and in the section 2.2 I show 4 tables, the problem is that the titles of the sections 2.3, 2.4 and 2.5 are being shown before the last table that is in the section 2.2  Can someone tell me how can I fix this?  This is my code:  \chapter{Resolución de modelos}  \section{Utilice el método gráfico para encontrar soluciones al modelo ¿Es posible encontrar el óptimo?}  \section{Resuelva el problema usando el método Simplex}  # HERE ARE THE 4 TABLES  \section{Explique cada una de las bases encontradas durante la realización del algoritmo Simplex}  \section{¿Existen soluciones alternativas a la solución encontrada? Explique}   And this is the output:    All the tables should be after the title of the section 2.2 and before the title of the section 2.3  EDIT:  Here's an example of the code I'm using to produce the tables:  \begin{table}[ht] \centering \begin{adjustbox}{width={\textwidth}, totalheight={\textheight}, keepaspectratio} \begin{tabular}{c c c c c c c c c c c} \hline  # CONTENT [1ex]  \hline \\ [0.5ex] # CONTENT [1ex] \hline \end{tabular} \end{adjustbox}  \caption{Iteración \#5} \end{table}


Story Identification: movie with an algae like creature in a pond

I saw this movie a long time ago and I remember only bits of it. There is this pond where few friends go swimming and there will an algae like creature. It is like a blanket spread on water. Two people a boy and a girl get stuck in the middle of the pond on a log-boat and this creature consumes the girl from underneath the boat and meanwhile the guy escapes and reaches the bank. He then standing at the end of the bank makes this victory signs and expressions. The creature then jumps out of the pond and drags him in as well. The camera then moves away from the pond and it shows a sign "NO SWIMMING" covered in bushes and at this point the frame goes comic-book style. Drawings, black and white and all. I vaguely remember this as one of the three stories in the movie but am not sure of this last statement.


Add space before and after tabular environment

The tabular environment does not add any vertical space before or after it. This looks odd, in my view. What is the "correct" or "best" way to add some space? Also, why is there more space after the tabular environment than before it, as seen in the example below?  \documentclass{article} \begin{document} \noindent Here is a line with some text in it.  \begin{tabular}{*4{l}}     Worg & Worg & Worg & Worg\\     Worg & Worg & Worg & Worg\\ \end{tabular}  \noindent Here is another line with some text in it. \end{document}


Define the image of the function $f :\Bbb Z \times \Bbb N →\Bbb R$ given by $f(a, b) = \frac{a−4}{7b}$?

$\Bbb Z$ - integers $\Bbb N$ - natural numbers (starting from 1) $\Bbb R$ - real numbers    I believe the answer is the set of real numbers ($\Bbb R$), seeing as $b$ will not equal $0$ as the set of natural numbers start from $1$. Thoughts?


Biblatex: Modify maxcitenames to work in three cases

Classically maxcitenames in biblatex is set to something like \usepackage[maxcitenames=2,style=authoryear]{biblatex} to get the following citations:   One author name if there is only one author Two author names if there are two authors Two author names + et.al if there are more than two authors   Is there a way to modify maxcitenames in a way that I get   One author name if there is only one author Two author names if there are two authors First author name + et.al if there are more than two authors   This would require to count how many authors are in an bib-entry and decide which of the three cases is applicable.   I am happy to hack a bit myself if someone can give me at least a starting point. Handling author lists in biblatex does not seem trivial to me.


How to show that If $f(x+y)=f(x)f(y)$ then $f(x)\geq 0$

I would appreciate if somebody could help me with the following problem:  Q: Suppose $f: \mathbb{R} \rightarrow \mathbb{R}$ is a continuous function and $f(x+y)=f(x)f(y)$. Then $f(x)\geq 0$


I'm trying to optimize my road system a bit, mostly converting regular small roads into one-way roads. But the only way I can see to do that is to remove the old road entirely and build a new one. I can't seem to just build over the old one.   I can understand that limitation in cases where the new road type is larger, but it should be possible to upgrade to roads with the same size without tearing down the old road manually.   Is there an easier way to convert or upgrade roads, or do I have to manually remove the existing road every time?


Cannot make Conference Call using Skype on Ubuntu 14.04

I am using Ubuntu 14.04. With Skype Linux version 4.3.0.37 when I try a conference call, my friends can hear me, but there is no video. They receive a notification saying I need to upgrade Skype. There is no problem for a simple video call. Both audio and video work perfectly. I have downloaded Skype from . The Skype website don't have any recent updates for Linux distributions.   Any help on how to solve this?


SignUp throws error in StackExchange.com for the non logged-in user

After the top bar changes in the , when a non logged-in user click the Sign Up button, instead of navigating to the corresponding page it displays the openid related code in the screen.  Screenshots for reference:


I try to repair an broken Ubunu 14.04 with chroot. What I did, is to boot Ubuntu from USB mounted the original system that has to be repaired and changed to this system with chroot:  sudo mount /dev/sdXY /mnt  sudo mount -o bind /dev /mnt/dev  sudo mount -o bind /sys /mnt/sys  sudo mount -t proc /proc /mnt/proc  sudo cp /proc/mounts /mnt/etc/mtab  sudo chroot /mnt /bin/bash    That worked fine, but in chroot environment I don't have access to the internet, so apt isn't able to resolve hostnames. What am I supposed to do?   ping www.askubuntu.com   does not work either.


Does Central Limit Theorem have anything to do with Bayesian Inference?

I am studying Central Limit Theorem and Bayesian Statistics and got a question that which or what part in Bayesian Statistics the concept of Central Limit Theorem is applied. If so, I'd like to know the example.


Why was it so important to have a victor in the Hunger Games?

In the first Hunger Games book/movie, why was President Snow so insistent on letting both Katniss and Peta live in order for there to be a victor? This seems like a major plot hole to me, as the entire entry to the series depicts how little the Capitol values a district person's life, e.g.: the poor living conditions, the scarce resources available to them, the annual tribute of a teenager for showcase in a public death match. I don't really see it plausible that allowing them both to die would have caused a revolution against the Capitol, and I would think killing both remaining participants would be a bigger display of power than allowing one to live. District citizens are used to death, they would probably see it as just another injustice but carry on with their lives.


Calulating the Ramsey number $R(T, K_{1,n})$ of a tree $T$ and bipartite graph $K_{1,n}$

Let $m,n \ge 2$ be such that $m-1$ is a divisor of $n-1$. Let $T$ be a tree with $m$ vertices. Calculate the Ramsey number $R(T,K_{1,n})$.   Thoughts: I'm having trouble approaching this question. I think the detail about the divisibility is somehow related to the fact that $n-1$ is the number of nodes on one side of the bipartite graph. $m-1$ is the number of nodes in a tree excluding some defined "root". I'd love some ideas on what to consider and how to approach such a question. My main problem is that I don't know what to do with the info about divisibility and forms of the two possible subgraphs. I'm wondering if there is some way to connect this to Chvátal's Theorem on $R(T,K_n)$.


Ubuntu terminal location? Why can't I see it in ps aux?

I was trying to launch another terminal via terminal too and noticed that it's not the right name. wolf@ubuntu:~$ terminal  Command 'terminal' not found, but can be installed with:  sudo apt install rsplib-legacy-wrappers  wolf@ubuntu:~$  Then, I looked at the ps as I already have one terminal running now. wolf@ubuntu:~$ ps aux | grep -i terminal wolf      3688  0.6  0.2 807008 41496 ?        Ssl  08:40   0:05 /usr/lib/gnome-terminal/gnome-terminal-server wolf      6251  0.0  0.0  14428  1076 pts/1    S+   08:53   0:00 grep --color=auto -i terminal wolf@ubuntu:~$   I found one which is /usr/lib/gnome-terminal/gnome-terminal-server and I thought this must be the one. wolf@ubuntu:~$ file /usr/lib/gnome-terminal/gnome-terminal-server /usr/lib/gnome-terminal/gnome-terminal-server: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-ubuntu-x86-64.so.2, for GNU/ubuntu 3.2.0 wolf@ubuntu:~$   However, I can't launch it wolf@ubuntu:~$ /usr/lib/gnome-terminal/gnome-terminal-server Failed to register: Unable to acquire bus name 'org.gnome.Terminal' wolf@ubuntu:~$


Notations involving squiggly lines over horizontal lines

Is there a symbol for "homeomorphic to"? I looked on Wikipedia, but it doesn't seem to mention one? Also, for isomorphism, is the symbol a squiggly line over an equals sign? What is the symbol with a squiggly line over just one horizontal line? Thanks.


I am confused about invoking bash from python code. I wrote a small script that shows strange behaviors when invoking bash from python : import subprocess  def check_output ( command,**w ):     print( '\n>>> %s'%command )     try :         return subprocess.check_output( command,**w ).decode()     except Exception as e :         return str( e )  print( check_output( ['ls','-l'])) print( check_output( ['ls','-l',';','ls','-a'])) print( check_output( 'ls -l' )) print( check_output( 'ls -l ; ls -a' )) print( check_output( ['echo','99'],shell=1)) print( check_output( ['echo','11',';','echo','22'],shell=1)) print( check_output( 'echo 33 ; echo 44',shell=1 ))  And the output: >>> ['ls', '-l'] total 124 -rwxrwxrwx 1 root root    59 Mar 22 09:57 main.py -rwxrwxrwx 1 root root  3885 Mar 17 17:30 README.md drwxrwxrwx 0 root root  4096 Mar 22 10:33 src -rwxrwxrwx 1 root root    36 Mar 22 09:57 sub.c drwxrwxrwx 0 root root  4096 Mar 22 10:33 test   >>> ['ls', '-l', ';', 'ls', '-a'] ls: cannot access ';': No such file or directory ls: cannot access 'ls': No such file or directory Command '['ls', '-l', ';', 'ls', '-a']' returned non-zero exit status 2.  >>> ls -l [Errno 2] No such file or directory: 'ls -l': 'ls -l'  >>> ls -l ; ls -a [Errno 2] No such file or directory: 'ls -l ; ls -a': 'ls -l ; ls -a'  >>> ['echo', '99']  >>> ['echo', '11', ';', 'echo', '22']  >>> echo 33 ; echo 44 33 44  The first and last commands are as I expected, but the others seems strange to me. The multiple commands separator ; seems to act differently depending on parameter shell. And also the concatenated commands... By the way I get the same results with python 2 and 3 (under kali linux).


Value of $1/e$ with the partial sum of $e$

How to show $$1/e=1-1+\frac1{2!}-\frac1{3!}+\frac1{4!}+\dots$$  I have consider the product of the nth partial sums of the expansions for $e$ and $1/e$ but still can't prove there are equal to 1  with the definition $e=1+1+\frac1{2!}+\frac1{3!}+\dots$


c# If object class is base class it means c# support multiple inhertance

Class A { }  Class B : A , Object( as object is ultimate base class)  { }   So if object is base class then how we can inherit class A in Class B.


How to exclude IP from htaccess domain redirect

I'm trying to write a custom redirect rule for some testing purposes on 2 domains with exactly same site. The code I am using is:    RewriteEngine on   RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$   RewriteCond %{HTTP_HOST} ^.*site1.com [NC]   RewriteRule ^(.*)$ http://www.site2.com/$1 [R=301,L]   What I want is to redirect all requests for site1 to site2 except for requests from IP address 1.2.3.4. But currently requests from that IP are also being redirected to site2.   Is there something I've missed in settings?  ( note: both domains are on the same shared hosting account )  EDIT: I'v also tried:  RewriteEngine on   RewriteCond %{REMOTE_ADDR} !^my_ip$ [OR]   RewriteCond %{REMOTE_ADDR} !^server_ip$   RewriteCond %{HTTP_HOST} ^.*site1 [NC]   RewriteRule ^(.*)$ http://site2/$1 [R=301,L]  RewriteEngine on   RewriteCond %{REMOTE_ADDR} !=my_ip [OR]   RewriteCond %{REMOTE_ADDR} !=server_ip   RewriteCond %{HTTP_HOST} ^.*site1 [NC]   RewriteRule ^(.*)$ http://site2/$1 [R=301,L]  RewriteEngine on   RewriteCond %{REMOTE_ADDR} ^my_ip$ [OR]   RewriteCond %{REMOTE_ADDR} ^server_ip$   RewriteRule ^(.*)$ http://site1/$1 [L]    RewriteCond %{HTTP_HOST} ^.*site1 [NC]   RewriteRule ^(.*)$ http://site2/$1 [R=301,L]


Applying the Heisenberg uncertainty principle to photons

The speed of light is a universal constant, so we definitely know the speed of the photons. If we know the speed, then we should not have any information about their location, because of Heisenberg's uncertainty principle. But I'm one hundred percent sure when light goes through my window.  Why is this so?


Adobe Reader after closing should remember page

I have here an Adobe Reader X - If im reading an ebook and closing and restart it the reader doesnt remember the page - it always start on page 1. I would like to continue after a restart there where I stopped. How to do that with the Adobe Reader?


Learning Curve and time needed to install/manage Centos Server

Completely newby question please. I always had shared hosting. Now I am about to get a dedicated Centos server. I now need to know whether I should get a managed one or not. 2 questions please:   Whats the learning curve (approx. days/months) assuming I am a fast learner? If I managed it myself, how much of my time (approx. each day) do I need to commit in managing the server? (Assuming normal circumstances).    thank you for any help!


How to loop through selected data in SQL Server?

I want to select multiple rows of data from a table and add it onto another one.  For example:  Select * from Table1   which would return  id | name  1 | Chad  2 | Mary  3 | Denise   I want to add these rows of data to Table 2  Insert(id, name) values(@id, @name)   Thank you!


Let u be an algebraic element of K whose minimal polynomial in F[x] has prime degree. If E is a field such that F<E<F(u), show that E = F or E=F(u)

I don't know how to even begin this problem, let alone do anything else with it. I would appreciate any help


What's the difference between latte, mocha, and all the other drinks on a coffee-house menu?

There are many different coffee-based drinks on an average coffee-house menu.  But what makes them different from each other?  What are the differences / distinguishing characteristics between: latte, caffe misto, cappuccino, mocha, macchiato, Americano, and Cafe Au Lait?


If $ka_k \rightarrow 0$, then $\sum a_k$ converges.

How do I prove the above claim, or find a counterexample? Any hints are greatly appreciated


VSE: Can I move an audio track in smaller increments than one frame?

I am using Blender to mix the video from my camera with the audio from my external recording setup.  It works great mostly and I am very pleased with it.  But the problem is that I can't start the audio recorder an even number of thirtieths of a second from when I started the camera.  And Blender seems to only let me move the audio track in the VSE by whole frames (1/30 of a second).  Here are a couple screenshots:   The track on top is the external audio and the one on the bottom is the camera's audio.  Between the two screenshots I have only moved the audio track by one frame.  But as you can see, I need to move it by about 1/2 frame to line up the audio properly with the video.  So can I move a track in the VSE by fractions of a frame?


StringBuffer Or StringBuilder For Mysql Select Query

This is my code.  Code 1 : StringBuilder sb = new StringBuilder("select * from user");  Code 2 : StringBuffer sb1 = new StringBuffer("select * from user");  Which one is correct? and Why?  EDIT : I have seen in some code StringBuffer is used and in other StringBuilder is used. For the query like this, which will be passed to get PreparedStatement, which approach is better. Also tell me what would happen for insert queries.


What are the breakthroughs in Statistics of the past 15 years?

I still remember the Annals of Statistics paper on Boosting by Friedman-Hastie-Tibshirani, and the comments on that same issues by other authors (including Freund and Schapire). At that time, clearly Boosting was viewed as a breakthrough in many respects: computationally feasible, an ensemble method, with excellent yet mysterious performance. Around the same time, SVM came of age, offering a framework underpinned by solid theory and with plenty of variants and applications.   That was in the marvelous 90s. In the past 15 years, it seems to me that a lot of Statistics has been a cleaning and detailing operation, but with few truly new views.  So I'll ask two questions:   Have I missed some revolutionary/seminal paper? If not, are there new approaches that you think have the potential to change the viewpoint of statistical inference?   Rules:    One answer per post;  References or links welcome.   P.S.: I have a couple of candidates for promising breakthroughs. I will post them later.


I have a photo and a text page. I want to make a video with a background image that I have and the text will run on that photo. Please help me with ffmpeg


What coordinate system is this data is in?

I have a CSV with latitudes, longitudes, and place descriptions, I'm trying to figure out the CRS so I can reproject the data.   The data has no accessible documentation, and appears to be dumped out of an Oracle database.   Plotting the coordinates on a cartesian grid shows all of the United states and some places outside of it.     What is the best way to figure the CRS out?  Here are a few examples from (juding by the FIPS codes) Brooklyn, Boston, and LA  Longitude, Latitude, State_Code, County_Code, Station_Location 73948800, 40725490, 36, 47, BTWN NORMAN AVE & DRIGGS AVE 71023639, 42424997, 25, 25, NORTHEAST EXPRESSWAY  118442961, 34042668, 6, 37, N/O OLYMPIC BL; S/O JCT RTE 2


Problem with "touch sensitivity" on iPhone calendar

After installing the latest software update, my calendar on my iPhone 5s has lost it's "sensitivity". I cannot just touch a date to see my scheduled events. I must the date over and over, with much for "force" than before. There is also a similar type of problem with my iPad since the last update. It take MUCH more force to close an app with the "finger pinch".


How to check if a variable is empty on command line?

I have the following shell script  echo "please enter user name: " read USER_NAME  while [ ! "$USER_NAME" ] do echo "User name can't be empty please re-enter: " read USER_NAME done   How can I do the same using commands on command line?


The product of manifolds without boundaries is always a manifold without boundary?  $\textbf{Example:}$ $S^2\times \mathbb R$ has a boundary?


Adding a ExactTarget calendar event using SOAP or REST API

Is it possible to add a custom calendar event to the Calendar pane in the Marketing Cloud interface using the ExactTarget API? I'm writing an app which does "stuff" and I'd like the app to add a custom event to the calendar.  I've had a look at both the REST and SOAP API and I'm not sure if there is a method to achieve this. Please can someone confirm?


Checking if HyperThreading is enabled or not?

How can I check if hyperthreading is enabled on a Linux machine, using a perl script to check for it?  I'm trying the following way:  dmidecode -t processor | grep HTT   Let me know if I'm on right track.


As per title, how can I forward all the emails I’m receiving? I have tried the rules option, but I can’t select all the incoming mails and I cannot find an appropriate action to forward to another email.


Where do the first two numbers of Fibonacci Sequence come from?

I'm trying to code a simple algorithm that prints out the $n^{th}$ Fibonacci number. However, my program requires the initial seed values $F_0 = 0$ and $F_1 = 1$, when I'm hopeful I can figure something out to not require initial seed values.  Where does $F_0$ and $F_1$ come from anyway? Recursively, $F_n = F_{n-1} + F_{n-2}$, for all $n > 1$, but is there a mathematical approach to infer $F_0$ and $F_1$? Basically, how would I approach the values $F_0$ and $F_1$ without knowing them beforehand?  edit; I wanted to add since there seems to be confusion: I'm only concerned with the below sequence.  $$0, 1, 1, 2, 3, 5, 8, ...$$  I'm curious to how the $0, 1$ is defined, because every other term can be derived recursively, but the first two cannot (or can they?).


How to tell if Microsoft Works is 32 or 64 bit? Please Help!

I am trying to convert one of our apps to run on Win7 64 bit from XP 32 bit. One of the things that it uses is Excel to import files. It's a little complicated since it was using Microsoft.Jet.OLEDB.4.0 (Excel). I found Office 14 (2010) has a 64bit version I can download. I downloaded Office 2010 Beta but it didn't seem to install Microsoft.ACE.OLEDB.14.0. I found that I could download 2010 Office System Driver Beta: Data Connectivity Components which has the ACE.OLEDB.14 in it but when I try to install it, the installed tells me "You cannot install the 64-bit version of Access Database engine for Microsoft Office 2010 because you currently have 32-bit Office products installed". How do I determine what 32bit office products this is reffering to? My Dell came with Microsoft Works installed. I  don't know if this is 32 or 64 bit. Is there anyway to tell? I don't want to uninstall this if it's not the problem and I'm not sure what else might be the problem.  Any help would be appreciated! thanks, Bill


Sysdig - version in Ubuntu repository is outdated? (Ubuntu 18)

Is anyone able to explain why the version of Sysdig that is available through the official Ubuntu repository is so out of date?  Also, is there a way to have this updated to the latest release?  Ubuntu repository: 0.19.1 Released: October 2017  Draios repository: 0.26.4 Released: August 2019  Thanks!


Proving that all terms in sequence are positive integers (Recursive)

I am preparing for Putnam and working through practice-like questions and I am boggled. I've got the sequence defined by $a_1 = 1$ and $a_{n+1} = 2a_n+\sqrt{3a_n^2-2}$ for any $n\in\mathbb{N}$ and I'm trying to show that every term is a positive integer. I am getting as far as  $a_{n+1}^2 -4a_{n+1}a_n + a_n^2 = -2$ but I can't figure out how to use the recursive relationship to show that all terms are integers. I've tried expanding the sequence in terms of $a_n$ or $a_{n+2}$ but it doesn't seem to get me far. Any hints or help would be greatly appreciated.


Is there any reason why I would want to have   iptables -A INPUT -j REJECT   instead of   iptables -A INPUT -j DROP


Why is the inner product of position eigenstates not normalised?

I have read that $$<{\bf r}|{\bf r}'> =  δ({\bf r}-{\bf r}').$$  I don't understand how this is correct, I want to say it is equal to 1 or 0, rather than an unnormalised delta function.  Clearly I am missing something!


I have a .  When pedaling (actually only under load, not when just turning the crank while it's on a stand) the bottom bracket squeaks or chirps. I first thought it was birds chirping;  then I realized they were remarkably regular in their chirping.  Then I realized it was my bike. The sound has definitely gotten worse over time.  What should I be looking at in terms of fixing this?  Do I need to replace the bottom bracket?


Vector Calculus and Support vector machines (SVM)

In the derivation of the support vector machine solution, one has to differentiate the term $||w||^2$ with respect to $w$ at some point, where $w$ is the normal vector to the hyperplane. The result of this differentiation is $2w$.  Can anyone show me how it comes to $2w$? I am not so clear on how to differentiate a norm with respect to a vector-- I cant see how the result comes to be $2w$.


FancyVerb Error in using minted package with beamer

Could someone help me with the following error? I am trying to use minted package in beamer.  FancyVerb Error: File ended while scanning use of \FancyVerbGetLine.   This is a MWE that duplicates the error I get. Thank you.   \documentclass[11pt]{beamer} \usepackage{minted} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{minted} \usetheme{AnnArbor} \begin{document}  \begin{frame} \frametitle{Test} \begin{minted}{python} def first2items(list1):   return list1[0], list1[1] a, b = first2items(["Hello", "world", "hi", "universe"]) print a + " " + b # This is a comment \end{minted} \end{frame}  \end{document}


What are the rules for putting media on different sites?

I have accounts on many Genealogy Related Sites (FamilySearch, Ancestry, FindMyPast, etc.) and other people are uploading stories and photos to our common ancestors.   Is it okay for me to take photos from Family Search and put them on Ancestry, and Vice versa? Are there some other rules associated with posting it?


Dividing a ring by the annihilator of a Noetherian module yields a Noetherian ring

I am stuck on this homework problem:     Let $R$ be a commutative ring. Suppose $M$ is a Noetherian $R$-module. Prove that $M$ is finitely generated and that $R / \textrm{Ann}_R (M)$ is Noetherian.    It is fairly trivial that $M$ is finitely generated; I am stuck on the second statement. The two characterisations of Noetherianity I am familiar with are      R is Noetherian if and only if all of its ideals are finitely generated   and the Ascending Chain Condition.  I tried to construct an ascending chain of ideals in $R / \textrm{Ann}_R (M)$ starting from an ascending chain of submodules in $M$ and then tried to write an element of the $(i+1)$-th ideal as a linear combination of the $(i)$-th ideal and tried to incorporate the fact that we divided by the annihilator, but this horribly failed and now my house is on fire, my dog is dead and my wife signed the divorce papers.   In particular, starting from a chain of submodules $$M_1 \subseteq M_2 \subseteq \cdots,$$ I defined the $i$-th ideal $I_i \subseteq R / Ann$ as the ideal which annihilates $M_i$, but then I get a descending chain...  I also went the other way, starting from a chain of ideals $$I_1 \subseteq I_2 \subseteq \ldots$$ and constructing $M_i := I_i(M)$.  Any help in the form of hints and pointers, not full answers would be appreciated! (I'd rather construct the full proof myself, but I've been stuck on this for a couple days now so I need some stepping stones)


How to see which posts of mine have been deleted?

Today, I saw -50rep added to my reputation in my Movies.SE account, as a result of deletion of a user. So definitely one or more answers to his question(s) was/were deleted. So is there a way to see the deleted posts?


The begin align and end align environment

I've just got a, what is, hopefully simple question about the use of the \begin{align} and \end{align} environment delimiters. I have a single equation to write in between such commands.   \begin{align}   \begin{split}     A &= \left(B + \dots \\&+ \dots C \right)   \end{split} \end{align}   On one line I start the equation with a bracket which is fitted to the equation so make use of \left but the closure of this, defined by the corresponding \right bracket is on a different line and I am getting an error.   Is there an easy fix of this? Thanks!


Why is spawning threads in Java EE container discouraged?

One of the first things I've learned about Java EE development is that I shouldn't spawn my own threads inside a Java EE container. But when I come to think about it, I don't know the reason.  Can you clearly explain why it is discouraged?   I am sure most enterprise applications need some kind of asynchronous jobs like mail daemons, idle sessions, cleanup jobs etc.  So, if indeed one shouldn't spawn threads, what is the correct way to do it when needed?


How to convert a "False" string to Boolean value of false?

I am getting values as True and False from back-end. I am trying to convert those values as real Boolean values, But I am getting always true with my approach. What would be the correct way to do this?  here is my try:  var x = Boolean("False".toLowerCase());  console.log( x ); //giving true instead of false.


Does Markdown have a way to express strikeout?

I've been using <s> to put strikeout in posts -- is there a Markdown way of doing it?  It seems like -[Text here] would make sense, hehe :)


Back transforming regression results when modeling log(y)

I'm fitting a regression on the $\log(y)$.  Is it valid to back transform point estimates (and confidence/prediction intervals) by exponentiation?  I don't believe so, since $E[f(X)] \ne f(E[X])$ but wanted other's opinions.  My example below shows conflicts with back transforming (.239 vs .219).  set.seed(123)  a=-5 b=2  x=runif(100,0,1) y=exp(a*x+b+rnorm(100,0,.2)) # plot(x,y)  ### NLS Fit f <- function(x,a,b) {exp(a*x+b)}  fit <- nls(y ~ exp(a*x+b),  start = c(a=-10, b=15))  co=coef(fit) # curve(f(x=x, a=co[1], b=co[2]), add = TRUE,col=2,lwd=1.2)  predict(fit,newdata=data.frame(x=.7)) [1] 0.2393773  ### LM Fit # plot(x,log(y)) # abline(lm(log(y)~x),col=2) fit=lm(log(y)~x) temp=predict(fit,newdata=data.frame(x=.7),interval='prediction') exp(temp)         fit       lwr       upr 1 0.2199471 0.1492762 0.3240752


How was Ginny able to control Basilisk without knowing Parseltongue?

Ginny surely didn't know Parseltongue. It was a dark and rare skill.  Talking about Riddle's diary, it was merely hypnotizing Ginny.  But, how exactly did Ginny control Basilisk without knowing Parseltongue?


Sampling from a multivariate Gaussian mixture model

How can I generate multi-dimensional data from a (estimated) Gaussian mixture pdf? In general, what would be ways to generate multi-dimensional data from a pdf? I read rejection sampling can be used, but it requires estimating an upper bound for the pdf, which is not an easy task for me.


A bijection from N^2 to N that is not Cantor's pairing function

Is there any other bijection from $\mathbb{N}^{2}$ to $\mathbb{N}$ other than the pairing function? My search so far has come up empty.


Why not consider rate of change of acceleration?

Why do we not consider rate of change of acceleration in the study of linear motion?


Constructing a function that is continuous and has a max on an open interval, but is not necessarily increasing immediately to the left of the max.

This is a homework problem for my real analysis class. It is problem 13.1 from Mattuck's Introdution to Analysis. The question reads:       Suppose F(x) is continuous on some open interval I and c is a maximum point inside this interval. Is it true that f(x) must be increasing immediately to the left of c and decreasing immediately to the right of c? Proof or counterexample. (Note: A constant function is considered to be both increasing and decreasing.)      My friend and I have been attempting to find a counterexample. We figured a function that begins oscillating infinitely many times near c but converges to c would work. We're having difficulty constructing such a function out of elementary functions so we think we will have to define it in another way, piece-wise using receding intervals. I have no clue how this would look. Any advice would be greatly appreciated.


Can you use animate dead on something that was previously animated by the same spell?

If a zombie or skeleton that you have animated with  is reduced to 0 hit points, can you reanimate it using Animate dead?  The spell description only says:     Choose a pile of bones or a corpse of a Medium or Small humanoid within range.   Well presumably when a skeleton reduces to 0 hit points it becomes a pile of bones. Even if the bones are damaged, the spell does not require 'unbroken bones'.  As a dungeon master I might require using the  cantrip to restore broken bones to some degree, however I can't find any specific ruling.  I'm looking for a rules focused answer rather than a fluffy home rule answer :)


How to highlight the current row and column like a crosshair in Libreoffice?

How can I highlight the current row and column like a crosshair in Libreoffice as guide for the eye?    There seems to be an open  and a very similar question for   - but nothing I can find on libreoffice and supported at the moment. How can I get LibreOffice to do this?


Are there any pairs of words like "beloved"/"belovèd", "learned"/"learnèd" that maintain a semantic difference to the present day?

When I first read Romeo and Juliet in high school, I remember being intrigued by pairs of words such as,     beloved/belovèd    and      learned/learnèd   where there's an accent grave on the 'e' of the last syllable of one of each pair of word.  One thing I've always thought is that, strictly interpreted, beloved can really only be used as an adjective; if one wants to refer to the noun, as in my beloved, it should properly spelt as belovèd.  Similarly, I've always thought that learned is, strictly speaking, only acceptable as the past tense of the verb to learn, and that if one wanted to refer to the adjective form meaning "educated", as in learned scholar,  it would properly be spelt as learnèd.  I don't remember where exactly I got these impressions from, and I don't know if they are correct.  So my question is: Were there or is there any semantic difference between such pairs of words, or is it just a spelling idiosyncrasy? If there were such differences, do any persist to the present day?  Addendum: These aren't the only such pairs; there are others, I distinctly remember seeing many in lots of Shakespeare's plays...


What is the solution to Newton's bucket problem?

What is the solution to ?  The Wikipedia page does not give me any finality. After reading, I felt as if the problem implied either one of these two things    There is a special frame (the frame of distant stars) There is a special frame which is determined by coordinates (position).   My Background  Pardon me if I have terribly misunderstood the article, but I know high school math and science fairly well and I have participated in a Science Olympiad. So I would like explanations to be made assuming this.  Another helpful article about the problem can be found .


I have a js object from my react app and want to delete a single data. The object is as follows  state = {   data: [] }  const contactData = {   Datas: {     name: "william",     email: "test@test.com",     phoneNumber: "07123456",     addressOne: "street1 ",     addressTwo: "street2",     postCode: "hd1 2rd ",     country: "UK"   } };  const DateAdd = {   ...contactData,   id: new Date() }; const immutate = {   ...state,   data: state.data.concat(DateAdd) };  console.log(immutate);   I able to delete all the data with this method but not a single data  const deleteData = immutate.data.filter(own => own.id !== "generated date");   how would I able to delete like name or email only?  appreciate for your helps.


I'm a Windows 8 user. I was wondering if there's any way to dual boot my HP pavilion G6 2237ez with Windows 8 and Ubuntu. I just wanted to try Ubuntu and see for myself what's so special about Ubuntu. Thanks in advance :)


Hyperref + \url: long URL with dashes won't break

I've discovered a rather weird behaviour of PdfLaTeX. In this example  \documentclass{article} \usepackage[breaklinks]{hyperref} \begin{document} \url{http://www.emarketer.com/blog/index.php/quick-stat-smartphone-users-account-38-mobile-phone-users/} \end{document}   PdfLaTeX won't break the URL and create a too long line. However, if I replace \url with \href like this:  \documentclass{article} \usepackage{hyperref} \begin{document} \href{http://www.emarketer.com/blog/index.php/quick-stat-smartphone-users-account-38-mobile-phone-users/}{http://www.emarketer.com/blog/index.php/quick-stat-smartphone-users-account-38-mobile-phone-users/} \end{document}   I get the line broken, but the font of the link is not right any more of course (normal instead of texttt). Why doesn't URL break the line at dashes and what could I do to get a nicely typeset line-broken link?


In circular motion of a particle is the velocity of particle always perpendicular to the centripetal acceleration? Are there any exceptions? Why or why not ?


What are the wavy conductive tracks for?

Consider the following PCB.  I notice some motherboards have such wavy tracks. Are there any purposes? Or it is there merely for artistic purposes?


Cant download from Ubuntu Software centre

I cant download anything from Ubuntu software center, it hangs on updating cache then its telling me "failed to download repository information". Linux I understand suppose to be a straight forward OS with no hiccups, but lately its been giving me headaches and I just only installed it 5 days ago. I looked up similar problems but nothing comes close to fixing it. Any suggestions or fixes ?


Isomorphism from Natural numbers to the Odd Natural numbers

Prove there exists an isomorphism from the semigroup of natural numbers under multiplication to the semigroup of odd natural numbers under multiplication.  An example would be helpful.


Definition: The Borel $\sigma$-algebra on $\mathbb R$ is the $\sigma$-algebra B($\mathbb R$) generated by the $\pi$-system $\mathcal J$ of intervals $\ (a, b]$, where $\ a<b$ in $\mathbb R$ (We also allow the possibility that $\ a=-\infty\ or \ b=\infty$) Its elements are called Borel sets. For A $\in$ B($\mathbb R$), the $\sigma$-algebra $$B(A)= \{B \subseteq A: B \in B(\mathbb R)\}$$ of Borel subsets of A is termed the Borel $\sigma$-algebra on A.  I struggle with this part especially "generated by the $\pi$-system $\mathcal J$ of intervals (a, b]" In addition could someone please provide an example of a Borel set, preferably some numerical interval :) Also is $\mathbb R$ the type of numbers that the $\sigma$-algebra  is acting on?


How to draw a polygon with different line color and rounded corners?

I want to draw a polygon with different line color and rounded corners, but the corners of polygon are not rounded!  \documentclass[12pt]{report} \usepackage{tikz} \begin{document} \begin{tikzpicture}[line width=5pt] \coordinate (A) at (0,0); \coordinate (B) at (2,0); \coordinate (C) at (3,2); \coordinate (D) at (1,3); \coordinate (E) at (-1,2); \draw[pink] (A) -- (B); \draw[blue] (B) -- (C); \draw[red] (C) -- (D); \draw [green] (D) -- (E); \draw (E) -- (A); \end{tikzpicture} \end{document}


How do filament LED bulbs work, looking very similar to incandescent bulbs?

Filament LED bulbs use very narrow strips containing the LED, which look similar to filaments of an old incandescent bulb:  They look like a normal bulb with large "old-style" coal filaments, and are of about the same size and shape as the common standart E27 socket bulb.    There are two basic variants of these bulbs:     One "plain" as described, looking impressively similar to a classic bulb The other has a white coating on the glass, about 15mm wide next to the metal socket.   How are these filaments build? I could imagine the it's "pretty normal" LEDs, but lots of them, directly bonded to something? (There are references to COB)  How does the heat management work? Ii have seen speculations about filling the bulb with either helium or "some patented organic gas" - could that be enough for cooling?  How does the driver - which seems to be very small - work?  In the variant with white coating - hiding some components, I assume - is already not that much space, and in the plain variant, there seems to be almost no space for something nontrivial.  Below you see some bulbs of the white coating variant, switched on:   (Images with the permission of this )    Note how the LED filament bulbs are not so much similar to the tungsten filament bulbs recently being phased out - they are more resembling the long outdated carbon filament bulbs:


List all files with the same inode number?

Let's say when I do ls -li inside a directory, I get this: 12353538 -rw-r--r-- 6 me me 1650 2013-01-10 16:33 fun.txt  As the output shows, the file fun.txt has 6 hard links; and the inode number is 12353538. How do I find all the hard links for the file i.e. files with the same inode number?


Estimation of Equatorial Bulge of the Earth

My dynamics lecture notes repeat the Earth's equatorial bulge can be approximated as: $$ \approx \frac{\Omega^2R}{g} \approx \frac{1}{300} $$ (Do they mean R/300?)  They also include statements like:  "The Earth's oblateness  $ \frac{I_3-I_1}{I_1}\approx \frac{\Omega^2R}{g} \approx \frac{1}{300} $"  Could anybody explain where this comes from? I have tried several ways to balance the gravitational and centripetal forces but I never seem to arrive at the correct result and cannot get my head around this concept.


What is this 6.3GB of hard disk space allocated as "Swap"?

I installed Ubuntu in dual boot, so I have one partition for Windows, and another for Ubuntu. However, when I check the partitions I see that I have 6.3GB of space formatted as Linux swap. I do not know why I have that partition. Can I format it to use?


The velocity of the flowing coming out of the balloons?

Last day , when i was working on two interconnected balloons , a question was kicking my brains !!! This is the explanation of the question:  First , suppose a system that composed of two spherical membranes filled with air (two balloons have different initial volumes {means that the pressure inside which balloons are different} and the air pressure is 1 a.t.m) . We connect them with hollow tube and a valve. When we open the valve , one of them shrinks and the other one expands (It depends on their pressure) .  So how can we get the velocity of the flowing air between two balloons? (Consider everything but if you have reasons for not considering one of them -for example the ratio of friction in the tube- Don't consider them and just tell me the reason)  Thanks


Passing boolean values with wp_localize_script

I am using wp_localize_script to pass a couple of values from my theme options to a javascript file. First I got the values from my theme options:  $options = get_option('theme');   $flex_auto = $options["slide-auto"]; $flex_animation = $options["slide-animation"]; $flex_direction = $options["slide-direction"];   Then I used wp_localize_script to create my array of values.  wp_enqueue_script('flexslider'); wp_localize_script('flexslider', 'flex_vars', array(     'flex_auto' => $flex_auto,     'flex_animation' => $flex_animation,         'flex_direction' => $flex_direction     ) );   In my javascript file I did this:   var $anim = flex_vars.flex_animation; var $auto = flex_vars.flex_auto; var $dire = flex_vars.flex_direction;  jQuery('.flexslider').flexslider({     animation: $anim,     slideshow: $auto,     controlNav: 'thumbnails',     directionNav: $dire,      slideshowSpeed: 7000,     animationSpeed: 1000,     touch: true, });   My theme options include some values that are made with checkboxes which work with 0/1 booleans while the jQuery plugin I'm using works with true/false. I tried saving the boolean value as strings by using a drop-down menu with two options, either true or false, but that doesn't seem to work. How can I pass the boolean values from the theme options to the javascript file? Any suggestions and hints very welcome :)


Should I always use a comma before a quote?

When quoting something said by someone else, should I use a comma before the quote? Suppose I quote the definition given in a dictionary. Am I correctly using the the punctuation marks in the following sentences? (I am using them in the way I think correct in American English.)     One of the meanings of cat is, "a small animal with soft fur that people often keep as a pet."        A cadet is, "a young person who is training to become an officer in the police or armed forces."   Should I use a comma only when I explicitly quote somebody?     Groucho Marx once said, "Although it is generally known, I think it's about time to announce that I was born at a very early age."   Should I use a comma in this case too?     As Groucho Marx said,            No one is completely unhappy at the failure of his best friend.      On Comma Sense, A fun-damental guide to punctuation (Richard Lederer and John Shore), I read the following about using the comma:     Use commas to set off complete quotations:           The great general George S. Patton once said, "No, no—the war is this way, you idiots!"


Are there any other instances of an existing knight appointing another knight?

In Game of Thrones S08E2 "A Knight of the Seven Kingdoms", in the scene where      Jaime Lannister is knighting Brienne of Tarth, Jaime says it doesn't require a king to make one a knight. An existing knight can name another warrior a knight. Finally, Ser Jaime Lannister knights Brienne of Tarth and she is named "A Knight of the Seven Kingdoms".   Are there any instances in the books where an existing knight gave another warrior Knighthood by himself?


Best way to select monthly and yearly sales average

I am creating a stored procedure that inserts data into a summary table. When I run the stored procedure, it should populate the table with one row like so  Two of my tasks are to insert Average Sales Per Month and Average Sales Per Year. Based on this sales table(Sample)-It also contains data for 2017.  I can't seem to get the syntax correct. Everything I have tried thus far has been a failure. Can someone help me out with these two lines of code? Here is what I have so far: SELECT AVG(salesamt) INTO avgsalesmo FROM sales WHERE month(salesdate)  SELECT AVG(salesamt) INTO avgsalesyr FROM sales WHERE year(salesdate)


How do I add plugins to my Bukkit SMP server?

I was wondering how to add plugins to my Minecraft server. I am using Bukkit, and the things I would like to be able to do is spawn stuff, teleport to other players, set home locations, have an in-game currency/shop and be able to teleport to homes.


Why do players enter with children on the ground?

I have seen many soccer matches. I often see that players enter the field with children. Why do they enter with the children?


How to reminded a Prof of a promised recommendation letter (2 years ago)

I am an undergraduate student volunteered at a research lab 2 years ago, working under a phd student. At the end of the work term, the phd student arranged a meeting with the prof so that I presented my work to him. He was rather impressed and promised to provide reference (2 years ago).   Right now, I am applying graduate studies so I would need his recommendation letter. But the problem is that he might not remember me because I didn't work directly under him and I merely gave a presentation. What kind of approach should I take in order to remind him of this issue?


Year Level/School Level Tags  Context:  So this question mainly applies to the more academically related sites - the ones that come immediately to mind are Math SE, English SE, Physics SE, etc. - rather than the miscellaneous sites (like Ask Different etc.). Personally, when browsing questions on MSE I find that the level of questions is quite high - university, post-university level, and the few high school questions which I see scattered amongst them are often buried in a series of more complicated questions. Now, it's of my opinion (and I'm sure most would agree) that these simpler questions are just as genuine and answer-worthy as the more complicated questions, seeing as they are genuine questions from their askers. This begs the question, should we really be burying them amongst a ton of questions which at times can frankly be incomprehensibly complicated? Or on the converse side - should we putting these with the higher-level questions? Aren't they just taking space and distracting from the complicated questions that experienced and knowledgeable answerers are looking to answer? This example thus far has been focused on MSE but I feel that personally, this is a widespread "issue" if you will.  Question:   Is it not more effective to introduce a series of tags in each site such as  Year 12 , or  Secondary School, or  University ?  I think that this could clear the clutter and allow for more focused answering. Someone who can only answer secondary questions but would like to contribute and gain reputation no longer has to search all questions for some easier one, but could simply watch the secondary tags. Those who have been eternally scarred by their secondary years could only answer Uni questions without having to see a bunch of secondary questions in between.  Or, seeing as there is only 5 tags allowed and this could possibly take up two (i.e.  Year 12  and  Secondary School overlap), should we consider adding some built in feature to the question asker whereby before tags, you can choose from a "Year Level Classifier" such as  Year 12 , or  Secondary School, or  University ?   Thoughts?  Thanks!


I am getting these when I try to install npm...  BTW: I could install other packages so I am not sure if I have held broken packages...  And I did FRESH INSTALL of Ubuntu and still this issues show up... PLEASE help!!!  $ sudo apt install npm The following packages have unmet dependencies:  npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   $ sudo apt install node-gyp The following packages have unmet dependencies:  node-gyp : Depends: nodejs-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.  $ sudo apt install nodejs-dev The following packages have unmet dependencies:  nodejs-dev : Depends: libssl-dev (>= 1.0.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  $ sudo apt install libssl-dev The following packages have unmet dependencies:  libssl-dev : Depends: libssl1.1 (= 1.1.0g-2ubuntu4) but 1.1.0g-2ubuntu4.1 is to be installed               Recommends: libssl-doc but it is not going to be installed E: Unable to correct problems, you have held broken packages.   BTW: ibssl1.1 is installed and it says...   $sudo apt install libssl1.1 ... libssl1.1 is already the newest version (1.1.0g-2ubuntu4.1)


Central Moments of Symmetric Distributions

I am trying to show that the central moment of a symmetric distribution:     $${\bf f}_x{\bf (a+x)} = {\bf f}_x{\bf(a-x)}$$ is zero for odd numbers. So for instance the third central moment $${\bf E[(X-u)^3] = 0}.$$ I started by trying to show that $${\bf E[(X-u)^3] = E[X^3] -3uE[X^2] + 3u^2E[X] - u^3}.$$ I am not sure where to go from here, any suggestions? Is there a better way to go about proving this?


My last line in my method was supposed to be   return methodName(xxx,xxx);   but I had it as  return (xxx,xxx);   The method return type is bool and I only noticed the typo when I debug the problem. I did not expect return (xxx,xxx); to compile. What did it do exactly?


I am generating a pdf file with PDFLaTeX. The content of the pdf looks well at a first glance. However if I try to copy and paste the text to somewhere else the text look like this: ❉✐❡ ▼❡♥❣❡ ❛♥ ■♥❢♦r♠❛t✐♦♥❡♥ ✉♥❞ ❘❡ss♦✉r❝❡♥ ✐♠ ■♥t❡r♥❡t ✇ä❝❤st ❢♦rt❧❛✉❢❡♥❞✳ Instead of how it should looks like: Die Menge an Informationen und Ressourcen im Internet wächst fortlaufend.  Likewise it is not possible to search inside the pdf document. It seems that there is something wrong with the encoding.   EDIT I found that this happens because I am using the template dissonline:   There is a documentclass DissOnlineLatex which leads to this problem, but I am still not know how to fix it.


Why is a single inline French quote with csquotes causing all the following punctuation to have extra spacing?

I'm pretty new to LaTeX, so take it easy on me. 🤣  I'm trying to include a (single) French phrase in a (short, simple) document — and I want to get it right, more as a learning exercise, than because it really matters that much in this context.  Some googling (and tons of tex.se posts) have basically led me to the following combination of tool, environment, and packages: 1. , rendering a 2.  article, using 3.  and 4.  to get beautiful French and a blockquote:    Unfortunately, as shown above, while the \foreignquote{french}{La propriété, c'est le vol!} works as intended, it seems to leave the punctuation settings screwed up for the rest of the document:   Colons and semicolons, after that first \foreignquote (slash the implied \foreignlanguage), continue to be ‘french-spaced’ throughout the document; I'm very puzzled by the documentation on autopunct, but that, also, seems to be behaving strangely — despite my american setting, the periods remain stubbornly outside of the quote-marks.     Here's a MWE:  \documentclass[man]{apa}  \usepackage{polyglossia} \setdefaultlanguage{english} \setotherlanguage{french}  \usepackage[autostyle,autopunct,csdisplay,french=guillemets]{csquotes} \MakeAutoQuote{“}{”} \MakeAutoQuote*{‘}{’} \MakeForeignQuote{french}{«}{»}  % ...  \begin{document} \EnableQuotes \ldots\ and to the passion of his writings. He proceeds to cast doubt on many popularization of Proudhon's work, including the famous «La propriété, c'est le vol!»: \blockquote{It is only by reading Proudhon carefully — and fully — that it is possible to understand what he meant by “property” and why he regarded it as “theft”. A false impression of Proudhon's views on this, as well as on the other matters, is derived from such dicta.}  Throughout the work, Schapiro counter-asserts many other viewpoints that he feels are over-represented in both contemporary and later analyses: that Proudhon was a revolutionary (at least in the traditional, violent sense); that Proudhon was of, or for, the masses, as represented by the working-class; even that Proudhon was against statist violence \ldots \end{document}


How I can disable in Google client=ubuntu (in DDG t=canonical) in Firefox 47? See screenshot:    UPD:  That's all what i find about subj,   >strings /usr/lib/firefox/libxul.so | grep "client=" -n  208606:  GetCacheSession for client=%s, policy=%d  but more interesting about Canonical partners. Seems, installing FF from official repo can negatively affect your right to privacy.


I have just upgraded from 18.10 to 19.04 and all of my links and icons have disappeared from my desktop. However when I look under ~/Desktop the documents are still there, they are just not actually showing up on the desktop itself. The links seem to have gone completely though.  I haven't had this problem with earlier upgrades.


Prove a graph Containing $2k$ odd vertices contains $k$ distinct trails

I'm reading the book Graphs and Their Uses which contains the following theorem and proof:     THEOREM 2.3. A connected graph with 2k odd vertices contains a family   of k distinct trails which, together, traverse all edges of the graph   exactly once.       PROOF. Let the odd vertices in the graph be denoted by   in some order.       $a_1,a_2,\dots,a_k$ and $b_1,b_2,\dots,b_k$      When we add the $k$ edges $a_lb_l, a_2b_2 ,\dots, a_kb_k$ to the graph, all   vertices become even and there is an Eulerian trail T. When these   edges are dropped out again, T falls into k separate trails covering   the edges in the original graph.   However this doesn't seem to make sense since in the graph whose vertices have degrees 3, 1, 1, 1 there is no way to add 2 edges in such a way that the degree of all odd vertices becomes even.  What am I missing here?


What is the pathway to Lie Groups theory

I only have an undergraduate level math but am quite fascinated with how lie groups are applied in elementary particle physics.  Any advice on how I can learn lie groups theory (with an application to physics in mind)?  What pre-requsite do I need, and how much group theory I need to master before I can start lie groups, and how much lie group theory do I need to understand elementary particle theory?


How to hide admin account and only show main user at logon screen in Windows?

When a user boots Windows is there a way to only show a single user that then asks for a password. For example, I have an admin user and a regular user. When the computer boots I do not want the user to see the admin account. Is this possible? If so, how would an admin then login?  I have Windows 7 if that matters.


Is there a proof for existence of complex and hypercomplex numbers

As mathematics advanced ,mathematicians found out new type of numbers such as complex numbers and hypercomplex numbers . I had been really fascinated by this idea and the uses of these numbers. However I still have a doubt about them which had actually occured to me recently.When we define a number how do we know that their existence alone does not contradict the existing axioms and theories?Also ,I have heard that there are theories about real numbers whose proofs are based oncomplex numbers. How do we know that those are correct unless we are sure that complex numbers numbers do exist?Thus ,my question is ,IS THERE AN ACTUAL PROOF FOR EXISTENCE OF COMPLEX NUMBERS or is it that I am mistaken some where?Please help. Thanks in advance...


Is there anyway to change the rotation mode of multiple bones at once?

I am tired of manually switching from Quaternion rotation mode to XYZ euler mode for every bone. Is there anyway to accelerate this process? Any help would be appreciated!


Can we have a "format code" button in the mobile theme?

It's very difficult to post code on Stack Overflow using the mobile theme on an iDevice. I've tried indenting the code by 4 spaces, but I'm still getting an error that the code is not formatted correctly. Not to mention the fact that it's extremely tedious to do this by hand.  It would be much easier if we could just select all of the code and click a single button to format it automatically, much like we can already do using the full site. This seems like an important feature for Stack Overflow, even on the mobile theme. If we're going to be able to ask questions, we should be able to post snippets of code that accompany those questions. The  even says that:     ...the best Stack Overflow questions have a bit of source code in them...   Or is there another, existing solution to this problem that I'm missing?


Can you install Ubuntu on the Raspberry Pi 4

I was wondering if you could install Ubuntu on the RPi 4 because on Ubuntu's official guide, it said it's only available for the 2 and 3. Would the edition for the Raspberry Pi 3 work on the RPi 4?


Since bump mapping cannot modify the actual shape of an object and hence the flat shadow, I want to know is there is any way to generate an isosurface material like this in blender?


Specifying multiple hyphenation exception lists for multi-lingual documents

This question led to a new feature in a package:      By default, (La)TeX fails at hyphenating some words, e.g., the English word potable (should be pot-able) or the German word Mor-dop-fer (murder victim, should be Mord-op-fer). There are two strategies to achieve correct hyphenation:   adding a "hyphenation exception" list for the document's main language in the preamble with \hyphenation{pot-able}; using pot\-able at every instance in the document body. (This is also the only resort for words that already contain hyphens.)   But what to do in case of multi-lingual documents? As \hyphenation only works for the main document language, must one fall back to manual hyphenation correction in the document body for other languages? Or is it possible to specify separate hyphenation exception lists for the respective languages?  \documentclass[draft]{article}  \usepackage[ngerman,english]{babel}  \begin{document}  The language is \languagename\ (correct hyphenation is \verb|pot-able|):  XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX X potable  \selectlanguage{ngerman}  The language is \languagename\ (correct hyphenation is \verb|Mord-op-fer|):  XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX Mordopfer  \end{document}


Convergence of $\sum\limits_{n=2}^\infty \frac{1}{n^\alpha \ln^\beta (n)} $ for nonnegative $\alpha$ and $\beta$

Study the convergence of the following series: $$\sum_{n=2}^\infty \frac{1}{n^\alpha \cdot\ln^\beta(n)} \text{ where }\alpha,\beta \geq 0 $$   Applying d'Alembert criterion I have that $$ \lim_{n\to\infty} \frac{n^\alpha  \ln^\beta(n)}{(n+1)^\alpha  \ln^\beta (n+1)} = \lim_{n\to\infty} \left(\frac{n}{n+1}\right)^\alpha\left(\frac{\ln(n)}{\ln (n+1)}\right)^\beta = 1$$ so the nature of the series is inconclusive.  If $\alpha = \beta = 0$, then the series diverges, since $\sum_{n=2}^\infty 1 = \infty$.  Should I study the rest of the cases (i.e. if $\alpha = 0, \beta > 0$ the root test and the ratio test are also inconclusive). What is the best form to study the series?.  Thanks in advance


Why do some classes mention the same skill in both Trained and Class skills?

Consider this example from the Rogue class traits:     Trained Skills: Stealth and Thievery. From the class skills list below, choose four more trained skills at 1st level.       Class Skills: Acrobatics (Dex), Athletics (Str), Bluff (Cha), Dungeoneering (Wis), Insight (Wis), Intimidate (Cha), Perception (Wis), Stealth (Dex), Streetwise (Cha), Thievery (Dex)   The Rogue is trained in Stealth and Thievery. However, they're also included in the Class Skills section, and it invites you to: 'choose four more trained skills' from that list. This seems to be similar for all the classes.  So can you train Stealth and Thievery as a choice as well have it initially trained or the equivalent for other classes?


Sending Email is not working in server side but working in local system. I  tried port 25 and 465 instead of 587. But it doesn't work .  MailMessage msg = new MailMessage("from@gmail.com",ToEmail,"Password reset", message);      msg.IsBodyHtml = true; SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);  smtp.UseDefaultCredentials = true; smtp.Credentials = new NetworkCredential("from@gmail.com", "pswd"); smtp.EnableSsl = true; smtp.Send(msg);


Refusal of Schengen visa by the French embassy in Manila

We gifted our daughter an all-expense paid trip to Europe, with the initial stop in London before going to the Schengen member states. Since Paris is the first planned entry to the Schengen countries, she applied with the French Embassy in Manila. She has a UK visa stamped in her passport. Since she is unemployed and we are paying for her full trip for a month, and I am also traveling with her, we have given our support letter addressed to the consul and our financial documents showing our capacity to pay for everything. After losing 2 straight pregnancies, we thought this will give her a break she needed plus she will be traveling with me and my husband will later join us. Her visa was refused by the French embassy for the following reasons:   The information submitted regarding the justification for the purpose and conditions of the intended stay was not reliable  Your intention to leave the territory of the Member States before the expiry of the visa could not be ascertained.    She submitted all her flight tickets, hotel accommodations, cruise confirmation and all documents that would show where she will be and that at the end of the trip she will be flying back to the Philippines. Although it was stated that she can appeal the refusal and the address to send the appeal was in France, will it be better to submit instead a new application rather than make an appeal? I don't know how long the response will be and we are scheduled to leave on May 1 from the Philippines. All her tickets and accommodations are paid since I am traveling with her. I am a US citizen so I don't need a visa.


What do we exactly mean by "density" in Probability Density function (PDF)?

In general density is mass/volume. Also it's used for something like population density, which is population/unit area. What is significance of word density in PDF?


This is a nickname for a cute dog. So I think "fluffy" means "furry" but what's the whose phrase?


Is it okay to have two different passports of the same country with same photo but different names?

I want to issue another passport but i have one already. I need to change my names with the same photo and different age. So is it possible.


Is it common practice to click on a logo to go the home screen?

I'm designing a website and am creating the wireframes first. I need the website to be as clear and simple as possible. I have 7 menu options in the main menu, one of them being a 'home' button. But I'm wondering if I can leave out the home button because clicking on the logo takes you to the home screen anyway. This would simplify my main menu even more (seeing as I have some spacing issues).  I'm just wondering if this is common practice and if users know by default that clicking a logo takes them to the home screen. After reading a bit I tend to think it isn't, but I'd like to have other opinions as well.


I've looked everywhere, but I have had no answer so far.I want to render my video so that when it's uploaded to a website (let's say youtube), there's an option to view it in beautiful, crisp, 4k quality. I made a video before of a model test, I added normals to the model, rendered it, uploaded it, and realized it was in 4k.


How to apply toastr notifications when user get leveled up?

This question is about when user get leveled up the toastr will pop up.  What I want to do is i want to put the toastr.js inside my script but I don't have idea how to implement.  ** Link and Script **  <link rel="stylesheet" href="{{ asset("css/toastr.min.css") }}"> <script src="{{ asset('js/toastr.min.js')}}"></script>   ** Profile.blade **               <script>    @if(Session::has('success'))     toastr.success("{{ Session::get('success') }}")    @endif  </script>   ** Controller **            use Session;            while($user->curr_exp >= $user->exp_needed){              if($user->level == 10 || $user->level == 15 || $user->level == 20)                {                   $user->reward_token += 1;                }                   $user->curr_exp -= $user->exp_needed;                      $user->prev_exp = $user->exp_needed;                if($user->level <= 19){                    $user->exp_needed = $user->prev_exp * 1.4;                }                elseif($user->level >= 20 && $user->level <= 39){                    $user->exp_needed = $user->prev_exp * 1.1;                }                elseif($user->level >= 40 && $user->level <= 59){                    $user->exp_needed = $user->prev_exp * 1.05;                }                elseif($user->level >= 60 && $user->level <= 79){                    $user->exp_needed = $user->prev_exp * 1.04;                }                elseif($user->level >= 80 && $user->level <= 99){                    $user->exp_needed = $user->prev_exp * 1.03;                }                elseif($user->level == 100){                    $user->exp_needed = $user->exp_needed * 0;                }                    $user->level += 1;                    Session::flash('success','You leveled up!');                    $user->save();                }   I'm using laravel framework 5.4.36 version. I'm confused how to display a live notifications on the user's profile every time they leveled up.   Any ideas? Thank you


This question has an open bounty and can't be closed - duplicate?

I put a bounty on this , because there wasn't any obvious solution. However, recently I found a similar . But I can't mark it as a duplicate since I put on the bounty. What should I do?


I was reading microntroller datasheet, they mention any I/O pins can be configrued as Open drain , or as Special pheripheral ( like SPI , I2C etc..) or push pull.   Q) Can we enabled microcontroller internal pull up when pin is configured as output only.  Q) when open drain selection need to choose wheather pin is input or output.  Q) Can we use both internal and external pull on some IO line , then it can be nay problem


Let $P = \{A \in \mathbb{N} : A \neq \emptyset, |A|<\infty, |A| = 2k, k\in \mathbb{Z}^{+}\}$. Consider $X = \{ A \in P: 1 \in P \}$. Does $X$ have a lower bound in $(P,\subseteq)$.  We can see that $X\subseteq P$, which contains the element $1$ of $P$. By definition, an element $p\in P$ is a lower bound for $X$ iff $\forall x \in X$ we have $p\subseteq x$. Let $p = \{ 1 , a_2, a_3,\cdots,a_{2k}\}$ be the elements of $P$ which contain $1$ and are organized in ascending order, and let $x = \{ 1 , b_2, b_3,\cdots,b_{2m}\}$, where $m\in \mathbb{Z}^+$, and organized in ascending order. By comparing terms, it is not necessarily that $a_{i} = b_{i}$, then, there does not exist a $p\in P: p\subseteq x, \forall x\in X$, so $X$ does not have a lower bound.  I am right or wrong,  Thanks


I'm stuck with this simple problem (please be aware that this is my first non trivial circuit!):         – Schematic created using   Due to Kirchoff law (I chose clockwise as positive) I've written: $$-i_1+i_0+i_2=0$$ $$i_4-i_5-i_0=0 $$  $$i_1-i_3-i_4=0$$ $$i_3-i_2+i_5=0$$ So I go on with $$i_1-i_2=i_4-i_5$$ $$i_1=i_3+i_4$$ Then, for tensions: $$V_1+V_3+V_2=0$$ $$V_4+V_5+V_3=0$$ $$V_0+V_1+V_4=0$$  I obtain the system of equations: $$i_3(R_1+R_2+R_3)+R_1 i_4+ R_2 i_5=0$$ $$i_3 R_3+ i_4R_4 + i_5 R_5=0$$ $$V_0+R_1 (i_3+i_4)+ R_4 i_4 =0$$  I've solved the problem, but trying some simulators I realize that the result is correct if all the resistors are of the same value, and completely wrong otherwise. What's the problem? Thanks a lot for your precious help!


Following the recent Google announcements about  we have a number of clients asking about this. Is it safe to just 301 redirect all pages to their SSL equivalent, for example in a common PHP include file:  if($_SERVER['HTTPS']!="on"){     $redirect= "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];     header("Location:$redirect",true,301);     exit(); }   Obviously I'm aware this is also possible within a .htaccess file but that cannot be modified in our case.  Obviously all internal links would be switched to https:// links but obviously we need to sort out incoming links from Google and elsewhere.   Is this a sound approach? Are there any other gotchas to be aware of?


ToC heading is pushed down when using tocloft package – even without any commands written. Leaving it out puts things back in place. Also I noticed the smaller the \document[font-size], the bigger disposition of ToC heading. Is there an elegant way to bring the heading where it should be?  \documentclass[oneside, 10pt]{scrbook}  \usepackage{tocloft} \renewcommand\cftchapfont{\scshape} \renewcommand\cftchappagefont{\scshape}  \begin{document}  \frontmatter \tableofcontents  \mainmatter \chapter{Thank you} This is just great :)  \end{document}


Sum of $\sum\limits_{n=1}^\infty q^n \sin(nx)$

How to find $\sum\limits_{n=1}^\infty q^n \sin(nx)$, where $|q|<1$ and $x \in \mathbb{R}$? I was thinking about rewriting it as $\sum\limits_{n=1}^\infty (q(\Im(\cos x+i\sin x)))^n$. It is a geometric series with the first term $q \cdot \sin x$, but what is the quotient? I can find $\sum\limits_{n=1}^\infty \sin(nx)$, but how to deal with the imaginary part, when multiplied by $q$?  Thanks!


Here is my command :  \newpage  \cvitem{$\rhd$}{\small{\textbf{Xxxxxxx}}} \cvline{-}{\small{Yyyyyyyyyyyyy}} \cvline{-}{\small{Zzzzzzzzzzzzz}}  \cvitem{$\rhd$}{\small{\textbf{Aaaaaaaaaaaaaaaaaa}}} \cvline{-}{\small{Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}} \cvline{-}{\small{Cccccccccccccccccccccccccccccc}} \cvline{-}{\small{Dddddddddddddddddddddddddddddddddddd}} \cvline{-}{\small{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}}   Minimum code to compile :  \documentclass[10pt,a4paper]{moderncv} \moderncvtheme[blue]{classic}                 \usepackage[utf8]{inputenc} \usepackage{color} \usepackage{amsmath} \usepackage{amssymb}  \usepackage{soul}% http://ctan.org/pkg/soul \usepackage[normalem]{ulem} \usepackage[T1]{fontenc} \renewcommand*{\sectionfont}{\Large\textbf\textsc}  \usepackage[inner=1.2cm,outer=1.2cm,top=0.9cm,bottom=0.9cm]{geometry}  \firstname{\Large{AAAA}} \familyname{\Large{\textsc{CCCC}}} \title{\small \textcolor{light-gray}{\textbf{CCCCC} }} \address{\textbf{CCCCC}}{\textbf{CCCCC}}   \mobile{\textbf{CCCC}}              \email{CCCC@aol.fr}  \extrainfo{\textbf{CCC}}     \renewcommand*{\emaillink}[2][]{ \ifthenelse{\equal{#1}{}} {\textbf{\href{mailto:#2}{#2}}} {\textbf{\href{mailto:#2}{#1}}}}  \renewcommand*{\emailsymbol}{\marvosymbol{66}}   \begin{document}  \cvitem{$\rhd$}{\small{\textbf{Xxxxxxx}}} \cvline{-}{\small{Yyyyyyyyyyyyy}} \cvline{-}{\small{Zzzzzzzzzzzzz}}  \cvitem{$\rhd$}{\small{\textbf{Aaaaaaaaaaaaaaaaaa}}} \cvline{-}       {\small{Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}} \cvline{-}{\small{Cccccccccccccccccccccccccccccc}} \cvline{-}{\small{Dddddddddddddddddddddddddddddddddddd}} \cvline{-}{\small{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}}   \end{document}   Result :    But I would like second cvline to be next to firt one e.g. something like that :    How could I do this simply ?  Notes : after some tries, it seems the following (see "Mini page" codes) is what I would need but how could I automatically adjust text on the right ? I would like text not to overlap amrgins and to adapt to mini page.  \documentclass[10pt,a4paper]{moderncv} \moderncvtheme[blue]{classic}                 \usepackage[utf8]{inputenc} \usepackage{color} \usepackage{amsmath} \usepackage{amssymb}  \usepackage{soul}% http://ctan.org/pkg/soul \usepackage[normalem]{ulem} \usepackage[T1]{fontenc} \renewcommand*{\sectionfont}{\Large\textbf\textsc}  \usepackage[inner=1.2cm,outer=1.2cm,top=0.9cm,bottom=0.9cm]{geometry}  \firstname{\Large{AAAA}} \familyname{\Large{\textsc{CCCC}}} \title{\small \textcolor{light-gray}{\textbf{CCCCC} }} \address{\textbf{CCCCC}}{\textbf{CCCCC}}   \mobile{\textbf{CCCC}}              \email{CCCC@aol.fr}  \extrainfo{\textbf{CCC}}     \renewcommand*{\emaillink}[2][]{ \ifthenelse{\equal{#1}{}} {\textbf{\href{mailto:#2}{#2}}} {\textbf{\href{mailto:#2}{#1}}}}  \renewcommand*{\emailsymbol}{\marvosymbol{66}}   \begin{document}  \cvitem{$\rhd$}{\small{\textbf{Xxxxxxx}}} \cvline{-}{\small{Yyyyyyyyyyyyy}} \cvline{-}{\small{Zzzzzzzzzzzzz}}  \cvitem{$\rhd$}{\small{\textbf{Aaaaaaaaaaaaaaaaaa}}} \cvline{-}      {\small{Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}} \cvline{-}{\small{Cccccccccccccccccccccccccccccc}} \cvline{-}{\small{Dddddddddddddddddddddddddddddddddddd}} \cvline{-}{\small{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}}  \vspace{4cm}  %Mini page ?  \begin{minipage}[t]{0.1\textwidth} \cvitem{$\rhd$}{\small{\textbf{Xxxxxxx}}} \cvline{-}{\small{Yyyyyyyyyyyyy}} \cvline{-}{\small{Zzzzzzzzzzzzz}} \end{minipage} \hfill \begin{minipage}[t]{0.6\textwidth} \cvitem{$\rhd$}{\small{\textbf{Aaaaaaaaaaaaaaaaaa}}} \cvline{-}{\small{Bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb}} \cvline{-}{\small{Cccccccccccccccccccccccccccccc}} \cvline{-}{\small{Dddddddddddddddddddddddddddddddddddd}} \cvline{-}{\small{Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee}} \end{minipage}    \end{document}


When I try to open my reputation notifications on the responsive design on my phone, I get this:    It's really thin, I can't see any of the items in there, and the links are off to the side. It happens at least on Literature.SE and Meta.SE.


how can i move lines in mulitple text files?

Hi assume I have a files that look like:  x x x A B C 1 2 3 D E F x x x   and what need the files to look like:  x x x A B C D E F 1 2 3 x x x   I know I could do this with a few sed -i s/search/replace/g lines but am wondering if there's a better, easier way to move x number of rows by y numbers in either direction?


Geordi La Forge's visor can be used to see different electromagnetic fields. This lets him see people as glowing fields, as well as other fields. How can he see monitors and other interfaces? A screen would have to have variance in its field in order to differentiate the separate icons so that his visor could pick it up but they don't do this (or at least real screens don't). Is there any in-universe explanation?


What do you call someone who is constantly negative, cynical about the world around him and can't help but nitpick and find a way to insult everyone around him?


Cannot connect to Internet after installation

I just built a new computer coming from windows and installed Ubuntu 20.04.01, and I cannot connect to the internet. I tried an ethernet cable that previously worked on windows but the network manager cant seem to find it. I have been looking for an answer for hours and I cant find it. I have tried: sudo touch /usr/lin/NetworkManager/conf.d/10-globally-managed-devices.conf then restart NetworkManager, but its the same result. When I go to settings then network, the only options are to set up a VPN, I do not see Wired or Wireless options. I have also updated /etc/network/interfaces so it looks like this auto lo iface lo inet loopback auto eth0 iface etho0 inet dhcp auto eth1 iface eth1 inet dhcp  For the command sudo lshw -C network this shows up *-network UNCLAIMED  description: Ethernet controller  product: RTL8125 2.5GbE controller  vendor: Realtek Semiconductor Co., Ltd.  physical id: 0  bus info: pci@0000:03:00.0  version: 04  width: 64 bits  clock: 33MHz  capabilities: pm msi pciexpress msix vpd cap_list  configuration: latency = 0  resources: ioport:3000(size=256) memory:b3300000-b330ffff memory:b3310000-b3313fff  I even bought a wifi adapter, but still, once I plug it in it doesn't seem like linux finds it and then uses it.  Any suggestions? Do i need to install drivers onto a usb then to my new computer? I just want to use the internet.


What size images should I use for PowerPoint Templates?

I am trying to create some PowerPoint templates for work and need to know what size images to use for the templates so they will look good on the screen. I tried making one with images that are 1024 x 768 pixels and when I view it on a large screen it looks awful.  I have searched and can't find any real clear guidelines for this.  Any help will be appreciated.  Thanks.


How to print a formated date time from mysql timestamp in php codeigniter

I'am trying to print my timestamp formated date & time from mysql database in php Codeigniter but this will give me a error message : A non well formed numeric value encountered  My code: if ($userTasks) {    foreach ($userTasks as $key) {        echo time_convert($key->t_time);    } }   public function time_convert($timestamp){    return date('l Y/m/d H:i', $timestamp); }


How do I programmatically update the allowed values of a list field?

I have created a field_time_zone field for the Article content type. I want to set the allowed values for that field to the values returned from system_time_zones(). For this, I implemented hook_form_alter() using the following code. $zones = system_time_zones(); $entityManager = \Drupal::service('entity_field.manager'); $fields = $entityManager->getFieldStorageDefinitions('node', 'local_market'); $options = options_allowed_values($fields['field_time_zone']);  if(empty($options)) { $options =  $zones; $form['field_time_zone']['widget']['#options'] = $options; }  The code adds the desired values, but the node cannot be saved, as it throws the following error.  The value you selected is not a valid choice.  How can I set the allowed values for a text (list) field?


I have historically been able to create SFDX projects with no issue but have just began to receive the following error on creation:  Starting SFDX: Create Project  16:16:37.144 sfdx force:project:create --projectname HelperJS --outputdir c:\Users\mhandler\Desktop --template standard ERROR running force:project:create:  Command failed with exit code 1: npm root -g --prefix c:\Users\mhandler\Desktop\.yo-repository --loglevel error 'npm' is not recognized as an internal or external command, operable program or batch file. 16:16:43.741 sfdx force:project:create --projectname HelperJS --outputdir c:\Users\mhandler\Desktop --template standard  ended with exit code 1   Steps to Replicate:   SFDX: Create Project 'Standard' ProjectName: 'HelperJS' Tried Multiple Folders Including Desktop & Sub-folders   Any assistance would be greatly appreciated. I am unable to create an SFDX Projects now.  Thanks,


I'm looking for a high performance Java library for fuzzy string search.  There are numerous algorithms to find similar strings, Levenshtein distance, Daitch-Mokotoff Soundex, n-grams etc.  What Java implementations exists? Pros and cons for them? I'm aware of Lucene, any other solution or Lucene is best?  I found these, does anyone have experience with them?


Selecting genes that contribute the most to the principal components


How do I boot directly to tty1 in ubuntu?

I want to make sure when my pc starts up, it boots into tty1, instead of tty7. And also, in case I need it, I should also be able to switch to the graphical desktop using ctrl +alt+f7 in case I need it.  How do I do that?


How to perform a logic when spring boot app starts?

I am making a simple golf game. where there are 2 golf courses, when running the program I want the 2 golf courses added to the DB. I am using service and repository and endpoints for the golfers so new golfers can be added. but for the golf courses that have 3 holes each, I want them to be added automatically when the program runs. I have tried this: Below is my code snippet. I want to execute addGolfCoursesAtStart() when my app is launched.     @Autowired     GolfCourseService gcs;          public void addGolfCoursesAtStart() {         // create course 1         GolfCourse gc1 = new GolfCourse("Happy Gilmore", 220, 300, 50);         System.out.println("we created a golf course for you named: " +gc1.getName());         System.out.println("this course has the following holes:");         for (Hole hole : gc1.getHoles()) {             System.out.println(hole.getName());             System.out.println("length: " + hole.getLenthHole());         }                  gcs.addGolfCourse(gc1);         System.out.println("\n\n");     }   How would I achieve that?


Calling a JavaScript function returned from an Ajax response

I have a system where I send an Ajax command, which returns a script block with a function in it. After this data is correctly inserted in the DIV, I want to be able to call this function to perform the required actions.  Is this possible?