[Snyk] Security upgrade alpine from 3.18.2 to 3

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

docs/Dockerfile

We recommend upgrading to alpine:3, as this image has only 2 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

714
Out-of-bounds Write SNYK-ALPINE318-BUSYBOX-5890990
No Known Exploit

714
Out-of-bounds Write SNYK-ALPINE318-BUSYBOX-5890990
No Known Exploit

714
Out-of-bounds Write SNYK-ALPINE318-BUSYBOX-5890990
No Known Exploit

614
CVE-2023-5363 SNYK-ALPINE318-OPENSSL-6032386
No Known Exploit

614
CVE-2023-5363 SNYK-ALPINE318-OPENSSL-6032386
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Superseded.


EntityQuery's UI Query select function return types do not include the id key

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior
If I have an EntityState<UI, TIdKey>, for the ui property of a class extending EntityQuery the functions selectAll(), selectMany(), etc. return Observable<UI[]>.
Expected behavior
The actual emission of the observable is the intersection of the UI entity and the id key: (UI & { [idKey]: TIdKey })[].
Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/angular-ivy-3pza2f?file=src/app/app.component.ts
Notice that MovieUI only includes two properties (note, somethingElse) but the ui.selectAll() which returns a list of objects implementing this interface. The actual output (also console.logged) includes 3 properties: name, note, somethingElse where name is the idKey of the entity store.
What is the motivation / use case for changing the behavior?
The function returns additional properties not on the UI interface, and should be typed accordingly.
Environment

Angular version: 10.1.1

Browser:
- [x] Chrome (desktop) version 85
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [x] Firefox version 80
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: 12.18.3
- Platform:  Windows

Others:
- Akita version: 5.2.3

Akita doesn't know anything about the types. You should add it to the interface.

export interface MovieUI {
  name: string;
  note: string;
  somethingElse: boolean;
}

I don't follow "Akita doesn't know anything about the types".
It appears it's explicitly returning the concatenation of the idKey and your UI object on UI creation:
{
  [this.idKey]: current[this.idKey],
  ...ui
}

https://github.com/datorama/akita/blob/3cc0d3f239e6917c54021ba0c54a536185c61ee5/libs/akita/src/lib/entityStore.ts#L629
If I'm looking at the right spot.
The intersection can be determined statically, I don't see why not add it to the return type for EntityUIQuery.

I don't understand what you mean. You're welcome to create PR and show your solution.

Sure, I can look into the code and make a PR when I have some time.
General idea is that: yes we can add the id key to the interface MovieUI and that solves the problem. But we shouldn't need to do this because it's a property that is tacked on by Akita's EntityUIQuery class methods (selectAll, etc).
If MovieUI is
export interface MovieUI {
  name: string; // <-- id key
  note: string;
  somethingElse: boolean;
}

Then that is equivalent to MovieUI without name on it but tacked on in the return type of these Query functions through a type intersection, MovieUI & { name: string }. The difference is where this definition comes from. In your suggestion, the user has to know that Akita is going to add the id key to the return of UI Entity query functions and accordingly add it to the UI Entity interface. It's then the responsibility of the user to know implementation details of Akita itself. Rather, in my opinion, it makes sense to intersect the user's type with additional properties Akita adds in its implementation.

Can you have any solution to this point ? I can't do either any intersection between a  EntityUIQuery and a EntityQuery because the UIEntity doesn't expose its internal 'id' property which is the link with the corresponding Entity object.


FPS Magic

Greetings, my program has a small audience that uses your library. About 5 out of 50 people have this problem. I don’t know if it’s connected or not. But after updating Windows, this problem also appeared for me. The problem itself: the frame limit is not working correctly. For example, I used an example from the repository and in it I have the same problem, so I dropped the problem of my code
If I set the fps limit to 60, fps fluctuates from 30 to 45 completely by accident
_window = new GraphicsWindow(0, 0, 800, 600, gfx)
			{
				FPS = 60,
				IsTopmost = true,
				IsVisible = true
			};

If i change fps limit to any value 100-200 then fps is always in the 63-65 range

If FPS = 500 75-150

The problem, as I understand it, somehow depends on the assembly of Windows, since I got it after updating to 20H2, among other users there were rare complaints before on completely different systems. Any idea which way to dig? On my laptop, the specified FPS is stable, but on the PC it is not at all the same

I suppose this also happens with the example code (screenshots).
Did you change any of the window initialization besides the fps?
I also got the recent update. I could try to let it run for a longer period to see if it randomly drops.
Otherwise, you may be able to debug it using the code in the repo.

I suppose this also happens with the example code (screenshots).
Did you change any of the window initialization besides the fps?
I also got the recent update. I could try to let it run for a longer period to see if it randomly drops.
Otherwise, you may be able to debug it using the code in the repo.

I just cloned the repository now and compiled without changing anything, the FPS is also not immediately stable

FPS Limit = 60
FPS Limit = 100

I just cloned the repository now and compiled without changing anything, the FPS is also not immediately stable

FPS Limit = 60
FPS Limit = 100

I'm not sure if this is only due to the update, since before that there were similar complaints from users, even before the appearance of the last Windows update. And I don't really understand what needs to be debugged in such a case. Therefore, I wrote for help to you

I'm not sure if this is only due to the update, since before that there were similar complaints from users, even before the appearance of the last Windows update. And I don't really understand what needs to be debugged in such a case. Therefore, I wrote for help to you

Wow, I noticed very strange behavior, I have 2 monitors. I turned off the fps limit, and while the console is on 1 monitor, my fps freezes at 142, but as soon as I transfer it to the second monitor, my fps soars to ~ 1000, and if I return it back, again 142. But if the fps limit is enabled, then there is no difference from transfer between monitors. I will make a video

Wow, I noticed very strange behavior, I have 2 monitors. I turned off the fps limit, and while the console is on 1 monitor, my fps freezes at 142, but as soon as I transfer it to the second monitor, my fps soars to ~ 1000, and if I return it back, again 142. But if the fps limit is enabled, then there is no difference from transfer between monitors. I will make a video

https://user-images.githubusercontent.com/42224678/104858959-c8ae4380-5933-11eb-9283-e5940e780a2f.mp4
Okay, I think these are two different problems - on 1 monitor the fps does not rise above 142 due to the enabled G-Sync, disabling it is a fix and the fps is the same on both monitors. But the problem is that the fps is less than the limit remains regardless of the g sync

https://user-images.githubusercontent.com/42224678/104858959-c8ae4380-5933-11eb-9283-e5940e780a2f.mp4
Okay, I think these are two different problems - on 1 monitor the fps does not rise above 142 due to the enabled G-Sync, disabling it is a fix and the fps is the same on both monitors. But the problem is that the fps is less than the limit remains regardless of the g sync

Interesting.
Maybe it's something like the DPI Awareness issue. I needed to disable or "bypass" DPI awareness for Direct2D.
It could be something like that detecting some monitor configuration.
I need to do some research about that. Are you in a hurry for a fix?

Interesting.
Maybe it's something like the DPI Awareness issue. I needed to disable or "bypass" DPI awareness for Direct2D.
It could be something like that detecting some monitor configuration.
I need to do some research about that. Are you in a hurry for a fix?

I am currently dealing with this problem, but so far I can not understand anything. With the fact that the FPS is different on different monitors, this is completely different, and in principle it is not a problem. It's just that my second monitor, due to nvidia technologies, limits the frequency to 144 (142, I suppose it's just an error). But the problem with the fact that the FPS is lower than the FPS limit is rather strange. I am in no hurry to fix it, my program has the ability to adjust the fps limit at startup, for those who observe this problem, I just advised to raise the limit to 200 in order to have a stable 60 fps, this is of course a crutch but it works)

I am currently dealing with this problem, but so far I can not understand anything. With the fact that the FPS is different on different monitors, this is completely different, and in principle it is not a problem. It's just that my second monitor, due to nvidia technologies, limits the frequency to 144 (142, I suppose it's just an error). But the problem with the fact that the FPS is lower than the FPS limit is rather strange. I am in no hurry to fix it, my program has the ability to adjust the fps limit at startup, for those who observe this problem, I just advised to raise the limit to 200 in order to have a stable 60 fps, this is of course a crutch but it works)

For the sake of curiosity, I wrote down how many ms each frame lasts, it looks like if a frame does not have time to draw in 15-17 ms (1000/60), then it is skipped, since the time of the next frame always fluctuates 30-32, it is very similar to special frame skip that did not have time to render, I don't know

For the sake of curiosity, I wrote down how many ms each frame lasts, it looks like if a frame does not have time to draw in 15-17 ms (1000/60), then it is skipped, since the time of the next frame always fluctuates 30-32, it is very similar to special frame skip that did not have time to render, I don't know

Pretty weird.
I can check both, monitor configuration and my fps calculation.
But I may only have time on weekend.

Pretty weird.
I can check both, monitor configuration and my fps calculation.
But I may only have time on weekend.

Okay, I'll analyze the behavior more, if there is news, I'll let you know. If that I had the same monitors before, but at one point this started, magic)

Okay, I'll analyze the behavior more, if there is news, I'll let you know. If that I had the same monitors before, but at one point this started, magic)

Yes, this is definitely a frame skip, and it's kind of very strange, a fps limit of 30-59 turns into a stable 33 frames, since it's unrealistic to draw 60 frames in 59 frames and ~ 50% of frames are skipped. As soon as we step over the 60 fps limit, weirdness begins. If we set the fps limit to 65, then only ~ 10% of frames will be skipped and we will get a stable 54 fps, and if we set the fps limit to 70, we will get a stable 64 fps, everything is very strange. I attach a video with measurements.
https://www.youtube.com/watch?v=jzdbn-5ypCQ

Yes, this is definitely a frame skip, and it's kind of very strange, a fps limit of 30-59 turns into a stable 33 frames, since it's unrealistic to draw 60 frames in 59 frames and ~ 50% of frames are skipped. As soon as we step over the 60 fps limit, weirdness begins. If we set the fps limit to 65, then only ~ 10% of frames will be skipped and we will get a stable 54 fps, and if we set the fps limit to 70, we will get a stable 64 fps, everything is very strange. I attach a video with measurements.
https://www.youtube.com/watch?v=jzdbn-5ypCQ

It is noteworthy that by default this setting is described as "Use 3D application setting", that is, the program can somehow indicate which type of vertical sync pulse to use

