test-path, -newerthan, -path with wildcards

Test-path seems to fail with the -newerthan option and a -path with wildcards.  I think the wildcard might be incorrectly matching otherfile.txt.  May have to run this twice.
Steps to reproduce
echo hi > otherfile.txt
sleep 1
echo hi > found.txt # newer

$template = 'f*.txt'
$CutoffTime = (Get-Item OtherFile.txt).LastWriteTime
$CutoffTime

$templateTime = (Get-Item found.txt).LastWriteTime
$templateTime

Get-Item $Template|?{$_.LastWriteTime -gt $cutofftime} | ft

Test-Path $Template -NewerThan $cutofftime  # incorrectly false

Test-Path $Template

Expected behavior

Friday, September 13, 2019 11:30:45 AM
Friday, September 13, 2019 11:30:46 AM

    Directory: C:\users\admin\foo

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----         9/13/2019 11:30 AM              4 found.txt

True
True

Actual behavior

Friday, September 13, 2019 11:30:45 AM
Friday, September 13, 2019 11:30:46 AM

    Directory: C:\users\cdmin\foo

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----         9/13/2019 11:30 AM              4 found.txt

False
True

Environment data

Name                           Value
----                           -----
PSVersion                      6.2.2
PSEdition                      Core
GitCommitId                    6.2.2
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

I don't seem to be able to reproduce this.  The only difference is I am using a much newer build of Windows 10 (18362).  Anything else particular about your environment?  Can you try this on a newer version of Windows 10?

I think I figured this out.  The very first time, when both files are 'new', it works.  Subsequent times, it does not work.
I would guess, Test-Path uses the 'Creation Time', not the 'Last Modified Time'.  If the script is changed to CreationTime then it works as expected, but will not tell you that the path you are testing has files modified later than a specified time.
The documentation does not explain which field is being used.

Docs says that wildcard is supported https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-path?view=powershell-6
Debug shows it is bug. We check LastWriteTime but for directory, not for resolved paths - we don't enumerate files by wildcard.
Code reference https://github.com/PowerShell/PowerShell/blob/0e975a52ed3896a0d60ddadf424e742db275e063/src/System.Management.Automation/namespaces/FileSystemProvider.cs#L3351-L3354


Use setuptools instead of distutils for PyPI builds

Impact of the new feature
We use distutils to build pypi things currently. Setuptools is a more current approach for this.
Python packaging guide recommends setuptools: https://packaging.python.org/guides/tool-recommendations/
Is your feature request related to a problem? Please describe.
No problem, but we should base our pypi things off of the current accepted standard for packaging.
Distutils will go away at some point: https://bugs.python.org/issue41282
Describe the solution you'd like
Update all setup scripts to use setuptools instead of distutils.
Describe alternatives you've considered
None

Closed by https://github.com/dmwm/WMCore/pull/9874
Erik, please reopen it if I'm wrong.


Speedtests are still a bit off..

Even after the release with https://github.com/alexjustesen/speedtest-tracker/pull/49 implemented, the speeds that are displayed on the dashboard / results are still off from the actual results that the url displays / in the database.
Example:
Dashboard shows ---

but going into the database file and grabbing the url for said run shows my actual download speed at 941.63 Mbps and upload at 41.62 Mbps.
The download and upload for the result in the actual database file are reported as:
Download: 117703158 Bytes which equals out the 941.625264 megabits
Upload: 5201880 Bytes which equals out the 41.61504 megabits
which with rounding, the information in the database file come out to where the url speeds are shown when converted, so the calculation is wrong somewhere in terms of the what the dashboard is showing for the speedtest tracker.

OMG: I wrote this post thinking that in the db, in download/upload columns, since the values were so strange, they represented the amount of data sent/received for the test. :)
Thanks for the heads-up.

OMG: I wrote this post thinking that in the db, since the values were so strange in download/upload columns, they represented the amount of data sent/received for the test. I gave for granted that the conversions were finally fixed. :)
Thanks for the heads-up.

Lol it's not a problem. The way the json bit in the results section is laid out in the db file from what I can gather is that the bandwidth bit is the upload/download speeds in bytes as they are the same values as the upload/download in well the upload/download columns and when converting them to megabits (Mbps) they equal out to the upload/download values that are displayed when you go to the url for the test (albeit with rounding on speedtest.net side of things), while the bytes part of the json is actually the data sent/recieved for the test but they dont have their own columns like the upload/download (bandwidth) values do.
Currently the results on speedtest tracker however are still slightly off (more than likely due to a calculation error somewhere) even though the database file has the correct values for everything (short of the timezone stuff being of no-use at the moment as well).

@alexjustesen so some testing and I have figured out the issue, in helpers.php you are using the Binary definition (1024) to get the values when in most situations it's better to use Decimal definition (1000) to get the values.. Speedtest.net which is what we are using for speedtest tracker uses Decimal definition, which is why the values shown in the speedtest tracker dashboard / results page are showing a bit lower than the values from the speedtest.net url.
So all that really needs to be done is changing the 1024 to instead be 1000 in the helpers.php script. I've already gone and tested this myself, and upon actually changing the 1024 to 1000 in the helpers.php everything on the dashboard is now showing correct, short of the created at date ofc.

Yeah that's absolutely right, thanks for doing the checking. I'll hopefully have time this morning to fix it. Good news it's just effecting the views

So TZ and decimal/binary correction are the main issues right now. The good thing is that it's just the representation in the view, we don't need to clean the db. :)

@alexdelprete yep exactly, only thing though is the TZ stuff once fully taken care of and implemented depending on the persons timezone it might show new test results being at an older time than the old test results if said person is behind UTC time, due to the actual database having the created on and the timestamp in the json in data set at the UTC time. Though we could probably write up something to convert the created on and the timestamp in the json in data to the corrected time..


Code style issue

Sorry, maybe I am too much perfectionist, but...

_vendor-prefixes.scss. Line 57.

The file in question no longer exists in the current v4-dev branch, because Autoprefixer.

@cvrebert v3 is not supported now?

Ah. Next time, mention that you're using bootstrap-sass.


How can I use cookies?

I wanted to know how I can use cookies
I'm a long time behind this answer and I don't think

You can login into a roblox account with the .ROBLOSECURITY cookie by editing it through https://cookie-editor.com then refreshing the page.


Arango Search IN Operator Slow Performance

My Environment

ArangoDB Version:        3.5.3
Storage Engine:             RocksDB
Deployment Mode:       Single Server (in test env) | Active Failover (in prod)
Deployment Strategy:   Manual Start (in test env)
Operating System:        Centos 7 (in test env)
Total core in your machine:  12 Core (in test env)
Total RAM in your machine:  64 GB (in test env)
Disks in use: SSD (in test env)
Used Package: rpm (in test env)

Component, Query & Data
Affected feature:
Arango Query using View/Search with IN Operator
AQL query (if applicable):
FOR e in docs_view SEARCH e._key IN [ << 1000 ids >> ]
COLLECT WITH COUNT INTO length
RETURN length

AQL explain (if applicable):
n/a
Dataset:
Tested two cases:
Case 1) During ingest of 360 million documents into the collection, applied the query.
Case 2) After ingest of 360 million documents into the collection, applied the query.
Size of your Dataset on disk:
344G (currently holds other collections)
Steps to reproduce
Case 1

Setup a collection, named docs

Setup a view on this collection, named docs_view

{
  "writebufferIdle": 64,
  "writebufferActive": 0,
  "type": "arangosearch",
  "primarySort": [],
  "writebufferSizeMax": 33554432,
  "commitIntervalMsec": 1000,
  "consolidationPolicy": {
    "type": "tier",
    "segmentsBytesFloor": 2097152,
    "segmentsBytesMax":<PHONE_NUMBER>,
    "segmentsMax": 10,
    "segmentsMin": 1,
    "minScore": 0
  },
  "globallyUniqueId": "h78F0558B8FC3/269256359",
  "cleanupIntervalStep": 2,
  "id": "269256359",
  "links": {
    "docs": {
      "analyzers": [
        "identity"
      ],
      "fields": {
        "type": {
          "analyzers": [
            "identity"
          ]
        },
        "id": {
          "analyzers": [
            "identity"
          ]
        }
      },
      "includeAllFields": true,
      "storeValues": "id",
      "trackListPositions": false
    }
  },
  "consolidationIntervalMsec": 10000
}

Ingest Data

arangoimport --collection docs --server.database test --server.username root --server.password "" --batch-size 67108864 --threads 10 --type jsonl --file /data/docs.jsonl

Run Query

FOR e in docs_view SEARCH e._key IN [ << 1000 ids >> ]
COLLECT WITH COUNT INTO length
RETURN length

Case 2

Run Query

FOR e in docs_view SEARCH e._key IN [ << 1000 ids >> ]
COLLECT WITH COUNT INTO length
RETURN length

Problem:
Case 1
I have seen the query time fluctuate between 30ms to 100ms to 300ms to 1 second to 5 seconds to 8 seconds and down again.
Opposite of the query below, which is almost constant time.
FOR e in docs FILTER e._key IN [ << 1000 ids >> ]
COLLECT WITH COUNT INTO length
RETURN length

Case 2
When the data is already on the collection (360 million docs) I can see a see a 200% query time increase when query performance between collection FILTER IN (~6ms) vs  view SEARCH IN (~18ms). Additional logic into the SEARCH makes it even slower, i.e.
FOR e in docs_view SEARCH e.type == "yyy"
AND ((e.owner == "abc") OR ((e.status IN ['A', 'B']) AND ((e.permission == 'X') OR (e.permission == 'Y' AND e.departments IN ["D1", "D2"]))))
AND e._key IN [ <<1000ids>>]
COLLECT WITH COUNT INTO length
RETURN length

Expected result:
Case 1
Performance of view SEARCH IN to be similar to collection FILTER IN.
Case 2
Performance of view SEARCH IN to be similar to collection FILTER IN.

