ASP.NET CORE validate is not a function – manual validate trigger

I have a simple core app generated from core MVC template. Scaffolded some controllers and views and I was good to go.

I have tested validation with jquery validate unobtrusive. When I use attributes in my models like [Required] everything works, the form is not submitted unless there is everything according to validation rules.

However, on a different page, I need to trigger validation manually. Both functions valid() and validate() throws

typeError validate() is ont a function

However when I go var pas = $ ('form')[3] and call pas.jQuery331028614785259688062.unobtrusiveValidation.validate()

validation is triggered properly and displays a validation message. Problem is that this long jQuery string is every time different, therefore I cannot accept using just this string every time as this changes.

I have checked my scripts jquery validate is referenced properly, after jquery and validation scripts are initialized through @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}

Any ideas?

Can a kensei/swashbuckler use an offhand finesse weapon to trigger sneak attack, without using a bonus action?


For a relatively new campaign I’ve built a kensei (monk). At level 7, 8 and 9 (we’re level 4 now) I’m planning on taking three levels in swashbuckler (rogue). Now I’m exploring my options for triggering Sneak Attack with this character, in melee.

My character’s Kensei Weapons are a longsword and longbow. So with this multiclass idea I won’t be able to trigger Sneak Attack with the trusty longsword, or with my Unarmed Strikes, because Sneak Attack states:

Once per turn, you can deal an extra 1d6 damage to one creature you hit with an attack if you have advantage on the attack roll. The attack must use a finesse or a ranged weapon.

You don’t need advantage on the attack roll if another enemy of the target is within 5 feet of it, that enemy isn’t incapacitated, and you don’t have disadvantage on the attack roll.

Combat situation

When engaged in melee combat, my game plan is to wield a longsword in my main hand and a finesse weapon (dagger) in my off-hand, while still having the rest of my body ready for making Unarmed Strikes (knees, elbows, kicks, headbutts, etc). When the circumstances are right for making a Sneak Attack, I would like to strike with the dagger, without the need for swapping weapons and without taking a bonus action.


My goal is to use my usual attack and damage roll for the dagger when I declare the off-hand weapon attack during my Attack action or Reaction. I would be wielding my longsword too, but not necessarily attack with it on the same turn. Would this work by RAW? Or would I be needing to have the dagger in my main hand for this?

I’m new to the workings of Two Weapon Fighting, so I might be overlooking something here.


  • Rogue using Dual Wield and Sneak Attack

What is the limit to a Glyph of Warding’s trigger?

So, say you are a wizard 15/warlock 2. You have the Lance of Lethargy invocation, which pushes an enemy you target with eldritch blast and hit back 10 feet. Say you put a demiplane entrance ~5 feet behind the enemy you target with it. When you hit, you throw the enemy in. Before all this, you had put a Glyph of Warding in there on one of the surfaces. What would be the limit to the trigger for this? Would it be forced to be touch or proximity, or could you base it off something like hostility towards the caster?

Page 245 of PHB

… When you cast this spell, you inscribe a glyph that later unleashes a magical effect … You decide what triggers the glyph when you cast the spell. For glyphs inscribed on a surface, the most typical triggers include touching or standing on the glyph, …

The key word here is typical. Based on Google’s definition, the informal definiton of typical is

showing the characteristics expected of or popularly associated with a particular person, situation, or thing.

This means, if my assumption is true, that the triggers in the PHB are only the most common ones. Other than the one about being forcibly at maximum 10 feet in diameter in the PHB, I cannot see a limit. Though I probably should assume this would all be DM discretion, (and I know that I sound like a broken record here) but could the trigger be hostility toward the caster, or something else, like being a specific race, gender, from a specific place, etc., or would it be forced to being something from the PHB?

I want to change the line color using ‘button trigger’ in a specific condition

I want to change the color of line1 and line2 like below. How can I bind a variable in c# code? Is there a good solution to resolve the code below?

  • xaml code –
