I created on a Wordpress site for my final thesis and need to add a map. I do not even know where to start.  I am so confused.  I do not need to do anything fancy (yet)  I just want to map about 30 spots in the South Bronx. I was using leaflet but I was told that Carto was the way to go.  I found this  It has current breweries.  I want to create a map with the breweries that no longer exist.


When Thorin and Thranduil discuss in Mirkwood, Thranduil said: ''Do not talk to me about the dragon fire. I know what's rage and ruin!'', and shows Thorin his destroyed face for a moment, then says: ''I have faced the great snakes from the north.'' Which dragons did hurt him and when?


So i tried to install the updates, but i got an error message saying that: Failed to download repository information Check your Internet connection. (it is ok).   When i tried to do it in command line i got this:  valo@Castor:~$ sudo apt-get update [sudo] password for valo:  Hit:1 http://es-mirrors.evowise.com/ubuntu cosmic InRelease Ign:2 http://ppa.launchpad.net/tualatrix/ppa/ubuntu cosmic InRelease          Err:3 http://ppa.launchpad.net/tualatrix/ppa/ubuntu cosmic Release              404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done                       E: The repository 'http://ppa.launchpad.net/tualatrix/ppa/ubuntu cosmic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   Can someone help please?


Can a ring of positive characteristic have infinite number of elements?

For curiosity: can a ring of positive characteristic ever have infinite number of distinct elements? (For example, in $\mathbb{Z}/7\mathbb{Z}$, there are really only seven elements.) We know that any field/ring of characterisitc zero must have infinite elements, but I am not sure what happens above.


Change mouse speed and not the acceleration

I've been searching for a good few hours on how to change the mouse speed on Ubuntu 14.04, but all the answers and tutorials I find only teach me how to adjust the acceleration and not the speed. I need to lower my mouse speed. I like a bit of acceleration, but my mouse base speed is too high which means it's hard to aim for small buttons. How do I adjust just the mouse speed, with either xset or xinput, or other tools? Command line solutions are preferable, because I suspect the GUI for mouse and touchpad settings in Ubuntu 14.04 is bugged. There isn't much available to tweak besides the double click speed and laterality (right or left-handed, see attached image).


Difference between protected method call from same and different packages

