Neither GRUB Nor Windows Recognize Each Other

SOLVED: I mis-installed it. Thanks David. I installed Ubuntu 20.04 alongside a preexisting Win10 installation. Now, neither OS recognizes the other's presence. I can miraculously use both, but it's a hassle and all the fixes I've found haven't worked. I have tried various fixes for both issues: When I boot and go into startup menu > boot device options, I'm faced with  (first image) the bottom option "Notebook hard drive" starts GRUB and I can get into Ubuntu normally. But why isn't it recognized as Ubuntu? If I don't go into the boot menu and let the computer do its thing, it goes to Windows automatically. The second image shows what happens if I go into the BIOS boot options. There's that "notebook hard drive" option under "Legacy boot order", but I can't seem to turn that on. I already have secure boot turned off, as you see. Getting the computer to start directly into GRUB would presently be disastrous anyway, because GRUB in turn doesn't recognize Windows and I'd be unable to use it! I've tried  (second answer, "If the os-prober method doesn't work...") and indeed, now there's a Windows 10 entry. But selecting it gives me a black screen with the text An operating system wasn't found. Try disconnecting any drives that don't contain an operating system. Press any key to restart Note that I don't actually have any rows in my lsblk output with /boot/efi in them, but /dev/sda2 has an appropriate label: NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT loop0    7:0    0  55,5M  1 loop /snap/core18/1988 loop1    7:1    0  55,5M  1 loop /snap/core18/1997 loop2    7:2    0   219M  1 loop /snap/gnome-3-34-1804/66 loop3    7:3    0  64,8M  1 loop /snap/gtk-common-themes/1514 loop4    7:4    0    51M  1 loop /snap/snap-store/518 loop5    7:5    0  31,1M  1 loop /snap/snapd/11036 loop6    7:6    0  32,3M  1 loop /snap/snapd/11588 sda      8:0    0 447,1G  0 disk  ├─sda1   8:1    0   499M  0 part  ├─sda2   8:2    0    99M  0 part  ├─sda3   8:3    0    16M  0 part  ├─sda4   8:4    0 186,3G  0 part /home/kilian/Windows ├─sda5   8:5    0   603M  0 part  ├─sda6   8:6    0 186,3G  0 part / └─sda7   8:7    0    15M  0 part  sr0     11:0    1  1024M  0 rom  /dev/sda2: UUID="C495-5A59" TYPE="vfat" PARTLABEL="EFI system  partition"PARTUUID="6795db25-5a95-4724-a256-4b7cf3c60931"  Last thing I tried just now was the boot-repair tool suggested below the custom GRUB entry in the AskUbuntu post I linked. I got this: WindowsEFI detected. Please disable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, and use this software from a live-CD (or live-USB) that is compatible with UEFI booting mode. For example, use a live-USB of Boot-Repair-Disk-64bit (), after making sure your BIOS is set up to boot USB in EFI mode. Anyway, before I continue trying out fixes that work on either problem in isolation - is this even two separate problems? Or are both linked to the same issue, did I do something fundamentally wrong when partitioning my SSD? Has anyone encountered this particular problem?


How do I create image directly from latex

I want to include some figures that are created by tikz package. The figures are in pdf files. Then I convert them to images and include images in other tex files. The reason is that I only need to include part of pdf pages in other files.  I wonder if there is a way to create image directly from latex and tikz codes to save time. Thanks.     Edit by       The user states in a comment that he uses  (a   WYSIWYG LaTeX-based word processor) which apparently does not support   tikz and friends.


Prove that $\prod_{k=1}^{n-1}\sin\frac{k \pi}{n} = \frac{n}{2^{n-1}}$

Using $\text{n}^{\text{th}}$ root of unity  $$\large\left(e^{\frac{2ki\pi}{n}}\right)^{n} = 1$$  Prove that   $$\prod_{k=1}^{n-1}\sin\frac{k \pi}{n} = \frac{n}{2^{n-1}}$$


I was wondering if anyone would be able to advise on a debate my business partners and I are having... In the interest of fairness, I'm not going to say which side I am on, but I'd like to get some feedback from some pros. Below is a link to the site in question and we are split on whether or not to disable mousewheel scrolling on the map.   I'd really appreciate some feedback on which option you all think is most appropriate, and thanks in advance for any help you can give :)


Why can't fire hurt Daenerys but it did to Jon Snow in season 1?

As stated in  fire can burn any Targaryen.  If that is the case, why doesn't fire hurt Daenerys?  In one of the episodes of season 1 or season 2, Daenerys says Viserys is not a true heir to the throne as he got burnt. Why did she say that?


URLs not being parsed & linked correctly in comments

shows the URL parsing bug I just encountered. It's pretty self-explanatory.


bpy/file browser: get selected file names

Is there a way in bpy to get a list of all selected files from the file browser?  I have this code, but it is only for the active file selection:  selectedFile = '' for screenArea in bpy.context.window.screen.areas:    if screenArea.type == 'FILE_BROWSER':         params = screenArea.spaces[0].params         selectedFile = os.path.join(params.directory, params.filename)         break


I'm trying to add a custom condition in a query:   $today = new DrupalDateTime();  $today = $today->format("m-d");  $ids = Drupal::entityQuery('user')   ->condition('status', 1)   ->condition("date_format('field_birthday','%m - %d')", $today, '=')   ->execute();   Error:     PHP message: Uncaught PHP Exception   Drupal\Core\Entity\Query\QueryException:   "'date_format('field_birthday','%m-%d')   Version Drupal 8.8.4  What is the best way to solve this?


Where is the focal point of a camera lens?

If the distance between the center of the lens and the film is called Focal length, does that mean the focal point of the camera lens is located on the film?


Is it possible to run apache as root, to execute scripts

I am unable to execute commands (shell_exec) with php, and read on stackoverflow / here that the solution was to run apache as root. Is this possible / is this a totally wrong solution? When I try to execute commands with php it does nothing. I am trying to run a python script with variables from a PHP script and it is not working, it does nothing. Doing this on a centos vps


How to remove extra materials from a mesh if the mesh has more than 1 material?

I am trying to write a little script that checks if mesh has more than one material, and if it does, remove materials until there is only one left on the item. Here is what I have so far: import bpy for ob in bpy.data.objects:     number_of_mats = len(ob.material_slots.items())     if number_of_mats > 1:         for i in range(number_of_mats-1):             # remove material here?  I cannot seem to figure out the method to remove a mat at this point. Any suggestions?


Is there bijection from $\mathbb R$ to $\mathbb R^2$?

It is easy to show that there is bijection from $\mathbb N$ to $\mathbb N^2$, but is  there similar one for $\mathbb R$ and $\mathbb R^2$ ?  This problem is equivalent to other one - "Is there function $f:\mathbb R^2 \rightarrow \mathbb R$ that has inverse of the form $f^{-1}:\mathbb R \rightarrow \mathbb R^2$?" Thanks for all the help


I need to capture a drop-down menu of a program. If I open the menu and then press PrntScr (print screen button), it first closes the menu and then captures the screen. I tried Ctrl+PrntScr, Shift+PrntScr, Alt+PrntScr but no success. I am using Ubuntu 14.04.


I have a problem in removing a div without its content. I have this html structure:

Menu 1

Menu 2

Menu 3

Menu 4

   I need to remove the div containing the class "wrap". I desire a structure like this, only without "wrap":

Menu 1

Menu 2

Menu 3

Menu 4

   I tried with this jquery:  $("button").click(function () { $(".test").not().siblings().unwrap(); });   and with this:  var content = $(".wrap").html(); $(".wrap").remove(); $("body").append(content);   with the second one I reach my target but I lost the DOM order. How can I fix it?


I need a help about Regex ( add space after characters)

I need your help my needs is i want to add space after the first two numbers and the rest is space by three numbers and repeat this algorithm after each comma ","  For example 123456789 => result: 12 345 678 9  12345,678910 => result: 12 345,67 891 0  I have input     <input onkeypress="myFunction(this)" type="text">   and in js :  > function myFunction(elem){ >         //var value=elem.value.replace// i need your help >         //elem.value=value; >     }


I've been learning about polar curves in my Calc class and the other day I saw this suspiciously $r=1-\cos \theta$  looking thing in my coffee cup (well actually $r=1-\sin \theta$ if we're being pedantic.) Some research revealed that it's called a caustic. I started working out why it would be like this, but hit a snag. Here's what I did so far:  Consider the polar curves $r=1-\cos \theta$ and $r=1$. Since for a light ray being reflected off a surface (or the inside of my cup) the $\angle$ of incidence =$\angle$ of reflection, a point on the circle $(1,\theta)\to(1,2\theta)$. It looks like this has something to do with the tangent lines, so I pretend there's an $xy$ plane centered at the pole to find the slope of the line connecting the points. Since it's the unit circle the corresponding rectangular coordinates are $(\cos \theta, \sin \theta)$ and $(\cos 2\theta, \sin 2\theta).$ So  $$m={\sin 2\theta-\sin \theta \over \cos 2\theta-\cos \theta}$$ now we see if it matches up with the slope of the lines tangent to the cardioid $$\frac{dy}{dx}={r'\sin \theta+r \cos \theta \over r' \cos \theta - r \sin \theta}={\sin^2\theta - \cos^2 \theta +\cos \theta \over 2\sin \theta \cos \theta -\sin\theta}={\cos \theta - \cos 2\theta\over \sin 2\theta-\sin \theta}$$  They're similar, but not identical. In particular $\frac{dy}{dx}=-\frac1m$. What error have I made, or what have I overlooked conceptually? Thanks in advance.


Windows 7 Pro with Windows 8.1 Pro license?

The company I work for will be replacing a group of computers with new.  With the pending return of the normal start menu, I'd like to start looking to Windows 8.1 as a viable OS option for the future.   However, with that not being an option right now I was wondering, will we be able to (legally) install Windows 7 Pro with Windows 8.1 Pro licenses?


I used the following pattern to validate my email field.       return Regex.IsMatch(email,                  @"^(?("")("".+?(?<!\\)""@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-z])@))" +                  @"(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-0-9a-z]*[0-9a-z]*\.)+[a-z0-9][\-a-z0-9]{0,22}[a-z0-9]))$",                  RegexOptions.IgnoreCase, TimeSpan.FromMilliseconds(250));   It uses the following reference:   My requirement is to have maximum number of 64 characters for user part, and max length for whole email string is 254 characters.  The pattern in the reference only allow max 134 characters. Can someone give clear explanation of the meaning for the pattern? What is the right pattern to achieve my goal?


Indian passport holder with Canada student visa, want to visit USA as a tourist

I am studying in Canada  (London Ontario) on a student visa. Wish to visit USA during the Christmas break. How to get a US Visa?


Let $g : \Bbb N \times \Bbb N \to\Bbb N \times \Bbb N$ defined as $g(m,n) = (m + n,m - n)$

Determine if $g$ is    injective; surjective;  bijective.   Question on a recent test regarding one-to-one and onto functions. Was very difficult for me, could not even begin to answer either. This is a proofs class, much help would be appreciated.


