Primordial galaxies and associated mass of blackholes

How could primordial galaxies or quasars at great redshifts like quasar ULAS J1120+0641 (detected as per when the universe was 700 mill years old) have blackholes at their centers with the mass of 2 billion suns considering that early star formation in the early universe post big bang started forming after 100 to 250 million years. This will imply that this quasar acreated the mass of two billion stars in the time span of 400 million years.    Are such accretion rates possible given distances and time scales?   Assuming that primordial stars where supermassive as suggested and black hole formation followed very fast. I guess a mass of 5 million stars should flow through the black hole every year. I have read that these proto-stars would have been 100,000 to one million times more massive than the sun. So I guess many blackhole mergers would have had to happen in that space of time to explain such large increase of mass.    If that would have occurred would not there be signs of this events in the early universe that may be detectable as black holes mergers seem to be very powerful energy sources.


Prove that $C\left(\bigcup_{\alpha\in I} A_\alpha\right)=\bigcap_{\alpha\in I}C\left(A_\alpha\right)$

I'm working through a book on fundamental topology, and I'm stuck at a proof in set theory. The book provides a proof for:   $$\text{Let }\left\{A_\alpha\right\}_{\alpha\in I}\text{ be an indexed family of subsets of a set }S\text{; then:}$$ $$C\left(\bigcup_{\alpha\in I}A_\alpha\right)=\bigcap_{\alpha\in I}C\left(A_\alpha\right)$$  where $I$ is an indexing set for $\alpha$, and $\alpha\in I$, and $C(S)$ denotes the complement set. They do this by proving first that, if $x\in C\left(\bigcup_{\alpha\in I}A_\alpha\right)$, then $C\left(\bigcup_{\alpha\in I}A_\alpha\right)\subset\bigcap_{\alpha\in I}C\left(A_\alpha\right)$. Then, the prove the converse; that if $x\in\bigcap_{\alpha\in I}C\left(A_\alpha\right)$, then $\bigcap_{\alpha\in I}C\left(A_\alpha\right)\subset C\left(\bigcup_{\alpha\in I}A_\alpha\right)$, so the two sides, being subsets of each other, must be equal.  That makes perfect sense, and is very clear and straightforward. However, what I don't understand is their second proof (under the same conditions):  $$C\left(\bigcap_{\alpha\in I}A_\alpha\right)=\bigcup_{\alpha\in I}C\left(A_\alpha\right)$$  While this statement intuitively makes sense to me, I can't seem to prove it mathematically. Here's what I've done so far:  Let $x\in C\left(\bigcap_{\alpha\in I}A_\alpha\right)$. We know that, conversely, $x\notin \bigcap_{\alpha\in I}A_\alpha$. This is where the proofs diverge, though; if it were the first formula, it would be possible to say that $x\notin \bigcup_{\alpha\in I}A_\alpha$, and as a result, that $x\notin \left\{A_\beta\right\}_{\beta\in I}$. However, I can no longer do that, and approaching it from the other direction gives the same result.  Let $x\in\bigcup_{\alpha\in I}C\left(A_\alpha\right)$. We know that $x\notin\bigcup_{\alpha\in\ I}A_\alpha$, but this still doesn't get me anywhere.   How should I approach this proof? Any hints or pointers for someone new to topology?


How do I disconnect my PC from a microsoft account?

My PC just downloaded the latest Windows update and I noticed a new weather icon on the taskbar.  Upon clicking it and checking the properties it looks like I have some kind of active account connected to Microsoft.  I don't know if this is new or it has been there all along but I'd like to get rid of it. I may've created an account on a MS website for work or something I don't recall, but I don't use it and don't want MS monitoring my computer.  Any suggestions for turning it off or removing it? Edition Windows 10 Pro Version 20H2 OS build    19042.1052 Experience  Windows Feature Experience Pack 120.2212.2020.0


After I animate one UV texture on plane with AnimAll add-on, I can't scale and rotate any object,in object mode.Only can scale and rotate if I select all in edit mod. Please help


After enabling hibernate grub menu appears on start-up with 30s timeout

My system is not dual boot just single OS UBUNTU 16.04. Prior to making the following changes, the Grub screen would not appear at start-up (OK).  After following these steps from  to enable hibernate in the system menu:   Open terminal and enter;   sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla  add the lines into the empty file;  [Re-enable hibernate by default in upower] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes  [Re-enable hibernate by default in logind] Identity=unix-user:* Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit ResultActive=yes  ^X then Y to save (a filename was suggested and I accepted without taking note).  Reboot for the changes to take effect.   hibernate now works and appears in the menu (OK) but whenever I reboot I now get a Grub menu at start up with a full 30 second timeout (NOK). I tried playing around with the Grub menu timeout settings but still get the full 30 sec timeout.  How do I stop the Grub menu from appearing and reduce my boot time to what it was before I made these changes.   Current Grub settings;   GRUB_DEFAULT="0" GRUB_HIDDEN_TIMEOUT="0" GRUB_HIDDEN_TIMEOUT_QUIET="true" GRUB_TIMEOUT="1" GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""


What is the fastest speed you can ride a bicycle on wet roads without getting wet?

Optimum speed without getting a line of muddy water splashing onto your back?   no mud guards 26 inch wheels surface water on the road   calculations to be based on my shirt and shorts remaining dry standard dimensions of an adult bike frame.  I am riding a bike and the water is being thrown upwards off the back tyre onto my back.   The question refers to the initial speed water drops should have when they leave the tyre to be able to reach my back when I am cycling during a rainy day  It does not refer to water splash when riding through a water on the road


How do I detect whether a Python variable is a function?

I have a variable, x, and I want to know whether it is pointing to a function or not.  I had hoped I could do something like:  >>> isinstance(x, function)   But that gives me:  Traceback (most recent call last):   File "<stdin>", line 1, in ? NameError: name 'function' is not defined   The reason I picked that is because  >>> type(x) <type 'function'>


Lately the Stack Exchange android app (v 1.0.58 on an android 4.4 phone and a 5.0 tablet) won't render some posts. Both questions and answers are affected. I can see votes and comments but the post content is an empty white box.   :


When I turn on my Ubuntu 14 I have always search my smb.  But I use every day, How can I hold smb in Personal folder?   See the pics below


"We certainly cannot have observers in the same reference frame disagree on whether clocks are synchronized or not"-is this true?

