Modal should be contained in a landmark

The modal component used for modal confirmation and modal search patterns moves the dialog markup in the source (this is necessary to prevent tab/swiping out of the modal), this means that the dialogs are no longer contained in a landmark.
I suggest we

add an appropriate landmark to the element containing the dialog (search for search modal, region for confirmation)
add line to ACs requiring a containing landmark

@susannah-rogers This is now on Netlify ready for testing.

@susannah-rogers @sarah-storm updated this one to add an aria-labelledby to the landmark which helps NVDA to identify it.
Sarah noted:
"Added an 'aria-labelledby' to the region landmarks so that NVDA will pick them up. I've re-used the label from the dialog, I'm not sure if the repetition of this is OK here - or maybe we need to think of other instructional wording. It would be good to test if it's read twice and see what Susannah thinks. It seemed to be for me that it was only read once as the regions are only dealt with one at a time by NVDA, but I'm aware I'm really not a typical user!"
On Netlify for you to test at your convenience.

@sarah-storm The landmark on https://storm-ui-patterns.netlify.app/example/modal-confirmation/ is now showing as 'Are you sure?' in NVDA rather than 'region'. This means that it reads 'are you sure' twice - full text below:
'Are you sure. Dialog: This will permanently remove this item. Delete button. Are you sure? Button delete, button cancel.'

Closing this ticket as complete.  Looking at the W3c example of role="dialog" they are also re-using a header as the aria-labelledby marker, therefore I think this is acceptable to do.
https://www.w3.org/WAI/GL/wiki/Using_the_region_role_to_identify_a_region_of_the_page


Add Infernal Robotics Model Rework - Utility Pack from Kerbal Stuff

This pull request was automatically generated by Kerbal Stuff on behalf of ZodiusInfuser, to add Infernal Robotics Model Rework - Utility Pack to CKAN.
Please direct questions about this pull request to ZodiusInfuser.

Superceded by #952


Fix for margin issue

Hi,
This is hopefully a fix for the margin issue here: davidjbradshaw/iframe-resizer#281
Two simple changes are made. getComputedBodyStyle takes an extra parameter to specify the element to check. If nothing is passed, it will fall back to the previous behaviour of using the body element. Additionally, when getMaxElement iterates over its list of elements, the element is passed to getComputedBodyStyle in order to fetch that elements margin.

I guess getComputedBodyStyle() should be renamed to getComputedStyle().
Also I think that,
el = typeof el !== 'undefined' ? el : document.body;

can be written as just.
el =  el || document.body;

Otherwise looks good.

Okay thanks for the feedback, I'll get those changes made now.

Thanks for you help on this. Released as v3.5.1.


Parler video embedding

Example video courtesy of Paul:
https://video.parler.com/D2/fo/D2fovQB1v4M2_small.mp4?fbclid=IwAR3DjPzhfdMqPwdSaR1XiGz4rqfu98NdWFaJVKJWOf3Ro3iHoS3jVwtfA9w

Implemented as general *.mp4 embedder

Implemented as general *.mp4 embedder


[CI] Change workflow names

Current Behavior

The current workflow names does not follow any conventions and is difficult to track.
Desired Behavior

Change the test names as proposed in the Master Test Strategy.
This will be the first step in moving towards the newly proposed test scenarios.

Contributor Guides and Resources

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

@navendu-pottekkat @leecalcote May I please be assigned to this? Thanks!

@SAEb-ai thanks for asking. This isn’t a desired change, though. Let’s find you another one.


Scrollbar not visible in sidebar.

Bug report

What is the current behavior?
Scrollbar is not visible in microsoft edge linux.
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

Other relevant information:
webpack version:
Node.js version:
Operating System:
Additional tools:

I believe it was designed this way https://github.com/webpack/webpack.js.org/commit/c7d70be3f00c7642c8dd4392b34315d13c35c94e. And in your screencast, I can see you scrolled sidebar successfully while reaching the end fast as Under The Hood is the last item in sidebar menu.

I meant to say that that the scrollbar isn't visible on the left hand side

I meant to say that that the scrollbar isn't visible on the left hand side

Then it's designed this way. But I agree it's sacrificing accessibility for good looks.


PowerShell Crescendo json files should support multiple native command definitions

PowerShell Crescendo currently supports generating multiple json files into a single PowerShell module.
Export-CrescendoModule -ConfigurationFile .\get-ipconfig.proxy.json,.\Remove-ipconfig.proxy.json,.\New-ipconfig.proxy.json -ModuleName ./ipconfig.psm1

It would be easier to develop and maintain multiple native commands in a single json file.
Crescendo should support both linux and windows native commands in the same json file.

Originally posted by @theJasonHelmick in https://github.com/PowerShell/Crescendo/discussions/45

I think has to be a requirement.

This feature is added starting with preview 3.

Thank you - This issue has been addressed in Preview.3


Device ready event not occurring in presence of this plugin

Is there a specific way that this plugin should be installed? I've been installing it as follows
cordova plugin add https://github.com/KumarSunil007/phonegap-jack-reader-plugin
Then my app's deviceready event never occurs.

it will not effect device ready event, also if you read docs for device ready event, it is independent of all plugin and scripts. ( if you are facing this issue on browser, then it generally happens, it will not occur on ios and android platform)

I've also tried compiling with Phonegap build with no luck. A more detailed step by step guide on how to implement this plugin would be most peferrable not just the Javascript code


Cleanup of main readme, remove digikey BOM and amazon list

Made a number of small fixes to the main readme I grouped in this PR. All of the commits are standalone so easy to revert any.
The build folder image is outdated so I removed it.

@apollokit @ericjunkins can you guys give this a quick check?


Code to interface, not to implementation

Currently it's not really possible to provide your own models to store questions, answers or tags. It could be useful, for example, to be able to use markdown or bbcode for writing text there or for deeper integration with the application.
I'd suggest coding to interface i.e.

Introduce a number of interfaces describing module's interaction with models.
Make default set of models implement these interfaces.
Make all other code use these interfaces and not use models directly.
Make it possible to provide your own models implementing interfaces instead of default ones.

See https://github.com/samdark/Yeeki/tree/master/app/modules/wiki/components/auth

Nice idea. I think about Markdown in next release. I read about use interfaces.

It's not about markdown, it's about making the module extensible.


operator mongodb-enterprise (1.18.0)

This PR has been created by MongoDB Release Automation Tool.
If additional details are needed, please contact any authorized
reviewer from MongoDB.

/hold

/unhold

/merge possible


Entity type requires a primary key to be defined -  when not even used/defined in Context.

I am getting the following error:
The entity type 'ConditionField' requires a primary key to be defined
Whenever i try to instantiate my context called: OnlineApplicationsDbContext  - EfCore throws a strop about the above entity not having a PK.
Now here's where it gets a little strange - i am not even using or referencing that entity in my new context. None of my tables/entities defined in my new context have any business with the ConditionField entity.
N,B: my context OnlineApplicationsDbContext was copied and pasta'ed from a larger context i wrote a while ago: ApplicationsDbContext which did define and reference the entity ConditionField.

@iby-dev you haven't provided some of the information (e.g. repro code, what version of EF Core you are using, etc.) needed to be able to tell you for sure what is going on, but if I had to guess, I would say ConditionField is referenced indirectly by some entity in your model, you just haven't found it yet.
You can try explicitly ignoring the type in OnModelCreating or using NotMappedAttribute as a workaround.

@divega - how would i ignore the entity in question in the OnModelCreating event?

@iby-dev The documentation describes how to include and exclude types in the model.

Is there a chance that EF expects all 9 tables to be defined in the context?

That would be very unlikely. The only part of EF Core that reads schema information from the database is the DbContext scaffolding commands.

TY - this did the trick for me.
I still have no idea why this entity is being picked up but the above link worked for me.
Ty.


grouping

Closing because I don't want to waste my time, resolving conflicts, not being sure that anybody will merge.


Error occurs when the threshold is above 1 while removing a star from the message.

One known issue with the latest master build which generates an error.
If the message threshold is anything higher than 1 (by default 3), removing a star from a starred message will generate an error since it is constantly executing message.delete() on each reaction remove even when there is no starboard message that was sent.
But works completely fine whenever the threshold value is just simply 1 since each time you react with a star, starboard will be sent.

Not sure if there is any possible way around this, I did try to fork it and looked for solutions but couldn't think of any.

This one is my bad, I forgot to access the property p (checks if posted) in the deletePost() function. It was trying to delete messages that did not exist. I also changed when it checks if it should delete due to async issues.

One known issue with the latest build of Starboard after the fix, a property error showed up. At first I thought it was something to do with my code on my fork, turns out it was straight from the latest build.

Is this error happening with no edits to the code? I am not seeing this on my end, even on a fresh pull/install.

Weird, maybe I did something wrongly. I'll try again.

Yeah I'm not sure whats wrong at this point. I downloaded the latest master zip from Github, also tried using Github Desktop to clone this specific repository. Did everything that needed to be done which is simply just to install node d.js and changed all the settings, issue still occurs for some reason.

.(node:6152) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '1' of null
    at loadIntoMemory (C:\Users\USER\Documents\GitHub\starboard\src\index
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
wing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6152) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with
a non-zero exit code.

Not a single thing has been changed besides the settings including the bot token, serverid and channelid, that's it.

Is it possible that I'm missing a dependency of some sort?

I think it is just me doing a bad job at redoing the message loader. I made the assumption that all embeds in the starboard channel would only be from the starboard and didnt check all edge cases, which may be the cause here. But it's strange the error didn't happen when I loaded 18k messages on the server I run this on.. it shouldve failed on legacy posts. I guess it's the difference in node versions. Oh well, sorry about that. let me know if the next change fixes it

No problem, its a small issue anyways, not worth apologizing for. Plus I should be thanking you for making a starboard bot open source.

Yep, this build works perfectly. No more issues, no more errors. Everything is running the way it should and expected. Genuinely thank you for the quick support too.


Feature request: colours but not ASCII

Description
So far as I can tell, there is no option to have coloured text but no ASCII. Such output - colours, no ASCII - would look reasonably nice (by dint of the colours) but additonally would paste well into text editors and webforms.
Thank you for this program.
Neofetch version
6.0.0.
Screenshot
Config file
Verbose log

Run neofetch -vv 2> neofetchlog
Upload the contents of neofetchlog to pastebin, gist or equivalent.

neofetch --off or neofetch --backend off.