According to my understanding, a protected method can be accessed by any class within the same package, but only subclasses to this class can access from other packages .  package Parent;  public class Parent {     protected void display() {     //Code here     }  }     import Parent;  package Child;  class Child extends Parent{     void view(Parent p1) {         this.display(); // Success         p1.display();  // Error     }      void next(Parent p2) {          p2.foo(); //Success     } }      Here this.display() is successful because the child class  is responsible for implementation. But p1.display() does not work as p1 is not part of Child class. How can we justify this behaviour in the case of accessing protected methods from classes within the same package?


How Should I Be Maintaining My Manually Installed Apps?

I am used to using apt to install and upgrade my applications. To an extent, I'm relying on the repositiories I use to be sane and thus keep my machine in a good state.  What is best-practice for keeping my manually installed application up-to-date? Is it simply a case of regularly checking the application's website for new releases and patches?


My son sometimes has a temper, and has been known to hit his door when sent to his room. He has actually done so enough to punch a bit of a hole in it. I'm trying to figure out what might be doable to fix the door. Here is a photo of it:    As can be seen, there is a crack on the left that is visible and slightly dented in, and the center/right hole is actually pressed in pretty good. The punched hole is approximately 6 inches in diameter.   I'm going to make my son pay for the repairs from his allowance, and as that is limited, I am hoping for a fairly quick/inexpensive solution.  Any ideas as to what can be done?


We currently have a web app built to run on an angular framework on Nginx running on Ubuntu 1.10.3. The error log for an attempt to access the site is:  30364#30364: 1000 worker_connections are not enough 30364#30364: *5179370 recv() failed (104: Connection reset by peer) while  reading response header from upstream server:mysite request: "GET /  HTTP/1.1" upstream: myip:80 host:mysite 30364#30364: 1000 worker_connections are not enough 30364#30364: *5179454 no live upstreams while connecting to upstream   My Nginx.conf:  user www-data; worker_processes auto; pid /run/nginx.pid;  events {         worker_connections 1000; }  http{     sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     types_hash_max_size 2048;      include /etc/nginx/mime.types;     default_type application/octet-stream;ssl_protocols TLSv1 TLSv1.1      TLSv1.2; # Dropping SSLv3, ref: POODLE     ssl_prefer_server_ciphers on;      access_log /var/log/nginx/access.log;     error_log /var/log/nginx/error.log;      gzip on;     gzip_disable "msie6";      include /etc/nginx/conf.d/*.conf;     include /etc/nginx/sites-enabled/*; }   My default.conf:  server {        listen 80 default_server;        listen [::]:80 default_server;         listen 443 ssl;         ssl_certificate /etc/letsencrypt/live/mysite/fullchain.pem;         ssl_certificate_key /etc/letsencrypt/live/mysite/privkey.pem;          root /home/admin_user/myroot;         large_client_header_buffers 4 32k;        index index.html index.htm index.nginx-debian.html;         server_name myserver;         add_header Strict-Transport-Security max-age=500;       location / {             proxy_pass http://mysite;             proxy_http_version 1.1;             proxy_set_header Upgrade $http_upgrade;             proxy_set_header Connection 'upgrade';             proxy_set_header Host $host;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;              proxy_set_header X-Forwarded-Proto https;        } }   The file structure of my root directory is along these lines. Dashes denote levels. -root   --app     ---controllers  models  services  styles  views   --bower_components   --config   --data   --data.xlsx   --file.jpg   --index.html   --node_modules   --package.json   --Procfile   --public     ---app.js  img   --server.js  This by all means is not a full view of the file structure, but I thought it may be helpful.


Simple Calculator (GUI) Causing Exception

I'm trying to make a simple calculator with a graphical user interface; however, I'm having trouble adding two values from the text fields. Each time I try and calculate the values, I receive an exception. Could someone help me out with this? I'm fairly new to java, and I'm open to feedback and suggestions. The exception is down below.  Thank you,  Kyle  public class Calculator extends Application  { private Label firstValue; private Label secondValue; private Label sum; private Button myButton; private TextField textSum; private TextField textFirst; private TextField textSecond;  public String calculation() {     String getTextFirst = textFirst.getText();     String getTextSecond = textSecond.getText();      int total = Integer.parseInt(getTextFirst) +      Integer.parseInt(getTextSecond);     String realTotal = String.valueOf(total);     return realTotal; }  public void start(Stage myStage) {      myStage.setTitle("Simple Calculator");     GridPane rootNode = new GridPane();     rootNode.setAlignment(Pos.CENTER);     rootNode.setPadding(new Insets(30));     Scene myScene = new Scene (rootNode, 400 , 300);     firstValue = new Label ("First Value: ");     secondValue = new Label ("Second Value: ");     sum = new Label ("Sum is: ");      textFirst = new TextField();     textSecond = new TextField();     textSum = new TextField();      textSum.setEditable(false);     myButton = new Button ("Calculate");      rootNode.add(firstValue, 1, 0);     rootNode.add(textFirst, 2, 0);     rootNode.add(secondValue, 1, 1);     rootNode.add(textSecond, 2, 1);     rootNode.add(sum, 1, 2);     rootNode.add(textSum, 2, 2);     rootNode.add(myButton, 2, 3);      myButton.setOnAction(new ButtonHandler());       myStage.setScene(myScene);     myStage.show();    }  class ButtonHandler implements EventHandler<ActionEvent> {     public void handle(ActionEvent e)     {         Calculator finalTotal = new Calculator();          myButton.setText("Calculating");          textSum.setText(finalTotal.calculation());     } }   public static void main(String[] args) {     launch(args); } }     Exception in thread "JavaFX Application Thread"  java.lang.NullPointerException at Calculator.calculation(Calculator.java:22) at Calculator$ButtonHandler.handle(Calculator.java:75) at Calculator$ButtonHandler.handle(Calculator.java:1)


I want to divide this model into separate pieces to prepare it for the next stage of a project. The divide needs to be made down a curved line (which I hope is visible in picture).  ,   I figured out how to cut it down a straight line a couple weeks ago, but apparently a curve is a different beast. Is there an operation for this, or do I have to manually make a bunch of straight cuts (or something equally painful)?


How to increase users' perception of security on a payment screen?

Has anyone done any user testing they could share about padlock or shield icons on payments screens and which is perceived as most secure?


How can I best describe "making a new discovery"?

The context I am referring to is when someone, for instance,  comes into contact with something, a subject ( mathematics,  archeology or computer science, just to name a few),  a religion or a sport, and  discovers that he/she has found a new passion, something he/she  didn't know before or didn't think it could  be so fascinating. Is there an expression or an idiom to describe this ?


Are the photons that we detect with our eyes virtual?

From asking several questions about virtual particles on this website, the most popular consensus (on PSE at least) seems to be that they are nothing more than a convenient way of expressing a perturbative expansion and therefore one should not read too much into them. However other sources such as  make arguments about virtual particles that say even 'real' particles can be virtual depending on 'what scale' you do a calculation, with a classic example being 'in the process of a photon emitted from Alpha Centauri being absorbed by our eye, the photon is a virtual particle' (presumably since you can describe it by an internal leg of a Feynman diagram). This doesn't seem to sit right with my current intuition that virtual particles are just artifacts of perturbative expansions.  To me this process isn't an interaction between particles in Alpha Centauri and particles in my eye (which can be calculated by decomposing it into virtual particles) but is instead a process where a real photon has been emitted and transported and then absorbed. How would you respond to this?


"https://" refers to random site, "http://" is broken, but "http://www" works

I'm running a website which is acting extremely strange.   At the time of writing, this link works: http://www.example.com This link doesn't: http://example.com  But it does work if you copy/paste it and run it in Incognito... This link (after ignoring a warning) serves a totally unrelated and unknown website: https://example.com    I have no idea how to debug this issue. I have contacted the hosting and domain company to investigate the issue. How is the last issue even possible?


In PHP we can call methods dynamically like this:  class Klass{     function method1(){ ... }     function method2(){ ... }     function method3(){ ... }      function methodN(){ ... } }   And I can call dynamically like this:  Klass k = new Klass(); $i = 0; while($i <= N){     k->method{$i}(); }  //or $i = 'anything';     k->$i();   Can anybody please tell me how can I achieve this in JAVA?


Examples of a non-commutative division ring

What are some examples of a non-commutative division ring other than quaternions?


What are the best ways to solve discrete divide and conquer recurrences?

What is the best way to solve discrete divide and conquer recurrences?  The "Master Theorem" is one way.  What other ways are available?


How do I find out what this strange icon in my system tray is? (18.04)

A mysterious icon has just shown up in my system tray, a white exclamation mark within a red star:  Nothing happens when clicked or right clicked (including no orange bar underneath like other icons here). How would a user find out (on Ubuntu 18.04) what this is and what it's presumably trying (and failing) to warn about? This is just an example which I'm sure is easily solved, but in general are there any commands or tools that can display information about all current icons in the system tray?


I'm trying to limit the total resources accessible from docker (for example only 90% of the RAM and 1500% of the CPU). I cannot use CPU and RAM limit when I'm launching my containers, that's why I need to limit the total resources available for docker containers.  I have around 20 containers which can consume the maximum CPU and memory but not at the same time, so I cannot set the CPU and RAM limit, that's why I need to limit the total resource used by docker  First of all I've created a slice: I tried the instruction above, but impossible to limit both the RAM and the CPU usage  # /etc/systemd/system/docker_limit.slice [Unit] Description=Slice that limits docker resources Before=slices.target  [Slice] CPUAccounting=true CPUQuota=700% #Memory Management MemoryAccounting=true MemoryHigh=20G MemoryMax=25G MemoryMaxSwap=10G   And my daemon.json  {   "insecure-registries" : [ "url1", "url2"],   "cgroup-parent": "docker_limit.slice" }   But when I try from a container:  stress --vm-bytes $(awk '/MemAvailable/{printf "%d\n", $2 * 0.9;}' < /proc/meminfo)k --vm-keep -m 1   I can see from docker stats it's using 111Go of Ram (full capacity of my server)  stress --cpu 16   I can see from docker stats it's using near 1600 % (full capacity of my server)  I think I've missed something but I don't know what


How do I get started with 'painting with light' photography?

Tunnels being naturally dark may not be the most intuitive choice for a place to take pictures. But I love the '' work that artists such as '' are putting out and they're clearly seeking out places like tunnels, caves, garages... Dark places in other words, to create their works of art. Which brings two questions to mind:   How do I go about finding places that I can accomplish this sort of 'tunnel photography.' What are some techniques that I can use to 'paint with light' in my photography once I have found some locations?


Is "is" an auxiliary verb in the sentence "My mum's bag is blue"?

My mum's bag is blue.   Is is an auxiliary verb in that sentence? If not, what is it?      was suggested as a possible duplicate, but that post doesn't answer this question because it is about a different kind of sentence ("John is working now" is a progressive/continuous construction, but "My Mum's bag is blue" is not).


I am going ahead and asking this question a second time because it was not actually answered and the answer isn't what I was looking for. When you boot up Ubuntu, notifications will come in even if you disable them in settings I want to disable all notifications, or find a way to stop this notification. The notification in question is a printer notification. The answer I was given in a previous post linked to a similar issue that solves it by disabling printer auto-discovery, which I don't want to do. I want to turn off the notification, not the printer software! One way I was thinking could solve this would be to somehow prevent the cups service from starting until I log into the computer, so that notification being disabled actually is honored. Like I said, disabling the notification in settings is completely ignored at bootup. To clarify: I want to have a notification preference be honored between the time I start my machine and log in for the first time, as this is when the system ignores any preferences I set. P.S. If someone marks your question as a duplicate, can you undo that? because it was marked as answered even though it wasn't! P.S.S. Why was this marked as a duplicate again? This is the second time this has happened. I already checked these so called "duplicates" before posting the question, so the question was not answered! Sorry if I am sounding rude, but I would prefer this to be set as answered once it is actually answered...


Why would a protocol droid act so nervous?

C-3PO has, in the words of  and  related question, a "fussy and worry-prone personality". He reacts poorly to dangerous situations, usually exclaiming some variation of "we're all going to die!" For example, the very first line spoken in all of Star Wars:     Did you hear that? They've shut down the main reactor. We'll be destroyed for sure.   In the top answer to the linked question, Null  C-3PO's personality is (mostly) that of a standard protocol droid, and it is natural for one to become anxious in dangerous situations.  A  often serves diplomatic functions. Negotiations and other diplomatic relations are potentially tense and stressful, and I think that you would want the people and droids involved to be able to stay calm.  While some of the situations in which we see Threepio—like actual battles—are probably outside normal operating parameters, he should still be able to deal with some level of stress. However, he even seems uncomfortable when working for Jabba the Hutt, even though that is exactly the sort of work protocol droids are supposed to do. Even in the more extreme situations, I can't think of any advantage to a diplomat or interpreter showing such visible fear and anxiety.  What reason is there for a protocol droid, like C-3PO, to be so anxious in stressful situations?


Calculating agreement (Cohen's kappa) when each rater can choose a different number of codes

Apologies if this is answered elsewhere. I looked through other posts but I don't think my question is answered.  I have a situation where 2 coders rate whether a series of research papers contain particular elements. The issue is that they can choose any number of elements (we offer n possible elements to choose from, but they simply code if they think each category is present and it is up to them how many categories are present in total).  So coder 1 might indicate that 1, 4, 6 and 10 are present. While coder 2 might indicate that 1, 3, 6, 9, 10 and 15 are present.  I am not sure how to appropriately analyse the rates of agreement.  OPTION A (which we have done, I think incorrectly) is to have a row for each possible element in each paper (so paper 1 element 1, paper 1 element 2,… paper 1 element n, AND THEN paper 2 element 1, paper 2 element 2 etc). Then we have columns for the raters (multiple raters but only 2 raters work on a particular subset of papers) see   We were then using this syntax in SPSS to try to calculate kappa (question is not about SPSS but in case it provides useful context) CROSSTABS   /TABLES=Coder_12 BY Coder_13   /FORMAT=AVALUE TABLES   /STATISTICS=KAPPA   /CELLS=COUNT ROW COLUMN   /COUNT ROUND CELL.  However, for complete agreement this would require the coders to have the same number of elements chosen as well as the same specific elements chosen. I am not sure this is the best approach? It gives us one kappa for the pair of coders for all elements in all papers they both coded.   OPTION B would be to just to compare (for each paper) whether the 2 coders agreed element 1 was present or absent, and then whether element 2 was present or absent etc. This would result in a large number of kappa’s for each pair of coders (the total number of papers multiplied by the total number of possible elements).  I am somewhat unsure about this option given the number of kappa’s it generates.  OPTION C - something else that I am not aware of 😃  any advice would be greatly appreciated.


When being Unaware ends after surprise round?

In D&D 5e we have surprise round effective until it is ended. On that first round characters that are not surprised can act as in normal round. Those unaware of them (thus surprised) grant them advantage on attack rolls.  Then they become aware of the combatants? The case I was thinking of is when PCs are having surprise round, and their enemies (Monsters) are unaware of them (Stealth vs Perception). And PCs (all) have higher Initiative than all Monsters.   After first round, do Monsters stay Unaware of hat hit them until their first turn, or immediately become aware with a start of the second round, even though they will act after the PCs?  Does attack on the first (surprise) round break "unawareness" of the monster and it is aware of the PC on the second round even though it acts later due to lower initiative?


Finding a point d distance away from another point only given a slope

I would like to find a point $d$ away on a line from a starting point only given a slope. My fist thought was to use the distance formula ($d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$), but I would have to solve for two variables. How can I solve find the point without graphing or brute forcing?


Python - Construction of a two-dimensional list of random integers, shows repetition, that should not be there

i am fairly new to python, and this is the first hurdle i came across. Here is what's happening: from random import randint  empty = [[0]*9]*9  def randomboard():   board = empty   for x in range(0,8):     for y in range(0,8):       nextInt = randint(0,29) - 20       #nextInt = 0 if nextInt < 0 else nextInt       board[x][y] = nextInt   return board  def printboard(board):   for x in range(0,8):     print(board[x])   print("----")  printboard(empty) printboard(randomboard())  The Output is the following:  [0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0]  [3, -5, -5, -4, 7, -13, -15, -1, 0] [3, -5, -5, -4, 7, -13, -15, -1, 0] [3, -5, -5, -4, 7, -13, -15, -1, 0] [3, -5, -5, -4, 7, -13, -15, -1, 0] [3, -5, -5, -4, 7, -13, -15, -1, 0] [3, -5, -5, -4, 7, -13, -15, -1, 0] [3, -5, -5, -4, 7, -13, -15, -1, 0] [3, -5, -5, -4, 7, -13, -15, -1, 0]   What the Code should do: Create an Empty 9x9 board. Fill it with random values. Then print the result. As you can see, the first axis keeps repeating, even though i feel like this should not be the case and i can only try to fathom why it is. Here are a couple of possibilities: -The RNG Seed resets after every iteration of the first loop: I wouldn't even know what to do in this case, and it would seem very unintuitive for this to happen. -I have been doing something weird during the construction of the random list.Possibly some false syntax, that i have been taking over from java: I have been looking into other code examples, and the code snippet still seems good to me. Maybe i'm not seeing something, that you do. -The printboard function just prints the first row over and over: I already tried to substitute the funtion for "print(board)", but that also returns the repeating list. -Something totally different, that i have been overlooking At this point, i'd really appreciate your help. Thank you in advance!


It is confusing to me that = seems to assign values to variables as it usually does in other languages, but what does : do?   I feel like it is assigning functions or some other stuff to a variable.   What exactly it is doing?  Here is an example:  import React from 'react';  const MyComponents = {   DatePicker: function DatePicker(props) {     return
Imagine a {props.color} datepicker here.
;   } }  function BlueDatePicker() {   return <MyComponents.DatePicker color="blue" />; }   The colon is after DatePicker


Does SHA-1 hash have quasi commutative property?

Although I have tested with a program and found negative answer, I want to be sure.


Why does Dr. Banks not know about having called the General?

Why does Dr. Banks in the future seem surprised on hearing that she had called the Chinese General in Arrival (2016)?  There are two ways she can perceive the future:   As an active observer: Her present consciousness is transported to her future body. This doesn't make sense because if this were the case, every time she experiences a vision about her daughter, she would act confused about where she was and maybe even ask the girl who she was. Instead, she acts as if she's known the girl all her life and converses easily with her. A passive observer: This would make perfect sense in the movie if not for the General scene. She has no control over what her future self says or does. She simply experiences what her future self is. If this is the correct theory, she would act confidently, maybe even smile and ask the Chinese General for his phone number and wife's death words so her past self can dial him. Not be surprised and shocked.   So what is the correct theory? The final result seems like a mash of the two theories.


The German word schadenfreude is often used in English to express the pleasure derived from seeing misery in others.   From dictionary.reference.com     schadenfreude noun. satisfaction or pleasure felt at someone else's misfortune.    For example quite harmlessly, finding it funny when someone trips over, or more dramatically the pleasure derived when seeing your ex-partner go through a messy break up.   Is there a word for wanting bad things to happen to others? The context would typically a bit a jilted lover or a jealous person.  For example hoping someone's holiday goes badly, or hoping the company project goes badly after you leave.


What is the correct name for the ">" command

I was trying to find how to pass some text to a file without overwriting what's there already using the > command and I realised I don't know what it's called. Searching for right arrow or right chevron or more than command didn't show up anything. I've always just called it pass to.


I can't find my Windows 7 after installing Ubuntu 14.04. I need my data!

I recently installed Ubuntu alongside Windows 7 on my laptop (500 Gb hdd). In the partition step there were 3 partitions (recovery partition, hp tools, and the one I had Windows on it).   I selected on "new partition table", as a result I got one partition  (of 500 GB free space). Then I created a new partition (of 25000 GB,type: logical, ext4 journaling file system).   The installation went perfectly and Ubuntu is running perfectly.  However, when I reboot it goes to Ubuntu, and I can't find my Windows 7 option on the GRUB menu. Also, I can't find my recovery and Windows partitions. I don't have my Windows installation on a DVD, only the recovery partition.   I am afraid that my data on Windows are gone. Is there a way to boot to Windows without losing my data?


Words for the scalability and lack thereof of object properties

All the objects are red, so the group is red.  All the objects are small, but the group is not small.  Color is ___, while size is ___ .  I'm trying to remember the words for this distinction regarding properties and collections, but I am struggling to do so.  The words are most frequently encountered in philosophy, I believe.


How to get current user in controller in asp.net mvc?

I have a model that stores the identity of the current user who is creating the new record.  How can I modify the ActionResult Create() to capture the current user's name and assign it to paCrtdBy?  Here is the model:  using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Web;  namespace phaud.Models { public class phauds {     [DatabaseGenerated(DatabaseGeneratedOption.Identity)]     public int Id { get; set; }     [Required]     [Display(Name = "Created By")]     [MaxLength(128)]     public string paCrtdBy { get; set; }      private DateTime _createdOn = DateTime.Now;      [Required]     [Display(Name = "Record Date")]     [DataType(DataType.DateTime)]     public DateTime paCrtdDt {         get         {             return (_createdOn == DateTime.MinValue) ? DateTime.Now : _createdOn;         }         set         {             _createdOn = value;         }      }    }  }   Here is the controller code for CREATE():      // GET: phauds/Create     public ActionResult Create()     {                     ViewBag.DropDownValues1 = new SelectList(new[] { 3, 6, 9 });         ViewBag.DropDownValues2 = new SelectList(new[] { 9, 18, 27 });          return View();     }      // POST: phauds/Create     // To protect from overposting attacks, please enable the specific properties you want to bind to, for      // more details see https://go.microsoft.com/fwlink/?LinkId=317598.     [HttpPost]     [ValidateAntiForgeryToken]     public ActionResult Create([Bind(Include = "Id,paCrtdBy,paCrtdDt,repId,callId,callDt,q_opClsCall,q_asstOffer,q_reassrCaller,q_empathy,q_prof,q_recap,q_deadAir,cmnts")] phauds phauds)     {         string userName = User.Identity.Name;         //How do I assign the value of userName to the paCrtdBy field in the phauds.cs          //How to assign DateTime.Now to paCrtdDt instead of doing it in the model          if (ModelState.IsValid)         {             db.phauds.Add(phauds);             db.SaveChanges();             return RedirectToAction("Index");         }          return View(phauds);     }


SSH login with clear text password as a parameter?

I need to login to a user that I've created on a remote host running Ubuntu. I can't use an ssh key because the ssh login will happen from a bash script ran within a server that I won't have access to (think continuous integration server like Bamboo).   I understand this isn't an ideal practice, but I want to either set the remote host to not ask for the password or be able to login with something like ssh --passsword foobar user@host, kind of like MySQL allows you to do for logins.   I'm not finding this in man ssh and  I'm open to any alternatives to getting around this issue.


How do I make an animated mesh independent of a shrinkwrap modifier?

The title is probably very confusing, but here's the situation:  I'm animating a flat grid curve by shrink-wrapping it onto a moving plane in order to get a uniform wave animation, it looks like this:    Before I render it, i want a bevel. What I did then was simply adding a bevel to the curve, making the curve look like this:    Now, when activating the shrinkwrap modifier, I expexted that only the curve would be shrinkwrapped, but alas, the bevel did the same:    As seen by the blue spots, the curve has been completely flattened along with the bevel.  How can I avoid this? I tried using a wave modifier instead of shrinkwrap, but this modifier doesn't seem to make perfectly round waves like this:    So, any thoughs on how to solve this?  Thanks for reading!


Prove continuity on a function at every irrational point and discontinuity at every rational point.

Consider the function:  $f(x)= \begin{cases}  1/n \quad &\text{if $x= m/n$ in simplest form} \\ 0 \quad &\text{if $x \in \mathbb{R}\setminus\mathbb{Q}$}  \end{cases} $  Prove that the function is continuous at every irrational point and also that the function is not continuous at every rational point.  Also, we can say that the function is continuous at some point $k$ if $\displaystyle\lim_{x \to k} f(x)=f(k)$.  I was thinking of doing an epsilon delta proof backwards using the fact that $\mathbb{Q}$ is dense in $\mathbb{R}$ for rational points and irrational points.  Any ways on how to expand on this are welcome.


Test the convergence of $\sum_{n=1}^\infty \frac{n^{1/n} - 1}{n}$

Test the convergence of $$\sum_{n=1}^\infty \frac{n^{1/n} - 1}{n}$$  My Attempt: Using the root or ratio test would be too inconvenient here. Looking at the denominator, I used the Cauchy Condensation Test, i.e. if the condensed sequence $\sum_{k=1}^{\infty} 2^k a_{2^k}$ converges, then $\sum a_n$ converges. By this test, we have $$\sum_{k=1}^{\infty} 2^{k} \frac{(2^k)^{\frac{1}{2^k}} - 1}{2^k} = \sum_{k=1}^{\infty} 2^{\frac{k}{2^k}} - 1$$ Consider the term $2^{\frac{k}{2^k}} - 1$. If we rewrite 2 as a binomial $1+1$, we get $$(1+1)^{\frac{k}{2^k}} - 1 \lt \frac{k}{2^k}$$ Summing both sides, $$\sum_{k=1}^{\infty} 2^{\frac{k}{2^k}} - 1 < \sum_{k=1}^{\infty} \frac{k}{2^k}$$ For the latter sum, it is trivial to show that $\lim_{n \to \infty} \frac{a_{n+1}}{a_n} = \frac{1}{2} < 1$, and the series converges by ratio test. Hence $\sum_{k=1}^{\infty} 2^{\frac{k}{2^k}} - 1$ converges and therefore, $\sum_{n=1}^\infty \frac{n^{1/n} - 1}{n}$ is convergent. $\; \blacksquare$ Is this proof valid? Please point out the errors and suggest improvements as well. I think there may be a less complicated way to solve this, but I'm not able to put my finger on it.


Does staying in Canada, after US, count toward overstaying in US (on WVP)?

My situation is this:  I will enter US on ESTA / VWP. With a New Zealand passport. Three weeks later, I will fly to Canada. I may be in Canada for 4 or more months (they give me up to 6 by default)  After that, three scenarios are possible:  I will go elsewhere (South America), but need to pass through the US to do that. I will fly from Canada to my home country (New Zealand). I will spend some more time (a few weeks perhaps) in the USA, and fly to New Zealand.  Over the years I've seen mixed information about whether or not time in Canada simply counts towards the 90 days US gives on the VWP, and therefore if total time in US + Canada is over 90 days, it could make it hard to re-enter the US without first leaving North America entirely; Or, they will simply start a new 90 days VWP upon re-entering the USA from Canada; Or, whether the US will consider the 90+ days in US + Canada and overstay (aka. a violation) of the VWP? The cause of my confusion I've seen it written on a US Customs web site back at that time (this was around 2011) passing through the US on the way to Canada would mean you can't stay more than 90 days in Canada (assuming just one day was spent in the US), and I then asked the US Consul in NZ to confirm I'd understood it correctly, and she said I had. She told me outright that if I plan to pass through the US on the way to Canada, I can not stay more than 90 days in the two countries, otherwise I've over stayed my VWP in the US and will need a visa if I wish to return to the US in the following 5 years. She advised I would need to get a Visa if I wanted to pass through the US to spend 90+ days in Canada. I also see this comment on travelwiki.org:  Visa Waiver Program requirements Travel under the Visa Waiver Program is limited to transit, tourism, or business purposes only; neither study, employment, nor journalism is permitted under the VWP. The 90-day limit cannot be extended nor will travel to Canada, Mexico, or the Caribbean reset the 90-day limit. Take care if transiting through the US on a trip exceeding 90 days to Canada and/or Mexico. Source:   Also,  to a similar question seems to imply the same thing, that it will be a problem. Yet,  to a similar questions, say the opposite. That there will be no issue. I completely agree that a short time spent in Canada (or Mexico) won't reset the 90 days.  But does going over 90 days due to staying an extended time in Canada make me an overstayer on the US VWP? And, what would happen if I was, for example, in Canada for 4 months and then wanted to spend some time in the US before heading back to New Zealand? Will they give me another 90 days of VWP?


Why isn't the modifier icon appearing when an object is selected?

I'm brand new to Blender, and am attempting to subtract one object from another. Simple, I know, and all I have read says to use the modifier tool, which is a wrench.  However, I can not find this wrench.    attached is a screen shot of my toolbar showing where I thought the wrench should be.  Can anyone please tell me what I am doing wrong?  I thank you kindly, Matt


How does it takes to deadlift a sports car?

In the movie Furious 7, Dom lift a Lykan HyperSport with bare hands.  Given that in reality, how strong it has to be to lift a Lykan HyperSport(1,380 kg), says to 40 cm in one rear end, and hold it for 10 seconds?  How much is one-rep max of this guy's deadlifting?


Let $p$ be prime. Consider the sequence: $1, 2^2, 3^3, 4^4, 5^5, 6^6 \cdots \pmod p$. Prove the sequence is periodic with smallest period $p(p-1).$ This means that $p(p-1)$ is the least among all positive integers $l$ with the property that whenever $n ≡ m (mod ~l),$ we have $n^n ≡ m^m (mod ~p)$ Prove that: (a). $n \equiv m \pmod {p (p-1)}$ implies that $n^n ≡ m^m \pmod p$ $(b).$ If $l ≥ 2$ has the property that whenever $n ≡ m \pmod l,$ we have $n^n\equiv m^m \pmod p,$ then $p(p-1) \leq l.$


Is an opponent who is adjacent to you 5 feet away or 10 feet away?

I’m looking for clarification regarding combat space in a one-on-one combat situation, since it impacts disadvantage rolls and opportunity attacks.   If a medium size opponent attacks you with a melee weapon (one that does not increase reach), it’s assumed they are within 5′ of you (PHB 146).   Based on the “SPACE” section in PHB 191-2, they are in one of 8 squares bordering yours.  Regardless of whether it’s a hit or miss, it’s now your turn.    You’re a spell caster that only has an option of a ranged spell.  Let’s assume you have no ‘touch’ spells and no melee weapon.  Based on PHB 195, would you have disadvantage on your ranged spell attack roll because you’re within 5′?  Or because each creature is in its own 5′ space, there is really 10′ between them combined, so there would be no disadvantage roll on the ranged spell attack?


Why is the pronunciation of 'ch' different in chamber and chameleon?

Sometimes ch is pronounced as /k/, as in chorus/chameleon. Sometimes as /tʃ/, as in chamber/chalk.  Why is it so?


I want to practice epsilon-delta method for problems in analysis. Does anyone have any suggestions for books with solutions, or solution books available, for undergraduate analysis?  Edit: I didn't write book because I cant buy books. Was referring to free material.


Why does Google Search Console's "Core Web Vitals" say a subset of my pages are all good on Mobile and all bad on Desktop?

Google Search Console's "Core Web Vitals" is showing these two graphs.  Notice that the number of "good" URLs in one graph exactly match the number of "bad" URLs in the other. Each day always has the same number on each graph, so it's not likely a random coincidence.  The reports provide only one example, and it is the same URL in both cases (). The page is static, with no scripts or forms.  The site has hundreds of other pages (all also static without forms), so what is so special about these reported pages that every one of them would be good in one context and bad in the other?


Massive 404 attack with non existent URLs. How to prevent this?

The problem is a whole load of 404 errors, as reported by Google Webmaster Tools, with pages and queries that have never been there. One of them is viewtopic.php, and I've also noticed a scary number of attempts to check if the site is a WordPress site (wp_admin) and for the cPanel login. I block TRACE already, and the server is equipped with some defense against scanning/hacking. However, this doesn't seem to stop. The referrer is, according to Google Webmaster, totally.me.  I have looked for a solution to stop this, because it isn't certainly good for the poor real actual users, let alone the SEO concerns.  I am using the Perishable Press mini black list (), a standard referrer blocker (for porn, herbal, casino sites), and even some software to protect the site (XSS blocking, SQL injection, etc). The server is using other measures as well, so one would assume that the site is safe (hopefully), but it isn't ending.  Does anybody else have the same problem, or am I the only one seeing this? Is it what I think, i.e., some sort of attack? Is there a way to fix it, or better, prevent this useless resource waste?  EDIT I've never used the question to thank for the answers, and hope this can be done. Thank you all for your insightful replies, which helped me to find my way out of this. I have followed everyone's suggestions and implemented the following:   a honeypot a script that listens to suspect urls in the 404 page and sends me an email with user agent/ip, while returning a standard 404 header a script that rewards legitimate users, in the same 404 custom page,  in case they end up clicking on one of those urls. In less than 24 hours I have been able to isolate some suspect IPs, all listed in Spamhaus. All the IPs logged so far belong to spam VPS hosting companies.   Thank you all again, I would have accepted all answers if I could.


I often buy cilantro from Trader Joe's in a big bunch. I love using the leaves, especially in Indian cooking, but always end up tossing out the stems, which make up half the bunch. Is there something I can do with them that I'm unaware of?


How does environment separate variable bindings in python?

def square(x):   return x * x  def twoPower(x, n):   while n > 1:   x = square(x)   n = n/2 return x   twoPower(2, 8) gives 256 when we bind x = 5, n = 1. Why?


Using a definite integral find the value of $\lim_{n\rightarrow \infty }(\frac{1}{n}+\frac{1}{n+1}+...+\frac{1}{2n})$

Task: Using a definite integral find the value of: $$\lim_{n\rightarrow \infty }(\frac{1}{n}+\frac{1}{n+1}+...+\frac{1}{2n})$$    My Attempt: I began by writing out the sequence as a summation, where I afterwards isolated the $n$ sub-intervals multiplication:  $$ \lim_{n\rightarrow \infty }\sum_{i=0}^{n}{\frac{1}{n+i}} = \lim_{n\rightarrow \infty }\sum_{i=0}^{n}{\frac{n}{n+i}\frac{1}{n}} $$ Here I encountered an unfamiliar situation with $i$ in the denominator and not in the numerator. Further investigation lead me to harmonic numbers, which is something I haven't covered yet and shouldn't be required.    In attempting to solve this task I have found the following resource on .


My laptop has only one VGA port, so I was wondering if I can just buy a "Y-cable" and plug in 2 screens?  My graphic card is GeForce GT 640M LE.  PS: I want to extend my screens, not duplicate them.


Lubuntu 16.04.3 - How to remove old kernels safely

I have many old kernels and I'd like to know which is the safest way to remove  them.  Thank you


What kind of flag should I raise when I see garbage?

I am wondering which flag to raise upon catching sight of something like this:     Asdfghjkl lkjhgfdsa     Spam? It's not promoting anything. Rude or abusive? It's not speaking ill of anything. Not an answer? Of course it isn't but it isn't even anything meaningful.  BTW, is there archived examples for all kinds of flags? I am curious if there has ever been a question flagged as 'Blatantly Off-Topic'.


'When did you last see him?'   In the above sentence, is "when" an adverb? If so, what word is it modifying?


How exactly do I create a sed script and use it to edit a file?

I know how to edit a file using sed one step at a time, but how would I create an actual sed script and then use it on the file to do the same things that the individual sed commands would do? For example these 3 sed commands:  sed -i '4i\ ' baconFile sed -i 's/,/\t\t/' baconFile sed -i 's/,/ /' baconFile


Why is the Strunk and White badge not shown in the review-badge-progress-mouseover-thingy?

As you can see here    the top progress bar shows the progress towards the next badge of that category (in my case the "Reviewer" badge") but the third bar always shows the "Copy Editor" badge instead of (in my case) the "Strunk and White" badge.  Is this intentional? Otherwise, take this as a feature request or a bug report, whichever term you like more.


how does different colour wavelength intefere?

Say a red colour with 400nm mixes with blue colour with 700nm, but out of phase by a little. What would be the resultant colour?  I would know how to represent the resulting wave mathematically, but what colour is it? Is the colour only determined by the resulting wavelength?


can't adjust header/footer width to text width APA6 class

I'm using the \documentclass[doc]{apa6} class to create a document, I decided to use the fancyhdr package but can't make it work, I tried with packages anysize and geometry but still not working. Previos Picture shows an example of my problem.  I have try:  \usepackage{geometry} \usepackage{fancyhdr} \pagestyle{fancy}  %\usepackage{anysize} % Para el margen %\marginsize{3cm}{3cm}{1cm}{3cm} \geometry{paper=a4paper,left=40mm,right=20mm,top=30mm, bottom=30mm}   but none of the two possibilities (the one active and the other commented work.


Where to start looking up if there's something wrong with cck field variables?

in short: Something in my zen-based custom theme is keeping a couple of cck fields from being display on my page. Basically my question is where to get access to the variables that are supposed to contain the html for the cck fields (which are missing when I was looking them in firebug). Below I explain why I think it's looking up the variables that might bring me closer to a solution  So I made this custom node type (events) with cck fields added. Also made some content using those fields. Added some css and it all displayed fine. Later the taxonomy terms below the title and some metadata bugged me so I followed along with a 'theming cookbook' pdf book that taught me how to make a node-events.tpl.php and simply deleted php variables like $terms. This worked great.     Obviously this also means that all this time, the view permissions of those fields have been checked and also that the display options under 'display fields' have been set to standard all the time. I also ruled out that the issue could be anything else than theme related as my cck fields do show up in a stock Drupal theme. The theme for my site is a zen-based custom theme.   So then even later, after I made a view for this node type and started adding css to that view I noticed at some point that my image field and two other fields are missing. It's hard to tell if they disappeared because of things that I did when creating the view and adding css (which would surprise me)


Is it possible to get a card from a previous arena?

If you played clash royale while released for Canada only(I think) There was no spell in arena 1 so now I'm at arena 2  And I played in the beta Does this mean I can't get a lighting spell or do I just have pray for one in a chest?


A set of integers whose elements all divide $2015^{200}$ but do not divide each other

Let $S$ be a set of natural numbers,such that each element divides $2015^{200}$ but for no two elements $a$ and $b$, $a|b$. Find the maximum number of elements in $S$ .   $2015^{200}=(5\cdot 13\cdot 31)^{200}$  Hence each element is of the form $5^p13^q31^r$ where $p,q,r$ lie between $0$ and $200$, inclusive.The given condition also says that for no two elements $5^p13^q31^r$ and $5^a13^b31^c$,$p\le a,q\le b,r\le c$.  I have tried to guess the solution by fixing the value of $a$ and then letting $b$ and $c$ run through the range of values that they are allowed to take.But I keep getting confused again and again.  I will appreciate any sort of comment,hint or answer.  EDIT:  As has been noted in the comments below,a trivial upper bound is $201^2$. But is this achievable?Can we show that it's not?Because then we may gain some insight.


If two equal but opposite pulses in a rope coincide, where does the kinetic go?

Imagine two people holding a rope. They send at the same time equal but opposite pulses (by moving the rope quickly up and down) through the rope. When the pulses completely overlap the rope is straight again, like it was before they sent the pulses. So the situation looks momentary the same as before they send the pulses. Where has the kinetic energy of the two pulses gone? Is the momentary straight rope in motion?


Get installed programs via cmd or powershell

I am trying to get all installed apps in the computers of my domain but i haven't found a way to get the information in an accurate way first i was trying to achieve this through the registry key:    HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*   but this returned more info than i need like updates installed. So i searched for another way and I found that the wmi class Win32_product contains all installed apps but after trying with this y have found that the info that recolects is incorrect    ¿why there are some apps like google chrome, free proxy, dell system diagnostics, that does not appear when querying the class?  In this link is the answer for this question     ¡there is a way to accurately get all installed applications in windows via powershell or command line?


What are the tubes on apocalypses head for?

Dont know how to describe this better, but what are the two tubes on every side of apocalypse head? Are they part of his armor? Or part of his body? What is the usage of them? Does he also have them in the comics?    Maybe related to this question , but I am asking specific about the tubes only.


Exception in thread "main" java.lang.NullPointerException during read texts and prints out its 2d array

I am trying  to write a program that reads a txt file and prints out its 2d numbers only array, but i got NullPointerEexception I have no idea why, please help  Here is my code:  import java.io.*; import java.util.*;  public class FileR {     public static void  main(String[] args) throws Exception {         int[][] desktop;         int rows = getTotalRow();         desktop = new int[rows][];         Scanner fin;         InputStream is;         is = new FileInputStream("hello.txt");         BufferedReader br = new BufferedReader(new InputStreamReader(is));         String line = "";         try {             int row = 0;             while ((line = br.readLine()) != null) {                 line = line.replaceAll("[^0-9]+", "");                 if (line.isEmpty())                     continue;                 String[] nums = line.split("\\s*(|,|\\s)\\s*");                 desktop[row] = new int[nums.length];                 for (int i = 0; i < nums.length; i++) {                     desktop[row][i] = Integer.parseInt(nums[i]);                 }                 row++;              }          } catch (NumberFormatException e) {             e.printStackTrace();         }         print(desktop);     }       public static int getTotalRow() throws IOException {         LineNumberReader reader = null;         try {             reader = new LineNumberReader(new FileReader("hello.txt"));             while ((reader.readLine()) != null) ;             return reader.getLineNumber();         } catch (Exception ex) {             return -1;         } finally {             if (reader != null)                 reader.close();         }     }       public static void print(int[][] value) {         for (int i = 0; i < value.length; i++) {             for (int j = 0; j < value[i].length; j++) {                  System.out.print(value[i][j] + " ");              }             System.out.println();         }     } }   HEre is my hello txt file:   There should be a specific text at the top of each page  2  2, 2, 2, 2, 2, 2, 2, 2, 2 2, 0, 0, 0, 0, 0, 0, 0, 0, 2 2, 0, 0, 0, 0, 0, 0, 0, 0, 2 2, 0, 0, 0, 0, 0, 0, 0, 0, 2 2, 0, 0, 1, 3, 4, 0, 0, 0, 2 2, 0, 0, 0, 3, 4, 0, 0, 0, 2 2, 0, 0, 0, 0, 0, 0, 0, 0, 2 2, 0, 0, 0, 0, 0, 0, 0, 0, 2 2, 0, 0, 0, 0, 0, 0, 0, 0, 2 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 lmlmlm   my ouput :  2 2 2 2 2 2 2 2 2 2  2 0 0 0 0 0 0 0 0 2  2 0 0 0 0 0 0 0 0 2  2 0 0 0 0 0 0 0 0 2  2 0 0 1 3 4 0 0 0 2  2 0 0 0 3 4 0 0 0 2  2 0 0 0 0 0 0 0 0 2  2 0 0 0 0 0 0 0 0 2  2 0 0 0 0 0 0 0 0 2  2 2 2 2 2 2 2 2 2 2  Exception in thread "main" java.lang.NullPointerException     at FileR.print(FileR.java:55)     at FileR.main(FileR.java:34)   I guess NullPointerException caught when it loops empty string or null object, i want to omit null object but how to realize it i don't know Any idea on how to solve it?


Least norm in convex set in Banach space

The following statement is true for Hilbert spaces $H$:     Every closed convex set ${\cal C} \subset H$ has a unique element $x$ such that for any $y \in C$, we have $|x| \leq |y|$.   Is this statement still true for Banach spaces? If not, what is a counterexample?


Returning to the UK for Holidays after a previous visit

I am a US citizen with a boyfriend in the UK. My "leave to enter" visa expired on October 31, 2015 (I left on Oct 15). I want to go back to the UK for the holidays but I want to know that they will let me back in for 2 weeks. I will have a return flight home, I just cant find ANYTHING that states if I have to wait a certain amount of time to return or if I am all good.  I want to book my flight asap but want to make 100% sure they will let me in!


How to calculate mean and standard deviation in R given confidence interval and a normal or gamma distribution?

Suppose you are given a $95 \%$ CI $(1,6)$ based on the normal distribution. Is there any easy way to find $\mu$ and $\sigma$? What if it came from a gamma distribution? Can we do this in R?


Stop original Object reference from updating in javascript

I have a object contains some companies name. when I am doing changes in var m which is copy of var j then var j is also updating. How can we prevent that  var j= {'a':'tata','b':'suzuki'} var m= j m.a='bmw' console.log(m) console.log(j)


I want to change the default comment form title_reply, label_submit ... just on my CPT without affecting the default comment form but I can't get it to work without affecting the default ones.  First I don't want to output the comment form if CPT and user isn't logged in, I'm doing this with this code:   // Don't output the comment form if CPT and user isn't logged in if ( 'myCPT' != get_post_type() || is_user_logged_in() ) {  comment_form(array('title_reply'=>'Got Something To Say:'));  }   Which is working fine, but I want also to check if CPT exists and  alter the default comment form if I'm inside that CPT.  Now the question will be how can I put this together ?  Thank you!


I would need help with the sentence below. Thanks

I like to watch him play football or playing football. Which one is correct?


That's not where my problem ends unfortunately, I'm running Ubuntu 20.04 and Ive never been able to boot into the grub menu. This means that I have no way to access recovery mode. All I can access is that weird gnu grub command line and a command line login screen that boots me out the moment I log in. If anybody has any suggestions please sling them my way.


How to responsively center a form inside another div (vertically and horizontally)

I've been trying my best to center a div that contains a form .form-group inside another div #myCarousel, responsively both vertically and horizontally. (works across different device widths)  I've tried absolute positioning with pixels, percentage - but that didn't work. I tried making the form a child element inside the #myCarousel, but I wasn't able to make it work.  My goal is to make the form in the exact center of the caraousel (over the image slider) and have the images sliding in background, while the form stays fixed in the center.  Here is what my code looks like.
   ...

   <form action="thank-you.php" method="post">     <input class="form-control" type="text" name="name" placeholder="Enter your name">     <input class="form-control" type="text" name="mobile" placeholder="Enter mobile number">     <input class="form-control" type="text" name="email" placeholder="Enter your email address">     <input class="form-control" type="text" name="address" placeholder="Enter your area and landmark">     <select id="multi-select" name="products[]" multiple="multiple">       <option value="product1">Product 1</option>       <option value="product2">Product 2</option>       <option value="product3">Product 3</option>     </select>     <input type="submit">   </form>
   I'd be glad if you'll could guide me here.


What exactly does the Attack Bonus on weapons apply to?

Completely new to D&D; myself and some similarly inexperienced players jumped in with D&D 5e, using the premade characters for the starter set that was released. We searched around but couldn't find an answer to something:  What exactly is the Attack Bonus listed on the weapons? Is it a modifier you add to your attack roll or your damage roll?


(a) Determine which Fibonacci numbers are even. Use a form of mathematical induction to prove your conjecture. (b) Determine which Fibonacci numbers are divisible by 3. Use a form of mathematical induction to prove your conjecture  I understand that for part a that all multiples of 3 of n are even. So F(0),F(3),F(6)... I just don't understand how to prove it.  For part B it is the same thing except multiples of 4  Please help, thank you!


Why is there a factor of $4\pi$ in certain force equations?

I mean to ask why there is $4\pi$ present in force equations governing electricity? Though all objects in universe are not spherical and circular, the constant of proportionality in both equations contain $4\pi$. Why?


Arithmetic between an lu and an int seems to be incorrect

For a personal project I am working on, I seem to be getting an error when I subtract a long unsigned from an int.  Details:  I #define a value that will be used over multiple files and set it equal to 256. This is the max size of structs I make.  I then #define another variable that is the size of all items in a struct except a list. This number comes to 51.  In a struct I create, I use those #defined variables to create a list using the rest of the space in the "block." This should be 256 - 51 for the list size.  When I print the size of the struct as a whole, I get 264. When I print the arithmetic between the two #defined variables, I get that correct answer of 205 (256 - 51).   The size of the struct should be 256 and I do not know why it is not that size.  Any help will be appreciated!  Reproducible Code  test.c:  #include "test.h"  int main(){    //Prints 205, which seems correct    printf("OUTPUT: %lu\n", (BLOCKSIZE-META));     //Prints 264, which is wrong     printf("OUTPUT: %d\n", (int) sizeof(Inode));    return 0; }   test.h  #include <stdio.h> #include <time.h>  #define BLOCKSIZE 256 #define META (6 + 9 + (3 * (sizeof (int))) + (3 * (sizeof(time_t))))   typedef struct Inode {    char a;    char b;    char c[9];    int d;    char e;    char f;    int g;    int h;    time_t i;    time_t j;    time_t k;    char l;    char m[BLOCKSIZE - META]; } Inode;   Output:  OUTPUT: 205 OUTPUT: 264


Primitive roots: If $p$ is a prime such that $p\equiv 1 \pmod 4$, and $a$ is a primitive root, then $-a$ is also a primitive root.  In this particular question I did show that in fact $(-a)^{p-1} \equiv 1 \pmod 4$, what is trivial. But, how can I assure that $p-1$ is its order?  Thanks a lot.


Object closely follows other object being moved

When I import object B in my scene, It appears at origin 0, near object A (which is keyframed). I cannot seem to move A away from B without B loosely following... What is the relationship at work here? How can I move object A without B being affected?


"Full Disk Access" for backup tool running as cron job

I'm running a command-line backup tool (duplicity) as a cron job. But in Mojave, there is a new user data protection feature called "Full Disk Access" (part of the TCC access control framework) that prevents duplicity from accessing certain user-owned files.  How do I whitelist this command-line tool? Since it runs as a cron job, adding Terminal.app to the whitelist won't work. I tried adding the duplicity binary to the whitelist in System Preferences > Security & Privacy > Full Disk Access, but that changed nothing. I also tried running duplicity manually to see if anything would show up in that whitelist, but nothing did.  Edit: the answer to  is not a solution. I clearly explained that I have already tried whitelisting to no avail.


Convergence of the sequence $ a_{n}=1+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{n}-\int_{1}^{n} \frac{1}{x} d x$

Let $$ a_{n}=1+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{n}-\int_{1}^{n} \frac{1}{x} d x$$ for all $n \in \mathbb{N} .$ Show that $\left(a_{n}\right)$ converges. Actually $ a_{n}=1+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{n}$ is the Reimann upper sum of $f(x)=\frac{1}{x}$ on the interval $[1,n]$ relative to a partition such that  each subinterval of unit length, But I couldn't prove the convergence. Can we use the fact $\ln (n+1) \leq 1+\frac{1}{2}+\ldots+\frac{1}{n} \leq 1+\ln n$


I have a problem. My Wine has a C drive, but it's invisible. When I try to locate it in terminal, I can see the path: /home/michal/.wine/drive_c/windows  Problem is, when I open my user directory "Michal", the /.wine/ directory is not visible. It's simply not there. How can I access it using Ubuntu's graphic interface?


Do I still need to keep my "Submit" or "Search" button?

Many sites now provide a search bar without the buttons, and everyone (?) understands that you press enter afterwards anyway.  Is it beneficial to keep the Search button for this case? Do I gain or lose anything by removing it?


What does this piece of python indexing code do

Please explain me what does this piece of code do.  h should be 32Byte result from sha256 calculation.  I am rewriting parts of this code for my project in C++ and I'm not sure if this switches byte order per 4byte chunk or change byte order on whole 32byte number.  def reverse_hash(h):     return struct.pack('>IIIIIIII', *struct.unpack('>IIIIIIII', h)[::-1])[::-1]   And, how does this array index work ?     [::-1]   Thanks for any and all info


Image of a line in $\mathbb{P}^2$ under Veronese embedding

Consider the Veronese surface $S$ defined by the map:   $$\phi: \mathbb{P}^2\rightarrow \mathbb{P}^5$$   where $\phi(x_0,x_1,x_2)=(x_0^2,x_0x_1,x_0x_2,x_1^2,x_1x_2,x_2^2)$.    The problem asks to show that a line in $\mathbb{P}^2$ is mapped to a conic in $\mathbb{P^5}$  I will use the following notation The definition of the Veronese map will be taken from the question above. I will denote the coordinates in $\mathbb{P}^{5}$  by $[z_{0}:\ldots:z_{5}]$ and the coordinates in $\mathbb{P}^{2}$ by $[x_{0}:x_{1}: x_{2}]$.  Claim The Veronese surface is cut out by three quadrics: $$C_{1}:  z_{0}z_{3} - z_{1}^{2} = 0$$ $$C_{2}: z_{0}z_{5} -z_{2}^{2}= 0 $$ $$C_{3}: z_{3}z_{5} - z_{4}^{2} = 0. $$   Suppose a line in $\mathbb{P}^2$ is defined by $ax_0+bx_1+cx_2=0$. So can the image of the line in $\mathbb{P}^5$ be thought as the intersection of $S$ and something else? I have the following questions:   How do we show that it is a conic?


Why can't humans throw as fast as bullet and what law is involved?

If desert eagle 7g bullet can accelerate the velocity to 560m/s (In Average) And baseball 149g can only be accelerate to the velocity of 45m/s (In History)


Variation of Hubble constant in cosmological timescales

Although the Hubble constant appears to be a constant, it is not really a constant.  Is the Hubble constant decreasing over cosmological timescales?


How does one experimentally determine chirality, helicity, spin and angular momentum of a fundamental particle?

If I've got an instance of a fundamental particle, how can I separate out the measurements of these four quantities?  (I think) I understand the theory behind them, and why the particles in the standard model are predicted to have the values they do. However, the process of validation of these numbers eludes me. How have they been historically measured?


I somehow deleted my Desktop from nautilus places, it does not show in the places part of Nautilus anymore as you can see from the picture.    And also now my Desktop lists the contents of my home folder, not the Desktop folder. How can I fix this? I use Ubuntu 14.04 and GNOME 3.


Can my Macbook Pro's display receive inputs from other sources?

Is it possible to use my Macbook Pro's display to receive inputs from other sources?


Can i asked for a text book recommendation to study time series analysis if i don't have a strong background in Probability? My background is in Pure Mathematics and my probability background is only as good as the basic understanding of discrete and continuous random variables. I tried many text but all of them requires a strong probability background.


I've installed hplip-3.19.3.run on my Ubuntu 16.04 to use my LaserJet M1132 MFP and the driver was installed, but it keeps asking for an installation of proprietary plugin. I downloaded the plugin from the HP site and passing it through a existing location but the installation always fails:      I tried to run the plugin file through the terminal:   root@pc:/home/user/Downloads# sh hplip-3.19.3-plugin.run Verifying archive integrity... All good. Uncompressing HPLIP 3.19.3 Plugin  Self Extracting Archive..............................................................  HP Linux Imaging and Printing System (ver. 3.19.3) Plugin Installer ver. 3.0  Copyright (c) 2001-18 HP Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details.  Plug-in version: 3.19.3 Installed HPLIP version: 3.19.3 Number of files to install: 64   Done.   But I'm still getting the installation required plugin message.     Still no printing... It seems that the printer getd the print command  but the paper is blank.  Can anyone can help me?


PyQGIS toggle group visibility (and recursively subsub...group visibility)

I would like to set visibility of a layer group and all of its children (and grand-children and so on...) using PyQGIS (QGIS 2.14.1).  Assume the groups name is g0 with subgroups g0[1...n] and subsub...groups g0[1...n][1...n][...].  QgsProject.instance().layerTreeRoot().findGroup('g0').setVisible(False)   sets the group and ALL what comes beneath invisible, so far so good:    But vice versa  QgsProject.instance().layerTreeRoot().findGroup('g0').setVisible(True)   sets the group visible and leaves all its children untouched, wich results in nothing visible at all:    QgsProject.instance().layerTreeRoot().findGroup('g0').updateChildVisibility()   only touches the direct children and not recursively all the descendants:    I wonder why manually setting the root groups (g0) visibility does result in recursively setting the visibility of all beneath it at all.  Question: Do I have to implement some recursive function to set the visibility of a group and its whole big family, or is there a more convenient way to accomplish this? Or is here something buggy?


I was working in a tab delimited text file that I want to edit on excel. I've got the warning message that if I saved this file after editing I might lose some of the file's proprieties. So I pressed on continue but then it saved it with hidden characters that doesn't appear unless I use the "less" command. It also appears at the end of each line as "^M".  I just want to get rid of it so I could use this file in R. Is there any easy way to get rid of that?


How to solve $y^2=3x^4+3x^2+1$ for integers.

If $x,y \in \mathbb Z$ , then find all the solutions of   $$y^2=3x^4+3x^2+1$$       I was asked this question by my friend who said that he encountered this while solving another problem. I have tried several things but am unable to solve this question. Moreover, this has to be done using elementary methods only. So far, I have tried to factorize and use Pell's equation. At the end, I'm getting $$2y_{n} + (2x^2_{n}+1)\sqrt{3}=(2+\sqrt{3})^{n}$$   where $n \in \mathbb Z^{+}$    But I'm not able to figure out how to show a contradiction from here. Can anyone please help me out? Thanks.


$f$ measurable, $f=g$ almost everywhere, complete measure space

Let $X$ be a nonempty set, $\mathcal{X}$ a $\sigma$-algebra of subsets of $X$, and $\mu$ a measure on $\mathcal{X}$ (i.e., $\mu:X\to[0,+\infty]$, $\mu(\phi)=0$, and $\mu$ is countably additive.  Proposition: If $f:X\to R$ is a measurable function, $f=g$ almost everywhere, then $g$ is a measurable function.  Can this proposition be proved in the the measure space is not complete ($\mathcal{X}$ contains all subsets of measure zero)? If not, can someone provide a counterexample?  Thanks.


package Preview, how could I ask LaTeX to calculate values for PreviewBbAdjust?

I am trying to output very large (bussproofs) prooftrees, say with hundreds of nodes. An attempt I am trying is by the package preview. By trial and error, I may find a large value to set PreviewBorder (PreviewBbAdjust), and so it seems I succeed to display a large prooftree, see/try my MWE below.   Question is: is there a way to ask latex to calculate the needed value(s), for each given tree?  \documentclass[14pt]{article} \usepackage{bussproofs} \usepackage{amssymb} \usepackage{latexsym} \usepackage[active,tightpage]{preview} \PreviewEnvironment{prooftree} %\setlength\PreviewBorder{990pt}% \renewcommand\PreviewBbAdjust{-100pt -100pt 990pt 100pt} % This is the "centered" symbol \def\fCenter{{\mbox{\Large$\rightarrow$}}} \begin{document} \begin{prooftree} \Axiom$\Delta\fCenter\Pi$ \Axiom$\Gamma^\prime\fCenter\Delta,A$ \dottedLine \singleLine \UnaryInf$\lnot A,\Gamma^\prime \fCenter \Delta$ \UnaryInf$\lnot A,\lnot A,\Gamma^\prime \fCenter \Delta$ \singleLine \UnaryInf$\Gamma \fCenter \Delta$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta,B$ \Axiom$\Delta\fCenter\Pi$ \Axiom$\Gamma^\prime\fCenter\Delta,A$ \dottedLine \singleLine \UnaryInf$\lnot A,\Gamma^\prime \fCenter \Delta$ \UnaryInf$\lnot A,\lnot A,\Gamma^\prime \fCenter \Delta$ \singleLine \UnaryInf$\Gamma \fCenter \Delta$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta,B$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta B, 001$ \Axiom$\Delta\fCenter\Pi$ \Axiom$\Gamma^\prime\fCenter\Delta,A$ \dottedLine \singleLine \UnaryInf$\lnot A,\Gamma^\prime \fCenter \Delta$ \UnaryInf$\lnot A,\lnot A,\Gamma^\prime \fCenter \Delta$ \singleLine \UnaryInf$\Gamma \fCenter \Delta$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta,B$ \Axiom$\Delta\fCenter\Pi$ \Axiom$\Gamma^\prime\fCenter\Delta,A$ \dottedLine \singleLine \UnaryInf$\lnot A,\Gamma^\prime \fCenter \Delta$ \UnaryInf$\lnot A,\lnot A,\Gamma^\prime \fCenter \Delta$ \singleLine \UnaryInf$\Gamma \fCenter \Delta$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta,B$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta B, 001$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta B, 002$ \Axiom$\Delta\fCenter\Pi$ \Axiom$\Gamma^\prime\fCenter\Delta,A$ \dottedLine \singleLine \UnaryInf$\lnot A,\Gamma^\prime \fCenter \Delta$ \UnaryInf$\lnot A,\lnot A,\Gamma^\prime \fCenter \Delta$ \singleLine \UnaryInf$\Gamma \fCenter \Delta$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta,B$ \Axiom$\Delta\fCenter\Pi$ \Axiom$\Gamma^\prime\fCenter\Delta,A$ \dottedLine \singleLine \UnaryInf$\lnot A,\Gamma^\prime \fCenter \Delta$ \UnaryInf$\lnot A,\lnot A,\Gamma^\prime \fCenter \Delta$ \singleLine \UnaryInf$\Gamma \fCenter \Delta$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta,B$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta B, 001$ \Axiom$\Delta\fCenter\Pi$ \Axiom$\Gamma^\prime\fCenter\Delta,A$ \dottedLine \singleLine \UnaryInf$\lnot A,\Gamma^\prime \fCenter \Delta$ \UnaryInf$\lnot A,\lnot A,\Gamma^\prime \fCenter \Delta$ \singleLine \UnaryInf$\Gamma \fCenter \Delta$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta,B$ \Axiom$\Delta\fCenter\Pi$ \Axiom$\Gamma^\prime\fCenter\Delta,A$ \dottedLine \singleLine \UnaryInf$\lnot A,\Gamma^\prime \fCenter \Delta$ \UnaryInf$\lnot A,\lnot A,\Gamma^\prime \fCenter \Delta$ \singleLine \UnaryInf$\Gamma \fCenter \Delta$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta,B$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta B, 001$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta B, 002$ \BinaryInf$\Gamma,\Pi,A \fCenter \Delta, \Delta B, 003$ \end{prooftree} \end{document}


how to remove other linux os and stay with ubuntu only

I have latest ubuntu 15.4. I wanted to try fedora so I installed it afterwards and got dual boot. Now I want to remove fedora and stay with only ubuntu.   How do I completely remove fedora and retrieve the space I gave it ? How do I remove grub ?   please write in details. I saw  but it has little details and I counldn't manage to do that.    update: I tryed what kyodake suggested and still don't understand how to merge the 2 partitions. Bellow is the current status in my gparted: (I want to merge sda4 (deleted fedora) to sda1 (my ubuntu)). How do I mount it exactly ?


Is there any easier/different way to downgrade from 14.10 to 14.04 other than USB? I know it's a developmental branch which may make things different, but they want 14.04 now (LTS). A lot of data is riding on this machine which is part of a server cluster.  Any one have any luck using this?:


Eigenvalues of $AB$ and $BA$ where $A$ and $B$ are square matrices

Show that if $A,B \in M_{n \times  n}(K)$, where $K=\mathbb{R}, \mathbb{C}$, then the matrices $AB$ and $BA$ have same eigenvalues.   I do that like this:  let $\lambda$ be the eigenvalue of $B$ and $v\neq 0$  $ABv=A\lambda v=\lambda Av=BAv$  the third equation is valid, because $Av$ is the eigenvector of $B$. Am I doing it right?


Example of a ring such that $R^2\simeq R^3$, but $R\not\simeq R^2$ (as $R$-modules)

The usual example of unitary ring without the  property is the ring of column finite matrices, and in this case we have $R\simeq R^2$ as (left) $R$-modules. (See also .) In particular, we have $R^2\simeq R^3$.      I wonder if there is an example of unitary ring (without the IBN property) such that $R^2\simeq R^3$, but $R\not\simeq R^2$ (as $R$-modules).


How can I automatically make new computings after I have modified some value in a field in ArcGIS Desktop?

I'm a computer programmer and I have no idea about geographic things. I have got a long algorithm with a lot of computings, computed from a previous computed field. There are 7-8 computed fields and they refer to each other, so it's a bit complex algorithm. There is a chance, that the original values in the beginning of the long algorithms will change (some empty columns will have values and the algorithm needs to compute from them). How can I make this to be as automatic as it can be? I think there is other solution than run the python scripts on the fields again and again.


Best approximation of a vector $x=\begin{bmatrix}2&2&0&0\end{bmatrix}^\tau$ by the vectors in $M^\perp$, where $b\in M$ is given

In a unitary space $\Bbb R^4$, subspace $M=\operatorname{span}\left\{b=\begin{bmatrix}1\\1\\1\\1\end{bmatrix}\right\}\leqslant\Bbb R^4$ is given. Find the best approximation of the vector $x=\begin{bmatrix}2\\2\\0\\0\end{bmatrix}\in\Bbb R^4$ by the vectors from the subspace $M^\perp$.     My attempt:  Let's extend $\{b\}$ to the basis $\{b,c_1,c_2,c_3\}$ for the whole $\Bbb R^4$ and let's apply Gram-Schmidt to it. I thought the following choice of linearly independent vectors $c_1, c_2,c_3$ would be the most convenient one.  $$b=\begin{bmatrix}1\\1\\1\\1\end{bmatrix},c_1=\begin{bmatrix}1\\0\\0\\0\end{bmatrix},c_2=\begin{bmatrix}0\\1\\0\\0\end{bmatrix},c_3=\begin{bmatrix}0\\0\\1\\0\end{bmatrix}$$  $\begin{aligned}e_1&=\frac1{\|b\|}\cdot b=\frac12\begin{bmatrix}1\\1\\1\\1\end{bmatrix}\\f_2&=c_1-\langle c_1, e_1\rangle e_1=\begin{bmatrix}1\\0\\0\\0\end{bmatrix}-\frac12\left\langle\begin{bmatrix}1\\0\\0\\0\end{bmatrix},\begin{bmatrix}1\\1\\1\\1\end{bmatrix}\right\rangle\frac12\begin{bmatrix}1\\1\\1\\1\end{bmatrix}=\frac14\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix}\\e_2&=\frac1{\|f_2\|}\cdot f_2=\frac1{2\sqrt{3}}\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix}\\f_3&=c_2-\langle c_2, e_1\rangle e_1-\langle c_2, e_2\rangle e_2=\begin{bmatrix}0\\1\\0\\0\end{bmatrix}-\frac12\left\langle\begin{bmatrix}0\\1\\0\\0\end{bmatrix},\begin{bmatrix}1\\1\\1\\1\end{bmatrix}\right\rangle\frac12\begin{bmatrix}1\\1\\1\\1\end{bmatrix}-\frac1{2\sqrt{3}}\left\langle\begin{bmatrix}0\\1\\0\\0\end{bmatrix}\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix}\right\rangle\frac1{2\sqrt{3}}\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix}\\&=\begin{bmatrix}-\frac14+\frac14\\\frac34-\frac1{12}\\-\frac14-\frac1{12}\\-\frac14-\frac1{12}\end{bmatrix}=\begin{bmatrix}0\\\frac23\\-\frac13\\-\frac13\end{bmatrix}\\\\e_3&=\frac1{\|f_3\|}\cdot f_3=\frac1{\sqrt{6}}\begin{bmatrix}0\\2\\-1\\-1\end{bmatrix}\\\\f_4&=c_3-\langle c_3,e_1\rangle e_1-\langle c_3,e_2\rangle e_2-\langle c_3, e_3\rangle e_3\\&=\begin{bmatrix}0\\0\\1\\0\end{bmatrix}-\frac12\left\langle\begin{bmatrix}0\\0\\1\\0\end{bmatrix},\begin{bmatrix}1\\1\\1\\1\end{bmatrix}\right\rangle\frac12\begin{bmatrix}1\\1\\1\\1\end{bmatrix}-\frac1{2\sqrt{3}}\left\langle\begin{bmatrix}0\\0\\1\\0\end{bmatrix},\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix}\right\rangle\frac1{2\sqrt{3}}\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix}-\frac1{\sqrt{6}}\left\langle\begin{bmatrix}0\\0\\1\\0\end{bmatrix},\begin{bmatrix}0\\2\\-1\\-1\end{bmatrix}\right\rangle\frac1{\sqrt{6}}\begin{bmatrix}0\\2\\-1\\-1\end{bmatrix}\\&=\begin{bmatrix}-\frac14+\frac14\\-\frac14-\frac1{12}+\frac13\\\frac34-\frac1{12}-\frac16\\-\frac14-\frac1{12}-\frac16\end{bmatrix}=\begin{bmatrix}0\\0\\\frac12\\-\frac12\end{bmatrix}\\\\e_4&=\frac1{\|f_4\|}\cdot f_4=2\begin{bmatrix}0\\0\\1\\-1\end{bmatrix}\end{aligned}$  We obtain an orthonormal basis $$\left\{\frac1{2\sqrt{3}}\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix},\frac1{\sqrt{6}}\begin{bmatrix}0\\2\\-1\\-1\end{bmatrix},2\begin{bmatrix}0\\0\\1\\-1\end{bmatrix}\right\}\ \text{for}\ M^\perp$$  $$x=\underset{\in\ M}{m}+\underset{ \in\ M^\perp}{n}$$  $\begin{aligned}n&=\sum_{i=2}^4\langle x, e_i\rangle e_i\\&=\frac1{2\sqrt{3}}\left\langle\begin{bmatrix}2\\2\\0\\0\end{bmatrix},\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix}\right\rangle\frac1{2\sqrt{3}}\begin{bmatrix}3\\-1\\-1\\-1\end{bmatrix}+\frac1{\sqrt{6}}\left\langle\begin{bmatrix}2\\2\\0\\0\end{bmatrix},\begin{bmatrix}0\\2\\-1\\-1\end{bmatrix}\right\rangle\frac1{\sqrt{6}}\begin{bmatrix}0\\2\\-1\\-1\end{bmatrix}+2\left\langle\begin{bmatrix}2\\2\\0\\0\end{bmatrix},\begin{bmatrix}0\\0\\1\\-1\end{bmatrix}\right\rangle2\begin{bmatrix}0\\0\\1\\-1\end{bmatrix}\\&=\begin{bmatrix}1\\-\frac13+\frac43\\-\frac13-\frac23\\-\frac13-\frac23\end{bmatrix}=\begin{bmatrix}1\\1\\-1\\-1\end{bmatrix}\end{aligned}$  So, $$\boxed{n=\begin{bmatrix}1\\1\\-1\\-1\end{bmatrix}}$$    Update note:  arithmetic mistake corrected.  Is this correct? If so, how could I improve it using, maybe, more efficient methods? Thank you in advance!


