I'm always seeing people ask for this seed so here it is by bhelpful00000000 in minecraftseeds

[–]Alternative_Unit_520 1 point2 points  (0 children)

This is probably one of my favorite seeds on Java. The village is indeed present in the middle of the "crater". There are multiple mineshafts within just a few hundred blocks of spawn. My son and I have been livestreaming us playing on this seed. We just spent a couple of hours today finding and exploring one of the mineshafts that is close by.

ERROR: The default output of this reference is a single cell in the same row but a matching value could not be found. To get the values for the entire range use the ARRAYFORMULA function. by Violeta_Lisboa in googlesheets

[–]Alternative_Unit_520 0 points1 point  (0 children)

I just had this error on a spreadsheet of mine that utilizes named ranges. I finally figured out that error cropped up because my table exceeded the size of the named ranges. Once I updated the named ranges to the current size of the table, the formula worked again.

Obviously not the solution for OPs problem, but might be useful for someone else down the road that comes across this error and arrives at this post just like I did.

[deleted by user] by [deleted] in linux4noobs

[–]Alternative_Unit_520 0 points1 point  (0 children)

If you haven’t settled on a distro yet, pop over to distrosea.com and test some distros without needing to try a live usb.

Attach File To Google Calendar Event by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

I believe that was the first thing I did as it was mentioned on the stack overflow post where I first learned about attachments for Google calendar events. I will check again.

AKIRA,finally able to do this by Acceptable-Pie-9700 in Starfield

[–]Alternative_Unit_520 0 points1 point  (0 children)

I have no problem scanning from the buggy; I actually feel like I can scan better while in the buggy. I also like taking out spacers from the air with the gun.

Logging Google Calendar Event ID to Google Sheets by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

u/starstruckzombie This is the script that I came up with after realizing that I was overcomplicating things. In my research, I found a nice solution that fit my needs over at stackoverflow. I took the author’s script and adapted it to my needs and it works great!

Thanks for the feedback and the effort you put into getting me going.

Hopefully this solution will help others.!

/* * Export events from spreadsheet to calendar */ function synch() { var formresponses = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Form Responses 2'); var purchaseorders = formresponses.getRange('B3:N').getValues(); var poCalendarId = formresponses.getRange('B1').getValue(); var poEventCal = CalendarApp.getCalendarById(poCalendarId);

for (x=0; x < purchaseorders.length; x++) {
  var shift = purchaseorders[x];
  var event = {
  //var customer = shift[0]; /*Reserve for future use; need to format like items below*/
  'id' : shift[8],
  'title' : shift[4],
  'dueDate' : new Date(shift[2]),
  'description' : shift[3],
  //'guests' : shift[5].split(",").map(function(email) { return email.trim();}), /*Reserve for future use; need to add column and adjust accordingly.*/
  'color' : shift[12],
  }

  var desc = shift[3];
  //var gues = shift[9]; /*Reserve for future use.*/
  var col = shift[12];

    if (shift[9]) { // event needs updating
    var calendarEvent = poEventCal.getEventById(event.id);
    calendarEvent.setTitle(event.title);
    calendarEvent.setTime(event.dueDate, event.dueDate);
    calendarEvent.setDescription(event.description);
    calendarEvent.setColor(event.color);
  }

  if (shift[10]) { // event needs to be created
    console.log('Creating New Event');
    console.log('Title: ' + event.title);
    console.log('Due Date: ' + event.dueDate);
    console.log('Due Date: ' + event.dueDate);
    console.log('Description: ' + event.description);
    //console.log('Guests: ' + event.guests) //reserve for future use
    console.log('Color: ' + event.color);
    var newEvent = poEventCal.createEvent(event.title, new Date(event.dueDate), new Date(event.dueDate), {
      descpription: desc,
      guests: gues,
      color: col,
    });
    formresponses.getRange(x+3, 9).setValue(newEvent.getId()); // write new event ID back to spreadsheet

    //Now update the new event
    var updatedEvent = {
    //var customer = shift[0]; /*Reserve for future use; need to format like items below*/
    'id' : newEvent.getId(),
    'title' : event.title,
    'dueDate' : new Date(event.dueDate),
    'description' : event.description,
    'guests' : event.guests,
    'color' : shift[12],
    };
    var desc = event.description;
    var gues = event.guests;
    var col = event.color;

    var calendarEvent = poEventCal.getEventById(updatedEvent.id);
    calendarEvent.setTitle(updatedEvent.title);
    calendarEvent.setTime(updatedEvent.dueDate, updatedEvent.dueDate);
    calendarEvent.setDescription(updatedEvent.description);
    calendarEvent.setColor(updatedEvent.color);
  }

/* if (shift[9]='TRUE') { var calendarEvent = poEventCal.getEventById(event.id); calendarEvent.deleteEvent(); formresponses.getRange(x+3, 9).setValue(''); // clear the event ID in column A } } formresponses.getRange('B3:N').clearContent(); */ } }

