How to execute stored procedures and use their returned table within another procedure?

In MS Access you can do the following using both tables and SELECT queries  FROM Product INNER JOIN outputQry ON Product.ProductId = outputQry.ProductId   Assuming Product is a table and outputQry a query, how to do the same in T-SQL ?  I wrote a function that returns a table, how do I execute it within another function/procedure so I can (for example) INNER JOIN the result with some tables?  My function looks like this  ALTER FUNCTION [dbo].[PreconfiguredConfigs_GetNoOfOutputs]() RETURNS @outputTable TABLE      (          ProductId int,      NumberOfOutputs int      ) AS BEGIN DECLARE @table TABLE      (         ProductId int,         NumberOfOutputs int      )     INSERT INTO @table     SELECT Outputs.ProductId, Count(Outputs.ProductId) AS NumberOfOutputs     FROM [dbo.PreconfiguredConfigs].[Outputs]     GROUP BY Outputs.ProductId;     INSERT INTO @outputTable     SELECT ProductId, NumberOfOutputs FROM @table     RETURN END   edit: one additional requirement would be that I can 'chain' the functions, so the results from one written above can be used in the another function (INNER JOINing it with other columns), and that function results could be used as well in another function (JOINing these as well).  Can it even be done or do I have to drastically change my designs? The requirements come from the way the database was designed in Access.   to put the SELECT query inside a table-value function, which I did, but I do not understand this line:  SELECT * INTO CustList FROM CustomersbyRegion(1)   what is CustList? Is it a table in the database that gets overwritten whenever the function gets called? I guess that would be a solution, because then I could INNER JOIN it all I want and avoid all the Invalid column name errors I've been seeing when using variables and temporary tables (more on that in my comment to )


What is the primary difference between the two? I always see this in the right click menu in windows. What happens if you end a process that is relied upon by another process? Is there a way to "kill" a process tree in linux or is the technology different?


I'm having a problem with a Javascript function that apparently gets called too soon. I have a hunch this is a hoisting problem, but I'm not sure.  So, I have this function which is assigned to onclick of an <img>:    function setModalPicture(picName){          //Build the path to the picture     var pic= 'assets/img/art/'+picName;            //Set the picture     $('#g-modal-img').attr('src', pic);              adjustModalPadding();                }     The intention was that the src attribute of #g-modal-img should be set to the img, and only then should adjustModalPadding be called. This is because adjustModalPadding needs the height of #g-modal-img, which is zero before src is set to the <img>. However, I noticed that this doesn't work properly, and if I make adjustModalPadding log the height of #g-modal-img to the console, it shows zero. I think this means that the function is called before src is set to the <img>.


I have an iso file for ubuntu 19.04 and a SHA256SUM file. How do I run the iso test?


Null pointer when connecting to database

I am trying to connect to a database with phpMyadmin but I get an nullpointer in properties  Here is my code:   public Connection getConnection() throws SQLException {         final String ip = prop.getProperty("database_ip");         final String dir = prop.getProperty("database_dir");         final String username = prop.getProperty("database_username");         final String password = prop.getProperty("database_password");          try {             Class.forName("com.mysql.jdbc.Driver");         } catch (ClassNotFoundException e) {             throw new IllegalStateException("No suitable driver found");         }         return DriverManager.getConnection("jdbc:mysql://" + ip + "/" + dir, username, password);     }   and here is where the nullpointer happens:  private Properties getPropertyFile(String path) {         Properties prop = new Properties();         try {             prop.load(getClass().getClassLoader().getResourceAsStream(path));         } catch (IOException e) {             e.printStackTrace();         }         return prop;     }   and here is my map structure:


Pidgin Repository / Packages for Ubuntu 14.04LTS

I enjoy using Pidgin on Ubuntu 14.04LTS, but recently my XMPP with Google Apps stopped working (Google claims my sign in was from "an app that doesn't meet modern security standards").  Before trying the latest Google Hangouts plugin, I'd like to get the latest version of Pidgin.  There don't seem to be any up-to-date packages/repositories out there. Would anyone be interested in providing one? I'm willing to bounty this.  Thanks!


Why converting result of multiplication of float to int fails?

I have come with a problem with programming language. //php $a = (int) (10.20 * 100); echo $a;  // expected output: 1020 // output: 1019  # python int(10.20 * 100) # expected output: 1020 # output: 1019


Mathematical symbols not displaying in comments

Mathematical visualisations (not sure how these should be described, is there a better noun?) are not displaying correctly for me on the stack exchange app.  As you can see in the screenshot, they are being displayed exactly as entered, rather than being parsed and displayed the way the author intended.  This only occurs in comments on all sites. They show fine in questions and answers. They also appear fine in my browser (chrome mobile).  This has been the case for as long as I've used the app, but only just decided to report it here.  The app has no pending updates Device: HTC 10 OS: Android 6.0.1  Is there anything I can do to remedy this or is it a bug?


Wireless disabled by hardware switch Lenovo Y40

I recently got a lenovo Y40 laptop and after i installed ubuntu 14.04 (also in the live usb) Wireless doesn't work. It says that it is disabled by hardware switch, however the hardware switch doesnt work (its intention is to put on airplane mode but does nothing when pressed in ubuntu) wireless works in windows and the BIOS has it enabled. I tried resetting the BIOS but it still doesn't work. Here are some command outputs  lspci:  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) 04:00.0 Network controller: Intel Corporation Wireless 3160 (rev 93)   rfkill list all:   0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: yes 1: ideapad_bluetooth: Bluetooth     Soft blocked: no     Hard blocked: yes 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 3: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   lswh:     *-network         description: Ethernet interface         product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller         vendor: Realtek Semiconductor Co., Ltd.         physical id: 0         bus info: pci@0000:03:00.0         logical name: eth0         version: 10         serial: f8:a9:63:31:2e:b6         size: 1Gbit/s         capacity: 1Gbit/s         width: 64 bits         clock: 33MHz         capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation         configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.1.4 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s         resources: irq:64 ioport:4000(size=256) memory:c0604000-c0604fff memory:c0600000-c0603fff *-pci:3      description: PCI bridge      product: Lynx Point-LP PCI Express Root Port 4      vendor: Intel Corporation      physical id: 1c.3      bus info: pci@0000:00:1c.3      version: e4      width: 32 bits      clock: 33MHz      capabilities: pci normal_decode bus_master cap_list      configuration: driver=pcieport      resources: irq:59 memory:c0500000-c05fffff    *-network DISABLED         description: Wireless interface         product: Wireless 3160         vendor: Intel Corporation         physical id: 0         bus info: pci@0000:04:00.0         logical name: wlan0         version: 93         serial: a0:88:69:90:0a:38         width: 64 bits         clock: 33MHz         capabilities: bus_master cap_list ethernet physical wireless         configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-32-generic firmware=22.24.8.0 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn         resources: irq:66 memory:c0500000-c0501fff


How can I remove queries from my data explorer profile?

My data explorer profile contains some throwaway or duplicate queries. They make it harder to find the queries that I want to find later. Can I remove queries from my profile?  (If the answer is no, this is a feature request.)


Why do microSD cards have less than advertised space?

I bought a new 32GB microSD card. Windows says the capacity is 29.3GB (31,474,057,216) in Properties for the drive. Why?  I expected 1024x1024x1024x32 = 34,359,738,368 bytes. I can accept 0.5GB for the file system, but not 2.7GB. There is no logical reason why the addressable space would follow base 10, since the addresses are in binary. (Or are they?)


Problem from Kenneth Rosen's Discrete Mathematics and its Applications, Section 1.8

Let S = X1  * Y1 + X2 * Y2 + · · · + Xn * Yn,  where X1, X2 , . . . ,   Xn and Y1, Y2, . . . , Yn are orderings of two different sequences of   positive real numbers, each containing n elements.      a) Show that Stakes its maximum value overall orderings of the two   sequences when both sequences are sorted (so that the elements in each   sequence are in nondecreasing order).   I am new to mathematical proof and I really suffer from it, can anyone please help me with this problem?


If I take a screenshot, often the next action is to paint on it. Sometimes I paint a circle around something, sometimes I blank parts to anonymize them.  Below is an example of the window after the screenshot was taken:    It would be great if I could directly go to "edit image".  BTW, I use Pinta, not Gimp.  I guess this is impossible.  Off-topic but nevertheless relevant:  I know the terms "Wayland", "Xorg", "Gnome".  But my grand mother is a user, not a geek. She does not know these terms. And it would be great, if she could use ubuntu without learning these terms.


Why can't I create NTFS partition in extended section?

I have unallocated space of 196 GB as you can see. And I want to create NTFS partition for it to be used in Windows10. But I get this error.  Before installing I had a big partition in NTFS I delete it and create a smaller logical partition for 50gb for Ubuntu and I want to use the rest for data storage but it give me this error.    I heard we can create as many partition in extended but I can't create any.


How do you get vim to display wrapped lines without inserting newlines?

I'm getting back in touch with my inner (g)vim due to an unscheduled MacBook mother(board) of a meltdown (my emergency backup Linux box won't run TextMate). All told I'm happy with vim's efficiency and power, but I'm mortified at how hard it is to get the kind of word wrap that even stupid HTML textareas achieve with no apparent effort.  Consider the text  Etiam ornare mollis tortor. Suspendisse sed neque. Nullam in elit. Cum sociis nullam.  By default, with an 80-character width vim displays this as  Etiam ornare mollis tortor. Suspendisse sed neque. Nullam in elit. Cum sociis nu llam.  This wrapping doesn't care about whitespace, so sometimes it just slices words into pieces (nullam in this case). Of course, you can turn on word wrap, and get this:  Etiam ornare mollis tortor. Suspendisse sed neque. Nullam in elit. Cum sociis nullam.  The problem is that vim inserts a newline at the linebreak, which I most emphatically do not want. In other words, I want the text to display exactly as vim displays it with word wrap turned on, but without inserting a newline. (This way it can be pasted into HTML textareas and email programs, among other places.)  Web searches have yielded nothing of use, despite diligent effort; I hope StackOverflow can succeed where my Google-fu has failed.


I have certain old CD/DVD's which are not in good condition. I want to recover from them anything that can be recovered. in windows you had software like Isobuster and Cd Recovery which will let me do this. Can anyone suggest a native linux app?


Where does the "apply bonuses and penalties in the most beneficial order" rule come from, if it exists?

I have seen quoted several places on the internet a rule that one can apply bonuses and penalties in the most beneficial order.  An example I come across frequently (as a druid) is the combination of Natural Bond and . Natural Bond increases your effective druid level for determining the stats of animal companions but cannot increase it beyond your character level. Choosing an alternative animal companion lowers your effective druid level for determining the same stats. The "most beneficial order" rule is used to justify applying the level penalty before the natural bond bonus in order to get around the character level cap on natural bond.  Does this rule actually exist? If so, where does this rule originate? I would like to be able to cite a reliable source for my GM.


Given what happened in S08E03, is the Azor Ahai prophecy a false prophecy?

At the end of Game of Thrones S08E03,      Arya Stark stabbed the Night King.   But it was told that the Azor Ahai, the prince/princess who was promised, would bring an end to the Long Night.  So, is Arya the Azor Ahai? If yes, then why did Jon Snow come back to life, what was the big reason?


