Xerte SCORM Package in Moodle not resuming

Ron emailed as a reaction to a forumpost:
Did you see the post on the forums about Xerte SCORM objects not resuming in Moodle and my response? Before I responded to say resuming does work I quickly reminded myself by checking some previous tests and sure enough they resume to the page I last viewed if not completed. However I did some further testing this morning and it seems something with that functionality has become broken. I’m not sure what version/revision whatever the bug is has crept in but here’s a summary of what I have found so far:

I had a test file in Moodle that does resume but I don’t know what Xerte version I exported that from.

Newer test files exported from develop and imported into Moodle don’t resume.

I imported the older LO that did resume back into develop and re-exported that and then imported into Moodle and it then didn’t resume.

I replaced xttracking_scorm1.2.js in that new export that didn’t work with the xttracking_scorm1.2.js from the older copy and then imported into Moodle and that does then resume.

It's more complicated than that....
The problem is taht the (new) state has contains more data, and now is too long for SCORM 1.2. SCORM 1.2 only supports strings of max length 4k. So ... back to the drawing board.
SCORM 2004 should work because the limit there is 64k.
I am looking into

compression
Not storing the whole state

I minimized the data stored for 1.2 and that seems to work.
Although now the suspend data is stored, it was missing the currentpageid.
Also SCORM 2004 3rd Ed was missing the currentpageid. Fixed that as well.

@torinfo my test projects re-exported as 1.2 and 2004 now work with these changes. Do we know what Xerte version/revision this previously stopped working?


Fund Account Loop

Downloading from active contracts make it so we try and fund accounts with all hosts. This is an issue because we keep try and fund account with hosts that appear offline.

fixed in #333


missing common.h

Hi,
it seems, that the make && make install does not copy the common.h into the include directory, so that including smart_ptr.h in an application fails:
                 from handles.c:23:
/usr/local/include/csptr/smart_ptr.h:29:21: fatal error: common.h: No such file or directory
 # include "common.h"
                     ^