Characteristics of parallel parabola (offset curve) and the formula to find the equation

What are the characteristics of parallel parabola? And is there any formula to find the equation of parallel parabola if we know the equation of one parabola?


Test Controller for Visualforce Email Template Component - How?

I have a controller that does simple queries of data for a visualforce email template.  Not setting or computations, simple queries for list lines.  How do I test this?  public class QuoteLineEmailController {  public id QuoteID {get;set;}  public SBQQ__Quote__c getQuotee() { return QuoteId == null? null:     [Select Name, ID, Subtotal_Before_Trade_In__c, Trade_In__c, Total_After_Trade_In__c, Opportunity_ID_Number__c,                 Special_Incentive_Total__c, SBQQ__NetAmount__c, Net_Amount_Internal__c,                 Internal_External_Difference__c, Approved__c, CurrencyIsoCode      FROM SBQQ__Quote__c       WHERE ID = :QuoteID];   }      public list<SBQQ__QuoteLine__c> getQuoteLines() {      list<SBQQ__QuoteLine__c> QLI = [SELECT  Name, SBQQ__ProductCode__c, SBQQ__Quantity__c, SBQQ__ListPrice__c,                                        Discounts__c, SBQQ__NetPrice__c, SBQQ__NetTotal__c, Internal_Discounts__c, Internal_Discount_Type__c, CurrencyIsoCode,                                        Net_Unit_Price_Internal__c, SBQQ__Optional__c, Net_Total_Internal__c, Internal_External_Difference__c, Tier__c,                                       Trade_In_Discount_Grouping__c, Order_Admin_Description__c, Product_Name_and_Description__c                                     FROM SBQQ__QuoteLine__c                                      WHERE SBQQ__Quote__c = :QuoteID ORDER by Name];      return QLI;                          List<SBQQ__QuoteLine__c> result = [SELECT   Name, SBQQ__Optional__c, Trade_In_Discount_Grouping__c                                     FROM SBQQ__QuoteLine__c                                      WHERE SBQQ__Quote__c = :QuoteID ORDER by Name];     return result;     }  public Boolean showTradeInSection { get {   List<SBQQ__QuoteLine__c> all_qli = getQuoteLines();   Boolean result = false;   for (SBQQ__QuoteLine__c qli : all_qli) {     if (qli.Trade_In_Discount_Grouping__c == 'Additional Discounts') {       result = true;       break;     }   }   return result; } private set; }  public Boolean showOptionalSection {     get {   List<SBQQ__QuoteLine__c> all_qli = getQuoteLines();   Boolean result = false;   for (SBQQ__QuoteLine__c qli : all_qli) {     if (qli.SBQQ__Optional__c == TRUE) {       result = true;       break;     }   }   return result; } private set; }     public list<SBQQ__QuoteLine__c> getCSVQuoteLines() {      list<SBQQ__QuoteLine__c> CSVQLI = [SELECT   Name, SBQQ__ProductCode__c, SBQQ__Quantity__c, SBQQ__ListPrice__c, Order_Number__c,                                      Price_List_Name__c, PRICE_MODF_NAME2__c, PRICE_MODF_NUMBER2__c,                                      User_Description__c, Internal_Discount__c                                     FROM SBQQ__QuoteLine__c                                      WHERE (NOT SBQQ__ProductCode__c LIKE '%Bundle')                                         AND SBQQ__Quote__c = :QuoteID ORDER by Name];      return CSVQLI;                      }  }


Smith and Johnson's approach [123] vs. Smith's and Johnson's approach [123]

I am currently writing a paper and want to label an approach proposed by Smith and Johnson in their work (exemplary reference [123]) as: Smith and Johnson's approach [123] or Smith's and Johnson's approach [123]. What would be the correct one?


Almost 10 years back when I was a kid, we had a picture in our school text of wild buffaloes drinking water from a river - which was visibly muddy. I asked my mother of why we need to drink filtered water when they needn't. The question still persists now!  Do wild animals have better immunity? Has the potency of the human immune system reduced in the course of evolution due to better hygiene (different from hygiene hypothesis?)? Do animals also suffer from infections (like giardiasis which are known to spread by drinking contaminated water) and hence lesser life expectancy (due to lesser hygiene?)?


How long can raw fish be kept if it has been thawed in the refrigerator?

I bought fish, repackaged and froze it immediately when I got home. My husband thawed it in the refrigerator (without my knowledge) for 2-3 days. I was afraid of the possibility of food poisoning and refused to eat it. He became really angry, saying the fish was 'just fine' and I was wasting good food. How long can you safely keep previously frozen fish thawed before eating it?


What is the meaning of "it was to this"?

What is the meaning of "it was to this" in the following sentence?  It was to this remote, impregnable fortress that Hitler, and a coterie of his most fanatical supporters, intended to retreat when the Wehrmacht was beaten. -Catherine Bailey Fey's war-


How would I edit a .conf file without gedit from the terminal over SSH?

I guess my question is closer to "How would I go about editing a .conf file from a remote connection via an ssh terminal?"   I downloaded an ssh emulator to my iPhone which works fine and dandy, and I can ssh to my computer at home via DNS services. Right now I'm trying to annoy my room mates who are home right now my getting my machine to beep.  In order to do that I need to edit /etc/modprobe.d/blacklist.config. I tried sudoedit but I got no text.  Anything graphical is out of the question, because I'm essentially in a dedicated terminal like if you pressed Ctrl+alt+F1.


How to dual boot ubuntu with Windows 7 without losing my files?

I downloaded the Ubuntu-13.04-Desktop-i386.iso (794.00Mo) file and burned it into a DVD of 4.7GB with a very low speed of burning.  Anyway the OS was bootable when I put the DVD the Ubuntu Installer appears it asks to choose language , try Ubuntu and Install Ubuntu.I chose Install Ubuntu. An OS detection and formatting disc step appears and it gives me options, install Ubuntu with Windows 7 , replace windows by Ubuntu ..etc.I choose Install Ubuntu with Windows 7 and a partition appears;   I don't really understand how to proceed?   I have a hard disc partitioned to 2 parts C:\ and D:\ .   C:\ size is 39.0 GB  the D:\ is 35.4 GB the free space on C:\ is 22GB/39GB   I have important files on D:\ drive. Please how do I install Ubuntu 13.04 with Windows 7 without loosing D:\ files and without loosing Windows 7 My Windows is : Windows 7 Ultimate 32 bit fr Thank you very much for your help


Did `man ls > temp.txt`. Output textfile is corrupted

When I execute man ls > temp.txt the output text file is corrupted. By corrupted I mean that first and last letters in some words are overly repeated.  Several first lines in temp.txt:  LS(1)                     BSD General Commands Manual                    LS(1)  NNAAMMEE      llss -- list directory contents  SSYYNNOOPPSSIISS      llss [--AABBCCFFGGHHLLOOPPRRSSTTUUWW@@aabbccddeeffgghhiikkllmmnnooppqqrrssttuuwwxx11] [_f_i_l_e _._._.]  DDEESSCCRRIIPPTTIIOONN   And so on. Without redirection man ls is perfectly normal. What's happening?


If $a^n, b^n$ and $c^n$ form a triangle for all $n \in \Bbb N$, prove that the triangles are isosceles.

If $a^n, b^n$ and $c^n$ form a triangle for all $n \in \Bbb N$, prove that the triangles are isosceles given that $a\geq b\geq c> 0$.   I started on the lines of $a< b+c$. But no idea how to proceed further. Tried using cosine law, but no help.


PHP regex to Javascript regex for HTML elements as string

I'm trying to switch some regex done in PHP to Javascript and didn't realize that they aren't the same syntax. I'm clearly no regex pro, so I'm very confused as to what exactly isn't working correctly. **Please also note that the html code below is returned as a string.  This regex code works for PHP, but not Javascript (although I have it in a javascript .match)  string.match(/<table(?:.*)class="tblclass"[\s\S]*?class="tblclass"[\s\S]*?[\s\S]*?\K(\d+)/)   Also tried  response.match(/\s*table(?:.*)class="tblclass"[^>]*>[\s\S]*?class="tblclass"[\s\S]*?<\s*td[^>]*>[\s\S]*?\K(\d+)/);   I am trying to get the number (54) from the string below. This includes all the white space and line breaks

                                                                                54

	                                         Acceptable

   Using  and pasting what I have above, the PHP version works, but the Javascript version 'does not match the subject string'.  Can anyone maybe point me in the right direction for getting the differences?


How to copy an object from one blend file to another via python?

I want to copy an object via python from one scene to another.  Scene with the object:   Scene where i want to copy it to:


how can i make my https text to a clickable link using javascript

I'm getting the data from my firebase database and display it to web. Any idea guys on how to make my https text like this below into a clickable link?  https://firebasestorage.googleapis.com/v0/b/sad-police-app.appspot.com/o/October 15 20:30:18?alt=media&token=bc34c0d4-20e1-4525cd-91eb-cbb3c65b461a   this is the code for that link above: cellName3.appendChild(document.createTextNode(childData.Picture.replace(/\\/g, '').replace(/"/g, '')));  its a variable and i need a javascript that can make it to a clickable link. i really need your help guys.


I'm trying to get a toString to print out in a group together after a loop is cancelled

This is what I have so far and I tried to use the while (yorn=="yes") to cancel but it keeps going regardless and I am also trying to find a way to make it so the outputs go in one group together rather than being seperated. import java.util.Scanner; class Main {   public static void main(String[] args) {      Scanner scan = new Scanner(System.in);     String no = "no";     String yes = "yes";     String yorn="yes";      CollegeStudent Student1 = new CollegeStudent();      while (yorn=="yes") {       System.out.println("continue? yes/no:");       yorn=scan.next();       Student1.setname();       Student1.setcourseTitle();       Student1.setcredits();       Student1.setcourseCode();       System.out.println(Student1.toString());     }   } }


Create a range of decimal number using numpy does not work


error when trying to separate a integer from a decimal

I'm trying to create a module that will separate the decimal from a number as I need it for a project. However when I test it the integer comes out fine but the decimal always gets an error:  def seperate(decimal):     integer = int(decimal)     dec = decimal-integer     print(dec, integer)            if I say try to enter 2015.677 it give this: 0.6769999999999072 2015 what is wrong?


Why is sum of squared residuals non-increasing when adding explanatory variable?

In my econometric textbook(Introductory Econometrics) covering OLS, the author write, "SSR must fall when another explanatory variable is added."  Why is it?


If two operators commute, then is it any basis of one of them also a basis of the other?

According to the , there exists a common eigenbasis for the eigenfunctions of two operators $\hat A$ and $\hat B$ representing the observables $A$ and $B$ if and only if they commute. However, is any basis of $\hat A$ also a basis of $\hat B$, and vice versa? Let's take for example the case of the $\hat L_z$ and $L^2_z$ operators. It is easy to see that the eigenfunctions $\Theta_m(\theta)$ of $\hat L_z$ are also eigenfunctions of $\hat L^2_z$.  Do these eigenfunctions account for the complete set of eigenfunctions of $\hat L^2_z$? They commute, but the compatibility theorem doesn't state that all the eigenfunctions of one operator are also eigenfunctions of the other. Would any basis of $\hat L_z$, say $\{\Theta_m(\theta)\}$, be also a basis of $\hat L^2_z$, and thus all the eigenfunctions of $\hat L_z$ also the eigenfunctions of $\hat L^2_z$ in this case?


