More keys for sf::Keyboard

Before #7 is being worked on (or even decided), I'd like to simply add some missing keys to the sf::Keyboard::Key enum.
I did an implementation for Linux here; it would be nice if someone could come up with implementations for Windows, BSD and OSX as well: feature/more_keys

FYI: comparison against master (I just find it useful to see the diff in the browser. :-))
I'll keep this in mind and try to have a look before the world ends. I don't have keyboard with those keys so it's hard to test anything... But anyone is free to chip in, of course!

If we add more now, what's the reasoning not to do so for other keys as well, or rather why the ones selected here?

Guess because they're most common/standard and have identical meaning on all keyboard layouts (but are still missing)? I think we've got pretty much all others?

Pushed back to 2.5 since the Windows and OS X implementations are still not ready. For 2.4, #1022 can be merged instead of this in order to fix #1012.

Yeah, I won't have time for that for 2.4...

It seems that Window/Unix/InputImpl.cpp hasn't been updated to work for the new keys.

I can update Inputlmpl.cpp with the key symbols if this is still being done, or is the issue abandoned for now?

Feel free to do so, then create a pull request for this branch once ready.

That linked patch looks like a good start, but I have two objections to it:

NumpadReturn should be called NumpadEnter. I've never seen that key labelled "return".
NumpadComma should be renamed, as it's a decimal point on my keyboard. I'm not sure exactly what the best name is, but Comma is not it. I see from that patch that X11 calls it "separator", and I believe SDL calls it "decimal". Either of those are better than "comma".

In addition to the keys added in that patch, I'd like to see NumpadEquals and F16 through F19, which are available on Mac keyboards. Mac keyboards also replace NumLock with Clear, but I'm not sure if that requires a separate key (it could be treated as equivalent to NumLock). Similarly, older Mac keyboards replace Insert with Help, but I'm not sure if that really needs to be considered different from Insert.
Newer Mac keyboards instead replace Insert with Fn, which does appear to be detectible by software. (I understand that the Fn key is often implemented entirely at a hardware level, but the Fn key on an Apple Extended Keyboard does not appear to be.) So it would be nice to include that key as an additional modifier for keyboards that support detecting it.
The only other key on my keyboard that doesn't have an entry is Eject, but I don't really expect that one to work. Still, if it could be added, that would be a nice bonus, I suppose.
For more details, see my original comments on this topic:
https://github.com/SFML/SFML/issues/7#issuecomment-6473256
https://github.com/SFML/SFML/issues/7#issuecomment-28615674

Keep in mind the original post and linked branches, don't represent the latest changes done with #1235

NumpadReturn should be called NumpadEnter. I've never seen that key labelled "return".
NumpadComma should be renamed, as it's a decimal point on my keyboard. I'm not sure exactly what the best name is, but Comma is not it. I see from that patch that X11 calls it "separator", and I believe SDL calls it "decimal". Either of those are better than "comma".

We did end up with NumpadEnter and NumpadDecimal.
https://github.com/SFML/SFML/blob/9b1b0f5b079f1ac75f16f9439911826bf6143759/include/SFML/Window/Keyboard.hpp#L285-L302
Keep in mind that the scancodes are based on key position and not specific keyboard layouts, and there some special edge case keys, which are available on some but not other keyboards. For example NumpadEqual isn't found on a lot of keyboards.
I suggest to give SFML-Input a try with the 2.6.x branch to see what the specific keys trigger.

Newer Mac keyboards instead replace Insert with Fn, which does appear to be detectible by software. (I understand that the Fn key is often implemented entirely at a hardware level, but the Fn key on an Apple Extended Keyboard does not appear to be.) So it would be nice to include that key as an additional modifier for keyboards that support detecting it.

I don't think that's a good fit, since as you said it's usually implemented as hardware switch, so in general it's not a detectable key. Even for macOS it might not actually trigger as a normal key event, even if it can somehow be detected in some software.

And I see the F-keys now go up to 24, and NumpadEqual and even Help is there too, so I guess that satisfies all my requests.

Even for macOS it might not actually trigger as a normal key event, even if it can somehow be detected in some software.

Yeah, from what I vaguely recall, I think it can be detected as "modifier changed" but not as "key pressed", if that makes any sense at all.


Support group cipher suites of equal preference

What is your opinion on this BoringSSL support of 'group cipher suites of equal preference': https://www.zeitgeist.se/2014/08/23/optimize-aes-and-chacha20-usage-with-boringssl/
IMHO this would reduce the time on the client side even more.

+1 would be nice to have.. wikimedia folks have had patches for nginx for something like this http://forum.nginx.org/read.php?29,261089

@centminmod Fun side note: Today I was actually browsing you project. And you appear in this issue.


NewAsyncProducer: Unexpected (unknown?) server error.

Using Sarama version 1.25.0 with Kafka version 2.4.0 I get the following error message with the NewAsyncProducer:
"Failed to produce message kafka: Failed to produce message to topic xxx: kafka server: Unexpected (unknown?) server error."
Code used is almost exactly the "AsyncProducer (Select) Broker" example. Previous Sarama version 1.23.0 worked.
Is there a way to get a more explicit error message?

You can check the Kafka server logs. The problems I encountered, both producers and consumers have this problem: unkown error, and finally found that the version of the consumer is too low.
Because version 0.11+ only supports headers, but consumers are lower than this version.
Note, including the version of producer, broker, consumer

Using Sarama version 1.25.0 with Kafka version 2.4.0 I get the following error message with the NewAsyncProducer:
"Failed to produce message kafka: Failed to produce message to topic xxx: kafka server: Unexpected (unknown?) server error."
Code used is almost exactly the "AsyncProducer (Select) Broker" example. Previous Sarama version 1.23.0 worked.
Is there a way to get a more explicit error message?

You can check the Kafka server logs. The problems I encountered, both producers and consumers have this problem: unkown error, and finally found that the version of the consumer is too low.
Because version 0.11+ only supports headers, but consumers are lower than this version.
Note, including the version of producer, broker, consumer


when creating sbom, suppress warnings in gnu tar

When we create an sbom as part of make eve, we extract the rootfs.tar using tar xf in the Makefile.
The rootfs.tar uses 2 extended PAX headers on each file. For BSD tar, which fully supports such headers, it is not an issue. For GNU tar, which is installed by default on many systems, including Ubuntu, extended custom PAX headers are not supported. This does not cause an error, but does print out a warning message for each such header, leading to >4000 unnecessary warning messages in the logs.
This PR detects if the tar version is GNU tar before calling tar -xf, and, if so, adds the --warning=no-unknown-keyword, which suppresses that particular message.
We cannot use that --warning flag universally, since BSD tar does not support that flag.

Rebased using latest master with the checkout context fixed.


Custom builds from dev fail

After doing a merge from dev in order to submit a pull request, Phaser now fails while trying to boot. I did a totally clean checkout and the error still occurs. With the same setup, trying to run v.2.3.0 works just fine.
Both regular builds (run with just "grunt") fail, as well as any custom builds I've tried so far.
I get the following console error:
http://i.imgur.com/O88U8xj.png
The phaser.js line numbers indicated are entirely unrelated to the error.

Yeah don't worry, I'll sort it out tomorrow when I put up the new release candidate for test.


Adaptive Card Data binding

Hi I am bringing a string variable from Power automate from PVA and wanted to data bind that array of strings into an Adaptive card I have made. I Passed the string in botframework composer through a Json function however the output of the variable is giving the following output as shown below instead of making it into an array of strings

How do I bind this data to my adaptive card choice set. Please do let me know.
Thanks!

hi @Ikhan24
Can you give a bit more data or examples? How exactly are you passing a string through a Json function? If you can provide examples (doesn't have to be exact data/value) on what this string may look like before hand, how the assigning/function is done and what the expected outcome should look like will help a lot.


Improve validation of non-sparse resource bindings before usage

Section of 11.6 (Resource Memory Association) of the Vulkan specification defines a number of device memory binding rules that are currently unchecked by the validation layer:

Non-sparse resources must be bound completely and contiguously to a single VkDeviceMemory object before the resource is passed as a parameter to any of the following operations:

creating image or buffer views
updating descriptor sets
recording commands in a command buffer

Once bound, the memory binding is immutable for the lifetime of the resource.

These rules are are easy to overlook and potentially catastrophic if violated. Ideally, the validation layer would ensure memory binding before usage in these scenarios.

Dupe of #663
Most of these are now handled and I'm assigned to finish up some remaining cases related to resources bound to descriptor sets that are bound to cmd buffers


Issue in Comment out HTML

If I follow the instruction to comment all  and  content, then the last check "do not change order of h1 h2 p will be flag as an error".
And if I keep h1 h2 and p without comment, the last check will be fine.

Challenge Name

https://www.freecodecamp.com/challenges/comment-out-html#?solution=
<!---->
<!--h1><Hello World><%2Fh1-->

<h2>CatPhotoApp<%2Fh2>

<!--p>Hello Paragraph<%2Fp-->
<!---->

Issue Description

Case 1: comment h1 and p as instruction but last check is flagged (do not change order of h1 h2 and p)

CatPhotoApp

Case 2:  last check is fine, but didn't comment h1 and p as instruction

CatPhotoApp
Hello Paragraph

Browser Information

Browser Name, Version:
Operating System:
Mobile, Desktop, or Tablet:

Your Code

Screenshot

@rdcrj Thank you for reporting this issue. Your code is incorrect. Please use the Gitter chat rooms linked below for asking for help. GitHub issues are not for coding help.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.


codly: Fix icon name in example

Hi - wondering if you could modify the PR title so it relates to the package? :)

Done.

This would require @Dherse's approval.

I would suggest opening a pr on my repo so that I don't need to sync it with the packages repo

Done in https://github.com/Dherse/codly/pull/6

As I understood things, this should be closed and the fix will just be delivered through a normal update with the next codly version. If that isn't what was intended, just tell me.


PolkaOracle Grant Program

Grant Application Checklist

[ ] The application-template.md has been copied, renamed ( "project_name.md") and updated.
[ ] A BTC address for the payment of the milestones is provided inside the application.
[ ] The software of the project will be released under the Apache license version 2.0 as specified in the terms and conditions.
[ ] The total funding amount of the project is below CHF 30k at the time of submission.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: hitomi500:x: ddxlYou have signed the CLA already but the status is still pending? Let us recheck it.


Bug Fix: Param allowAppDatabaseWrite added to script block

The parameter $allowAppDatabaseWrite must be passed as param to the script block. Otherwise, the variable in allowAppDatabaseWrite script block will be always $false. Same behavior as with the switch doNotCopyDatabase.