Suppose we have an Inertial frame S, all the clocks in this frame are synchronized. Now suppose, two seperate events occur at two different place A and B in that reference frame. Now, the events are said to be simultaneous if the clocks at the respective places registers the same time for each event(i.e two observers at the respective places read the same time of occurrence for each event). Now, suppose we have an observer at some different place C & the distance from A to C & that from B to C are not equal. Now my question is that: will the observer at C also claim about these two events to be simultaneous?  If "No" is the answer, then we have observers in one single inertial frame, disagreeing about the simultinity of two events. See, there is no relative velocity between the observers, all they are in a single inertial reference frame at different places(I'm strictly talking about a single inertial frame. No relative velocity between the observers, nothing!) How this can be possible that the observers in a single reference frame are not in agreement about the simultinity of two seperate events though all the clocks in this frame are synchronized from the beginning?


Placing listing and figure side by side in memoir

I am writing a document using the memoir class where I want to place listings (with the listings package) and figures side by side. My first approach was to save the listing in a box and use subbottom to place both elements side by side:  \documentclass[12pt,oneside,a4paper]{memoir}  \usepackage{graphicx} \usepackage{listings} \usepackage{color} \usepackage{calc} \usepackage{caption}  \newsubfloat{figure} \definecolor{lgrey}{RGB}{223,223,223,0} \lstset{     basicstyle=\footnotesize\ttfamily,     frame=lines,                                    % environment border     rulecolor=\color[cmyk]{0.43, 0.35, 0.35, 0.01}, % top rule color     xleftmargin=17pt,                               % left margin     framexleftmargin=17pt,                          % frame left margin     framextopmargin=2pt,                            % frame top margin     backgroundcolor=\color{lgrey},                  % background color     showstringspaces=false                          % show spaces in strings }  \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}     {\colorbox[cmyk]{0.43, 0.35, 0.35, 0.01}     {\parbox{\textwidth-6pt}{\hspace{15pt}#1#2#3}}} \captionsetup[lstlisting]{     format=listing,     labelfont=white,     textfont=white,     font={sf,bf,footnotesize}}   \begin{document}  % Example that does not work as intended % -------------------------------------- \newsavebox{\firstlisting} \begin{lrbox}{\firstlisting} \begin{lstlisting}[linewidth=0.45\textwidth,caption=Hello,language=python] echo("Hello World!") \end{lstlisting} \end{lrbox}  \begin{figure}[htbp]     \centering     \subbottom{         \usebox{\firstlisting}}     \subbottom{         \includegraphics[width=0.45\textwidth]{philosoraptor}         \label{fig:c}}     \caption{Example} \end{figure}  % How the listing environment normally looks like % ----------------------------------------------- \begin{lstlisting}[caption=Hello,language=python] echo("Hello World!") \end{lstlisting}  \end{document}   However, this messes up the placement, as I have formated my listings environment to look like this:   Here is how it looks in the document:     I also tried two minipages in a figure environment but this results in cryptic error messages.  Is there a best practice for placing different environments like listings and figures side by side in the memoir class?


is it necessary to delete the recovery partition?

I have Windows 7 on my HP laptop and I want to install Ubuntu.  I tried to shrink my boot and system partition, it does not allow me to shrink the partition more than 97 MB. Is it necessary to delete the recovery partition?   I want to know how to put this recovery on a CD or DVD to keep it and not to lose it.


How do I make a high poly model from a low poly model and a normal map?

Complete noobie to Blender here.  I was wondering if there was a way to add the bumps from a normal map into a model so I can 3D print it with all the indents and such.  I assume it's something to do with the Displacement modifier but I have absolutely no idea how to use it or any nodes or such.  If you need more info on what the normal maps look like and such I'll be happy to send them.


Fair coin tosses until until two consecutive heads or two consecutive tails appear

A fair coin is tossed repeatedly and independently until two consecutive heads or two consecutive tails appear. Find the PMF, the expected value, and the variance of the number of tosses.  Let X be a total number of tosses And it is a problem of geometric distribution.  1)The pmf is clear for me: $ pmf = (1/2)^{k-1}$  The problem is with expected value:  2)My solution: $E[X] = 1/p = 2$  Solution of the book: $E[X] = E[Y] + 1 = 3$  I can't understand the book's solution. How we came to this? I need some explanation. Thanks.


MLPRegressor with 'lbfgs' algorithm incredibly bad performance

I can't manage to train the MLPRegressor with 'lbfgs' algorithm to better R2 score than around -14. How comes? First I tried randomly guess the hidden layers shape, then I even tried to use Grid Search CV, but doesn't help much. How can I train it better? How can I know the model is trained to best accuracy? How comes that a simple linear regression would have at least 40% score R2 while the above has -14%? from sklearn.neural_network import MLPRegressor from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler, MinMaxScaler from sklearn.metrics import r2_score from sklearn.model_selection import GridSearchCV from sklearn.metrics import mean_squared_error import math import numpy as np from scipy.stats import uniform   X = [     [390973, 262345, 324807],     [188322, 120766, 174883],     [185967, 173290, 175605],     [179309, 117915, 169950],     [166298, 40042, 153851], ]  X_test = [     [164077, 73041, 147249],     [152734, 52099, 77967], ]  y = [     8080000,     1940000,     3300000,     1970000,     624000, ]  y_test = [     1580000,     118000, ]  scaler = StandardScaler() X_scaled = scaler.fit_transform(X) X_test_scaled = scaler.fit_transform(X_test)  # https://stackoverflow.com/questions/52032019/sklearn-mlp-classifier-hidden-layers-optimization-randomizedsearchcv class RandIntMatrix(object):     def __init__(self, low, high, shape=(1)):         self.low = low         self.high = high         self.shape = shape      def rvs(self, random_state=None):         np.random.seed(random_state)         return np.random.randint(self.low, self.high, self.shape)   parameters = {     'hidden_layer_sizes': RandIntMatrix(1, 50, (500, 2)).rvs().tolist(),     'solver': ['lbfgs'], }  grid = GridSearchCV(MLPRegressor(random_state=1, max_iter=500), parameters, cv=2) grid.fit(X_scaled, y) print(grid.score(X_test_scaled, y_test)) print(grid.best_params_)  R2 score and Best params output: (for shape 2) -14.423559240364366 {'hidden_layer_sizes': [11, 24], 'solver': 'lbfgs'}  R2 score and Best params output: (for shape 3) -14.024830648388866 {'hidden_layer_sizes': [7, 19, 49], 'solver': 'lbfgs'}


Is there any differences between "I suggest doing" and "I suggest you do?"

I know that both "I suggest doing this" and "I suggest you do this" are grammatically correct. But I wonder if they have same meaning or there are subtle difference between them.


I have only one name shown in my ID card. How do I write my name (surname) in research paper or article?

My name is SALMAN. No Middle and Last name. How do I write my name in research paper or article?


Email address changed while contact in Journey

I have scenario where contact added/injected to Journey Builder. Journey duration is one week and there is one email going every day.  Let say contact A injected to journey on Monday with email E1, on Wednesday contact A's Email changed to E2, Thursday onward which email will be used to send email until end of journey.   Salesforce ID is subscriber key.  Kind Regards


Django signals vs. overriding save method

I'm having trouble wrapping my head around this.  Right now I have some models that looks kind of like this:   def Review(models.Model)     ...fields...     overall_score = models.FloatField(blank=True)  def Score(models.Model)     review = models.ForeignKey(Review)     question = models.TextField()     grade = models.IntegerField()   A Review is has several "scores", the overall_score is the average of the scores.  When a review or a score is saved, I need to recalculate the overall_score average.  Right now I'm using a overridden save method.  Would there be any benefits to using Django's signal dispatcher?


How to navigate from one lightning component to another lightning component?

I have tried several ways to do this and have not reached enlightenment.  I have the same problem as outlined in this question   I was optimistic about using navigateToUrl but only .app have available urls, and .app cannot be seen in the salesforce1 mobile application. The components are not available via a direct url.  Here is what I have found:  This works in an app but not in mobile:  $A.get("e.myNamespace:navigateToView").setParams({"view": "bar"}).fire();  For this I cannot figure out what my recordId is for my lighning component. BTW, Also tried "componentId": "xxx" which I found in Dave Carroll's sublime manifest file:     $A.get("e.myNamespace:navigateToSObject").setParams({"recordId":"XXXXX2"}).fire();    The following also does not work:  $A.get("e.myNamespace:navigateToObjectHome").setParams({"scope":"myNamespace__expenseTracker__c"}).fire();  This works great and will take me to the homepage. I wish it worked for lightning components:  $A.get("e.force:navigateToURL").setParams({"url":"/_ui/core/chatter/ui/ChatterPage"}).fire();  Anybody familiar with a full lightning component example that demonstrations a navigation technique that works in salesforce mobile?


AC mains wire finder + live wire equivalent circuit

I'm talking about devices for tracing hidden AC mains wires in walls like this one:   Is it correct that it uses capacitive coupling and can be approximated by the following circuit?    SPICE tools require a common ground between the mains side and the device side (resistance in this case) but it reality the device is isolated from the mains, so I'm not sure if this is still a valid approximation because of this.


Avoid same answer rewriting after deletion

I've just made a test few minutes ago, the scenario is the following:  There was a question with 7-8 answers (all of them were correct because the question was very easy), someone downvoted all of the answers and leaves no comment (I suppose it was the question author because his question was downvoted). This situation has bothered me since I think it is not very professional and also I've loose 2 rep points for a whim. So I tried to delete my answer and repost it as-was. The trick worked: I've my 2 points back and the answer has now 0 votes.  I think that this trick should be avoided in some ways, obviously it can't be a simple text-check between the 2 answers because it will be easilly bypassed, I think that a good way can be that: if you repost an answer after an answer deletion, the rep points don't turn back.


Mid-point convexity does not imply convexity

A function $f: X \rightarrow \mathbb{R}$ is said to be mid-point convex if for all $x, y \in X$, we have  $$f(\frac{x + y}{2}) \leq \frac{f(x) + f(y)}{2}. $$ Can you please give an example of a function which is mid-point convex but not convex?


How many i remove duplicates from this Array?

First i will like to say that, i have looked into other post but failed trying to accomplish my needs. I have used array_unique($array) but the duplicates don't get discarded. This is a view of my array using var_dump:  {   [0]=>   string(12) "44.94.192.40" } array(1) {   [0]=>   string(12) "44.94.192.41" } array(1) {   [0]=>   string(9) "44.94.1.1" } array(1) {   [0]=>   string(9) "44.94.1.1" } array(1) {   [0]=>   string(13) "44.96.253.100" }   "44.94.1.1" is a duplicate which i hope to remove but i can't. Does this have to do with my array structure ?


Comparing the value of database field with string

I would like to hide the UserSecurity menu point from users who have employee value in the database field. My code is:     String employee = "employee";     String SQL_USERSECURITY = "SELECT UserSecurity FROM user WHERE (UserSecurity = ?);";     String userSecurity = null;     try {         Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/worker","admin","");         PreparedStatement stat = conn.prepareStatement(SQL_USERSECURITY);         stat.setString(1, userSecurity);          ResultSet rs = stat.executeQuery();         while ( rs.next() ) {             userSecurity = rs.getString("UserSecurity");         }         conn.close();     } catch (Exception e) {         System.err.println("Got an exception! ");         System.err.println(e.getMessage());     }          JMenuItem Company = new JMenuItem(Labels.LIST_COMPANIES);     if (userSecurity.equals(employee)) {         Company.setVisible(false);     } else {         Company.setVisible(true);     }  May I ask your kind support to find out what can be the reason for the error?


Duplicate flag lists "you have already raised this flag" after flagging as "Unclear what you're asking"

I recently flagged a post on SO as "Unclear what you're asking". Afterwards, for whatever reason, I clicked flag again and found this:    Is there any reason it says I've raised a duplicate flag too when I'm positive I have not? Is this a bug? The question, as of 2:56 PM UTC, 11 September, 2013, has only existed for 26 minutes and the flag doesn't exist in my flag history:    Note: There are several similar questions:       The first was never answered and the second is unrelated as it appears the person asking did, in fact, raise the flag they assumed they hadn't raised.


We are planning to retire one of our old fashion tools and currently evaluating Sharepoint 2010.  in our current tool, we have 3 different attachment sections two of which are visible to customer, and the other is used internally.  I could  add attachment column to a custom list. I suspect that it is not possible(I might well be wrong). if so, how can I achieve this? is that possible to filter visible attachment based on the logged user?  if it is possible to add another attachment section to the form, could you tell me how?  Regards


What happens to my horse if I ride another horse?

I'm currently the proud owner of Frost the horse. What I want to know is, what will happen to him if I ride another horse?  Obviously nothing will happen as long as I have him in sight, e.g. I'll be able to ride Frost to make him my horse again.  Scenarios  But what will happen if, before I get back on Frost, I fast travel somewhere? Will he return to where I originally stole him, will he disappear forever, or can I own two horses simultaneously?  Ownership?  If he goes back to where I originally stole him, will I have to steal him again, and therefore never be his true owner again?  Two Horses?  The reason I'm asking is because I want to get Shadowmere (the Dark Brotherhood horse) while keeping Frost. Is it possible to do this, or will riding Shadowmere make me lose Frost forever?


List all the questions from deleted accounts

When an account is deleted it has an ID like user123456. Is there a way to search for questions whose OP has deleted the account? In other words, I want to list all the questions from deleted accounts. How can I do that?


I just started to work with threads and quickly I came to the very common question of how many threads are too many? After doing some research I got even further confused.  task  I have 16 cores and a application generating 1000 objects, being despite from construction parameters consistent. Creating 1000 threads would usually create a huge overhead destroying the performance advantage from multithreading according to msdn documentation and  . Also I must stay within the 3.5 NET 32 bit limit ().  Question 1 Having such a unilateral task, is it possible to create more threads than cores on the computer? Is .NET  optimizing something in there? What is the maximum number of threads I should use?  Question 2 Is there a simple beautiful solution, other then queueing it with limit resources? Something like a semaphore where I create all the 1000 threads but immediately inactivating the threads in order to not allocate the default thread stack?


Can instants be played after I decide not to block?

My friend has a green  deck. When he declares a creature to attack and I allow it to go through unblocked, he suddenly plays all these Instants that 'pump' the creature up, and because of Infect, it's an instant loss most of the time. We solved that issue (without really understanding the full rules) that it wouldn't make sense to pump his creature up for an instant win without allowing me to block, although recently, my friend told me that 'Instants' can be played 'anytime' so once I allow a creature to deal me damage, technically, he's allowed to play all those Instants.  I'm really confused about it all, and would like to get an answer once and for all for this.   Also, once he has stacked all the pumps for his creature and attacks me (after I initially let it pass to hit my life because I did not expect the pumps) am I allowed to play ?


Powershell script for SharePoint 2010 Site collection Top Visitor report

Right now from Site Collection Analytics - Top Visitor report we are getting only 2000 users, there should be more than 2000 user. how we can get all the users who have accessed for last one year.  Can we do it by using sharepoint power shell command or script to get Top Visitor Report/ excel file for SharePoint 2010 site Usage Web Analytics Service.


Let $F$ a field with $\operatorname{char}F\mid q$, then $\displaystyle {q \choose m} = 0$, for all $m = 1, ..., q-1$.  Comments: I'm trying to decompose q into product of primes.


Does Two-Weapon fighting work if you aren't holding both weapons when you take the Attack action?

I have a question regarding two-weapon fighting (5e). My player group had a discussion about this, and answers on the internet seem to yield different interpretations. Suppose the first (light) weapon is already drawn. Can you throw your first weapon, then draw your second (light) weapon in your other hand, and using your bonus action attack with that weapon? If so, does this allow you to get the bonus damage from dueling on both attacks? Two-Weapon Fighting in the PHB reads:  When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative. If either weapon has the thrown property, you can throw the weapon, instead of making a melee attack with it.  Does this have to be interpreted as:  Hold a weapon in each hand -> attack with one weapon -> able to use bonus action to use the other weapon.  Or can it be interpreted as:  Hold weapon in one hand -> attack with it -> able to use bonus action if, at any point, you wield a different weapon in your other hand.  If the second interpretation is correct, do you get the bonus damage from the dueling fighting style on both attacks, if you draw your second weapon after you attacked with the first one?


Explain difference between internal energy and enthalpy

I read that $U=q+w$ and $H=u+PV$ so aren't $PV$ and $w$ same? If they are, can't we write $H=q+2w$? Also, $dU=$ change in internal energy wrt change in temperature keeping $V$ constant times $dT+$change in internal energy wrt change in volume keeping $T$ constant times $dV$ Here is the second term $=w$? And, $dH=$ change in enthalpy wrt change in temperature keeping $P$ constant times $dT+$ change in enthalpy wrt change in pressure keeping $T$ constant times $dP$. Here is the second term $=PV$?


Installing 64 bit Python on ArcGIS Desktop?

I am trying to have Python 64-bit with ArcGIS so that I can use my entire RAM when doing data analysis. Apparently ArcGIS 10.2.2 Desktop comes just with 'Python 32-bit'.   Should I install a fresh Python 64-bit and import arcpy from there?   Is that going to work?   I need to use arcpy and scipy libraries for my data analysis and I need to call both of these libraries in my Python code.   Is there a better way to run 'Python 64-bit' with ArcGIS?


Accidentally deleted all OneDrive files while cleaning up OneDrive and can’t recover them with Restore

I was cleaning up my computer to essentially start fresh, and at one point I was on OneDrive to clean that up as well. But when I went to load up a certain image to admire, that's when I realized it - I've just accidentally removed all my files on OneDrive, and Emptied the Recycle Bin after that! And I can't even recover them no matter what I've tried.  I've tried file recovery programs, only to be hit by surprise price tags, and I even tried restoring my OneDrive to yesterday's state, but it literally did nothing at all.  I've could've easily lost all my hard work, all because I didn't realize that OneDrive files on my PC would go with those on the actual OneDrive on the website itself.  I need to know how to restore these files again, in any way possible.  By the way, I've tried both sources, in File Explorer, and OneDrive on a browser itself. I have not used the OD app yet.


LaTeX font for 'old-fashioned' script characters

Browsing through a copy of Counterexamples in Analysis (Gelbaum  & Olmsted), I'm quite enjoying the typeface used for 'script' letters (see links to examples below); visually it's somewhere between what I'd now call calligraphic and fraktur, and semantically it's used where now we'd use mathcal, mathfrak or mathbb.  I was therefore procrastinatiously looking for a LaTeX-usable font to include these characters, but couldn't seem to find any. I'm certain they're not unique to this text or publisher, so figured my lack of success was probably more to do with searching with the wrong keywords. If anyone has any ideas I'd be grateful.


Are apple trees "loaded" or "laden" with fruit?

Laden    Loaded     Are fruit-trees laden or loaded with fruit?


What is the order of ringing the bells for the quest Buried Secrets?

I am in Gilded Vale in the Temple of Eothas. A door with a rather high lockpick check is hindering my way. In what order do have to sound the bells?


Android (Yuphoria) stuck in bootloop without recovery and ROM & files cannot be written

My Yuphoria 5010 got into bootloop after installing a custom ROM. My friend tried to fix it but deleted the recovery following a tutorial.   Now the device is stuck at the boot logo.  Is it possible to hard format the device to the default ROM anyhow?  Update: This is not a normal bootloop. The problem here is the ROM could not be rewritten. Any writing attempts are being failed. The device was infected with a malicious adware which couldn't be deleted and that's the reason I tried to format the device. Is there any way around if the writing modules fail?


What's the difference between "I'm American" and "I'm an American"?

Usually, the sentence, "I'm American", is used.  Is it OK if I say,"I'm an American." instead of  "I'm American"? If not, why? What's the difference?


Visa to Ireland with a European residence permit

Does a russian citizen holding european residence permit need a visa to go to Ireland?  I found that there are special conditions for family members of Union citizens, so would like to know if it applies to the described above situation.


Jquery validation on matching 'password' and 'admin' not working

I have tried to write a regular expression for passwords:  public class ApplicationUser : IdentityUser, ITimeStamps {     public const string PasswordRegularExpression = @"admin|password";     // public const string PasswordRegularExpression = @"/admin|password/i"; // Tried this too     // public const string PasswordRegularExpression = @"/(admin|password)/i"; // Tried this too   This is over and above the normal Microsoft identity stuff:  manager.PasswordValidator = new PasswordValidator {      RequiredLength = 6,      RequireNonLetterOrDigit = false,      RequireDigit = true,      RequireLowercase = false,      RequireUppercase = false, };   Here's my Register view model:  public class RegisterViewModel {     [Required]     [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]     [DataType(DataType.Password)]     [Display(Name = "Password")]     [RegularExpression( ApplicationUser.PasswordRegularExpression, ErrorMessage = "The {0} must contain atleast 1 number and must not contain the word 'admin' or 'password'" )]      public string Password { get; set; }      [DataType(DataType.Password)]     [Display(Name = "Confirm password")]     [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]     public string ConfirmPassword { get; set; } }   I am wanting to throw an error in jquery validation when someone uses password or admin inside their password. However, the jquery validation does not seem to be working as expected. What might I be missing?  The generated html from asp.net looks like this:  <input class="form-control input-validation-error" data-val="true" data-val-length="The Password must be at least 6 characters long." data-val-length-max="100" data-val-length-min="6" data-val-regex="The Password must contain atleast 1 number and must not contain the word 'admin' or 'password'" data-val-regex-pattern="admin|password" data-val-required="The Password field is required." id="Password" name="Password" placeholder="Enter a password" type="password">   Test cases:   I've added brackets, it still does not work as expected. I type in password and it actually does not fail! I then put 1 more character (doesn't matter what it is) and then it fails... and now I remove part of the word "password" so for example 'pasrd21234' and the error is still there!    Side notes:   I have tried using this to test it:  and the regex seems to work fine there? I have also tried using this to test it:  and it works fine?


"Friend of my father" vs "friend of my father's"

What is the difference between this two sentences -  1. An friend of my father 2. A friend of my father's


Probability on measuring bell state in x-basis with pauli operator sigma x

I am confused about how to calculate the probabilities of getting a certain result when measuring a Pauli observable on a Bell state. When you measure an observable the state is projected onto an eigenstate of the observable. For example, given $|\psi\rangle = (|{+-}\rangle + |{-+}\rangle)/\sqrt{2}$ as the state and $\sigma_x = \begin{pmatrix}0 & 1 \\ 1 & 0\end{pmatrix}$ as the observable, if the probability is $1/2$, how to calculate actually it? What is the state after measurement?


Is there a way to convert a DEM raster to a .las file using open source software and/or any tools that come along with a complete ESRI license?  I have been able to achieve this using the LAS Toolset shp2las tool from the UNC website, but this specific tool requires licensing. I have not be able to achieve this using the txt2las tool from the UNC website, though it does not require licensing.


Is there a way in javascript to detect if the unload event is caused via a refresh, the back button, or closing the browser?

I am currently looking at the "unload" event of a window to try to determine how the "unload" event was triggered, but am having little success. Is there a way to determine how the javascript event was triggered?   Page Refresh Back Button (or navigate away from the page) Closing the Browser   Essentially I need to execute some code only when the browser window is being closed, not refreshed or navigated away from.  Purpose: When a customer does an update of our software, the update will redirect their first Internet request to an offer page. There is a button for a "Do Not Bother" option, but some users will simply close their browser. Upon closing the browser, I need to duplicate the "Do Not Bother" functionality so the user no longer gets redirected to the offer page. Simply attaching to the "unload" event will not work due to the different ways of leaving a page.


Carry domestic currency while going abroad

I am planning to fly from India to Europe this weekend for a one week holiday. While departing from India, I'll have the Indian currency (INR) which I'll need to pay for things like taxi charges, some snacks at the airport. Now I'll need some small amount of INR during my return to India as well (again for small expenses like  taxi charges, snacks, etc)  My question is can I carry the INR (very small amount like 3000 INR..approx 30-40 Euros) while flying to Europe (as I'll need them on returning to India)


Constructor not working when using Integer arrays

So I'm trying to create a simple program that an object that has an Integer Array as it's member and a method toString() that prints out all the elements in the Array. The code look like this:  public final class IntegerArray {        private int a[];        IntegerArray(int a[])       {           for(int i=0; i<a.length; i++) this.a[i]=a[i];       }        public String toString()       {           String fin=new String();           fin+='[';           for(int i=0; i<a.length-1; i++)           {               fin+=a[i]+", ";           }           fin+=a[a.length-1];           fin+=']';           return fin;       } }  public class IntegerArrayTester {      public static void main(String[] args) {         // TODO Auto-generated method stub         Scanner scan=new Scanner(System.in);         Random random=new Random();          int[] a={1, 5, 3, 7};         IntegerArray A=new IntegerArray(a);         System.out.println(A.toString());      }  }   However when I run the program it gives me 2 errors. One in the constructor and another when I initialize an the object from the class:  Exception in thread "main" java.lang.NullPointerException      at main.IntegerArray.<init>(IntegerArray.java:9)      at main.IntegerArrayTester.main(IntegerArrayTester.java:14)   Can somebody please tell what's the problem and how can I fix it?  Thank you in advance!


Are there rules about using "that" to join two clauses?

He will understand that I was not joking.   He will understand I was not joking.  Which of the sentences is correct? Are there any specific rules about the use of "that" in the sentences I reported as example?


I have a laptop running 11.10 with 2 network interfaces, wired and wireless.  Wireless interface connects to the router with DHCP and connects to the internet. Wired interface is connected to a switch. I want the computers on the switch to get their IP addresses from the router not my laptop.     How would I go about setting this up? Bridging the interfaces?


Bullets not showing with Beamer and XeLaTeX

I have the following presentation that I compile with XeLaTeX: \documentclass[aspectratio=169, svgnames]{beamer}  \usetheme{Madrid}  \begin{document} \begin{frame}[c]     \frametitle{Learning Outcomes}     \begin{enum}         \item Mathematical in nature         \item Many abstract concepts $\rightarrow$ Requires abstract thinking $\rightarrow$ Formal logic         \item Programming requires remembering syntax and semantics of programming statements     \end{enum} \end{frame} \end{document}  When I compile it the bullets are missing. All I see is this:  Removing \usetheme{Madrid} works fine and pdflatex works without any issues as well. Any solutions?


Does grappling an enemy into an AOE also subject the grappler to the AOE?

Suppose the Fighter is successfully grappling an Orc. The Fighter then drags the Orc into the area of his Druid friend's Moonbeam so that, grid-wise, the Orc's space is fully inside the Moonbeam's AOE while the Fighter is right at its edge, with his space fully outside of the AOE. The Fighter is maintaining the grapple throughout this time, and he intends to just hold the Orc there and cook him under the Moonbeam.  In the specific scenario, is the Fighter subject to the effects of the Moonbeam spell?  I know that different DM's handle this differently (I'm personally on the "Not Affected Because He's Not Fully In The AOE" camp), so what I'd really like is as close to RAW an interpretation as I can get. Thanks. :)


LWC Folder Structure: Import AND render components from other lwc directories

Trying to reorganize folder structure as all components are currently under 1 lwc folder. Came across this post   It answers the first problem of overcrowding unrelated components in 1 folder. But is it possible to import lwc components from other lwc folders? I didn't see anything in the OP docs about this.  To be clear, I'm talking about entire components with html, css, js and xml - not just utility functions.   Thank you


Show that $|\operatorname{median}(X) - \operatorname{mean}(x)| \leq \sigma_X$

Let $m$ denote median and $\bar{x}$ denote mean and $\sigma$ denote the standard deviation, I want to show that $|m - \bar{x}| \leq \sigma$. Since the LHS and RHS are both positive, we can prove $(m - \bar{x})^2 \leq \sigma^2$ instead. Here is what I've attempted with my first approach: \begin{align} & |m - \bar{x}|^2 = |\bar{x} - m|^2 \\ = {} & \left|\sum_i (\frac{1}{n}x_i) - m\right|^2 \\ = {} & \left|\sum_i (\frac{1}{n}x_i) - \frac{n}{n}m\right|^2 \\ = {} & \left|\frac{1}{n}\sum_i x_i - m\right|^2 \\ = {} & \left(\frac{1}{n}\sum_i x_i - m\right)^2 \end{align} Also, $$ \sigma^2 = \frac{1}{n}\sum_i (x_i - \bar{x})^2 $$ I don't see an easy way to show that this quantity is $\geq$ than the previous quantity. Is this in the right direction? The standard deviation and mean are related, but it's not clear to me how the median relates to either one. I'm not sure if this is relevant, but I also know that the minimizers for the following are the mean and median, respectively $$ \bar{x} = \arg \min_y \sum_i (x_i - y)^2 \\ m = \arg \min_y \sum_i \left| x_i - y \right| \\ $$


I am working in wordpress. I want to set site name in two colors.  My html code is :  <h1 class="site_title"> Pal Enterprice </h1>   Here I want to set Pal color as red and Enterprice color as  blue. So what css have to write?


I am quite confused. I have just been refused a visit UK visa for not showing ties to my home country.  Please see attached. I just want to add that: - I have lived in the UK since January 2012, and I have exited and re-entered the UK several times while being a student. I got my bachelor's degree there and started my master.  However due to medical reasons I have stopped my master's and my Tier 4 visa has been curtailed.   I should have included my previous passport as it has the majority of my stamps in and out of the country (UK) with my first ever student visa before my resident permit was issued. I also submitted a return ticket from the UK to morocco on the date of end of my visit. The visa was curtailed I arrived in the UK this Thursday and submitted my application on Friday. I literally got back from the UK to apply for a visit visa to visit my fiancée for a while.   Thank you very much.


Problem with HTML code with embedded link of sending mail

I have a problem in clicking a link to send an email with body text where '&' character is there in the text. Below is code: <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <a href = "mailto:xxx.xxx@xx.xxx.com?subject=Approval&body=AdventureWorks L&amp;L Azure dataset">Click</a href>  </body> </html>  If you click on the link, it will open Outlook with proper subject and mail to option, but in Body of the mail it's printing only till '&' (AdventureWorks L ), Can anyone give me a solution where entire text will come on body of the mail along with '&' sign. ? I need "AdventureWorks L&L Azure dataset" in the body of the mail which will open while clicking on the link. Thanks in advance.


Adding path to PATH environment variable using bash script in /etc/environment

I need to add path to my executable application to PATH environment variable. Because I need to add path during .deb package installation, I should use  in debian package. After reading  and  I decided to use /etc/environment file to add my application path due to system wide user access. Here is my bash script:  #! /bin/bash  cd ~ echo 'PATH="$PATH:/path/to/my/bin"' >> /etc/environment   and here is /etc/environment content after executing postinst bash script:  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" PATH="$PATH:/path/to/my/bin"   Now when I log out and try log in,   Update 1:  I tested the approach for .profile in Home directory and it works fine! But I need to add the path for all users so I must use /etc/environment file.


How to access the Menu Mnemonics of an X11 Program within macOS

With the kind assistance of X11 Quartz background app I have an X11 app Dia diagramming tool running.    It is enticing to see those mnemonics apparently (?) available to use. I have a serious beef with macOS for not helping those of us who are keyboardists to have an option to work in that manner.   So, is it possible to access those mnemonics? I have tried various combinations of Option, Control, Control + Option, with/without Command plus the given letter.


Number of perfect matchings in a $K_{m,n}$ bipartite graph?

How would you find the number of perfect matchings of a $K_{m,n}$ bipartite graph?


I am trying to install f.lux through ppa ppa:nathan-renniewaldock/flux . I am getting the following error.  me@mysys:~$ sudo apt-get install fluxgui Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  fluxgui : Depends: python-appindicator (>= 0.0.19) but it is not installable            Depends: python-gconf (>= 2.28.0) but it is not installable E: Unable to correct problems, you have held broken packages.   I am able to finish sudo apt-get update and sudo apt-get dist-update successfully.Still flux installation is failing.


How can I contribute to Stack Overflow just by voting and never answering/posting questions?

Most of the time, I don't need to ask questions to find the answers I am looking for. Because I just find all the answers on Stack Overflow. It is a huge resource of good tips, tricks and solutions. And by only looking around and searching (= ), my reputation stays at 1 of course.  But I also want to show my active participation by things like:   pointing out the answers that helped me out. somehow say "good answer, buddy, you saved my day today".   So no blablabla, just vote up the good stuff.  But I cannot. Frustrating.


I want to send a pdf file via email, the file arrives but it damaged, any idea?      Dim buffer As Byte() = New Byte(6499) {}     Dim bytesRead As Integer = 0              bytesRead = file.FileByteStream.Read(buffer, 0, buffer.Length)     Dim ms As New MemoryStream(bytesRead)     ms.Seek(0, SeekOrigin.Begin)     mail.Attachments.Add(New Attachment(ms, "test.pdf", "application/pdf"))     mail.IsBodyHtml = False     mail.From = New System.Net.Mail.MailAddress("xxxxx@gmail.com")     mail.To.Add("yyyyyy@gmail.com")     mail.Subject = "test subject"     mail.Body = "test body"     mail.Priority = System.Net.Mail.MailPriority.Normal     Dim smtp As New System.Net.Mail.SmtpClient     smtp.Host = "smtp.gmail.com"     smtp.Credentials = New System.Net.NetworkCredential("mymail@gmail.com", "pass")     smtp.Port = 587     smtp.EnableSsl = True     smtp.Send(mail)


My bootable pendrive is 8GB but it only formats to 7.45. Why?

I'm new to Linux, currently using Kubuntu and trying to switch to Solus. So, I was trying to format the usb stick I used as a bootable pendrive to install Kubuntu, but I can't seem to recover my 8GBs. I've tried the KDE partition manager and GParted, but there is no direct mention of "Format" anywhere in both. I've mounted and unmounted the drive several times, tried to create a partition, GPT, MSDOS, ext4, FAT32, etc.  FYI, I created the bootable pendrive using Ubuntu's Startup Disk Creator. I don't understand how this works but I think there is a section of the drive that this program reserved that I can't access in any way. Or can I? If yes, how?


How to create correct tetrahedron (platonic shape) in blender 2.8?

Following instruction on this , I managed to turn on add-on, but I can't find it in add function. So, where should I look after it or how to even create tetrahedron on blender 2.8 (if its version related)?


dynamic MySQL table using php but javascript function only calling first row not others?

This is php mysql code:  <?php $user_apply_data=mysql_query("SELECT * FROM apply");  while ($user_apply_field = mysql_fetch_assoc($user_apply_data)) {  ?> <tr> <td><button class="btn btn-xs btn-success" id="apply" data-send="<?php echo $user_job_field['job_category']; ?>">Apply</button> </td> </tr>  <?php } ?>   This is script:  $("#apply").click(function() {             var check = $(this).data("send");     alert(check);             });   Output : first-row calling function rest are not


Python: How to import a modul, whose value is given by a string?

This is a very beginners question.   I have code with error message:  a = "sqlite3" b = pandas import a import b   How to change the code, but NOT use import sqlite3 or import pandas, to get the correct results? Thanks.


What is the difference between Generalized Linear Models(GLM), Fixed-effect models (FE), and Random-effect models (RE)?

I am new to statistics and I am looking for a general answer. Can someone explain (very simply) what is the relationship between Fixed-effect & Random-effect models with Generalized Linear Models?  Are Generalized Linear Models a type of fixed-effect model? I am having a hard time differentiating and understanding these three concepts.


Please provide a flag option clearly designed for gibberish, contentless posts

MERRRRRRRRRRRRRRRRRRR <3      doingdoingdoingdoingdoingdoingdoingdoingdoing.      9.... YEAH baby.      Shash. BOSH. :))   What this post would normally receive on its own is 8 "not an answer" flags, 6 "very low quality" flags and perhaps a couple "moderator attention" flags, when the community could very simply and easily have deleted the post on its own through half as many spam or offensive flags.  "But badp! We can't flag as spam because it's not promotional content! We can't flag as offensive because it's not abusive, hate speech or offensive!"  Please consider addressing this so that it's possible for the community to delete these posts from orbit on their own. Stack Overflow and pals may get away with it thanks to the amount of trusted users it enjoys, but that's really the exception here.  Gaming's average moderator response this month was over 5 hours. Clearly such posts shouldn't be warranted 5 hours' worth of lifetime. This crap needs to go, and I'd very much rather see the community throwing it away rather than just planting a sign on it saying "please remove it." (Especially since you don't actually have to get your hands dirty!)  Those posts are a red flag problem - posts that need to go, and go fast, and be inflicted upon as few people as possible. The solution needs to be a red flag, not a yellow flag where moderators have to apply policies and leave comments and otherwise exercise judgement.  Two possible ways to give a red flag solution to a red flag problem:   Explicitly incorporate clearly meaningless, contentless, garbled, garbage posts in the existing spam flag reason description, matching the definition of spam provided by wikipedia: "unsolecited, unwarranted mass posts." No one solecited or warranted gibberish on this site. Make the clearly meaningless, contentless, garbled, garbage posts its own "red" flag reason, stacking together with offensive and spam posts for all practical purposes.


Proving that $x_n\to L$ implies $|x_n|\to |L|$, and what about the converse?

Problem 3. Show that for a sequence $(x_n)$ the following are true:   (i) $\lim x_n=0$ if and only if $\lim |x_n|=0$.   (ii) $\lim x_n=L$ implies $\lim |x_n|=|L|$. Is the converse true? Prove or give a counterexample.    (i) is already done, easy.  I'm halfway done with (ii), I split it into three cases:  $L = 0$, $L > 0$ and $L < 0$.  For $L = 0$ I just refer to part (i).  For $L > 0$, we know that $|x_n - L| < \epsilon$   if lim $|x_n|$ = $|L|$, then we must have  $||x_n| -|L|| < \epsilon$  but by the reverse triangle equality, $||x_n| - |L|| < |x_n - L|$ so clearly $||x_n|-|L|| < \epsilon$, thus  lim $x_n = L$ $\implies$ lim $|x_n| = |L|$ for $L > 0$  for some reason I'm confused as to part three, $L<0$. I'm having trouble seeing the difference between $L>0$ and $L<0$, and i'm starting to think that splitting it up like that isn't necessary at all.


PCA when # of features larger than # of samples?

I'm using  that adopts PCA for domain adaptation. I have some questions regarding how it handles the situation when the # of features is larger than the # of samples. Here is the snippet of the relevant Matlab code.  The input to the function is a design matrix $X$, where the rows correspond to observed samples and columns to features.  [nSmp,nFt] = size(X);  % centering X (zero-meaning) mu = mean(X,1); X = bsxfun(@minus,X,mu);  % select the faster way to do PCA if nFt > nSmp     [V1, D1] = eig(X*X'/(nFt-1)); %%%%%%% Why?? %%%%%% else     [V1, D1] = eig(X'*X/(nFt-1)); %% standard doing %% end   % sort the eigenvalues and re-order the eigenvectors % in descending eigenvalues order D1 = diag(D1); [evs,I] = sort(D1,'descend'); V1 = V1(:,I);  % cumulative percentage of variance accounted D1 = cumsum(evs); D1 = D1/D1(end);  % W_prj is the pca coefficient if nFt > nSmp     W_prj = X'*V1; %%%%%% Why?? %%%%%%% else     W_prj = V1;    %% standard doing %% end  % normalize PCA coefficient so that for each column, the L2 norm is 1 W_prj = bsxfun(@rdivide,W_prj,sqrt(sum(W_prj.^2,1)));   % project X to PCA subspace Xnew = X*W_prj;   I do not understand the parts where I put a "why??" in comment.  I know that eigendecomposing $X^TX$ is the standard way of computing PCA coefficients, as is done in the else clause of the first if statement. The PCA coeffcients are eigenvectors that are reordered according to the eigenvalues.  But when the # of feature is larger than # of samples, why is it OK to first eigendecompose $XX^T$, reorder the eigenvectors according to eigenvalues, and then return $X^TV_1$ as the PCA coefficients? Are there some kernel methods involved in this doing? What's the rationale behind this doing?  I have asked the same question . When either post gets an answer, the other post will be deleted.  Thanks in advance!


Why do some words use duplicate letters seemingly without reason?

Usually, when we see two letters put together it is to define the pronunciation or to differentiate synonyms or just its foreign origins. But some words don't seem to have any reason to double up.     Why does vacuum have two of the letter U?  Why does aardvark have two of the letter A?  Why does llama have two of the letter L?


How many physical processors does ubuntu support?  I have a 4 socket server mainboard with 4 dual core AMD Opterons.  Will Ubuntu support all 8 processors.  I also have plans to upgrade to 6 core Opterons making this a 24 processor machine.  Any problem supporting this many processors?  Thank you.


How to Drain Heat from a High Intensity Lightbox (2200 watt)?

As you may know, I'm working on designing a "lightbox" that will contain 3 high intensity metal halide bulbs - consuming a total of 1600 - 2200 watt. The purpose of the box is to generate ~40,000 lux of light in an area that's 24 inches by 24 inches.  The box is meant to open/close in 1 minute intervals. This will be accomplished through a series of "microcontrollers" and "servo" motors. The box will open from the front (the "door") and be lifted upward through the servo motor.  While the box is closed, no light will be emitted. While it is open, the goal is to cause as much light as possible to escape from the box. For this purpose, another series of "servo" motors will cause the bulbs to move forward slightly out of the box (closer to the subject).   The box will be built out of wood and the dimensions of the box will be about 18 inches, by 12 inches by 12 inches.  This is all background information. My main concern (and the reason for this post) is about "draining" the heat from the box so that the wood doesn't catch on fire.  Currently (based on several suggestions from SO members), I will be taking the following precautions:   I will be placing a 240 CFM fan UNDER the box to filter out the heat.    My question is about this is: How much can I expect the wood to heat up in 1 minute with such a fan present?  Furthermore, I want to design the box so it can last for 15 and 30 minute open/close phases as well - how much more would   the wood heat up in 15/30 minutes compared to 1 minute?  If this would present a problem, would using a 400 CFM fan eliminate the problem? If not, would using 1 CFM fan on bottom (of 240 CFM) and another on top (of 100 or 240 CFM), help to enhance air flow and reduce heat  in the box?   To protect the wood from heat/fire I plan on spraying . Will this help? Is it enough or are there other "coatings" I should apply? I plan on coating the inside with a  like substance to project as much light as possible. Will this cause the wood to absorb more heat or less? (I assume less..) Is there any other way to "fire proof" the wood (without converting it into metal which would cost $1,000 +) or perhaps my entire design is flawed?   Another question: Part of the plug from the bulb will be inside the box (around 8 inches) - will the heat damage the plug (which will be made from plastic I presume)?  As a side note, someone will be present whenever the bulbs are on so if there is a fire it will be seen. My primary goal is to avoid a fire in the first place but perhaps more importantly I want to avoid significant damage to the wood..


how to force the logout out of another user with systemd or systemctl?

In the context of:  and:  how can I force logout of a specific user through the console or terminal using either systemd or systemctl?  Even ending a users terminal session.  Assuming sudo access is granted. I specify systemd or systemctl, or similar, because, at least on Ubuntu, there are artifacts which remain when simply clicking "logout" through the GUI.  And, would want to be able to do this from a different account.


How does UART know the difference between data bits and start/stop bits?

I understand that it is common for a UART scheme to use 8N1, meaning 1 start bit, 8 data bits, and 1 stop bit. Something like this:  0xxxxxxxx1  Where 0 is the start bit, the x's are the data, and 1 is the stop bit. In the case of multiple frames being sent back to back continuously, you'd have something like this:  0xxxxxxxx10xxxxxxxx10xxxxxxxx1  My question is: how can the receiver tell the difference between the start/stop bits and data bits? To illustrate this point, suppose that the data byte 0xAA is over and over. This would look like:  01010101010101010101010101010101010101010101010101  I made the start/stop bits bold for emphasis, but it seems to me there really is no way to distinguish these from the data bits.   Sure, if the receiver has had a solid error-free connection to the transmitter since eternity past, then I can see how this wouldn't be a problem. Or if the bytes are not sent back to back then it wouldn't be a problem. But I've worked with 8N1 circuits that were continuously transmitting bytes one after another, and I could disconnect/reconnect the wires mid-transmission and the receiver would always jump right back into receiving correctly. How is this possible?


Justification of proof of law of total expectation

I am reading about the proof of law of expectation for the discrete type,   $$ \begin{align} E[E[X|Y]] &=  E \left[ \sum_{x} x \cdot P(X = x | Y) \right] \\ &= \sum_y \left[ \sum_{x} x \cdot P(X = x | Y = y) \right] P(Y = y) \tag 2) \\ &= \sum_x x \sum_y  P(X = x | Y = y) \cdot P(Y = y) \tag3) \\ &= \sum_x x \sum_y P(X = x \, \text{and} \, Y = y) \tag4) \\ &= \sum_x x \cdot P(X = x) \tag5)\\ &= E[X] \end{align} $$     Question: Why does it assume Y=y? And can someone give me justification of each step?