C++：Why the program can execute normally without any errors?

As you can see, the main() function does not contain the statement return 0;. But the program can still execute normally, even though the main() function has been specified to return a value of int. I just don't understand why. Could you please explain it?


Overstaying tourist visa Chile awaiting temp visa

My sister went to Chile in Sept'18, she was there for two weeks, left for Costa Rica, returned for two weeks, left for Ecuador then came back to Chile and has been there since.   I understand the tourist visa is 180 days from entering but we're not sure if that's from the first day she entered in Sept or the last time she went back in November. Either way, her tourist visa has now expired.  She applied for a 'temporary visa'? Something like that but hasn't heard back from them and is now looking to come home. Would she have to pay a fine for overstaying even though she applied for another visa in November and hasn't heard back or would she be free to leave without a penalty?


How to Convert DataTable to Generic List in C#

I need to convert C# DataTable to Generic Collection List   DataTable Columns Respectively   1. EmpId  (this is Int DataType)  2. EmpName   (this is varchar DataType)  3. EmpAddress  (this is varchar DataType)  4. EmpPhone  (this is varchar DataType)  5. Status   (this is Boolean DataType)  6. EmpRelationKey (this is int DataType)   so my DataTable Contains Values for above fields. here i need to assign this value into my list   My List Variables Respectively  class Employee { protected int EmpId  ; protected string EmpName =String.Empty; protected string EmpAddress  = String.Empty; protected string EmpPhone  = String.Empty; protected bool Status ; protected int EmpRelationKey ; }  Declaring List List<Employee> Emp= new List<Employee>   so now i need to assign DataTable values to this List. the code should be very professional.  i have tried this method   List<Employee>employees = new List<Employee>();    foreach (DataRow row in dt.Rows)   {      employees.Add(new Employee      {      EmpId  = Convert.ToInt32(row["EmpId"]),     EmpName = row["EmpName"].ToString() ,    EmpAddress =   row["EmpName"].ToString(),    Emphone =   row["EmpPhone"].ToString(),    Status = Convert.toBoolean(row["Status"])    });   }      but i don't want to mention column names , is there  any other ways to assign values without mentioning each and every column name from DataTable


In Borderlands 1 the second playthrough had a "playthrough 2.5" once you beat The Destroyer, which changed the game so enemies (and most mission rewards) scaled to your level. Because of this it was best to play only story missions until beating the Destroyer so mission loot would be the best loot possible.  How do the playthroughs work in Borderlands 2? I've unlocked True Vault Hunter mode which starts out just like playthrough 2 in BL1, but I don't know if there's a "2.5" equivalent of if it's finally a real third playthrough or what.


Why can I not add this object to array list?

Hello I have the following code:      java.util.Date date = new java.util.Date();      ArrayList<Worker> workerList = null;              //Create Worker             System.out.println ("You have selected create worker. \n" + "please enter a name for the worker.\n");              //Create new worker object             scanner.nextLine();             String tName = scanner.nextLine();              Worker newWorker = new Worker (tName, date, 0);               workerList.add(newWorker);              wCurrent = newWorker;   and  Worker (String s, Date d, int i){     workerName = s;     dateEmployed = d;     jobsCompleted = i; }   However it always crashes at the workerList.add, where is my error? Netbeans says "Null Pointer Defference" I do not know what that means... Please help    EDIT! Thanks it fixed it!  Just another quick question  I have also got          public String toString(){        return "The worker " + workerName + " has completed "+ jobsCompleted + " jobs";     }   But but everytime I am calling the toString method it crashes. This is after I create the object.


How to make a particular app the default viewer / editor for ALL its supported file types at once?

I want to make an application, say , the default player for all the file types it supports, without going through all of them individually.  I might not even know what all the supported formats are (as VLC can read 100s of formats) and still want to set it as the default player for all of them.  I was able to do this using the terminal, with the procedure posted below.  Is there an easier way to do it that doesn't require the user to be a developer?


How to show that $\det(AB) =\det(A) \det(B)$?

Given two square matrices $A$ and $B$, how do you show that $$\det(AB) = \det(A)\det(B)$$ where $\det(\cdot)$ is the determinant of the matrix?


What does the red background on an item mean?

With the latest update, you can now use gyms like stops and get items. So far, every time I have done so there has always been one item that has a red background and number.    Is this a bonus item since I am part of red team? Is there any special meaning to it at all?


I guess I'm stupid or what but I don't get this:  I'm using the  RemoteIPHeader X-Forwarded-For within a VirtualHost configuration in order to determine GEO location of our users within our PHP application.  But I also would like to log the Remote IP of the clients within the apache logs.  The Apache combined log format looks like this:  LogFormat "%h (%{X-Forwarded-For}i) %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined   According to documentation:  RemoteIPTrustedProxy Directive      The RemoteIPTrustedProxy directive adds one or more addresses (or   address blocks) to trust as presenting a valid RemoteIPHeader value of   the useragent IP. Unlike the RemoteIPInternalProxy directive, any   intranet or private IP address reported by such proxies, including the   10/8, 172.16/12, 192.168/16, 169.254/16 and 127/8 blocks (or outside   of the IPv6 public 2000::/3 block) are not trusted as the useragent   IP, and are left in the RemoteIPHeader header's value.   In my case the directive looks like this:  RemoteIPTrustedProxy 172.31.0.0/16   Where I'm saying trust any PROXY forwarding from this local subnet.  BUT, when I set this Apache stops logging the remote IP because the forwarding proxy is valid now ?  So If I set:  RemoteIPTrustedProxy 10.10.10.10    The IP above doesn't exist. So the proxy servers from 172.31.0.0/16 are invalid now and therefore apache starts logging the remote IP header again?  Please, try to give me some guidance here, as obviously I don't understand this.  Thanks a lot !


What supporting documents should I include in my UK visa application?

There seems to be a consistent pattern on TSE, with scores of questions about what documentation best accompanies a visa application, posed not just by those reapplying after a refusal, but by first-time applicants prior to submission (and a few with post-submission anxiety).  What is being overlooked, lost in translation, missed? Why is this question even being asked here, when the UK government publishes its own straightforward information?


Which one to choose Type-I, Type-II, or Type-III ANOVA?

