mozjpeg failing on OS X / macOS and possibly others

mozjpeg is a dependency of<EMAIL_ADDRESS>The problem is that mozjpeg appears to have some environmental dependencies that doen't exist by default on OS X / macOS, see issue here.
The "solution" is to use<EMAIL_ADDRESS>as it uses jpegtran instead of mozjpeg.  image-webpack-loader made the switch in v3 as you can see in this commit.

I found that i had to install libpng to solve this issue on macOS 10.12.1
If you have brew
brew install libpng

As covered in #1322 comment this error is found on some OS X installations, it does not seem to be version specific.
As an interim solution I have added to the dependency update notes that RBP will remain at<EMAIL_ADDRESS>until the upstream issue is resolved.

Thanks @andykenward , I will try that tonight. Even if this does work, I'm not sure requiring people install stuff outside of (Yarn / npm) is a great solution!

I can confirm that brew install libpng has resolved the problem, thanks @andykenward!
Now to decide if that is an acceptable solution OR do we use v2 until something upstream changes?

I'm not sure requiring people install stuff outside of (Yarn / npm) is a great solution!

I totally agree. To say (document) in gotchas.md Mac OS: This project may require you to install libpng:
 brew install libpng

Seems rather specialized considering that RBP is not graphics focused.
I vote for holding<EMAIL_ADDRESS>until the upstream issue is resolved.

@gihrig You seem to handle all the dependencies around here, how would you like to handle this?
I assume we go back to v2 and then check on the upstream progress each time the deps are updated?

I assume we go back to v2 and then check on the upstream progress each time the deps are updated?

Yes, that sounds like the way it'll have to go! Thanks for digging in everybody, would appreciate a PR pinning this to v2!

Agreed, I'll keep an eye on the upstream issue and hold at<EMAIL_ADDRESS>until a resolution appears.

The core issue seems to be Addressed in imagemin/imagemin-pngquant#32
But...
Warning: Observed on npm start:
WARNING in ./app/components/Header/banner.jpg
DEPRECATED. Configure gifsicle's interlaced option in it's own options. (gifsicle.interlaced)
@ ./app/components/Header/index.js 47:0-34
@ ./app/containers/App/index.js
@ ./app/app.js
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true ./app/app.js
WARNING in ./app/components/Header/banner.jpg
DEPRECATED. Configure optipng's optimizationLevel option in it's own options. (optipng.optimizationLevel)
@ ./app/components/Header/index.js 47:0-34
@ ./app/containers/App/index.js
@ ./app/app.js
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true ./app/app.js

image-webpack-loader 2.0.0 → 3.2.0 <--- Rolled back

Because gifsicle and optipng are not explicit dependencies of RBP... Holding at image-webpack-loader 2.0.0 for now.


refactor: simplify validation configuration

This PR will remove the ability to selectively enable validations for request and response.
Either you validate the whole request/response, or you do not. Thanks to this change I've been able to remove a good chunk of code and tests that were checking what validations were triggered and which not.
There's still a lot of work to do on validation, but this is a start.
Closes #543
Part of #511

I think having all of these properties that we are required to pass in is getting a bit verbose. I don't want triple booleans, but there must be a way to say "this can be boolean but optional" and only enable the things if they are true and disable if they are not true. Or something.

If you're talking about the public/user API, I agree with you and we will find the best way to have the less verbosity possibile.
However this is a change in the internal API (that I will make surface soon somehow) and I explicitly want every single configuration not to be optional.
Having optional stuff is the reason why we have a non sense cyclical configuration defaulter/provider/constructor that I really want to get rid of because it's confusing even TypeScript itself (it takes 2-3 seconds to realise what's going on in that file). Does that clarify?

Yeah fair enough, our internal API can be verbose. We can simplify our tests with setting objects at the describe level and modifying them, and the public HTTP Client can be a bunch nicer so its fine.


VSTS Visual Studio Test 2.0 task deletes trx files after execution of tests

Hello,
VSTS Visual Studio Test v2.0 task deletes trx files after execution of tests. But I still need them for processing. I saw somebody recommended to  "downloading the trx files from run attachments  " ..Is there a way to download those files on to agent machine itself using powershell scripts?

The trx generated by the test task would be available as a run attachment. If you can explain your need in detail it can help us provide a better response


Remote Localnode for Archway

Setup a remote instance for archway to run, deploy and test rust smartcontracts

Have setup the archway chain on uat instance and provided the remote rpc endpoint:
https://uat-node.icon.community:26658


Publish ABIs and mainnet addresses as package on npm

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


[cxx-interop] Don't expose async or @_transparent functions

Ensure that top-level async functions are not exposed to C/C++ because there's currently no support for Swift concurrency being imported into C/C++.
Also, don't expose transparent functions (marked with @_transparent attribute) since it's not supported on the clang side.

@hyp Could you please review this? Thanks. 😀

@_transparent functions still have an ABI entry point though, so it should be fine to call them like an ordinary function. @_alwaysEmitIntoClient is the one that's not ABI.

Also ConstructorDecl can also be async, too.

@WANGJIEKE Based on Slava's feedback we should allow @_transparent functions to be called. Let's have a test where they can be called from C++. However, we should not allow the calls to @_alwaysEmitIntoClient functions, so let's prohibit those.

Also ConstructorDecl can also be async, too.

We don't emit constructors in C++ yet. We will have to prohibit async constructs though when we add support for them, thanks for bringing it up.

Updated. I will also rename the pull request to reflect this change.

@swift-ci please test

Looks like the test failed because it's running on a version of macOS that doesn't support concurrency. I'm thinking separating this test into two so that we can still test @_alwaysEmitIntoClient with as many versions of macOS as possible.
For the async test, after examining through lit documentation and config files, my guess is we can use REQUIRES: concurrency to make sure it only runs in supported platforms.
Is this a viable solution to the test failure?

@swift-ci please test

Looks like only adding REQUIRES: concurrency didn't work 😐
I'm thinking of adding REQUIRES: concurrency_runtime as well.
@hyp What do you think?

Updated :)

@swift-ci please test

I think it's time to add something like "format on save" to my editor 😀

@swift-ci please test

@swift-ci please test source compatibility

FAIL: async-http-client, 5.0, a72c5a, Swift Package is unrelated, going to merge.


Google tokenID from iOS device login not working

Hi,
I'm not sure if it's a bug but I have a problem on my API using this library on v1.1.5
On my Ionic3 app we're using cordova-plugin-googleplus(I tried different version of the plugin without seeing any difference)
My API receive a google tokenID from a mobile app to allow people to register or login on the app with google. The problem is as follow :

For tokenID coming from Android devices there is no issues
For tokenID coming from iOS devices the verifySignedJwtWithCert() fails when checking if
$aud == $required_audience

When debugging I found out that for Android in the tokenID, azp value is the Android clientID and the aud value is the web clientID, but for iOS both azp and aud values are the iOS clientID which explains why the check fails.
Did anyone ever encounter this issue or do you have advices on how to solve it ?
PS : I think I found a somewhat working workaround by adding the iOS clientID in my config and modifying the library to check !in_array($aud, $required_audience) but it doesn't feel right...

I found out the answer
Apparently for iOS if you don't add the option 'offline' : 'true' when calling the google login it doesn't use the webClientID you specified.
Not sure why it does that for iOS and not for Android though
It's in GooglePlus.m :
NSString* serverClientId = options[@"webClientID"];
...
if (serverClientId != nil && offline) {
    signIn.serverClientID = serverClientId;
}

I'm still interested into why the different behavior for iOS and Android or if it's a bug, but hopefully this will help someone else someday

I'm going to close this issue out. If you're still having trouble, please feel free to re-open!

Thanks @Aghamyr - this really helped!


Make husky a dev dependency

Hi,
When I install vtop while not being in a root shell, I get the following error:
/usr/local/bin/vtop -> /usr/local/lib/node_modules/vtop/bin/vtop.js

><EMAIL_ADDRESS>install /usr/local/lib/node_modules/vtop/node_modules/husky
> node ./bin/install.js

husky
setting up hooks in .git/hooks
  fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

While this is most probably caused by how I have installed Node.js, I think that the husky dependency should be moved to the devDependencies. It assume that it is not required to run vtop.
Let me know if my assumptions are correct, I am willing to make the PR.

I agree this should move to a devDep, sorry for taking so long to comment!


Branch checkout after cloning

Description
Added branch checkout modal which shows after cloning from the welcome view
Related Issue

Checklist

[x] I read and understood the contributing guide as well as the code of conduct
[x] My changes generate no new warnings
[x] My code builds and runs on my machine
[x] I documented my code
[x] Review requested

Screenshots

Had to move some variables from GitCloneView to WelcomeView to share them with the modal.
E.g.
    @State var showCheckoutBranch = false
    @State private var repoPath = "~/"

Is this big no no as the state vars of WelcomeView increases?

@Pythonen : I tested it, some considerations:

I tried with a repository that has several branches, at the moment it only shows me one branch, the first one.
Test with: Repository

When I clone a report, the window where it asks me where to save in which path, remains open all the time, with the mouse waiting as seen in the video.
The behavior that I expect to close, I think this thing has to be discussed with @MarcoCarnevali.

https://user-images.githubusercontent.com/20476002/163563508-87146ce4-103b-44d5-98a8-50967d17efc2.mov

What happens if I press the Cancel button?

If the repository I cloned to only one branch it makes sense to show the checkout?

I tried with a repository that has several branches, at the moment it only shows me one branch, the first one.
Test with: Repository

Yeah noticed that too. It's because all the other branches (than the default) are remote. Probably need to use git fetch --all etc. to fix this.

When I clone a report, the window where it asks me where to save in which path, remains open all the time, with the mouse waiting as seen in the video.
The behavior that I expect to close, I think this thing has to be discussed with @MarcoCarnevali.

Should make some sort of loading screen in some point to make this have better UX

@Pythonen : The problem is that it doesn't release the resource, it gets stuck since we figured it out with @MarcoCarnevali.
I believe the problem is much more complex than it may seem.
I ask you the following doubts that have come to me.
For example, consider a fairly large project, with many branches and very heavy to clone, if I wanted to:

download only one branch and not all of them, it might not even be the main one.

download only some branches, not all.

This thing, should be done before cloning, the problem is that we can't know what the branches are first.
Knowing this could allow the user to be able to do more things.