Thanks, rookie mistake:-(

Glad to help, good work with the ContainerHelper, it really helps us a lot! 👌


Uncaught TypeError: Cannot read property 'useProgram' of null

Version

Phaser Version: v3.24.1
Operating system: macOS Mojave 10.14.6
Browser: Chrome

Description

I'm running Phaser inside a React application, I'm getting this warning after reopening the page that contains the game created by Phaser:
Uncaught TypeError: Cannot read property 'useProgram' of null
    at WebGLRenderer.setProgram (7.chunk.js:355658)
    at TextureTintPipeline.bind (7.chunk.js:274684)
    at WebGLRenderer.setPipeline (7.chunk.js:355353)
    at GraphicsWebGLRenderer [as renderWebGL] (7.chunk.js:384053)
    at GeometryMask.applyStencil (7.chunk.js:300705)
    at GeometryMask.preRenderWebGL (7.chunk.js:300676)
    at BusinessProgressBar.ContainerWebGLRenderer [as renderWebGL] (7.chunk.js:383275)
    at BusinessCard.ContainerWebGLRenderer [as renderWebGL] (7.chunk.js:383290)
    at WebGLRenderer.render (7.chunk.js:356237)
    at CameraManager.render (7.chunk.js:369881)
    at Systems.render (7.chunk.js:279675)
    at SceneManager.render (7.chunk.js:319118)
    at Game.step (7.chunk.js:376200)
    at TimeStep.step (7.chunk.js:309468)
    at step (7.chunk.js:309688)

Example Test Code

Creating the game when the page is opened: const game = new Game({ ...config, parent: container })
Detroying the game before leave the page: game.destroy(true)

Additional Information
I'm getting this warnings if I don't destroy the game before to unmount the component
WebGL: INVALID_OPERATION: bindTexture: object does not belong to this context

Any help is really appreciated!

Has the game definitely been destroyed before it is re-run? (i.e. do you hook into the destroy event it gives at all?)
Also, is the game allowed to create its own canvas, or are you passing one in?

This is the repository of example: https://github.com/jdnichollsc/adventure-closure/blob/feature/login-page/app/src/game/index.ts
It's working as well using Phaser.CANVAS as you can see, the issue only occurs using Phaser.AUTO

Has the game definitely been destroyed before it is re-run? (i.e. do you hook into the destroy event it gives at all?)

Yes sir, game.destroy is executed when the component is unmounted

Also, is the game allowed to create its own canvas, or are you passing one in?

Yes, I'm only passing a div container as parent, check here: https://github.com/jdnichollsc/adventure-closure/blob/feature/login-page/app/src/hooks/useGame/index.ts#L10
Thanks for your help Rich!

game.destroy is not an immediate process, it queues the destroy until the next frame. I think you should call it and then listen for the destroy event and when you get that, then unmount the component, but not before.

I'm getting the same wrong behavior calling the destroy event before unmount the component and navigating back to create a new phaser game (Only occurs with Phaser.AUTO, it works as well with Phaser.CANVAS):

This was the previous logic I was using but in this way we can't call the destroy event before unmount the component:
export function useGame (
  config: Types.Core.GameConfig,
  container: HTMLDivElement | null
): Game | undefined {
  const [game, setGame] = useState<Game>()
  useEffect(() => {
    if (container) {
      const newGame = new Game({ ...config, parent: container })
      setGame(newGame)

      return () => newGame.destroy(true)
    }
  }, [config, container])

  return game
}

But In both cases, I'm getting the same issue with WebGL when the phaser game is created again

I need a fully reproducible test case before I can look at this again. So all the required HTML / react / Phaser code in a single minimal example, so I can run it and debug it locally. I'm not willing to learn how to use React just to test this issue, sorry. Feel free to post a zip file here with the required contents in and I'll be happy to re-open this issue and take a look.

Oh Is this not a reproducible demo? https://github.com/jdnichollsc/adventure-closure/tree/master/app

@photonstorm is this ok to be a minimal example of this issue? https://stackblitz.com/edit/react-ts-yz2wke?file=index.tsx


feat: re-enable zapper /v2/nft/balances/collections metadata fetching

Description

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Current dependencies on/for this PR:

develop

PR #4563

PR #4574

PR #4582

PR #4575

PR #4596

PR #4597

PR #4615   👈
PR #4610
PR #4609

This comment was auto-generated by Graphite.


关于结构

同学 你好 我想询问一下 你现在用的pytorch复现yolov3提高mAP时是通过改变网络结构来实现的吗?能说一下大体的改变吗

Nope, just use some tricks of BoF and change the loss.

Nope, just use some tricks of BoF and change the loss.

sorry,i don't know what it's the BoF,it's bag of word?

a paper,  "Bag of Freebies for Training Object Detection Neural Networks"

a paper, "Bag of Freebies for Training Object Detection Neural Networks"

thanks


update disk issues

/assign @feiskyer @karataliu
cc @weherdh I put the azure disk & azure file issues here

A reference of verify-spelling is https://github.com/kubernetes/kubernetes/blob/master/hack/verify-spelling.sh

@andyzhangx Thanks Andy to keep updating me! I really need the notification.


Use File.exist? instead of File.exists?

The latter is deprecated.
Ref: https://ruby-doc.org/core-2.4.0/File.html#method-c-exists-3F
And the former is exist since at least Ruby 2.2 (it is the oldest version that supported by sassc-rails).
Ref: https://ruby-doc.org/core-2.2.0/File.html#method-c-exist-3F

@bolandrm Getting lots of warnings in the console when running ruby with warnings on. Please merge!


fix: update to eye v9.11.3

fix: update to eye v9.11.3

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

npm package (@latest dist-tag)
GitHub release
v12.10.3

Your semantic-release bot :package::rocket:


PowerMeasTest Error

Hi
"Configure the server IP address and port number to be used for SAS-CBSD messaging.  The IP address should match the IP address of the server on which the test harness is running."
IS the "server IP address" mean  AP IP address or cloud sever on Host PC or harness running PC IP address ?
And AP SAS account URL address is harness running PC IP address?
And How to solve the below error message ?
Granted Spectrum Max Eirp = 13dBm/MHz
The Mock-SAS has been started please enabling CBSD for the power measurement test, the Mock-SAS will keep running during the test
the selected test from the user : PowerMeasTest is starting now
Traceback (most recent call last):
File "C:\Users\RF\Desktop\Citizens-Broadband-Radio-Service-Device-<IP_ADDRESS>\Citizens-Broadband-Radio-Service-Device-<IP_ADDRESS>\CBRS_Mock_SAS_Python_Master\cbrsPython-master\cbrsPython\controllers\StartPowerMeas.py", line 239, in
ctx.load_verify_locations(os.path.normpath(os.path.join(str(dirPath), get_Element_From_Config_File(confFile,"caCerts"))))
IOError: [Errno 2] No such file or directory

Hi,
The server IP address in the config file is intended to be the IP address on the device (host PC or server) on which the Test Harness is running.  It is used by the python code to bind the Test Harness socket to the correct IP address.  As such, that address will be used by the UUT as the IP address of the Test Harness (provided there is no NAT in your setup, which is not recommended!).
As for the error message:   The line in question is attempting to retrieve and load the "caCerts" entry in the config.xml file in the Configuration folder.  So, I would assume either (i) the Configuration folder or config.xml file cannot be found, or (ii) the caCerts entry in the config.xml file either does not exist or the file it points to does not exist or is not a correctly formatted root CA file.
In the config.xml file there is entry:
certificates/rootCA_certificate.pem
which points to the root CA certificate file.  Note that there should not normally be a leading "/" in the path any of the files specified in the config.xml file.

Sorry above config.xml entry should read:
<caCerts>certificates/rootCA_certificate.pem</caCerts>

Thank you for answer
and then test hannes has a error. How to solve them?
Traceback (most recent call last):
File "C:\Users\HCT-RF\Desktop\Citizens-Broadband-Radio-Service-Device-<IP_ADDRESS>\Citizens-Broadband-Radio-Service-Device-<IP_ADDRESS>\CBRS_Mock_SAS_Python_Master\cbrsPython-master\cbrsPython\controllers\StartPowerMeas.py", line 245, in
app.run(host_ip,sever_port,threaded=True,request_handler=WSGIRequestHandler,ssl_context=ctx)
File "C:\Python27\lib\site-packages\flask\app.py", line 841, in run
run_simple(host, port, self, **options)
File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 739, in run_simple
inner()
File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 699, in inner
fd=fd)
File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 587, in make_server
passthrough_errors, ssl_context, fd=fd)
File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 504, in init
HTTPServer.init(self, (host, int(port)), handler)
File "C:\Python27\lib\SocketServer.py", line 420, in init
self.server_bind()
File "C:\Python27\lib\BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "C:\Python27\lib\SocketServer.py", line 434, in server_bind
self.socket.bind(self.server_address)
File "C:\Python27\lib\socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions

I have not seen that problem before, nor seen it reported here.  Based on a bit of googling, I suspect a few possibilities you could explore:

Firewall limiting access to ip address/port?  Check settings.
Improper IP address / port number in config.xml file?
Trying to use a port which is already bound to another process?
Trying to use a port which you don't have user-privilege access to?

For the last two, ensure you are using a port number > 1024.  Maybe ensure you are using port 5000, as this was default so is what others are using.  If you are already using 5000, try another (i.e. port 5001, 5002, etc.).


switch to debian:stretch-slim base images and go 1.12.x

Signed-off-by: Steve Kriss<EMAIL_ADDRESS>Fixes #1357
Did some basic smoke-testing on this, including using the restic container, and all seems fine.

Also need to update the plugin examples container image.

added changelog


Parsing PostgreSQL JSON operators

I've noticed PostgreSQL JSON operators are not parsed correctly.
For example, the following query has parsing errors:
SELECT "user"->>'login' AS username FROM users;

Parsed AST:
(program
  (statement
    (select
      (keyword_select)
      (select_expression
        (term
          (binary_expression
            (literal)
            (ERROR)
            (literal))
          (keyword_as)
          (identifier))))
    (from
      (keyword_from)
      (relation
        (object_reference
          (identifier))))))

JSON ist not implemented yet. Thanks for reporting. This will probably be a bigger undertaking.


Room.isRecording to surface if the room is being recorded

lgtm! just wondering if we additionally want to surface this as an event for convenience?

that's true.. let's think on that for a bit. thinking that it might be easier to think about to have a single event that indicates attributes about the room have changed.. rather than one event for each attribute.

what other room attributes do you have in mind?
If there aren't too many, I think a granular event for recording could still make sense

@davidzhao does the additional event look ok to you?


Can't find template.html

"Getting Started" says to find the template.html file, but I haven't found where to download it. I searched the files I cloned from https://github.com/stubbornella/oocss, but wasn't able to find it.
I thought perhaps I was downloading the wrong thing, so I searched for something else to download. In the "Getting Started section in the faq" step 1 says to download the whole project, but the link doesn't lead anywhere.

+1


Add pkcs11 provider.