compilation terminated.```

Copying common.h manually solved the problem here. The three other *.h are there ...

Regards
rellla

Oh, right. This should now be fixed, thanks!


Docs into master

Since Github Pages can be generated from master branch's docs folder, I am submitting this PR.  The main advantage of this is

This lets you maintain documentation and code together on one branch, and open source maintainers can accept contributions for both in a single pull request.

It seems to build correctly. Check here

woah 61 commits

I wanted to preseve the history of the files in the master branch. Although the github doesn't show it. You can track the history by looking that parent commits. If you think history isn't so important, then I can squash them.

Yeah I think erasing history here is fine. cc @jordwalke

@chenglou Updated the PR

@vramana what's the second point here about?
"your repository must not follow the repository naming scheme <username>.github.io or <orgname>.github.io"
Also, can you add an .npmignore to the root and ignore docs/?

@chenglou They are telling the repo name can't be facebook.github.io.

Also, can you add an .npmignore to the root and ignore docs/?

Yes. I will do that

Will this make it so jQuery is returned in git grep and github search?

@jordwalke It seems so.

I think you can fix that with a simple .gitattributes file. Want to see if that will work? Thanks for sending this PR!

Why is CI so slow?

The whole Facebook organization shares the same travis limit I think. So we're queuing behind other facebook/ projects. Faster at night.

@jordwalke I didn't get you. I have never used gitattributes in the past.

@vramana see my comment. .gitattributes specifies which file (or globs) are supposed to be treated as binary. These receive special treatment, including not being displayed in the diff view when they change, and probably not being indexed by github search.

@chenglou Seems like I missed your previous comment. Which files should I mark at binary? All the vendor files?

Also do we need to keep the examples folder? It seems completely unrelated.

How to mark a folder recursively as binary in gitattributes? Currently I supress all jQuery mentions from invidually target the folders. But I don't think it's ideal.

Does double star ** work?

@jordwalke It does. What else work is pending in this PR?

I think this is good to commit now. We may have to revert (or find the right fix) if jQuery ends up showing up in searches.

@jordwalke I have checked from git grep. It doesn't show up.

@chenglou What else do we have to do? Do we just merge this and then delete the docs branch or can we keep it around?

.npmignore, .gitattributes, can't think of anything else. I think we're good merging this =)

Seems working. Lemme test by making changes to the new master docs.

Alright, coordinated with the internal folks to make the change! Thanks @vramana! =D

thanks!


Java 18.3 : Numeric type wrappers

Description
Add audio, documentation, and video regarding the Numeric type wrappers
Location of File to be added The files should be added inside the Numeric type wrappers which will be inside Type Wrapper folder which will be inside of Java folder. If the folder is not present, create the folder with this exact name.

The documentation file can be in the .md/.py/.ipynb format.
Audio should be in .mp3 format and to be submitted through a Google drive link.
Video can be in any format and should be submitted through a Google Drive link.

Note:
You are required to comment with \assign CONTENT_TYPE, so that other content types can be created at the same time. Failing to comment in the above manner will lead to the removal of assignment from the issue even if the bot assigns. You are required to do a PR within 7 days otherwise you will be unassigned and others will be assigned. Issues will be assigned on a first come first serve basis.
Domain
Java_Domain
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[x]    I follow Contributing Guidelines & Code of conduct of this project.

/assign documentation

/assign Audio


dragHandleSize can't be larger than 48

This code makes it impossible to make the drag handle larger than 48x48.
https://github.com/flutter/flutter/blob/a1a33e63b911bfe0b58dc1b2710f6eddb2cb6e4e/packages/flutter/lib/src/material/bottom_sheet.dart#L459-L462

Hi @xVemu
Are you proposing to be able to set a specific larger size (a fixed size) or a dynamic size for the drag handle? Per M3 specs Touch and pointer target sizes:

Touch targets are the parts of the screen that respond to user input, extending beyond the visual bounds of an element. For example, an icon may appear to be 24 x 24dp, but the padding surrounding it comprises the full 48 x 48dp touch target.

For most platforms, consider making touch targets at least 48 x 48dp. A touch target this size results in a physical size of about 9mm, regardless of screen size. The recommended target size for touchscreen elements is 7-10mm. It may be appropriate to use larger touch targets to accommodate a larger spectrum of users.

Does this make sense?

Hi @xVemu Are you proposing to be able to set a specific larger size (a fixed size) or a dynamic size for the drag handle?

I'm talking about fixed size.

Does this make sense?

It makes sense, but I still think there should be an option to make it larger, if someone don't want to stick to M3 specs.

If it's a fixed size, what size are you proposing? It would be clearer if you could also share your use case.

By fixed size, I mean that the programmer can set the size using dragHandleSize. Currently, this only works if the width is set to a value smaller than 48. If you try to set it to, for example, 64, it remains at 48.
Basically, I want to do this:

Instead of this:

I mean that the programmer can set the size using dragHandleSize.

Currently, dragHandleSize is not exposed to showModalBottomSheet; it only resides on BottomSheet widget underlying. But we can set it through bottomSheetTheme:
https://github.com/flutter/flutter/blob/35ae5191402bccbe573bb780c03f832dff0687ed/packages/flutter/lib/src/material/bottom_sheet.dart#L450
Example of setting dragHandleSize
bottomSheetTheme: const BottomSheetThemeData(
    dragHandleSize: Size(96, 12)
),

Despite that, it's limited by an ancestor widget with fixed size kMinInteractiveDimension as you mentioned originally:
https://github.com/flutter/flutter/blob/35ae5191402bccbe573bb780c03f832dff0687ed/packages/flutter/lib/src/material/bottom_sheet.dart#L459-L466
Marking this as a proposal. Since this change is made by https://github.com/flutter/flutter/pull/122445, cc @hangyujin for thoughts.


ENYO-720: Popup in video slider has wrong height

Issue:
Slider popup canvas and label are using different unit of height. This make round canvas and label had different height.
Fix:
Remove use of enyo.dom.unit on popupLabel, popup and popup offset height value.
DCO-1.1-Signed-Off-By: Kunmyon Choi<EMAIL_ADDRESS>

@KunmyonChoi  - Jira ENYO-720 is closed. Is this PR still needed? Thanks.

@lishammel I don't think this one is needed any more.


#754 small fixes for Cards

See #754 for changes

@xak
Why there is no assignees to this PR?

Merging this assuming the following will be addressed in other PRs

proper code highlighting
grouped cards
cards with media example
cards with icon need to be round (TBD)


feat(ui): regional prompting

Summary
Add MVP regional prompt UI. It's only accessible in storybook right now. Run pnpm storybook and click RegionalPrompts -> Docs.

[x] Layers can be arranged
[x] Brush and eraser per layer
[x] Export individual layer images
[x] Resizable canvas (currently locked to 512x512)
[x] Transformable layers (e.g. position the layer in the canvas by dragging it, scale it, etc.)

Drag (translate) only - will explore full transform in a future update, a bit too hairy for the MVP.

[ ] Integrate in the linear UI (probably separate PR)
[x] Wire it up to the graphs (probably separate PR)

https://github.com/invoke-ai/InvokeAI/assets/4822129/83151da4-302f-496f-8339-e5a3030a41f0
Related Issues / Discussions

QA Instructions
Usage in its current state:

Start the UI and storybook.
Draw your layers and prompts in storybook. Just do 4 for now.
Click DEBUG LAYERS - this will open a new tab for each layer with an image.
Copy each image, then paste into the app to upload. You this won't work if you are on the workflow editor tab, you need to be on one of the linear tabs.
Load the sample workflow:
SDXL Arbitrary Regional Prompts.json
Drag your images each of the Resize Image nodes.
Update your prompts (manually). I'm not sure if you should set the "style" prompt for these.
Update the "style" prompt for the global positive prompt (leave "prompt" empty).
Leave the global iterations count at one. Adjust the integer range to control how many images are generated.
Invoke!

Example outputs from the above setup:

Merge Plan
This PR is based on #5916, but it should not be merged.
Checklist

[x] The PR has a short but descriptive title, suitable for a changelog
[ ] Tests added / updated (if applicable)
[ ] Documentation added / updated (if applicable)

"This PR is based on https://github.com/invoke-ai/InvokeAI/pull/5916, but it should not be merged." - is this still the case?


DEMOFLOW03 - IT helpdesk Scheduler and Add SFDC Contact fixed for demoflow03 v1.2.20

@tpanagos
Let's merge that before you push the new version of Contract Approval 2.1 and Docusign Document Signing

For demoflow v1.2.20
Use tim creds for apidoc based apps


feat: allow specific container and pod host starts

Allow users to specify podHost and containerName in the tasks.yaml startingPoint. This will allow scenarios to start in multi-container pods and in pods on a specific node.
Resolves #227
Resolves #218

Is there an scenario that requires this so I test with that?

In order to test you can use the container-defeat-in-detail scenario. You can add a new container to the deamon set with:
        - name: centos
          image: centos
          command: ["sleep"]
          args: ["1000000"]

Change the startingPoint in the tasks.yaml to be:
      podNamespace: container-defeat-in-detail
      mode: pod
      podName: node-cert-manager
      podHost: master-0
      containerName: centos

This will then ssh you to the pod on master-0 which can be checked by comparing the hostname inside the container with kubectl get pods -o wide.  Then you can run yum update to verify you're in the centos container not the ubuntu one.

This LGTM and tested as working :)  I think we should consider rewriting the starting_point helper in a proper programming langauge so it can be covered with unit tests easily.  The logic is starting to get a bit hairy.  I'll add a separate ticket for that


[IMPROVEMENT] No operator for division in ui

Since the project is for kids,UI of division questions  can be changed to be  more familiar and ease to understand.
I can add division symbol ➗ or /
Since only division questions doesn't have the operator

If you can add the Division sign, that would be good, but make sure it works on all devices and browsers! :)
Assigning you! @Adithya212

@Adithya212 are you making this contribution under GSSOC23?

Yes

@Adithya212 are you working on this issue?

Yes,I will complete it  asap.

created pr with following changes.
Also I have noted the main.js files is having "Octal literals are not allowed. Use the syntax '0o0' present.
I could work on it if not already assigned.

@gambhirsharma is there any additional changes to be made so that this enhancement  is accepted


add extensions to empty chrome profile

What is your Test Scenario?
i want to open chrome with extension only
What are you suggesting?
possibility of add extensions to chrome profile

@bhj-patrik
Hello,
You can use your current user profile with all the needed extensions. Please refer to this documentation article.


Change 'paid' filtering in resources endpoint

Currently if an invalid paid attribute is given to the /resource endpoint it will default to it being false, we would like it to default to all instead
Examples:
This currently defaults to paid=false to filter for the /resources endpoint:
http://<IP_ADDRESS>:5000/api/v1/resources?paid=trueeeeeeee

Returns all resource objects with paid: false
Acceptance Criteria:
http://<IP_ADDRESS>:5000/api/v1/resources?paid=trueeeeeeee

Should return all resources instead ( due to it not being strictly true/false case insensitive )

I am looking into this


PreOrder traversal of Binary Tree

can u assign me

can u assign me

Assigned.

Hey @Zohaib-Sathio can you assign this to me also


Local run

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #10   +/-   ##
=======================================
  Coverage   58.05%   58.05%
=======================================
  Files           7        7
  Lines         422      422
=======================================
  Hits          245      245
  Misses        159      159
  Partials       18       18

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 b517dd1...13d750c. Read the comment docs.


lighttpd is missing the directory listing mod

Describe the bug
lighttpd is missing the directory listing mod
Steps To Reproduce
Config:
services.lighttpd.enable = true;
services.lighttpd.modsEnabled = [ "mod_dirlist" ];

andy@arksm ~> sudo nixos-rebuild switch
building Nix...
building the system configuration...
error:
       Failed assertions:
       - One (or more) modules in services.lighttpd.enableModules are
       unrecognized.

       Known modules: mod_rewrite mod_redirect mod_alias mod_access mod_auth mod_status mod_simple_vhost mod_evhost mod_userdir mod_secdownload mod_fastcgi mod_proxy mod_cgi mod_ssi mod_compress mod_usertrack mod_expire mod_rrdtool mod_accesslog mod_authn_dbi mod_authn_file mod_authn_gssapi mod_authn_ldap mod_authn_mysql mod_authn_pam mod_authn_sasl mod_cml mod_deflate mod_evasive mod_extforward mod_flv_streaming mod_geoip mod_magnet mod_mysql_vhost mod_openssl mod_scgi mod_setenv mod_trigger_b4_dl mod_uploadprogress mod_vhostdb mod_webdav mod_wstunnel

       services.lighttpd.enableModules: mod_dirlist mod_accesslog
(use '--show-trace' to show detailed location information)

Expected behavior
I expected lighttpd to be enabled and for the directory listing mod to be enabled which makes file system directories be listed when accessing the httpd web page.
Notify maintainers
@bjornfor @brecht
Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

sorry I am reporting this on a different computer than the affected one
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

If you're thinking of the mod_dirlisting (note the ing suffix) it is (supposed) to be enabled by default: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-servers/lighttpd/default.nix#L15-L16.
However, I wonder if the eval time asserting of known modules is worth it. Should we just drop it? What kind of error does lighttpd produce if we try to load a missing module?

Reading https://redmine.lighttpd.net/projects/1/wiki/Server_modulesDetails again, I guess we can/should add those three modules (mod_indexfile, mod_dirlisting, mod_staticfile) to the knownModules list, since that'd be less confusing for users.

However, I wonder if the eval time asserting of known modules is worth it. Should we just drop it?

lighttpd modules must be loaded in a given order, so I think it makes sense for NixOS to handle that ordering.

lighttpd is missing the directory listing mod

That looks like a lighttpd 2.x thing, whereas nixpkgs only has lighttpd 1.x.

I got this working last night after a lot of troubleshooting. For future users, mod_dirlisting is indeed enabled by default, but you still must configure it to be activated with extraConfig:
services.lighttpd.extraConfig = ''
    dir-listing.activate = "enable"
''

Thanks for the help @bjornfor


ISPN-14591 Add BlockHound exception for registering proto file

https://issues.redhat.com/browse/ISPN-14591

Merged, thanks

Thank you Tristan!


docs: fastify trpc ssr example

adds an example of server side rendering with fastify, @fastify/vite and @tRPC.  it took me quite a while to figure out how to integrate these packages with @TanStack/react-router so i want to share what i came up with in case it helps anyone else!
please feel free to alter it however you wish or to suggest changes.
i tried to document as best i could but let me know if anything is unclear.
finally, thank you all so much for this awesome project!

sure thing; changes made!  let me know if you notice anything else you'd prefer me to change.  appreciate the feedback!

sorry about that last push; i had unsaved changes when i staged and committed!  i think i got everything this time 😅

one other thing, this example works for me when i run this exact code outside of the tanstack/router repo, but when i actually try to run it within the repo, i get this error:
Warning: useRouter must be used inside a  component!
TypeError: Cannot read properties of null (reading '__store')
at Module.useRouterState (.../TanStack/router/packages/react-router/dist/esm/useRouterState.js:11:98)
is this example working for you?  any idea what the issue might be?  is there a special command that needs to be run in the workspace to register a new example or something like that?

A new error has emerged!
Rendering: /...
Warning: useRouter must be used inside a <RouterProvider> component!
TypeError: Cannot read properties of null (reading 'isServer')
    at Html (/Users/seanc/code/tanstack/router/packages/start/dist/esm/client/Meta.js:186:15)
    at renderWithHooks (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5662:16)
    at renderIndeterminateComponent (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5736:15)
    at renderElement (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5961:7)
    at renderNodeDestructiveImpl (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:6119:11)
    at renderNodeDestructive (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:6091:14)
    at renderIndeterminateComponent (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5790:7)
    at renderElement (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5961:7)
    at renderNodeDestructiveImpl (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:6119:11)
    at renderNodeDestructive (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:6091:14)

A new error has emerged!
Rendering: /...
Warning: useRouter must be used inside a <RouterProvider> component!
TypeError: Cannot read properties of null (reading 'isServer')
    at Html (/Users/seanc/code/tanstack/router/packages/start/dist/esm/client/Meta.js:186:15)
    at renderWithHooks (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5662:16)
    at renderIndeterminateComponent (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5736:15)
    at renderElement (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5961:7)
    at renderNodeDestructiveImpl (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:6119:11)
    at renderNodeDestructive (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:6091:14)
    at renderIndeterminateComponent (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5790:7)
    at renderElement (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:5961:7)
    at renderNodeDestructiveImpl (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:6119:11)
    at renderNodeDestructive (/Users/seanc/code/tanstack/router/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js:6091:14)

the strange thing is, i only see this error when i try to run this example within my fork of the @TanStack/router repo.  when i copy all of my example code, paste it somewhere else, and run the dev script there, it works.  is there some monorepo configuration that might explain the error?  would it be helpful if i link a working repo?

is there some monorepo configuration that might explain the error?

None that I can think of. I'd have imagined, it'd work the same without regardless of the monorepo config tbh.

https://github.com/theMostCuriousHomunculus/with-ssr-trpc-react-query
@SeanCassiere if you clone this repo and run the dev script, does it work for you?

https://github.com/theMostCuriousHomunculus/with-ssr-trpc-react-query
@SeanCassiere if you clone this repo and run the dev script, does it work for you?

Yes it does.

https://github.com/theMostCuriousHomunculus/with-ssr-trpc-react-query
@SeanCassiere if you clone this repo and run the dev script, does it work for you?

Yes it does.

i really appreciate you taking the time to review and trouble shoot.  i know this PR was unsolicited and i don't want to pull you away from your other work any more than i already have.  i'm bummed its not working but i don't know how much more time i can spend trying to fix it either.  whether you want to merge this in in a non-working state or just close it, i'm ok either way.
thanks again; y'all are the best!

@theMostCuriousHomunculus thanks for your time!
I'll close this for now and look into this when I have more time.


Reproducible process from default rapsbian.img => buildScript.sh => modifiedRaspbian.img

Not sure if this is a general RFC or not, but I've had a lot of luck with an ansible playbook modifying a default (raspbian/armbian) image mounted as a chroot. With a little work to clean up timestamps, it'd likely be reproducible. I've found it to be a very high quality solution to building custom flashable images for embedded linux boards.
happy hacking!

Thanks Ian we really appreciate the comment.
I think @jywarren doesn't mean strict binary reproducible builds, but something that is automated.
@itdaniher do you have some recipe to point us? I have no experience with Pi or Ansible - so it will be fun.

I'll write up a bit about the workflow later today, happy to help publiclab. Ansible is very easy to learn and very well documented.
Only caveat is that getting cross architecture chroots working is a bit of a pain, so it's best to build images on a compatible architecture. Scaleway.com, a rock64, or maybe even a pi3 itself would work nicely as a beefy ARM buildbox.

THANK YOU! Yes, we're putting this in a repo partially to "ask the world" for ideas on this. I also think @rjsteinert may have thoughts about this one? I remember Open Pipe Kit had prebuilt .imgfiles for Pi -- what do you think, RJ?

Here's a very basic example of an ansible playbook making modifications to prepare an embedded Linux image for our use:
https://gist.github.com/itdaniher/14d0981c028022ed7fd2da018ff24296
Also need to mount the image before you can chroot into it, a quick google[1] suggests a command like
sudo mount -o loop,offset=62914560 raspbian_image_file_here.img /myfolder
will work. Armbian uses a different offset (4194304) and I'm not sure that 62914560 is correct for the latest raspbian.
then you put the following in a file called "hosts"
[raspbian_chroot]
/myfolder ansible_connection=chroot

and can run something like:
sudo ansible-playbook -i hosts -l raspbian_chroot dev.yml
sudo unmount /myfolder

and flash your image!
We have a 128 line "production" playbook that does a variety of tasks like hardcoding an ssh public key, blacklisting some kernel modules, installing some systemd services, changing the SSH listening ports, etc, but I think it solves problems you don't need solved.
Pluses of this route: ansible is a pretty well-known automation tool, shouldn't be hard to recruit volunteers to maintain your application. It's really well documented. [2]
Biggest downside: PITA to chroot from x86 into an ARM environment, at least it was last time I tried. You have to run Ansible and mount your image on an ARM CPU - a Pi3 should work with multiarch support.
[1] https://www.raspberrypi.org/forums/viewtopic.php?p=380844
[2] for an example, see http://docs.ansible.com/ansible/latest/modules/lineinfile_module.html

I'm wondering if the chroot would work on a crouton enabled chromebook (https://github.com/dnschneid/crouton) in case that's easier to find.

I tried running our script on a chrombook chroot but the 16.x xenial ubuntu isn't close enough to Raspbian for it to completely work. Interesting though, i'm sure some virtualization could help but was curious.

Here's some information suggesting it's possible to access an ARM chroot with qemu:
https://unix.stackexchange.com/questions/41889/how-can-i-chroot-into-a-filesystem-with-a-different-architechture

Jeff, I was able to mount and virtualizedly chroot into it from tycho, following the reference I just shared:
# This provides the qemu-arm-static binary
apt-get install qemu-user-static

# Mount my target filesystem on /mnt
mount -o loop fs.img /mnt

# Copy the static ARM binary that provides emulation
cp $(which qemu-arm-static) /mnt/usr/bin
# Or, more simply: cp /usr/bin/qemu-arm-static /mnt/usr/bin

# Finally chroot into /mnt, then run 'qemu-arm-static bash'
# This chroots; runs the emulator; and the emulator runs bash
chroot /mnt qemu-arm-static /bin/bash

in order to mount the img that has two partitions, I used kpartx -a sdcard.img.cdr first, this created a device mapper file under /dev/mapper/

I looked for the terms 'raspberry' and 'kpartx' and found quite interesting projects:

https://github.com/munnerz/rpi-builder-docker
https://github.com/Fl0-0/NFC-Box
https://github.com/hypriot/image-builder-rpi

@jywarren you mentioned we used a custom image to start with, from parts and crafts?
I have the one uploaded to Tycho but for this to be reproducible in the medium term we will need to be able to build newer versoins.

Oh I see the Parts and Crafts image building process is based in this: https://publiclab.org/notes/partsandcrafts/12-03-2017/setting-up-the-raspberry-pi-camera-for-wireless-streaming - correct?

yes, exactly! wow this is cool. Do you need anything else at the moment?
The script I wrote in this repo is designed (for the time being) to run on
the Parts & Crafts .img in their guide. I did it and then see a wlan0
error.
On Mon, Apr 9, 2018 at 1:31 PM, Sebastian Silva<EMAIL_ADDRESS>wrote:

Oh I see the Parts and Crafts image building process is based in this:
https://publiclab.org/notes/partsandcrafts/12-03-2017/
setting-up-the-raspberry-pi-camera-for-wireless-streaming - correct?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/virtual-pi/issues/2#issuecomment-379831234,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ3pJbNve2fLu9z0A5EmSIFrsZrkmks5tm5rVgaJpZM4S9q-3
.

HI @jywarren - I'm a little late the thread but FWIW on the Open Pipe Kit R-Pi images we started with manually building them on the hardware they were intended and then did experiment with using qemu but it was just becoming possible back then.  That would be great if it's not too painful now, otherwise a bash script and manually building images just gets the job done.

Hi, all - just wanted to chime in that @icarito has completed a large portion of this! You can now read the manual in the README: https://github.com/publiclab/image-builder-rpi
Fantastic!!!

Thanks @jywarren ! I hadn't pushed the manual yet, but it's published now!
https://github.com/publiclab/image-builder-rpi/releases/download/0.1/manual.pdf
Sources are in docs/.

oh sorry, i thought it was there, my bad! But good to see now :-)
On Fri, Aug 3, 2018 at 2:26 PM Sebastian Silva<EMAIL_ADDRESS>wrote:

Thanks @jywarren https://github.com/jywarren ! I hadn't pushed the
manual yet, but it's published now!
https://github.com/publiclab/image-builder-rpi/releases/download/0.1/manual.pdf
Sources are in docs/
https://github.com/publiclab/image-builder-rpi/tree/master/docs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/image-builder-rpi/issues/2#issuecomment-410337965,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABfJ6vABiBJXXs4KR55nrf__5YZl7HEks5uNJXMgaJpZM4S9q-3
.


Move to Security-Guard 0.6

Moved to Security-Guard 0.6

run  ./hack/update-codegen.sh, to update the manifests for security guard.

./hack/update-codegen.sh

hi @houshengbo,
I already did - what may be the reason that ./hack/update-codegen.sh does not pick up 0.6?

/hold

/unhold
0.6.1 is released

#1611 seem to resolve this.
Closing..


release 2.3.0 plays two videos at once

Hi,
Using the Basic1 code for the Exoplayer2 extension, the app plays two videos at once. I was running into the problem with some other code so I did a test using the exact sample Basic1 code, but the problem still remains.
The only differences that I have from the sample Basic1 code are that I setup the recyclerView in the activity instead of the fragment and that I also had the adapter return a SimpleVideoObject for every other row instead of every 5th row.
Thanks!

@tlind15 Thanks for the report. Let me take a look. FYI Android Studio has a cool feature to record screen, so you don't need bandicam for this :D.

Thanks! Also thanks for the FYI!

Hi, any update about this? I'm facing the same bug.

@tlind15 @EzeroVivanco Can you try 3.0.0-alpha1? I made a huge internal change that ignore the state callback from ExoPlayer. So now It will guarantee the number of players --> will fix this. The migration is huge, but the new version requires less work, so I hope you understand this and try 3.0.0 at the moment.

The app module is where all the sample code stays, and at the alpha state, I'm willing to answer any question about migration. So please try it. I may lack time for the careful documentation, but feel free to ask.


Using Sw-precache with firebase  (question)

I am a bit unclear as to how to configure runtime caching option for my SPA so that I can have service worker control calls made to firebase database for data and cache the previously downloaded dynamic data beacuse on refresh the data disappers(when no network)  . Any help would be greatly appreciated.
I don't know if its better to use something like redux-persist which saves the last state in memory so state persists through refresh. but the problem with that is if there is a change in data, how would i know?

You can't, really, if you're using the Firebase Web Socket interface. Web Socket calls bypass the service worker completely.
If you are using the REST interface, then it's possible to have the service worker intercept those calls, but it's not necessarily going to be the best approach (and it forces you to use REST instead of the realtime API).
Instead, what I'd recommend doing is using IndexedDB to handle offline scenarios. Unfortunately, this isn't officially baked into the Firebase JavaScript SDK at the moment, so you'll have to roll your own solution.
https://www.youtube.com/watch?v=srdKq0DckXQ is @addyosmani's talk from Google I/O 2016, that goes into some detail on how he accomplished this in a sample app. You can also take a look at the open source code for the Google I/O Web App, which implements IndexedDB queueing for all read and write operations to handle offline scenarios: https://github.com/GoogleChrome/ioweb2016/blob/master/app/scripts/helper/firebase.js

Hi guys
Is the original issue still the case? Or has someone found a work-around?
I am experiencing the same issue.

I have the same problem as the asker of this question (https://www.stackoverflow.com/questions/50574401/service-worker-not-working-for-external-images-only ), Specifically, I’ve stored my images on Firebase Storage, the access url of which I’ve inserted as a property (i.e. logo-url) into my “members” collection (in Firestore), which I call from a service in Angular 6 and subscribe to it in one of the components. How can I get my Service Worker (ngsw) to cache these images?

same problem here, the sw is not caching the images on the storage....


Allow building with template-haskell-<IP_ADDRESS>

A CPP hack to allow th-instance-reification to build on GHC 7.10 and later.

Thanks! It's now released as 0.1.4


Examples not working in Chrome Version 32.0.1700.107 m

My organizations Chrome is centrally administered and fixed for the moment at Version 32.0.1700.107 m. The examples do not seem to work with that version. I am not sure if this is some time of LTS version or if strictly chosen by our organization.
I thought it odd since I have not seen any other issues with sites not working with this version.
edit to paste console log message:
Uncaught ReferenceError: cloneWithProps is not defined TouchExampleWrapper.js:53

I found the issue relates to cloneWithProps not being imported. And since it is deprecated the cloneWithProps can be updated to React.cloneElement.

It doesn't work for me either on Chrome 46.0.2490.80 m. Same problem.


fix: prevent crash when accessing undefined selected option

There was assumption that the filter function wasn't executed since if having a condition, would imply there must be entities/options available for the condition. However, we can have stale conditions exist even when no suitable entities exist due to edits.

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

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Middleware making HttpClient request to running project when using Microsoft.AspNet.TestHost.TestServer

When you are running a test using a TestServer, what URL do you use within the ASP.Net Core project to access the server from inside a middleware component?  I know you can create an HttpClient and an HttpMessageHandler from an instance of the TestServer, but I have multiple cases where Middleware isn't allowing me to pass in an HttpClient or HttpMessageHandler.
The problem is that in my Startup.cs, I use app.UseJwtBearerAuthentication, which requires an "Authority" to be passed in.  The Authority server is hosted by the same (running) ASP.Net Core site  However, I can't find a way to make that work.
When you create a client from the TestServer instance, it shows the BaseAddress as "http://localhost", so I thought maybe I could use that, but when I try to make a request to that address, I just get a 404.
Another idea I had is that the TestServer can create an instance of HttpMessageHandler, and the JwtBearerOptions has a property call BackchannelHttpHandler I could set with the HttpMessageHandler instance.  But the problem is that the JwtBearerOptions are done being setup by the time I an able to get an instance of HttpMessageHandler from TestServer.

Here's a way you can do it: https://github.com/aspnet/Security/blob/dev/test/Microsoft.AspNetCore.Authentication.Test/Google/GoogleMiddlewareTests.cs#L304-L340

@muratg Thanks for the attempt, but this doesn't quite work for my scenario.
I got my scenario working like this:

Create a TestHttpMessageHandler that acts as nothing but a proxy to another HttpMessageHandler (more specifically, the ClientMessageHandler provided by Microsoft.AspNet.TestHost).  I just override SendAsync, do some reflection, and pass the request over to the wrapped instance's SendAsync method.
Create an instance of TestHttpMessageHandler.  This instance is not yet function since it has nothing to proxy requests to yet.
During TestServer creation, inject whatever HttpMessageHandler's I'll need to use in Startup.cs.
In Startup.cs, get and use the injected HttpMessageHandler's if they are available.  Again, these HttpMessageHandlers are not yet functional since they have no instance to proxy SendAsync calls to.
After the TestServer is created, call CreateHandler() on it to get an instance of ClientMessageHandler.
Assign this instance to the proxies I created in step #1.  All HttpMessageHandlers used in step #4 are now functional and are sending requests to the TestServer as they should.

I have found a way to do this without impacting my production code
protected override void ConfigureServices([NotNull] IServiceCollection services)
{
    base.ConfigureServices(services);

    services.AddSingleton(sp =>
    {
        WebApplicationFactory<Startup> factory = new WebApplicationFactory<Startup>()
            .WithWebHostBuilder(builder => builder.ConfigureServices(hostServices =>
            {
                hostServices.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<JwtBearerOptions>, JwtBearerOptionsTestConfigurator>(_ => new JwtBearerOptionsTestConfigurator(sp)));
            }));
        factory.ClientOptions.BaseAddress = new Uri("https://localhost");
        return factory;
    });
}

and
public sealed class JwtBearerOptionsTestConfigurator : IPostConfigureOptions<JwtBearerOptions>
{
    [NotNull]
    private readonly IServiceProvider serviceProvider;

    public JwtBearerOptionsTestConfigurator([NotNull] IServiceProvider serviceProvider)
    {
        this.serviceProvider = serviceProvider;
    }

    public void PostConfigure([CanBeNull] string name, [NotNull] JwtBearerOptions options)
    {
        WebApplicationFactory<Startup> webApp = this.serviceProvider.GetRequiredService<WebApplicationFactory<Startup>>();

        options.Authority = webApp.ClientOptions.BaseAddress.AbsoluteUri;
        options.BackchannelHttpHandler = webApp.Server.CreateHandler();
    }
}

We periodically close 'discussion' issues that have not been updated in a long period of time.
We apologize if this causes any inconvenience. We ask that if you are still encountering an issue, please log a new issue with updated information and we will investigate.


Add a way to disable all nightly tests

One thing I'm realizing now is that we test a number of nightly features
of Cargo/rustc, but if they change in rustc then because
rust-lang/rust's CI run's Cargo's tests it could prevent those changes
from landing! The purpose of running Cargo's tests in CI in
rust-lang/rust is to ensure that Cargo generally works, but there's no
need to test the nightly features as that's Cargo's job.
As a result this adds an environment variable that will be set from
rust-lang/rust's CI which will disable these tests.

r? @Eh2406
(rust_highfive has picked a reviewer for you, use r? to override)

@bors r+

:pushpin: Commit d78990b213cd6679d75ceeb3c69989d4be062491 has been approved by Eh2406

:hourglass: Testing commit d78990b213cd6679d75ceeb3c69989d4be062491 with merge eb4e957936fdea2fe1b978fa87beea642751e4bb...

:broken_heart: Test failed - checks-travis

@bors: retry

:hourglass: Testing commit d78990b213cd6679d75ceeb3c69989d4be062491 with merge 49e4af0394dd6b583ac86fb9485e4691b2cc6470...

:sunny: Test successful - checks-travis, status-appveyor
Approved by: Eh2406
Pushing 49e4af0394dd6b583ac86fb9485e4691b2cc6470 to master...


Not recognizing the Words

I try to show the recognized Words with this code:
// Handle results
					function startRecognition(){

						window.plugins.speechRecognition.startListening(function(result){
							// Show results in the console
							console.log(result);

						}, function(err){
							console.error(err);
						}, {
							language: "de-DE",
							showPopup: true
						});

					}

It is asking for Permission (so other code is working) and everything is okay, but the only result I get is:
Ongoing speech recognition
Why does not he show the words I have spoken? Has it perhaps to do with the matches? Is there an example? How is the right code to show the spoken results into the console.log?

Seriously you just close without answering what you might have figured out?

Yes that was the reason.

There are people who do not know that on iOS the recognition does not close automatically. Stay professional in terms of answering @chrisworrell.


Dumping core when reading invalid file

Hello:
I have your module in my application. Compiled with exceptions disabled and -O2 optimization.
I was trying to read an invalid JSON file:
    {         "sn": 1,         "name": "First bird"         "type": 1,         "flags": {             "tied_down": true        }     }
    const std::ifstream config_file(argv[1]);     nlohmann::json j;     config_file >> j;
The application dumps core in the last line instead of returning an error:
Program received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 #1  0x00007f0de58f8899 in __GI_abort () at abort.c:79 #2  0x000055d061bb677d in nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> >::parse_error (this=<optimized out>, this=<optimized out>, ex=...) at /usr/include/c++/9/bits/basic_string.h:1936 #3  nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> >::parse_error (this=<optimized out>,     this=<optimized out>, ex=...) at /develop/build/_deps/nlohmann_json-src/single_include/nlohmann/json.hpp:4806 #4  nlohmann::detail::parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> >::sax_parse_internal<nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> > > (this=<optimized out>, sax=<optimized out>)     at /develop/build/_deps/nlohmann_json-src/single_include/nlohmann/json.hpp:8987 #5  0x000055d061bb6dbc in nlohmann::detail::parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> >::parse (     this=0x7fff73960a80, strict=<optimized out>, result=...) at /usr/include/c++/9/bits/stl_vector.h:94 #6  0x000055d061bb76c3 in nlohmann::operator>> (i=..., j=...) at /develop/build/_deps/nlohmann_json-src/single_include/nlohmann/json.hpp:9104 #7  0x000055d061ba888a in main (argc=2, argv=0x7fff73960ee8) at /develop/apps/apps/test_application/src/test_application.cpp:33

Is this expected behavior?
If yes, what is the proper usage of the class so that the application doesn't dump core and returns an error instead?

Thank you.

The following example https://godbolt.org/z/zpxg_c does not dump core. Any idea what I'm doing wrong?

Hi @ilya1725 ,  this core dumpedbehavior is expected, the reason is very simple: The input file should be attached when executing the code., like./a.out input_data.json

@dota17 , sorry, what? The JSON source file is attached fine. This isn't the problem.
@t-b: I've tried the code in the example and it dumps core just fine. The Compiler Explorer just doesn't show it. One way to avoid the direct core dump is to set the allow_exceptions = true. In this case, if there is an error, the return value will have the discarded flag set. It is not clear from the documentation how to handle this case. An example would have been nice. And this method only works with direct parse(). It won't work with the stream parsing.

@ilya1725 Hmmm, you're right, I got a hasty conclusion, my last point is really wrong, even though they are the same types of errors.
Using operator>> to parse invalid JSON from the stream will indeed directly lead to core dumped, and this cannot be controlled with flags.
The way to avoid application interruption is to use try-catch statements to catch exceptions.


ACA-68 - PseudoCode

JIRA link
ACA-68 "3.3.6 NoCRequest API"
Change description
PseudoCode for Controller and Service layer required for Noc Request Event operation
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[X] No

This branch has been superseded by ACA-68 and a corresponding DRAFT PR has been raised
https://github.com/hmcts/aac-manage-case-assignment/pull/120


something wrong with the pretrained asr model

Hi：
there is something wrong with the pre-trained asr model, it can't be decompressed, can you fixed this problem ????

Hi：
there is something wrong with the pre-trained asr model, it can't be decompressed, can you fixed this problem ????

Hi wpupup, I'm working on the baseline too.
And I found the pretrained asr model (best.pt.tar) is NOT compressed. You can just torch.load it.

Hi：
there is something wrong with the pre-trained asr model, it can't be decompressed, can you fixed this problem ????

Hi wpupup, I'm working on the baseline too.
And I found the pretrained asr model (best.pt.tar) is NOT compressed. You can just torch.load it.

。。。 OK，Thank you very much....!!!


51996148: switch to Cloud symweb

Switching away from the outgoing symweb to Cloud symweb.
Similar changes have been made to internal repos.
///////////////
A microsoft employee must use /azp run to validate using the pipelines below.
WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.
For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

/azp run


Cannot addmatch with special characters and word broundaries.

Steps to reproduce
Using matchadd() to highlight special characters with word boundaries does not seem to be working correctly, I think.
Example:
---%--- % ---%---
        ^

The command :call matchadd('Search', '\<%\>') does not highlight the central % sign.
Expected behaviour
The central % should be highlighted.
Operating system
Windows 10
Version of Vim
gvim 8.2, 64 bit
Logs and stack traces
No response

The command :call matchadd('Search', '<%>') does not highlight the central % sign.

That's because the meaning of the \< and \> atoms is determined by the buffer-local option 'iskeyword'.
This works as you want:
vim9script
'---%--- % ---%---'->setline(1)
setlocal iskeyword+=%,-
matchadd('Search', '\<%\>')

For more info, see:

:help /\<
:help /\>
:help 'iskeyword'
:help matchadd()

For more questions, visit the google mailing list, the irc channel, or vi.stackexchange.com.

Ah I see, after a \< and before the \> there has to be a keyword character. Ok thank you.


Problem using Guid datatype in OData v4 query

I have this query:
Companies
    .filter("Id", new $odata.Value('3240569b-79f5-41b6-9a51-02fcc2aef24f', "Guid"))
    .query();

It results in this URL:
[...]/odata/Sites?$filter=Id eq guid'3240569b-79f5-41b6-9a51-02fcc2aef24f'
Which gives this error message:
{
  "error":{
    "code":"","message":"The query specified in the URI is not valid. Unrecognized 'Edm.String' literal 'guid'3240569b-79f5-41b6-9a51-02fcc2aef24f'' at '6' in 'Id eq guid'3240569b-79f5-41b6-9a51-02fcc2aef24f''."
  }
}

If I remove the "guid" prefix and the quotes around the GUID, everything works fine. This is in accordance with the OData v4 spec: https://www.oasis-open.org/committees/download.php/50849/odata-v4.0-wd04-part2-url-conventions-2013-09-27.docx (see section <IP_ADDRESS>.1). I have specified isodatav4: true to $odataresource.

I 'fixed' it for me by changing this code bit:
if(this.type.toLowerCase() === "guid"){
	return "guid'"+this.value+"'";

to
if(this.type.toLowerCase() === "guid"){
	return this.value;

Although that will probably break functionality with previous OData versions, and shouldn't be considered a generic fix.

Are you sure it's 4.0? Did you check the response header of odata ( which includes the version)

Thanks for the tip. I'm using ODatav4 and I'm requried to use the guid'...' syntax.
So I won't change the library to use that format.

He is right though: http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part2-url-conventions/odata-v4.0-errata02-os-part2-url-conventions-complete.html#_Toc406398153
I'm also facing the same issue when using it in a $filter. According to the specs, guid seems to be used as in integer which is correct. The library doesn't work when using an odata v4 $filter.
Double checked it right now.

Theirs a partial fix in my fork, i'm going to push it now ( first time), but not sure if it's a correct fix for !isodataV4 .. ( just in case your looking into it) : https://github.com/NicoJuicy/ODataAngularResources/commit/9f1f195582cbdd9d365b3517bd273ca5c5e40868

So what you're telling me is that because whatever server-side OData implementation you're testing against does OData v4 wrong, you won't do it right?

I aknoledged my mistake and accepted a pull requests that fixes it already : https://github.com/devnixs/ODataAngularResources/pull/17
You can bower update to get the latest version with the fix.

Pardon me, all I saw was your comment where it said that you won't change the library to use that format. Thanks, sorry for being misinformed.

@devnixs thanks for immediatly putting it into bower :)


Enable reproducible builds with pip-tools and pip-compile-multi

Our requirements.txt defines version ranges for leave packages. That is sufficient for deployments and testing. Eventually we want to have fully reproducible builds where every direct and indirect dependency is locked, pinned, and hashed. This ensures that our users are getting the exact version of a packages that we are testing.
The Python community has developed several tools for the job. In my experience the best tools are pip-tools and pip-compile-multi. The latter is a wrapper for pip-tools for complex setups with multiple requirements files. InstructLab needs several requirements files to deal with CUDA/CPU/ROCm flavors as well as test requirements. The tools take input files + constrain files, fetch the entire dependency chain, and compile a requirements.txt file with the entire chain + sha256 fingerprints of all wheel or sdist files.
I have a working prototype available.
Excerpt:
click==8.1.7 \
    --hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \
    --hash=sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de
    # via
    #   -c requirements/constraints.txt
    #   -r requirements/base.in
    #   click-didyoumean
    #   nltk
    #   uvicorn
    #   wandb
click-didyoumean==0.3.1 \
    --hash=sha256:4f82fdff0dbe64ef8ab2279bd6aa3f6a99c3b28c05aa09cbfc07c9d7fbb5a463 \
    --hash=sha256:5c4bb6007cfea5f2fd6583a2fb6701a22a41eb98957e63d0fac41c10e7c3117c
    # via
    #   -c requirements/constraints.txt
    #   -r requirements/base.in

@n1hility wonder if this is something we might want to revisit given our recent convos around package version control, cc @dhellmann

Doing something like this will make CI more stable, so I do recommend it.

@tiran @nathan-weinberg - what's the current status of this? Christian do you already have this in a branch?


Custom fusion

Pull Request Template
Related Issues/PRs
https://github.com/tracel-ai/burn/issues/1970
Changes
Expose enough information to allow custom operations to use fusing. Also expose a function to resolve a tensor from a fusion backend.
Draft until https://github.com/tracel-ai/cubecl/pull/256 lands & some other bits are cleaned up.
This also fixes https://github.com/tracel-ai/burn/issues/1970 by bailing on fusing when going over max bindings.

I've also added a fix for a deadlock in fusion on wasm in this PR now. It might or might not make things run a bit smoothly on other platforms too, as it was incorrectly holding the server lock while waiting for a read.


Execution branches not evaluated for super/this calls

Search Terms:
super, this and variations of "'super' must be called before accessing 'this' in the constructor of a derived class."
Code
export class Foo {
  constructor(value: number) {
  }
}

export class BarCorrectlyFails extends Foo {
    constructor(something: boolean) {
      if (!something) {
        const value = this.bar();  // <--- this used before super; correctly detected
        super(value);
      } else {
        super(1337);
      }
    }
    bar(): number { return 4; }
}

export class BarIncorrectlyWorks extends Foo {
    constructor(something: boolean) {
      if (something) {
        super(1337);
      } else {
        const value = this.bar();  // <--- this used before super; not detected
        super(value);
      }
    }
    bar(): number { return 4; }
}

Expected behavior:
Both of the above Bar* classes should fail to compile. The branches seem to be ignored when determining if this and super are called in-order, so the above super call in another branch seems to allow compilation to continue.
Actual behavior:
The BarIncorrectlyWorks produces ESM code which fails at runtime, when the super occurs before the this.

The issue here is our fairly naive check that first occurrence of a super call in lexical order occurs before every this member access. That check is really only correct when there are no branches in the code.


Problems about the code

Dear @bilylee
Hello
Thanks for your contributions :tada:
I have encountered a problem in the code which lies in line .

my problem is that how does this function work ?
to understand it , I have written a code snippet(mimic your function) as the following:

    def get_mean(values):
        with tf.name_scope('mean'):
            mean, update_op = tf.metrics.mean(values)  # values = [1, 2, 3, 4, 5]
            with tf.control_dependencies([update_op]):
                mean = tf.identity(mean)
            return mean

    g = tf.Graph()
    g.as_default()
    values = tf.convert_to_tensor([1, 2, 3, 4, 5], dtype=tf.float32)
    mean= get_mean(values)
    init_global_variables = tf.global_variables_initializer()
    init_local_variables = tf.local_variables_initializer()
    g.finalize()

    sess = tf.InteractiveSession(graph=tf.get_default_graph())
    sess.run(init_global_variables)
    sess.run(init_local_variables)
    print sess.run(values)
    for i in range(5):
        print 'mean:', sess.run(mean)

# out:
# [1. 2. 3. 4. 5.]
# mean: 0.0
# mean: 6.0
# mean: 4.5
# mean: 4.0
# mean: 3.75

# not corresponding to my expectation
# expected values are:
# [1. 2. 3. 4. 5.]
# mean: 3.0
# mean: 3.0
# mean: 3.0
# mean: 3.0
# mean: 3.0

# reasons as following：
# iter: 1
# total = 1+2+3+4+5 = 15
# count = 1+1+1+1+1 = 5
# mean = 15 / 5 = 3
# iter: 2
# total = 15 + 15 = 30
# count = 5 + 5 = 10
# mean = 30 / 10 = 3
...

Would you please told me I did anything wrong ? And how to understand it ?

Thanks in advance
Best regards

Hi, @SMZCC  Here's what I got, different from yours,

as a personal opinion, the function aims to calculate how many response maps has a peak outside the manually labels center which makes it simple and intuitive, your question may lay on mechanisms of tensorflow. As for this issue, I suggest reading the official document and report your experiment settings here(os, tf version, python version, etc.), while I also got 0.0 in the first round (tf=1.4,cpu, py=2.7), I will be better to double check the step in execution.

This parameter is the stride of the feature extractor. It is used for computing ground truth labels during training and target positions during testing.
I used convolutional_alexnet.stride = 8 in the early days of implementing SiamFC. Its usage is now replaced by https://github.com/bilylee/SiamFC-TensorFlow/blob/17f51563f081281fc7d966602d393715e7ecb469/configuration.py#L36
You can safely delete this line without affecting anything.

You can safely delete this line without affecting anything.

I have tried and I found nothing changed , which made me confused, but now , it's OK.Thanks a lot !
Good job :+1: :muscle: @bilylee
Best regards


Use a consistent version for ScanCode and its imported license text resources

For clarity and consistency.

I'm surprised there was only a single license deleted in the last commit, I would have expected more changes since 3.2.1-rc2. Are you sure everything is working correctly?

The 3.2.1-rc2 release has been created on 2020-09-11 [1] while the last time these text results were updated was on
2020-10-08 [2]. Since that time interval is quite small I wouldn't expect too many changes so I'm not surprised. I haven't double checked it against ScanCodes' Git history though.
[1] https://github.com/nexB/scancode-toolkit/releases/tag/v3.2.1rc2
[2] https://github.com/oss-review-toolkit/ort/commit/f6b7ab9d1bfd89b1c968db5f9896e90d834982d6

I'm surprised there was only a single license deleted in the last commit, I would have expected more changes since 3.2.1-rc2. Are you sure everything is working correctly?

The 3.2.1-rc2 release has been created on 2020-09-11 [1] while the last time these text results were updated in ORT was on
2020-10-08 [2]. Since that time interval is quite small I wouldn't expect too many changes so I'm not surprised. I haven't double checked it against ScanCodes' Git history though.
[1] https://github.com/nexB/scancode-toolkit/releases/tag/v3.2.1rc2
[2] f6b7ab9

Thanks for checking, I thought we would update more frequently.


npm install fails

I cannot get 'npm install' to succeed in this project. I keep getting the following error:
> gulp-rails@ postinstall /Users/peter/projects/lifesizey/gulp-rails-pipeline
> gulp build

util.js:634
  ctor.prototype = Object.create(superCtor.prototype, {
                                          ^
TypeError: Cannot read property 'prototype' of undefined
    at Object.exports.inherits (util.js:634:43)
    at Object.<anonymous> (/Users/peter/projects/lifesizey/gulp-rails-pipeline/node_modules/browser-sync/node_modules/http-proxy/lib/http-proxy/index.js:108:17)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/peter/projects/lifesizey/gulp-rails-pipeline/node_modules/browser-sync/node_modules/http-proxy/lib/http-proxy.js:4:17)
    at Module._compile (module.js:460:26)

npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/peter/.nvm/v0.12.2/bin/node" "/Users/peter/.nvm/v0.12.2/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE
npm ERR! gulp-rails@ postinstall: `gulp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gulp-rails@ postinstall script 'gulp build'.
npm ERR! This is most likely a problem with the gulp-rails package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp build