@Pythonen : The problem is that it doesn't release the resource, it gets stuck since we figured it out with @MarcoCarnevali. I believe the problem is much more complex than it may seem.
I ask you the following doubts that have come to me.
For example, consider a fairly large project, with many branches and very heavy to clone, if I wanted to:

download only one branch and not all of them, it might not even be the main one.
download only some branches, not all.

This thing, should be done before cloning, the problem is that we can't know what the branches are first. Knowing this could allow the user to be able to do more things.

But if you clone a repository within terminal, it always clones the default version from which you then need to checkout to different branches by yourself. Why would this be considered as a bad way to handle this?

Please make this sheet as wide as the other before it (also the one found in Xcode)

@Pythonen : I didn't mean that:

Why would this be considered as a bad way to handle this?ù

With this command, it clones all branches and then finally checks out on the specified branch:
git clone -b <branchname> <remote-repo-url>
With this command, clone only the specified branch:
   git clone -b <branchname> --single-branch <remote-repo-url>
With a similar command, without cloning, you can know the names of the branches that a repository has:
git ls-remote https://github.com/CodeEditApp/CodeEdit --h --sort origin "refs/heads/*" | awk -F/ '{print substr($0, index($0,$3))}'
Consider the following example, user puts url he wants to clone, but before doing it (before running the git clone command), run the previous command indicated and get the names of the branches that are there.

User could choose, whether to clone all branches or only a specific one then cloning times could be reduced.
Choose before the clone where to checkout.

Part of me wonders if this is step even necessary. If we take a step back and look at the user flow – they click the clone button on the welcome screen, enter a url, click clone, then it opens a CodeEdit window where it is just as easy to change branches via the branch selector. Plus, after looking at what Xcode does, it doesn't have a dialog like this either. @Pythonen I really don't mean to rain on your parade in bringing this up but I'd like to get your thought from a user perspective if this dialog makes sense or not.

Part of me wonders if this step is even necessary. If we take a step back and look at the user flow – they click the clone button on the welcome screen, enter a url, click clone, then it opens a CodeEdit window where it is just as easy to change branches via the branch selector. Plus, after looking at what Xcode does, it doesn't have a dialog like this either. @Pythonen I really don't mean to rain on your parade in bringing this up but I'd like to get your thought from a user perspective if this dialog makes sense or not.

Yeah, totally understand! I just got the feeling from my last pr's conversation that it would be nice step to add to the clone flow as it was talked about there.
Either way, I noticed that the current getBranches shows only the local branches, i.e. if you clone something, the branch picker  in the editor won't show other branches than the default one.

@austincondiff : How does xCode not have a checkout dialog?

How are you seeing this dialog. I wasn't seeing it in my tests.

@austincondiff : Can you make the video of when you try to clone a report?

Disregard my comment. I stand corrected. This dialogue is not shown if there is only a single branch available. Just make sure that is the case with yours.

@Pythonen how you planning to handle private repos?

Resolve conflicts and we can merge if there are no other outstanding items.

Resolve conflicts and we can merge if there are no other outstanding items.

Sure, just have to change the functionality to make sure it won't ask for checkout if there's only one branch present

@Pythonen is this still a WIP?

@Pythonen is this still a WIP?

If you don't see it as a mandatory to convert it to Observable, then no. 👍

If it is not WIP, remove WIP from the title so reviewers know to review it. 🙂

@allcontributors add @Pythonen for code


update uri (master->main) for scripts to generate agent vm

The "master" branch is no longer, but it is now "main". Update the URI to the scripts for generating the VM images to reflect this.

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

#sign-off

#sign-off


SBStTestCase: Update history and honor expected failures

babylonian/core: dispatch SBStTestCase results into history (7faf6ab82aacabaf0f43252114ddbd73c278f0ae)
This change is visible when you run an SBStTestCase from a browser editor. In the past, the test result icon in the containing browser's message list would not have been updated (as compared to running the same test via the message list menu > "run test") - now this works. See also: CodeHolder>>#testRunSuite:.

babylonian: indicate expected failures and unexpected passes for tests (4d9f569b4bf8f42b697946b5e87c1ba009f03e2c)

⚠ Please report back whether you like this display. An alternative would be compound icons (such as ✔⚠ or ❌✔) with an explaining tool tip. I'm not sure what gives the best UX.
core: robustize clipboard test #tearDown against previously empty clipboard
Nit.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls

Great changes, thank you! And please excuse the long delay, it seemed to have escaped my attention :/

No problem, thank you!


播放大华摄像机的录像文件，当以32倍速播放时，会卡主，提示信息如下

[MSEPlayer] > MSE SourceBuffer is full, suspend transmuxing task
mf-dep____vendor.49428da0.js:450002 [MSEPlayer] > Continue loading from paused position
mf-dep____vendor.49428da0.js:450002 [IOController] > 87 bytes unconsumed data remain when flush buffer, dropped
Show 1 more frame
Show less
mf-dep____vendor.49428da0.js:450002 [MSEController] > MediaSource onSourceEnded

Try master code

Try master code

master code not work ,  error msg changed , only
[PlayerEngineMainThread] > MSE SourceBuffer is full, suspend transmuxing task


[GOBBLIN-2146] Send cancellation flow events when a job is killed by the SLA cancell…

…ation
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[ ] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-2146

Description

[ ] Here are some details about my PR, including screenshots (if applicable):
Instead of setFlowEvent, the proc engine needs to enforce that flow level events are always being emitted for each type of flow. In this scenario, it needs to emit flow level events for cancellation at a flow level so that jobs are properly killed, similar to the DagManager.

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

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

Project coverage is 50.27%. Comparing base (444f266) to head (ebea80a).
Report is 2 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #4043       +/-   ##
=============================================
+ Coverage     38.79%   50.27%   +11.47%
- Complexity     1599     5911     +4312
=============================================
  Files           388     1073      +685
  Lines         15998    41249    +25251
  Branches       1585     4634     +3049
=============================================
+ Hits           6207    20739    +14532
- Misses         9293    18732     +9439
- Partials        498     1778     +1280

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

@Will-Lo What advantage are we getting with changes, do processing of both events are handled differently, ideally both events will lead to Flow getting cancelled, right ?

Going to close this because it's covered by https://github.com/apache/gobblin/pull/4048


feat(module/das): add WaitCatchUp method to the module

#1380 made a blocking helper to wait until catching up is done. To use it for tests and further, we have to expose it on the Module either.

Had to fix one test and move it closer to the DAS module. Fixed now


Exit does not return given exit code

Hey,
While further using duckscript, I ran into a problem with the exit command.
Describe The Bug
As I understood it, exit exits the session returning the code supplied, but it seems as if always 0 is returned from the script execution.
To Reproduce
[test@ducktest]$ duck
exit 1
[test@ducktest]$ echo $?
0

Also happens if you run it from a file, so e.g.
[test@ducktest]$ echo "exit 1" > test.ds && duck test.ds
[test@ducktest]$ echo $?
0

right, i think its an issue i forgot to fix.
for a workaround, you can do assert_fail instead

Thank you!

During further experimenting, we also discovered that, if we set exit_on_error true at the beginning of our script, the script does not exit with an nonzero exit code either fyi

ya, i set that by default as true when running in cargo make

@AntonOellerer this is now supported, not sure why i didn't do it before :)
Thanks a lot for opening the issue.
cargo-make will have this new version once i bump it there (today/tomorrow).


progress for #380

Codecov Report

Merging #382 into experimental will decrease coverage by 78.87%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##           experimental    #382       +/-   ##
================================================
- Coverage         84.12%   5.24%   -78.88%
================================================
  Files                24      30        +6
  Lines              1260    3315     +2055
================================================
- Hits               1060     174      -886
- Misses              200    3141     +2941

Impacted Files
Coverage Δ

vent/helpers/paths.py
78.57% <100%> (-15.88%)
:arrow_down:

vent/core/rq-worker/test_rq_worker.py
24.48% <0%> (-75.52%)
:arrow_down:

vent/core/rq-worker/file_watch.py
18.7% <0%> (-66.66%)
:arrow_down:

vent/core/file-drop/file_drop.py
72.72% <0%> (-27.28%)
:arrow_down:

vent/core/file-drop/test_file_drop.py
78.94% <0%> (-21.06%)
:arrow_down:

vent/core/rmq-es-connector/rmq_es_connector.py
82% <0%> (-18%)
:arrow_down:

...ent/core/rmq-es-connector/test_rmq_es_connector.py
94.44% <0%> (-5.56%)
:arrow_down:

tests/test_integration.py

vent/helpers/logs.py

... and 28 more

Continue to review full report at Codecov.

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


Postprocess Dependency Loop Failure - Lighted Electric Poles+

Mod source
PyAE Beta
Which mod are you having an issue with?

[ ] pyalienlife
[ ] pyalternativeenergy
[ ] pycoalprocessing
[ ] pyfusionenergy
[ ] pyhightech
[ ] pyindustry
[ ] pypetroleumhandling
[X] pypostprocessing
[ ] pyrawores

Operating system

=Windows 10

What kind of issue is this?

[ ] Compatibility
[ ] Locale (names, descriptions, unknown keys)
[ ] Graphical
[x] Crash
[ ] Progression
[ ] Balance
[x] Pypostprocessing failure
[ ] Other

What is the problem?
Crash on startup with https://mods.factorio.com/mod/LightedPolesPlus
Unable to identify dependency loop

stack traceback:
	[C]: in function 'error'
	__pypostprocessing__/prototypes/functions/auto_tech.lua:1733: in function 'find_dependency_loop'
	__pypostprocessing__/prototypes/functions/auto_tech.lua:1667: in function 'topological_sort'
	__pypostprocessing__/prototypes/functions/auto_tech.lua:2216: in function 'calculate_prerequisites'
	__pypostprocessing__/prototypes/functions/auto_tech.lua:2511: in main chunk
	[C]: in function 'require'
	__pypostprocessing__/data-final-fixes.lua:124: in main chunk

Steps to reproduce
Install Py Beta Preview Suite
Install Lighted Electric Poles +
Start the game
Additional context
No response
Log file
No response

@davqvist I have fixed some of the problems, but this part is on the LightedPoles+ mod author:
   5.246 Script @__LightedPolesPlus__/data-updates.lua:208: [LEP+] no technology unlock found for nexelit-substation, inserting lighted-nexelit-substation into technology optics
   5.246 Script @__LightedPolesPlus__/data-updates.lua:208: [LEP+] no technology unlock found for nexelit-power-pole, inserting lighted-nexelit-power-pole into technology optics