I don't understand what the difference is between TypeI and TypeIII? Since my background is not very mathematics, it's very difficult for me to understand this mathematical notation; Type I SS: SS(A) SS(B|A) SS (AB|A, B)  Type II SS: SS(A|B) SS(B|A) SS (AB|A, B)  Type III SS: SS (A|B, AB) SS (B|A, AB) SS (A*B|A, B)?  I want to check the interaction between my two factors (genotype*FuncBIN), but my output comes as Type II ANOVA with interaction. Is this normal?  structure( list(genotype = structure(c(3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = c("WT", "Mut2", "Mut1" ), class = "factor"), FuncBIN = structure(c(1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L, 3L, 1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L, 3L, 1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L, 3L), .Label = c("Mitochondria ", "Golgi", "ER"), class = "factor"), k = c(0.2, 0.3, 0.4, 0.5, 0.3, 0.2, 0.5, 0.6, 0.7, 0.4, 0.6, 0.9, 0.2, 0.3, 0.5, 0.4, 0.2, 0.3, 0.5, 0.6, 0.8, 0.5, 0.4, 0.6, 0.2, 0.3, 0.1)), .Names = c("genotype", "FuncBIN", "k"), class = "data.frame", row.names = c(NA, -27L) )   library(car) library(lsmeans) library(multcomp) fit <- lm(k ~ genotype + FuncBIN + genotype*FuncBIN, df)  plot(fit) shapiro.test(residuals(fit))  Anova(fit)  lsmip(fit, FuncBIN ~ genotype)  lsmeans(fit, pairwise ~ genotype)[[2]] fit.tukey <- lsmeans(fit, pairwise ~ genotype | FuncBIN)[[2]] fit.tukey cld(fit.tukey)   How can I run an ANOVA with interaction followed my Tukey PostHOC?


If something is publicly visible in the Internet, does it mean I can use it for research?

I am talking about images in particular. If I collect a dataset for non-profit purposes (research) and an image is publicly available for anyone on the web (i.e. I can see it in google image search results, and the access to corresponding web page is not limited), does it mean that I can use it, if I mention source?   For example: 3d models themselves might be not available and cost money, but their previews are freely accessible by anyone on the web. Can I use these images as data for research and distribute an archive with these images freely? (including text file with authors of these images and URLs to pages!) Images themselves are available for free.   Or, I might collect a list of these URLs and publish a large txt file with these URLs so that everyone could download them if they need. That should not be a violation, is it? If I one downloads images to train an algorithm?  I feel like that is somewhat different from using images for educational or illustrative purposes.


Fundamental group of a torus with points removed

Question 5.33 from "Topology and its Applications"  by Baesner is to compute the fundamental group of the torus ($T^2$) with $n$ points removed. I can "see" in my mind that if we remove one point we get a bouquet of two circles. Less clear is what happens when we remove two (or more) points. Any hints?


How many positive integers $ n$ with $1 \le n \le 2500$ are prime relative to $3$ and $5$?

I am trying to understand this example from my study guide and am getting no where with it and need some help.  Example: How many positive integers $n$ with $1 \le n \le 2500$ are prime relative to $3$ and $5$?   The example come from the chapter on Venn Diagrams.  Let $U = \{n \in \Bbb Z_+ \mid 1 \le n \le 2500\}$. We need to establish the number of positive integers in $U$ such that $\gcd(3, n) = 1$ and $\gcd(5, n) = 1$.  In this case, it is easier to count the integers that are relative primes with $3$ and $5$. Note that an integer is not a relative prime with $3$ if it is a multiple of $3$. Thus, $$A = \{n \in U\mid \gcd(3, n) = 1\} = \{3n \in U\mid 1 \le n \le 1249\}.$$  Can someone explain how $249$ is obtained? and  $$B = \{n \in U\mid \gcd(5, n) = 1\} = \{5n \in U\mid 1 \le n \le 500\}.$$ Can someone explain how $500$ is obtained?  Thus, $A = \{n \in U\mid \gcd(3, n) = 1\}$ and $B = \{n \in U\mid \gcd(5, n) = 1\}$.  We want to find $|A \cap B| = |A \cup B| = |U| − |A \cup B|$.  We have  $|A \cap B| = |\{15k \in U \mid 1 \le k \le 166\}| = 166$.  Thus, $|A \cap B|  = |U| − |A| − |B| + |A \cap B|  = 2500 − 1249 − 500 + 166 = 917$  Thanks for any help.  Tony


Let  $f_1,\ldots,f_n$ be linearly independent linear functionals on a vector space $X$. Show that there exist $x_1,\ldots,x_n\in X,$ such that the $n\times n$ matrix $\big(f_i(x_j) \big)_{i,j=1}^n$ is non-singular.


Find class or methods without unit tests

In our project we have written unit test's for some methods, we are planning to write unit test's for methods which doesn't have  test's.  Is there a command or tool in Visual Studio to automatically find class or methods without unit test's ?


Justification of the energy and momentum operators in quantum mechanics

There is one thing that always troubled me in quantum mechanics, how do you justify the expression of the energy and momentum operators, namely $\hat{E} = i\hbar\frac{\partial}{\partial t}$ and $\mathbf{\hat{p}} = -i \hbar \mathbf{\nabla}$? The only justifications I've seen were always the same: take a plane wave function with a certain frequency / wave vector, inject Planck's / De-Broglie's relation to convert to energy / momentum, time differentiate / take the gradient, and associate what comes out. But a plane wave is only one particular wavefunction (not even physical), how can you infer anything general about wavefunctions starting from properties of particular solutions? Is there any more fundamental justification? EDIT This was closed and tagged duplicate but the  doesn't answer the question. Although it has a very similar title, it is actually asking about some sort of force operator. (Only a link is given in an answer, but it refers to the demonstration I gave.) Please check this before closing ! :( I also checked other related questions but none cover the subject as it has started to be here.


How does "If $P$ then $Q$" have the same meaning as "$Q$ only if $P$ "?

Every lecture that I watched on mathematical logic and my textbook say that $P \Rightarrow Q$ has the same meaning  as $\text{"If $P$ then $Q$"}$ which has the same meaning as $\text{$Q$ only if $P$}$.   How does " $\text{if $P$ then $Q$}$ " have the same meaning as " $\text{$Q$ only if $P$}$  ?   i think that is not true. For instance, let $P = \text{a human $x$ killed human $y$}$  and $Q = \text{the human $x$ will be arrested}$.   Then $P \Rightarrow Q$ means $(\text{a human $x$ killed human $y$})  \Rightarrow (\text{the human $x$ will be arrested})$ which means  $$\text{if a human $x$ killed human $y$, then the human $x$ will be arrested} \quad (1)$$  but if we say ,   $$\text{a human $x$ will be arrested, only if the human $x$ killed human $y$} \quad (2)$$  then the meaning of (1) differs from (2). Statement (2) says that the human $x$ will be arrested in only one case which is killing $y$.


Life span of EventListener with async code inside and recursive EventListener creation

Can somebody help me, i need to replace HTML content of element inside DOM using jQuery ajax. The EventListener, from which i call this replacement is tied to one of the inner elements inside html that is about to be replaced, so i need to register new eventListener after replacement and i need to do it after 2 consecutive ajax requests. Does such code breaks anything? 1.It seems to work, but i do not know, is this event listener lives until all async code is run inside it? 2.Is creating another EventListener recursively is ok and doesn't interrupt current one? 3.Also, i'm new to javascript and jquery, how to properly call function from inside object "c" in my case and from inside  jquery.delegate callback at the same time? is it ok to do like i did? Like "c.ajaxHtml();" const c = {     // ...     onPaymentToShipping: function() {         $(document).delegate('#guest-shipping-address-body input[type=\'checkbox\']', 'click', function() {             if(this.name == "shipping") {                 if(this.checked){                     c.ajaxPaymentToShipping();                     const hideCrap = document.querySelector('.collapsible');                     if(hideCrap){                         hideCrap.style.display = 'none';                     }                 }                 else{                     (async function() {                         //saves data via jQuery ajax                         await c.ajaxPaymentToShipping();                          // uses stored data via jQuery ajax, creates new html template and replaces html, where current EventListener is tied to one of inner elements                         await c.ajaxHtml();                          // edit stuff in new html elements using ajax, nothing important, can be run asyncronously                         c.onCountryChange();                           // call same function (recursively once?) to register same eventListener, but for newly created element.                         c.onPaymentToShipping();                      })();                 }             }          });     },     // other stuff...     // ...     // ... }


How can heat pump water heaters be more efficient when they just use heat from heated space?

I understand the principle of heat pumps, and it makes sense that a heat pump / AC split system is more efficient then for example resistive heating for heating a house. In this case, the heat pump moves heat between inside and outside the conditioned space. But all the heat pump water heaters I have seen are a packaged unit, with the evaporator coils just above the water heater tank. Since water heaters are normally installed inside the conditioned space, this setup just pumps heat that has been heated by the furnace or whatever else heats the home, and pumps it into the water. So it's not like you are using the "free" heat from outside, you are just using your normal house heat source to heat the water in a roundabout way. Obviously, during AC season, this would be an advantage. But am I seeing this right that the advantage is rather minimal during heating season, or am I overlooking something?


How to make Windows 8+ show useful info in blue screen?

Is there any way to make Windows 8 and newer show more info (address, file) when it has blue screen like it was before?  Googling "how to make windows 8 show info in blue screen" or sorts only shows typical questions on how to fix blue screen.


The question reads: Determine the general form of $u_0$, $u_1$ and $u_2$ if a system of difference equations of the form $$x_{n+1} = Ax_n + Bu_n.$$  $A$ is a $3\times3$ matrix and $B$ is a $3\times2$ matrix.  We were given information that $x_0 = 0$ to $x_3 = [2, 1, 2]^T$.  What confuses me is I know how to solve controllability but the fact that matrix B was $3\times2$ and not $3\times1$ completely threw me off.  I have spent hours trying to look for examples and cannot find any.


Is there a reaction force for a reaction force?

According to Newton's third law of motion, for every action there an equal and opposite reaction.  If an object A applies a force (action) on an object B, object B applies an equal and opposite force (reaction) on object A. If we consider this reaction force as the action force applied by object B on object A, shouldn't there be a reaction force for every reaction force and hence infinite reaction forces?


I'm not able to align the text left.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \newcommand{\altura}{.45cm} \begin{document}  \begin{tikzpicture}[x=1cm, y=-\altura, node distance=0,outer sep=0,inner sep=0] \tikzstyle{nome}=[draw, rectangle,anchor=west, minimum height=\altura,minimum width=9cm,fill=yellow!30]  \node[nome,right] (p1) {text}; \node[nome,right] (p2) [below = of p1] {text text}; \node[nome,right] (p3) [below  = of p2] {text text text};  \end{tikzpicture} \end{document}   The left or anchor=west not work. I need the text align left.


I want to clip a polyline feature class by a polygon feature class (buffers created from points). Several polygons overlap, so I want to get each polygon feature clipped with each polyline feature.  Using the Clip_analysis tool, I get the orange lines:   whereas I want the following red lines:    In a python script, I tried the following code to clip every polyline with each polygon:          temp = arcpy.ValidateTableName("clip_temp")     bufferCursor = arcpy.SearchCursor(buffer)     n = 0     for pRow in bufferCursor:         arcpy.AddMessage(n)         feat = pRow.Shape         arcpy.Clip_analysis(inputPolylineLayer, feat, temp, "#")         if n == 0:             arcpy.Copy_management(temp, clip)         else:             arcpy.Append_management(temp, clip)         n=n+1   But the execution is very very slow and it crashes before finishing.  I also tried the Intersect_analysis tool but I didn't get the right geometries:   Do you have any idea of a better methods to do it?


How to make a set of real numbers symbol, but empty inside, like in the picture?

Does anyone know how to make a symbol of real numers like in the picture? I mean the same symbol.It's like R but empty inside.


Why Separable Metric Space is called Separable?

A formal definition can be found at page 48 of  "Kolmogorov, A. N., Fomin, S. V. (1970). Introductory Real Analysis, Translated and Edited by Richard A. Silverman"  But where is a separate procedure? I do not see the "separation" procedure in my imagination.  p.s.  In my imagination, I have a bounded table R with too many needles that they enough to very-very near to touch all points in original set R. But it's only my imagination.


System.UnexpectedException: Invalid parameter value for parameter "Decryption Exception"

I tried to execute some code in a sandbox and I got an odd error message:     System.UnexpectedException: Invalid parameter value '****' for   parameter "Decryption Exception".    Looks like it happened immediately following a callout attempt...


I am using either:  CAST( SUM(a.fieldmissed) AS decimal(18,8)) / SUM(a.fieldtotal) *100 AS [Deliveries Missed]   or  SUM(a.fieldmissed)*100.0 / SUM(a.fieldtotal) AS [Deliveries Missed]   to work out % values. However, is there a way I can restrict the output to two decimal places? Not essential but would be handy to know.  Any advice appreciated. Thanks very much.


In my workflow I always have tab 1-3 of chrome as specific pages that never change.  I want to make a keyboard shortcut that will navigate to the second tab with Super+Shift+S.  If I execute the following bash script from a terminal it will proceed to behave as expected but when I tie it to a keybinding from keyboard shortcut settings in the gui it will only achieve focus on Chrome but not proceed to the second command.  wmctrl -a chrome && xdotool key Ctrl+2  Any help will be appreciated.


Ubuntu 17.10: How to set default screenshot location?

In Ubuntu 17.04, there was an option to save a screenshot to a specific location. I understand that it's now in /home by default. In Ubuntu 17.10 (I've found solutions for 17.04 only), is there a way to specify another location and make it permanent? Thanks in advance.


When changing between manual and auto focus, should I change the setting on both the body and the lens?

I use my DSLR (Nikon D500) for both photography and video, and I prefer autofocus for photography and manual focus for video (to get rid of autofocus noise).  There is an option for changing between the two on both the body and the lens, and obviously it is very annoying to have to keep flicking 2 switches to do the same thing all of the time.  Do you only have to change one of them, and would doing this cause any damage to the camera and/or the lens?  (I am aware that a similar question has already been asked before, however the answers said more what is "best practice" and not so much if there are any consequences to only changing one of them)  Thanks!


Do isometries preserve the cross-product?

Suppose I have an isometry $f:\Bbb R^3 \rightarrow \Bbb R^3$. In an exercise given in my geometry notes it asks to determine whether isometries preserve the cross product, so that If I have two vectors  $a = (a_1,a_2,a_3)$ and $b=(b_1,b_2,b_3)$ that it is true that  $u \times v = f(u) \times f(v)$.  Then I know that $a \times b = [ (a_2b_3-a_3b_2), - (a_1b_3-a_3b_1), a_1b_2-a_2b_1)$ but I am having difficulty preceeding.   Edit: It is also pointed out in the comments that $a \times b  = ||a||b|| sin \theta  n$ where $\theta$ is the angle between $a,b$ and $n$ is a unit vector perpendicular to the plane containing $a$ and $b$.  So If I have points in $P,Q,R, \in \Bbb R^3$ and let $u= Q-P, v= R-P, u'=f(Q)-f(P), v' = f(R)-f(P)$ then $|u|=|P-Q|=|f(P)-f(Q)|=|u'|$ and similarly $|v| = |v'|$, and since isometries preserve angles then   $|u||v|sin \theta = |u'||v'|sin \theta $ but what about the unit vector perpendicular to the plane spanned by $u,v$ and $u',v'$?  Any hints or insights much appreciated.


Can a character wield a two-handed or large weapon in one hand?

Some class and race features allow a character to "count as one size larger when determining your carrying capacity and the weight you can push, drag, or lift." (Eberron warforged Juggernaut) or "Your carrying capacity (including maximum load and maximum lift) is doubled, and you have advantage on Strength checks made to push, pull, lift, or break objects." (barbarian path of the totem bear)  Would these characters be able to wield a two-handed weapon (eg maul) with one hand? Alternatively, can a larger version of a one-handed weapon be used to give more damage? This seems to work for the "enlarge" spell, so could it work through non-magical means?


Where will my bus be at the Port Authority Bus Terminal in New York?

I am using Greyhound to go from NY to DC. I don't see on my ticket where exactly my bus will be. Is this information on my ticket somewhere or do I just go to Port Authority and ask? This is my first bus trip so I'm a bit nervous.


Why is it usually "friend of his", but no possessive apostrophe with "friend of Peter"?

As  shows, we nearly always use the possessive form of personal pronouns for friend of mine/his/ours/etc.  But when it comes to actual names, we prefer  without the possessive apostrophe. That preference is even more marked with, say, . Not that I think the usage itself is particularly American - it's much the same with .  Personally, I find friend of him grates. In general I've no strong feelings either way as to whether it's friend of Peter or friend of Peter's (though I deplore the possessive in ), but in line with many others, I really don't like the possessive in relation to things like countries.  Why is this?   Edit: Noting an apparent "progression" (pronoun -> person -> nation) marked by reduction in use of the possessive, I checked at a finer "granularity". NGram shows that although it does occur,  virtually "flatlines" against friend of mine. But the bias reduces through of you, of us, and by the time I get to  it's much less extreme. There seems to be something "egocentric" about the double possessive.  Presumably when babies learn to speak, they soon notice that possessive pronouns, possessive apostrophes, and the word "of", all do the same job. Parents would correct a child who says "of mine's", but probably wouldn't even notice the same "redundancy" in "of Peter's". Younger speakers are unlikely to even be talking about something "of America's". Perhaps as we mature we tend to discard the "double possessive" for the more "distant" things that only adults are likely talk about, but we keep it for "closer" people because that's how we spoke when we were younger.  EDIT2 I note that I'm a great fan of him is vanishingly rare compared to ...fan of his, but with ...fan (of John) the double possessive occurs far less often than ...friend (of John's). Usage seems to be affected by the noun before "of" as well as the one after it. This is getting complicated...


Is it possible that the correlation for my 3 variables is significant but the regression for the 2 variables is not?

Good day! I have encountered this problem for my thesis and really hoping to get some answers.   I have 3 variables SP, SO, and OO -all positively correlated but when I used linear regression ( 3 variables as a predictor) for SE, SP and OO is not anymore significant.


Convergence of infinite product to zero implies series divergence

I am stuck in one step of an application of Borel Cantelli Lemma.  I am trying to show the following : if $a_n$ is a sequence such that $0 < a_n < 1$ for all $n$ then $\prod_{n=1}^\infty 1 - a_n = 0 \Rightarrow \sum_{n=1}^\infty a_n = +\infty$. By using the log I can show that $\prod_{n=1}^\infty 1 - a_n = 0 \Leftrightarrow \sum_{n=1}^\infty \log(1-a_n) = - \infty $ (since $1-a_n > 0, \forall n$) but I cannot conclude about the divergence of $\sum_{n=1}^\infty a_n$. Any hint ?


Different vertical spacing between paragraphs

I sometimes get annoying weird spaces in my latex and I dont know how to fix them. these are my global variables. I cannot paste my code unless someone tells me how I can convert all text into random characters. Using this template   \documentclass{article} \usepackage{spconf,amsmath,graphicx} \usepackage{tabu} \usepackage{subfig} \usepackage[usenames, dvipsnames]{color}   the texts that give error. I am not using any functions or local variables. They are all texts.  Many lines of text. LIDAR sensors that provide a 3D map of the environment around the vehicle are unequivocally more powerful than a single stereo-pair.  Despite these attractive features, the use of LIDAR sensors are still...  \begin{figure}[t]     \centering     \includegraphics[width=\columnwidth]{res}\\     \caption{The workflow of our object proposal algorithm.}     \label{fig:workflow} \end{figure}  Many lines of text. Here, we briefly review works that will be used as a baseline for comparison.  In the Selective Search (SS) algorithm \cite{selectivesearch}, pixels analyzed


Java NullPointerException when reading SerialPort Names

I'm attempting to get a JTextArea to display the output from a COM Port as a string. However, the code i'm using to tell the JTextArea what it should be displaying is producing NullPointerExceptions. I know what's causing the error roughly but i'm just looking for the best way to deal with the issue to prevent it happening. The code for the text areas is:      if (Serial.currPortId == null) {         listenState.setText("NONE");     } else {         listenState.setText(Serial.currPortId.getName().toString());     }     if (Serial.currPortId.getName().toString().equals(Serial.PORT_NAMES[0].toString())) {         tab1sheet.setText(serialImport.datafeed); }     else {         tab1sheet.setText("N/A");     }     if (Serial.currPortId.getName().toString().equals(Serial.PORT_NAMES[1].toString())) {         tab2sheet.setText(serialImport.datafeed); }     else {         tab2sheet.setText("N/A");     }     if (Serial.currPortId.getName().toString().equals(Serial.PORT_NAMES[2].toString())) {         tab3sheet.setText(serialImport.datafeed); }     else {         tab3sheet.setText("N/A");     }   The errors are occurring at the start of   if (Serial.currPortId.getName().toString().equals(Serial.PORT_NAMES[0].toString())) {     tab1sheet.setText(serialImport.datafeed); }   and I assume the if statements for the other two aren't working either.  I'm also providing the code for the serialports. It is as follows:  public void initialize() {     CommPortIdentifier portId = null;     Enumeration portEnum = CommPortIdentifier.getPortIdentifiers();      while (portEnum.hasMoreElements()) {         CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement();         for (String portName : PORT_NAMES) {             if (currPortId.getName().equals(portName)) {                 portId = currPortId;                 break;             }         }     }     if (portId == null) {         System.out.println("Could not find COM port.");         return;     }      try {         serialPort = (SerialPort) portId.open(this.getClass().getName(),                 TIME_OUT);         serialPort.setSerialPortParams(DATA_RATE,                 SerialPort.DATABITS_8,                 SerialPort.STOPBITS_1,                 SerialPort.PARITY_NONE);          // open the streams         input = new BufferedReader(new InputStreamReader(serialPort.getInputStream()));         output = serialPort.getOutputStream();         String datafeed = "";         datafeed.concat(input.toString());         serialPort.addEventListener(this);         serialPort.notifyOnDataAvailable(true);     } catch (Exception e) {         System.err.println(e.toString());     } }   I've attempted to change the code and nest it but it's still not working. It's now:  if (Serial.currPortId.getName() != null) {         if (Serial.currPortId.getName().toString().equals(Serial.PORT_NAMES[0].toString())) {             tab1sheet.setText(serialImport.datafeed); }         else if (Serial.currPortId.getName().toString().equals(Serial.PORT_NAMES[1].toString())) {             tab2sheet.setText(serialImport.datafeed); }         else if (Serial.currPortId.getName().toString().equals(Serial.PORT_NAMES[2].toString())) {             tab3sheet.setText(serialImport.datafeed); }         else {tab1sheet.setText("N/A");               tab2sheet.setText("N/A");               tab3sheet.setText("N/A");}     }


How can I know my current administrator password without resetting or changing it

I really need to access the administrator password but I forgot it. BUT I really don't want to reset or change it. I just need to know the current password.


How can black holes be observed to grow?

If, from the reference frame of an observer at rest outside a black hole, it takes an infinite amount of time for an object to be observed to fall into a black hole, how can black holes ever be observed to grow in that reference frame?


What is a more pleasant way of saying 'disorganized'?

I've searched thesauruses to no avail. I'm hoping to find a more refined way of describing someone as 'disorganized', which to me seems to have a slightly negative connotation. The alternatives I have come across so far seem to be even worse ('chaotic', 'confused' etc.). What I have in mind would be something to conjure up the image of an eccentric scholar, perhaps sort of besieged by books piled on either side in disarray.  The question already posted didn't quite give me what I wanted, since it seemed to be referring to someone who was fond of chaos, not someone who simply can't keep themselves neat. I felt the suggestions given were mostly unflattering as well, which isn't what I'm looking for.


How do some of the Hunter Abilities interact with Extra Attack for Rangers?

While there's several feats that could also interact with the following, I don't want this to become a ramble, so I'll stick to specifically how the Ranger and Hunter specialisation abilities interact with each other.  So continuing from the Title Question, I'm specifically wondering about:     Extra Attack:      Beginning at 5th level, you can attack twice, instead of once, when ever you take the Attack action on your turn.   And how it relates to this:     Volley.      You can use your action to make a ranged attack against any number of creatures with in 10 feet of a point you can see within your weapon’s range. You must have ammunition for each target, as normal, and you make a separate attack roll for each target.   I'll explain what I'm thinking. So if you have extra attack... which allows you to make 2 ranged attacks per turn, does Volley disqualify your 2nd attack, consuming your whole action, or does it just consume 1 attack action? If so, then would you be able to use it twice? Because that seems ridiculous.  Additionally beyond that:     Horde Breaker.      Once on each of your turns when you make a weapon attack, you can make another attack with the same weapon against a different creature that is within 5 feet of the original target and within range of your weapon.   Horde Breaker is rather vague... because instead of saying when you take an attack action, it says when you make a weapon attack.  So would that mean that you could, hypothetically, make a Volley attack, and then extend the range by an additional 5ft in any direction outside of the original Volley using Horde Breaker via 1 target on the edge of the original limit?  The ramifications of this are astounding, because if the above technically is within the rules, you could do the following:  Attack with Volley, 5 Targets within 10ft of selected point of vision - Use Horde Breaker on 1 outlying Target of the original 5 Targets, Attack 1 additional Target - Rinse and Repeat.  And even if you could only use Volley once, could you still use Horde Breaker in conjunction? Gaining an attack on 1 additional target?  Finally, how does the following interact with the above:     Foe Slayer:      At 20th level, you become an unparalleled hunter of your enemies. Once on each of your turns, you can add your Wisdom modifier to the attack roll or the damage roll of an attack you make against one of your favored enemies. You can choose to use this feature before or after the roll, but before any effects of the roll are applied.   Would Foe Slayer then, allow you to add the modifer an attack made with either of the two afore mentioned abilities?  Many thanks in advance.


I have windows installed on my 500 GB hard disk which contains of 5 partitions. One for system drive and rest four for data. I want to format and remove all the 5 partitions and convert that to following three partitions:   30 GB Ubuntu Gnome 13.04. 2 GB Linux - Swap. 50 GB Windows 7. Rest windows ntfs partitions.   I have a bootable Windows 7 Ultimate DVD, a bootable Ubuntu Gnome 13.04 flash Drive. I don't wish to backup any data that I have I want to remove all the partition and install both the OS from scratch. I read many articles but each one has a different method some suggesting to use GParted, and some others to install Ubuntu first and then Windows etc.  Please suggest me a step by step detailed guide or reference to complete the task.


As illustrated in the screenshot, the geometry on the non-visible part of the mesh is visible in edit mode, even when the viewport shading mode is set to Solid.    It gets difficult to see and select geometry efficiently when this happens. I've observed that this happens when I set the units to centimeters (also in the screenshot).  Is this a bug? Is there a workaround? If this is a bug, where is the best place to report it?  You can download my .blend file  (size 7.53 MB).


I'm stuct at if with string, error calls like this:     Unreachable statement, comaparing strings with == or !=   Tried equals also, but calls same error here, any help please?  public boolean register(int hwork, String album) {     hwork=6;     album="116614";     throw new UnsupportedOperationException();     if(album=="166614")         return true;     else         return false; }


How to check, whether the formula is a tautology

How do we decide whether the formula in predicate logic is a tautology? Is there some universal way to decide?  Let's have an example:  Vx(P(x)&Q(x))<->VxP(x)&VxQ(x)   My solution (not correct and not complete)  So the first thing I do is to rename some variables on the right side.   Vx(P(x)&Q(x))<->VxP(x)&VyQ(y)   No, I can do this:  Vx(P(x)&Q(x))<->Vx(P(x)&VyQ(y))   And this:  Vx(P(x)&Q(x))<->VyVx(P(x)&Q(y))   So my question is:   How can I decide and proove, whether it is a tautology?


Is it possible to add Contents, List of Figures into TOC?


I'm new to Lightning Web Components(LWC). Can we have javascript expression in data binding rather than just variable name. In bellow example {index+1} is throwing error in visual studio code. Do i have to write a function just for this or is there better solution. <template for:each={cityList} for:item="city" for:index="index">
{index+1} - {city}
 </template>


I am solving previous year question paper some competitive exam. Give me some hint to solve the following problem.  Let $f$ be an entire function. Suppose for each $a \in \mathbb{R} $ there exists at least one coefficient $c_n$ in $f(z) = \sum_{n=0}^{\infty} c_n (z-a)^n$ which is zero. Then,  a) $f^{(n)}(0) = 0$ for infinitely many $n \ge 0$  b) $f^{(2n)}(0)=0$ $ \forall n \ge 0$  c) $f^{(2n+1)}(0)=0$  $ \forall n \ge 0$  d) $f^{(n)}(0) = 0$ for all sufficiently large n.  Thanks in advance.


