[Bug]: Having a hash symbol in a tag breaks eval and .content()

Steps to reproduce the problem:
const minHTML = `

                    Table data in first row

                    Table data in second row

`;

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto(`data:text/html,${minHTML}`);
  console.log(await page.content());
  await browser.close();
})();

This logs out:

But if I remove the '#' in the first tr tag then it works as expected.
This can be reproduced by having the '#' in other tags as well. I ran into this when the html had <svg><use xlink:href="...#..."></use></svg> and narrowed it down to the hash symbol.
Puppeteer version
16.1.0
Node.js version
v14.17.3
npm version
6.14.13
What operating system are you seeing the problem on?
Windows
Relevant log output
No response

It might be the await page.goto(data:text/html,${minHTML}); that's the issue because if I replace it with await page.setContent(minHTML); then the page.getContent() outputs fine.

# starts the fragment part of the URL, so the rest of the document is ignored, try await page.goto(data:text/html,${encodeURIComponent(minHTML)}); instead.

You say 'an actual URL', but a valid data: URL does not contain '#' in the data, or newlines for that matter, so you need to escape them like above. A regular valid URL also does not contain unescaped '#' except before the fragment. This is not a bug with Puppeteer.
Relevant specs:

URLs in general: https://url.spec.whatwg.org/#valid-url-string (or https://datatracker.ietf.org/doc/html/rfc2396#section-4)
data URL scheme: https://datatracker.ietf.org/doc/html/rfc2397#section-3

What I meant is if I go to an URL e.g. https://www.exampleurl.com that returns # in the HTML response some where, then page.content or page.$$eval will not return the correct full HTML due having #. How can I fix going to the URL and getting the full HTML response?

A '#' in the page content inside some HTML element? That shouldn't be a problem, is it?

It is a problem. That's how I came across this issue.

The URL I go to using await page.goto(URL) has bunch of <svg><use xlink:href="...#..."></use></svg>
When using await page.content() or await page.eval(...) it doesn't have the full HTML content of the page, only up till the level depth before the first <svg><use xlink:href="...#..."></use></svg>. So a lot of content was missing.

Based on this discussion, it seems this is a non-issue.

@scdev0 I'm not sure what you're doing, when I do this it prints the whole SVG doc:
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('file:///path/to/some/svg-with-hash.svg');
console.log(await page.content());

@stevenwdv Retested the page again. It does seem okay. Thanks!


Fixes eof detection with nightly.

Fixes #38

Everyone please wait until CI is fully setup before merging this, okay? :laughing:

bors try


Update README.md as an example

Contributor Comments
I am just making an example PR, this will get closed.
Pull Request Checklist
Thank you for submitting a contribution to easy_infra!
In order to streamline the review of your contribution we ask that you review and comply with the below requirements:

[ ] Ensure that make build completes successfully
[ ] Rebase your branch against the latest commit of the target branch, which likely should be master
[ ] If there is an issue associated with your Pull Request, align your PR title with this documentation

I think my change provides values can you take another look?


[FEAT]: Investigate the feasibility to use 2 OAK-D-Lites at the same time

Description
We might need (in the far future) to use 2 OAK-D-LITE at the same time to cover more perfect detection of the bottles.
Additional Information
No response

@gmacario Can you please bring your OAK-D-LITE ? I want to test if the code developed works.

@gmacario Can you please bring your OAK-D-LITE ? I want to test if the code developed works.
If you want a photo for the weekly post, you may need to bring a mini bottle JUST FOR SHOW.

Sure I will, and will also bring this other gadget

The developed code works for 1 OAK-D

When 2 OAK-D-LITE are connected to the same computer, the software start, displays the 2 frames and then crashes.

The developed code works for 1 OAK-D
When 2 OAK-D-LITE are connected to the same computer, the software start, displays the 2 frames and then crashes.

I would recommend to publish the source code as-is under a proper subdirectory (for instance, /code/xxx) of https://github.com/B-AROL-O/ARNEIS, then add some more contest to this issue and ask for help on a Discord channel of luxonis. Maybe they can help out sorting this issue quickly

After the fix proposed https://github.com/luxonis/depthai-experiments/issues/280
the code seems to work fine now and it is already present in a PR #58 .


PR to include git

Would you accept a PR to include git in this docker container?

Hello,
Yes, i will accept your PR if you install git with apk (you can add it between curl and openssh-client, to respect the alphabetical order).
Have a good day,
Julien


HUE dimmer switch RC11

after update to rc11 the hue dimmer switch stops working was working great on latest stable fw.
The unique log ID is: a19a163f-041c-46d0-9e89-5c2850550836
Thanks

did work after add /remove device


Responsive styles aren't being imported into gulp build

We can check out npm-css and rnpm

Let's put a styles.styl in every module and use a glob to import all of them from boot.styl. Let's import styles under node_modules by hand now and in when we're done with 1.0.0 let's update all our node_modules forked dependencies to add the styles declaration to their package.jsons and then use rnpm.


[feature request]AI corrected signal loss.

Would it be possible to train a computer vision model with OpenCV to fill in lost image data in realtime?

And AI 4k upscale 😍

You would need to add a GPU into the video path. I'm certain this would be a fun research project but there is no chance of seeing this come included with HDZero.

jokes aside, it seems possible to pre-train model to predict the most statistically optimal pixel color based on neighbours so actual pixel filaments can be done on fly with very low computation overhead. Another option, but I'm sure developers explored it already, is to dedicate small part of bandwidth to send colors of big areas first, i.e. like old JPEGs use progressive loading in the past.

Depending on how much hardware u got on v536. It got an NPU that can probably do some decent inference.

Would  averaging the neighbouring pixels already be an improvement over the current "multicolour static" behaviour?

Any software-based video processing will increase latency.


Account Updater

I'm opening this early to gather some thoughts / ideas on architecture.
Here's some Vantiv documentation that I found that might be helpful to review this:

https://www.vantiv.com/content/dam/vantiv/developers/Vantiv_LitleXML_Reference_Guide_XML10.1_V1.1.pdf
https://apideveloper.vantiv.com/sites/default/files/devhubdatadictionaryv22.pdf

I think this merits updating the readme to give an overview of how account updater works and how you interact with it through the gem.

LGTM aside from minor comments

👍


Assemble definitions are wrong

These assemble definitions are copied from another project and the filename and the name should be changed.
com.from2001.vrm-visualscripting-nodes.asmdef
com.from2001.vrm-visualscripting-nodes.Editor.asmdef

https://github.com/from2001/Spectrum_VisualScriptingNodes/pull/4


[Usage]: Does vLLM currently support structured output?

Your current environment
Hello, I would like to know if vLLM currently supports generating structured outputs, such as JSON,"Can I use response_format: {type: json_schema} when calling the OpenAI-compatible API via HTTP?"
How would you like to use vllm
I want to run inference of a [specific model](put link here). I don't know how to integrate it with vllm.
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Yes #7656


Whisper support

Can we support Whisper?

Hello, we should be able to do so, I tried the Whisper model (the large one, 1.5B parameters), it should work fine, it is just that I noticed, users are not interested in using the Microphone at all, they mostly like to type. Maybe privacy raisons, but this could be a good solution for offline (most users failed at setting up the offline solution).
If you are interested in it, please go ahead open a PR, for sure will be appreciated.


[dvsim] Added fusesoc generator for RAL

Added fuseson generator ralgen for autogenerating RAL pkg. This was
originally done by hw/dv/tools/gen_ral_pkg.sv, which has now been
removed.

Updated all fusesoc env core files that are dependent on its RAL pkg
to invoke the generator.

Updated all documentation uvmdvgen templates to reflect these
updates.

Fixes #1784.

Signed-off-by: Srikrishna Iyer<EMAIL_ADDRESS>

Thanks, I'll have a look on Monday.

Hi @imphil, PTAL at this PR when you get the chance. This needs to go in soon since new testbenches are getting generated.


Adds instructions div - top right.

So people like me don't get confused about how to use impress.js.
You can see what it looks like at my gh-pages version.

Thanks.
But I did it a little bit different - so it's shown only on the beginning of the presentation (and only when visitor doesn't start it for 5 seconds).

Shazam. Progress. I like it.


TypeError: _useTransactions__WEBPACK_IMPORTED_MODULE_3___default(...) is not a function

Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce

Go to '...'
Click on '....'
Scroll down to '....'
See error

Environment

Bugsnag version:
Browser framework version (if any):

Vue:
React:
Angular:

Server framework version (if any):

Koa:
Express:
Restify:

Browser version (e.g. chrome, safari):
Device (e.g. iphonex):

Example Repo

[ ] Create a minimal repository that can reproduce the issue
[ ] Link to it here:

Example code snippet
# (Insert code sample to reproduce the problem)

Error messages:

Hi @stupendousaj99,
can you fill in the issue template above with some more details about the issue you're seeing?

Closing this as we have not had a response and don't have enough details to investigate. We are happy to reopen if you can provide more information.


Minor Tesla tweaks

About the PR
Strike prob
Lightning strike targets can now be ignored by a lightning strike with a certain chance.
A tesla coil has a 50% chance of being ignored.
Grounding rod has a 5% chance to be ignored.
This increases the importance of placing ground rods around the tesla to contain it, previously they were useless with 4 coils.
Now, placing just 4 coils will result in a serious chance of lightning striking an unintended device. Increasing the number of ground rods greatly increases the safety of the tesla, but never makes it 100% safe
(essentially installing 4-6 ground rods with more coils will result in 99% safety)
Lightning Bounce Fix.
Fixed a small bug where lightning always reflected at least 1 time, even if it shouldn't.
Tesla coil nerf
Now the tesla coils is just as completely absorbing all lightning, preventing it from being reflected. This greatly reduces the amount of energy produced by the tesla, because previously 1 tesla strike could charge 3-4 coils at once.
the amount of energy received from a lightning strike is reduced by 2 times
Given the frequency of lightning strikes, and the low rate of energy output, this should not affect the final energy output much
Changelog
:cl:

tweak: Tesla coils now have a 50% chance of not attracting lightning. Grounding rods now have a 5% chance of not attracting lightning. Installing ground rods is now much more important!
tweak: Nerf tesla energy producing.

I'm thinking of making several small patches based on feedback, and then writing a guidebook that describes the technical details in detail

How performant is this compared to the current system?

I can’t say the exact values, but in general I reworked the lightning system to a more optimized one, and here I simply tied the anomaly to new functions.  It should be faster anyway