Added the PKCS11 provider as an alternative to the SW TPM provider.
The provider to be used is controlled using the PARSEC_PROVIDER variable in local.conf
This can either be SOFTWARE_TPM or PKCS11.
The relevant files will then be selected based upon that.

Merge with
https://github.com/PelionIoT/meta-parsec/pull/16
https://github.com/PelionIoT/manifest-lmp-pelion-edge/pull/61


Improve code coverage

According https://coveralls.io/github/python-constraint/python-constraint
code coverage might be improved

Is this issue still open? If not, someone of the admins should close, I think ...


Insert newline before adding postfix

Ran into an edge case where the postfix was being added in a line that started with // which led to weird errors.
Adding a newline before the postfix ensures that the generated code will not run the risk of being commented.

Looks good! I'll merge it and create a new patch release


What is the font in the readme's image?

May I ask what is the font in the image?

Thank you very much.

Hurmit Nerd Font
https://www.programmingfonts.org/#hermit


Text identifier for every entity

Every entity could have associated a human-generated identifier to link to it inside CMS.
With this, everything from CMS could be transferable to another instance.

A workaround are variable manually defined.

I'm closing this one as I don't think it will happen. Also there are other possibilities now.


Website issue: Integrate Keploy to automate tests of the whole webapp

Description
Integrate the keploy tool to test the webapp, capture the network calls by automating to test the apis and generate mock datas.
Visit https://keploy.io/docs/quickstart/samples-nodejs/ for more information about how to generate testcases using keploy.
The testcases should be stored inside a proper folder name
Screenshots
No response
🥦 Browser
Google Chrome
Checklist ✅

[X] I checked and didn't find similar issue
[X] I have read the Contributing Guidelines
[ ] I am participating in JWOC
[ ] I am participating in IWOC
[ ] I am willing to work on this issue (blank for no)

would love to work on this issue.

hey, form what I can understand keploy records network requests and play them as needed for testing.
so, for the backend I record all the network request using something like postman.?
And do the same for frontend?

Yes, check the API's and test using keploy.


Improved cleaning of domains.list and domains-dotted-format.list

Thanks so much to @maravento for all his continuous help with this project.
Over a period of weeks he has helped me made numerous improvements to cleaning the lists of invalid characters and today we have finally reached that point. Most of this was discussed in https://github.com/mitchellkrogza/Ultimate.Hosts.Blacklist/issues/72 but I decided to start this as new topic instead.
This morning after a few hours of tweaking all the sed and awk commands that @marvento has contributed to the project I have finally perfected the creation of 2 very clean lists for use in Pi-Hole's and Dnsmasq systems.
The two files domains.list and domains-dotted-format.list and now void of the following:

Any domain that has a string attached ie. domain.com/something/blog/index.php is now just domain.com or .domain.com depending on which list we refer to.

Any beginning of a domain name that contains any underscore _ characters. The underscore character is illegal and invalid in any DNS system anywhere in the world. So domains like 10000_gratis_sexfoto.jouwpagina.nl will now just be jouwpagina.nl or .jouwpagina.nl - similarly a domain like ___id___.c.mystat-in.net now becomes c.mystat-in.net or .c.mystat-in.net

Any domains beginning with www., ftp., ww., zzz. are now also stripped out. HOWEVER for the hosts file they will not be stripped out due to a hosts file not being able to do wildcarding.

No doubt we will be tweaking and perfecting this even more over time but we are getting ever closer to producing the cleanest hosts file anywhere out there and we are also able to show how many input sources out there are VERY BADLY maintained as they simply add anything to their hosts files without ever checking them, nor do they ever clean their lists. Anyone who knows anything should at least know that underscore characters are illegal and invalid in DNS but clearly the people producing hosts blocker files have no idea about simple networking principles and fill their lists with utter junk.
Forwards and Upwards we move !!!

A few extra commits and tweaks and the lists are looking almost perfect. @maravento, have a look later and let me know what you think.

give me the link

https://hosts.ubuntu101.co.za/domains.list
and
https://hosts.ubuntu101.co.za/domains-dotted-format.list

domains-dotted-format.list:
.www.klimexs.com
.www8.paypopup.com
.www89.chunguang100.com
.www8-ssl.effectivemeasure.net
.www99.zapto.org
.wwwa024.infonegocio.com
.www99*+.mytest.com  # This is a domain invented by me, only for testing purposes
sed -r  's:(^.?(www|ftp)[^.]?.|^..?)::gi' domains-dotted-format.list | awk '{print "."$1}' | sort -u > newlist
newlist:
.chunguang100.com
.effectivemeasure.net
.infonegocio.com
.klimexs.com
.mytest.com
.paypopup.com
.zapto.org

Thanks @maravento I will double check in the morning and we will get this perfect. Had a problem with one of your sed’s which was taking the domains at the top of the file which are like 0—�—�—�-0—�—�—�-.com and stripping the 0 off. Could of been something I did wrong but I’ll test again tomorrow and get it perfect. Thanks again.

@maravento please download those same two files again now and see if you see a difference. Discovered a problem with the way I update the raw files before the commit has actually occurred. Let me know.

The solution is only to admit domains that contain letters, numbers or hyphens
list
.www99*+-_.mytest.com
.WWW01*+-_22.mytest2.com
.0—�—�—�-0—�—�—�-.com
.test.com
sed -r '/[^a-zA-Z0-9.-]/d' list
test.com

Sorry @maravento I typed that message on my iPhone and it really messed things up. Can you believe the iPhone keyboard doesn't have a backtick, either that or I am blind.
Let me try again.
Domains like
0----0.0----0.1596.hk
0--0.0--0.hnun.net
0------------0-------------0.0n-line.info

Were being stripped like this
----0.0----0.1596.hk
--0.0--0.hnun.net
------------0-------------0.0n-line.info

which has been resolved in my latest lists but I still need to address removing the www. www99. ftp. etc which I will test with your latest recommendation.

sed '/0--/d'

Thanks @maravento I will try that, let me expand a bit as this is getting complex for me.
Input list
0------------0-------------0.0n-line.info
0-0--0-000.com
0-3.us
aw.dermalmask.com
idolstudio.free.fr
idolstudio2.free.fr
something.blogspot.com
anything.blogspot.com
xxx.blogspot.ca
www.hola.org
www10.a8.net
www11.alsto.com
www148.myquicksearch.com
ftp.thaitattoo.nl
ftp01.pornocrawler.ws
ftp04.pornocrawler.ws
g.blogads.com
wvw.tielecreidito-pe.com

Output should be
0n-line.info
0-0--0-000.com
0-3.us
dermalmask.com
idolstudio.free.fr
idolstudio2.free.fr
something.blogspot.com
anything.blogspot.com
xxx.blogspot.ca
hola.org
a8.net
alsto.com
myquicksearch.com
thaitattoo.nl
pornocrawler.ws
pornocrawler.ws
blogads.com
tielecreidito-pe.com

@maravento I tried this again and this seems very close to what we need sed -r '/[^a-zA-Z0-9.-]/d' input.txt | sed -r 's:(^.?(www|ftp)[^.]?.|^..?)::gi' | awk '{print "."$1}' | sed -r '/^.\W+/d' | sort -u > output.txt
But still a domain like
0------------0-------------0.0n-line.info
should be left as
0n-line.info
But it's stripped completely from the list.

sed '/0--/d' input | sed -r  's:(^.?(www|ftp|xxx|wvw)[^.]?.|^..?)::gi' | awk '{print "."$1}' | sed -r '/^.\W+/d' | sort -u > output
.0-3.us
.a8.net
.alsto.com
.anything.blogspot.com
.aw.dermalmask.com
.blogspot.ca
.g.blogads.com
.hola.org
.idolstudio2.free.fr
.idolstudio.free.fr
.myquicksearch.com
.pornocrawler.ws
.something.blogspot.com
.thaitattoo.nl
.tielecreidito-pe.com

Thanks @maravento tried that but still 0------------0-------------0.0n-line.info and domain like idontgiveafuck.com completely stripped out. 🙄 this is getting ever more complex

input:
0------------0-------------0.0n-line.info
test.com
sed '/0--/d' input > output
output:
test.com

@maravento I think you have nailed it I did this in this order
sed '/0--/d' domains-in.txt  > domains-out.txt
sed -r 's:(^.?(www|ftp|xxx|wvw)[^.]?.|^..?)::gi' domains-out.txt | awk '{print "."$1}' | sed -r '/^.\W+/d' | sort -u > domains-dotted.txt

Soooo close, we are still ending up with these in the list (just a few examples there are many many)
.www13.glam.com
.www146.lewwwz.com
.www1.scat-sex.org
.www.zootravel.com
.www.ftp.thaitattoo.nl
.ftp.track4.com

I do not understand what happens with your list. Example:
input:
.www13.glam.com
.www146.lewwwz.com
.www1.scat-sex.org
.www.zootravel.com
.www.ftp.thaitattoo.nl
.ftp.track4.com
sed -r 's:(^.?(www|ftp|xxx|wvw)[^.]?.|^..?)::gi' input
glam.com
lewwwz.com
scat-sex.org
zootravel.com
ftp.thaitattoo.nl
track4.com
you can manually delete this line ("ftp.thaitattoo.nl") or run the command twice

complete command:
sed '/[A-Z]/d' oldlist | sed '/0--/d' | sed -r '/[^a-zA-Z0-9.-]/d' | sed -r 's:(^.?(www|ftp|xxx|wvw)[^.]?.|^..?)::gi'  | awk '{print "."$1}' | sed -r '/^.\W+/d' | sort -u > newlist

Thanks @maravento I'll try that in the morning .... my head is all sed'd and awk'd out for one day 😁 🤣

Closing for now feel free to reopen once you reviewed the new system @mitchellkrogza :+1:


Added grunt eslint and updated travis.yml [NOT FOR MERGING]

Motivation
Added eslint to help with code quality.

Switching to feature branch


Log Directory Substitution Not Complete

I get this error when trying to use the kafka scripts from the package:
$ /nix/store/12ndbm9by7ccsb77lsx4kc9566pk4y6l-apache-kafka-2.10-<IP_ADDRESS>/bin/kafka-server-start.sh /nix/store/yh8hdd378j1gaaq73gk88ca7gzf590vg-apache-kafka-2.10-<IP_ADDRESS>/config/server.properties
mkdir: cannot create directory ‘/nix/store/12ndbm9by7ccsb77lsx4kc9566pk4y6l-apache-kafka-2.10-<IP_ADDRESS>/bin/../logs’: Read-only file system
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /nix/store/12ndbm9by7ccsb77lsx4kc9566pk4y6l-apache-kafka-2.10-<IP_ADDRESS>/bin/../logs/kafka-request.log (No such file or directory)
at java.io.FileOutputStream.open(Native Method)

Looks like this was fixed in the referenced commit?

This should probably be closed since it appears to be fixed and @polynomial isn't responding.

Agreed


DS-3707, DS-3715: Fixes to item level embargo/privacy in OAI-PMH

