How do I tell my Views when they should unsubscribe from events?

I'm using MVVM to create an application which switches between multiple views. The views are instantiated through a ContentControl like this:  <ContentControl Name="DynamicViewControl" Content="{Binding }">     <ContentControl.Resources>          <DataTemplate x:Key="PageOneTemplate">              <pages:PageOne DataContext="{Binding PageOneViewModel}"/>          </DataTemplate>          <DataTemplate x:Key="PageTwoTemplate">              <pages:PageTwo DataContext="{Binding PageTwoViewModel}"/>          </DataTemplate>          <!-- And so on... -->     </ContentControl.Resources>     <ContentControl.Style>         <Style TargetType="{x:Type ContentControl}">             <Style.Triggers>                  <DataTrigger Binding="{Binding CurrentPage}" Value="{x:Static model:Pages.PageOne}">                        <Setter Property="ContentTemplate" Value="{StaticResource PageOneTemplate}"/>                  </DataTrigger>                  <DataTrigger Binding="{Binding CurrentPage}" Value="{x:Static model:Pages.PageTwo}">                     <Setter Property="ContentTemplate" Value="{StaticResource PageTwoTemplate}"/>                  </DataTrigger>                             <!-- And so on... -->                  </Style.Triggers>         </Style>     </ContentControl.Style> </ContentControl>   Where the underlying ViewModel looks something like this:  public enum Pages {     PageOne,     PageTwo,     // etc... }  public class PageViewModel : ObservableObject {     private Pages currentPage = Pages.PageOne;      public PageViewModel() {         PageOneViewModel= new PageOneViewModel(Model);         PageTwoViewModel= new PageTwoViewModel(Model);         // And so on...          NavButtonCommand = new RelayCommand(NavButton);         PreviousButtonCommand = new RelayCommand(PreviousButton);     }      public PageModel Model { get; } = new PageModel();      /// <summary>Gets or sets the current page.</summary>     public Pages CurrentPage {         get => currentPage;         set {             currentPage = value;             NotifyPropertyChanged();         }     }      public DataSelectionViewModel PageOneViewModel { get; }      public ProfileSelectionViewModel PageTwoViewModel { get; }      public ICommand NavButtonCommand { get; }      public ICommand PreviousButtonCommand { get; }      // This isn't my actual page change logic, just some code with a      // similar effect to get my point across     private void NavButton(object param) {         int next = (int)CurrentPage + 1;         if Enum.IsDefined(typeof(Pages), next) {             CurrentPage = (Pages)next;         }     }      private void PreviousButton(object param) {         int previous = (int)CurrentPage - 1;         if Enum.IsDefined(typeof(Pages), previous) {             CurrentPage = (Pages)previous;         }     } }   The problem is that in some of my Views, I need to subscribe to PropertyChanged notifications on their respective ViewModels so that I can change things in my View that can't be bound easily. This results in a "memory leak" (insofar as a memory leak can exist in C#) because the ContentControl creates a new View every time and it never gets cleaned up due to those event handlers still having references in the ViewModel.  I tried cleaning up all event subscribers to the ViewModel when the View changes, but quite apart from the fact that it results in view cleanup code inside the ViewModel, it also had unintended consequences, and made some of my functionality stop working.  Is there a way for me to tell my views to stop subscribing to events? Or, should I find a way to bind them (such as creating a custom control with DependencyProperties which can be bound).


Better sub-pixel rendering of fonts when monitor is in the portrait mode

When I turn the LCD monitor into portrait mode, the fonts rendering gives my head dizziness.  There are numerous questions and answers for the case of Windows OS. Also, there are answers for gnome.  I am using Ubuntu 16.04 LTS with unity.  The problem seems to be connected with RGB vs. BGR font rendering.  How to set BGR font rendering in Ubuntu 16.04?


