JSB for Cocos2d-x v3.11.1

@qiankanglai
I can't use the current JSB file with v3.11.1 and would like to regenerate the JSB but not sure how to do it.
I know you have change to Unity3D, but can show me how you generate the JSB or share the file you generate the JSB?
Thank you.

I remember I used the tool from cocos to bind JSB automatically, but modified it later by hand...

@qiankanglai
Thanks for your reply.
There is a tool from Cocos - bindings-generator to generate the JSB/
The environment setup is ok as i tried the test folder for JSB within the bindings-generator folder.
But i don't know how to modify the file for Image Picker.

I just modified it to have class to contain result, so I don't know how to describe. You may diff mine version with the generated one
I'll take time writing a simple tutorial if I have this weekend

@qiankanglai
Thank you for your guide.
Are you modifying framework/tools/tojs/cocos2dx_extension.ini to include the ImagePicker?
I try edit the file to add in ImagePicker into the class.
what classes to produce code for. You can use regular expressions here. When testing the regular
expression, it will be enclosed in "^$", like this: "^Menu*$".
classes = AssetsManagerEx Manifest EventListenerAssetsManagerEx EventAssetsManagerEx Control.* ControlButton.* ScrollView$ TableView$ TableViewCell$ ImagePicker
Then add to #include "ImagePicker/ImagePicker.h" to framework/extensions/cocos-ext.h for header path.
Then run the genbindings.py and it success generate the binding.
However, i check the extension.hpp file,
I found there is ImagePicker binding but no ImagePickerDelegate binding.
What do i miss?
Thank you.

@qiankanglai
I have success modified your code to work with Cocos2d-JS v3.11.1.
Thank you for your guide.

@Zinitter Can you send a pr to update this.I also need JSB for Cocos2d-x v3.11.1.Thx.

@uiopwang Please refer to https://github.com/cocos2d/cocos2d-x/pull/11344


xADObjectRDN - New resource proposal

Description
Resource to set an object's location within the directory
Proposed properties
[String] ObjectName (Key):  Name of the Active Directory object to manage.
[String] Path (Write): Specifies the X.500 path of the Organizational Unit (OU) or container where the object is located.
Special considerations or limitations
The Path parameter in xADComputer, xADGroup, and xADUser only allow the parent OU/container to be set at creation. This resource (likely backed by the Move-ADObject cmdlet) would set the directory location for existing resources.
The use cases I can think of for this resource would be:

Managing objects in a non-greenfield environment
Managing computer objects that were joined to the domain in ways that aren't the xADComputer resource
Moving objects from a "staging" OU to a "prod" OU after certain build/deployment steps
Enforcing company policy for certain objects

This could be useful for auditing where the LCM's ConfigurationMode is ApplyAndMonitor or for strict configuration control when the LCM's ConfigurationMode is ApplyAndAutoCorrect.

Thank you for sending in this proposal. 🙂
How would this extend outside of the existing functionality in the existing resources that already have the ability to move "itself". Why would you just want to move an object and not assert that the object exists and have the correct properties?
Do you have a scenario where this resource would only work, and the existing or new resource managing a particular object would not work?
Notes / Questions
ObjectName should be an identity, like a DN to support multiple domain where the two objects can have the same name?
Since other resources today are using Move-ADObject to move an object, if it is moved out the parent container where it was created, then we would get a ping-pong behavior is this resource would be used in the same configuration as any resource using Move-ADObject. So if we create this resource then we should remove the "move" functionality out of the other resources and only have it in this new resource. Path in the other resources is only used during the creation, and not enforced.

Moving objects from a "staging" OU to a "prod" OU after certain build/deployment steps

This means neither configuration is never enforced, otherwise another configuration would move back the object to "staging" again making a ping-pong behavior. It sounds like a scenario that maybe DSC should not be used for, or existing resource could be used for?

Somehow I got it stuck in my head (misread something, mis-assumed something) that the Path parameter was only for object creation. After both looking at the source code and doing some testing, that parameter on those resources works fine for what I was intending. Closing the issue.


increase implicitlyWait for WebDriver

What is this PR for?
This is with respect to travis build failure on sendKeys.
An implicit wait is to tell WebDriver to poll the DOM for a certain amount of time when trying to find an element or elements if they are not immediately available. The default setting is 0. Once set, the implicit wait is set for the life of the WebDriver object instance.
Update
Travis mostly fails on sendKeys; hence, change the way text is sent to paragraph.
What type of PR is it?
Hot Fix
What is the Jira issue?
N/A
How should this be tested?
CI should be green.
Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

This seems to fix PR https://github.com/apache/incubator-zeppelin/pull/783

LGTM

Merge this ?

I'm merging it into the master.


Purge droplet agent for img_check script

The submission of the new image in DigitalOcean platform didn't work following after running the script img_check.sh they provided due to this error:
[FAIL] DigitalOcean directory detected.
To uninstall the agent and remove the DO directory: 'sudo apt-get purge droplet-agent'

This message is sent automatically
Thank you for contributing to Meilisearch. If you are participating in Hacktoberfest, and you would like to receive some gift from Meilisearch too, please complete this form.


[Feature Request] Allow non-stowing containers to ignore bulk and retain showing items in the Activation Tab

Items like Sleeves of Storage and Accolade Robes all reduce the bulk of their contents, but allow items to be drawn for a single action. Non-Stowing Containers currently flag weapons drawn from that as a 1-action activity and show their contents in the Activation Tab, but do not benefit from setting Ignore Bulk.
If non-stowing containers were able to benefit from Ignore Bulk in the way Stowing Containers can, the above items would be able to be built properly. Retaining visibility on the Activation Tab would be preferred, as their action cost is the same as having a consumable loose on a character sheet.

Ideally, being able to customize Action Cost and item activation visibility per container would allow items such as Retrieval Belt (free action, bulk reduction) to be built efficiently, but as a layman seems significantly more involved.

Duplicate of #14073 and #13609


haskell/mysql: test tries to connect to local mysql

Issue description
Building mysql-0.1.3...
Preprocessing library mysql-0.1.3...
[1 of 3] Compiling Database.MySQL.Base.Types ( dist/build/Database/MySQL/Base/Types.hs, dist/build/Database/MySQL/Base/Types.o )

Database/MySQL/Base/Types.hsc:228:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        either ‘poke’ or ‘pokeElemOff’ or ‘pokeByteOff’
    • In the instance declaration for ‘Storable Field’
[2 of 3] Compiling Database.MySQL.Base.C ( dist/build/Database/MySQL/Base/C.hs, dist/build/Database/MySQL/Base/C.o )
[3 of 3] Compiling Database.MySQL.Base ( Database/MySQL/Base.hs, dist/build/Database/MySQL/Base.o )
Preprocessing test suite 'test' for mysql-0.1.3...
[1 of 1] Compiling Main             ( test/main.hs, dist/build/test/test-tmp/Main.dyn_o )
Linking dist/build/test/test ...
running tests
Running 1 test suites...
Test suite test: RUNNING...
test: ConnectionError {errFunction = "connect", errNumber = 2003, errMessage = "Can't connect to MySQL server on '<IP_ADDRESS>' (111 \"Connection refused\")"}
Test suite test: FAIL
Test suite logged to: dist/test/mysql-0.1.3-test.log
0 of 1 test suites (0 of 1 test cases) passed.

Technical details

Nixpkgs version: 16.09

Same for mysql-simple

Wouldn't it be lovely if we could hook the NixOS services infrastructure into tests to create temporary services for tests? 😄  and of course it would work on non-NixOS platforms...
Until that time though, we'll probably just have to disable the test.


.npmignore

Can this plugin also support syntax highlighting for .npmignore?

@kflorence this package is specifically for .gitignore files. If I were to support other file types, I would create a separate package to do so.

@kflorence you may want to consider checking out this package: https://atom.io/packages/language-dotfiles

.npmignore uses the same syntax as .gitignore

@kflorence I understand that they use the exact same syntax. But given the fact that this package is specifically name for git ignore files, it wouldn't make sense to include other file extensions.
The link I posted in my last comment was the wrong one (sorry), this is the package I meant to post a link to: https://atom.io/packages/language-ignore
I've actually been planning to try and merge this package with the language-git package for some time now, but perhaps I'll merge it with language- ignore instead. I'm not sure yet.
Thanks so much for the feedback though, I very much appreciate it.


Shared libraries not found since last commit

After 3f0751f9f368389fbde77aa3b4a0008ae82720ae all pip packages that use c libraries are broken.
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 7, in <module>
    from pip._internal import main
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/site-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py", line 12, in <module>
    from pip._internal.commands import (
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/site-packages/pip/_internal/commands/__init__.py", line 6, in <module>
    from pip._internal.commands.completion import CompletionCommand
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/site-packages/pip/_internal/commands/completion.py", line 6, in <module>
    from pip._internal.cli.base_command import Command
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 18, in <module>
    from pip._internal.download import PipSession
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/site-packages/pip/_internal/download.py", line 38, in <module>
    from pip._internal.utils.glibc import libc_ver
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/site-packages/pip/_internal/utils/glibc.py", line 3, in <module>
    import ctypes
  File "/usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
ImportError: Error loading shared library libffi.so.6: No such file or directory (needed by /usr/local/lib/pyenv/versions/3.6.8/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so)

Hi there! I released a version yesterday with a fix for this. I added the shared libraries and also libffi-dev. I ran your import statement from _ctypes import Union, Structure, Array and it worked.
Feel free to reopen if you are still finding some issue. Thanks for the report.


Enable Error Reporting API as part of provisioning script

We need to manually enable the Error Reporting API to get it to work in Sandbox. This should be automatically enabled by the provisioning

Error Reporting API is actually enabled in the script. The page doesn't show up in the Cloud Console because we are not reporting any errors explicitly in our demo code so the module never gets an input. This issue has been converted to #131.


doesn't work with atom 1.12

I'm using windows 10, configured the package to use git bash as the exectuable and it all worked well for some time.
However with the new atom 1.12 beta it is just opening a new panel but the shell inside is not started.
there are no errors in the console.

there is an error when opening the console
task.coffee:86 Cannot find module '..\bin\win32\ia32.m49.node' Error: Cannot find module '..\bin\win32\ia32.m49.node'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous>

+1

Have the same issue after upgrading to Atom 1.12 on MacOSX,
task.coffee:86 Cannot find module '../bin/darwin/x64.m49.node' Error: Cannot find module '../bin/darwin/x64.m49.node'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)

