How do you convert between different units of particle flux?

Charts of particle flux tend to show the flux rate in units of particles per metre squared per second per steradian per MeV. I don't understand what the "per MeV" is referring to. How do I convert particle flux units per MeV into particle flux units (without the MeV part)? In Figure 1 in , in the middle of the chart near the top it has an arrow pointing to a data point, and by the arrow it says "1 particle per m^2-second". If I chose another data point on the chart, what steps would I need to follow to calculate a similar result for it, in terms of the number of particles per metre squared per second which it represented?


I want to create some bell shaped curves for demonstrating hypothesis testing in statistics. Can anybody help me drawing curves like shown in the following picture?


How to block websites for a user, who has no root rights?

The situation is: I don‘t want to able to surf certain websites out of distraction of boredom, while I am in the University, studying. My idea is:   Create a sudo-password which is to complex to memorize it, write in somewhere and leave it at home when I go to the University. Create a user-account with restrictions, on the websites, which can be visited. Study without distraction.


"None saw this coming." - Is it grammatically correct?

I understand I can say No one saw it coming but wonder if it is okay to say "None saw it coming."?    Also, is the punctuation correct in the end of the last statement?


How to fix .dll file reference error in C#?

I was making a student reputation management app. I am developing it using MetroFramework and I got this error (in InitalizeComponents()). The error code is: System.IO.FileLoadException:'Cannot load file or assembly'MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a', or one of the files or assemblies that depend on it. The manifest definition of the found assembly and the assembly reference do not match. (Exception occurred HRESULT: 0x80131040)' All files:


$$\lim_{(x,y) \to (0,0)} \frac{{x{y^2}}}{{{x^2} + {y^4}}} = 0$$ Please, Anyone could suggest me some way for this?. Thanks.


Is it correct and safe to assume that "use by" dates are less precise the longer in future they are?

When there is some food (like cheese or ham) that has roughly a week "use by" date, I assume that it's safe to eat it a day after it's "use by" date.   For other food that has approx. half year "use by" date (like olives in glass or pesto) I think it's safe to eat it for anything up to a month or so.   And for canned foods having years it should be safe to eat few months after "use by" date.   My thinking is that it's harder to pinpoint the exact date the further the date is in the future. I would even expect that "use by" dates are something around the half time the food is still actually edible.   Am I correct in this line of thinking? Do you know of any reliable resources on this? I couldn't find anything.


Imagine I have an iron ball in vacuum and it is moving and it hits an iron wall. All the kinetic energy gets converted into heat, right?(since sound cannot be produced).Will there be any other energy conversion?  The ball does not bounce back and nor does the wall move. So,how is the momentum being conserved?  Energy can be conserved as the thermal energy is produced but since momentum is a vector,how do we know that the random motion of the particles of the ball and the wall all add up vector-ally to conserve momentum?


I saw a  reading a book, but I don't have a smart phone to check it.    So I just took a picture of it and saved my PC. And I downloaded libdecoderqr0, libdecodeqr-dev, libdecodeqr-examples for reading it. But I don't know how to use it.    What do I do next, or is there a nicer way to read QR codes?


I have been struggling with shared preferences and looked at posts and tutorials and can't get it to work.  I finally copied this code from android.dev and it won't work for me either. The only change I made was 1. extends AppCompatActivity rather than Activity. 2. add the printlns and 3. the parms to getSharedPreferences.  It fails with NPE in onPause() on the SharedPreferences.Editor. I don't find any exceptions in onStart().  Can someone please tell me what I am missing? Thank you in advance!  public class MainActivity extends AppCompatActivity {     static final int DAY_VIEW_MODE = 0;     static final int WEEK_VIEW_MODE = 1;      private SharedPreferences mPrefs;     private int mCurViewMode;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);          System.out.println("onCreate() ");         SharedPreferences mPrefs = getSharedPreferences("MyPrefFile", 0);         mCurViewMode = mPrefs.getInt("view_mode", DAY_VIEW_MODE);     }      protected void onPause() {         super.onPause();          System.out.println("onPause() ");         SharedPreferences.Editor ed = mPrefs.edit();         ed.putInt("view_mode", mCurViewMode);         ed.commit();     } }   Here is the logcat, is that the error log you requested? Sorry, I am pretty new to this. (ug...  is there a better way to share this?)   java.lang.RuntimeException: Unable to pause activity {temperatureconverter.android.vogella.com.prefsfromandroiddev/temperatureconverter.android.vogella.com.prefsfromandroiddev.MainActivity}: java.lang.NullPointerException   at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2902)   at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2858)   at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2836)   at android.app.ActivityThread.access$900(ActivityThread.java:140)   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1254)   at android.os.Handler.dispatchMessage(Handler.java:99)   at android.os.Looper.loop(Looper.java:137)   at android.app.ActivityThread.main(ActivityThread.java:4921)   at java.lang.reflect.Method.invokeNative(Native Method)   at java.lang.reflect.Method.invoke(Method.java:511)   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)   at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException   at temperatureconverter.android.vogella.com.prefsfromandroiddev.MainActivity.onPause(MainActivity.java:38)   at android.app.Activity.performPause(Activity.java:5286)   at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1240)   at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2889)   at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2858)    at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2836)    at android.app.ActivityThread.access$900(ActivityThread.java:140)    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1254)    at android.os.Handler.dispatchMessage(Handler.java:99)    at android.os.Looper.loop(Looper.java:137)    at android.app.ActivityThread.main(ActivityThread.java:4921)    at java.lang.reflect.Method.invokeNative(Native Method)    at java.lang.reflect.Method.invoke(Method.java:511)    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)    at dalvik.system.NativeStart.main(Native Method)


Is there a good way to monitor temperature/fan levels for 16.04?

I've been struggling with this for a while and I cant seem to find a solution that works properly.


Found a mistake in advisor's paper - what should I do?

I was reading over some of my supervisor's old papers and I have found one from 7 years ago in which part of the analysis is fundamentally flawed which effectively undermines half of the conclusions. The issue is in a paper in a subfield of a subfield so it's unlikely that any other people will find this mistake. My question is what should I do. On one hand, I feel like I have moral obligation to let him know so that the issue can be resolved. On the other hand, I feel uncomfortable bringing it up as I don't want it to have any negative repercussions on our working relationship. What should I do in this scenario? Thank you. Edit: This question is different from  as in that case it was a paper in advanced access (e.g. one that was worked on recently), while in this case it is a 7 year old paper.


Edits to tags and titles get stuck on the 'at least 6 chars' blocker when accompanied by minor body edits

I've been trying to edit the tags and title of , to improve its focus on the actual problem encountered by the post author.  During the edit, I thought of a little formatting improvement that could be performed in the question body. Since the change was already meaningful, and because it would have been accepted as it was, I thought it would also be possible to correct the formatting a little bit. Turns out I couldn't. The edit got stuck on the "at least 6 chars non whitespace characters" blocker.  Is there simple way to forget about changes to the post body so that the original edit can get accepted?  Wouldn't the sites be even better if they allowed small body edits when the title and/or tags are being modified?


But I am a second day newb in blender. When i export the asset into unity through fbx the character is just white. No textures or anything. Same with mixamo as well. I am starting to think fbx is not the answer. However, blender is so complex that I cannot find exactly what I am looking for in the web. Any quick pointers will be greatly appreciated! Thank you kindly.


I know this question would have been asked time and time again, I'm new to this blog so i haven't seen it yet. I'm a beginner with great interest to learn photography. I don't have any desire to pick this as my profession but for passion. Where do I start and what camera should i pick to kick start? Advice on question is appreciated


Can I install only UBUNTU as an operating system and use Windows Office and the work program? Would this minimize or eliminate the virus problem we have with windows?


UK no border stamp. How do I check if my visa information passed to immigration service?

I got a UK visa last month and visited London for a week. It was my first visit to the United Kingdom. I checked-in online when I was leaving the country and entered my visa number as an additional document. I was surprised after security checks in the airport, there is no passport control and I will not get a "leave stamp" in the passport.  How do I check if my visa information was passed to immigration service? Since I had an electronic check-in via a third-party airline company website, I can not be 100% sure that the company passed the information to theUK immigration services or their website works 100% correctly.  I already read the answer from here   In order to avoid misunderstandings, I am not curious about WHY I do not have leave stamp, my question is: WHERE to check if my departure has been registered?  The proposed duplicate  and its answer appears to be obsolete because "The Data Protection Act 1998 has been replaced by the General Data Protection Regulation (GDPR) and the Data Protection Act 2018. For the latest guidance on data protection law, please see our Guide to the GDPR."


Is there any option to store AC voltage?

Almost every power plants produce Alternating current. It is not necessary that entire energy that they produced are consumed in real time. Does they have any option to store excess energy?


Tmux key-bind like to use the windows/super for my meta key in Tmux Without X

I have RaspberryPI with no GUI==(no x.org) I like to bind the useless window/super key to be my prefix. Using Arch for ARM runs great.   If think this is going to take more then simple mod in the tmux.conf file.  After some Googling found post with a command:  dumpkeys | grep -E "keycode *125|126" That command give me a blank line.


I want to suggest Stack Exchange network to a friend who is visually impaired. He lost his vision a couple of years ago to Glaucoma and is slowly finding his feet on the web using Screen Reader Software.   I just want to know if SE network sites are accessible using screen readers.   I tried to find the answer using search but I only managed to get results from StackOverflow and UserExperience SE and not any information if SE sites were themselves accessible or not. Nor did "Questions that may already have your answer" suggestion retrieve relevant results.  Please excuse me if this question is indeed a duplicate and it would be really nice if someone could point me to previous discussions on this?   Thanks a lot.


I am confused about the passage of time for an outside observer versus an observer moving at the speed of light

Specifically, why would some say that the time experienced for those on Earth would be far greater than the time for light to travel to the destination and back. Example, I have heard it said that if you travel to Alpha Centauri and back at the speed of light, far more than 10 years will have passed on Earth than what it takes for light to travel there and back. Here is my thinking on this when considering the speed of light time dilation versus actual distance traveled. The speed at which I am traveling at means that I experience time far slower. So if I were to adjust my space ship's experienced travel time to compensate for this time dilation, then I could experience travel to say Alpha Centauri in seconds for me. Even though the actual time it took, relative to Earth, would be about 4.5 years. If that is the case, then all of these concerns about travelling at relativistic speeds should theoretically be moot. Yes, that means in a round trip to and from Alpha Centauri for the study of the stellar system it would take almost 10 years to those on Earth. But for those on the flight, it should take what I would think is seconds plus time spent in the system doing the study. All the arguments I see center around the idea of traveling those distances over the duration of time as experienced by the traveler. Thus, when I hear people such as Neal DeGrasse Tyson talking about traveling 4.5 light-years, it always sounds like he is saying that the traveler experiences the passage of time as 4.5 years while moving at relativistic speeds. Thus the problem for the traveler is that going there and coming back while experiencing those years means far more time has passed here on Earth. But if you are traveling at those speeds and those speeds slow the passage of time from your perspective, then you shouldn't be traveling for 4.5 years from your perspective because you would severely overshoot your target. Instead, you should calculate how much time would pass from your perspective in order to travel 4.5 light-years, which I imagine would be experienced in seconds or possibly minutes. Then travel for that long from your perspective to reach your target area. Is that correct or am I fundamentally missing something about time dilation and traveling at relativistic speeds?