I have a script as below:  #!/bin/bash df -k | tr -s " " "," | awk 'BEGIN {FS=","} {print $1,$5}'|sed 1d > file1.txt while read partition percentUsed do if [ $percentUsed > 75 ] then echo Partition: ${partition} space is ${percentUsed} else echo Pration: $partition: OK!! fi done < file1.txt   The script is executing properly, however, it is creating a zero byte file by the name 75. Any ideas why this is happening?  $ sh diskUsed.sh Partition: C:/Users/Public/Documents/CYGWIN/bin space is 75% Partition: C:/Users/Public/Documents/CYGWIN/lib space is 75% Partition: C:/Users/Public/Documents/CYGWIN space is 75% Partition: C: space is 75% Partition: H: space is 91%   $ ls -lrt total 2 -rwxrwxrwx 1 diwvibh Domain Users 284 Nov 21 04:17 diskUsed.sh -rw-r--r-- 1 diwvibh Domain Users 133 Nov 21 04:29 file1.txt -rw-r--r-- 1 diwvibh Domain Users   0 Nov 21 04:29 75


A line is drawn through the point $A(1,2)$ to cut the line $2y=3x-5$ in $P$ and the line $x+y=12$ in $Q$. If $AQ=2AP$, find the coordinates of $P$ and $Q$.  From: Mathematics, The Core Course for A-level, Bostock and Chandler. Chapter 4 Q15.  The answer is $(4,3.5)(7,5)$or$(0.4,-1.9)(2.2,9.8)$  I have no idea where to begin with this question.  I've tried letting $P=(x,12-x)$ and $Q=(x,\frac{3}{2}x-\frac{5}{2})$ and then used the distance formula to try and equate $|AQ|=2|AP|$ but didn't get anywhere.  How should I approach this problem?


Sanity check question about correlation between log-normal random variables

Recently I came across the following result in a paper, which I can't seem to find right.  Anyway the authors had cited  by Johnson & Kotz, page 20 as the source. Since I do not have access to this book I am unable to check on the derivation of this result. I was hoping someone could shed some light on how to prove this.  Let $X$ and $Y$ denote a pair of bivariate log normal random variables with their means and variances given by the ordered pairs $(\zeta_{X}, \eta_{X})$ and $(\zeta_{Y}, \eta_{Y})$ and with correlation coefficient $\rho_{(X, Y)}$, derived from the bivariate normal with marginal distributions having parameters $(\xi_{X}, \nu_{X}^2)$ and $(\xi_{Y}, \nu_{Y}^2)$ and correlation coefficient $\rho_{N}$.  The expression for $\rho_{(X, Y)}$ is given as \begin{equation} \rho_{(X, Y)} = \dfrac{\mathrm e^{(\rho_{N} \nu_{X} \nu_{Y})} - 1}{\sqrt {(\mathrm e^{\nu_{X}^2} - 1)(\mathrm e^{\nu_{Y}^2} - 1)}} \end{equation}  The below is a manipulation I came up with, any error in that would be completely mine.  Upon rearranging we get \begin{equation}\begin{aligned} \rho_N &= \dfrac{\ln (1 + \rho_{(X, Y)} \sqrt {(\mathrm e^{\nu_{X}^2} - 1)(\mathrm e^{\nu_{Y}^2} - 1)})}{\nu_{X}\nu_{Y}}\\ &= \dfrac{\ln (1 + \rho_{(X, Y)} \frac{\eta_{X}\eta_{Y}}{\zeta{X}\zeta{Y}})}{\sqrt {\ln ((\frac{\eta_{X}}{\zeta_{X}})^2 + 1)\ln ((\frac{\eta_{Y}}{\zeta_{Y}})^2 + 1)}}. \end{aligned} \end{equation}  I am very interested in learning if this result would hold true between $X$ and $Y$'s correlations if we had a quad-variate situation as in there were 2 more random variables which are also correlated with $X$ and $Y$ would this result still be true ? I suspect it should be, but I am newbie and due to lack of a credible source I was wondering if some one would be kind to confirm it.


Patients are often asked to rate their level of pain. Usually, I have found that these questions come without instructions as to what constitutes the maximum on this scale (maximum pain you can imagine? maximum pain you ever felt?).   What are ways pain can be quantified in these situations? Are there any "objective" (as objective as this can be) measures to help patients with this?


Product of r consecutive integers is divisible by r!

Well in a book i am reading it is given that you can also prove this by showing that  Every prime factor is contained in $(n+r)!$ as often at least as it is contained in $n!r!$.  How does this prove the proposition, i am not getting the meaning of this.   Help appreciated.


I am coding a computer program and I am in need of calculating the arc length of a curve described by a polynomial $P(x)=ax^n+bx^{n-1}+\dots+cx+d$ within $[x_0, x_1]$, where $n\ge2$.  Fast methods for $P'(x)$ and $\int P(x) \, dx$ calculations are available and can be used at will.  I have tried expanding $\displaystyle\int_{x_0}^{x_1}\sqrt{1+(P'(x))^2} \, dx$ without success. However, it can be used any other formula or method. The big issue here is getting a result - or approximation of it - fast.


When is a ring homomorphism $A \to A$ surjective but not injective.

If $A$ is Noetherian, the surjectivity of a homomorphism from $A$ to itself is necessarily injective.   Thus, it's clear that if $\phi: A \to A$ is surjective, but not injective, the ring in question would have to be non-Noetherian.  Reformulating the question using the first isomorphism theorem. Given $\phi:A \to A$, we know that $A/ \ker \phi \cong \textrm{im} \phi \cong A$. When is it the case that the kernel is nontrivial?   Related Question: If every surjective homomorphism $A \to A$ is an isomorphism, does it follow that $A$ is Noetherian?


I was reading  and suddenly stumbled on a strange use of the word "jive":     Since 2014, according to the report, hundreds of ambulances have been called to the factory to treat workers.      This portrayal doesn’t quite jive with Musk’s world-changing vision.    Google provided the next reference about meanings of the word and I do not see anything appropriate to the example from the article:     jive /dʒʌɪv/      noun: jive; plural noun: jives; noun: jive talk; plural noun: jive talks         a lively style of dance popular especially in the 1940s and 1950s, performed to swing music or rock and roll.      swing music.      a style of dance music popular in South Africa.   a form of slang associated with black American jazz musicians.      North American informal; deceptive or worthless talk.         verb: jive; 3rd person present: jives; past tense: jived; past participle: jived; gerund or present participle: jiving         perform the jive or a similar dance to popular music.   North American informal; taunt or sneer at.      talk nonsense.         adjective: jive         deceitful or worthless.         Origin   1920s (originally US denoting meaningless or misleading speech): of unknown origin; the later musical sense ‘jazz’ gave rise to ‘dance performed to jazz’ (1940s).   The meaning of "to jive with" from the article must be something like "to correlate with", but there is nothing similar in the Google reference.    So my questions are:   what is the meaning of "to jive with" in the article? whether this meaning is widespread and common or is it some exception?


How does system testing differ from System Integration Testing (SIT)?

I was asked this question during an interview. My thoughts are SIT is performed on a complete systems and System Testing can be done on a single module as well.


How to change the default text editing app in Quick Look?

I want to customize which app is used to open all unknown plain text files from Quick Look. For example, for extension-less VERSION file, Quick Look shows Open with TextEdit:    I'd like to make VSCode the default editor for unknown file types.  BTW, to even achieve a textual preview of the VERSION file, I had to install .    UPDATE & solution: This question is indeed closely related to , the problem was that neither of the answers mentioned public.data which was necessary for the VERSION file in this example. (Without 'public.data', VSCode was offered for .txt files but not for extension-less files.)  I've updated  to that question to include info about 'public.data', in which case this question is really a duplicate of .


biblatex: multiple bibliographies categorised by different .bib files

biblatex supports multiple bibliographies by looking up the 1) entry type, 2) keyword, or 3) category.  This is all fine, but in the use case of primary sources and secondary sources: 1) the 'type' method doesn't work, 2) it is quite tedious to key in the 'primary' and 'secondary' keywords for each .bib entry, and 3) declaring the sorting by category would entail typing all the primary keys in the document.  So, if I'm storing all my primary bib entries in one .bib file, and secondary one in another, is there a bit to tell biblatex to assign a keyword or category automatically to all the entries from that bib file as it imports them?  Done this way, entries can be easily swapped to and from the primary and secondary .bib files without fiddling individual keywords, and I don't have to type out all the primary and/or secondary entries into categories in each document.


Each time I use Texmaker, it creates a host of files that are not immediately useful for me (*.log, *.dvi, *.blg, *.bbl, *.gz). Is there any way to 'hide' these files? They can cause quite a clutter. Thanks!


Trying to get samples from  to work, I made the following     \documentclass{beamer} \usepackage{tikz-cd} \begin{document} \begin{frame}{Hello Commutative Diagrams}   \begin{tikzcd}     A \arrow{rd} \arrow{r}{\phi} & B \\     & C   \end{tikzcd} \end{frame} \end{document}   and get error on next-to-last line "Single ampersand used with wrong catcode."   I try removing the ampersands or prepending a backslash to them and get "No shape named tikz@f@1-2-2 is known."    I try leaving in the backslashes before the ampersands and wrapping the tikzcd in {...} and preceding it with a \matrix (m) [matrix of math nodes, row sep=3em, column sep=3em,ampersand replacement=\&], which I snipped from another StackExchange answer, and I get "can't nest pgfmatrix environments yet."  I'm out of ideas.


How to derive or justify the expressions of momentum operator and energy operator?

It has been noted $\! { \, }^{\text(1, 2)}$, for instance, that  $$\mathbf{F} = \frac{d}{dt}\!\!\biggl[ \, \mathbf{p} \, \biggr]$$  is true in all contexts.  Likewise,   it is apparently true that  $$\mathbf{F} = - \nabla \Phi := - \frac{d}{d\mathbf{r}}\!\!\biggl[ \, \Phi \, \biggr].$$  Is this, in a nutshell, a sufficient and valid justification for setting (in the corresponding suitable contexts) the  as$\! { \, }^{\text(3)}$  $$\mathbf{\hat p } \propto -i \nabla := -i\frac{d}{d\mathbf{r}}$$  and setting the (potential)  as$\! { \, }^{\text(4)}$  $$\hat \Phi \propto i\frac{d}{dt}$$  and both with the same constant of proportionality, $\hbar$, whereby  $$\mathbf{\hat F} =  \frac{d}{dt}\biggl[-i\hbar\frac{d}{d\mathbf{r}}\biggr] = -\frac{d}{d\mathbf{r}} \biggl[i\hbar\frac{d}{dt}\biggr] \sim \frac{d^2}{dt \, d\mathbf{r}} = \frac{d^2}{d\mathbf{r} \, dt}$$  ?  EDIT (related merely to formalities):  (${ \, }^{\text 1}$: Please note that  had been expressed explicitly in the form     $F = \frac{\mathrm{d} \mathbf{p}}{\mathrm{d} t}$ is true in all contexts.   However, since it appears admissible to take note of an assertion without strictly quoting and clinging to its original literal expression (as had been tacitly presumed already in , and as it seems to be  confirmed) I'd like, as far as unambiguously possible, to express the operation of  consistently by using (a form of) .)  (${ \, }^{\text 2}$: Please note that  whose  to which reference has been made above had been tagged (primarily) as has "".)     ($ { \, }^{\text 3}$: Please note that the indicated expression of the  is explicitly stated there as     ${\bf \hat p } = -i \hbar \nabla$   and     In one spatial dimension this becomes:    $\hat{p}=\hat{p}_x=-i\hbar{\partial \over \partial x}$,   where the nabla symbol ($\nabla$) is related to  .)  (${ \, }^{\text 4}$: Please note that the indicated expression of the  is explicitly stated there as     $\hat{E} = i\hbar\frac{\partial }{\partial t}$.   )


I'm trying to show the following:  Let $p$ be a prime numer and $n,m \geq 1$ prime. $$f(X):=X^n-p^m$$ is irreducible in $\mathbb{Q}[X]$. Also, this statement is generally wrong, if $m, n$ aren't prime.  I tried to use the Eisenstein-criteria, but I don't think it works here (or at least it didn't work out, when I tried). For the last part I thought about simply showing a counter-example, but I can't think of a proper one...  Could someone help me, please?