Why do conductors moving in Earth's magnetic field not create electricity?

if earth is a magnet and there are conductors moving in it why do we not get a current from them, seeing as it is a conductor moving in a magnetic field


What is the motion of quarks inside nucleons?

Nucleons consist of quarks which are charged particles. Proton has the quark content of uud and neutron of udd. So, it may be visualized that the down quark always remain between the up quarks inside proton and the up quark remains between the down quarks inside the neutron. Are these quarks stationary inside protons or neutrons? (if yes, why and how is it so?) Or, the up quarks rotate around the down quark in proton and the down quarks around the up quark in neutron? (if so, do they move along the same orbit?)


Which parts of an ELF executable get loaded into memory, and where?

What I already know:  An ELF executable has a number of sections, obviously the .text and .data sections get loaded into memory as these are the main parts of the program. But for a program to work, it needs more info, especially when linked dynamically.  What I'm interested in are sections like .plt, .got, .dynamic, .dynsym, .dynstr etcetera. The parts of the ELF that are responsible for the linking of functions to addresses.  From what I've been able to figure out so far, is that things like .symtab and .strtab do not get loaded (or do not stay) in memory. But are .dynsym and and .dynstr used by the linker? Do they stay in memory? Can I access them from program code?  And are there any parts of an executable that reside in kernel memory?  My interest in this is mostly forensic, but any information on this topic will help. The resources I've read about these tables and dynamic linking are more high level, they only explain the workings, not anything practical about the contents in memory.  Let me know if anything in unclear about my question.


