NULL vs nullptr (Why was it replaced?)
What exactly is nullptr?
How to "pretty" format JSON output in Ruby on Rails I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted.   Right now, I call to_json and my JSON is all on one line.  At times this can be difficult to see if there is a problem in the JSON output stream.  Is there way to configure to make my JSON "pretty" or nicely formatted in Rails? I'm wondering whether I should use the present tense for a descriptive statement but in a past context. For example:     (1) I went to the zoo and saw a giraffe last week.       (2) A giraffe is a mammal with long neck.       (3) It is the first time I see that animal with my own eyes.   Statement (2) is a description of a giraffe in general, not the specific one in the zoo, so is it correct to use is?  Statement (3) is an event that is still true now, so should I use is and see?  I'm not native speaker so forgive me if the question is very obvious to others. iPhone 7 Plus takes days to turn on showing Apple logo or black screen I’ve had this issue for months but in the last couple of days it’s got very very bad.  When my phone runs out of battery it needs like 2–3 days to turn back on. At the beginning of this problem the phone would need about 1h. Every time when my phone goes off again the time to switching on goes up.  What does this all look like? Well, when my phone died I put it on the charger, then the logo appears and goes off. When it goes off, a black screen pops out with a little white line on in it, then it turns on back to Apple logo. It keeps doing this until it turns on which is 1 or 2 even now 3 days.  I tried to restore it and also update it but nothing happens, literally nothing happened. What is the rule for comma placement before a quotation mark? When should the comma go before and when should it go after the quotation mark? referring to Eqn. 1a) and 1b) in a sentence as eqn. (1) How do I drop an object to the sand? Why are integers subset of reals? In most programming languages, integer and real (or float, rational, whatever) types are usually disjoint; 2 is not the same as 2.0 (although most languages do an automatic conversion when necessary). In addition to technical reasons, this separation makes sense -- you use them for quite different purposes.  Why did they choose to say $\mathbb{Z} \subset \mathbb{R}$ in math? In other words, why are 2 and 2.0 considered the same?  When you are working in $\mathbb{R}$, does it make any difference whether some elements, eg. 2.0, also belong to $\mathbb{Z}$ or not? I am running the latest version of X3 Terran Conflict (3.1) and after about 30 min - 1 hour it's memory usage goes well above 2 GB.  I only have 4 GB of ram, running Windows 7 64 bit.  As a result of X3 using more ram than is available, my hard drive starts paging and makes the game and other applications become unusable.  I have to restart the game.  Is anyone aware of this issue or how to fix it and is there any way in Windows or through some tool, to limit how much memory is given to the game?  Is this a bug in the game? Can this even be fixed?  I'm using some mods but I doubt any of them are causing this as they are simple mods like adding a tractor beam etc. How to encrypt external devices using a cross-platform solution? drupal 7 + services 3 - inserting nodes with select fields I'm using Drupal 7 + Services 3 to create nodes with POST and JSON. Everything works fine, except field types of select - entity reference select or plain text.  The entity reference uses the autocomplete widget, while the text select is a plain radio button.  This is the format I'm using:  "field_urgency": {     "und": [  {  "value": 1    }   ] } Solutions to $y^2 = x^3 + k$? The equation $y^2 = x^3 + k$ for $k = (4n-1)^3 - 4m^2$, with $m, n \in \mathbb{N}$ and no prime number that p is congruent to 1 modulo 4 divids m, doesn't have any answer and its proof can be obtained by using quadratic reciprocity law.  Do you know answers of this equation for two or three different values of $k$? In addition, do you know any reference about that? How to make a multiboot CD that will start a user-chosen ISO file I have many CD ISOs downloaded from the Internet. They are each about 100 MB in size and consist of repair/diagnostic programs and other tools. Some of them are Linux-based; others are based on DOS clones, like FreeDOS. I want to put all of the ISOs onto one bootable DVD, so that when I use the DVD, I will get a menu prompting me to select the ISO I want to boot. How can I do this? I've seen some rescue CDs that are combinations of other people's ISOs, but I have no idea how they were made.  Regarding bounty: I, a different person than the OP, have placed a bounty on this question for a solution that meets ALL of these criteria:  Is for DVDs (not flash drives!!!) Is free Works with any ISO file, regardless of original OS Top bar search doesn't pick up subdomains I wanted to switch to  in the handy dandy site switcher in the new top bar. Entering "cook" brings up nothing:     ... so I have to remember that the boutique title of the site is "Seasoned Advice":     ... in which case the site switcher also thinks that maybe I was thinking of heading over to  to see what's up. So the site switcher searches site names and descriptions, but not subdomains. This is unexpected behavior - I believe it should search all three. Some icons are correct, and some are whack. Turns out it's not just the hot questions list, but the whole icon set. How does "Reputation" work? Right so seeing as the new Deadpool movie shows the origins of Deadpool: specifically, he got cancer... blah blah had to get him the healing factor from Wolverine.  But that makes no sense — they used the same actor, so I'm assuming there must be some connection, right... right? How to skip kernel update? Why doesn't PHP DOM include slash on self closing tags? In LWC am trying to iterate over a list and show the details from the list, this is working correctly , but as a header want to show the record number in a displayed order, below is desired outcome and simplified sample code.  Desired OutCome:   Employee Record 1: A  Employee Record 2: B  Employee Record 3: C   JavaScript:  Var empNames = ["A" , "B" , "C"];   HTML:  &lt;template for:each={empNames} for:item="employee" for:index="index"&gt; Employee Record{index} {employee} &lt;/template&gt;    Actual outcome  Employee Record 0: A  Employee Record 1: B  Employee Record 2: C   I understand as i am using {index} which indicated the position of element in an array which starts from 0 my actual outcome also starts like Employee Record 0 instead of Employee Record 1, but is there a simple way without writing much logic on JS to handle this in html and to make my headers starts from 1 instead of 0? Site blocked by content filter I run a large and high trafficked WordPress powered platform. One of my editors informed me that our site is blocked at his workspace as a "games site". They use WebCat to filter the traffic.  The issue here is that our platform is not a gaming site, although it does have a games category that covers news. And that is a very minor part of the site.  My question is, what can I do to unblock the site? How does WebCat work? Do they use a universal database to filter the traffic (meaning that the site is blocked on all workspace with WebCat) etc. Obviously they need to improve their filtering algorithm.