I have tried with various versions of node 0.10, 0.11 and 0.12 but always get the same error. Any suggestions on how to resolve this? Googling around got me nowhere... thanks

updating the following dependency in package.json
"browser-sync": "~1.9"
resolved the issue for me.

Can confirm this also works with:
"browser-sync": "~2.4.0",


Many collectd log entries when using mesos-master.py on an elected master node

I get many log entries in /var/log/collectd.log when running collectd-mesos on a master node that is elected as a leader:
[2015-09-01 11:15:12] [warning] mesos-master plugin: Value not found for master/task_lost/source_master/reason_slave_removed
The result is, that the log is continuously growing, even though there's nothing wrong.
Maybe this message could be removed or optionally disabled somehow?
Here's my config:
<Plugin "python">
    ModulePath "/usr/share/collectd/plugins/"
    Import "mesos-master"
    <Module "mesos-master">
        Instance "test"
        Host "<IP_ADDRESS>"
        Port 5050
        Verbose false
        Version "0.22.1"
    </Module>
</Plugin>

curl http://<IP_ADDRESS>:5050/metrics/snapshot

{
"master/cpus_percent": 0.00625,
"master/cpus_total": 32,
"master/cpus_used": 0.2,
"master/disk_percent": 0.000564174894217207,
"master/disk_total": 85080,
"master/disk_used": 48,
"master/dropped_messages": 2,
"master/elected": 1,
"master/event_queue_dispatches": 6,
"master/event_queue_http_requests": 0,
"master/event_queue_messages": 0,
"master/frameworks_active": 2,
"master/frameworks_connected": 2,
"master/frameworks_disconnected": 0,
"master/frameworks_inactive": 0,
"master/invalid_framework_to_executor_messages": 0,
"master/invalid_status_update_acknowledgements": 0,
"master/invalid_status_updates": 0,
"master/mem_percent": 0.00135095199898679,
"master/mem_total": 94748,
"master/mem_used": 128,
"master/messages_authenticate": 0,
"master/messages_deactivate_framework": 0,
"master/messages_decline_offers": 4750840,
"master/messages_exited_executor": 0,
"master/messages_framework_to_executor": 0,
"master/messages_kill_task": 0,
"master/messages_launch_tasks": 56917,
"master/messages_reconcile_tasks": 35417,
"master/messages_register_framework": 0,
"master/messages_register_slave": 2,
"master/messages_reregister_framework": 9,
"master/messages_reregister_slave": 12,
"master/messages_resource_request": 0,
"master/messages_revive_offers": 0,
"master/messages_status_update": 293405,
"master/messages_status_update_acknowledgement": 293405,
"master/messages_unregister_framework": 0,
"master/messages_unregister_slave": 0,
"master/outstanding_offers": 0,
"master/recovery_slave_removals": 0,
"master/slave_registrations": 2,
"master/slave_removals": 2,
"master/slave_reregistrations": 2,
"master/slave_shutdowns_canceled": 0,
"master/slave_shutdowns_scheduled": 2,
"master/slaves_active": 2,
"master/slaves_connected": 2,
"master/slaves_disconnected": 0,
"master/slaves_inactive": 0,
"master/task_failed/source_slave/reason_command_executor_failed": 34,
"master/tasks_error": 0,
"master/tasks_failed": 625,
"master/tasks_finished": 143040,
"master/tasks_killed": 0,
"master/tasks_lost": 0,
"master/tasks_running": 2,
"master/tasks_staging": 0,
"master/tasks_starting": 0,
"master/uptime_secs": 7794860.4021609,
"master/valid_framework_to_executor_messages": 0,
"master/valid_status_update_acknowledgements": 293405,
"master/valid_status_updates": 293405,
"registrar/queued_operations": 0,
"registrar/registry_size_bytes": 419,
"registrar/state_fetch_ms": 16.600064,
"registrar/state_store_ms": 11.29216,
"registrar/state_store_ms/count": 2,
"registrar/state_store_ms/max": 11.29216,
"registrar/state_store_ms/min": 10.879232,
"registrar/state_store_ms/p50": 11.085696,
"registrar/state_store_ms/p90": 11.2508672,
"registrar/state_store_ms/p95": 11.2715136,
"registrar/state_store_ms/p99": 11.28803072,
"registrar/state_store_ms/p999": 11.291747072,
"registrar/state_store_ms/p9999": 11.2921187072,
"system/cpus_total": 16,
"system/load_15min": 0.11,
"system/load_1min": 0.16,
"system/load_5min": 0.1,
"system/mem_free_bytes":<PHONE_NUMBER>4,
"system/mem_total_bytes":<PHONE_NUMBER>6
}