It is noteworthy that by default this setting is described as "Use 3D application setting", that is, the program can somehow indicate which type of vertical sync pulse to use

useing OverlayWindow,do not use GraphicsWindow

I noticed this too. FPS is not exactly at the setting. I also noticed another issue, when 'Wait for Vertical Sync' is not ticked in League of Legends' in-game setting, the game will stutter badly when overlay is on and shown on top, even when the in-game FPS shown is high (75 - 100FPS).
Turning the 'Wait for Vertical Sync' in-game setting on will cap it at 75FPS, following the monitor refresh rate, and it will feel smooth, without stuttering.

well thats a common side effect. get a better pc or try different settings for graphics card or windows game mode

That's right, this happens in some other applications without configuring vsync as I wrote above. However, this is definitely fixed if the monitor draws the game in full screen mode, and not in a window without a frame, but in this condition, as far as I understand, rendering is impossible. also, many applications do not have this behavior in windowed mode, but I could not find how it works

in my case, the pc is powerful by the way, so the problem is somewhere at the level of system settings

Well there is a way to draw it on top of a full screen application under Windows 10.
I can search it or explain it for you later, and I can finally take a closer look at those issues tomorrow.

https://github.com/michel-pi/GameOverlay.Net/issues/71#issuecomment-729711804
Do this every time the game window changes its state (open, closed, hidden, minimized whatever you call it).
You can use the recreate methods of the overlay / renderer for this.

well thats a common side effect. get a better pc or try different settings for graphics card or windows game mode

It happened to a few of us who has a decent spec. I'm convinced that it has something to do with vertical sync, because if it's turned on in-game, it'll be smooth. The problem is, the game's FPS will be lowered, thus causing a delayed input. (Ie. even if monitor can only display 60 frames per second, if the game is at 144 FPS, it'll still help in terms of keyboard/mouse input.)
The challenge is to run the game at 144 FPS, without the stuttering with the overlay on.
This occurrence is with League of Legends again.

#71 (comment)
Do this every time the game window changes its state (open, closed, hidden, minimized whatever you call it).
You can use the recreate methods of the overlay / renderer for this.

That was when I raised the fullscreen query, to be honest I never got that snippet to work back, even with hotkeys, so I left it. I wonder if @Yarik124421 can give it a go and share your solution? Been hoping to make this work.

Well, I found the FPS issue. Will fix it by tomorrow.
I confirmed that the full screen overlay works with League of Legends when you use the exact snippet.

Apparently a Windows update (version 2004) has broken Thread.Sleep again. To set the high precision timers per process you need to call GameOverlay.TimerService.EnableHighPrecisionTimers on application start.

Before:

After:

It's work, I will send a donation to your bitcoin wallet, thanks for this project.

Is this the right BTC wallet? I cannot send money to it, writes that it does not exist

bc1qp6zc73vy8pmr6lfe4cxa6eqzvkuer9hrjwpzza is correct
Does your wallet support those addresses? I can get a Legacy address for you.
14ES7f4GB3vD1C8Faz6ywqTcdDevxZoMyY
Other cryptos will work too.

i received your bitcoin, thank you very much :)


OAuth doesn't work as expected

Hello, this project looks awesome.
I am trying to configure it but authentification fails. Token is undefined. (I retried a lot)

Is it normal to have a HTTP and not HTTPS callback?
Is this project discontinued?
Thank you for your help

it looks like the scopes changed and need to be updated to this, but the slackcat.chat site sets this.
channels:read+groups:read+im:read+mpim:read+users:read+chat:write+files:write+chat:write

You can just create your own slack app with these scopes and just use that oauth token.
["chat:write", "im:read", "mpim:read", "channels:read", "groups:read", "files:write", "users:read"]


onInfinite not called when already scrolled down

It happens sometimes that the onInfinite is not called. I investigate and saw this was because the currentDistance is bigger then the this.distance. I think it would be nice to have a option to call the onInfinite without checking the distance in these two situations:

When calling reset. Imagine I have on the left of my screen some filters which can be applied to show a list on the right. When i'm scrolling on the right it will fill my infinite list. But then I change filters on the left. Because I didn't scroll all the way up my currentDistance is too high and the list will not be reloaded.

When initializing the control it is also better to call the onInfinite without checking the distance. Because you want the first items always be loaded.

The second thing happened to me when using the chrome developer tools and made it too high which gave a currentDistance bigger then 100.
What do you think about this? If you want I can create a fix for this.

Thanks for your issue :D.
The first situation is a important question actually, so this component provide a way to reset all status of itself in the previous version, you just need execute this.$broadcast('$InfiniteLoading:reset') after change filter on the left of your screen, the component will reset all status and checking distance at once, hope it can help you.
For the second situation, this component will check distance once automatically after initializing already, and I think use developer tools or other scene belong to special cases, but every component was born to solve universal problems, so we should not call the onInfinite if the distance is not expected.Maybe we really need call the onInfinite in some special scenes, but why not direct call onInfinite manually?

Sorry, maybe I made a mistake.
I was aware of you are the contributor who improve this component to v0.3.1 just now. I thought your first situation can be resolved by your previous pull-request and you needn't created this issue a week ago.
But I don't know whether I understand your meaning correctly now, maybe you can tell me the truth.

I thought already something like that. No problem.
Let me try to explain it based on two situations:

Imagine we want to show a list of tasks. When I enter the page there are no tasks. So the tasks needs to be loaded, this will be done by the control in the ready method setTimeout(this.scrollHandler, 1);
In the scrollHandler it will only call the onInfinite when it's not already loading and when the distance check matches, that's normally oke.
But I had sometimes issues with the distance check. It seems this check is not always working properly. That's why is was thinking that it would be better to call the onInfinite anyway ignoring the distance check. When intializing the control you want to show always the first items right?

The same is when resetting the control. Imagine we have a list of tasks and already scrolled down a few times which works perfect. Then I change my filters. That will clear all the tasks in the list and need to reload the first x items. But again it will only reload when the distance check is fine. Sometimes the distance check is not working then and the items are not loaded. User needs to scroll one time down and loading will start, which is a bit strange. When resetting the component we want to go to the initial state, which means in my opinion load the first x items. So it would be nice that if will trigger the onInfinite without checking the distance.

Checking the isLoading needs to be always there in my opinion. But checking the distance needs only to be done when the event is triggered by the scroll event and not in these situations:

setTimeout(this.scrollHandler, 1);
this.scrollHandler();

I hope it's a bit more clear now what I meant.
How I solved this for now is that I always call the onInfinite by myself when entering the page and when resetting the filters. The only thing is then that the loading message does not appear, so it would be nicer if the control could handle this.

So that's it, I think I understand your meaning, thanks for your interpretation.
Before solve the problem that the loading message does not appear, I want to know why the distance check is not always working properly, and what is the special scene, I think it's the source problem, how do you think?

I checked why the distance check is not working properly. Imagine this situation:
On the right I have my tasks list with 10 items -> height 1300px
document.body.scrollHeight -> 550px
On the left I have my filters. For example a textbox where I can search based on a string. When I hit enter there it starts searching.
This is a part of the code which is executed at that moment:
this.tasks = [] this.totalTasks = null this.$broadcast('$InfiniteLoading:reset')
But when checking the distance the innerHeight is 1300 and the scrollHeight is 550 so it will not pass the check. After I hit enter again (with a empty list because of the this.tasks=[]) it works.
So I think that it takes a little bit of time to remove the tasks from the screen and before they are removed the distance check is called. Does that make sense?

You're right, execute this.tasks = [] will take effect after the next Dom update. And we can use Vue.nextTick or this.$nextTick to wait Vue to update the Dom, like the following code:
this.tasks = [];
this.$nextTick(function () {
  this.$broadcast('$InfiniteLoading:reset');
});

I think the problem can be solved.

Thank you very much. This works fine, I didn't know about that option.

You're welcome :)


Why This File ?

Why init.py in repo ?
blank file ?

Why init.py in repo ? blank file ?

that is need for pypi. since pypdl is also a pypi package it need to follow the file structure set by pypi

No, this file enough to pypi.
no need to this file. Check other pypi libraries.

No, this file enough to pypi. no need to this file. Check other pypi libraries.

you are correct that file was unwanted, removed it. it was a file i created when i was learning to create pypi packages or something. i was under the impression that it was need lol, thanks for reporting!


⚠ Bofrost.de has degraded performance

In 1e135f4, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 2011 ms

Resolved: Bofrost.de performance has improved in 822eb67 after 39 minutes.


docusaurus-preset: support module shorthands

Docusaurus now supports module shorthands, similar to ESLint and Babel config.
This means @docusaurus/preset-classic may instead be simply referred to as classic in the config, which currently panics with "Couldn't find a preset or a plugin supported by twoslash".
We can probably expose a utility function in Docusaurus that the shiki preset can use to resolve module shorthands to their full names/paths?

Our lookup code is pretty simple: https://github.com/shikijs/twoslash/blob/a9a4d815c46ed9cb0ebfcd69a25af4c1d1ff4bc5/packages/docusaurus-preset-shiki-twoslash/index.js#L23-L28
I think adding the shorthands to the list is fine


Can we use same storage account for different resources

Can we use same storage account for diagnostic settings for different type of events (metrics vs audit), and for different resources?
Currently diagnostic settings expect the storage account name and does seem to allow to select a specific container.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0ca576e1-fafa-3a02-6d29-394f342bc737
Version Independent ID: a6a83de5-41fd-2dce-eb86-cee6c086c07d
Content: Create diagnostic setting to collect logs and metrics in Azure - Azure Monitor
Content Source: articles/azure-monitor/platform/diagnostic-settings.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @bwren
Microsoft Alias: bwren

Thanks for your comment. We are actively investigating and will get back to you shortly. Thanks for your patience.

Hi @sbhuttan  - yes, same storage can be used for multiple resources assuming they are in the same region/location. The example below shows 2 resources hosted on South Central US (1 VM, 1 App Service) configured to log diagnostic settings to the same Storage resource (adamsworkspacestorage) also hosted in South Central US. Hope this helps.
App service – send to storage

VM resource – send to same storage as above

We will now close this issue. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.


Continuous autograding opt-in

Resolves #974
Added a todo about unifying staff & student submission.

