Http request body limits setting

What type of enhancement is this?
Configuration
What does the enhancement do?
The axum do not accept bodies larger than 2MB, https://docs.rs/axum/latest/axum/extract/index.html#request-body-limits
But we can change it by DefaultBodyLimit
https://docs.rs/axum/latest/axum/extract/struct.DefaultBodyLimit.html
We can add a config param to HTTP options.
Implementation challenges
No response

Hey there @killme2008 , I'd love to contribute as a beginner. Can you please assign this to me and also help me as to where I can start to tackle this issue from?
From what I can  understand, we need to implement this sort of a solution?

@ItIsOHM I was just passing by :) probably you would like to extract 10 * 1000 * 1000 to const with a meaningful name so it will be easier to put that value to the settings information.

@ItIsOHM I was just passing by :) probably you would like to extract 10 * 1000 * 1000 to const with a meaningful name so it will be easier to put that value to the settings information.

Oh yes absolutely! Just wanted to know if I was going in the correct direction with this :D

Hey there @killme2008 , I'd love to contribute as a beginner. Can you please assign this to me and also help me as to where I can start to tackle this issue from?
From what I can understand, we need to implement this sort of a solution?

Glad you are interested.
First, you have to add a param such as http_body_maximum_size_size to HttpOptions in server crate:
https://github.com/GreptimeTeam/greptimedb/blob/7e23dd77142506ec3238a2a8dae1e18c07cbee10/src/servers/src/http.rs#L128
Recommend setting its type as common_base::readable_size::ReadableSize so that user can set it as 6G etc.
Second, add the  DefaultBodyLimit to the HTTP server layer
https://github.com/GreptimeTeam/greptimedb/blob/7e23dd77142506ec3238a2a8dae1e18c07cbee10/src/servers/src/http.rs#L534
Feel free to try it! Thank you.

Hey there @killme2008, recently opened a PR that looks to fix this issue :D


SMD -> Smidge

Change Smidge coin symbol from SMG to SDG everywhere.

Might I suggest NOT using SDG and using the word Smidge instead?
Any 3-letter symbol in capital letters, starting with S will get confused with SMH. Since smidges are never going to be traded on exchanges, I think that we shouldn't use a symbol for them at all.

this is the current community recommendation - please raise objections with community.

I just talked to Alon about it and we'll keep discussing next week. I generally think that since smidges are not traded on exchanges they should not be represented with a 3-uppercase-letter symbol. In bitcoin there's BTC (some exchanges list it as XBT but that's a different story) and satoshis are either sat. (lowercase) or just satoshi. I've never seen SAT or STS used anywhere.
Note that even in Ethereum, where gwei is used extensively - it's never capitalized.

We want to change the SMD symbol to Smidge and don't use other symbols besides Smidges and SMH.

@avive what about "GSMD" and "MSMD"?

We want to get rid of these and only use Smidge or SMH - they were mostly confusing users. We need to make sure that there's enough space for legible large amounts of smidge and do smart formatting for displayed amounts according to this rule: if an amount is at least 0.0001 SMH then display it in SMH units, otherwise in Smidge. We also want to have a hover popup over amounts displayed in Smesh that show the amount in Smidge units.

We also need to sort amount amount inputs but I'm not sure we'll manage to do this for 0.2. Ideally, every text box that accepts an amount has on its right a unit name (Smidge or SMH) and a drop down that allows the user to change between these units, so users will always be able to easily enter an amount with Smidge or with SMH.

Technically, this issue is for the v0.3 milestone and not for v0.2 but it will be great to have it in v0.2 if all other v0.2 known issues are fixed.

Regarding amounts input. Something like this:

Worth noting that if smidges are entered, a decimal point should not be allowed (but it should be allowed for SMH).

I have an idea how to improve the UX of the amounts input.
 So I have an idea to replace it with just a button (User interaction: aim on button, click).
At the first glance, it might be confusing (when you click on it -> what you will get?) or it needs some tips and everything becomes more complicated. But changing units converts the value of the input as well. So it can’t break the user-entered data and he can click on it as much as he wants. After this first experience, he will learn that clicking on the unit (SMH/Smidge) will change it to another one.
If it sounds reasonable and you agree with that idea, I have only one question:
The appearance of the button should make it clear that this button can be clicked: text-underline or bg color, or icon. I think that an icon like "refresh" (curved arrow) next to the units can make sense. What do you prefer? In the case of the icon, I need this icon to be drawn.

I think it is a good idea although a drop-down with 2 options is not that bad. We can have a rotate icon next to the unit name and clock on it just rotates between the 2 possible values. Otherwise users won't understand this is a button. So basically your refresh idea but it is a rotate...

A small demo (without icon yet):
https://user-images.githubusercontent.com/1897530/130227525-b4b74adb-0e98-41f0-bfee-384b65d235ef.mov

I think we're all in agreement here at this point but just to reiterate: please, please do not use the symbols "SMD" or "SDG" anywhere. I agree that "smidge" does not need a ticker symbol and it's much clearer without one.

By the way, do we need to use some library to work with more precision on big numbers (BigInt / BigFloat / etc)?
E.G.:

1 SMH -><PHONE_NUMBER>000 Smidge (ok)
1000000000001 Smidge -> 1.000000000001 SMH (ok)
1.000000000001 SMH -><PHONE_NUMBER>002 Smidge (!!! lost precision !!!)
1234567.000000000001 SMH -><PHONE_NUMBER>000000000 Smidge (!!! lost precision !!!)
9999999999.990002 SMH -> 9.99999999999e+21 Smidge (scientific notation, not user-friendly)

I think you can use the built-in BigInt type https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

I think we're all in agreement here at this point but just to reiterate: please, please do not use the symbols "SMD" or "SDG" anywhere. I agree that "smidge" does not need a ticker symbol and it's much clearer without one.

As stating above, we are only going to have 2 supported units in smapp: Smidge and SMH and support input of amount in both and smart display of amounts based on amount size.

I like the idea of getting rid of the dropdown, but I think that @brusherru's suggestion can be improved.
Since we're on desktop and not very limited in space, why not display both options, and also make it clearer that they're clickable buttons?
Something along these lines:

The design can clearly be improved, but this type of control is more intuitive IMHO.

@vomcent

i think we can go ahead with the toggle and apply final design once we get it from vince.

White and Black designs attached. I scaled these based on the existing UI kits but let me know if you need a specific size change or something like that.

Is it good enough? 🤔

@vomcent we'd like to use a simple toggle and not a button - can you please provide design for it?

Also, pay attention, that we actually have limited space.
The layout has a fixed size, so the input width is always the same, as in the picture above.
So If we just place two buttons one next to another we can't see the full amount even it will be 0.005 SMH in Smidge units... 🤔

This is one of the reasons I originally proposed a drop-down - fixed sized layout considerations...


Update deps

This PR makes two changes:

Change the ocurrent submodule to the 0.6.4 changes.
Restore the pointer to the official dream repository.

You need to update the Dockerfile sha and the opam-repository sha as well.

Indeed, I forgot! Thanks :)

@MisterDA could I merge this?

Yes, but ocluster.0.2.1 is coming. There may be conflicts.

I'll update the others deps at this time.


operator sonataflow-operator (10.0.0)

Thanks submitting your Operator. Please check below list before you create your Pull Request.
New Submissions

