{ // 获取包含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\r\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T01:20:26.710"},"LastActivityDate":{"kind":"string","value":"2023-02-26T00:00:55.970"},"LastEditDate":{"kind":"string","value":"2023-02-26T00:00:55.970"},"LastEditorUserId":{"kind":"number","value":19541945,"string":"19,541,945"},"OwnerUserId":{"kind":"number","value":19541945,"string":"19,541,945"},"Tags":{"kind":"null"}}},{"rowIdx":1250117,"cells":{"Id":{"kind":"number","value":75552392,"string":"75,552,392"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":71918905,"string":"71,918,905"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"1 For windows, open `C:\\Users\\yourusername\\.gitconfig`\n2 Add your project path in the [safe] section, example:\n```\n[safe]\n directory = D:/path/to/your-project\n```\n\n3 Restart VSCode\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T03:34:47.120"},"LastActivityDate":{"kind":"string","value":"2023-02-24T03:34:47.120"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":111277,"string":"111,277"},"Tags":{"kind":"null"}}},{"rowIdx":1250118,"cells":{"Id":{"kind":"number","value":75552802,"string":"75,552,802"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75548710,"string":"75,548,710"},"Score":{"kind":"number","value":2,"string":"2"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"For Integer data types, you can use the `LENGTH()` function, but you must type cast Integer to String.\nI believe the following query should work:\n```\nSELECT * FROM users WHERE LENGTH(user_id :: TEXT) <= 4;\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T05:05:08.537"},"LastActivityDate":{"kind":"string","value":"2023-03-01T10:39:36.870"},"LastEditDate":{"kind":"string","value":"2023-03-01T10:39:36.870"},"LastEditorUserId":{"kind":"number","value":9239267,"string":"9,239,267"},"OwnerUserId":{"kind":"number","value":13875541,"string":"13,875,541"},"Tags":{"kind":"null"}}},{"rowIdx":1250119,"cells":{"Id":{"kind":"number","value":75553060,"string":"75,553,060"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75551462,"string":"75,551,462"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Well there are many way's to do this, this is one way:\n\n\n1. get object layer, with the name from Tiled (link to the documentation): // let map = this.make.tilemap( {...} );\nlet objectLayer = map.getObjectLayer( 'Trees' );\n2. iterate over all objects from that layer (link to the documentation): for( let obj in objectLayer.objects ){\n // ...\n}\n3. For each object from the layer: Depending on your object type (point, rectangle, ellipse, ...) you create the physics-body for the collision (for this example I will use a ellipse): let ellipse = this.add.ellipse( obj.x, obj.y, obj.width, obj.height );\n// you might need to set the \"origin\" \nthis.physics.add.existing( ellipse, true );\nellipse.body.setCircle(obj.width / 2);\n Info/Tipp: if you are using arcade physics the \"hitbox\" will be a rectangle, doesn't matter which gameObject you use. If you want round physics body with arcade you could use the setCircle method on the body (link to documentation). For complex shapes I would recommend using the matter.js engine.\n4. Setup collision with: player, ai, ... this.physics.add.collider( player, ellipse );\n\n\n\n```\ndocument.body.style = 'margin:0;';\n\nlet json_map = {\"compressionlevel\":-1,\"height\":5,\"infinite\":false,\"layers\":[{\"compression\":\"\",\"data\":\"AQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAA==\",\"encoding\":\"base64\",\"height\":5,\"id\":1,\"name\":\"TileLayer1\",\"opacity\":1,\"type\":\"tilelayer\",\"visible\":true,\"width\":8,\"x\":0,\"y\":0},{\"draworder\":\"topdown\",\"id\":2,\"name\":\"ObjectLayer1\",\"objects\":[{\"class\":\"\",\"ellipse\":true,\"height\":10,\"id\":1,\"name\":\"\",\"rotation\":0,\"visible\":true,\"width\":10,\"x\":8,\"y\":8},{\"class\":\"\",\"height\":5,\"id\":2,\"name\":\"\",\"rotation\":0,\"visible\":true,\"width\":15,\"x\":19.2,\"y\":25.6},{\"class\":\"\",\"height\":0,\"id\":3,\"name\":\"\",\"point\":true,\"rotation\":0,\"visible\":true,\"width\":0,\"x\":48,\"y\":4.8}],\"opacity\":1,\"type\":\"objectgroup\",\"visible\":true,\"x\":0,\"y\":0}],\"nextlayerid\":3,\"nextobjectid\":4,\"orientation\":\"orthogonal\",\"renderorder\":\"right-down\",\"tiledversion\":\"1.9.2\",\"tileheight\":8,\"tilesets\":[{\"columns\":1,\"firstgid\":1,\"image\":\"tiles.png\",\"imageheight\":8,\"imagewidth\":8,\"margin\":0,\"name\":\"tiles\",\"spacing\":0,\"tilecount\":1,\"tileheight\":8,\"tilewidth\":8}],\"tilewidth\":8,\"type\":\"map\",\"version\":\"1.9\",\"width\":8};\n\nlet config = {\n type: Phaser.AUTO,\n width: 8 * 8,\n height: 5 * 8,\n zoom: 4,\n physics: {\n default: 'arcade',\n arcade: { debug: true }\n },\n scene: { preload, create },\n}; \n\nfunction preload () {\n this.load.tilemapTiledJSON('map', json_map);\n}\n\nfunction create () {\n let graphics = this.make.graphics();\n graphics.fillStyle(0x933AFF);\n graphics.fillRect(0, 0, 10, 10);\n graphics.generateTexture('tiles', 10, 10);\n\n let player = this.add.rectangle(50, 10, 5, 5, 0xffffff);\n\n this.physics.add.existing(player);\n\n player.setDepth(100);\n player.body.setVelocityX(-10);\n\n let map = this.make.tilemap({ key: 'map', tileWidth: 8, tileHeight: 8 });\n let tiles = map.addTilesetImage('tiles', 'tiles');\n let layer = map.createLayer(0, tiles, 0, 0);\n let objectLayer = map.getObjectLayer( 'ObjectLayer1' );\n\n for( let obj of objectLayer.objects ){\n \n // since you are not displaying the object the shape doesn't matter, only the collision body\n let gameObject = this.add.rectangle( obj.x, obj.y, obj.width, obj.height )\n .setOrigin(0);\n \n this.physics.add.existing( gameObject, true );\n \n if(obj.ellipse){\n // For the ellipse version you would need to change the body\n gameObject.body.setCircle( obj.width / 2 );\n } else if(obj.point){\n // For the point we need no set an width and height\n gameObject.body.setSize( 4, 4 );\n }\n \n this.physics.add.collider( player, gameObject );\n }\n}\n\nnew Phaser.Game(config);\n```\n```\n\n```\n\r\n\n> In my Tiled version even, when I create the the `width` and `height`, I had to set does properties manualy. So check them if they are set.![screenshot of Tiled](https://i.stack.imgur.com/ZFcPm.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T05:54:55.983"},"LastActivityDate":{"kind":"string","value":"2023-02-27T06:42:15.887"},"LastEditDate":{"kind":"string","value":"2023-02-27T06:42:15.887"},"LastEditorUserId":{"kind":"number","value":1679286,"string":"1,679,286"},"OwnerUserId":{"kind":"number","value":1679286,"string":"1,679,286"},"Tags":{"kind":"null"}}},{"rowIdx":1250120,"cells":{"Id":{"kind":"number","value":75553291,"string":"75,553,291"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":11059181,"string":"11,059,181"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"I had similar problem. File *.pubxml in PublishProfiles folder had saved properties for publish method. There was WebPublishMethod FileSystem and publishUrl tag was some non-existing folder on my computer (it exist's on my other computer).\n```\n\n\n\n \n FileSystem\n Release\n Any CPU\n \n False\n c:\\temp\\someFolder // this folder didn't exist on my computer\n True\n True\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-24T06:37:05.193"},"LastActivityDate":{"kind":"string","value":"2023-02-24T06:37:05.193"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":2068040,"string":"2,068,040"},"Tags":{"kind":"null"}}},{"rowIdx":1250121,"cells":{"Id":{"kind":"number","value":75553574,"string":"75,553,574"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":11915826,"string":"11,915,826"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Make sure you check the case of the file extension. They have to match (either capital or lowercase). If you have `my_image.PNG` in your root directory and you add `![screenshot](/my_image.png)` to your README file, it will not work. For some reason, Windows likes to capitalize file extensions sometimes. Unfortunately, Git does not recognize extension case so if you try to fix it by just changing the file name, you won't be able to commit the changes to the repo since Git will think everything is up to date. So you either have to update README.md or do some workaround like moving the file out of the directory, making a commit, then editing the file name then moving it back and doing another commit.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T07:16:53.780"},"LastActivityDate":{"kind":"string","value":"2023-02-24T07:16:53.780"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":2886813,"string":"2,886,813"},"Tags":{"kind":"null"}}},{"rowIdx":1250122,"cells":{"Id":{"kind":"number","value":75553648,"string":"75,553,648"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75552375,"string":"75,552,375"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Define the maze data so that the 2 destinations(left and right) can be determined from the current position.\ne.g. very simply...\n```\n//Here, the special value 0 is used to indicate goal.\nconst int Goal = 0;\n\n//Here, negative values indicate dead end.\n//e.g. -1 is \"X1\".\nconst int Data[][2] =\n{\n 0,0, // dummy\n 2,3, // Left and Right destinations from Position 1 are Position 2 and 3.\n -2,-1, // From Position 2, both destinations are dead ends (\"X2\" and \"X1\").\n -3,4, // From Position 3, ...\n 7,5, // From Position 4, ...\n 6,-4, // From Position 5, ...\n -6,-5, // From Position 6, ...\n 8,-7, // From Position 7, ...\n 9,-8, // From Position 8, ...\n -9,Goal // Right destination from Position 9 is the Goal.\n};\n```\n\nWith this data, code can be written as:\n```\nint main(int argc, char *argv[])\n{\n //Here, the special value 0 is used to indicate goal.\n const int Goal = 0;\n\n //Here, negative values indicate dead end.\n //e.g. -1 is \"X1\".\n const int Data[][2] =\n {\n 0,0, // dummy\n 2,3, // Left and Right destinations from Position 1 are Position 2 and 3.\n -2,-1, // From Position 2, both destinations are dead ends (\"X2\" and \"X1\").\n -3,4, // From Position 3, ...\n 7,5, // From Position 4, ...\n 6,-4, // From Position 5, ...\n -6,-5, // From Position 6, ...\n 8,-7, // From Position 7, ...\n 9,-8, // From Position 8, ...\n -9,Goal // Right destination from Position 9 is the Goal.\n };\n\n std::cout << \"Welcome to the Maze Challenge!\" << std::endl;\n int CurrPos = 1; //Start is Position 1.\n while( true )\n {\n std::cout << std::endl;\n \n //Check if current position is goal or dead end...\n if( CurrPos == Goal )\n {\n std::cout << \"** Goal! **\" << std::endl;\n break;\n }\n if( CurrPos < 0 )\n {\n std::cout << \"You have landed in dead end X\" << -CurrPos << std::endl;\n break;\n }\n\n //Show current position\n std::cout << \"You are now at position \" << CurrPos << std::endl;\n\n //Input\n int choice = -1;\n while( choice!=0 && choice!=1 )\n {\n std::cout << \"0=Left, 1=Right > \";\n std::cin >> choice;\n }\n //Move to choiced direction\n CurrPos = Data[CurrPos][choice];\n }\n std::cout << \"(END)\" << std::endl;\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-24T07:26:44.370"},"LastActivityDate":{"kind":"string","value":"2023-02-24T07:26:44.370"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":18362054,"string":"18,362,054"},"Tags":{"kind":"null"}}},{"rowIdx":1250123,"cells":{"Id":{"kind":"number","value":75553725,"string":"75,553,725"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75550272,"string":"75,550,272"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Don't forget this is auto completion, which means it completes what the user already typed. If you have single letter suggestions and one letter was also typed, which doesn't match any of the suggestions, then no suggestion is shown. You have to show the values which the user can type, not the values you want to insert instead.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T07:36:16.410"},"LastActivityDate":{"kind":"string","value":"2023-02-24T07:36:16.410"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":1137174,"string":"1,137,174"},"Tags":{"kind":"null"}}},{"rowIdx":1250124,"cells":{"Id":{"kind":"number","value":75553895,"string":"75,553,895"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75551345,"string":"75,551,345"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You need to create a `var label` and pass it to your function. In there, you should call `label.set*()` functions to modify the existing label.\n```\nGetLabels(lbl) =>\n int size = array.size(print_stack_absciss)\n // print(str.format(\"size is {0}\", size))\n if size > 0\n for j = array.get(print_stack_range, 0) to array.get(print_stack_range, 1)\n int time_j = indexToTime(j)\n // print(str.format(\"j is {0}\", j))\n strings = array.new_string(0, \"\")\n color color_i = na\n for i = 0 to size - 1\n // print(str.format(\"i is {0}\", i))\n int absciss_i = array.get(print_stack_absciss, i)\n // print(str.format(\"absciss_i is {0}\", absciss_i))\n if absciss_i == time_j\n string string_i = array.get(print_stack_string, i)\n strings.push(string_i)\n color_i := array.get(print_stack_color, i)\n if array.size(strings)\n // printB(str.format(\"{0}\", indexToTime(j)))\n label.set_xy(lbl, time_j, high[(j<0)?0:j])\n label.set_text(lbl, array.join(strings, \"\\n\"))\n label.set_textcolor(lbl, color_i)\n\nvar label lbl = label.new(na, na, na, style = label.style_label_down, color = color.new(color.white, 100), xloc=xloc.bar_time)\n\nGetLabels(lbl)\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T07:55:40.033"},"LastActivityDate":{"kind":"string","value":"2023-02-24T07:55:40.033"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":7209631,"string":"7,209,631"},"Tags":{"kind":"null"}}},{"rowIdx":1250125,"cells":{"Id":{"kind":"number","value":75554096,"string":"75,554,096"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75552087,"string":"75,552,087"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"There is no way to change this color directly without using a theme plugin.\nThat color is controlled by the `Label.infoForeground` attribute in the theme plugin. See here for details: [https://plugins.jetbrains.com/docs/intellij/themes-customize.html](https://plugins.jetbrains.com/docs/intellij/themes-customize.html)\nYou only can report this issue to this theme plugin author to improve the color here or fork that theme plugin, change the `Label.infoForeground` for it.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T08:18:24.333"},"LastActivityDate":{"kind":"string","value":"2023-02-24T08:18:24.333"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":21033369,"string":"21,033,369"},"Tags":{"kind":"null"}}},{"rowIdx":1250126,"cells":{"Id":{"kind":"number","value":75554159,"string":"75,554,159"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75533629,"string":"75,533,629"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"Actually i found solution, from project root there wasn't ANROID_SDK_ROOT direction and i just added it there. You can check this using command `echo $ANDROID_SDK_ROOT` on Ubuntu\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T08:25:23.767"},"LastActivityDate":{"kind":"string","value":"2023-02-24T08:25:23.767"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":20228520,"string":"20,228,520"},"Tags":{"kind":"null"}}},{"rowIdx":1250127,"cells":{"Id":{"kind":"number","value":75554155,"string":"75,554,155"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75553956,"string":"75,553,956"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"In my opinion, you are stuck into the loop \"Do Until\".\nAn alternative could be to use this intead\n```\nlstData.Items.Add(clickCount)\npicClick.Visible = (clickCount >= 100)\n```\n\n(Thanks to @jmcilhinney)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T08:24:23.713"},"LastActivityDate":{"kind":"string","value":"2023-02-24T09:59:53.290"},"LastEditDate":{"kind":"string","value":"2023-02-24T09:59:53.290"},"LastEditorUserId":{"kind":"number","value":19385903,"string":"19,385,903"},"OwnerUserId":{"kind":"number","value":19385903,"string":"19,385,903"},"Tags":{"kind":"null"}}},{"rowIdx":1250128,"cells":{"Id":{"kind":"number","value":75554169,"string":"75,554,169"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75553900,"string":"75,553,900"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"If we only focus on the [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) here (which seems to be the logs in question) then it already provides a configuration option `output` to specify an output file to store its output.\nAccording to its [inputs](https://github.com/aquasecurity/trivy-action#inputs), you can use `output`:\n> `output` | Save results to a file\nand, also configure a `format` according to your requirements (default: `table`):\n> `format` | Output format (`table`, `json`, `sarif`, `github`)\nWith `format: json`, you can then use [jq](https://stedolan.github.io/jq/) for easy manipulation.\n\n---\n\n\nApart from that, to get the logs, you can use the [GitHub CLI](https://cli.github.com/) i.e. `gh run view`.\nSee [Viewing logs with GitHub CLI](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/using-workflow-run-logs#viewing-logs-with-github-cli) and [About GitHub CLI](https://docs.github.com/en/github-cli/github-cli/about-github-cli) for more details.\nYou can also use the GitHub API. See [Download workflow run attempt logs](https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#download-workflow-run-attempt-logs).\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T08:26:31.800"},"LastActivityDate":{"kind":"string","value":"2023-02-24T08:53:59.310"},"LastEditDate":{"kind":"string","value":"2023-02-24T08:53:59.310"},"LastEditorUserId":{"kind":"number","value":7670262,"string":"7,670,262"},"OwnerUserId":{"kind":"number","value":7670262,"string":"7,670,262"},"Tags":{"kind":"null"}}},{"rowIdx":1250129,"cells":{"Id":{"kind":"number","value":75554248,"string":"75,554,248"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":4668266,"string":"4,668,266"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"If you use Better Exposed Filters module, go into Exposed Form > Exposed form style: Better Exposed Filters | Settings > look for your field > Advanced Filter Options > put \"- Any -|All\" in the \"Rewrite the text displayed\" field.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T08:34:45.437"},"LastActivityDate":{"kind":"string","value":"2023-02-24T08:34:45.437"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":21278778,"string":"21,278,778"},"Tags":{"kind":"null"}}},{"rowIdx":1250130,"cells":{"Id":{"kind":"number","value":75554254,"string":"75,554,254"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75277020,"string":"75,277,020"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You can use `android:orientation=\"vertical\"` within linearlayout to get elements in different lines.\nYou need to use to do that, You can try adding five elements in Linearlayout that has and then create multiple layout like this and add it in Layout which has .\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T08:35:27.093"},"LastActivityDate":{"kind":"string","value":"2023-02-24T08:35:27.093"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":21248085,"string":"21,248,085"},"Tags":{"kind":"null"}}},{"rowIdx":1250131,"cells":{"Id":{"kind":"number","value":75554322,"string":"75,554,322"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75553372,"string":"75,553,372"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"I have found one solution. There are probably better ways to do this, so I'm still open to other answers. But here's what has worked for me:\nThe following works because I have the option to skip frames when rendering. So I can set the frame step to 4 before rendering, set the output to `/a/Image`\nIt will give me `Image0001.png`, `Image0005.png`, etc within folder `a`\nIncrement the start frame by `1`, and change the output path to `/b/Image`\nIt will produce `Image0002.png`, `Image0006.png`, etc within folder `b`\nAfter that, I was able to use an app called [NameChanger](https://mrrsoftware.com/namechanger/) to rename the files in sequence. (This app allows control over the file order, unlike Automator.)\n[](https://i.stack.imgur.com/ohmQS.png)\nThe file extensions get stripped in that step, but can easily be appended in a subsequent step:\n[](https://i.stack.imgur.com/6r2Af.png)\n I have since discovered that there is a setting in NameChanger's Preferences to hide extensions. With this enabled, extensions are left untouched by any renaming operations.\n![](https://i.stack.imgur.com/IfDd6.png)\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T08:42:03.163"},"LastActivityDate":{"kind":"string","value":"2023-03-02T16:00:13.960"},"LastEditDate":{"kind":"string","value":"2023-03-02T16:00:13.960"},"LastEditorUserId":{"kind":"number","value":2454914,"string":"2,454,914"},"OwnerUserId":{"kind":"number","value":2454914,"string":"2,454,914"},"Tags":{"kind":"null"}}},{"rowIdx":1250132,"cells":{"Id":{"kind":"number","value":75554832,"string":"75,554,832"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":67644111,"string":"67,644,111"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"You should import material style to your style.scss:\n```\n@import '~@angular/material/prebuilt-themes/indigo-pink.css';\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T09:33:53.093"},"LastActivityDate":{"kind":"string","value":"2023-02-24T09:33:53.093"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":11355537,"string":"11,355,537"},"Tags":{"kind":"null"}}},{"rowIdx":1250133,"cells":{"Id":{"kind":"number","value":75554859,"string":"75,554,859"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75548710,"string":"75,548,710"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"For completeness, a positive integer number that has 4 or less characters is literally a number between 0 and 9999. So we can skip string manipulation and check that directly:\n```\nselect *\nfrom users\nwhere user_id < 10000\n```\n\nIf we had to handle negative numbers, we'd need to ask Business whether `-` sign adds to character count, but logic could be easily extended. However it's very unusual to have negative autoincremented IDs.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T09:35:49.757"},"LastActivityDate":{"kind":"string","value":"2023-02-24T09:35:49.757"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":13508,"string":"13,508"},"Tags":{"kind":"null"}}},{"rowIdx":1250134,"cells":{"Id":{"kind":"number","value":75555263,"string":"75,555,263"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75554571,"string":"75,554,571"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"When you try to \"unbold\" your text, you're setting default font to attributed string as font from your textfield\n```\nUIFont.boldSystemFont(ofSize: textField.font!.pointSize) as Any\n```\n\nwhich was previously set as \nSo, change your code to\n```\nvar isBoldEnabled = false\nlet defaultFont = UIFont.systemFont(ofSize: 16)\n\noverride func viewDidLoad() {\n super.viewDidLoad()\n\n // Set the initial font for the text field\n textField.font = defaultFont\n}\n\n@IBAction func boldButtonTapped(_ sender: Any) {\n // Toggle the isBoldEnabled variable\n isBoldEnabled = !isBoldEnabled\n\n // Create a new attributed string with the existing text and the current font\n let attributedString = NSMutableAttributedString(string: textField.text ?? \"\")\n let attributes: [NSAttributedString.Key: Any] = [NSAttributedString.Key.font: defaultFont as Any]\n attributedString.addAttributes(attributes, range: NSRange(location: 0, length: attributedString.length))\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-24T10:14:43.753"},"LastActivityDate":{"kind":"string","value":"2023-02-24T10:14:43.753"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":3819509,"string":"3,819,509"},"Tags":{"kind":"null"}}},{"rowIdx":1250135,"cells":{"Id":{"kind":"number","value":75555636,"string":"75,555,636"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75553460,"string":"75,553,460"},"Score":{"kind":"number","value":1,"string":"1"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"If you want to add a new child in a structure that looks like this:\n```\ndb\n|\n--- Teachers\n |\n --- Accounts\n |\n --- 0000-123455\n |\n --- Sections\n |\n --- BSIT201A\n |\n --- Students\n | |\n | --- studentName: \"Joseph\"\n |\n --- pSectionName: \"BSIT201A\"\n |\n --- subject: \"Subject Name\" // Newly added.\n```\n\nThen you have to create a reference that points to the `BSIT201A` node and call [updateChildren()](https://firebase.google.com/docs/reference/android/com/google/firebase/database/DatabaseReference#updateChildren(java.util.Map%3Cjava.lang.String,java.lang.Object%3E)), like in the following lines of code:\n```\nDatabaseReference db = FirebaseDatabase.getInstance().getReference();\nDatabaseReference secNameRef = db.child(\"Teachers/Accounts/0000-123455/Sections/BSIT201A\");\nMap update = new HashMap<>();\nupdate.put(\"subject\", \"Subject Name\");\nsecNameRef.updateChildren(update);\n```\n\nI also recommend you attach a complete listener to the updateChildren() operation, to see if something goes wrong.\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T10:50:26.500"},"LastActivityDate":{"kind":"string","value":"2023-02-24T10:50:26.500"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":5246885,"string":"5,246,885"},"Tags":{"kind":"null"}}},{"rowIdx":1250136,"cells":{"Id":{"kind":"number","value":75555983,"string":"75,555,983"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75552479,"string":"75,552,479"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The problem with this issue is that is the browser who manage how credentials are put into the fields.\nMaybe you can workaround it by waiting 0.5 secs and setting the focus on the input or something like this to trigger the validations.\n```\n@ViewChild('myInput', {static:true}) myInput: IonInput;\n\n--------\n\nsetTimeout(function(){\n this.myInput.setFocus();\n}, 500);\n```\n\n"},"Title":{"kind":"null"},"ContentLicense":{"kind":"string","value":"CC BY-SA 4.0"},"FavoriteCount":{"kind":"null"},"CreationDate":{"kind":"string","value":"2023-02-24T11:25:11.197"},"LastActivityDate":{"kind":"string","value":"2023-02-24T11:25:11.197"},"LastEditDate":{"kind":"null"},"LastEditorUserId":{"kind":"null"},"OwnerUserId":{"kind":"number","value":10500723,"string":"10,500,723"},"Tags":{"kind":"null"}}},{"rowIdx":1250137,"cells":{"Id":{"kind":"number","value":75556093,"string":"75,556,093"},"PostTypeId":{"kind":"number","value":2,"string":"2"},"AcceptedAnswerId":{"kind":"null"},"ParentId":{"kind":"number","value":75555984,"string":"75,555,984"},"Score":{"kind":"number","value":0,"string":"0"},"ViewCount":{"kind":"null"},"Body":{"kind":"string","value":"The desired element is within an [