Those unlocks definitely exist, so they should look into that. Also I don't think that dumping recipes into optics is a good backup solution. Just don't create the lighted version, if you can't find the unlock.

@Yousei9 The recipes/unlocks are added in the data phase, so an optional dependency won't help (tried it).
Found the problem: In line 160 of data-updates you check recipe.result, but not recipe.results, so you don't find the recipes.


Build error since 0.9.0

Reverted back to `~0.8.0` for now.
I'm a javascript developer so I wasn't really able to investigate this too far, let me know if I can provide more helpful information through logs or anything.
This is happening on a detached Expo.io v20 app.

yes 0.9.0 was a breaking change designed to work with RN 0.47 and above. See https://github.com/rt2zz/react-native-contacts/pull/206

Makes sense. We're on 0.46 still. Thanks for the super quick response 👍


Create dataset loader for Sundanese Twitter Dataset for Emotion

https://indonlp.github.io/nusa-catalogue/card.html?su_emot

#self-assign

Hi @nadyadtm, are you still working on this? I will assume inactivity if there's no reply and will free the assignees. Thanks!

Hello sir @bryanwilie My apologies. I'm still working on this data loader and will submit it soon

Noted @nadyadtm. Best of luck! Thank you for joining us on this 😄


Prayer Scroll Plugin System

What has been done?
Added plugin system for all prayer scrolls.
Proposed Changes

Added a new package to ${rsmod-project}/gg/rsmod/plugins/content/items

PR looks good. Some small things I'm not sure of before merging:

Should you be able to "learn" the new prayers even if you've already unlocked them previously
Should you reset animation on both options or just the second option

PR looks good. Some small things I'm not sure of before merging:

Should you be able to "learn" the new prayers even if you've already unlocked them previously
Should you reset animation on both options or just the second option

Done :)


Send SMTPUTF8 if the message needs it and the server supports it

Thank you for contributing. Your pull request must be opened on the main symfony/symfony  repository. This repository is a subtree mirror of the component.

Thanks for the hint. I made a PR there now, including a CHANGELOG.md entry. I'll close this and my mime PR, and delete the source repos.


Initial GCP Scripts

Port the initial versions of the GCP scripts, be sure to parameterize the PROJECT_ID and ORGANIZATION_ID

Deploy as Git Submodule into alexei-gcp.


Added Cart page design with its functionality

Added Cart page design with its functionality which takes in the total amount of the products and can also take the number of products and according to that changes the total amount.
It resolves issue #24
Its working video,
https://user-images.githubusercontent.com/75881393/125832321-f604e11f-b8b9-4ad2-a435-5c181718fd19.mp4

Fine.
Add "My Cart" beside the category item in the navbar. And link this page.

Added My cart beside the category item in the navbar. Please review it now

@K-jais don't add my cart inside category.
Add it beside the category section. Between search and category.

Added My Cart between search and category. Please review it now.

@QAZIMAAZARSHAD

Link?

Link?

Which link ?

@QAZIMAAZARSHAD

Share your website link so I can review your changes

https://k-jais.github.io/Apni-Dukaan/cart.html

@QAZIMAAZARSHAD


Add testing support

Created by: brollb
Architectures should have testing support

Added ~153450 label

Created by: brollb
Caffe information: http://caffe.berkeleyvision.org/tutorial/interfaces.html

I have the caffe testing running but I am getting a strange caffe error in my test example:
I0216 15:54:23.981935 13257 net.cpp:283] Network initialization done.
F0216 15:54:29.152992 13257 net.cpp:829] Cannot copy param 0 weights from layer 'ip1'; shape mismatch.  Source param shape is 500 186050 (93025000); target param shape is 500 8450 (4225000). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer.

Status changed to closed by commit 153bb1d1c4ebed9182f4b1d500aedaeee8be8e01

mentioned in commit 153bb1d1c4ebed9182f4b1d500aedaeee8be8e01


I put a folder of openly licenses cat photos onto SCMP's FTP. Please investigate how best to publish them onto IPFS and Filecoin and receive the IPFS CID and a permanent identifier to discover the asset on the Filecoin network (I think the Piece CID).
@YurkoWasHere pls see this giant thread for context on Filecoin identifiers.
From that thread, here are some key messages:

You can use any service to upload + pin the file to IPFS first (without the Filecoin incentive layer) for immediate upload + access to the file. Afterwards, you need to upload that file to a Filecoin storage provider through a storage client proxy (via Estuary, Web3.storage, PiKNiK (coming soon), etc).
One thing to note: the CID of a file can be different depending on the hashing algorithm & CID version used in generation, so you have to make sure the storage client proxy uses the same method of CID generation as the IPFS pinning service used.

Yep, I agree. Using the Piece CID is the way to go for embedding into the image asset, which will allow the reference on blockchain explorers. However, I think you should also include the data CID (the IPFS CID) as well since that’s how the data will actually be retrieved.

storing data in filecoin on your own will not result in it being retrievable on the ipfs network, you need something like estuary to provide that service

With the technology right now, you would need to make a new CAR (if you don’t already have the previous CAR saved), and resubmit that deal. Estuary may have something to make renewals easier. The Piece CID can remain unchanged using the same params.

Note that:

The Piece CID is not what's used in 78 days
There isn't a way to map IPFS CID to Filecoin Piece ID, other than some local black magic that some people do (what Why described in the thread, I wouldn't use that in our design)
In Filecoin ecosystems, the IPFS CID is sometimes referred to as Payload CID or Data CID
We want to avoid running IPFS and Filecoin internally, and rely on client proxy services

Our requirements for the stored asset:

Retrievable from the IPFS network
Link to a stable ID on the Filecoin network such that active and future deals associated with same content can be retrieved
Does not take > 10 minutes to produce

To Do

[x] Confirm that IPFS CID and Filecoin Piece CID is the two identifier we want to store in the C2PA manifest (@benhylau thinks so)

Read: https://filecoin.io/blog/posts/how-storage-and-retrieval-deals-work-on-filecoin/

Could we end up with multiple Piece CIDs for one large asset (e.g. video)?

The Filecoin Piece is the main unit of negotiation for data that users store on the Filecoin network. The Filecoin Piece is not of a specific size, but is upper-bounded by the size of the Sector, governed by the parameters of the network. If a Filecoin Piece is larger than the size of a Sector that the miner supports, it has to be split into more pieces so that each piece fits into a sector.

[x] Investigate IPFS and Filecoin client proxies listed here https://github.com/starlinglab/organizing-private/issues/2

