About a memory leak in lsquic library

Can this pdf attachment be seen?
memory leak.pdf

You need to figure out why the reference count is higher for certain packets, once dereferenced properly, the memory will be will released.

The reference count is higher because the packet received has a CRYPTO frame, function process_crypto_frame_client will make refcnt++.  And it seems to be the normal.

Once that CRYPTO frame being processed, the packet should deref. Make sure it happens.

You are right. The packet is not dereferenced after CRYPTO frame processing.
I think it should be done in function lsquic_stream_dispatch_read_events.
But after receiving the first four packets sent by the server，the if judgment is not satisfied.
So maybe with such a combination of outgoing packets, calling lsquic_engine_packet_in to handle incoming packets will result in a memory leak.

If payload has been read by upper level, it will be dereferenced, the packet will be released.
You need to find out why it does not happen. Check example clients see if it happens, any differences.

Thank you, I will check it again and reply.

This case will result in memory can still referenced event if the stream/connections closed? if it is, it is absolutely a memory leak?

This case will result in memory can still referenced event if the stream/connections closed? if it is, it is absolutely a memory leak?

Using Q043 doesn't has the problem

You can try a Address Sanitizer build with Leak Sanitizer enabled, see if can catch anything.
Or, try running it under valgrind.

Maybe upper level is too busy to process packets, so the packets stays in the pool, as a result, the pool slots keep growing up, the memory grows. the pool slots will never be decreased, so the memory didn't reduce even if all conections closed.
so i try to verify this conjecture without pool, the expaction is the memory will be free when connections closed.
I add compile options:
add_compile_definitions(LSQUIC_USE_POOLS=0)
add_compile_definitions(LSQUIC_LOG_POOL_STATS=1)
and add logs:

but the program crash of double free.
*** Error in `./perf_server': double free or corruption (fasttop): 0x00000000047b7940 ***
Program terminated with signal 6, Aborted
#0  0x00007faf22c253d7 in raise () from /lib64/libc.so.6
#1  0x00007faf22c26ac8 in abort () from /lib64/libc.so.6
#2  0x00007faf22c67f67 in __libc_message () from /lib64/libc.so.6
#3  0x00007faf22c70329 in _int_free () from /lib64/libc.so.6
#4  0x0000000000478558 in lsquic_malo_put (obj=0x47b7958) at lsquic_malo.c:273
#5  0x00000000004a8997 in lsquic_stream_frame_in (stream=0x2286160, frame=0x47b7958) at lsquic_stream.c:1145
#6  0x000000000045498b in process_stream_frame (conn=0x2dee470, packet_in=0x47b73d8, p=0x47b745a "\f", len=1226) at lsquic_full_conn_ietf.c:5806
#7  0x0000000000458931 in process_packet_frame (conn=0x2dee470, packet_in=0x47b73d8, p=0x47b745a "\f", len=1226) at lsquic_full_conn_ietf.c:6740
#8  0x000000000045948b in parse_regular_packet (conn=0x2dee470, packet_in=0x47b73d8) at lsquic_full_conn_ietf.c:6897
#9  0x000000000045b3f1 in process_regular_packet (conn=0x2dee470, packet_in=0x47b73d8) at lsquic_full_conn_ietf.c:7411
#10 0x000000000045c32d in process_incoming_packet_fast (conn=0x2dee470, packet_in=0x47b73d8) at lsquic_full_conn_ietf.c:7649
#11 0x000000000045c487 in ietf_full_conn_ci_packet_in (lconn=0x2dee470, packet_in=0x47b73d8) at lsquic_full_conn_ietf.c:7678

You can try a Address Sanitizer build with Leak Sanitizer enabled, see if can catch anything. Or, try running it under valgrind.

Thanks : )
I added some code to count memory allocation and deallocation, and found that there may be no memory leaks here. all allocated memory is returned to the memory pool.
In my case, upper level has a self-buffer, when the self-buffer is full (upper level is too busy to process these packets) will call lsquic_stream_wantread(stream, 0), and the packets will stay in the pool for a while(of cause will call lsquic_stream_wantread(stream, 1) when self-buffer is not full), when the slots run out, the pool will allocate memory from system, when one packet was processed, the memory is returned to the pool instead of the system. so what i can see is memory growth, in fact these new slots can continue to be used later.
Is it necessary to add a limit to the pool growth to protect the upper level program? if lots of requests keep coming in, the slots will grow until OOM, and there is very little that can be done at the upper level (It may be a way to restrict UDP receiving packets?).


HTTP Error 400: Bad Request when trying

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.04.17. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[ X ] I've verified and I assure that I'm running youtube-dl 2019.04.17

Before submitting an issue make sure you have:

[ X ] At least skimmed through the README, most notably the FAQ and BUGS sections
[ X ] Searched the bugtracker for similar issues including closed ones
[ X ] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[ X ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--call-home', '-i', '--download-archive', '/home/%user%/Youtube/Archive', '-o', '~/Youtube/%(upload_date)s-%(title)s-%(uploader)s.%(ext)s', '-u', 'PRIVATE', '-p', 'PRIVATE', '-f', 'bestvideo[height<481]+bestaudio', 'https://www.youtube.com/playlist?list=WL']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.04.17
[debug] Python version 3.7.3 (CPython) - Linux-5.0.8-arch1-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Public IP address: <IP_ADDRESS>
[youtube:watchlater] Downloading login page
[youtube:watchlater] Looking up account info
[youtube:watchlater] Logging in
WARNING: Unable to log in: HTTP Error 400: Bad Request
[youtube:watchlater] WL: Downloading webpage
ERROR: This playlist does not exist.
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 529, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 2927, in _real_extract
    _, playlist = self._extract_playlist('WL')
  File "/usr/lib/python3.7/site-packages/youtube_dl/extractor/youtube.py", line 2439, in _extract_playlist
    raise ExtractorError(message, expected=True)
youtube_dl.utils.ExtractorError: This playlist does not exist.

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
Hello, I´ve been using youtube-dl for some months now, through the use of a script I wrote. What it does is log in to youtube with my credentials and download the Watch Later playlist, to which I previously add the videos I want to see. In this way, I don't need to manually input the individual URL of all the videos I want to see. However, two weeks ago, the script stopped working. When I run the command on it's own, it exits with a HTTP Error 400: Bad Request saying it couldn't log in to my account, therefore it couldn't find the playlist either.
The problem seems similar to the one present in Bug Report #2975, but in that case it could log into the account but failed in detecting the videos, while in this case it fails to log in. That's why i opened a different Issue.
My guess is Youtube probably changed something about the way to login, which is causing this error.
Many thanks, I'm sorry i can't give more info, and good luck. Also, thanks for all the work needed to create and mantain this program, it's really helpful.

Hi,
I am experienceing HTTP Error 400 about ~3 days.
Restarted router, changed my DNS but no difference.
PS C:\WINDOWS\system32> F:\vid\youtube-dl.exe -U -v -u username -p pass -f "[height<=?800]" -o "F:\vid\%(upload_date)s.%(title)s.%(ext)s" https://www.youtube.com/playlist?list=WL
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-U', '-v', '-u', 'PRIVATE', '-p', 'PRIVATE', '-f', '[height<=?800]', '-o', 'F:\\vid\\%(upload_date)s.%(title)s.%(ext)s', 'https://www.youtube.com/playlist?list=WL']
[debug] Encodings: locale cp1254, fs mbcs, out cp857, pref cp1254
[debug] youtube-dl version 2019.04.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: none
[debug] Proxy map: {}
youtube-dl is up-to-date (2019.04.17)
[youtube:watchlater] Downloading login page
[youtube:watchlater] Looking up account info
[youtube:watchlater] Logging in
WARNING: Unable to log in: HTTP Error 400: Bad Request
[youtube:watchlater] WL: Downloading webpage
ERROR: This playlist does not exist.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp1tqz5pcu\build\youtube_dl\YoutubeDL.py", line 796, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp1tqz5pcu\build\youtube_dl\extractor\common.py", line 529, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp1tqz5pcu\build\youtube_dl\extractor\youtube.py", line 2927, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp1tqz5pcu\build\youtube_dl\extractor\youtube.py", line 2439, in _extract_playlist
youtube_dl.utils.ExtractorError: This playlist does not exist.

PS C:\WINDOWS\system32> F:\vid\youtube-dl.exe -U -v -u 'username' -p 'pass' -f "[height<=?800]" -o "F:\vid\%(upload_date)s.%(title)s.%(ext)s" :ytsubs --dateafter 20190418
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-U', '-v', '-u', 'PRIVATE', '-p', 'PRIVATE', '-f', '[height<=?800]', '-o', 'F:\\vid\\%(upload_date)s.%(title)s.%(ext)s', ':ytsubs', '--dateafter', '20190418']
[debug] Encodings: locale cp1254, fs mbcs, out cp857, pref cp1254
[debug] youtube-dl version 2019.04.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: none
[debug] Proxy map: {}
youtube-dl is up-to-date (2019.04.17)
[youtube:subscriptions] Downloading login page
[youtube:subscriptions] Looking up account info
[youtube:subscriptions] Logging in
WARNING: Unable to log in: HTTP Error 400: Bad Request
[youtube:subscriptions] Youtube Subscriptions: Downloading webpage
[download] Downloading playlist: Youtube Subscriptions
[youtube:subscriptions] playlist Youtube Subscriptions: Downloading 0 videos
[download] Finished downloading playlist: Youtube Subscriptions

@dstftw This is not a duplicate of Issue #2975 , they are different problems. Me, @Mikeltxo15 , @omeringen and @Quaraxkad are experiencing this issue, and it was not resolved in the 3 successive updates after the issue first appeared.

Duplicate of #11270.


"explain better" issues

[ ] Explain when to use public, private, this (#253)
[ ] Bootstrapping (#129)
[ ] Browser Events (#446)
[ ] Setting Array Types (#415)
[ ] Const and Let (#405)
[ ] Dependency Injection (#384)
[ ] Interfaces (#374)
[ ] @ Symbol (#361)
[ ] Angular Exports (#361)
[ ] Decorators (#320)
[ ] Template variables (#292)
[ ] NgModules (#126)

[ ] Todo

@tessaSAC Where/how would you have the public/private distinction made for issue #253 . I feel as if it is more a feature/function of TS, however you think confusion may arise from the DI section...

Ooh, please feel free to check them off as you see fit @MichaelSolati! I felt awkward to unassign myself lol but this task was a bit weird -- originally it was to turn a list of PRs into this checklist, so that was the part I finished hahaha.
As for when to use Public/Private, what do you think about putting it in the TypeScript module?
PS: Is the DI part a question or an observation? (i.e. if I said it I've forgotten where 😂)


Clarification of Link 'hash' key documentation

I'm been struggling and struggling with making hash links (anchor links) function properly with react-router.
Full example source here https://github.com/naemono/bootstrap-carousel-react
With a simple router config of this, history set to 'history/lib/createBrowserHistory'
render((
  <Router history={history}>
    <Route path="/" component={App}>
    </Route>
  </Router>
), document.getElementById('main'))

A div defined by this in src/views/Marketing.js:

And a link defined in navbar (src/views/NavBar.js) like so:

<Link to='/' hash='#marketing'>Marketing</Link>

It just doesn't work.  The featurette link right after it works fine as this:

Featurette

I don't know if I'm mis-reading the documentation, or it's just broken, but any clarification would greatly help.
I am aware that SO is the proper place for this type of question, and there have been a number of them, but they all mention changing the history from a hashhistory, which I've already done.
Thanks for any help you can provide, I'll be happy to give you a PR for the docs once I can understand the proper way to get this functional.

Doesn't work in that it doesn't scroll to the anchor? That's not properly supported right now: https://github.com/rackt/react-router/pull/2233

Thanks @taion.  I wasn't aware of that.  The docs don't mention that it's not supported right now.
Do you think some clarification here is in order:
https://github.com/rackt/react-router/blob/master/docs/API.md#link
If so, I can get you a PR to make that more clear.
Thanks.

Yes, I'd appreciate that - just add a note that React Router currently doesn't do any scroll position management (for now it'd be in scroll-behavior, but I don't handle scrolling to anchors there either).


fn: non-blocking resource tracker and notification

For some types of errors, we might want to notify
the actual caller if the error is directly 1-1 tied
to that request. If hotLauncher is triggered with
signaller, then here we send a back communication
error notification channel. This is passed to
checkLaunch to send back synchronous responses
to the caller that initiated this hot container
launch.
This is useful if we want to run the agent in
quick fail mode, where instead of waiting for
CPU/Mem to become available, we prefer to fail
quick in order not to hold up the caller.
To support this, non-blocking resource tracker
option/functions are now available.
The solution is not perfect as signaller channels
may be lost and it might take additional signal attempts
for that call (each costs 200msec) to get this response.

clarification of behavior shown: the only case we want to immediately bail and not block is on resource tokens, right? not if create container gets hung up, docker pull, etc., right?

yes, this is only for cpu & mem allocation, AKA do not wait on cpu & mem.

thinking out loud: if we set the slot wait time to something pretty small, like 1ms, we would get most of the benefits here without a lot of plumbing, and without 1ms (could provide some back pressure) -- in addition it would cover cases like rogue scheduling onto a new server would quickly fail and hopefully get retried on a server with the image, with the bonus that the slot launcher on the new guy might launch a container for the next go round. i guess the hot launcher is kind of unpredictable since it's polling and will most likely (199/200 (ms) chance) sample for any given call when it's not queued (since it times out after 1ms).
part of me thinks some kind of 2 phase 'just launch a hot container' [w/o a call] & 'run this call or timeout immediately' is in line with what we want, maybe this is the first piece of that, but it seems like we really want to either get a slot or bail which is higher up (little plumbing required). not sure, really. of course we don't have a 'just launch a hot container' button atm, but it wouldn't be so hard to add, and with our ejection it can manage scaling down itself. then the router can just run around and (with some idea of resource saturation itself, which will be required) tell 3 guys to launch a container and then try to round robin through them with a call until one can run it. thinking out loud (and prob in the wrong place)

I think two approaches are complementary. Shrinking slot wait is a good way to pre-warm a fleet as long as the caller (LB) has smarts to coordinate it, but slot wait time includes a set of operations which any could trigger the timeout. On the other hand, cpu & mem isolated quick fail allows the caller to rule out capacity issues only.
I think when this cpu & mem quick fail is enabled, 200 msec should be set to much faster pace. And probably not much performance impact due to reduced queuing.

Wow, you can send golang channels through a channel... I learn something new every day. :)
This looks like it will help a lot, but I'm still a bit confused about all the moving parts and how they play with the container creation logic. As far as I understand the producer is monitoring the stats (queued, running etc) and makes a decision to start a new container based on those; that decision seems to take into account containers that are waiting for resources to be started.
startWaiters := cur.containerStates[ContainerStateWait]
...
// we expect resource waiters to eventually transition
// into starters.
effectiveStarters := starters + startWaiters

(in isNewContainerNeeded())
Is there a possibility that while a container is waiting on the resource token channel it still figures in this calculation (because until it receives the capacity error it still looks in a ContainerStateWait), so another call could think that it can be queued / accepted because "there's a container which will eventually start"? Is such a race between calls possible?

@hhexo Yes, so, at the time of this decision, there's cases where momentarily have excess idle containers, waiters, etc. which might cause agent to conclude that no new container is needed. But this should be remedied by polling from clients. For this operating mode, we should raise the polling to something faster eg. 20 msecs. In other words, isNewContainerNeeded() is allowed to make a mistake, but eventually correct it.

related #853

Added some comments (and a small bug fix in there...)

gonna merge this since your github has been compromised :)
if i regret this, i only have myself to blame!


Fix Lint Warnings

There are warnings after running npm run lint-fix locally. I also notice these warning in other open PRs in Github. This PR is a small fix for them.

This PR is currently draft since I am not sure which branch it's better be merged into.

@lydiazcheng there also seems to be another change with the idToken check. Is that intended? In regards to the linting. I saw my PR is also no passing the listing. So I will make a commit to fix my PR.

@lydiazcheng there also seems to be another change with the idToken check. Is that intended? In regards to the linting. I saw my PR is also no passing the listing. So I will make a commit to fix my PR.

Yes. Because lint warns about the savedIdTokenInfo! usage: warning  Forbidden non-null assertion.
Gotcha. Please let me know if you did so, I will close this PR.


Apply #201 suggested fixes

I merged #201 before @fbourigault could review it, so I've made another PR with the changes he requested. Sorry!

Thank you!


Efficency Inquiry

Dear lettuce friends,
I have been using your code for a few weeks. I have been very successful with the 2D single phase model.
Now, I would like to extend the code to perform flow sims in 3D. In my first attempt I notice that the iteration speed did not scale very well, I wanted to see if you guys have some ideas on how to implement the model better.
o. In the example below, I have a lot of solid. Is it possible to mask the operations there to speed-up the iterations? Or can you think about something else? The current problem 256^3 takes about 1 hr on a A100 (for reference, a parallel code in ~4 cores would finish in 1 minute)
o. I'm also getting weird pressure values.
-Javier

Hi Javier,
At first sight, I don't see anything inefficient in your code. That said, the current lettuce version is not optimized for speed (~100 MLUPS on a V100 in 3D). This is going to change soon with our upcoming native CUDA kernels (#78) which give at least one order of magnitude speedup.
Unfortunately there isn't currently a good way to mask operations -- however, I doubt that implementing a masked stream + collide on the Python API level would make the code faster on GPUs.
Weird pressure values might possibly be related to #103 (stream > collide > boundary vs. collide > stream > boundary). But it might just be because the flow hasn't yet reached a steady state.
Just out of curiosity: in terms of speed, what code are you comparing to? Is it an LBM code or a classical solver for steady flows?
Cheers,
Andreas


Support Ranch 1.6 map-style transport opts

This updates grpc to use Ranch 1.6's map-style transport options. Previously a keyword list was used. When using a keyword list and both Ranch options and socket options are specified, Ranch logs deprecation warnings.
This change requires a newer version of Cowboy with a fix for ninenines/cowboy#1324.

Seems to be a transient test failure on Elixir 1.4.5/OTP 19.3. The tests passed for me in another Travis run: https://travis-ci.com/JayH5/grpc-elixir/builds/86719993


Question about dataset directory

Hello. When I am in the training phase, cars196 and sop dataset.
I tried to make a hierarchy of them:
dataset/
|---cars196
|      ㄴ---images
|                  ㄴ--- 000001.jpg
|                  ㄴ--- 000002.jpg
|                  ㄴ--- ...
|---online_products
|      ㄴ---images
|                  ㄴ--- bicycle_final
|                               ㄴ<PHONE_NUMBER>71_0.JPG
|                  ㄴ--- cabinet_final
|                  ㄴ--- ...
|      ㄴ---Info_Files

However, cars196 show NotADirectoryError: [Errno 20] Not a directory: '~/dataset/cars196/images/000001.jpg'
and sop shows FileNotFoundError: [Errno 2] No such file or directory: '~/dataset/online_products/images/cabinet_final/331185934232_10.JPG' even though I added this image again.
And is there any code for visualizing features through t-SNE such as Figure 5 in your paper?

@jjoon0928  Hi, Thanks for being interested in our work. Have you solved this? May I ask what the whole error message was?

@jjoon0928 Hi, Thanks for being interested in our work. Have you solved this? May I ask what the whole error message was?

@Noahsark Hello, there are errors what I have seen.
Cars196 dataset
(venv) (base) ~@ubuntu:/~/DADA$ python main.py --source_path ../dataset --save_path train_savepoint --save_name test_cars --config configs/cars.yaml
Traceback (most recent call last):
  File "~/DADA/main.py", line 82, in <module>
    datasets = dataset_library.select(opt.dataset, opt, opt.source_path)
  File "~/DADA/datasets/__init__.py", line 10, in select
    return cars196.give_dataloaders(opt, data_path)
  File "~/DADA/datasets/cars196.py", line 31, in give_dataloaders
    image_list = {
  File "~/DADA/datasets/cars196.py", line 34, in <dictcomp>
    for x in os.listdir(image_sourcepath + '/' + key)
NotADirectoryError: [Errno 20] Not a directory: '../dataset/cars196/images/000001.jpg'

SOP
in the case SOP, the training is working in 0 epoch, but errors have occurred in testing metric phase.
Computing Testing Metrics...
[Compute Test]: 13.65% [46/337, 00:10/01:05]
Traceback (most recent call last):
File "~/DADA/main.py", line 408, in
eval.evaluate(opt.dataset,
File "~/DADA/evaluation/init.py", line 23, in evaluate
computed_metrics, extra_infos = metric_computer.compute_standard(
File "~/DADA/metrics/init.py", line 88, in compute_standard
for idx, inp in enumerate(final_iter):
File "~/lib/python3.9/site-packages/tqdm/std.py", line 1181, in iter
for obj in iterable:
File "~/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 633, in next
data = self._next_data()
File "~/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1325, in _next_data
return self._process_data(data)
File "~/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1371, in _process_data
data.reraise()
File "~/lib/python3.9/site-packages/torch/_utils.py", line 644, in reraise
raise exception
FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 2.
Original Traceback (most recent call last):
File "~/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop
data = fetcher.fetch(index)
File "~/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "~/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 51, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "~/DADA/datasets/basic_dataset.py", line 124, in getitem
input_image = pil_ensure_3dim(Image.open(image_path))
File "~/lib/python3.9/site-packages/PIL/Image.py", line 3227, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '../dataset/online_products/images/cabinet_final/331185934232_10.JPG'
It seems that some images are missing.

@jjoon0928
Hi,
For Cars196, did you download the data from the link I provided? There should be category folders under cars196/images (e.g. "cars196/images/Chevrolet\ Avalanche\ Crew\ Cab\ 2012/00044.jpg" should be a valid path). I will update the instruction to avoid the misleading.
For SOP, Sorry that I was not able to reproduce your error. Things work fine on my side.  Could you please check your permission for the data? Or check the version of all required packages.
Best,

@Noahsark
Hi.
I solved dataset issues what I mentioned above. Your advice was right about cars.
For SOP, there was missing in some images due to dragging from finder to my server. I unzip it in my server and that was not any challenging. Thank you!
However, I have seen performance degradation when I use 'oproxy'
Recall@k values horribly decreased.
In "parameter.py", I change codes like:
73 parser.add_argument('--loss', default='oproxy', type=str, # default: dadaproxy, can change oproxy(PA, PNCA)
74                        help='Trainin objective to use. See folder <criteria> for available methods.')

...

141    parser.add_argument('--loss_oproxy_mode', default='nca', type=str, # nca or anchor
142                        help='Proxy-method: anchor = ProxyAnchor, nca = ProxyNCA.')

...

163    parser.add_argument('--samples_per_class', default=2, type=int,
164                        help='Number of samples in one class drawn before choosing the next class. Set to >1 for losses other than ProxyNCA.')

Are there any codes to change for ablation study? I just want to evaluate without adversarial things.\
Thank you.

@jjoon0928
If you change the settings, you should search for optimal hyperparameters yourself. The "oproxy" is the original PA loss. You can refer to the hyperparameters reported in the PA paper. Or you can search better parameters by searching the lr, decay, margin values and other parameters,

@Noahsark
I adjusted hyperparameters based on PA method so the performance has been recovered. Thank you!
However, each datasets has different optimized hyperparameters. So, if I want to train each benchmarks. Should I change hyperparameters based on PA methods?
Such as  DADA + PA(use optimized hyperparameters from PA), DADA + PNCA(use optimized hyperparameters from PA),  PA(use optimized hyperparameters from PA) and PNCA(use optimized hyperparameters from PA).
Thank you!


adding auth status property to circuit

ARM API Information (Control Plane)
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo.  If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.
Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
By default, Azure SDKs of all languages (.NET/Python/Java/JavaScript for both management-plane SDK and data-plane SDK, Go for management-plane SDK only ) MUST be refreshed with/after swagger of new version is published. If you prefer NOT to refresh any specific SDK language upon swagger updates in the current PR, please leave details with justification here.

Contribution checklist (MS Employees Only):

[ ] I commit to follow the Breaking Change Policy of "no breaking changes"
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[ ] Check this box if any of the following apply to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review.  Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki.

[ ] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.
NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)
Please follow the link to find more details on PR review process.

I expect the PRs for NRP would first go to private repo, is that correct?  @MikhailTryakhov

I expect the PRs for NRP would first go to private repo, is that correct? @MikhailTryakhov

Confirmed it is correct to put this in the public repo.

@utbarn-ms  please merge your PR to the right branch we'll release soon
@lirenhe that's not correct branch, that's some branch created by some guy @honghr  which has nothing common with Azure Networking.
Can we please work a bit more careful with naming of the branches? As I remember this option to name a branch in the best way for us is blocked from portal side and that's why we have such confusion which might be catastrofic
https://github.com/Azure/azure-rest-api-specs/compare/main...release-network-Microsoft.Network-2022-11-01

Correct branch: Swagger branch: Azure/azure-rest-api-specs at release-Microsoft.Network-2022-11-01 (github.com)


[frontend server] Expression evaluation failing in flutter libraries

related issue: #41603 https://github.com/flutter/flutter/issues/54520

fixed in:
https://github.com/flutter/flutter/pull/54916
https://github.com/dart-lang/webdev/pull/954
https://dart-review.googlesource.com/c/sdk/+/143660

The fixes mentioned previously address the visibility of the error to the user. Reopening to address the underlying issue.


No module '_ext'

I have the issue  when trying to run testcpu.py or testcuda.py
this is the error message
\FairMOT\DCNv2> python testcpu.py
Traceback (most recent call last):
File "testcpu.py", line 11, in
from dcn_v2 import dcn_v2_conv, DCNv2, DCN
File "E:\Dissertation\FairMOT\DCNv2\dcn_v2.py", line 13, in
import _ext as _backend
ModuleNotFoundError: No module named '_ext'
My OS is windows

The following worked for me:
Copied the _ext.cpython-38-x86_64-linux-gnu.so file and named it to _ext.so
Changed the import line as: import directory_name._ext as _backend

Where did you find _ext.cpython-38-x86_64-linux-gnu.so  file ?

The following worked for me:
Copied the _ext.cpython-38-x86_64-linux-gnu.so file and named it to _ext.so
To import DCNv2 module from dcn_v2.py in a file outside the directory, I needed to change the import line in dcn_v2.py to: import directory_name._ext as _backend

Where did you find _ext.cpython-38-x86_64-linux-gnu.so file?

Maybe you can try this way:
https://github.com/xingyizhou/CenterNet/issues/454#issuecomment-873534568

under DCNv2's root path, there will be a file called _ext.cpython-38-x86_64-linux-gnu.so simply rename it to _ext.so will work.
Notice that you may need to change the line 13 from import ._ext as _backend to import DCNv2._ext as _backend.


Need proxy support

This is a great plugin, but it's difficult to use in an enterprise environment since only internal urls can be reached without going through a proxy. Ideally, the underlying requests proxyDict can be set from the UI: http, https, ftp. Then the proxyDict can simply be passed if set for all underlying requests, allowing external urls to be reached.

As this is also using requests, you could HTTP_PROXY, HTTPS_PROXY, NO_PROXY environment variables.
We set those via DSS_DATA_DIR/bin/env-site.sh. This will not only work for this plugin, but for all plugins/code using requests.
And if your proxy does SSL inspection, use REQUESTS_CA_BUNDLE to point to your system CA store (which of course should have your own CA in it).


Add lombok.builder.className configuration property

Allows to configure the default builder class name that @Builder will use when the builderClassName option is not passed explicitly.

@tagae In my PR https://github.com/rzwitserloot/lombok/pull/2136, I introduced IdentifierName (https://github.com/rzwitserloot/lombok/blob/2a98c4d1fd80ff0b3181da4fe8d5f3f32f168644/src/core/lombok/core/configuration/IdentifierName.java). You might want to update yours to use it.

Good idea but I changed the implementation considerably; yours left a bunch of now useless code, and, crucially, made it impossible to use the type name in the buildername. I noticed your update to the gradle conf file; I also pushed that through.
The changes for supporting the config property are commit c1039553b088dc45d272b942d930414d3224b06c

Nice! Thanks a lot for taking in the idea. No problem that my code didn't get merged: I just cared about having the feature, which is the case now :-)


Update helpers.html

typo at makeEndpoint
update signle to single

Thank you, but sorry, gh-page is not where you fix issues. it's on /website on .md files.

Sorry, I tried to find it and didn't know how I ended up on gh-page


Upgrade to Camel 2.20.0

When its released later this month.

Okay 2.20.0 are on the way - the vote is likely going to pass soon


Embed thumbnail in post-processed file, instead of refusing due to original filetype

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.05.01. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2018.05.01

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[x] Feature request (request for a new functionality)
[ ] Question
[ ] Other

Description of your issue, suggested solution and other information
When downloading a video for audio extraction with cover/thumbnail embedding, youtube-dl fails to embed a cover image when the downloaded file is not mp3, m4a, or mp4, even if the extracted audio file would be.
Sample command and output:
youtube-dl -o "./newglitch/%(autonumber)s - %(title)s.%(ext)s" -f bestaudio/best --audio-format mp3 --audio-quality 0 --add-metadata --autonumber-start 181 --write-thumbnail --sleep-interval 1 --embed-thumbnail --playlist-start 1 --playlist-end 10 --playlist-reverse "https://www.youtube.com/playlist?list=PL9793A30C55CED7F6"
[youtube:playlist] PL9793A30C55CED7F6: Downloading webpage
[download] Downloading playlist: Video Game Remixes ♫
[youtube:playlist] playlist Video Game Remixes ♫: Downloading 10 videos
[download] Downloading video 1 of 10
[youtube] _hTU9u-DK1g: Downloading webpage
[youtube] _hTU9u-DK1g: Downloading video info webpage
[youtube] _hTU9u-DK1g: Extracting video information
[youtube] _hTU9u-DK1g: Downloading thumbnail ...
[youtube] _hTU9u-DK1g: Writing thumbnail to: ./newglitch/00181 - Red and Blue Lavender Town Remix v.II.jpg
[download] Sleeping 1 seconds...
[download] Destination: ./newglitch/00181 - Red and Blue Lavender Town Remix v.II.webm
[download] 100% of 4.18MiB in 00:01
[ffmpeg] Adding metadata to './newglitch/00181 - Red and Blue Lavender Town Remix v.II.webm'
ERROR: Only mp3 and m4a/mp4 are supported for thumbnail embedding for now.

In this case, the format selector bestaudio/best chose webm, and youtube-dl refuses to embed a thumbnail in webm, where the expected/useful action would be to extract the audio into the requested mp3 format, then embed the thumbnail in that.

Cancel this. I had a typo in my command; I forgot to include -x. My sincerest apologies for wasting your time.


Add "translator" badge

The frogs in my area are master glyph hackers and want their badges!

I can add everything to the badges script, @therealklanni did you have a location you got the badge images in the past from or did you just scale them down yourself?

I think I had to scale some, but most were found on google image search (you can specify an exact size) I think. It was a while ago, hard to recall :)

OK I'll see what I can find.
On Feb 3, 2015 8:30 AM, "Kevin Lanni"<EMAIL_ADDRESS>wrote:

I think I had to scale some, but most were found on google image search
(you can specify an exact size) I think. It was a while ago, hard to recall
:)
—
Reply to this email directly or view it on GitHub
https://github.com/hubot-scripts/hubot-ingress/issues/23#issuecomment-72659216
.

I got them all from here http://niantic.schlarp.com/investigation:apps:ingress:badges

Oh, yeah that must be where I got them as well.

Let me know if I missed something or typo'ed a badge name. I wanted to add the Shonin but they only had a mockup didn't have a confirmed badge image.

Shouldn't this be closed now?


TSServer disable telemetry

tsserver.js is running with --enableTelemetry flag although global VSCode telemetry.telemetryLevel set to "off"

This flag does not mean what you think it does, it merely makes the server send events back to the vs code extension host


Fixed possible referencing of an uninitialized value

This pull request fixes an access to a possible uninitialized result.length variable, which occurs when
the code flow takes branch at line 196.
When done in MS Visual Studio 2015 or newer, it throws an assertion window.

After a quick glance, this should be merged. Would you be willing to sign the CLA?

CLA signed.

@googlebot I signed it!


UTF-8 support

Does it come with UTF-8 characters? I´m forced to change the characters manually and hope there´s a better walkaround . Thx for the good work.

I'm not sure if this is a bug report or a question - as far as I know, geojson.io supports the same unicode range as JavaScript. If this is a question: yes, we haven't seen any UTF-8 related bugs. If it's a bug report: please give specifics about what exact data breaks geojson.io (ideally with a link to a complete downloadable example) and what about geojson.io breaks with that data.

It was meant as a bug. I´ usually drag and drop my csv-file and that results in non-supported UTF-8 characters in the JSON-window.  However it works well when opening from the menu.

As I mentioned in the previous issue: please provide an example of specific input that triggers this bug, so as to help me trigger the bug in order to fix or diagnose the issue.

Input-file attached
map.zip

Okay - according to the file utility, that isn't a UTF-8, but ISO-8859, which is a separate and incompatible standard. Loading the file into Numbers and exporting as UTF-8 produces this file, which loads perfectly into geojson.io.

Should have noticed that it was ISO-8859 and not UTF-8. Thx for clearing that out.


writeFile won't force a download (AngularJS, Chrome 73)

Trying to force a download from an AngularJS App (1.5.3) with writeFile inside a component when a button is clicked, just following the example in the demo page:
https://github.com/SheetJS/js-xlsx/tree/master/demos/angular
nothing happens, neither errors are printed. This is happening on Desktop Chrome v73.
On the contrary, if I use "write" to get the base64 encoded string and send it via email with a plugin, it'll work just fine from the compiled App on the phone.

@aroncal does the console show anything?  If not, can you test http://sheetjs.com/demos/table.html ?

The console shows nothing.
The demo you linked works fine, but there is a difference, I'm doing it with json_to_sheet, like this:
...
var ws = XLSX.utils.json_to_sheet(records);
var wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, sheetName);
XLSX.writeFile(wb, 'test.xlsx');

recordsis a flat array of Objects, all with the same keys, and the values vary from strings to integers and dates.
If I do it with 'write' and use the obtained base64 string to send en attachment in an email it works fine.
I see in the demo page that there some imports like 'FileSaver' and 'Blob', but those are only for IE, right? I'm using latest stable Chrome...

I met the same issue. Nothing is shown in the console.

These are probably browser /device specific issues.  Please let us know what browser versions and devices you are using, then we can try to reproduce


Error Code

I get this error when running:
`Please Wait, If you get stuck on this for too long please report it.
Traceback (most recent call last):
File "D:\Coding\schoolcheats\flood.py", line 129, in
jsondata = jsondata.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte`

can you fix it yet

I have not, turns out the entire hack broke. Since the person who volunteered to keep the project functioning has not, I will be taking control over development again. I plan to make it even better than before by the end of this weekend. Please stay patient for a little longer.
Sorry for not getting back to you guys sooner.

Alright, what language is your blooket set?
Are there any special characters?
What os are you on?
That should be all I need to know for now.

Alright, you can try again now and see if it works.


Trusted Publishers vs. Trusted Root Certificate Authorities

[Enter feedback here]
We belive that this is sentence is not correct :
The machine configuration agent expects the certificate public key to be present in "Trusted Root Certificate Authorities"
It should be instead
The machine configuration agent expects the certificate public key to be present in “Trusted Publishers” container.
please get this corrected. Thank you Michael Koeppl<EMAIL_ADDRESS>
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: bbb0d855-c8c6-5085-a471-853f69e6bf12
Version Independent ID: c762ce52-dc68-b5a8-fe31-2fb0001fbcf3
Content: How to sign machine configuration packages
Content Source: articles/governance/machine-configuration/how-to-sign-package.md
Service: machine-configuration
GitHub Login: @michaeltlombardi
Microsoft Alias: mlombardi

@MKoeppl-Microsoft
Thanks for your feedback! We will investigate and update as appropriate.


Completion support

It would be very easy to use if the namespace and Secret names could be stored.
Are there any plans to implement this?

@meithon I am happy to review your PR to implement the feature!


Error when attempting to view manually-added videos

Hello,
I am currently running streama v0.2.0. I manually added a show that is not on The Movie DB and then uploaded an episode to it. This worked - I appear to have been able to successfully upload the video. However, when I go to view it, I get this error:
2016-04-30 19:24:08,938 [http-bio-80-exec-11] ERROR errors.GrailsExceptionResolver  - FileNotFoundException occurred when processing request: [GET] /theMovieDb/countNewEpisodesForSeason
https://api.themoviedb.org/3/tv/null/season/2007?api_key=bf3c0b3232cbfa73da393379c15d2688. Stacktrace follows:
java.io.FileNotFoundException: https://api.themoviedb.org/3/tv/null/season/2007?api_key=bf3c0b3232cbfa73da393379c15d2688
        at streama.TheMovieDbController.listNewEpisodesForSeason(TheMovieDbController.groovy:63)
        at streama.TheMovieDbController.countNewEpisodesForSeason(TheMovieDbController.groovy:81)
        at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
        at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
        at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
        at grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49)
        at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

Is this a bug? My understanding is that since this is a manually-added video, no query to The Movie DB should be necessary (since it won't be found there). Please let me know what I can do to help test and fix this, thanks!!

Any updates on this?

Sorry, hadn't time to investigate it
On Jul 4, 2016 22:23, "Andrew Martin"<EMAIL_ADDRESS>wrote:

Any updates on this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dularion/streama/issues/169#issuecomment-230337767,
or mute the thread
https://github.com/notifications/unsubscribe/ACdXhHVaOAkSYHgT3LFhjorHRqmj5z7lks5qSU-ygaJpZM4IThKW
.

No problem, thanks for the quick reply!
On Jul 4, 2016 1:39 PM, "Giorgi Kikolashvili"<EMAIL_ADDRESS>wrote:

Sorry, hadn't time to investigate it
On Jul 4, 2016 22:23, "Andrew Martin"<EMAIL_ADDRESS>wrote:

Any updates on this?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dularion/streama/issues/169#issuecomment-230337767,
or mute the thread
<
https://github.com/notifications/unsubscribe/ACdXhHVaOAkSYHgT3LFhjorHRqmj5z7lks5qSU-ygaJpZM4IThKW
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dularion/streama/issues/169#issuecomment-230340050,
or mute the thread
https://github.com/notifications/unsubscribe/ADuYu1Uk6dzdMfucbx5SOEv5V2fNB2Rhks5qSVNxgaJpZM4IThKW
.

I thought it was another issue 😆
Will take a look anyways

Oh yeah, you're absolutely right, no query to themoviedb should be made. In all honesty, I never intended for that feature to be used when no moviedb api key is added at all. I'll try to take a look at it soon, or have you done anything here already @gikko?

Most of what I've added to the library is on TheMovieDB, but I have a few
things that aren't (which I want to manually add)
On Jul 4, 2016 2:17 PM, "Antonia Hulha"<EMAIL_ADDRESS>wrote:

Oh yeah, you're absolutely right, no query to themoviedb should be made.
In all honesty, I never intended for that feature to be used when no
moviedb api key is added at all. I'll try to take a look at it soon, or
have you done anything here already @gikko?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dularion/streama/issues/169#issuecomment-230344030,
or mute the thread
https://github.com/notifications/unsubscribe/ADuYu7VbGWzjraScJv-29zKKUNhaok9Wks5qSVxggaJpZM4IThKW
.

fixed in https://github.com/dularion/streama/releases/tag/v0.3.2

Confirmed, this is now fixed. Thanks!


revert: revert add total-buffer-bytes config parameter to subscriptions

Reverts PR #21752
This reverts commit 85abb3af36e153d87b99589bf4db1a63c81cbf9c.

[x] CHANGELOG.md updated with a link to the PR (not the Issue)
[x] Well-formatted commit messages
[x] Rebased/mergeable
[x] Tests pass

Re-opens https://github.com/influxdata/influxdb/issues/21733 - this is failing master CI jobs, need to figure out why.


Update esp32 network driver to use esp_netif

Updates the network interface from the depreciated tcpip_adapter to the esp_netif component.
closes #633
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

This should be merged after #626, the changes are based on top of the changes made in that PR.

Let's also add to the CHANGELOG that esp-idf v5 is supported.


Website bug fixes for January release

@felixrieseberg Please review and accept the PR. Thanks.

Thanks!


Devise error messages work with simple form?

Hi, I like to display my error messages inline with the textboxes.
It was working fine for displaying full error messages using <%= devise_error_messages! %>. But I like to make it inline for each field i have.
I tried <%= f.error :name %> but it doesn't work. Do I need to do additional things to make it display inline?
Thanks!

Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.


Codemirror diagnostics are not selectable

Codemirror diagnostics are not selectable, can't copy paste, maybe we should even have a copy-to-clipboard icon on them
https://github.com/user-attachments/assets/00a0e5b6-7023-4ba7-889d-a25fbce81599
Here's some sample code that will give you an error to reproduce
startSketchOn('XY')
  |> startProfileAt([10, 0], %)
  |> arc({
       angle_start: 180,
       angle_end: 180,
       radius: 1.5
     }, %)
  |> close(%)
  |> patternCircular2d({
       arcDegrees: 360,
       center: [0, 0],
       repetitions: 5,
       rotateDuplicates: true
     }, %)

It’s a div w text so it should be… z-index issue?

My money is it’s a css thing

We can custom style these little shits

Was interested in testing out the dev env and tackling a good starter issue so I looked into this! Was able to make the tooltips selectable with the following code in hover.ts:
import { Extension } from '@codemirror/state'
import {
  hoverTooltip,
  tooltips,
  ViewPlugin,
  EditorView,
} from '@codemirror/view'

import { LanguageServerPlugin } from './lsp'
import { offsetToPos } from './util'

export default function lspHoverExt(
  plugin: ViewPlugin<LanguageServerPlugin>
): Extension {
  return [
    hoverTooltip((view, pos) => {
      const value = view.plugin(plugin)
      return (
        value?.requestHoverTooltip(view, offsetToPos(view.state.doc, pos)) ??
        null
      )
    }),
    tooltips({
      position: 'absolute',
      parent: document.body,
    }),
    EditorView.baseTheme({
      '.cm-tooltip': {
        fontSize: '12px',
        maxWidth: '400px',
      },
    }),
  ]
}

Just set parent: document.body and added some custom styling, which could be tweaked or moved somewhere common. Also tried figuring out how to add a copy to clipboard button but wasn't having a lot of luck. Definitely seems like there's a way to do it though. Happy to open a proper PR if I can get added as a contributor, otherwise just figured this could add to the discussion. Cool stuff y'all!

wow thanks!

You can open a PR from a fork! thanks so much!

Cool! Opened!


Updated fr (French) translation

Big french review Commit made via Stringlate

Thanks!

You're welcome, go on the good job!


feat: Add ability to disable automatic bookkeeping

Added a new config variable, autoUpdateEnabled, for the config object of
the ChangeDetector constructor. I defaulted it to true, to make the
class behave the same as was prior to the update by default.
When disabled, the onus is now on the consumer of the API to invoke
updateRecords themselves with the records that they want to update the
bookkeeping on. This is useful as it allows for repeatability upon
failures.
I updated the README with details of the new option.
I also bumped the semantic version in package.json from 1.1.0 to 1.2.0
as I believe this is a new feature, but doesn't break existing API
usage.
This commit will resolve #2

Great change! Sorry I just saw this.


Add confirmed notification for market creator fees

fixed "withdrawing eth"/ claiming market creator return notifications being stuck in pending
changed market-outstanding-returns to only show in /my-markets (the claiming for positions is a different component)

Coverage increased (+0.02%) to 56.257% when pulling b23c08bd6fab0d09625246b1353673e830afaaf3 on add-confirmed-notification-for-market-creator-fees into eaa8f14f55d0c8b6257ac98a641a837491206e70 on master.


Add typescript defintion file

Add a definition file for use in Typescript projects. Makes no changes to the code or normal JS usage.

Cool - thanks @corbinu

@davidmarkclements Any chance of a point release for this?

@corbinu sorry thought I had 1.0.10 released on npm


Timers Delays and Interrupts

I don’t like using the delay() function if I can avoid it.
Particularly not in something networked, that might have its’ own timeout behaviours.
So, I’m going to look at anywhere that is used and seek to replace the actions (usually switching an LED on or off, or changing colours) to interrupt-driven so that the delay() does not actually delay the main loop or any other methods it might6 call.

Keep in mind I think the main loop needs a delay on sockets etc - otherwise it just hammers webservices with requests at a faster rate than the chip can potentially send them.
So you may need a semiphore or something - or  you could end up stacking the requests in your interupt. Regardless I'd be interested to see how that investigation on interupts plays out. Could be a powerful addition to the workflow.

Sure.
I undertand that timing for networtking is important. I don't want to add to the timing issues with trvialities like flashing LEDs etc.
I'd rather one or other, both even, if appropriate, of those functions is pushed to interrupt-driven as opposed to polling and potentially blocking things wiht a delay() call.


Eigen forwardsolve and backsolve don't work correctly

There appears to be an error in Eigen implementations of forwardsolve() and backsolve(), such that they don't work when either (1) both inputs and the output are Eigen maps, or (2) there are non-zero strides.
Need to look into this in the Eigen library, and either work-around (creating intermediates), or move to using different functions, such as BLAS calls.

Updating the status of this:  This arose due to a bug in Eigen.  The Eigen folks have fixed it.  That means we should probably update our Eigen version.

or might be a good time to see if Dirk's suggest of LinkingTo RcppEigen
would work.
On Fri, May 6, 2016 at 2:37 PM, perrydv<EMAIL_ADDRESS>wrote:

Updating the status of this: This arose due to a bug in Eigen. The Eigen
folks have fixed it. That means we should probably update our Eigen version.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/nimble-dev/nimble/issues/130#issuecomment-217564799

We worked around this a while ago.
In the meantime Eigen has recently made a new release so we can check if it includes the bug fix on their side.


Linebreak doesn't work

With this translation object
translation: {
  'LIKE_COUNT': '{{count}} person\nlikes this',
  'LIKE_COUNT_plural': '{{count}} people\nlike this',
  'LIKE_COUNT_interval': "(0){No one\nlikes this};"
}

And using
t('LIKE_COUNT_interval', {postProcess: 'interval', count: 0})}
It falls back to the plural rule. Also I had to guess what was failing by trial and error, it would be nice to have some log by i18next-intervalPlural-postProcessor when it can't parse the translation.

The awesomeness of OpenSource -> feel free to provide a PR

fix by @adrai published in<EMAIL_ADDRESS>


TO API uses non-RFC3339 date/time strings

I'm submitting a ...

other

Traffic Control components affected ...

Traffic Ops
unknown

Current behavior:
Traffic Ops API responses frequently return our custom format for date/times: YYYY-MM-DD hh:mm:ss-ZZ ("2006-01-02 15:04:05-07" is the actual Go format string).
Expected behavior:
The Traffic Ops API (in the latest API version, where the behavior is breakable) should respond with RFC3339-format date strings.
Minimal reproduction of the problem with instructions:
Make most any TO API request.

All APIs that were affected by implementing RFC3339 have been updated.

found another


Patch to fix TF1 shape comparison in add function

eb5c5ae broke Dense layers in TF1, since .shape returns a list of Dimensions which are unhashable types. Adding .as_list() enables this check in both TF1 and TF2.
# Repro: confirmed this works in TF1 and TF2.
{tf.constant([1, 2]).shape.as_list()[0],}

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 59.78%. Comparing base (aed5b08) to head (911f5fa).

:exclamation:  There is a different number of reports uploaded between BASE (aed5b08) and HEAD (911f5fa). Click for more details.
HEAD has 6 uploads less than BASE

Flag
BASE (aed5b08)
HEAD (911f5fa)

keras
4
1

keras-torch
1
0

keras-tensorflow
1
0

keras-jax
1
0

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #20413       +/-   ##
===========================================
- Coverage   81.97%   59.78%   -22.20%
===========================================
  Files         514      514
  Lines       47080    47080
  Branches     7398     7398
===========================================
- Hits        38596    28147    -10449
- Misses       6699    17191    +10492
+ Partials     1785     1742       -43

Flag
Coverage Δ

keras
59.78% <ø> (-22.06%)
:arrow_down:

keras-jax
?

keras-numpy
59.78% <ø> (-0.01%)
:arrow_down:

keras-tensorflow
?

keras-torch
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Connection error when using the ScriptCreateDialog

Godot version:
318c693
Issue description:
When creating/loading scripts with the ScriptCreateDialog, this error will appear:
Attempt to disconnect signal 'popup_hide' while in emission callback. Use CONNECT_DEFERRED (to be able to safely disconnect) or CONNECT_ONESHOT (for automatic disconnection) as connection flags.

Which is likely caused by it emitting the script_created signal while closing via either _create_new() or _load_exist():
https://github.com/godotengine/godot/blob/318c69351624f7794c51b5385d252af397c0404a/editor/script_create_dialog.cpp#L269-L279

Duplicate of #34471

Oh, didn't catch that one.


Speedup handling of small areas in custom models

The current implementation defaults to costly Polygon intersection checks which requires that the tower nodes of each examined edge are loaded to create a BBox:
https://github.com/graphhopper/graphhopper/blob/0522c495ccad5f22fe19c6e858a40a7bd6f74eae/core/src/main/java/com/graphhopper/routing/weighting/custom/CustomWeightingHelper.java#L60-L65
The old BlockArea implementation preloads all edge ids for small areas which allows for faster id based filtering of non-virtual edges:
https://github.com/graphhopper/graphhopper/blob/e806a5c55750555c1c8031752b6ceae601a33eb3/core/src/main/java/com/graphhopper/storage/GraphEdgeIdFinder.java#L214-L239
We should implement something similar for the CustomModel handling.

Can you describe the problem in more detail to decide if e.g. the relative invasive proposed PR is worth the effort.
I would also like to improve the process how the GraphHopper community can better work together without disappointing contributors but also without putting a pressure on core contributors to accept contributions when they are huge. E.g. I think a draft directly means that you as the creator still need to work on it and often this can be better solved when certain open questions can be answered on the forum with a link to your branch. And then the change which is ready from your side is proposed as a PR and is also worth (from your side) to be reviewed. I understand that time could be wasted if everything is finished but this can be avoided with a discussion up-front where at least the direction is clear (e.g. the SpatialRule/SpeedModel matter is unclear and a polished PR might not be worth without a solid concept and deeper discussion)
In this issue here I think it would help what areas you used and how the performance differs (maybe even including the proposed changes as a comparison). The existing block_area API is a legacy part and not necessarily how things should be. So we should question also performance tweaks, especially if they improve a query only by 10% or something and at the same time make code more complicated or introduce more or heavy dependencies. E.g. you also found in the import procedure that point-in-polygons can be very fast, especially when we use PreparedPolygon and maybe the difference is not a big problem in reality?

Can you describe the problem in more detail to decide if e.g. the relative invasive proposed PR is worth the effort?
I would also like to improve the process how the GraphHopper community can better work together without disappointing contributors but also without putting a pressure on core contributors to accept contributions when they are huge. E.g. I think a draft directly means that you as the creator still need to work on it and often this can be better solved when certain open questions can be answered on the forum with a link to your branch. And then the change which is ready from your side is proposed as a PR and is also worth (from your side) to be reviewed. I understand that time could be wasted if everything is finished but this can be avoided with a discussion up-front where at least the direction is clear (e.g. the SpatialRule/SpeedModel matter is unclear and a polished PR might not be worth without a solid concept and deeper discussion).

Sounds good to me.
So basically:

Start a discussion for a bigger change in https://discuss.graphhopper.com/
Create a (draft) PR after general consensus has been established
Handle change requests by maintainers

We should add this to the docs and PR templates once this process is fully specified.

In this issue here I think it would help what areas you used and how the performance differs (maybe even including the proposed changes as a comparison). The existing block_area API is a legacy part and not necessarily how things should be. So we should question also performance tweaks, especially if they improve a query only by 10% or something and at the same time make code more complicated or introduce more or heavy dependencies.

The old block_area API intersection logic is basically the same as the new one in CustomWeightingHelper:
https://github.com/graphhopper/graphhopper/blob/e806a5c55750555c1c8031752b6ceae601a33eb3/core/src/main/java/com/graphhopper/storage/GraphEdgeIdFinder.java#L226-L239
https://github.com/graphhopper/graphhopper/blob/0522c495ccad5f22fe19c6e858a40a7bd6f74eae/core/src/main/java/com/graphhopper/routing/weighting/custom/CustomWeightingHelper.java#L60-L65
Apart from caching the bbox and edge geometry the sole difference is that BlockArea also uses edge id based filtering for small areas. If the shapes size is below a certain threshold we lookup all edge ids for it and use this set to speedup checks.

E.g. you also found in the import procedure that point-in-polygons can be very fast, especially when we use PreparedPolygon and maybe the difference is not a big problem in reality?

The problem isn't really the point-in-polygon logic but retrieving the geometries from  the graph. This has to be done for each visited edge and is therefore quite costly as described in #2305.
Here is a flamegraph of the memory allocations for the block_area logic if it can't use edge id filtering:

All of the top entries listed above(except AstarEntry) are a result of loading geometries for this checks.
We can't avoid this for large areas but edge id filtering provides a significant speedup for smaller ones.

What are the effects in real world like percentage-wise for a measurement or JMH run?

We should add this to the docs and PR templates once this process is fully specified.

Good idea :+1:

Here's a flamegraph after a few requests in flexible mode:

GraphHopper spends about 30% of its execution time creating the PointList instances for intersection checks.

Memory allocation is even worse. 95% of all allocations is caused by those PointLists and the double arrays within.

Can you measure the absolute time difference for some experiment that resembles your use-case? Not sure if this helps here but getting the coordinates for tower nodes should be possible without loading the way geometry and/or creating a PointList:
// for example
double lat = graph.getNodeAccess().getLat(edge.getBaseNode());

GHUtility.createBBox(EdgeIteratorState) already operates based on tower nodes.

What do you mean?
I mean to get the tower node coordinates we do not need to use fetchWayGeometry at all (but currently we do):
https://github.com/graphhopper/graphhopper/blob/9a0a032e0440d26a1b9f2c7c071192739bb559e7/core/src/main/java/com/graphhopper/util/GHUtility.java#L1016-L1021

Ah, that's what you meant.

But IMHO it's still better to rework geometry handling as a visitor. With this approach PointList generation becomes an opt-in.
@FunctionalInterface
interface WayGeometryVisitor {
   default void init(int pointCount, boolean is3D) {
   }

   void onPoint(double lat, double lon, double ele);
}

Our current fetchWayGeometry could be implemented using this visitor.


CORGI-200 compose modules

This builds the component tree to link RHEL_MODULE component with it's RPM component children when ingesting composes.
This also fixes CORGI-211

nice, clean work ... apart from nitpicks LGTM

be good to get @mprpic sage eyes on this PR as well

I confirmed a few things, and made two minor change since the review. I fixed an issue where release was not included as part of the RHEL_MODULE component purl. I also updated the original save_module function of the brew task to use update_or_create instead of get_or_create so that the software_build foreign key was set on the RHEL_MODULE even if it was created by the fetch_compose_build task previously.
I verified that both SRPM and RHEL_MODULE build_ids are added to relations table for loadcomposedata commands to later lookup and call fetch_brew_build on.
Here's a few queries that how the resulting data layout:
for rm in m.Component.objects.filter(type="RHEL_MODULE"):
     rm.save_component_taxonomy()
     print(f"RHEL_MODULE:{rm.purl}")
     for provide in rm.provides:
         print(provide)
     print("-----------------")

Shows the following Component are related:
-----------------
<EMAIL_ADDRESS>pkg:rpm/redhat/libvirt-dbus-debugsource@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=i686

Checking the sources of the RPM, we see both it's SRPM parent and it's RHEL_MODULE:
rpm = m.Component.objects.get(
     purl="pkg:rpm/redhat/libvirt-dbus-debugsource@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=i686"
)
rpm.save_component_taxonomy()
rpm.sources
['pkg:srpm/redhat/libvirt-dbus@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=src',
<EMAIL_ADDRESS>
Using the Collector models to check the rpm's source:
cm.CollectorComposeRPM.objects.get(nvra=f"{rpm.nvr}.{rpm.arch}").srpm
<CollectorComposeSRPM: 1929918>

Verifying that that RHEL_MODULE component does not list the 1929918 SoftwareBuild as a foreign key:
for c in m.Component.objects.filter(software_build__build_id=1929918):
    ...:     print(c.purl)
pkg:rpm/redhat/libvirt-dbus@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=x86_64
pkg:rpm/redhat/libvirt-dbus@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=i686
pkg:rpm/redhat/libvirt-dbus@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=ppc64le
pkg:rpm/redhat/libvirt-dbus@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=aarch64
pkg:rpm/redhat/libvirt-dbus@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=s390x
pkg:rpm/redhat/libvirt-dbus-debuginfo@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=s390x
pkg:rpm/redhat/libvirt-dbus-debuginfo@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=i686
pkg:rpm/redhat/libvirt-dbus-debuginfo@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=x86_64
pkg:rpm/redhat/libvirt-dbus-debuginfo@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=aarch64
pkg:rpm/redhat/libvirt-dbus-debuginfo@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=ppc64le
pkg:rpm/redhat/libvirt-dbus-debugsource@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=i686
pkg:rpm/redhat/libvirt-dbus-debugsource@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=aarch64
pkg:rpm/redhat/libvirt-dbus-debugsource@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=ppc64le
pkg:rpm/redhat/libvirt-dbus-debugsource@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=s390x
pkg:rpm/redhat/libvirt-dbus-debugsource@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=x86_64
pkg:srpm/redhat/libvirt-dbus@1.3.0-2.module%2Bel8.6.0%2B14480%2Bc0a3aa0f?arch=src

Confirming that the RHEL_MODULE is related to it's SoftwareBuild:
cm.CollectorComposeRhelModule.objects.get(
    ...:     nvr="virt-devel-rhel-8060020220408104655.d63f516d"
    ...: ).build_id
1964073

Looking at the RHEL_MODULE and checking it's softwarebuild foreign key:
module = m.Component.objects.get(
<EMAIL_ADDRESS>)
module.software_build
<SoftwareBuild: SoftwareBuild object (1964073)>


Server duplicate ID

When loading chunks, a duplicate id occurs every other time
because of this, the schemes stop working

We cannot understand why this error appears, there was an idea that the scheme was simply copied, but after deleting all the schemes and restoring it (without copying), this error still appears.
Our team would be very happy if you could answer what the problem is

https://cdn.discordapp.com/attachments/893847780433485845/960959949431795722/GIF_05.04.2022_20-49-30.gif
gif with a good example

Whenever you connect two ports, the connection is given a unique ID so they can disconnect and reconnect as their chunks get unloaded and loaded without having to check on blocks every time. These ID are assigned using a simple counter that increments every time a new ID is requested.
Normally if the world is shut down the state of this counter is saved to a file to make is persist. But is case of hard server crashes it might not get the chance to save and after restart it might give new connections IDs that are already used by existing connections in the world. This would result in ID conflicts like the ones the log complained about.
Another thing that will cause ID conflicts is if you copy circuits using world editing tools.
One way to fix this is to go to the sub folder data/ in your world save and open the file signalLinkIDs.dat with a program like NBTExplorer and change the value of the nextID variable to a sufficiently large number that has not been assigned yet. The IDs in your log are around 5.000 so setting it to 10.000 or so should be save (the counter can up to 2 billion so wasting a few thousand IDs is not a big deal). After that restart the game and reconnect all wires on devices that are not working properly.


Script-based builds

We're moving all our repos to use some well-defined scripts for the build steps so we can rely on those instead of .yaml files when doing cross-repo builds. These changes implement such scripts and updates the yaml files to use them accordingly.
I'm also using this to add the validate-notebooks.ps1 into the actual, so Jupyter notebooks get validated during build.
Some notebooks still fail during the execution, as they require further fixes on the Katas package; for now, I'm just blacklisting them until we get to fix them.

Oh, and set the build to run in all platforms, to make sure people can run these in the computer they enjoy. :)


Set "required" atribute in others fields by other changed

Hi guys, in first place apologize my english and if this issue as exist's.
I have a condition that I need to make other fields mandatory from the other fill.
In this case, I put the 'required' attributes via javascript in these fields. And I need that at that moment that group of fields that depend on this, are validated.
	function habilitaObrigatoriedadeRg() {
		if ($('#nr_rg').val().length > 0) {
	        $("#dt_emissao_rg").attr('required','');
	        $("#orgao-expedidor").attr('required','');
	        $("#uf_rg").attr('required','');
		} else {
	        $("#dt_emissao_rg").removeAttr('required');
	        $("#orgao-expedidor").removeAttr('required');
	        $("#uf_rg").removeAttr('required');
		}
	}

how i do this?

I'm pretty sure you should use .prop() and not .attr()
prop("required", true);

rhedman commented 28 minutes ago • edited
I'm pretty sure you should use .prop() and not .attr()
.prop("required", true);

My ways works. What a need is start a validation on this fields in this function.

From the documentation
"By default, the validator will only validate fields that are present when the plugin is initialized. If your form has a dynamic set of fields, you will need to call $(...).validator('update') to inform the plugin that the set of fields to be validated has changed."

Yes, but this work's for all form.
I need that if change a field, others fields (a group of then) are validate or non validate if this field are blank.

.validator('update') is only necessary if new fields are added / removed from the DOM. Toggling attributes on inputs already in the DOM won't require an update since those inputs are already in the validator's jQuery selection.
@rhedman is right in that you probably want to use .prop() instead of .attr(). I think jQuery v1.x automatically updated the element's internal property, but in jQuery 3.x this is no longer the case.
Also, you can trigger validation on a field with $('...').trigger('focusout').
I'd rewrite your function as
function habilitaObrigatoriedadeRg() {
  $('#dt_emissao_rg, #orgao-expedidor, #uf_rg')
    .prop('required', !!$('#nr_rg').val().length) // are you sure you want to call .length on .val()?
    .trigger('focusout')
}

Thank's a lot.


The bi-directional links in the card cannot be recognized

+1，I had the same problem

Does it still occur?


Event listeners are not removed on unmount.

When component is unmounted window resize event listener removal should be performed.
In scroller.tsx (https://github.com/huangbinjie/react-scroll/blob/master/src/scroller.tsx#L93)
Window resize listener is added.
This listener should be removed on componentWillUnmount.
I can create pull request.

Thanks for your pull request.

@huangbinjie can you publish package's update to NPM ?

@AurimasGaidys 1.1.4 have published. Thank you for your support.

Thanks!


issue importing

I get this:
Unable to load class 'org.gradle.api.internal.component.Usage'. Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

Have you tried what the log told? Any updates?

Yes I tried both. Weird thing is that other repos also have this issue, while others work fine.

Em, it's been a long time. Have you resolved it? I assume you probably updated Android Studio.

I'll close this issue for now. You can reopen it if the problem is still there.

@gejiaheng Now it works. Yes.
But, what does it do?
It has 2 buttons, to select photos and hit "apply", but it doesn't do anything...
Is it supposed to do anything?

@AndroidDeveloperLB
You can refer to https://github.com/zhihu/Matisse/issues/64. It may give you an answer.
And check out the project's wiki: https://github.com/zhihu/Matisse/wiki
And what is drag-to-multi-select? I only know a feature which is drag to open a menu in the dropdown list, and Matisse supports it.

Sorry I don't get it.
About the feature I wrote, here:
https://stackoverflow.com/q/41199611/878126
Taken from:
https://material.io/guidelines/patterns/selection.html#selection-usage
Example library:
https://github.com/afollestad/drag-select-recyclerview

Oh, I get it. It's a nice feature. You can contribute if you want to.

Still not sure what this library sample do


[BUG] [system] [error] Attempted to start Color camera - NOT detected!

I get the above message when trying to run my script.
I'm using the OAK-FFC board.

Can you provide more details, please?
How is the HW set-up, how does your environment look like? How have you installed it, what does your script actually do? What have you tried so far? Which versions of components do you use?
Have you captured any logs?

Hello.
I'm using OAK-FFC-3P.
I have 1 IMX378, and 2 OV9282. Using latest depthai release.
Looks like similar issue to this one:
https://github.com/luxonis/depthai/issues/729


Save incomplete

Hi,
I'm facing issue on saved files. The save function is correctly working, but not the opening function. The informations are not correctly imported, and, except required informations on control screen, no fields are filled.

Could you post the contents of your saved project file? I'm unable to reproduce the problem.
Which version of Debreate are you using? 0.7.13?

Thanks.
After your message i retry. After a reboot and some OS update of my LinuxMint, no more problem. It was a fresh install of LM for quick use.
For information also, it was 0.7.13 debreate on Linux Mint 18.1 (fresh install). No error message was  displayed (i tried launching via terminal with and without sudo). Simply OS updates was necessary.
Sorry for this, and thanks for your quick help.

Thank you. I am glad that it is working correctly for you.


UI Improvement (Homepage)

Hey there,
I am a HacktoberFest2022 Participant
I would like To work on the homepage UI.
Would like to Change color and add some more functionalities may be like loader
Features-

[x] Homepage UI improvement

kindly assign this and make any suggestions to improve the UI
Screenshots
No response

@souravcipher kindly suggest and assign for the features

Hi, I think I'll create a few more issues in the coming days.
For now, closing this one! Thanks.


Scale layer after BatchNorm

Hi @shicai
could you explain the need/purpose of the Scale layer after every BatchNorm?
Thanks a lot!
Best, Christoph

BN can be formulated as y = gamma * ( (x - mean) / std) + beta.
In caffe, BatchNorm layer can only do mean-std normalization, so we need a Scale layer to learn linear transform parameters gamma and beta.

Hi@shicai
could you explain me...
what are the values showing in the scale layer of mobile net v1.are they gamma or beta??
Thanks a lot!

yes, in that layer, scale is gamma, bias is beta.

Thanks for your reply@shicai
sorry i didnot get you.My question is the following
conv1/bn has only 32 values,conv1/scale has only 32 values.what are those values??

as you know, y = gamma * (x - mean) /std + beta, conv1/bn saves mean and var values for each channel of conv1, and conv1/scale saves gamma and beta values.

Thanks for your reply@shicai
ya kk understood.is there any fixed point model for mobile net v1

hi@shicai
Do we need to padding for input 224 to get conv1 output??if so how much??
My output of conv1/scale is not matching with caffe output


/validate_token

How am I supposed to use this end point? it says 'Accepts uid and auth_token as params' and that these are in the db, I dont have a db field called auth_token, I have tokens?

Loot at the source here. You just need to hit this route like all the other request : with the require header to authenticate your users.

Sorry, I dont understand. what is the require header?

I invite you to read the doc.

I have read the doc lots of times. I just don't understand how to get this route working. I have the others working....

I have a tokens field in my db
{"734qclx7_WbDFJGSgKDceg":{"token":"$2a$10$UQX10Wv18OaUpapR5v3.KOO5.FicYOqBLbG6iLt1crcWjbWNJzPli","expiry":1424891653,"last_token":"$2a$10$vWd19f4BeVytO.eAoPyKB.AAAk1fbHGRxYaUR3mqAMAH3bd0b.ere","updated_at":"2015-02-11T19:14:13.397+00:00"},"MulyQKwcOrp2kQXekRxYxg":{"token":"$2a$10$K0e.a4Rq4soIdN7tPek7euX0cQTbZHzpzkQdF1M/M2e9eaZt4heZC","expiry":1424891915,"last_token":"$2a$10$4UwP94qkzg7IVVhS6ly8T.WIMrHW2cUFEIZUBtX.7Ne/SzEBxyuU2","updated_at":"2015-02-11T19:18:35.618+00:00"}}

am i supposed to send one of these to this endpoint?

You call this route like all the other one : with the headers described on the doc (access-token, uid ...)

So you send the access-token you get in the headers back to this endpoint?

try it

Hi @maxrosecollins - I tried to explain the token handling aspect of this gem here. Please let me know if  this explanation is unclear.
The values stored in the tokens field are encrypted hashes of the actual tokens. I'll copy my response from another issue regarding how the tokens are processed:

Tokens are effectively passwords. If an attacker has your access token, they can do anything with your account. For this reason, we store tokens using bcrypt. This is how passwords are normally hashed. Once the token is hashed using bcrypt, it cannot be recovered. So to check a token's validity, we perform the following actions:

search the DB for a user by their uid
if the user is found, hash the token from the request
compare that hash with the hash that's stored in the DB
if the hashes are equal, the token is valid.

Adding to that, the tokens are changed at the end of each request and sent back to the client using the header keys describe here (access-token, client, expiry, uid). The client stores these values for use with the next request.

I understand it a bit more now, thanks!
So when do i need to use the /validate_token end point?
Thanks again

If you use ng-token-auth, you don't need to use this route. I think it's call "automatically".
If you don't use it, you should call this route when you need to know if the token your user is not expired :)

I'm using react not angular so I cant use that module.

@lynndylanhurley thinking of writing a react component anytime soon ;)

Can I have you opinion on ReactJS vs AngularJS ?

I like it, still getting to grips with it though.
I have tried both, and personally I like react more, I think there are fewer concepts to learn with react then with angular. I just feel I understand react more.
I think angular is good for building a simple example of something but when you want to scale big and write lots of custom directives it gets harder.
What do you think of them?

I never use it. Yet. I learn AngularJS because it was a requirement for one of my client, and I still offer my service on AngularJS development.
But, after the Facebook conference on ReactNative, I'm really excited to work with it !

Yeah react native looks really good.
React seems to make more sense to me than angular. Just frustrating there isn't a ng-token-auth for react :(

Well, you can create it if you want :D
On Thu 12 Feb 2015 at 12:08 Max Rose-Collins<EMAIL_ADDRESS>wrote:

Yeah react native looks really good.
React seems to make more sense to me than angular. Just frustrating there
isn't a ng-token-auth for react :(
—
Reply to this email directly or view it on GitHub
https://github.com/lynndylanhurley/devise_token_auth/issues/148#issuecomment-74060931
.

I suppose i'm going to have to try. Not sure i'm good enough though.

Well, do it step by step. You can started with just the login and register functions and add the others features later

True, I do have login and register working at the moment! I'll give it a go.

@lynndylanhurley thinking of writing a react component anytime soon? ;)

I have been thinking of writing a React component actually. I'd like to break out the logic from this module into a core package, and then create framework specific modules / components / plugins that wrap the core. No ETA on that tho.

Yeah that would be awesome!
I noticed this seemed to be quite oriented towards an Angular.js integration, but I guess it would be as it is built for your ng-token-auth module

Can you show me how you do that in react ?
On Thu 12 Feb 2015 at 17:11 Max Rose-Collins<EMAIL_ADDRESS>wrote:

Closed #148
https://github.com/lynndylanhurley/devise_token_auth/issues/148.
—
Reply to this email directly or view it on GitHub
https://github.com/lynndylanhurley/devise_token_auth/issues/148#event-234819632
.

Id just like to call to attention that, based on the README, its not easy to answer @maxrosecollins question:

So when do i need to use the /validate_token end point?

I have some general assumptions about it, but Im trying to give an authoritative answer to a fellow developer who is using my API for a mobile app, and its very difficult to do by just reading the source code or the README document.
@nicolas-besnard answer was basically what I was assuming:

If you use ng-token-auth, you don't need to use this route. I think it's called "automatically".
If you don't use it, you should call this route when you need to know if the user's token is not expired :)

Ill interpret this as, you only need to use /validate_token if you really want to. It is up to the application maintainers to decide on a policy if this endpoint is necessary, and where. It is not, by default, required for any specific workflow.
I think a small note in the README about this endpoint and its implied uses, and any further information you have on it, would be very helpful to us adopters of devise_token_auth.
Thanks!

I realize this is an old thread, but it is unfortunate there was not an action item that came from it. I spent hours thinking this a feature similar to a refresh token, where in fact it's not.
If you already handle 401 from the server in your client app by routing users to the login and resetting their session, then there doesn't seem to be much point at all (at least IMHO) for this endpoint.
I greatly appreciate @stratigos summary.


[incubator/druid] modify the default value by nano-quickstart to decrease memory cost

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

No
What this PR does / why we need it:
Bug:
If there are DRUID_XMX, DRUID_XMS, DRUID_MAXDIRECTMEMORYSIZE at env vars, then JAVA_OPTS can not work. On the other hand, different role want different java jvm settings.
Solution:
remove DRUID_XMX, DRUID_XMS, DRUID_MAXDIRECTMEMORYSIZE, DRUID_MAXNEWSIZE, DRUID_NEWSIZE so on settings from common configVars to role's config
BTW, modify the default value by nano-quickstart. It only cost 1.7Gi memory to install the nano-quickstart incubator/druid for a demo.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #22778

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/ok-to-test

/lgtm


Update for Android-specific project set bundleSeedId value to "" and display error on descriptor generation

Updates for the Android-only variant of ANEs will drop the iOS-specific bundleSeedId value to "" and then display an error message that this value is missing and not generate a descriptor after this.
Thoughts about it:

It does not drop the set value to "".
It should generate descriptor without ios-specific parameters.

Can you elaborate on what you did to get it to drop the config value?

I believe I've just stumbled upon this.
I am using APM and setting up an Android only app and have:

run apm init
apm install com.distriqt.PushNotifications
apm project get (which shows the bundleSeedId parameter as null)
apm generate app-descriptor

returns:
generate/app-descriptor :: Parameter not valid: bundleSeedId=
Do I need to set bundleSeedId manually to something?

@crooksy88  If you run apm project config set it will walk through all the config variables for the packages you have installed.

Thanks Michael, what I'm getting at though is this is an Android only app, whereas the bundleSeedId appears to be an Apple requirement.
So without a bundleSeedId from Apple, what should I set this to, as it is a requirement?
Thanks.

Ah yeah, if you aren't producing an iOS build just set it to any value is fine. I have a bit of work to do around specifying project platform outputs and handling this but I'm working on it.


[Move] Fix validator set bug when deriving next epoch validator

When deriving the validator set for the next epoch, we didn't add validators from pending_validators.

@bmwill @tharbert  fyi this PR changes the genesis blob.


fix: bump edge-runtime to 1.64.0

What kind of change does this PR introduce?
Bump edge-runtime to 1.64.0
Changes
1.64.0 (2024-11-24)
Features

support dispatching the runtime events (#351) (997f2d9)
exposing deno_cache + ai cache interceptor (#446) (13ee2a2) (@kallebysantos)

Bug Fixes

polishing tmp fs and s3 fs (#444) (8f81f37)
sb_fs: make s3 fs proxy capability to unsafe feature (#448) (e19cac9)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

0 of 0   changed or added relevant lines in 0 files are covered.
5 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 59.524%

Files with Coverage Reduction
New Missed Lines
%

internal/gen/keys/keys.go
5
12.9%

Totals

Change from base Build<PHONE_NUMBER>7:
-0.03%

Covered Lines:
6381

Relevant Lines:
10720

💛  - Coveralls

Will close due to stale


Update veda-docs for production release preparation

Context
As we prepare to release production, we need to update our veda-docs to link to the correct APIs and ensure that the notebooks are also functioning.
Acceptance Criteria

[ ] Update api links on landing page

[x] Veda Production

[x] STAC API (production catalog) -> https://openveda.cloud/api/stac
[x] Raster API -> https://openveda.cloud/api/raster/docs,
[x] Browser -> https://openveda.cloud/

[ ] Staging STAC API (staging catalog for vetting new data before public release) https://staging-stac.delta-backend.com/ --> https://staging.openveda.cloud/api/stac
[ ] Staging Raster API https://staging-raster.delta-backend.com/docs --> https://staging.openveda.cloud/api/raster/docs
[ ] Staging Browser http://veda-staging-stac-browser.s3-website-us-west-2.amazonaws.com/ --> https://staging.openveda.cloud/

[ ] Update api links in notebooks

Updates:

Waiting on getting veda-config and veda-config-eic migrated
Additionally, maybe good to get veda-docs updated ? But not entirely a blocker

Sheet tracking progress on notebook updates

The only notebook still outstanding is ./notebooks/tutorials/stac_ipyleaflet.ipynb. Which requires an update to pangeo notebook:  https://github.com/NASA-IMPACT/pangeo-notebook-veda-image/pull/27. I will mark this ticket a done and we track in the pangeo ticket and a new issue if necessary.


[6.0] Str::ascii() test with locale broken

Laravel Version: master (5558a114cec2ebb1050ac79ba71f3eb87789ad37)
PHP Version: 7.3.5

Description:
Same codebase that had passing unit tests now has 1 failure.
A dependency update probably broke this test:
1) Illuminate\Tests\Support\SupportStrTest::testStringAsciiWithSpecificLocale
Failed asserting that two strings are identical.

Hmm, that was passing when it got merged.
@GrahamCampbell can you maybe pitch in?

That what I said in description, maybe a voku/portable-ascii change.

Test pass with voku/portable-ascii 1.2.3. So it probably just needs to upgrade the test accordingly as the iya is more likely a mistake fix.

Yeah, I believe so as well. Feel free to pr or I'll do it in a bit.

OK. I will check the changes of voku/portable-ascii to be sure it's on purpose and will PR.

Change targeted: https://github.com/voku/portable-ascii/commit/62f9521b77693bb7a7be8fe855e86fa347e75f70#diff-07a0c79489ea27ae5e059a433ba83a34

Done: #30269 6.x branch seems not affected due to more lax test.

Thanks man!


Flip Doesn't Trigger

When I focus the CVC the flip doesn't happen so I'm stuck looking at the front. Where did I go wrong?

Typo, focused props was misspelled as focus.


i cant write

hi, i need help. i cant write in my textedit but i can paste every text and with backspace remove them.
code: https://hastebin.com/voyaxatovu.cpp

The hastebin links seems to be broken.
If you have trouble setting up ImGuiColorTextEdit, you might want to take a look at the Demo
or more specifically the main.cpp:
ImGui::Begin("Text Editor Demo", nullptr, ImGuiWindowFlags_HorizontalScrollbar | ImGuiWindowFlags_MenuBar); editor.Render("TextEditor"); ImGui::End();
Notice how the Render-function takes a name for the editor window. Calling the parameter-less Render-function might not handle input, as it seems to not call the Handle...Input functions.
(I am unsure if a parent window is required but I am guessing it is)

I had the same issue with the docking branch of ImGui (I'm assuming it's related as I had similar issues in ImGuizmo), in my case changing
	if (ImGui::IsWindowFocused())

to
	if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows))

in TextEditor.cpp (line ~698) void TextEditor::HandleKeyboardInputs() fixed input for me.