From :     Remember the child, in some ways, identifies with both of those parents so if the mother is really asking the child to be her sounding board, she robs that child from the ability to feel good about his connection with the father.   What's the meaning of robs that child from the ability to feel good about his connection with the father? I know that rob has two usages:   rob something from somebody. rob somebody of something.   But it seems that *the ability to feel good about his connection with the father is belonging to "something", so is it more appropriate to modify the word "from" to "of"? just as follows:     robs that child of the ability to feel good about his connection with the father   Which usage is correct? Thanks.


How can I recover my clash of clans account?

I've been playing Clash of Clans perfectly fine up until as recent as last night, when I opened my account it had just started all over again, all my progress was gone.  I cant sign in with the Google account. I was using a blue-stacks on my computer (Windows 7 PC).  How can I recover my account?    Name MARC Level 22 Trophies 871 Clan named CLASHER.PH


accidently flashed my rasbian os over my hard drive. When I tried to recover the partition, I realised I couldn't do it, the partition wasn't visible in testdisk. I recovered everything with photorec, but sorting all the pictures would take weeks. I'm no expert how partitions work but I think that rasbian wrote right over the 'declaration' of the ntfs partition. Is it possible to search for where rasbian is written and overwrite that back with a 'declaration' of a ntfs partition so that I can recover the whole file structure? thanks in advance


Why do I get 'HDIO_GET_IDENTITY failed' message when booting with external usb hard drive?

I've installed Ubuntu 11.10 on an external USB (2.0) Hard Drive (/dev/sdb1) but when Ubuntu starts I get a message that says:     ata_id[279]: HDIO_GET_IDENTITY failed for '/dev/sdb': Invalid argument   where I made a mistake? The first HD contains Windows 7 (the official OS of my packard bell notebook).


How do you distinguish between two spacetime metrics?

How do you know if there exists a proper transformation from one metric to another? I know that sometimes you can check if the Weyl tensor is zero or not, or in a simpler case if one is a vacuum solution and the other is not.


COULD vs. COULD HAVE when talking about the past

I have long had difficulty distinguishing between COULD and COULD HAVE. I have two specific examples that I'm not exactly sure of. Could you enlighten me?   She needed money so much, she could even have worked in a KFC restaurant  Jim could’ve ordered fish in the diner yesterday, but he settled for venison    First question - are both of these correct? I would assume they are, but I'm really not sure. How about their COULD'VE counterparts:  1a. She needed money so much, she could even work in a KFC restaurant 2a. Jim could order fish in the diner yesterday, but he settled for venison  In my opinion both of them sound unnatural, but I can't say why.


Switch between leqno and reqno options (of amsmath) in the same document

I'd like to know if it is possible switch between the leqno and reqno options in the same document keeping the numbering of the equations. Namely i use the reqno option (default for amsmath and the standard article class), but i want that some equations are numbered by the left side (as if I had relied the leqno option) and the others no.  I'd like a commands as \leqnomode and \reqnomode to change the position of \tag in anywhere of the document.  Is this possible?


social sharing ui/ux on mobile. actionable text + icons or icons only

We trying to implement decent social sharing module for our app and have 2 question, which are pretty much related:   Is it important to have visible text which directly say to user what to do, like Share with friends, Tell friends, share near the social media icons (facebook, twitter, instagram) V.S. just having social icons alone is enough trigger for an action? (this is a main question) Was there any actual study about how it's affect sharing if   a User see options already on the screen (let's say fb, twitter,    instagram)     b There is single share button, and when user click on it, there is dialog with actual sharing options appear, or just additional icons appear on the screen.    If there is no any research regarding this, what is your personal     opinion regarding preferable way to go, if the idea is to get more     content shared.    Yes, I saw relative questions, but they seams about web, not mobile, which I think kind of important. But anyway, my main problem is to have actionable text or not.


How to find all instances where PATH is defined?

In my PATH variable I see duplicate paths that I have no idea how they ended up there.  /home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/var/lib/snapd/snap/bin:/home/user/projects/bin:/snap/bin:/var/lib/snapd/snap/bin  Note for instance the number of occurrences of /snap/bin.  I tried grep for the PATH but I couldn't find anything strange. I also checked all the usual suspects .bashrc, .profile, .bash_profile, and the system wide definitions too, no luck.  EDIT: I am aware of the standard location where the PATH variable is set and read the answers to this  and this .


“An error occurred submitting the question.” with MSSQL query text