Web3.Storage (see: https://docs.web3.storage/how-tos/list/#listing-your-uploads)
Estuary
Textile

[x] Publish the cat photos 🐈
[x] Ping @benhylau to use the returned identifiers for C2PA injection 🚀

The backend now publishes. We need to add more features like polling web3.storage for Piece CID when available then do injection. Spinning out a new ticket.


Use actions/checkout@v3 and actions/cache@v3

This should remove the warnings in the logs about node versions.

Warnings as seen here: https://github.com/apple/swift-protobuf/actions/runs/3354185667

Warnings as seen here: https://github.com/apple/swift-protobuf/actions/runs/3354185667

And none with this change: https://github.com/apple/swift-protobuf/actions/runs/3361662277


How to use RF bridge with Node Red

I can see the events in developers tool.
How do use my PIR as a trigger in node red?

I've worked this out. Here's the sequence I used...
[{"id":"7e7226e1.761438","type":"server-events","z":"5955021.4b3367c","name":"Sonoff Remote","server":"a3fbfc9b.5957e","event_type":"sonoff.remote","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":140,"y":260,"wires":[["64fc2b37.d4273c"]]},{"id":"64fc2b37.d4273c","type":"function","z":"5955021.4b3367c","name":"Extract device","func":"\nvar message=msg.payload.event.name\nmsg={payload:message,topic:msg.topic}\nif (message=="bell"){\n    return [msg,null];\n}\nif (message=="pir"){\n    return [null,msg];\n}\nreturn msg;","outputs":2,"noerr":0,"x":360,"y":260,"wires":[["2698ae74.7011d2"],["3e38337b.8e8524"]]},{"id":"2698ae74.7011d2","type":"debug","z":"5955021.4b3367c","name":"bell","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":690,"y":400,"wires":[]},{"id":"3e38337b.8e8524","type":"debug","z":"5955021.4b3367c","name":"pir","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":690,"y":440,"wires":[]},{"id":"a3fbfc9b.5957e","type":"server","z":"","name":"Home Assistant"}]

I also discovered you can reference the name in nodes like this.... msg.payload.event.name

Yes, I recently added button / sensor names


add chokidar support

The document says we can run php artisan octane:start --watch, so adding --watch support is a must.

You should be able to install it into your local project.


add a common base class for ROI and regionOfInterest

needed by #2636

Maybe we can have both signals, one 'generic' sigItemChanged and one sigItemNameChanged ?
Or over-engineered ?

I remind we considered at some point to have ROI being plot items, so this point to  sigItemChanged.
I'm merging as it is as it's been standing opened for long, QObject inheritance and signal can be done in another PR.


Routes are not registered after linting merge.

Getting 404s on all routes on master branch, and app.url_map shows that no routes are being registered. I'll look into it.

fixed in #41. This issue can be closed.


instance_start_time removed from the get database information

With the latest version upgrade, instance_start_time has been removed from the database get information API. We have a dependency on that value.

Thanks for reporting this and sorry for the disruption.
The instance_start_time was never included in our SDK API model because it was meaningless from CouchDB 2.0.0 and earmarked for future removal.

instance_start_time now always reports "0"

So although it was visible in raw responses it was not part of the API model and undocumented. In the 0.9.0 release we replaced the raw responses with the API models, which is why the instance_start_time was lost.
However, it looks like CouchDB 3.3.2 re-added a value for instance_start_time

#3901: Use db-creation time instead of 0 for instance_start_time to help replicator recognise whether a peer database was deleted and recreated.

I've checked and it is considered valid API so we'll look to get it added to the models. When asking about it I was told it should be treated as an opaque string and whilst the value will be different for a recreated database you should not rely on the represented time.
If you wouldn't mind sharing I'm curious to learn more about your use case for the field. Have you written a replicator using this library?

Thank you for your prompt response.
We have a specific scenario where we used to have a non-partitioned database for time series data. We have now transitioned to a new partitioned database. To determine the switch time and from which database data should be retrieved, we are using the instance_start_time of the partitioned database. The assumption is that time series data where the timestamp is later than instance_start_time is stored in a new partitioned database.
For instance, if a timestamp is provided that is older than the new partitioned database's instance start time, then we have to fetch the data from the old non-partitioned database. Otherwise, if the timestamp is more recent, we should fetch it from the new database. If the timestamp falls in between, we need to retrieve the data from both databases.

fyi, whether a database is partitioned or not is returned in the response to a GET /$dname request, in the props value. "partitioned":true if partitioned, the field is absent if not.

and also fyi instance_start_time is not a safe method of detecting database creation time, that's not its intended function even if currently happens to match.

Okay, is there another way to determine the creation time of the database? As we have to determine database switch time.

yes, record it yourself into a document inside a database.

FTR we added instanceStartTime to the models in #1533. It will be included in the next release. Note that in line with the other API model property names in this lib it uses the TS convention camel case naming instanceStartTime (not the raw JSON response snake case name).

This should be now restored as instanceStartTime in https://github.com/IBM/cloudant-node-sdk/releases/tag/v0.9.2


using RoundRobinLoadBalancer with redis

Describe the bug
There are some instances in the Eureka.When I remove or add a instance,ServiceInstances-XXXX can't update.
So I add DistributedCacheEntryOptions into the file.
IServiceInstanceProviderExtensions.cs
if (distributedCache != null)
{
await distributedCache.SetAsync(serviceInstancesKeyPrefix + serviceId, SerializeForCache(MapToSerializable(instances)),new DistributedCacheEntryOptions()
{
AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(10)
}).ConfigureAwait(false);
}
Is it OK?
Environment (please complete the following information):

Steeltoe 2.4.4

RandomLoadBalancer is the same

You're right, it looks like we are completely missing the ability to set the expiration on cache entries with the load balancers, which is a feature that would be expected to be present and it's fair to call that a bug...
This is a feature we need, but it should be configurable rather than hard-coded, so we'll also need to add a mechanism for either reading app configuration or accepting DistributedCacheEntryOptions in the constructor.
This is an item that would be a good first issue for anyone wishing to contribute a bit of code, but it is also important enough that I'll pick it up and make sure it is in the next release if no one else does.
Should you need an immediate solution, you can always inherit either of those load balancers and override the relevant method


Tidy up code

This is a collection of misc tidy-ups I've made to the code. I'm not sure whether we necessarily want to merge this before the course is delivered on Fri; we can just leave it as is for now. (I'm also away tomorrow so won't be able to work on the course then.)
Once this is merged, I'll sync the content in the lessons with this repo, possibly as part of this issue: https://github.com/ImperialCollegeLondon/unit_testing_Cpp/issues/30
There are some other small improvements we could make to the code, but I think these are the main issues.
Commit summary:

Move a couple of constants defined in employee.h to employee.cpp (you shouldn't have variable definitions in headers)
Add underscore suffix to member variables and use camel case consistently (generally people either add an underscore to member variable names or prefix them with m_ to distinguish them from local variables)
Remove unused Employee destructor
Merge duplicate employee.h and employee.cpp files
Other small clean-ups

@lkr-ind I renamed the member variables manually and opted to make them all camel case for consistency, as we previously had a mixture of camel case and snake case. As camel case is used everywhere else it seemed like the easiest option. I don't prefer any particular style, but we should be consistent.
I also changed the types of the age_ and numberOfYears_ members to unsigned int manually (though I forgot to mention this in the PR description -- sorry!). Looking through the code it seems that we are only ever assigning integers to these members anyway, so it seems clearer to just use an integer type.

@alexdewar Thanks for the clarifications.
I have a small difference of opinion (just on the variable type) . Let me know if you think otherwise.
I think it is a good idea to assign the variable types based on what could be used for those values rather than what has been used in the small sample code. For example, age could be any floating point number. So, I would be inclined towards float or double ( An additional check might be necessary for negative values in this case).

@dalonsoa There are sort of best practices for C++, though different people use different styles for certain things. For example, in some code bases, member variable names are prefixed with m and in others an underscore is added (e.g. in Google's style guide). The closest thing I know of to a standard set of best practices is the C++ core guidelines, written by the original author of C++, but there are a lot of things it doesn't cover (confession: I haven't actually read it).
Some of the changes I made are things that clang-tidy can warn you about. For example, the getName() function's return type was std::string, which meant that a new string object is created every time you call it. You're not likely to actually want to modify this though, so it makes more sense to return a const std::string &. If you do that, then you can still create a new string object if you want, in the same way, by writing:
std::string name = employee.getName();

This will copy from the const reference and make a new object for you. Note that there's no advantage to not returning a const reference here! It just means you don't have to copy the object, unless you want to -- a free performance win. So that's why tools like clang-tidy will pick you up on it and why it's best practice to return objects from getters as const ref. (The rule doesn't apply for basic types like int because it's small enough to fit in a single CPU register, so there's no advantage to copying a reference rather than itself.) Of course, in this case the performance advantage would be absolutely minuscule, so doing it this way is more of a code hygiene thing, but if you were returning a std::vector<double> with 1,000,000 elements or something the performance impact could be pretty considerable.

@lkr-ind Yes, you might want to represent someone's age in terms of fractions of a year. (Though I'm not sure why age was a float when everything else was a double?)
I think it's more intuitive for age to be an integer though, because people talk about ages in terms of whole years rather than fractions. In any case, for this example code, we only ever use integers for ages, so future-proofing the code for a scenario where someone might want to represent a fractional age just confuses things, I think.

I actually found a bunch of other places that we were doing EXPECT_EQ where we should have been doing EXPECT_DOUBLE_EQ instead. All the more reason to avoid using floating-point numbers where you can :wink:
As I said, I'm away tomorrow and I'm conscious that @jamesturner246 and @lkr-ind are delivering on Fri, so I'm happy to hold off on merging this until that's done. In the meantime, I was planning on adding setup instructions to the course material.


ES 5.1?

Seeing as how this is still under active development, have you thought about making sure this is built against the latest ES 5.1?
Upgrading composer.json to the following:
"elasticsearch/elasticsearch": "~5.1",
"ongr/elasticsearch-dsl": "dev-master"

Then running your unit tests results in a full pass. I know you probably don't want dev-master as dependency right now. But being under active development can't hurt to do so seeing as how ongr/elasticsearch-dsl is actively working on releasing their 5.x support.
$ vendor/bin/phpunit
PHPUnit 4.8.31 by Sebastian Bergmann and contributors.

Runtime:	PHP 7.0.14 with Xdebug 2.5.0
Configuration:	/Users/andrew/Developer/GitHub/ellisio/plastic/phpunit.xml

...............................................................  63 / 141 ( 44%)
............................................................... 126 / 141 ( 89%)
...............

Time: 2.72 seconds, Memory: 18.00MB

OK (141 tests, 246 assertions)

Generating code coverage report in Clover XML format ... done

Generating code coverage report in HTML format ... done

perfect added a develop branch for ES 5 support

I think this needs to be reopened and discussed a little more.
Right now you're wanting to include support for Laravel 5.2.*|5.3.*. Well, 5.4.* is now a thing.
Also, the underlying library of elasticsearch/elasticsearch is going to require PHP ^7.0 as they require ext-json >= 1.3.7. PHP 5.6.x ships with ext-json 1.2.1.
So if we want to support the elasticsearch/elasticsearch 5.x the minimum PHP version Plastic will need to support is 7.0. This cuts out all current Laravel versions as the framework only requires 5.6.4+.
Laravel 5.5 will require PHP 7.0+. So until Laravel requires 7.0 I would halt development and support on ES 5.

@ellisio I understand where you come from but what solution can we arrive at for people running PHP7 and wanting ES 5? Should we have a new major version of this library for these latest versions?

So after some discussion with the elasticsearch/elasticsearch author, he was willing to add a new library to the class to help out our cause of keeping support for 5.x. Take a look:
https://github.com/elastic/elasticsearch-php/issues/534#issuecomment-277246228

@ellisio how should we use this now?

@sleimanx2 @ellisio The ES library has been updated to 5.1.3 to support this - what are the next steps?

@ellisio @sleimanx2 any further update on how to get this to be compatible with ES 5.X?? I'm currently working on a large project involving laravel 5.4 with PHP 7.0.2 (Which is required for some of the processing within laravel) and would like to require this package with the latest ES.

@ellisio @sleimanx2 I'm also very interested having this package compatible with ES 5.X and PHP 7. Could we create a separate branch for that until Laravel 5.5 in July?

the issue is that the test are not green anymore due to the following update
Since Elasticsearch 5.0 the support for top level filters was dropped. The same functionality is now supported via BoolQuery

I'll work on fixing the issue soon.

@sleimanx2 What needs doing on this? Is the work on the develop branch current, or is it out of date? I note that it is currently 32 commits behind master.

@sleimanx2 Any updates on this?  We'd like to use it on our Laravel 5.4, ES 5.4 and PHP 7 site.

Hey @sleimanx2 is there anything the community can do to help move this?

Please check v0.5.0 🥂


ENH: [Docker] Notify us when docker build pass or fail

As discussed offline cc @glegendre01

We could use re-usable workflows here cc @glegendre01

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

cc @glegendre01 @pacman100 @BenjaminBossan I tested out everything and seems to work great, this PR is ready for review!

Yeah I agree, we could also put it in a re-usable workflow. Will do it as a follow up PR !


Clarity on repo action sheets

This is more a question but I guess it also may be a re-wording request.
Once inside an issue you have click the titlebar to get an action sheet that says @GitHawkApp and then GitHawk. @GitHawkApp will take me to the GitHawkApp homescreen in webview. If this is just a link to the Organizations page maybe a rewording is in order.  The GitHawk option / Repo option opens the repo in app, this one makes a bit more sense but some clearer wording could still be added I feel. Even if it was. View Organization, View Repo or something like that.

The @ is supposed to denote a user/org. The thing I like is that the words are connected to the button you just tapped.
Adding “View” before each word wouldn’t hurt tho!
Sent with GitHawk

Ya view @GitHawkApp could clear it up a bit
Sent with GitHawk

I feel like the @ and no @ are already tricky sometimes, especially with repositories like Moya/Moya. Anything that can make it more clear is 👍

Maybe an icon that represents an organization and one that rep. A repo?
Sent with GitHawk

Wait yeah we could add images with https://github.com/BasThomas/ImageAlertAction :)

Boo ya!
Sent with GitHawk

Organization Icon: https://octicons.github.com/icon/organization/
Repo Icon: https://octicons.github.com/icon/repo/

@BasThomas That was easy. Great pod!
So thoughts?

Sent with GitHawk

Ehhhj it’s overkill IMO. Adding “View” makes it pretty clear.
I’d actually rather use ContextMenu for everything.
Sent with GitHawk

I think the view @GitHawkApp is a bit cluttered but otherwise I felt it was clear. You could probably go with either icons and not “view” or just view.
Sent with GitHawk

I think it might also be the outlined image (for repo) vs the filled image for organization.
I agree with Ryan that consistency with ContextMenu would be really nice though :)

Ya I think I rather both by outlined. Context menu would probably look nice as well. The feeling I get with context menu is that it's been used to "act" in the app. Assign labels, milestones..etc. Hopefully change the current branch (#1582). I guess since all it's doing is redirecting, context menu may be unnecessary.

Hm, good point. I feel like it could indeed be a bit too big of a context switch (ugh, no pun intended). I guess we can play with it and revert to what we have / this if that doesn't work out.

Something else we should keep in mind are the icons. A repo can also have an owner instead of an organization, and it would be nice to be able to have separate icons to indicate that.

Agree
Sent with GitHawk

@rnystrom  @BasThomas  So whats the conclusion on this one? Context menu or share sheet? Icons/No Icons? View/No View?
Aside: If we could add grey description text underneath the text we could get rid of the word view and clear things up a bit in the process.

After some more thought I'm leaning towards the UIAlertController with icons. If Ryan still prefers the ContextMenu, it would be nice to compare them!

@rnystrom Context menu or share sheet?


Coverage report on moonscript code has many errors

It falsely (and somehow randomly) reports:

class declarations
function definitions
assignments
return statements

Here's a few examples:
Assignment
  2 NataConfig =
  2     groups:
  2         all:  {},
  2         velocity:
  2             filter: {'position', 'velocity'}
  2         despawn:
**0             filter: {'despawnTimer'}
  2     systems: {
  2         require "src.system.DespawnSystem"
  2     }

Function definition & assignment
   class Vec2
**0     new: (x=0, y=0) =>
**0         @x = x
  7         @y = y

Implicit return assignment
  8 @aim = aim
**0 @speed = 50

LuaCov is used to track coverage. Since LuaCov is not Moonscript aware, my guess is that that is the culprit here. And if so, then there is no easy fix.
Probably best to document that Coverage is not supported with Moonscript.

Moon also has a coverage tool - maybe add an option to use it instead of luacov?

PR's are welcome


enhance topic space and permission binding for maestro server.

What this PR does
This PR differentiates the topic space for subscribe and publish operations on the Maestro server, ensuring appropriate permissions are bound to each topic space.
Before this PR:
The same topic "source/#" was used by the Maestro server for both subscribing and publishing.
After this PR:
Separate topic spaces are designated for subscribing and publishing, with relevant permissions assigned to each to enhance security and organization.
Jira:
Link to demo recording:
Special notes for your reviewer

Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

[ ] PR: The PR description is expressive enough and will help future contributors
[ ] Code: Write code that humans can understand and Keep it simple
[ ] Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
[ ] Upgrade: Impact of this change on upgrade flows was considered and addressed if required
[ ] Deployment: The deployment process was considered and addressed if required
[ ] Testing: New code requires new unit tests.
[ ] Documentation: Is the documentation updated? Either in the doc located in focus area, in the README or in the code itself.
[ ] Customers: Is this change affecting customers? Is the release plan considered?

@microsoft-github-policy-service agree

closing this in favor of https://github.com/Azure/ARO-HCP/pull/168


HOW TO KNOW WHICH OPTION THE USER VOTED IN THE POLL

Like, I want to use a poll as a button, so I need to know how Baileys knows which poll option the user voted for, please help me

up, also need help for this

I don't see it as complex, the truth is, you just have to listen to the update of the message

satriowicaksn

I am going to generate an example

thanks @andresayac I will try it!

I don't see it as complex, the truth is, you just have to listen to the update of the message
#38

satriowicaksn

My system does not recognize the update, when I select an option, it activates messages.upsert and not chat-update

I don't see it as complex, the truth is, you just have to listen to the update of the message
#38

satriowicaksn

My system does not recognize the update, when I select an option, it activates messages.upsert and not chat-update

hello is messages.update not chat.update, I am working on an example but before that I am waiting for validation of a request pull
https://github.com/WhiskeySockets/Baileys/pull/74

hello it's messages.update it's also possible from messages.upsert but it ignores the chats.update, I'm working on an example but before I'm waiting for validation of a pull request,
#74

When you get it can you let me know?

I share this idea, it is not the super script, it was very improvised to make a bot, the important thing is that I understand how it works and I try to emit events to read them later, it should be noted that I have not generated a bot that is how I currently use it
https://github.com/andresayac/poll_example_bot_baileys

Poll messages doesn't come from messages.update event. They're coming from messages.upsert and format is like that:
{
      "key": {
        "remoteJid"<EMAIL_ADDRESS>        "fromMe": true,
        "id": "3AD3XXXXXXXX9BC75F"
      },
      "messageTimestamp":<PHONE_NUMBER>,
      "pushName": "Emir Bugra",
      "broadcast": false,
      "status": 2,
      "message": {
        "pollUpdateMessage": {
          "pollCreationMessageKey": {
            "remoteJid"<EMAIL_ADDRESS>            "fromMe": true,
            "id": "XXXXXXXXXXXXX"
          },
          "vote": {
            "encPayload": "tEjjdA1JcwINxxxxEXQGhO+Bkm7xxxxxxJLlPCbuYImKpJsxxxxxxxrok380EA=",
            "encIv": "XEYzxxxxsND92Ru"
          },
          "senderTimestampMs": "1684309795533"
        }
      }
    }

We must decrypt encPayload but I don't know how to do that.

Poll messages doesn't come from messages.update event. They're coming from messages.upsert and format is like that:
{
      "key": {
        "remoteJid"<EMAIL_ADDRESS>        "fromMe": true,
        "id": "3AD3XXXXXXXX9BC75F"
      },
      "messageTimestamp":<PHONE_NUMBER>,
      "pushName": "Emir Bugra",
      "broadcast": false,
      "status": 2,
      "message": {
        "pollUpdateMessage": {
          "pollCreationMessageKey": {
            "remoteJid"<EMAIL_ADDRESS>            "fromMe": true,
            "id": "XXXXXXXXXXXXX"
          },
          "vote": {
            "encPayload": "tEjjdA1JcwINxxxxEXQGhO+Bkm7xxxxxxJLlPCbuYImKpJsxxxxxxxrok380EA=",
            "encIv": "XEYzxxxxsND92Ru"
          },
          "senderTimestampMs": "1684309795533"
        }
      }
    }

We must decrypt encPayload but I don't know how to do that.

Have you tried the script, it seems that I do not recommend that you document it and do so by leaving several examples above.

Poll messages doesn't come from messages.update event. They're coming from messages.upsert and format is like that:
{
      "key": {
        "remoteJid"<EMAIL_ADDRESS>        "fromMe": true,
        "id": "3AD3XXXXXXXX9BC75F"
      },
      "messageTimestamp":<PHONE_NUMBER>,
      "pushName": "Emir Bugra",
      "broadcast": false,
      "status": 2,
      "message": {
        "pollUpdateMessage": {
          "pollCreationMessageKey": {
            "remoteJid"<EMAIL_ADDRESS>            "fromMe": true,
            "id": "XXXXXXXXXXXXX"
          },
          "vote": {
            "encPayload": "tEjjdA1JcwINxxxxEXQGhO+Bkm7xxxxxxJLlPCbuYImKpJsxxxxxxxrok380EA=",
            "encIv": "XEYzxxxxsND92Ru"
          },
          "senderTimestampMs": "1684309795533"
        }
      }
    }

We must decrypt encPayload but I don't know how to do that.

Have you tried the script, it seems that I do not recommend that you document it and do so by leaving several examples above.
I read this it seems not?
https://github.com/WhiskeySockets/Baileys/blob/master/Example/example.ts
Example
git clone https://github.com/andresayac/poll_example_bot_baileys.git
cd poll_example_bot_baileys npm I npm run start Scan qr Send poll this for device Select opción and view terminal

Yep it worked, probably I'm making something wrong in my own project. Thanks you so much.

ErrorCaptureStackTrace(err);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '/storage/emulated/0/poll_example_bot_baileys/node_modules/@whiskeysockets/baileys/' imported from /storage/emulated/0/poll_example_bot_baileys/baileys.js
at new NodeError (node:internal/errors:399:5)
at legacyMainResolve (node:internal/modules/esm/resolve:202:9)
at packageResolve (node:internal/modules/esm/resolve:781:14)
at moduleResolve (node:internal/modules/esm/resolve:843:20)
at defaultResolve (node:internal/modules/esm/resolve:1058:11)
at nextResolve (node:internal/modules/esm/hooks:654:28)
at Hooks.resolve (node:internal/modules/esm/hooks:309:30)
at ESMLoader.resolve (node:internal/modules/esm/loader:312:26)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:172:38)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v19.9.0

you can clone and try again friend
https://github.com/andresayac/bot_baileys

ErrorCaptureStackTrace(err); ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '/storage/emulated/0/poll_example_bot_baileys/node_modules/@whiskeysockets/baileys/' imported from /storage/emulated/0/poll_example_bot_baileys/baileys.js at new NodeError (node:internal/errors:399:5) at legacyMainResolve (node:internal/modules/esm/resolve:202:9) at packageResolve (node:internal/modules/esm/resolve:781:14) at moduleResolve (node:internal/modules/esm/resolve:843:20) at defaultResolve (node:internal/modules/esm/resolve:1058:11) at nextResolve (node:internal/modules/esm/hooks:654:28) at Hooks.resolve (node:internal/modules/esm/hooks:309:30) at ESMLoader.resolve (node:internal/modules/esm/loader:312:26) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:172:38) at ModuleWrap. (node:internal/modules/esm/module_job:76:40) { code: 'ERR_MODULE_NOT_FOUND' }
Node.js v19.9.0

você pode clonar e tentar novamente amigo https://github.com/andresayac/bot_baileys

ErrorCaptureStackTrace(err); ^
Erro [ERR_MODULE_NOT_FOUND]: Não é possível encontrar o pacote '/storage/emulated/0/poll_example_bot_baileys/node_modules/@whiskeysockets/baileys/' importado de /storage/emulated/0/poll_example_bot_baileys/baileys.js no novo NodeError (node:internal /errors: 399:5) em legacyMainResolve (node:internal/modules/esm/resolve:202:9) em packageResolve (node:internal/modules/esm/resolve:781:14) em moduleResolve (node:internal/modules/ esm/resolve :843:20) em defaultResolve (node:internal/modules/esm/resolve:1058:11) em nextResolve (node:internal/modules/esm/hooks:654:28) em Hooks.resolve (node:internal /modules/esm/hooks:309:30) em ESMLoader.resolve (node:internal/modules/esm/loader:312:26) em ESMLoader.getModuleJob (node:internal/modules/esm/loader:172:38) em ModuleWrap.(node:internal/modules/esm/module_job:76:40) { código: 'ERR_MODULE_NOT_FOUND' }
Node.js v19.9.0

Mesmo erro

você pode clonar e tentar novamente amigo https://github.com/andresayac/bot_baileys

ErrorCaptureStackTrace(err); ^
Erro [ERR_MODULE_NOT_FOUND]: Não é possível encontrar o pacote '/storage/emulated/0/poll_example_bot_baileys/node_modules/@whiskeysockets/baileys/' importado de /storage/emulated/0/poll_example_bot_baileys/baileys.js no novo NodeError (node:internal /errors: 399:5) em legacyMainResolve (node:internal/modules/esm/resolve:202:9) em packageResolve (node:internal/modules/esm/resolve:781:14) em moduleResolve (node:internal/modules/ esm/resolve :843:20) em defaultResolve (node:internal/modules/esm/resolve:1058:11) em nextResolve (node:internal/modules/esm/hooks:654:28) em Hooks.resolve (node:internal /modules/esm/hooks:309:30) em ESMLoader.resolve (node:internal/modules/esm/loader:312:26) em ESMLoader.getModuleJob (node:internal/modules/esm/loader:172:38) em ModuleWrap.(node:internal/modules/esm/module_job:76:40) { código: 'ERR_MODULE_NOT_FOUND' }
Node.js v19.9.0

Same error in terminal

you can clone and try again friend https://github.com/andresayac/bot_baileys

ErrorCaptureStackTrace(err); ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '/storage/emulated/0/poll_example_bot_baileys/node_modules/@whiskeysockets/baileys/' imported from /storage/emulated/0/poll_example_bot_baileys/baileys.js at new NodeError (node:internal/errors:399:5) at legacyMainResolve (node:internal/modules/esm/resolve:202:9) at packageResolve (node:internal/modules/esm/resolve:781:14) at moduleResolve (node:internal/modules/esm/resolve:843:20) at defaultResolve (node:internal/modules/esm/resolve:1058:11) at nextResolve (node:internal/modules/esm/hooks:654:28) at Hooks.resolve (node:internal/modules/esm/hooks:309:30) at ESMLoader.resolve (node:internal/modules/esm/loader:312:26) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:172:38) at ModuleWrap. (node:internal/modules/esm/module_job:76:40) { code: 'ERR_MODULE_NOT_FOUND' }
Node.js v19.9.0