then after this appears I get this error,
Cannot read property 'bind' of null TypeError: Cannot read property 'bind' of null
    at process.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/task-bootstrap.js:82:23)
    at emitTwo (events.js:106:13)
    at process.emit (events.js:191:7)
    at process.nextTick (internal/child_process.js:719:12)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

probably need to upgrade nan but I'm not sure if this project is still maintained which is unfortunate.

Sometimes perfection doesn't need an update lol.  Give em some time, coming from a software engineer background myself, I believe this is ran by company so they'll probably need to schedule time for one of their engineers to check it out during one of their next sprints.

I think this is the same issue I have. On opening a terminal I get a console warning:
Cannot find module '../build/Release/pty.node'

Which it says originates in task.coffee:85 (file:///Users/distiller/atom/out/app/src/task.coffee) - presumably from some build process as my user is not distiller.
That is followed by an error stacktrace:
task.coffee:86 Cannot find module '../bin/darwin/x64.m49.node' Error: Cannot find module '../bin/darwin/x64.m49.node'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/alexrussell/.atom/packages/platformio-ide-terminal/node_modules/pty.js/lib/pty.js:18:9)
    at Module._compile (module.js:541:32)
    at Object.value [as .js] (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/compile-cache.js:201:21)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/alexrussell/.atom/packages/platformio-ide-terminal/node_modules/pty.js/index.js:2:18)
    at Module._compile (module.js:541:32)
    at Object.value [as .js] (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/compile-cache.js:201:21)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/alexrussell/.atom/packages/platformio-ide-terminal/lib/process.coffee:1:7)
    at Object.<anonymous> (/Users/alexrussell/.atom/packages/platformio-ide-terminal/lib/process.coffee:1:1)
    at Module._compile (module.js:541:32)
    at Object.value [as .coffee] (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/compile-cache.js:201:21)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/task-bootstrap.js:110:13)

