Calculate type in dynamic repeat groups error

Describe the bug
Calculate type inside a dynamic repeat (repeat_count) with a reference in relevant creates an error when the repeat is skipped. Case cannot be submitted online. So, also edit of submitted cases is no more possible.
The bug is found on new submission with Enketo and on re-editing/submit for data at the KoBo server (from Collect offline). (from community post)
To Reproduce
Refer to linked post.
Expected behavior
Skipped parts of forms and dynamic repeats should not create errors. Calculate should behave similar to integer. (from community post)
Screenshots
xref

Additional info
Internal discussion: https://chat.kobotoolbox.org/#narrow/stream/13-Enketo/topic/Calculate.20in.20dynamic.20repeat/near/18082
Generated XML from XLSForm resulting in issue:
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <h:head>
        <h:title>Bug Edit01</h:title>
        <model odk:xforms-version="1.0.0">
            <itext>
                <translation default="true()" lang="English (en)">
                    <text id="/data/StopInterview:label">
                        <value>StopInterview</value>
                    </text>
                    <text id="/data/HHMTotal:label">
                        <value>How many persons are usually living in this household, in TOTAL?</value>
                    </text>
                    <text id="/data/IV_RP:label">
                        <value>INDIV</value>
                    </text>
                    <text id="/data/IV_RP/WorkPayment:label">
                        <value>What was the value of NAME's last PAYMENT (income) for work activities, in cash and kind? Total In USD</value>
                    </text>
                    <text id="/data/IV_RP/DaysPayment:label">
                        <value>How many DAYS in total did NAME work for this payment?</value>
                    </text>
                    <text id="/data/IV_RP/WorkPaymentPerDay:label">
                        <value>WorkPaymentPerDay</value>
                    </text>
                    <text id="/data/IV_RP/WorkPaymentChk:label">
                        <value>CHECK : NAME earned about <output value=" ../WorkPaymentPerDay "/> USD per day of work? Is this correct?</value>
                    </text>
                </translation>
            </itext>
            <instance>
                <data id="Bug_Edit01" version="2021012805">
                    <StopInterview/>
                    <HHMTotal/>
                    <IV_RP_count/>
                    <IV_RP jr:template="">
                        <WorkPayment/>
                        <DaysPayment/>
                        <WorkPaymentPerDay/>
                        <WorkPaymentChk/>
                    </IV_RP>
                    <IV_RP>
                        <WorkPayment/>
                        <DaysPayment/>
                        <WorkPaymentPerDay/>
                        <WorkPaymentChk/>
                    </IV_RP>
                    <meta>
                        <instanceID/>
                    </meta>
                </data>
            </instance>
            <bind nodeset="/data/StopInterview" type="int"/>
            <bind nodeset="/data/HHMTotal" relevant=" /data/StopInterview  = 2" required="true()" type="int"/>
            <bind calculate=" /data/HHMTotal " nodeset="/data/IV_RP_count" readonly="true()" type="string"/>
            <bind nodeset="/data/IV_RP" relevant=" /data/HHMTotal  > 0 and  /data/StopInterview  = 2"/>
            <bind nodeset="/data/IV_RP/WorkPayment" required="true()" type="int"/>
            <bind nodeset="/data/IV_RP/DaysPayment" required="true()" type="int"/>
            <bind calculate="round( ../WorkPayment  div  ../DaysPayment , 0)" nodeset="/data/IV_RP/WorkPaymentPerDay" relevant=" ../DaysPayment  > 0" type="string"/>
            <bind nodeset="/data/IV_RP/WorkPaymentChk" required="true()" type="string"/>
            <bind jr:preload="uid" nodeset="/data/meta/instanceID" readonly="true()" type="string"/>
        </model>
    </h:head>
    <h:body>
        <input ref="/data/StopInterview">
            <label ref="jr:itext('/data/StopInterview:label')"/>
        </input>
        <input ref="/data/HHMTotal">
            <label ref="jr:itext('/data/HHMTotal:label')"/>
        </input>
        <group ref="/data/IV_RP">
            <label ref="jr:itext('/data/IV_RP:label')"/>
            <repeat jr:count=" /data/IV_RP_count " nodeset="/data/IV_RP">
                <input ref="/data/IV_RP/WorkPayment">
                    <label ref="jr:itext('/data/IV_RP/WorkPayment:label')"/>
                </input>
                <input ref="/data/IV_RP/DaysPayment">
                    <label ref="jr:itext('/data/IV_RP/DaysPayment:label')"/>
                </input>
                <trigger ref="/data/IV_RP/WorkPaymentChk">
                    <label ref="jr:itext('/data/IV_RP/WorkPaymentChk:label')"/>
                </trigger>
            </repeat>
        </group>
    </h:body>
</h:html>

Related issues

Likely related to #661

xref additional community post https://community.kobotoolbox.org/t/error-message-seen-when-trying-to-edit-a-submission/17869/


feat: add github client dedicated for ci

What
This PR adds a new github client to interact with CI repo.
Why
The CI repo for Rust belongs to a different organization than the original repo, since we can't create a fork of a repo inside the same organization. However, Github doesn't support cross-orgs operations with Github App. We have to use another mechanism to authenticate with the CI repo.
How
This PR introduces a new Github client, authenticated with Personal Access Token. This is the same method used by homu (ref)

@bors ping

@bors ping

@bors ping

@bors ping

Oh, crap, that is unfortunate. I'll discuss this with the infra team.

The CI repo for Rust belongs to a different organization than the original repo, since we can't create a fork of a repo inside the same organization.

Is that still the case? Based on https://github.com/github/roadmap/issues/330 and https://github.blog/changelog/2022-06-27-improved-innersource-collaboration-and-enterprise-fork-policies/ I would have assumed this is now possible.

I'm not sure. Need someone with admin permission in rust-lang org to test this 😅


Vulnerability roundup 106: gitit-<IP_ADDRESS>: 1 advisory [7.5]

search, files

[ ] CVE-2021-38711 CVSSv3=7.5 (nixos-21.05)

CVE details
CVE-2021-38711
In gitit before <IP_ADDRESS>, the Export feature can be exploited to leak information from files.

Scanned versions: nixos-21.05: 6120ac5cd20.
Cc @Profpatsch
Cc @sternenseemann

Fixed in unstable, but does need a backport to stable, right.


Auto formatters used

Reference from #314
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