Prove that Riemann integrability implies boundedness.

Prove: If $f:[a,b] \to \mathbb{R}$ is Riemann integrable, then $f$ is bounded.  My class did this using proof by contradiction and epsilon-delta definition (which I have hard time understanding).   Is there an alternative proof (perhaps easier)? Can someone explain the proof by contradiction method?   I did not post the class proof because it's way too long. Thanks.


Why does the max aperture change when use Nikon 60mm AF-D Micro on D90 camera?

I have found that my Nikon 60mm Micro AF-D changes aperture from 2.8 to 3.2 when used with a D90. I have tried both A and M mode. Is it by design? Why?  I intend to buy  and it will lock the maximum aperture at 2.0 (my guess) instead 2.8. So should I buy it or not, or would it be better to buy the newer 50mm 1.4 AF-S version?


If $T(\bf{X})$ is a sufficient statistic for $\theta$, why does the conditional distribution of $\bf{X}$ given $T(\bf{X})$ doesn't depend on $\theta$?

I know that if $T(\bf{X})$ is a sufficient statistic for $\theta$, then the conditional distribution of $\bf{X}$ given $T(\bf{X})$ doesn't depend on $\theta$. However, I am not sure why this makes sense.   It seems that we will never know $\theta$, and that $\bf{X}$ to begin with already depends on $\theta$, and that $T(\bf{X})$ is a "coarser" summary than $\bf{X}$, so how can it be that given $T(\bf{X})$, the distribution of $\bf{X}$ no longer depends on $\theta$? Is there an intuition here?