Logically, it has a very weak effect on optimization.  Since we simply skip the elements of the list and take the next ones.

i would recommend removing the ignore chance from grounding rods, else nobody will use it because it will always loose
"never safe" is not something you ever want something that destroys the station to be

Having failure being rng based never feels good. People barely usw singulo because it randomly fails despite all the protective barriers.

Having failure being rng based never feels good. People barely usw singulo because it randomly fails despite all the protective barriers.

singulo does not currently randomly fail, but a bug caused it to, so engi either never used it or left a person to watch and control it at all times

Having failure being rng based never feels good. People barely usw singulo because it randomly fails despite all the protective barriers.

singulo does not currently randomly fail, but a bug caused it to, so engi either never used it or left a person to watch and control it at all times

the uncertainty would regardless cause them to use boring engines like the AME

I removed the 5% chance of being ignored at the ground rod. Now there's no randomness. But now coils and rods take structural damage from lightning strikes, and they need to be repaired periodically with welding. If I counted correctly, this should be done about once every half hour.

https://github.com/space-wizards/space-station-14/assets/96445749/e57424c6-ba2b-4296-99c5-78867c208f72

Still not sure how to properly calculate the balanced value of the generated energy. Right now, the tesla should be generating less

I don't understand what the errors are, frankly.

error is unrelated
also i think instead of no maintenance = tesloose, it should be no maintenance = no power like singulo
instead of lightning destroying the coils and grounding rods, it simply makes them less efficient because arcs degrading the surface. then you just repair them to bring efficiency back up similar to fish game reactor

i think thats probably better idea so the idea of power generation is less binary than (power or station destroyed)

I can remove the damage from lightning from the rods.  the coils will break, but with the right number of rods, it will remain safe

with singulo if you forget to refuel it you get less power
with proposed tesla changes, if you forget to weld it the entire station blows up

Okay, let's say. Thesla coils break after 30 minutes without maintenance and the station remains without power. The ground rods break after 1 hour+ without maintenance and Tesla runs away. Is that normal?

grounding rods shouldnt break otherwise you cant rely on them to keep things safe

just make it give power forever, the balancing of making it equally bad as singulo does not work
right now:
singulo - certainly dangerous if contained, dangerous depending on chance if loose
tesla - safe if contained, guaranteed station death if loose
overall, tesla is less safe
there should be actual reasons to use the less safe option, there's literally no reason to use it if it's just singulo but with much deadlier loose

well the main problem now is the tesla doesn't require any upkeep at all. You build it and forget about it, getting infinite energy.

additionally: while contained, singulo's gravity and radiation are easily dealt with and actually deter sabotage attempts, whereas tesla is extremely easy to sabotage: just unanchor the tesla coils and grounding rods
i believe it is fine for tesla to have no upkeep

PJB has said before that unattended engines should not result in it exploding / widespread destruction, so containment needs to remain assured without maintenance
Tesla coils can (and should) degrade with use, but grounding rods should not

Okay, now the grounding rods can hold off lightning strikes indefinitely.

I think the option that Tesla gradually destroys the coils and rods is a more interesting option.  Yes, she will escape over time, but I think Tesla's escape is fun


Doc: collections.mdx: Remove key prop

My understanding from how those {(item) => <Component>{item.name}</Component>} work is, that the key prop is not required or recommended on this line but instead will be added automatically based on the item key or id prop or getKey callback.
This PR removes the key prop from the examples which makes them easier to read and understand.
See also

https://github.com/adobe/react-spectrum/issues/7176
https://github.com/adobe/react-spectrum/discussions/4431#discussioncomment-5714670

Another thing I am confused about on this docs page is, what the <Item> component is. I assume it should be renamed, see https://github.com/adobe/react-spectrum/pull/7175

Another thing I am confused about is the mention of @react-stately/data vs. react-stately especially in places like https://react-spectrum.adobe.com/react-stately/collections.html#asynchronous-loading:

I don't think this is right. In those examples the item objects don't have a key or id property, so one does need to be supplied.

@devongovett thanks. I might very well misunderstood how this works. From what you are saying I understand that the system works like this…

the item component needs a key or id prop (one of them, not both)
the key/id can be provided by the data, in which case they will be added automatically
for this to work the item component needs to be a Item or GridListItem (or similar) which add those capabilities to add the key automatically
if the data does not have key/id, it is enough to add it as props to the item component
an alternative to both methods of providing a key is to use getKey (???)

This description sounds good to me but I am quite sure it is not how it is working ATM.  I have a demo in https://github.com/adobe/react-spectrum/issues/7176
I will be happy to test it out more and look for a way to clarify the docs given some hints / guidance.

I gave up getting this setup to work with my internal nuqs base state and switched to Framer Motion Reorder.
Therefore, I will close this given I will not have the time to look into it more. Maybe someone will search for it and can share their results at some point …


zopen cleanup ?

Having an option to cleanup / remove prior versions of installed tools would be nice.

There is a zopen clean now. If insufficient, please re-open with details.


Number format exception while creating inferred vectors from our own para vectors

//Created Para vectors using
WordVectorSerializer.writeParagraphVectors(paragraphVectors, filePath);
//Code for creating inferred vector
ClassPathResource resource = new ClassPathResource(myPath);
TokenizerFactory t = new DefaultTokenizerFactory();
t.setTokenPreProcessor(new CommonPreprocessor());
        // we load externally originated model
        ParagraphVectors pv = WordVectorSerializer.readParagraphVectors(myPath);
        pv.setTokenizerFactory(t);
        pv.getConfiguration().setIterations(1);

		bw=new BufferedWriter(new FileWriter(inferrVectorFile));
		bw.write("Doc id \t Label \t Vector \n");

		for (CustomLabelledDocument customLabelledDocument : datalist) {

			INDArray inferredVector = pv.inferVector(customLabelledDocument.getContent());

			bw.write(customLabelledDocument.getDocid()+"\t"+customLabelledDocument.getLabel()+"\t"+inferredVector+"\n");
			//System.out.println("Content:"+customLabelledDocument.getContent());
			System.out.println("Inferred Vector :" + inferredVector);

		}
		bw.close();

//Error
Exception in thread "main" java.lang.NumberFormatException: For input string: "News)"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.readWord2VecFromText(WordVectorSerializer.java:849)
at org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.readWord2Vec(WordVectorSerializer.java:785)
at org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.readParagraphVectors(WordVectorSerializer.java:699)
at org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.readParagraphVectors(WordVectorSerializer.java:686)
at org.deeplearning4j.examples.nlp.paragraphvectors.ParagraphVectorsClassifierExample.createInferredVectors(ParagraphVectorsClassifierExample.java:146)
at org.deeplearning4j.examples.nlp.paragraphvectors.ParagraphVectorsClassifierExample.main(ParagraphVectorsClassifierExample.java:127)

Please, show first 2 lines of your input file with saved model.

Method used for saving model...
public static void writeParagraphVectors(ParagraphVectors vectors, OutputStream stream) throws IOException {
ZipOutputStream zipfile = new ZipOutputStream(new CloseShieldOutputStream(stream));
    ZipEntry syn0 = new ZipEntry("syn0.txt");
    zipfile.putNextEntry(syn0);

Problem, surprisingly is your labels that contain spaces.

So yes, that's the roots of the issue. I'll add some form of encoding there, like base64, to make sure there'll be no issues like this in future.

Ohh yeah. You are right. I didn't notice this thing. It worked after removing labels with special chars. Thanks a lot.

Here's the test that reproduces issue: https://github.com/deeplearning4j/deeplearning4j/blob/3ed2fbba985ab02991df22962a55af61a71cd07d/deeplearning4j-nlp-parent/deeplearning4j-nlp-uima/src/test/java/org/deeplearning4j/models/WordVectorSerializerTest.java#L695-L695
Now i've added base64 encoding/decoding for labels during model save/restore, so this test passes.
Will be merged a bit later today.


Add support for \begin \end environments

Found a couple related issues and just wanted to add a central one to tie everything together:

align support https://github.com/Khan/KaTeX/issues/61
array support https://github.com/Khan/KaTeX/issues/47
matrix support https://github.com/Khan/KaTeX/issues/43

Is there somebody working on it?

Not that I know of, though @kevinb7 and @xymostech have given it some thought:
https://github.com/Khan/KaTeX/issues/43#issuecomment-55658982
https://github.com/Khan/KaTeX/issues/61#issuecomment-57091390

Can we close this, now that #246 has been merged?

I think we can close this because the infrastructure for \begin and \end.  We'll leave the other issues open that deal with specific environments.


TSP cost function

Hello folks, first of all thanks for your work. I have a question/concern regarding your get_costs function, in which I don't clearly get the computation of the cost of the tour. d1 makes perfect sense, but d2 seems to be wrong, as it should be similar to d1 (but having the tour from d1 shifted by one position to the right). From that code (in both branches), I don't see how the results of ~8 for TSP100 are achieved, given that I believe that you don't compute the correct tour cost.
It would be great, if you could clarify this :)
Best regards

Hi, there, thanks for your interest.
Please note that in our implementation, the solution is stored in a linked list format. Here, if rec[i] = j, it means the node i is connected to node j, i.e., edge i-j is in the solution. For example, if edge 0-1, edge 1-5, edge 2-10 are in the solution, so we have rec[0]=1, rec[1]=5 and rec[2]=10. Kindly see https://github.com/yining043/VRP-DACT/blob/new_version/Play_with_DACT.ipynb for an example at the end for TSP.

Thank you very much for clarification, that helped a lot. :)

Thank you very much for clarification, that helped a lot.  Also, welcome to explore our latest work: https://github.com/yining043/NeuOpt


Use Temp Bullet Train Testing orb to slim down CircleCI config

Using a dev orb before publishing:
orbs:
  bullet_train_testing: gazayas/bullet_train_testing@dev:30d314f312e1e4537a3b8d654ce0b29094240f69

We should be able to run this command for running minitests in the Starter Repo:
- bullet_train_testing/starter_repo_minitest:
    packageName: bullet_train-base
    knapsackPro: true
    parallelism: 16

@andrewculver
The test is failing because we need to opt in to use third-pary orbs.
This can be done by entering the organization settings in CircleCI, going to the Security tab and clicking Yes to allow uncertified orbs.
I would do this but I don't have the proper permissions 🙇♂