Matsumura, Exercise 18.8: Cohen-Macaulay and (not) Gorenstein

I need an answer to the exercise 18.8 of Matsumura's book:" Commutative Ring Theory", and generate an algorithm if possible.   Let $k$ be a field and $t$ an indeterminate. Consider the subring $A = k[[t^3, t^5,t^7]]$ of $k[[t]]$ and show that $A$ is a one-dimensional Cohen-Macaulay ring which is not Gorenstein. How about $k[[t^3,t^4,t^5]]$ and $k[[t^4,t^5,t^6]]$?    ADDED: Is there an algorithm for the general case: $A=k[[t^a,t^b,t^c]]$, where $a,b,c$ are natural numbers?  My attempt: $A$ is Cohen-Macaulay, because it's a domain of $\dim\, 1$.


Prof Michael Sandel, Justice: ..., Episode 06: "MIND YOUR MOTIVE"      51:28: But respect for Kant,   51:30: Respect,   51:31: is respect: for humanity which is universal,   51:36: for a rational capacity which is universal.   51:38: And that's why violating it in my own case is as objectionable as violating it in the case of any other.    About the bolded, does Sandel mean the following: 1. Not only is the capacity of reason universal, such capacity is rational universally. ? If so, then this seems a stronger claim than .   But how can this be true? Humans make irrational decisions all the time. Yes, Alan Greenspan composed the term 'irrational exuberance' in the 1990s, but did Kant not know  of  ?