Which it says originates in task.coffee:86 (file:///Users/distiller/atom/out/app/src/task.coffee)
And then after that another error stacktrace:
Cannot read property 'bind' of null TypeError: Cannot read property 'bind' of null
    at process.<anonymous> (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/task-bootstrap.js:82:23)
    at emitTwo (events.js:106:13)
    at process.emit (events.js:191:7)
    at process.nextTick (internal/child_process.js:719:12)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Which it says also originates in task.coffee:86 (file:///Users/distiller/atom/out/app/src/task.coffee)
Screenshot for full console details.

Atom 1.12.0-beta3, OSX 10.11.6.
Is it possible it just failed to build some native module on install (there was no error - popup or console - on install)?

I see that we will have a tons of problems with new Atom 1.12. They switched to new Electron and other packages that require new NAN and other things. The pty.js depends on obsolate winpty that doesn't work with new nan 2.3.5. I can rebuild all binaries for Unix but need to think what to do with Windows users.
Please don't use Atom 1.12 and wait when we preapre all PTY binaries.

Thanks for the update.
v8 upgrade will happen every now and than so it is always best to use latest nan to ensure you are prepared for those upgrades while still supporting older versions.

Can't use Atom 1.11 because it breaks some mandatory packages.

See also https://github.com/jeremyramin/terminal-plus/pull/364

It may help some but I used the stand alone windows exe and installed platformio-ide-terminal. That seems to work, so far.

@alexrussell I'm seeing the same error as you on OSX, Atom 1.12-beta7: Cannot find module '../bin/darwin/x64.m49.node'. What did you end up doing as a workaround?

Wow.... 12 comments... multiple ups ( 👍 )
Need to resovle this issue...
P.S: Is here someone with Ubuntu?

@kachkaev haha nice workaround :) And no I didn't find anything that I found particularly satisfactory - like you I'm just using separate terminals for now.
@ivankravets from the looks of comments on both this and the original terminal-plus package (as well as other people's forks) it's all about updating the version numbers (commit references) for the dependent packages pty.js and term.js (I think actually just pty.js). But other than that (presumably they need to have native modules built for each platform and something needs tweaking and that's why the updates are required) I don't know much of the root of the issue.

@alexrussell we have own PlatformIO's fork of PTY with pre-built binaries. It allows to use PlatformIO IDE Terminal on the machine where compiler is not installed for gyp.
Yes, I know that we should update nan dependcy in pty.js but it will break WinPTY. But...!!! We have great news!  Daniel Imms (@Tyriar) from @microsoft re-forked PlatformIO's PTY and added support for nan 2.2.1! See https://github.com/Tyriar/pty.js/commits/prebuilt
As result, we've just succesfully compiled PTY.JS for Windows and tested on Windows 8/10 and are working on other binaries for macOS & Linux.
Stay tuned! 😊 Also, don't forget to try http://platformio.org 😆

A-ha good news.
As for trying PlatformIO, I'd love to play around with and learn new things but I have enough on my plate at the moment! :)

PlatformIO IDE Terminal 2.2.1 is out!
P.S: Atom 1.12 for Linux is not ready. Please comment here if you are Ubuntu owner and would like to help us.

Awesome!

(macOS 10.12.1, Atom 1.12-beta 7)

works good for me as well. thanks.

Glad to help 😃 I'm planning on cleaning up the pty.js situation and improving Windows support soon. Follow https://github.com/Microsoft/vscode/issues/13625 if you want to track that development.


Feat/work calculator

Issue Id you have worked upon -
Work Calculator #415
Briefly explain your program logic -
This calculator takes input of force and displacement and returns output for Work in Joules, Kilowatt-hours, Newton-metres etc.
Screenshots(Attach 2 screenshots of your own input and output) -

By raising this PR I affirm that -

[x] My code follows the guidelines of this project.

[x] I have performed a self-review of my own code.

[x] I have commented my code.

[x] My code gives the correct output.

[x] I affirm that I strictly follow contributing guidelines and code of conduct.

Congratulations 🎉 @aditish11 on your contribution.
Thanks for adding value to this repository. 😊
Let's celebrate this fest 😃 by providing more developers 👨💻👩💻 an opportunity to contribute. Help us make this repository reach far and more by sharing this to your friends and colleagues.
Your efforts can make difference.

Hey 👋, may you also encourage us by clicking the star icon on the repository main page. ⭐


publish docker image

Current versions of concourse CI allow new resource types to be integrated automatically if a docker image is published. No change of the deployment is needed.
Please publish such a container/image to ease the integration of slack-notification resource.
See here for details: http://concourse.ci/configuring-resource-types.html
Thank you very much.

The image for this resource type exists in thein the cfcommunity repo.


Events page

The events page gets too long and slow because of the daily events.

[ ] Add pagination.

[ ] Update/refactor the rake tasks to look for the correct dump file regardless of the pagination page.

The pagination was ordering the events in a DESC order; as a result the latest created event was on top of the page.
The rake task was getting from the events page response the last event that happened to be on the same page and at the end (bottom) of the page.
We need to make sure when we apply the pagination that we will adjust all the rake tasks that look for an event to be the correct event based on the order of the pagination and across the pages of the pagination.
example task: https://github.com/pulibrary/marc_liberation/blob/356503c58ab51eb7dcf53f79b190dd7cb01f05de/lib/tasks/orangeindex.rake#L148

closing in favor of https://github.com/pulibrary/bibdata/issues/2185


Fix #53

Added Surface RT support with automatic detection. Fixes #53
Tested on my Surface RT.

Please release a new version (so that Surface users can easily install with pip) when merged.

Done :)

Any updates? I am not sure why the GitHub build failed. The software seems to work without an issue.

you didn't run black, click on "Details" next to the red X

Oh, I didn't know about black before. Finally, done :)

Can you please release a new version and push it to pypi?


请问关于长度截断

Reminder

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

Reproduction
请问关于SFT中输入数据的长度截断长度在哪里设置？默认是多少？谢谢！
Expected behavior
No response
System Info
No response
Others
No response

cutoff_len 默认 1024


unable to resolve @react-native-community/hooks

undefined Unable to resolve module @react-native-community/hooks from App.js: @react-native-community/hooks could not be found within the project or in these directories:
..\node_modules@react-native-community

I am having the same problem can anyone help ?

undefined Unable to resolve module @react-native-community/hooks from App.js: @react-native-community/hooks could not be found within the project or in these directories:
..\node_modules@react-native-community

Did the problem solved ?


Updates for RC1

Update gradle versions. Upgrade navigation to RC1 and fix argument. bundle issue. Standardize gradle dependencies.

This should probably also upgrade to 1.0.0-rc02, which supersedes rc01


CancelOrder and specs. Added orderFills and orderCancels getters to C…

…oreState. Missing from this is logic reconciling fill and cancel amounts against openOrder amounts. That is to follow in the next PR.

Pull Request Test Coverage Report for Build 401

7 of 7 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 389:
0.0%

Covered Lines:
189

Relevant Lines:
189

💛  - Coveralls

Squash and rebase


[Feature]: Support for Kubernetes 1.29

Is there an existing issue already for this feature request/idea?

[X] I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.

What problem is this feature going to solve? Why should it be added?
Kubernetes 1.29 has been released on Dec 13, 2023. CloudNativePG is not supporting it.
Describe the solution you'd like
We should add support for Kubernetes 1.29. Possibly before releasing 1.22, if reasonably possible. Otherwise, wait for version 1.22.1.
Describe alternatives you've considered
N/A
Additional context
Backport only if easier to maintain.
Backport?
No
Are you willing to actively contribute to this feature?
No
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Given that kind does not have yet the 1.29 image, I don't think we can manage to add support for Kubernetes 1.29 to CloudNativePG 1.22.0 - and wait for 1.22.1

Kind for 1.29 has been released.
https://hub.docker.com/layers/kindest/node/v1.29.0/images/sha256-54a50c9354f11ce0aa56a85d2cacb1b950f85eab3fe1caf988826d1f89bf37eb?context=explore

Everything required was merged


Add script to run on launch to check for repo updates

Perhaps it would be a good idea to have the script start an asynchronous check for updates and set a flag or a message that displays on next launch, so as to not interrupt the user (my) workflow.

See DOTFILES-1


Unable to create correct video due to error: "x264 encoder error: height not divisible by 2"

When the desktop resolution is not divisible by 2 the codec throws an error: "x264 encoder error: height not divisible by 2" and doesn't create correct video file.

https://github.com/SmartBear/testcomplete-videorecorder-extension/commit/31df5d23cd91150d2207f598ae61c8023a06fd98


AngularFireList: manipulate before render in ngOnInit()

Hi, new in the community, hope to follow the instructions properly.
Versions
"angularfire2": "^5.0.0-rc.6",
"firebase": "^4.10.1",
"ionic-angular": "3.9.2",
Problem
I have a simple firebase database with this structure

As you can see there is an orders entity, where every individual order has a property "tienda", which Id belongs to an element user, of the users entity. Both entities are properly retrieved and stored...

ngOnInit() {
    this.orders = this.firebaseProvider.getOrders();
    this.shops = this.firebaseProvider.getShops();
}

They are also properly printed separately in 2  with the proper *ngFor.

As you can imagine what I would really like to show is only 1  with both lists mixed, and an  for every order showing {{ shop.payload.val().name }} instead of {{ order.payload.val().tienda }}, or in other words showing the name instead of the code.
I have tried with several things:

a combination of *ngFor nested, it works but with some displaying errors
tried to manipulate the list (orders) after retrieving it (this.orders = this.firebaseProvider.getOrders();), but I can't understand why is not possible, tried to use for example "this.orders.length" but "undefined" is printed

Any idea of how to do it?, is it possible to throw complex queries to Firebase like an SQL JOIN between tables?, should I change my DB design?.
Thanks in advance.

Hey @ccosme! Stackoverflow is the best place for these kind of questions, I recommend posting there in the future.
You need to join together these observables into a single observable however. I would also recommend not returning your observables as functions because you can easily end up subscribing to different observables and creating race conditions in your view.
    const orders$ = this.firebaseProvider.getOrders();
    const shops$ = this.firebaseProvider.getShops();
    this.vm = combineLatest(orders$, shops$, [orders, shops] => ({ orders, shops }))
      .pipe(map(({ orders, shops }) => {
         return // the joined result here
      });

I will, of course, thank you so much, will try your code :)

I followed these exact steps but my data is always returned as a null. I have a few of these calls in an array
this.firebasePrvd.initObject(feeds/group/${this.groupId}/${feedItemId});
Observable.combineLatest(tempArray).pipe(map((res: any) => {
console.log(res)
})
it never fires.  I am only asking here cause I cant find a solution on the web.


Repository: Add New Contact allows for adding users without emails

Add New Contact feature under Repository > PT Providers allows for adding new users to the DB who have no emails.
Seem image trail below

User's so added show up under Configure > PT Managers.
NB: the names specified under Contact Name: on screed 3 above appear here in both the firstname and last name field. (At the least this will result in data inconsistency).

Done


Add http methods support

Added ability to send requests for various types (:GET, :POST etc)
Resolve #20

:+1:

looks good, thanks!


Nested filtering with child element property and collection combination

Version
2.7.1
Details
Hi,
I'm having a problem with a nested collection filtering. Take for example this class structure:
public class Root
{
    public Child1 Child1 { get; set; }
    public IEnumerable<Child2> Child2List { get; set; }
}

public class Child1
{
    public IEnumerable<Child2> Child2List { get; set; }
}

public class Child2
{
    public string Name { get; set; }
}

Then create mapping like this:
var mapping = new GridifyMapper<Root>()
            .AddMap("Child2Name", x => x.Child2List.Select(c => c.Name)) // Works fine
            .AddMap("Child2NameNested", x => x.Child1.Child2List.Select(c => c.Name)); // Throws exception

Then generate filtering expression.
new GridifyQuery {Filter = "Child2NameNested=name"}.GetFilteringExpression(mapping);

When I try to get the filtering expression, the Gridify.GridifyFilteringException: Invalid expression is thrown.
Would it be possible to add support for this type of nested filtering?

Hi @MichalVlcek,
The problem is solved in v2.7.2.
thank you for the feedback.

Hello, thanks for quick reaction and fix!
The expression is now generated properly, but unfortunately filtering using that generated expression still doesn't work.
Example:
Mapping and classes are the same as in the example above.
var rootList = new List<Root>()
        {
            new Root()
            {
                Child1 = new Child1()
                {
                    Child2List = new List<Child2>()
                    {
                        new Child2() { Name = "name" },
                        new Child2() { Name = "otherName" }
                    }
                }
            }
       };

Then calling:
rootList.AsQueryable().ApplyFiltering("Child2NameNested=name", mapping).ToList();

Throws this exception:
System.InvalidOperationException: variable 'x.Child1' of type '….Child1' referenced from scope '', but it is not defined
   at System.Linq.Expressions.Compiler.VariableBinder.Reference(ParameterExpression node, VariableStorageKind storage)
   at System.Linq.Expressions.Compiler.VariableBinder.VisitParameter(ParameterExpression node)
   at System.Linq.Expressions.ParameterExpression.Accept(ExpressionVisitor visitor)
   at System.Linq.Expressions.Compiler.VariableBinder.Visit(Expression node)
   at System.Linq.Expressions.MemberExpression.Accept(ExpressionVisitor visitor)
   at System.Linq.Expressions.Compiler.VariableBinder.Visit(Expression node)
   at System.Linq.Expressions.ExpressionVisitor.VisitBinary(BinaryExpression node)
   at System.Linq.Expressions.BinaryExpression.Accept(ExpressionVisitor visitor)
   at System.Linq.Expressions.Compiler.VariableBinder.Visit(Expression node)
…

I think I managed to solve the issue, please try v2.7.3 and let me know if the problem is solved.
thank you

It seems like it works great, thanks :)


Card no longer works after 2024.1.6 HA update

Since I updated my HA to 2024.1.6 card doesn't work and shows only temp/hum (see picture)

Configuration hasn't changed of course:

Could you please open the developer tools in your browser (F12 on Chrome/Firefox), switch to "Console" tab, and reload the page to look if the card throws out an error?
You should see something like this (Firefox):

I've the same HA version and checked that the card is working as usual, either with the Default Theme or the others installed

Could you please open the developer tools in your browser (F12 on Chrome/Firefox), switch to "Console" tab, and reload the page to look if the card throws out an error?
You should see something like this (Firefox):

I've the same HA version and checked that the card is working as usual, either with the Default Theme or the others installed

I see same as you

ok I've a good news, it works back but I had to add the line "show_index: ALL" which should not be mandatory, and it was not there before.
Now I tried to add it manuallay and the card works as it should...

fixed in readme


Align TypeScript Urql plugin with React Apollo

Close #4494

Moved it here: https://github.com/dotansimha/graphql-code-generator/pull/4517  (with tests and relevant changeset in order to make sure we are bumping major version of this plugin).


Add installation step in the CMakeLists.txt

This is a header only library, so just need to copy the header file into a project, but we should install the directory wilderfield to keep usage consistent...
#include <wilderfield/priority_map>

Done


Set mode 755 on LaurineGenerator.swift

I have set mode 755 on the script file so that I can use this repo as a Git submodule without needing to change the mode manually at time I pull a new version.

Makes sense ; Though I will still keep the code in example to have the chmod, I've seen different problems emerge occasionally on different systems when omitted.
Have a nice day
Jiri

On the sidenote, please use JiriTrecak:development for future PR - I will specify it in README today.

Cool. The only reason I didn't use development was that it was behind master when I fetched, but I see you've updated it now.


Fixing  objc_msgSend([UIColor class], selector); issue with Cocoapods 0.36

We started to the following compile issue with NUI when we updated to Cocoapods 0.36.
error: too many arguments to function call, expected 0, have 2
We were able to work around this issue by casting objc_msgSend to a specific function pointer type as described here: http://stackoverflow.com/questions/25852079/in-xcode6-gold-master-using-objc-msgsend-now-throws-a-syntax-error-saying-the-n

Thanks!


Awesome! But can't change color schemes

In the config file there are some color schemes defined. I can't seem to find a way to specify which one to use. Maybe you could make this more obvious.

There's a colorScheme property for profiles in the profiles.json file. Documentation can be found here: SettingsSchema.md


Move Java Converters from Paper to Shared

The following converters are defined in the enchanted-paper module, but should be in enchanted-shared:

TimeUnit
Month
DayOfWeek
UUID
Pattern
java.awt.Color

981b60e3ea13e491a7f9de67b486b76ed6c61227


getUserSettings and setAccepterDisclaimer RPCs

r? @zapu @patrickxb

I'll do the review, thanks

@zapu thanks for the comments! changed to use named return vars. PTAL

@zapu sounds good to me!


i have Problem in spacing while scrolling segments or controller in left side and right side.

After scroll left side.

Also i can't set delegate method of scrollview. please give me any solution about this issue and it's very urgent.

@pradipibl This is not an issue. You are getting the white space while scrolling the left most and right most side as the white space is the background color.

@subinspathilettu ,
Yes you are right but how we can remove this space, We can't set this space and also have in your demo project in GitHub while you add multiple segments means more then 5-6 segment and the n you can see this issue.

@pradipibl I have published a new version (1.3.9) and added a property, 'segmentBounces' to set the content view bounces.

@subinspathilettu
Thank you.. very much for fixed my issue in your product....

:)


Support Custom Illos in BlankSlate Component

Help Scout has a new illustration library: hsds-illos. These illustrations are from our design system and meant to be imported into any project. We should be able to mix and match them with hsds-react components as needed.
This update adds support for using illustrations from our illustration library with the BlankSlate component. Currently, the BlankSlate component leverages the Illo component in this library, which includes a small set of illustrations. I recommend that we deprecate the illoName and illoSize properties on the BlankSlate component in favour of this more flexible and maintainable approach of using the illustration library as the source.
Below is an example Blank Slate with an illustration from our separate illustration library.

For testing and Storybook purposes, I have included the hsds-illos library as a dev dependency. It does not ship with this library and must be included separately. It is a peer dependency, but because it is not required, should not be listed as one.

Pull Request Test Coverage Report for Build 2327

7 of 7 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 2322:
0.0%

Covered Lines:
11314

Relevant Lines:
11314

💛  - Coveralls


feat: improve README

Gravitee.io Automatic Deployment
🚀 A prerelease version of this package has been published on Gravitee's private artifactory, you can:

use it directly by updating your project with version: 1.1.1-doc-improvment-SNAPSHOT
download it from Artifactory here

:tada: This PR is included in version 1.1.2 :tada:
The release is available on:

1.1.2
GitHub release

Your semantic-release bot :package::rocket:


on windows, placeholder decorations after error commands are one line too high

This looks related to resizing - doesn't repro in an unsplit terminal

Same root cause: https://github.com/microsoft/vscode/issues/153476


Versions added to each required lib. Requirements separated...

Resolves CivicKnowledge/ambry#14, CivicKnowledge/ambry#13.

Kazbek, thanks. The changes look good, although the merge branches should be for the develop branch.  It would be more consistent if both the from and two branches are develop, but it really only matters that the branch on the CivicKnowledge side is 'develop'
I'll merge this one manually, so no need to change it.
eric.

Merged manually to the develop branch.


#27 implement social login api

+1 For this PR, nice feature to have.

@Mir00r, You should consider this PR seriously.

This pull request seems incompatible and hasn't been updated for a long time. Closing it.


'tap' wants to modify Error.stackTraceLimit, fails under SES

I'm trying to use tap to run unit tests in agoric-swingset, under SES (with noTameError: true right now), inside the "start compartment". If an Error is thrown inside a Promise callback, the tap error-printing code attempts to temporarily modify Error.stackTraceLimit, which of course fails because Error is hardened.
The troublesome code is in the stack-utils package, inside index.js around line 102 and 109:
StackUtils.prototype.captureString = function (limit, fn) {
  if (typeof limit === 'function') {
    fn = limit;
    limit = Infinity;
  }
  if (!fn) {
    fn = this.captureString;
  }

  var limitBefore = Error.stackTraceLimit;
  if (limit) {
    Error.stackTraceLimit = limit;
  }

  var obj = {};

  Error.captureStackTrace(obj, fn);
  var stack = obj.stack;
  Error.stackTraceLimit = limitBefore;

  return this.clean(stack);
};

With this in place, tap explodes when it attempts to report a test failure in my code (and it does not get a chance to report any of the successes):
$ yarn test
yarn run v1.22.4
$ tap --no-coverage --reporter specy test/**/test*.js
test/test-ses.js 2>
test/test-ses.js 2> /home/warner/stuff/agoric/agoric-sdk/node_modules/stack-utils/index.js:102
test/test-ses.js 2>     Error.stackTraceLimit = limit;
test/test-ses.js 2>                           ^
test/test-ses.js 2> /home/warner/stuff/agoric/agoric-sdk/node_modules/stack-utils/index.js:1
test/test-ses.js 2> TypeError: Cannot assign to read only property 'stackTraceLimit' of function 'function Error() { [native code] }'
test/test-ses.js 2>     at StackUtils.captureString (/home/warner/stuff/agoric/agoric-sdk/node_modules/stack-utils/index.js:102:27)
test/test-ses.js 2>     at TAP.sub (/home/warner/stuff/agoric/agoric-sdk/node_modules/tap/lib/test.js:240:25)
test/test-ses.js 2>     at TAP.test (/home/warner/stuff/agoric/agoric-sdk/node_modules/tap/lib/test.js:274:17)
test/test-ses.js 2>     at Object.<anonymous> (/home/warner/stuff/agoric/agoric-sdk/packages/import-bundle/test/do-import.js:30:5)
test/test-ses.js 2>     at Generator.next (<anonymous>)
test/test-ses.js 2>     at Object.<anonymous> (/home/warner/stuff/agoric/agoric-sdk/packages/import-bundle/test/test-ses.js:1)
test/test-ses.js 2>     at Generator.next (<anonymous>)
test/test-ses.js

If I comment those Error.stackTraceLimit =  lines out, my test's actual error is revealed:
$ yarn test
yarn run v1.22.4
$ tap --no-coverage --reporter specy test/**/test*.js
test/test-ses.js 1> go
test/test-ses.js
  test import
    ✖ added is not defined

      stack: |
        Object.f4 (test/bundle1.js:24:23)
        testBundle1 (test/do-import.js:26:17)
        async Test.testImport (test/do-import.js:41:3)
      at:
        line: 24
        column: 23
        file: test/bundle1.js
        function: Object.f4
      type: ReferenceError
      tapCaught: returnedPromiseRejection
      test: test import

  ✓ ns1.f1 getExport ok
  ✓ ns1.f2 getExport ok
  ✓ ns2.f1 getExport ok
  ✓ ns2.f2 getExport ok
  ✓ ns2.f3 getExport ok

I don't know what we can do about this, but I'm collecting a list of libraries that misbehave when run under SES in the hopes we can tame them or find a workaround.

Assigned it to myself. Work already started at https://github.com/Agoric/SES-shim/pull/11 + https://github.com/Agoric/SES-shim/tree/delta-tame-error . If there are no surprises, I can complete this.

closing this as a duplicate of #8


Nit: Consider aliasing div to divide.

Long.js is amazingly consistent about names internally, favoring fully spelled methods over abbreviations. Div over divide is the only inconsistent name. Would you entertain an alias?

Thanks.


rpmbuild fails on Fedora 32

I'm following the instructions at https://opae.github.io/latest/docs/install_guide/installation_guide.html and trying to build the rpms for Fedora 32.
When running this command, I get the errors below.
$ cd opae-sdk/packaging/opae/rpm
$ ./create fedora
Errors:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/brian/opae-sdk/packaging/opae/rpm/rpmbuild/BUILDROOT/opae-2.1.0-1.fc32.x86_64
error: Installed (but unpackaged) file(s) found:
/usr/lib/opae-2.1.0/opae-config-version.cmake
/usr/lib/opae-2.1.0/opae-config.cmake
/usr/lib/opae-2.1.0/opae-targets-relwithdebinfo.cmake
/usr/lib/opae-2.1.0/opae-targets.cmake
RPM build errors:
File listed twice: /usr/lib/.build-id/b8/e0e176bef6cc46ac0d9d542613d3eef9108e90
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/PKG-INFO
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/SOURCES.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/dependency_links.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/entry_points.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/requires.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/top_level.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/init.py
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/pycache
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/pycache/init.cpython-38.opt-1.pyc
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/pycache/init.cpython-38.pyc
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/_opae.cpython-38-x86_64-linux-gnu.so
Installed (but unpackaged) file(s) found:
/usr/lib/opae-2.1.0/opae-config-version.cmake
/usr/lib/opae-2.1.0/opae-config.cmake
/usr/lib/opae-2.1.0/opae-targets-relwithdebinfo.cmake
/usr/lib/opae-2.1.0/opae-targets.cmake
first rpmbuild failed.. exiting

#2559 Should fix this

Thanks for the update! I tried it out but am now getting a slightly similar error, but not exactly the same. If it's helpful, I can attach the full log.
git rev-parse HEAD
8e879d158a60e09427338dc72fd8bbdd51deb264
./create fedora
[... ]
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/brian/opae-sdk/packaging/opae/rpm/rpmbuild/BUILDROOT/opae-2.1.0-1.fc32.x86_64
error: Installed (but unpackaged) file(s) found:
/usr/include/opae/plugin/adapter.h
RPM build errors:
File listed twice: /usr/lib/.build-id/b8/e0e176bef6cc46ac0d9d542613d3eef9108e90
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/PKG-INFO
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/SOURCES.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/dependency_links.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/entry_points.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/requires.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae.fpga-2.1.0-py3.8.egg-info/top_level.txt
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/init.py
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/pycache
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/pycache/init.cpython-38.opt-1.pyc
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/pycache/init.cpython-38.pyc
File listed twice: /usr/lib64/python3.8/site-packages/opae/fpga/_opae.cpython-38-x86_64-linux-gnu.so
Installed (but unpackaged) file(s) found:
/usr/include/opae/plugin/adapter.h
first rpmbuild failed.. exiting

Fedora32 is legacy.  Code is packaging correctly with Fedora35, Fedora37.


Peridot 2.0 Ideas

After a while of thinking about what a peridot 2.0 should look like, I don't think i want to try and compete with Kahlan and PHPUnit. Peridot 1.0 is basically a lite version of kahlan with a smaller community and resources behind it. I don't really see any area that peridot can try to tap into that Kahlan userbase in a way that Kahlan isn't already doing.
The describe-it syntax is very popular in other languages and personally, I do like how expressive the system can be. That being said however, PHPUnit by far is the defacto testing framework and majority of the PHP community resources and integrations revolve around PHPUnit. If kahlan hasn't taken off by now, then it's very likely that the php community won't be ready to rally around a new framework.
Personally, I actually like that the PHP community largely pools our resources into one testing framework. It's very attractive for new comers and also means that the community can focus our efforts on growing the PHPUnit ecosystem instead of dilluting our efforts among competing frameworks.
All that said, I do think there might a space for a new frontend for PHPUnit. A library that piggy backs off the entire phpunit framework but provides a different interface for writing tests with the describe-it syntax that the peridot/kahlan community enjoys.
I think peridot 2.0 would be a good place to explore this integration with phpunit. It'd allow us to focus on the parts of testing framework that are interesting and leave the heavy lifting to phpunit all the while piggy backing off of the wealth of documentation and third party plugins that phpunit provides.
In a similar manner, we'd probably make peridot/leo be just a thin wrapper around the PHPUnit assertions library and include in the peridot 2.0 core.
In the long run, I'd love to see peridot's new phpunit frontend be brought under the fold of PHPUnit with first class support and apart of the phpunit ecosystem instead of a separate library.
Let me know what you all think about this idea, welcome to suggestions :)