+1

@mre @IngaFeick  If you set your collectd syslog plugin LogLevel to "err" you should not see these warnings in your log file.  The other option is to make these warnings only appear when Verbose Logging is enabled.   Thoughts?

Maybe it makes sense to go with the second option. Warnings are usually quite important on collectd. They point out that something might be wrongly configured. The behavior here is expected, it seems. It is more of an info text to me and it's occurring pretty often which makes the log grow fast. To be honest I thought it was a bug, because it did not go away when I set Verbose to false.
So yeah, from my side only show in verbose mode. :+1:

Addressed in https://github.com/rayrod2030/collectd-mesos/commit/8f71161cd51547fe8f712f12ac3f288ab8fee716

Perfect. Thank you!


Handle encoded URLs on initial load

I had posted a PR https://github.com/ReactTraining/react-router/pull/4120, but I think I wasn't on the right track there. @pshrmn already posted a few comments.
Version
4.x
Test Case
it('renders with encoded', () => {
      const Page = () => <div>{TEXT}</div>
      const loc = { pathname: '/%C3%BCber' }
      const html = renderToString(
        <Router intialEntries={[ loc ]}>
          <Match
            pattern="/über"
            component={Page}
          />
        </Router>
      )
      expect(html).toContain(TEXT)
})

Steps to reproduce
Run the test above or try to match similarly in a real project.
Expected Behavior
Should decode URL somehow and match.
Actual Behavior
First load will not match, but if using a , it will match. This happens server and browser side.

