Critical query plans removed from sys.dm_exec_query_stats while trivial items are kept

Running SQL Server Express 2019. Have a complicated stored procedure containing 11 sql statements (when selected from sys.dm_exec_query_stats by plan_handle). 9 of those statements are simple variable setting based on passed-in parameters, the last 2 statements (IF/ELSE) do all the work and return data (e.g. query_hash 0x111... and 0x222...). There's quite a variability in data volume based on input parameters, so I "prime" the stored procedure with optimal values to ensure quick execution. I've noticed that every few days (sometimes more often), my last 2 statements (query_hash 0x111... and 0x222...) get dumped from sys.dm_exec_query_stats and then re-generated based on whatever parameters come from the users on the next stored procedure call. I know this by looking at creation_time column, and it's reflecting the time of "priming" for first 9 queries, and a later time for query_hash 0x111... and 0x222... . From what I understand, cached plans get cleared under memory pressure, and less used plans get cleared first. My queries are being used a lot, and I have a lot of other cached plans with 1 execution that stick around for a while. Question: why are my most used queries get dumped form cache and how do I stop it from happening?


Downgrade SQL Server Enterprise Edition to SQL Server Standard Edition

There is a requirement in our project where they want to evaluate if it is possible to downgrade SQL Server from Enterprise to Standard edition and if a server can be decommissioned.  How can I identify which servers are suitable for downgrade?


My wife and I got bus fines today in Bologna. We had only recently arrived and had purchased a ticket from where we were staying which was about 6 or 7 km from the city. The hotel receptionist explained the ticketing system to us and said that if we buy a ticket we could use it on as many journeys for 75 minutes.  We took the bus from our hotel to Bologna and then straight away got on another bus to get to central Bologna where all the sights are. When we got on this other bus we assumed that it was ok as we were still within the 75 minutes. However, when we tried to validate our tickets in the machine it flashed red like an error had occurred so we figured something wasn't right.   We tried to ask the driver about it or if we could buy a ticket but he just grunted and started to drive off. We therefore started to leave the bus at the next stop so we could try and buy another ticket but were ushered back on by a few men who turned out to be ticket inspectors!  They alleged that our tickets were not valid in the city and that we had to pay a 65 euro fine. They wanted to see our official documentation and so took details from our UK driving licences and issued us both with fines. They wanted us to pay there and then, but we explained we didn't have enough cash on us to do so and they then stated we could pay by card.   However, I still wasn't happy about doing that so he then said that we could pay later by going to an Italian post office; or if we don't pay within a certain time the fine will go up to 270 euros each and will be posted to us (he got our addresses off our UK driving licences)!  I am a bit miffed about this as we were noway trying to evade and as soon as we realised our mistake we tried to talk to the bus driver to buy a ticket or get off the bus, but he drove off and ignored us! I have a slight suspicion that it was a rouse as it is very strange that he did this and then out of nowhere bus inspectors got on and made a beeline for us!  If we go back to the UK without paying these fines and ignore the subsequent fines that they send us through the post (if they do send any), then what happens? Do they have any powers when we are back in the UK? a total fine of 500 euros for an honest mistake seems utterly outrageous.   Fine below


please, I need help the Eevee viewport rendered doesn't show any objects, in the cycles it works perfectly but Eevee is not showing any object, I have tried 5 versions of blender they all have the same problem I added all types of lights, I have changed the world color but nothing works.


I've seen on a wiki that there is a ghost gungeoneer and a robot gungeoneer but it didn't say how to unlock them, so how do I unlock more gungeoneers ?


I have two DataTables with the same structure as each other.  There are two columns in these tables ID and LIST.  One table is populated from an internal database and other table is populated by a webservice call to a vendor's database.    Both Tables have close to 2 million records.  I am trying to compare the two tables to figure out where that are matches so I can figure out which records that I need to synchronize.  Table 1            Table 2          ACTION --------           --------         ------ ID  LIST           ID  LIST --  ----           --  ---- 1   ABC            1   ABC          No Change 1   BCD                             Add To Table 2 (1,BCD) 2   ABC            2   ABC          No Change 2                  2   BCD          Delete From Table 2 (2,BCD) Leave (2,ABC)                     3   BCD          Delete From Table 2 (3,BCD)   With the data provided.  I have come up with the following LINQ queries  Dim t1_DistinctIDs As System.Collections.Generic.IList(Of String) = (From r In ds.Tables("t1").AsEnumerable                                                                      Select r.Field(Of String)("ID")).Distinct.ToList  Dim t2_DistinctIDs As System.Collections.Generic.IList(Of String) = (From r In ds.Tables("t2").AsEnumerable                                                                      Select r.Field(Of String)("ID")).Distinct.ToList  'Records to Delete from Table 2 Because They Don't Exist In Table 1 Dim IDsToDelete As Array = (From r In ds.Tables("t2").AsEnumerable()                             Where Not t1_DistinctIDs.Contains(r.Field(Of String)("ENTITY_ID"))).ToArray  'Get All ID & LIST in Table 1 Dim t1_AllItems As Array = (From r In ds.Tables("t1").AsEnumerable                             Select New With                               {                                 .ID = r.Field(Of String)("ID"),                                 .LIST = r.Field(Of String)("LIST")                               }                            ).ToArray  'Find All Records In Table 1 That Do Not Exist In Table 2 Dim ListToAdd As Array = (From r In ds.Tables("t2").AsEnumerable()                           Join l In t1_AllItems                             On r.Field(Of String)("ID") Equals l.ID _                            And r.Field(Of String)("LIST") Equals l.LIST _                           Select New With                             {                               .ID = r.Field(Of String)("ID"),                               .NAME = r.Field(Of String)("LIST")                             }                          ).ToArray   This is what I would do if I were using T-SQL.  DECLARE @T1 AS TABLE (     ID INT,     LIST VARCHAR(10) )  DECLARE @T2 AS TABLE (     ID INT,     LIST VARCHAR(10) )   INSERT INTO @T1(ID,LIST) VALUES (1,'ABC') INSERT INTO @T1(ID,LIST) VALUES (1,'BCD') INSERT INTO @T1(ID,LIST) VALUES (2,'ABC') INSERT INTO @T2(ID,LIST) VALUES (1,'ABC') INSERT INTO @T2(ID,LIST) VALUES (2,'ABC') INSERT INTO @T2(ID,LIST) VALUES (2,'BCD') INSERT INTO @T2(ID,LIST) VALUES (3,'BCD')  SELECT      t1.ID,     t1.LIST FROM @T1 t1 LEFT JOIN @T2 t2   ON t1.ID = t2.ID  AND t1.LIST = t2.LIST WHERE t2.ID IS NULL   I am trying to figure out how to do a Left Join where t2.ID IS NULL in LINQ.


How do I add a broadcast IP to the loopback interface under os/x using ifconfig when my machine has no network?

I'm new to advanced network administration and I would like to do some testing with UDP broadcasting, so I need a broadcast address on my loopback interface. The machine is offline, in other words, there is no network.  How can I accomplish that through ifconfig without having to buy a switch as one user in the comments suggested. In Linux all i have to do is use 127.255.255.255 and broadcasts work fine without any network or any switch. If I have a network i can just use 255.255.255.255, obviously.    Here is how you can check for yourself that it works on linux but not in os/x:   Open two terminals and type on both of them:  nc -u -l 55555 Open a third terminal, install socat if necessary and type: (in case you ask netcat does NOT support broadcast)  echo -n "TEST" | socat - udp-datagram:127.255.255.255:55555,broadcast You should see both terminals receiving the message.   If you try the same experiment with 127.0.0.1, only one terminal will get the message as expected.  Performing the same test on OS X does not exhibit the same behavior.  What I am looking for is a software workaround for broadcasts if possible. I cannot use multicast (it has to be broadcast) and I cannot test that over a network (machine offline).


Is one of these two right and the other wrong?   There aren’t many farms out here, but the few fields he does see have already been emptied of their crop.  There aren’t many farms out here, but the few fields he does see have already been emptied of their crops.   If both are right, how does the meaning change?


Any good application for data usage monitor?

I was wondering if there are any good applications to monitor how much data I use on my laptop in a month. My net connection has a restriction of how much data I can use after which the speed goes down considerably. I saw ntop, but I just wanted to ask if there are any other good options or suggestions regarding this. Regards.


I have a prechat form that is developed as visualforce page. Everything is working fine but when prechat form is shown, it has limited size. Is it possible to change the size of the prechat form ? I came across way to change the size of actual chat window but don't see anything related to prechat form.


I have to make difference between two dates.  One date is today date and the other date in a date into a db Unfortunately the date into db is a varchar and not a date format (in this way 31/12/2016/) So is it possible to conver varchar to date?. After that how can i make the difference between the two dates?  thanks


Mouse cursor stuck in top left of screen but can still move and interact with invisible mouse

I just installed Ubuntu 16.10 on my desktop and have a USB deathadder. The problem is I can't see where the cursor actually is because it appears only in the top left of my screen. The mouse still moves but the cursor graphic doesn't follow


Sampling data from a Cox proportional hazard model

Is it possible to simulate event time T from a distribution that depends on two variables A and Z but the hazard function conditioning on A only follows a proportional hazards model?


Broadcom BCM43142 802.11b/g/n [14e4:4365] (rev 01) Wireless Driver isn't working on Ubuntu 18.04

My Broadcom BCM43142 802.11b/g/n [14e4:4365] (rev 01) Wireless Driver isn't working. I've ran lspci -k  and got a result 06:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01)     Subsystem: Dell Wireless 1704 802.11n + BT 4.0     Kernel modules: bcma  and ran lspci -nn | grep -i network  got 06:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)


bezier curve with bevel object: nice corner

A bezier curve with a bevel object and a bend with a free vertex. How is the bend made nice with a continious width? The increase of resolution (Data > Geometry > Bevel > Resolution) smoothes the bends of 2D curves, no effect on 3D curves.   Thank you for any hint!


How to Use an External ST-Link/V2 with the STM32F4 Discovery Board

I have a  board and a  programmer.  I want to use my own ST-Link (not the embedded one) for programming and debugging the board.  How should I connect the external ST-Link to the board ?


What's the difference between - (one hyphen) and -- (two hyphens) in a command?

Both seem to be flags but what is the difference?


It's easy for me to fit ARIMA models in software such as R but I cannot find a "simple" example anywhere on the web for how to transform an ARIMA model to state space form (SSF)? I think it's the lagged error term that's causing me trouble here because otherwise I can easily see how to put it in SSF. If someone can step me through this it would be appreciated!!  $$(1-\phi_1B)(1-B)X_t = (1-\theta_1B)\epsilon_t$$  or  $$X_t=(\phi_1+1)X_{t-1}+\epsilon_t-\theta_1\epsilon_{t-1} $$


How can I remove Photos.app from Mac OSX El Capitan?

Appzapper doesn't work Appcleaner doesn't work The typical Terminal Command i use doesn't work   Is the only way to doe this by disable SIP (System Integrity Protection)?


How do I access my hard drive? (not running dual boot)

