Elasticsearch doesn't work in chroots: requires / to be a mountpoint

For somewhat arbitrary reason, Elasticsearch's file locking code does a bunch of sanity checks and will error out if / is not a mountpoint. This is not the case when running in a chroot.
While the correct fix is definitely for Elasticsearch to accept to run in chroots (elastic/elasticsearch#12018), there might be some possible workarounds in reprounzip-vagrant.

It is possible to make / a mountpoint by bind-mounting it from somewhere else and chrooting in the mount
Also, might be good to create a fake fstab? With at least an entry for /? Docker mounts a few key files into the container (such as hosts, resolv.conf), we might want to do that

still not work in chroot.
Caused by: java.io.IOException: Mount point not found
at sun.nio.fs.LinuxFileStore.findMountEntry(LinuxFileStore.java:91) ~[?:?]
at sun.nio.fs.UnixFileStore.(UnixFileStore.java:65) ~[?:?]
at sun.nio.fs.LinuxFileStore.(LinuxFileStore.java:44) ~[?:?]
at sun.nio.fs.LinuxFileSystemProvider.getFileStore(LinuxFileSystemProvider.java:51) ~[?:?]
at sun.nio.fs.LinuxFileSystemProvider.getFileStore(LinuxFileSystemProvider.java:39) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.getFileStore(UnixFileSystemProvider.java:368) ~[?:?]
at java.nio.file.Files.getFileStore(Files.java:1461) ~[?:1.8.0_192]
at org.elasticsearch.env.Environment.getFileStore(Environment.java:324) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.env.NodeEnvironment$NodePath.(NodeEnvironment.java:108) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.env.NodeEnvironment$NodeLock.(NodeEnvironment.java:209) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.env.NodeEnvironment.(NodeEnvironment.java:267) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.node.Node.(Node.java:296) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.node.Node.(Node.java:265) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.4.jar:6.5.4]

I don't think you can mount a directory over itself. The doc you linked is for Docker, not chroot.
I could make a fix for this in reprounzip-vagrant, but I don't feel so good adding something weird only for one application... Might be worth doing since Elasticsearch is so common, though...


Test harness update

@jweissm - the problem was in a dependency - stix-edh.  I released a patch version 1.0.3.  I think the only change you need to make is on line 91 of setup.py - change to 1.0.3.


No reconnection for mongodb_topology_pool

I use mongodb_topology_pool to pool my mongodb's request, but I found out that if the mongodb is shutdown, the monogo_topology_pool will have no ability to reconnect and so I have to restart the whole application.

run the application with mongodb sdk
stop the monogdb
requests will stop in mongodb operation
restart mongodb, no reconnection.

I have tried to figure out what's wrong and looks like the mc_pool_sup is always down after the workers get some connection error.

Sounds like a bug.

I think the problem is that the supervisor is trying too fast to reconnect before the mongodb is restarted, it retried over the intensity during the period so the supervisor itself is terminated

Yes. I noticed that too, when testing this issue.
I am now thinking about refactoring the mongoc module, as it is very hard for me to dive into this code.
After the refactoring I think this error will be solved.
But if it is critical for you - you can make a pr to master with old code.

No it's not critical, I happened to found this when I was switching my mongodb server. It won't happen frequently. I can wait for refactoring and I think that will be better.

the only thing that starts mc_pool_sup is mongoc:connect/3, which ends up doing mc_pool_sup:start_link/0 in the calling process; so if you happen to call mongoc:connect/3 in a process that ignores it, like i did (e.g. a supervisor, which always ignores 'EXIT' from non-children), then nothing will restart it. there are a few possible solutions i can think of:

return the mc_pool_sup pid from mongoc:connect/3 if it had to be started, but then this would change its return type;
remove the call to mc_pool_sup:ensure_started/0 from mongoc:connect/3, and add to documentation that you must start mc_pool_sup before using mongoc;
ditto, but just start mc_pool_sup from mc_super_sup.


GUI issue

Please check forum address:
https://forum.iobroker.net/topic/37687/anzeigefehler-der-web-oberfläche

Please retry ... works for me ... testin Admin 5 please


Additional Measurement Tracking

Hi Ron,
First, thank you for creating this great add-on! It’s really useful and works very well.
As far as I understand, the add-on currently tracks only weight. Would it be possible to add support for tracking other measurements (e.g., body fat, etc.)?
Thank you in advance for considering this request, and I look forward to your response!
Best regards,
Ocamond

Hi Ocamond,
Thanks for the feedback! I'm glad you've found it useful. Since you're the first to try it out, and I've only tested things on my own setup, I'm curious about your setup:
Which model do you have? ESF-551 or a different one?
Are you using Home Assistant OS or core/supervised/container? Running on Mac/Linux/Windows?
About tracking other measurements - sure, could be fun to try. The underlying library I created already reads the impedance measurement from the scale, which is likely the basis for those other metrics. The main thing will be calculating the body composition metrics from it.
From a quick look online there doesn't seem to be a definitive formula, as it depends on how the impedance is measured. The best approach might be to emulate the VeSync app's calculations. Maybe I can try decompiling the apk to look for their method. Or collecting lots of measurements and trying regression.
I'll do some more reading and give it some thought over the weekend and then I'll give it a try. I'll update how things go.
Best regards,
Ron

Here is the corrected English version:
Hi Ron,
Sorry for the late reply; it was a hectic week.
I’m using the ESF-551 with Home Assistant OS running on a Raspberry Pi. You really don’t need to invest the time if you’re short on it.
I also have the Xiaomi Mi Smart Scale 2, which works perfectly with Home Assistant.
Best regards,
Ocamond

Done!
New release with support for body metrics is now available :-)


Adding code coverage from CodeCov

Change-Id: I464c67f37514107a0bb2650a2f1e0c4ffeab4aca

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:

@salismt Should be all set!


Installing packages that depend on fsevents "throws up all over the terminal"

Expected behavior:
> yarn install
yarn install v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 124.17s.

Actual behavior:
> yarn install
yarn install v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
warning<EMAIL_ADDRESS>The platform "win32" is incompatible with this module.
info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/2] ⠁ fsevents: gyp ERR! not ok
[-/2] ⠁ waiting...
[-/2] ⠁ waiting...
[-/2] ⠁ waiting...
error Error running install script for optional dependency: "E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\fsevents: Command failed.\nExit code: 1\nCommand: C:\\WINDOWS\\system32\\cmd.exe\nArguments: /
d /s /c node-pre-gyp install --fallback-to-build\nDirectory: E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\fsevents\nOutput:\nnode-pre-gyp info it worked if it ends with ok\nnode-pre-gyp info using nod
<EMAIL_ADDRESS>info using<EMAIL_ADDRESS>| win32 | x64\nnode-pre-gyp info check checked for \"E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\fsevents\\lib\\binding\\Release\\node-v47-win32-x
64\\fse.node\" (not found)\nnode-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v47-win32-x64.tar.gz\nnode-pre-gyp http 404 https://fsevents-binaries.s3-us-wes
t-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v47-win32-x64.tar.gz\nnode-pre-gyp ERR! Tried to download: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v47-win32-x64.tar.gz \nnode
-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v47 ABI) (falling back to source compile with node-gyp) \nnode-pre-gyp http Pre-built binary not available for your system,
 looked for https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v47-win32-x64.tar.gz \ngyp info it worked if it ends with ok\ngyp info using<EMAIL_ADDRESS>info using<EMAIL_ADDRESS>0 | win32 | x64\ngyp info ok \ngyp info it worked if it ends with ok\ngyp info using<EMAIL_ADDRESS>info using<EMAIL_ADDRESS>| win32 | x64\ngyp info spawn C:\\Python27\\python.EXE\ngyp info spawn args [ 'E
:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\node-gyp\\\\gyp\\\\gyp_main.py',\ngyp info spawn args   'binding.gyp',\ngyp info spawn args   '-f',\ngyp info spawn args   'msvs',\ngyp info spa
wn args   '-G',\ngyp info spawn args   'msvs_version=auto',\ngyp info spawn args   '-I',\ngyp info spawn args   'E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\fsevents\\\\build\\\\config.gy
pi',\ngyp info spawn args   '-I',\ngyp info spawn args   'E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\node-gyp\\\\addon.gypi',\ngyp info spawn args   '-I',\ngyp info spawn args   'C:\\\\U
sers\\\\Will\\\\.node-gyp\\\\5.3.0\\\\include\\\\node\\\\common.gypi',\ngyp info spawn args   '-Dlibrary=shared_library',\ngyp info spawn args   '-Dvisibility=default',\ngyp info spawn args   '-Dnode_root_di
r=C:\\\\Users\\\\Will\\\\.node-gyp\\\\5.3.0',\ngyp info spawn args   '-Dnode_gyp_dir=E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\node-gyp',\ngyp info spawn args   '-Dnode_lib_file=node.li
b',\ngyp info spawn args   '-Dmodule_root_dir=E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\fsevents',\ngyp info spawn args   '--depth=.',\ngyp info spawn args   '--no-parallel',\ngyp info
spawn args   '--generator-output',\ngyp info spawn args   'E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\fsevents\\\\build',\ngyp info spawn args   '-Goutput_dir=.' ]\nTraceback (most recen
t call last):\r\n  File \"E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\node-gyp\\gyp\\gyp_main.py\", line 16, in <module>\r\n    sys.exit(gyp.script_main())\r\n  File \"E:\\git\\PHP\\Code\\wholesale-v
ue-ui\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 545, in script_main\r\n    return main(sys.argv[1:])\r\n  File \"E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\node-gyp\\gyp\\pylib\\
gyp\\__init__.py\", line 538, in main\r\n    return gyp_main(args)\r\n  File \"E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\__init__.py\", line 523, in gyp_main\r\n    gener
ator.GenerateOutput(flat_list, targets, data, params)\r\n  File \"E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\generator\\msvs.py\", line 2003, in GenerateOutput\r\n    sln_
projects, project_objects, flat=msvs_version.FlatSolution())\r\n  File \"E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\generator\\msvs.py\", line 1762, in _GatherSolutionFold
ers\r\n    return _DictsToFolders('', root, flat)\r\n  File \"E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\node-gyp\\gyp\\pylib\\gyp\\generator\\msvs.py\", line 1715, in _DictsToFolders\r\n    for fol
der, contents in bucket.iteritems():\r\nAttributeError: 'MSVSProject' object has no attribute 'iteritems'\r\ngyp ERR! configure error \ngyp ERR! stack Error: `gyp` failed with exit code: 1\ngyp ERR! stack
  at ChildProcess.onCpExit (E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\node-gyp\\lib\\configure.js:305:16)\ngyp ERR! stack     at emitTwo (events.js:87:13)\ngyp ERR! stack     at ChildProcess.emit (
events.js:172:7)\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\ngyp ERR! System Windows_NT 10.0.14393\ngyp ERR! command \"C:\\\\PROGRAM FILES\\\\NODEJS\\\\node
.exe\" \"E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node
_modules\\\\fsevents\\\\lib\\\\binding\\\\Release\\\\node-v47-win32-x64\\\\fse.node\" \"--module_name=fse\" \"--module_path=E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\fsevents\\\\lib\\\\
binding\\\\Release\\\\node-v47-win32-x64\"\ngyp ERR! cwd E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\fsevents\ngyp ERR! node -v v5.3.0\ngyp ERR! node-gyp -v v3.4.0\ngyp ERR! not ok \nnode-pre-gyp ERR
! build error \nnode-pre-gyp ERR! stack Error: Failed to execute 'C:\\PROGRAM FILES\\NODEJS\\node.exe E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\node-gyp\\bin\\node-gyp.js configure --fallback-to-bu
ild --module=E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\fsevents\\lib\\binding\\Release\\node-v47-win32-x64\\fse.node --module_name=fse --module_path=E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modul
es\\fsevents\\lib\\binding\\Release\\node-v47-win32-x64' (1)\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\fsevents\\node_modules\\node-pre-gyp
\\lib\\util\\compile.js:83:29)\nnode-pre-gyp ERR! stack     at emitTwo (events.js:87:13)\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:172:7)\nnode-pre-gyp ERR! stack     at maybeClose (intern
al/child_process.js:818:16)\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)\nnode-pre-gyp ERR! System Windows_NT 10.0.14393\nnode-pre-gyp ERR! command \"
C:\\\\PROGRAM FILES\\\\NODEJS\\\\node.exe\" \"E:\\\\git\\\\PHP\\\\Code\\\\wholesale-vue-ui\\\\node_modules\\\\fsevents\\\\node_modules\\\\node-pre-gyp\\\\bin\\\\node-pre-gyp\" \"install\" \"--fallback-to-bui
ld\"\nnode-pre-gyp ERR! cwd E:\\git\\PHP\\Code\\wholesale-vue-ui\\node_modules\\fsevents\nnode-pre-gyp ERR! node -v v5.3.0\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.29\nnode-pre-gyp ERR! not ok \nFailed to exe
success Saved lockfile.
Done in 124.17s.