I just attempted to post a sql query to SO. Upon attempting to post it, I got an extremely unhelpful error, "An error occurred submitting the question". I know it's something to do with the query, as I tried submitting without it, and of course that submitted fine, too bad for me (given that in the 8 seconds between submitting the post and deleting it, someone downvoted me for not including the query, durp. At least rep gets added back a couple minutes later if you delete your question, I also just learned...)  Of course I can't submit the query in this question here, either, with the same error, so as was requested in , I'm attaching it externally (this is not a dup, due to the fact that the guy in that question didn't actually post his code on request, so it couldn't be reproduced).   edit: apparently, as was discovered, you can't submit it, but you can edit it in. This is indeed the same query I couldn't submit originally:  Declare @result VARCHAR(8000)  SELECT @result = ''  SELECT @result += temp.temp FROM (   SELECT DISTINCT ('Posted Date' + CAST(POSTED_DATE as char) + ',') as temp   FROM [LACDC].[dbo].[PS_CDC_JRNL_LSR_VW]   where JOURNAL_ID = @ID and JOURNAL_DATE = @Date ) AS temp    So, first question, is this a bug? I'm guessing it is, but correlarily, if there are characters or sequences of characters that I actually am not allowed to put in a question, could the specifics of that requirement at least be made more obvious? I do see a couple other posts on meta.SO with that same error, but one says the answer is don't submit questions more than 30,000 characters (my question was about 1,000) and was then marked as a dup of another one that says errors should be more obvious, as they're currently tucked away in a corner ("right of the textbox, blended in with the Careers 2.0 ad." - I don't see either of those things.)  (Also amusingly, in the time between when I tried unsuccessfully to post that to SO, and now, I figured out the issue with the query on my own, so thanks SO for being a good teddy bear!)


How to write the SQL in the following scenario

There are two table, also two column are the same between them  table1: id, date  table2: id, date   The problem is , how to update the id of table 2 that can match the date in 2 table , that means, e.g.  update table2 set table2.id = table1.id Where table1.date = table2.date   thanks


Can You Copy the RAM contents as-is to File-System on Windows

My question: Is it possible to copy the contents of RAM to the file-system? (Windows)  Additionally, is it possible to copy the RAM contents for a specific process?  Reason:  This largely revolves around CryptoLocker (as well as similar malware) and making it possible to recover data quickly without having to pay for the private key that it uses.  While CryptoLocker doesn't store the private key anywhere on the file-system, it does need to keep it in memory to continuously encrypt files. So given that you can capture an active CryptoLocker process, know the length of the private key, and you know what encryption was used, you theoretically could loop through each bit attempting to decrypt a specific (small) file.


Excel - Sum values if their row meets more than one criteria

I have a spreadsheet of my bank account transaction history in this format:    | A          | B        | C        | D 1 | Date       | Amount   | Balance  | Category 2 | 2013-03-10 | $ -10.59 | $3700.76 | Food shopping 3 | 2013-03-11 | $ - 5.10 | $3695.66 | Car parking 4 | 2013-03-11 | $ 100.00 | $4695.66 | Salary   In my spreadsheet the Balance column is hidden because I recalculate it myself.  I want to have a summary for each month with data looking like this:    | A       | B        | C           | D 1 | Month   | Income   | Expenditure | Net 2 | 2013-03 | $ 100.00 |     $ 15.69 | $ 84.31 3 | 2013-04 | $  00.00 |     $ 00.00 | $ 00.00   These are the formulas I have right now, so I can compute Net fine, but I don't know how to compute Income or Expenditure on a monthly basis because SUMIF only lets me do criteria on a single column (in this case, the Date column, but I want to only sum rows >0.0 for Income and <0.0 for Expenditure):  Net = =SUMIF( MonthAndYear( Txn!$A:$A ) , $A$2, Txn!$B:$B )


What is the actual (not official) size of the Ryanair "baggage sizer"?

I know that this question could sound a little bit dumb since Ryanair always sends lot of emails specifying the dimensions of the allowed hand luggage but I am not interested in the "formal" answer but in the "informal" one.  In every airport where Ryanair flies there is a blue box (baggage sizer) where you and the airport staff can put your hand luggage to test if it can be accepted on board. What I would like to know is the dimension of that box (which is of course bigger than the allowed size).  I've been a pretty frequent Ryanair flyer (one flight per month) and I always used the same luggage which was ok for the old box even if bigger than the allowed size.   Few weeks ago Ryanair introduced the possibility to bring a second hand luggage on board. In doing so they also changed the dimensions of the blue box which now has two compartments (one for the main hand luggage, still bigger than the allowed size, and one for the small one).  My old luggage doesn't fit anymore in the new boxes so I guess I'll have to buy a new one, hence the need to know how far can I go with the size of the luggage.


I have a MariaDB database, in which I have this table:  ID | Item Name | Item replaced | ----------------------------------------- 0  | Item 1     | Replaced 1  | Item 2     |  2  | Item 3     | Replaced 3  | Item 3     |  4  | Item 3     |  5  | Item 1     | Replaced 6  | Item 2     | Replaced 7  | Item 2     |  8  | Item 3     | Replaced   I want to count the number of same items and display so ITEM 3 in this case would be '4' as there are four of ITEM 3 in my database but I also want to show how many are replaced so in this case it would be '2' as only two of ITEM 3 is marked as replaced.  End result I want to get is something line  ITEM 1        2 - 2 (2 item 1's and both are are replaced) ITEM 2            3 - 1 (3 Item 2's and only 1 is replaced) ITEM 3            4 - 2 (4 Item 3's and 2 are replaced)  I have tried a UNION but that doesnt seem to work for me.   Also it would be helpful if I could count replaced as NULL or Empty.  I found  but it's not quite what I want, this case the user is listed more than once so this example wouldnt work for me.


Can I download the Winter Bash hats for use as profile picture?

Can I download  and use them as my profile picture?  I actually like some of them, and want to keep them for future use.


How can I "future-proof" my LaTeX documents so that they can be re-compiled at a later date?

Is there a way to save the "current state" of my TeX installation, the various packages etc. that allow a document to be compiled into a pdf at this moment?  In a year or two, I'll probably have a lot of package updates, etc. and it's questionable whether all of my documents will re-compile in the same way.  Is there some way to save a format that will allow an identical recompile, or to save a snapshot of my installation in some way, or some other method?


I would like to make a frame, with a piece of text, then the appearance of a picture and after that another line of text appearing. I am using the code below, but if I click for the picture to appear, the first line of text jumps to a higher position in the slide. How to resolve this?  \subsection{} \begin{frame}{Title} \begin{itemize} \item<1-> Text \begin{figure}[h!] \centering \includegraphics<2->[]{file.pdf} \end{figure} \item<3-> Text \small \begin{eqnarray} \nonumber *formula* \end{eqnarray} \end{itemize} \end{frame}


Ultra slow BIOS boot on Samsung NP530 notebook PC

I purchased a Samsung laptop model NP530U4C from Amazon in December 2012 and just two days ago it has suddenly developed a slow BIOS boot.  The laptop has a Phoenix BIOS.  I have made NO hardware changes and have Fast Boot enabled.  The laptop previously took 20 seconds to boot into Windows, but now it takes nearly 10 minutes for the Windows boot process to start.  At the end of the BIOS boot process a blue bar appears across the bottom of the screen (next to the Phoenix logo) before Windows starts booting up.  On a couple of separate occasions, when Windows installed I was greeted by a message telling me that Windows is installing device drives for the CD/DVD drive as well as the SanDisk i100 SSD 24gb cache drive.  When I manage to press F2, after waiting nearly 2 minutes for the key press to register the BIOS navigation is painfully slow taking nearly 20-30 seconds to register the key presses.  I have taken the hard drive out to see if this speeds up the BIOS boot, just in case the hard drive is failing, but the problem still persists.  I even installed CrystalDiskInfo and it reported the drive health is good with an operating temperature of 36C.  I have filled out a support request to Samsung so I don't know how long I'll be waiting for an answer.  This all seem to have started after I plugged a laptop cooling board into the USB port.  I am wondering whether the USB laptop cooler has somehow shorted out the USB port, or has done some damage to the motherboard.  Also, to turn on the laptop I used to have to hold the power key down for 1 second, but now I just need to tap it for a fraction of a second for it to power up.  I am not sure what this means.  Has anyone got any ideas to explain why my laptop developed this sudden problem?


Prove that if three distinct integers are chosen at random then there will exists two among them, say $a$ and $b$ such that $30|(a^3 b-ab^3)$


The sum is $$\sum_{n=1}^{\infty} \frac{n+2^n}{n+3^n}$$ Is this convergent or divergent? I tried to use the divergent test but the test fail because $a_n = (n+2^n)/(n+3^n) = 0 $ as $n$ goes to infinity. Could someone point me to the right direction?  Thanks


How can I store output in bash variable and suppress output to stderr and stdout?

If i'm doing  oidvalue=$(snmpget -v 2c -c public localhost 1234)   This will store the output of that command in oidvalue, however as it is now, it will print some error to the screen. How can I suppress stderr and stdout at the same time store in the variable?  Thanks  2nd EDIT: the below works for my condition:  oidvalue=$(snmpget -v 2c -c public  localhost 1234) > /dev/null 2>&1


Touching the front wheel with my foot when turning

My girlfriend got a new city bike today and she touches the front wheel every time she has to make a hard turn.  Is there anyway to avoid this besides replacing the whole bike?  LATER EDIT: I think I found my answer .


Limit the Internet bandwidth of Android device

Is it possible to limit internet speed of Android device  for example   Nexus 7 only internet speed has 300 kbps / 1mbps Nexus 4 only internet speed has 150 kbps / 1mbps


If  $$y(x-y)^2 = x.$$  Then $$\int \frac{1}{x-3y}  \, dx =? $$  How do I go about doing This?   Just if you want to know the options are in the form of log{(x-y)² + 1}   [This  may not be the answer as this is just one of the options,  Its just to get an idea]   Hints will do.


How do I change the node view mode before rendering?

I have a content type with a custom view mode. How do I make sure node always get rendered with my custom view mode?  What would be the right way to programmatically change the node view mode before rendering?


mysql multiple unique values per primary key

I have a table that stores multiple phone numbers. While the same number can exist in the table I want to ensure that a user can't have the same number twice.  **Valid**  id0001 : 5555550000 id0001 : 5555550001 id0002 : 5555550000  **Invalid**  id0001 : 5555550000 id0001 : 5555550000 id0002 : 5555550001   Not sure the best approach.  Should I make a function and apply it as a constraint?  Should I change the structure of the table?  CREATE TABLE `callback` (     `f_unti_id` INT(10) NOT NULL,     `phone_number` varchar(10) NOT NULL );  ALTER TABLE `callback` ADD CONSTRAINT `callback_fk0` FOREIGN KEY (`f_unti_id`) REFERENCES `unit`(`unit_id`);


Make clear when the comment comes from the question's OP

With the theme used in this very site, comments from the question's OP are not different from the other ones.    Would not it possible to have it as in other sites?


I just found the pin option to drawing, and it looks useful in some of the things I want to draw. How do I format it though? I've tried pin=[red]60:{Hey!} and I get the error Cannot parse this coordinate.  \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning} \begin{document} \begin{tikzpicture}[node distance=2cm,>=latex, every node/.style={     font=\sffamily\scriptsize     },       circtext/.style={draw,circle,minimum size=8pt,inner sep=2pt},     dot/.style={draw,circle,fill=black,minimum size=0.6mm,inner sep=0pt} ] { \node[rectangle, fill=green!10!white!90!black, minimum width=6cm, minimum height=3cm] at (2,0){}; \node[circtext, fill=yellow](A) at (0,0) {A}; \node[circtext, fill=yellow, right=of A](B){B}; \draw[->] (A) -- node[dot, pos=0.5, pin=[red]60:{Hey!}](C){}(B); } \end{tikzpicture} \end{document}     The default style looks like it's a gray thin arrow, and I want to change it to a black thin dotted line with no arrow.    update: I figured out how to add style to the pin node:  pin={[red]60:Hey!}]  But I can't figure out how to change the linestyle though.


Liouvilles theorem question - show $f$ is constant

Let $f: \mathbb C \to \mathbb C$ be an analytic function, such that for all $z\in\mathbb C$, $$| \operatorname{Re}(f(z))\operatorname{Im}(f(z)) | \le 1.$$   I have to show that $f$ is constant.   I don't know how to apply Liouville's theorem to the question, but I can tell it is bounded, thus the theorem should apply. Any help would be appreciated.


How to Filter view by comparing 2 fields. If field-a < field-b

I have a product content type that has 2 price fields.  I want to create a view that shows all products where price-A is less than price-B.  I was hoping I could just add a filter and select price-A then choose operate less than and set the value as price-B, however you can't do that.  I have looked into using a views hook, mainly hook_views_query_alter but haven't had any luck.  I've also tried using the Views PHP module and been unable to get it to work.  Does anyone know the best way to achieve this?


Does the order of a keyword combination matter in the title and URL?

If I wanted to rank for "Christmas Coffee" does it matter whether my title is   A) 2015's Best Christmas Coffee  or  B) 2015's Best Coffee of Christmas  How much weight is put into this?


Nature of the quantum degeneracy pressure

It is commonly known that it is the electron degeneracy pressure that prevents the collapse of a white dwarf into a neutron star, and it is not the electromagnetic force. However, it is also widely accepted that all the forces in the universe are just manifestations of the four elementary forces in the universe. So can the degeneracy pressure, caused due to Pauli's Exclusion principle, be shown to be due to one of these forces? I have read some other questions in SE , , and they do not answer my question fully.  In one of the links, the degeneracy pressure is described as an 'entropic force', but as far as I understand, all entropic forces can be explained by the underlying fundamental forces. If the degeneracy pressure is something that is fundamentally different from the other forces, why isn't it classified as a separate force?


What are the exact conditions of "Active" questions?  I guess:   OP posted a question. OP edited the question. OP commented on the question. OP added an answer. Others voted on the question. Others edited the question. Others answered the question. Others commented on the question.   Which are correct and which are't?


I am having trouble getting the Record Animation setting to work in the BGE. Is it possible to record animated characters that are controlled using BGE's logic bricks with some script? In my script I change the positions of the characters bones.


php sort array with date as key with date format

I have an array as follow: The first key element is a date with the format dd-mm-yyyy  Array (     [08-12-2015] => Array         (           ------------         )     [07-12-2015] => Array         (           ------------         )     [09-12-2015] => Array         (           ------------         ) )   Is it possible to sort this array on the first key value bij date? So the first element is   Array (     [07-12-2015] => Array         (           ------------         )     [08-12-2015] => Array         (           ------------         )     [09-12-2015] => Array         (           ------------         ) )


How to remove command-line history from a specific time period?

How can I remove command-line history over a specific time period?  Is it possible do so with only one command?


dpkg: error processing package (Ubuntu 16.04)

I'm running Ubuntu 16.04. After install git (and later git-all), I'm getting the following errors whenever I try to run "sudo apt-get upgrade".  Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 No apport report written because the error message indicates it's a follow-up error from a previous failure. No apport report written because MaxReports has already been reached dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured dpkg: error processing package imagemagick-6.q16 (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration dpkg: dependency problems prevent configuration of imagemagick:  imagemagick depends on imagemagick-6.q16 (= 8:6.8.9.9-7ubuntu5.1); however:   Package imagemagick-6.q16 is not configured yet.  pkg: error processing package imagemagick (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  runit  git-daemon-run  imagemagick-6.q16  imagemagick E: Sub-process /usr/bin/dpkg returned an error code (1)   Help?


Copy/paste doesn't work properly when changing prompt colors