Case 1 depends on configured consolidation policy. As soon as import proceeds more index segments are generated. Checking multiple segments gives performance degradation. But once consolidation merges produces segments performance returns to normal.  If massive import is expected it might be a good idea to temporary reduce consolidationIntervalMsec

We expect Case 2 to be improved  in version 3.7

@aveiros we've significantly reworked internals of disjunctions in 3.7, our tests show x5 performance improvement. This will become available in the next RC.


Rare phasing error: Assertion V.vec_full[vt]->type == VARTYPE_SCAF failed

Hi,
I'm trying to phase rare variants, which goes well for the greatest part. I used the files and instructions you provided in the documentation and GitHub. As mentioned, the majority works very well but some rare phasing chunks fail, as I show in this example below. Do you have any idea why this might be?
[SHAPEIT5] Phase_rare (phase rare variants onto a haplotype scaffold)
  * Authors       : Simone RUBINACCI & Olivier DELANEAU, University of Lausanne
  * Contact<EMAIL_ADDRESS>&<EMAIL_ADDRESS>  * Version       : 5.1.1 / commit = 990ed0d / release = 2023-05-08
  * Run date      : 30/06/2023 - 17:19:27

Files:
  * Unphased data : [chr22.exome_array.full.sorted.bcf]
  * Scaffold data : [chr22.exome_array.shapeit5.common_0.001.bcf]
  * Genetic Map   : [shapeit_maps/chr22.b38.gmap.gz]
  * Output data   : [chr22.exome_array.22_28090430_33113736.shapeit5.rares_0.001.bcf]
  * Output LOG    : [chr22.exome_array.22_28090430_33113736.shapeit5.rares_0.001.log]

Parameters:
  * Seed    : 15052011
  * Threads : 32 threads
  * PBWT    : [depth = 2,2 / modulo = 0.1 / mac = 2 / mdr = 0.1]
  * HMM     : [Ne = 15000 / Recombination rates given by genetic map]

Parsing specified genomic regions
  * Scaffold region  [chr22:27590423-33613738]
  * Input region  [chr22:28090430-33113736]