I believe that calling decodeURI on the pathname will fix this. That will decode all of the non-reserved characters so that we have an IRI to match against.
There are two locations where this might make sense to do. The first is in createRouterLocation and the second is the the <StaticRouter>'s componentWillMount call (this only works if we only ever need to decode the initial location).

Like @pshrmn, decoding with decodeURI in createRouterLocation helped me solve the problem. https://github.com/ReactTraining/react-router/pull/4160

Thanks for the heads up, @bkniffler :) The current v4 branch doesn't actually do any URL encoding/decoding. It just takes whatever location object it gets from the history lib and goes from there. So it seems like this should be a non-issue now.

On second look, this is actually an issue with the history lib, and I'm not 100% convinced it's one we want to "fix". In the OP, @bkniffler is manually populating a memory history's entries array using <MemoryRouter initialEntries>. In the case of memory history, you're in complete control of the URLs that get added to the history, so you could (should?) actually do the decoding before passing them in. With browser-based history objects (browser and hash) it's definitely our responsibility to decode URLs.
Closing for now due to lack of comment from the OP.

I'm sorry to not respond earlier @mjackson. But currently I've no clue where a solution should be implemented. You say its your responsibility to decode URLs, which I think is true since in the browser based history there is no way to control the initial location / decoding. What exact place do you think needs to be changed? Add a function to history that may manipulate the initial location? Make history accept a custom initial location?

