How to handle Ignored lists of packages got with sudo apt-get update?

Running the command sudo apt-get update | grep Ign in bash of my Ubuntu 15.10 I got the following:    Ign http://dl.google.com stable InRelease Ign http://dl.google.com stable InRelease Ign http://dl.google.com stable/main Translation-en_US Ign http://dl.google.com stable/main Translation-en Ign http://dl.google.com stable/main Translation-en_US Ign http://dl.google.com stable/main Translation-en   Should I worry about these ignored lists of packages? Should I worry about duplication of these lists? How can I fix it?  UPD: The content of my /etc/apt/sources.list file:  # deb cdrom:[Ubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://ua.archive.ubuntu.com/ubuntu/ wily main restricted deb-src http://ua.archive.ubuntu.com/ubuntu/ wily main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://ua.archive.ubuntu.com/ubuntu/ wily-updates main restricted deb-src http://ua.archive.ubuntu.com/ubuntu/ wily-updates main restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://ua.archive.ubuntu.com/ubuntu/ wily universe deb-src http://ua.archive.ubuntu.com/ubuntu/ wily universe deb http://ua.archive.ubuntu.com/ubuntu/ wily-updates universe deb-src http://ua.archive.ubuntu.com/ubuntu/ wily-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://ua.archive.ubuntu.com/ubuntu/ wily multiverse deb-src http://ua.archive.ubuntu.com/ubuntu/ wily multiverse deb http://ua.archive.ubuntu.com/ubuntu/ wily-updates multiverse deb-src http://ua.archive.ubuntu.com/ubuntu/ wily-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://ua.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse deb-src http://ua.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse  deb http://security.ubuntu.com/ubuntu wily-security main restricted deb-src http://security.ubuntu.com/ubuntu wily-security main restricted deb http://security.ubuntu.com/ubuntu wily-security universe deb-src http://security.ubuntu.com/ubuntu wily-security universe deb http://security.ubuntu.com/ubuntu wily-security multiverse deb-src http://security.ubuntu.com/ubuntu wily-security multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu wily partner # deb-src http://archive.canonical.com/ubuntu vivid partner   UPD2  I have two additional repos:   /etc/apt/sources.list.d/google-chrome.list /etc/apt/sources.list.d/google-earth.list   The content of first one is  deb http://dl.google.com/linux/chrome/deb/ stable main   The content of the second one is  deb http://dl.google.com/linux/earth/deb/ stable main   If I comment the last string then the duplication disappears. Thus, I guess, there is no problem with the duplication.


Is "Is it a girl or a boy?" really calling the infant an "it"?

So, my boss comes in, railing that "English is a stupid language!" Since this is pretty much a thrice-weekly occurrence 'round these parts, I barely raised an eyebrow, and waited for him to continue.   "Mary just wrote to tell us that she's back from maternity leave, and I want to congratulate her and ask whether she had a girl or a boy, but I can't do it without calling the child an 'it'!" I blinked, then confirmed that yes, he believes the it in "Is it a boy or a girl" is the impersonal pronoun, the same word you'd apply to an apple or a house.  Is it the 'thing' pronoun, really? Or is it just a placeholder of some sort? I used to believe the latter: I gave the boss a mini-lecture about  and the . He wasn't convinced, however, and now he's got me doubting too. (Harumph. I really should know better than to listen to the boss.)  I'm not asking about politeness, here; the former title was to be taken somewhat facetiously. I'm wondering about the grammar: what role is that "it" playing in that sentence? Is it a personal pronoun (and thus the infant has grounds for feeling offended) or a dummy pronoun (and thus those who perceive a politeness issue are just misunderstanding the grammar)?


Where to ask for general advice for young programmers?

I'm thirteen years old (yes I was twelve when I signed up, but I had my parents make my account on my behalf and did not post any personal information, which I believe is legal :-P), and I am very passionate about programming. I have some questions regarding young programmers, and I'm wondering where to ask.  First I want to note a few things, before you say "nowhere; this doesn't fit with the q&a format" (which I do quite a bit :-P):    I have a specific problem. I'm not going to ask "what should I do now;" there are specific things I want to know. For example, "how can a young programmer do xxx." My question applies to a general audience. I'm not going to ask "I've done xxx and want xxx, should I do xxx;" rather, it will apply to all young programmers in general.   Here are the sites I might ask it on:    Programmers: I've considered asking here. I've seen the famous Venn diagram with "all people," "all careers," "all programmers," and "just you," and I believe that if I make my question general enough, it can apply to all young programmers. A question like this seems to be on-topic according to their "what can I ask" guidelines. However, their description says     Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development.   It's not really about software development, and I'm certainly not professional, so that gives me doubts about asking there. The Workplace: I'm not sure about this one... it's not really about work, but I suppose it could be in a kind of abstract way ("the work of programming" or something). This seems like the wrong site though. Something else? Is there a better site perhaps?    Where on the SE network should I ask this, if at all? Or is this just not suitable to SE in general and I should find somewhere else to ask?


No launch/menu bar. Can only open terminal

I logged into Ubuntu and my menu bar and launch bar are gone.  I cannot use Ubuntu as there as the only this I see is my wallpaper. I have restarted and it has not done anything.  I can open the terminal, and I can run commands, but that is all I can do.    As you can see I don't even have the ability to close, maximise or minimise windows (I can close by using alt+f4 though.)  I have tried various command like alt+f2 and other commands, but these don't appear to work.  Is there a way in the terminal to open the home folder as a window? If I can have a folder open, then I can at least use Ubuntu to an extent.  Thanks in advance.


When clicking on own comment the share card freezes

I tried to edit my comment (which is not possible) but without being able to tell what each of the icons meant I accidentally pressed the share button.   The card popped up but I couldn’t dismiss it or even select any of the options to then cancel the share.   I took a video but then realised you couldn’t see my finger movements, but I attached an image to where I was talking about:     App Version: 1.6.6.2 Device: Unknown (iPhone10,4) OS Version: Version 13.2.2 (Build 17B102)


Can we decorate a method that retrieves data with HttpPost?

I can see that there are example codes online where an api call - [HttpPost] public async Task<users> GetUsers() {   // api call to retrieve users }  Isn't it supposed to be HttpGet - and what is the reason for HttpPost? Does it hide details from the url?


JavaScript - Array of Objects - Compare & Remove Duplicates ES6

I have two objects: Object One [   { repo: 'edat-ims-github', status: 200 },   { repo: 'edat-ims-github-spa', status: 200 },   { repo: 'test-repo-three', status: 200 } ]  Object Two [   { repo: 'edat-ims-github', status: 200 },   { repo: 'edat-ims-github-spa', status: 200 },   { repo: 'test-repo-one', status: 200 },   { repo: 'test-repo-two', status: 200 },   { repo: 'test-repo-three', status: 200 } ]  I would like to compare both arrays and remove the duplicate objects from the second array so my output looks like: [   { repo: 'test-repo-one', status: 200 },   { repo: 'test-repo-two', status: 200 } ]  I have tried to use ES6 to do this by running this:   const result = objectTwo.filter((obj) => {     return !objectOne.includes(obj);   });  However, result is coming out as: [   { repo: 'edat-ims-github', status: 200 },   { repo: 'edat-ims-github-spa', status: 200 },   { repo: 'test-repo-one', status: 200 },   { repo: 'test-repo-two', status: 200 },   { repo: 'test-repo-three', status: 200 } ]  Could someone please guide me on where I am going wrong and what the most optimal way of achieving this would be? In real life, both arrays have are 10000+ objects. I am not testing equality as both arrays are not the same, I am more testing how to remove duplicates. Thanks :)


Moving object orientation toward its movement in unity3d

I have a gameObject (camera) which is moving on the spline. I want to set it orientation towards it movement. Means, object should need to see where it is moving. I some thing tried this but this is not looking rightly! any advice?   transform.rotation = Quaternion.LookRotation(transform.position);   I have also tried this   transform.rotation = Quaternion.LookRotation(transform.forward);


Let $ D $ be an Euclidean domain and $d$ be the associated function. $u$ is a unit in $D$ if and only if $d(u)=d(1)$

Since $u$ is a unit, $uv=1$ for some $v \in D$. Now $$d(1)=d(uv) \leq d(u)$$ Again $d(u) \leq d(uv)=d(1)$. Hence $d(u)=1$. BUT what about its converse?


How can I remove certain lines and surrounding lines from a file?

I've got a tcpdump file.  I want to remove certain packets. They are easy to spot because they have   0x0000: a6a6 a6a6 a6a6 a6a6 ........   as the first line of data.  The full packet looks (mutatis mutandis) like:  16:24:46.132673 00:35:1a:71:91:37 (oui Unknown) > 05:05:05:c5:05:05 (oui Unknown), ethertype Unknown (0x88be), length 60:      0x0000:  a6a6 a6a6 a6a6 a6a6 0101 2400 00b4 b83e     0x0010:  931f 00be 7c80 545a 0202 0000 0000 00a5     0x0020:  a5a5 a500 0000 0000 0000 0000 0000   So what I'd like to say is:  "Remove lines that contain this pattern, and the line before the pattern, and the two lines after it".  Sed or awk or grep would be good, e.g.  $ sed -i 'magic' file   Any ideas what goes in place of magic?


How can I create a empty file whose name begins with a dash?

How can we create a empty file with the unix name -stuff. It means the name start with -. I tried with touch -stuff but it didn't work.


Page width is getting out after adding Urdu in Table

When I am trying urdu in the table column it is going outside of the page width in latex this is my code of writing urdu inside the table  \begin{table}[htbp] \caption{CHECKING OF URDU IN LATEX} \begin{center} \begin{tabular}{|c|c|c|} \hline s# & Type & Words \\ \hline 1 & Normal & \begin{urdu} ریڈیو پاکستان کی عمارت کو لیز پر دینے کا حکومتی فیصلہ ’پچاس ارب کی پراپرٹی پر مندر تو نہیں بنا سکت  \end{urdu} \\ \hline 2 & Normal & \begin{urdu} چائنیز سفیر اردو بڑی اچھی بولتا ہے عثمان بزدار کی مسکراہٹ سے اندازہ لگا لو \end{urdu} \\  \hline 3 & Normal & \begin{urdu} ہم آپ سے بہت پیار کرتے ہیں، لہذا ہم اس اردو کے غلط تحریر پر ہنس نہیں کرتے ہیں \end{urdu} \\   \end{tabular} \label{tab1} \end{center} \end{table}


How do I pull data from one cell to another using matching info in excel?

So, let me try to explain what I need. I have two different workbooks of data. I need to match info from "WB1 Column B" to "WB2 Column A". If there is a match, I need to pull the info from the same row as the matched data in "WB2 Column A" but from "WB2 Column D" and plug that info into the the original row in "WB1 Column C".   Does that make sense? If so, is there a way to do this?


Let $X$ and $Y$ be compact Hausdorff spaces. And let $A\subset X$ and $B\subset Y$ be closed subspaces. If $U$ is open in $X \times Y$ and $U$ contains $A \times B$, then there exists open subsets $V \subset X$ and $W \subset Y$ such that $A \times B \subset V \times W \subset U$.   I think this is an easier version of the generalized tube lemma since it assumes $X$ and $Y$ being Hausdorff, but I just can't seem to find such $V$ and $W$. I can find some open set in $X \times Y$ containing $A \times B$ but not able to show it is contained in $U$.