Can you modify this one and send it to me with it working?
https://github.com/Rcccclaks/BotBaileys

puedes clonar y volver a intentar amigo https://github.com/andresayac/bot_baileys

ErrorCaptureStackTrace(err); ^
Error [ERR_MODULE_NOT_FOUND]: No se puede encontrar el paquete '/storage/emulated/0/poll_example_bot_baileys/node_modules/@whiskeysockets/baileys/' importado de /storage/emulated/0/poll_example_bot_baileys/baileys.js en el nuevo NodeError (node:internal/errors: 399:5) en legacyMainResolve (node:internal/modules/esm/resolve:202:9) en packageResolve (node:internal/modules/esm/resolve:781:14) en moduleResolve (node:internal/modules/esm/resolve :843:20) en defaultResolve (nodo:interno/módulos/esm/resolve:1058:11) en nextResolve (nodo:interno/módulos/esm/hooks:654:28) en Hooks.resolve (nodo:interno/módulos/ esm/hooks:309:30) en ESMLoader.resolve (nodo:internal/modules/esm/loader:312:26) en ESMLoader.getModuleJob (nodo:internal/modules/esm/loader:172:38) en ModuleWrap. (nodo: interno/módulos/esm/module_job: 76:40) { código: 'ERR_MODULE_NOT_FOUND' }
Node.js v19.9.0