Are both APT and APT-GET both different repositories?

I always wonder if APT and APT-GET are both different repositories? Are they different repositories?


Hearthstone opening strategies: why waste mana?

There are various articles on Hearthstone opening strategy which suggest it's a bad idea to use early-game spells and summons to damage your opponent directly, and that you should instead save them for minion removal.  An example: your starting hand contains an Elven Archer, a 1-cost 1/1 minion that does a point of damage when summoned. I've seen it advised that if going first, with that card in your hand, you should not play it, but save it for minion removal.  Another example:  Going second against a Rogue with a 2-cost 2/1 Loot Hoarder, Deathrattle: draw a card in your hand. The advice was not to play it and save the coin, because on her second turn, the Rogue can generate a dagger and kill the Hoarder.   I understand why, in most circumstances, it's better to remove a minion than damage the enemy. What's bugging me about these particular opening examples is why they're a better idea than doing nothing and ending the turn.  In both cases, you've wasted a point of mana, and the chance to take the initiatve. By having a minion on the board first, you can use the following turn to attack with that minion, possibly removing an enemy summon and leaving you clear to summon onto an empty board.   The Loot Hoarder one I find particularly puzzling. If the Rogue gets a dagger and kills it, you still have the initative, you've forced the Rogue to make what's possibly a suboptimal turn-2 play, you've done 2 damage to the Rogue and you got a card into the bargain. Sounds like a pretty good use of the coin to me.  What am I missing here?