Reading genotype data
[E::bgzf_read_block] Invalid BGZF header at offset 706792049
[E::bgzf_read] Read block operation failed with error 6 after 384803 of 755137 bytes
  * BCF scanning (23.38s)
      + Variant sites: [#scaffold=2546 | #rare=5581 | #all=8127]
      + 4715 rare variants in buffer regions excluded
      + 322 variants found in both files [priority to scaffold]
  * HAP allocation [#scaffold=2546 / #samples=377567] (0.00s)
  * Genotype set allocation [#rare=5581 / #samples=377567] (0.00s)
[E::bgzf_read_block] Invalid BGZF header at offset 706792049
[E::bgzf_read] Read block operation failed with error 6 after 168546 of 755137 bytes
phase_rare_static: src/io/genotype_reader/genotype_reader_reading.cpp:50: void genotype_reader::readGenotypes(): Assertion `V.vec_full[vt]->type == VARTYPE_SCAF' failed.

The commands for common and rare phasing I use are as follows:
# phasing common variants
phase_common_static --input chr22.exome_array.full.sorted.bcf --map shapeit_maps/chr22.b38.gmap.gz --output chr22.exome_array.shapeit5.common_0.001.bcf --thread 64 --log chr22.exome_array.shapeit5.common_0.001.log --filter-maf 0.001 --region chr22

# phasing rare variants
phase_rare_static --input chr22.exome_array.full.sorted.bcf --scaffold chr22.exome_array.shapeit5.common_0.001.bcf --map shapeit_maps/chr22.b38.gmap.gz --output chr22.exome_array.22_28090430_33113736.shapeit5.rares_0.001.bcf --log chr22.exome_array.22_28090430_33113736.shapeit5.rares_0.001.log --scaffold-region chr22:27590423-33613738 --input-region chr22:28090430-33113736 --thread 32

Thanks in advance!

Hi,
As the problems seems to arise while reading genotype data, ([E::bgzf_read_block] Invalid BGZF header at offset 706792049) you might want to check that both files:
-input chr22.exome_array.full.sorted.bcf --scaffold chr22.exome_array.shapeit5.common_0.001.bcf
are not corrupted.
My first guess is that actually phase_common failed or somehow generated a bcf file that is not well formatted somehow.
Let me know if that is the case
Simone

Dear @srubinacci,
Thanks again for your response and great work.
I was just wondering if you had any suggestions or updates on this issue?
Thanks in advance!
Kind regards,
Marion


Clean up Lightning Node view

Currently:

@dstrukt is this one done, or could we be more specific of what needs to be cleaned up if not ,the issue is pretty broadly scoped imo.

I haven't been able to see the view in a bit, as I'm having issues getting this to load, but the UI could use some clean-up and organization.
Would be happy to close if I can view the latest.

My setup is working again, and I'll try to help clean this.

Outside of payments or what is now Withdraw, I think this is initial goal is completed to format the view a little bit.


Add a simple e2e test

Se #2845 for reference

Closing in favor of #2845

This PR was to test push travis-ci build


[Question] virtio_user for kernel networking?

@trozet Curious if virtio_user was evaluated to provide kernel path, any comparisons with VPort, etc., you could point to. One advantage looks like in-tree vhost ko? I have not used either one.
https://doc.dpdk.org/guides/howto/virtio_user_as_exceptional_path.html

On 04/12/2019 18:44, Saikrishna Edupuganti wrote:

@trozet https://github.com/trozet Curious if virtio_user was
evaluated to provide kernel path, any comparisons with VPort, etc.,
you could point to. One advantage looks like in-tree vhost ko? I have
not used either one.
https://doc.dpdk.org/guides/howto/virtio_user_as_exceptional_path.html
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nimbess/nimbess-specs/issues/3?email_source=notifications&email_token=AC4TGWG4IGAL7PEPM7QPYMTQW73BZA5CNFSM4JVNBIL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H6C4X5Q,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC4TGWHKISOWILE6VRQROM3QW73BZANCNFSM4JVNBILQ.

I started testing it and ran into a couple of issues versus the
implementation I used.
IMHO - the bess own module vs virtio are different use cases. You cannot
use virtio if you are trying to talk to the host on which bess runs and
you cannot use the bess own module if you want to talk to VMs.
--
Anton R. Ivanov
https://www.kot-begemot.co.uk/

Can you expand on different use-cases part?
In the below example I imagined BESS to take place of testpmd and the tap interface that gets created (on virtio_user vdev creation in EAL init) will be moved into the netns of the container.
$ sudo dpdk/build/app/testpmd --no-pci -l 2-3 -n 4 \
  --vdev=virtio_user0,path=/dev/vhost-net,queue_size=1024 -- \
  -i --txd=1024 --rxd=1024

$ sudo ifconfig tap0 <IP_ADDRESS>/24 up

$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=64 time=0.048 ms
^C
--- <IP_ADDRESS> ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.048/0.048/0.048/0.000 ms

# Host does not exist. Only to increase counters in testpmd port stats output.
$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
From <IP_ADDRESS> icmp_seq=1 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=2 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=3 Destination Host Unreachable

testpmd>show port stats all
  ######################## NIC statistics for port 0  ########################
  RX-packets: 92         RX-missed: 0          RX-bytes:  4312
  RX-errors: 0
  RX-nombuf:  0
  TX-packets: 45         TX-errors: 0          TX-bytes:  1962

  Throughput (since last show)
  Rx-pps:            1          Rx-bps:          400
  Tx-pps:            0          Tx-bps:            0
  ############################################################################

Bess does not set-up a tap with virtio, it only sets up a socket.
It is designed specifically for VM use - something that takes only a
vhost socket.
A.
On 05/12/2019 04:03, Saikrishna Edupuganti wrote:

Can you expand on different use-cases part?
In the below example I imagined BESS to take place of testpmd and the
tap interface that gets created (on virtio_user vdev creation in EAL
init) will be moved into the netns of the container.
$ sudo dpdk/build/app/testpmd --no-pci -l 2-3 -n 4
--vdev=virtio_user0,path=/dev/vhost-net,queue_size=1024 --
-i --txd=1024 --rxd=1024
$ sudo ifconfig tap0 <IP_ADDRESS>/24 up
$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=64 time=0.048 ms
^C
--- <IP_ADDRESS> ping statistics ---
1 packets transmitted, 1 received, 0% packet loss,time  0ms
rtt min/avg/max/mdev = 0.048/0.048/0.048/0.000 ms
Host does not exist. Only to increase counters in testpmd port stats
output.
$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
From <IP_ADDRESS> icmp_seq=1 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=2 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=3 Destination Host Unreachable
|testpmd>show port stats all ######################## NIC statistics
for port 0 ######################## RX-packets: 92 RX-missed: 0
RX-bytes: 4312 RX-errors: 0 RX-nombuf: 0 TX-packets: 45 TX-errors: 0
TX-bytes: 1962 Throughput (since last show) Rx-pps: 1 Rx-bps: 400
Tx-pps: 0 Tx-bps: 0
############################################################################
|
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nimbess/nimbess-specs/issues/3?email_source=notifications&email_token=AC4TGWGFTUMBCADAQVVYA6DQXB4QZA5CNFSM4JVNBIL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF7M5MA#issuecomment-561958576,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC4TGWGIO2GECIIAJ3GDD5TQXB4QZANCNFSM4JVNBILQ.

--
Anton R. Ivanov
https://www.kot-begemot.co.uk/

We currently use VPort to get a kernel interface added to BESS (called nimbess0), which is built into the bess ko. I think what you are suggesting here is instead of that, using the vhost exception path instead. Is that correct? It may be worth us looking into as we are facing some issues with how memory is being mapped in the vport driver on some of our servers. The other main advantage would be we perhaps wouldn't need the bess.ko? Which would be great to get rid of having to carry an out of tree kernel module.
As Anton mentioned there would probably be some changes required to get the kernel interface part done.

Yes. you would not need bess.ko since in the other case vhost.ko is in-kernel and like the guide mentions, its hardened and production tested.

Atleast to do a comparison analysis on robustness, deployment friendliness and definitely performance.

Thanks @krsna1729 let's leave this issue open and we can investigate it. I think it is worth moving to if we get the same functionality/performance and we can get rid of having to carry the bess kernel module.


fix: Scan QR fab visibility

Hides on scroll
Hides on empty page

fixes #238

@iamareebjamal @Shailesh351 @arp95 @rohanagarwal94 please review.


Python HUGR builder interface

Will be necessary for python based HUGR generation.

[x] DFG building
[x] Deserialization
[x] Op hierarchy
[x] #1172
[x] #1164
[x] #1159
[x] #1188
[x] #1198
[x] #1202
[x] #1204
[x] #1211
[x] Turn asserts in to exceptions
[x] #1213
[x] #1214

Follow ups:

#1242
#1243
#1244
#1245
#1215

Waiting on the pytket-future API
https://github.com/CQCL/tket2/issues/308

The feature is now complete enough to do https://github.com/CQCL/guppylang/issues/257 so closing, follow ups are listed in description above.


Add curryRight2

This is designed for 99% of JS libs – those which export something like (data1, data2, options = {}) => .... You can then do curryRight2(lib)({my, options}) and have a clean, preconfigured function.
curryRight3 and 4 are of course possible, but I guess it’d be too complicated to wrap your head around.

curryRight2
Curry a function from the right – split its parameters into 2 lists. Apply the second list of parameters first, without changing the order within the lists.
const curryRight2 = require(1-liners/curryRight2);

const g = (a, b, c, d) => a + b * c - d;
g(1, 2, 3, 4);  // => 3

const gλ = curryRight2(g);
gλ(4)(1, 2, 3);  // => 3
gλ(3, 4)(1, 2);  // => 3
gλ(2, 3, 4)(1);  // => 3

:checkered_flag:

nice. :ship: it

:palm_tree:


[Core] Java 15 Support - Cannot build project

Describe the bug
Cannot successfully build the XSK project following the steps, described in the Installation section.

What version of the XSK are you using?
The XSK version is the one in main. The current commit id is a5b24c5959a3ecbeb812b80641ffd083fccbc743

To Reproduce
Steps to reproduce the behavior:

Download the XSK repo
Go into the xsk folder
Set the env variables (used the default values - just wanted to build the project)
execute mvn clean install

Expected behavior
The build should have succeeded
Additional info
The build fails in the following step
[INFO] --- exec-maven-plugin:1.4.0:java (mwe2Launcher) @ xsk-modules-parsers-hdbdd ---

Here is the stack trace outputted by the build command
error.log
Desktop (please complete the following information):

OS: macOS Big Sur
mvn version info:

Apache Maven 3.6.3
Java version: 15.0.2, vendor: N/A

Java installed on the machine: openjdk 15.0.2 2021-01-19 LTS

Issue cloned to https://github.com/eclipse/dirigible/issues/1384

already fixed


'key' is a reserved keyword in mysql and needs to be escaped

I do not like this fix.
You are using MySql specific back tick escaping syntax that will failed on all other RDBMs.
I think proper fix is to rename key to something else, for example: akey, lead, item....
I agree that it will be hard to find a good synonym for "key". :)

After some more thinking of this fix, I came to decision that we do not need to change anything at all.
Thouse DFLT_ constants just a some defaults and it is impossible to have defaults that will fit all RDBMs. User can easily fix issue with "key" for MySQL by specifying appropriate SQL statement in CacheJdbcBlobStore via setCreateTableQuery() method.
Let's close this PR as "Won't fix"? Thoughts?

In its current state any mysql user is going to have the same troubles as I did and it's not entirely trivial to identify and fix this problem. It's just a few hours worth of trouble I won't ever get back, which is also why  I created this PR.
I agree with your analysis/sentiments mostly.  The thing is, I am really unsure if this class is really a toy class not intended for any serious use or not. Personally I took the stance that this class might have been useful to get something up and running quickly, but it's probably not a good idea in a production environment.  So I do not think this PR is a good idea; the best real solution is probably to rename the field.

A reasonable compromise might be to make it simpler to change the field names.

Ok, lets rename to akey.
Could you update your PR?

I merged into ignite-1.6 and master.
ignite-1.6 will be released by the end of May
Thanks.


[Test][ServiceBus] react to the retryable error change in core-amqp

PR #28751 updates the message of thrown error from retry to include messages of all the retried errors. This PR fixes affected Service Bus tests.

API change check
API changes are not detected in this pull request.


ListBox: StackOverflowException

I am create listbox with many objects and start scroll them. Then I've got an error.
(dotnet:22941): Gtk-WARNING **: 20:50:20.484: Theme parsing error: gtk.css:6765:28: Missing opening bracket in color definition
Process is terminating due to StackOverflowException.

Process finished with exit code 134.

 What version of Avalonia are you using?

@grokys, I use 0.7.0 version. And Yes it works current on the Windows platform. So why I get an error? How to make the program work on Linux on GTK.
My GTK version is 3.2x my Linux version is Ubuntu 18.04.1

GTK is no longer supported and is depricated, there is an X11 backend which is much more stable.
Please upgrade to version 0.8.0.
X11 backend can be configured like this.
https://github.com/VitalElement/AvalonStudio/blob/develop/AvalonStudio/AvalonStudio/App.paml.cs#L94
I will close the issue, and if you continue to have problems we can re-open.


Added ChibiOS thread_t.waend support, minor changes

with thread_t.waend:

without waend:

I am sorry for not attending to this extension. I now have a 4 day holiday and see if I can make some progress in publishing the extension.


small changes to promote having actual standards

Keeping double quote docstrings as it makes the script consistent (even if it deviates from the original version from curio)


docker compose fails on 1.0.16

Bug Description
after following the guide the following error has been shown:
C:\Users\teiiamu\LLM\Projects\langflow\docker_example>docker compose up
time="2024-08-23T20:38:59+02:00" level=warning msg="C:\\Users\\teiiamu\\LLM\\Projects\\langflow\\docker_example\\docker-compose.yml: `version` is obsolete"
[+] Running 3/3
 ✔ Network docker_example_default       Created                                                                    0.1s
 ✔ Container docker_example-postgres-1  Created                                                                    0.2s
 ✔ Container docker_example-langflow-1  Created                                                                    0.2s
Attaching to langflow-1, postgres-1
postgres-1  |
postgres-1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres-1  |
postgres-1  | 2024-08-23 18:39:01.160 UTC [1] LOG:  starting PostgreSQL 16.4 (Debian 16.4-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
postgres-1  | 2024-08-23 18:39:01.167 UTC [1] LOG:  listening on IPv4 address "<IP_ADDRESS>", port 5432
postgres-1  | 2024-08-23 18:39:01.167 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres-1  | 2024-08-23 18:39:01.199 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1  | 2024-08-23 18:39:01.261 UTC [29] LOG:  database system was shut down at 2024-08-23 18:35:14 UTC
postgres-1  | 2024-08-23 18:39:01.289 UTC [1] LOG:  database system is ready to accept connections
langflow-1  | Starting Langflow v1.0.16...
langflow-1  | [08/23/24 18:39:19] ERROR    2024-08-23 18:39:19 - ERROR    - main - main.py:103
langflow-1  |                              No module named 'psycopg2'
langflow-1  |                     ERROR    2024-08-23 18:39:19 - ERROR    -   __init__.py:1762
langflow-1  |                              __init__ - Traceback (most recent
langflow-1  |                              call last):
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/starlette/routing.py", line
langflow-1  |                              732, in lifespan
langflow-1  |                                  async with
langflow-1  |                              self.lifespan_context(app) as
langflow-1  |                              maybe_state:
langflow-1  |                                File
langflow-1  |                              "/usr/local/lib/python3.12/context
langflow-1  |                              lib.py", line 210, in __aenter__
langflow-1  |                                  return await anext(self.gen)
langflow-1  |                                         ^^^^^^^^^^^^^^^^^^^^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/main.py", line 92,
langflow-1  |                              in lifespan
langflow-1  |                                  initialize_services(fix_migrat
langflow-1  |                              ion=fix_migration,
langflow-1  |                              socketio_server=socketio_server)
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/utils.py"
langflow-1  |                              , line 167, in initialize_services
langflow-1  |                                  raise exc
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/utils.py"
langflow-1  |                              , line 165, in initialize_services
langflow-1  |                                  initialize_database(fix_migrat
langflow-1  |                              ion=fix_migration)
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/database/
langflow-1  |                              utils.py", line 93, in
langflow-1  |                              initialize_database
langflow-1  |                                  database_service:
langflow-1  |                              "DatabaseService" =
langflow-1  |                              get_db_service()
langflow-1  |
langflow-1  |                                      ^^^^^^^^^^^^^^^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/deps.py",
langflow-1  |                               line 154, in get_db_service
langflow-1  |                                  return
langflow-1  |                              get_service(ServiceType.DATABASE_S
langflow-1  |                              ERVICE, DatabaseServiceFactory())
langflow-1  |                              # type: ignore
langflow-1  |                                         ^^^^^^^^^^^^^^^^^^^^^^^
langflow-1  |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
langflow-1  |                              ^^^^^^^^^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/deps.py",
langflow-1  |                               line 43, in get_service
langflow-1  |                                  return
langflow-1  |                              service_manager.get(service_type,
langflow-1  |                              default)  # type: ignore
langflow-1  |                                         ^^^^^^^^^^^^^^^^^^^^^^^
langflow-1  |                              ^^^^^^^^^^^^^^^^^^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/manager.p
langflow-1  |                              y", line 57, in get
langflow-1  |                                  self._create_service(service_n
langflow-1  |                              ame, default)
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/manager.p
langflow-1  |                              y", line 81, in _create_service
langflow-1  |                                  self.services =
langflow-1  |                              self.factories.create(**dependent_
langflow-1  |                              services)
langflow-1  |
langflow-1  |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
langflow-1  |                              ^^^^^^^^^^^^^^^^^^^^^^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/database/
langflow-1  |                              factory.py", line 18, in create
langflow-1  |                                  return
langflow-1  |                              DatabaseService(settings_service)
langflow-1  |                                         ^^^^^^^^^^^^^^^^^^^^^^^
langflow-1  |                              ^^^^^^^^^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/database/
langflow-1  |                              service.py", line 46, in __init__
langflow-1  |                                  self.engine =
langflow-1  |                              self._create_engine()
langflow-1  |                                                ^^^^^^^^^^^^^^^^
langflow-1  |                              ^^^^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/langflow/services/database/
langflow-1  |                              service.py", line 64, in
langflow-1  |                              _create_engine
langflow-1  |                                  return create_engine(
langflow-1  |                                         ^^^^^^^^^^^^^^
langflow-1  |                                File "<string>", line 2, in
langflow-1  |                              create_engine
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/sqlalchemy/util/deprecation
langflow-1  |                              s.py", line 281, in warned
langflow-1  |                                  return fn(*args, **kwargs)  #
langflow-1  |                              type: ignore
langflow-1  |                                         ^^^^^^^^^^^^^^^^^^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/sqlalchemy/engine/create.py
langflow-1  |                              ", line 599, in create_engine
langflow-1  |                                  dbapi =
langflow-1  |                              dbapi_meth(**dbapi_args)
langflow-1  |                                          ^^^^^^^^^^^^^^^^^^^^^^
langflow-1  |                              ^^
langflow-1  |                                File
langflow-1  |                              "/app/.venv/lib/python3.12/site-pa
langflow-1  |                              ckages/sqlalchemy/dialects/postgre
langflow-1  |                              sql/psycopg2.py", line 690, in
langflow-1  |                              import_dbapi
langflow-1  |                                  import psycopg2
langflow-1  |                              ModuleNotFoundError: No module
langflow-1  |                              named 'psycopg2'
langflow-1  |
langflow-1  |                     ERROR    2024-08-23 18:39:19 - ERROR    -   __init__.py:1762
langflow-1  |                              __init__ - Application startup
langflow-1  |                              failed. Exiting.
langflow-1  | [08/23/24 18:39:19] ERROR    2024-08-23 18:39:19 - ERROR    -   __init__.py:1762
langflow-1  |                              __init__ - Worker (pid:32) exited
langflow-1  |                              with code 3
langflow-1  |                     ERROR    2024-08-23 18:39:19 - ERROR    -   __init__.py:1762
langflow-1  |                              __init__ - Shutting down: Master
langflow-1  |                     ERROR    2024-08-23 18:39:19 - ERROR    -   __init__.py:1762
langflow-1  |                              __init__ - Reason: Worker failed
langflow-1  |                              to boot.

Reproduction
Steps

Clone the LangFlow repository: git clone https://github.com/langflow-ai/langflow.git
cd langflow/docker_example
docker compose up

Expected behavior
running langflow on port 7860
Who can help?
No response
Operating System
wiindows
Langflow Version
1.0.16
Python Version
None
Screenshot
No response
Flow File
No response

This issue has just been fixed in PR #3526

This issue has just been fixed in PR #3526

It seems that it's not applied to docker file.
For a while, we need to add
RUN pip install psycopg2-binary
in docker_example/Dockerfile,
add build option in docker_example/docker-compose.yml
services:
  langflow:
    image: langflowai/langflow:latest
    build:
      dockerfile: ./Dockerfile

then, docker compose build & docker compose up would be work.


graphql gql

Schemas and Types | GraphQL
gqlgen
https://spec.graphql.org/draft/#sec-Type-System

https://github.com/search?q=path%3A*.gql&type=code

https://github.com/99designs/gqlgen/blob/master/_examples/todo/schema.graphql
https://github.com/99designs/gqlgen/blob/master/_examples/starwars/schema.graphql

validation
https://github.com/confuser/graphql-constraint-directive

definition and howto
https://github.com/prisma/prisma-examples/tree/latest/typescript/graphql


fix debian help

Also please make these changes to https://github.com/mirrorz-org/mirrorz-help/blob/master/contents/debian-security.mdx
The style of the commit message should be consistent with other commit messages.

Also please make these changes to https://github.com/mirrorz-org/mirrorz-help/blob/master/contents/debian-security.mdx
The style of the commit message should be consistent with other commit messages.

I noticed that there were no spaces before the , , so I reformatted the code according to the original format


Update service-bus-queues-topics-subscriptions.md

Updated wording; "you can only copy a subset of those messages" sounds like it is only possible to have a subset, while actually you can have either a subset or the full set of messages.

@EldertGrootenboer : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Tags in Twig comment blocks are not styled correctly

They show up as:

Good catch! Version 1.4.1 should fix this issue. 👍


Add a FuseSoC based demo

Example of using FuseSoC with SymbiFlow.

FTR, see https://carlosedp.medium.com/xilinx-open-source-fpga-toolchain-on-docker-containers-93202650a615 (and #227).

While the wrapper scripts does most heavy-lifting of wrapping the tools on Docker containers, I believe it should be improved as a way to detect which toolchain image should be used (for example xc7 vs eos-s3) and etc.
Ref. https://gist.github.com/carlosedp/c0e29d55e48309a48961f2e3939acfe9


Standup single webpage on mdn.dev

User story
From Ali's email:
"The plan for the short term, meaning the deadline Google gave us of February 12th, is to just get a simple 1-page site up, that points to developer activities on/for MDN. Chris Mills wrote up a content draft, and the MDN engineering team is going to do the development for the web page itself. Long term, we may, or may not, decide to replace developer.mozilla.org with mdn.dev, but that has not been decided yet and won't be before the 12th."
Acceptance criteria

[x] Single page live on mdn.dev

Tasks

[x] Ensure copy is approved

[x] Get relevant design assets

[x] Set-up new project

[x] Implement page design and content

[x] Open PR

[x] Page live on mdn.dev

Here is the proposed page design/layout:

Looking good @schalkneethling . I think the different repo names could all do with being links to those repos, and maybe the content areas could do with being linked to their respective landing pages, but I think that's about it.
I'd also like another writer to sanity check the content. @a2sheppy , can you give the mdv.dev content I wrote a quick look over to make sure there is nothing terrible in there? ;-)

thanks for the feedback @chrisdavidmills

I have updated the content to link to all the things.

This appears complete, https://mdn.dev is up


[Question] - Application Insights distributed logging and Storage queues

Hi there.
Over at https://github.com/Azure/azure-functions-dotnet-worker/issues/1126, there was a question about the possibilty to automatically restore the tracecontext in distributed/asynchronous scenarios (via queues).
Just wondering, if the same limitations apply to the node-worker as well (which I am 99.999% certain they are).
Would be nice, if someone could add the missing 0.001% to my confidence ;)

This might be a better question for @hectorhdzg who works on https://github.com/microsoft/ApplicationInsights-node.js

Related to https://github.com/microsoft/ApplicationInsights-node.js/issues/1038 @earloc is possible same limitations apply here, Azure SDK folks were looking at the issue.

Related to microsoft/ApplicationInsights-node.js#1038 @earloc is possible same limitations apply here, Azure SDK folks were looking at the issue.

Just to be clear:
We´re talking about ordinary azure-storage-queues here. Not sure if this really is related to **EventGrid **

@earloc all Azure SDKs under https://github.com/Azure/azure-sdk-for-js rely on similar tracing library https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-tracing

Hmmm ok thx.
But how does this answer my question, w/o digging in this njtty gritty details? (might give it a shot, though).

Sorry @erloc I don't have the answer, but if Azure SDK related issue investigation brings more information I will share it here.

Closing due to lack of activity and I ultimately think this issue belongs on the app insights or other sdks, not the worker.


Starting from v2.4.3 - it is not working with RAK2245

Hi,
Here is my configuration Raspberry 4 (4giga) with RAK2245 concentrator (https://www.rakwireless.com/en-us/products/lpwan-gateways-and-concentrators/rak2245-pihat)
OS Release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Starting from docker image v2.4.3 it is not working anymore...dunno why.
I noticed that I have to issue a  docker compose down before using docker compose up again otherwise it will not work.
It use interface USB instead of SPI if I did not issue a docker compose down before docker compose up...strange...
I use the same docker compose file
services:
  udp-packet-forwarder:
    image: rakwireless/udp-packet-forwarder:v2.4.2
    container_name: udp-packet-forwarder
    restart: unless-stopped
    privileged: true
    network_mode: host
    environment:
      USE_LIBGPIOD: 1
      #MODEL: "RAK2245"
      MODEL: "SX1301"
      HAS_GPS: 0
      INTERFACE: "SPI"
      GATEWAY_EUI: "dca632fffe365d9c"
      SERVER_HOST: "localhost"
      # le GPS ne fonctionne plus sur le port /dev/ttyAMA0
      GPS_LATITUDE: 48.095850560
      GPS_LONGITUDE: 1.894153134
      GPS_ALTITUDE: 175
      #GPS_DEV: "/dev/ttyAMA0"
``

See log below with v2.4.3 and v2.4.2

```bash
# V 2.4.3
udp-packet-forwarder  | ERROR: DEVICE set to auto discover but no concentrator found! (INTERFACE set to SPI)
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  | UDP Packet Forwarder Container v2.4.3
udp-packet-forwarder  | (c) RAKWireless 2022-2024
udp-packet-forwarder  |
udp-packet-forwarder  | Based on:
udp-packet-forwarder  |  * lora_gateway v5.0.1
udp-packet-forwarder  |  * packet_forwarder v4.0.1
udp-packet-forwarder  |  * sx1302_hal v2.1.0
udp-packet-forwarder  |  * picoGW_hal v0.2.3
udp-packet-forwarder  |  * picoGW_packet_forwarder v0.1.0
udp-packet-forwarder  |  * gateway_2g4_hal v1.1.0
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  |
udp-packet-forwarder  | Protocol
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  | Mode:          DYNAMIC
udp-packet-forwarder  | Protocol:      UDP
udp-packet-forwarder  | Server:        localhost:1700
udp-packet-forwarder  | Band:          eu_863_870
udp-packet-forwarder  | Gateway EUI:   xxxx
udp-packet-forwarder  | EUI Source:    manual
udp-packet-forwarder  |
udp-packet-forwarder  | Radio
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  | Model:         SX1301
udp-packet-forwarder  | Concentrator:  SX1301
udp-packet-forwarder  | Design:        V2/NATIVE
udp-packet-forwarder  | Interface:     SPI
udp-packet-forwarder  | Radio Device:  /dev/spidev0.1
udp-packet-forwarder  | SPI Speed:     2000000
udp-packet-forwarder  | GPIO chip:     gpiochip0
udp-packet-forwarder  | Reset GPIO:    17
udp-packet-forwarder  | Enable GPIO:   0
udp-packet-forwarder  |
udp-packet-forwarder  | Extra
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  | Use fake GPS:  TRUE
udp-packet-forwarder  | Latitude:      xxxxx
udp-packet-forwarder  | Longitude:     xxxx
udp-packet-forwarder  | Altitude:      xxxx
udp-packet-forwarder  |
udp-packet-forwarder  | Concentrator reset through gpiochip0:17 (using libgpiod)
udp-packet-forwarder  | *** Beacon Packet Forwarder for Lora Gateway ***
udp-packet-forwarder  | Version: 4.0.1
udp-packet-forwarder  | *** Lora concentrator HAL library version info ***
udp-packet-forwarder  | Version: 5.0.1;
udp-packet-forwarder  | ***
udp-packet-forwarder  | INFO: Little endian host
udp-packet-forwarder  | INFO: found global configuration file global_conf.json, parsing it
udp-packet-forwarder  | INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
udp-packet-forwarder  | INFO: lorawan_public 1, clksrc 1
udp-packet-forwarder  | INFO: no configuration for LBT
udp-packet-forwarder  | INFO: antenna_gain 0 dBi
udp-packet-forwarder  | INFO: Configuring TX LUT with 16 indexes
udp-packet-forwarder  | INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0
udp-packet-forwarder  | INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
udp-packet-forwarder  | INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
udp-packet-forwarder  | INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
udp-packet-forwarder  | INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
udp-packet-forwarder  | INFO: gateway MAC address is configured to DCA632FFFE365D9C
udp-packet-forwarder  | INFO: server hostname or IP address is configured to "localhost"
udp-packet-forwarder  | INFO: upstream port is configured to "1700"
udp-packet-forwarder  | INFO: downstream port is configured to "1700"
udp-packet-forwarder  | INFO: downstream keep-alive interval is configured to 10 seconds
udp-packet-forwarder  | INFO: statistics display interval is configured to 30 seconds
udp-packet-forwarder  | INFO: upstream PUSH_DATA time-out is configured to 100 ms
udp-packet-forwarder  | INFO: packets received with a valid CRC will be forwarded
udp-packet-forwarder  | INFO: packets received with a CRC error will NOT be forwarded
udp-packet-forwarder  | INFO: packets received with no CRC will NOT be forwarded
udp-packet-forwarder  | INFO: GPS serial port path is configured to ""
udp-packet-forwarder  | INFO: Reference latitude is configured to 48.095851 deg
udp-packet-forwarder  | INFO: Reference longitude is configured to 1.894153 deg
udp-packet-forwarder  | INFO: Reference altitude is configured to 175 meters
udp-packet-forwarder  | INFO: fake GPS is enabled
udp-packet-forwarder  | INFO: Beaconing period is configured to 0 seconds
udp-packet-forwarder  | INFO: Beaconing signal will be emitted at 869525000 Hz
udp-packet-forwarder  | INFO: Beaconing channel number is set to 1
udp-packet-forwarder  | INFO: Beaconing channel frequency step is set to 0Hz
udp-packet-forwarder  | INFO: Beaconing datarate is set to SF9
udp-packet-forwarder  | INFO: Beaconing modulation bandwidth is set to 125000Hz
udp-packet-forwarder  | INFO: Beaconing TX power is set to 27dBm
udp-packet-forwarder  | INFO: Auto-quit after 20 non-acknowledged PULL_DATA
udp-packet-forwarder  | INFO: found local configuration file local_conf.json, parsing it
udp-packet-forwarder  | INFO: redefined parameters will overwrite global parameters
udp-packet-forwarder  | INFO: local_conf.json does not contain a JSON object named SX1301_conf
udp-packet-forwarder  | INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
udp-packet-forwarder  | INFO: gateway MAC address is configured to DCA632FFFE365D9C
udp-packet-forwarder  | INFO: server hostname or IP address is configured to "localhost"
udp-packet-forwarder  | INFO: upstream port is configured to "1700"
udp-packet-forwarder  | INFO: downstream port is configured to "1700"
udp-packet-forwarder  | INFO: packets received with a valid CRC will be forwarded
udp-packet-forwarder  | INFO: packets received with a CRC error will NOT be forwarded
udp-packet-forwarder  | INFO: packets received with no CRC will NOT be forwarded
udp-packet-forwarder  | INFO: GPS serial port path is configured to ""
udp-packet-forwarder  | INFO: Reference latitude is configured to 48.095851 deg
udp-packet-forwarder  | INFO: Reference longitude is configured to 1.894153 deg
udp-packet-forwarder  | INFO: Reference altitude is configured to 0 meters
udp-packet-forwarder  | INFO: fake GPS is enabled
udp-packet-forwarder  | ERROR: [main] failed to start the concentrator

# V 2.4.2
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  | UDP Packet Forwarder Container v2.4.2
udp-packet-forwarder  | (c) RAKWireless 2022-2024
udp-packet-forwarder  |
udp-packet-forwarder  | Based on:
udp-packet-forwarder  |  * lora_gateway v5.0.1
udp-packet-forwarder  |  * packet_forwarder v4.0.1
udp-packet-forwarder  |  * sx1302_hal v2.1.0
udp-packet-forwarder  |  * picoGW_hal v0.2.3
udp-packet-forwarder  |  * picoGW_packet_forwarder v0.1.0
udp-packet-forwarder  |  * gateway_2g4_hal v1.1.0
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  |
udp-packet-forwarder  | Protocol
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  | Mode:          DYNAMIC
udp-packet-forwarder  | Protocol:      UDP
udp-packet-forwarder  | Server:        localhost:1700
udp-packet-forwarder  | Band:          eu_863_870
udp-packet-forwarder  | Gateway EUI:   xxxx
udp-packet-forwarder  | EUI Source:    manual
udp-packet-forwarder  |
udp-packet-forwarder  | Radio
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  | Model:         SX1301
udp-packet-forwarder  | Concentrator:  SX1301
udp-packet-forwarder  | Design:        V2/NATIVE
udp-packet-forwarder  | Interface:     SPI
udp-packet-forwarder  | Radio Device:  /dev/spidev0.0
udp-packet-forwarder  | SPI Speed:     2000000
udp-packet-forwarder  | GPIO chip:     gpiochip0
udp-packet-forwarder  | Reset GPIO:    17
udp-packet-forwarder  | Enable GPIO:   0
udp-packet-forwarder  |
udp-packet-forwarder  | Extra
udp-packet-forwarder  | ------------------------------------------------------------------
udp-packet-forwarder  | Use fake GPS:  TRUE
udp-packet-forwarder  | Latitude:      xxxx
udp-packet-forwarder  | Longitude:     xxxx
udp-packet-forwarder  | Altitude:      xxxx
udp-packet-forwarder  |
udp-packet-forwarder  | Concentrator reset through gpiochip0:17 (using libgpiod)
udp-packet-forwarder  | *** Beacon Packet Forwarder for Lora Gateway ***
udp-packet-forwarder  | Version: 4.0.1
udp-packet-forwarder  | *** Lora concentrator HAL library version info ***
udp-packet-forwarder  | Version: 5.0.1;
udp-packet-forwarder  | ***
udp-packet-forwarder  | INFO: Little endian host
udp-packet-forwarder  | INFO: found global configuration file global_conf.json, parsing it
udp-packet-forwarder  | INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters
udp-packet-forwarder  | INFO: lorawan_public 1, clksrc 1
udp-packet-forwarder  | INFO: no configuration for LBT
udp-packet-forwarder  | INFO: antenna_gain 0 dBi
udp-packet-forwarder  | INFO: Configuring TX LUT with 16 indexes
udp-packet-forwarder  | INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1, tx_notch_freq 0
udp-packet-forwarder  | INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0, tx_notch_freq 0
udp-packet-forwarder  | INFO: Lora multi-SF channel 0>  radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 1>  radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 2>  radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 3>  radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 4>  radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 5>  radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 6>  radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora multi-SF channel 7>  radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12
udp-packet-forwarder  | INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7
udp-packet-forwarder  | INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate
udp-packet-forwarder  | INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
udp-packet-forwarder  | INFO: gateway MAC address is configured to DCA632FFFE365D9C
udp-packet-forwarder  | INFO: server hostname or IP address is configured to "localhost"
udp-packet-forwarder  | INFO: upstream port is configured to "1700"
udp-packet-forwarder  | INFO: downstream port is configured to "1700"
udp-packet-forwarder  | INFO: downstream keep-alive interval is configured to 10 seconds
udp-packet-forwarder  | INFO: statistics display interval is configured to 30 seconds
udp-packet-forwarder  | INFO: upstream PUSH_DATA time-out is configured to 100 ms
udp-packet-forwarder  | INFO: packets received with a valid CRC will be forwarded
udp-packet-forwarder  | INFO: packets received with a CRC error will NOT be forwarded
udp-packet-forwarder  | INFO: packets received with no CRC will NOT be forwarded
udp-packet-forwarder  | INFO: GPS serial port path is configured to ""
udp-packet-forwarder  | INFO: Reference latitude is configured to 48.095851 deg
udp-packet-forwarder  | INFO: Reference longitude is configured to 1.894153 deg
udp-packet-forwarder  | INFO: Reference altitude is configured to 175 meters
udp-packet-forwarder  | INFO: fake GPS is enabled
udp-packet-forwarder  | INFO: Beaconing period is configured to 0 seconds
udp-packet-forwarder  | INFO: Beaconing signal will be emitted at 869525000 Hz
udp-packet-forwarder  | INFO: Beaconing channel number is set to 1
udp-packet-forwarder  | INFO: Beaconing channel frequency step is set to 0Hz
udp-packet-forwarder  | INFO: Beaconing datarate is set to SF9
udp-packet-forwarder  | INFO: Beaconing modulation bandwidth is set to 125000Hz
udp-packet-forwarder  | INFO: Beaconing TX power is set to 27dBm
udp-packet-forwarder  | INFO: Auto-quit after 20 non-acknowledged PULL_DATA
udp-packet-forwarder  | INFO: found local configuration file local_conf.json, parsing it
udp-packet-forwarder  | INFO: redefined parameters will overwrite global parameters
udp-packet-forwarder  | INFO: local_conf.json does not contain a JSON object named SX1301_conf
udp-packet-forwarder  | INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters
udp-packet-forwarder  | INFO: gateway MAC address is configured to DCA632FFFE365D9C
udp-packet-forwarder  | INFO: server hostname or IP address is configured to "localhost"
udp-packet-forwarder  | INFO: upstream port is configured to "1700"
udp-packet-forwarder  | INFO: downstream port is configured to "1700"
udp-packet-forwarder  | INFO: packets received with a valid CRC will be forwarded
udp-packet-forwarder  | INFO: packets received with a CRC error will NOT be forwarded
udp-packet-forwarder  | INFO: packets received with no CRC will NOT be forwarded
udp-packet-forwarder  | INFO: GPS serial port path is configured to ""
udp-packet-forwarder  | INFO: Reference latitude is configured to 48.095851 deg
udp-packet-forwarder  | INFO: Reference longitude is configured to 1.894153 deg
udp-packet-forwarder  | INFO: Reference altitude is configured to 0 meters
udp-packet-forwarder  | INFO: fake GPS is enabled
udp-packet-forwarder  | INFO: [main] concentrator started, packet can now be received
udp-packet-forwarder  |
udp-packet-forwarder  | INFO: Disabling GPS mode for concentrator's counter...
udp-packet-forwarder  | INFO: host/sx1301 time offset=(1714338592s:535804µs) - drift=1714338592535804µs
udp-packet-forwarder  | INFO: Enabling GPS mode for concentrator's counter.
udp-packet-forwarder  |
udp-packet-forwarder  | INFO: [down] PULL_ACK received in 0 ms

Thank you

I just updated my container and also am faced with this issue RAK2245 on an RPI3 :(

The default DEVICE seems off.
Try setting DEVICE: /dev/spidev0.0 manually under environment.

The default DEVICE seems off. Try setting DEVICE: /dev/spidev0.0 manually under environment.

can confirm that got the new container going, thanks mate

Latest version (2.4.6) solves the issue.


Started serializing additional fields

Moved the non-contentious part to #387

Synced with Olga, not doing for now. May open another PR in the future to cut them out.


Add signet support

Also includes a Cargo.lock update resulting from #335 afaik that wasn't included there. I wonder how we can catch such things in CI.

not sure why Cargo.lock was not updated.
CI should use --locked to ensure Cargo.lock file is up-to-date.


initial implementation of stop-within-session without name

This PR closes #84.
It accomplishes this with two main changes:
Env Vars
It adds three env vars to all smug-created tmux sessions.

$SMUG_SESSION - always equal to "true". Allows users to do easier scripting and detection if it's a smug-managed session
$SMUG_SESSION_NAME - name of the tmux session smug created
$SMUG_SESSION_CONFIG_PATH - full filepath of the smug config file that created this session

Config parser
If the --file arg is not specified, but $SMUG_SESSION_CONFIG_PATH is set, the value of the env var is put into the --file value variable, allowing all normal commands that would work with --file manually specified to work automatically within a smug session. This lets smug be aware of it's current context if existing within a smug session, and operate on it by default unless you force it to do something else. For example, smug stop or smug edit work without any additional args.

I should note - I haven't updated tests for this yet, but if you like the idea and the implementation, I can do that.

Hey. Please lt me know if you have time to finish this :) Otherwise I can take it

#95

Sorry I didn't get around to finishing this up for you, but it looks awesome! Thanks for taking my idea and half-implementation and running with it.


Do not flow control headers

Motivation:
Currently the encoder always sends headers to the flow controller. The fact that the headers are delayed can lead to issues such as RST_STREAM frames for streams unknown to the remote endpoint, as well as additional processing pressure on the remote flow controller.
Modifications:
Modified the encoder so that headers are only flow controlled if DATA has been sent on the stream.
Result:
Fixes #4489

@Scottmitch @louiscryan PTAL

@nmittler I know you not asked for my review but I could not resist :smile:

As noted in #4489, closing this PR in favor of other modifications.


Invalid control flow error when variable updated in function with side effect

Bug Report

🔎 Search Terms
control flow if const assignment function no overlap
🕗 Version & Regression Information

This is the behavior in every version I tried

⏯ Playground Link

Playground link with relevant code
💻 Code

const STATE_VAL = 0 as const;
const STATE_OBJ = 1 as const;

type State =
  | typeof STATE_VAL
  | typeof STATE_OBJ;

let state: State = STATE_VAL;

function enter() {
  state = STATE_OBJ;
}

enter();

if (state === STATE_OBJ) {
  console.log(state);
}

🙁 Actual behavior
This comparison appears to be unintentional because the types '0' and '1' have no overlap.

at the if statement
🙂 Expected behavior
No errors

Oh this has been discussed in https://github.com/microsoft/TypeScript/issues/9998. It's very annoying, but I guess the only solution is @ts-ignore

@nicolo-ribaudo The actual issue is that state is optimistically narrowed. You can use let state = STATE_VAL as State to make it work.


Test mail configuration

Hey,
I am trying to setup Mail and have no idea if its working 😅 . It would be nice to have someway option to send a test mail

Try the "forget password" feature. That one sends a mail for resetting your password, you can use it for debugging SMTP config.

ahh nice.
I would like to create a PR to wrap all errors here with a single message: like dial failed to smtp host: %s
https://github.com/muety/wakapi/blob/master/services/mail/smtp.go#L28-L77
I just always got Bad parameter and didn't knew which was producing that

Sure, feel free! PRs are always welcome.


Loading from master file failed: file not found

Hello!
I got error:
"06-Jan-2024 18:04:41.742 zone 10.168.192.in-addr.arpa/IN: loading from master file db.rev.10.168.192.in-addr.arpa failed: file not found"
I put zone file into location /addon_configs/de554ef4_bind/zones/db.rev.10.168.192.in-addr.arpa and then edited named.conf:
[...]
zone "10.168.192.in-addr.arpa"
{
type master;
file "db.rev.10.168.192.in-addr.arpa";
};
[...]
I have tried to change 'file' option in named.conf to full path "/addon_configs/de554ef4_bind/zones/db.rev.10.168.192.in-addr.arpa" and "zones/db.rev.10.168.192.in-addr.arpa" and got the same error.
How to point to zones files properly?
Thank you!

you have to point it with /config/zones/


reilly edits

I want the rewards out of YouTube sync. It has no place here and confuses the purpose of YouTube sync to the reader, which is to save a publisher labor if they have hundreds of archival videos. YouTube Sync is not about rewards, and we need to stop making it part of rewards verification.

Per our discussion today, closing this. @reillysmith can you make any other suggestions given the rewards path is stayin?

I have nothing else to contribute here.


TODO: Set up Bors on this repository

Need to figure out how that would interact with semantic-release.


Update LIDL data handling

Only show latest data (since offers will run out)
Calculate bio flag to LIDL data
Cleanup unused variables

mergePriceHistory() will merge in the old items, for which we'll never get a "discount ended" event. So we end up with a set of items, some of which are actively discounted, and others which aren't anymore but remain in the set.
I think we should remove Lidl all together.

I tested this with a couple of scenarios. It will always take the latest prices. No old Data will remain, hence the flag.
But sure, we can remove it too. Your call

I did this for both Lidl and Penny in a slightly different way while cleaning up old item handling. I've merged in your other changes (bio, etc.). Cheers!


Fix invalid conversion from RGB8 to CMYK32 due to overflow

Description
Avoid float-point division if possible, especially for large operands.
cmyk32_pixel_t is based on uint32_t which multiplication by its max may yield result too large to fit 32-bit float.
For example, (uint32_t(c) -  uint32_t(k)) * float(s) forc =<PHONE_NUMBER>, k = 0, s = 1.0
results in<PHONE_NUMBER> value which does not fit uint32_t.
References
Fixes #406
Tasklist

[x] Add test case(s) - ~currently there are no related tests, to be added~
[x] Ensure all CI builds pass
[ ] Review and approve

The fix is still not correct as it does not convert well for negative values of signed pixel types like rgb8s_pixel_t. Use of signed integer for pixel components is extremely rare, but since the conversion is fairly type agnostic, it needs to be fixed.
Basically, RGB color value [-127, 128] should be normalized to generic CMYK [0, 1], then 0 should map to minimum and 1 to maximum of target channel type of cmykN[s]_pixel_t.

This just fixes the #406 and conversion issues to signed CMYK received separate issue #479


Borderless UI?

Hi,
I was wondering if there was anyway to get rid of or hide the window frame that eel creates around the website as a container. Kind of like running an app in border-less mode. I know electron has this feature and i've tried setting chromeFlags to things like '--kiosk' but it hasn't been working so I believe it should be done through some kind of parameter for eel.start?

Do you mean fullscreen borderless, or windowed borderless?

Do you mean fullscreen borderless, or windowed borderless?

windowed borderless

I think it is only possible if you use Electron as the browser. You can set this up yourself using 'custom' mode, or wait a few weeks for v1.0.0 which will include explicit 'electron' mode.
This is not possible in 'chrome-app' mode (the default) as Chrome does not support it, sorry.

Is it possible to add menu / context menu items? I understand I can write my own menu items in the HTML and use CSS to make them look similar to the OS's, but I was wondering if this was possible or if tehre was an additional library that allows this? Thank you.

To run it via electron just do this
options = {
	'mode': 'custom',
	'args': ['node_modules/electron/dist/electron.exe', '.']
}

if __name__ == "__main__":
	eel.init('web')
	eel.start('index.html', options=options)

Obviously you'll need electron installed. You can install the electron-quick-start app and throw your gui.py in there. Then, modify the main.js file to point to your eel app, e.g.  mainWindow.loadURL('http://localhost:8000//index.html'). You should replace mainWindow.loadFile('index.html') with that.
Hope that helps you with the problem.

@04fsnape I was able to get it running with your instructions, thank you very much. However, the communication between python and javascript does not work properly anymore. In my .py file, I get the following error:
AttributeError: module 'eel' has no attribute 'say_hello_js'

And in JavaScript similarly:
Uncaught Exception:
ReferenceError: eel is not defined

Seems like the setup/importing of the modules doe not work properly anymore. Do you by any chance have a starter project from where I could get started? Or any idea how to fix this problem?

@04fsnape Thanks a lot for sharing your approach, was able to get it running like that. However, do you know, is it possible to access the eel module from within the main.js script rather than only in the script tags within the html document? I am quite unexperienced with JavaScript so would be great if you could help me with that. For example, I am trying to set up a menu bar and call a function in the python script when Quit is clicked.
...
{
        label: 'Quit',
        accelerator: 'CmdOrCtrl+Q',
        click() {
          eel.quit_app();
          app.quit()
        }
}
...

The menu shows up as expected, however, whenever I try to click Quit, the following error message appears:
A JavaScript error occurred in the main process

Uncaught Exception:
ReferenceError: eel is not defined
    at click (/Users/XXX/Desktop/08 - Eelectron-quick-start/main.js:23:11)

I'm not sure what the nicest way to do this is. Maybe use window.webContents.executeJavascript('eel.close()');
To be honest I think it's maybe better to just listen for the websocket to close on the Python side, as it would cover all possible ways of closing, including crashes

@ChrisKnott Thanks a lot for your answer. You are right, maybe the quit example wasn't such a good one. However, in other cases, how would it be possible to run python functions from within the main.js (something like eel.python_function()) without getting the ReferenceError: eel is not defined. Do I somehow have to import the module? I am really sorry, this seems like a very simple question but I wasn't able to find an answer to this on Google since /eel.js doesn't really exist (?, comment in example hello.html says <!-- Include eel.js - note this file doesn't exist in the 'web' directory -->).

The eel.js file is generated when you run the program, because it has to include information about the functions that have been exposed in Python. This is the "magic" that allows JS to know the names of the Python functions and create the equivalents.
The problem with loading /eel.js from main.js is that it requires a websocket to be connected from the JS interpreter to the Python interpreter, and I'm not sure if Node let's you open websockets from the main process.
There is a possible solution here https://stackoverflow.com/a/23569631

I tried to play around with this a bit but and came up with the following code based on this:
// Load Eel module
  var http = require('http')
    , vm = require('vm')
    , concat = require('concat-stream'); // this is just a helper to receive the
  // http payload in a single callback
  // see https://www.npmjs.com/package/concat-stream

  http.get({
    host: 'localhost',
    port: 8000,
    path: '/eel.js'
  },
    function (res) {
      res.setEncoding('utf8');
      res.pipe(concat({ encoding: 'string' }, function (remoteSrc) {
        vm.runInThisContext(remoteSrc, 'remote_modules/eel.js');
      }));
    });

now I get errors such as this one:
Uncaught Exception:
remote_modules/eel.js:2
    _host: window.location.origin,
           ^
ReferenceError: window is not defined

This is really out of my skill level so I will leave it for the moment I think. Thanks a lot for your help though!

It's a valuable feature you've identified but it will require some changes to how the library works to implement I think.
Basically I originally wrote it with an implicit assumption that it was running in a browser and therefore stuff like "window" would be available.
Thanks for your interest, I hope you manage to get a workaround working!
I'm going to close this issue now because the original problem (borderless window) has been answered.


OCPBUGS-26547: reduce external-dns route53 call volume

WIP: need to verify that external dns in e2e mgmt cluster is making fewer calls

/lgtm

/jira refresh

/retest-required

/retest

/override ci/prow/e2e-kubevirt-aws-ovn


Support storing attachment in a sub folder in S3 bucket

Enable configuring a common parent folder under which all attachments stored. This enables sharing same bucket with multiple clusters
Description
Currently the attachments are stored with path structure whiskentity/<namespace>/<docId>/<name>. With this PR it would be possible to also specify a parent path under which this path would be created. So path structure would be like <prefix>/whiskentity/<namespace>/<docId>/<name>
Config
The prefix can be specified via prefix setting (optional)
whisk {
     s3 {
      alpakka {
         aws {
           credentials {
             provider = static
             access-key-id = "$accessKey"
             secret-access-key = "$secretAccessKey"
           }
           region {
             provider = static
             default-region = us-west-2
           }
         }
         endpoint-url = "http://localhost:$port"
      }
      bucket = "openwhisk"
      prefix = "dev-cluster"
     }
}

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[x] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[x] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[x] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

Codecov Report

Merging #3983 into master will decrease coverage by 14.16%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           master    #3983       +/-   ##
===========================================
- Coverage   85.43%   71.26%   -14.17%
===========================================
  Files         147      147
  Lines        7070     7072        +2
  Branches      423      431        +8
===========================================
- Hits         6040     5040     -1000
- Misses       1030     2032     +1002

Impacted Files
Coverage Δ

...ala/whisk/core/database/s3/S3AttachmentStore.scala
85.71% <100%> (+0.52%)
:arrow_up:

...core/database/cosmosdb/RxObservableImplicits.scala
0% <0%> (-100%)
:arrow_down:

...la/src/main/scala/whisk/http/BasicRasService.scala
0% <0%> (-100%)
:arrow_down:

...core/database/cosmosdb/CosmosDBArtifactStore.scala
0% <0%> (-95.1%)
:arrow_down:

...a/src/main/scala/whisk/http/BasicHttpService.scala
0% <0%> (-93.45%)
:arrow_down:

...sk/core/database/cosmosdb/CosmosDBViewMapper.scala
0% <0%> (-92.6%)
:arrow_down:

.../main/scala/whisk/core/controller/Controller.scala
0% <0%> (-82.11%)
:arrow_down:

...whisk/core/database/cosmosdb/CosmosDBSupport.scala
0% <0%> (-81.82%)
:arrow_down:

.../whisk/core/database/RemoteCacheInvalidation.scala
0% <0%> (-80%)
:arrow_down:

...ain/scala/whisk/core/invoker/InvokerReactive.scala
0% <0%> (-74.17%)
:arrow_down:

... and 43 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 e414b33...6fd0e3f. Read the comment docs.


Hardcode iframe height in pydeck

For #

Background

Change List

Coverage decreased (-2.7%) to 80.305% when pulling bc48b71ed3ee6f4c37350fd3fde910db2f99111f on ajd/pydeck-fix-prod into 46ab2abc219269bd95e97c4bbb1ff8200977aa11 on master.


offset/limit are a reserved words

When using offset/limit as a variable name, we get ambiguous error message

not sure we'll get around supporting offset/limit in different contexts... will attempt to ensure message is clearer


question about notation of the paper

Hi,
I want to ask you about the notation of the paper.
In equation (11), what is x_j ?

I guessed it is same as g(N (fj )).

Sorry, this is a typo, x_j is actually f_j, we only do convolutions on queries and keys. You can refer this paper for more details about the encoder-decoder module.

I got it ! Thank you for the answer.


Max domain_names

I need more than 15 domain names for my mail server.

I had the same issue, fixed by removing the "maxItems": 15 line.
https://github.com/NginxProxyManager/nginx-proxy-manager/blob/cce73beb2da108a6de93cccdd82855805102ddb5/backend/schema/definitions.json#L171-L180

@notzenox Thank you kind stranger <3

For anyone who doesn't know how to fix this, I made a small script to change the max value to 50 inside the container:
https://github.com/Tokukarin/scriptCollection/blob/master/unlockMaxDomainnames.sh


https.txt tests fail

Instead of an SSL exception the test fails when trying to establish a connection
Failure in test /home/christian/sandbox/crate/crate-python/src/crate/client/doctests/https.txt
Failed doctest test for https.txt
  File "/home/christian/sandbox/crate/crate-python/src/crate/client/doctests/https.txt", line 0

----------------------------------------------------------------------
File "/home/christian/sandbox/crate/crate-python/src/crate/client/doctests/https.txt", line 80, in https.txt
Failed example:
    client.server_infos(crate_host)
Expected:
    Traceback (most recent call last):
    ...
    crate.client.exceptions.ConnectionError: Server not available, exception: ...[SSL: ...
Got:
    Traceback (most recent call last):
      File "/usr/lib/python3.8/doctest.py", line 1336, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest https.txt[11]>", line 1, in <module>
        client.server_infos(crate_host)
      File "/home/christian/sandbox/crate/crate-python/src/crate/client/http.py", line 340, in server_infos
        response = self._request('GET', '/', server=server)
      File "/home/christian/sandbox/crate/crate-python/src/crate/client/http.py", line 439, in _request
        raise ConnectionError(
    crate.client.exceptions.ConnectionError: Server not available, exception: HTTPSConnectionPool(host='localhost', port=65534): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0779d09730>: Failed to establish a new connection: [Errno 110] Connection timed out'))

This error is tripping again on CI, see [1].
[1] https://github.com/crate/crate-python/runs/2115670144?check_suite_focus=true#step:5:156

Just to share an observation about this....
When running src/crate/client/doctests/https.txt in isolation, this warning appears at the end of the test run:
sys:1: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('<IP_ADDRESS>', 65534)>

Others are observing the same thing when HTTP requests are issued within a unittest environment, see [1,2]. I tried different countermeasures but haven't been able to resolve it.
[1] https://stackoverflow.com/questions/48160728/resourcewarning-unclosed-socket-in-python-3-unit-test
[2] https://github.com/psf/requests/issues/3912

While I tried to get hold of this nasty error on behalf of #397, I still haven't been able to resolve it. @mfussenegger told me that #157 might be able to resolve it.
Nevertheless, I am inclined to skip the relevant single test within https.txt until we find a solution for it. What do you think about this?
cc @seut

I improved the test cases within https.txt on behalf of bf11e613, and, while everything works flawlessly when running those tests in isolation on my macOS machine, invoking them on Linux within a Docker container blocks the execution completely:
Setup
docker run -it --rm python:3.9.2 bash

python3 -m venv .venv
source .venv/bin/activate

# Workaround for Python 3.9
python -m pip install --upgrade "setuptools>=31,<51"

pip install zc.buildout==2.13.4

buildout -n

Invoke
./bin/test -vvvv --ignore_dir=testing --buffer
Running tests at level 1
Running zope.testrunner.layer.UnitTests tests:
  Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
  Running:
 /src/src/crate/client/doctests/cursor.txt (0.006 s)
 /src/src/crate/client/doctests/connection.txt (0.003 s)
  Ran 2 tests with 0 failures, 0 errors, 0 skipped in 0.009 seconds.
Running crate.client.tests.httpsserver tests:
  Tear down zope.testrunner.layer.UnitTests in 0.000 seconds.
  Set up crate.client.tests.httpsserver listening on localhost 65534
in 0.504 seconds.
  Running:
 /src/src/crate/client/doctests/https.txt

Outcome
After 150s of execution time, the response is:
----------------------------------------------------------------------
File "/src/src/crate/client/doctests/https.txt", line 93, in https.txt
Failed example:
    client.server_infos(crate_host)
Expected:
    Traceback (most recent call last):
    ...
    crate.client.exceptions.ConnectionError: Server not available, exception: ...[SSL: ...
Got:
    Traceback (most recent call last):
      File "/usr/local/lib/python3.9/doctest.py", line 1336, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest https.txt[13]>", line 1, in <module>
        client.server_infos(crate_host)
      File "/src/src/crate/client/http.py", line 402, in server_infos
        response = self._request('GET', '/', server=server)
      File "/src/src/crate/client/http.py", line 501, in _request
        raise ConnectionError(
    crate.client.exceptions.ConnectionError: Server not available, exception: HTTPSConnectionPool(host='localhost', port=65534): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff5ca50e1c0>, 'Connection to localhost timed out. (connect timeout=5)'))

----------------------------------------------------------------------
File "/src/src/crate/client/doctests/https.txt", line 101, in https.txt
Failed example:
    client.server_infos(crate_host)
Expected:
    Traceback (most recent call last):
    ...
    crate.client.exceptions.ConnectionError: Server not available, exception: ...[SSL: ...
Got:
    Traceback (most recent call last):
      File "/usr/local/lib/python3.9/doctest.py", line 1336, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest https.txt[15]>", line 1, in <module>
        client.server_infos(crate_host)
      File "/src/src/crate/client/http.py", line 402, in server_infos
        response = self._request('GET', '/', server=server)
      File "/src/src/crate/client/http.py", line 501, in _request
        raise ConnectionError(
    crate.client.exceptions.ConnectionError: Server not available, exception: HTTPSConnectionPool(host='localhost', port=65534): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff5ca49c2b0>, 'Connection to localhost timed out. (connect timeout=5)'))

Evaluation
So, it looks like that, on Linux, dialing to an SSL-enabled host with invalid client certificate configuration, will stall the SSL handshake in one way or another. At least, we observe this behavior when connecting to Python's http.server.HTTPServer implementation as configured within tests.py as HttpsTestServerLayer. I am running Python 3.9.2 on both environments (macOS native, Linux on Docker).

I have been able to narrow this down to this single test where an invalid CA key/cert file is used to emulate an invalid client certificate.
When using an invalid client certificate, the connection will fail::

    >>> client = HttpClient([crate_host], ca_cert=cacert_valid, cert_file=cacert_invalid, key_file=cacert_invalid, timeout=5)
    >>> client.server_infos(crate_host)
    Traceback (most recent call last):
    ...
    crate.client.exceptions.ConnectionError: Server not available, exception: ...[SSL: ...

When removing this single test, the whole suite within https.txt completes successfully.

This has finally been resolved with 9d309e18 on behalf of #397 by providing correct pairs of valid vs. invalid client certificates to the respective tests which were failing before.


module/project - iam grants applied before org_polices

When creating a project that has DRS disabled as required by GA360
  org_policies = {
    "iam.allowedPolicyMemberDomains" = {
      rules = [{ allow = { all = true } }]
    }
  }

and granting roles/editor to<EMAIL_ADDRESS>as required by GA360
iam = {
    "roles/editor" = [
<EMAIL_ADDRESS>    ]
  }

initial deploy fails with
Error: Request `Set IAM Binding for role "roles/editor" on "project \"tog-common-dt-ga360\""` returned error: Batch request and retried single request "Set IAM Binding for role \roles/editor\" on \"project \\\"tog-common-dt-ga360\\\"\"" both failed. Final error: Error applying IAM policy for project "tog-common-dt-ga360": Error setting IAM policy for project "tog-common-dt-ga360": googleapi: Error 400: One or more users named in the policy do not belong to a permitted customer.
Details:
[
{
"@type": "type.googleapis.com/google.rpc.PreconditionFailure",
"violations": [
{
"description": "User<EMAIL_ADDRESS>is not in permitted organization.",
"subject": "orgpolicy:projects/tog-common-dt-ga360?configvalue=analytics-processing-dev%40system.gserviceaccount.com",
"type": "constraints/iam.allowedPolicyMemberDomains"
}
]
}
]
, failedPrecondition

subsequent applies do succeed
please advise if there is a way to make the initial apply succeed, thanks!

We either prioritize IAM or org policies, or wed have a deadlock. Our approach so far is that IAM takes precedence, for symmetry with the org where you often need to self assign the org policy admin role, then change org policies when bootstrapping. We might revisit and invert the logic for the project, but as things stands this is working as intended.

So I'll just live with the failure on initial deploy and add a note to the module readme, ta


Added MUI alerts to replace browser alerts ⚠

Use MUI Alerts 📐

I Pritam Kundu have worked for #51

Changes Made

Used Material UI to add Snackbar Component

Added Snackbar to repalce browser alerts

Log In
Sign Up
Image Upload Error
Sign In Error
Firebase Error

Replaced all alerts and error messages and with Snackbar Notifications

Screenshots:

Logging In

Logging Out

Error Messages

Creating Post

@warmachine028 Instead of creating a custom component, you might want to consider notistack, which has an imperative API and makes it easy to display snackbars, without having to handle their open/close state

I have already closed 2 PRs regarding this issue. @narayan954 said that the notification was alright but it had issues in the merge conflicts. So I had to scrap out everything and begin from the start. Besides it was clearly mentioned in the PR to use MUI alerts so I did it. Using notistack means i have to start again from scratch which seems quite cumbersome at this point

I understand your pain, but notistack is actually quite easy to implement IMO.
I'd try implementing it in your fork so you can proceed if that's cool with you?

I understand your pain, but notistack is actually quite easy to implement IMO. Using your current solution means we'd have to be prop-drilling or repeating code if we need to re-use the snackbar in other components. I'd try implementing it in your fork so you can proceed if that's cool with you.

Sure you can try implementing in my fork

This can be done using a dialogBox

oh okayy


update(docs): rust plugin sdk link

What type of PR is this?
/kind content
Any specific area of the project related to this PR?
/area documentation
What this PR does / why we need it:
Mention Rust SDK in the Plugins page
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Welcome @deepskyblue86! It looks like this is your first PR to falcosecurity/falco-website 🎉

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: deepskyblue86
Once this PR has been reviewed and has the lgtm label, please assign vjjmiras for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

content/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 12374bef8406e985f5bdf45cbf8ff5df017f452e

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: deepskyblue86, Issif
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content/OWNERS [Issif]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


feat: added admin-password as input, hostname and port as output

Description
add adminpassword as input, database url + port as output https://github.com/terraform-ibm-modules/terraform-ibm-icd-postgresql/issues/198
NOTE: temporarily disabled metadata generator on this PR. As it keeps failing after detecting "adminpassword" as the input variable. This should be reverted back once its fixed from the terraform-config-inspect team's side
Types of changes in this PR
Changes that affect the core Terraform module or submodules

[ ] Bug fix
[x] New feature
[ ] Dependency update

Changes that don't affect the core Terraform module or submodules

[ ] Examples or tests (addition or updates of examples or tests)
[ ] Documentation update
[ ] CI-related update (pipeline, etc.)
[ ] Other

Release required?
Identify the type of release. For information about the changes in a semantic versioning release, see Release versioning.

[ ] No release
[ ] Patch release (x.x.X)
[x] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content
If a release is required, replace this text with information that users need to know about the release. Write the release notes to help users understand the changes, and include information about how to update from the previous version.
Your notes help the merger write the commit message for the PR that is published in the release notes for the module.
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

Merge actions for mergers

Use a relevant conventional commit message that is based on the PR contents and any release notes provided by the PR author. The commit message determines whether a new version of the module is needed, and if so, which semver increment to use (major, minor, or patch).
Merge by using "Squash and merge".

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


fibonacci golden ratio solution added

I don't believe it is a better solution but i wanted to show a different approach 😀

Codecov Report

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

@@          Coverage Diff          @@
##           master    #16   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           7      7
  Lines          68     82   +14
  Branches        8     10    +2
=====================================
+ Hits           68     82   +14

Impacted Files
Coverage Δ

src/functions/fibonacci.ts
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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