is there any way where i can put a label on a full latex document and refer to it in another tex file.  e.g. supplement.tex  \documentclass[review,12pt]{article} \usepackage{graphicx} \begin{document} \label{supplement1}   something  \end{document}   and in the main document main.tex do something like:      \documentclass[review,12pt]{article}     \usepackage{graphicx} \externaldocument{supplement}     \begin{document}       something is refered from Supplement file~\ref{supplement1}      \end{document}   EDIT  thanks for your comments, what i basically want is not to refer to a section or chapter in another document, but i want to refer to the whole document.


Are static websites significantly faster than dynamic?

Lets say we have a blog site: METHOD #1  When an admin creates a new blog post, it will be added to the database. When a user loads the website, PHP will check the database for all posts. METHOD #2 When an admin creates a new blog post, a new static page will be generated/old one updated. When a user loads the website, they will receive a static html page. Now obviously with method #2 the user should have a faster loading time because no backend scripts are being executed. But is it worth doing? Would there be a significant difference (like half a second) or is the time this will save negligible?


Remove "Category:", "Tag:", "Author:" from the_archive_title

I have the following code in my theme's archive.php:  <?php the_archive_title( '
', '
' ); ?>   This gives me titles like "Category: Russia", "Tag: America", "Author: John".  I would like to remove the "Category:", "Tag:" and "Author:" part and just display the category, tag and author names.  Does anyone know how to accomplish this?  Thank you.