When you type "ls -a", what is the significance of "." and ".."?

Whenever you type ls -a into the command prompt, you usually get all of your folders, files, and then you see that the first two entries are . and ..  Just curious, but what is the significance of these two entries?


We do citations when we refer to someone else’s papers but what about lecture notes? If I come across someone’s lecture notes which has a different way of presentation of a theorem or some problem and I wish to expose my students to it, how do I make use of it? Can I use the other person’s diagrams or solutions and give them the credit?


For numerical integration, is it true that higher degree of precision gives better accuracy always?

In case of numerical integration, is it true that higher degree of precision always gives better accuracy? Justify your answer.   I know the definition of degree of precision. For Trapezoidal and Simpson's 1/3 rule they are 1 and 3 respectively. Simpson's 1/3 gives better accuracy than Trapezoidal rule. Then whether the above statement is true always. If not, why? If yes, then why we learn Trapezoidal/ Simpson rule? Why we shall not establish/go for higher and higher DOP from generalized Newton-Cote's rule or other general quadrature formula .


show DIV inside IFRAME out of the container

I have created a custom dropdown with ul/li/div which works fine, that dropdown is inside a page loaded in an iframe.  Problem: to open the dropdown and see the items over the iframe. Right now what happen is that the  iframe. I have just tried to change z-index without any success. any suggestions will be  very helpful thanks  michele