Minimize one, single window in Windows 7 with keyboard shortcut

I'm after a way to minimize the active window in Windows with a keyboard shortcut, just like cmd + m works on my Mac.


Unable to paste unicode character into MySQL console

I am working on a server Ubuntu 16.04 in which is installed MySQL 5.7.31. I have a trouble about paste a unicode character like ù or à in the console of MySQL. What kind of check I can do to solve this issue? Many thanks.


How to place text above the figure/table

How to place text above the rotated Figure (LANDSCAPE) in the same page. I tried but text automatically moved to the following page.  TEXT TEXT....   \begin{landscape} \begin{table}[] \centering \includegraphics[width=160mm]{figures2/comparation3.png} \caption{A comparison of Aloha protocols} \label{tab:ComparationAloha} \end{table} \end{landscape}     I added this code, but one part of table disappeared. I must have type TABLE since I need it for list of tables later.  \lipsum[11] \begin{table}[h!] \rotatebox{90}{\parbox{100mm}{ \includegraphics[width=160mm, rotate=90]{figures2/comparation3.png} \caption{A comparison of Aloha protocols} \label{tab:ComparationAloha}}} \end{table} \lipsum[12]


Windows 10 (Upgrade from windows 7) won't dual boot

This situation is the PC was upgraded from Windows 7 to Windows 10.  Then Ubuntu was installed.  When I installed it the prompt asked if I wanted to install it along side Windows 7 even though the upgrade to 10 was complete.  I proceeded with the installation and it appeared to complete without errors.  However, it still boots directly to Windows 10 without a dual boot option.    At this point I am not sure how to boot to Ubuntu to fix grub.  I have read some solutions for grub but I need to get into Ubuntu first.  The option to "try Ubuntu" works but that is only running off the thumb-drive.  Any suggestions?  Thank you very much.


What are my options to run MS SQL 2012 on Amazon RDS for development if I only have MSDN license?

I want to run MS SQL 2012 SE BYOL on Amazon RDS under my own MSDN license but it looks like MSDN license doesn't allow me to run MS SQL unless I host it on the dedicated hardware     Microsoft Volume Licensing Product Use Rights (July 2014) states, “You   may install and use permitted copies of the software on Servers and   other devices that are under the day-to-day management and control of   third parties, provided all such Servers and other devices are and   remain fully dedicated to your use.”     So I need to know what my options are. I don't want to use EC2 Dedicated option for two reasons: too expensive and I don't want to install SQL server myself.


how to stop OneDrive searches appearing in SharePoint?

Currently we have a tenancy we use in the university where both staff and students reside. Currently when a staff member searches on SharePoint in the search results it brings back OneDrive results is there a way of stopping OneDrive results from appearing in the results.


Probability of $P1$ winning championship

Two players $P_1$ and $P_2$ are playing the final of a chess championship,which consists of a series of matches.Probability of $P_1$ winning a match is $\frac{2}{3}$ and that of $P_2$ is $\frac{1}{3}$.The winner will be the one who is ahead by two games as compared to the other player and wins atleast $6$ games.Now if the player $P_2$ wins first 4 matches,prove that the probability of $P_1$ winning the championship is $\frac{1088}{3645}$  I have couple of doubts in this question after following the solution given by "Aretino" .    Its assumed that After a Parity occurs, Probability of winning $P1$ is $p_0$.  But there are different parity situations right?  For example we have  $P_2 P_2 P_2P_2 P_2 P_1P_1P_1P_1P_1$ also a parity situation.why cant we consider this case?  am i missing something here?


I wanted to modify some files in /lib/plymouth/themes/ubuntu-logo. As those were read only, I tried to edit its permission. But it is showing that the owner is root and as I am not the owner I cant change the permissions. Is there any way to modify those files?


The other day a friend of mine showed me this sum: $\sum_{k=0}^n\binom{3n}{3k}$. To find the explicit formula I plugged it into mathematica and got $\frac{8^n+2(-1)^n}{3}$. I am curious as to how one would arrive at this answer.  My progress so far has been limited. I have mostly been trying to see if I can somehow relate the sum to $$\sum_{k=0}^{3n}\binom{3n}{k}=8^n$$ but I'm not getting very far. I have also tried to write it out in factorial form, but that hasn't helped me much either.  How would I arrive at the explicit formula?


$H$ normal in $G$. Need $G$ contain a subgroup isomorphic to $G/H$

If $H \trianglelefteq G$, need $G$ contain a subgroup isomorphic to $G/H$?  I worked out the isomorphism types of the quotient groups of $S_3, D_8, Q_8$.  For $S_3$:   $S_3/\{1\} \cong S_3$, $S_3/\langle (1\ 2\ 3)\rangle \cong \mathbb Z_2$, $S_3/S_3 \cong \{1\}$.   For $D_8$:   $D_8/\{1\} \cong D_8$, $D_8/\langle r\rangle \cong \mathbb Z_2$, $D_8/\langle s, r^2\rangle \cong \mathbb Z_2$, $D_8/\langle sr^3, r^2\rangle \cong \mathbb Z_2$, $D_8/\langle r^2\rangle \cong V_4$, $D_8/D_8 \cong \{1\}$.   For $Q_8$   $Q_8/\{1\} \cong Q_8$, $Q_8/\{1, -1\} \cong V_4$, $Q_8/\langle i \rangle \cong \mathbb Z_2$, $Q_8/\langle j \rangle \cong \mathbb Z_2$, $Q_8/\langle k \rangle \cong \mathbb Z_2$, $Q_8/Q_8 \cong \{1\}$.   So I'm guessing that the statement is true, but I don't know how to prove it. And if its not true, I haven't found a counter example. Can someone give me a proof or counterexample? Or a HINT :D  EDIT: Ahhh. I feel stupid now. Given $\{1, -1\}$ normal in $Q_8$ there is no subgroup of $Q_8$ isomorphic to $V_4$. Correct? So the statement is false?


Does copying a spell from a scroll into your spellbook consume the scroll?

The text on page 32 of the Basic Rules that talks about copying spells does not explicitly state that the process consumes the scroll. Does it?


If I want to say that I excelled all my class this summer, I might say "I got all As this summer". Is this correct vs using "A's"? I see the latter used everywhere. But with the presence of apostrophe it sounds to me like it would make it possessive and not plural.


So I'm making a basic car model here for fun, but when I try to add the subdivision surface modifier for smoother body, the side of the car become what it looks like in the screenshot. Is there any solution to make the side look less bulky? Any help is appreciated. :D


How can I unit test code which uses a confluent_kafka Consumer?

I'm trying to unit test following piece of code using pytest: import json from typing import Any, Dict  from confluent_kafka import Consumer   def get_message(config: Dict[str, Any]):     consumer = Consumer(         {             "group.id": config["KAFKA_GROUP_ID"],             "bootstrap.servers": config["KAFKA_BROKERS"],             "default.topic.config": {"auto.offset.reset": "smallest"},         }     )     consumer.subscribe([config["KAFKA_TOPIC"]])     while True:         collect = consumer.poll()         if collect is None:             continue          try:             message = json.loads(collect.value().decode("utf-8"))         except json.JSONDecodeError:             continue          return message  But I can't mock subscribe function. I tried: mock_subscribe = MagicMock(return_value='test') monkeypatch.setattr('confluent_kafka.cimpl.Consumer.subscribe', mock_subscribe)  In result I got following error: TypeError: can't set attributes of built-in/extension type  How to mock this function properly?


The limit of iterated square root with multiplication under the root, $\sqrt{ a \sqrt{ a \sqrt{a \cdots}}}$

$$ \sqrt{ a  \sqrt{ a  \sqrt{a \cdots}}}=\text{ ?} $$ options were given as    $0$ $-a$ $a$ $1$   i did not know how to solve it or what it was related to. Could anyone please explain the concept and/or provide helpful references or links?


What was Natsume hiding in her closet in episode 11?

In episode 11 of Tokyo Ravens, what was Natsume hiding in her closet?


Is it true that Canonical shares some user's information with Amazon without asking for permission to Ubuntu's user?

I heard Richard Stallman saying it...  He says Ubuntu violates the privacy of the user by giving information to Amazon without permission.


What are neutral density filters and how do I use them to create long exposures in daylight?

I've seen a few related posts on the site but nothing specifically on this point:  I'd like to be able to take long exposure photos during daylight (like the examples in ). I'm told that you can do this by using a neutral density filter. So my question is: what is a neutral density filter exactly, and how is it used to achieve that smooth long exposure effect?


Recursive feature elimination and one-hot & dummy encoding?

When using RFE in linear regression and logistic regression, do we one-hot encode the features (K levels and K dummy features) or dummy-encode the features (K levels and K-1 dummy features leaving one out).   As per a comment by @Matthew Drury in an answer (URL below), one hot encoding is applied for a regularized linear model and for unregularized linear model dummy encoding. My doubt is what type of encoding when using RFE without any L1/L2 penalties.    My understanding is since in RFE some features gets eliminated so if for a categorical variable with say 4 levels we do dummy encoding and have 3 features/levels in model & RFE eliminated 1, we will only have 2 features/levels left and the interpretation of its coefficient would not make sense in absence of the one level which was left out as reference.  Whereas if we have done one-hot encoding and RFE considers 2 features as important and eliminates other 2 then we can very well judge/interpret the coefficients or importance of 2 features RFE keeps.  So question which type of encoding is needed to be done when using RFE with linear and logistic regression?


I installed Apache2 and PHP with success, but when I want visit http://localhost/phpmyadmin I got the following error:     Not Found      The requested URL /phpmyadmin was not found on this server.      Apache/2.4.7 (Ubuntu) Server at localhost Port 80   How can I fix this, because I need it working before I can continue.   Edit: Now I have a new error:       Forbidden      You don't have permission to access /phpmyadmin on this server.      Apache/2.4.7 (Ubuntu) Server at localhost Port 80


Can we make it more plain to recruiters that we're not open to relocation?

The preference for being open to relocation is a checkbox, and if you don't check it, nothing about relocation shows up in your profile.  Evidently recruiters can't understand that a lack of "I am open to relocation" is the same thing as "I am not open to relocation", and so every single contact I've gotten through Careers is for a job that I would have to relocate for.  Can we make it more obvious to the recruiters (especially ones from Amazon) that we have not checked that box on purpose?


Preferred order of C++ class fields with respect to memory alignment

Say I have a simple C++ class that contains a variety of types with different sizes. To my understanding, types with identical sizes should be grouped together to maximize memory alignment. Assuming my goal is to maximize memory efficiency  What would be the best way of ordering types of differing sizes? In the example below, assume HeavyClass is a large object.  Am I correct in placing large objects at the end?  class MyClass {   int d_someInt;   int d_anotherInt;   long d_someLong;   HeavyClass d_heavyClass; };   The usual things like cache locality, readability apply but all other being equal, I want to maximize alignment.


