Is it possible to re-lazyload an element that is already in the viewport?

I have the following situation:
I have a series of images that are lazyloaded. Given an event, I'll update all src attributes with new values, and I want these values to be lazyloaded.
This works fine when the images are not in the viewport, but images there are in the viewport are not loaded. Like so:

...

When the event happens, I replace the elements:

...

Then I call lazy.reload(). It works fine for all img that are not in the viewport when the event happens. If the tag is in the viewport, the script doesn't recognize it and I just get a blank space. Scrolling down loads the new images normally.
The workaround is simply remove the element and put another in place:
let old_img = document.getElementById(id);
let parent = old_img.parentElement;
parent.removeChild(old_img);
let img = document.createElement('img');
img.setAttribute('data-original',new_src);
parent.append(img);

This way lazyload recognizes the new data-original, not mattering if they were or not in the viewport, and the images are loaded appropriately after calling .reload
Is this the proper way to do this? Is there another way?

Hi @imfelipe,
thank you for asking here.
What happens is expected, because LazyLoad marks the images that have already been processed and never looks back to them again. I did this to boost performance.
What I suggest you to do is, when you need to update your images, check before if they have a src already  set.
If the src attribute was already set, to update the image you should set the src attribute directly.
If the src attribute is still null - meaning the image hasn't been processed yet - you can set the data-original attribute as you're currently doing.
This should do the trick.

hmm this won't help, because if all images in the screen were loaded, when I update the src= I would make a bunch of requests, and I wouldn't be lazyloading.
It makes sense optimization wise, though, and what I want to do is kinda awkward. It's all right. Thanks!

Ok so in the latest version I'm using datasets to mark the element as processed (see code here), so you could mark the element as NOT processed after setting the image source in the data-original element.
Long story short, I suggest you to do the following:
function setNewSrc (imgEl, newSrc) {
    imgEl.dataset.original = newSrc;
    imgEl.dataset.wasProcessed = false;
    // optionally, if you want to avoid seeing the old image when the user scrolls back...
    imgEl.setAttribute('src', null);
}

// and when you're finished updating the image source
myLazyLoad.update();

What do you think?

Oh, I think I got it!
Setting wasProcessed to false breaks the lazy-loading in all my tests. So we just apply drastic measures and brutally remove it. Solved!
I was making a fiddle to show I wanted to do, and got it working, check this out: https://fiddle.jshell.net/imfelipe/nctzz5gv/1/
var img = document.getElementById(id)
img.removeAttribute('src')
img.classList.remove('loaded') //Not necessary, but no harm.
img.setAttribute('data-original',new_img_src)
img.removeAttribute('data-was-processed') //The catch
//...
lazyload.update()

Seems good to me. Great!

Hello @verlok,
I don't know if this is the same issue, but I built a multiple column infinite scroller. When the user scrolls really fast, sometimes the element is added a bit late to the DOM and I guess it must be added when the lazyload thresold has been already passed. I am not sure though, no data-processed or loaded/dataset attribute is added to the elements, the data-src is still present and no src is set so I assume it is what happens.
I had set the thresold to half screen height, as it is approximatly when the new DOM elements are appended so the image is already visible they enter the viewport. I would like them to start downloading as soon as they are appended if they are within the thresold.
I tried thresold = 0, it is better but I still sometimes have image not loaded, I guess because they are appended when already in the viewport.
As the image has no dataset flag / loaded class, it should still be checked each time I myLazyload.update() (which is called on each scroll) no?
Any hack welcome :)
Thank you for the great package anyway!

Hi @trompx,
first of all: Which version of LazyLoad are you using, 10.3.3 or 8.2.1? The recommended version for browser compatibility reasons is 8.2.1, but the most modern one in terms of image detection is 10.3.3 because it uses IntersectionObserver.
Second question: do the inserted img tags have a min-height set? If it did, you would obtain a better performance since less images would be in the viewport when the src is not set and loaded.

As the image has no dataset flag / loaded class, it should still be checked each time I myLazyload.update() (which is called on each scroll) no?

Yes, the update method re-selects all the elements with the selector specified in settings.elements_selector (the default value is 'img'), minus the elements that have the was-processed data.
Anyway, beware in calling the update method on each scroll! It's very CPU consuming. You should call this method only each time you add new images to the DOM.
I hope you find my indications useful.
If you didn't manage to solve this issue, feel free to post some HTML and JS code here or to create a new Pen on Codepen and share it here.

Hello @verlok,
Thanks a lot for trying to help, I really appreciate.
In fact I use version 8.2.1 because I need mainly mobile compatibility.
I layout my multi columns in js so every element has a height calculated according to the image dimensions stored in db so every new appended image already fully occupies the space.
My bad, when I said I was using update  on each scroll, I meant that on each scroll I check if new nodes have to be appended and if there are any, then I trigger an update. So with what you say, images that have not been processed should have their data-src converted to src  even if they are already in the viewport, so I guess there is something going wrong at one point on my side..
As I have full control of what is appended to the DOM, maybe the update function is overkill for me (despite the fact I did not notice any slowdown, probably due to the fact that I limit the number of elements in the DOM so the update have to loop just a few elements), I am thinking about not using lazyloading, in fact in this case, I control the amount of element displayed on screen so loading the X image I append down the screen may be alright.
If I manage to figure it out, I'll let you know as it is an interesting use case.
Cheers!


Remove olm.providedAPIs from OperatorGroups

olm.providedAPIs on OperatorGroup objects should be applied by OLM and should not be included in the object definition.
olm.providedAPIs

Example:
rhsso/rhsso-operator/base/rhsso-operatorgroup.yaml

The rhsso dir should be removed altogether.  It was based on an early version of the operator (which wasn't very good).
As we find other OperatorGroups that have this issue, we should remove them.


refactor conversion from chef attributes to jenkins environment variables

Right now, we don't set any global variables, but every worker node does pull in some shared values. This is awkward, because chef-client needs to run on every node when changing a "global" jenkins variable. Instead, we should have a { "jenkins": { "environment": { .... } } } attribute set for every node. On the master node, this is translated into the global env vars for the jenkins master config, whereas for the workers it would go into the jenkins slave config.

we're just manually managing Jenkins these days and if it died we'd go GitHub Actions rather than bring it back to life


unable to convert file into word format

exec error: Error: Command failed: "pandoc" "Untitled-1" -o "Untitled-1.docx" '"pandoc"' is not recognized as an internal or external command, operable program or batch file.

@yunus6390 Have you installed pandoc? That is a requirement.

@yunus6390 Any more details? I can't recreate this…

I have already install pandoc but still having the same issue

I have the same issue. Latest version of pandoc (3.2.1) is installed through the msi installer, this error happens on both user only and system wide installations of pandoc. Pandoc has been added by the installer to PATH and works just fine when used from the terminal. I'm on VScode version 1.90.x


Update project

Fix various security issues from outdated packages
Replace custom auth with Iron-Session
Use CSS Modules
Update project structure to meet modern Next.js design patterns
Merge API routes to reduce Lambda usage

Love to see it

@karpawich

Love to see it

NPP!

Project is ready to be deployed. Tested and works identically to existing deployment.


feat(coverage): Test remap-istambul on TypeScript branch

On the typescrypt branch, after rebasing from master, it should be interesting to test https://github.com/SitePen/remap-istanbul/wiki

Issue opened here : https://github.com/SitePen/remap-istanbul/issues/41


Support for centred multi line label

Very simple patch to add support for centred labels with multiple lines. Works by padding the input with spaces. Works properly with monospace fonts.
Addresses issue #45

Edit: Tested on Linux w/KiCad 6.0.8 release build

Thanks for the PR. At this time I'm not sure I want to add proper multiline support, since it will open a pretty big can of worms around line spacing and alignment of each line within labels.
I think for now it's best to keep KiBuzzard for small single line text labels. and if you need more fancy rendering make use of a tool like inkscape, affinity designer, or illustrator.


ImportError in virtualnv

Running this in Virtual Python Environment builder
$ lisense list

Gives the following error
$ lisense list
Traceback (most recent call last):
  File "/home/nkman/Desktop/sample_pip/v/bin/lisense", line 9, in <module>
    load_entry_point('lisense==1.0.0', 'console_scripts', 'lisense')()
  File "/home/nkman/Desktop/sample_pip/v/local/lib/python2.7/site-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/nkman/Desktop/sample_pip/v/local/lib/python2.7/site-packages/pkg_resources.py", line 2431, in load_entry_point
    return ep.load()
  File "/home/nkman/Desktop/sample_pip/v/local/lib/python2.7/site-packages/pkg_resources.py", line 2147, in load
    ['__name__'])
  File "/home/nkman/Desktop/sample_pip/v/local/lib/python2.7/site-packages/lisense/lisense.py", line 19, in <module>
    from parser.parser import ArgumentParser
  File "/home/nkman/Desktop/sample_pip/v/local/lib/python2.7/site-packages/lisense/parser/parser.py", line 12, in <module>
    from ..commands.guide import generate_guide
  File "/home/nkman/Desktop/sample_pip/v/local/lib/python2.7/site-packages/lisense/commands/guide.py", line 11, in <module>
    from yaml import load
ImportError: No module named yaml

Resolved after installing pyyaml via pip though
$ pip install pyyaml

But don't you think it should have installed pyyaml on its own?

Aha! gotcha.
I missed adding it in required package in the setup file.
install_requires=['docopt', 'jinja2', 'xtermcolor']

Thanks for the catch, adding it now.

Can you try now. Fresh? :smile:

Or maybe I missed it again. This time in requirements.txt. Instead of asking you, I should have tested on my own.

Lol.

OK! it's working, will add 'pyyaml' in requirements.txt in some next commits then.
Thanks for notifying.


Typo "Microsoft Teams Room"→"Microsoft Teams Rooms"

https://learn.microsoft.com/en-us/microsoftteams/devices/use-teams-panels
https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/blob/live/Teams/devices/use-teams-panels.md
#PingMSFTDocs

@JohanFreelancer9 - Thanks for the suggestion.

@dstrome
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


WIP: Improve tutorials

Description
This PR proposes the following improvements to the tutorials:

Move tutorials focused on using specific modules, classes, and functions into a "Programming interface" section.
Create an "Applications" section for future problem-oriented how-to guides for advanced applications.
Expand the introduction tutorial:

State that "using the PhasorPy library requires familiarity with the phasor approach, image processing, array programming, and Python."
Specify C compilers required to install PhasorPy from source.
Define "phasor coordinates".
Make aware of undefined/NaN values.
Show that signals can be reconstructed from all harmonics.
Add reason why calibration is necessary.
Show that calibration can be undone.
Plot more intermediate results for calibration and filtering.
Add conversion to apparent single lifetimes.

TODO:

Add helper function for plotting images to reduce matplotlib code in tutorials.
Replace FLUTe dataset with PTU files.

Release note
Summarize the changes in the code block below to be included in the
release notes:
Improve tutorials

Checklist

[ ] The pull request title, summary, and description are concise.
[ ] Related issues are linked in the description.
[ ] New dependencies are explained.
[ ] The source code and documentation can be distributed under the MIT license.
[ ] The source code adheres to code standards.
[ ] New classes, functions, and features are thoroughly tested.
[ ] New, user-facing classes, functions, and features are documented.
[ ] New features are covered in tutorials.
[ ] No files other than source code, documentation, and project settings are added to the repository.

Hi @bruno-pannunzio : although I labelled this work in progress, I would appreciate your review. Specifically, is this level of detail appropriate for an introductory tutorial? Also, I think it is about time to replace the TIFF dataset from FLUTe with our own data before the first release of the library. Preferably in form of PTU files to demonstrate the phasorpy.io module and metadata handling.

Hi @cgohlke! I really like the suggested changes to the tutorials! It makes it much more clear and more direct to select one depending on the needs. Also the addition of the "Applications" sections is great, this can be useful to show the full functionalities of the library without crowding the API tutorials. I think we can work after in useful tutorials for the Applications section.
Regarding the introduction tutorial, I think all are excellent additions.

is this level of detail appropriate for an introductory tutorial

I believe that in general it's okay the level of detail. I would suggest just moving the apparent lifetime section to another tutorial (maybe to an application tutorial?). I think the introduction tutorial is enough if we show the most basic workflow which I think is reached when plotting. I think further analyses can be discussed in more detail in other tutorials. Also, the introduction tutorial is missing hyperspectral images, which would be good to show since it's also an important aspect of the library, and at the moment the introduction tutorial is biased towards FLIM. Maybe we can use the paramecium example used in the cursors tutorial and show the basic workflow until plotting, which shouldn't extend too much the tutorial.

Also, I think it is about time to replace the TIFF dataset from FLUTe with our own data before the first release of the library. Preferably in form of PTU files to demonstrate the phasorpy.io module and metadata handling.

Definitely! This is long due. The problem we have with this is that our instruments only generate FBD files. We should consider reaching someone open to provide us some nice PTU files. Maybe @lmalacrida can help with this.

Thanks for the review!

I think we can work after in useful tutorials for the Applications section.

I'd like to add (not in this PR) a tutorial demonstrating out-of-core processing with dask on one of the tiled datasets that @schutyb recently shared. Let's discuss in the next meeting.

I would suggest just moving the apparent lifetime section to another tutorial (maybe to an application tutorial?). I think the introduction tutorial is enough if we show the most basic workflow which I think is reached when plotting.

I agree, that section stands out. On the other hand, I wanted the introduction tutorial to demonstrate all aspects of the library, which includes converting phasor coordinates, and (currently still missing) cursors and components.

Also, the introduction tutorial is missing hyperspectral images, which would be good to show since it's also an important aspect of the library, and at the moment the introduction tutorial is biased towards FLIM.

True. On the other hand, of the almost 60 functions and classes in the library so far, more than half are specific to FLIM, while only two (?) functions are specific to spectral imaging.
Let's dedicate one section at the end of the introduction tutorial to "Spectral phasors", basically a shortened version of the cursors tutorial. OK?

The problem we have with this is that our instruments only generate FBD files.

FDB is certainly more appropriate than TIFF for the tutorial, but FBD is such a mess of a format that I prefer to not cover it in the main tutorial.

Let's dedicate one section at the end of the introduction tutorial to "Spectral phasors", basically a shortened version of the cursors tutorial. OK?

Great!

FDB is certainly more appropriate than TIFF for the tutorial, but FBD is such a mess of a format that I prefer to not cover it in the main tutorial.

Agree. PTU is more adequate for the tutorial. Let's discuss next meeting candidates to let us use some of their files.

I added the section about spectral phasors and removed apparent lifetimes. In principle, this is ready for review and could be merged. Switching to PTU files and adding a tutorial about apparent lifetimes (which would require a helper function for plotting images) is better done in separate PRs.


Large message payload crashes

Great work!
Issue found: Sending a message larger than 16384Bytes ("TLS maximum message content length setting" in menuconfig) makes system crash.
Same problem when sending DirectMethods with a payload greater than the same value.
A solution (or comment) to fix it, will be greatly appreciated !!
(Note Azure payload specs are about 256KB , and the examples found aroud (without ECC608) work great with big payloads.)
How to  repoduce the issue:
Change lines 289-290 in prov_dev_client_II_sample.c
from :
static char msgText[1024];
sprintf_s(msgText, sizeof(msgText), "{ "message_index" : "%zu" }", msg_count++);
to
static char msgText[20000];
sprintf_s(msgText, sizeof(msgText), "{ "message" : "%0*d "}", 18000,0);
A solution (or comment) to fix it, will be greatly appreciated !!
Have a good Olympics !!!

Hello.
I also have no experience dealing with large payloads in this project.
After connecting to Azure DPS and provisioning to Azure IoT Hub, this project throws away the connection handle and connects to Azure IoT Hub again.
I don't think it's efficient memory management.
In this project, I provisioned to Azure IoT Hub through Azure DPS, and the actual connection to Azure IoT Hub is ECC608-AzureIoT-Connect.
I'm using the above project.
This should have a plain MQTTS connection without the big Azure IoT SDK-C and less memory.
We hope for your reference.


(PUP-8029) Correct decorated strings for better translation

Merge strings for better translations
Remove "%s" and "%f" formatting from translation strings

@Magisus Can you take a look at the basic direction I've gone with this?

CLA signed by all contributors.

@Magisus, can you take another look at this PR. Its updated and I've gotten it to pass the required machines in the ad-hoc pipeline.

switched to 5.3.x and closed and reopened to cause checks to run again

I removed 1 change in lib/puppet/util.rb as it will causes the test tests/i18n/check_puppet_run_messages.rb to fail. I've opened PR-8131 to address that separately.

Sounds like we've got quorum.


Dynamically changing img based on "text"

Is it possible to dynamically change img based on the text set by controller?

Not the way it is currently written. But something like this could work assuming you are using data-src:
module.directive('holder', [
  function() {
    return {
      link: function(scope, element, attrs) {
        if(attrs.holder)
          attrs.$set('data-src', attrs.holder);
        scope.$watch('data-src') function() {
          Holder.run({images:element[0]});
        });
      }
    };
  }]);

I kinda like how the current implementation doesn't produce a watcher though. I'd like to find a way to have both before committing this to the repo. Thoughts?

You are right, having a watcher depends upon the implementation and may not be suitable for every use case. Can we provide a configuration variable or an directive to enable watching, like :
<img holder data-src="" holder-watch>

IMO the watch is actually required.
I am now facing the issue, that the holder can not read dynamic $scope variables, for example:
<img holder
     data-src="holder.js/{{width}}x{{height}}?text={{width}}x{{height}}.">

even though in DOM inspector the variables are set, the holder must have initialized earlier and is not visible. By adding the watch section it works great.


Linux package signing key rotation

We're rotating our Linux package signing key on 2023-01-26. Please see https://www.influxdata.com/blog/linux-package-signing-key-rotation/ for details.