@gazayas Rebased this one and changed the configuration settings you asked for, so the failure here is probably legit. Will let you debug!

@andrewculver You're right, one of the scripts wasn't processing the same way it was in the original .circle/config.yml.
The only pitfall with developing orbs is that bash in the CircleCI orb development environment is handled really strictly. As long as we write things over there carefully, there shouldn't be an issue!
Here's the PR where I made the fix:

https://github.com/gazayas/bullet_train_testing-orb/pull/10


[SPARK-44959][BUILD] Upgrade sbt to 1.9.5

What changes were proposed in this pull request?
The pr aims to upgrade sbt from 1.9.3 to 1.9.4.
Why are the changes needed?
1.The 1.9.4 fix a security vulnerability:
CVE-2022-46751 is a security vulnerability discovered in Apache Ivy, but found also in Coursier.

2.Full release notes:
https://github.com/sbt/sbt/releases/tag/v1.9.4
3.v1.9.3 VS v1.9.4
https://github.com/sbt/sbt/compare/v1.9.3...v1.9.4
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.
Was this patch authored or co-authored using generative AI tooling?
No.

Scala 2.13 test seems to fail. Could you check it locally, @panbingkun ?

Please do not merge in until I confirm. I will carefully check and it seems to be a cache issue at first glance.

no problem with the local build, I think you can try again. @panbingkun

no problem with the local build, I think you can try again. @panbingkun

But I also had a similar issue with the local run, let me investigate it first.

It should be a cache issue with the Courier. When I delete 4.1.96.Final from the local mvn report and execute it again, the error disappears.

Oh, IIUC, although we cleared the cache, the last commit seems to show Scala 2.13 SBT failure still.

Yeah, Let me continue investigating it.

Thank you for retry. It seems that Scala 2.13 SBT still fails with useCoursier := false.

Can we try to delete ~/.cache/coursier/v1/https as well?

Gentle ping, @panbingkun . How do you want to proceed this?

Gentle ping, @panbingkun . How do you want to proceed this?

@dongjoon-hyun
Let me think carefully, We may need to put workflow scala-213 into the container run first, which is safer to delete some information, eg: rm -rf /home/runner/.m2

@panbingkun sbt 1.9.5 released: https://github.com/sbt/sbt/releases/tag/v1.9.5
Can you reuse this ticket to verify it?

@panbingkun sbt 1.9.5 released: https://github.com/sbt/sbt/releases/tag/v1.9.5
Can you reuse this ticket to verify it?

Okay, let me to verify it.

could you rebase this one ? @panbingkun

could you rebase this one ? @panbingkun
I have submitted a test on the latest master, but unfortunately it still has issues. I have identified the issue, but I need some time to see how to fix it reasonably.
https://github.com/panbingkun/spark/actions/runs/6294142093/job/17087611901

could you rebase this one ? @panbingkun
I have submitted a test on the latest master, but unfortunately it still has issues. I have identified the issue, but I need some time to see how to fix it reasonably.
https://github.com/panbingkun/spark/actions/runs/6294142093/job/17087611901

It appears that only lint-java downloads some jar files? Can we operate without using Maven cache? What would be the impact on performance?

https://github.com/panbingkun/spark/actions/runs/6294142093/job/17087611901

Its root cause is that if there is a corrupted jar in Maven's repo, the above problem will occur.  Currently, what I am looking for is a solution that does not affect run time, give me some time.

1.Before run, delete all Maven's repos

Does this equate to removing the Cache Maven local repository step in lint?

Its root cause is that if there is a corrupted jar in Maven's repo

I'm curious about this conclusion, why didn't the use of Maven to build java-other-versions trigger similar issues?


Added AEGIS.LiDAR and tests

Added new AEGIS.LiDAR project, which contains:

Spatial index structures for point clouds.
DEM (DSM, DTM, CHM) generation algorithms for airborne point clouds.
Outlier detection algorithms for point clouds.
Subsampling algorithms for pont clouds.

The AEGIS.IO project was extended with a LAZ format reader, wrapping the LASzip.Net library. (Version 3.2.9 RC3.)
Also added the AEGIS.Tests.LiDAR project for unit tests.

Thanks @krr0land for preparing this pull request, I have merged it 🚀
I decided to omit the MorphologicalDTM from the merge, as it was commented out, mentioning a compatibility issue, which you could not resolve. What was the problem there, maybe we can solve it and add it in another PR? (Although I see that it depended on OpenCV, which would be quite a heavy dependency just for some morphological transformation.)

Yes, OpenCV is a dependency of this class. I commented it out because I've encountered a compatibility issue between EmguCV and Unity, which I could not resolve in the given timeframe. I didn't originally develop this method, but still kept it in the project. We only used the morphological opening transformation from the OpenCV, so an alternative solution can be to implement this method manually and use that instead.


Provide simpler API?

I am struggling a bit with moving from 0.0.4 to 0.1.0 in monostable/kitnic. The last API was quite low level, and this one is too so there are lots of details to work out.
It would be nice if pcb-stackup had a higher level API and I was thinking about implementing it. This steals ideas from gerber-to-svg and provides a stream but also a callback API. pcbStackup would use whats-that-gerber if no layerType is provided but the user could also specify a layerType themselves. Using gerberToSvg would not be needed.
I have outlined what I am thinking so far in (pseudo) Typescript below just so we can easier talk about the types. I would still write it in ES5. The ? indicates an optional type that can remain undefined.

function pcbStackup (files : File[],  options? | callback?, callback?) : StackupStream;

interface File {
    data       : string | Buffer | stream.Readable;
    filename   : string;
    layerType? : string;
}

function callback (error : string, stackup : Stackup) : void;

interface Stackup {
    top    : string;
    bottom : string;
}

interface StackupStream {
    top    : stream.Readable;
    bottom : stream.Readable;
}

What do you think?

I'd definitely be down for a simpler API, and seeing as you're actually using this module in real life, I appreciate your opinions on it. Here are some initial thoughts on your proposal in no particular order:

Automatic filename -> type shouldn't be a problem (I think we already talked about this and I meant to do it? My bad)
I'd rather not have a streaming output from this, since the stackup function is not asynchronously consuming the streams, it's synchronously consuming the public properties of the finished converter streams

I'd totally be down for a callback + maybe a Promise interface, too

We need a way to pass options to gerber-to-svg, as well as a way to directly get at the output of gerber-to-svg
I'd also like to keep the ability to pass in gerber-to-svg converters directly

This is for quickly regenerating the stackup if one wants to switch out a single layer or change the colors or something
The stackup building is the quickest part of the process, so we don't want to do the work of converting the gerbers unnecessarily

So, maybe something along these lines? (Forgive me for any syntactical errors; I've never used Typescript so I have no idea what I'm doing)
function pcbStackup (layers : Layer[],  options? | callback?, callback?) : Promise[Stackup];

interface Layer {
    gerber     : string | Buffer | stream.Readable | GerberConverter;
    filename   : string;
    layerType? : string;
    options?   : GerberConverterOptions // maybe we can lump filename and/or layerType into here?
}

function callback (error : Error, stackup : Stackup) : void;

interface Stackup {
    top    : string;
    bottom : string;
    tcu    : GerberConverter,
    bcu    : GerberConverter,
    ...
}

Ok, great. I don't really know Typescript either but wanted some kind of standard for describing the types. I was mainly using this for reference. It doesn't matter anyway, as long as we understand each other.
So GerberConverter is a stream.Readable returned by gerber-to-svg right?
I can see the reasoning for the low-level api now, thanks for explaining where most of the computational time is spent. What if we call this re-usable object the cache and make it so it can be changed and passed back to pcbStackup
interface Stackup {
    top    : string;
    bottom : string;
    cache  : Layer[];
}

Something I forgot to ask: how does all this node streaming stuff work in the browser?

The Node streaming stuff works in the browser because, rather than depending on the built-in Node stream library, we depend on this npm-land copy instead.
By GerberConverter, yes, I meant the transform streams (that implement the stream.Readable interface) returned by gerber-to-svg.
I've been thinking about this over the past few days in terms of what I personally want/need as a consumer of this API, in order of importance:

Easy access to the top and bottom renders
Easy access to the individual layer streams so I can pipe the renders to places (e.g. S3) without having to wait for all of them (or the stackup) to finish
Easy access to render properties (e.g. size) of both the individual layers and the stackup outside of the SVG string

This is already included in the properties of the gerber converter
We should probably add some matching properties (width, height, and viewBox) to the Stackup return object

Other than (3ii), this currently can all be accomplished by wrapping the existing API in some extra logic. Anything you're looking for that's missing from this list?
As long as passing in GerberConverters is possible, I think I'm going to go back on what I said about wanting to return the individual layers in the Stackup object. If you pass in the GerberConverters directly, you have access to them, and if you don't need them, you don't need to worry.
So I think for Stackup we can go back to:
{
  top: string,
  bottom: string
}

I'm still waffling on what I think the Layer input should be:
{
  gerber: string | GerberConverter | stream.Readable // need to figure out how to differentiate these
  type: whatsThatGerber object | filename string
  options?: gerber-to-svg options if gerber is a string or filestream
}

I actually came around to the idea of having a cache. It lets pcb-stackup wrap the complexity of preparing all the data but also lets you cache and re-use it.
Right now my use-case is probably the simplest possible as I just have some gerbers and I want a render of the top and bottom. I don't actually need any of the other features yet so that's how I approached the API. As I develop my site I will likely need to make use of the caching so I would appreciate an easy path to level up.
It's totally about wrapping the existing API into something more approachable. I have started working on this by re-purposing your example code in kasbah/pcb-stackup-builder.
In regards to Layer type:

The GerberConverter type needs some sort of type id so we can tell that it's a stream of converted Gerber.
Providing a whatsThatGerber object instead of just a string of layer id would be annoying if you are not using whats-that-gerber. Not having to give a file name if you have already have a layer id would be really nice though. Maybe we could just use a type of  {layerId: string, filename: string} where you only have to provide one of the two.

We could just duck-type the GerberConverter (e.g. if it's got a pipe method it's a stream, and if it has parser and plotter properties it's probably a gerber-to-svg stream).
The reason I suggested either a whats-that-gerber object or a filename is because it's easy to check if the parameter is a string or an object, and act accordingly. And a whats-that-gerber object is just an object with an id key (name isn't used): {id: 'tcu'}, so actually using whats-that-gerber isn't necessary if you don't want to.
Also, just to make sure we're on the same page, are we talking about modifying the API of this library or about creating a new package that wraps this library?