``````<Grid Width="6" Height="6" HorizontalAlignment="Right" Margin="0,0,14,0"> `````````<Line x:Name="line1" X1="0" Y1="0" X2="6" Y2="6" Stroke="#BDC4CF" StrokeThickness="1"/> `````````<Line x:Name="line2" X1="0" Y1="6" X2="6" Y2="0" Stroke="#BDC4CF" StrokeThickness="1"/> ``````</Grid> ```</Grid>  ```<ControlTemplate.Triggers> ``````<Trigger Property="IsChecked" Value="True"> `````````<Setter TargetName="line1" Property="Stroke" Value="{binding linecolor}"/> `````````<Setter TargetName="line2" Property="Stroke" Value="{binding linecolor}"/> ``````</Trigger> ```</ControlTemplate.Triggers> </ControlTemplate>  - c# code -  public bool IsChecked { ```get { return (bool)GetValue(IsCheckedProperty); } ```set ```{ ``````SetValue(IsCheckedProperty, value); ``````ToggleBtn.IsChecked = value;  ``````if(isPicked == true) ``````{ `````````linecolor = (Brush)(new BrushConverter().ConvertFrom("#3EF79B")); ``````} ``````else ``````{ `````````linecolor = (Brush)(new BrushConverter().ConvertFrom("#FFFFFF")); ``````} ```} } 

Does a disease trigger a saving throw vs. poison?

In What happened to disease in D&D 5e? we see that disease may not be a specific mechanic. However, it seems to be conflated quite a bit with poison, for example:

Here’s an example of an actual disease from another disease riddled classic the Otyugh (from the HOTDQ supplement)

If the target is a creature, it must succeed on a DC 15 Constitution saving throw against disease or become poisoned until the disease is cured.

In this case, is the saving throw “against disease” or “against poison” (for the purposes of the poison mechanic vis-a-vis the Dwarven Poison Resistance). I think from reading this post that some may say that the “against poison” of the Dwarven Resilience is specifically against the poisoned condition.

Likewise, Bottle Fever in the SRD says:

A creature who drinks rancid alcohol must succeed on a DC 12 Constitution saving throw or contract bottle fever. The first symptoms of bottle fever begin to show in 1d10 hours. An infected creature gives off a strong alcoholic odor. When the creature performs an act requiring physical exertion, like climbing a wall or fighting, it must succeed on a DC 10 Constitution saving throw or become poisoned for 1 hour. If the creature succeeds on the saving throw it does not need to make another saving throw for this effect for 1 hour.

If the disease gives you the ‘poisoned’ condition such as in the case of the Otyyugh does Dwarven Resilience apply?

If the disease gives you the ‘poisoned’ condition later, such as in Bottle Fever where one would have to fail two saves — does Dwarven Resilience apply to the first, second, both or neither saves?


Estoy intentando, mediante C# activar y desactivar un trigger de mi base de datos MySQL con este código:

public void switchTriggerON() {   conectar();   MySqlCommand cmd = new MySqlCommand();   cmd.CommandText = "ALTER TRIGGER actualizacionCurso ENABLE;"; /DISABLE cuando quiero desactivarlo.   cmd.Connection = conexion;   cmd.ExecuteNonQuery();   conexion.Close(); } 

Pero a la hora de la ejecución, me salta el siguiente error:

Exception: MySql.Data.MySqlClient.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TRIGGER actualizacionCurso DISABLE’ at line 1 en MySql.Data.MySqlClient.MySqlStream.ReadPacket() en MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId) en MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId) en MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force) en MySql.Data.MySqlClient.MySqlDataReader.NextResult() en MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) en MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() en ServidorConexion.Negocio.ConexionEnlaces.switchTriggerOFF() en D:\TFG\DAMnificus_Servidor\ServidorConexion\Negocio\ConexionEnlaces.cs:línea 487 en ServidorConexion.Negocio.ConexionEnlaces.cambiarCurso(String usuario, Int32 curso) en D:\TFG\DAMnificus_Servidor\ServidorConexion\Negocio\ConexionEnlaces.cs:línea 300 en ServidorConexion.Program.procesarPeticion(Peticion peticionActual, HttpListenerResponse response) en D:\TFG\DAMnificus_Servidor\ServidorConexion\Program.cs:línea 435

He estado buscando por internet y copiando tal cual la sintaxis, ¿veis algún error?

EDIT: He probado con SET @TRIGGER_CHECKS = FALSE;pero me detecta la “@” como si quisiese introducir un parámetro, ¿como hago para que se la trague?

Repetir trigger ejecutado al minuto de producirse

Llevo días intentando.. Mi codigo .gs es:

function myFunctione(e) {  var url = '';    var options = { 'method': 'get' };  var response = UrlFetchApp.fetch(url, options);  Logger.log(response); } 

Se activa al producirse un cambio en la planilla. Pero necesito que se ejecute otra vez al minuto de producirse, alguna sugerencia?

Intente asi pero no algo esta mal.

 var delay_ms = [1000,2000];   function createTimeDrivenTriggers() {  for (var i = delay_ms.length-1; i >=0; i++){ //reverse loop in order to  get the current trigger right var TriggerID= ScriptApp.newTrigger("myFunctione")       .timeBased()   .after(delay_ms[i])    .create()   .getUniqueId();   PropertiesService.getScriptProperties().setProperty(TriggerID,   delay_ms.length-i-1);//   }  } 

Mucha gracias!!

How to use lock screen events as a trigger for a script?

My Magic Mouse 2 died today and I thought it would be cool if I could use the locking of the screen as a trigger to send a push notification to my iPhone to remind me to plug my mouse in to charge.

I looked into it a little bit. There is an app called EventScripts that has a screen saver trigger. I tried out the demo, but it’s too slow.

I also learned that I can send push notifications via script from my Mac to my iPhone using Prowl/Growl.

And I found that one of the system logs (/var/log/DiagnosticMessages/*) contains activeScreenSaver events that show up immediately when I watch the console. It would be great if I could just send a prowl push notification whenever activeScreenSaver appears in that log., I know how to send the push, however all the files in /var/log/DiagnosticMessages are binary. I can grep them for activeScreenSaver and see that there are matches, but I don’t have one file in ASCII that I can apply tail -f to and pipe it to a script that watches for activeScreenSaver occurrences and sends the push… Does anyone know how I could watch those files for activeScreenSaver occurrences? I’ve written similar log parsers for other plain text logs before, but I don’t know where to start when I’m dealing with binary files that change every so often.

BTW, I have tried using an iBeacon for reminders, but by the time I get the notification, I’m too lazy to go back to my desk to plug the mouse in. So I’d love to get the push notification right after I lock the screen… at least until it becomes habit.

Trigger en Oracle para una sequence

Estoy intentando crear un trigger para que a la hora de insertar un registro, me dispare un campo autoincrementable


El ERROR: not enough values

How to trigger a script in Google sheets when a value changes

I try to fire a script when a value in a certain cell or range of cells changes. (it’s not changed by the user, so I can’t use onEdit)

I’ve tried to use onChange, but this doesn’t fire my script at all

function onChange() { //  verwijder verwerkte 'klaar' regels    var actieSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Actie");   var asRange = actieSheet.getRange("F3:F25")    var asValues = asRange.getValues();     for (var i = 0; i < 22; i++) {          x1='false';          asValues[i][0]= false;       }       actieSheet.getRange("F3:F25" ) .setValue (asValues); } 

Is there a way to trigger a script if a Cell changes or even if there is any change in a sheet, it will do for me?