symbolic link size error in tzdata-java (((answered)))

While updating from 12.04LTS to 12.10 the following tzdata symbolic link error shows up.   The answer function was removed since this was marked as duplicate, I guess.  The solution I used was    Reluctantly copied the Rosario zone data file from the package to "/usr/share/zoneinfo/right/America/".  (made a backup first though) run apt-get -f install and the new tzdata package for 12.10 installed successfully run apt-get autoremove   I believe all is well now.  Preparing to replace tzdata 2013d-0ubuntu0.12.04 (using .../tzdata_2013d-0ubuntu0.12.10_all.deb) ...  Unpacking replacement tzdata ...  symbolic link '/usr/share/zoneinfo/right/America/Rosario' size has changed from 17 to 4   below is the results from recommended apt-get command.  any help is apprecieated...thanks!  Unpacking replacement tzdata ...  dpkg: error processing /var/cache/apt/archives/tzdata_2013d-0ubuntu0.12.10_all.deb (--unpack):  symbolic link '/usr/share/zoneinfo/right/America/Rosario' size has changed from 17 to 4  No apport report written because MaxReports is reached already Errors were encountered while processing:  /var/cache/apt/archives/tzdata_2013d-0ubuntu0.12.10_all.deb  E: Sub-process /usr/bin/dpkg returned an error code (1)