I'm mainly doing this now because there's another migration that I have to run (#1089) . Depending on what PR gets merged first - we'll have to adjust the migration in the other one to reference the correct downwards migration.

Deploy process:

Merge this
Change the downrev in #1089
Locally merge and test migrations.
Deploy to staging & migrate
Deploy to prod


Avoid copying reply buffer in ReplyData

The reply already doesn't take ownership of the buffer, and it just ends up being written synchronously to the FUSE device, so there's no need to make a copy of it. Instead, the Response can just hold onto the slice and use it directly when building the IoVec for writing the response.
This is an alternative to https://github.com/cberner/fuser/pull/232 that is hopefully a little simpler while solving the same problem.
Fixes #232

Merged. Thanks!


Smesher API Change - use labels

Writing what Noam asked here:

Add a post network param - bytes per label.
Change Smesher API methods that use number of bytes to user labels count.

Rationale: Client-side validation of post size. Without this clients may pass unsupported sizes and we need to handle this case. When passing labels count - this error is eliminated. Clients can easily show UI in terms of size as there's a constant number of bytes per label.
@noamnelke @lrettig

Dumb question: if there's a constant number of bytes per label, what difference does it make whether the API returns bytes or label count?

It is about what the user passes when setup smeshing... bytes units or label units - noam says label units - one less room for error and client will do the bytes -> labels simple conversion based on the network param.

@noamnelke - can you please add the other smesher API changes you wanted to see. I can get these done.

Ok, so here are the changes we need from the Smesher api for 0.2:
Add new method to return the node smesher config, including the following data items: min_num_of_labels, max_num_of_labels, label_size_bits - these are all per network params that should be in the config file. Having these is needed for the Smapp smeshing seutp UI and also in CLIWallet - user inputs size in GiB and CLIWallet needs to convert this to number of labels when calling StartSmeshing()

I think this is taken care of in the smesher api work that @moshababo is working on.


support TLS

@dolfly are you talking about TLS authentication like this blog illustrates?
https://medium.com/processone/using-tls-authentication-for-your-go-kafka-client-3c5841f2a625

I merged it to master for v1.5.0 and made a release with the binaries.  Please let me know if it works.


Consider adding automated style/linting checks

In other OCF libraries we use ruff. Should we do the same here?

I personally like it, I think it sometimes can be a bit annoying, but normally it pushes good behaviour


Will vLLM supports Self-Speculative Decoding ？

github repo: https://github.com/dilab-zju/self-speculative-decoding
Using partial layers for guess, and achive about 1.78x speed up.  No draft model, the only thing needed to be cared is kv cache.
Seems supports samping decoding. Cause the hidden size and intermediate size is same，so the kv cache is reusable, the only thing need to do is to kv cache memory reclaim when reject tokens.
What will the future of VLLM speculative sampling look like? Is there a rough plan?
@cadedaniel @LiuXiaoxuanPKU

Hi @MeJerry215 . Once https://github.com/vllm-project/vllm/pull/2188 is merged, self-speculative decoding can be added easily as a replacement for the draft model. Follow along in that PR for more details.


Design OSRM Alternatives Ranking Strategy to Involve Live Traffic and Historical Speed

As we discussed in https://github.com/Telenav/osrm-backend/issues/63#issue-503591856, the original idea comes from Refer to https://github.com/Project-OSRM/osrm-backend/issues/4449#issuecomment-327477669

Make time-independent route requests potentially with the alternatives=n MLD parameter
Use the annotations feature for osm node ids, speed and weight on route segments for all routes
Make time-dependent query on the intersection of all segments, use weight for optimization

In our design, at the begginning, we can name it as Phase 1:

In step 1, the calculation maybe based on pure time-independent data or data within blocking traffic(flows with speed near 0 and blocking incidents).
In step 3, the time-dependent query mostly will start with calculate weight/duration with both live traffic and historical speed for each alternatived routes, then ranking them to pick up the best one or the best several as result.

We have to estimate whether the alternatives can returns good enough routes(the routes should not look similar but have significant differences).
Phase 2
In step 3, we may possible to construct a subgraph based on these alternatives since we can have all nodes,weights, then do Dijkstra on it to get better route. That's the better way mentioned in paper(https://arxiv.org/pdf/1606.06636.pdf) , and there're a lot of discussion in https://github.com/Project-OSRM/osrm-backend/issues/5503

Let's focus on Phase 1 in this issue.
There'll be another process in front of OSRM engine to handle the logic, we name it directionadapter for now.

PR for design doc has been merged, doc link: https://github.com/Telenav/osrm-backend/blob/master-telenav/docs/design/osrm-with-telenav-traffic.md#alternatives-ranking


[BUG]

Describe the bug
Error after installation and restart
To Reproduce
Install latest version of Home Bridge on Raspberry Pi 3B.
Install this plugin.
Do basic configuration of Geo co-ordinates, OPW key
Restart HB serveices
Expected behavior
No errors
**Screenshots or logs **
[10/01/2022, 09:56:20] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[10/01/2022, 09:56:25] [HB Supervisor] Restarting Homebridge...
[10/01/2022, 09:56:25] [HB Supervisor] Starting Homebridge with extra flags: -I
[10/01/2022, 09:56:25] [HB Supervisor] Started Homebridge v1.3.9 with PID: 5641
[10/01/2022, 09:56:27] Loaded config.json with 1 accessories and 2 platforms.
[10/01/2022, 09:56:27] Loaded 8 cached accessories from cachedAccessories.
[10/01/2022, 09:56:27] ---
[10/01/2022, 09:56:29] Loaded plugin<EMAIL_ADDRESS>[10/01/2022, 09:56:29] Registering platform 'homebridge-config-ui-x.config'
[10/01/2022, 09:56:29] ---
[10/01/2022, 09:56:30] Loaded plugin<EMAIL_ADDRESS>[10/01/2022, 09:56:30] Registering platform 'homebridge-ewelink.eWeLink'
[10/01/2022, 09:56:30] ---
[10/01/2022, 09:56:30] ====================
[10/01/2022, 09:56:30] ERROR LOADING PLUGIN homebridge-smart-irrigation:
[10/01/2022, 09:56:30] Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js from /usr/local/lib/node_modules/homebridge-smart-irrigation/index.js not supported.
Instead change the require of /usr/local/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js in /usr/local/lib/node_modules/homebridge-smart-irrigation/index.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/usr/local/lib/node_modules/homebridge-smart-irrigation/index.js:9:13)
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:132:77)
at PluginManager.initializeInstalledPlugins (/usr/local/lib/node_modules/homebridge/lib/pluginManager.js:64:30)
at async Server.start (/usr/local/lib/node_modules/homebridge/lib/server.js:106:9)
[10/01/2022, 09:56:30] ====================
[10/01/2022, 09:56:30] Loading 2 platforms...
[10/01/2022, 09:56:30] [Config] Initializing config platform...
[10/01/2022, 09:56:30] [Config] Running in Service Mode
[10/01/2022, 09:56:30] [eWeLink] Initializing eWeLink platform...
[10/01/2022, 09:56:30] [eWeLink] Initialising plugin v8.9.1 | Node v16.13.1 | HB v1.3.9 | HAPNodeJS v0.9.8...
[10/01/2022, 09:56:30] Loading 1 accessories...
[10/01/2022, 09:56:30] No plugin was found for the accessory "SmartSprinklers" in your config.json. Please make sure the corresponding plugin is installed correctly.
Platform (please complete the following information):

Platform: Homebridge
Version: v1.3.9 (HAP v0.9.8)

Additional context
Add any other context about the problem here.

Hi Shane.. just wanted to let you know that I'm trying to replicate this however without success so far.

Okay – Thanks – I will setup a clean build next week and try again – I am suspecting its memory related and I have ordered a Pi4(8GB) for arrival in mid feb – so will test there as well.
--
Warm Regards
Shane van Jaarsveldt+27 (82) 601 0499
From: Mayank @.>
Reply to: MTry/homebridge-smart-irrigation @.>
Date: Wednesday, 12 January 2022 at 13:52
To: MTry/homebridge-smart-irrigation @.>
Cc: Shane van Jaarsveldt @.>, Author @.***>
Subject: Re: [MTry/homebridge-smart-irrigation] [BUG] (Issue #25)
Hi Shane.. just wanted to let you know that I'm trying to replicate this however without success so far.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

Sure - will await your feedback. My own build uses a Pi4-8gb and the plugin sits well with a dozen other plugins.. and on its own child bridge since several months!

On 12-Jan-2022, at 8:19 PM, Shane van Jaarsveldt @.***> wrote:
Okay – Thanks – I will setup a clean build next week and try again – I am suspecting its memory related and I have ordered a Pi4(8GB) for arrival in mid feb – so will test there as well.
--
Warm Regards
Shane van Jaarsveldt+27 (82) 601 0499
From: Mayank @.>
Reply to: MTry/homebridge-smart-irrigation @.>
Date: Wednesday, 12 January 2022 at 13:52
To: MTry/homebridge-smart-irrigation @.>
Cc: Shane van Jaarsveldt @.>, Author @.***>
Subject: Re: [MTry/homebridge-smart-irrigation] [BUG] (Issue #25)
Hi Shane.. just wanted to let you know that I'm trying to replicate this however without success so far.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>
—
Reply to this email directly, view it on GitHub https://github.com/MTry/homebridge-smart-irrigation/issues/25#issuecomment-1011121623, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQP4KMHWDKTMVQWK6QOHQTDUVWIFZANCNFSM5LS75KJA.
You are receiving this because you were assigned.

Same issue here.
Node: v16.13.2
HomeBridge: v1.4.0

This issue is absolutely not memory related.
The “require” of ES Module no longer supported for some reason at index.js.
@MTry I think you should change them to “import” of CommonJS – as is in error message.

I did try that to my very limited skills but that threw up other errors that I could not resolve.
--
Warm Regards
Shane van Jaarsveldt+27 (82) 601 0499
From: Angyal Zoltán @.>
Reply to: MTry/homebridge-smart-irrigation @.>
Date: Wednesday, 26 January 2022 at 09:36
To: MTry/homebridge-smart-irrigation @.>
Cc: Shane van Jaarsveldt @.>, Author @.***>
Subject: Re: [MTry/homebridge-smart-irrigation] [BUG] (Issue #25)
This issue is absolutely not memory related.
The “require” of ES Module no longer supported for some reason at index.js.
@MTry I think you should change them to “import” of CommonJS – as is in error message.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

I have the same issue.
Running on macOS (arm64)
Node v 15.14.0
NPM v 7.7.6
[2/3/2022, 7:51:10 PM] ====================
[2/3/2022, 7:51:10 PM] ERROR LOADING PLUGIN homebridge-smart-irrigation:
[2/3/2022, 7:51:10 PM] Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/js/.nvm/versions/node/v15.14.0/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js
require() of ES modules is not supported.
require() of /Users/js/.nvm/versions/node/v15.14.0/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js from /Users/js/.nvm/versions/node/v15.14.0/lib/node_modules/homebridge-smart-irrigation/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename /Users/js/.nvm/versions/node/v15.14.0/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/js/.nvm/versions/node/v15.14.0/lib/node_modules/homebridge-smart-irrigation/node_modules/got/package.json.
at new NodeError (node:internal/errors:329:5)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1109:13)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object.<anonymous> (/Users/js/.nvm/versions/node/v15.14.0/lib/node_modules/homebridge-smart-irrigation/index.js:9:13)
at Module._compile (node:internal/modules/cjs/loader:1092:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)

[2/3/2022, 7:51:10 PM] ====================

Same problem here:

Node.js Version v16.13.2
Npm Version v8.1.2

Log message:
[05/02/2022, 14:01:58] ====================
[05/02/2022, 14:01:58] ERROR LOADING PLUGIN homebridge-smart-irrigation:
[05/02/2022, 14:01:58] Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/local/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js from /usr/local/lib/node_modules/homebridge-smart-irrigation/index.js not supported.
Instead change the require of /usr/local/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js in /usr/local/lib/node_modules/homebridge-smart-irrigation/index.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-smart-irrigation/index.js:9:13)
    at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:135:108)
    at PluginManager.initializeInstalledPlugins (/usr/local/lib/node_modules/homebridge/lib/pluginManager.js:64:30)
    at async Server.start (/usr/local/lib/node_modules/homebridge/lib/server.js:106:9)