Just attempted to update the key as per above referenced instructions.
First line is not working, wget command is incorrect. Also the URL (https://repos.influxdata.com/influxdata-archive_compat.key) results in 404 error.

FYI, we're in the process of moving the new files into place now. This will be the correct URL but the roll-over is only partially done now. We'll update the blog post when the process is complete.
cc @bnpfeife and @dgnorton

FYI, the current progress is that the DEB archive is done, the RPM is in progress and the regeneration of the index.html and files at the top of https://repos.influxdata.com (ie, the new keys) will be after that.

FYI, the current progress is that the DEB archive is done, the RPM archive is in progress and the regeneration of the index.html and files at the top of https://repos.influxdata.com/ (ie, the new keys) will be after that. We apologize for the interruption and appreciate your patience while the roll-over is in progress.

The roll-over is completed and the blog post migration procedure should now work.

Fyi, now that everything has been signed with the new key since January and nothing should be using the new key, we have revoked the previous signing key (ie, https://repos.influxdata.com/influxdb.key (05CE 1508 5FC0 9D18 E99E FB22 684A 14CF 2582 E0C5)) and updated the keyservers. We're in the process of updating https://repos.influxdata.com/influxdb.key now to contain the updated revoked key.

We're in the process of updating https://repos.influxdata.com/influxdb.key now to contain the updated revoked key.

This is now done.


livereload has returned

Simple one.
livereload has been re-introduced into dist/autoComplete.js and is causing a slowdown in Javascript execution.
It is not present in dist/autoComplete.min.js so that's the one everyone should use until this is resolved.

Hello @Jammmmm,
Good catch! Thanks for reporting this issue.
I'll make sure to remove it as soon as possible.
Have a nice day! :)


RuntimeError: stack expects each tensor to be equal size, but got [64] at entry 0 and [68] at entry 12

When I try to run main.py in Roberta, I met with the following problem. I  wanna know do someone else also had this problem？Here I screenshot the error.

Can you please post the exact command you used?

Closing assuming it was solved, please re-open if needed


Can I use demo server wss://demo.livekit.io?

If so, where to find token?

unfortunately not. that server is not for public use. Please set up your own, instructions here


Update widget guide to include configuration

Now that widgets include configuration as well as rendering the widget spec https://github.com/ijl20/tfc_web/blob/master/tfc_web/static/smartpanel/widgets/README.md needs to be updated. This really needs to include documentation of the various utility configuration management routines provided.

Closed by  0997b15, though I haven't included documentation for widget.js


bug(web): Error occurs when null value given for saving directory

Describe the bug
Error occurs when null value given for saving directory
To Reproduce
Steps to reproduce the behavior:

Go to mainpage in web app
Give null value to directory
See error

Expected behavior
We should implement error handling by adding a null check to the backend function. Simultaneously, we need to display a warning message to the user. As a preventive measure, we can redirect null directories to the root location.
Screenshots
To be added later
Desktop:

OS: Windows 10
Browser: Chrome 116.0.5845.111
Environment : GitHub Codespaces

Can be evaluated with #17 task.


http-client-java, add HttpLoggingPolicy to unbranded

The reason we didn't have it before, is likely that this HttpLoggingPolicy class was not public in clientcore.

No changes needing a change description found.

You can try these changes here

🛝 Playground
🌐 Website
📚 Next docs


Allow custom name for submarinerConfig

Currently submarinerConfig needs to be named submariner. Allow for a custom name to be specified. Also make submarinerConfig controller log more verbose.

@Jaanki  - if this still relevant, please open an issue to track in Jira

There doesn’t seem to be a use-case for this. A lot of the addon assumes that the SubmarinerConfig is named submariner.


docker hub organization will stop free tiers

Need to migrate to hub.ncsa.illinois.edu?
Can image still be public?

This has been resolved by requesting the github for the organization registering. Also, the docker build and push script has been made for easier migration if needed


ChildItem causes problems

Hello,
I'm almost done. There is one last problem:
How to remove an ChildItem that has no parent?
When i drag a child around it can temporary inserted everywhere. It can be that it has no parentitem. Then this childitem shall be removed and added to the nearest parent item.
I call notifyItemMoved every time a item gets moved. For the parent the drag&drop behaviour works fantastic. Also swiping is implemented and causes no problems. Only dragging childitems causes problems.

It would be very helpful if you could implement notifyItemMoved(from, to). Because tinker with normal recyclerview notifyXXX methods and the parent/child notify methods you guys integrated doesnt work well.

I don't think I have a good answer to your question. This library was designed around the idea of children always living under a parent, not sure we cover your situation properly.
I agree mixing the different notify methods is not very good, we are working towards notifyMoved methods for the next version, tracked in #88.
That being said I don't know that we would move a child to be "Parentless", only to being contained within a parent. I'll try to ping you when the PR goes up for this to get your input on the direction we take.

Ok I understand that.I think it would be sufficient if the user can swap parents with parents (I already solved that and it works). And inside a parent you can swap children. I think then you would get a very efficient solution for it that doesnt dissolute.

Resolved in 2.1.0.


error with demo Vue 2 + composition API

Describe the bug
I follow this demo
Vue 2 + composition API: CodeSandbox demo Vue 2 + composition
got error like ERROR Error: "linear" is not a registered scale

how to fix
same error: https://github.com/sgratzl/chartjs-chart-wordcloud/issues/4
chart.js 3 is ESM tree shakeable and requires to register all components that you are going to use. Thus, you have to register the linear scale manually

so add this line
import { Chart, registerables } from 'chart.js';Chart.register(...registerables);

And plugin zoom is also needed.
 npm i chartjs-plugin-zoom

import { Chart, registerables } from 'chart.js';
import zoomPlugin from "chartjs-plugin-zoom";
Chart.register(...registerables, zoomPlugin);


Html Report is not getting generated when there are 0 warnings and errors

As the title says.
When I introduce an error, I can see the report being generated properly.
I have configured a custom tab in our CI pipeline to show the HTML report (which is part of the artifacts of our build), and would like to see a "green no errors" report there, as opposed to nothing.
The reporter() function exposed by this module is not called when there are no errors/warnings - Could be an issue with gulp-jshint itself, but can we workaround that here in the reporter plugin?

@chandru9279 It is supposed to do nothing when there is no error.
You think it should generate html report in case there is no jshint error?

Would be great if it generated an "All Okay no errors" report file. I am using Custom Tabs on my CI, and would be great if it reported no JSHINT issues, and a list of files that were processed.

I have to agree with chandru9279.
I just starting using this reporter today and I must say I love it.  Great job.
I would like for it to still create an html page if there are no error found.  The reason for this is after I correct a problem the html page still reflects the JavaScript error.
For now my work-a-round is to leave at least one error in my JavaScript so this report is always generated and I can see when my corrections take effect.
Great tool.  Would be very helpful if a simple html file was still generated even if not errors are found.
Thanks,
Bob

Yeah, that's fair enough. Maybe can i expect PR from other open source contributors?

Why not just use gulp-clean package before jshint to clean the previous report?
In thin case if there is no report file - everything is ok with your code.

Why not just use gulp-clean package before jshint to clean the previous report?
In thin case if there is no report file - everything is ok with your code.


[WebJobs/EventHubs] Apply review feedback

https://apiview.dev/Assemblies/Review/baa01eaa859b4d169a781df9517f80e9

@JoshLove-msft, @pakrym:  With the extensions package having hit its GA release, is this issue still needed or can I close it out?


Share resources between Flatmate programs.

We have been discussing the need for Flatmate apps to be able to share objects between them, particularly Akka systems. Doing so should reduce the number of threads in use significantly e.g. perhaps by a factor of 5 for one of our own apps. This should reduce memory usage, and perhaps also improve CPU usage given the reduction in pinned IO threads polling EPOLL.
One thought was to leverage JNDI to share objects.

Is there anything else to do on this one or did we forget to close it when the JNDI sharing PR was merged?

I think we can close it. :-)


Add a Loader for Better User Experience During Content Loading

Description:
Currently, there is no visual indicator when content is being loaded except the loading text that too has a slight delay, which may cause users to feel that the application is unresponsive during these times. I suggest adding an animated loader (or a simple loader) to enhance the user experience by providing a smoother and more intuitive feel.
By implementing a loader, the users will have a clear indication that something is happening behind the scenes, which will improve the perceived performance of the app and reduce the potential for confusion.
Suggested Changes:
Introduce an animated loader or a simple loading spinner during data fetches or other loading states.
Ensure the loader is displayed consistently across different parts of the app where loading occurs.
The loader should disappear as soon as the content is fully loaded.
I would love to take on this task and contribute the application. Could you please assign this issue to me?

Sounds good to me. Please go ahead and make a PR

This already happens on some pages, i think maybe the editor page has it? Could use that as a reference.
Minimal implementations are preferable because when we switch to SSR for pages there is no loader.


SAK-28978 avoid 404 on login in Firefox because of issues when escaping ...

...the tilde in the
My Workspace site id and the inlining code

This needs review... Is there ever a case where we would need to escape the tool id? Am I fixing this in the correct place?

Well that seems to fix it in on FireFox and does not break it on Chrome and Profille seems to be working as well both places..  I am happy to merge this.  But I am left wondering why this fixes it.  I can see no evidence that dashboard uses org.sakaiproject.portal.util.ToolUtils.

Correct, I don't think this is Dashboard related. I think this is SiteHandler.java around line 360.  If we are inlining, then ToolUtils.getPageUrl and do a res.sendRedirect(pagerefUrl)
My guess is Chrome is being nice and un-escaping for us to avoid the bug.

I say we get this in and test it out. I get this error constantly, I will soon tell you if it goes away ;)

It is in.  I will pull this into my copy and then continue my line of inquiry.

Yes, this seems to do it. I guess it's preferable to PR 303, though they're both voodoo.

As to whether we might even need to escape it, it's unlikely to happen in practice. However in some old versions of Sakai you can set the site ID. You can still do it as administrator. That could require it to be escaped. I was more specific, allowing leading ~ unescaped only. But if there's a problem in the dashboard/wicket/sakai interface, most likely it's not unescaping somewhere. So if dashboard is ever in a site that needs to be escaped, the actual bug would have to be fixed.

I spent a fair amount of time trying to find the real problem. I found that Wicket is calling getRequestURI, and that replacing %7E with ~ there fixed it. So someone seems to be taking the request URI and not unescaping it. But it's unclear to me where that would be. I don't see why wicket would care what the siteId is. I instrumented site service,get Site, and didn't find it ever being called with a site ID starting in %7E. At that point I gave up trying to figure out what's going on, but it seems likely that somewhere there needs to be an unescape.

answering csev: it's not that dashboard uses ToolUtils. It's that this fix causes the URL in the left margin to be written with ~ rather than %7E. That works around the wicket / dashboard problem, whatever it is.

Just looked at the wicket 1.4.x source. It does things like get pathInfo from requestURI with a substring. But requestURI is not decided, and pathinfo is. This problem occurs several places in the code. I'm not up for fixing the innards of Wicket, I don't think. I looked at the next version of Wicket. The code has been rewritten. It's not obvious that the same confusion exists there.


[sync] crypto/x509: use SAN when comparing certs during path building

Per RFC 4158 Section 2.4.2, when we are discarding candidate
certificates during path building, use the SANs as well as subject and
public key when checking whether a certificate is already present in
the built path. This supports the case where a certificate in the chain
(typically a leaf) has the exact same subject and public key as another
certificate in the chain (typically its parent) but has SANs which don't
match.

released in v0.12.1


fix warning for discarding a nodiscard

In MSVC the std::array::operator[] is [[nodiscard]] and the return value is discarded in snapshot.hpp
I only got this warning when using MSVC.
Compilers tested:
MSVC 19.29.30038.1
gcc-9.3

Codecov Report

Merging #728 (2042be6) into master (9460e04) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #728   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          112       112
  Lines        14139     14139
=========================================
  Hits         14139     14139

Impacted Files
Coverage Δ

src/entt/entity/snapshot.hpp
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9460e04...2042be6. Read the comment docs.


Zero-shot QA evaluation

How to perform zero-shot QA evaluation on datasets like MSVD-QA, MSRVTT-QA, TGIF-QA, ActivityNet-QA? Could we just follow the pipeline of Video-ChatGPT？

there isnt a .sh file i believe to run the evaluation


SimulatedAnnealingSampler.sample method return type incorrectly documented

Description
The return type of the SimulatedAnnealingSampler.sample method is said to be "a dimod Response object" in the docs, a class which is nowhere documented in the neal or dimod docs.
To Reproduce
View here.
Expected Behaviour
The documentation should be changed to reflect that actual return type of SimulatedAnnealingSampler.sample, namely SampleSet.
Environment:
N/A

Agree! Thanks for the bug report!


Default column name for FKs

Here's the deal, i have my fk with columnName defined in references, and also i have @Column definition that put name default as i can't define name in it...  so on update im getting SQLexception that default name (my variable name) does not exists in db as a field, and it make sense. But i want that field associated to db name...i can't even...any solution?
P.S. I update with update transaction using gson to convert data i receive.

