Use FBC as the only API for exposing catalog content on cluster

Motivation:
Right now, the content of a file-based catalog(distributed in an OCI container image) is exposed on cluster using Package and BundleMetadata APIs. However, this translation layer adds another layer of APIs, that must be maintained and supported, besides the FBC API, without adding any extra value to the goal of exposing the catalog metadata on cluster. Since the FBC API itself is
a) Already an API we will be maintaining and providing support guarantees for
b) Is sufficient to communicate all of the information in the catalog to the on-cluster consumers (as opposed to the legacy sqlite db API that needed the translation in order to be interpretable/consumable)
the FBC API should be exposed without any translation on cluster.
Goal:
One way to go about this is consolidating the Package/BundleMetadata APIs to a single CatalogMetadata API, that contains the schemas in it's spec field.
For eg, for a package foo that has bundles foo.v0.1.0 and foo.v0.2.0, the following CatalogMetadata objects would be created:
kind: CatalogMetdata
metadata:
    labels:
       catalog: bar
       name: foo.v0.1.0
       package: foo
       schema: olm.bundle
    name: foo.v0.1.0
spec:
   catalog: bar
   package: foo
   schema: olm.bundle
   content:
      <fbc blob rendered as yaml>
       .
       .

kind: CatalogMetdata
metadata:
    labels:
       catalog: bar
       name: foo.v0.2.0
       package: foo
       schema: olm.bundle
    name: foo.v0.2.0
spec:
   catalog: bar
   package: foo
   schema: olm.bundle
   content:
      <fbc blob rendered as yaml>
       .
       .

kind: CatalogMetdata
metadata:
    labels:
       catalog: bar
       name: foo.v0.1.0
       package: foo
       schema: olm.package
    name: foo
spec:
   catalog: bar
   package: foo
   schema: olm.package
   content:
      <fbc blob rendered as yaml>
       .
       .

This would allow clients to query for the content on cluster in a kube native way by taking advantage of the label selectors, and read the content off of the CatalogMetadata objects.
$ kubectl get catalogmetadata -l package=foo
NAME         CATALOG       SCHEMA        PACKAGE
foo           bar         olm.package    foo
foo.v0.1.0    bar         olm.bundle     foo
foo.v0.2.0    bar         olm.bundle     foo

@joelanford's POC that can be used as a resource/reference: https://github.com/joelanford/catalogd
Relevant parts are about label selectors.
Acceptance Criteria:

Package and bundle metadata api are removed and replaced with catalog metadata api
spec.content of the api has individual FBC blobs
labels mentioned in description are implemented for each CR

Another thing to note for this new API, the current BundleMetadata CRs get built using the values for properties from declCfg as they are, which ends up looking something like this:
spec:
  catalogSource: catalogsource-sample
  image: quay.io/operatorhubio/argocd-operator@sha256:5f4533de114e9301e836155190dc2c66a969f55085af03a4959a2fb0af74e1f4
  package: argocd-operator
  properties:
  - type: olm.gvk
    value: ewogICAgICAgICAgICAgICAgImdyb3VwIjogImFyZ29wcm9qLmlvIiwKICAgICAgICAgICAgICAgICJraW5kIjogIkFwcFByb2plY3QiLAogICAgICAgICAgICAgICAgInZlcnNpb24iOiAidjFhbHBoYTEiCiAgICAgICAgICAgIH0=
  - type: olm.gvk
    value: ewogICAgICAgICAgICAgICAgImdyb3VwIjogImFyZ29wcm9qLmlvIiwKICAgICAgICAgICAgICAgICJraW5kIjogIkFwcGxpY2F0aW9uIiwKICAgICAgICAgICAgICAgICJ2ZXJzaW9uIjogInYxYWxwaGExIgogICAgICAgICAgICB9
  - type: olm.gvk
    value: ewogICAgICAgICAgICAgICAgImdyb3VwIjogImFyZ29wcm9qLmlvIiwKICAgICAgICAgICAgICAgICJraW5kIjogIkFwcGxpY2F0aW9uU2V0IiwKICAgICAgICAgICAgICAgICJ2ZXJzaW9uIjogInYxYWxwaGExIgogICAgICAgICAgICB9
  - type: olm.gvk
    value: ewogICAgICAgICAgICAgICAgImdyb3VwIjogImFyZ29wcm9qLmlvIiwKICAgICAgICAgICAgICAgICJraW5kIjogIkFyZ29DRCIsCiAgICAgICAgICAgICAgICAidmVyc2lvbiI6ICJ2MWFscGhhMSIKICAgICAgICAgICAgfQ==
  - type: olm.gvk
    value: ewogICAgICAgICAgICAgICAgImdyb3VwIjogImFyZ29wcm9qLmlvIiwKICAgICAgICAgICAgICAgICJraW5kIjogIkFyZ29DREV4cG9ydCIsCiAgICAgICAgICAgICAgICAidmVyc2lvbiI6ICJ2MWFscGhhMSIKICAgICAgICAgICAgfQ==
  - type: olm.package
    value: ewogICAgICAgICAgICAgICAgInBhY2thZ2VOYW1lIjogImFyZ29jZC1vcGVyYXRvciIsCiAgICAgICAgICAgICAgICAidmVyc2lvbiI6ICIwLjUuMCIKICAgICAgICAgICAgfQ==
  relatedImages:
  - image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
    name: ""
  - image: quay.io/argoprojlabs/argocd-operator@sha256:2f5c0d4567607266ccacb91d8c2e3b18c2afe0edaf55855dcb1a06b02173b520
    name: ""
  - image: quay.io/operatorhubio/argocd-operator@sha256:5f4533de114e9301e836155190dc2c66a969f55085af03a4959a2fb0af74e1f4
    name: ""

New API should unmarshall these content to make sure they're not base64 encoded data.

CRs get built using the values for properties from declCfg as they are, which ends up looking something like this

@anik120 I wonder if this is because something is interpreting them as []byte values? If you JSON marshal a []byte, it ends up being base64 encoded. To avoid that, the values need to be treated as json.RawMessage (which is how they are in operator-registry)

I wonder if this is because something is interpreting them as []byte values? If you JSON marshal a []byte, it ends up being base64 encoded. To avoid that, the values need to be treated as json.RawMessage (which is how they are in operator-registry)

This is the case as we are doing this here:
https://github.com/operator-framework/catalogd/blob/8ec44671ac7404d9bf335ecd0eb8389d255e4975/pkg/apis/core/v1beta1/bundlemetadata_types.go#L71-L78
IIRC there were some problems using the types in operator-registry in a CR that would require some changes in operator-registry itself so we rolled our own implementation for the time being. I remember trying to use the json.RawMessage type but for some reason kept running into a weird unmarshalling error so I just set it as []byte with the intention of updating it in the future (that future likely being the PR that resolves this issue)

Ok, it should be doable in a CR with runtime.RawExtension. Here's how we do it in rukpak: https://github.com/operator-framework/rukpak/blob/0876db6a30de0aaa6ce5651e2e24f5f6d5766e22/api/v1alpha1/bundledeployment_types.go#L51-L53


Fix dns validation processing

what
Certificates with wildcards cause invalid processing.
why
Allow the DNS processing to work with wildcard certificates
references
Fixes #30

/test all

I took a look at the error and it's occurring for Terraform 0.12, I've tried multiple work arounds, but I can't get it to actually work without hitting the deterministic error.
I'm currently using Terraform 0.13, and my fork of the repo with these changes is working fine.
There are several changes to examples/complete for Terraform 0.13 to work, I can attach them to this PR if desired.

I reverted back to the length(var.subject_alternative_names) + 1 and tested that this is working in TF 0.12.29, and 0.13.5.

/test all


Fix building.

The build is performed by cmake. Add missing  header and use
cblas/cblas.h instead of cblas.h.
close #635

Looks like Jenkins job is stuck, will try to rerun.


[sql] Using read_sql_query instead of read_sql

The Pandas read_sql method either reads a SQL query or a database table (we require only the former) into a DataFrame. This results in an additional query (for non-SQLite databases) to determine whether the sql object represents a SQL query or table name. This is unnecessary as the sql object is always a SQL statement when called from get_df.
This PR uses the read_sql_query method instead which merely reads the SQL query into a DataFrame thus saving us executing an unnecessary statement.

Codecov Report

Merging #4853 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #4853   +/-   ##
=======================================
  Coverage   76.96%   76.96%
=======================================
  Files          44       44
  Lines        8534     8534
=======================================
  Hits         6568     6568
  Misses       1966     1966

Impacted Files
Coverage Δ

superset/models/core.py
86.54% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM


Default config doesn't include RecentComponents when reset