[05/02/2022, 14:01:58] ====================

hey guys.. I'm not much of a coder but found what the issue is.. the plugin (when installed recently) is downloading version 12 of 'got' module which appears to be incompatible and hence throws the ES Module error. I managed to get the plugin working again by manually getting version 11.8.3 of 'got' and overwriting the files in .../homebridge-smart-irrigation/node_modules/got/ with the older version.
This is not a permanent fix - just a workaround...

hey guys.. I'm not much of a coder but found what the issue is.. the plugin (when installed recently) is downloading version 12 of 'got' module which appears to be incompatible and hence throws the ES Module error. I managed to get the plugin working again by manually getting version 11.8.3 of 'got' and overwriting the files in .../homebridge-smart-irrigation/node_modules/got/ with the older version.
This is not a permanent fix - just a workaround...

Thanks for the tip.  I tried this, but am still getting the same error :(

It worked well for me. You need to go the ".../homebridge-smart-irrigation/node_modules/" folder and remove the existing got version and install the older one:
npm uninstall got
npm install<EMAIL_ADDRESS>

It worked well for me. You need to go the ".../homebridge-smart-irrigation/node_modules/" folder and remove the existing got version and install the older one:
npm uninstall got
npm install<EMAIL_ADDRESS>

I had run the uninstall and the 11.8.3 install, but had not first deleted the files under homebridge-smart-irrigation.
Doing that first and re-running those commands did the trick.
Thank you both very much!

Same issue.
Trying uninstalling & reinstallating got without success=
 AM] ==================== [2/17/2022, 12:28:21 AM] ERROR LOADING PLUGIN homebridge-smart-irrigation: [2/17/2022, 12:28:21 AM] Error [ERR_REQUIRE_ESM]: require() of ES Module /usr/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js from /usr/lib/node_modules/homebridge-smart-irrigation/index.js not supported. Instead change the require of /usr/lib/node_modules/homebridge-smart-irrigation/node_modules/got/dist/source/index.js in /usr/lib/node_modules/homebridge-smart-irrigation/index.js to a dynamic import() which is available in all CommonJS modules.     at Object.<anonymous> (/usr/lib/node_modules/homebridge-smart-irrigation/index.js:9:13)     at Plugin.load (/usr/lib/node_modules/homebridge/lib/plugin.js:135:108)     at PluginManager.initializeInstalledPlugins (/usr/lib/node_modules/homebridge/lib/pluginManager.js:64:30)     at async Server.start (/usr/lib/node_modules/homebridge/lib/server.js:106:9) [2/17/2022, 12:28:21 AM] ====================

@MTry I think problem solved, but needs some check (but it works for me without error messages or warnings). See pull requests!

@MTry I think problem solved, but needs some check (but it works for me without error messages or warnings). See pull requests!

@angyalz - Thank you for your effort and time!! I've been caught with stuff that has prevented me from contributing.
Could there be more feedback on this so I can go ahead and merge?

Did you try with GOT v12.x.x?

On 29-Mar-2022, at 21:14, Angyal Zoltán @.***> wrote:
@MTry https://github.com/MTry I think problem solved, but needs some check (but it works for me without error messages or warnings). See pull requests!
—
Reply to this email directly, view it on GitHub https://github.com/MTry/homebridge-smart-irrigation/issues/25#issuecomment-1082043001, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQP4KMEMVHGKZLUZXNJ22RTVCMQPRANCNFSM5LS75KJA.
You are receiving this because you were mentioned.

Please check now - have merged the changes and this should be working now.

@MTry I tested with got v12.0.3, but I think I forgot update it in pushed branch.
The current (updated and published) version seems working for me.

Yes.. I bumped the got version as well..

I suppose this has been addressed - closing.


Compiling with cx_Freeze

Hello! I am using win32mica in a program, and when running the program from the .py file, everything works flawlessly. But when i compile the program to an execuetable using cx_Freeze, win32mica throws the following error:
Win32Mica Error: win32 version 9200 is not supported
What does that mean and how do i fix it?

Mhmm, that's weird... It looks that cx_freeze is not providing a correct windows build number...
Could you try build using PyInstaller?

I can, but does pyinstaller build msi's?

PyInstaller will build a standalone .exe file, and then you can create an installer using tools like Inno Setup (will create a .exe installer) or AppDeploy Repackager (will create a .msi installer)

Epic, ok. How do i use pyinstaller? (Sorry for bothering you)

It is really easy (actually easier than cx_freeze).

install pyinstaller:

pip install pyinstaller

Build the .exe file:

pyinstaller ./yourfile.py --onefile --windowed

You will have a .exe file in a folder located in your current working directory called dist. It should work then.

For more info check out the docs: https://pyinstaller.org/en/stable/usage.html

Hi, did that help with the issue?

I am still having troubles with another of the apps components, but once its fixed, i will report to you if it works!

Yes @martinet101 it works, thank you


push and Action.Push add navigationTitle to change navigation title

when use push or Action.Push to push new component to current page, the navigation title not change.
maybe can add navigationTitle props to change this

@chyroc you can add navigationTitle in the target component. All the high-level components (List, Detail, Form) has it
https://developers.raycast.com/api-reference/user-interface

As written in the comment below it's possible by assigning a value into the navigationTitle prop for the screen,


Update example of a singe file component

In a https://vuejs.org/v2/guide/single-file-components.html we have Hello.vue example, which contains module.exports = semantic. I hope I'm right and it's better to use export default semantic instead. So I replaced gist with fork of an initial example with this small change.

Why I think it's better to use, because module.exports = leads to TypeError: "exports" is read-only.

Thanks, but I think the current gist is fine.


Feat: Append data to pre-optimize dataset

Before submitting

[x] Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure to update the docs?
[x] Did you write any new necessary tests?

What does this PR do?
Fixes #23
A test to understand this feature best is:
# tests/processing/test_functions.py file

def test_optimize_function_modes(tmpdir):
    output_dir = tmpdir.mkdir("output")
    output_dir = str(output_dir)

    def compress(index: int) -> Tuple[int, int]:
        return (index, index ** 2)

    def different_compress(index: int)->  Tuple[int, int, int]:
        return (index, index ** 2, index**3)

    # none mode
    optimize(
        fn=compress,
        inputs=list(range(1, 101)),
        output_dir = output_dir,
        chunk_bytes="64MB",
    )

    my_dataset = StreamingDataset(output_dir)
    assert len(my_dataset) == 100
    assert my_dataset[:] == [(i, i**2) for i in range(1, 101)]

    # append mode
    optimize(
        fn=compress,
        mode = "append",
        inputs=list(range(101, 201)),
        output_dir=output_dir,
        chunk_bytes="64MB",
    )

    my_dataset = StreamingDataset(output_dir)
    assert len(my_dataset) == 200
    assert my_dataset[:] == [(i, i**2) for i in range(1, 201)]

    # overwrite mode
    optimize(
        fn=compress,
        mode = "overwrite",
        inputs=list(range(201, 351)),
        output_dir=output_dir,
        chunk_bytes="64MB",
    )

    my_dataset = StreamingDataset(output_dir)
    assert len(my_dataset) == 150
    assert my_dataset[:] == [(i, i**2) for i in range(201, 351)]

    # failing case
    with pytest.raises(ValueError, match="The config of the optimized dataset is different from the original one."):
        # overwrite mode
        optimize(
            fn=different_compress,
            mode = "overwrite",
            inputs=list(range(201, 351)),
            output_dir=output_dir,
            chunk_bytes="64MB",
        )

PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

It needs to be tested if it works for S3, as it requires pro account to set up s3 connection with LightningAI studio.
But, if it works, then one improvement can be done:

If the incompatible (different config) datasets are appended or overwritten, the current behaviour is to do all the stuff and then in the end, try to merge/ overwrite them.
So, the better approach will be to check for the compatibility in the beginning itself.

Also, tests are passing in lightning studio. I don't know why they failed here.


Terraform upgrade to 1.0

Closing in favour of issue in the right repo: https://github.com/ministryofjustice/cloud-platform/issues/3422


Load data in Tests (e.g. for ScaleContainer)

The pixi loader wants to use XHR to load image files, but that is not available in e.g. testem

loading images in the current version (using firefox as browser) works


Fix license headers

From martin.grotzke on March 19, 2009 22:53:28
The java code contains wrong licence headers. Those must be changed
according to the license of this lib.
Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=1

From martin.grotzke on March 22, 2009 15:04:27
Fixed, used the copyright notice from the appendix of
http://www.apache.org/licenses/LICENSE-2.0.html
Status: Fixed