Tinkered for an hour on a quick proof of concept, and this might be a lot easier than I initially thought: https://github.com/peridot-php/peridot/commit/4be777aae767245d9f54abcf4f4579c95fc08bda
The branch is peridot-phpunit-poc if you want to pull and test it out.

I agree that there isn't a lot of demand for Peridot any more, unfortunately. It was a fantastic tool at a time when there were few alternatives.
The describe-it syntax-on-top-of-phpunit isn't necessarily a bad idea, but just be aware that that's essentially what https://github.com/danielstjules/pho was, and it also struggled to gain traction.

@ezzatron Interesting, I checked pho, and I don't see any reference to phpunit. Maybe i'm missing something?

Basically, peridot 2.0 concept would basically just be a plugin to phpunit and hopefully in the future pulled under the namespace of PHPUnit as a first class citizen.
https://github.com/Codeception/Specify - this looks similar to what I'm attempting to do, but still doesn't support the full syntax.

Weird... I could have sworn it was pho that was based on PHPUnit, but it seems not.

I wonder if you were thinking of Pest

Hmm, I don't think so. The framework I remember was ancient, from before Peridot existed. But Pest looks pretty cool!


Feature/service cleanup

This PR includes changes to clean up code in service modules.
Changes include

changes to controller exception handling
javadocs
readmes

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: whoswendy:x: Wendy HuWendy Hu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


