{ // 获取包含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\n\n```\n\r\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T11:10:53.710"},"LastActivityDate":{"kind":"string","value":"2023-02-21T04:44:13.123"},"LastEditDate":{"kind":"string","value":"2023-02-21T04:44:13.123"},"LastEditorUserId":{"kind":"number","value":19694359,"string":"19,694,359"},"OwnerUserId":{"kind":"number","value":19694359,"string":"19,694,359"},"Tags":{"kind":"null"}}},{"rowIdx":1248840,"cells":{"Id":{"kind":"number","value":75334948,"string":"75,334,948"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75330295,"string":"75,330,295"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"What you're seeing is correct and normal. Merging makes a merge commit; that's what a merge is. So:\n\n1. You wanted GitHub to merge alteracoesPequenas into master, closing the pull request; but GitHub wouldn't do it, because of merge conflicts.\n2. So you resolved the conflicts by doing a reverse merge of master into alteracoesPequenas. (Merge commit)\n3. Then you were able to have GitHub merge alteracoesPequenas into master, which was your goal. (Merge commit)\n\n\nAll very right\nand proper and completely standard. Don't worry, be happy.\n Another psychological issue here may be GitHub's way of presenting what happened. This is not a topological diagram, it's just a flat list of commits reachable from `master`. The first merge commit you did isn't really \"on\" `master` in the sense you probably think of it; it's \"on\" `alteracoesPequenas`. Only one merge commit is \"on\" `master`, namely the merge commit that closed the pull request.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T11:17:33.257"},"LastActivityDate":{"kind":"string","value":"2023-02-03T11:40:43.840"},"LastEditDate":{"kind":"string","value":"2023-02-03T11:40:43.840"},"LastEditorUserId":{"kind":"number","value":341994,"string":"341,994"},"OwnerUserId":{"kind":"number","value":341994,"string":"341,994"},"Tags":{"kind":"null"}}},{"rowIdx":1248841,"cells":{"Id":{"kind":"number","value":75335669,"string":"75,335,669"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75324359,"string":"75,324,359"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Instead of adding to the start of a textbox insrt at the end use\n```\nfield.insert (END, field text)\n```\n\nYou are inserting the text at first place try inserting at the end\n```\n#Tk Stuff\n\nwindow = tk.Tk()\nwindow.geometry(\"1200x1200\")\nwindow.title(\"MSU RPG\")\nfield = tk.Text(window, height = 15,width = 45,font=(\"Arial\", 16))\nfield.grid(row=1,column=1,columnspan=11)\n\n#Tk field text\n\nfield_text = \"\"\ndef atf(sth):\n global field_text\n field_text = field_text+str(sth)\n field.delete(\"1.0\", \"end\")\n field.insert (END, field text)\n\ndef clear():\n global field_text\n field_text= \"\"\n field.delete(\"1.0\", \"end\")\n```\n\nI hope it would solve your problems.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T12:20:17.853"},"LastActivityDate":{"kind":"string","value":"2023-02-03T12:20:17.853"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":20155468,"string":"20,155,468"},"Tags":{"kind":"null"}}},{"rowIdx":1248842,"cells":{"Id":{"kind":"number","value":75335695,"string":"75,335,695"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":74628459,"string":"74,628,459"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Since your data's alrady in an Excel spreadsheet, you can use Excel to manipulate your data into a simple floating point number of degrees that Google Earth will read. The end result will look like this:\n[](https://i.stack.imgur.com/RdKgu.png)\n\n| Test coordinate | degrees | digits(minutes) | digits (whole seconds) | digits(fractional seconds) | decimal coordinate degrees | \n| --------------- | ------- | --------------- | ---------------------- | -------------------------- | -------------------------- | \n| 12 | =FLOOR(D6,1) | =FLOOR(D6,0.01)-E6 | =FLOOR(D6,0.0001)-SUM(E6+F6) | =D6-SUM(E6:G6) | =E6+((F6100)/60)+((G610000)/60/60)+((H6*10000)/60/60) | \n| Check multipliers in I5 | | =F6*100 | =G6*10000 | =H6*10000 | | \n\n\nRow 7 in the picture is just to check that the decimal points were setup correctly and can be removed. The forumlas are included in the table above. Make a set of these formulas for each of the coordinates (I'm guessing ther lat and lng) in each row. Google Earth will read coordinate degrees.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T12:22:33.977"},"LastActivityDate":{"kind":"string","value":"2023-02-03T12:22:33.977"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":1429266,"string":"1,429,266"},"Tags":{"kind":"null"}}},{"rowIdx":1248843,"cells":{"Id":{"kind":"number","value":75335937,"string":"75,335,937"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75335207,"string":"75,335,207"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"For two successive polynomials P and Q, I suggest simply solving the [assignment problem](https://en.wikipedia.org/wiki/Assignment_problem) to pair each root of P to the closest root of Q.\nYou can use scipy's `linear_sum_assignment` along with `distance_matrix` to find the best assignment of P's roots with Q's roots.\n```\nimport numpy as np\nfrom scipy.optimize import linear_sum_assignment\nfrom scipy.spatial import distance_matrix\nimport matplotlib.pyplot as plt\n\ndef get_root_sequence(sequence_of_polynomials):\n r0 = np.roots(sequence_of_polynomials[0])\n roots = [r0]\n for P in sequence_of_polynomials[1:]:\n r1 = np.roots(P)\n _, idx = linear_sum_assignment(distance_matrix(r0.reshape(3, 1), r1.reshape(3,1)))\n r1 = r1[idx]\n roots.append(r1)\n r0 = r1\n return np.array(roots)\n\nsequence_of_polynomials = np.linspace((1,0,0,-1), (1,-7-2j,15+9j,-10-10j), 100)\nroots = get_root_sequence(sequence_of_polynomials)\n\nplt.axes().set_aspect('equal')\n\nfor i in range(3):\n r = roots[:, i]\n ordinal = ('first', 'second', 'third')[i]\n plt.plot(r.real, r.imag, label=f'{ordinal} root')\n\nfor triangle, label in zip((roots[0], roots[-1]), ('x³-1', '(x-2)(x-2-i)(x-3-i)')):\n triangle = triangle[[0,1,2,0]]\n plt.plot(triangle.real, triangle.imag, label=label)\n\nplt.legend(loc='best')\nplt.xlabel('Real part')\nplt.ylabel('Imaginary part')\nplt.show()\n```\n\n[](https://i.stack.imgur.com/GnTnP.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T12:45:43.417"},"LastActivityDate":{"kind":"string","value":"2023-02-03T13:01:51.530"},"LastEditDate":{"kind":"string","value":"2023-02-03T13:01:51.530"},"LastEditorUserId":{"kind":"number","value":3080723,"string":"3,080,723"},"OwnerUserId":{"kind":"number","value":3080723,"string":"3,080,723"},"Tags":{"kind":"null"}}},{"rowIdx":1248844,"cells":{"Id":{"kind":"number","value":75336288,"string":"75,336,288"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75336124,"string":"75,336,124"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"try `document.getElementsByClassName('overallTable')[0].innerHTML`\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T13:18:14.200"},"LastActivityDate":{"kind":"string","value":"2023-02-03T13:56:43.960"},"LastEditDate":{"kind":"string","value":"2023-02-03T13:56:43.960"},"LastEditorUserId":{"kind":"number","value":2181514,"string":"2,181,514"},"OwnerUserId":{"kind":"number","value":21118830,"string":"21,118,830"},"Tags":{"kind":"null"}}},{"rowIdx":1248845,"cells":{"Id":{"kind":"number","value":75336361,"string":"75,336,361"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75334288,"string":"75,334,288"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Usually, installing the previous version or slightly older version of the plugin works. Try installing the previous version of PHP Intelephense. Once encountered this on VS Code. All the best.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T13:25:48.820"},"LastActivityDate":{"kind":"string","value":"2023-02-03T13:25:48.820"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":954797,"string":"954,797"},"Tags":{"kind":"null"}}},{"rowIdx":1248846,"cells":{"Id":{"kind":"number","value":75336487,"string":"75,336,487"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75336124,"string":"75,336,124"},"Score":{"kind":"number","value":2,"string":"2"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You can use `html()` function of jQuery.\n`$('.overallTable').html();`\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T13:37:43.447"},"LastActivityDate":{"kind":"string","value":"2023-02-03T13:37:43.447"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":16533364,"string":"16,533,364"},"Tags":{"kind":"null"}}},{"rowIdx":1248847,"cells":{"Id":{"kind":"number","value":75336675,"string":"75,336,675"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75331194,"string":"75,331,194"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Try this\n(edited to make more efficient with single pass process)\n```\nlet Source = Excel.CurrentWorkbook(){[Name=\"Table15\"]}[Content],\n\nprocess = (zzz as list) => let x= List.Accumulate( zzz,{0},( state, current ) => \n if List.Last(state) =0 then List.Combine ({state,{6.4+current}}) else \n if List.Last(state)+current >=12.8 then List.Combine ({state,{12.8}}) else \n if List.Last(state)+current <=1.28 then List.Combine ({state,{1.28}}) else \n List.Combine ({state,{List.Last(state)+current}})\n) in x,\n\n#\"Grouped Rows\" = Table.Group(Source, {\"Category\"}, {{\"data\", each \n let a=process(_[Values]) \n in Table.AddColumn(_, \"Custom Cumulative\", each a{[Index]}), type table }}),\n#\"Expanded data\" = Table.ExpandTableColumn(#\"Grouped Rows\", \"data\", {\"Index\", \"Values\", \"Custom Cumulative\"}, {\"Index\", \"Values\", \"Custom Cumulative\"})\nin #\"Expanded data\"\n```\n\n[](https://i.stack.imgur.com/NWHCL.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T13:53:59.650"},"LastActivityDate":{"kind":"string","value":"2023-02-06T13:37:40.117"},"LastEditDate":{"kind":"string","value":"2023-02-06T13:37:40.117"},"LastEditorUserId":{"kind":"number","value":9264230,"string":"9,264,230"},"OwnerUserId":{"kind":"number","value":9264230,"string":"9,264,230"},"Tags":{"kind":"null"}}},{"rowIdx":1248848,"cells":{"Id":{"kind":"number","value":75336849,"string":"75,336,849"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75325732,"string":"75,325,732"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The problem was, that my keycloak (on a different port) rejected to load the working scripts. After handling this problems, the editor is working fine.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T14:07:59.227"},"LastActivityDate":{"kind":"string","value":"2023-02-03T14:07:59.227"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":21134340,"string":"21,134,340"},"Tags":{"kind":"null"}}},{"rowIdx":1248849,"cells":{"Id":{"kind":"number","value":75337002,"string":"75,337,002"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75334847,"string":"75,334,847"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"It is the error when copy from some document. The symbol `'` will become `‘` or `’`\nYou need to change all the `‘` `’` to `'`.\n```\n\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T14:20:23.560"},"LastActivityDate":{"kind":"string","value":"2023-02-03T14:20:23.560"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":2692683,"string":"2,692,683"},"Tags":{"kind":"null"}}},{"rowIdx":1248850,"cells":{"Id":{"kind":"number","value":75337014,"string":"75,337,014"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75309204,"string":"75,309,204"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Seems like it's a bottom border which comes from `.MuiDataGrid-cell`. Just set it to `none`.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T14:21:18.127"},"LastActivityDate":{"kind":"string","value":"2023-02-03T14:21:18.127"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":14445498,"string":"14,445,498"},"Tags":{"kind":"null"}}},{"rowIdx":1248851,"cells":{"Id":{"kind":"number","value":75337633,"string":"75,337,633"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75333301,"string":"75,333,301"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Given the amount of transformation that needs to occur, it would be worth doing this in the DWH. Power BI does well with a star schema, so it would be good to break out dimensions like country, store and date into their own tables.\nYou might also work the measures into a single fact table - or maybe two if some of the facts are transactional and others are semi-additive snapshot facts. i.e. profit vs. number of staff. Designed right, the model could support all of the dashboards, so you would not need a report table for each.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T15:12:43.577"},"LastActivityDate":{"kind":"string","value":"2023-02-03T15:12:43.577"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":2568521,"string":"2,568,521"},"Tags":{"kind":"null"}}},{"rowIdx":1248852,"cells":{"Id":{"kind":"number","value":75337799,"string":"75,337,799"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75337123,"string":"75,337,123"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The solution for us was to:\n\n1. Locate the actual DLL file (Microsoft.Data.SqlClient.dll) on the developer's desktop filesystem (easy to find; once you're referenced it using NuGet it gets copied to multiple places)\n2. Add it to the web project (we placed it right in the root)\n3. Mark it (via Properties tool window) as Copy Always\n\n\nStep 3 results in our .csproj file looks like this:\n```\n\n \n Always\n \n\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T15:25:47.633"},"LastActivityDate":{"kind":"string","value":"2023-02-03T15:25:47.633"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":1238986,"string":"1,238,986"},"Tags":{"kind":"null"}}},{"rowIdx":1248853,"cells":{"Id":{"kind":"number","value":75337853,"string":"75,337,853"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75296402,"string":"75,296,402"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"This page in the documentation shows how to handle the processing response, including extracting the raw text from the document, which can be loaded into a TXT file. It also explains the structure of the Document.json output.\n[https://cloud.google.com/document-ai/docs/handle-response#basic_text](https://cloud.google.com/document-ai/docs/handle-response#basic_text)\nEDIT: New tool/sdk available\nYou can also use the [Document AI Toolbox](https://cloud.google.com/document-ai/docs/handle-response#toolbox) SDK for more utility/post processing functions to make some of this handling easier.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T15:29:58.010"},"LastActivityDate":{"kind":"string","value":"2023-02-21T19:10:33.493"},"LastEditDate":{"kind":"string","value":"2023-02-21T19:10:33.493"},"LastEditorUserId":{"kind":"number","value":6216983,"string":"6,216,983"},"OwnerUserId":{"kind":"number","value":6216983,"string":"6,216,983"},"Tags":{"kind":"null"}}},{"rowIdx":1248854,"cells":{"Id":{"kind":"number","value":75337902,"string":"75,337,902"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75337818,"string":"75,337,818"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Apparently, in your (which you didn't post here completely, but which is what produces the screenshot you added), your footer has a fixed position (or something similar) at the bottom. So simply move the `hr` tag inside the `.footer` div to make it part of that footer (i.e. at the bottom):\n```\n.footer {\n position: fixed;\n bottom: 0;\n}\n```\n```\n
\n
Gemacht mit von FastDrop Gaming\n
\n &copy; FastDrop Gaming. Alle Rechte vorbehalten.
\n
ImpressumKontakt>Datenschutz
\n
\n```\n\r\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T15:34:31.153"},"LastActivityDate":{"kind":"string","value":"2023-02-03T15:34:31.153"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":5641669,"string":"5,641,669"},"Tags":{"kind":"null"}}},{"rowIdx":1248855,"cells":{"Id":{"kind":"number","value":75337923,"string":"75,337,923"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75337410,"string":"75,337,410"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"As Joachim Sauer and Tan Yu Hau Sean suggest, `%` does things you may not expect on negative numbers. If `a` is negative, `a%b` will be a number between `-b` and `0`.\nIf you add a method like this\n```\npublic static int mod(int a, int b) {\n return (a%b+b)%b;\n}\n```\n\nand replace your instances of `%` with calls to it, e.g.:\n```\nint C = mod(a* val + b,26);\n```\n\nthings will work a lot better.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T15:36:01.863"},"LastActivityDate":{"kind":"string","value":"2023-02-03T16:00:56.383"},"LastEditDate":{"kind":"string","value":"2023-02-03T16:00:56.383"},"LastEditorUserId":{"kind":"number","value":21105992,"string":"21,105,992"},"OwnerUserId":{"kind":"number","value":21105992,"string":"21,105,992"},"Tags":{"kind":"null"}}},{"rowIdx":1248856,"cells":{"Id":{"kind":"number","value":75338159,"string":"75,338,159"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":71595777,"string":"71,595,777"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"I would say that approaches using `dplyr`/`dbplyr` are better when working with the WRDS PostgreSQL database.\nTo do the equivalent of `(obs=10)`, do something like the following. The real payoff to `dbplyr`-based approaches comes when merging multiple large tables, which happens on the WRDS PostgreSQL server without needing to download data.\nFor many more examples like this one, see [here](https://iangow.github.io/far_book/intro.html).\n```\nlibrary(dplyr, warn.conflicts = FALSE)\nlibrary(DBI)\n\npg <- dbConnect(RPostgres::Postgres())\n\ndjones.djdaily <- tbl(pg, sql(\"SELECT * FROM djones.djdaily\"))\n\ndata <- \n djones.djdaily %>%\n select(date, dji) %>%\n collect(n = 10)\n\ndata\n#> # A tibble: 10 × 2\n#> date dji\n#> \n#> 1 1896-05-26 40.9\n#> 2 1896-05-27 40.6\n#> 3 1896-05-28 40.2\n#> 4 1896-05-29 40.6\n#> 5 1896-06-01 40.6\n#> 6 1896-06-02 40.0\n#> 7 1896-06-03 39.8\n#> 8 1896-06-04 39.9\n#> 9 1896-06-05 40.3\n#> 10 1896-06-08 39.8\n```\n\n[reprex v2.0.2](https://reprex.tidyverse.org)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T15:57:08.167"},"LastActivityDate":{"kind":"string","value":"2023-02-03T15:57:08.167"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":745737,"string":"745,737"},"Tags":{"kind":"null"}}},{"rowIdx":1248857,"cells":{"Id":{"kind":"number","value":75338275,"string":"75,338,275"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75301313,"string":"75,301,313"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"If you run EmEditor as , please run EmEditor as . Please run `emeditor.exe` without a shortcut to see if macros run correctly.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:08:23.060"},"LastActivityDate":{"kind":"string","value":"2023-02-03T16:08:23.060"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":13484937,"string":"13,484,937"},"Tags":{"kind":"null"}}},{"rowIdx":1248858,"cells":{"Id":{"kind":"number","value":75338328,"string":"75,338,328"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75325352,"string":"75,325,352"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"How about this different take on the problem? Match one or more of the following: space OR a dash OR a percent sign OR a dollar sign OR an at sign OR a period (escaping the characters that have special regex meaning) and replace with an underscore. Note this takes care of the double underscore after \"Technical\".\n```\nwith tbl(data) as (\n select 'MSD 40001-ME-SPE-[XXXX] Technical%$Specification@REV9 (2021.05.27).xls' from dual\n)\nselect regexp_replace(data, '( |\\-|%|\\$|@|\\.)+', '_') fixed\nfrom tbl;\n\nFIXED \n---------------------------------------------------------------------\nMSD_40001_ME_SPE_[XXXX]_Technical_Specification_REV9_(2021_05_27)_xls\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:12:34.227"},"LastActivityDate":{"kind":"string","value":"2023-02-03T16:12:34.227"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":2543416,"string":"2,543,416"},"Tags":{"kind":"null"}}},{"rowIdx":1248859,"cells":{"Id":{"kind":"number","value":75338413,"string":"75,338,413"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75337846,"string":"75,337,846"},"Score":{"kind":"number","value":-3,"string":"-3"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Solved as per the below:\n```\n#include \n#include \n#include \n\n\n\n//lresult callback prototype\nLRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);\n\n\n\n//window handles\nHWND hMainWindow;\nHINSTANCE hMainInstance;\n\nHWND hLblOutput;\nHWND hTxtInput;\nHWND hButton;\n\nCHAR s_text_1[]{ \"Some text..\" };\nCHAR s_text_2[]{ 0 };\n\n\n#define IDC_TEXTBOX 1000\n#define IDC_BUTTON 1001\n\n\n\n\n//call to winmain - equivalent of main for win32 environments\nint WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)\n{\n\n\n MSG msg = { 0 };\n WNDCLASS wc = { 0 };\n wc.lpfnWndProc = WndProc;\n wc.hInstance = hInstance;\n wc.hbrBackground = (HBRUSH)(COLOR_BACKGROUND);\n wc.lpszClassName = TEXT(\"NiceWindowsApp\");\n if (!RegisterClass(&wc))\n return 1;\n\n hMainWindow = CreateWindow(wc.lpszClassName, TEXT(\"My Windows Application\"), WS_OVERLAPPEDWINDOW | WS_VISIBLE,\n 0, 0, 640, 480, 0, 0, hInstance, NULL);\n\n hMainInstance = wc.hInstance;\n\n while (GetMessage(&msg, NULL, 0, 0))\n {\n TranslateMessage(&msg);\n DispatchMessage(&msg);\n }\n return 0;\n}\n//callback definition\nLRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)\n{\n int offset = 0;\n switch (message) {\n\n case WM_CREATE:\n hMainWindow = hWnd;\n hTxtInput = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT(\"EDIT\"), s_text_1,\n WS_VISIBLE | WS_CHILD | ES_LEFT, 50, 50, 400, 25, hWnd,\n (HMENU)IDC_TEXTBOX, hMainInstance, NULL);\n hButton = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT(\"BUTTON\"), TEXT(\"Press Me!\"), WS_VISIBLE | WS_CHILD | WM_COPY | ES_LEFT, 500, 30, 100, 60, hWnd,\n (HMENU)IDC_BUTTON, hMainInstance, NULL);\n break;\n\n case WM_COMMAND:\n if (LOWORD(wParam) == IDC_BUTTON)\n {\n \n //CANNOT HANDLE MORE THAN 20 CHARACTERS!!!\n std::wstring input;\n \n //GetWindowTextW(hTxtInput, reinterpret_cast ((char*)input.c_str()), 400);\n int lgth = GetWindowTextLength(hTxtInput);\n //GetWindowTextW(hTxtInput, reinterpret_cast ((wchar_t*)input.c_str()), lgth);\n //GetWindowTextA(hTxtInput, char[], 400);\n GetWindowText(hTxtInput, s_text_1, 255);\n \n\n \n ++offset;\n\n\n\n hLblOutput = CreateWindowEx(WS_EX_STATICEDGE, TEXT(\"EDIT\"), s_text_1, WS_VISIBLE | WS_CHILD | ES_READONLY | ES_LEFT, 50, 200 + offset * 26, 800, 25, hWnd,\n (HMENU)IDC_TEXTBOX, hMainInstance, NULL);\n SetWindowText(hLblOutput, s_text_1);\n\n \n\n }\n\n\n\n default:\n return DefWindowProc(hWnd, message, wParam, lParam);\n\n }\n\n return 0;\n}\n```\n\n[](https://i.stack.imgur.com/KEldT.png)\nThanks for your hints everybody.\nEDIT: I now realise that this solution is not technically perfect and can lead to undefined behaviour and/or memory leaks. I'll take the advice presented in the other answers and comments into account and adjust the code accordingly.\nEDIT 2.0 (2023.02.04): My most recent code is below. Hopefully it's more robust.\n```\n#include \n#include \n#include \n//last update - 04.02.2023 as per StackOverflow thread recommendations.\n\n\n//lresult callback prototype\nLRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);\n\n\n\n//window handles\nHWND hMainWindow;\nHINSTANCE hMainInstance;\n\nHWND hLblOutput;\nHWND hTxtInput;\nHWND hButton;\n\nCHAR s_text_1[]{ \"Some text..\" };\n\n\n#define IDC_TEXTBOX 1000\n#define IDC_BUTTON 1001\n\n\n\n\n//call to winmain - equivalent of main for win32 environments\nint WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)\n{\n\n\n MSG msg = { 0 };\n WNDCLASS wc = { 0 };\n wc.lpfnWndProc = WndProc;\n wc.hInstance = hInstance;\n wc.hbrBackground = (HBRUSH)(COLOR_BACKGROUND);\n wc.lpszClassName = TEXT(\"NiceWindowsApp\");\n if (!RegisterClass(&wc))\n return 1;\n\n hMainWindow = CreateWindow(wc.lpszClassName, TEXT(\"My Windows Application\"), WS_OVERLAPPEDWINDOW | WS_VISIBLE,\n 0, 0, 640, 480, 0, 0, hInstance, NULL);\n\n hMainInstance = wc.hInstance;\n\n while (GetMessage(&msg, NULL, 0, 0))\n {\n TranslateMessage(&msg);\n DispatchMessage(&msg);\n }\n return 0;\n}\n//callback definition\nLRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)\n{\n int offset = 0;\n switch (message) {\n\n case WM_CREATE:\n hMainWindow = hWnd;\n hTxtInput = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT(\"EDIT\"), s_text_1,\n WS_VISIBLE | WS_CHILD | ES_LEFT, 50, 50, 400, 25, hWnd,\n (HMENU)IDC_TEXTBOX, hMainInstance, NULL);\n hButton = CreateWindowEx(WS_EX_CLIENTEDGE, TEXT(\"BUTTON\"), TEXT(\"Press Me!\"), WS_VISIBLE | WS_CHILD | WM_COPY | ES_LEFT, 500, 30, 100, 60, hWnd,\n (HMENU)IDC_BUTTON, hMainInstance, NULL);\n break;\n\n case WM_COMMAND:\n if (LOWORD(wParam) == IDC_BUTTON)\n {\n \n \n std::wstring input;\n \n //resize added as suggested\n\n input.resize(GetWindowTextLengthW(hTxtInput)); \n GetWindowTextW(hTxtInput, input.data(), input.size() + 1);\n \n ++offset;\n\n hLblOutput = CreateWindowEx(WS_EX_STATICEDGE, TEXT(\"EDIT\"), s_text_1, WS_VISIBLE | WS_CHILD | ES_READONLY | ES_LEFT, 50, 200 + offset * 26, 800, 25, hWnd,\n (HMENU)IDC_TEXTBOX, hMainInstance, NULL);\n SetWindowTextW(hLblOutput, input.data());\n\n }\n\n\n\n default:\n return DefWindowProc(hWnd, message, wParam, lParam);\n\n }\n\n return 0;\n}\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:19:48.603"},"LastActivityDate":{"kind":"string","value":"2023-02-04T12:52:47.310"},"LastEditDate":{"kind":"string","value":"2023-02-04T12:52:47.310"},"LastEditorUserId":{"kind":"number","value":12045504,"string":"12,045,504"},"OwnerUserId":{"kind":"number","value":12045504,"string":"12,045,504"},"Tags":{"kind":"null"}}},{"rowIdx":1248860,"cells":{"Id":{"kind":"number","value":75338430,"string":"75,338,430"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75338139,"string":"75,338,139"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"There is an [open bug](https://github.com/angular/components/issues/26349) about this on the repo.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:21:54.340"},"LastActivityDate":{"kind":"string","value":"2023-02-03T16:21:54.340"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":884123,"string":"884,123"},"Tags":{"kind":"null"}}},{"rowIdx":1248861,"cells":{"Id":{"kind":"number","value":75338460,"string":"75,338,460"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75337818,"string":"75,337,818"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"you should put the hr inside the general div \"footer\" :\n```\n
\n
\n Gemacht mit von FastDrop Gaming\n
\n &copy; FastDrop Gaming. Alle Rechte vorbehalten.
\n \n
\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:24:16.867"},"LastActivityDate":{"kind":"string","value":"2023-02-03T16:24:16.867"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":11772682,"string":"11,772,682"},"Tags":{"kind":"null"}}},{"rowIdx":1248862,"cells":{"Id":{"kind":"number","value":75338485,"string":"75,338,485"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":64686116,"string":"64,686,116"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"I tried on my side, you need to delete the `form3` before `ListBox1.Items`. I think that is why. I tried everything possible. Hope this helps.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:26:16.343"},"LastActivityDate":{"kind":"string","value":"2023-02-03T16:26:16.343"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":21142041,"string":"21,142,041"},"Tags":{"kind":"null"}}},{"rowIdx":1248863,"cells":{"Id":{"kind":"number","value":75338517,"string":"75,338,517"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75337846,"string":"75,337,846"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"One correct way to do this is:\n```\nstd::wstring text; \ntext.resize(GetWindowTextLengthW(hTxtInput));\ntext.resize(GetWindowTextW(hTxtInput, text.data(), text.size() + 1));\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:29:14.773"},"LastActivityDate":{"kind":"string","value":"2023-02-03T22:04:55.117"},"LastEditDate":{"kind":"string","value":"2023-02-03T22:04:55.117"},"LastEditorUserId":{"kind":"number","value":758345,"string":"758,345"},"OwnerUserId":{"kind":"number","value":758345,"string":"758,345"},"Tags":{"kind":"null"}}},{"rowIdx":1248864,"cells":{"Id":{"kind":"number","value":75338494,"string":"75,338,494"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75236709,"string":"75,236,709"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"@MikeT\nSorry for the late response...(I am using an answer because It's to long for a comment and editing my question would be messy)\nI was nearly able to get everything I wanted, using this way (example series categories):\nI saved the fetched categories (using retrofit) in a new POJO, named SeriesCategory:\n```\n@Entity(\n foreignKeys = [\n ForeignKey(\n entity = AccountData::class,\n parentColumns = [\"totalAccountData\"],\n childColumns = [\"accountData\"],\n onDelete = ForeignKey.CASCADE,\n onUpdate = ForeignKey.CASCADE,\n )\n ]\n)\n@Parcelize\ndata class SeriesCategory(\n @PrimaryKey(autoGenerate = false)\n val id: String,\n val title: String,\n @ColumnInfo(index = true)\n var accountData: String,\n var favorite: Boolean,\n val idByAccountData: String\n) : Parcelable\n```\n\nusing...\n```\n@Insert(onConflict = OnConflictStrategy.REPLACE)\n suspend fun insertSeriesCategory(seriescategory: List)\n\n val mappedSeriesCategoryList = seriescatresponse.js.map { SeriesCategorybyAccount(it.id, it.title, totalAccountData, isFavorite, \"${it.id}$totalAccountData\") }\n lifecycleScope.launch {\n mappedSeriesCategoryList.forEach { dao.insertSeriesCategory(mappedSeriesCategoryList) }\n }\n```\n\nIn the Dao & SeriesCategoryFragment I use following code to get all categories from this specific account:\n```\n@Query(\"SELECT * FROM seriesCategory WHERE accountData=:totalAccountData\")\n fun getSeriesCategoriesPerAccount(totalAccountData: String): LiveData>\n\n viewModel.getSeriesCategoryByAccount(totalAccountData, this@SeriesCategoryFragment.requireActivity()).observe(viewLifecycleOwner) {\n seriesCategoryAdapter.submitList(it)\n }\n```\n\nAs I am using a checkbox in the SeriesCategoryFragment-recyclerview I managed the checkbox in the adapter and used following code in the Dao & SelectedSeriesCategoryFragment:\n```\n@Query(\"SELECT * FROM seriesCategory WHERE accountData=:totalAccountData AND favorite = 1\")\n fun getSelectedSeriesCategoriesPerAccount(totalAccountData: String): LiveData>\n\n viewModel.getSelectedSeriesCategoryByAccount(totalAccountData, this@SeriesSelectedFragment.requireActivity()).observe(viewLifecycleOwner) {\n selectedSeriesCategoryAdapter.submitList(it)\n }\n```\n\nThats working fine, when in the SeriesCategoryFragment a checkbox is checked(favorite = true), the category is \"send\" to the SelectedSeriesCategoryFragment, if it's unchecked (favorite = false) it's removed.\nBut at the moment I am not able to save this in my room database. So when I have for example following categories:\nCategoryA, CategoryB, CategoryC, CategoryD\nThe user checks CategoryA and CategoryC using the checkbox, this two categories are then displayed in the SelectedSeriesCategoryFragment-recyclerview. When he unchecks the checkbox the category is removed. That's all ok.\nIn the same clicklistener I am using also @Update with (it = SeriesCategory):\n```\nviewModel.updateSeriesCategory(it, this@SeriesCategoryFragment.requireActivity())\n```\n\nRestarting the app the database shows me favorite = 1 (for true) on the categories that where checked before the restart. But the checkboxes are unchecked - an the @Query I use in the SelectedSeriesCategoryFragment (see above) doesn't seem to work anymore -> means, it is empty.\nOn a second restart the database shows all categories as favorite = 0 (for false) - probably because the checkbox was empty before the second restart. So as I understand, the idea I have should work - but only if the checked Checkboxes stay checked also after the restart. Can I handle this somehow with room?\nOr is this a completely recyclerview-specific problem?\nEventually, my Viewholder in the Adapter looks like this:\n```\ninner class ViewHolder(val binding: RvItemSeriescategoryBinding) : RecyclerView.ViewHolder(binding.root) {\n fun bind(category: SeriesCategory) {\n binding.apply {\n rvItemSeriescategory.text = category.title\n checkboxSeriescategory.isChecked = category.favorite\n checkboxSeriescategory.setOnClickListener {\n if (checkboxSeriescategory.isChecked) {\n category.favorite = true\n onClickListener.onClick(category)\n }\n if (!checkboxSeriescategory.isChecked)\n category.favorite = false\n onClickListener.onClick(category)\n }\n if (category.favorite == true){\n checkboxSeriescategory.isChecked = true\n }\n }\n }\n }\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:26:52.833"},"LastActivityDate":{"kind":"string","value":"2023-02-03T16:26:52.833"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":17931443,"string":"17,931,443"},"Tags":{"kind":"null"}}},{"rowIdx":1248865,"cells":{"Id":{"kind":"number","value":75338620,"string":"75,338,620"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75337558,"string":"75,337,558"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Assuming no Excel version constraint per tag listed in the question. You can try the following in cell `D2`:\n```\n=LET(A, A2:A8, B, B2:B8, cnts, COUNTIFS(A,A,B,B), ux, UNIQUE(A),\n out, MAP(ux, LAMBDA(x, TEXTJOIN(\",\",,UNIQUE(FILTER(B, (A=x) \n * (cnts = MAX(FILTER(cnts, A=x)))))))), HSTACK(ux, out))\n```\n\nThe formula considers the scenario where one or more values have the maximum number of occurrences, like in the case of `C` value, both values `13`, and `14` are present in just once. We use `TEXTJOIN` to collect both values.\nHere is the output:\n[](https://i.stack.imgur.com/cTtHM.png)\n: You cannot use inside `MAP` the `MAXIFS` function because it is a [RACON function](https://exceljet.net/articles/excels-racon-functions) and `cnts` is not a range. We use as a workaround `MAX` filtering by rows that match `A=x`. The approach of using: `MAX((A=x) * cnts)` also works, but under the assumption that all filtered values are not negative.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:37:07.757"},"LastActivityDate":{"kind":"string","value":"2023-02-03T17:35:15.563"},"LastEditDate":{"kind":"string","value":"2023-02-03T17:35:15.563"},"LastEditorUserId":{"kind":"number","value":6237093,"string":"6,237,093"},"OwnerUserId":{"kind":"number","value":6237093,"string":"6,237,093"},"Tags":{"kind":"null"}}},{"rowIdx":1248866,"cells":{"Id":{"kind":"number","value":75338829,"string":"75,338,829"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75338387,"string":"75,338,387"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The `peutJouer` property in the screenshot you shared is a numeric value. The code you use to read it however does:\n```\nsnapshot.getValue(String.class)\n```\n\nSince the snapshot does not have a `String` value, you can't retrieve it like that.\nInstead, you'll want to extract is with:\n```\npeutjouer = snapshot.getValue(Long.class);\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T16:55:42.163"},"LastActivityDate":{"kind":"string","value":"2023-02-03T16:55:42.163"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":209103,"string":"209,103"},"Tags":{"kind":"null"}}},{"rowIdx":1248867,"cells":{"Id":{"kind":"number","value":75339303,"string":"75,339,303"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75338772,"string":"75,338,772"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The vectorizer actually works as expected. Spark stores vectors as [SparseVectors](https://spark.apache.org/docs/3.2.1/api/python/reference/api/pyspark.ml.linalg.SparseVector.html) when they contain many zeros and as [DenseVectors](https://spark.apache.org/docs/3.2.1/api/python/reference/api/pyspark.ml.linalg.DenseVector.html) otherwise.\n```\ndf = spark.createDataFrame(\n [(0.0, 0.0, 0.0, 0.0, 3.0, 3.35), (.1, .2, .3, .4, .5, .5)],\n ['a', 'b', 'c', 'd', 'e', 'f']\n)\nfinal_vect = VectorAssembler(inputCols=['a', 'b', 'c', 'd', 'e', 'f'], outputCol='X')\n```\n\n```\n>>> final_vect.transform(df).show(truncate=False)\n+---+---+---+---+---+----+-------------------------+\n|a |b |c |d |e |f |X |\n+---+---+---+---+---+----+-------------------------+\n|0.0|0.0|0.0|0.0|3.0|3.35|(6,[4,5],[3.0,3.35]) |\n|0.1|0.2|0.3|0.4|0.5|0.5 |[0.1,0.2,0.3,0.4,0.5,0.5]|\n+---+---+---+---+---+----+-------------------------+\n\n>>> final_vect.transform(df).collect()\n[Row(a=0.0, b=0.0, c=0.0, d=0.0, e=3.0, f=3.35, X=SparseVector(6, {4: 3.0, 5: 3.35})), Row(a=0.1, b=0.2, c=0.3, d=0.4, e=0.5, f=0.5, X=DenseVector([0.1, 0.2, 0.3, 0.4, 0.5, 0.5]))]\n```\n\nSpark displays a sparse vector as a 3-tuple `(size, indices, values)` where `size` is the size of the vector, `indices` is the list of indices for the value is not zero and `values` contains the corresponding values.\nThe way it is displayed in python when you call `collect` is a bit clearer. You can see the name of the class and it displays a dictionary of non-zero values for sparse vectors.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T17:44:00.633"},"LastActivityDate":{"kind":"string","value":"2023-02-03T17:56:42.977"},"LastEditDate":{"kind":"string","value":"2023-02-03T17:56:42.977"},"LastEditorUserId":{"kind":"number","value":8893686,"string":"8,893,686"},"OwnerUserId":{"kind":"number","value":8893686,"string":"8,893,686"},"Tags":{"kind":"null"}}},{"rowIdx":1248868,"cells":{"Id":{"kind":"number","value":75339438,"string":"75,339,438"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":13188049,"string":"13,188,049"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"\n### Nvidia Visual Profiler\n\n\n- \n```\n# If you using conda:\nconda activate env_name\n# Run the Nvidia Visual Profiler:\nnsight-sys\n```\n\n- - - \n\n### Nvidia Nsight Compute\n\n\n- \n```\n# If you using conda:\nconda activate env_name\n\n# To get the current python path:\nwhich python3\n\n# Run the Nvidia Nsight Compute:\nnv-nsight-cu\n```\n\n- - - - \n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T17:55:25.547"},"LastActivityDate":{"kind":"string","value":"2023-02-03T17:55:25.547"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":4982017,"string":"4,982,017"},"Tags":{"kind":"null"}}},{"rowIdx":1248869,"cells":{"Id":{"kind":"number","value":75339800,"string":"75,339,800"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":49234311,"string":"49,234,311"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"\nWhen you have a request open in Postman, show the \"Code\" pane at the right by clicking the `` button seen in the right-hand toolbar.\n[](https://i.stack.imgur.com/0WpTj.png)\nThen in the dropdown header for code type, choose \"HTTP\".\n[](https://i.stack.imgur.com/Yd8gh.png)\nThe line numbers in the HTTP snippet are significant -- in my screenshot, the last four displayed lines are concatenated into line 6 of the actual HTTP.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T18:39:31.217"},"LastActivityDate":{"kind":"string","value":"2023-02-03T18:47:25.057"},"LastEditDate":{"kind":"string","value":"2023-02-03T18:47:25.057"},"LastEditorUserId":{"kind":"number","value":864696,"string":"864,696"},"OwnerUserId":{"kind":"number","value":864696,"string":"864,696"},"Tags":{"kind":"null"}}},{"rowIdx":1248870,"cells":{"Id":{"kind":"number","value":75339898,"string":"75,339,898"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":29206067,"string":"29,206,067"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"I recently had an issue with a request stalling as well. This may be helpful if you have exhausted all other fixes mentioned in other answers.\nIf you are using the fetch API for requests, then you may want to also try removing the 'keep-alive' property in the request options.\nThis was an annoying bug for me and removing this got rid of the stalling issue.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T18:50:21.830"},"LastActivityDate":{"kind":"string","value":"2023-02-03T18:50:21.830"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":16209133,"string":"16,209,133"},"Tags":{"kind":"null"}}},{"rowIdx":1248871,"cells":{"Id":{"kind":"number","value":75340399,"string":"75,340,399"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75339993,"string":"75,339,993"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"First: remove the line `cam1.SetActive(true)` under `public GameObject cam3;`. Its missing a semicolon and it must be placed in a function scope anyway, not in class declaration scope.\nSecond: this statement (and the other two) `if (cam1.SetActive(true))` cant work because `SetActive` does not return a `bool` value. You probably wanted `if (cam1.activeSelf)`.\nYou may spend some time improving your knowledge [C# coding basics in Unity](https://unity.com/how-to/learning-c-sharp-unity-beginners)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T19:47:47.720"},"LastActivityDate":{"kind":"string","value":"2023-02-03T19:47:47.720"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":20931211,"string":"20,931,211"},"Tags":{"kind":"null"}}},{"rowIdx":1248872,"cells":{"Id":{"kind":"number","value":75340425,"string":"75,340,425"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75340339,"string":"75,340,339"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"I use pandastable to display dataframes in tkinter\n> Install: pip install pandastable\nCode:\n```\nimport pandas as pd\nfrom pandastable import Table\n\n#Create DataFrame class\nclass DataFrameTable(Frame):\n def __init__(self, parent=None, df=pd.DataFrame()):\n super().__init__()\n self.parent = parent\n self.pack(fill=BOTH, expand=True) \n self.table = Table(\n self, dataframe=df,\n showtoolbar=False,\n showstatusbar=True,\n editable=False)\n self.table.show()\n\n#Tkinter window\nroot = Tk()\n#Show Table\nDataFrameTable(root, your_dataframe)\nroot.mainloop()\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T19:50:36.343"},"LastActivityDate":{"kind":"string","value":"2023-02-03T19:51:31.503"},"LastEditDate":{"kind":"string","value":"2023-02-03T19:51:31.503"},"LastEditorUserId":{"kind":"number","value":17749677,"string":"17,749,677"},"OwnerUserId":{"kind":"number","value":17749677,"string":"17,749,677"},"Tags":{"kind":"null"}}},{"rowIdx":1248873,"cells":{"Id":{"kind":"number","value":75340467,"string":"75,340,467"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75338395,"string":"75,338,395"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Perhaps you are looking for this\n```\n## Dependent reactive filter\n observeEvent(input$test_category, {\n \n if (is.null(input$test_category)) {\n subcatToShow = cat_sub_name$sub.category\n selected <- character(0)\n }else {\n subcatToShow = cat_sub_name %>% \n filter(category %in% input$test_category) %>% \n pull(sub.category)\n selected <- subcatToShow[1]\n }\n \n #Update the actual input\n updateSelectInput(session, \"test_subcategory\", choices = subcatToShow, \n selected = selected)\n \n },ignoreNULL = FALSE)\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T19:56:01.273"},"LastActivityDate":{"kind":"string","value":"2023-02-03T20:10:11.480"},"LastEditDate":{"kind":"string","value":"2023-02-03T20:10:11.480"},"LastEditorUserId":{"kind":"number","value":13333279,"string":"13,333,279"},"OwnerUserId":{"kind":"number","value":13333279,"string":"13,333,279"},"Tags":{"kind":"null"}}},{"rowIdx":1248874,"cells":{"Id":{"kind":"number","value":75340803,"string":"75,340,803"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75340755,"string":"75,340,755"},"Score":{"kind":"number","value":3,"string":"3"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You can use [numpy.power](https://numpy.org/doc/stable/reference/generated/numpy.power.html) :\n```\nimport numpy as np\n\ndf[\"2^Value\"] = np.power(2, df[\"Value\"])\n```\n\nOr simply, `2 ** df[\"Value\"]` as suggested by @.\nOutput :\n```\nprint(df)\n\n Value 2^Value\n0 0 1\n1 1 2\n2 3 8\n3 4 16\n```\n\n\n[](https://i.stack.imgur.com/XPRCE.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T20:36:33.707"},"LastActivityDate":{"kind":"string","value":"2023-02-03T20:59:22.060"},"LastEditDate":{"kind":"string","value":"2023-02-03T20:59:22.060"},"LastEditorUserId":{"kind":"number","value":16120011,"string":"16,120,011"},"OwnerUserId":{"kind":"number","value":16120011,"string":"16,120,011"},"Tags":{"kind":"null"}}},{"rowIdx":1248875,"cells":{"Id":{"kind":"number","value":75340818,"string":"75,340,818"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75340755,"string":"75,340,755"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You can use `.apply` with a lambda function\n```\ndf[\"new_column\"] = df[\"Value\"].apply(lambda x: x**2)\n```\n\nIn python the power operator is `**`\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T20:38:24.130"},"LastActivityDate":{"kind":"string","value":"2023-02-03T20:39:08.100"},"LastEditDate":{"kind":"string","value":"2023-02-03T20:39:08.100"},"LastEditorUserId":{"kind":"number","value":17749677,"string":"17,749,677"},"OwnerUserId":{"kind":"number","value":17749677,"string":"17,749,677"},"Tags":{"kind":"null"}}},{"rowIdx":1248876,"cells":{"Id":{"kind":"number","value":75340881,"string":"75,340,881"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75340755,"string":"75,340,755"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You can apply a function to each row in a dataframe by using the df.apply method. See [this documentation](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.apply.html) to learn how the method is used. Here is some untested code to get you started.\n```\n# a simple function that takes a number and returns\n# 2^n of that number\ndef calculate_2_n(n):\n return 2**n\n\n# use the df.apply method to apply that function to each of the \n# cells in the 'Value' column of the DataFrame\ndf['2_n_value'] = df.apply(lambda row : calculate_2_n(row['Value']), axis = 1)\n```\n\nThis code is a modified version of the code from [this G4G example](https://www.geeksforgeeks.org/apply-function-to-every-row-in-a-pandas-dataframe/)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T20:44:27.063"},"LastActivityDate":{"kind":"string","value":"2023-02-03T20:44:27.063"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":19642098,"string":"19,642,098"},"Tags":{"kind":"null"}}},{"rowIdx":1248877,"cells":{"Id":{"kind":"number","value":75340885,"string":"75,340,885"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":42743411,"string":"42,743,411"},"Score":{"kind":"number","value":2,"string":"2"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"A bubble in the pipeline (sometimes represented by a NOP) is the result of stalling for 1 cycle.\nA bubble is something you see and talk about when looking at a pipeline diagram of how instructions go through the pipeline, and what stage they're in at any given cycle. A bubble propagates through the pipeline, so it appears in each stage once. (For a structural hazard like instruction fetch competing with data load/store, the bubble will start in IF, like your first example.)\nA stall is something that a single stage decides to do, creating one or more bubbles depending on how long it stalls for.\n\n---\n\n\n\n### A row of bubbles vs. a bubble within the row for an instruction\n\n\nNotice that they've . As if you'd written a NOP in your program to fill the load delay slot (necessary on MIPS I R2000 / R3000 if you can't schedule other instructions to fill it; on later MIPS the ISA guarantees that hardware will stall for you). Except a true `nop` in the machine code still gets fetched and decoded. MIPS doesn't have a special opcode for `nop`, you write one as `add $zero, $zero, $zero` or equivalent with no inputs to stall for and an output of `$zero` which ignores writes, always reads as zero.\nVertical rows are for instructions, not time. Stalls mean that later instructions (or stages of them) start farther to the right, not in the cycle after the current one reaches that stage.\nThe diagram could indicate the same timing by skipping a clock cycle (column) for the IF stage of the instruction after the load. You could maybe draw one bubble to the of that IF, in the spot where IF would normally fetch it in the cycle after fetching the `lw`.\n\n---\n\n\n You didn't include the captions in your question, which would probably have explained why they drew it that way. Perhaps showing that leaving a gap before even starting the instruction solve the problem.\nA CPU running that code won't know whether or not the instruction after an `lw` depends on the result until it has fetched and decoded it. That's where it checks for hazards. The cycle `add $8, $7, $2` reaches ID is when IF would either be idle or re-fetch the instruction after the `add`.\nYour example 2 is the more normal way to draw things, showing a load delay (on MIPS II or later), where the load result isn't available for forwarding until after stalling for a cycle, so ID does that and sets up the forwarding. The instruction not moving forward in the pipeline leaves a bubble that you can see in the next few instructions: note that EX didn't appear in cycle 4. And that MEM didn't appear in cycle 5. etc. That's the bubble moving through the pipeline over time.\nThe same instruction staying around in `reg reg` (decode) is the back pressure created by the stall to open up that bubble.\n\n---\n\n\n\n### A row of 5 bubbles due to a structural hazard on instruction fetch\n\n\n but for a different reason than your example 1. It's talking about a machine without split L1i / L1d caches, or with no cache and single-ported memory, hence IM/DM (instruction memory / data memory stages). You omitted the caption, which is\n> The structural hazard causes pipeline bubbles to be inserted. The effect is that no instruction will finish during clock cycle 8, when instruction 3 would normally have finished. (Instruction 1 is assumed to not be a load or store; otherwise, instruction 3 cannot start execution).\nThe \"code\" and pipeline diagram is figure 3.9: A pipeline stalled for a structural hazard - a load with one memory port.\n```\nload IF ID EX MEM WB\n instruction 1 IF ID EX MEM WB\n instruction 2 IF ID EX MEM WB\n instruction 3 (stall) IF ID EX MEM WB ; (would be in IF at the same time the load is in MEM, structural hazard)\n instruction 4 IF ID EX MEM WB\n```\n\nFigure 3.6 shows the conflict if you don't have a stall/bubble. In the 2nd edition of the book, they actually label both the first and fourth pipeline stages as MEM, instead of IF/MEM or IM/DM.\nI don't know if my copy of the textbook has a diagram like yours at some later point when they're talking about data hazards. I didn't flip through it further. Perhaps they're showing how an idle cycle there would make the dependency work, and will go on to show what really happens, that the CPU has to fetch and decode to discover the hazard.\n\n---\n\n\nAnother answer claims that a stall would let the control signals go down the pipeline unchanged instead of inserting a NOP, but that doesn't sound right or seem practical.\nLetting `add $8, $7, $2` go through the pipeline with a wrong value for the `$7` input doesn't seem not directly harmful; a scalar in-order pipeline doesn't have WAW or WAR hazards so letting it reach the WB stage and write a wrong value into the register file isn't going to hurt correctness of other instructions; the right value will get written in the next cycle, when the instruction goes through the pipeline again with the right value this time... Unless an interrupt is taken in that cycle while the register file holds the wrong value!! Then there's an architecturally-visible wrong value.\nIt would also be a problem for memory operations to let them run in the MEM stage with potentially a bad pointer as part of the addressing mode. You could get a spurious TLB miss or page fault, or a store to the wrong place.\nSo very likely a stage that detects a stall would mux some of the control bits to send a NOP down the pipe, or there'd be a dedicated control line for NOP/bubble to deactivate stages.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T20:45:14.470"},"LastActivityDate":{"kind":"string","value":"2023-02-03T20:45:14.470"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":224132,"string":"224,132"},"Tags":{"kind":"null"}}},{"rowIdx":1248878,"cells":{"Id":{"kind":"number","value":75340906,"string":"75,340,906"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75340755,"string":"75,340,755"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Using [rpow](https://pandas.pydata.org/docs/reference/api/pandas.Series.rpow.html):\n```\ndf['2^Value'] = df['Value'].rpow(2)\n```\n\nOutput:\n```\nValue 2^Value\n0 0 1\n1 1 2\n2 2 4\n3 3 8\n4 4 16\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T20:48:39.660"},"LastActivityDate":{"kind":"string","value":"2023-02-03T20:48:39.660"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":16343464,"string":"16,343,464"},"Tags":{"kind":"null"}}},{"rowIdx":1248879,"cells":{"Id":{"kind":"number","value":75340918,"string":"75,340,918"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75340021,"string":"75,340,021"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You can specify week systems in the `WEEKNUM` DAX function as an optional second argument.\nThe default for this optional parameter is system 1, where week 1 is the week that contains January 1st. System 2 sets week 1 as the week containing the first Thursday of the new year, which is ISO 8601 compliant.\nTry this:\n```\nWeek = WEEKNUM ( 'Date'[Date] , 2 )\n```\n\nIf you are calculating this in Power Query, the calculation is much more complex, for some reason. See this link for a solution: [https://datacornering.com/how-to-calculate-iso-week-number-in-power-query/](https://datacornering.com/how-to-calculate-iso-week-number-in-power-query/)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T20:50:35.130"},"LastActivityDate":{"kind":"string","value":"2023-02-03T20:50:35.130"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":16528000,"string":"16,528,000"},"Tags":{"kind":"null"}}},{"rowIdx":1248880,"cells":{"Id":{"kind":"number","value":75341009,"string":"75,341,009"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75336094,"string":"75,336,094"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"What you're seeing in your screenshot (suggestions for `dba_`) are not coming from any extension. One can verify that by running the command `Developer: Reload With Extensions Disabled` and trying triggering suggestions again. So this is just functionality that comes out-of-box with a standard VS Code installation. You don't even need to install any PHP extension to get this.\nAs for your custom snippets getting \"overwritten\", it's hard to tell without more detail why this is happening. If you're on version 1.75, it might just be due to a bug that will be fixed later (Ex. As was the case in this other recent Q&A: [Visual Studio Code's recent update is disrupting autocompletion](https://stackoverflow.com/q/75340072/11107541)).\nAs [@Mark](https://stackoverflow.com/users/836330/mark) showed in [their answer](https://stackoverflow.com/a/75341123/11107541), these are function suggestions. You can disable function suggestions with the following setting:\n> ```\n\"[php]\": {\n \"editor.suggest.showFunctions\": false\n}\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T21:03:03.813"},"LastActivityDate":{"kind":"string","value":"2023-02-03T23:09:04.540"},"LastEditDate":{"kind":"string","value":"2023-02-03T23:09:04.540"},"LastEditorUserId":{"kind":"number","value":11107541,"string":"11,107,541"},"OwnerUserId":{"kind":"number","value":11107541,"string":"11,107,541"},"Tags":{"kind":"null"}}},{"rowIdx":1248881,"cells":{"Id":{"kind":"number","value":75341123,"string":"75,341,123"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75336094,"string":"75,336,094"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Those icons indicate that those are `Methods and Functions` (not Snippets). See [What do the Intellisense icons mean](https://stackoverflow.com/a/57679985/836330).\nSo you can try to disable two settings in your Settings UI:\n```\nEditor > Suggest: Show Methods\nEditor > Suggest: Show Functions - this looks like the right one to disable\n```\n\nOf course, there might be situations where you want to see Function suggestions, so you will have to see if disabling the setting is acceptable.\nYou can disable those Function suggestions for `php` files only with this setting (in your `settings.json`):\n```\n\"[php]\": {\n \"editor.suggest.showFunctions\": false\n}\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-03T21:20:12.547"},"LastActivityDate":{"kind":"string","value":"2023-02-03T21:20:12.547"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":836330,"string":"836,330"},"Tags":{"kind":"null"}}},{"rowIdx":1248882,"cells":{"Id":{"kind":"number","value":75342095,"string":"75,342,095"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":57753240,"string":"57,753,240"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"It could be because of .\nIf you see here in the Network tab that means everything is fine.\nYou can test on a private window if you want just to double check.\n[](https://i.stack.imgur.com/pGBiu.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T00:02:10.690"},"LastActivityDate":{"kind":"string","value":"2023-02-04T00:02:10.690"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":5032071,"string":"5,032,071"},"Tags":{"kind":"null"}}},{"rowIdx":1248883,"cells":{"Id":{"kind":"number","value":75342318,"string":"75,342,318"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75317524,"string":"75,317,524"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"If you don't want a field required you can set the attribute blank=True in the model class. A question I have is why would you want to have a Foreignkey to just a city name. Or are you trying to use the a list of cities to populate the drop down? In that case the Foreign Key is definitely not the answer.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T00:56:32.007"},"LastActivityDate":{"kind":"string","value":"2023-02-04T00:56:32.007"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":19063121,"string":"19,063,121"},"Tags":{"kind":"null"}}},{"rowIdx":1248884,"cells":{"Id":{"kind":"number","value":75342390,"string":"75,342,390"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75340339,"string":"75,340,339"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You need to use a fixed width (or monospaced) font, for example \"Courier New\", for the label:\n```\ndef show_log(self):\n self.label_show_log = tk.Label(self.master, text=fu.show_log(),\n borderwidth=2, relief=\"groove\",\n font=(\"Courier New\", 10))\n self.label_show_log.pack()\n```\n\nResult:\n[](https://i.stack.imgur.com/c5Kj1.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T01:19:03.850"},"LastActivityDate":{"kind":"string","value":"2023-02-04T01:19:03.850"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":5317403,"string":"5,317,403"},"Tags":{"kind":"null"}}},{"rowIdx":1248885,"cells":{"Id":{"kind":"number","value":75342406,"string":"75,342,406"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75342176,"string":"75,342,176"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The problem is that you're setting the `x` coordinate to `i - 0.5` when you hit a multiple of 5. But you really just always want that `x` coordinate to be 4.5.\n```\nmodulo <- 5\nfor (i in 1:25){\n if (i %% modulo == 0){\n text(modulo - 0.5, (i%/%5 - 1) + 0.5, labels = as.character(i))\n # or just text(4.5 ...)\n } else {\n text(i%%5 - 0.5, i%/%5 + 0.5, labels = as.character(i))\n }\n}\n```\n\n[](https://i.stack.imgur.com/ngtgs.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T01:24:53.757"},"LastActivityDate":{"kind":"string","value":"2023-02-04T01:24:53.757"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":2799941,"string":"2,799,941"},"Tags":{"kind":"null"}}},{"rowIdx":1248886,"cells":{"Id":{"kind":"number","value":75342593,"string":"75,342,593"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75342491,"string":"75,342,491"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Here is how I fixed this:\nI exported all the data I could to Excel from the corrumpted database and then removed problematic data in Excel manually.\nI exported same data of the most recent backup in Excel too.\nI merged all the data into excel. Verified the data manually and with formulas comparing differences between sheets.\nI then deleted all the entries in Access tables.\nI imported the data from Excel sheets to Access tables.\nThe problem seems to be gone.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T02:35:45.003"},"LastActivityDate":{"kind":"string","value":"2023-02-08T15:32:42.147"},"LastEditDate":{"kind":"string","value":"2023-02-08T15:32:42.147"},"LastEditorUserId":{"kind":"number","value":20225934,"string":"20,225,934"},"OwnerUserId":{"kind":"number","value":20225934,"string":"20,225,934"},"Tags":{"kind":"null"}}},{"rowIdx":1248887,"cells":{"Id":{"kind":"number","value":75342678,"string":"75,342,678"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75043281,"string":"75,043,281"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The magic for that behavior lives over in [https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/key-bindings.zsh](https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/key-bindings.zsh)\nIt works just fine on its own outside of omz\nCopy, paste, attribute :)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T03:03:46.827"},"LastActivityDate":{"kind":"string","value":"2023-02-04T03:03:46.827"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":1201033,"string":"1,201,033"},"Tags":{"kind":"null"}}},{"rowIdx":1248888,"cells":{"Id":{"kind":"number","value":75342750,"string":"75,342,750"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75342176,"string":"75,342,176"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Here is a different approach without any loops or divisions:\n```\nmat <- matrix(1:25, 5, byrow=TRUE)\nplot(NA, xlim=c(0, 5), ylim=c(0, 5), axes=FALSE, xlab=\"\", ylab=\"\")\nsegments(rep(0, 5), 0:5, rep(5, 5), 0:5)\nsegments(0:5, rep(0, 5), 0:5, rep(5, 5))\ntext(row(mat)-.5, col(mat)-.5 , t(mat))\n```\n\n[](https://i.stack.imgur.com/aqgSM.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T03:28:37.140"},"LastActivityDate":{"kind":"string","value":"2023-02-04T03:28:37.140"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":1580645,"string":"1,580,645"},"Tags":{"kind":"null"}}},{"rowIdx":1248889,"cells":{"Id":{"kind":"number","value":75342823,"string":"75,342,823"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75321423,"string":"75,321,423"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"check this out this can be accomplished by using box.\n```\nBox(modifier = Modifier.fillMaxWidth()) {\n var size by remember { mutableStateOf(Size.Zero) }\n val height: @Composable () -> Dp = { with(LocalDensity.current) { size.height.toDp() } }\n Text(\n text = longText,\n modifier = Modifier\n .padding(8.dp)\n .fillMaxWidth(.45F)\n // if second text is larger than first text call it on second text\n .onGloballyPositioned { size = it.size.toSize() },\n textAlign = TextAlign.Justify\n )\n \n Divider(\n modifier = Modifier\n .width(1.dp)\n .height(height())\n .align(Alignment.Center),\n color = Color.Black\n )\n \n Text(\n text = longText,\n modifier = Modifier\n .padding(8.dp)\n .align(Alignment.TopEnd)\n .fillMaxWidth(.45F),\n textAlign = TextAlign.Justify\n )\n}\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T03:50:36.877"},"LastActivityDate":{"kind":"string","value":"2023-02-04T03:50:36.877"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":12741503,"string":"12,741,503"},"Tags":{"kind":"null"}}},{"rowIdx":1248890,"cells":{"Id":{"kind":"number","value":75342944,"string":"75,342,944"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":74954421,"string":"74,954,421"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"It appears that you've come across a typographical error in your `tsconfig.json` file.\n\n1. The target attribute has been set to ES6, when it should have been assigned to ES2017.\n2. The lib option requires a change: It should consist of an array of strings, featuring ES2017 among them.\n\n\nHere is the revised `tsconfig.json` configuration :\n```\n{\n \"compilerOptions\": {\n \"target\": \"ES2017\",\n \"lib\": [\n \"ES2017\"\n ]\n }\n}\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T04:26:00.343"},"LastActivityDate":{"kind":"string","value":"2023-02-04T04:26:00.343"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"null"},"Tags":{"kind":"null"}}},{"rowIdx":1248891,"cells":{"Id":{"kind":"number","value":75343073,"string":"75,343,073"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75343031,"string":"75,343,031"},"Score":{"kind":"number","value":-1,"string":"-1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"change the code to this format\n```\n\n```\n\nchange `input checked=\"checked\"` to `input checked=\"true\"` or `input checked`\nthe `checked` property's default value is `true`\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T05:01:14.160"},"LastActivityDate":{"kind":"string","value":"2023-02-04T05:01:14.160"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":19300114,"string":"19,300,114"},"Tags":{"kind":"null"}}},{"rowIdx":1248892,"cells":{"Id":{"kind":"number","value":75343448,"string":"75,343,448"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":74680976,"string":"74,680,976"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Windows comes with dummy python executables `python.exe` and `python3.exe` that take you to the microsoft store to install it- after which it is a real python executable instead of a dummy one. If you run `where python`, you'll get a list of all the python executables that are found via the `PATH` variable in the order that they are found in the `PATH`, where one of them will be the Windows one (instead of the one you installed from the Python website). The one you'll see listed first will probably be `C:\\Users\\you\\AppDate\\Local\\Microsoft\\WindowsApps\\python.exe` (or something like that). (see related question: [Why can't I run python in git bash and visual studio code?](https://stackoverflow.com/q/75233668/11107541))\nThe behaviour you're observing is due to the fact that Windows searches the `PATH` from left to right / first to last (see related question: [What's the relative order with which Windows search for executable files in PATH?](https://stackoverflow.com/q/1653472/11107541)), and the combined `PATH` formed from the system `PATH` and user `PATH` puts the system `PATH` the user `PATH` (see related question: [User vs. System Environment Variables: Do System Variables Override User Variables?](https://superuser.com/q/867728/1749748)).\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T06:44:30.713"},"LastActivityDate":{"kind":"string","value":"2023-02-04T06:44:30.713"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":11107541,"string":"11,107,541"},"Tags":{"kind":"null"}}},{"rowIdx":1248893,"cells":{"Id":{"kind":"number","value":75343664,"string":"75,343,664"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":71501256,"string":"71,501,256"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"TL;DR\nPut your images in the static directory, just like below, use it in markdown like `![targets](/images/my_post_folder/my_image.png)` or `![targets](/images/my_image2.jpg)` if you don't want to build a post folder\n\n---\n\n\nIf you search the hugo documentation, you can find [Image Processing | Hugo](https://gohugo.io/content-management/image-processing/#page-resources)\nBut! That's no a markdown way to insert an image. If you don't miss the , you will find the Directory, which says can store images, that's it!\n```\n[static](https://gohugo.io/content-management/static-files/)\n\nStores all the static content: **images**, CSS, JavaScript, etc. When Hugo builds your site, all assets inside your static directory are copied over as-is. A good example of using the static folder is for verifying site ownership on Google Search Console, where you want Hugo to copy over a complete HTML file without modifying its content.\n```\n\n\nPut your images in the static directory, just like below, use it in markdown like `![targets](/images/my_post_folder/my_image.png)` or `![targets](/images/my_image2.jpg)` if you don't want to build a post folder\n```\nstatic\n└── images\n ├── my_post_folder\n │   ├── my_image.png\n └── my_image2.jpg\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T07:39:50.827"},"LastActivityDate":{"kind":"string","value":"2023-02-04T07:39:50.827"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":1764735,"string":"1,764,735"},"Tags":{"kind":"null"}}},{"rowIdx":1248894,"cells":{"Id":{"kind":"number","value":75343798,"string":"75,343,798"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75268338,"string":"75,268,338"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"These colours in the explorer view are called \"git decorations\". They are enabled by default in workspaces that have an associated git repository, and the colours indicate what has changed about the file.\n- - - \n> and I find the coloring annoying.\nIf you want to turn git decorations off, you can do so by putting the following in your user settings.json, or in your workspace's `.vscode/settings.json` file:\n```\n\"git.decorations.enabled\": false\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T08:14:50.413"},"LastActivityDate":{"kind":"string","value":"2023-02-05T23:26:52.027"},"LastEditDate":{"kind":"string","value":"2023-02-05T23:26:52.027"},"LastEditorUserId":{"kind":"number","value":11107541,"string":"11,107,541"},"OwnerUserId":{"kind":"number","value":11107541,"string":"11,107,541"},"Tags":{"kind":"null"}}},{"rowIdx":1248895,"cells":{"Id":{"kind":"number","value":75344037,"string":"75,344,037"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":36862308,"string":"36,862,308"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"There's a specialized pandas function `pd.json_normalize()` that converts json data into a flat table. Since the data to be converted into a dataframe is nested under multiple keys, we can pass the path to it as a list as the `record_path=` kwarg. The path to `values` is `tags` -> `results` -> `values`, so we pass it as a list.\n```\n# first load the json file\nimport json\nwith open(file_path, 'r') as f:\n data = json.load(f)\n\n# convert `data` into a dataframe\ndf = pd.json_normalize(data, record_path=['tags', 'results', 'values']).set_axis(['time', 'temperature', 'quality'], axis=1)\n```\n\n[](https://i.stack.imgur.com/PPnoh.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T09:08:45.487"},"LastActivityDate":{"kind":"string","value":"2023-02-04T09:08:45.487"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":19123103,"string":"19,123,103"},"Tags":{"kind":"null"}}},{"rowIdx":1248896,"cells":{"Id":{"kind":"number","value":75344180,"string":"75,344,180"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75335136,"string":"75,335,136"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The error is happening because the `index` gets out of range. The `xLabels` has a length of while the actual `data` has a length of .\nYou can either add extra labels for the x-axis or reduce the data back to 12.\nThe YAxis has the same issue. I see you want to \"group\" them with some labels. You can use the `numberOfTicks` prop with the `yLabels.length`. Then when formatting the label you can use the `index`.\n```\n yLabels[index]}\n/>\n```\n\n\nI found something with the `min` and `max` of the `YAxis`. If they're provided the error is gone.\n```\n yLabels[index]}\n/>\n```\n\nFor the layout:\n```\n\n \n \n \n \n \n\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-04T09:37:10.213"},"LastActivityDate":{"kind":"string","value":"2023-02-07T08:26:33.710"},"LastEditDate":{"kind":"string","value":"2023-02-07T08:26:33.710"},"LastEditorUserId":{"kind":"number","value":20088324,"string":"20,088,324"},"OwnerUserId":{"kind":"number","value":20088324,"string":"20,088,324"},"Tags":{"kind":"null"}}},{"rowIdx":1248897,"cells":{"Id":{"kind":"number","value":75344346,"string":"75,344,346"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75343774,"string":"75,343,774"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"As stated in this [link](https://github.com/mdbootstrap/Tailwind-Elements/issues/1058), you should import tw-elements in a useEffect in the _app file, not in the same component that you use them in.\n/_app.jsx/tsx\n```\nfunction MyApp({ Component, pageProps }: AppProps) {\n useEffect(() => {\n const use = async () => {\n (await import('tw-elements')).default;\n };\n use();\n }, []);\n\n return ;\n}\n\nexport default MyApp;\n```\n\nThere is also another solution to use the _document.js file and Script element to use the script for tw_elements\n```\nimport { Html, Head, Main, NextScript } from 'next/document'\nimport Script from 'next/script'\n\n// import 'tw-elements';\n\nexport default function Document() {\n return (\n \n \n \n
\n \n