¿Puedes modificar este y enviármelo con él funcionando? https://github.com/Rcccclaks/BotBaileys

yes

você pode clonar e voltar a tentar amigo https://github.com/andresayac/bot_baileys

ErrorCaptureStackTrace(err); ^
Erro [ERR_MODULE_NOT_FOUND]: Não foi possível encontrar o pacote '/storage/emulated/0/poll_example_bot_baileys/node_modules/@whiskeysockets/baileys/' importado de /storage/emulated/0/poll_example_bot_baileys/baileys.js no novo NodeError (node: internal/errors: 399:5) en legacyMainResolve (node:internal/modules/esm/resolve:202:9) en packageResolve (node:internal/modules/esm/resolve:781:14) en moduleResolve (node:internal/modules /esm/resolve :843:20) en defaultResolve (nodo:interno/módulos/esm/resolve:1058:11) en nextResolve (nodo:interno/módulos/esm/hooks:654:28) en Hooks.resolve (nodo: interno/módulos/esm/hooks:309:30) em ESMLoader.resolve (nodo:internal/modules/esm/loader:312:26) em ESMLoader.getModuleJob (nodo:internal/modules/esm/loader:172:38) pt ModuleWrap. (nodo: interno/módulos/esm/module_job: 76:40) { código: '
Node.js v19.9.0

Você pode modificar este e enviá-lo com ele funcionando? https://github.com/Rcccclaks/BotBaileys

embora haja muito trabalho como você tem

I was wanting a lot you know

That's why I designed a much more scalable idea as I have it in my repository to play with events and globalize to messages, sometimes it's recommended to use baileys as updates or reactions so I've taken an idea to globalize in an event called messages
git clone https://github.com/andresayac/bot_baileys.git
cd bot_baileys
npm i
npm run start

É por isso que desenvolvi uma ideia muito mais escalável como tenho em meu repositório para brincar com eventos e globalizar para mensagens, às vezes é recomendável usar baileys como atualizações ou reações, então tenho uma ideia para globalizar em um evento chamado mensagens
git clone https://github.com/andresayac/bot_baileys.git cd bot_baileys npm i npm run start

That's why I designed a much more scalable idea as I have it in my repository to play with events and globalize to messages, sometimes it's recommended to use baileys as updates or reactions so I've taken an idea to globalize in an event called messages
git clone https://github.com/andresayac/bot_baileys.git cd bot_baileys npm i npm run start

It's just that this one doesn't work neither in Ubuntu nor in termux

It's just that this one doesn't work neither in Ubuntu nor in termux

I am going to validate on linux

cd bot_baileys
npm i
npm run start

cd bot_baileys
npm i
npm run start

It worked but can you do it on the base I sent you? I'll pay you 10 reais

It worked but can you do it on the base I sent you? I'll pay you 10 reais

believe me it is much easier as you raise it, just scan the qr and everything you get to the message event, and from there you can use the different methods or native oppciones to modify to your liking, the issue is that it depends on the event messages.update and has no logic in the code that you pass me would have to return to condition

Funcionou mas dá pra fazer na base que te mandei? te pago 10 reais

acredite em mim é muito mais fácil conforme você aumenta, basta digitalizar o qr e tudo o que você recebe no evento de mensagem, e a partir daí você pode usar os diferentes métodos ou oppciones nativos para modificar ao seu gosto, a questão é que depende do event message.update e não tem logica no codigo que me passar teria que retornar a condição

Can you pass me some of your means of communication?

Funcionou mas dá pra fazer na base que te mandei? te pago 10 reais

acredite em mim é muito mais fácil conforme você aumenta, basta digitalizar o qr e tudo o que você recebe no evento de mensagem, e a partir daí você pode usar os diferentes métodos ou oppciones nativos para modificar ao seu gosto, a questão é que depende do event message.update e não tem logica no codigo que me passar teria que retornar a condição

Can you pass me some of your means of communication?

discord andresaya#9842

Adding the getMessage function worked for me, the "messages.update" event started to notify on votes
const sock = makeWASocket({
    ..., // your config
    getMessage,
  });

Store
const store = makeInMemoryStore({ logger })

function getMessage
async function getMessage(key: WAMessageKey): Promise<WAMessageContent | undefined> {
	if(store) {
		const msg = await store.loadMessage(key.remoteJid!, key.id!)
		return msg?.message || undefined
	}

	// only if store is present
	return proto.Message.fromObject({})
}

The getMessage method is called in processMessage:
https://github.com/WhiskeySockets/Baileys/blob/e24947e55ad6e3370de867b258bb33bb9e828c56/src/Utils/process-message.ts#L340

maybe enhacement by @PurpShell
https://gist.github.com/PurpShell/44433d21631ff0aefbea57f7b5e31139


Support for mozilla addons

Currently symbol-observable doesn't work for mozilla addons (at least jetpack-based ones). It cannot find valid global object, because root = this is transpiled to root = undefined (es6 modules causes this), and there is neither global nor window object inside addon environment. I've used implementation of polyfill for global proposal to fix this issue. This fix should also enable support for web workers and node-webkit.

Looks good, thanks @qzb.


Open source Warp?

@rescrv this repository does not include Hyperdex Warp, would it be possible to open source that now?

Please email me to discuss further.

How did that go?


Add to nfailures list, track allocations too

This PR adds some methods to the nfailures list, and tracks allocations per method call, too.

bors r+

bors r+

bors r+

I just realized some issues with attempting to call granular RHS kernels after a simulation:

Each kernel is conditionally called, based on the model
The order of kernel calls is important (e.g., needing to call precomputed quantities before others)
Calling a kernel mutates the cache, which could affect post processing
We could create a deepcopy, but that only fixes the 3rd point.

I'm thinking the better approach here is to time / record allocations in-situ. This basically fixes all of these issues, and has the benefit of being able to accumulate statistics (e.g., with TimerOutputs.jl).
The only issue/decision there is deciding between timing methods:

NVTX - CPU or GPU, accumulates statistics, requires using Nsight compute etc.
TimerOutputs.jl - maybe CPU only, accumulates statistics, nice output, no post processing required
others?

I'll still peel off the rename / return stuff from this PR.


What is the proper way to handle multiple submits with captcha approach?

Hey! First I wanted to thank you for the amazing library, it works like a charm. I was wondering what is the proper way to handle a secured captcha submit form when the user can click more than once but with different parameters. It feels a bit weird to reset the widget to generate a new token to be submitted if I already know that the current user is legit. One solution would be to redirect to a new page with the result of the form but it would be a pain for my user case. Maybe a little cache in the vercel function with the user ip would do the trick? Thanks in advance!

Hey, thank you! Can you please provide a reproducible repo or preview of the issue that you are facing? To fully understand what you are describing.

@marsidev Sure! Here you have a codesandbox example: https://codesandbox.io/s/misty-tdd-qkmqn7?file=/src/App.js
The core of the question would be in the Form component, after the submit is completed in the finally I have to reset the widget, otherwise new submits would fail as the token is the same (unless page is refreshed)

Thanks for the repro. As the docs says, a token can be validate only once.

A response may only be validated once. If the same response is presented twice, the second and each subsequent request will generate an error stating that the response has already been consumed.

If you need to validate a token multiple times, you need to reset the widget. One way is manually reseting it after the validation - as you did it.
Another way could be setting a dynamic cData. If the cData changes, the widget will reset as well. Something like this:
function Form() {
  const formRef = useRef(null)
  const [cData, setCData] = useState(Date.now().toString())

  async function handleSubmit(e) {
    e.preventDefault()
    const formData = new FormData(formRef.current)
    const token = formData.get('cf-turnstile-response')
    const username = formData.get('username')
    const password = formData.get('password')

    const res = await fetch('/api/verify', {
      method: 'POST',
      body: JSON.stringify({ token, username, password }),
      headers: {
        'content-type': 'application/json'
      }
    })

    const data = await res.json()
    if (data.success) {
      // the token has been validated

      setCData(Date.now().toString()) // this will reset the widget
    }
  }

  return (
    <form ref={formRef} onSubmit={handleSubmit}>
      <input type="text" name="username" />
      <input type="password" name="password" />
      <Turnstile siteKey={siteKey} options={{ cData }} />
      <button type='submit'>Login</button>
    </form>
  )
}

Maybe a trick to avoid reseting the widget could be reading the validation response and check if the error codes contains timeout-or-duplicate. Something like this:
async function handleSubmit(e) {
  e.preventDefault()
  // ...

  const res = await fetch('/api/verify', {
    method: 'POST',
    body: JSON.stringify({ token, username, password }),
    headers: {
       content-type': 'application/json'
    }
  })

  const data = await res.json()
  if (data.success || data['error-codes']?.includes('timeout-or-duplicate')) {
    // ...
  }
}

This is what the validation returns when a token has already being validated:
{
  "success": false,
  "error-codes": [
    "timeout-or-duplicate"
  ],
  "messages": []
}

@marsidev Thank you so much for your answer! So I was going in the right direction as I can see. The last suggestion seems pretty fine and could be implemented by passing an extra boolean to my verifyCaptcha function like lax or something to not be very strict in the validation and allow that "timeout-or-duplicate" option, but I dont know if it is considered as a bad practice because of security issues, isnt it?

I'm not sure neither, but I'd go with the "timeout-or-duplicate" option if reseting the widget is painful. In that case, maybe you should also ensure data['error-codes']?.length === 1


email not verified because facebook session expired

the session of facebook expired and the verifier failes

[ ] check if possible to incerase sesson?
[ ] notify user session expired and he need to re-login, client should redirect to login

@sirpy I found that way could extend facebook access token up to 90 days:
https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing/?lang=en
i need to know facebook app secret to check it. could you please send it to me in the Slack
if that method will work, the implementation will be the following:

add FB app_id & secret env vars to the goodserver
add extendToken() method to FacebookVerifier calling the FB GraphAPI method from above
extend  Default/FacebookVerificationStrategy classes with extendToken() method
a) in DefaultVerificationStrategy it will do nothing, just return the accessToken retrieved from Torus
b) in FacebookVerificationStrategy it will call FacebookVerifier.extendToken()
add extendToken()  to UserVerifier. it will check torusProvider and proxy extendToken () call to the corresponding strategy (like verifySignInIdentifiers())
add /user/token/extend endpoint receiving the user payload (like /user/add). It will create user verifier, call extendToken() and return response
on client side add /user/token/extend to the API class
call API.extendToken() just after torusSDK.triggerLogin() succeeded, update torusUser.torusAccessToken with extended token value we just got