Resetting config to defaults via NeosModSetting doesn't appear to add in the 'RecentComponents' list leading the full config to be {"version":"1.0.0","values":{"RecentCap":32}}
Adding new entries having not restarted doesn't appear to then add that field and logs:
System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at FrooxEngine.WorkerInitializer+<>c.<Initialize>b__23_2 (System.Type t) [0x00000] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.CategoryNode`1[T].<EnsureSorted>b__19_0 (T a, T b) [0x00012] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at System.Collections.Generic.ArraySortHelper`1[T].PickPivotAndPartition (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison`1[T] comparer) [0x00052] in <9577ac7a62ef43179789031239ba8798>:0
  at System.Collections.Generic.ArraySortHelper`1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison`1[T] comparer) [0x00069] in <9577ac7a62ef43179789031239ba8798>:0
  at System.Collections.Generic.ArraySortHelper`1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison`1[T] comparer) [0x00015] in <9577ac7a62ef43179789031239ba8798>:0
  at System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison`1[T] comparer) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
   --- End of inner exception stack trace ---
  at System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison`1[T] comparer) [0x00020] in <9577ac7a62ef43179789031239ba8798>:0
  at System.Collections.Generic.List`1[T].Sort (System.Comparison`1[T] comparison) [0x00012] in <9577ac7a62ef43179789031239ba8798>:0
  at FrooxEngine.CategoryNode`1[T].EnsureSorted () [0x0001a] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.CategoryNode`1[T].get_Elements () [0x00000] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at (wrapper dynamic-method) FrooxEngine.ComponentAttacher.FrooxEngine.ComponentAttacher.BuildUI_Patch3(FrooxEngine.ComponentAttacher,string,bool)
  at FrooxEngine.ComponentAttacher.OnOpenCategoryPressed (FrooxEngine.IButton button, FrooxEngine.ButtonEventData eventData, System.String path) [0x00000] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.UIX.ButtonRelay`1[T].OnPressed (FrooxEngine.IButton button, FrooxEngine.ButtonEventData eventData) [0x0001d] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.UIX.ButtonRelayBase.Pressed (FrooxEngine.IButton button, FrooxEngine.ButtonEventData eventData) [0x00062] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.UIX.Button+<>c__DisplayClass65_0.<RunPressed>b__0 (FrooxEngine.IButtonPressReceiver r) [0x00000] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.ContainerWorker`1[C].ForeachComponent[T] (System.Action`1[T] callback, System.Func`2[T,TResult] callbackStopper, System.Boolean cacheItems, System.Boolean excludeDisabled) [0x00034] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.ContainerWorker`1[C].ForeachComponent[T] (System.Action`1[T] callback, System.Boolean cacheItems, System.Boolean exludeDisabled) [0x00000] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at (wrapper dynamic-method) FrooxEngine.UIX.Button.FrooxEngine.UIX.Button.RunPressed_Patch1(FrooxEngine.UIX.Button,FrooxEngine.ButtonEventData)
  at FrooxEngine.UIX.Button.OnPressBegin (FrooxEngine.UIX.Canvas+InteractionData eventData) [0x00035] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.UIX.InteractionElement.ProcessEvent (FrooxEngine.UIX.Canvas+InteractionData eventData) [0x00235] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.UIX.Canvas.ProcessTouchEvent (FrooxEngine.TouchEventInfo& eventInfo, System.Collections.Generic.List`1[T] filters) [0x00398] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.UIX.Canvas.OnTouch (FrooxEngine.TouchEventInfo& eventInfo) [0x00000] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.UIX.Canvas.FrooxEngine.ITouchable.OnTouch (FrooxEngine.TouchEventInfo& eventInfo) [0x00000] in <a6ff441fca7c4a97bc5b9dca720b524b>:0
  at FrooxEngine.TouchSource.SendTouchEvent (FrooxEngine.ITouchable touchable, FrooxEngine.TouchEventInfo& touchInfo) [0x00018] in <a6ff441fca7c4a97bc5b9dca720b524b>:0

   at void BaseX.UniLog.Error(string message, bool stackTrace)
   at void FrooxEngine.DebugManager.Error(object obj, bool stackTrace)
   at void FrooxEngine.TouchSource.SendTouchEvent(ITouchable touchable, in TouchEventInfo touchInfo)
   at void FrooxEngine.TouchSource.UpdateCurrentTouchable(ITouchable touchable, in float3 point, in float3 direction, in float3 directHitPoint, bool touch)
   at void FrooxEngine.TouchSource.UpdateTouch()
   at void FrooxEngine.InteractionLaser.UpdateLaser(Nullable<float> maintainDistance, Nullable<float> overrideSmoothing, Nullable<InteractionOrigin> overrideOrigin, bool targettingOnly)
   at void FrooxEngine.CommonTool.UpdateInteractionAndLaser(bool targettingOnly)
   at void FrooxEngine.CommonTool.OnInputEvaluate()
   at void FrooxEngine.InputGroup.Update(float deltaTime)
   at void FrooxEngine.InputBindingManager.Update()
   at bool FrooxEngine.World.FrooxEngine.World.RefreshStep_Patch1(World)
   at bool FrooxEngine.World.Refresh()
   at void FrooxEngine.WorldManager.UpdateStep(double maxMilliseconds)
   at bool FrooxEngine.WorldManager.RunUpdateLoop(double maxMilliseconds)
   at void FrooxEngine.Engine.UpdateStep(double maxMilliseconds)
   at void FrooxEngine.Engine.RunUpdateLoop(double maxMilliseconds)
   at void FrooxEngineRunner.Update()```

Couldn't reproduce this, NMS doesn't touch internal only settings for me.
I added a bit to the on config change that should prevent any fuckery when unsetting the value though.
I'll post it on your other issue so you can test.


Feature/update engine version

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Support yyyyMMdd in GetTimestamp operator for LEGACY mode [databricks]

closes #11445
This PR supports yyyyMMdd in GetTimestamp operator for LEGACY mode
Note: this PR introduced inconsistent behavior compared to Spark:
Spark behavior:
  "20240101"  =>  2024-01-01
  "202401 01" =>  2024-01-01
  "2024 0101" =>  invalid
  "202411"    =>  invalid
  "2024101"   =>  2024-10-01  // Note: 10-01 not 01-01
  "202411"    =>  invalid

GPU only support 8 digit strings.

build

Building failed due to https://github.com/NVIDIA/spark-rapids/issues/11436
Errors:
[2024-09-09T10:14:38.020Z] - extract mortgage data *** FAILED ***
[2024-09-09T10:14:38.021Z]   0 did not equal 10000 (MortgageSparkSuite.scala:65)

Looks like this change will also add yyyyMMdd support for all the related date time expressions, e.g. from_unix, data_format ...
We may need tests for them too.

build

Looks like this change will also enable yyyyMMdd support for all the relevant date time expressions, e.g. from_unix, data_format ... We may need tests for them too.

Updated cases.

build

Looks good to me.

build

Spark 400 building failure is related to https://github.com/NVIDIA/spark-rapids/issues/11479


add aetrootzone option to workflow

Includes 4th pseudo-framework option (AETROOTZONE) to standalone workflow test.  Closes issue #109.

@ajkhattak - expect add-to-project check to fail.  We are still actively testing this one....


Add kerberos-cloudkerberosticketretrievalenabled

Description
Adding a Kerberos setting

Learn Build status updates of commit 4bb6849:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows/client-management/mdm/policy-configuration-service-provider.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

Thanks for the submissing @SvenAelterman! I'm working on some changes to the format of CSP docs, which will obsolete this PR so I'm closing this PR.

@vinaypamnani-msft When will the CSP docs format be updated?

@SvenAelterman Majority of the CSP docs have already been updated.


disabled Examples that will work in 2023R1 only

Fix for aedtdocs.pyansys.com

@maxcapodi78 Do you want us to create a branch named 23.1 and reinstate those examples in it? or 23.1 beta? If yes, I can do it.

not needed for now. I guess only examples are affected


push constant

Push constants are useful for specifying per draw data such as a draw id and are very fast to access from the shader
UPDATE_FREQ_PER_DRAW  descriptorset should be removed
vulkan: push_constant
directx12: cbuffer

done


Add authorship section to CONTRIBUTOR.md

Relates to #152, #158
Suggestion:

Authorship
Thank you for contributing to this repo! If you would like to be cited as an author/contributor of this project please open a PR adding yourself to the .zenodo.json file along with your ORCID ID.

@ryanhausen thoughts on the above text suggestion?


Unclear, which dependencies needed for node adapter at runtime

Astro Info
Not relevant

If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
It seems that having only @astrojs/node as runtime dependency fails.
Adding the whole "astro" package to runtime dependencies is an overkill, but also not enough.
What's the expected result?
It should be clearly stated which astro dependencies should be in dev, and which are needed for runtime, possibly a minimal set, not everything that is required for building.
Link to Minimal Reproducible Example
Not relevant
Participation

[ ] I am willing to submit a pull request for this issue.

Hi! We actually do document a recommendation to put everything in dependencies to start, and then use devDependencies when you find a specific need to do so. In most cases, for Astro it doesn't make a difference. When it does, you can then use devDependencies: https://docs.astro.build/en/core-concepts/project-structure/#packagejson
We have discussed this internally a few times, and we do tend to always come back to this statement, so I don't think we'll be updating it at this time.


Exception raised when parsing null values or empty lists.

After trying to parse some json strings with https://charafau.github.io/json2builtvalue/, it throws a RangeError exception when trying to parse empty lists and null values, e.g.:
{   "a": 1,   "b": 2,   "c": [],   "d": null }
Wouldn't it be better if you return dynamic types in this cases?

thanks for comment. To be honest I'm not sure what would be the best case to support this case, the point of model class is to have strong type (now even more with dart2). In my opinion generator should show error when json is not valid.

I understand, at first I was wondering what datatype you should return. But as the null value is unknown, I guess dynamic would fit better.

Sorry for wrong response, I usually don't put nulls in json so it takes me long to fix those. As for me it should probably skip that if someone put 'null' in json

I see it fit, if there's null, you could skip it.


Update constraints when setting center, zoom or rotation

Fixes #9396.

Closing in favor of #9404.


Create the student member profile page

Moved closer to the solution of this issue after implementing tie alumni with studmem and solving issue #2.
Now, simply have to show all the alumni with a link to their profile page, on the student's profile page.

this file is in views > student_member > show.html.erb .....right..???

@aniarya82
Currently, there's no navbar.
There are just two navbar-justified-pills in the layouts/application.html.erb file.
You need to change that into a full navbar. once you put it in the navbar, it will appear everywhere. Also, you have to manage the options that are shown depending on who is signed in, etc.

@aniarya82
Yes! :smile:

@aniarya82
You need to show a table consisting the brief details of all the alumni assigned to the student member who is signed in. (Include the status variables, and name, hall, department. That should be fine. Also, include a serial number as the first column. )


4.0.0: Slightly improve Dashboard Map Performance

Instead of rendering each block one by one, we first render a black background, then skip rendering blocks that are outside the chunk boundary / air block.
A bit of a band-aided solution, but should get us from ~5FPS to 30-ish FPS when zoomed-out, at least until someone took the effort to remake the map rendering in a performant way

Superseded by #808


Not able to convert onnx model

i was trying to convert onnx model to keras model i was getting error i tried several methods but no use. needed help from community  below i am providing the link to the onnx model
link: https://github.com/zabir-nabil/onnx-face-liveness/raw/main/face_liveness.onnx

maybe you can try this tool : https://github.com/MPolaris/onnx2tflite


lib: Create make-btrfs-fs library to match make-ext4-fs.

I wrote this up when I was playing with a btrfs sd card, and
figured that it would be useful for others.

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/raspberry-pi-nixos-on-btrfs-root/14081/11

Should there be a compressImage option? https://github.com/NixOS/nixpkgs/blob/cd39cf1dbf3ead1df5f719146806fd98779529c1/nixos/lib/make-ext4-fs.nix#L90-L93

Should there be a compressImage option?
https://github.com/NixOS/nixpkgs/blob/cd39cf1dbf3ead1df5f719146806fd98779529c1/nixos/lib/make-ext4-fs.nix#L90-L93
perhaps btrfs builtin compression?

I also think this would be beneficial but then you need root as you need to mount the filesystem for that. Or we would need to ask upstream if they could implement that without needing to mount.

Should there be a compressImage option?
https://github.com/NixOS/nixpkgs/blob/cd39cf1dbf3ead1df5f719146806fd98779529c1/nixos/lib/make-ext4-fs.nix#L90-L93
perhaps btrfs builtin compression?

I also think this would be beneficial but then you need root as you need to mount the filesystem for that. Or we would need to ask upstream if they could implement that without needing to mount.

btrfs builtin compression would be good but the resulting image could also be compressed like in make-ext4

I'll merge this and improvements can be added later when someone wants them

After merging, I saw that the author had already made the improvements in 2022 but on sr.ht https://git.sr.ht/~c00w/nixpkgs/tree/sdimagebtrfs/item/nixos/lib/make-btrfs-fs.nix


Linking a pre-existing .a file to esp32-s3 project(IDFGH-12188)

          It should be the same as in plain old CMake:

add_library(<library-name> STATIC <your-source-files>)

That should compile your source files and archive them to a .a file. You can then link it to the enclosing component:
target_link_libraries(COMPONENT_LIB <PUBLIC|PRIVATE> <library-name>)

Or am I missing something with your question?
Originally posted by @renzbagaporo in https://github.com/espressif/esp-idf/issues/3613#issuecomment-500682359
I have added library and set property.  However, I don't understand what should go in the place of COMPONENT_LIB in the below statement.
"target_link_libraries(COMPONENT_LIB <PUBLIC|PRIVATE> )"
I have tried this"target_link_libraries(lib PUBLIC libalgobsec)  ", but it has built error.
Please look at my device tree below and CMakeList.txt.

Thanks for you help!

@mlaliwala28 Which IDF version are you using? Also, your screenshot didn't seem to attach properly. Instead of the screenshot, could you please attach you CMakeLists.txt file as text? Thanks.

I see, in this case your use case should be covered by this example project: https://github.com/espressif/esp-idf/tree/master/examples/build_system/cmake/import_prebuilt
In particular, https://github.com/espressif/esp-idf/blob/5f4249357372f209fdd57288265741aaba21a2b1/examples/build_system/cmake/import_prebuilt/main/CMakeLists.txt#L6-L10

Ivan,
Thanks for your response, but I don't think that I understand the CMake
file, since I am new to it.  I understand that the example shows how you
can prebuild *.a file.  However, I don't need a pre-build step since my
file is already existing.  I just need to add_prebuilt_library. I tried to
set up a similar structure with similar folder names, but it is not working
for me.  Please excuse my ignorance!  Below is the screen capture of my
project with CMakeList.txt file.
[image: image.png]
Thanks!
Mehul
On Sat, Feb 24, 2024 at 4:07 AM Ivan Grokhotkov @.***>
wrote:

I see, in this case your use case should be covered by this example
project:
https://github.com/espressif/esp-idf/tree/master/examples/build_system/cmake/import_prebuilt
In particular,
https://github.com/espressif/esp-idf/blob/5f4249357372f209fdd57288265741aaba21a2b1/examples/build_system/cmake/import_prebuilt/main/CMakeLists.txt#L6-L10
—
Reply to this email directly, view it on GitHub
https://github.com/espressif/esp-idf/issues/13243#issuecomment-1962305408,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBHKNV2ULJLIJU6YLRWKYYDYVGUTJAVCNFSM6AAAAABDW36KYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGMYDKNBQHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Please read the README of the project: https://github.com/espressif/esp-idf/tree/5f4249357372f209fdd57288265741aaba21a2b1/examples/build_system/cmake/import_prebuilt
You can skip the prebuilding part and use your own library.
Also, those screen captures are really not working.

Hi Roland,
Thanks for the information!  I had read readme before my previous email.
However, the *.a file is provided by the manufacturer, so I do not have *.c
or *.h files.  Only *.h and *.a files were provided. Hre is the list of *.h
files, datatype.h, bsec_interface.h, and bsec_interface_multi.h.  Sorry for
my ignorance again, but can you recompile *.a file? I thought that I was
already on the second step since I have *.a file already.
I have attached a project.  I am sorry that I may be missing a point, but I
am new to CMakes and ESP.
Thank you so much for your help.
Sincerely,
Mehul
On Mon, Feb 26, 2024 at 1:54 AM Roland Dobai @.***>
wrote:

Please read the README of the project:
https://github.com/espressif/esp-idf/tree/5f4249357372f209fdd57288265741aaba21a2b1/examples/build_system/cmake/import_prebuilt
You can skip the prebuilding part and use your own library.
Also, those screen captures are really not working.
—
Reply to this email directly, view it on GitHub
https://github.com/espressif/esp-idf/issues/13243#issuecomment-1963433523,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBHKNV2BJTB26S5EDK75AJ3YVQWTXAVCNFSM6AAAAABDW36KYOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRTGQZTGNJSGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

@mlaliwala28 as mentioned earlier, the https://github.com/espressif/esp-idf/tree/5f4249357372f209fdd57288265741aaba21a2b1/examples/build_system/cmake/import_prebuilt example should cover this use-case.
If you are still having issues using this, then please re-open this ticket, preferably with an example project that can help us reproduce this issue.


Reactions of messages isn't updated automatically

Description
When messages has been viewed by me, my Telegram client doesn't update their reactions next time I open them. I have to add / edit / remove my reaction to manually make the client fetch the newest data of them.
More info
System: Windows 11 build 22000.593
Client: Unigram (version 8.6.7342)

Fixed in Unigram 8.7


[Demo] Lottie Web

A new day and a new demo 🚀 :)
Demo type:  Network Status (ECT)
Toggle: Yes
Toggle label: "Slow network on/off"
Default state: Toggle off
Libraries involved: Lottie Web https://airbnb.io/lottie/

Lottie is a library for Android, iOS, Web, and Windows that parses Adobe After Effects animations exported as json with Bodymovin and renders them natively on mobile and on the web

An advantage of using Lottie is saving space. The fact that JSON format uses much less space than PNG sequences has a direct impact on the app download and installation time.

While Lottie is great for desktop and high-end devices, it can have a large JSON payload size. Here's an example where the animation is 265KB of JSON and the Lottie library itself adds another 62KB:

Let's create a demo using https://codepen.io/airnan/full/MPmQQB as a base where we by default we show a screenshot of the animation (first frame). When the toggle is set to on, we will load Lottie and the animation JSON for a nicer experience.
Lottie Web itself and the JSON should only be dynamically loaded as needed, we should avoid including them in the base bundle if you're only loading the image.
Credits:
We should add a link to "Markus Magnusson's Halloween Smashdown" that links to the original CodePen and include the author's name for credit.
cc @anton-karlovskiy

@addyosmani
I think we should consider https://github.com/GoogleChromeLabs/adaptive-loading/issues/65 as the project naming sounds a bit confusing as some projects are mingled with both resource loading and code-splitting, code splitting and animation toggling.
For example, I think this project can be named like react-lottie-network-aware-loading, react-lottie-network-code-splitting, react-lottie-network-animation-toggling.
What are your thoughts?

For this specific demo I would use react-lottie-network-aware-loading. I would say we can revisit proposals for renaming once the latest demos are complete.
I agree that the naming scheme needs improvement. Part of this may be that we are trying to include the category / class of optimization inside every single title. Instead, later on, maybe we should look at having a clearer directory structure to solve this. e.g /resource-loading/demo-name, /code-splitting/demo-name etc.

@addyosmani
Yes, I got your points.


Add DueBefore to /active instances endpoint

This is the same as https://github.com/Altinn/app-lib-dotnet/pull/177, but to add DueBefore in addition to PresentationValues
It seems obvious that due date is just as relevant as PresentationValues in this view.
CC: @tjololo
Verification

[x] Your code builds clean without any errors or warnings
[ ] Manual testing done (required)
[ ] Relevant automated test added (if you find this hard, leave it and we'll help out)
[ ] All tests run green

Documentation

[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

Just a quick check, do we cover both with value and without value in the tests?

Actually I forgot to add DueDate to one of the test cases. It is added now.


undefined method `caching_tag_list_on?'

Since #403 was applied, I'm getting an error rendering a tag_list because the caching_xxx_on? method_on method has not been added. This is rails 4.0.2 working against the acts-as-taggable-on master. It seems that using base.connected? doesn't work reliably on initialization and causes errors later if these methods have not been defined.
Stacktrace is not very interesting but here it is:
Showing /Users/aaron/sites/mixxter/app/views/admin/sites/_form.html.erb where line #5 raised:

undefined method `caching_tag_list_on?' for #<Class:0x007fc65e0ea6d8>
Extracted source (around line #5):

    wrapper: :bootstrap3_horizontal, defaults: {column_html: {class: "controls col-sm-9"}, label_html: {class: "col-sm-3"} },
    html: {class: "form-horizontal", role: "form"} do |f| %>
    <%= f.input :name %>
    <%= f.input :tag_list %>
    <%= f.input :description, input_html: {class: 'auto'} %>

    <div class="form-group">

Trace of template inclusion: app/views/admin/sites/edit.html.erb, app/views/admin/sites/show.html.erb

Rails.root: /Users/aaron/sites/mixxter

Application Trace | Framework Trace | Full Trace
app/views/admin/sites/_form.html.erb:5:in `block in _app_views_admin_sites__form_html_erb__4128459791633110155_70244962879300'
app/views/admin/sites/_form.html.erb:1:in `_app_views_admin_sites__form_html_erb__4128459791633110155_70244962879300'
app/views/admin/sites/edit.html.erb:9:in `_app_views_admin_sites_edit_html_erb___2528484288122667039_70244963004780'
app/views/admin/sites/show.html.erb:1:in `_app_views_admin_sites_show_html_erb___3959670009797880860_70244963057000'
app/controllers/application_controller.rb:88:in `set_timezone'

This isn't fixed, unfortunately. I've come across this doing a Rails 4->5 migration and have noticed something interesting. I added some logger calls to the ActiveRecord::Base.columns monkey patch and found that it's being called sporadically. I'm not 100% sure why, but this is what I see in Rails console:
Article.last.tag_list raises an exception about the missing method
a = Article.last; a.tag_list will work.
I'm not sure why this is the issue, but it's what I am seeing, and can repeat 100% locally.

It may be related to calling the (missing) method on the activemodel relation (foo.last.tag_list or foo.person.tag_list) as opposed to the final object (foo.person ; foo.person.tag_list )

I'm seeing this as well, Rails 4 -> 5 upgrade. What I've found is after the error happens, going back to the console and calling foo.person.tag_list directly will work and the error no longer happens for that session.

Gemfile version:
acts-as-taggable-on (4.0.0)

Stack Trace:
Completed 500 Internal Server Error in 716ms (ActiveRecord: 91.1ms)

NoMethodError - undefined method `caching_tag_list_on?' for #<Class:0x007fa6abba7eb8>:
  activerecord (5.0.0) lib/active_record/dynamic_matchers.rb:21:in `method_missing'
  attr_encrypted (3.0.3) lib/attr_encrypted.rb:295:in `method_missing'
  attr_encrypted (3.0.3) lib/attr_encrypted/adapters/active_record.rb:129:in `method_missing_with_attr_encrypted'
  acts-as-taggable-on (4.0.0) lib/acts_as_taggable_on/taggable/core.rb:286:in `tag_list_cache_on'
  acts-as-taggable-on (4.0.0) lib/acts_as_taggable_on/taggable/core.rb:295:in `tag_list_on'
  acts-as-taggable-on (4.0.0) lib/acts_as_taggable_on/taggable/core.rb:39:in `specialization_list'
  app/views/jobs/summary/_specialization.html.erb:6:in `_app_views_jobs_summary__specialization_html_erb__715560487591950680_70176910023640'
  actionview (5.0.0) lib/action_view/template.rb:158:in `block in render'
  activesupport (5.0.0) lib/active_support/notifications.rb:166:in `instrument'
  actionview (5.0.0) lib/action_view/template.rb:348:in `instrument'
  actionview (5.0.0) lib/action_view/template.rb:156:in `render'
  actionview (5.0.0) lib/action_view/renderer/partial_renderer.rb:343:in `render_partial'
  actionview (5.0.0) lib/action_view/renderer/partial_renderer.rb:311:in `block in render'
  actionview (5.0.0) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
  activesupport (5.0.0) lib/active_support/notifications.rb:164:in `block in instrument'
  activesupport (5.0.0) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  activesupport (5.0.0) lib/active_support/notifications.rb:164:in `instrument'
  actionview (5.0.0) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
  actionview (5.0.0) lib/action_view/renderer/partial_renderer.rb:310:in `render'
  actionview (5.0.0) lib/action_view/renderer/renderer.rb:47:in `render_partial'
  actionview (5.0.0) lib/action_view/renderer/renderer.rb:21:in `render'
  actionview (5.0.0) lib/action_view/helpers/rendering_helper.rb:32:in `render'
  app/views/jobs/_row.html.erb:16:in `_app_views_jobs__row_html_erb__2748290585986942527_70176916820720'
  actionview (5.0.0) lib/action_view/template.rb:158:in `block in render'
  activesupport (5.0.0) lib/active_support/notifications.rb:166:in `instrument'
  actionview (5.0.0) lib/action_view/template.rb:348:in `instrument'
  actionview (5.0.0) lib/action_view/template.rb:156:in `render'
  actionview (5.0.0) lib/action_view/renderer/partial_renderer.rb:343:in `render_partial'
  actionview (5.0.0) lib/action_view/renderer/partial_renderer.rb:311:in `block in render'
  actionview (5.0.0) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
  activesupport (5.0.0) lib/active_support/notifications.rb:164:in `block in instrument'
  activesupport (5.0.0) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  activesupport (5.0.0) lib/active_support/notifications.rb:164:in `instrument'
  actionview (5.0.0) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
  actionview (5.0.0) lib/action_view/renderer/partial_renderer.rb:310:in `render'
  actionview (5.0.0) lib/action_view/renderer/renderer.rb:47:in `render_partial'
  actionview (5.0.0) lib/action_view/renderer/renderer.rb:21:in `render'
  actionview (5.0.0) lib/action_view/helpers/rendering_helper.rb:32:in `render'
  app/views/super/dashboard/index.html.erb:7:in `block in _app_views_super_dashboard_index_html_erb__2839787348230277349_70176916693820'
  activerecord (5.0.0) lib/active_record/relation/delegation.rb:38:in `each'
  app/views/super/dashboard/index.html.erb:6:in `_app_views_super_dashboard_index_html_erb__2839787348230277349_70176916693820'
  actionview (5.0.0) lib/action_view/template.rb:158:in `block in render'
  activesupport (5.0.0) lib/active_support/notifications.rb:166:in `instrument'
  actionview (5.0.0) lib/action_view/template.rb:348:in `instrument'
  actionview (5.0.0) lib/action_view/template.rb:156:in `render'
  actionview (5.0.0) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
  actionview (5.0.0) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
  activesupport (5.0.0) lib/active_support/notifications.rb:164:in `block in instrument'
  activesupport (5.0.0) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  activesupport (5.0.0) lib/active_support/notifications.rb:164:in `instrument'
  actionview (5.0.0) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
  actionview (5.0.0) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
  actionview (5.0.0) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
  actionview (5.0.0) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
  actionview (5.0.0) lib/action_view/renderer/template_renderer.rb:14:in `render'
  actionview (5.0.0) lib/action_view/renderer/renderer.rb:42:in `render_template'
  actionview (5.0.0) lib/action_view/renderer/renderer.rb:23:in `render'
  actionview (5.0.0) lib/action_view/rendering.rb:103:in `_render_template'
  actionpack (5.0.0) lib/action_controller/metal/streaming.rb:217:in `_render_template'
  actionview (5.0.0) lib/action_view/rendering.rb:83:in `render_to_body'
  actionpack (5.0.0) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
  actionpack (5.0.0) lib/action_controller/metal/renderers.rb:144:in `render_to_body'
  actionpack (5.0.0) lib/abstract_controller/rendering.rb:26:in `render'
  actionpack (5.0.0) lib/action_controller/metal/rendering.rb:36:in `render'
  actionpack (5.0.0) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
  activesupport (5.0.0) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
  /Users/mike/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
  activesupport (5.0.0) lib/active_support/core_ext/benchmark.rb:12:in `ms'
  actionpack (5.0.0) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
  actionpack (5.0.0) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
  activerecord (5.0.0) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
  actionpack (5.0.0) lib/action_controller/metal/instrumentation.rb:43:in `render'
  remotipart (1.3.1) lib/remotipart/render_overrides.rb:16:in `render_with_remotipart'
  actionpack (5.0.0) lib/action_controller/metal/implicit_render.rb:36:in `default_render'
  actionpack (5.0.0) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action'
  actionpack (5.0.0) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
  actionpack (5.0.0) lib/abstract_controller/base.rb:188:in `process_action'
  actionpack (5.0.0) lib/action_controller/metal/rendering.rb:30:in `process_action'
  actionpack (5.0.0) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
  activesupport (5.0.0) lib/active_support/callbacks.rb:126:in `call'
  activesupport (5.0.0) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
  activesupport (5.0.0) lib/active_support/callbacks.rb:455:in `call'
  activesupport (5.0.0) lib/active_support/callbacks.rb:101:in `__run_callbacks__'
  activesupport (5.0.0) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
  activesupport (5.0.0) lib/active_support/callbacks.rb:90:in `run_callbacks'
  actionpack (5.0.0) lib/abstract_controller/callbacks.rb:19:in `process_action'
  actionpack (5.0.0) lib/action_controller/metal/rescue.rb:20:in `process_action'
  actionpack (5.0.0) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
  activesupport (5.0.0) lib/active_support/notifications.rb:164:in `block in instrument'
  activesupport (5.0.0) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
  activesupport (5.0.0) lib/active_support/notifications.rb:164:in `instrument'
  actionpack (5.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
  actionpack (5.0.0) lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
  activerecord (5.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  actionpack (5.0.0) lib/abstract_controller/base.rb:126:in `process'
  actionview (5.0.0) lib/action_view/rendering.rb:30:in `process'
  actionpack (5.0.0) lib/action_controller/metal.rb:190:in `dispatch'
  actionpack (5.0.0) lib/action_controller/metal.rb:262:in `dispatch'
  actionpack (5.0.0) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
  actionpack (5.0.0) lib/action_dispatch/routing/route_set.rb:32:in `serve'
  actionpack (5.0.0) lib/action_dispatch/journey/router.rb:39:in `block in serve'
  actionpack (5.0.0) lib/action_dispatch/journey/router.rb:26:in `serve'
  actionpack (5.0.0) lib/action_dispatch/routing/route_set.rb:725:in `call'
  omniauth (1.3.1) lib/omniauth/strategy.rb:186:in `call!'
  omniauth (1.3.1) lib/omniauth/strategy.rb:164:in `call'
  bullet (5.4.2) lib/bullet/rack.rb:10:in `call'
  remotipart (1.3.1) lib/remotipart/middleware.rb:32:in `call'
  warden (1.2.6) lib/warden/manager.rb:35:in `block in call'
  warden (1.2.6) lib/warden/manager.rb:34:in `call'
  rack (2.0.1) lib/rack/etag.rb:25:in `call'
  rack (2.0.1) lib/rack/conditional_get.rb:25:in `call'
  rack (2.0.1) lib/rack/head.rb:12:in `call'
  rack (2.0.1) lib/rack/session/abstract/id.rb:222:in `context'
  rack (2.0.1) lib/rack/session/abstract/id.rb:216:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/cookies.rb:613:in `call'
  activerecord (5.0.0) lib/active_record/migration.rb:552:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
  activesupport (5.0.0) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
  activesupport (5.0.0) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
  activesupport (5.0.0) lib/active_support/callbacks.rb:90:in `run_callbacks'
  actionpack (5.0.0) lib/action_dispatch/middleware/callbacks.rb:36:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/executor.rb:12:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
  better_errors (2.1.1) lib/better_errors/middleware.rb:84:in `protected_app_call'
  better_errors (2.1.1) lib/better_errors/middleware.rb:79:in `better_errors_call'
  better_errors (2.1.1) lib/better_errors/middleware.rb:57:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
  railties (5.0.0) lib/rails/rack/logger.rb:36:in `call_app'
  railties (5.0.0) lib/rails/rack/logger.rb:24:in `block in call'
  activesupport (5.0.0) lib/active_support/tagged_logging.rb:70:in `block in tagged'
  activesupport (5.0.0) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (5.0.0) lib/active_support/tagged_logging.rb:70:in `tagged'
  railties (5.0.0) lib/rails/rack/logger.rb:24:in `call'
  sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/request_id.rb:24:in `call'
  rack (2.0.1) lib/rack/method_override.rb:22:in `call'
  rack (2.0.1) lib/rack/runtime.rb:22:in `call'
  activesupport (5.0.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/executor.rb:12:in `call'
  actionpack (5.0.0) lib/action_dispatch/middleware/static.rb:136:in `call'
  rack (2.0.1) lib/rack/sendfile.rb:111:in `call'
  hirefire-resource (0.3.12) lib/hirefire/middleware.rb:41:in `call'
  rack-cors (0.4.0) lib/rack/cors.rb:80:in `call'
  railties (5.0.0) lib/rails/engine.rb:522:in `call'
  puma (3.6.0) lib/puma/configuration.rb:225:in `call'
  puma (3.6.0) lib/puma/server.rb:578:in `handle_request'
  puma (3.6.0) lib/puma/server.rb:415:in `process_client'
  puma (3.6.0) lib/puma/server.rb:275:in `block in run'
  puma (3.6.0) lib/puma/thread_pool.rb:116:in `block in spawn_thread'

I made a PR to fix this (#806). Please try it and let me know if it works for you 👍
gem "acts_as_taggable_on", git: "https://github.com/ProGM/acts-as-taggable-on/tree", branch: 'fix-caching-tag-list-on-bug'

I can confirm your PR fixes this problem. Thanks, Piero! 👍


Sanitize file path on download

This fixes matrix-org/matrix-android-sdk#228.

@christarazi: Could you please sign off your PR (see https://github.com/vector-im/riot-android/blob/master/CONTRIBUTING.rst#sign-off)?
If you agree, all that's needed is to include the line in your commit or pull request comment:
Signed-off-by: Your Name<EMAIL_ADDRESS>

@giomfo Done!

LGTM


Limit rules within certain times of the day (business hours).

I want to enable some rules to be executed only within specific periods evry day.
Any help please ?

@Qmando "limit_execution" parameter not working
Im using bitsensor/elastalert:rubiev container image

Do you know what version of elastalert that is using?

Elastalert runing on kubernetes cluster with version v0.2.0b2 (i think)
and i'm using this image (https://hub.docker.com/u/bitsensor)


Unit tests around large threadpool/small queue scenario

This is a forward port of #911
New unit tests based on the question at: https://groups.google.com/forum/#!topic/hystrixoss/XgAuwe2RxS8

NetflixOSS » Hystrix » Hystrix-pull-requests #193 SUCCESS
This pull request looks good


remove gfxCardStatus

The app no longer works in macOS High Sierra or macOS Mojave
Project URL
https://github.com/codykrieger/gfxCardStatus/
Category
Menubar
Description
The app has not correctly worked since macOS 10.9 and it appears that it is no longer being maintained.  This can be seen by the multiple issues spanning a couple years on github.
Checklist

[X ] Only one project/change is in this pull request
[X ] Deletion in alphabetical order

Oops I will close I messed up the format.


[FEATURE] Requesting usable adapter dispatch macros

with the release of the new adapter.dispatch macro, I think you can accelerate the adoption of dbtvault across other adapters (unofficially). I think you may agree that official support for N adapters is a massive undertaking, but we can still make devs' lives better with some clever hooks.
When I was working with my bigquery clone, I had to essentially clone the entire codebase and modify the parts that I wanted because there was no way to properly tell dbt to look in my package, and THEN dbtvault to find implementations of certain macros.
Now that the new adapter.dispatch macro is out, we have some options to play with!.
Option 1: Call dbtvault macros from adapter packages
As long as all dbtvault macros are using the dispatch syntax,  I can do
adapter.dispatch('link', packages=['dbtvault'])
whenever I just want to use your implementation and just have macros for all my overrides.
The caveat is that I think I'd still have to copy all the macro signatures and dispatch it to dbtvault through mypackage.someMacro()
Option 2: Have dbtvault call out to adapter packages
Here's where it gets interesting.
What if we could just define a variable that you can pass into dbtvault for it to look for implementations in adapter packages for?
Provided you add the dispatch syntax to everything you can do something like
adapter.dispatch('hash', packages=var('adapter_packages', ['dbtvault']))(...args)
This way, I don't have to copy everything in my adapter package and only have to implement the things I'm overwriting.
There is a chance I'm forgetting/misunderstanding some mechanics here so take it with a grain of salt, but I'd love to discuss this further

Thanks for the suggestion!
I will investigate option #2 a little further, but it seems interesting at first glance if it is possible/not already supported with the new adapter.dispatch syntax. As for option #1, this is already implemented for dbtvault 0.7 which will be released shortly (hopefully this week..

v0.7.0 Now supports Option 1. Can you give it a go with your use case and let us know if Option 2 is worth exploring further?

 All the macros you've defined have the implementation under __snowflake instead of __default which makes them unusable for anything other than snowflake :(

Ouch... yea... this problem propagates itself in a painful way.
For example, I can pretty much straight up use the code for dbtvault.hub in my bigquery adapter, but now instead of even calling dbtvault.snowflake__hub() I have to copy the whole code to my codebase cause of 1 incompatible snowflake-only dbtvault.prefix() call  😢

Ok good to know. The reason why we opted for making them all Snowflake at the moment is because they are only tested and fully working for Snowflake. I don't think we can currently make them default__ without causing problems for anything that isn't Snowflake. One option is to split out all of the non-Snowflake specific code into their own macros, but that could make the codebase quite chaotic. I'm weary to make them all default__ at the moment due to unexpected behaviour for those users who are unaware of the caveats.

In my experience with the BQ port, I've never "had unexpected behavior" because the SQL has either compiled or hasn't.
It's pretty much only been basic transformations around date, types (casting and datatypes), and hashing that have been incompatible.
Unless I'm missing something, it seems like having the default__* call the snowflake macros is the same as making snowflake the default, so not sure how that addresses your concern (but I'll take it!)
As you said, the project only officially supports snowflake at the moment so non-snowflake users will know what they're getting themselves into (I doubt it's just gonna work out of the box on other engines), so the only thing causing problems for none-snowflake users is the fact that it's so difficult to extend it!
I hear your concern, but even if you want to not make the snowflake implementation the default,  option 2 allows devs like me to override your decision without copying 80% of your codebase and keeping track of where we made changes (it's quite challenging to upgrade cause I always have to re-read all the code to make sure nothing changed in your new commits) and it seems like it's something dbt_utils already started doing:

In summary:

I think the risk of something going awry if you make snowflake == default is minuscule
Option 2 would accelerate the development of "extensions" to dbtvault for other adapters (maybe you can still give it a badge of approval by running them through your BDD testing framework.).

Makes perfect sense actually. Will get this added to the backlog. Thanks for your extensive write-up.

Thank you @balmasi,
We have been working the second option you proposed and it's currently passing all the tests on our side. You can expect to see this released in 0.7.1, please  let us know if there are any further issues with this feature on release.

v0.7.1 Released, Please close when you can


add a query to retrieve TLV for chains we bridge

Description/Reasoning

we want to display total value locked by axelar (bridged) from chain X to chain Y.
we already store the total assets minted on destination EVM chains, so we can just expose this metric [+IBC bridged chains].

Current Behaviour
Expected Behaviour
Steps to reproduce (for bugs)
Relevant Logs or Files

for EVM, users will need to query the contract itself.
for axelarnet, there is a query to see how much is minted on axelarnet.


Wrong left and top offset ipad mini 2

On ipad mini 2 we have an error where the left and top offset are completely wrong:
left: -423112px;
top: 1871px;
Is this a known issue, or is there a fix for this?
All goed well on ipad mini 3.

The error somewhere lies in your calculation between lines 829 and 837:
if (pos_left + obj.settings.width > $win.outerWidth() && (obj.settings.position === 'bottom' || obj.settings.position === 'top'))
{
diff = $win.outerWidth() - (pos_left + obj.settings.width);
tipso_bubble.find('.tipso_arrow').css({
marginLeft: -diff - obj.settings.arrowWidth,
marginTop: ''
});
pos_left = pos_left + diff;
}

Hello,
Let me know how are you using the plugin (options, elements etc.), make a jsfiddle or codepen example so I can try to fix the issue.
Also let me know what browser are you using.
I don't have an iPad mini 2 so I can't check what is going on there, so If you can figure out what is causing the problem let me know or make a PR.
:)

Well there is something wrong with the calculation on iPad 2.
You could check it on http://www.browserstack.com/
Default browser on iPad 2.


Add support for ace command on windows

It will allow executing the ace commands on windows as in the documentation
instead of
./ace "Command"
you can use
ace "Command"

Related: https://github.com/adonisjs/adonis-app/pull/16

adonis-cli is already creating a file for windows. If not please create an issue with that repo. Thanks 😄


Fix perfomance issue caused by Dictionary's swift_dynamicCast

When I checked Himotoki's perfomance by JSONShootout with Himotoki, the result was very slow.
It was very sad... 😢  so I inspect the issue and I found reason.
It was caused by occured swift_dynamicCast by cast to [String: Any]  in valueFor.
So I fixed it to use NSDictionary for this cast, and the benchmark result changed very fast. 😄
I want to review and merge this fix.

I'm sorry for the late response and really appreciate your contribution @yudoufu! ✨
I've slightly modified the pull request to cleanly introduce your proposed changes. Please let me know if you have further opinion against this. If you are okay I'll merge this and cut a new release.

@ikesyo Thank you for review and fix to my opinion.
I'm agree for your fix. It's make the most sense. 👍

:shipit:

Awesome!
@yudoufu do you intend to submit a PR to JSONShootout?

Yes, I will do it!
Thank you for comment @dcaunt :)