Oh, and for reference, I was messing around this weekend and this was the simplest render board function I could come up with:
const gerberToSvg = require('gerber-to-svg')
const whatsThatGerber = require('whats-that-gerber')
const pcbStackup = require('pcb-stackup')
const shortId = require('shortId')

renderBoard: function(gerbers, options, done) {
    const layers = []
    const stackupOptions = Object.assign({
      id: shortId.generate()
    }, options)
    let layerCount = gerbers.length

    const finishLayer = () => {
      if (--layerCount === 0) {
        const stackup = pcbStackup(layers, stackupOptions)
        done(null, stackup)
      }
    }

    gerbers.forEach((gerber) => {
      const type = whatsThatGerber(gerber.filename)
      const options = {
        id: shortId.generate(),
        plotAsOutline: type.id === 'out'
      }
      const converter = gerberToSvg(gerber, options, finishLayer)

      layers.push({type, converter})
    })
  }
}

Where gerbers is an array of objects that are readable streams or strings with a property filename (this is adapted from a Hapi route handler, hence that interface, but you get the idea)

Yes, I am suggesting it for inclusion in pcb-stackup and that renderBoard looks pretty close to what the function would be. You could probably write it much faster than I could but I don't mind doing it.
The id thing is just a bit awkward either way, I would pass in an object with fields for both just for symmetries sake but it's not hugely important.
What's your final verdict on the cache thing?

If you think it's going to be helpful down the road for you I say go for it. I would probably just call it layers, though. We can either stick the entire converter in the output, or we can just copy the needed properties (defs, layer, viewBox, width, height, and units). I'd be more down for the latter, because it'll be easier to stick that into some sort of database (e.g. redis) and it'll be easier to differentiate a cached object from a new GerberConverter stream.
Yeah, the whats-that-gerber API I did at like 3AM the other day, so any suggestions to decrease the awkwardness are appreciated 😃 . I'm also toying with the idea of putting the layer type in the gerber-to-svg converter somehow (because the latest Gerber spec allows the inclusion of meta-information like layer type).
I just gave you write access to this repo if you wanna start playing around in a branch!

I've got API changes that I think will help this open at mcous/gerber-to-svg#29 and tracespace/whats-that-gerber#2

Yeah, I saw the progress on those. I am not sure when I'll have time to work on this again so if you do want to implement it yourself instead of waiting around for me I wouldn't be disappointed.

Should I write this in ES5 or Coffeescript?

If it's going in this module, please keep it ES5. If it's a wrapper module,
go wild! I've personally moved away from coffeescript for various reasons,
so my general preference is ES5 (it also makes test / coverage tooling and
npm install from GitHub way easier)
On Jun 4, 2016 1:52 PM, "Kaspar Emanuel"<EMAIL_ADDRESS>wrote:

Should I write this in ES5 or Coffeescript?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tracespace/pcb-stackup/issues/11#issuecomment-223769029,
or mute the thread
https://github.com/notifications/unsubscribe/AC03-Lu-54F5knimXEvqqfR6E9E_1bvGks5qIbt5gaJpZM4IY_PI
.

Ah yes, of course, turns out I was looking at an older version of pcb-stackup code and somehow thought this wasn't ported to ES5 yet.

Ok, so Promise is actually ES6 which we defined as our return type above. What do you want me to do with that?

Oh, at the time I was playing around with Promises via Bluebird. Seeing as (at 52.7 K minified) Bluebird is relatively heavy, I think it's fine just to do a normal callback interface with a note in the docs saying that one can promisify the function if a Promise interface is needed.


Can't call to HTTPS

HTTPS://api.lifx.com:443/v1beta1/lights.json and https://api.lifx.com/v1beta1/lights.json wont work
no request will be send. (Connection failed)

HTTP://api.lifx.com:443/v1beta1/lights.json returns 400 Bad Request (which is good)

controller
        $url = "https://api.lifx.com:443/v1beta1/lights.json";
        $result = $this->get('api_caller')->call(new HttpGetJson($url, array()));

HttpGetJson
class HttpGetJson extends CurlCall implements ApiCallInterface
{
    /**
    * {@inheritdoc}
    */
    public function generateRequestData()
    {
        $this->requestData = http_build_query($this->requestObject);
    }

    /**
     * {@inheritdoc}
     */
    public function parseResponseData()
    {
        $this->responseObject = json_decode($this->responseData, $this->asAssociativeArray);
    }

    /**
     * {@inheritdoc}
     */
    public function makeRequest($curl, $options)
    {
        $curl->setopt(CURLOPT_URL, $this->url.'?'.$this->requestData);
        $curl->setopt(CURLOPT_HTTPHEADER, array('Content-type: application/json'));
        $curl->setoptArray($options);
        $this->responseData = $curl->exec();
    }

}

When i use the direct way it will work just fine (returns a 401 error cause we're not sending our api key along)
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, 'https://api.lifx.com:443/v1beta1/lights.json');
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
        curl_setopt($ch, CURLOPT_GET, 1);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

        $result = curl_exec($ch);

What are the options set at? Maybe verify peer is on? You may want to debug curl. See: http://stackoverflow.com/questions/3757071/php-debugging-curl

I ran into this same issue sending a request to my development server, which just has the snakeoil cert.  You have to also set the CURLOPT_SSL_VERIFYHOST to false.  Update your config.yml like so:
parameters:
    api_caller.options:
        ...
        ssl_verifypeer: false # to stop cURL from verifying the peer's certificate.
        ssl_verifyhost: false

To expand on @mevdschee's comment, you can capture the curl logging info with the method from his link by temporarily changing HttpGetJson::makeRequest() like so (using Symfony's debug method):
        $curl->setopt(CURLOPT_URL, $this->url.'?'.$this->requestData);

        // set up debug
        $options[CURLOPT_VERBOSE] = true;
        $verbose = fopen('php://temp', 'w+');
        $options[CURLOPT_STDERR] = $verbose;

        $curl->setoptArray($options);
        $this->responseData = $curl->exec();

        // dump debug
        rewind($verbose);
        dump(stream_get_contents($verbose));

or just log to a file like so:
        $curl->setopt(CURLOPT_URL, $this->url.'?'.$this->requestData);

        // set up debug
        $options[CURLOPT_VERBOSE] = true;
        $verbose = fopen('/home/path/to/myfile.log', 'w+');
        $options[CURLOPT_STDERR] = $verbose;

        $curl->setoptArray($options);
        $this->responseData = $curl->exec();

in my config
#sslversion: 3
or remove this parameter

To follow up on @mevdschee's debug idea, recent updates allow setting of the caller options, so you can debug in your application without messing with the package files.
    $apiCaller = $this->get('api_caller');
    $verbose = fopen('/path/to/myfile.log', 'w+');
    $apiCaller->setOption('verbose', true);
    $apiCaller->setOption('stderr', $verbose);

NB: In v1.2.0 you can also pass options in the constructor

@mevdschee, this is true, but in the context of Symfony and using this bundle as a service, the options being passed to the construct are what you have set up in your config.yml.  To set options dynamically using the constructor, you'd have to create a whole new instance, pass in the logger service, and set all the other options from the configs.  You're then losing the ease of just getting the service.

@iisisrael, check the v1.2.0 of Call/CurlCall.php and you will see what I mean.

Oh, that constructor.  Silly me.  I missed seeing that since I just referenced the ApiCallInterface which doesn't include that last parameter.

Well, it is brand new, so I expected you to not know about it :-)

@LauLaman Can you tell me whether v1.2.0 fixes your problems?

Closing due to inactivity

@mevdschee Hi, sorry to pull back this issue from the dead... but I'm having the same behaviour.
The HTTP request is working beautifully and the HTTPS one is absolutely (returning a 0: connection failed each time).
If I try directly in the browser I have a proper response even with https... How to get around this issue?
Here is my call
return $this->apiCaller->call(new HttpGetJson($url, new Request(), false, $options))
$options being here just setting up some HTTP header for a token connection.
$this->apiCaller is the apiCaller service but which is used in another service inside my application

Hi yalit. It probably has to do with the curl version and the cipher settings. Can you try a php curl hello world example? Like this one, but then with https?
http://php.net/manual/en/curl.examples-basic.php
Let me know whether or not that works.

It may have to do with #30

Hi,
I've tried indeed the sample below and it works perfectly (I receive a proper error due to missing header information but I can connect)

De : Maurits van der Schee<EMAIL_ADDRESS>Envoyé : mercredi 23 août 2017 22:21
À : LeaseWeb/LswApiCallerBundle
Cc : Yannick Alsberge; Comment
Objet : Re: [LeaseWeb/LswApiCallerBundle] Can't call to HTTPS (#16)
Hi yalit. It probably has to do with the curl version and the cipher settings. Can you try a php curl hello world example? Like this one, but then with https?
http://php.net/manual/en/curl.examples-basic.php
Let me know whether or not that works.

You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/LeaseWeb/LswApiCallerBundle/issues/16#issuecomment-324451192, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADKSxk1-62UWmyx7oruKVkGsHS4IGqz1ks5sbInWgaJpZM4Dfz40.

Okay.. I it has to do with the ssl_version in the config.yaml. I did a PR and I hope somebody will merge it and release a new version.
For now you should adjust your config accordingly:
https://github.com/LeaseWeb/LswApiCallerBundle/pull/34/commits/4e9e734f2ef488b2f85fc4612e5702f6ca1ef6c1

Hi,
thanks for the swift answer... I've updated the config and it indeed works. By the way only removing the ssl_version is sufficient (I kept the ssl_verifypeer and that works now)
Thanks a lot

Thank you for your feedback. Glad it worked. Please up-vote the PR, so others can benefit as well.


metadata drawer

when an arrow icon on a result in the results table is clicked a drawer component should slide out to the right of the table. Drawer will contain meta data for selected raster.
component should be a molecule and will need to include all meta data except the data cited in #49

Table of key/value pairs and a thumbnail for Raster data


Transfer of repository to organization without permissions

At this moment a repository can be moved to any user, without any permission check.
It should only be possible to move a repository to an organization a person is member of, or from an organization to ones own account.

Gogs missing one step right now that I know receiver should have to confirm before transition is done. After that, the ownership check wouldn't be necessary.


check some conditions before login

