Uncaught TypeError: CustomEvent is not a constructor

I'm currently using the latest version (0.9.80) of the ConversationalForm package for React, and have been testing in chrome (v65).
I am running into an issue where I keep getting the below error in my Javascript console, resulting in the ConversationalForm not loading.

My code is just a test form at the moment and looks like this:
import React from 'react';
import ConversationalForm from 'conversational-form';

export default class SurveyForm extends React.Component {
    constructor(props) {
        super(props);
        this.cf = null; // <-- Conversational Form ref
    }
    componentDidMount() {
      this.cf = ConversationalForm.startTheConversation({
        formEl: this.refs.form,
        context: document.getElementById("cf-context"),
        flowStepCallback: function(dto, success, error){
            success();
        },
        submitCallback: function(){
            // this callback could also be added to the React.createElement it self...
            alert("You made it!")
            console.log("Form submitted...");
        }
      });
    }
    render() {
      return (

          <form ref='form' id='survey'>
            <fieldset>
              <input cf-questions='Your name?' placeholder='Name (required)' />
              <input cf-questions='Your email?' ref='email' placeholder='Email (required)' />
              <input cf-questions='Description?' ref='description' placeholder='Description (required)' />
            </fieldset>
          </form>

      )
    }
};

@mjhough I'm about to look into a possibly related React issue and will try to take a stab at the above issue as well 🙏

@mjhough I just tried the above code and did not get any errors. It's hard for me to pin point what your issue is. If you can provide a git repo I'll be happy to take a look.

@jenssogaard Unfortunately I can't provide a repo because it's private. Here is the package.json if that helps. I might try it in a test app as well to see how that goes.
{   "scripts": {     "storybook": "start-storybook -s ./public -p 6006",     "build-storybook": "build-storybook"   },   "dependencies": {     "@rails/webpacker": "^3.2.2",     "babel-preset-react": "^6.24.1",     "conversational-form": "^0.9.80",     "howler": "^2.0.9",     "moment": "^2.20.1",     "prop-types": "^15.6.0",     "react": "^16.2.0",     "react-chat-form": "^0.0.13",     "react-conversation-form": "^2.0.1",     "react-dom": "^16.2.0"   },   "devDependencies": {     "@storybook/addon-actions": "^3.3.12",     "@storybook/addon-links": "^3.3.12",     "@storybook/addons": "^3.3.12",     "@storybook/react": "^3.3.12",     "babel-core": "^6.26.0",     "webpack-dev-server": "^2.11.2"   } }

@mjhough Ok, then my best advice would be to try and make a new branch of your project and strip out dependencies and see if something is messing with Conversational Form.


Avoid potential integer overrun

It is possible for the values stored to file_value_size to overrun the storage capacity of a 32-bit integer.  The value does need to store negative values potentially, so can be size_t or hsize_t, so use the hssize_t which is a signed 64-bit value.  Could also use ssize_t, but that is not used in this routine...

Thanks!

Thanks @gsjaardema!


Adds META-INF/services file to native image configuration for Helidon MicroProfile CDI to resolve #2315

Signed-off-by: Laird Nelson<EMAIL_ADDRESS>

@tomas-langer @barchetta One question I have (since I know zero about GraalVM native image configuration) is if I also have to do something like this or if that's now obsolete.

Both META-INF/services and service implementations are added automatically. Let me investigate.

Fix in #2317


add weixin share button

依赖新版 social_share_button 的微信功能

Current coverage is 94.94% (diff: 100%)

Merging #751 into master will decrease coverage by 1.72%

@@             master       #751   diff @@
==========================================
  Files           136        136
  Lines          5222       5222
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           5048       4958    -90
- Misses          174        264    +90
  Partials          0          0

Powered by Codecov. Last update e696b2c...405d217


fixed issue with annotations that work with only public methods

@estuold seems like it's a harmless change that will make "our" annotation to match testng one's behavior.

First: Before invoke private methods you should do setAccessible(true).
Second: When we use just getDeclaredMethods() we ignored methods with annotation from super classes.

Closing this pull as it's not going to be merged as is.


[vcpkg] Delay failures in vcpkg install until missing manifest requested

This PR enables users of --overlay-ports to only pass the overlay when required by that install action. For example, given package foo that was installed via an overlay and depends on nothing, vcpkg install rapidjson should not inherently require the overlay to be passed.

Thanks for your contribution!


Handle antd form arrays

Modified library to allow antd form array items to also be controlled with zod

Thanks for opening the PR. I'll look at it later today.

Hi, I have taken your suggestions and fixed the example, I hope it is all good now.
Thank you for considering the functionality.

I hope now is everything ok.
Let me know if I can improve something else.
Thanks!


Mention .NET 4.5.x support in your nuget package description

Feature Request:
Please mention .NET 4.5.x support in your nuget package description: I forked/downloaded the sources just to see there is already support for the still common 4.5.x and 4.6 .NET desktop apps (Win 7, 8)

Done


Is it possible to get (visible) Marker x and y for annotation?

Is it possible to get visible marker (window) x and y locations to draw annotations?  From what im looking at this is collected with the mouse x and y for tooltip.  It would be really neat to have labels or tool tips active all the time.  I would like to look into this and build a prototype, which direction do I go?

Hi @jjwallace, currently this is not supported and might not be easy to accomplish since the event data is captured on various events that three.interaction library supports.  Theoretically, if we hold all the three marker objects in memory, we can keep track of the three objects and expose them with an onAnimate callback in the component prop that captures this everytime requestAnimationFrame runs.
I'm a little hesitant going with this approach.  There's another way to accomplish this if you would like.  If you would like to render annotations to the globe, you can implement a custom markerOptions.renderer that renders a Three object to the marker.  Doing this is slightly beneficial for now since there would be no need to introduce code complexity to the project, and you can rely on react-globe to position and render the custom marker (with annotation) on the globe.
Let me know if this works, and sorry for the delayed response!

Wow that might be pretty neat.  I will take a look at that approach.  Thank you for the reply.


Process changesets with many changes

Viewing very large changesets like "changeset/74513479/3673757" causes an error on the server.
This changeset is this large because of the improved mapping where the "network:type=node_network" tag is added to many nodes and routes in one go.
While processing the changeset, the server tries to verify the presence in the database of 368 nodes and 477 routes that are found to be impacted by the changeset.  All nodes are requested from the database in one http request, and also all routes are requested from the database is one go.  These requests are way too large for couchdb, resulting in following error message:

400 Bad Request - HttpEntity.Strict(none/none,ByteString())

The code has been changed so that the large requests, that used to fetch all nodes/routes in one go, are split up per batches of 50 nodes/routes. This way the large changesets can be processed without problem.


gql: Support maxVectorDistance parameter in hybrid search

Closes #242
What is changed?

GraphQL query builder allows specifying maxVectorDistance parameter for hybrid search
Rewrote hybridbuilder_test.go tests in the table-driven format

How is this tested?

New test case in hybridbuilder_test.go
Local e2e test to check that the query is valid and returns no errors

Misc
GraphQL snippet in the documentation is not valid, fixed in this PR: https://github.com/weaviate/weaviate-io/pull/2672