What is the determinant of cofactor matrix of a matrix?

For an $n \times n$ square matrix $A$, can determinant of its cofactor matrix (matrix consisting of cofactors of the elements of $A$) be expressed in terms of $\det(A)$ and $n$ ?


I used a translator due to poor English. As a person who can't handle Blender well, I was just following while watching a video when the key called grless came out. After it came out, all the mash became softer. I don't know which key to press.


The perimeter of an Isosceles triangle is P inches. Find the Maximum area

this question is on application of derivatives and I can't understand how the formula of the perimeter would be derived to the maximum.


I've heard that Lubuntu consumes less resources than Ubuntu. Is it because of the fact that Lubuntu uses different desktop environment and window manager?  If so, would it be equivalent to install lubuntu-desktop on top of Ubuntu rather than doing a fresh install?


Question from number theory related to GCD

Let $a,b,c$ be integers such that $(a,b) = 1$, $c>0$. Prove that there is an integer $x$ such that $(a+bx,c) = 1$.


Removing duplicates from an array list of characters using a loop?

public static ArrayList<Character> removeDuplicates (ArrayList<Character> data) {     ArrayList<Character> newList = new ArrayList<Character>();      for (int i = 0; i < data.size() - 1; i++) {       if (!newList.contains(data.get(i)))           newList.add(0,(data.get(i)));     }     return newList;   }   Here is my code so far. I'm not understanding how this is not working


IPSec: is it possible to check that a packet passed via IPSec tunnel?

In our deployment we have two servers. I want to connect it via host to host VPN:   On one server we have JMS broker on the second server we have JMS client and I want allow access to JMS broker only if it is pass via IPSec channel (JMS broker and client is only for the example).  Is it possible to check that packets pass via IPSec channel?


Table Snippets in Google Search - how to display table from my website in Google search results?

At the moment I am working on website selling products online. Site has pages displaying product lists in form of tables. The markup of product list is actually HTML table.  I have noticed that some sites have tabular data displayed in Google search results. For example, W3Schools website.  I have figured out that it's called Table Snippets. But what should I do to get the Table Snippet for my site to be displayed in Google search results? I have tried to look for answer in Google but couldn't find anything useful.  I was thinking of implementing Schema.org Itemlist or multiple Schema.org Product items (for each product on the page), adding metadata to page so Google could find correct product data but I am not sure if I achieve what I want with Schema.org . Am I thinking in right direction? Or I must try anything different to get the table in search results? I just want some hint.  P.S. Not sure if this is important, but just in case. Website is ASP.NET (WebForms).


How to get Steam to recognize existing game files for Arma

I installed Arma Combined Operations off the anniversary disc. Now I want a new CD key to play DayZ as that one is my brothers so I purchased Arma 2 and Arma 2 Operation Arrowhead on steam.   Can I transfer the Arma files that I already have to the Steam folder so I don't have to download it? I have limited bandwidth.   I've tried to put it in steamapps under common and in the the folders that Steam makes for it when downloading. But it doesn't work it just tries to download it.


How to insert specific character in mysql database using php

I want to insert Facebook Embedded Post in to mysql database table EMBEDDED_POST_MASTER.  My Facebook Embedded Post is:

Post by SilkyQuote.

   When i am inserting this embedded post into table its gives error like :  Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div id=\"fb-root\">  I also use $insert_data = mysql_real_escape_string($input_data);   but it is not working, still same error comes, when i insert without embedded post then its inserted successfully.  means the error accure only when i insert Embedded post.


Why is flow of current considered opposite to flow of electrons even by "convention"

This question is a very basic one, We are told that that current is produced because of flow of electrons but it is stated that the flow of current is opposite to the direction of the flow of electrons if the electrons are the body which moves which further produces current then how can current move to the opposite direction (is current is basically flow of electrons)


Seeking term for step-grandmother's brother

I'm trying to wrap my head around this, but I have no clue what's right.  Maybe it would just be classified as "no relation", but that seems wrong to me.  The situation is that you have a grandfather, who remarries.  I think that would be a step-grandmother, but I'm not even confident about that.  It seems like a step-grandmother would actually imply that you have a step-mother or step-father, and it was their grandmother.  But if that's right, then would the "step-grandmother's" brother be called a "step-great-uncle", but that doesn't really capture the relationship either.  Can anyone supply an appropriate term?


I am very aware that the standard way of doing this in Ubuntu is Ctrl+⇬+C and Ctrl+⇬+V.  I come from an elementary OS background where they actually fixed this. So if eOS can fix this, so should I in vanilla Ubuntu.  How does one fix this? The Ctrl+⇬+C, for example, must be located somewhere in the settings?


Ubuntu 12.04 gnome issue, no clock is shown, strange starter icon cannot be removed

i am finding nowhere a solution I am running UBUNTU 12.04 and using GNOME desktop, which I installed additionally. Logging into classic GNOME I see the following:     WHAT is this "earth globe" icon coming from?Seems to be named "starter". It is configured to open a website, from my bookmarks. WHY is it not showing the TIME?   Using dconf-editor I had no luck in answering the above questions.  Any idea?


I'm really hoping you could help me understand the taxes and what will be my net salary. I've started to work for the first time in the UK on May the 9th 2016. My income will be 26000/year (gross). I've have checked many UK calculator and they all say I will get  £1,737.27 net, however I have been reading that if it's the first time you work in the UK you don't pay taxes for the first months. Is that correct? I received my payslip and it's the most strange thing I've seen and they combine May & June as apparently didn't have the time to get me a code for May (?). This is a very small office, I have asked my colleagues and no one knows and the account never got back to me. Could you please be so kind to help me figuring out how much will I take home every month?   Thank you in advance for your help.  M.


Battery indicator ALWAYS says Using Battery Power - even when plugged in

I have an ASUS N550JK laptop (BIOS version 204) running Ubuntu 14.04 (3.13.0-43-generic kernel).   My issue is that the battery indicator ALWAYS shows that it's using battery power - even when plugged in and fully charged. So even though I have selected to show the battery status in the menu bar only when charging or in use (in power settings), it is ALWAYS displayed. When it reaches a full charge, the indicator icon will either show just the percentage (usually 99% or 100%), or sometimes a very big number for time (like 22:14) along with the percentage. If I go to the power settings menu, it always says "Using battery power", with something like 40 hours remaining. This is all while plugged in and fully charged.  Are there any fixes less drastic than trying to update BIOS, or is a BIOS update necessary to fix this? The latest BIOS version is 208 according to the ASUS website, but the (very brief) descriptions of the updates don't mention anything about battery issues. If at all possible I'd like to avoid updating BIOS because of the risk involved.  I've already tried letting the battery drain all the way and then charging to full, with no luck.  Thanks in advance!


Do you get Hex Warrior's Cha bonus with a two-handed Pact Weapon?

Hex Warrior says:     you can touch one weapon with which you are proficient and that lacks the two-handed quality. When you attack with that weapon you can use your Charisma for attack and damage rolls.   later the ability says:     This benefit extends to every weapon conjured with the Pact of Blades feature, no matter the type.   (emphasis mine)  Does this allow me to use my charisma with 2 handed weapons(provided it is my Pact Weapon and my Hex Warrior Blade)?  This question is not the same as . That one is asking how many weapons, I'm asking if type means 2 handed or something else(Slashing or Ranged for examples).


What are the icons on the top bar called?

What is that called?  The reason I'm asking is that I'm creating a desktop application in Java (using the gnome java library - with GTK support) and I want my app to be visible there as well with a custom menu.  I can't find anything on how to create such a menu for GTK windows.


You can get the binary here  How do I install said binary to use it as a commandline tool? I have a mac, with mavericks. If possible, it would be nice to install it without the use of an admin password.


Can't set Alt+Shift as a keyboard shortcut on ubuntu 20.04

I'm using Ubuntu 20.04 and I wanted to change keyboard shortcut of "switch to next input resource" from Super+Space to Alt+Shift but it doesn't allow me to set it. later I found out some combinations can't be set either. Any solutions? Thanks in advance.


How to set up mock for indexer property?

