Trying to store data in a LinkedList on my test android app and keep getting a nullpointerexception

Problem: (All info below) I've set up the app to get text from EditText component and add it into a LinkedList once the button is pressed.  Tests: Testing for getText.toString() was successful (so u_in had a usable string) and I also tried to implement a simple array within my MainActivity and perform the same function which worked perfectly. Although I keep getting a NullPointerException with the database class and LinkedList.   I've also tried adding a null check in the OnClick anonymous method, but still got the same error.  Testing using physical device and running Android Studio 2.1  Main class:  public class MainActivity extends AppCompatActivity {  public Data_base db; public String u_in;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     check_button(); }   public void check_button() {     Button add_button = (Button) findViewById(R.id.button);     final EditText etext = (EditText) findViewById(R.id.editText);     add_button.setOnClickListener(new View.OnClickListener() {         public void onClick(View v){             u_in = etext.getText().toString();             db.add(u_in,0);             }     }); }   Input class(Initializes information):  public class Input {   public String input;  public int age;      public Input (String input, int age) {         this.input = input;         this.age = age;     }  }   Database class (where I have my linkedlist and methods to manipulate it):  public class Data_base {     public LinkedList<Input> user_in = new LinkedList<>();     public void add(String in, int age) {        user_in.add(new Input(in, age));    }     public LinkedList<Input> getList() {        return user_in;    }  }   Error:   05-02 22:51:59.202 2813-2813/com.example.user.test_app E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.user.test_app, PID: 2813 java.lang.NullPointerException: Attempt to invoke virtual method 'void com.example.user.test_app.Data_base.add(java.lang.String, int)' on a null object reference  at com.example.user.test_app.MainActivity$1.onClick(MainActivity.java:33)  at android.view.View.performClick(View.java:5155)  at android.view.View$PerformClick.run(View.java:20747)  at android.os.Handler.handleCallback(Handler.java:739)  at android.os.Handler.dispatchMessage(Handler.java:95)  at android.os.Looper.loop(Looper.java:145)  at android.app.ActivityThread.main(ActivityThread.java:5832)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)


When I do putty -ssh user@host -pw password echo "hi"  I get a network error  But if I do putty -ssh user@host -pw password  An SSH session is successfully opened in a putty terminal. But I just want to run a single command. How do I do this in Putty?


I have a vector image that I want to animate in Blender. I imported the image from file but it does not show up on the Blender workspace. Do I have to tweak some settings in order for it to show up?


How to get width of the video and scale another video to that width using ffmpeg?

I'm using ffmpeg to stack two videos vertically. They might be different size so I need to scale them to same size. I have found following commands.  First one works for different sizes (but won't scale to proper size):  ffmpeg -i input1 -i input2 -filter_complex '[0:v]pad=iw:ih*2[int];[int][1:v]overlay=0:H/2[vid]' -map [vid] -c:v libx264 -crf 23 -preset veryfast output   Second one works if videos have same width and same pixel format:  ffmpeg -i input1 -i input2 -filter_complex vstack output   How to get width of first input inside complex filter argument so second input could be scaled to same width? What would be the command to do so? I would prefer vstack filter since it should be faster than combination of pad and overlay.


Why will Ubuntu no longer measure file size unit as byte, megabyte, gigabyte, etc?

I read on  that Ubuntu will no longer use the familiar file size units we all know by now (kB, MB, GB, TB) and switch to a different IEC standard (KiB, MiB, GiB, TiB). If this is true, I would like to know what's the reasoning behind this change, and the impact (if any) this change has, especially with multiplatform applications or applications run with Wine.


Request a specific expert on a subject to answer your question

Possible Duplicates:             There come times where you have an advanced question about a platform (not a problem/error). Typical developers watching that tag won't be able to answer it, or the few expert developers might miss it.  Example: C# expert , VSTO expert , Symbian expert   Some experts like Jon Skeet / Marc Gravell watch their respective tags, but that's no guarantee that your tough question will be seen by them.  So a way to request a specific user to answer a question will be useful. An implementation:   Every question has "inform" link below it Clicking "inform" asks you for a specific user ID, eg. "23354" for Marc Marc then sees an alert on his Recent Activity page. Marc answers the tough question, and helps devs when they need him most


I would like to use a pull-down resistor on the input of a NOT logic gate. I am using a 5V microcontroller, and I want to ensure that the input of the gate will never be floating (eg. microcontroller damage).  General information:  The logic gate I am using is a HD74LS04 inverter whose datasheet can be found . I am testing the output by placing my positive multi-meter lead on R4 and the negative lead on GND. With the digital pin floating, the output of 1Y is 4.33V. This is the expected behavior.  The logic gate requires a minimum of 2.0V for Vih. If I understand this circuit correctly, I expect the voltage at pin 1A to be 3.76V since R2 and R3 will form a voltage divider. This value seems plenty to signify a 'high' in the logic gate.  R2 exists to protect the digital pin. Ideally, I would have liked R2 to be 1KΩ. Increasing the value of R2 means I have to increase the value of R3 to maintain the same voltage divider. During testing I found that if R3 was any value over 3.3KΩ, the pin 1A would not get pulled down all the way if I left the digital pin floating.   Tests: If I disconnect everything except GND and Vcc and place the positive lead of my multi-meter on pin 1A (now floating) and the negative lead to GND, I read 1.49V. Placing a pull-down resistor (R3) on pin 1A to GND with a value of 100Ω changes the reading to 0.02V. Increasing the resistor's value to 330Ω increases the reading to 0.07V. At the value I need, 3.3KΩ, the reading increases to 0.60V. Finally, changing the resistor's value to 1MΩ increases the reading to 1.47V and actually changes the output of pin 1Y to low.  The test that uses the 3.3KΩ resistor is concerning. The reading I took (0.60V) seems to be approaching the Vil maximum of the logic gate which is 0.80V.   Questions:  This must be a trivial question, but why does an R3 value of 3.3KΩ not pull pin 1A all the way to GND? Is there a formula for determining the correct pull-down resistor value? Other answers I found on here simply state 10KΩ as a 'good' value for a pull-up resistor. I'm not sure where that value comes from or if it is applicable to a pull-down resistor.         – Schematic created using   Edit: Although Ignacio's answer technically answers the question, I thought I would share some information I found for others who may come across this question.  User 'Papabravo' on the  states that the calculation for a pull down resistor can be calculated by taking the Vil (0.8V) and dividing it by the "standard TTL load" of 1.6mA. As Ignacio pointed out, my specific logic gate can source up to 0.4mA, so the calculation would be 0.8/0.0004A which equals 2KΩ. For safety, I performed the calculation at 0.5V in order to give myself some headroom.  Other Resources:


I am trying to install a plugin for Wordpress on Ubuntu 14.04 Server but it keeps failing. I assume it is a rights issue because of a directory not being able to create. This is my last ditch effort I have Googled and looked all I could but nothing has worked. Here is the error it happens on any plugin:  Downloading install package from …  Unpacking the package…  Could not create directory.


Is it possible to make the URL index.php?view=something back into /something?


Intuitive explanation for spline convolution

What is spline convolution intuitively? When should use it? what is the motivation behind it?


For fixed $z_i$s inside the unit disc, can we always choose $a_i$s such that $\left|\sum_{i=1}^n a_iz_i\right|<\sqrt3$?

Let $z_1,z_2,\ldots,z_n$ be complex number such that $|z_i|<1$ for all $i=1,2,\ldots,n$. Show that we can choose $a_i \in\{-1,1\}$, $i=1,2,\ldots,n$ such that $$\left|\sum_{i=1}^n a_iz_i\right|<\sqrt3.$$


Novel where a man is paid to travel to a planet inside a metallic sphere

There was a book (it actually had a second book as well) where a guy gets paid with a group of others to go to a planet that is enclosed in a metallic sphere.   There are many species in this planet. I don't recall if they actually met the races in the first or the second book but there an incident where an alien in the first book ate fruit from a tree that removed any signs of gender from it.


When boundary of union is equal to union of boundaries

I know that boundary of union is subset of union of boundaries. When  does the equality hold? Can you give examples where there is equality and where there fails to be equality?


What word describes random unfitting judgements?

Example 1:   Person: Why are healthcare workers wearing masks if it wont protect us?  Me: Proper fitting N95 masks provide protection, others do not.  Person: Wow, why are you so rude?  Rudeness was not exchanged whatsoever.   Example 2:   Person: Hey can you grab me the tool?  Me: Yes, here you are. Gives tool without problem  Person: Whats your problem today?!?  The situation did not have any acts of aggression.  Person is genuinely suddenly under an irrational belief that another is being rude with no supporting evidence presenting as rude or being a problem. I am looking for a word that describes a random unfitting judgement or claim that doesnt make sense. Imagine youre having a conversation with someone, and they respond with something completely unrelated leaving you scratching your head.  Not slander because they arent intentionally trying to demean you. Not ad hominem because they arent attacking you instead of the conversation.


Regardless of whether or not , this secret hat is coveted by many this year for it's sheer coolness. But what is the method of obtaining this hat?


No ubuntu 12.04 toolbar when installed through VMware workstation

I just installed Ubuntu 12.04 inside VMware workstation.  I'm new to both VMware and Ubuntu.  When I open Ubuntu up, there's no menu anywhere.  Is I move my mouse around, I can see that it's highlighting toolbar options on the leftside, but I can't tell what those options are.  I can click and open things up, but that isn't very helpful.  I've tried changing the background image, but that doesn't fix it.  Any idea how to make the toolbar show up?  Is it because I'm running it through VMware workstation?


Could the compile procedure be the real difference between Red Hat EL and CentOS?

The last few days I'm itching to change the distribution I'm using for years, Debian. Since stability is of major importance for me and I'm not interested in bleeding edge features, I've decided to play around with RHEL. Considering it's not free and being aware of CentOS, I've decided also to make some further investigation to the issue.  While searching, I've found an interesting comment from user  in this , which says the following (among other things):  "Yeah... recompiled sources. But, only Red Hat has the "secret sauce" to compile them correctly. CentOS 6 is 85% different in terms of binary compatibility with RHEL 6."  Which gave further boost to my initial wondering "Red Hat is investing a lot on their OS. Can it be THAT similar with the CentOS? Is there nothing that they can do to make things a little bit more "closed source"? "  And the actual question:  CentOS is considered to be binary compatible with RHEL, but what is the difference from the "real thing"? Is it possible by using different compile configurations to produce an entirely different OS?


Where do deleted items go on the hard drive?