hi dear developers, actually in my project i need to check some conditions before return token to user in token_auth mutation
like this :
if not user.is_blocked:
# return Token
somthing like this
what should i do ?  :)

You could subclass the mutation and add your own logic to the resolver. I.e. something like this:
from graphql_jwt import JSONWebTokenMutation

class ObtainJSONWebToken(JSONWebTokenMutation):

    @classmethod
    def resolve(cls, root, info, **kwargs):
        if not info.context.user.is_active:
            raise PermissionDenied("Permission denied")

        return cls()


Spatial LRS Changes Commit 1

This is a stage one commit to visualize the structural changes made in the code base to categorize core source, unittest, unittest-ddd and unittest-extension projects.
This is an intermediate change for the LRS implementation and the completed changes can be viewed in the following PR
As git has it own way (can be configured in git hub; ref: reference) of detecting whether a file is renamed or deleted and added as a new file.
If the changes are huge; git considers it as deletion and addition of new file; it doesn't consider it to be a move.
If the changes are minimal; then git considers it as rename\move.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: nandhakumararulanandam sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Unable to access raw packet data using advertisment.raw_data

In this post:
https://groups.google.com/g/python-bleson/c/xBG-kwWLkV0
you reference advertisement.data_raw. However when I try to get this raw data, all I get back in an empty object. How do you access the raw advertising string. I am using:
bleson in /usr/local/lib/python3.8/dist-packages (0.1.6)
on Ubuntu 20.04.1 LTS
This is the output:
BDAddress('F6:90:1E:17:5E:01') None
BDAddress('F6:90:1E:17:5E:01') None
BDAddress('52:F8:2D:75:69:61') None
BDAddress('22:5C:63:0B:97:C0') None
BDAddress('6E:46:35:6A:70:30') None

from sample basic_observer.py set to show advertisement.raw_data:
#!/usr/bin/env python3

import sys
from time import sleep
from bleson import logger, get_provider, Observer

# Get the wait time from the first script argument or default it to 10 seconds
WAIT_TIME = int(sys.argv[1]) if len(sys.argv)>1 else 10

#logger.set_level(10)

def on_advertisement(advertisement):
    print(advertisement.address, advertisement.raw_data)

adapter = get_provider().get_adapter()

observer = Observer(adapter)
observer.on_advertising_data = on_advertisement

while True :
    observer.start()
    sleep(WAIT_TIME)
    observer.stop()
    print(80 * "*")

Thanks for your work and help!
Dave Proffer

Hi, honestly I’m at a bit of a loss as to why you aren’t getting the data as Linux is the ‘strongest’ platform. But when I say Linux I’m only referring to Raspbian.
My gut feeling is stop the Bluetooth daemon and retest. It’s just a hunch. I don’t have anything to hand to reproduce unfortunately.

Hi Wayne,
Thank you for your follow up.
I tried the following and no difference. Is this what you mean by 'stop the Bluetooth daemon'?
sudo systemctl stop bluetooth

sudo systemctl status bluetooth

● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Sun 2020-10-18 18:35:56 PDT; 48s ago
       Docs: man:bluetoothd(8)
    Process: 1490365 ExecStart=/usr/lib/bluetooth/bluetoothd (code=exited, status=0/SUCCESS)
   Main PID: 1490365 (code=exited, status=0/SUCCESS)
     Status: "Powering down"

Oct 18 18:35:56 ubuntu-macmini2012 bluetoothd[1490365]: Terminating
Oct 18 18:35:56 ubuntu-macmini2012 systemd[1]: Stopping Bluetooth service...
Oct 18 18:35:56 ubuntu-macmini2012 bluetoothd[1490365]: Endpoint unregistered: sender=:1.69 path=/MediaEndpoint/A2DPSink/sbc
Oct 18 18:35:56 ubuntu-macmini2012 bluetoothd[1490365]: Endpoint unregistered: sender=:1.69 path=/MediaEndpoint/A2DPSource/sbc
Oct 18 18:35:56 ubuntu-macmini2012 bluetoothd[1490365]: Endpoint unregistered: sender=:1.69 path=/MediaEndpoint/A2DPSink/sbc
Oct 18 18:35:56 ubuntu-macmini2012 bluetoothd[1490365]: Endpoint unregistered: sender=:1.69 path=/MediaEndpoint/A2DPSource/sbc
Oct 18 18:35:56 ubuntu-macmini2012 bluetoothd[1490365]: Stopping SDP server
Oct 18 18:35:56 ubuntu-macmini2012 bluetoothd[1490365]: Exit
Oct 18 18:35:56 ubuntu-macmini2012 systemd[1]: bluetooth.service: Succeeded.
Oct 18 18:35:56 ubuntu-macmini2012 systemd[1]: Stopped Bluetooth service.

sudo ./test.py

BDAddress('64:71:EE:D5:6B:3E') None
BDAddress('11:5B:9C:D6:03:34') None
BDAddress('EB:33:5C:1D:ED:E8') None
BDAddress('1F:93:D7:7C:08:24') None
BDAddress('C8:69:CD:31:FF:F5') None
BDAddress('C8:69:CD:31:FF:F5') None
BDAddress('5A:50:55:87:CC:F2') None
BDAddress('66:66:A3:06:91:C9') None
BDAddress('6E:46:35:6A:70:30') None
BDAddress('6E:46:35:6A:70:30') None

@deepcoder Something I found to be weird is that raw_data is not set during parsing, you need to set it after the fact.
In the Linux adapter, before on_advertising_data callback is executed, the data is parsed by AdvertisingDataConverters.from_hcipacket, which breaks down the packet in from_hcipayload but does not set raw_data.  If you want to see this value, enable debugging but the parsed values are likely going to be the most use for you.

Hi @Thrilleratplay and @WayneKeenan ,
@WayneKeenan I tried sudo pip3 installing bleson on Ubuntu 18.04.5 LTS (Bionic Beaver) and Raspbian GNU/Linux 9 (stretch), both behave the same, aka no raw packet data.
@Thrilleratplay  thanks for your answer and information! I'm not sure I fully understand when you say ' you need to set it after the fact.' ?
Is this something I can do in my code (if so how?), or are you saying that the BLESON module has a bug and does you set raw_data (and so BLESON needs a fix?)?
All that said, based on your further point to turn on logging to level DEBUG, I see that the raw advertising packet appears to be sent out in the logging stream. So a little ugly BASH code:
sudo ./test.py 2>&1 >/dev/null | grep -A 2 "LE Advertising Report" | cut -c 93-
yields the following output which I think is the raw data I am looking, TBD. FYI, I want to see the raw data just for my owned education, to get a better grasp on the various types of packets bluetooth sends around. Thank you for your help! Dave
output from above:
LE Advertising Report
Data: 01 02 01 e1 68 42 46 a3 69 1c 03 03 9f fe 17 16 9f fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b5
POS : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
LE Advertising Report
Data: 01 03 01 24 08 7c d7 93 1f 0f 02 01 1a 0b ff 4c 00 09 06 03 85 c0 a8 02 f4 b7 POS : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
LE Advertising Report
Data: 01 00 01 77 f9 a5 df 9e 47 11 02 01 1a 02 0a 0c 0a ff 4c 00 10 05 01 14 79 9f 6c c1 POS : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
LE Advertising Report
Data: 01 00 01 c7 9f 0a c9 89 4a 12 02 01 1a 02 0a 0c 0b ff 4c 00 10 06 03 1d 49 b3 50 08 ba POS : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

@deepcoder Sorry, I should have been clearer.  One would assume, I did and apparently you did as well, that raw_data would be set while defining the advertisement object.  When searching for raw_data in this project, the only place I found where it is used is in the eddystone beacon code where the value is manually set to an encoded url.  If I understand it correctly, raw_data is used when transmitting data but not observing.  I do not think it is a bug as it seems to be done one purpose; if you look at from_advertisement in type converters raw_data is the only thing returned in an advertisement returned when defined and searching for from_advertisement  it is only used when the interface is advertising.
The lines that are prefixed Data: are a hex string representation of the hci packet.  I think using advertisement.__dir__ in your on_advertisement method will display all of the keys in the collections.  Iterating through this information will likely yield the parsed values you are ultimately looking for.

I look at making it simple to access the underlying raw data in client code, apologies as I hadn't looked at the code base in a while.


⚠ Bofrost.lu has degraded performance

In 6f1463b, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 960 ms

Resolved: Bofrost.lu performance has improved in 6c21019 after 29 minutes.


proTES TLS ingress support

Add support for TLS termination for both the flower deployment
and proTES. Helm conditionals had to be used since the Ingress
objects definitions vary depending on the Ingress controller
which is on the target cluster. For OpenShift we use Route objects
and for Kubernetes we use Ingress objects.
The cluster type is defined under values.yaml, the possible values
are either 'openshift' or 'kubernetes'.
The documentation has been updated accordingly.

Sounds great!


Platform working in standalone Homebridge but not within systems

Hello,
I recently added the HarmonyHub platform (found here).
I add to change permission to NPM by following the Option 2 in this tutorial
I modified the config.json find under ~/.homebridge/config.json like so :
{     "bridge": {         "name": "Homebridge",         "username": "CC:21:3E:E4:DE:37",         "port": 51826,         "pin": "031-45-154"     },     "description": "Configuration file for (e)xtended Domoticz platform.",     "platforms": [         {             "platform": "eDomoticz",             "name": "eDomoticz",             "server": "<IP_ADDRESS>",             "port": "8080",             "ssl": 0,             "roomid": 0,             "excludedDevices": []         },         {             "platform": "HarmonyHub",             "name": "Harmony Hub"         }     ],     "accessories": [] }
When I launch Homebridge by typing homebridge, everything works like a charm.
BUT
I always used Homebridge like a system daemon by following the wiki tutorial.
I did cp the config.json above in /var/lib/homebridge/config.json
When I sudo systemctl restart home bridge.service I get an error in the journal : "The requested platform '" + name + "' was not registered by any plugin."
I would like to add that it work when I remove the HarmonyHub platform.
Any thoughts ?

It looks like HarmonyHub platform is not installed at the expected location...Can you check where HarmonyHub plugin is being installed?

Sorry if I ask a newbie question, but I can I do that ?

Found it under /home/pi/.npm-global/lib/node_modules

Did you install the Harmony plugin by using the -g operator? It looks like you have installed it "locally" so it will not be found by the system daemon. Try the following:
# This should not work - if it uninstalls it was locally installed
npm uninstall homebridge-harmonyhub