This PR addresses the bugs described in https://jira.duraspace.org/browse/DS-3707 and https://jira.duraspace.org/browse/DS-3715.
Incremental import into the OAI-PMH Solr index has the following bugs:

Items that are made private are not updated in the index.
Items under embargo are also not updated when the embargo is lifted, keeping them invisible.

Furthermore, a full import does not fix all the problems:

Items that are made private simply disappear, IMHO breaking conformity to the transient deletion policy of DSpace's OAI-PMH implementation.
Items under embargo are visible after the embargo has been lifted, but for incremental harvesting, there is now another problem: There is no update to item.lastmodified, therefore it might never get harvested.

The following fixes are applied:

A method findInArchiveOrWithdrawnNonDiscoverableModifiedSince fetches private items for the update
A flag item.willChangeStatus is added to the Solr scheme, which is used to fetch items currently under embargo from the index, making it possible to update them even if their lastmodified date has not changed since the last incremental update.
The logic for item.public and item.deleted is changed to take item privacy and item embargoes into consideration: An item which is embargoed at the time it is first indexed will remain hidden until the embargo is lifted; should it be embargoed again, it will remain visible, but a tombstone record will be shown. An item which is private will always get a tombstone record.
The logic for item.lastmodified is changed: from the list of all resource policy start/end dates and the core lastmodified date, the most recent date before the current date is chosen, so that items appear to have changed when an embargo starts/ends.

Hi @kshepherd,
That checkbox described in the link you posted has been checked all the time, so you should be able to push. If not, there must be an option hidden somewhere else I don't knowe about.

Thanks @philip-muench . I should have checked that first, sorry!
@tdonohue , @hardyoyo , could you please review my unit tests (in 2nd commit) and if you're happy, give this PR your approval :)

No harm, no foul, @kshepherd :) Thanks for supporting my PR!

merging, needs porting to master


Default axis spacing parameters

I have spent 20 years trying to get par(lgp=) and other parameters to work for all base plot layouts (creating functions of mfrow etc) but have never found a solution as perfect as the defaults used by ggplot2.  plot2 at present is wasting space for tick mark label placement and axis label placement.   If you can solve that in plot2 I'm much more likely to use it.  Thanks!

Thanks Frank. I'll just repeat parts of our BlueSky discussion for tracking here:
A design principle of this package is that the corners of the plot region should remain fixed, i.e. consistent with the mar margins. This reduces surprises when users switch from vanilla plot and also makes it easy to integrate facets in a principled way that limits spacing headaches done the line. ("Easier" being a slight misnomer as it actually requires quite a lot of work internally to make this work. But from the user perspective everything should work seamlessly.)
The upshot is that user-supplied margin settings—say, par(mar = c(2.5, 2.5, 2.5, 0)+.1, mgp = c(1.5, .5, 0), tck = -0.02)—that reduce whitespace and look good for a single plot, should also look good for faceted plots (and plots with an automatic legend, for that matter).
But you certainly raise a good point about improving the defaults, without requiring that users spend time fiddling with these (obscure) parameters. Simultaneously, I've been thinking about providing a themes function that would automatically do this with good defaults that integrate well with the rest of the package. I'll create a separate issue for this themes issue and link back to this one.
Thanks for the suggestion!

@harrelfe We just merged a PR which adds support for automatic theming via a tinytheme()  function. Several of the canned themes (a) explitly attempt to reduce whitespace and (b) dynamically adjust plot margins to account for text elements (e.g. long horizontal y-axis  labels.
See the helpfile and associated vignette:

https://grantmcdermott.com/tinyplot/man/tinytheme.html
https://grantmcdermott.com/tinyplot/vignettes/themes.html

Feel free to test drive yourself by grabbing the dev version of the package.


Bag File Failing To Load

Hi,
I am trying to get to a place where I can use Cartograpther for the map and localisation (as per 0 https://github.com/googlecartographer/cartographer_ros/issues/1131)
Still I cannot get it to load my bag file - I've read https://google-cartographer-ros.readthedocs.io/en/latest/your_bag.html  multiple times :-)
Any suggestions what is wrong with this:
mark@kobukiMxnet2:~/cartographer_v1.0$ roslaunch cartographer_turtlebot turtlebot_urg_lidar_2d.launch bag_filename:=/home/mark/cartographer_v1.0/cartographer_full_downstairs_20102018.bag
Output being:
... logging to /home/mark/.ros/log/ca8e2cf0-199e-11e9-ab2f-c1e19be8e044/roslaunch-kobukiMxnet2-4893.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://<IP_ADDRESS>:44836/
SUMMARY
PARAMETERS

/rosdistro: kinetic
/rosversion: 1.12.13
/urg_node/frame_id: plate_top_link

NODES
/
cartographer_node (cartographer_ros/cartographer_node)
cartographer_occupancy_grid_node (cartographer_ros/cartographer_occupancy_grid_node)
flat_world_imu_node (cartographer_turtlebot/cartographer_flat_world_imu_node)
urg_node (urg_node/urg_node)
auto-starting new master
process[master]: started with pid [4905]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to ca8e2cf0-199e-11e9-ab2f-c1e19be8e044
process[rosout-1]: started with pid [4925]
started core service [/rosout]
ERROR: cannot launch node of type [urg_node/urg_node]: urg_node
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/mark/cartographer_v1.0/src/cartographer_turtlebot/cartographer_turtlebot
ROS path [2]=/home/mark/cartographer_v1.0/install_isolated/share
ROS path [3]=/home/mark/ros_ws/src
ROS path [4]=/opt/ros/kinetic/share
process[cartographer_node-3]: started with pid [4935]
process[flat_world_imu_node-4]: started with pid [4943]
process[cartographer_occupancy_grid_node-5]: started with pid [4944]
[ INFO] [1547650549.307960887]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/src/cartographer_turtlebot/cartographer_turtlebot/configuration_files/turtlebot_urg_lidar_2d.lua' for 'turtlebot_urg_lidar_2d.lua'.
[ INFO] [1547650549.308924063]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/map_builder.lua' for 'map_builder.lua'.
[ INFO] [1547650549.309065634]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/map_builder.lua' for 'map_builder.lua'.
[ INFO] [1547650549.309296616]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/pose_graph.lua' for 'pose_graph.lua'.
[ INFO] [1547650549.309414213]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/pose_graph.lua' for 'pose_graph.lua'.
[ INFO] [1547650549.309866977]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/trajectory_builder.lua' for 'trajectory_builder.lua'.
[ INFO] [1547650549.309986812]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/trajectory_builder.lua' for 'trajectory_builder.lua'.
[ INFO] [1547650549.310188607]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/trajectory_builder_2d.lua' for 'trajectory_builder_2d.lua'.
[ INFO] [1547650549.310301329]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/trajectory_builder_2d.lua' for 'trajectory_builder_2d.lua'.
[ INFO] [1547650549.310689344]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/trajectory_builder_3d.lua' for 'trajectory_builder_3d.lua'.
[ INFO] [1547650549.310808904]: I0116 14:55:49.000000  4935 configuration_file_resolver.cc:41] Found '/home/mark/cartographer_v1.0/install_isolated/share/cartographer/configuration_files/trajectory_builder_3d.lua' for 'trajectory_builder_3d.lua'.
[ INFO] [1547650549.353763059]: I0116 14:55:49.000000  4935 map_builder_bridge.cc:134] Added trajectory with ID '0'.
[ WARN] [1547650552.410724256]: W0116 14:55:52.000000  4935 node.cc:821] Expected topic "scan" (trajectory 0) (resolved topic "/scan") but no publisher is currently active.
[ WARN] [1547650552.411300367]: W0116 14:55:52.000000  4935 node.cc:821] Expected topic "odom" (trajectory 0) (resolved topic "/odom") but no publisher is currently active.
[ WARN] [1547650552.411818567]: W0116 14:55:52.000000  4935 node.cc:830] Currently available topics are: /constraint_list,/submap_list,/scan_matched_points2,/rosout,/tf,/imu,/rosout_agg,/map,/trajectory_node_list,/landmark_poses_list,
Many Thanks
Mark

Topic names must match what Cartographer expects. A topic remapping can help.


Added tint to DisplayObject that supports Container tinting - #2328

Changed existing tint functionality to pull from the new worldTint so
that it respects the parent tint.

@GoodBoyDigital could you take a look at Andrew's PR and let us know what you think?

Ok guys, a interruption here: that kind of stuff needs to be separated into rendering context: all "world" variables have to be calculated into a component, otherwise it will get messy. I'm already having a lot of problems with "world" stuff in my fork

I had a really great thought about how we could implement this kind of functionality as a plugin.
A way that does not involve changing anything but adding the extra variables to a displayObject. Imagine pixi used a series of passes through the scene graph.
So the default pass is what we have - updates the transform + the alpha
We could add a new tint pass that would go through the scene graph and calculate the world tint of all the objects.
Further down the line we could add new passes for extra functionality
After all passes are complete we can then do the render pass.
What do you guys think?

even alpha logic is not that easy, filters and masks can break it. It needs to be separated from DisplayObject, in a component. And yes, different pass.

Proper way would be addign special RenderingContext component that takes care of "tint", "alpha", "renderable". Possible to add this component as second parameter to "renderWebGL" and "renderCanvas". That will allow many smart hacks and performance optimizations.

@GoodBoyDigital Like your suggestion here.

Closing this since we will be redesigning how this works a bit in v5, and it probably wont make it in v4.


Feature Request: Reporting from other apps

Would it be feasible to get this working with applications like:

μlogger
gpslogger
traccar
Or some other app I haven't heard of?  Currently, the OwnTracks app refuses to work without Google Play Services (for functionality that should be optional but can't be disabled anyways).

Sure, though the responsibility of conforming to the expected API lies innthe client. You'll have to fork one of those clients and modify the outgoing server request so that itnhas the same shape as the OwnTracks payload, and Orion will process it without error.

Gpslogger provides the custom url reporting method; works reliably with orion server in my setup.


test: Use last stage ID as manifest ID

The biggest change for this PR is the change in the way we calculate the manifest ID for our test build cache.
Instead of hashing the manifest contents, use the last stage ID computed from osbuild --inspect.  This has the following advantages:

It is not affected by formatting (indentation, newlines).
It is not affected by content URLs when the content is the same.  For example, an ostree commit from a different URL will not affect the stage IDs if the content hash is the same.

This gets around an issue we were going to face when generating manifests from local ostree containers when the IP address or port of the local container changes.  It also lets us stop worrying about the exact format of the manifest file when comparing.
For now, the build config generator checks for both filenames (hash-based and stage-id-based) in the build cache from s3.  This is temporary until all or most files in the build cache are updated to the new filenames.  The script renames and syncs back with the new filename any file it finds that matches the old way of computing the manifest checksum.
Other improvements and changes:

gen-manifests can now resolve ostree commits with --commits flag (mocks the resolution by default)
gen-manifests can now mock the resolution of packages (depsolve) and containers with --packages=false and --containers=false respectively (does not mock the resolution by default)
ostree container image types (iot-container and edge-container) are pushed to the gitlab registry for the project.  These will be used to test installer and raw image builds (followup PR).

At some point in the future we probably want to support manifests producing several artefacts, likely the combination of pipeline name + stage id for each.
For now that is not relevant and this looks perfect.

I thought about this a bit too.  Our image definitions currently define their own exports so if we ever write an image type that has multiple, the exported pipeline names could be considered image type metadata that we can attach to the test manifest alongside the other metadata (sidenote: we should probably come up with a new name for "those manifests we generate for testing that include a bunch of metadata").  Then we could talk about "build IDs" (instead of manifest IDs), which would be the ID of the last stage of an exported pipeline.


S3 bucket not found

Howdy,
I stumbled onto this problem with the current release:
integration-mgob-0 mgob time="2024-10-17T09:00:01Z" level=error msg="BACKUP FAILED: S3 uploading /tmp/rocketchatdb-hour-1729155600.gz to rocketchatdb-hour/rocketchat-55050-db failed `/tmp/rocketchatdb-hour-1729155600.gz` -> `rocketchatdb-hour/rocketchat-55050-db/rocketchatdb-hour-1729155600.gz` mc: <ERROR> Failed to copy `/tmp/rocketchatdb-hour-1729155600.gz`. Bucket `rocketchat-55050-db` does not exist. Total: 0 B, Transferred: 0 B, Speed: 0 B/s : exit status 1" plan=rocketchatdb-hour

Wouldn't it be a good idea if mgob creates the bucket if missing? Or is that not possible?

Welcome make a PR for this. I think it should be a config saying createBucketIfNeeded: true to enable this.


Updated BMI calculator

Fixes Issue🛠
No negative inputs
Closes #133
Description👨💻
resolved negative input issue which makes the resultant bmi negative and height weight and bmi can't be negative
Type of change📄

[] Bug fix (non-breaking change which fixes an issue)

How this has been tested✅
Converted the input values to numbers using parseFloat.
Added checks using isNaN and ensured that the values are greater than zero for both height and weight.
If the values are not valid, display an alert, clear the input fields, and exit the function.
Checklist✅

[] My code follows the style guidelines of this project
[] I have performed a self-review of my own code
[] I have commented my code, particularly in hard-to-understand areas
[] I have added demonstration in the form of GIF/video file
[] I am an Open Source Contributor

Screenshots/GIF📷

Pls resolve the conflicts as UI of this calculator is changed. So make your changes accordingly @Akshansh8


Missing basics

I Read your docs.
So does the omnidb-server allow access from another system over http?
Or is it only designed to be viewed from the system where it is installed?
What configuration is implied by websockets?
How can I diagnose the system's configuration to enable access to the omnidb-server from a remote system on the same network?
Does omnidb require an http service on the system where it is installed to enable http views/requests/responses?
Why don't you explicitly make these distinctions in your docs?
Thanks,
Kimball Johnson

I'm not sure what is lacking in the docs in particular. Can be a bit more elaborate what's missing here?
I don't feel like OmniDB should have a general guideline about how to debug networking issues, unless they are really related to OmniDB itself. And I can't think about one.
pgaro


SSL Error installing golang

Apologies if this is the wrong place to pos this issue - I couldn't find any maintainer contact listed against the brew formula. Tried golang repo already :).
I get an SSL error from curl when I try to brew install golang. Heres the trace:
$ brew install golang
==> Downloading https://homebrew.bintray.com/bottles/go-1.7.el_capitan.bottle.ta

curl: (51) SSL: certificate verification failed (result: 5)
Error: Failed to download resource "go"
Download failed: https://homebrew.bintray.com/bottles/go-1.7.el_capitan.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Using the sandbox
==> Downloading https://storage.googleapis.com/golang/go1.7.src.tar.gz
Already downloaded: /Users/jamesstidard/Library/Caches/Homebrew/go-1.7.tar.gz
==> Downloading https://storage.googleapis.com/golang/go1.7.darwin-amd64.tar.gz

curl: (51) SSL: certificate verification failed (result: 5)
Error: Failed to download resource "go--gobootstrap"
Download failed: https://storage.googleapis.com/golang/go1.7.darwin-amd64.tar.gz

Sorry but you have not followed the requested steps on the Troubleshooting page
Please follow (all of) these steps and post the information here so we can help you with your problem.

Thanks!

varun@varun-HP-15-Notebook-PC:~$ brew install mongodb
Error: Another active Homebrew update process is already in progress.
Please wait for it to finish or terminate it to continue.
==> Installing dependencies for mongodb: go, scons, libpcap
==> Installing mongodb dependency: go
==> Downloading https://storage.googleapis.com/golang/go1.9.1.src.tar.gz
Already downloaded: /home/varun/.cache/Homebrew/go-1.9.1.tar.gz
==> Downloading https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz
#####################                                                     30.2%
curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
0.0%
curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 104
Error: Failed to download resource "go--gobootstrap"
Download failed: https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz
varun@varun-HP-15-Notebook-PC:~$ ^C
I tried a lot but can't sort out this problem please help.

This is Homebrew not Linuxbrew.


warn if lxcfs-libfuse is running out of worker threads (case 00351979)

Logs like
Jan 05 00:00:11 ic-hrvart4-s4anq599 lxd.daemon[5447]: fuse: error creating thread: Resource temporarily unavailable
are seen in journal logs.
This is an lxcfs deadlock and often leads to this libfuse deadlock (https://github.com/lxc/lxcfs/issues/471)
The lxcfs deadlock is introduced in lxd snap version 5.9 through https://github.com/lxc/lxcfs/commit/54db3e71b80fb8a25c9d6bd8ae9be0f0b4b41f26 , and fixed through https://github.com/lxc/lxcfs/pull/579 (if the lxd snap is used it bundles lxcfs in it) in lxd snap version 5.10 (5.10-b392610)

Hotsos warns about this buig by checking the lxd version.
For more information take a look here.

@joalif https://github.com/canonical/hotsos/pull/523/commits/fc0845c052e5048afa9f2d66ae7a06354b2fc552 seems to detect vulnerability to the deadlock, not the deadlock itself. Do you think this makes for an additional check, whether they're actually hit the out of resource condition?


Add implementation of jr instruction

This PR implements the jr instruction. This builds on top of https://github.com/o1-labs/proof-systems/pull/1394.

Also, do you have any documentation regarding this next IP?

Do you have any documentation regarding this next IP?

https://www.cs.cmu.edu/afs/cs/academic/class/15740-f97/public/doc/mips-isa.pdf
More importantly, it's what cannon does, and so we should match it if we want a proven version of cannon's execution.


Fix gif test

fixes https://github.com/choderalab/asapdiscovery/issues/482
We were using a single test trajectory + topology, then iterating over all targets. For MERS, this resulted in very long test times (up to 5 mins), even though it doesn't test that we're actually generating a GIF. Just testing GIF generation on SARS2 Mpro (which is faster) proves already that we're generating GIFs succesfully.

Codecov Report

Merging #483 (f9595d7) into main (f18e5df) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Additional details and impacted files

hmm, looks like we're only winning 3-5 mins. Oh well.


S3 download URLs are not URL encoded

Semantic versioning allows for metadata to be included in versions with a prefix of +. This character has to be URL encoded when used in download URLs for S3, or requests to those URLs will result in a 4xx response from AWS.
Example of current behavior:
> curl -sSi https://boring-registry.com/v1/modules/ns/n/p/0.3.9-1.beta+gb051be9/download | grep '^x-terraform-get: ' | sed 's@.*provider=[^/]*/@@'
version=0.3.9-1.beta+gb051be9/ns-n-p-0.3.9-1.beta+gb051be9.zip

Example of desired behavior:
> curl -sSi https://boring-registry.com/v1/modules/ns/n/p/0.3.9-1.beta+gb051be9/download | grep '^x-terraform-get: ' | sed 's@.*provider=[^/]*/@@'
version=0.3.9-1.beta%2Bgb051be9/ns-n-p-0.3.9-1.beta%2Bgb051be9.zip

Worth noting that according to RFC 3986 section 2.2, the equals (=) character is also supposed to be URL encoded, but that doesn't appear to be strictly necessary in this case since the URLs served by boring registry frequently include that character and requests to S3 do not fail if it isn't encoded. Probably wouldn't hurt, though.

Hi @C0urante, thanks for reporting this issue! :)
My first thought is that we probably need to use url.PathEscape here:
https://github.com/TierMobility/boring-registry/blob/60456f3a324652805a8e7f2f4205071e1f0d9472/pkg/storage/s3.go#L294
I'll try to fix it, but I don't have an S3 bucket available, unfortunately. May I ask how easily you could test out a possible fix?

I think url.PathEscape may not be sufficient at that location, as it would also escape the / components of the path and (although I haven't verified this yet) I don't think that'd work with S3.
I tested the behavior of the function itself using the golang playground: https://go.dev/play/p/RmkcKWVJPtx
As far as end-to-end testing goes, that's an interesting question... I'm happy to manually test out changes if you have a patch that you believe will work; can build from source and run it against my own S3 bucket. Not sure about what other options there might be, though 🙁

Yes, you're right. It seems like S3 treats a + as a space in the object path. Can you verify if the object path has a space in the console (or via the AWS cli)? That would be very helpful :)

The object path doesn't have a space in it, in either the console or the CLI; it's definitely a literal +. We started attaching metadata to our versions recently using that as a delimiter, which is when we noticed this issue.

I just created an S3 bucket for testing, and uploaded an object using the latest commit on main.
If I copy the URL from the AWS console, I get https://<bucket>.s3.eu-central-1.amazonaws.com/modules/hashicorp/consul/aws/hashicorp-consul-aws-0.11.0-rc1%2Bmetadata.tar.gz.
Using the latest commit on main, the URL is resolved to <bucket>.s3-eu-central-1.amazonaws.com/modules/hashicorp/consul/aws/hashicorp-consul-aws-0.11.0-rc1+metadata.tar.gz and terraform is able to download the module.
The AWS console URL contains s3., we're generating s3- in our code. So I changed the code to generate s3-, and terraform failed to download the module with:
Could not download module "consul_with_prerelease_and_metadata" (main.tf:14) source code from
"s3::https://s3.eu-central-1.amazonaws.com/boring-registry/modules/hashicorp/consul/aws/hashicorp-consul-aws-0.11.0-rc1+metadata.tar.gz":
InvalidBucketName: The specified bucket is not valid. status code: 400

To me, it seems like Terraform is able to detect S3 and uses the S3 client internally, hence the + doesn't cause any problems.
Just to be sure, which boring-registry and terraform version are you using? I'm using the latest main and terraform v1.2.3

We could also explicitely let Terraform use the S3 client in case presigned URLs are not enabled with something like this:

func (s *S3Storage) generateURL(ctx context.Context, key string) (string, error) {
	presignResult, err := s.presignClient.PresignGetObject(ctx,
		&s3.GetObjectInput{
			Bucket: aws.String(s.bucket),
			Key:    aws.String(key),
		},
		s3.WithPresignExpires(s.signedURLExpiry),
	)
	if err != nil {
		return "", err
	}

	if s.useSignedURL {
		return presignResult.URL, nil
	}

	u, err := url.Parse(presignResult.URL)
	if err != nil {
		return "", err
	}

	u = &url.URL{
		Scheme: u.Scheme,
		Host:   u.Host,
		Path:   u.Path,
	}
	return fmt.Sprintf("s3::%s", u.String()), nil
}

Ah, this is embarrassing. We're running on a fork of the project with some small changes, but one of them is the change proposed in https://github.com/TierMobility/boring-registry/issues/37, which must be causing this issue. If the URL is treated as an S3 link, then Terraform is probably capable of dealing with + and other characters correctly when interacting with S3; it's only when it's treated as a raw HTTP/HTTPS link when this issue arises.
Closing this as won't fix, and making a note to migrate our S3 bucket to a structure compatible with the latest release so that we can get off of our fork and back onto the official releases for this project. Apologies for the confusion!

No worries! :) I've learned something new on the way, so that wasn't bad for me!