Open a prompt, try to do this:   type this code: export PS1="\e[1;30m-30-\e[m >" copy it with your mouse (select the code + copy it (I have auto-copy when I select with the mouse enabled)) close the prompt open a brand new prompt immediately paste it (SHIFT INS) type "HOME" key and "END" key, you'll see the cursor go to logical positions (start and end of the code) now press ENTER you prompt changes the colors immediately paste it (SHIFT INS) type "HOME" key and "END" key, you'll see the cursor go to illogical positions (offset problem)   This means if I apply colors to the prompt I can't copy/paste + change my copied code...   NB: I'm asking it here because I thought it was a problem of  but it seems it's only related to what I'm trying to assign: export PS1="\e[1;30m-30-\e[m >"... and I dont see a problem. It should just change the colors of the prompt (and that's what it does actually). But it seems it does something more I dont see. Does somebody know what it could be?


Entanglement: Is it possible to prepare and reset probabilities to send information?

I'm pretty certain that the answer to the question in the title is a no, but I don't understand why.  I have some basic misunderstanding of quantum processes that I’d like clarified in the form of asking questions about a hypothetical scenario.   So, let’s say we have a pair of entangled photons…  1)  Is it possible to prepare an entangled pair such that it can be known that, for example, the photon going down a certain path will be measured 25% of the time to be horizontally polarized and 75% likely to be vertically polarized?  I guess this would be some sort of quantum decoherence? Partial collapse?  2) If that is possible, then would it also be possible to measure that photon’s diagonal polarization in order to "reset" the horizontal-vertical probability back to 50-50? I've seen a trick done where you take some polarizing filters and stack them horizontal on top of vertical, so that no light gets through.  But when you slide a diagonally oriented filter between them, some light does get through, because the horizontal/vertical polarization information gets "reset" when measured against the diagonal filter.  3) If these two things are possible, then wouldn’t it be possible to send information along the entangled pair?  If you sent bursts of 1000 photons and were able to measure them all, and found that the first burst had ~750 vertically polarized photons but the second burst had ~500 vertically polarized photons, then wouldn’t you know that the second burst had their diagonal measurements taken?  Or would that not work because the extra measurements "break" the entanglement..?   4) Along with that, how many times can the photon pairs be measured before there are no longer entangled?  Just once?  Or maybe just once per state/qubit/aspect (such as polarization angle)?  I understand that measuring the photon would necessarily change it (like with the polarization filter trick), but then how do scientists measure the polarization angles of two photons like in experiments of Bell’s inequality?  I know that somewhere along the line, what I've described cannot be possible.  If it were, then you could easily send information faster than light.  E.g., say you had a photon-entanglement-generator-and-probability-fixer station in between two planets, 1 light year from the planet Foo and .99 light years from the planet Bar.  After a year's time, after the photon stream has propagated to both planets, scientists on Bar could measure diagonally polarization of 1000 photons to encode a 1 or not measure to encode a 0.  Then scientists on the planet Foo could measure vertically polarity and decode the 1s and 0s based on the statistical readings.  The Bar scientists could encode that such a message and the Foo scientists would "instantly" receive the message.  Except it would actually be from the past, since Foo is 1.99 years outside the Bar light cone.  So since this is impossible, what am I misunderstanding?  Thanks for answering, and thanks for putting up with yet another clueless but curious layman.


Possible Duplicate:          The following code:  \subsection{The classes $\mathcal{L}(\gamma)$}   generates the errors:  Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `math shift' on input line 1938.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `\gamma' on input line 1938.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `math shift' on input line 1938.   What do I have to do to keep \gamma in the subsection, so that it is also listed in the table of contents?


Predicting values in a given range [0, 1] (not probability)

I need to predict the impact of a set of node failures in a network, based on 2 features: the fraction of failed nodes and a measure of their network centrality.  Failure of less important nodes will have low to no repercussions, while failure of important nodes can bring down the whole network.  The predicted output should be a number in the range [0, 1], where 0 is "no damage", and "1" is "failure of all nodes". 0 is inclusive since I use it to cover the case "no damage" when the fraction of failed nodes is 0.  Here's an example mapping 2 features (x and y axes) to the actual simulation result (z axis). I plotted the scatter and the projection of the points. It looks like something that can be learned, right?    I'm using multivariate linear regression in scikit-learn to train a predictor. I take my training set, pick the 2 features I want, use them to make a 4th degree polynomial, which I then standardize and use to train my model.  The problem is, for some combinations of my 2 feature values, the predictor outputs negative values or values greater than 1. I can post a picture if needed.  I've tried changing the degree of the polynomial, using regularization (lasso, ridge and ElasticNet) and applying normalization. Nothing completely fixes the problem, especially for predictions >1.  Is linear regression the wrong tool for predicting values in a range? Any suggestion for a drop-in replacement? I'm tempted to try logistic regression, but it does not sound like the right tool, since it's for classification, and it outputs probabilities, while my values have a different meaning (not a "chance" but a degree of damage).


Why can't you downvote your own question?

I asked this question earlier today:    It was, in my opinion, well-posed but the answers made me realise that what I was asking was illogical. Of course, in the interests of the folk replying, it would not be good if I could delete the question as that would remove their gained reputation points. But I would like to signal to the community that the question is a poor fit to the knowledge base that SO is aiming to build: why should other folk be relied upon to do that? I would be willing to sacrifice a reputation point for the downvote for this sake.  Of course, upvoting your own question will lead to many problems, but I am not asking for that: just the ability to downvote.  I will, of course, be wanting to downvote this question too if it turns out that, on inspection of any replies, what I'm asking here is also illogical.


If $A$ is positive definite, then $\int_{\mathbb{R}^n}\mathrm{e}^{-\langle Ax,x\rangle}\text{d}x=\left|\det\left({\pi}^{-1}A\right)\right|^{-1/2}$

Let $A$ be a positive definite real $n\times n$ matrix. How can I prove that $$ \int_{\mathbb{R}^n}\mathrm{e}^{-\langle Ax,x\rangle}\text{d}x=\left|\,\det\left(\pi^{-1}{A}\right)\right|^{-1/2}=\pi^{n/2}\lvert\,\det A\rvert^{-1/2}\!, $$ where $\langle\cdot,\cdot\rangle$ denotes the inner product in $\mathbb R^n$, i.e. $\langle x,y\rangle =x^Ty$.


Installed Ubuntu 15.04 alongside Win8 with something else option in a new partition of HDD. But Ubuntu starts directly without letting me choose an OS

I am a Windows 8.1 user. I want to use dual boot with Ubuntu. I installed Ubuntu 15.04 with the Something Else option. Installed correctly in swap and ext4. When I start the PC Ubuntu boots. But I want to select win 8 or Ubuntu OS. During the installation of Ubuntu it showed a warning, something about BIOS UEFI mode.   Now how can I solve this problem? What setting can I use to be able to choose an OS to boot?  My motherboard is Gigabyte H81M-S2PV


Find the limit of the sequence {$a_{n}$}, given by$$ a_{1}=0,a_{2}=\dfrac {1}{2},a_{n+1}=\dfrac {1}{3}(1+a_{n}+a^{3}_{n-1}), \ for \ n \ > \ 1$$  My try:  $ a_{1}=0,a_{2}=\dfrac {1}{2},a_{3}=\dfrac {1}{2},a_{4}=0.54$ that is the sequence is incresing and each term is positive. Let the limit of the sequence be $x$. Then $ \lim _{n\rightarrow \infty }a_{n+1}=\lim _{n\rightarrow \infty }a_{n}=x$ $$ \lim _{n\rightarrow \infty }a_{n+1}= \lim _{n\rightarrow \infty }1+a_{n}+a^{3}_{n-1}$$  $\Rightarrow x=\dfrac {1}{3}( 1+x+x^3)$  $\Rightarrow x^3-2x+1=0$  and this equation has three roots $x=\dfrac {-1\pm \sqrt {5}}{2},1$   So the limit of the sequence is $\dfrac {-1 + \sqrt {5}}{2}$.  how can i say that the limit is $\dfrac {-1 + \sqrt {5}}{2}$?


Adding keys and values to a dictionary from two separate lists of same size

I have two lists, for example: A = [1, 2, 3, 4 ,5]  and B = [23, 34, 44, 43, 32]  I have initialized an empty dictionary D = {}  I want to pick an element from A as key and pick the corresponding element from B as value. For example the dictionary should look like: D = {1: 23, 2: 34, 3: 44, 4:43, 5:32}  So far, I have done the following: D = {} for k in A:    for j in B:        D[k] = j print("D is", D)  This only gives me an output as follows: D = {1: 32, 2: 32, 3: 32, 4:32, 5:32}  For some reason, it only pulls the last value from B which is not desirable. Please help.


What happened to rear levers for drop bar brakes?

I have a bike with an old set of second hand drop-bars, that have rear/upper bar brake levers, like this:    I've been looking around at modern drop-bar brake levers, and it seems like no-one manufactures levers like this any more. Why is that? It seems odd, since they give you two extra bar position with brakes in reach (on the flat, and high on the curve, which is really comfortable).


SQL join 2 tables where data is not intersecting

I have 2 tables, one for storing a post and the other for users that has liked the post.  I want to fetch the posts only where user has not liked it.  Example  Posts Table:                     post_id, title  Like Table:  like_id, post_id, user_id  I only want the list of posts where user has not liked it.  What should be the SQL query?


I am aware of floating point being inaccurate and would like to know the best way to get  0.08354 instead of (0.08353999999999999) when I do the following in Python:  d = 8.354/100  print (d)


Is there a possible hidden benefit to having many duplicates on Stack Overflow?

Some questions on Stack Overflow get repeated many times, for example basic Java IO questions.  Maybe I'm being the devil's advocate, but isn't there a possible hidden benefit to having dupes? I.e., then we attract more Google queries? Also - it allows some newbies to build reputation?  I guess what I'm asking is, do the  negatives of dupes to Stack Overflow really outweight the positives,  when it comes to having duplicates?   Edit: Just want to clarify that I'm supporting what Kate said.(in light of the current situation regarding closures vs. deletions. ) , Keeping dupes around while still closing them. I do see a benefit to, when the situation exists, directing users to high-quality dupes versus low-quality dupes. Although I'm not sure that we have a reliable way to differentiate what exactly qualifies a post as the "canonical duplicate." But overall, my original intent was more aligned with avoiding deletion(but allow closure).


Can magnets damage or wipe a laptop hard drive?

Suppose my small brother is playing magnets near my Dell laptop.   Will a magnet wipe data from the hard drive, or otherwise irreversibly damage the hard drive?


Traveling to Northern Kosovo (e.g. Zubin Potok)

