How to link a variable of a material to another material?

Let's say I have two materials "material1" and "material2". How do I achieve that material1's roughness(or anything else) is the same as material2's and changing material2's roughness will change both?


Is there history of the StackOverflow/StackExchange -sites available somewhere?

Found some info in Wikipedia and some info in blog, but is there longer (full) story available somewhere?


I'm a complete noobe in physics and quite honestly need help. My question is simple, based on CERN's tentative findings stating the Higgs boson at a mass of ~125 GeV: Is the physics community leaning more towards supersymmetry or multiverse?


Undo suggested edit which is already in pending review

I edited a post which was in need to have the code formatting fix, and at the same time the post's author fixed what I was fixing before I hit the Save Edits button! Now my edit, which there is no need for, is in pending review.  So how can I remove suggested edit in pending review?


Include chapters in List of Figures with titletoc?

I'm working on a book using & and want to include chapters (with their numbers and names, but no page number) in the list of figures, if and only if they contain figures. Manually adding  \addtocontents{lof}{\contentsline {chapter}{\numberline {\thechapter} {#1}}{} }}   after each chapter works (#1 is the chaptername), and I could also fix the alignment (not part of MWE), but I couldn't append this to \chapter.   Can I get titletoc to include chapters into the list of figures? Or how do I modify \chapter to add themselves to the lof?  \documentclass[a4paper,12pt]{book}  \usepackage[pagestyles,psfloats,clearempty,newlinetospace]{titlesec} \usepackage{titletoc}  \titleformat{\chapter}{\huge\bfseries\filcenter}{\vspace{1cm}\thechapter}{0.5cm}{}[]  %\let\Oldchapter\chapter %\renewcommand{\chapter}[1]{\Oldchapter{#1}\addtocontents{lof}% %{\contentsline {chapter}{\numberline {\thechapter} {#1}}{} }}  \begin{document}  \tableofcontents \listoffigures  \mainmatter  \chapter{Introduction} \section{First}  \chapter{Has Figures} \begin{figure} \rule{1cm}{1cm} \caption{caption text} \end{figure}  \end{document}


I've been having some trouble with a little math i've been doing in Java. Long story short, when I do:  double totalS = 1146.35; double down = 114.63;  result = totalS - down;   And the result for this comes out as 1031.7199999999998, when doing this easy equation on a calculator produces 1031.72. Any idea?


How to tell my apache server running in a docker container to write logs to stdout

I have been trying to point my logs to /proc/1/fd/1 but it is saying cannot acces the directory and if i use /proc/self/fd/1 nothing is writing to my stdout


How can I set Excel to always import all columns of CSV files as Text?

Though I try to avoid it, I occasionally have to open a CSV file in Excel. When I do, it formats columns containing numbers, which makes them useless for my purposes. As far as I can tell, the only way to prevent this from happening on import is to rename the file so the extension isn't .csv and use the import wizard to specify the format of each column individually. For files with 50-60 columns, this is impractical.  Since every answer for this oft-asked question on the internet suggests either some means of converting the formatted numbers back once the file is open (which won't work for me - I want to solve the general problem, not a few specific cases) or manually selecting the format type of each column (which I don't want to do), I'm looking for a way to set a global preference or style such that all columns of all CSV files opened are always formatted as text.  I know about "armoring" the numbers with quotes, too, but the files I get don't come like that and I was hoping to avoid having to pre-process the files so Excel doesn't screw them up.  Is there a way to do specifically this: Always format all columns in opened CSV files as text, without manually selecting each column every time during import?  I'm using Excel 2003, but I'll take answers for 2007 if that's what you know.


NullReferenceException when translating instantiated prefab

I keep getting this error:  NullReferenceException: Object reference not set to an instance of an object moveBlock.Update () (at Assets/Scripts/moveBlock.cs:27)  whenever I press Play in Game or when I press Space while in play. I looked at other questions posted but it is not clear to me what the solution is. I think I am missing a GetComponent line, but I'm not sure. using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UIElements;  public class moveBlock : MonoBehaviour {      public float speed = 10;     public GameObject[] blocks;     private GameObject b;      void Update()     {         Vector3 input = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical"));         Vector3 direction = input.normalized;         Vector3 velocity = direction * speed;         Vector3 moveAmount = velocity * Time.deltaTime;                  if (Input.GetKeyDown(KeyCode.Space))         {             b = (GameObject)Instantiate(blocks[Random.Range(0, 7)], new Vector3(0, 6, 0), Quaternion.Euler(Vector3.right));             //b.AddComponent<Rigidbody>().isKinematic = false;         }         b.transform.Translate(moveAmount); // <-- Line 27 throws the exception.     } }


In the hosts file how do I make it instead of redirecting to an IP address redirect to either a domain(example.com) or a URL on an IP address(127.0.0.1/example.html)? I tried typing it in but it doesn't work. I need to know how for Windows and Linux. How can I do it without a program or DNS?


SEO best practices for image based web sites

How should I optimize an image based web site (art gallery, www.cavalet.bg ) to improve the SEO rank for a specific key word (in this case the bulgarian word for paintings - картини)?  The truth is I don't have any idea how could I add this word in the home page, if this would be the right solution. I have it just in the page title, page description, and the logo alt text. I use the word in question in the url for all categories too and in many articles in the blog pages.   What could be the best practices for image based web sites SEO optimisation?


What does it mean it can't access this file?

user@chrubuntu:~$ sudo apt-get update     [sudo] password for user:      user     Sorry, try again.     [sudo] password for user:      E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)     E: Unable to lock directory /var/lib/apt/lists/     E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)     E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?      user@chrubuntu:~$ sudo apt-get -f install     E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)     E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?     user@chrubuntu:~$    I'm trying to install Wine1.6 and i'm using the terminal. When I try to do it otherwise, it says that there are packages that are missing or uninstallable, what does that mean? Am I not able to download Wine?


I have set Grub timeout is 4 sec. But sometimes, grub start to boot after 30 secs. Why? What's wrong?

gedit /etc/default/grub output is:  GRUB_DEFAULT=0 GRUB_TIMEOUT=4 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" GRUB_CMDLINE_LINUX=""   Let me know if u need more output. This happens like 1 out of 5 times. But I do not want this to happen anymore. Any help would be appreciated.


I'm implementing a token server and considering backing them with ECDSA. The options from the library I'm using expose the NIST curves P-256, P-384, and P-521.  does not list P-521, but notes the others as "unsafe" . Would I be unwise to choose an "unsafe" curve over an RSA implementation? I see P-256 is widely used yet listed as unsafe. How should I reason about this?


and . I am finding it hard to distinguish between the two. Confused. Can someone explain me the two terms and difference between them? I tried learning from wikipedia but it said for both the above terms that it is the total energy contained by a thermodynamic system, so Iam confused?


Why should the intersection of two normal subgroups be trivial.

Why intersection of two normal subgroups is trivial ?   I know this is simple but I cant get it.  $|G|=11^{2}13^{2}$    $H$ and $K$ are $11$ and $13$ Sylow normal subgroups respectively . Then why must be $H\cap K=e$ ? I am stuck on it for an hour or so.


Setting `$EDITOR` to open file in local emacs session

Sometimes I need to issue a remote command which uses $EDITOR to pick the, well, editor (think git commit for example). Is it possible to use the local emacs session to open it via, for example, port forwarding (I have tramp installed)?


Conditions for gaussianity of sum of Gaussians

Under which conditions is the sum of a finite number of Gaussian random variables a Gaussian?


how can I capture images from two cameras simultaneously with a computer?

I would like to be able to preview and capture photos from two cameras simultaneously, and download them to my computer. Being able to keep track of which photos were from which camera is also a must.  I haven't bought the cameras yet, and I do not have any requirements as to which cameras are supported (it seems the packages above only support Canons). On the other hand I need a digital camera with 1024*1280 pixel resolution.  I also want to control the capturing step and frequency with software on my computer.   My requirement is about 20 pictures per minute.  What's the best model camera and software for this purpose?  And how I can connect these camera to my computer?


Connecting ArcGIS for Desktop to Oracle without ArcGIS for Server?

Is it possible to connect ArcMap to Oracle without ArcGIS for Server?


Stack Overflow profile account GUI bug in Google Chrome

Problem  I had a problem with one bug in my Stack Overflow account user profile while I wanted to click on next badge.    Solution  Through Ctrl + Shift + I console I selected item boxes and deleted that panel which was before that blue one and after that I could lick on "Let us pick".  Versions/settings   I use Acer Aspire with Windows 10 Pro, 64 bit - all up-to-date I opened Stack Overflow on extended monitor DELL(1280x1024) with correctly working VGA connector Google Chrome Version 69.0.3497.100 (Official Build) (64-bit) in Chrome I have only these extensions installed:   AdBlock Scopus Document Download Manager Google Scholar    Why did this GUI mistake happen? Is it a problem on my site or server site? Can I do something to not repeat it again?


I have removed a contact's number from Contacts. Also blocked the number on Whatsapp but number is still there in Whatsapp. How to remove it from there as well?


Continuity of the derivative at a point given certain hypotheses

Suppose that $h$ is continuous on $[a,b]$ and differentiable on $(a,b)$, and that $c \in (a, b)$. Suppose also that $\lim\limits_{x \to c} h'(x)$ exists. Prove that $h'$ is continuous at $c$.  I really have no idea how to think about this problem. I know if the limit exists then it's differentiable at the point, i was assuming differentiability implied continuity. Someone please give me advice.


Wrong icon on chat reply notifications on chat server

When looking at chat replies on a regular SE site, I see this:    However, when looking at the same notification on , I see this:    As you can see from the hovertext, it seems to just be the icon that is being loaded incorrectly: the  icon is being loaded instead of the SE icon.  This , but with no real resolution other than "wait and it might go away".


I have a wireless Access point which is connected to internet and the same being accessing by 2 system, one on windows XP and the other on Ubuntu.  Please let me know if it is possible to access the c:\ d:\ or any drives on windows xp machine directly from ubuntu system ?  I have tried doing this with 2 windows xp system but not sure how to do this from ubuntu.  Any help regarding the same is highly appreciated. (reason to do so is to access files in windows xp machine)  -Thanks & regards, Manju


Python + OpenCV - Copying an image to some directory

I would like to copy some images to some directory, rather than cv2.imwrite the images. The reason is that when I use cv2.imwrite in OpenCV, I get images that are larger than the original ones, apart from that I can see that some images are being rotated.  Would that be possible in Python + OpenCV, since I don't want any operation to be made on the original image, which cv2.imwrite seems to be doing?  Thanks.


Let $x_1, x_2,\dots, x_n$ be an arrangement of the numbers $1, 2,\dots, n$. Show that if n is odd, then $(x_1 − 1)(x_2 − 2)\dots(x_n − n)$ is even.

