ios which is the best way to pass data from one viewcontroller to another . through singleton class or *.h file?
Passing data between view controllers
Floating sidebar clash with footer in team page Here is a screenshot from  page, with the floating sidebar: (all good so far)        After I scroll down to footer it just combines both:        Can it please be fixed? How do I format a Microsoft JSON date? I'm taking my first crack at  with jQuery. I'm getting my data onto my page, but I'm having some trouble with the JSON data that is returned for Date data types. Basically, I'm getting a string back that looks like this:  /Date(1224043200000)/   From someone totally new to JSON - How do I format this to a short date format? Should this be handled somewhere in the jQuery code? I've tried the jQuery.UI.datepicker plugin using $.datepicker.formatDate() without any success.  FYI: Here's the solution I came up with using a combination of the answers here:  function getMismatch(id) {   $.getJSON("Main.aspx?Callback=GetMismatch",     { MismatchId: id },      function (result) {       $("#AuthMerchId").text(result.AuthorizationMerchantId);       $("#SttlMerchId").text(result.SettlementMerchantId);       $("#CreateDate").text(formatJSONDate(Date(result.AppendDts)));       $("#ExpireDate").text(formatJSONDate(Date(result.ExpiresDts)));       $("#LastUpdate").text(formatJSONDate(Date(result.LastUpdateDts)));       $("#LastUpdatedBy").text(result.LastUpdateNt);       $("#ProcessIn").text(result.ProcessIn);     }   );    return false; }  function formatJSONDate(jsonDate) {   var newDate = dateFormat(jsonDate, "mm/dd/yyyy");   return newDate; }   This solution got my object from the callback method and displayed the dates on the page properly using the date format library. Merge two data frames while keeping the original row order Reading input from text file to array in c++ Automorphism group of the quaternion group I am currently using Ubuntu 12.04 because the latest upgrade 14.04 is not working in my system. I need to install the latest Adobe Flash Player 17 plugin, but it only allows me to install up to version 11.02, so media files cannot be opened. It says that Adobe Flash Player 17 is not compatible with my system. Changing the homepage probability that exactly two accidents happen in any day of a week if 7 accidents happen in a week If 7 accidents happen in a week, what is the probability that exactly 2 accidents happen in any day of the week.  I tried to work it this way.  2 accidents out of 7 can be taken in ${7}\choose{2}$$= 21$.  Now this can happen in any of the 7 days, so we have $7 \times 21$.  Now, the remaining 5 can happen in $6^5$ ways.  So the probability is  $\frac{7\times 21 \times 6^5}{7^7} = \frac{3 \times 6^5}{7^5}$   But this gives me a value greater than 1.   I know I am doing something wrong.  Can anyone help me ? How to check the tasks that are running at different run levels in debian? Mouse acceleration seems to be on by default, and I can't find anywhere in the launcher settings or the in game settings to turn it off.  It's very annoying as it makes it feel as if the mouse is lagging. Is there any way to turn it off? We have officially discontinued the Amazon book affiliate remnant ads, since despite our best efforts they don't perform well for our audience and cannot be made to perform well.  We've often wondered,   I'm thinking this isn't a problem; it has gotten lots of support historically. So we're going to go ahead and do it, so the company Amazon account is still getting some use, and we benefit a little.   To be clear: from this point on, all Amazon links posted on all sites will automatically be rewritten to add our affiliate link. We have a clever affiliate redirect that geolocates the IP address and redirects to the appropriate regional Amazon store (amazon.uk, amazon.ca, et cetera).  If you have any feedback on this, or suggestions, as they say &hellip; speak now or forever hold your peace! I am wondering if we should use  or  for buttons and headings in websites and web/mobile apps? Title Case: Manage my Account Delete my Account  Sentence case: Manage my account Delete my account  In  I found the recommendation 'choose your style and be consistent'. This is it? Aren't there any other (additional) recommendations or sources. Like for specific use cases or apps where the one style would be preferred over the other? Edit: The question refers primarily to English, but differences in other languages are also good to know. Understanding my electrical panel I just purchased .  I'll be installing it in my RV.  Current will be supplied by a 12VDC to 120VAC, 3000W inverter.  I'll be using Single-Pole Type BR breakers.  Here's a picture of the box:    My current understanding is that I must install a grounding bar to the box.  This is my current understanding of how to connect the breaker to the main supply.:    Here is my understanding of how I would wire in new circuits:    Does this look right?  I would really appreciate your help -- I've been beating myself over the head about this. Supporting Multiple Screen Sizes in Storyboards (3.5 and 4 inch screens) How to show $a,b$ coprime to $n\Rightarrow ab$ coprime to $n$? Prove that all 2x2 orthogonal matrices can be expressed as Rotation or Reflection MacBook Pro locked with Find My Mac and won't let me boot Badge symbol in notification is of the site you're on, not where badge was earned It's so cool that the notification reminds you of the colour of badge you've earned. But I am a little puzzled by the symbols:      Is it feasible to use the symbol from the earned site? At the moment it uses the symbol from the site I happen to be on (as you can see by looking to the left of the dropdown in each case.) Get Label value for specified language What diode modifiers are used in practice to model LEDs with SPICE (Berkeley v.3f5)?  are available to me:  #       Name    Parameter                    Units      Default Example  Area 1       IS      Saturation current             A         1e-14   1e-14    * 2       RS      Ohmic resistance               Ω         0       10       * 3       N       Emission coefficient           -         1       1.0 4       TT      Transit-time                   s         0       0.1ns 5       CJO     Zero-bias junction capacitance F         0       2pF      * 6       VJ      Junction potential             V         1       0.6 7       M       Grading coefficient            -         0.5     0.5 8       EG      Activation energy              eV        1.11    1.11 Si                                                                  0.69 Sbd                                                                  0.67 Ge 9       XTI     Saturation-current temperature exponent  3.0     3.0 jn                                                                  2.0 Sbd 10      KF      Flicker noise coefficient      -         0 11    AF      Flicker noise exponent         -         1 12    FC      Coeff. for for.-bias dep. cap. formula   0.5 13    BV      Reverse breakdown voltage      V         ∞       40.0 14    IBV     Current at breakdown voltage   A         1.0e-3 15    TNOM    Parameter measurement temp.    °C        27      50         The dc characteristics of the diode are determined by the parameters IS and N. An ohmic resistance, RS, is included. Charge storage effects are modeled by a transit time, TT, and a nonlinear depletion layer capacitance which is determined by the parameters CJO, VJ, and M. The temperature dependence of the saturation current is defined by the parameters EG, the energy and XTI, the saturation current temperature exponent. The nominal temperature at which these parameters were measured is TNOM, which defaults to the circuit-wide value specified on the .OPTIONS control line. Reverse breakdown is modeled by an exponential increase in the reverse diode current and is determined by the parameters BV and IBV (both of which are positive numbers).   For example, using this basic, cheap red:      I don't care much about high-frequency characteristics -- just would like to be able to match it's IV-curve within its operating specs (-10uA/-5V leakage to +100mA/+2.2'ishV forward):