Fix for Typescript 4

Description
The current code uses an old version of Typescript - and at least when I tried to build it locally this seemed to conflict with my local environment (even after trying npm install -g typescript@2).
I just fixed the code to work with Typescript 4+ by modifying a few types + splices.
Should resolve https://github.com/sushilks/kumojs/issues/4 too.
Note: Not 100% on the process.cwd() fix - but certainly when I was running locally the previous ./ was looking in the same directory as the script, not the working directory where kumoconfig generated the .cfg.
Testing
Tested with local AC:
curl http://<IP_ADDRESS>:8084/v0/room/Bedroom/status
{"r":{"indoorUnit":{"status":{"roomTemp":26,"mode":"heat","spCool":24,"spHeat":21,"vaneDir":"auto","fanSpeed":"auto","tempSource":"unset","activeThermistor":"unset","filterDirty":false,"hotAdjust":false,"defrost":false,"standby":false,"runTest":0}}}}⏎

thanks


Code-mode continues with brackets following a (hashtag) function call

Currently a hashtag function call ends with the closing paren. A Typst function can optionally be called with a following content body in brackets, i.e. #text(fill: xcolor.red)[This is my body]. This is currently not implemented and causes problems as seen in the example below (the closing bracket of the function call ends the outer block).

I don't know when but this issue seems to be resolved when I try it now.


Chapter 9 update navigation text and remove unused intro page

Closes #1045

Here are all the navigation titles


Why is ctx unused if it's passed in? Shouldn't cm do something with it?

		// TODO: Why is ctx unused if it's passed in? Shouldn't cm do something with it?

https://github.com/filecoin-project/bacalhau/blob/fb9449fff272e68a69cd13fb0b650e3edb2da6c1/pkg/devstack/devstack.go#L173

@enricorotundo  can you check this? let's just make sure we're not leaking anything. don't spend more than 30 minutes on it

not a problem if the resource is only in-process


Integration with other react project

Hi,
First thanks for this project - really cool!
Second I'm starting to learn react (really total newb) and to get integrate it with django.
I can get the project to work on its own which is already a good news.
I am now trying to integrate it with the django-react-teamplate. It seems to be structured differently.
https://github.com/scottwoodall/django-react-template
Any tips on how and where to get started?
Thanks!
J.

Glad you found the project cool! 😄
So in django-react-template, the project is split into 2 parts:
1. /backend

contains the code for your app's API server (using Django REST framework + Postgres)
this server also hosts static files & you have to make sure that the files you want to serve are in the frontend/build directory (hardcoded here)

2. /frontend

contains the code for your react app
webpack is configured to bundle your frontend app into the /build directory

Since coincharts is based of create-react-app, npm run build already bundles our app into a /build directory (same as where django-react-template expects it's static files to be located at!)
So to integrate it, you only have to replace the entire contents of /frontend directory with coinchart's code & here's what I might do:
git clone https://github.com/scottwoodall/django-react-template
cd django-react-template

# remove unwanted code + clone `coincharts` into `/frontend` dir
rm -rf ./frontend
git clone https://github.com/tohjustin/coincharts.git ./frontend


Add some resources

Closes #53 ("Add article: "Graphics by Squares: a Gfx-rs Tutorial"")
Closes #73 ("Add article")
Closes #153 ("Add: Game server in 150 lines of Rust")
Closes #237 ("Add rofrol/awesome-wgpu-rs")
Also, changes the category of "Roguelike Tutorial in Rust + tcod" to "tutorial".

Fixed!


Add instructions for running tests and serving docs locally

Suggestion from @devenbhooshan in #50.
Editing to trigger autopr

Hello, I want to Contributor to your project. I loved your project \ can you please guide me on where I can start I need more about this project.


Remove json submodule

Codecov Report

Merging #67 (7bfceb1) into master (92c7394) will decrease coverage by 0.28%.
The diff coverage is 50.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
- Coverage   78.11%   77.84%   -0.28%
==========================================
  Files          16       15       -1
  Lines        1138     1124      -14
==========================================
- Hits          889      875      -14
  Misses        249      249

Flag
Coverage Δ

unittests
77.84% <50.00%> (-0.28%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

lib/response.lua
63.12% <50.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


trianing with pre-model meet a problem.(checkpoint file couldn't find)

thank you share the excellent work with us,  I have meeted a problem when running the code with pretrained model.  I have changed the "load_init" point  to the path to the pretrained model, and I sure it no problem with the path. but it still throw an error that
" Couldn't find 'checkpoint' file or checkpoints in given directory /home/phm/TrackR-CNN/models".

The trackrcnn_init.zip only contained three files, "XX.meta", "XX.index" and "XX.data-00XXX".

I don't know if this file is missing, or other problem caused the error.  follow is the picture of error  description.

list_variables(filename)  called a function load_checkpoint(checkpoint_dir), and the later can't find checkpoint file.

Can you try putting the three files in a folder "conv3d_sep2" inside "models/"?

Can you try putting the three files in a folder "conv3d_sep2" inside "models/"?

Thank you for your reply, it will work after add a folder "conv3d_sep2" inside "models/".


HUE-9561 [SQLAlchemy] Default selected DB does not seem to be used

CI does not kick in, the branch is not in the cloudera hue repo but this should not matter..

Let's go via https://github.com/cloudera/hue/pull/1450


'Buckaroo Gateway' does not appear as supported when choosing a type

as seen in https://github.com/thephpleague/omnipay-buckaroo/pull/21 discussion
it seems that buckaroo_gateway does not always show up as supported in the error message

this bug is not yet confirmed, and might be caused by a 3rd party bundle

@yasasn86 which release are you using? 2.1?

yes, I am using 2.1

This is most likely caused by the prefix 'Buckaroo' in the gateway classname


Exec Circle Highlights

Problem
The highlights on the exec pictures are a nice effect but it doesn't highlight when hovering over the title of the exec or the yellow area surrounding the text
When hovering over the image or circle

When hovering over the text or yellow part (sorry Alex :stuck_out_tongue: )

Fix
Ideally we would want this to highlight when we hover over the text and yellow area. Additionally we would like the cursor to remain an arrow rather than a text cursor when hovering over the text here.

I spent a long time trying to figure out how to solve this issue with CSS which would be my preferred method but couldn't get it working.  I'll attempt with JQuerry shortly.
The last part of the problem (keeping the cursor as an arrow when hovering over text) can easily be achieved with CSS though,  I got it working with the following
#execs span.title:hover{
    cursor: default;
}

Hey, thanks for taking a look at this. I think if we move the span inside of the same div that the image is in we can do a hover on the div instead of the span.
I think it would look something like this:

    (executive position name)

with the css something like:
#exec_img:hover > (some_image_identifier) {
    (Whatever effect is already on the img)
}

actually I'm not even sure we would have to move the span if we did this.
Would you mind taking a look at it? And making the change to the cursor that you suggested?
If it's really not feasible and you think jquery is a better route I'm game for that too.

I'm probably going to put this issue on halt for a while.
This is what I found out:
It definately is possible to do it with css/html but here's the catch:
The problem: There is no simple way of selecting a "previous sibling" in CSS.
Solution: Declare the title before the img using sorcery.
There is two potential method I got "working" albeit in an very ugly fashion.

HTML
                Co-President

CSS:
#execs span.title:hover+img{
    border: 15px solid rgba(0, 77, 153, .5) ;
    position: relative;
    transition: all 0.1s ease-in;
}

The Issue I wasen't able to fix:

Use flexbox (display: flex;) as described here:
I tried using the
 method and got it working! But I wasen't able to re-align the elements correctly.
.
.
.
I wasen't able to get ratstache suggestion working.
The issue with using the child method like ratstache sugested, is that the img will glow even when the pointer isin't on the img.  It's a minor issue but something that would trigger my OCD.
.
The last part of the issue:

Additionally we would like the cursor to remain an arrow rather than a text cursor when hovering over the text here.

Can be fixed using this CSS:
#execs span.title:hover{
    cursor: default;
}

If someone gets this working, I'll be super stoked.

Ah yes, you're right. When I had pictured that working I thought it would be fine for the image to highlight when the user moved onto that div but it would be better if it was limited to the image and the text.
Let's put this one on ice for a bit and hope a hero comes along :P. Thanks for looking at it, it will definitely make it easier for the next person who picks it up!


random IPv6 of some other container is returned if proper IPv6 does not exist

What is Happening / What is expected
It's visible in the log:
19:20:38.793 [Thread-29      ] DEB c.m.d.server.dns.RequestHandlerDefault            l=48   m=solve                           status=solveReq, kind=udp, query=query=AAAA:plausible.docker
19:20:38.828 [Thread-29      ] DEB c.m.dnsproxyserver.docker.ContainerSolvingService l=90   m=findBestIpMatch                 status=networkNotFoundForContainer, name=dps
19:20:38.828 [Thread-29      ] DEB c.m.dnsproxyserver.docker.ContainerSolvingService l=90   m=findBestIpMatch                 status=networkNotFoundForContainer, name=bridge
19:20:38.828 [Thread-29      ] DEB c.m.dnsproxyserver.docker.ContainerSolvingService l=100  m=findBestIpMatch                 status=predefinedNetworkNotFound, action=findSecondOption, searchedNetworks=[dps, bridge], container=/plausible
19:20:38.829 [Thread-29      ] DEB c.m.dnsproxyserver.docker.DockerNetworkDAODefault l=53   m=findByName                      queryName=plausible, foundName=plausible
19:20:38.829 [Thread-29      ] DEB c.m.dnsproxyserver.docker.ContainerSolvingService l=120  m=lambda$findBestIpMatch$3        status=foundIp, networks=[plausible], networkName=plausible, driver=bridge, foundIp=null
19:20:38.834 [Thread-29      ] DEB c.mageddo.dnsproxyserver.docker.DockerDAODefault  l=64   m=findBestNetwork                 status=bestNetwork, network=phpmyadmin, ip=<IP_ADDRESS>
19:20:38.834 [Thread-29      ] DEB c.m.dnsproxyserver.docker.ContainerSolvingService l=132  m=lambda$findBestIpMatch$4        status=noNetworkAvailable, usingHostMachineIp=fddb:21e4:36d4:1:0:0:0:1
19:20:38.834 [Thread-29      ] DEB c.m.d.server.dns.RequestHandlerDefault            l=87   m=solve0                          status=solved, currentSolverTime=40, totalTime=40, solver=SolverDocker, req=query=AAAA:plausible.docker, res=rc=0, res=plausible.docker.  30  IN  AAAA  fddb:21e4:36d4:1:0:0:0:1
19:20:38.834 [Thread-29      ] DEB c.m.d.server.dns.RequestHandlerDefault            l=102  m=solve0                          status=solveSummary, summary=[(SolverSystem,0), (SolverDocker,40)]
19:20:38.834 [Thread-29      ] DEB c.m.dnsproxyserver.server.dns.solver.SolverCache  l=44   m=lambda$handleRes$0              status=hotload, k=AAAA-plausible.docker, ttl=PT30S, simpleMsg=query=AAAA:plausible.docker
19:20:38.834 [Thread-29      ] DEB c.m.d.server.dns.RequestHandlerDefault            l=53   m=solve                           status=solveRes, kind=udp, time=41, res=rc=0, res=plausible.docker.  30  IN  AAAA  fddb:21e4:36d4:1:0:0:0:1, req=query=AAAA:plausible.docker
19:20:38.835 [Thread-29      ] DEB com.mageddo.dnsproxyserver.server.dns.UDPServer   l=58   m=handle                          status=success, query=query=AAAA:plausible.docker, res=rc=0, res=plausible.docker.  30  IN  AAAA  fddb:21e4:36d4:1:0:0:0:1, serverAddr=/0:0:0:0:0:0:0:0, clientAddr=/<IP_ADDRESS>:50714, dataLength=512, datagramLength=45