Ah. Nice. Thanks. Any config file option, though?

image_backend="off"


Apply new styles for update modal

the update modal will require some styling now that the new modal is unified. Once the releases are ready this ticket is to address that cleanup task.

Not an issue anymore!


Fix test regression with NotExecuted nodes for unreleased change

[x] Fix test failure (small regression with unreleased JENKINS-38133 work) -- hide log lines for checkpoints.

@reviewbybees

I don't have enough experience here, but the changes looks reasonable. 🐝

:bee:


Different IP per domain

Hey,
Is there any way to use a specific IP for a specific domain, on the same Postal install?
Thanks,
Razvan

Hey Razvan,
Yes

First you need to create one or many IP pools ( by giving IP and RDNS details)
Assign IP pools to the organization
Go to the organization
Go to settings - Server setting - IP Rule

Hope this will help you, more details you can see on postal official documents
Regards,
Rahul

@rsgehlot please check this out. I'm logged in as Admin and I really cannot see anything about IP Rules. Also I cannot find any place from where could I add IPs to organization. Any hint on what I'm doing wrong?


The LICENCE file in the JARs

Change the integration of LICENCE file in the JARs
same way with : https://github.com/Gmugra/net.cactusthorn.config/issues/176

done.


Move renaming of record components to records section

The renaming part of arrays also discusses renaming of object components. This content should be moved to the records section.

Thanks for your suggestion!


Upgrade to kedro 19

Description
Close #391.
Development notes

Officially drop supports for 0.18.x and add supports for 0.19.x
Final cleanup before migration to kedro==0.19 and dropping kedro==0.18 support. Mostly fixing tests:

Remove package_name argument in KedroSession.create calls
Add replace project_version by kedro_init_version key in pyproject.toml
Use kwargs when instantiating datasets since they are  now kwargs only.

Checklist

[X] Read the contributing guidelines
[X] Open this PR as a 'Draft Pull Request' if it is work-in-progress
[ ] Update the documentation to reflect the code changes
[ ] Add a description of this change and add your name to the list of supporting contributions in the CHANGELOG.md file. Please respect Keep a Changelog guidelines.
[X] Add tests to cover your changes

Notice

[X] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.

I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorised to submit this contribution on behalf of the original creator(s) or their licensees.

I certify that the use of this contribution as authorised by the Apache 2.0 license does not violate the intellectual property rights of anyone else.

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

Comparison is base (93b3c9f) 99.89% compared to head (f453b31) 99.90%.
Report is 12 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #502   +/-   ##
=======================================
  Coverage   99.89%   99.90%
=======================================
  Files          28       28
  Lines         982     1001   +19
=======================================
+ Hits          981     1000   +19
  Misses          1        1

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


Found page and SERP results not listed for keyword

I'm not sure if this is a temporary issue or not.
I've got a keyword that has a ranking number, but no URL listed:
https://ibb.co/M8ncDwf
When viewing the search results it only shows the first 2 results:
https://ibb.co/VqC89Mp

