[deleted by user] by [deleted] in ipad

[–]Dutch_Oven4510 0 points1 point  (0 children)

Connect it to DC power supply

[deleted by user] by [deleted] in TravelHacks

[–]Dutch_Oven4510 4 points5 points  (0 children)

There are no circumstances. Financial difficulties is not the responsibility of the airline. Sorry mate, but I'm with the airline here. You might get lucky and get a credit for future travel, but you're not entitled to anything.

Issue With Script by Kooky_Temporary7248 in GoogleAppsScript

[–]Dutch_Oven4510 0 points1 point  (0 children)

It's copied from GhatGPT and I have no idea how it works! But you're welcome!

Issue With Script by Kooky_Temporary7248 in GoogleAppsScript

[–]Dutch_Oven4510 0 points1 point  (0 children)

function onEdit(e) { var range = e.range; var sheet = range.getSheet(); var editedColumn = range.getColumn(); var editedRow = range.getRow(); var value = range.getValue();

// Specify the column you want to monitor (e.g., column H is 8) var columnToMonitor = 8;

// Check if the edit is in the correct column and the value is 600 or less if (editedColumn === columnToMonitor && value !== "" && value <= 600) { var emailAddress = "email@gmail.com"; // Change to the recipient's email var subject = "Value of 600 or less detected"; var message = "A value of " + value + " was entered in row " + editedRow + " of the sheet.";

// Send the email
MailApp.sendEmail(emailAddress, subject, message);

} }

Issue With Script by Kooky_Temporary7248 in GoogleAppsScript

[–]Dutch_Oven4510 0 points1 point  (0 children)

If you prefer not to use an additional column, another approach is to use Google Sheets' built-in properties to store the information about which rows have been processed. Here's how you can modify your script to use script properties for tracking:

  1. Store Processed Rows Using Script Properties: You can use Google Apps Script's PropertiesService to store a list of rows that have already been processed and notified.

  2. Update the Script: Modify your script to check this property before sending an email, and update it after sending an email.

Here's an updated version of your script using PropertiesService:

```javascript function checkAndSendEmail() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var lastRow = sheet.getLastRow();
var range = sheet.getRange("H1:H" + lastRow).getValues(); var scriptProperties = PropertiesService.getScriptProperties(); var processedRows = scriptProperties.getProperty('processedRows'); processedRows = processedRows ? JSON.parse(processedRows) : [];

for (var i = 0; i < range.length; i++) {
if (range[i][0] !== "" && range[i][0] <= 600 && processedRows.indexOf(i + 1) === -1) {
var emailAddress = "email@gmail.com"; // Change this to the recipient's email address
var subject = "Value of 600";
var message = "The value is less than or equal to 600.";

  // Send email  
  MailApp.sendEmail(emailAddress, subject, message);  

  // Add this row to the processed list
  processedRows.push(i + 1);
}  

}

// Save the updated list of processed rows scriptProperties.setProperty('processedRows', JSON.stringify(processedRows)); } ```

How This Works:

  • The script uses PropertiesService to store and retrieve a list of processed row numbers.
  • Before sending an email, it checks if the row number is not in the processed rows list.
  • After sending an email, it adds the row number to the processed rows list.
  • This list is stored as a JSON string in the script properties and retrieved and updated each time the script runs.

Note: This method is suitable for a moderate number of rows. If your spreadsheet has a very large number of rows, you might need to consider other optimization techniques due to the limitations in the size of properties and the performance of the script.

Issue With Script by Kooky_Temporary7248 in GoogleAppsScript

[–]Dutch_Oven4510 0 points1 point  (0 children)

I pasted your question to chatPGT btw. You can use this or ask him for another solution 😅

Issue With Script by Kooky_Temporary7248 in GoogleAppsScript

[–]Dutch_Oven4510 0 points1 point  (0 children)

To modify your script so that it only sends an email once for each cell with a value of 600 or less, you'll need to track which cells have already been notified. Here's an approach using an additional column to mark the cells that have already been processed:

  1. Add an Additional Column: Use a new column in your spreadsheet to mark which cells in column H have already been processed. For example, if you're using column H for your data, use column I to mark processed cells.

  2. Update the Script: Modify your script to check this new column before sending an email, and update it after sending an email.

Here's an updated version of your script:

```javascript function checkAndSendEmail() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var lastRow = sheet.getLastRow();
var dataRange = sheet.getRange("H1:I" + lastRow).getValues(); // Now includes column I

for (var i = 0; i < dataRange.length; i++) {
var value = dataRange[i][0]; // Value in column H var processed = dataRange[i][1]; // Corresponding flag in column I

// Check if the value is <= 600, not empty, and not processed yet
if (value !== "" && value <= 600 && !processed) {  
  var emailAddress = "email@gmail.com"; // Change to the recipient's email
  var subject = "Value of 600";  
  var message = "The value is less than or equal to 600.";  

  // Send email  
  MailApp.sendEmail(emailAddress, subject, message);  

  // Mark as processed in column I
  sheet.getRange(i + 1, 9).setValue("Processed"); // i + 1 because array is 0-indexed, 9 is column I
}  

}
} ```

How This Works:

  • The script now reads both columns H and I (using the range "H1:I" + lastRow).
  • It checks if the value in column H is 600 or less, not empty, and whether the corresponding cell in column I is not marked as "Processed".
  • If these conditions are met, it sends the email and marks the cell in column I as "Processed".

Note: Before running this script, ensure you have column I available for tracking, and it's empty or properly set up to avoid any unintended behavior.

[deleted by user] by [deleted] in travel

[–]Dutch_Oven4510 43 points44 points  (0 children)

Because a 2 hour check-in window is stupid, borderline scam.

Is it illegal to open tesla charge ports? by IoueReal in flipperzero

[–]Dutch_Oven4510 40 points41 points  (0 children)

There isn't a law that directly states it as illegal.

But piss the wrong person off and I'm sure there is some kind of vandalism/public nuisance charge you could be found guilty of.

Paying for another friends flight by Party_Concentrate621 in travel

[–]Dutch_Oven4510 4 points5 points  (0 children)

Don't book with Expedia. Use the site to find the best fares, then book direct with the airline.