findBestNetwork chose phpmyadmin network, but plausible is not connected to this network:
m=findBestNetwork                 status=bestNetwork, network=phpmyadmin, ip=<IP_ADDRESS>

plausible doesn't have IPv6 enabled (plausible doesn't support dual-stack):
# docker network inspect plausible
[
    {
        "Name": "plausible",
        "Id": "befd81d511296c5ab4efc42c9c5aad8bae01699b8412a84e4d4b60cc3c60da69",
        "Created": "2023-12-15T23:13:19.226642613Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "<IP_ADDRESS>/16",
                    "Gateway": "<IP_ADDRESS>"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "3620250dbecb269fbdcafd08ca51e74a12c0b0e9736c339b08f3604df049ae31": {
                "Name": "plausible",
                "EndpointID": "854e197f641535077f2ef5390c5a7d0206ddfcf25ee02ab6831619a368c9c6d0",
                "MacAddress": "02:42:ac:17:00:03",
                "IPv4Address": "<IP_ADDRESS>/16",
                "IPv6Address": ""
            },
            "958b6568547a61345c4ba0931601364a2013dbc7898439632a1f323b549bd6f2": {
                "Name": "plausible-clickhouse",
                "EndpointID": "dcb1fc9049ad8ac9d2db4dd95ac1f3d5f465937bfde515c826d9cb028cee969e",
                "MacAddress": "02:42:ac:17:00:02",
                "IPv4Address": "<IP_ADDRESS>/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

# docker network inspect phpmyadmin
[
    {
        "Name": "phpmyadmin",
        "Id": "282a7736c6b1cd6a3272b63828f40d91602b63707b4fefb95c5568429049c462",
        "Created": "2023-09-22T19:11:51.523662906Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": true,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "<IP_ADDRESS>/16",
                    "Gateway": "<IP_ADDRESS>"
                },
                {
                    "Subnet": "fddb:21e4:36d4:1::/64",
                    "Gateway": "fddb:21e4:36d4:1::1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "b175163001f4b77a976cd0a334bca0a84f52879360c64a859e5a509a33c0996c": {
                "Name": "phpmyadmin",
                "EndpointID": "c654415449e487868084bf3d1cca07190f89012927cef0dc9f1b026aa7506823",
                "MacAddress": "02:42:ac:13:00:02",
                "IPv4Address": "<IP_ADDRESS>/16",
                "IPv6Address": "fddb:21e4:36d4:1::2/64"
            }
        },
        "Options": {},
        "Labels": {}
    }
]

Specs

OS: 6.6.6-100.fc38.aarch64
Docker Version:

# docker version
Client:
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        %{shortcommit_cli}
 Built:             Sun Aug 27 16:45:35 2023
 OS/Arch:           linux/arm64
 Context:           default

Server:
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       %{shortcommit_moby}
  Built:            Sun Aug 27 16:45:35 2023
  OS/Arch:          linux/arm64
  Experimental:     true
 containerd:
  Version:          1.6.19
  GitCommit:
 runc:
  Version:          1.1.8
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:

DPS Version: 3.15.13-snapshot

Hey @pschiffe , I can see behavior that might be not wanted but different of what your reported.
Looks like DPS didn't use phpmyadmin network but answered the hostmachine IPV6 IP, the thing is, like you said, none of "plausible" container connected networks has  support for IPV6, so maybe it doesn't makes sense to answer the hostmachine IP.
I will have to think in the use cases related to use hostmachine IP to check if this behavior can be considered was wanted or not, maybe it can be a togglable feature.

I see, thanks for taking a look. You are right, the phpmyadmin has IP fddb:21e4:36d4:1::2, and the host has fddb:21e4:36d4:1::1 (which is returned by the dns proxy).
Returning the host IP in this case is useful only if the ports of the container are exposed to the host I think. Otherwise it's just a wrong answer. I think the correct behavior (at least that I would expect) is to return nothing, so the client can try for A record. Some clients on IPv6 enabled systems go for AAAA record first, and try for A only if AAAA is missing.

I've mapped returning the host IP in this case useful when:

If the ports of the container are exposed to the host and there are no networks in the container or all the container networks  are not in bridge mode (it happens when the container is  executed using docker-compose, bridge networks are dropped in this case.
When the container is running in network mode = host

I consider "return host machine IP when there is not an available IP to answer" as an useful feature, I will propose a feature toggle to it turn off, turned on as default to maintain the  backward compatibility.

@pschiffe please let me know if that solution can fix your unexpected behavior scenario

Try to identify the wanted and unwanted scenario automatically
If the container it's not in network mode = host and have not published ports then it makes no sense to answer the host IP address, do return no IP instead (NXDOMAIN).

have not published ports

this may not be good enough - for example, you expose one port for the web server, but not the other one for metrics, which you will gather only via container.docker name.
I have it like that in my setup, where grafana agent is running on the host and doing autodiscovery of container metrics via docker labels. As it's on the host, it's using dns proxy to resolve the IP of the containers.
It's true that most of the containers don't have ports exposed to the host, but there are ones like traefik proxy, and internal tools which have. Also for this to be a problem, these containers must have IPv6 missing, but there is still sw where dual stack is a problem.
Anyway, in general, I like the automagic feature, but it probably would be a good idea to be able to enforce the behavior with feature toggle as well :)
BTW, thanks for the great job!

Thanks for the feedback. I will work on the feature toggle then.

Hey @pschiffe  3.17.0-snapshot is being released, I would appreciate if you could check it out.

Very nice, seems to work great! 				IN	AAAA

;; AUTHORITY SECTION:
.			85197	IN	SOA	a.root-servers.net. nstld.verisign-grs.com.<PHONE_NUMBER> 1800 900<PHONE_NUMBER>0

;; Query time: 40 msec
;; SERVER: <IP_ADDRESS>#5300(<IP_ADDRESS>) (UDP)
;; WHEN: Wed May 08 21:29:32 UTC 2024
;; MSG SIZE  rcvd: 120


Boxing large futures is unsubstantiated

In the context of da62e65e64bcd54e3d427448069f47a9b1c3b6bd, pay attention to this code:
// src/runnable.rs:515

// Allocate large futures on the heap.
let ptr = if mem::size_of::<Fut>() >= 2048 {
    let future = |meta| {
        let future = future(meta);
        Box::pin(future)
    };

    RawTask::<_, Fut::Output, S, M>::allocate(future, schedule, self)
} else {
    RawTask::<Fut, Fut::Output, S, M>::allocate(future, schedule, self)
};

The future is boxed whenever its size is greater or equal to 2048 bytes. Comment tries to elaborate on this condition but it seems not to notice that RawTask::allocate already places the future on the heap next to the header. I don't see any reason to additionally box the future even if it is large by itself.
However one might argue that running future shares space with its output result after the completion, thus boxed future would deallocate the space which that future would have occupied as soon as it completes, possibly saving some space until its Task object is consumed in some way. Then however the right condition would be to compare future's size with its output type's size, to make sure there is a substantial difference between them to save on:
mem::size_of::<Fut>() >= mem::size_of::<Result<Fut::Output, Panic>> + 2048

Even then that approach would be unsubstantiated, due to not having data to show any practical benefit. There could be not enough delay while completed task is held in memory to cause substantial memory usage cost.
It also introduces an additional pointer indirection which cannot be avoided, even if user would have liked to do so. However in case this branch is removed, user would be able to box up the future on their side to reach the old behavior. Given this library's purpose is to use it to "create a custom async executor", I am inclined to believe latter choice would be more appropriate, while this behavior and possible optimization should probably be noticed in the documentation as well.
I've even made some simple benchmarks to check how the code would perform with and without the Box::pin branch:
#[bench]
fn large_task_create(b: &mut Bencher) {
    b.iter(|| {
        let data = [0; 0x40000];
        let _ = async_task::spawn(
            async move {
                black_box(data);
            },
            drop,
        );
    });
}

#[bench]
fn large_task_run(b: &mut Bencher) {
    b.iter(|| {
        let data = [0; 0x40000];
        let (runnable, task) = async_task::spawn(
            async move {
                black_box(data);
            },
            drop,
        );
        runnable.run();
        future::block_on(task);
    });
}

I have found no noticeable difference, while roughly accounting for instability of benchmark results.
This issue also relates to #66, which highlights one of drawbacks of this decision.

AFAIK, boxing is to avoid stack overflows.
However, I think the boundary should be larger in the release mode like tokio does.
https://github.com/tokio-rs/tokio/blob/512e9decfb683d22f4a145459142542caa0894c9/tokio/src/runtime/mod.rs#L400
Another approach that would may work is to use #[inline(always)] to avoid intermediate allocations on the stack.

AFAIK, boxing is to avoid stack overflows.

That would be good, but I only can see the opposite being true. Particularly if you change data array size from 0x4_0000 to 0x10_0000 from aforementioned benchmarks you'll get the stack overflow until you actually delete that branch. This indicates that the optimizer is able to perform in-place initialization, even if it doesn't use Box type, which does make sense considering there's no significant difference for LLVM. However it also seem like that the optimizer struggles with the added complexity from this if branch.
There could have been a possibility that this change did help to avoid stack overflow, considering it did not create a new closure back then change was introduced, but called Box::pin directly inside of the discussed branch (see d3011bfde9ef119674710f57895c545383eedf7b). Even if that was true (besides that nobody paid attention or got any stack overflows I've encountered), you can make a conclusion this feature is not functional.


Remove context() calls in test scripts

From the testthat 3rd edition vignette:

context() is formally deprecated. testthat has been moving away from context() in favour of file names for quite some time, and now you’ll be strongly encouraged remove these calls from your tests.

@Roche-GSK/admiral-devs A nice little issue for someone with a bit of spare time 😉

When we remove context in the test files.  Do we need to do anything else with the test file.   Some type of header block?

No, nothing else required. This used to be the ID for the tests when running devtools::test() but now they just use the file name as ID. Please make sure to also remove any blanks lines after the context() call such that the test files do not start with empty lines.

Should we put this into the Unit Testing guide - that some files might have context and it should be removed?

lol i see ive been assigned this update

It looked like you volunteered to me 😉


Add an expectation of node version to package.json

I don't think this is automatically enforced, or automatically switched too (like rvm or such), but it gives a hint that older versions of node won't work with this package.
I picked 6 as something reasonably modern, within the last 6 months, but it's a bit arbitrary. I know i had problems with a version <= 5 though.
Note; This won't apply to the build npm package, as the engine value isn't carried over, and the version is needed for a devDependency only.

v6 is fine, as that’s the current LTS.


Bug 2139260: Fixing the clone button will be enable while the vm is running

Signed-off-by: Dana Orr<EMAIL_ADDRESS>
📝 Description
🎥 Demo
Before:

After:

/bugzilla refresh

/retest


Security Issue: Accessing /etc/passwd

Currently it is possible to read local files like /etc/passwd or other files (I did not iterate).

Just insert file:///etc/passwd as Url and click on "Create Screenshot". I'm not going to add a screenshot of your /etc/passwd/ file here.
This will output the content of the /etc/passwd file since phantomJS is browsing it. The next Page will print out the content of the file and is Redirecting then to http://screeenly.com/try .
You should immediatly fix this issue

Thanks! Will look into this immediatly

Fixed! Thanks again @seelwerk 👍


ISSUE-39 | added padding in blog body

Issue related

Closes #39

What is being changed?

Adding padding between the border of blog body and content.

Evidences

Observations
Umm the UI in general needs a revamp imo, this is just a quick fix to make the current UI less buggy. The 2px value, I chose was based on my subjective measures, feel free to suggest better values, it's a quick fix anyway.

@ps-89 quick fix for border issue, please have a look

Closing this as this has already been fixed as part of other MR


Shortcuts missing from the dropdown menu

Environment - Ubuntu 14.04 64-bit
Light Table version - 0.7.2
Binary version - 0.8.6
The "Getting started" for files and workspaces shows that the shortcuts are available on the dropdown. e.g. Ctrl + Shift + O is shown for Open file in the video. But in my Light table these shortcuts are not being shown.

The folder | file | recent at the top of workspace are also not available

I think this is related to https://github.com/LightTable/LightTable/issues/1338

@anshbansal Please try building the latest source of the master branch and confirming whether you can reproduce this with that version. If indeed this is a limitation of NW.js, like #1338, then this may be resolved by the migration to Atom Electron.

I will build the master. By sunday.
I am not sure whether it is related as per the technology point of view. I was talking as per functionality. The screenshots are similar to what I see myself.

We've release 0.8.0-alpha which is based on Electron - https://groups.google.com/forum/#!topic/light-table-discussion/rkfHTplo4ss. Closing as this should be resolved. Ping us if it is still an issue


How to get the original script?

Hi,
Is there any way to get the original script from the user (w/o the intent matching stuff)? For example, user says 'how is the weather?' Instead of getting the 'ASK_WEATHER' intent in the request object, I want to know exactly what the user said (right after ASR but before intent matching).

No. Amazon does not provide access to the voice stream or allow dictation.


Update netty-codec, ... to 4.1.94.Final

About this PR
📦 Updates

io.netty:netty-codec
io.netty:netty-transport-native-epoll
io.netty:netty-transport-native-kqueue

from 4.1.84.Final to 4.1.94.Final
Usage
✅ Please merge!
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!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.netty" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.netty" }
}]