Nice, thank you!
Could you agree to our CLA? I'll merge afterwards :)
Here is the text that the bot normally posts:
To avoid any confusion in the future about your contribution to Weaviate, we work with a [Contributor License Agreement](https://weaviate.io/service/contributor-license-agreement). If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the [Weaviate Slack channel?](https://weaviate.io/slack)

I agree with the CLA


Open Certain Items via Recent Files will Open Document Behind Files

Explain the bug
Open certain items (such as Microsoft PowerPoint, Google Chrome, etc) in recent files will open the selected document behind the Files app.
To reproduce

Click on one items
See the document opened behind Files app

Expected behavior
Documents should be previewed in front of Files App.
Screenshots
https://user-images.githubusercontent.com/69080584/126746188-1cf73e08-2075-4dd8-8105-718ebe58e88a.mp4
System Information

OS Version: Windows 10 20H2 19043.1110
App version: v<IP_ADDRESS>

Additional comment
Does this problem happen again after restarting the app? Yes

Thanks for this report, I'm merging this with #5493

Hi @gave92 is there any mistakes with the link? It looks like the link redirected me back to this issue page.

Fixes thanks.


Is it possible to attach to child process

@indexzero is it possible to attach to the output or some signals from found one of the children processes?

@whitecolor Can you explain this better?

have no interest in this anymore think maybe closed


Upgrade CI node version

Currently, our CI workflows uses Node 16, we need to bump this to he current LTS version, 18.

It's been a while... LTS is now version 20.


usage

Hi, I'm a newbie.
Can you please give an example on how to use it?
I installed it ok, but don't understand how/where to put file name to translate,
and the one to translate to.
Thanx

I mean, this is how I do,
python main.py -i en -o fr path /home/chi/SRT-DeepL-Translator-master/q.srt
and then I see these errorsr:
Traceback (most recent call last):
File "/home/chi/SRT-DeepL-Translator-master/main.py", line 87, in
translator = deepl.translator()
File "/home/chi/SRT-DeepL-Translator-master/deepl.py", line 19, in init
self.browser = webdriver.Firefox(executable_path=geckodriver_path)
File "/usr/lib/python3.9/site-packages/selenium/webdriver/firefox/webdriver.py", line 170, in init
RemoteWebDriver.init(
File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities

At this moment it is on early development and was a little on pause. Im glad people start using it.
It should be like this:
python main.py -i en -o fr /home/chi/SRT-DeepL-Translator-master
Without path word and check that the path is to the folder where subtitles are. It will take every srt on the folder and save the traslation in the same folder but with a different name:
q.str => q_fr.srt
Hope it is clear enough, glad to help. Probably it will fail, im think on rewriting it. Maybe today, idk, keep you updated.
Probably doing a graphical user interface could be more user friendly. But that is another issue. Gonna think about it.

At this moment it is on early development and was a little on pause. Im glad people start using it.
It should be like this:
python main.py -i en -o fr /home/chi/SRT-DeepL-Translator-master
Without path word and check that the path is to the folder where subtitles are. It will take every srt on the folder and save the traslation in the same folder but with a different name:
q.str => q_fr.srt
Hope it is clear enough, glad to help. Probably it will fail, im think on rewriting it. Maybe today, idk, keep you updated.
Probably doing a graphical user interface could be more user friendly. But that is another issue. Gonna think about it.

Thanx, I did that but still throws the same errors.
Could also be an installation problem?
I have installed: python-urllib3 1.26.4-1
python-selenium 3.141.0-3
geckodriver 0.26.0-1

I dont think so. Maybe a problem with geckodriver version. But i'll recommend you to wait for the next release. It wont be long.
In the mean time i pushed a new version refactored. 0.8.2. Havent review it yet so bugs expected, but it should be fixed it think. This new version install the last version of geckodriver so no need to worry about it.
Also, It use easygui for better user experience, you could check it out using:  python main.py -g
This is still a work in progress but  check in one week or two for version 1.0 and soon will be on pypi for installation via pip install srt_deepl.

@andy144 Check out the readme again. Now you can use this from your own scripts:
install it like:
pip install srt-deepl

use like from python:
from srt-test import translate
translate(...)

Or by command line: (still need installation by pip)
Easy way
python -m srt_deepl -g

See the help to advance use
python -m srt_deepl -h

I think it is clear enough, gonna close this issue. Feel free to open it again if something isn't clear.
Regrads, EAR

Ok, still not working.
This is what I did.
Installation:
[chi@PC SRT-DeepL-Translator-master]$ pip install srt-deepl
Defaulting to user installation because normal site-packages is not writeable
Collecting srt-deepl
Downloading srt_deepl-0.8.5-py3-none-any.whl (7.3 kB)
Requirement already satisfied: geckodriver-autoinstaller==0.1.0 in /home/chi/.local/lib/python3.9/site-packages (from srt-deepl) (0.1.0)
Requirement already satisfied: easygui==0.98.2 in /home/chi/.local/lib/python3.9/site-packages (from srt-deepl) (0.98.2)
Requirement already satisfied: urllib3==1.26.5 in /home/chi/.local/lib/python3.9/site-packages (from srt-deepl) (1.26.5)
Requirement already satisfied: selenium==3.141.0 in /usr/lib/python3.9/site-packages (from srt-deepl) (3.141.0)
Requirement already satisfied: pyperclip==1.8.2 in /home/chi/.local/lib/python3.9/site-packages (from srt-deepl) (1.8.2)
Requirement already satisfied: srt==3.4.1 in /home/chi/.local/lib/python3.9/site-packages (from srt-deepl) (3.4.1)
Requirement already satisfied: urllib3==1.26.5 in /home/chi/.local/lib/python3.9/site-packages (from srt-deepl) (1.26.5)
Installing collected packages: srt-deepl
Successfully installed srt-deepl-0.8.5
so I guess all ok by now.
But then I started it with:    python -m srt_deepl -g
Graphical works, I chose srt folder, checked languages, and then:
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/chi/SRT-DeepL-Translator-master/srt_deepl/main.py", line 104, in
os.environ["MOZ_HEADLESS"] = "1"
NameError: name 'os' is not defined
any idea?   It is fixed by now. (still need to review, ty for finding this, you rock!)
Now, you need to update to the new version.  The fastest way is to uninstalling and installing again.
pip uninstall srt-deepl
pip install srt-deepl

Yeah it takes a lot of time to translate. Maybe cause your network connection. It divides the srt into portions to translate each one of them in the deepl webpage... only 5000 character at time, so it will take a while.
The character is [...] including [ and ] cause it is needed to check if it is already translated.
This issue must be of your internet connection. It timeout after 60 sec if no traslation is done. I maked it this way to not wait a long time, but maybe could be good to make it bigger.
User python -m srt_deepl -g -s and it will show the browser pop up and check what is doing. Try with a short srt and tell me if the issue persist.

well, I did as you said with a 7 rows srt and it was exactly the same.
browser is not opening. I opened it myself, but nothing happened.
I don't usually use firefox, so I made it default. but still didn't work.
internet is working fine, up to 25-30 MB/s download.

Ok... that's weird. Im gonna ask you a favor... update again. Check that it is version 0.8.9 and use it again and tell me if it works.

installed 0.8.9. same :)
what is the server that has to be accessed?
Maybe it blocks some regions?
deepl site works fine.

wait. it works!
my fault. apologies.
I was starting the terminal from the parent folder of srt_deepl,
instead of srt_deepl.
sorry, sorry, sorry! :)

Oh okay, was writing a response but well. Im really glad about it. (You dont need the source code for run it, just with installing with pip is enough)
Enjoy and dont hesitate on ask :DD

thanks a lot!
I'll test it and come back for other improvements,
if necessary.

One more little problem.
Right now I have to translate many long subtitles (about 1600 lines each).
I noticed that deepl doesn't accept that and suspends your access for a while.
I then split them in 2 and it worked like a charm, for about 5-6 srts, after which
they suspended my access again.
So, question: can you change browser to Tor? :)
I translated some docx files like that, you know,
having other ip on every Tor instance.
Or maybe tell me how to do it, if it's not very complicated.

I'm on archlinux, and it's called 'tor_browser'

Oh... yeah that didnt had happened to me (maybe cause i dont use it that often...) I understand that... and have some ideas about it by now. But im gonna ask you to open a new issue. That way if someone else have the same issue can find it. I'll anwser there. Ty


Adding Margin from Top to Bottom

Current Behavior

Desired Behavior
Adding Margin from top to bottom to improve UI

Screenshots / Mockups

link :-https://meshery.io/service-mesh-interface

Contributor Guides and Resources

🎨 Wireframes and designs for Meshery Site in Figma
🖥 Contributing to Meshery Website
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Hey @Rishikavishnoi I would like to work on this.

@AMRUTH-SANTOSH I'm working

Hi @Rishikavishnoi , while you are working on this could you please also try and fix the icon that is being cutoff in the center row, thanks

@Avi-88 I think the icon in the center row is perfect as it shows partially compatible so it needs to be like this but maybe I can be wrong

Oh, I never thought that could be the case. Well if the image itself is like that then nevermind , sorry for the unnecessary request.

Hi @Rishikavishnoi , could you please upodate your PR with the requested changes , thanks

I'll work on this issue @Avi-88


cleanup broken

I'm using hatch-cython with cibuildwheel, and wheel include extra so/pyd files.
Looks like there are some bug in cleanup code.
This is not a big problem, because python will only import file with currect version tag...

Hey @trim21, thanks for reporting this! Agree, I think the cleanup process could be improved on. At the moment, I think you have to run hatch clean against the project to clean up {.so,.pxd} artifacts. In an ideal world, we would clean up your artifacts prior to packaging only leaving the specified targets from c & cython compilations in the wheel.
Quick q so I can look at the version this impacts, which distribution version are you using?

I didn't use a version number so I guess I'm using latest version of hatch-cython


[Feature Request] Full support for image embeds

Twitter is seemingly now blocking embeds for some accounts entirely. The only way to get a working embed is to use TwitFix, but problematically TwitFix only displays the first image if there's multiple. Support for the 2, 3 and 4 image grids would prove very useful at this point.

I agree, it would be very useful, but as far as I can tell discord is using some backend magic that I don't have access to to allow multi-image embeds on non bot messages
There are a few approaches that I have been thinking about on how to approach this, but it's a bit of a mess - The main one that comes to mind is downloading all of the images and stitching them together using PIL on my server, but this would be very demanding on resources, though I won't know for sure until I try to implement it
I will keep this issue updated with my progress

Huh, you're saying that the multiple image embeds are some special discord nonsense, not just metadata in the page? Interesting. And yeah, image stitching would undoubtedly increase server load by a fair bit. Perhaps I'll do some digging myself later and see what I can find out.

Sadly it looks like despite my best efforts I'm going to have to go through with trying the hacky stitching method. Tried to get in touch with discord but they are as unhelpful as always

I've been digging a bit, and I'm pretty confident that the embed blocking is actually Discord's fault. So yeah, kinda makes sense that you wouldn't get a reply; this new blocking is probably intentional. As far as I can tell Twitter doesn't even have embed metadata in the page, so the fact that they work was a Discord feature to begin with.

I've also thought about the image stitching thing a bit, and I'm not so sure about it. It's probably not gonna be good for server performance (though we'll see I guess), plus it ruins the ability to look at the full size images without opening Twitter (which is kinda the problem in the first place, as some people don't have an account and rely solely on embeds).
I suppose you can still do the stitching if it doesn't wreck the server, but I thought of a solution that can be an alternative or in addition to that: put the links to the other images in the embed's description. Not the most ideal, but it should be easy enough to implement and at least make it possible to view the original images without logging into Twitter.

I was also thinking of adding a */1-4 flag at the end of the url to make it so you can choose which image to embed, which might also be a good compromise

That's another good idea! Would still be convenient to have the links to the images though, so manual editing isn't required.

I was also thinking of adding a */1-4 flag at the end of the url to make it so you can choose which image to embed, which might also be a good compromise

Finished implementing this: https://twitter.com/RobinUniverse_/status/1500731504271499264

If it's not too much work, and while it's unable to embed 4 preview images at once, would it also work to put like "*/2-4" somewhere, just so to tell that there's more than 1 images from the tweet?
Thank you for all this!

Yeah that's not a great idea, or maybe show like "2/4" to indicate which image it is and how many images there are.
And yes, thanks for your efforts!

I'm not sure if it's a new behavior since that change, but it seems like now the embeds that weren't working through normal Twitter links now aren't even working through TwitFix...

Twitter seems to have revoked my API access.

Well, this is unfortunate.

Could you make it handle /photo/N as well? That's the syntax Twitter uses already (you'll see it if you expand an image on twitter web), so it'd make it easier for people to copy links to particular images and just add the fx prefix.

This change was done completely intentionally by Discord. They can tell what tweets to block embeds from by checking if the tweet is marked as possibly_sensitive using Twitter's API, regardless or not the tweet is actually nsfw.
By the way, how did you get back your access to the API?

This change was done completely intentionally by Discord. They can tell what tweets to block embeds from by checking if the tweet is marked as possibly_sensitive using Twitter's API, regardless or not the tweet is actually nsfw.

Yeah, that's what I was getting at.