and making a note to migrate our S3 bucket to a structure compatible with the latest release

We're getting closer to release v0.8.0, which comes with some breaking changes regarding the bucket structure. We're working on a cli tool to migrate the modules and providers, so that should hopefully be an easy migration :)


authentication plugins

make it possible to specify a number of authentication plugins (where only one is required to be valid authentication)
make it possible to have optional authentication (i.e.: return a different UserInfo when the user is authentication or not)
make it possible to enable/disable authentication per route, e.g. requireAuth => false option...

Problem to solve: the Bearer plugin has more information than UserInfo, so we have to deal with this some way...
Also: I think it makes sense to include the basic plugin in the lib directly, do not have a separate project for that...
fkooman/rest returns the UnauthorizedException if needed, not the plugin itself. The plugin only returns UserInfo or false and has an 'isAttempt()' or something like that method to check if there is an attempt to authenticate using that particular plugin method...

For now we won't look into supporting multiple authentication backends for one route, see issue #6 and issue #7 for solving the optional authentication...


下拉框开启滚动跟随后，页面滚动，下拉框位置还是出现了错位

[ ] I'm sure this does not appear in the issue list of the repository

Basic Info

Package Name And Version<EMAIL_ADDRESS>Framework version: vue
Browser: chrome<IP_ADDRESS>

Steps to reproduce
滚动元素样式为：{
position: relative;
flex: 1 1 auto;
min-height: 0;
}

已解决，为Select标签添加了popupContainer="#app"


python311Packages.mdformat-frontmatter: 2.0.1 -> 2.0.8, python311Packages.mdformat-mkdocs: 1.0.4 -> 1.0.6

Changelog: https://github.com/butler54/mdformat-frontmatter/blob/v2.0.8/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 268751 run on x86_64-linux 1

8 packages built:

python310Packages.mdformat-frontmatter
python310Packages.mdformat-frontmatter.dist
python310Packages.mdformat-mkdocs
python310Packages.mdformat-mkdocs.dist
python311Packages.mdformat-frontmatter
python311Packages.mdformat-frontmatter.dist
python311Packages.mdformat-mkdocs
python311Packages.mdformat-mkdocs.dist


Unable to arm_custom_bypass via MQTT

I am unable to arm the system via MQTT when attempting to arm custom bypass.  All other modes work, but for some reason nothing happens when sending arm_custom_bypass.  I checked the Alarmo MQTT settings and I am sending the command the way it appears on the settings page.  Nothing in HA logs either.

I'm sorry for the lack of response from my side.
From the code I would say, you should be seeing a logging message of either:

Received unexpected command
Area does not exist / no area specified
Received command ...

The last one is a debug logging, so in order to see it, you need to change the log level for alarmo.
You can do so by adding to configuration.yaml:
logger:
  default: warning
  logs:
    custom_components.alarmo: debug

Apart from that, looking at the code, the behaviour is identical between arm_custom_bypass and others (arm_night, arm_away, arm_home).
It would be helpful for me if you could provide the logging result.

@mreiling any updates on this?

Sorry for the delay.  Here is what I have found.  I cannot arm the system to ARM_NIGHT or ARM_CUSTOM_BYPASS via MQTT.  I can in fact arm them from the HA interface but not via MQTT.  Nothing shows up in the logs with the debugging enabled.  Attaching the MQTT settings from my Alarmo install.  I would like to point out I am using areas (House and Garage) so perhaps that could have something to do with it.
Based on the fact the logs don't update when sending those two arming modes via MQTT, I am guessing it isn't seeing them.  Could there be a bug in those states and how they listen to MQTT topics?

I just tested this again using the following command:
mosquitto_pub -t 'alarmo/command' -m '{"command": "arm_custom_bypass", "code": "1234"}'

Alarmo seems to respond fine to it:
2021-06-19 07:11:18 DEBUG (MainThread) [custom_components.alarmo.mqtt] Received command arm_custom_bypass
2021-06-19 07:11:18 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] alarm_arm_custom_bypass
2021-06-19 07:11:19 INFO (MainThread) [custom_components.alarmo.alarm_control_panel] Alarm is now arming. Waiting for 20 seconds.
2021-06-19 07:11:19 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] entity alarm_control_panel.alarmo was updated from disarmed to arming
2021-06-19 07:11:19 DEBUG (MainThread) [custom_components.alarmo.automations] state of alarm_control_panel.alarmo is updated from disarmed to arming
2021-06-19 07:11:19 DEBUG (MainThread) [custom_components.alarmo.mqtt] Published state 'arming' on topic 'alarmo/state'
2021-06-19 07:11:39 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] async_leave_timer_finished
2021-06-19 07:11:39 INFO (MainThread) [custom_components.alarmo.alarm_control_panel] Alarm is now armed (armed_custom_bypass).
2021-06-19 07:11:39 DEBUG (MainThread) [custom_components.alarmo.alarm_control_panel] entity alarm_control_panel.alarmo was updated from arming to armed_custom_bypass
2021-06-19 07:11:39 DEBUG (MainThread) [custom_components.alarmo.automations] state of alarm_control_panel.alarmo is updated from arming to armed_custom_bypass
2021-06-19 07:11:39 DEBUG (MainThread) [custom_components.alarmo.mqtt] Published state 'armed_custom_bypass' on topic 'alarmo/state'

Please enable debug mode locally and try for yourself.
In your case you can simply send:
mosquitto_pub -t 'alarmo/command' -m 'arm_custom_bypass'

Since you have "require code" disabled

Same results.  Nothing shows up in the logs when the I choose Night or custom bypass.  Appears the MQTT listener isn't even seeing those.   I am running areas as well which might be a factor.
This works:  mosquitto_pub -t 'alarm/house/set' -m 'ARM_HOME'
This doesn't: mosquitto_pub -t 'alarm/house/set' -m 'ARM_CUSTOM_BYPASS'
Neither does this: mosquitto_pub -t 'alarm/house/set' -m 'ARM_NIGHT'


Add Persian labguage and Rial currency

Hello.
Please support Persian (Farsi) language and Rial currency in next version of this Add-on.
Thank you so much.

Hello.
Would you please review this pull request:
https://github.com/Numbertext/libnumbertext/pull/101
Thank you.

Hello, Neesti,
Thanks for your request! I'll check the module soon, and report the result!
Best regards,
László

@amiria703's nice patch has already merged, and it will be released soon.
Thanks for your request again!
Best regards,
László
P.S. FYI, Copying the module fa.sor in numbertext folder of the LibreOffice installation, it's possible to use it by the following user-defined number format:
[NatNum12 cardinal]0
or
[NatNum12 IRR]0
But my plan to add NumberText menu items to the number format dialog window.

Hi,
The problem was fixed by @amiria703, integrated with the new v1.0.11 release, integrated with LibreOffice, too.
The result will be visible in LibreOffice 7.5, according to the new number and currency formats of the Calc Cell and Writer Field formatting dialog windows:
https://wiki.documentfoundation.org/ReleaseNotes/7.5#Default_.E2.80.9Cspell_out.E2.80.9D_number_and_currency_formats
I have added only the cardinal number, because I will ask help on l10n mailing list of LibreOffice to check RTL and CTL language support in Calc/Writer.
Many thanks for your bug report!
Best regards,
László


dont load

Hi, i am using Slic3r prusa edition 1.40.1+win64 and i cannot load your profiles. I always get
 (7): ´=´character not found in line
error

Same

Did you this in repo's main page: "please make sure that you either download archive of all the files, make git clone or download a raw file. Attempting to copy-paste the file or downloading a file from regular github view (non-raw) will result in errors while importing."

Yeah, I found out just yet. I did copy the raw text, this worked.


README: update for standard readme compliance, including adding a LICENSE, plus a Gitter badge, etc.

Oops, this is the right room https://gitter.im/ethereum/casper

Thanks, updated!

Ready for review!

Thanks @jamesray1

You're welcome @ChihChengLiang!


several changes

these are some commits that emerged while working towards the XMLErrorHandler.
for some reason i want to drop them.

So is this a WIP?

well, rather not.
three of the commits are needed by the xml-thing, providing general mechanisms. the rest are independent from that. fixing or straightening things.

Merged with https://github.com/nicolaiarocci/cerberus/commit/4c63700d7f4a1b9d85ee4eb77544833403c5de76
FYI, I don't think it is interesting to add XML/JSON/etc. emission to Cerberus. There are other tools that can do that pretty well so we would end up adding unnecessary features, as I prefer to keep the features set focused on validation (you could also choose to release an external xml-emission tool, we could then mention it in the docs).
I also feel confident that the feature-set is pretty mature, so much that I am actually considering a v1.0 January release.

can you point me to a xml-emission tool you think of? next and i guess last would be to en- and decode errors properly. and i'm not keen on reinventing the wheel. though it doesn't seem to be too much of an effort.
yes, i think it's a good idea to keep things focussed. so, i can think of a cerberus-extensions library for various error handlers and additional rules.
thus, i will prioritize to review the BaseErrorHandler and Basic... to have a stable API. and have a concept-proof for it.
when i reiterated over the type validation i had the strong urge to actually start a 1.0-branch just to see how this could be done much simpler, but compatibility-breaking.
shall i open issues for stuff i think should be done before a 1.0?

can you point me to a xml-emission tool you think of?

https://pypi.python.org/pypi/dicttoxml
https://stackoverflow.com/questions/1019895/serialize-python-dictionary-to-xml
https://gist.github.com/huseyinyilmaz/1448723