how to cache html generated from JS

I am using ReactJS SSR and my html is generated from a react component

How do I cache this using offline plugin to enable off line access.
How do I cache my images serviced from cdn? By specifying link to all of those images in externals or is there a better way to do it?

This is what my html generating component looks like. Of course other components are embedded in it. What do I exactly need to do to at least render my home page offline completely.
export default class Html extends Component {
  static propTypes = {
    assets: PropTypes.object,
    component: PropTypes.node,
    store: PropTypes.object
  };

  render() {
    const {assets, component, store} = this.props;
    const content = component ? ReactDOM.renderToString(component) : '';
    const head = Helmet.rewind();

    return (
      <html lang="en-us">
        <head>
          {head.base.toComponent()}
          {head.title.toComponent()}
          {head.meta.toComponent()}
          {head.link.toComponent()}
          {head.script.toComponent()}

          <link rel="shortcut icon" href="/favicon.ico" />
          <meta name="viewport" content="width=device-width, initial-scale=1" />
          {/* styles (will be present only in production with webpack extract text plugin) */}
          {Object.keys(assets.styles).map((style, key) =>
            <link href={assets.styles[style]} key={key} media="screen, projection"
                  rel="stylesheet" type="text/css" charSet="UTF-8"/>
          )}

          {/* (will be present only in development mode) */}
          {/* outputs a <style/> tag with all bootstrap styles + App.scss + it could be CurrentPage.scss. */}
          {/* can smoothen the initial style flash (flicker) on page load in development mode. */}
          {/* ideally one could also include here the style for the current page (Home.scss, About.scss, etc) */}
          { Object.keys(assets.styles).length === 0 ? <style dangerouslySetInnerHTML={{__html: require('../theme/bootstrap.config.js') + require('../containers/App/App.scss')._style}}/> : null }
        </head>
        <body>
          <div id="content" dangerouslySetInnerHTML={{__html: content}}/>
          <script dangerouslySetInnerHTML={{__html: `window.__data=${serialize(store.getState())};`}} charSet="UTF-8"/>
          <script src={assets.javascript.main} charSet="UTF-8"/>
        </body>
      </html>
    );
  }
}