[$500] Chat - Text is always pasted as plain text when editing messages

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

Version Number: 1.4.39-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:

Log in to New Expensify
Navigate to any chat
Send message with markdown and copy it
Edit another message and paste copied message with markdown

Expected Result:
Message with markdown should be correctly pasted and include markdown of original message.
Actual Result:
Messages are pasted as plain text in edit compose box, all markdown is omitted.
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/43996225/7d061a66-e4df-46f0-94c3-47c20f0dc905

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0151f8c718e0328abd
Upwork Job ID:<PHONE_NUMBER>161890816
Last Price Increase: 2024-02-09

We think this bug might be related to #vip-vsb

Seems related to Markdown preview. Has this been reverted? I dont get markdown preview anymore in staging.new

Can you confirm if you are looking for proposals? Or handled in Live Markdown Issues?
Cannot reproduce without live markdown build

We've reverted the offending PR https://github.com/Expensify/App/pull/35837, so this is no longer a blocker

This issue has the same RCA as #36269

Cool, let's consolidate there


Add typings for modifiers

Closes #1278

I am honestly not sure if this is ideal given the discussion we had in #1278, but I couldn't get the existing typings to work. Would love some help there if it's possible to make them work.

Coverage remained the same at 97.065% when pulling 1ba66abe5b20db0b2a4bd391262fc7d4c3446434 on willsoto:fix/1278 into 2273fda886148ebdc98381434e0a41c40136a486 on Vincit:master.

Coverage remained the same at 97.065% when pulling 1ba66abe5b20db0b2a4bd391262fc7d4c3446434 on willsoto:fix/1278 into 2273fda886148ebdc98381434e0a41c40136a486 on Vincit:master.

Thais!


Timetable v1.4

Pull Request Test Coverage Report for Build 623

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.036%

Totals

Change from base Build 624:
0.0%

Covered Lines:
2597

Relevant Lines:
3461

💛  - Coveralls


Changing a TileSet while project is running breaks Area2D collision

Godot version:
3.2.3
OS/device including version:
Windows 7
Issue description:
Rapidly calling TileSet.tile_set_region seems like a convenient way to handle animated tiles, but doing so causes Area2D collisions with TileMaps using that TileSet to become strange and inconsistent. This isn't an issue specific to setting the tile's region or collision: even more innocuous changes such as cycling the color with tile_set_modulate will cause it. After stopping the repeated calls, the problem immediately goes away.
Are TileSets not intended to be changed so quickly? I couldn't find any mention of this. I hope not, because it's a simple and convenient way to implement a bunch of different tile effects. AnimatedTextures are very rigid in contrast (and caused irreproducible bugs for someone I'm working with).
Steps to reproduce:
Repeatedly change a TileMap's TileSet while an Area2D is colliding with it.
Minimal reproduction project:
ExitedEntered.zip

Rapidly calling TileSet.tile_set_region seems like a convenient way to handle animated tiles,

This is really bad performance-wise. Look into using a shader or AnimatedTexture instead.

This is a bad way to do it performance-wise. Look into using a shader instead.

Done. Thanks for the prompt response.
I'm curious as to why that is, though. Does changing a TileSet force some kind of cache to be rebuilt? I didn't realize moving the region would be more expensive than sending a UV offset (or indexed table of them) to the tiles' shader materials.


https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Debugging_CSS

Request type

[x] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[ ] Correction or update

Details

Articles on the CSS - Styling the Web article listing link incorrectly. There are two different  lists of articles, seen below, and they seem to jump back and forth between each other with no clear way to distinguish which list of articles is up to date.

For example, the article on combinators, found here, shows a list of links to CSS articles that indicate the next article should be one on CSS Values and Units, but at the bottom of its page it says the next article is on the CSS Box Model and links to that article, found  here. The Box Model article contains a different list of CSS articles with topics in a completely different order. The screenshots below show each page, with their different topic orders.

The sidebar on https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors/Combinators was wrong because the page had not been regenerated properly. I've fixed it by doing a Shift + Refresh on the page (Shift + Ctrl (or Cmd on Mac) + R). If you find others with the wrong sidebar, this should fix.
Also, in the sidebar I don't list the selectors sub articles, whereas in the Previous/Next buttons they are included. I should probably fix that inconsistency at some point.


[Connection error] An exception triggered when the device attempts to connect to the disconnected network

Pre-Condition:-

OS Windows
IoTS should be configured to access via IP [1]
An Android device should be enrolled successfully
Device should be disconnected from WIFI

Steps:-

Stop the IoTS
Start the IoTS
Enable WIFI connection in Android Device
Observe server logs

Expected Results:-

There should be no connection related exceptions

Actual Results:-

Connection refused exceptions are being printed in server logs (attached)

[1] https://docs.wso2.com/display/IoTS310/Configuring+WSO2+IoT+Server+with+the+IP
connectionrefused.txt

Labels: High, 3.1.0-alpha

You get this error if the analytics module is not started.I was able to reproduce the issue by running only iot-server.sh.But Its not related that disconnection of the device.

Verified in 3.1.0-RC not reproducible.


A contribution guideline is needed

Title is quite descriptive but I'd like to add one more thing. Which language will be the base for the solutions? Is there such limit?

Thanks for the suggestions. I will be adding contribution guidelines very shortly.
There is no such preferred language per se, but being a Java-developer I would prefer that. For all other contributions we would need to rely on the community for code reviews.
Again, the idea is to bring out concepts and pointers towards implementation, than providing the implementation directly.

Closing this issue - as I just added the contribution guidelines.


How to compile and install frm URL?

I want to let pip-compile reserve my URL after each pip-compile
Environment Versions

OSX 10.13.1
3.6.3
pip 9.0.1 from /Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages (python 3.6)
pip-compile, version 1.10.1

I want to install pip install https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip
But to follow the pip-tools I want to keep it in the requirements.in since my project is on going and many libraries will be added to the file
Steps to replicate

Put -e git+https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip to the requirements.in
pip-compile requirements.in

Expected result
requirements.txt has https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip
Actual result
Traceback (most recent call last):
  File "/Users/sarit/.pyenv/versions/poink/bin/pip-compile", line 11, in <module>
    sys.exit(cli())
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/piptools/scripts/compile.py", line 176, in cli
    src_file, finder=repository.finder, session=repository.session, options=pip_options))
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/req/req_file.py", line 93, in parse_requirements
    for req in req_iter:
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/req/req_file.py", line 168, in process_line
    wheel_cache=wheel_cache
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/req/req_install.py", line 144, in from_editable
    editable_req, default_vcs)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/req/req_install.py", line 1197, in parse_editable
    "Could not detect requirement name, please specify one with #egg="
pip.exceptions.InstallationError: Could not detect requirement name, please specify one with #egg=

Is it possible to achieve my goal?
If so. Am I miss something here?

You simply missed a part of the exception message:

Could not detect requirement name, please specify one with #egg=

So, at the end of your url, add #egg=django.

I have put the live my requirements.in
-e git+https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip#egg=django
Error is
remote: Not Found
fatal: repository 'https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip/' not found
Traceback (most recent call last):
  File "/Users/sarit/.pyenv/versions/poink/bin/pip-compile", line 11, in <module>
    sys.exit(cli())
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/piptools/scripts/compile.py", line 184, in cli
    results = resolver.resolve(max_rounds=max_rounds)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/piptools/resolver.py", line 101, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/piptools/resolver.py", line 198, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/piptools/resolver.py", line 272, in _iter_dependencies
    for dependency in self.repository.get_dependencies(ireq):
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/piptools/repositories/pypi.py", line 170, in get_dependencies
    self._dependencies_cache[ireq] = reqset._prepare_file(self.finder, ireq)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/req/req_set.py", line 516, in _prepare_file
    req_to_install.update_editable(not self.is_download)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/req/req_install.py", line 586, in update_editable
    vcs_backend.obtain(self.source_dir)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/vcs/git.py", line 142, in obtain
    self.run_command(['clone', '-q', url, dest])
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/vcs/__init__.py", line 325, in run_command
    spinner)
  File "/Users/sarit/.pyenv/versions/3.6.3/envs/poink/lib/python3.6/site-packages/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "git clone -q https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip /var/folders/h5/lj3c5_050j3_yjd77zqxcn7r0000gp/T/tmp1ay6spspsource/django" failed with error code 128 in None

pip-compile add slash at the end of the url. Any ideas?

Well, first, my bad, I was confused by the last part of the url. The #egg= part should be the name of the package, so in this case: #egg=django-geoposition-django.
And by taking a closer look, I realized you're not using a VCS url, you're directly using a zip/tar archive which isn't yet supported.
So you workaround at the moment would be to point so a branch/commit of your repo instead.
Poke me again if you need any clarifications :).

It's mean I have to manually put line https://github.com/philippbosch/django-geoposition/archive/django-1.11.zip to the requirements.txt everytime myself isn't it?

I've looked at the linked issue, and I see why you want to do this. In your case, I might have a better alternative for your.
The best alternative I can give you is that you could download the archive and use the --find-links option, if you're going to use that precise archive for a while.
If I've looked at this properly, you would put django-geoposition>=3.0.1 in you requirements.in, and the do pip-compile --find-links /path/to/dir-containing-the-archive.
That's the best workaround I can think of right now, until pip-tools supports tar/zip archive urls directly.
I hope this helps.

Thank you very much.


High Memory Utilization for SQL Express

Hi,
Is the SQL Express that installed able to set the limit for memory?
I've 6GB of RAM but our utilization of memory is high around 85%.

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

ID: 06faa428-c7b6-ca5c-271e-3f98d9536d4f
Version Independent ID: 63adb39a-c4fa-92bb-480d-59bee8e2dc24
Content: Azure AD Connect: Prerequisites and hardware
Content Source: articles/active-directory/hybrid/how-to-connect-install-prerequisites.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@Norafify89
Thanks for your feedback! We will investigate and update as appropriate.

@Norafify89
Thank you for your time and patience!
The SQL Server used by Azure AD Connect, specifically SQL Server Express has a 10-GB size limit that enables you to manage approximately 100,000 objects. The size of your source Active Directory topology will influence your SQL database performance.
For more info:
SQL database factors
Hardware requirements for Azure AD Connect

