fix(redis): change from Hash to Set

Change the data structure of Redis from Hash to Set because the Key and Field will conflict.
In the current implementation, METASPLOIT#C#$CVEID is used for Key and $MODULENAME is used for Field.
However, look at the following records inserted into the RDB.
If these records were in Redis, the Key and Field would be in conflict.
sqlite> SELECT name, cve_id FROM metasploits WHERE cve_id = "CVE-2020-0796";
name|cve_id
cve_2020_0796_smbghost.rb|CVE-2020-0796
cve_2020_0796_smbghost.rb|CVE-2020-0796

Therefore, the Hash type will be dropped and the Set type will be used. Field would have been used for the Hash, but it would not have worked, and by dropping Field and changing to Set, it can be handled without changing the Key.
// upstream/master
- HASH
  ┌───┬───────────────────────┬────────────┬────────────────┬────────────────────────────────┐
  │NO │         HASH          │   FIELD    │     VALUE      │            PURPOSE             │
  └───┴───────────────────────┴────────────┴────────────────┴────────────────────────────────┘
  ┌───┬───────────────────────┬────────────┬────────────────┬────────────────────────────────┐
  │ 1 │METASPLOIT#C#$CVEID    │$MODULENAME │ $MODULE JSON   │ TO GET MODULE FROM CVEID       │
  └───┴───────────────────────┴────────────┴────────────────┴────────────────────────────────┘

// PR
- SET
  ┌───┬───────────────────────┬────────────────┬────────────────────────────────┐
  │NO │          KEY          │     MEMBER     │            PURPOSE             │
  └───┴───────────────────────┴────────────────┴────────────────────────────────┘
  ┌───┬───────────────────────┬────────────────┬────────────────────────────────┐
  │ 1 │METASPLOIT#C#$CVEID    │ $MODULE JSON   │ TO GET MODULE FROM CVEID       │
  └───┴───────────────────────┴────────────────┴────────────────────────────────┘

Verification
// upstream/master
$ redis-cli -p 6379
<IP_ADDRESS>:6379> HGETALL METASPLOIT#C#CVE-2020-0796
1) "cve_2020_0796_smbghost.rb"
2) "{\"Name\":\"cve_2020_0796_smbghost.rb\",\"Title\":\"SMBv3 Compression Buffer Overflow\",\"Description\":\"A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to execute code on a vulnerable server. This remove exploit implementation leverages this flaw to execute code in the context of the kernel, finally yielding a session as NT AUTHORITY\\\\SYSTEM in spoolsv.exe. Exploitation can take a few minutes as the necessary data is gathered.\",\"CveID\":\"CVE-2020-0796\",\"References\":[{\"Link\":\"https://ricercasecurity.blogspot.com/2020/04/ill-ask-your-body-smbghost-pre-auth-rce.html\"},{\"Link\":\"https://github.com/chompie1337/SMBGhost_RCE_PoC\"},{\"Link\":\"https://www.youtube.com/watch?v=RSV3f6aEJFY\\u0026t=1865s\"},{\"Link\":\"https://www.coresecurity.com/core-labs/articles/getting-physical-extreme-abuse-of-intel-based-paging-systems\"},{\"Link\":\"https://www.coresecurity.com/core-labs/articles/getting-physical-extreme-abuse-of-intel-based-paging-systems-part-2-windows\"},{\"Link\":\"https://labs.bluefrostsecurity.de/blog/2017/05/11/windows-10-hals-heap-extinction-of-the-halpinterruptcontroller-table-exploitation-technique/\"},{\"Link\":\"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/smb/cve_2020_0796_smbghost.rb\"}]}"

// PR
$ redis-cli -p 6379
<IP_ADDRESS>:6379> SMEMBERS METASPLOIT#C#CVE-2020-0796
1) "{\"Name\":\"cve_2020_0796_smbghost.rb\",\"Title\":\"SMBv3 Compression Buffer Overflow\",\"Description\":\"A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to execute code on a vulnerable server. This remove exploit implementation leverages this flaw to execute code in the context of the kernel, finally yielding a session as NT AUTHORITY\\\\SYSTEM in spoolsv.exe. Exploitation can take a few minutes as the necessary data is gathered.\",\"CveID\":\"CVE-2020-0796\",\"References\":[{\"Link\":\"https://ricercasecurity.blogspot.com/2020/04/ill-ask-your-body-smbghost-pre-auth-rce.html\"},{\"Link\":\"https://github.com/chompie1337/SMBGhost_RCE_PoC\"},{\"Link\":\"https://www.youtube.com/watch?v=RSV3f6aEJFY\\u0026t=1865s\"},{\"Link\":\"https://www.coresecurity.com/core-labs/articles/getting-physical-extreme-abuse-of-intel-based-paging-systems\"},{\"Link\":\"https://www.coresecurity.com/core-labs/articles/getting-physical-extreme-abuse-of-intel-based-paging-systems-part-2-windows\"},{\"Link\":\"https://labs.bluefrostsecurity.de/blog/2017/05/11/windows-10-hals-heap-extinction-of-the-halpinterruptcontroller-table-exploitation-technique/\"},{\"Link\":\"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/smb/cve_2020_0796_smbghost.rb\"}]}"
2) "{\"Name\":\"cve_2020_0796_smbghost.rb\",\"Title\":\"SMBv3 Compression Buffer Overflow\",\"Description\":\"A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to execute code on a vulnerable server. This local exploit implementation leverages this flaw to elevate itself before injecting a payload into winlogon.exe.\",\"CveID\":\"CVE-2020-0796\",\"References\":[{\"Link\":\"https://github.com/danigargu/CVE-2020-0796\"},{\"Link\":\"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/adv200005\"},{\"Link\":\"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/local/cve_2020_0796_smbghost.rb\"}]}"

// upstream/master
$ curl http://<IP_ADDRESS>:1327/cves/CVE-2020-0796 | jq
[
  {
    "Name": "cve_2020_0796_smbghost.rb",
    "Title": "SMBv3 Compression Buffer Overflow",
    "Description": "A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to execute code on a vulnerable server. This remove exploit implementation leverages this flaw to execute code in the context of the kernel, finally yielding a session as NT AUTHORITY\\SYSTEM in spoolsv.exe. Exploitation can take a few minutes as the necessary data is gathered.",
    "CveID": "CVE-2020-0796",
    "References": [
      {
        "Link": "https://ricercasecurity.blogspot.com/2020/04/ill-ask-your-body-smbghost-pre-auth-rce.html"
      },
      {
        "Link": "https://github.com/chompie1337/SMBGhost_RCE_PoC"
      },
      {
        "Link": "https://www.youtube.com/watch?v=RSV3f6aEJFY&t=1865s"
      },
      {
        "Link": "https://www.coresecurity.com/core-labs/articles/getting-physical-extreme-abuse-of-intel-based-paging-systems"
      },
      {
        "Link": "https://www.coresecurity.com/core-labs/articles/getting-physical-extreme-abuse-of-intel-based-paging-systems-part-2-windows"
      },
      {
        "Link": "https://labs.bluefrostsecurity.de/blog/2017/05/11/windows-10-hals-heap-extinction-of-the-halpinterruptcontroller-table-exploitation-technique/"
      },
      {
        "Link": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/smb/cve_2020_0796_smbghost.rb"
      }
    ]
  }
]

// PR
$ curl http://<IP_ADDRESS>:1327/cves/CVE-2020-0796 | jq
[
  {
    "Name": "cve_2020_0796_smbghost.rb",
    "Title": "SMBv3 Compression Buffer Overflow",
    "Description": "A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to execute code on a vulnerable server. This remove exploit implementation leverages this flaw to execute code in the context of the kernel, finally yielding a session as NT AUTHORITY\\SYSTEM in spoolsv.exe. Exploitation can take a few minutes as the necessary data is gathered.",
    "CveID": "CVE-2020-0796",
    "References": [
      {
        "Link": "https://ricercasecurity.blogspot.com/2020/04/ill-ask-your-body-smbghost-pre-auth-rce.html"
      },
      {
        "Link": "https://github.com/chompie1337/SMBGhost_RCE_PoC"
      },
      {
        "Link": "https://www.youtube.com/watch?v=RSV3f6aEJFY&t=1865s"
      },
      {
        "Link": "https://www.coresecurity.com/core-labs/articles/getting-physical-extreme-abuse-of-intel-based-paging-systems"
      },
      {
        "Link": "https://www.coresecurity.com/core-labs/articles/getting-physical-extreme-abuse-of-intel-based-paging-systems-part-2-windows"
      },
      {
        "Link": "https://labs.bluefrostsecurity.de/blog/2017/05/11/windows-10-hals-heap-extinction-of-the-halpinterruptcontroller-table-exploitation-technique/"
      },
      {
        "Link": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/smb/cve_2020_0796_smbghost.rb"
      }
    ]
  },
  {
    "Name": "cve_2020_0796_smbghost.rb",
    "Title": "SMBv3 Compression Buffer Overflow",
    "Description": "A vulnerability exists within the Microsoft Server Message Block 3.1.1 (SMBv3) protocol that can be leveraged to execute code on a vulnerable server. This local exploit implementation leverages this flaw to elevate itself before injecting a payload into winlogon.exe.",
    "CveID": "CVE-2020-0796",
    "References": [
      {
        "Link": "https://github.com/danigargu/CVE-2020-0796"
      },
      {
        "Link": "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/adv200005"
      },
      {
        "Link": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/local/cve_2020_0796_smbghost.rb"
      }
    ]
  }
]

References

https://redis.io/commands/sadd : SADD key member
https://redis.io/commands/smembers :  SMEMBERS key
https://pkg.go.dev/github.com/go-redis/redis/v8#StringSliceCmd.Val
https://redis.io/commands/hset : HSET key field value
https://redis.io/commands/hgetall :  HGETALL key
https://pkg.go.dev/github.com/go-redis/redis/v8#StringStringMapCmd.Val

If you get the following error, delete the old key and try again.
EROR[07-14|11:16:48] Failed to insert.                        dbpath=redis://localhost/0 err="Failed to exec pipeline. err: WRONGTYPE Operation against a key holding the wrong kind of value"
Failed to exec pipeline. err: WRONGTYPE Operation against a key holding the wrong kind of value

redis-cli --scan --pattern "METASPLOIT#*" | xargs redis-cli del
(integer) 2066

 ./go-msfdb.new fetch --dbtype redis --dbpath "redis://localhost/0" msfdb


s2i build as-dockerfile mode

Changes