Motivation for the development of the double dual of a vector space

I was reading on the double dual of a vector space $V$ recently. I was wondering what applications (within mathematics) there are for this concept and/or what was the motivation for the development of this theory.


Calculating Probability Of Value With Dice

I am trying to write a program to calculate the probability of a number of dice thrown equaling a specif value. I have done some working out in excel, to try and find a patter, but I am at a loss. At first the values seem to follow the pattern of Pascal's triangle, but then they start get weird. I'd love some help (I am a hobby programmer, not a mathematician). The data for these patterns I have so far is this:  1D6   1    1 2    1 3    1 4    1 5    1 6    1   2D6   2    1 3    2 4    3 5    4 6    5 7    6 8    5 9    4 10   3 11   2 12   1   3D6   3    1 4    3 5    6 6    10 7    15 8    21 9    25 10   27 11   27 12   25 13   21 14   15 15   10 16   6 17   3 18   1   4D6   4    1 5    4 6    10 7    20 8    35 9    56 10   80 11   104 12   125 13   140 14   146 15   140 16   125 17   104 18   80 19   56 20   35 21   20 22   10 23   4 24   1


How to get month interval using "datetime" in python?

As every month have different days in it, so i can't apply timedelta=30.  I want to get three variables      month_start,      month_end ,      month_days = month_end - month_start   Which will be correspond to start date of month and end date of month. and their interval will be number of days in the month.  for instance , for march : month_days = 31, april : month_days = 30


How can I redefine (or alter) the bmatrix envrionment such that all entries are flushed right?

I've checked around here and have been unable to find anything that solves my problem. There are several other questions that ask similar things, but the solutions do not give a global way to apply the change.  I've been using \left[\begin{array}{rrr}...\end{array}\right] for the longest time when typesetting matrices, but recently found \bmatrix to be much quicker to accomplish (almost) the same goal. The problem is that I don't like the fact that the entries are centered in their columns instead of flush right. Is there a way I can alter this behavior globally, or maybe \renewenvironment{bmatrix} so that I can mimic the behavior with an array, but use only \begin{bmatrix}...\end{bmatrix}?  For example, I'd like the following two environments to look as close to the same as possible:  \left[\begin{array}{rrr}   x-y & 2 & 3n\\   2 & 4 & 2\\   a & x^2 & 2x^2-3 \end{array}\right]  \begin{bmatrix}   x-y & 2 & 3n\\   2 & 4 & 2\\   a & x^2 & 2x^2-3 \end{bmatrix}


Teenage girl in life-sustaining valley on poisoned Earth visited by another survivor

I'm trying to identify a book I read in school, though I can't recall at what grade level; let's say it had to have been published before I graduated high school in 2000. Despite being required reading, it didn't feel much like a classic.  The story took place on Earth, after some catastrophe had caused the air to become poisonous. However, one teenage girl was able to survive because her house was in a valley which was somehow protected from the poisonous winds and was able to sustain its own ecosystem. One day, a man wearing a protective full-body suit and gas mask appears in the valley, and both are rather surprised to find someone else alive. She feeds and shelters the man and shows him how she had come to survive in the valley. Rather abruptly…      the man attempts to rape her, but she overpowers him somehow. She steals his protective suit and starts to leave the valley. He tells her that he had seen birds in a certain direction away from the valley, indicating there might be life there as well, and she leaves.   I believe there was an author's note either at the beginning or end of the book stating that the author had actually died while writing the manuscript, and that their friends or family had finished the book by going off the author's original notes, which I suppose may explain the abruptness of the ending.  In case it wasn't clear from the above, I didn't really like the book. But I'm curious about it regardless.


How to solve differential equation $y=xy'+\frac12y'^2$

How to solve differential equation $$y=xy'+\dfrac12y'^2$$


Log in not working using a Google account

It said cannot find mismatch id.  Now I am logged using a Facebook account.   App Version: 1.0.95 Device Manufacturer: Xiaomi Device Model: Redmi Note 3 OS Version: 7.1.2 (f31aab0341)


Story where aliens visit earth in a cucumber spaceship

I remember watching a film on TV in roughly 1989. It would have been a German production broadcasted on Austrian ORF, or any production but in german synchronized version. It was in color, not subtitled, depicting a contemporary earth society and environment. Not sure about the length, say one hour. Not a serial. The story revolves around a pickle-sized cucumber interstellar spaceship (no, not with a rat rib cage exoskeleton) with humanoid crew of at least one female and one male. They could make sections of the cucumber skin translucent for windows. They were explorers, and made contact with what I believe to remember, human children; in the end they got themselves in a position where they were in danger and had to lam to their homeworld. The homeworld was a sentient tree in space, with white dendrites, quite like those on Pandora. There was a philosophical backstory and a morale, of which I remember nothing concrete. What is the name of that movie, and if it is based on a novel or short story, which?


Safari displays blank pages for some sites

Some pages, sometimes on Apple's on support site simply display as blank pages. The same page displays perfectly on Firefox or Chrome. What is this strange behaviour? For example, this link:  shows a completely blank page.     The same site displays without problem in Firefox. (Can't post image due to low reputation.)  I have no extensions installed in Safari. JS is enabled, all settings are default. This is a fresh and clean install of Yosemite.  What's going on. Any pointers will be appreciated. Thanks.  Edit 1: As an aside, and I don't have specific data for this, but Safari does seem to load some other pages so slowly, it's annoying to the extreme.


Can I use construction adhesive alone to attach pressure-treated wall plate to concrete floor?

Replacing walls in basement due to flooding.  Contractor installed sump and drain pipe around the inside of the cinder block wall.  I want to put in new wall, concerned that TapCon or other hammer/gun attachments will compromise the cement cover over that pipe.  Can I just use liquid nails?


Difference between ArcPy and ArcGIS API for Python?

Could someone explain, from a high level overview, the difference between ArcPy and the new ArcGIS API package in Python?


.htaccess 301 redirect for https and www

I'm struggeling with the apache rewrite engine and need help to transform these address-variations:  http://www.site.de/index.php www.site.de/index.php http://site.de/index.php site.de/index.php   to this form with www and https:  https://www.site.de/index.php   How would the statement look like and how does it work?  Currently it works from non-www to www:  Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^site.de [nc] rewriterule ^(.*)$ https://www.site.de/$1 [r=301,nc]   But it ignores the https.


Sequentially number attribute field as the table is currently ordered in QGIS?

At QGIS 3.8.2, I need to populate a field (let's call it field_a) in a sequentially increasing (1, 2, 3,...) order.  However, I need the sequence to increase in the order that the table is currently sorted (let's say that it is currently sorted by field_b).  I tried @row_number, but the increasing sequence does not follow the current sort order.  I think it follows an internal id, but I'm not sure...


I want to extract the IP address from the following String:  106.220.155.36 - - [29/Sep/2015:09:51:52 -0400] "GET /tutorial/grammar/LL/images/llparsetable.png HTTP/1.1" 200 14284  To do this, I decided to read the string one character at a time. I tried the following code:  public static String uniqueIP(String line){         String IP = "";          while(line.next() != " "){             IP = IP + line.next();         }         return IP;     }   However, the next method doesn't work. Is there some other method I can use?