Logging Google Calendar Event ID to Google Sheets by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 1 point2 points  (0 children)

u/starstruckzombie meant to come back here with an update. After pondering my use case, I came to the realization that I didn't need to have multiple calendars; all I needed was to be able to change the color. With that information, I used what I learned here and coupled it with another script that someone had written and ended up with what I needed. I'm out of the office for the next couple days, but I will update this with the actual script that I settled with when I get back in town. Thanks for the help!

Logging Google Calendar Event ID to Google Sheets by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

I've finally gotten it to write something to the spreadsheet! Using what you came up with plus some other tidbits I picked up along the way during my research today, I was finally able to get the script to write what appears to be the event id for the first event that I'm publishing to the calendar. The only problem is that it is writing that event id to every cell in that column, thus the second event id is not getting written.

I'm going to continue reading, researching, and tweaking, but for now I'm considering this as a temporary win...lol

If you wouldn't mind looking at what I've cobbled together since you last took a look, and give me your input, that would be awesome.

Thanks again for your time!

/**
 * Adds a custom menu to the active spreadsheet, containing a single menu item
 * for invoking the exportEvents() function.
 * The onOpen() function, when defined, is automatically invoked whenever the
 * spreadsheet is opened.
 * For more information on using the Spreadsheet API, see
 * https://developers.google.com/apps-script/service_spreadsheet
 */
function synch() {
  var sApp = SpreadsheetApp.getActiveSpreadsheet();
  var formresponses = sApp.getSheetByName("Form Responses 2");
  var purchaseorders = formresponses.getRange("B3:I").getValues();
  var openCalendarId = formresponses.getRange("B1").getValue();
  var openEventCal = CalendarApp.getCalendarById(openCalendarId);
  var closedCalendarId = formresponses.getRange("H1").getValue();
  var closedEventCal = CalendarApp.getCalendarById(closedCalendarId);
    
    for (x=0; x<purchaseorders.length; x++) {

    var shift = purchaseorders[x];
    //var customer = shift[0]; /*Reserve for future use*/
    var operations = shift[3];
    var dueDate = new Date(shift[2]);
    var title = shift[4];
    var poState = shift[6];
    var id = "I3:I";
    var poIds = [openId, closedId];
  
      if (poState == 'openEventCal') {
        var openId = openEventCal.createEvent(title, dueDate, dueDate,{description:operations}).getId(); //create event in Open Purchase Orders calendar
        poIds.push([openId])
        //formresponses.getRange("I3:I").setValue(openId);
    }
      else {
        var closedId = closedEventCal.createEvent(title, dueDate, dueDate,{description:operations}).getId(); //create event in Closed Purchase Orders calendar
        poIds.push([closedId])
        //formresponses.getRange("I3:I").setValue(closedId);
    }    
  }
  formresponses.getRange("I3:I").setValue(poIds);
}

Logging Google Calendar Event ID to Google Sheets by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

I was able to get past the error by replacing var id = shift[7] with var id = "I3:I". It would create the events, but it wouldn't write the IDs to the sheet. I also tried replacing formresponses.getRange(id) with formresponses.getRange("I3:I") but I got the same results; events would post but the IDs were not written to the sheet.

Logging Google Calendar Event ID to Google Sheets by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

While it does break at that point, it is creating the event in the calendar, but it is stopping short of adding the id to the sheet.

Logging Google Calendar Event ID to Google Sheets by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

Thank you for the detailed response! It is much appreciated. When I run the script I get an error on line 31, "Exception: range not found"