Postfix SMTP banner show multiple hostnames

We have a Postfix SMTP server that's bound to two IP addresses and serves mail for two different domains. We can't change the domains to both use the same, single IP. Both IP addresses have reverse DNS   1.1.1.1 reverses to mail.domain1.com 2.2.2.2 reverses to mail.domain2.com   In our Postfix config I have  myhostname = mail.domain1.com myhostname = mail.domain2.com  inet_interfaces = 1.1.1.1, 2.2.2.2  smtpd_banner = $myhostname Mail Server   (And some other stuff, which I think is irrelevant)  Using , running the smtp test command on mail.domain2.com returns everything as OK, however running it on mail.domain1.com returns an error because Postfix is identifying itself as 'mail.domain2.com' in the SMTP banner, how do I get it to return the correct banner based on the external IP address used?


Is there a joke about "Freehand Circles" that I'm oblivious to?

Someone commented one of my answers (on Arquade ) saying they down voted because of the lack of "freehand circles". Is this a joke?   Could someone explain it? I don't think they actually did down vote the answer (or if they did someone up-voted at the same time).   My answer did contain a picture with a square that I had inserted but it wasn't freehand.


As the question asked, Is every subset of $\mathbb{Z^+}$  countable?


Can't get my model out of wireframe mode

I'm new to Blender and this site, so I apologize in advance if I'm not following any of the proper etiquette.  I'm no artist, but I'm trying to learn Blender so that I have some programmer art for me to work around in Unity.    I followed a tutorial for making a basic human model, I rigged it with rigify, and now I'm starting to export it following yet another tutorial.  The thing is, when I was trying to rig the model, I couldn't get the model to go transparent so that I could see the bones inside the model.  Eventually, I managed to get it into wireframe mode, but I can't get it back into solid mode.    It's probably just a display thing and not a property of the model itself, but I want to be sure.  I'm looking at the display options under the "Figure" pane in Blender, and none of the Display check boxes are checked, including the one that says "Wire".  I don't want to import a plain wireframe model into Unity, and even if that doesn't happen, this is functionality of Blender that I should really know anyway, so I'd appreciate any help that anyone has to offer.  If necessary, I can upload the .blend file, but I'm not sure what site people would prefer that I upload it to.


Why is Ersos' house on Lah'mu so similar to Lars' homestead?

When I watched Rogue One, of the millions of questions I asked myself (most of which were admittedly a variation of "why?"), there was one that stuck with me from beginning to end.  What is up with Galen's house on Lah'mu?  It was identical to Uncle Owen's house on Tatooine, right down to the blue milk.    This bugged me because it seems weird that two completely different planets with completely different resources would favour identical architectural styles.  Star Wars usually does a great job of depicting very different cultures through set design alone, but here they essentially copy-pasted Uncle Owen's moisture farm house.    My question is this:  Is there an in-universe justification for why Galen's house on Lah'mu would look so similar to the buildings you'd expect to see on Tatooine?


4 Bugs chasing each other differential equation

This is from a problem seminar and I need help figuring out the solution.  Four bugs, $A,B,C,D$ are initially placed at the corners of a unit square. From a given initial moment, all four crawl simultaneously at one and the same speed $s>0$, $A$ towards $B$, $B$ towards $C$, $C$ towards $D$, and $D$ towards $A$, with each heading at every instant along the line joining it with its target.  Find a system of differential equations describing the trajectory of $A$.  Do the bugs eventually all meet at the center of the square? If so, how long did it take?  My attempt so far: $\def\grad{\mathbf\nabla}$ $\newcommand{\norm}[1]{\left\Vert #1 \right\Vert}$ Call ${\vec x}_1,{\vec x}_2,{\vec x}_3,{\vec x}_4$  the positions in the plane of $A,B,C,D$ respectively. Then $$\grad {\vec x}_1 = \frac{{\vec x}_2-{\vec x}_1}{\norm{{\vec x}_2-{\vec x}_1}}s$$ $$\grad {\vec x}_2 = \frac{{\vec x}_3-{\vec x}_2}{\norm{{\vec x}_3-{\vec x}_2}}s$$  $$\grad {\vec x}_3 = \frac{{\vec x}_4-{\vec x}_3}{\norm{{\vec x}_4-{\vec x}_3}}s$$  $$\grad {\vec x}_4 = \frac{{\vec x}_1-{\vec x}_4}{\norm{{\vec x}_1-{\vec x}_4}}s$$  with ${\vec x}_1(0) = (0,0),\  {\vec x}_2(0) = (0,1),\ {\vec x}_3(0) = (1,1),\ {\vec x}_4(0) = (1,0)$.  I have noticed that the sum of the gradients is 0, but I don't know if that is helpful or not. Can someone help me figure this problem out?


How do I write an output of one command into a file?

Let's say we got a content of the following command in bash, which consists of several rows, and just one column:  tacmd listsystems | grep -i $i | awk '{print $1}'   This content is a list of offline machines you got on a server and you want to write it into the file e.g. offline.lst, in order to remove offline entries on a server from that file.  How do I write this specific content into offline.lst?


I have a problem with Blenders UI. The "Info" bar on top disappeared and the mouse pointer is misaligned. I reinstalled Blender 2 times, deleted every leftover files  but it still does the same thing. This is in v2.78c. The weird thing is that on the bottom everything works fine. Here are some images:


I install sayonara in ubuntu 20.04 lts and it's show like Ign:7 http://ppa.launchpad.net/lucioc/sayonara/ubuntu focal InRelease Err:8 http://ppa.launchpad.net/lucioc/sayonara/ubuntu focal Release   404  Not Found [IP: 2001:67c:1560:8008::15 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/lucioc/sayonara/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  what can i do? I'm new to Ubuntu


A sufficient statistic for Laplace distribution

Suppose we have p dimensional vector of $X =[X_1 \dots X_n]$ where X is Laplace distributed. What will be a sufficient statistics for estimating covariance of $X$?     Would it be the sample covariance, i.e.$$\frac{1}{N}\sum_{i=1}^{N}  (X_i-\bar X)(X_i-\bar X)^T\,?$$


B-flick movie where a man is searching for parts to repair his robo-wife

I vaguely recall a made-for-tv? movie (25ish years ago) and I remember some plot points but I can't seem to track it down by googling. I may be mis-remembering some of the details. A corporate suit comes home and starts to get romantic on the kitchen floor with his wife but the dishwasher overflows and water spills out on to the floor. Sparks fly and low and behold, his "perfect" wife is revealed (to the audience) as an android. He's told that she's a (rare? obsolete?) model, and there's no parts to repair her. But there may be some in this lawless-dystopian-post-apocalyptic-wasteland-type area. So he hires this guide (female, red hair?) to help him search for the parts. They end up falling for each other. They eventually find the parts and repair robo-wife, but he realizes that her companionship is shallow compared to the hard-living and very real woman he hired to help find the parts and I seem to remember that he leaves the android behind as explosions are happening.


At the end of the season, the team, regardless of whether they win the championship, are splitting up.   I thought this was perfectly fine, although perhaps saying "the team members" would have been nicer (in my opinion). However, apparently, it should be rewritten as      At the end of the season, the team, regardless of whether they win the championship, is splitting up.   But this bothers me a) because I thought "team" could be both singular and plural depending on the situation, and b) with the clause "regardless of whether they win the championship" where "they", a plural, is used, wouldn't it be odd to use "... is splitting up" just to match "team" which is apparently singular? (That's why I chose to keep "team" plural in my first attempt at editing.)


Software Updater shows one more empty update at the end

After each update, Software Updater shows this:    Clicking install now does nothing. I can close this window, but it appears after every update...  Any hints on how I can get rid of it?


Prove by writing: $$\theta = 2A$$ that:  $$\frac{\sin\theta-\cos\theta+1}{\sin\theta+\cos\theta-1}=\frac{1+\sin\theta}{\cos\theta}$$  First I subbed in the $2A$ such that:  $$\frac{\sin 2A-\cos 2A+1}{\sin 2A+\cos 2A-1}=\frac{1+\sin 2A}{\cos 2A}$$  Then I considered the following trigonometric formulae:  $$\begin{align} \sin 2A &= 2\sin A\cos A \\ \cos 2A &= \cos^{2}A - \sin^{2}A \\ \cos 2A &= 2\cos^{2}A-1 \\ \cos 2A &= 1-2\sin^{2}A \end{align}$$   I have taken various approaches but keep ending up with:  $$\frac{\cos A+\sin A}{\cos A-\sin A}$$ on the left hand side. But I can't seem to get the right hand side to agree with this. I end up with something like: $$\frac{1+2\sin A\cos A}{1-2\sin^{2}A}$$ I've spent a few hours on this and can't find the solution. Help appreciated.


I have never had a proper camera and I have never taken pictures seriously but now I'm starting to feel interested in photography. I would like to start to learn the basics of this art. I don't have that much money to spend and moreover I'm kind of a nostalgic, therefore I was thinking about buying a used film cameras.   I know that maybe a digital one would be better to start, since I could take thousands of pictures without worrying about the film running out, but on the other hand with a film camera I would be forced to think a lot before shooting.  I still don't know what kind of pictures I want to take. I just would like a solid camera, not too big, so I can bring it with me during a trip.    Can I find anything good for less than 50€? I don't know if it matters, but I live in Italy.


