A valid provisioning profile for this executable was not found for debug mode
I am getting this error while I am trying to debug my app on device. I created development provisioning profile as it is mentioned at the developer portal. My development device is selected in the pr...
- Modified
- 26 Mar at 16:7
Formatting NSDate into particular styles for both year, month, day, and hour, minute, seconds
I basically need to get current date and time separately, formatted as: The code below, from another question on the same topic, generates This is almost what I'm looking for, but I want to sepa...
- Modified
- 3 Mar at 21:25
How to print binary tree diagram in Java?
How can I print a binary tree in Java so that the output is like: ``` 4 / \ 2 5 ``` My node: ``` public class Node<A extends Comparable> { Node<A> left, right; A data; public N...
- Modified
- 30 Jun at 00:2
Get class name of object as string in Swift
Getting the classname of an object as `String` using: ``` object_getClassName(myViewController) ``` returns something like this: ``` _TtC5AppName22CalendarViewController ``` I am looking for the...
- Modified
- 8 Jun at 19:47
When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)
I am getting this error while running `sudo npm install`. On my server, npm was installed earlier. I've tried to delete the `package-lock.json` file, and ran `npm cache clean --force`, but it didn't w...
Is there an advantage to use a Synchronized Method instead of a Synchronized Block?
Can any one tell me the advantage of synchronized method over synchronized block with an example?
- Modified
- 8 Jul at 12:24
How to check for a Null value in VB.NET
I have this: ``` If String.IsNullOrEmpty(editTransactionRow.pay_id.ToString()) = False Then stTransactionPaymentID = editTransactionRow.pay_id 'Check for null value End If ``` Now, when `editTr...
Default parameters with C++ constructors
Is it good practice to have a class constructor that uses default parameters, or should I use separate overloaded constructors? For example: ``` // Use this... class foo { private: std::string...
- Modified
- 9 Oct at 15:2
How do I insert datetime value into a SQLite database?
I am trying to insert a datetime value into a [SQLite](http://en.wikipedia.org/wiki/SQLite) database. It seems to be sucsessful but when I try to retrieve the value there is an error: > <Unable to re...
I want my android application to be only run in portrait mode?
I want my android application to be only run in portrait mode? How can I do that?
- Modified
- 27 Nov at 17:20
How do I view the SQLite database on an Android device?
I have a set of data in an SQLite database. I need to view the database on a device. How do I do that? I have checked in ddms mode. The data in file explorer is empty.
How does Facebook disable the browser's integrated Developer Tools?
So apparently because of the recent scams, the developer tools is exploited by people to post spam and even used to "hack" accounts. Facebook has blocked the developer tools, and I can't even use the ...
- Modified
- 23 May at 12:34
What's the difference between HEAD^ and HEAD~ in Git?
When I specify an ancestor commit object in Git, I'm confused between `HEAD^` and `HEAD~`. Both have a "numbered" version like `HEAD^3` and `HEAD~2`. They seem very similar or the same to me, but ar...
- Modified
- 31 Aug at 20:20
Node/Express file upload
I'm using node v0.10.26 and express v4.2.0 and I'm pretty new to node. I've been beating my head against my desk for the past three or so hours trying to get a file upload form working with node. At...
- Modified
- 16 Jun at 11:20
Add column with number of days between dates in DataFrame pandas
I want to subtract dates in 'A' from dates in 'B' and add a new column with the difference. ``` df A B one 2014-01-01 2014-02-28 two 2014-02-03 2014-03-01 ``` I've tried the fol...
- Modified
- 9 Mar at 15:45
C# Ignore certificate errors?
I am getting the following error during a web service request to a remote web service: > Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.Aut...
Copy folder recursively in Node.js
Is there an easier way to copy a folder and all its content without manually doing a sequence of `fs.readir`, `fs.readfile`, `fs.writefile` recursively? I am just wondering if I'm missing a function w...
- Modified
- 22 Aug at 20:44
missing private key in the distribution certificate on keychain
I have the following problem which I could not find a solution for anywhere. Basically, we have a company developer account (not enterprise) and so in order to submit our app, I requested from our tea...
Loading and parsing a JSON file with multiple JSON objects
I am trying to load and parse a JSON file in [Python](http://en.wikipedia.org/wiki/Python_%28programming_language%29). But I'm stuck trying to load the file: ``` import json json_data = open('file') ...
CSS get height of screen resolution
I'm having a hard time getting the height of lower screen resolution because my screen resolution is 1920x1080. Does anyone know how to get height and width of the screen resolution? I checked my wo...
- Modified
- 21 Oct at 13:21
Convert XLS to CSV on command line
How could I convert an XLS file to a CSV file on the windows command line. The machine has Microsoft Office 2000 installed. I'm open to installing OpenOffice if it's not possible using Microsoft Offi...
How to make <input type="file"/> accept only these types?
I want my uploader only allows these types: - - - - - - How can I achieve this? What should I put in the `accept` attribute? Thanks for your help. I have one more thing to ask. When the popup ap...
- Modified
- 25 Jun at 09:53
How to check if $? is not equal to zero in unix shell scripting?
I have a script which uses test command to check if `$?` (return code of last executed command) is not equal to zero. The code is as follows: - `$?` is the exit status of the last command executed. ...
How to download image from URL
Is there a way to download an image directly from a url in c# if the url does not have an image format at the end of the link? Example of URL: ``` https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf...
Set default host and port for ng serve in config file
I want to know if i can set a host and a port in a config file so I don't have to type ``` ng serve --host foo.bar --port 80 ``` instead of just ``` ng serve ```
- Modified
- 13 Jun at 13:6