I installed ubuntu on my former windows C drive, it does not have windows on it anymore. However, once I installed Ubuntu, I cannot access my hard drive storage (which used to be D on windows)  I get this error,    I think this is because the hard drive is in NTFS? If so, is it possible to convert it in a way so Ubuntu can read and write?


How is private code accessed in nodejs modules?

How are private functions and data of modules accessed after loading the module?  I know that the require function loads the module and returns the module.exports object which contains some public objects or functions, but how are the other 'private' parts of the code in the module accessed? where is it located in the memory?


I've got the basics of bash scripting (I think anyways), and i'm trying to move on to more advanced stuff.  I am trying to write a script that will perform input validation (the user must input either yes or no) and i'm trying to do this by combining a function and an if then else statement.  This is what i'm working on so far.  #!/bin/bash func () {      echo "Enter yes or no:"     read var1 }  if [ $var1 != yes ] || [ $var1 != no ] then     func else     echo "I'm glag you said $var1" fi  exit 0   I know that i'm using the wrong if then else operator/syntax, but I can't find the correct syntax threw googling.  I want it to run the function if var1 is either equal to yes or no, so the user can't input something else.


Why do computers running Windows benefit more from regular restarts than other OSes?

When you shut down a windows computer, it gets faster (if it's been on for a while). I notice that most, if not all, linux distros gain nearly nothing from restarts. In fact, I was actually suggested to restart my server (running Debian, a Linux OS) as little as possible in . I have a friend who uses Mint as their desktop OS and another who uses Ubuntu as theirs and they claim they almost never restart it, and have not noticed any downsides. Also, when installing anything in Linux (be it via command line using apt-get or installing it with a Desktop GUI) you don't have to restart the computer for it to install fully, unlike Windows. Why?


Bugs when trying to play 'Battleswarm: Field of Honor' through Wine

I am currently attempting to play Battleswarm: Field of Honor through a Wine in Ubuntu. While the installation was successful, the in-game stuff was riddled with bugs for me, preventing me to play at all.   No sound (occasional volume spikes but then stops later). No mouse cursor (needless to say the cursor in game has vanished). Unable so see ground, sky, or player models, replaced by useless color... (also splits game screen into 4 sections).   Proposed solutions are:   Install DirectX 9 through Wine and Winetricks (need help installing that...) Turn off screen graphics (did nothing) Update to a Wine version of 1.3 to fix cursor problem (currently mine is 1.2)   Now if someone can give me a few pointers, that would be great.


I need a command that plays a random mp3 from a directory. So far I have tried  ls *.mp3 | shuf -n 1 | omxplayer   Every different player just acts like it has not received a filename and spits out the help. Thanks for the help!


The following MWE simulates the problem. Compile it with pdflatex -shell-escape.  \documentclass[preview,varwidth,border=12pt]{standalone} \usepackage{filecontents}  \begin{filecontents*}{common.tex} \documentclass[tikz]{standalone} \begin{document} \foreach \y in {0,10,...,110}{ \begin{tikzpicture}     \shade[top color=yellow] (-2.2,-2.2) rectangle (2.2,2.2);     \shade[ball color=black] (0,0) circle (.25);     \foreach \x in {\y,\y+120,\y+240}{\shadedraw[inner color=blue,outer color=magenta] (\x:2) arc (\x:\x+60:2) -- (\x+60:.3) arc (\x+60:\x:.3) -- cycle;} \end{tikzpicture}} \end{document} \end{filecontents*}   \begin{document} \immediate\write18{latex -jobname=common-latex common} \immediate\write18{dvips common-latex} \immediate\write18{ps2pdf common-latex.ps} \immediate\write18{pdflatex -jobname=common-pdflatex common}  common-latex size: \pdffilesize{common-latex.pdf}  common-pdflatex size: \pdffilesize{common-pdflatex.pdf} \end{document}     Why does compiling TikZ with latex-dvips-ps2pdf produce a much much bigger PDF than with pdflatex? For the given example above, the factor is about 690027 / 9263 = 74 that is extremely fantastic.


How to get schengen visa if already in UK

I am in United Kingdom on a visit c-type.. What if I wish to visit Paris from UK.. How to get a Schengen visa on Pakistani passport?


App crashes when I use putExtra to send data and use getStringExtra to receive data?

In my apps I want to pass some string data from one class to another class using intent class .I use the Following putExtra to send data to another class named BusDetail .          @Override         public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id)         {              if(groupPosition==0)             {                 if(childPosition == 0)                 {                     Intent child0Intent = new Intent(getBaseContext(), BusDetail.class);                     child0Intent.putExtra("ROOT",root_name[0]);                     startActivity(child0Intent);                 }              }              if(groupPosition==1)             {                 if(childPosition == 0)                 {                     Intent child0Intent = new Intent(getBaseContext(), BusDetail.class);                     child0Intent.putExtra("ROOT",root_name[0]);                     startActivity(child0Intent);                 }              }             return false;         }     }); }   The following is BusDetail class where I use getStringExtra to collect data from the above class . But my app crashes when I go to above class to following class    final Intent intent=getIntent(); //passedArg=in  final String id = intent.getStringExtra("ROOT");   Without using putExtra and getStringExtra, my app works .   this is my logcat  01-19 15:22:23.078  22686-22686/com.example.kuet.traveldirectory E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.kuet.traveldirectory, PID: 22686 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.kuet.traveldirectory/com.example.kuet.traveldirectory.BusDetail}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2236)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)         at android.app.ActivityThread.access$800(ActivityThread.java:151)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:135)         at android.app.ActivityThread.main(ActivityThread.java:5257)         at java.lang.reflect.Method.invoke(Native Method)         at java.lang.reflect.Method.invoke(Method.java:372)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference         at com.example.kuet.traveldirectory.BusDetail.<init>(BusDetail.java:32)         at java.lang.reflect.Constructor.newInstance(Native Method)         at java.lang.Class.newInstance(Class.java:1606)         at android.app.Instrumentation.newActivity(Instrumentation.java:1066)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2226)


ASP.NET PasswordRecovery Control with Localized content

I am working on a simple portal application using the ASP.NET membership and login controls. I would like to use the PasswordRecovery control to send emails containing forgotten passwords, however my portal requires localization. I have an existing Content Management System that I am pulling the localized strings out of and I would like to link the PasswordRecovery control to that system.  But, it appears that the PasswordRecovery control will ONLY accept a .txt file for the email body...the property is PasswordRecovery1.MailDefinition.BodyFileName  I do not want to use a file on disk, I would like to use the localized content in my CMS.  Is there any way to do this? It occurred to me that I might be able to use the SendingMail event to send my OWN email through the normal System.Net namespace, but that seems sorta cludgy...  Any thoughts?  Thanks, Max


Let $U_i$ be i.i.d Uniform(0,1) random variables, and let $X_{(1)},\dotsb, X_{(n)}$ the order statistics of the random variables. Then find distribution of $Y = U_{(n)} - U_{(1)}$. I used two methods to solve this problem.   Using joint pdf of order statistics  we know pdf of $(X_{(r)},X_{(s)})^t$ $(1 \leq r<s \leq n)$ is $f_{X_{(r)},X_{(s)}} (x,y) = {n! \over {(r-1)!(s-1-r)! (n-s)!}}[F(x)]^{r-1}[F(y)-F(x)]^{s-1-r}[1-F(y)]^{n-s}f(x)f(y)$ So, $f_{X_{(1)},X_{(n)}}(u_1,u_n) = {n! \over {(n-2)!}}(u_n - u_1)^{n-2} I_{(0<u_1<u_n<1)}$ Let $X \equiv X_{(1)}$ and $u : \begin{cases}X = X_{(1)}\\Y = X_{(n)} - X_{(1)}\end{cases}$, $u^{-1} :\begin{cases}x_{(1)} = x\\x_{(n)} = x+y\end{cases}$ , u : one to one , $\vert det( {\partial(x_{(1)},x_{(n)}) \over {\partial (x,y)}}) \vert = 1$ $\therefore f_{X,Y}(x,y) =f_{X_{(1)},X_{(n)}}(u_1,u_n)\vert det( {\partial(x_{(1)},x_{(n)}) \over {\partial (x,y)}}) \vert = n(n-1)y^{n-2} I_{(0,1)}(x) I_{(0,1)}(y)$ $\therefore f_Y(y) = \int_{0}^{1} f_{X,Y}(x,y) dx = n(n-1)y^{n-2} I_{(0,1)}(y)$    Using Beta distribution  We know $X_{(r)} \sim Beta(r,n-r+1)$ So, $X_{(n)} \sim Beta(n,1),X_{(1)} \sim Beta(1,n),Y = X_{(n)} - X_{(1)} \sim Beta(n-1,2)$ $\therefore f_{Y}(y) = {\Gamma(n+1) \over {\Gamma(n-1) \Gamma(2)}} y^{n-2} (1-y) I_{(0,1)}(y) $  I don't understand why the results of these methods are different. I don't know where I got it wrong, can you help me please?


Collection initialization syntax in Visual Basic 2008?

I'm trying to determine if there's a way in Visual Basic 2008 (Express edition if that matters) to do inline collection initialization, a la JavaScript or Python:  Dim oMapping As Dictionary(Of Integer, String) = {{1,"First"}, {2, "Second"}}   I know Visual Basic 2008 supports array initialization like this, but I can't seem to get it to work for collections... Do I have the syntax wrong, or is it just not implemented?


Javascript custom button stopped working, Synchronous XMLHttpRequest is deprecated

We have a custom javascript button on the quotes object in our org that has been working for several months that someone has noticed today is not working.    I'm not sure if there was an update that broke it or what day exactly it stopped working.  I'm hoping someone has an idea of where I can even begin to look.   Here's the code:   javascript:location.href= 'mailto:emailaddress@ourdomain.com?SUBJECT='+ escape("{!Quote.Name}")+' - '+ escape("{!Quote.Contact_s_Account__c}") + '&BODY=Please convert ' + escape(location.href)+ ' into a proposal and send it to the email address on the quote.  Thanks!';   Using developer tools in chrome, I see this error after I click the javascript button:   presence: onFailure in event parser ={"status":-5,"statusText":""}page load happens value=true           umps1w4.salesforce.com/umps/UMPSWidget_184/js/dist/umps-min.js?cflag=184.36:14 presence: onFailure in event parser ={"status":-5,"statusText":""}page load happens value=true   I changed my code to something simple:   javascript:location.href= 'mailto:emailaddress@ourdomain.com?SUBJECT='hello'    and got this error in the developer tools in chrome:   Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.   This lead me to the conclusion that I'm having XSS issues.  I do remember a SF update not too long about about protecting against XSS issues.  I guess I'll have to figure out a different way to implement this functionality.