This is a first for me. I've been having trouble upgrading Ubuntu 12.04. How do I fix this?  sudo apt-get upgrade:  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up linux-image-3.8.0-42-generic (3.8.0-42.62~precise1) ... Running depmod. update-initramfs: deferring update (hook will be called later) The link /initrd.img is a dangling linkto /boot/initrd.img-3.8.0-42-generic Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.8.0-42-generic /boot/vmlinuz-3.8.0-42-generic run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-42-generic /boot/vmlinuz-3.8.0-42-generic update-initramfs: Generating /boot/initrd.img-3.8.0-42-generic  gzip: stdout: No space left on device E: mkinitramfs failure cpio 141 gzip 1 update-initramfs: failed for /boot/initrd.img-3.8.0-42-generic with 1. run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.8.0-42-generic.postinst line 1010. dpkg: error processing linux-image-3.8.0-42-generic (--configure):  subprocess installed post-installation script returned error exit status 2 No apport report written because MaxReports is reached already                                                               dpkg: dependency problems prevent configuration of linux-image-generic-lts-raring:  linux-image-generic-lts-raring depends on linux-image-3.8.0-42-generic; however:   Package linux-image-3.8.0-42-generic is not configured yet. dpkg: error processing linux-image-generic-lts-raring (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already                                                               dpkg: dependency problems prevent configuration of linux-generic-lts-raring:  linux-generic-lts-raring depends on linux-image-generic-lts-raring; however:   Package linux-image-generic-lts-raring is not configured yet. dpkg: error processing linux-generic-lts-raring (--configure):  dependency problems - leaving unconfigured No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-image-3.8.0-42-generic  linux-image-generic-lts-raring  linux-generic-lts-raring E: Sub-process /usr/bin/dpkg returned an error code (1)   I have over 2TB of space remaining on the hard drive. I don't understand:   gzip: stdout: No space left on device  MaxReports is reached already