We are three guys traveling to Kosovo for a road trip. We would like to visit the northern part of Kosovo (e.g. northern part of Mitrovica, Zubin Potok). However, authorities from our homeland advise against going there. And our car rental agency forbids us from taking a car there as well.   What options do we have? Can we go there by bus / foot? Can we organize a guided tour? How safe is it today? Can we potentially have troubles crossing the “bridge border” in Mitrovica?


Unmet dependencies while installing wine

I am trying to install wine for the Ubuntu 20.04 LTS (Focal Fossa) that I am using via . These are the steps I have made: sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ groovy main'  And now the last command in the process seems to have an issue that I have not been able to figure out. The command: sudo apt install --install-recommends winehq-stable  After I insert this command I get this: "Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 6.0.0~groovy-1) E: Unable to correct problems, you have held broken packages."  How do I solve this?


Adding a Link to a Field in a Field Set?

String queryFields = null;              for(Schema.FieldSetMember field : SObjectType.Task.FieldSets.Activity_Detail_Page.getFields()){                  queryFields = (queryFields == null ? field.getFieldPath() : queryFields+', '+field.getFieldPath());               }                String query = 'Select '+queryFields+' from Task where Id=\''+activityId+'\'';               task = Database.query(query);   i'll creating a field-set,now how do i add link on any field?  above code is  for dynamically query creation . below code of page   <apex:pageBlock title="Activity" id="Block1">       <apex:pageBlockSection title="Activity Detail">         <apex:repeat value="{!$ObjectType.Task.FieldSets.Activity_Detail_Page}" var="field">             <apex:outputField value="{!Task[field.fieldPath]}" />         </apex:repeat>     </apex:pageBlockSection> </apex:pageBlock>    As per the image attached, I want to add a link in Rounded field that liks to account. Can any one help me?


Why do Star Trek vessels always approach each other on parallel planes?

Space is just open 3D space, right? In Star Trek, ships are always coming from somewhere else: different solar systems, galaxies, etc. However, when they meet, they always seem to be on parallel planes (facing each other).  In some episodes I recall seeing ships that were adrift (and they appeared facing a different trajectory). How can there possibly be some standardized reference plane in space? Do ships just choose to align with each other to be polite? Or perhaps when entering a solar system, the pilot, or navigation system aligns orthogonally with the local orbital axis?


Guys i am from india none of the star wars movies have been released here but star wars episode 7 is going to be released and i think its interesting but i don't want to download all the episodes(i.e. Movies) and watch one by one, so just suggest me few so i can understand the basics and then watch upcoming additions


When changing the title of my activity from fragments cause crash

I have an activity with viewPager called WebActivity.The viewPager use instances of a webView Fragment(the fragment contains a webview inside it).I change the title of the WebActivity to "Loading.." from the fragments inside the viewPager to indicate the webView is loading.It does not cause any problem but when i move through the pages a lot i get a crash with logs as shown below:  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.app.FragmentActivity.setTitle(java.lang.CharSequence)' on a null object reference   at com.example.android.gametalks.Fragments.WebViewFragment$1.onPageFinished(WebViewFragment.java:91)   at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:199)   at org.chromium.android_webview.AwContentsClientCallbackHelper$MyHandler.handleMessage(AwContentsClientCallbackHelper.java:72)   at android.os.Handler.dispatchMessage(Handler.java:102)   at android.os.Looper.loop(Looper.java:168)   at android.app.ActivityThread.main(ActivityThread.java:5885)   at java.lang.reflect.Method.invoke(Native Method)   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)   Here is my fragment(Relevant part):  public class WebViewFragment extends Fragment {      WebView mWebView;     String currentUrl;      @Override     public void onCreate(@Nullable Bundle savedInstanceState) {         currentUrl = getArguments().getString("currentUrl");         super.onCreate(savedInstanceState);     }      @Override     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {         View rootView =  inflater.inflate(R.layout.webview_fragment, container, false); return rootView;     }       @Override     public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {         super.onViewCreated(view, savedInstanceState);          getActivity().setTitle("Web View");          setRetainInstance(true);         mWebView = (WebView) view.findViewById(R.id.webvieww);          mWebView.setWebViewClient(new WebViewClient() {             public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {                 Toast.makeText(getActivity(), description, Toast.LENGTH_SHORT).show();               }              @Override             public void onPageStarted(WebView view, String url, Bitmap favicon)             {                 getActivity().setTitle("Loading...");             }               @Override             public void onPageFinished(WebView view, String url) {                  super.onPageFinished(view, url);                 getActivity().setTitle("Web View");             }         });           if (savedInstanceState == null)         {             mWebView.loadUrl(currentUrl);         }      }


I inverted the LHS such that first term is $\cos(x/2^n)$ then and multiplied it by $2\sin(x/2^n)/2\sin(x/2^n)$ and evaluated it by $\sin2A=2\sin A\cos A$ but  now I am stuck.Are any other ways to prove it? Please give suggestions.what should I do?


Why does $\lim\limits_{n\to\infty} e^{-n}\sum_{i=1}^{n}\frac{n^i}{i!} = \frac{1}{2}$ and not 1?

The limit $$\lim_{n\to\infty} e^{-n}\sum_{i=1}^{n}\frac{n^i}{i!}$$ can be seen to be $\frac{1}{2}$, yet isn't the sum in this expression just going to be $\lim\limits_{n\to\infty}e^{n}$, making the limit 1?  I'm having trouble wrapping my head around why this isn't the case. Any help would be much appreciated.


Find the sum of the finite series $$\sum _{k=1}^{k=89} \frac{1}{\sin(k^{\circ})\sin((k+1)^{\circ})}$$ This problem was asked in a test in my school. The answer seems to be $\dfrac{\cos1^{\circ}}{\sin^21^{\circ}}$ but I do not know how. I have tried reducing it using sum to product formulae and found out the actual value and it agrees well. Haven't been successful in telescoping it.


Let $\mathcal A$ be a collection of pairwise disjoint subsets of a $\sigma$-finite measure space,Show that $\mathcal A$ is at most countable.

Let $\mathcal A$ be a collection of pairwise disjoint subsets of a $\sigma$-finite measure space, and suppose each set in $\mathcal A$ has strictly positive measure. Show that $\mathcal A$ is at most countable.  I have no clue about this one. Any hints would be appreciated.


I'm trying to get the directory where the executable is.  On debian, I know I can get the pid and do a "realpath" on /proc/[pid]/exe in order to have the absolute path. But I'm stuck on windows, because I don't know how to do. I want something usable on Windows 7 and upper.  GetCurrentDirectory doens't give me this information, since if the program is run from command-line, the current directory is not necessarly the rigth one.  My program will be a windows service, so it's even more true.  I can't use command line argument (like argv[0] or else) to determine the program's name or location. edit : My program is not necessarly in $PATH, so I can't use "where".  Is there a Windows API function that I have missed ? Or do I need to search like on Debian ?


Prove that $\mathbb{E}[e^{\mu+\sigma Z}\mathbb{I}_{\{Z > -d\}}]=e^{\mu+\sigma^2/2}Φ(d+\sigma)$

My solution attempt for part (C)  $$\mathbb{E}[e^{\mu+\sigma Z}I_{Z>−d}]= \int^{+\infty}_{-\infty} e^{\mu+\sigma Z}I_{Z>−d} \, dx= \int^{+\infty}_{-d} e^{\mu+\sigma Z} \, dx$$ since $$\int^{-d}_{-\infty} e^{\mu+\sigma Z} *0=0$$  So I am left to integrate $$\int^{+\infty}_{-d} e^{\mu+\sigma Z} \, dx=e^\mu\int^{+\infty}_{-d} e^{\sigma Z} \, dx$$ which I don't know how to do since $Z$ is a r.v.


I am wondering what you guys have a solution for invoice design?  For instance I have designed a nice invoice in AI and it seems like software like Xero does not accept SVG logos and you can't use a template backdop with background. So images we spend of time get rasterised.  Since most invoices are sent electronically these days a printed one from printers isnt an option.  I made it in PDF for the meantime but for long term it isnt an option due to the amount of invoices needing to be done.


I am crawling some data using Apache Nutch and storing it on my USB Drive. The OS itself is Ubuntu Live Boot OS. But for every restart or shutdown I am losing my data. I also tried suspending my Ubuntu user still data was not visible when I reinserted my live USB.  Is there any way I can keep the data intact and does not loose and application settings installations when I do restart Ubuntu.  Used USB installer provided by pendrivelinux.com at


My Kubuntu desktop has vanished- no icons, launchers, left-click

I'm not sure what I did, but now my KDE desktop is just a blank screen.  I am still able to log onto a gnome session, and the guest account has a perfeclty fine Kubuntu session, but no matter what I do I can't get a Kubuntu session with my own login.


$E(|X-Y|)$ for $X$, $Y$ i.i.d and uniform on $[0,1]$

What is $E|X-Y|$ when $X$, $Y$ are i.i.d and uniform on $[0,1]$?   I want to do something like   $$ E(|X-Y|)=\iint_{x>y}(x-y)\;dxdy+\iint_{y>x}(y-x)\;dxdy=2\iint_{x>y} (x-y)\;dxdy $$  But am not sure how to solve that last double integral or if this setup is right.


Asterisk and NAT: SIP and IAX registration failed on remote connection behind NAT

I set up two asterisk servers (on Fedora) in different networks. My goal is to make a call from softphone (on windows lite with ip: 192.168.20.3) to the asterisk server 2 which is in the other network (ip:192.168.10.2).   But the problem is in registration between the two asterisk servers which are behind NAT.  NAT IP for Asterisk Server 1: 100.100.100.100 NAT IP for Asterisk Server 2: 200.200.200.200     Architecture:        IAX.conf in Asterisk server 1:   [general] autokill=yes externip=100.100.100.100 localnet=192.168.10.0/255.255.255.0 nat=yes register => zone1:welcome@200.200.200.200  [zone2] type=friend host=200.200.200.200 trunk=yes nat=yes qualify=yes secret=welcome context=incoming_zone2 permit=0.0.0.0/0.0.0.0      IAX.conf in Asterisk server 2:   [general] externip=200.200.200.200 localnet=192.168.20.0/255.255.255.0 nat=yes autokill=yes register => zone1:welcome@100.100.100.100  [zone1] type=friend host=100.100.100.100 trunk=yes nat=yes qualify=yes secret=welcome context=incoming_zone1 permit=0.0.0.0/0.0.0.0      extensions.conf in Asterisk server 1   [general] autofallthrough=yes  [phones] include => internal include => remote  [internal] exten => _5XXX,1,NoOp() exten => _5XXX,n,Playback(hello-world) exten => _5XXX,n,Dial(SIP/${EXTEN}) exten => _5XXX,n,Hangup()  [remote] exten => _6XXX,1,NoOp() exten => _6XXX,n,Playback(hello-world) exten => _6XXX,n,Dial(IAX2/zone2/${EXTEN}) exten => _6XXX,n,Hangup()  [incoming_zone2] include => internal      extensions.conf in Asterisk server 2   [general] autofallthrough=yes  [phones] include => internal include => remote  [internal] exten => _6XXX,1,NoOp() exten => _6XXX,n,Playback(hello-world) exten => _6XXX,n,Dial(SIP/${EXTEN}) exten => _6XXX,n,Hangup()  [remote] exten => _5XXX,1,NoOp() exten => _5XXX,n,Playback(hello-world) exten => _5XXX,n,Dial(IAX2/zone1/${EXTEN}) exten => _5XXX,n,Hangup()  [incoming_zone1] include => internal      Registration state: Rejected     NOTES:   PING between the two networks is ok  Firewall on servers was turned off