Possible Duplicate:          You have 12 balls and you know that they all weigh the same except for 1 which is heavier or lighter than all the others (you don't know which though). How can you make sure you know which ball is the heaviest/lightest in only 3 weighings?  The way I approached it was to split up the 12 balls into three sets of 4 and weigh two of the sets. If the sets balanced the scale, then I know the ball I am looking for must be in the set of 4 balls not weighed, else, I disregard said set and arbitrarily choose the heaviest set of 4 (as opposed to choosing the lightest set). I split the heaviest set of 4 balls into 2 and weigh that... etc.  Repeating this process until all 3 tries have been "used up", even if everything just so happened to be in your favor (the arbitrary choice you have in choosing the heaviest or lightest set happens to be the correct choice) in the end you still end up having to choose between 2 balls. A 50% chance is good, but I am wondering, is there a way to make sure 100%?


I have successfully upgraded from Ubuntu 15.04 to Ubuntu 15.10 using do-release-upgrade on my Acer Aspire E11 laptop. However the whole computer freezes (i.e. gets unresponsive) after some minutes of work. It's impossible to switch to text screens and there is nothing in the logs.    Windows is working well on the same machine, so perhaps there is a problem somewhere in Linux or its drivers. The problem is not caused by the system upgrade. The problem is there also on a fresh installation of 15.10. The problem is not caused by faulty RAM. The memtest86 was able to run successfully for 14 hours. The problem doesn't seem to be related to WiFi because it occurs even if WiFi is deactivated in the menu, i.e. Enable Wifi is unchecked. If Chromium browser is not running the system never freezes. How is it possible for the user-space application to block the whole system? The system freezes even if Chromium browser is not used, but it doesn't happen so often in this case.   Honestly I don't know how to debug such a situation. How to obtain useful information from a frozen system? What shall I look for? What to enable/disable? What to try?


Why we use exactly 50 Hz and 60 Hz, instead of 100 Hz or even 400 Hz  1-is it for light  2-is it for the speed of ac motors  Can I use a machine that work in 50 Hz ac network, in 60 Hz network    This picture shows a motor of 15 KW 220-230V /50HZ this motor run a water pumpe My question is: can this motor work in 60 Hz network without damage Will it's speed increase


$L^p$ integrable but not $L^q$ integrable

Does there exist a continuous function on $[0, \infty)$  such that it is in $L^p(0,\infty)$ for some $p\in [1,2]$ but is not in $L^q(0,\infty)$ for any $q\in (2, 2/(2-p))$?    Thanks!


Eigenvalues of an almost diagonal matrix

I know that the eigenvalue of a diagonal matrix is simply the values in the diagonal. However, if I have a matrix of the following form: $$ \begin{bmatrix} a & b & 0 & 0 \\ b & c & 0  & 0 \\ 0 & 0 & d & e \\ 0 & 0 & e & f \end{bmatrix}. $$ Is there a closed form way to express the eigenvalues of this matrix? I can derive the eigenvalue of the smaller blocks along the diagonal, but how does it relate to the overall matrix?


Why do i need to specialize my template class to use it in c++?

I m really sorry if this question's origin reside in my profound lack of understanding of the template concept itself. I had defined the following class. #include <iostream>  template <typename T> class T3B_data{ public:     T3B_data<T>();     ~T3B_data<T>();     void fromText(std::istream& is);     void fromText(const std::string& textPath);     void fromBinary(std::istream& is);     std::ostream & toText(std::ostream& oStream)const;     std::ostream & toBinary(std::ostream& oStream);     friend inline std::ostream& operator << (std::ostream & oStream,const T3B_data<T> & data){         return data.toText(oStream);     } private:     T * mObj; };  In order to make a simple template test i tried the following main in order to instantiate it #include "T3B_data.h"  int main(void){   T3B_data<int> * myData = new T3B_data<int>();   return 0; }  i don t get why did i had to instanciate the template explicitly by adding: template class T3B_data<int>;  at the end of the header file for the compiler to find the class constructor. Note : I m fully aware that appending the line actually force a whole new class generation. i just don t get why the code in the main did not actually force template instanciation at compiler level. Note 2: I m quite sure i m making something wrong, because when using STL containers i do not need to instanciate it whenever i use it with a self defined type like : struct myStruct{     int a;     std::string; }; std::vector<myStruct> a;  Thanks in advance to any people sharing interest in this question. EDIT : Something must be utterly wrong in my implementation, as i move my header file into my main and stubbed implementation using {} at end of declaration. and everything compiles fine without the template class T3B_data; declaration. Question ending up being a duplicate to


If we go to space why isn't the temperature high?

We know that the temperature in space (which has vacuum) is low. If I go to space will I feel sweaty and hot or chilly? I think I will feel sweaty and hot because the radiation (UV, IR, etc) of the sun is hitting me directly. This question is just theoretical so assume I go to vacuum without a space suit.


What's the difference between the following    By the 18th century, the Portuguese in India lost their commercial influence. By the 18th century, the Portuguese in India had lost their commercial influence.   Thank you.


Python Script to import obj and create collections

I’m having trouble updating a script that worked in Blender 2.7 over to 2.8. Since Scene Layers have been changed over to Collections. The script takes all the OBJ files from a location and brings them into Blender, which is working great.    The issue is after the objects are added to their collections there is also another "linked" copy in the Outliner.  Why is this a problem? I want to hide all the collections apart from the first one. Having these linked objects means when I try and hide the collection the object(s) stay visible.    Does anyone know how I can import objects into a collection without it linking a new copy?  I tried bpy.ops.object.move_to_collection function instead of linking objects. But I could not make it work in my script.  Here is the script:    import bpy import os import glob  directory_im = 'C:/Users/mila/OneDrive/Desktop/OBJ for test/' files = glob.glob(directory_im + "*.obj") for f in files:     head, tail = os.path.split(f)     collection_name = tail.replace('.obj', '')     bpy.ops.import_scene.obj(filepath=f)     myCol = bpy.data.collections.new(collection_name)     bpy.context.scene.collection.children.link(myCol)     for ob in bpy.context.selected_objects:         myCol.objects.link(ob)   And this is how it looks like after the import:


Profile doesn't update everywhere if I remove a website link

Steps:   Create profiles on multiple Stack Exchange sites with a website link everywhere. Go to one of the sites, edit your profile, remove the website link, Click save.   Expected: The website link is supposed to be removed from all the linked profiles on SE network sites.  Observed: The website link is removed only from the profile you edit.


$f$ is continuous iff $G(f)$ is a closed set in metric spaces

The graph of $f$ is $G(f) = \{(x,f(x)) : x\in X\} \subseteq X\times Y$ $X$ and $Y$ are metric spaces. $Y$ is compact. $f$ is continuous iff $G(f)$ is a closed set. I got the closest answer  but I tried it by myself first and got stuck at one point and I need help on that particular situation which I didn't get anywhere else/ $\Rightarrow$ part: Let $(z_n)=(x_n,f(x_n))\in G_f$ be a convergent sequence of $G(f)$. If $(x,y)$ is its limit. We have to show that $y=f(x)$ in other words $(x,y)\in G_f$. $x_n \to x$ $\Rightarrow$ $f(x_n)\to f(x)$[By continuity of $f$.] $\Rightarrow f(x)=y$ by uniqueness of the limit. Hence $G_f$ is closed. $\Leftarrow$ part: Let $x\in X$ and $(x_n)$ a convergent sequence with limit $x$. You have to prove that $(f(x_n))$ is convergent in $Y$ with limit $f(x)$. I have used the sequence $z_n=(x_n,f(x_n))$ and $G_f$ is closed in the compact space $Y$ and hence $G_f$ is compact. Then there is subsequence $(x_{n_k},f(x_{n_k})) \to (x,y)\in G_f$. Then we will have $y=f(x)$ but how do I prove that $f(x_n) \to f(x)$? It is true that every subsequence of $f(x_n)$ has a subsequence converging to $f(x)$.


How to pass an argument as a new command's name?

\documentclass{article}  \newcommand*{\DefineRealCommand}[1] {     {The real command name is: #1}     \newcommand*{\#1}{I am the real command.} }  \DefineRealCommand{HelloCommand}  \begin{document} \HelloCommand \end{document}   My purpose is obvious. However, the simplest tex file cannot be compiled.  How should I implement it correctly?


Problem with miktex-20.6.29-x64 and BibteX

Two days ago I installed the new MikteX on my Ubuntu. Since then I can't compile the text, with which I had no problem before that. I tested the file with the older version of Miktex on my laptop and it worked. The error with the new version is the following:  This is BibTeX, Version 0.99d (MiKTeX 20.6.29) The top-level auxiliary file: Test.aux I found no \citation commands---while reading file Test.aux I found no \bibdata command---while reading file Test.aux I found no \bibstyle command---while reading file Test.aux (There were 3 error messages) Process exited with error(s)  The error appears only when I use BibteX. I'm not sure if it's relevant, but here is my code: \documentclass[ 10pt, parskip=half, listof=totoc, bibliography=totoc, index=totoc, ]{scrbook} \setuptoc{toc}{totoc}  \usepackage[includehead=false, includefoot=false, paperheight=240mm, paperwidth=170mm,  twoside=true, left=25mm, right=20mm, top=35mm, bottom=20mm]{geometry}  \usepackage[LAE,LFE,T1]{fontenc} \usepackage[english,greek,farsi,main=ngerman]{babel} \usepackage{scrlayer-scrpage} \usepackage{lmodern} \usepackage[authordate-trad,backend=biber,natbib]{biblatex-chicago}  \addbibresource{ref.bib}  \begin{document}  \frontmatter \begin{titlepage} \centering \vspace*{1cm} {\bfseries \Large Titlepage\par} \end{titlepage}  \chapter{Abstrakt} \tableofcontents \listoffigures \listoftables  \mainmatter \chapter{Something1} Somethings in chapter 1. \citep{Pr20} \chapter{Something2} Somethings in chapter 2.  \backmatter  \printbibliography[]  \end{document}  I appreciate any help and clues.


How diodes protect H-bridge DC motor driver?

I don't really understand how these diodes in this circuit and similar circuits (like driving a relay circuit) protects the controller circuit from the energy stored by the inductance of the coil. I really appreciate if someone could graphically explain it. ( I mean how the the diodes block the current and etc)  the second question about this circuit is the capacitor. what happens if it isn't there?


How to create a graphic of a text with transparent background

I make custom cursors for Tumblr blogs and this was a request, but I can't seem to figure out how to make all but the words transparent; even the spaces in the loops need to be transparent:


A map is continuous if and only if for every set, the image of closure is contained in the closure of image

As a part of self study, I am trying to prove the following statement:  Suppose $X$ and $Y$ are topological spaces and $f: X \rightarrow Y$ is a map. Then $f$ is continuous if and only if $f(\overline{A})\subseteq \overline{f(A)}$, where $\overline{A}$ denotes the closure of an arbitrary set $A$.   Assuming $f$ is continuous, the result is almost immediate. Perhaps I am missing something obvious, but I have not been able to make progress on the other direction. Could anyone give me a hint which might illuminate the problem for me?


Is there an easy way of using line thickness as error indicator in a plot?

I have several curves/datasets (obtained from Monte Carlo simulations) with x-dependent y errors I would like to plot with the errors somehow indicated. Since each curve consists of quite a large number of data points with rather small errors, using ordinary errorbars doesn't seem to be the most informative/aestethic solution. Instead, I think it would be nicer to indicate the error by (local) line thickness (or thickness in the y-direction). It could e.g. be done by plotting y(x)+dy(x) and y(x)-dy(x) and fill between the two curves. But how does one do that (in a reasonably easy way - remember: I have several curves!) in Pgfplots?  My question is maybe somewhat similar to , but I don't know how to do the table manipulations (within Pgfplots) needed in my case.  Here's a simplified example of how my datafiles look:  x y dy 0 2 0.1 1 4 0.5 2 3 0.2 3 3 0.3


Converting a high resolution png format logo to tikz

I have a logo in png format (black and white) for my University that needs to be used in different colours. For a set of forms that a couple of students are developing, it is essential to change logo colour depending on the form that it is being used in.  The logo is really complex (very few straight lines).  I have searched but there does not seem to be a way to use \includegraphics to change image color. So, the possible solution that I have hit upon involves converting the logo to tikz code and then using the full power of xcolor package should become possible. That leads to a second question - how do I convert a png image to tikz code?  I have been using geogebra to generate tikz code from stuff I draw, but I do not think (haven't tried) if that will work for an image imported into geogebra.


Mage Secret Duplicate interaction with AoE damage

Let's take for example, enemy mage has Dr Boom at 2 health, and some other minions also at 2 health. She has a duplicate secret up. If I consecrate (deal 2 damage to all enemies) and kill all the enemy minions simulataneously, which minion would get duplicated?


I'm writing a python file exporter for Blender 2.91. How can I make temporary duplicate objects/meshes and apply all modifiers to them for export?

I had an existing python exporter for Blender 2.7 which iterated through all the visible objects in the scene, grabbed any child meshes and duplicated them, applied modifiers, triangulated the duplicate and exported it, leaving the original untouched. This worked like so: processedMesh = mesh.to_mesh( bpy.context.scene, True, 'PREVIEW' )      bm = bmesh.new() bm.from_mesh( processedMesh ) bmesh.ops.triangulate( bm, faces=bm.faces ) bm.to_mesh( processedMesh ) bm.free() del bm  # translate processedMesh data for export  In this example, to_mesh() was responsible for applying the modifiers. However, according to the , to_mesh() no longer takes these parameters and it appears to work differently. Is there another way to accomplish this goal? I had thought after some research that I might have to duplicate the parent objects (rather than the meshes) but it's all a bit too opaque to know for sure.


Is there a correct resistance value for I2C pull-up resistors?

of the 24LC256 EEPROM states that:     The SDA bus requires a pull-up resistor to VCC (typical 10 kΩ for 100 kHz, 2 kΩ for 400 kHz and 1 MHz).   I thought that any resistor with a kΩ value would do the job (and it seems that my EEPROM works fine at different frequencies with a 10 kΩ resistor).  My questions are:   is there a correct value for pull-up resistors ? is there a law/rule to determine this value ? how do different resistance values affect the I²C data bus ?


Experimental proof of gravity propagation?

The last research aim to find gravitons which are boson, so if I correctly understand they are virtual particles.  Out of theorical assumptions,  Is there exist an experimental proof that the propagation of the gravity isn't instantly ?   I try my best to write correct english, I hope you understand my question.


Prove there does not exist any epimorphism of $(\mathbb{Q}, +)$ onto $(\mathbb{Z}, +)$. How do I proceed on this?


As you can see above, It does not appear to be enabled in the comments. Android app version: 1.0.57  Android version: 4.1.2


Photoshop, no infinit move with the spacebar?

I user the spacebar to move in my document, when i zoom i can use spacebar to move to the infinit but when i unzoom, the document stay at center and i can't go on the left side at infinit.


To show that the limit of the sequence $\sum\limits_{k=1}^n \frac{n}{n^2+k^2}$ is $\frac{\pi}{4}$

Show that $$\lim_{n \to \infty} \sum\limits_{k=1}^n \frac{n}{n^2+k^2} = \frac{\pi}{4}.$$  I am familiar with Taylor series and Fourier series of the standard functions. I tried to compare with those and see if there is a relation, I don't seen to find any. How do I tackle this?


How to check if your ISP does video throttling?

I’ve recently changed my ISP and noticed that I no longer can watch video sites like YouTube in real time; I need to wait for buffering first. On both ISPs, my speed was same 5 megabits per second.  I’ve checked normal download of files, and torrents, and they all work fine. Also, checked other video sites, same problem. Used other PC, same problem.


How to create an unnumbered subsection in a subsection?

2 Measurement Setup Some text some text some text some text some text some text some text some >text some text some text some text some text some text some text some text >some text some text 2.1 Radar Equipment Some text some text some text some text some text some text some text some >text some text some text some text some text some text some text some text >some text some text 2.1.1 Ultra Wideband Radar Some text some text some text some text some text some text some text some >text some text some text some text some text some text some text some text >some text some text M-Sequence Pseudo-Noise Generator Some text some text some text some text some text some text some text some >text some text some text some text some text some text some text some text >some text some text Dual-Polarized Vivaldi Antenna Some text some text some text some text some text some text some text some >text some text some text some text some text some text some text some text >some text some text 2.1.2 Frequency Modulated Continuous Wave Radar Some text some text some text some text some text some text some text some >text some text some text some text some text some text some text some text >some text some text 2.2 Stepper Motors 2.3 Test Objects  I am not clear on how to create the bold text unnumbered sections and I don't want to have more then 3 Levels


What did Whitehead and Russell's "Principia Mathematica" achieve?

In philosophical contexts, the Principia Mathematica is sometimes held in high regard as a demonstration of a logical system.  But what did Whitehead and Russell's Principia Mathematica achieve for mathematics?


When I start the OS this is what I get after I login in (see the pic). I can't get into the desktop. I think the problem started when I uninstall python3 but I couldnt find any solution. I'm using a virtual machine, but I dont wanna loose my files. Any help would be usefull.


Title Capitalization of Keywords in Programming Languages

Possible Duplicate:         In programming language documentation, it is common for keywords to appear in titles. Assuming that the keyword is strictly lowercase in the language, how should that keyword be capitalized if it is used as the first word in a title?  For example:  int int is used to specify an integer type.  -- or --  Int int is used to specify an integer type.


Change MacBook Pro OS X Apple ID ownership

Over a year ago I bought a second hand MacBook Pro on ebay. Unfortunately the original owner did not reinstall the operating system and in fact it came together with Photoshop and Microsoft Office.  My problem is that I am unable to update certain apps (e.g. iPhoto and iMovie), strangely enough I managed to update from Yosemite to El Capitan.   I tried to format and reinstall the operating system, as many forums suggest doing, however when opening the App Store I still get a prompt to login with the previous owner's email address and I am unable to proceed. Also it's strange that despite reinstalling the OS, I still have pre-installed Photoshop and Office.  I would prefer not having to contact the owner asking for his password.  What can be done? Did I do something wrong during the OS reinstall (considering Photoshop and Office are still on it)?


I am trying to show why the OLS estimator in time series models is not conditionally unbiased when using a zero-mean strong AR(1) model. From what I've read so far, this can be done through a Monte Carlo simulation as in ,, and . Is this the only way we can prove it?


Determine the equation of a line that is perpendicular to the lines r1 and r2 and passes through their point of intersection

Determine the equation of the line that is perpendicular to the lines $\boldsymbol{r}_1(t)=\langle 4t,1+2t,3t \rangle$ and $\boldsymbol{r}_2(s)=\langle -1+s,-7+2s,-12+3s \rangle$ and passes through their point of intersection. First, we find the intersection of $\boldsymbol{r}_1(t)$ and $\boldsymbol{r}_2(s)$, $\left\{     \begin{alignedat}{3}     4t &= -1+s \\     1+2t &= -7+2s \\     3t &= -12+3s     \end{alignedat}     \right. \rightarrow     \left\{     \begin{alignedat}{3}     4t-s &= -1\\     2t-2s &= -8 \\     3t-3s &= -12     \end{alignedat}     \right. \xrightarrow{R_1-2R_2}     \left\{     \begin{alignedat}{3}     3s &= 15\\     2t-2s &= -8 \\     3t-3s &= -12     \end{alignedat}     \right. \rightarrow     \left\{     \begin{alignedat}{3}     s &= 5\\     2t-2(5) &= -8 \\     3t-3(5) &= -12     \end{alignedat}     \right. \rightarrow     s = 5, t = 1 \\[5pt]$ The two vectors intersect at $(4,3,3)$ The cross product of two non-parallel vectors is a vector that is perpendicular to both of them, \begin{align*} \vec{V_1}(4\hat{i}+2\hat{j}+3\hat{k}) \times \vec{V_2}(\hat{i}+2\hat{j}+3\hat{k}) &= 8\hat{j}- 6\hat{k} \end{align*} Now here is where I've lost track - not even sure if I am on the right path. I've been trying to figure out this problem for a few hours now and I don't really know where to go. Breaking my brain trying to figure this out


I lost a device's power adapter, what should i seek for a new power adapter?

i bought an expensive desk lamp from the US called , i lost the power adapter, so my questions are as you are electrical engineers: 1) can i use it in israel  ? does it lose its peak because the countries difference? 2) what power adapter should i seek for when buying?


A subgroup that contains the powers of 2 of all elements contains the commutator

The question is as follow:     $G$ is a group. $N$ is the smallest subgroup of G the contains {$ g^2 | g \in G$}. Prove that $N \triangleleft G$ and $G/N$ is abelian.   So my plan is to use the theorem that states that:     $G'\leq N \iff N\triangleleft G , G/N  $ is abelian   so I have problems to show now that $G'\leq N$ any help is appreciated!.


How can I mount a pannier rack on my (carbon fibre) Trek Madone 4.5?

I want to be able to mount a rack on the back of my trek madone but it has no braze-ons and I can't mount a rack to the QR because of a little wall/lip thing surrounds the QR.


How prove $e^x|f(x)|\le 2$ if $f(x)=\int_{x}^{x+1}\sin{(e^t)}dt$


How to append elements to an empty list within an empty list?

I would like to append to a single list within a list, without appending to all the 'sibling' lists at the same time.   Suppose I have an empty list of empty lists in Python, such as the following:      from math import pi     test = [[]] * 3     test     Out[88]: [[], [], []]   Now suppose I want to append an element only to the first nested list. I would say that selecting the first list, index 0:      test[0]     Out[89]: []   and appending to that list as follows:      test[0].append(pi)   should yield a list that looks as follows:      [[3.141592653589793], [], []]   However, when printing the result, I get the following:      test     Out[91]: [[3.141592653589793], [3.141592653589793], [3.141592653589793]]   Can anyone point out where I am making my mistake?  Thanks in advance.


What do we mean when we say that $x \in \mathbb R$

When we say that $x \in \mathbb R$ does here $x$ represents all real numbers at the same time or $x$ represents only a single real number at one time. How can a single variable($x$) represent all the real numbers at the same time ? when we write $x \in \mathbb R$ it means that $x$ is an element of the set of real numbers, this means that $x$ represents a single real number but then why we start to treat it as if $x$ represents all the real numbers as in inequality suppose we have $x>-2$ this means that $x$ can be any real number greater than $-2$ but then why we say that all the real numbers greater than $-2$ are the solutions of the inequality. $x$ should represent a single real number right ? then how can $x$ represents all the real number.Please help me....


Google Search Console reports "Crawled - currently not indexed" for many pages

What are the possible reasons for this? What Can I do? How to Indexing the URL's. Almost All URL's are Not Indexing in SERP's.  Its About Manga/Comic Website. Almost 35 days Old Domain. There are a lot of exclude tab issues. But one of the major issue is "Crawled - currently not indexed". Anyone help me with this issue?


Shell script doesn't work when run from startup applications

I have created a script to modify my touchpad settings, based on the   I've done the following:  synclient -l > touchsettings   to create a file named 'touchsettings' containing all my touchpad's settings.  Then I used gedit to edit the settings as I want them, as well as adding a hash bang to the start of the script. I ran  chmod u+x touchsettings   to give the file execute permission.  The script does what it's supposed to if I then run ./touchsettings  But when I add the script to startup using the Startup Applications GUI (Add > Browse, then browse to file location of touchsettings), then restart the computer, touchpad functionality stops working entirely.  Why does this script work fine when calling ./touchsettings, whereas it breaks the touchpad when called at startup?


Facebook API using Java - NullPointerException error

I am working with Facebook API using the restfb library of Java. I wrote a code to get a user's timeline posts but I am keep getting the java.lang.NullPointerException error.  import com.restfb.Connection; import com.restfb.DefaultFacebookClient; import com.restfb.FacebookClient; import com.restfb.types.Page; import com.restfb.types.Post; import com.restfb.types.User; import java.util.List;  public class FacebookAPI {       public static void main(String[] args) {         String accessToken = ""; //No I did not forget that         FacebookClient fbClient = new DefaultFacebookClient(accessToken);         //For some reasons the "DefaultFacebookClient" object is shown strikethrough formated in my IDE, idk what it means.          Page page = fbClient.fetchObject("BillGates", Page.class);         Connection<Post> postFeed = fbClient.fetchConnection(page.getId()+"/feed",Post.class);             for(List<Post> postPage : postFeed){                 for(Post aPost : postPage){                     System.out.println(aPost.getFrom().getName());                     System.out.println("-->"+aPost.getMessage());                     System.out.println("fb.com/"+aPost.getId());                  }             }      }  }      Output:      Exception in thread "main" java.lang.NullPointerException     at   facebookapi.FacebookAPI.main(FacebookAPI.java:34)   Line 34 is the second for loop.


What if your advisor does not know anything about your research field?

I  am a PhD student in Mathematics. I have found one advisor in my local University who does not know my research field at all, but  has allowed me to choose my own problems and solve them independently. Initially, I was quite happy as I didn't need to switch places (which I don't want at all). The problem started when my advisor could not assist me in solving the problems I chose. It even happened that I chose a problem to work on and when I told him about it, he said that's an excellent problem and I should solve it.Later on after meeting another professor  in this field he told me that it has been solved long before and hence I had no point working on that again. He does listen to me when I say something about the problems but fails to give me any critical feedback in my topic. I searched the web but there are so many directions of the topic I am working on, I am feeling puzzled which way to go. Moreover there is no research group existing in this field in my local University with whom I can discuss or get some inputs abut my problems. I am unable to answer the following questions of mine which is affecting my research considerably:  1.Has my decision to stay in my hometown and not go to reputed institutes and talking to experienced professors backfired on me? How can I come out of this situation? 2.Is  PhD done in this way only without any help from anyone ?At least my advisor says so.  Any comments/advice will be helpful.


How to draw the crossings in a tikz picture?

I would like to draw this picture by tikz:  This is what I could achieve for now: \documentclass{standalone} \usepackage{tikz} \pagecolor{yellow}  \begin{document}  \color{orange!80!red}  \begin{tikzpicture}     \clip (-0.5,-0.5) rectangle (.5,.5);          \begin{scope}[xshift=4,yshift=12.4]         \fill (0,0) circle (0.05);     \end{scope}          \begin{scope}[xshift=10.5,yshift=-8.5]         \fill (0,0) circle (0.05);     \end{scope}          \begin{scope}[xshift=-11.5,yshift=-5.5]         \fill (0,0) circle (0.05);     \end{scope}          \clip[xshift=4,yshift=12.4] (0,0) circle (0.06) [insert path ={(-2,-2) rectangle (2,2)}];     \clip[xshift=10.5,yshift=-8.5] (0,0) circle (0.06) [insert path ={(-2,-2) rectangle (2,2)}];     \clip[xshift=-11.5,yshift=-5.5] (0,0) circle (0.06) [insert path ={(-2,-2) rectangle (2,2)}];          \begin{scope}[rotate=-70]         \clip (-0.015,0.005) ellipse (0.17 and 0.46) [insert path ={(-0.5,-0.5) rectangle (.5,.5)}];         \fill (0,0) ellipse (0.2 and 0.5);     \end{scope}          \begin{scope}[rotate=50]         \clip (-0.015,0.005) ellipse (0.17 and 0.46) [insert path ={(-2,-2) rectangle (2,2)}];         \fill (0,0) ellipse (0.2 and 0.5);     \end{scope}          \begin{scope}[rotate=-10]         \clip (-0.015,0.005) ellipse (0.17 and 0.46) [insert path ={(-2,-2) rectangle (2,2)}];         \fill (0,0) ellipse (0.2 and 0.5);     \end{scope}          \begin{scope}[xshift=-0.33,yshift=0.05]         \fill (0,0) circle (0.08);     \end{scope}  \end{tikzpicture}  \end{document}  I don't know how to draw the crossing of each ellipse. Note that the background color is not determined and may NOT be white, so one can't just draw a wider ellipse of background color behind each ellipse. I believe this can be achieved by multiple use of \clip, just like the three circle I've drown here, but for the ellipses it seems more tricky and I have no idea with it. Do you have any suggestions?


ResourceNotFoundException - Trying to get icons based on String value

i am using web service to get weather list from api.forecast.io. when i get the parameter string icon, i am parsing the string icon value from api and get the icon resource from class utility with viewholder  vh.icon.setImageResource(Utility.getIconfromWeatherCond(item.getIcon()));   this is method for getIconfromWeatherCond  public static int getIconfromWeatherCond (String icon) {     if (icon=="clear-day") {         return R.drawable.ic_clear;     }     else if (icon=="clear-night") {         return R.drawable.ic_clear;     }     else if (icon=="rain") {         return R.drawable.ic_rain;     }     else if (icon=="snow") {         return R.drawable.ic_snow;      }     else if (icon=="sleet") {         //hujan campur es         return R.drawable.ic_snow;     }     else if (icon=="wind") {         return R.drawable.ic_cloudy;     }     else if (icon=="fog") {         return R.drawable.ic_fog;     }     else if (icon=="cloudy") {         return R.drawable.ic_cloudy;     }     else if (icon=="partly-cloudy-day") {         return R.drawable.ic_light_rain;     }     else if (icon=="partly-cloudy-night") {         return R.drawable.ic_light_rain;     }     else if (icon=="hail") {         return R.drawable.ic_snow;     }     else if (icon=="thunderstorm") {         return R.drawable.ic_storm;     }     else if (icon=="tornado") {         return R.drawable.ic_storm;     }     return -1; }   but when iam trying to runing on my device i get error like this. android.content.res.Resources$NotFoundException: Resource ID #0xffffffff what should i do??


Alter Auto-Property Behavior using Custom Attribute

I have a class with two different properties that map to the same value:   class MyClass {     public int Number { get; set; }     public string NumberString {         get { return Number.ToString(); }         set { Number = int.Parse( value ); }     } }   The second property (here NumberString) simply gets or sets the first property (here Number) using a different type. The code is rather trivial, but results in a lot of boilerplate code when I have many of these "buddy" properties.  Is it possible to do the conversion using a custom property? I would prefer if I could write the second property something like this:  [MapsTo(nameof(Number))] public string NumberString { get; set; }   The attribute should then be able to do the conversion for me (maybe based on some rules I make depending on type).  I have the impression that this could be done with something like PostSharp, but is it possible with custom attributes?


Out-of-resources when trying to run a popular DataExplorer query

So, I tried to run this query    which has many views (so I assume it's popular), but I get a message saying:     The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.   Now, true, that's not a trivial query, but is it really that bad? There isn't even a Join or anything.


I want to capture the screen in my code to get an image - like using the 'print screen' button on the keyboard .  Does anyone have an idea how to do this? I have no starting point.


What is the difference between a subdivision surface modifier and multiresolution modifier?

I'm currently modeling my game character in Blender (see below picture).  What is the difference between a subdivision surface modifier and a multiresolution modifier? I know they smooth the surface but are there specific characteristics to using each and what are those?


There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use one way over the other.  First type:  List<string> someList = <some way to init> foreach(string s in someList) {    <process the string> }   Other Way:  List<string> someList = <some way to init> someList.ForEach(delegate(string s) {     <process the string> });   I suppose off the top of my head, that instead of the anonymous delegate I use above, you'd have a reusable delegate you could specify...


I have a new Macbook Pro and I want it to last and keep a healthy battery.  How do I best ensure this?    If I am using it, do I let it discharge, or leave it plugged in?  If I am discharging it / allowing it to be unplugged, should I plug it in again when it reaches a certain %? Is there a particular battery level I should wait for before shutting down / recharging? When is it okay to close the lid vs. shutting down completely?    If it matters, I use my Macbook Pro daily, and I take it to work with me so I can do some coding when I have downtime at work.


What happens to a polymorphed character if he is shorn as a sheep?

So I'm playing a wild magic sorcerer and rolled a 78 on my Wild Magic Surge, polymorphing me into a sheep after my unsuccessful wisdom save.  My friendly companion now wants to shear me, but I will turn into my previous form in an hour.  If they shear me and polymorph ends, what will happen with my wool? Will I loose hair on my real body? Will the wool disappear?    Our DM made the following ruling, considering []:     You can shear the sheep.           A successful Animal Handling check is needed vs the sheeps Insight     check. If the sheep is charmed or tamed (by whatever action) you get     advantage on the Animal Handling throw.


What is the importance of a 4-terminal shunt resistor? What is real purpose behind using two seperate terminal for the voltage measurement across the shunt resistor?


Upvotes and Downvotes details in timeline is by-design?

Timeline can be view by anyone, so vote details in timeline is a little bit contradict with      1000       Show total up and down vote   counts   in , but I hope this not to be changed :-)  For example  and timeline is , also a screen shot below.    PS:I mean there is a work-around in timeline view to see up/down details without having 1000 reps. :-)


Define new command which insert environment

Am i able to do something like this: (without defining new environment)  \newcommand{\code}[2] {      \begin{lstlisting}[language=#1]         #2     \end{lstlisting}  }   I don't want to write:  \begin{code}{python}     >>> print "Hello World!" \end{code}   I want to be able to write:  \code{python}{>>> print "Hello World!"}


I get an Ansi string instead of Utf-8 from Utf-8 mysql table

When I moved from php mysql shared hosting to my own VPS I've found that code which outputs user names in UTF8 from mysql database outputs ?�??????� instead of 鬼神❗. My page has utf-8 encoding, and I have default_charset = "UTF-8" in php.ini, and header('Content-Type: text/html; charset=utf-8'); in my php file, as well as <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> in html part of it.   My database has collation utf8_bin, and table has the same. On both previos and current hosting in phpmyadmin for this database record I see: й¬јзҐћвќ—. When I create ANSI text file in Notepad++, paste й¬јзҐћвќ— into it and select Encoding->Encode in UTF-8 menu I see 鬼神❗, so I suppose it is correct encoded UTF-8 string.   Ok, and then I added   init_connect='SET collation_connection = utf8_general_bin' init_connect='SET NAMES utf8' character-set-server=utf8 collation-server=utf8_general_bin skip-character-set-client-handshake    to my.cnf and now my page shows й¬јзҐћвќ— instead of ?�??????�. This is the same output I get in phpmyadmin on both hostings, so I'm on a right way. And still somehow on my old hosting the same php script returns utf-8 web page with name 鬼神❗ while on new hosting - й¬јзҐћвќ—. It looks like the string is twice utf-8 encoded: I get utf-8 string, I give it as ansi string to Notepad++ and it encodes it in correct utf-8 string.   However when I try utf8_encode() I get Ð¹Â¬ÑÐ·ÒÑÐ²Ñâ, and  utf8_decode() returns ?�???????. The same result return mb_convert_encoding($name,"UTF-8","ISO-8859-1"); and iconv( "ISO-8859-1","UTF-8", $name);.   So how could I reproduce the same conversion Notepad++ does? See answer below.


What's the difference between Invoke() and BeginInvoke()

Just wondering what the difference between BeginInvoke() and Invoke() are?   Mainly what each one would be used for.  EDIT: What is the difference between creating a threading object and calling invoke on that and just calling BeginInvoke() on a delegate? or are they the same thing?


How to configure exchange 2010 to be used as an external smtp relay?

I'm currently trying to configure our exchange 2010 to be used as a external smtp relay. What I'm trying to do is allow certain websites that we manage to send email using our exchange server smtp relay. I was told that I needed to created a receiver connector under Server Configuration>Hub Transport. After I created the receiver connector I added the following confi in which I added the website IP address in the "Receiver mail from remote servers ect" then unders Authentication I selected Externally Secured,TLS and under permissions I selected exchange servers.   I went to one of our websites and configure it with this configuration and I'm still getting "SMTP connect failed."  Can someone help me? or what is the  proper way to get this to work. Multiple websites are going to be using this exchanger server SMTP relay in a secure way.


In Java or Groovy, how to find file type of byte[]?

I have a byte[] that I got through the wire and want to verify that it's a JPEG. How can this be done?  Essentially, without having to write out a file, I'd like to do, more-or-less, what the file command does:  $ file aoeu.jpeg aoeu.jpeg: JPEG image data, JFIF standard 1.02


I would like to know if my proof below is correct.       Problem Show that $GL_n(\mathbb{F})$ is a finite group iff $\mathbb{F}$ has a finite number of elements.   Solution   If $\mathbb{F}$ is a finite field and say $\vert \mathbb{F} \vert = m$, then the set of all $n \times n$ matrices, which is a superset of $GL_n(\mathbb{F})$, where the elements comes from $\mathbb{F}$ has cardinality $m^{n^2}$. Hence, $\vert GL_n(\mathbb{F}) \vert < m^{n^2}$ and thereby $GL_n(\mathbb{F})$ is a finite group. If $GL_n(\mathbb{F})$ is a finite group, note that for every non-zero element $a \in \mathbb{F} -\{0\}$, the matrix $aI_{n \times n}\in GL_n(\mathbb{F})$, where $I_{n \times n}$ is the identity matrix with the multiplicative identity along the diagonal. This means $\vert \mathbb{F} \vert \leq GL_n(\mathbb{F}) + 1$ and thereby $\mathbb{F}$ is a finite field.     Thanks


Showing $1<\frac{1}{\sqrt{1+x}}+\frac{1}{\sqrt{1+a}}+\sqrt{\frac{ax}{ax+8}}<2$ for all positive real $a$

Gaokao Math-22, Jiangxi Province 2008:  Define a function $$f(x)=\frac{1}{\sqrt{1+x}}+\frac{1}{\sqrt{1+a}}+\sqrt{\frac{ax}{ax+8}}$$ Prove that, for all positive real number $a$, $1<f(x)<2$.  I tried differentiating but the derivatives got too messy. Tried applying AM GM inequality too but in vain. I believe there lies a more elegant solution to the problem. I' m out of ideas. Please also mention how you came up with the solution.


example of a non differentiable manifold

Take the manifold: The graph of $|x|$ on $(-1,1)$, with the induced topology from $\mathbb{R}^2$. This is a topological manifold, which is homeomorphic to $(-1,1)$ by projection. Is it a differentiable manifold? I believe it is, because we can take an atlas with only the projection, and then we will have only one transition map which is the identity, and therefore differentiable. But I'm not sure I get the definition of a differentiable manifold right...  Thanks!


Why is my Java code giving me a NullPointerException error?

I get a null pointer exception error when I run the method runSnackBar and I can't work out why. When I get this error BlueJ highlights the first line in the randomFlavour method but I have no idea why. Please help.    import java.util.Random;     import java.util.ArrayList;      public class SnackBar     {     private Random randomGenerator;      private String[] packets;      private SnackMachine newSnackMachine;      private ArrayList<Student> students;      public SnackBar(int numOfStudents, int numPackOfCrisps, int cost)     {         randomGenerator = new Random();          String[] packets = {"ready salted", "cheese and onion", "salt and vinegar" , "smokey bacon"};          newSnackMachine = new SnackMachine(numPackOfCrisps , cost);          for(int n=0 ; n < numPackOfCrisps ; n++){             newSnackMachine.addPack(new PackOfCrisps(randomFlavour()));         }         students =  new ArrayList<Student>();          for(int i=0 ; i < numOfStudents ; i++){             students.add(new Student(randomFlavour(), newSnackMachine));         }       }      private String randomFlavour()     {         int index = randomGenerator.nextInt(packets.length);         return packets[index];      }      public void describe(){         System.out.println("The SnackBar has" + students.size() + "hungry students");         System.out.println("The SnackMachine has:" + newSnackMachine.countPacks("ready salted") + "packets of ready salted crisps");         System.out.println("," + newSnackMachine.countPacks("cheese and onion") + "of cheese and onion crisps");         System.out.println("," + newSnackMachine.countPacks("salt and vinegar") + "of salt and vinegar crisps");         System.out.println("," + newSnackMachine.countPacks("smokey bacon") + "of smokey bacon crisps");      }     public void runSnackBar(int nSteps){         for( int x=1 ; x < nSteps ; x++){             System.out.println("Time step" + x);             describe();             int y = randomGenerator.nextInt(students.size());             students.get(y).snackTime();         }       } }


Problems with IE7- DIV not taking parent DIV attribute of overflow:auto;

I am developing a site that has a specified height to it. I have made a DIV and defined the height and added the CSS property overflow:auto. Within this DIV I have another that contains my content and other specific styling. In all other browsers the inner content scrolls vertically just fine if it is longer than the specified height outer DIV height. However, in IE7 (probably in 6 as well) the inner DIV is overflowing the outer DIV. To me it looks like IE7 doesn't see that this DIV is actually a child so it ignores the overflow:auto.  Any ideas what I may need to change?


CORS error when try to display layer from remote geoserver

I am following  in order to add vector tiles using geoserver and OL3. I am using some layer from a remote geoserver which I have access:  var layer = 'myworkspace:arm_trs_roads_osm'; var projection_epsg_no = '4326';   var vectorLayer = new ol.layer.VectorTile({   style:style_simple,   source: new ol.source.VectorTile({     tilePixelRatio: 1, // oversampling when > 1     tileGrid: ol.tilegrid.createXYZ({maxZoom: 19}),     format: new ol.format.MVT(),     url: 'http://ogcserver.gis.wfp.org/geoserver/gwc/service/tms/1.0.0/' + layer +         '@EPSG%3A'+projection_epsg_no+'@pbf/{z}/{x}/{-y}.pbf',     crossOrigin: null   }) })   When I try to display the layer on the map I get the well known CORS error:  Failed to load http://ogcserver.gis.wfp.org/geoserver/gwc/service/tms/1.0.0/my_workspace:arm_trs_roads_osm@EPSG%3A4326@pbf/3/0/4.pbf: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://vagrant-test.local.com' is therefore not allowed access. The response had HTTP status code 404.   I am not sure how to solve this issue. I found this  which says to enable CORS in the tomcat level. But it also says that this feature is available after tomcat 7.0.41 (I have 7.0.39; not possible to upgrade currently).   I have also enabled JSONP in my geoserver config files. But still I get the same error. Which other alternative do I have?


I need a tag or some sort of redstone method to scan for BLANK player scores; scores that haven't even been set to 0. Something like:     /testfor @a[score_null=blank]   The problem is that all scores used to be automagically set to 0, but now player values must be "set/added/removed" to be detected.


Invoking JavaScript code in an iframe from the parent page

Basically, I have an iframe embedded in a page and the iframe has some  routines I need to invoke from the parent page.  Now the opposite is quite simple as you only need to call parent.functionName(), but unfortunately, I need exactly the opposite of that.  Please note that my problem is not changing the source  of the iframe, but invoking a function defined in the iframe.


int main() {       char s[]="stack";      s="overflow"; }   This is not allowed.Its gives an error.But below code works fine.  int main() {       char s[]="stack";       strcpy(s,"overflow"); }   Why this happens?


How to Install JavaFX with openjdk-11-jdk?

I am trying to build  with Java 11.  I installed the OpenJDK 11.  The build process fails when it attempts to link against javafx.  I think I have the javafx packages installed:  > libopenjfx-java/bionic,bionic,now 8u161-b12-1ubuntu2 all > [installed,automatic] libopenjfx-java-doc/bionic,bionic > 8u161-b12-1ubuntu2 all libopenjfx-jni/bionic,now 8u161-b12-1ubuntu2 > amd64 [installed,automatic] openjfx/bionic,now 8u161-b12-1ubuntu2 > amd64 [installed] openjfx-source/bionic,bionic 8u161-b12-1ubuntu2 all   How do I install JavaFX such that it is connected to Java 11? I understand that Java 11 decoupled JavaFX, but I believe it can still be used together.


Is there a script that reads a TeX file and replaces every instance of a \newcommand?

I'd like to know if there's a script that reads a .tex file and replace every instance of a non-standard TeX command with whatever it is replacing. I am not sure if what I want is clear but let me give an example:  Suppose the input is:   \documentclass{amsart}  \usepackage{amsmath,amssymb} \newcommand{\N}{\mathbb{N}} \DeclareMathOperator{\End}{End}  \begin{document} In this lecture we'll study the ring of Endomorphisms of an Abelian group $A$. Let's denote this ring by $\End(A)$. Throughout the lecture, $\N$ will denote the set of natural numbers. \end{document}    Then, a desirable output of such a script is:  \documentclass{amsart} \usepackage{amsmath, amssymb} \begin{document} In this lecture we'll study the ring of Endomorphisms of an Abelian group $A$. Let's denote this ring by $\operatorname{End}(A)$. Throughout the lecture,    $\mathbb{N}$ will denote the set of natural numbers. \end{document}   P.S.: I think I had seen something to this effect but I neither remember the place nor a key word to fire up Google.     I meant to write that, all answers here are awesome, but I miscounted 2 for 4. :(


Why can 2 uncorrelated random variables be dependent?

I recently learned that two independent random variables $X$ and $Y$ must have a covariance of $0$. That means that the correlation between them is also $0$. However, apparently, the converse is not true. 2 random variables $X$ and $Y$ can have a correlation of $0$, yet still be dependent. I don't understand why this is. Doesn't a correlation of $0$ imply that the random variables do not affect each other?


Proof by induction of Bernoulli's inequality: $(1+x)^n \geq 1+nx$

So all answers I've seen have to do with multiplying both sides by $(k+1)$ and continuing from there. The way I thought if it is different so I'd like to ask if it correct and if not why.  Note: I did look around the site a bit but I didn't find satisfying answers, sorry if it's a common question and I just missed answers.  My answer: After confirming its true for some $n$ values and assuming $(1+x)^k \geq 1 + kx$, I went like this:  I tried checking whether $(1+x)^{(k+1)} \geq 1 + (1+k)x$ is true  We have: $(1+x)(1+x)^k \geq 1 + x + kx$  Divide by $1+x$ as $x > -1: (1+x)^k \geq 1 + \dfrac{kx}{(1+x)}$  I add and subtract $kx$ and I have: $(1+x)^k \geq 1 + kx + \dfrac{kx}{(1+x)} - (1+x)\dfrac{kx}{(1+x)}$.  Now as we know $(1+x)^k \geq 1 + kx$ is true I just have to prove $\dfrac{((1+x)kx - kx)}{(1+x)}$ is greater than 0.  So: $\dfrac{(kx + kx^2 - kx)}{(1+x)} = \dfrac{kx^2}{(1+x)}$ which is greater than 0.  In other words $(1+x)^{(k+1)} \geq 1 + (1+k)x$ is true.  Notes: Sorry if I didn't explain something well enough, English isn't my mother tongue so explaining math in it is harder than simply talking.   Also, I understand the other method, I was just wondering if this is wrong.


Producing a matrix not similar to its transpose

I know that a matrix is similar to its transpose, if the minimal polynomial over the field splits Now how do I produce a matrix over $\mathbb{R}$ that does not satisfy given property. Can you give me a hint ?


Why does radians disappear in equation $\tau = I\alpha$

Since in terms of units, $\tau = Nm$, $I=kgm^2$ and $\alpha=\frac{radians}{s^2}$: $I\alpha = kgm^2\cdot \frac{radians}{s^2} = \frac{kgm}{s^2}m\cdot radians = Nm\cdot radians$ But... $\tau$ does not have radians? Where does it disappear?


What choice of parameters makes this function uniformly continuous?

Given constants $\alpha, \beta > 0$ define $$ f_{\alpha, \beta}(x) = x^{\alpha} \sin(x^{\beta})$$ for $x > 0$.  For which pairs $\alpha, \beta$ is $f_{\alpha, \beta}$ uniformly continuous?


How to rename multiple files by removing the extension?

I have a number of tiff files named:    sw.001.tif sw.002.tif ...   and I want to remove the .tif at the end of each of the files.  How can I use the rename command to do this?


How to make jar file run automatically on system start

I am fololowing  but this did not work for me .   My start up script is:  #!/bin/bash java -jar AppDemo.jar   My stop script is:  #!/bin/bash #Grabs and kill a process from the pidlist that was the word app  pid=ps aux | grep AppDemo | awk '{print $2}' kill -9 $pid   Myscript for init.d is:  !/bin/bash # AppDemo # # description: Start Jar on system boot   case $1 in     start)     /bin/bash /usr/local/bin/AppDemo-start.sh     ;;     stop)         /bin/bash /usr/local/bin/AppDemo-stop.sh        ;;         restart)         /bin/bash /usr/local/bin/App-Demo.sh         /bin/bash /usr/local/bin/App-Demo.sh        ;;     esac     exit 0   this is now working for me. I don't know what I did wrong can anybody please help?


Using Javascript how do you check if current URL contains an hash?  In test page I want to add a Javascript code to print:
yes, there is a hash here
   if hash is present (current page ) or:
no, there is no hash here
    if hash is not present (current page ).


How do I set the homepage of my Safari 8.0.7 or, even better, customize it?


Why does the resolution decrease with increasing incidence angle in the Sentinel-1 SAR sattelite

On this link (Sentinel1  for a SLC product), the resolution is written as a range from the highest corresponding to low incidence angle, to the lowest resolution corresponding to high incidence angle.  My question is how is the resolution related in general to the incidence angle? And if they are really related, why is the resolution affected by the change in the incidence angle?


Is there a way to transfer Overwatch skins between PS4/Xbox One/PC?

I have played a ton of Overwatch on console and am now am looking to make the most of my PC and play Overwatch there. Is there a way to transfer skins from console to PC?


Pagination broken when merging search results with additional WP_Query

On the search results page (search.php) I would like to perform an additional WP_Query to keep a specific order of search result types e.g. search results from authors should always be shown before the other results -  The first few pages should hold the author results, the other results should be shown on all the following pages only (not mixed on each page).  global $wp_query; //holds the results of the initial search query  $authorposts = $wp_query->posts;     $query = new WP_Query( 'year=2012&monthnum=12&day=12' ); $otherposts = $query->posts;  $wp_query->posts = array_merge( $authorposts, $otherposts  ); $wp_query->post_count = count( $wp_query->posts );  if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>   //show results loop...   The problems appear with the behaviour of pagination - while the $authorposts seem to paginate correctly i.e. correct page numbers for author posts and pagination works as only those where existent. But the $otherposts on the other hand are shown at the bottom of each page, right under the author posts. And they are the same on every page! Also the page count reflects the count of the first query only.  I have also tried to merge with the plus operator:  $wp_query->posts = $authorposts + $otherposts;   but in this scenario the $otherposts don't show up at all and the page count stays the same (page count for author posts).  All the examples with similar goals using two separate queries I've seen looked quite the same -  So I'm wondering if the my way of extending the original search query results with that additional WP_Query is sufficient or if I'm missing some $wp_query fields to be populated (correctly)? What's the correct way doing this?  Update: It should be noted that I'm using the WP-PageNavi plugin to paginate but this should not be relevant in the first place as the first page is already rendered wrong. And it's also initialized with the query object: wp_pagenavi( array( 'query' => $wp_query ));


Real projective space is Hausdorff: is this proof correct?

Let $\mathbb{RP}^n=\frac{\mathbb{R}^{n+1}\setminus\{0\}}{\sim}$ be the real projective space of dimension $n$, where $\sim$ is the proportionality relation. Then  $\mathbb{RP}^n$ has the quotient topology induced by the canonical surjection $$\pi\colon\mathbb{R}^{n+1}\setminus\{0\}\to \mathbb{RP}^n, \quad x\mapsto [x]_{\sim}$$ Let $p$ and $q$ be distinct element of $\mathbb{RP}^n$, and let be $\pi_{|S^n}^{-1}(\{p\})=\{x,-x\}$ and $\pi_{|S^n}^{-1}(\{q\})=\{y,-y\}$. Let be $\varepsilon\leq \frac{1}{2}\text{min}\{\lVert x-y\rVert,\lVert x+y\rVert\}$. Let be $U=B_\varepsilon^{n+1}(x)\cup B_\varepsilon^{n+1}(-x) $ and $V=B_\varepsilon^{n+1}(y)\cup B_\varepsilon^{n+1}(-y) $. Then $U$ and $V$ are open and disjoint. Let be $U'=\pi(U)$ and $V'=\pi(V)$. Since $\pi$ is an open map, then $U'$ and $V'$ are open neighborhood of $p$ and $q$ respectively.  If I show that $U'$ and $V'$ are disjoint, then I have completed the proof that  $\mathbb{RP}^n$ is Hausdorff.  Suppose there are $u\in U$ and $v\in V$ such that $\pi(u)=\pi(v)$.  My book says that I can consider $u$ and $v$ of norm${}=1$.  Then, by this assumption, from $\pi(u)=\pi(v)$ follows that $u=\pm v \in U\cap V$ which is absurd.  My question is: why can I consider $u$ and $v$ of norm${}=1$? For example, suppose that $u\in B_\varepsilon^{n+1}(x)$. According to my book, I can replace $u$ with $\frac{u}{\lVert u\rVert}$ since $\pi(u)=\pi(\frac{u}{\lVert u\rVert})$. But form $u\in B_\varepsilon^{n+1}(x)$ doesn't follow that $\frac{u}{\lVert u\rVert}\in B_\varepsilon^{n+1}(x)$. So $\frac{u}{\lVert u\rVert}$ could not be in $U$.


Exclude entire categorical variable? Or just some of its dummies?

I'm trying to predict whether a person is likely to get robbed or not    (=dependent variable).     I will use logistic regression (classifier) to make the prediction.  In my data I have a lot of independent variables: some are numerical, some are categorical. I have to convert my categorical variables into dummies. E.g. Ethnicity (latino, asian, etc.) will be converted to is_latino, is_asian, etc. where the values can be either 0 (yes) or 1 (no).  Since I have a lot of independent variables I want to apply feature selection as I expect that not all of them are actually adding value to the prediction. For now I'm just looking at p-values to start off with (will implement cross-validation at a later stage)   The problem:   My results show that some dummies are significant, whereas other dummies relating to the same variable are not. E.g. is_latino seems to be very significant, whereas is_asian is not significant.    The question:   Can I continue by using only those dummies which appear to be significant (is_latino)? Or do I need to keep all the ones which relate to the same variable (ethnicity)?


I am new on Drupal. I have a csv where I want to upload on a drupal site every week.  I tried to follow this tutorial  but "Data Processor" doesn't show. I have installed all the modules and clear the cache.  Any suggestions?


Playing with automorphism over the rational functions

Let $\mathbb F(t)$ be the rational functions over the field $\mathbb F$ with $t$ as an argument, and Let $\alpha,\beta \in Aut(\mathbb F(t))$ such that $\alpha(t)=\frac 1 t$, $\beta(t)=1-t$.  (a)  Define $H=\langle \alpha,\beta \rangle \le Aut(\mathbb F(t))$. Show that $H\cong S_3$.  (b) Find $y\in \mathbb F(t)$ such that $\mathbb F (x)^H=\mathbb F(y)$.  For (a), It's not that hard to show directly that $|\alpha \beta \alpha|=|\alpha|=|\beta|=2$, and $|\alpha \beta|=|\beta \alpha |=3$, and so on, but I couldn't find something more elegant.  For (b) I have no Idea.


My 6edge is 32gb . I have used aproximately 13gb but in storage option it shows that 31 gb is used ... where is my rest of memory. Please clear

This shows you all pls help my about my storage .how can i get it


Given two lists of dictionaries:  >>> lst1 = [{id: 1, x: "one"},{id: 2, x: "two"}] >>> lst2 = [{id: 2, x: "two"}, {id: 3, x: "three"}] >>> merge_lists_of_dicts(lst1, lst2) #merge two lists of dictionary items by the "id" key [{id: 1, x: "one"}, {id: 2, x: "two"}, {id: 3, x: "three"}]   Any way to implement merge_lists_of_dicts what merges two lists of dictionary based on the dictionary items' keys?


How do I transfer data and settings from one Apple Watch to another?

I have an Apple Watch. I have had it for a while. I just bought a new Apple Watch. (Both are Series 1, just different sizes.)  I would like to transfer all my data and settings from my old Apple Watch to my new Apple Watch and then sell my old Apple Watch.  Is it possible to migrate my profile from one Apple Watch to another?  If so, what is the procedure?  All the search results I have found have to do with moving an Apple Watch to a new iPhone or restoring a backup to the same Apple Watch. Perhaps it is possible to restore a backup from an old Apple Watch onto a new one?


What are some reasons to get your work rejected?

I have submitted one of my work in a good journal (impact factor 6) and I got rejection after a few weeks. Though I was pretty sure that I covered all the experiments or stuff they can ask for. The reply mail did not show any cause. They just regretted that they cant publish my work. What can be some reasons behind this?


Let $A$, $B$ be normal subgroups and $A\cap B=\{e\}$. Prove that $ab=ba$ for all $a\in A$, $b\in B$.   As soon as $A$ and $B$ are normal subgroups, one can get that $aB=Ba$ and $bA=Ab$ for all $a\in A$, $b\in B$. Hence, there are such $a'\in A$ and $b'\in B$ for $a\in A$ and $b\in B$ such that $ab=b'a$ and $ba=a'b$, so we need to proof that $a=a'$ and $b=b'$. How do I use second condition that subgroups intersection is $\{e\}$?


What is the right lens for photographing the northern lights?

Im a complete amateur at photography. I recently bought a Nikon d3200 SLR with the 18-55mm lens kit. I've bought it specifically for my trip to Lapland to hopefully see the northern lights. Could someone please advise me on what lens would be best based on a low end budget?


How to install OS X on a Windows only Mac?

I tried to use Boot Camp Assistant to install Windows on my MacBook Air. Long story short, due to installation issues, I wiped my MacBook Air drive.  I couldn't get my Mac to recognise a bootable disc of Yosemite made using . After some more fidling I managed to install Windows 7 on my Mac but now I need to find a way to install OS X.


i have set of date ranges, i need to get the combined date range ,if any of the date overlaps in java

I have set of date ranges, I need to get the combined date range if any of the dates overlap in Java.  Given three sets of date ranges, if any of the dates overlap with another range of dates need to be combined.  Example:  20170101-20170331 20170101-20170430 20170430-20170501   Expected result is:  20170101-20170430 20170430-20170501   I have all the dates in String Variable. Can please any one help me to how to write the code for that.  I have pasted below my code.  I want to achieve the expected results. I couldn't find out how I need to modify this code. I am a beginner, please help me to do that. I have got this sample program from StackOverflow.  package com.kkkkk.Combine;  import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collections; import java.util.Date;  public class Ideone {     public static void main(String[] args) throws java.lang.Exception {         ArrayList<Interval> x = new ArrayList<>();         x.add(new Interval("20170430", "20170501")); // "20170101", "20170430"         x.add(new Interval("20170101", "20170430"));// 20170101-20170430                 x.add(new Interval("20170101", "20170331"));                 x = merge(x);          for (Interval i1 : x) {             System.out.println(i1.getStartDate() + " " + i1.getEndDate());          }      }      public static ArrayList<Interval> merge(ArrayList<Interval> intervals) {           if (intervals.size() == 0 || intervals.size() == 1)             return intervals;          ArrayList<Interval> result = new ArrayList<Interval>();          Collections.sort(intervals, new IntervalComparator());           System.out.println("intervals ggggg\n" + intervals + "\n");          Interval first = intervals.get(0);          String start = first.getStartDate();         String end = first.getEndDate();         Date startDateF = null;         Date endDateF = null;          try {             SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");             startDateF = sdf.parse(start);             endDateF = sdf.parse(end);               // ArrayList<Interval> result = new ArrayList<Interval>();              for (int i = 1; i < intervals.size(); i++) {                  Interval current = intervals.get(i);                  Date currentEndDate = sdf.parse(current.getEndDate());                 Date currentStartDate = sdf.parse(current.getStartDate());                  // if ((current.getStartDate().after(endDateF)) ||                                 Date d1 = minDate(endDateF, currentStartDate);                                  if ((currentStartDate).compareTo(endDateF) <= 0) {                     endDateF = maxDate(currentEndDate, endDateF);                                                          } else {                                                              result.add(new Interval(start, (sdf.format(endDateF))));                      // start = current.start;                     // end = current.end;                      start = sdf.format(currentStartDate);                     endDateF = (currentEndDate);        enter code here                  }              }             result.add(new Interval(start, end));             // result.add(new Interval(start, (sdf.format(endDateF))));         }          catch (ParseException ex) {             ex.printStackTrace();         }          // result.add(new Interval(start, end));          return result;         // return intervals;      }      public static Date minDate(Date date1, Date date2) {         // if date1 before date2 then return date1 else return date2          return date1.before(date2) ? date1 : date2;     }      /**      * find Max Dates      *       * @param date1      * @param date2      * @return      */     public static Date maxDate(Date date1, Date date2) {         // if date1 after date2 then return date1 else return date2         System.out.println("date max");         return date1.after(date2) ? date1 : date2;     } }


Is it possible to download full iCloud backup for iOS 13?

I remember it used to be possible to download the full iCloud backup. However, after trying a bunch of tools (Dr Fone, syncios, easeUS, iPhone backup extractor) online that claims to download iCloud backup, none of them actually works. Is there any way to do this currently?


How to use multiple terminals on Ubuntu server?

I am using Ubuntu server 16.04 LTS in MacOS device through VirtualBox.  How can I open more than one terminal and navigate through them?  I already came across a similar question asked  but it didn't work with me. I believe it is because I am running the Ubuntu server from mac in VirtualBox.


What is the best site on Stack Exchange to ask about Google's search algorithms (besides Web applications)

I am looking for a site on Stack Exchange in which I can ask questions about Google's algorithm.  I am interested in knowing what makes a Google search result (website, link, photo, video, news article, etc.) more prominent or less prominent in a search, and what "Online Reputation Management" websites use in order to "suppress" certain results and make them less prominent in the search.


following apex code   public String getLastUpdatedAt() { String timeStr; DatadoctorStatus__c last = [SELECT LastUpdated__c FROM DatadoctorStatus__c ORDER BY LastUpdated__c DESC LIMIT 1]; if (last == null){     timeStr = 'Not yet updated.';  } else { DateTime d = datetime.now();     timeStr = d.format('MMMMM dd, yyyy hh:mm a z'); }  return timeStr; }   is giving me System.QueryException: List has no rows for assignment to SObject if there are no (zero) rows in DatadoctorStatus__c SObject.


I am trying to save the output from the LINQ query to the generic list which is type of a Class which contains the get and set, but it shows me the error that can't convert implicitly, i searched many solution for it but not helpful for me. Following is the LINQ query and the generic Class definition.  LINQ Query:  var posts = from p in db.Posts join c in db.Comments   on p.Post_ID equals c.postID    into PostComments   select new { PostId = p.Post_ID, Post = p.Post1, cmtcount = PostComments.Count() }   CLass:  public class Class1 {     public int Post_ID { get; set; }         public string Post1 { get; set; }     public int cmtcount { get; set; }       }   I'm simply doing the conversion like posts.ToList();


Illustrator - How to let one layer show through another

This seems like it should be easy, but since I'm new to Illustrator it's hard to describe what I mean without an example.   Basically, I have two layers. The bottom layer has a picture of a pig. The top layer has a one-color icon (black). I want the fill of the icon to be replaced with the image underneath it. So that instead of an icon of a piggy bank in just black it is an icon of a piggy bank that looks like the pig picture.     What's the best way to do this?  Thank you in advance for your time.


Why does this question not have an "edit" button?

I am not seeing an edit button on this question:  (I wanted to add a "nasm" tag.) This is on Mozilla Firefox 68.0.2 on Android 9, both in the native (mobile) view as well as the "Request Desktop Site" view.  I already read  but the top answer says:     In most cases, you will still see the edit button, but you will get an error message if you try to click it. However, in case 5 above, no edit button will be shown,   And point 5 is:     You are not logged in and the post is less than 10 minutes old, or you are trying to edit a tag wiki.


Python script for if/elif condition in field calculator

I need some help in calculating the last column (OD_pairs.Ai_) based on the condition;  if travel_cost has a value below 10, OD-pairs.Ai_ takes the value of the first column(Aij_OjFCij..) if travel_cost has a value above 10, then return 0 in OD_pairs.Ai. So basically the third field to be calculated is either the corresponding value in the first field or zero, depending on the value in second field.


I've read that in Unix, you can configure the file-system to reserve certain amount of space for root. Which configuration property is it?


Executing a previously executed While Statement after prompting user for action

Hello I am building a version of Craps where it randomly rolls two dice and stores the information in two different rolls, where how many times it rolled a 7 and how many times it rolled an 11 in 100 rolls. I have managed to get it where I can output how many rolls I got for each and how many wins altogether, but now when I prompt the user if they want to play again I cant see to get it to execute the while method I created for the rolling loop. Is there a way I can get it to re-execute that in the last if statement and if so what would I put in that if statement to achieve this or is there some other kind of method I should be doing here instead? It was recently closed and pointed me to a string comparison page on stack that didn't answer my question. I understand how to compare strings and what == does. However that doesn't tell me why  or what is needed to re-execute a previously performed while loop after prompting the user for action.  import java.util.Random; import java.util.Scanner;  public class Craps_ws7 {     public static void main(String args[])     {         Scanner keyboard1 = new Scanner(System.in);         System.out.println("Welcome to my Craps Game!");         boolean stop = false;         int sevenRoll = 0;         int elevenRoll = 0;         int totalWins = 0;         int gameCount = 0;         while(gameCount <= 100)         {             gameCount = gameCount + 1;             Random generator = new Random();             int die1 = generator.nextInt(6) + 1;             int die2 = generator.nextInt(6) + 1;             int dieTotal = die1 + die2;               if (dieTotal == 7)              {                 System.out.println("You rolled: " + dieTotal);                 System.out.println("You Win!");                 sevenRoll++;                 totalWins++;              }              else if(dieTotal == 11)              {                 System.out.println("You rolled: " + dieTotal);                 System.out.println("You Win!");                 elevenRoll++;                 totalWins++;              }              else              {                 System.out.println("You rolled: " + dieTotal);                 System.out.println("You lose!");              }         }     System.out.println("You rolled a total of " + sevenRoll + "  sevens and " + elevenRoll + " elevens for a total of " + totalWins + " wins out of 100!" );     System,out.println("Would you like to play again? [y/n]");     string ans = keyboard1.nextLine();     if (ans = "y" || ans = "Y")     {      }     else      {         System.out.println("Thank you for playing, Good Bye!");     }     } }