More weird results -
A tracked keyword - Rank 83 (down 3) - best blank (there are historical records though) - Ranking page - blank. Not actaully in the top 100 (according to the cached results.
I'm a bit new here - has best ever worked?

Something is not right in your instance. Can you please get in touch through this form about this issue? https://f.nativeforms.com/wNShVbD1jZmQVQmBlWL1Db

Something is not right in your instance. Can you please get in touch through this form about this issue? https://f.nativeforms.com/wNShVbD1jZmQVQmBlWL1Db

I won't lie - I've moved the database around abit and might have messed it up. I've just done a clean install - I'll watch it closely for this behaviour. I was only one project I noticed it on.


Customer Segmentation using K-means Clustering

Customer Segmentation is the subdivision of a market into discrete customer groups that share similar characteristics and it can be a powerful means to identify unsatisfied customer needs.
Here is the approach for customer segmentation using K-means Clustering.
This file contains distribution of each feature before making a 3D plot to visualize the spending score of the customers with their annual income and the data points are separated into 5 classes i.e. 5 clusters.
This is followed by visualizing a elbow plot which is calculating the Within Cluster Sum of Squared Errors (WSS) for different values of k, and choose the k for which WSS first starts to diminish.

Hey, @void-02 plz add the file in the specific folder, don't randomly create the file

LGTM! @void-02  🚀
Thanks for your valuable contribution ✨
Hope you like the repo Do Give a star to this repo ✨


change package structure of data helix

Feature Request
Description of Problem
We want to improve the root package name of datahelix so that there is uniformity across the range of data helix tools.
I'd suggest we use:
com.scottlogic.datahelix.generator as our top level root directory.
As we have a range of data helix products we need to include generator in the root name.  This does mean we may need to rename our existing generator package.
Should try and time this so it is done when no other work is being done.

Also rename generator module to core to avoid confusion


Unable to scroll using scrollwheel in F# code (using Fx 69)

This might be entirely me, running Firefox 69 - but maybe it's something you're interested in anyway:

Navigate to https://fable.io/repl/
Load a sample (say the Thoth RandomUser one)
Try scrolling in the F# code or the generated JS code using the mouse wheel

For me nothing happens, while navigating using the keyboard (cursor keys, home/end keys) or using the scrollbars works fine.

Using Firefox 66
I can't scroll either in any of the editors.
However, I am able to scroll in the Console and Problems views.

Unfortunately Firefox doesn't seem to like the Fable REPL very much as it runs quite slow on it. We're not sure what the problem is as, at least on macOS, it runs reasonably fast in Chrome and Safari (it likely has to be with modern JS syntax not being optimized in FF). This makes the overall experience in FF not very pleasant whether you're able to scroll with the mouse wheel or not :/

Unfortunately Firefox doesn't seem to like the Fable REPL very much as it runs quite slow on it.

I don't know if you guys have any way of fixing that, but I do think that's secondary no? A different issue?
I stumbled upon this REPL due to a tweet and really just wanted to browse some examples / check out what Fable does and can do. Not being able to scroll naturally is making this rather hard (I want to scroll on both left and right to see input / output - for me that's the reason to look at a "web playground".
There's already a popup in the bottom right, saying that one should use Safari (wrong platform) or Chrome for better performance.

The scrolling problem is just a bug we discover thanks to your issue. The bug is actually coming from monaco itself: https://github.com/microsoft/monaco-editor/issues/1353
We just need now to see:

if the bug will be fixed in Monaco
Should we downgrade the Monaco version to a working version
Is their a polyfill that we could add as a temporary fix


Update contracts digest to 7797750

This PR contains the following updates:

Package
Update
Change

contracts
digest
8392bb2 -> 7797750

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Can one of the admins verify this patch?


recent alerts submenu

@flavour Please merge

Does this really need a separate menu entry?
I would have thought that the default Alerts list would make sense sorted to have the most recent alerts 1st and that it not being too busy should be sufficient, but can easily have an 'Expired/Unexpired filter on it if-required.
To me the title of the menu entry is misleading compared to the filter applied - this isn't "recent" alerts, but rather "unexpired" alerts...

this is as per L64 of https://docs.google.com/spreadsheets/d/1N9xUqZQhignq7QM_7CtrV4zv86sq4lMdJj81IQuch3Y/edit#gid=0
"the expire date of alert less than now" isn't the recent alerts?

I think this is a mistake in the specs: recent alerts would be expires > today, not expires < today.

Saying that because according to the spec item, recent alerts = active alerts - but expires < today selects expired alerts.
It also says "at least" recent alerts, but it doesn't explicitly disallow "all alerts with the most recent on top", which may be more useful.

Meaning: you could list all alerts, with the most recent on top, and set expires >= today as filter default.
Then the menu item would show only recent alerts at first (and the most recent on top), but the user could modify this filter to select more (or "clear filter" to show all alerts), and also alter the sorting.
By contrast, with s3.filter the user would need to switch to a different page to extend to older alerts.

Filter default example here:
https://github.com/flavour/eden/blob/master/modules/templates/CRMT/config.py#L633

Btw - with this definition it should be "Active Alerts" or "Current Alerts" not "Recent Alerts".
You can also just put the default filter into the menu item analogous to "Active Missions" in RDRT:
https://github.com/flavour/eden/blob/master/modules/templates/IFRC/menus.py#L393
Then you don't need a separate controller, and the user can still modify the filter to also see expired alerts.

Yes, so Dominic is echoing what I am saying, with some further refinements:

(The menu entry as it stands has the wrong name)
Rather than having this menu item at all, it would be better to simply have this be the default view for the main Alerts list:
Sort with most recent at the top
Include a Filter to select expired or not
Have this filter default to just showing unexpired (which can be done most easily with the URL filter in the menu link)


Question:can server  send the message is encoded by 'gb2312' ?

Server
For example,client A subscribes to the topic X , then, sends a message is encoded by 'gb2312' to the server with topic X.The server can use 'gb2312' to encode the payload.But the message  client A received is unintelligible text.How to change the server's defaule code formats?

PS:i'm so sorry because my English is terible.

@liugan123
UTF-8 is used for string payload. It looks like your MQTTClient tool is not supported utf-8.
If the client is wroted by MQTTnet or wanna sending payload encoded by 'gb2312', you should send byte[] data and decode it by yourself.

@meanshe Thank you for your answer.


To Update README file

@Yashshukla11  I gone through all change made by contributor's , So I can able to update README file ,

@Yashshukla11 please assign this to me i am GSSOC'24 contributor and have 2+ years of experience in flutter


e2e tests with protractor not working

... due to missing protractor configuration file

@martinoss #9 refers to the same issue I guess I will add the reference of this issue in #9


Instructions don't work in the new VS 2022 UI

You can enable or disable code analysis by right-clicking on a project in Solution Explorer and selecting Properties > Code Analysis tab > Enable .NET analyzers.

Here is how the properties window look in VS 2022 as of Preview 3.1

Here is how it looks in VS 2019

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

ID: f8906b2c-b984-0427-d064-829e7ea2fc55
Version Independent ID: 128f9903-971d-6a66-a2cb-9b12acbc55e7
Content: Code analysis in .NET
Content Source: docs/fundamentals/code-analysis/overview.md
Product: dotnet-fundamentals
GitHub Login: @gewarren
Microsoft Alias: gewarren

cc @drewnoakes

In preview 4 there is a new code analysis page, not seen in the VS2022 screenshot above.
It would be great to get the docs updated.


multiplication of cached files with same s3 key

Hi,
I'm testing your library, and i don't know why with the same code executed and same S3 key, the file is cached in multiple files ?
const s3P8 = require("s3-cached")({
	bucket: process.env.APP_AWS_S3_BUCKETNAME,
	diskTmpDirectory: "/tmp/P8-cache",
	s3Options: s3Configuration
});

await s3P8.getJsonObjectCached(process.env.APP_APN_P8_S3_KEY);

OK, I investigate, the problem comes from lib 'cache-manager-fs'.
This stores the options in memory and recreates the .dat file each time an instance is started.
I changed and tested with 'cache-manager-fs-hash', this corrects the problem

This isn't only the file. This is the whole cache. So there is other information indexed and initialized by the underlying caching library. I.e. expiration time or fast lookup. Implementing a fully featured file cache is not trivial. Here is the file cache specific logic (but thats only an implementation of the abstract cache library): https://github.com/hotelde/node-cache-manager-fs/blob/master/index.js
That's where I'd start digging if you want to better understand what is going on. This file cache doesn't need to store its indices in memory. It's gated by an in memory cache, but the file cache doesn't know that.
Tldr What you are seeing is very normal and anticipated behaviour. I'm closing this ticket, but feel free to comment further on here.

Just saw your comment and reopening. Can you please explain what your concern / issue is? I'm having a hard time understanding the use case and why you worry about it.

I want to use the lib with AWS lambda to store s3 files in /tmp cache.
Lambda execute process each time and the data store in memory is lost...

Sorry, but that statement is false.
Memory is not lost. Everything initialized outside your handler stays as long as the lambda function stays warm.
Only when the lambda function cold starts all data is lost (memory and tmp folder). It would then need to be fetched from s3.
It sounds like you might be initializing your cache inside the lambda function? What happens if you initialize it outside?

I did not have this info about memory, it's cool!
So, it's ok 👍
Thanks

No worries. Good luck. Closing this ticket again


Add bill to address to authorizeAndCapture service. Update to unit te…

…sts to pass build

Coverage decreased (-23.6%) to 76.364% when pulling bfb3f248a033ea2e0157516cdc4f66dee57256d9 on Stiffel:feature/authorize-and-capture-bill-to-address into 6e3205d9a13d0a37d30200ee1c3997153864281d on soliantconsulting:master.


Add entries for MAGNET DumpIt

entries added for Linux and Windows versions of DumpIt

@meirwah how would that work with the existing formatting on the page? The Linux (on GitHub) and Windows (on the Magnet website) versions of the tool are located in different places so there needs to be two links.


pip install django-ckeditor==6.4.0 not working

pip install django-ckeditor (latest version of django-ckeditor for pip=6.3.2) doesn't work for RichTextUploadingField. I installed another version (6.0.0) and everything worked. Please add pip version of django-ckeditor 6.4.0 if possible to avoid such errors in the future

.

django-ckeditor 6.4 is definitely available on PyPI https://pypi.org/project/django-ckeditor/#history
You're probably using an unsupported version of Python. django-ckeditor 6.4 requires Python 3.8 or better. https://github.com/django-ckeditor/django-ckeditor/blob/master/CHANGELOG.rst#640


feature: huawei

Description of change
In this PR, i added support to Huawei FunctionGraph of type Http Function.

Pull-Request Checklist

[x] Code is up-to-date with the main branch
[x] npm run lint passes with this change
[x] npm run test passes with this change
[x] This pull request links relevant issues as Fixes #0000
[x] There are new or updated unit tests validating the change
[x] Documentation has been updated to reflect this change
[x] The new commits follow conventions outlined in the conventional commit spec

Codecov Report

Merging #14 (677c0d9) into main (2dba1c5) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #14   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           30        33    +3
  Lines          708       744   +36
  Branches       172       174    +2
=========================================
+ Hits           708       744   +36

Impacted Files
Coverage Δ

src/handlers/default/default.handler.ts
100.00% <ø> (ø)

src/adapters/dummy/dummy.adapter.ts
100.00% <100.00%> (ø)

src/handlers/huawei/http-huawei.handler.ts
100.00% <100.00%> (ø)

src/resolvers/dummy/dummy.resolver.ts
100.00% <100.00%> (ø)

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


feat: add partial multiline prompt support

This is blocked by a PR to Xonsh (linked below) that handles the affixes setting the semantic marks

Not blocked by upstream anymore

Thanks @eugenesvk ! we would need to update the requirements after the release xonsh with the PR


cargo: time; set to ^0.1

#4 fix

@Horki Thanks for the fix!
Looks good to me, so I'm going to merge this ✅


Demo on GAT with ClusterNodeGenerator?

Hi,
I'm trying to use GAT in an inductive learning setting. I read from the previous discussions that this can be done by ClusterNodeGenerator with GAT. Can you please create a Demo notebook for this process?
This is what my approach looks like -
I created two generators during training:
generator = ClusterNodeGenerator(G_train_val, [y_train.index, y_val.index])
train_gen = generator.flow(y_train.index)
val_gen = generator.flow(y_val.index)

generator_test = ClusterNodeGenerator(G_test, [y_test.index])
test_gen = generator_test.flow(y_test.index)

log = model.fit(
        train_gen,
        epochs=epochs,
        validation_data=val_gen,
        verbose=2,
        shuffle=False,
        callbacks=callbacks,
    )

And to get the node embedding model, after training process, I extracted the graph attention layers as follows:
emb_layer = next(l for l in model.layers if l.name.startswith("graph_attention"))
x_emb_out = tf.squeeze(emb_layer.output, axis=0)
embedding_model = Model(inputs=x_inp, outputs=x_emb_out)
emb_test = embedding_model.predict(test_gen)
test_emb = dict(zip(test_gen.node_order, emb_test))

Am I doing it correctly?
Thank you in advance.

Thanks for getting in touch. Did you encounter any problems with your approach?
I suspect you've seen the demo for ClusterNodeGenerator + GCN? I believe a GAT demo would involve exactly the same code, with a change from cluster_gcn = GCN(...) to cluster_gat = GAT(...).


Take the most recently reported generator operating date when there's no 70%+ consistently reported date

Overview
Closes #423.
What problem does this address?
Inconsistently reported generator operating dates have been a persistent concern for downstream users, as they wind up being reported as nulls in our entity table after harvesting (see #423, #3340, e.g.). We attempted earlier to adopt a 1 year threshold for rounding and harvesting these dates, but it still left us with a small number of nulls. This PR imposes a more consistent and complete treatment of generator operating dates when they are inconsistently reported.
What did you change?
When generator operating dates are inconsistently reported in 860 and 860M, we default to taking the most recently reported generator operating date. Of the small number of generator operating dates that we could confirm were incorrectly reported, the most recently reported dates wound up being more factually correct (see #423). Rather than having a mix of methods for filling in generator operating dates, let's just adopt a blanket treatment here and assume that the most recent date is an acceptable substitute for a NAN.
Testing
How did you make sure this worked? How can a reviewer verify this?
Run the debug_harvesting notebook, and compare the outputs with the generators identified in #423.
# To-do list
- [x] Update the [release notes](../docs/release_notes.rst): reference the PR and related issues.
- [x] Ensure docs build, unit & integration tests, and test coverage pass locally with `make pytest-coverage` (otherwise the merge queue may reject your PR)
- [x] Review the PR yourself and call out any questions or issues you have
- [ ] For minor ETL changes or data additions, once `make pytest-coverage` passes, make sure you have a fresh full PUDL DB downloaded locally, materialize new/changed assets and all their downstream assets and [run relevant data validation tests](https://catalystcoop-pudl.readthedocs.io/en/latest/dev/testing.html#data-validation) using `pytest` and `--live-dbs`.

Nothing blocking but:
* Rounding to 0.1 degrees (up to 7 miles) feels like it could be too aggressive?

That decision long pre-dates this PR, and the only changes I'm making here are to just change the format of how we're storing the number. So that question feels out of scope here.

The offending version of twine has been yanked so this is working now. I went ahead and added it to the merge queue so it can make it into the builds tonight.


[SPARK-9117][SQL] fix BooleanSimplification in case-insensitive

Merged build triggered.

Merged build started.

cc @marmbrus @chenghao-intel

Test build #37536 has started for   PR 7452 at commit d3cfd26.

Test build #37536 has finished for   PR 7452 at commit d3cfd26.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #37578 has started for   PR 7452 at commit 2a6e692.

Test build #37578 has finished for   PR 7452 at commit 2a6e692.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.


ETC2_EAC textures are upside down after decompression

Could this be helpful? https://github.com/hglm/detex/blob/cab11584d9be140602a66fd9a88ef0b99f08a97a/decompress-eac.c#L54


Use Immutable in reducer

[ ] Use immutable inside accounts reducer
[ ] Document usage with custom redux store

Done!


Color of quote should be blue and author detail red.

According to a survey it has been proved that blue color motivates most and red color attracts most.
Description link:
https://www.sciencedaily.com/releases/2009/02/090205142143.htm

Hi, I want to work on this one!

check #204

Can I work on this.


Declaring inputs and outputs of a node

How do nodes declare their inputs and outputs in the underlying format? How does someone reading math.json determine all the valid inputs and outputs of the nodes in the graph?
This seems related to #29, #77.

Related: #29

Duping into #130


[Feature Request] - I am currently working in this role

Add a checkbox in Experiences to disable the "to" in the date.
Or add the ability to add a current job, which has only a "from" date

yes, that would be awesome


Clone event context before setting the distributed tracing extension

This prevents the client from mutating the caller's copy of the event
allowing for sharing across multiple clients.
Fixes #350

LGTM


100% CPU usage when pty stays on for long

I have created a pseudo bash Terminal which uses pty.js in the backend.
I am seeing that sometimes the server shoots to 100% CPU for one core & it stays there till the Node server is restarted.
It is a multi user setup & when a user connects pty spaws with 'su -l ' as the users need to be jailed into this directory. This 'su' command in some cases is creating 100% CPU usage which I am able to zero in on this issue https://github.com/pocha/terminal-codelearn/issues/7#issuecomment-23223491
Server - Ubuntu 12.04 64 bit AMD
npm version
{ http_parser: '1.0',
node: '0.10.17',
v8: '<IP_ADDRESS>',
ares: '1.9.0-DEV',
uv: '0.10.14',
zlib: '1.2.3',
modules: '11',
openssl: '1.0.1e',
npm: '1.3.8',
'terminal-codelearn': '0.0.3' }

For posterity: in researching this issue I discovered this commit from the "terminal" package for atom, which fixes this issue by running the pty.js process in its own child_process instead of the main process, I guess because of some bad interaction between the pty process and the main event loop.
I don't understand fully, but by copying the idea of this commit, I was able to avoid the high CPU usage problem and still communicate with the pty process.
https://github.com/atom-archive/terminal/commit/f945a35f84aeb3c8e1f52d79a3af24bf47634ea2


MapCache needs re-written

Under very heavy contention, MapCache has really screwy locking which can cause issues in which result gets returned.
I also know some devs have looked at some things to replace LRU with in order to prevent large scans from clobbering cache.
This ask is to have a better MapCache implementation that can handle high concurrency better.

Did https://github.com/apache/incubator-druid/pull/3028 address this?

Yes.


Add scalar value types for C#, Go, PHP, and Ruby

@estan
I came across this repo and was so happy I didn't have to do this myself, so 👏  thank you!
I wanted to be able to show the Go/Ruby types for scalar values, so I added them to the JSON file. Then I realized that someone will just have to do the same thing for C#/PHP later, so I've added those as well.
I added a new example that lists all the types (mostly so I could be sure everything worked as expected). If you're happy with this, I can update https://github.com/estan/protoc-gen-doc/wiki/Custom-Templates#template-input-data-format with the new values after this has been merged.

ping @estan

Please see my recent addition to the README.md, copied below. My sincerest apologies for this.
To all users of `protoc-gen-doc`: This project is now unmaintained and
seeking a new maintainer. The reason for this is two-fold:

1. I'm not using Protocol Buffers myself anymore, and haven't done so
   for years.

2. I'm too busy with work and other projects to keep developing
   the tool, deal with feature requests and PRs.

Too all those who have outstanding pull requests and/or issues filed:
I'm really sorry, and thank you so much for your contributions, but I
simply don't have time for the project anymore, even if it is quite
low-maintenance.

Are you a user of `protoc-gen-doc` who feel you could take over? Great!
Please get in touch with me privately and we can discuss how to best
proceed (GitHub forking and transferring of Travis CI / AppVeyor / Open
Build Service accounts). The code is quite simple and only moderate C++
skills and some familiarity with Qt is needed.

Again, to all users: I'm sorry for this inconvenience, but it would be
dishonest of me to continue claiming maintainership of this project
when I don't have the time anymore.


Version number in releases different than npm version

I just noticed that under releases the version number jumped from v0.1.3 to v1.0.4 and v1.0.7, while the npm version or the plugin version in Homebridge states homebridge-deconz v0.1.7. Is this the way it is intended?

Latest release is v1.0.7, in releases, on npm, and on Discord.  What’s the issue?

I see it differently:

https://www.npmjs.com/package/homebridge-deconz

Indeed, my latent dyslexia kicks in: it’s v0.1.7

And now v0.1.9.


Add License to Repo

There are license files in the subdirectories, but this seems like a good idea: https://github.com/pothosware/pothos/commit/4149461642b355f4d689cf981fbde8c3e68fe512


[Feature Request] Add Discord Link

Hey,
Would it be possible to add a discord link to our server via the plugin,
we can use either:

https://runewatch.com/discord
https://discord.gg/runewatch-293451186848137237

Please let us know what you think!

Hey!! Where are you thinking these links would be visible?

Not entirely sure, but other plugins have it on the sidebar, I know this is more of a 'config and forget' type of plugin, but perhaps it could sit where you set the config


BODGE: send ESC at the start of the PGO test to unblock it tonight

We're all really excited for the stuff that's in canary currently. If we can't figure out how to actually fix this before 5pm, well, this will work.
See #16960

Didn't need this, we figured it out over in  #16993


Light background colour is shown when navigating between right docked modal pages

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open a right docked page on web or desktop
Navigate deeper into another right docked modal
Navigate back and forth between them

Expected Result:

We shouldn't see an obviously incorrect colour as the background

Actual Result:

We see an obviously incorrect colour as the background (this existed before, but is much more jarring with the darker colours.)

Platform:

Where is this issue occurring?

Web
Desktop App

Reproducible in staging?: yes
Reproducible in production?: yes, pretty soon
Email or phone of affected tester (no customers): all
View all open jobs on GitHub

Proposal
Problem
In https://github.com/Expensify/App/blob/13970529db79931c2371f7a0b6d5f96792e08c60/src/libs/Navigation/NavigationRoot.js#L19
we're setting background of navigation is #002E22
Solution
In https://github.com/Expensify/App/blob/13970529db79931c2371f7a0b6d5f96792e08c60/src/libs/Navigation/NavigationRoot.js
const navigationTheme = {
    ...DefaultTheme,
    colors: {
        ...DefaultTheme.colors,
-        background: themeColors.highlightBG,
+        background: 'transparent',
    },
};

https://user-images.githubusercontent.com/113963320/204513280-ab104b3c-19a8-4a06-a2e4-16bf71e1a0a0.mov

Proposal
A lighter bg colour is shown when navigating between right-docked modal pages, e.g: Workspaces.
To fix this, we could introduce a minimal change - which is the following:
In src/libs/Navigation/NavigationRoot.js:
const navigationTheme = {
    ...DefaultTheme,
    colors: {
        ...DefaultTheme.colors,
-        background: themeColors.highlightBG,
+        background: themeColors.appBG,
    },
};

This maintains the background colour of NavigationContainer to be the same as the ModalStackNavigators, therefore a different (incorrect) colour won't be shown.
Web:
https://user-images.githubusercontent.com/28676406/204963154-84ce6172-bc75-4289-bf50-d90ecfd14d90.mov
Desktop:
https://user-images.githubusercontent.com/28676406/204963167-5d6a912a-2af7-441a-8adf-254ace42dcd1.mov
A lighter bg colour is not shown anymore ✅
Thanks! 🙂

Nice, yeah I agree we should use the appBG color here

Ideal 👍

Hi @rushatgabhane  I just created The PR. Please help to review it

Merged awaiting deployment

Update:
@tienifr and @rushatgabhane, I hired both of you for the job in Upwork.

This was always present, right? The color difference just became more apparent when we switched to dark mode

Yeah, correct.

Update: @tienifr and @rushatgabhane were paid!
The contract ended in Upwork.

@Julesssss @rushatgabhane can you please update the checklist above? Thanks!

Hi @isabelastisser, I didn't check the boxes initially because it's not relevant here. This wasn't a regression and I think the checklist is often incorrectly added to every issue.

Thanks for the heads up, @Julesssss ! Closing the issue then.

@tienifr @rushatgabhane yes, I issued the bonus now. Thank you!


Move the opt-in-extensible-enums: true to global yaml section.

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-go

Automation for azure-sdk-for-js

Automation for azure-sdk-for-net
A PR has been created for you:
https://github.com/azure/azure-sdk-for-net/pull/5701
.NET SDK Commits:
https://github.com/adxsdknet/azure-sdk-for-net/pull/5701/commits/12760d3e6bceae09ea17c7b03b799e7964d66797

Automation for azure-sdk-for-java

Can one of the admins verify this patch?


Taking a stab a running this on pantheon -- and failing miserably

Hello auth0-drupal team,
First thank you for your efforts to integrate auth0 into Drupal - I have it up and integrated successfully on my local system -- using our Auth0 Gold to integrate to a SAML based system, as well as opening up logins for facebook and google.
I run into an error when trying to load the module to our pantheon hosting.
1st - I had to remove the .git and .gitignore as submodules are not supported, so I will maintain the code locally and push updates. Now the module is at least detected and can be installed.
the real issue is that when attempting to login I receive the error:
Fatal error: Class 'OAuth2\Client' not found in /srv/bindings/36b2039eeede484288b73d30a7fdba39/code/sites/all/modules/auth0-drupal/vendor/auth0/auth0-php/src/Auth0.php on line 206
Though I know that adoy's Oauth2 is included in the module.
Any insight or hints on where to look are greatly appreciated.
Cheers,
Gregg

you need to run composer install to download the module dependencies, I think you need to use something like this https://www.drupal.org/project/composer_manager

you are absolutely correct @glena - I was using composer from command line on the local system so thought those dependencies were included in the push .. but not so.
Now just need to figure out how to run composer install on pantheon environment. we could close this out as an issue - though I'll update it when I figure out how to run this remotely.
Thanks indeed.

Did you check the module I said before? That should do the trick
On Tue, Jul 5, 2016 at 19:34 Gregg Turnbull<EMAIL_ADDRESS>wrote:

you are absolutely correct @glena https://github.com/glena - I was
using composer from command line on the local system so thought those
dependencies were included in the push .. but not so.
Now just need to figure out how to run composer install on pantheon
environment. we could close this out as an issue - though I'll update it
when I figure out how to run this remotely.
Thanks indeed.
[image: screen shot 2016-07-05 at 4 30 37 pm]
https://cloud.githubusercontent.com/assets/14809023/16602017/26215a92-42ce-11e6-862f-f4a6bc2e60bc.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/auth0/auth0-drupal/issues/24#issuecomment-230622519,
or mute the thread
https://github.com/notifications/unsubscribe/AFYrzvO4tZymObXxnkK_ZuJnZaKxao2Bks5qStv9gaJpZM4JFlO1
.

I think this module should install the dependencies somehow. I am not familiar with it tho

Found the missing piece. The screen shot mentioned in a previous note in the thread was indeed Composer Manager. Using composer I installed all dependencies for auth0_drupal:

but was still getting the error message. It turns out the all/vendor/adoy/auth2 folder was empty (even though composer manager showed it installed). just copied over the contents of that folder from my local host and now I can use auth0_drupal on pantheon. Thanks again @glena.

cool :)

Just a quick update.. had to back out of the idea of using composer_manager as it does not play nice with pantheon - auth0 worked for a while but one of my next commits triggered a rebuild and it wiped out the dependencies I had loaded. Ended up just using composer locally to build, and removed the .git / .gitignore items from the dependencies and included them in the pantheon repo. Pantheon does not currently support submodules and ignores any folders that have a .git included.
There may be a cleaner way to reload git so it sees the updates but I just did as so:

removing the local .git and .git ignores in the auth0-drupal/vendor subfolders (dependencies)
moved the auth0-drupal module folder outside the project
ran git commit
moved the module folder 'auth0-drupal' back to sites/all/modules/
ran git add sites/all/modules/auth0-drupal.
All code now showed up in the next git commit, and once pushed to pantheon auth0 worked.

May help someone.


Crashed：Unsupported concurrent change during composition. A state object was modified by composition as well as being modified outside composition.

I got this error when using mutableStateListOf
and i update  mutableStateListOf in other thread
tried:

tried:

Exception in thread "main" java.lang.IllegalStateException: Unsupported concurrent change during composition. A state object was modified by composition as well as being modified outside composition.
	at androidx.compose.runtime.Recomposer.applyAndCheck(Recomposer.kt:801)
	at androidx.compose.runtime.Recomposer.access$applyAndCheck(Recomposer.kt:103)
	at androidx.compose.runtime.Recomposer.performRecompose(Recomposer.kt:1064)
	at androidx.compose.runtime.Recomposer.access$performRecompose(Recomposer.kt:103)
	at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$2.invoke(Recomposer.kt:447)
	at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$2.invoke(Recomposer.kt:416)
	at androidx.compose.ui.window.YieldFrameClock.withFrameNanos(Application.desktop.kt:210)
	at androidx.compose.ui.window.YieldFrameClock$withFrameNanos$1.invokeSuspend(Application.desktop.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

how to solve the problem?

Do you have a minimal reproducer? It looks like a bug.
I have tried this:
import androidx.compose.foundation.layout.Row
import androidx.compose.material.Text
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.ui.window.singleWindowApplication
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext

val list = mutableStateListOf<Int>()

fun main() = singleWindowApplication {
    Row {
        for (item in list) {
            Text(item.toString())
        }
    }
    LaunchedEffect(Unit) {
        withContext(Dispatchers.IO) {
            repeat(1000) {
                list.add(it)
            }
        }
    }
}

there is no crash.

wait,i am writing the example

Do you have a minimal reproducer? It looks like a bug.
I have tried this:
import androidx.compose.foundation.layout.Row
import androidx.compose.material.Text
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.ui.window.singleWindowApplication
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext

val list = mutableStateListOf<Int>()

fun main() = singleWindowApplication {
    Row {
        for (item in list) {
            Text(item.toString())
        }
    }
    LaunchedEffect(Unit) {
        withContext(Dispatchers.IO) {
            repeat(1000) {
                list.add(it)
            }
        }
    }
}

there is no crash.

Sorry for late reply,finally I finished the bug example.
Link is here：https://drive.google.com/file/d/1ylKpIgvxI7OzeEIWZoXTHzeHfPgY_EdG/view?usp=sharing
Run the project,and click "Click to show First Dialog" > "Click me to display bug",then you will get crash

Thanks! I reproduced the crash.
After looking at the code, it no longer looks like a bug.
The crash happened because we modify the list simultaneously from the composition:
if(it.dismissed){
   dialogList.remove(it)
}

and from another thread (dialogList.add)
This is usually not a valid code if you modify any state inside Composable function (this is only valid, if you reading the state immediately after modifying it, and don't modify it anywhere else)
To solve the issue, you should move dialogList.remove to non-Composable function. For example, after moving it to DialogState.dismiss, the crash disappeared.

OK,Thank you for sovle the problem.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Validate DTOs

Closes #258
todo:

[x] validate normal api dtos
[x] validate patch api dtos
[x] validate internal dtos

Most of this does not comply with the NestJS validation conventions:

Separating DTOs from Entity representations
No constructors in DTOs
Placing DTOs in the belonging module

We could merge this, but I would recommend going with the framework. What do you think?
I don't want to annoy you with this, don't get me wrong. I can also offer to make the recommended changes myself if you are busy :-)

I unfortunately won't be able to work on this this week since I have an exam on Monday :(
Concerning your first two points, we explicitly decided against these since (as far as I can tell) they would lead to major code duplication & boilerplate. You have my go to feel free to make any changes though if you think it would be better in a different way :)


Program For Bubble Sorting Array (C++)

Contribution For Hacktoberfest

Not accepting CPP/C DSA codes
Alternative ->
1)Create a page using HTML & CSS Add DSA problem statement and solution in that
2)You can contribute in python and java OR
Ask for an issue assign
3)Contribute to Web Project


Running tokenizer on dataset 一直阻塞，然后subprocesses has abruptly died during map operation

Reminder

[X] I have read the README and searched the existing issues.

System Info

Reproduction
使用2048*2048的图片，总量3万个图文对，sharegpt格式的数据集。
设置preprocessing_num_workers=256  或者128/64等，都会在Running tokenizer on dataset的时候暂停，在长时间等待后出现One of the subprocesses hasabruptly died during map operation。
Expected behavior
No response
Others
No response

刚好我也遇到了这个问题，应该是Running tokenizer on dataset的时间太长了，然后多机通信等待时间太久（ddp_timeout参数）最后挂了，可能只能增大preprocessing_num_workers或者是预先处理数据？看了几个issue感觉只能这样

刚好我也遇到了这个问题，应该是Running tokenizer on dataset的时间太长了，然后多机通信等待时间太久（ddp_timeout参数）最后挂了，可能只能增大preprocessing_num_workers或者是预先处理数据？看了几个issue感觉只能这样

我用了4台H100，preprocessing_num_workers设置为512还是会有这个问题，在图片改小以后可以，应该是在处理超长的tokenizer的时候有问题

刚好我也遇到了这个问题，应该是Running tokenizer on dataset的时间太长了，然后多机通信等待时间太久（ddp_timeout参数）最后挂了，可能只能增大preprocessing_num_workers或者是预先处理数据？看了几个issue感觉只能这样

我用了4台H100，preprocessing_num_workers设置为512还是会有这个问题，在图片改小以后可以，应该是在处理超长的tokenizer的时候有问题

可能你的图片太大了，我8张v100训练llava，2w多条图文对，图片size比较小，preprocessing_num_workers设为128也很慢，你的量级应该比我大多了～，不过tokenizer多过程应该是只用了cpu没用到GPU，其实还有一个方法是设置数据集加载方式为streaming: true，但是实测这种方式训练到时候显卡利用率提不上来，基本上一直在加载当前iter的数据，或许只能看看像xtuner这些库是怎么处理的了

I got the problem when i tried to increase max_samples

进一步debug这个问题，发现是在多进程处理数据的时候，有进程挂掉导致处理超时失败。

+1 same issue.

try removing the preprocessing_num_workers argument

@hiyouga I already removed preprocessing_num_workers in the YAML file, but it works. But when I try increasing max_samples, the RAM overflows. I'm using qwen2vl_lora_sft.yaml."

^ Same for me. I tried to make it save to disk from time to time (in arrow files), but then I realised that even if I do that, you'd still expect to have the whole dataset loaded into RAM for training - is that really needed/necessarily?

@Mihaiii Do you have any solution for the problem?

@Mihaiii Do you have any solution for the problem?

Apparently there's a streaming param (https://huggingface.co/docs/datasets/v2.21.0/stream) that is made for this use case (meabing to load the dataset after the dataset in tokenized in chuncks and save on disk as arraw files), but I erased my temp disk with the training data and gave up on my fine-tune project for the moment so i can't try it.

@huynhbaobk so I would first try to save in chunks (example genrated vby ChatGPT):
from datasets import Dataset
import os

# Assume 'raw_datasets' is your original dataset

# Directory to save the tokenized dataset in chunks
output_dir = "tokenized_dataset"

# Create directory if it doesn't exist
if not os.path.exists(output_dir):
    os.makedirs(output_dir)

def tokenize_function(examples):
    return tokenizer(examples['text'], truncation=True, padding=True)

# Process and save the dataset in chunks
for i in range(0, len(raw_datasets), 1000):
    # Slice the dataset into chunks of 1000 samples
    chunk = raw_datasets.select(range(i, min(i+1000, len(raw_datasets))))

    # Tokenize the chunk
    tokenized_chunk = chunk.map(tokenize_function, batched=True)

    # Save the tokenized chunk to disk
    tokenized_chunk.save_to_disk(os.path.join(output_dir, f"chunk_{i//1000}.arrow"))

Instead of this line: https://github.com/hiyouga/LLaMA-Factory/blob/c87023d539875cd8e622d40212a5627c9c182fb8/src/llamafactory/data/loader.py#L183
And the load the tran dataset and eval dataset from disk with stream=True.

@Mihaiii LlamaFactory also supports streaming when you specify streaming: true

@Mihaiii LlamaFactory also supports streaming when you specify streaming: true

Maybe some problem, when streaming mode used, dataset type is 'InterableDataset', but 'map' function has problem to resolve the sharegpt format json file.
data
/aligner.py

I solved the problem by set streaming: true in config yaml.
And in file aligner.py   the remove_columns = column_names will remove the **images** field. So i try to keep the images columns by
add line 210:
column_names = list(next(iter(dataset)).keys())
column_names = column_names.remove("images")

I solved the problem by set streaming: true in config yaml. And in file aligner.py , the function align_dataset return have remove_columns = column_names, it removes the images field in final dataset. So i tried to keep the images columns by add line 210:
column_names = list(next(iter(dataset)).keys())
column_names = column_names.remove("images")

when i set “column_names”，although it can continue process data, but still timeout , and it seems all data to be tokenizer before training.

Do you have any idea?

I solved the problem by set streaming: true in config yaml. And in file aligner.py , the function align_dataset return have remove_columns = column_names, it removes the images field in final dataset. So i tried to keep the images columns by add line 210:
column_names = list(next(iter(dataset)).keys())
column_names = column_names.remove("images")

when i set “column_names”，although it can continue process data, but still timeout , and it seems all data to be tokenizer before training.  Do you have any idea?

I have the same problem as you. I still don't know how to fix it. I can run model with small sample arround 1500 samples but it take a lot of RAM to load dataset. If I use streaming, it still stuck with error:
File "/usr/local/lib/python3.10/dist-packages/transformers/models/qwen2_vl/modeling_qwen2_vl.py", line 318, in forward
    q = apply_rotary_pos_emb_vision(q.unsqueeze(0), rotary_pos_emb).squeeze(0)
  File "/usr/local/lib/python3.10/dist-packages/transformers/models/qwen2_vl/modeling_qwen2_vl.py", line 204, in apply_rotary_pos_emb_vision
    output = (tensor * cos) + (rotate_half(tensor) * sin)
RuntimeError: The size of tensor a (2) must match the size of tensor b (1512) at non-singleton dimension 1

@hiyouga could you help us?

fixed in #5346


fix when if publish and be down, need recalc delete bitmap for MoW

Proposed changes
Issue Number: close #xxx
Problem summary
if publish and be down, load_info will set unique_key_merge_on_write=false, need recalc delete bitmap
Checklist(Required)

[ ] Does it affect the original behavior
[ ] Has unit tests been added
[ ] Has document been added or modified
[ ] Does it need to update dependencies
[ ] Is this PR support rollback (If NO, please explain WHY)

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 33.7 seconds
stream load tsv:          462 seconds loaded<PHONE_NUMBER>9 Bytes, about 154 MB/s
stream load json:         37 seconds loaded<PHONE_NUMBER> Bytes, about 60 MB/s
stream load orc:          73 seconds loaded<PHONE_NUMBER> Bytes, about 14 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230309134831_clickbench_pr_111550.html

run p0

run p0

run p0

run p0

run p0


The JSON API doesn't accept itself

When my model returns Json data I can return that to the user... but I need to convert to Zewo.JSON when I want to return an array of these JSON models to the user.

I think I understand the issue here. We need to support JsonRepresentable and [JsonRepresentable] as return options.
Can you paste a code snippet to reproduce this so I can make sure that's the issue?
I think @LoganWright and I were talking about how to make an array conform like this.

    func makeJson -> Json
}```

This is fine as is. Because I can return anything. Double, String, int, Bool and Arrays/Dictionaries.
But if I want recursive dictionaries it doesn't work anymore since I need to use this function:
`public init(_ value: [String: JsonRepresentable])`.
 But when I throw in the following data it doesn't work:

```["hello": "world",
"number": 3,
"subDictionary": Json.object([
"subNumber": 4,
"substring": "bob"
]),
"bool": true
]