For example, for $n = 6$ we could have $4, 3, 6, 1, 2, 5$.  I found this question in "How to Think Like a Mathematician" by Kevin Houston.  I know that $(x_1-1)(x_2-2)\dots(x_n-n)$ is even only if one of the factors is even. However, I do not know how to formally prove this whatsoever.


I am trying to prove the $n^{th}$ transform of the Fourier transform:  $$\mathcal{F}\left(\frac{d^n}{dx^n} f(x)\right)=(ik)^n\mathcal{F}(f(x)) \tag{1}.$$ I have solved the problem for the case $n=1$ by using integration by parts: $$\mathcal{F}(f'(x))=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty} f'(x) e^{-ikx} \ dx=ik\mathcal{F}(f(x)).$$ I think that solving $(1)$ requires $n$ iterations of integration by parts, by i'm having trouble writing this formally. Some help would be really appreciated.


Why does the vertical bar disappear in one cell of my table?

For some reason, the third vertical bar fails to appear in the third last row. Why?  \begin{center} \begin{tabular}{|c|c|c|} \hline  & & & \\ \hline  & & &  \\ \hline  & & & \\ \hline  & & & \\ \hline  &  & &  \\ \hline  &  &  & \\ \hline  &  & & \\  \hline \end{tabular} \end{center}


I am an Economics undergraduate who was reading through a textbook on statistical theory. On one of the questions, I had to find the Variance of $X$ the joint probability distribution, $f(x,y)=\frac{1}{4^{x+y}}$, where $x$ and $y$ were discrete random variables $x=0,1,2,...$ and $y=0,1,2,...$ When calculating $Var(x)$, and trying to find $E(x^2)$ I got stuck at the summation for $\frac{X^2}{4^X}$ for $0\le X$. Previously in the part when I calculated $E(x)$, I was able to sum $\frac{X}{4^X}$ using an AGP. However, when looking at the variance portion, I'm not sure what kind of series this is, and what method I can use to derive an answer. Any help would be greatly appreciated !!


SOQL - Field must be grouped or aggregated

This is a Trigger that will send an email when the same Account has 8 cases created in the last 5 days.  I am receiving a SOQL error:     System.UnexpectedException: field 'Client_Advisor_Email__c' can not be grouped in a query call   However when I remove 'Client_Advisor_Email__c' from the search I receive a total opposite message:     System.UnexpectedException: field 'Client_Advisor_Email__c' can not be grouped in a query call   This is a field I will need further into the code as you will see.  Any assistance is appreciated.  trigger CaseHandlerCountAlert on Case (after insert) {     List<AggregateResult> AggregateResultList = [SELECT AccountId, Account.Name name, COUNT(Id) co,                                     Project__r.Implementation_status__c, Project__r.Client_Advisor_Email__c                                     FROM Case                                     WHERE CreatedDate = LAST_N_DAYS:5 AND Id IN :Trigger.New                                     GROUP BY AccountId, Account.Name                                     HAVING COUNT(Id)  >= 8];                   for(AggregateResult aggr:AggregateResultList){                          Messaging.SingleEmailMessage message = new Messaging.SingleEmailMessage();                              if(aggr != Null && Project__r.Implementation_status__c == 'LIVE - TRANSITION'){                                      //Set Outgoing Email to Implementation Coordinator                                  message.toAddresses = new String[] { Project__r.Client_Advisor_Email__c };                              }                             else if (aggr != Null && Project__r.Implementation_status__c == 'Live - Closed Project'){                                    //Private method getAddresses() retrieves email address from Customer_Success_Managers Public Group                                   message.toAddresses = new String[] { getAddresses() };                             }                           message.Subject = 'Subject Test Message';                         message.PlainTextBody = 'Account name: ' + aggr.get('name') + ' has ' + (Integer)aggr.get('co') + ' cases opened in the last 8 days.';                         Messaging.SingleEmailMessage[] messages =   new List<Messaging.SingleEmailMessage> {message};                         Messaging.SendEmailResult[] results = Messaging.sendEmail(messages);                     System.debug('Account Name: ' + aggr.get('name'));                    }              private List<String> getAddresses(){     List<User> UserList =             [SELECT id, name, email             FROM User              WHERE id              IN (SELECT userorgroupid                  FROM groupmember                 WHERE group.name = 'Customer Success Managers')];      List<String> emailString = new List<String>();      for(User u: UserList){         emailstring.add(u.email);     }        return (emailString);     }     }


15 precision point double variable is rounding incorrectly in C++

If I input value: 3.123456789012345e-09  I should get back 3.12345678901235e-09  But it will only round up on .6 to .9  ostringstream os;  double d = 3.123456789012345e-09 ;  os << setprecision( 15 );  os << d;  istringstream is ( os.str() );  is >> setprecision( 15) >> d; std::cout << d << std::endl;   The real bizzare thing is: The rounding behaviour changes depending on the power:  3.123456789012345e-09 = 3.12345678901234e-09  3.123456789012345e-10 = 3.12345678901234e-10  3.123456789012345e-11 = 3.12345678901235e-11  3.123456789012345e-14 = 3.12345678901235e-14  Every 1000th power rounds correctly... I am so confused. I know that rounding is a bit a of a weird subject but I cant make heads or tails of this. on a 64 bit machine btw.


This question is very basic one but at this moment I could not answer it.  We know $y=\pm\sqrt{x}$ is not a function because one value of $x$ corresponds to more than one value of $y$. Again $y=x^2$ is a function. But we can get the first  equation from the second one, so the first one should be a function, making contradiction.  Could anyone please tell me what I am missing.  Thanks in advance.


So I have to manage a listbox that has columns like table and I would like to give each column a fixed width. I wrote this method to convert the strings into a fixed length:  const int nameMaxWidth = 20; int nameLength = name.Length;  if (nameLength < 20) {    while (nameLength < 20)    {       name = name + " ";       nameLength++;    } } else {    name = name.Substring(0, nameMaxWidth); }   but it seems that it does not work since each letter has different size, for example nnnnn is longer than iiiii although both have the same length. I have tried String.Format but it doesnt work either. Is there anything I can do?


Which files should I include in .gitignore when using Git in conjunction with Xcode?


Using anti-static wrist strap to ground against laptop

I want to do laptop maintenance and looking to ground myself with an anti-static wrist strap.   How, or where, do I ground myself to the laptop? Where can I find a grounding point in order to not make a mistake and spoil something?


The artificer class in Eberron: Rising from the Last War allows for the production of an eldritch cannon at 3rd level.     [you] magically create a Small or Tiny eldritch cannon in an unoccupied space on a horizontal surface within 5 feet of you. A Small eldritch cannon occupies its space, and a Tiny one can be held in one hand.   If a player wants the tiny cannon to 'attach' to their shoulder (I'm fine with the flavour of this...or wrap it's legs around it's wrist etc), am I correct in ruling it still occupies (for lack of a better term) 'hand slot'.   For example:   If the artificer has a Sheild in one hand and has this eldritch cannon on their shoulder, then would they no longer have a free hand to perform a spell casting that requires somatic components? Hold tools? Would it be considered "worn or carried" with regards to being able to move with you?


What political system does Star Trek's Federation operate under?

I've watched all of the Original Series and The Next Generation, and bits of Deep Space 9 and Voyager, all of the movies, but none of the more recent series, or the books. In all of the material I've seen, events tend to mostly focus on Starfleet (understandable, in that the action takes place on Starfleet ships/stations, and the main characters are Starfleet officers). I'm curious how the non-military, non-exploratory parts of the Federation government work.  Clearly, there are individual planetary governments, and some kind of federal government "on top of" that. Does each planetary government send delegates to some central governing body? Do they get population-based representation, one vote per planet, or what? Does the Federation have a "security council" like the United Nations, where some members are "more equal than others"?  What is the Federation government charged with? They're in charge of scientific exploration/defense (via Starfleet), but what else do they do?  I've read the  on the Federation, and it's very vague, mostly just references to government bureaus or departments that are off-hand mentioned in one episode or another. I figured there might be sources with more detail - like the Enterprise series, which I gather has to do with the early period of the Federation, or maybe in another medium altogether.


I am using the package mathptmx to change the text font to Times. However, the mathcal font is changed as well, which is think is a bit ugly.  How can I reset the mathcal font to its default?


I got a cheap old bike I fixed up and I want to install a mid drive motor but the ones I found require a specific bottom bracket size and I don't know what size bottom bracket I have.  The wheels are 700 x 23


How do you get 'ears' when baking bread?

When slashing bread, how can I produce crusty 'ears' on the places where the slash opens up?  Most of the time they open up, but just end up flush with the rest of the crust.


Irreducible polynomial $f$ has at least one root over $\mathbb{F}[x]/f$

I'm having some problems proving the following question:  Let $\mathbb{F}$ be a field, and $f\in\mathbb{F}[x]$ an irreducible polynomial. Show that $f$ has root over $\mathbb{F}[x]/f$  I proved that $\mathbb{F}[x]/f$ is indeed a field, but I am not sure how to show that part. Any hint will be appreciated, thank you!


Are there any downsides to using a mountain bike as a commuter bike?

I am going to buy a bike soon, and I want to make sure I’m making the right choice. I will be using it for commuting and light exercise (nothing over an hour of use a day). I’ve been recommended buying a MTB as it can be used for rough terrain and roads. However, I recently read that it won’t give the best performance. Summary: I want to use a mountain bike for commuting. Has anyone with a mountain bike experienced difficulty cycling on normal car roads? And are there any real downsides to this? Thank you


Entering and exiting 2 different foreign passports - HELP!

I am a UK national citizen and I am travelling for 5 months through Myanmar, India and finally Indonesia. I have 2 valid passports - an Irish and a UK passport. I have my Myanmar and India visa on my UK passport and my Indonesia visa on my Irish passport. I am at a loss of how I can exit India on my UK passport but enter Indonesia on my Irish passport and whether there is even a way of doing this?!  I will have entered India on my UK passport so must exit on this.  I then need to fly to a middle destination such as Kuala Lumpur, Malayasia before flying  to Sulawesi in Indonesia. I will need to collect my bags at Kuala Lumpur and re check in so in that sense I will have to clear immigration both ways than just catching a connecting flight.   On entering Malaysia, at this point can i show my Irish passport on entering to get an entry stamp or is this not allowed since I would have technically come into the country on my UK passport as registered by the plane ticket?! I would then exit Kuala Lumpur on my Irish passport and enter Sulawesi on my Irish one?  I am a little confused on what is legal and allowed - please help!


Regex to extract an IP address from a string

I'm trying to retrieve the IP address from a string. I'm definitely not the first to ask this question, but I couldn't really find an answer doing exactly what we need.  If there is somewhere in the string a combination of xxx.xxx.xxx.xxx, regardless of the text around it, it should extract this number with the dots in between. So it can be used with Test-Connection.  I'm not trying to determin if an IP Address is valid, but I am trying to retrieve the IP Address from a string. Even if it is invalid, like say 900.999.800.254.  Example:  Input             Expected result -----             --------------- IP_10.57.50.91    10.57.50.91 10.57.50.73       10.57.50.73 10.58.4.37 IP     10.58.4.37 ip 10.63.1.22     10.63.1.22 BELPRLIXH300      $False ip 10.63          $False   I've tried so far the the regex's suggested  but they don't give us the IP address as output in the variable $Matches.


Missing fields in User object when i execute an SOQL query

I've noticed when I execute the following query on Workbench developerforce that some fields are missing, however, these fields appear in the schema builder. This is in a developer edition org. The query: SELECT QualifiedApiName FROM FieldDefinition WHERE EntityDefinition.QualifiedApiName='user' Here are the missing fields: BannerPhotoId -Lookup(Photo) EndDay- Picklist GlobalIdentity- Text(36) WorkspaceId- Lookup(IDE Workspace) UserSubtype- Picklist IsSystemControlled- Checkbox PasswordResetAttempt- Number(9, 0) PasswordResetLockoutDate- Date/Time StartDay- Picklist  Any ideas ?? Thank you


"If you don't do it, I'll". Why does that sentence feel so awkward?

Possible Duplicate:          Earlier today while writing a very informal email, I expressed:     If you don't do it, I will.   Upon looking at it, I realized that "I will" could be contracted to "I'll", however, this is completely unheard of and feels quite awkward.  I am now quite curious, is there a reason why ending a sentence with "I'll" feels (or is) so inappropriate?    I understand that the use of contractions is generally an informal use of language so rules of usage can be a bit loose. Therefore, this is a case that to me doesn't make logical sense and  I'm a bit confused.  Why does it feel wrong when an "I'll" is placed at at that end of a sentence, even though such an expression is informal and not, technically, an incorrect usage of the contraction "I'll?"


Feed lists answered questions as "unanswered"

I do not know whether it's a bug or a feature.  In the feed under unanswered header there are questions with answers. I can even see how many answers each question got.    I've checked again and the very first question listed under unanswered tag has an upvoted and accepted answer.  So by  this question is clearly answered. App itself shows green bubble for this question, so apparently it can detect that this question has been answered.


Investigating what keeps changing my php version (apache mod_php)

I'm changing php versions, successfully, but only for a while, then it rolls back.   I have several php versions installed:  leonid@DevSSD:~$ sudo a2enmod php php5.6  php7.0  php7.1  php7.2     So, I do   sudo a2dismod php7.2 sudo a2enmod php5.6 sudo systemctl restart apache2   Php page with php_info() changed, versions changed correctly. I don't care about cli, don't need it yet.    After a while php changed back to 7.2; I don't known why or who changed it. I don't know what log file to check.  I really multiple php versions, at least 5 and 7 latest release.  Holding the package does not help, because I have them all the different php versions and modules I need installed. Nothing is being changed or updated by APT between the version changes.  No, this is not a duplicate of the suggested question, because I have followed a guide, and can make any php version default, but for a little while, I have had a problem somewhere in configs.


Javascript does not have a way of getting a copy of an object?

So I have an object   var ajaxOptions = {             url: ajaxurl,             type: 'POST',             async: false,             success: function (retval) {                 if (!JSON.parse(retval))                 {                      alert("Error occurred.");                 }                 else                 {                     jQuery('#member-modal').modal('hide');                     location.reload();                 }             },             cache: false,             contentType: false,             processData: false         };   which I want to reuse in several pieces of my code, like  var theseOptions = ajaxOptions;  theseOptions.data = new FormData($('#thisform')[0]);  $.ajax(theseOptions); // ... somewhere else in code ...  var thoseOptions = ajaxOptions;  thoseOptions.data = new FormData($('#thatform')[0]); thoseOptions.someOtherOption = "hehehe"; $.ajax(thoseOptions); // ... somewhere else in code ... var poopOptions = ajaxOptions;  poopOptions.data = new FormData($('#poopform')[0]); $.ajax(poopOptions);     The problem is that, as I understand, my vars are actually references to the existing ajaxOptions, so that, for example, when I run  $.ajax(poopOptions);   the key-value pair someOtherOptions : "hehehe" is still there. In reality I would have to do something like   var theseOptions = ajaxOptions;  theseOptions.data = new FormData($('#thisform')[0]); $.ajax(theseOptions);   delete thoseOptions.data; // now ajaxOptions is back to what it originally was // ... somewhere else in code ...  var thoseOptions = ajaxOptions;  theseOptions.data = new FormData($('#thatform')[0]); theseOptions.someOtherOption = "hehehe"; $.ajax(thoseOptions);  delete thoseOptions.data; delete thoseOptions.someOtherOption; // // now ajaxOptions is back to what it originally was // ... somewhere else in code ... var poopOptions = ajaxOptions;  poopOptions.data = new FormData($('#poopform')[0]); $.ajax(poopOptions);   delete poopOptions.data; // now ajaxOptions is back to what it originally was   or maybe I would have to do something like  function getAjaxBaseOptions ( )  {     return {                 url: ajaxurl,                 type: 'POST',                 async: false,                 success: function (retval) {                     if (!JSON.parse(retval))                     {                          alert("Error occurred.");                     }                     else                     {                         jQuery('#member-modal').modal('hide');                         location.reload();                     }                 },                 cache: false,                 contentType: false,                 processData: false             };  }  var theseOptions = getAjaxBaseOptions();  theseOptions.data = new FormData($('#thisform')[0]);  $.ajax(theseOptions); // ... somewhere else in code ...  var thoseOptions = getAjaxBaseOptions();  thoseOptions.data = new FormData($('#thatform')[0]); thoseOptions.someOtherOption = "hehehe"; $.ajax(thoseOptions); // ... somewhere else in code ... var poopOptions = getAjaxBaseOptions();  poopOptions.data = new FormData($('#poopform')[0]); $.ajax(poopOptions);    This seems a little ridiculous. Is there really no native way in Javascript of making a direct copy of an object? WTF?


Cant access my samsung galaxy tab 3 for kids as my google account is blocked

My son has blocked my daughters Samsung galaxy Tab 3 for kids.  It wont recognise my google account as it has exceeded the 5 tries. I have tried holding down the home, sound and power buttons and the little man appears but I don't get any msg about factory reset. Can anyone help?


Cannot dismiss scrollbar in code box, blocks view

This question is a duplicate of  (but this question can't be marked as a duplicate because that question is on meta.stackoverflow.com, and this question is on meta.stackexchange.com).  I'm seeing a bug on stackoverflow.com. I'm not sure if the culprit is Stack Overflow, Google Chrome, or macOS.  (Below I refer to a "code box". By that I mean some text that begins with 4 spaces when editing a question or answer.)  When I hover over a code box that contains one long line of code, a horizontal scrollbar appears. When I stop hovering over the code box, very frequently (maybe 3 out of 4 times) the scrollbar does not disappear. Clicking elsewhere on the page also does not dismiss the scrollbar. The only way to dismiss it is to refresh the page.  ...After experimenting more, it appears to always happen if I enter the box from below, but not always when I enter from above. It seems to be triggered by hovering over the lower half of the box.  Also if I enter from the top and scroll to the right, then until I refresh the page again that scrollbox will behave normally (only show a scrollbar when scrolling, and disappear after). In that case the scrollbar also has a different appearance, being much less tall (maybe a quarter of the height of the code box rather than half as tall).  Further, if I get a box and scrollbar into that functional state and then hover over the lower part of the box for a bit, then sometimes eventually it will break and stay broken until refresh again.  And in any case hovering over the lower part of the box causes the scrollbar to get taller.  Here is a screenshot of the issue:        Google Chrome 71.0.3578.98 (Official Build) (64-bit)  macOS High Sierra 10.13.6  Here is a code box that repros the issue for me:  fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo   Here is another:  foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo


How to know what program is listening on a given port?

I suspect a program is listening on port 8000 on my machine.  When I run the following command, I get this error:  > python -m SimpleHTTPServer # Lots of python error socket.error: [Errno 98] Address already in use   If I use another port (8000 is the default), the web server runs fine.  If I run wget localhost:8000 from the command line, it returns 404 Not Found.  What can I do (or what tools are available) to find what program is listening on port 8000, and from there where that program is configured?


I note the discussion of the lack of female equivalent for uxorious.  Is there any equivalent for avuncular?


In Attack of the Clones, was Dooku really conflicted?

Clearly, Dooku / Tyrannus was not being completely honest about his motives. Clearly he desired power, and was willing to kill to get it. But several instances hint at a deeper motivation:   His attempted seduction of Obi-Wan on Geonosis, His reaction to Anakin's defeat in the duel, the fact that he was a profoundly respected Jedi before he turned to the dark side.   The reaction scene is inexplicable otherwise (unless, of course, you have an explanation). And it seems to me that Christopher Lee was playing it this way regardless...  Thoughts? Anything in extended universe or production info?


Why does WhatsApp require so much space for iCloud backup?

When backing up Whatsapp History to iCloud, Whatsapp required nearly the same amount of free space as the total backup. i.e If Whatsapp need to back up 1.8 GB of data to iCloud it will need 1.8GB of free space on the iPhone.  Is there anyway to get around that? I simply dont constantly have 1.8GB of free space.


Is there any way to jump back to the previous working directory after doing a cd to a different directory?  My use-case is that I'm traversing a directory structure for a Java project, and I'm expecting that the current directory has only one sub-directory. So, I type cd and hit Tab and Enter rather quickly. However, the Tab failed, as I mistakenly expected one sub-directory, when in fact there are more. So now, I just executed cd, and am now in my home directory, instead of the Java project. Is there a way to "undo" this cd and jump back to the directory I was in?


obeylines command is not working inside a definition

The problem is that \obeylines macro is not working while it's inside \def  Compare:  \long\def\linesaver#1{\obeylines#1} \linesaver{ Test1 Test2 }   VS  { \obeylines Test3  Test4 Test5 }   First does not saving newlines, but second does. Why?  Disregard targets i'm trying to reach - consider i'm just trying to understand how exactly tex works under the hood.


I can not use the method .equals(..), it throws NullPointerException

req.getParameter("doit").equal("good");   Is it impossible to write this line in the method? Without it, the program runs correctly. However whenever I write that line, it shows the error messages..     java.lang.NullPointerException at adhoc.FinePrint.doFilter(FinePrint.java:50)   Is there any way that I can check whether "doit" parameter is equal to "good"??


I have 3 projects in my solution explorer. 2 Windows applications and 1 class library, that shall be used by both applications. One application ist compiled to x86, the other one to x64. Is it possible to make the DLL available for both? Or do I need to make 2 libraries with different settings?


Should names of styles or genres be capitalized?

Musical styles, for instance.  Specifically I am dealing with choosing "blues" or "Blues"? I assume it would be the same for visual art styles.


Setting Up SharePoint Alerts for AD Group - No success with troubleshooting tips

(This is similar to other questions on the site, however none of the solutions have worked.) I am trying to create an alert for a SharePoint list to send an email to a domain local AD group.  The associated distribution group has already been added into AD for the group.  The AD domain group has edit permissions to the list in SharePoint. I ran a full profile sync between AD and SharePoint.  When I enter the AD group in the "Send Alerts To" field, it recognizes the group, however, when I click OK I get the following error:  "The following users do not have email addresses specified: (domain\group name) Alerts have been created successfully but these users will not receive notifications until valid email or mobile addresses have been provided."  Thank you in advance for your help.


Is the sequence $x_n$ convergent, where $x_n= a_n - \sqrt{2n}$ and $a_n=a_{n-1}+\frac{1}{a_{n-1}}$

A sequence $\{x_n\}$ is given by $x_n= a_n-\sqrt{2n}$ and $a_n$ is given by $a_1=1$ and $a_n=a_{n-1}+\frac{1}{a_{n-1}}$.  Please help. I could not find a way out.


Find all values x, y and z which satisfy the equation $(x^2 + 1)(y^2 + 1) = z^2 + 1$ given that $(x^2 + 1)$ and $(y^2 + 1)$ are both primes.

Find all positive integers x, y, z which satisfy the equation $(x^2 + 1)(y^2 + 1) = z^2 + 1$ given that $(x^2 + 1)$ and $(y^2 + 1)$ are both primes.  It seems trivial that the only set of integers x, y and z that work are $(1^2 + 1)(2^2 + 1) = 3^2 + 1$, which is equivalent to $2 * 5 = 10$, but how would I go about proving this, or are there any other sets for which the following equation works out?  Thanks in advance.


Series involving log $\sum_{n=1}^{\infty} \left( n\log \left(\frac{2n+1}{2n-1}\right)-1\right) = \frac{1-\log 2}{2}$

Does anybody know how to prove this series?  $$\sum_{n=1}^{\infty} \left( n\log \left(\frac{2n+1}{2n-1}\right)-1\right) = \frac{1-\log 2}{2}$$  I arrived at this through Mathematica.  I tried writing $\log \left(\frac{2n+1}{2n-1}\right)$ as $\int_0^1 \frac{1}{\frac{2n-1}{2}+x}dx$ and $-\sum_{k=1}^\infty \frac{(-2)^k}{k(2n-1)^k}$ but none of them worked.


I've read lots of suggestions on how to make contains case insensitive, but none seem to fit with what I've got.  Sorry if I've missed the obvious.  I've got this.  var data = this.value.split(" ");         $.each(data, function(i, v) {             rows.filter(":contains('" + v + "')").show();         });   How do I make it case insensitive ?  Thanks.  UPDATE  I've got this working using:  var data = this.value.split(" ");     $.each(data, function(i, v) {         rows.filter(":Contains('" + v + "')").show();     }); });  jQuery.expr[":"].Contains = jQuery.expr.createPseudo(function(arg) { return function( elem ) {     return jQuery(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0; };


Transferring Files SSH SCP Error Message: 'Stdin: is not a tty'

I am using a Macbook SSH terminal and generated RSA key pairs and uploaded remote id_rsa.pub with approved permissions. I can connect with remote Apache web server. I can create, open, move, modify and on preliminary inspection can manage files on the web server, no problem ... and generate no error messages.  Surprisingly I can not scp a folder nor document from my desktop to the remote server. Nor can I scp a folder or document from the remote server to my desktop. Each time I receive the error message:   stdin: is not a tty  The scp command to or from the remote web server does not work with either absolute or relative file location references.  My standard syntax looks like this:  From local host:   scp -rp ~/Desktop/foldername username@secureremoteserver.com:~/public_html  From remote host:   scp -rp username@secureremoteserver.com:~/public_html/foldername ~/Desktop/  It appears to be an issue with the stdin: is not a tty error message.  What's going on?  If this error is preventing the file transfers, how do I resolve the stdin: is not a tty?


Why is this file name truncated in Nautilus?

In Ubuntu the "extension" to a file name, that is, the part after the dot (.) is normally visible. Why is Nautilus not showing the extension of eclipse.desktop when the ls command clearly shows that is the full file name?  This is the list view; not the icon view.


struct segment{     int _gcd;     int _count;     segment(){         _gcd=0;         _count=0;     }     segment(int val)     {         _gcd=val;         _count=1;     }     void mergee(segment left,segment right)     {         _count=0;        _gcd=gcd(left._gcd,right._gcd);        if(_gcd==left._gcd)        {            _count+=left._count;        }        if(_gcd==right._gcd)        {            _count+=right._count;        }     } }seg[4*N];   I sought a solution to Ant Colony problem in CodeForces and stumbled on . The thing that confused me the most was this struct part. Is that a declaration of function inside a struct? I also see that there's function overloading in struct too. I am not quite familiar with a function inside struct, as Google search also shows that it's more common to pass structs to an outer function. How do struct functions work? Can they only modify the variables declared inside the struct? Can I return something? The example above only used the function inside struct to modify its variable values.


How do I use the chrome driver in Ubuntu 16.04?

The code below is showing an error as if the file does not exist. I can find the chromedriver.exe file, but the .exe file seems to be non-executable.   These are my commands:  System.setProperty("webdriver.chrome.driver","driver = webdriver.Chrome(executable_path='/usr/local/share/chromedriver')");  WebDriver driver = new ChromeDriver(); driver.get("https://www.youtube.com/");   What may cause this dis-functionality?


the number of boys in the class is fewer than that of girls- correct or not?

The number of boys- countable or uncountable? I'm confused with this sir.


Object invisible during render (Blender v2.81)

So, I'm new to Blender and I'm following a tutorial. I'm making a doughnut and everything looks fine until I decide to see how it looks when I render it. I set the render engine to Cycles and press F12. However, when it finished, I see that all the icing is gone. The rest of the doughnut is there, all the sprinkles are still there, but the icing is nowhere to be seen. I have no clue what's wrong, all objects are enabled to be viewed in render, this is all in one layer, and I can't seem to find anything else like this.  I'm using Blender version 2.81.16 installed on Steam, an AMD CPU and GPU, and Windows 10. If you need anything else, you can just ask me.  If you need to look at the .blend file, here's a Google Drive link to it, you can download it there:   I'll put several screenshots here:            I hope someone can fix this, I have no clue what's causing it. Thanks!


I have a LaTeX project and I am trying to compile it on a macOS Big Sur (MacTeX distro). I use the following command: INTERACTION=errorstopmode OUTDIR=dist JOBNAME=report SYNCTEX=1  latexmk -cd -dvi- -f -pdf -ps- -time \     -jobname=${JOBNAME} \     -outdir=${OUTDIR} \     --synctex=${SYNCTEX} \     --interaction=${INTERACTION} \     main  I scaled down the project up to MWE, like this (main.tex): \documentclass{article}      \usepackage[         backend=biber,         style=numeric,         giveninits=true,         sorting=nyvt,         maxbibnames=1000     ]{biblatex}     \bibliography{bibfile}      \begin{document}          \title{Report title}         \author{Report Authors}         \date{}          \maketitle          \begin{abstract}             Abstract goes here.         \end{abstract}          \section{Introduction}              Intro goes here.             And one reference~\cite{practical-ore}.          \printbibliography%      \end{document}  and the bibfile.bib: @inproceedings{practical-ore,   author    = {Chenette, Nathan and Lewi, Kevin and Weis, Stephen A. and Wu, David J.},   title     = {Practical Order-Revealing Encryption with Limited Leakage},   booktitle = {Fast Software Encryption},   year      = {2016},   publisher = {Springer Berlin Heidelberg},   pages     = {474--493} }  I was able to see this in the logs. I believe, the execution is not supposed to stop after Found BibTeX data source. [0] Config.pm:304> INFO - This is Biber 2.14 [0] Config.pm:307> INFO - Logfile is 'dist/report.blg' [94] biber-darwin:322> INFO - === Thu Mar 18, 2021, 22:28:25 [118] Biber.pm:415> INFO - Reading 'dist/report.bcf' [232] Biber.pm:943> INFO - Found 3 citekeys in bib section 0 [249] Biber.pm:4256> INFO - Processing section 0 [250] Utils.pm:75> INFO - Globbing data source 'bibfile.bib' [250] Utils.pm:91> INFO - Globbed data source 'bibfile.bib' to bibfile.bib [264] Biber.pm:4455> INFO - Looking for bibtex format file 'bibfile.bib' for section 0 [265] bibtex.pm:1653> INFO - LaTeX decoding ... [271] bibtex.pm:1471> INFO - Found BibTeX data source 'bibfile.bib'  Any ideas what's wrong?


Does anyone have any ideas on how to attack this:  $$\int_{0}^{\pi/2} \frac{\arctan^2 \left ( \sin^2 x \right )}{\sin^2 x} \, {\rm d}x$$  I cannot think of something that could work. Wolfram Alpha does not evaluate it either.


Showing $5^{1/3}$ is not in the field $\mathbb{Q}(2^{1/3})$

I want to show $5^{1/3}$ is not in the field $\mathbb{Q}(2^{1/3})$. My reasoning was $[\mathbb{Q}(2^{1/3}):\mathbb{Q}]=3$ and $[\mathbb{Q}(5^{1/3}):\mathbb{Q}]=3$. Similarly we know that  $[\mathbb{Q}(2^{1/3}, 5^{1/3}):\mathbb{Q}]=9$ so by multiplicativity of dimensions, $[\mathbb{Q}(5^{1/3}):\mathbb{Q(2^{1/3})}]=3$ which implies that $5^{1/3} \not\in \mathbb{Q}(2^{1/3})$. Is this the right approach?


Every time I open Blender the same project is opening, I don't know how I did this but I cant close the project and can't open a new project. I haven't saved the project that opens anywhere, this window opens every time.


I'm having trouble with Google homepage, search results, Google Images. They are being showed in a very unusual way. What's the reason behind this?

All the things mentioned above are working fine in Firefox but I'm having problem in Google Chrome. I'm posting below the screenshots of both the browsers displaying the same pages differently.  Firefox :  As I said, everything is normal in Firefox.    Google Chrome :  All the images are being displayed in a weird way. When I click on an image, it redirects me to the page hosting the image , instead of zooming it. Also this error is displaying in the console.   All other sites are working just fine on Chrome. Google homepage, images and search results are the places I've encountered problems on.


I am trying to make clickable text in Minecraft in the chat box. It was used in the adventure map, "UP".   The idea is that you are given an option in the text to click, "Yes", or "No". Each word will give an output of a command.  How is this achieved?


How to include a graph from python in latex text

How would I include a figure from python in LaTeX, in order to use the same font in the text and to adjut the size.  If you can include the code that would be great.   Sorry, if my question is a bit simple.  The last two lines   mpl.use("pgf") mpl.rcParams.update(pgf_with_latex)   Are they ment to be in python code?   If so, what package need to be used with?


In my program I am making the game Tetris! How could I rotate my char array piece? I know how to get the key syncs and everything. I could make each piece already rotated in the char, but is their an easier way? Here is my char array I'd use.  char block[4][5] = {        "     ",       " x   ",       " xxx ",        "     ", };


How to flash the gapps package after installing CyanogenMod

I have recently installed the CyanogenMod in my Samsung N700. Issues now i want to install Google apps like play store, maps etc. Learning from  i have download the .zip package and it is in my sdcard now.  Issue is now i don't know how to use it, if i try to open it its says no application to handle such(zip) files.  Can anyone please guide me through this?


I am currently using UBUNTU 10.04 LTS on a pc connected to a server meant for running Molecular Dynamics and Monte-Carlo simulation using LAMMPS. I don't have any prior experience working on vi editor but from what I have heard from other users is that vim have some added advantage over vi. So, what I want to ask whether vi is mapped into vim in ubuntu 10.04 LTS? If not , how can I do that? Thank you.


Quick or Quickly: “How to Install a PHP Extension: Quick and Easy”

Let’s say I have this title:  How to Install a PHP Extension: Quick and Easy  Should I say quick and easy or quickly and easily?  Why?


Nginx 98: Address already in use - Failed to start A high performance web server issue

My Server Working Good... Until Reboot, After Reboot Nginx not Running Good!  OS: Ubuntu server  nginx version: nginx/1.10.0 (Ubuntu)  HHVM Script Server  I Try many Methods But I can't Fix This:  Configuration Has been Ok.  nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful     Aug 06 16:05:48 HHVM systemd[1]: Starting A high performance web server and a reverse proxy server... -- Subject: Unit nginx.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit nginx.service has begun starting up. Aug 06 16:05:48 HHVM nginx[1618]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use) Aug 06 16:05:49 HHVM nginx[1618]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use) Aug 06 16:05:49 HHVM nginx[1618]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use) Aug 06 16:05:50 HHVM nginx[1618]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use) Aug 06 16:05:50 HHVM nginx[1618]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use) Aug 06 16:05:51 HHVM nginx[1618]: nginx: [emerg] still could not bind() Aug 06 16:05:51 HHVM systemd[1]: nginx.service: Control process exited, code=exited status=1 Aug 06 16:05:51 HHVM systemd[1]: Failed to start A high performance web server and a reverse proxy server. -- Subject: Unit nginx.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit nginx.service has failed. -- -- The result is failed. Aug 06 16:05:51 HHVM systemd[1]: nginx.service: Unit entered failed state. Aug 06 16:05:51 HHVM systemd[1]: nginx.service: Failed with result 'exit-code'.   NginX runnig and I see "404 File Not Found" on Web browser,that meaning hhvm not running .  How can i fix it?


The small, hot, dense early universe the size of an atom was made up entirely of energy, it wasn't until after the expansion began and the universe cooled down some of that energy began converting into the first atomic nuclei.   This quote seems a little dubious but I think this is worth asking anyway: Can someone explain the atomic process, if it even exists, of how this would work to convert energy in to matter, and what form of energy was initially present, and what is required to cause this change?


Prove $(M^e \pmod n)^d \pmod n = M^{ed} \pmod n$?

Is $(M^e \pmod n)^d \pmod n = M^{ed} \pmod n$ ?  If this is true, how can I prove that?


Weather Resistant Outlets vs Weather Proof Box

If I use a regular GFCI in a Weather Proof In-Use box does the GFCI have to be the Weather Resistant kind?


I am sitting on a pile of data concerning wages at a local company and other information, such as the gender, whether the person in question belongs to a minority group etc. What I would like to investigate is whether an additional year of education gives the same relative increase in wages for lower and higher education. For this purpose, I have divided the original data into two subcategories; one group with at most 12 years of education and the other with 13 or more years of education. What I would like to perform is a Chow test of structural change of the form  \begin{equation} F=\frac{\frac{(RSS-(RSS_{\text{lower}}+RSS_{\text{higher}}))}{2}}{\frac{RSS_{\text{lower}}+RSS_{\text{higher}}}{n-2k}}=\frac{(n-2k)((RSS-(RSS_{\text{lower}}+RSS_{\text{higher}}))}{2(RSS_{\text{lower}}+RSS_{\text{higher}})} \sim F(k,n-2k) \end{equation} where $n$ is the total number of observations and $k$ is the number of explanatory variables.  Clearly, I could simply calculate the $RSS:$s directly and then construct $F$ explicitly.   total<-lm(SALARY~EDUC+GENDER+MINORITY)     lower<-lm(SALARY1~EDUC1+GENDER1+MINORITY1)     higher<-lm(SALARY2~EDUC2+GENDER2+MINORITY2)     RSStot<-sum(residuals(total)^2)     RSSlow<-sum(residuals(lower)^2)     RSShig<-sum(residuals(higher)^2)     ((576-6)((RSStot-(RSSlow+RSShig)))/(2(RSSlow+RSShig))      Nevertheless, I am sure there must be a way to do this directly in R. How exactly would that be? I would truly appreciate any enlightenment from any kindhearted spirit. Cheers to all!


I thought the community user was locked at one rep, but , it says the community user had three rep on meta unix and linux. See this:  There, the comments and answers say that the community user can't gain rep. How did this happen despite it being locked at one rep?


How to use the hazard function in survival analysis? And how to make prediction in survival analysis?

I really confuse about hazard function. Initially, I was thinking hazard function should be a proportion, which indicate if we know some one still alive at time t, so he/she got h(t) (eg. h(t)=20%) chance to die at time t. But through reading, I've been told hazard function is not a proportion, it is a hazard indicator which could >1. If so, the only contribution of hazard model is still to compare individual in different group about the risk at time t. It is seems useless for prediction.   So if I want to predict the chance of die for an individual at a time spot, how can I do it? I'm not interested in which predictor impact the risk either positive/negative or significant/insignificant. I just need to know, with a certain input individual, what is the chance of dying at time t.


replacing diode connected BJTs by simple diodes in a current mirror circuit

Why cant we replace diode connected BJTs by simple diodes in a current mirror circuit?


Possible to selectively turn off Marketing Cloud email click tracking?

I know I can turn click tracking on or off per-email by unchecking the "Track all links in this email" at send, but I was wondering if there was a way (possibly with AMPscript?) to turn off click tracking only for a specific domain and/or a specific link?  The use case: we'd like to use Firebase Dynamic Links in our emails, but since they leverage the Universal Link framework on iOS, the tracking redirection makes them misbehave. Ideally, though, we'd like all the rest of the links in each send tracked.


On which Stack Exchange site should I post subjective questions?

I just got a question closed because it was rendered subjective by the moderators. The question is important to me and I believe other people would benefit. So, I ask the following non subjective question: on which site of the Stack Exchange ecosystem should I post  question?


Why upload to academic preprint sites like arXiv?

The recent question  made me realize that I don't have any understanding of why one would upload to a preprint site.  (I don't work in a field where they seem to be common.)  Why would one be concerned about getting a manuscript on arXiv, if it's already under review with a journal?   Is it because of the long publishing timeline of journals?  (That could explain why computer science — which publishes much more in conferences — doesn't seem to do much with them.)


To what value does the following series converge to?

I am asked to sum the series $$1+\frac1{2}+\frac1{3}+\frac1{4}+\frac1{6}+\frac1{8}+\frac1{9}+\frac1{12}+\cdots$$ where the terms are the reciprocals of all positive integers whose only prime factors are two and threes. What I tried so far is:  $$\frac1{2^03^0}+\frac1{2^13^0}+\frac1{2^03^1}+\frac1{2^23^0}+\frac1{2^13^1}+\frac1{2^33^0}+\frac1{2^03^2}+\frac1{2^23^1}+\cdot\cdot\cdot$$ The equence is in the form: $$\frac1{2^n3^m}$$ but what do I do know? I am stuck!


How do I  render a scene with environmental reflections but without environment(HDR in this case) rendering itself ?   ( I want part in red not to render which is an hdr)  .  This is my scene .


Why does http://example.com equal http://example.com/?

When I access http://example.com in a web browser, the browser adds a slash to the end of the URL and loads the page.  The part that scares me is that duplicate content exists when one uses the command-line tool CURL to access the same domain with and without the slash. This means http://example.com/ doesn't redirect to http://example.com or vice-versa, and neither indicate its canonical. (both attempts return the exact same result).  Since practically every website has this issue including this one and mine, Does this mean that I shouldn't care about this duplicate content issue or is there something that can be done about this?


Does $x^2 - y^2 = 12345678$ (x,y are integers) have any solutions?

This question appeared in KVPY online exam held on Nov 5. This equation is the equation of a hyperbola so any solution must be of the form $a\sec(k),a\tan(k)$. So no solutions.


"Popular Question" badges being awarded multiple times on the same question

I've noticed that some people getting the  badge are being awarded it 4 times within a short time period.  Here are a few I found in around 2 minutes but there are countless others:         These all happened around the same time in the day (on the 14th)


I am trying to make a picture for the cover of my thesis using LaTeX. I have a background picture and I would like to have transparent (math) text on top of it, how do I achieve this? I have tried to install the transparent package, but was not successful.


Is using quotation marks in this sentence necessary or not?

Which of the two sentences given below is correct? If both of them are correct, which one is more grammatical?    My answer to all these questions is "yes". My answer to all these questions is yes.   Should I use a capital 'y' in the first case?


What is $\lim_{x\to \infty} 2\sqrt{x}- \sum_{n=1}^x {1\over \sqrt{n}}$?

I ask this because I noticed the partial sum $\sum_{n=1}^x {1\over \sqrt{n}}$ is very close to $2\sqrt{x}$, so close in fact that it appears their difference approaches a constant value, like $H_x$ and $\ln x$. However, when I put this limit as is into Wolfram, it said the limit diverged.   But, I found a way to transform the limit into an infinite sum, by using the transformation $f(x) = f(0) + \sum_{n=1}^x f(n) - f(n-1)$, an application of telescoping series to partial sums.  Thus, \begin{align*}\lim_{x\to \infty} \left(2\sqrt{x}- \sum_{n=1}^x {1\over \sqrt{n}} \right) &=  \lim_{x\to \infty} \left( 2\sqrt{0} + \sum_{n=1}^x \left( 2\sqrt{n} - 2\sqrt{n-1} \right) - \sum_{n=1}^x {1\over \sqrt{n}} \right) \\ &= \sum_{n=1}^{\infty} \left(2\sqrt{n} - 2\sqrt{n-1} -{1\over \sqrt{n}} \right) \end{align*}  This sum converges according to Wolfram by comparison test, and according to me by the integral test, but what does it converge to? It converges incredibly slowly; my best guess is $\approx 1.458$


Is deleting answers you feel are not good answers a suspension-worthy action?

The mods at English Usage are intent on undeleting bad answers, even though I've retracted them. In trying to prune, they give suspensions. What are the rules on that? It's literally only a handful of answers, and of course the accepted answers remain untouched.


What is the difference between recursion and loops and which one is faster

What is the difference between loops and recursion and which one is more preferred for solving a problem?


Does a linear model make assumptions about distributions of depended and independent variables?

As the title says, does a linear regression model make assumptions about distributions of depended and independent variables and what should these distributions be for the model to work as expected ?  I have a log normal distribution (or rather a very positively skewed one) for both  dependent and independent variables and I always log transformed them before doing any fitting but came across an article saying that is not necessary. Also just to add to this, I would like to use the model to predict values of individual data points.


Use the shell test to validate basic file information.

I am trying to write a Bash script that takes the name of a file or directory as an argument and reports if the file is a directory, regular file or other.  The script should also report if the user has read, write and execute permission on the file or directory.  Obviously something like this will get the raw information:  #!/bin/sh read -p "Enter a filename: " fname file $fname ls -la $fname   however, I am wondering if we could just drop the file command completely, pass the filename variable to an ls that we then write some kind of if, then, else statement based on the results. the ls command gives a file type and full break down of the permissions the user running it has on the file, so can I make custom output based on the results of an ls command?  Instead the shell test is recommended. The answer below shows a great example of how to format this.


Why does this perpetuum mobile not work?(Gases and Densities)

I recently came up with the following concept. It is very simple, and may have been thought of before.  A picture says more than a thousand words, so here is it explained in a picture:   Note that water was used to make the example easier to understand. Another gas (denser than Gas A and B) could be used instead, resulting in less friction than when using water.    At first glance, it seems that this machine could run for an indefinite amount of time.  But I do not deem it possible to break the law of energy conservation. However, I have a hard time finding out what kind of force would cause this machine to slow down and stop.


How do I format my 8 GB USB drive to FAT/FAT16 in Windows 7?

I already tried FORMAT /FS:FAT, , Disk Management and .   Do I really need to buy a smaller capacity drive? Can't a formatting tool ignore the area beyond 2 GB?  My Asus netbook's BIOS update requires the USB to be formatted as , and I couldn't get the various Asus BIOS update utilities to work.


Why has "as it did" been used in this sentence?

I read a sentence in "The Hindu" which was:     Coming as it did just after the success of The Shape of Water at the Oscars, the book became an instant bestseller.   I don't know what difference would it have made had I not used "as it did" after "coming".


pick all positive least numbers from data set

I have below data in a table   ID  AMOUNT  DAYS 1   10  1 1   20  2 1   30  3 1   1   4 2   34  1 2   234 2 2   234 3 2   34  4 3   3   1 3   3   2 3   23  3 3   20  4   I want below results as all amounts which have least days of a ID  ID  AMOUNT  DAYS 1   10  1 2   34  1 3   3   1   Please suggest a sql query to pick this desired output


Chemical equation with heat of formation

I'm new to Latex and I'm having some trouble with a simple chemical equation. I have the following code:  \documentclass{article} \usepackage[version=3]{mhchem} % Package for chemical equation typesetting \usepackage{amssymb}  \begin{document} \begin{equation} \ce{N2(g) + 3H2(g) -> 2NH3(g)}} \end{equation}   $\Delta H_{\mathrm{f}}^\circ = \SI{-92.5}{kJ}$ \end{document}   This prints everything that I need, but on separate lines. I would just like the heat of formation (deltaH=-92.5kj) to be inline with the equation. I've tried multiple approaches, but keep getting stuck. I haven't seen this discussed on TEX or elsewhere.


describes how to SSH into a machine that can only be accessed through one or more hosts (that can also be SSH'd into).  Is there an equivalent way of using scp? That is, copy a file to my local machine from the far machine (assuming I have password or key access to all machines along the way)?


PDF and CDF of sum of two independent $\Gamma$-distributed random variables

Let $X \sim \Gamma(m, p)$ with a shape parameter $m$ and a scale parameter $p$ and $Y \sim \Gamma(m, q)$ with a shape parameter $m$ and a scale parameter $q$, and let $X$ and $Y$ be independent.   What will be the PDF and CDF of $X+Y$? How can I solve it in MatLab?


Recently my student visa for Canada was refused and I lost the refusal letter. I paid 25% of the fee to the college. Now they are asking for refusal letter to initiate the refund process. Please help me with this situation. It’s a huge amount. If I don’t get it back it will be a big problem for me. Please help to get the letter.


What tool can I use to transform a binary file to and from plain text?

I would like to send a binary (PDF) file through a channel that supports plain text only.  Is there a multi-platform standard tool that will convert the binary file into a chunk of plain text so that I can send it in this form, and have the other user transform it back to binary afterwards?


References on lattice-based cryptography

I need earlier references (books, articles, etc) on lattice-based cryptography, and any advice will be helpful to me. I am reading Stinson & Paterson's . Thanks in advance.


How to uninstall laptop-mode-tools installed from an .tar.gz archive?

Hey all I downloaded this file () but can't seem to be able to uninstall it. I tried looking online as well as the README file but there is only instruction for installing, not uninstalling the package.   Attempted solutions:  sudo apt-get remove laptop_mode   returned   E: Unable to locate package laptop_mode   but when I type in laptop_mode I do get   Unhandled kernel version: 3.13 ('uname -r' = '3.13.0-32-generic')   Is there any way I can uninstall laptop-mode-tools?


How can I know when should I use whether or if in a sentence? I can not see any difference between whether and if. When should I use each? For me, they are the same and I am not sure if there is a difference.


I have downloaded this pdf file with a very long name, which cannot be opened by Adobe Reader or by Adobe Professional because it has "invalid file name".  It cannot be renamed using the DOS prompt but it has "too long name or extension". I tried to delete so that my recovery program can rename then restore it, it but it won't be deleted as a file.   The only way to delete it is by deleting the folder where it was downloaded into (which I did, but restored it later). It can't also be printed or moved or copied to another folder. Is there a way to open or rename these kinds of files?  I tried to rename it by right clicking the title but what appears is a shortened version of the options with no rename function. I then discovered that it has a password protection, which is not provided by the website from which I downloaded it.


Prompting for user input during ArcGIS Python script tool execution?

I want to prompt for user input after all parameters have been specified for the script tool. I've seen many forum posts and stackexchange questions about this, and they all conclude that it's unnecessary, but I think my case is an exception. I want to give the user an opportunity to confirm data, such as how many sets of GPS coordinates there are. They will be yes/no questions ("is this data obviously incorrect?"), and the script tool parameter input form doesn't seem like it'd work well for this.  I know Tkinter's event handler causes problems with ArcGIS, and other framworks have similar problems. One workaround I found is to have your script call another script that runs as a separate process, and display the GUI from the second process, but that seems a little too hackish.    Apparently wxPython does work, but it's not included with python. I need to be able to distribute these scripts without any extra requirements other than ArcGIS, so that wouldn't work for me.    To clarify, the most important use would be to prompt the user when my software validation checks can't validate the data. For example, I have a list of IDs that I want to validate, but the format isn't consistent. I want to be able to prompt the user with a yes/no dialog if I can't validate in software (eg. the ID doesn't match one of the common patterns). It's possible that new ID formats will be created without my knowledge.    Another example: I have a file that contains, among other things, a table of start & stop times. I want to validate each row of the table individually, and cramming all of that data, plus the other checks, into the warning window would get ugly fast.


Utilizing Both Windows 10 Pro and Ubuntu

ok so my current OS on my laptop is Windows 10 Pro. if i was to download and install Ubuntu on my laptop, would i have the option to be able to switch back and forth with both Operating Systems?


How do I determine if my laptop battery driver is bad, or if I have a bad battery?

Battery will not charge at all.  Read somwhere that it could be the battery driver, but I don't know how to assess that.  Any help appreciated.


Macarons with no feet in convection oven

I made a french macaron (french meringue) and the result was aweful.  The recipe is:  275 g almond with 250 g powder sugar  6 egg whites with 210g sugar  10 minutes on 160 Celsius.  What was wrong


Prove that the number $2^{n}-1$ is divisible by the number $(2^{m}-1)^{2}$ iff the number $n$ is divisible by the number $m(2^{m}-1)$.

Natural numbers $m$ and $n$ are given. Prove that the number $2^{n}-1$ is divisible by the number $\left(2^{m}-1\right)^{2}$ if and only if the number $n$ is divisible by the number $m\left(2^{m}-1\right)$. This is what I've tried till now : As $\gcd(2^{m}-1, 2^n - 1) = 2^{\gcd(m,n)}-1$, we need $\gcd(m,n) = m$ so that means $n = mk$ and $$(2^{m}-1)^2 | 2^{km}-1 \Rightarrow 2^m -1 \Bigg| \frac{2^{km}-1}{2^m-1} \Rightarrow 2^m-1 | 1+2^m + 2^{2m}+\cdots 2^{(k-1)m}$$ How can I proceed from here? I have to somehow show that $2^{m}-1 | k$ as that would imply $m(2^{m}-1) | n$ but I can't get that from here.


Via fences for noise reduction of a chip antenna?

I'm working on a 4-layer PCB that has a wifi module and a chip antenna, the antenna is placed at the corner of the PCB and the copper beneath it is removed, I see that via fences are used on the breakout board of the same module, but the reference design doesn't say much about it, so I was wondering how they work ? how many via do I need ? their placement, sizes and the spaces between them ?   This is the breakout board   This is my current design   Edit: This is the reference design for the module   Edit:  In addition to the references in the answer, I've also found a paper that mentions via fences in RF design, and has some evaluation of different layouts,  section 4.3. Ground Via Shielding Evaluation  Also, I've calculated the spacing between the vias for 2.4GHz to be around 100mils.


Shall I use [Flags] on all enum types in C#

Is it best practice to use the [Flags] ahead of all, even the simplest enum types like this in C# (VS 2015):  [Flags] public enum TValidation {     vUninitialized, vChecksumPass, vChecksumFail, vChecksumZero, vChecksumNone }     Am I clear such use I presented will always be ok with or without [Flags]? Or can it have some unintended side-effects?


I run a multivariable logistic regression in SAS using the main effect/independent variable as continuous and categorical. As a continuous variable the confidence intervals of the odds ratios were extremely wide, i.e. >0.001 to <999,99999. I tried using the Firth correction but it didn't work, I got the same wide CIs. However, when I categorize the main effect variable into tertiles I get tighter CIs without a problem. How is this happening? I run the same predictor variable with two different continuous outcome and I get the fit diagnostics below: [] [] Parameter Estimate for 2nd image: -342.57, 95%CIs -1033.52, 340.37 - similar results for the first image as well. Thanks.


Ridge regression in Matlab produces different results than direct calculation

I am trying to run Ridge regression in Matlab (ridge): $L$ is some matrix, $x$ is some random vector and $y=Lx+\alpha n$ is another vector. I expect $\mbox{ridge}(y,L,\alpha) $ to return the same result as:  $(LL^T +\alpha^2 I)^{-1}L^T y$, but the latter is significantly better. I can't understand the problem as I think this is exactly what ridge() does. I even tried with $\alpha=1$.   Appreciate any help.


Reputation points increment with every edit on the same post

I saw that if I edit a post once then it gives me a +2. But then if I again edit the same post then I get another +2. Isn't this wrong? Reputation points must be awarded only once per question. The successive edits must be treated as the correction of the previous edit.


Question URL auto-parsing stopped working?

In  I link to   This would normally auto-parse to the Question title, but it is not. Unlike here, where both the M&TV.se and the Anime.se links auto-parsed. On my question, it does not. But a url to another question on M&TV did.  Is this a bug or is it not implemented for these two sites?


How to calculate P(X=x|Y=y) using copula functions?

I want to get the conditional probability of P(U=u|V=v) or P(X=x|Y=y) using copulas.However, I found that if I use the copulapdf function of Matlab, the result is bigger than 1! I don't know why. any one could help me? thank very much for your help!  the formulas are following:


After upgrading to 11.10, my system is "forgetting" the default route to the internet every time the machine gets rebooted.  It "remembers" the route to the office (on a second NIC).  In my /etc/network/interfaces file I have both NICs configured as static and specify the IP, netmask AND gateway for each.  But the gateway for the external NIC is no longer being set at boot time (though it worked perfectly in 11.04).   I'm wondering if it might be related to the "waiting for network configuration" problem that I and others seen.  Either way, I need a solution or at least a work-around.  As requested... route -v (after I manually added the eth1 default gateway, of course -- to see it before, imagine the eth1 gateway line missing):  Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface default         216.199.48.57.n 0.0.0.0         UG    0      0        0 eth1 default         192.168.42.1    0.0.0.0         UG    100    0        0 eth0 192.168.42.0    *               255.255.255.0   U     0      0        0 eth0 216.199.48.56   *               255.255.255.248 U     0      0        0 eth1   /etc/network/interfaces:  # The loopback network interface auto lo iface lo inet loopback  # Office network auto eth0 iface eth0 inet static         address 192.168.42.4         netmask 255.255.255.0         gateway 192.168.42.1  # Internet auto eth1 iface eth1 inet static         address 216.199.48.58         netmask 255.255.255.248         gateway 216.199.48.57


I have a problem incorporating a player with ADHD

There's a kid in my High School D&D group with A.D.H.D and he has a lot of trouble sitting still and distracts the other players. He's having a lot of fun goofing off, and doesn't seem very interested in playing but he insist that he wants to play.   I've considered asking him to stop playing for a little while so that the other players can learn the game and help him out more, but I think that might drive him away. He's a good kid and doesn't have a lot of friends, but he's keeping other people from playing the game, I've seen he get out of his chair and literally start wrestling with one of the other players. What should I do?


Currently, I am applying for PhD positions at United States and Canadian Universities. I will be 35 when I start my PhD in Computer Science/Machine Learning, and probably I will finish it around the age of 40.  Will I be banished from academic positions considering a possible PostDoc time and what about industry positions ? Should I plan my study towards industry or academia from the research perspective ?


Oracle SQL get row with MAX value for each group in a set of grouped results

I have a following set of result which i got by running  SELECT         REV_USAGE_DATA.DDATE,         REV_USAGE_DATA.SEGMENT,         COUNT(*) AS Freq FROM CADA_PERMSISDN_DASH REV_USAGE_DATA GROUP BY         REV_USAGE_DATA.DDATE,        REV_USAGE_DATA.SEGMENT ORDER BY  REV_USAGE_DATA.DDATE     For each date I want to get the whole row that has the highest value in the FREQ column. How can I achieve this?


If $(a_n)$ is positive and $\sum\limits_n \frac{a_n}{1+a_n}$ converges then $\sum\limits_n a_n$ converges

I need to either prove the following or find a counterexample. I really hope you can help, I cannot figure it out.     Let $(a_n)$ be a positive sequence.   $$\sum_{n=1}^\infty \frac{a_n}{1+a_n}$$   converges, then   $$\sum_{n=1}^\infty a_n$$   converges


What is the difference between "good" and "well"

Most of the time, I use good and well interchangeably. However, on many occasions I would find well or good a misfit. Please suggest the proper usage.


I have been looking for this for quite some time now. A simple pendulum behaves in SHM. Let's put that pendulum in an upward accelerating elevator. The component of the force that acts in SHM $(\text{mg}\sin\theta)$ still stays the same in my head.  However, websites and books tell me to use $m(g+a)\sin\theta$ where $a$ is the acceleration of the elevator.  I tried to look up Free Body Diagrams, but I can't find any for the case of accelerating frames. Can someone explicitly prove this without using the flimsy argument of "Think it's a noninertial frame with a new effective g"?


How do you disable mouse scroll wheel acceleration in Mac OS?

Under Windows and Linux, the mouse scroll wheel seems to be linear.  Under Mac OS the scroll wheel some sort of acceleration which means it either goes too slow or too fast.


How to configure router to give XBox top priority and the most bandwidth?

I have a "D-Link DIR-655 Extreme N" wireless router and an XBox 360 with the old-style wireless connection thing (usb attachment). I want to configure my router/network to give my XBox as much bandwidth as it wants, whenever it wants.   I have tried giving the XBox a unique IP (within my network) and then tweaking the router to treat that IP as a top priority application (using the router's QOS stuff). Problem is whenever I turn off the XBox, I can't connect to the network the next time I start it up. It seems the only reliable setting in the XBox is to use "Automatic" for the IP settings within the Network Configuration area.  Supposedly the D-Link ships with default settings that attempt to recognize a game console and give it top priority, but I've not seen good results (lots of stuttering/lag when someone else jumps online, etc).


$A_4 \oplus Z_3$ has no subgroup of order 18

Here my solution: Suppose there exists and $H \leq A_4 \oplus Z_3$ such that order of H is 18. Now, notice index of H in $A_4 \oplus Z_3$ is 2. therefore, H is normal, and therefore, the $A_4 \oplus Z_3 / H$ exists. Now, for every $\alpha$ in $A_4 \oplus Z_3$, $\alpha^2H = (\alpha H)^2 = H$ since the quotient group has order 2. But notice, $A_4$ has only 3 elements of order 2, therefore, $A_4 \oplus Z_3$ have only 3 elements of order 2, which implies H has 3 elements of order 2 and the rest must have order 1, and this is an absurd.  Is this a correct solution? Do you guys have any other solution?   thanks,


Unable to mount windows partition after resize

So what happened is I was creating a partition on my HDD (main one, no external ones) that could be accessed from both Windows and Ubuntu, one I could store files I would use on both in. I had empty space on the Windows partition so I shrunk that to the minimum and then created a partition with what was empty. That went off without a hitch. Now, when I try to mount my Windows partition, this is what I get:  Error mounting /dev/sda1 at /media/ubuntu/Toshiba Satellite A105 S4304: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=999,gid=999,dmask=0077,fmask=0177" "/dev/ sda1" "/media/ubuntu/Toshiba Satellite A105 S4304"' exited with non-zero exit status 13: Failed to load runlist for $MFT/$DATA. highest_vcn = 0x7894, last_vcn - 1 = 0x78ef Failed to load $MFT: Input/output error Failed to mount '/dev/sda1': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation  for more details.   I looked around and found I should try running this command : sudo ntfsfix /dev/sda1 but I got this:  Mounting volume... Failed to load runlist for $MFT/$DATA. highest_vcn = 0x7894, last_vcn - 1 = 0x78ef Failed to load $MFT: Input/output error FAILED Attempting to correct errors... Failed to load runlist for $MFT/$DATA. highest_vcn = 0x7894, last_vcn - 1 = 0x78ef Failed to load $MFT: Input/output error FAILED Failed to startup volume: Input/output error Checking for self-located MFT segment... OK Failed to load runlist for $MFT/$DATA. highest_vcn = 0x7894, last_vcn - 1 = 0x78ef Failed to load $MFT: Input/output error Volume is corrupt. You should run chkdsk.  EDIT: 9/2/2013 Adding sudo fdisk -l info:  Disk /dev/sda: 100.0 GB, 100030242816 bytes 255 heads, 63 sectors/track, 12161 cylinders, total 195371568 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5f425f42     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *          63    54028287    27014112+   7  HPFS/NTFS/exFAT /dev/sda2        54028288   117415935    31693824    7  HPFS/NTFS/exFAT /dev/sda3       117417982   195371007    38976513    5  Extended /dev/sda5       193296384   195371007     1037312   82  Linux swap / Solaris /dev/sda6       117417984   193296383    37939200   83  Linux  Partition table entries are not in disk order   What should I do? I don't want to shut down in case it will cause problems. I know that moving partitions can cause problems (accidently deleted GRUB once by simply re-formatting the Ubuntu partition...oops :P), but I didn't think this would. I have the Windows XP disk somewhere, but I'm not totally sure where, I could try and find it. Should I use Rescatux?  Help!


I am brand new to Ubuntu and the forums, and I know very little. So please keep all help simple. I can handle code, but no skipped steps please. Also, if one step needs prior knowledge, I won't know it. I got ubuntu on my Dell Inspiron 3520 model. I have 15.10. My wifi is out, and I don't know why. I have had Vista, Ubunt 14.10, 15.06, and 15.10, and all have thwarted me of wifi by no drivers. In the extra driver section, it says:     Broadcom Corporation: BCM43142 802.11b/g/n (Wireless 1704 802.22n + BT 4.0)   This device is not working.   Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary)   I have tried to download it here, and failed. I have tried many methods, and none have worked. I tried all marked "Answered". I don't know what else to put in. If you need anything, tell me what. Ethernet works.


When I type firefox in terminal, it starts Firefox but the terminal "hangs".  What is happening behind the scenes?  Can I open Firefox from terminal and keep on using the same terminal tab for other things without closing Firefox?


Sort python list by individual letters of strings

I have a python list as follows:  ['a', 'c', 'ab', 'abc', 'bc', 'b']   I need the output as:  ['a', 'ab', 'abc','b', 'bc', 'c']   To build the original list, my code is:  def  buildString( s):     arr = []     for i, c in enumerate(s):         for j in range(i, len(s)):             temp = ''             for k in range(i, j+1):                 temp += s[k]                 arr.append(temp)     x = set(arr)     result = list(x)     return result  print buildString('abc')   This program is to build complete subsequences of an input string in lexicographic order


How do I use xcolor to color a specific cell from a table in pgfplots? Is xcolor the best tool to use here? I'm trying to loop over a list of colors and color the cells in the column individually.  \documentclass{article} \usepackage{pgfplotstable,filecontents} \RequirePackage{listofitems} \usepackage{}  \begin{filecontents*}{test.csv}     ColA, ColB, ColC     0.17, 0.91, 0.67     0.15, 0.17, 0.92     0.48, 0.1, 0.28 \end{filecontents*}     \begin{document}     \pgfplotstabletypeset[col sep=comma,     ]{test.csv}     \def\mylistOne{green, blue, orange}     \readlist*\mylistTwo{\mylistOne}     \newcounter{myCounter}     \setcounter{myCounter}{-1}     \foreachitem\x\in\mylistTwo[]{         \stepcounter{myCounter}         \pgfplotstableset{             every row \themyCounter column 1/.style={                 \cellcolor{\x}         }     } } \end{document}


What's the difference in these commands - cat piped to dd and just cat?

I'm curious to know the difference between these two commands in Linux:  $ cat ./boot.bin ./kernel.bin /dev/zero | dd bs=512 count=2880 of=devos.img   and  $ cat ./boot.bin ./kernel.bin > devos.img


use of commas with conjunction reduction

I wimped out in answering , dropping the commas and going to parentheses in this sentence, because I was not sure of the placement/correctness of commas in this construction. Now I'd like to get clear on how to use commas in this sentence (without reformulating it...no moving "poems", for example), and why. I'm not even sure that conjunction reduction is what causes the awkwardness here...  Wimp version:     I like Lord Byron's (and also enjoy a number of Percy Shelley's) poems.   Now I'm asking, if you use the comma, do you use both commas? It looks mighty strange with "poems" out there by itself:     I like Lord Byron's, and also enjoy a number of Percy Shelley's, poems.   ...Or is the comma even required? I don't like this, but is it correct?     I like Lord Byron's and also enjoy a number of Percy Shelley's poems.


What's the technology used by the tiles at stackoverflow.com's site list?

I'd like to use the tech for . The dynamic tile layout is really cool. I wonder how it is built. After viewing the code, I just find jquery js reference. Is it built using jquery? If so, what module it uses exactly?


"a zero magnetization" or "the zero magnetization" or "zero magnetization"? "a zero magnetic field" or "the zero magnetic field" or "zero magnetic field"? Are there any specific rules for articles before the word zero? Is not "zero magnetization" equivalent to "magnetization 0" which comes with zero article? Thanks!


c++ extract just numbers from an ostringstream

If I have an ostringstream that contains various numbers separated by -  (That's: space - space btw)  Could I extract each number individually?


Sound of a next scene starts one moment earlier than video

I saw this several times in different movies, but I don't understand what is this supposed to mean. The main idea is when the scene is about to change, for one second or so we still see the picture from the old scene, but the sound is already coming from from the upcoming scene. Why do they do this? What's the purpose of this technique?


What is the best way of defining white noise process so it is intuitive and easy to understand?


I can't type a “b” when I'm in the command line

Update I can't even paste a b. I am trying to upgrade to Ubuntu 15.04 but I need to delete some files in the /boot directory. When I cd /oot I can't type a b. So, I thought, I will list the files in the / directory and copy/paste, but to no avail. I can't even paste a b. Update 2 I recently added some lines to the /etc/inputrc file in order to get better tab auto-completion: set completion-ignore-case on set show-all-if-ambiguous on TAB: menu-complete bind TAB:menu-complete   Original Question When I ssh into my ubuntu server I can't type the letter "b". I can however type a capital "B" using either shift keys. I'm using a MacBook Pro with Retina display from 2012, and I'm ssh-ing into a custom built ubuntu box. It is here that I can't type a lower case "b". I have restarted the server and yet I still can't type a "b". Every other letter is fine. It hasn't done that before, I've had the server up and running for about two years and haven't come across an issue like this before. I also haven't done anything notable to cause it to do that. At first I thought the keyboard was a little sticky but when I closed the connection it works fine. I've restarted the server, ssh'd back in and the "b" key stops working again. I've tried my bluetooth keyboard and still no luck. Could this be something that is a rule in a .profile or .bashrc file or something similar? A setting to not allow certain characters. When I try to type the letter "b" I get the terminal bell sound as if it is not allowed.


Confusion is java call by reference and call by value concept

is Java works based on Call by reference or call by value make me confusion?   class Point  {      int x, y;      public Point(int x, int y) {         this.x = x;         this.y = y;     } }  public class demo {      public static void tricky(Point arg1, Point arg2)   {         Point temp = arg1;         arg1 = arg2;         arg2 = temp;     }      public static void tricky(Point arg1, Point arg2)  {         arg1.x = 100;         arg1.y = 100;     }      public static void main(String [] args)  {          Point pnt1 = new Point(0,0);         Point pnt2 = new Point(0,0);         System.out.println("X: " + pnt1.x + " Y: " +pnt1.y);         System.out.println("X: " + pnt2.x + " Y: " +pnt2.y);         tricky(pnt1,pnt2);         System.out.println("X: " + pnt1.x + " Y:" + pnt1.y);         System.out.println("X: " + pnt2.x + " Y: " +pnt2.y);         tricky1(pnt1,pnt2);         System.out.println("X: " + pnt1.x + " Y:" + pnt1.y);         System.out.println("X: " + pnt2.x + " Y: " +pnt2.y);     } }     I'm confused after first method(tricky) got executed i got expected result, but not after second method(tricky).


Hermitian conjugate of differential operator

Help me find $\hat{B^\dagger}$, when we know that $$\hat{B}=i\frac{d}{dr}$$ with the condition that $\hat{B}$ is defined in spherical coordinates. My approach: $$ \langle\psi|\hat{B}\psi\rangle=\int_{0}^{\infty} \psi^* i\frac{d}{dr} \psi dr=\psi^*\psi|_{0}^{\infty}-\int_{0}^{\infty}\psi i\frac{d}{dr}\psi^*dr=\langle\hat{B}\psi|\psi^*\rangle$$ And so I get $ \hat{B^\dagger} = -i\frac{d}{dr} $. Could someone confirm if this is correct?


Can I get married in UK on a visit visa?

I'm a professional soccer player, living in Turkey currently. I want to visit my girlfriend in Great Britain; she's a British citizen.  Can I get married to her while in the UK on a visit visa?  Of course, I don't plan to live in the UK. I just want marry and then leave immediately. Financially, I'm strong and I'm not dependent. I earn $65,000 yearly.


As you can the question in the title, that is what I need to find $$\left(\frac{\,d}{\,dx}\right)^{\pi} x^{\mathrm{e}}$$ But I have never encountered anything in which we need to find the irrational derivatives, can anyone please help me.


How can I generate a random number from 1 - 39 without making a number overlap?

#include <iostream> #include <stdlib.h> #include <time.h> using namespace std;  void randnum() {     int random;     srand((unsigned int)time(0));     for(int i=1;i<=5;i++)     {         random=(rand()%39)+1;         cout<<random<<endl;     } }  int main() {     cout<<"Five random number is here"<<endl;     randnum();     system ("PAUSE");     return 0; }   I am randomly doing this to practice C++. I always get confused in setting the range of random generator (is my method correct? from 1-39). Also how can I prevent numbers from overlapping one another? That is, if I am outputting 5 different numbers from 1-39, it can always 5 different numbers like 4,5,2,7,12 instead of 4,5,2,4,12 (4 is used twice here)


Suppose consider the space (R,d), where d is the absolute value metric, and f is a continuous function from R to R. Let A be a subset of R. Then is  Cl(f(A)) a subset of f(Cl(A))? Prove or provide counterexample. If yes, can you extend in for any arbitrary metric spaces I am very new to metric space and topology, so any help will be appreciated.


How can I synchronize my two Mac Computers?

I have a Macbook and an iMac, generally I work on my Macbook, but sometimes I need that information on my iMac. My OS is Mac OSX Snow Leopard.


Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

Both Linux and BSD have common programs like ls and cat and echo and kill.  Do they come from the same source code, or do both and Linux and BSD own their own unique source code for these programs?


Strange nonexistent link in a specific user's Top Network Posts

I discovered a strange, blank link in 's Top Network Posts:        The above link and screenshot are of the user's Unix & Linux site profile, but this issue can be reproduced on any of the user's site profiles other than Meta Stack Exchange (as the blank post appears to be on this site, and posts from the same site are excluded).  The link seems to go to , which features a really negative question ID (close to the lowest value that can be represented by a 32-bit signed integer, specifically -(2^31) + 1005), and lacks the title in the URL that is present in all of the other links. It leads to a 404 error.  Going to the  seems to go to an actual answer on a question migrated to this site, which happens to have a score of 13 (as of the time this was asked).  Why is the question ID incorrect here? Based on the duplicates, it seems that this affects posts (both questions and answers) that were migrated from other sites: somehow, the question ID seems to be getting messed up.  Update: It looks like the above linked user has deleted their account on this site, so the issue cannot be reproduced on the profile I originally reported. It can, however, be reproduced on . The errant link in that profile is , and the errant question ID seems to also be close to the lowest possible 32-bit signed integer, -(2^31) + 3412.


Java getActionCommand() cannot compare to a String using If statement?

I'm not sure what I'm doing wrong here. I'm trying to create a basic command line using JFrame, which in future I want to create a bunch of functions that will be done based on the user's input, however, when I try to compare the ActionCommand to a string or variable, it doesn't seem to work:  `      import javax.swing.*;     import javax.swing.JFrame;     import java.awt.*;     import java.awt.event.*;     import java.io.*;       public class GUI extends JFrame{  private JTextField cmd;   public GUI(){     super("Command Line V2");       //Window title     setLayout(new FlowLayout());            //Set layout      cmd = new JTextField("Enter Command");  //Make cmd a JTextField     add(cmd);                               //Add cmd to the screen      //Adding action listeners     cmdHandler handler = new cmdHandler();     cmd.addActionListener(handler);   }  private class cmdHandler implements ActionListener{     public void actionPerformed(ActionEvent event){           String butt = "Whut";          if(event.getSource()==cmd){             if(event.getActionCommand()==butt){                  System.out.println("Yay");             }else{                 System.out.println("uh dear");                 System.out.println(event.getActionCommand());             }           }         } }`   This is the GUI.java page, but just incase it's needed, here's the main.java page:          import javax.swing.*;     import java.awt.*;     import java.awt.event.*;     import java.awt.FlowLayout;      public class Main {  public static void main(String args[]){      GUI g = new GUI();     g.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     g.setSize(275,180);     g.setVisible(true);     g.setResizable(false); }      }   When opened, a window opens and a JTextBox appears: "Enter Command" once I write in the command line EXACTLY what the if statement is trying to compare the "event.getActionCommand()" to, it still outputs "uh dear" (Which is what it does if it doesn't compare it to anything)  How am I supposed to fix this? Thank you.