After reading the quote below on the Casey Anthony trial (CNN) ,I am curious about where deleted files actually go on a hard drive, how they can be seen after being deleted, and to what extent the data can be recovered (fully, partially, etc).  "Earlier in the trial, experts testified that someone conducted the keyword searches on a desktop computer in the home Casey Anthony shared with her parents. The searches were found in a portion of the computer's hard drive that indicated they had been deleted, Detective Sandra Osborne of the Orange County Sheriff's Office testified Wednesday in Anthony's capital murder trial."  I know some of the questions here on Super User address third party software that can used for this kind of thing, but I'm more interested in how this data can be seen after deletion, where it resides on the hard drive, etc. I find the whole topic intriguing, so any additional insight is welcome.


Under what circumstances is there a conflict of interest for a researcher to be a reviewer of a submitted academic paper?

If I were asked to review a paper, under what circumstances would I be expected to decline out of a conflict of interest? Could I review a paper for someone...   I have collaborated with N years ago? Who I am currently collaborating with, but we have not yet published a paper together? Who is currently or was once in the same institution as I?


According to the tutorials, you're supposed to use $ to indicate LaTeX math, but the syntax is never mentioned anywhere.  Writing$$...math...$$ doesn't do anything, and neither does writing $\frac{1}{2}$. So how do you write math using LaTeX?  Note: I do think "The MathJax help link should point to a more specific guide", but that's not what I am asking here, I'm asking wether the format above is correct, and if not, what have I done wrong, because writing LaTeX on Mathematics Stack Exchange didn't work for me.  EDIT: After a couple of days LaTeX did eventually work for me, apparently, for some reason, my browser refused to show code at first. If possible, please do close this post.