@simran-k

How do I cache this using offline plugin to enable off line access.

How your HTML is generated has aboslutley nothing to do with offline-plugin / ServiceWorker. It will cache resources that is served to the client, given your configuration. Can you please be a bit more specific with what problem you are experiencing?

How do I cache my images serviced from cdn? By specifying link to all of those images in externals or is there a better way to do it?

Yes, given that you have caches: all, listing them as externals should be it. Not sure if externals support wildcards / regex / glob, maybe @NekR can clarify?

These are the resources that are cached by service worker. My home page is at localhost:3000/ . How do I cache the page and render it offline?
I see homepage is always cached in offline supported web apps.

This is what my configuration looks like for offline plugin in webpack:
new OfflinePlugin({
      ServiceWorker: {
            events: true
          },
      //externals:['.'],
      excludes: ['.htaccess'],
      caches: {
        main: [':rest:', './src/'],
        additional: [':externals:']
      },
      safeToUseOptionalCaches:true,
      AppCache: {
        caches: ['main', 'additional', 'optional']
      }
    })

@GGAlanSmithee : Could I get a direction on this please?

@simran66 your caches.main looks a bit suspicious, are you really serving your public assets from a folder called src?
See https://github.com/NekR/offline-plugin/blob/master/docs/caches.md#cache-sections
Your config depends on how you serve your assets, but try
caches: {
        main: ['/', ':rest:']
}

