text
stringlengths 83
79.5k
|
---|
H: Combine two charts in one and auto-update them
I have two tabs Sheet1 and Sheet2 with two columns each: Date and Temperature. I want a single chart of temperatures against date.
The problem is that the date columns are not necessarily identical (some dates are missing from some sheets). So, what I want to do is (full outer) join of the two tables on Date and then plot the two Temperature columns against the combined Date column.
The other problem is that new records are updated daily to the sheets and I want the chart to be updated automatically as it happens.
This can be relatively easily done in R or Python; however, it would be nice to do this in a more "visually interactive" environment.
Thus, my questions are: how to combine the two Temperature vs Date charts into one (taking care of the missing data) automatically so that no action is required when the sheets are updated?
AI: You can use embedded arrays to join the two data sets for the purpose of plotting. For example, if your data is in columns A and B of two sheets, and has a header row, the following will join and sort the two sets:
={Sheet1!A1:B1; sort({filter(Sheet1!A2:B, len(Sheet1!A2:A)); filter(Sheet2!A2:B, len(Sheet2!A2:A))}, 1, true)}
Explanation:
Sheet1!A1:B1 grabs the header row. The semicolon after it works as row separator in embedded arrays.
filter(Sheet1!A2:B, len(Sheet1!A2:A)) takes all A-B cells from Sheet1 with nonempty A entry (i.e., filters out blank rows)
filter(Sheet2!A2:B, len(Sheet2!A2:A)) does the same for Sheet2. Separated by ; these get stacked one over the other.
sort({...}, 1, true) sorts by the first column, ascending.
You can also combine non-consecutive columns in this way, like E and J. The embedded array would have the structure
{Sheet1!E, Sheet1!J; Sheet2!E, Sheet2!J}
where commas separate columns and semicolon separates rows. Specifically.
={filter(Sheet1!E2:E, len(Sheet1!E2:E)), filter(Sheet1!J2:J, len(Sheet1!E2:E)); filter(Sheet2!E2:E, len(Sheet2!E2:E)), filter(Sheet2!J2:J, len(Sheet2!E2:E))}
(and then apply sort, as before).
Note that both columns must be filtered by the same criterion (whatever it is) to make sure their contents align. |
H: How can I make YouTube loop a video over and over?
I'm looking for a way to have YouTube videos loop over and over without having to build playlists and or needing the use of extensions or other plugins.
How can I loop YouTube videos naturally?
AI: The simplest way? Right click twice in the video.
If you right click the video you'll be greeted with a list of options for the HTML5 player, seen below:
However, should you right click once again, you will see a second menu.
Within this menu is a toggle for "Loop" which prompts the video to autoloop once it has finished playing. This was tested on both the Chrome, Firefox, and Internet Explorer Browser, and it worked on all 3 browsers. It doesn't require the use of extensions/plugins, or making a playlist then looping it. |
H: Highlighting the maximal value of a column with conditional formatting
I have a simple column of numbers here (A2 to A10) in which I want to highlight the maximum value in that column. Instinctively I went to conditional formatting and learnt that the formula for it was =A2=MAX($A$2:$A$10) applied to A2:A10. I'm glad it works hassle-free, but I would not have thought to put the A2 in the front and have $'s, why are those necessary?
I would have been banging my head against a wall with just =MAX(A2:A10)
AI: You are right: it can be simpler than that. Pick "Format cells if... Is equal to" and put =MAX(A$2:A$10), and you'll have the same result.
Why dollar signs? Because without them, the references are relative. The formula that you enter is assumed to be designed for the upper left corner of the range being formatted; for all other cells in the range, it will be interpreted using relative references. That is, if you compare A2 to =MAX(A2:A10), then A3 will be compared to =MAX(A3:A11), A4 to =MAX(A4:A12), and so on. This is not what you wanted.
(You will appreciate the relative nature of references when you decide to format cells in A if their values are equal / less than /greater than the corresponding values in B.)
There is no reason to put $ before A since the formatting is only applied within column A. Both $A and A mean the same column in this case.
Why would someone suggest =A2=MAX($A$2:$A$10)? Because they are used to conditional formatting using custom formulas. A custom formula needs to return True or False. So, the equality A2=MAX($A$2:$A$10) is checked, and the result is returned as True and False. |
H: How do I get Google Inbox to ask me to be a mailto handler?
Google Inbox doesn't appear to offer to handle mailto: links as Gmail does.
Is there a way to enable this in Google Inbox?
AI: There is Gmail option under the left hand menu in Inbox, which can be accessed using the hamburger in the top left.
Once in Gmail you can enable it per this answer. |
H: How to append the value of a cell to the output in another cell?
I'm trying to append the value of a cell into my string output.
Example
I have a dropdown selection of Apple and Oranges in A1. I want A2 to say You've picked [input value from A1], how would I do that?
AI: This is called concatenation of strings. There are three ways to do this in Google Sheets:
A2 ="You've picked" & A1
or
A2 =concatenate("You've picked", A1)
or
A2 =concat("You've picked", A1)
The difference between concatenate and concat is that the former accepts any number of strings, while the latter accepts only two. There isn't a reason to use concat, I mention it just for completeness. |
H: HDFC Bank Website Asking to "Wait" Before Loading Up the Homepage
I've not noticed this behavior before. When I use the following url:
hdfcbank.com
I see the following for a split second:
And then the homepage loads up. Isn't this a bit suspicious? It happens for the first time every day and subsequent visits on the same day seem to behave normally.
I feel that it is searching for a cookie and upon not finding one, is showing the "wait" message, setting a cookie (with expiry of 24 hours) and then proceeding to the homepage.
If that is not the case I wonder why it happens.
AI: Without looking at the page I'm going to guess it uses the "one page" model.
In other words, there's very little HTML on the page, and the content is dynamically loaded via JavaScript. The idea is that you can get a more "native app" experience, assuming your network connection is fast enough.
Another possibility is that the site needs to load a fairly large and long-running page. Rather than risk you leaving or trying to reload because the page takes longer than you expect, that quick message is displayed nearly instantly and then the heavy, slow page doesn't need to be so fast. |
H: How to remove all friends in Google+ at once
I just found out that I have a massive fake friends list in my account. I have more than 4k friends, and it’s hard to remove them one by one. Is there a way to mass-remove them? And if yes, how?
AI: In the Circles section in Google+ we can see all the circles we added our friends. once we click one of that circle its showing all the friends in that circle , as well as following edit and delete option for that circle. Delete the circle, it removes everyone in that circle |
H: How to create a friends list in Facebook?
In Facebook, a "friends list is a sub-group of your friends that you can define. For instance, you can create a "jazz-toronto" friends list containing only people you want to invite when you play a jazz concert in Toronto.
The How do I create a new list to organize my friends? Facebook help page is explicit:
To create a new list:
1. Scroll down to Friends on the left side of your News Feed. Hover over Friends and click More.
2. Click Create List.
Problem: I don't have a "Friends" label on the left side of my News Feed. I only have Favorites, Pages, Groups, Apps, Interests, Events, Developer.
Question: Where should I click, or what is the URL, to create a friends list?
AI: My friends list option is on the left hand side of the main page. The URL it links to is https://www.facebook.com/bookmarks/lists/ |
H: Combine two columns into a list of all possible combinations of entries
I have two columns such as:
a 1
b 2
c
and I need to combine them like:
a 1
a 2
b 1
b 2
c 1
c 2
Is it possible with a formula?
AI: Although this is a special case of In a Google Spreadsheet, show all combinations for a selection of columns I think it's good to have a simpler answer specifically for the case of two columns. The technical term is "Cartesian product of two sets".
I use the same method as Rubén, which requires a character that does not appear in the column entries. Rubén used comma in his example. I prefer something more exotic, e.g. char(9999), which is a pencil: ✏.
Here are the formulas for joining columns A and B in a Cartesian product:
In cell C1:
=transpose(split(join("", arrayformula(rept(filter(A1:A, len(A1:A))&char(9999), counta(B1:B)))), char(9999)))
In cell D1:
=transpose(split(rept(join(char(9999), filter(B1:B, len(B1:B)))&char(9999), counta(A1:A)), char(9999)))
Explanation
The formula in C:
takes nonempty entries in A
puts ✏ next to each
repeats each such combo as many times as there are entries in B
joins them into a✏a✏b✏b✏c✏c✏
splits by pencil character into a row a a b b c c
transposes the row so that it becomes a column
The formula in D:
takes nonempty entries in B
joins them, separated by ✏
repeats the entire string as many times as there are entries in A, getting 1✏2✏1✏2✏1✏2✏
splits by pencil character into a row 1 2 1 2 1 2
transposes the row so that it becomes a column |
H: Google Calendar is sending me unwanted email
I deleted an event from my Google Calendar, and I received an email saying "An event has been moved to Trash." There is no unsubscribe link in the email. How do I turn these notifications off?
AI: Go to calendar.google.com, hover over the calendar that you got that notification from in the side bar, click the down arrow, and then select "Edit Notifications". You can then select/deselect the notifications you wish to be e-mailed for. "Canceled Event" seems to be the notification that you received.
Alternately, you can go to Settings > Calendars to see the links to each calendar's notification settings. |
H: Convert all text to UPPERCASE in a Google Spreadsheet
I have a spreadsheet I'm sharing with others to collect some data. Each person is just (supposed to be) putting a single character in any of a range of cells.
How can I cause those cells to convert to uppercase?
Using =UPPER() in each cell would seem to be a non-starter, because it'll be overwritten by whatever they enter.
AI: Here is a script that automatically converts input to upper case:
function onEdit(e) {
if (typeof e.value != 'object') {
e.range.setValue(e.value.toUpperCase());
}
}
From the spreadsheet, go Extensions > Apps Script. Put the above code in the code window (replacing anything pre-filled there), and save.
If you wanted to enforce upper case and single-character entries, then data validation could be used, with custom formula
=regexmatch(A1,"^[A-Z]$")
This is assuming the upper left corner of the range is A1, and that you expect letters of Latin alphabet. The regular expression ^[A-Z]$ means: beginning of string; single character in the range A-Z; end of string. |
H: Using QUERY command with dates
I have a column in Sheet1 that contains dates in format DD/MM/YYYY, like this:
12/10/2015
28/09/2015
28/09/2015
28/09/2015
28/09/2015
28/09/2015
28/09/2015
26/10/2015
26/10/2015
26/10/2015
26/10/2015
12/10/2015
12/10/2015
12/10/2015
And I'm trying to select with a QUERY all the entries that are less than 15/10/2015. I know there are other methods but I need to use SQL syntax (this is a simplified version of the big formula and I need SQL to make the other bits work).
=QUERY(IMPORTRANGE("BLABLABLA", "Sheet1!A2:A"),"SELECT * WHERE Col1 <= '15/10/2015'")
But the query completes with an empty response. I even tried to use the MM-DD-YYYY format in the QUERY or just "2016"—still an empty response.
My spreadsheet’s locale is UK.
AI: Replace
WHERE Col1 <= '15/10/2015'
with
WHERE Col1 <= date '2015-10-15'
That is, you need to provide date in ISO format and precede it with the keyword date so that it is parsed accordingly. |
H: Can I remove a template from a category in MediaWiki?
We use a MediaWiki at our company to host internal documentation. I created a bunch of templates that is supposed to help with organisation and identification of all the pages within the wiki.
So, for example, I made a template called wip (work in progress) that adds an appropriate banner at the top of the page notifying the reader that the page is incomplete. This template also adds the page to an unfinished category so that we can easily display all pages that are still want of completion. This way, the page author can simply use the transclude function and add {{wip}} to the top of the page to have all the magic happen.
The problem is, if I generate a list of all the pages that are listed as being incomplete, the template page also shows up on this list, because the template page itself has the [[Category:unfinished]] directive.
Is there a way to make a transcluded template add its host to a category without itself belonging to that category?
AI: This sounds like a job for the <includeonly> tag. Anything in it will only be included when the template is transcluded, not on the template page itself. For your example, the template code would have this:
<includeonly>[[Category:unfinished]]</includeonly> |
H: Can I auto-fill an answer on a form edit URL?
I periodically send out emails to our team to check in on from entries that have a specific field set to "No". And after they complete a certain task then need to change that entry to "Yes". The easiest way I've found to do this is to have them go to the form edit URL and just change the last question themselves.
However, to make it easier, I would like to auto-fill that change that final questions to a "Yes" instead of a "No" through the Edit URL.
Is this possible?
If this is not possible, any suggestions for a more user-friendly way to edit a response? If I could generate a link that runs a script with a unique identifier that would work as well, or even a link that causes the specific spreadsheet cell to change would work too.
AI: I figured that out rather quickly.
If you take your form URL:docs.google.com/a/mydomain/forma/d/uniqueFormString/viewform?edit2=uniqueEditString
Get your elements number and value by getting a pre-filled URL. ie. &entry.688631299=Yes and insert it right after the viewform? and append a & after your elements number and value.
The URL should look like: docs.google.com/a/mydomain/forma/d/uniqueFormString/viewform?&entry.688631299=Yes&edit2=uniqueEditString
Go to that URL and the specific question will be changed. Now if I could just figure out how to auto-submit the form to make it even easier. |
H: Simple page host on github.io returns 404
My GitHub URL is https://github.com/qiaoba and https://github.com/qiaoba/qiaoba.github.io is the repository on my master branch.
But I get a 404 page returned when I'm trying to visit qiaoba.github.io.
Why?
AI: Create a CNAME file with content:
qiaoba.github.io
May be it will work. |
H: When creating a 'Checkboxes' question in Google Spreadsheets, what formula do I use to add a mark to each box ticket correct to the answer?
I am creating a Google Spreadsheet for the first time and I have suddenly become stuck.
When filling out my spreadsheet I do not know what formula to use when adding up the correct answers.
I have included an example below (all the answers are correct, however if my student only selects one, I still want to give them a mark to each allocated tick)
The syntax I am currently working on is:
=if(L2="Return all unused pins back into the plastic kits.", "1", "0")+(L2="Use fabric scissors when cutting fabric.", "1", "0")+(L2="Position the sewing machine close to you when you are working", "1", "0")+(L2="Return all equipment back to where it belongs.", "1", "0")+(L2="Place your work inside the CORRECTLY labeled class tub.", "1", "0")+(L2="Turn iron off at power point", "1", "0")+(L2="Push chairs under desk when leaving work station", "1", "0")+(L2="Use polite manners at all times.")
AI: It seems what you want to do in your example is to count the number of options ticked.
In the spreadsheet receiving the form responses, each response is assigned to a row. The answers to your security questions are assigned to a cell in that row, apparently L2, judging by your formula example.
If a student selects, say, the first two options, the L2 cell will be Return all unused pins back into the plastic kits., Use fabric scissors when cutting fabric.. That is, the text of the selected options, separated by , (a comma and a space).
Knowing that, we can put the following formula in another cell in that row (for example in M2):
=SPLIT(L2; ", "; FALSE)
This will expand the contents of L2, splitting the string up by the , separator, so that each checked option will occupy its own cell:
| L2 | M2 | N2 | O2 | ... |
-----------------------------------------------------------------------------------------------------------------------
| Return all unused (...), Use fabric scissors (...) | Return all unused (...) | Use fabric scissors (...) | |
... which is not exactly what we want, since we just want to know the number of checked options, but we can learn that by wrapping the formula in a COUNTA function:
=COUNTA(SPLIT(L2; ", "; FALSE))
... which will return 2.
Feel free to copy the spreadsheet I set up to demonstrate. |
H: Scatter chart with multiple data series
I want to create a scatter chart with Google Spreadsheets, which turns out to be very difficult. Based on a similar question here I came up with this approach:
What I want to achieve is sketched here:
Any idea how I can get Google Spreadsheets to do that?
AI: You don't need any tricks to do this: just use the data in the natural way
+---+------------+---------+---------+
| | A | B | C |
+---+------------+---------+---------+
| 1 | difficulty | samples | results |
| 2 | 0 | 1 | 3 |
| 3 | 1 | 1 | 3 |
| 4 | 2 | 1 | 3 |
| 5 | 3 | 1 | 3 |
| 6 | 4 | 1 | 3 |
| 7 | 5 | 1 | 3 |
+---+------------+---------+---------+
Select the range A1:C7, go to Insert > Chart, switch to "Chart types" tab and pick Scatter. Here's what I get:
(If the data is arranged as you have it, with separate rows for separate series, it still works the same).
A potential pitfall: if on the "Recommendations" tab (shown by default) you click a scatter-looking plot "samples vs. difficulty", this will yield the bad chart in your post. Just ignore the "Recommendations" tab. |
H: As a Google Apps Admin, how do I remove an ex-employee from a calendar event?
We have several ex-employees who are still listed as attendees for meetings. Their google accounts have been deleted. We have a catch-all account that is getting their reminders for events. How do I remove them without getting the owner of the event involved?
AI: I talked to the former Google Apps admin. It turns out it is very simple. Rather than go to the admin section, go straight to your own calendar. From within your calendar, add the event's owner's calendar to your calendar view (from the bottom left). Now select the specific event and edit it. From the edit screen you can remove attendees. |
H: Getting all files' file-id from a folder in Google Drive
I've a folder in my Google Drive and would like to get the file id of all the files against their file name in a spreadsheet.
Currently I have to open all the files in the folder individually and copy past the "File-Id" from the address bar to this spreadsheet (MasterSheet). In the MasterSheet I've set some import rules which imports automatically using the file ID.
I am unable to find a solution for this though it seems to be a very common requirement one can come across.
AI: I modified Tom Woodward's script to suite my need. Here it is:
function listFilesInFolder(folderName) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Name", "File-Id"]);
//change the folder ID below to reflect your folder's ID (look in the URL when you're in your folder)
var folder = DriveApp.getFolderById("THIS_SHOULD_BE_YOUR_FOLDER_ID");
var contents = folder.getFiles();
var cnt = 0;
var file;
while (contents.hasNext()) {
var file = contents.next();
cnt++;
data = [
file.getName(),
file.getId(),
];
sheet.appendRow(data);
};
};
I needed to get only the file name and its file-id, and the simplified version does that. |
H: How do I create a Twitter hashtag?
I've looked around the internet for a step by step guide on how to create, and define hash tags.
Can someone guide me on how to figure it out?
AI: From HELP CENTER:
The # symbol, called a hashtag, is used to mark keywords or topics in a Tweet. It was created organically by Twitter users as a way to categorize messages.
Using hashtags to categorize Tweets by keyword:
People use the hashtag symbol # before a relevant keyword or phrase (no spaces) in their Tweet to categorize those Tweets and help them show more easily in Twitter Search.
Clicking on a hashtagged word in any message shows you all other Tweets marked with that keyword.
Hashtags can occur anywhere in the Tweet – at the beginning, middle, or end.
Hashtagged words that become very popular are often Trending Topics. |
H: My students are losing their answers before submitting the form
I do my assessments using Google Forms. Things have been good so far until today. This morning, two of my students who were taking their assessment, found that all of their responses had been blanked out. This was a very long assessment. several sections, with many questions in each section. Of course, the only thing useful I got from them was "I think I clicked something somewhere".
Is there any way to make a form autosave periodically? Or to recover information from a cache? I'm telling my students this afternoon to be careful, and to copy and paste their answers into a separate google doc, just in case.
To be fair, I did also locate a third-party app called "Form Autosave" which adds a button in your browser, but that's not really the answer, since it is hardly "automatic" AND requires all my students to have it in their browser.
AI: It's not an ideal solution because it is also third-party and poses the same issue of your students needing to install it on their browsers, but Lazarus is a browser extension—link takes you to the Chrome Web Store; it is also available for Firefox—that automatically saves input in most text fields on the web for a set (adjustable) amount of time. It adds a little button to such text fields that, when clicked, opens a context menu that lists text it has saved for that particular field. If there are other fields on the page, it will automatically fill in the rest with the text that was there when it saved the selected text.
It should work with Google Forms. |
H: Average of last 7 non-empty non-blank cells in Google Sheets
I have numbers in range D7:D and there are times when some cells are empty. I want the average of the last 7 numbers but to skip blanks. So if in the last 7 there's only 3 that are full, I want it to go back further and find 7 total and average them out.
AI: Here is one approach:
=average(indirect("D" & iferror(large(filter(row(D7:D), len(D7:D)), 7), row(D7)) & ":D"))
Explanation:
filter(row(D7:D), len(D7:D)) returns an array that consists of the row numbers of the nonempty entries in the given range.
large(..., 7) picks the 7th largest number from this array: this is the row number where you want to start averaging.
iferror(..., row(D7)) is a safeguard in case your range has fewer than 7 non-blank entries: in this case, the averaging will begin with D7. I could have just put "7" instead of row(D7), but row(D7) makes the formula more portable in case you decide to copy it elsewhere.
indirect("D" & ... & ":D") forms the range for averaging, e.g., D9:D if the output of preceding computation was 9.
Finally, average does the average. You could put other aggregate functions here, too. |
H: How do I modify the range of an existing Google Sheets chart?
I have inserted a chart into a Google sheet and need to modify the range of data it examines. I can manually define the range when I insert the chart using the chart editor as per the image below:
However once the chart is created I can't figure out to access this window again to change the range.
How can I modify the range of an existing chart?
AI: Use "Advanced edit" option in the dropdown shown in upper right corner when the char is clicked. (It can also be accessed by right-clicking the chart.)
It will bring you back to the dialog you saw when inserting the chart. Change the data range on "Chart types" tab, and click "Update". |
H: Cannot write comments in Facebook - nothing happens
I have been unable to write comments on Facebook for several month in Chrome.
After typing, neither Enter nor Ctrl+Enter nor clicking on Post do anything - the page simply stays static without any indication of my action.
This happens on all pages, of foreign people as well as friends (in good standing, not blocked), and even on my own posts on my owl wall. I am not aware of ever acting contrary to the TOS. Other functionality is not affected to my knowledge.
AI: Typing up the question made me think of a potential problem - I'm leaving this here for future reference.
I had the "Social Fixer for Facebook" extension installed. Disabling it made the problem disappear and I can again write comments as expected. |
H: What is the largest Kickstarter image size that is not scaled down for all?
On the Kickstarter site they write:
Your project image size should be 1024x768 pixels (4:3 ratio). We accept most major image formats, but for best results upload one of our recommended file types: JPEG, PNG, or BMP. The maximum image size is 50MB.
So does that mean no matter how many pixels my image is, it will be downsized to 1024x768?
If so, why accept up to 50MB files?
If not, what is the maximum pixel size that is not always downsized?
AI: In the book titled Kickstarter for Online Sellers: Get the Money You Need to Fund Your New Product Line the author suggests that the images be at least 1024x768 pixels not a limit of that. |
H: How is stars different from labels in Gmail?
What is the point of having stars when we can already make our own labels? Aren't stars just another label? It would be interesting to see a use case where using stars is preferable to using labels.
AI: You could consider stars to be another label; you have flexibility in how to use them. Stars are, however, treated a bit differently than labels.
For instance, there is a search operator for stars: is:starred. For labels the syntax is a bit different: in:labelname.
Stars also have special meaning if you use Priority Inbox. It's one of the signals you can use for the different buckets, such "Important and Starred" or "Starred and Unread".
Stars also have a special hook in the API. I use IFTTT to add an entry to my todo.txt file whenever I "star" a message. This isn't so easy with labels.
Not to mention starred messages can be set to automatically appear on the "Primary" tab (as Vidar points out).
It seems that most people use labels to organize their messages, while they use stars to keep track of messages they want to find quickly, perhaps as a sort of task list.
All that said, if you have no use for stars, there's no reason you have to use them. |
H: In Google Sheets how do I duplicate a sheet along with its permission
In a Google Spreadsheet called Attendance there is a sheet called Template. The user duplicates this sheet, renames the sheet with current date and uses this sheet to mark attendance for students.
The Template sheet contains protected cells and the attendance is marked by entering Student's ID number in the space given (unprotected cells).
I use the following script to duplicate multiple sheets and rename them everyday:
function createDailyAttendance() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var refss = ss.getSheetByName("DataPointers");
// Get the range Row and Column information.
var dataRangeRow = refss.getRange("K2").getValue();
//var dataRangeCol = ss.getRangeByName(ColName).getValue();
// Get the range of cells that store Duplicate sheet name.
var AttendanceDataRange = refss.getRange(dataRangeRow);
var AttendanceObjects = AttendanceDataRange.getValues();
var template = ss.getSheetByName('Template');
for (var i=0; i < AttendanceObjects.length; i++) {
// Put the sheet you want to create in a variable
var sheet = ss.getSheetByName(AttendanceObjects[i]);
// Check if the sheet you want to create already exists. If so,
// log this and loop back. If not, create the new sheet.
if (sheet) {
Logger.log("Sheet " + AttendanceObjects[i] + "already exists");
} else {
template.copyTo(ss).setName(AttendanceObjects[i]);
}
}
return;
}
This script helps me create multiple copies of sheets from Template but the duplicate copies do not retain the Cell/Range permissions.
Is there a way to add a loop function which extracts permission from Template and applies it every time the loop template.copyTo creates a sheet?
AI: Scenario 1: template is a protected sheet with unprotected ranges
In the script below, I duplicate the sheet, get its protection of Sheet type, then protect the new sheet in the same way: same description, same type. If the protection is not just a warning, then remove all editors, and add those allowed for the original sheet. Finally, loop over unprotected ranges, remapping each of them (via getA1Notation) to the new sheet, and unprotect those.
function duplicateProtectedSheet() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
sheet = ss.getSheetByName("Sheet1");
sheet2 = sheet.copyTo(ss).setName("My Copy");
var p = sheet.getProtections(SpreadsheetApp.ProtectionType.SHEET)[0];
var p2 = sheet2.protect();
p2.setDescription(p.getDescription());
p2.setWarningOnly(p.isWarningOnly());
if (!p.isWarningOnly()) {
p2.removeEditors(p2.getEditors());
p2.addEditors(p.getEditors());
// p2.setDomainEdit(p.canDomainEdit()); // only if using an Apps domain
}
var ranges = p.getUnprotectedRanges();
var newRanges = [];
for (var i = 0; i < ranges.length; i++) {
newRanges.push(sheet2.getRange(ranges[i].getA1Notation()));
}
p2.setUnprotectedRanges(newRanges);
}
Scenario 2: template is a sheet with protected ranges
Using sheet.getProtections method, you can get the array of protections on a given sheet, and loop over them, creating their analogs on the target sheet. This is somewhat annoying because there seems to be no method to simply clone a protection to another range. (One can change the range of protection, but that would move it to the new range, instead of copying.)
So, in the function below I do the following:
Get the A1 notation of each protected range with p.getRange().getA1Notation();
Protect the corresponding range of the target sheet with p2 = sheet2.getRange(rangeNotation).protect();
Set the properties of new protection p2 according to the properties of original protection p.
function duplicateSheetWithProtections() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
sheet = ss.getSheetByName('Template');
sheet2 = sheet.copyTo(ss).setName('My Copy');
var protections = sheet.getProtections(SpreadsheetApp.ProtectionType.RANGE);
for (var i = 0; i < protections.length; i++) {
var p = protections[i];
var rangeNotation = p.getRange().getA1Notation();
var p2 = sheet2.getRange(rangeNotation).protect();
p2.setDescription(p.getDescription());
p2.setWarningOnly(p.isWarningOnly());
if (!p.isWarningOnly()) {
p2.removeEditors(p2.getEditors());
p2.addEditors(p.getEditors());
// p2.setDomainEdit(p.canDomainEdit()); // only if using an Apps domain
}
}
}
It's also possible to have protected ranges within a protected sheet, in which case you would need to combine the two functions (do everything that each of them does, except of course you'll be duplicating the sheet only once.) |
H: How do I remove a tab stop in Google Documents?
I mistakenly added too many tab stops to the ruler in my Google Document, and it's not obvious how to remove them.
How do I remove a tab stop from a Google Document?
AI: To remove a tab stop, simply use your mouse pointer to click-and-drag the tab stop off of the ruler. (Of course, the ruler needs to be visible.)
Unfortunately, I cannot find a "keyboard-only" method to do this. |
H: EOMONTH-Function returns always "Parse Error"
Following Google Docs "Editors Help" I just tried out the function EOMONTH.
Unfortunately, every example I found there will result in an "Parse Error".
Example:
=EOMONTH(DATE(1969, 7, 20), 1)
The same happens with addressing specific cells like
=EOMONTH(A1, 1)
(A1 will contain a valid date)
What is wrong here?
UPDATE:
I'll provide an example-sheet here.
AI: In (much of) Europe, formulas need to use semi-colons instead of commas.
So, instead of
=EOMONTH(DATE(1969, 7, 20), 1)
use
=EOMONTH(DATE(1969; 7; 20); 1)
(I presume that this is because comma is a decimal separator for Europeans, while Americans use a period.)
The Google Support page for the EOMONTH function in German shows semi-colons, while the same page in English shows commas. (French is inconsistent, but Spanish and Italian help pages also use semi-colons.) |
H: Prevent Gmail telling me about an email that contains a virus or suspicious attachment?
I have a Gmail account which is set to pull in emails from an old POP3 account. For various reasons, I need to keep doing this.
At least several times a day I will get the following email from "Gmail Team":
The message "something spammy" from Fake Company (fake@company.com)
contained a virus or suspicious attachment. It was therefore not
fetched from your account me@pop3account.com and has been left on
the server.
Message ID:
If you wish to write to Fake Company, just click reply and send Fake
Company a message.
Thanks,
The Gmail Team
It's great that they aren't fetching this email and I have absolutely no desire to go and find out what "Fake Company" are sending me, but it would be really nice if Gmail didn't keep telling me this.
Is there any way I can turn this message off?
AI: You can't "turn this off" as far as I know, however, you can set up a filter that automatically archives, or even deletes these informative messages.
Personally, I archive all these messages and apply a label, so I can easily find them again if I really need to.
Gmail used to prefix the subject line with "Message left on server:" which made it easy to filter these messages based purely on the subject.
However, Gmail no longer does this (the subject is the same as the original spam email - which makes it harder to determine until you actually open the email! Why Google?). You can still filter on the From and Message Body fields:
From: mail-noreply@google.com
Includes the words: and has been left on the server or contained a virus or a suspicious attachment. It was therefore not fetched from your account (as mentioned in comments)
Skip the Inbox (Archive it) or Delete it |
H: How do I hotlink a large file in Google Drive?
I want to have a large file accessible from Heroku for processing which will go a lot faster if it runs on Heroku than locally. I shared the file and got the link https://drive.google.com/file/d/0B9XPKIrgZLLudUxNdTlWVEpFTlE/view. It brings up a page saying it cannot preview, so it gives the option to download. That link is https://docs.google.com/uc?id=0B9XPKIrgZLLudUxNdTlWVEpFTlE&export=download. But then it still gives another page saying it cannot virus scan 97MB and there is yet another button to confirm download.
If you press this final button in the browser, it will download, but you can't do it from a script because it sets a cookie or something. So how do I get a direct, direct link to a large file in Google Drive?
I found this https://sites.google.com/site/gdocs2direct/ but it just gives the same link above, with the virus scan warning.
I don't have Amazon S3.
AI: The maximum file size that Google will perform a virus scan on is 25MB. Therefore you can not skip the warning about not being able to scan the file as it is automatically generated when the file check takes place.
Source: http://support.google.com/a/answer/172541?hl=en |
H: Making websites as small as possible
So I am about to be in a position where I have an extremely limited amount of data use for the next 2 weeks.
I am just wondering if there is an application out there(native or addon for a browser, etc.) that makes websites smaller in terms of bandwidth usage. I'm assuming something that blocks flash scripts would cut out a lot of clutter but is there anything that can go a step further than that and maybe block all the javascript? I only plan to be studying for the next couple of weeks so i assume that I will only need to view text on webpages.
AI: Since this question appears to be looking for a short term work around rather then a longer term Software Recommendation there is a web tool that simulates the text based output you would get on the Lynx Browser. The Lynx browser uses an 80 column text only output and as such would cut your data usage to an absolute bare minimum. This tool can be found at http://www.delorie.com/web/lynxview.html and is 100% free of any registration or charge.
Note that this tool can be a bit slow to process a request depending on the size of the target site in question. I have no affiliation with this site. |
H: How do I import mail from one Gmail account to another Gmail account?
If you google that question as is, you get a plethora of links and "how to's" on how to do it.
This and this or this, are practically useless. They are badly written, some steps are "missing" (like how do you go from Forwarding and POP/IMAP to so called "Pop Download"), and I think they are out of date as the interfaces and options in Gmail settings look different (as of Nov 2015).
It is obvious the methods explained are about "opening up" Gmail accounts to POP3 connections and treating the other Gmail account as an external POP3 account.
But it does not work for me.
Every time I give authentication to the POP3 settings of the "other" Gmail account, I get authentication denied errors. I've checked the Gmail passwords and access to both accounts on a separate browser and it's all OK.
I am trying to do this in latest Chrome, Windows XP.
AI: Those steps are correct for example if you go to your settings and go to the Forwarding and POP/IMAP tab you will see three sections: Forwarding, POP Download, and IMAP Access. With this said the steps straight from Google are as follows:
On the second account (the one mail is to be pulled FROM):
Click on the Gear icon in upper right corner.
Click on Settings.
Click on the Forwarding and POP/IMAP tab.
In the POP Download section next to step 1 select the Enable POP for all mail radio button.
Again in the POP Download section next to step 2 choose if you want keep, delete, or archive the messages after they are accessed.
Click on Save Changes on the bottom of the page.
On your main account (the one you want the mail to end up in):
Click on the Gear icon in upper right corner.
Click on Settings.
Click on the Accounts and Import tab.
In the Check mail from other accounts (using POP3) section click on Add a POP3 mail account you own.
Enter the full email address of your other Gmail account.
Enter your password. Note that 2-step verification will also require a new app password. (See Below)
Adjust the remaining options to your preferences.
Google recommends that you:
Leave unchecked - Leave a copy of retrieved messages on the server.
this setting is controlled from the settings on the other account.
Leave unchecked - Archive incoming messages.
If you check this your messages will not appear in your inbox .
Leave checked - Always use a secure connection (SSL).
If you have 2-Step verification turned on you may need to generate an App Password:
On the second account (the one mail is to be pulled FROM):
Go to the Apps Passwords Page
Sign in with the account you are importing From
At the bottom, click Select app and choose Mail.
Click Select device and choose the device you’re using (most likely Windows Computer)
Select Generate.
Enter the generated App password when you are setting up the Import on the main account.
You should only need to do this once and after that it should be available |
H: Automatically create hyperlinks with parameters, based on data in another column
(This question was posted here by Tasos, but then deleted). I quote a part of it:
At the moment, I have a cell which used to create a hyperlink on the next column. This is what I have done at the moment.
The first cell (in B4 for example) has this format 123456.789 and the hyperlink:
=IF(B4="","",HYPERLINK(CONCATENATE("http://www.example.com/?tag1=",LEFT(B4, FIND(".", B4)-1) ,"&tag2=",RIGHT(B4, Len(B4)-FIND(".", B4)) ), B4))
The result of the link will be: http://www.example.com/?tag1=123456&tag2=789
However, I have to update the column with the hyperlink manually, every time. How can I make it so that every time an entry is added to column B, a hyperlink is created?
AI: This can be done with arrayformula:
=arrayformula(if(B1:B="",,hyperlink("http://www.example.com/?tag1=" & regexreplace(""&B1:B, "\.", "&tag2="), B1:B)))
The main changes are: passing in the entire column B1:B and wrapping the formula in arrayformula. This will result in it being automatically applied to every cell in B. (If you have a header row, replace B1:B by B2:B everywhere.)
But I also made a few improvements to the formula.
I use if(B1:B="",,hyperlink(...)) instead of if(B1:B="","",hyperlink(...)) The first version leaves the cell blank, the second puts empty string in it. These are subtly different states of a cell: the difference is invisible but affects the outcome of isblank and query commands. (When a string is required, i.e., for string comparison, blank cells are coerced to empty strings; this is why B1:B="" matches both blank cells and those with empty string.)
Instead of a bunch of find, left, right, len, I used substitution: regexreplace(""&B1:B, "\.", "&tag2=") replaces dot with "&tag2=". (This assumes that you have only one dot in the input, otherwise the input is ambiguous.) An interesting detail: the concatenation ""&B1:B is needed to coerce the input to string form; otherwise regexreplace chokes up on numeric input such as 1234.567
In almost all cases, concatenation is easier expressed with & operator than with concatenate command. Less typing, fewer parentheses to mess up. |
H: What does the "filmstrip" icon on YouTube do?
Some, not all, YouTube videos show this "film strip" icon in the controls at the bottom.
There is no popup with explanation on hover (like the captions, settings, etc.). Clicking the icon turns it red and the vertical scrollbar disappears.
What does that icon achieve? Why does it show on some YT vids, but not on others? For example this video.
AI: Yes, as Vinayak has suggested, it's an extension that I did not remember installing. Funnily enough, it does not always show on all videos. Disabling and enabling again seems to make it show on videos that did not show the icon before.
Once showing, click it, it turns red, and then you can use the scroll wheel of the mouse to scroll frame by frame. Here is the link to the extension in the Google Chrome Webstore: Frame Scroll for Youtube |
H: Advice on completely eradicating my Facebook
I have an old Facebook account that I want to get rid of. I posted some things that I shouldn't have posted, that might hurt my chances of getting a job in the future. I also heard of a Facebook app that lets you search the web for pictures of someone based on their Facebook profile pictures, and since it's conceivable that there might at some point be nude pictures of me on the web (among possibly other things), I don't want pictures of me on Facebook to serve as a launching point for such searches.
So I want to completely eradicate my Facebook. I know I'm not up against a team of forensic investigators or anything, just people Googling me, but I'm not familiar with what sorts of tools they have available. I was never that popular on Facebook, so I seriously doubt that anyone reposted anything I posted. My plan is to overwrite all of my posts with innocuous data and then delete each and every one of them individually before closing my account. As for my profile pictures, I will have to modify them before deleting them. The only way I can think of to do this is to crop them so my face is cropped out.
I need your help in defending myself against the snooping of others. Will my current plan be enough? What kinds of tools do they have? What are they capable of? Can they recover my profile pictures after I've deleted them, since they're still on the server? What is the best way to erase my presence from Facebook?
AI: Your method appears, on face value, to be very thorough and should cover against most low to mid level snooping (like that done by prospective employers) but it does have some very large holes that are not easily closed. The largest of these holes being that Facebook is not the only one who holds the sensitive data. There are certainly copies of everything you have posted out there somewhere, some, like Google's cache, relatively easy to remove (a letter or email to Google proving its your property and asking them to remove it is usually enough), and others impossible to remove with anything short of a court order.
The level of cleansing you have to do depends greatly on your prospective employer. McDonald's has significantly lower standards than a Government job, obviously. Judging by your question, it seems that those steps will be sufficient and you will not need to employ someone to ensure the data is not recoverable (services like this do exist). This being said, you never know what scrutiny you might come under in the future, so it is best to be as thorough as possible removing that type of material (material that should never have been in the internet to begin with). |
H: COUNTIFS returns incorrect result when applied to the output of QUERY
In my spreadsheet the chart for Negative Feedback weekly pulls data from the Query sheet, but the logic doesn't work to separates negative feedback from positive feedback. The logic works fine on the non-queried tab Responses. Specifically, the command:
=Countifs(Responses!$B$2:$B$500, "221*", Responses!$E$2:$E$500, "<>"&"")
correctly returns 3, but:
=Countifs(Query!$B$2:$B$500, "221*", Query!$E$2:$E$500, "<>"&"")
returns 5 even though the data is the same. Query sheet is the result of applying QUERY to Responses.
There are five rows where B matches wildcard pattern 221*, but for two of them the column E is empty. The second criterion (nonempty cell in E) does not appear to work when applied to this output of QUERY.
AI: You are hitting some strange behavior of Sheets, quite possibly a bug. I will first describe a way to reproduce it, and then a way to avoid it.
To reproduce:
Put some text in cells A1 and A3, leaving A2 blank. In cell B1, enter =query(A1:A3, "select *"). The content of cells B1:B3 will now appear to be identical to A1:A3.
But B2 is not really blank. Specifically:
=isblank(B2) returns FALSE, while =isblank(A2) is TRUE
=istext(B2) returns TRUE, while =istext(A2) is FALSE
=counta(B1:B3) returns 3, while =counta(A1:A3) is 2.
=countif(B1:B3, "<>") returns 3, while =countif(A1:A3, "<>") is 2.
To avoid
Don't use countif or counta on the results of query (at least until this bug is fixed). As an alternative, use filter command to apply the criteria, and then counta to count the (nonempty) results. Thus, instead of
=Countifs(Query!$B$2:$B$500, "221*", Query!$E$2:$E$500, "<>")
use
=counta(filter(Query!$B$2:$B$500, regexmatch(Query!$B$2:$B$500, "^221")*len(Query!$E$2:$E$500)))
which is admittedly more complex but gets correct results. There are two filter criteria, which are imposed as logical AND by multiplication:
column B entry matches the regular expression ^221 (equivalent to wildcard pattern 221*)
column E entry has positive length -- this is a robust check that is not affected by the strange behavior of query.
Since in the filtered results, the column B is guaranteed to be nonempty, counta will return the number of all rows that match the filter.
An alternative, slightly shorter formula with the same result:
=sum(arrayformula(regexmatch(Query!$B$2:$B$500, "^221")*(len(Query!$E$2:$E$500)>0)))
This evaluates the two criteria as True/False, coerces them to 0-1 integers by multiplication, and sums the results. |
H: When did "plus" stop working in Google search?
When I search on Google and use + to indicate that a word must be on the page I'm searching, why do I get a bunch of results without that word?
AI: It was first noticed in October, 2011.
They changed that behavior shortly before Google+ launched. The idea is that the plus would indicate G+ content. This is borne out by the search operators help page. (Oddly enough, it's also used for blood types.)
The new way to "force" a word to be in the results is to enclose it in quotes.
When you put a word or phrase in quotes, the results will only include pages with the same words in the same order as the ones inside the quotes. Only use this if you're looking for an exact word or phrase, otherwise you'll exclude many helpful results by mistake.
Example: "imagine all the people" |
H: Search Google with a date/time range
I want to restrict Google search to a specific date/time range. How can this be done?
AI: I believe you are asking how to perform a Google search with a time value flag on the search.
This can be done by your program building its own search url. You likely already know that the searched string appears after the q= flag in the url. For time based searches you add the tbs=qdr: flag followed by the time period value you wish to use. Some of the possible values you can use are:
a for any time
n for **
Add a number after n to tell Google how many minutes (i.e. tbs=qdr:n15 for the last 15 minutes)
h for hour
Add a number after h to tell Google how many minutes (i.e. tbs=qdr:h3 for the last 3 hours)
d for day
w for week
m for month
y for year
Example: http://www.google.com/?gws_rd=ssl#q=querystring&tbs=qdr:d will search for querystring and return results that are dated in the last day.
You can also specify a date range using tbs=cdr:1,cd_min:xx/xx/xxxx,cd_max:xx/xx/xxxx. |
H: The function isblank returns True even though the range contains nonempty cells
I have a number of log sheets then a single sheet used to pool data from each individual log.
Example Log Sheet:
Data Sheet Example:
The data sheet counts the number of times the correct color is picked against the roll, then sorts it by room.
Formula for that is:
=IF(OR(ISBLANK(Sheet1!$B:$B),ISBLANK(Sheet1!$C:$C)),0,SUMPRODUCT(Sheet1!$A:$A=A2, Sheet1!$B:$B=Sheet1!$C:$C))
With Sheet1 changed to Sheet2 and Sheet3 for their respective tables.
The problem is the OR check will only correctly return true/false if the targeted log sheet has data on the same row that the count formula is on.
In the above example, each log sheet is identical with 10 rows of data including the header, then on the data sheet the OR check stops working at B11.
If data is added to row11 on Sheet2 then the OR check will work and the sumproduct will correctly count data on all rows including rows 1:10.
Then again on B12 of the data sheet, it requires data on row12 on the log sheet to work.
Link to Example Sheet
I don't know how to get around it. Happens even if I manually enter the specific row numbers.
Anyone have any ideas or know a way around it?
AI: The isblank function is intended for use with an individual cell; its behavior when applied to a range is not documented as far as I know. In your case, isblank($B:$B) returns True if it's placed in a row where B column is empty.
Use counta(...)>0 instead, like this:
=IF(COUNTA(Sheet1!$B:$B)*COUNTA(Sheet1!$C:$C)=0, 0, SUMPRODUCT(Sheet1!$A:$A=F2, Sheet1!$B:$B=Sheet1!$C:$C)) |
H: Why does Google Spreadsheet use days as unit of time when entering a number?
When using Google Spreadsheet today, I noticed that when entering a date as a simple number sequence (e.g., 151127), and choosing date as format, it ended up being a completely different date than the one intended (i.e. not 2015-11-27, but rather 2313-10-08).
After a bit of tinkering, I realized that each unit represented one (1) day from 1899-12-30, meaning that 151127 (onehundred-and-fifty-one-thousand-onehundred-and-twentyseven) is that many days from 1899-12-30.
My question is:
Is there a specific reason for using days as unit for this kind of date entry and, if so, what is it?
AI: The zero mark for date/time in Google Sheets is 12/30/1899 0:00:00, as you can see by entering 0 in a cell and formatting it as date/time. That said, sheets are mostly 1-based, so the idea here is that day 1 is the last day of 1899.
Spreadsheets are designed for office workers, not for programmers. In an office, time is measured in days more often than in seconds or milliseconds. Measuring time in days allows one to use, e.g., =A2+1 to get next day after the date specified in A2. Using =A2+86400 for the same purpose would not be as intuitive for the target audience.
For the same reason, the time refers to local timezone, not UTC. |
H: Conditionally substitute cell contents with Unicode characters
Is it possible to conditionally substitute a cells contents, with a Unicode character i.e. rather than colouring all '1' cells green, swap the '1' for another character instead?
Specifically, I want to exchange integers for 'Harvey Balls'.
For example, I have:
A | B | C | D
X | 1 | 2 | 1
Y | 2 | 4 | 1
Z | 3 | 2 | 4
I'd like the same table formatted as below (without duplication):
A | B | C | D
X | ◔ | ◕ | ◔
Y | ● | ● | ◔
X | ◕ | ◕ | ●
If it's any help, the substitute rule I have so far is: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(F11, "0", char(9675)),"1", char(9684)), "2", char(9681)), "3", char(9685)), "4", char(9679))
I've also added the above tests to a publicly availably Google spreadsheet.
I don't mind - but would like to avoid - a duplicate column or table. But the latter option (typing values in a second sheet, that update renders first sheet with unicode characters) seems to be the only option to me...
AI: This is similar in spirit to Convert all text to UPPERCASE in a Google Spreadsheet, so a similar script solution can be used. This script automatically replaces 0-4 by corresponding Harvey Balls in the spreadsheet to which it's bound. (It does not affect pre-existing cells, since it's triggered by edits.)
function onEdit(e) {
var n = parseInt(e.value, 10);
if (n == e.value && n >= 0 && n <= 4) {
e.range.setValue(['○', '◔', '◑', '◕', '●'][n]);
}
}
The check n == e.value is to avoid converting fractional values like 2.3.
One can also extend the condition with something like
&& SpreadsheetApp.getActiveSheet().getName() == 'MySheet'
to restrict the automatic replacement to a particular sheet. |
H: Putting outputs into github issues
I often need to add a stacktrace to issue. Manually adding spaces to pasted lines is not comfortable. How to do this other way than manually?
AI: You can surround code and other fixed-width content with three backticks in GitHub Flavoured Markdown like this:
```
stack trace here
```
The official name for it is called code fencing.
In addition, you can do syntax highlighting on code if necessary like this:
```js
console.log('This code will be highlighted properly on GitHub');
``` |
H: I can snooze Inbox by Gmail messages until "someday". When is that?
I can now snooze messages until "someday" but when does that day arrive? I'm afraid that it will either be a random day in the future or some other queue for me to (forget to) triage and neglect.
AI: Short answer: Never. It is just a queue that you'll need to review, eventually.
Long answer:
Quoted from Inbox Support Page
Choose the Someday option under Snooze for emails or reminders
that you might want to get back to, but aren't sure when. You can go
back through your Someday list later and decide what to do with them.
You can see everything in your Someday list by going to the main menu
Main menu and choosing Snoozed. The Someday section is toward the
bottom.
Your email or reminder will stay in Snoozed until you move it
yourself. You can mark it done, move it to your inbox with pin, or
choose a different snooze option. |
H: Google Spreadsheet Inconsistent Datetime Format
When we push date and time values to a google spreadsheet in the format d/m/Y H:i a (eg. 25/12/2015 1:43 pm) the date and time is displayed inconsistently, see below:
Any idea why the format is not consistent in google spreadsheets and how we can ensure it is?
AI: Apparently you have a bug in the code that is forming those datetime strings: it always puts "pm" at the end. There is no such time as "15:39 pm", so Google does not parse this as a date time value, treating it just as a string (hence, left-align).
To fix this, simply drop "pm" part, since you are evidently using 24-hour time rather than 12-hour. Better yet, use ISO formatting:
2015-11-13 15:39
which should be correctly parsed by Google Sheets independent of your locale. |
H: How do I shrink the space on the right of the Gmail window after turning off "Chat"?
When I turn off Chat, the space on the right side of my Gmail Window is blank. I have vertical split enabled and want the text to fill the blank space. How do I shrink the space on the right of the Gmail window after turning off "Chat"?
AI: The default location of the chat widget is at the left. In order to show it in the right, the user should enabled the lab "Chat on the right".
In order to get rid of the widgets right panel go to https://mail.google.com/mail/u/0/#settings/labs and disable the "Chat to the right" lab. Don't forget to click on the save button before leaving the labs settings page. |
H: Using FILTER or IMPORTRANGE to bring in and filter data from another spreadsheet
I want to bring in data from a separate sheet and filter it.
I can get IMPORTRANGE to work like this:
=IMPORTRANGE("URL","A:J)
But that doesn't filter. I can only get FILTER to work in the same sheet like this:
=FILTER(Sheet1!A:J, C:C="Yes")
Is there anyway to bring these two functions together and FILTER data from another spreadsheet into a new sheet, based on column C info?
The reason for doing this is to then use the auto notification setting, so whenever someone enters "yes" into the sheet I can be notified.
AI: Use query instead of filter for this:
=query(importrange("URL","A:J"), "select * where Col3 = 'Yes'")
The command query can refer to the columns of the array that it receives in an abstract way: Col1, Col2, and so forth, without being tied to their placement within the sheet. So, it filters the thing "in the cloud" and then puts the result into the sheet.
In contrast, filter can only refer to columns by the cell names like C:C. This means that the array must first be placed into the sheet, and then be filtered in place according to its own values. This runs into circular dependency. |
H: My Facebook cover photo is duplicated in an album. Can I merge the two pictures?
I uploaded a photo for my Facebook cover photo, but did not realize that the same photo had previously been uploaded in an album. Facebook didn't pick up on this, and now some people have liked the one in the album, while the majority have liked the cover photo. It is not a big problem, but I was wondering if I could merge the two so that the 'likes' are merged as well.
AI: As of now there is no feature available to merge photos.
You can delete the duplicate pic but you will loss the likes and comments. |
H: How can I become an administrator of a Facebook page when the current admin ignores me?
I currently run a society at my university, which has at least two Facebook pages. I would like to gain access to the administrative privileges for the former page because it has more 'likes'. I have tried messaging the administrator of the former Facebook page a number of times, but she has never replied to my Facebook messages. I have also reported the problem to Facebook. They simply replied:
Your feedback will be used to improve Facebook. Thanks for taking the time to make a report.
Is there any way in which I can gain control over the old page? The pages in question are: old page and new: https://www.facebook.com/unasa.blueweek/ {now defunct}.
AI: No, there isn't any way for you to do this. If there was a way, then I could take over the page too, and you wouldn't like that. |
H: Formula to use in Google sheets to count all cells containing specific texts
Here is a link to a sample spreadsheet:
https://docs.google.com/spreadsheets/d/1LcfqPxsnQGEVZKd2imM1WPYRvgbZBiEQ18mHVd3znjE/edit?usp=sharing
What I want to do is count all unique values in column C (ID) and all values in column A (initial email) in the month of November.
This is the best I could come up with:
=COUNTUNIQUE(FILTER(Sample!C2:C,Sample!A2:A="Mon, Nov. 23, 2015 2PM"))
But it would only count one specific date in November so I would have to also count all the other dates and then total them. Is there a way for the formula to count all unique values in column C and count all values in Column A containing "Nov"?
To add to that, I also need to count all values in Column F (Response category), containing unique ID for the month of November.
AI: You can filted by regexmatch instead of equality.
=countunique(filter(Sample!C2:C, regexmatch(Sample!A2:A, "Nov")))
Matching the regular expression "Nov" simply means containing "Nov" somewhere in the string. |
H: 550 error when trying to set up Gmail to send mail as Hotmail
I'm trying to configure my Gmail account so that I can use it to send mail as my Microsoft address (let's say it's example@hotmail.com), but I'm getting a weird error.
I've already gone into Gmail's Settings > Accounts and Import and added the Hotmail address under the "Send mail as" section, using server smtp.live.com, on port 587 with TLS. Gmail is now asking me to verify that I own the Hotmail address via an e-mailed code.
Unfortunately, every automatic verification mail that Gmail sends to example@hotmail.com results in this:
Delivery to the following recipient failed permanently:
example@hotmail.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain hotmail.com by mx4.hotmail.com. [65.55.92.184].
The error that the other server returned was:
550 Requested action not taken: mailbox unavailable
----- Message suppressed -----
The exact Hotmail server varies but the message is otherwise the same.
Some quick searching shows that a 550 error usually results when an e-mail address is entirely invalid, as would happen if the account didn't exist. However, I can log into Hotmail as example@hotmail.com and when I manually type up an e-mail in Gmail and send it to example@hotmail.com, it goes through just fine.
What can I do to finish setting up this mail alias?
AI: Well, I don't know why Gmail wants to send a test message to anyone, the only thing I had to do to prove myself the owner of the account was to provide the correct password. If you followed http://windows.microsoft.com/en-us/windows/outlook/send-receive-from-app, and set up the smpt as smtp-mail.outlook.com, and can send mails using the "From" selector, I wouldn't worry about the failed "test". |
H: How to concatenate "1 " in front of many cells at once on a Google Sheets doc?
I am trying to concatenate many cells of a Google Sheets with "1 " in front of every cell. There are 360 cells so changing each individually would be a difficult task.
AI: For a one-time replacement like this, an easy thing to do is to carry out the computation elsewhere on the sheet (or in another sheet), and then copy-paste the values back in.
Put the formula ="1 "&A1 somewhere.
Extend it to a large enough range so that it processes all of your data.
Cut the results: CtrlX or its equivalent on Mac.
Paste values only back to the original range: CtrlShiftV or its equivalent. |
H: Is it possible to find all articles of a given category which have quality issue templates?
For example, I would like to find all articles in [[Kategorie:Maschinelles_Lernen]] which have issues. One issue are missing sources. Articles with this kind of issue are in Kategorie:Wikipedia:Belege fehlen.
There is at least one in both (Global Network of Dreams), however, when I use catscan2 it seems not to find it.
How can I get a list of all Wikpedia articles within [[Kategorie:Maschinelles_Lernen]] which have obvious issues?
AI: By using the parameter incategory in the searchbox you can do it, but you have to do it for each combination of the issues you are looking for. This will be solving your example:
https://de.wikipedia.org/w/index.php?search=incategory%3A%22Maschinelles+Lernen%22+incategory%3A%22Wikipedia%3ABelege+fehlen%22&title=Spezial%3ASuche&go=G%C3%A5+till
What I actually typed in the search box was:
incategory:"Maschinelles Lernen" incategory:"Wikipedia:Belege fehlen" |
H: Is there a way to specify multiple conditions for "Go to section" feature in Google Forms?
I'm learning to use Google Forms to create a survey questionnaire, whose skip patterns of some variables need multiple conditions. For example:
Question 1: When did you have veggie yesterday?
Answers: Breakfast, Lunch, Dinner.
Then a bunch of questions. Next,
Question 9: What veggie did you take yesterday?
Answers: Spinach, Lettuce, Else.
Now say if Question 9 = Spinach and Question 1 = Breakfast then go to Question 10 (e.g., How much did you take?). If Question 9 = Dinner and Question 1 = Lettuce then jump to Question 11 (e.g., Did you like it?)
It seems to me that Google Forms only allow specifying one condition in "Go to section" (i.e., skip pattern). Is there any way to specify multiple conditions for this feature? If it's not available, do you know if there's an alternative platform that allows such thing?
I put these questions quite apart since there are other questions between them (and it's not really optimal to arrange otherwise, e.g., putting the two next to each other). So this sort of double-criteria is considered to come into effect when the latter question is asked.
AI: You are right, Google Forms only allow to specify one condition in the "Go to section".
One alternative is to use several forms instead of only one. This way you could use the onSubmmit event to trigger a script that manage the question flow in order to apply complex rules.
References
Control navigation to sections of a form - Google Docs Help
Extend Google Docs, Sheets, and Forms with Apps Script - Google Docs Help |
H: Terminal not showing in Koding
I'm running a VM on Koding, and my terminal is missing in action. How can I restore the hero to its glory?
AI: So, it turns out when you click this top pane here:
You can open up a new terminal window, And then drag it below to the bottom pane so you can see both the code and the VM at the same time! |
H: How to get sums by group, and output only those, where sum is not equal to 0?
In Google Sheets, I have the following data:
| A | B
1 | foo | 20
2 | bar | 50
3 | baz | -40
5 | bar | -50
4 | foo | 100
6 | baz | 60
Currenly, I'm using this query formula:
=QUERY(index(A2:B1000);"select A, sum(B) where A is not null and B is not null group by A order by sum(B) desc";)
But it outputs values, where the sum of B is equal to 0.
So desired output would be:
| A | B
1 | foo | 120
2 | baz | 20
How can I achieve that?
Also, is there a better way than A2:B1000 for selecting the whole range (except the first row)?
AI: Main point
You can't filter by the sum within the query that forms that sum. But you can run another query on the output of the first one. Like this:
=query(query(....), "select * where Col2 <> 0")
Other remarks
I don't see the need for index command here.
Instead of A2:B1000, use A2:B to capture all rows to the bottom of the sheet.
It is better to include the header row in the queried range, designating it as a header with the third parameter (number of queried rows). That is, query(A1:B, "select...", 1) is preferable to query(A2:B, "select..."). When you don't provide the third parameter, the command guesses whether the top row is header or data; and it will sometimes guess wrong.
I don't think you need "and B is not null", as null values will be ignored by the sum anyway.
So, my version of the command is
=query(query(A1:B, "select A, sum(B) where A is not null group by A order by sum(B) desc", 1), "select * where Col2 <> 0", 1) |
H: How do get data from a previous row when a different column matches?
I'm using Google sheets and trying to find a prior service date for each location. I'd like to have a result look like the below. I already have data filled in for column A and B.
What formula should I use for column C?
COLUMN A COLUMN B COLUMN C
DATE LOCATION PRIOR SERVICE DATE
10/21/2015 Bar & Grill
11/12/2015 Bar & Grill 10/21/2015
11/24/2015 Bar & Grill 11/12/2015
7/16/2015 Asian Restaurant
7/31/2015 Asian Restaurant 7/16/2015
8/12/2015 Asian Restaurant 7/31/2015
7/16/2015 Bistro
7/31/2015 Bistro 7/16/2015
8/12/2015 Bistro 7/31/2015
10/28/2015 Drive In
11/9/2015 Drive In 10/28/2015
11/24/2015 Drive In 11/9/2015
AI: You can filter column A by the location name, keep only the dates preceding the one in the current row, and take the maximum of those. Like this:
=iferror(max(filter(A$2:A, B$2:B=B2, A$2:A<A2)))
The formula shown is for the cell C2; it can be copied to the rest of the C columns.
filter keeps only the dates prior to the current ones, where property name matches.
max find the maximal (latest) of those
iferror returns a blank (instead of an ugly #N/A error) when there is no prior date.
Be sure to format the columns A and C as dates. |
H: Why can't I up vote/downvote some comments on YouTube?
Usually on YouTube there are top comments that you can vote, and comments under these that can't be voted up or down.
For example I go on this link while I'm connected to YouTube:
https://www.youtube.com/watch?v=FSfDzuTLhPU
I see the thumbs up / down for the first 40 comments then the 41st and below have no thumbs up/down anymore.
Why is this?
AI: This is probably due to the comment system overhaul that happened around the end of September 2013.
An NBC News article mentions this:
The new comment system is in effect now, and you can check it out at any YouTube video. The old comments are still visible, but are trapped in stasis: You can't reply to or rate them. A YouTube representative told NBC News in an email that the the team is "looking into" adding replies or ranking to the old comments, but there's no guarantee.
So with that you'll note that any comment left before the end of 2013 will mostly likely no longer be something you can vote up or down on. |
H: Check Google Form entry for duplicate answers
I want to make a new form where I ask people about their "top 15" within a list of elements. I have searched a lot, but I couldn't find anything. I decided to just make 15 questions, "what's your 1st?", "what's your 2nd?", etc.
Is there a way to check if the person didn't have duplicate answers?
Or is there a better way to do what I'm trying to accomplish?
AI: You can design a Google form with this functionality directly in the form. Use a multiple choice grid with options "require 1 response per row" and "limit to one response per column". Example.
This would work better for a poll with fewer options; the fixed width of Google Forms is an issue here. Unfortunately, this issue will only get worse with
new Google forms: example.
Otherwise, there is no way to enforce distinct answers to separate questions within a form. You can use a script to detect duplicates in your data (if it goes to a spreadsheet), but this would happen after the form is already submitted, i.e., too late.
Two suggestions:
For this type of survey you'd be better off on another platform. E.g., SurveyMonkey offers ranking questions where users reorder the given options (possibly with drag-and-drop). This is a more natural thing to do than being asked about 1st, 2nd, 3rd... and realizing by the end of selection that you overlooked an option you actually like a lot and now you have to redo all the previous selections. With SurveyMonkey you'd simply take that option and drag it to the top.
Choosing and ranking 15 items is a lot of work, and you're going to get a lot of noise in your data from people who will be too tired to think much about their replies. |
H: Tumblr links showing up on blog's theme even when they should be off
I recently (maybe about 3-4 days ago) saw that my tumblr blog now contains floating buttons (or a box in mobile) with tumblr promoting their website/app. The thing is, you can change this setting in your theme settings. But it still is in the off position and the links do not go away.
I tried turning it on and off and keeping it on any position for more than a day and every time it gives the same result - the links are still being shown.
I don't know if this has anything to do with it (I'm fresh out of ideas), but my blog is a secondary blog, is over two years old, has 10k+ followers and I flagged it as an adult-orientated (the content is slightly suggestive and would probably be not fit for children). My so called primary blog (that I don't actually use) has the same settings yet the links do not show.
As you can see from the small image above, those buttons overlap the design and in the mobile version it attracts too much attention. That's why I want to remove them.
Edit:
It is possible to hide those buttons with CSS on desktop
.tmblr-iframe {
display: none;
}
But on smartphones while the banner is hidden, it still occupies space as there's probably a javascript code that adds that space on load.
While this might be better than nothing, it's still not the correct way (and the worst part is that it still generates an empty space on smartphones).
I forgot to mention this, but doing a hard refresh or clearing your cache completely didn't help me though I know someone who's cache was the problem. In my situation, four different devices would produce the same bug.
AI: I think it was all on the tumblr's technical side of things. It was neither my custom theme nor the settings that were affecting this. Contacting the tumblr's support fixed my issue (I didn't receive a response from tumblr's support about the success of fixing the issue, but after submitting my issue and one reply later, it seems to be fixed).
If any of you have the same issue, I guess the only way is to contact the tumblr's support as there is nothing you can do about it on your end. |
H: Organising Google Drive storage for a family with multiple accounts
What are the best practises for organising Google Drive so that documents stored on there can be easily shared between myself and my wife?
We both have Google accounts, and both use Google Drive already, but I am about to start scanning into PDF a lot of paper documents, which I would also like to store on Google Drive.
How do I make sure that these documents are indexed, searchable and accessible for our two Google accounts?
Should I create a folder structure in my account and share it with my wife, or is it better to create a new Google account exclusively for these documents and share its contents with both 'real' accounts? Obviously I want this storage to continue even if I were to pass away for example.
If I create a special account, how do Google react to this? Do they react differently if I pay for storage?
AI: My suggestion (as there are many possible ways to do this):
Create a 'family' account and store all documents, etc. there. Then, share those documents with your and your wife's accounts. This way the account can be used as a backup and you can give the password to a lawyer, next-of-kin, etc. so that they have access in case anything were to happen to you or your wife (this way they could access important documents like wills, and trusts but not personal documents you might not want them seeing). |
H: Does changing the video quality on YouTube impact audio quality?
Sometimes I'll find a really awesome song on YouTube but it will default to HD video playback which constantly buffers on my slow internet connection. All I care about is the audio quality, not the video quality, so can I lower the video quality to 240p without sacrificing audio quality?
AI: Generally as the video quality, size, and codec is changed, the audio is also different that is used for that video data rate. The audios are often relative in size to the video.
The amount of data used for the audio ranges from barely usable for music at all, to very nice, and varies depending on the video codec used and (of course) the audio codec.
There are charts on the Wikipedia page of YouTube which are mostly up to date, you could use that to find a balance.
Can you select a low video resolution, without sacrificing audio? For the most part: no, they aren't going to make tiny videos with audio data that is larger than the video. It also depends on more than the "resolution" as there are different methods used. Video codecs that are (more often) standardly used with specific audio codecs. Audio codecs that use different compression methods, and "sound good" at different data rates (ex vorbis). |
H: How do I make a Google Sheets pivot table with a custom formula per row?
I have a Google Survey/Spreadsheet. It simply collects some data on therapists we have and the patient satisfaction. I want to make a pivot table that summarizes this data so we can compare the therapists. I put the therapist name as the row and nothing as the column. Then, I put in a few values: count of timestamp (i.e., count how many surveys for each therapist).
But I need some custom calculations and I don't know how to do them. For example, two survey questions are "have you had a massage" and "was this massage better than prior ones". I want to calculate, for each therapist, the % of their patients that said they had a better massage. I can calculate, for each therapist, the number that said they had a prior massage and the number that said it was better. But then I have to manually create another column that divides the two to calculate a percentage, and its just the percentage I care about. It's messy.
AI: As a pre-processing step, I suggest representing "yes" answers as 1 and "no" as 0; this makes aggregation easier.
Then in a pivot table, you can simply create a calculated field =sum(better)/sum(had), assuming "had" and "better" are your column headers.
However, I don't see the need for pivot table report when you are essentially using it as a query. Sorting within a pivot table report can be problematic, and in any case doesn't happen automatically.
Here is a query solution, again assuming that the responses are recorded as 0-1 numbers. It automatically sorts by ratio (better)/(had prior), in descending order.
=query(A:C, "select A, sum(C)/sum(B) group by A order by sum(C)/sum(B) desc", 1)
The last argument makes it explicit that the input data hasa= a header row.
And here is a more elaborate version, with labels on columns.
=query(A:C, "select A, sum(C)/sum(B) group by A order by sum(C)/sum(B) desc label A 'Name', sum(C)/sum(B) 'Ratio'", 1) |
H: Change language of Google websites?
Google have set my language to dutch but I hate it for a million reasons and one of these is when something is wrong I could get a lot more help if I get feedback from Google in English. Is there a way to set my language to english and preferably keep it there.
I am talking about sites like google+, Developer Console, Play store (Somehow this is in english), Drive, etc.
AI: You can change the language for all of Google's products by setting your preferred language at this URL:
https://myaccount.google.com/u/0/language
To change the display language for Google Accounts, follow these steps:
Sign in to My Account.
In the "Account preferences" section, select Language & Input Tools.
Choose Language
To change your language, select edit Edit .
Choose your language from the dropdown box and select Ok.
Source: Google FAQ |
H: Cannot complete steps in Gmail's 'Add another email address you own' feature
Clicking Gmail -> Settings -> Accounts and Import -> Add another email address you own option pops up the following dialog box:
No matter the options I select or domain I use, I cannot get past this page. Clicking on "Next Step" does nothing.
This is in vanilla Internet Explorer 11 on Windows 7 64.
AI: It's most likely a JavaScript error. Everything else should give a proper error message, while JavaScript errors tend to just silently fail in the background, noticeable only in the developer consoles of the browsers.
Using an other browser than Internet Explorer should solve the problem: for example Chrome, Firefox or maybe even Edge should be fine. |
H: Force a public reader on Google Drive to click through a license agreement
Short of writing an entire web app, is there a way in Google Drive to present a custom license to the user (reader) and force a click-thru where Accept=access, and Not Accept= no access?
I have data that I'd like to share in Google Drive Fusion Tables (or sheets) and make it so that it can be shared only after the user accepts a license with particular language in it.
AI: Any kind of document in Google Drive can be accessed either
by anyone with a link to the document
by a specific set of users
(for Apps domains) by the users of the domain
None of this is contingent on the acceptance of a license. To make your license work for real, you indeed need a web app (on the Apps Script platform) that would require the user to log in, and then edit the document by adding the user to the list of viewers of that document (i.e., item 2 above).
A cheap alternative is to only show the link to a document after the user accepts the terms. This can be done easily with a Google form: here is an example. The obvious drawback is that nothing stops the user who accepted the terms from copying the URL and sending it to others, or posting it on the web, etc. Those who follow that URL will get to the document directly. |
H: Why is a tweet of mine no longer showing on hashtag pages?
I tweeted a tweet and then checked the hashtag pages for it and saw it there. On the next day - it's only on one of them. And if I'm not logged in - it's not shown there either. Why?
AI: This could be because the default filter/sort on Twitter search is "Top" and your tweet may not have enough faves/hearts and/or retweets to bring it up to the top of the listings.
It should show if you sort by "Live" which would show them chronologically (backward - newest at top) and not based on popularity (as weighted by the retweets and favourites/hearts mentioned). |
H: Is there a way to check data entry consistency in Google Forms this way?
In the questionnaire I'm working with, there's a question like this:
What was your facility's total revenue last year?
And a bunch of following questions asking about sources of that revenue, e.g.:
Of which, how much came from sales?
Of which, how much came from services?
etc.
Is there a way in Google Forms to ensure data entry consistency for questions like this? For example, at the end of entry of individual sources of revenue, if those sources don't add up to be equal to total revenue, there will be a pop-up message, e.g., "Data entry inconsistency. Please ensure that individual sources add up to be equal to the total revenue." The respondents can choose to "Return" to start again from the Total revenue field, or to "Proceed anyway", acknowledging that there's some issue with their data quality.
AI: Google Forms doesn't incluye a way to validate consistency across several responses before submitting the form. |
H: How to customise the "Snooze Until" times in Google Inbox?
Is it possible to customise (add, delete, change) the "Snooze until..." times in Google Inbox?
AI: You can change the definitions for Morning, Afternoon, and Evening.
Open the "hamburger" menu and scroll all the way to the bottom. Click "Settings".
Choose the "Snooze" tab.
Change the times to what you want.
Unfortunately, you can't change "Later today", "Tomorrow", or "Next week", except insofar as "Later today" is whatever time (Morning, Afternoon, Evening) is coming up next, "Tomorrow" is your Morning time the next day, and "Next week" is the Morning time a week from now.
If that's a feature that you think Inbox needs, you should use the "Feedback" tool to let Google know. |
H: How to recover a Yahoo account?
Someone was hacked, the hacker changed the password, we tried resetting it. Yahoo says:
Looks like we can't recover your account online. Please visit our help
site to get back in.
What now? We submitted this form, anything else that can be done? And how long does it take for Yahoo to reply to our request?
AI: No need of doing anything else. Hopefully they will respond. Time they will take from 24 hours to 1 week depends on query. |
H: How to report a scam Gmail acount?
A Yahoo account was hacked. Let's assume it was called example@yahoo.com and that the victim also has another email example@gmail.com.
The guy who hacked the Yahoo email ID stole the contact list, and created examplee@gmail.com and began sending scam email to the contact list. What to do about it?
To clarify:
Say my email is lynob@gmail.com, a hacker created lynobb@gmail.com, and began sending scams to my contacts.
I do know the email account that the hacker created, it's a Gmail account, but can't report phishing or spam cause he didn't send me a copy (reporting emails in Gmail is only an option if you receive a spam email. You cannot report a spam email that never contacted you).
And my contacts won't report him cause they think it's me, they won't notice lynobb@gmail.com, they won't notice the difference, also the hacker is using my profile picture as a profile picture for the scam Gmail.
AI: You (as a victim) can't do anything about this because you don't know what email address hacker is using to send scam emails (it might be Gmail, Yahoo, Rediff anything with anyname).
What you can do is if you’re getting unwanted emails, you can block the sender, unsubscribe from the sender, or report the message depending on the type of email.
Other people also can follow the same.
In Gmail to report about unwanted email:
Open Gmail.
Open the email you'd like to report.
At the top right of the message next to the Reply button, click the down arrow.
Select Report Phishing.
For more information: Block unwanted emails. |
H: Is there any way of sharing ownership of a Google folder
I have a folder which contains documents that a fair number of people need to be able to edit. I'm the owner of the folder, and I have set it up so that only the owner can add people to the folder after we had a couple of instances where 'helpful' colleagues have given people editing rights without checking if they should have them.
I'm now going away on hols and have other jobs, so ideally I would like to share the ownership of the folder with a colleague so that people can be added while I'm away. I can't give ownership to a group, and I can't find a way of setting more than one owner of a folder.
Has anyone found a way of sharing ownership with other people? Or is that just something that can't be done?
AI: At this time Google Drive sharing settings only allows one owner and it should be a user account. The alternative is to create a role account and assign the ownership of files and folders to that account.
A role account is a regular account created for cases where is required to share the password with someone or something. In this case, the password could be shared with a substitute during the absences of the person in charge.
Bear in mind that the Google accounts require some "person information" like given name, surname and birthday. For the first two use something descriptive, for the last use a date very close to the birthday of person in charge otherwise the account could be blocked due to age requirements. |
H: Why can't I attach new AWS volume to existing AWS instance?
I'm trying to expand the storage on an AWS EBS volume for which I'm following this "Expanding the Storage Space of an EBS Volume on Linux" guide.
I created a snapshot of my volume and created a new volume out of that. And I'm now trying to attach my newly created volume to my existing instance.
The instance I want to attach it to looks like this:
but when I type Mongo or i-b8ed in the instance field of the attach volume wizard I get no results:
I'm sure I'm in the same Availability Zone (Frankfurt) so I really don't know why it can't find the Instance.
Does anybody know what I'm doing wrong here?
AI: According to your screenshot your instance belongs to
eu-central-1b
and your volume is in different zone
eu-central-1a
that's why it's not able to attach the volume to the instance. |
H: Can't get markdown to work on wordpress.com
I switched to Wordpress as Blogger was mangling my markup (some bug spewing <br> everywhere).
Now I noticed Wordpress supports markdown, which is even better.
I enabled Markdown following the Wordpress support page. Yet markdown formatting isn't working for me. E.g. if I type *foo* in the HTML tab, I see "*foo*" in the Visual tab (and no italics).
Note that I had to go into "WP admin", below "Settings" in the menu, and then go to the "Settings" menu there, to enable markdown.
AI: The "Visual" tab doesn't expand Markdown to HTML. Use the Preview button instead. |
H: How do I add Frameworks and Extensions to the new JSFiddle?
So it looks like JSFiddle's design has been updated. while i normally don't care in the old version there was a drop down under Frameworks and Extensions allowing you to select what external libraries you wanted such as one of many versions of Jquery. in this new version of the site this seems to have been removed.
looking at the docs page it appears to be explaining the old version so the Frameworks and Extensions is no longer valid
Now i am wondering how does one add Frameworks and Extensions to a JSFiddle now that the entire section is gone?
AI: After playing around with a fiddles to see when something is private and when something is public i found the HTML/CSS/Javascript labels in the top-right corners are actually buttons.
By clicking on the Javascript button you can see the Frameworks and Extensions section which used to be on the left side of the screen |
H: Searching a value between two columns on a reference sheet
I have my main sheet that looks like this:
The Compromise column (Column F) bases its value on another sheet. To compute its value, we check if the value of the Basic Tax (Column B) falls equal or between the first two columns of the reference sheet:
I can actually perform a simple VLOOKUP() function, but how can I implement that referencing to a range instead of a singe column?
How can I derive the value for the Compromise column?
AI: vlookup is exactly the right tool here. With is_sorted set to TRUE, it finds the largest number that is less than or equal to the search key. Specifically, the formula
=vlookup(B2, ReferenceSheet!A$4:C, 3, True)
returns the 3rd column entry of the range (ReferenceSheet!A$4:C) namely the value in C column.
The only issue here is the equality case. If the search key is exactly 500.00, then vlookup will match row 5 and return 400, which is not what you want. (This would not be a problem if the lower end of every range was inclusive, which is often the case in tax tables).
There are two solutions for the equality case issue:
Subtract 0.01 (or 0.0000001) from the basic tax value prior to comparison, to bump the borderline case to the previous bracket. That is, do =vlookup(B2-0.01, ReferenceSheet!A$4:C, 3, True)
Change the tax table so that the lower end of every range is inclusive. |
H: Find the number of values that satisfy a condition and also appear in another table
What I have:
Table 1:
Name | 1 | 2
Peter | Agree | Disagree
So Row 1 will be Name followed by the number 1 - 80. Row 2 will be the name followed by either "Agree" or "Disagree" depending on an answer the user gives on a form.
Example:
Table 2:
Title1 | Title2 | Title3 | Title4
1 | 2 | 3 | 4
5 | 6 | 7 | 8
So Row one is a title row and each title has a column of numbers.
Example:
What I want:
I want to be able to count the number of times a person has put the word "Agree" in table 1 but only for the numbers that appear in each title column in table 2.
Example: If a person put the word "Agree" in table 1 under the numbers 1, 3 and 5, then the total for Title1 in table 2 would be 2 where Title2 would be 0, Title3 would be 1, and Title4 would be 0.
Example:
You can see that the last row of each column is how many of the numbers in the Column have the word "Agree" in the other table under the same number.
What I have tried:
So far I am trying to get this working with a COUNTIFS formula. The issue here lies with the fact that I am trying to use a range as BOTH the Criteria Range and the Criteria.
So, to get around this, I followed the advice given in This Question and came up with the following:
=sum(arrayformula(COUNTIF('Form responses 1'!C1:CD1,C2:C21)))
This works but obviously doesn't take in to consideration the second part of the criteria. My obvious next thought was to try the following:
=SUMPRODUCT(COUNTIFS('Form responses 1'!C1:CD1,C2:C21,'Form responses 1'!C2:CD2,"Agree"))
The issue here is that for some reason is always returns 0 as it doesn't seem to be reading the second criteria.
Question:
Is there a way to have a COUNTIFS formula where both the criteria range and the criteria of the 1 check can be ranges and the the second check can be a standard criteria range and a word as the criteria?
AI: To put it simply, you want to find the size of the intersection of two arrays. Taking the intersection is discussed here. Adapting it to your case results in the following:
=counta(filter('Form responses 1'!C1:O1, 'Form responses 1'!C2:O2="Agree", match('Form responses 1'!C1:O1, C2:C21, 0)))
The filter command applies the required criteria, then counta counts the values that passed the filter. |
H: Need to change a value within a function for each row in a Google Sheet
In Google Sheets
=ArrayFormula(row(1:100))
fills 100 columns with numbers 1-100.
=ImportJSON("http://www.domain.com/sample1.json", "")
inserts my JSON data keys and values into corresponding rows.
How can I set this up so that for each column, I change the number for the JSON file?
I tried combining these two functions but it just errors.
=ArrayFormula(ImportJSON("http://www.domain.com/sample&row(1:100)&.json", ""))
Now this works:
=ArrayFormula(row(1:100)&ImportJSON("http://www.domain.com/sample1.json", ""))
but it's not putting the number in the desired spot. It's just adding it before each cell.
AI: I think you forgot to separate the first part of the url, the formula and the second part with quotations, deeming them as strings, note there are quotes around "http://www.domain.com/sample" then a function insertion then the rest of the string ".json"
=arrayformula("http://www.domain.com/sample"&row(1:100)&".json") |
H: Auto-update a column based on another column
Given that I have the following data in sheet1:
| id | red |
|--------------------------------------|-----|
| e6282843-efc0-44f6-8989-028153adc317 | yes |
| 014c7590-5c3f-4260-b251-5098dd825688 | |
| 6a037de4-0dc6-4e67-966b-7d6187b9d93b | yes |
I know that by entering =sheet1!A2 in sheet2 column I can grab the data and then dragging the formula will expand it as far as I want. But is there a better to sync two columns without specifying the range?
Basically, I want a column to be cloned and updated in another sheet without expanding the formula. Every time something is added to first column it should reflect on the second column.
AI: This sounds like a job for ARRAYFORMULA. Enter this in your Sheet 2 cell, where you want the values copied to:
=ARRAYFORMULA('Sheet 1'!A2:B)
When you enter new values in Sheet 1, the new values will automatically be present in Sheet 2. Only the A2:B range is included.
Feel free to copy this spreadsheet that I set up to test, and check the documentation for ARRAYFORMULA. |
H: How can I delete multiple Facebook Posts on my timeline?
I'm trying to clean my Facebook profile's Timeline, but I don't like the idea of going through them all posts and delete one by one.
Is there any tool, option or something that I'm missing, that allows you to delete multiple posts simultaneously?
Note: I'm talking about Timeline posts, not a Facebook Page as I found this article mentioning that
AI: No. There is no option to delete multiple post simultaneously.
The only option is one post at a time either using the dropdown menu for a post on your Timeline (click the 'V' in the upper right corner of the post) or in your Activity Log click the pencil icon to the right of an item. |
H: Facebook working app to manage friendlist
is there any frindlist manager for facebook. I need to manage some friend to hide my postures and about me.
AI: I don't know about any Facebook friendlist manager. But if you want hide any section from your few friends from your timeline. Just set audience as Custom.
Go to your timeline.
Click on About.
Click on the section you want to edit from left hand side and select the subsection from right hand side, click on pencil symbol to edit.
Now select audience as Custom and then Specific People or Lists...
You will see Don't share this with These people or lists option, write your friends name (or lists) with whom you don't want share information about you. |
H: eBay - are buyer and seller reputation the same?
I googled, but can't find a definitive answer.
I have a 1k+ reputation as an eBay buyer.
Now I want to try to get back some of the cash that I have sent by selling.
If I do, will prospective buyers looking at my first sales listing see a reputation of 1k+ or zer0?
AI: Yes, you have a single reputation score. So, your sales listing will show a 1k+ reputation score.
HOWEVER, if someone clicks on your reputation score they can see the full breakdown:
Feedback as a seller (under which it will state "0 Feedback received")
Feedback as a buyer
All Feedback
Feedback left for others
As well as the positive, neutral and negative feedback over the last 1, 6 and 12 months. |
H: How can someone answer my survey form or Google form without creating their own Google account?
How can someone answer my survey form or Google form without creating their own Google account? They told me that they can't open my form because they didn't have an account.
AI: Normally, everyone can fill out a Google form; they do not need an account.
However, if you selected the option "Can submit only 1 response" in your Google form, that will require the users to login. So, if it's necessary to allow anonymous users, you should uncheck that option.
Also, it's a good idea to test the form yourself, by using a browser session in which you are not logged in to Google. You can do this using a private/incognito window of your browser (for example, in Chrome pressing Ctrl-Shift-N opens such a window). It's highly recommended to test your form in this way before sending out the link. |
H: How can I add more than 3 tags to a linkedIn post?
I have recently written a LinkedIn post that I thought was worth having more than three tags, but when I tried to add them I got this:
The message isn't clear, does it mean:
I can add 3 tags each time I update this post? (I tried, and no)
There's a limit of 3 tags per post (then their wording is incorrect)
I need to perform mysterious actions to be able to add more than 3 tags to a post
I googled around, but no success.
AI: This message means you can have only 3 tags for a post. That means 3 tags per post.
LinkedIn help page says:
You can add up to 3 tags to each long-form post.
Available tags include:
Fields, such as Project Management
Skills, such as Javascript
Industries, such as Retail
For more information -> Tagging Long-Form Posts - Overview
We don’t currently support the function of creating your own tags, and can’t take requests for additional tags. |
H: How do I get data from one Google Spreadsheets "A" into Spreadsheets "B"?
How do I get data from one Google spreadsheet A into spreadsheet B so
when Spreadsheet A is modified, then Spreadsheet B also changes automatically?
A formula using QUERY() and IMPORTRANGE() functions was tried, but it didn't return the expected results. For example, I have two spreadsheets Documents DocA and DocB:
A B C
1 uid serial_no ph
2 356307042189331 3123958 912345678900
3 356307046077540 3966305 923451245123
4 356307046092465 3966407 978458784578
5 356307046098678 3970932 971548745125
In DocB
A B
1 serial_no uid
2 3123958
3 3284728
4 3284655
I am trying to get A2 from DocA into B2 in DocB with the following formula
=QUERY(
ImportRange("[key]","Sheet1!A:C"),
"Select Col1, Col2 where Col1='"&A2&"'",
1
)
I get uid serial_no in Cell B2 instead of the value in Cell A2 of DocA.
AI: Use the ImportRange function (documentation):
=IMPORTRANGE("spreadsheet key"; "Range")
See these example spreadsheets (A and B), which you may copy to your own Google Drive (File → Copy). |
H: Using Query with column headers instead of column letters
I have a formula that I use to dynamically get the column letter for a 1-Dimensional array that are the column headers of a sheet. In order to use QUERY() with column names instead of letters.
SUBSTITUTE(ADDRESS(1,MATCH("Weight", Headers, 0),4), "1", "")
The syntax takes up a fair bit of space and can be difficult on the eyes when the queries get long. An example:
=QUERY(A3:F13, "select "&SUBSTITUTE(ADDRESS(1,MATCH("Type", Headers, 0),4), "1", "")&" where ("&SUBSTITUTE(ADDRESS(1,MATCH("Version", Headers, 0),4), "1", "")&" = 'Version 1') and ("&SUBSTITUTE(ADDRESS(1,MATCH("Type", Headers, 0),4), "1", "")&" <> 'Type')")
Does the same as
=QUERY(A3:F13, "select E where (A = 'Version 1') and (E <> 'Type')")
With the advantage of always selecting the row I want no matter what order they are in.
Is it possible to make a function that would operate like the following without recreating the wheel in apps script?:
GetHeaders(range, string)
=QUERY(A3:F13, "select "&GetHeader(Headers, "Type")&" where ("&GetHeader(Headers, "Version")&" = 'Version 1') and ("&GetHeader(Headers, "Type")&" <> 'Type')")
AI: Without Apps Script
One cannot make a new function without Apps Script. The only way to streamline the process is to put more cells somewhere and reference those.
For example: under each header such as 'Weight', enter the command
=regexextract(address(1, column()), "[A-Z]+")
This will put the column letter(s) under the headers. Include the row with letters in the Headers named range. In the query string, use
hlookup("Weight", Headers, 2, 0)
which is easier on the eyes than
SUBSTITUTE(ADDRESS(1,MATCH("Weight", Headers, 0),4), "1", "")
With Apps Script
Passing a range (named or otherwise) into a custom function passes in the values, with no information on their location in the sheet. But I found a solution: infer the location of headers from the first argument of query.
No need to include "Headers", which was itself repetitive.
Version 1: headers included in query range
I prefer to include the header rows in the range passed to query, and specify the number of header rows as the 3rd argument of query. This avoids misinterpretation of data as headers or vice versa. For example:
=QUERY(A1:F13, "select "&GetHeader("Type")&" where ("&GetHeader("Version")&" = 'Version 1') and ("&GetHeader("Type")&" <> 'Type')", 2)
Here is the custom function to use with the above query:
function getHeader(name) {
var sheet = SpreadsheetApp.getActiveSheet();
var formula = SpreadsheetApp.getActiveRange().getFormula();
var args = formula.match(/\w+:\w+(?=[ ,])/);
var range = sheet.getRange(args[0]);
var firstRow = range.offset(0, 0, 1, range.getWidth());
var headers = firstRow.getValues();
for (var i = 0; i < headers[0].length; i++) {
if (headers[0][i] == name) {
var notation = range.getCell(1, i+1).getA1Notation();
var column = notation.replace(/\d/, '');
return column;
}
}
return 'Not found';
}
The function obtains the formula from the cell from which it was called. It extracts the first range argument of formula with a regular expression. Then it looks through the first row of this range, assuming it's the header row, in search of the given string. It obtains the A1 notation of the cell with the string, removes the row part of it, and returns the result.
Version 2: headers taken from Row 1
An alternative version, where the headers are taken from the first row of the sheet, regardless of the rows in the query argument. Just replace
var firstRow = range.offset(0, 0, 1, range.getWidth());
with
var firstRow = sheet.getRange(1, range.getColumn(), 1, range.getWidth());
With this version you can use
=QUERY(A3:F13, "select "&GetHeader("Type")&" where ("&GetHeader("Version")&" = 'Version 1') and ("&GetHeader("Type")&" <> 'Type')") |
H: How to post Instagram photo to Twitter as a photo
Before Facebook acquired Instagram, you can view IG photos on Twitter as a native photo if you have them linked. Now, only the description and IG link of that photo will be tweeted. What do you do to post the IG photo as a photo on Twitter, and not just its description and link?
AI: Solution: IFTTT (If This Then That)
Sign up for an account in IFTTT.
Go to this recipe: Post your Instagram photos as native Twitter photos
Link your Twitter and Instagram accounts.
Click Add.
Done!
Here's what it will look like on Twitter. The ift.tt link redirects to the Instagram link of the photo. |
H: Delete a profile photo from Google+ When Google+ Photos shows no record of the photo
How do I delete my profile photo from Google+? I am having an incredible amount of trouble clicking through Google plus, trying to find the delete button.
This situation is unique in the sense that only Google+ Picasa has access to the photo, rather than Google+ Photos.
I think this must be a bug--I uploaded my profile photo straight to the profile from my computer, rather than selecting the photo from an album I'd uploaded to Google+. As a result, only Google+ Picasa had access to the photo...Google+ "Photos" knew nothing about it--there was no record of my profile photo (even though it was obviously on the system)...and I could not delete the profile photo from my profile (since there was no delete option) or Google+ photos (since the application was not responsible for managing the photo).
Anywho...yeah, this is different from the other question...and That is why I asked it!
I guess the other question has Picasa deep down in the answers, and it isn't upvoted well, so now I'll be able to accept the proper answer (the Picasa answer), and associate that with this subject line.
AI: Turns out that Google+ has several different photo applications--the "Photo" application and Picasa. I don't know why, but only "Picasa" has access to your profile photo if the only way you added your profile photo was straight to the profile upload from your computer (rather than from an album already on Google+).
If you go to Picasa, then you can delete your profile photo. |
H: How do I download a particular file from GitHub?
I only need one particular file from a project published on GitHub so it makes little sense to download the whole project. But I just can't find the download button.
AI: If you're viewing the contents of the file itself there should be a "Raw" button.
You can either:
Right-click on that and select the "Save content as..." (or similar depending on your browser)
Click through to see the contents dumped onto the screen and save from there |
H: Is there a way to see all Amazon reviews across its international sites?
Say a book has 10 reviews on amazon.com and 2 reviews each on amazon.co.uk, amazon.it and amazon.in, is there a way to aggregate all 16 reviews?
AI: Amazon Product Advertising API License Agreement prohibits use of the Reviews data for any purpose other than driving sales on the Amazon Site. So I doubt if any site can lawfully provide the aggregated info. You may have to scrape & compile it yourself for your personal use by utilizing Amazon's consistent URL pattern for a product review page of each country.
Typically, the URL of a country-specific Amazon Reviews page for a product has this pattern:
http://www.amazon.{ccTLD}/product-reviews/{ASIN}/
For example, the reviews for the book with ASIN or product code of 0143031031 on Amazon.in are available at this URL: http://www.amazon.in/product-reviews/0143031031/ |
H: How to select random data points in Google spreadsheet?
I have a Google spreadsheet document with over 1000 data cells in one column. I want to select 5 random samples from this data set, and copy these to a new column. And repeat this process, n number of times. How do I do this?
AI: To implement sampling without replacement with only spreadsheet functions is not easy. Sampling with replacement is easy enough with randbetween, but if you use it, the samples will change with every edit to the sheet (unless you "stabilize" them by copy-pasting values only, but this is still awkward).
I suggest using an existing solution, such as randomizer.org. It provides a CSV file with random integers in a given range, with or without replacement. The CSV file can be easily imported into Google Sheets: it looks like the table below.
If Randomizer is the name of the sheet with these numbers, and your dataset is in column A of another sheet, then
=offset(A1, Randomizer!A5, 0)
will give the corresponding random element of your list. Copy-paste this command around a 5-by-n range to create the samples.
Note: offset 0 corresponds to the top cell of the data range, so the range of numbers provided to randomizer should begin with 0.
+-------------------------------+-------+-------+
| Research Randomizer Results: | | |
| 20 Sets of 5 Numbers Per Set | | |
| Range: From 0 to 999 -- No | | |
| Set 1 | Set 2 | Set 3 |
| 221 | 67 | 779 |
| 667 | 575 | 966 |
| 898 | 897 | 933 |
| 131 | 244 | 559 |
| 739 | 745 | 901 |
+-------------------------------+-------+-------+ |
H: Unlimited storage on Google Drive for students
Context: http://googleforeducation.blogspot.in/2014/09/announcing-drive-for-education-21st.html
Can any student with a .edu email address get unlimited storage in Google Drive just by signing up?
Is this the correct website for signing up for students?
How time is required after signing up by students, before getting unlimited storage? Is it instant?
AI: Unlimited Drive storage is offered as a part of Google Apps for Education. This is not something an individual student can obtain; rather, school officials enters an agreement with Google on behalf of the school. After that, all students have access to unlimited Drive, etc. All that a student can do is to encourage their school officials to do this.
So, the answers to your questions are:
No, students do not get unlimited storage if acting as individuals.
No, this is a form for a school official who will administer Google Apps for their school.
Not applicable, since students do not sign up by themselves. There is probably some substantial time between filling out the form in 2 and domain creation (since someone from Google will need to contact the school officials and create a formal agreement). After the Apps domain is created, students get unlimited storage as soon as they create accounts on that domain. |
H: How do I enable visual editor on Wikipedia?
When I click on Beta features on the English Wikipedia I see only Completion suggester, Other projects sidebar, Hovercards, Read more, Compact language links and Content Translation. I don't see a box for enabling the visual editor. How do I enable the visual editor?
AI: VisualEditor is no longer under Beta features. To enable it, go to the "Editing" section of your preferences and uncheck the box that says "Temporarily disable the visual editor while it is in beta," the last option under "Editor." |
H: How to set a Vacation Responder in Google Inbox?
Is it possible to set a vacation responder in Google Inbox? I could not find a respective option in the settings menu.
AI: Yes just not directly.
Since Inbox is actually an extension to the Gmail service many of the finer settings can only be set from the Gmail settings menu. Vacation responder is one of these settings.
To get to Gmail from Inbox you can simply type in Gmail.com as the URL, if you have Redirect Gmail to inbox.google.com checked then you need to choose Gmail from the Inbox menu first.
From your Gmail go to settings
On the General Tab scroll to the bottom.
Select the radio button Vacation responder on
Fill in your responder details, start date, end date (optional), subject line, and message.
Select Save Changes at the bottom.
These changes WILL carry over to Inbox. |
H: How to combine two Google Spreadsheet worksheets data into one while preserving updates?
I am trying to help a co-worker out with semi-automating a task. I need to combine two worksheets data into one worksheet. Let's call these A, B and C for the combined one. Data is copied pasted from two different sites into A and B. The data is in a similar format but only two fields need to be in worksheet C.
What I want to do is for my co worker to paste the data into worksheets A and B from their sources, and then for the two fields to be transitioned over to worksheet C.
Both A and B's data vary in number of rows. Right now the data is pulled by a simple reference (=worksheetA!B2) for each field and has to be manually compared as the rows vary each time the data needs to be combined.
Is there any way this can simply be done though some formula, or will I have to create a script?
Edit 1:
Per request, here is an example spreadsheet.
Edit 2:
Per request, here is some sample data:
Worksheet A
Something else something different
a 37 58.2
asdf 4345 345.3
sdflv 234 233.2
Worksheet B
Something else
ASDFASD 43
EE# 5646
VVBG 234
$#GG 4344
Worksheet C
Something else
a 37
asdf 4345
sdflv 234
ASDFASD 43
EE# 5646
VVBG 234
$#GG 4344
AI: Short answer
Use arrays referencing the column headers and the all the rows from the desired columns and filter them:
=QUERY({A!A1:B1;A!A2:B;B!A2:B},"Select * Where Col1<>''",1)
Explanation
Google Sheets allow to specify arrays by enclosing the values between braces { , }. If your spreadsheet use point . as the decimal separator, use comma , to separate columns and semicolon ; to separate rows, other way use a semicolon to separate columns and a backslash \ as row separator.
In the proposed formula the array has three sets of values
A!A1:B1 is used to get the column headers
A!A2:B, B!A2:B are used to get all the cells in the columns A and B of the worksheets A & B from the second row to the last row.
The QUERY() function is used to filter the values to avoid the inclusion of the blank cells in the final result.
References
Using arrays in Google Sheets - Google Editors Help
QUERY - Google Editors Help |
H: Cognito Forms: Country field with drop-down menu
I would like to add a country drop-down menu in my form without having to use the full address container which has many fields which I don't need for my application. Is there any way how I can do this?
AI: I am a developer with Cognito Forms.
We do not have a drop down specifically for countries outside of the country drop down in the address field.
You can use a normal Choice Filed, and a list of countries. The list wont have to be entered in one by one rather you can copy the list, and paste it into the first choice of the Choice Field. This will populate the list down, each item will be its own option. |
H: How can I have conditional settings available when I use choice fields in check boxes?
In my form I have two choice fields. The only difference is that the field on the left side has radio buttons and the field on the right side has check boxes. All other settings are identical.
Here is a picture of a simplified example:
For my application it is important that the user can select more than one option in the second field, so I have to use check boxes there.
Now I add another field called "Country" which should be visible based on the selections in the second field, but when I open the conditional logic window, the object "Background" is not available.
Is there any way to work around this?
AI: If you select Advanced Editor you can use this calculation
=Background.Contains("I am self employed")
The field will be visible whenever "I am self employed" is checked. If you want a field to show only when multiple criteria are selected you can use:
=Background.Contains("I am self employed") AND Background.Contains("I work for the CIA")
This will only show the field when both "I am self employed" and "I work for the CIA" is selected. |
H: Am I able to retain access to Google Apps after losing domain ownership?
In a few days, I will be giving up a domain to another business. We use that domain for a lot of things, such as email, drive, calendar, etc. Is it possible to still be able to access the files, emails, whatnot, if the domain itself no longer exists?
Example of sorts. If I own domain1.com, and I sell it to some company, but my email is me@domain1.com, which is a Google Apps activated domain, is it possible to still log in and search old emails with me@domain1.com, even though no one can send / receive emails from @domain1.com accounts anymore?
AI: Short answer
Yes, you can, but you could lose the access at any time.
Extended answer
You could lose the access to your Google Apps account when someone else verify the ownership of the domain in order to recover the administrator password. If someone else is able verify the domain, he/she could change the administrator password, change the Google Apps organisation account settings get control of your information.
By the other hand, if need to recover the administrator password, you could not do it, because it requires to be able to verify the domain ownership.
In order of keep your data, before giving the domain to the other business you could do one or both of the following:
Migrate your data out of Google Apps.
Change your primary domain.
References
Verify your domain for Google Apps - Google Apps Administrator Help
Reset your administrator password - Google Apps Administrator Help |
H: Facebook's alternatives to liking
When I use Facebook I can see buttons:
Like
Love
Haha
Wow
Sad
Angry
Are the alternatives to liking the same for everyone using Facebook (in every region, in every device)?
"Confused" one day vanished. What happened to it?
I saw some news articles that included "Yay". How come I don't have "Yay"?
AI: The Verge: Facebook's Like button will soon have these emoticon alternatives, says report
Facebook is testing alternatives to the Like button. The key word here is: "testing".
I'm sure they're doing A/B testing to see what works best. It doesn't surprise me at all that some have changed or disappeared. They're testing it, after all.
The test was originally set for Ireland and Spain and from what I can see has not expanded to other countries. I also don't see any sort of announcement as to when they might end the testing or roll this out more widely. |
H: Register your Apps Script application and retrieve the client ID and secret for oAuth dance
How do I register an Apps Script project and get the Client Secret for oAuth, and set the callback URL?
AI: These are instructions for getting the client ID and secret for oAuth.
This explains the process of navigating the Cloud Platform and getting your Apps Script project information including the client ID and secret.
An Apps Script project is initially given a "default" Google Cloud Project, but you will need to create a "standard" Google Cloud Project, and then associate the Apps Script project with the Google Cloud Project. To create a "standard" Google Cloud Project, you must first open the Google Cloud Platform dashboard at:
Google Cloud Platform
Then you need to create a new Cloud Platform Project, get the Cloud Platform Project id number, and add it to the Apps Script Project.
First go to IAM & admin, and choose "Manage resources"
Click "Create Project"
Create a project, and get the id number.
Go back to the Apps Script code editor, and open the Resources menu.
Enter the id number and associate it with the Apps Script project.
In the "Resources" menu, choose the "Cloud Platform Project" item.
Dialog comes up:
Click Blue Link. Developers Console comes up. Navigate to Credentials.
In the Credentials page, click on either the Name or the "Edit OAuth Client" (pencil) icon.
Get the client ID and the client secret. You will need this for the oAuth authorization.
You must also enter a Redirect URI:
Quote from Eric Koleda's apps-script-oauth2:
Eric Koleda's apps-script-oauth2
Before you can start authenticating against an OAuth2 provider, you usually need to register your application and retrieve the client ID and secret. Often these registration screens require you to enter a "Redirect URI", which is the URL that users will be redirected to after they've authorized the token. For this library (and the Apps Script functionality in general) the URL will
always be in the following format:
https://script.google.com/macros/d/{PROJECT KEY}/usercallback |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.