labels: library-update, commit-count:1

Superseded by #167.


NSFW Link

Link
https://iedprivatedqu.com/s?ocF8
Version
Manifest-v3
What browser(s) are you using?
Firefox browsers
What platform are you using?
Computer (Windows, Linux, MacOS)
(Optional) Anything else?
No response

computer doesnt work for them, they wanna know if what OS its running on.


Quick search file doesn't work after update to 1.19

VSCode Version: 1.19
OS Version: Mac OS

Steps to Reproduce:
After update to 1.19 the quick search file stop working for me. Based on this gif:

When I type App.js in quick search, the list return only 1 result (recently opened) instead of whole list with results.
It seems like project is not indexing?

Reproduces without extensions: Yes

Seems the same on Ubuntu 17.10.
I have 2 folders in my workspace, the first one seems to be indexed correctly, CRTL+P shows results.
But the second one returns not a single result, before 1.19 both returned results.
In an other workspace is only one folder, this one seems to work.
Could it be, that only first folder is indexed now?

I don't use workspaces ;) and it also doesn't work for me (symptoms like in first post)

Could fix it for me by adding "search.useRipgrep": false to my settings. This even doesn't need a restart of vscode o.O
Tried everything mentioned here and played around: #40076

I read that issue and next problem is that I'm on Mac :) but yes, when I set:
"search.useRipgrep": false
the quick open seems to work properly....

Which results are you missing? There are lots in that list, are you sure they aren't just sorted somewhere else?
Does text search work to find results in those files?

I read that issue and next problem is that I'm on Mac :) but yes, when I set:
"search.useRipgrep": false
in my settings, the quick open seems to work properly....

This works for me either.

As I wrote here:

When I type App.js in quick search, the list return only 1 result (recently opened) instead of whole list with results.

Whole list I mean all files which have in name app.js (like on screenshot from 1 post)

@roblourens For me neither search in files, nor searching files with CRTL+P works.
I have tested again now with one file with a unique name, which won't show up at all.
If, like I wrote before, ripgrep is disabled, the file shows up in both searches again.

Can also confirm this issue on Ubuntu 17.04 & 17.10.
Setting search.useRipgrep to false has corrected the behavior, though not sure what the consequences are in doing so.

For me also now set search.useRipgrep to false doesn't work....

Everyone besides @PixelT please open your own issue, it sounds like there are some different symptoms.
@PixelT You have a strange problem if it still doesn't work after disabling ripgrep.

Whole list I mean all files which have in name app.js (like on screenshot from 1 post)

I see - the screenshot is from 1.18. Does text search work to find results in those files? If not, are there any errors in the search output pane?

It seems that this problem back in 1.21.1 ...


Register the package

@JuliaRegistrator register()

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/98024
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.0 -m "<description of version>" be29c52d40311ffcc6779ca4cf3861ea7844f494
git push origin v0.1.0

Registered!


Something is causing task assembly version conflicts

This error started appearing in aspnet/Hosting and now aspnet/SignalR.
C:\b\w\33bdfc1cae7b2a38\.packages\internal.aspnetcore.sdk\2.2.0-preview1-20180731.1\build\GenerateAssemblyInfo.targets(25,5):
error MSB4062: The "Microsoft.AspNetCore.BuildTools.Sdk_GetAssemblyFileVersion" task could not
be loaded from the assembly
C:\b\w\33bdfc1cae7b2a38\.packages\internal.aspnetcore.sdk\2.2.0-preview1-20180731.1\build\..\tools\netcoreapp2.1\Internal.AspNetCore.Sdk.dll.
Assembly with same name is already loaded Confirm that the <UsingTask> declaration is correct,
that the assembly and all its dependencies are available, and that the task contains a public
class that implements Microsoft.Build.Framework.ITask.

Current hunch: a functional test is launching MSBuild without proper MSBuild context and without node reuse disabled.

cc @Tratcher I queued http://aspnetci/viewQueued.html?itemId=528132 with node reuse disabled globally to see if our current hunch is right.

Should be resolved by https://github.com/aspnet/BuildTools/pull/734. Root cause is https://github.com/Microsoft/msbuild/issues/3572


fzf is slow to start, however running fd --type f | fzf runs perfectly fine

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[ ] Linux
[x] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[x] fish

Problem / Steps to reproduce
I've tried adding fzf as part of my neovim setup but I noticed that opening it takes about 1-2 seconds before any files are shown (:GFiles). So I've tried to drill down and find the issue, however I was unable to find the culprit. I try to use fd --type f as default command however as shown on the attached asciinema running fd --type f | fzf is instant while fzf still takes between 1-3 seconds in a small project.
https://asciinema.org/a/R4LdLlk4kPztXAonn46uSJ8sr
What would be the next steps for me to try to find the solution?
My config.fish:
export PATH="/Users/tkg/.deno/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$PATH:$GOPATH/bin"

export FZF_DEFAULT_COMMAND='fd --type f'

All right, this issue can be closed, I found and fixed the culprit. It IS NOT an issue with fzf but with my fish login shell startup time.
I will write down the steps that allowed me to find and resolve the issue for posterity.

First of all, I had to know what could be different between running fd --type f | fzf and just fzf. After some digging and searching I found some old issues that pointed me to (logical to be honest) thing: fzf has to start like a login shell and run all of the initialisation so the export FZF_DEFAULT_COMMAND could be set. Could this be a problem with my login shell?
So I checked time bash -c 'echo foo' and time $SHELL -c 'echo foo' and - yeah, there it is. fish takes around 1-2s to start. I opened a non-login shell and the issue was solved.
So now I was certain that the issue IS NOT an issue with fzf. But I still had to figure out a fix, so a fish --profile prompt.prof -ic 'fish_prompt; exit'; sort -nk 2 prompt.prof gave me information about the time various things had to take to actually run my fish.
And of course, there it was - nvm took about two seconds to run. Now that I think about it, yeah, starting iTerm2 required a second before I got my prompt but I never thought about it.
Removing nvm, using a different Node.js version manager fixed the issue.