Sure, it ended with "success" and exit code 0, but I'm the one stuck explaining to my boss

"No really it's OK to just ignore that error"

and then my boss telling me,

"Well how am I gonna explain that to the client? It looks like the computer threw up all over the terminal!"

If I wanted to "fix" this, where would I start? Obviously it is already marked as an optionalDependency of chokidar. So my inital thoughts are:

the build script for fsevents could detect the Windows platform earlier (before running node-gyp) and abort much more quietly, OR
chokidar could stop listing fsevents as an optionalDependency and handle detecting Mac and installing fsevents, OR
maybe the problem is with npm/yarn itself and how it treats optionalDependencies. Why is it even trying to build fsevents when the package.json file clearly says "os": "darwin"?

npm basically ignores 'os', it prints a warning but that's it.  I haven't worked with yarn but it sounds like it works the same.
The current UX is regrettable but I'm disinclined to add hacks to fsevents to work around npm's broken behavior.  The node-pre-gyp -> node-gyp dance is fragile enough that I don't like the idea of tacking on more stuff.
You could try petitioning npm but their CLI team seems to be permanently understaffed.  You may have better luck with yarn.

Huh, now I thought I used to have this problem with npm... but now I can only reproduce it in yarn. I'm going to see what yarn's deal is... I think it is marking it as an installation failure but not excluding it from its lifecycle build scripts, or something. Thanks for pointing me in the right direction.

Duplicate of https://github.com/yarnpkg/yarn/issues/1285

For posterity: Try using yarn install --ignore-optional


commentstring of legacy vim should be "%s

vim9 is '#'

This was already changed, I'll update runtime files soon.

This was already changed, I'll update runtime files soon.


Top Bar theme doesn't follow the rest of the browser theme

I installed a theme from the default Theme section that changes the colors of Zen browser but it the top bar doesnt change

If i install a theme from the Zen Theme Store https://zen-browser.app/themes/ it works fine

I was not able to reproduce this

Do you have any other modifications on your top bar? some other theme maybe? so that i can try to reproduce it

Seems to only happen in some themes like the two on top of my screenshot
On Sun, Sep 1, 2024 at 8:12 AM, Vytor Rennan @.***(mailto:On Sun, Sep 1, 2024 at 8:12 AM, Vytor Rennan < wrote:

I was not able to reproduce this
zen_bEdraeS0EB.png (view on web)
zen_FffGi9UDgc.png (view on web)
Do you have any other modifications on your top bar? some other theme maybe? so that i can try to reproduce it
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

tried the BlackSwirlyWater theme on my browser, it looks like it doesn't work on the default compact mode of zen, it is a problem with the zen browser compact mode it self

can you confirm if its the case on your browser too?

I dont use compact mode but it still happens to the BlackSwirlyWater theme
On Sun, Sep 1, 2024 at 6:26 PM, Vytor Rennan @.***(mailto:On Sun, Sep 1, 2024 at 6:26 PM, Vytor Rennan < wrote:

can you confirm if its the case on your browser too?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

you see, this theme uses the same code as the default compact mode from the zen browser, so if this problem were to happen with the default compact mode it would also happen with the this theme.

i don't think i can fix this, it looks like it is a zen browser problem, where some themes don't work on the compact mode, and because, the default compact mode from the zen browser is the same as the one from this theme just limited to the top bar, if they have a deeper bug beyond the css that makes something not work on the default compact mode, it will also not work on this theme


clientsClaim() not seems to work.

Library Affected:
workbox-webpack-plugin, workbox-core
Browser & Platform:
Chrome latest
Issue or Feature Request Description:
The code here:
skipWaiting();
clientsClaim();
precacheAndRoute(self.__WB_MANIFEST);

You sure this is how clientsClaim is supposed to work? even If I register my service worker instantly without 'load' event on window, clientsClaim doesn't seem to work. How do I know? I put my console logs in workbox's fetch listener and they don't get logged in the console for the first page load.
Could it be due to the fact that install and activate event takes some huge time somehow from workbox and that's why my requests for js/css and assets get initiated faster than them which concludes that fetch event will not be called?

I put my console logs in workbox's fetch listener and they don't get logged in the console for the first page load.

Can you clarify what's not happening here? Are you talking about fetch listeners for the navigation request to the page? Fetch listeners for sub-resources for the page? Fetch listeners for dynamic fetches that happen after the activate event fires?
For context, clientsClaim() will only claim clients after the service worker successfully installs and activates, so any fetches that occur before that are not expected to be intercepted by the service worker. Does that explain what you're seeing?
In case you're not familiar with where clientsClaim() fits into the service worker lifecycle, here's a good summary: https://developers.google.com/web/fundamentals/primers/service-workers/lifecycle#clientsclaim

As I said, I have the following code in my SW.
skipWaiting();
clientsClaim();
precacheAndRoute(self.__WB_MANIFEST);

I register my SW instantly . not in load event or any event.
AND I found workbox's fetchlistener and put there
console.log("IT comes here", event.request.url);

Now, when I open my website for the first time,  what I should be able to see is those console.log-s which state "IT comes here". I don't see any of them at all. When I removed workbox and used my custom install/activate/fetch listener,  and put self.clients.claim() in activate event and put console.log in fetch listener,  now it prints (not all the urls, but at least 3 of them). but for workbox, it doesn't print any console logs which would tell me that fetch listener is called at least once for the first page load.
My assumption is your install/activate event with clients claim take a really good amount of time and before it takes effect, all of my requests get done and that's why fetch listener never gets called.  But for my case, in install/activate, i only have 1 line of code and looks like it's faster and that's why i can see at least 3 of the urls in fetch listener.
Agree?

My assumption is your install/activate event with clients claim take a really good amount of time and before it takes effect.

This is what clientsClaim() does: https://github.com/GoogleChrome/workbox/blob/7eb0a51d09d0d11b7bf79b8e70cc4f9297e42494/packages/workbox-core/src/clientsClaim.ts#L22
I think there must be some other explanation for what you're seeing, because as far as I can tell, Workbox isn't doing anything differently from what you're doing. I suspect the reason you're seeing what you are is that when you're testing your service worker, a previously active service worker is still controlling the page (or something like that).
Regardless, what would be helpful is if you could create a demo of both cases so we could compare, but in general I don't think you can reliably expect the service worker to install before your fetch events complete.


fixed/gateway: rate limiting not active on websocket

This patch fixes a bug where the per-client rate limiter was not used by the ws forwarding

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "fix-wutai",
    "component": "bahamut",
    "pr-id": "142",
    "commit-sha": "5c7081006274b8ad0f3ae8a17ee82e5db91c7bb7",
    "pipeline": "master"
  },
  {
    "project": "fix-wutai",
    "component": "backend",
    "pr-id": "1329",
    "commit-sha": "1714a9ed2ac485507a3ffcf4ddc79084455d24db",
    "pipeline": "master"
  }
]


Remove mixin asyncio.shield usage

Fixed by https://github.com/wikibusiness/aioamqp_consumer/pull/13/commits/93a69d6c315047485b252dd9d7e2be8d693cd977


Fix: card sizes without owner

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
10 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-2.7%) to 44.907%

Files with Coverage Reduction
New Missed Lines
%

src/entities/Place/routes/getPlaceMostActiveList.ts
2
76.47%

src/entities/Place/utils.ts
8
24.24%

Totals

Change from base Build<PHONE_NUMBER>:
-2.7%

Covered Lines:
209

Relevant Lines:
328

💛  - Coveralls


DSA/TDE considers that you are german speaking if you don't speak english

Describe the bug
If your Foundry application is setup to run in another language than english and you start a world that is setup to use DSA, then the world forces the whole foundry application to german. This means that the whole application and all other worlds (including non-DSA worlds such as a 5e or pathfinder) are now switched to german.
To Reproduce
Steps to reproduce the behavior:

Set foundry in a language that is not german or english. Example: french.
Create a new world for 5E
Create a new world for the DSA system.
start this new DSA world
=> Foundry swtiches to german
Leave the DSA world
open the 5E world
=> Foundry is still in german and the 5E world is in german

Expected behaviour
A system should never force anyone to speak a specific language. If your system doesn't support a language, Foundry will automatically take care of falling back to a default language for that system, but the system itself should not change the active language. This impacts everything and not only the system.
Additional context
This is related to the following code in init.js. This code forces the Foundry application to switch to german when it's not in english (or german, but that has no effect).
if (!["de", "en"].includes(game.i18n.lang)) {
        console.warn(`DSA5 - ${game.i18n.lang} is not a supported language. Falling back to default language.`)
        game.settings.set("core", "language", "de").then(()=> foundry.utils.debouncedReload())
    }

Please note that, in plain text, the code above can be read as follows: "If you do not speak english or german, then you must speak german". How does that sound?

Side note: I've played Das Schwarze Auge in the early 80's. I really want to get back to that game so I bought the 5th edition and I love it. But I only play on Foundry now. My players don't speak german and few speak english. So the fact that the system is forbidding the usage of other languages, including on elements not related to DSA, is a blocker for game adoption (inside and outside Foundry).

I'm sure Plushtoast can give feedback about the core language switch.
About "you must use english or german", I may bring some light into it.
The complex rules and combinations led to the fact that the code refers to the names of any items, special abilities, advantages etc., basically everything is adressed by its name. Therefore, it's not possible to mix entries from different languages (like importing a DE special ability into an EN world).
These DE/EN mixes led to many errors in the beginning, so they implemented kind of a "choose DE or EN" step. I was not aware that this language selection bleeds out to foundry core setting, which is uncool indeed. Inside the TDA module, it makes sense to streamline and force one language for all players.
I'm not sure if translation into other languages is possible at all, this would be another question to be answered by the devs.

Your copied code fragment already shows the answer.
This system only works in de and en. Any other language is not supported.
This is due to technical reasons as Mckee tried to explain (there are some more), also due to licencing issues. But the biggest reason is that 99% of the users are german. There are almost no english players and french players are even less.
We noticed that people struggle with the setup of foundry. E.g. whenever you change the PC or the browser it loses all settings. Also especially beginners are unable to read notifications that they have to set the proper language. They just ignore everything. This leads to people complaining why the system is in english and why this and that problem and so forth.
So the best way to make this user friendly was to force it to german (because 99%).
Adding other languages is also work and this is already an insane amount of work.
French is the closest language to being added but the amount of work is in now relation to the required work or the expected amount of french (I assume you r french) people playing this.
So sorry. This solution is very intentional and required for me to have a peaceful evening.

Just an idea. Would it be hard to implement a GM only option which just prevents DSA to change the core language?
So it must be activated by the GM but it allows to play DSA in either DE or EN, while having your foundry core stay in japanese, french or whatever.
Because despite all the (understandable) reasons for this design, it's usually a no-go to tamper core settings.

@Plushtoast
I find your answer a bit brutal, especially in the beginning. But ok.
I can understand that you had technical issues that pushed you to make this choice, but your decision doesn't impact just the language you support. It impacts the languages Foundry and the other systems support. You are actually affecting the whole application.
Your argument about the fact that few people play in French holds, of course. You are automatically switching them to German. So that makes total sense. And yes, people move on when you show a popup message. Even if they can read your message in whatever language you chose to show it, they have no other choice but to move on.
I can understand that setting up Foundry and configuring it can be challenging for some people. But do you really think this is your responsibility, as a system provider, to help people getting their Foundry working in German? This is a problem with Foundry, not with the DSA system. The current solution is inducing side effects on all the non-German (or non-English) users. I like the idea from @mckee14 to have the GM help the users setting up their system instead of forcing it. This is probably something that deserves more thought.
Finally, I don't know what licencing issues you may be facing, but I don't think that forcing a language on the whole Foundry application can enforce any licence in any way. What matters is what you deliver, not what others do with the product. Trying to police what people do on their computer is a slippery slope and I hope you won't go that way.
Anyway, if you happen to change your mind one day, please reach out and I might be able to help, either as a programmer or as a native French speaker.
Note: I'm actually Belgian, not French, but that shouldn't matter, right?

The answer was honest not brutal. But if you prefer a nice answer it is this one:
The circumstances require a certain amount of pragmatism which we apply whereever it is necessary

Yeah, but imagine it the other way around. I install and play TDE in
german. Then I want to try out DnD, but for some reason it switches my
Foundry to EN.
Now I have problems within TDE because of DnD and thats just not really
nice, is it? :)
Plushtoast @.***> schrieb am Do., 16. Feb. 2023, 02:22:

The answer was honest not brutal. But if you prefer a nice answer it is
this one:
The circumstances require a certain amount of pragmatism which we apply
whereever it is necessary
—
Reply to this email directly, view it on GitHub
https://github.com/Plushtoast/dsa5-foundryVTT/issues/1363#issuecomment-1432326915,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO7QFHZYLP7KYKUN3Y5I2S3WXV6NTANCNFSM6AAAAAAU4ZIYPI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Next patch will show an unclosable popup which shows that the language is about to change instead of an automatic change.
Can#t do without the switching.


Multi-line function arguments

Norminette is inconstant with how it treats multi-line function arguments, as when using this header file:
#ifndef FT_EXAMPLE_H
# define FT_EXAMPLE_H

void	ft_foobar(
	char really_long_variable_name_for_the_purposes_of_this_example,
	char the_second_one_wouldent_fit_on_the_same_line
);

#endif

ft_example.h: KO!
TOO_FEW_TAB          (line:   5, col:   1):	Missing tabs for indent level

This can be address by adding more tabs in front of the arguments:
void	ft_foobar(
			char really_long_variable_name_for_the_purposes_of_this_example,
			char the_second_one_wouldent_fit_on_the_same_line
);

However then the ); also has to be moved:

TOO_FEW_TAB          (line:   7, col:   1):	Missing tabs for indent level

This violates a norm rule so its not a solution:

NO_SPC_BFR_PAR       (line:   7, col:  13):	Extra space before parenthesis (brace/bracket)

The only working 'configuration' is to move the ); one line up:
void	ft_foobar(
			char really_long_variable_name_for_the_purposes_of_this_example,
			char the_second_one_wouldent_fit_on_the_same_line);

ft_example.h: OK!

All of this however is not an issue in the function it self:
#include "ft_example.h"

#include <stdio.h>

void	ft_foobar(
	char really_long_variable_name_for_the_purposes_of_this_example,
	char the_second_one_wouldent_fit_on_the_same_line
)
{
	printf("%c%c",
		really_long_variable_name_for_the_purposes_of_this_example,
		the_second_one_wouldent_fit_on_the_same_line
	);
}

ft_example.c: OK!

As far as I can see the first header file 'configuration' should not be violating any norm-rules, is the most readable and is consistent with how its setup for functions in c files.

This should really be fixed, but for the mean time, the "fix" is to put the , on the next line

multi line length checking seems a bit flawed as well.     nml_inv = vec3_sub((t_vec3){1.0, 1.0, 1.0}, vec3_div_s(                 vec3_mult(cyl->diff, cyl->diff), (void)vec3_dot(cyl->diff, cyl->diff))); is considered OK but is 87 columns long

@Tishj this is currently not a working 'fix' as it still results in the same error:

TOO_FEW_TAB (line: 5, col: 1): Missing tabs for indent level

This 'configuration' should (from what I know) actually also be causing an other norm-error as comma's aren't allowed to be at the start of a line.
@gmzorz The line you provided does return a LINE_TOO_LONG norm-error for me.
I would suggest that you open an other issue with more details on this matter. Or add a comment with more details about this case to the already on going issue #40