need more information. be helpful with sample code. This is a couple months old so close this if you had your question answered.

i found solution using @SerializedName and some name tricks. But still you should add support for private foreign keys. At this moment i can't use private.


Flyway behaves differently with MSSQL & MySQL

Which version and edition of Flyway are you using?
flyway: 5.1.4
spring-boot: 2.0.1
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Spring Boot Auto-Config.
Which database are you using (type & version)?
MySQL 5.7.17-13
MS SQL Express 14.0.2002
Which operating system are you using?
Windows 10
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
Spring boot application.yaml:
//MS SQL
spring:
profiles: test_flyway
flyway:
enabled: true
baseline-on-migrate: false
baseline-version: 2
locations: classpath:db/migration/test
schemas: flyway_test
datasource:
url: jdbc:sqlserver://${SQL_URL}:${SQL_PORT};databaseName=flyway_test
username: ${SQL_USER}
password: ${SQL_PASSWORD}
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
jpa:
database: sql_server
properties:
hibernate:
dialect: org.hibernate.dialect.SQLServer2012Dialect
//MySQL
spring:
profiles: test_flyway
flyway:
enabled: true
baseline-on-migrate: false
baseline-version: 2
locations: classpath:db/migration/test
datasource:
url: jdbc:mysql://${MySQL_URL}:${MySQL_PORT}/flyway_test
username: ${MySQL_USER}
password: ${MySQL_PASSWORD}
driver-class-name: com.mysql.jdbc.Driver
jpa:
database: mysql
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
What did you expect to see?
baseline-on-migrate: Whether to automatically call baseline when migrate is executed against a non-empty schema with no metadata table. This schema will then be baselined with the baselineVersion before executing the migrations.
For MS SQL I have this database structure:
Database: flyway_test;
Schema: flyway_test;
Tables: [flyway_test.table1]
For MySQL I have this database structure:
Schema: flyway_test;
Tables: [flyway_test.table1]
I run this migration script for MySQL:
USE flyway_test;
CREATE TABLE table2 (
id2 int auto_increment NOT NULL PRIMARY KEY,
user_name2 varchar(255));
I run this migration script for MSSQL:
USE flyway_test;
GO
CREATE TABLE flyway_test.table2 (
id2 int IDENTITY(1,1) NOT NULL,
user_name2 varchar(255),
PRIMARY KEY(id2));
When I run given Spring Boot application with properties above for MS SQL, the property of baseline-on-migrate does not work: Flyway creates flyway_schema_history either way and continues with migration.
When I run given Spring Boot application with properties above for MySQL, the property of baseline-on-migrate works and I get Error: Found non-empty schema(s) flyway_test without schema history table! Use baseline() or set baselineOnMigrate to true to initialize the schema history table.

This is most likely due to an error in your setup somewhere. Could it be that you initialize a different SQL Server database as the one you point Flyway to?
Please share a small test repo that reproduces the issue.

Closing due to lack of response.


Background color for the placeholder still appears

Although everything is nice about this control. the background color in the placeholder does not go away. I understand that author published a version that removes it, but I was not able to get the update with pod
Thanks a lot in advance

Hello @tssik,
Can you please explain what does mean? I don't understand the question. "the background color in the placeholder does not go away".
Maybe you can upload a screenshot?

Hi, first of all let me apologize for the late reply and also congratulate you for the great control. It is very handy actually and well built.
Referring to the screenshot, I have two AnimatedTextInput controls but the background color of the placeholder is red and I was not able to get rid of it.
I am using version 0.30 (also tried 0.31)
From the publishing history, I saw that you have the following comment "Remove placeholder layer background color" which I assume that is related to the issue I am facing.
I would really appreciate the help
Waiting for your answer
Thanks

Hello @ttsik
Yes, by mistake I pushed a version with a red background color in version 0.3.0.
Please update the pod to version 0.3.2, it should be fixed. Let me know if the problem is still happening.
And thank you for your comments.
I am closing the issue, but feel free to reopen in case you try 0.3.2 and still happens.


Version 3.1.3 release

I made a mistake here. It should have been 2.1.3. I'm currently deciding what to do about this.

So it was just the title of this PR that was inaccurate, and the release I created. I will update the title of this PR, and re-create the release.


Missing script deploy

$ cd redux-devtools/examples/counter/
$ npm install

According to the doc, we should npm run deploy to make a production build. But unfortunately that doesn't work. There is no entry for deploy in the scripts section of the package.json
$ npm run deploy
npm ERR! Linux 3.19.0-56-generic
npm ERR! argv "node" "/home/siddiq/.local/bin/npm" "run" "deploy"
npm ERR! node v0.10.31
npm ERR! npm  v2.13.4

npm ERR! missing script: deploy
npm ERR!

Am I missing something?

Here is package.json of example/counter/
{
  "name": "counter-redux",
  "version": "0.0.0",
  "description": "Counter example for redux",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/gaearon/redux-devtools.git"
  },
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/gaearon/redux-devtools/issues"
  },
  "homepage": "https://github.com/gaearon/redux-devtools#readme",
  "dependencies": {
    "react": "^0.14.6",
    "react-dom": "^0.14.6",
    "react-redux": "^4.1.0",
    "redux": "^3.1.1",
    "redux-thunk": "^1.0.3",
    "material-ui": "^0.14.4"
  },
  "devDependencies": {
    "babel-cli": "^6.3.17",
    "babel-core": "^6.3.17",
    "babel-loader": "^6.2.0",
    "babel-preset-es2015-loose": "^6.1.3",
    "babel-preset-react": "6.3.13",
    "babel-preset-stage-0": "^6.3.13",
    "node-libs-browser": "^0.5.2",
    "react-hot-loader": "^1.3.0",
    "redux-devtools": "^3.0.1",
    "redux-devtools-log-monitor": "^1.0.2",
    "redux-devtools-dock-monitor": "^1.0.1",
    "webpack": "^1.9.11",
    "webpack-dev-server": "^1.9.0"
  }
}


add #3 (New-PSOneQRCodeURI)

See #3 copied and adjust for Version 2.3

Uploaded 2.4.1 to the gallery. Please double-check and provide feedback whether that version now works for all. Thx!

Uploaded 2.4.1 to the gallery. Please double-check and provide feedback whether that version now works for all. Thx!


Update sbt-mdoc to 2.2.18

Updates org.scalameta:sbt-mdoc from 2.2.3 to 2.2.18.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "sbt-mdoc" } ]

labels: sbt-plugin-update, semver-patch

Superseded by #240.


Invalid query is generated: For field=BitField

Hi all, thanks for your work on this. Noticed the below when testing version 2.8.1 with not yet supported Django 3.1.1. However, it works as expected up to version 3.0.10. Just adding this here fwiw or any that misinterpret "Django 2.2 or newer" :-).
models.py:
class Book(models.Model):
    BitField = models.BooleanField(db_column="BitField", default=0)

query:
queryset = Book.objects.filter(BitField=True)
Generated T-SQL (Django 3.1.1):
SELECT TOP 10 dbo.Book.PK, dbo.Book.BitField
FROM dbo.Book
WHERE NOT dbo.Book.BitField

-- For Django up to 3.0.10 the correct T-SQL is generated:
-- ... WHERE dbo.Book.BitField = 0

Error:
An expression of non-boolean type specified in a context where a condition is expected, near 'BitField'.

Had the same issue. We had to downgrade to 3.0.10 version of Django and the problem disappeared.
Dependencies (Not working):

Django==3.1
django-mssql-backend==2.8.1
pyodbc==4.0.30

That issue (and more) are solved in this pull request #64.

Same happen to me but in the User Table for the fields: is_staff, is_active, is_superuser
Django==3.1
django-mssql-backend==2.8.1
pyodbc==4.0.30

Does anyone know if there's an issue open on djangoproject.com about this? (I figure there must be one but can't find it)

Does anyone know if there's an issue open on djangoproject.com about this? (I figure there must be one but can't find it)

Issue exists in django3.1.6 also. When we can expected the fixed version in PyPI

Tested this morning on django3.2 - issue is still present

Issue still persists with django 3.2 and django-mssql-backend 2.8.1. Has any progress been made to fix this?

Inexplicably (or perhaps explicably), there's an 🅼🆂 fork that doesn't show up in the forks, that addresses this if i'm not mistaken. It also allows setting encoding and decoding for the pyodbc connection among other things.


NFC: fix a couple of typos, found by codespell.

r? @matklad
(rust_highfive has picked a reviewer for you, use r? to override)

:pushpin: Commit 4a64d05 has been approved by alexcrichton

:broken_heart: Test failed - status-travis

CI was hanging
$ rustup target add $ALT
info: downloading component 'rust-std' for 'i686-apple-darwin'
 45.2 MiB /  45.2 MiB (100 %)  31.1 MiB/s ETA:   0 s
info: installing component 'rust-std' for 'i686-apple-darwin'
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

@bors: retry

:hourglass: Testing commit 4a64d05e864d8994579e4e3b9c6c4a855724bd67 with merge 4b7b901f4318ad1661ea8ef16fe58d7ce14c4d3c...

:broken_heart: Test failed - status-travis

Hm, status shows an increase in macosx job backlog...
Maybe we should wait a day or so...
https://www.traviscistatus.com/

@bors: retry

:hourglass: Testing commit 4a64d05e864d8994579e4e3b9c6c4a855724bd67 with merge 2f7cf4a6db13e7e240b038971fc2d24196608e10...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 2f7cf4a6db13e7e240b038971fc2d24196608e10 to master...


lib/lib.dom.d.ts a lot of attributes of HTML Dom Elements changed as required !

I checked a lot of HTML Element Definitions and the all have some problems. All element fields changed as required but it is not right. A lot of attributes of HTML elements should be not required !.