according to logs this looks like a rare end case.
we'll just tell user to re-login


ValueError: Loading openbmb/cpm-bee-10b requires you to execute the tokenizer file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option trust_remote_code=True to remove this error.

Error occurred when executing command "semantra --transformer-model openbmb/cpm-bee-10b  xxx.txt" to use HuggingFace model openbmb/cpm-bee-10b. Detailed message shown below:
Traceback (most recent call last):
File "/Users/macbookuser/.local/bin/semantra", line 8, in
sys.exit(main())
^^^^^^
File "/Users/macbookuser/.local/pipx/venvs/semantra/lib/python3.11/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/macbookuser/.local/pipx/venvs/semantra/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/macbookuser/.local/pipx/venvs/semantra/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/macbookuser/.local/pipx/venvs/semantra/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/macbookuser/.local/pipx/venvs/semantra/lib/python3.11/site-packages/semantra/semantra.py", line 583, in main
model = TransformerModel(
^^^^^^^^^^^^^^^^^
File "/Users/macbookuser/.local/pipx/venvs/semantra/lib/python3.11/site-packages/semantra/models.py", line 166, in init
self.tokenizer = AutoTokenizer.from_pretrained(model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/macbookuser/.local/pipx/venvs/semantra/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 669, in from_pretrained
raise ValueError(
ValueError: Loading openbmb/cpm-bee-10b requires you to execute the tokenizer file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option trust_remote_code=True to remove this error.
Could anyone tell me how to fix this error? Thanks a lot!

I'm not sure if that model is compatible with Semantra. It appears to be more of a translation model (sequence-to-sequence) instead of a representation model that is suitable for semantic similarity. See #53


new MPROG MSFD-D8

New code for MPROG MSFD-D8

ID
NA

Start time
01/13/21

Email
Anonymous

Name

Requested by
Env.data submitter

Request entered by
Anna Osypchuk

Requester email
<EMAIL_ADDRESS>

vocabulary type change
Code value (new);

vocabulary reference
https://vocab.ices.dk/?ref=147

Reason for change
To mark data submissions with the respective program reference

Impact of change
Low

Does the proposed change exist in another ICES vocabulary code type or an external code standard
No

If yes, please specify

Proposed time when the change should take affect from
asap, 01/15/2021

ok, i'm going to quietly ignore the fact that the MSFD is not a monitoring programme but a framework (Article 11 is the monitoring programme, and that is really referring to other monitoring programmes as there are no monitoring programmes devised under the MSFD - although a Member State may make a national programme and call it an MSFD Descriptor monitoring programme).
so i would suggest seeing as you already have some of the Decsriptors in, that you put the whole list so we can refer to it in its completeness, rather than fragments.

ok, i'm going to quietly ignore the fact that the MSFD is not a monitoring programme but a framework (Article 11 is the monitoring programme, and that is really referring to other monitoring programmes as there are no monitoring programmes devised under the MSFD - although a Member State may make a national programme and call it an MSFD Descriptor monitoring programme).
so i would suggest seeing as you already have some of the Decsriptors in, that you put the whole list so we can refer to it in its completeness, rather than fragments.

Need

Need a respective term in PRGOV as well:
https://vocab.ices.dk/?ref=1473

We suggest adding MSFD descriptors to PRGOV as needed. It's OK to add MSFD-8. :-)


Analytics not reporting anything

About 3 weeks ago I configured the google analytics with this commit: https://github.com/selwynpolit/d9book/commit/d93ca0ed6f17f2c889c0d707b615dcb8bb321566
Not sure why I see no results from google:

Also

My phone occasionally pops up messages about lots of users accessing the site.  Any analytics gurus out there have any ideas?

Would it be possible to not use GA, and respect user privacy?

Currently, Google Analytics, Google Fonts, Youtube embeds, Twitter Lists, Google Calendars etc are loaded by default (Opt Out) which is against European laws. These have to be Opt-In. We have already also some new Court judgements "Schrems II" in Austria and now also France (https://noyb.eu/en/update-cnil-decides-eu-us-data-transfer-google-analyt...) which reads, that Google analytics is illegal to use in Europe!

From Make Drupal.org GDPR compliant.
Perhaps something like this could serve as an alternative? Follow Your Website Analytics With Umami.

Thanks, I'll check out Umami

Thanks, though since I posted, I realized that the example is running it on Heroku, which adds some extra work ... But it would be nice to eventually use analytics, which respects user privacy.

Perhaps https://www.goatcounter.com/ could be considered?

Easy web analytics. No tracking of personal data
GoatCounter is an open source web analytics platform available as a free donation-supported hosted service or self-hosted app. It aims to offer easy to use and meaningful privacy-friendly web analytics as an alternative to Google Analytics or Matomo.

It's very easy to set up. Just create an account, and insert some JavaScript at the bottom of the pages.
For discussion and feedback about it:

https://news.ycombinator.com/item?id=38978665
https://www.reddit.com/r/webdev/comments/12ol6nx/google_analytics_alternative_for_small_sites/


Add livereload functionality to watch mode

This will make the entire dev process much more enjoyable as the browser will reload itself after any change is made to your site.

I'd love to help make this happen. Be forewarned, I'm new to Node and backend development but I'm ready to try to figure stuff out if you can point me in the right direction.

Awesome! I'd love the help!
This is a 2 part problem - one is supplying the livereload server and the other is the livereload client which listens to the server.
It might even be easier to use browsersync which has livereload functionality and more.
Happy to answer any questions and help point in the right direction.

Browsersync would be my first choice. I use it all the time and it is really nice.
My first big question is: what is the best way to get a development environment going? In my early noodling around I needed to save a change and then run npm link and restart Reptar to see the change. It seems like there must be a better way?

Aha! Goooood question!
Note to self, I need to expand on this in the DEVELOPMENT doc.
I think/hope this works:
After getting reptar cloned and npm install locally you can run npm link as you correctly did. From there two bins are installed

reptar which uses the pre-transpiled source code
reptar-debug which transpiles the code on the fly using babel-register.

So if you want to quickly see your changes you can, for example, add a console.log('hello') in the Reptar constructor and then run reptar-debug --help to see if the hello is correctly out put.
I also make heavy use of the tests in watch mode for quick iteration. I overhauled the E2E tests recently to provide a more authentic test blog to write tests on.
Hopefully that helps. If there's anything specific you're trying to accomplish let me know as well.

Just updated https://github.com/reptar/reptar/blob/master/docs/DEVELOPMENT.md#using-development-version-of-reptar

Fixed via https://github.com/reptar/reptar/pull/80


This code also have changed the name of some the files


Windows  Compatibilty.

The Scala side of things work seamlessly. The most annoying part - is getting Verilator to work on windows.
https://github.com/ankitkk/VerilatorWindows  ( initial work from @baughg )  builds veritilator for windows correctly.  I intend to keep this sync'd with mainline verilator. The real solution is to push for a CMake build upstream and remove their reliance on autotools.

Can I get a pre-compiled version for Windows from somewhere?

try https://github.com/ankitkk/VerilatorWindows/releases

But there are no releases (or even tags), or am I missing something?

While chisel uses verilator as the default simulator, chisel-only designs (that don't have blackboxes) can be simulated in either firrtl-interpreter or treadle. This will (probably) be the default testing backend in the new testing infrastructure (#725 - it's while away though), so the stack should be fully Scala. In addition to fixing cross-platform issues, it also reduces the startup time (verilator + compilation is pretty slow) which makes it more suitable for lots of small unit tests.
That being said, if you have a good and easy setup for running verilator on Windows, we could certainly reference it as an option in our documentation. Personally, I'd like to see something that fits the typical workflow of Windows users: a precompiled binary and installer (I don't think building-from-source is common among Windows users). Maybe with a MSVC Express or a MinGW dependency, but preferably not something that provides a Linux-like environment like cygwin - in which case you might as well go full WSL and follow the Linux setup instructions.

Closing: not our bug, Verilator needs better support upstream. We're also planning to run treadle, a Scala-based FIRRTL simulator, by default for 3.3, so chisel tests will work on Windows out of the box.
Feel free to re-open or create a new issue if you have a good path to Verilator working well natively on Windows, and we can update our docs.


Created PigeonHole sorting algorithm

@pooja795
This belongs in the sorting directory.
Push it into that directory.


pnpm lock yaml updated - rush update full

For future reference

Build Failure - https://dev.azure.com/azure-sdk/public/_build/results?buildId=377655&view=logs&j=23e2e6de-b7c3-5918-7121-f16b46172e49&t=7ccccc84-9c58-5209-9cca-6bf651795b0e
Circular dependency from "nock" library is causing the build to fail since we deliberately throw errors through rollup if circular references are present from storage libraries.[!] Error: Circular dependency: ../../../common/temp/node_modules/.pnpm/registry.npmjs.org/nock/11.9.1/node_modules/nock/lib/intercept.js -> ../../../common/temp/node_modules/.pnpm/registry.npmjs.org/nock/11.9.1/node_modules/nock/lib/interceptor.js -> ../../../common/temp/node_modules/.pnpm/registry.npmjs.org/nock/11.9.1/node_modules/nock/lib/intercept.js
Error: Circular dependency: ../../../common/temp/node_modules/.pnpm/registry.npmjs.org/nock/11.9.1/node_modules/nock/lib/intercept.js -> ../../../common/temp/node_modules/.pnpm/registry.npmjs.org/nock/11.9.1/node_modules/nock/lib/interceptor.js -> ../../../common/temp/node_modules/.pnpm/registry.npmjs.org/nock/11.9.1/node_modules/nock/lib/intercept.js
    at Object.onwarn (/home/vsts/work/1/s/sdk/storage/storage-queue/rollup.test.config.js:56:15)
    at Object.config.onwarn.warning [as onwarn] (/home/vsts/work/1/s/common/temp/node_modules/.pnpm/registry.npmjs.org/rollup/1.32.1/node_modules/rollup/dist/shared/node-entry.js:13599:25)
    at Graph.config.onwarn.warning [as onwarn] (/home/vsts/work/1/s/common/temp/node_modules/.pnpm/registry.npmjs.org/rollup/1.32.1/node_modules/rollup/dist/shared/node-entry.js:13599:25)
    at Graph.warn (/home/vsts/work/1/s/common/temp/node_modules/.pnpm/registry.npmjs.org/rollup/1.32.1/node_modules/rollup/dist/shared/node-entry.js:13403:14)
    at Graph.link (/home/vsts/work/1/s/common/temp/node_modules/.pnpm/registry.npmjs.org/rollup/1.32.1/node_modules/rollup/dist/shared/node-entry.js:13420:18)
    at Promise.all.then (/home/vsts/work/1/s/common/temp/node_modules/.pnpm/registry.npmjs.org/rollup/1.32.1/node_modules/rollup/dist/shared/node-entry.js:13286:18)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

Whitelisting "nock" library would fix the issue. (Let me know if there are any better suggestions)

Closing in favor of subsequent PRs that did the same and got merged like #9463 and #9566


Mybb  1.8

Can you please add mybb 1.8 to the systems as its showing mybb 1.4 in the import and after using it i am getting error while importing users.

I will do my best to look into updating it. But I cannot make any hard promises.

Do me a favor, in the systems/impex/mybb folder, in 004.php find
		$try->set_value('nonmandatory', 'ipaddress',			$user_details['regip']);

Change too
		$zREGIP = long2ip($user_details['regip']);
		$try->set_value('nonmandatory', 'ipaddress',			$zREGIP);

I don't currently have a mybb database to test, and don't have the time to try it right now. Let me know if it fixes/breaks anything.
Might need more fixes in the post importing

Great Zachery :) That fix worked :)

Everything imported except moderators( i will do that manually) and attachments. How to import the attachments?

Can you let me know how moderators, and attachments didn't import?
How does mybb currently store attachments?

Mybb store the attachments in /uploads folder with year and month name folders inside. Like year 2010 month October, then it saves the attachments of October 2010 to folder name 201010 and so on.

When you ran the attachment importer, did you give the full system path to your attachments?

I give the path like this /uploads
On Wednesday 12 August 2015, vBZachery<EMAIL_ADDRESS>wrote:

When you ran the attachment importer, did you give the full system path to
your attachments?
—
Reply to this email directly or view it on GitHub
https://github.com/vBZachery/vbimpex/issues/2#issuecomment-130106318.

Can you please use the full system path. If you don't know what that is please contact your web host
Sent from my Windows Phone

From<EMAIL_ADDRESS>Sent: 8/11/2015 10:34 PM
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS>Subject: Re: [vbimpex] Mybb  1.8 (#2)
I give the path like this /uploads
On Wednesday 12 August 2015, vBZachery<EMAIL_ADDRESS>wrote:

When you ran the attachment importer, did you give the full system path to
your attachments?
—
Reply to this email directly or view it on GitHub
https://github.com/vBZachery/vbimpex/issues/2#issuecomment-130106318.

Reply to this email directly or view it on GitHub:
https://github.com/vBZachery/vbimpex/issues/2#issuecomment-130139369

You can create a .php file with the contents below and navagate your browser to it to find your forums path. I use this code from vbadvanced.

Ok thanks, will check. Is it
Possible to import reputation of users and thanks data from mybb thank you
like plugin to Vbulletin reputation system and Vbulletin 4.2 thanks plugin?
On Thursday 13 August 2015, BrandonSheley<EMAIL_ADDRESS>wrote:

You can create a .php file with the contents below and navagate your
browser to it to find your forums path. I use this code from vbadvanced.

—
Reply to this email directly or view it on GitHub
https://github.com/vBZachery/vbimpex/issues/2#issuecomment-130451025.

At this time its not. Were you able to re-run the attachment import, did it work?

Yes it worked when i found the correct attachment path. All attachments imported :)
Marking this issue as resolved.

I will push changes for mybb this week
Sent from my Windows Phone

From<EMAIL_ADDRESS>Sent: 8/17/2015 2:34 AM
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS>Subject: Re: [vbimpex] Mybb  1.8 (#2)
Yes it worked when i found the correct attachment path. All attachments imported :)
Marking this issue as resolved.

Reply to this email directly or view it on GitHub:
https://github.com/vBZachery/vbimpex/issues/2#issuecomment-131695184


Update Pybind11 to v2.10.1

Just checking if this fixes the Python build on macOS.

Ok, so the error is unrelated to Python 11. I don't know what's going on. I will try another time.

Since it's not Pybind11 related, maybe we can close this one?

Yeah, not sure what the deal is.  Doesn't seem to be pybind11 related.


build fails with gcc-14

kirkstone hasn't yet caught up with the changes in gcc-14, causing build failures.
fail recipes :

unzip 6.0 : #45
libffi 3.4.6

reference.

Yocto Project 5.0.2 is Released
zip: Fix build with gcc-14
cdrtools-native: Fix build with GCC 14

unzip 6.0 patch

From e1524e4934275463f9e7e201b1ac4575afba0fc3 Mon Sep 17 00:00:00 2001
From: KantaTamura<EMAIL_ADDRESS>Date: Thu, 17 Oct 2024 22:53:04 +0900
Subject: [PATCH] unix/configure: follow gcc-14 changes

in gcc-14, implicit declaration of function as error

Signed-off-by: KantaTamura<EMAIL_ADDRESS>---
 unix/configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/unix/configure b/unix/configure
index 44d5392..cccb3e6 100755
--- a/unix/configure
+++ b/unix/configure
@@ -405,6 +405,7 @@ $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null

 echo Check for directory libraries
 cat > conftest.c << _EOF_
+#include <dirent.h>
 int main() { return closedir(opendir(".")); }
 _EOF_

libffi 3.4.6 patch
https://github.com/libffi/libffi/commit/ce077e5565366171aa1b4438749b0922fce887a4

util-linux 2.37.4 patch
https://github.com/util-linux/util-linux/commit/84732a8849a08d42a9a95dcbee9005116be78eb8

pseudo_git
<EMAIL_ADDRESS>

syslinux 6.04-pre2 patch
<EMAIL_ADDRESS>