I've seen this question () which works for strings but what happens if I would like to concatenate a list of string where the string is the property of a class?  The method proposed in that question doesn't work (I've tried).  Given an array or People I want a string which contains the concatenation of their names.   x =&gt; person.Name   How can I solve this problem?
What is the most efficient way to write the old-school:  StringBuilder sb = new StringBuilder(); if (strings.Count &gt; 0) {     foreach (string s in strings)     {         sb.Append(s + ", ");     }     sb.Remove(sb.Length - 2, 2); } return sb.ToString();   ...in LINQ?
Given an infinite set of cardinality $X$, is there a chain in $\mathcal P(X)$ of the same cardinalty of $\mathcal P(X)$? $P(\mathbb N)$ = power set of $\mathbb N$. $A \subset P(\mathbb N)$ is a chain if $a,b \in A \implies$ either $a \subseteq b$ or $ b \subseteq a$ That is, we have something like this: $$\cdots a \subseteq b \subseteq c \subseteq\cdots$$ where $a,b,c \in A$ are distinct. We can show easy enough that there is an uncountable chain - this is done by noting $\mathbb N\sim\mathbb Q$ then using Dedekind cuts in $\mathbb Q$ to define $\mathbb R$ we see that a family of (nearly arbitrary) cuts satisfy the condition. For instance the family $L_r=\{q \in \mathbb Q : q &lt; r \}$ for $r &gt; 0$ gives us the sets we need and obviously we can pick others. I tried doing this for $ \mathbb R$ and don't seem to be getting anywhere.  To be more specific, does there exist a chain in $P(\mathbb R)$ with cardinality $2^ \mathbb R$? Given a set of cardinality $X$ (necessarily non-finite), is there a chain in $P(X)$ of the same cardinalty of $P(X)$? Lowering the throttling temperature in Windows 8 for a laptop System.JSONException: Malformed JSON: Expected '{' at the beginning of object I have getting the below JSON on using JSON.serialize  [ {   "lname" : "Singh",   "hcpZipCode" : null,   "hcpState" : null,   "hcpEmail" : "test@test.com",   "hcpCity" : null,   "hcpAddLine1" : null,   "fname" : "Abhey",   "countryCode" : "AUS" } ]   I don't know why this '[' is coming at the begining.I don't need this '[' at the begining due to which I am getting System.JSONException: Malformed JSON: Expected '{' at the beginning of object  code     public PageReference step2() {         string JSONstr='';        List&lt;HCPRequest&gt; conWrapList = new List&lt;HCPRequest&gt;();        HCPRequest tempcontactWrapper = new HCPRequest();        tempcontactWrapper.fname='Abhey';        tempcontactWrapper.lname='Singh';        tempcontactWrapper.countryCode='AUS';        tempcontactWrapper.hcpEmail=contact.Email;         conWrapList.add(tempcontactWrapper);          JSONstr = JSON.serializePretty(conWrapList);         System.debug('\n******'+JSONstr +'\n******');          String clientId = 'xy';         String clientSecret = 'x';          //We can also store our username password in custom setting.         String username='x';//salesforce username          String password='x';//password+securitytoken         // Generating the Access Token         HttpRequest req = new HttpRequest();         req.setMethod('POST');         req.setEndpoint('https://test.salesforce.com/services/oauth2/token');// this is the OAuth endpoint where this request will be hit         req.setBody('grant_type=password&amp;client_id='+clientId+'&amp;client_secret='+clientSecret+'&amp;username='+username+'&amp;password='+password);          Http http = new Http();         HTTPResponse res = http.send(req);         String str = res.getBody();         wrapObj = (Wrapper)Json.deserialize(str,Wrapper.class);         accessToken = wrapObj.access_token;         instanceUrl = wrapObj.instance_url;          HttpRequest req1 = new HttpRequest();         string response='';         req1.setMethod('POST');         //req.setEndpoint(wrapObj.instance_url+'/services/apexrest/Account/getAccountById?name=champaKAli');         string EndPt = 'y';         string email='test@test.com';         req1.setEndpoint(EndPt);         req1.setHeader('Authorization', 'OAuth '+wrapObj.access_token);          req1.setHeader('Content-Type', 'application/json');          //req1.setBody('{"request":{"lname" : "Singh","hcpZipCode" : null,"hcpState" : null,"hcpEmail" : "test@test.com","hcpCity" : null,"hcpAddLine1" : null,"fname" : "Abhey","countryCode" : "AUS"}}');          req1.setBody('{"request":'+JSON.Serialize(conWrapList)+'}');          //req.setBody('{"request": {"countryCode": "AUS","hcpEmail" : ""+email}}');          //req.setTimeout(60000);             //req.setHeader('Content-Length', '0');         Http http1 = new Http();         HTTPResponse res1 = http1.send(req1);          System.debug('***Response***** ' + res1.getBody());         if(res1.getBody()!=null)         {             response=res1.getBody();             HCPResponse saj=(HCPResponse)JSON.deserialize(response,HCPResponse.class);           System.debug('***Response came full***** ' + saj);            System.debug('***Response came***** ' + saj.accList);             for(HCPResponseDetail s :saj.accList)            {            System.debug('***Response email***** ' + s.hcpEmail);            System.debug('***Response add2***** ' + s.hcpAddrLine2);            contact.Address1_Line2__c=s.hcpAddrLine2;            }           //return response;         //string methodcall=methodGet(JSONstr);               return Page.opptyStep2CustomReg;         } Encrypting a folder I'm familiar with bitlocker, having been using it for a while, but I am looking at just encrypting a folder instead. But I just don't understand the options it's giving me.  When I right-click a folder > properties > advanced > [x] encrypt contents to secure data > OK &lt; apply > ...  I get:  () apply changes to this folder () apply changes to this folder, sub-folder and files.   This doesn't make sense to me at all, if I encrypt a folder then the whole folder, everything within it is encrypted, then why should I be given these options, how can I have a folder encrypted and files within that folder unencrypted, that seems stupid to me, it doesn't make sense at all.  Can anybody explain why these options exist and how can I simply encrypt a folder? How does Motherboard and CPU affect RAM choice? I am seeking advice on which memory to use with my motherboard and CPU. Below are my components and some relevant information extracted from their official websites.   NOTE: Although this is a very specific case, a general answer is equally good for me — and also alot more useful for everyone else!  CPU: AMD Phenom II X4 810   ASUS M4A785TD-V EVO listed as one of many  motherboards.   Motherboard: ASUS M4A785TD-V EVO   4 x DIMM, Max. 16 GB, DDR3 1800(O.C.)*/1600(O.C.)/1333/1066/800 ECC,Non-ECC,Un-buffered Memory Dual Channel memory architecture (Complete list of specs: ).   NOTE II: I wouldn't want to do any overclocking as I have no experience with that. So I think the 1333 MHz is the most appropriate. Since the higher frequencies are marked with "O.C."  Questions:   How can I be certain that a specific RAM will work well (or not work) together with my CPU and motherboard? (The Qualified Vendor List is a good starting point, but it's a bit limited and sometimes a bit outdated). Is it true that choice of memory is not independent of the processor? How?    I'm worried I'll be missing something essential when buying my next RAM chips :) Combining randomForests in R, why are the err.rate, mse and rsq components NULL From ?combine in :     The confusion, err.rate, mse and rsq components (as well as the   corresponding components in the test compnent, if exist) of the   combined object will be NULL.   Why are the err.rate, mse and rsq components for the combined NULL? Is there an efficient way to re-calculate these metrics?  I ask because I would like to figure out a way to use the oob re-sampling method with the parRF model in . I am looking for an animated series, shown in the 90s. I remember an episode where the boy went into VR and fought a medusa-like monster.  It may be that this was the premise for the whole series: That the children heroes go into VR every time to fight the evil guys.   I am not sure if the whole series were computer-animated but surely there were such elements together with classic animation.  The style of the series was quite dark and cool for teenage boys. Wilson and Fermat's Theorem Question!     Show that the pair of positive integers $n$ and $n+2$ are twin primes if and only if $$4[(n-1)! + 1] + n = 0 \ (\text{mod} \ n(n+2)),$$ where $n$ does not equal $1$. MPPT charging a li-ion battery I just designed this MPPT solar charge controller which outputs 4.2 V regulated via MPPT, it uses the SPV1040 IC. This will be used on a satellite with 4 side panels, each with 8 solar cells in parallel outputting 2.6 V at approximately 122 Ma. Each panel will have this exact circuit and all the outputs will be connected in parallel to a 3.7 V lithium ion camera battery.  When active only 1 solar panel will be active and the other MPPT circuits will be offline or providing a very low amount of current. How should I connect the 4.2v to the battery, just directly or using some sort of controller to stop charging at 4.2v? Keep in mind the battery will always have a load and it will charge for around 50m in a 90m cycle due to being eclipsed. I would obviously like the battery to last as long as possible so I am not sure what are the implications of constantly having a battery connected to 4.2 V during 50m. Thanks.   The schematic was made based off a simulation made using the ST Edesignsuite directly from the provider.  Excuse my previous question about this, wasn't properly worded. On Wikipedia, it says that $\lim_{n\to\infty}(1+\frac{1}{n})^n = e$ :     It [e] is approximately equal to 2.71828,[1] and is the limit of (1 + 1/n)n as n approaches infinity, ... ()   When I evaluate $(1+\frac{1}{n})^n$ for $n = 10^8$, I get approximately $2.718281798347$ which indeed is pretty close to $e$.  But when I try to "solve" the limit using the laws of limits, I get  $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n = \left(\lim_{n\to\infty}\left(1+\frac{1}{n}\right)\right)^n$$  because of the power law  $$ = \left(\lim_{n\to\infty}(1)+\lim_{n\to\infty}\left(\frac{1}{n}\right)\right)^n$$  because of the addition law  $$=\left(1+0\right)^n = 1$$  but that would mean that $e=1$, which is obviously not true.  What am I missing / doing wrong?  Thanks in advance. $\sqrt[31]{12} +\sqrt[12]{31}$ is irrational Prove that $\sqrt[31]{12} +\sqrt[12]{31}$ is irrational.   I would assume that $\sqrt[31]{12} +\sqrt[12]{31}$ is rational and try to find a contradiction.  However, I don't know where to start. Can someone give me a tip on how to approach this problem? How can one show there is no holomorphic function $f$ on the open unit disc $\mathbb{D}$ such that it extends continuously to $\frac{1}{z}$ on $\partial\mathbb{D}$? I mean $f$ takes value $\frac{1}{z}$ when $|z|=1$ and continuous here.  Thank you. "IllegalFormatConversionException: d != java.lang.String" when padding number with 0s? In a ring homomorphism we always have $f(1)=1$? Can non-magical persons see the Hogwarts Express during its journey to and from Hogwarts? I am reviewing take aways. I am having trouble  How do I do $342 - 58$?  For the ones column I made the $2$ into a $12$ so I can do $12 - 8 = 4$ but I must take away one tens. So I get $3 - 5$ in tens column but I cant do $3 - 5$. What do I do now do I borrow something else? Proof that the largest eigenvalue of a stochastic matrix is $1$ The largest eigenvalue of a  (i.e. a matrix whose entries are positive and whose rows add up to $1$) is $1$.  Wikipedia marks this as a special case of the , but I wonder if there is a simpler (more direct) way to demonstrate this result. Why would Voldemort spare Lily? In one of Harry's dementor-induced flashbacks, he presumably hears his mother protesting against Voldemort:  Harry was falling again through thick white fog, and his mother’s voice was louder than ever, echoing inside his head – ‘Not Harry! Not Harry! Please – I’ll do anything –’ ‘Stand aside – stand aside, girl –’ ‘Harry!’  Voldemort tells her to stand aside - why did he not just kill her? ViewExpiredException in Firefox and IE after migrating to Jboss 7.0 AS If $\sin \theta+\cos\theta+\tan\theta+\cot\theta+\sec\theta+\csc\theta=7$, then $\sin 2\theta$ is a root of $x^2 -44x +36=0$ My own bonafide attempt. $$ 0&lt;\theta&lt;\pi/2$$   and $$\sin\theta+\cos\theta+\tan\theta+\cot\theta+\sec\theta+\csc\theta=7$$   then show that $\sin 2\theta$ is a root of the equation $$x^2 -44x +36=0$$   I tried to use the above given equation of all the trigonometric ratios, though I ended up with an expression of $\sin\theta\cos\theta$.   But this too is in the form of $\sin\theta$ and $\cos\theta$ which was $\sin\theta\cos\theta=\frac{1}{6-\sin\theta-\cos\theta}$.  When I put that in the quadratic equation, it would again transform into the form of $\sin\theta$ and $\cos\theta$, and hence at last I couldn't prove the thing.  Even hints would work, as I would like to solve the question myself.