Withi this being said, I endedup rolling my own implementation.

shall i open issues for stuff i think should be done before a 1.0?

Go for it.

thanks for the hints. i did some further research and interestingly there's only lxml as maintained library that also has the functionality to convert the resulted xml back to python objects.
i will continue with an own implementation, unless i run into über-effort eventually.
since it is intended as proof-of-concept for the error-handler mechanics i'd like to make it available as reference implementation. shall i just start a repository for the mentioned cerberus-extensions and add you with write-permissions?

thanks for the hints. i did some further research and interestingly there's only lxml as maintained library that also has the functionality to convert the resulted xml back to python objects.

good ole lxml :+1:

since it is intended as proof-of-concept for the error-handler mechanics i'd like to make it available as reference implementation. shall i just start a repository for the mentioned cerberus-extensions and add you with write-permissions?

Sure, but I don't need write permissions I'll just be happy with following the development from afar :smile:
I bet there are other Cerberus "extensions" out there, most likely custom validators. Eventually, it will probably be a good idea to set up a extensions page in the docs, like we did with Eve extensions page, so people can add their own tools to it.


Best settings for Pi Camera V3 Module noIR for daylight/indoor capture

Hello there, I tried adjusting AWB mode setting to get rid of the purple tint in noIR camera photographs and captures but had no luck. Any suggestions on what settings I should change to make my captures look as similar to what human eyes see?

Hi, there should be an imx708_noir.json tuning file that you can use, something like
tuning = Picamera2.load_tuning_file("imx708_noir.json")

picam2 = Picamera2(tuning=tuning)

Does that make a difference?

No, sadly, still doesn't make a difference; the images are still purple.

This is my initializing code
python tuning = Picamera2.load_tuning_file("imx708_noir.json") picam2 = Picamera2(tuning=tuning) picam2.configure(picam2.create_preview_configuration(main={"format": 'XRGB8888', "size": (1920, 1080)})) picam2.start() picam2.set_controls({"AfMode": controls.AfModeEnum.Continuous}) picam2.set_controls({"AwbMode": controls.AwbModeEnum.Indoor}) picam2.set_controls({"AeConstraintMode": controls.AeConstraintModeEnum.Normal}) picam2.set_controls({"AeExposureMode": controls.AeExposureModeEnum.Normal}) picam2.set_controls({"AeMeteringMode": controls.AeMeteringModeEnum.Matrix})

@NewAmazingPVP check one of the directories below to find different filters, in my case I have a ov5647 sensor, so I applied this filter and it removed the purple color.

/home/pi/libcamera/src/ipa/raspberrypi/data
/usr/local/share/libcamera/ipa/raspberrypi
/usr/share/libcamera/ipa/raspberrypi

Check via ls -lah <directory> inside your pi, and use one filter from there to see if any helps you.

Hey there, I did find 4 files for imx708 sensor (imx708_wide_noir.json, imx708_wide.json, imx708_noir.json, imx708.json) in /usr/share/libcamera/ipa/raspberrypi and used all of them, but none helped. When I used imx708.json and imx708_wide.json my captures came out pink and when I tried to use the noIR ones (imx708_wide_noir.json and, imx708_noir.json) my images came out with purple color. Any suggestions what I can do? Are there any more sensor files that I'm missing.

I don't really understand what's going on here. When you use the "noir" version of the tuning files it runs simple greyworld AWB, so in theory there should be no way you can get purple images. Is it possible for you to capture a DNG file that shows the problem and include a link to it here? Thanks.

Ok, thanks for the help. Here is the dng file: https://www.dropbox.com/s/b6lq0kht9hb7d70/full.dng?dl=0 I took this at night; the purple tint only shows up during the daytime. Does that make a difference or not? If so, I can take the picture in daylight. Sorry, I have no experience with this lol.

That file looks perfectly fine to me. It's pretty grey which is what I'd expect. The "as shot neutral" field in the EXIF data reports 1.02817191 1 0.4331254331 suggesting that the red/blue colour gains are about 0.97 and 2.31. These are nowhere near the normal values for a regular sensor (with the IR filter), suggesting that the right things are happening.
I'd be interested to see a DNG that shows the purple problem. It might be worth looking what the colour gains are (picam2.capture_metadata()['ColourGains'] while the preview is running). Are you able to set the colour gains to get the kind of image you expect (picam2.set_controls({'ColourGains': (1.0, 2.3)}) for example)?
But overall, I'm pretty baffled by all this.

Thanks for the picture. Mostly this looks in line with my expectations. Most of the image is slightly green, and a couple of things slightly purple, but taken as a whole it looks pretty much grey "on average" - which is what it tries to achieve for NoIR cameras.
The problem with IR is that it's very difficult to calibrate for it. The red, green and blue pixels on the sensor are all sensitive to it, and the amount of IR will vary with the illumination, type of glass in the windows, whether you're using any IR lamps and so on. You may find that the IR is swamping everything a bit, so things will look a bit faded and strange whatever you do.
You should be able to adjust those colour gains to achieve the "best possible result", but even this may not give you true to life colours. For reference, the colour gains for this image look to be about (0.8, 1.4), so that would be a place from which to start adjusting them. One reasonable approach would be to find something you know to be grey and adjust the gains until it is indeed grey. Out of interest, what colour should the walls be?

Oh, I understand now about the challenges with IR callibration. Thank you for explaining. The walls are white, so they should look and be white. I will definitely experiment with different color gains to see if I can achieve the image I want.

I will close the issue now. Once again, thank you for your guys help and time. I really appreciate it.


kb.yaml signature mismatch for thesp0nge/dawnscanner_knowledge_base 1.0.0

I tried downloading the lastest dwnscanner (2.0.0rc5) and running it using the kb here https://github.com/thesp0nge/dawnscanner_knowledge_base/tags
However I am getting signature mismatch error
reproduce steps:
          wget https://github.com/thesp0nge/dawnscanner_knowledge_base/archive/refs/tags/v1.0.0.zip
          expected_checksum=cb2c57dc4305fa1497f7db5779bb05fb19329749
          if [[ $(sha1sum v1.0.0.zip) != "$expected_checksum  v1.0.0.zip" ]];then
            echo "Checksum failed" >&2
            sha1sum v1.0.0.zip
            exit 1
          fi
          mkdir ~/dawnscanner
          unzip v1.0.0.zip -d ~/dawnscanner
          mv ~/dawnscanner/dawnscanner_knowledge_base-1.0.0 ~/dawnscanner/kb
          bundle exec dawn scan .

Error I get
[2023-04-01 04:28:09] INFO  (dawn): dawn v2.0.0.rc5 is starting up
[2023-04-01 04:28:09] WARN  (dawn): pattern matching security checks are disabled for Gemfile.lock scan
[2023-04-01 04:28:09] WARN  (dawn): combo security checks are disabled for Gemfile.lock scan
[2023-04-01 04:28:09] ERROR (dawn): kb.yaml signature mismatch. Found 8efb1fd9c58795bc7fa2fae8389e129eabfd34ac4b36c93c981ec4c69d0c3dd9 while expecting 009101c8787ecd7a14ad15599fe145abd3e21069888ffa175e2c60fff870866d  /home/thesp0nge/src/dawnscanner/db/kb.yaml
. Giving up
[2023-04-01 04:28:09] WARN  (dawn): no security checks found. This is strange
[2023-04-01 04:28:09] INFO  (dawn): 0 issues found
[2023-04-01 04:28:09] INFO  (dawn): /home/runner/dawnscanner/results/./20230401/summary.txt created (1020 bytes)
[2023-04-01 04:28:09] INFO  (dawn): /home/runner/dawnscanner/results/./20230401/statistics.txt created (459 bytes)
[2023-04-01 04:28:09] INFO  (dawn): dawn is shutting down

Hi @daisy1754 thanks for reporting it. I will address. By now you can simply override the check putting the expected hash in the kb.yaml.sig file

The latest knowledge base has the correct signaure


Unable to initialize javax.sql.Datasource via application.properties

Please fill out the issue checklist below and provide ALL the requested information.

[ ] I reviewed open and closed github issues that may be related to my problem.
[x] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
[x] I attempted to run the command with CF_TRACE=1 to help debug the issue.
[ ] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with
In the attached file complete.zip, you will find AppController.java where the autowired field for Datasource is defined. Compilation via Maven goes well.
I have MySQL database running locally.

What happened
However, when I push the Jar via CF CLI by using above command, the deployment fails saying -

2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT ***************************
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT APPLICATION FAILED TO START
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT ***************************
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT Description:
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT Parameter 1 of constructor in org.cloudfoundry.http.AppController re
quired a bean of type 'javax.sql.DataSource' that could not be found.
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT The following candidates were found but could not be injected:
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT     - Bean method 'dataSource' in 'JndiDataSourceAutoConfiguration'
not loaded because @ConditionalOnProperty (spring.datasource.jndi-name) did not find property 'jndi-name'
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT     - Bean method 'dataSource' in 'XADataSourceAutoConfiguration' no
t loaded because @ConditionalOnBean (types: org.springframework.boot.jdbc.XADataSourceWrapper; SearchStrategy: all) did
not find any beans of type org.springframework.boot.jdbc.XADataSourceWrapper
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT Action:
2019-08-06T20:49:49.52-0400 [APP/PROC/WEB/0] OUT Consider revisiting the entries above or defining a bean of type 'ja
vax.sql.DataSource' in your configuration.
2019-08-06T20:49:49.57-0400 [APP/PROC/WEB/0] OUT Exit status 1

I have also attached complete logs here
cf_spring_boot_log.txt.
Expected behavior
A successful deployment of the JAR with status indicated as STARTED, rather than CRASHED.
To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:

Build a JAR named pcf-people-mgmt-1.0-SNAPSHOT.jar from attached code complete.zip by running mvn -U clean install
Run cf dev start -f pcfdev-v1.2.0-windows.tgz.
After start, run cf login -a https://api.dev.cfdev.sh --skip-ssl-validation -u admin -p admin
Run cf push pcf-people-mgmt -p C:\Users\ranadeep-sharma\IdeaProjects\gs-spring-boot\complete\target\pcf-people-mgmt-1.0-SNAPSHOT.jar
See error in CLI console.

Provide more context

platform and shell details : Windows Pro 10 with 16 GB RAM and Intel i7 processor + Powershell ISE.
version of the CLI you are running : 6.46.0+29d6257f1.2019-07-09
version of the CC API Release you are on : 2.133.0

Hi @ranadeep-sh thanks - this doesn't look like a CF CLI issue - but here's some information that might help that I gathered from a Spring SME:
It looks like they expected the app to connect with their local MySQL although they're running the app on PCF Dev.

They would need to create and bind to a MySQL SI

And also have the spring cloud connectors in the build of their app

They've advised this site which might help you further debug:
https://gitter.im/spring-cloud/spring-cloud
I'm closing this issue since it's not CF CLI related, please visit the url above should you require further support.  Thanks and good luck.