@simran-k @simran66 lol, are you spamming here with 2 accounts?

@GGAlanSmithee I just realized that it's the same person and it's 4th issue by hear about the same thing...

@NekR Yeah, I thought the same, a bit weird.

@simran-k these questions are answered in the documentation, please read it and you should be able to make it work!

@NekR : Lol Naaah! Have different accounts open in diff. browsers

@GGAlanSmithee : That's what I thought and tried too. With that I get:
WARNING in OfflinePlugin: Cache asset [/] is not found in the output assets,if it's an external asset, put it to the |externals| option to remove this warning

@simran66 that warning already says what to do and you can find answers in the docs. Don't be lazy, read it instead of asking ask about everything.

@GGAlanSmithee

Not sure if externals support wildcards / regex / glob, maybe @NekR can clarify?

Not it doesn't. That's just static list of externals.

@GGAlanSmithee do you think externals is unfortunate name? I called it so because things listed there are externals to webpack build assets. Not sure if that's best naming though.

@NekR : I am REALLY not being lazy here. Trying to find a solution. I have read your entire documentation. May be I am doomed at this and am killing my time possibly here.
THE ONLY QUESTION I have been tryin to get you to answer is,
how do I cache the file/component called on my application startup.
I have tried passing 'localhost:3000' and '/' in externals but could not get it to work. If I was using index.html with script and link tags embedded into into, I could just cache it and was good to go but I rather have a react component here which I have posted above and probably I need to cache that one and can't find out a way.
If that is too difficult for you to answer without having your opinions out, rather DON'T!
THANKS FOR YOUR RUSH TO CLOSE THE QUESTIONS.