"Total number of votes for 'N' answers" is wrong in "Deleted Recent Answers"

Below are the two screenshots. First one shows the number of votes          In above image a post which was deleted shown ) votes. Now in below image which is actual post deleted is having 1 vote.


blender 2.91.2 Viewport displays only gray in preview or rendered shading

I just installed blender 2.91.2 and whenever I switch to wireframe view it displays only the outer frame while the material preview or  render view shows nothing but gray , whether it's new project or old from the previous version it's the same


Can we find $ \sum_{n=1}^{\infty}\frac{1+2+\cdots +n}{n!} $?

Consider the sequence $$ a_{n} = \sum_{r=1}^{n}\frac{1+2+\cdots +r}{r!} $$ Then we have, $$ a_{n} = \sum_{r=1}^{n}\frac{1}{r!} \ + 2\sum_{r=2}^{n}\frac{1}{r!} \ + 3\sum_{r=3}^{n}\frac{1}{r!} \ + \cdots  + n\sum_{r=n}^{n}\frac{1}{r!} \ \geq \ 1 + \sum_{r=1}^{n}\frac{1}{r!}$$ for all $n \geq 2$. $\implies \displaystyle  \lim_{n \to \infty}a_{n} \ \geq \ e $ Now, in my book it says $\displaystyle  \lim_{n \to \infty}a_{n} \ = \frac{3}{2}e $ How can I attack this problem? Anyone please?


What is term for person who dismisses your side of opinion

What is the closer term for a person (in a relationship) who argues with you but when it comes to you, he/she just dismisses you as being absurd without listening a any contrary opinion (probably because of a prejudice)  or or/and  what sort of manipulation is this called when one self claims such argument as one's victory without actually arguing or debating.


Attribution: Quoting a Fictional Character

Famously:     "Try not. Do or do not. There is no try."           -- Yoda   Thing is, this is from a movie. A writer wrote it and a voice actor spoke it. Is there a correct form of attribution for a case like this? If so, what?


Is it possible migrate existing programs installed in windows?

Can I move my already installed programs to my ubuntu installation, and if so can someone give me the general gist of it? I'm pretty good with a computer so if you give me the general outline I should be able to manage.


Why is "herself" required in this particular sentence?