What can I do to protect my data on laptop if it were stolen?

There were similar question like .   But my question is different  I have family images, documents, some personal videos, etc (aound 500 GB).  I have backups. So even if my laptop were stolen I can get all my data.  But my data should not go to others. I have currently set a Windows password... But a thief can boot my laptop via Linux and then can access the files.  So what can I do to protect my data even if my laptop is stolen?


Dilworth's Theorem Implies Konig's Theorem

An excercise says "deduce Konig's Theorem on bipartite graphs from Dilworth's theorem on posets".   Let G be a bipartite graph, G=(A,B). Order the edges left to right. A maximum antichain is a largest independent set in the graph.   I can see a maximum antichain must have every vertex in G incident with it. But it doesn't follow that every edge is incident with it. That may not be true.   So how does one proceed?


I understand that an id must be unique within an HTML/XHTML page.  My question is, for a given element, can I assign multiple ids to it?

   I realize I have an easy solution with simply using a class. I'm just curious about using ids in this manner.


Prove that $[2x]+[2y] \geq [x]+[y]+[x+y]$ whenever $x$ and $y$ are real numbers.  The $[]$ symbol is the greatest integer or floor function.  I have proved this fact by cases, but I stumbled upon what I believe to be another way to prove the above inequality, and I was wondering if my sequence of statements are legitimate.  I make use of two lemmas that I have proved  Lemma 1.   If $x$ is a real number and m is an integer, then $[x+m] = [x]+m$.  Lemma 2.   $\displaystyle [x]+\left[x+\frac{1}{2} \right] = [2x]$.  My proof begins with an "obvious" statement   $$x+y \leq x+y+1$$  I then take the floor of the inequality to get  $$[x+y] \leq [x+y]+1$$             (1)  which is true in virtue of lemma 1.   Furthermore, if I add the following statements   $$[x+1/2] \leq x + 1/2$$ $$[y+1/2] \leq y + 1/2$$  I procure  $$\left[x+\frac{1}{2} \right]+\left[y+\frac{1}{2}\right] \leq x+y+1$$  which by definition of the floor function renders the equation  $$[x+y]+1 = \left[x+\frac{1}{2} \right]+\left[y+\frac{1}{2} \right]$$        (2)  Substituting (2) for (1), I have   $$[x+y] \leq \left[x+\frac{1}{2} \right]+\left[y+\frac{1}{2} \right]$$  I then add $[x]$ and $[y]$ to the above inequality to produce  $$[x]+[y]+[x+y] \leq [x]+\left[x+\frac{1}{2} \right]+[y]+\left[y+\frac{1}{2} \right]$$  And in virtue of Lemma 2, the right hand side of the inequality becomes  $$[x]+[y]+[x+y] \leq [2x]+[2y].$$  I personally don't see anything wrong, except maybe for the implication made to establish (2).   Solving these kinds of problems is solely for personal gratification, so I will greatly appreciate feedback.  Thanx.


Should conference papers be counted as publications?

Is there a consensus as to whether or not conference papers are counted as publications?  I know that if something is a journal paper then that thing is tacitly understood as a publication, but is the converse true?


I was looking at the  but I can't find the specific value  of the maximum allowed length of a single metadata value.


I have recently installed ubuntu 14.04 in virtual box. Now I want to install g++ 4.7 in it. I am trying this command in terminal but its not working.  sudo apt-get install g++-4.7  Reading package list... Done Building dependency tree Reading state information... Done  E: Unable to locate package g++-4.7 E: Couldn't find any package by regex 'g++-4.7'   But I find gcc was there with Ubuntu 14.04 installation itself.  How could I install g++ in ubuntu 14.04 and any version of g++ abouve 4.7.2 is fine with me.


i'be looked some same topics but havn't find what i'm looking for I should use flag enum flag atribute and check if my data is in one of the collections of this enum For example, enum:  [Flags] private enum MyEnum { Apple, Orange, Tomato, Potato Melon, Watermelon,  Fruit = Apple | Orange, Vegetable = Tomato | Potato, Berry = Melon | Watermelon, }   In the method i should check a input data. How can i do it?   private void Checking(string data){ if(MyEnum.Fruit contains data) MessageBox.Show("Fruit"); if(MyEnum.Vegetable contains data) MessageBox.Show("Vegetables"); if(MyEnum.Berry contains data) MessageBox.Show("Berry"); }   What should be instead of "contains data"?  UPDATE  private void ZZZ(){ Cheching("Apple"); }


A person always complaining like "he is said about you, like that" to other person.  Complaining about you to others and speaking good infront of you like double game.  Scenario:  Guy  "a" saying to b," c said bad about you" and going to c and telling b telling bad about you  2 Going to manager and complaining that guy is said about you in lunch  What is the right word. Thanks


I tried to look for this particular question, but not found so far. I would like to deploy Exchange 2019 standard on premise for ~120 user max (120 mailboxes). Question [1] regarding licensing: 1.I need to have Windows Server 2019 STD license - clear 2.I need to have Exchange 2019 Standard Server license - clear 3.Do I need to still by additional User CAL STD License for accessing exchange ? Question [2] regarding license type: What is the correct way to apply for license discount if I'm dealing with Medical State corporation ? I could not find clear explanation on MS page. Thank you very much


555 timer in astable mode: How can I achieve longer low output than high?

I'm attempting to make a simplistic solenoid driver circuit using a standard astable 555 timer configuration with a TIP122 NPN transistor. The problem with the current circuit is that the output is typically high and goes low only for short durations. I'd like to invert this but I'm not sure how.    Ideally I would like a high output every 1 second that lasts only for 100ms.  Do I just need to change RC values or utilize the 555 differently?  (The schematic shows a 556, which is what I am currently using. The lamp-looking squiggle is the solenoid and I have added a 1N4001 diode across it in reverse bias.)


In my calculus class, whenever we try to find a limit of a sequence as it approaches infinity and it turns out to be like: $1^{\infty}$. We have to end up using L'Hopital's rule. I don't understand why it has to be L'Hopitaled, can't you just take the limit as the sequence approach $99999$ and the answer would be $1^{99999} = 1$ and you are done?  Why do we have to L'Hopital then?


What means a number of links > 1 for directories?

Both programs stat and ls -l tell about the number of (hard) links to file(s).   Going under the assumption that one usually cannot create hardlinks for directories in Linux it confuses me to see outputs like this  $ ls / -l | grep etc drwxr-xr-x 163 root     root       12288 Oct 11 17:32 etc  $ stat /etc | grep Links Device: fc00h/64512d    Inode: 655361      Links: 163   Are there indeed 163 links to etc? I am confused and I would like to know what the number of links means with respect to directories?  I have tested that creating symbolic links does not have an influence to the number (which seems logic as the system would have hell of a job to keep track of all symbolic links)  Also I have tested that for regular files the number really reflects the hardlinks.


Overwrite standard lightning web component css by class name

I'm trying to set max-height property to slds-scrollable_y class inside lighting-datatable web component via css with:  .slds-crollable_y{     max-height: 10rem !important; }   But it's not working. Is it even possible to overwrite standard lwc css as it was in aura?


Prove $\exists r,s\in\Bbb{Z}$ such that $ar+ns=1\iff$ there exists an integer $b\ne 0$ such that $ab\equiv 1 \pmod n$

For this problem $a,b,n\in\Bbb{Z},n\ge 1$  Prove that there exist integers $r,s$ such that $ar+ns=1$ if and only if there exists a non-zero integer $b$ such that $ab\equiv 1 \pmod n$  So far this is my proof: $(\impliedby)$ Assume $\exists$ a non-zero integer b such that $ab\equiv 1\pmod n$  (Want to show there exists integers $r,s$ such that $ar+ns = 1$).  By assumption, $n|ab-1\implies ab-1=ns$, where $s$ is an integer. I am not sure what to do next I see that I can get the $1$ on the right hand side but how do I bring in $r$ in the equation. Also because it is a biconditional proof I know I need to show the other way as well but I am stuck.


col=3  row=3  matrix=[[0]*col]*row   count =0  for i in range(row):      for j in range(col):         matrix[i][j]=count         count+=1    print(matrix)     Output:[[6, 7, 8], [6, 7, 8], [6, 7, 8]]


Recently I bought an LG External DVD Writer that is TV compatible. But after a couple of times it stopped working on my Sony LED TV. It would start spinning, but stop after two seconds. This would go on and on.  I assumed that it wasn't receiving enough power from the TV USB port (the DVD writer was rated to 1.6A). So I made a simple USB Y-connector where I took two male USB plugs and one female. Connected the red and black of the female to one of the male USB and the green and yellow alone to the second male USB plug.   I connected the data Male USB to my PC and plugged in the power male USB to a USB power adapter rated to 2.1A. Finally I plugged in a USB thumb drive to the female USB plug to test it out.   But there doesn't seem to be any activity.  Is there something wrong with the wiring itself or simply because there is an improper connection made.


Let n ∈ $\mathbb{N}$ be a natural number, an ordered set of positive integers $(λ_{1},...,λ_{k})$ such that $λ_{1}\,+ \, ... \, + \, λ_{k} = n$ is called a composition for n ∈ $\mathbb{N}$. These integers are not necessarily distinct. Show that the number of possible compositions for n ∈ $\mathbb{N}$ is $2^{n−1}$.  Example: the number $n = 4$ has the following 8 compositions $(4),(3, 1),(2, 2),(2, 1, 1),(1, 3),(1, 2, 1),(1, 1, 2),(1, 1, 1, 1)$.


How can I connect to wi-fi with this old laptop?

I recently got an old Dell Latitude-D610 laptop that was running Windows XP, I think, so I completely deleted XP and put Ubuntu on. Before I put Ubuntu on, the wi-fi was working just fine, but now it isn't. In the settings under 'additional drivers' it says "no proprietary drivers are in use on this system" or something like that, and I think that's the problem. I've looked around on this forum and on other places about what to do, and several things said to input the following command:  $ lspci -vvnn | grep 14e4   So I did, and it returns this:  02:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5751 Gigabit   Ethernet PCI Express [14e4:1677] (rev 01) 03:03.0 Network controller [0280]: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller [14e4:4320] (rev 03)   I successfully connected to the Internet by sharing my PC's connection through an Ethernet cable, but I've tried many things suggested in these forums and none of them are working. So please, PLEASE do not mark this question as a duplicate, as I've tried almost everything in questions that are indeed very similar to this one, but nothing's working.   Also, I'm not that great at Ubuntu, so if you tell me to do something, please say exactly where it is or how to do it.   Thanks in advance :D


Two abstracts on same page with 'report'