# Try to install it global
npm install -g homebridge-harmonyhub

# If it still not works you can try also
npm install -g --unsafe -perm homebridge-harmonyhub

I post the same answer here as in the platform GitHub, maybe someone else has an idea :
Hi,
Thanks for the reply. I did try to uninstall locally without any success. I uninstalled globally and then tried both installation commands (and uninstalling again in between).
I still have the same error...


bump listendev action to v0.2.0

Hello there!
Just making sure that this repo makes use of the latest version listen.dev action.
I'll keep an eye in case anything needs a fix.

Thanks!


Consider caching sqlx-cli on ci worflows

The current step to install sqlx-cli with cargo will download/compile the binary every job run, which takes a considerable amount of time. Since the binary is the same in each run, it could be cached with actions/cache, based on the desired version and features as key. Changes that could be made for each job that uses sqlx-cli are the following:

Add two job level environment variables:

env:
  # ...
  SQLX_VERSION: 0.5.5
  SQLX_FEATURES: postgres

Add cache step for sqlx-cli, bases on version and features:

steps:
  # ...
  - name: Cache sqlx-cli
    uses: actions/cache@v2
    id: cache-sqlx
      with:
        path: |
          ~/.cargo/bin/sqlx
        key: ${{ runner.os }}-sqlx-${{ env.SQLX_VERSION }}-${{ env.SQLX_FEATURES }}

Conditionally installs sqlx-cli if cache misses:

steps:
  # ...
  # name: Cache sqlx-cli
  # ...
  - name: Install sqlx-cli
    uses: actions-rs/cargo@v1
    if: steps.cache-sqlx.outputs.cache-hit == false
    with:
      command: install
      args: >
        sqlx-cli
        --force
        --version=${{ env.SQLX_VERSION }}
        --features=${{ env.SQLX_FEATURES }}
        --no-default-features
        --locked

Cuts off 4~5 min from the CI workflow run, helps a lot going through the book.
What do you think? Would you be interested in reviewing a PR?
ty!

That would be much appreciated!

Closing now that this has been fixed in all chapters!


bugfix ignore null profile to avoid bug

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


Intended usage is unclear

In considering this for addition in vcpkg it is unclear where the header should be installed: https://github.com/microsoft/vcpkg/pull/35995
The readme says #include "lzav.h" (with "s) which usually means the header will only be found if it is in the same directory as the compiled .cpp.
Might I suggest #include <lzav.h> or #include <lzav/lzav.h>?

I can't give a definitive suggestion here, as this depends on vcpkg design guidelines (e.g., requirement of inclusion of upstream readme and license files), which I do not know. For sure, lzav is going to remain a single header file project - that's one of its advantages over the competition.

I can't give a definitive suggestion here, as this depends on vcpkg design guidelines (e.g., requirement of inclusion of upstream readme and license files),

"How you expect your customers to #include you" is up to you, not to vcpkg. It's our job to make sure headers are put in the right place such that we respect your wishes on that.
If you expect customers to say #include "lzav.h" then you have doomed those customers to an ABI mess as you've forced every customer to vendor the header inside themselves. As soon as 2 customers do this, the result doesn't safely link unless everyone vendored the same version.
If you expect customers to say #include <lzav.h>, then everyone can use the same version (and we install to include/lzav.h).
If you expect customers to say #include <lzav/lzav.h>, again everyone can use the same version (and we install to include/lzav/lzav.h).

I give #include "lzav.h" as example, because #include <lzav.h> implies that the header is universally-accessible which may not be so in a particular case, at this stage of project's publicity. I can't think of ABI issues if a library user uses a certain package manager to install LZAV. #include <lzav.h> looks clearer as #include <lzav/lzav.h> implies some other headers may be available.


Signal aspects

Added 3 aspect signals
Added 4 aspect signals
Refactored the render signal code
Still needs crafting recipes

Update: Added 4 Aspect Signals


docs: minor spelling tweaks

Thank you!
Just a check I have to do: have you signed the CLA?
https://github.com/deepmind/jraph/blob/master/CONTRIBUTING.md

@jg8610 Yes, if you mean the standard Google CLA!

Thank you!


Use the constant as the caller of the equals method to prevent null p…

…ointer exceptions and extract strings as variables

把常量作为equals方法的调用者，防止空指针异常,抽取字符串作为变量

thanks for ur contribution , bro !
but dev-db is the latest branch in development, so try that branch .

This is my first PR, thank you very much friends

@zzq1314zll , I saw this pr very later,  I'm sorry.
for now, MonitorDBDao.java has changed a lot,  I have to close this pr.
but I want to say thanks for your contribution.  I am still looking forward to your next contribution.  if you submit a pr, please let me know.
sorry again!


deps: Upgrade Flutter to 3.25.0-1.0.pre.41

And update Flutter's supporting libraries to match.
Also removed a piece of documentation on upgrading Flutter on running tools/checks.

(The merge here involved some unintended pushes and didn't remain. This PR was replaced by #899, which is now merged.)


Avoid configuring SyncBatchNorm when not fitting

Proposed refactoring or deprecation
Conditionally configure syncbatchnorm in distributed plugins
Motivation
This issue is closely related to https://github.com/PyTorchLightning/pytorch-lightning/issues/6977
Carrying forward discussion from https://github.com/PyTorchLightning/pytorch-lightning/pull/9096
Related issue in PyTorch: https://github.com/pytorch/pytorch/issues/48988
SyncBatchNorm doesn't sync stats when used under eval mode. We can conditionally check for whether to configure this if we're fitting vs validating/testing/predicting.
Pitch
Conditionally determine whether to configure syncbatchnorm in the module here: https://github.com/PyTorchLightning/pytorch-lightning/blob/a451997c4da89be3b1e4f7f79b52015bd32f2ea4/pytorch_lightning/plugins/training_type/ddp.py#L384-L387
Essentially rewrite this
        if self.sync_batchnorm:
            self.model = self.configure_sync_batchnorm(self.model)

        # skip wrapping the model if we are not fitting as no gradients need to be exchanged
        trainer_fn = self.lightning_module.trainer.state.fn
        if trainer_fn == TrainerFn.FITTING:
            self.configure_ddp()

as this
        # skip wrapping the model if we are not fitting as no gradients need to be exchanged
        trainer_fn = self.lightning_module.trainer.state.fn
        if trainer_fn == TrainerFn.FITTING:
            if self.sync_batchnorm:
                self.model = self.configure_sync_batchnorm(self.model)
            self.configure_ddp()

Additional context

If you enjoy Lightning, check out our other projects! ⚡

Metrics: Machine learning metrics for distributed, scalable PyTorch applications.

Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, finetuning and solving problems with deep learning

Bolts: Pretrained SOTA Deep Learning models, callbacks and more for research and production with PyTorch Lightning and PyTorch

Lightning Transformers: Flexible interface for high performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.

Hey @four4fish,
Do you see any situations where users might want to update their BatchNorm stats on the validation dataset in a distributed way. If not, I think it is a good proposal.
Best,
T.C


signup cannot be done

Expected content
signup should be done
Actual content
cannot signup . checked the inspector and in the firefox console this is the error message
Access to manifest at 'https://sendgrid.com/brand/favicons/manifest.json' from origin 'https://signup.sendgrid.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Link to page:
https://signup.sendgrid.com/

I tried to signup in chrome and when I clicked the "I'm not a robot" checkbox The following error shows in the console:
Access to fetch at 'https://api.sendgrid.com/v3/public/s2s/signup/recaptcha_verify' from origin 'https://signup.sendgrid.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Hello @Manimojy
We're sorry you had this issue! We missed this at the time. Since this is not a docs-related issue, we hope you were able to contact our Support team directly for help. You can always access support contact options by logging into https://support.sendgrid.com.
Twilio SendGrid Docs Team


Added overflow hidden to resolve border radius conflicts

Issue
Modal by default does not include overflow:hidden. This can cause a conflict with the border radius on modal-body if any part of the modal background color is changed.
Example
When .modal-content background is white, changing any other part of the modals background color such as Header or Footer it disabled the border radius, visually.
Fix
Adding overflow:hidden to .modal-content does not create any conflicts with existing code but it does resolve instances when the modal header, footer, and body are not the same color.
Screenshots

This would crop any tooltips, popovers, or dropdowns within the modal footer. Thanks, but we'll pass on this suggested solution.


Treats all strings as the string <string>

const diff = require('diff-json-structure')
const delta = diff(['foo'], ['bar'])
console.log(require('util').inspect(delta, { depth: null }))

Running the above code, logs this to the console
[ { value: '[\n  "<string>"\n]', count: 3 } ]

If I just use diff.diffJson directly, everything works as intended:
[ { count: 1, value: '[\n' },
  { count: 1, added: undefined, removed: true, value: '  "foo"\n' },
  { count: 1, added: true, removed: undefined, value: '  "bar"\n' },
  { count: 1, value: ']' } ]

As I said, if you call diff.diffJson directly, everything seems fine, so the problem seems to be caused by
mapToType. I already took a look at it but didn't see what's wrong nor what it's supposed to do in the first place.

Or is this tool actually supposed to only compare types?

@raphinesse yes that right, it diffs new items, delete items or changes in item types. If that's not clear in the readme, perhaps it should be more clearer.

I just now noticed, that the examples only have types compared, too. I actually thought this was a "normal" object diff tool. So yes, I think it would be helpful to clarify the goal/intent of this tool in a sentence or two at the beginning of the Readme.
Sorry for bothering you and thanks for taking your time to reply.


Add build version output to programs/ssl ssl_client2/ssl_server2

Suggested enhancement
Please generally add the build version to the output of ssl_client2 and ssl_server2.
Maybe additionally, if "build-version=1" is given, prints the build version only an stop.
Justification
I would like to use these both binaries to ensure DTLS interoperability with Eclipse/Californium (see my pending PR 1882 there).
Using the build version makes it much easier to adapt such interoperability test according the usable functions of each build version. It also helps in case of reported issues to know the build version.

Hi!
I am unsure what the priority of this would be for the team, but in the meantime, I invite you to submit a PR implementing this, as this would be the quickest way of achieving this.
Also, I am sure you are aware but as yet, we do not support DTLS1.3, however this is on the roadmap for the near future.

I am unsure what the priority of this would be for the team, but in the meantime, I invite you to submit a PR implementing this, as this would be the quickest way of achieving this.

Thanks for your answer! It's no problem, if it takes longer.
(For me it requires the permission for contribution of my employer, that would take even longer :-). Time I better spend in Eclipse/Californium).