Since this issue isn't a document enhancement or bug, I'd recommend leveraging our Q&A forums so our Community experts can answer any other questions you may have.
Thank you for your time and patience throughout this issue.


Calling a function that returns never, not always triggers an unreachable code error

Bug Report
🔎 Search Terms

return never
unreachable code

🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about return never & unreachable code

⏯ Playground Link
Playground link with relevant code
💻 Code
declare const blue : (...args: any) => never
declare const hof: (fn :(a: (...args: any) => never) => void ) => void

const withBlue = ()=> {
    blue("test")
    return "OK" // Unreachable code detected
}

const withPink = (pink : (...args: any) => never)=> {
    pink("test")
    return "OK" // Unreachable code detected
}

const withGreen = (unk: unknown) => {
    const green = unk as (...args: any) => never
    green("test")
    return "OK"// Unreachable code NOT detected
}

hof((self)=>{
    self("nahh")
    return "Ok" // Unreachable code NOT detected
})

🙁 Actual behavior
When the function that returns never is inferred, it does not detect unreachable code
When the function that returns has been type-asserted, it does not detect unreachable code
🙂 Expected behavior
Calling a function that returns never should render all code bellow unreachable

It's a known design limitation, see #32695.

I understand, thanks, should I close this ticket?

Feel free to. Either you do it, or typescript-bot will do it in a few days, as this issue has the duplicate label.


allow peer id for mobile phase1 & xauth_psk_server

Hi,
I've migrated my old pfsense ipsec road warrior config to opnsense and was missing the peer id configuration, which is needed for some ios devices as a group name.
There was already a discussion about it in the forum https://forum.opnsense.org/index.php?topic=6194.0 and in #2070.
I was thinking about reverting 0dd120ff1aac446f0df9a3f82051b95b64eecf27, but dont want to cause issues in some other configurations and instead i've only added an exception for the authentication method "xauth_psk_server", since its definitly needed there and the configuration wont work without it.
This fix is especially needed, since the official documentation also mentions a peer id here:
https://docs.opnsense.org/manual/how-tos/ipsec-road.html#phase-1-proposal-authentication

I remember this one, I was pretty sure the value of this field wasn't flushed to the ipsec.conf in any way. Can you create a diff between the config with and without the setting (/usr/local/etc/ipsec.conf)? It could also be an issue in our documentation.

You're right, the value doesnt get written to the config file.
I thought the value is needed, because the ipsec connection wont be established without a group name on the iOS Client.
I thought that the peer id is needed, because its the group name on the clientside, but its not.
After some more testing, the iOS client DOES need a group name, but it can be whatever... so this PR can be closed then.

@arkste if you have the spirit for it, a PR on the docs would be appreciated :)


Last Week in Pony - September 8, 2019

Version 0.1.0 of regex has been released.
See the release notes for more details.

Version 0.2.0 of regex has been released.
See the release notes for more details.

Version 0.3.0 of regex has been released.
See the release notes for more details.

Version 1.0.0 of regex has been released.
See the release notes for more details.

Version 1.0.0 of glob has been released.
See the release notes for more details.

Version 0.2.3 of msgpack has been released.
See the release notes for more details.

The library-project-starter repo has been deprecated and archived. It has been replaced with the library-scaffolding-generator.
Expect an official, non-snapshot, release of the scaffolding generator by the end of September.

Version 1.0.0 of net_ssl has been released.
See the release notes for more details.

Version 1.0.0 of crypto has been released.
See the release notes for more details.

Audio from the September 03, 2019 Pony development sync call is available.

Version 0.2.4 of http has been released.
See the release notes for more details.


Qa

Coverage decreased (-0.06%) to 81.54% when pulling 1e514bbf6da881bef04fbc3b1f0323792aaad4e5 on qa into 7b7d65f6409ea65b3535d8a85555c5a4650104d9 on master.


Ruby: Fix bug causing TOC to be rendered incorrectly.

Codecov Report

Merging #1452 into master will not change coverage.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #1452   +/-   ##
=========================================
  Coverage     87.17%   87.17%
  Complexity     4039     4039
=========================================
  Files           387      387
  Lines         16231    16231
  Branches       1770     1770
=========================================
  Hits          14150    14150
  Misses         1619     1619
  Partials        462      462

Impacted Files
Coverage Δ
Complexity Δ

...ansformer/ruby/RubyPackageMetadataTransformer.java
98.55% <100%> (ø)
25 <0> (ø)
:arrow_down:

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 a057f8d...ab63dda. Read the comment docs.


Eng 2735 Add order by and limit parameters for V2 workflow results

Describe your changes and why you are making these changes
Support order_by and limit in query params. order_by assumes it is a column in workflow result dag table.
Related issue number (if any)
Eng 2735
Checklist before requesting a review

[x] I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
[x] I have performed a self-review of my code.
[N/A] I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
[x] If this is a new feature, I have added unit tests and integration tests.
[x] I have run the integration tests locally and they are passing.
[x] I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
[N/A] All features on the UI continue to work correctly.
[x] Added one of the following CI labels:

run_integration_test: Runs integration tests
skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

I'm not sure if we have a database test for the query you modified, just make sure make test-database pass locally


Need to Document: brackets opens an additional copy of chrome for live preview

Original Subject: brackets opens an additional copy of chrome for live preview
if I have chrome open already when I launch brackets, it opens a second chrome application rather than using my already open chrome. not just a new window, but another copy of chrome entirely. I only have one copy of chrome on my hard drive, so this is a mystery to me.
it sometimes decides to open the new chrome in another "space", which is really really irritating. defeats the purpose of live preview.
have I set something up wrong, or is this a bug that can be addressed? osx 10.8.5; chrome 38.0.2125.111; brackets Release 0.44 experimental build 0.44.0-14876 (release 6d2d33d80)

Could this be documented somewhere? it was driving me mad, I was convinced this was a problem with my machine. Where is this second instance pulling prefs from, and saving history, etc? I'm surprised it can coexist at the same time so peacefully without any chaos. I had no idea this functionality was intentional! Thanks for your help, @redmunds!

Could this be documented somewhere?

I will re-open this issue for updating the documentation in How to Use Brackets to include info about using a different profile.

Where is this second instance pulling prefs from, and saving history, etc?

This section in Troubleshooting Guide describes where Brackets saves the profile info.
Note: since this issue was opened, a new Experimental Live Preview has been added to Brackets that uses your default browser with no special profile that you may prefer.

Awesome, thanks so much @redmunds! Very, very helpful!

Updated the Documentation How to Use Brackets with the info- Brackets opens an additional copy of chrome for live preview.
Closing the issue.

Thank you, @rroshan1! :+1:


make Vimeo embeds responsive

Currently for product pages, the Vimeo embed at the top is not responsive, so things horizontally scroll on mobile.  See the root teletype doc page for example.

thanks for spotting this. any ideas for a fix?

My Ruby installs are a mess so haven't been able to test locally but try selecting responsive sizing when generating the Vimeo embed code:

fixed 7d534c6..33681d0


Updated colors to support the 8 'bright' variants

The 'bright' variants of the 8 standard ANSI colors are required to get a good-looking color on many terminals. This update adds codes for those colors. It also adds a style 'none', corresponding to the 'no style' ANSI code. The test program was updated to accomodate this larger set of colors.

This PR closed in favor of forthcoming major update.


Op registration: logic

Part of #6692.

Jenkins, test this please