I have a data table that looks like this (Not my table can't change the data)  Code     Version    Description AAA      0.0.0.0    Test of AAA AAA      0.0.0.1    Test of AAA BBB      0.0.0.0    Test of BBB CCC      0.0.0.0    Test of CCC CCC      0.0.0.1    Test of CCC   I want to return a list of unique "Code" values only. So my desired result will be:  AAA   Test of AAA BBB   Test of BBB CCC   Test of CCC   I've created a comparer class:  public class MyComparer : IEqualityComparer<MY_DATA_TABLE> {     public bool Equals(MY_DATA_TABLE x, MY_DATA_TABLE y)     {         return x.CODE == y.CODE;     }      public int GetHashCode(MY_DATA_TABLE obj)     {         return obj.GetHashCode();     } }   and in my code I have:  var mapCodes = (from mtc in GetAllData() select mtc)                     .Distinct(new MyComparer ())                     .ToList();   However it is still returning the entire contents back.  How can I achieve getting a distinct list by property?


Can I take fudge that has been produced in Guernsey (Channel Islands) into Australia together with my personal luggage?


OK I have looked up a plethora of these questions on how to install them, and honestly I can't get it to work for the life of me.   I don't know what I'm doing wrong, nor am I super experienced with linux.   When I read some of these instructions and they are even the slightest vauge, such as with not explaining from start to finish how to "cd" something, I tend to get rather lost.   So my question is, can someone just lay out for me in the most simple way on how to install my intuos wacom pen and touch cth-480 / cth-480/s? And I mean every single step, I have tried and tried and simply cannot get it done. I was hoping to ditch my shite of a track pad that comes with this throwaway laptop but no such luck.


Calling const member function in a non-const member function while both of them same function name

class MyClass { public:     void Bar()const     {         std::cout << "A::Bar() const\n";     }      void Bar()     {         std::cout << "A::func()\n";         //call Bar()const in here     } };   I would like to know how i should call Bar()const member function in Bar() member function?


How can I set a row as column in Unix. Example:  name : Keshav sub  : C++ branch: cse DOB  :22/09/1990 company:NONE  name : Vijay sub  : Java branch: cse DOB  :22/09/1985 company:NONE   I want output like this:  name     sub   branch  DOB           company Keshav   C++   cse     22/09/1990    NONE Vijay    Java  cse     22/09/1990    NONE


I believe I have paid too much for my home, what are my options?

Pretty self-explanatory here. I have owned the home for just about a year; I still believe in the neighborhood's long term potential, but there is a bit of buyer's market due to COVID and it is causing homes to sit for a while on the market, thereby inducing price cuts, thereby reducing the value of my home (based on a CMA). What should I do? I figured I just sit tight on it; either rent it out or live in it myself. Is the long term hold the move here? That's what seems to make sense to me but I want to make sure I have considered everything. Edit: To clarify, the original intention of this property was to buy it, live in it for a bit, and then rent it out perpetually as a source of income. The going rate in the area puts the property (if fully rent it out) at a -$50/month cash flow.


I am an Indian Citizen applying for a UK visitor visa from the USA for myself and my family. Do I need to ship each application separately or can I send all of them together? Thanks for the help.


Inductive proof of the closed formula for the Fibonacci sequence

Fibonacci numbers $f(n)$ are defined recursively:  $f(n) = f(n-1) +f(n-2)$ for $n > 2$ and $f(1) = 1$, $f(2) = 1$. They also admit a simple closed form: $$\sqrt 5 f( n ) = \left(\dfrac{1+ \sqrt 5}{2}\right)^n- \left(\dfrac{1 - \sqrt 5}{2}\right)^n \tag1$$  How to prove (1) using induction?  Remarks One could get (1) by the general method of solving recurrences: look for solutions of the form $f(n)=r^n$, then fit them to the initial values. But there should be a more concrete proof for this specific sequence, using the principle of mathematical induction.


How can I make my Ubuntu 12.04 look like a Mac?

I want my Ubuntu to look like Mac OS X. Just icon and theme if possible! Is it possible? Is there any way to install slingshot launcher?


Has shinys been more likely to find it pokemon X and Y because I saw it was 2x more likely to find. Is this true?


Should I include reference section on a conference poster?

I believe that including references is important, especially for a chemistry conference poster. However, I have more than two dozens of citations so it is way too lengthy.   Should I still include the reference section or should I simply explain when asked?


I am talking about the usernames of the form user****** assigned by the system. They can be quite confusing when multiple users with usernames of that format participate in the comments. Yes, a member's username is his own business and no it's not the end of the world to spend a few extra seconds to check the names more carefully, but it's still somewhat annoying.  What I propose is to prevent reputation progress when the user reaches a , that's when he or she can create new wiki entries. A limit on 50 or 100 would work equally well as long as it gets done. Of course the pending reputation will be rewarded once the new name is set.  Another solution would be to reward a badge for it, as a new user I was going after them and I suspect many new users will (Jeff Atwood even ).  At this point I'm neither for nor against this system. Even to me it does sound a bit... well... authoritarian. What is your opinion?    Edit: This came up in the comments section of  in a question. The two other participants have now changed their aliases.


I'm trying to call pdftex.exe from the command-line with a simple document that looks as follows  \documentclass{article} \begin{document} test \end{document}   But instead of my PDF I get the following output  This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) entering extended mode (c:/temp/1884874639.tex ! Undefined control sequence. l.1 \documentclass                   {article} ? ! Emergency stop. l.1 \documentclass                   {article} !  ==> Fatal error occurred, no output PDF file produced! Transcript written on c:/temp/1884874639.log.   Is there some command-line switch that I'm missing? My invocation is pdftex.exe -output-directory="c:\temp" 123.tex.


Counting length of another object property within object function -- JavaScript?

I am new to JavaScript objects so please bear with me.  This is my JavaScript:  var dragSources = {   elementSources: {     squareSource: document.getElementById('squareSource'),     circleSource: document.getElementById('circleSource')   },   ifDragSource: function(elem) {     console.log(this.elementSources.length);   } };   If you look at console.log(this.elementSources.length); you can probably tell that I am trying to get the length of the elementSources property. However, it returns undefined. What am I doing wrong?


Enable a web application on macbook to be accessed by hostname from other machines

I have a web application that runs on my macbook on port 3000. I want to test this on a couple of phones and looking up the ip of my macbook eachtime i want to test this is turning to be cumbersome. I wanted a way to do access the web application from these phones by using my macbook's hostname .   ➜  ~ti git:(release-us) hostname GM20152.local  ➜  ~ti git:(release-us) curl -s   gm20152.local:3000  You are being redirected.%   But when I try this url () from my other devices - which are connected to the same wifi network as the macbook - The browser cant find the server. I guess this is because the android phone that I am trying this on has no way of mapping this name (GM20152.local) to an ip address (my macbook ) . Whats the best way to accomplish this ?


How can I recover my village after someone saved over my Google+ account savegame?

So someone saved a level 2 to my Google+ account and now I can't transfer my game to my new phone because there isn't a second way to restore my progress.  It caused me to get kicked from my clan and I've shamefully spent a lot of money on this game! I don't want to lose it. Is there any way to restore it?


Why do the electron in Bohr's principal quantum levels or ground state do not emit radiation?

Bohr said that only certain orbits of definite energy are allowed inside the atom. He said that the electrons in their ground state do not emit radiation and that they will emit radiation when they fall from higher energy levels to lower energy levels. My question is what does orbits with definite energy mean? and why do the electron in their ground state not emit radiation?


How to solve this combinatorics problem from past TechGIG competition?

I am not able to solve this problem from many days. It appeared on Final Round of May Challenge on TECHGIG.com. I am asking it here because, it requires strong maths concept of combinations.  Problem Description:  KFC opened just a new outlet. The problem is that its very outer of the main city. A long highway leads to that KFC outlet. Due to very outer position of outlet almost no one stops in it, hence its now unprofitable to hold it now. One of the main reason is that they have not advertised well for their outlet. There are exactly N advertising boards on the highway from main city to this new KFC outlet. Now KFC want to advertise on some of these advertising boards ( Definitely advertising on every board cost some money) .  KFC strategy is very clear, they want that at least 'K' KFC advertisement should be there among M consecutive advertising boards. But at the same time KFC want to pay minimum for its advertisement because already it has spent a lot on its outlet.  Now your job is to help KFC and tell KFC the number of ways different ways in which they can place their advertisement on there boards ( definitely minimum number of advertisement) and still meeting its strategy.   Input/Output Specs: Input Specification: Your input will be Three integers values.  N advertising boards on the highway from main city to this new KFC outlet at least 'K' KFC advertisement should be there among M consecutive advertising boards. N, M and K (1 <= K <= M <= 50, M <= N <= 10^9)  Output Specification: Your output will be total number of possible ways modulo 1000000007. if the input values are invalid then your output will be "-1".


Let $a_1, \ldots, a_n$ be distinct positive integers. I want to prove that  $$\frac{a_1}{1^2} + \frac{a_2}{2^2} + \cdots + \frac{a_n}{n^2} \geq \frac{1}{1} + \frac{1}{2} + \cdots + \frac{1}{n}.$$  I've been considering using Rearrangement and Cauchy Schwarz, but cannot make any progress


I would like to set the server's default shell for any user that works on the server. I know how to set the shell for a single user, how do I go about setting the shell for all current/future users?


I received this in my email.   Please be reminded in accordance with the below email.    Is something wrong with this sentence?


Need to change FAT32 partition permissions

I have created installed K-Ubuntu with a seperate FAT32 partition with mountpoint as /windows. It shows up as /windows when I type ls in root directory. The issue is when I login as the primary user (while installing Ubuntu)  I am able to access it however I would like to allow other users to access the folder as well. Following are the steps that I tried and it did not work.  Tried chown to other user Tried added another user to the group using 'adduser' chmod 777  For all these I get error "Operation not permitted". Please help.


Is it possible to have multiple domain which point to a server with different ports?

I have a server, running multiple instance of tornado web sites on different ports. for example: 127.0.0.1:8000 127.0.0.1:8001 127.0.0.1:8002  Is it possible to assign each one a domain?


How to salvage a totally nuked cast iron dutch oven?

Please note: I don't believe this question is a dupe. There is , which has some excellent answers, but they are suggestions that don't apply to my situation because I have ruined my cast iron oven differently than the user who asked that question.    So last month I got a massive . I seasoned it by cooking it in a campfire for a few hours (w/ lid on), letting it cool, and then rubbing a little bit of olive oil into it. Last week I took it for a test drive and cooked some peach cobbler on it (again over campfire), and it was perfect. I cleaned it by boiling water in it for an hour, scraping off the crust with a wooden spoon, and then reapplying the olive oil to it.  Last night I decided to cook a pork shoulder roast inside of it. The instructions said to let it cook at 325°F for 3 hours. Since I'm still so new to campfire dutch oven cooking, I got a roaring fire going, and unloaded like 30 charcoal brickets into it and let them heat up. Definitely was blazing too hot, but I didn't know any better. (Subsequently since last night I discovered that there are actually formulas that correlate specific numbers of brickets and their locations with specific temperatures. In hindsight I think my oven was soewhere around 450°F.)  I put the oven on the fire (with the pork inside of it, and about 1/4" of apple cider vinegar resting underneath it). 90 minutes later I went to check on it and the pork was totally charred black and overcooked. So it was pizza for dinner! But, to my horror, the apple cider vinegar-herb-seasoning liquid had now turned into black carbonic rock in the bottom of the oven:    Under the lid was a buildup of a super thick tarry sludge that has the consistency of superglue.  I tried washing both the oven and lid with salt water (course grained). Very little came off. I tried boiling the oven over the same campfire for a few hours, and again, practically nothing came off. I went to the Google gods, and the best idea I was able to find was to soak both the lid and the oven in a 50/50 mixture of water + vinegar overnight. So I did that.  The oven remains unchanged, even after soaking in a vinegar solution for nearly 10 hours:    As for the lid, all of the surficial tar/sludge came off, but it is still super sticky to the touch, unlike it was before. And now there is almost a 'metal vapor' that its giving off.  What the heck happened here? Did I just cook at too high a temperature? Are you not supposed to cook apple cider vinegar in a dutch oven over the campfire? Much, much more importantly, how can I fix this and restore the oven to its full glory again?


I tried following , but I keep getting this error:


If at least one solution $r_1, r_2$ to $ax^2 + bx +c$ is rational, then prove that at least one of $a, b, c$ must be even. I have been trying to prove the contrapositive but have been facing trouble. Can anyone help me?


Is answering on a question you vote to close considered bad practice?

User djechelin recently posted an answer I was given during a review session. I voted to close the answer as it was no explanation and mainly a link-only answer.  Please see the answer here:   The user also voted to close the question and still answered, which I think is rather odd. I don't see any reason why you should answer I question which you think is a duplicate. In the ensuing conversations via comments the user argued this has worked well before and there is an error in the system of SO. The user also mentioned he did get some bronze badges for it, so it should be ok.  I strongly disagree with this practice. To me it seems this answer doesn't add anything useful to SO and is a blunt misusage of an answer to get same badges. I'd like to have the opinions of community members about:   Is it bad practice to comment on questions you voted to close in such circumstances (Trivial question, already answer, answer he gave also in the comment) Is it in general allowed to provide a link-only answer when this link goes to a SO-page?


How do I calculate the CRC32 (Cyclic Redundancy Checksum) of a string in .NET?


I compile everything correctly. It is shown a document as I wanted it.  But then, on the bottom of the page, it is written: errors: 0, warnings: 0, bad boxes: 31. What are those Bad Boxes?? That appearance hits my nerve because of a word bad, and I see nothing bad in my document, it compiled correctly, what can be bad?? Are bad boxes something I should worry about?? Is it possible to somehow reduce their number or even to erase them??  Please, help.


How to keep the footer always at the bottom of the page?

If i have less contents on the page then the footer stays on the middle of the page instead of at the bottom. I just want the footer will stay always at the bottom of the page after all the contents of the page. I tried different ways and found few solutions in stack but none of them are working as per my need. Most of the posts are 3/4 years of old. So, I'm wondering if anyone has any effective solutions that works fine. I'm using asp.net.I'm not good at css so may be I'm doing something wrong. My page format is like this-                     <form>

                     <ucl:headercontrol />                     <asp:updatePanel>                     </asp:updatePanel>

xxxxx

         </form>         This is just my page skeleton. I would appreciate if any can give me any idea.


Period usage when abbreviating at the end of a sentence

Regarding the following expression, we can realize that the period character is of dual functionality in its nature: partly denoting the abbreviation, partly being used to end the sentence.     I like rideable animals such as donkeys, horsies, cowsies etc.   Now, if we reconstruct the sentence in the following way, we'll be forced to use separate period characters for each of the functions and it looks pretty weird, at least to me. I wonder if it's the correct usage at all and what a correct alternative might be.     I like rideable animals (donkeys, horsies, cowsies etc.).   Please note that I'm not in any way asking about how to express the thought contained in the example nor that how to circumvent the situation (by rephrasing it as two different sentences or such).


How to calculate force on impact after free fall in water

I'm trying to calculate the force of a man falling from a bridge into water below. Thus far I've calculated everything except for the force he would experience hitting the water. Would I need to do some estimation to figure it out or what? I'm a little confused with where to go from here.  The final velocity of the body would be 40.07 m/s and the mass of the body is 78 kg. I imagine that's all you would need to be able to find the force since I calculated everything else already.


Should I use double punctuation inside and outside parentheses?

Which one of the following sentences is correct (or more acceptable):     Honor your creativity and write down anything that comes to mind (no   matter how silly!).      Honor your creativity and write down anything that comes to mind (no   matter how silly!)   Notice how there is a period at the end of the first sentence, but not in the second sentence.


The Druid is being better burglar than the Rogue. How can I fix that?

I have my concerns about a Druid being better thief than a Rogue of the same level. As a DM, should I prevent using the Wild Shape as a high-end burglary tool, and how? The Wild Shape feature  for an animal size, which makes this feature quite tempting for any rogue, from my understanding.  Starting at 2nd level, you can use your action to magically assume the shape of a beast that you have seen before. You can use this feature twice. You regain expended uses when you finish a short or Long Rest. Your druid level determines the Beasts you can transform into, as shown in the Beast Shapes table. At 2nd level, for example, you can transform into any beast that has a Challenge rating of 1/4 or lower that doesn't have a flying or swimming speed.  PHB gives examples of turning into wolves, crocodiles and eagles. But really overpowered is turning into a very small animals, like spiders or mice: The greatest thief At 2nd level, the Druid becomes an ultimate escape artist and completely overshadows the Rogue: Infiltrate a heavily guarded territory. Forget Stealth checks, making a disguise or bribing guards. Just turn into a little mouse and go through the main entrance. Or you can turn into a spider and climb walls unnoticed. Pass a reinforced locked door. Again, turn into a spider and climb through a keyhole or under the door. Since all the equipment can be merged into a Wild Shape, you can take your loot with you. Hide in an empty room. Enemies are about to find you, but you don't know the Invisibility spell? Turn into a mouse! Besides from Stealth checks advantage you will get Total Cover even behind the smallest objects. Or you can turn into (again!) a little spider and just sit on a ceiling. A ghost that leaves no traces. Pass traps, walk on pressure plates... Escape from any ropes and chains. Being chained into manacles, you don't need to make DC 20 STR or DEX check. Just turn into a mouse. Escape from a prison. There are plenty of rats in prisons and dungeons. Turn into one, slip through the cell bars and be free. As a DM, how can I limit the Wild Shape feature, to make the Rogue on par with the Druid?


How to calculate execution time in java?

I need to know how long my algorithm`s implementation is executed. What I do: long m1 = System.currentTimeMillis();         bm.search(mediumtext, mediumpattern);         System.out.println(System.currentTimeMillis() - m1);  But with every new run for the same example, it shows different values. So far I got them in the range 23 to 29. I tried also long mediumtime = System.nanoTime(); bm.search(mediumtext, mediumpattern); mediumtime = System.nanoTime() - mediumtime; System.out.printf("Elapsed %,9.3f ms\n", mediumtime/1_000_000.0);  And the problem is the same. Why it shows totally different values for the same example? Maybe there is a more exact and correct way to get execution time?


How to choose between web hosting and cloud hosting?

How to choose between normal web hosting and cloud hosting, what are the key points that can make this decision easier.  Does everything I can do in the normal web hosting is possible in cloud one? In Brief, when to choose which?


How to run Android-x86 4.2 ISO on VM VirtualBox?

I installed Oracle VirtualBox on Win7, then I downloaded  from . After I installed Android x86-4.2 on VirtualBox from ISO and creating fake SD Card for it, I tried to run it, but when I started it I saw these lines in console:  Detecting Android-x86... found at /dev/sda1  ANDROID root@x86:/ #   And no thing else. I tried that some times but result is the same. How I can solve this problem?  Update: Even I waited more than 20 minutes and nothing happen!


What's the nuance of susceptibility and permittivity?

I want to ask a question about the meaning of the names of some dielectric properties. I'm not a native English speaker, so I don't know why the name of the properties are susceptibility and permittivity. It could be trivial, but I want to understand why they are named this way.  As far as I understand, susceptibility is about how susceptible the material is. Atoms are susceptible to electric fields.  Then what about permittivity? Do they permit something? Permittivity is about total field and polarization ($\mathbf{D}= \epsilon_0 \mathbf{E} + \epsilon_0 \chi_e \mathbf{E}$ $=\epsilon_0 \mathbf{E}+\mathbf{P}$).  But to me, both look almost the same. Why don't you call susceptibility permittivity, and permittivity susceptibility?


I found my four independent variables have a high positive association with my depepednet variable. However, except one independent variable, P value of all other indepdent variables are not significant in my regressino analysis. My hypothesis is that each of my independent variables separately has a postive relationship with my dependent variable, so I have four hypothese. I was wondering if I should reject three of my hypothese under such situation?  Sorry, forgot to say, There is no collinearity problem with my independent varibales Thank you.  More information:Please see attached picture. It is my research model. After bivariate correlation analysis and partial correlation, all independent variables are positively associated with dependent variable. A hierarchical regression was used with control variable.I first put control variable in first block of SPSS, and then add the 4 other independent variables in second block. The results are in attached docuement. Three independent variables are not significant.... Correlation table:


Is it possible to shift just one bit within the bit shift?

My question is whether I can only switch bits B6, B5 to create a toUpper() function or if I would need to split the bits into separate parts   An example shift of this type would be:  1000001 to 1100001 (A to a)


What happens if both players die simultaneously?

If both players are very low health and someone plays this card:    Both players could die simultaneously. What happens in Arena when this event occurs? Does it count as a loss for both players? Does it count at all for your Arena record?  Side note: Holy Nova + Auchenai Soulpriest could cause the same scenario.


Is colorama the only way to change the python shell output colour?

So I have been trying to change the colour of the output in the shell, but it just ends up returning boxes. I am using python 3.7.4.


Insert another slide between a pause in beamer

I would like to have in beamer something like  \begin{frame} The two main reasons are :  \begin{itemize} \item First reason \pause  \item Second reason \end{itemize} \end{frame}   But I would like to insert an image to illustrate the first reason, that would be on another slide, without altering the display of my presentation.  I would therefore like to have   Slide n : slide a with first item shown Slide n+1 : slide b with an image to illustrate this first item  Slide n+2 : slide a with the two items displayed   How would it be possible ? And additionnaly would it be possible for the slide b not to be numbered ?


PictureBox.Image with Interpolation and SmoothingMode

The only way I know to draw an image to a picturebox without being jagged, is settings the Graphics to       uGraphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic     uGraphics.SmoothingMode = Drawing2D.SmoothingMode.HighQuality   But the only way where I can do this is to do that inside a PictureBox_Paint event.  However, I would like to do it only once.  Does anybody spot where I did it wrong?  I was trying to do it like this:  PictureBoxSetImage(Me.picUserImage, Me.ILUserIcons.Images(sGUID))  Public Sub PictureBoxSetImage(ByRef uPic As PictureBox, ByRef uBMP As Bitmap)      Using g As Graphics = Graphics.FromImage(uBMP)         modControls.GraphicsSetSmoothingMode(g)         uPic.Image = uBMP     End Using  End Sub  Public Sub GraphicsSetSmoothingMode(ByRef uGraphics As Graphics)      uGraphics.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic     uGraphics.SmoothingMode = Drawing2D.SmoothingMode.HighQuality  End Sub   With this approach, the image is still jagged.  When I use the "Graphics" instead that the Paint event exposes, it works fine, and the picture is smoothed.  Can anyone help?


It is common to use zzzzz (or some other number of z letters) to indicate that the "speaker" is asleep. What is the origin of such a usage?


What was the main difference between df[:] and df[::] ? python3

What is the main difference between df[:] and df[::] and could you please give me one sample example for regarding this.i was unable to understand.


I have written a small 'daemon' in bash that will switch to the headphones if they are detected, and if not, switch to an external USB speaker with PulseAudio.  What I'm looking for is some way to get notification of changes on the file /proc/asound/card0/codec#0, just like inotifywait does on real files (considering files under /proc to be as "pseudo-files").  I find my code a bit insane, because it runs sleep 1 with awk for the whole day, that is 86400 times a day :)  while sleep 1; do     _1=${_2:-}     _2=$(awk '/Pin-ctls/{n++;if(n==4)print}' '/proc/asound/card0/codec#0')      [[ ${_1:-} = $_2 ]] ||         if [[ $_2 =~ OUT ]]; then             use_speakers         else             use_internal         fi done   What I'm looking for is something like (this example doesn't work):  codec=/proc/asound/card0/codec#0 while inotifywait $codec; do     if [[ $(awk '/Pin-ctls/{n++;if(n==4)print}' $codec) =~ OUT ]]; then         use_speakers     else         use_internal     fi done   This way the commands inside the loop would be run only when there are real changes on the $codec file.


How does this snippet not cause SIGSEGV or similar

I've came across this interesting snippet. I said no way it could work (without crashing). Shockingly, it runs "ok" both on Linux (compiled with gcc) and on OSX (llvm). Even more disturbingly, Valgrind doesn't find anything wrong!!!   What gives?  int main(void) {   int a[3];   2[a] = 1; }


How can I see all questions from this user:


How can I disable control mouse wheel on windows?

Couldn't find any solution on the Web or SU. Is it possible to disable control-mouse-wheel-zoom functionality for Chrome on Windows 7?


Is $p\wedge q\rightarrow p$ a valid argument?

Those symbols represent the argument: $p$: both rabbits and turtles are mammals $c$: Rabbits are mammals. On the one hand, I don't think it's an argument because it's a tautology, but on the other hand there's no way for $p$ to be false if $p\wedge q$ is true. Lastly, is it sound?


My "Meta" rep on Photo.SE differs from my main rep

-> 683  -> 678  ???  (Doesn't really bother me too much but figured I'd report the bug...)


In my calculus class, my professor mentioned how to find the integral of $ \ln (x) $ using IBP with $ v = 1 $ and $ u = \ln (x) $ which simplifies the problem as the derivative of $ \ln (x) $ is much easier to work out. I tried this for a general function $ f(x) $ and using repeated IBP obtained  $$ \begin{align} \displaystyle \int f(x) \; \text{d} x &= x f(x) - \displaystyle \int  x f'(x) \; \text{d} x \\ &= x f(x) - \dfrac{x^2}{2} f''(x) + \displaystyle \int \dfrac{x^2}{2} f'' (x) \; \text{d} x \\ &= \displaystyle \sum_{n=1}^{N} (-1)^{n+1} \dfrac{x^{n+1}}{(n+1)!} f^{(n)} (x) + (-1)^{N+1} \displaystyle \int \dfrac{x^{N+2}}{(n+2)!} f^{n+1} (x) \; \text{d} x \end{align} $$  Which seems to resemble the standard Taylor series for $ f(x) $ apart from the alternating signs? I'm also curious as to the interpretation of taking the infinite limit in this case and whether this has any use in evaluating or at least approximating it on a given interval.


I am getting a part of my figure name on the top of the figure. How to overcome it?

this figure delivers the flowchart of fragility curve development through IDA


How to Install Android Apps to the SD Card by Default

I am following this tutorial for moving apps to sd card.    But My Default Location is not changing. And My Phone Memory is full and unable to install new apps.


How to Replace CentOS's GRUB with Ubuntu's GRUB

I can't boot into Ubuntu 12.04 just CentOS. How should I do to revert back Ubuntu GRUB?


Calculate the area on a sphere of the intersection of two spherical caps

Given a sphere of radius $r$ with two spherical caps on it defined by the radii ($a_1$ and $a_2$) of the bases of the spherical caps, given a separation of the two spherical caps by angle $\theta$, how do you calculate the surface area of that intersection?   To clarify, the area is that of the curved surface on the sphere defined by the intersection. At the extreme where both $a_1,a_2 = r$, we would be describing a spherical lune.   Alternatively define the spherical caps by the angles  $\Phi_1 = \arcsin(a_1/r)$ and $\Phi_2 = \arcsin(a_2/r)$.


Given a countable partition of the reals, must the condensation points of some part have nonempty interior?

To say that $p$ is a condensation point of a subset $S$ of a topological space $X$ is to say that any open neighbourhood of $p$ contains uncountably many points of $S$.  Let us suppose we have written $\mathbb{R} = \bigcup_{i=1}^\infty A_i$. I would like to know whether the condensation points of some $A_i$ must form a set with nonempty interior.  My thoughts: First of all, some of the $A_i$ may be countable. But, the union of all such $A_i$ is 1st category in the Baire space $\mathbb{R}$, so the union of all the uncountable $A_i$ is 2nd category in $\mathbb{R}$. Hence there is some uncountable $A_n$ which is not nowhere dense. The difficulty is that we could have $A_n$ equal to, say, the union of the rationals with a Cantor set, in which case the condensation points of $A_n$ are exactly the Cantor set (which has empty interior).   It is my feeling, although I can't seem to prove it, is that there must be at least one $A_i$ out there which makes use of its uncountability to fail to be nowhere dense.    I think the answer to this question is "yes". The key thing I hadn't noticed which makes this easy, pointed by Bryan Scott below, is that if $A \subset \mathbb{R}$ and $C$ is the set of condensation points of $A$, then $A - C$ is countable. As I see it, this is because of the following  Fact: If $S$ is an uncountable subset of a second-countable topological space $X$, then $S$ has a condensation point.  Proof. Otherwise, there is a cover $(U_s)_{s \in S}$ of $S$ such that each $U_s$ contains only countably many points of $S$. Since $X$ is second-countable, $S$ is second-countable, hence Lindelof in the subspace topology. Thus we can extract a countable subcover from $(U_s)$ and this shows, contrary to assumption, that $S$ is countable. QED.  Continuing, if $A-C$ were uncountable, it would have a condensation point which would also be a condensation point of $A$ so $A-C$ must be countable. Since countable implies 1st category, it follows from $\mathbb{R} = \bigcup_{i=1}^n A_i = \bigcup_{i=1}^n (A_i-C_i) \cup C_i$ that for some $i$ the condensation points $C_i$ of $A_i$ do not form a nowhere dense set. Since the condensation points of a subset of a topological space always form a closed set (clearly their complement is open), this $C_i$ is closed and not nowhere dense, or equivalently, is closed with nonempty interior.


The following example should show a square and a smaller copy of it inside, the commands xscale and yscale  work when I write the coordinates manually on both paths, but when I reference the coordinates defined previously, it doesn't.  \documentclass{minimal} \usepackage{tikz} \pagestyle{empty} \begin{document} \begin{tikzpicture} \coordinate (A) at (-1,1); \coordinate (B) at (1,1); \coordinate (C) at (1,-1); \coordinate (D) at (-1,-1); \draw (A) to (B) to (C) to (D) to cycle; \draw[xscale=0.5,yscale=0.5] (A) to (B) to (C) to (D) to cycle; \end{tikzpicture} \end{document}   This image shows the expected versus the obtained figure.    EDIT: Apparently I forgot to explicit my question, how to properly get this done? Apply scalings, or any transformation in general, to previously defined coordinates?


I recently found the level 12 plan for The Infernal Machine in Reaper of Souls. Where do I find the components to make one of them?  It requires the following keys to craft:   Key of Bones Key of Gluttony Key of War Key of Evil


I'm using libgdx trying to make a game, but when I run this from the desktoplauncher, I get a error in the console:  Exception in thread "LWJGL Application" java.lang.NullPointerException     at com.orhantozan.game.PongMain.render(PongMain.java:216)     at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:215)     at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)   What is the cause of this? I dont know what the error means :(  Core:   Desktop:   Dew class:


Is angular momentum conserved if you move off at a Tangent?

Lets imagine a binary system of two astronauts in space connected to one another via light rope.  The rope is taut and they're spinning round and round with their axis of rotation being the the axis perpendicular to the their centre of mass.  Now, my question is this. Lets say they each let go of the rope; they move off at tangents.  Is angular momentum conserved ? And what is their subsequent motion ?  My hypothesis : They will move off at constant velocity at a tangent to their circular motion. I believe that because they now under the effects of no external force by the rotational analogue of newton's second law (dL/dt = T) their angular momentum will be of equal magnitude but opposite sign.  Does this make sense ?


Why is $f(U) \cap V$ the zero set of $y^{n+1}, \dots, y^m$?

I'm studying Tu's proof (p. 123) of theorem 11.13, but I just have a question about one detail.  He has that $f\colon N\to M$ is an embedding of a manifold of dimension $n$ in a manifold of dimension $m$, and he shows that given $p\in N$, there are local coordinates $(U, x^1, \dots, x^n)$ near $p$ and $(V, y^1, \dots, y^m)$ near $f(p)$ such that $f\colon U\to V$ has the form $$ (x^1, \dots, x^n) \mapsto (x^1, \dots, x^n, 0, \dots, 0). $$ He then says     Thus, $f(U)$ is defined in $V$ by the vanishing of the coordinates $y^{n+1}, \dots, y^m$.   I understand this statement to mean that $$ f(U) \cap V = \{ q\in V \mid y^{n+1}(q) = \dots = y^m(q) = 0\}. $$ However, I don't understand why this should be the case. Couldn't there be other points of $V$ at which the coordinates $y^{n+1}, \dots, y^m$ vanish?


Comparing two XML including all XSD imports

Is there a library to compare two XML files including all imported XSD files? I need to know differences through the whole tree.  I need to know the individual differences because I need to report on them, not just that the files are different.


Following comes Topology Without Tears by Morris Let S and T be non-empty subsets of a topological space (X, τ) with S ⊆ T. (iii)  if S is dense in X, then T is dense in X. What I want to prove is: Show that R has uncountable number of dense subsets using(iii). Comments: Since S is uncountable P(S) is uncountable so no bijection exists.I can’t see how a bijection exists. Try Let S={$a+b\sqrt{2}$,a,b$\in N$, $a+b\pi$,a,b$\in N$} Let the set T={Q$\cup$$ Q^{c}$ ,(Q$\cup I)^{c}$ $\cup $ (Q $\cup $ I)} So each set in S is distinct uncountable and dense in R So each set in T is distinct uncountable and dense in R Since S$\subset T$ and by (iii) this shows there are $2^{\mathfrak{c}}$ dense sets If I have walked off the “deep end”, I would like to know how to do this stuff correctly.


I don't know how to be able to view my object normally again

So this is what I see now, but I cant get the bottom part (that's orange right now) to be viewed normally again, like the top part. I have no idea how this happened and I tried to google the problem but I am unsure what has even happened so I don't really know what to look for.  Can anyone explain what I can do to fix this?  Please keep in mind that I'm a beginner.


How to achieve a realistic display with bright colours?

I would like to model an iPhone wich shows a display with bright colors. When I am using dark color palette, there is no problem but when I use the light color palette, then it appears too brigh.


I purchased a digital game (Rainbow Six) and now I must download the game data. Can I instead copy the game data from my friend's PS4? He bought the digital version and downloaded the data already.   Can I copy it to my PC and then copy it onto my PS4 ? I know I can download data from my PC but can I copy data from his PS4 to my PC or directly on my PS4?


Why do nearsighted people see better with their glasses *rotated*?

If you are nearsighted (like me), you may have noticed that if you tilt your glasses, you can see distant objects more clear than with normally-positioned glasses. If you already see completely clear, you can distance your glasses a little more from your eyes and then do it. To do so, rotate the temples while keeping the nosepads fixed on your nose, as is shown in the figures.    As I said, starting with your glasses farther than normal from your eyes, you can observe the effect for near objects too. (By distant, I mean more than 10 meters and by near I mean where you can't see clear without glasses)  Note that if you rotate more than enough, it will distort the light completely. Start from a small $\theta$ and increase it until you see blurry, distant objects more clear. (You should be able to observe this at $\theta\approx20^\circ $ or maybe a little more)  When looking at distant objects, light rays that encounter lenses are parallel, and it seems the effect happens because of oblique incidence of light with lenses:    The optical effect of oblique incidence for convex lenses is called , and is shown here (from Wikipedia):    I am looking for an explanation of how this effect for concave lenses (that are used for nearsightedness) causes to see better.  One last point: It seems they use plano-concave or convexo-concave lenses (yellowed lenses below) for glasses instead of biconcave ones.


Do finite algebraically closed fields exist?

Let $K$ be an algebraically closed field ($\operatorname{char}K=p$). Denote $${\mathbb F}_{p^n}=\{x\in K\mid x^{p^n}-x=0\}.$$ It's easy to prove that ${\mathbb F}_{p^n}$ consists of exactly $p^n$ elements.  But if $|K|<p^n$, we have collision with previous statement (because ${\mathbb F}_{p^n}$ is subfield of $K$).  So, are there any finite algebraically closed fields? And if they exist, where have I made a mistake?  Thanks.


Java Generic Array Runtime Initialize error

I have created generic array but constructor can not initialize the array. When runtime program throws this exception   Exception in thread "main" java.lang.RuntimeException:  Uncompilable source code - generic array creation   how to initialize generic array properly.  class MyList<K,V>{     K[] k;     V[] v; public MyList() {     k = new K[0];     v = new V[0]; }  public void add(K key, V val){     Object[] ob1 = new Object[k.length+1];     Object[] ob2 = new Object[v.length+1];      for (int i = 0; i < k.length; i++) {         ob1[i]=k[i];         ob2[i]=v[i];     }     ob1[k.length]=key;     ob2[v.length]=val;      k=(K[]) ob1;     v=(V[]) ob2; }  public static void main(String[] args) {     MyList<Integer,Double> values = new MyList<>();     values.add(1,0.5); } }   why this happen, is there solution?


In how many sequences of length $n$, the difference between every 2 adjacent elements is $1$ or $-1$?

How do I find a recursion formula to solve the following question:  In how many sequences of length $n$, with elements from $\{{0,1,2,3,4}\}$, the difference between every 2 adjacent elements is $1$ or $-1$?  I've been trying to solve the problem for the last 5 hours maybe, I'm sure that I'm missing something..   This is a problem in combinatorics, and the solution must be by finding a recursion formula for the problem.   best solution I've come so far is that if we say that $a_n$ is the solution to the question, so let's count how many sequences of size $n-1$ there are that meet the requirement, and we complete the first element to make it a sequence of $n$ elements. so for $n-1$ there $a_{n-1}$ sequences, and for each sequence we have $2$ options to choose the first element (one option is to take a plus $1$ number from the number that start the $n-1$ sequence, and the other option to to take a minus $1$ number from the number that start the $n-1$ sequence), only problem as you figured out is that if the $n-1$ sequnce starts with $0$ or $4$ there is only $1$ option left for the first element in the sequnce.. so $a_n=2a_{n-1}$ won't work.  I think that the solution may involve using $2$ or maybe $3$ recursion formulas.  Hope I was clear enough.


Should I continue to Power Up my Pokemon, or evolve it ASAP?

So for some reason I have caught, like, a dozen Pidgey's. I have mostly been handing them over to the professor and have a good supply of Pidgey candy. I also have one Pidgey with relatively high CP that I've powered up a few times with stardust. I see from the arc around it that it looks like there's a maximum value to powering it up. I also have the option to make it evolve right now.  Is there a reason to power up a Pokemon before evolving them (or vice versa?) what's the best practice here?


What is wrong with the code:  String maintext = (String) main_text.getText().toString();  if(maintext =="10") {                ToneGenerator toneG = new ToneGenerator(AudioManager.STREAM_ALARM, 100);     toneG.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200); }   The code is working without if statement but with the use of if and .getText().toString() is not working at all.


Is there a keyboard shortcut to take a screenshot that doesn't use the PrtScrn key?

I am running Ubuntu on a Chromebook via Crouton.  As my keyboard does not have a Print Screen key, and I would like to take A screenshot, I am unsure of what to do.  I am using the Xfce interface, and I would like to take a screenshot of a LibreOffice drawing so as to change my background.


I have a strange class that has a interface object as attribute. What does it mean? public interface Acceptor{     public void accept(Thing thing);     public boolean hasSpace(); }  public class Box{     private final Acceptor acceptor;     public Box(Acceptor acceptor){         this.acceptor = acceptor;      }       public void acceptor(Thing thing){          acceptor.accept(thing);     }         public void hasSpace(){          return acceptor.hasSpace();     } }  Say I want to create an instance of Box, how?


Is an HP power adapter 19.5 v 3.33 safe replacement for 19.5 v 2.31A

I need a backup Power Adapter for travel and have an older PA from a previous HP Laptop. I have a tip adapter that will accommodate the 4.5mm to 3.0mm plug. I am concerned that going from 2.31A rated PA to 3.33A rating may not be safe, thoughts. Thank you


When building various structures such as the guard post or the scavenger workbench, you're prompted to assign a worker to the resource object:    However... I'm not seeing any indication of how I'm meant to achieve this, and without assigning a worker the structure doesn't operate...    How do I assign a worker to a resource object?


Cannot find "Run Ubuntu alongside with windows" option when installing

I have Windows 7, and I'm trying to dual boot Windows 7 and Ubuntu. However, when I try to install Ubuntu with a USB, it doesn't give me the option to dual boot. I can only "Replace Windows 7 with Ubuntu", or "Something Else".  I've installed Ubuntu on this computer before, and this option was present. What I'm asking for is a way to get that option, or how to use the "Something else" option.


I just found out DropBox(free) and I'm not sure if using it as a private storage for file uploads for a website is allowed and is not considered an abuse of their service.  For example, a blogger displays in image in his/her article and that image is stored in his/her dropbox.    Or a portfolio site of an artist featuring his/her artwork samples in his website and those pictures of his art are stored from his/her dropbox.  And how about a small commercial website like a website of a restaurant featuring its dishes?


Do all phases of ice look the same visually?

I recently read about different phases of ice on Wikipedia. But I can't find any pictures of the different ice phases. Do they all look alike visually? If you weren't able to measure the pressure and temperature, would you be able to tell one phase from another in any way?


I have a PHP function that check all of my php files, so none of the attacks could upload any script of something.. Although, my client's site is too old and a couple of days ago, I got a message from the server that says: MYSQL injection and the query is being tried to be used.  The system has a PHP version: 5.2.17 and there are mysql_queries that is being deprecated ... Although the update of the system is too hard to be done..  i tried to find a solution and check for these ones:    mysql_real_escape_string() is_numeric() htmlspecialchars(value, ENT_QUOTES)   I do not know if any of these counts! Does any of the above works, in order to avoid the SQL Injection?  Moreover, I found this one, as a good solution:  Use: filter_input(..) of PHP  the attack was made in $_GET value, but did not touch the DB.. yet.. The query I saw was something like identifier..  Any suggestion or help would be appreciated!


How to setup Windows from an external hard drive?

Is it possible to install Windows from an external hard drive?  I have Windows XP installed on my laptop, and I want to remove it and install Windows 7.  My Windows 7 installation is in an .iso format on an external USB hard drive.  Is it possible to install it or will I need to put in a DVD before I start installing?


Write a shell script that will return the list of files skipped by your repository git

I would love some help to write a shell script that will return the list of files skipped by my git repository.  There is an example code below  %> bash git_ignore.sh | cat -e .DS_Store$ mywork.c~$   Thank you.


What's the difference between these two types of query writing?

In relation to writing SQL queries, I could fetch something that I need in two ways:  Type 1:  select      cl.id  from      datahub_clients             cl,     datahub_client_accounts     cl_ac,     datahub_accounts            ac     where     cl.id=cl_ac.client_id     and     ac.id=cl_ac.account_id     and     ac.account_no_dataphile="7H0010A1" ;   Type 2:  select      cl.id  from      datahub_clients             cl     join     datahub_client_accounts     cl_ac     on     cl.id=cl_ac.client_id     join     datahub_accounts            ac         on     ac.id=cl_ac.account_id where     ac.account_no_dataphile="7H0010A1" ;   Following are the few queries in my mind: 1) Is there any difference between how the SQL compiler interprets them? 2) Should there be preference around any one? (Why?) 3) From scalability perspective, which one is better?


Counter example to $b_1^c : b_2^c \subset (b_1 : b_2)^c$

Let $\phi : R \to R^\prime $ be a ring homomorphism between unital commutative rings $R$ and $R^\prime$. Let $b_1, b_2$ be ideals of $R^\prime$.  It's quite easy to prove the following inclusion conserning contractions and colon ideals:  $$(b_1 : b_2)^c \subset   b_1^c : b_2^c $$  But how about the other direction? What would be an example that shows this inclusion is strict? I try to start from the right and see where the difficulty arises $x \in b_1^c : b_2^c$ i.e $xb_2^c \subset b_1^c$ i.e $xx_2 \in b_1^c$ $\forall x_2$ s.t. $\phi(x_2)\in b_2$ i.e $\phi(x)\phi(x_2) \in b_1$ $\forall x_2$ s.t. $\phi(x_2)\in b_2$ I think here, if $\phi$ isn't surjective, we don't have inverse image for all elements of $b_2$ and this test is weaker than the one we get from left hand side ($\phi(x)b_2 \subset b_1$).


Where to escalate video support for Blender

Where may I escalate continuing video issues with Blender? I don't have the "status" to make a bug report. Blender's continuing problems with video support is disqualifying. The latest release of Blender had already refused to work on three of my four machines. Only one laptop was able to run Blender at all, and then only after reverting to v2.81. This laptop ran blender fine until last night. Today Blender wont boot and generates the all too familiar "Blender requires OGL 3.3 to run...". The last box to die has OGL4.0 and Direct X 11. Yes, all of my boxes meet the stated video/hardware requirements, have current drivers, and OGL exceeding 3.3. It's a real problem that the only support for video problems is to parrot the OGL3.3/current drivers advice. While helpful for a few beginners, it is clear that Blender has video issues beyond currency. Is there a contact available to deal with Blender's persistent video problems directly? Thanks.


What exactly does the phrase "he/she was hurting" mean? Is the person in question experiencing pain?  Update: I am specifically looking for the phrase "to be hurting", not the individual words "hurt" or "hurting". I searched Google and Merriam Webster and did not find that specific phrase explained.


I could use System.getenv(String name) to get the environment variable, I would ask how to set  environment variable with java? I didn't find such method defined in the System class


How do I get a list of all AVAILABLE packages from the repositories that are configured from a command line?

OK, I understand how to get a list of installed packages on my system.  Now how can I get a list of all available packages from the list of repositories configured?


We just made the switch to Google Apps for part of our domain. We disabled the accounts that are now on Google Apps and mail routes correctly. Our problem is that now we have no way of seeing those users in the Global Address List.  So we have these users in our Active Directory, they have no mailbox on Exchange, and we want to be able to see/search for their addresses in the GAL. Is there any way to do this?  This is Exchange 2007, if that matters.


Why can't I suggest edits from android app?

Just downloaded and started using the SE app for Android. It's pretty good, though I still prefer typing on a keyboard. But one thing I discovered was that even if I'm logged into my account, and can ask questions and vote, somehow when I suggest an edit I get a little red drop down on the top of the screen that says  This account is not allowed to suggest edits.  Why is that? It can't be because I have <2000 rep, because at that point it's not called suggesting edits anymore......what's going on? (Google Play tells me I have the most up-to-date version of the app; I am using Jelly Bean, 4.2.2) written on my android tablet, using the app Edit: This question is a , . Suggesting duplicates/related questions is not something the app does, either......


Create a copy of object, then deleted an element only from the copy, not the original

How do I make obj2 the same as obj1 but not affected by the deletion?  Currently the name: 42 entry will be deleted from both objects.  Is it because of hoisting - that is, the deletion occurs before obj2 is created?    var obj1 = {  'name': 'John',  'age': 42, }  var obj2 = obj1  delete obj1['name']  console.log(obj1) console.log(obj2)


How can I control an existing remote shell?

On my remote machine, an xterm/shell has been created (by another process). I have full access to that shell through VNC. But really I would like to be using a text mode shell on my local machine.  How can I control the existing remote shell from a local one?  I can't create a new shell, that's the point.  But I have non-privileged access to the existing remote shell.


Hiding polygons outside of current atlas feature in QGIS?

Within the above image, I would like to ideally hide the polygons outside the current atlas feature (some to the east and also to the west - these are part of other atlas features)  They are currently masked which helps, but it would better if they could be hidden entirely.  I still want the MasterMap to show through, so I cannot just increase the strength of the mask (unless I can do that and exclude the MasterMap from the mask somehow?).  This is being created within QGIS 2.18.17 in a map composer.


Every subspace of a compact space is compact?

It seems as if every subspace of a compact topological space (equipped with its relative topology) had ought to be compact as well. Is this true in general?  And in particular, I want to use the fact that every quasi-projective variety is compact with the Zariski topology - I remember having proven it for quasi-affine varieties, but the same proof does not work for quasi-projective varieties. Is every quasi-projective variety compact?


What becomes the center of rotation when torque is applied?

Suppose a freely floating rod without any forces on it, and Now i apply a force perpendicular to the length of rod not through the center of mass, this causes rotation in the rod, but what becomes the axis of rotation if we observe the rod from an inertial frame not on the rod, and why exactly does that point becomes the axis of rotation?


Setting Project working directory in Eclipse when working with relative paths

I have workspace where I save all my java projects worked in Eclipse. Let's call it D:\Workspace\. I have a project in said workspace which route lets say is: D:\Workspace\DoubleDotting\.  In said Java project, in the main method, I create a file object in the following way:     File doubleDotted = new File("..\Folder1\file.xyz");   At the moment of exporting the program as a runnable Jar into D:\Projects\DoubleDotting\Folder2\, the program executes just fine, for D:\Projects\DoubleDotting\Folder1\file.xyz exists.  However file.xyz does not exist in D:\Workspace\DoubleDotting\Folder1\, so naturally when running/debugging the program from Eclipse, I get a FileNotFoundException.  Working with relative paths, is an amazing time-saver when working on generic programs that can be applied to multiple directories with a similar working structure, however it's a headache to debug within Eclipse.  Is there a way to change a project's working directory virtually within Eclipse or is the lazy option of creating such folders/files within the Project directory, the only solution to running/debugging within eclipse?


Consider the brief passage:     "I love your work, but calling you 'the artist' {1} just doesn't seem to be   cutting it anymore. What shall I call you?"      "OK. Call me George." {2}   So my instincts tell me to put {1} in single quotes as opposed to no punctuation (or perhaps even italics) but to do the opposite for {2}. Is this right? Why?  Let me expand this one further iteration:     "Wow, that's a great name, especially with this crowd. Maybe for your next book    you should call yourself Ringo."{3}


Simple Regex extraction of link from custom markup

I am not at all experienced with regex, so please bear with me.  I am building a simple content markup language for an admin.  I want for the admin user to be able to create a link by specifying the following within an admin;  [link="http://www.google.com"]Google[/link]  From this, I need to basically get the value XXX in [link="XXX"] and the value between [link="abcd"]XXX[/link]. So for the above example I'd want to extract '' and 'Google'.  I am working with PHP.  Any help would be greatly appreciated.


A sci-fi book or TV show about a tribesman discovering he or she actually lives in a huge spaceship

The story starts with a tribesman going on a exploratory voyage around the land, meeting other progressively more and more distant tribes, learning about the world. Gradually he or she discovers that the "world" is actually a giant spaceship flying through space.  The story climaxes by the hero ascending to the commanding deck and learning who actually pilots the ship and to what purpose.


"\clip" conflict with "every path" in tikz package

I want every draw in magenta and every text in blue. Without \clip the following MWE does not produce any error.  \documentclass[11pt,a4paper]{article} \usepackage{tikz} \tikzset{% every path/.style={magenta,text=blue} } \begin{document}     \begin{tikzpicture}     \clip (-2,-2) rectangle (2,2);     \filldraw (-3,0)--(1,1)--(3,-2)--cycle;     \end{tikzpicture} \end{document}   But it does with the present of \clip. Is there any approach of avoiding putting style on each \draw?


New "Ubuntu Software" not working (16.04)

After upgrading to Ubuntu 16.04, I tried to use the new software center that came along with it, but I found it to have a few issues. One, it didn't detect all the applications I had previously installed and two, whenever I tried installing new software with it, a new icon on the launcher (saying "Waiting to Install") appears, but no progress is made and the icon is stuck on the launcher.   However, I don't encounter any of these issues in the older Software Center. Does anybody know why this may be?


De Morgan's laws in logic and set theory

In logic De Morgan's law means $\lnot (A \land B) \Leftrightarrow \lnot A \lor \lnot B$  In set theory De Morgan's law means $(A \cap B)^C = A^C \cup B^C$  I'm surprised that the same idea is true in different fields. Is there any explanation for this phenomenon or is it just a coincidence?


I have limited knowledge of Marvel Comics. As per X-Men Origins: Wolverine, William Stryker created Deadpool (Weapon XI). Where as in the recently released Deadpool, Ajax did induce mutations in him and he claims the name Deadpool.  What is the actual timeline? Did Wade Wilson meet Stryker first before becoming Deadpool; If no, then how did he cure his face? If yes, then was he always a good swordsman?


Does anyone know what this font name is? I am trying to create something similar in latex


Evaluate $$\large{\int\dfrac{dx}{x^2(x^4+1)^{3/4}}}$$   I thought of rewriting this as $$\large{\int\dfrac{dx}{x^5(1+\frac{1}{x^4})^{3/4}}}$$ and substituting $$u^4=\left(1+\frac{1}{x^4}\right)\Rightarrow u=\left(1+\frac{1}{x^4}\right)^{1/4}$$ and subsequently I got $$du=\dfrac{1}{4}\left(1+\frac{1}{x^4}\right)^{-3/4}\times (-4x^{-5})dx$$  However, I can not think of how to proceed further. Any help would be truly appreciated. Many thanks in advance!


Can't pair 13" MacBook Air with iPhone 4 via Bluetooth

I'm not sure why, but I can't get my iPhone 4 to talk to my new MacBook Air 13".  I turn bluetooth on for both devices, open the Bluetooth Preferences and pair the devices.  This works - the code is displayed on the Mac and the phone, I click OK and it looks busy.  After that I get a message on the iPhone saying "[mac name] is not supported".  I have also tried clicking 'Connect to Network' on the Mac and that results in the error "The Bluetooth network is unavailable: There was an error connecting to your device. Make sure the device is turned on and in range".  I'm running 10.7.2 and iOS 5.0.  Well the device (iPhone) is on and in range.  Can anyone help?  I want to be able to control Keynote on my Mac using the Keynote Remote app on my phone.


I have an obj1: const obj1 = { val: {v: 0}}  I'm trying to deep copy it by doing: const obj2 = {...obj1}  However the {v: 0} is still not copied, how would I do this>


This is the first time I try to use Bibtex for my thesis and I am quite desperate because I cannot get it running. Despite the many post about the undefined references error in this forum, I still am not able to solve this matter.  I have created a very simple .bib and .tex file:  The .tex file:  % test.tex \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel}   \title{Bibtex Test}  \begin{document}  Cite this\cite{testcite}  \bibliographystyle{plain} \bibliography{references} \end{document}   The.bib file:  % references.bib @BOOK{testcite,    author = "Mustermann Max and Kraut Karl",    title = "Fixing Bibtex",    publisher = "Springer",    year = "2015" }   Both files are located in the same folder and I run my mainfile multiple time. I use TexMaker combined with MikTeX2.9.  There is no error but the simple warning sequence:  LaTeX Warning: Citation `testcite' on page 1 undefined on input line 10 LaTeX Warning: There were undefined references.  I assume the error occurs somewhere in my TexMaker settings. Could you please help me?


What's the cross product in 2 dimensions?

The math book i'm using states that the cross product for two vectors is defined over $R^3$:  $$u = (a,b,c)$$ $$v = (d,e,f)$$  is:  $$u \times v = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ a & b & c \\ d & e & f \\ \end{vmatrix} $$  and the direction of the resultant is determined by curling fingers from vector v to u with thumb pointing in direction of the cross product of u x v.    Out of curiosity, what's the cross product if u and v are defined over $R^2$ instead of $R^3$ instead:  $$u = (a,b)$$ $$v = (d,e)$$  Is there a "degenerate" case for the cross product of $R^2$ instead $R^3$?  like this is some type of 2x2 determinant instead?  for instance if had a parameterization:  $$\Phi(u,\ v) = (\ f(u),\ \ g(v)\ )$$  and needed to calculate in $R^2$:  $$ D = \Bigg| \frac{\partial{\Phi}}{\partial{u}} \times \frac{\partial{\Phi}}{\partial{v}} \Bigg| $$  There are plenty of examples in the book for calculating the determinate D in $R^3$ but none at all for $R^2$ case.  As in:  $$ \iint_{V} f(x,y) dx\ dy = \iint_{Q} f(\Phi(u,v) \Bigg| \frac{\partial{\Phi}}{\partial{u}} \times \frac{\partial{\Phi}}{\partial{v}} \Bigg| $$  $$ \Phi(u,v)=(2u \cos v,\ \ u \sin v) $$


Edit suggestion rejected by Community, similar edit got accepted later

I recently  which was rejected by the community. Edit was on question . I highlighted important keywords and function names for better readability, got approved by 2 users, however was rejected by community. Almost similar  for this question, by another user, got accepted.   I would like to know the reason for rejection so that I can improve my highlight edits moving forward.


Using hyphens between numbers and units before long and wide

I think the single dashes (hyphens) should be placed between the numbers and units in this sentence:     ...in a cylinder of 3-inch radius and 24-inch length.   Is that correct and should hyphens be added to this second sentence?     ...making a trench nearly 15 feet wide and more than 30 feet long.


How to create folder with date and time using timestamp with robocopy command

I want to create a folder using  this Timestamp: %DATE:/=-%_%TIME::=-%  My Robocopy command is :  ROBOCOPY "%BUILD_SOURCESDIRECTORY%\sourcefolder\" "\\server\destination\%date:/=-%_%time::=-%" /V   but it is not working, getting an error:  2020-04-07T03:53:21.7269608Z ##[error]Process completed with exit code 1. 2020-04-07T03:53:21.7292925Z ##[debug]System.Exception: Process completed with exit code 1. at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.ProcessHandler.RunAsync() at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync() at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)   Note: I referred to the below link but I want to create a folder with date and time.in this link only date stamp mentioned.    if anyone has an idea about, please let me know.


I have created a model and accidentally it overlap 3 times. How can i delete the overlap or duplicate mesh that created accidentally and get my single piece model. I tried Shift+L --> object Data but cant find. Manually deleting takes much time.    Any addon or way to delete the duplicate model overlap 3 times. Suggestion or help. Thanks


Every time my laptop boots, I am greeted by several "Ubuntu 13.10 has experienced an internal error" dialogs once the graphical desktop environment (whatever it's called) is displayed. Apparently the problem originates from plymouthd, which is (unsurprisingly) the .   Has anyone ever found a fix for this type of issue?  (I would provide log excerpts but I'm not sure where to find them.)


Conceptually, I don't understand what least angle regression Least Angle Regression (LARS) is and why it solves LASSO ().  We know that LASSO is:   $$\arg \min_x {\left\| A x - y \right\|}_{2}^{2} + \lambda {\left\| x \right\|}_{1}$$  From my understanding LARS is exactly like line search from CGD, where you take the variable that gives you the most desire result and iterate through.  Can someone give a walk through on how LARS solves LASSO?


perldoc perlrun contains this example:   #!/bin/sh  #! -*-perl-*-  eval 'exec perl -x -wS $0 ${1+"$@"}'      if 0;   But I don't understand why it might be needed.    For example, if my perl interpreter has been installed in /home/user/folder/../../.. and I use such a construct — will my script work?


Master in Germany after 3 years bachelor degree

I've completed my 3 years bachelor degree in B.Sc.Hons in Computing from Nepal affiliated to London Metropolitan University and i am planning to do Ms in Germany. Am i eligible to enroll directly in master program in Germany?


How to determine the model order from ACF and PACF?

Can someone help me out with this? I have a first difference TS that has a constant mean around zero, but the variation differs for some periods.     I get the following ACF and PACF   What can be a possible model for this TS? Can I say a ARIMA(0,1,1) is suitable?


How do I disable updates in Ubuntu 20.04?

The notorious updates keep showing up in Ubuntu 20.04. Is there any way to disable them?


Increasing Amount of UV surfaces after sphere creation

In Blender 2.79 when you create a UV sphere the Add UV sphere menu pops up. As soon as you interact with the object in any way your ability to change the amount of segments and rings disappears. My question: Is there a way to get this menu again or am I stuck with using a subdivision surface?


Keep silverlight video in full screen in a dual monitor configuration

I have a silverlight video playing in the second monitor attached to my laptop. I want to work on my laptop screen and want silverlight video to remain in full screen mode.  Is there some configuration change i need to do on my laptop to make this work?


Must function $f$ substitute in integral be injective on segment?

Problem: I want to calculate the area of a circle of radius $r>0$. One idea is to calculate area of $\frac{1}{4}$ of circle, so that the area is  $$4\int_{0}^{r} \sqrt{r^2 -x^2} dx$$ To solve this we use the substitution $$x = r\cos{t}$$ $$dx = -r\sin{t}dt$$ and the integral can easily be solved.  My question is the following. What if I want first to calculate area of semicircle and then just multiply by $2$? $$2\int_{-r}^{r} \sqrt{r^2 -x^2} dx$$ The substitution $x = r\cos{t}$ works even if $r\cos{t}$ is not injective on $ [-r,r]$?


How to distinguish documentclass environment that is current in

The environment is:  \documentclass{beamer} \usepackage{xparse} \usepackage{expl3}   Or:  \documentclass{article} \usepackage{xparse} \usepackage{expl3}   Following is an accustomed command sequence, \pog, which is written with the two package commands, sparse and expl3, except the second line one that is merely for expressing question but not a affirmative command in term of certain package:   If documentclass={Beamer}{% if   }%if   {%if   }%if   The complete command: \pog  \NewDocumentCommand{\pog}{m o O{Detail} m m}{ %newCS If documentclass={Beamer}{% if \IfValueTF{#2}{ %if     \tl_set:Nn \l__hezilun_tmp_tl {#4}     \tl_case:Nn \l__hezilun_tmp_tl {%  case         \c_enum_tl { %c_enum_tl             \begin{frame}{#1}              \begin{columns}                 \begin{column}{0.5\linewidth}                     \begin{figure}                         \includegraphics[width=\linewidth]{pics/#2}                     \end{figure}                 \end{column}                 \begin{column}{0.5\linewidth}                     \begin{block}{#3}                         \begin{#4}                             #5                         \end{#4}                     \end{block}                 \end{column}             \end{columns}          \end{frame}         }%c_enum_tl          \c_desc_tl { %desc_tl                  \begin{frame}{#1}                     \begin{columns}                 \begin{column}{0.5\linewidth}                     \begin{figure}                         \includegraphics[width=\linewidth]{pics/#2}                     \end{figure}                 \end{column}                 \begin{column}{0.5\linewidth}                     \begin{block}{#3}                         \begin{#4}                             #5                         \end{#4}                     \end{block}                 \end{column}             \end{columns}         \end{frame}         }%desc_tl     }%case }%if {%if \tl_set:Nn \l__hezilun_tmp_tl {#4}       \tl_case:Nn \l__hezilun_tmp_tl {%  case         \c_enum_tl { %c_enum_tl                    \begin{frame}{#1}                         \begin{#4}                             #5                         \end{#4}                     \end{frame}         }%c_enum_tl          \c_desc_tl { %desc_tl                \begin{frame}{#1}                                             \begin{#4}                             #5                         \end{#4}                      \end{frame}         }%desc_tl     }%case }%if  }%if {%if     \tl_set:Nn \l__hezilun_tmp_tl {#4}     \tl_case:Nn \l__hezilun_tmp_tl {%  case         \c_enum_tl { %c_enum_tl             \paragraph{#1}                     \begin{figure}                         \includegraphics[width=\linewidth]{pics/#2}                     \end{figure}                        \subpragraph{#3}                         \begin{#4}                             #5                         \end{#4}             }%c_enum_tl          \c_desc_tl { %desc_tl                 \paragraph{#1}                     \begin{figure}                         \includegraphics[width=\linewidth]{pics/#2}                     \end{figure}                        \subpragraph{#3}                         \begin{#4}                             #5                         \end{#4}         }%desc_tl     }%case {% if }%newCS \ExplSyntaxOff


Why can't I do $u$ substitution on $\int \cos^4x dx$?

I tried to rewrite the integral as $$\int (\cos^2x)(\cos^2x)dx$$ which in turn I used the trig identity of $\cos^2x = 1 - \sin^2x$ and therefore changed $$\int (\cos^2x)(\cos^2x)dx = \int (1 - \sin^2x)(1 - \sin^2x)dx = \int ( \sin^4x - \sin^2x + 1) dx$$  I then tried to do u substitution where $u=\sin x$ and $du=\cos x dx$  But my answer was completely wrong...I ended up getting $$\frac{\sin^5x}{5}+\sin x-\frac{2\cos^3x}{3}+K, \quad K\in \mathbb R$$  Am I doing $u$ substitution wrong or is there a better way to solve this integral?


Multiplicative group of field extension over base field

Let $k\subset K$ a field extension. Assume that $K$ is infinite. Then the index of $k^*$ in $K^*$, $[K^*:k^*]$ (as groups) cannot be finite. How can I prove this?  If $k$ is finite then I know how to solve this since, if $\mid k\mid =q$ then , if we assume that $[K^*:k^*] = n$ is not finite, we have that $K$ can be partitioned into $n$ disjoint sets with $q$ elements. So $\mid K\mid = nq$ not finite, therefore contradiction.  I dont know how to prove it for $k$ is infinite as well.


How to reset the $PATH in terminal OS X El Capitan? tried previous posts but did not work

I accidentally messed up my $PATH. I Tried to follow the instructions from the previous similar questions but I keep having the same problem When I type:  echo$ PATH,  I get the following response: /Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin . Do you know how i can reset the PATH?  The operating system is OS X El Capitan. Thank you so much


After that Visa expired, re-entering US with ESTA to take a flight back to Europe

I'm a French citizen with a US J1 visa that will expire in 2 days. In 2 days I will visit Canada, and I would like to re-enter USA 10 days later just to take my flight back to France. I thought it was possible for up to 1 month after visa expiration, but I just heard that I was wrong. Can I make an ESTA to re-enter US, stay 1 day waiting my flight, and leave? And if it is theoretically possible, is it still possible knowing that I do not have much time left?


Why isn't math completely solved by expert systems?

Everything in math can be perfectly defined or formalized. And we could derive logical conclusions from that. However, mathematicians still use human natural language to solve their theorems.  Why isn't automatic proof checking or automated theorem solving the kernel of math?


Best practices on using sudo in a bash script

I have a long and long-running bash script where a handful of commands need to be run as root while the majority of commands need to be run as the regular user before sudo, because it would mess up file ownership and such.  I came up with some methods, but each of them have some problems  Method 1: Using sudo inside the file  #!/bin/bash sudo echo "I must be run by root" touch needsToBeOwnedByUser1 echo "needs to be run by user" sleep 1000 sudo echo "I, again, must be run by root"   This would look good, from the way the code is written. sudo is written before the few statements that actually need to be run by root, but if the time between each sudo call is too long sudo again asks for a password. Also, if the first execution of sudo fails, e.g. due to an invalid password, the rest of the script is still executed.  Method 2: using sudo to call the file and then change back to the original user when needed  #!/bin/bash echo "I must be run by root" su username -c 'touch needsToBeOwnedByUser1' su username -c 'echo "needs to be run by user"' su username -c 'sleep 1000' echo "I, again, must be run by root"   This also sucks, because I need to add su username -c in front of almost every line. Also finding the original username after sudo is possible, but cumbersome.  Is there a better way?  Edit: I only posted small, nonsensical scripts here to show what I am talking about. In the actual script I have some lines that need sudo (starting and stopping services), some lines where it does not matter if there is sudo and quite a lot of lines that really need to be run without sudo.


Bug separating an array of cubes in blender 2.90?

I'm new to blender, but looked at several videos and tutorials and tried to do it in 2.90.0. Starting from a simple cube, created an array in 3D (3 arrays in X, Y and Z), fixed distance, leaving some space between them. Entered Edit mode (array selected), here something was already strange, tried to see everything selected, was not possible until I´ve activated the Object Data Properties selector in the array modifier. Then hit P and selected By Loose Parts, but nothing happens. Just keeps where it is. When the Object Data Properties selector in the array modifier is NOT selected, then all the array does not select in Edit Mode. After trying again and again, starting over, new file, etc. I´ve download version 2.83 LTS and made the same thing, and it worked. Tried 2.90.1 and this version also did not work. Did something change in a way which is not documented and I´m missing something?


It was soft and covered in flies. My guess is fungi.  Location: South Florida.


How do I partition my active NVMe M.2 SSD?

My computer has only one storage device installed at the moment, a Samsung SSD 970 EVO Plus 1TB. It currently has two partitions on it:  /dev/nvme0n1p1: EFI System (537 MB) /dev/nvme0n1p2: Linux Filesystem (1000 GB)  I'd like to break the second partition, /dev/nvme0n1p2, into two smaller 500 GB partitions using the "Disks" utility that came Ubuntu. After asking me for authentication, it fails with the following error message: Error unmounting /dev/nvme0n1p2: target is busy (udisks-error-quark, 14)  This seems to make sense, because the partition is currently in use. However, it won't let me unmount the partition either, which seems to make it impossible to achieve what I want. Does anyone have advice on what I should do?


How do you place text underneath and over an operator simultaneously?

So as know, $\underset{i = 1}{\bigcup}$ is how you place text under  an operator. And $\overset{n}{\bigcup}$ is how you place text over an operator. But how do you combine the two? I've tried things like \underset\overset{i=1}{n} \bigcup as well as $\underset{i=1}\overset{n} \bigcup$ but those are syntactically incorrect. Main question: Basically, I want a union symbol with its initial index as i=1 and its ending index as n


How can I run Process explorer ALWAYS as Administrator?

I have process explorer on my desktop, ho can I run it ALWAYS as Administrator?   I read , and  in particular, but it doesn't seem to work in this case.   To run as Administrator all my apps as that OP was suggesting, is an overkill for me.  I have Windows 8.1 64 bits.    EDIT: As suggested by @Overmind I tried with a short cut, but it does not work; this is what I have in its Properties:    In Avanzate (read Advanced), I have:    Probably I should have written it before: I have an Home Edition, not a Pro.


Question about sequence of tenses: inside "until" clause

Mary says, " I'll wait until you make your decision."  Which would John say? A) "She said she'd wait until I make my decision." B) "She said she'd wait until I made my decision." If they are both OK, is there any difference?  Thank you in advance.


Network manager create wifi "access point"

I wish to connect my phone to internet using my laptop's hotspot (laptop uses wired internet connection). The phone is Android 9, the laptop has Debian 10. I have created a hotspot: nmcli device wifi hotspot con-name "debian_hotspot" ssid "debian_hotspot" password "passw" which works fine for another laptop. But it has been pointed out that Android devices usually need an "Access point" instead of "Ad hoc" network. I have attempted to change this using the network manager gui, but when I try to nmcli -p connection up "debian_hotspot" I get: No suitable device found for this connection (device wlp6s0 not available because profile is not compatible with device (the device does not support Access Point mode)). I have found some tutorials using wpa_supplicant or hostapd. But as far as I understand the current Debian "default" is using NetworkManager. How can I create a full "access point" using NetworkManager (happy with the applet GUI, but nmcli is great too)? How can I share internet connection with an Android phone using NetworkManager?


Power off bluetooth: the LED indicator is still ON, is the radio module turned off?

I would like to have a Bluetooth adapter powered off at the startup, but at the same time to be able to turn it on when I need it. I have found this advice: Add rfkill block bluetooth into /etc/rc.local before exit 0 command. This delivered the desired result in Gnome (at Dell D630 with Ubuntu 14.04) and now, when I need to turn power On at Bluetooth I just open System Tools->Preferences->Bluetooth and I can Enable it in there easily.  Now I want do the same in KDE (at Dell E6410 Kubuntu 14.04).  However, if I patch the file as above I am not able to turn Bluetooth On any more during the working session, the icon disappears and even error message is hanging in a proper window until cold power cycle.  and   Nevertheless there is place to (un)tick 'Powered' in tool Configuring Bluetooth -> Configuring Bluetooth Adpaters , please see this screenshot below.  I would like not to have this ticked at the startup. How to do that? I have not found setting which specifies this in any KDE tool, that's why my question is: how to the same what untick 'powered' does but from the command line? Then I could add such a string to, say, /etc/rc.local. The direct answer I did not get yet.   Finally I got a really WORKS FOR ME thing  by doing what is Maco's answer in this RICH THREAD,   To disable the bluetooth driver from loading on startup:  sudo $EDITOR /etc/modprobe.d/blacklist.conf   add:   blacklist btusb   Enabling it later should just be:  sudo modprobe btusb   OKAY, that's what I wanted to do - run it again, on the go, without reset. Unfortunately namely this method is keeping my LED Bluetooth indicator (at physical panel) is turning ON, which confuses me, whether it's powered or not?   BUT the most important question for me is - does this turns off the radio module itself? I would like to have no any radiation from the Bluetooth when it is turned off at startup by any means. If it's doable please point out by what approach.   Thanks.


Windows 10 Update 1511 fails with DiskCryptor whole disk encryption

I am running Windows 10 with DiskCryptor whole disk encryption on the system drive.  The latest Windows 10 update fails to install.  When I restart the system to install the update, I get the following sequence of events:   I enter my DiskCryptor password which unlocks the disk Windows Update asks for the keyboard layout Windows Update then fails shortly after   If I push through the process far enough I get to a message that indicates it cannot continue because a file (or files) is locked.  My colleague also uses DiskCryptor on his system drive and has had an identical experience.  So:   Is this a known issue with whole disk encryption generally? Is this an issue with DiskCryptor specifically? If so, is it a bug MS will be fixing or will it require a workaround?


Cannot access mapping section of the texture tab

I am following a blender tutorial and on the tutorial, the guy is able to access a section of the textures tab called Mapping and Influence but I am not able to see that anywhere on mine.  Mine is on the left, his is on the right:     How do I access the mapping section on blender 2.75  Thanks!


How do I measure the distance from an object to fit it in the screen?

I'm curious if there is any math formula for this.  Let's take a close-up of a human face for instance, given the human face is about 20cm/8 inches, how do I choose the right focal length and from what distance a camera with a APS-C sensor should be so that it fits in the top and the bottom of the frame with the whole face?  I just want to know how to mathematically calculate this. It doesn't matter the effects or distortions caused by a telephoto or a wide-angle lens.


Java difference in String.replace between java 12 and 13

I noticed a difference in the behaviour of the String.replace(CharSequence, CharSequence) between java 12 and 13. java 12 and earlier: System.out.println("String"=="String".replace("g","g")); //false  java 13 and later: System.out.println("String"=="String".replace("g","g")); //true  Found that this is probably due to:  Is this unexpected behaviour? Yes, I'm aware of the equals method.


What's with `-` in filename affecting sorting order depending on platform?

I just checked if contents of directory on my cygwin/Win7 development system, and test embedded platform running Linux+Busybox are the same. Simple, cat * | md5sum on both (RXVT/Bash on Cygwin, serial console on Busybox/Bash), compare. And... mismatch. So I went manually file-by-file, doing md5sum * and...  Cygwin:    c69a7926998066fcb79aad3e2fc0c33f *blankpack   5866f29a5bc74f741bcc1074c883abaa *cleanup.sh   d4923d7df2540e279664b0633784f1c4 *clean-www.sh   c44ab61b62af040ee55a3e4ddc271299 *d   Linux:    c69a7926998066fcb79aad3e2fc0c33f *blankpack   d4923d7df2540e279664b0633784f1c4 *clean-www.sh   5866f29a5bc74f741bcc1074c883abaa *cleanup.sh   c44ab61b62af040ee55a3e4ddc271299 *d   Somehow the two cleanup scripts switched places. The same happens with ls, echo * etc.  Is this some bug? Some dependency on the underlying OS? Which of the two orders is the "correct one"(if any)?


Which one is correct in a sentence: "Thanks, name" or "Thanks name,"

Which one is correct in formal email writing? In Google, I could not find the complete sentence which includes name.        Thanks David, for letting me know.   or   Thanks, David for letting me know.


Linear transformations map lines to lines

I need help with this question:  Let $T$ be a linear map from $\mathbb{R}^n \to \mathbb{R}^m$, and let $L$ be a line in $\mathbb{R}^n$. Show that $T(L)$ is also a line (is it not enough to just consider lines in the plane).


Consider the symmetric group $S_5$. I would like to find how many elements of $S_5$ are of order 5, and how many are of order 6. I would also like to determine what the maximum order of an element in this group would be.  Here is what I have so far: elements of order 5 are the 5-cycles. Elements of order 6 (since a 6-cycle is impossible for 5 elements) must have at least an even cycle and a cycle of length divisible by 3, and 2 + 3 = 5, so elements of order 5 are a combination of 2-cycles and 3-cycles.  How can I find the total count of such elements of order 5 and order 6, and the maximum order? I'm not entirely sure where to go from here.


Define hyperlink colors in a ConTeXt document

I am struggling setting hyperlink colors. I would like my TOC to be in a defined color which I try and set with \startcolor[DCMBlue] and \stopcolor around the TOC. All hyperlinks should be in green but on page 2, they are in red. What am I not understanding? Below is a MWE showing that the hyperlinks in the incorrect color:  \setupcolors[state=start] \usemodule[lettrine] \definecolor [DCMBlue][r=0.149, g=0.27, b=0.407] \setupinteraction [state=start, color=green, style=bold]  % Turn off page numbering as it is set in the footer \setuppagenumbering[location=] % Setup headers and footers \setupfootertexts[][Page \userpagenumber of \lastuserpagenumber]  % Set up Cover Page \defineoverlay[CoverPage]               [{\externalfigure[cow][cow]}]  \setupexternalfigures[location={local,global,default}] \setuphead   [section]   [page=yes]  \starttext  \startfrontmatter  \setupbackgrounds[page][background={CoverPage}] \startstandardmakeup  \stopstandardmakeup \setupbackgrounds[page][background=] \startcolor[DCMBlue]  % Insert TOC \setupcombinedlist[content][list={chapter,section,subsection},alternative=c] \completecontent \stopcolor \stopfrontmatter  \startbodymatter     (See \in{Table}[tab:perf]) for details. .  \startplacetable[location=centre,reference=tab:perf,title=Historic Performance\footnote{this is a footnote}]  \bTABLE  \bTR  \bTD  \eTD  \bTD Column 1 \eTD  \bTD Column 2 \eTD  \eTR  \bTR  \bTD Row 1 \eTD  \bTD 1 \eTD  \bTD 1 \eTD  \eTR  \bTR  \bTD Row 2 \eTD  \bTD 2 \eTD  \bTD 2 \eTD  \eTR  \bTR  \bTD Row 3 \eTD  \bTD 3 \eTD  \bTD 3 \eTD  \eTR  \eTABLE \stopplacetable     \startsection[reference=sec:one,title={Section 1}]  \in{Table}[tab:perf]  the figures are shown.    \startsection[reference=title1,title={Title 1}] \input ward \page[yes] \stopsection  \startsection[reference=title2,title={Title 2}] \input ward \page[yes] \stopsection  \startsection[title={Title 3}] \input ward For the \color[green]{first} section see \at{page}[title1]  For the first section see \at{page}[title2]   \color[DCMBlue]{DCMBlueed text in TeX} \page[yes] \stopsection  \stopbodymatter  \stoptext


Can the same tome be used more than once?

I have a level 17 sorceress with a Scroll of Wish, and a Tome of Leadership and Influence. I also have the wish spell.  I was wondering if I could use my scroll to go back in time 5000 years (or however many), read my tome, use the wish spell to cast sequester on myself to reawaken in a century, and read the tome again. Repeat till back to present day.  As far as I can find, there is no limit to how many times you can read tomes of the same type, and i have found nothing on reading the same one multiple times because everyone assumes you dont live long enough to read it again.


On my CentOS 7 systems, I use tuned-adm to set a profile appropriate to the environment during configuration, but after that, I never subsequently change that profile. It seems that the tuned system spawns a process (/usr/bin/python -Es /usr/sbin/tuned -l -P) for dynamic monitoring and adjustment.  This process uses noticeably more memory compared to other daemons on my system.  I would like to reduce nonessential services on a certain memory-constrained server.  If I do not use a profile that involves dynamically adjusting parameters such as power consumption, does the tuned process need to keep running? Can I safely stop the process and have the profile that I originally set up persist from that point on?


Installing Skype is not working: "unable to locate package Skype"

I'm desperate, I've tried everything. I can't install Skype no matter what. I've tried every command I could and still nothing. When I download from the website I get a read only folder.  Whatever command I use, this is the result   Unable to locate package Skype


The only thing that I want is a numbering out of colored box and the position of box be in center.  \documentclass{article} \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{tcolorbox} \usepackage{tikz} \tikzstyle{mybox} = [draw=green!70, fill=green!10, very thick, rectangle, rounded corners, inner sep=10pt, inner ysep=20pt] \tikzstyle{fancytitle} =[fill=blue!70, text=white] \begin{document} \begin{tikzpicture} \node[mybox](box){%     \begin{minipage}{0.9\textwidth} \begin{equation} L y=b  \quad \quad Ux=y \end{equation}     \end{minipage} }; \end{tikzpicture}%  \end{document}


Should there be bands in this chart of random p-values?

I generated p-values from 10K trials with null hypothesis set to true. My goal was to see what the distribution of random p-values is like. The sample size of each test was 2000 with a 5% success rate. p-values calculated using "N-1 two proportion test" based on normal distribution (Sauro 2012). Here's the formula:    Are there ranges of p-values that are unlikely, as this chart shows? Or is there some flaw in my method?  I do remember reading something about p-values below 0.05 being more likely than around 0.05, but I don't see that here. Instead I see this banding closer to the high p-values.    I also plotted the density of p-values. This has minor waviness at the high end of the chart, which I guess corresponds to the big bands. The density chart usually shows a slight peak at 0.1.    Can anyone confirm any of this and/or point me to some info on expected distribution of p-values?


Prove $(\frac{n+1}{n})^{n+1}$ is decreasing

I managed to prove a similar fact: the following sequence is increasing: $\left( \dfrac{n+1}{n}\right)^n$, which means $\left( \dfrac{n+1}{n}\right)^n < \left( \dfrac{(n+1)+1}{(n+1)}\right)^{n+1}$.  All this took was some simple algebra and bernoulli's inequality. For the one in the title, I am not sure how. My attempt was: $$\left(\frac{n+1}{n}\right)^n \left(\frac{n+1}{n}\right)\stackrel{?}{>}\left(\frac{(n+1)+1}{(n+1)}\right)^{n+1} \left(\frac{(n+1)+1}{(n+1)}\right)$$ But this doesn't help me. Do you have other ideas?


Proving uniform continuity on an interval

If I know that $f:(0,\infty)\rightarrow \Bbb R$ is uniformly continuous on the intervals $[a,\infty)$  and $(0,a]$, where $a$ is in $(0,\infty)$, how can I prove that it is uniformly continuous on $(0,\infty)$? I know the general definition of uniform continuity using epsilon-delta, but I am not sure how to apply it to the above.  Thanks   Edit: I meant Uniformly continuous on the first two intervals


Subspace of a separable space is separable

Let $(X,d)$ be a separable space and $Y \subset X$. Show that $(Y,d)$ is also separable.   My approach is as follows:     Let $(X,d)$ be a separable space and $Y \subset X$. Since $X$ is separable, by definition there exists a countable dense subset in $X$, call it $K$. We want to show that $K \subset Y$.   Is this a valid approach to take to the proof?  P.S. This is an analysis course, not strictly a topology course.