I am facing issue with LWC, probably connected to the LockerService's Proxy objects.  My code  I am getting the list of custom objects defined in one of my Apex classes by calling Apex method from LWC JS file:  getSettingsForConfigType({configType: this.codeConfigType})             .then(settings =&gt; {                 //this.fieldList = settings;                 this.prepopulateConfig(settings);             })             .catch(error =&gt; {                 this.toastError(error.body.message);             })   The problem  The problem is I need to populate the settings object returned from Apex with additional field. This field is not defined in Apex (and I don't want it to be defined, it will be used only on LWC side). Whenever I try to add new field called fieldValue either with obj.fieldValue = ... or obj['fieldValue'] = ... syntax I get forrowing error:  TypeError: 'set' on proxy: trap returned falsish for property 'fieldValue'  Question  Is there any way to overcome this limitation or maybe I am missing something here?  P.S. Dirty workaround  settings = JSON.parse(JSON.stringify(settings));  However, it seems to be a bit ugly trick. That's why I posted the question :-)
Am not doing anything fancy, just trying to update a field on Contact in JS of LWC but getting this exception.  Uncaught TypeError: 'set' on proxy: trap returned falsish for property 'Name' throws at mydomain/auraFW/javascript/mhontaYdOya4Y_lBu7v9yg/aura_prod.js:2:27687  HTML Code:   &lt;template&gt;      &lt;template if:true={wiredContact}&gt;          {wiredContact.Name}          &lt;lightning-input value={wiredContact.Name} onchange={updateName}&gt;&lt;/lightning-input&gt;     &lt;/template&gt;  &lt;/template&gt;   JS:   import { LightningElement ,wire,track,api } from 'lwc'; import myContact from "@salesforce/apex/ContactController.fetchContact";  export default class Myrefreshapextest extends LightningElement {    @track wiredContact;   @wire (myContact)         fetchedContact({error, data}){             if(data){                 console.log(JSON.stringify(data));                 this.wiredContact = data;             }else if (error){                 console.log(error);             }     }      updateName (event){         console.log(JSON.stringify(event.detail.value));         console.log(JSON.stringify(this.wiredContact));         this.wiredContact.Name = event.detail.value;     }  }   Apex:  public class ContactController {      @AuraEnabled(cacheable=true)     public static Contact fetchContact(){         return [SELECT Id,Name FROM COntact LIMIT  1];     } }   On top of my head, am not doing anything wrong, anyone has idea what's wrong with my code?  When I print console.log(JSON.stringify(this.wiredContact)); I get old values so am pretty sure it exists.  I tried with @track and @api, but same response. Can anyone shed some light?
How to read dash files How can I read a dash file from the terminal other than delimiting it with ./  For example to read a - file we can read it by   cat ./-file_name  Q: Is there an alternative way to achieve the same thing? I'm trying to recall the name of a book I read, probably published after 1990, where alien AI infects satellites and a barrier is established, isolating earth from space that maybe slows down time inside of it, relative to the passage of time outside.  Mars or the moon is also colonized in an attempt to flee the now real possibility that the sun will become a red giant and wipe out humanity in the not-too-distant future (as perceived on earth), but the colony gets one of the time barriers as well.  I think the name of the novel was short, "The _______" (one word).  The story focused more on the human cost and followed one particular family, one member of which was somehow also partially infected by the alien AI, but I don't remember as much about them. I am trying to think of what the name of the word/phrase is for when: An important task (not a difficult one, but a mission critical one) is at hand and instead of one person being assigned to it, a group takes on the responsibility to mitigate any consequences happening to one person in case something goes wrong and also to prevent a mistake or malicious intent occurring from one persons doing. (NOT because the task is big and needs to be divided in a group.) E.g.   Two different people needing to turn a key each in a device simultaneously to launch a missile.  Group of people tallying up votes for an election in case one of them were bridged to rig the outcome. Is there a way to xcopy just changed or new files? I am trying to deploy a website from my desktop to my webserver and so right now I am doing this:   xcopy C:\source X:\destination /s   My desktop is a Windows XP machine, and I need to copy to a Windows Server 2008 machine, but this copies everything and the whole site is very large and it takes a really long time to finish copying.   Is there a way to specifically just copy new or updated files? I see you can pass in a changed-since date, but I wanted to see if there is a simpler way to compare against the destination file...  Also, I am open to using anything outside of xcopy that can do the job as well... javax.faces.application.ViewExpiredException: View could not be restored How would I go about creating a 3D MMORPG Mouse Look? How would I go about creating a 3D MMORPG Mouse Look? I have created a 3D Space Rpg that is almost finished with success so far. However, I didn't have a clue, how I would attempt to make a Mouse Look method where if a user right clickes and then holds the right mouse button and moves it around the camera moves around with the mouse. The camera can not move away from your character/ship, it should act as if the character/ship is it's origin and that it rotates all around the origin.  I don't mind coding this with python either. Advice is welcome! I'm trying to insert a figure into my LaTeX file using the following syntax:  \begin{figure}   \centering   \includegraphics [width=3in]{fig1.png}   \caption{Calculation of shortest path betweenness}   \label{Fig.3:Shortest path betweenness} \end{figure}   It worked for me before but this time I'm getting the following error:   LaTeX Error: \begin{figure} on input line xxx ended by \end{document}   Also, hovering over the red cross symbol indicating error in Eclipse, I see this message    paragraph ended before Gin@iii was completed.   It's obvious that I have the \end{figure} to end my \begin{figure} so I don't understand how I still get that error.  Can someone please tell me what the problem is?  Edit: Add more details for debugging. The problem went away if I remove '[width=3in]'. Here is the detail error:  pdflatex&gt; Runaway argument? pdflatex&gt; width=3in]{fig1.png} \caption {Caption} \label {Fig.1}  pdflatex&gt; ! Paragraph ended before \Gin@iii was complete. pdflatex&gt; &lt;to be read again&gt;  pdflatex&gt;                    \par  pdflatex&gt; l.40  pdflatex&gt;        pdflatex&gt;  pdflatex&gt; Underfull \vbox (badness 10000) has occurred while \output is active pdflatex&gt; (./document.bbl pdflatex&gt;  pdflatex&gt; Package natbib Warning: Empty `thebibliography' environment on input line 3.   Added sample code:  \documentclass[10pt,psfig,letterpaper,twocolumn]{article} \usepackage{geometry} \usepackage{graphics} \usepackage{setspace} \usepackage{natbib} \usepackage{verbatim} \usepackage[scaled=0.9]{helvet} \singlespacing \paperwidth 8.5in \paperheight 11in \oddsidemargin 0in \headsep 1.3cm  \geometry{left=0.75in,top=0.75in,right=0.75in,bottom=1in} \textwidth 7in  \textheight 9.25in \columnsep 0.4in \footskip 0in  \renewcommand{\bibname}{REFERENCE} \pagestyle{empty}  \begin{document} \bibliographystyle{acm}   \title{\fontfamily{phv}\selectfont{\huge{\bfseries{Title here}}}} \author{ {\fontfamily{ptm}\selectfont{\large{\bfseries{author name}}}}\thanks{contact info }}  \maketitle \thispagestyle{empty}  \section*{\fontfamily{phv}\selectfont{\normalsize{\bfseries{Section name}}}}  \begin{figure} \centering \includegraphics[width=3in]{fig1.png} \caption{Caption} \label{Fig.1} \end{figure}  \pagebreak[4] \vspace*{5.52in} \bibliography{ref} \end{document} Can we raise the bar for reputation for late answers to bypass the review queue? I would like to raise the bar for late answers to enter the Late Answers Review Queue to 50 rep, which is the threshold after which users gain the ability to comment. Here are some answers that were posted by users with between 10 to 50 rep (yes, there's a little selection bias to be sure. I suspect most/all of these will be 10k links only by the time you're reading this. Note, all of these are from the last 5 hours.  These are all from Stack Overflow, where I have the most experience, but since Late Answers have a much higher probability to be bad across all stacks, I think this applies generally. Also, I have bolded all the users references to the inability to comment, that were not in their original answers:    (23 rep)     Solution provide by @brandonyang works for me too! (I can't add comments in a response 'cause my low reputation, sorry).   (47 rep)     I tried your answer but it doesn't work in office 365 outlook online. Do you have any suggestions?   (26 rep)     My question is somehow related to the same issue. I am fairly new to C# and have been doing JAVA for quite a long time. When I am coding in C# with .Net framework 4.5.1 using visual studio 2013, I get errors for using certain libraries but I donot know which dll should I reference in my project How do C# people figure that out? For example I wanted to code to draw an ellipse and needed system.Windows.Media and System.Windows.Controls both of which were giving me errors, after googling for quite sometime I got to know that we need to reference PresentationFramework.dll, is this the only way to figure it out?      PS >> I am unable to post this as a comment hence putting it as answer.      Thanks.   (19 rep)     i like  video. It explains the differences between int and Integer and cautions of using Integer   (21 rep)     I have a question, i am actually trying to copy the database from Prod server to test server ( SQL server 2008R2). I am wondering would it copy the users logins, roles and permission as well ?      I know I suggested 50 rep above, but while I was compiling that, I . Perhaps it should be 100 rep, not 50. I am less confident about this, but I thought I'd add it as an addendum for discussion.     The answer posted  is the simplest solution that you are looking for to solve your problem, so take a look ;) How does one change to engineering for graduate school after undergrad in a science field? I've always had an interest in electrical engineering (actually all engineering in general) and I've decided that I'd like to pursue a graduate degree.  I guess I'm wondering if I should really try to do this or just keep it as a fun hobby I spend all my free time doing.  So, the question is,  how does one change fields between undergrad and grad school?  A specific example follows, but please provide answers that address a more general case, so that your answers will be helpful to other people with the same general question.  I already have a BS and MS in chemistry with a minor in applied math.I published three papers during my MS, one first author in the top journal in my specialty and two as coauthor in an average and a so-so journal.  I hope those will count for something.  I finished my BS with around 3.1 and my MS with a 3.9 gpa.  I'm sure that my MS advisor would write me a great letter.  My GRE scores are too old to count so I'd have to retake it or try and get a pass on it since I already have a graduate degree.  Since finishing school I've been working for 4 years as a chemist.  I can get great recommendations from my supervisor who is a PhD chemist.      I've been working for a while to cover some of the things I would have learned in a BSEE to try and make up for my lack of one.  I worked through some texts on analog/digital design, lots and lots of programming, built a balancing robot that got a bit of internet attention, and I'm currently working on an autonomous robotics project that's looking really good so far.  After that I have more project ideas than I have time or money for.    I want to apply for PhD programs (specifically in controls/robotics) but I'm worried that my application will get tossed right away because I don't have a BSEE.  Maybe I should just apply to MS programs? Pass Method as Parameter using C# How do you pass a function as a parameter in C? I want to create a function that performs a function passed by parameter on a set of data. How do you pass a function as a parameter in C? How should I parse the sentence "Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo." When searching for the desired SE site, the down arrow key (down) should work in order to choose the site one is looking for and hit enter to visit it, instead of using the mouse point to choose it. Would be pretty convenient. One of my associates had their Hotmail account broadcasting spam, and presumably hacked. They managed to change the password, but after that, the account got locked; Hotmail asks you for a phone number, and they're supposed to call you with a code.  This person requested the code several times, with different numbers (even two of mine!), but never received any call with the confirmation code.  I referred them to the full-length process, which includes answering the security question; apparently, they forgot their question (having entered it over a decade ago and never reviewed it since).  What options, if any, exist to restore access to this person's account? They only want to grab their contacts; they plan to operate full-force on GMail going forward. I need to prove that the center of $A_n$ is trivial for $n \geq 4$.  $Z(A_3) = A_3$, since $A_3 = \mathbb{Z}/3\mathbb{Z}$ is commutative.  One idea is two use "counting" technique. First of, all we count cojugacy classes of even permutations in $S_n$. It's the classes correspodning to the types $[\lambda_1, ..., \lambda_r]$ where $n \equiv r \mod 2$  Now, the conjugacy class in $S_n$ correspoding to the type $[\lambda_1, ..., \lambda_r]$ splits into two equal-sized classes in $A_n$ if $\lambda_1, ..., \lambda_r$ are distinct odd numbers. If they aren't then it is preserved in $A_n$.  Then we can use "the counting formula"(  ) of elements in each "even" class of $S_n$ and divide one by $2$ if needed.  Still, I'm not sure if it can be done. Seems to be a lot of work there. Maybe there are other, he easier ways? Or, maybe, it is the way, in this case, I wouild appreciate any advices. What is currently the most reliable VPN for China? I will soon be spending a few months travelling across China and want to get a VPN service to get around the Golden Firewall.   When I was in China in 2014/15 the general consensus was that Astrill offered the most reliable service, but I heard that they have been targeted quite strongly by the government over the last year.   Therefore, I am wondering what is the best VPN for China these days? Is Astrill still as good as it used to be?   Any recent experiences would be very helpful! Is there a phrase that means sleeping with someone without sex? Removing intercept from GLM for multiple factorial predictors only works for first factor in model I am running a binomial logistic regression with a logit link function in R. My response is factorial [0/1] and I have two multilevel factorial predictors - let's call them $a$ and $b$ where $a$ has 4 factor levels  $(a_1,a_2,a_3,a_4)$ and $b$ has 9 factor levels $(b_1,b_2,\dotsc,b_9)$. Therefore:  mod &lt;- glm(y ~ a + b, family = binomial(logit), data=pretend) summary(mod)   The model output would then show all the information about the model as well as the coefficients.  There is a factor level for both a and b missing (a1 and b1) from the summary output. I understand that it is constrained in the "intercept" of the model. I have read that if I want to remove the intercept term and see the estimates for those factor levels I can just add -1 to the model formula, i.e.:  mod2 &lt;- glm(y ~ a + b - 1, family=binomial(logit), data=pretend) summary(mod2)   In the new model (mod2) the intercept term is then gone and variable a's factor-level a1 is given amongst the list of coefficients. But, variable b's factor-level b1 is still missing and given that there is no intercept term anymore, how can I interpret the odds-ratio for that factor level then?  Could someone please explain to me how to get the coefficient for b1 too and why this is happening? I have the following question:    $\textbf{Question}:$ Let $\mathcal{F}_1$ and $\mathcal{F}_2$ be two algebras. Is $\mathcal{F}_1 \cap \mathcal{F}_2$ a $\sigma$-algebra?  I believe the answer is no. I know the definition of an algebra and the definition of $\sigma$-algebra.    I'm assuming I need to show that the intersection of the finite unions of each algebra is finite, but then I get stuck trying to work out how to show it is not a $\sigma$-algebra.  All help is appreciated.  Many thanks, John When I boot my Windows 8 laptop (see details below), it displays this message:  Recovery  Your PC needs to be repaired  A required device isn't connected or can't be accessed.  Error code: 0xc0000225  [ A text saying I should use recovery tools on my installation media to fix the issue. ]  Press Enter to try again  Press F8 for Start-up Settings  Press Esc for UEFI Firmware Settings   If I press Enter or F8, the central part of the message changes to:  The application or operating system couldn't be loaded because a required file is missing or contains errors.  File: \Windows\system32\winload.efi  Error code: 0xc0000225   I don't have a recovery disk and I have owned this computer for a year with no problems. All I did prior to this error was unistall avast and restart. I can only access UEFI Firmware Settings and have no clue what to do from there. PLEASE HELP!