Jenkins CI test (for commit 8ed6713f5515a7cd6535148daf2d84e8b5acc773, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

LGTM


README.MD: Updated Formatting & Grammar

Updated the README.md to have better Grammar and Formatting making it easier to read and work with.
Changes:

Added a Table of Contents.
Fixed grammar.
Added anchors to sections.
Named images/hyperlinks relative to their game.

If you want to view the changed README, you can find it here.

Hello, thank you for the prompt response, I'll go ahead and address the changes you prompted.

Just an FYI, I'll place each of the concerns in their own commit to make reviewing them much easier, thank you.

I've gone ahead and added your suggestions in this commit, thank you for the review!
I was a little bit confused with this comment, but I took the main idea from it and removed the message stating no support for PoFV:

"thprac does support PoFV (and both versions of UDoALG, though support for those games works differently). I consider TH09 Tools and TH19 Tools to basically be the enchanced practice mode for those games. Actually, looking one line further down, I understand why you wrote that. You wrote that because it says "Does not support PoFV" in the line you removed."

https://github.com/touhouworldcup/thprac/pull/202/commits/b059e71d7a7ee6e0102d3ce01f4c11433457dede

Nice, the download link is moved further up. I would still have the link just be named "Download" though, and the other link would be "Download Beta". And I guess you could also add a note below that says "Note: beta versions will auto-update to the next stable version, but NOT to other beta versions"

Hello, thanks for the response, I've changed it to say "Download" and "Download Beta" and added the note to both sections:


Toolbox: add NFD undeploy script

This PR goes on top of https://github.com/openshift-psap/ci-artifacts/pull/51

146fa39 - toolbox: nfd/undeploy_from_operatorhub.sh: new script / ansible role / functionality

a691e81 - toolbox: move deploy_nfd_from_operatorhub.sh to nfd/deploy_from_operatorhub.sh
^^^ to have a more logical organization of the scripts

/hold
comes after https://github.com/openshift-psap/ci-artifacts/pull/51

/unhold
reorganized commits to make PR fully independent

/lgtm


remove @slf4j and constructor related annotations

Description
Remove @Slf4j and constructor related lombok annotations.

Codecov Report

Merging #413 into azure-config will increase coverage by 0.05%.
The diff coverage is 80%.

@@                Coverage Diff                 @@
##             azure-config     #413      +/-   ##
==================================================
+ Coverage           54.17%   54.22%   +0.05%
  Complexity            544      544
==================================================
  Files                 143      143
  Lines                2398     2401       +3
  Branches              140      140
==================================================
+ Hits                 1299     1302       +3
  Misses               1018     1018
  Partials               81       81

Impacted Files
Coverage Δ
Complexity Δ

...azure/spring/cloud/config/domain/KeyValueItem.java
92.59% <ø> (ø)
17 <0> (ø)
:arrow_down:

...zure/spring/cloud/config/msi/ConfigAccessKeys.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...e/spring/cloud/config/domain/KeyValueResponse.java
80% <ø> (ø)
3 <0> (ø)
:arrow_down:

...cloud/config/AzureConfigPropertySourceLocator.java
90% <100%> (ø)
15 <1> (ø)
:arrow_down:

...ft/azure/spring/cloud/config/ConfigHttpClient.java
80.85% <50%> (ø)
9 <1> (ø)
:arrow_down:

...ure/spring/cloud/config/ConfigServiceTemplate.java
86.53% <77.77%> (+0.82%)
13 <2> (ø)
:arrow_down:

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 e55ddc4...a71d95b. Read the comment docs.


please how to do transfer with paystack flutter plugin

Do you want to transfer to a bank account? or you want users to fund account or make payments ?

Closing because of no details was provided by the author.


Key code for HHK Eject

It seems like there's no KeyCode or ConsumerKeyCode listed for 0x5a, which is what the Happy Hacking Keyboard sends for Eject when in Macintosh mode. Could it be added as another ConsumerKeyCode? Alternately, is there a way to list a literal key code in an <autogen>?

OS X version: 10.10.5 (Yosemite)
Karabiner version: 10.21.0
Hardware: MacBook Pro 2014
Keyboard: Happy Hacking Keyboard Professional 2, with mode Macintosh (sw1+sw2 set to off+on)

Yes, you can use raw value
https://pqrs.org/osx/karabiner/xml.html.en#rawvalue
example from the doc.
<?xml version="1.0"?>
<root>
  <item>
    <name>Change right option key to tab key</name>
    <identifier>private.right_option_key_to_tab_key</identifier>
    <!-- change right option key (0x3d) to tab key (0x30) -->
    <autogen>__KeyToKey__ KeyCode::RawValue::0x3d, KeyCode::RawValue::0x30</autogen>
  </item>
</root>

Awesome - sorry for not noticing that in the documentation!


How use " Ultra-Light-Fast-Generic-Face-Detector-1M" on RKNN?

I need to use Ultra-lightweight face detection model for a face recognition project on a dev board. For this application, it requires to convert the model to rknn model and run the converted model on rknn. If there is any solution , could you please help me to  use Ultra-lightweight face detection mode on RKNN?, Thanks

@VistanaGit Hi! You can try something like this:
`
import numpy as np
from rknn.api import RKNN
MODEL_PATH = "models/onnx/version-RFB-320_new.onnx"
MODEL_NAME = MODEL_PATH.split("/")[-1]
Initialize RKNN object
rknn: RKNN = RKNN(verbose=False)
if rknn.config(target_platform='rk3588'): #dynamic_input=DYNAMIC_INPUT
print("RKNN config failed")
exit(1)
Load ONNX model
input_size_list = [[1, 3, 240, 320]]
ret = rknn.load_onnx(model=MODEL_PATH) #, inputs=['modelInput'], input_size_list=input_size_list
Check for successful model loading
if ret != 0:
print("Loading ONNX model failed")
exit(1)
ret = rknn.build(do_quantization=False, dataset="./dataset.txt")
if ret != 0:
print("Building RKNN model failed")
exit(1)
if rknn.init_runtime():
print("RKNN initialization failed")
exit(1)
rknn_model_path = MODEL_PATH.replace(".onnx", ".rknn")
ret = rknn.export_rknn(rknn_model_path)
if ret != 0:
print("Export failed")
rknn.release()
exit(ret)
input_data = np.random.rand(1, 240, 320, 3).astype(np.float32)
outputs = rknn.inference(inputs=[input_data])
rknn.release()
`
It is working for me with rknn-toolkit2==2.2.0. Make sure that you have the same versions for rknn-toolkit2, rknn-toolkit-lite and RKNPU driver on your board


Could you add the ability to dts-gen individual files

with an option to specify an output directory and name?
Thanks

I'm not sure what this means. Can you sketch out what the behavior should be?

Sure, I'd like to generate typescript definition file for a single javascript file. So if I could
dts-gen <original.js file> <output/directory/original.d.ts>
Something like that. Thank you

Maybe you could give an example of an input JS file and an output .d.ts file from this process?

ok. I have a collada loader in my node_modules folder which consists of only one file.
threejs-collada-loader
I'd like to generate a .d.ts file for it. That is what dts-gen does correct?

+1 for this

+1

+1

Is this planned?

I got a workaround by doing the following:

Load the page with the script you want to generate the definition on Firefox
On console, call yourObj.toSource() (toSource is only available on Firefox)
Save the string on a yourlib.js
Call dts-gen --expression-file youtlib.js

@RyanCavanaugh What is needed here is a way to call dts-gen jquery.js -expr $ --out jquery.d.ts for example, and dts-gen would load jquery.js, look at the $ object and generate the jquery.d.ts out of that.

+1, I have an UMD module generated through browserify. For some reason I had to include both enzyme and react in the UMD module. In my typescript I imported this UMD module, everything works fine except intellisense is not working. I guess .d.ts will help here and it would be helpful if tool can get declaration from the UMD module.

+1

+1e6

👍 A lot of packages are not npm packages, so you can't install them as a module!

I have a lib that is a module but not an npm package so I try to generate .d.ts with dts-gen via an expression:
dts-gen -e "require('lib.js')" -f lib.d.ts
but I get the error:
Couldn't load module "undefined". Please install it globally (npm install -g undefined) and try again.

I though that requiring the lib as an expression would work. So a way is needed to be able to gen dts files from a file that IS NOT an installed npm package.
So +1 for a solution to this

Yea, it's annyoing.
I should generate the d.ts of leaflet-draw.
First it complains about window and document not being defined.
Great, because leaflet is not a nodejs module, and browser-only libraries are so rare, especially with JS.
Another great thing is, I now declare
var window = window || {};
var document = document || {};

on top of the file, and now it complains about Leaflet not being defined.
Then I define it
var L = L || {};
and now it complains about L.drawLocal.extend

Cannot read property "extend" of undefined.

Sure a "very" utilizable tool.

3 Years now, is there any progress? Because there are still people like me who need that

Have some news to ignore required files?

I fixed the issue in #168. We should wait until someone merges it.

What's the progress here?

I have published my PR until it is merged:
npm install -g @aminya/dts-gen

dts-gen --expression-file=./your_file.js


Don't expand env vars in settings shown in UI

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2232
Originally created by @DouweM on 2020-08-11 21:47:24

tap-postgres's schema setting is set to $MELTANO_EXTRACTOR_NAMESPACE by default, but shows up as empty in the UI since the env var does not exist there.
We should really not be expanding env vars in that form at all, since users shouldn't accidentally destroy the dynamic setting when they open the modal and save without realizing that they're overriding something.

View 2 previous comments from the original issue on GitLab

Closing as no longer relevant on account of the removal of the UI for Meltano 3.0


Make debug logs a “feature overlay”

Based on https://github.com/mtlynch/tinypilot/pull/698, apply the changes to the debug logs dialog. ~(Waiting to be rebased.)~ Rebased.

I hope, by the way, that I don’t spam the logpaste service with these fake logs too much… 🤣

I hope, by the way, that I don’t spam the logpaste service with these fake logs too much… 🤣 (have used that feature a couple of times today while testing)

Nah, this should be fine. I think we'd have to generate like 1 GB worth of logs before it starts becoming a problem, and if that happens, I can pretty easily purge the fake data based on the header.


Advanced types doesn't work with Symbols

TypeScript Version:  3.2.4
Search Terms: Symbols and advanced types; symbol extends;
Code
let pushElement = Symbol('pushElement');

class TreeObject<T> {
    [pushElement](element: T extends boolean ? never : T) {
        // code here
    }
}

var tree = new TreeObject();
tree[pushElement](true); // should throw error

Expected behavior:
Boolean value parameter shouldn't be allowed here (according to type)
Actual behavior:
Boolean value parameter is allowed here, even if type points to not use it
Playground Link: https://www.typescriptlang.org/play/index.html#src=let pushElement %3D Symbol('pushElement')%3B

class TreeObject<T> {
    [pushElement](element%3A T extends boolean %3F never %3A T) {
        %2F%2F code here
    }
}

var tree %3D new TreeObject()%3B
tree[pushElement](true)%3B %2F%2F should throw error
Related Issues: Not found

In your example, T is inferred as {} on the line var tree = new TreeObject(), since there are no other constraints or inference sites. You can see this by hovering over the tree variable in the playground.
This type {} does not extend boolean, so the [pushElement] method will accept any type of argument except null or undefined.
Also you need to use const (not let) on the first line for the symbol to be strongly typed.

@yortus oh, my bad! Too many coding this day and I missed that. Thanks for response


Combined PR

Combined PR of the following two PRs:
https://github.com/wildfly/wildfly-core/pull/4222
https://github.com/wildfly/wildfly-core/pull/4223

The two PR's have been merged.


Fix underscore annotations for loop

Hello!
After updating to the latest version, I got an error ./scripts/process_annotations.js: execution error: Error: TypeError: undefined is not an object (evaluating 'annotations.map') (-2700) whenever running the annotation extraction.
I'm not particularly familiar with JavaScript, but after debugging the changes in the update, I think the issue is in the return statement in the processing of annotations beginning with "_". Changing the if statement fixes the error (tested on PDFs with and without "_" annotations).

oops, I have actually fixed it on my local repo already, but forgot to push that change. Fixed in 8.10.1


"Hide if Visited" and "Show Count" not "remembered" after loading save

Describe the bug
If a menu option is marked "Hide if Visited", it is not "remembered" by Fungus if the player quits the game and reloads.
To Reproduce

Have a for "main menu" where you can click a Load button that just executes SaveMenu.Load(). The SaveMenu prefab exists here and will persist through to the next scene. SaveMenu has load on start OFF, auto save ON

Have a "test scene" where selecting "new game" or "load" takes you. It should have the following flowchart setup:
Start Block with a menu option that's marked "Hide if Visited", leading to "Block2".
"Block2" should have a SavePoint, then a Say dialogue text, then a menu option that leads back to the Start block, not marked "Hide if Visited".

Test Scenarios
Test scenario 1: we click the menu option to go to "Block2". we see the dialogue text come up, then the "back" option. We quit the game without clicking it. Upon relaunching the game, we are put on Block2, we see the say text, then the "back" option. We click "back", and we find ourselves on the Start block to observe the option that would lead to Block2 gone.
Test scenario 2: we click the menu option to go to "Block2". we see the dialogue text come up, then the "back" option. We click the "back" option to get back to the Start block and observe that the option leading to "Block2" is gone. We quit the game now. Upon relaunching the game, we are put on the Start block, but we observe that the option taking us to "Block2" is available once again.
"Show Always"/"Show Count" Interactions
If "Show Always" is unticked, I can specify how many times a say dialogue appears via "show count". if set to appear only once, then in Test Scenario 2 if I set the say dialogue to have "show always" OFF and "show count" set to 1, the say dialogue will appear upon loading the save.
Expected behavior
"Hide if Visited" to persist after reloading or relaunching the game.
"Show Count" to persist after reloading or relaunching the game.
Screenshots

Versions & Platform:

Unity version2019.4.9f1
Fungus Version 3.14

Do you have a savedata block in your scene or just a SaveMenu block?

@bytemech  SaveData block? I'm not sure what you mean by that, but I have added an empty GameObject with the SaveData script on it that I dragged the flowchart onto, but it doesnt seem to make a difference.
The node the ShowOnce option leads to even has a SavePoint because I wanted to double check if perhaps the saving would trigger this behaviour, but no; once reloading the save from the main menu, the Show Once option is shown again, and so is the say text "Something something show once", despite set up to show only once.

Check 1:48 https://www.youtube.com/watch?reload=9&v=Bd4RDcCc0lE

@bytemech I've re-watched this video, and can confirm that my setup is correct. Any ideas why it still doesnt "remember" show count and hide if visited?


About the encrypt(shared secret, LEFT(SHA-256(PIN), 16)) in traffic

https://github.com/BryanJacobs/FIDO2Applet/blob/main/docs/security.md?plain=1#L111
The MITM traffic can just get the 16-bytes with ECDH's shared-secret still, I think this treat should be belong to malware or compromised client parts.

I'm not sure I understand exactly what you're saying.
Rephrasing what's in the documentation:

Passive MITM (observation of traffic, no injection/modification) cannot steal the left16(sha256(PIN))
Active MITM (modifying traffic) can steal the left16(sha256(PIN))
If someone has left16(sha256(PIN)), they don't need to know your PIN to interact with the authenticator as if they know your PIN

Malware on the client machine and compromised card readers are two examples of situations where an active MITM would be possible.
What are you looking to have changed in the documentation?

Yeah, I think the active MITM you defined here is more reasonable.
Just my nitpicking here, from ctap2 spec, authenticators and clients doesn't have the way to do mutual authentication, so the MITM here should only mean there is a fake authenticator impersonate the original one to the client. And from the  authenticator's perspective, it's just passively talking to a client whether it's compromised or not.

Agree.
As the specs' disclaimer, the situations with using compromised clients/browsers (or w/ extensions) are always excluded in the scope. Just as new passwords managers' extensions with passkey support, it can even swallow the webauthn api.


New version: Downloads v0.2.0

Registering package: Downloads
Repository: https://github.com/JuliaLang/Downloads.jl
Created by: @StefanKarpinski
Version: v0.2.0
Commit: e5a4efebe10f05d2fb5866f55f5546743917e0a6
Reviewed by: @StefanKarpinski
Reference: https://github.com/JuliaLang/Downloads.jl/commit/e5a4efebe10f05d2fb5866f55f5546743917e0a6#commitcomment-43048420

Hold up on this.

Hold up.


Streams are synchronized based on "chunk receival time", and not "stream time"

With rate, sample and channels defined, each incoming sample of data has a precise moment when it should be played.

data_received reads incoming data and puts in a buffer, then into a queue.
packetize() reads this data eagerly and marks with a time - based on the moment of READING, not the stream queue.

Instead, it would be better to track the STREAM TIME. This creates a problem with input underflow which will have to be handled.
This is mostly fine when the source is streaming audio in it's natural time. If the pulseaudio sends as a bigger chunk od data "to be played later" - weird things can happen. This wasn't problem when I used it with spotify/mopidy though.

I've implemented this approach in the "2.0" release. It seems to work in my environment, but I tested with only one client (which had huge problems before implementation and now it's certainly better in some ways)