I'm not expert with mocking, but I know mocks advantages. I face with a problem where I have an interface you can see it below. I want to Setup this interface get property in the right way.   public interface IInterface {     string this[string key] { get; } }   I tried something like this:  Mock<IInterface> mockInterface = new Mock<IInterface(); mockInterface.SetupGet(mockInterface.Object).Returns("Test");    But I get the following error:     Error    CS0411  The type arguments for method 'Mock.SetupGet(Expression>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.    Can you give me some advice or solution for this problem?


How to compute $ \frac{1}{\sqrt{2\pi}} \int_{-\infty}^\infty \frac{e^{-{x^2}/{2}}}{1+e^{-(ax+b)}}\,\mathrm dx $ when $b \ne 0$

I'm trying to solve this expression when $b \ne 0$:   $$ \frac{1}{\sqrt{2\pi}} \int_{-\infty}^\infty \frac{e^{-{x^2}/{2}}}{1+e^{-(ax+b)}}\,\mathrm dx $$   Using the answers provided to  we can solve $$\frac{1}{\sqrt{2\pi}} \int_{-\infty}^\infty \frac{e^{-{x^2}/{2}}}{1+e^{-x}}\,\mathrm dx=\frac12$$  However, when we change the power of exponential term in the denominator to $-(ax+b)$ from $x$, the expression can not be solved using the same methods used in the . I tried solving by substituting $z=ax+b$ and it also did not work.


I have a problem. How can I test in C++ if I have latitude and longitude of a point(a car with GPS) and I need to find if the point is inside the area of a circle. I have the center of the circle in latitude and longitude and the radius is in km.  For example:  I'm in the point :  52.51523649714909 13.18586926568004  And the circle center position is:  48.147763 11.563454 radius : 50km   I have this values from the project I need to resolve.


I have a small VPS with 6GB RAM hosting a couple of websites.   Recently I have noticed that my cached memory size is quite high - see below:      Cpu(s):  0.1%us,  0.1%sy,  0.0%ni, 99.1%id,  0.0%wa,  0.2%hi,  0.4%si,  0.0%st     Mem:   6113256k total,  5949620k used,   163636k free,   398584k buffers     Swap:  1048564k total,      104k used,  1048460k free,  3586468k cached   After investigating if there is some method to have this flushed or cleared I stumbled upon a command which is:      sync; echo 3 > /proc/sys/vm/drop_caches   I read it could be useful to add this to a chron-task/job. Is this method recommended or could this lead to potential problems?  The only concern I have is that I use one Magento installation on Memcached - could this have any negative effects on it?  I am certainly not a pro therefore I would very much appreciate some expert advise.  PS: My VPS runs on CentOS 5 x64 and I have WHM + NGINX installed.


What if somebody says that Sun orbits around the Earth and not Earth orbiting around the Sun?  What would be the consequences?


Custom template file for taxonomy term in drupal 7

I need to create only one tpl.php file for all taxonomy terms in my website. I know taxonomy_term_page.tpl.php will do the required function in Drupal6.  For drupal 7 I had override the taxonomy-term.tpl.php. I see all the nodes associated to a term, is displayed at the last.  How can I hide those nodes?


How do I detect if a player is standing on a specific block?

What I want to do: Detect if the player is on black concrete, and then change a scoreboard I created called reviveto 1. I'm in 1.14.4, and I can't find tutorials online for this. I assume that the command will be execute, but I'm not sure. Help appreciated!  EDIT: Need to do from a command block, sorry for forgetting this!


How I can disable block view from database D7

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away   I have Last error, this error will be resolved when a user increase max allowad packet Im do it and set it 500MB, and Im clearing cach from DB, and Im restart a mysql server ..but not working  any way this error was trigger when Im try to save a block was creation in view, I think I know where is problem, its in filed in this block was add manually .. but now I need back to disable block to I can maintenance a problem, how I can do that ..   or there another way to resolve this problem ..  thanks alot


Can you split power between two voltage regulators?

In order to supply more power to a circuit. can you split the power between 2 voltage regulators, in parallel?  Can this overpower one of the Voltage Regulators?


How to query Deployment Details in Deployment Status? Is it even possible?

Is it possible to query deployment status->Deployment details start time and end time?


How to cut a hole through both sides of a cube?

I'm trying to make a hole through the face:    So it will come out just like this hole on the other side of the mesh:    If it doesn't make sense, i'm saying this: On the first picture, It clearly has no hole.  On the second picture, It is the other side of the CUBE , i have used "knife" tool to cut the hole but it didn't go through, so i'm trying to make that exact hole, on the first pictures face so i can make a window.


I installed ubuntu and was running it for a month before I wanted windows back to run some programs that I couldn't run on ubuntu. I had accidentally deleted my recovery partition and overwrote windows when I installed ubuntu. I eventually got windows 7 back on my computer but now I don't know how to boot up ubuntu again. I still have ubuntu on a bootable partition and windows is on it's on bootable partition. Can anyone tell me how I can boot up ubuntu again? thanks :)


Short story about a man stranded on a red planet with a sentient hand as his friend

I remember reading a short story 10 to 15 years ago about a man stranded alone on a red planet, where nothing would be green, and so he would miss that color. There was a sentient hand to keep him company, and it talked to him. I don't remember if the hand was a native life form or his own hallucination.  The story was not very old at that time, so it may have been written in the late 90s or 00s.


Casting user input to enum (reflection)?

Let's say i have this class: class Person {    public string Name { get; set; }    public HairColour hairColour { get; set; }    public EyeColour eyeColour { get; set; } }  where HairColour and EyeColour are enums. And I want the user to enter a value for each of the person's properties like this: string userInput = "";  Person p = new Person();  Type personType = typeof(Person);  foreach (var property in personType.GetProperties()) {    Console.Write("Enter the person's " + property.Name + ": ")    userInput = Console.ReadLine();    personType.GetProperty(property.Name).SetValue(p, // PARSE PROPERTY HERE ); }  Is there a way to cast the userInput to the corresponding type, without using multiple "if" statements?


You might want to run apt-get -f install to correct these. The following packages have unmet dependencies.  mysql-workbench-community : Depends: libcairo2 (>= 1.15.8) but 1.14.6-1 is installed                              Depends: libglibmm-2.4-1v5 (>= 2.54.0) but 2.46.3-1 is installed                              Depends: libgtk-3-0 (>= 3.21.5) but 3.18.9-1ubuntu3.3 is installed                              Depends: libgtkmm-3.0-1v5 (>= 3.22.0) but 3.18.0-1 is installed                              Depends: libpangomm-1.4-1v5 (>= 2.40.0) but 2.38.1-1 is installed                              Depends: libpcrecpp0v5 (>= 7.7) but it is not installed                              Depends: libpng16-16 (>= 1.6.2-1) but it is not installed                              Depends: libsigc++-2.0-0v5 (>= 2.8.0) but 2.6.2-1 is installed                              Depends: libssl1.1 (>= 1.1.0) but it is not installable                              Depends: libstdc++6 (>= 7) but 5.4.0-6ubuntu1~16.04.10 is installed                              Depends: libvsqlitepp3v5 (>= 0.3.13) but it is not installed                              Depends: libzip4 (>= 0.10) but it is not installed E: Unmet dependencies. Try using -f.


How to have a "repeat" statement without an "until" statement using algorithmicx package

I'd like to write something very similar to the algorithm shown below, but using the algorithmicx package.  (This example comes from p. 152 of the book  by Boyd and Parikh.)  How can I have a "repeat" statement without a corresponding "until" statement using algorithmicx?  (I mention the algorithmicx package specifically because I think it's more customizable than other algorithm packages.)


Why doesn't the silent "e" work on "infinite"?

Why doesn't the silent "e" work on the word "infinite"?  What I mean is, why does mate have a long "a", but infinite has a short "i"?


How to convert number words into its equivalent digits using shell script

I have a text file containing numbers as follows:  one two three four five six seven nine    I want to convert it into its equivalent digits like:  12345679   I got the python program.  Is there any way to do it using shell script?  Thanks in advance.


It is possible to call without sim by adding a number as emergency number...?

It is possible to call anyone without sim card...I mean adding anyones number as emergency call number and call anyone as emergency call?


What is the difference between "I ask that you be on time." and "I ask that you are on time."

Does "be on time" focus on the resultant state? My Japanese friend asked me this question today and I really wasn't sure aside from "are" maybe focusing on future tense and "be" focusing on now?


Let $G$ be an Abelian group of order $mn$ where $\gcd(m,n)=1$.   Assume that $G$ contains an element of $a$ of order $m$ and an element $b$ of order $n$.   Prove $G$ is cyclic with generator $ab$.    The idea is that $(ab)^k$ for $k \in  [0, \dots , mn-1]$ will make distinct elements but do not know how to argue it.   Could I say something like $<a>=A$, $<b>=B$, somehow $AB=\{ ab : a \in A , b \in B \}$ and that has order $|A||B|=mn$?  Don't know if it's the same exact or similar to .


Is the polynomial $x^n+2x^{n-1}+\dots+nx+n+1$ irreducible in $\mathbb Z[x]$?


How to blur a texture node in cycles material?

For a Cycles material I need to blur a texture. If the texture where a Texture Image node, I can blur the image before adding it but in my case I need to blur a Voronoi Texture and so I can't do it.  I have searched but I didn't find a blur node. Can this be achieved?


Uniqueness of Lagrangian and Hamiltonian

Is a Lagrangian unique in the same field? Is Hamiltonian unique?   If it is unique then please explain why is it so and if it is not then please explain why is it not so.


Prove that $u(x,t)=\int_{-\infty}^{\infty}c(w)e^{-iwx}e^{-kw^2t}dw\rightarrow 0$ if $x\rightarrow \infty$

I have the following problem:  Be the equation:  $$u(x,t)=\int_{-\infty}^{\infty}c(w)e^{-iwx}e^{-kw^2t}dw$$  Show that $u\rightarrow 0$ as $x\rightarrow \infty$, even when $e^{-iwx}$ does not falter if $x\rightarrow \infty$.  The problem gives the hint to use integration by parts. I was hoping you explain this problem or help me solve it.  I asked this same question in , however, I found no answer. But I remembered that this equation is a solution of many physical systems, so I decided to put it here hoping for a little more luck.


How many people die in each episode of Game of Thrones?

I'm trying to do a time series analysis on the total number of deaths (of not just important characters but everyone in general) per epsisode of Game of thrones for a course project. I was wondering if there was a statistic/dataset on total number of deaths per episode per season. I've come to know from Washington Post Dataset (May 2019) that total number is 5863 (latest) and I know per season. But I needed per episode as well. If anyone has a resource, that'd be amazing.  Thanks in advance


Is there a printf converter to print in binary format?

I can print with printf as a hex or octal number.  Is there a format tag to print as binary, or arbitrary base? I am running gcc. printf("%d %x %o\n", 10, 10, 10); //prints "10 A 12\n" print("%b\n", 10); // prints "%b\n"


Achievements dropdown not matching actual reputation since read-only time

I just got an upvote on a question here on meta to push my daily total reputation to +15. This is shown correctly on the reputation tab on my profile page…        …as well as the reputation list…        However, the achievements dropdown does not show this, preserving the +10 that I received (before the recent scheduled read-only time—possible cause?). It's also not showing the green +[rep] badge on the button.        Also, I've got 66 reputation today on Ask Different, but it still shows 70 in the achievements dropdown, shown above. The actual list of reputation received/lost in the achievements dropdown has not updated either.


$f(z)\ne 0$ if $|z|<1/2$ in this situation?

Assumptions.  $D$ is the open unit disk $\{z\in \mathbb C : |z|<1\}$. $f$ is holomorphic in $D$. $f(0)=1/2$. $\sup \{ |f(z)| : z \in D \} =1$.  Question. $f(z)\ne 0$ if $|z|<1/2$? Usually I rely on Rouché's theorem to count the number of zero of a holomorphic function. But in this case I don't see how to apply the theorem. I tried to find a holomorphic function $g$ in $D$ such that $$ \text{If $|z|<\frac{1}{2}$, then $g(z)\ne 0$.} $$ and at the same time $$  \text{ $|f(z)-g(z)|<|g(z)|$ if $|z|=\frac{1}{2}$. }  $$ But it was not successful because I don't know much about $f$. Maybe this is not the way. Is there any way to apply Rouché's theorem? Thanks for any answer, no matter Rouché's theorem is used or not.


Searching for unanswered questions with more than one tag yields wrong results

I'm trying to find unanswered questions with both kotlin and gradle tags like this:   It shows many questions without kotlin tag which is unexpected.  All questions with url like /questions/tagged/kotlin+gradle works correctly.


I can check for OR condition in regex like so: import re string = "abc ank won xyz" print(re.findall("ank|won", string))  But how do I check for AND condition? I couldn't find anything for python regex. EDIT: I want to check if both ank and won (in any order) exists in the string or not.


Looking for a fantasy story - People with inborn magic

Chronology and other relevant information I read it at the latest in the mid 90s, which means it would most likely written before that. I remember multiple books, none particularly large. Plot Points  It involved the main protagonist who initially discovers he has the power to control fire (Which is rare but not impossible - someone refers to him as a "Firebrand") but eventually discovers he has more broad elemental powers which was either unique or at least ultra rare.  He gets together with other people with these powers to overthrow some sort of evil.  I think one of his companions had some control over poison.


How do I logout using only the keyboard?

In Ubuntu 11.04, Ctrl-Alt-Del gives me a menu with shutdown, hibernate, suspend and restart, but no logout. Is there a key combination to logout of Ubuntu? Is there a way to provide one?


Do I get any benefits from petting my chicken?

I recently unlocked the chicken coop and then I bought a chicken. I noticed that I can pet the chicken once per day and a little heart displays above its head.  I've done this every day for almost an entire season and I'm not seeing any benefits from it. Does petting it serve any sort of food production purposes or is it merely for fun?


How can there be animals on the surface in Zion's world?

It is apparently canon that  in Neo's day.  However, in the first movie, The Matrix, Morpheus tells Neo that one of the things known for certain is that humans "burned the sky" in order to deny solar engery to the machines, which in turn led to the humans who survived the War being plugged into the Matrix to provide bioelectric energy to supply the machines.  If there's not enough sunlight for solar power, how can there be enough to grow plants to serve as food for animals?  Low levels I can understand -- house plants, at least, thrive in conditions too dim for solar panels to produce cost-effective power -- but every surface scene we see in the trilogy is as dark as a cloudy night; light coming only from the machines.  That wouldn't begin to support photosynthesis, which means all animal life would starve in, at most, a matter of a few years.


SOLVED: See answer on the bottom  I'm rather new to C++ so this might be a stupid question, but I am trying to write a template class for vectors using the built in STL vectors. It is an assignment from the University. I created a Header file and a cpp-source file, so I can define the class Vector in the Header and declare it's functions in the source file. I get the following errors:  Vector.cpp:27:59: error: invalid use of incomplete type ‘class Vector<T, n>’ Vector<T, n>& Vector<T, n>::operator=(const Vector<U,n>& v){                                                            ^ In file included from Vector.cpp:1:0: Vector.h:5:7: note: declaration of ‘class Vector<T, n>’  class Vector {        ^~~~~~ Vector.cpp:42:59: error: invalid use of incomplete type ‘class Vector<T, n>’  Vector<T, n>& Vector<T, n>::operator+(const Vector<U,n>& v){                                                            ^ In file included from Vector.cpp:1:0: Vector.h:5:7: note: declaration of ‘class Vector<T, n>’  class Vector {        ^~~~~~   My code is this:  Header file (Vector.h):  #include <vector> using namespace std;  template <class T, int n> class Vector { public:     Vector();     Vector(int);     Vector(const Vector<T, n>&);      ~Vector();      template<class U>     Vector<T, n> operator=(const Vector<U, n>&);      T& operator[](int i);      template<class U>     Vector<T, n> operator+(const Vector<U, n>&);     template<class U>     Vector<T, n> operator-(const Vector<U, n>&);     template<class U>     T operator*(const Vector<U, n>&);      template<class S>     Vector<T, n> operator*(const S&);    /*  template<class S>     friend Vector<T, n> operator*(const S&, Vector<T, n>&);*/      template<class F>     Vector<T, n> apply_Funktor();  private:     vector<T> values;     const int size; }; /* template<class S, class T, int n> Vector<T, n> operator*(const S& s, const Vector<T, n> v){     return v * s; };*/   And the source-cpp file:  #include "Vector.h" #include <vector> using namespace std;  template <class T, int n> Vector<T, n>::Vector(): size(n){     vector<T> values; }  template <class T, int n> Vector<T, n>::Vector(int v): size(n){     vector<T> values;     values.assign(v, n); }  template <class T, int n> Vector<T, n>::Vector(const Vector<T, n>& v): size(v.size){     values = v.values; }  template <class T, int n> Vector<T, n>::~Vector(){     delete values; }  template<class U, class T, int n> Vector<T, n>& Vector<T, n>::operator=(const Vector<U,n>& v){     delete values;     vector<T> values;     for(int i = 0; i < size; i++){         values.push_back((T) v.values[i]);     }     return *this; }  template<class T, int n> T& Vector<T, n>::operator[](int i){     return values[i]; }  template<class U, class T, int n> Vector<T, n>& Vector<T, n>::operator+(const Vector<U,n>& v){ //more Code to come but I already get the error here }   The error occurs when I try to build my project with NetBeans. I dont have a main yet to use the Vector. I already searched the internet for solutions but I didnt come across anything helpful. I learned about forward declaration but it seems to me that this isnt the case here, because Im including the header file.  Thank you for your help :)  !!!EDIT / SOLUTION: My tutor in class solved it: The problem is that instead of doing   template<class U, class T, int n>   I have to put it like this:  template<class T, int n> template<class U>


Bash script to read file and echo different lines to output files

I have a log.txt file with various lines of strings and information.  I want to write a script to read the log.txt file line by line and any line that contains the word debug I want to put that line into a new file called debug.txt and all other lines should go to info.txt.  What is the best way to go about doing this? I tried to do a while loop but couldn't figure it out. Thanks


I tried to install dlib using:  pip install dlib   It appeared to be working, but then I got an error message. Here it is:  Collecting dlib   Using cached dlib-19.7.0.tar.gz Building wheels for collected packages: dlib   Running setup.py bdist_wheel for dlib ... done   Stored in directory: /home/andrew/.cache/pip/wheels/17/1f/5d/187f5a9fc1d63527e97fa08f5f43315e72a7b7c2ebc54e02e3 Successfully built dlib Installing collected packages: dlib Exception: Traceback (most recent call last):   File "/home/andrew/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main     status = self.run(options, args)   File "/home/andrew/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run     prefix=options.prefix_path,   File "/home/andrew/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install **kwargs   File "/home/andrew/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install     self.move_wheel_files(self.source_dir, root=root, prefix=prefix)   File "/home/andrew/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files     isolated=self.isolated,   File "/home/andrew/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files     clobber(source, lib_dir, True)   File "/home/andrew/.local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber     ensure_dir(destdir)   File "/home/andrew/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir     os.makedirs(path)   File "/usr/lib/python2.7/os.py", line 157, in makedirs     mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/dlib'   I'm not sure why it says permission denied. Does anyone know how to resolve this error?


If Voldemort intends for wizards to rule the muggles why the apparent hesitation to reveal Wizard superiority and the magical world to the Muggles

If Voldemort intends for wizards to rule the muggles does he also intend to reveal the magical world to the Muggles.  After Voldemort supporters takes over the Ministry of Magic and openly advocating that Purebloods should rule Muggles, he still has made no concentrated efforts to reveal the magical world to the muggles. No effort to finally reveal that Wizards are invincible and cannot be hurt or opposed by Muggles.     Deathly Hallows The Wedding      Then the Patronus’s    mouth opened wide and it spoke in the loud, deep, slow voice of    Kingsley Shacklebolt.       “The Ministry has fallen. Scrimgeour is dead. They are coming.”   There is no one in the Ministry to oppose Voldemort from revealing Wizard Superiority. The only thing stopping Voldemort is Voldemort himself.   Is this acknowledgement on Voldemort’s part about the wisdom of not revealing the magical world of the Muggles, does Voldemort recognize that muggles can be dangerous in their own way.  I am reminded of this Mythbuster episode of Jaime and a gun against a horde of slow moving zombies, Jaime was still taken down and disarmed. Taken down by nothing more than slow walking brainless teeth.                                 Why the hesitation to reveal wizards as masters of Muggles and reveal the magical world?     Deathly Hallows chapter Kreacher’s Tale       But Master Regulus had proper pride; he knew what was due to the name of Black and the dignity of his pure blood. For years he talked of the Dark Lord, who was going to bring the wizards out of hiding to rule the Muggles and the Muggle-borns . . .”    In Great Britain alone  One baby born every 40 seconds in Britain  For the rest of the world    Four births each second of every day   Nearly two people die each second   How many Muggles does Voldemort’s minions have to kill in a day, everyday 24/7 just to give Great Britain zero population growth?   I’ll let Voldemort do the math.


Group and tally values for each record in SQL

Im trying to run a select statement to group records having similar IDs but also tally the values from another column for each master ID. So for example below. The result for each line will be the first instance unique ID and the 2 names shown from each record separated by semi colon. Thanks in advance.  Current set  ID                               Name              Cnt -------------------------------- ----------------- --- 0001D72BA5F664BE129B6AB5744E2BE0 Talati, Shilpa    1 0001D72BA5F664BE129B6AB5744E2BE0 Weaver, Larry     1 0007EAB7CE9A3F2F95D2D63D0BBD08A9 St-Hilaire, Edith 1 0007EAB7CE9A3F2F95D2D63D0BBD08A9 Talati, Shilpa    1   Result:  0001D72BA5F664BE129B6AB5744E2BE0 Talati, Shilpa; Weaver, Larry