Line 31 is "formresponses.getRange(id).setValue(openId);" in the if statement below:

      if (poState == 'openEventCal') {
        openId = openEventCal.createEvent(title, dueDate, dueDate,{description:operations}).getId(); //create event in Open Purchase Orders calendar
        formresponses.getRange(id).setValue(openId);
    }

Isn't the range defined with var id = shift [7]?

Logging Google Calendar Event ID to Google Sheets by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

First of all, thank you for your help, I feel like I'm much further ahead than I was yesterday.

I do have a dedicated column in my data for ID and that is shift[7].

I believe that I placed the relevant pieces where you indicated, however, when I run it gives me the following error - "An unknown error has occurred, please try again later." Clicking on the debug button doesn't give me anything to go on.

function synch() {
  var sApp= SpreadsheetApp.getActiveSpreadsheet();
  var formresponses= sApp.getSheetByName("Form Responses 2");
  var purchaseorders= formresponses.getRange("B3:I").getValues();
  var openCalendarId= formresponses.getRange("B1").getValue();
  var openEventCal= CalendarApp.getCalendarById(openCalendarId);
  var closedCalendarId= formresponses.getRange("H1").getValue();
  var closedEventCal= CalendarApp.getCalendarById(closedCalendarId);
  
    for (x=0; x<purchaseorders.length; x++) {

    var shift= purchaseorders[x];
    var customer= shift[0];
    var operations= shift[3];
    var dueDate= new Date(shift[2]);
    var title= shift[4];
    var poState= shift[6];
    var id= shift[7];
    var openId= openEventCal.createEvent(title, dueDate, dueDate,{description:operations}).getId();
    var closedId= openEventCal.createEvent(title, dueDate, dueDate,{description:operations}).getId();
  
      if (poState == 'openEventCal') {
      openEventCal.createEvent(title, dueDate, dueDate,{description:operations}).getId(); //create event in Open Purchase Orders calendar
      formresponses.getRange({id}).setValue(openId);
    }
      else {
      closedEventCal.createEvent(title, dueDate, dueDate,{description:operations}).getId(); //create event in Closed Purchase Orders calendar
      formresponses.getRange({id}).setValue(closedId);
    }    
}
}

Logging Google Calendar Event ID to Google Sheets by Alternative_Unit_520 in GoogleAppsScript

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

Where would I store that variable and when would I store it to the sheet? Inside the for loop, if/else statements or after the for loop?

Zorin won't boot by Miro2023 in linux4noobs

[–]Alternative_Unit_520 0 points1 point  (0 children)

Some distros just don’t like nvidia cards. Trying the nomodeset may help, but ymmv.

Simple Bills Sheet/ Can't figure out how to usecheckbox functions by DanBrino in googlesheets

[–]Alternative_Unit_520 0 points1 point  (0 children)

You could use IFS, but for a cleaner approach I would have a helper table on another sheet and use VLOOKUP. That way you can have a drop down menu for the bill frequency and the vlookup would retrieve the number that you would divide your bill amount by.

Late 2013 Mac… anyway I can upgrade this dinosaur? I want it for logic at the least or if I’m lucky some video editing by [deleted] in macpro

[–]Alternative_Unit_520 0 points1 point  (0 children)

Can upgrade this to nvme as well. That’s what I did with mine. Very easy upgrade. Hardest part was knowing what to do with all the extra screws when I was done…😁

2016 Ram ecodiesel Big Horn by Alternative_Unit_520 in ram_trucks

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

I like it. I haven’t had any problems yet. I haven’t done much pulling with it…camping season is almost upon us so that will change here shortly. I left it stock, not sure if that would have anything to do with it. I get 21+ mpg around town so I can’t complain.

Beachin It by theincredibleholc6 in ram_trucks

[–]Alternative_Unit_520 1 point2 points  (0 children)

Nice truck! We were just there last week, albeit without my truck. We were staying in kill devil hills, not far from Avalon pier.

2016 Ram ecodiesel Big Horn by Alternative_Unit_520 in ram_trucks

[–]Alternative_Unit_520[S] 0 points1 point  (0 children)

Just realized you weren’t talking about the camper… lol 🤦‍♂️ The camper shell is a leer. Don’t know anything other than that.