Add hardcoded InfoUnits to new homepage design

This commit adds some hardcoded InfoUnits to the new homepage design, using the 33/33/33 InfoUnitGroup template. This content is hardcoded pending implementation as editable Wagtail blocks. Content is placeholder and is the same in both English and Spanish right now.
@contolini
Testing
To test, visit the English and Spanish versions of the new homepage:

http://localhost:8000/?nhp=True
http://localhost:8000/es/?nhp=True

Screenshots
For this to work correctly you need to have the referenced image locally; see #5365 for one way to pull down production images to your local storage.

The colored box above is the in-progress carousel; @anselmbradford do you have any suggestions for the right way to add some margin between it and this new content?
Checklist

[x] PR has an informative and human-readable title
[x] Changes are limited to a single goal (no scope creep)
[x] Code can be automatically merged (no conflicts)
[x] Code follows the standards laid out in the CFPB development guidelines
[x] Passes all existing automated tests
[ ] Any change in functionality is tested
[ ] New functions are documented (with a description, list of inputs, and expected output)
[x] Placeholder code is flagged / future todos are captured in comments
[x] Visually tested in supported browsers and devices (see checklist below :point_down:)
[ ] Project documentation has been updated
[x] Reviewers requested with the Reviewers tool :arrow_right:

The colored box above is the in-progress carousel; @anselmbradford do you have any suggestions for the right way to add some margin between it and this new content?

Looks like you want to wrap o-info-unit-group in a
 (or add block to the o-info-unit-group).

Looks like you want to wrap o-info-unit-group in a
 (or add block to the o-info-unit-group).

@anselmbradford thanks, added the section wrapper in 067ca8b.


A Centos 7 container running on Debian 11 is unable to mount cgroup

Required information

Distribution: Debian
Distribution version: 11

Issue description
I have installed lxd in Debian 11 using the snap package but I fail to have a running Centos 7 on it. lxc init and lxc start seem to work fine, but the container doesn't get an IP address and only /sbin/init process seems to be running.
The log seems to indicate that systemd is unable to mount cgroup:
# lxc console centos7con --show-log
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement

Console log:

Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted
systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Detected virtualization lxc.
Detected architecture x86-64.

Welcome to CentOS Linux 7 (Core)!

Cannot determine cgroup we are running in: No such file or directory
Failed to allocate manager object: No such file or directory
[!!!!!!] Failed to allocate manager object, freezing.

The "WARNING: cgroup v2..." message appears with every lxc command that I issue, but I am not sure whether that's causing the problem or not.
Steps to reproduce

Install lxd from snap in Debian 11
lxc launch images:centos/7 centos7con
lxc ls  centos7con   # No IPV4 is shown
lxc console centos7con --show-log

It is worth mentioning that other images work fine. In particular I have tried images:centos/8, images:debian/bullseye and ubuntu:18.04 without an issue.
lxc_config_out.txt
lxc_info_out.txt

Yes, that's normal. Systemd in centos7 does not support cgroup2. You're running on a cgroup2-only system and so such containers will fail to start.
If you can't move your containers to an OS which supports cgroup2, then you will need to configure your host to use cgroup1 instead.

I need to use Centos 7 as the container image. Is there actually a way to use cgroup1 in Debian 11?

Yeah, you need to update your grub config to pass systemd.unified_cgroup_hierarchy=false to the kernel, then run update-grub and reboot.

That indeed works!
Thank you very much for your support.

np, glad it worked!


Update GPU Manager Tracing API

Original issue: https://charm.cs.illinois.edu/redmine/issues/1761

The tracing API in GPU Manager needs to be updated with the redesign.
The Activity API of CUPTI seems to be able to provide accurate timers for operations on a CUDA-enabled GPU.

Original date: 2017-12-06 23:07:04

-Gerrit patch: ~~https://charm.cs.illinois.edu/gerrit/#/c/3101/~~ https://github.com/UIUC-PPL/charm/commit/c514644837277636dc7cddfd9b26e54249e71667-

Original date: 2018-09-11 05:14:25

New patch using CUPTI Activity API: ~~https://charm.cs.illinois.edu/gerrit/#/c/charm/+/4560/~~ https://github.com/UIUC-PPL/charm/commit/6266f531574eb812585336f430f9d8dd09b440e4


Selectrum: morer things 2

(bug was a rebase error, sorry for the fuss)

improve find-file and the like to go up a directory when pressing backspace on /
turn orderless on by default
refactor the orderless config
bibtex-actions updates
TODO updates

@bdarcus see bibtex-actions changes

@bdarcus see bibtex-actions changes

Thanks @iyefrat - I added a couple of comments, but really just for context.


0.9.9 not available on Pypi?

Just wondering, I was trying to update to the latest release 0.9.9 but I cannot find it on Pypi

thanks! it's there now.


(rdcman) Upgrade and change to automatic

Description

update the rdcman package to the current distribution method (evergreen zip url)
convert the package to automatic

Motivation and Context
After nearly fading into extinction, RDCMan got updated by Microsoft. It is now published under the Sysinternals brand, in a similar manner to other Sysinternals tools (static url to the latest version).
How Has this Been Tested?
Installed manually on a VM, from a personal NuGet feed.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
Due to the installation technology change, versions 2.8+ will not replace the older 2.2 or 2.7, which were installed using MSI installers. Since those versions were unavailable for installation for quite some time now, I don't see that as a problem and I don't want to put any effort into it.
[ ] Migrated package (a package has been migrated from another repository)

Checklist:

[x] My code follows the code style of this repository.
[x] My change requires a change to documentation (this usually means the notes in the description of a package).
[x] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[x] All files are up to date with the latest Contributing Guidelines
[ ] The added/modified package passed install/uninstall in the chocolatey test environment.
[x] The changes only affect a single package (not including meta package).

:white_check_mark: Package verification completed without issues. PR is now pending human review