Also, I am sure you are aware but as yet, we do not support DTLS1.3, however this is on the roadmap for the near future.

For Eclipse/Californium it was frequently requested, but not that frequently.
For now, I don't see, that the current committer team of Eclipse/Californium will be able to provide a implementation in a near future. So we will see, how long it takes ;-).

An extra thought I had - if you are compiling the executables (which I presume you are), then its possible you could work around by parsing version.h to find the given version, in the mean time.

if you are compiling the executables

Sure, and I know the version. So, I personally don't need to read that version from the output.
In fact I'm using PR #5061 in order to test the compatibility according (upcoming) RFC9146, with that, my version will be anyway a wrong one.
I also don't know, If someone else will really try to use the Eclipse/Californium - Interoperability Tests to ensure, that a special use-case/parameter-set or a future update is working. Therefore, it's not that urgent.
But in the end, I think, it will be also valuable for mbedTLS, if that version is printed.
(Sometimes I'm not sure, why adding four lines to a demo takes in some projects longer discussions than it would take to add them. At least for the project I work for, I also like, if someone contributes something. Bur for the very small stuff, it's also OK for me to add that by myself. )

The related PRs #6580 and #6436 has been merged


Project1 review by Codist

UI looks fantastic.
I didnt understand why logging service was made talking to the Radar Service( Node.js ), i think it could be a general service if made communication with api gateway.
Session-maintainance process is really impressive.
I am particularly impressed by the choice of databases for the specific purposes.

Thanks for the feedback.
Regarding point 2 we are planning on using the logging service as a common tool for application log processing as well. Currently, this felt like an easy way to achieve this. But yeah, it is a bad choice.
Thank you,
Pramod, Team Epsilon


change .utcnow() to .now(datetime.timezone.utc) to fix UTC timestamps

Description
Update all calls to utcnow to use the timezone-aware now(datetime.timezone.utc)
General Checklist

[x] Tests added for this feature/bug
if it was a bug, test must cover it.
[x] Conform by the style guides, by using formatter
[x] Documentation updated
[x] (optional) Please add a label to your PR

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