Use "as dockerfile" mode of s2i builds:
Rationale: podman < 4.0 has faulty /commit endpoint so "daemon mode" is not working

/kind bug
fix: s2i+podman build

This version inspects appropriate label and sets s2i script url. This fixes the issue with openjdk builds.

@lance @lkingland @zroubalik  PTAL

Too bad this won't make it to midstream release. Maybe we could do at least upstream release?

Good workaround
/lgtm as well

To be honest I not super happy about this since this introduces unnecessary project copy but this is only way how to make this work on podman v3.3.

/lgtm
/unhold


ENH: update package version

Hi! This is the friendly automated conda-forge-webservice.
I've started a version update as instructed in #11.
I'm currently searching for new versions and will update this PR shortly if I find one! Thank you for waiting!
Fixes #11

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender


FATAL failed to wait for bootstrapping to complete: timed out waiting for the condition

Version
Version: 4.7.0-0.okd-2021-05-22-050008
How reproducible
100%
Log bundle
log-bundle-20210608101024.tar.gz
I use this https://github.com/ryanhay/ocp4-metal-install#deploy-openshift as a basic guide.
But I have a Windows DNS server and I set static IP addresses through nmcli in livecd env coreos.
My dig command checks are successful.
My start commands for nodes are as:
sudo coreos-installer install /dev/sda --copy-network --image-url https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/34.20210427.3.0/x86_64/fedora-coreos-34.20210427.3.0-metal.x86_64.raw.xz --ignition-url http://<IP_ADDRESS>:8080/okd4/bootstrap.ign --insecure-ignition
After starting the bootstrap node, three masters and two workers after the specified time, I always encounter an error:
[root@balancer ~]# openshift-install --dir=/opt/okd4 wait-for bootstrap-complete --log-level=debug
DEBUG OpenShift Installer 4.7.0-0.okd-2021-05-22-050008
DEBUG Built from commit ba1a5fc61dd3be134a24fa6d89ae24012a93385a
INFO Waiting up to 20m0s for the Kubernetes API at https://api.okd4.domain.com:6443...
DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding
DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding
DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding
DEBUG Still waiting for the Kubernetes API: an error on the server ("") has prevented the request from succeeding
INFO API v1.20.0-1073+df9c8387b2dc23-dirty up
INFO Waiting up to 30m0s for bootstrapping to complete...
W0608 09:58:03.380065  143021 reflector.go:424] k8s.io/client-go/tools/watch/informerwatcher.go:146: watch of *v1.ConfigMap ended with: very short watch: k8s.io/client-go/tools/watch/informerwatcher.go:146: Unexpected watch close - watch lasted less than a second and no items received
INFO Use the following commands to gather logs from the cluster
INFO openshift-install gather bootstrap --help
FATAL failed to wait for bootstrapping to complete: timed out waiting for the condition
At the same time, I see that my masters started (screenshot), but the workers did not.

3 control plane replicas specified, but a single master IP is in the log bundle (no data fetched for it).
Also the same IP is requesting masters and worker data:
E0608 09:35:49.035159       1 api.go:136] couldn't get config for req: {worker 0xc00058c080}, error: refusing to serve bootstrap configuration to pool "worker"
I0608 09:35:49.034841       1 api.go:117] Pool master requested by address:"<IP_ADDRESS>:45830" User-Agent:"Ignition/2.9.0" Accept-Header: "application/vnd.coreos.ignition+json;version=3.2.0, */*;q=0.1"
I0608 09:35:49.035226       1 bootstrap_server.go:66] reading file "/etc/mcs/bootstrap/machine-pools/master.yaml"
I0608 09:35:49.034956       1 api.go:117] Pool master requested by address:"<IP_ADDRESS>:45836" User-Agent:"Ignition/2.9.0" Accept-Header: "application/vnd.coreos.ignition+json;version=3.2.0, */*;q=0.1"
I0608 09:35:49.035319       1 bootstrap_server.go:66] reading file "/etc/mcs/bootstrap/machine-pools/master.yaml"
I0608 09:35:49.034965       1 api.go:117] Pool master requested by address:"<IP_ADDRESS>:45834" User-Agent:"Ignition/2.9.0" Accept-Header: "application/vnd.coreos.ignition+json;version=3.2.0, */*;q=0.1"
I0608 09:35:49.035371       1 bootstrap_server.go:66] reading file "/etc/mcs/bootstrap/machine-pools/master.yaml"
I0608 09:35:49.036951       1 api.go:117] Pool worker requested by address:"<IP_ADDRESS>:45824" User-Agent:"Ignition/2.9.0" Accept-Header: "application/vnd.coreos.ignition+json;version=3.2.0, */*;q=0.1"
E0608 09:35:49.036990       1 api.go:136] couldn't get config for req: {worker 0xc000574f00}, error: refusing to serve bootstrap configuration to pool "worker"

The whole bundle is nothing new
log-bundle-20210608112502.tar.gz
It's weird, but I am getting the ping problem to hosts.
ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56 (84) bytes of data.
From <IP_ADDRESS> icmp_seq = 1 Destination Host Unreachable (balancer?)
I don't know how to log into coreos to see what the IP is.
I'm using login core and password core, but no luck.
Is  --copy-network won't transfer my network settings to the target system?

I suppose the problem was with the network. I setup dhcpd and got bootsrap complete!


MATELCLI does not support sending Data.Text.Text-specific characters.

getArgs is of type IO [String], not IO [Data.Text.Text].
This problem can be fixed by reading text from the standard input, as opposed to the arguments of MATELCLI.

Commit c258b1b629af6110bc1df6ba77568d91cf396bd5 should fix this problem.


Any plan to develop for Android or any substitute for Android?

Currently no such plan. Contribution is welcome :fireworks:


Using on top of bottom sheet, reactions are not selected. Need to click again to enable the reactions

I'm using reactions with bottom sheet. When I long press on button, the modal is opened but I'm not able to select any emoji. I have to release the press and then long press again on the emoji to select it.
It is working fine on normal screen. But with bottom sheet I'm facing this issue.
Any suggestions how I can fix this? Please, I need it urgently

@aditijain2606 Thank you for bringing up the question.
Can you share insights into the issue that you are facing? it would be better if you shared a code snippet.


Please describe the relationship to "ServerResponseLatency"

The AppGW request-response logs have 2 basic metrics: Server Response Latency and Total Time.
This article seems to suggest that Backend Last Byte Response time should be the same value as Server Response latency.
However, I had a support engineer just suggest that Backend Connect Time is not counted as a part of Server Response Latency, which is both different from what I'd get from this article and counter-intuitive.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 91ef7d8f-a88e-dc27-d6a5-b0996eb2d442
Version Independent ID: f7f1342b-5b11-9672-5196-d050e925bb29
Content: Azure Monitor metrics for Application Gateway
Content Source: articles/application-gateway/application-gateway-metrics.md
Service: application-gateway
GitHub Login: @abshamsft
Microsoft Alias: absha

@habeebtc Thank you for bringing this to our attention. We are evaluating your feedback and will have the content team update the documentation as appropriate.