What is the local6 (and all other local#) facilities in syslog?

What I understand  On *nix servers, we configure sending logs using facility.severity, where facility is the name of the (let's call it) "component" of the system, such as kernel, authentication, and so on; and severity is the "level" of each of the logs logged by a facility, such as info (informational), crit (critical) logs.  So, if I want to send kernel critical logs, I'll use kern.crit.  The combination of facility and severity is known as the priority, for example...   priority = kern.crit facility = kern severity = crit   Question  There are "facilities" called local0 to local7.  What in the world are these local# facilities? I'm asking specifically about local6, since it's usually the most common one I find in searches.  My question is actually because I'm configuring Snort (SourceFire Intrusion Sensor) to send logs, so I wanted to know which facility to use. My question is not Snort specific though, because local# facilities are everywhere; on Cisco and IBM's WebSphere Application Server for instance.  Research   , which is where the syslog protocol is defined, only says:  local6 - local use 6   Which doesn't really describe it, as opposed to:  auth   - security/authorization messages  In Ubuntu, man syslog shows:      LOG_LOCAL0 through LOG_LOCAL7                   reserved for local use   Also, vague.


I recently tried to install window 7, downgrading from windows 8 but the hard drive rejected the os, telling me that GPT hdd does not support win7. I was wondering if Ubuntu can be installed instead for now. Thank you


I need to write a title of a section that is a list of deals. The title could be "List of deals" but I prefer a more concise form. Since there are usually a lot of deals in the list is it correct to use a title like "Deals list" or should I write "Deal list"?


Do list except with two list of different classes instances

I want to compare two list with objects of two different classes. These are the classes:  namespace AngularWebApplication.Models {     public class AggregationLevelConfigurationPresentation     {         public byte AggregationLevelConfigurationId { get; set; }         public int ProductionOrderId { get; set; }         public string Name { get; set; }         [ ... ]     } }  public class AggregationLevelConfiguration : IEquatable<AggregationLevelConfiguration> {     public byte AggregationLevelConfigurationId { get; set; }     public int ProductionOrderId { get; set; }     public string Name { get; set; }     [ ... ] }   I want to get the elements in presentations list that are not in currentLevels:  List presentations; List currentLevels;  List<Models.AggregationLevelConfigurationPresentation> newLevels =     presentations         .Select(l => new { l.AggregationLevelConfigurationId, l.ProductionOrderId })         .Except(currentLevels.Select(l => new { l.AggregationLevelConfigurationId, l.ProductionOrderId }))         .ToList();   But I get the following error when I do the Except:  Error   CS0029  Cannot implicitly convert type  'System.Collections.Generic.List<<anonymous type: byte AggregationLevelConfigurationId, int ProductionOrderId>>' to  'System.Collections.Generic.List<AngularWebApplication.Models.AggregationLevelConfigurationPresentation>'   I think the problem is in the new { l.AggregationLevelConfigurationId, l.ProductionOrderId } but I don't know how to do the Except with list of objects from different classes.  I need the objects in presentations list that they aren't in currentLevels using AggregationLevelConfigurationId and ProductionOrderId as primary key.


No notification when question put on hold

I asked  on a SE site I'm not particularly familiar with, which got put on hold because part of the question asked for a product recommendation which is apparently off limits - fair enough, and silly me. No argument from me.  However, I got no notification - meaning here something in the 'inbox' or similar - it had been put on hold (I did get a notification for the one answer). Had I got a notification, I would simply have deleted the limb of the question (the recommendation) that was off-topic. It's a bit late now.  Related:  - that is slightly different as it would be good to know as soon as your question gets put on hold, not only after (I'm told) 6 days when it is finally closed. Though I would clearly support getting notified when it is closed too.  Is there a reason questioners do not get alerted if their question gets put on hold? I'm asking this on meta.SE as I suspect this issue is pervasive to all sites.


Why didn't the Wizengamot simply use Veritaserum on Harry to verify his claims?

In the beginning of the 5th book/ movie, Harry was charged for using underage magic in front of a muggle. Harry, in his defense, said that he had to use magic to fight Dementors. People laughed because they thought that a wizard of that age couldn't create a Patronus. Also, Dementors don't usually wander in muggle suburbs.  Why didn't court simply use Veritaserum (most powerful Truth Serum in existence) on Harry to know the truth? Wizengamot should have a stockpile of Veritaserum because it can be useful to it. Also, I don't think criminals can resist a Truth Serum, otherwise there's no point of their existence if we can't say with confidence that a subject under the influence of a Truth Serum is telling the truth.


listing package doesn't show - in R code

I'm trying to paste some R code into my latex file but when I use the listing package it fails to display the - next to the <. My latex file is as follows:  \documentclass[12pt]{article} \usepackage{listing}  \begin{document}     \begin{lstlisting}[language=R] ftn_deriv_1 <- function(x) { # Input: n-dimensional vector x0 # Output: n-dimensional vector x with first derivative  #of scalar function ftn(x) x1 <- 1/(x[1]*(1+x[2]))-log(x[2])/(1+x[1])^2; x2 <- -log(x[1])/(1+x[2])^2 + 1/(x[2]*(1+x[1])); y <- c(x1,x2); return(y); }  ftn_deriv_2 <- function(x) { # Input: n-dimensional vector x0 # Output: n by n matrix with second derivative of scalar function ftn(x) x11 <- -1/((1+x[2])*x[1]^2)+2*log(x[2])/(1+x[1])^3; x21 <- -1/(x[1]*(1+x[2])^2) -1/(x[2]*(1+x[1])^2); x12 <- -1/(x[1]*(1+x[2])^2) -1/(x[2]*(1+x[1])^2); x22 <- 2*log(x[1])/(1+x[2])^3 -1/((1+x[1])*x[2]^2); y <- matrix(c(x11,x21,x12,x22),2,2); return(y); } \end{lstlisting} \end{document}   When I compile this I get the following output:   As you can see the - does not show after the <. I am using TeXstudio version 2.11.2 for macboook. Any remedy for this?  Thanks in advance!


How to generate thumbnails when needed only?

I have 1000 images. How can i make wordpress to generate thumb only when needed. For example home slider will only use 10 images i dont want the other 1000 images have that thumbnail generated as its a waste of space and resources.  There is a way to fire add_image_size only when needed ?  Thanks  UPDATE As you mention is not really add_image_size what it needs to be fired. What it would be great is to fire the image resize when i use the_post_thumbnail('slider-thumb'); Maybe this slowdown the first view of the image but that view is usually generated by me when i actually review the post so i dont care.  So between my posts, slider, blog thumbnauls, portfolio thumbnails etc i got 1000 images and i want just 10 images to be resized for the slider i see a lot of wasted resources to generate the thumbnail size for the other 990 images.  Hope its clear now, sorry for my english


Is it possible to mathematically define a hypercomputer-universe where things that could not be computed by it could exist?

There are a few physicists that propose that the universe is a hypercomputer. One example is Roger Penrose, who, basing in his quantum interpretation () and in spin networks (), proposes that the universe is basically a giant hypercomputer.  But, since that universe would contain completely uncomputable things, doesn't that mean that these models don't assume computability? I mean, wouldn't that mean that literally every uncomputable thing could happen in these hypercomputer-universes? Even things that could not be "computed" by a hypercomputer?  In that case, then, is it possible to mathematically define a hypercomputer-universe where even things that could not be computed by that hypercomputer would exist? And if yes, wouldn't be the case that if we introduced/defined a trivialist system () in this hypercomputer-universe model (to produce/create or "simulate" a trivialist universe, or any other class of impossible world ()), then, every illogical/logically impossible things, even those illogical/logically impossible things could not be computed by a hypercomputer because they are logcially impossible or simply impossible to describe/conceive/compute, would certainly exist (in this hypercomputer-universe)?


Python call class method from iterable value in for loop

Say have a simple class as follows:  class Test:     some_attributes      def first_method():         pass      def second_method():         pass   Now lets say I have put the list of methods in a list like so: methods=['first_method', 'second_method']  The question that has perplexed me is: How can I call the methods using the list above in a for loop. The scheme I want is like this:  for method in methods:     Test.method   I have tried:  for method in methods:     'Test.{}'.formats(method)   and  for method in methods:     vars()['Test.{}'.formats(method)]   How can I achieve this concept?


Is this the first Winter Bash? And can one adjust the position of hats?

It's nice that SO offers this cute little feature called Winter Bash as you all might have notice.   I am only a new user so my question here is to the old timers:   Did you guys use to have something similar in this past Winters? Or is this the first time ever?  My another question here is: is it possible to submit a request for this feature, a feature that allows the user to at least drag and move around the Hat Image over one's profile picture a little bit as to adjust the hat position?  It would be nice, because some of the users I have seen with hats have their hats positioned in a way it covers the eyes or partially of them, which reminds me of Audrey Hepburn's Image in "Breakfast' at Tiffany's".  Happy Holidays to everyone.


Can I use Divine Intervention or Wish to regain Wish?

After reading this question on , I started wondering if there are ways for them to regain that ability.  I figured a Divine Intervention is probably strong enough as that is a god's power, as well as a second caster casting wish to undo the first wish (and thereby undoing its effects).  Are these valid ways of regaining the ability to cast wish?


Best way to return 1 of a few different strings

I have a design question. I'm writing a function in c++ that checks how a user installed my code, so either "app store", "web", "dvd". What is the best way to encode these? I imagine I don't literally want to return the strings, so should I use a #define for the three options and make them 0x01, 0x02, 0x03, or should I use an enum? Or some other option?


I'm trying to follow the following answer from the site:   I could do almost everything, but when I have to do the (spiral) loop cut the program doesn't allow me and I don't know why and in the answer there is no clarification of how it's done.     Additional info: Before I remove the screw (even after doing the knife intersect) I can do the spiral loop ring as the picture shows.  When I delete it I cannot do the spiral loop cut nor select the linked objects all the spiral with CTRL+L and I have to do it manually.


How to hard code value to property variable when instance of class is created?

I am specifically creating a simple To Do app in C#. I have a public property in my "Item" class called "DateTimeCreated". I would like the current date/time to be set at the moment the new "Item" is created. I removed the relevant mark-up from the Create and Edit cshtml pages as I don't wish for it to be created or edited, but rather stamped when an instance of the Item class is created. Part of my Item class I have... public DateTime DateTimeCreated { get { Return DateTimeCreated; } set { DateTime timeStamp = DateTime.now; DateTimeCreated = timeStamp; } }  I get no errors when running the app, but as soon as I click "Create" in order to submit the creation of a new "Item", the browser crashes. And if I change it to simply public DateTime DateTimeCreated { get; set; }  the browser doesn't crash but the value is the default DateTime.now value of 01/01/0001 01:02 or something to that effect Am I doing this right but need a tweak or is my approach all wrong?


Let $A$ be an $m\times n$ matrix and $B$ an $n\times m$ matrix. Show that  $$ |I_m-AB|=|I_n-BA|. $$  I don't know where to start.


How to replace Windows 7 with Ubuntu 12.04 in C drive without affecting other partitions

In my PC (2 GB RAM, 160 GB HDD) I have Windows 7 in Partition C  (20 GB). I have tried Ubuntu 12.04 from Live USB. I now want to replace Windows 7 with Ubuntu 12.04 in the same C Partition without affecting the other partitions and their contents. I have read the answer to a similar question but still do not feel confident. Like in that question, I too have proceeded till "Something Else", but then precisely what steps should I take? Is it possible to simply choose the C Partition and start installing Ubuntu there? In that case what other choices should I make?


pgftables: nodes near coords align depending on value?

The following code results in node labels overlapping the graph. How can I align them depending on the graph so that '1375' und '1574' are below the node and the others still above?  \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ nodes near coords, point meta=explicit, nodes near coords align={auto} ] \pgfplotstableread{ a  d 1   1557 2   1375 3   1722 4   1763 5   1574 6   1591 7   1563 }\datatable \addplot table[y = d, meta=d] from \datatable ; \end{axis} \end{tikzpicture} \end{document}


Since when did kidnapping come to include adults too?

As per , the word 'kidnap' originated to denote nabbing away of a child. When and how did kidnap come to denote nabbing of adults?  Update: Just found a link to a  that mentions kidnapping of souls. Now not sure how correct the above link is.


How do you insert with a reverse_iterator

I want to insert something into a STL list in C++, but I only have a reverse iterator. What is the usual way to accomplish this?  This works: (of course it does)  std::list<int> l; std::list<int>::iterator forward = l.begin(); l.insert(forward, 5);   This doesn't work: (what should I do instead?)  std::list<int> l; std::list<int>::reverse_iterator reverse = l.rbegin(); l.insert(reverse, 10);


I'm simulating the travel times of trucks moving between two points. The time it takes them to reach their destination is dependent on a few variable so it never the same. I need to compare the simulated travel times to historical data to show the simulation accurately portrays the real world system.   My question now is how many times do i need to repeat my simulation before I'm able to confidently say my simulation is able to represent the real world system?


What happens with checked luggage with an airport change?

I'm considering two Miami - Zürich flights, which connect at New York. Both start MIA - JFK, but one continues with JFK - ZRH and the other with LGA - ZRH.  If I check my luggage at Miami, and take a cab from JFK to LGA, will I have to carry my bags and re-check them at LGA, or does the airline do this?  The cost difference (two people) is ~120 USD total. How much is the taxi, normally? Is an airport change worth the hassle?


$f$ is entire without any zeros then there is an entire function $g$ such that $f=e^g$  What I think is since $f$ do not have any zero for some bounded domain, I can define a branch of logarithm $(\log f)$ on that domain which will gives my desired result $f =e^{\log f}$. I don't know if I am doing it right? If this is right I don't know how do I argue $(\log f)$ is entire. Hint please.


What is the difference between "Human brain" and "Human's brain"

Many times i get confused whether i should use 's with a noun or not. For example:   Engine parts or Engine's parts Human brain or Human's brain Wordpress plugin or Wordpress' plugin Computer program or Computer's program etc.   I want to know why and when we use one or the other. What do you call such a group of words? Is it a phrase? It should be noted that English is not my native language so pardon my ignorance.


When do I use have and have got?  Are "I have the answer" and "I've got the answer" both correct?


I'm just doing a basic topograph and the interpolate line tool does not work. The DEM is selected and I even made a hillshade to see if that would solve the problem. After I finish the line and double click the line disappears. There is no error message, just a sound as if I was clicking on the wrong window but there are no other windows open. I've restarted GIS, I've made a new map, I've changed where the topo data goes, I've deactivated and reactivated 3D analyst and I've changed the coordinate system to a new one and back to the original and it still does not work.


Ubuntu 12.04 update error:failed to fetch cd rom

I have been trying to update ubuntu 12.04 but each time i am getting the following error..can anyone help me.  W: Failed to fetch cdrom://Ubuntu 12.04.4 LTS _Precise Pangolin_ - Release amd64 (20140204)/dists/precise/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs


Is it possible to run a command in bash, and start another one based on the output of the 1st?

I created an alias  alias rubyserver='ruby -run -e httpd -- -p 5000 . && open localhost:5000'   so as to start up a web server and then open the page that is served by the server.  But the second command won't run until the first command is finished.  Is there a way to run the command, and then start running a second one, whenever the first one has outputted a certain string?    The second command must be able to see that the first command prints out WEBrick::HTTPServer#start, meaning the server is already running, and before starting.


From where does this semicolon come from?

I have added a comment to , and I noticed that my comment contains a semicolon.        I thought I added it by mistake, but the edit form doesn't show any semicolon.        From where does the semicolon come? It is not automatically added, as the other comments don't have it, and the dash character is already added at the end of the comment, and before the username of who posted the comment.


When Free shipping is available hide other shipping methods except Local pickup in WooCommerce 3.7

Using "" answer code, I would like to show Local pickup and free shipping when free shipping is available (hiding other shipping methods), but It does not work for me.   Where am I wrong?  I am using Wordpress Version 5.2.3 with Woocommerce Version 3.7.0…


Writing letters of recommendation for more than one student to the same department

Suppose multiple students have asked me for letters of recommendation to the same graduate department in the US. Am I expected to explicitly compare the students to one another? Am I supposed to do this in both letters (assuming they haven't been submitted yet)? Do I need to explicitly state a preference for one over the other, or can I just get away with listing relative strengths and weaknesses (for instance, "X is stronger academically, but Y has more research experience and is a stronger programmer")?


GDAL RasterizeLayer does not Burn All Polygons to Raster?

I am trying to burn a shapefile to a raster using GDAL's RasterizeLayer. I pre-create an area of interest raster from a different shapefile, given a specific pixel size. This AOI then serves as a base for all following rasterizations (same number of collumns and rows, same projection and geotransform).  The issue occurs, however, when I go to burn the shapes to their own raster, based on the same pixel size and projections. The link below (don't have enough rep to post the image), shows the original shapefile in tan, and the dark pink where RasterizeLayer has burned data. The light pink is nodata values for the dark pink raster data. The grey is the AOI based on which the shapefile burn was completed.  Given the extents of the shapefile polygons, I would expect to see burn values in the bottom two corners, as well as the two pixels underneath the data that does show. Obviously, however, this is not the case.    As follows is the code that I used to generate these. All of the shapes were created using QGIS, and were all created in the same projection.  (It should be noted that the gridding in the picture shown was just to give an idea of the pixel size I was using.)  from osgeo import ogr from osgeo import gdal  aoi_uri = 'AOI_Raster.tif' aoi_raster = gdal.Open(aoi_uri)  def new_raster_from_base(base, outputURI, format, nodata, datatype):      cols = base.RasterXSize     rows = base.RasterYSize     projection = base.GetProjection()     geotransform = base.GetGeoTransform()     bands = base.RasterCount      driver = gdal.GetDriverByName(format)      new_raster = driver.Create(str(outputURI), cols, rows, bands, datatype)     new_raster.SetProjection(projection)     new_raster.SetGeoTransform(geotransform)      for i in range(bands):         new_raster.GetRasterBand(i + 1).SetNoDataValue(nodata)         new_raster.GetRasterBand(i + 1).Fill(nodata)      return new_raster  shape_uri = 'activity_3.shp' shape_datasource = ogr.Open(shape_uri) shape_layer = shape_datasource.GetLayer()  raster_out = 'new_raster.tif'  raster_dataset = new_raster_from_base(aoi_raster, raster_out, 'GTiff',                                 -1, gdal.GDT_Int32) band = raster_dataset.GetRasterBand(1) nodata = band.GetNoDataValue()  band.Fill(nodata)  gdal.RasterizeLayer(raster_dataset, [1], shape_layer, burn_values=[1])   Is this a bug in GDAL, or is RasterizeLayer burning data based on something other than just the presence or lack of a polygon within a specified pixel area?  The files that I was using can be found .


How to delete windows partition from ubuntu

How do i delete windows partition from Ubuntu? I have the FBI virus on my windows partition and need to delete it from Ubuntu OS.


Let $U \subset \Bbb R^n$ and $f: U \to \Bbb R$ be a harmonic function. I wanna show that the partial derivatives of a harmonic function are harmonic. So for $g= \frac{\partial f}{\partial x_j}$, I wanna show that $\sum_i \frac{\partial^2 g}{\partial x_i^2}=0$. ( $j \in \{1, \dots , n\}$) I know that f is a function of class $C^2$ but than?   Thanks for your help.


Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException TreeMap

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at dacia.Principale.jButton10ActionPerformed(Principale.java:1204)     at dacia.Principale.access$500(Principale.java:44)   Code:     XSSFWorkbook wg= new XSSFWorkbook();     XSSFSheet sht=wg.createSheet();      TreeMap<String,Object[]> data= new TreeMap<>();   //  data.put("-1",new Object[]){"chasis","marque","couleur","nom client","date d entree","date sortie","telephone","numero WW","position","mode paiment","gamme","version"});     data.put("-1",new Object[]{jTable2.getColumnName(0),jTable2.getColumnName(1),jTable2.getColumnName(2),jTable2.getColumnName(3),jTable2.getColumnName(4),jTable2.getColumnName(5),jTable2.getColumnName(6),jTable2.getColumnName(7),jTable2.getColumnName(8),jTable2.getColumnName(9),jTable2.getColumnName(10),jTable2.getColumnName(11)});      for(int i=0;i<jTable2.getRowCount();i++)    {         data.put(Integer.toString(i),new Object[]{jTable2.getValueAt(i,0).toString(),jTable2.getValueAt(i,1).toString(),jTable2.getValueAt(i,2).toString(),jTable2.getValueAt(i,3).toString(),jTable2.getValueAt(i,4).toString(),jTable2.getValueAt(i,5).toString(),jTable2.getValueAt(i,6).toString(),jTable2.getValueAt(i,7).toString(),jTable2.getValueAt(i,8).toString(),jTable2.getValueAt(i,9).toString(),jTable2.getValueAt(i,10).toString(),jTable2.getValueAt(i,11).toString()});    }    //write to excel    Set <String> ids=data.keySet();    XSSFRow row ;    int roow=0 ;    for (String st : ids)    {        row=sht.createRow(roow++);        Object[] values=data.get(st);        int cellId=0 ;        for(Object o : values)        {            Cell cell=row.createCell(cellId++);            cell.setCellValue(o.toString());         }    }     try {         //write to file         FileOutputStream fos= new FileOutputStream(new File("/home/elprincipe/Desktop/dacia.xls"));         wg.write(fos);         fos.flush();         fos.close();      } catch (FileNotFoundException ex) {         Logger.getLogger(Principale.class.getName()).log(Level.SEVERE, null, ex);     } catch (IOException ex) {         Logger.getLogger(Principale.class.getName()).log(Level.SEVERE, null, ex);     }   The problem is in:     data.put(Integer.toString(i),new Object[]{jTable2.getValueAt(i,0).toString(),jTable2.getValueAt(i,1).toString(),jTable2.getValueAt(i,2).toString(),jTable2.getValueAt(i,3).toString(),jTable2.getValueAt(i,4).toString(),jTable2.getValueAt(i,5).toString(),jTable2.getValueAt(i,6).toString(),jTable2.getValueAt(i,7).toString(),jTable2.getValueAt(i,8).toString(),jTable2.getValueAt(i,9).toString(),jTable2.getValueAt(i,10).toString(),jTable2.getValueAt(i,11).toString()});


Uninstall Wine Windows Program Loader completely

I'm a new user of ubuntu and have messed up my system because of lack of information.   Few days back i tried to install WINE WINDOWS PROGRAM LOADER v1.8 on my laptop but during the download my pc got shut down and after that any command releated to wine gives me an error.   Now all i want to do is to completely uninstall it and everthing releated to wine.  I'm using ubuntu 16.04 LTS


Is there a word for when a logo uses an image for one or more of its letters?

There's a million examples of this, but the one that comes to mind is "smoke shop" with images of pipes in place of the "S"s, like this:     Is there a word for this? (It's not a rebus!)  I often see it in lazy or sometimes terrible graphic design. "Visual pun" comes close, but in many cases there doesn't seem to be any punning at all, or maybe they're just unfunny. In the worst cases, the word is rendered nearly incomprehensible or ambiguous.  More examples, all of which are fairly "punny". (I can't find any examples of the unfunny/downright-incomprehensible ones, sorry.)


I was double checking my notes for 'Virtual Memory' and the definition in my text book is:     Process of allocating a section of secondary storage to act as part of the main memory   Where as  says:     Virtual memory is a computer system technique which gives an application program the impression that it has contiguous working memory (an address space)   and (Wikipedia also says)     Note that "virtual memory" is more than just "using disk space to extend physical memory size"   Can anyone offer any clarification as to which is correct?


Name/Author of story of heart surgeon who corrects alligator hearts and makes dragons

There's an old ( Ancient?) story I recall from a collection, but not well enough to locate on Google ( It keeps giving me biographies of cardiac transplant surgeons ). A famous British IIRC surgeon pioneers corrective surgery for heart defects. the narrator of the tale, a close friend of the surgeon, points out to him that an alligators hearts could be thought of as "deformed" in ways when compared to other animals even among reptiles. The surgeon speculates if this could be a true mutation deformity and sets out to "correct" it surgically in a group of test subjects. The alligators survive, and like neotonous animals exposed to hormones, grow further, sprout wings, and literally become dragons. Anyone recognize the story?


Meaning of the proverb: "No man is an island entire of itself"

What's the meaning of the proverb "No man is an island entire of itself" by John Donne?


Why does `[b]` not work for a normal figure?

I am using  \begin{figure}[b] \centering     \includegraphics{bla.pdf}     \caption{bla} \end{figure}   I would like this figure to be at the bottom of this page, so I include [b]. For some reason, the figure is pushed to the end of the whole chapter, several pages further down. In addition, it takes along another picture (this one does not have any [b] or [t] or [h] specification, which then also appears at the end of the chapter....  Why is [b] not working?


I would like a certain cell of mine to display today's date when I starts a new row.   Is it possible?


Can I get the matrix determinant using Numpy?

I read in the manual of Numpy that there is function det(M) that can calculate the determinant. However, I can't find the det() method in Numpy.  By the way, I use Python 2.5. There should be no compatibility problems with Numpy.


Placing point over pixel with maximum value falling in grid overlay using QGIS

I have a raster layer with a Shapefile grid with cells measuring 3 x 3 m overlaid on top. All I want to do is find the pixel with the maximum value within each cell, and place a Shapefile point over that pixel such that each cell has a point. See figure below (excuse the poor job).  I've found Q&As that show how to identify the maximum values, but none that transform the query to a point explicitly. The point is that the points sit above the maximal pixel, not the cell centroid.


how to make a bootable usb for ubuntu 16.04

I want to use a 32g usb drive to install ubuntu 16.04 on my home lenovo. I am at my library because my lenovo cannot access internet.


I cannot align #container and its content in the center vertically. I thought adding further
 tags would be a problematic and I cannot control them.  I want the text and #container to be aligned in the center of .content vertically without adding any extra space.    #container {   display: grid;   padding: 20px;   grid-template-areas: 'sideone sideone sidetwo sidetwo sidethree sidethree';   grid-gap: 20px;   text-align: center; }  .content {   display: table;   margin: 15px;   height: 500px;   width: 100%;   transition-duration: 0.15s;   border: 2px solid #3B3B3B; }

あ - ა

い - ი

う - უ

え - ე

お - ო

か - კა

さ - სა

た - ტა

な - მა

は - ჰა

き - კი

し - ში

ち - ჩი

に - ნი

み - მი


When is stress-energy tensor defined as variation of action with respect to metric conserved?

In General Relativity Einstein's equation implies that stress-energy tensor on its RHS is conserved (has vanishing divergence), due to the Bianchi identity. Considering variational principles leading to Einstein's equation leads to conclusion that this stress tensor is equal to the variational derivative of full action with respect to the metric tensor. However, on several occasions I heard people stating that quite generally one can define stress tensor for a field theory in this way and it is automatically conserved. In flat spacetime and without any coupling to gravity! I wonder if this is true. I don't see a reason why it should be.


I would like your help with proving that for every  $0 \leq k \leq n$,      $$\binom{n}{k}^{-1}=(n+1)\int_{0}^{1}x^{k}(1-x)^{n-k}dx  . $$   I tried to integration by parts and to get a pattern or to use the binomial formula somehow, but it didn't go well.  Thanks a lot!


Difference between javascript:fnName() and normalfnname()

Can someone please explain the difference between:  onclick="javascript:fnName(this);"   ...and...  onclick="fnName(this);"   Is there any performance hit? or when to use what?


why does Ubuntu on my hp pavilion laptop's battery is draining very fast?

i have install ubuntu 14.04 on my hp pavilion laptop  initially when i was using windows 8.1 my battery use to be 2.30 hours to 3.00 hours  but when i installed ubuntu 14.04 it started draining very fast and now its work for 1.30 hours only when my battery is fully charged ? what is the reason ? and also my wifi signal strength has reduced from 5 point to 2 points? what might be the problem ? am i using incorrect drivers? if so then please send me the link of the driver which i must used  ?


So, I've got Skyrim downloaded and everything, my computer more than meets the requirements and when I go to press the play button on the startup window nothing happens.   I've updated my video card drivers, updated my firewall setting, and searched google for any related problems people are having with the game. The only thing that I can find is that people are having the game crash due to some sound problem.   Well, I would try some of the solutions to that problem but my game won't even start at all.  Any ideas?


I have a laptop running Ubuntu.  I also rent a VPS running Ubuntu.  I've bought a paid VPN-service, which I use on my laptop.  I was wondering how I can set-up a SSH-tunnel or something similar, from my laptop to the VPS I'm renting, so I then can run VPN (from my laptop) "through" it (to the VPS), to the VPN-server.  The reason I wish to do so, is that a place I often work blocks my VPN-service, but not my SSHing to my VPS...  While I have been using Linux for a while, I'm a novice when it comes to setting-up virtual network-devices, advanced routing, and so on... so please spoonfeed me (using small words and colorful pictures ;-)  I have been googling and looking at various answers on the StackExchange-network, but not seems to be exactly what I'm after.  SSH-tunneling seemed promising, but since I don't have/know an exact domain and port for my VPN, I couldn't figure out how to use it...  I guess I may need to set-up some virtual network-device on my laptop (which ends on the VPS), and connect VPN through it - but how to do this, sadly goes over my head.


I want to launch an exec file stored locally on remote machine (with the same architecture) by SSH.  I have written an Applescript and I have exported this as "File Format: Application". So if I want to launch this app from the Terminal I must write the following command line:  /path-to-the-script-folder/MyAppleScript.app/contents/macOS   There isn't problem so far.  I want to launch this command remotely trough SSH on another Mac. I have tried by the following command, but it doesn't work.  ssh hostname < /path-to-the-script-folder/MyAppleScript.app/contents/macOS   This is the error:  Pseudo-terminal will not be allocated because stdin is not a terminal.   I don't have problem with SSH. The connection between two machine is established trough a RSA-key, without password. I don't want copy the exec file on remote.


I use Google Webmaster tools to follow my website and I'm confused about search stats. For several months, the curve about search requests reached the limit on 3000 search by day. The curve never goes over 3000 search by day.  Does Google limits request per day for a small website? Can Webmaster Tools not show more than 3000 requests per day?


Old sf film: spaceship has detachable drill nose cone

This has been haunting me for mostly all my life, a film I saw as a child during the 70s. Can't tell if it was theater or TV.  I basically only remember the last scene of the film:  There is some form of deadlock between a human spaceship and another hostile one (aliens, other humans?). This spaceship has some form of drill as nose cone; which is detachable but has to have someone ride it.      Spoiler The deadlock is solved by some hero climbing into the drill pod and riding it into the hostile ship. I seem to recall his daughter was also on board and tries to dissuade him.    Edit(per comments) I'm almost sure it was a live action film.


I've heard many theories that Lelouch is alive or dead, and many find this as a religious issue, but i want to find out the truth already. Is he alive or dead? Many say in the original Japanese version Lelouch was the cart driver at the end, but this scene was later cut out. Others say Lelouch gained his father's code before he died so then he was immortal?? People claim that Nunnally seeing his memories is proof of this,but really? Is it? Please any proof i want, whether he is alive or dead...


If $x_0 = 5$ and $x_{n+1} = x_n + \frac {1}{x_n},$ show that $45<x_{1000}<45.1$ This problem is taken from the list submitted for the $1975$ Canadian Mathematics Olympiad (but not used on the actual exam). SOURCE : (Page Number 3 ; Question Number 162)  I tried writing out the first few terms : $x_1 = 5+ \frac{1}{5} $ $x_2 = \big(5+\frac{1}{5}\big) + \big(5+\frac{1}{5}\big)^{-1} = \frac{x_0^2 + 1}{x_0} +  \frac{x_0}{x_0^2 + 1} = \frac{(x_0^2 + 1)^2+x_0^2}{x_0(x_0^2+1)}$ $x_3 = \frac{(x_0^2 + 1)^2+x_0^2}{x_0(x_0^2+1)} + \frac{x_0(x_0^2+1)}{(x_0^2 + 1)^2+x_0^2} = Messy$ I tried a lot but could not find any general formula for the $n$th term. Does there even exist any? Also it is clear that $\big(x_n + \frac{1}{x_n}\big)$ is an increasing function. So I think sequence diverges, but how can the $1000th$ term be calculated or aprroximated? Any help would be gratefully acknowledged :).


Why is this website copying Stackoverflow's content?

Here's the original stackoverflow.com question:    and there's a website which copied my question & answer and posted it as someone else:    What the hell? Is it copyright legal and all? It's not me posting there lol and definitely it's not their "expert" answering that question...


Let $f,g: \mathbb{R} \to \mathbb{R}$ be continuous proper maps (i.e., $f^{-1}(K)$ is compact for all $K \subset \mathbb{R}$ compact). Is $fg$ proper?


Topbar reputation, votes cast, revisions and favorites user's summary seems to down to zero

Today I notice that even if all the statistics works well and updates correctly for me and other, user stats in the top bar were all down to 'zero'.  A picture will describe better the problem than words :    This is not correct, as you can see in my . Do you guys experiment the same or is it because stats have been initialized at the beginning of the month (and week). I've never noticed this before, however, maybe I've looked bad...


I'm new in Latex and I'm using MIKTeX. For writing equation in a template for a journal, I write the following:  \[S_{ij}=  \mathbb{G} \]   but I face this error:     Undefined control sequence. [S_{ij}= \mathbb   How could I fix that?  note: I have installed "amsfonts" and "amsmath".


My self-defrosting freezer appears to have gotten stuck in defrost mode for the past three weeks.  The internal temperature is around 25F rather than the ideal 0F, but nothing seems to have thawed.  Is the food still good to eat?  (The refrigerator compartment is also too warm, at 45F rather than 35F, but nothing in there is particularly heat-sensitive.)


How can I build a dynamic parameter list for mailx command in bash linux?

OS:  Red Hat Enterprise Linux Server release 5.11 (Tikanga)  I have a code sniplet:  !/usr/bin/env bash  v_mailx_parameter=""  v_cfg_email_adresse_to="john.doe_to@gmail.com" v_cfg_email_subject="Report from December 2016" v_tmp_email_text_name="Message Body"  v_email_main_file="appel orange.txt" # -> There is a SPACE in the file name!  v_tmp_path="/home/server/tmp/"  if [ ! -z "${v_email_main_file}" ]  then v_mailx_parameter="${v_mailx_parameter} -a \"${v_tmp_path}${v_email_main_file}\""                                                  /\                                                  ||          Here is the problem but I need this because of spaces in the name fi  echo -e "/bin/mailx ${v_mailx_parameter} -s \"${v_cfg_email_subject}\" \"${v_cfg_email_adresse_to}\""  cat ${v_tmp_email_text_name} | /bin/mailx ${v_mailx_parameter} -s "${v_cfg_email_subject}" "${v_cfg_email_adresse_to}"  exit   PROBLEM: I want to build up the parameters to the mailx command dynamically.  But I want to use the " double-quotes because there can be spaces in the file names.  Unfortunately the example above does not work... because the mailx takes the double-quotes as if they belong to the file name...and I get an error message.  I do not want to use the if else condition.. because I have many of files I need to send... I need a dynamic solution.  Maybe it is better to understand what my problem is:  It works in such a hardcoded way:  cat ${v_tmp_email_text_name} | /bin/mailx -a "/home/server/tmp/appel orange.txt" -s "${v_cfg_email_subject}" "${v_cfg_email_adresse_to}"   But so NOT:  v_mailx_parameter="-a \"${v_tmp_path}${v_email_main_file}\""  cat ${v_tmp_email_text_name} | /bin/mailx ${v_mailx_parameter} -s "${v_cfg_email_subject}" "${v_cfg_email_adresse_to}"   Thanks!


Is my proof ok? If $\sum u_n$ diverges then $\sum \frac {u_n} {u_1 + u_2 + \dots + u_n}$ also diverges

The question is :     If $\sum u_n$ is a divergent series of positive real numbers and $s_n = u_1 + u_2 + \dots + u_n$ , prove that the series $\sum \frac {u_n} {s_n}$ is divergent.   I tried my best. But I failed. Please help me by giving me a hint. Thank you in advance.  My solution :  Let $\{t_n\}$ be the sequence of partial sums of the series $\sum \frac {u_n} {u_1 +u_2 + \dots +u_n}$. Let $s_n=u_1 +u_2+ \dots +u_n$. If we can prove that $\{t_n\}$ is not Cauchy then our purpose will be served. For this we have to show that $\exists \epsilon>0$ such that $\forall n \in \mathbb N, \exists p \in \mathbb N$ for which $t_{n+p}-t_n \geq \epsilon$. Now since $\sum u_n$ is divergent, then so is $\{s_n\}$. Hence $\forall n \in \mathbb N, \exists q \in \mathbb N$ such that $s_{n+q}>2s_n$.  Now, $t_{n+q}-t_n= \frac {u_{n+1}} {s_{n+1}} + \frac {u_{n+2}} {s_{n+2}} + \dots + \frac {u_{n+q}} {s_{n+q}} > \frac {u_{n+1} +u_{n+2}+\dots +u_{n+q}} {s_n} > \frac {s_{n+q} -s_n} {s_n} >1$ which proves that $\{t_n\}$ is not a Cauchy sequence, hence the series $\sum \frac {a_n} {s_n}$ is divergent.


Webmin Unable to correct problems, you have held broken packages

I tried to install webmin to my 18.04 erver. i folloved  's method.  When i did   sudo apt install webmin   The outpu was like:     Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  webmin : Depends: libauthen-pam-perl but it is not installable           Depends: apt-show-versions but it is not installable E: Unable to correct problems, you have held broken packages.   Thank you all your answes, Peter


Experiencing major issues on graphic displays

Since installing Ubuntu 12.04, I am experiencing low performance on graphic programs, including video playbacks, etc.   As I have checked the intel driver of mine is already at its latest version. It's really occuring meanwhile playback of videos or web-flash videos (youtube, etc) OS is being logged out automatically and just display an error reporting of Xorg windows for me. I can not actually playback hd videos with the normal frame rate as well. here are some initiation of my graphic card details :  *-display:0                 description: VGA compatible controller    product: Mobile 4 Series Chipset Integrated Graphics Controller    vendor: Intel Corporation    physical id: 2    bus info: pci@0000:00:02.0    version: 07    width: 64 bits    clock: 33MHz    capabilities: msi pm vga_controller bus_master cap_list rom    configuration: driver=i915 latency=0    resources: irq:45 memory:f6c00000-f6ffffff memory:e0000000-efffffff ioport:efe8(size=8) *-display:1 UNCLAIMED    description: Display controller    product: Mobile 4 Series Chipset Integrated Graphics Controller    vendor: Intel Corporation    physical id: 2.1    bus info: pci@0000:00:02.1    version: 07    width: 64 bits    clock: 33MHz    capabilities: pm bus_master cap_list    configuration: latency=0    resources: memory:f6b00000-f6bfffff   and the intel model:  00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07) 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07) 00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)   Edited: A little more information :  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.3 LTS Release:    12.04 Codename:   precise   Username Info:  Linux amir-laptop 3.2.0-53-generic-pae #81-Ubuntu SMP Thu Aug 22 21:23:47 UTC 2013 i686 i686 i386 GNU/Linux   Xorg info :  ii  xserver-xorg-video-intel               2:2.17.0-1ubuntu4.4                       X.Org X server -- Intel i8xx, i9xx display driver


In Star Trek canon, what's the range of operation of Transporters?

By "range of operation" of the transporter, I mean "distance up to which it could transport" or "distance from which it could transport something to its own location". The range of operation would have increased with time without a doubt but I want to know the average range at any period. It'll be better if you provide full stats of all times.


In august 2015, I have upgrade my laptop from windows 8.1 to windows 10. But it spends always 10 minutes to boot it. It is not normal that it spends so long. What can I do for boot him faster? Below some information about my laptop.   age: +/- 2 year (on august 2015) edition: Windows 10 Home   File trace are removed.  Update:    I must also say that always there comes a windows update, I have the same problem again form slow booting. Is it good that I turn off the updates? If yes, how can I do that? Also it is in periods that my pc booting to slow. Some time it is like normal (a few seconds) and other times a few minutes. I don't know how it comes that it is fast or slow.


I am trying to make a 4x5 table with the following code.  \begin{tabular}{| c | c | c | c | c |}     \hline       K(1,1) & K(1,2) & K(1,3) & $\cdots$ & K(1,m) \\ \hline       K(2,1) & K(2,2) & K(2,3) & $\cdots$ & K(2,m) \\ \hline       $\cdots$ & $\cdots$ & $\cdots$ & $\cdots$ & $\cdots$ \\ \hline       K(m,1) & K(m,2) & K(m,3) & $\cdots$ & K(m,m) \\ \hline       \label{Example} \end{tabular}   For some reason, I get an extra cell at the bottom as shown in the picture.


I am trying to write a  c program for sipral matrix in 2D array. which output should be as follows.I have done coding of matrix output but cannot do the output of Spiral Matrix. I can no find out the fault in my program. Please help  Output  The Given Matrix:   3 6 3 8 4 7 1 9 3 8 2 7 5 2 9 8   Output of Helically Traverse:  3 6 3 8 9 7 8 9 2 5 3 4 7 1 2 8   Code      #include<stdio.h> int main() {    int row = 0, //top most row      b =row-1,  // bottom  row      col= 0,    // left most column      r = col-1, // right column      size = 0,      matrix[10][10],      i;     int dir;  printf("\n Size of Matrix: "); // enter the size of Matrix// scanf("%d", &size);   printf("\n  Enter Matrix Elements: \n");  // Enter Matrix Element// for(row=0;row<size;row++)    // looping for enter row// {     for(col=0;col<size;col++)  // looping for enter column//     {         printf("    Element [%d][%d] :", row,col); // print output of element. say  Element[1][0]=  //         scanf("%d" , &matrix[row][col]); // input matrix element //     }     printf("\n"); }  printf("\n the given Matrix is :\n"); // print output of given Matrix //      for(row=0;row<size;row++) // looping for row//     {         for(col=0;col<size;col++) // looping for column//         {             printf("%4d",matrix[row][col]); //output of matrix//         }         printf("\n");     }      printf("output of helical traverse matrix is: \n");      while(col<=r && row<=b) //condition exist if left column<= right column && Topmost row<= bottom row.I set four direction. dir =0 for left to right , dir=1 for top to bottom, dir 2 for right to left, dir 4 for bottom to top.//     {         if(dir==0){             for(i=col;i<=r;i++){                  printf("%4d",matrix[row][i]); //print out 3 6 3 8//             }                 row++;  //increase top row .so now 2 nd row become the top most row//              }          else if(dir==1){             for(i=row;i<=b;i++){      // looping for print output 9 7 8                  printf("%4d",matrix[i][col-1]);              }                  r--; //decrease left column. so now 2nd column from the right becomes the right most column//          }         else if(dir==2)         {             for(i=r;i>=col;i--){ //looping for print output of 9 2 5//                  printf("%4d",matrix[b][i]);             }                  b--; //decerase bottom row. so now 2 nd row from bottom becomes the bottom row.//          }         else if(dir==3)         {             for(i=b;i>=row;i--){ //looping for print out 3 4//                  printf("%4d",matrix[i][col]);             }                 col++; //icrease left column. so now 2nd column from left becomes left most column//          }         dir=(dir+1)%4;     }        return 0; }


Internal Server Error on Twilio Component to Send Bulk SMS to Campaign Members

We have installed Twilio App for Salesforce and configured it. The 1 to 1 Contact message is working fine, while Bulk SMS to Campaign Member is showing Internal Server error as below:  Error ID: 1754947416-96315 (119852647)  Checked debuglog too but didn't find anything.


Illustrator - Problem with Vector Graphics when I resize it

I got this problem when I shrink an object that I have created by minus a text (appearance expanded) from an ellipse.    Scaling to a smaller size    The error happened  This makes me confused. All the path is distorted. I have checked all the things before ask you guys about this. Before scaling, everything is okay and no distortion has been found, I have changed to the Outline mode and nothing is strange.  Thanks if you can help me fix this <3 PS: I'm not a native English speaker so I think there will be some grammatical and spelling errors, sorry for that!


How to measure the degree of nonlinearity in regression model

Could anyone guide me on how can we measure the curvature of nonlinear models?  I have to know the methodology to measure nonlinearity (both intrinsic and parametric) for nonlinear regression model. For example, if we have the nonlinear model y = f(x)+e  then how we can say which type of nonlinearity  exists and what is the degree/amount of nonlinearity in the given model?


The answer referenced is  and is essential for this question.  In the given answer, it shows how you can easily make directed edges between specified nodes.  I was wondering how I could do the same but with undirected edges (lines with no arrows).  Edit:  I appreciate the linked duplicate, and I used Jake's comment to the main post of adding [-] to edge for typical edges. However, this does not work for self-loops, and fixing that is not in the linked solution.


Finding a bound on an unpleasant recurrence relation

I'm trying to solve a recursion problem using the substitution method, but I'm having some issues. The recursion in question is $T(n) = \sqrt{n}T(\sqrt{n}) + \sqrt{n}$, and I've been asked to compute a upper bound tighter than $O(n\log(n))$ for the running time by making a recursion tree and guessing a bound from it. Constructing a tree was no issue, but I ran into a problem because the root layer contributes $n^{1/2}$, the next one $n^{3/4}$, the one after that $n^{7/8}$, etc. I have no idea how to make an educated guess from that series. I then tried to do an induction proof that $O(n)$ was an upper bound (which was just a random guess), by assuming $T(n) \leq cn - d$ for some constant $d$. This seemed to work with $d=1$. $ p(n) \leq \sqrt{n}c(\sqrt{n}-d) + \sqrt{n} = cn - cd\sqrt{n} + \sqrt{n} = cn - (cd-1)\sqrt{n} $ If we pick $d=1$, we get that $p(n)\leq cn - (c-1)\sqrt{n} \leq cn-1$ for sufficiently large $c$, as desired. I'd like to know both how to make a proper guess via a recursion tree in this case, and whether or not my induction is correct.


The use of ‘and’ after ‘where’ in a mathematical statement

Which of the following is correct:    ... where c is a constant, f(.) is a monotonic function, x and y are random variable.  ... where c is a constant, f(.) is a monotonic function and x and y are random variable.    This always gets me confused. Because x and y are of one kind (I don’t know if that is the proper word) and there should be an ‘and’ in between, but I’m not about whether not I should write an ‘and’ before the phrase too because it is the last item in a list (I mean it’s like saying: I bought apples, oranges, and bananas.).


linux noob here. Been trying to setup git and having some difficulty setting up a repository and linking it to git hub. But that is another issue. while trying to figure this out I used the following commands one after another at various times to try and install the correct packages I need  apt-get install git apt-get install git-core   and finally  apt-get install git-all   While running the last command I received the following error   E: Sub-process /usr/bin/dpkg returned an error code (1)   I have searched the site to try and find a solution but it seems to be case dependent so I ran  sudo apt-get install -f   and got the following output  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer     required: linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers- 4.4.0-38 linux-headers-4.4.0-38-generic linux-image-4.4.0-31-generic linux-image-4.4.0-38-generic linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-38-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket  /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure): subprocess installed post-installation script returned error exit  status 1 dpkg: dependency problems prevent configuration of git-daemon-run: git-daemon-run depends on runit; however: Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates it a followup error from a previous failure. Errors were encountered while processing: runit git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   Can someone tell me which file is causing the error and how I can fix it. Also some details as to why this happens or any useful info would be greatly appreciated. Thanks


Creating System-Wide Keyboard Shortcut To Launch Applications

I recently switched from Ubuntu, and I was feeling very comfortable with using Ctrl + Alt + T to launch terminal. Can I assign Shift + Cmd + T to do the same thing in Yosemite? Specifically, I want a new terminal window to be opened.


What was the origin of Star Trek's Borg?

Was there any explanation of the origin of the Borg from Star Trek?  I've seen most of the TV shows but not read any books - is it explained there?


YouTube now has live video. How do I set that up for myself? I can't find information about live streaming anywhere.


Let $K$ be a splitting field of a polynomial over $\mathbb{Q}$. Suppose $K$ contains an $n$th root of some number $a$. Then how can we show that $K$ contains all the $n$th roots of unity?  I don't really see any relation between $\sqrt[n]{a}$ and the $n$th roots of unity. Knowing that the former is in $K$ doesn't seem to imply anything about the latter.


Limit of product with unbounded sequence $\lim_{n\to\infty} \sqrt{n}(\sqrt[n]{n}-1)=0$

I have to show that  $\lim_{n\to\infty} \sqrt{n}(\sqrt[n]{n}-1)=0$  We proofed that   $\lim_{n\to\infty} \sqrt[n]{n}=1$  My problem is, that I do not know how to solve that.   That $\lim_{n\to\infty}(\sqrt[n]{n}-1)=0$ is clear. But $\lim_{n\to\infty} \sqrt{n}$ is not bounded.  So I can not simply calculate:  $\lim_{n\to\infty}\sqrt{n}\cdot \lim_{n\to\infty}(\sqrt[n]{n}-1)$  right?  I would be thankfull for every hint. :-)


Purpose of the * operator in builtin zip function?

This seems to be a good way to get the transpose of a matrix. But I'm not sure what exactly is happening when the * operator is invoked. Can someone unpack that?   >>> zip(*[[1,2,3], [4,5,6]])  [(1,4), (2,5), (3,6)]


If $(ab)^3=a^3 b^3$, prove that the group $G$ is abelian.

If in a group $G$, $(ab)^3=a^3 b^3$ for all $a,b\in G$, amd the $3$ does not divide $o(G)$, prove that $G$ is abelian.  I interpreted the fact that $3$ does not divide $o(G)$ as saying $(ab)^3\neq e$, where $e$ is the identity of the group.   As for proving $ab=ba$, I did not get anywhere useful. I got the relation $(ba)^2=a^2 b^2$, but could not proceed beyond that. I got a lot of other relations too which I could not exploit- like $a^2 b^3=b^3 a^2$  A helpful hint instead of a solution would be great!  Thanks in advance!


My Nether Portal keeps spawning a new one when i go back from the Nether

So, I'm on my friends Realm and we're trying to make a Nether hub, which we did in a previous Realm about a year ago (hers expired and didn't get a new one). She built up a portal that's 5 across, and 6 up and lighted it. She jumped through and then came back, so she could start getting coordinates of my portal so she could make one in the Nether that would make you go directly from there to my portal in the Overworld. Now, here's the problem: She came out of the portal, and ended up in a new place. I went through my own portal, then back, and ended up coming out of the same portal she went through coming back. She had to go, so I destroyed the portal that we kept coming out of. Then, I went through the big portal she made and then back, and it spawned another portal again. Both portals are close to the big portal she made, but we're still confused on why it keeps spawning new portals and not letting us come back through the one we already made.


How do I prefill a paragraph field in a node form?

I have a content type with a paragraph entity reference field and every time a user is going to add a node of this type I want to have the paragraph field already open and prefilled. I've tried with hook_form_alter, but it's not opening the paragraph form with prefilled values.


I want to be more up to date with current events and ideas in SQA. I was wondering if anyone could offer any suggestions for Software Testing Blogs.


export map state as JSON: Web_Map_as_JSON

Is there a way to export the current map state as a JSON object, mostly named Web_Map_as_JSON.  The JSON specification should be like .   In other words, it would be convenient to have a function for the Map object, like myMap.Web_Map_as_JSON() that would provide the current state of the MAP.


How do you do "inline functions" in C#? I don't think I understand the concept. Are they like anonymous methods? Like lambda functions?  Note: The answers almost entirely deal with the ability to , i.e. "a manual or compiler optimization that replaces a function call site with the body of the callee." If you are interested in , see  or .


Email follow-up for careers invitation has inconsistent expiration days

I just wanted to point out a small bug in one of your system emails.  I was invited to join Stack Overflow Careers, and I received the following email (emphasis mine):  =======================  "We noticed you have not accepted our invitation to join Stack Overflow Careers. Only 3 days remain before it expires, and we’d love to have you. In case you missed the invitation, or never got it, here it is again:  ...  But please act soon: this invitation expires in 14 days, so sign up now!"  =======================  So which is it? 3 days or 14 days?  I think somebody forgot to drop in a dynamic value in the second instance! Hope this helps!


In The Shining, how did Jack make it out of the food storage locker? Earlier, Wendy locked him in. Delbert Grady is an evil spirit roaming the Overlook Hotel. If Delbert Grady is only an evil spirit, how did Jack Torrence get out?


How to make Ubuntu forget the install state of a package?

I've a problem with a few packages that I've installed from the repositories in the past. However now I prefer to compile them myself because this makes it possible to use the newest version. Unfortunately Ubuntu remembers that once those packages have been installed from a repository so I get update reminders about 'new' versions in the repository even though those are older than my current version. How can I make Ubuntu to forget that those packages were installed from the repository?


I was having a lot of trouble installing iOS 9.3 on an iPad Air and after a bit of searching around I was advised to delete the update file and try to reinstall.   Having done this, I no longer have the option to try again. When I check for a software update I am notified that I am 'up to date' with 9.2.1  How do I get back the option to upgrade to 9.3?  Any help is much appreciated.


JS and regex: replace all img by their [src]?

My goal is to replace all  tags by [src] only  hello  hello       world  hello2   by   [https://media2.giphy.com/media/zU4MLqeDvGA0M/100.gif] [https://media2.giphy.com/media/zU4MLqeDvGA0M/100.gif]     (My regex works fine ONLY where there is a line between the 2 images. It looks like it is greedy)  Any idea ?


“Your system has run out of application memory.” Springboard leak?

I have a problem with system run out of application memory last days. All my applications are frozen after the system message, and the only way to work again is to make a cold reboot with button.   I didn't install any new software, and Springboard is acting like crazy (I think it's the main source of leak since I am able to force Springboard to quit in Activity Monitor and somehow I can use my Macbook Pro for a few minutes after that).    I have 360GB available on my system disk and 16GB RAM. MacOS Sierra, 10.12.6.  Does anyone have this issue, and how did you solve it?


The Close Review Queue is not pleasant. Jumped in as soon has hitting 3000. Failed two audits yesterday, and now I've managed to fat-mouse a Leave Open on this:   In addition to taking a circuitous route in the future, is there anything I can do to take back the "Leave Open"?  I see I have 50 Close Votes. To use those on the Review Queue I estimate would take at least three hours. The idea of thousands of >3k zooming in and killing the queue in a short period of time is, I think, not a flyer.


Gravity causes anything with energy to accelerate toward the source. Black holes, for example, have such strong gravity that they pull in light and don't let any escape. But can acceleration still apply to light? The speed of light is constant, of course, but why are photons affected by gravity yet aren't accelerated by it?  Edit: My main question is why photons aren't affected in the same way as most other particles. I'm perfectly aware that it cannot surpass lightspeed, but I want to know what makes it unaffected by acceleration while other particles are affected.


Why can two (or more) electric field lines never cross?

The the title is self explanatory, I guess.  Why can two (or more) electric  never cross?


I want to insert a command button called Edit in my view page. All fields are in output mode, and when I click on the Edit button I want to type on them or make changes. (In my Scenario inlineEdit does not work). Can anybody please help me. Thanks


I am confused about when to use Static variables/methods and exactly what they do. I know Static means that the variable or method becomes a part of the class and not an instance, but when do we use this? Also, if a variable is static, does that mean it is immutable like a final variable? Basically what is the use of Static?


Is there a word/idiom/proverb for this Hindi phrase?

I'd like to know if there is anything for this in English which is roughly:      Shoot many arrows, one will fit.    I am from India and we have an idiom dedicated to it in Hindi but I, literally, searched the whole internet but failed to get anything similar in English. It can meaningfully be said as:      Try every option available, one will surely succeed.    Do you have any magical idiom/proverb or magic word for it that Google is trying to hide from me?


When is logistic regression minimizing under squared error loss the same as maximizing binomial likelihood?

Implementing logistic regression and getting different results depending on whether I minimize squared error or maximize log likelihood.  When are the two equivalent?


Where to force Catalina upgrade and not Big sur upgrade from Mojave?

The  from  is not working. Apple try to force us to upgrade to Big Sur everywhere. Where do we find the Catalina upgrade link ?  Thanks


I am writing a code which reads the following input  3 Ruby Diamond Sapphire   Here is my program   import java.util.Scanner;  public class GemStones {      private int numOfStones;     private String[] gemArray;      public void solve() throws Exception{          Scanner in = new Scanner(System.in);          //Reading the integer         numOfStones = Integer.parseInt(in.nextLine());         //in.nextLine();         System.out.println(numOfStones);           //reading the strings         for(int i=0;i<numOfStones;i++){             gemArray[i] = in.nextLine();             System.out.println(gemArray[i]);         }           for(int i=0;i<numOfStones;i++){             System.out.println(gemArray[i]);         }         in.close();     }       public static void main(String[] args) throws Exception {         GemStones check = new GemStones();         check.solve();       }  }   I have a problem reading the strings following it. Whenever I try to read the strings it shows me error! please help me..  The following is the error I get in the console  3 Ruby Diamond Sapphire3Exception in thread "main"  java.lang.NullPointerException     at com.sudarabisheck.easy.GemStones.solve(GemStones.java:23)     at com.sudarabisheck.easy.GemStones.main(GemStones.java:37)


Ubuntu 18.10 set hot key for change language

I try to set a hotkey for change language, but when I press buttons nothing happens.    I tried to use gnome-tweaks, and this solved problem, but into my text editor stop working multiple hotkeys(Three and more keys).


Self-installed Chinese languages in language bar remain despite deleting their registry keys

My Windows 10 had suddenly entries of three Chinese languages in the language bar, without me having them installed.  They are not present in the keyboard layout, so I cannot uninstall them.  The culprit may be related to MS Word because in its proofing language section, Chinese(Taiwan) has appeared without me having installed it.  However, this may just be a side effect of other system options because in the MS Word language options, Chinese does not appear.  I have seen  and  old thread but I am not able to translate the suggested solutions into a Win10 environment. I was neither able to locate the mentioned registry keys nor the Office 2010 installed IMEs in the corresponding Microsoft Word 365 environment. I installed Chinese/Taiwan as a language option via Windows display language - it appeared as a fourth Chinese language entry in the language bar, so uninstalling it afterward, did not solve the problem. , alas it is not. The first method of the supposed duplicate answer does not work, as I explained because the Chinese languages are not listed as language options. The second method looked promising. Indeed, under HKEY_CURRENT_USER\Keyboard Layout\Preload (but not in the other three mentioned registries) were three Chinese keyboard codes listed. I deleted them and restarted. The Chinese keys are now deleted...  but the three Chinese entries still exist in the language bar.  While scrutinizing the options in Setting, I noticed that the languages are also mentioned under advanced keyboard settings but you can only change here their hotkeys.


Show that if $a$ has order $3\bmod p$ then $a+1$  has order $6\bmod p$. I know I am supposed to use primitive roots but I think this is where I am getting caught up. The definition of primitive root is "if $a$ is a least residue and the order of $a\bmod p$ is $\phi(m)$ then $a$ is a primitive root of $m$. But I really am not sure how to use this to my advantage in solving anything.  Thanks!


I'm from Mexico and planning a trip to Japan, and so me is a few thousand dollars cheaper and way faster to do it from LAX, than from my own country. I do have an American Visa B-2 type (Tourist).  What problems could there be regarding my situation?  and Are there any extra steps in me taking an international flight within the US as a foreigner? Thank you so much in advance, I really don't want to have an issue and have never done a flight like so.


I use this extension called Website Blocker to discourage me from checking Gmail/Reddit. However, it is easy and tempting to open a New Incognito Window; since extensions are disabled in Incognito Mode, I'm still able to browse Gmail/Reddit while in Incognito.  Is there any way to disable Chrome's Incognito Mode in Ubuntu? Ideally, this would encourage me to use my smartphone as a dedicated Gmail/Reddit checker.


Sometimes a "real" random event seems unfair and makes players frustrated. For instance a enemy has probability of 20% to cause double damage("critical hit"). Thus he could make 4 critical hits in a row with 1/725 probability. It's not as small as it sounds.  I hope the probability could be adjusted after each hit. If the player just got a critical hit, the probability decreases for the next hit. Otherwise it increases.  Is there a mathematical model for this behaviour?


Vivillon's Pattern 3DS Locations - Who do I need to trade with?

According to 's Pokedex Entry, they have different wing patterns depending on their original location in the world:     Vivillon with many different patterns are found all over the world. These patterns are affected by the climate of their habitat   So I've been doing some research, and it seems the pattern is determined by the real-world location of the 3DS in which  was first caught, in some countries down to individual states/regions.  This seems to have exploded on  and , but as of yet I cannot find a definitive source of the possible variations, and their locations.  So, What are the locations I need to trade with in order to get all the different patterns?


I had Ubuntu 10.10 running on my PC for a long time, and I was quite happy with the desktop performance (i.e. almost no lag while moving windows or shortcuts like alt+tab andctrl+alt+t all was so fast even when there is an installation or file copy/paste.  But now I have installed Ubuntu 14.04, and the new desktop environment is very user-friendly and nice looking, but the speed has gone.   I think after a certain version (11?), when the left sidebar (launcher?) arrived, this lag existed on my computer. So I think I want to reduce visual quality in exchange for speed.  So -how- can I get the simple desktop as in 10.10 back?    P.S. A few years ago, I tried something with Ubuntu 11. Changing the desktop environment to GNOME I think. But it was causing a lot of problems (like in Compiz), so I would prefer a safe solution, if possible :)  Thanks for any help!


I recently partitioned my hard drive which was running on Ubuntu 14.04LTS, using a USB flash. Then I installed Windows7 on the new partition. Now I cannot find the Ubuntu OS. I expected at startup to be given the option of running either Ubuntu or Windows7 but I found that Windows just runs by default. Any suggestions on what I can do to resurrect the Ubuntu?


Given this set: $$ S=\left\{\begin{bmatrix}a&-b\\b&a\end{bmatrix}\middle|\,a,b\in\Bbb R\right\} $$ Part I:  Why is this set equivalent to the set of all complex numbers a+bi (when both are under multiplication?) There is one matrix that corresponds to a specific complex number. Can this example be found and how can it be demonstrated to give equivalent answers?  Part II:  What is a formula for the multiplicative inverse of the matrix shown in the set, using knowledge on inverses of complex numbers?


Java: Collection.sort() vs Sorted Set vs PriorityQueue

I have the following structures: list of lists of MyObject,  and comparator that compares 2 MyObjects  The task is to get up to N lesser objects from the list.   The problem may be solved by several ways:   To put all elements in one new list and to sort it using  Collections.sort() or Arrays.parallelSort() To put all elements into ProirityQueue and then retrive N top elements To put all elements in SortedSet (TreeSet) and retrieve needed elements  using iterator   I don't know wich way to choice. The creteria is performance. The size of "internal list" is about 20 elements and "outer" list size is about 10


How can you printf or echo the contents of your clipboard?

Alternatively, how can you dump the contents of your clipboard to a text file? If at all possible, I'd like this for the actual clipboard, but also the clipboard delegated to highlighted text, and even vim's if you can manage it.  I figure if you can at least echo it, then you should be able to > into a file pretty easily.


A word used to describe someone who loves to be photographed

I am trying to figure out if there is a word to describe a person who loves to be photographed.


Where can I find the Impact Factor for a given journal?

As from title. Not all journals provide the impact factor on their homepage. For those who don't where can I find their impact factor ?


Function whose third derivative is itself.

I'm looking for a function $f$, whose third derivative is $f$ itself, while the first derivative isn't.  Is there any such function? Which one(s)? If not, how can we prove that there is none?  Notes:   $x\longmapsto c\cdot e^x, c \in R$ are the functions whose derivative is itself. $x\longmapsto \cosh(x)={e^x+e^{-x}\over 2}$ and $x\longmapsto \sinh(x)={e^x-e^{-x}\over 2}$ have their second derivatives equal to themselves. $x\longmapsto f(x)$, has its third derivative equal to itself. $x\longmapsto \cos(x)$ and $x\longmapsto \sin(x)$ have their fourth derivatives equal to themselves.


Conflicting p-values of regressors in simple regression vs multiple regression?

Consider the results of the following code. x_cm = 3*rnorm(100,50,3) x_in = x_cm/2.5 + rnorm(100,0,0.1); y = x_cm + rnorm(100,0,4)  mod <- lm(y ~ x_cm); summary(mod) mod <- lm(y ~ x_in); summary(mod) mod <- lm(y ~ x_in + x_cm); summary(mod)  The p-values given for $x_\text{cm}$ and $x_\text{in}$ are extremely small when we look at $y$ regressed on each of those predictors, individually, e.g. they are <2e-16. This indicates that we have a statistically significant result that the associated regression coefficients $\beta_\text{cm}$ and $\beta_\text{in}$ are non-zero. However, when we perform a regression of $y$ on both of these variables simultaneously, and check their individual p-values in the summary, these p-values are now very large: 0.547 and 0.975 (although the p-value for the F-test is very small ?). This indicates that we have a statistically insignificant result that the regression coefficients $\beta_\text{cm}$ are $\beta_\text{in}$ are non-zero. These two results regarding the hypotheses that the regression coefficients are non-zero are in direct conflict with each other. Why is that when we look at the individual p-values after performing a multiple regression, that we have statistically insignificant results? Why are the individual p-values in multiple regression not the same as p-values obtained by performing two separate simple regressions? While I am already aware of issues with p-values in statistical inference, e.g. p-hacking and data snooping, the phenomenon observed in this simple example makes it seems like we cannot trust p-values at all when it comes to multiple regression, is that in fact the case? It seems like the results from the multiple regression case tell us that $x_\text{cm}$ and $x_\text{in}$ are not useful in our model, due to the insignificant p-value and thus our conclusion should be that these variables can't be used to predict $y$. But of course they can be used to predict $y$, since $y$ was directly generated by $x_\text{cm}$ and $x_\text{in}$ is highly correlated with $x_\text{cm}$ so it could also be used to predict $y$. Finally, when I perform a multiple regression in general and I get large p-values for some coefficients, how should I interpret this situation and what should be my next steps?


DXF export in QGIS giving hatches instead of polylines

I am new to QGIS, and using QGIS 2.0.1.   I'm having a problem when saving as .dxf. I export a building layer (polygons) as a .dxf file However in AutoCAD it turns up as a hatch instead of as a closed polyline which is what I'm looking for. I can of course recreate the boundary in AutoCAD, but I would rather just save the data correctly in QGIS.  Can anyone help?


We have merely just had a kick off meeting for a new project that I am required to automate ASAP. The project is essentially a "mailbox project", if you will, and I have no idea as to where to start my test automation on this type of project as I am fairly new to selenium automation. Emails will however be sent/received via Gmail. I would really appreciate any help or advice on how/where to start my automation with regards to this project... if at all possible :).  The framework I am using is Eclipse, TestNG and of course selenium:). Language - Java


I have an ASUS WS C422 SAGE motherboard and tried to install a set of 2 CORSAIR Vengeance RGB PRO 32GB DDR4 3200 (PC4-25600) C16 memory cards into it and am getting an invalid memory configuration error from the motherboard (POST fails).  On looking more carefully at the motherboard documentation it says that it supports up to 32GB "RDIMMs" and 32GB and 64GB "LRDIMMs" whatever that means. On Amazon where I purchased the memory, it says that the type is "DDR4 SDRAM". Does that mean it is different than an "RDIMM" or is "SDRAM" a kind of "RDIMM"?


Minimum system reqirerments for Ubuntu 13.10

I'm new to linux and I was just wondering what the minimum system requirement for Ubuntu 13.10 were. Any help would be greatly appreciated.


Prove that an electron in a hydrogen atom doesn't emit radiation

According to electrodynamics, accelerating charged particles emit electromagnetic radiation.  I'm asking myself if the electron in an hydrogen atom emits such radiation. In , Murod Abdukhakimov says the total momentum of the electron is zero, hence it does not emit radiation. Could someone prove this statement ?  It may be an obvious question, but I can't figure out why the total momentum of the electron should always be zero, in any energy state.


In Monopoly, Is it OK for a third party to make a trade with a player who is about to lose?

I play with some serious board gamers, but we have neglected Monopoly for a number of years, so our knowledge is mostly based on high school & house rules.  We played last week and enjoyed it, but there was a piece of contention. There are times where we decide that we don't like one of our friends for some reason and don't want them to win (i.e. we landed on their property a bunch, or they refused to make a deal, etc.).  So when player 1 has some property and player 2 lands on it and cannot pay the rent their assets (houses/hotels get liquidated), their property gets transferred to the other player. (Please correct me if I'm wrong.) In this case, though, player 3 "traded" the amount of money owing for a piece of property (way overpaid). In this case they did it so that player 1 would not get the properties. Player 2 had no chance of winning the game (all properties mortgaged, no cash to speak of and many of the other properties with 3+ houses/hotels on them).  To summarize: Is it OK for a third player to purchase/trade property or cash to/from a player who is about to lose?


Value Object change after one of variable being change

i need explanation about object or date in javascript. Because i made some variable with value an object(date), but after i change the a new variable, all variables and the object is being change. I don't know why this happen.  Here is the code  var expDate = new Date(Date.now()); var minExpDate = expDate; var maxExpDate = expDate;  minExpDate.setDate(minExpDate.getDate() + 30); maxExpDate.setDate(maxExpDate.getDate() + parseInt(chf.Get('ExtraDays')));  alert(expDate + '\n' + minExpDate + '\n' + maxExpDate);   but it's okay if i make a new object  var expDate = new Date(Date.now()); var minExpDate = new Date(expDate); var maxExpDate = new Date(expDate);  minExpDate.setDate(minExpDate.getDate() + 30); maxExpDate.setDate(maxExpDate.getDate() + parseInt(chf.Get('ExtraDays')));  alert(expDate + '\n' + minExpDate + '\n' + maxExpDate);   Sorry for my english and the title is too weird. And i hope to get some explanation why this happen.  Thank you,


$Permission.CustomPermissionName doesn't work in VF page

Winter '15 brought new Global Variable $Permission. When I'm trying to use it on VF page as suggested in  $Permission.[customPermissionName], I get error:      Error: Field [customPermissionName] does not exist. Check spelling   VF page version is 32. I also tried to add prefix 'can' but it didn't help.  Does anybody seeing the same behavior?


everyone. I am new to ubuntu. I was just wondering what is the diffrence between sudo apt-get update and sudo apt-get upgrade


Is there a painless way to run Starcraft 2 on Linux?

Now that Starcraft 2 is free to play, is there a painless way to run it in Linux?  People have been doing it with different success for years, but the hacks are spead over different resources and often are distro specific.  I have some specific limitations though.  Since I saw file names like Starcraft64 on a Windows install of Starcraft 2, I would like to run it on a clean 64bit Linux distribution without the multilib 32bit compat layer installed.  I am fine with either 64bit stable wine or the 64bit staging wine, no wrappers like PlayOnLinux or Lutris should be involved.  Is it possible to install and run Starcraft 2 this way?  So far I went to starcraft2.com website and downloaded the installer, but when I ran the file tool on it, I was told it is a 32bit Windows executable, so obviously it won't be able to run under pure 64 wine.


Correct pronunciation of possessives ending on "-s"

What's the correct pronunciation of possessives ending on "-s"? For example,     Mrs Harris's house.       Mr Rices's dog.       Noriss's estate.


Formatting issue in the suggested edits queue

I just noticed this in the suggested edits queue:    For some reason, the time of asking/proposal is pushed to the other side of the username. This isn't particularly important, I just thought I'd bring it to the dev's attention.  Browser: Chrome 28, on Linux Mint KDE x86-64.


prove that $\sum_{cyc}\frac{{a^2}{b}}{c}\ge a^2+b^2+c^2$

prove $$\sum_{cyc}\frac{{a^2}{b}}{c}\ge a^2+b^2+c^2$$ where $a,b,c>0$ and $a\ge b\ge c$ My try it seemed qite simple but i couldnt  apply the rearrangement inequality directly.  so  i tried manipulating the inequality. the inequality can be written as $$a^2(b-c)+b^2(c-a)+c^2(a-b)\ge 0$$ .It seemed like 'schurs' inequality could be uused but i couldn't procceed.Also i tried using the  weighted a-m g-m method. Could anyone give me a hint (i want to solve the problem myself). source: Excursion in mathematics(Modak)