Hello,
@gmzorz as Eathox said, it would be better if you opened a ticket for your issue.
Regarding the main issue:
			char really_long_variable_name_for_the_purposes_of_this_example,
			char the_second_one_wouldent_fit_on_the_same_line
			);```
Is the proper way to do it (one more indentation for the lines inside the parenthesis) so i've fixed it. Will be deployed soon.
Also, comma on line start has been fixed, make sure you are using the latest norminette version @Tishj
Thanks for the issue.

Fixed with 3.0.5


Best practices for templates

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Preview environment: https://ci.pr.harness.io/pr-570

Preview environment: https://ci.pr.harness.io/pr-570

Preview environment: https://ci.pr.harness.io/pr-570

Preview environment: https://ci.pr.harness.io/pr-570

@rashminandasahoo can we close this out?


Add Overleaf-compatible doc class

Minor changes to doc class to allow direct compatibility with Overleaf without any errors.
Simply need to replace import statement for doc class "snu-ece-bsc-thesis" -> "snu-ece-bsc-thesis-pdftex".

Thank you for the contribution!
Can you add sample pdfs (both English and Korean versions) made from the new class?

Also, it would be best to modify necessary parts with the mechanism here:
https://github.com/Zeta611/snu-ece-bsc-thesis/blob/f94bb10bb5934ce606ed1540f5cd589763c4b67f/snu-ece-bsc-thesis.cls#L31-L39
You can use \ifpdftex to check if it is using the pdfLaTeX engine, and add necessary modifications.

Ok! I'll see if I can appy the changes in the next 2 days or so.


[Bug]: Failed to add data

ODC version
odc421
OB version
not have
What happened?
Failed to add data
What did you expect to happen?
Can add data
How can we reproduce it (as minimally and precisely as possible)?
1.Create Table
CREATE TABLE "全类型表" (
"col1" NUMBER(*,0),
"col2" NUMBER,
"col3" CHAR(120),
"col4" VARCHAR2(120),
"col5" VARCHAR2(120),
"col6" BLOB,
"col7" CLOB,
"col8" DATE,
"col9" TIMESTAMP(6),
"col10" TIMESTAMP(6) WITH TIME ZONE,
"col11" TIMESTAMP(6) WITH LOCAL TIME ZONE,
"col12" RAW(200),
"col13" INTERVAL YEAR (2) TO MONTH,
"col14" INTERVAL DAY (2) TO SECOND (6),
"col15" NCHAR(120),
"col16" NVARCHAR2(120),
"col17" FLOAT(126),
"col18" BINARY_FLOAT,
"col19" BINARY_DOUBLE,
"col20" UROWID(4000),
"col21" UROWID(4000)
) COMPRESS FOR ARCHIVE REPLICA_NUM = 1 BLOCK_SIZE = 16384 USE_BLOOM_FILTER = FALSE TABLET_SIZE = 134217728 PCTFREE = 0;

Insert data within the data

Anything else we need to know?
No response
Cloud
No response

Considering that the data type of UROWID is rarely used in actual business scenarios, and this issue is only raised by QA, the current repair solution has more advantages than disadvantages. This bug will be treated as "won't fix". We will deal with it if subsequent customers encounter this scenario.


Data-poster not available when installing from npm

Expected Behavior
To lazyload the poster for a video with data-poster, like in the demo https://apoorv.pro/lozad.js/demo/
Current Behavior
After installing from npm (v1.14.0) the data-poster is not swapped for poster.
Possible Solution
Publish the latest changes to npm?
Tested on:

Chrome Version 80.0.3987.132
MacOS Mojave 10.14.6

Available https://www.npmjs.com/package/lozad#example-with-video


Split up install and update

Where, update has the current behavior and install will use the last known SHA.

Consider adding a sources_locked section to the configuration file:
...
sources_locked:
- repo: https://github.com/jacebrowning/gdm-demo
  dir: gdm_1
  rev: e6c67f32be788a503373c4a8f02ed132f7a3a8ce
  sources_locked:
  - repo: https://github.com/jacebrowning/gdm-demo
    rev: e6c67f32be788a503373c4a8f02ed132f7a3a8ce
  - repo: https://github.com/jacebrowning/gdm-demo
    rev: e6c67f32be788a503373c4a8f02ed132f7a3a8ce
    sources_locked:
    ...


Getting Started with the Eigendecomposiion in Python

Proposal Submission
Getting Started with the Eigendecomposiion in Python
Proposed article introduction
Eigendecomposition is a Linear Algebra technique used in machine learning to factorize square data matrices into three matrices that are easy to work with under intense matrix transformations. For a matrix to be decomposed using the Eigendecomposition, it must be a square matrix. An Eigendecomposition of a square matrix A is given as A = VSV^-1, where;
V is a matrix of eigenvectors of matrix A,  S is a diagonal matrix of eigenvalues corresponding to eigenvector in the matrix V, and V^-1 is an inverse of V.
The general idea in Eigendecomposition is to represent a matrix by its eigenvalues and eigenvectors that is computationally less expensive than the original matrix. Moreover, this technique does not lose the matrix's information as we can retrieve the original matrix from these three components by multiplying them together.
The benefit of Eigendecomposition can not be realized when working under small transformations, but when we are transforming a data matrix many times, say 1000 times, we can appreciate its contribution in easing the computational power needed if we were to multiply the borigin\al matrix 1000 times. For, Eigendecomposition we only need to multiply the diagonal matrix 1000 times. This is much easy with a diagonal matrix; we only take each value of the diagonal matrix and raise it to the power value given and obtain a scaled diagonal matrix. This makes the computation very easy and time-saving.
In this article we will look at the following:

First, we shall clearly explain what Eigendecomposition is and how it is used in machine learning.
Secondly, by hand, we will perform Eigedecomposition on a synthetic data matrix. Before we can do this first, we shall look at properties that a matrix must satisfy to be decomposed using Eigendecomposition.
Also, we shall look at the importance of Eigendecomposition over transforming the original matrix. Here we shall compare the computation carried on a matrix with Eigendecomposition and without.
Lastly, we will implement Eigendecomposition in python.

Key takeaways
By the end of this article, a serious learner will know:

What's Eigendecomposition
What are properties a matrix must satisfy to be decomposed using Eigendecomposition
How to perform Eigendecomposition by hand on a data matrix
What are the benefits of performing Eigendecomposition on a data matrix
How Eigendecomposition is implemented in python

Article quality
Many articles are already in place trying to handle Eigendecomposition at their best. However, most of them focus on computing this algorithm by hand and leave learners to implement it by themselves. Also, most of them don't let learners know the importance of applying this technique to a data matrix. This article will address these limitations. First, we will show the learner how to compute the Eigendecomposition by hand and implement it using software python, as it's the most used language in machine learning. Then, again, we will show how the Eigendecomposition eases matrix transformation computations by comparing a computation with and without this algorithm. This is what will make this article uniques from the rest already in place.
References
N/A

Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it. 🚀

Sounds like a helpful topic - let's please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it). @jacksonjate1
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting it for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double-check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved


[BUG]: Accessibility WCAG audit non-conformance

What happened?
We have discovered some non-conformities relating to an accessibility audit for WCAG 2.1 AA.
There are a few remarks which have been raised due to the Stripe CardElement in our React web project that we believe we cannot resolve using the provided options/props.
I could not find any information in the Stripe documentation/website as to whether Stripe complies by any accessibility guidelines.
I'd like to know whether Stripe has any intention to resolve these issues or if there is some way that I've missed to resolve them on our side.
Please find below the list of these remarks:
1.3.1 Info and Relationships (Level A)
Within the Stripe iframe on the page to enter payment details, there is a focusable input element with aria-hidden=”true” and the textboxes to enter a credit card number, expiration date, CVC, and zip are required, but are missing the HTML required property.

3.3.2 Labels or Instructions (Level A)
Within the Stripe iframe on the page to enter payment details, the text boxes to enter a card number, expiration date, cvc, and zip code are missing visible labels.

1.4.12 Text Spacing (Level AA 2.1)
Text spacing can be adjusted according to WCAG specifications without a loss of content or functionality for a majority of this product. However, on the page to enter payment details, the placeholder text within the text boxes within the Stripe iframe to enter a card number, expiration date, cvc, and zip does not change when text spacing is adjusted in the stated ways.
To test this, I have used this bookmarklet: http://html5accessibility.com/tests/tsbookmarklet.html

Environment
No response
Reproduction
No response

Hi, this looks like it’s an issue with the underlying Stripe.js script. React Stripe Elements, React Stripe.js, and the Stripe.js loader are wrappers around that, so we don’t track those issues here. Please reach out to Stripe Support so that we can track and prioritize this issue internally.

There are still some issues that make some Stripe elements not conform to the necessary accessibility requirements. I (wrongly) posted those issues here. Are there any more initiatives going on for fixing these issues or do I need to contact support as well?


Clarify InsecureRequestWarning and verify=True in docs

The docs:
http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification
say:

By default, verify is set to True. Option verify only applies to host certs.

If my HTTPS connection is being verified by default, why am I also seeing a InsecureRequestWarning?  Clarifying this situation and updating the docs with more info would be helpful IMO.

If my HTTPS connection is being verified by default, why am I also seeing a InsecureRequestWarning? Clarifying this situation and updating the docs with more info would be helpful IMO.

I don't know why. Can you give us any details to help you?

I don't know why. Can you give us any details to help you?

Thank you for the prompt response.  Actually, this was my fault.  I didn't realize I was using a session that had verify=False.  The warning did exactly what it was supposed to, I just thought it was someone elses's fault!  :o/
Thanks again.

Hah. No worries.


Firefox extension

If there's time support for firefox as well as Chrome would be nice!

We'll see just how useful this is... https://github.com/gravitylow/OpenCourse-Firefox


change(rpc): check contextual validity of getblocktemplate response

Motivation
The getblocktemplate response must be contextually valid based on the best tip in the state.
Needs other getblocktemplate fields for testing the success case.
Closes #5376
Solution

Add a new state request for checking the contextual validity of a prepared block without committing it.
Make a prepared block with default nonce and solution fields to use the new state request.
Update vectors and snapshot tests to use a MockService that returns a Validated response.

Review
This PR is part of regular scheduled work.
Reviewer Checklist

[ ] Will the PR name make sense to users?

[ ] Does it need extra CHANGELOG info? (new features, breaking changes, large changes)

[ ] Are the PR labels correct?
[ ] Does the code do what the ticket and PR says?
[ ] How do you know it works? Does it have tests?

@Mergifyio update

This one will conflict with https://github.com/ZcashFoundation/zebra/pull/5659 in the tests as i added some stuff from this PR there. I will prefer https://github.com/ZcashFoundation/zebra/pull/5659 to go first just because i have another PR to push that is based on it and it will be easier for me to do it that way.

This one will conflict with #5659 in the tests as i added some stuff from this PR there. I will prefer #5659 to go first just because i have another PR to push that is based on it and it will be easier for me to do it that way.

Sounds good, I'd also prefer #5659 go first so this PR could use the populated target field for the difficulty_threshold of the prepared block.

I think the ticket for this PR was a bit confusing. We need to change how the mempool checks transactions, so it always uses the best chain.
If we wait until the transactions are in the getblocktemplate response, it is too late, because all we can do is return an error to the caller. We don't know which transactions to remove to make the block valid.

Oops. 🤦 I thought I just hadn't come across the code that was checking the nullifiers, I understand now.

It is also going to be tricky to verify the block, because the solution in the header requires Proof of Work. (Correct equihash solutions are expensive to create, so we can't do that in tests or in the RPC.)
The code looks like it could be useful for testing.

I believe block solutions are only checked in the block verifier. I created issue #5681 for adding this as a test.
I'm closing this because it would needlessly hurt performance in production.


Network error during downloading cloudformation Templates

If your issue relates to the Discovery Process, please first follow the steps described in the implementation guide Debugging the Discovery Component

Describe the bug
In Import a region step, tried downloading the following cloud formation templates, global-resources.template and regional-resources.template, but find this error in text:
Error: Network Error
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Browser (please complete the following information):

Name [e.g. chrome, firefox]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Is there a more descriptive error if you check your broswer's dev tools network tab?

Closing due to inactivity. Please feel free to reopen.


Crate not found in integration tests if crate-type = ["cdylib"]

Problem
I am developing code that needs to work with python, which requires me to have a crate type of cdylib.  It turns out that when you follow the recommendation to use a tests directory, the code within the directory cannot find the crate, failing with an error like the following:
   Compiling cargo_issue_6659 v0.1.0 (/home/cfkaran2/Desktop/cargo_issue_6659)
     Running `rustc --edition=2018 --crate-name tester tests/tester.rs --color always --emit=dep-info,link -C debuginfo=2 --test -C metadata=0525a91fc572753f -C extra-filename=-0525a91fc572753f --out-dir /home/cfkaran2/Desktop/cargo_issue_6659/target/debug/deps -C incremental=/home/cfkaran2/Desktop/cargo_issue_6659/target/debug/incremental -L dependency=/home/cfkaran2/Desktop/cargo_issue_6659/target/debug/deps`
     Running `rustc --edition=2018 --crate-name cargo_issue_6659 src/lib.rs --color always --emit=dep-info,link -C debuginfo=2 --test -C metadata=b9fa70b838dfddae -C extra-filename=-b9fa70b838dfddae --out-dir /home/cfkaran2/Desktop/cargo_issue_6659/target/debug/deps -C incremental=/home/cfkaran2/Desktop/cargo_issue_6659/target/debug/incremental -L dependency=/home/cfkaran2/Desktop/cargo_issue_6659/target/debug/deps`
error[E0463]: can't find crate for `rustc_issue_report_cdylib`
 --> tests/tester.rs:1:1
  |
1 | extern crate rustc_issue_report_cdylib;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `cargo_issue_6659`.

Caused by:
  process didn't exit successfully: `rustc --edition=2018 --crate-name tester tests/tester.rs --color always --emit=dep-info,link -C debuginfo=2 --test -C metadata=0525a91fc572753f -C extra-filename=-0525a91fc572753f --out-dir /home/cfkaran2/Desktop/cargo_issue_6659/target/debug/deps -C incremental=/home/cfkaran2/Desktop/cargo_issue_6659/target/debug/incremental -L dependency=/home/cfkaran2/Desktop/cargo_issue_6659/target/debug/deps` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed

Steps

Checkout the repository at https://github.com/ckaran/cargo_issue_6659.
Follow the instructions in the README.md

Possible Solution(s)
None known.
Notes
$ cargo -V -vvv
cargo 1.32.0 (8610973aa 2019-01-02)
release: 1.32.0
commit-hash: 8610973aaf48615ba7dc9a38a9a2795ba6f36a31
commit-date: 2019-01-02

$ rustc -Vv
rustc 1.32.0 (9fda7c223 2019-01-16)
binary: rustc
commit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b
commit-date: 2019-01-16
host: x86_64-unknown-linux-gnu
release: 1.32.0
LLVM version: 8.0

$ uname -a
Linux EMANE 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic

You can add rlib (or lib) to the crate-type list, and it should work.  Tests can't link to the cdylib.
BTW, there's a typo in your example, tests/tester.rs should have extern crate cargo_issue_6659;.

Ah, sorry, since there is a chicken & egg problem between creating a repo that has the same name as the issue it's for, I sometimes forget to change the names.  Now fixed.
As for setting to an rlib or lib, the problem is that I'm using pyo3, which says that you must set the library type to cdylib, and not having my integration tests work was surprising to me.  If it is known that tests can't link to cdylib type libraries, it may be worth updating cargo's (or maybe rustc's) documentation to reflect this fact.

Yea, the documentation for crate-types could definitely be improved in general.
Feel free to leave more comments here if you run into any other issues. Otherwise I'll just leave this open as a documentation issue.

There are some potential issues with just adding `lib' to get it to work. See: https://github.com/rust-lang/cargo/issues/4881.