For the non-specialist, what is the difference between various knife qualities?

Trying to buy a knife recently there are some that are $10, some $50 and all the way up to $300+. I understand that there are differences in the quality of the steel and its hardness and how long it holds its edge for. However there isn't a clear difference in features at the different price points apart from I assume more expensive works better somehow. For the non-specialist, by which I mean someone like me who cooks daily and would like a good tool but doesn't care about the marginal gains, what is the right level to buy?  I'm assuming like a lot of things there's an 80/20 principle where you get 80% of the benefits after a certain expenditure and then next few hundred bucks are squeezing out the last few percent


Distribution of error terms in linear regression

In the assumptions of linear regression, it is mentioned that error terms should be normally distributed with mean 0 and standard deviation $\sigma$. Is it necessary for the error terms to be normally distributed or just the latter part is enough to meet the assumptions?


Error establishing a database connection - Multi-site with subsite don't exisit

I have a multi site setup to which I have placed   define( 'NOBLOGREDIRECT', 'http://www.example.com' );   In the wp-config.php file  However when I visit a site which dose not exist (e.g. ) I'm greeted with the following     Error establishing a database connection   Instead of being redirected to the homepage as defined.  I have disabled all plugins and reverted back to the default .httaccess however this has not solved the issue.  How can I solve this and have a none existing subsites redirected to the appropriate location?


Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease              Ign:2 https://download.sublimetext.com apt/stable/ InRelease              Err:3 https://download.sublimetext.com apt/stable/ Release   Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 104.236.0.104 443] Reading package lists... Done                              W: https://download.sublimetext.com/apt/stable/InRelease: No system certificates available. Try installing ca-certificates. W: https://download.sublimetext.com/apt/stable/Release: No system certificates available. Try installing ca-certificates. E: The repository 'https://download.sublimetext.com apt/stable/ Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


