List&lt;Account&gt; Acc// this list contains Account records. Acc.Sort() is not working  How to sort the records based on Created Date? Basically i need the recently record from the Acc list
I dont know how to sort a list of SObject Case.  I have a List&lt;Case&gt; newCases which i iterate over in for cycle, where i save Cases to my new List&lt;Case&gt; casesList.  for (Case newCase : newCases) {             if(newCase.Case_Content__c == '111' &amp;&amp; newCase.Status == '24'){                 String cuid = newCase.CUID__c;                 cuidSet.add(cuid);                 casesList.add(newCase);                 casesList.sort(); //TODO sorting by CUID__c             }         }   What i need to do is, to sort this new list by field CUID__c. So the Cases with same CUID are together.  Thank you for any help :)
Who is sample No. 118 in The Case of Charles Dexter Ward? In H. P. Lovecraft's The Case of Charles Dexter Ward, Dr. Willett      Enters Joseph Curwen's dungeon and resurrects a dead person identified as No. 118 by reciting the incantation of the Ascending Node over his salts.   Dr. Willett is told by      The resurrected Joseph Curwen, impersonating Charles Dexter Ward, who he secretly murdered,   that   " 'twas Number 118, and I conceive you would have shook had you looked it up in my list in t'other room."  No. 118 himself gives Dr. Willett a note asking the doctor to      kill Joseph Curwen.   It soon becomes clear that No. 118 is opposed to the nefarious dealings that have been transpiring and desirous of being an ally of Dr. Willett.  Who is No. 118?  Earlier in the story,      The grave of Ezra Weeden, a primary instigator in Joseph Curwen's initial downfall and the romantic rival of Curwen, is robbed. There doesn't seem to be any other mention of Weeden in the 20th century occurrences, so without a further connection the passage seems superfluous.   The shared goals of these two people seem to indicate that No. 118 may, in fact, have been that person, but the      Note given by No. 118 to Dr. Willett in eighth century Latin seems to indicate someone much older than Ezra Weeden.   It also occurred to me that No. 118 could be      The recently murdered Charles Dexter Ward himself. Ward's reference to killing Dr. Allen (who is actually an alias of Curwen) and dissolving his body with acid and No. 118's mention of doing the same to Curwen seem to support the idea, but that still doesn't explain the archaic note. Ward is described as writing in a somewhat modern style, at least as opposed to Curwen. It also doesn't explain why Curwen would want to murder Ward if he was going to resurrect him later anyway. Find and replace text within multiple files I want to know how I can find and replace a specific text in multiple files like in Notepad++ in the linked tutorial.  e.g.: Simulating data to fit a mediation model Spring prototype beans in combination with singleton beans and dependency injection. Is there an approach that is configuration only? How to decide on the correct number of clusters? We find the cluster centers and assign points to k different cluster bins in  which is a very well known algorithm and is found almost in every machine learning package on the net. But the missing and most important part in my opinion is the choice of a correct k. What is the best value for it? And, what is meant by best?  I use MATLAB for scientific computing where looking at silhouette plots is given as a way to decide on k . However, I would be more interested in Bayesian approaches. Any suggestions are appreciated. How do I install VMware player on a Mac os X? How to dismiss the Windows 8.1 Upgrade banner? As of today, my Windows 8 system is displaying a large banner covering about a quarter of the screen, demanding that I upgrade to Windows 8.1 for free.  The banner helpfully informs me that that I can continue to use the computer while the upgrade is downloading.  There's a button to go to the store for the upgrade, but no other choices, such as No Thanks, Maybe Later, or Absolutely Not.    I can't find a way to dismiss the banner, and I can start programs but can't give them focus while the banner is present.  So I'm dead in the water.  How can I fix this?  Bringing up Task Manager doesn't give me any options.    My employer doesn't yet support Windows 8.1 (which is also an issue, but beyond my control) so I won't be able to connect to work if install the upgrade.  So there is no way on God's green earth that I'm going to install this upgrade now.    UPDATE: The banner went away after the second restart and I was able to run regedit as @magicandre suggested.  The banner hasn't reappeared.  So far, so good. Redirect console output to textbox in separate program A childish question (literally) -    My 8 year old asked me this morning: "Dad, what does 'physical' mean?" - and I found myself at loss for an ordinary language answer.   Every answer I could come up with ended up sounding like a definition of empiricism: "physical things are those things that can be observed", "physical means something that can be measured", "whatever can be verified and tested", etc....   Claiming that things that are physical are those things which are material or things that are described by physics seems circular.   Google:     phys·i·cal   ˈfizik(ə)l/   adjective   1.   relating to the body as opposed to the mind.   "a whole range of physical and mental challenges"   synonyms:   bodily, corporeal, corporal, somatic; More   2.   relating to things perceived through the senses as opposed to the mind; tangible or concrete.   "pleasant physical environments"   synonyms:   material, concrete, tangible, palpable, solid, substantial, real, actual, visible   "the physical universe"   And various dictionaries (here Merriam-Webster):      Definition of physical   1   a :  of or relating to natural science   b (1) :  of or relating to physics (2) :  characterized or produced by the forces and operations of physics   2   a :  having material existence :  perceptible especially through the senses and subject to the laws of nature   everything physical is measurable by weight, motion, and resistance — Thomas De Quincey   b :  of or relating to material things     lead to similar definitions.   How can one define "physical" in ordinary language terms? Is there a way of defining "physical" that doesn't presuppose empiricism? What is the rationalist definition of 'physical'?   Is there a definition that doesn't commit to either dualism or empiricism or to any epistemology? "Facebook" could not be downloaded due to an error. (495)   How do I solve this error? How can I securely format a solid-state drive? Assume you cast Barkskin in humanoid form:     You touch a willing creature. Until the spell ends, the target’s skin has a rough, bark-like appearance, and the target’s AC can’t be less than 16, regardless of what kind of arm or it is wearing.   It is clear that under the rules of Wild Shape "transforming doesn’t break your concentration on a spell you’ve already cast", but does the effect of the spell carry over to your new skin? Root filesystem check fails after power failure during installation During the "install" phase of the upgrade there was a power failure. After when starting up again the following errors are reported:  init: udevtrigger main process (420) terminated with status 1 init: udevtrigger post-stop process (428) terminated with status 1 init: udevmonitor main process (419) killed by TERM signal The disk drive for / is not ready yet or not present Continue to wait; or press S to skip mounting or M for manual recovery   Pressing M gives me the following message:  Root filesystem check failed. A maintenance shell will now be started. CONTROL-D will terminate this shell and reboot the system. Continuous function does not map closed set to closed set Are GUID collisions possible? I'm working on a database in SQL Server 2000 that uses a GUID for each user that uses the app it's tied to. Somehow, two users ended up with the same GUID. I know that microsoft uses an algorithm to generate a random GUID that has an extremely low chance of causing collisons, but is a collision still possible? Can I rent a camper in the US/Canada with a European B license? We are considering a holiday in North America with a camper. I have a European driver's license (B) which allows me to drive personal cars up to 3500 kg, although I can imagine that an average camper easily weighs more.  Does my license qualify me to drive a camper? If not, can I take an American/Canadian driver's test which would allow me to drive a camper? I know how to CALCULATE dot product, but still don't understand MEANING of it.  I mean, If I have to explain vector addition I would say that "Sum of two vectors give you the third vector that has the same effect as other two combined"  But I don't know how to explain dot product. For example we have two vectors: v=(3,1) and w=(2,4). Dot product of these two is 3*2 + 1*4 = 10. What does this result (10) tell us? Two layers, same coordinate system, wont show up I have vector two sets of vector layers that won't show up together. One set shows up together and the other set together etc but they are of the same area.  The layers I was given did not have a defined spatial reference which I manually projected as the same as the data frame I specified so all layers now have same CRS...yet not showing up together. I have noticed they appear to have different extents... What should I do? Subgroups of $U(n)$ isomorphic to a direct sum of cyclic groups Let $U(n)$ to be the set of all positive integers less then $n$ and relatively prime to $n$. Then $U(n)$ is a group under multiplication modulo $n$.  A. Find integer $n$ such that $U(n)$ contains subgroup isomorphic to $Z_5\oplus Z_5$.  B. Show that there is an $U(n)$ containing a subgroup isomorphic to $Z_3 \oplus  Z_3$, but not isomorphic to $Z_4 \oplus  Z_4$. Inserting random numbers into a table in MYSQL