retry livechannelstatus if not 200

The api may return a 304 (strange non-modified error that happens sometimes) and not pick up live status.
when we try it and get unknownstatus, call the API again to retry.
export const fetchLiveChannel = async (channelId: string): Promise<LiveChannelStatus> => {
  const newApiResponse = await fetch(`${NEW_LIVESTREAM_LIVE_API}/is_live?channel_claim_id=${channelId}`);
  const newApiData = (await newApiResponse.json()).data;

  try {
    if (newApiData.Live === false) {
      return { channelStatus: LiveStatus.NOT_LIVE };
    }
    return { channelStatus: LiveStatus.LIVE, channelData: transformLivestreamData([newApiData]) };
  } catch {
    return { channelStatus: LiveStatus.UNKNOWN };
  }
};

I've had my content page on livestreams get stuck on a blank page at least a few times per week...not sure if it's this issue, or something else. Was hoping this wouldn't happen anymore on the new apis.

Don't think this is an issue anymore, and my problem stemmed from my large account.


jenkins xcodebuild ios

Adds jenkinsfile + uses xcode plugin to build cordova app (please do not merge it yet)

ping @wtrocki

Hey @odra - Please let me know once you are happy to merge.

@wtrocki this is the same jenkinsfile used in other projects - feel free to merge.


Pods on different nodes cannot communicate (flannel/vxlan)

Version:

k3s version v1.17.4+k3s1 (3eee8ac3)
K3s arguments:

/usr/local/bin/k3s server --no-deploy=traefik
Describe the bug

Pods on different nodes cannot communicate. Pods on the same node can.
To Reproduce

Two VMs running Fedora32 server
** Default install
** SELinux disabled
** Grub options: cgroup_memory=1 cgroup_enable=memory cgroup_enable=cpuset systemd.unified_cgroup_hierarchy=0
** Firewall rules added:
firewall-cmd --permanent --add-port=6443/tcp  # kubernetes api
firewall-cmd --permanent --add-port=10250/tcp # kubelet
firewall-cmd --permanent --add-port=8472/udp  # flannel
firewall-cmd --permanent --zone=trusted --add-source=<IP_ADDRESS>/16  # pods
firewall-cmd --permanent --zone=trusted --add-source=<IP_ADDRESS>/16  # services
firewall-cmd --reload
k3s installed on master and worker nodes (<IP_ADDRESS> and .73)
[root@k3s-master ~]# k3s kubectl get nodes
NAME                     STATUS   ROLES    AGE   VERSION
k3s-worker.localdomain   Ready       61m   v1.17.4+k3s1
k3s-master.localdomain   Ready    master   66m   v1.17.4+k3s1

Expected behavior

Pods on different nodes can communicate. Pings to flannel interface IPs on different nodes should work.
Actual behavior

Deployed pods cannot communicate (master -> worker)
Pings to flannel interface don't work either
Whenever I ping from master to worker node I can see ICMP requests arriving at the worker node, but there's no echo reply sent back.
Additional context / logs