Thanks @abbyachau.
This is very helpful.


How to use adapters

Hi,
I try to learn rivets, I found it is very powerful.
I used other mvvm, but rivets adapters this concept to me is very strange, and I confused.
Does someone be able to show me a simple example how to use, and what is the perfect scenario for this feature?
Thanks
Eric Xin

I assume you've seen description of the adapters on http://rivetsjs.com/docs/guide/
If you're playing only with simple JS Objects then built-in . (dot) adapter is enough for you. However, if you want to subscribe to changes on some other data that have some more complicated structure than simple Objects then you could register another adapter or completely overwrite existing one. The Guide mentions Backbone framework as an example, however personally I haven't had a use to custom adapter yet.

I did.
So can I ask that further step?
user.address:city, what this string try to do?
Get user.address value, and then to get city value from correct address? That is the example for? Thanks

@ericxin1982
To decompose the keypath user.address:city to the best of my ability in words.
Access the user from the root bound object, the root path is configurable, by default it is a .. Access the address property from the user by using the . adapter. Access the city property from the address using a : adapter.
The : property accessor signifies, get this property (really subscribe to it as well) from this other thing by using this specific adapter. This is useful if the address is not just a regular POJO.  For example, if address were a backbone model. Backbone models store the internal properties on a attributes object. If this : adapter were using backbone, you could get around it by doing user.address.attributes.city However, this will not work as you expect.
The adapter is used to teach the rivets core library HOW to access and listen for changes on a keypath. If you look into the internals of (sightglass)[https://github.com/mikeric/sightglass] you will see that it is wrapping and observing the keypaths subscribed.
Some cool use cases of custom adapters would be subscribing to a websocket directly (think firebase without all the google).  You could also make an adapter for local storage. You could make an adapter for really anything.
Does this help?

Thanks.
I should read through sightglass first. That is new concept to me.

@Duder-onomy
Please see the code below.

I understand now, close this issue.


Update the WriteAttribute handlers to return the service name.

Also we need to double check if we want restart, or remove and add.

As we have a fairly flat hierarchy and naming is now based on capabilities maybe we can just use a single implementation - or at the very least a common base.  Custom implementations should only be required where attributes are taking immediate effect.


Remove finish span on close

Addresses #291
SpanBuilder.startActive(Span, boolean) and ScopeManager.activate(Span, bool) have been kept, but as deprecated methods.
Updated the opentracing-testbed code to use this change, and added a new, small, error-reporting case.
cc @felixbarny @adriancole @yurishkuro @tedsuo @sjoerdtalsma

Coverage decreased (-0.3%) to 73.815% when pulling 81fe31a4f4ee7ba9d55b2b71109a23c21e514bab on carlosalberto:remove_finish_span_on_close into d6c6509d5524f99039e34cbf121df79c46a25147 on opentracing:v0.32.0.

Hey @adriancole
Thanks for the feedback. So my personal take for your points is:

That's not a bad thing, but then people would need to remember to do something like:

Span span = tracer.buildSpan("one").startActive();
try {
} catch (Exception e) {
  ...
  span.finish();
} finally {
   tracer.scopeManager.active().close();
}

This being implicit kinda makes me wonder (but definitely thing to consider).

A special Span is something that would add complexity to the current (relatively simple) API. For example: what happens if this very special Span is passed to another thread? I'd leave it as a potential addition in the future.

So the thing about removing Scope.span() is probably fine, as long as we have ScopeManager.activeSpan() (so we always expose the current active Span and the active Scope without explicitly linking them together). However, I'd like to hear the opinion of other people here.
Opinions? @felixbarny @yurishkuro @tedsuo

are we shooting for this?
Span span = tracer.buildSpan("nasty").start();
try (Scope scope = tracer.activate(span)) {
  // do nasty stuff
} catch (Exception e) {
  span.SetTag(...);
  ...
} finally {
  span.finish();
}

It makes the usage slightly more verbose than the current api, especially without try-with-resource (only if <=1.6, who cares), but avoids the misuse. scope.span() is removed.

I agree with @yurishkuro

Remove* SpanBuilder#startActive
Remove* Scope.span() (this is only useful in combination with SpanBuilder#startActive)
Remove* ScopeManager.activate(Span, boolean)

*deprecate and eventually remove

Hey,
Was wondering, after the feedback, about this (small variation):

SpanBuilder.startActive() and Scope.span() gets removed
ScopeManager.activeSpan() and ScopeManager.active() (so we have the two of them available, but not linked to each other, thus less chances to have users pass Scope objects arounds).
Trace.activeSpan() and Tracer.activate() as aliases to ScopeManager's respective methods.

Sounds fine to me

Hey all,
This PR is updated to reflect the latest requested changes, namely:

Deprecate SpanBuilder.startActive(boolean), ScopeManager.activate(Span, boolean) and Scope.span().
Removed SpanBuilder.startActive() (parameterless overload, which had been added early in this PR).
Add ScopeManager.activeSpan() and leave ScopeManager.active() in place (So ScopeManager.active() is still reachable, but designed to stay for more advanced use, as well as still exposing ScopeManager, in case the user wants to unwrap it himself).
Add Tracer.activateSpan(), as a shorthand for tracer.scopeManager().activate(span).
Updated the testbed module and inline docs overall.

@yurishkuro @adriancole @felixbarny

@yurishkuro Thanks for the edit notes, appreciated. Please take a look whenever you can ;)

Hey @felixbarny @adriancole Wondering if you are fine with this PR? If yes, I'd like to have it merged, and probably have a Release Candidate to test things out soon after.
@yurishkuro Docs edits look good to you? ;)

LGTM

Thanks @felixbarny !
I will proceed to merge this PR tomorrow as if seems to have found a proper trade-off of features, unless there's any complain from anybody ;)

Merged, thanks everybody for their feedback! Remember that this is not a final change, and it could be changed if/as needed (we will likely be doing a Release Candidate to test this and other changes out) ;)

@carlosalberto I didn't participate in this PR as my opinion is already voiced by others, but I forgot to thank you for creating this!
So thanks :smile:


Clarify Sign In process using service principal

It is confusing the way it is explained how to sing into Azure using the service principal. It is supposed that this login is going to be made in another PowerShell session so variables such as $svcprincipal.ApplicationId won't be available.
Another point is that sometimes using the service principal for login is made to avoid interaction with a user and make an automation task; I am suggesting to add an example of how this could be done.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-conceptual/azurermps-6.4.0/create-azure-service-principal-azureps.md
:white_check_mark:Succeeded
View (azurermps-6.4.0)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Thank you for your contribution. The information that you added into this section is already contained in the documentation:
https://docs.microsoft.com/en-us/powershell/azure/create-azure-service-principal-azureps?view=azurermps-6.4.0#get-information-about-the-service-principal
When writing a script, if the reader follows all of the written instructions, their environment will be properly configured.


How does the suggested initialization compare to the Xavier initialization method ?

I've just found out about the so-called Xavier initialization method, which to me seems to do what the paper claims to be its main contribution.
It's an option to Mathematica's NetInitialize function.
image = ExampleData[{"TestImage", "Lena"}]

image = ImageResize[image, 128];

{width, height } = ImageDimensions[image]

output = Flatten[#*2 - 1 &@ImageData[image], 1]

linspace[n_] := Array[# &, n, (n - 1)/2 // {-#, #} &]

input = Pi/2 Tuples [{linspace[height], linspace[width]}] // N

net = NetInitialize[
  width // NetChain[
     {
      #, Sin,
      #, Sin,
      #, Sin,
      #, Sin,
      3, Sin
      },
     "Input" -> 2
     ] &,
  Method -> "Xavier"
  ]

net = NetTrain[net, (input -> output)];
Image[Partition[(# + 1)/2 &[net /@ input], width], ColorSpace -> "RGB"]

image

Do[
 Print[Table[
   NetExtract[net, {i, x}] // Flatten //
    Histogram, {i, {1, 3, 5, 7, 9}}]],
 {x, {"Weights", "Biases"}}
 ]

The proposed initialization method is derived independently under different assumptions, for a different nonlinearity, and with a different derivation than Xavier initialization. The assumptions made in Glorot et al. 2010 do not apply to the sine nonlinearity ("Consider the hypothesis that we are in a linear regime at the initialization..."). Remarkably, the final result turns out to be the same, but that was neither known, trivial, nor clear before our analysis -  so indeed, this is a surprising finding of our paper!


update docs

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
767

Relevant Lines:
770

💛  - Coveralls


Upgrade Core NestJS Dependencies to Nest 6

Now that Nest 6 is available, the @nestjs-plus packages need to be updated to support it. This will entail a new major version release for all current packages which means that version 5 support will no longer receive new functionality (to avoid semver issues).
The discovery package is the biggest blocker now as it depends on NestJS DI internals which have been updated significantly.

This may be blocked by https://github.com/nestjs/nest/issues/1786 as it appears there's some core functionality around modules and dependency injection that isn't working properly. It's unclear whether this is only in the context of TestingModules or whether it extends further


Refator client_factory.py module. Update keeper.py

client_factory.py

Make an unification of client in this module
instead of making spam here.

keeper.py

Add get method as unification of all other get* methods

spam_factory.py

Resolve issue with networks for nova.
Add come_up_subnet method for generating of subnets.

Coverage remained the same at 0.0% when pulling c669b166f4212c8367bd454cca8514b235164270 on FromZeus:master into 00d2605d6f937eb5f6c8e96112ba99a1e309fcfb on seecloud:master.

Coverage remained the same at 0.0% when pulling b3245d14bf2ca9aea8a6ecfcba3c30c937e5c8f7 on FromZeus:master into 00d2605d6f937eb5f6c8e96112ba99a1e309fcfb on seecloud:master.

Coverage remained the same at 0.0% when pulling be133b6097640325d6dd58c48f6e33331fba18c7 on FromZeus:master into 00d2605d6f937eb5f6c8e96112ba99a1e309fcfb on seecloud:master.

Coverage remained the same at 0.0% when pulling 797198403df9acdbf828da3fe5cbb2fd0fbd92e1 on FromZeus:master into 00d2605d6f937eb5f6c8e96112ba99a1e309fcfb on seecloud:master.


Implemented GLEM for node-level tasks

Issue #, if available: #241
Description of changes: Implemented GLEM for node-level tasks. It's implemented by subclassing GSgnnNodeModelBase for the model, and a specialized trainer GLEMNodePredictionTrainer for alternating training of LM and GNN.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@zheng-da @classicsong , Can you check the error log in e2e_check? Is it a time-out error? I didn't add any new e2e test. My new test in e2e_mgpu passed.

did you evaluate the model performance of this implementation on some public datasets?

overall, it looks good to me. a few overall questions:

can this reproduce the performance in the paper?
should we use unlabelled nodes to train the model as well?