You can add rlib (or lib) to the crate-type list, and it should work. Tests can't link to the cdylib.

I would like to add that it doesn't work with no_std because cdylib target needs panic_handler, but lib doesn't and it results in duplicate symbol when building tests.

You can add rlib (or lib) to the crate-type list, and it should work. Tests can't link to the cdylib.
BTW, there's a typo in your example, tests/tester.rs should have extern crate cargo_issue_6659;.

@ehuss, is adding a second crate-type (such as rlib) still the preferred way to solve this?
It works, but it makes cargo build last longer since it has to generate two libraries...

I don't think there is any other way to do it right now.


[docs] Add 700 font weight support

In #16036 support for font weight 700 was added. So corrected the docs accordingly.

Thanks


differing field titles

On analyze.md there are two fields "z_inters" and "z_intrs" that need to be resolved as one.

@lilydemet Closing because I think your live workshop issue wasn't caused by the workshop, but rather that you typed the wrong value. So nothing to fix.


Add first draft of Git hooks (generic Git) usage

Other Git servers is the least worst

Agreed. I've updated to that option in 6a54da2a.

It feels a little odd to send folks to learn more only to external GH related pages. Could send them to Writing Build Scripts or something as well?

Yeah, it felt a little odd at the time. I think Writing Build Scripts wasn't a great fit (it makes a bunch of assumptions about running on an agent, which we aren't), but linking to the Builds API page seemed right. An industrious developer could cancel builds, add metadata, etc. a8d36756

we have a super secret landing page config

Linked in 13583353. I also added Phabricator on the assumption that the sidebar and landing page lists should be the same. Let me know if this was an overreach.
And that's all I've got now, @plaindocs. Ready for re-review and/or commentary from Keith.


uefi-macros: Improve entry macro errors

In Rust 1.69, the error output of our function typecheck will become less clear. Fix by doing an intermediate cast from the fn item to a fn pointer, and then checking the signature of that pointer.
Also improved the error span to point at the whole function signature rather than just the ident.
Fixes https://github.com/rust-osdev/uefi-rs/issues/649
Checklist

[ ] Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
[ ] Update the changelog (if necessary)

In Rust 1.69, the error output of our function typecheck will become less clear

Can you provide background information?


Josephine/calculate zone capacity

Pull Request doc
Purpose
The method calculates the aggregate transmission capacity (from + to) at zone level for each zone id. It is implemented in a similar way as "calculate_substation_capacity" method, but mapping for zone level.
What the code is doing

assign corresponding zone_id to the ends of each branch according to 'from_bus_id' and 'to'_bus_id'

filter branches: exclude those branches from and to the same zone

calculate the marginal transmission capacities by each unique 'from_zone_id" and by each unique 'to_zone_id' from filtered branches

calculate total transmission capacity for each zone by adding up 'from capacity' and 'to capacity' by each zone id

Testing
from powersimdata.design.transmission.substations import calculate_zone_capacity
from powersimdata.input.grid import Grid
grid = Grid("Western")
calculate_zone_capacity(grid)

I am wondering if the name of the function clearly communicate what is being done. I feel like discarding intra-zone branches should be reflected somehow in the name of the function. What about calculate_interzone_capacity?

We have a git guide available here where you will find our  commit message convention. You can reword your commit message to follow our convention with an interactive rebase.

Finished all the script revision, would you please recheck to see if I shall make any modifications @BainanXia @jon-hagg @rouille


Added ability to use default chroot

Due to compatibility issues with our framework on certain versions of CentOS, we needed to add the ability to use standard chroot. This change adds a configuration value to config.json

@drewkerrigan sorry for delay...  looking now

@drewkerrigan I'm only getting failures currently.  trying to create a cluster it says it exists, but then doesn't report on the list.  Adding nodes results in error adding node.
universe(git:version-1.x)$ dcos riak cluster create --cluster test
Cluster already exists

universe(git:version-1.x)$ dcos riak cluster list
No clusters created

universe(git:version-1.x)$ dcos riak cluster create
Cluster already exists

universe(git:version-1.x)$ dcos riak node add --nodes 3
New node: Error adding node.

New node: Error adding node.

New node: Error adding node.

universe(git:version-1.x)$ dcos riak cluster create --cluster riak-test-cluster
Cluster already exists

universe(git:version-1.x)$ dcos riak node add --cluster riak-test-cluster
New node: Error adding node.

@drewkerrigan ping!   we are moving PRs to the multiverse.. please resubmit there.


implement reboot & shutdown

This implements reboot & shutdown and closes #68 & closes #69.

@fusion44 could you take a look please? :)


add stack to numpy backend

I suggest adding tests and display the implementation in the docs. You'll likely have to declare it with def then.

seems a bit like an overkill the function would be :
def stack(x, axis=0):
return np.stack(x, axis=axis)
if we really want to be clear :
def stack(x, axis=0):
assert(type(x) == list)
return np.stack(x, axis=axis)
I'll add a test for now.

travis is timing out...

it passed!!!

on the plus side - we found out it wasn't running the test properly. On the minus -I don't know much about cntk - suggestions would be nice.
The error is       TypeError: stack() takes at most 2 arguments (6 given)
and happens here : t, f = cntk_func_tensors("stack", tensor_list, axis=stack_axis)

Please see how K.concatenate is tested. Stack and concatenate have similar signatures.

Could you add {{np_implementation}} at the end of the stack docstring in the TF backend? This will display the numpy implementation of stack in the docs. See #11507 if you don't see what I mean.

Please see how K.concatenate is tested. Stack and concatenate have similar signatures.
It has two tests that I see:

only tests shape and inputs two tensors - which seems lacking.
(test is for sparse concat) only for tensorflow.

your thoughts?

Could you add {{np_implementation}} at the end of the stack docstring in the TF backend? This will display the numpy implementation of stack in the docs. See #11507 if you don't see what I mean.

super cool.

@gabrieldemarmiesse or @farizrahman4u
Please review so I can move on to the next function. :)

LGTM, thanks!
(ignoring flaky test fail)

Ah I cant do that. Re running test.

eventually, it will pass if I run it a few times. The main thing is that y'all are happy with the code.

@fchollet cant merge because of flaky test. Please merge yourself.


Develop and test google analytics and see effects on numbers for site

Michael did this part and it works!


Un-Select all when publish

Goal
To make selective export easier and faster.
Motivation
If you have a lot of assets when exporting alembic and you only need to export one of them you need to manually un-tick all of them except the one needed to be exported.
If we had the option to unselect all this would become easier.

You can do this already, if you click on the header of a series of instances.
Ask Henrik, he knows.


💄 Plugin - playwright

import asyncio
from playwright.async_api import async_playwright
async def main():
async with async_playwright() as p:
for browser_type in [p.chromium, p.firefox, p.webkit]:
browser = await browser_type.launch()
page = await browser.new_page()
await page.goto('http://playwright.dev')
await page.screenshot(path=f'example-{browser_type.name}.png')
await browser.close()
asyncio.run(main())

#622 Work in progress


feat: Add layout & router

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Build ES module file

Changes to the build process to produce an ES module that can be consumed by bundlers (such as rollup and webpack).

see also https://github.com/rollup/rollup/wiki/pkg.module

@ppillot just to make sure. Is this ready to go?