Does not return if fields is a property in object

Consider an Object as below.
{
"name": "me",
"fields": ["him","her"]
}
If the query is framed as ?fields=name,fields then the return will include name but not fields

Hi @poojaribhaskar, if you have properties with the same name I would suggest to use the fieldsKey option to change the URL parameter name from fields to something else:
const parser = new ArangoDbQueryParser({ collection: 'documents', fieldsKey: '_fields' });
const parsed = parser.parse('_fields=name,fields');
const query = parser.createQuery(parsed);
assert.equal(query, 'FOR o IN documents RETURN { name: o.name, fields: o.fields }');


Build environment? Cannot build on ubuntu.

Hi,
I was hoping to take a look at https://github.com/deeplay-io/nice-grpc/issues/555 but I noticed that on a fresh Ubuntu 23.10 with node v20.13.1 installed freshly via nvm I was unable to get the project to build properly without lots of hacking. And even then, I cannot get tests working.
What is your current developmental workstation build setup? Does it work with a fresh version of node? (ie, does it work if you haven't done any global npm installs?)
Some immediate observations:

@types/node seems needed, but isn't present in the main package.json
packageManager is missing in package.json, but I do see a yarn.lock file

I'd be happy to help contribute here (including starting with a BUILDING.md), but would appreciate some pointers to at least see what a working baseline build environment looks like. Thank you!

Hey @davidfiala!
I am not directly opposed to your modernization proposal, but are you sure all of this is required to fix build problems? What problem exactly you got with the build by the way?
Below I will leave comments on each of the proposals. But something tells me that we can unlock your work on #555 with much much less blood.

My other goal would be to get tsconfig aligned across the project and get vscode to play ball with the tsconfig. Right now, I think some of the src/file expressions preclude some files from properly being recognized as in the project or not, leading to red squiggles and inability to perform intellisense.

What files are we talking about? I am using VSCode to develop nice-grpc and everything works just fine for me.

upgrade over to yarn 4.x

That would be nice! I would also consider migrating to npm, to simplify things. Using yarn is just my old-school habit.

switch to modern stephenh/ts-proto for generation and drop google-protobuf (not seeing much action these days)

The only package that uses google-protobuf in its implementation currently is the server reflection library. That's because reflection protobufs are written in protobuf v2, which at that time was supported by ts-proto only for parsing but not serialization. It would be great to migrate if that's possible now.
Apart from that, we provide support for google-protobuf in nice-grpc and nice-grpc-web and I don't want to drop it, because it can aid the migration of old code to nice-grpc from grpc-js/grpc-web where google-protobuf is still often used.

upgrade lib/target towards ES2018 or higher

It's fine for NodeJS, but most of our packages can be used in the browser and other platforms. That's why we use @tsconfig/recommended, which currently has es2016 target. I worry that this change could break someone.

switch to ESM internally everywhere

I think we can still output in any format if we had to. esbuild, etc could help if tsc gets annoying.

I have some concerns about that.
First of all, I don't see a way we could drop CommonJS output for now. This would be more or less acceptable if our only consumer was application code. But our packages are broadly used in libraries, and this change would force them to switch to ESM as well.
Having dual output sounds better, but has a price of a more complicated build system. To be honest, I don't see benefits that would justify this change.

To sum up, I am definitely up for modernizing things, especially if that leads to simplification. On the other hand, complicating things does not sound right to me, even if that leads to a more modern setup.
That said, I sure hope that you acknowledge that all of the above is largely unrelated to #555.

I'd be happy to jump on a chat anytime to discuss realtime, too. WDYT?

Absolutely! I'm on Telegram @aikoven and Discord @aikoven

Thanks for the reproduction steps!
I see now that the problem is caused by yarn 4 producing a little different node_modules layout (particularly the location of binaries).
Here are the versions installed on my Mac:
❯ node --version
v18.20.2

❯ yarn --version
1.22.22

I checked the CI logs and it appears that GitHub setup-node action also uses yarn 1.22.22 on both NodeJS 18 and NodeJS 20.
I'm not sure whether it is possible to lock yarn to v1 via packageManager field. Can you please try the setup with "packageManager"<EMAIL_ADDRESS>I also tried installing dependencies using npm, which resulted in same errors with missing binaries. If the packageManager setting won't help, we could try to update the binary paths to match the structure produced by npm.


Implement A* Pathing

Going to suggest we use the MicroPather library by Grinning Lizard. It's compact, it's portable, it's well tested and it's well documented. No sense rolling our own.
Once it's installed in the code base, we need to make sure that we implement its Graph interface... should be a case of having TileMap inherit Graph and go from there.

It's safe to say that this issue is now complete.


Upgrade Node to 18

Overview
We are currently using Node 16 which is nearing end of life in a year. Node 18 will give us longer to work with.

FYI, here is a commit that removed hot reload on another project, for reference.


RELAYMSG identifiers should respect bans/mutes?

Right now, RELAYMSG bypasses all channel ban/mutes, but we could enforce them against the spoofed relay nicks (there might be some subtleties with casefolding around the separator char). See also #1441.

This would be quite useful for me because I have stopped relying on stateful bridges completely. While I agree about "moderate from the other side", certain channel operators may not have permissions synchronized and also things like IRC has the most elaborate bots and that can be used for spam and adding ignores for this is slightly difficult for the uninitiated.
Would there be an issue with having a / in the nick being relayed. mo/gad0n/discord is what would show up? Also it is ridiculously easy to change your nick on many of these platforms can you rapidly evade by switching your nick when a MUTE is applied. I am unsure if  #1441 is relevant to what I am asking.

This would be quite useful for me because I have stopped relying on stateful bridges completely. While I agree about "moderate from the other side", certain channel operators may not have permissions synchronized and also things like IRC has the most elaborate bots and that can be used for spam and adding ignores for this is slightly difficult for the uninitiated.
Would there be an issue with having a / in the nick being relayed. mo/gad0n/discord is what would show up? Also it is ridiculously easy to change your nick on many of these platforms can you rapidly evade by switching your nick when a MUTE is applied. I am unsure if  #1441 is relevant to what I am asking.


Failed to get pbm status errors

Steps to reproduce

juju deploy mongodb-k8s
juju deploy sdcore-nrf
juju integrate mongodb-k8s sdcore-nrf

Expected behavior
No errors
Actual behavior
Failed to get pbm status errors in charm.
Versions
Operating system: Ubuntu 22.04
Juju CLI: 3.1.6
Juju agent: 3.1.6
Charm revision: 6/edge (Revision 37)
microk8s: v1.27.6
Log output
unit-mongodb-k8s-0: 07:37:32 ERROR unit.mongodb-k8s/0.juju-log Failed to get pbm status. non-zero exit code 1 executing ['/usr/bin/pbm', 'status', '-o', 'json'], stdout='{"Error":"get status of pitr: check for errors: get current epoch: get config: get: mongo: no documents in result"}\n', stderr=''

Hi @gruyaume from what I can tell this is infact an issue in the log messages. I'm happy you noticed it since poor logging can impact how users understand the charm, thanks for pointing this out :)
The log messages come from the shared mongodb libraries (which are hosted & maintained on the VM side) right now there are two open PRs to fix this: 6/edge and 5/edge once these are merged we can update the libraries on the k8s side.
Other than that though, the charm should be functional. Did you encounter any functional errors or only the incorrect log?

Perfect, thank you @MiaAltieri


Bug: fix the aa-kbc-params error in fedora

Fixes: #1852

@mkulke @bpradipt not sure whether it's reasonable for azure and aws provider, may you please check?

The problem is on fedora, the failure in ExecStartPre in process-user-data blocks  ExecStart.
I broken it into 2 services. process-user-data-provision and process-user-data-update while process-user-data-update depends on cloud-final.service because libvirt and other providers like ibmcloud uses cloud-init to provision user-data.

@huoqifeng how was the libvirt provider working all this while with the packer created image?

@huoqifeng how was the libvirt provider working all this while with the packer created image?

I'm not 100% sure, but I guess ExecStartPre failure won't cause ExecStart skipping on ubuntu.
Another thing I'm digging is why after the service change I made in this PR. the file /etc/agent-config.toml changed but not /run/peerpod/agent-config.toml without the main.go change. -- It worked on ubuntu image. @bpradipt

I guess this has been fixed by PR https://github.com/confidential-containers/cloud-api-adaptor/pull/1858

I guess this has been fixed by PR #1858 @mkulke

I wouldn't expect this (at least intentionally). the above PR should not change behaviour in this regard.

Close it as it has been fixed in https://github.com/confidential-containers/cloud-api-adaptor/pull/1868


New to nix-on-droid

can I get commands detail as well as wiki to use this application
thanks in advance

Essentially you are in a basic nix environment without super user privileges. You can use the manual of nix and nixpkgs on https://nixos.org as a starting point.
Additionally a executable named nix-on-droid is available which tries to mimic nixos-like behaviour (see ~/.config/nixpkgs/nix-on-droid.nix for configuration file).
In the Readme of this repository are some information about how to use nix-on-droid. Unfortunately there is no easy way to search for available options as this project is in an early stage. So you can look into the modules folder for discovering more options.
The recommended setup includes home-manager which is documented quite good. For instructions on how to embed home-manager into nix-on-droid see the Readme.
I hope this helps :)

The issue relating to the missing documentation of available options is https://github.com/t184256/nix-on-droid/issues/36.

I tried to use this command nix-env -qaP \* and it gave me error like thisFAILED

Can you give me more information (e.g. smartphone model, ram size) and a way to reproduce this error beginning from a clean install because for this command works (quite slowly but it works)?

this is my phone vivo 1808 and I tried to reinstall the app by uninstalling it completely and fresh install it

nix-env -qaP \* is a really inperformant command because it tries to evaluate the whole nixpkgs. I think 2GB of RAM aren't sufficient.
So this is not a fixable issue in nix-on-droid unfortunately..

Easiest workaround to this issue is to use the website to search: https://search.nixos.org/packages
Even on a Samsung Tab S6 nix based package search is too slow to be useful.

Can you post the output?
nix-env works fine for me provided I have gzip installed. In general, you're supposed to add packages to the configuration file and nix-on-droid switch instead of using nix-env.