Search Terms: required type problems.
Code
interface HTMLInputElement extends HTMLElement {
    /**
     * Sets or retrieves a comma-separated list of content types.
     */
    accept: string;
    /**
     * Sets or retrieves how the object is aligned with adjacent text.
     */
    /** @deprecated */
    align: string;
    /**
     * Sets or retrieves a text alternative to the graphic.
     */
    alt: string;
    /**
     * Specifies whether autocomplete is applied to an editable text field.
     */
    autocomplete: string;
    /**
     * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.
     */
    autofocus: boolean;
    /**
     * Sets or retrieves the state of the check box or radio button.
     */
    checked: boolean;
    /**
     * Sets or retrieves the state of the check box or radio button.
     */
    defaultChecked: boolean;
    /**
     * Sets or retrieves the initial contents of the object.
     */
    defaultValue: string;
    disabled: boolean;
    /**
     * Returns a FileList object on a file type input object.
     */
    files: FileList | null;
    /**
     * Retrieves a reference to the form that the object is embedded in.
     */
    readonly form: HTMLFormElement | null;
    /**
     * Overrides the action attribute (where the data on a form is sent) on the parent form element.
     */
    formAction: string;
    /**
     * Used to override the encoding (formEnctype attribute) specified on the form element.
     */
    formEnctype: string;
    /**
     * Overrides the submit method attribute previously specified on a form element.
     */
    formMethod: string;
    /**
     * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
     */
    formNoValidate: boolean;
    /**
     * Overrides the target attribute on a form element.
     */
    formTarget: string;
    /**
     * Sets or retrieves the height of the object.
     */
    height: number;
    indeterminate: boolean;
    /**
     * Specifies the ID of a pre-defined datalist of options for an input element.
     */
    readonly list: HTMLElement | null;
    /**
     * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
     */
    max: string;
    /**
     * Sets or retrieves the maximum number of characters that the user can enter in a text control.
     */
    maxLength: number;
    /**
     * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
     */
    min: string;
    minLength: number;
    /**
     * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
     */
    multiple: boolean;
    /**
     * Sets or retrieves the name of the object.
     */
    name: string;
    /**
     * Gets or sets a string containing a regular expression that the user's input must match.
     */
    pattern: string;
    /**
     * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
     */
    placeholder: string;
    readOnly: boolean;
    /**
     * When present, marks an element that can't be submitted without a value.
     */
    required: boolean;
    selectionDirection: string | null;
    /**
     * Gets or sets the end position or offset of a text selection.
     */
    selectionEnd: number | null;
    /**
     * Gets or sets the starting position or offset of a text selection.
     */
    selectionStart: number | null;
    size: number;
    /**
     * The address or URL of the a media resource that is to be considered.
     */
    src: string;
    /**
     * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
     */
    step: string;
    /**
     * Returns the content type of the object.
     */
    type: string;
    /**
     * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
     */
    /** @deprecated */
    useMap: string;
    /**
     * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
     */
    readonly validationMessage: string;
    /**
     * Returns a  ValidityState object that represents the validity states of an element.
     */
    readonly validity: ValidityState;
    /**
     * Returns the value of the data at the cursor's current position.
     */
    value: string;
    valueAsDate: any;
    /**
     * Returns the input field value as a number.
     */
    valueAsNumber: number;
    webkitdirectory: boolean;
    /**
     * Sets or retrieves the width of the object.
     */
    width: number;
    /**
     * Returns whether an element will successfully validate based on forms validation rules and constraints.
     */
    readonly willValidate: boolean;
    /**
     * Returns whether a form will validate when it is submitted, without having to submit it.
     */
    checkValidity(): boolean;
    /**
     * Makes the selection equal to the current object.
     */
    select(): void;
    /**
     * Sets a custom error message that is displayed when a form is submitted.
     * @param error Sets a custom error message that is displayed when a form is submitted.
     */
    setCustomValidity(error: string): void;
    /**
     * Sets the start and end positions of a selection in a text field.
     * @param start The offset into the text field for the start of the selection.
     * @param end The offset into the text field for the end of the selection.
     * @param direction The direction in which the selection is performed.
     */
    setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void;
    /**
     * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
     * @param n Value to decrement the value by.
     */
    stepDown(n?: number): void;
    /**
     * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
     * @param n Value to increment the value by.
     */
    stepUp(n?: number): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

Expected behavior:
It should be like old versions all attributes should be optional. ? is missing.
interface HTMLInputElement extends HTMLElement {
    /**
     * Sets or retrieves a comma-separated list of content types.
     */
    accept?: string;
}

Actual behavior:
interface HTMLInputElement extends HTMLElement {
    /**
     * Sets or retrieves a comma-separated list of content types.
     */
    accept: string;
    ...
}

It should be like old versions all attributes should be optional.

Why? accept, for example, is always set.

I am sorry I confused something about problems. I found it. The problems
occured from @types/prop-types dependency. They changed something about
React.SFC and now when I tried to create a stateless functional component
it wants to from me to fill all proptypes for depend HTML Dom element.
Because as I understand they loop on the component and which attributes
defined as required they want to fill prop types of it.
As I understand HTMLInputElement is definition for the HTML Input DOM. In
this case they use it like props of HTML Input Dom. It is wrong.
On Tue, Aug 21, 2018 at 1:16 AM Ryan Cavanaugh<EMAIL_ADDRESS>wrote:

It should be like old versions all attributes should be optional.
Why? accept, for example, is always set.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/TypeScript/issues/26561#issuecomment-414481047,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA32gg4a0n-hkiKzg8gTOPjzNT6Yf9eDks5uSzU0gaJpZM4WEtc6
.

--
Kamil BÜKÜM
Software Developer

Web Site : www.oopdev.org

Thank you so much for quick answer.
On Tue, Aug 21, 2018 at 1:42 AM kamil büküm<EMAIL_ADDRESS>wrote:

I am sorry I confused something about problems. I found it. The problems
occured from @types/prop-types dependency. They changed something about
React.SFC and now when I tried to create a stateless functional component
it wants to from me to fill all proptypes for depend HTML Dom element.
Because as I understand they loop on the component and which attributes
defined as required they want to fill prop types of it.
As I understand HTMLInputElement is definition for the HTML Input DOM. In
this case they use it like props of HTML Input Dom. It is wrong.
On Tue, Aug 21, 2018 at 1:16 AM Ryan Cavanaugh<EMAIL_ADDRESS>wrote:

It should be like old versions all attributes should be optional.
Why? accept, for example, is always set.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/TypeScript/issues/26561#issuecomment-414481047,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA32gg4a0n-hkiKzg8gTOPjzNT6Yf9eDks5uSzU0gaJpZM4WEtc6
.

--
Kamil BÜKÜM
Software Developer

Web Site : www.oopdev.org

--
Kamil BÜKÜM
Software Developer

Web Site : www.oopdev.org


compared to other packages from grblas import ... is 10 times slower

Hi @eriknw
This may be a minor issue which I noticed a while back: from grblas import ... is unexpectedly slow.  Pls take a look at this notebook and let me know if my concern is valid.

Yeah, this is a pain point and is a valid issue.  Thanks for raising it.
Profiling reveals that the majority of time is spent creating new BinaryOp objects: floordiv, rfloordiv, absfirst, abssecond, isclose, and numpy.mod.  We compile these with numba, which is slow.  We should be able to speed up imports by registering these lazily and only compile them if and when they're used.
grblas has a lot of dependencies to import such as numpy, pandas, scipy, and numba, and using cffi bindings to GraphBLAS can also be slow when initializing.  So, we can make importing grblas much faster, but it probably won't ever be "fast".  I may someday find the time to continue with cygraphblas (which is basically Cythonized grblas), which I expect will be much faster to import (and to use).


Account access restriction

See #192 and https://ethresear.ch/t/account-read-write-lists/285

This PR seems contains part of #191 or is based on assuming that #191 is ready?

@hwwhww The access prefix list is in a format which corresponds to how state will be stored according to #191. But it neither changes nor relies on how state is actually stored.

Alongside the improvements suggested by @pipermerriam I've also made two other changes:

Conversion from access lists as specified in the transaction to read/write lists (via to_prefix_list_form) is removed from the Message object. I think this should happen in the Transaction object right after it gets decoded.
Access restrictions are checked in State.delete_account, State.account_has_code_or_nonce, and State.account_is_empty. I'm not sure what to do with State.account_exists and State.touch_account -- what state do these functions actually access? I wouldn't be surprised if we had to make some changes in the VM implementation in that regard anyway so this might be out of scope of this PR.

I'm not sure what to do with State.account_exists and State.touch_account

These should in theory read/write all parts of the account necessary for it exist in the state trie.  That behavior needs to be defined in whatever EIP this is part of as that could mean any number of things.  To me, the intuitive thing to do is to have read/write all parts of the account.

FYI, standard procedure for merging pull requests in this repo has been that once it's marked as approval, anyone is welcome to merge.  Normally that has been left to the person who opened the pull request.
We also have been using the  "Needs Review" and "Ready for Merge" labels for additional signalling in this department.

Will have to make some changes -- according to the spec there is only one "access list", not separate "read" and "write" lists.


Don't select scan area of sonar sensor

Fixed #389

Download:
Environment: QT=5.12, ARCH=32, PYTHON_PATH=C:\Python37
Environment: QT=5.12, ARCH=64, PYTHON_PATH=C:\Python37-x64


docs: add quickstart section back to the readme

fixes quickstart link from kubeless.io

Trivial change (High priority), merging without review


[mesheryctl] UX Regression: system start with helm-based deployment

See mesheryctl Command Tracker for current status of commands.
Current Behavior
Let's give additional consideration to the user experience when someone attempts to start Meshery on a Kubernetes cluster that has a prior (helm-based) deployment.
➜  ~ mesheryctl system status
Meshery is not running. Run `mesheryctl system start` to start Meshery.
➜  ~ mesheryctl system start
Starting Meshery...
⣾ Deploying Meshery on Kubernetes Error: failed to start Meshery
See https://docs.meshery.io/reference/mesheryctl/system for usage details
: cannot start Meshery: rendered manifests contain a resource that already exists. Unable to continue with install: ServiceAccount "meshery-operator" in namespace "meshery" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "meshery"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "meshery"
Usage:
  mesheryctl system start [flags]

Flags:
  -h, --help              help for start
  -p, --platform string   platform to deploy Meshery to.
      --reset             (optional) reset Meshery's configuration file to default settings.
      --skip-update       (optional) skip checking for new Meshery's container images.

Global Flags:
      --config string    path to config file (default "/Users/lee/.meshery/config.yaml")
  -c, --context string   (optional) temporarily change the current context.
  -v, --verbose          verbose output
  -y, --yes              (optional) assume yes for user interactive prompts.

This experience is far removed from the previously, highly curated / guided experience.
Desired Behavior

There’s no specific Meshkit error code provided. Ideally, no error code is shown, however. We need to anticipate that users will start and stop clusters that have Meshery deployments.
system start’s behavior should be such that if a deployment existing, then that deployment should be reinitialized.

Environment

Host OS: Mac
Meshery Server Version: stable-v0.5.67
Meshery Client Version: stable-v0.5.67
Platform: Kubernetes

Contributor Resources

mesheryctl Contributing Guide
Beginner's guide to contributing to Meshery and mesheryctl
mesheryctl Command Tracker
Meshery CLI Commands and Documentation
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

This is similarly related to #4578


⚠ Mobitopup has degraded performance

In a2be0cd, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 5824 ms

Resolved: Mobitopup performance has improved in 4a8b628.


pubsub/pstest: server re-delivers outstanding messages

I've been using pstest and noticed that Receive keeps invoking callbacks on the same messages over and over again.
The easiest way to reproduce this is to change this test a little: increase maximum count to, say, 20, and log message content. You'll notice that after counter reaches 10, messages will keep repeating, even though they've been ACKed.
First I thought that it is OK behaviour for at-least-once delivery, but it seems that pstest server just keeps re-delivering outstanding messages even if ACK deadline has not passed. I've added simple check here, and it fixed this behaviour.

Thanks, that is exactly the right fix. See https://code-review.googlesource.com/#/c/gocloud/+/24670.
And thanks for using pstest. Suggestions and contributions welcome.


FAQ / SEO-optimized page for OOM errors in CockroachDB

When one googles "CockroachDB OOM" and "CockroachDB out of memory", you get hit with a swathe of people posting issues with that title on the crdb forums or on our GitHub, and it's hard to navigate what one should actually do in this instance.
It would be nice if instead there a single page that contained tuning parameters for memory issues:

--cache -- for RocksDB
--max-sql-memory -- for maximum sql memory
sql.distsql-temp_storage.workmem -- for disk spilling

and the tradeoffs which setting each of those higher or lower.
Ideally this would be the first result on Google too!
Related issues:

https://github.com/cockroachdb/docs/issues/6087
https://github.com/cockroachdb/docs/issues/5923
https://github.com/cockroachdb/docs/issues/5924

We need to prioritize this work and move it up. It is a frequent request.

cc @jseldess do you mind finding someone who could take this on?

I think there are several existing pages where we could add some guidance on tuning parameters for memory-related issues.
Some pages I have in mind:

https://www.cockroachlabs.com/docs/stable/cluster-setup-troubleshooting.html#memory-issues
https://www.cockroachlabs.com/docs/stable/recommended-production-settings.html#cache-and-sql-memory-size
https://www.cockroachlabs.com/docs/stable/common-errors.html
https://www.cockroachlabs.com/docs/stable/query-behavior-troubleshooting.html
https://www.cockroachlabs.com/docs/stable/sql-tuning-with-explain.html

We could just add a section and some guidance + an example or something. Then it would be just a matter of counting on the SEO to direct searchers to our docs.
@rmloveland
This issue seems to be storage-related. Is there an existing page to which you would recommend adding some docs on tuning parameters for memory issues?

it can be a sql execution layer too -- most of my problems have been there.

This issue seems to be storage-related. Is there an existing page to which you would recommend adding some docs on tuning parameters for memory issues?

I'm not sure if there's an existing page I can think of, beyond the things that have been suggested above (--cache in startup params, etc.).  As Oliver says, it pops up in multiple layers, I don't think it is confined to one layer (based on seeing things people type in Slack, etc. - I have not been lucky enough to OOM one yet)

This is SQL Execution, KV, and Storage related. However, it usually presents in SQL and the controls available mostly affect SQL. I'd work with @jordanlewis and @asubiotto to make a dedicated page on how to handle this. Its also a good place to talk about various improvements like vectorized execution the reduce OOMs.

@taroface would this issue qualify for some of the troubleshooting knowledge-base docs you worked on?

Those docs were more about edge cases. There's one related to schema changes that applies here:

https://cockroachlabs.atlassian.net/wiki/spaces/TS/pages/1171784024/Memory+leak+from+rapid+schema+changes

However, that issue was fixed in v20.1.10.

I agree with @ericharmeling that https://www.cockroachlabs.com/docs/stable/recommended-production-settings.html#cache-and-sql-memory-size can be expanded according to the three issues linked in the description. cc @mikeCRL who is updating that doc.
(That covers cache and max-sql-memory; not sure about sql.distsql-temp_storage.workmem.)

@mikeCRL, @taroface, @ericharmeling, what's the current state of this?

@jseldess This hasn't been scheduled. I have some ideas for how to further clarify and break down this work. I'll discuss with @taroface this week and update the issue.

@taroface Will be making a first pass at breaking this down - finding a format to log the settings and symptoms and where we might document each, with an eye toward initial MVC changes.

See also #3963, I think


Music data preservation

Overview
All music data now is preserved in json Files.
Workflow

Added two methods for storing and retrieving data

save_music responsible for storing the books
read_music responsible for retrieving the books
data are stored in the albums.json

@NahnahAJ  Thank you for the review :smile:


Update security-authentication.md

Modified the text a bit.

@rajarvgit : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Concordance

Requirements
Given a word in a text being displayed, there should be a way to see a concordance of that word over a collection of text in the language. The concordance should have the following features:

It should display at least some minimum number of entries, if those entries exist.
Each line of output should show the word with at least a minimum window of surrounding words
The query word should be highlighted in some way for each appearance on each output line
The search should be case insensitive (one use of the concordance is to see whether a given word is usually capitalized)
The index should be over any specified set of text files, not just the ones currently being annotated

It would be delightful, but not crucial, to have the following features:

Search is available over phrases instead of just individual words
If more entries for the word than the minimum number are available, the user should be able to scroll/less through them
All occurrences of the search term in the output should appear in the same column (like in a published concordance)
The option to search over stems might be useful

Native Script vs Romanization
I lean toward operating over Romanized text, but that does create a bit of weirdness in the tool. Languages that are natively in Latin script are not put through uroman, so they don't have that row. Thus, the interface would be different for different languages. Perhaps we should index both?

Concordance has been added. New feature requests are new issues.


Changing orientation of the screen - does not work.

Installing a new instance on

RPI 3 Model B V1.2
with OS:
Raspberry Pi OS with desktop
Release date: February 21st 2023
System: 64-bit
Kernel version: 5.15
Debian version: 11 (bullseye)

via > Preferences Menu > Screen Configuration: does NOT work
via > /boot/config.txt and xrandr: does NOT work
via > /boot/config.txt and display_hdmi_rotate=3: does NOT work

last time spend time on this and found a hint, that these tried options are not working for Pi3. :-(
-> try out lcd_rotate=3 instead of display_hdmi_rotate=3 in the config.txt
here it is stated that this last option would be only valid for touchscreens.

didn't work either.
here is another way:
Source: https://forums.raspberrypi.com/viewtopic.php?p=2094201&hilit=Rotate+display+90º#p2094201
video=HDMI-A-1:1080x1920@60,rotate=90

No, that's also NOT it.
Solution is much simpler:
These lines needs to be commented out:
#display_auto_detect=1
#dtoverlay=vc4-kms-v3d
then adding:
display_rotate=1

works.


Tags included in pages have limited contrast

Tags when shown in the body of a page have limited contrast - https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html

Fixed


TLS Client Connection Support for Memcached

Hello,
I have successfully set up a Memcached server with TLS enabled. The server is running with the following configuration:
Memcached is running with the -Z flag to enable TLS and using the following options:

ssl_chain_cert=/etc/ssl/certs/ssl_cert.pem
ssl_key=/etc/ssl/private/ssl_key.pem

Memcached version: 1.6.31

TLS Configuration: Enabled using the -Z option
Environment: Docker

Steps followed:

Set up the Memcached server with TLS enabled using the following Docker setup:docker run -d \
  --name memcached-server \
  -p 11211:11211 \
  -v /path/to/server.crt:/etc/ssl/certs/ssl_cert.pem \
  -v /path/to/server.key:/etc/ssl/private/ssl_key.pem \
  memcached:1.6.31 \
  memcached -Z \
  -o ssl_chain_cert=/etc/ssl/certs/ssl_cert.pem \
  -o ssl_key=/etc/ssl/private/ssl_key.pem

Certificates are generated using the following commands -
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./ca.key -out ./ca.crt -subj "/CN=memcached-server/O=kubedb"
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr -subj "/CN=memcached-server/O=kubedb"
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 365
TLS certificate (server.crt) and key (server.key) are configured and mounted.

Tried connecting to the server using a client with TLS
(e.g., openssl s_client -connect localhost:11211 -CAfile /path/to/ca.crt -servername memcached-server).

CONNECTED(00000003)
depth=1 CN = memcached, O = kubedb
verify return:1
depth=0 CN = memcached-server, O = kubedb
verify return:1
---
Certificate chain
 0 s:CN = memcached-server, O = kubedb
   i:CN = memcached, O = kubedb
   a:PKEY: rsaEncryption, 2048 (bit); sigalg: RSA-SHA256
   v:NotBefore: Oct 21 05:51:28 2024 GMT; NotAfter: Oct 21 05:51:28 2025 GMT
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIC2DCCAcACFBqxLTWYsUnoYzRck297U5vOrtlWMA0GCSqGSIb3DQEBCwUAMCUx
EjAQBgNVBAMMCW1lbWNhY2hlZDEPMA0GA1UECgwGa3ViZWRiMB4XDTI0MTAyMTA1
NTEyOFoXDTI1MTAyMTA1NTEyOFowLDEZMBcGA1UEAwwQbWVtY2FjaGVkLXNlcnZl
cjEPMA0GA1UECgwGa3ViZWRiMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEA45frIRQXMaDpMgx/nMtKd5X+q1oeCWnrlj7yVfrOM6udOlPXsMKjy646AcLW
JoAsS5s986+oMDq7cSJ8OPnQkT8nBNwYP6xNzLbsxSCerhYeFHsPyCCoj/HUN6ZU
0nHcGKaExkO2obM3SVssr0b5UCp6spkychQpBCteS/FAxAoI25ejjeg21LQqYRqq
eMYXgVaBhSnv7y4yM5GDcU0U6YAyrJTKPM4IUdfX6JlbBkZ7becll/3HKFlZIZ45
q9II789C8iU4fcucSMP6wgdz8LStwSmPzKT75705Mb4ZF1bG/McMjonP/1kS/s5c
TLQhrLLJQMrAaAtIamMoz392jQIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCnpVOc
JXEF/NtsKQ31ZYN8Ua3u0OC3kRmRhZa2F5EkjcQCEYOVJTE6AUJ+LbT8Em3n9O/J
JeRmwtIboOH0ozreR9WPsT4mQ5nIoJVLFkVmmfazB6kvCcFch34n4KMHLfsomgSp
nRgg2g5VLsHedijJm27oL6Myb8CEjT7ueXmAxhdKcv6emM8whTuCxDlw5Qac8746
HHvMsFFIOo4cNYA9I39rS1ELOOYsI5F+Mc4CQFP1Szt/QH88RpIMIIrUCORFFUqr
tQV1S9ZSZjIeGIxyGafWdJV5JdvA0XzbMP9vCE0UIVW8ouMCaBKXySAPGz9d76dP
13PI4NZSuIJH8y/T
-----END CERTIFICATE-----
subject=CN = memcached-server, O = kubedb
issuer=CN = memcached, O = kubedb
---
No client certificate CA names sent
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 1288 bytes and written 398 bytes
Verification: OK
---
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Server public key is 2048 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
---
Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_256_GCM_SHA384
    Session-ID: AFF46F24A77D269E8CCA17ADFB80BD7144074BAD78764A9E3D180D2DA0E0FD61
    Session-ID-ctx:
    Resumption PSK: B44DA57700911E1939883EC28A06D17A14DCE42EB009CFC73D63B8BB027CA7E12DC8ACCB46C1E4C84A217B38EA9E6859
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 7200 (seconds)
    TLS session ticket:
    0000 - dc c8 4d 59 13 b1 8f 48-9d c6 e3 fd c6 37 b6 f2   ..MY...H.....7..
    0010 - f2 a7 f8 41 23 32 1c 50-ff d0 c0 47 98 eb ed 7e   ...A#2.P...G...~
    0020 - 1a 83 e8 f5 91 94 a3 98-74 b9 04 e4 2f 51 e6 0f   ........t.../Q..
    0030 - f9 80 e3 91 fc f1 aa b4-a4 3d b7 5e 67 4b 9d 3e   .........=.^gK.>
    0040 - 9a cd 55 37 9f 07 15 6f-da 0e 9a 28 52 46 9d 1c   ..U7...o...(RF..
    0050 - 48 b9 45 17 4d 92 88 5b-eb aa f3 be e1 7e f1 05   H.E.M..[.....~..
    0060 - 7f 29 e3 66 df 50 58 81-0f 72 4c b4 1b dd 8c 5a   .).f.PX..rL....Z
    0070 - 3d 41 4e 72 10 01 39 f9-41 65 9c 47 fd de c9 0b   =ANr..9.Ae.G....
    0080 - b1 f0 4a 8c 89 64 b0 d6-ef 09 40 84 1e af 30 b5<EMAIL_ADDRESS>    0090 - 51 b5 af 6d bf bb 47 c8-7e eb c9 62 43 c9 ef a0   Q..m..G.~..bC...
    00a0 - 5c d1 2f b8 b1 ec e9 b1-a3 75 bd fd 02 9b 2b bb   \./......u....+.
    00b0 - ad cd 7d 8b cd bb 17 ce-20 30 1a 12 77 14 09 88   ..}..... 0..w...
    00c0 - 00 f3 4e d8 9d b0 44 58-e8 78 7c 10 ad e9 a0 2a   ..N...DX.x|....*

    Start Time:<PHONE_NUMBER>
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
    Extended master secret: no
    Max Early Data: 0
---
read R BLOCK
---
Post-Handshake New Session Ticket arrived:
SSL-Session:
    Protocol  : TLSv1.3
    Cipher    : TLS_AES_256_GCM_SHA384
    Session-ID: DDD92EB596EDAD13AAE6668AC71E6413042CA98A06F1A1C4DA3BC0AA826184BF
    Session-ID-ctx:
    Resumption PSK: A5E6ED6248DAC4C596E9DB1F4A6457A6E6133D0C507C5BB7B12397C1BE405C3D55836482AE03702921D147C7CDCE778B
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 7200 (seconds)
    TLS session ticket:
    0000 - dc c8 4d 59 13 b1 8f 48-9d c6 e3 fd c6 37 b6 f2   ..MY...H.....7..
    0010 - ca e8 16 9e de 89 4e d2-8d 9c 2a d4 41 15 1b b7   ......N...*.A...
    0020 - 59 aa 77 f3 d1 90 be 3c-cb cc 68 62 a1 74 71 56   Y.w....<..hb.tqV
    0030 - 5c d0 b8 aa 73 10 71 27-f4 ae b0 e9 0a 50 20 ba   \...s.q'.....P .
    0040 - 93 5c fa ae 4d f5 88 a0-26 c9 85 14 2e de 02 c2   .\..M...&.......
    0050 - 50 99 8b e8 ec 93 55 3f-73 c9 80 1e a0 9e 32 81   P.....U?s.....2.
    0060 - 68 43 67 2f d5 ff fa 6f-ab 84 2f ec 81 d0 f5 ba   hCg/...o../.....
    0070 - 03 5f 84 1b 0c c8 94 81-90 44 16 83 0d a9 88 e3   ._.......D......
    0080 - 62 71 e8 f5 2a de 55 93-b8 fd 1d 68 e2 1d e9 6e   bq..*.U....h...n
    0090 - c8 b2 f0 94 d6 28 79 bb-ec 5d fe 81 63 65 8d b2   .....(y..]..ce..
    00a0 - 2a 5c a3 b4 3e 7a 79 f6-05 7c 4d 8b bc f1 ad ea   *\..>zy..|M.....
    00b0 - 57 60 dd ce 5f 6c ad f0-06 19 79 d9 e6 84 5d 9f   W`.._l....y...].
    00c0 - 82 b4 ba 7c e2 7a 44 51-b1 42 24 5a 9b 04 16 e9   ...|.zDQ.B$Z....

    Start Time:<PHONE_NUMBER>
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
    Extended master secret: no
    Max Early Data: 0
---
read R BLOCK

 echo "stats settings" | openssl s_client -connect localhost:11211 -CAfile /path/to/ca.crt -servername memcached-server -quiet ```

The command returns the Memcached stats as expected:
```bash
depth=1 CN = memcached, O = kubedb
verify return:1
depth=0 CN = memcached-server, O = kubedb
verify return:1
STAT maxbytes 67108864
STAT maxconns 1024
STAT tcpport 11211
STAT udpport 0
STAT inter NULL
STAT verbosity 1
STAT oldest 0
STAT evictions on
STAT domain_socket NULL
STAT umask 700
STAT shutdown_command no
STAT growth_factor 1.25
STAT chunk_size 48
STAT num_threads 4
STAT num_threads_per_udp 4
STAT stat_key_prefix :
STAT detail_enabled no
STAT reqs_per_event 20
STAT cas_enabled yes
STAT tcp_backlog 1024
STAT binding_protocol auto-negotiate
STAT auth_enabled_sasl no
STAT auth_enabled_ascii no
STAT item_size_max 1048576
STAT maxconns_fast yes
STAT hashpower_init 0
STAT slab_reassign yes
STAT slab_automove 1
STAT slab_automove_ratio 0.80
STAT slab_automove_window 30
STAT slab_chunk_max 524288
STAT lru_crawler yes
STAT lru_crawler_sleep 100
STAT lru_crawler_tocrawl 0
STAT tail_repair_time 0
STAT flush_enabled yes
STAT dump_enabled yes
STAT hash_algorithm murmur3
STAT lru_maintainer_thread yes
STAT lru_segmented yes
STAT hot_lru_pct 20
STAT warm_lru_pct 40
STAT hot_max_factor 0.20
STAT warm_max_factor 2.00
STAT temp_lru no
STAT temporary_ttl 61
STAT idle_timeout 0
STAT watcher_logbuf_size 262144
STAT worker_logbuf_size 65536
STAT read_buf_mem_limit 0
STAT track_sizes no
STAT inline_ascii_response no
STAT ext_item_size 512
STAT ext_item_age<PHONE_NUMBER>
STAT ext_low_ttl 0
STAT ext_recache_rate 2000
STAT ext_wbuf_size 4194304
STAT ext_compact_under 0
STAT ext_drop_under 0
STAT ext_max_sleep 1000000
STAT ext_max_frag 0.80
STAT slab_automove_freeratio 0.010
STAT ext_drop_unread no
STAT ssl_enabled yes
STAT ssl_chain_cert /etc/ssl/certs/ssl_cert.pem
STAT ssl_key /etc/ssl/private/ssl_key.pem
STAT ssl_verify_mode 0
STAT ssl_keyformat 1
STAT ssl_ciphers NULL
STAT ssl_ca_cert NULL
STAT ssl_wbuf_size 16384
STAT ssl_session_cache no
STAT ssl_kernel_tls no
STAT ssl_min_version tlsv1.2
STAT num_napi_ids (null)
STAT memory_file (null)
STAT client_flags_size 4
END

I have been using telnet to connect with memcached server, But with tls enabled, I can't connect like earlier, what flags / options are there for connecting with tls enabled? example:
$ telnet localhost 11211
Trying <IP_ADDRESS>...
Connected to localhost.
Escape character is '^]'.
version
Connection closed by foreign host.

I have been unable to find a way to connect to the Memcached server using TLS from available clients. It seems that there is no flag or option in the clients to establish a TLS-secured connection.
Could anyone provide guidance or information about TLS support in Memcached clients in this schenario?
Thank you!

What client are you trying to use? Not all clients support TLS; you might need to contact the client author there and ask about adding support.
You can use socat to connect to memcached when it's running TLS. There're a lot of tutorials online about how to do this.
It's also possible to use our proxy as a TLS gateway of sorts: Use your non-TLS client to connect to a proxy running on localhost, and then the proxy connects to memcached over TLS. I need to add a small guide for this as we've been working on updating the docs and I haven't gotten there yet: https://docs.memcached.org/features/proxy/ - if this could work let me know and I'll prioritize the additional guide.

We try to use > socat , but the set command is not working. Always getting  "CLIENT_ERROR bad data chunk" this error. Other commands are working perfectly.
Here is the logs:
socat -d -d - OPENSSL:localhost:11211,cert=/home/evan/go/src/evanraisul/memcached_TLS/client.crt,key=/home/evan/go/src/evanraisul/memcached_TLS/client.key,cafile=/home/evan/go/src/evanraisul/memcached_TLS/ca.crt,verify=1
2024/10/23 11:54:30 socat[11928] N reading from and writing to stdio
2024/10/23 11:54:30 socat[11928] W OpenSSL: Warning: this implementation does not check CRLs
2024/10/23 11:54:30 socat[11928] N successfully connected from local address AF=2 <IP_ADDRESS>:50280
2024/10/23 11:54:30 socat[11928] N trusting certificate, commonName matches
2024/10/23 11:54:30 socat[11928] N SSL proto version used: TLSv1.3
2024/10/23 11:54:30 socat[11928] N SSL connection using TLS_AES_256_GCM_SHA384
2024/10/23 11:54:30 socat[11928] N SSL connection compression "none"
2024/10/23 11:54:30 socat[11928] N SSL connection expansion "none"
2024/10/23 11:54:30 socat[11928] N starting data transfer loop with FDs [0,1] and [6,6]
set foo 0 999 3
bar
CLIENT_ERROR bad data chunk
2024/10/23 11:54:45 socat[11928] N write(1, 0x60edddcfe000, 29) completed
get foo
END
2024/10/23 11:54:52 socat[11928] N write(1, 0x60edddcfe000, 5) completed
version
VERSION 1.6.31

The data portion of a set needs to end with a \r\n, which is automatically added using telnet. ie: the command is actually:
set foo 0 999 3\r\n
bar\r\n
guessing you're inputting \n into socat or something. you can try copy/pasting or something else; this isn't really a support forum for socat :)

you can also set up socat as a listener doing tcp<->tls and then telnet to the socat. do you need this for debugging purposes or for something else?

Actually, we want to run Memcached on Kubernetes. Already running, but need to run Memcached with TLS support.
Before this we were using telnet, Memcached was running perfectly without TLS.
socat -d -d - TCP:localhost:11211
2024/10/23 13:03:55 socat[13841] N reading from and writing to stdio
2024/10/23 13:03:55 socat[13841] N opening connection to AF=2 <IP_ADDRESS>:11211
2024/10/23 13:03:55 socat[13841] N successfully connected from local address AF=2 <IP_ADDRESS>:50664
2024/10/23 13:03:55 socat[13841] N starting data transfer loop with FDs [0,1] and [5,5]
version
2024/10/23 13:03:58 socat[13841] N write(5, 0x6268e8496000, 8) completed
VERSION 1.6.31
2024/10/23 13:03:58 socat[13841] N write(1, 0x6268e8496000, 16) completed
set foo 0 999 3\r\n
bar\r\n2024/10/23 13:04:09 socat[13841] N write(5, 0x6268e8496000, 20) completed
CLIENT_ERROR bad command line format
2024/10/23 13:04:09 socat[13841] N write(1, 0x6268e8496000, 38) completed
version
2024/10/23 13:04:24 socat[13841] N write(5, 0x6268e8496000, 15) completed
ERROR
2024/10/23 13:04:24 socat[13841] N write(1, 0x6268e8496000, 7) completed

You're just using telnet to test it right? Are you using a real client to access it normally?
You can tell memcached to listen on multiple ports, some without TLS, ie: -l <IP_ADDRESS>:11211 -l notls:<IP_ADDRESS>:11511 if that helps?

I am using gomemcache Client to access it.
But, before using that client I have to make sure that from Memcached site it is all okay and the TLS is working correctly. That's why before I was using telnet. But, telnet doesn't support TLS. So, I need "socat" or others to make sure how a normal user will connect to Memcached with TLS.


Display of absolute values in % in a bar chart - Small error in the display of the vertical axis

When using the "Display absolute values in % in a bar chart" function, 100% is not displayed correctly on the y axis (00% instead of 100%).
See the chart :  https://int.visualize.admin.ch/fr/v/JEOzXRikOWZy

Hi @ortnever, thanks for reporting! I've also noticed and fixed this in #1130 (try to make the same chart using this link). It should be soon merged to TEST (and if not, I'll keep it on my radar to have this fix in the next PROD release) 👀

Thank you @bprusinowski, the 100% on the y axis is ok in your Link.
Concerning Cascading Filters I add a new exemple in GitLab https://gitlab.ldbar.ch/bafu/umweltdatenkiosk-planning/-/issues/511


Math Magicians: setup

In this pull request, I:

Set up a React app.
Use React documentation.

I merged the pull request by mistake, as i thought the last reviewer had approved..
He only requested optional changes.


rpi-imager: 1.5 -> 1.6

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/raspberrypi/rpi-imager/releases.
meta.description for rpi-imager is: "Raspberry Pi Imaging Utility"
meta.homepage for rpi-imager is: "https://www.raspberrypi.org/software/"
meta.changelog for rpi-imager is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.6 with grep in /nix/store/4zxdplz373byplhvv62nfvmp16ks7nbh-rpi-imager-1.6

directory tree listing: https://gist.github.com/4d50248ae9c7f4829b4e7cdabd049b97

du listing: https://gist.github.com/50f894bd2eaf29090ce1cb8f3300be03

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
rpi-imager

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/4zxdplz373byplhvv62nfvmp16ks7nbh-rpi-imager-1.6 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rpi-imager https://github.com/r-ryantm/nixpkgs/archive/84858b3a76bb409c215ec70b0b72bababe459d53.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/4zxdplz373byplhvv62nfvmp16ks7nbh-rpi-imager-1.6
ls -la /nix/store/4zxdplz373byplhvv62nfvmp16ks7nbh-rpi-imager-1.6/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

rpi-imager

Maintainer pings
cc @ymarkus for testing.

Result of nixpkgs-review pr 116650 at 84858b3a run on aarch64-linux 1

1 package built successfully:

rpi-imager

1 suggestion:

warning: build-tools-in-build-inputs
util-linux is a build tool so it likely goes to nativeBuildInputs, not buildInputs.
Near pkgs/tools/misc/rpi-imager/default.nix:29:3:
   |
29 |   buildInputs = [
   |   ^


Fixed error forwarding to client for failed command executions

Description
Added error forwarding to client upon any command execution failures. Allows proper error workflow to complete for internal errors.
Fixes #257
Type of change

[ ] New feature (non-breaking change which adds functionality)

How Has This Been Tested?
Tested with plain bazel test //... to ensure all pass as well as bazel test //... after adding deliberate modifications to deployment-examples/docker-compose/worker.json to ensure error forwarding to client (ex. "entrypoint_cmd": "foo").
Checklist

[ ] Updated documentation if needed
[ ] Tests added/amended
[ ] bazel test //...  passes locally
[ ] PR is contained in a single commit, using git amend see some docs

This change is

Sounds good, I'll make those changes for the commit and reword the description to something like "Added error forwarding to client upon any command execution failures. Allows proper error workflow to complete for internal errors."

Previously, allada (Nathan (Blaise) Bruer) wrote…
We need a test for this. @TripleKai , do you want to take a swing at making a test for it?

Sure thing, I'll give it a try

And thanks for the praise, I'm glad I could contribute!

Sure thing, will do

native-link-scheduler/tests/simple_scheduler_test.rs line 1459 at r2 (raw file):
Previously, allada (Nathan (Blaise) Bruer) wrote…
Nit: use ?

I tried converting the whole "match" expression into something like "rx_from_worker2.recv().await?.update;"
but this doesn't work because "recv()" returns an Option and our test function returns a Result, so I see a complaint when trying to use "?". Am I misusing this "?" operator?

-- commits line 2 at r1:
Previously, MarcusSorealheis (Marcus Eagan) wrote…
nit: Fixes

Just commenting here to mention this is done

Amazing!


Freeze when creating indexes (like primary key) from GUI

Description
If I create a primary key over a large table (1 million records) all dbeaver freeze.
That only happens if I create the primary key from the GUI editor, if I run the "create index" query the only thing that freeze is the query window, not the whole dbeaver.
I'm not against freezing, but it should be only the GUI editor that freezes.
DBeaver Version
22.3.3
Operating System
Win 10
Database and driver
JDBC Thin Client
Oracle 21 server

Thank you for your report.

Cannot reproduce anymore.
For long-running save operations DBeaver shows progress monitor in the status bar. You can interrupt operation by clicking on red square button

cannot reproduce against 23.3.3


improve embed

What does this PR do?
This PR improve the performance of flax.linen.Embed when num_embeddings == 1. I find that in huggingface transformers, some models use embedding even for num_embedding == 1 (e.g. token_type_embeddings here). The atomic ops in scatter from it's backward with all indices equals to 0 will cause performance issues. For example, one bf16 train step of this roberta model with bs=128 costs A100 210ms. After this modification, it improves to 156ms.

Hi @chiamp, could you help review this PR please?

Hey @jianyizh , sorry for the delay. Can you please add this implementation detail to the docstrings?

Hey @jianyizh , sorry for the delay. Can you please add this implementation detail to the docstrings?

I have updated the docstrings, thank you

pre-commit hooks are failing on CI. To fix this run:
pip install pre-commit
pre-commit install # makes sure future commits pass
pre-commit run --all-files # fixes current issue

pre-commit hooks are failing on CI. To fix this run:
pip install pre-commit
pre-commit install # makes sure future commits pass
pre-commit run --all-files # fixes current issue

Thank you. pre-commit hooks can pass now.

Codecov Report
Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (7cbc3c1) 56.70% compared to head (134a515) 56.70%.

Files
Patch %
Lines

flax/experimental/nnx/nnx/nn/linear.py
50.00%
1 Missing :warning:

flax/linen/linear.py
50.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3590      +/-   ##
==========================================
- Coverage   56.70%   56.70%   -0.01%
==========================================
  Files         100      100
  Lines       12006    12010       +4
==========================================
+ Hits         6808     6810       +2
- Misses       5198     5200       +2

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

You need to squash the commits. Run
git reset --soft main

then create a new commit, and finally force push:
git push -f

You need to squash the commits. Run
git reset --soft main

then create a new commit, and finally force push:
git push -f

Thank you. I have squashed the commits.