/js/*.js

https://marketplace.visualstudio.com/items?itemName=DotJoshJohnson.xml

/locale/*.xml

https://marketplace.visualstudio.com/items?itemName=aeschli.vscode-css-formatter

/styles/*.css

VSCode built-in formatter

/index.html

there's a mistake here, let me try again thanks


Desktop Sharing

Hello,
can the program peer-calls share the desktop ?
I am looking for a program that can forward the desktop
or the recording of an external webcam.
This program is for a school.
Sincerely, Stephan

I just added experimental support for desktop sharing in v3.0.4. I would appreciate if you could test it and let me know does it work for you.

Hi there,
Thank you for your prompt reply.
I support a school in my free time.
http://www.oberschule-bergstadt-schneeberg.de/
We expect a corona epidemic in Germany.
I am looking for a way to a small extent
to convey knowledge via the Internet.
Desktop sharing and simplifying the URL is important!
One question please.
How many people can use peer calls at the same time?
Are there any practical experiences?
Sincerely yours
Stephan

Thanks for sharing the details. In the current implementation of peercalls, the peers create a mesh network (each peer sends audio/video data to every other peer).
If peers are unable establish direct connections, and a relay (TURN) server is configured, it will be used instead. This means that the video streams willl be routed through this server.
For example, if there are 3 peers using the TURN server, the TURN server would use the bandwith for a total of 6 video streams. To generalize, if N peers are sending and receiving video, there will be a total of N*(N-1) video streams being sent and received.
I am hosting my own TURN server on peercalls.com, but I do not have the budget for a powerful server so it could potentially run out of bandwidth in a worst-case scenario where there are multiple rooms with 20+ users, with each peer using the relay server. Were you thinking of self-hosting, or using an existing cloud solution?
That said, someone has already asked a question about using peercalls for rooms with many users in issue #37.  It seems like the best way to support lots of users would be to use a MCU (multipoint conferencing unit) or a SFU (selective forwarding unit) server, such as kurento. To make peercalls working with such a server, some changes would need to be made in the signalling logic. I am not sure how much work that is at this point.
As for simplifying the URL, users can create a room with any name by modifying the URL part after the /call/ part. For example, this is a valid call URL: https://peercalls.com/call/DieSchule.
Here's some additional links to learn more about WebRTC:

https://temasys.io/six-things-need-know-webrtc-sfus/
https://bloggeek.me/webrtc-multiparty-video-alternatives/
https://bloggeek.me/turn-public-ip-address/
https://www.html5rocks.com/en/tutorials/webrtc/infrastructure/
https://github.com/coturn/coturn

Hope this helps! Good luck in fighting the coronavirus. I am currently based in Croatia and we have an increasing number of cases as well.

Hello,
i think i will use a virtual server.
The hoster is then.
https://www.hosteurope.de/Server/Virtual-Server/
'starter' or 'starter plus' Server.
It will be an Ubuntu server.
I want to rebuild the Ubuntu server.
Docker and docker-compose are to be installed.
I tested this on a local server.
2 things are important to me.

We want to send the URL to the students using WhatsApp.

I can imagine the following URL.
http.//meiDomain/room/myRoomNumber
I saw
https://appr.tc/
as an example.

Desktop sharing must be possible.
It should be possible to switch between desktop sharing and webcam.

When I have converted a room into an online studio, I send some pictures.

How many simultaneous classes and users per class?

We want to send the URL to the students using WhatsApp. I can imagine the following URL.
http.//myDomain/room/myRoomNumber
I saw https://appr.tc/ as an example.

I added an input field in v3.0.5 which allows the users to specify a custom room name:

Desktop sharing must be possible.
It should be possible to switch between desktop sharing and webcam.

As I mentioned previously, sharing the desktop is already possible since v3.0.4 and webcam does not need to be disabled for this:


Trailing whitespaces

Hi David,
I quite liked your package and decided to use it as a replacement for language-gfm. However, after a short while I noticed that the trailing spaced started to disappear on save. This is because of a default behaviour in Atom's workspace package. I tried to disable this by doing what they suggest in readme:
config.cson:
"*":
  ...
  whitespace:
    ".text.md":
      removeTrailingWhitespace: false

Tried a few other ways of expressing my intention in the config, but none worked. Unfortunately, I had to give up and return to gfm, since restoring the whitespaces before every commit is a pain. Could you please update the docs or implement something to make it possible to keep the spaces before the newline characters?
I imagine this can be possible already. In this case the path to the solution is probably too complex or unclear.

I think the "error" is in your config.cson. The setting doesn't seem to work as part of the * scope, but it does (for me) in the .md.text scope. If you scroll quite far down in config.cson you'll find that particular key there, otherwise add it yourself. The correct config should then be (or at least, this is what works for me):
".md.text":
  whitespace:
    removeTrailingWhitespace: false

Make sure that there is no leading whitespace, otherwise you're in some other scope.

Finally got it, thank you! The example (if you decide to add it later on) should probably include the default * scope too.
"*":
  # all current config
".md.text":
  whitespace:
    removeTrailingWhitespace: false

My confusion was caused by the lack of context in the example. Might be worth adding it to save others from the same pitfall.

Thanks, I will, and it's silly that your own solution didn't work. Anyway, good luck, and I hope I've regained a user! ; )

Hi, today I faced the same problem and hopefully I found your solution. Thanks a lot!
However, the solution is hidden in a closed issue.
Wouldn't it be good to add a note in the README ? Either to link to that post or to a clear message directly ?

@Morikko Very true, and I suppose I had planned to add it to the FAQ. I'll re-open this and add it there, and possibly extend the README to include at least (some of) the topics covered in the FAQ.

Ah Yes!  Into the FAQ, it would be great.

Update FAQ and README


Parameter type should be NRIVkSemaphore here

https://github.com/NVIDIAGameWorks/NRI/blob/0f3c47b0525a97e50bf8cc532b24a4d0794ed8a4/Source/VK/DeviceSemaphoreVK.cpp#L43

Many thanks! Again :) Will be fixed.

I fixed it locally.  NRIVkFence should be used instead of NRIVkSemaphore.

Fixed. Thanks for your help!


feature:TCC mode supports tcc annotation marked on both interface and implementation class

[ ] I have registered the PR changes.

Ⅰ. Describe what this PR did
TCC注解支持添加在实现类及其方法上也生效
Ⅱ. Does this pull request fix one issue?

无
Ⅲ. Why don't you add test cases (unit test/integration test)?
不需要
Ⅳ. Describe how to verify it
新feature
Ⅴ. Special notes for reviews

Codecov Report

Merging #4479 (ce52b09) into develop (99fc37d) will increase coverage by 0.31%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             develop    #4479      +/-   ##
=============================================
+ Coverage      48.96%   49.27%   +0.31%
- Complexity      4030     4045      +15
=============================================
  Files            731      731
  Lines          25323    25337      +14
  Branches        3137     3139       +2
=============================================
+ Hits           12399    12485      +86
+ Misses         11596    11526      -70
+ Partials        1328     1326       -2

Impacted Files
Coverage Δ

...ava/io/seata/common/util/LowerCaseLinkHashMap.java
0.00% <0.00%> (ø)

...va/io/seata/rm/datasource/exec/DeleteExecutor.java
83.33% <ø> (ø)

...java/io/seata/spring/tcc/TccActionInterceptor.java
13.46% <0.00%> (-0.54%)
:arrow_down:

.../rm/tcc/remoting/parser/DefaultRemotingParser.java
23.25% <0.00%> (-0.56%)
:arrow_down:

...rm/tcc/remoting/parser/LocalTCCRemotingParser.java
51.72% <0.00%> (-5.97%)
:arrow_down:

...source/AbstractDataSourceCacheResourceManager.java
42.85% <0.00%> (-42.86%)
:arrow_down:

...er/src/main/java/io/seata/server/ServerRunner.java
50.00% <0.00%> (-15.39%)
:arrow_down:

.../main/java/io/seata/rm/BaseDataSourceResource.java
31.14% <0.00%> (-3.28%)
:arrow_down:

...o/seata/server/coordinator/DefaultCoordinator.java
55.39% <0.00%> (-0.72%)
:arrow_down:

...erver/storage/file/session/FileSessionManager.java
52.94% <0.00%> (+0.65%)
:arrow_up:

... and 6 more

第一处空指针：

第二处空指针：

麻烦请签署Seata社区cla协议：https://cla-assistant.io/seata/seata?pullRequest=5164


Added tests for the server class.

Started on creating unit tests for the Server class. Since pretty much all the methods are private, I have proxied the Server class in order to access the methods directly.
This is not an ideal solution, but it enables deeper testing (and therefore safer refactoring) without hacking the API.
As I raised in issue #23, it would be better to separate the encoder and decoder methods.

A nice simply start for the testing the server!


Integration With CucumberJs

Are you requesting a feature or reporting a bug?
Feature
What is the suggested behavior?
TestCafe should be able to run tests written using the Cucumber syntax out of the box. This includes correct error handling and support for all TestCafe features (multiple browsers, screenshots, videos, etc).
Additional Details

Current behavior
How to reproduce
I have attached a sample program to help with the above...which can be found here
testcafe-cucumber devExpress.zip
npm install
npm run e2e-test

Test code
const errorHandling = require('./ErrorHandler');
const testControllerHolder = require('./ControllerHolder');

fixture('fixture');

test('test', testControllerHolder.capture.bind(testControllerHolder))
  .after(t => errorHandling.ifErrorTakeScreenShot.bind(errorHandling)(t));

Results

UnhandledPromiseRejectionWarning on all TestCafe versions when failed assertion occurs within Role context
Warning: Was unable to take a screenshot due to an error rejects the promise as discussed here #2444 (this happens with v0.20.0 to the latest thus causing the flow within cucumberjs to be broke)

System information

operating system: macOS High SIerra 10.13.6
testcafe version: v0.22.0
node.js version: v8.11.3

Original inquiry
Hello there,
I have been using testcafe for about 2 months. It is super tool but it's shame it's not officially supported with cucumberjs as it would open the tool to a bigger audience imho. That said I found this edition
https://github.com/rquellh/testcafe-cucumber
I made some further tweaks to that and it pretty much does everything I want it do do.
That said, I'm seeing one or two minor issues mentioned above when I'm testing with the latest edition, namely unhandled exceptions. I'm wondering can I add anything to the the testcafe script so that I can handle those aforementioned unhandled exceptions above and exit gracefully so the flow continues naturally.
I know cucumberjs isn't officially supported but it is a requirement for the project I'm working on atm so I'd appreciate any guidance on any of the above. Many thanks in advance. Any ideas when the official support is coming btw?

Update to this thread
I have updated testcafe to "0.19.2" and item 1) is no longer an issue for me. However that said item 2) is a significant blocker as I can't move past version "0.19.2" because of that.
I did some updates to the sample program used to reproduce this behaviour. It is attached. Let me know if you have any questions.
testcafe-cucumber 10Sept2018.zip

Hi @bhreinb! What browsers do you use for testing? If you test with Chrome and Firefox, you shouldn't have problems with the page area warning on<EMAIL_ADDRESS>Also, please note that you don't have to call t.takeScreenshot manually for taking screenshots when an error happens in your tests. I see that you already use Screenshot on Fails feature (in the cucumber/hooks.js file), but if you need to customize the path where these screenshots will be saved, you can specify a screenshot path pattern as the third argument of the .screenshots method.

Hi @AndreyBelym
Thanks for your response. I test against a wide range of browsers, for example chrome, firefox, safari, edge & ie. I also wanted to test with opera but that seems a bit unstable for now and not a high priority compared to the others I mentioned.
In terms of that warning "Was unable to take a screenshot due to an error rejects the promise" I have narrowed down the problem to an issue on mac.

Attached is my setup on mac which is connected to 2 monitors. When the runner launches the browser on the mac display it runs to completion every time. However, when the runner launches chrome for example on either of the secondary monitors it throws that unhandled exception error every time. As mentioned above this seems to only occur on Mac as I tested this with a colleagues setup (which is windows). Bizarre I know 👎.  Hope this helps with that. Let me know if you need more detail.
When you say I shouldn't be taking screenshots manually, how do I accomplish this if I move way from that? The workflow currently is

Create the runner and capture the testController instance at the {Before} hook stage
Run testCafe commands bound to the testController instance at the {Given,When,Then} steps stage
Check for testCafe errors, take a screenshot and attach image at the {After} hook stage

Screenshots weren't been generated for me unless I explicitly have this line
  .after(t => errorHandling.ifErrorTakeScreenShot.bind(errorHandling)(t));
in the testCafe script. Appreciate any guidance on the above.

Hi @AndreyBelym
Any thoughts on the above?
Ideally, I'd like to move away from I'm doing in step 1), that been creating the runner & capturing in the Before step but rather do this in the BeforeAll Step. Reason been there is a significant performance hit doing this especially when integrated with Saucelabs or Browserstack. Moving to the BeforeAll stage however introduces something else as detailed in this thread
https://testcafe-discuss.devexpress.com/t/testcafe-and-cucumber-js/207/24
so if you have any suggestions to allow the test run to continue when a test scenario fails (i.e. an ability to reset the assertion on the fly via an API call I'd really really appreciate this).
Btw any idea when official support for cucumberjs is coming?

https://stackoverflow.com/questions/57214388/debug-configuration-in-webstorm-for-cucumberjs-and-testcafe-based-project

please implement cucumber integration with test cafe as soon as possible . it will definitely 2x users of test cafe

Can you give an indication around what time this feature will be implemented? I am a fan of testcafe and I really love your work :). I am currently doing a project and they would like to have cucumber layer

Hello @Nofit ,
Thank you for the feedback, but I cannot give you any estimates or time frames as to when this feature will be implemented. We still have plans to introduce it though. We will update this thread once we have any news regarding this.

Any news regarding the integration of BDD - CucumberJs? We are starving and we would love to use testcafe in combination with CucumberJs. Please please please prioritize this higher

We will update this thread once we have any news regarding this.

Any Update on BDD - CucumberJs ?

You can already use TestCafe with CucumberJs - through the plugins (see the Cucumber Support section in https://github.com/DevExpress/testcafe#plugins):

gherkin-testcafe (by @kiwigrid) - run your Cucumber tests with TestCafe as a backend. Requires CucumberJS.
testcafe-cucumber-steps (by @Marketionist) - provides predefined Cucumber steps for gherkin-testcafe.

@Marketionist I think most people are aware that there are third party plugins for this feature, that is not an issue. But people would prefer a Cucumber integration with Testcafe that guarantees all features provided by Testcafe are still there, working, and not lost. I experimented with third party plugins for Cucumber integration in the past for a project and each plugin had  flaws: lost features and/or information. Not losing functionality, is a fundamental requirement for an integration in my opinion.
This is what the original poster mentioned:
"TestCafe should be able to run tests written using the Cucumber syntax out of the box. This includes correct error handling and support for all TestCafe features (multiple browsers, screenshots, videos, etc)."
In my case, if the integration does not respect these requirements, then I won't use it. It's simple as that. I use a lot of features from Testcafe and I need them ALL, I can't afford to lose them for an integration. So for now, we cope without CucumberJs. I am willing to use third-party plugins, if they satisfy the conditions and the conditions are somewhat stated in the original poster's comment.

@Nofit I understand your point and I would also love to see Cucumber native support in TestCafe.
Just as a suggestion - gherkin-testcafe can be worth trying as it uses the same .testcaferc.json config file as TestCafe itself, so pretty much all options are there and can be used. It supports all TestCafe features (like multiple browsers, screenshots, videos, etc).
I agree that it's not "Cucumber syntax out of the box", but I'd say that it's the closest to "Cucumber syntax with 1 additional package".

@Marketionist  I remember I tried this plugin before and it is the best plugin between other third-party integration plugins in my opinion, but there was still something missing in it for me. Maybe it was the report format that I didn't like or the gherkin syntax, I am not sure. But I'll give it a shot again with your interesting plugin (which seems to make the syntax more complete), thank you for the suggestion! I hope there is also a step verification so that each cucumber-step is evaluated with a pass or fail in the report. That would be nice, but anyway, I'll try it out first.

I hope there is also a step verification so that each cucumber-step is evaluated with a pass or fail in the report.

@Nofit Have you had any lack with cucumber-steps in the report?

I hope there is also a step verification so that each cucumber-step is evaluated with a pass or fail in the report.

@Nofit Have you had any lack with cucumber-steps in the report?

https://stackoverflow.com/questions/65190893/running-two-user-stories-in-the-same-scenario-in-cucumber-gherkin

https://stackoverflow.com/questions/69269832/any-official-support-for-testcafe-cucumber-integration

https://stackoverflow.com/questions/69935750/typeerror-err-invalid-arg-type-the-from-argument-must-be-of-type-string

Hi folks,
We decided to focus on core TestCafe features. We do not plan to implement the built-in integration with Cucumber.
TestCafe already has integrations with Cucumber: https://www.npmjs.com/search?q=testcafe%20cucumber. Some of them are quite popular and actively developed. So, we see that the community is successfully developing this direction on its own, and our decision will not lead to its stagnation.


en: add config change example

What is changed, added or deleted? (Required)
Add an example of updating task config.
Which TiDB Data Migration (DM) version(s) do your changes apply to? (Required)

[x] master (the latest development version, including v2.0 changes for now)
[x] v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?

This PR is translated from: https://github.com/pingcap/docs-dm/pull/43
Other reference link(s):

@ran-huang Comments addressed. PTAL again~


npm install fails 0.3.6 fails

I get this output when trying to npm install 0.3.6. 0.3.5 does the same too. 0.3.4 works ok.
Running npm install --save-dev --save-exact grunt-scss-lint works ok, it's only when it's being installed from package.json.

<EMAIL_ADDRESS>preinstall /home/mbartlet/code/app/node_modules/grunt-scss-lint
bundle
'''
sh: 1: bundle: not found
npm ERR<EMAIL_ADDRESS>preinstall: bundle
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script.
npm ERR! This is most likely a problem with the grunt-scss-lint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bundle
npm ERR! You can get their info via:
npm ERR!     npm owner ls grunt-scss-lint
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-37-generic
npm ERR! command "/home/mbartlet/.nvm/v0.10.32/bin/node" "/home/mbartlet/.nvm/v0.10.32/bin/npm" "install"
npm ERR! cwd /home/mbartlet/code/app
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
'''

That looks like it's installing 0.3.5.
On 1 Apr 2015 18:02, "Mary Bartlett"<EMAIL_ADDRESS>wrote:

I get this output when trying to npm install 0.3.6. 0.3.5 does the same
too. 0.3.4 works ok.
<EMAIL_ADDRESS>preinstall
/home/mbartlet/code/app/node_modules/grunt-scss-lint
bundle
'''
sh: 1: bundle: not found
npm ERR<EMAIL_ADDRESS>preinstall: bundle
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script.
npm ERR! This is most likely a problem with the grunt-scss-lint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bundle
npm ERR! You can get their info via:
npm ERR! npm owner ls grunt-scss-lint
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-37-generic
npm ERR! command "/home/mbartlet/.nvm/v0.10.32/bin/node"
"/home/mbartlet/.nvm/v0.10.32/bin/npm" "install"
npm ERR! cwd /home/mbartlet/code/app
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
'''
—
Reply to this email directly or view it on GitHub
https://github.com/ahmednuaman/grunt-scss-lint/issues/103.

true, I hadn't noticed that! I'll delete the cache and try again

Cool :+1:

Much better now :) thanks


Add files via upload

@ImPzyc0 avh-gymnasium.txt I am sorry, I have to close the request without merging, because you made a mistake in a request and did not specify any filepath. Please ensure that you are familiar with this repository rules located at the bottom of this page and make a new correct request. Thank you for your understanding!


Not work on IE 11

Not work on IE 11
Hi,
$.fn.daterangepicker does not work for me on IE 11.
Condition

Using input fields for daterange from/to
Each fields are filled by date like '2015/10/01'
Calling $.fn.daterangepicker by calendar opener

Behavior

Fields are filled by "NaN/NaN/NaN"
Year and month on the calendar are described by "NaN/NaN"
Dates of calendar are not shown

My env

OS X Yosemite 10.10.5
Win 7(on VMWare Fusion 6.0.6)
IE 11.0.9600.18015

Thank you.

Thank you!!!


request to reopen issue #182

Hi, would it be possible to reopen issue #182 'Terminal unresponsive when creating new terminal'. I was unable to respond the the last comment, and it seems the issue is still not resolved. I tested by installing in other environments and posted an update in that thread. Thanks

I saw that you answered there without problems. Please wait until @steff456 answers you there.


Disable the argument max_execution

It's not clear how to disable this flag.
The documentation shows setting the value to -1 can disable it.

https://github.com/tdurieux/EnergiBridge/blob/513c41662932d8993b3c1c06cbd5835508d6bb44/src/main.rs#L42
https://github.com/tdurieux/EnergiBridge/blob/513c41662932d8993b3c1c06cbd5835508d6bb44/README.md?plain=1#L92

I tried these commands

./energibridge --max-execution -1 -- docker pull nginx received this error error: a value is required for '--max-execution <MAX_EXECUTION>' but none was supplied
./energibridge --max-execution -- -1 -- docker pull nginx received this error

error: unexpected argument '-1' found

  tip: to pass '-1' as a value, use '-- -1'

Usage: energibridge [OPTIONS] [COMMAND]...

Fixed doc


Imported types doesn't seem to work

types.js:
export type Settings = {
  port: number
}

settings.js:
import type {Settings} from './types';

let settings : Settings = {
  port: 'string'
}
module.exports = settings;

I'd expect this to produce an error, but running flow or flow check results in 'No errors!'

Simplifying it even further:
export type Port = number;

import type {Port} from './types;
let port : Port = 'string'

Still no error produced with Flow 0.49.1

Do you have // @flow on top of your files?

Ah, facepalm. Not in types.js...
However, I'd expect flow to produce an error if it can't find a referenced type?

I think there is an issue for that somewhere


Initial pull

@OneOfOne are you referring to the js files within the testing dir? I was a little torn about that as well, I figured it would be the path of least resistance if someone wanted to test locally.

Thanks @OneOfOne  and @shahzilabid! :) :100:


Chapter 7, 3rd edition - IAM role required to create new AWS account failed to allow login acces

I observed that the IAM role to create a new AWS user would require the addition a policy as specified in steps 11 - 21 in this doc
I feel these two tasks should also be added to the Working with multiple AWS accounts section where the switch role is explained rather than when after it has been implemented to avoid confusing the of reader

I'm not sure I follow; would you mind providing a bit more context?

Which IAM role are you referring to?
What part of the book exactly?
What error did you get?
And what did you do to fix it?


Exclude some source files from the libk

We use __is_libk to control what goes where (i.e. libc only, libk only or both) but now we have source files that contain code for libc only and gcc warns us:
warning: ISO C forbids an empty translation unit [-Wpedantic]

We should exclude source files (.c) we know shouldn't be in the libk given that libk should be a subset of libc.

I don't know if that is still the case but the new(-ish) build system should allow us to only select the source files we want for libc and libk in a distinct manner.


Recursive function defined inside seq expression is null

visit can be null being compiled with FSharp.Compiler.Tools 4.1.27. It works OK compiled with version 4.1.23:
let topologySort (dependencies: 'a -> 'a seq) (comparer: 'a IEqualityComparer) (nodes: 'a seq): 'a seq =
        if isNull dependencies then nullArg "dependencies"
        if isNull nodes then nullArg "nodes"
        if isNull comparer then nullArg "comparer"
        seq {
            let visited = HashSet comparer

            let rec visit node =
                seq {
                    if visited.Add node then
                        let deps = dependencies node
                        for pN in deps do
                            if isNull visit then failwith "!!" // <---- here we go
                            if isNull pN then failwith "!!!"
                            yield! visit pN
                        yield node
                }
            for node in nodes do
                yield! visit node

OK, it seems to be fixed https://github.com/Microsoft/visualfsharp/issues/3743


langton-ant: Put in some sane limits

Copilot

🤖 Generated by Copilot at f9da9be
Summary
🚀🛠🧹

This pull request optimizes and fixes the langtons_ant app, which simulates a cellular automaton on the Tidbyt display. It removes unnecessary code, reduces resource usage, validates user input, and corrects a logic error.

Oh we're the crew of the langtons_ant ship
And we code with skill and pride
We've trimmed the sails and fixed the bug
And we've made the app more spry

Walkthrough

Fix bug that used wrong rule for ant movement by adding break statement to loop (link)
Improve performance and responsiveness by reducing DEFAULT_FRAMES_PER_VIEW from 500 to 200 (link)
Prevent app from crashing or displaying poorly by capping num_frames and num_ants parameters at reasonable values and adding comments (link)
Simplify code by removing unused time module import (link)

CI is failing because this app is still way too slow. We wouldn't allow it as a new app, but going to merge this because it is actually an improvement over the status quo.


Allow localhost to test local api running on your host

Remove
        if len(test_target_container_names) == 0:
            # no bridge needed, since there are not "services under test" deployed
            # and therefore we are testing something deployed externally
            bridge_name = None

from raft_local.py because your system under test might be running directly on your host, not inside a docker image (own or RAFT). Setting bridge_name from 'host' to None disables localhost for docker.

Thank you, I will add your fix and we should have new release very soon

Setting network to "host" works. Going to use "host" instead of None


[Feature] Alpha / Beta / R-Squared / Correlation / Covariance indicators

Rolling alpha/ beta indicators. Probably along with covariance and correlation. As part of flexible portfolio management ranks and relationships.
Alpha and beta are the most overlooked professional indicators in the so called popular "technical analysis".

MAMA & FAMA WIP at https://github.com/QuantConnect/Lean/pull/2987

Closing as multiple issues in 1.
Will created dedicated issues with 1 for each indicator.


Add cycle number and charge/discharge tags in solution data

Summary
Automatically provide information on cycle number and whether the data describe charge / discharge
Motivation
After running an experiment, some data post-processing is needed to append information on cycle number and charge/discharge, which can be useful for further data analysis. These features could be automatically extracted and included in sol.data
Additional context
Using Pandas and Numpy, I have added a couple of lines to add these features after importing the data into a DataFrame, although I do realize they may not fully describe all existing use cases for more complex charge/discharge cycles:
df["Charge/Discharge"] = np.where(df["Current [A]"] >=0, "D", "C")
df["Cycle number"] = np.ceil(df["Charge/Discharge"].ne(df["Charge/Discharge"].shift()).cumsum() / 2).astype("int32")

The way solution.data is constructed is not super straightforward, it has to evaluate pybamm symbols (variables). We could add a variable which is the sign of the current. Adding a variable for cycle number is harder

Understood, thank you for the quick feedback! Cycle number is visible when running a simulation, could that be appended somehow to the final data? The workaround I have found is easy to implement in the scenario I deal with, but I understand a general solution may be less straightforward.

It can't be appended to solution.data, it would be too hacky and cause weird errors elsewhere if someone tried to use it like other variables. But post-processing using solution.cycles is easy for a general solution. For example, you can use a for loop, something like
df_all = ... # initialize df
for cycle_number, cycle_data in enumerate(solution.cycles):
   df = ... # construct new df from cycle_data
   df["Cycle number"] = cycle_number + 1 # set the cycle number starting at 1
   df_all = ... # append new df

In practice I find that the point of labeling cycles is to be able to easily split them; solution.cycles is already split for you. What is the use case for having all the data in a single df with cycle numbers labelled?

It can't be appended to solution.data, it would be too hacky and cause weird errors elsewhere if someone tried to use it like other variables. But post-processing using solution.cycles is easy for a general solution. For example, you can use a for loop, something like
df_all = ... # initialize df
for cycle_number, cycle_data in enumerate(solution.cycles):
   df = ... # construct new df from cycle_data
   df["Cycle number"] = cycle_number + 1 # set the cycle number starting at 1
   df_all = ... # append new df

In practice I find that the point of labeling cycles is to be able to easily split them; solution.cycles is already split for you. What is the use case for having all the data in a single df with cycle numbers labelled?

I agree the solutions you have listed are useful for analysing the data and are definitely applicable in my case.
What I'm trying to get at, is to have the final data coming from, e.g., an ageing simulation, to resemble as much as possible data coming from a battery cycler, where usually cycle number and charge/discharge labels are present in the raw file.
I saw that the cycle number is shown when the simulation is running and thought it could be easy to include that among the other variables right off the bat.
Thank you anyway for the helpful remarks!


Any other resources?

Watched the video before looking at the repo.  Out of curiosity, how can we actually use the optimal keyboard layout? Currently, I'm using a Mac.  Are there any discussion pages, wikis, or extra documentation we can read?

https://software.sil.org/ukelele/
A quick Google search points to this tool, and there seem to be a large number of tutorials available on how to use it.

@ZebTheWizard You can get a mechanical keyboard that can use QMK or it's GUI version called VIA. Then you can move the keys to anywhere you want or have layers with different layouts.

I used sharpkeys, but thats windows unfortunetely. https://apps.microsoft.com/detail/XPFFCG7M673D4F?hl=en-US&gl=US


Update Terms of Service (ToS)

Updates have been made to the Terms of Service (ToS) for SimpleReport.
Can we update the Terms of Service before the end of this sprint? I have posted the new ToS in Slack - https://usds.slack.com/archives/C019PRYMR0Q/p1634775786347300

Emailed our CDC contact to get an ETA. Stay tune :-)

@emmastephenson and @nickclyde Spanish translation came in today. I posted it to the SR channel.


Add a CI configuration for the B extension

With work on the B extension landing we should add a CI configuration that tests this config. It can use the new framework added by @GregAC in #714.

Maybe we can have a config with all of the experimental features.

Could even write a few basic self-checking tests for it? A good excuse to add a new piece of CI which runs a given set of binaries and reports pass/fail based on some success criteria?

There are some tests in the bitmanip repository, including tests that look like they could work with the riscv-compliance framework at https://github.com/riscv/riscv-bitmanip/tree/master/compliance/rv32b. Maybe we can try dumping this folder into the compliance test suite and give it a try?

But a first step is to at least synthesize code with RV32B enabled to ensure that we don't regress in lint or produce code that doesn't even synthesize any more :-)

I think @ganoam has already a couple of such self-checking tests as he started the implementation before RISCV-DV had support for Bitmanip.

Yes, I do have a set of tests, but they are not really self-checking.
What I do is I synthesize a 'simple system' and let it run a set of bitmanip instructions. I write out the operands and the result to a log file, and check the result by reading the log and running the same commands on the host pc.
You can have a look at it here. I did not antizipate it being used by anyone but me, so it is not very cleanly organized, and it features paths that are specific to my machine. It uses the common.mk file used for the simple system example in a slightly modified form. (most probably breaking the simple system example, I have not checked.)
To run tests:

adapt the paths to your B-extension compiler ../common/common.mk
synthesize the simple system example
comment or uncomment the instructions you want in test_zbb.c and test_zbt.c (leaving all of them in may take a long time)
run make distclean and make verify.

The test result will be written to [...]/bitmanip_test/out/report.txt


repeatSet and shuffle button not work in Chinese environment

Description
I find that repeat & shuffle button doesn't work in Chinese environment.
I think these scripts may not work in other language environment.
macOS version
v10.14.6 (18G87)
Fix
These changes only work in Chinese environment:
repeatSetAll:
tell application "System Events" to tell process "iTunes"'s menu bar 1's menu bar item "控制"'s menu 1's menu item "重复"'s menu 1
	perform action "AXPress" of menu item "全部"
end tell

repeatSetOff:
tell application "System Events" to tell process "iTunes"'s menu bar 1's menu bar item "控制"'s menu 1's menu item "重复"'s menu 1
	perform action "AXPress" of menu item "关"
end tell

repeatSetOne:
tell application "System Events" to tell process "iTunes"'s menu bar 1's menu bar item "控制"'s menu 1's menu item "重复"'s menu 1
	perform action "AXPress" of menu item "单曲"
end tell

shuffleOff:
tell application "System Events" to tell process "iTunes"'s menu bar 1's menu bar item "控制"'s menu 1's menu item "随机播放"'s menu 1
	perform action "AXPress" of menu item "关闭"
end tell

shuffleOn:
tell application "System Events" to tell process "iTunes"'s menu bar 1's menu bar item "控制"'s menu 1's menu item "随机播放"'s menu 1
	perform action "AXPress" of menu item "开"
end tell

Does you or someone know how to handle with unicode characters in Typescript? I run into a unicode problem, that Visual Studio Code doesn't recognise the correct scrips.

Sorry, I have no idea about unicode.
I update to the newest version, the Chinese characters changed (e.g. "控制" became "??") . All the Chinese characters became "?", and that caused these scripts doesn't work.

Fixed.
Problem seems to be by copy and pasting it into Visual Studio Code and saving the file. Have now edited the scripts with TextEdit and everything works fine.
Released in version 0.14.1


Support HEIF, HEIC upload

Many Android phones made by Apple/Samsung/Nokia take pictures in the HEIF/HEIC format by default.
My understanding is that this format is not accepted on Wikimedia Commons.
The app should ideally allow such pictures to be uploaded, for instance by converting them with as few loses as possible, including metadata especially location.
Or should we save our resources and skip the HEIF format because it is kind of losing to the more open AVIF format?
https://en.wikipedia.org/wiki/AVIF

https://softwarerecs.stackexchange.com/questions/85335/gnu-gpl-compatible-android-library-to-convert-heic-heif-to-jpg

Does anyone have data on the prevalence of these formats on Android phones, compared to JPG?

@nicolas-raoul My view is that we should be using something that is 'open', but more importantly, it needs to be something that Commons will permit. This page may help. We need to avoid the overhead of converting from one file format to another ('transcoding'). If the user/ contributor chooses to transcode, that is up to them, but we should avoid making this a function of the app.
Thanks,
Chris.


Offline banner

Package / App
MAD Components
Description
In mobile apps it's good to know why some functionality might not work as intended, and this could be due to being offline. Having a banner telling the user that the mobile device is disconnected from the internet is a good thing to have on most screens when this happens.
Alternatives

Offline banner telling the user that the device is offline.

A toast telling that the user is offline which expands on press giving the user more details about what happened.

Either way I think this should be shown until the user dismisses it or it should not be dismissible at all.
Other info
No response

I think this functionality would be nice to have in mad core. As I understand, mad navigation has support for custom banners which is used for service messages at the moment only. I think it would be nice to add this there instead of in mad components. Thoughts on this @dansvend  and @tormodAase  ?

I agree! We can put it at the top of the screen along with environment banner and service message

That will be awesome! We can use @react-native-community/netinfo with a Package Health Score of 89 on Snyk Advisor.
import { useNetInfo } from "@react-native-community/netinfo";
const { isConnected } = useNetInfo();

I think this functionality would be nice to have in mad core. As I understand, mad navigation has support for custom banners which is used for service messages at the moment only. I think it would be nice to add this there instead of in mad components. Thoughts on this @dansvend and @tormodAase ?

That will be awesome! It should still be added in MAD Components, and then use it from there and include it in mad-core in the custom headers, right?
We can use @react-native-community/netinfo with a Package Health Score of 89 on Snyk Advisor.
import { useNetInfo } from "@react-native-community/netinfo";
const { isConnected } = useNetInfo();

I've pushed changes for this ticket and assigned it to @Murugan-sudo  for review.
cc: @CaarnHeir


writers: support for more writers

Description of changes
This PR adds some functions to pkgs.writers, those being: write{Nu,Ruby,Lua}{,Bin} so that people can have support for more useful ""glue"" languages for their nix scripts.

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Thanks for adding more writers! Would be nice to have some tests so we can detect breakage easier. Should be fairly straightforward in the tests.nix. if you have more questions just ask me

Sorry, but I've been messing around and haven't found a way to run that test.nix file by itself, how could I do so? nix-instantiate --eval doesnt work I think... So I don't know

ah you can run the test like this in a checkout of nixpkgs:
nix-build . -A tests.writers
although it seems like the pypy and fsharp tests are broken right now. maybe we should comment them out. also a comment (somwhere in the code) how to run the writers tests could be helpful :)

Thank you very much for the help! I was doing it backwards, running nix-build -A writers.tests, lol! So, apparently the pypy tests are broken because of this issue so they should be commented out for now indeed!

I would comment out the tests and add a link to the issue next to it? I guess we can let the writers still exist although they are not working with libraries right now.
By exposing the interface there is a higher chance than someone stumbles upon it and finds time/motivation to fix it :)

I think that's pretty much all I wanted to add in this PR! The tests are now working, sadly Lua and Ruby packages don't work, though :(. I think this PR is pretty much done at this point.

would be nice if the commit messages could follow the https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#commit-conventions . maybe we should also get rid of the master merge commit

I can also amend the history if that's okay for you? Then we can merge it

Yup! no prob sorry for not answering before


Fix campaign character duplication bug

Description
Closes #486
Prevents a user from registering the same character to the same campaign more than once.
Additionally prevents a user from being registered to a campaign more than once.

I see what you mean, yeah i though about throwing an exception, but i'm starting to rethink if we actually want to be throwing exceptions in controllers now. It's probably preferable to return a response with errors instead. That said, doing that, especially in this context, adds a ton of overhead i'm not sure i want to add — really good points though

Code climate is being weird and only reporting the diff coverage as 90% even though all the lines are covered, which is making the total coverage show 0.2% drop. Im just going to ignore that


Client Crash when joining MP Server - Cannot read field "field_13073" because "â˜ƒ" is null

Apologies if this is a Duplicate.
Client Crash when joining MP Server  with this error java.lang.NullPointerException: Cannot read field "field_13073" because "â˜ƒ" is null
1.17.1 latest Version in the Medieval Minecraft Modpack
https://pastebin.com/DGFSVK8J

Please let the creator of the mod pack know. This seems like an issue on their end.

If you're the creator of the mod pack, let us know

he is

@SharkieTV Does this issue occur on the latest version of our mod?

Not sure if its happening anymore as it just got released but I think this happens due to my players not having matching modpack versions.


Secure the Apis With JWT

Hello There, am writing Restful Apis usually with Python(Sanic, Flask) or With Spring boot in Java.
but i Came up with a chance to try out RUST, when i Searched around i found tide.
So here is a couple of questions that you may help me with please.
1- can we secure the Apis Using JWT? issue , parse them ?
2- is there any connectors to the Databases like Mysql, sqlite or in-memory Database (redis,mongo) or even can we use sqlite in Memory. is there any thing available in here like Hibernate, sqlalchemy?
3- what about Dockers also.
thanks for being patient, have a Good One everbody

Hi

You should be able to build JWT auth on top of / or using https://github.com/chrisdickinson/tide-http-auth as a reference.
There may be wrappers out there, or you could probably build one easily enough on surf.
Huh? This will run in docker like any other binary compiled to the correct target platform.

Tide is still under substantial development - if you want these things now please feel free to be the one leading the charge! :)


[[Power-Fx]] Localization hand-back [CTAS - RunID=20231206-015057-t0bpzrhty]

Translation handback check-in (PR Created by automation).

✅ No public API change.


Support autotune for ONNXRT

Type of Change
feature
Description
Support autotune for ONNXRT
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed

depend on this PR: https://github.com/intel/neural-compressor/pull/1595


Some issues with Iris Shaders

When using shaders with Iris Shaders mod, item form of light-emit blocks do not render in hands and when dropped
Without shaders:

With shaders:

Also vanilla block entities do not render in hands, when placed and when dropped

Tested with different shaders and using only with Sodium and Simply No Shading mods.

I think this mod won't support shaders. But, it should disable itself when a shader enabled. I'll look into a fix for both.

If you could, it would be great if you kept no shading for light-emit blocks and block entities in GUIs, this feature works as intended with shaders.

I'll keep that in mind! I will try figuring that out


Without libsuitesparse-dev, performance degrades severely without warning

When libsuitesparse-dev is not installed, (Ceres) optimization will take >100 times longer.
It would nice to warn about this.

Ah, I remember running into this a year ago. That was my first PR:
https://github.com/googlecartographer/cartographer/pull/189
Ceres declares a SparseLinearAlgebraLibrary CMake component when it's built against SuiteSparse, CXSparse or EigenSparse (see here). Seems like not using SuiteSparse results in slow optimization? Then we can change that line to require SuiteSparse exactly.


CodeSandbox Examples does not open

I cannot access to the examples sandbox that's on: https://github.com/tannerlinsley/react-table/tree/v6
For example, I tried to check this example (custom-expander-position), and this is what I see.

This happens to all examples of version 6.

The v6 readme and example links have been updated. Try again!

Now it works! Thanks!


When I'm that deep into the folder structure I can no longer see the names of the files and folders due to the sidebar being to narrow. An option could be to enable horizontal scroll to the explorer or to allow setting a path for the connection to start on a deeper level than just "/".

Thank you for the report. While I am working on improving this, you might hold down on a sub-directory and pick assign as workspace folder to properly show the files under it.

I have encountered the same problem.

It is still not enough even with “assign as workspace folder”. I think there are some people work on ssh who need a convenient “cd” command. Hope you can support a command line interface to open files and change directory.

It is still not enough even with “assign as workspace folder”. I think there are some people working on ssh who do need a convenient “cd” command. Hope you can support a command line interface to open files and change directory.

t is still not enough even with “assign as workspace folder”. I think there are some people working on ssh who do need a convenient “cd” command. Hope you can support a command line interface to solve this problem.

It is still not enough even with “assign as workspace folder”. I think there are some people working on ssh who do need a convenient “cd” command. Hope you can support a command line interface to solve this problem.

It is still not enough even with “assign as workspace folder”. I think there are some people working on ssh who do need a convenient “cd” command. Hope you can support a command line interface to solve this problem. > Thank you for the report. While I am working on improving this, you might hold down on a sub-directory and pick assign as workspace folder to properly show the files under it.

Fixed in https://github.com/thebaselab/codeapp/commit/a89bc748af633d3c5d6f20a23682866e142e2889. It is now possible to adjust the width of the sidebar.


new school

add CCC

add new school, CCC

@Lee-HanHee This domain is blacklisted because the college allows to register an email address there even if you are not a student of the college. If you are the student of this college, please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).


A changed Meetup url breaks attendance gathering

Description
Many groups have changed their Meetup url since they added the original one to the Brigade Information. Visiting that url will redirect to the new one, expect when accessing it through the API. This messes up our attendance gathering.
This is the error we get when that happens:
Traceback (most recent call last):
  File "get_meetup_attendance.py", line 235, in <module>
    attendee = cfapiclient.format_attendee(cfapi_org, event, attendee)
  File "get_meetup_attendance.py", line 193, in format_attendee
    "cfapi_url" : cfapi_org["url"]
TypeError: 'NoneType' object has no attribute '__getitem__'

To Fix
We should either:

figure out how to redirect on the api
notify someone to update the events_url on the Brigade Information

We're not going to use this code anymore. https://github.com/codeforamerica/cfapi/issues/243


Detector App freezes when starting FRAM while LMIC driver is in operation

Actual Behavior
Adafruit FRAM I2C driver start renders the detector firmware application to be freezed while LMIC driver (LoRaWan RFM95 module driver) is in operation.
Expected Behaviour
The operation of all drivers must be possible w/o any interferencing issues.
Steps to reproduce

Run the Detector FW with the LMIC driver in service
Start I2C Bus (Wire.begin())
Heartbeat LED stops blinking, CLI on USB Serial shows no reaction

Possible Workarounds

for the MVP (2 detector nodes, we prepare 5 nodes), use a GPIO 3 bit wired device ID to distinguish between the devices, provice hard coded TTN Keys for all 5 nodes and provision the device's own tuple according to the GPIO 3 bit device ID, GPIO bits (#37):

Bit 0: Pin A0 (14)
Bit 1: Pin A1 (15)
Bit 2: Pin A3 (16)

try to use SPI instead of I2C bus, replace the Adafruit FRAM I2C by an Adafruit FRAM SPI

@ithuerin have you already started working on this?


Why are we not using default exports?

Since each has its own file, why have:
import { FaIconComponent } from '@gavant/glint-template-types/types/@fortawesome/ember-fontawesome/fa-icon';

and not
import FaIconComponent from '@gavant/glint-template-types/types/@fortawesome/ember-fontawesome/fa-icon';

The main reason I use named exports as a pattern is to make it easily discoverable in VScode for autocompletion. But we could also use both because Im not particularly tied to a certain direction for this package

Just realized I may have broken things in the ember-render-modifiers change. I'll submit a fix soon. Just don't release until I do :)

Haha, no problem. I'll probably wait to release until you add everything you want to anyways 😄

@bakerac4 if you do export default Foo then VSCode picks it up as Foo.


Implement vanilla baseline

Feature request

And I’m guessing you’ve tried the vanilla baseline:
Send in a series of screenshots to GPT-4 and then ask GPT-4 to describe what happened.
Then give it the sequence of actions (in concrete coordinates and keyboard inputs), as well as your proposed modification in natural language.
Ask it to output the new action sequence
--@LunjunZhang

Motivation

I’m just making sure that before we delve into improving segmentation and constructing graphs (those tasks can be deep rabbit holes), we have a baseline set up
--@LunjunZhang

We can also use Gemini

I feel that it’d be good to:

have one baseline that’s almost all just about prompting multi-modal API to do the task. This might get 0% success rate, but having this script will allow us to evaluate any new model that comes out. (The point is that, if AGI or GPT6 happens, this script should be able to suddenly do the work).
Then add additional techniques like Set-of-Mark prompting (if vision is the bottleneck), that’s almost like 1, without explicit structure. Maybe this doesn’t work at all either.
Then we diagnose the main bottleneck (is it vision? or planning? or RAG? or outcome determination?), and then add more structure strategically
--@LunjunZhang


Some clarifications and .npz files visualization

I would like to visualize the body landmarks projected onto the 2d image however I have some problems understanding how the values are stored. When I run the demo script I get a file called .npz and I can load it with numpy. Inside it I found f->results where two dictionaries are stored one for each person in the image. Inside each dictionary I can see 'cam' (3,), 'pose' (72,), 'betas' (10,), 'j3d_smpl24' (24, 3), 'j3d_op25' (25, 3), and 'verts' (6890, 3) variables (I put their corresponding shapes in parentheses). From your paper I thought 'pose' variable would be of length 132 (22 landmarks x 6D). Anyway, I assume you have saved 24 landmarks in 3D which makes an array of length 72. From the 'cam' variable (tx, ty = cam[1:]) I calculated the center for each people trivially since those numbers are normalized between -1 and 1 just as you mentioned in your paper. However when it comes to visualizing 'pose', 'j3d_smpl24' or 'verts' variables I ran into some problems. Could you explain how each of these variables store their data? Apparently they are not normalized between -1 and 1. Also I'm having some problems understanding the first number in 'cam' variable which should correspond to scale according to the paper. In the paper it is said that this variable "reflects the size and depth of the human body to some extent.". How can this scale be used to visualize pose points? In my example I get 5.51 for one person and -5.156 for the other. Would you also explain what does a negative scale represent?

Good question!
1.About the 3D-to-2D projection. It is presented at here. The detailed function is at here. To get the projected 2D coordinates, just use 'pj2d' at here. They are normalized (-1~1) coordinates on the input image (not  the original image).
2. About 'cam'. We adopt a 3-dim camera parameter. You can treat the absolute value of the first dim. as the scale. These camera parameters are used to project the estimated 3D joints or body vertex back to 2D image via weak-perspective projection.
3. About 'pose': they are 72-dim SMPL pose parameters, which are 3-dim 3D rotation of 24 SMPL joints 'j3d_smpl24' in axis representation.
4. About 'j3d_smpl24' or 'verts'. They are in standard SMPL space, not image space. In standard SMPL space, the body center (near pelvis) is located at the origin.
Don't hestiate to let me your question.
Best.

Thank you very much for the detailed info. Is there a way to map j3d_smpl24 onto the image space?

Of course. It is very simple. Add a line after this line,
pj2d_smpl24 = proj.batch_orth_proj(j3d_smpl24, params_dict['cam'], mode='2d')[:,:,:2]
'pj2d_smpl24' is what you want. Please add it to the 'outputs' dict for further use.

@Arthur151  Hi dear Yu Sun. I'm also trying to get SMPL 3D keypoints in image space. I followed your instructions and I got 2D data and 45 entries. I'm writing it as example below.
[[0.0744452346641, -0.012984120034], [-0.23053123445656, 0.00345313533],.... upto 45 entries]
I want to ask that how to get 3D keypoints in image space?
One more question as you mentioned above reply that in SMPL space body center is pelvis. So what about body center in image space?

@Arthur151  Hi dear Yu Sun. I'm also trying to get SMPL 3D keypoints in image space. I followed your instructions and I got 2D data and 45 entries. I'm writing it as example below.
[[0.0744452346641, -0.012984120034], [-0.23053123445656, 0.00345313533],.... upto 45 entries]
I want to ask that how to get 3D keypoints in image space?
One more question as you mentioned above reply that in SMPL space body center is pelvis. So what about body center in image space?

Please set keep_dim=True to keep the Z dimention. Please refer to projection function.
What do you mean by "body center in image space"? Are you asking how to determine the body center in center map? We have detailed description about this in our paper. Briefly speaking, 2D body center could be regarded as the average of torso keypoints (left/right shoulders, left/right hips and so on).
I haven't looked into the "SPIN keypoints" you mentioned. But I think it can be derived from SMPL body mesh via their regression functions.

Please set keep_dim=True to keep the Z dimention. Please refer to projection function.
What do you mean by "body center in image space"? Are you asking how to determine the body center in center map? We have detailed description about this in our paper. Briefly speaking, 2D body center could be regarded as the average of torso keypoints (left/right shoulders, left/right hips and so on).
I haven't looked into the "SPIN keypoints" you mentioned. But I think it can be derived from SMPL body mesh via their regression functions.

Good question!
1.About the 3D-to-2D projection. It is presented at here. The detailed function is at here. To get the projected 2D coordinates, just use 'pj2d' at here. They are normalized (-1~1) coordinates on the input image (not the original image).
2. About 'cam'. We adopt a 3-dim camera parameter. We don't directly use the estimated scale value. Instead, we take the $(1.1)^scale$ to make sure that the scale value is always positive. These camera parameters are used to project the estimated 3D joints or body vertex back to 2D image via weak-perspective projection.
3. About 'pose': they are 72-dim SMPL pose parameters, which are 3-dim 3D rotation of 24 SMPL joints 'j3d_smpl24' in axis representation.
4. About 'j3d_smpl24' or 'verts'. They are in standard SMPL space, not image space. In standard SMPL space, the body center (near pelvis) is located at the origin.
Don't hestiate to let me your question.
Best.

Thanks for your reply. In this reply in point 4 you mentioned that In standard SMPL space, the body center (near pelvis) is located at the origin.  I was asking about this body center.
Furthermore I changed keep_dim=True but still I'm getting same results as I mentioned above.

Good question!
1.About the 3D-to-2D projection. It is presented at here. The detailed function is at here. To get the projected 2D coordinates, just use 'pj2d' at here. They are normalized (-1~1) coordinates on the input image (not the original image).
2. About 'cam'. We adopt a 3-dim camera parameter. We don't directly use the estimated scale value. Instead, we take the $(1.1)^scale$ to make sure that the scale value is always positive. These camera parameters are used to project the estimated 3D joints or body vertex back to 2D image via weak-perspective projection.
3. About 'pose': they are 72-dim SMPL pose parameters, which are 3-dim 3D rotation of 24 SMPL joints 'j3d_smpl24' in axis representation.
4. About 'j3d_smpl24' or 'verts'. They are in standard SMPL space, not image space. In standard SMPL space, the body center (near pelvis) is located at the origin.
Don't hestiate to let me your question.
Best.

Thanks for your reply. In this reply in point 4 you mentioned that In standard SMPL space, the body center (near pelvis) is located at the origin.  I was asking about this body center.
Furthermore I changed keep_dim=True but still I'm getting same results as I mentioned above.

After projection, there may not be any center located at the origin. Because there are X-/Y-translation.
Because we have forced the 'pj2d' to be 2-dims in this line. As we can see, we set 'pj2d':pj3d[:,:,:2]. If you want to get the 3-dims, please change it to 'pj2d':pj3d.

After projection, there may not be any center located at the origin. Because there are X-/Y-translation.
Because we have forced the 'pj2d' to be 2-dims in this line. As we can see, we set 'pj2d':pj3d[:,:,:2]. If you want to get the 3-dims, please change it to 'pj2d':pj3d.

Thanks for clarification. Now I can get x, y and z data by removing [:,:,:2] but there is one confusion that there is 45 entries  array size is (1, 45, 3) for one frame but I think it should be 1, 24, 3.

Thanks for clarification. Now I can get x, y and z data by removing [:,:,:2] but there is one confusion that there is 45 entries  array size is (1, 45, 3) for one frame but I think it should be 1, 24, 3.

To get the back-projected 3D joints in SMPL format, I recommand to replace this line, which is
pj3d = proj.batch_orth_proj(j3d_op25, params_dict['cam'], mode='2d')
with
pj3d = proj.batch_orth_proj( j3d_smpl24, params_dict['cam'], keep_dim=True)

To get the back-projected 3D joints in SMPL format, I recommand to replace this line, which is
pj3d = proj.batch_orth_proj(j3d_op25, params_dict['cam'], mode='2d')
with
pj3d = proj.batch_orth_proj( j3d_smpl24, params_dict['cam'], keep_dim=True)

@Arthur151  Thanks for your help. I'm following your suggestions but still I'm getting (1, 45, 3). I don't know why it is happening? Even I removed j3d_op25 as you suggested above. Would you like to test this problem on your side?

@Arthur151  Thanks for your help. I'm following your suggestions but still I'm getting (1, 45, 3). I don't know why it is happening? Even I removed j3d_op25 as you suggested above. Would you like to test this problem on your side?

These 3D body joints are derived from the estimated SMPL body mesh. Each body mesh contains 6790 vertices, from where we can regress the 24 body joints you need. The regression process is quite simple. Because these vertices have stable semantic location, each joint could be easily regressed from them. For instance, if we want to calculate the elbow keypoints, we make average on the vertices near the elbow. In this way, theoritically, we can derive any keypoint you want from the body mesh. There might be some redundant keypoints we regressed from the SMPL body mesh, which makes it 45 instead of 24.

These 3D body joints are derived from the estimated SMPL body mesh. Each body mesh contains 6790 vertices, from where we can regress the 24 body joints you need. The regression process is quite simple. Because these vertices have stable semantic location, each joint could be easily regressed from them. For instance, if we want to calculate the elbow keypoints, we make average on the vertices near the elbow. In this way, theoritically, we can derive any keypoint you want from the body mesh. There might be some redundant keypoints we regressed from the SMPL body mesh, which makes it 45 instead of 24.


Id proofs wallet api

Purpose
Add the requestIdProof endpoint to the wallet-api, and makes the wallet handle the endpoint and return a proof for the given statement.
Checklist

[x] My code follows the style of this project.
[x] The code compiles without warnings.
[x] I have performed a self-review of the changes.
[x] I have documented my code, in particular the intent of the
hard-to-understand areas.
[ ] (If necessary) I have updated the CHANGELOG.

Need the conflicts resolved first of all.


Fix issue dependencies

Fix #27722
Fix #27357
Fix #25837

Fix the typo BlockingByDependenciesNotPermitted, which causes the not permitted message not to show. The correct one is Blocking or BlockedBy
Rewrite the perm check. The perm check uses a very tricky way to avoid duplicate checks for a slice of issues, which is confusing. In fact, it's also the reason causing the bug. It uses lastRepoID and lastPerm to avoid duplicate checks, but forgets to assign the lastPerm at the end of the code block. So I rewrote this to avoid this trick.

It also reuses the blocks slice, which is even more confusing. So I rewrote this too.

Just nobody has time to review it 😭
I hope this can be reviewed soon too since the bug troubles everyone who uses the issue dependencies feature.

please, take a look at https://github.com/go-gitea/gitea/issues/27822


Problem with tf.keras.layers.SimpleRNNCell

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.17.0
Custom code
Yes
OS platform and distribution
Linux Ubuntu 20.04
Mobile device
No response
Python version
3.11.0
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
12.3
GPU model and memory
NVIDIA GeForce RTX 4070Ti
Current behavior?
Current behavior is I get error message 'InaccessibleTensorError' due to line 'out0, state0 = self.RNNCell0(word, states=state0, training=training)'
Standalone code to reproduce the issue
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = "2"

import tensorflow as tf
import numpy as np
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from tensorflow.keras.optimizers import Adam

tf.random.set_seed(22)
np.random.seed(22)
assert tf.__version__.startswith('2.')

batch_size = 128
total_words = 10000
max_review_len = 80
embedding_len = 100

(x_train, y_train), (x_test, y_test) = tf.keras.datasets.imdb.load_data(num_words=total_words)
x_train = tf.keras.preprocessing.sequence.pad_sequences(x_train, maxlen=max_review_len)
x_test = tf.keras.preprocessing.sequence.pad_sequences(x_test, maxlen=max_review_len)

train_data = tf.data.Dataset.from_tensor_slices((x_train, y_train))
train_data = train_data.shuffle(10000).batch(batch_size, drop_remainder=True)

test_data = tf.data.Dataset.from_tensor_slices((x_test, y_test))
test_data = test_data.batch(batch_size, drop_remainder=True)

print('x_train_shape:', x_train.shape, tf.reduce_max(y_train), tf.reduce_min(y_train))
print('x_test_shape:', x_test.shape)

class RNN_Build(tf.keras.Model):
    def __init__(self, units):
        super(RNN_Build, self).__init__()
        self.state0 = [tf.zeros([batch_size, units])]
        self.state1 = [tf.zeros([batch_size, units])]
        self.embedding = tf.keras.layers.Embedding(total_words, embedding_len,
                                                   input_length=max_review_len)
        self.RNNCell0 = tf.keras.layers.SimpleRNNCell(units, dropout=0.2)
        self.RNNCell1 = tf.keras.layers.SimpleRNNCell(units, dropout=0.2)
        self.RNNCell1 = tf.keras.layers.SimpleRNNCell(units, dropout=0.2)
    def call(self, inputs, training=None):
        x = inputs
        x = self.embedding(x)
        state0 = self.state0
        state1 = self.state1
        for word in tf.unstack(x, axis=1):
            out0, state0 = self.RNNCell0(word, states=state0, training=training)
            out1, state1 = self.RNNCell1(out0, states=state1, training=training)
        x = self.outlayer(out1)
        prob = tf.sigmoid(x)
        return prob
import time
units = 64
epochs = 4
t0 = time.time()
model = RNN_Build(units)
model.compile(optimizer=tf.keras.optimizers.Adam(0.001),
              loss=tf.losses.BinaryCrossentropy(),
              metrics=['accuracy'])
model.fit(train_data, epochs=epochs, validation_data=test_data, validation_freq=2)

Relevant log output
---------------------------------------------------------------------------
InaccessibleTensorError                   Traceback (most recent call last)
Cell In[5], line 9
      5 model = RNN_Build(units)
      6 model.compile(optimizer=tf.keras.optimizers.Adam(0.001),
      7               loss=tf.losses.BinaryCrossentropy(),
      8               metrics=['accuracy'])
----> 9 model.fit(train_data, epochs=epochs, validation_data=test_data, validation_freq=2)

File /usr/local/lib/python3.11/dist-packages/keras/src/utils/traceback_utils.py:122, in filter_traceback.<locals>.error_handler(*args, **kwargs)
    119     filtered_tb = _process_traceback_frames(e.__traceback__)
    120     # To get the full stack trace, call:
    121     # `keras.config.disable_traceback_filtering()`
--> 122     raise e.with_traceback(filtered_tb) from None
    123 finally:
    124     del filtered_tb

Cell In[4], line 17
     15 state1 = self.state1
     16 for word in tf.unstack(x, axis=1):
---> 17     out0, state0 = self.RNNCell0(word, states=state0, training=training)
     18     out1, state1 = self.RNNCell1(out0, states=state1, training=training)
     19 x = self.outlayer(out1)

File /usr/local/lib/python3.11/dist-packages/tensorflow/core/function/capture/capture_container.py:144, in FunctionCaptures.capture_by_value(self, graph, tensor, name)
...

Arguments received by SimpleRNNCell.call():
  • sequence=tf.Tensor(shape=(128, 100), dtype=float32)
  • states=['tf.Tensor(shape=(128, 64), dtype=float32)']
  • training=True
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

Hi @Zofns ,
I tried to run your code on Colab using TF v2.17.0 & nightly and faced the same issue. Please find the gist here for reference.
Please post this issue on keras-team/keras repo. as this issue is more related to keras
Thank you!


[cmake] follow add_subdirectory/subdirs for deps

Currently we only look for dependencies in the CMakeLists.txt in the root of a cmake package's directory. This pr makes it so that it also follows add_subdirectory and subdirs calls in cmake to other CMakeLists.txt.

Closing in favor of https://github.com/ament/ament_tools/pull/96


Correct response on smart parser error

Update the format of the result returned when the smart parser encounters a ValueError to match the usual result dict. I chose to add some empty values as well, to simplify client implementation.
Result from the CLI client:
$ ./nipap --show-interpretation a l 'foo "'
Searching for prefixes in any VRF...
Query interpretation:
       `-- foo ": unclosed quote, please close quote!
   This is not a proper search term as it contains en uneven amount of quotes.
No addresses matching 'foo "' found.

Fixes #982

I realise this code is very naive. In the old parser I think unclosed quote was pretty much the only thing we caught. With the new parser we also have unclosed parentheses which I suppose we won't be able to distinguish now, right?

@garberg Still, this takes us part of the way so I'm ready to merge this although I think we should catch more specific exceptions. Do you wanna have a go at that in this PR or should I merge and we leave that for later?


[Bug Report] Cascader's style is not available in Custom theme

Element UI version
2.10.0
OS/Browsers version
macOS 10.14.2 / Google Chrome 75.0.3770.100
Vue version
2.6.10
Reproduction Link
https://jsfiddle.net/YouCanTestLocally
Steps to reproduce
1、Download the custom theme to the local
2、Use the cascader component，
<el-cascader
:options="options"
:show-all-levels="false"

3、Click the cascader area, the style of cascader'dropdown is not available, and display a plain style
（点击cascader后，弹出的框框是纯文本，没有出现样式）
What is Expected?
I hope it has the style as usual
What is actually happening?
the style of cascader'dropdown is not available in Custom Theme

I had the same problem, but fixed it by re-generating the custom theme using the given link elementui has (https://elementui.github.io/theme-chalk-preview/#/en-US).
change theme colour -> download theme.

I had the same problem, but fixed it by re-generating the custom theme using the given link elementui has (https://elementui.github.io/theme-chalk-preview/#/en-US).
change theme colour -> download theme.

I have tried this method and Using element-theme before, and after you metioned it, I try again. But all these methods failed to fix it.

what style of cascader you what to custom?

what style of cascader you what to custom?

I just want to custom the theme color to the #00CEB8.
I download the theme package and put it into the project folder.
and import it by import './public/#00CEB8/theme/index.css';
and then I use the el-cascader, it display not as expect.

But if I use import 'element-ui/lib/theme-chalk/index.css';
it display as expect, but it isn't the custom theme !

I have tried delete all my style, it still like that - -。
Thank you very much if you can help me fix the bug ~

have a try our online theme roller https://element.eleme.cn/#/en-US/component/custom-theme#online-theme-roller

最后是通过重装element-ui，就解决了


Create factories for Entities, Types, resolvers: Cannot determine GraphQL output type for getAllItems

Hi,
I'm using TypeORM together with type-graphql. I would like to buid a factory that build boths entities and grapqhQL schema, based on an interface. The main requirement behind is to create entites and resolvers to manage google apis that have sometimes more than 50 fields. I would like to avoid re-listing all api schemas. So I'm trying to build a factory.
I'm trying to do this by achieving 4 steps:
1- converting the interface to a class (generic factory convert function)
2- using this class to create the entity (still generic)
3- using this class to create the @ObjectType and @InputType
4- creating the resolver. (generic resolver)
Unfortunately, when building the schema, I end up with an error " Cannot determine GraphQL output type for getAllItems
I know that the issue is not in the resolver by itself, as if I create a simple class with @ObjectType, @InputType along with the entity, it works fine.
The problem are the steps before, i.e. when trying to create the Entity with a generic and abstract class or the ObjectType, InputType also using an abstract class.
I'm struggling with this for a while, any help would be appreciated.
Below is the factory part, as well as a very simple example that fails.
Factory code
import {
  Arg,
  ClassType,
  Field,
  ID,
  InputType,
  MiddlewareFn,
  Mutation,
  ObjectType,
  Query,
  Resolver,
  UseMiddleware
} from "type-graphql";
import { Column, Entity, PrimaryColumn } from "typeorm";

// Convert GoogleSchema (interface) to Class
function BaseClass<T extends object>() {
  return (function(this: T, data: T) {
    Object.assign(this, data);
  } as any) as new (arg: T) => T;
}

// create a entity based on class
export function GoogleApiSchemaToEntity<TGSchema>(
  entityName: string,
  dbSchema: string
) {
  @Entity({
    name: entityName,
    schema: dbSchema
  })
  abstract class GoogleApiGenericEntity {
    @PrimaryColumn({
      type: "character varying",
      length: 255,
      nullable: false,
      unique: true
    })
    id: string;
    @Column()
    schema: TGSchema;
  }
  return GoogleApiGenericEntity;
}

// convert Google Schema to TypeGraphQL type definituin
export default function GoogleApiSchemaToClass<TGSchema>(
  TGSchemaClass: ClassType<TGSchema>
) {
  @ObjectType({ isAbstract: true })
  abstract class GoogleApiGenericClass {
    @Field(() => ID)
    id: string;
    @Field(() => [TGSchemaClass])
    schema: TGSchema[];
  }
  return GoogleApiGenericClass;
}

// generic resolver
function createGoogleApiResolvers<T extends ClassType, X extends ClassType>(
  suffix: string,
  outputType: T,
  inputType: X,
  entity: any,
  middleware?: Array<MiddlewareFn<any>>
) {
  @Resolver()
  class GoogleApiBaseResolvers {
    // get all items of entity
    @UseMiddleware(...(middleware || []))
    @Query(() => [outputType!]!, {
      nullable: true,
      name: `getAll${suffix}`
    })
    async getAllItems(): Promise<T[] | null> {
      let items: T[] | null = null;
      items = await entity.find();
      return items;
    }
    // update an item
    @UseMiddleware(...(middleware || []))
    @Mutation(() => outputType!, { nullable: true, name: `updateOne${suffix}` })
    async updateOneItem(
      @Arg("data", () => inputType) data: X
    ): Promise<T | null> {
      let item: T | null = new entity();
      let val: any = "";
      if (!data.hasOwnProperty("id")) {
        return null;
      }
      val = data.hasOwnProperty("id");

      item = (await entity.findOne({ id: val })) || null;

      if (!item) {
        return null;
      }
      await entity.update({ id: val }, { data });
      return item;
    }
  }
  return GoogleApiBaseResolvers;
}

Simple test to call the factory
// test :
interface test {
  field1: string;
  filed2: string;
}

// create entity base on test  schema
class GOrgUnitEntity extends GoogleApiSchemaToEntity<test>("test", "public") {}

// Convert Schema$Orgunit to Class
class GOrgUnitsClass extends BaseClass<test>() {}

// create object type
@ObjectType()
export class GoogleOrganizationUnitsOutputType extends GoogleApiSchemaToClass<
  GOrgUnitsClass
>(GOrgUnitsClass) {
  @Field(() => [String])
  otherInfo: string[];
}

@InputType()
export class GoogleOrganizationUnitsInputType extends GoogleApiSchemaToClass<
  GOrgUnitsClass
>(GOrgUnitsClass) {
  @Field(() => [String])
  otherInfo: string[];
}

export const GOrgUnitsResolver = createGoogleApiResolvers(
  "GOrgUnits",
  GoogleOrganizationUnitsOutputType,
  GoogleOrganizationUnitsInputType,
  GOrgUnitEntity,
  []
);

// schema buidling : error is here
// Cannot determine GraphQL output type for getAllItems

const initApolloServer = async (): Promise<ApolloServer> => {
  try {
    const schema: GraphQLSchema = await buildSchema({
      resolvers: [
        GOrgUnitsResolver
      ]
    });
    const apolloServer: ApolloServer = new ApolloServer({
      schema,
      context: ({ req, res, info }: any) => ({ req, res, info }),
      formatError: (err: GraphQLError) => FormatErrorMessageGraphQlServer(err)
    });

@jeromeSH26
Looks like GOrgUnitsClass used in GoogleApiSchemaToClass<GOrgUnitsClass>(GOrgUnitsClass) has to be decorated with @ObjectType() and @Fields() decorators.
Otherwise, use GraphQL JSON scalar and loose type safety.

"Looks like GOrgUnitsClass used in GoogleApiSchemaToClass(GOrgUnitsClass) has to be decorated with @ObjectType() and @Fields() decorators."
By doing this, if I understand well,  it means I had to retype all the interface definition, and add @Field to the GOrgUnitsClass  ?
This what I'd like to avoid. Is there a way to avoid this ?
And yes, some the error is the one you mentionned, or the one I have reported. That's why I'm lost ;-)

Is there a way to avoid this ?

How Node can figure out in runtime which data you will return without providing that info? Magic? 😄

Closing for a housekeeping purposes 🔒


Configure SDAP API in API-Gateway in Unity-Venue-Dev

Configure an API to call SDAP endpoints in Unity-Venue-Dev in the Unity API Gateway in Unity-Venue-Dev.  This API will be called from the shared API Gateway in Unity-Dev, but does not need to be compatible with the DAPA standard.
Acceptance Criteria:

[ ] API in the Unity API Gateway in Unity-Venue-Dev forwards calls to SDAP deployed in Unity-Venue-Dev
[ ] Test connectivity with SDAP time series call.

@jjacob7734 ping for status.  This was planned to be complete in 24.2.1.

Status:

Moved this to 24.2.3 due to delays in getting the SDAP ingress-nginx component and load balancer to deploy.
Deployed API in API Gateway for unity-venue-dev at https://us-west-2.console.aws.amazon.com/apigateway/main/apis/cjezi7waw8
Deployed VPC Link unity-as-venuedev-sdap-vpclink connecting the API to the SDAP load balancer.

@jjacob7734 ping for status.

SDAP time series API configured and tested:

curl 'https://cjezi7waw8.execute-api.us-west-2.amazoaws.com/unity-as-venuedev-sdap/sdap/list'
curl 'https://cjezi7waw8.execute-api.us-west-2.amazonaws.com/unity-as-venuedev-sdap/sdap/timeSeriesSpark?ds=JPL_MUR25-JPL-L4-GLOB-v04.2&minLat=-15&maxLat=15&minLon=-160&maxLon=-130&startTime=2022-01-01T00:00:00Z&endTime=2022-01-31T23:59:59Z'

This API needs to be secured.  I'll create a new ticket for that.  Ultimately, the only access should be through the public DAPA API configured in unity-dev venue.  A cross-account connection between API Gateways in unity-dev and unity-venue-dev will need to be established.


Spyder -Anaconda is very slow

I have installed Spyder 4.1.5 (behind Anaconda), and when I open a large CSV file, the Spyder IDE is working with terrible slow speed. For example for df.info(), df.describe() I have to wait minutes. While I search for the solution for this problem, I have installed the Sypder 5.0.3 which is works well, but It is not supported by Anaconda, and I have a problem with package access.
My questions are:

Why Syder 4.1.5 (behind Anaconda) is superslow with DataFrames
How can I setup Spyder  5.0.3 to use the same environment as Spyder 4.1.5 (behind Anaconda)

My machine has iCore 9, 64Gb mem, with 1T SSD and 2x3080GeFroce so the hardware is not the bottleneck.....
Python 3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
IPython 7.22.0
conda 4.10.1
Anaconda Navigator 1.10.1

Hey @korosig, thanks for reporting. You said:

Why Syder 4.1.5 (behind Anaconda) is superslow with DataFrames

I really don't know. We've fixed a lot of things since 4.1.5, which is several months old. But even if I do, we don't support Spyder 4 anymore, which means that all fixes go to Spyder 5.

How can I setup Spyder 5.0.3 to use the same environment as Spyder 4.1.5 (behind Anaconda)

Please read our FAQ about that:
http://docs.spyder-ide.org/current/faq.html#using-existing-environment
and let us know if it works for you.

Hi
I have installed Spyder 5 (behind Anaconda) and I got the same problem. I tested my script in Jupiter and it works fast.
I did the next things:
I loaded a 1.3 Gb CSV with pandas, and then I use df.info(), df.columns, etc.
It is often freezing or, I have to wait minutes to run. By comparison, in jupyterlab, this runs in seconds.
tested with (Python 3.8.8 , IPython 7.22.0 , Spyder 4.2.5, pandas 1.2.4)  - very slow
tested with (Python 3.9.5 , IPython 7.22.0 , Spyder 5.0.0, pandas 1.2.4)  - very slow
tested with (Python 3.8.8 , Jupyter lab 3.0.14, pandas 1.2.4) - Fast
I reinstalled ANACONDA, SPYDER, PYTHON, and all packages....

I hope I found the source of the error..
When I use these lines, the SPYDER broke down....
pd.set_option('max_columns', None)
pd.set_option('max_rows', None)
pd.set_option('max_colwidth', None)

What those options do?

Closing due to lack of response.


Add failing unit tests for testing github jobs

Going to close this one out, please try a new one because I think it's working now.


Backout noarch

noarch: python was incorrectly applied to this recipe since it's py3k only. Backing out the mistake.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


[Playground] Resolve issue with SCIO examples failing on start due to a timeout

SCIO examples timeout when it's a first run in the container. The reason is that sbt tool downloads Scala dependencies upon the first run, which happens synchronously and takes a significant amount of time.
Downloading the Scala dependencies during the container build time mitigates this problem as sbt will use already downloaded files instead of fetching them from a remote host.
Fixes issue with excessive memory usage, examples now can be run under 1GB of memory usage.
Also this PR resolves issue with execution environment not being properly removed after the example execution.
resolves #24943

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Run RAT PreCommit

@damondouglas, could you please provide some information about the environment in which you ran the tests? I was unable to reproduce the failures in backend/internal/code_processing. I tried running these tests on Linux (Ubuntu 22.40 amd64) and on macOS (arm64).
Regarding the internal/setup_tools/life_cycle test - it requires sbt tool to be present on the machine to be able to test SCIO lifecycle creation. If sbt is not installed the test will fail. This is expected.

@damondouglas added sbt to the list of dependencies
As for the another test, the problem lies in changes in Go 1.20, published a fix here: https://github.com/apache/beam/pull/25379

@damondouglas I looked into this errors, seems that there should be additional measures taken to make tests runnable in Cloud Shell environment.
I updated Readme to clarify that tests need local Datastore emulator to run and they will not run with real datastore (although this should be easily fixable - but I'm not if this change worth the effort).

I looked into this errors, seems that there should be additional measures taken to make tests runnable in Cloud Shell environment.

FYI this was a compute engine instance but nonetheless a clean environment.

I updated Readme to clarify that tests need local Datastore emulator to run and they will not run with real datastore (although this should be easily fixable - but I'm not if this change worth the effort).

Instead of the emulator, have you tried to:

Implement a mock google.golang.org/genproto/googleapis/datastore/v1 with only the endpoints needed for the tests?  Endpoints not needed could simply return fmt.Errorf("not implemted")
In your test you can add https://pkg.go.dev/google.golang.org/api/option#WithEndpoint to the https://pkg.go.dev/google.golang.org/api/option#WithEndpoint after service begins
When test(s) complete, shut down the service

If you still want to use the emulator, I recommend the tests that need it to actually activate and shut down the emulator but personally when I test Google api dependent code in the context of Go, I implement the grpc server.  This doesn't replace integration tests but serves as a quicker way to detect errors in code.

@damondouglas
I agree with your points that unit tests should preferably use mock of the server and integration tests should be able to start and stop their dependencies automatically, but such change certainly goes beyond the scope of this PR. We can estimate efforts for the change to the tests in this task (#25588).

R: @damondouglas

Mostly LGTM other than a few small comments

I'm waiting on CI checks to pass before merging, probably will check back tomorrow