FYI, this RDC manager is awesome: https://chocolatey.org/packages/premotem

:white_check_mark: Package verification completed without issues. PR is now pending human review

FYI, this RDC manager is awesome: https://chocolatey.org/packages/premotem

Looks nice, I'll give it a try. Although I have multiple .RDG files with literally dozens of servers and many credential profiles, so the cost of switching to a different tool and copying the configuration would be noticeable ;)

@jberezanski
You can automate conversion to PRM side if you can access raw RDG data (I don't use it so I don't know). PRM keeps it in sqlite database with very easy format.


Added nn.ModuleFromCriterion to wrap a called Criterion.

@wojciechz @koraykv
I took an inspiration from Wojciech.
And I provided the support for Criterions inside of a nngraph.
A Criterion is automatically wrapped by a module,
when converting the criterion to a node.
Is this support matching your needs?

@fidlej, could you please add some documentation?

What is unclear?
I do not recommend using Criterions in a graph. The gradient with respect to the target will be zero.

All other features are documented. It would be useful to have a working example showing how it can be used.
Why are you saying that the gradient will be zero?


MQTT Server: Can I stop one client from receiving a Publish event?

Normally when the server receives a message from a client, it sends that message to all subscribed clients.  If the originating client is also subscribed to that topic, it will also receive the message.  Essentially a client that both publishes and subscribes will receive an echo of any message it sends.
I would like my server to (optionally) disable these echoes, such that when a client publishes a message, all clients except the originating client will receive the message.
It seems like this could be generalized a bit, by creating a publication filter in the server that returns a true or false to indicate whether a message should be transmitted to a particular client.  So long as the filter has access to the originating client or client ID, it would enough to implement the above scenario.
I'm aware that the behaviour I need violates the MQTT specification, but there are some pretty thorny issues in my system around a client reading and writing the same topic that I would like to try to solve, and this would be a big help.

Current API allows you to refuse publication of a message or subscription, but this is meant for Auth purposes. We don't have API for what you are describing.
You could always go into the source, and edit https://github.com/chkr1011/MQTTnet/blob/master/Frameworks/MQTTnet.NetStandard/Server/MqttClientSubscriptionsManager.cs
However, it is likely you could avoid such issues by slightly re-designing your API. If you can't at least include clientId in the publish topic:
messages/clientId
Then you subscribe to
messages/#
And in your application logic you can filter out the messages where the clientid matches current id. This won't save the bandwidth, but logically it's really simple. You can also use it as a confirmation that the message was sent successfully

Hi @asthomas,
I also have this issue and wanted to add this feature (disabled by default to align with MQTT specs). But I did not implemented it yet because I was thinking about a different solution because sometimes the sending client may should receive the message and sometimes not. This depends on the user and his project. So my idea is to add a new interceptor which is called before any message is forwarded to a client including the entire message the receiver Client ID and the sender Client ID. Then you can set a flag (like in the other interceptors) to skip adding this to the queue for the client.
What do you think? I assume this will also solve your (and my) issue.
Best regards
Christian

Thanks, Christian.  Yes, I think that would be perfect.


Add search functionality with Algolia

This is what it looks like, on the home page

On other pages:

Inside the search popup the little underlines are blue, but I couldn't change them with the recommended styles (https://community.algolia.com/docsearch/documentation), so probably we'd have to dig deeper to adjust that.
Please tell if anything should be done differently, and feel free to jump in and change the styles if you'd like to change the looks.

Coverage remained the same at 97.292% when pulling 2ee0e11068121a427efc3f37d0c36003cc3b97e9 on add-search into 894126f204c71b0b7b993bf267156e5eccf7fa33 on master.

Coverage remained the same at 97.292% when pulling 2ee0e11068121a427efc3f37d0c36003cc3b97e9 on add-search into 894126f204c71b0b7b993bf267156e5eccf7fa33 on master.

awesome stuff, @markvincze! super impressed! 💖
I would be very curious to see how the searchbox looks like if aligned on the right side.
You may find these docs of Bulma very handy: http://bulma.io/documentation/components/nav/

@fahad19,
This is what it's like on the home page:

And on another page:

