{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'OCR模型免费转Markdown' && linkText !== 'OCR模型免费转Markdown' ) { link.textContent = 'OCR模型免费转Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== '模型下载攻略' ) { link.textContent = '模型下载攻略'; link.href = '/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'OCR模型免费转Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); ' \n\nfunction testGmailApp() { \n GmailApp.sendEmail(\n 'your@emailaddress.com', // recipient\n 'test GmailApp', // subject \n 'test', { // body\n htmlBody: html // advanced options\n }\n ); \n}\n\nfunction testMailApp() {\n MailApp.sendEmail(\n 'your@emailaddress.com', // recipient\n 'test MailApp', // subject \n 'test', { // body\n htmlBody: html // advanced options\n }\n ); \n}\n\nScreenshot\n\nReference\n\nGmailApp: sendEmail(recipient, subject, body, options)\nMailApp: sendEmail(recipient, subject, body, options)"}}},{"rowIdx":3720,"cells":{"text":{"kind":"string","value":"H: Exclude starred messages?\n\nI\nran a search\non my messages including\n-is:starred\n\nI also tried\n-has:yellow-star\n\nhowever I am still getting starred messages in my search results\nAI: Labels appears to work better with conversations, so I am going to go with that.\n-label:cygwin"}}},{"rowIdx":3721,"cells":{"text":{"kind":"string","value":"H: What’s a simple workflow for bulk deleting emails from Gmail?\n\nNow that Mailstrom is no longer free, I am looking for a way to move or delete email messages within Gmail in bulk. \nI don't want to set up a filter which will affect new messages, just move and delete existing messages.\nAI: You can use the advanced search page to search for existing messages. In other words you can create an ad hoc filter.\nOnce you have identified all the messages that meet your criteria, you can then select them. It doesn't matter if the number of messages returned is a handful or thousands all can be selected at the same time. Once you have selected them, they can be labeled, relabeled, archived, or even deleted."}}},{"rowIdx":3722,"cells":{"text":{"kind":"string","value":"H: How can I find out which languages GitHub thinks my project is written in?\n\nI can't seem to find any indication in the GitHub UI which languages it thinks my projects are in.\nAlso, is there a way to suggest a different set of languages for each project?\nAI: Click on the color bar in the screenshot below:\n\nFYI: How does github figure out a project's language? (answer: using the linguist library)"}}},{"rowIdx":3723,"cells":{"text":{"kind":"string","value":"H: How do I write or read Google-Sheets \"comments\" on mobile devices?\n\nIn a Google-Sheet called Field Schedules for Google web-apps at http://drive.google.com you can right click on a cell to open a context menu with the option to \"Insert comment.\" Let's say for example I insert a comment: \"hello world.\" into the cell \"A1.\"\nAfter I create comments, I attempt to open the same Google-Sheet, Field Schedules on my Boss's iPad, or on my LG-G2-Android device and I do not see any option to \"Insert comment[s].\" Nor can I find comments that already exist.\nAfter exiting the Field Schedules from the Android & Apple devices I can confirm that the original comment exists by using my desktop computer to open Field Schedules and hovering my cursor over \"A1\" it will then display my comment \"hello world.\"\nTLDR: How do I write or read Google-Sheets \"comments\" on mobile devices?\nAI: The answer would appear to be: You can't. (At least right now.)\nFrom Google Support, regarding the Android app:\n\nThe Drive app doesn’t currently support viewing and editing comments in Google spreadsheets or Google presentations.\n\nGoogle Support, iOS app:\n\nThe Drive app doesn’t currently support viewing and editing comments in Google spreadsheets or Google presentations.\n\nCollaborate on documents in a mobile browser doesn't mention comments at all. However, from my experimenting, it doesn't look like comments are available there either. (Which makes sense; the mobile browser version is a limited subset of functionality.)"}}},{"rowIdx":3724,"cells":{"text":{"kind":"string","value":"H: Disable \"[Message clipped] View entire message\" in Gmail?\n\nIs there anyway to increase the displayable size of emails to avoid the annoying \"Message Clipped\" additional step in Gmail?\n\n[Message clipped] View entire message\n\n\nDesktop:\n\n\nMobile:\nAI: There is no way to disable clipping in Gmail, as per this rather new post on the Google Product Forum.\nThis web app in the Chrome store comes as recommended in the different posts: \nTrimmless for Google Mail \nNote: I'm not affiliated to the vendor of the app"}}},{"rowIdx":3725,"cells":{"text":{"kind":"string","value":"H: Revoke Gmail 'send as' permission?\n\nGmail has this convenient way to 'send email as' another account, to make it appear like the email came from that account rather than the Gmail mailbox. A great way to hook up your domain to your Gmail but still rely on Gmail's great SMTP servers. To get this started, you have to send a verification/permission request email to the concerned email address. Nice and safe.\nHowever, I have a question with regard to revoking this verification afterwards.\nSay I no longer have access to the Gmail account that can send on behalf of my @mydomain email account (as I've previously verified that it could do this). Is there a way to revoke this permission? I realise I can delete the alias from the Gmail account, but what if I do not have access to the account, and can only access the @mydomain email address? Can I force Gmail to re-verify?\nAI: Save the verification email you get when you originally set up the \"send mail as\". At the bottom of the message is a different link and text that says:\n\nIf you accidentally clicked the link [to verify your address], but you do not want to allow [redacted]@gmail.com to send messages using your address, click this link to cancel this verification:\n\nIf you click this second link, the account will be removed as a \"send as\" option for that Gmail account."}}},{"rowIdx":3726,"cells":{"text":{"kind":"string","value":"H: Cube rooting a negative number does not work?\n\nI tried using this formula for cube rooting but it doesn't seem to work.\n=ROUND(C38^(1/3))\n\nThe value of C38 is -2.\nI'm getting the following error:\n\nImaginary numbers are not supported in real sheets.\n\nShouldn't cube roots logically work without being imaginary, whether it's negative or positive?\nAI: I am not sure why it's not supported but you can bypass it this way:\n=ROUND(IF(C38 < 0,-1*ABS(C38)^(1/3),C38^(1/3)))\nThat would be your formula for rounding a cube root."}}},{"rowIdx":3727,"cells":{"text":{"kind":"string","value":"H: Facebook Fan Page - Question\n\nIf I create a Facebook page then is it possible for anyone to know which user has created this fan page or who owns this fan page?\nI want to keep my personal facebook page separate from my fan page. In a nutshell I want to hide my personal identity from a fan page .\nCan anyone shed some light on it?\nAI: Yes, Facebook Profile and Facebook Fan Page are separate things / entities, once you create page in Facebook you will be admin of the page and you can moderate the page but there is no way to other users know who is the admin of page. So there will not be any harm to our personal identity by creating a fan page."}}},{"rowIdx":3728,"cells":{"text":{"kind":"string","value":"H: How to see click throughs for Google Plus posts?\n\nI'm relatively new to Google Plus. As far as I can tell, it's impossible to see click throughs via the platform. Click the \"down arrow\" in the upper right corner of a post and you will see this menu:\n\n\"View post activity\" will show you +1's and reshares, but no click through data. And Dashboard view doesn't seem to provide this info either.\nIs it possible to track clicks on posted links in Google Plus?\nAI: Google Plus has no native option to track clicks on posted links, but you can use any link tracking system like Google URL Builder."}}},{"rowIdx":3729,"cells":{"text":{"kind":"string","value":"H: Count the number of Fridays in a specific month\n\nI would like to find the number of Fridays for a specific month via function in Google Spreadsheets. \nFor example, for January 2014 the value would be 5 and for February 2014 the value would be 4.\nHow can I do that?\nAI: This is how to do that with Google Apps Script.\nCode\nfunction specificDays(dayName, monthName, year) {\n // set names\n var monthNames = [\"January\", \"February\", \"March\", \n \"April\", \"May\", \"June\",\n \"July\", \"August\", \"September\", \n \"October\", \"November\", \"December\"\n ];\n var dayNames = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \n \"Thursday\", \"Friday\", \"Saterday\"\n ];\n\n // change string to index of array\n var day = dayNames.indexOf(dayName);\n var month = monthNames.indexOf(monthName)+1;\n\n // determine the number of days in month\n var daysinMonth = new Date(year, month, 0).getDate();\n\n // set counter\n var sumDays=0;\n\n // iterate over the days and compare to day\n for(var i=1; i<=daysinMonth; i++) {\n var checkDay = new Date(year, month-1, parseInt(i)).getDay(); \n if(day == checkDay) {\n sumDays ++;\n }\n }\n\n // show amount of day names in month\n return sumDays;\n}\n\nScreenshot\n\nRemarks\nAdd the script via Tools>Script editor in the menu. Save the script and you're on the go !!\nExample\nI've created an example file for you: Amount of Day Names in Month"}}},{"rowIdx":3730,"cells":{"text":{"kind":"string","value":"H: Split content with multiple lines into multiple rows and columns in Google sheets\n\nI like to know if it is possible to split an entire paragraph contained in a single cell, into multiple columns and paragraphs using formula's in Google sheets. This is what the text in the cell would look like:\n1 coffeeextradark 240gr\n\n1 milkshake 28Oz\n\n5 chocolatebigones 30 pcs\n\n2 andthelistgoeson 34items\n\nAnd this is how I would like it to be split up into separate cells\n1 | coffeeextradark | 35\n\n1 | milkshake | 28Oz\n\n5 | chocolatebigones | 30 pcs\n\n2 | andthelistgoeson | 34items\n\nI found these nice examples how this can be done using formulas combined with Excel's Text to columns tool or using VBA, but can someone help me to do the same using Google Apps Script?\nAI: Sounds like the =SPLIT function would do what you need. Given that A1 contains the text 1 coffeeextradark 240gr, then\n=SPLIT(A1, \" \")\n\n(notice the space between the quotation marks)\nwill split the text into three cells:\n1 | coffeeextradark | 240gr"}}},{"rowIdx":3731,"cells":{"text":{"kind":"string","value":"H: How to google for \"extern void*\"?\n\nI want to search for a specific string that unfortunately contains google wildcards (*).\nHow can I search pages where the exact string extern void* appears.\n(Some of you might have guessed that I am wrestling with C these days)\nI tried with DuckDuckGo or Bing with the same result: the * is interpreted.\nAI: You cannot search for string containing * with Google: the character is ignored. See replacement for Google Code Search? for searching code."}}},{"rowIdx":3732,"cells":{"text":{"kind":"string","value":"H: Can't find source of GitHub Pages website\n\nI noticed a typo on http://dblock.github.io/dotnetinstaller/ . Judging by its URL it seems to be a GitHub Pages website, so I thought I would fix the typo via a GitHub pull request.\nIf I am not mistaken, the HTML for a http://xyz.github.io website is at https://github.com/xyz/xyz.github.com so I went to https://github.com/dblock/dblock.github.com .\nSurprise: The HTML does not look to be the same at all. There is not even a dotnetinstaller folder.\nWhat kind of magic is operating here? \nAre my assumptions about how GitHub Pages work false?\nAI: The correct link is https://github.com/dblock/dotnetinstaller/tree/gh-pages\nYour assumption is not false but work only for User or Organisation page not for project page, so github.com/dblock/dblock.github.com is for dblock.github.io and dotnetinstaller (if it's not a folder of a User or Organisation page) is located at github.com/dblock/dotnetinstaller in the gh-pages branch."}}},{"rowIdx":3733,"cells":{"text":{"kind":"string","value":"H: Looking for an \"isFormula\" formula for Google Spreadsheets\n\nIs there a function that will tell if a specific cell has a plain (manually entered) value or has a formula?\nAI: With this little snippet you can do that.\nCode\nfunction isFormula(startcol, startrow) {\n // prepare string\n var str = String.fromCharCode(64 + startcol) + startrow;\n\n // retrieve formula\n var fCell = SpreadsheetApp.getActiveSpreadsheet()\n .getRange(str).getFormula();\n\n // return false if empty else true \n return fCell ? true : false;\n}\n\nUsage\n\nIn this answer, Tom Horwood found a way to circumvent the usage of quotes.\nExample\nAdd the script under Tools>Script editor and press the bug button to activate the authentication. \nI've created an example file for you: Check for Formula"}}},{"rowIdx":3734,"cells":{"text":{"kind":"string","value":"H: What's the difference between \"add to network\" and \"connect\" in LinkedIn?\n\nWhat's the difference between \"add to network\" and \"connect\" in \"People You May Know\"?\nAI: \"Add to network\" are taken from your contacts list or address book (if you've allowed LinkedIn to see that), but do not yet have a matching LinkedIn account. For these you will see the name, but instead of a job title, it will list their email address.\n\"Connect\" will appear for existing LinkedIn profiles.\nWhen you click \"Add to network\" it will send an invite to the person (but will not be customisable) asking them to join and create an account."}}},{"rowIdx":3735,"cells":{"text":{"kind":"string","value":"H: Can my location be found from a Facebook picture?\n\nThis old ABC News clip dramatically announces a \"new and freightening threat [...] unknown to many Internet crime experts\", which exposes a child's location via pictures posted to Twitter, Facebook, Craigslist, Photobucket.\nDoes Facebook expose location of pictures, without the user actively specifying it?\nBe it via picture GPS metadata or IP geolocalization or anything.\nLet's say the posted picture contains GPS data and shows not recognizable landmarks.\nThis question is about the Facebook website, not about the Facebook smartphone apps.\nAI: Facebook now strips all metadata from posted pictures to avoid this problem:\nWhat information can someone see when they download my photo from Facebook?\nHowever, be careful when you post links to photos on other websites or when using third-party image hosting services with Facebook, Twitter, etc."}}},{"rowIdx":3736,"cells":{"text":{"kind":"string","value":"H: How can I find out what a goo.gl URL leads to, without visiting it?\n\ngoo.gl allows us to shorten URLs. For example, http://goo.gl/Y5VIoG will link to http://google.com\nHow can we determine what URL the goo.gl link points to without actually visiting it?\nFor example, how can we see that the link http://goo.gl/Y5VIoG points to http://google.com without actually clicking on it?\nIs there an official way to do this (provided by Google instead of a 3rd party)?\nAI: Adding a .info after the URL will give you detailed analytics of the short URL, including:\n\nThe full URL being pointed to\nQR Code\nNumber of clicks over various timeframes\nVisitor information:\n\n\nReferrers\nBrowsers\nPlatforms (Windows, et al.)\nCountry of origin\n\n\nFor instance: This question: http://goo.gl/e1kTPw.info\nFor a better example, here's the example link from Goo.gl Help: http://goo.gl/l6MS.info\n(Note: Analytics for all goo.gl short URLs are publicly visible to all users.)"}}},{"rowIdx":3737,"cells":{"text":{"kind":"string","value":"H: How can I make Google include special characters to search for programming terms?\n\nThis comes up from time to time when I want to search for a line of code, and it's perhaps something common to many languages or is a word/phrase outside of programming. The special characters and formatting are what makes my query unique. However, Google ignores almost all special characters. I have put my string in quotes and also used verbatim mode. No dice. If I search \"/echo/html/\" (including the quotation marks), even in verbatim mode, Google finds results such as \"You need to echo HTML\" which do not include my forward slashes. I've read this Help article from Google but it doesn't address my situation. The same problem exists for <>, (), and many other common programming special characters. If I want to read about or print(), I need to include words like \"HTML\" or \"Python\" and even then I might get hits that aren't about the specific query I want. . seems to be included, so searching for .Net is not a problem.\nIs there a solution I'm missing? Am I just not able to use the search how I would like?\nAI: Try out SymbolHound, it's a search engine that allows you to search with special chars. This allowed me to search for very specific functions/errors rather than the special chars being replaced with spaces and bringing up irrelevant stuff."}}},{"rowIdx":3738,"cells":{"text":{"kind":"string","value":"H: How to drag down 'A1:A2', 'A1:A3', 'A1:A4'\n\nLet's say every day (1 day = 1 row) a number is being added in column A\nI want to have column B show the total of these numbers. However, if I drag it down, it keeps moving 'B1' too, while I only want the second one to move +1 -->. So:\nCell B1: '=A1' \nCell B2: '=SUM(A1:A2)'\nCell B3: '=SUM(A1:A3)'\nCell B4: '=SUM(A1:A4)'\n\netcetera.\nDragging this down doesn't give the wanted result.\nAI: You don't do this by increasing the formula by a cell for each row. This is not possible. \nInstead, you use as the formula \ncell B1 = A1\ncell B2 = SUM(B1, A2)\ncell B3 = SUM(B2, A3) \n\nNow you can drag down the formula from B2 and B3 (don't include B1 in the selection!) for as many rows as you like."}}},{"rowIdx":3739,"cells":{"text":{"kind":"string","value":"H: How do I hide the Hangouts panel on Google Plus?\n\nOn the Google+ website (plus.google.com), the Hangouts panel appears on the right hand side. I already have the Chrome Hangouts extension so I don't need it there at all.\nAI: Click on \"Hangouts\" at the top of the sidebar."}}},{"rowIdx":3740,"cells":{"text":{"kind":"string","value":"H: How do I split multiple rows / insert a row below every existing row in Google Spreadsheets?\n\nI use a spreadsheet to keep track of journeys in a lift-club. Each day has its own row, and the number of lifts given to a person will be 0, 1 or 2.\nI realized that the algorithm for the lift scheme is slightly flawed, so now I need to record each journey individually, i.e., I need to split each row in two.\nThere are already a lot of days on the chart. How can I add a row below each row / i.e., split every row? Usually rows are added at the end of the spreadsheet.\nAI: There is no default way to do it through UI of Google Spreadsheets. However, I have written a small script that you can use on your Google Spreadsheet to add rows. \nfunction addRows(){\n var sheet = SpreadsheetApp.getActiveSheet();\n var rows = sheet.getDataRange();\n var numRows = rows.getNumRows();\n\n for (var i = 1; i <= numRows*2 - 1; i+=2) {\n sheet.insertRowAfter(i);\n }\n}\n\nTo use this code, follow these steps. \nIn Google Spreadsheets, navigate to Tools > Script Manager.\n\nClick New in the next window, a blank code.gs file will be opened. Copy and Paste the above code in Code.gs and save the project. \nCome back to the tab that contains your original document. Open script manager again if it is not already open. Click Refresh at top right. Now you will see the function \"addRows\". In the screenshot you will see other function that I have created earlier, but you will only see one unless you already created some other function. Select it and click Run. Now rows will be inserted in your spreadsheet at once."}}},{"rowIdx":3741,"cells":{"text":{"kind":"string","value":"H: Shortcut key for archive and open next message\n\nThe e shortcut key in GMail archives the current conversation:\ne Archive Archive your conversation from any view.\n\nIn my personal GMail account, hitting e opens he next conversation automatically. In my corp account, e archives the conversation and returns to the inbox.\nAny idea how to set the e key to archive and open the next conversation?\nUpdate: I do not have the Auto-advance option in my general settings:\n\nUpdate #2: Auto-advance is enabled at the labs tab.\nAI: Open Settings and choose Go to next (newer) conversation in Auto-advance section of General tab."}}},{"rowIdx":3742,"cells":{"text":{"kind":"string","value":"H: Switch between accounts in GitHub\n\nI have a personal and professional Gmail account. Switching between then is easy - clicking on my name in the upper-right corner opens a switching menu:\n\nI have two GitHub accounts as well, each associated with one of the aforementioned Gmail accounts, and switching is a real pain - I have to log out and log in again as the other user:\n\nAny idea how to easily switch between multiple GitHub accounts on the web?\nMy current solution is working with two browsers, which is really awkward.\nAI: I don't think this can be done. Gmail allows multiple accounts running at the same time whereas there is no such mechanism on GitHub."}}},{"rowIdx":3743,"cells":{"text":{"kind":"string","value":"H: Google Apps: See all recently deleted users\n\nSo I need to recover a recently deleted user in a Google Apps account. I know how to do this and have done it a few times before.\nThe problem is that, just after the account was deleted, we deleted about six thousand other users. The \"recently deleted users\" list in the admin interface only shows the last one-hundred and there seems to be no way to search the list.\nIs there a way to find the account I'm after?\nAI: @kevtufc, you have a few options open to you:\n\nFaster, more ghetto way\n\nIf you don't remember the username, use the API explorer here, limiting your search to domain and showDeleted=True. This will return a list of recently deleted users for that domain. Note that you'll need to authorize, you can limit yourself to the read-only scope if desired.\nSo with the username in hand (or from memory), go here and set userKey = the deleted user's primary email address. Execute the request and the user should be restored!\n\nThe slightly slower, more reliabile way\n\nDownload and install Google Apps Manager by Dito. This tool is incredible. One of its great functions is undeleting users, with the syntax gam undelete user . Just set up GAM via the instructions and GAM away!"}}},{"rowIdx":3744,"cells":{"text":{"kind":"string","value":"H: What can do when I receive email from Facebook when a user tries to use my Gmail ID without dot?\n\nI recently received email from Facebook saying that:\n\nTo verify that you own abcxyz@gmail.com, please click here. You may be\n asked to enter this confirmation code: 32522\n\nBut my email address is abc.xyz@gmail.com. Gmail ignores dot in email address but I think Facebook does not because of which I am receiving this email. Someone, it seems, is trying to use abcxyz@gmail.com to register on Facebook.\nWhat can I do in this case? Can someone hijack my account via this method?\nAI: It's annoying, but I don't think there's anything you can do. I also don't think there's much to worry about. Facebook will alert you if there's a change on your account.\nOne thing you might do is add your dotless gmail address as an alternative address on your account. That way, at least, when someone tries to sign up with it they should get a message that it's already in use.\nThat said, make sure you're using good, unique passwords on Facebook and especially your Google Account. Every \"forgot password\" mechanism out there sends a message to your confirmed email address, so if someone can get into your Gmail they can really mess with your entire life.\nIf it continues, you might want to open a ticket with Facebook. They might have some measures to keep this person who doesn't know their own email address from trying to inadvertently hack your account."}}},{"rowIdx":3745,"cells":{"text":{"kind":"string","value":"H: Convert to HTML / change formatting\n\nI have a CSV file with a cells filled with text formatted like this. \n&lt;p&gt;\n This is some sample text&lt;/p&gt;\n&lt;p&gt;\n&lt;br /&gt;\n This is some sample text&lt;br /&gt;\n&lt;br /&gt;\n &amp;nbsp;&lt;/p&gt;\n\nI need this to be converted to HTML tags. How do I do it ?\nAI: There are two ways, if you simply copy paste the whole text into a new notepad file and save it as sample.html and open this html file in a browser, you will see that it is already a html file. \nInstead if you want to convert the < to < etc, Open the csv file in either excel of notepad and use replace function. Do following replacements. \nReplace &lt; with a <\nReplace &gt; with a >\nand save the csv file as a html file just by clicking save as in notepad and give a name as newsample.html or something. Now you can open in a browser like any other html file."}}},{"rowIdx":3746,"cells":{"text":{"kind":"string","value":"H: Can Google Drive Document Permissions be centrally managed for free?\n\nCurrently, document authors in the not-for-profit community group I belong to grant access to each individual document explicitly to each person who needs access.\nThis isn't convenient when a new member joins the group as existing documents then have to be individually shared with the new member. This is hard to organise as there are several authors and no way to manage this centrally.\nIs there a way to define group(s) and share documents to a group so that a new member added to a group instantly has access to all the existing documents or some other method to simplify permissions?\nIdeally, permissions should be able to be managed centrally rather than us all having to maintain groups (or similar) individually.\nNote: We use the free Google Drive offering and do not have a domain defined via Google Apps etc.\nEdit: We are in Australia.\nAI: Yes, you can sign up for Google apps for nonprofits. Just search that term. You can host everything off Google's servers, but no email @yourdomain.com."}}},{"rowIdx":3747,"cells":{"text":{"kind":"string","value":"H: Is there any way to fine-tune the permissions for Trello board members?\n\nFor example, I want to allow board members to create cards and comment on cards, but not move cards between lists or alter lists.\nAI: Trello is very much like a wallboard with Post-it note cards with lists.\nAnyone with physical (edit) access to the board can make changes.\nCurrently, the best approach is to discuss the issues with your team members and set guidelines for everyone.\nYou may not be able to enforce the guidelines, but card activity tracks who made what changes so you can tell who changed what.\nVisit the development boards by Trello to suggest changes. Vote on cards for features you would like to see."}}},{"rowIdx":3748,"cells":{"text":{"kind":"string","value":"H: Google Sheets Print Filtered Rows\n\nI use a Google-Sheet (sheet called \"Data\") for my payroll. In A1 I paste data from another spreadsheet that I use to store all the data for my business ( example value of job, location, date, subcontractor name ) There are 600 rows total in the sheet called Data\nIn my payroll Google-Sheet I have an additional sheet for each subcontractor that works for me. These are meant to be statements that I can print with their checks. Each of these sheets also have 600 rows, and each element ( still talking about the subcontractor's shets ): A1, A2 ..., B1, B2, ...is a reference to the same A1, A2, ..., B1, B2, ... in the sheet called Data.\nAll I have to do in each of the subcontractor-sheets is filter by name & Wala! it is ready to be printed.\nFor example: Let's say I filter a subcontractor-sheet for my name Xzila. Of the 600 rows only 7 are for Xzila. I then click on print, but now it is printing like 30 pages because it is including the other 593 rows I filtered out.\nTLDR: How to use the google-sheets filter to hide rows and then print the sheet such that it does not print those filtered rows.\nAttempts: \n\nTo actually make the rows hidden ( this works but it is very tedius\nand defeats the time saving purpose )\nUse a google-script to hide each row one at a time ( this takes a reaaaaaaly long time )\nexport Google-Sheet to an excel spread sheet and the print. ( this works, but it loses a lot of formating and forgets that some numbers are currency and some numbers are dates )\nAI: Create yet another sheet, with a catchy name like for example PRINTING. \nUse the FILTER formula to set the data range and filter for the sub-contractor:\n=FILTER(DATA!A:U, DATA!F:F=H1) // H1 = Xzila\n\nIf you place H1 outside the printing area, then it will not take part in the printing."}}},{"rowIdx":3749,"cells":{"text":{"kind":"string","value":"H: How can I delete a shared file from Google Drive\n\nI have a shared file with someone and I don't want her to reach it anymore. She shared the file with me. Can I delete it permanently without the possibility that she will reach it again? \nWill she get a notice about it?\nAI: If the file is shared with you, then you cannot remove the other person's access, as they are the owner. In Sharing Settings they will appear as \"Is owner\".\nIf you have shared the file with someone else, then in Sharing Settings you can click the X to remove a person from viewing the file any longer.\nSharing settings overview describes more options in detail. You can prevent someone from resharing a document, for example.\nImportant note: You cannot prevent a person from retaining a local copy of a document if they have already downloaded a copy to their computer. They will no longer be able to access the live document, but can reopen a document they have saved."}}},{"rowIdx":3750,"cells":{"text":{"kind":"string","value":"H: Putting my company directory into Google Sites with pictures\n\nI'm using this code to pull the name and emails of my users into an intranet page on Google Sites. I was just wondering, is there some code that I can add to this so I can retrieve pictures? I would imagine it goes in below flexTable.setWidget(parseInt(i), 1, app.createLabel(user.getEmail())); but I'm not sure what I can add there to retrieve their picture from their profile. I would also like to do the same for phone number.\nfunction doGet() {\n var app = UiApp.createApplication(); \n var users = UserManager.getAllUsers(); \n var flexTable = app.createFlexTable().setBorderWidth(1);\n\n for (var i=0, len=users.length; i\n\nReplace it with \n\n \n <data:blog.pageName/> \n \n \n <data:blog.pageTitle/>\n \n\n\nAn alternative code if you want to display the blog title after the post title (in [Page name] | [Blog title] format)\n\n \n <data:blog.pageName/> |\n <data:blog.title/>\n \n \n <data:blog.pageTitle/>\n \n"}}},{"rowIdx":3755,"cells":{"text":{"kind":"string","value":"H: How do I delete text messages from Google Voice?\n\nI want to delete about three text messages from Google Voice.\nHow, when I only see the option to delete the entire conversation?\nAI: It seems like you can only delete entire conversations, based on this Google Voice issue about deleting SMS messages, \n\nGoogle Voice is big on the Conversation, or \"SMSThread\" as we have\n named it. I do not think it is even possible to delete a specific\n message out of a conversation or SMSThread, you have to delete the\n whole thing.\n\nI checked the Google Voice help page but it doesn't say much,\n\nHere's how you can delete a text or voicemail message or a recorded call on the Google Voice website: Select the checkbox to the left of the message or call you want to delete. Click the Delete button at the top of the page.\n\nThere might be a workaround. I don't have any Google Voice SMS messages that I can access, in order to be certain (it was mentioned in the first URL above). When Google Voice says delete, it is moving the conversation to the Trash. To really delete the conversation, you have to empty the Trash. Once the whole conversation is in the Trash, you should be able to see the ID associated with each SMS message. That should allow you to delete just the messages you want, then you can undelete the rest of the conversation's messages that you want to keep.\nI also noticed a way to count how many text messages you've sent but not deleted using Google Voice, just in case you want to keep a tally."}}},{"rowIdx":3756,"cells":{"text":{"kind":"string","value":"H: Using the Google Admin SDK\n\nI'm trying to use the Google Admin SDK to get all of the users for a directory on our site but I'm trying to figure out what exactly page on line 4 of the code means.\nfunction listAllUsers() {\n var pageToken, page;\n do {\n page = AdminDirectory.Users.list({\n domain: 'example.com',\n orderBy: 'givenName',\n maxResults: 100,\n pageToken: pageToken\n });\n var users = page.users;\n if (users) {\n for (var i = 0; i < users.length; i++) {\n var user = users[i];\n Logger.log('%s (%s)', user.name.fullName, user.primaryEmail);\n }\n } else {\n Logger.log('No users found.');\n }\n pageToken = page.nextPageToken;\n } while (pageToken);\n }\nAI: There are couple of things you need to do when performing this piece of code.\n\nenable the Admin Directory API in the script editor\n\nenable the Drive SDK from the Google Developers Console\n\n\nin the Admin console of your Google Apps domain, under Security, enable API access:\n\nadd proper domain name, ie not example.com \n\nI just tried the following revised code, with my own domain name:\nfunction listAllUsers() {\n var users = AdminDirectory.Users.list({domain: 'jacobjantuinstra.nl'}).users;\n if(users.length != 0) {\n for (var i=0; i