Okay, enough.


[types] Add chain_id and max_gas_amount to Transaction

Summary

Add  chain_id and max_gas_amount to Transaction.
Add sequence_number and max_gas_amount to TxContext.
Add chain_id as transaction_validator::validate argument.
Add TxResult to TxContext after tx is executed for the transaction validator to get gas_used in the post_execute function.

resolve #680

cc @feliciss and @yubing744

I merge this PR first. @steelgeek091 please help to resolve the conflict with #684


Performance on LVIS mAP is low

We have reproduced mAP on TAO dataset, and found that the performance is quite low.

AP
AP50
AP75

8.8717
14.0362
9.4615

The numbers are generated with the block here
Could you provide the mAP numbers you get on TAO? We need to further verify it there is any bugs here

Hi, thanks for your question! The block you show computes the box AP on LVIS. To get a reasonable number on that, you need to change the NMS setting and test cfg to the default LVIS one which uses intra-class NMS and allows 300 bboxes output. Our current default NMS settings are class agnostic and test cfg only allows outputting a maximum of 50 bboxes per image to optimize the TETA metric, which does not allow the high overlapping predictions in the same location.

Track mAP by default, you need to as well output lots of overlapping false positive tracks to get a reasonable score. However, the TETer is not designed to output such results. Thus,  you have to modify the tracker by yourself to make sure that the tracker still outputs those false positive overlapping tracks. It is strongly recommended that you test the tracker using TETA metric which is designed better analyze the trackers and avoid such false positive overlapping tracks.


Add iOS export option for device family

If you want your iOS game to be marked explicitly as targeting iOS, iPad or both (without having to tweak the generated Xcode project), this is your PR!
As an extra benefit, if you are only interested in iPhone or iPad alone, Apple app submission won't require you to provide icons for the other family.

Speaking of which, do we currently have an OS-independent way to know whether the current device is a smartphone or tablet (from the user standpoint)? I remember seeing this being requested in the past so that people can expose slightly different UIs depending on the device.

UIDevice.currentDevice.userInterfaceIdiom - https://developer.apple.com/documentation/uikit/uidevice/1620037-userinterfaceidiom?language=objc can be used to determine this. It should be pretty easy to expose this API from iOS singleton.

It should be pretty easy to expose this API from iOS singleton.

I was wondering about exposing this in an OS-independent way (e.g. in the OS singleton), so that people don't have to adapt their code twice for Android and iOS.

I'd say that the right way to adapt UI to different devices should be based on physical size (screen pixel size and DPI). At least, IIRC, that's the approach in Android (you design for screens, not for devices, so to speak) and I think there's a good reason for that.
That said, I think that having a way to check if the device reports itself as tablet or phone where that's supported can also be helpful so the application can make some extra assumptions.

Thanks!

Cherry-picked for 3.4.


When LAN access is denied from everyone, UI is unclear

Instead of showing language selection, user should be prompted to press the configuration button if all LAN access is denied.

Is it easy to remove the "choose language" dialog?

QA passed


SDI-272 Allow release offenders to hospital if Active OUT

The previous fix for this ticket switched to checking prison-api instead of prisoner-search due to a timing issue. However we inadvertently stopped offenders who are Active OUT from being released to hospital using RP.

Just checking, so for prisoners already in hospital but incorrectly not registered as in hospital (e.g inactive out) this API will never be called?

Just checking, so for prisoners already in hospital but incorrectly not registered as in hospital (e.g inactive out) this API will never be called?

No. They are in a broken state and wouldn't be found by the RP UI. I believe they'll be handled by the new /migrate endpoint which adjusts their last movement.


Cannot bind to a service that only supports async binding create

Related to #4161 (binding fails because service instance create is async) and #3682 (v3 api removes support for sync service operations)
We may need to look at this before the ever expected v3 release
Raised by Comcast and required an impact-full workaround

Observed symptom when trying to create and bind an async service:


[Backport styhead-next] 2024-10-02_01-35-16_master-next_aws-crt-python

Description
Backport of #9777 to styhead-next.

Backport failed for kirkstone-next, because it was unable to cherry-pick the commit(s).
Please cherry-pick the changes locally.
git fetch origin kirkstone-next
git worktree add -d .worktree/backport-9786-to-kirkstone-next origin/kirkstone-next
cd .worktree/backport-9786-to-kirkstone-next
git checkout -b backport-9786-to-kirkstone-next
ancref=$(git merge-base a057e508a493e2ec5af3c31f72e5d40fc41bcb13 ca5d6c0ae7f4ffe996a65ad13df24ecd3f3268dd)
git cherry-pick -x $ancref..ca5d6c0ae7f4ffe996a65ad13df24ecd3f3268dd

Backport failed for scarthgap-next, because it was unable to cherry-pick the commit(s).
Please cherry-pick the changes locally.
git fetch origin scarthgap-next
git worktree add -d .worktree/backport-9786-to-scarthgap-next origin/scarthgap-next
cd .worktree/backport-9786-to-scarthgap-next
git checkout -b backport-9786-to-scarthgap-next
ancref=$(git merge-base a057e508a493e2ec5af3c31f72e5d40fc41bcb13 ca5d6c0ae7f4ffe996a65ad13df24ecd3f3268dd)
git cherry-pick -x $ancref..ca5d6c0ae7f4ffe996a65ad13df24ecd3f3268dd

Backport failed for styhead-next, because it was unable to cherry-pick the commit(s).
Please cherry-pick the changes locally.
git fetch origin styhead-next
git worktree add -d .worktree/backport-9786-to-styhead-next origin/styhead-next
cd .worktree/backport-9786-to-styhead-next
git checkout -b backport-9786-to-styhead-next
ancref=$(git merge-base a057e508a493e2ec5af3c31f72e5d40fc41bcb13 ca5d6c0ae7f4ffe996a65ad13df24ecd3f3268dd)
git cherry-pick -x $ancref..ca5d6c0ae7f4ffe996a65ad13df24ecd3f3268dd


VNC Viewer.app version 5.3.2

Changes to a cask
Editing an existing cask

[x] Commit message includes cask’s name (and new version, if applicable).  (includes app name in the next time will use cask name)
[x] brew cask audit --download {{cask_file}} is error-free.
 I use github gui, CI, and installations from formula file to check that anything work properly.