Why is a reflexive pronoun, i.e. herself, grammatically required in the following sentence?        I gave Susie a picture of herself.      Compare with:        I gave Susie a picture of her.      This sentence doesn't seem to be able to mean I gave Susie a picture of Susie. It means I gave her a picture of someone else.   I've looked at the following page, but this type of usage doesn't seem to be covered there:              The answers there suggest that we use reflexive pronouns when the subject and object of the verb are the same entity. Herself isn't an object in the example above, and Susie is not a subject either. The syntax in this example seems to be entirely different.  Also, why is the following sentence not grammatical?        I went there by me.      ... as opposed to:        I went there by myself.       This last example, of course, is perfectly fine. So the question here is why does this so-called 'idiomatic usage' contain a reflexive instead of a normal pronoun.  Lastly, why is a reflexive required  in this imperative?        Do it yourself.      Compare with:        Do it you.      Note that yourself isn't an object in that first sentence. (It would be if the sentence was Watch yourself, for example. The object in the example, however, is it.)  What then are the grammatical rules that stipulate the use of reflexive pronouns in these examples?  Edit note   I've changed the order of the examples here to take the focus off the probable emphatic usage in the imperative (although I'm still interested in the grammar here). I've also added a third example, which highlights more clearly the two issues I am most interested in hearing about:   Examples where we need a reflexive pronoun, but the pronoun isn't the object of a verb. Examples, where the antecedent, the original person or thing that the reflexive is duplicating,  is not the subject of a verb.    Any answers with relevant observations and or research would be very gratefully received, whether they address the whole question, or just parts of it.   Observations about the imperative example  Although I'm most concerned with the photograph example, I hereby offer some observations about the imperative one. Some of the interesting comments below suggest that yourself here is an emphatic version of you. As RegEdit's answer points out, the example with yourself seems to be contrastive. The sentence with you, on the other hand, does not give the same reading. I wonder why that is?   I note in passing that yourself seems to be an adjunct ('adverbial') here. This makes it different from another emphatic use of pronouns, which is when a pronoun appears as the subject of an imperative:    You do it!    I originally gave the imperative example for two reasons. Firstly, the reflexive pronoun here is obviously not the object of the verb. Secondly, however, I gave it because there is no antecedent word in this sentence which could be the subject of the verb, or, which represents the same person as yourself. I am curious as to whether the rules requiring reflexive pronouns in emphatic usages, are basically the same ones that require us to use them the rest of the time. In other words, I return to my original question: Why is  a reflexive pronoun required in this case?


How do I effectively copy and paste input and output in the Windows PowerShell?


:  But somehow, despite all of the reasons it shouldn’t work, it does. .   - it is strongly suggested that this doesn't work.  So at best, Shawyer has invented a very inefficient and expensive fan.  Even further - :  Shawyer's "analysis" is a mess, incoherent and deeply confused about fundamental aspects of relativity.  My question is: Has NASA confirmed that Roger Shawyer's EmDrive thruster works? Edit: There may . I just don't know what it means. Edit #2 I don't believe this is a duplicate of the other question - as it is not clear how much to trust NASA's engineers - or what their comment actually means.


What do you call a person who keeps talking about art; studies art, criticizes art, and thinks he'd be amazing with it. But he doesn't practice it

I've come across this word before. It's not "hypocrite". But the definition of the word was very specific. Basically it's an adjective, it's something you call a person who's really into art; like for example movies and film making.   He keeps talking about it, loves Stanley Kubrick or Jean Luc Godard. He studies the craft and technique, and he criticizes his colleagues' films. He thinks his taste is superior, and that if he given a chance, he would shake the industry. But in reality, he doesn't practice it. He's all talk, but no walk.   What do you call that person? (It also applies to other art forms like music. - "Our local musician sucks. He just does covers of John Mayer and Jason Mraz songs. That's why our music industry doesn't progress because of people like him. I listen to David Bowie and The Beatles, if I knew how to play a guitar, I would totally rock it out". ... )


I am a bit confused about the points a user can gain on this website.  There are many users who have points like e.g. 250  And many users who have points like e.g 15k  So can you please explain the difference between these points values?


How to create a bootable usb stick that is not read only

I try to create a bootable usb stick. (I have an updated Ubuntu 16.04 LTS) it seems simple enough to do this using Startup Disk Creator.  the usb stick is created and is working as bootable disk BUT now it has no write permissions!!  I had tried to remove the write protection - but nothing worked (chmod, dd, dosfsck, gparted, hdparm, fdisk, df ...)   How can I create Ubuntu 16 bootable usb stick with write permissions?  How can I remove the 'read only' from a usb stick?


Where can I get Ubuntu for a smartphone?

I have been to the Ubuntu website:  , where it appears that you can get it for any smartphone, but where do I do so? I don't see a specific 'download' or 'installation process' link. The only thing I find is where I can fill out a form to contact them, but that is just for developers. I only want to install it on my personal phone, no developing.


How do I file an amended tax return if I overpaid last year?

I just found out that I overpaid my taxes by a significant amount last year.  I suppose I need to file an "amended return" in order to get my money back.  The problem is that if I just fill out the new return, it will show what I should have paid, not what I did pay. How do I enter what I paid, so I can get back the difference? I looked in the "Payments" section of the 1040 and nothing listed is "amount you already paid", except withholding but this is not withholding.


Why does pdflatex fail with newline in equation source?

I recently encountered behavior I've never seen before.  This compiles fine:  \documentclass{article}  \begin{document}  \begin{equation}     f = x \end{equation}  \end{document}   But this fails:  \documentclass{article}  \begin{document}  \begin{equation}     f = x  \end{equation}  \end{document}   Why does pdflatex care about a newline inside the equation environment?


Don't get the solution of this java NullPointerException

class DotCom{     int[] arr;     int numOfhits=0;     void setLocation(int[] location){         int[] arr=location;     }       String checkGuess(int guess){         System.out.println(guess);         String result="miss";         for(int i:arr){             if (i==guess){                  result="hit";                 numOfhits++;                 break;                 }              if(numOfhits==arr.length){                 result="kill";             }         }         System.out.println(result);         return result;     } }  class TestDotCom{     public static void  main(String[] args){         DotCom obj=new DotCom();         int[] location ={1,2,3};         obj.setLocation(location);         int userGuess=2;         String testResult="fail";         String result=obj.checkGuess(userGuess);          if(result=="hit"){             testResult="passed";             }          System.out.println(testResult);     } }      in Dotcom class the int[] arr=location causes error. When I remove that i doesn't get any error what is going on over here? The error I get are  2 Exception in thread "main" java.lang.NullPointerException      at DotCom.checkGuess(DotCom.java:12)     at TestDotCom.main(TestDotCom.java:8)    I don't get it what's wrong with the program.


Not getting option to Boot with USB in Boot Options

I'm trying in dual boot Ubuntu 16.04 on my HP Pavilion G6 laptopn running Windows 10 Pro. In Boot options I'm not finding the option to Boot from USB in my Boot options. I've done the following: Was following the instructions from the below URL:    Disable Secure and Legacy Boot from BIOS and disable fast startup from power options. Downloaded Ubuntu 16.04 desktop ISO file and created an image in my USB using Rufus 3.10 with MBR partition scheme(the only option available). Restarted my PC entered into BIOS, selected the 'Boot Options' and here I'm not finding the 'Boot from USB/HDD' option.   Observed that my internal disks are in GTP partition scheme, read a post that USB should also be in same scheme, so tried to create USB image also in GTP scheme but Rufus wasn't giving me that option. Also, in Boot Options, there was an option 'Boot from EFI file...' through which I was able to see the USB detected and was able to browse files like a file explorer. No idea what to do with that, so left it there. Can anyone please help me in this tough situation? Thanks in advance.


Designing a friendships database structure: Should I use a multivalued column?

Say I have a table called User_FriendList, which has the following characteristics:  CREATE TABLE User_FriendList (     ID ...,     User_ID...,     FriendList_IDs...,     CONSTRAINT User_Friendlist_PK PRIMARY KEY (ID) );   And let us suppose that said table holds the following data:    +----+---------+---------------------------+  | ID | User_ID | Friendlist_IDs            |  +----+---------+---------------------------+  | 1  | 102     | 2:15:66:35:26:17:         |  +----+---------+---------------------------+  | 2  | 114     | 1:12:63:33:24:16:102      |  +----+---------+---------------------------+  | 3  | 117     | 6:24:52:61:23:90:97:118   |  +----+---------+---------------------------+   Note: The “:” (colon) is the delimiter when exploding in PHP into an array.  Questions  So:   Is this a convenient way to “store” the IDs of a FriendList? Or, instead, should I have individual rows with only one single FriendId value in each of them and, when I need to retrieve all the rows of a given list, simply perform a query like SELECT * FROM UserFriendList WHERE UserId = 1?


What is a good GTD app with cloud sync on iPhone, iPad, and Mac?

I am looking for a good GTD (todo/task/project management) app that has cloud sync. I'd like it to be on my iPhone, iPad and Mac. Web app would be nice, too.  OmniFocus is the closest thing I've found but it seems too expensive.  Things don't have clound sync... only WiFi sync is available for Things.  Do you know of any GTD app I'm looking for? Thanks!


Problem with definition of covering space

So, Hatcher defines a covering space as      A covering space of a space $X$ is a space $\tilde{X}$ together   with a map $p:\tilde{X}→X$ satisfying the following condition: Each point $x\in X$ has an   open neighborhood $U$ in $X$ such that $p^{−1} (U)$ is a union of disjoint open sets in $\tilde{X}$ ,   each of which is mapped homeomorphically onto $U$ by $p$.   Also he says      We allow $p^{−1} (U)$ to be empty, the union of an empty collection of sheets over $U$ , so $p$   need not be surjective.   But then, if the definition is satisfied for every $x \in X$ wouldn't that mean that $p$ maps $\emptyset$ onto some $U$? That doesn't make sense! And if it just means "for all $x \in p(\tilde{X})$" then why say "for all $x \in X$"?  Can someone please explain this to me?


I have a simple query:  SELECT u_name AS user_name FROM users WHERE user_name = "john";   I get Unknown Column 'user_name' in where clause.  Can I not refer to 'user_name' in other parts of the statement even after select 'u_name as user_name'?


When umpire change the cricket ball, was the old ball thrown as waste or keep for reuse?


Preventing SQL injection during registration

I'm busy creating a login system for my site and now I'm focusing on the registering system but I read that the POST method is vulnerable to SQL-injection and I want to change that. Now my problem is that I don't know very much about PHP and I don't get how to use prepared statements. Can anyone help me implementing it? Here is my code:  <?php error_reporting(E_ALL); ini_set('display_errors', 1); include('connect.php'); // If the values are posted, insert them into the database. if (isset($_POST["username"]) && isset($_POST["password"])){     $username = $_POST["username"];     $email = $_POST["email"];     $password = $_POST["password"];     $epassword = hash("sha512", $password);      $query = "INSERT INTO `user` (username, password, email) VALUES ('$username', '$epassword', '$email')";     $result = mysqli_query($connection, $query);     if($result){         $msg = "User Created Successfully.";     } } ?> <!DOCTYPE html>
   <title>Franeker Computer Reparaties</title> <link rel="stylesheet" href="styles.css" />

 <?php if(isset($msg) && !empty($msg)){     echo $msg;     }  ?>
Registreer
 <form action="" method="POST">
User Name :  <input id="username" type="text" name="username" placeholder="username" />

E-Mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :   <input id="password" type="email" name="email" required placeholder="name@email.com" />

Password&nbsp;&nbsp; :   <input id="password" type="password" name="password" placeholder="password" />
  Login <input class="btn register" type="submit" name="submit" value="Registreer" /> </form>

Home

Diensten

Advies

Contact


Could you please give advice on whether a comma is needed before the and in the following  sentence?  And if it is, why?     This autistic dance group has made history at the European   championships, and now they want to change the way we all see young   people with autism.


How to fix electric piano circuit board tracks?

Hi I am new so please be gentle. I have AP80R electric Piano with some keys which are intermittent. I have opened it up and it appears that the board has some signs of corrosion.  I have cleaned it and would appreciate next steps. Whether broken tracks can be repaired by applying conductive glue? how to identify where faults are?  I have attached a photo  Thank you  Pit


ruby attr_accessor/instance method confused

I am trying to understand the attr_accessor, and while digging I get pretty confused with the following behaviour:  class Item      def change_price         price=(2)     end      def price=(value)         @price = value     end      def price         @price     end  end  my_item = Item.new p my_item.price my_item.change_price p my_item.price  => nil nil   I would expect the price to be set to 2. Clearly I totally misunderstood something that I thought obvious. Would anybody be kind enough to explain me where I am being thick?  Thank you


Confusion about a particular differential form being exact?

Consider the differential form:  $$\omega=-\frac y{x^2 + y^2}dx + \frac x{x^2 + y^2}dy$$  I believe that this form is not exact. i.e: There does not exist a $\psi$ such that $d\psi=\omega$.  In particular, this is supposed to be true since the line integral along a loop, $$\int_{C}\omega = 2\pi \neq 0$$  But, what about $$\psi=-\arctan(\frac x{y})$$  According to Maple,    As you can see, Maple says that $d\psi=\omega$. So what's the deal here? Is $\omega$ exact or not?  Thank You!


how to check existence of a core files in directory using Python

I want to parsing some program's log and I want to check the existence of a core file in the log directory.   Assume the path is the log directory, and core file names always begins with string core (e.g., name is core.20161027.183805.28273.0001.dmp). Then is there any directed API I can use to check a core file in the path directory?  Thanks


Creation and annihilation operators in the hydrogen atom

In my quantum chemistry course, we have been discussing the wavefunctions of the hydrogen atom, further, I am familiar with the idea of ladder operators from the quantum harmonic oscillator. Can we use ladder operators to jump between orbitals in a hydrogen atom? It appears from a cursory check that $$ \hat a^+ \psi_{1s} \neq \psi_{2s} $$ such that $$\hat a^+ = \frac{-i}{\sqrt{2w \hbar}}(\hat P+iw \hat X)$$ Is there any such set of ladder operators such that the above relation would be true? Thanks, and I apologize in advance if this question is naive. (Further, I am asking about ONLY wavefunctions of the solved hydrogen atom)


Scope of variable in Java for Array vs non-array Object

I am trying to understand why output value is changed in case of Array and not in case of object.  public class SameClass {   private Integer a;   private Integer b[];   public SameClass(Integer a) {     this.a=a;   }   public SameClass(Integer a, Integer b[]) {     this.a=a;     this.b=b;   }   public static void main(String args[]) {     Integer a = new Integer(5);     Integer b[] = {2,5};     // create two different objects     SameClass sam = new SameClass(a);     SameClass samB = new SameClass(a,b);     //change values in local variables     a=7;     b[0]= 8;     //print values      System.out.println(sam.a);     System.out.println(samB.b[0] + " " + samB.a);   } }   Output of this code is :  5 8 5


Deduction of $\forall y \exists x (x=y)$

Give a deduction of $\forall y \exists x (x=y)$  My thinking is I can prove $\exists x(x=y)$ then use generalization theorem， which is equivalent to prove $\neg \forall x \neg (x=y)$ but I got stuck proving this... thanks in advance  Sorry that I did not specify what deduction system that I want to use here, it is the deduction sequence  where ai is either Axiom or original hypothesis or obtained from MP


How to disable auto-maximize new window in 18.10 (GNOME)

On any 18.10 application when I have an open window which is very wide and I then open a new window of same application the new window will auto maximize its size.   How can I disable this auto-maximize on new window creation? If it's possible, I wish to disable any type of auto-maximize window behavior  I tried following suggested solution from 18.04 which fails to work on 18.10 :      Open Terminal and run  gsettings set org.gnome.mutter edge-tiling false       You may also have to run  gsettings set org.gnome.shell.overrides edge-tiling false


Strange behavior for QgsProject snapping options - Python QGIS 2.8

I have some strange behavior regarding the snapping options function    setSnapSettingsForLayer in the QgsProject class.  I am setting the snapping parameters in the following way:  QgsProject.instance().setSnapSettingsForLayer(myLayer.id(), True, QgsSnapper.SnapToVertexAndSegment, QgsTolerance.Pixels, 10, False)   The snapping does not seem activated (there is no pink cross on my line layer that I called). When I open the snapping options via the GUI, what I first see is the snapping mode combo box on "Current Layer" with the snapping turned off. When switching to Advanced snapping, the layer I called in the method does indeed have snapping turned on with the correct parameters. Now, when clicking okay, the snapping is activated.  Any input on how I can get the snapping options turned on without having to navigate through the GUI?  Some more information, in case it has to do with the way the layer has been referenced--the layer is defined in this way:  layers = iface.mapCanvas().layers() for layer in layers:     if layer.name() == 'MyLayer':         myLayer = layer   I am now testing it this way...but it doesn't seem to make a difference.  layers = QgsMapLayerRegistry.instance().mapLayers().values() for layer in layers:     if layer.name() == 'MyLayer':         myLayer = layer   What I think is the problem:  I believe it has to do with the way the Current Layer snapping mode is set up. My code works okay when the project is saved with this mode on "sur un sommet et un segment" (endpoints and segments, in english, I believe). When the project has been saved with this mode on "Off" however, the advanced settings (set programmatically) do not override these settings. Is this correct? If yes, is there any way around it? Such as programmatically setting the "Current Layer" mode as well to ensure that it will be on the correct setting.  I found this QgsSnappingUtils::SnapToMapMode in the API, and am trying it this way to see if it gets me where I need (forcing the project to use snapping options based on the advanced mode, and not on current layer):  QgsSnappingUtils.setSnapToMapMode(QgsSnappingUtils.SnapAdvanced)   I am getting a TypeError though:  TypeError:QgsSnappingUtils.setSnapToMapMode(QgsSnappingUtils.SnapToMapMode): first argument of unbound method must have type 'QgsSnappingUtils'


I am asked this question :  Let $f(z)=a_0+a_1z+...+a_nz^n$ be a complex polynomial with complex coefficients. Prove that :  $$\frac{1}{2\pi i}\oint\limits_{|z|=r}z^{n-1}|f(z)|^2\mathrm{dz}=a_0a_n^*r^{2n}$$  I have tried pretty much everything and I am still lost. I am pretty sure that Cauchy's Theorem gets the job done but I didn't have any luck yet.


Why does the First Order in “The Force Awakens” refer to the Resistance as “Rebels” when the Republic is reinstated?

In Return of the Jedi, the Rebellion defeats the Empire so the Republic is reinstated.  So, why in The Force Awakens does the First Order refer to the Resistance as “rebels”? Shouldn’t they be in power?


null object reference with Console class

I'm trying to use the format() to print a string, but it's failing. The error is:  java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.Console java.io.Console.format(java.lang.String, java.lang.Object[])' on a null object reference  Here's the code snippet. Would appreciate any tips  public class BootNotifier extends BroadcastReceiver {     public String TAG = "BootNotifier";     Console console = System.console();     String fmt = "%s";     String msg = "Android boot completed successfully";      @Override     public void onReceive(Context context, Intent intent)     {         Log.e(TAG, "onReceive");         if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction()))         {             Log.e(TAG, "onReceive: BOOT_COMPLETED");             console.format(fmt, msg);         }     } }


Why do I have two dock when Show Application?

I have installed Dash to dock from Ubuntu software. Every ok, but when I turn on computer, or when restart I have two dock when I go to Show Application?  I was disable ubuntu dock from extention.   I just have read  but it not solve my problem.  Edit:  is solved my problem.


I have been going out of my mind trying to fix this problem. I recently moved from natbib to biblatex, as a lot of my references contain unicode characters. My citations used to work find using natbib, but since I have moved across to biblatex, they are not being found, resulting in the following:    Below is my minimal working example:  \documentclass[twoside,a4paper, 12pt]{memoir}   %Citations \usepackage{babel} \usepackage{csquotes} \usepackage[citestyle=alphabetic,bibstyle=authoryear]{biblatex} \addbibresource{test.bib}  \begin{document}  Sed ut perspiciatis \parencite{wilk1968}.  \printbibliography   \end{document}   My .bib file (test.bib), which is located in the same directory as the .tex file is shown below:  @article{wilk1968,   langid = {english},   title = {Probability {{Plotting Methods}} for the {{Analysis}} of {{Data}}},   volume = {55},   issn = {00063444},   url = {https://www.jstor.org/stable/2334448?origin=crossref},   doi = {10.2307/2334448},   abstract = {This paper describes and discusses graphical techniques, based on the primitive empirical cumulative distribution function and on quantile (Q-Q) plots, percent (P-P) plots and hybrids of these, which are useful in assessing a one-dimensional sample, either from original data or resulting from analysis. Areas of application include: the comparison of samples; the comparison of distributions; the presentation of results on sensitivities of statistical methods; the analysis of collections of contrasts and of collections of sample variances; the assessment of multivariate contrasts;\_ and the structuring of analysis of variance mean squares. Many of the objectives and techniques are illustrated by examples.},   number = {1},   journaltitle = {Biometrika},   urldate = {2018-06-01},   date = {1968-03},   pages = {1},   author = {Wilk, M. B. and Gnanadesikan, R.},   file = {} }   My .bib file was exported using Better BibLaTeX from Zotero. Any help is greatfully received.


I have some questions with accepted and/or upvoted answers, which I would like to no longer associate with my account.  I know it is impossible to actually delete them. The rationale behind that is that people who've answered your question also invested value, and that the question is now not only your possession, but rather a useful item to the whole online community.  That makes sense. To some extent.  I believe that I should have the right to control my data, though.  It would be great if there was an option to, instead of deleting my question, I could just unlink it from my account.  This is what Disqus does.


What's the difference between saturation and vibrance in Lightroom?

Both options affect colors in a similar way, but I can't figure out the difference.


How do I get find my iPhone off a iPhone I have bought second hand

Please help Me get find my iPhone off a second hand iPhone 5 need to get this off before I can use it for my son


I want to find double values in a string. String like this :  ("A1K 90" AK2 90.0000 90.0000d nil nil (QUOTE ("90" "duz" nil nil 4.0)))  I only want 90.0000 and 4.0. Not 90.0000d.  My regex is -?[0-9]+\.[0-9]{1,6}+(?![a-zA-Z])   This works in notepad++. But in c# it errors nested quantifier +.  This problem {}+. Then I removed +. But now my pattern broken.  How can I solve this problem?


Thumbnail seeking feature in video players

YouTube (and many other online video streaming websites) has a nifty feature. If you place the mouse cursor at any point on the video progress bar at the bottom of the video, a thumbnail pops up showing a preview of the frame of the video (approximately) at the second where the cursor is placed.   ()  I use SMPlayer and VLC to play videos and also have "Videos" (aka totem) installed by default.    Is there any settings/plug-ins/extensions/add-ons available for any of the above mentioned video players to enable a similar "thumbnail-seeking" feature? Alternatively, is there a video playing application (free or non-free) available for Ubuntu which supports enabling this feature?


Issues with accessibility using VoiceOver

I am blind and use voice-over for navigation.  Majority of the app works very well with voice-over, however, some text is not spoken. What I have noticed is that it is usually the comments that are not spoken.  This is a real shame, because this one little defect renders this app useless for a blind or visually impaired person.  I would be grateful if you could give it your utmost attention and resolve this issue.   App Version: 1.4.0 Device: iPhone6,2 OS Version: Version 9.0.1 (Build 13A404)


Let $A$ be a square matrix of order 2 such that $AA^T=I$. If $\det(A) < 0$, find $\det(I+A)$.  I managed to find $\det(A)$ which is $-1$, but I do not know how to proceed from here. Help is much appreciated.


How to align text in multiple separate align environments

EDIT: I disagree about the duplicity of my question. My question is slightly different and the solution given by Bernard is much better than solutions given to     I want the conditions of each equations to be aligned like so   but my code  \documentclass[a4paper,11pt,oneside]{paper}  \usepackage[fleqn]{amsmath} % Matematika \usepackage{fontenc} \usepackage{polyglossia}     \setdefaultlanguage{czech}  \begin{document}  \textbf{Something A} \begin{subequations} \begin{alignat}{2} &\beta_{a} = 2,00           && \qquad \text{for } f < 50\\ &\beta_{a} = 2,00 + 1 + 2   && \qquad \text{for } f > 50                                         \end{alignat}        \end{subequations}  \textbf{Something B} \begin{subequations} \begin{alignat}{2} &\beta_{b} = 2,00                   && \qquad \text{for } f < 50\\ &\beta_{b} = 2,00 + 1 + 2 + 3 + 4   && \qquad \text{for } f > 50                                         \end{alignat}        \end{subequations}        \textbf{Something C} \begin{subequations} \begin{alignat}{2} &\beta_{c} = 2,00                           && \qquad \text{for } f < 50\\ &\beta_{c} = 2,00 + 1 + 2 + 3 + 4 + 5 + 6   && \qquad \text{for } f > 50                                         \end{alignat}        \end{subequations}  \end{document}   currently produces this    How could I change the code to get the desired output?  I tried to put \hfill before the \text{for } f < 50 and \qquad after that but apparently \hfill doesn't work in align environment.


What should I use an IEnumerable or IList?

Can anyone tell me when I should use either.  For example, I think I should use an IList when I want to access the .Count of the collection or an individual item, correct?  Thank you.


I was wondering if there are any easy ways in Blender apart from grabbing individual vertices to bring all the vertices in the picture down so they perfectly aligned on the x-axis?


i just bought and build a BLB classic frameset. size 53 and im using 700x28c wheelset. but after that, my toe clip touching the front wheelset especially when i want to turn right or left. please help me to solve this prob.


I wondered about the different expressions one can use for heavy or unstable breathing. Rather than being heavy breathing from exercising, it's heavy, laboured breathing due to negative emotions.  Would these work ? :   "uneven breath/breathing"  "quickening breath"   Is there also an expression or phrasing to implement a "breathing that's growing... [rasp/laboured/winded] ?  Are there other expressions to describe the following statement "her pulse quickened". I assume it depends on context, but does this expression implies a positive source or a negative one ?  In terms of regular breathing, can one qualify someone's breath of "steady", or "quite steady" ?


How do you get the roots of the equation in algebraic form? I have no idea after changing to a trigonometric form. The angle was not simple.  $z^4- \sqrt3 i+1=0$


Finding the limit $ \lim_{x\to a^+} \frac{\cos(x)\ln(x-a)}{\ln(e^x-e^a)} $

I have been working on this question for a while now:  $$ \lim_{x\to a^+} \frac{\cos(x)\ln(x-a)}{\ln(e^x-e^a)} $$  I know the answer is $\cos a$, that's what the solutions say. But I don't understand how it became to that. I've tried solving it using L'Hopital rule but I've gone nowhere because the expressions just keep getting messier and messier. What's a sensible way to go about doing this? Thank you in advance for your answer.


Capitalizing lowercase names in technical writing (programming)

In a world of programming, there are number of tools which have purposefully lowercase names: like tmux or sed. When talking about this tools, how does capitalization work?  Do I never capitalize these, even when a sentence starts with these? Do branding rules apply here (like iPhone or eBay)?


SELECT grand parent of a row with in a single table - SQL

I have a table with following hypothetical data:  ID | Name    | managerId ---|---------|----------- 1  | James   | 2 2  | Martin  | 4 3  | Huges   | 5 4  | Richard | NULL 5  | Kavin   | 4 6  | Rita    | 3   In the above table we have:  Richard is manager of Martin is manager of James.  Richard is manager Kavin is manager of Huges is manager of Rita.  Now I have to select immediate manager and grand manager of an employee in this table. I mean if we start from Rita I have to select Huges (immediate manager) and Richard(grand manager).  How to do that. I have no clue at all.  EDIT: There isn't any specific levels of managers. An Employee can have 'n' Number for managers in hierarchy where n ϵ {0,1,2,3.....}


Mutual mouse pointer between two computers

Is it possible to have one mouse pointer for two computer systems?  It's like dual screening, but each screen is assigned to a different computer.  The OP of the indicated "answered before" asks for a hardware switch solution, this is totaly different.


When spacetime stretches, does both space and time stretch proportionally. That is, if you stretch Planck-length doesn't Planck-time also stretch proportionally? I find this to be a conundrum.