@bkniffler I'm saying you should provide decoded URLs in your initialEntries array. Is there any reason you can't?

Ah, I think I understand now: So I should substitute the BrowserRouter with MemoryRouter in my frontend and take care of initial route decoding via initialEntries and implement writing to the address bar manually? I could try that.

No, don't try changing the URL manually. That's what <BrowserRouter> and <HashRouter> are for...

Sorry @mjackson, I don't get it. Only memoryRouter may set initialEntries, but memoryRouter obviously is not a replacement for browser routers (hash/browser). So please enlighten me, how can I get URLs with characters like Umlauts get to work on the initial load, since there doesn't seem to be any way to control the location that is initialized by the browser routers? Am I overseeing something obvious? It sure feels like it..

In the example you provided, you were using <MemoryRouter initialEntries>. Are you saying you see URLs coming out of <BrowserRouter> that are not encoded properly?

Yeah, I might not have made it clear and I see the confusion due to my original post using memoryRouter. Originally, I thought this was a problem with the react-routers core functionality, lacking a way to handle this. Now, you made it clear that proper locations should be set upfront, which makes total sense for server/memory routers.
So, what is the best way to handle URLs with special characters in the browser routers?

Okay, lets just leave this be and continue with #4319 which is more precise.


Feature Request

Some way to automatically re-join the server you were in if you were disconnected would be very useful.

implemented in v1.4.0


doc: create a roadmap issue

Create an issue to document the roadmap of the project

Done with #1


Start to cleanup setup instructions

Remove the old docker-compose.yml. If we want to run Supabase on Docker, the instructions for doing so are quite different and won't use this file: https://supabase.com/docs/guides/hosting/docker
Change npm to pnpm
Remove old instructions about linking @sveltejs/site-kit and @sveltejs/svelte-repl which is no longer necessary

At some point we're going to want to set up a todo table to power api.svelte.dev/todos (https://github.com/sveltejs/api.svelte.dev/issues/8) which is why I felt it made more sense to keep it at the top level — it's not specific to just svelte.dev

Ok, I moved it back for now. That makes me wonder if the API should live in this monorepo as well
I also wonder if it's a good idea to have two different sites sharing the same database. If we don't want them each to have their own database, we could try to make the API the single source of truth for info coming from the database and do everything through it

Not opposed to moving https://github.com/sveltejs/api.svelte.dev in here, but would want to know what @pngwn and @lukeed think.
I don't think there's much advantage in putting it between svelte.dev and Supabase though. It's just an extra hop (and another set of keys to look after — would need to make sure that only svelte.dev was able to make certain requests of the API) with no obvious benefit.
I can imagine a situation in which we added a feature to kit.svelte.dev that required you to log in, and at that point we might want to share the user table between two sites rather than maintaining duplicate tables. So even if we spun up a new database for /todos (which feels like overkill? not sure), we still wouldn't necessarily have a 1:1 site:db mapping


rule: fix reload signal not working

Signed-off-by: Juraj Michalek<EMAIL_ADDRESS>

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes
Fixed a bug when sending sighup signal to thanos ruler didn't result in loading changes.

Verification