I think it is. I've tried it on my web application, using webpack and it works (no error).
I haven't noticed any tree shaking effect. I suppose it works fine, at least it works as the other es modules I use.

I haven't noticed any tree shaking effect.

I would expect the treeshaking when creating the bundle of the application that consumes NGL.

I suppose it works fine, at least it works as the other es modules I use.

That is good enough for me :)

Tree shaking is indeed sort of working: when importing only the used objects in NGL, the module's size is decreased... by 10kB (that's 2kB less gzipped)

I think the way I import and register parsers, representations and colormakers prevents treeshaking for them. Unless you edit the ngl.js entry point you always get almost everything of the library.


[Maint] Try pyside6 6.8

References and relevant issues
Replaces https://github.com/napari/napari/pull/6936
Closes: https://github.com/napari/napari/issues/5657
Closes: https://github.com/napari/napari/issues/5644
Description
Try pyside6 >=6.8 to see if CI will work.

Alas, locally I still get seg faults in the vispy tests.
Current thread 0x00000001fea48c00 (most recent call first):
  File "/Users/piotrsobolewski/Dev/napari/napari/utils/_testsupport.py", line 329 in make_napari_viewer
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/fixtures.py", line 907 in _teardown_yield_fixture
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/fixtures.py", line 1021 in finish
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/runner.py", line 546 in teardown_exact
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/runner.py", line 189 in pytest_runtest_teardown
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/runner.py", line 242 in <lambda>
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/runner.py", line 341 in from_call
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/runner.py", line 241 in call_and_report
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/runner.py", line 137 in runtestprotocol
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/runner.py", line 113 in pytest_runtest_protocol
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/main.py", line 362 in pytest_runtestloop
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/main.py", line 337 in _main
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/main.py", line 283 in wrap_session
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/main.py", line 330 in pytest_cmdline_main
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/config/__init__.py", line 175 in main
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/lib/python3.12/site-packages/_pytest/config/__init__.py", line 201 in console_main
  File "/Users/piotrsobolewski/Dev/miniforge3/envs/napari-pyside6/bin/pytest", line 8 in <module>

This warning produces big noise in log:
   DeprecationWarning: Function: 'QColor.setNamedColor(const QString &name)' is marked as deprecated, please check the documentation for more information.

and lead to teardown errors

I rebased this PR on to current main locally (Mac M1 latest OS). All the tests passed locally with crashing.


Bad responce format in ExchangeRates().toFiat

Hey. Today I sat down to study your api. So there was a small problem in the example line:
BigDecimal BTCToUSD = exchange.toFiat("USD", new BigDecimal(100000000)); - throw
java.lang.NumberFormatException
at java.math.BigDecimal.(BigDecimal.java:494)
at java.math.BigDecimal.(BigDecimal.java:383)
at java.math.BigDecimal.(BigDecimal.java:806)
at info.blockchain.api.exchangerates.ExchangeRates.toFiat(ExchangeRates.java:96)
I ran the code in debug mode and found that in the line
return new BigDecimal(response);
in ExchangeRates().toFiat() in response, the value is returned in the following form: 819,060,000,000. I'm not a very experienced developer, but it seems to me that BigDecimal can not process commas in this sense. I will be glad to any answer. Thank you and sorry for my english)

`public class CustomExchangeRates extends ExchangeRates {
@Override
public BigDecimal toFiat(String currency, BigDecimal value) throws APIException, IOException {
Map<String, String> params = new HashMap();
params.put("currency", currency);
params.put("value", String.valueOf(value.multiply(BigDecimal.valueOf(100000000L))));
    String response = HttpClient.getInstance().get("frombtc", params);
    response = response.replaceAll(",", "");
    System.out.println(response);
    return new BigDecimal(response);
}

}`
It's work for me!


Engineering investigations

Potential areas:

Automated secret rotation
Dashboards and reports
OneNote / docs

Closing - no more time in sprint.


Support impl Trait syntax with inline_props

closes: #507

I don't know how the code coverage works for macros but i did write tests for the untested parts according to the bot but it didn't help much with the %

I don't know how the code coverage works for macros but i did write tests for the untested parts according to the bot but it didn't help much with the %

I wouldn't worry too much about the code coverage. It's pretty noisy and doesn't worry with the wasm test suite anyways.


Advanced Snow Integration Logic App updated to support new Incident Trigger

Fixes #
Proposed Changes

Migrated playbook to support incidents instead of alerts
fixed some JSON parsing problems with adaptive cards by adding an compose action to render the card.

@jingsta,
The main playbook should be created with the exact playbookName parameter (line 175)
"name": "[concat(parameters('PlaybookName'),'-workflow-incident')]" should be changed to
"name": "[parameters('PlaybookName')]",
In the description, would it be right to say "incident" instead of "alert"?
Regarding tags, no need to say names of connectors. We do should have a unique tag for "response from Teams" scenarios. I would suggest to change tags to:
["Sync", "Notification", "Teams response"]


Add method to list media for iOS Simulator

Added a method to list the files in data/Media/DCIM/100APPLE which shows the number of media added by xcrun simctl addmedia command

You might want to take a look at https://github.com/NickAb/ios-utils.

It is a CLI tool that runs on a simulator and lets you list and delete media and pasteboards.
It uses mostly public iOS API, i.e. should be much more stable and less fiddly than working with an underlying simulator file system.
The only private API used is entitlements keys which are unlikely to change and are the same as ones used by system apps on iOS.

Updated in aa2762d


Allow gftools-qa to download fonts from a URL

Now we are using GitHub release more, it becomes useful to QA a font against the previous release. e.g.
$ bin/gftools-qa.py -arb https://github.com/notofonts/limbu/releases/download/NotoSansLimbu-v2.002/limbu-2.02.zip -f fonts/ttf/Limbu-Regular.ttf --diffenator

This implements the -arb argument to gftools-qa.

Good idea.


Build issue

I tried to follow the blog instructions to test building the stacks web site. I get
INFO:__main__:Assigning chapters to parts
Traceback (most recent call last):
  File "/home/pmassot/.virtualenvs/gerby/lib/python3.6/site-packages/peewee.py", line 5463, in get
    return clone.execute()[0]
  File "/home/pmassot/.virtualenvs/gerby/lib/python3.6/site-packages/peewee.py", line 3355, in __getitem__
    return self.row_cache[item]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "update.py", line 170, in <module>
    Part.create(part=Tag.get(Tag.type == "part", Tag.ref == part), chapter=Tag.get(Tag.type == "chapter", Tag.ref == chapter))
  File "/home/pmassot/.virtualenvs/gerby/lib/python3.6/site-packages/peewee.py", line 5082, in get
    return sq.get()
  File "/home/pmassot/.virtualenvs/gerby/lib/python3.6/site-packages/peewee.py", line 5468, in get
    (clone.model, sql, params))
gerby.database.TagDoesNotExist: <class 'gerby.database.Tag'> instance matching query does not exist:
SQL: SELECT "t1"."tag", "t1"."label", "t1"."active", "t1"."ref", "t1"."type", "t1"."html", "t1"."name" FROM "tag" AS "t1" WHERE (("t1"."type" = ?) AND ("t1"."ref" = ?)) LIMIT 1 OFFSET 0
Params: ['part', '9']

I can try to investigate but first I'd like to know whether you see something obvious here (like you could know that the blog instructions is not up to date).
By the way, I don't see any kind of continuous integration on this repository. Don't you think you could configure Travis to try to build the stacks project each time someone pushes to this repo? I could probably help a bit in setting this up.

At some point, we decided that documents fed into Gerby should be split into parts. However, this is not yet handled either in plasTeX or well in update.py: there is nothing that really creates rows corresponding to parts in the tags database. So right now, when you run update.py, it will hit line 170, try to find parts in the tags database, and then fail.
This is definitely something to be automated, but one temporary thing you can do to get everything working is the following: manually insert rows for the 9 parts into the database. You might also need to manually insert rows for sections 108 and 109 for things to work, too.
Thanks for raising this as a formal complaint. I think @pbelmans and @aisejohan have some personal scripts that already automate away this issue, but until they enlighten us about such things, this is a fix.

The current version (updated yesterday) of the Stacks project has a target web in the Makefile which creates book.tex, tags, and my.bib files that can be parsed by plastex/gerby and the update script in gerby-website. At least it works for me locally on my machine at home. Your results may vary.

Thank you to both of you. @chngr you wrote "Thanks for raising this as a formal complaint." but I'm not complaining about anything. I simply try to build the thing to see if I can play with it. Mostly I would like to convince you to go for server side mathjax rendering. But obviously I can't set up a demo if I can't build the current version.
@aisejohan I'll try to use this make target.

@PatrickMassot, sounds great! Looking forward to your demo (: And it appears that, somehow, I have been influenced to use the word "complain" more liberally than most others... ahem.

Now update.py seem to hang forever after printing  INFO:__main__:  Created tag 00MY (it created thousands of tags before stopping)

Sorry, the instructions are a little out of date, given the recent developments. We'll try to fix that soon, once I get back from holidays.
Using Travis sounds interesting. I have no experience with it, but I'd love to learn more. We can use it both for pdflatex and plastex testing I presume? We also need about 3 gigabyte of memory at the moment.
Regarding parts: right now they are not yet in the tags file, as the current website doesn't deal with them. Gerby strictly speaking doesn't need parts to work, if the top level contains chapters it'll just revert to using those, but the Stacks project is meant to be used with parts. So that's another cause of confusion at the moment.
I don't think you need to deal with sections 108 and 109 manually though. At least I never did.
Regarding serverside MathJax rendering: I did experiment with it a little bit, but first we needed to get everything else up and running. It's no good to have serverside MathJax if the other features aren't there :). Now that the majority of things has been implemented we should certainly think about serverside MathJax. My only concern is that it will significantly increase the runtime for update.py, but maybe my initial experiments with mathjax-node weren't performed in an optimal way.
Regarding the last message: I have no idea why that happened. Sometimes the update script doesn't output anything for a while (e.g. when building statistics, at the very end).