Which one would you like? (I think I prefer this version, when it's on the right)

Ah, Bulma has built-in styles for the textboxes, I'll look into that and try to simplify the css.

Coverage remained the same at 97.292% when pulling cb68be6262b0e7d205185ae18326e62c63c058b3 on add-search into 894126f204c71b0b7b993bf267156e5eccf7fa33 on master.

Ah, cool, I changed it to use the built-in Bulma form styles, so all the horrible css is gone (and it looks a bit better ^^)

Coverage remained the same at 97.292% when pulling cb68be6262b0e7d205185ae18326e62c63c058b3 on add-search into 894126f204c71b0b7b993bf267156e5eccf7fa33 on master.

💯 ✨ 💖

Coverage remained the same at 97.292% when pulling 1cefe56ac4be2f8a9f0fe1b10c77013ff4a79196 on add-search into 894126f204c71b0b7b993bf267156e5eccf7fa33 on master.


On V8 runtime, error "Property Store is required"

This was reported by several people on the Apps Script issue tracker.
See https://issuetracker.google.com/issues/150933949

Haven't gotten any followup here, closing.


Fix broken link

What I did

Removed Morningstar entry.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

it seems morning star is no longer using web components but is based on vue now...
probably better to remove it 😅

@daKmoR - How about now? Removed the entry.

thank you 🤗


Automatically RSVP the Creator of an Event

Idea
Just for the sake of efficiency and simplicity, we know that whoever is creating an event is probably going to go to said event. So, we can put that into our API as a default.
Todo
In the 'create event endpoint', the creator of the event should be automatically RSVP'd to the event.

Finished


Installation fails if gfortran version < 4.9 is in PATH

If gfortran exists in the users's PATH, then the OpenCoarrays installation scripts invoke gfortran here or here to compile a simple program that prints the compiler version using the Fortran 2003 "compiler_version" function.  Gfortran 4.8 and earlier do not support this function so compilation fails and the installation script dies.  Probably a few applications of "|| true" would make this more robust so that the installation simply treat an inability to compile the test program as an indication of an insufficiently recent version of gfortran.

Without looking at the code, that sounds like a viable solution.


Remove Rust from devcontainer

It is not necessary for ruff, which gets installed with pip.
This makes the devcontainer build faster.

It is not necessary for ruff
That argument would make sense if this repository was for ruff.
That is not the case.
Is there no longer anything in HA (including its requirements like cryptography) that requires rust?

I have no clue. I was just wondering why would anyone need Rust in their devcontainers.
Also, if just a few users need it, maybe they can add it themselves.
For example, I need ffmpeg for the ffmpeg integration. I should probably add it myself to the devcontainer rather than pushing it to everyone.

When it was added, it was required for HA to start correctly.

Features are currently broken on rootless podman installs:
https://github.com/devcontainers/cli/issues/548
Bumped into this while poking around using my Steam Deck in desktop mode. I was able to boot Home Assistant 2025.5.2 without the Rust feature.

The 2023.8.0 version currently pinned in requirements.txt also runs without the Rust feature enabled.


License?

I'd like to submit your app for inclusion in F-Droid, a repository of free and open source software for Android. While your web site states that TransitWand is open source, it doesn't state which license and I don't find anything more specific in the repo. Can you clarify this? Thanks!

This issue should be closed since the commit f8425aa added the license file. ("MIT License)


Getting results back from batch query job

I have something like this, where I want to send a query as a bulk batch job.
  const job = conn.bulk.createJob('Account', 'query');
  var batch = job.createBatch();
  let endBatch;
  batch.execute(theQuery);
  batch.on('queue', batchInfo => {
    console.log('in queue');
    endBatch = conn.bulk.job(batchInfo.jobId).batch(batchInfo.batchId);
    endBatch.poll(500, 20000);

    endBatch.on('response', response => {
      console.log('response', response);
      endBatch.check().then(yo => {
        console.log('check', yo);
      });
      endBatch
        .retrieve()
        .then(results => {
          console.log('end', results);
        })
        .catch(handleError);
    });
  });

However, all I ever get back from the retrieve() is something like this, without the actual results themselves.
end [ { id: '75261000008FPXW',
 batchId: '7516100000GnBSwAAN',
 jobId: '7506100000CtuBwAAJ' } ]

My check also shows that everything has completed, but I never get the results back:
check { '$': { xmlns: 'http://www.force.com/2009/06/asyncapi/dataload' },
 id: '7516100000GnBSwAAN',
 jobId: '7506100000CtuBwAAJ',
 state: 'Completed',
 createdDate: '2018-08-01T18:36:12.000Z',
 systemModstamp: '2018-08-01T18:36:12.000Z',
 numberRecordsProcessed: '2',
 numberRecordsFailed: '0',
 totalProcessingTime: '0',
 apiActiveProcessingTime: '0',
 apexProcessingTime: '0' }

Looking at the actual code in api_bulk.js, it seems like results are never actually getting returned. - Am I missing something here? Is there another event I should be listening for?

You should use Batch#result(resultId) instead of Batch#retrieve() which is done by Batch#poll() internally. The response event of batch query will notify the list of results, which can be used for the parameter of Batch#result().

@stomita Thank you for the help.
I've modified my code below, but I'm unfortunately not seeing any results:
  const job = conn.bulk.createJob('Account', 'query');
  const batch = job.createBatch();
  batch.execute(theQuery);

  batch.on('queue', batchInfo => {
    console.log('in queue');
    batch.poll(500, 20000);
  });

  batch.on('response', response => {
    console.log('response', response);

    batch.result(response[0].id).then(res => {
      console.log('result', res);
    });
  });

It gets as far as logging the response in the .on('response') callback, but it never goes into the result callback. The console log from .on('response') shows this:
[0] response [ { id: '75261000008FdW8',
[0]     batchId: '7516100000GnaQCAAZ',
[0]     jobId: '7506100000Cu88wAAB' } ]

I have also tried calling batch.result(response[0].batchId), but that doesn't work either.
Thanks again! I apologize if I'm missing something obvious.

I'm also seeing weird issues with bulk queries not returning.
I'm suspicious that webpack+jsforce compatibility is somehow causing the issue. @shomanishikawa is your jsforce being processed by webpack? I'm building an Electron app based on electron-react-boilerplate, which uses webpack to package app dependencies.
My code is below. When jsforce is outside of webpack processing (i.e. shipped as a runtime dependency alongside my app), everything works fine. When jsforce is being packaged by webpack, it seems as if 'end' or 'error' are never emitted on recordStream, causing the Promise I have wrapped around this code to never resolve.
    const recordStream = client.bulk.query(soql);

    recordStream.on('record', (record) => {
      count += 1;
      batchCount += 1;

      records.push(record);

      // Watch for CPU overuse
      if (batchCount === batchLimit) {
        log.debug(`Received ${batchCount} more records (${count}), pausing stream for ${pauseMs}ms`);
        batchCount = 0;
        recordStream.pause();
        setTimeout(() => {
          log.debug(`SalesforceBulkAPIDataSource - Resuming stream for 100 records`);
          recordStream.resume();
        }, pauseMs);
      }
    });

    return new Promise((resolve, reject) => {
      recordStream.on('end', async () => {
        // do stuff...
        log.info(`Done getting ${count} ${tableName} records`);
        resolve();
      });

      recordStream.on('error', (error) => {
        log.warn(`There was an error with reading ${tableName} records: ${error}`);
        if (error.name === 'PollingTimeout') {
          // Upstream error:
          // https://github.com/jsforce/jsforce/blob/a091f2f72b0fa5bb784cf098b60988f707e720ef/lib/api/bulk.js#L574
          const extraData = {
            upstreamName: error.name,
            upstreamJobId: error.jobId,
            upstreamBatchId: error.batchId,
            tableName: tableName,
          };
          const apiOutageError = new APIOutageError(account, this, extraData);
          reject(apiOutageError);
        } else {
          reject(error);
        }
      });

Any ideas? Are there doc on how to use jsforce with webpack 4? I'm using webpack 4.22.0. The last webpack docs seem to be for webpack 1 (if I try to include the json loader as instructed, I get a warning saying that with webpack 2+ json will be automatically loaded.)
I don't know what about webpack/babel would cause a callback not to be fired. It's very odd. Any ideas are welcome.
Also, I tried debugging the issue myself by yarn linking jsforce to my project, but when I run the project with jsforce linked I get this error:

I'm happy to spend some time debugging if you have any ideas.

Hey guys, first thanks for this great library, it's really making my life a lot easier.
I also have troubles with getting results from bulk query. I tried with Bulk#query method and events like in documentation here but that console log in "record" listener logs nothing. as I can see in chrome devtools network tab results are returned from SF but that event listener is not triggered.
Results from this bulk query should be saved to local database, if that's important to you maybe.
I even tried doing it manually with Batch methods but that didn't work either. Can you please explain how can I get results?

@supermarioim Here's how we're doing large fetches of Salesforce tables via Bulk API, if this helps. We decided to just handle the RecordStream ourselves to have finer control of what's happening, see the comments.
We're still debugging some occasional Salesforce polling timeouts that seem customer-specific (i.e. maybe certain Salesforce instances have a ton of records, the Bulk API queue is backed up, etc.). We might resort to getting fewer records via the REST API in that case.
Hopefully this helps!
export default class SalesforceBulkAPI {
  static async getSalesforceRecords(client, table) {
    const countSoql = `SELECT COUNT() FROM ${table.tableName}`;
    const result = await client.query(countSoql);
    const { totalSize } = result;

    const limit = 10000;
    const soql = tableExportSoql(table, limit);
    log.info(`There are ${totalSize} ${table.tableName} records (limit is ${limit})`);

    /**
     * Don't trust jsforce's stream handling, use our own
     * https://github.com/jsforce/jsforce/issues/691#issuecomment-341107251
     * https://stackoverflow.com/questions/10623798/writing-node-js-stream-into-a-string-variable/35530615#35530615
     */

    const t1 = performance.now();

    const csvParser = csvParse({ delimiter: ',', columns: true });
    // We still need recordStream to listen for errors. We'll access the stream
    // directly though, bypassing jsforce's RecordStream.Parsable
    const recordStream = client.bulk.query(soql);
    const readStream = recordStream.stream();
    readStream.pipe(csvParser);

    const records = [];
    let recordBatches = 0;

    // https://csv.js.org/parse/api/
    csvParser.on('readable', () => {
      let record;
      while (record = csvParser.read()) { // eslint-disable-line no-cond-assign
        records.push(record);
      }
      recordBatches += 1;
    });

    return new Promise((resolve, reject) => {
      recordStream.on('error', (error) => {
        log.error(error);
        if (error.name === 'PollingTimeout') {
          // https://github.com/jsforce/jsforce/blob/a091f2f72b0fa5bb784cf098b60988f707e720ef/lib/api/bulk.js#L574
          reject(new Error(`The Salesforce Bulk API had a polling timeout`));
        } else {
          reject(new Error(`Couldn't download results from Salesforce Bulk API`));
        }
      });

      csvParser.on('error', (error) => {
        log.error(error);
        reject(new Error(`Couldn't parse results from Salesforce Bulk API`));
      });

      csvParser.on('end', async () => {
        const t2 = performance.now();
        log.info(`Received ${records.length} of ${totalSize} (limit ${limit}) ${table.tableName} records in ${recordBatches} batches in ${timeHelpers.msString(t2, t1)}`);
        resolve(records);
      });

      // Throw fake PollingTimeout error from jsforce
      if (false && isDev) {
        const err = new Error(`Polling time out. Job Id = fake , batch Id = fake`);
        err.name = 'PollingTimeout';
        err.jobId = 'abc';
        err.batchId = 'def';
        recordStream.emit('error', err);
      }
    });
  }
}

Usage would be something like:
const recordsForTable = SalesforceBulkAPI.getSalesforceRecords(jsforceClient, 'Account');

Note: During these requests, an error with error.name === 'invalid_grant' maybe be triggered, so watch out for that! We wrap our calls to getSalesforceRecords with some error handling that catches invalid_grant and triggers our apps token refresh logic.

@shomanishikawa To get the results back from the batch, what I did was call batch.result(resultId) and converted it to a node stream and read the chunks of data coming in from the stream.  Something like this:
batch.execute(query)
  .on('response',  (responses)=> {
     const results = [];
     for (const response of responses) {
        batch.result(response.id)
           .stream()
           .on('data', (chunk)=> {
                results.push(chunk.toString());
           })
           .on(end, ()=> {
                console.log(results)
           })
    }
  })

Of course you can handle the results however you want to

I will try the copy paste since I have not learned much yet. Thank you for helping me and this is
learn as I go

OOOp did not work I better stop before I mess up badly. I need to put those code in the terminal to exec. right?
Mamie

Hello, I decided not to continue this there are so many things I need to
Know that I do not Packages, languages, terminology and I just
Do not think it is good for me at my age. I will be best if I take
Github full course and then decide. I will be happy with classes not really
Wanting a job.
Mamie
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: Mamie Sharrieff<EMAIL_ADDRESS>Sent: Sunday, March 17, 2019 3:12:19 PM
To: jsforce/jsforce
Cc: Mamie Sharrieff; Your activity
Subject: Re: [jsforce/jsforce] Getting results back from batch query job (#791)
I will try the copy paste since I have not learned much yet. Thank you for helping me and this is
learn as I go
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/jsforce/jsforce/issues/791#issuecomment-473710072, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AoS8Ok05WWzrqiVYWLx3fYN4-naiYg7mks5vXqGjgaJpZM4VrBl9.

Does anyone have a recommendation on how to retrieve the results when working in typescript?

triaging old issues...
we've recently updated some of the docs for the bulk API (and jsforce v3 supports Bulk V2 now!):
https://jsforce.github.io/document/#bulk-api
https://jsforce.github.io/document/#bulk-v2-api
if anyone experience any problem on jsforce v3 about this please open a new issue.


Feat/independent testing #5

Units can be called as attributes.
Only fundamental and derived units are checked.
Incorrect units will raise a Quantity error.

I think we decided to tackle this one a bit differently, closing for now.


Add additional settings to show/hide elements when viewing .note files

This PR proposes adding a few simple on/off settings for viewing .note files. I find these nice to have for a cleaner viewing experience, especially if I just want to look through many pages and am not planning to do much exporting.
All three of these settings look and work fine when used independently of each other in different combinations.
I haven't actually tested in combination with #24, but I expect these changes to work fine together.
Defaults/current behavior
The default settings shown below preserve the current behavior of the plugin:

My test note looks like this:

Hiding the table of contents and page number headings
Switching "Show table of contents" OFF removes the table of contents and the page number headings:

Hiding export buttons
Switching "Show export buttons" OFF hides the buttons:

Collapsing recognized text
Finally, switching "Collapse recognized text" ON tucks the recognized text under an HTML details element:

Clicking on that element expands it to show the text:

Thanks for considering these unsolicited changes!

squashed, fixed, and merged to main

Thank you for the contributions.


GraphAPI using this framework

Hi,
Is it possible to use graphAPI using this framework? I have the accesstoken but no data yet (of course).
I tried installing react-native-fbsdk but not working too well, one possibility being that I already have this framework installed via cocoapods. Thank you.

Sure! You can store and use the token returned with the login credentials to make graph requests on behalf of the user. Of course you'll need to update the permissions you request to include whatever request you're trying to make.
As an example, take a look at the Login components in the example I provide with this project. You can see that I use the credentials returned from the login request to then make a subsequent request for the user profile photo.
https://developers.facebook.com/docs/graph-api

Thank you!


Don't overwrite offline products

Uploading an offline product, after the merge of don't overwrite product branch

March 31, 2018 at 8:34:45 PM CEST - teolemon Uploaded images (Added: 7) - new image 7 - image upload - view
March 31, 2018 at 8:34:35 PM CEST - teolemon Selected images (Added: front_aa, nutrition_aa, ingredients_aa) -- Data (Changed: lang, product_name, quantity, brands, product_name_fr) - (app)new android app - view```

“https://world.*****/cgi/product_jqm2.pl?code=3700311800999&add_brands=XXXX&add_countries=en:france”
To try adding a brand without destructing the existing.

Fixed in #1712