How about adding all necessary checks into CI system?
From my point of view usual contributions (like version updates or fix type) should should pass seamlessly for the contributor. Maybe automatically.  What do you think?

rubocop:
1 file inspected, no offenses detected

How about adding all necessary checks into CI system?

They are there. Having builds break and requiring a back and forth with contributors to fix is a bad solution, though. Many never respond and abandon their casks, and it is extremely time consuming to explain everything.
There’s a perfectly good system in place to make the checks on users’ machines, so we take advantage of it to make the contribution process smoother.
Furthermore, and increasing amount of users uses cask-repair which takes care of all those steps seamlessly.

Thank you for the contribution. It needed some fixes, so they were made in f7cde219bf75f73a7aa3d4cb12dbb1c1183fe251. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


Ticket1075 revoke subscription force reregister

Add the force_reregister= option to Registration, and the client-side behavior when getting a kicked registration message. Also an example of using the meta-API.
(Needs corresponding crossbar branch to actually-work)

Hmm, Twisted 12 and 13 have the "too old UnitTest" dependency (or something?) for assertRaises to work as a context-manager. Do we definitely care about those releases?

Codecov Report

Merging #860 into master will increase coverage by 0.14%.
The diff coverage is 91.8%.

@@            Coverage Diff             @@
##           master     #860      +/-   ##
==========================================
+ Coverage   62.86%   63.01%   +0.14%
==========================================
  Files          73       73
  Lines       12526    12581      +55
  Branches     1981     1987       +6
==========================================
+ Hits         7875     7928      +53
- Misses       3994     3995       +1
- Partials      657      658       +1

Impacted Files
Coverage Δ

autobahn/wamp/test/test_message.py
100% <100%> (ø)
:arrow_up:

autobahn/wamp/message.py
63.73% <100%> (+0.27%)
:arrow_up:

autobahn/wamp/types.py
72.63% <50%> (-0.3%)
:arrow_down:

autobahn/wamp/protocol.py
53.81% <85.71%> (+0.39%)
:arrow_up:

autobahn/wamp/test/test_protocol.py
93.62% <95%> (+0.05%)
:arrow_up:

Continue to review full report at Codecov.

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

@meejah awesome! comprehensive PR, nice work. I'll get to the corresponding CB PR.

Do we definitely care about those releases?

IMO, those Twisted versions are really old now, so +1 for moving our minimum version for Twisted in Autobahn (in Crossbar.io we are regularily pushing to the latest releases of all deps anyways).
Question is, what minimum version of Twisted should we support in AB?

@meejah Twisted 15.4 or should we jump even further for minimum version?

Let's see, releases-wise Debian "stretch" just became stable so "jessie" is now old-stable so to make any packagers lives easiest, we'd support 16.6.x+ for "stretch" (latest stable). jessie/old-stable has 14.0.2 but there is jessie-backports that has 16.2.x
So I'd say anyone packaging for latest Debian should be satisfied with anything 16.x or higher. Ubuntu should be newer. So, 15.x should be fairly safe -- and we can always bump it up later if we run into problems? (That is, might as well keep 15 if it's straightforward...?)

So, 15.x should be fairly safe -- and we can always bump it up later if we run into problems

Yeah, sounds good! So we can kill 12.1 and 13.2 from Travis, which makes the CI run quicker - another nice side effect.


htmlcxx dependency may be impossible to build from source on some distros

I decided to try making a Flatpak manifest for lgogdownloader without waiting for your comment on whether you'd be receptive, just as an exercise, but htmlcxx isn't in the shared runtime and attempting to build it fails with this linking error:
libfl.so: undefined reference to `yylex'

I tried switching to 0.85 as is depended on by the Ubuntu 20.04 LTS lgogdownloader package instead of 0.87 (the newest version), but no change.
According to a couple of StackOverflow answers [1] [2] that error is caused by an API compatibility break in Flex 2.6.x, which would make sense given that htmlcxx hasn't seen a release since December of 2018 while the ecosystem of things that necessitate flex compatibility hacks would be moving on around it.
The answers point out that Ubuntu provides a flex-old package for that, but I don't see how that's a viable solution for other distros, which Flatpak's runtime essentially is. Am I supposed to find a distro that's maintaining their own htmlcxx patchset and depend on their source deb/rpm/etc. instead? ...intentionally build an older Flex as part of the build process?
Can you provide more detailed instructions?
Failing that, would you be willing to consider vendoring a patched version and offering a build flag to use it?
I have no experience with Flex, Yacc, or Autotools (Just Rust, Python, PHP, JavaScript, Bourne Shell, some entry-level experience with Watcom C and WMake for a retro-hobby project, and fading memories of various other languages like Lua, Perl, QBasic, DOS Batch, etc.) so my expertise from my time spent typing ./configure && make && sudo make install in the early 2000s stops at reading ./configure's log to get more detailed error messages and googling for solutions.
(The StackOverflow answers suggest directions for patching the source, but blindly patching without understanding is how the Debian OpenSSL Fiasco came about. Hence my question about whether I'm supposed to find some Debian/Fedora/etc. downstream patchset to depend on.)

Hello, you can find a patch to build htmlcxx here https://sourceforge.net/p/htmlcxx/patches/8/
https://sourceforge.net/p/htmlcxx/patches/8/attachment/htmlcxx-0.87-c%2B%2B17.patch
htmlcxx has been added to Arch repository on 2020-09-07 but has not been rebuilded since,
Trying to build today failed with:

In file included from tests.cc:6:
CharsetConverter.h:20:90: error: ISO C++17 does not allow dynamic exception specifications
   20 |                         CharsetConverter(const std::string &from, const std::string &to) throw (Exception);
      |                                                                                ^~~~~
In file included from CharsetConverter.cc:5:
CharsetConverter.h:20:90: error: ISO C++17 does not allow dynamic exception specifications
   20 |                         CharsetConverter(const std::string &from, const std::string &to) throw (Exception);
      |                                                                                ^~~~~
CharsetConverter.cc:10:74: error: ISO C++17 does not allow dynamic exception specifications
   10 | CharsetConverter::CharsetConverter(const string &from, const string &to) throw (Exception)
      |                                                                          ^~~~~
make[2]: *** [Makefile:728: libhtmlcxx_la-CharsetConverter.lo] Errore 1

The Arch pkgbuild don't use patches at the moment, however this error will be caught sooner or later during reproducibility rebuilds
it use   LDFLAGS="$LDFLAGS -Wl,--no-as-needed" which isn't a default
https://github.com/archlinux/svntogit-community/blob/packages/htmlcxx/trunk/PKGBUILD
https://github.com/archlinux/svntogit-community/tree/packages/htmlcxx/trunk

HTMLCXX is buildable from source with CentOS 7,8 or a derivative of it, although you have to do a minor edit.
The current binary packages situation can be found here: https://pkgs.org/download/htmlcxx
It looks like that - if you wanna have prebuilt packages - you have to resort to a BSD flavor, Fedora, OpenSUSE or Mandriva.

@ssokolow regarding building the flatpak:
I'd suggest that you just use a fork of CentOS 8 (AlmaLinux, Rocky, Oracle Linux) for building the flatpak instead of Debian to save you headaches or a distro which still has packages and shows signs that it will still build the packages.
The options - taken this into consideration - from pkgs.org are:

Fedora
OpenSUSE (use Tumbleweed)

or just adapt my lgogdownloader build script, where this emits a binary for lgodownloader from the most recent git source:
https://github.com/shakeyourbunny/update-lgogdownloader
You can adapt it for building your flatpak, just include in the credits me.

Hello, you can find a patch to build htmlcxx here https://sourceforge.net/p/htmlcxx/patches/8/

Thanks. I'll try to find time to give it a try within the next day or two.

I'd suggest that you just use a fork of CentOS 8 (AlmaLinux, Rocky, Oracle Linux) for building the flatpak instead of Debian to save you headaches or a distro which still has packages and shows signs that it will still build the packages.

That's not how Flatpak works. Regardless of what Distro you build on, it builds using and against the Freedesktop SDK build container... and if you upload to Flathub, you do it by uploading the build manifest and then they build the package.

or just adapt my lgogdownloader build script, where this emits a binary for lgodownloader from the most recent git source:

Thanks. I'll take a look at it if the aforementioned patch doesn't work or is too much hassle.

Sorry for the wait. Some unexpected higher-priority stuff came up.

Hello, you can find a patch to build htmlcxx here https://sourceforge.net/p/htmlcxx/patches/8/

The patch applies cleanly but it's for a problem I wasn't having yet, since I hadn't upgraded from the 5.15 to 5.15-21.08 version of the KDE Flatpak runtime. It still dies at the linking stage with libfl.so: undefined reference to yylex'` if only that patch is applied.

it use LDFLAGS="$LDFLAGS -Wl,--no-as-needed" which isn't a default

Thanks for pointing that out. Adding "build-options" : { "ldflags": "-Wl,--no-as-needed" }, to the manifest allowed the htmlcxx module to successfully complete its build.
Also, huh. tinyxml2's README says "Generally speaking, the intent is that you simply include the tinyxml2.cpp and tinyxml2.h files in your project and build with your other source code." Am I correct in guessing that's not being done at the request of distro maintainers?
Anyway, it's late and I'm goint to bed, but I now have a Flatpak manifest that appears to work:

It gives the expected output when I run flatpak run com.github.Sude.lgogdownloader --help
it produces a com.github.Sude.lgogdownloader launcher script in .../share/flatpak/exports/bin, meaning that it can be run as com.github.Sude.lgogdownloader if you've added that folder to your PATH

That leaves the following to be done:

Identify things like .a files that need to be added to the cleanup section of the manifest

Change the placeholder App ID because they don't want you using com.github prefixes. Either io.github or a separate domain under your control. (Some apps do, but it's discouraged)

Test that it actually downloads games when I run more than --help

Check that the Flatpak is obeying the XDG Base Directory Specification environment variables which Flatpak sets to redirect ~/.config/ and ~/.local/share into ~/.var/app/<app-id>/ for when filesystem=home or filesystem=host isn't specified.

Fill out an Appstream XML definition for lgogdownloader to define what would appear on Flathub or in an app like GNOME Software or KDE Discover