OK, it is impossible to keep straight what you have to do to get it to work (eg what I said above wasn't OK because I forgot about something). I have a bash script that keeps changing, but it sort of works. Don't just run this script but read it and do the corresponding commands for your setup.

#! /bin/bash

mkdir GERBY
cd GERBY

# Install plastex/gerby
git clone https://github.com/pbelmans/plastex.git
cd plastex
git checkout gerby
# sudo apt install python3-pip
pip3 install --editable .
cd ..

# Install dvipng
#sudo apt-get install dvipng

# Create the book.tex file and files needed for plastex/gerby
mkdir WEB
git clone https://github.com/stacks/stacks-project.git
cd stacks-project
echo "Say yes below to continue."
python scripts/add_tags.py
make web
cd ../WEB
echo "Make sure to that extra tags for parts have been added. Done (y/n)?"
read ANSWER
if [ ! $ANSWER == "y" ]; then exit; fi
echo "Give full path to plastex executable:"
read PLASTEX
$PLASTEX --renderer=Gerby book.tex
cd ..

# Install needed python3 packages
#pip3 install flask
#pip3 install peewee
git clone https://github.com/live-clones/pybtex.git
wget https://bitbucket.org/pybtex-devs/pybtex/issues/attachments/110/pybtex-devs/pybtex/1514284299.07/110/no-protected-in-math-mode.patch
cd pybtex
git apply ../no-protected-in-math-mode.patch
pip3 install --editable .
cd ..
#pip3 install flask_profiler
#pip3 install feedparser
#pip3 install markdown
#pip3 install mdx_bleach
#pip3 install python-markdown-math
#pip3 install validators

# Install gerby-website
git clone https://github.com/pbelmans/gerby-website.git
cd gerby-website
pip3 install --editable .

# Install XyJax
cd gerby/static
git clone https://github.com/sonoisa/XyJax.git
sed -i -e 's@\[MathJax\]@/static/XyJax@' XyJax/extensions/TeX/xypic.js

# Install jquery-bonsai --- this works but I don't know why
rm -rf jquery-bonsai
git clone https://github.com/aexmachina/jquery-bonsai
cp jquery-bonsai/jquery.bonsai.css css/

# Make links to things created by plastex run
cd ../tools
ln -s ../../../WEB/book
mv book stacks
ln -s ../../../WEB/book.paux
mv book.paux stacks.paux
ln -s ../../../WEB/tags
mv tags stacks.tags

# Run update.py
echo "Remove the last section from update.py starting with "
echo "PATH_TO_BOOK_PDF = ..."
echo "and replace it with "
echo "BookStatistic.create(statistic="pages", value='6000')"
echo "Done? (y/n)"
read ANSWER
if [ ! $ANSWER == "y" ]; then exit; fi
python3 update.py

# Start flask server
echo "Give full path to flask executable: "
read FLASK
FLASK_APP=gerby $FLASK run

Thanks. Could you tell me what you do after your script asks "Make sure to that extra tags for parts have been added. Done (y/n)?"
Yesterday I went to bed while update.py hanged and something actually happened during the night. I think I the silent part was post-processing tags. And then it crashed on missing parts, but this is clearly expected.

I visually inspect the tags file to see if at the very end it has added tags for parts. Something like

0EGS,local-cohomology-lemma-cd-sequence-Koszul
0EGT,book-part-topics-in-geometry
0EGU,book-part-schemes
0EGV,book-part-preliminaries
0EGW,book-part-topics-in-moduli-theory
0EGX,book-part-algebraic-stacks
0EGY,book-part-algebraic-spaces
0EGZ,book-part-miscellany
0EH0,book-part-topics-in-scheme-theory
0EH1,book-part-deformation-theory

should be in the tags file plastex is going to use....

@PatrickMassot and @aisejohan: I have begun to add some flexibility to the update script. In particular, you can now specify a flag --noParts to bypass the parts assignment. Of course, it will be prettier and better if you do assign some parts by updating the tags file as above, but it is not strictly necessary.
As a side note, you can make the database creation process quicker by not creating a search table and skipping the computation of statistics. This can be done by passing the flags --noSearch and --noTagStats, respectively.

I think we can close this now: #82 gives precise and up-to-date instructions on how to install things, #71 will lead to a more flexible updating script.


angular 8 application is not working in IE 11 but working in firefox, chrome and Edge

@jeroenheijmans My  Angular 8 app is not working in IE 11 but works in other browsers.

Getting the above error message in the vendor.js file.

Pls let me know if I am missing something
This is my tsconfig.json data
{
  "compilerOptions": {
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "lib": [ "es6", "dom" ],
    "mapRoot": "./",
    "module": "esnext",
    "skipLibCheck": true,
    "moduleResolution": "node",
    "outDir": "../dist/out-tsc",
    "sourceMap": true,
    "target": "es5",
    "typeRoots": [
      "../node_modules/@types"
    ],
    "baseUrl": ".",
    "paths": {
      "@abp/*": [ "../node_modules/abp-ng2-module/dist/src/*" ],
      "@app/*": [ "./app/*" ],
      "@account/*": [ "./account/*" ],
      "@shared/*": [ "./shared/*" ],
      "@node_modules/*": [ "../node_modules/*" ],
      "@angular/*": [ "../node_modules/@angular/*" ],
      "@metronic/*": [ "./assets/metronic/*" ],
      "@publicregister/*":[ "../projects/public-register/src/*" ]
    }
  },
  "exclude": [ "node_modules" ]
}

And this is my tsconfig.app.json
{
    "extends": "../src/tsconfig.json",
    "compilerOptions": {
      "outDir": "../dist/out-tsc",
      "types": [],
      "allowJs": true
    },
    "files": [
      "main.ts",
      "polyfills.ts",
      "../node_modules/angular-oauth2-oidc/fesm2015/angular-oauth2-oidc.js"
    ],
    "include": [
      "**/*.ts",
      "../src/typings.d.ts"
    ],
    "exclude": [
      "test.ts",
      "**/*.spec.ts"
    ]
  }

I see you cross-posted to #1025 but it's gonna be the same as for OP there: without a minimal way to reproduce the problem, it's gonna be hard for the community to help investigate.
I'm not sure even with a repro how many folks here would be able and willing to help with IE11 support though, especially since IE11 support is deprecated already and will be dropped entirely in Angular v13.


xSQLServerRSConfig: Add read only parameters for information collected by Get-TargetResource

Details of the scenario you tried and the problem that is occurring:
PR #220 added some read-only properties that could be added to xSQLServerRSConfig if they give value.
    [Read, Description("The Windows service name.")] String ServiceName;
    [Read, Description("The SQL database name")] String DatabaseName;
    [Read, Description("Virtual directory name for the report manager.")] String VirtualDirectoryReportManager;
    [Read, Description("Virtual directory name for the report server.")] String VirtualDirectoryReportServer;

The DSC configuration that is using the resource (as detailed as possible):
n/a
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
n/a
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev

@bozho Went I went thru the code, I saw these read-only parameters in that code. Since they does not exist in the current schema, I just want to raise the issue, if this is something we should have.
I have not put any thought to this what so ever. If you feel this is not necessary, then we just close the issue.

@bozho Answers

You'd like to add read-only VirtualDirectoryReportManager and VirtualDirectoryReportServer in addition to the optional write parameters ReportServerVirtualDir and ReportsVirtualDir?

In PR #220 there was no ReportServerVirtualDir and ReportsVirtualDir. So that removes those two as read-only parameters.

Also, what it ServiceName? RS service name?
In the code at this commit https://github.com/PowerShell/xSQLServer/pull/220/commits/684a884830e3bf225780a8614936b791a866d608 it seems to return $rsConfig.ServiceName

ServiceName                   = $rsConfig.ServiceName

If that feels wrong, then we can remove that read-only parameter too.

What is DatabaseName? RS uses two databases, ReportServer and ReportServerTempDB.

It returns this. I figure this is the 'ReportServer' database name I guess (?). If that feels wrong, then we can remove that read-only parameter too.
DatabaseName                  = $rsConfig.DatabaseName


Asset Rendition Servlet side effects on 6.3.x

Describe the bug
Inconsistent behavior with image and video thumbnail renditions related to the Rendition servlet.
Environment

AEM Version: 6.3 + SP 1
Asset Share Commons Version: 1.7.1-SNAPSHOT (develop branch)
Author, Publish: Both

To Reproduce
Steps to reproduce the behavior:

Navigate to the Search results card and list view. Image thumbnails are blurry.
/content/dam/asset-share-commons/en/public/pictures/sarah-dorweiler-357959.jpg.renditions/card/asset.rendition

expected resolution: 319px
actual resolution: 140px

/content/dam/asset-share-commons/en/public/pictures/sarah-dorweiler-357959.jpg.renditions/list/asset.rendition

expected resolution: 140px
actual resolution: 48px

Navigate to the Asset Details page for an Image

i.e: /editor.html/content/asset-share-commons/en/light/details/image.html/content/dam/asset-share-commons/en/public/pictures/drew-patrick-miller-512.jpg
Image component does not render at first. Deleting it and re-adding it shows the image. but there is no "legacy" dialog option:

In addition several stack traces are thrown in the logs:
sling:authRequestLogin=1 since null
13.06.2019 14:51:35.319 *ERROR* [0:0:0:0:0:0:0:1 [1560462695238] GET /content/asset-share-commons/en/light/details/image.html/content/dam/asset-share-commons/en/public/pictures/drew-patrick-miller-512.jpg HTTP/1.1] org.apache.sling.scripting.sightly.compiler.util.ObjectModel Cannot access method fallback on object com.adobe.aem.commons.assetshare.components.details.impl.ImageImpl@1bc17e75
java.lang.reflect.InvocationTargetException: null
...
13.06.2019 14:52:46.798 *ERROR* [0:0:0:0:0:0:0:1 [1560462766743] GET /content/asset-share-commons/en/light/details/image.html/content/dam/asset-share-commons/en/public/pictures/drew-patrick-miller-512.targetingconfig.json HTTP/1.1] org.apache.sling.scripting.sightly.compiler.util.ObjectModel Cannot access method fallback on object com.adobe.aem.commons.assetshare.components.details.impl.ImageImpl@4d599ef0
...
Caused by: java.lang.NullPointerException: null
	at com.day.text.Text.unescape(Text.java:949)
	at com.day.text.Text.unescape(Text.java:998)
	at com.adobe.aem.commons.assetshare.util.UrlUtil.isEscaped(UrlUtil.java:61)
	at com.adobe.aem.commons.assetshare.util.UrlUtil.escape(UrlUtil.java:44)
	at com.adobe.aem.commons.assetshare.util.UrlUtil.escape(UrlUtil.java:35)
	at com.adobe.aem.commons.assetshare.components.details.impl.ImageImpl.getFallback(ImageImpl.java:159)
	... 276 common frames omitted

Additional context
This behavior only seems to occur on 6.3.x (I have found the bug on 6.3 + SP1 and 6.3 + SP3, so I'm assuming it is for the entire series)

@godanny86 thanks for spotting these! Im kinda fixing these blind cause I have the 6.3.0 jar, but not SP1 zip on this computer :(
The first two are config fixes.. idk why 6.3.x doesnt "respect" the params to the servlet.. i added a way to test the OOTB servlet in the PR. I guess it must actually use the static thumbnails and resize from the closest one? (tho it seems to pick the 'wrong' closest one .. youd think it would pick up in size, not down?) .. 🤷♀
Im not sure what you mean by the Image component "isn't rendering" at first. Does nothing (not even the placeholder show?)  ... or does the image not show? It should try to use the web rendition using the new asset renditions definition for web -- this is based on the Image components cq:template.


Bias metric configuration list screen - visual elements

Goal
Implements a screen to display a list of configured bias metrics, and visual elements for their associated controls
Dependency issue
No dependencies
Itemized goals

Add a route for metrics configuration (See breadcrumbs)
Add a bias metric configuration screen for above route
Add the view metrics button - clicking it should take the user to the bias metrics tab (this exists so button should be functional)
Add the bias metrics list table - - use dummy data from screenshot

Add formatting for unexpanded rows
Add the row expansion functionality
Add the row action kebab -- visual only, logic handled in another ticket.

Add edit action button
Add delete action button

Add filtering controls and logic, filtering will be handled locally so this should be functional
Add configure metric button -- visual only, logic handled in another ticket
Add empty state visuals for when no bias metrics are configured

Add configure button as visual only, logic handled in another ticket

Aspects continued elsewhere

Configure metric button -- #1274
Populate table with data pulled from trusty AI -- #1275
Edit action -- #1274
Delete action -- #1162
Configure button on empty state -- #1274

Mocks

Mocks updated to latest


Looker Query ID API Patch

Looker recently patched the platform to Disallow Numeric Query Ids. Since this was rolled out errors show when running ldeploy content export. Temporarily toggling off this enabled ldeploy to function as expected.

@drstrangelooker

Can you update gazer to the latest version (v0.3.13) with gem update gazer then test? That should resolve this issue.

@AdamMinton if the Gazer update isn't enough we will need you to look at this.

Hi @drstrangelooker @AdamMinton ,
I'm getting the same issue as @jtorreio.
However, it is happening when I run ldeploy content import. I get a generic looker_sdk error. As suggested, I tried gem update gazer  and this did not resolve the issue.
Here is a screenshot of the error:

I've updated looker_deployer and looker_sdk and it hasn't done the trick either.
This is a high priority issue as we are blocked from deploying any Looker content to our instances. Can you please investigate?
Please let me know if you need anything from me. Thank you!

I don't have any idea here. This is coming from the Python SDK for looker, so the gem update gazer  wouldn't have any impact. @AdamMinton do you have any ideas?

Closing the original issue after opening new issue to track the one raised by @jacobakh

Hi @drstrangelooker ,
Is it possible your package is making the call to looker-sdk?


(rafactor): Some grammatical correction(in pod-overview.md).

Signed-off-by: Udit Gaurav<EMAIL_ADDRESS>
Some grammatical correction(in pod-overview.md).

/check-cla


Issue with NaN error during fine-tuning SHAP-E

Hi ThreeStudio team,
We are currently facing an issue while fine-tuning SHAP-E for our fast text-to-3D model. We have been using the dataset from the repo and the training codebase available at [https://github.com/crockwell/Cap3D/blob/main/text-to-3D/finetune_shapE.py]. However, we consistently encounter a NaN error during the training process.
We have attempted to address the issue by reducing the learning rate, but unfortunately, it has not resolved the problem. As experts in this field, we would greatly appreciate any insights or assistance you can provide to help us overcome this NaN error.
Our goal is to create an exceptional open-sourced fast text-to-3D model by fine-tuning SHAP-E, and we believe that resolving this issue will enable us to achieve that.
Thank you for your time and support. If there is any additional information or details we can provide to facilitate the diagnosis and resolution of this problem, please let us know.

Hi, @blueangel1313.  Additionally, I'm curious to know if the fine-tuning process is similar to current methods like DreamFusion or Prolificdreamer.

Thank you for your response @DSaurus, SHAP-E is a text-to-3D model trained by OpenAI, with the model being released here. The standout feature of this model is its ability to generate a 3D model in a mere 1 minute and 30 seconds.
Regarding your query about fine-tuning, another researcher has attempted to fine-tune this model, and you can find the details in the attached codebase. From my understanding, their fine-tuning process is distinct from methods like DreamFusion or Prolificdreamer.
This other researcher informed that the training took approximately 3 days on the full dataset, and 1 day on the smaller human dataset. They used the AdamW optimizer and the CosineAnnealingLR scheduler with an initial learning rate of 1e-5 for fine-tuning SHAP-E. The batch sizes were set to 64 and 256 for SHAP-E and Point-E respectively.
However, an issue they encountered was that SHAP-E often produced NaN outputs, necessitating a restart from saved checkpoints. This could be one of the potential reasons why their fine-tuning process didn't result in significant improvements.
I hope this provides some clarity on your questions. Don't hesitate to reach out if you need further information.


Deleting/unloading buffer exits vim

I've just installed NerdTreeTabs, very good job!, but now when I use :bunload or :bdelete vim exits, even when I have more than one buffer in vim, why does this happen? How I can fix it? I want to use tabs, buffers and windows without problems.
Thanks

same problem

Same here.

Also affected.
My current workaround is to map :bp | sp | bn | bd command (:bp<bar>sp<bar>bn<bar>bd<CR> in mapping) to the usual buffer-closing hotkey.
Original source of this hacky command is Jonah Brown's StackOverflow answer.


[Manage Settings] Settings page

As any User I want to have settings page so that I can manage the settings of the application.
Mockup

Acceptance Criteria

User accesses to the "Settings" page from the My Profile page (US #18).
Pushing at Logout Button shall open pop up window with a question if User really wants to logout.
WHEN User pushes at the big button with their details, the system shall open a scrolling panel with more options: Add photo - IF photo isn't chosen yet; Change photo, Delete photo - IF photo is used in this App.
3.1.  IF User chooses Add photo or Change photo option, the system shall transfer User to phone gallery.
3.2. IF User chooses Delete photo, the system shall open the pop-up window for confirmation:
3.2.1. IF User chooses "Yes, delete it", the system shall delete the photo from User's profile.
3.2.1. IF User chooses "No, keep it", the system shall close the pop-up window without any changes.
3.3. During the photo's loading, the system shall show a rotating circle.
WHEN User pushes at Logout button, the system shall open pop-up window "Are you sure?"
4.1. IF User chooses "Yes, log out", the system shall log out User from this Application.
4.1. IF User chooses "No, stay", the system shall close the pop-up window.

Epic link
Epic #64
Labels to be added
"User story" ("story"), Priority ("pri: ")
Tasks

[ ] sample task.

Please see issues #315, #364 and #437.


Make Buildscripts Architecture-Independent

Status
Current buildscripts/incremental have hard-coded architectures.
Expected
The scripts can be reused for other architectures.
Relevant Code

https://github.com/numba/numba/blob/master/buildscripts/incremental/install_miniconda.sh#L9-L14
https://github.com/numba/numba/blob/master/buildscripts/incremental/setup_conda_environment.sh#L65-L76

@abebeos thank you for suggesting this. I am not sure how to remove the hard-coded architectures and still make the scripts run. I presume you encountered snags when running on PPC? If this is the case, do you think it would suffice to add the relevant architectures/platforms to the scripts instead?

@abebeos thank you for suggesting this. I am not sure how to remove the hard-coded architectures and still make the scripts run. I presume you encountered snags when running on PPC?

Yes, on ppc64le, I solved this for myself "quick&dirty".

If this is the case, do you think it would suffice to add the relevant architectures/platforms to the scripts instead?

I personally totally dislike to hard-code, though sometimes its the way to go. So, if no better solution is found, then hard-coding could be ok.
To me it looks like this is something for the anaconda repos (2 issues re flexible installation). It is in essence not numbas flaw/work.
I'll most possibly take a look on this myself the next days.

OK, I think the easiest would be to work out a) where to get a ppc64le based miniconda from, maybe miniforge could be a solution and b) to figure out what the compilers are called on ppc64le and then add those two. I think with those two bits of information the scripts will be easy to adapt for ppc64le.

Following up, this here will get you a suitable miniconda: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-ppc64le.sh

I fixed this already for my use case. This is really about getting evolving numba code/scripts to work generic.

And for the compiler packages, probably the packages gcc_linux-ppc64le and gxx_linux-ppc64le will be your friend.

I fixed this already for my use case. This is really about getting evolving numba code/scripts to work generic.

I see. Well, if you find a good non-hardcoded solution (I don't see one yet) I'd be happy to review it. Otherwise, maybe hard-coded is the way to go here.

xref: How and why Numba CI is the way it is https://numba.readthedocs.io/en/stable/developer/contributing.html#continuous-integration-testing

@stuartarchibald , thank you for the xref. I understand now:

the dilemma you're in.
this https://github.com/numba/numba/pull/6710#issuecomment-776142557
that I (more or less unintentionally, whilst fixing a travis-ci-context bug in the test-scripts) "tricked" the public-ci test-scripts to execute the full test-suite: https://github.com/numba/numba/pull/6710/commits/fd08717d0015f9c94346f9291de5726c475a7797

Possibly all this is one more reason to make the scripts generic, thus anyone can setup easier an own CI on a fork. (as said, I fixed all this for my hidden-ppc64le-bug use-case already).


Update auth, dynamodb, s3, sqs to 2.16.87

Updates

software.amazon.awssdk:auth
software.amazon.awssdk:dynamodb
software.amazon.awssdk:s3
software.amazon.awssdk:sqs

from 2.16.86 to 2.16.87.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, semver-patch

Superseded by #678.


add fuzzing

https://llvm.org/docs/LibFuzzer.html

We should fuzz the crsql_changes insert routine given that is exposed over a network and receives untrusted input.

We're doing this via property based testing here: https://github.com/vlcn-io/cr-sqlite/blob/main/py/correctness/tests/test_sync_prop.py