5 of 6 (83.33%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 81.533%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/whylogs/mlflow/model_wrapper.py
0
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3620

Relevant Lines:
4281

💛  - Coveralls


Update implementing-controls-using-typescript.md

Moved npm run refreshTypes command step to after editing the manifest file.

Learn Build status updates of commit a651d3d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

powerapps-docs/developer/component-framework/implementing-controls-using-typescript.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Will fix via other means


close https://github.com/fengkx/jieba-wasm/issues/5

Closes #5

I understand bundler like webpack and runtime like Node.js can resolve exports field in package.json. But how can typescript know which platform I am using know. There is a moduleDetection configuration in tsconfig.json. If nodenext is set it now resolve the exports field, But will it eventually resolve to the entry point of Node.js?

I understand bundler like webpack and runtime like Node.js can resolve exports field in package.json. But how can typescript know which platform I am using know. There is a moduleDetection configuration in tsconfig.json. If nodenext is set it now resolve the exports field, But will it eventually resolve to the entry point of Node.js?

TypeScript release 5.0 and support moduleresolution: bundler and customConditions
ref: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#--moduleresolution-bundler

Merged, Thanks. I will publish a new version after I tested in a real project


Integrate the Firewall Scanner with Inventory 2.0

This makes the firewall scanner to work with the new data model provided by Inventory 2.0.  Test is pending until the overall work here is LGTM.
One main change is that I added a custom function to do ancestor lookup by parsing the hierarchical name provided in the data model, since the the data access is not available to look up individual resource data model.  Hope this is an acceptable compromise until auditor comes online.
Example of a hierarchical name:
organization/88888/project/myproject/firewall/99999/

This change is

/pr test is failing because tests.iam.utils.db has moved to tests/services/utils.  I'll fix this when I sync before merging.

Review status: 0 of 26 files reviewed at latest revision, 5 unresolved discussions, some commit checks failed.

google/cloud/forseti/common/data_access/org_resource_rel_dao.py, line 129 at r4 (raw file):
Previously, mwwolters wrote…
This method feels like it should be more generic than for just firewall rules, perhaps pass in the hierarchical name instead?

Excellent prescriptive advice: Done!

google/cloud/forseti/common/data_access/org_resource_rel_dao.py, line 139 at r4 (raw file):
Previously, mwwolters wrote…
Why not just:
hierarchical_name_parts = hierarchical_name.split('/')[:-1]
since you don't use hierarchical_name after that.

I broke this into a separate line, so that the operation to strip the trailing '/' is clear on its own.  I could combine the 2 steps, but it will be harder to decipher.  So, I will keep the operations separate.

google/cloud/forseti/services/scanner/service.py, line 68 at r4 (raw file):
Previously, mwwolters wrote…
Having SERVICE_CONFIG as None and requiring it to be set externally feels weird to me. Have you considered making a scanner object where you have to set the config?

Done.

Comments from Reviewable

Review status: 0 of 30 files reviewed at latest revision, 7 unresolved discussions, some commit checks failed.

tests/services/scanner/scanner_dao_test.py, line 81 at r10 (raw file):
Previously, ahoying (Andrew Hoying) wrote…
This needs to use json.loads as well. The only reason ast.literal_eval works is because the violation data doesn't contain boolean values. You can test this by setting violation_data to something like this:
          {'policy_names': ['fw-tag-match_222'],
           'action_required': true,
           'recommended_actions':
               {'DELETE_FIREWALL_RULES': ['fw-tag-match_222']}},

Ah, done.  I think that I didn't catch what you're saying earlier (long day, and late night).  But you're right, done!

Comments from Reviewable


Lock in the write API

Why use a lock in the writing method or the repository? This will harm performance AFAIK
https://github.com/dasiths/EventSourcingDemo/blob/master/EventSourcingDemo/Repository/Repository.cs

To ensure If the Repo commit part will be synchronized and thread safe. Just a good pattern AFAIK when implementing a repo commit or unit of work.

Sync with what? The whole EventStore database is lock free! Not a good pattern at all if not strictly necesary AFAIK

EventStore might be lock free but the Repository is not thread safe. I was just wary of two threads calling Save() on the same repo. See the repo implementation here: http://www.codeproject.com/Articles/555855/Introduction-to-CQRS
You are right. I agree that locks reduce performance. At best I should have explained and made that part optional.

Take a look at this. It is my own implementation. Is lock free. The Event Store does the heavy lifting. And it is thread safe. This is not a relational database.
https://github.com/Narvalex/Eventing/blob/release-v.1.0.0/src/Eventing/EventSourcing/EventSourcedRepository.cs

Will have a look thanks. Like I said EventStore is not the reason a lock was needed. It was to make it thread safe.

Can you check this pull request please? Pull request #3

Will do. Cheers.

Marking this as resolved


Find a licence that works better for games than GPL-2.0

GPL-2.0 might not be the best choice for this as a game engine. Ideally we can find something that can do the following:

Let people use the engine for free and commercial projects
Require people to make any engine changes made for their projects available
Not require people to release assets or code specific to their project that does not change the base engine

Maybe this would work?
https://en.wikipedia.org/wiki/Affero_General_Public_License

For now I switched to a simpler licence based on the very simple zLib licence: https://github.com/Interrupt/delverengine/blob/master/LICENSE.txt
If something better comes along we can use that, the closest I found to a good licence to use was the Mozilla Publice Licence v2.0 but I still don't totally understand all of the ramifications of that.

MOZILLA-2.0 is like GPL, but the code can be mixed with proprietary code eg. dual licensed. This will allow people to keep certain parts of their fork proprietary while keeping the rest open-source. I don't like this, I prefer GPL as it will allow every future fork/mod of the engine to support each other, proprietary. A good of example of a big ecosystem around a GPL-licensed game engine is the original DOOM, only the code is licensed under GPL, but the game's asset is not.
I think the best way to prevent GPL from affecting the game asset is to remove all of the assets that are currently in this engine's repo and then put it on its own repository under a different license. The new repo, containing minimal assets enough to run the engine, will serve as a reference or template when making games for the Delver engine.

I would suggest using something like the MPLv2 that follows the Open Source Definition, rather than a custom license.

@Interrupt I see you've modified the license. Is this resolved, or is it still an open issue?

Current licence is a stopgap until we can find something better - still need to do more research and oh god this is a giant topic


[#1159] Improve logging in http websocket connection upgrade

Adding logging to WS handler.
The global log was going into a black hole for some reason. A local instance of logger works, however.

Coverage decreased (-0.01%) to 34.87% when pulling 72c028d818f1a738bc30d37e8b8fe5cfde8daa47 on 1159-improve-websocket-logging into 29fd3ee4784929c431e37fe4a5794fa2a9e9a55c on master.


add MQTT support

Hornet has an MQTT broker. The module should nicely work with hornet!
https://github.com/gohornet/hornet#mqtt-broker
MQTT Events for
paymentCreated
This message will be published after a payment creation.
paymentIncoming
The payment transaction arrived the iri node, buts not confirmed yet (can be used for use cases which don't need confirmed transactions.
paymentSuccess
The transaction got confirmed and the tokens are available on the address.

The idea is, the payment is the wallet for the connected microcontroller. Because machines outside should have a wallet inside. if they get lost or be broken, the money on it is also lost. So we use this iota payment module as a collector for the machines (= microcontroller).
How does it work?
The microcontrollers can access new addresses from the IPM, if the address gets some tokens, the module transfers to microcontroller a command in a secured MQTT channel, and the microcontroller can react on this command ( turn on the light for some seconds for example).


Update azure-stack-solution-template-kubernetes-trouble.md

Updated "Review deployment logs" section with latest script changes

@jadarsie : Thanks for your contribution! The author, @mattbriggs, has been notified to review your proposed change.

Moved to the following PR so that I could review the lang. https://github.com/MicrosoftDocs/azure-docs-pr/pull/70253 #please-close


0603

Description

Motivation and Context

Fixes #
How Has This Been Tested?

Checklist:

[] I have added a Signed-off-by
[] Either no new documentation is required by this change, OR I added new documentation
[] Either no new tests are required by this change, OR I added new tests
[] I have run goimports, go vet, and golint. I have cleaned up all valid errors and warnings in code I have added or modified. These tools may generate false positives.  The goal is clean, consistent, and readable code.

Signed-off-by:

0603 update from fabric

This appears to be a mistake a there are only merge records and 0 diffs.  Can it be closed?

If I am misreading this, we can reopen.  Closing for now.


Publish to DITA-OT plug-in registry

Just heard Radu's presentation on this and other plug-ins from oXygen at DITA-OT Day, and it looks like it would be very useful to the community. 👍
Please consider submitting this to the DITA-OT plug-in registry at https://www.dita-ot.org/plugins
— and possibly other oXygen plug-ins?
For an overview of the process, see Publishing plug-ins to the registry in the DITA-OT documentation.
🙇

Added this pull request: https://github.com/dita-ot/registry/pull/70


JacksonJsonMapper will throw EOFException if gnip sends \r for every 30 seconds

The case is gnip will send a carriage return for every 30 seconds to make sure that the stream connection is not closed. The problem is JacksonJsonMapper will throw EOFException when receiving this carriage return (refer to _initForReading() of Jackson ObjectMapper.java).
The EOFException will cause the gnip connection be disconnected (although gnip4j will reconnect automatically).
The DefaultGnipStream.java make use of the extended ObjectMapper and override the _initForReading(), which ignore the EOFException for stream class
e.g.
private static class GnipStreamJsonObjectMapper extends ObjectMapper {
    @Override
    protected JsonToken _initForReading(JsonParser jp)
            throws IOException, JsonParseException, JsonMappingException {
        /*
         * First: must point to a token; if not pointing to one, advance. This
         * occurs before first read from JsonParser, as well as after clearing
         * of current token.
         */
        JsonToken t = jp.getCurrentToken();
        if (t == null) {
            // and then we must get something...
            t = jp.nextToken();
            if (t == null) {
                /*
                 * [JACKSON-99] Should throw EOFException, closed thing
                 * semantically
                 */
//                 throw new EOFException("No content to map to Object due to end of input");
                return t;
            }
        }
        return t;
    }
}

I've using streams with low traffic (lots of empty lines) and i think this does not hold true anymore. I'm closing it.


WIP system tests improvements

This PR will make some improvements to the system tests.
This PR includes the following changes right now:

[ ] lower the time.Sleep to 60 seconds for the Vagrant setup
[ ] add the l3 tests to an env var

There's no need to have such a long sleep for a Vagrant based setup. The VMs created by Vagrant aren't emulated, they're virtual machines which use hardware acceleration.
Once these changes pass and the L3 tests are fine, I'll make more changes.

build pr

@gkvijay: The BgpTriggerLinkUpDown test is failing now. Do you happen to know something about that? We've got to sort out that issue before we can enable all the tests for the L3 test run.


[BUG] Scalable armor can surpass armor limit set by server owner

Short Description
Scalable armor can surpass armor limit set by server owner. Ex: on servers like Valen with a 600mm armor limit you can have 1kmm+ of armor with scalable armor entity
Branch and Version
As long as scalable armor has existed idk man
How to Reproduce (Optional)
Scalable armor, max the slider, profit

This is a pretty simple fix I can do when I get home.

Is it that simple?
The way armor is calculated on pArmor is through actual line of sight thickness. If we put a cap on one axis, it doesn't stop anyone from making the plate much thicker on another axis and just rotating it.

You make a good point there, I'll admit I hadn't considered that, though it wouldn't be very practical for someone to do, as rotating it 90 degrees makes one side dependent on maximum thickness which would mean it could be nullified by the cvar. Not to mention to increased ent count to do it that way.

If we put a cap on one axis, it doesn't stop anyone from making the plate much thicker on another axis and just rotating it.

We could probably just find the thinnest axis and apply the limit on it.

How about making scalable armour sync better with optical thickness?

How about making scalable armour sync better with optical thickness?

Optical thickness?

And armour weight too

Scalable armor already uses the volume of the entity and the density of the material to calculate its mass, it should be as accurate as possible already.

optical thickness as in visual thickness
On Tue, 20 Sept 2022 at 17:48, TwistedTail @.***> wrote:

How about making scalable armour sync better with optical thickness?
Optical thickness?
And armour weight too
Scalable armor already uses the volume of the entity and the density of
the material to calculate its mass, it should be as accurate as possible
already.
—
Reply to this email directly, view it on GitHub
https://github.com/Stooberton/ACF-3/issues/279#issuecomment-1252629348,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUYFQNBWOPB2RDNOX2ZQPIDV7HTHXANCNFSM5RLSKU3Q
.
You are receiving this because you commented.Message ID:
@.***>

optical thickness as in visual thickness

That's how it works already, bullets use the actual size of the entity, along with taking into consideration the density of the material to get a RHA equivalent value, to calculate the armor they have to go through whenever they hit a scalable armor plate.

thanks
On Wed, 21 Sept 2022 at 06:14, TwistedTail @.***> wrote:

optical thickness as in visual thickness
That's how it works already, bullets use the actual size of the entity,
along with taking into consideration the density of the material to get a
RHA equivalent value, to calculate the armor they have to go through
whenever they hit a scalable armor plate.
—
Reply to this email directly, view it on GitHub
https://github.com/Stooberton/ACF-3/issues/279#issuecomment-1253215473,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUYFQNCCLMCENYGNFBR743TV7KKU5ANCNFSM5RLSKU3Q
.
You are receiving this because you commented.Message ID:
@.***>


Where is this gist url?

Excuse me, where is the url of this gist mentioned in Why Pact may not be the best tool for testing pass through APIs? :

Check out this gist for an example of how to use the Pact contract generation and matching code to test non-HTTP communications.

I think it is https://gist.github.com/bethesque/0ee446a9f93db4dd0697
Sorry, looks like we need to fix the link!

Fixed.


feature request: Mac OS and Linux ARM64 compatibility?

I've had multiple researchers on my team lose some time this week assuming that shapeit5 is Mac OS compatible, but it is not. At the same time, the major cloud vendors continue to offer ARM64 processors at very significant discounts compared to Intel or AMD, meaning that even if vector performance is worse they can offer a better value.
At the same time, bioconda is starting to widely roll out ARM64 support not just for Mac OS, but also Linux: https://github.com/bioconda/bioconda-recipes/issues/23454 .
I'd be glad to update a PR that I developed and validated that enables ARM64 compatibility for Shapeit5 if you are interested in merging it: https://github.com/odelaneau/shapeit5/pull/68 . I think there might be a surprising amount of users out there that would love to have this.

I have one more thought: it's very likely that in the future, if shapeit does not merge ARM64 compatibility upstream in this repo, different outside packaging groups will start patching it in. I've seen that happen already for other genomics tools, and it would save a whole lot of extra work if we could get it into the upstream project instead.


judge 2 fix

extract pre-defined cell type used for coarse training as an argument.
complete viash pipeline testing in docker mode on my local machine.

Hi, Robrecht. It seems the viash complains test_default being not correctly set. I'm not sure what's the exact reason causing viash cannot parse it. Any suggestion?

Hi, Robrecht. It seems the viash complains test_default being not correctly set. I'm not sure what's the exact reason causing viash cannot parse it. Any suggestion?

It's not Viash complaining, it was a mistake in the unit test I added for the method components. Should be fixed now!

Thanks for fixing this. However, the test seems still be killed. I'll try do some gc during training.


Throw error on casting floats to integers (instead of truncating)

Currently, if value like 5.8 passed into integer field it will be silently truncated and saved as 5 which is not explicit and most likely indicates a problem. This commit makes check more strict and raises an error in such cases.

Once the CI runs successfully we can merge it. Try to fix it.


feat: add networkPolicies

To allow deployment on our internal container platform without a netpol-allow-all-ingress the NetworkPolicy resources should be added.
Following resources require netPols:

[x] vault
[x] postgres (consumer)
[x] postgres (provider)
[x] daps - upstream: eclipse-tractusx/daps-helm-chart#8 (not yet released)
[x] edc (controlplane) - upstream: eclipse-tractusx/tractusx-edc#336
[x] edc (dataplane) - upstream: eclipse-tractusx/tractusx-edc#336

@fty4 you will/should add patches to upstream projects to manifest it. Otherwise the right way of overriding charts would be using the umbrella helm chart or kustomize

@Siegfriedk Yes that is right - but currently the chart already is using the unzipped upstream charts.
In the PR body the checklist is already containing the upstream PRs for these changes.
e.g. eclipse-tractusx/tractusx-edc#336 (currently in draft status)

Is there any update for a review or merging this PR?


Description
Utilities to control the visibility of elements, without modifying their display.
Design
https://getbootstrap.com/docs/5.3/utilities/visibility/
Tokens

[ ] Tokens for this component are ready

Tasks
### 💻 Tasks
- [ ] Check in Bitbucket if the classes are used: if not close the ticket
- [ ] HTML/CSS implementation
- [ ] Documentation in Storybook
- [ ] Visual regression tests
- [ ] Design review
- [ ] Remove visibility utilities coming form bootstrap

Usage analysis: found no usage of visible and low usage of invisible classes.

Closing as not needed.


TypeError Exception when reading hawkular metrics

When reading hawkular metrics we can get a TypeError Exception.
What happen:
If the Hawkular data struct is empty we get an the error.
What should happen:
We should check for empty data structs.
Examples:
Full data struct:
{"start"=>1464856440000,
  "end"=>1464856460000,
  "min"=>13548162076446.0,
  "avg"=>13548162076446.0,
  "median"=>13548162076446.0,
  "max"=>13548162076446.0,
  "sum"=>13548162076446.0,
  "samples"=>1,
  "empty"=>false}

Empty data struct:
 {"start"=>1464856460000, "end"=>1464856480000, "empty"=>true}
This Exception can be reproduced by running:
ContainerNode.first.perf_capture('realtime') on a node with some empty data.

@miq-bot add_label providers/containers
cc @simon3z @zakiva

@miq-bot add_label darga/yes, bug

@miq-bot add_label metrics

This Exception can be reproduced by running:
ContainerNode.first.perf_capture('realtime') on a node with some empty data

@yaacov can you write code that reproduces this, including the data bits?

@yaacov please add the exception this issue is about

@moolitayer Under what circumstances will this happen, e.g. when is hawkular returning nil data?

@moolitayer Under what circumstances will this happen, e.g. when is hawkular returning nil data?

@yaacov can you answer that? (Mooli is currently traveling)

Closed via #9097