I'm struggling to make my German and English abstract appear on the same page in my report document. Currently they appear on two separate pages, no matter how big the abstracts get. Can anybody help me out? :)  The solution provided in  does not work, probably because I use a report instead of an article:  Command \abstract already defined. {\par\bigskip}   This solution  doesn't work because I need the titlepage environment.  EDIT (SOLUTION): Changing \newenvironment{abstract} to \renewenvironment{abstract} as suggested by Marijn did the job! Many thanks :) Also thank you for the suggestion on loading german as the last option to babel - I did that as well :)  \documentclass[11pt,a4paper]{report}   % packages I use \usepackage[german, english]{babel}  \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage[hyphens]{url} \input{../setup/hyphenations} \usepackage{amssymb} \usepackage{emptypage} \usepackage{mathpazo} \usepackage[scaled=.95]{helvet} \usepackage{courier} \usepackage[paper=a4paper,width=14.2cm,left=36mm,height=22cm]{geometry} \usepackage{setspace} \linespread{1.15} \setlength{\parskip}{0.5em} \setlength{\parindent}{0em}  \begin{document}  \begin{abstract}  German Abstract \end{abstract}  \selectlanguage{english} \begin{abstract}  English Abstract \end{abstract} \selectlanguage{german}  % some chapters / table of contents ... \end{document}


Why is Kanata Age called a traitor in Kuusen Madoushi?

The first episode of Kūsen Madōshi Kōhosei no Kyōkan shows Kanata risking his life for his friends. However, when they show him next, they call him a traitor.  The wiki is very unhelpful in this regard.  Why they call him a traitor?


C# How do I click a button by hitting Enter whilst textbox has focus?

I'm working with a WinForm app in C#, after I type something in a textbox I want to hit the Enter key but the textbox still has focus (flashing cursor is still in textbox), how can I achieve this?


Where do accents and dialects come from?

Why do people in different areas speak differently? Where do accents come from, how do they change and/or survive over time and why do we have them?   Reading recommendations on this topic would be welcome.


