A sentinel is a loop exit value or list delimiter whose value is outside the range of valid input, such as -1 for a zero-based array index, or ~ for alphabetic strings.
Questions tagged [sentinel]
410 questions
3
votes
1 answer
C# HASP login code
I want to try out hasp api to build my custom security behaviour but when I use code generated by Sentinel HASP ToolBox it does not work.
I pasted this code from Toolbox to onLoad Form method:
HaspFeature feature = HaspFeature.Default;
string…

Marek Bar
- 873
- 3
- 16
- 31
2
votes
1 answer
Ruby sentinel loop not working as expected (Seven Languages In Seven Weeks)
Just started working through the Ruby chapter in Mr. Tate's "Seven Language in Seven Weeks".
For the bonus question in Day 1, I am to generate a "random" number, read a user's guess from the input, and compare the guess to my "random" number, then…

dtg
- 1,803
- 4
- 30
- 44
2
votes
1 answer
import image-plot the SentinelHub-py utils issue
I am trying to plot an image using SentinelHub-py. This is part of my the code:
from sentinelhub import SHConfig
config = SHConfig()
config.sh_client_id = "76186bb6-a02e-4457-9a9d-126e4fffaed4"
config.sh_client_secret =…

K4ever
- 27
- 4
2
votes
2 answers
How to raise an error that coordinates are out of raster bounds (rasterio.sample)?
I'm using rasterio sample module, list_of_coords are just 3 random points but only 2nd is within the raster bounds:
list_of_coords = [(754.2,4248548.6), (754222.6,4248548.6), (54.9,4248548.4)]
sample =…

Edyficjum
- 81
- 6
2
votes
0 answers
Running a Java sentinel-controlled do-while loop in public method
I have a method, public static int payMethod, with parameter input for Scanner to get, well, input. Obviously, I could remove the method entirely and put everything in the main method, but I'm trying to learn about using different types of methods…

Sirswagger21
- 291
- 4
- 17
2
votes
0 answers
Resilience4j vs Sentinel
We are looking to replace Hystrix with Resilience4j or Sentinel. I am looking for advice on which one should be preferred. I have spent some time searching on google but could find any clear conclusion.
Both libraries have their own features. We…

amique
- 2,176
- 7
- 34
- 53
2
votes
1 answer
How to download sentinel 1 for a particular polygon from Google Earth Engine
I want to download Sentinel-1 SAR data for both VV and VH with IW only within a rectangular polygon? I could download with the ROI, but even though ROI is a rectangle, the output to export is a rectangle.
The red rectangle is my ROI, but it's…

bibinwilson
- 348
- 2
- 6
- 20
2
votes
3 answers
Binary file special characters
I'm coding a suffix array sorting, and this algorithm appends a sentinel character to the original string. This character must not be in the original string.
Since this algorithm will process binary files bytes, is there any special byte character…

Guido Tarsia
- 1,962
- 4
- 27
- 45
2
votes
3 answers
Redis multi sentinel not elect new redis master after failure
i have a three node redis and 3 node sentinel, everything is ok and all master and slaves are verified and sentinel config file is updated with all redis and sentinel nodes, but the problem is when redis master is down and sentinel wants to elect…

Jividijuvent
- 27
- 1
- 5
2
votes
0 answers
Redis HMGET unsupported when using Sentinel
I have a Redis 5.0.6 cluster with one master and one replica and using Sentinel for high availability. Cluster mode is disabled.
I setup the cluster on Kubernetes using the Redis HA Helm chart…

Mikhail Janowski
- 4,209
- 7
- 28
- 40
2
votes
0 answers
don' work prepSentinel with sentinel 1 data
I 'm new to using R...i'm trying to pre-process sentinel 1 data; I am using a packages getSpatialData (https://rdrr.io/github/16EAGLE/getSpatialData/man/getSpatialData-package.html). I downloaded the images and it works. But, when I try to use the…

mirkof21
- 21
- 2
2
votes
2 answers
How to download a product in a directory?
I am coding a simple script to obtain some SENTINEL products using the Sentinelsat´s Python API
Then I would like to download some of the products to a diferent directory than the script is.
I don´t know how to do it.
My script
api =…

kamome
- 828
- 3
- 11
- 27
2
votes
1 answer
Sentinel loops in python
So I am getting inputs to store into a list from the user and I am using a sentinel loop to continuously ask the user to input a number. The issue that arises is when I use "Stop" to end the loop when the user is done inputting values I get an error…

l.m
- 131
- 1
- 10
2
votes
1 answer
C: using sentinels on lists
Hello so I am learning linked lists and I have to write several functions by using a sentinel. I have this definition: A sentinel is a fake element that is the first element of the list. An empty list is then a single sentinel and not a NULL…

sltcv
- 23
- 4
2
votes
1 answer
How can I use a negative integer sentinel value without incurring a memory penalty?
I would like to port some C code to Rust that does something similar to nullable pointers but with positive integers. Missing data in some large data structures is represented with negative integer values in a signed integer. 31 bits are available…

Andrew Wagner
- 22,677
- 21
- 86
- 100