Started thanos locally using make quickstart.
Modified recording rule in rules.yml created by the quickstart option
Sent sighup to thanos ruler
Looked at thanos ruler ui to check if changes were successfully loaded (they were)

Thanks for the PR! :muscle: Maybe we could add a test for this? Because this functionality was working, then we broke it, and now this fixes it again. Having a test would make sure that this works. What do you think? :thinking: The seems like a good fit for the e2e tests however you will probably have to improve the e2e framework for Cortex to add a KillSignal(signal int) error interface or something like that.

Yeah I was thinking adding the test would make sense too. Should I do it as part of this pr or could it be a follow up pr? Since making changes necessary in cortex might take some time.
I was also thinking exposing api to exec commands inside the containers started by the cortex e2e framework might make a bit more sense since it could be useful in other cases not just this one.

So it seems the e2e services already provides Exec which can be used to send the signal, now I just need to figure test that the reload actually worked.

I added the test for reloading using sighup. Currently I am checking that there 3 rule groups (there are 2 before the reload, one is added by the reload). Is the test okay like this?

Not sure why the unit tests failed but I don't think it's caused by my change. Could we re-run them?


Release 1.3.0

Prettier and faster.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2326

Relevant Lines:
2970

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2326

Relevant Lines:
2970

💛  - Coveralls


Digital Miner issue

Hey guys, not sure if anyone else is experiencing this or if its a simple mod conflict, but for a couple of months now in 1.11.2 and now 1.12.2 I am finding that the Digital miner does not mine.
the 2 screenshots of the DM's interface were taken about 10 minutes apart in 1.12.2
https://imgur.com/a/oMusZ
Below is a list of ALL installed mods.
ActuallyAdditions-1.12.2-r124.jar
AdvancedRocketry-1.12.2-1.2.5a-22.jar
ArmorStandGUI-1.12-1.0.4.jar
autoplant-1.12-1.0.0.jar
backpacks 1.12.2 - 3.4.2.jar
base-1.12-3.4.2.jar
BetterBuildersWands-1.12-<IP_ADDRESS>+69d0d70.jar
BetterFoliage-MC1.12-2.1.10.jar
BiblioCraft[v2.4.3][MC1.12.0].jar
BowInfinityFix-1.11.x-1.12.x-rv5.jar
Chameleon-1.12-4.1.3.jar
ChickenChunks-1.12-<IP_ADDRESS>-universal.jar
Chisel-MC1.12-<IP_ADDRESS>.jar
chiselsandbits-14.9.jar
Clumps-3.0.0.jar
CodeChickenLib-1.12-<IP_ADDRESS>3-universal.jar
CoFHCore-1.12-<IP_ADDRESS>-universal.jar
CoFHWorld-1.12-<IP_ADDRESS>-universal.jar
CoralReef-2.2-1.12.2.jar
CTM-MC1.12-<IP_ADDRESS>.jar
Decocraft-2.5.2_1.12.2.jar
EnchantingTable-1.12-1.1.2.jar
extrautils2-1.12-1.6.7.jar
ExtremeReactors-1.12-<IP_ADDRESS>.jar
FastLeafDecay-v14.jar
FTBLib-4.2.3.jar
Futurepack-1.12.1-26.2.27.jar
HoloInventory-1.12.2-<IP_ADDRESS>.jar
InventoryTweaks-1.63.jar
IronBackpacks-1.12.2-3.0.1-2.jar
ironchest-1.12.2-<IP_ADDRESS>0.jar
IronMan-Beta-1.12-1.0.1.jar
jei_1.12.2-<IP_ADDRESS>.jar
journeymap-1.12.2-5.5.2.jar
LC 0.0.1.jar
LibVulpes-1.12.2-0.2.6-12-universal.jar
lostcities-1.12-1.0.2.jar
LucraftCore-1.12-1.2.3.jar
Mantle-1.12-<IP_ADDRESS>.jar
MCA-1.12.x-5.3.1-universal.jar
mcjtylib-1.12-2.4.5.jar
Mekanism-1.12.1-<IP_ADDRESS>6.jar
MekanismGenerators-1.12.1-<IP_ADDRESS>6.jar
MekanismTools-1.12.1-<IP_ADDRESS>6.jar
minecolonies-universal-1.12.2-0.8.4832.jar
modeltrains-1.2.2.jar
NotEnoughItems-1.12-<IP_ADDRESS>-universal.jar
omlib-1.12.2-3.0.0-131.jar
openmodularturrets-1.12.2-3.0.0-221.jar
OptiFine_1.12.2_HD_U_C6.jar
platforms-1.12.0-1.4.1.jar
RadixCore-1.12.x-2.2.1-universal.jar
railsplus-1.0.1.jar
realms_persistence.json
RebornCore-1.12.2-<IP_ADDRESS>-universal.jar
RebornStorage-1.12.2-<IP_ADDRESS>.jar
RedstoneFlux-1.12-<IP_ADDRESS>-universal.jar
refinedstorage-1.5.23.jar
rflux-1.12-0.1.2.jar
rftools-1.12-7.13.jar
shetiphiancore-1.12.0-3.5.4.jar
Signals-1.12.2-1.0.0-universal.jar
SpacePackExtended-1.12-2.2.4-alpha.jar
StevesCarts-1.12.2-<IP_ADDRESS>.jar
StorageDrawers-1.12.1-5.3.3.jar
switchbow-1.5-1.12.2.jar
TConstruct-1.12-<IP_ADDRESS>.jar
ThermalCultivation-1.12-<IP_ADDRESS>-universal.jar
ThermalDynamics-1.12-<IP_ADDRESS>-universal.jar
ThermalExpansion-1.12-<IP_ADDRESS>-universal.jar
ThermalFoundation-1.12-<IP_ADDRESS>-universal.jar
tombstone-1.6.0-1.12.jar
torohealth-1.12.2-11.jar
TreeChopper-1.12.2-1.2.4.jar
UniDict-1.12.2-1.2.jar
VeinMiner-1.12-<IP_ADDRESS>9+134fb1e.jar
VillageNames-1.12.2-2.0.jar
WanionLib-1.12.2-1.2.jar
wolfarmor-1.12.2-<IP_ADDRESS>-RELEASE.jar
YABBA-1.0.10.jar
zerocore-1.12-<IP_ADDRESS>.jar
What logs are you guys needing from me?

#4782, #4764
Changes have been made to the miner in dev, so issues may be solved.
If single player, you can try https://github.com/aidancbrady/Mekanism/releases/tag/9.4.1%2B8bbef954

I assume I need to remove all 3 mekanism jar files before installing the one you linked?

After 10 minutes with the new .jar the dminer still doesnt do anything

Do you have any chunk protection/claims enabled? If so, are fake players allowed?

I have no idea what those are so probably not

Using FTBlib at all?

If not, what are your filters set for?

Yes. For chicken chunks.

Try this build. If it doesnt stall you definitely have some kind of chunk protection.
http://maven.thiakil.com/filedump/MekanismAll-1.12.2-<IP_ADDRESS>3eecc3.jar

There is 1 thing I can think of that COULD be causing it. Futurepack recently added their own dungeons. Anything you break in them is instantly restored.

I just tried your .jar  something new happened.  I clicked it to start it, after a few seconds the dminer turned off.
https://imgur.com/a/SmNRW
Gonna remove futurepack and see if that makes a difference.

Well yeah I block all players (so I guess even fake players if they fire events) from breaking the dungeon blocks. Because it is realy important to not break them until the player cleared them, else the player could achive stuff they should not have (end game).
But I am only protecting the needed blocks not all, so you should be able to mine anything around it. Also it is very cool from Mekanism to use fake players and just destroy the blocks (buildcraft querrys...)

The digital miner turning off is a good thing, that is an indication it's done with its mining goal. The change @thiakil applied to the file you download is a check to make sure it can break it and skip it if it cannot be mined (thus preventing a stall on an unbreakable block), previous versions would try over and over, failing constantly. (Reference: 9e49a7ccb3f5c92ea213f863595917d2894d4a91)

I can understand where @mcenderdragon is coming from, but the dminer isn't trying to mine any of the FP blocks as you can see in the screenshots so even ores are being blocked.

one layer around the dungeon is protected as always cuboids get protected, so if the structure was a star there are alot of unchanged but still protected blocks, this is to make sure you can cheat you in higher levels.

Hmmmmm wonder why then that the miner cant mine anything at all if only 1 layer gets protected.

Are you saying it works fine in that world if you remove FuturePack? Or just that it does in a fresh world?

Existing world with fp removed - no.
New world started after FP removed - yes

If it still does not work without FP installed, it is not an issue with FP.

It worked perfectly fine in a new world created after the removal of FP. But wont work in worlds created while FP was installed both before and after the removal of FP

The only thing of relevance I changed in the newest build was to make it not fail to move on if a block break is denied. If FP is no longer installed it cannot be the cause of the denial

@thiakil it works perfectly on a world created after the removal of FP. On worlds created while FP was installed the dminer turns off after a few seconds and does nothing.

My point stands.

The behaviour of it not working after removal reminds me of how some skyrim mods leave scripts etc in the save file and need to be manually removed if that makes any sense

So why then would it work fine on a new world but not on an existing one

Sure, but that's not how Minecraft works. Create a copy of that world and remove everything except Mekanism. It will probably work.

Try this, and enable logDigitalMinerBlockBreakDenied in the config, then check your logs after having tried mining. It should tell you what denied the event.
http://maven.thiakil.com/filedump/MekanismAll-1.12.2-9.4.2.custom-log-break-denials.jar

I wanted to test something so i reinstalled FP and made a new world. The dminer works perfectly in this new world, seems its my old ones that it wont work in.

@mcenderdragon I owe you an apology. I found the real culprit. @thiakil you were right about it being a protection issue. Minecolonies has a 'colony protection' option that once disabled allows the dminer to mine. With the option turned on it stops the miner. This explains why it worked fine in a fresh world and not preexisting ones. My new test worlds havent had a colony started yet, therefore at that point the protection wasnt active.  Will let them know.

@Moobien @mcenderdragon @thiakil I am one of the Main developers of Mincolonies. Am i right to asume that the Digital Miner is a FakeUser?

I believe so

For the purposes of the block break event, yes

Then you need to set the correct username in accordance with Forge. If Mekanism sets the user id of the placer on the FakePlayer (in according with Forge documentation, yes we fell on our noses with lex ourself when we first encountered this error) Minecolonies will accept the FakePlayer just fine.

