Questions tagged [is-empty]

Questions about items that can be described as empty or having no data value

Filter by
Sorted by
Tagged with
-2 votes
1 answer
47 views

Java LinkedList being empty is not the same as being equal to null? [closed]

Hello, I am trying to implement a Least Significant Digit Radix Sort using Java. On line 130 I create the array of Linked Lists that will hold the sorted integers and initialize each element to an ...
0 votes
2 answers
38 views

add a row to an empty array in python

I would lie to add an array to an empty array in numpy. Basically I would like to do the following: AA = np.array([]) for i in range(0,3): # BB = np.random.rand(3) CC = np.vstack((AA, BB)...
  • 461
0 votes
1 answer
90 views

how to filter empty values in a column in powershell

i have input file text.csv "#P","A","E","S" "1","2","3","4" "3","5","6","" "...
-1 votes
0 answers
40 views

How to hide a button if a text field is NOT empty?

I'm editing a tour booking form and added a field that displays "No dates available" if there aren't any tours scheduled. (This is a Custom Field that allows us to add text - so the ...
  • 1
0 votes
0 answers
7 views

How to get value from textfield in another class to use for operations

Hey I want to get multiple values from JFrame form and want to use in different class for complex computation of mathematics. I am assigning a simple code to get you an idea. Here, I want to get ...
0 votes
0 answers
7 views

How to make ElevatedButton active only if value in DropdownButton is selected?

I have a DropdownButton and below it an ElevatedButton. I want the ElevatedButton to be active only if a value in the DropdownButton is selected. The " .isEmpty ? null " in the onPressed ...
  • 21
0 votes
1 answer
10 views

what is the behavior of jquery when filter on an empty jquery (`.contents()`) / when all is filtered out

what is the behavior of jquery when filter on an empty jquery (.contents()) / when all is filtered out (some result observed during learning & testing, not really a question. post for others that ...
  • 425
0 votes
1 answer
59 views

What is the opposite of Textbox.text = ""

Do you know the opposite of Textbox1.text = "" ? Or how to do this Textbox1.text = not empty ? Because I want the user to enter characters on the textbox. Example: If the user checked this ...
0 votes
1 answer
86 views

ReactJs: Dynamic route shows the empty props [duplicate]

This is my first react application. I am trying to fetch the uuid from the props object but it always returns an empty object. However, the pages are loading without any error. I googled for the ...
  • 1,209
0 votes
1 answer
35 views

Arraylist turns empty when having contact with listener

Hello I am writing a program for school and I am stuck on this problem where I try to get an arraylist from another class using a button, but when the arraylist comes in contact with the listener it ...
0 votes
1 answer
73 views

Is there a way to check if a class is empty in java?

Sorry if the title is a bit confusing, I didn't really know how to word what I wanted to ask. Basically, I am making an api call to a database that returns data as such: [{"profiles":{"...
2 votes
2 answers
71 views

Can't remove empty `character(0)` or `list()` values from R data frame

I have an R data frame that has character(0) and list() values inside the cells. I want to replace these with NA values. In the following example, the field "teaser" has this issue, but it ...
  • 302
0 votes
0 answers
16 views

Pushing empty DataTable into SQL Query as structured parameter

I recently bumped into an issue of raising an exception "Type structured needs to have at least one field" when pushing empty DataTable to an SQL query as structured parameter. I basically ...
0 votes
0 answers
38 views

The condition 'is empty' is not working in select query of JPA

Lets say a person class has friends in it. Then select p.friends is empty from person p; throws up IllegalStateException: Unexpected AST org.hibernate.hql.internal.ast.tree.SqlNode But select p....
0 votes
0 answers
36 views

Devexpress, Can't Insert a new row if the database is empty

As the title describes, I have a table in my database, my BootstrapGridView displays a cannot insert new record because some field doesn't allow Null (Despite its not NULL), the weird thing is that if ...
0 votes
1 answer
211 views

FILTER Range with Multiple Conditions - Skip Blank Cells in Google Sheets

Building a dynamic schedule dashboard in Google Sheets. Limited to using only functions and formulas, no scripts. Have a living table (range A1:M) where each row represents a different event. I need ...
0 votes
1 answer
86 views

How to see only uploaded users in laravel?

I want to ask, how do I upload a file to the web on user 1 but only attach it to user 1, whereas currently it is also attached to user 2, my coding is wrong. like the example image below: Images Web ...
0 votes
0 answers
36 views

Jquery: How to detect Input[type="time"] is almost or completely filled

I can not find solution to detect that an input type time is almost (hour) or completely (hour + minute) filled . This solution could allow me to prevent that a period is completely write: ex : ...
  • 43
0 votes
2 answers
62 views

Check for None in the input using a while loop

I am coding a Battleships game in Python and can use some help regarding the while loop to check whether a user has not input any data. def getUserInput(self): try: x_row = input(&...
  • 1
0 votes
1 answer
54 views

Query/filter out blank non-specified columns from range

I would like this multiple-criteria query not to show empty columns. =QUERY({H3:M11}, "select * WHERE "&TEXTJOIN(" and ", 1, IF(C3<>"", "Col2 = "&...
0 votes
2 answers
56 views

How to fill empty rows using first text value in each row in R?

Data Here is the dput for a subset of the data I'm working with: crime_state <- structure(list(State = c("ALABAMA", "", "ARIZONA", "", "", "&...
0 votes
0 answers
39 views

isEmpty not showing when I try to check if my AppCompatEditText is empty or not?

isEmpty is red and showing unresolved reference binding?.btnSave?.setOnClickListener(){ when { binding?.etTitle?.text.toString().isEmpty() -> } }
0 votes
0 answers
73 views

How to make an IsEmpty-method in C# (double linked list)

I want to reverse a list and to do that I take the first element of the list (head) and add it to a new list and then I delete the head of the first list and then I make a recursive call until the ...
0 votes
0 answers
11 views

Matrix empty for a heatmaps

grl <- promoters(TxDb.Celegans.UCSC.ce11.ensGene) intestine_gr <- makeGRangesFromDataFrame(intestine, keep.extra.columns = TRUE) mat1 = normalizeToMatrix(intestine_gr, grl, extend = 5000, ...
0 votes
2 answers
843 views

In the Flutter Isar database, How to check database schema is empty or not?

In ObjectBox database, we can check box is empty or not, using box.isEmpty() method. Likewise how to check Isar database schema is empty or not. Because In my app I have a scenario, only data insert ...
0 votes
1 answer
81 views

Java Check if multiple strings are empty

I am trying to add a User into a LinkedList using Java, but I am wondering if there is a shorter way to check if multiple strings are empty instead of using if statements everytime I input a new ...
0 votes
2 answers
387 views

Clean way to check an empty inside a map in Java

I have a map with data I got from my database and I am having trouble to find an optimal way to check if the value of one of my fields is empty. The thing is like this. I got 4 values inside a map: A1,...
  • 132
0 votes
1 answer
74 views

Confused by how !empty() works in my if-condition

I'm confused by what counts as empty in this code logic. I have a variable amount of table rows (additional rows are dynamically inserted via ajax) that each accept four inputs. The logic I want is ...
  • 27
1 vote
1 answer
47 views

Empty variable after transfer from twigg to javascript (symfony)

When I pass the variable from twig to javascript, and display it in the console it returns an empty object. The controller that sends variable $user to twig $user = $userRepository->findAll(); $...
  • 66
0 votes
0 answers
77 views

How to change from integer (empty) to 0 in r

How can I create a condition so that if a variable returns the value (empty) in r, it will convert to an actual 0, so I can include it in a larger data frame that will display the value '0' for that ...
  • 15
0 votes
1 answer
70 views

Is it possible to use the "IsBlank()" function on a function's result?

I have created a function, where I would like to have a blank result in some cases, in order to use the IsBlank() function on it afterwards, but this seems not possible, as you can see from this ...
  • 15.7k
1 vote
0 answers
42 views

problem with first state of application state in redux kotlin

I'm using Redux and somewhere in application I need to check if returning data is not null, then run a function. as you know in redux we should initialize the states like this: data class ...
1 vote
2 answers
46 views

Is there a benefit in checking isEmpty before looping?

I saw the following piece of code somewhere and wondered if there was any actual benefit of checking isEmpty. There isn't right? List<Long> someIds = .. if (someIds != null && !someIds....
  • 1,774
1 vote
1 answer
63 views

How to filter across any columns for na and empty value but not 0

Here's my dataframe: df1 = structure(list(item = c("HY04SB", "GSP8Y1", "8OK8N6", "V2RIP7", "51H9V8", "", "5C45YN", "PM271I&...
  • 414
0 votes
1 answer
16 views

Failed to mark every empty cell as Empty Cell with JQuery or Javascript

I searched for solutions to this but still I failed to replace each empty cell with the sentence "empty cell" with JQuery or Javascript, knowing that this technique only works if I give the ...
1 vote
1 answer
999 views

How to check if a DTO is empty

I have a DTO with a few variables and I need to check if my DTO is empty. I looked into older questions and found this one which is quite interesting Check object empty But I have the feeling that my ...
  • 132
0 votes
0 answers
20 views

R: what to do when empty output is generated (empty input is called for) throughout loop [duplicate]

I have a loop that does some computation (mostly using data.table) and exports the output as ".csv". Within the code, there are some filtering of data.tables as well as matching between data....
1 vote
0 answers
162 views

Geopandas GeoDataFrame.boundary raises null value error even if .is_empty returns False

I have a geopandas dataframe with an id column and a 'geometry' column. I am calling "boundary" onto the geometry column like so: gdf_ops['start_end_points'] = gdf_ops['geometry'].boundary ...
1 vote
0 answers
29 views

scanf for a possibly empty string

trying to undestand scanf() I had two files to be read and parse the contents strings for values: scanf1.txt GAMEVERSION=1 FILEVERSION=1 scanf2.txt FILEVERSION=2 GAMEVERSION=2 In the following code ...
  • 342
0 votes
3 answers
148 views

AWK filter rows with valid numbers or empty

I try to use awk to filter some rows based on whether a given column contains an integer, floating point or empty string. I have problems with the integers or the way to add them to the rule but ...
  • 151
0 votes
1 answer
225 views

What is the best way to check if the Rich Text Editor Content is empty in Vaadin 14?

I want to check if the Rich Text Editor is empty before proceeding a action. But the .isEmpty() method only works if no format button is clicked. So for example if you just press the H1 format button ...
  • 100
0 votes
2 answers
67 views

Filling empty cells - VBA

I'm trying to fill empty cells in a specified range. I have used code taken from other questions to write this: Dim rCell As Range For Each rCell In ws.Range("E36:G45") If IsEmpty(rCell....
  • 69
0 votes
1 answer
115 views

tkinter check empty entry box

I am trying to build a GUI for my password generator. Here I have an entry box for the length of password (inputPasswordLength which is int), which is mandatory. The maximal length is set to 20. Now, ...
0 votes
1 answer
39 views

What is the value being returned using "" in SQL WHERE filter?

In a dataset I am cleaning, according to the schema, there should only be two distinct values under the "usertype" column. Upon further analysis I discovered there is an empty third value ...
  • 3
1 vote
3 answers
681 views

Why am I getting one empty array item in every other array like a pattern? (JavaScript)

UPDATE AT THE BOTTOM OF THE POST! This is the first part of a program that will eventually make SVG star polygons. Only star polygons that can be made in one go, I.e. like a Pentagram, NOT like a ...
0 votes
0 answers
71 views

JSONObject comes empty in REST service

I send this request: import org.codehaus.jettison.json.JSONObject; import org.glassfish.jersey.client.ClientConfig; ... final ClientConfig config = new ClientConfig(); final Client client = ...
  • 4,969
1 vote
1 answer
120 views

PowerShell: Iterate through all arrays and push a default value if empty

There are multiple arrays, and their contents might or might not be empty. If any of these arrays are empty, I would like to add a default value to them. I have tried wrapping all the arrays into a ...
0 votes
0 answers
51 views

Aspnet.Core Empty structures2

I have a hybrid web application that has WordPress as the root site with an aspnet core web application as a virtual directory. The IIS structure looks something like: Within the aspnet ...
0 votes
2 answers
57 views

Script to copy contents of cell (in a2) and paste this into 1st empty (of text and formulas) cell on row 2

I am trying to write a script to copy contents of cell (in a2) and paste this into the 1st empty (of text and formulas) cell on row 2. Ones that I have tried to copy and use are to do similar but ...
  • 49
0 votes
1 answer
603 views

Empty key value in JSON

I'm trying to parse a string list to JSON. When the list has items, the return is: {'body': '{"A":"a", "B": ["abc"], "C":"c"}}' Using json....
  • 3

1
2 3 4 5
16