I am having trouble getting named to start using systemd on the Fedora 18 Raspberry Pi spin. It starts, then a few moments later there is a timeout and it fails. If I run the commands in named.service by hand, named starts just fine. I don't know what the timeout is that systemctl is looking for or where it is being invoked. I have read the man pages for systemctl, systemd and others and I will continue to research this, but if anyone has any pointers, that would be great.   systemctl status named.service output:  named.service - Berkeley Internet Name Domain (DNS)           Loaded: loaded (/usr/lib/systemd/system/named.service; disabled)           Active: failed (Result: timeout) since Tue 2013-01-29 14:36:41 EST; 35min ago          Process: 4189 ExecStart=/usr/sbin/named -u named $OPTIONS (code=exited, status=0/SUCCESS)          Process: 4186 ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf (code=exited, status=0/SUCCESS)          Process: 4183 ExecStartPre=/usr/libexec/generate-rndc-key.sh (code=exited, status=0/SUCCESS)  Jan 29 14:35:12 raspi.example.com named[4191]: all zones loaded Jan 29 14:35:12 raspi.example.com systemd[1]: PID file /run/named/named.pid not readable (yet?) after start. Jan 29 14:35:12 raspi.example.com named[4191]: running Jan 29 14:36:41 raspi.example.com systemd[1]: named.service operation timed out. Terminating. Jan 29 14:36:41 raspi.example.com named[4191]: shutting down Jan 29 14:36:41 raspi.example.com named[4191]: stopping command channel on 127.0.0.1#953 Jan 29 14:36:41 raspi.example.com named[4191]: no longer listening on 127.0.0.1#53 Jan 29 14:36:41 raspi.example.com named[4191]: exiting Jan 29 14:36:41 raspi.example.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS). Jan 29 14:36:41 raspi.example.com systemd[1]: Unit named.service entered failed state     The named.service file  [Unit] Description=Berkeley Internet Name Domain (DNS) Wants=nss-lookup.target Before=nss-lookup.target After=network.target  [Service] Type=forking EnvironmentFile=-/etc/sysconfig/named Environment=KRB5_KTNAME=/etc/named.keytab PIDFile=/run/named/named.pid ExecStartPre=/usr/libexec/generate-rndc-key.sh ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf ExecStart=/usr/sbin/named -u named $OPTIONS ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID' ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID' PrivateTmp=true [Install] WantedBy=multi-user.target


There are a few scenes where we see the brute force capacity of "It". It tears Georgie's arm off, It slashes the chubby kid's gut, and in the final scene It throws one of them against the wall. According to the news clippings It took down a camp of ninety adults single handed. It seems to be pretty good at luring the kids away from the group and also has apparently unfettered access to their homes. I can appreciate that It 'feeds on their fear' so It ideally wants to keep them alive for optimal feeding but once It has identified them as threats why wouldn't It just isolate and quickly kill them Itself (rather than make a half-baked attempt to get the school bully to do it). Even in the final battle scene when it's quite obvious that these kids are a threat, It continues to resort to scare tactics rather than slice and dice. I get that this is fantasy so I am mostly wondering if there are some subtleties about the nature of It from other sources that might explain how It fumbled such an obvious upper hand.


What command should I use to rm all .png files in a folder and subfolder?

I started with this based off of another question I had:  find -type f -iname '*.png' -exec rm   that clearly didn't work, but am I atleast warm?


Blender EEVE HDRI ignoring objects Infront

So i have a hdri on, In the picture you can see the ceiling is completely brown but the shading is a non reflective white (Concrete), After checking on to it i found out that it is from the hdri. how do fix this while still retaining the hdri or how can i have my white ceiling?


@RestResource(urlMapping='/Merchandise/*') global with sharing class MerchandiseManager {      @HttpGet     global static Merchandise__c getMerchandiseById() {         RestRequest req = RestContext.request;                 String merchId = req.requestURI.substring(                                   req.requestURI.lastIndexOf('/')+1);         Merchandise__c result =                         [SELECT Name,Description__c,Price__c,Total_Inventory__c                         FROM Merchandise__c                          WHERE Id = :merchId];         return result;     }      @HttpPost     global static String createMerchandise(String name,         String description, Decimal price, Double inventory) {         Merchandise__c m = new Merchandise__c(             Name=name,             Description__c=description,             Price__c=price,             Total_Inventory__c=inventory);         insert m;         return m.Id;     } }   i am trying to execute these from postman,    but throwing below error,how i can authenticate,please help urgent requirement.     {       "message": "Session expired or invalid",       "errorCode": "INVALID_SESSION_ID"   }


wilcoxon signed rank test to test paired data?

I want to test whether the difference between the pairs of students's scores  follows a symmetric distribution around zero.See below  Students    Before  After   difference    1          **     **        10    2          **     **        -9    3          **     **        8    4          **     **        5    5          **     **       -6    6          **     **        0    7          **     **        2   Since the data is not normally distributed, I assume i can use wilcoxon signed-rank test here, but in this case we only  know the difference of the pairs, so if perform wilcoxon signed-rank test in r here, normally the code should be:  wilcox.test(before,after,paired=T, exact=T)   but the problem is that, I don't have the data of 'before' and 'after', instead I only know the difference between them, so it seems wilcoxon signed-rank test can not be applied here. Is there other alternative method to this case?


I accumulate sequentially named files as the result of an automated process, and I would like to keep only the last 10 around. I tried this, which had the effect of deleting everything:  ls -r | more +11 | xargs rm  Apparently piping more +n causes the entire result to be piped, without regard to the +n argument.  What would be the correct approach?


Can I change what appears (`?`) when `\ref` or a `\cite` fails?

I find it very easy to screw up references.  Maybe I spelt a bibtex key wrong, or I updated the key for some reason (not knowing it was in use), or I put a space in the citation (\cite(a,b) vs \cite{a,b}). Or I decide to remove the entire section that I cross reffed elsewhere with \ref, but forgot to delete the reference to it. Or i forgot to compile the bibliography.  In these cases the output will normally contain a ? in the place of the reference.  Because I have become too close to being burnt by this before (After submitting an article, only realizing on "one final last minute check" that in my last revision I had broken something,.) I now make a habit of doing a Ctrl+F for ? to make sure there are none where they are not expected.  But ? is not a rare character in my documents, it likely occurs 2-5 times intentionally. It is quiet common in paper titles; and some times verious math symbols \star will be considered to be ? when I do a search.  I would much rather the output for a broken reference be something else. For example, !!BORKED!! that I could more easily search for and spot.  NB: a solution involving Biblatex rather than Bibtex would not be suitable. One of the main things that causes this for me is switching from BibLaTeX, to BibTex. BibLaTeX is always happy with spaces in \cite{a, b}; bibtex, not so much.


What do "Frontfocus" and "Backfocus" mean?

I've read those terms in a couple of lens reviews, and not even Wikipedia has an article about it.  So my questions are:   What is back/frontfocus? What causes back/frontfocus? Is there any preventive measure to avoid getting back/frontfocus?


MySQL "LIKE" without "%" is not working same as "=" condition

I have the below MySQL query.  select * from node where title LIKE 'born in care shelter breed';   Which is returning empty set. But when I try the below query  select * from node where title = 'born in care shelter breed';   It is returning 1 result.   What difference the both will make? I can't avoid the LIKE operator as the query creating after some condition checking


Can a Stack Exchange website meta override a decision posted on SO meta?

I wonder what relation there is between a Stack Exchange website's meta and SO meta. If the admins of Stack Exchange website X say in their meta something that contradicts some posts on SO meta, what should I respect when posting in X?  For example, these posts (, ) on SO meta say it is OK to copy answers into technically different questions. However, this  on Cross Validated meta say it is not OK.  I don't want to enter into this specific argument, but I'm curious to know what rule prevails when posting on the Stack Exchange website whose meta overrode some SO meta rule (Cross Validated in this example).


It looks like deleted questions are just marked as deleted, but they aren't deleted from DB.  Is there some timefrime when they will be removed or do they stay permanently? If they are permament, is there any of deleting a question completely?


the expression of the coefficients of the power series

Let $D_{R}$={$|z| < R$}, z is a complex number, and let f(z)= $\Sigma a_{n}z_{n}$ be analytic in $D_{R}$. Let u(z)=Re(f(z)), then prove for all n and 0<r<R, $a_{n}=\frac{1}{\pi r^{n} } \int_{0}^{2 \pi} u(re^{it})e^{-int}dt$ I know that from the normal method I can get $a_{n}=\frac{1}{2 \pi r^{n} } \int_{0}^{2 \pi} f(re^{it})e^{-int}dt$. So the next step is to calculate $2\int_{0}^{2 \pi} u(re^{it})e^{-int}dt=\int_{0}^{2 \pi} f(re^{it})e^{-int}dt$ Then we know that $u=(f+\bar{f})/2$. So $\int_{0}^{2 \pi} \bar{f}(re^{it})e^{-int}dt=0$ I'm not sure how to prove this equation.


What is the reason of this error 'it' was not declared in this scope?

What is the reason of this error in this case?       'it' was not declared in this scope   I don't understand why I get that error, I defined it in statement of for loop..  #include <vector> #include <iostream> template<class T> void LoopFunction() {     std::vector<T> vec;     for (std::vector<T>::iterator it = vec.begin(); it != vec.end(); it++) { // **error in this line**         //....     } }


I want to make a table but its when I want to add a double line, it gives me two tables

So I tried to make a table using this code:   \begin {tabular}{|l||c|p{8cm}|} \hline test & test2\\ \hline\hline test3 & test4\\ \hline\hline \end {tabular}   Between the 2 rows of thext I want to add a double line, but it splits the table in 2. How do I change this? Sorry for my bad english, I hope you guys understand it.


Differences between pure/mixed/entangled/separable/superposed states

I am currently trying to establish a clear picture of pure/mixed/entangled/separable/superposed states. In the following I will always assume a basis of $|1\rangle$ and $|0\rangle$ for my quantum systems. This is what I have so far:   superposed: A superposition of two states which a system $A$ can occupy, so $\frac{1}{\sqrt{2}}(|0\rangle_A+|1\rangle_A)$ seperable: $|1\rangle_A|0\rangle_B$ A state is called separable, if its an element of the (tensor)product basis of system $A$ and $B$ (for all possible choices of bases) entangled: $\frac{1}{\sqrt{2}}(|0\rangle_A|1\rangle_B+|1\rangle_A|0\rangle_B)$ is not a state within the product basis (again for all possible bases). mixed state: Is a statistical mixture, so for instance $|1\rangle$ with probability $1/2$ and $|0\rangle$ with probability $1/2$ pure state: Not a mixed state, no statistical mixture   I hope that the above examples and classifications are correct. If not it would be great if you could correct me. Or add further cases, if this list is incomplete.   On wikipedia I read about      Another way to say this is that while the von Neumann entropy of the whole state is zero (as it is for any pure state), the entropy of the subsystems is greater than zero.   which is perfectly fine. However I also read on wikipedia a criterion for :     Another, equivalent, criterion is that the von Neumann entropy is 0 for a pure state, and strictly positive for a mixed state.   So does this imply that if I look at the subsystems of an entangled state, that they are in a mixed state? Sounds strange... What would be the statistical mixture in that case?  Moreover I also wanted to ask, whether you had further illustrative examples for the different states I tried to describe above. Or any dangerous cases, where one might think a state of one kind to be the other?


Why do we write. He talks as if he were my master? Shouldn't the verb be singular in this case? And if not then why?


Combinatorics: Selecting pebbles making up a 9-sided shape

Find the number of ways to simultaneously select $3$ pebbles from $9$ pebbles that are arranged in a circle such that no two of the three selected pebbles are adjacent to each other, and one selection is the same as another rotation if the former can be rotated to form the latter.  My Solution: At first, we can pick any $9$ points. Then, any $6$ points. And at last, $4$ points. This turns out be $6\cdot4\cdot9$. However, we have over-counted. We divide this by $3$! because we do not care about the order. Lastly, we divide by $9$ to account for the last part of the problem. Answer: $4$  Is this correct? And is there an easier way using combinatorics?


I'm a Nigerian with Italian permit to stay, can I come to the UK without a visa?

Because I have been thinking on going to the UK for quite some time now, but I don't really know how to start the process.