The user of the fake player is always the same; we only use one for the whole mod in order to not pollute the player list, much like many other mods.
You also shouldn't be using names to store/distinguish players, rather the UUID

Yep, we asked lex how to handle this, since their is no way to get a proper username list from these FakePlayers, and lex flat out told us, that the implementer of the FakePlayer is wrong and should use the UUID of the placing Player as the UUID for the FakePlayer, he was not willing to provide a list for us, since in his opinion even adding a single FakePlayer with a unique UUID for the whole mod was poluting the list, since you could use the UUID of the placer. Which would identify the FakePlayer properly to anyone who wants ist username.

This is the relevant discussion whe had with Lex: https://github.com/Minecolonies/minecolonies/issues/645#issuecomment-281852438

I am well aware of what you mean, but in typical Lex manner, the javadoc says nothing about it should be the same as the player who placed it.
Forge does in fact keep a weak cache of fakeplayers created using its factory, though it doesnt seem very useful.
The fake player not matching a user is valid behaviour imo, it just doesnt help your mod. We could even be using net.minecraftforge.common.util.FakePlayerFactory#getMinecraft(World) which uses a static player that anyone can use.
The user can still trust the Mekanism user, though it will not be specific to that user's Digital Miner(s)

The Problem is that there is no way to get a properly displayable Name for them all, so that we can list them properly in a UI where the user selects them.

Do not get me wrong I wish it worked the other way around, but it does not sadly.... The insane Things is that we offered a PR to get the List as a Immutable, wrapped up and neat. Refused. With a not needed.

Their is not much we can do, we can not add a list of hundreds of mods that use this technique to our mod just to track all the FakePlayers.

there is no way to get a properly displayable Name for them all, so that we can list them properly in a UI where the user selects them.

You most certainly can cache the GameProfiles you see in event and present them, or just let users enter the name/id

With a not needed.

Reflection can get you access to the list.
Currently the ownership system in Mekanism is not set up properly to handle all cases of giving a FakePlayer a UUID it can return. And if something has block protection it can either allow fake players or not, that's for the user to configure.


REST endpoint to deploy foxx service

Hello,
We'd like to integrate the deployment phase to our Jenkins pipeline, does a REST API endpoint exist to deploy a new foxx service or update an existing one ?
Thank you in advance !

Found it, POST /_api/foxx, thanks !


swayidle stopped working, compositor doesnt implement protocol

temporary fix: roll back swayidle too 1.8.0
started talking about this in discord, figured id open a bug report too
i updated my system sometime in the last month and i finally noticed yesterday that swayidle stopped working, looking through swayidles commits the only change  was dropping KDEs idle protocol in favor of the native wayland protocol
so i did some digging, and if im understanding the Hyprland code properly its using the dropped kde protocol instead of idle_notify-v1
wlroots/types/wlr_idle.c               <---- old kde protocol
wlroots/types/wlr_idle_notify.c   <---- new protocol
wl-roots still has a 8month old pr too drop support for it but
"
We might want to wait a bit for this. In the past we've waited a bit, then removed the protocol from Sway, then waited a bit, then removed the protocol from wlroots. Removing from wlroots impacts all compositors.
That said, this protocol has few clients, so might be able to go faster than usual.
"

See also https://github.com/swaywm/sway/pull/7200

fixed in f8def68e7e761e33dd51c197ac89194a51fcb60f

it still does not work for me. I run swayidle -d -w timeout 5 lockscreen.sh timeout 10 suspend.sh  and nothing happens

So with Hyprland 0.27 and latest version of swayidle, it works. But f8def68 broke it for me. I tried cleaning everything, but that does not change anything. It seems the idle message is never received by swayidle, and the timeouts never starts

new data point: it works when I disconnect my HDMI monitor. After unplugging it, and replugging it, it continues to work

@primalmotion do you have waybar if you do I guess for some reason enabling the idle inhibitor will actually allow the inhibition instead of stopping it
at least that's my case

wut? lol let me try

yeah you're right. So is that a waybar issue or an Hyprland issue? :/

fexd 459afcc47f7a8fd0b85c4b89645099e2643732b3

nice! thanks


Add Collections doc

Collections are explained briefly in the Quick Start, and nowhere else. They deserve to have their own page, with detailed instructions for the three types: file, folder, and filter. Here's a rough outline pulled from #598 (with the order changed slightly):
Collections: file, folder, filter
(explain the differences, show config examples for each)

folder:

grouping of separate files based on the same template, stored in the same folder
UI widgets will be identical for all items in the folder (or all matching the filter, below)
may or may not be able to add new items (depending on create field)

filter:

used with folder type
can be used to pull only items matching the specified field value
requires field and value: must be an exact match

file:

single file or grouping of files, with fields specified for each file individually
can be useful for data files with settings or highly customized pages
cannot be filtered; cannot add new items

Note: regardless of collection type, each item in the main area of the collection browser represents a separate file (though separate files may be combined into a single published page via templating)

I forgot to mention that @tech4him1 started some work in this direction with #656 (then closed it in favor of this outline). Much of the work he did there pulls from the Quick Start, but I think we'll probably want to be more "reference-like" and less "instructional" with the structure of this doc, if that makes sense.


[BUG] Crash after pulling id chip from space station assembler

Version of Advanced Rocketry

AdvancedRocketry-1.12.2-1.6.0-160-universal

Have you verified this is an issue in the latest unstable build

[x] N/A

Version of LibVulpes

LibVulpes-1.12.2-0.4.1-60-universal

Version of Minecraft

1.12.2

Does this occur without other mods installed

[x] N/A

Crash report or log or visualVM (if applicable)

https://pastebin.com/bgytH06t

Description of the problem

Crash after pulling id chip from space station assembler

Does this happen without Sponge?

Yes, seems like a sponge issue

There doesn't appear to be anything AR related in the stack trace, does this happen with mods other than AR?   If so please close the issue and report it to sponge instead.

Conflicting with only sponge, closing thread


feat(protocol)!: cache cross-chain data in the signal service as signals

This PR shows the idea of improving the SignalService to achieve the following objectives:

Caching remote chain's state root or its signal service's storage root locally, inside the local signal service.
The proofs for multi-hop bridging can be full Merkle proofs,  storage proof, or a mix of these two.
The transactor can specify exactly which chain/hop's signalRoot or stateRoot should be cached locally.
Caching a signalRoot/stateRoot is the same operation as relay the same root data to downstream chains, there is only one SSTORE, not two.

2 general recommendations:

Still this will make A7 and A6 incompatible - better not to remove snippets from TaikoL2 just rename to snippets__deprecated, otherwise no upgrade possible.
Since it is an improvement in caching, better to base this on this branch since it has the MerkleProof verification working. Otherwise it will create again merge conflicts - especially because hop proof (structure) changed again - and it is not a straighforward , small change.

2 general recommendations:

Still this will make A7 and A6 incompatible - better not to remove snippets from TaikoL2 just rename to snippets__deprecated, otherwise no upgrade possible.

A7 won't be compatible with A6 also because of other changes such as https://github.com/taikoxyz/taiko-mono/pull/15716 ,  https://github.com/taikoxyz/taiko-mono/commit/b46269c891158887bf0a7be47c1370decea30ac8, and https://github.com/taikoxyz/taiko-mono/commit/ea33e655c5d497e29c01c3070c5be36b9e7429ed

Since it is an improvement in caching, better to base this on this branch since it has the MerkleProof verification working. Otherwise it will create again, lot of merge conflicts - especially because hop proof (structure) changed again - and it is not a straighforward , small change.
Will wait for your's PR to merge first.

A7 won't be compatible with A6 also because of other changes such as #15716 , b46269c, and ea33e65

Oh yeah i see, tho 15716 is not causing incompatibility, but sure the rest does.
Anyway best to minimize the changes - if we dont want to run another public testnet - because we need to be sure there are no such changes where mass (public), stress testing could reveal any findings.

A7 won't be compatible with A6 also because of other changes such as #15716 , b46269c, and ea33e65

Oh yeah i see, tho 15716 is not causing incompatibility, but sure the rest does. Anyway best to minimize the changes - if we dont want to run another public testnet - because we need to be sure there are no such changes where mass (public), stress testing could reveal any findings.

We'll talk about it in our sync up.

I have to look more into it to understand what is happening.

The transactor can specify exactly which chain/hop's signalRoot or stateRoot should be cached locally

Should it be an option though?

I think it so. As you said previously, if most the messages are processed by a relayer, the relayer should be smart enough to selectively cache things to lower his own cost; but normal users shall not pay extra fee to benefit others.

I have to look more into it to understand what is happening.

The transactor can specify exactly which chain/hop's signalRoot or stateRoot should be cached locally

Should it be an option though?

I think so. As you said previously, if most the messages are processed by a relayer, the relayer should be smart enough to selectively cache things to lower his own cost; but normal users shall not pay extra fee to benefit others.

Yep I don't think in practice it will matter much, but mostly just thinking if we should have it as an option if it is indeed a niche use case. But it's a reasonably small code difference, so seems okay.

Caching a signalRoot/stateRoot is the same operation as relay the same root data to downstream chains, there is only one SSTORE, not two.

Could you give some more information about this because I'm not sure I understand? The approach in this PR seems similar to the one in Dani's PR but I could very well miss something.


Don't use OPENSSL_strdup() for copying alpn_selected

An alpn_selected value containing NUL bytes in it will result in
ext.alpn_selected_len having a larger value than the number of bytes
allocated in ext.alpn_selected.
Issue found by OSS-fuzz.

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

I rebased this in order to pick up a fix from master which was causing travis to fail. I also fixed the outstanding issue above.
Ping @dot-asm.

Updated commit pushed.

Pushed. Thanks.


Add guard dependency

Guard is not a dependency, so we will get a load error if only guard-minitest is added in Gemfile

Sorry about this being poorly documented.
See: https://github.com/guard/guard-minitest/pull/131

With additions to readme looks clear, thanks!


BBC website bug.

Platform:
Mercury Parser Version:
Node Version (if a Node bug):
Browser Version (if a browser bug): 87.0.4280.141 (Chrome)

Expected Behavior
After using the reader I expect the website layout to go back to normal
Current Behavior
Pictures and text are displayed randomly/incorrectly across the screen
Steps to Reproduce
https://www.bbc.co.uk/news
Visit the website, Open an article, Use the reader, Close the reader and look at web page

Detailed Description
I'm fairly new to this extension and it seems awesome. Just want to help in order to make it work as good as possible.
Possible Solution
I'm shit with computers, No chance I can help there!

I am finding the same issue!