[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Updates to existing Operators

[ ] Did you create a ci.yaml file according to the update instructions?
[ ] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[ ] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[ ] Have you tested an update to your Operator when deployed via OLM?
[ ] Is your submission signed?

Your submission should not

[ ] Modify more than one operator
[ ] Modify an Operator you don't own
[ ] Rename an operator - please remove and add with a different name instead
[ ] Modify any files outside the above mentioned folders
[ ] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[ ] Description about the managed Application and where to find more information
[ ] Features and capabilities of your Operator and how to use it
[ ] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[ ] Human readable name and 1-liner description about your Operator
[ ] Valid category name1
[ ] One of the pre-defined capability levels2
[ ] Links to the maintainer, source code and documentation
[ ] Example templates for all Custom Resource Definitions intended to be used
[ ] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

Hey there - I closed it out shortly after realizing that you already had a PR out for it. I'm just a Sonataflow user who has been using the main branch to install the operator, and wanted to see 10.0.0 in OperatorHub so I could have the operator managed by OLM.
As you can probably tell, this is my first PR here! Apologies for the misunderstanding.
Thank you for the hard work on the 10.0.0 release, it looks great!


Cannot import Asset type from package

I'm trying to create a reusable component that accepts a video src from the videos/** directory.
If I define the props like this:
type VideoProps = {
  src: string
}

const Video = ({
  src,
}: VideoProps) => {
  ...
}

and then use the component like this:
import videoSrc from 'videos/video-example.mp4'
import Video from './Video'

...

<Video src={videoSrc} />

I get the following typescript warning:
Type 'Asset' is not assignable to type 'string'.ts(2322)
VideoBackground.tsx(11, 3): The expected type comes from property 'src' which is declared here on type 'IntrinsicAttributes & VideoBackgroundProps'
(property) src: string

Is there any way to import the Asset type to use as a prop type in a custom component?

import videoSrc from 'videos/video-example.mp4' should be import videoSrc from '/videos/video-example.mp4' I believe. does that work?


i don't remember my password i can't enter

Please summit the SN and more information in https://panther.global/. the tech support team will fix it for you. thanks


Add tranform to normalize water tunnels

Refs https://github.com/mapzen/vector-datasource/issues/156

@zerebubuth Could you review please?

:+1: looks good to me!


Layout can be sensitive to sudden changes

i.e. quickly toggle the sidebar.
I suspect this is because we have a very funny nesting configuration. Could simplify the hierarchy, even with the hacks currently in place.

I've simplified the view hierarchy, which fixed the title bar blur effect with scrolling, though sidebar toggling can get a bit ugly. My guess is there's a bit of a bug with the toggle sidebar animation and the constraints system.

Ugh the simplification created a bit of a regression - we now have vibrancy with content under the title bar, but in the server albums view, now the scope bar is hiding somewhere while the IKImageBrowserView is properly attaching itself to the top.
Some ideas:

Constraints to safe area in ServerHome.xib: Don't bother, the safe area we care about belongs to Database.xib.
Set constraints to rightVC's subview onto the window's safe area: Kinda works, but a bit janky, and needs a similar constraint for leftVC to the non-safe area of the window. I guess we can change the constraint (well, have two and toggle?) as we switch between views, or see if we can apply the constraint directly to ServerHome. Do the constraints mess with the autosizing view?
Set the frame of the rightVC view to be safeAreaRect for ServerHome, full frame everything else: Works and is simple, but doesn't work well when the safe area changes (show/hide toolbar). Wondering if we can set an observer on toolbar.visible or window.safeAreaRect, and reframe as needed...

Alternatively, we could use an accessory view, but that seems very tricky with subviews.
The constraint would look like:
    // HACK: Really bad: When we got rid of the weird box wrappers, that was good for simplifying the view hierarchy.
    // However, while it works for mostly everything, the scope bar disappears under the title bar.
    leftVCTopConstraint = [leftVC.view.topAnchor constraintEqualToAnchor: self.window.contentView.topAnchor];
    rightVCTopConstraint = [rightVC.view.topAnchor constraintEqualToAnchor: self.window.contentView.safeAreaLayoutGuide.topAnchor];

The observer has to be set for self.window.contentView.safeAreaInsets - safeAreaRect is presumably calculated from that. This seems to work fairly reliably versus the constraints, IME, and the autosizing mask is sufficient from there...


Change the block parameter to a named tuple

It allows complementing block parameter names by code completion.
Before

After

CC @jpsim @mrackwitz

:+1:

Looks good to me other than the SwiftLint line length violation. :+1:


Rendering issues for Indic text

I have tried using convert with pango and Indic text (Devanagari - Hindi, Bangla) but the rendering is incorrect.

The image displays the Unicode equivalent of text character.
The rendering for Spanish, Chinese and Arabic text works fine.
Please advice.

Oh, I don't think I can advice. It was too long ago I looked at this. I opted for Membrane when I needed image composition last time: https://github.com/PEZ/x-meta-image Not sure if that could work for your use case?


Inappropriate scroll on add signers

In iOS device
https://github.com/bithyve/bitcoin-keeper/assets/107177634/c906d72f-4b77-4555-a9ba-d7eb87db3b3f

Completed verified in Version 1.2.1 (327) Can see this fixed


How we use JFoenix

This is an information issue for the project leads, if you want to see some use-cases:
We have some Screenshots of our generic mobile application:
http://blog.sibvisions.com/2015/10/21/code-once-run-anywhere/
And a video (it's about live css hacking, but...)
https://www.youtube.com/watch?v=fnooIzGUxFk

cool framework :+1:


docs: add architecture decision record template and VSCode snippet

Add architecture decision record template and VSCode snippet
Description
Initialize the ADR process for documenting history for future architecture decisions. This PR adds a template for use with adr-tools as well as a VSCode snippet to easily generate ADR documents.
Type of change

[X] Documentation/process

Checklist

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules
[X] I have checked my code and corrected any misspellings

I see a couple tools that could be adr-tools. Are you referring to this one? - https://github.com/npryce/adr-tools

Yes, I put the links in the new README.md, as well as in comments in the markdown templates.


Fix the project name

Scala-SQL-AST is far too specific for what the goal of this project is. It also doesn't really roll of the tongue. I'd like to have a google-able name that relatively clearly represents the goals of the project (or not).

I'm thinking about sOOQ (like jooq but for scala) or dOOQ (like jooq, but for doobie). they're both googlable, and will be familiar to anybody coming from java.

Perhaps DooQie, given the new goals. But I dunno, that sounds funny.

tpolecat reccomended scoobie. I like it.


@SneakyThrows for fields assigned a value in declaration

It would be convenient if @SneakyThrows worked with fields that are initialized along with their declaration. Is the following transformation feasible, or are initializer blocks special in some way?
For example,
public class Test {
  // Where Configuration.getDataSource() throws a checked exception
  // that we know won't occur in this instance.
  @SneakyThrows
  private static DataSource dataSource = Configuration.getDataSource();
}

Transformed into,
public class Test {
  private static DataSource dataSource;
  static {
    try {
      dataSource = Configuration.getDataSource();
    } catch(java.lang.Throwable e) {
      Lombok.sneakyThrow(e);
    }
  }
}

Or if it's a final field,
public class Test {
  private static final DataSource dataSource;
  static {
    DataSource _dataSource = null;
    try {
      _dataSource = Configuration.getDataSource();
    } catch(java.lang.Throwable e) {
      Lombok.sneakyThrow(e);
    }
    dataSource = _dataSource
  }
}

Non-static version,
public class Test {
  private DataSource dataSource;
  {
    try {
      dataSource = Configuration.getDataSource();
    } catch(java.lang.Throwable e) {
      Lombok.sneakyThrow(e);
    }
  }
}

I'd be open to implementing this if it seems like a worthwhile addition.

I just had the same thought today.
In the final case, a temporary variable isn't necessary if throw is used.
public class Test {
  private static final DataSource dataSource;
  static {
    try {
      dataSource = Configuration.getDataSource();
    } catch(java.lang.Throwable e) {
      throw Lombok.sneakyThrow(e);
    }
  }
}

+1

I think it's a bit difficult to implement. And catch exceptions in static block bad idea. If you don't have access to structure interface/class who throws exceptions, then use pattern Adapter.


[SPARK-45904][SQL][CONNECT] Mode function should supports sort with order direction

What changes were proposed in this pull request?
Currently, the mode aggregate function only support sort desc with the input column.
But the mainstream database (e.g. H2 and Postgres) supports sort desc or asc.
https://github.com/apache/spark/pull/43663 will support MODE() WITHIN GROUP (ORDER BY col [ASC|DESC]) syntax.
Why are the changes needed?
Mode function should supports sort with order direction.
Does this PR introduce any user-facing change?
'No'.
New feature.
How was this patch tested?
Test cases updated.
Was this patch authored or co-authored using generative AI tooling?
'No'.

Actually this is literally the same implementation I came up with internally before I added deterministic mode in https://github.com/apache/spark/pull/42755. But then we reduced the sort argument (isSortAsc in this PR) to a simple deterministic flag to keep the change simple.
@beliefer, are you referring to the isSortAsc argument of the mode function or are you referring to the new MODE() WITHIN GROUP (ORDER BY col [ASC|DESC]) syntax by "mainstream databases support"?

@beliefer, are you referring to the isSortAsc argument of the mode function or are you referring to the new MODE() WITHIN GROUP (ORDER BY col [ASC|DESC]) syntax by "mainstream databases support"?

Because I want add the new MODE() WITHIN GROUP (ORDER BY col [ASC|DESC]) syntax by "mainstream databases supported. Please see https://github.com/apache/spark/pull/43663.
I found that the current implementation of mode only supports sort by column ASC if we make deterministicExpr is true.
We should let mode also supports by column DESC

ping @MaxGekk cc @cloud-fan

The GA failure is unrelated.

I will close due to https://github.com/apache/spark/pull/44184 merged.


Add support to show leader coordinator in Services web console view

Description
Add support to show leader coordinator in Services web console view
Motivation
As we know, compared with standby coordinators, leader of coordinators does a lot of tasks such as checking whether to launch compaction tasks. To check whether these tasks are being processed correctly when debugging or solving problems, the first thing is to determine which coordinator right now is the leader.
Currently, there's no way to know which coordinator is the leader from the web console ui. One has to use /druid/indexer/v1/leader RESTful API to send request to any coordinator nodes to get the information of leader. It's not a intuitive way for users.
So, this proposal aims to simplify this by indicating which coordinator is leader on the web console.
There's two ways achieve this:
Alternative 1
When switching to the Services view on web console, the frontend calls the /druid/indexer/v1/leader API to get the leader and then show the result in the Tier column of corresponding row in that view.
This is like the way current web console ui uses to show the last task status of middle manager in Services view
The Pros
No backend changes are involved.
The Cons
/druid/indexer/v1/leader must be sent to the coordinator, but the frontend can't sent this request util it gets services list from router through SQL query to know where coordinators locate. It's a little bit complex for the frontend.
Alternative 2
When processing query on sys.servers table, broker calls /druid/indexer/v1/leader to get the leader and mark the leader coordinator in tier field. The frontend ui will automatically show the leader once there's value in tier property.
The Pros
No changes are involved in frontend but backend services.
Any discussion would be appreciated.

Closed via #10951


[backport] [7.44.x] Upgrade JMXFetch to 0.47.6

What does this PR do?
Backport of https://github.com/DataDog/datadog-agent/pull/16364
Motivation
See above PR
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Run a java app with JMX metrics exposed (eg, Tomcat, activemq, solr)
Configure agent to collect jmx metrics
Ensure the JMX metrics are visible in the app

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

Back to draft until https://github.com/DataDog/jmxfetch/pull/420 and https://github.com/DataDog/jmxfetch/pull/419 land and we release a new jmxfetch version that we can reference here.


Need help to integrate sriov-cni + Multus in GKE (Google Kubernetes Engine)

What issue would you like to bring attention to?
Integrating DPDK-SRIOV + Multus  with GKE
What is the impact of this issue?
No Impact. Need help if if any one integrated this with GKE/or with other Cloude Provider Managed K8S
Do you have a proposed response or remediation for the issue?
No. I want some pointer / help if some one tried this with GKE.

Can you provide documentation that this is possible on GKE?
I did a quick google and it seems SR-IOV is not an option on GKE but please tell me if this is not the case.

Can you provide documentation that this is possible on GKE?
I did a quick google and it seems SR-IOV is not an option on GKE but please tell me if this is not the case.

Can you provide documentation that this is possible on GKE?
I did a quick google and it seems SR-IOV is not an option on GKE but please tell me if this is not the case.

Yes it seems sriov is not supported with GKE and hence I'm failed to integrate this plugin GKE.
I don't have/find documentation that says this plugin supported in GKE

I'm closing this issue because GKE doesn't seem to support SR-IOV.


run --continuous parameter micronaut.io.watch.paths uses hardcoded "src/main" srcDir

"src/main" is hardcoded, and not deducted.
https://github.com/micronaut-projects/micronaut-gradle-plugin/blob/c2d3b74389783d792cbc3d5885ccffa3b0fe5936/src/main/java/io/micronaut/gradle/MicronautApplicationPlugin.java#L127
But 11 lines below it's deducted using API.
https://github.com/micronaut-projects/micronaut-gradle-plugin/blob/c2d3b74389783d792cbc3d5885ccffa3b0fe5936/src/main/java/io/micronaut/gradle/MicronautApplicationPlugin.java#L138

Good analysis, would you like to send a PR?

Closed by #199


About hyperparameters

Hi, wonjoon :)
I want to know values of hyper parameters of MNIST figure in your pretrained model.
I trained the model using default parameters which you wrote down, however the results are something strange and loss value seems to be not converge.
Thank you!

Thanks for your interests.
That's very weird. As far as I remember, the hyperparams I used to generate provided results is same with the written values on the code. I will try to reproduce the result and let you know.

You might want to stick to a W-GAN-based WAE implementation, but have a look at WAE-MMD implementation, which I updated right now. Due to we now avoid tedious, time-consuming training for D, training becomes much faster, and it looks okay with naive hyperparameter I found.
I will close the issue, and please reopen it if you still have the same problem. Cheers! 🍺


Fonts are missing

After a fresh installation of learn-ocaml, I get that:

The missing fonts make sense (our favorite font has a complex license that doesn't make it clear we can redistribute it with the source, check in the static/fonts/ subdirectory to manually include it) ; but the CSS is normally configured with sane fallbacks. This is mentionned in the License and Copyright section of the README.
The replace is not a function error seems more worrying to me, do you know where it comes from?

Hmm, no. This is the first time I meet this one.
My version of js_of_ocaml is 3.2.1.

The web user interface is out of order. However, I can interact with the server using learn-ocaml-client.

Isn't it strange that opam installed 3.2.1 instead of 3.1.0 given that I followed the installation procedure to install learn-ocaml's opam dependencies?

Did you update you opam environment recently? It might be related to js_of_ocaml "sub" packages (js_of_ocaml-lwt for example) not in the sync, i.e. with a different version than js_of_ocaml. I had the same issue once, after an opam update.

Thanks @OCamlPro-Couderc, that might be the case indeed!

There is something weird in my opam installation. Look:
ann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» opam install js_of_ocaml.3.1.0         [9:43:23]
[NOTE] Package js_of_ocaml is already installed (current version is 3.1.0).
yann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» js_of_ocaml --version                  [9:43:27]
3.2.1
yann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» which js_of_ocaml                      [9:43:33]
/home/yann/git/teaching/learn-ocaml/learn-ocaml/_opam/bin/js_of_ocaml
yann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» _opam/bin/js_of_ocaml --version        [9:43:43]
3.2.1
yann➜teaching/learn-ocaml/learn-ocaml(docs-classroom)» echo $PATH                             [9:44:03]
/home/yann/git/teaching/learn-ocaml/learn-ocaml/_opam/bin:/home/yann/usr/bin:/home/yann/.opam/4.05.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

Pff, that's really on the js_of_ocaml package maintainers...
I had a PR for this but only fixed part of the missing constraints.
@yurug, can you check opam list js_of_ocaml\* ?

Things are getting stranger:
» opam list js_of_ocaml\*
# Packages matching: (installed | available) & name-match(js_of_ocaml*)
# Name                        # Installed # Synopsis
js_of_ocaml                   3.1.0       Compiler from OCaml bytecode to Javascript
js_of_ocaml-camlp4            3.1.0       Compiler from OCaml bytecode to Javascript
js_of_ocaml-compiler          3.2.1       Compiler from OCaml bytecode to Javascript
js_of_ocaml-lwt               3.1.0       Compiler from OCaml bytecode to Javascript
js_of_ocaml-ocamlbuild        --          Compiler from OCaml bytecode to Javascript
js_of_ocaml-ppx               3.2.0       Compiler from OCaml bytecode to Javascript
js_of_ocaml-ppx_deriving_json --          Compiler from OCaml bytecode to Javascript
js_of_ocaml-toplevel          3.2.0       Compiler from OCaml bytecode to Javascript
js_of_ocaml-tyxml             3.2.0       Compiler from OCaml bytecode to Javascript

opam install js_of_ocaml-compiler.3.1.0

fixed the problem.
We probably should fill an issue on the js_of_ocaml-compiler side and declare this specific version of the compiler package in our opam file.

So this explains that: it's indeed the broken dependency constraints in opam-repository that led you to have inconsistent versions of the various jsoo packages, leading to a broken install.
opam install js_of_ocaml-compiler.3.1.0 js_of_ocaml-ocamlbuild.3.1.0 js_of_ocaml-ppx.3.1.0 js_of_ocaml-toplevel.3.1.0 js_of_ocaml-tyxml.3.1.0 should fix it manually

It seems to me that the issue is not with inter-dependencies but with js_of_ocaml-compiler.3.2.1 itself.
@AltGr, why do you think different versions matter here?

Err, I don't know actually, maybe I jumped to conclusions. Just tried upgrading all to their latest versions, and the problems seem to be gone, though.

ocamlbuild

-use-ocamlfind
-plugin-tag "package(js_of_ocaml.ocamlbuild)"
-no-links
main.d.js

ocamlfind ocamlopt -package unix -package ocamlbuild -linkpkg -package js_of_ocaml.ocamlbuild myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
ocamlfind: Package `js_of_ocaml.ocamlbuild' not found
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 10

I am getting this error when i try to run make command


25520 - Azfw Basic SKU

Overview/Summary
AB#25520
Adding support for Azure Firewall Basic SKU to ALZ Bicep.
This PR fixes/adds/changes/removes

Support to Azure Firewall Basic SKU in HubNetworking and VwanConectivity modules

Breaking Changes

N/A

Testing Evidence
HubNetworking module WITH basic:

As part of this Pull Request I have

[X] Read the Contribution Guide and ensured this PR is compliant with the guide
[X] Ensured the resource API versions in .bicep file/s I am adding/editing are using the latest API version possible
[X] Checked for duplicate Pull Requests
[X] Associated it with relevant GitHub Issues
[X] (ALZ Bicep Core Team Only) Associated it with relevant ADO Items
[X] Ensured my code/branch is up-to-date with the latest changes in the main branch
[X] Performed testing and provided evidence.


Could not delete in batch.

Hello,
I just started trying ex_admin.
I am having issue when doing batch delete.
I am getting this issue
no function clause matching in ExAdmin.AdminController.to_integer/2.
I am forking this repo to try to fix. Please hint me where to look for this issue.

Please see this pull request #80  for fix.
Let's me know if I didn't solve it at the right place.


Windows building not possible

Makefile missing from depends-folder. Can't build for windows.

Hello! Thank you for issue. We preparing Visual Studio configuration files (.vcxproj, .sln) for building. Binaries for Windows and other operating systems will also be available soon.


Can we change the length of feature extraction's ouput

I see the length of vector is 768, can I reduce it (ex: 300) to get small size.

Related


Resizing the event from one day at one hour to another day at another hour does not work

Version
1.7.0
Development Environment
Firefox, Chrome
Current Behavior
Weekly view.

For example, I would like to resize an event from August 29th to 12:00 until August 30th at 6:00 pm. I can not do it.
If I create a new event and I enter from August 29th at 12:00 to August 30th at 6:00 pm, an event will be inserted in the section of a whole day, but why?

Expected Behavior

I expect I can do it.
I expect an event that takes up the whole space from August 29th to 12:00 am to August 30th at 6:00 pm in the timetable space.

@logikamente

tui-calendar doesn't have a functionality what you want. But we think it's necessary and we will come up with a plan to implement it.
Can you provide me the schedule data of number 2?

I see. You use default popups that tui-calendar provides. Checking...


Consider moving AndOr cop from Style to Lint

I feel like using and and or in place of && and || in conditions could cause serious consequences due to their lower precedence and therefore we should maybe have the AndOr cop be a Lint cop instead of a Style cop. Thoughts?

rubocop always give the wrong suggestion for the following pattern
a = value or do_something 3
Just replacing or with || gives syntax error

@kzw RuboCop is aware of the difference in precedence. If the message had said "Replace or with ||" I'd agree with you, but it says "Use || instead of or" and --auto-correct changes the code to (a = value) || do_something(3).
@daviddavis I have a feeling we have discussed this before and decided against a move since the choice is sometimes only a style issue. That might be all in my head, though, because I've search through old issues and not found anything. Question is, would we need to split it into a Lint/AndOr and a Style/AndOr.

@bbatsov wanna just close this? It seems like there are legitimate arguments both ways.

:+1:


[TC-MC-8.1 & 8.2] CurrentTarget Attribute not available for targetnavigator cluster

Test Case ID:
[TC-MC-8.1]  Navigate Target Verification (DUT as Server)
[TC-MC-8.2] Navigate Target Verification (DUT as Client)
Describe Issue:
CurrentTarget Attribute not found in chip-tool, unable to complete Steps 1a, 2b, and 3c for both TC-MC-8.1  and TC-MC-8.2. This missing attribute makes it so the test case cannot be accurately performed because all other steps rely on knowing the current target attribute's value.
Issue located in Steps:
Steps 1a, 2b, and 3c
Testing Setup:
DUT (Controller) chip-tool on Mac, test_event_6 branch commit: 82bcd4e36f4856a4216cb76a16116faeec40e223
TH (Accessory) chip-tv-app on RasPi4, test_event_6 branch commit: 82bcd4e36f4856a4216cb76a16116faeec40e223
Specification References:
https://github.com/CHIP-Specifications/chip-test-plans/blob/master/src/cluster/media.adoc#test-procedure-24
Logs:
TC-MC-8-1.txt
TC-MC-8-2.txt

Update
Issue is still happening on test_event_7 branch.
Testing Setup:
DUT (Controller) chip-tool on RasPi4, test_event_7 branch commit: f51eeb39de1e58c8f55a13cfc59782e8e11c6948
TH (Accessory) chip-tv-app on RasPi4, test_event_7 branch commit: f51eeb39de1e58c8f55a13cfc59782e8e11c6948

It's present now
`➜  connectedhomeip git:(feature/enable-struct-atributes-for-chip-tool) ✗ out/debug/standalone/chip-tool targetnavigator read
[1644257570311] [13547:652718] CHIP: [TOO] Missing attribute name
Usage:
out/debug/standalone/chip-tool targetnavigator read attribute-name [param1 param2 ...]
+-----------------------------------------------------+
| Attributes:                                                                         |
+-----------------------------------------------------+
| * target-navigator-list                                                      |
| * current-navigator-target                                               |
| * server-generated-command-list                                  |
| * client-generated-command-list                                   |
| * attribute-list                                                                   |
| * cluster-revision                                                              |
+-----------------------------------------------------+`


Move from master -> main

This is a beautiful theme (👍), but what config changes do I need to make locally in order to move from master -> main?

Sorry. It seems to be working 👍


Create component for displaying stock information for the web

In order to show information on stocks, we need to create a component that can display stock value
https://www.equinor.com/en/investors/the-equinor-share.html
Acceptance criteria

Based on information from an API show stock values
Adhere to figma sketches

Sub tasks

[ ] Create UI component
[ ] Implement UI component in Storybook
[ ] Connect to API for getting the stock exchange data (possibly it's own US)

@wenche Here is the details about the end point for stock information.
Endpoint/feed url: https://tools.eurolandir.com/tools/pricefeed/xmlirmultiiso5.aspx?companyid=9053
We are polling this information every 60 seconds and parsing the xml to store it in a AEM way and we read this data in stock importer component.
Component has two configurations either to show Oslo stock exchange or New York stock exchange and you can see the additional configuration details in the screenshot below.

@nicholas-haggerty to follow up with AEM team

@nilsml We discussed in this mornings meeting. Sven has gone ahead with this task and implemented the component in Sanity already. Input wasnt required. Until we see it in the web its a little hard to see if we have delivered on the task.

@SvSven @nilsml When you get a chance could you let me know if this task has been complicated?, I know we have the component in the list but I dont see the component in preview when I test.

I don't believe we have the web part of this yet no, as we need to do some work to integrate with the API. We only added a placeholder component in the studio.

@fernandolucchesi @wenche @padms This should be ready to be looked at. Might be some room for improvement to make the data fetching reusable but I don't think there is any other place where we use this API, so not sure if its worth it really.

Some comments

The query is obviously copy'n paste -> FTFY
Too much hardcoded text -> gives at least 20 minutes delayed for Norwegian. Should have been a text snippet
As always: would have preferred uppercase letters with CSS, not capslock :)
Minor detail: No localisation formatting for the currency

Fixed text snippet and uppercase, not sure if localization for currency is a good idea or not. I would image that anyone interested in this understands that the NYSE trades in USD and the OSE trades in NOK.
Is there anything special we need to do in terms of screen readers for this content?

The automatic formatting of the timezone by react-intl might be a concern for stakeholders, since it shows CET for some and GMT+1 (or equivalent for whatever time of year it is) for others. We'll keep just keep it until we get any comments on it.
There's also the question of how relevant the date really is considering we don't show the actual time - but then the original component on equinor.com does not show that either. We do have a timestamp in the API data so we could show it if we want to, but need to discuss with stakeholders.


Cropping without resizing

Hey,
I am using this package through the Laravel MediaLibrary. In my project I'm trying to crop a picture from the center, but it does a lot of resizing. Is there any way I can crop an image without it resizing?
Code
public function registerMediaConversions(Media $media = null) {
    $this->addMediaConversion('avatar')->crop('crop-center', 150, 150);
}

Images
Input: https://i.imgur.com/SAOX2eX.jpg
Output: https://i.imgur.com/5Sj8aZo.jpg
Expected output (rough): https://i.imgur.com/IxcYkZz.png

Take a look at the manualCrop method: https://docs.spatie.be/image/v1/introduction/#cropping-the-starbucks-storefront


WHMCS Automatic Setup Failed

I have an issue, when a user pays, his account and servers is setup in the panel, and he receives the login details by email, but WHMCS recognises it as failed...
An order has received its first payment but the automatic provisioning has failed and requires you to manually check & resolve.
Client ID: 310
Service ID: 443
Product/Service: IRON
Domain:
Error: Invalid "{"language":"","fullName":" ","countryName":null}" locale.
Request log:
`Array
(
[whmcsVersion] => 6.3.0-release.1
[accountid] => 297
[serviceid] => 297
[userid] => 154
[domain] =>
[username] =>
[password] => uVf412tZi3
[packageid] => 21
[pid] => 21
[serverid] => 14
[status] => Active
[type] => other
[producttype] => other
[moduletype] => pterodactyl
[configoption1] => 1512
[configoption2] => 0
[configoption3] => 30
[configoption4] => 500
[configoption5] => 4500
[configoption6] => 1
[configoption7] => 1
[configoption8] => 1
[configoption9] =>
[configoption10] => on
[configoption11] =>
[configoption12] =>
[configoption13] => 0
[configoption14] => {{servicename}} server for user {{userid}}
[configoption15] =>
[configoption16] =>
[configoption17] =>
[configoption18] =>
[configoption19] =>
[configoption20] =>
[configoption21] =>
[configoption22] =>
[configoption23] =>
[configoption24] =>
[customfields] => Array
(
[Email panou] =><EMAIL_ADDRESS>[Parola panou] => KeksHostEternusMC
[Versiune server] => spigot 1.8.8
)
[configoptions] => Array
    (
    )

[clientsdetails] => Array
    (
        [userid] => 154
        [id] => 154
        [uuid] => 1b822f07-4a54-48b3-898a-d69824e69ae0
        [firstname] => Robert
        [lastname] => Talaz
        [fullname] => Robert Talaz
        [companyname] => -
        [email] =><EMAIL_ADDRESS>        [address1] => Sat Arini
        [address2] => Comuna Gaiceana
        [city] => Bacau
        [fullstate] => Bacau
        [state] => Bacau
        [postcode] => 0000000
        [countrycode] => RO
        [country] => RO
        [phonenumber] =><PHONE_NUMBER>
        [password] => $2y$10$MJkubAYj8RkyWpegfcC3r.5padOu0Rgy4.mF9fwjaJlePNwZFvZsq
        [statecode] => Bacau
        [countryname] => Romania
        [phonecc] => 40
        [phonenumberformatted] => +40.760113658
        [billingcid] => 0
        [notes] =>
        [twofaenabled] =>
        [currency] => 1
        [defaultgateway] => euplatesc
        [cctype] =>
        [cclastfour] =>
        [securityqid] => 0
        [securityqans] =>
        [groupid] => 0
        [status] => Active
        [credit] => 0.00
        [taxexempt] =>
        [latefeeoveride] =>
        [overideduenotices] =>
        [separateinvoices] =>
        [disableautocc] =>
        [emailoptout] =>
        [overrideautoclose] =>
        [allowSingleSignOn] => 1
        [language] =>
        [lastlogin] => Date: 07/06/2017 15:30
IP Address: <IP_ADDRESS>
Host:
    )

[server] => 1
[serverip] =>
[serverhostname] => https://game-panel.kekshost.com/
[serverusername] => AECf94pA1J22iYfb
[serverpassword] => 4roQIsE9slGJmdH9.nN0nTYF.8JBoHkV
[serveraccesshash] =>
[serversecure] => on
[serverhttpprefix] => https
[serverport] =>
[action] => create

)
`
Response log:
#0 /var/www/vhosts/kekshost.com/httpdocs/vendor/symfony/translation/Symfony/Component/Translation/Translator.php(247): Symfony\Component\Translation\Translator->assertValidLocale(Object(WHMCS\User\Client)) #1 /var/www/vhosts/kekshost.com/httpdocs/vendor/symfony/translation/Symfony/Component/Translation/Translator.php(210): Symfony\Component\Translation\Translator->getCatalogue(Object(WHMCS\User\Client)) #2 /var/www/vhosts/kekshost.com/httpdocs/vendor/illuminate/support/Illuminate/Support/Facades/Facade.php(217): Symfony\Component\Translation\Translator->trans('custom_field.30...', Array, 'dynamicMessages', Object(WHMCS\User\Client)) #3 /var/www/vhosts/kekshost.com/httpdocs/includes/classes/WHMCS/CustomField.php(0): Illuminate\Support\Facades\Facade::__callStatic('trans', Array) #4 /var/www/vhosts/kekshost.com/httpdocs/includes/api/getclientsproducts.php(0): WHMCS\CustomField::getFieldName() #5 /var/www/vhosts/kekshost.com/httpdocs/includes/functions.php(0): unknown() #6 /var/www/vhosts/kekshost.com/httpdocs/modules/servers/pterodactyl/pterodactyl.php(381): localAPI('getclientsprodu...', Array, '1') #7 /var/www/vhosts/kekshost.com/httpdocs/includes/classes/WHMCS/Module/AbstractModule.php(0): pterodactyl_CreateAccount(Array) #8 /var/www/vhosts/kekshost.com/httpdocs/includes/classes/WHMCS/Module/Server.php(0): WHMCS\Module\AbstractModule->call() #9 /var/www/vhosts/kekshost.com/httpdocs/includes/modulefunctions.php(0): WHMCS\Module\Server->call() #10 /var/www/vhosts/kekshost.com/httpdocs/includes/modulefunctions.php(0): ModuleCallFunction() #11 /var/www/vhosts/kekshost.com/httpdocs/admin/clientsservices.php(0): ServerCreateAccount() #12 {main}

BUMP

Looks like some sort of issue with the API call, this wont be dealt with for some time.


Add log statement at server start.

A quick PR that add log statement to notify on which port the server is running and if he is running.

hi @PaulRosset , thank you for your contribution! Friendly heads up, we're nearing completion on a new SDK version that'll dramaticallyl simplify the fn author experience. If you want to check out a sneak peak you can use go get<EMAIL_ADDRESS>The PR for that work can be found here #3. We should be merging this today or tomorrow. SDK versions < 0.4.0 will continue to operate as expected for the time being. We will be asking func authors to migrate this week with an EOL of Oct 15th for the legacy go sdk version.

with the new sdk, you can use whatever logger you wish. I'd recommending using the std lib slog liek we're doing as its already present in the std lib (aka, DEPENDABLE ❤)


Validation pipeline tests

This MR adds basic guaranteed passing and failing tests for the compiletime crash, runtime crash, and runtime validation test pipelines

Hmm feels a little as over documenting but could but be worth it? What would you suggest documenting something really small like these tests with? 😅

Hmm feels a little as over documenting but could but be worth it? What would you suggest documenting something really small like these tests with? 😅

These tests probably don't have much to add but for larger ones if they happen it might be good - that said we can cross that bridge when we come to it so this seems fine as-is


App Daemon update from 0.14 to 0.15 - need change in installation instructions

Hi,
Please find attached the screenshot for the update of AppDaemon and the folder structure is changing. Please update the instructions to reflect these changes.
Thanks
Amogh

This only applies to people using the AppDaemon add-on and HASSOS if I'm not mistaken?
In which case, this shouldn't require any update of documentation for qolsysgw since its documentation only has a link for the add-on setup, not a full guide!

@XaF there are instructions which specify settings in appdaemon.yml and apps.yml. Now these files are moved to addon_configs/xyz_appdaemon

Which part of the documentation are you referring too?
The main documentation has been written with docker setup in mind (not HASSOS and addons), but should work for both. I can add a callout if there's a place that specifies paths, but I do not have / use the addons approach so won't be able to write something accurate. I'm open to a pull request to update the documentation though!

I have the same thing and using HASSOS. The QolsysGW-app is installed in a directory that AppDaemon does not use after the update. I managed to find that it was possible to point out to appdaemon where the apps are installed by adding "app_dir" configuration in the appdaemon.yaml file.
Can this be a solution or?
Not an expert in this topics I'm afraid.

The QolsysGW-app is installed in a directory that AppDaemon does not use after the update

That is surprising - could that be a HACS configuration change?
I could add a disclaimer for installation location for manual installs, but that won't help for installations done through HACS (which is the preferred way) if it's not doing the right thing when using addons

Don't you think it might be possible to just point the AppDamon application to the correct path?

 Following your previous comment mentioning app_dir, seems that it would be the approach to take. I was able to find this other comment that suggests the same approach: https://github.com/hassio-addons/addon-appdaemon/issues/302#issuecomment-1816194738
So I guess the simplest solution to this is to add in AppDaemon configuration the app_dir parameter to tell it to behave as it always behaved before that latest update 😅
Will have to think about how to convey that in the documentation since I mostly wrote it with a docker manual setup in mind, while using that or HASSOS was pretty much the same idea.

Thanks, I will try this tomorrow

It didn't work for me. Got some Mqtt issues. Might be a local problem for me but it seems like there is a complain about bad protocol in the logs

Are you talking about AppDaemon logs ? Home Assistant logs ? MQTT logs ?

Get this in the AppDaemon log:
Can you help me?
gaierror: [Errno -2] Name does not resolve
2024-01-17 19:45:25.837347 INFO qolsys_panel: sleeping 60 second(s) before reconnecting
2024-01-17 19:46:25.842151 INFO qolsys_panel: Establishing connection to http://<IP_ADDRESS>:12345
2024-01-17 19:46:25.846147 ERROR qolsys_panel: error while listening
Traceback (most recent call last):
File "/config/apps/qolsysgw/qolsys/socket.py", line 72, in listen
reader, writer = await asyncio.open_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/streams.py", line 48, in open_connection
transport, _ = await loop.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 1045, in create_connection
infos = await self._ensure_resolved(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 1419, in _ensure_resolved
return await loop.getaddrinfo(host, port, family=family, type=type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 867, in getaddrinfo
return await self.run_in_executor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gaierror: [Errno -2] Name does not resolve
2024-01-17 19:46:25.849763 INFO qolsys_panel: sleeping 60 second(s) before reconnecting

Do you see anything strange in the log I posted earlier? Sorry for asking again

Solved it!  Sorry


Bug 2082492: IBMCloud: Add admin permissions to CR

IBM Cloud COS now requires access to Admin level role in order to
access COS HMAC keys during image-registry COS resource creation.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=2082492

based on 4.10.0-0.nightly-2022-05-09-181826 pre-merge test success

/lgtm
/cherrypick release-4.10

/label qe-approved
Test along with openshift/cluster-cloud-controller-manager-operator/pull/189, the image registry could be installed during installataion.
Could push or pull image to the image registry.

/cherry-pick release-4.10


Table of Contents - sections with double digits have bad spacing

hi! I have some sections that go up to 10 or 12, this is how it looks:

so it seems like there is some absolute positioning going on?
I know the answer is probably "google some more latex", and i've tried that without a lot of success, especially since the ToC is auto inserted by softcover so I don't have a lot of visibility as to what i can change and where I should change it. So I'm once again asking for help (sorry i know i have been rather needy the last few days.. thats because I'm really using the heck out of this awesome tool!). Any pointers to how to add spacing to this thing? I'm fine with it even if it means i just add absolute spacing  to the single digit sections

Heh, your guess is basically right—this is a LaTeX issue, not a Softcover issue. Unfortunately, we don’t have the resources to answer general questions about LaTeX.

The ToC isn’t inserted by Softcover, by the way: you are fully in control of that via Book.txt or <yourbookname>.tex, depending on how bare-metal your setup is (see Chapter 6 in the manual for more).

thanks Michael, I understand. i guess i was happy with the autogenerated tableofcontents inserted via Book.txt except for this one little detail 😂 I reckon what you're saying is i should remove the autogenerated one, and just write my own ToC.

leaving a trail for future adventurers - managed to figure this one out by removing the default tableofcontents from Book.txt, and dropping in a toc.md that contained
\makeatletter
\renewcommand{\l<EMAIL_ADDRESS>\renewcommand{\l<EMAIL_ADDRESS>\renewcommand{\l<EMAIL_ADDRESS>\makeatother
\tableofcontents
\newpage

resources:
    - https://www.latex-tutorial.com/tutorials/table-of-contents/
    - double digit spacing https://stackoverflow.com/questions/33093493/adding-space-after-section-numbers-in-toc


Contact form

If a device is available, then the user should be able to click on the corresponding institution in the availability section of the wiki page (https://github.com/icebreaker-science/frontend/issues/13) and a contact form will open.
This form consists of the following entries:

[x] Name

[x] Email

[x]  Message

[x] Submit Button

The contact request is then send to the server via API call https://github.com/icebreaker-science/backend/issues/17 and after a successful response the user is redirected back to the corresponding wiki page ( = the contact form closes)

waiting on icebreaker-science/backend#17 to be merged for testing

branch /feature/contact-form


Module version mismatch. Expected 49, got 48

Using electron npm start I get this
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Module version mismatch. Expected 49, got 48.
    at Error (native)
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20)
    at Object.Module._extensions..node (module.js:568:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/ingsaurabh/dp/node_modules/mdns/lib/dns_sd.js:24:20)

more info
i```
ngsaurabh@ingsaurabh:~/dp$ electron --version
v1.3.3
ingsaurabh@ingsaurabh:~/dp$ node --version
v4.2.6
ingsaurabh@ingsaurabh:~/dp$ nodejs --version
v4.2.6

That means you're running node-mdns with a version of Node ABI incompatible with the one you built the dependency with. Make sure to not change Node (major) versions between running the app and building the dependencies.

Can you please tell me how to fix it in layman terms as I am new to nodejs and electron

Ok fix the above problem by
electron-rebuild command in node_modules/./bin folder,  now too many warnings
`*** WARNING *** The program 'electron' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=electron
*** WARNING *** The program 'electron' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=electron&f=DNSServiceRegister
*** WARNING *** The program 'electron' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=electron
*** WARNING *** The program 'electron' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=electron&f=DNSServiceRegister
`

The warnings are from the compatibility layer. Please follow the link for instructions on how to disable (some of) them.


batch_face_locations performance using GPU with large datasets

System properties

Memory: 32 GB

CPU: Intel(R) Xeon(R) W-2123 CPU @ 3.60GHz

OS: Ubuntu 16.04.5 LTS 64-Bit

GPU: GTX1080 Ti 11 GB

NVIDIA-SMI 410.48

Driver Version: 410.48

Dlib Version: 19.15.0

Face Recognition Version: 1.2.3

Photo size: 240x320

Description
I have bunch of photos which I want to get the encodings and to find distance with new photos.
I am trying to use the face detection feature with batch functions. Using the cnn model and gpu it took 32 seconds to get the face detection of 4096 photos which corresponds to 128 photos per second and I am sure dlib is using cuda and gpu. Nvidia-smi output is below and dlib.DLIB_USE_CUDA outputs True. I have slightly removed the hog parts to simplfy it. Batch size is 32. If I changed the batch size up to 128, there is almost no change. The only change is the gpu memory usage. If I increase the batch size gpu memory usage increases.
If I run multiple instance of this code with different photo directory simultaneously let's say five copies (I mean five different processes on different tabs), the number of photos detected per second may scale up to almost 300 photos.
So, my question is that is it the maximum performance (128 photos per second for 240x320 sized photos with this setup) I can get?
How can I maximize my performance up to 300 photos per second with only running one process?  In my opinion somehow I should reach that performance with only running one instance, but I don't know how to do that. Which parameters should I change?
What I Did
Here is my code:
import dlib
import numpy as np
from timeit import default_timer as timer
import face_recognition_models
import dlib.cuda as cuda
from scipy.misc import imread
import os

cuda.set_device(0)
face_detector = dlib.get_frontal_face_detector()

predictor_68_point_model = face_recognition_models.pose_predictor_model_location()
pose_predictor_68_point = dlib.shape_predictor(predictor_68_point_model)

cnn_face_detection_model = face_recognition_models.cnn_face_detector_model_location()
cnn_face_detector = dlib.cnn_face_detection_model_v1(cnn_face_detection_model)

face_recognition_model = face_recognition_models.face_recognition_model_location()
face_encoder = dlib.face_recognition_model_v1(face_recognition_model)

def _rect_to_css(rect):
    return rect.top(), rect.right(), rect.bottom(), rect.left()

def _css_to_rect(css):
    return dlib.rectangle(css[3], css[0], css[1], css[2])

def _trim_css_to_bounds(css, image_shape):
    return max(css[0], 0), min(css[1], image_shape[1]), min(css[2], image_shape[0]), max(css[3], 0)

def face_locations(img, number_of_times_to_upsample=0):
    return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in cnn_face_detector(img, number_of_times_to_upsample, batch_size=32)]

def face_landmarks(face_image, face_locations=None):
    if face_locations is None:
        face_locations = face_locations(face_image)
    else:
        face_locations = [_css_to_rect(face_location) for face_location in face_locations]

    pose_predictor = pose_predictor_68_point
    return [pose_predictor(face_image, face_location) for face_location in face_locations]

def face_encodings(face_image, known_face_locations=None, num_jitters=1):
    raw_landmarks = face_landmarks(face_image, known_face_locations)
    return [np.array(face_encoder.compute_face_descriptor(face_image, raw_landmark_set, num_jitters)) for raw_landmark_set in raw_landmarks]

def _raw_face_locations_batched(images, number_of_times_to_upsample=1, batch_size=32):
    x = cnn_face_detector(images, number_of_times_to_upsample, batch_size=batch_size)
    return x

def batch_face_locations(images, number_of_times_to_upsample=1, batch_size=32):
    def convert_cnn_detections_to_css(detections):
        return [_trim_css_to_bounds(_rect_to_css(face.rect), images[0].shape) for face in detections]

    raw_detections_batched = _raw_face_locations_batched(images, number_of_times_to_upsample, batch_size)
    return list(map(convert_cnn_detections_to_css, raw_detections_batched))

files = os.listdir('/home/photos/')
images = [imread('/home/photos/' + i) for i in files]
images_array = np.array(images)
images_list = list(images_array)

start = timer()
locations = batch_face_locations(images_list,number_of_times_to_upsample=1,batch_size=32)

elapsed_time = timer() - start
print("Face detection took %f seconds " % elapsed_time)

print(dlib.DLIB_USE_CUDA)

Code Output:
Face detection took 31.295752 seconds
True

nvidia-smi Output:

It starts with 195 MB memory then it reaches to 2005 MB and then it finishes.

I think you need an SSD.

Do you think that there is a disk bound? Does it might be related to dlib?
What you say is that If I get SSD, I got performance of multiple processes by only running one, right? Because what I want is maximum utilization. Thanks for your help.

I think you need an SSD.

Do you think that there is a disk bound? Does it might be related to dlib?
What you say is that If I get SSD, I got performance of multiple processes by only running one, right? Because what I want is maximum utilization. Thanks for your help.

The small files IO performance is ten times faster with SDD. You can check the iowait on "top" command, must sure that is not too high.


fix: long-press emitting ghost clicks and thus closing popups and light sliders immediately

fixes #405
closes #407
Thought, I'd share this. It has been running here for quite some time and fixes some annoying issues. I know, it is not as full-blown as #407. But it works. And #407 hasn't seen much progress lately. The down-side of this fix is, that we really cannot click in the region of a long-press for some fixed timeout.
using the fix from here: https://gist.github.com/jtangelder/361052976f044200ea17
as suggested by hammer.js here: https://hammerjs.github.io/tips/

Just cleaned up a little and rebased to master (as otherwise, popup was failing to open).
I'm fine with this one. :)


Detect and handle breaking changes in schemas

:notebook_with_decorative_cover: Description
When changing schemas such that types are no longer a superset of previous versions of the same type, VAST may end up in a state where it cannot import events of that type.
This change makes the type registry forget about incompatible versions of types automatically when a new and incompatible type is registered.
:memo: Checklist

[x] All user-facing changes have changelog entries.
[x] The changes are reflected on docs.tenzir.com/vast, if necessary.
[x] The PR description contains instructions for the reviewer, if necessary.

:dart: Review Instructions
Commit-by-commit.

I wonder whether there's a good way to unit-test this?!

I've added a unit test as a separate commit. It isn't beautiful, but it works.

This should be reviewed by @tobim after our Slack call yesterday on the matter. The last commit is the most important one here.


Implement functionality of TTT speech assistant

User story

As a user
I want to be able to trigger a tap-to-talk (TTT) speech interaction in the speech assistant context area
So that I can simulate what the tested app does when a TTT speech interaction is triggered, e.g., when music is playing at the moment of triggering a TTT speech interaction.

With this user story, the functionality of triggering a TTT speech interaction is to be implemented, i.e., when a software button is pressed.
A PTT (push-to-talk) interaction will be implemented with #107 , i.e., when a steering wheel button in the car is pressed.
Notes
Android Automotive documentation: https://source.android.com/docs/devices/automotive/voice/voice_interaction_guide
For testing the TTT interaction, it is not essential which speech input is actually given and therefore does not need to be actually understood, i.e. the understood speech input can be faked.
It is essential for the user to see how a tested app handles it when a speech interaction is triggered, e.g., when music is currently playing.
Example 1:

Button for speech assistant on the infotainment screen is pressed (TTT-interaction).
After button was pressed, the system listens to what is being said, e.g. "I am cold."
After 5 secs, the car confirms understanding the speech input by a short audio sound, e.g. a ping sound.
The car turns up the heat.

Example 2:

Button for speech assistant on the infotainment screen is pressed (TTT-interaction) while music is playing.
After button was pressed, the music pauses and the system listens to what is being said, e.g. "Call XY."
After 5 secs, the car confirms understanding the speech input by a short audio sound, e.g. a ping sound.
The car keeps the music paused and calls person XY.

Acceptance criteria

There is a button to trigger a TTT speech interaction in the speech assistant context area.
When triggering the TTT-interaction, the speech listener takes focus and the app listens to what is being said.
When another audio action is currently running, e.g., music is playing, the action is paused-
After 5 secs, a sound should confirm that the speech input was understood (actual speech input does not have to be understood; can be faked).

Definition of done (DoD)

Code compiles and builds
Acceptance criteria are met
Tests have been written and were passed
Code is peer-reviewed
Feature is merged into development branch
Documentation is updated
Bill of Materials is updated

DoD general criteria

Feature has been fully implemented
Feature has been merged into the mainline
All acceptance criteria were met
Product owner approved features
All tests are passing
Developers agreed to release

It is not clear if we are supposed to implement a whole Voice Interaction Application(VIA). This would have the side-effect of becoming registered by the car and overriding the default VIA and therefor beeing called when pushing the real TTT button, while providing no real functionality.
Same applies to #107


sim bug fix

Summary
sim bug fix:
sim: fix context-switch when do wdog callback()
sim/gcov: Fix conflicts between fprofile-orderate and __asan_default_options
arch/sim: dataheap should disable exec permission
arch/sim: fix uart could lose log
Impact
sim
Testing
sim

[Experimental Bot, please feedback here]
This PR appears to generally meet the NuttX requirements, but could use some improvements:
Strengths:

Summary:  Provides a decent overview of the changes.  Listing the specific files changed is good.
Impact: Correctly identifies "sim" as the impacted area.
Testing: Confirms "sim" testing, but needs more detail (see below).

Areas for Improvement:

Summary:

Each bullet point in the list should be a more detailed explanation of the bug fix. For example, for "sim: fix context-switch when do wdog callback()", explain what the bug was and how the fix addresses it.
If any of these changes relate to existing issues, include the issue numbers.

Impact:

While "sim" is the area affected, you should specify if this is a new feature, a bug fix, or an enhancement.
Elaborate on any potential impact within the "sim" area.  Will this change how users interact with the simulator? Will it change the simulator's behavior in a noticeable way?

Testing:

Be much more specific:

Build Host: List the specific operating system, CPU architecture, and compiler used for testing.
Target(s):  Which simulator configurations were tested?

Provide actual testing logs (or snippets) before and after the change.  This concretely demonstrates the bug and the fix.

In short, add more detail and be specific! This helps reviewers understand your changes and ensures thorough testing.


Memory ops for RVSDG => Bril

Wire in memory ops in to_cfg. Opening a draft as there are a few questions in to_cfg I'd like to resolve.
Fixes #343

Done! This uncovered a preexisting issue with converting empty functions:
@funcA(p: ptr<int>) {
  ret;
}

@main {
  five: int = const 5;
  x: ptr<int> = alloc five;
  call @funcA x;
  free x;
}

Gets translated back correctly, but @funcA had an empty body
@funcA(p: ptr<int>) {
}

Which caused the bril interpreter to panic. I added some code to fix that.


entso-e data not updating

I'm getting "can't multiply sequence by non-int of type 'float'" in the integration tile. No data for today or tomorrow
< 2022-11-06 14:14:38.950 ERROR (MainThread) [custom_components.entsoe.coordinator] Unexpected error fetching ENTSO-e coordinator data: can't multiply sequence by non-int of type 'float'
File "/config/custom_components/entsoe/coordinator.py", line 100, in _async_update_data
File "/config/custom_components/entsoe/coordinator.py", line 85, in parse_hourprices
File "/config/custom_components/entsoe/coordinator.py", line 79, in calc_price
2022-11-06 14:14:38.962 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Day Ahead Prices' for entsoe integration not ready yet: can't multiply sequence by non-int of type 'float'; Retrying in background
2022-11-06 14:14:45.878 ERROR (MainThread) [custom_components.entsoe.coordinator] Unexpected error fetching ENTSO-e coordinator data: can't multiply sequence by non-int of type 'float'
File "/config/custom_components/entsoe/coordinator.py", line 100, in _async_update_data
File "/config/custom_components/entsoe/coordinator.py", line 85, in parse_hourprices
File "/config/custom_components/entsoe/coordinator.py", line 79, in calc_price >

See #69

I'm having the same issue.
It's caused by entsoe returning E-notation pricing for the netherlands.
Thereby causing python to treat the api returned value as an str that is passed to the rounding function (that strips up to the last 5 digits of a price).
By instructing (casting) the value to float explicitly it's working again on my instance.
@JaccoR Could you merge my PR and make an emergency release?
Since all dutch users will have a broken integration until this fix is released or until there are no more prices E notation in them

For anybody reading this you could clone this branch/repo and copy it's contents to your custom_components directory.
Then do a restart and then everything will work until jaccor releases an new version with my fix (or the upcoming days don't contain E notation pricing)

When the new release is made you can just update via hacs again to overwrite the changes made by the copying action

@sfstar
I added 'float" in the coordinator.py file and restarted but without success. I changed the file by using file editor
below my changed coordinator.py, did I do something wrong?
    template_value = self.modifyer.async_render(now=faker(), current_price=price)
    else:
        template_value = self.modifyer.async_render()

    price = round(float(template_value * (1 + self.vat)), 5)

    return price

Just to check:

The file was located in custom_components/entsoe?
After restarting and opening the file editor again the change was still present?
If so:
Could you share your error message (you can find it under settings -> system -> logs)

Hi,
answer on both your questions are yes, below the error message:
Logger: custom_components.entsoe.coordinator
Source: custom_components/entsoe/coordinator.py:74
Integration: ENTSO-e Transparency Platform (documentation, issues)
First occurred: 5:17:30 PM (4 occurrences)
Last logged: 5:18:16 PM
Unexpected error fetching ENTSO-e coordinator data: can't multiply sequence by non-int of type 'float'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/entsoe/coordinator.py", line 96, in _async_update_data
parsed_data = self.parse_hourprices(data)
File "/config/custom_components/entsoe/coordinator.py", line 80, in parse_hourprices
hourprices[hour] = self.calc_price(value=price, fake_dt=hour)
File "/config/custom_components/entsoe/coordinator.py", line 74, in calc_price
price = round(float(template_value * (1 + self.vat)), 5)
TypeError: can't multiply sequence by non-int of type 'float'

Just got another idea what it might be: are you using a custom template for calculating the costs?
If so it might be that for the vat multiplication it is also getting an str multiplication error

ow gg, yeah that is it
try changing:
price = round(float(template_value * (1 + self.vat)), 5)
to
price = round(float(template_value) * (1 + self.vat), 5)

If that works for your case I'll be updating my pr so that it's also working for custom template users

many thanks! price = round(float(template_value) * (1 + self.vat), 5) did the trick!

Had little time today, so i just merged an did a new release. Just saw your message @sfstar . So i think your update was not included..

You were just 2 minutes to early @JaccoR

I can re-open a PR or you could change it on main (if you like)

You can reopen a pr, ill approve right away

https://github.com/JaccoR/hass-entso-e/pull/70

Great thank you :)

Thanks for merging, are you capable (on mobile) of making a release? (never had to do that myself)

@JaccoR are you going to re-tag the 0.1.3 release or create an 0.1.4 release so that the PR 70 is also included?

works like a charm again! Thanks, guys.


FIFO queue not raising an error when submitting a message to it using DelaySeconds

When creating a SQS FIFO queue using:
@pytest.fixture(scope="function")
def sqs_client():
    with mock_aws():
        yield boto3.client("sqs")

@pytest.fixture(scope="function")
def test(sqs_client):
    yield sqs_client.create_queue(
        QueueName="test.fifo",
        Attributes={"FifoQueue": "true"},
    )

and then submitting a message to it using:
sqs_client.send_message(
        QueueUrl="test.fifo",
        MessageBody=params.model_dump_json(),
        DelaySeconds=5,
        MessageGroupId="test",
        MessageDeduplicationId=str(uuid4()),
    )

this should raise an error as DelaySeconds is not allowed in a fifo queue in AWS, however no error is raised when using moto.

@bblommers I can take a look at this

Hi @djones11, thanks for raising this!
This should be fixed as of moto >= 5.0.3.dev31 - please let us know if you run into any (other) issues.


CLEANUP: matrix solvers -> third_party

Fix Makefile to work on Cygwin by removing extglob requirement.

Luis confirms that this fixes #10, merging.