Add an icon to be used by the Appstream XML, since Flatpak uses a file-browser-esque "grid of captioned icons" format for search results and KDE Discover uses a "Large icon with several rows of text beside it" format for software updates. (The latter provides a placeholder icon for things that don't define their own. No clue what Flathub does.)

Write a description that...

...explains that it's intended as an easy, cross-desktop way to get up-to-date versions of a reCAPTCHA-enabled (i.e. QtWebEngine-dependent) lgogdownloader build, but does not install a launcher and is meant to be used via something like alias lgogdownloader="flatpak run com.github.Sude.lgogdownloader" and a terminal.
...suggests that users who want to take advantage of sandboxing use Flatseal to narrow the filesystem=host permission to wherever they keep their downloaded GOG games.

Verify that the 12.9MiB of /lib/debug files will automatically get split out into a supplementary .Debug package like the Flatpak documentation says they should.

I'm having trouble verifying this because I'm having trouble figuring out whether it's not happening or whether I'm not replicating far enough down the process that is involved in publishing a Flatpak package.

Change the placeholder App ID because they don't want you using com.github prefixes. Either io.github or a separate domain under your control. (Some apps do, but it's discouraged)

@Sude- Can I get your input on this? They prefer using at least a subdomain that you control.
Note that I have to use Sude rather than Sude- because otherwise you get something like this:
error: 'com.github.Sude-.lgogdownloader' is not a valid application name: Only last name segment can contain -

Also, which architectures do you consider to be supported for building LGOGDownloader? Flathub includes a build service and the metadata files account for that with support for specifying supported arches.

OK. Updated TODO now that I'm setting it aside for the evening:

[ ] Get @Sude-'s feedback on what reverse-DNS App ID to use
[ ] Decide where to host the screenshot (Flathub will cache it, but the Appstream XML still wants a publicly visible HTTP/HTTPS URL for the cache to retrieve it from. Note that the screenshot I made is Flatpak-specific, in that it shows an alias lgogdownloader="flatpak run com.github.Sude.lgogdownloader" line.)
[ ] Get @Sude-'s feedback on the need for an icon to publish it in places like Flathub and, if necessary, start brainstorming to make some candidate submissions myself.
[ ] Decide whether to incorporate a wrapper script and/or default config file for things like making --enable-login-gui Just Work™ and/or defaulting --directory to $(xdg-user-dir DOWNLOAD) the default sandbox manifest can err on the side of security.
[ ] Write one more paragraph for the Appstream XML description based on the decision of what default sandboxing policy to use. (i.e. Either advise security conscious users how to narrow the permissions or advise everyone else how to broaden them and change the default location.)
[ ] Push the resulting set of files to GitHub Gist and get @Sude-'s opinion on if anything needs to be revised
[ ] Re-read the Flatpak and Flathub guidelines to make sure I haven't overlooked anything
[ ] Write a "preflight checklist" for anyone who wants to push a new release to Flathub once it's been published there.

Oh, to go back on the stated topic for this thread, it appears that LDFLAGS="$LDFLAGS -Wl,--no-as-needed" is how you get htmlcxx to build on toolchains that are too new to just work but not yet new enough to also need that patch, so mentioning that and the patch in the build docs should be a suitable solution to this issue.
Aside from that, it'd probably be best if I open another issue for the topic of a Flatpak release.
(I do actually have stuff ready to share. It's just that I was hoping to get an answer to "Get @Sude-'s feedback on what reverse-DNS App ID to use" before putting up a Gist because it's used for all the filenames as well as various IDs within the files.)

In order to make sure I don't forget, I've pushed the files I currently have to GitHub Gist and opened a specific feature request (#218) for the off-topic Flathub stuff to finish pulling this back on topic.


The uploaded file could not be moved to uploads. when hosted on App Engine itself

Is this a supported environment?

I don't think you can't save uploaded files to the upload folder on App Engine. You need to change the mode to "Stateless" in WP-Stateless settings.

Closing for now. Please reopen if further discussion is needed. Thanks


periodic pause of interpolated video

https://user-images.githubusercontent.com/25840016/121840789-8c7ae580-cd0f-11eb-87f6-ab40ab5b5125.mp4
https://user-images.githubusercontent.com/25840016/121840821-a3213c80-cd0f-11eb-967b-8265f38789bf.mp4
Hi,
I am using pretrained 8x model to interpolate the demo sprite video as shown on the project homepage. But I find that it seems to "pause" per second. Do you know why? Thx!

Hi. I find that this happens when the FPS of input video is not 30. But I do not identify which part of the code leads to that.

If you check this video frame by frame, you will notice that there is 1 frame pause in every five frames. You need to filter out these frames first.

Hi hzwer, thx a lot! BTW, rife is a great work.


backbone model created from sails-backbone-client not validating?

I've copied and modified your test file so that I can make sure validations are working on the backbone model that gets generated from the sailsjs model. I'm testing the attribute below that is on my sailsjs model. When I create a new instance of my backbone user model and call validate() it isn't failing validation.
    name: { type: 'string', required: true },

https://github.com/tjwebb/sails-backbone-client/blob/master/test.js#L111-L119
This process seems to work for me. If I remove the name field from that model, for example, my validation fails.

Do you think my issue has anything to do with this section in parser.js? It appears that the actual validations are sitting off a json property.
var instanceMethods = {
  defaults: function () {
    return _.cloneDeep(this._defaults);
  },
  validation: function () {

    return _.cloneDeep(this._validation);
  }
};

-- should the above get changed to :

var instanceMethods = {
  defaults: function () {
    return _.cloneDeep(this.json._defaults);
  },
  validation: function () {

    return _.cloneDeep(this.json._validation);
  }

Where does the .json come from? Can you post some more of your code
On Sun, Mar 1, 2015 at 3:00 PM, bgulotta<EMAIL_ADDRESS>wrote:

Do you think my issue has anything to do with this section in parser.js?
It appears that the actual validations are sitting off a json property.
var instanceMethods = {
defaults: function () {
return _.cloneDeep(this._defaults);
},
validation: function () {
return _.cloneDeep(this._validation);

}
};
-- should the above get changed to :
var instanceMethods = {
defaults: function () {
return _.cloneDeep(this.json._defaults);
},
validation: function () {
return _.cloneDeep(this.json._validation);

}
—
Reply to this email directly or view it on GitHub
https://github.com/tjwebb/sails-backbone-client/issues/5#issuecomment-76627174
.

btw, added invalidation test (which passes):
https://github.com/tjwebb/sails-backbone-client/blob/master/test.js#L121-L133

Ah, re json property:
Are you using this controller? https://github.com/tjwebb/sails-backbone/blob/master/api/controllers/BackboneModelController.js#L12-L21
It should have been generated into your project

yeah my controller was empty. i deleted and re-installed the sails-generator and am getting output that matches what the sails-backbone-client is expecting

Did you have any issues when you ran the generator?
Let me know if you have any other issues. Closing.

Thx man. I have everything working now.  Right now i'm just getting generic error messages like "failed "required" validation" displayed on my site.

Yea, you should be able to override any of the validators according to the Backbone.Validation spec: https://github.com/thedersen/backbone.validation#specifying-error-messages
Specifically, e.g. for an attribute called name that means you can try setting this._validation.name.msg to some string.


Let's create a backlog

It's exciting to see people collaborating here :)
I'm currently working on setting up the development environment and the structure of the component. Just created a pull request, affecting many parts in the project: https://github.com/chrisssycollins/vanilla-calendar/pull/10
In order to avoid merge conflicts and double efforts, I am proposing to create a backlog here.
Alper

@alperklc Excellent! I'll have a look over your PR very soon. More than happy to use the Issues as a backlog. Create a new issue for each thing, small manageable deliverables.


The binary file is not permitted when archive app & upload to store

I archive app and validate then get this error. Please tell me why this happened!
react-native: v0.68.1
nodejs-mobile-react-native: v0.8.1

@staltz Please help me T.T

Please run react-native info for us.

Please run react-native info for us.

Hey @staltz, This is my info:
System:
    OS: macOS 12.3
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 356.71 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.15.0 - /usr/local/bin/node
    Yarn: 1.22.18 - /usr/local/bin/yarn
    npm: 8.5.5 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      Android NDK: 22.1.7171670
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7678000
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.68.1 => 0.68.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

It could be somewhat related to Xcode 13. If you can, try Xcode 12

@staltz Im trying. Hmmm. But how make it working with xcode 13

@staltz Please help me!

Hey @ginbluee this answer solves the issue for me
https://github.com/JaneaSystems/nodejs-mobile/issues/206#issuecomment-505017848


Prototype Kotlin DSL to configure rules

Can we give this Issue a better description of what this DSL should do and how it could look? Otherwise lets close this.

Basically I though about using a kotlin file to configure detekt as we are now doing with yaml. It would also be cool to use such a file to configure own output/console reports or even write own rules inside such files hmmm :D

Is this still something we consider?

We can reopen it if ever considered :)


runtime: annotate _environ DLL storage, exclude in WinRT

_environ is meant to be DLL imported when linking against the C
runtime dynamically (/MD or /MDd).  However, when building for
the Windows Runtime environment, we cannot support the use of _environ
and thus disable the support for that.  _WINRT_DLL identifies the
combination of /ZW and /LD or /LDd.  Windows Runtime builds cannot
be executables (and obviously not static libraries as they are not
executable), and thus we properly disable ENVIRON in all Windows
Runtime builds.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @mikeash

@swift-ci please test


ssh port configuration not respected

Description
When setting the below config in gitea/conf/app.ini
SSH_PORT          = 2222
SSH_LISTEN_PORT   = 2222

gitea still wants to bind to port 22. I've tried different combinations of the above with 22 and 2222 but still get a bind to port 22 regardless of my configuration.
Want's even more interesting is that on the UI, it shows 2222. (See screenshot below)
What could be the issue?
Thank you,
Dave
Gitea Version
1.19.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
https://pastebin.com/raw/t9xeRmsD
Screenshots

Git Version
2.39.3
Operating System
Rocky Linux 9
How are you running Gitea?
gitea is running on docker with the key network_mode: host  and using the gitea/gitea:latest tag.
Because gitea docker wants to bind to 22, it conflicts with the local ssh server of the host on port 22.
Why not using a docker network?
to match all our other docker deployments. also docker does not behave consistently with ipv6, which we use, hence using network_mode: host
Database
PostgreSQL

In the rootful docker image it is opensshd that attempts to bind to port 22. If you use the rootless docker image then it doesn't include opensshd.

@techknowlogick
thank you for the quick response
but we use ssh to do any git related work. (DISABLE_HTTP_GIT=true )
Will this hinder that?