Unable to play Multi-player on my 2nd Generation Kindle Fire with the new update v0.11.1 alpha

My kids and I each have a paid Minecraft PE on our devices. I have a 2nd generation Kindle Fire and my kids each have a Samsung Galaxy Tab 10. In the past I've been able to join in their worlds. They have never been able to join in any world I've created on my Kindle Fire. After some research, we found out that the 2nd generation Kindle has the program 'Kindle FreeTime', which apparently causes some conflict. But, I have always been able to join THEIR worlds created on the Samsung's. Since the update (v0.11.1), I have not been able to join any of their worlds. We are all on the same wi-fi. We all have a paid version of the Pocket Edition. We all have our settings to accept Multi-player. When I go to join one of their worlds, my 2nd generation Kindle Fire displays 'Invalid Name'.  Any help would be most appreciated. It's the one video game I actually enjoy playing with the kids. ;) Thanks in advance! :)


Answers are not ordered by 1) accepted 2) upvotes anymore. Why not? It is a pain to have to scroll through 0 upvote answers only to find one with 40 upvotes at the bottom of the page.


$U^*\otimes V$ versus $L(U,V)$ for infinite dimensional spaces

It's well known that $U^*\otimes V\cong L(U,V)$ for finite dimensional spaces. However, why people say that $U^*\otimes V$ is not isomorphic to $L(U,V)$ for infinite dimensional spaces and many books don't say anything related to this?


What to do with a corrupted SD card: reformat it or trash it?

I recovered all the files from my corrupted  today.   What should I do with it now?    Reformat and continue using it or throw it away and buy a new one   Here's the details on the card and how it got corrupted, if that matters:    16 GB  card () I had it for seven months I used it like a hard drive for my  netbook (but no programs stored on the card) The SD card stores documents, video, images, and MP3 files I am not sure how it corrupted; I started the netbook one day to find the card corrupted The netbook used  operating system at the time of corruption


Hagrid states:     there wasn’t one wizard that went bad that wasn’t in Slytherin   But I don’t think it’s true. Are there any known wizards who 'went bad' that were in Gryffindor?  I prefer answers from canon. Also I want to know them, and if they were significant to the HP story.


Javascript change recursive function with trampoline version

How can the below code be changed to use the trampoline function? Thanks.  var count = function (n) {     if(typeof n !== 'number' || n % 1 !== 0) return null;     if(n < 3) { return 1; }     console.log(n)     return count(n - 1) + count(n - 3) }


Im trying to insert a tensor product symbol (a circle with a cross through it) into my document. Anyone know how i might achieve this?   Thanks


Incrementing a for loop over a List of java objects

I have a list of objects called employee() and I used emp as my object. I want to increment over employees and print the name of all the objects. I really lost on how to do this. Thanks.  for( emp ;  ;employees())         {         System.out.println(emp.name);         }


I use a form maybe 100 times a day. I can tab between the fields with no problem but most of the time I don't have to fill out the entire form and would like to submit it without having to touch the mouse and press the bottom button. The other alternative is to whack Tab ten or twelve times through all the fields. Is there a keyboard convention for submitting a form? How could I design this to submit a form from the keyboard?  Some of the form fields are <textarea> so it probably would be good to keep the <Enter> key as a newline character.


Even dimensionality for skew-symmetric form

From Humphreys' Introduction to Lie Algebras and Representation Theory, written in parentheses:     (It can be shown that even dimensionality is a necessary condition for existence of a non-degenerate bilinear form satisfying $f(v,w)=-f(w,v)$.)   Why is this? Suppose we have odd dimensionality. So $n$ is odd. We have an $n\times n$ matrix $S$ with independent rows such that $v^TSw=-w^TSv$ for all vectors $v,w$. How does this provide a contradiction?


Suppose $f_1 \in \Theta(g_1) \land f_2 \in \Theta(g_2)$. Prove $f_1 + f_2 \in \Theta(\max\{g_1, g_2\})$.

I need to prove that     $f_1 \in \Theta(g_1) \land f_2 \in \Theta(g_2) \implies f_1 + f_2 \in \Theta(\max\{g_1, g_2\})$    is relevant, but I have a slightly different case, so I don't know how to translate it into this one, because I need to turn the $f$'s into $g$'s.  Am I allowed to say $\max\{f_1, f_2\} \in \Theta(\max\{g_1, g_2\})$?  Or even $\Theta(\max\{f_1, f_2\}) = \Theta(\max\{g_1, g_2\})$?


Can't login using my login username and password

I have installed Ubuntu 12.04 along side Windows 8. During the installation, I saved my username and password as required. When I boot, I see login screen. Login and Guest. when I login with my username and password, I keep getting invalid username and password. How can I fix this?


How does angular momentum get quantized?

We know that the magnitude and direction of angular momentum is quantized in quantum mechanics. We can explain the quantization with the help of quantum numbers. But actually who is responsible for this quantization? What is the significance of the reference direction? Can we take any arbitrary direction as the reference axes while considering space quantization? The angular momentum will  be oriented in a particular direction (angle) with reference axis, then how other orientations are possible? ( as explained by different magnetic quantum numbers).


A while ago, I think, I started hearing and reading people use the verb 'to sit' incorrectly, but it seems to becoming increasingly common.  Such as "I am sat", "We are sat", "They were sat". Sit is a pretty regular verb. The perfect form of it (sat) is the only irregular form of it, so it makes this doubly odd.   For instance:      Never is this more literal than when you are sat in front of the telly watching Gogglebox.         Wondering where you will be sat?        Feels like yesterday we was sat in college moaning to finish   Could this error be deliberate, as a form of inverse snobbery (attempting to appear mainstream)? This might also be a particularly British thing, rather than American. Certainly all the examples I can see online seem to be from British (typically colloquial) sources.


Granting write-access to room does not work as expected

I've created a public (not gallery, or private (mod-only)) room with the intent of talking to a user with low site reputation (less than 20). I know that a user needs 20 rep to chat but I noticed a button to "grant user explicit write access" which comes with the description "Explicit write access -  Even when this room is read-only or their reputation is too low, these users will be able to talk in this room."  I go to grant the user write access...   ...but when I click "change"...  ...I get a nice red error message about needing 20 rep to talk.   So how is this function supposed to work? If they need 20 rep to talk the description should not read "reputation too low".


What is the [0] doing in this code:   select((select(LOG_FILE),$!=1)[0]);


I need to create a slideshow using just htm css and vanilla javascript. I cant seem to get it to work and I keep getting selectSlide() is undefined when oncick event triggered. Im wondering if this is the correct to try and change the slideshow the way I have by updating the src image tag with the selectSlide function. Ive never seen it implemented like this so im assuming you cant do it this way or ive got the logic wrong ? Any help is appreciated HTML-------------------------- <!DOCTYPE html>      <meta charset="utf-8" />  <title>fghdfghf</title>  <link rel="stylesheet" href="SlideshowStyle.css">  <link href="Scriptsheet" rel="SlideShowJs.js" />

1 / 3

Caption Text

              Js------------------  var image1 = "Images/backbeach.jpg"; var image2 = "Images/beach.jpg"; var image3 = "Images/ocean_beach.jpg"; var images = [image1, image2, image3]; function selectSlide(i) { document.getElementById("imgSlide").src = images[i]; document.getElementsByClassName("numbertext").innerHTML = i + 1 + "of 3";}


Is there a maximum / minimum possible value for the CSS z-index property?  Do different browsers have different maximum / minimum accepted values?  How will browsers handle a high / low value?  I thought I read somewhere once about a max z-index value. Maybe I'm wrong.  Thanks in advance!


You have to draw 10 cards. What is the probability that you will draw at least one repeated card?

Assume you have 52 cards in a deck, and you have to draw 10 cards. Assuming you have to put back the card after each draw, what is the probability that you will draw at least one repeated card?  Here's what I was thinking...   Draw 1: $\frac{52}{52}$ since first card is allowed to be any card. Draw 2: $\frac{1}{52}$ since you want to try to draw the first card.  ... Draw 9: $\frac{8}{52}$ since you want to try to draw one of the last 8 cards. Draw 10: $\frac{9}{52}$ since you want to try to draw one of the last 9 cards.   So $\frac{52}{52} \times \frac{1}{52} \times ... \times \frac{8}{52} \times \frac{9}{52} = 1.31 \times 10^{-10}$ or $0\%$ chance of getting at least one repeat.  Is this the correct answer?


Ubuntu 18.04 not detecting full RAM size

I have Ubuntu 18.04 dual booted with Windows 10. Windows 10 shows full 8 GB RAM.   But in Ubuntu it shows only 6.8 GB.    Is there any way to make it near 8 GB or is this natural?   ~$ free               total        used        free      shared  buff/cache   available Mem:        7097484     1775180     3633172       67964     1689132     4994508 Swap:       1000444           0     1000444   After turning the swap area off,   ~$ free               total        used        free      shared  buff/cache   available Mem:        7097484     1776700     4761256      111464      559528     4949096 Swap:             0           0           0   Output   ~# dmesg | grep -i memory: [    0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff] [    0.000000] PM: Registered nosave memory: [mem 0x00087000-0x00087fff] [    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000bffff] [    0.000000] PM: Registered nosave memory: [mem 0x000c0000-0x000fffff] [    0.000000] PM: Registered nosave memory: [mem 0x09b00000-0x09dfffff] [    0.000000] PM: Registered nosave memory: [mem 0x09f00000-0x09f09fff] [    0.000000] PM: Registered nosave memory: [mem 0x6427a000-0x64b79fff] [    0.000000] PM: Registered nosave memory: [mem 0x6b58f000-0x6b78efff] [    0.000000] PM: Registered nosave memory: [mem 0x6b78f000-0x6d78efff] [    0.000000] PM: Registered nosave memory: [mem 0x6d78f000-0x6f78efff] [    0.000000] PM: Registered nosave memory: [mem 0x6f78f000-0x6f7fefff] [    0.000000] PM: Registered nosave memory: [mem 0x6f800000-0xafffffff] [    0.000000] PM: Registered nosave memory: [mem 0xb0000000-0xf7ffffff] [    0.000000] PM: Registered nosave memory: [mem 0xf8000000-0xfbffffff] [    0.000000] PM: Registered nosave memory: [mem 0xfc000000-0xfebfffff] [    0.000000] PM: Registered nosave memory: [mem 0xfec00000-0xfec00fff] [    0.000000] PM: Registered nosave memory: [mem 0xfec01000-0xfec0ffff] [    0.000000] PM: Registered nosave memory: [mem 0xfec10000-0xfec10fff] [    0.000000] PM: Registered nosave memory: [mem 0xfec11000-0xfed7ffff] [    0.000000] PM: Registered nosave memory: [mem 0xfed80000-0xfed80fff] [    0.000000] PM: Registered nosave memory: [mem 0xfed81000-0xfedfffff] [    0.000000] PM: Registered nosave memory: [mem 0xfee00000-0xfee00fff] [    0.000000] PM: Registered nosave memory: [mem 0xfee01000-0xff7fffff] [    0.000000] PM: Registered nosave memory: [mem 0xff800000-0xfff4ffff] [    0.000000] PM: Registered nosave memory: [mem 0xfff50000-0xffffffff] [    0.000000] Memory: 6929972K/7238032K available (12300K kernel code, 2472K rwdata, 4248K rodata, 2408K init, 2416K bss, 308060K reserved, 0K cma-reserved) [    0.039763] Freeing SMP alternatives memory: 36K [    1.147121] Freeing initrd memory: 54212K [  141.519341] Freeing unused kernel memory: 2408K [  153.310684] Freeing unused kernel memory: 2008K [  153.317976] Freeing unused kernel memory: 1896K [  153.869546] [TTM] Zone  kernel: Available graphics memory: 3548742 kiB [  153.869547] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB


