I am using Kinvey Kit in one of my apps. While using query +(KCSQuery *)queryOnField:(NSString *)field withExactMatchForValue:(NSObject *)value, I try matching record with KCSUser userId. It does not match by using self.userId but if I do @"53a7ded611324c8002041603", it matches immediately. self.userId is same as 53a7ded611324c8002041603 except its type is NSCFString.   Its driving me nuts. Is there anyway to change NSCFString to NSString.
My objective here is really simple -- I'm trying to set an NSString to some test data, then return the class, which should be NSString. Here's my code:  NSString* stringer = [NSString stringWithFormat: @"Test"]; NSLog(@"%@", [stringer class]);   The log says that the class is NSCFString, not NSString. What's going on here?
How do I install a fingerprint reader on Lenovo ThinkPad? How can I detect when an Exception has been thrown anywhere in my application?  I'm try to auto-magically send myself an email whenever an exception is thrown anywhere in my Java Desktop Application.  I figure this way I can be more proactive.  I know I could just explicitly log and notify myself whenever an exception occurs, but I'd have to do it everywhere and I might(more likely will) miss a couple.  Any suggestions? What is a "closed" or "duplicate" question? Questions can be closed or marked as duplicates.  What does it mean for a question to be &quot;closed&quot;? What does it mean for a question to be marked as a &quot;duplicate&quot;? Who can close a question? What are the reasons for closing a question ? Is closure the end of the road for a question? When are closed questions eligible for deletion?   Related        For more information, see &quot;&quot; in the . Node.JS Not working on the internet I am trying to put a server together to install Ubuntu. I bought an Intel S1200v3RPS motherboard and plugged an Intel Xeon E3 processor into it. I purchased a 1U chassis from Supermicro with a power supply.  The power supply does not have a 5-pin cable to the motherboard's Auxiliary Power Supply socket. A bit of research did not give any definite answer on the need for the 5-pin connection. The motherboard does not power on and the CPU fan is off. I tested the power supply on a desktop Intel motherboard and it works fine.   I would like to buy a new power supply but could not find one which expressly stated that it comes with the 5-pin aux power supply cable. Any recommendations on a power supply unit for this motherboard would be helpful. Any comments on the problem would be greatly appreciated. The strange thing is that opened scripts or newly opened ones are working fine. It's the new created C# scripts that are not working.  With not working, I mean the MonoBehaviour is not in light blue color it's in black color. In this screenshot I took, I marked it with a red circle.    What have I tried so far? I have closed Visual Studio and started over again.  Since it didn't solve it, I closed the unity editor and started it over again, to no avail.  I pressed 'clean solution', I pressed 'rebuild solution', I pressed 'build solution'.  What else can I do ? And why are the other scripts working fine? If I type gameo...it will auto complete it to GameObject but in this specific script it's just not working.  This is a screenshot of the editor. I have in the Hierarchy a Ladder object.  In the Assets I created a folder name Ladder and a script name Ladder. But this Ladder script is not working.    This is the Ladder script and this script was working before but once I created another script inside the ladder folder name Raise empty script the Raise script didn't work and now the Ladder is not working either. But other scripts are working fine.  using System.Collections; using System.Collections.Generic; using UnityEngine;  public class Ladder : MonoBehaviour {     public Transform charcontroller;      private bool inside = false;     private float heightFactor = 3.2f;      private void OnTriggerEnter(Collider other)     {             inside = true;     }      private void OnTriggerExit(Collider other)     {             inside = false;     }      private void Update()     {         if (inside == true &amp;&amp; Input.GetKey("w"))             charcontroller.transform.position += Vector3.up / heightFactor;     } } Combine two columns into a list of all possible combinations of entries I have two columns such as:  a   1  b   2  c    and I need to combine them like:  a   1 a   2 b   1 b   2 c   1 c   2   Is it possible with a formula? I've heard that ratios or inverses of random variables often are problematic, in not having expectations. Why is that? The title is the question. I am told that ratios and inverses of random variables often are problematic. What is meant is that expectation often do not exist. Is there a simple, general explication of that? I would like to format a price in JavaScript. I'd like a function which takes a float as an argument and returns a string formatted like this: &quot;$ 2,500.00&quot;  What's the best way to do this? Proof a set cannot contain its own powerset - Russell's Paradox I don't want my users to change the system wallpaper. How do I the lock the wallpaper down? Update  Users are changing wallpaper by right clicking the picture and choosing set as wallpaper. How to restrict this behaviour?  Is it possible to remove Backgrounds Tab from Appearance Preferences? If yes how? Should a gas water heater be shut down if the water main has to be turned off? I have a brand new AO Smith 50gal gas water heater. Today there was a burst pipe from the cold spell we're having currently, so I had to turn off the water main to the house until the plumbers get here tomorrow.  With that, nobody had used any hot water all day so it should be full, but do I need to turn the water heater off until the water can be turned back on tomorrow to avoid any damage etc? Infinite series $\sum _{n=2}^{\infty } \frac{1}{n \log (n)}$ I have some questions regarding suspended users:   Why do suspended users have a reputation of one? According to the default reputation of a new user, he/she will have reputation of one and he/she has the privilege of posting questions. When comparing this, this is getting violated when compared to suspended users' reputation. Even though they have one reputation point, they cannot post questions. As suspended users do not have privilege of posting questions, there is no use of making "Ask Question" visible. This is an unnecessary server hit. Am I right? As suspended users do not have the privilege of answering questions, there is no use of making "Answer Question" visible. How to solve the diffencial equation for power series $(1+x²)y'' - 6xy=0$ in $x_{0}=0$ I have tried for the power series but when suppose the solution is $y(x)=\sum _{n=0}^\infty a_nx^n$ appeared sums dependents of $a_n$,  $a_{n+2}$ and $a_{n-1}$ and this is not possible. Google Spreadsheets: IF not working I have problems with my IF command in Google Sheets. If gives #ERROR! all the time. See this simple test:    Not even if I put in the number directly and avoid references:    Am I using the IF wrong? Or what could such a problem be? This example is from a new document. Why don't we include $\rho g h$ in a hydraulic jack below? $ not defined using jQuery in WordPress I know that jQuery is loaded, because I can switch out the $ for 'jQuery' and everything behaves as expected, but this will be a messy script if I can't fix this  This script:  jQuery(document).ready(function(){     $("ul.vimeo_desc_feed li a").click(function(){         alert($(this).attr('href'));         return false;     }) });   Produces the error $ is not a function  This script:  jQuery(document).ready(function(){     jQuery("ul.vimeo_desc_feed li a").click(function(){         alert(jQuery(this).attr('href'));         return false;     }) });   works fine. DOS of Van Hove singularity in 2D square lattice tight binding model For the simplest example, 2D square lattice tight binding model gives the energy band as $$\varepsilon_k=-2t(\cos k_x+\cos k_y) \, .$$ We know that $\mathbf{k}=(0,\pi)$ and related momentum points are saddle points which give $|\nabla_k \varepsilon_k|=0$ and thus some kind of singularity in density of state (DOS) since $$\rho(\varepsilon)\propto \int_{\varepsilon=\text{const}} \frac{d S}{|\nabla_k \varepsilon_k|} \, .$$ How can I get the $\ln$ divergence for DOS near $\varepsilon=0$? Should I only care about those singularity points and omit the integral from normal parts and do Taylor expansion near those saddle points?   Moreover, why are points like $(\pi/2,-\pi/2)$ or $(2\pi/3,-\pi/3)$ not called Van Hove points when those points are also lie in the $\varepsilon=0$ line and give $|\nabla_k \varepsilon_k|=0$? Want to cancel a 'Pending Erase' on iphone... Any suggestions? I lost my phone on vacation and activated 'Lost Mode' for a couple of days. The night before heading home I decided to do the Remote Erase ´cause I thought there's no way I'd get it back, I also called my carrier and canceled the data service on my number. The phone has been offline ever since but the hotel just called to say they found my phone at the spa and they are mailing it back to me. So I want to cancel the 'Pending Erase', all I care about is recovering all the pictures from that trip that I hadn't backed up on iCloud yet... Will removing the device from my iCloud account work?  And if I don't have service on the phone, will the 'Erase iPhone' command still go through when I turn it on?  Please help! I have two days to figure this out