Again, why is kinetic energy and velocity independent of position coordinates in Cartesian coordinates

This might be a very simple question. I read one previous post    I know that in Cartesian coordinates, the kinetic energy $T=\frac{1}{2}mv^2$. And $T$ is not an explicit function of position. So $\frac{\partial T}{\partial x}=0$, where we suppose $x$ is a coordinate.  But I got confused by one example, we have a ball move vertically from the origin O, with a velocity of $\vec V_0$.    then when the ball reach $y_1$ in the positive $y$ axis, we have  $$mgy=\frac{1}{2}mv_0^2-\frac{1}{2}mv_1^2$$ so the velocity at y is  $$v_1=\sqrt {\frac{1}{2}mv_0^2-mgy}$$ Does it means that velocity and kinetic energy both are explicit function of position y in this case? I know this is a special case, but the statement that $\frac{\partial T}{\partial x}=0$ in Cartesian coordinates seems to be quite general. So where have I missed so far?  Thanks guys!


I am a 21 year old from Canada applying for a Tier 5 Youth Mobility Visa.  This is my travel history in the UK:  1: October 20th 2017 - Mid January 2018  2: Approx January 29th 2018 - January 31st 2018 (was in UK for around 2-3 days just catching a flight from London to Norway  3: March 15th - April 31st 2018  On my application it asks for my two most recent trips to the UK. I can ONLY list two maximum. I cannot list all three.  Should I not include my transit trip as it was so minor?   Basically should I list my March and January trips?  Or should I list my March and October trips?  I don't want to seem like I'm hiding my October history. But I want to do what's best.  Thank you!


How can Voldemort trust Snape after the events of the first book?

In the Sorcerer's Stone, Snape was playing with the Quirrell the double agent job. He was persuading him to find out how to get the stone.     "Have you found out how to get past that beast of Hagrid's yet?"   "B-b-but Severus, I --"   "You don't want me as your enemy, Quirrell,"   said Snape, taking a step toward him.   Harry-Potter-and-the-Philosopher's-Stone, CHAPTER THIRTEEN   But in the Quidditch match Snape       saved Harry and Quirrell knew that.    Later Harry discussed with Quirrell:      "But Snape tried to kill me!"  "No, no, no. I tried to kill you. Your friend Miss Granger accidentally knocked me over as she rushed to set fire to Snape at that Quidditch match. She broke my eye contact with you. Another few seconds and I'd have got you off that broom. I'd have managed it before then if Snape hadn't been muttering a countercurse, trying to save you."  "Snape was trying to save me?"  "Of course," said Quirrell coolly. (...)  Harry-Potter-and-the-Philosopher's-Stone, CHAPTER SEVENTEEN   How is it possible, that Voldemort trusted Snape later so much?  And that nobody brought this up. (I know, it may be out of screen, but Snape's position seems pretty strong)


How to perfectly synchronize Subtitles with movie? i use VLC


18 hrs layover at Narita International airport

I have Indian passport and currently visiting USA with my wife.  While returning to India in January 2020, we have 18 hrs layover at Narita International (NRT). From USA we will be travelling by American Airlines and from Japan by Japan airlines. Do we need transit visa for 18 hrs to stay in a hotel at NRT airport. What is shore pass?


Error in one line of my code which related to the length of null array

Hi I have read the questions that written before about this subject but I did not found the answer that related to my question. when I have run my code in android studio it was appeared this error of  "Caused by: java.lang.NullPointerException: Attempt to get length of null array"  Here is the line that cause of the error in my code for the main activity :     Blockquote   File[] files= root.listFiles();


How to extract characters of a string between two characters in php?

I have an a string like this  $size = "facebook_page [600x315]";   I want to extract   600x315  I tried this   preg_match('~[(.*?)]~', $size, $output);  print_r($output[1]);   It doesn't give me any output. Where am I going wrong? If there's another method it'd help a lot.


Let $S=\{3,4,5,6,7,8,9,10,11,12\}$. Suppose 6 integers are chosen from S. Must there be 2 integers whose sum is 15?

How can I go about solving this Pigeonhole Principle problem?   So I think the possible numbers would be: $[3+12], [4+11], [5+10], [6+9], [7+8]$  I am trying to put this in words...


Improve RSYNC scan speed / Alternate approach?

I'm using rsync to transfer application log files from one server to another.  It works fine with the exception that scanning the directories takes forever.  I have around 160,000 log files and a few thousand directories so I can understand why scanning takes so long.  However, only a few of those files changes at any given sync so I'm wondering if there's a more efficient way or rsync option that may speed this up?  The log files themselves are tiny (only a few kb each).   Thank you!


How do US professors consider about Chinese undergraduate candidates’ application for theoretical physics?

I heard they like students from their own university, and there is little chance that students from other colleges can be part of their research. Is that true?


Are $x \cdot 0 = 0$, $x \cdot 1 = x$, and $-(-x) = x$ axioms?

Context: Rings.     Are $x \cdot 0 = 0$ and $x \cdot 1 = x$ and $-(-x) = x$ axioms?   Arguably three questions in one, but since they all are properties of the multiplication, I'll try my luck...


Multiple Regression and Pearson Correlation

Can anyone explain the paradox of observing a non-significant Pearson correlation although that independent variable should be included in the Regression model?


InDesign: how to get anchored objects to flow within text boxes

Writing my thesis and this drives me mad. I:   place images,  add captions to them,  ..and anchor (see pink arrow) them to relevant text, see image:     (ignore here that the image falls off the page to the right)  Then I write more, and the image fall out of the text box and the page itself, like so:    (ignore here that the image falls off the page to the right)  I have fiddled endlessly with the "anchored object options" without any of that helping whatsoever.  Clearly what I want is InDesign to accept the anchor, but when the image lands between pages, to choose either. As long as the images stays on a page I am happy.   I have trawled piles of tuts, but none address this. Anyone?  (I have automatic addition of pages; there are no manual text-box connecting)  ___________________________________________________________  Edit  @CAI answer below aaaaalmost gets me there. Here is the problem now. I anchor the image – red circle is the anchor:   I then write more, above so the text and image moves down. BUT: I get text (from before the anchor) behind the image before it shifts to next page as it should.   I have changed transparency so you see:    Soo close... any suggestions?


How can a DM run D&D 4e combat as theater of the mind rather than a grid?

I am DMing a new 4e group, and I am interested in approaching the game as a "theater of the mind" style combat rather than the traditional grid format.  We are locked into doing D&D 4e because of the resources my players have available, but I believe they will be open to an approach that follows the spirit, rather than the letter, of the combat rules.  What can I, as a DM, do to make theater of the mind combat engaging and reasonably consistent with the 4e rules set? I am open to suggestions and techniques from other systems as long as I can put them into a D&D game without breaking the core mechanic of dice roll + bonuses vs. check number.


Wire transfer to an intermediary bank account

I sent money from a bank that doesn't have a space for intermediary bank, so I put the intermediary bank statement information where the beneficiary bank information is supposed to be.  I  don't know what will happen now.


I am hosting my Cloud Pages over HTTPS and I am having some issues due to Content builder assets being "http://"... What would be a correct way to ensure Content Builder uses "HTTPS" instead of "HTTP"  I have to host some of my content externally.


Is there a keyboard shortcut to open the filename popover menu in Preview, Pages, etc.?

I'm referring to the popover menu that opens when clicking the little down arrow next to the file name in some apps.  I use that extensively—it would be convenient if there were a keyboard shortcut to open it, but I haven't found one yet.


in laravel Allowed memory size of 134217728 bytes exhausted (tried to allocate 3092400 bytes) ....please see code and tell me if any improvment needed

$result = Sippy::searcAccountCDRs($data,$request,$start_date,$end_date);          if(count($result['cdrs'])==1000)         {             $datas=end($result['cdrs']);             $start_date=$datas['connect_time'];             $i=1;             $final_result[]=$result['cdrs'];              while ($i<1000)             {                 $qresult = Sippy::searcAccountCDRs($data,$request,$start_date,$end_date);                 if(count($qresult['cdrs'])==1000)                 {                     $final_result=array_merge($final_result,$qresult['cdrs']);                     $datas=end($qresult['cdrs']);                     $start_date=$datas['connect_time'];                     $i=1;                 }                 else                 {                     $final_result=array_merge($final_result,$qresult['cdrs']);                     $i=1000;                 }             }         }          dd($final_result);   i got this error  Allowed memory size of 134217728 bytes exhausted (tried to allocate 3092400 bytes)


Does the newer MacBook Pro need anti virus

I am purchasing MacBook Pro 2017 with Touch Bar and I was told by one customer representative of the shop that you need anti virus because old one use to come with build in anti virus but not the new one.   Is it true? If so why?


Does Google scholar pick up references to self published ebooks?


What are these "trash" files on my local drive?

This isn't the first time it has happened, but now that I clean installed the new Windows, I'd like to have everything neat and sparkling. Unfortunately, these files are in the way of achieving that.  I'm not sure what's causing them, but so far, the only major software I've installed are Steam and Photoshop. I think it's Photoshop's fault, but as I said, I'm not sure.  What I want to know is what these things are, and more importantly, if I can delete them.


at work we have a lot of PHP based aplications and all of them runs at PHP 5.2, I'm making my wayt to update them all to PHP 7 but i come to problem as all queries were done via mysql method. I wanted to remade them into prepared statements, but my boss told me to just strip input from special chars and use regular queries. I want to ask if that aproach is secure enough.


Can i create my own gym when i reach certain gym level or user level?

There's just one gym in my city and way to many players, so it's very competitive around here....i think i've read somewhere that this was suppoused to be a big feature for this game so i was wondering if it's possible to do so like right now or do we have to wait until an update that make that option avalaible?


Android design convention for saying a user needs to complete an action first?

I've read the Android design conventions, but can't see a good solution.  I have a 3 tab mobile application. Tabs 2 and 3 need a selection made on screen 1 before they will work. The user enters at Screen 1, and the tab options are along the top. If they attempt to open screen 2 or 3, I would like to advise them to make a selection first. 'notifications' are the closest answer I can see from the Android design guidelines. Anybody have any other solutions?  Thanks  Andy


how to create bootable usb for ubuntu 12.04.3?

I googled a lot throughout..but unable to find a software for making bootable usb pendrive of ubuntu 12.04.3. All the programs available right now supports ubuntu 12.04.2 . What to do???


Hibernate force timestamp to persist/load as UTC

I'm using java, mysql, hibernate (3.6.x). On the java side I'm using java.sql.Timestamp objects. On the mysql side I'm using datetime columns.  I want hibernate to save/load these Timestamp objects using UTC time zone regardless of system/java/mysql time zone.  I found "  " which was informative but lacking some final implementation info which I'm struggling to find.  I want to implement a UtcTimestampTypeDescriptor as shown in that thread and configure hibernate to use this instead of the normal TimestampTypeDescriptor.  How can I configure hibernate to use the UtcTimestamp type instead of the default Timestamp type?