What I need to do is this:
"number": 3,
"subDictionary": Json.object([
"subNumber": 4,
"substring": "bob"
]).makeZewoJson(),
"bool": true
]

I just tested this on 0.8.1 and it's working fine
Json([
  "hello": "world",
  "number": 3,
  "subDictionary": [
    "subNumber": 4,
    "subString": "bob"
  ],
  "bool": true])

Thanks @timominous


NH-34014: Scraping labels/annotations out of Deployments

NOTE: This PR does not fulful whole story, it is just one part of it. I want to split that into multiple iterative PR's for better reviews.
In this PR:

Initial fork of k8sattributes processor (https://github.com/solarwinds/swi-k8s-opentelemetry-collector/pull/240/commits/4b513e5f6e4b4382f2797fee8e33d0f4e257a95a)
Adjusted processor to scrape Deployment labels/annotations (https://github.com/solarwinds/swi-k8s-opentelemetry-collector/pull/240/commits/9727e549b7b98d68633f8ba78509701ee7f82e9e)
Adjusting doc.go file (https://github.com/solarwinds/swi-k8s-opentelemetry-collector/pull/240/commits/bbaae3cb91ffa97189ef00a377797017210ed597)

This will not be applied in Helm chart as it would need to update image, so that will be done in followup PR's.

To make it super clear, it would be better to do just fork of original k8satttribte and in next PR do changes into it. Here it's hard to compare what's original code and what's updated


Enrollment errors

It would be useful if you can share some info on how to track the reason or the fix the issues with Co-Management enrollment errors in extension to this document as co-management handler logs are not really helpful.
(1/13/2019: admin edit to rehome with new article)

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

ID: dc1ee352-7d48-d065-ec99-f1e309f65e56
Version Independent ID: 2969fd93-1cca-fa3f-8530-74046d93c559
Content: Monitor co-management - Configuration Manager
Content Source: sccm/comanage/how-to-monitor.md
Product: configuration-manager
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

Thanks @SC2385 for the feedback. We're already working on this! No ETA right now though.

Cross reference internal BUG 3158555

We closed this issue because I merged an update to this article that addresses this feedback. It will publish live tomorrow (Tuesday, 12 February around 11am Pacific time). If you have any additional feedback once it goes live, please open a new issue.


MoonPush: read token contract address from chain for asset across bridge

for moonriver:

[ ] support asset across bridge:  Anyswap, Celer
[ ] read token contract address
[ ] read token symbol, decimals

concept:
chain
address
token
contract address
contract method topic

tools:
web3.js
ether.js
polkadot.js

explorer:
https://moonbeam.moonscan.io/
https://moonbeam.subscan.io/
https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fmoonbeam.api.onfinality.io%2Fpublic-ws#/explorer/query/1001624

Regularly pull contract information from anyswap, and extract the token according to chainId/srcChainId = 1284(Moonbeam)/1285(Moonriver);
Use ethers.js to query token information.
Normalize data and insert into database.


Sphinx 2.0 may require a different jQuery body selector

I think that Sphinx 2.0 needs this selector:
versionwarning_body_selector = 'div[itemprop="articleBody"]'

while with Sphinx < 2.0 we were using:
versionwarning_body_selector = 'div.body'

So, it would be good to set the proper default based on the Sphinx version.

I think it's not Sphinx 2.0 but the latest release of sphinx-rtd-theme.

Related to #32


arm64 building need chromium binary (puppeteer dep).

Info
Uptime Kuma Version: latest git
Using Docker?: Yes
Docker Version: 20.10.8
Node.js Version (Without Docker only): 14
OS: arm64 manjaro
Browser: Firefox, chromium installed
Building arm64 throw error:
#19 [linux/arm64 fetcher 5/5] RUN npm install --legacy-peer-deps &&     npm run build &&     npm prune --production
#19 165.2
#19 165.2 ><EMAIL_ADDRESS>install /home/debian/uptime-kuma/node_modules/@louislam/sqlite3
#19 165.2 > node-pre-gyp install --fallback-to-build
#19 165.2
#19 168.7 [@louislam/sqlite3] Success<EMAIL_ADDRESS>is installed via remote
#19 168.8
#19 168.8 ><EMAIL_ADDRESS>install /home/debian/uptime-kuma/node_modules/puppeteer
#19 168.8 > node install.js
#19 168.8
#19 170.8 The chromium binary is not available for arm64.
#19 170.8 If you are on Ubuntu, you can install with:
#19 170.8
#19 170.8  sudo apt install chromium
#19 170.8
#19 170.8
#19 170.8  sudo apt install chromium-browser
#19 170.8
#19 170.8 /home/debian/uptime-kuma/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115
#19 170.8                     throw new Error();
#19 170.8                     ^
#19 170.8
#19 170.8 Error
#19 170.8     at /home/debian/uptime-kuma/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115:27
#19 170.8     at FSReqCallback.oncomplete (fs.js:191:21)
#19 175.3 npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/fsevents):
#19 175.3 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
#19 175.3
#19 175.4 npm ERR! code ELIFECYCLE
#19 175.4 npm ERR! errno 1
#19 175.5 npm ERR<EMAIL_ADDRESS>install: `node install.js`
#19 175.5 npm ERR! Exit status 1
#19 175.5 npm ERR!
#19 175.5 npm ERR! Failed at the<EMAIL_ADDRESS>install script.
#19 175.5 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#19 175.7
#19 175.7 npm ERR! A complete log of this run can be found in:
#19 175.7 npm ERR!     /home/debian/.npm/_logs/2021-10-07T02_35_46_150Z-debug.log
#19 ERROR: process "/bin/sh -c npm install --legacy-peer-deps &&     npm run build &&     npm prune --production" did not complete successfully: exit code: 1
------

Build fine on amd64 due availability chromium binary.
#16 42.11
#16 42.11 ><EMAIL_ADDRESS>install /home/debian/uptime-kuma/node_modules/puppeteer
#16 42.11 > node install.js
#16 42.11
#16 110.8
#16 114.2 Chromium (901912) downloaded to /home/debian/uptime-kuma/node_modules/puppeteer/.local-chromium/linux-901912
#16 114.2
#16 114.2 ><EMAIL_ADDRESS>postinstall /home/debian/uptime-kuma/node_modules/@fortawesome/fontawesome-common-types
#16 114.2 > node attribution.js
#16 114.2

Ah ok, got it. Thanks for the help. Build correctly now.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true


Updated for cpp test

Hey, I ran into some issues trying to use your library with C++, so I made a couple of quick updates and it seemed to work. I'm not sure that I needed the >= 0.22 in the Cargo.toml, but, for me, it kept trying to grab the older tree-sitter lib (20.10) vs. (22+). Anyway, fun lib!

hey @jcarlson23 I added your changes to our fork https://github.com/baz-scm/tree-sitter-traversal we are willing to maintain it and published it to crates.io under the name baz-tree-sitter-traversal. The imports stay the same, so it is an easy switch 🙂


List of communicators is not uniform between translated files

List of communicators is not uniform between translated files. Maybe some automated testing should be added?

Since it's a piece of shitpost art, Perl should be the weapon of choice for testing


[DPTOOLS-2721] bugfix - refreshing DAG throws exception

Issue link: WILL BE INSERTED BY boring-cyborg
Make sure to mark the boxes below before creating PR: [x]

[ ] Description above provides context of the change
[ ] Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
[ ] Unit tests coverage for changes (not needed for documentation changes)
[ ] Commits follow "How to write a good git commit message"
[ ] Relevant documentation is updated including usage instructions.
[ ] I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].

In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

Codecov Report

Merging #178 into airflowinfra will decrease coverage by 0.77%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##           airflowinfra     #178      +/-   ##
================================================
- Coverage         81.64%   80.87%   -0.78%
================================================
  Files               529      529
  Lines             36559    36559
================================================
- Hits              29850    29568     -282
- Misses             6709     6991     +282

Impacted Files
Coverage Δ

airflow/serialization/serialized_objects.py
90.14% <100%> (ø)
:arrow_up:

airflow/operators/mysql_operator.py
0% <0%> (-100%)
:arrow_down:

airflow/operators/mysql_to_hive.py
0% <0%> (-100%)
:arrow_down:

airflow/contrib/kubernetes/volume_mount.py
33.33% <0%> (-66.67%)
:arrow_down:

airflow/contrib/kubernetes/volume.py
50% <0%> (-50%)
:arrow_down:

airflow/executors/sequential_executor.py
50% <0%> (-50%)
:arrow_down:

airflow/contrib/kubernetes/pod_launcher.py
45.11% <0%> (-47.37%)
:arrow_down:

airflow/contrib/kubernetes/pod_generator.py
42.5% <0%> (-45%)
:arrow_down:

...rflow/contrib/operators/kubernetes_pod_operator.py
56.84% <0%> (-40.01%)
:arrow_down:

airflow/contrib/kubernetes/refresh_config.py
50.98% <0%> (-23.53%)
:arrow_down:

... and 9 more

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 ace9a0d...aa8602b. Read the comment docs.


[ANNOUNCEMENT] mathjax v3 in alpha

For those not following the mathjax-dev mailing list or the MathJax/MathJax repository, MathJax v3 is in alpha and currently resides at https://github.com/mathjax/mathjax-v3.
It's a re-write (of most) of MathJax and supports NodeJS out of the box. It provides a (new) architecture for page-wide processing as well and thus (eventually) this code base will become obsolete.

Thank you for these very good news. This looks rather far from being end-user ready though. In the mean time, could you answer my question about sre?

v3 is now in beta.

MathJax v3 is out.
This repository will probably retire some time soon.


[Bug]: Missing Hover effect & feedback page navbar issue

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
hey, @mansiruhil13

Hover effect missing on subscribe buttons & Sign up button and not proper color picked for Home button on login page on Hovering

https://github.com/user-attachments/assets/9e711122-4888-419c-8f5c-5b4a7ad56958

Feedback heading should not be inside the navbar

We should fix them
Add Screenshots
No response
What browsers are you seeing the problem on?
No response
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

Please assign me so that I can quickly fix it


⚠ ClamAV has degraded performance

In 5d14384, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 279 ms

Resolved: ClamAV performance has improved in 7c2b4bc after 5 minutes.


Add support for eager IOPlugins

This is a mechanism by which certain IOPlugins can be labeled with an "eager" attribute in the @Plugin annotation, and then ImageJ Legacy's override of File→Open... will give them a chance to handle files before the original ImageJ goes through its whole pipeline of logic.
This behavior happens even when the "Use SciJava I/O" option is disabled, so plugins should take care to label themselves "eager" only when they really need to go before standard ImageJ logic. This is currently the case e.g. for directories, because the original ImageJ always tries to handle them with Open Image Sequence, but we have cases where we want to handle directories with particular contents, such as N5 and Zarr, with plugins instead.

@ctrueden I think we need this little patch:
index a19500c..afb4d77 100644
--- a/src/main/java/net/imagej/legacy/plugin/DefaultLegacyOpener.java
+++ b/src/main/java/net/imagej/legacy/plugin/DefaultLegacyOpener.java
@@ -141,7 +141,7 @@ public class DefaultLegacyOpener implements LegacyOpener {
                                        logService.debug("Eager format '" + io.getClass().getName() + "' opened nothing.");
                                        return null; // Pass through to original ImageJ.
                                }
-                               handleData(c, data, path, displayResult);
+                               return handleData(c, data, path, displayResult);
                        }
                        catch (final IOException exc) {
                                legacyService.handleException(exc);

otherwise the IJ1 believes we failed opening anything and (besides the "eager" plugin) something else may get opened too

I just tested it in the production env (official Fiji with replaced imagej-legacy...jar on my Linux and it works well

@xulman Thanks for testing, and for the patch! I squashed it in. As soon as the CI passes, I'll merge this. :+1:


Integration in Next.js throwing errors

Hey,
I'm trying to setup sqlite on my Next.js + CapacitorJS (for Web & Mobile) but I can't manage to make it works. I'm using the latest version of Next.js with the app directory, I created a client side component that is loaded in my RootLayout to load all this stuff:
I'm getting errors around this 2 functions:
await customElements.whenDefined("jeep-sqlite");
await sqlite.initWebStore();

That looks like that:

I'm loading all function inside a useEffect (otherwise I can't access to the window component). Here is my full component:
"use client";

import { CapacitorSQLite, SQLiteConnection } from "@capacitor-community/sqlite";
import { Capacitor } from "@capacitor/core";
import { defineCustomElements as jeepSqlite, applyPolyfills, JSX as LocalJSX } from "jeep-sqlite/loader";
import { createContext, useEffect, useState } from "react";
import { useSQLite as useSQLiteExtern } from "react-sqlite-hook/dist";

const SQLITE_DB_NAME = {
    database: "poc-capacitor",
    version: "0.0.1",
};

const SQLiteContext = createContext(undefined);

function logger(...opts) {
    console.log("[SQLite]", ...opts);
}
function loggerError(...opts) {
    console.error("[SQLite][Error]", ...opts);
}

async function initSQLite() {
    const platform = Capacitor.getPlatform();
    const sqlite = new SQLiteConnection(CapacitorSQLite);

    try {
        // Enable jeepSqlite plugin only on web
        if (platform === "web") {
            logger("Web detected, initialize jeepSqlite plugin");
            const jeepEl = document.createElement("jeep-sqlite");
            console.log("1");
            document.body.appendChild(jeepEl);
            console.log("2");
            await customElements.whenDefined("jeep-sqlite");
            console.log("3");
            await sqlite.initWebStore();
            console.log("4");
        }

        logger("Checking DB consistency");
        const ret = await sqlite.checkConnectionsConsistency();
        const isConn = (await sqlite.isConnection(SQLITE_DB_NAME)).result;
        logger("DB consistency: ", ret, isConn);
        const db =
            ret.result && isConn
                ? await sqlite.retrieveConnection(SQLITE_DB_NAME)
                : await sqlite.createConnection(SQLITE_DB_NAME, false, "no-encryption", 1);

        // Testing the DB connection
        logger("Testing the DB connection");
        await db.open();
        logger("DB opened");
        let query = `CREATE TABLE IF NOT EXISTS test (id INTEGER PRIMARY KEY NOT NULL, name TEXT NOT NULL);`;
        const res = await db.execute(query);
        logger("DB execute: ", res);
        await db.close();
        await sqlite.closeConnection(SQLITE_DB_NAME);
    } catch (err) {
        loggerError("Error on initialization: ", err);
    }
}

export const SQLiteProvider = (props) => {
    const [isPolyfilled, setIsPolyfilled] = useState(false);
    const [isInit, setIsInit] = useState(false);

    async function initPolyfills() {
        logger("Applying polyfills");
        applyPolyfills().then(() => {
            logger("Polyfills applied");
            jeepSqlite(window);
        });
    }

    useEffect(() => {
        if (!isInit) {
            initPolyfills();
            if (document.readyState) initSQLite();
            else window.addEventListener("DOMContentLoaded", initSQLite);

            setIsInit(true);

            return () => {
                window.removeEventListener("DOMContentLoaded", initSQLite);
            };
        }
    }, [isInit, isPolyfilled]);

    return <SQLiteContext.Provider value={{}}>{props.children}</SQLiteContext.Provider>;
};
export const useSQLite = () => {
    return useContext(SocketContext);
};

(the context part is not set yet, I want to make the sqlite works for the moment)

I had similar problems while using Vite without a front-end framework, and I was able to solve it  by replacing defineCustomElements(window) with customElements.define('jeep-sqlite', JeepSqlite) with import { JeepSqlite } from 'jeep-sqlite/dist/components/jeep-sqlite'

@sytzez @navalex this is how it is done with Vite see ionic7-vue-sqlite-app


Linter incorrectly reports undefined variables for module globals

Issue Type: Bug
The following code reproduces the issue:
def does_something():
    var = _CONSTANT

_CONSTANT = 1

Moving the definition of _CONSTANT before the function definition removes the warning, but it shouldn't matter where _CONSTANT is defined.
Extension version: 2019.4.11881
VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz (8 x 2394)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: unavailable_offsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.98GB (8.53GB free)

Process Argv
.

Screen Reader
no

VM
0%

I should also say that when this happens, it prevents other functionality like "Rename symbol"

Please inform if you are using language server or jedi, i.e check the value of python.jediEnabled in settings.json.

I am having this same issue.
Confirmed "python.jediEnabled": false
This is particulary irksome for me as for "reasons" the project i work on has all imports under an
if __name__ == '__main__:
At the bottom of every python script.
This is resulting in thousands of "undefined variable:" Warnings and green squigglies everywhere...

Issue moved to Microsoft/python-language-server #1016 via ZenHub


Added new "copypaste" mode

Added new mode as an option to deal with the slow-typing issue in type mode, updates with readme.md and added TOC to it.
I am using kde and I have noticed that the type mode is really slow when it is dealing with non-ascii character, see this: https://i.imgur.com/BOiNAeO.gifv
This is just really annoying when chatting with someone using keyboard, I have to wait until it is done and finally I can type my things. Although you can just use the copy mode and paste it yourself, but I think the copypaste mode will just do things faster, see the gif for example: https://i.imgur.com/zOFe8uA.gifv
Some minor changes with the readme.md files and added Table of contents to it so it will be easier for linux beginners and faster navigation between different sections.

I think I'm totally down for this. Xdotool is just so janky for type mode, it's a shame.
Not sure why it didn't occur to me to do this already! I think the potential variability of paste key combos must have caught me up, but making it a config value seems to straight up solve that. Great.
I'll take a closer look and get this incorporated soon, thanks! 😁

Okay so I added tests and refactored it slightly to be more DRY and boom goes the dynamite
thanks for your help!  Thanks for accepting the pull request.^_^


Unable to receive Alert emails for more than 2 recipient using Azure security center

Last Friday, we were able to received the alerts for 2 recipient, and if we increase the recipient list then the alert generated on the portal but unable to received an E-mail. Is this is the limitation of the security center.
Today, we are unable to receive the alerts for 2 recipient.

@vs268153 Thank you for reaching out.
Support on GitHub is limited to documentation issues only.
Please post your question on Microsoft Q&A and use the tag azure-security-center for better visibility.
We have an active community of Azure enthusiasts and a dedicated team of Microsoft engineers actively helping fellow community members.


utils.py: Workaround TypeError with Python 2.7.13 in Windows

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense

What is the purpose of your pull request?

[x] Bug fix

Fixes #11540
More exactly it's a workaround, not a fix, but people shouldn't be forced to use a months old version just because of a TypeError in a LoadLibrary that isn't even relevant in Windows.
Also recommend using Python2 for the official builds, since using 3.4.4 (more than a year old) is probably one of the bigger reasons why this error is so prevalent in Windows lately.

Thanks for opening this. How many Python versions have you tested?

Well, the TypeError only triggers with Windows, so I tested with 2.7.12 (clean install), which triggered the OSError and carried on fine, and 2.7.13 (clean install), which triggers the TypeError and also carried on fine.

It's less likely to break existing codes than the str() approach, so I guess it's safe to merge it. Could you add some comments for TypeError?

Ran py -2 --version before to make sure it was using the right versions each time, too; then tested running youtube-dl with py -2 -m youtube_dl.

Should I open a issue asking for the official builds to switch to using Python 2 instead of 3.4.4?

The fix would only need to be more involved were LoadLibrary be needed for a Windows lib, but this is the only use of it in Youtube-DL.

Official builds won't switch to python 2 since this brings encoding issues. Actually switch to python 3 from python 2 has taken place due to this.

So the only fix for official builds with SSL errors is to use --no-check-certificate? How's https://github.com/rg3/youtube-dl/issues/10014 proceeding?

Most of the SSL errors are due to expired certificates in system store removing which fixes the problem.

There's no expired certificates on my system store and I can consistently reproduce the SSL errors with 3.4.4.

I can consistently reproduce the SSL errors with 3.4.4

There are tons of reasons leading to SSL failures; that's why I propose http://bugs.python.org/issue28182


Add event to allow extra permission checking

We needed to do some custom permission checking on internal assets so we added an event to accommodate this.

Dear @FrankZwiers,
thank you for your improvement. I did actually start working on a somewhat more holistic asset management plugin, that does incorporate additional handy features for assets:

adding timestamps to files
preventing overrides of files
add a field that allows admin-panel users to view the asset after right-clicking on it (i.e. when the asset is used as a part of a form)
logging of all asset downloads (although the corresponding report is not yet finished)
option to set certain asset-folders as publicly available
option to use custom permission checking (implemented via hooks instead of events)

I will happily upload the beta version of the plugin if you are interested..

Dear @tikiatua,
I would be interested in taking a look at the beta version of your plugin.

The beta-version of my new assetmanagement-plugin can now be found in its separate repository https://github.com/tikiatua/assetmanagement
Hopefully most of its features will make it into the base of Craft 3.


Add release issue template

This template will be used to create issues where we'll be tracking progress on new minor releases of Saleor.

It is only a detail but Is it okay that you rely on a specific person? What if you will be off or something? Shouldn't we have here assigned groups? Even if this will be single person group.

@korycins We don't want to ping entire teams, only responsible people. If they'll be off/unavailable, we'll agree on who's replacing them and change them in the task.


[Bug]: ChromaDB not accepting embeddings

What happened?
I’m running my script on Google Colab, and I’m using the spaCy en_core_web_md model to generate my embeddings. When I try to add a document, chromadb won’t accept my embeddings.
This is code to generate embeddings
import spacy

nlp = spacy.load('en_core_web_md')

def generate_embedding(text: str) -> list[float]:
    return list(nlp(text).vector)

Versions
Google Colab, Python 3.10
Relevant log output
ValueError: Expected each value in the embedding to be a int or float, got [[0.82378006, 3.8589017, -0.45689836, -1.8675152, 3.5027654, 0.4016192, 1.7374668, -2.1846316, -1.1905649, 1.6708817, 0.53687334, -0.82152003, -1.6960467, 2.4908836, -1.5392151, 0.9078079, 5.9107, -0.7026333, -4.4635267, -1.3101002, -0.8515566, 0.73306847, 0.59311664, 0.55546653, 2.2353685, -3.3010683, -4.42417, 0.14361997, -2.1709735, -3.7775602, -0.78124166, 1.0937467, 2.595075, 5.0541835, -0.91813326, 2.2274168, 1.0642415, 0.61269504, 4.002537, -2.6819668, 0.112892486, -1.8809333, 0.22406997, -0.7571001, -2.0550017, -1.661573, 2.1649766, -3.9406998, -1.3412867, -2.3534918, 0.7690355, -0.2629665, -1.4106067, -4.701283, -4.4788833, -0.2923886, -0.32699993, 0.8118665, -1.478886, -2.1252084, 2.904545, -2.7768834, -0.83865, -0.45984498, 1.8239666, 3.0822885, -0.17093325, -5.9714336, 1.5475334, 1.7482499, -2.7993166, -0.78826994, -0.16109319, -0.22659332, -1.26906, 1.7135173, -3.3624, 1.2127167, -5.9968033, 1.9218, -4.266588, -0.477985, -2.826318, 2.4760668, 0.89131004, 1.8787669, -0.29584348, -0.45137492, 1.0236334, -1.164478, 0.42728496, 0.6660207, -0.8782001, -6.0256524, -0.5646618, 0.99331504, 2.4125166, -2.06276, -1.13155, -0.80185825, 0.9470332, 2.4500785, 3.2144382, -1.6591501, -2.496785, 1.9131517, 4.169663, -6.1806355, 0.6371835, -4.73881, 3.2613163, 2.0606835, -3.6774566, 1.0919222, 1.1871467, -2.5825336, 0.46108338, -3.1491, 2.5310216, 1.3276484, -0.086303115, -0.7726183, 0.175414...

@dieperdev can you post the full code? is that error from chroma? I can't find that error string in chroma's codebase.

Sorry, I don’t understand what exactly you’re asking for. Do you want the error or the code to insert my documents?

As much as you can share as possible would be helpful!

This is where it says the error comes from
[/usr/local/lib/python3.10/dist-packages/chromadb/api/types.py](https://b42xks3dt6-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20231219-060136_RC00_592175853#) in validate_embeddings(embeddings)
    469             ]
    470         ):
--> 471             raise ValueError(
    472                 f"Expected each value in the embedding to be a int or float, got {embeddings}"
    473             )

And this is my code to insert documents

can you try embeddings = data['embedding']? it looks like it is already in an array?
[[0.82378006, 3.8589017...]
Or i think embeddings = [data['embedding'][0]] is the same thing

can you try embeddings = data['embedding']? it looks like it is already in an array?

This didn’t work

Or i think embeddings = [data['embedding'][0]] is the same thing

And this gets the 1st value of the embedding
ValueError: Expected each embedding in the embeddings to be a list

can you print the content? basically the input should be [[0,1,2,3]] - an array of array, where the inside array has all floats

data['embedding'][0] gives [0.82378006],
data['embedding'] gives the embedding with floating point numbers,
and [data['embedding']] gives [[the embedding]]

do any of those work? it sounds like embeddings=[data['embedding']] should work?

data['embedding'][0] gives [0.82378006]

It seems like the nlp library you're using is giving your embeddings in a weird format. If I'm understanding this correctly, it's giving a List[List[Float]] where each inner List[Float] contains only one item.
In any event, this is an issue with the format you're using to pass your data into Chroma. Since it's not a Chroma issue nor an issue with one of our built-in embedding functions there's very little we can do to help here, but of course we will try to help!

do any of those work? it sounds like embeddings=[data['embedding']] should work?

It’s what I’m using, but it doesn’t work

@beggers When I print the type of the embeddings, it gives me list. Additionally, the embedding list does not contain multiple lists inside of it. The list contains floating point numbers only.

Figured it out by printing the type of a number inside the list. Spacy was giving me numbers that had the type numpy.float32 when chromadb was expecting floating point numbers. After converting the numbers to floating point numbers, chromadb now let’s me insert the documents.

Ah numpy types was going to be my next guess. Glad you got it working!


What is the different between  react-native-redux-i18n package and redux-react-native-i18n package

If you look deeply in the source... redux-react-native-i18n use translatr.
Here I'm using react-native-i18n that works with I18n.js, coupled with redux.
It's two different libs for translate... choose wisely... the problem I got with translatr it's that I couldn't use variables.


VS code with WSL doesn't work if closed and opened again

Issue Type: Bug
If I start windows and enter a wsl distro and then type code . in the folder I want, visual studio code opens normally. If I clode visual studio code and do the same things, visual studio code pops many errors like couldn't fetch remote environment and failed to connect to remote extension. The distro is Ubuntu 18.04, downloaded from store. I tried powershell and cmd but same result.
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.19536
Fetching remote diagnostics for 'WSL: Ubuntu-18.04' failed: connect ECONNREFUSED ::1:40261

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (4 x 2712)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
13.95GB (6.64GB free)

Process Argv
--folder-uri=vscode-remote://wsl+Ubuntu-18.04/mnt/c/Users/tourt/Documents/working_now --remote=wsl+Ubuntu-18.04

Screen Reader
no

VM
0%

Fetching remote diagnostics for 'WSL: Ubuntu-18.04' failed: connect ECONNREFUSED ::1:40261
Extensions: none

I think that's a dup of https://github.com/microsoft/vscode-remote-release/issues/2060 caused by WSL issue in 19536.
I just pushed a new version of the Remote - WSL extension (0.41.7). Please try if this fixed your issue!


Storage layer

This PR contains a few things:

some convenience fixes/features (also present as separate PR #5, will rebase this branch when merged)
a sqlite database for tasks and results
a way of storing scrape tasks in the db and running them
a way of marking tasks as done and storing results of tasks

This is how I run scrapers:
scraper = Scraper('scraper_name', {'threads': 8})
scraper.log.info('Store Tasks')
scraper.store_tasks('scrape_detail', get_tasks()) # get_tasks is a generator for args, kwargs
scraper.log.info('Process tasks')
scraper.process_tasks() # Runs all stored tasks that are not done

Scrapers can store results like this:
# Do some scraping
self.write_result(data_dict, ['unique_field'])

What this still needs:

[ ] A way to chunk/stream tasks from the db to the threads without locking the db, currently requires all tasks to be in memory before processing them
[ ] More expressive marking of task state in database (failed)
[ ] Clearing tasks from the database
[ ] Documentation
[ ] Make pipelines work with this flow
[ ] Clean up, better API
[ ] Better namespacing on scraper object?

Nice to have:

[ ] Some kind of auto-cli for the scraper which accepts configuration and commands to run scrapers, clear tasks
[ ] A way to configure the database?
[ ] Reporting from the database to nice HTML?

@pudo, should this PR be in order to merge it?

@webmaven hi! This repo is unfortunately no longer actively maintained, I just don't have the time to do it and the value of scrapekit wasn't as great as I'd hoped for. If you want to become the new maintainer, please feel free to fork it and let me know if you're ready to do a release, then we can transfer the PyPi registration.
Hope you understand :)

I understand. As far as your offer to become the new maintainer, let me think about it. If I don't get back to you, feel free to ping me.