null Questions

33

Solved

Using Swift 1.1 and Xcode 6.2. I have a UIStoryboard containing a singular, custom UIViewController subclass. On it, I have an @IBOutlet connection of type UIView from that controller to a UIView ...
Pia asked 28/3, 2015 at 19:9

9

Say I have a class with a member function; inside that method, I check this == nullptr, and if it is, return an error code. If this is null, then that means the object is deleted. Is the method eve...
Ancilla asked 4/12, 2009 at 0:8

9

Solved

I am trying to find my current location for an android project. When the application is loaded my current location is always null. I have set up the permissions in the manifest etc. When I find the...
Bionics asked 26/3, 2012 at 13:38

2

Solved

In pandas, one can do: import pandas as pd d = {"foo":[1,2,3, None], "bar":[4,None, None, 6]} df_pandas = pd.DataFrame.from_dict(d) dict(df_pandas.isnull().sum()) [out]: {'foo...
Crinite asked 10/5, 2023 at 14:26

5

Solved

I have a file with jsonlines and would like to find empty values. {"name": "Color TV", "price": "1200", "available": ""} {"name&quot...
Spinelli asked 20/6, 2019 at 18:37

29

Solved

We are frequently using the following code pattern in our JavaScript code if (typeof(some_variable) != 'undefined' && some_variable != null) { // Do something with some_variable } Is th...
Beltran asked 1/4, 2010 at 9:17

4

I'm facing a similar problem with this question however VirtualizingStackPanel.IsVirtualizing="False" didn't solve my problem. Is there anyone facing the same issue? The thing is I have a custom c...
Ewall asked 24/4, 2013 at 5:39

13

Solved

I got the above error in my app. Here is the original code public string GetCustomerNumber(Guid id) { string accountNumber = (string)DBSqlHelperFactory.ExecuteScalar(connectionStringSplendidmyA...
Polypeptide asked 15/5, 2009 at 20:22

7

I am using Django for my website, and hence decided to use Django Rest Framework for building my REST APIs. For a particular model, i want to filter on a text field (using SearchFilter for that), f...
Tutelage asked 20/3, 2017 at 9:10

8

Solved

I need to check if the recipient username is in file /etc/passwd which contains all the users in my class, but I have tried a few different combinations of if statements and grep without success. T...
Wet asked 10/12, 2014 at 2:31

3

Solved

I got this error when tried to execute this: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL...
Stability asked 9/6, 2016 at 13:1

5

Solved

I have a query inside a stored procedure that sums some values inside a table: SELECT SUM(columnA) FROM my_table WHERE columnB = 1 INTO res; After this select I subtract res value with an intege...
Theodicy asked 24/7, 2013 at 16:1

7

I have this simple statement that works: SELECT idnumber FROM dbo.database WHERE number = '9823474' If the number does not exist anywhere in the table, it fails. I would like to add something to...
Bailee asked 11/11, 2011 at 19:15

5

Solved

I was using HashMap before like public Map<SocketChannel, UserProfile> clients = new HashMap<SocketChannel, UserProfile>(); now I've switched to ConcurrentHashMap to avoid synchron...
Kalamazoo asked 16/9, 2010 at 0:57

4

newbie question: how do i make my JSON output ignore null values? I don't want to necessarily set each individual property to ignore null (as in decorate each property with [JsonProperty(NullValueH...
Silassilastic asked 31/3, 2022 at 21:40

4

Solved

I have a query like this (in a function): UPDATE some_table SET column_1 = param_1, column_2 = param_2, column_3 = param_3, column_4 = param_4, column_5 = param_5 WHERE id = some_id; Where ...
Moline asked 9/11, 2012 at 10:2

2

Solved

When using set-variable I am seeing different behaviors when piping a null value to it. In the first setup, we create a variable, and overwriting it with null, so far so good. # Setup 1: Passing a ...
Keos asked 6/7, 2023 at 16:35

5

Solved

I want to do something like this: df.replace('empty-value', None, 'NAME') Basically, I want to replace some value with NULL, but it does not accept None as an argument. How can I do this?
Hale asked 27/4, 2016 at 18:8

11

I have some values in my database which can be null if they have not already been entered. But when I use Thymeleaf in my html, it gives an error when parsing null values. Is there any way to han...
Ticino asked 17/12, 2013 at 14:15

3

Solved

When a field is null in the database, Django inserts "(None)" to hold the place of the null when displaying a changelist. While descriptive, when there are lots of fields on a changelist, it makes ...
Gardia asked 27/1, 2015 at 16:9

3

Solved

I have a column of a pandas dataframe that I got from a database query with blank cells. The blank cells become "None" and I want to check if each of the rows is None: In [325]: yes_records_sampl...
Connotative asked 12/11, 2014 at 17:57

8

Solved

I am wanting to write a function that converts all instances of a property of any object that is null to undefined. Many of my objects have nested objects as properties or arrays of values/objects....
Wheelock asked 16/5, 2018 at 15:32

4

I have an API that set user settings. Because neither of inputs are mandatory I want to check first if the value exists and then set it to the model attributes in order to avoid null values. $this...
Ento asked 12/2, 2017 at 12:30

4

Solved

I am trying to contol a buttons state depending on a relevant text box. The names are the same other than the prefixes. The text boxes and buttons are located in a table on the page. <asp:Table...
Later asked 7/4, 2015 at 9:34

4

Solved

Is there a difference between NULL and null in PHP? Sometimes they seem to be interchangeable and sometimes not. edit: for some reason when I read the documentation linked to in the answer (before...
Cockaleekie asked 12/8, 2008 at 14:8

© 2022 - 2024 — McMap. All rights reserved.