British Airways (BA) just changed our flight times, leaving us only 1h15mins for our layover in Heathrow. We arrive from Brussels in terminal 5 in Heathrow at 7:55 and our next flight leaves for Miami in Heathrow terminal 3 at 9:10.  This seems awfully short.   Does anyone know whether this is doable?   The flights are in November, so I'm still hoping that the flights will change back to the original flight times, which would give us an additional hour for the layover, but in case this does not happen, what are the chances that we will make the connecting flight in 1h15mins?


Prove the identity $\sum_{k=0}^{n}(-1)^{k}\binom{n}{k}=0$ using a combinatorial interpretation of the positive and negative terms

Prove the identity  $$\sum_{k=0}^{n}(-1)^{k}\binom{n}{k}=0$$  Use a combinatorial interpretation of the positive and negative terms.   Edit: I have already proven it using the binomial theorem, more specifically with $(1-1)^n$. I'm having difficulty understanding what is meant by a combinatorial interpretation of the positive and negative terms.    I'm having trouble understanding exactly what is necessary for a combinatorial interpretation. Looking at small cases, I see that the symmetry of the expansion allows us to cancel out lots of terms.   Is this what is meant by a combinatorial interpretation? Is there any resources that introduce the idea of what constitute a combinatorial interpretation?  I feel like the professor threw us off in the deep end and I'm trying to keep my head above water with the few problems I have to work with and that I understand.


top bar ubuntu 20.04 power button is joined to Log out button

I have recently installed ubuntu 20.04.  in top bar power and Log out buttons are joined. to power off I have to click 2 buttons. but in ubuntu 18.04 I powered machine off with 1 button. How can I get back to ubuntu 18.04 top bar


What really happened in the black hole in Interstellar?

I am always confused about the end of the movie Interstellar.  What really happened in that black hole? How could he survive in that black hole and then get out?


How to increase size of /boot partition using gparted

please help me here  i am always getting messages saying no free space available in boot partition.    output of ls -alh /boot  total 79M drwxr-xr-x 4 root root 1.0K Sep 7 20:53 . drwxr-xr-x 23 root root 4.0K Sep 5 18:38 .. -rw-r--r-- 1 root root 1.2M May 8 16:14 abi-3.16.0-38-generic -rw-r--r-- 1 root root 1.3M Aug 17 12:10 abi-4.1.6-040106-generic -rw-r--r-- 1 root root 168K May 8 16:14 config-3.16.0-38-generic -rw-r--r-- 1 root root 177K Aug 17 12:10 config-4.1.6-040106-generic drwxr-xr-x 5 root root 1.0K Sep 5 14:23 grub -rw-r--r-- 1 root root 28M Aug 22 22:49 initrd.img-3.16.0-38-generic -rw-r--r-- 1 root root 28M Aug 24 00:35 initrd.img-4.1.6-040106-generic drwx------ 2 root root 12K Aug 12 12:52 lost+found -rw-r--r-- 1 root root 173K Mar 12 2014 memtest86+.bin -rw-r--r-- 1 root root 174K Mar 12 2014 memtest86+.elf -rw-r--r-- 1 root root 175K Mar 12 2014 memtest86+_multiboot.bin -rw------- 1 root root 3.4M May 8 16:14 System.map-3.16.0-38-generic -rw------- 1 root root 3.6M Aug 17 12:10 System.map-4.1.6-040106-generic -rw-r--r-- 1 root root 6.1M Jun 28 01:15 vmlinuz-3.16.0-38-generic -rw------- 1 root root 6.4M Aug 17 12:10 vmlinuz-4.1.6-040106-generic   output of   sudo parted -l  Model: ATA ST9500325AS (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos  Number  Start   End    Size    Type      File system     Flags  1      1049kB  106MB  105MB   primary   ntfs            hidden  2      106MB   140GB  140GB   primary   ntfs            boot  3      140GB   471GB  331GB   primary   ntfs  4      471GB   500GB  29.5GB  extended                  lba  5      471GB   493GB  22.0GB  logical   ext4  6      493GB   499GB  6536MB  logical   linux-swap(v1)  7      499GB   500GB  910MB   logical   ext4   @Pilot6


How to download JDK for Android programming

I'm using Ubuntu 12.04 64 bit. I'm going to start programming for android devices.  I know that I will need to install a JDK, but I don't have access to oracle.com.  How do I get it?


Any collection of subsets of a set is a subbasis for a topology

Theorem Any collection of subsets $\mathcal{A}$ of a nonempty set $X$ forms the subbasis for a unique topology $\tau$ on $X$. This theorem is absolutely amazing to me. I really enjoy the idea of it as a powerful tool, but I have come up with a counterexample that I just can't get over. So the theorem states that any collection of subsets of a nonempty $X$ form a subbasis for a unique topology on $X$. The emphasis there is any. So, consider the following counterexample: Let $X= \{a,b,c,d,e\}$ and let $\mathcal{A}=\{\{a\}\}$. Clearly, this is a collection of subsets of $X$. Assume that, by our theorem, then $\mathcal{A}=\{\{a\}\}$ is a subbasis for some topology on $X$. Okay, so since $\mathcal{A}$ is a subbasis of some topology on $X$, let's try taking intersections of members of $\mathcal{A}$. Well, $\{a\}\cap\{a\}=\{a\}$. Then our basis for our topology is $\mathcal{B} = \{\{a\}\}$ This is problematic because this means that our basis $\mathcal{B}$ is just $\{a\}$, but note that $\displaystyle\bigcup \mathcal{B} = \{a\}$ and $\{a\} \neq X.$ Therefore, $X \not \in \tau.$ How do we get $X$ in $\tau$? Is my counterexample logically consistent?


Wave theory does not account for the photon model, which was developed only to explain quantum effects like photoelectric effect.  Then why do we talk about a photon's reflection and rarefaction, as that would require it to have wave properties? This has been mentioned here: ()  It is light that has wave-particle duality, not photon; it simply is a means of explaining the particle nature of light.


Table and figure side-by-side with independent captions

Looking to put a table and a figure side by side so that the table and figure have their own captions. A crude sketch    ------------              -----------------     TABLE    | a |  b |                     FIGURE   | c |  d |  ------------              Table 2: Caption           -----------------                            Figure 7: Caption   The closest I've gotten is:  \begin{table}% \centering \parbox{0.4\textwidth}{ \begin{footnotesize} \begin{tabular}{| l | r |} \hline some & table\\ \end{tabular} \end{footnotesize} \caption{Table} \label{tab:table} } \qquad \begin{minipage}[c]{0.53\textwidth}% \centering     \includegraphics[width=1\textwidth]{awesome} \caption{Figure} \label{fig:figure} \end{minipage} \end{table}   But that gives two Table X: Caption captions. I didn't find anything in subfig.  Help?


Now that we have site-specific custom close reasons, it got me thinking: why not make post notices customizable to each site as well? It's already  that the existing "citation needed" and "current event" post notices were primarily developed for use on Skeptics; sure, they are useful for some other sites, but not everywhere. Many other sites probably have their own particular use cases for text to be added as a post notice. In particular, I'm thinking of this  on Physics.  I imagine this could be done with a UI partially similar to the custom close reasons, and perhaps the implementation could be partially similar as well (which would make it easier). What do people think - is this possible, and useful enough to justify the work on the part of SE devs?


Angular Momentum Conservation Definition

Did I missed something in angular momentum definition? Two identical bodies rotate around mass center. Now I invented anti-gravity and turning gravitational switch off. Those two bodies will move now in straight line with constant velocity and angular momentum conservation is compromised. Turning the gravitation off does not provide any external torque to the system. I also could not find any example when angular momentum is conserved and no internal forces (i.e. gravitation, Coulomb, tension) exist in the system. The definition of angular momentum does not said that existing of internal forces are necessary.


How to include frame numbers in beamer class table of contents

Is there a way to include frame numbers in a beamer class table of contents?  In a beamer document   \documentclass[9pt,handout]{beamer}   the \tableofcontents command  \begin{frame}[allowframebreaks] \tableofcontents \end{frame}   produces a nice table of contents of the sections and subsections, but without displaying the frame numbers. Is there a way to get the frame number of each entry displayed?


Parallel file copy from single source to multiple targets?

I have a several large files on optical media I would like to copy to multiple targets - in this case I have two hard drives attached to the same computer. Is there a utility that can function like:  copy source target1 target2 ... targetN


i'm currently working on a small script where i need to udate a file on multple servers, i have a long ip list of my servers and currently im using ncftpput to add the files to the servers one at a time.  i can't figure out how to start ncftpput with the next ipadress in my list so that i can have multiple updates running at the same time.  my list is just ip adresses: 192.168.0.1 192.168.0.2 192.168.0.3 ...... until 192.168.0.150   what i need is the first ncftpput to access the first ip the second number two ip and so on for the amount of threads i need / system can handle  lets say 10 at a time and when the first thread finishes it just takes the next ip NOT taken by any of the other threads.  i hope i made myself clear on my problem and that someone can help me figure this out.  so far i'm doing it this way: (runnig one at a time)  while read ip; do  ncftpput -c -A -u "$USER" -p "$PASSWD" "$ip" "/usr/local/program/program.conf" < "~/addthisinfo" 2>/dev/null      if [ $? -eq 0 ]              then                      echo -e "Here goes my succes test" >>/tmp/text_added              else              echo ""      fi  done <"$pathtoiplist""/iplist"   in advance thanks.  -------edit-------------  i have full access to the server so i'm not restricted in and way conserning software to use.  Michael


The reason why NMF has become so popular

Why do we use Non-negative matrix factorization?What is the advantage and superiority of other matrix decomposition methods?


Using Back to view my Activity page shows me data that's almost 2 weeks old?

I was looking through some of my reviews because I wanted to know what happened to some questions I had reviewed earlier, and discovered clicking on a link from the Activity page then using the Back button would display me the page as it was almost 2 weeks ago.  Page while viewing it:     Page when hitting the Back button:    I found this extremely confusing until I realized what was happening.  Switching between the filters (all, accepts, posts, etc) also displays old data, but clicking on the Activity tab correctly refreshes the page and gives me current data.  Can the Back button take us to the most recent cached data, and not some data from almost 2 weeks ago?  (Not sure if it matters or not, but I'm using Chrome)


What would have to happen to merge the Spider-man franchise and the Avengers franchise?

The two franchises are held by two separate companies. One, Sony, holds the rights to Spider-man 4-7, and are obliged to continue this line or give up the rights to the movies. The other, Marvel Studios, owns the rights to the Avengers and the subsidiary characters.  Under what circumstances might Spider-man join the Avengers? Are movie rights buys outs uncommon? Could a serenity/firefly-esque loophole be pulled off? Could the two studios 'team up'?  The original reason for me asking this is that Spider-man plays a large part in the civil war comic. With The Civil War movie in the horizon,  and the shuffling of executives in Sony after the hack debacle,  I thought there might be some news on this.