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
6
votes
1 answer
How to authenticate with Sentinel by username?
I'm using Sentinel by Cartalyst for authentication with PHP. The traditional way to authenticate is by use of e-mail and password, as we can read in their documentation:
$credentials = [
'email' => 'john.doe@example.com',
'password' =>…

jtrezza
- 354
- 4
- 13
6
votes
1 answer
Should HASP Vendor Code be encrypted/obfuscated?
This is in regard to SafeNet/Aladdin Sentinel HASP keys. I've posted to their site but just in case anybody else knows the answer or would find the answer useful I'm posting here too.
According to the docs provided by SafeNet in "Software…

Jacob
- 410
- 3
- 11
5
votes
1 answer
What is the difference between errors and sentinel errors?
In every documentation, I read something like that for sentinel errors:
Sentinel errors are usually used to indicate that you cannot start or proceed.
That could also be the case for any possible error, isn't it? Because anything unexpected can…
user3025289
5
votes
3 answers
Constructing an object that's greater than any string
In Python 3, I have a list of strings and would find it useful to be able to append a sentinel that would compare greater than all elements in the list.
Is there a straightforward way to construct such an object?
I can define a class, possibly…

NPE
- 486,780
- 108
- 951
- 1,012
5
votes
1 answer
Laravel - Sentinel User is not the same as eloquent User
I am using Laravel and Sentinel for my authentication.
Authentication works fine, I can log in using Sentinel and get back a User and I can see all of the User's fields.
However, I cannot access it's relationships (other than the Sentinel…

Ben
- 311
- 1
- 2
- 12
5
votes
2 answers
How to create redis python client from sentinel url?
I have url as
BROKER_URL = 'sentinel://192.168.10.1:26379/0;sentinel://192.168.10.2:26379/0;sentinel://192.168.10.3:26379/0'
In this, redis is running on 192.168.10.1, 192.168.10.2 and 192.168.10.3. One node is master and others are slaves. If…

Nilesh
- 20,521
- 16
- 92
- 148
5
votes
1 answer
What does '0xDEAD' mean in the following code?
There is an enum structure,but I don't understand the meaning of '0xDEAD - 2' in this enum.
enum TerminatedTypes {
_not_terminated = 0xDEAD - 2,
_thread_exiting,
_thread_terminated,
…

yangyixiaof
- 225
- 4
- 15
5
votes
3 answers
Can someone explain to me what a sentinel does in Java? Or how it works?
I am trying to understand what sentinel is or how it works with the program. Anyways this is the block of code I am trying to understand. I know it is a sentinel control loop, but I don't know what it does.
private static final int SENTINEL =…

Oyukyfairy
- 67
- 1
- 1
- 4
4
votes
1 answer
StringSetAsync with When.NotExists returns false when key doesn't exist
I am using StackExchange.Redis with a replica cluster (3 nodes) configured to use Sentinel.
I get multiple requests trying to update the cache with the same data, so to avoid multiple writes, I am using When.NotExists in StringSetAsync. My…

TGH
- 38,769
- 12
- 102
- 135
4
votes
0 answers
LettuceConnectionFactory with SentinelTopologyProvider
I am using lettuce through the spring boot API org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory .
My bean is configured as
@Bean
public LettuceConnectionFactory lettuceSentinelConnectionFactory() {
…

mirk
- 5,302
- 3
- 32
- 49
4
votes
1 answer
How can I apply iter() to a pagination api?
I watched Raymond Hettinger's Idiomatic Python talk, and learned about the sentinel argument to iter().
I'd like to try to apply it to a piece of code I'm working on iterating over an API that uses pagination (it's Twilio, but not relevant to my…

Sethish
- 364
- 2
- 12
4
votes
2 answers
Check whether break condition was triggered
Is there an elegant way in Python to detect whether a break condition was engaged at the last iteration or never at all?
C++ example:
int k, n = 10;
for (k = 0; k < n; k++)
if (condition) break;
if (k == n) cout << "Never broke\n";
else …

visitor
- 672
- 6
- 17
4
votes
1 answer
Redis sentinel marks slaves as down
I'm trying to setup a typical redis sentinel configuration, with three machines that will run three redis servers and three redis sentinels. The Master/Slave part of the redis servers are working OK, but the sentinels are not working. When I start…

tanisete
- 156
- 1
- 5
4
votes
4 answers
How to install Redis Sentinel as a Windows service?
I am trying to set up a redis sentinel as a windows service on a Azure VM (IaaS).
I am using the MS OpenTech port of Redis for Windows and running the following command...
redis-server --service-install --service-name rdsent redis.sentinel.conf…

Gautam D
- 119
- 1
- 2
- 9
4
votes
2 answers
Sentinel vs. passing around a count
I have a structure in C which contains an array on which I perform stack operations.
If the stack is full, I need to prevent pushing an element past the end of the array, and return an error condition.
Is it better style to include the size of the…

OregonTrail
- 8,594
- 7
- 43
- 58