I have modal window, this modal window has events: $(document).on('click', '#TaskOutcomesTab .has-attachments-image', function(){  After close popup, I want to clear this handler. I've found success in solution, but I want to make it more general         $(document).off("click", "#task-details .has-attachments-image");         $(document).off("click", "#task-details .no-attachments-image");         $(document).off("click", "#TaskOutcomesTab .has-attachments-image");         $(document).off("click", "#TaskOutcomesTab .no-attachments-image");  I wanna something like that: $(document).off("click")  or $(document).off("click", ".has-attachments-image")


Setting controller variables not reliable from apex:commandButton

I'm trying to set a variable inside my controller via an actionFunction, which is called by some Javascript, which is initially called by either by an actionPanel (with styleClass='btn') or a commandButton.  If the caller is the actionPanel then the variable updates reliably. However with the commandButton I can see the updated value flash briefly before reverting to its previous value. Maybe one out of every six clicks of the button actually causes the new value to stick. Sometimes it can take a dozen or more tries, regardless of click frequency.  Can someone please explain what's going on here?  PAGE  <apex:page controller="MyController">     <apex:form >         <apex:outputPanel id="panel">             <apex:outputText value="MyString = {!MyString}"/>             <apex:actionFunction name="SetString" rerender="panel">                 <apex:param name="param1" value="" assignTo="{!MyString}"/>             </apex:actionFunction>             <script>                 function JSetString() {                     SetString('{!MyString}' + '.');                 }             </script>             <apex:outputPanel onclick="JSetString()" styleClass="btn">                 Grow {!MyString} (works)             </apex:outputPanel>             <apex:commandButton onclick="JSetString()" value="Grow {!MyString} (unreliable)" rerender="panel"/>         </apex:outputPanel>     </apex:form> </apex:page>   CONTROLLER  global class MyController {      public MyController() { MyString = 'hello'; }      public String MyString {get;set;} }


Editor or notes application with Markdown support?

Are there any editors or notes applications out there that support Markdown?   I am often having to make notes or documents where markdown formatting would be ideal, and have gotten into the habit of using markdown on a daily basis.


How to install Microsoft Office on Ubuntu 18.04

I have been trying to install Office on Ubuntu 18.04 but none of the previous methods work.   specifically does not work.  Here are the steps to the problem:    New ubuntu 18.04 install on Thinkpad X1 carbon - fully updated and working  sudo apt-get install playonlinux winbind -y  In PlayonLinux I start a new Office 2010 install.  The software installs wine and then hangs on creating the virtual drive - "Please wait while the virtual drive is being created..."    I would be grateful if someone could help with this.


If gravity is a pseudoforce in general relativity, then why is a graviton necessary?

As far as I’m aware, gravity in general relativity arises from the curvature of spacetime and is equivalent to an accelerated reference frame. Objects accelerating in a gravitational field are in fact inertial and are moving through geodesics in spacetime.  So it could be said then that it is not really a force, but a pseudoforce much like the Coriolis effect. If so, why is it necessary to quantise gravity with a gauge boson, the graviton? And why is it necessary to unify it with the other forces?


What is the right projection for area calculation in Kenya?

I want to calculate the area of counties (1st admin level) in Kenya in ArcGIS. What is the right projection for that? I know I should use an equal area projection, but when I use them (I tried six different) it varies heavily to the county areas given in wikipedia. I could also use UTM37, but by definition it's not an equal area projection.


How to typset an "aligned" glossary (list of acronyms) with automatic widest-entry calculation (using glossaries-extra)?

I am currently using the package glossaries-extra with the IEEEtran class (in 2-column). I need to typeset a list of acronyms. So far, I have managed to get the basics working. However, the list of acronyms are not currently aligned, i.e. the glossary entries are not in-flush, which makes the document slightly jarring to the eyes.    Here's the MWE that I have so far  \RequirePackage[l2tabu, orthodox]{nag} \RequirePackage[debrief]{silence} \documentclass[nofonttune]{IEEEtran} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{enumitem} \usepackage{float}       \usepackage{microtype}  %%%%%%% glossaries --------------------------------------------------------------- \usepackage[nomain, acronym, nonumberlist, nogroupskip]{glossaries-extra}  \setabbreviationstyle{long-short} \renewcommand*{\glstextformat}[1]{\textcolor{black}{#1}} % link colouring to match normal text, ie black \newacronym{adc}{ADC}{Analog to Digital Converter} \newacronym{armax}{ARMAX}{Autoregressive Moving Average Model with Exogenous Inputs} \newacronym{laser}{LASER}{Light Amplification by Stimulated Emission of Radiation} \newacronym{gigo}{GIGO}{Garbage In Garbage Out}  \setglossarypreamble[acronym]{\small}  \makeglossaries %%% end of glossaries --------------------------------------------------------------  \begin{document} \title{Some bombastic title}  \maketitle  \begin{abstract} Hello world.  \end{abstract}  \section{Introduction} Intro  \glsaddall{} \printglossaries \end{document}    which produces the following output in the PDF obtained by running pdflatex     How can I get LaTeX to automatically align the acronyms list by using the width pf the widest entry in the list? Also For overly long acronym expansion, I'd the text to wrap properly within the description column without encroaching into the left hand entry column. PS: I am aware of a solution using  bib2gls in conjunction with glossaries-extra. However,  I cannot switch to this system for various technical reasons (my co-authors do not have nor want to run Java etc.).


Prove that $\sqrt{7}+\sqrt{3}$ is irrational

Is there a method by which we can prove that $$\sqrt{3}+\sqrt{7}$$ is irrational. It's obviously an irrational number, but I want to prove that mathematically.


Say you have an unfair 3-sided die. Side 1 will be rolled with probability $p_1$. Side 2 will be rolled with probability $p_2$. Side 3 will be rolled with probability $p_3$. Find a formula for the probability that the 8th 3 will be rolled on the 10th roll.  My theory on this is to use a binomial distribution, but I am pretty lost. Could anyone with more experience in probability help me out with this? I was just trying to work through a book I had and I want to figure this out. Edit: Using Robert's advice this is the direction I'm going: $9\choose 7$$(p_3)^7$$(1-p_3)^2*p_3$ Any advice?


Integral $ \int_{-\infty}^{\infty} e^{ \frac{-u^2}{2}} du$

Could you explain what rules are used to compute this integral? $ \int_{-\infty}^{\infty} e^{ \frac{-u^2}{2}} du = \sqrt{2\pi}$


I am new to the review part of Stack Overflow and I am trying to understand what is the meaning of votes remaining in the Review | Close Vote.  For example: Today I was at my 39 vote and it said that there was still 21 votes remaining.        However, after my 40 vote:        So, apparently I have started with 60 votes but I can use only 40?


I have been confused about displaying the address of a dynamic integer. When I output ptr and &ptr I receive two different addresses, however I am unsure about which address is correctly pointing to the value of the pointer.  int main() {  //Setting pointer to null. int *ptr = NULL;  ptr = new int;  *ptr = 10;  //Displaying value the pointer is pointing to, and the address. cout << "Value pointing to : " << *ptr << endl; cout << "Address : " << ptr << endl;


Interested in him learning French - with accusative 'him'

Good morning everyone!  Is it correct to say " I' m interested in him learning French in the future"?


How can I hide or encrypt JavaScript code?

Is there any way to hide or encrypt JavaScript code to prevent people from viewing, copying, and/or modifying proprietary programs?


find a, b and c such that the matrix is singular

I'm given matrix N by N  $$\begin{pmatrix}a & b & 0 & 0 & 0 & ... & 0 \\\ c & a & b & 0 & 0 & ... & 0 \\\ 0 & c & a & b & 0 &... & 0 \\\ ... & ... \\\ 0 & 0 & 0 & ... & c & a & b \\\ 0 & 0 & 0 & 0 & ... & c & a \end{pmatrix}$$  I need to find such $a, b$ and $c$ so that the matrix is singular    What I tried: Singularity means determinant is zero. Let determinant of the matrix be equal to $D_n$ where $n$ is the size of the matrix, in this case I derived the relation, by definition of determinants:  $D_n = a D_{n-1} - bc D_{n-2}$ - a homogenous difference equation of second order. I solved it under the conditions that $D_0 = a$ and $D_1 = a^2 - bc$. Unfortunately the answer for closed form of $D_n$ turned out to be rather complicated which lead me to believe that my approach is probably faulty. Is there a possible different approach maybe? Thank you


Is the conjugation map always an isomorphism?

Given a group $G$ with $a\in G$ fixed, define $\phi: G \to G$ by $\phi(x) = axa^{-1},  x \in G$, I am wondering when $\phi$ is an isomorphism. I think that it is always an isomorphism because it is one to one, and the order of the domain ($|G|$) and the order of the range are equal. Am I wrong in thinking this?


How to install so runs alongside windows 8

How do i install Ubuntu so that when I turn on my computer, the DOS screen shows up and I can choose between Windows 8 and Ubuntu? -Dell Latitude E6400


A couple of weeks ago a sliding app section appeared on my home-screen. I have no idea how it got there, and no clue on how to disable/remove it. I tried all I could on the homescreen, to no luck.  Using Galaxy S3, Android 4.1.2, everything standard (so no custom launcher).    Any ideas on how to remove it?


I want to be able get an image or bufferedImage of my current screen in my java program. Is this possible? Thanks in advance!


My understanding for a long time was that basically never to use ==, since it doesn't respect type and can end up causing undesired results.  I just read this post about the general comparison   but wasn't sure if everyone has the same opinion as me.   Here is the scenario which I encountered:  Original code  $state = (intval($state) === TIMESHEET_STATE_UNLOCKED) ? 'unlock' : 'lock';   We had found that this line was invalid, since our constant TIMESHEET_STATE_UNLOCKED was a boolean and $state was the string '0' or '1'. We could fix this in one of two ways:  $state = (intval($state) === intval(TIMESHEET_STATE_UNLOCKED)) ? 'unlock' : 'lock';   OR  $state = ($state == intval(TIMESHEET_STATE_UNLOCKED)) ? 'unlock' : 'lock';   My first inclination was to former but I'm not so sure anymore.


The YouTube video is a good example how the gravity of this merging binary black holes bend light around themselves.


Listing packages in Yum that depend on another installed package

I am trying to install a 3rd-party RPM package on RHEL5 which depends on version 3.4 of sqlite. According to Yum I already have 3.3.6 installed.  Is there a way to list the installed packages that depend on sqlite 3.3.6?


How do we know the brain flips images projected on the retina back around?

Why do we turn images upside down again rather than dealing with them directly, still vertically rotated after passing through our lens?   I don't see how that would cause any problems, and how we'd ever be able to figure out if we are presented with flipped images after getting used to interacting based on visual input, whether flipped or not.   What am I missing?


What induces electric field that drives current through whole circuit

We know changing magnetic flux induces electric field which makes current to flow .here in the below picture the flux is changing through only circular coil bout not through the rectangular part.so what induces electric field in rectangular part for current to complete the circuit ..Note that the electric field is required inside awire to make the current.]


Why are activation functions needed in neural networks? I know that it is to capture "non-linearities", but I have never been able to find a proper down-to-earth explanation. In particular, I am curious about the ReLU function as it is quite effective, but seems like such a simple function. How does that capture non-linearities?


Trying to prove that the sum of odd-index consecutive Fibonacci numbers is the next even-index Fibonacci number. I have a gap in my proof that I cannot figure out. I know that induction would be easier and I have already done it that way, I am looking to use alpha and beta. $$\sum_{i=1}^n F_{2i-1} = F_{2n}$$  $$\begin{align*} \sum_{i=1}^n F_{2i-1}&=\sum_{i=1}^1  \frac{1}{\sqrt{5}}(\alpha^{2i-1}-\beta^{2i-1})\\ &=\frac{1}{\sqrt{5}}\left(\sum_{i=1}^1\alpha^{2i-1}-\sum_{i=1}^1\beta^{2i-1}\right)\\ &\;\;\vdots\\ &=\frac{1}{\sqrt{5}}[(\alpha^n-\beta^n)(\alpha^n+\beta^n)]\\ &=\frac{1}{\sqrt{5}}(\alpha^{2n}-\beta^{2n})\\ &=F_{2n} \end{align*}$$


How much time does each stage of paper in Elsevier Editorial System (EES) take?

We have submitted a paper to an  and now I want to know how much time each stage in article lifecycle take?  There is an  in Elsevier site which describes different status of a paper from submission to publication:   Submitted to Journal Editor Invited (Conditional - this step may not occurs) With Editor Under Review Required Reviews Complete Decision in Process Completed – Accept   It also noted that:     Please Note: Most journals aim to communicate decisions to authors within four months of the start of the review process. There are a number of factors that may influence the actual time taken, most notably the availability and responsiveness of the article's referees. In consequence, peer review times do vary per journal. During the peer review process your article will show a status of ‘Under Review’.   But our paper status is Technical Check In Progress. this status is not mentioned in Elsevier site! I'm confused about this statuses. and now after 40 days the status is still in that stage. I want an estimation about time of this steps to see if I should be concern or not.


Do werewolves in Harry Potter only transform under moonlight?

Researching another question, I came across a quote I was looking for that seems to show werewolves only transform in the moonlight:  A cloud shifted. There were suddenly dim shadows on the ground. Their party was bathed in moonlight. Snape collided with Lupin, Pettigrew, and Ron, who had stopped abruptly. Black froze. He flung out one arm to make Harry and Hermione stop. Harry could see Lupin's silhouette. He had gone rigid. Then his limbs began to shake. "Oh, my --" Hermione gasped. "He didn't take his potion tonight! He's not safe!"  I had always figured that when he was in the Shrieking Shack he was shaded from the moon, so it didn't affect him. But then I thought about his school days - where was he when he transformed? The Shrieking Shack!  And if it does take moonlight, why couldn't he just hang out in the dungeons or somewhere else in Hogwarts? Anyone see a way to reconcile these?


Frequency selective operational amplifier circuit

I have also question about this question?  Q1.What factors mean that the potentiometer wiper position relating to k=o.5 is not necessarily equal to the mid point when measured outside the circuit?  Q2. Set the input frequency to ,firstly 25kHz and secondly 200Hz and observe the variation in output amplitude at these frequencies as you vary the position of the potentiometer. Discusssion the action of the circuit at different frequencies in relation to the frequency-dependent gain profile seen in your plots.


Finding all substrings in a string c# (Regex, Char Array?)

I need to identify substrings found in a string such as:  "CityABCProcess Test" or "cityABCProcess Test"  to yield : [ "City/city", "ABC", "Process", "Test" ]   The first string in the substring can be lowercase or uppercase Any substring with recurring uppercase letters will be a substring until a lowercase letter or space is found "ABCProcess -> ABC, ABC Process -> ABC" If there is an uppercase letter followed by a lowercase letter the substring will be  everything until the next uppercase letter.   Can this be handled by regex? Or should I convert my strings to a character array and manually check these cases using some indexing logic. Would a lambda solution work here? What is the best way to go about this?


Interpreting negative coordinates and origin in 2D correspondence analysis plot

Why are there negative values in the range of the plot?   How is the center of the plot (i.e., the $0.0$ point) found?   How did the black-brown points end up in the third quadrant of the plot?   Why are red, hazel, & brown positive on the y-axis and negative on the x-axis?   I just really need to learn how to interpret this kind of simple diagram before going further.  This picture was taken from another question on Cross Validated.


Confused about $x \notin x$ example in Axiom of Specification

In Halmos's Naive Set Thoery, I'm having a lot of problems in the Axiom of Specification. Halmos takes an example where a set $B$ is obtained from a set $A$ using the following specification:  $$B = \{x \in A : x \notin x \}$$  He then proceeds to prove that $B \notin A$.   While I'm still struggling with the proof, I have a more fundamental doubt here. Just a few lines ago he had argued that $A \notin A$ is an impossible set (which seems true enough), but doesn't the same reasoning apply to $x \notin x$? How can an element ever contain itself? It seems to me that because such a specification is impossible, it is absurd to derive any proof from it.  Please shed some light!


Not getting email alerts on answers on Stack Overflow

Not getting email alerts on answers on my questions on stackoverflow.com   Used to get it earlier (>1 month back), but not getting alerts in recent times Email field in profile is filled  In prefs, "I'd like email notifications of activity on questions I've asked" is ticked.   What is missing?  Is it possible that signing up on another Stack Exchange community (say, Server Fault), on which by default, "I'd like email notifications of activity on questions I've asked" is unchecked affects same preference on stackoverflow.com? If so, it is a bug.


pipes - Inserting pipe to middle of string

How would I make a pipe insert characters into the middle of a string? Here's my example (running Raspian):  hostname -I | sudo python ~/testsite/manage.py runserver {the ip from the first command}:80  Is this possible? Also, please note that I would not like to use a static IP.


Homeomorphisms between infinite-dimensional Banach spaces and their spheres

As I know Cz. Bessaga has proved that an infinite-dimensional Banach space is homeomorphic to its unit sphere. Unfortunately I do not have his book but I want to know is this theorem true without dependence from that the space is separable or not, and it is real or complex.  That is, is it true that:   a real separable infinite-dimensional Banach space is homeomorphic to its sphere; a complex separable infinite-dimensional Banach space is homeomorphic to its sphere; a real non-separable infinite-dimensional Banach space is homeomorphic to its sphere; a complex non-separable infinite-dimensional Banach space is homeomorphic to its sphere?


Find the number of non-zero squares in the field $Zp$

Find the number of non-zero elements in the field $Z_p$, where $p$ is an odd prime number, which are squares, i.e. of the form $m^2$; $m \in Z_p$; $m \neq 0$.  please help how can i solve this problem? the number of nonzero element is $p-1$ here


Question on geometrical proof of Geometric Series

The following image is from .    Please explain why it is said that:     "$ON$ is the limit of the sum $1+x+\dots$."   Thank you.  Edit: I guess what through me off was the word "limit"!


I have referred to some questions posted earlier about this same topic, namely  and  for fitting a table into a page. The code is taken from a guide I found online. \documentclass{article}  \usepackage{booktabs} \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}  \begin{document}  \begin{table*}\centering \ra{1.4}     \begin{tabular}{@{}rrrrcrrrcrrr@{}}\toprule & \multicolumn{3}{c}{$w = 8$} & \phantom{abc}& \multicolumn{3}{c}{$w = 16$} & \phantom{abc} & \multicolumn{3}{c}{$w = 32$}\\ \cmidrule{2-4} \cmidrule{6-8} \cmidrule{10-12} & $t=0$ & $t=1$ & $t=2$ && $t=0$ & $t=1$ & $t=2$ && $t=0$ & $t=1$ & $t=2$\\ \midrule $dir=1$\\ $c$ & 0.0790 & 0.1692 & 0.2945 && 0.3670 & 0.7187 & 3.1815 && -1.0032 & -1.7104 & -21.7969\\ $c$ & -0.8651& 50.0476& 5.9384&& -9.0714& 297.0923& 46.2143&& 4.3590& 34.5809& 76.9167\\ $c$ & 124.2756& -50.9612& -14.2721&& 128.2265& -630.5455& -381.0930&& -121.0518& -137.1210& -220.2500\\ $dir=0$\\ $c$ & 0.0357& 1.2473& 0.2119&& 0.3593& -0.2755& 2.1764&& -1.2998& -3.8202& -1.2784\\ $c$ & -17.9048& -37.1111& 8.8591&& -30.7381& -9.5952& -3.0000&& -11.1631& -5.7108& -15.6728\\ $c$ & 105.5518& 232.1160& -94.7351&& 100.2497& 141.2778& -259.7326&& 52.5745& 10.1098& -140.2130\\ \bottomrule     \end{tabular} \caption{Caption} \end{table*}  \end{document}    (ignore the red circle) I tried applying the solutions proposed in the above links to the current example:  p{width} as in \begin{tabular}{@{}rrrrcrrrcrrr@{}p{0.8\textwidth}} tabularx environment as in \begin{tabularx}{@{}rrrrcrrrcrrrX@{}} tabular* environment as in \begin{tabular*}{0.8\textwidth}{@{}rrrrcrrrcrrrX@{}}  Edit I am using a simple article class with no packages other than booktabs. But they did not work? Any thoughts ?


Visual Studio Editor does not underline errors anymore

My Visual Studio (2008) Editor has stopped to underline Errors (this nifty wavy red lines). I can't really tell when, but it can be related to the installation of .Net Framework 3.5 SP 1 or the MVC Beta (which I guess is unlikely). Furthermore have I installed and uninstalled both CodeRush and Resharper for evaluation purposes (decided not to keep either one of them).  Does anyone know the problem and how to restore this functionality again?


create a desktop shortcut icon for studio.sh

I recently have downloaded android studio to develop android. I run program at terminal typing ./studio.sh My question is : Is there any way to start it as a GUI icon at desktop without use terminal.


What is wrong with this query? (Unknown error parsing query)

When I run the following query in query editor I get this error.  Error     Unknown error parsing query   Query  SELECT Id, OwnerId,Account.OwnerId FROM Contact where OwnerId = Account.OwnerId limit 100   Does anybody know what the problem is?


Where can I find non-emoji icons for experiences and emotions?

To help people make sense of the world, we need to make information crystal clear. Well-placed icons can reinforce meaning and draw the eye quickly to the relevant section on a page. I need to communicate experiences and emotions. Here are some examples:  Emotions   Need Curiosity Desire to change the world Gratitude Motivation Personal satisfaction   Experiences   Public recognition/accolade Interviewing someone Being under-resourced Helping people Drawing Taking a photograph Empathizing/listening   These are difficult concepts to illustrate, and emojis have done the job remarkably well. However, for my business audience, this not the direction I want to go. Ideally, I'd like to find a beautiful library of flat, similar-style icons that are all free. Realistically, though... Let's just say I'm open to whatever the community has to offer.


I have tried for 2 days to pay for ESTA application Message says “ we are unable to process your payment, please try again later” Does anyone know if there is a problem


MySQL - Number assignment according name ordering

My original table STUDENTS     id |    Name     |    Class    |  Order Number |        32  |    Xavier   | 10A         | 0             |    10  |    Mary     | 10B         | 0             |    35  |    Mandy    | 10B         | 0             |     4  |    Ruby     | 10A         | 0             |    12  |    Ben      | 10A         | 0             |    27  |    Ben      | 10B         | 0             |   And a I need the table to be transformed this way: STUDENTS     id |    Name     |    Class    |  Order Number |        12  |    Ben      | 10A         | 1             |       4  |    Ruby     | 10A         | 2             |    32  |    Xavier   | 10A         | 3             |    27  |    Ben      | 10B         | 1             |     35  |    Mandy    | 10B         | 2             |    10  |    Mary     | 10B         | 3             |  How can i do that? Thanks for any help.


It is a question in one problem book:     Prove $\ln\frac{p}{q}\leq \frac{p-q}{\sqrt{pq}}$ for $0<q\leq p$.   Actually I already solved it: Define $F(x)=\frac{x-q}{\sqrt{xq}}-\ln x+\ln q$, then $F'(x)\geq0$ when $x\geq q$.  However,the problem book gives a hint to use Schwarz inequality $$\left(\int_a^b f(x)g(x)dx\right)^2\leq  \int_a^b f^{2}(x)dx\cdot\int_a^bg^2(x)dx$$ I don't know how to use it.


I recently overhauled a website for a client. Their preference was to switch from a www url to a non-www url as part of the redesign.  Once we launched the site, it took a major plummet in its position on SERPs. Now, I know this could be for several reasons outside of the projected issue I presented. But has anyone else ever made a similar switch and saw their website take a decline on SERPs?  Thanks in advance for your comments.


More descriptive "User was removed" explanation

Currently, when rep is changed due to the removal of another user account (to undo the rep gain/loss that happened when they up-/down-voted/accepted/were downvoted by you), the associated message is simply "User was removed". I am not the only one who found that message rather cryptic (I had to go search meta when I saw it, and I found my answer in a duplicate, so that makes me at least the 3rd person to not understand it).  I think it's a good idea to add a link to  or some more descriptive text to that.  Edit: e.g.     Another user was removed; reputation changes linked to the user's activity were reverted.   (I can see how it's hard to fully explain the event succinctly, that's why a "what is this?" link to meta or an FAQ question/answer might be better.)


Is $f(x,y)=(xy)^{2/3}$ differentiable at $(0,0)$?

I looked at the graph of $f(x,y)=(xy)^{2/3}$ at the origin, and no matter how far I zoom in it has four corners along $x=\pm y$, so it doesn't look like it is differentiable as $z=0$ doesn't look like a tangent plane.  I also found that its partial derivatives are not continuous at $(0,0)$, e.g.  $$ \lim_{(ky^2,y) \to (0,0)} \frac{\partial f}{\partial x} = \lim_{(ky^2,y) \to (0,0)} \frac{2}{3}x^{-\frac{1}{3}}y^{\frac{2}{3}} = \frac{2}{3}k^{-\frac{1}{3}} $$ (although $\frac{\partial f}{\partial x}(0,0) = \frac{\partial f}{\partial y}(0,0) = 0$)  I also tried to prove/disprove its differentiability by definition, and for it to be differentiable I need $$ \lim_{(x,y) \to (0,0)} \frac{f(x,y)-0}{\sqrt{x^2+y^2}} =0 $$ but then I got stuck. Am I even on the right track?  [UPDATE] I need to do the same thing for $f(x,y)=(xy)^{\frac{1}{3}}$... I think the answer is that $(xy)^{2/3}$ is differentiable but $(xy)^{1/3}$ is not, according to my professor but I'm not sure


not sure how to word this so i will use an example.   Lets say i disenchant a weapon that dose 5 points of stamina damage. i will be able to add that effect to other weapons but the effect in my enchantment table will say "5 points of stamina damage"   dose this restrict my potential for the enchantment at all?   Like if i disenchanted a weapon that dose 20 points of stamina damage instead will my enchantments then be more powerful? or is the power of the effect based purely on your skill and spent perks in the skill?


Issue with parameters passed into Task.Run() by closure

I've read  Follow the ways suggested in some answers, I'll have the following issue.  var tasks = new List<Task>();  for (int i = 0; i < 10; i++)     tasks.Add(Task.Run(() => Console.WriteLine(i))); Task.WaitAll(tasks.ToArray());   Normally I would expected it passes the values of i from 0 to 9 to the lambda in the Task.Run() each time. Turned out the actual values passed in really depend, but most likely it just creates all the 10 tasks and then runs them, so what prints out is just all 10s like: 10, 10, 10, 10, 10, 10, 10, 10, 10, 10. Or sometimes it's: 3, 3, 3, 10, 10, 10, 10, 10, 10, 10.  So how can I solve this nicely? Or in this situation, have to use Task.Factory.StartNew()?


What is the proof for the factor formula?

This is known as the factor formula. It is used for the addition of sin functions. I don't understand how the two are equal though. How would you get to the right side of the equation using the left?  $$\sin(s) + \sin(t) = 2 \sin\left(\frac{s+t}{2}\right) \cos \left(\frac{s-t}{2}\right)$$


Getting derived class name statically in python

How can i implement the static method get_class_name() to get the expected results.  I need to get the correct class name without instantiating. (I know this can be done with an instance). Python version is 2.6.  class base_class():     @staticmethod     def get_class_name():         return <??>  class sub_classA(base_class):     pass  class sub_classB(base_class):     pass  print sub_classA.get_class_name() # should print 'sub_classA' print sub_classB.get_class_name() # should print 'sub_classB' print base_class.get_class_name() # should print 'base_class'


Java - eleven random numbers between 0-9

I'm trying to create an ID number for Map , so basically I have Customer class , and Map which will contain all the customers with String name , Double balance and int idNumber , the problem is that idNumber must be a collection of random numbers between 0-9 : example : 01019074902 . How can I do this ?


Why "package natbib warning: there where undefined citations. and result is "?"

\documentclass{article}  %\usepackage{filecontents} \begin{filecontents*}{references.bib} @misc {dg,   author = {{Detroit Gazette}},   note   = {1817--1830. Microfilm edition, Detroit Gazette Collection,              c.~123, XYZ University Library, University Town, State}, } \end{filecontents*}  \usepackage[authoryear,round]{natbib} \bibliographystyle{plainnat} % choose a bibliography style that suits your needs  \begin{document} \dots{} as the Ohio Canal fund \citep[Dec~11 1827,p.~2, c.~5]{dg}\dots \bibliography{references} \end{document}   the result is:     . . . as the Ohio Canal fund (?, Dec 11 1827,p. 2, c. 5). . .


Could a Warlock with Ghostly Gaze and Sacred Flame attack through a wall?

The Eldritch Invocation Ghostly Gaze allows the Warlock to see through solid objects out to 30' for as long as she concentrates (up to 1 minute).   For our scenario, our Warlock's nemesis has managed to evade the adventurers the warlock travels with by slipping into a panic room. The panic room is behind a 5' thick stone wall, and is 10' x 10', making the entire room within the 30' range of Ghostly Gaze while the Warlock is adjacent to the outer wall (or anywhere within 15' of it).  Weapon attacks are not possible as they cannot penetrate the wall, and many spells are also blocked by the wall as they involve a tangible effect traveling from the Warlock to the target (rays and such).  According to  question about targeting with line of sight but no line of effect, no spells should work. However, it seems certain that Sacred Flame would work as it specifically ignores cover. Is this correct?   Do the circumstances of the Ghostly Gaze spell allow any other spells to work (like Toll the Dead, that does not specify an effect traveling from the caster to the target, but simply "pointing to a target you can see within range")? I'm guessing that the answer is no, since the intent seems to be that there is always a requirement for an unobstructed path to the target unless stated otherwise (such as in Sacred Flame).  So, is Sacred Flame valid to attack the target? Are there any other cantrips that might work? Spells?


comparing strings in java using == vs .equals

So I understand that the == checks for equality in the reference number (the address of objects in memory). And the .equals() checks for the content of the objects.  String s = "test"; String s2 = "test";   I'm creating two different string objects but yet, I get the following:  s == s2;  //true, I dont know why, aren't s and s2 two different objects with              different internal values s.equals(s2); //true, which I understand


Following from this question: :  Is there any evidence that human bodies have systemic self-destruction built into their developmental program? I'm not talking about the cell death response, which I know is an important part of growth, development and cancer prevention.  I've read some things about telomere-shortening but don't know if this is a cause or an effect.


What is the library to be installed for `jasper.h` header file?

I am trying to build Opencv on Ubuntu 18.04.   When I run make I get the error:  grfmt_jpeg2000.cpp:59:10: fatal error: jasper/jasper.h: No such file or directory  #include <jasper/jasper.h>           ^~~~~~~~~~~~~~~~~ compilation terminated.   I had already jasper installed and installed libjasperreports-java. However the file jasper.h cannot be found in my system. Is there any library I can install with apt install to get that file?


How do I use a charge density to calculate an electric field (e.g. $\nabla \cdot\vec E = \frac{\rho}{\epsilon_0}$)?

Simple, possibly stupid question, but here it is.   So I know $$\nabla \cdot\vec E = \frac{\rho}{\epsilon_0},$$ but how do I use a given charge density to calculate an electric field?   I guess the root of my question is about the mathematical procedure of "undoing" the div operator.


What is the correct way to show tiered possession?

When there are multiple places where possession is shown, how are the words structured?  A few examples:   Greg's son's laptop is on fire. Mary's friends' boat is sinking. Thomas's neighbor's cat ate a mouse. Apple's Stock App's stats are useful. Microsoft's Xbox 360's games are fun.   Are these the correct ways to express possession?


Animation Cycles rendering remains incredible slow

I am a beginner currently working on my first real project. For this project I am required have a cubistic tunnel environment with light on the end. Everything went great until I wanted to make an animation-render [cycles] to with some camera movement to show off the environment as a test. When the rendering started I was shocked to see that each frame took about 4 minutes to render out. As there are 350 frames for this little test I reckoned was doing something wrong so I searched for ways to improve the rendering but to not much result. I am getting really desperate at this point so I would value your input greatly. Computer: Macbook Pro - M1 - 16GB RAM I tried with the GPU and CPU both with optimized tile and adaptive sampling at rather low sample settings.


Disproving: If $(\Gamma\vdash(\phi\,\lor\psi))$, either $(\Gamma\vdash\phi)$ or $(\Gamma\vdash\psi)$ is true

In Chiswell's Mathematical Logic, there is the following problem is posed using the language of propositions (LP):     In some systems of logic (mostly constructive systems where 'true' is taken to mean 'provable') there is a rule      if $(\Gamma\vdash(\phi\,\lor\psi))$ is a correct sequent then at least   one of $(\Gamma\vdash\phi)$ and $(\Gamma\vdash\psi)$ is also correct.      By giving a counterexample to a particular instance, show that this is   unacceptable as a rule for LP. [Start by giving counterexamples for   both the sequents $(\vdash p_0)$ and $(\vdash(\neg p_0))$.]   In my , it was answered that one can let $\Gamma = \{p_0\,\lor\,(\neg p_0)\}$.  From there, one can deduce neither $(\Gamma\vdash p_0)$ nor $(\Gamma\vdash (\neg p_0))$.  But this does not proceed by the counterexample route that the author suggests.  Namely, he seems to imply that we should (1) take an interpretation of propositional variables $p_0,\,p_1,\,\ldots$ (setting each one equal to T or F), and (2) write $\phi$ and $\psi$ as functions of these propositional variables, and (3) pick sentences for $\Gamma$ which are all T, all with the conditions that (A) $(\phi\,\lor\psi)$ is evaluated as T, yet (B) both $\phi$ and $\psi$ are evaluated as F.  This, of course, seems impossible.  What, then, am I missing?  It seems that taking a concrete interpretation of the propositional symbols makes the constructivist's rule irrefutable.  (Note: this is supposed to be a very simple problem set, and I am an elementary logician).


I'm trying to change the background color of the chapter headings. I'd like the full top part of the page, including top and right margins to turn gray until the titlerule.  Currently they look like this:  \documentclass[10pt,twoside,openright]{book} \usepackage{titlesec} \titleformat{\chapter}[display]{\LARGE\sffamily\bfseries\raggedright}   {\leftskip2cm {\Large\textmd{\chaptertitlename~\thechapter}}} {0cm}{\leftskip2cm}[\vspace{4mm} {\color{dgray}\titlerule[.6mm]} \enlargethispage{-\parskip}]   The \enlargethispage is used to make some extra space for the title number, which appears at the bottom of the page only at the first page of the chapter. My attempts with using the framed environment or colorbox have so far not been successful.


In unanswered questions across the StackExchange network, there is an ability to share the question via numerous social media outlets. The banner that says this is missing a few things. Here is a picture:  Obviously, it is missing about 3 ways to share the question. At least we can email. I do remember it being there in full some time ago. I just now noticed it on ,  and . I was going to post this in History but decided to check other sites to see if they have the issue too. When I found out they did, I came here to report it.


Why is ".concat(String)" so much faster than "+"?

Some code I made compares the time it takes to concatenate strings with "string" + "string":  for(int i = 0; i < 100000000L; i++) {     String str2 = str + str; }   to "string".concat("string"):  for(int i = 0; i < 100000000L; i++) {     String str2 = str.concat(str); }   Where str == "string".  The output I get is consistently similar to this, although the average difference is generally closer to 61 nanoseconds:     String str2 = str + str: 118.57349468 nanoseconds      String str2 = str.concat(str): 52.36809985 nanoseconds      .concat is faster than + by 66.20539483 nanoseconds   This shows that even with the loop and assignment to a new string, .concat is faster than + by a factor of more than two. When I use an even longer string (str == "this is a really really very long string that is very long"), it is faster by about a factor of three. This is especially strange, because if .concat is faster, shouldn't they make + compile to .concat?  My main question is: Why is .concat faster?  Full code, in case you want to run it and experiment with it:  public class TimeCompare {     public static void main(String[] args)     {         final long times = 100000000L;          String str = "String";          long start1 = System.nanoTime();          for(int i = 0; i < times; i++)         {             String str2 = str + str;         }          long end1 = System.nanoTime();         long time1 = end1 - start1;          System.out.println((double)(time1) / times);         System.out.println();          long start2 = System.nanoTime();          for(int i = 0; i < times; i++)         {             String str2 = str.concat(str);         }          long end2 = System.nanoTime();         long time2 = end2 - start2;          System.out.println((double)(time2) / times);         System.out.println();          System.out.println(".concat is faster than \"+\" by " + ((double)(time1 - time2) / times) + " nanoseconds");     } }


Examples of patterns that eventually fail

Often, when I try to describe mathematics to the layman, I find myself struggling to convince them of the importance and consequence of "proof". I receive responses like: "surely if Collatz is true up to $20×2^{58}$, then it must always be true?"; and "the sequence of number of edges on a complete graph starts $0,1,3,6,10$, so the next term must be 15 etc."  Granted, this second statement is less logically unsound than the first since it's not difficult to see the reason why the sequence must continue as such; nevertheless, the statement was made on a premise that boils down to "interesting patterns must always continue".  I try to counter this logic by creating a ridiculous argument like "the numbers $1,2,3,4,5$ are less than $100$, so surely all numbers are", but this usually fails to be convincing.  So, are there any examples of non-trivial patterns that appear to be true for a large number of small cases, but then fail for some larger case? A good answer to this question should:   be one which could be explained to the layman without having to subject them to a 24 lecture course of background material, and have as a minimal counterexample a case which cannot (feasibly) be checked without the use of a computer.   I believe conditions 1. and 2. make my question specific enough to have in some sense a "right" (or at least a "not wrong") answer; but I'd be happy to clarify if this is not the case. I suppose I'm expecting an answer to come from number theory, but can see that areas like graph theory, combinatorics more generally and set theory could potentially offer suitable answers.


Width of the last reputation bar is small

The following is the screenshot of my reputation bar graph on Stack Overflow on 2014-01-05.    and on 2014-01-06 it is displayed as :    In the first screenshot reputation bar chart you can see that the last bar on the right side has less width than the bars before it, but in the second screenshot the last bar has same width as others. I just want to know if there's a specific reason why it appears like that or is it because of the display bug.  Just want to know. It would be nice to get any information regarding it.


How to display a dynamically allocated array in the Visual Studio debugger?

If you have a statically allocated array, the Visual Studio debugger can easily display all of the array elements.  However, if you have an array allocated dynamically and pointed to by a pointer, it will only display the first element of the array when you click the + to expand it.  Is there an easy way to tell the debugger, show me this data as an array of type Foo and size X?


How To get factor of two numbers in python?

def gcd(x, y):     (x, y) = (y, x) if x > y else (x, y)     for factor in range(x, 0, -1):         if x % factor == 0 and y % factor == 0:             return factor   What is the use of the code:  (x, y) = (y, x) if x > y else (x, y)   Isn’t it enough to get the factor through the rest of the code? I have tried to get rid of the first line and the code went wrong, but I still can’t understand it.


Use the oversamplling followed by the "decimation method" to increase the ADC resolution and not normal averaging

To increase the 12-bit resolution of ADC from 12 bit to 14 bit, this can be done through the 'oversampling and decimation method'. An  says that  The higher the number of samples averaged is, the more selective the low-pass filter will be, and the better the interpolation. The extra samples, m, achieved by oversampling the signal are added, just as in normal averaging, but the result are not divided by m as in normal averaging. Instead the result is right shifted by n, where n is the desired extra bit of resolution, to scale the answer correctly. Right shifting a binary number once is equal to dividing the binary number by a factor of 2. It is important to remember that normal averaging does not increase the resolution of the conversion. Decimation, or Interpolation, is the averaging method, which combined with oversampling, which increases the resolution  This reference clearly says that for the decimation method, the result is right shifted by the desired extra bit of resolution, and not divided by m as in the normal average.  So, the question is, why do we need to use the decimation method instead of the normal averaging after the oversampling to increase the ADC resolution?  It says above "Right shifting a binary number once is equal to dividing the binary number by a factor of 2", but what if we don't use a binary number? How do we use the decimation method in this case?


Show that Minkowski sum of a closed set and a compact set in $\mathbb{R}^n$ is closed.

Show that if $E$ is closed and $K$ is compact in $\mathbb{R}^n$, then $K+E$ is closed in $\mathbb{R}^n$, where $E+K=\{x+y\,\,\, x\in E \,\,\, , y \in K \}$ is Minkowski sum.  I tried to show it by saying that $K$ is closed and bounded but I do not know how proof goes?


Why is $(0, 0)$ not a minimum of $f(x, y) = (y-3x^2)(y-x^2)$?

There is an exercise in my lists about those functions: $$f(x, y) = (y-3x^2)(y-x^2) = 3 x^4-4 x^2 y+y^2$$  $$g(t) = f(vt) = f(at, bt); a, b \in \mathbf{R}$$  It asks me to prove that $t = 0$ is a local minimum of $g$ for all $a, b \in \mathbf{R}$  I did it easily: $$g(t) = 3 a^4 t^4-4 a^2 t^2 b t+b^2 t^2$$ $$g'(t) = 2 b^2 t-12 a^2 b t^2+12 a^4 t^3$$ $$g''(t) = 2 b^2-24 a^2 b t+36 a^4 t^2$$  It is a critical point: $$g'(0) = 0; \forall a, b$$  Its increasing for all a, b: $$g''(0) = 2b^2 > 0; \forall b \ne 0$$ and $$b = 0 \implies g(t) = 3 a^4 t^4$$ which has only one minimum, at $0$, and no maximum  However, it also asks me to prove that $(0, 0)$ is not a local minimum of $f$.  How can this be possible? I mean, if $(0, 0)$ is a minimum over every straight line that passes through it, then, in this point, $f$ should be increasing in all directions, no?


Cycles: Emission Shader does not bring enough light

Since two or three month I'm building a Titanic Model in Blender 2.74. I'm using Cycles Renderer and a GTX750TI for rendering.  On A-Promenade I built the Windows with a Diffuse-Material for Frame, a Glas-Material for (guess what!) the Glas and an Emission-Material on the Backside of the Window. This works pretty well and makes a nice light on this Deck.     But I also need some white light from Lamps so I built these Lamps in a Diffuse- (For Frame) and an Emission-Shader (For "illuminated" Glass) but I get no light from the Emission of the Lamp-Material.     When I turn off the Emission from Windows the whole Deck is black (except the Faces themselve). Even if I set the Strength from Lamp Emission to 100000 or more there would be no light.   I don't want to add a Point-Lamp for every Lamp I built so what else can I do?   Here's the simplified .blend File:


How do I get my Broadcom BCM4313 working correctly?

I've installed ubuntu on a Asus 1015 netbook. Everything worked out of the box except for the Wireless adapter, which i had to install with the Additional Drivers application.  It apparently installed fine and connects to our wireless network, but it only works at a "funny" speed range that goes from 367Bytes to a peak of 3Kb in its best moments. I know for sure the problem is neither the network nor the hardware. Network speeds are normal under windows on this laptop and in other computers with ubuntu aswell.  lspci says the card is a BCM4313 model, but the Addittional Drivers Manager says   these packecege contains Broadcom  802.11 Linux STA wireless driverfor use with Broadcom's BCM4311-, BCM4312-, BCM4321-, and BCM4322 based hardware   seems like it installed the wrong driver... Is there anything I can do? I'm not concerned about compiling the driver or stuff like that, but I'm not sure on where to start... any help or guidance will be very, very appreciated.


How to export SVG without lines, polylines and polygons?


How to I obtain the iso for Ubuntu for virtual box?

I'm having trouble finding the ISO for my Ubuntu download. Where should I go to obtain it?


Renewal of passport before visa stamping request

I was asked to submit my passport for visa stamping, but I had to renew my passport to add my spouses name. I have received the new passport now. Will there be any issues if I submit my new passport, instead of my old passport which was  listed when the application was submitted?


Is there anyway to see things I flagged in Area51?

In any SE site, from my account page, I can see things I flagged. But in Area51, I can't see such option in my account page. How can I see the history of my flags or what action were taken etc.?


Nautilus context menu for current directory when there's lots of files / "Open in Terminal"

I want to be able to "open in terminal" from any directory.  I have the nautilus-open-terminal package installed  I'm not sure what the problem is exactly: when there's only a couple of items in a directory I can just right-click in the empty space, see the context menu, and click "Open in Terminal".  But if there's enough items to create a scroll bar there's nowhere to right click for the current directory.  If I right click on the breadcrumbs I don't see "open in terminal". The same happens when I look at the "File" menu.  This means that if there's a scrollbar there's no way to open a terminal in the current directory - I need to go up a directory, find the directory I was just in, and right click on that to open a terminal.  If there's no way around this it would be just as good to have a key combo to open a terminal in the current directory (ctrl-alt-t opens a terminal in my home directory).  Thanks for your help!   edit: I'm using list view


If energy cannot be created, how did the universe come into existence?

The first law of thermodynamics states that energy cannot be created. If that's the case, how did the universe come into existence? I mean, doesn't that require energy to be created?   Excuse my ignorance if this question seems a bit idiotic. I haven't read much in thermodynamics, hence my lack of understanding.


Adobe Illustrator CS5: how to save background color to pdf

I changed the background colour of my pdf through:  Document Setup -> changing color under "transparency" (grid color) -> checking "Simulate Colored Paper"  This changes the background in Illustrator as it should. The problem is: if I save the file as a pdf, the background if my pdf is white again :-(  Any idea how to solve this problem? Many thanks in advance!


Has anyone in the Star Wars books ever wielded a black lightsaber, one that expels black light making the surroundings darker?  Is there a reason he/she uses one?


Is there a include equivalent for views in CakePHP?

I have a problem with getting the content of a view. The main idea is to load the HTML/PHP content of one view directly into another view.  The controller or model doesn't have to be loaded (but if they can it would be fine).  Actually the problem could be solved by a simple <?php include 'file' ?> in my view. But I would like the CakePHP equivalent in this case.  I don't like to use include because in this case its really slow when I load the site. The main reason why I want to do that, is the ctp would be too big if I just use one file ;)


I aways liked speed characters like Speed-o'-Sound Sonic from One punch man, that moves fast, attacks fast, etc ...  The question is, how can I create one of these on D&D?  Seems impossible to me, prove me wrong please.


I've just upgraded to El Capitan from Mountain Lion, and now an Other... icon appears right next to my usual user-account (admin account) on the login screen. When I click on it, I can log in, as another user, but I only have one.  My first thought was, that it could be the root user, which could have been enabled (I don't know how though). But from the Edit menu, in the Directory Utility, it only says "Enable root user", which should indicate that the root user is disabled. I then tried to enable it, and disable it again, but the Other... still appears on the login screen.  I've even tried to disable it from Terminal using this command, with no luck:  dsenableroot -d   After some search on Google, I found a thread with people having the same problem. A lot of them solved the problem by following this guide:   Enable the root user from Directory Utility and then log out. Log in as the root user account and change the password. Still on the root user account, disable and then enable root user from Directory Utility. Log out from the root user account, and log back it to the usual account. Now disable the root user once again.   I have done all this, but it still doesn't work, and I am almost going mad about it.  Anyone have any idea why this is happening, and how to fix it?


Can I connect two external monitors to my Macbook Pro's (non-retina, mid-2012) mini displayport ? I got one mini displayport to dvi converter and dvi-male to 2*dvi female splitter but this setup didn't work. My question is, can I use one display port to connect to two different monitors (both the monitors should be independent and not mirror)


Selecting all files in directory for merging in QGIS Processing?

I'm writing a generic script which involves writing shapefiles to a directory which are then merged together. After writing the files out to the Output folder, I'm trying to get the saga:mergeshapeslayers algorithm to merge all the files in the Output folder. I have used the Model Builder and although it is helpful to an extent, I find that it is used for specific purposes whereas I am attempting to make a script for generic purposes.   Code:  ##Test=name ##Select_folder=folder ##Result=output vector  import os import glob  path_1 = Select_folder path = path_1 os.chdir(path)  def function():      output = glob.glob(path_1 + './*.shp')     x = 0      while output[x]:         for fname in glob.glob("*.shp"):             outputs_1 = processing.runandload("qgis:fieldcalculator", output[x], 'Number', 1, 10, 0, True, 1 , "C:\Users\Me\Desktop\Output\\"  + fname)             multiple_0 = glob.glob("*.shp")             x = x + 1          if x + 1 > len(output):             processing.runalg("saga:mergeshapeslayers", output[0], ";".join(multiple_0) , Result)             break         else:             continue  if path_1:     function() else:    pass


Separating disjoint compact sets in Hausdorff space by using open sets

If $X$ is a Hausdorff Space and there are 2 disjoint compact sets $A,B\subset X$, we want to prove $\exists V,U \subset X, V \bigcap U=\emptyset $ S.T. $A\subset U, B\subset V$.($U,V$ are open sets)  My idea is as follows:  We choose arbitray 2 points, $x_1\in A, y_1\in B$ and by definition of compactness, we can find a neighborhood of $x_1$ and $y_1$, denoted as $U_1,V_1$ S.T. $U_1\bigcap U_2=\emptyset$. By the same algorithm, we will have $U=\{U_1, U_2,...\},V=\{V_1,V_2,...\}$. So, what I want to ask is that are $U,V$ still disjoint?  If it is then problem solved.


I didn't install anything myself, but only Ubuntu 12.04 LTS on an Acer 4741g.  I use Fn+left/right to change the brightness, but failed.  How can I control the brightness levels?


Is it best to remove sausage casing before cooking sausages or not? I don't see it mentioned in recipes, but have seen it done by people when cooking. Is this a matter of preference or is there any improvement to quality of flavor when casings are removed?


How can physics claim that information cannot be destroyed?

I watched a video featuring Leonard Susskind in which he took a small bowl of water and added three drops of food coloring. He swirled it around. At first you could tell where the drops must have entered the water, but after a while you could not tell anymore. He said that a cornerstone of physics is that information cannot ever be destroyed and that the information is always there -- we just cannot see it.  I see two issues here and I'm hoping for some clarification.   The particles can never be traced back to their origin. The uncertainty principle says that other particles have popped in and out of existence. These may have interfered with the particles in the water and cannot be traced back. So information is in fact lost. Let's take the same type of experiment but narrow the scope. Instead of this, I put four protons into some sort of container that can hold them. Not sure what that is or if it's more of a field, but for this thought experiment, let's just say I have a box with four particles in it. At first you know where they originated by watching them (if you could watch them). But after a long enough time, the particles will occupy the same position and spin state that they did at some point in the past. So the first time they occupied this state they trace back to your initial placement. The second time they hit this state they trace back to the first state. So you cannot actually trace them back to see where they originated in the container.   Perhaps the second thought experiment has some flaws in it but I'm hoping you can see what I'm getting at. That a duplicated state must mean that the originating positions and information is lost, and given enough time you'll always get a duplicated state.


How can I evaluate$$\int_{-\infty}^\infty \frac{\cos x}{\cosh x}\,\mathrm dx\text{ and }\int_0^\infty\frac{\sin x}{e^x-1}\,\mathrm dx.$$ Thanks in advance.


I have two questions for you guys. I really appreciate your help.  1.- Is there a way to rename an Availability Group?  2.- Is there a way to get the T-SQL statements in order to re create a Availability Group in case that I need to drop it and create it again?  If there's information that you want me to share, please let me know and I will provide it.


Interchange data between two row fields in the same row MySQL

I have this table:  CREATE TABLE `Factura` ( `IDFactura` BIGINT NOT NULL AUTO_INCREMENT, `TipoDevolucionActual` VARCHAR(10) NOT NULL,  `TipoDevolucionAnterior` VARCHAR(10) NOT NULL,  PRIMARY KEY (`IDFactura`) );   When trying to update a row in order to interchange TipoDevolucionActual value with TipoDevolucionAnterior value I get the same value in both fields.  I tried to do it like this:  update Factura SET  TipoDevolucionAnterior=TipoDevolucionActual, TipoDevolucionActual=TipoDevolucionAnterior WHERE IDFactura=1;   How can I solve this problem?


Undefined control sequence error \end{gather}

\documentclass{article} \usepackage{mathtools,amssymb}  \begin{document}  \begin{gather}     \begin{split}  (1-\underset{(0.034)}{0.060}{\textit{B}}^{12}-\underset{(0.032)}{0.123}{\textit{B}}^{2(12)}){y}_t &=(1-\underset{(0.016)}{0.878}\textit{B}^{12})(1-\underset{(0.012)}{0.969}\textit{B}){e}_t\\   \end{split}  \notag\\  Box-Ljung \quad test \quad for\quad residuals\quad {\chi}^2= 15.151 \quad df= 12 \quad p-value = 0.233 \notag\\  \CENTERLINE {(Standard\quad errors\quad in\quad parentheses)}\notag  \end{gather}   \end{document}


Run cmd.exe in Administrator mode without explorer.exe

I've recently had trouble with explorer.exe not working.  I found a possible solution , using .  The problem is that I cannot "right-click Command Prompt, and then click Run as administrator", since explorer.exe does not work for even a second without crashing.  I tried to use the  to open cmd as administrator, but I get an error 1327 because I have a blank password.    My question is, is there any other way to run cmd.exe with admin privileges?  If not, is there any way to run sfc.exe without admin privileges?  If not, does anyone have solution to my original problem of explorer.exe stopping and restarting ad nauseam?