Questions tagged [nul]

NUL is the abbreviation for the null character in several character sets

NUL has a value of 0 and is often written as the escape sequence \0. It is used as a terminator in standard strings.

179 questions
0
votes
1 answer

KDB / Q Resetting random elements on newly created list (numerical vs symbol/char)

I am having a random (Y) list with (X) elements (seed elements in 2nd dimension) where I want to reset values on a random factor (Z) that is between 0f and 1f. For numerical lists this code works…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
0
votes
0 answers

NUL at the beginning of written file

I have the following question. When writing a String to a file the first character seems to be a Nul. I see that if I open the file with Notepad++, there is a black background where "NUL" is written in white. However, I don't really understand why…
0
votes
0 answers

Getting gawk regex parser to recognise NUL characters

I have a series of files which I am trying to process and validate using gawk. A small number of the files a corrupt and contain runs of NUL (0x00) characters which I would like to reject as invalid. However, it appears that gawk (4.1.1) is…
Matti Wens
  • 740
  • 6
  • 24
0
votes
0 answers

(Java / MYSQL) Checking user login in against MYSQL table, varables showing null even though data taken from table

Im using a GUI user login for a java application checking against a user table in MYSQL. I have one record hard coded into the MySQL db with the username and password set to admin. I'm trying to call this back and check it in my GUI but im having…
RoRo88
  • 306
  • 1
  • 4
  • 14
0
votes
1 answer

Character for NUL

I'm attempting to ignore a character coming through on CSV documents from a client. The character is NUL and on a separate final line, I've tried Ctrl + Space and Ctrl + @ (2)? but these don't replicate the symbol, does anyone know what it is and…
user2797454
  • 85
  • 1
  • 10
0
votes
1 answer

How do I post this model in MVC 4 (null model)

My problem is quite common but I can't seem to figure out on my own why when I POST my model that it's null. My FormCollection seems to suggest it doesn't understand the whole model which it is POSTING. See code below: My model -…
nick gowdy
  • 6,191
  • 25
  • 88
  • 157
0
votes
1 answer

URLConnection Reading in as null in java

I'm a building a basic program to query Target's API with a store ID and Product ID which returns the aisle location. I think I'm using the URL constructor incorrectly, however (I've had trouble with it in the past and still don't fully understand…
Rostro
  • 148
  • 2
  • 3
  • 15
0
votes
1 answer

>nul wont hide output batch

Okay so, I'm pretty sure I'm not just being silly about this, but >nul is not hiding the entire output, and I'm curious as to why, and if there is a solution: net stop "service here" >nul See, if it fails, then it outputs said failure, but I want to…
Atma
  • 3
  • 2
0
votes
2 answers

Beginner trying to read a CSV with R: Embedded nul in string

I'm trying to read a simple csv file in R with this code: data <- read.csv(file="\0Laplacian1Entropy.csv", header=TRUE, sep=" ") But I always get this error: > Error: embedded nul in string: '\0Laplacian1Entropy.csv' This is my file: i j Entropy 1…
pceccon
  • 9,379
  • 26
  • 82
  • 158
0
votes
1 answer

Why is it necessary to null-terminate a TCHAR array when enumerating registry values in a for loop?

I've been following MSDN's example on enumerating registry subkeys. http://msdn.microsoft.com/en-us/library/windows/desktop/ms724256%28v=vs.85%29.aspx In the following code, I don't understand why achValue[0] = '\0'; is necessary. I ran some tests…
Hugh McMaster
  • 319
  • 3
  • 10
0
votes
3 answers

Converting windows forms application from .NET 3.5 to .NET 4

I have converted a windows forms application from .net 3.5 to .net 4. I am using Linq to operatate with data. Now I have some problems with Linq, because in the new version it throws an exception when trying to make a query over null resultset. For…
0
votes
2 answers

Design pattern for long if null statements for POJO object

I'm looking for a design pattern or even advice on some code that I saw the other day. The general structure is this (pseudo code): public String getUrl(){ Person person= new Person(); StringBuilder builder = new…
Sun
  • 2,658
  • 6
  • 28
  • 33
0
votes
1 answer

NULL in a string can't copy contents after NUL

I have a slight issue when I am getting data back from an external device in bytes and then converting it to a string. I am communicating to this device via a TcpClient. I receive a message from this external device and format it as a string. The…
Dr Schizo
  • 4,045
  • 7
  • 38
  • 77
0
votes
1 answer

How to get a python SocketServer to received until string is terminated with NUL

In Python, how would I go about writing a TCP SocketServer receiving a string until a NUL character (\0) is found? After the string is received fully, I need the socket to continue to be able to receive new strings.
chyyran
  • 2,446
  • 2
  • 21
  • 35
0
votes
2 answers

Unwanted nul characters preceding bytes from TCP socket read using DataInputStream

I'm writing an Android app that involves connecting to a TCP server (that I also wrote) and sending/receiving text from it. Right now I have a bug in my final read (client-side). When I use the debugger in Eclipse, it shows that I am receiving all…
bibismcbryde
  • 369
  • 1
  • 5
  • 17
1 2 3
11
12