Questions tagged [sentinel]

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.

410 questions
1
vote
0 answers

How to use a while statement with end of file controlled looping and sentinel-controlled looping

I just switched from nursing to being a computer science major and I have no Idea what is going on with the later assignments we have been doing. I just end up getting lost. I have attempted to look from how to go about approaching this particular…
Lou Osman
  • 11
  • 1
1
vote
1 answer

R raster band combination not showing rgb

I want to compose an rgb image with channels from different images. I have the following three source files (.png)(Sentinel 2 satellite images) blue band, red band, green band With the following code, I try to build the new image.…
Niklas
  • 103
  • 8
1
vote
1 answer

jQuery validation and laravel

I'm trying to use jQuery validate with laravel and sentinel I need to return false or true but laravel cant do this, instead im trying to do response with text and JSON. Controller $email = $request->except('_token'); $user_email =…
Zed
  • 11
  • 1
1
vote
3 answers

The Response content must be a string or object implementing __toString(), "boolean" given in laravel 5.4

I am using Sentinel package for advanced authentication in laravel. I can register properly, but when I am going to login then here is an error like - 'The Response content must be a string or object implementing __toString(), "boolean" given.'…
Rashed Hasan
  • 3,721
  • 11
  • 40
  • 82
1
vote
4 answers

Java taking sentinel value as array input

I need this program to accept user input in the following format: "team1 : team2 : score1 : score2" then assign it to the array variables below, which is working fine but now I need to make it so when the user enters 'stop' the program displays the…
JDHS
  • 13
  • 3
1
vote
1 answer

General error: 1364 Field 'location' doesn't have a default value

i create a login system using laravel and sentinel i added a new field called 'location' in users table like this Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('email'); …
Ahmed Masry
  • 17
  • 1
  • 6
1
vote
1 answer

Should I run haproxy for db and redis sentinel on web nodes?

I am setting up a cluster of servers using vagrant and playing with Redis sentinel and HAProxy for Postgresql db connection (with pgpool). I was curious if it make sense to put haproxy and redis sentinel on each of my web server nodes and have them…
Randy
  • 9
  • 1
  • 2
1
vote
3 answers

Add values inside the Java while loop and stop it using a sentinel

I want to make a loop where the user inputs multiple values and when they want to stop input their values they input -1. I know it has to use a sentinel but I don't know how. Scanner myInput = new Scanner(System.in); int total = 0; int count =…
Shancamilo
  • 13
  • 3
1
vote
1 answer

ajax call Sentinel::check() always return null

I using Sentinel package, Everything is fine, But when I want call Sentinel::check() and Sentinel::getUser() using ajax, it return null. help me please :( $currentUser = Sentinel::getUser(); $my_id = $currentUser->id; return $my_id;
Hossein Bajan
  • 2,644
  • 5
  • 19
  • 36
1
vote
0 answers

implement Permission of Sentinel in laravel 5.3

I am planning to implement permissions of sentinel in laravel 5.3. I have created permissions.php inside config folder. config/permissions.php file Role Management' => array( array( …
VijayRana
  • 953
  • 1
  • 13
  • 38
1
vote
1 answer

while loop continues after sentinel value is reached

I'm currently confused on while loops, specifically why the loop still runs everything else in the loop specifically after the sentinel value is reached... here's the example of my code below: while (quit != -1) { cout<<"Options: a)ir; w)ater;…
Elijah
  • 11
  • 1
1
vote
1 answer

Cant access an object property in laravel

I am getting results from a database in a controller and storing them as objects in an array $roleSentinel = Sentinel::findRoleByName($role); $permisssionsName = array_keys($roleSentinel['permissions']); $permissions = array(); …
Mntfr
  • 483
  • 6
  • 20
1
vote
1 answer

Sentinel configuration with NLog/log4net

I have just started to use logging for my C# application. I am using NLog for logging entries to a *.log file and I view it using a Notepad++. I want to try Sentinel, although I can view the logs on sentinel, I am not sure with the initial steps of…
Rene Duchamp
  • 2,429
  • 2
  • 21
  • 29
1
vote
2 answers

Redis connect single instance slave (slave of) to cluster or sentinel

When running a single instance redis, I can use "slave of" to create a (or as many I like) readonly replica of this one redis node. When using redis cluster, I split my Data into Partitons (Masters) and can create a slave for each partition. Is it…
1
vote
1 answer

Redis / Jedis: Cluster versus Pool

I am new to Redis, Jedis and Sentinel. I am trying to educate myself using numerous web sites, code snippets and tutorials. I have a simple understanding problem: Some sources speak about a Redis Cluster, Jedis however uses the term Pools. Are…
thorwinn
  • 123
  • 1
  • 2
  • 9