Master:
[root@k3s-master ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
<IP_ADDRESS>         <IP_ADDRESS>     <IP_ADDRESS>         UG    100    0        0 enp0s3
<IP_ADDRESS>       <IP_ADDRESS>         <IP_ADDRESS>   U     0      0        0 cni0
<IP_ADDRESS>       <IP_ADDRESS>       <IP_ADDRESS>   UG    0      0        0 flannel.1
<IP_ADDRESS>     <IP_ADDRESS>         <IP_ADDRESS>   U     100    0        0 enp0s3
[root@k3s-master ~]# ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
^C
--- <IP_ADDRESS> ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4090ms

Worker:
[root@k3s-worker ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
<IP_ADDRESS>         <IP_ADDRESS>     <IP_ADDRESS>         UG    100    0        0 enp0s3
<IP_ADDRESS>       <IP_ADDRESS>       <IP_ADDRESS>   UG    0      0        0 flannel.1
<IP_ADDRESS>       <IP_ADDRESS>         <IP_ADDRESS>   U     0      0        0 cni0
<IP_ADDRESS>     <IP_ADDRESS>         <IP_ADDRESS>   U     100    0        0 enp0s3

[root@k3s-worker ~]# tcpdump -i any -nn port 8472
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes
09:18:49.249265 IP <IP_ADDRESS>.59205 > <IP_ADDRESS>.8472: OTV, flags [I] (0x08), overlay 0, instance 1
IP <IP_ADDRESS> > <IP_ADDRESS>: ICMP echo request, id 4, seq 1, length 64
09:18:50.267200 IP <IP_ADDRESS>.59205 > <IP_ADDRESS>.8472: OTV, flags [I] (0x08), overlay 0, instance 1
IP <IP_ADDRESS> > <IP_ADDRESS>: ICMP echo request, id 4, seq 2, length 64
09:18:51.293035 IP <IP_ADDRESS>.59205 > <IP_ADDRESS>.8472: OTV, flags [I] (0x08), overlay 0, instance 1
IP <IP_ADDRESS> > <IP_ADDRESS>: ICMP echo request, id 4, seq 3, length 64
09:18:52.315312 IP <IP_ADDRESS>.59205 > <IP_ADDRESS>.8472: OTV, flags [I] (0x08), overlay 0, instance 1
IP <IP_ADDRESS> > <IP_ADDRESS>: ICMP echo request, id 4, seq 4, length 64
09:18:53.338992 IP <IP_ADDRESS>.59205 > <IP_ADDRESS>.8472: OTV, flags [I] (0x08), overlay 0, instance 1
IP <IP_ADDRESS> > <IP_ADDRESS>: ICMP echo request, id 4, seq 5, length 64

BTW, as per https://github.com/coreos/flannel/issues/1243#issuecomment-596375224 I did try ip route add <IP_ADDRESS>/16 dev cni0, but that made no difference.
Same behaviour on Fedora31.
On the same hosts, I tried (without k3s installed, so to avoid id clash):
ip link add vxlan1 type vxlan id 1 remote <IP_ADDRESS> dstport 8472 dev enp0s3
ip link set vxlan up
ip addr add <IP_ADDRESS>/24 dev vxlan1

And it worked fine, I could ping vxlan device IPs between the hosts.

@rytis Did you try ethtool -K flannel.1 tx-checksum-ip-generic off ?

I've tried it now (on both sides, master and worker), same effect, no ICMP replies (reqs are appearing on the other node just as before):
[root@k3s-master ~]# ethtool -K flannel.1 tx-checksum-ip-generic off
Actual changes:
tx-checksumming: off
        tx-checksum-ip-generic: off
tcp-segmentation-offload: off
        tx-tcp-segmentation: off [requested on]
        tx-tcp-ecn-segmentation: off [requested on]
        tx-tcp-mangleid-segmentation: off [requested on]
        tx-tcp6-segmentation: off [requested on]
[root@k3s-master ~]#
[root@k3s-master ~]# ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
^C
--- <IP_ADDRESS> ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5111ms

[root@k3s-master ~]# ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
^C
--- <IP_ADDRESS> ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1058ms

It's the peer's IP:
Master:
[root@k3s-master ~]# ip addr show enp0s3
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 08:00:27:15:3a:2a brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global dynamic noprefixroute enp0s3
       valid_lft 63120sec preferred_lft 63120sec
    inet6 fe80::62ef:58e2:63b0:4b7c/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
[root@k3s-master ~]# bridge fdb show dev flannel.1
d6:ad:6b:77:37:eb dst <IP_ADDRESS> self permanent
[root@k3s-master ~]#

Worker:
[root@k3s-worker ~]# ip addr show enp0s3
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 08:00:27:8a:89:53 brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global dynamic noprefixroute enp0s3
       valid_lft 63053sec preferred_lft 63053sec
    inet6 fe80::fc16:8c40:f56d:827a/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
[root@k3s-worker ~]# bridge fdb show dev flannel.1
ca:a3:3a:8f:57:36 dst <IP_ADDRESS> self permanent

@niusmallnan just a bit more info, I just realised that the MAC addresses in FDB don't correspond to anything on those two machines:
Master:
[root@k3s-master ~]# bridge fdb show dev flannel.1
d6:ad:6b:77:37:eb dst <IP_ADDRESS> self permanent
[root@k3s-master ~]# ip addr|grep ether
    link/ether 08:00:27:15:3a:2a brd ff:ff:ff:ff:ff:ff
    link/ether 6a:c0:83:56:f6:88 brd ff:ff:ff:ff:ff:ff
    link/ether da:ce:08:e7:19:e4 brd ff:ff:ff:ff:ff:ff
    link/ether 2e:44:8c:0e:e1:c6 brd ff:ff:ff:ff:ff:ff link-netns cni-9ab7f860-f12f-cb12-0252-1428ff7fa8e9
    link/ether 3e:4e:8e:21:6a:c9 brd ff:ff:ff:ff:ff:ff link-netns cni-082af5cd-cbdf-4307-0986-85464bfeebdb
    link/ether 8a:42:06:6c:38:3a brd ff:ff:ff:ff:ff:ff link-netns cni-e35503a9-917a-3cfc-ac70-0044221c6ec9
    link/ether 4e:c1:b8:a4:7f:8c brd ff:ff:ff:ff:ff:ff link-netns cni-8554fc99-11f7-b82a-0185-aef6fa240da0

Worker:
[root@k3s-worker ~]# bridge fdb show dev flannel.1
ca:a3:3a:8f:57:36 dst <IP_ADDRESS> self permanent
[root@k3s-worker ~]# ip addr|grep ether
    link/ether 08:00:27:8a:89:53 brd ff:ff:ff:ff:ff:ff
    link/ether 26:2f:80:14:19:61 brd ff:ff:ff:ff:ff:ff
    link/ether f6:06:ee:66:1a:cc brd ff:ff:ff:ff:ff:ff
    link/ether 5e:7a:08:82:83:d6 brd ff:ff:ff:ff:ff:ff link-netns cni-7b70e9eb-c375-aae2-dff4-10900fdcdbbb
    link/ether 42:76:3c:e8:07:ed brd ff:ff:ff:ff:ff:ff link-netns cni-e915e880-0f0d-c8b3-be9b-9d0fb83a53c6
    link/ether 1e:10:c4:a6:72:50 brd ff:ff:ff:ff:ff:ff link-netns cni-bedcfc25-37db-b656-f5ea-44d527581c6d

What are they?..

Check if you enabled masqerading and iptables-legacy.
sudo firewall-cmd --add-masquerade --permanent
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
For a more complete list of firewall rules and required open ports [https://rancher.com/docs/rancher/v2.x/en/installation/options/firewall/](look here).


PWA install prompt will show + Fixed images in README

Fixed images in README.md, added Microsoft Edge into the table
Added license information to README.md

Added the required "short_name" into app manifest, users can now see the installation prompt.


Can you guys add SPF(Sender Policy Framework) auth function/argument to this framework?

Here is an example:
https://github.com/sdgathman/pyspf#:~:text=The RFC 4408/7208 compliant API

Without the auth, we can't really be sure who send an email, which could be dangerous.

And how can I get the source IP info of an email from aiosmtpd?

All I need is to make sure if an email was sent from an IP that was owned by a domain the email claimed to be.
In another words, if it is a forged email, we directly drop it without processing.
I even think that you guys could make it an argument like: drop_fake_source_email=True

Hi @yingshaoxo ,
You can get the connecting IP address from the Sessions peer value.
Once you have this, you can use any existing python SPF library (pyspf for example) to validate the SPF result.
Best,
Magnus

OK, thank you
On Wed, Mar 22, 2023, 3:42 PM Magnus Eén @.***> wrote:

Hi @yingshaoxo https://github.com/yingshaoxo ,
You can get the connecting IP address from the Sessions peer
https://aiosmtpd.readthedocs.io/en/latest/concepts.html#Session.peer
value.
Once you have this, you can use any existing python SPF library (pyspf
https://pypi.org/project/pyspf/for example) to validate the SPF result.
Best,
Magnus
—
Reply to this email directly, view it on GitHub
https://github.com/aio-libs/aiosmtpd/issues/371#issuecomment-1479046872,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEDE7LOE7FTBU6E6ZVJ3GLLW5KUOHANCNFSM6AAAAAAWDD367E
.
You are receiving this because you were mentioned.Message ID:
@.***>


Allow per-app config of DeviceCheck and SafetyNet

Re, un-re-do

/assign @mikehelmick
This is actually a relatively small change given the recent refactor.

/lgtm
/approve


Looks like Google have potentially changed or retired the API

Been working like a dream, but started doing this 2 days ago
[12-Nov-2019 09:00:26 UTC] PHP Fatal error:  Uncaught exception 'Exception' with message 'Error during GET of '/v2/mobile/user.': ' in /home/XXXX/public_html/Nest/nest-php-api.php:117
Stack trace:
#0 /home/XXXX/public_html/Nest/nest-php-api.php(84): Nest->curlGet('/v2/mobile/user...')
#1 /home/XXXX/public_html/Nest/nest-php-api.php(63): Nest->getHotWaterStatus()
#2 /home/XXXX/public_html/Nest/example_boost_hot_water.php(18): Nest->setHotWaterBoost(60)
#3 {main}
thrown in /home/XXXX/public_html/Nest/nest-php-api.php on line 117
Will look at adding some debugging later - or is it just me ?

I had a look this morning and google have stuffed it. It appears that google has changed the login format and that has now broken the script. To make things worse, they have added a reCapcha that will be more difficult to bypass. I feel this might be the end, but will do some digging next week.

Did some digging and found this.
The following API has the hot water tools in there! It's actually pretty amazing.
https://github.com/gboudreau/nest-api
To get it working with Nest login, just need to do the following.
https://gist.github.com/gboudreau/8b8851a9c99140b6234856bbc80a2d24


Spec re: dynamic param resolution for urls, url params, and query params

Migrated from GitLab: https://gitlab.com/meltano/sdk/-/issues/25
Originally created by @aaronsteers on 2021-01-23 02:52:21

The following discussion from !1 should be addressed:

[x] @DouweM started a discussion:

I was initially confused by this name, thinking it returned a dict of key/values that would be used as the URL's query params (e.g. {"foo": "bar"} becomes foo=bar), rather than variables that can be used in the URL template.
What do you think about path_variables (if we rename url_suffix to path) or url_variables? That assumes this'd also become a property rather than an explicit getter.

The way it's currently written, Stream.get_params() as the docstring says:
Return a dictionary of values to be used in parameterization.

By default, this includes all settings which are not secrets, along with any
stored values the stream or partition state, as passed via the
`stream_or_partition_state` argument.

The three places something like this is needed:

URL parameterization - for classes based on RESTStream, the path can be dynamically calculated with parent stream keys or hardcoded param values.
REST params and payloads - for RESTStream URL calls which require params and for GraphQL when variables play a similar role.
For dynamic SQL queries for classes based on DatabaseStream.

The generic implementation just cleans out any identifiable secrets (to not accidentally leak credentials into external systems) and adds in any bookmark keys which might be relevant based on the context.
    def get_params(self, stream_or_partition_state: dict) -> dict:
        result = {
            k: v for k, v in self.config.items() if not isinstance(v, SecretString)
        }
        result.update(stream_or_partition_state)
        return result

This basically works as-is but I wanted to create this issue to discuss trade-offs of this implementation versus alternatives:

splitting out each use case separately (i.e. url_params, query_params, variables, etc.).
requiring the developer to explicitly declare variable collections for one or more of these use cases.
defaulting to also include secrets, possibly with other mitigation steps or overrides available.

View 5 previous comments from the original issue on GitLab


timeline SUMMARY_NODE

Description
Simple approach for the timeline summary nodes.
On what platform have you tested the change?

[ ] Android - Emulator
[ ] Android - Physical device
[ ] iOS - Emulator
[ ] iOS - Physical device

Screenshots
EG screenshot with existing data for mock :

Checklist

[ ] I have updated mockServer
[ ] I've added analytics as relevent
[ ] I have run npm test
[ ] I have run npm run test:i18n

Out of scope and potential follow-up
Is there any related changes that you plan to do in a follow-up PR or voluntarily excluded from the scope?

NICE!


test: Add integration tests for EMR

Spark integration has integration tests for EMR

Problem
We are missing the integration tests for EMR. Without them some types of bugs remain undetected and we may introduce regressions without knowing it.
Solution
We should have integration tests. We don't have a sponsor for the AWS infrastructure, so every developer should be able to run them manually using their infrastructure.
For reviewers: Start reading from EmrIntegrationTest class.

Note: All schema changes require discussion. Please link the issue for context.

[ ] Your change modifies the core OpenLineage model
[ ] Your change modifies one or more OpenLineage facets

If you're contributing a new integration, please specify the scope of the integration and how/where it has been tested (e.g., Apache Spark integration supports S3 and GCS filesystem operations, tested with AWS EMR).
One-line summary:
Checklist

[X] You've signed-off your work
[X] Your pull request title follows our guidelines
[X] Your changes are accompanied by tests (if relevant)
[X] Your change contains a small diff and is self-contained
[ ] You've updated any relevant documentation (if relevant)
[X] Your comment includes a one-liner for the changelog about the specific purpose of the change (not required for changes to tests, docs, or CI config)
[ ] You've versioned the core OpenLineage model or facets according to SchemaVer (if relevant)
[ ] You've added a header to source files (if relevant)

SPDX-License-Identifier: Apache-2.0
Copyright 2018-2024 contributors to the OpenLineage project

@arturowczarek can we run "regular" integration tests on EMR, or only special tests otherwise located in the emr_test_jobs directory?

@mobuchowski The loading class locates the files in the specific directory for simplicity. We can extend it if necessary, but passing just the name of the file is convenient, because the name is used to create temporary directory where everything for this test is kept. Otherwise we could have multiple scripts with the same name and they would keep the events under the same location. Alternatively we could have a better strategy for determining the location for the events.

Makes sense, I just think we'd also potentially benefit with running a bunch of "regular" integration tests on EMR regularly.

Yes, it is one of the methods we could further develop these tests.
There is another challenge we have to find a good solution to - managing resources and determining which tests to run. In some tests I'd like to add, there is a need to have two AWS accounts (to have two separate Glue catalogs). It is not common that developers have access to multiple accounts. In such scenarios they have to skip these tests. I'd also like to create some (possibly) Terraform file to create the infrastructure. I'll do it when we have someone to sponsor it.

The parameters are listed in DynamicParameter enum. Most of them have some reasonable defaults (instance size, EMR version, roles which should be present in every account). Only one is required (openlineage.tests.bucketName). Apart from that you have to be authenticated (have ~/.aws/credentials file or use any method described in Default credentials provider chain)


Feature request / idea

Would you be interested adding feature to read & write old airbag modules like 1C0 909 605 B and similar models with siemens HC12 processor with internal eeprom. I have collection of unlock codes somewhere and will find and post here if you like.  Might not be any more difficult than cluster stuff.

Sure, I'll give it a try. I have some airbag modules that I can test with. Just let me know what the unlock codes are and any other info you have.

Would you be interested adding feature to read & write old airbag modules like 1C0 909 605 B and similar models with siemens HC12 processor with internal eeprom. I have collection of unlock codes somewhere and will find and post here if you like. Might not be any more difficult than cluster stuff.

Just a reminder to send me the airbag codes if you'd like me to try to add that feature.


[Feature Request] Check-box selection for Out-GridView

Summary of the new feature/enhancement
When using Out-GridView -PassThru, the user might want to select multiple items. Currently, the user can add a range to selection by holding Shift, and add a particular item to selection by holding Ctrl. It would be much better if the user can do this more easily, without holding a key.

Windows File Explorer provides check-box selection. Out-GridView can implement this, too.

The code was added to PowerShell 7 from Windows PowerShell for backward compatibility only and it is frozen. https://github.com/PowerShell/GraphicalTools is for future

Same here @GeeLaw; if this is about the linked GraphicalTools module, please go ahead and open this issue there as well. 😊


Suspected error?

An error occurred while calculating the COCO Caption score, indicating the position in image_caption.py as shown in the figure. Is this a code error?

Hi, @Shijinghang. What error do you meet? I tried to reproduce it but failed (model: InternVL2-1B). Can you provide more information?

Issue closes due to no response in a long time. Feel free to re-open it when needed.


The default config has a comma at the end

configuration.json in Oni2 installation directory looks like this:
{
  "editor.minimap.enabled": true,
  "editor.insertSpaces": false,
  "editor.indentSize": 4,
  "editor.tabSize": 4,
}

And I think that comma before closing brace makes it fail to parse it.

I've stuck a longer comment over in #524, but the tl;dr of that is that this issue (and #524) should be fixed as a consequence of doing https://github.com/onivim/oni2/issues/356.


x64 backend: fix cmpxchg (don't return RealReg as result).

The current lowering helper for cmpxchg returns the literal RealReg
rax as its result. However, this breaks a number of invariants, and
eventually causes a regalloc panic if used as a blockparam arg (pinned
vregs cannot be used in this way).
In general we have to return regular vregs, not a RealReg, as results of
instructions during lowering. However #4223 added a helper for
x64_cmpxchg that returns a literal rax.
Fortunately we can do the right thing here by just giving a fresh vreg
to the instruction; the regalloc constraints mean that this vreg is
constrained to rax at the instruction (at its def/late point), so the
generator of the instruction need not worry about rax here.
Fixes second issue reported by @bjorn3 in #4234.
cc/fyi @abrown, but I missed this in review (sorry!).

I can confirm this fixes the issue.


Cannot be setup correctly.

When I setup atom-autocomplete-php for drupal7 & 8 it says that the atom-autocomplete-php is not setup correctly. I've installed composer and checked all setting. I can find no problems.

Hello,
Can you put a screenshot of your configuration please ?

Make sure you reference your composer.phar by specifying the full path (e.g. E:\composer.phar). For some reason it ignores the value from PATH at the moment and returns this error instead.

Hello,
No answer, so I close this issue.
Feel free to open a new one if needed.

Dear,
Please allow me to apologize for not being in the office. Sorry…...

On 02.09.2016, at 14:50, Axel Anceau<EMAIL_ADDRESS>wrote:
Hello,
No answer, so I close this issue.
Feel free to open a new one if needed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/Peekmo/atom-autocomplete-php/issues/285#issuecomment-244365911, or mute the thread https://github.com/notifications/unsubscribe-auth/AUJJFvojJMuUT0n6FQT6-yEv24HNohfeks5qmBuKgaJpZM4JoRZ5.


Update to Minecraft 1.19.1

I've enabled the build action, there is a test build there:
https://github.com/KosmX/ModMenu/actions/runs/2750184373

Thank you very much! I didn't see this in time, sorry.


feat: develop Kakarot's Playground

closed in favor of https://github.com/orgs/sayajin-labs/projects/3/views/6?query=is%3Aopen+sort%3Aupdated-desc


Update pulumi-terraform to 65eb36cfeb

This PR updates pulumi-terraform to 65eb36cfeb, and re-runs code generation

Closed via #16


Waves on aurelia-cli project

Checking if the bridge is running with global requirejs and only attach waves if not, makes it work with aurelia-cli. Also tested with webpack and jspm.

Coverage increased (+0.02%) to 95.175% when pulling ec9652f10a913a46db032789d06617dbf7882c80 on Ullfis:waves-amd-check into 56bea20de7a7f6a071cac6755d3096b44bd91bcb on aurelia-ui-toolkits:master.

I'm still a little confused by this comment: https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/168#issuecomment-243081697

yeah.. maybe wait until latest cli can be tested better. Worked with an earlier version.

Coverage increased (+0.02%) to 95.175% when pulling 094c1ae165b81316256e96cbb0577e829a950440 on Ullfis:waves-amd-check into 56bea20de7a7f6a071cac6755d3096b44bd91bcb on aurelia-ui-toolkits:master.

tested on aurelia-cli, webpack and the sample project. Works (on my computer) :see_no_evil:

Took the AMD build condition route. :smile:
Will have to test it, yet so I'm keeping this open.


content addressed replication

Supercedes #45
In this replication variant, pages are replicated based on their content hash. Thus the current state of the file can be computed from the content store (provides access to pages by their content hash) and the current snapshot (list of content hashes).
Hash algorithms

see experiments repo
blake3 is the safest choice which outputs cryptographic 32 byte hashes
polymur is a faster choice which outputs 8 byte hashes at a collision rate of n * 2^-60.2 where n is the input size in bytes

snapshot size
assuming an object size of 4k and a hash output size of 32 bytes, a 1GB database snapshot will consume 8MB
notes on efficient replication

clients always want to update to the latest snapshot
ideally we are able to only store changes to the snapshot rather than re-storing the full snapshot
a tree based structure can allow for efficient structural sharing (conceptually similar to a merkel tree)
blake3 is a tree based hash function that internally computes a tree of hashes over 1kb chunks, and bao is an application of blake3 for verifiable streaming/seeking without needing full access to the data
one of the authors of Blake3 is currently factoring out the needed pieces of the blake3 crate for me to sit my replication algorithm directly on top of it (I think)

Since SQLite changes it's header on every write to the database file, we should consider extracting the header (or simply the first page) out into the snapshot (or just sending the first page along with snapshot updates).


[Question] Estimating the Interior Integral between paper and code

Sorry to bother you, in fact, after reading the paper, I still can't figure out some points, so I try to improve my understanding of the paper by reading the code.

In lines 6 and 7 of the pseudocode, there is a mapping of p to x, but I only see code for sampling light in the code, and I don't see any mapping-related functions.
Then I further checked the sampling code, as shown below, there is only the Jacobian formula, and for the processing of the mapping, it seems to directly let x=p
template <bool ad>
PositionSample<ad> Mesh::__sample_position(const Vector2f<ad> &_sample2, Mask<ad> active) const {
    PSDR_ASSERT(m_ready && m_emitter != nullptr);
    PSDR_ASSERT(m_triangle_info != nullptr);

    PositionSample<ad> result;
    Vector2f<ad> sample2 = _sample2;

    IntC idx;
    std::tie(idx, std::ignore) = m_face_distrb->sample_reuse<ad>(sample2.x());
    sample2 = warp::square_to_uniform_triangle<ad>(sample2);

    TriangleInfo<ad> tri_info;
    if constexpr ( ad ) {
        tri_info = gather<TriangleInfoD>(*m_triangle_info, IntD(idx), active);
        result.J = tri_info.face_area/detach(tri_info.face_area);
    } else {
        tri_info = gather<TriangleInfoC>(detach(*m_triangle_info), idx, active);
        result.J = 1.f;
    }
    result.p = bilinear<ad>(tri_info.p0, tri_info.e1, tri_info.e2, sample2);
    result.n = tri_info.face_normal;
    result.pdf = m_inv_total_area;
    result.is_valid = true;
    return result;
}

Then I looked at the supplementary material of the paper and saw this mapping function 𝒙 = X(𝒑, 𝜋) in the second part of the supplementary material, which is defined as follows for a triangle

Then I got confused again, I mean, what exactly does this mapping represent. For example, in the example given in the first part of the supplementary material, to scale a sphere, define the mapping as X(p, 𝑟 ) = 𝑟p, and then calculate the derivative with respect to r. And for the vertex coordinates (x, y, z) of all triangles we want to optimize for a model. What does 𝜋 in Equation 37 in the pseudocode represent? Scalar time? Or a vector representation of all triangle vertex coordinates? And what is p_i-dot,I can't understand these things, please help me!:sob::sob::sob:

I am also a reader of this paper and project, may my comprehension will help you.
First, variable 'x' in paper means it is a point need to be optimized and can be "moved" by scene parameters, which means it requires a gradient; variable 'p' in paper means it is fixed and can not be "moved" by scene parameters, which does not require a gradient. In this project code, 'x' is computed out by a chain-ruled auto differentiable graph and can not be detached by this computational graph, after calling backward() method, it will get its gradient; and 'p' is a static variable need to be detached with this chain-ruled graph to make it can not be "moved" by scene parameters.
Second, when you are reading boundary integrator codes, you may find only sampled edge point position and its jacobi term need gradient, all other variables are fixed as detached variables, because only sampled edge point position can be optimized and "moved" by scene parameters.

I am also a reader of this paper and project, may my comprehension will help you.
First, variable 'x' in paper means it is a point need to be optimized and can be "moved" by scene parameters, which means it requires a gradient; variable 'p' in paper means it is fixed and can not be "moved" by scene parameters, which does not require a gradient. In this project code, 'x' is computed out by a chain-ruled auto differentiable graph and can not be detached by this computational graph, after calling backward() method, it will get its gradient; and 'p' is a static variable need to be detached with this chain-ruled graph to make it can not be "moved" by scene parameters.
Second, when you are reading boundary integrator codes, you may find only sampled edge point position and its jacobi term need gradient, all other variables are fixed as detached variables, because only sampled edge point position can be optimized and "moved" by scene parameters.
Simply, mapping 'x' to 'p' is according to code "p = enoki::detach(x) ", and mapping 'p' to 'x' means attach variable 'p' to chain-ruled computational graph, but there is no proper corresponding code, if you want to get 'x', only you need to do is just keep it is computed out by chain-ruled graph and not detach it.

谢谢大佬


How to get output of contract function of hello {'user'} to webpage using eosjs?

I had deploy the smart contract to print the hello {'username'} in terminal and now i want to use this contract to interact with the webpage using the eosjs. so I want to take an input from the user in textbox "username" and then call my contract and print the Hello "user_entered_name". Any help !!!!
my index.js File code
Eos = require("eosjs");
const fs = require("fs");

// Optional configuration..
config = {
  keyProvider: ["5KSPPksyPuRg2LVRCh4jAKfD4VPBoNbUCMpvvFXnStWbb5WpYhb"], // WIF string or array of keys..
  httpEndpoint: "http://<IP_ADDRESS>:8888"
};

config.binaryen = require("binaryen");
eos = Eos(config);

wast = fs.readFileSync('/home/yudiz/eos/contracts/tutorial/hello/hello.wast');
abi = fs.readFileSync('/home/yudiz/eos/contracts/tutorial/hello/hello.abi');

// Publish contract to the blockchain
eos.setcode("faucet", 0, 0, wast, abi);

eos.contract("faucet").then(hello => {
  hello.hi('axay', { authorization: ["faucet"] }).then(res => {  //currently taking username static 'axay'
    console.log(res);
  });
});

the transaction occur in terminal when i run node index.js but in website how can i acess it and print the message?

Currently db plugin is underdevelopment for EOS v1.0.1, so you can use history_plugin with --filter-on.
so, it will help you to get transaction info and there you can see the output of your function call.
use this command to start nodeos:
./nodeos --plugin eosio::history_api_plugin --filter-on "*"
A db plugin mirrors content (transactions, etc.) to a db. Your app then interacts with the db. The history plugin with the --filter-on option puts matching actions into a multi-index map. You can then use cleos to query the map. Basically, with the history plugin, memory is your database, and it will eventually fill up.

Thanks issue has been solved :+1:

--filter-on "*" data is accessed through v1/history/get_actions or cleos get actions ..

Above worked for me in addition, with the "--filter-on" when starting nodeos, we can get the "print" output from the "traces" array located in the transaction. So if you retrieve the transaction using "rpc.history_get_transaction(transaction_id, block_num)" in your javascript code, the print statements will be in the "traces" array. See below for an output I got for a hello contract I deployed on my local chain.  See "traces" and "console" below for the hello statement.


Bound dependency versions

This PR addresses issue https://github.com/diana-hep/madminer/issues/453 by setting lower / upper bounds to the set of setup.py unbounded dependencies.
The most immediate problem to address is the recent incompatibility with the newest version of uproot (uproot4), which breaks some of the public methods / attributes being used within the madminer/utils/interfaces/delphes_root.py module (check the list of uproot4 removed features).
Additional changes:

Bump up package version to 0.7.7.

Notes
Additional dependency boundaries may be added. Please free to comment below for others to be considered.

Thanks for the suggestions! 😄
I applied the uproot3>=3.14.1 suggestion directly.
In terms of six, I am afraid yes, the latest version of this package is still using it, as it still supports Python2... That will all change when the Madminer 0.8.0 PR gets merged (dropping Python2 support). For this same reason, we cannot leave scikit-hep behind and embrace vector, asvector only supports Python3.
Nevertheless, that is a nice suggestion for the Madminer 0.8.0 PR. I will that replacement in a new commit!

In terms of six, I am afraid yes, the latest version of this package is still using it, as it still supports Python2... That will all change when the Madminer 0.8.0 PR gets merged (dropping Python2 support). For this same reason, we cannot leave scikit-hep behind and embrace vector, asvector only supports Python3.
Nevertheless, that is a nice suggestion for the Madminer 0.8.0 PR. I will that replacement in a new commit!

Awesome. :) I hadn't been paying attention to what had and hadn't been merged, but seems like you really have things going in the right direction here. Kudos to you for this and all your hard work! :D

@johannbrehmer Let me know if this changes look good to you, so we can:

Publish version 0.7.7 to PyPi.
Publish new latest Docker image.

I can update the Docker image myself, but not the PyPi version.
I tried to run python setup.py upload and realized I have no permissions. A side effect of this is that the 0.7.7 GitHub tag has already been created.

I tried to run python setup.py upload and realized I have no permissions. A side effect of this is that the 0.7.7 GitHub tag has already been created.

I'm not sure how you currently upload to PyPI, but I've found with pylhe that a pretty simple and safe way to do this is with the pypa/gh-action-pypi-publish GitHub Action (using PyPI API keys) that is triggered on creation of a new GitHub Release (not on a new tag which is important and the "safe" part). Here's the pylhe GHA workflow.

Oh, that's great!
We could probably use something like this in the future. As you noticed, current CI/CD system is Travis, so... maybe open issue to keep track of the Travis <-> GHA migration? 🤷🏻♂


How to get the picture class_name?

Thanks your code,it is very cool.But now I want get pic cat or dog localization and classname,what should I do?

Hi,
when you want to localize the dog/cat and also want to distinguish between the two classes, you have a mix of regression and classification.
This means:

Add to the csv file a column "class" and load it in train_model.py
the CNN has to output now 5 values (4 coords + 0 or 1 for class)
You might have to use a merge layer https://keras.io/layers/merge/#concatenate_1 (one branch gets softmax, one branch gets identity activation i.e. "linear")
Write a custom loss function that calculates MSE and cross entropy. The coord loss will have a stronger influence, maybe MSE will work for the class too. You could also weight the losses differently.

Thank you for  your advice, it is good for me.Good day!

I just pushed some code that implements this (example_2).