Is there any way to somehow address serial downvoting that seems explicitly targeted on me, but is done in a way that is careful enough to avoid serial-downvoting script detection (3 votes only)?  Yesterday, I have recieved 3 downvotes in the space of 1 minute.  -2  11:05  downvote  Select a row where one column is min -2  11:05  downvote  Perl system call without path to executable, except using PATH variable -2  11:04  downvote  Perl - while (<>) file handling   Those 3 posts were:   NOT recent themselves NOT posted in the similar timeframe (2/17/2013, 2/3/2013, 8/30/2012) None of the Qs or As were edited recently (the latest edit to any of the posts on any of those 3 was on the day they were posted/answered, no recent edits or activity) None of the answers on those 3 questions were downvoted other than mine No comments explaining the downvotes They didn't all 3 share tags (2 were Perl, one PHP with no Perl tag) They were clearly not obviously wrong   BUT... one thing that IS common among them is that they were all among the 25 latest answers I gave (#1, #4 and #21).  This sounds like someone was deliberately targeting answers made by my user by using  list.   Typically, I would just leave proving that something is serial down-voting in the hands of the all-knowing script, but I know that 3 votes aren't enough to trigger it even if it was the same user.  Frankly, I don't care about the rep hits (at ~50k, you stop sweating small stuff :) and they weren't among my rare beautiful cherished answers where I care about the vote counts... but I would definitely love it if whoever did this got a wrap on the knuckles even without reversing the votes (unless of course it was a rare statistically improbable fluctuation... and to quote Commissioner Gordon from Dark Knight Rising, "you are a detective now... you are not allowed to believe in coincidences).  Is this specific pattern enough to prove malicious intent?  Is there a way for moderators to verify if the 3 downvotes came from the same person? (and if so, refer the matter to SE who would have the means to track who it was so they get told to cut it out)?

Currently we capture fanatic, voting ring or rage-type activities, by measuring the number of up-votes or down-votes between the same two users in a certain (relatively short) time period. When this is detected by the system, the votes are reversed, and I've never bothered to investigate what else happens after that - though I'm sure some form of wrist-slapping ensues.  While it is intended to be well-guarded for obvious reasons, the algorithm used is not exactly a secret, and I am sure there are plenty of examples where people are dangling (maybe intentionally, or maybe by dumb luck) just on the safe side of getting caught.  Personally I believe there are active, intentional, long-term vendettas in operation right now where users either:   blindly up-vote every answer from a user; or, down-vote a particular user once or twice a day, regardless of topic or quality.   Now, maybe the first one is valid - if I'm operating in the same tag-sphere as some smart person, it may just be that I'm constantly enthralled with their answers, and I'm not even noticing who they're written by. (Though, even Skeet isn't perfect, and I haven't up-voted every answer I've seen him post.)  But still, can we do a better job of catching - or at least noticing - this activity over the long term in addition to the short term?  The behavior is the same, and shouldn't be tolerated, regardless of the time frame - vengeful rage serial voting, blind staker crush serial voting, and painstakingly patient serial voting are all undesirable behaviors IMHO.  I'm not saying it has to do anything automatically, as I'm well aware of the possibility of false positives. And I'm not even sure what to propose as a time frame or a vote threshold.      But if a large percentage of my up-votes or down-votes are against a particular user, and especially if on a majority of those posts I am the only one voting in that direction, I think it should at least be raised as some kind of flag to moderators.   This would work much like how other suspicious activity is highlighted (but also not dealt with automatically). If a pattern becomes obvious and persists, then they can intervene in some way (or not, but at least they were provided with the information - just like they can reject and ignore manual flags). Today, all I can do is e-mail team@stackoverflow.com, and unless I know exactly which person(s) are involved, there is not much they can do about it.  And you're thinking, "Meh, let some hater down-vote you once or twice a day. Unless all you're posting is utter crap, it should be statistically insignificant." You're right. But reputation is not the point, and is not the motivation behind my request. What I'd like to see curtailed is the tendency for folks to down-vote a question or answer because of who posted it, not because of what it said or didn't say. When a down-vote is personal it can leave a person second-guessing the quality of their post. Which isn't necessarily a bad thing, except when it happens repeatedly.  Sorry for the essay but I wanted to try to anticipate and cover all the objections and hole-poking.


In Harry Potter, it is understood that the act of Self Sacrifice is a means of protecting one or more people from death from Avada Kedavra.  Sacrificial Protection happens at least twice in the Harry Potter series:   Lily sacrificing herself to attempt to save Harry. Harry sacrificing himself to attempt to save the defenders of Hogwarts.   But then we have a scene that Harry sees by looking into Voldemort's mind. Voldemort is looking for Gregorovitch and murders a german-speaking family who lives in Gregorovitch's old home:     ... He raised the wand. She screamed. Two young children came running into the hall. She tried to shield them with her arms. There was a flash of green light - (Deathly Hallows, Ch. 12 - Magic is Might)   This event is similar to the scene when Voldemort kills the Potter family in the sense that the mother attempts to protect the children by using her body as a shield.  Why does this act of sacrificial protection not have the same result as in the other instances?

We know that Harry survived Voldemort's killing curse because Lily loved him so much that she sacrificed herself in an attempt to protect him. This resulted in a very powerful charm that pretty much rendered Harry immune to Voldemort (until Voldemort figured out the work-around). Then there's this passage describing that night:  [Voldemort] was over the threshold as James came sprinting down the hall. It was easy, too easy, he had not even picked up his wand ... "Lily, take Harry and go! It's him! Go! Run! I'll hold him off -" Hold him off, without a wand in his hand! ... He laughed before casting the curse ... "Avada Kedavra!" Harry Potter and the Deathly Hallows Chapter 17: Bathilda's Secret  So James Potter, fully aware that he was sacrificing himself (he said "I'll hold him off," not "I'll get rid of him") ran to face Voldemort because of his love for Lily and Harry. This seems to be very similar to how Lily tried to protect Harry from Voldemort even though she knew she would die. It seems to me that the same charm should have been cast upon Lily when James died, but just moments later Voldemort killed her too. Apparently James' sacrifice did not result in a charm that protected Lily, even though he did it from love for her and Harry. Why is this? Was something different in the circumstances?


I am looking for tool bar icon files either .svg or in any other picture format. But I couldn't find them. Other icons are in the blender_icons.svg file in "release\datafiles"  Where are the tool bar icons ?

Are T Tool icons accessible like the other icons? Why are there duplicate icons in the table?


I'm a beginner at LaTeX and I get a LaTeX error when I type this:  \begin{equation} {$k = \frac{\Delta U}{\Delta I} $} \end{equation}   Could someone tell me what to do?

I get the missing $ inserted error for the following code:  \begin{equation}  C = $ \frac{2}{\omega^2N^2\mu\pia} $  \end{equation}   I have tried out different changes based on Googling for this error, but nothing seems to help. Any suggestions would be appreciated.


Years ago I contributed to two Roth IRAs.  At some point I combined them into one.  I am now trying to determine how much in total I contributed to Roth IRAs over those years, but alas, my paperwork is incomplete.    Does the IRS keep a record of Roth IRA deposits?

Since withdrawals up to the amount you contributed in a Roth IRA are tax and penalty free, who keeps track of that amount?  I've transferred my Roth IRA from one broker to another so the new broker doesn't know the total amount I've put in.  I don't recall reporting Roth IRA contributions on my tax forms for prior years.


I vigorously request that the reputation system be revised to let people with higher reputation in other Stack Exchange sites be able to comment on questions/answers.  A possibly reasonable approach would be to make your privilege based on an average: if the average is above the reputation needed to post comments, then users should be allowed to comment everywhere. To make the system maybe a tiny bit more "resistant" to problems, there could be a minimum reputation to hold in at least two accounts, and to have at least 3 accounts associated.  I don't know if this makes sense to you, but it would be greatly helpful because, well, it's not very nice to be deleted questions.  I am very willing to behave "well" but if I don't have enough points to comment, how am I supposed to?

I have been reading Stack Exchange for years - mostly not logged in, and have never posted (this is my first). I'm simply not very talkative, and very good at googling.  Recently a few occasions have come up when I've wanted to comment on a question.  I wanted either to ask for, or provide, clarification which did not warrant a new answer.  How do I gain enough reputation to comment without:   asking questions which have already been answered or that I can figure out on my own, or posting my comment like as an answer (i.e. being  rude)?


I know the question of which spell was used has been asked (without really an answer) before. This is not a question of which spell or the series of spells cast. My question is how did Molly have the power to kill Bellatrix.  Harry Potter Book 7: Deathly Hallows:     Bellatrix was still fighting too, fifty yards away from Voldemort, and   like her master she dueled three at once: Hermione, Ginny, and Luna,   all battling their hardest, but Bellatrix was equal to them, and   Harry’s attention was diverted as a Killing Curse shot so close to   Ginny that she missed death by an inch—      He changed course, running at Bellatrix rather than Voldemort, but   before he had gone a few steps he was knocked sideways.      “NOT MY DAUGHTER, YOU BITCH!”      Mrs. Weasley threw off her cloak as she ran, freeing her arms.   Bellatrix spun on the spot, roaring with laughter at the sight of her   new challenger.      “OUT OF MY WAY!” shouted Mrs. Weasley to the three girls, and with a   swipe of her wand she began to duel. Harry watched with terror and   elation as Molly Weasley’s wand slashed and twisted, and Bellatrix   Lestrange’s smile faltered and became a snarl. Jets of light flew from   both wands, the floor around the witches’ feet became hot and cracked;   both women were fighting to kill.      “No!” Mrs. Weasley cried as a few students ran forward, trying to come   to her aid. “Get back! Get back! She is mine!” Hundreds of people now   lined the walls, watching the two fights, Voldemort and his three   opponents, Bellatrix and Molly, and Harry stood, invisible, torn   between both, wanting to attack and yet to protect, unable to be sure   that he would not hit the innocent.      “What will happen to your children when I’ve killed you?” taunted   Bellatrix, as mad as her master, capering as Molly’s curses danced   around her. “When Mummy’s gone the same way as Freddie?”      “You — will — never — touch — our — children — again!” screamed Mrs.   Weasley. Bellatrix laughed, the same exhilarated laugh her cousin   Sirius had given as he toppled backward through the veil, and suddenly   Harry knew what was going to happen before it did.      Molly’s curse soared beneath Bellatrix’s outstretched arm and hit her   squarely in the chest, directly over her heart.      Bellatrix’s gloating smile froze, her eyes began to bulge: For the   tiniest space of time she knew what had happened, and then she   toppled, and the watching crowd roared, and Voldemort screamed.   From the quote above we see Bellatrix duelling three witches at the same time and equalling all three.  Bellatrix killed Sirius who was an expert in dueling. Bellatrix defeated Aurors (who are trained specifically to duel death eaters) Frank and Alice Longbottom.  If your answer is that Molly is angry please consider it already states in the above quote:     "...taunted Bellatrix, as mad as her master"   So I'd like some in canon proof that being angrier than someone during a duel overrides their ability and experience.  If for some reason your answer is that Bellatrix is not focused on her new opponent, please consider in the above passage:     Bellatrix spun on the spot, roaring with laughter at the sight of her    new challenger.   If it's something about being protective of her children, please explain why this would matter in a dueling situation like this, unlike Lily's which was clearly self sacrifice and explained in great detail.  How could Molly a witch hardly trained in dueling with almost no comparable real life experience in dueling, beat one of the most powerful witches in the series?

It seems that the only officially known way to instantly kill someone with a curse was "Avada Kedavra".   So, (spoilers):      considering that was definitely NOT what Molly Weasley used to kill Bellatrix Lestrange at the end of Battle for Hogwarts, how did she kill Bellatrix?


I will travel from Delhi to Canada. In way my flight there's a layover in Mumbai for 22 hrs. Can I stay in a hotel outside of the airport?  Second thing: will I receive my checked in luggage in Mumbai or will it stay in the sorting system in the airport?

I am an Indian citizen. and i am flying to New York, US on 27th April 2015. my flight is from Lucknow to Mumbai and then my connecting flight is from Mumbai with a layover of 8 hrs. Do the airport authorities allow us to leave the airport for a few hours?


I would like to know if there is a way by which we can understand if an apex class is never called in recent times. In my org, the apex character limit has touched over 77%. I am sure that there are a lot of classes which are old and obsolete.  How can I identify them? Is there a tool for that?

When I have a class I believe I no longer use, I usually attempt to delete it and see if there is an error. This strikes me as one of those things that just must be wrong...but I don't see another way. Can someone tell me what I must obviously be missing? :(


I have an enum type defined like so:  public enum Status {     Active=1,     InActive=0 }   in my method can I cast the parameter into the enum like this:  public string doSomething(string param1, int status) { //will this work?       Account.Status = (Status) status; //or do i need to test one by one like this if(status == 0) {  Account.Status = Status.Inactive;  //and so on... } // end if }  // end doSomething

How can an int be cast to an enum in C#?


I saw a page where the Justice League members are trying to move the earth away from its orbit using Wonder Woman's lasso.  Which comic is this from?

Is there any canon instance where Princess Diana of Themyscira (aka Wonder Woman)'s "" has ever snapped? Or is it truly indestructible?


Hi I'm relatively new to Drupal 7 and I'm currently working with a multistep webform. I'm having a particular problem around the Previous/Next submit buttons which seem to work fine when clicked ones but when two clicks are performed on any of them with a second or two delay between the clicks (while the form is loading) they do not direct to the previous or next page (depending which button is clicked) but direct to the start of the form. Any idea on how to prevent this from happening. I have tried to disable the buttons (in the hook_form_alter()) after the first click and also tried to put some sort of delay but nothing seems to be successful. Any suggestions on this?

Drupal doesn't seem to prevent multiple form submits, even on node pages. This  suggests fixing it on the server side.  How could I disable the submit button after clicking?   Any other solutions?


I'm using AMD Radeon x1600/1650 Series GPU in my system, i installed Ubuntu today because i was too bored from Windows. My question is, i downlaoded .run file from the official AMD driver website but i don't know how to install it. Also is there any similar thing to Windows Device Management in ubuntu?

My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too?  I looked on the web for my Nvidia drivers and I have found a .run file. How could I install it on my Ubuntu?


I need to evaluate the following integral using complex analysis methods $\int \limits_{-\infty}^{\infty}\frac{1}{1+x^4}dx$. $f(z)=\frac{1}{1+z^4}=\frac{1}{(z^2+i)(z^2-i)}=\frac{1}{(z+\sqrt{i})(z-\sqrt{i})(z+\sqrt{-i})(z-\sqrt{-i})}$ We know that $f(z)$ is analytic on the whole complex plane except from the 4 poles. These are 4 simple poles which correspond to $z=\pm\sqrt{i}$ and $z=\pm\sqrt{-i}$. This is the stage where I would like verification of the step. I no longer considered the $z=-\sqrt{i}$ and the $z=+\sqrt{-i}$ poles as they dont fall within the semicircular contour typically used when calculating these problems. I proceeded with the calculations of the remaining two poles to find their residues and found that they both have a residue of $\frac{1}{(4\sqrt{i})}$. Finally, using the residue theorem, I added the two residues together to obtain $\frac{2}{(4\sqrt{i})}$and multiplied by $2\pi$i to give $\pi\sqrt{i}$. Can anybody confirm or verify that this is the correct evaluation of the integral or perhaps where I may have gone astray?

I am trying to find $\int_0^\infty \dfrac{dx}{1+x^4}$ by setting it equal to $\dfrac{1}{2}\oint_C \dfrac{dz}{1+z^4}$ and solving that. By a computer program I've calculated it to be $\approx 1.11072$; I am not getting that answer though. I factor it into $\dfrac{1}{2}\oint_C \dfrac{dz}{(z-1)(z+1)(z^2 + 1)}$; there is a simple pole at $z = 1$ and a 4th order pole at $z = i$; I find the residue at 1 to be $\dfrac{1}{4}$ and at $i$ to be $\dfrac{-1}{4}$; the second pole is found by L'Hopital's rule. Could someone tell me what I'm missing? Thanks


When scaling or extruding a Gear's Edges, the edges  seem to scale down on the Z axis, in a way that is not level with the origin point of the edges:    Any other "default" Blender object will scale or extrude without scaling down on the Z axis:      How do I scale or extrude these edges without them moving to the center on the Z axis? I don't think it has to do with applying scale/location because all three GIFs in this question were produced at default size for each object.

I want to be able to lock my translation/scale operations to two axes at a time, say xy, xz or yz. It currently takes two operations (one for each axis).  Example, say for a cylinder, I would like to reduce the radius. I currently have to scale on the x axis first, then on the y axis, or I have to manually input the scale values in the object properties panel.  This option is easily accessible in 3dsmax via the axis constraints command bar. Or I can click the intersecting area between the 3d manipulator of the axes in question and move in that plane.


Can't find a Datasheet for this charging ic from an iPhone 6. Hopefully someone can explain its function to me.   Things I'm confused about; Does it take USB power and convert it to both vcc_main and vbatt? Or does it output vcc_main and vbatt is also an input to the chip?   What's q1403's role?

Can someone help me figure out what the little letters and numbers mean on the pins of this ic?   They're used throughout various ics in this iPhone 6 schematic. Are they indicating sequence?   For example A1 happens first then A2 etc or?   Sorry that it's showing up blurry. It's crystal clear on my phone. Not sure why it's compressed like that


Even when math papers are authored by one person, you will see stuff like "We now prove so and so" or "In the following section, we show that...".   How come papers with one author use "we" instead of "I"?

I commonly want to use the phrase "we have" when writing mathematics, to mean something like "most readers will know this thing and I am about to use it". My primary question is whether this is too colloquial. My secondary question is what the alternatives are if it is too colloquial.  For example, right now I have a sentence "Given a point $P\in X$ we have the residue map ${\text {res}}_P \colon \Omega_{K(X)} \rightarrow k$, as defined in ...". I don't feel saying "there exists the" is quite right. Even if it is grammatically correct, I don't think this conveys the implication that it will be almost certainly familiar to the expected audience.  I have seen  but I feel this is slightly different. If not then my apologies.


I want to ask a question on Stack Overflow, but when I post the question I get this error in a red box:     This question body does not meet our quality standards. Please make   sure that it completely describes your problem - including what you   have already tried - and is written using proper grammar.   My question body:     When i merging 2 drives in win7, at the middle of merging my computer   turned off (power unplugged).   Now i have the made drive. and i can see all folders and files of two   drives when i using Explorer but i can't opening any file of this   drive!   can you help me to recover files contents? can i repair filesystem or   reformat drive without lost files?   Why does this not meet your quality standards, and what can I do to address this?

While trying to ask a question, I got the error message     This question body does not meet our quality standards. Please make sure that it completely describes your problem - including what you have already tried - and is written using proper grammar.    Why am I getting this message? What can I do to get the system to accept my question? Can you be more specific? What are good resources on how to ask high-quality questions?      For more information, see  in the .


Heloo everyone! I have a problem with NavigationView and fragments. I created three fragments (as options in my NavigationView) when I click no matter which option there is a NullPointerException.  I have no idea what is wrong :(  Here is activity_main.xml  <FrameLayout    android:layout_width="match_parent"    android:layout_height="match_parent"    android:id="@+id/fragmentsContainer"    />     <LinearLayout    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical"    tools:context = ".MainActivity">    <android.support.design.widget.AppBarLayout       android:layout_width="match_parent"       android:layout_height="wrap_content"       android:theme="@style/AppTheme.AppBarOverlay"        >      <android.support.v7.widget.Toolbar          android:id="@+id/toolbar"          android:layout_width="match_parent"          android:layout_height="50dp"          android:popupTheme="@style/AppTheme.PopupOverlay"/>       </android.support.design.widget.AppBarLayout>    </LinearLayout>      <android.support.design.widget.NavigationView    android:layout_width="wrap_content"    android:background="#aaaaaa"    android:layout_height="match_parent"    android:fitsSystemWindows="true"    android:layout_gravity="start"    android:id="@+id/navigationView"    app:headerLayout="@layout/nav_header"    app:menu="@menu/nav_menu"    />   This is how I handle options:  navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener(){          @Override         public boolean onNavigationItemSelected(MenuItem item) {              Fragment fragment=null;             Class fragmentClass=null;              int id = item.getItemId();              switch(id){                  case R.id.aboutProgram:                     fragmentClass = ProgramFragment.class;                     break;                  case R.id.aboutAutor:                     fragmentClass = AuthorFragment.class;                     break;                 case R.id.Settings:                     fragmentClass = SettingsFragment.class;                     break;                 default:                     fragmentClass = ProgramFragment.class;             }              try{                 fragment = (Fragment) fragmentClass.newInstance();             }catch(Exception e){                 e.printStackTrace();             }              FragmentManager fragmentManager = getSupportFragmentManager();          fragmentManager.beginTransaction().replace(R.id.fragmentsContainer,fragment).commit();                drawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);             drawerLayout.closeDrawer(GravityCompat.START);             return true;         }     });

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Can someone  please explain the meaning of delegate{ } below  public event EventHandler CanExecuteChanged = delegate { };   Also why does it eliminate the need for a null reference check on CanExecuteChanged, and what (if any) are the potential performance hits for using it.

I have seen a few mentions of this idiom (including ):  // Deliberately empty subscriber public event EventHandler AskQuestion = delegate {};   The upside is clear - it avoids the need to check for null before raising the event.  However, I am keen to understand if there are any downsides.  For example, is it something that is in widespread use and is transparent enough that it won't cause a maintenance headache?  Is there any appreciable performance hit of the empty event subscriber call?


Is there a way I can see my full character without having to tilt the camera down at him? The only way that works is having my character idle and rotating the camera around him.

Is there a way I can inspect my character's face at any point in the game after creating it during the bathroom scene?  I am playing on PlayStation 4 and rotating with the right stick in 3rd-person view obviously does not show the face. I haven't found any mirrors or shiny objects to use the reflection either.  The reason for this is that I forgot what she looks like and also I want to share my monstrous creation with others but I have already left the vault!


I am very new to junit.I was reading a tutorial on  for spring mvc and I found a test class as below : 1.)       package springapp.web;      import org.springframework.web.servlet.ModelAndView;      import springapp.web.HelloController;      import junit.framework.TestCase;      public class HelloControllerTests extends TestCase {  public void testHandleRequestView() throws Exception{            HelloController controller = new HelloController();     ModelAndView modelAndView = controller.handleRequest(null, null);            assertEquals("hello.jsp", modelAndView.getViewName()); } }    I can not understand why I need to use TestCase of Junit as an extra burden when I can check the same by creating a simple test class.   public class TestStub {      public static void main(String[] args) {          HelloController controller = new HelloController();          ModelAndView modelAndView = controller.handleRequest(null, null);          if(modelAndView.getViewName().equals("hello.jsp")) {              ...          }       }  }     Again mentioning that I am a beginner.

I am working to integrate unit testing into the development process on the team I work on and there are some sceptics. What are some good ways to convince the sceptical developers on the team of the value of Unit Testing? In my specific case we would be adding Unit Tests as we add functionality or fixed bugs. Unfortunately our code base does not lend itself to easy testing.


I'm trying to put appendices in my PhD thesis, and I'd expected them to be labelled A,B, etc. However, instead it's not producing a title for the appendix at all, and it's giving me sections to my final chapter marked .1, .2 etc. I've looked around this site, and seen lots of problems about poorly placed \backmatter etc. but I'm getting this problem even with the following minimal code:  \documentclass[a4paper,10pt]{book} \begin{document} \chapter{Introduction} This is my testbed. \appendix \section{What's this?} This is an appendix. \end{document}   This is everything- I've not omitted any packages or anything. This produces a single page:       Chapter 1      Introduction      This is my testbed.        .1 What's this?      This is an appendix.   I'm using TeXShop 3.39 (the latest version).

I'm writing a thesis which is an aggregate of separate articles. I have the source code for the articles and I'm using \include to include them in the main document of the thesis. So in my main.tex (thesis document), I have  \include{article1} some pages in between the two articles \include{article2}   The problem that I'm getting is with the Appendix sections. In article 1, I have at the end:  \appendix \numberwithin{equation}{section} \section{Coefficients}\label{sec:Coeffic} \subsection{Good coefficients} then comes the first line of appendix   This gives in article 1 (when  compiled separately with the article class):     A. Coefficients      A.1. Good coefficients   and equation numbers in the Appendix A as (A.1), (A.2)  which is ok and what is expected.  When I put article 1 within main.tex, I use \include command. Also, I removed the document class for article 1 and put \chapter instead.  But when I compile main.tex (the thesis document), I get the appendix sections as:     .1 Coefficients      .1.1 Good coefficients   and the equation numbers in the appendix A as (.1.1), (.1.2) etc  My article 1 is treated as a chapter in the main thesis document (main.tex) and the title and section numbers, equation numbers are preceded by A in main.tex. This is what I want.  Maybe it would be ok to get the appendix in my main.tex as     A.A. Coefficients      A.A.1 Good coefficients   and the equation numbers in the Appendix as (A.A.1), (A.A.2) etc  to denote that it refers to appendix A of paper A. First A is for the first article and second A is for first appendix. How to get this?


Can you train yourself to sleep fewer number of hours forever, nightly, while remaining at least as  fit and healthful (without harming or impairing yourself in any way) ?  This question was inspired by  on Columbia Professor Jeffrey Sachs:     As far as I can tell, the only time Sachs slows down is when he sleeps, never more than four or five hours a night. His wife, Sonia Ehrlich, a pediatrician and the mother of his three children, has been quoted saying (more than once), "I'm a happily married single parent."

In the past month, I've been really busy with the university and stuff, and I don't sleep as much as I used to. I usually sleep 4-5 hours a night.  I haven't been doing that extensively ( I always kept a good sleeping routine), but can the lack of sleep affect my health on the long term ?


I am using ubuntu for almost a year with dual boot. Actually, I almost never use windows for a long time and I want to increase my file system root disk. I create a free 60 gb disk space, but I cannot use it to increase file system root. The unallocated space doesn't appear. I haven't found the solution. What should I do at this point?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I want to calculate $$\lim\limits_{  x\to \infty} \frac{\ln(x)}{x^a}$$ where $ a > 0 $  It looks simple because if $a>0$ then $ x^a $ it grows asymptotically faster than $ \ln(x) $ so $$\lim\limits_{  x\to  \infty} \frac{\ln(x)}{x^a} = 0$$ But I don't know how to formally justify that. I am thinking about something what I was doing in case of sequences:  $$\frac{\ln(x+1)}{(x+1)^a} \cdot \frac{x^a}{\ln(x)} $$ But it have no sense because sequences was being considered in $\mathbb N$ but functions like that are considered in $\mathbb R$ I can't use there hospital's rule

How can I prove that $\log^k(n) = O(n^\epsilon)$? (for any $\epsilon > 0 $ and for any integer and positive $k$).  I tried to do it by - definition , and to prove that exists $c,n_0 > 0$ so that for any $n > n_0 $ exists: $c \cdot n^\epsilon > \log^k(n) $, but I don't have idea how to continue for this point.    I will be happy to listen ideas :).


I am developing an application for observing other applications (including applications of another user sessions) My application should collect information about CPU loading, memory usage and state of main window (if exists) of each application. Now I am trying to obtain window state of other application. If its window is in the same session (as my application) then everything is OK.   And... I have a problem with obtaining info about windows in another session. I have read this old topic:  and I understood that I should start new process within each session in order to enumerate windows in this session's desktop.  But maybe in Windows Server 2012 appeared a new solution(s) for this issue (some new API functions or some interaction with dwm.exe in another session etc)? If some administrative permissions (and/or group policies) are needed, it is not a problem  Thank you  PS. Now I am using Process.MainWindowHandle property (that probably uses GetWindowThreadProcessId function). Also I tried use OpenWindowStation("\Sessions\1\Windows\WindowStations\WinSta0") that returns error 161 (invalid path)

I have an application that can list the opened windows of the current session. It uses the EnumWindows method from the user32.dll.  I would like to run this code from a windows service, but as the service is not attached to a user session, it returns nothing obviously.  So the question is, how can I enumerate the open windows of another user session (e.g. with a specific logon user)?  Similarly to EnumWindows, I also would like to get the foreground window of the user session as well (like GetForegroundWindow works for the current user).


Can I ask please: Using ols in lm. I found "surprise", when x is vector (mean is 0) and y is vector of 1 1 1 ...or vector of 0 0 0...(constant) When "forcing" lm without intercept (y~x-1), i get model where residuals "dont oscilate around 1". When I did calculate coefficient manualy and its exactly same. Example in r: x=c(-0.0021,0.0042,0.0047,0.0083-0.0001,0.0010,0.0038,0.0034,0.0034,0.0066,0.0056,0.0043,0.0082-0.0129-0.0094,0.0048,0.0050-0.0133) y=rep(1,14)  m=lm(y~x-1) plot(m$fitted) plot(x*47.74)  (Can I ask, whats wrong when y="constant vector" in ols ? :-) Thanks alot

Say we fit a simple linear regression without the intercept term. I know this is inadvisable for the most part, unless there are some situations where it is reasonable to assume that when $x=0$, $y$ is also 0. I have been reading that when fitting without the intercept, it may cause the residual term to have non-zero mean. It makes sense but I can't seem to prove to myself (out of personal curiosity) why this is true. Can anyone help me understand it through a proof or some equations?


I was wondering, I have optifine and I can get HD yexture packs but if I get anything over 128x Minecraft crashes.  Why is this happening?  My computer is very new and has great proccesors and graphics cards.  My processor is an intel i7 3,4Ghz and my graphics card is a one of the higher AMD Rathelons and I usually get 200fps with Minecraft.  I also have 8GB of RAM.  EDIT: When I use mc-patcher with a 256x256 texture pack I get this error report:  ---- Minecraft Crash Report ---- // Would you like a cupcake?  Time: 6/23/13 7:46 AM Description: Rendering screen  java.lang.OutOfMemoryError: Java heap space     at bio.a(SourceFile:388)     at bio.<init>(SourceFile:136)     at bio.<init>(SourceFile:108)     at biq.a(SourceFile:127)     at biq.c(SourceFile:94)     at bir.b(SourceFile:80)     at bge.d(SourceFile:350)     at bge.c(SourceFile:301)     at bjx.a(SourceFile:146)     at axt.a(SourceFile:175)     at bjw.a(SourceFile:109)     at bfq.b(SourceFile:768)     at net.minecraft.client.Minecraft.K(SourceFile:597)     at net.minecraft.client.Minecraft.run(SourceFile:526)     at java.lang.Thread.run(Unknown Source)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Stacktrace:     at bio.a(SourceFile:388)     at bio.<init>(SourceFile:136)     at bio.<init>(SourceFile:108)     at biq.a(SourceFile:127)     at biq.c(SourceFile:94)     at bir.b(SourceFile:80)     at bge.d(SourceFile:350)     at bge.c(SourceFile:301)     at bjx.a(SourceFile:146)     at axt.a(SourceFile:175)     at bjw.a(SourceFile:109)  -- Screen render details -- Details:     Screen name: bjw     Mouse location: Scaled: (125, 143). Absolute: (375, 530)     Screen size: Scaled: (427, 321). Absolute: (1280, 961). Scale factor of 3 Stacktrace:     at bfq.b(SourceFile:768)     at net.minecraft.client.Minecraft.K(SourceFile:597)     at net.minecraft.client.Minecraft.run(SourceFile:526)     at java.lang.Thread.run(Unknown Source)      -- System Details --     Details:         Minecraft Version: 1.5.2         Operating System: Windows 8 (amd64) version 6.2         Java Version: 1.7.0_25, Oracle Corporation         Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation         Memory: 5540872 bytes (5 MB) / 904527872 bytes (862 MB) up to 954466304 bytes (910 MB)         JVM Flags: 2 total; -Xms512m -Xmx1024m         AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used         Suspicious classes: [com.prupe.mcpatcher.MCPatcherUtils, Config, MCLogger, ...], [com.prupe.mcpatcher.mod.ColorizeItem, AAHelper, TessellatorUtils, ...]         IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0         LWJGL: 2.4.2         OpenGL: AMD Radeon HD 7570 GL version 4.2.12002 Compatibility Profile Context 9.12.0.0, ATI Technologies Inc.         Is Modded: Very likely; Jar signature invalidated         Type: Client (map_client.txt)         Texture Pack: 1.5TP_HD_By_Lancer_256x256.zip         Profiler Position: N/A (disabled)         Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

Similar to  on the bugs in Minecraft, I would like a complete list of what error codes exist in Minecraft and how they occur, as well as how they can be resolved.


The proton is about 1.6–1.7 fm in diameter.  Quoted from Wikipedia. That is,The proton just occupies a definite volume or a definite space. But I can't find the radius of an electron in Wikipedia. Can I infer from this that Electron does not have a definite volume.  If Electron and the rest of sub-atomic particles don't have a definite volume, Then why their composition does so? Do the uncertainty in position of a particle restricts to decide the volume of the particle too? I just found a website which says that the electron is spherical!  A 10-year study has revealed that the electron is very spherical indeed. To be precise, the electron differs from being perfectly round by less than 0.000000000000000000000000001 cm. To put that in context; if an electron was the size of the solar system, it would be out from being perfectly round by less than the width of a human hair.  Source :  Is Volume in the quantum scale definable?

According to :     The electron has no known substructure. Hence, it is defined or assumed to be a point particle with a point charge and no spatial extent.   Does point particle mean the particle should not have a shape, surface area or volume?  But when I searched Google for the "electron shape" I got many results (like  and ) that says electrons are round in shape.


When running sudo apt-get update im suddenly recieving errors after adding a repository for bitmask this is the message:  W: Skipping acquire of configured file 'main/source/Sources' as repository 'https://apt.releases.hashicorp.com groovy InRelease' does not seem to provide it (sources.list entry misspelt?) E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu groovy Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Skipping acquire of configured file 'groovy/binary-amd64/Packages' as repository 'http://deb.leap.se/client release InRelease' doesn't have the component 'groovy' (component misspelt in sources.list?) W: Skipping acquire of configured file 'groovy/i18n/Translation-en_US' as repository 'http://deb.leap.se/client release InRelease' doesn't have the component 'groovy' (component misspelt in sources.list?) W: Skipping acquire of configured file 'groovy/i18n/Translation-en' as repository 'http://deb.leap.se/client release InRelease' doesn't have the component 'groovy' (component misspelt in sources.list?) W: Skipping acquire of configured file 'groovy/dep11/Components-amd64.yml' as repository 'http://deb.leap.se/client release InRelease' doesn't have the component 'groovy' (component misspelt in sources.list?) W: Skipping acquire of configured file 'groovy/dep11/icons-48x48.tar' as repository 'http://deb.leap.se/client release InRelease' doesn't have the component 'groovy' (component misspelt in sources.list?) W: Skipping acquire of configured file 'groovy/dep11/icons-64x64.tar' as repository 'http://deb.leap.se/client release InRelease' doesn't have the component 'groovy' (component misspelt in sources.list?) W: Skipping acquire of configured file 'groovy/cnf/Commands-amd64' as repository 'http://deb.leap.se/client release InRelease' doesn't have the component 'groovy' (component misspelt in sources.list?)  one of the repositories for hashicorp was fine before so im not sure why adding the leap repos(bitmask) would cause errors with the other. Can anyone help me fix these issues?

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I have a 6 sided polygon and I'm adding loop cuts to one of the sides not even with either the X or the Y axis. I was wondering, is there a way to scale it along the edge that the loop cut is on?

I've been looking for this feature in Blender, either upon the time of creation using Edge Cut and Slide or afterwards, in just editing the mesh. I'd like to know if it's possible to evenly slide two edges away from one another in Blender?  Here's a picture of what I'd like to be able to do:    Thanks upfront!!


Let's say i have this code:  $value = mysqli_real_escape_string($con, $_POST['value']); $value = strip_tags($value, '
');   for example with this value: $_POST['value'] = "
how
 you doin'?
";.  Should I escape $value after changing its text value? It contains an apostrophe that can cause problems with the mysqli queries, or even a SQL Injection. Thanks!

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I recently purchased a used computer, and the owner could not remember the administrater password. It has 13.04 on it.

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


A real valued function $f(x)$is differentiable on $[0,1]$, where $f(0)=0$ and $f(1)=1$. Prove that for any integer $n$ there exist $0\le c_1<c_2<\dots<c_n\le1$ where $$\sum_{k=1}^n\frac1{f'(c_k)}=n$$  This is a question a student asked me (I'm a teacher). I have no clue on how to prove it except that I guess it may use the mean-value theorem and the intermediate value theorem. Thanks in advance.

Suppose that $f$ is continous on $[0,1]$ , differentiable on $(0,1)$ , and $f(0)=0$ and  $f(1)=1$.For every integer $n$ show  that there must exist $n$ distinct points $\alpha_1,\alpha_2\cdots,\alpha_n$ in that interval so that    $\sum \limits_{k=1}^n \frac{1}{f'(\alpha_k)} = n $   Is it theorem or i can show it with basic differentiation knowledge .Please give me hint .


I have a B.Sc. in CS, but I want to further in the GIS (geographical information system) line. I am thinking I'd have to do some sort of post-graduate diploma in GIS, before I can go for a M.Sc., which is necessary to hit my mark, seemingly...  I need your guidance about this case.  Thank you very much

Can I be admitted to graduate school in a different field from my degree?  Specific cases include:   If I've taken plenty of advanced courses in field X in the process of completing a degree in another field, can I apply to graduate school in X? What if I haven't taken many courses in X, but I have acquired a good grasp of X through self-study or working in a related field? What if I've never studied X, but I have done very well in an unrelated field?  Could I be admitted to graduate school in X on the basis of general intellectual promise, and then make up the missing background after enrollment?   Note that this question is an attempt to provide a comprehensive answer, to avoid the need for a profusion of field-specific questions on this topic (see the associated ). Please feel free to edit the question or answer to improve them.


Let $A \subset [0,1]$ measurable and $m(A \cap [a,b])\leq \frac{b-a}{2}$ for every interval $[a,b]$.  Show $m(A)=0$.   I have two ideas on how to approach this, but I don't think either of them have enough momentum to be pushed forward.  (1)  First I wanted to pick a countable, disjoint set of intervals $\{I_k\}$ where $l(I_k)<\frac{b-a}{n}$ and $A \subset \cup I_k$.  (2)  Another strategy I thought about was breaking $A$ into disjoint sets via $A_n := A \cap [a_n, b_n]$.  However, I think this approach may be messy.

This question is exercise 4.10 of Richard F. Bass's Real Analysis for Graduate Students, 2nd edition.  Let $\epsilon \in (0,1)$, let $m$ be Lebesgue measure, and suppose $A$ is Borel Measurable subset of $\mathbb R$. Prove that if $$ m(A\cap I)\leq (1-\epsilon)m(I)$$  for every interval $I$, then $m(A)=0$.  Collection of my thoughts  1. Try to prove by contradiction, suppose $m(A)=a>0$ Borel Measurable Set satisfies the condition given. A property of any Borel Measurable Set on $\mathbb R$ is $A$ contains a closed set $F$ and is contained in open set $O$, and the measure of $F$ and $O$ can be arbitrarily close to $a$. 2. Obviously $A$ contains no interval, but it does not lead to contradiction, because we can find an example of $m(A)>0$ that contains no interval(fat Cantor Set(remove middle 1/4 each time) has measure $1/2$ and contains no interval).  2'. For fat Cantor Set $C$ and given $\epsilon>0$ how could we construct an interval I satisfies $m(C \cap I)>(1-\epsilon)m(I) ?$   Maybe try to write Borel measurable set as countable union/intersection of intervals.   I'm stucked here and will appreciate any help, some examples/special case will be great too.


I'm clicking Run code snipped, then Full page and then the back button in my browser. And now I get a white blank page with only Close button.  Expected results: the full screen should close and the page should get back to the question/answer.  Testcase:

Opening a Stack Snippet in full screen should use history.pushState() to add an entry to the browser history stack. Clicking back will then close the snippet rather than leave the page completely.


I'm currently looking to buy a lab power supply. But there's something I wonder.   We can adjust the voltage and the current.  Let's say I have a circuit requiring 9V and draining 1A.  What if I setup my power supply to 9V 2A ? I think the circuit will only use 1A from the two available and the power supply will warm for nothing but the circuit will not be damaged. Can you confirm this ?

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


of course the problem is how to prove if a and b are both algebraic real numbers then a+b and ab is also an algebraic number .  would you explain it without using vector spaces or extensions or etc. things we know are :   there exists a polynomial which its root is a there exists a polynomial which its root is b   please just keep it simple!

I need help proving  this stunning result.  Let me state it this way.  Let  $\mathbb L$ be a field and $\mathbb K$ be a field with $\mathbb K \subset \mathbb L$  Let $A$ be the set of algebraic numbers ie $A=\{a \in \mathbb L, \exists P \in \mathbb K [X], P(a)=0 \}$  I managed to prove that $A$ is a ring with the following reasoning:  If $a,b \in A$ then $ \mathbb K[a]$ is a ring.  And $ \mathbb K \subset \mathbb K[a] \subset \mathbb K[a][b] $  Some finite-dimension argument(ask details if needed) proves that $\mathbb K[a][b]$ has finite dimension as a vector space over the field $\mathbb K$  Reminding that $\mathbb K[a+b] \subset \mathbb K[a][b]$ and $\mathbb K[ab] \subset \mathbb K[a][b]$ proves that they both have finite dimension, hence $a$ and $b$ algebraic.  How should I proceed with inverses ?


What does the cdata tags do in javascript? As in:  <script type="text/javascript">      //<![CDATA[          code...      //]]> </script>

Are CDATA tags ever necessary in script tags and if so when?  In other words, when and where is this:  <script type="text/javascript"> //<![CDATA[ ...code... //]]> </script>   preferable to this:  <script type="text/javascript"> ...code... </script>


How copy to clipboard with one click (using only JS, jQuery and AngularJS)? I won't use zclip and flash.

What is the best way to copy text to the clipboard (multi-browser)? I have tried: function copyToClipboard(text) {     if (window.clipboardData) { // Internet Explorer         window.clipboardData.setData("Text", text);     } else {         unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");         const clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);         clipboardHelper.copyString(text);     } }  But in Internet Explorer it gives a syntax error. In Firefox, it says unsafeWindow is not defined. A nice trick without using :


I'm trying to get the current latitude and longitude coordinates.   my code      LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);      Criteria criteria = new Criteria();     criteria.setAccuracy(Criteria.ACCURACY_LOW);     String bestProvider = locationManager.getBestProvider(criteria, true);     Location location = locationManager.getLastKnownLocation(bestProvider);      if (location != null) {         onLocationChanged(location);     }     locationManager.requestLocationUpdates(bestProvider, 20000, 0, this);      double latitude = location.getLatitude();     double longitude = location.getLongitude();   error message   java.lang.RuntimeException: Unable to start activity ComponentInfo{conic.com.restaurant/conic.com.restaurant.MainActivity}: java.lang.NullPointerException             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2338)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)             at android.app.ActivityThread.access$800(ActivityThread.java:151)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)             at android.os.Handler.dispatchMessage(Handler.java:110)             at android.os.Looper.loop(Looper.java:193)             at android.app.ActivityThread.main(ActivityThread.java:5292)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)             at dalvik.system.NativeStart.main(Native Method)      Caused by: java.lang.NullPointerException             at conic.com.restaurant.MainActivity.displayListView(MainActivity.java:121)             at conic.com.restaurant.MainActivity.onCreate(MainActivity.java:50)             at android.app.Activity.performCreate(Activity.java:5264)             at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2302)             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)             at android.app.ActivityThread.access$800(ActivityThread.java:151)             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)             at android.os.Handler.dispatchMessage(Handler.java:110)             at android.os.Looper.loop(Looper.java:193)             at android.app.ActivityThread.main(ActivityThread.java:5292)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)             at dalvik.system.NativeStart.main(Native Method)   Here are the manifest declarations manifest declarations  <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />      double latitude = location.getLatitude(); is in line number 121   Hope you can help me.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I remember a scene where a younger person had been given the ring (or jewelry) from an older person who died in a scene prior. The younger person was leading a group of people (possibly dwarves, other friendly creatures in the mix), and they took shelter from the rain under an overhang. The person wearing the ring (or jewelry) foresaw it collapsing on them, so they all moved, and it collapsed.  I'm pretty sure it's a children's book, but not 100%.

I lost a series books during a move and I'm thinking I might like to get them for my son.  They are about a teenage orphan who lives with a (sort of) wizard who's primarily known for his prize pig. There is a "bad guy" but he doesn't do much - he starts off the action in one by scaring the pig, and the boy has to chase after it. He goes on several such adventures, notably one to "find his true nature" that ends with him staring into a pool.  I suppose it could be the early books of , but I'm pretty sure I read them in the 1980s, not 90s, and title seems wrong. And unlike the Wiki description, in the series I'm thinking of, there's no real magic to speak of - its "out there" but does not seem to be part of the action that I recall.


Rational numbers are countable. They are also order dense. Intuitively shouldn't it make irrational numbers also countable. I have seen proofs explaining R is uncountable . This along with countability of rationals implies irrationals are uncountable.   Can anyone provide me with good intuitive explanation why irrationals are uncountable? I am a beginner and any help would be greatly appreciated. Thanks.

I've been told that the rational numbers from zero to one form a countable infinity, while the irrational ones form an uncountable infinity, which is in some sense "larger". But how could that be? There is always a rational between two irrationals, and always an irrational between two rationals, so it seems like it should be split pretty evenly.


This is the pattern for recognizing an email value for the entity in IBM Watson.  \b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b   Can you please elaborate it why below terms are used here:  \b {2, }

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


Is there any way to find out if the OS I'm running (actually installing) is running in a VMWare machine. I need to disable ntp settings if the automated install is done on a virtual machine but keep them enabled if installing on bare metal.

I have command line access to a Linux machine which may or may not be virtualized. I want to determine what kind of virtualization technology it runs on, if any (VMWare, VirtualBox, KVM, OpenVZ, Xen, ). This isn't a hostile environment: I'm not trying to work against a VM that is trying to disguise itself, I'm diagnosing a flaky server that I know little about.  More precisely, I'm helping someone diagnose the issue, I'm not sitting at the helm. So I have to convey instructions like “copy-paste this command” and not “poke around /proc somewhere”. Ideally, it would be something like lshw: an easily-installable (if not preinstalled) command that does the poking around and prints out relevant information.  What's the easiest way of determining what virtualization technology this system may be a guest of? I'd appreciate if proposals mentioned which technologies (including bare hardware) can be conclusively detected and which can be conclusively eliminated. I'm mostly interested in Linux, but if it also works for other unices that's nice.


I have made a bootable USB. I have made 100s of them before. I have a dual boot pc, Kali and Ubuntu.  I want to reinstall Kali from USB (alongside my UBUNTU), but the computer will not boot to USB anymore. Burning ISO to DVD is really absurd.  Why can't I boot to USB anymore?  USB is disabled in bios, yet I use the USB ports everyday. Everyday. It is an Ubuntu question.   I can't and won't install Ubuntu on my laptop if I know I'll lose USB boot. This isn't a BIOS question.

I can't boot via USB after installing Ubuntu.   Yes, the BIOS lists USB, but it is disabled.  Yes, USB is at the top of the boot priority in the BIOS, but it is disabled.  Yes, user Da1T, I'm looking in the BIOS.   Burning an image to disc is a waste of time and money.


Server 2012 R2 w/ GUI in Hyper-V role, hosting VM servers.  Very small system at present.  Primary Servers in this system are: Domain Controller(DC), SQL, TFS, IIS, Build server  I successfully installed my second DC on a new physical Hyper-V host.  I was able to see the Enable Recycle change made on the new DC reflected on the old DC, so I presume everything is going well.  I also intend to shift the PDCe functions to this new DC on the physical server.  At present I have just the one physical server that hosts (or will host) most of my servers as listed above.  Prior to getting this machine, I had successfully hosted all of my servers in a Win 8.1 workstation (It's a pretty big workstation).  Until I get another machine, my temporary plan was to keep the old DC operating as a vm Server running on the Win 8.1 workstation that is still acting as a Hyper-V host.  In that manner I have 2 DC's, each on a different machine.  But the workstation hosting the original DC won't be on 24/7, so that DC will be 'off the domain' for temporary periods.  So my questions are, how long can my DC server hosted on the workstation be 'off the domain' before I would experience problems, and what would those problems be?  Of course, if anyone thinks this is a really terrible solution, feel free to advise what problems I might expect.  But if it is a reasonable temporary solution until I am able to procure another physical machine, then I'd like to stay with it.

On my VMware  environment there are 10 VMs running. One of the VMs is the domain controller (). The other VMs are configured with a static DHCP and DNS IP address in their network settings.  How long is the downtime limit of my domain controller?


How can I check from which directory the program in one of the directories in PATH was executed?  For example, I am running the following command:  laravel   and would like to check where this program is actually located.  I am using  and get the impression that PATH variables get somehow mixed up between Windows and Ubuntu.

I'm new to Ubuntu and would like to know where I can find the location of program files for programs installed from the Ubuntu Software Center or the Terminal.


$\sqrt{3}(\cot 70^\circ + 4 \cos 70^\circ ) =$ ?   The answer is $3$.   My progress so far:  \begin{align} \sqrt{3}(\cot 70^\circ+4\cos 70^\circ)&= \sqrt{3}(\tan 20^\circ+4\sin 20^\circ) \\ &= \sqrt{3}(\sin 20^\circ)\left(\frac{1}{\cos 20^\circ}+4\right)\\ &= \sqrt{3}\frac{(\sin 20^\circ)(1+4\cos 20^\circ)}{\cos 20^\circ}\\ &= \sqrt{3}\frac{(\sin 20^\circ+2\sin 40^\circ)}{\cos 20^\circ}\\ \end{align}

I have to simplify and evaluate this :   $$\cot 70^\circ+4\cos 70^\circ$$  On evaluating it, the answer comes out to be $1.732$, or $\sqrt 3$ .  I tried to get everything in $\sin$ and $\cos$, but it doesn't go any further. Any hints?


Say, I have some Java code  public static void method1(){ ...//method body method2(); } public static void method2(){ ...//method body }   I want method2 to be able to know, as a String, what method called it. For example, in this case, if method1 were run, calling method2, method2  could print out that it was called from method1.  Thanks in advance!

I need to find the caller of a method. Is it possible using stacktrace or reflection?


I'm following Andrew's Blender Guru beginner tutorials, and I'm working on particles right now. The problem is I can't find "size" and "random size" options under physics in the particle panel. I can see it on Andrew's tutorial but I can't find it on my own software.

I am sure that beside Mass there used to be a particle size and size random setting here in previous versions of blender, but on 2.79a, I can't seem to find it?   Did I accidentally change a setting somewhere that turned it off  or did they remove it?    I know that I can use the Normal setting under velocity to control the size, but I am not sure how I can make the size random without randomizing the rotation also.


As title, how do you find the reminder of $2^{62}$ with 85?  Since (85,2) = 1, from FLT I know that $2^{84} \equiv 1 \mod(85)$, but after this I don't know how to proceed because 62 < 85 and I don't know how to use this theorem.

How do I efficiently compute $a^b\bmod c$:  When $b$ is huge, for instance $5^{844325}\bmod 21$? When $b$ is less than $c$ but it would still be a lot of work to multiply $a$ by itself $b$ times, for instance $5^{69}\bmod 101$? When $(a,c)\ne1$, for instance $6^{103}\bmod 14$?  Are there any other tricks for evaluating exponents in modular arithmetic?  This is being asked in an effort to cut down on duplicates, see  and .


So I've been digging into pointers and references recently because they're used constantly in the resources I've been using to learn OpenGL. I've noticed that the const char * pointer seems to behave somewhat differently than other pointers. To demonstrate, I've created this test program:  #include <iostream>  int main() {      int i = 2;      int *pi;     //const char c = "hello world";      const char *pc = "hello world";      pi = &i;      std::cout << "'hello world' type is " << typeid("hello world").name() << std::endl;      std::cout << "pi is " << pi << std::endl;     std::cout << "*pi is " << *pi << std::endl;      std::cout << "pc is " << pc << std::endl;     std::cout << "*pc is " << *pc << std::endl;        return 0; }   output:  'hello world' type is char const [12] pi is 0079FC38 *pi is 2 pc is hello world *pc is h   This result is confusing to me for several reasons. First, the commented out line const char c = "hello world" fails completely; why? By looking at the output, we can see that the type associated with "hello world" itself is char const [12]. Interestingly enough, the following line does work. But, the output is not what I would expect when compared with the output associated with the int pointer (pi). I.e. why when I print pc is the output hello world and not a memory address? (less important) And then, why when I print *pc is the output only the first element of the data contained at that address?

I'm using C++ to understand how exactly pointers work. I have this piece of code using arrays, which I'm using just to understand how the equivalent works with pointers.  int main() {         int arr[10] = {1,2,3};         char arr2[10] = {'c','i','a','o','\0'};     cout << arr << endl;     cout << arr2 << endl; }   However when I run this, arr outputs the address of the first element of the array of ints (as expected) but arr2 doesn't output the address of the first element of the array of chars; it actually prints "ciao".  What is it that I'm missing or that I haven't learned yet about this?


Copying a file with cp, is there a way to pause the operation? NB: copying a single file or copying a large number of files

I accidentally "stopped" my telnet process.  Now I can neither "switch back" into it, nor can I kill it (it won't respond to kill 92929, where 92929 is the processid.)  So, my question is, if you have a stopped process on linux command line, how do you switch back into it, or kill it, without having to resort to kill -9?


I went on the Visa Waiver Program to Chicago 3 years ago, I ended up over staying by 2 days. I am now going back for a week long holiday and I am just wondering what I need this time to allow me into country with no hassle? I am travelling from Ireland.

A friend of mine came from Australia on the WVP and stayed 92 days. I made a mistake booking Her flight scheduling a Saturday arrival/departure at DFW. This amounted to a 92 day stay and with no funds to rebook a low cost flight through Qantas it was necessary to leave on the scheduled flight.   Question # 1) Was a automatic I-94W submitted by the airlines? She had no customs forms to fill out upon departure.   Question #2) How does this effect another WVP being issued if applied for?


The question is:     Are there square matrices $A,B$ over $\mathbb{C}$ s.t. $A^2+B^2=AB$ and $BA-AB$ is non-singular?   From $A^2+B^2=AB$ one could obtain $A^3+B^3=0$. Can we get something from this?  Edit:  $$A^2+B^2=AB\implies\\ A(A^2+B^2)=A^2B \implies\\ A^3+AB^2=A^2B \implies \\ A^3+(A^2+B^2)B=A^2B \implies \\  A^3+A^2B+B^3=A^2B \implies \\ A^3+B^3=0 $$

I saw this tucked away in a  and am asking this question to preserve (and advertise?) it. It's a nice problem!  Problem: Suppose $A$ and $B$ are real $n\times n$ matrices with $A^2+B^2=AB$. If $AB-BA$ is invertible, prove $n$ is a multiple of $3$.


Is it the best answer or the one I liked the most? I am really confused between two answers. Some of them are simple and clear, a second is informal. Is there a way to close my question without choosing an answer?

What does it mean to accept an answer? How do I accept an answer, and what are the rules? Can I accept my own self-answer? What are the reputation benefits? Which answer should I accept? Should I upvote the accepted answer? What should I do if none of the answers are suitable?      For more information, see "" in the .


I have an old pair of speakers that has an annoyingly loud bass response.  Switching back and forth between these speakers and any other speakers makes the effect even more noticeable.  I admit I could just buy a better pair of speakers, but I feel like this problem should be able to be solved with software, now that we live in the future of pulseaudio.  How can I set up a pulseaudio equalizer filter that only (and always) affects one output?  Alternately, is there a system-wide equalizer that actually works in 16.04?  All the instructions I can find come from 2013, and none of the software indicated therein seems to be pre-built for anything past 15.04, which doesn't inspire confidence.

What I am looking for is to have system wide implementation of sound enhancements like bass boosts, echoes, Fidelity, Stereo enhancement and so on.  Audio Video players have their own equalizer but they enhance only the audio / video files they are playing.  So to enhance sounds playing such as: YouTube, Spotify, System Sound, etc. I need a enhancer software. Back in Windows, I used to use SRS HD audio lab to do the same.  P.S. I have a horrible Speaker set.


I shutdown my laptop for the last time and it had run good, but when I turn it on, now, it just shows my desktop and its icons, also no short-key runs and I can just run software which are in the desktop! I can't run terminal as well! I restarted it, yet, it goes wrong so far.  I installed unity plugin for times and reset it also, but it would not change. What should I do?

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


If you have 10 cookies, and your number of cookies increases tenfold, you have 100 cookies, right? That's what I thought at first, but I recalled that if your number of cookies increases 200%, you get N + (200%/100%)N cookies where N was your original number of cookies, so you end up with 30 cookies, not 20. Shouldn't a tenfold (or threefold, or fourfold, or whatever) increase work the same way as a percentage increase?  For what it's worth, I'm interested in whether I should describe an increase from 0.8% to 3.4% as a "fourfold increase" or "threefold increase" (since 3.4%/0.8% = 4.25) in a scientific paper.  (I'm not sure whether this question belongs here or on math.SE.)

and is such interpretation the norm?  When something went from 4 units to 8 units, most authoritative sources seem to agree with the use of "a two-fold increase", even though what was actually increased is more like "one-fold", i.e. the original quantity.  But if the "two-fold increase" is the correct usage, why most people seem to interpret "a 100% increase" the same thing?


I'm applying UK visit visa application on behalf of my parents and my father is retired and currently his income is coming from a several lands lease, flats rent also he has some savings, my mom is his only dependent.  All payments are paid to my father by cash and most cases my father doesn't deposit any payments to his bank accounts. It's going to be extremely hard to show regular cash flow about these payments, however, he has all the property's documents to show he owns them.  Is it necessary to show proof of these above incomes if yes then how?

The UK Visas and Immigration Directorate publishes  that provides helpful tips that can result in successful visa applications. Section 2 of this guidance opens is entitled "other documents you may want to provide" (emphasis mine).  Section 2: other documents you may want to provide – all visitors This section provides guidance on the types of documents that you may want to provide to help us consider your application against the Immigration Rules. Previous travel documents/passports, which show previous travel. Financial documents showing that you have sufficient funds available.  These must clearly show that you have access to the funds, such as:  bank statements building society book proof of earnings such as a letter from employer confirming employment details (start date of employment, salary, role, company contact details) where a third party (who is either in the UK or will be legally in the UK at the time of your visit) is providing financial support to you e.g. a business, a friend or a relative, documents to show that they have sufficient resources to support you in addition to themselves and any dependant family should be provided   The first item is "bank statements" and this ties in with the , which says...  evidence that you can support yourself during your trip, eg bank statements or payslips from the last 6 months  (Note 'eg' is a Latin abbreviation meaning "for example"; this appears to be optional rather than a fixed requirement.) Question: How should someone interpret this such that the chances of success are maximized? How many statements should I submit? What are they looking for and what do my bank statements tell about me?


I'm new to C++ and as a college proyect I'm building a 2D platformer with some classmates, I recently read that it's a good idea to have a stack of gamestates instead of a single global variable with the game state (which is what I have now) but I'm not sure how to do it.  Currently this is my implementation:  class GameState {     public:         virtual ~GameState(){};         virtual void handle_events() = 0;         virtual void logic() = 0;         virtual void render() = 0; };  class Menu : public GameState {     public:         Menu();         ~Menu();         void handle_events();         void logic();         void render(); };   Then I have a global variable of type GameState:  GameState *currentState = NULL;  And in my Main I define the currentState and call it's methods:  int main(){     currentState = new Menu();     currentState.handle_events(); }   How can I implement a stack or something similar to go from that to something like this:  int main(){     statesStack.push(new Menu());     statesStack.getTop().handle_events(); }

I was thinking about how to implement game states into my game. The main things I want for it are:   Semi-transparent top states-being able to see through a pause menu to the game behind Something OO-I find this easier to use and understand the theory behind, as well as keeping orgranised and adding more to.    I was planning on using a linked list, and treat it as a stack. This means I could access the state below for the semi-transparency.  Plan: Have the state stack be a linked list of pointers to IGameStates. The top state handles its own update and input commands, and then has a member isTransparent to decide whether the state underneath should be drawn.  Then I could do:  states.push_back(new MainMenuState()); states.push_back(new OptionsMenuState()); states.pop_front();   To represent the player loading, then going to options, and then main menu.  Is this a good idea, or...? Should I look at something else?   Thanks.


I have tried and been twice refused to post what I consider to be a reasonable JavaScript-related question on Stack Exchange.  When refused, someone suggested the  site, which I thought was going to accept my question, but alas no.  I have noticed many helpful posts on Stack Exchange have a rejection notice lately, questions that have provided a useful answer to what I was looking for as a developer.

I'm on SO pretty much every day researching something to do with programming, and over the last month or two, I find I'm growing frustrated and a little disgusted at how many interesting questions have been closed as "not a good fit" or "too subjective".  I think there is a confusion between "subjective" and "calls for judgement". To me one of the most valuable things about SO is the tremendous breadth and depth of experience of the members, and experience translates into smart decisions and advice, and that advice cannot always be asked for, or expressed in terms of, bald facts and data.  It's going to be 'subjective'.  I don't think SO should be Wikipedia. I think that if I could ask a question to a group of skilled programmers sitting around a table at lunch, and get interesting, valuable answers, then I don't care whether the question or the answers are 'subjective', I think that question should equally well be fair game for Stack Overflow.  I would like to see a mechanism whereby people who vote to close a question lose reputation when somebody expresses interest in that question or its responses.  How can I, or can I, influence this aspect of SO?


It has always fascinated me that time is symmetrical in classical physics while, in life, we all experience the flow of time in only one direction.  There is no preference as to the direction of time in classical physics, the only exception being in thermodynamics where, with the introduction of entropy, there is a preferred direction for time's axis. Physical systems evolve in the direction in which their entropy increases (sorry for not being precise...)  Personally, I have never truly accepted thermodynamics as a full theory as it never truly 'explains' why entropy must increase.   But, in quantum theory, there seems to be a preferred direction for time, too. And this has nothing to do with entropy?  The collapse of a wave function in a measurement seems to dictate a direction of time.  Could this be a better explanation for the direction of time or maybe even for thermodynamics?  (Ok, maybe not thermodynamics...)

Schroedinger's equation, as we all know, is time symmetric. In quantum field theory, we have to come up with a more sophisticated CPT reversal, but the essential point remains unchanged. However, the collapse of the wave function in the Copenhagen interpretation is manifestly time asymmetric. Correct me if I'm wrong, but can you uncollapse a wave function, converting it from an eigenfunction to a superposition of eigenfunctions?  Is this asymmetry connected with the thermodynamic arrow of time and the second law in statistical mechanics, or are they independent? How would an uncollapse look like, and can we experimentally arrange for an uncollapse? Why are there more collapses than uncollapses? If an observer unobserves a quantum thingie, does that thingey uncollapse?


The 'r' represents the distance of a point on the ellipse with respect to the focus. The 'l' represents the semi latus rectum of the ellipse. The 'x' represents the angle at the focus and 'e' is the eccentricity of the ellipse.

I am trying a derivation of the polar form of an ellipse using vector notation. Beginning with a definition of an ellipse as the set of points in $\vec{R}^2$ for which the sum of the distances from two points is constant, I have $|\vec{r_1}|+|\vec{r_2}| = c$  Thus, $|\vec{r_1}|^2+|\vec{r_1}||\vec{r_2}|=c|\vec{r_1}|$    Choosing a coordinate system (similar to the one in the diagram), such that $\vec{r_1}=\vec{r}=x\vec{i}+y\vec{j}$, and $\vec{r_2}=\vec{F_2 P}=(x-a)\vec{i}+y\vec{j}$  Noticing that $|\vec{r_1}||\vec{r_2}|=\frac{\vec{r_1}\cdot\vec{r_2}}{\cos(\theta)}=\frac{x^2-ax+y^2}{\cos(\theta)}=\frac{r^2-ax}{\cos(\theta)}$  and using $x=r\cos(\theta)$, we get  $r^2+\frac{r^2}{\cos(\theta)}-ar=cr$, thus I get a polar equation for an ellipse of $r=\frac{a+c}{1+\sec(\theta)}$  whereas I expect $r=\frac{a(1-e^2)}{1+e\cos(\theta)}$. Please tell me where this argument takes the wrong turn!


I have the following rules in INPUT chain:  -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT -A INPUT -m conntrack --ctstate INVALID -j DROP -A INPUT -s 127.0.0.1/32 -j ACCEPT -A INPUT -s 10.0.0.0/8 -j ACCEPT -A INPUT -s 172.16.0.0/12 -j ACCEPT -A INPUT -s 192.168.0.0/16 -j ACCEPT -A INPUT -j DROP   It is dead simple: traffic from private addreses is allowed, the rest is dropped. If I attempt a TCP connection from any public address, it is dropped, as expected. However, UDP traffic is allowed through, on any port. What am I missing here? System is Debian 9, kernel version 4.9.30-2+deb9u5.  EDIT: I was wrong, TCP traffic passes through as well (it was blocked elsewhere). So with these rules, all traffic is accepted. How is this possible?  EDIT 2: I was wrong again, my testing method was flawed. Some connections were getting through at one point, but the only logical explanation is that they were already established, which was resolved after I rebooted the machine. Thanks for the help, everybody.

I have a firewall with these simple rules:  iptables -A INPUT -p tcp -s 127.0.0.1/32 --dport 6000 -j ACCEPT iptables -A INPUT -p tcp -s 192.168.16.20/32 --dport 6000 -j ACCEPT iptables -A INPUT -p tcp --dport 6000 -j REJECT   Now, suppose I am using TCPDUMP like this:  tcpdump port 6000   And I have host 192.168.16.21 trying to connect to port 6000.  Will/should tcpdump output some packets coming from 192.168.16.21?


I am experiencing this on OpenBSD 6.8 using FantasqueSansMono Nerd Font. Unicode symbols (at least several of them) display in xterm, but not entirely—it seems as if there is a fixed width available for the character to be rendered and ‘wider’ characters are simply chopped. See for example how the ‘Downwards Quadruple Arrow’ (⟱) prints in my terminal:  Could this be a limitation of OpenBSD’s xterm implementation? I really wish I could see these symbols in their full glory. Here is my relevant .Xdefaults snipped: xterm*faceName: monospace:antialias=true:autohint=true xterm*faceSize: 11 xterm*faceSize1: 6 xterm*faceSize2: 8 xterm*faceSize3: 12 xterm*faceSize4: 16 xterm*faceSize5: 22 xterm*faceSize6: 32 xterm*eightBitInput: false  Also my fontconfig for the definition of ‘monospace’: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig>     <alias>         <family>monospace</family>         <prefer>             <family>FantasqueSansMono Nerd Font</family>             <family>Noto Emoji</family>             <family>Font Awesome</family>         </prefer>     </alias> </fontconfig>

In my case, (U)XTerm does display some unicodes, but only partially. For exmaple: for letters are: 𝒫φϕ𝒟. Here is a screenshot of UXTerm and Urxvt respectively   It seems that the problem is related to the letter space or letter length. By the way, everything is fine with gnome-terminal.  My current .Xresources file is: Xft.dpi:       120 Xft.antialias: true Xft.hinting:   true Xft.rgba:      rgb Xft.autohint:  false Xft.hintstyle: hintslight Xft.lcdfilter: lcddefault  XTerm*faceName:          Fixed XTerm*faceSize:          14 XTerm*reverseVideo:      false XTerm*selectToClipboard: true  UXTerm.vt100*faceName:          Fixed UXTerm.vt100*faceSize:          14 UXTerm.vt100*reverseVideo:      false UXTerm*selectToClipboard: true  URxvt.font:            xft:Fixed:pixelsize=18  URxvt.depth:                      32 URxvt.background:                 #222D31 URxvt*scrollBar:                  false URxvt*mouseWheelScrollPage:       false URxvt*cursorBlink:                true URxvt*background:                 black URxvt*foreground:                 grey URxvt*saveLines:                  5000  How to make XTerm and Urxvt to display those characters correctly? Is it possible?


In ArcMap, user can create a table that groups the field values using summarize field tool (as shown below)    How can I create a table that summarizes field values in QGIS?

I'm working with population data, and I have an issue when it comes to knowing the sum of a population inside the attribute table.  In my attribute table, I'd like to add all the numbers in the red box, i.e. all the numbers together from the column "UN_2015_E". Is there a way to do so?


Today, I thought I was on  but Google had actually sent me to .  That site looks exactly like Server Fault, except that I couldn't comment because I was not logged in. Then I tried to login, but it didn't work. After a few tries, I realized I was on the wrong domain.  So serverfault.daytorrents.com certainly looks and behaves exactly like a phishing site. I immediately changed my password on the real Server Fault site, but I would still like to know.

of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under . For my fellow non-lawyers, that license basically means:   Anyone can use any Stack Exchange posts at any time without having to ask for permission Making money off of the copied content is permitted You don't even have to copy stuff from here verbatim; you can just use it as a starting point and make whatever edits you want There are just two rules you have to follow:   You have to provide . Simple links to the original post and author info are just fine. You have to  and allow other people to use your content, as long as they follow these very same rules. How meta!    (If you ever forget any of that, and want to refresh your memory, the license info is linked to in the footer of every page.)  There are, in fact, a lot of people who republish varying amounts of our content for assorted reasons. Unfortunately, there are some Stack Content Republishers Attributing Poorly and/or Excelling at Ranking (SCRAPERs, for short).  In this context, "attributing poorly" means any use that doesn't follow our attribution rules or make any other reasonable attempt at give credit. This can get pretty egregious; I've seen SCRAPERs that not only don't link back to SE originals, but also use fake author info and post dates to make it harder to find originals. By "excelling at ranking," I'm referring to copycat sites that end up higher in Google results than the original SE sites do for the same content. That's not necessarily wrong, but in some cases, it indicates inappropriate SEO hackery.  So, the question is: what can you do if you spot a SCRAPER?


I am new to latex and I am using memoir package to generate the TOC. I need to remove the highlighted part in the below TOC image. I just want it as CHAPTER and want to remove the dots and the page number.  This is the code in my .sty file ---   %%%% Do the ToC \let\oldtoc\tableofcontents \renewcommand{\tableofcontents}{\clearpage\pagestyle{toc}\oldtoc}   \renewcommand{\contentsname}{TABLE OF CONTENTS}  \renewcommand{\listfigurename}{LIST OF FIGURES}  \renewcommand{\listtablename}{LIST OF TABLES}  \renewcommand*{\tocheadstart}{\vspace*{-\topfiddle}}  \renewcommand*{\aftertoctitle}{\thispagestyle{plain}%  \par\nobreak \mbox{}\hfill{\normalfont Page}\par\nobreak}  \renewcommand*{\cftchapterfont}{\normalfont}  \renewcommand*{\cftchapterpagefont}{\normalfont}  \renewcommand*{\cftchapterleader}{  % \cftchapterfont\cftdotfill{\cftchapterdotsep}}  \renewcommand*{\cftchapterdotsep}{\cftdotsep}  %\renewcommand*{\cftchaptername}{CHAPTER~}  %%% no extra space before the entry  \setlength{\cftbeforechapterskip}{0pt plus 0pt}  %% no extra 'chapter' space in LoF/LoT  \renewcommand*{\insertchapterspace}{}   Can you please help me out with this?

I have seen similar posts but none seem to work. I simply need to remove the dots in the ToC between the chapter titles and the page numbers. I think the page numbers should line up (as if there were dots). This is using the memoir class. Here is my ToC info:  %%%% Do the ToC \let\oldtoc\tableofcontents \renewcommand{\tableofcontents}{\clearpage\pagestyle{toc}\oldtoc}  \renewcommand{\contentsname}{TABLE OF CONTENTS} \renewcommand{\listfigurename}{LIST OF FIGURES} \renewcommand{\listtablename}{LIST OF TABLES} \renewcommand*{\tocheadstart}{\vspace*{-\topfiddle}} \renewcommand*{\aftertoctitle}{\thispagestyle{plain}%   \par\nobreak \mbox{}\hfill{\normalfont Page}\par\nobreak} \renewcommand*{\cftchapterfont}{\normalfont} \renewcommand*{\cftchapterpagefont}{\normalfont} \renewcommand*{\cftchapterleader}{%   \cftchapterfont\cftdotfill{\cftchapterdotsep}} \renewcommand*{\cftchapterdotsep}{\cftdotsep} %\renewcommand*{\cftchaptername}{CHAPTER~} %%% no extra space before the entry \setlength{\cftbeforechapterskip}{0pt plus 0pt} %% no extra 'chapter' space in LoF/LoT \renewcommand*{\insertchapterspace}{}   I tried everything that was suggested. Nothing seemed to make any difference. I am stuck with this format. Any suggestions would be greately appreciated!


Assume that the word child had to be replaced with son in a file consisting of sentences (not a list of words).   It isn't a straight string replacement; for example, the following should not happen:  children should not be changed to sonren  but the following should happen:  child. should be changed to son.  child! should be changed to son!  Basically, the text that is to be replaced must be an independent word and the word separators must be preserved.  How can this be done without hard-coding for every possible word separator?

Lets say I try to replace in a like this   asdasdasdHit Hitasdasd Hit Hit Hitasda Hit Hit asdaHit Hit Hit Hit Hitasda Hit ... ...   Is there  a way to get every "clean" Hit replaced with OK? I tried /g but then everything gets an OK  With s/\ Hit\ /OK/g the Hit on the newline gets lost.


Is Clonezilla the best backup system for Ubuntu 12.04.5? And if so, what do I need to do to download it...ie: Do I need to partition files? If so, how to do this. Thanks.

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .   Backup is incredibly important. Obviously there's no best backup tool, but a comparison of the options would be very interesting.   Graphical Interface? Command line? Incremental backups? Automatic backups? Install method: In standard repositories? PPA?


I've been making websites and odd projects with Python and Javascript for about 4 years, and now I'm making the leap down to C/C++ for a new endeavor. Forgive me if my terminology is off, still finding the right language for everything.   my understanding is that the function and type declarations in header files help create a symbol table for compilation, which allows you to reference those imported functions in a main() routine (or something similar) before you've actually linked to the definitions. When you 'declare' something, you're putting it in the symbol table, so the compiler can verify references from files that are using those imported functions.  So my questions is, why would you construct the symbol table for imported funcs/types from a separate header file, rather than derive it directly from the source code you're going to import? why not just scan the .c file you're going to import, gather the function and typedef names and use those to populate the symbol table? would save code (no declarations), and I think would make importing code a bit more intuitive.   That said, my guess is i'm missing something - I'm sure there's a reason for the way it's organized the way it is. Flexibility? independence of the interface? is it less work to scan a header file? I don't know.   any insight you might have would be greatly appreciated!

Why does C++ have header files and .cpp files?


I have a \documentclass[11pt, twoside, a4paper, twocolumn]{article}  I have something like this: Figure: xxxxxxxx  And I need: Figure. xxxxxxxxx  I need change the colon with a dot.   An example of my figures:  \begin{figure*}   \centering   \includegraphics[width=0.7\textwidth]{ZonaInfluencia.png}   \caption{Study area}   \label{AreaInfluencia} \end{figure*}

How can I modify the caption name of a figure? For example I have  \caption{This is a figure.}   and by default the caption appears as     Figure 1: This is a figure.   However I want     Fig.1 - This is a figure.


A weird infinity problem. I saw this on youtube but could not understand it: Let us add 1 + 2 + 4 + 8 + 16 + ... up to infinity x=(1+2+4+8+...)  = 1(1+2+4+8+...) = (2-1)(1+2+4+8+...) = (2+4+8+16+...)-(1+2+4+8+...) = -1 x=-1  Now that is weird since we are adding up to infinity towards the positive side yet we end up with a negative number. Somebody please explain me why.

I puzzled two high school Pre-calc math teachers today with a little proof (maybe not) I found a couple years ago that infinity is equal to -1:   Let x equal the geometric series: $1 + 2 + 4 + 8 + 16 \ldots$  $x = 1 + 2 + 4 + 8 + 16 \ldots$ Multiply each side by 2:  $2x = 2 + 4 + 8 + 16 + 32 \ldots$ Again from the equation in step 1, move the $1$ term to the left hand of the equation:  $x - 1 = 2 + 4 + 8 + 16 + 32 \ldots$ So the following appears to be true:  $2x = x - 1 \implies x = -1$   This is obviously illogical. The teachers told me the problem has to do with adding the two infinite geometric series, but they weren't positive. I'm currently in Pre-calc, so I have extremely little knowledge on calculus, but a little help with this paradox would be appreciated.


I updated my Ububtu 14.04 LTS to 16.04 LTS. I have HP Pavilion 15ab 030tx. My nvidia graphics card is not being detected. Instead X.org was installed and is being used. What to do?

I installed or upgraded to Ubuntu 16.04, but I'm having some problems with my graphics card.   The display is blank The display flickers Items on the screen do not display correctly Certain programs complain of graphics issues The computer boots to low-graphics mode Your specific issue may not be here, but try the solutions described in the answers anyway.   This question is very broad, but each one of these issues likely has one solution.    If you are experiencing a login loop, check the last part of my answer.    If you experience one of the listed issues and have your own solution (mine didn't work, or there's a faster way), feel free to post another POLITE answer, describing your problem and how you fixed it.    Those attempting to install Ubuntu, please refer to the section titled: If you are unable to enter a TTY or are trying to install Ubuntu.


Jerry is one of those students who (miss / misses) the homework   assignment as he leaves early.   In the above sentence which is the correct choice of verb and what's the reason for the choice? If Jerry is the subject then it should be 'misses'. But I have seen a rule which says that when using pronouns like 'who' the verb depends on the noun that appears immediately before the verb.

One of the boys who always give/gives the correct answer is Samuel.   As per rule, one of is followed by plural noun/pronoun and singular helping verb, so we should be using gives in the sentence. But the answer is give.


I'm trying to migrate some data from MySQL DateTime format. Here's one:  $old_date = "2019-05-06 08:00:00" My content type has a custom field using DateTime.   Using the info from SO links below, I can do this:  $date_object = DateTime::createFromFormat("Y-m-d H:i:s", $old_date);  which gives me a lovely object in my current timezone.  date: 2019-05-06 09:00:00.0 US/Central (-05:00)  MySQL is looking for a string in the UTC format. When I attempt to format this new object, it dutifully returns   $date_object->format(DATETIME_DATETIME_STORAGE_FORMAT); "2019-05-06T08:00:00"  But this is not helpful. Using the Drupal 8.7 admin interface, when I enter the date and time values, I see in MySQL table when I save the node, that I get:  2019-06-06T03:00:00  So, apparently Drupal Entity has a handler to automatically instantiate a localized DateTime value in MySQL that is UTC friendly. I ask because I haven't found what this method might be and I have not found it in DrupalDateTime or related classes. Happy to be shown what I've overlooked. Or how to discern how Entity handles all of these functions that I can use in my custom modules.   Or should I do the math for each of these strings and hope I get the correct timezone differential depending on the time of the year?

I have a form where the user can input datetime and then I want to store it in the database. Here's my schema :     'start' => array(           'type' => 'varchar', 'mysql_type' => 'datetime',           'not null' => FALSE,         ),   The form :     $form['add']['start'] = array(         '#type' => 'datetime',   '#default_value' => $date,       );   When I hit submit button, it shows me :     db_insert failed. Message = SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value:...   What I got out of it was that the DateTime in Drupal is incompatible with MySQL's. Any suggestions or how should I process the value from the form so I can insert it into the db?  Alternatively, any way to convert DrupalDatetime into string?  (For what it's worth I also tried 'timestamp' as the MySQL type but it throws me the same error).