@habeebtc Can you post the support request number (SR#) of the support case? I would like to look into this further.

120040824005637

@habeebtc Backend Last Byte Response time metric is the per minute aggregation of serverResponseLatency log field, and Application Gateway total time metric is the per minute aggregation of timeTaken log field.
As mentioned in this article, Backend Last Byte Response time is the time interval between start of establishing a connection to backend server and receiving the last byte of the response body. This will include the time taken to establish the connection with the backend.

@habeebtc We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


libonnxruntime.so.1 not found on rc5

I've updated to the latest rc and I found this issue:
error while loading shared libraries: libonnxruntime.so.1: cannot open shared object file: No such file or directory
In the target directory I found symbolic links with the names libonnxruntime.so and libonnxruntime.so.1.19, so I just created another identical symbolic link but with the libonnxruntime.so.1 name and everything works.

Implemented a fix for future versions. For rc5, creating the symlink manually will work just fine.


FancyZones windows loose position on switching my monitor's current input to different machine.

Microsoft PowerToys version
"0.51.1"
Running as admin

[ ] Yes

Area(s) with issue?
FancyZones
Steps to reproduce

Configure a FancyZones layout.
Snap some windows into your FancyZones layout
Switch your computer monitor to a different input.
Switch back to your PC running FancyZones.
The windows that were snapped into place in their FancyZones are now slightly off.

✔ Expected Behavior
I'd expect the windows to have remained in place.
❌ Actual Behavior
The windows move out of their zone.
Other Software
No response

It seems like you are using an outdated version of PowerToys. Please update to the latest version of PowerToys and see if the issue persists. 😄

Can you confirm this issue is still relevant in v0.73? /needinfo


Using cards and some css for projects section

In projects section, instead of using a single white block, I can use cards and also adjusting image and text size for more beautiful alignment. I can start working on this issue as soon as you assign it to me.

Hey, I'm gssoc'21 participant, I would like to give my hand in this project. Please assign this issue to me.

@himanshu007-creator Can I start working on this?

I have a great experience for CSS i can assure that i can make the website responsive and user friendly.Assign it to me.
Thanks !!!

I am gssoc participant. Can i work upon this issue...????

sorted


Fedora images have incorrect "BaseOS" in their ISO labels, fixing this is hard because of the templating design

See https://bugzilla.redhat.com/show_bug.cgi?id=2264795#c12 . @ausil noticed that the ISO labels for Fedora images built by OSBuild - specifically the Workstation live image, but this actually applies to all of them - have "BaseOS" in them. So the label for a recent Workstation live built by OSBuild is Fedora-40-BaseOS-x86_64. That's obviously wrong. Nothing in Fedora is called BaseOS, that's a RHEL term.
By comparison, the ISO label for a livemedia-creator built Fedora Workstation live image is Fedora-WS-Live-rawh-20240212-n-0 (fun fact: this format was vaguely formalized at https://fedoraproject.org/wiki/User:Adamwill/Draft_fedora_image_naming_policy forever ago, though it never stopped being a draft and isn't quite followed any more).
I wanted to fix this to make it at least Fedora-40-Workstation-x86_64, but this turns out to be surprisingly hard given how this is designed.
Basically the way it works is that each distribution struct is supposed to have an isolabelTmpl property which, as designed, should be a template string with one substitution marker, which is ultimately expected to be replaced by the architecture of the image (this is done in the various image types in pkg/image/*.go).
Because the image definitions are shared between all distributions, if I wanted to change the Fedora distribution's template to have two substitution markers, one for a "variant" and one for the arch, this would kinda have to apply to every ISO image type for all distributions. So we'd have to update all the image definitions and provide variants for every ISO image across Fedor and all RHEL versions, even though the concept apparently isn't really desired for RHEL. I just couldn't find a nice way to do this.
I think the solution is probably to replace the template with a callback at the distro level. Each distro should implement a callback function which is called with the properties of the image being built, and uses those to construct the ISO label. That way Fedora could care about variants RHEL could continue not to care about them.
I have no real knowledge of Go, though, and it's 4:30pm on Friday, so I don't feel like trying to write this (I could knock it off in ten minutes in Python, sigh).

I'll write the Go code to do this correctly :)

yeah, I guess that PR resolves it sufficiently for now (and at least provides a mechanism to do better in future for things like installer images for multiple variants).


I will not update this repo, close this issue.


Use new health status in scheduling services

The new health status should be used in service scheduling. I.e. un-healthy services should be re-scheduled automatically.

Or should we been even more cold-blooded: When instances status is reported to be un-healthy, re-schedule it immediately? 🔫

We discussed this with @jakolehm and decided to go for a bit less brutal solution:
Agent will do a restart for unhealthy containers. Maybe add configurable option to specify after how many subsequent unhealthy statuses trigger restart.
Master will do a full re-deploy when it sees that aggregated heath goes under certain threshold. To start with we'll use the "negated"  deploy.min_health parameter. So if deploy.min_health is specified to be 0.8, master will trigger redeploy if 80% or more instances as unhealthy.


add scale batches and tags

add scale batches to scale projects at task upload
add tags for file_urls and metadata.group

@rashidlasker to review the changes


KML API is down

Here's what the agency says in response to my email:

Hi Ben,
Thank you for reaching out. We are aware of this issue and are investigating and I will let you know when it is resolved. In the meantime, if you require access to the AirNow contour maps in KML format, the full version of the KMLs can be found on files.airnowtech.org in either the "Today", "Yesterday", or individual date directories. I have listed links to the latest version of each below.
[Latest O3 KML](https://s3-us-west-1.amazonaws.com//files.airnowtech.org/airnow/today/cur_aqi_ozone.kml)
[Latest PM2.5 KML](https://s3-us-west-1.amazonaws.com//files.airnowtech.org/airnow/today/cur_aqi_pm25.kml)
[Latest combined AQI KML](https://s3-us-west-1.amazonaws.com//files.airnowtech.org/airnow/today/cur_aqi_combined.kml)

-Marcus
Marcus Hylton, AirNow DMC Lead
<EMAIL_ADDRESS>|  www.TDEnviro.com
TD Environmental Services, LLC

I've updated the library to pull from the PM2.5 KML above instead. It seems to be working. You can see the result here. The main issue with the upgrade seems to be that the styleUrl column will contain the classification of the areas, and it will use a hashtag system that's different from what we had in the past.

Since what we have now is broken, for the foreseeable future, I'm going to cut an "major dot" upgrade to the library with this patch. Besides working, the other upside here is that we no longer need an API key.


Dynamic edge convolution (NNConv) vs graph attention network (GATConv)

Isn't GATConv extension of NNConv? I mean GATConv has attention heads, which are multiple filters that you learn using neural nets instead of a filter for every edge you learn using neural nets for NNConv.

Tricky question. In general, I would argue that NNConv is not an attention-based GNN. GATConv performs weighted aggregation (it learns a scalar for each incoming message), while NNConv learns a complete individual weight matrix for each incoming message. The difference is that GATConv transforms neighboring features the same (they are just scaled differently), while NNConv does not.

NNConv and GATConv are both anisotropic message passing schemes. NNConv can use the GATConv additive attention mechanism (take the edge attribute e_{ij} = [ x_i, x_j ]), but it will not use at the end the softmax "glue" that you find in GATConv. From this perspective (I guess this is what rusty1s says), it is not considered an attention-based GNN.

I agree. Also in GATConv, we can have multiple attention heads.


Task shell integration sequences are only added when showDecorations is enabled

I noticed this:
https://github.com/microsoft/vscode/blob/e4095d3a6e898b4fd35322e0218e6b902c1e6fb0/src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts#L217-L222
We always want to add the sequences as it enabled command navigation, the decorations showing is purely a visual thing that hides the decoration button.
So I suggest we remove the ShowDecorations check there and instead call into the terminal addon to disable the decoration.

To verify:

Open xterm.js repo (or any repo with a task that exits)
Run the default build task
Add suite.only to some .test.ts file
Run the test task
Cancel it
Run the test task
Cancel it
Cmd/ctrl+up should take you to the start of the task in step 6, not the very top of the terminal

I actually think we should remove the setting outright as we already have "terminal.integrated.shellIntegration.decorationsEnabled": "never" which essentially does the same thing. This would save us from exposing outside of the terminal part the ability to configure decoration visibility.
Timeline:

The terminal setting was added as a boolean in Feb https://github.com/microsoft/vscode/pull/143802
The task setting was added in June https://github.com/microsoft/vscode/issues/153812
The terminal setting was made more granular in July #154430
The interaction between the 2 settings confused someone in https://github.com/microsoft/vscode/issues/156728

@meganrogge I'll leave the decision up to you whether we remove it, it feels like too much granularity to me as the user must like the terminal ones but not the task ones.

Let's remove it


As a CSXL Developer, I would like a system for managing boolean flags so that I can control feature roll outs.

This story needs significantly more design work and further decomposition, with high level questions including:

What kinds of flags are needed (simply booleans or are there other parameters involved?)
What are the back end / administrative needs for controlling this? Is it by user lists, random samples, etc.? Ideally, starting simple and having some thoughts for further extension would be ideal.
What does the developer experience look like when implementing boolean flags for both frontend and backend concerns? (Writing this documentation early, and perhaps first, probably makes the most sense as a starting point. Items 1 and 2 are motivated by this.)

Would be great to get @naomi04's input on this given experience working with them elsewhere.

@KrisJordan, with COMP 393 and other devs working on the site + major releases occurring with commits into main, should we keep this open?

Yes, this could be cool for faster deploying.


UpdateProduct problem

Hi,
When I tried to use UpdateProduct method response is "Internel Server Error"
I checked also to update to the product with I took by GetProduct method.
What is the mistake can be ?

Can you share the specific request data (url and body)?

Hi
is it resolved? I have the same issue
/api/products/352
body :
{"ObjectPropertyNameValuePairs": {},"product":{"name": "test"}}
response :
{
"error": "Object reference not set to an instance of an object."
}

@azhinzr Hi, thanks for the report. I will look into it.

Testet and not I have produced the error with the current version of the API.


Additional type safety via field-level type branding

Problem
Prisma type safety doesn't help with dev confusion at a field level.
Imagine a schema with many models including both Contract (with R) and Contact (no R).
The dev is writing queries and mutations, e.g. a sendContactWelcomeMsg wrapper that calls db.emailRequest.create. The screen or function s/he's working on involves both contacts and contracts and due to a typo, copy-paste sloppiness, or plain confusion s/he accidentally passes the contract_id (with R) to the email-request function that requires a no-R contact ID.
What will happen?

if both IDs have the same primitive data type, Typescript will not object - there are no Prisma guards for this
if the IDs are UUIDs - the contract ID won't match any contact ID - FK violation - immediate error found in testing
if the IDs are autoincrements - the contract ID may very well match a valid contact ID, but not the contact that's being operated on - the email will be sent to an unrelated contact / person - may or may not catch this error in testing
if the IDs are user-provided values - could be like either of the above cases, depending on the variability of the ID

Similar problem: confusion with ID fields for a create function (could consume a PK value that will arise correctly / be needed later), an upsert function (disastrous - merging unrelated data onto an existing record), or a delete (also a disaster).
Different problem patterns exist for non-key fields. It would probably be much harder to detect if a dev accidentally writes the user ID to an account balance field; or accidentally writes an employee's social security number to an annual salary field; or accidentally writes dollars to a euros field.
This is a real problem. I've seen the "upsert onto the wrong record", "delete the wrong record", and "write numeric value to an unrelated field" errors in production applications. The result is severe data integrity and customer support problems.
Suggested solution
Prisma has wonderful type safety at the type level. Extend the same protection (optionally) to the field level by defining field types that go beyond primitive data types. This could be done using some form of type branding and a @branded modifier.
ID fields
ID fields are a special case -- probably the most important case to solve, and probably simpler than the general case.
An interface that requires an ID field (as PK or FK) shouldn't accept just any generic string or number that matches the primitive data type -- each ID field needs to be a distinct type with no automatic type conversion / casting. A simple parent / PK and child / FK example:
model User {
  id String @id @default(dbgenerated("uuid_generate_v4()")) @db.Uuid @branded
}

model UserEvent {
  id String @id @default(dbgenerated("uuid_generate_v4()")) @db.Uuid @branded
  user_id String @db.Uuid @branded
  user User @relation(fields: [user_id], references: [id], ...)
}

Then in the Prisma client/index.d.ts file, generate a branded type, and propagate it through all definitions:
type Brand<K, T> = K & { __brand: T }

export type User_ID = Brand<'string', 'User_ID'>

export type User = {
  id: User_ID
}

export type UserEvent_ID = Brand<'string', 'UserEvent_ID'>

export type UserEvent = {
  id: UserEvent_ID
  user_id: User_ID
}

Prisma would consider it to be a schema error if the @branded modifier appears on a PK and not all its FKs; or appears on any FK but not the PK. Prisma already enforces the rule that PK and FKs must share the primitive type -- now could do the same with the branded type instead.
When creating local variables for use in Prisma operations (as opposed to typed / branded results from queries and mutations), devs would need to import these types and use them when declaring variables that would be passed to Prisma operations, like let userId : User_ID = whatever. Note that what I'm proposing is backwards-compatible with all existing Prisma schemas and apps, because the schema developer isn't obliged to use @branded, but once s/he does, declaring variable types like this will be required to satisfy the narrower / more powerful types (depending on eslint / tsc settings).
Please consider this as an illustrative example -- I'm not trying to be prescriptive. The branding function I gave is too simple -- maybe something like this would be more suitable: https://stackoverflow.com/a/70262876/763269. I don't have a strong opinion about the internal naming conventions. All those can be debated later if the idea appeals to you. The main naming requirement is that the type name for the ID-field brand should have the same uniqueness quality / scope as the model name itself, so the uniqueness of model names would ensure the uniqueness of per-model ID type names.
I don't know if this concept should also apply to @unique fields or just @id fields.
The same solution pattern applies no matter what the primitive type is for the ID.
Non-ID fields
Non-ID fields are also an important case but somewhat more complicated.
ID fields are self-defining (from the core model's @id field) and it's obvious where those types should be applied (in the core model / PK field, and in related models / FK fields). The @branded attribute doesn't need more info for ID fields.
Non-ID field types don't have a single defining field -- e.g. there could be many "US dollar"-typed fields in the model. We can't rely on a field-naming pattern to imply the type (e.g. balance, amount etc. all may be denominated in USD). The type for a non-ID field needs to be named by the schema developer in some way, e.g. maybe via parameter(s) to @branded:
model InvoiceLine {
  id String @id @default(dbgenerated("uuid_generate_v4()")) @db.Uuid @branded
  unit_price Decimal @db.Decimal(23, 8) @branded('usd')
  quantity Int
  ext_price Decimal @db.Decimal(23, 8) @branded('usd')
}

model User {
  id String @id @default(dbgenerated("uuid_generate_v4()")) @db.Uuid @branded
  balance Decimal @db.Decimal(23, 8) @branded('usd')
}

Then in the Prisma client/index.d.ts file:
type Brand<K, T> = K & { __brand: T }

export type Brand_usd = Brand<'Prisma.Decimal', 'usd'>

export type InvoiceLine_ID = Brand<'string', 'InvoiceLine_ID'>

export type InvoiceLine = {
  id: InvoiceLine_ID
  unit_price: Brand_usd
  quantity: Prisma.integer
  ext_price: Brand_usd
}

export type User_ID = Brand<'string', 'User_ID'>

export type User = {
  id: User_ID
  balance: Brand_usd
}

Prisma would consider it to be a schema error if all fields with the same branded name don't have identical primitive data types (although they could differ in nullability and maybe some other attributes).
Naming pattern is a more interesting problem in this case. My initial reaction is brands should have the same conventions as model names -- distinct PascalCase names. But I'm not convinced of that. The closest analog to branding in the DB layer is Postgres domains with the normal PG naming convention, so you could have distinct usd, Usd and USD domains all in a single PG schema. Also the Prisma-provided type brands are Typescript types, which in general aren't required to have any particular name pattern, and an app could have several similarly-named types that exist prior to Prisma type brands and need to coexist with or be refactored to use the type brands. So I suspect the rule should be, any number of brands can be defined in a Prisma schema, and the precise name provided (i.e. any valid TS identifier) defines / identifies the branded type.
Alternatives
Brand as a first-class entity
While the ID-field approach seems neat and clean to me, the non-ID field approach I outlined is a little messy because each field that shares the brand needs to have identical typing in other respects too. It could make more sense to define the brand as a new top-level entity in the schema and apply that as a type, not just a modifier, in the Prisma schema:
brand Usd { Decimal @db.Decimal(23, 8) }
##          ^^ could be any valid Prisma field type definition

model InvoiceLine {
  id String @id @default(dbgenerated("uuid_generate_v4()")) @db.Uuid @branded
  unit_price brand.Usd
  quantity Int
  ext_price brand.Usd
}

Multiple fields that share a type brand must certainly share the more fundamental types. That can be defined implicitly for ID fields (is fully specified by the model's existing @id field definition), but would need to be explicit for non-ID fields.
Multi-field types
Prisma models can have multi-field ID fields specified by the @@id attribute. The problem is essentially the same (using a wrong field value in a 2-field PK reference is every bit as bad as doing it with a 1-field PK). While Prisma does generate types that represent multi-field IDs and unique constraints, we would still need the branding concept for individual fields within those multi-field types to help prevent the motivating problems like the Contract vs. Contact confusion.
Native DBMS support
This seems like an anti-requirement to me.
When the target DBMS supports a custom domain or type construct, it could be tempting to generate the DDL that corresponds to the branded type -- e.g. Postgres CREATE DOMAIN or MS SQL Server CREATE TYPE. This seems like a can of worms -- what happens if a field's branded type is removed or re-assigned in the Prisma schema? Is the ripple effect in the DB layer small or large? At first blush supporting the construct seems appealing, but the main benefit can be obtained via Prisma types only with zero impact on schema generation, migration, or introspection.
Relationship to GraphQL
GQL has the concept of custom scalar types -- e.g. https://www.apollographql.com/docs/apollo-server/schema/custom-scalars/. That seems like a decent inspiration for this, although I don't think in and of itself that would deliver the level of Typescript integration I'm envisioning. I prefer how Prisma presents the type info. But maybe this helps in some way.
Additional context
This would help make Prisma more powerful than the DBMSs it layers on top of.

Wrote another example for a kind of bug this could catch here: https://github.com/prisma/prisma/issues/21024#issue-1889031437


Thanks

Without paid signing key this won't be possible at the moment.


drpolicy.yaml: drClusterSet and schedulingInterval values specify

Signed-off-by: hatfieldbrian<EMAIL_ADDRESS>

This pull request reflects the following DRPolicy field additions:

drClusterSet https://github.com/RamenDR/ramen/pull/117
schedulingInterval https://github.com/RamenDR/ramen/pull/182

LGTM


styleable valueview

removed pill element because it was just a div with round corners, and only used by valueview
valueview accepts a className prop

yes it's incorrect, imo, should be using cva, but i would rather take this flexible approach for minimal change as my objective is to complete ibc style

The Pill is also being used in #858 so I'd prefer we don't get rid of it. It's sort of a foundational component we can use in a lot of contexts.
Also to Gabe's point re #432, I'm strongly opposed to having className props on components that are used in a bunch of places. It makes maintainability a nightmare. Instead, if there are several ways you want to be able to represent ValueViews via ValueViewComponent, add e.g., a variant prop so that ValueViewComponent itself can decide how to render for various use cases, rather than a parent component reaching in and changing its internal appearance.


Web workers

We can move a bunch of our low priority but main-thread-blocking tasks onto web workers for better performance.  I'm planning some work on this for the next version.

Dropping useful links here
Docs:

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm

webworker perf:

https://developers.redhat.com/blog/2014/05/20/communicating-large-objects-with-web-workers-in-javascript
https://joji.me/en-us/blog/performance-issue-of-using-massive-transferable-objects-in-web-worker/

mapbox-gl related worker benchmarks:

https://github.com/mapbox/mapbox-gl-js/issues/1504
https://github.com/mapbox/mapbox-gl-js/issues/7011 & related

serialization benchmarks:

https://stackoverflow.com/questions/6218524/fastest-possible-javascript-object-serialization-with-google-v8
https://github.com/Adelost/javascript-serialization-benchmark

I'm really enjoying working with threads.js and have made some small progress on moving some background GeoJSON processing to a worker:

https://threads.js.org/usage

It's looking like avro / avsc is the frontrunner for if we want to pack and larger messages into a Transferable

https://www.npmjs.com/package/avsc

I did some testing with moving some pieces of the coreLocations functionality into a worker.  Here's what I learned.
Overview
coreLocations maintains an internal index of all the boundaries/geofences used by iD.  This code is used by presets, community index, background imagery, to know where in the world things are valid.
iD uses this code for a lot of things, for example knowing which countries use a VAT ID field, where Aldi Nord vs Aldi Süd operate, and mapping out the Burger King zone of exclusion.  These geofences are defined by locationSets and they need to be pieced together soon after iD starts up.  Currently, the coreLocations module will merge and resolve these locationSets in the background during idle times.  This works ok - but iD stutters a bit for the first few seconds when it starts up.
This work is 1. time consuming and 2. already asynchronous, so that makes it well suited to move into a web worker.
Challenges
Here are some things that make web workers hard to work with.

Workers can't do everything main thread can do.  Notably, they can't touch the DOM.
A worker has its own isolated environment - worker threads can't (yet) share memory with the main thread.

I initially had hoped to run validators in a worker thread, but without access to context, history, graph, etc, we really can't do much with actual OSM data without big architectural changes.

Workers are message based. That means calling a worker is necessarily asynchronous.  Much of the code in iD is written in a synchronous way, and going from sync to async is really complicated.  (see What Color Is Your Function?)
More on the messages.  Sending data to and from workers is time consuming.  There are 2 ways to do it:

postMessage and structured cloning - The browser handles sending the message between main and worker threads.  This is not free and it does cost some milliseconds of cpu time (which afaict is spread between both main and worker threads)
transferrable objects - you can pack a message into an ArrayBuffer and transfer ownership instantly to the other thread (the memory is not accessable from the sending thread anymore). This is also not free, as you need to spend time packing/unpacking the messages.

Not really a problem with the web workers themselves but - I initially expected to add worker functions in the same files as the main functions and export them separately and have esbuild make separate iD.js and worker.js bundles.  It turns out esbuild is not great at tree shaking (dead code elimination), so the worker.js file ended up with all the main thread's imported code.  It's just easier to put the worker stuff in a separate file for now, otherwise the worker bundle ends up with all of d3, id-sdk and whatever else.

The process
Here's what I did:

Try to move all of coreLocations into a worker.  Wrote a thin proxy that passed messages back and forth with postMessage.  This seemed to work ok except..
Now calling locationManager.locationsAt() was no longer synchronous.  This is the code that determines which locations a preset or field is available.  This means preset matching is no longer synchronous and all kinds of stuff throughout the code just won't work, so...
Can we keep locationsAt() synchronous?  Only by having a copy of the location index on the main thread...
So if the location index needs to live on on the main thread, all the worker can do is resolve the locationSets into GeoJSON and pass them back to the main thread to get indexed.  It's still a win, but...
These GeoJSONs are big so now I have to figure out how to efficiently pack and unpack them as transferrable objects...  Or do the work in chunks..

Some benchmarks
These are interesting because iD first merges the core presets (only 9 locationSets), then fetches the NSI presets (15839 locationSets), then does an unnecessary merge (0 locationSets).  So we can see how much different sizes of messages cost.
Using postMessage

Using Transferable Object (and very simple TextEncode/TextDecode pack/unpack)

TODO: going to try the avro library and see if I can get those main thread unpack times down..


Options add host resolution - remove websocket options

The objective is to leverage std::net::ToSocketAddrs instead of SocketAddr. This approach enables the use of a hostname for the RPC, which is particularly beneficial for docker container networking. With this method, one container can connect to another without the necessity of knowing the assigned IP.
NOTE: This PR also remove the unnecessary ws option settings.

I tried this PR, but it does not allow connecting by hostname:
$ cargo run --bin wallet-cli -- --rpc-address=localhost:3030
    Finished dev [unoptimized + debuginfo] target(s) in 0.17s
     Running `target/debug/wallet-cli '--rpc-address=localhost:3030'`
error: invalid value 'localhost:3030' for '--rpc-address <RPC_ADDRESS>': invalid socket address syntax

Instead, it allows to bind to a hostname, which is not very useful:
$ cargo run --bin node-daemon -- testnet --http-rpc-addr=localhost:3030


[Feature] Merge chat branch into develop

Purpose
This PR is to merge the chat feature branch into develop branch to simplify the development process moving forwards.
Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Pull request checklist
What to Check
All chat and calling functionality should be unaffected.
CI will now do both chat and calling for all PR commits

hey would you mind to rebase merge-chat-develop, I just merged a bug fix to chat

Can you merge the change into the merge-chat-dev branch please?


Console window doesn't log everything

For loop goes 10 times, and only 4 "Hello, world"'s show.

Are sure this is not a css problem? I mean, the console dev might have an issue handling the overflow contents. So, the complete log is there, but is not showing in console log div.

Giving the console div this property : overflow: scroll;  might fix the problem.

Fixed in issue-#83


OOM

Impressive Work!!  I've encounter OOM in NVIDIA GeForce4090 24G GPU memory.

I checked the config, its content is as followed:
name: sifu
ckpt_dir: "./data/ckpt/"
resume_path: "./data/ckpt/sifu.ckpt"
normal_path: "./data/ckpt/normal.ckpt"

test_mode: True
batch_size: 1

net:
  #mlp_dim: [512, 512, 256, 128, 1]
  mlp_dim: [512, 1024, 512, 256, 128, 1]
  mlp_dim_color: [512, 1024, 512, 256, 128, 3]
  res_layers: [2,3,4]
  num_stack: 2
  prior_type: "icon" # icon/pamir/icon
  use_filter: True
  in_geo: (('normal_F',3), ('normal_B',3))
  in_nml: (('image',3), ('T_normal_F',3), ('T_normal_B',3))
  smpl_feats: ['sdf', 'cmap', 'norm', 'vis','sample_id']
  gtype: 'HGPIFuNet'
  norm_mlp: 'batch'
  hourglass_dim: 6
  smpl_dim: 7

# user defined
mcube_res: 512    # occupancy field resolution, higher --> more details
clean_mesh: False # if True, will remove floating pieces

solve by #28


FLutter Debug apk works using shared prefeences but release apk not work

Use case

Proposal

Hi @biratheeban
can you please provide your flutter doctor -v and flutter run --verbose?
Also, to better address the issue, would be helpful if you could post a minimal code sample to reproduce the problem
Thank you

Hi

Thank you
flutter doctor -v
[√] Flutter (Channel stable, v1.12.13+hotfix.9, on Microsoft Windows [Version
10.0.18363.720], locale en-US)
• Flutter version 1.12.13+hotfix.9 at D:\flutter
• Framework revision f139b11009 (2 weeks ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2

[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\MS\AppData\Local\Android\Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = C:\Users\MS\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
! Some Android licenses not accepted.  To resolve this, run: flutter doctor
--android-licenses
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.43.2)
• VS Code at C:\Users\MS\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.9.0
[√] Connected device (1 available)
• RNE L22 • 8UEDU17C12001117 • android-arm64 • Android 8.0.0 (API 26)
! Doctor found issues in 1 category.
This is my code splash.dart

import 'package:dokotelemed/home.dart';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'main.dart';

void main() {
  runApp(MaterialApp(home: ItemsWidget()));
}

class ItemsWidget extends StatefulWidget {
  @override
  _ItemsWidgetState createState() => _ItemsWidgetState();
}

class _ItemsWidgetState extends State<ItemsWidget> {
  Future<SharedPreferences> _prefs = SharedPreferences.getInstance();

  String token = "";

  Future<void> checkLogin() async {

    SharedPreferences prefs = await SharedPreferences.getInstance();
    token = prefs.getString('token');

    Fluttertoast.showToast(
        msg: token,
        toastLength: Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        timeInSecForIosWeb: 1,
        backgroundColor: Colors.red,
        textColor: Colors.white,
        fontSize: 16.0
    );

    if (token == null) {
      print(token);
              Navigator.pushAndRemoveUntil(
          context,
          MaterialPageRoute(builder: (context) => MyApp()),
              (Route<dynamic> route) => false,
        );
    }else{
      Navigator.pushAndRemoveUntil(
          context,
          MaterialPageRoute(builder: (context) => HomePage()),
              (Route<dynamic> route) => false,
        );
    }

//      if(token.length>=5){
//        Navigator.pushAndRemoveUntil(
//          context,
//          MaterialPageRoute(builder: (context) => HomePage()),
//              (Route<dynamic> route) => false,
//        );
//
//      }else{
//        Navigator.pushAndRemoveUntil(
//          context,
//          MaterialPageRoute(builder: (context) => MyApp()),
//              (Route<dynamic> route) => false,
//        );
//      }

  }

  @override
  void initState() {
    super.initState();
    checkLogin();
    //  _readAll();
  }

  @override
  Widget build(BuildContext context){
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[

            Text(
              'Loading...',
            ),
          ],
        ),
      ),

    );
}

Hi @biratheeban
Please try the official shared_preferences sample, since your code sample is incomplete
It works fine in release APK
Thank you

Thank you
Its Works
I set spalash.dart as my start file In Realse main.dart set as default thats why its not working
i think.
Is there any way to set launch activty other dart file  rathether than manin.dart while release?

Hi @biratheeban
Thanks for confirmation, if i am not what you mean by "launch activity other dart file".
You can use platforms channels to call native code before dart code
This platform is not meant for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this, you may also get some help if you post it on Stack Overflow. Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you

Thankyou


Empty close reasons

When websocket gets closed because of maxPayloadLength exceeded, it closes with 1006 and empty reason data.
Would it be possible to have option to turn on details for close reasons?
I would like to monitor socket closes also log if someone gets disconnected for exceeded payload length to know that there is something wrong client side and its sending unexpected sized messages or in case of attempted DoS attack etc.
I could also do this on message handler but would that be good idea?
Thanks

There are better close codes we can use (standard):

1009
Message too big
The endpoint is terminating the connection because a data frame was received that is too large.

Oh yeah, looks like that would suit the purpose.

Too bad the execution path does not allow passing custom data like that, we only trigger a close, then close handler has a hard-coded 1006 for all force closes. This would have to be fixed in uSockets.

us_socket_close would have to pass void *user, probably. Then we could start putting more meaningful close reasons

https://github.com/uNetworking/uSockets/issues/110

https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent
I'm interested in this. There should be at least five different reasons for internal close

You can use close code 3000 as a library reserved together with custom text, because that code cannot be sent

Oh, I see now. You can't really use any code other than 1006 like we already do, because that's the only code that the other end MUST NOT send as code (well, 1005 also) - 1006 is a pseudo code that can only be reported from the library itself. That's why we only report that code. Reporting 1009 as an internal code is wrong, since that overlaps with the possibility of the other end actually sending 1009 themselves.
So what we can do is we can report 1006 with a varying string message like "Message too big", etc. So it becomes a debug feature in English text. We can do that

Alright this is fixed now


README improvements

README improvements
Motivation

General proof-reading and some additions related to new Python contribution

This is a lean contributon :)

[x] Explain the motivation for making this change.
[x] Ensure it is the smallest possible and changes the minimum number of files. Small pull requests are much easier to review and more likely to get merged ASAP.

Discovery in python works 🎉
Beware that this little change was necessary.


Wrong indentation from line 171 - 181 in pytchat/pytchat/core/pytchat.py

Hi. I'm very new here.
Is it wrong indentation from line 171 - 181 in pytchat/pytchat/core/pytchat.py ??

If  the count of for loop exceeds MAX_RETRY, then the process jumps to else clause (line:182), and raises exception that displays "Exceeded retry count.".
If not (=no error occurs in try clause and livechat_json is successfully retrieved BEFORE the count reaches MAX_RETRY), the process escapes from the try clause (break  line 177) and jumps to line 186.
This for ... else... behavior is unique to python as far as I know.
https://docs.python.org/3/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops
If you still have questions after going through the above explanation,  could you show me where is wrong and what code you think is correct?

If  the count of for loop exceeds MAX_RETRY, then the process jumps to else clause (line:182), and raises exception that displays "Exceeded retry count.".
If not (=no error occurs in try clause and livechat_json is successfully retrieved BEFORE the count reaches MAX_RETRY), the process escapes from the try clause (break  line 177) and jumps to line 186.
This for ... else... behavior is unique to python as far as I know.
https://docs.python.org/3/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops
If you still have questions after going through the above explanation,  could you show me where is wrong and what code you think is correct?

Oh, you are right. I never knew this for ... else...  before. However, my code is working just update from 0.3.2 to 0.5.2.
Thank you.

Oh, you are right. I never knew this for ... else...  before. However, my code is working just update from 0.3.2 to 0.5.2.
Thank you.


restore --verify: too many open files

Output of restic version
restic 0.9.2 compiled with go1.11 on linux/amd64
How did you run restic exactly?
[davidak@X230:~/tmpp]$ restic restore -i '/home/davidak/nixpkgs' -t /home/davidak/tmpp/ 342c8da4
...
ignoring error for /home/davidak/tmpp/home/davidak/nixpkgs/default.nix: open /home/davidak/tmpp/home/davidak/nixpkgs/default.nix: too many open files

What backend/server/service did you use to store the repository?
minio on NixOS
https://github.com/davidak/nixos-config/blob/25568c70f50eae29aee4ec1d8025fd76d1589673/machines/nas/configuration.nix#L110-L115
Expected behavior
restore files without errors
Actual behavior
restic wants to open more than 1024 files while verifying, but that's not allowed.
without --verify the restore only opens one file at a time and has 10 file handlers open, at the end 14.
[davidak@X230:~]$ lsof -c restic
COMMAND   PID    USER   FD      TYPE  DEVICE  SIZE/OFF     NODE NAME
restic  28778 davidak  cwd       DIR   254,2      4096  3419056 /home/davidak/tmpp
restic  28778 davidak  rtd       DIR   254,2      4096        2 /
restic  28778 davidak  txt       REG   254,2  13922760 12329434 /nix/store/69sdyzk1xs5pycn9s1pm7qzp23j0pw3b-restic-0.9.2-bin/bin/restic
restic  28778 davidak    0u      CHR   136,7       0t0       10 /dev/pts/7
restic  28778 davidak    1u      CHR   136,7       0t0       10 /dev/pts/7
restic  28778 davidak    2u      CHR   136,7       0t0       10 /dev/pts/7
restic  28778 davidak    3u     IPv4 1948771       0t0      TCP X230.lan:53256->nas.lan:cslistener (ESTABLISHED)
restic  28778 davidak    4u  a_inode    0,12         0     8978 [eventpoll]
restic  28778 davidak    5w      REG   254,2 124270774  4729399 /home/davidak/tmpp/home/davidak/nixpkgs/.git/objects/pack/pack-18195059b4b6532d1d5f9ca4240f52da29b3dd3f.pack

Steps to reproduce the behavior
restore big directory (more than 1024 files) and --verify
Do you have any idea what may have caused this?
--verify probably opens unlimited files. maybe opens new files faster than reading already opened ones.
Do you have an idea how to solve the issue?
limit files verify opens at a time.
a similar problem was already solved in https://github.com/restic/restic/issues/101 ;)
Did restic help you or made you happy in any way?
it's the best backup tool i have used so far and using it feels great most of the time. i like that it's open source, so i can contribute and help solve problems still exists.

Hmm, weird. Every code path in restorer.VerifyFiles() closes the file when it returns... https://github.com/restic/restic/blob/920727dd343bc2b1c5a4f48fbe15fcd1e7d49f60/internal/restorer/restorer.go#L295-L337
(I am not quite sure why it doesn't use defer though)
So if the bug is in this function, it is not obvious...

This bug is already resolved in #2044, which (unfortunately) is not included in any released version of restic yet. Can you retry with the master branch?
I'm closing this issue, please feel free to add further comments. Thanks!

(I am not quite sure why it doesn't use defer though)

I don't like using defer() for anything that involves error handling, it tends to get very complicated very fast, which negates the convenience of using it in the first place.

Can you retry with the master branch?

When i try to build master i get this error:
building '/nix/store/6anxgz7bafflz13jggdik99yiwf5qjfs-restic-2018-11-03.drv'...
unpacking sources
unpacking source archive /nix/store/jbzgy67584fxk0p9v1nki0zssfir01iv-source
source root is source
patching sources
configuring
building
go: cannot use modules with build cache disabled
build failed: exit status 1
exit status 1
builder for '/nix/store/6anxgz7bafflz13jggdik99yiwf5qjfs-restic-2018-11-03.drv' failed with exit code 1

Nixpkgs has this build steps defined: https://github.com/NixOS/nixpkgs/blob/3074027738f5ca724ddbd92bbb26ee059926fedc/pkgs/tools/backup/restic/default.nix
I just override the name, version and git commit hash:
  nixpkgs.config = {
    packageOverrides = super: let self = super.pkgs; in {
      restic = super.restic.overrideAttrs (oldAttrs: rec {
        name = "restic-${version}";
        version = "2018-11-03";
        src = super.fetchFromGitHub {
          owner = "restic";
          repo = "restic";
          rev = "c0572ca15f946c622d9c4009347dc4d6c31cba4c";
          sha256 = "1ydyqm5hn35iyhg2mg1lbscssks6n3v83qj7v1rjy8n93d711znc";
        };
      });
    };
  };

Have you seen that error? Does the build of latest master work differently than 0.9.2?


fixed gitignore

We already have this in master https://github.com/amilajack/freesound-player/blob/master/.gitignore#L29


Feature/cassandra schema

Added a lasair_cassandra role create the schema in place of the gkansible.gkservercollection.cassandra_schema_lasair one (see deploy.yaml).  The code runs shell commands rather than includes any special cassandra-specific galaxy modules, and must be run on ONE CASSANDRA NODE ONLY.
Note that the default git_branch variable (main) contains CQL syntax errors which are fixed in this branch.
The code is completely idempotent, since IF NOT EXISTS is also valid syntax in CQL.
No integration tests yet added, since this is dependent on setting up the Jenkins environment.

I am thinking you have fixed the bugs in main that are already fixed in develop?

I don't understand why the cql commands are pulled from git. Why not use the local versions
lasair-lsst/common/schema/lasair_cql/diaObjects.cql
This should also be changed in deploy/lasair_database

I think right now the issue with using local versions of the schemas is that there is no logic to check that the branch being deployed is the branch checked out - and this isn't a weird corner case, it's something we actually do all the time at the moment. In the long run I think we should change that, update our workflow and include the necessary logic, but that's really a different feature to this one.

I did some experiments and IF NOT EXISTS is fine in CQL. The reason it failed previously is that CQL doesn't allow NOT NULL statements, one of which was still present in the diaObjects table (fixed in my branch).
Yes, I just followed the scheme in lasair_database for the CQL scripts, but I agree that it does seem very odd that we pull the SQL and CQL schema scripts from another branch. I would argue that the scripts shouldn't exist at all in the repository, and get created dynamically as part of the deployment process directly from the schema definition, so the schema is always kept up to date.


Request: Flip button positions

For some reason my button directions are opposite to opening and closing actions on the shutter. Up arrow brings the awning down and vice versa.
Similar to flipping the percentage, can we also have an option to flip the direction of movement of the motor based on  arrow clicks?

I have the same problem.

Same here. I'm using sonoff dual r2 tasmota (9.5.0). The direction of the shutter is in accord with the direction shows in the card. Only the arrows move the shutter in the opposite directions. Is it possible to change only the behaviour of the arrows?
Thanks

same issue here


Error with example dataset

Hi all,
I am really interesting in using your R package to deconvulte some of my bulk RNA-seq data. I was just trying to use the example data which is loaded with the package but I have already encountered an error as below:
> RESULTS <- SQUID(B=B, scC=scC , scMeta=scMeta)

              ----------------------------------- Welcome To SQUID ---------------------------------------

                                  ########    ########    #      #    ########    #######
                                  #           #      #    #      #       ##       #      #
                                  #           #      #    #      #       ##       #       #
                                  ########    #  ##  #    #      #       ##       #        #
                                         #    #    # #    #      #       ##       #       #
                                         #    #     ####  #      #       ##       #      #
                                  ########    ########    ########    ########    #######

               Execute an Effective method for bulk RNA-seq deconvolution using scnRNA-seq transcriptomes

              --------------------------------------------------------------------------------------------

SQUID just began the analysis ...

SQUID is transforming the Bulk samples using all informations ...  DONE!

SQUID is solving the dampened weighted least squares model for Bulk samples ...

Error in `>.default`(date, (startdate - 1)) :
  comparison (>) is possible only for atomic and list types

Hi Sian,
Thanks for letting us know.
The error is about the data type. You may need to check the required data types of all the input datasets:

class(P)
[1] "matrix" "array"
class(B)
[1] "matrix" "array"
class(scC)
[1] "matrix" "array"
class(scMeta)
[1] "data.frame"
class(P)
[1] "matrix" "array"

Let me know if you have any questions.
Best,
Mohammad

From: Siân Hamer @.>
Sent: Thursday, August 29, 2024 11:01 AM
To: mjnajafpanah/SQUID @.>
Cc: Subscribed @.***>
Subject: [mjnajafpanah/SQUID] Error with example dataset (Issue #2)
CAUTION: This email is not from a BCM Source. Only click links or open attachments you know are safe.

Hi all,
I am really interesting in using your R package to deconvulte some of my bulk RNA-seq data. I was just trying to use the example data which is loaded with the package but I have already encountered an error as below:

RESULTS <- SQUID(B=B, scC=scC , scMeta=scMeta)

          ----------------------------------- Welcome To SQUID ---------------------------------------

                              ########    ########    #      #    ########    #######
                              #           #      #    #      #       ##       #      #
                              #           #      #    #      #       ##       #       #
                              ########    #  ##  #    #      #       ##       #        #
                                     #    #    # #    #      #       ##       #       #
                                     #    #     ####  #      #       ##       #      #
                              ########    ########    ########    ########    #######

           Execute an Effective method for bulk RNA-seq deconvolution using scnRNA-seq transcriptomes

          --------------------------------------------------------------------------------------------

SQUID just began the analysis ...
SQUID is transforming the Bulk samples using all informations ...  DONE!
SQUID is solving the dampened weighted least squares model for Bulk samples ...
Error in >.default(date, (startdate - 1)) :
comparison (>) is possible only for atomic and list types
—
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_mjnajafpanah_SQUID_issues_2&d=DwMCaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=4DhvbN7IEXgxPlg3Sc_Ok3yYJcjRdOyzoRnQ4SfoMTjDRRx-Ttmkm4px9ikg7uJL&m=2Mkus1ueZKpR2Vx3_iaYao2G4IhwGNwm7Jlzelw2drZa8n6j3Kxkm446G4XIrMAc&s=KJh_9GAlG-ntcNh13qdOqD4-vD1HHThRpC3BmDWNOJ8&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_A3SLMPO2CCLOE24W7MELLZ3ZT5AVFAVCNFSM6AAAAABNKXWIAKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4TIOJVHAZTOMI&d=DwMCaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=4DhvbN7IEXgxPlg3Sc_Ok3yYJcjRdOyzoRnQ4SfoMTjDRRx-Ttmkm4px9ikg7uJL&m=2Mkus1ueZKpR2Vx3_iaYao2G4IhwGNwm7Jlzelw2drZa8n6j3Kxkm446G4XIrMAc&s=_J8MguDdYPIpBNzH2by1oVpJ2rTVDeTzqdVeY-J0038&e=.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


Can't type or copy/paste in python interactive window

Issue Type: Bug
Seems like randomly it allows me to type and copy/paste commands.
Extension version: 2020.11.367453362
VS Code version: Code 1.51.1 (e5a624b788d92b8d34d1392e4c4d9789406efe8f, 2020-11-10T23:34:32.027Z)
OS version: Windows_NT x64 10.0.19042

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.83GB (14.27GB free)

Process Argv
C:\Users\ansalced\Downloads\PowerPoint_web_drivers_analysis.ipynb --crash-reporter-id ab6e5b6b-9a23-4324-8ca6-95b75b096ca7

Screen Reader
no

VM
0%

So do mine, sometimes
It's like this after the upgrade

I found that as long as the new command is executed, if you can't enter a new command, you can click one of the five buttons in the leftmost column（explorer, search, git, run, extension..........）, and then you can type again


Update systemrequirements-zosmf-lite.md

I removed the 3 bullets, namely:

Microsoft Internet Explorer Version 11 or later.
Microsoft Edge (Windows 10).
Mozilla Firefox ESR Version 52 or later.

I added a link to a page in the IBM documentation. This page lists the browsers supported by zosmf.
Describe your pull request here:
List the file(s) included in this PR:
After creating the PR, follow the instructions in the comments.

The changes to the content have been approved.
There are no further changes to be done to the content as of now.
I am signing off on this Pull Request.

The changes to the content have been approved.
There are no further changes to be done to the content as of now.
I am signing off on this Pull Request.


[Application] Add Mixed precision Application

Add Mixed Precision example on Application

this example can guide developer to handle fp16 example
we can test & eval our model end-to-end
we can optimize base on this model

Self evaluation:

Build test:   [X]Passed [ ]Failed [ ]Skipped
Run test:     [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2661. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

:octocat: cibot: @DonghakPark, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2661-202411251114330.84478902816772-2413c4302378ecfa5b61fce19a4fd1d5feb53b85/.


Allow to set video resolution when publishing with WebRTC / browser

Describe the feature
Discussed in #2156

fixed by #2584


⚠ Samsung has degraded performance

In 73e7a28, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2593 ms

Resolved: Samsung performance has improved in 223d911.


Add coverage for SDC + gallery modules and upload - DO NOT REVIEW

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #719
Description
Added coverage reports for datacapture and datacapturegallery modules
Alternative(s) considered
N/A
Type
Choose one: Testing | Code health
Screenshots (if applicable)
Checklist

[x] I have read and acknowledged the Code of conduct
[x] I have read How to Contribute
[x] I have read the Developer's guide
[x] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA
[x] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach
[x] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project
[x] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally
[x] I have built and run the reference app(s) to verify my change fixes the issue and/or does not break the reference app(s)

Codecov Report

Merging #793 (51e6e86) into master (2b3d96b) will decrease coverage by 5.00%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #793      +/-   ##
============================================
- Coverage     52.96%   47.96%   -5.01%
- Complexity      197      227      +30
============================================
  Files            48       52       +4
  Lines          1027     2258    +1231
  Branches        146      336     +190
============================================
+ Hits            544     1083     +539
- Misses          396     1004     +608
- Partials         87      171      +84

Impacted Files
Coverage Δ

...android/fhir/db/impl/entities/LocalChangeEntity.kt
85.71% <0.00%> (-14.29%)
:arrow_down:

...gine/src/main/java/com/google/android/fhir/Util.kt
25.00% <0.00%> (-8.34%)
:arrow_down:

...ava/com/google/android/fhir/impl/FhirEngineImpl.kt
2.22% <0.00%> (-2.54%)
:arrow_down:

...n/java/com/google/android/fhir/search/SearchDsl.kt
65.38% <0.00%> (-1.78%)
:arrow_down:

...main/java/com/google/android/fhir/DatastoreUtil.kt
0.00% <0.00%> (ø)

...n/java/com/google/android/fhir/sync/SyncJobImpl.kt
0.00% <0.00%> (ø)

...ava/com/google/android/fhir/sync/FhirSyncWorker.kt
0.00% <0.00%> (ø)

...a/com/google/android/fhir/sync/FhirSynchronizer.kt
0.00% <0.00%> (ø)

...le/android/fhir/db/impl/ResourceDatabase_Impl.java
20.70% <0.00%> (ø)

...droid/fhir/db/impl/dao/SyncedResourceDao_Impl.java
11.36% <0.00%> (ø)

... and 11 more

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 2b3d96b...51e6e86. Read the comment docs.


Option for v2 alongside v3.3

I was wondering whether it would be an option to include a switch for generating docker-compose v2 next to the current v3.3. Few of us use Portainer, which still does not support v3 in its stack unfortunately...

Sounds like a good feature!
Do you have an idea for what the UI / changes to the code might look like? Wanna take a stab at spearheading this?

Sounds like a good feature!
Do you have an idea for what the UI / changes to the code might look like? Wanna take a stab at spearheading this?

Hi @magicmark no idea how the conversion is happening between v2 and v3, have not found a documentation about it. This also means that I unfortunately cannot help you with the implementation. Regarding the UI solution, I though that a drop-down menu on the left could turn the default v3 docker-compose into a v2 and vice versa.

Hi @magicmark no idea how the conversion is happening between v2 and v3, have not found a documentation about it. This also means that I unfortunately cannot help you with the implementation. Regarding the UI solution, I though that a drop-down menu on the left could turn the default v3 docker-compose into a v2 and vice versa.

@DOFfactory sounds good - lmk if you want to champion this effort :)

@DOFfactory sounds good - lmk if you want to champion this effort :)

Hi all, as far as I read on converting version: 2 to version: 3, there not so much options changed : https://docs.docker.com/compose/compose-file/compose-versioning/#upgrading

group_add: sounds like is supported in last 3.x specs https://docs.docker.com/compose/compose-file/05-services/#group_add, so no difference

volumes_from: sounds like is supported in last 3.x specs https://docs.docker.com/compose/compose-file/05-services/#volumes_from

cpu_shares: sounds like is supported in last 3.x specs https://docs.docker.com/compose/compose-file/05-services/#cpu_shares

cpu_quota: sounds like is supported in last 3.x specs https://docs.docker.com/compose/compose-file/05-services/#cpu_quota

cpuset: sounds like is supported in last 3.x specs https://docs.docker.com/compose/compose-file/05-services/#cpuset

memswap_limit: sounds like is supported in last 3.x specs https://docs.docker.com/compose/compose-file/05-services/#memswap_limit

mem_limit: so for 2.x, it is at service level (not in deploy resources) but in 3.x it seems just ignored outside of swarm, same thing for all deploy section that maps to service level properties (https://docs.docker.com/compose/compose-file/compose-file-v2/#cpu_count-cpu_percent-cpu_shares-cpu_period-cpu_quota-cpus-cpuset-domainname-hostname-ipc-mac_address-mem_limit-memswap_limit-mem_swappiness-mem_reservation-oom_kill_disable-oom_score_adj-privileged-read_only-shm_size-stdin_open-tty-user-working_dir) instead of deploy (https://docs.docker.com/compose/compose-file/deploy/#memory)

pids_limit: so for 2.x, it is at service level (not in deploy section) but in 3.x it seems just ignored outside of swarm (like all deploy section but not sure)

extends:  no docker run option related to this

volume_driver: no docker run option related to this

link_local_ips  in  networks: so for 2.x, just ignored/removed

So the main process to make a 2.x is to transform deploy section, and remove link_local_ips

Will add an option to produce 2.x or 3.x ; and the abilty to merge with an existing docker compose file V1 or V2 (2.x or 3.X)

There is now a Docker compose format version selector in composerize.com


Add a check at the start of the incorporation task to trap a missing place link before starting the incorporation

Fix deployed to test3


TITLE: UofT-DSI | production -assigment-1

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
add codes
What did you learn from the changes you have made?
how to use dask and process data
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
NA
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
NA
How were these changes tested?
local machine
A reference to a related issue in your repository (if applicable)
NA
Checklist

[ true] I can confirm that my changes are working as intended

For small, in-memory datasets, Pandas is simpler and faster for calculating moving averages. However, Dask is better for large datasets that exceed memory limits, as it can process data in parallel across multiple cores or distributed systems. Dask has some overhead due to its parallelism, which makes it less ideal for smaller datasets. Overall, use Pandas for small data and Dask when handling larger-than-memory data.


highway=bus_stop is rendered as a bus shelter

Just to keep track of this issue initially discussed in issue #5 but for public_transport=stop_position
[quote]
There is no common sense where to map a node highway=bus_stop. Some prefer it as a node on the street, some others as a node beside the street: both are seen as valid.
I also think that it should not be rendered as a bus stop shelter but rather as a pole or simple bus stop sign which does not bother even when rendered on the street? What and where shall a pole/icon be rendered if there is only a node highway=bus_stop on the street and nothing else?
[/quote]
See also: community forum

Additional problems arise if there is a separately mapped public transport shelter with a building tag:

One possible solution would be to render the little bus shelter only when a node is tagged with highway=bus_stop + shelter=yes and bench=yes. This would allow for distinction between two types of bus stops: those with a shelter and bench, and those with only a pole.
Just as Michael demonstrated, if a node has only the public_transport=platform tag and not highway=bus_stop, it should not be rendered as it is likely used in conjunction with other buildings and ways, given that the wiki encourages mapping both a physical platform as a way and a node with the tags highway=bus_stop.


Enhance sample application to provide a menu of activities

Summary
I was able to load the RxAndroidBle-master project into Android Studio, and it compiles and runs. Thank you! But when it runs, I only see Example 1, ScanActivity, and I don't see any way to access the other examples. Is there some way to have a main menu that would allow choosing an activity?
I see there is a SampleApplication class, but it doesn't seem to do much.
And can you tell me what this comment found in it means?
/**

In practise you will use some kind of dependency injection pattern.
*/

Preconditions
Android Studio

Steps to reproduce actual result

Install RxAndroidBle-master project on Android tablet
Run it
Try to exercise all functions

Actual result
Only Example 1, ScanActivity, is accessible

Expected result
A menu for selecting all the available Example activities should appear

Hey Rob!
Thanks for the report. You are more than welcome to contribute with a menu in the example.
The comment means that there are clever ways to maintain single instance of the client. For example you can use the Dagger with a application scope component. For more information about dependency injection pattern please go to https://google.github.io/dagger/

Hello Rob,
All of the other Activities in the application need a bluetooth device to run. This device needs to be scanned in the Example 1 first and to access other screens you need to tap the device you want to use on the list.
Best Regards

I don't know what changed, but the app seems to be working now.

 It sometimes help.


feat: run selector if reference changes to enable use of dependencies

Fixes https://github.com/tannerlinsley/react-query/issues/1639

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


code err

I have never seen such a bad error
:(

can use node 4.x.x ?

@maxming2333
Sorry, supports only node 6.x or later
https://github.com/okunishinishi/node-filecopy/blob/master/package.json#L40


HL-80: attachments model

Description :sparkles:
Data model for adding attachments to an Application
Issues :bug:
HL-80
Testing :alembic:
Screenshots :camera_flash:
Additional notes :spiral_notepad:

Codecov Report

Merging #135 (1ea2701) into develop (4414351) will increase coverage by 17.58%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           develop     #135       +/-   ##
============================================
+ Coverage    77.11%   94.69%   +17.58%
============================================
  Files          196       68      -128
  Lines         3980     1997     -1983
  Branches       197        0      -197
============================================
- Hits          3069     1891     -1178
+ Misses         852      106      -746
+ Partials        59        0       -59

Impacted Files
Coverage Δ

backend/benefit/applications/enums.py
100.00% <100.00%> (ø)

...benefit/applications/migrations/0007_attachment.py
100.00% <100.00%> (ø)

backend/benefit/applications/models.py
93.38% <100.00%> (+0.79%)
:arrow_up:

backend/benefit/helsinkibenefit/settings.py
93.25% <100.00%> (+0.31%)
:arrow_up:

backend/shared/shared/oidc/auth.py
86.84% <0.00%> (-1.32%)
:arrow_down:

...mpanies/migrations/0002_company_optional_fields.py

...ntend/kesaseteli/employer/src/auth/AuthContext.tsx

frontend/shared/src/components/stepper/Stepper.tsx

...ser-tests/index-page/applicationPage.components.ts

...seteli/employer/src/components/footer/Footer.sc.ts

... and 125 more

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 4414351...1ea2701. Read the comment docs.


Hard error compiling libc 0.2.36: #![feature(link_cfg)] missing ?

 Compiling libc v0.2.36
error[E0658]: is feature gated (see issue #37406)
   --> /cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.36/src/unix/mod.rs:279:9
    |
279 |         #[link(name = "c", kind = "static", cfg(target_feature = "crt-static"))]
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(link_cfg)] to the crate attributes to enable

Seems to only fail when building libc with --no-default-features on some targets:

arm-unknown-linux-musleabi
armv7-unknown-linux-musleabi
i686-unknown-linux-musl
x86_64-unknown-linux-musl

Looks like libc's CI does not test building libc with --no-default-features... opening an issue about this: PLACEHOLDER.

Argh this definitely wasn't intentional. Although I'm not sure that the no_std build of the musl version of libc would work otherwise...

They used to work last month just fine :/

I forget which PR caused this at this point but I think it's fine to fix whenever basically

yeah I am working on a fix :)

I don't know if we just need to enable the nightly feature and require nightly for no-std builds, or if there is something better that we can do (like not using the link attribute somehow).

Yeah I don't think we should require nightly for no_std builds, but rather we just need to compile it differently when included in libstd and when included in cargo


how can i tip dev

telegram info for dev?

I didn't quite understand you question. Are you referring to the guidelines for contributing to the project?


Unexpected response code 500 for Yandex

04-21 09:02:17.172    4676-4706/com.yandex.store E/Volley﹕ [277] ac.a: Unexpected response code 500 for https://mobile.store.yandex.net/api/v3/products
04-21 09:02:17.172    4676-4762/com.yandex.store W/Yandex.store-15443﹕ w
java.util.concurrent.ExecutionException: w
at as.a(SourceFile:117)
at as.get(SourceFile:88)
at nr.a(SourceFile:73)
at uw.a(SourceFile:29)
at uw.c(SourceFile:11)
at com.yandex.store.service.CommandIntentService.a(SourceFile:44)
at com.yandex.store.service.YandexStoreService$2.getSkuDetails(SourceFile:142)
at com.yandex.store.service.YandexStoreService$3.getSkuDetails(SourceFile:206)
at org.onepf.oms.IOpenInAppBillingService$Stub.onTransact(SourceFile:75)
at android.os.Binder.execTransact(Binder.java:367)
at dalvik.system.NativeStart.run(Native Method)
Caused by: w
at ac.a(SourceFile:146)
at i.run(SourceFile:110)
04-21 09:02:17.172  15037-15067/dev.mabee.iwant E/OpenIAB﹕ queryInventoryAsync() Error :
org.onepf.oms.appstore.googleUtils.IabException: Error refreshing inventory (querying prices of items). (response: 6:Error)
at org.onepf.oms.appstore.googleUtils.IabHelper.queryInventory(IabHelper.java:588)
at org.onepf.oms.OpenIabHelper.queryInventory(OpenIabHelper.java:1410)
at org.onepf.oms.OpenIabHelper$17.run(OpenIabHelper.java:1462)
at java.lang.Thread.run(Thread.java:856)

Why?

The most likely cause - you don't have any active SKU for your app on the dev console.

Please check it.

Same issue with OpenIAB. I have one in-app, and it is active on this moment,  was created 2 days ago.
More than 4 times check public key, in-app, and other things ...
18137-18170/? E/Volley﹕ [2057] ac.a: Unexpected response code 500 for https://mobile.store.yandex.net/api/v3/products
06-30 18:53:34.384  28883-28883/com.samecompany.sameapp D/OpenIAB﹕ handleActivityResult() requestCode: 10001 resultCode: -1 data: Intent { (has extras) }
06-30 18:53:34.384  28883-28883/com.samecompany.sameapp D/OpenIAB﹕ Ending async operation:
06-30 18:53:34.384  28883-28883/com.samecompany.sameapp D/OpenIAB﹕ Purchase canceled - Response: 6:Error
06-30 18:53:34.384  28883-28883/com.samecompany.sameapp D/OpenIAB﹕ Result code was OK but in-app billing response was not OK: 6:Error
06-30 18:53:34.412  28883-28883/com.samecompany.sameapp D/DEBUG﹕ OpenIAB error : Problem purchashing item. (response: 6:Error)


[BUG] 'failed with status code 400' Subscriptions limit reached for same user

Release version
v6.0.1
Describe the bug
I'm trying to follow the walkthrough and I have a dev and a prod APIM instance (brand new config). The dev instance publishes as expected but the prod one continuously errors saying
  System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups/***/providers/Microsoft.ApiManagement/service/***/subscriptions/xxxxxxxxxxxxxxx?api-version=2023-09-01-preview failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"Subscriptions limit reached for same user","details":null}}'.

I've tried replacing the APIM instance twice, changed region, also attempted to upgrade the SKU from developer to basic but I get the same issue.
Expected behavior
prod instance should publish successfully.
Actual behavior
build failure on job 'Push-Changes-To-APIM-Prod-With-Commit-ID'
Reproduction Steps
deploy two APIMs, same RG but with different SPNs. create two seperate github environments with the variables from the documention

Seems like an issue with your subscription. I don't think it's an APIOps issue. I will let @guythetechie cokmemt on this.

I believe APIM has a limit of one subscription per scope per user. Using the screenshot below as an example, if I create a new subscription and scope it to the product YMRGWH.., I cannot make Administrator the owner of the new subscription.

In your scenario, check the owner/scope of your failing subscription. Then ensure that the owner is not already associated with another subscription in the same scope.

https://learn.microsoft.com/en-us/answers/questions/1857706/(apim)-http-400-subsciptions-limit-reached-for-sam
I posted a similar question on MS Learn, and it seems to be a "bug" in DevOps for APIOps. That error is related to the subcriptions in the APIM instance.
Each instance can only have 1 subscription per scope per user. When creating a new apim instance, one gets "Product : Starter" with a subscription and "Product : Unlimited" with and subscription by default. Then when the publisher tries to copy dev to prod it tries to create a subscription for Product ; Starter and Product : Unlimited again, but since they are already there you get this error.
Short term solution according to the answer was to delete the subscriptions for Unlimited and Starter that are there by default, and let the publisher pipeline create them from scratch.

That did it! Thank you. I deleted the two starter subscriptions and the sync worked for production as expected. Appreciate the help all!

@madebynavi @jblaaa-codes glad to see the suggested solution has been helpful.


minor link update with the migration of conventions in the community repo

Good morning docs-folk!
I was wandering through the Kubernetes API docs and noticed this slight URL update - there's a holding-place page in the community repo, but I thought it worthwhile to update to the end state they point to.

joe

Good morning Joe. Thanks for catching and fixing this !
/lgtm

/assign @tengqm
as PR wrangler for this week

/approve


Hololens 2: How to configure and ping a static IP for ethernet connection?

I'm having issues trying to set a static IP for the ethernet connection on a Hololens 2 (build 20348.1442).

I went through the settings app > Network & Internet > Ethernet > Network
IP Settings > Edit
Change Automatic (DHCP) to Manual
Toggle IPv4 to On
Input desired IP static address, Subnet mask, Gateway, Preferred DNS
Click Save

To make sure the IP was configured correctly, I checked the Device Portal information on Hololens (Settings > Update & Security > For Developers > Device Portal) and the Ethernet 2 connection is shown with the static IP I configured.
Using an ethernet to USB-C connector to connect a computer to Hololens, I tried to ping the Hololens ethernet IP (the one I just configured), but no packets are being received.
I'm not sure if something was not configured correctly or if there are any issues with the firewall in Hololens.
I tried changing the Hololens ethernet network from public to private, but this does not solve the issue. There is a link beneath the private option "Configure firewall and security settings", clicking this opens the Microsoft Store and seems to try to install Windows Defender, but this does not work.
Is there a way to run command prompt or some other form of terminal in Hololens? I want to try to ping the computer from Hololens to see if at least that connection is working.

I got it to work, not sure what exactly solved the issue though.
What I did: I restarted Hololens and I set the Preferred DNS encryption (in the IPv4 setup window) to: "Unencrypted only".
I wasn't able to ping Hololens, but my application which had ethernet network connection is now working correctly.
You can use any DNS address and it doesn't matter if the connection is set to public or private, it works on both.
p.s. Going through the menus on Hololens to setup static IPs for Wi-Fi and Ethernet connections is a bit of a pain. Would be great to be able configure this through the Windows Device Portal on a computer.


Consider using cookiecutter to build from the template

Building a new graph repo from scratch may be easier if something like cookiecutter can be used to specify initial config values, even up to a set of initial ingests to use (as long as they're simple, like from KG-OBO or loading an existing graph)

See https://github.com/Knowledge-Graph-Hub/kg-cookiecutter


Codes for Fig 1.a

I think this work is very important for our research now. But it will be very nice of you to upload your codes for Fig. 1(a), which should be easy to reproduce.
Thanks for your reply.

同样期待您可以上传图1中信号频率相关图代码，感谢。

A new file synthetic.py has been updated.
Hope this can help you.


File not found in your Nofile.io link

Dear Pak Cahya,
I have tried your script with my dataset. I got a problem because I don't have the wiki_id_lm.h5 file. I think the file is located on your Nofile.io link in readme files but when I clicked it, it shows a message: a file not found. Could you help me to fix it?
Thank you
Sigit Purnomo

Hi,
It seems the file was removed on the server, maybe I forget to set it to be available for ever. Thanks for the notification. I will upload it again later, and let you know.
Cahya.

Thank you...

Hi,
I have updated the link to the pre-trained model version 0.1, and added a new one for version 0.2.
You can test the model using the script ulmfit_test.py (please do "git pull" before using it and change the LM_PATH accordingly). It will generate a sentence based on your input. The script is still messy now, but for testing purpose it should work. Just let me know if you have any questions or other issues.

Thank you Pak Cahya