Should I follow Mac or Windows UI guidelines?

In my product am using a modeless dialog box with “OK” and “Minimize” button. Where I can place these buttons on the Top Left or Top Right? If I place on the Top Left it shows am focused only on the Mac Users. Is there any standards?


How to combine/merge pages in pdf file (GUI)?

I want to combine two pages in pdf file into single page.  Consider I have a pdf file in which there are two pages, now I want to combine two pages into (single) one, No-matter for (how-long) page-size!  How to do that?  Note: This question is not about combine two pdf files or merging pdf files or adding pages in pdf files.  Also visit .


How can I create a template of this boat deck out of a photo?

I want to be able to take a picture of the deck of a boat -- sample pics included. It is a flat plane. I want to be able to input the picture in my CAD program to create templates that I will cut.  UPDATE I've been doing my homework with all the information you gave me, I really appreciate the help. You know your stuff. This photogrammetry is confusing, so much info to learn especially for a rookie like myself. I've been playing around with Meshroom a little more just beacuse it looks more user friendly. I was able to put in some pictures into the program but now its giving me a error message.  Right now I'm using the prodim proliner for the measurements, but honestly for the price that it cost its not that easy to work with in some spaces and it still takes me some time to measure. I'm not happy with it at all. Do you think that Meshroom would be suitable for me? You also mentioned a CAD program with reverse engineering would work?


I have an array named "seat" in my javascript file.It is used to store the seat numbers when a user clicks on a seat in a theater layout.In my function,I've used a window alert to show the user his selected seats,and when he clicks OK button,I want to send these booked seats(values in my array) to a php file named "confirm".     Here is the javascript function.    var init = function (reservedSeat) {     var seat = [], seatNo, className;     for (i = 0; i < settings.rows; i++) {         for (j = 0; j < settings.cols; j++) {             seatNo = (i + j * settings.rows + 1);             className = settings.seatCss + ' ' + settings.rowCssPrefix + i.toString() + ' ' + settings.colCssPrefix + j.toString();             if ($.isArray(reservedSeat) && $.inArray(seatNo, reservedSeat) != -1) {                 className += ' ' + settings.selectedSeatCss;             }             seat.push('
' +                       '' + seatNo + '' +                       '
');         }     }     $('#place').html(seat.join('')); };  $('.' + settings.seatCss).click(function () { if ($(this).hasClass(settings.selectedSeatCss)){  alert('This seat is already reserved!'); } else{     $(this).toggleClass(settings.selectingSeatCss);  } });  $('#btnsubmit').click(function() {     var seat = [], item;     $.each($('#place li.' + settings.selectingSeatCss + ' a'), function (index, value) {         item = $(this).attr('title');                            seat.push(item);                        });     window.alert(seat);  $_POST('confirm.php', {seat: seat}) }) <form method="POST" action="confirm.php">
<input type="Submit" id="btnsubmit" value="Submit" />
 </form>     And this is my php code.  $seat = "";  if(isset($_POST['seat'])) {     $seat = $_POST["seat"];     print_r($seat); }   When this is executed I get the window alert,but the values stored in the array does not pass to the php file.Is there something wrong with this code?Please help!I'm stuck here!!!


Something fishy going on - a duplicate Stack Overflow kind of website

Googling for some question I saw this result on first page, on clicking it, the UI is exactly same as Stack Overflow. Hovering over the links show nothing unusual, but clicking on any link opens up 2-3 ads windows.    It seems someone is making money, but duplicating the UI and content of Stack Overflow.


How to edit "~/.profile" to change file sort order

I am a newbie user with a fresh install Ubuntu "Bionic Beaver" (v18.04), who has migrated from Windows 10. I want to make the file sorting order in Ubuntu match that of Windows, because that is how I have organised my (extensive) file archive. I think the answer lies in a post called , which says:  If you want collation to be equivalent to strcmp() sort order (i.e. do a >simple comparison of the code point values for the characters in the string), >you can switch to the legacy C locale for collation. This can be done by editing ~/.profile and adding (or modifying) a line like >the following: export LC_COLLATE=C  These instructions are too obscure for me to follow and I do not know where to find this ~/.profile, or how to edit it safely. I hope someone will be able to give me explcit instructions on how to do this that are intelligible to someone of my inexperienced status.


What I'm going to do is, I'm going to ask you about this sentence form

Is there a name for sentence forms that tell you that they’re about to tell you something? For example:  “What he did was, he went to the bus stop to meet his friend.” “What she’s doing is, she’s priming the canvas with gesso.” “What I’ll do is, I’ll call you if I’m running late.”  These sentences could be described as “unnecessarily wordy” or maybe “circuitous”, but is there a technical, grammatical term for these sentence forms? If not, then is there a term for the italicized phrases?


How does an iterator object keep track of its position in javascript?

I am trying to lear generators but before going into that I want to know how/why this works  function makeIterator(array){     var nextIndex = 0;         return {        next: function(){            return nextIndex++        }     } } var it = makeIterator([1,2,3,4]);   Why is it that it.next() return 1 and another it.next() returns 2. How does it know?   Is there a way to see how it works behind the scenes?


Convert \thebibliography into BIB file, semi-automatically

I have a paper in TeX that has the \thebibliography section. I need to convert it into a BIB file.   I realize that it cannot be done automatically, but are there tools that at least partially help, with post-editing? Preferably online tools where I could paste the whole list, not pasting things one by one.  The domain is computer science and specifically natural language processing, so mathematics bibliography tools most probably will not help here.


On Area 51, when you have a spoiler, you can see the text underneath.      Text:


Short story man in dream facing monster in area remembers his Dad's .45 auto shoots monster

Short story where man is in a dream world or a world that is not quite real, his thoughts can become true.  He is either a prisoner or a subject of an experiment, in a sandy arena facing a monster.  To save himself he remembers his Dad's Colt .45 auto and shoots the monster.  This is probably from the fifties or early sixties.  I think that he was from the South and when he was thinking he contrasted the Colt .45 to the .22 rifle he hunted with, his father had brought it back from World War Two and as part of his conjuring it up he remembers being allowed to shoot it when he was a young boy and how heavy and noisy it was; at that point it appears in his hand and he shoots the monster.


Sinking cue ball after the 8 ball in pool

When I designate the pocket I'm putting the 8-ball and I am successful and then follow it in with the cue ball - do I still win?


Browse Mobile Websites From Desktop/Laptop

Is it possible to browse the internet from a laptop so that the web sites you visit think you are browsing from a mobile device?  Say I need to connect via a very low bandwidth connection and just using the mobile version of the site is sufficient?  Currently I'm using Vista and Firefox 3.5


How to edit files in a terminal with nano?

Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I cannot understand how to work with it.  If I start nano by running nano, the bottom text is supposed to help me but all I see are things like ^G Get Help    ^O WriteOut.   How can I open text files for editing? How can I save the file? How can I quit the editor without saving the changes? How to edit? I heard that you've to enter some commands to begin editing in vi, is this true for nano too? Sometimes, if I manage to open a file, the text is unreadable due to its colors. How can I disable these colors? (see the image below) In the some files, lines are truncated because those do not fit in the screen. How can I prevent that from happening? (see the image below)


How to do binding between DataGrid header and List

I have List and i need to create DataGrid that each item in the List is a column.   So i try to do this   <DataGrid Columns="{Binding MyList}" />   But this is not working.  So i also try this    <DataGrid AutoGenerateColumns="False" ItemsSource="MyList"/>   also not working.


I am fairly new to AI and still learning. Like the title stated, i would like to know how to fill the shape with  gradient colors (or so i dont actually know how to call it) such as this. I tried with blend tool and it worked but i would like to know if there is any faster way to fill it directly rather than  using  blend tool. Thank in advance !