Why is not "Ellie" == "Ellie", when one of them was read from the user?

The following question is from a quiz I took a few weeks ago and got incorrect, but the answer wasn't provided:     Consider the following code, which contains no compile errors:  String secret = "Ellie"; Scanner kb = new Scanner(System.in); System.out.println("Guess which name I'm thinking of:"); String guess = kb.next();  if (guess == secret) {     System.out.println("Wow! You're smart!"); } else {     System.out.println("Wrong!");     System.out.println("You guessed: " + guess);     System.out.println("The correct answer was: " + secret); }       Suppose the user enters "Ellie" at the prompt.   What output would result, and why that output and not the other output?   Here was my incorrect answer:     The output would be the else statement "WRONG!" because of the capitalization of the letter 'E'. A solution to this would be   to either change the String secret to "ellie" as well as the user's guess, or one can write in the ignoreCase keyword to   String secret.   The program actually outputs "Wrong", I tested it.  Aside from simply knowing the answer, could someone really explain this to me so I can understand the concept better?


Shell Script working with multiple files

I have this code below:  #!/bin/bash  filename=$1 file_extension=$( echo $1 | cut -d. -f2 ) directory=${filename%.*}  if [[ -z $filename ]]; then     echo "You forgot to include the file name, like this:"     echo "./convert-pdf.sh my_document.pdf" else     if [[ $file_extension = 'pdf' ]]; then         [[ ! -d $directory ]] && mkdir $directory         convert $filename -density 300 $directory/page_%04d.jpg     else         echo "ERROR! You must use ONLY PDF files!"     fi fi   And it is working perfectly well!  I would like to create a script which I can do something like this: ./script.sh *.pdf  How can I do it? Using asterisk.  Thank you for your time!


Here is a quick question, how to use tex to print this ' symbol? An example is shown below:  data 'a list = Nil | Cons (e, 'a list)   I tried to use ' or `, but they all looks bad.. I am sorry but I am not a native English speaker, so I don't even know the name of '..   Could anyone help me on this simple problem? thank you


Alright so, it follows the curve but they wont follow in line, they will all rotate at the same time not following the line, the primary will follow it but the rest in the array will copy the first and not follow the array correctly.


Array Along a Curve Without Deforming Mesh

How to set array modifier along a curve without deforming the cubes?


10 reputation requirement to answer a question, but I have 101

I frequently browse popular stack questions that appear on the right side of any site. Every now and then I find myself capable and willing to voice opinion/answer a question. This is why I pushed my rep on Stack Overflow, and rocketed (completely legitimate) from 150 to 300-something, in few hours, to get the 100 bonus on all stack sites. (The one you get once you hit 200 rep on any stack site)  So here I am having (similarly to my meta profile) 101 rep and trying to answer    And yet I get      Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.    What gives? Isn't the core idea behind the "100 rep on all sites" award exactly to allow me to post answers? If it says I have 101 (), and yet it would only recognize the original 1 and disregard the awarded 100. What is the point of even getting 100 if I can't take advantage of the perks they should give me...


No space under communities section in profile

The communities section under profile, when empty, the empty state doesn't have space after the heading. This happens throughout the Stack Exchange network.  This happens everywhere. Update: I am unable to find this where it happens. Could even be a loading part. How did this come in BTW?


I have this problem:   Show that $(1093)^2|2^{1092}-1$.   By this | I mean divide. I would like to write here my progress but I have absolutely no clue how to do show that it divides. Any ideas? Thanks


How do you enter a directory that's name is only a minus?

I downloaded  to my webserver and unzipped it.  It contains a folder named -. I assumed I know how to deal with that, but I don't.  I tried cd -- -, but that doesn't have the desired effect. Using quotes doesn't seem to affect it either. I put slashes all over the place, to no avail.  What's the proper way to change into this folder?


How to change theorem numbering when macro file is involved

In my macro file, I have certain theorem environments defined, for example.  \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary}  \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition}   Again, these lines are in my macros.sty file of shortcuts.  In the past, I have changed the numbering of theorem, etc... by using \numberwithin. I have recently learned that I can instead edit the \newtheorem line. For example, if I want results numbered according to section I can use  \newtheorem{theorem}{Theorem}[section]   My question now is about future situations when I have two documents, which both use the same macros.sty file, but in one document I want to number results by section and in the other document I want to number results by something else, say chapter.  How can I accomplish this without creating two different .sty files?   EDIT: I think I should add that I am looking for a way to do this without going back to \numberwithin. The reason for this is because \numberwithin doesn't seem to work well with the thmtools package.


How to count this limit: $\lim_{n\rightarrow\infty}\dfrac{n!}{n^n}$ ? I have no idea how to even start. I will be glad for any tips or help.


How to determine direction of arrival, given TDoA?

Given the location of three receivers (say, for instance, sound receivers) and the time at which each receiver “heard” some signal, I’d like to determine the direction of the signal relative to the receivers (i.e. the “Direction of Arrival”). For my purposes, we can assume the receivers and the source are on the surface of the Earth, and we can ignore the curvature of the Earth, if necessary. There’s some information out there, but nothing particularly detailed with regards to implementing something concrete. What are the formulas necessary to compute the direction of the source?


Max Degree of Parallelism for SQL Server 2008

Microsoft have recommendations around setting MAXDOP on various versions of SQL Server, but this (old) article raises some issues and recommends setting MAXDOP = 1 generally for SQL Server 2005 and indicates that some of the issues aren't fixed in SQL Server 2008.      Is there any indication that here are still problems with MAXDOP > 0 and are any DBAs out there not using 0 to reduce risks?


Does the series $\sum_{n=1}^\infty a_n$ converge? $ a_1=1,\ a_2=\sin(a_1),\dots, a_n =\sin(a_{n-1}) $

Recently, I came across an interesting problem. I haven't yet managed to solve it, but I really want to find out the solution.     Does the series $\sum_{n=1}^\infty a_n$ converge?   $$ a_1=1,\ a_2=\sin(a_1),\dots, a_n =\sin(a_{n-1}) $$   I tried to use inequality $x\geqslant \sin(x)$ and prove by induction that $a_k\geqslant a_{k+1}$, but I didn't succeed. Anyway, I think that the sequence $\left\{a_k\right\}_{k=1}^\infty$ is monotonically decreasing, and it might be important. As for the ratio test and the root test, I couldn't apply them here.  Could someone help me?


Evaluating $\lim_{x \to 0} \frac{1}{x}\ln(1 + x)$

$$\lim_{x \to 0} \frac{1}{x} \ln(1 + x) = 1 $$ Limit is of type $+\infty \cdot 1$, so must be $+\infty$, but answer is natural exponential to the power $1/2$.


I'm searching for something like this video here shows:   It's the only thing I've found so far for "paged" forms, I don't even know if this is the right search term (comment if you know how this is called). The video explains what I want to do, but I think there must be a better way to do this than just stacking many panels, it seems pretty messy/hacky.   Is this the way to go or have you a better idea to achieve "pages" on a form?   I'm currently using .NET 3.5 but everything else is also fine (including WPF), I can easily switch if necessary.


Can you multiclass the same class twice for different class features?

The way that 5e works, each class has a sub class that dictates a heap of class features. The question here is generally, can a character of a specific class take levels in that same class in order to gain access to the low level features of another sub-class.  The best example of this would either be the wizard or the cleric taking additional levels of wizard/cleric in order to gain access to another domain or school.  Like can a Life cleric take levels of Storm cleric or similar?  If this were allowed, what would the effects be on Maximum spell level and other class level based abilities?


What do they mean with "Hi, how are you doing"?

When I was in New York the workers at the counter (in a shop) always said      Hi, how are you doing?   I was, and still am very confused if they just mean "hello", or actually want to know how I feel.  Could someone please tell me if this is just an empty phrase or if the speaker is genuinely interested.


I've had a set of new EggBeater 3 pedals for 1 month and the left pedal is rusted. I don't understand why only one of the pedals is rusted and the other is not. Is this common and is there something in particular I should do about it?


Multiple possible matches for regex in Perl

I'm new to Perl and is working with regular expressions. I am not able to decide how Perl resolves the ambiguity for a regex match when multiple matches are possible for a given query string. For example   ('hellohellohello' =~ m/h.*o/)   This could match 'hello', 'hellohello' or 'hellohellohello'. Which one will it choose - shortest or largest match ? What if we want opposite behavior (like if default is to find the shortest match then finding the largest match) ? In case the answer to the first is largest consider  ('hello    hellohello' =~ m/h.*o/)  Here, it could match from the first line (before the newline character) or the second line (after the newline character) - first vs largest match. Which one will it use ?   What are the complete set of rules that can be used to decide which substring of a string would match a given regex (might be some case other than the one mentioned in the examples where multiple matches could be found) ?


Interpretation of two residual QQ plots from poisson regression

I have what I believe are an interesting QQ plot of the residuals of some sports data fitted using Poisson regression. My model is actually a live model to predict the number of remaining events in the game (basketball, soccer etc) from a set of explanatory variables. It looks also very much like the data is Poisson distributed, with equal mean and variance.  Residuals are as we know $r_i=Y_i-\mu_i$, where $Y_i$ are the observations, and $\mu_i$ the fitted mean of $Y_i$ ($Y_n$ may have different explanatory variables than, for example, $Y_{n-1}$).  Here is the first residual QQ plot of fitting my model to soccer match data (whole 90 minutes):   Interpreting QQ plots if I want to check for normality of some data is not too hard. It is easy to see that the residuals have too thick tails. But assuming the data is without a doubt Poisson distributed, something must therefore be wrong with $\mu_i$. Looking at the lower tail, I cannot reach any other conclusion than that the values of $\mu_i$ generally are too big - such that $r_i$ becomes too small. But also, looking at the upper tail, I cannot reach any other conclusion than that $\mu_i$ is too small - such that $r_i$ becomes too big. Is this a contradiction, or merely just a reflection that $\mu_i$ is not fitted good enough for extreme cases?


Sorry for the question but I'm new to blender and have recently found this gun model on Sketchfab that I would like to use . After downloading it and opening up the .fbx file in Blender, I was shown the same model but with very weird textures. The textures folder contains the following files but I am unsure on how to apply them to the gun model in Blender.


using FORFILES in batch to delete tmp and bak files older than a week

I am having issues making this syntax work correctly. What I would like to do is remove all tmp and bak files from the specified directory and all subdirectories if the modified date is older than 7 days.  for %G in (.tmp, .bak) do forfiles -p "C:\test\cad projects" -s -m *%G -d -7 -c "cmd /c del @path"   My syntax was gathered from .  If I change my search mask to only include one desired extension then I get correct results.  forfiles -p "c:\test\cad projects" -s -m *.bak -d -7 -c "cmd /c del @path"   I don't do much with batch files so I was hoping someone could assist. Thanks for reading.


Big Sur update keeps failing when downloading

I am trying to update my Macbook Air 13'' 2017. When I first tried it, it failed. When I tried it again, the progress bar would quickly progress to 713 MB, wait there for a while. Then it continues to download, goes till 5.5 GB, and then it fails again. This is the message I get.  I have tried the following:  Deleted the folders in /Library/Updates/ Deleted the files in /private/var/folders/zz/<hash>/C/com.apple.SoftwareUpdate  Each time, it still fails


How can I proceed to find a maximal principal ideal in $\mathbb Z_{(2)}[x]$?   I know the answer in the sense that i know that $(2x+1)$ is a maximal principal ideal of that polynomial ring. But if i didn't, how could i reach that result, i.e. how could i reason to answer?


How to prove 1111......11 (91 digits) is a prime or composite number?

How to prove $1111......11$ ($91$ digits) is a prime or composite number?   My Approach:  $1111......11$ can be expressed as $10^{0}+10^{1}+10^{2}+...…..+10^{90}$  Using summation of a geometric progression formula,  $$10^{0}+10^{1}+10^{2}+...…..+10^{90} = 1\frac{(10^{91}-1)}{(10-1)}=\frac{(10^{91}-1)}{(9)}$$  I do not know how to proceed after this step. Kindly guide me how to solve this problem.


A question about special relativity theory

We have two sets: set No.1 and set No.2 as in this picture:   The observer is fixed to set No.1 . He sees set No.1 motionless and observes set No. 2 approaching with velocity 100,000 m/s.   Each set has one lamp and two, so called, touchers. Each set is designed so that if both touchers are touched simultaneously the lamp is turned on otherwise it remains off.  Set No. 2 is approaching set No. 1 so that each toucher in each set will be touched twice by the touchers of the other set.  The observer on set No. 1 observes the distance between touchers in each set 10 meters. He thinks the lamps on set No. 1 will be turned on because touchers in it will be touched simultaneously.  My question: Will the lamp on set No. 2 be turned on? How if an electrical current flowing from one toucher in a set to the other proves simultaneous touching?


HashMap implementation that allows to override hash and equals method

In Java you can override the equals and hash method of the HashMap's key object to determine how the hash code is generated and when two key objects should be considered equal.  Is there any Map implementation that allows to define the hash and equals on in the Map class by overriding its hash method (and determining key equality by an equals(key1,key2) method that can be overridden)?  Use case:  Ĺets assume we have a Objects of class GeoData, containing the fields:  country, region, city. We want access two Maps: map x stores the number of inhabitants of each region and map y the number of inhabitants of each city.  To get both informations for a GeoData object we first need to extract country and region from that object, then create a new Object of class X that defines hash and equals considering country and region and use it as key for map x. Additionally we need to do the same with country, region and city. Create a new Object of class Y and use that get the value from map y.  Wouldn't it be easier if we extend a Map implementation for each of these maps x and y and override a hash(GeoData key) and equals(GeoData key1,GeoData key2) method, which would also avoid to create new key objects for every access?  hash(GeoData key) could then either use country and region in map x, or country,region and city in map y for hash code calculation.  UPDATE:  Correctly marked as duplicate.  answer suggesting apache commons-collections AbstractHashMap is what I was looking for.


Why are my updating iPhone apps "waiting..." forever?

I've got an iPhone 4, not quite sure which version of iOS, but I keep current.  Recently, I got an update for one of the apps, started it, and then for some reason it got stuck on "Waiting..." indefinitely.  Another app later offered an upgrade, and when I accepted it got stuck on "Waiting...".  This has been a few days now, with both 3G and wireless available, with no change.  The apps don't have the "delete" button when I touch and hold on them, and I tried deleting them in iTunes but after syncing my iPhone there was no visible change.  (They're free apps, so deleting and reloading is a fine solution, but knowing how to kick-start the updater would be nice.)  The App Store app simply tells me they've been updated.  Any suggestions?


I am brand new and I'm trying to switch back to solid view on my model...  At the moment I have this...   And I want this...    EDIT:


How to embed fonts at compile time with pdflatex

I just ran into the problem of embedding fonts while trying to publish with lulu.com. Although everyone apparently is 'supposed' to handle those 35 standard fonts for some strange reason they won't accept pdf's without them included. So one way that according to  is supposed to work (I haven't tried yet, but hopefully it does work) is to convert the pdf to ps and then back to pdf and include the fonts at that time:  pdftops file.pdf ps2pdf14 -dPDFSETTINGS=/prepress file.ps   But this feels at least to me like the wrong way of doing things. Is there some way of passing the parameter directly to pdflatex to tell it to embed those fonts?   And, if not -- How do we go about getting such a feature? (Because it can't only be me who has this sort of problems)


How to change the default shortcut for "move focus to next window" to something else?

On Slovenian keyboard it's impossible to click the default shortcut.


Short captions for figures in \listoffigures

When I use \listoftables and \listoffigures I get in the list long captions that appear next to the tables/figures.  I would like to use short captions for this list which summarize these captions. Is that common to do? If so, what is one way to do it?


The smallest quadrangle inscribed in a rectangle

I'm supposed to find a quadrangle of the smallest perimeter possible inscribed in a rectangle. The inscribed quadrangle has each of its four vertices on another side of the rectangle.   Let's call the rectangle ABCD and let the shorter side be $a$ and the larger $b$. Let's call the quadrangle $KLMN$.   So for example $K$ lies on $AB$, $L$ on $BC$, $M$ on $CD$, $N$ on $AD$.  I think that the sides of $KLMN$ would be the shortest of its diagonals intersected at the right angle, because then by the law of cosines, we have $KL^2 + LM^2= KM^2 + 2 KL \cdot LM \cdot \cos  \angle KLM$, and $\cos  \angle KLM \le 0$ if $\angle KLM \ge 90 ^{\circ}$ and $KM$ is the shortest if it is parallel = equal to the proper side of the rectangle.  Could you tell me if I'm right or correct me if I'm wrong?  Thank you.


Traveling to Spain from the US with Irish and US passports

My daughter is traveling to Spain from the US. She wants to stay longer than 90 days. She holds passports for both Ireland and the US. Which passport should she use to book her flight? It appears that she needs to use her Irish passport for the flight but her US passport for leaving and entering the US.


Is Stack Overflow an appropriate place for DotNetNuke questions?

I noticed that there are very few questions on Stack Overflow about  (DNN). Is this an indicator that DNN has a small Q&A community, or is there a more appropriate place than SO to ask DNN-related programming questions (e.g.  for )?


Cant find .bash_history file in my home directory. Where is it?   echo $HISTFILE   says   /home/iam/.bash_history   But there is no such file.


I've made an object and put an area light on scene. I want that area light points toward the object. I tried to put constraint and PARENT TO OBJECT but that doesn't rotate the light in that specific direction. How to do it?


We define the term "Set" as,     A set is a collection of objects.   And an "Empty set" as,     An empty set is a set which contains nothing.    First problem I encountered:  How the definition of "Empty set" is consistent with the definition of "sets" if "Empty set" contains nothing and a "set" is a collection of objects.  Further we discovered in set theory that every set has a subset that is the Null set.  Such as,  If $A=\emptyset$ and $B=\{1,2,3\}$ then,  $$A \subset B$$  Second problem I encountered:   How and why "No element" is referred and considered as an element as we do in case of null set that is, when we say that every set has a subset that is the Null set?  Third and Last one:  How can a set possess "some thing" and "nothing" simultaneously that is when we say that every set (containing objects) has a subset which is Null set (contains nothing)?


Denote $y_n=\int_0^1{\frac{f^{n+1}(x)}{g^n(x)}}dx$ for all integer $n \geq 0$. Prove that $(y_n)_{n \geq 1}$ is an increasing and divergent sequence.

Let $f,g:[0,1] \rightarrow (0,\infty)$ be two distinct, continuous functions such that $$\int_0^1 f(x)dx=\int_0^1 g(x)dx$$ Denote $$y_n=\int_0^1{\frac{f^{n+1}(x)}{g^n(x)}}dx$$ for all integer $n \geq 0$. Prove that $(y_n)_{n \geq 1}$ is an increasing and divergent sequence.   is the source of the problem.   My attempt:   Note that $$y_n -y_{n-1}=\int_0^1{\frac{f^{n+1}(x)}{g^n(x)}}dx-{\frac{f^{n}(x)}{g^{n-1}(x)}}dx = \int_0^1{\frac{f^{n+1}(x)-f^n(x)g(x)}{g^n(x)}}dx = \int_0^1{\frac{f^n(x)}{g^n(x)}(f(x)-g(x))}dx \geq A\int_0^1(f(x)-g(x)dx=0$$  where $A>0$.  Hence, $(y_n)_{n \geq 1}$ is increasing. However, I have trouble to show the sequence diverges. Can anyone give some hint?


Pass PHP variables from my custom block to my custom Twig template

I created a custom block module my_block. Inside modules/custom/my_block/src/Plugin/Block/MyBlock.php I have this code:  <?php     namespace Drupal\my_block\Plugin\Block;     use Drupal\Core\Block\BlockBase;     /**      * Provides'My Block' Block.      *      * @Block(      *  id = "my_block",      *  admin_label = @Translation("MyBlock block"),      *  category = @Translation("Our Example block"),      * )      */      class MyBlock extends BlockBase {        /**        * {@inheritdoc}        */        public function build() {          $build = [];           for ($day = 1; $day <= 100; $day++) {            if ($day % 15 == 0) {                echo $foo . $bar
;            } elseif ($day % 3 == 0) {                echo $foo '
';            } elseif ($day % 5 == 0) {                echo $bar . '
';            } else {                echo $day . '
';            }          }       $block = [        '#theme' => 'my_template',        '#cache' => [          'max-age' => strtotime('01/01/'.(date('Y')+1)) - time(),        ],      ];       $build = $block;       return $build;   }  }   I also created a template file modules/custom/my_block/templates/my-template.html.twig and attached it to my custom module.  I have another file modules/custom/my_block/my_block.module:  <?php /**  * Implements hook_theme().  */  function fizzbuzz_block_theme($existing, $type, $theme, $path) {    return [      'my_template' => [        //'variables' => ['markup' => NULL, 'test_var' => NULL],        'variables' => [          'test_var' => '',        ],      ],    ];  }   How do I output the values from the if/else conditions from modules/custom/my_block/src/Plugin/Block/MyBlock.php, into my custom block and so I am able to render them in my twig file modules/custom/my_block/templates/my-template.html.twig. E.g. Show: {{ result }}   Do I somehow have to parse some variables inside the public function build() function?


How to calculate the standard error of a slope in linear regression model?

I got a formula: $$ s(b_1) = \sqrt{\frac{1}{n-2}·\frac{\sum{(y_i-\hat{y}_i)^2}}{\sum{(x_i-\bar{x})^2}}} $$ , is this correct? and how can I calculate the standard error of the intercept?  I am leanring R, When I execute the command "summary(lrfit)",it will give result as follow. I am interested how these values calculated...  Coefficients:             Estimate Std. Error t value Pr(>|t|)     (Intercept) 2.341231   1.096730   2.135 0.044170 *   X0          1.615907   0.170735   9.464 3.25e-09 *** X1          0.014385   0.003613   3.981 0.000631 ***


Mixing multiple values for the same key and file uploads using cURL and PHP

I’ve run into a limitation in the cURL bindings for PHP. It appears there is no easy way to send the same multiple values for the same key for postfields. Most of the workarounds I have come across for this have involved creating the URL encoded post fields by hand tag=foo&tag=bar&tag=baz) instead of using the associative array version of CURLOPT_POSTFIELDS.  It seems like a pretty common thing to need to support so I feel like I must have missed something. Is this really the only way to handle multiple values for the same key?  While this workaround might be considered workable (if not really annoying), my main problem is that I need to be able to do multiple values for the same key and also support file upload. As far as I can tell, file upload more or less requires to use the associate arravy version of CURLOPT_POSTFIELDS. So I feel like I am stuck.  I have  about this problem in more detail on the cURL PHP mailing list in the hopes that someone there has some ideas about this.  Suggestions or hints on where I can look for more information on this are greatly appreciated!


C# split lines from File by two separators

my parsing textline looks like this:  item1=xyz item2=5 itme3=txt item4="Hello World" item5=abc itm6=10.2  I want to split this line by string[] items = line.Split() and use the space as separator (all Items are separated by only one space). But there is item4, witch is not like the others. This space should not be a separator.  Has any body an idea, how to handle this?


With Apache HttpClient, why isn't my connection timeout working?

My implementation of httpclient occasionally throws an exception when calling doGetConnection(). However, I have the following timeout set  _moHttpClient.setHttpConnectionFactoryTimeout(30000);   it looks almost like my timeout is not being picked up. Is there anywhere else I need to set a timeout to ensure this behaviour does not re-occur


Evaluate $\lim_{n \to \infty} \sqrt[n]{3^n+4^n}$

$$\lim_{n \to \infty} \sqrt[n]{3^n+4^n}$$   Is there there a way to solve this without using $e^{ln(3^n+4^n)}$?  Maybe: $\displaystyle\lim_{n \to \infty} \sqrt[n]{4^n}=4\,\leq\,\lim_{n \to \infty} \sqrt[n]{3^n+4^n}\,\leq\,\lim_{n \to \infty} \sqrt[n]{2\cdot4^n}=4$?


Find a formula for the sum of the $n$ terms of the sequence (Summations & Sequences)

Find a formula for the sum of the $n$ terms of the sequence:  $1, 1 + 2, 1 + 2 + 2^{2}, 1 + 2 + 2^{2} + 2^{3}, ...$  My Approach:  When $n$ increases the sequence increases by $2^{n}$ for every $n$.  I believe the formula has a constant which is $1$ based on the sequence pattern.  When I sum up the sequence for every $n$ it is $1, 3, 7, 15, ...$   I believe it is an arithmetic progression where $a = 1$ and $a(n) = 2a(n-1) + 3$  Although the formula is not quite correct i got some of the correct answers but not all   for every $n$.  Any help or hints would be appreciated for this


I'm having a difficult time learning python syntax. I've been doing some algorithms for a merge sort and I've run into a bit of an issue.  def arrMerge(a):     for i in range(1,len(a), *2):         for j in range(0,len(a)-1,2*i):             end2 = (2*i < len(a) -j) ? 2*i : len(a) -j   this block in python any ideas on how I should go about executing it?


database connection not working compiler error and processing as a string

I'm a newbie to c# and i'm trying to follow a youtube tutorial and the code will not run. It's coming up with several errors  Severity   Code    Description Project File    Line    Suppression State Warning CS0642  Possible mistaken empty statement   WindowsFormsApp1        36  Active Error   CS0103  The name 'RecipeTable' does not exist in the current context    WindowsFormsApp1        44  Active Error   CS0103  The name 'stRecipes' does not exist in the current context  WindowsFormsApp1        44  Active Error   CS0103  The name 'stRecipes' does not exist in the current context  WindowsFormsApp1        43  Active Error   CS0103  The name 'stRecipes' does not exist in the current context  WindowsFormsApp1        42  Active Error   CS0103  The name 'RecipeTable' does not exist in the current context    WindowsFormsApp1        41  Active Error   CS0103  The name 'adapter' does not exist in the current context    WindowsFormsApp1        41  Active Error   CS0117  'DataTable' does not contain a definition for 'RecipeTable' WindowsFormsApp1    40  Active Error   CS0210  You must provide an initializer in a fixed or using statement declaration   WindowsFormsApp1    37  Active Error   CS1503  Argument 1: cannot convert from 'string' to 'System.Data.SqlClient.SqlCommand'  WindowsFormsApp1        37  Active Error   CS1002  ; expected  WindowsFormsApp1        44  Active Error   CS1002  ; expected  WindowsFormsApp1        43  Active Error   CS1002  ; expected  WindowsFormsApp1    42  Active  using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Configuration; using System.Data.SqlClient;   namespace WindowsFormsApp1 {     public partial class FrmMain : Form     {         SqlConnection connection;         string connectionString;         public FrmMain()         {             InitializeComponent();               connectionString = ConfigurationManager.ConnectionStrings["WindowsFormsApp1.Properties.Settings.CookbookConnectionString"].ConnectionString;          }         private void FrmMain_Load(object sender, EventArgs e)         {             PopulateRecipes();                  }         private void PopulateRecipes()         {              using (connection = new SqlConnection(connectionString)) ;             using (SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM Recipe"), connection)             {};             {                 DataTable.RecipeTable = new DataTable();                 adapter.Fill(RecipeTable);                 firstRecipes.DisplayMember = "Name";                 firstRecipes.ValueMember = "Id";                 firstRecipes.DataSource = RecipeTable;              }         }     } }


Can a plugIn in QGIS let me cut polylines where the points of another shapefile are?

I want to know if there is a plugin/tool in QGIS, that let me cut lines of a shapefile where the points of another shapefile are.


find command not filtering files by size correctly

I am trying to filter .out and .txt files from sizes 8 to 15 bytes (not inclusive). The directory from which the files are searched is given as the first argument when calling the shell.  As input  have the directory temp:  my@computer:/$ ll temp total 80 -rw-r--r-- 1 asistent users 17 May 25 19:04 file1.exe -rw-r--r-- 1 asistent users 13 May 25 19:04 file1.out -rw-r--r-- 1 asistent users 25 May 25 19:04 file1.pdf -rw-r--r-- 1 asistent users  9 May 25 19:04 file1.txt -rw-r--r-- 1 asistent users 17 May 25 19:04 file2.exe -rw-r--r-- 1 asistent users 25 May 25 19:04 file2.out -rw-r--r-- 1 asistent users 25 May 25 19:04 file2.pdf -rw-r--r-- 1 asistent users 13 May 25 19:04 file2.txt -rw-r--r-- 1 asistent users 25 May 25 19:04 file3.exe -rw-r--r-- 1 asistent users  5 May 25 19:04 file3.out -rw-r--r-- 1 asistent users  9 May 25 19:04 file3.pdf -rw-r--r-- 1 asistent users 21 May 25 19:04 file3.txt -rw-r--r-- 1 asistent users 17 May 25 19:04 file4.exe -rw-r--r-- 1 asistent users 17 May 25 19:04 file4.out -rw-r--r-- 1 asistent users 29 May 25 19:04 file4.pdf -rw-r--r-- 1 asistent users 25 May 25 19:04 file4.txt -rw-r--r-- 1 asistent users 13 May 25 19:04 file5.exe -rw-r--r-- 1 asistent users  5 May 25 19:04 file5.out -rw-r--r-- 1 asistent users  9 May 25 19:04 file5.pdf -rw-r--r-- 1 asistent users  9 May 25 19:04 file5.txt   My script is:  #!/bin/bash   if [ $# -ne 1 ]; then         echo "USAGE: $BASH_SOURCE <SOURCE>"         exit 1 fi  if [ ! -d $1 ]; then         echo "Source directory does not exist"         exit 1 fi  mkdir output  #filtering files here allFiles=`find $1 -type f -size -15c -size +8c -iname "*.txt" -o -iname "*.out"`  #echo $allFiles  for file in ${allFiles[*]}; do         #echo "Copying file $file"         `cp $file output` done   My output is:  total 40 -rw-r--r-- 1 181185 domain users 25 May 26 14:00 file1.out -rw-r--r-- 1 181185 domain users  9 May 26 14:00 file1.txt -rw-r--r-- 1 181185 domain users 17 May 26 14:00 file2.out -rw-r--r-- 1 181185 domain users 13 May 26 14:00 file2.txt -rw-r--r-- 1 181185 domain users  9 May 26 14:00 file3.out -rw-r--r-- 1 181185 domain users  9 May 26 14:00 file3.txt -rw-r--r-- 1 181185 domain users  5 May 26 14:00 file4.out -rw-r--r-- 1 181185 domain users 13 May 26 14:00 file4.txt -rw-r--r-- 1 181185 domain users  5 May 26 14:00 file5.out -rw-r--r-- 1 181185 domain users  9 May 26 14:00 file5.txt   Notice i have files with sizes 17 and 25. Can some explain to me the proper usage of this command and my mistake?


Can Metamagic be used in Item Creation? What are the limits?

One of my players has recently obtained the Craft Wondrous Item feat. In an attempt to prepare for what he may build I want to know the specific limits of Wondrous Items.  I know that someone can create an item for which they do not meet the prerequisites by adding +5 to the spellcraft DC, and that assistance is a thing.  Can someone use meta-magic when crafting a non-specific wondrous item?  Example: Amulet of Empowered Fire-Ball.  If so, can they use meta-magic feats they do not know, substituting for +5 DC?  Can the Spell Level exceed 9 for these items, as long as they add +5 for not meeting the CL requirements, and make the higher check?  Example: Amulet of Maximized Empowered Still Silent Disintigrate.


i am new to ubuntu and the linux world generally ! i am trying to install kubuntu 18.04 on my old desktop computer ( however this is my main machine ) the machine has 1GB of RAM and a 1.80 GHZ amd proccesor and 15GB of free disk space so can i install and run kubuntu on this computer and is it possible to install it with wubi because i want the easy way. and thank you


I have Crépin with character é in database stored? How can I display the same character?

I need to convert é this into readable form in drupal 8 .The character is shown as � instead of é. Which function can be used to display é in the html while fetching value from database.?  I tried using many functions but did not suceed in implementing it


Dot product in the line integral of a vector field

Why does the integrand of a line integral consist of a dot product between the vector filed $\vec F$ and the unit tangent vector $\hat T$( or normal $\hat n$ )? Does this follow from physical examples( Work done, for an example ) or is there a particular reason behind considering the dot product?


Software Center is not opening, and sudo apt-get update is not working

I got the following error when trying to run sudo apt-get update in Ubuntu 16.04.  predator@kmb:~$ sudo apt-get update [sudo] password for predator:  E: Type '<!DOCTYPE' is not known on line 1 in source list /etc/apt/sources.list.d/medibuntu.list E: The list of sources could not be read. predator@kmb:~$


Creating polygons from lines using ArcEditor/Standard level license of ArcGIS Desktop?

I am trying to create polygons from a line layer of lots and concessions (large blocks of land in rural areas).   The lines are mainly grid style as they intersect mostly at right angles.   I need to create polygons from these lines.   I tried it in QGIS and it did not work.   Any suggestions other than digitizing?   I'm using ArcEditor 10.