History incidence not correct

The history data of the weekly incidence is not correct:

Source: https://api.corona-zahlen.org/districts/09172/history/incidence/3
But if i compare it with the data of the district office, there is some differences.:

Greetings

have a look at #64, please
Thats the same for incidence data! it behaves on all history data! the history isnt fix!
And it is a case of interpretation! the data witch is published 03.04.21 0:00 Uhr is the data from 2.4.2021! the API is "incorrectly" publisching 2021-04-02T00:00:00.000Z witch is a timestamp. the time 00:00:00.000Z you have to ignore!
And as you can see the date from the API and from the district office is for 2.4.2021 the same: 104,7871.... ~ 104,8.
tomorrow it will be different because the cases that are published tomorrow are not all assigned to today (3.4.), same cases are assigned to 2.4 and maybe to different days in the past! the history data is dynamicly ...............

Hi,
ok. That simply means that here, for example, ten more cases were added later? That just seemed a bit high to me. I use the API to determine e.g. school openings or the emergency brake. But I don't know whether the current data is used and then simply archived, or whether the corrected data is used.

Well there is no history data for population but that is needed for calculating the real incidence value from history data.
https://github.com/marlon360/rki-covid-api/blob/3aea537f7a767ad3487efef4d81e53b75f1f99ae/src/responses/districts.ts#L197

I understand that the RKI adds cases to old days and that lower incidences can result from a delay of notices to the RKI. However I see some discrepancies in the API and the offical Excel file that is provided by the RKI. Let's take Hildesheim as an example:
This api call returns the following incidences (just an excerpt):
[
...,
{
date: 2021-04-21T00:00:00.000Z,
weekIncidence:<PHONE_NUMBER>3244543
},
{
date: 2021-04-22T00:00:00.000Z,
weekIncidence:<PHONE_NUMBER>2654259
},
{
date: 2021-04-23T00:00:00.000Z,
weekIncidence:<PHONE_NUMBER>953955
},
{
date: 2021-04-24T00:00:00.000Z,
weekIncidence:<PHONE_NUMBER>9867484
},
{
date: 2021-04-25T00:00:00.000Z,
weekIncidence:<PHONE_NUMBER>9670723
},
{
date: 2021-04-26T00:00:00.000Z,
weekIncidence:<PHONE_NUMBER>9998658
}
]

The official excel file lists the following incidences for Hildesheim (Row 168, Columns FB to FG):

21.04.: 90
22.04.: 91
23.04: 99
24.04.: 116
25.04.: 92
26.04: 110

The media and the districts themselves seem to look at the Excel file, when deciding on the new emergency brake law, as Hildesheim said they do not meet the 5 workdays above 100 AI/7.
Do you have any insights why the data differs?

First of all, I have no idea with which background the RKI determines the incidence values that are used to enforce federal laws!
If they speak from incidence values from today, they always meen the value from yesterday, because they are not able to calculate a incidence value from today, because today is running! they dont know how many cases are today, now! the cases are not updated until around midnight!
lets make a theoretical example to show different versions to calculate the incidence values
the virtal district have 150.000 residents!
following new cases are reported
23.04.2021     0 new cases
22.04.2021     21 new cases
21.04.2021     16 new cases
20.04.2021     0 new cases
19.04.2021     30 new cases
18.04.2021     15 new cases
17.04.2021     11 new cases
the calculated incidence value at 23.04.2021 is 62!
for 24.04.2021 the health department of our virtual district reports 35 new cases, but not all for 24.04.2021! 15 for 23.04.2021 und 20 for 24.04.2021.
now the table can look like this
24.04.2021     35 new cases   = 78 incidence
23.04.2021     0 new cases     = 62 incidence
22.04.2021     21 new cases
21.04.2021     16 new cases
20.04.2021     0 new cases
19.04.2021     30 new cases
18.04.2021     15 new cases
17.04.2021     11 new cases
this is what the excelsheet provide! But in my opinion this gives the districts room for manipulation! (just simply do not transmit a value every 2 days, and one incidence value will be unter a border !!!!!!!!!!!
or like this
24.04.2021     20 new cases = 78 incidence
23.04.2021     15 new cases now the incidence value for 23.04 is 72 !!!!!!!!!!!!!!!
22.04.2021     21 new cases
21.04.2021     16 new cases
20.04.2021     0 new cases
19.04.2021     30 new cases
18.04.2021     15 new cases
17.04.2021     11 new cases
and that is the way this API calculates the incidence for history dates! there is NO way to calculate the historic incidence values witch are published every day from the database this API uses! because the historic values are not stored in the database and they are fully dynamicly, because of the late registrations for one or more days in the past.
If you want this values you have to store the actual value in a extra database every day (as the RKI do with the Excelsheet!)
As you can see here Hildesheim do so

40 new cases are reported for 26.04., but only 23 for 26.04.!

11 new cases for 25.04. (bevor that are 0 !!!!! and that will bring down the incidence reported yesterday!) )
and

6 for 24.04.
so the "right" incidence values for 24.04. and 25.04. are higher than reported!
why they take the static values ............... i dont know
all Data for cases, deaths and recovered are taken from the Arcgis Database!
https://npgeo-corona-npgeo-de.hub.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0
and the incidence values are calculated from the new cases in this database.
till now i dont know this RKI excelsheet.
I hope i can bring some light in the darkness .....................

Thanks for your long answer. It basically confirms what I was thinking. I just have no idea how anybody thinks, that it's the right thing to use the originally published data for any kind of decision 😅
I'll take a deeper look at the Arcgis Database. As the graph in the dashboard is able to show "newly reported cases" maybe one could calculate the "originally reported cases" and use this to get to the incidences as they were reported initially.

it is also possible to parse that excelfile and give that information with the other incidence values too.
maybe called p28bIfSGIncidence (for §28 b IfSG), unfortnatly the XLSX file have the dates in the column and not in the row, and i dont know if this is possible for ME to code this!? and @marlon360 seems very busy at the time.
Maybe anyone else is able with more experience in JS / TS as i have to code this!?

it is also possible to parse that excelfile and give that information with the other incidence values too.
maybe called p28bIfSGIncidence (for §28 b IfSG), unfortnatly the XLSX file have the dates in the column and not in the row, and i dont know if this is possible for ME to code this!? and @marlon360 seems very busy at the time.
Maybe anyone else is able with more experience in JS / TS as i have to code this!?

@Rubber1Duck please have a look at #204
i am very willing to make the necessary pull request


Add language selector

just a cross request from reddit.
It would be much more better if pepole speaking other language than english could use your site with selecting their preferred language and getting movies (if those exists for that one) with that one voice.

Yeah I'm working on i18n and we'll require translators from community


DQCP solver fails on Python3: TypeError '>' not supported between instances of 'NoneType' and 'int'

Describe the bug
On Python3 reductions/dqcp2dcp/inverse.py line 35 fails with
TypeError '>' not supported between instances of 'NoneType' and 'int'

when solving a QCP problem. The issue arises because the parameter t set in reductions/dqcp2dcp/dqcp2dcp.py lines 95-100 is set without a value (i.e.t.value == None), and greater/less than comparisons are no longer allowed in Python3 (see https://stackoverflow.com/a/55465407):
# python2.7
>>> None > 1
False
>>> None < 1
True

# python3.7
>>> None > 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: '>' not supported between instances of 'NoneType' and 'int'

>>> None < 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: '<' not supported between instances of 'NoneType' and 'int'

To Reproduce
# problem data
n = 3
# transitions
W = np.random.random((n + 1, n + 1))
W /= W.sum(axis=1)[:,None]
W[-1, :] = np.zeros(n  + 1)
W[-1, -1] = 1.
# visits
Q = np.linalg.inv(np.eye(n) - W[:n,:n])
# entry vec
sigma = np.random.rand(n)
sigma = sigma / sigma.sum()
# time
times = np.random.rand(n)
# max supply
max_supply_s = 10.
max_supply_w = 2.

# price
price = cp.Variable((n,), pos=True)
price.value = np.zeros(n)
# revenue
rev = sigma.dot(Q) * price

# shift
shift = sigma.dot(Q).dot(times)

# supply func
def F_w(wage):
    lam =50
    k = 1
    return 1 - (cp.exp(-(wage/lam)**k))
# wage
wage = rev / shift
# supply based on wage
wage_supply_s = max_supply_s * F_w(wage)
wage_supply_w = max_supply_w * F_w(wage)
assert wage_supply_s.is_dqcp() and wage_supply_w.is_dqcp()

# demand func
def F_p(p):
    lam = 10
    k = 1
    return (cp.exp(-(p/lam)**k))

# max demands
max_demand_s = np.random.rand(n) * 10
max_demand_w = max_demand_s * 0.2

# demand constants
demand_constant_s = max_demand_s / sigma.dot(Q)
demand_constant_w = max_demand_w / sigma.dot(Q)

# scaled demands
scaled_demand_s = []
for i in range(n):
    scaled_demand_s.append(
        demand_constant_s[i] * F_p(price[i])
    )

scaled_demand_w = []
for i in range(n):
    scaled_demand_w.append(
        demand_constant_w[i] * F_p(price[i])
    )

scaled_demand_tot = []
for i in range(n):
    scaled_demand_tot.append(
        (demand_constant_s[i] + demand_constant_w[i]) * F_p(price[i])
    )
# s constraints
h = cp.minimum(
    wage_supply_s,
    cp.minimum(*scaled_demand_s)
)
problem = cp.Problem(cp.Maximize(h))
problem.solve(qcp=True)

Expected behavior
The problem should solver.
Output
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-566-3c8b7f594b07> in <module>
----> 1 problem.solve(qcp=True,solver='SCS')

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/problems/problem.py in solve(self, *args, **kwargs)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/problems/problem.py in _solve(self, solver, warm_start, verbose, parallel, gp, qcp, **kwargs)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/reduction.py in reduce(self)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/chain.py in apply(self, problem)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/dqcp2dcp.py in apply(self, problem)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/dqcp2dcp.py in _canonicalize_constraint(self, constr)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/dqcp2dcp.py in _canonicalize_constraint(self, constr)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/dqcp2dcp.py in <listcomp>(.0)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/dqcp2dcp.py in _canonicalize_constraint(self, constr)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/dqcp2dcp.py in <listcomp>(.0)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/dqcp2dcp.py in _canonicalize_constraint(self, constr)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/dqcp2dcp.py in _canonicalize_constraint(self, constr)

~/development/wa-amod/venv/lib/python3.7/site-packages/cvxpy/reductions/dqcp2dcp/inverse.py in <lambda>(t)

TypeError: '>' not supported between instances of 'NoneType' and 'int'

Version

OS: 10.13.14
CVXPY Version: 1.0.22

Additional context
This works in Python2

Thanks for reporting! I'll take a look.

Also, using the same code, and changing in inverse.py:
if t.value > 0

for
if t.value is not None and t.value > 0

I get the following:
SolverError: Solver failed with status unbounded_inaccurate

Any idea of how I can debug the underlying unbounded issue?
The verbose output:
Preparing to bisect problem

minimize 0.0
subject to -param78 <= 10.0 * (1.0 + -var96)
           ExpCone(-([2.04883749 0.99158498 2.50502679] * var0 / 3.6369486092266325) / 50.0, 1.0, var96)
           -inf <= -var0[0] / 10.0
           -inf <= -var0[1] / 10.0
           -inf <= -var0[2] / 10.0

Finding interval for bisection ...

@huevosabio : I pushed a fix for this issue to master. We'll cut a bug-fix release for CVXPY soon, so you can make use of the fix. Thanks for using cutting-edge technology, and for filing a helpful bug report! :)
I ran your script with the fix. Here's the output:
********************************************************************************
Preparing to bisect problem

minimize 0.0
subject to -param74 <= 10.0 * (1.0 + -var92)
           ExpCone(-([1.30194173 0.93359284 1.34135821] * var0 / 1.4084753739529998) / 50.0, 1.0, var92)

Finding interval for bisection ...
initial lower bound: -16.000000
initial upper bound: -8.000000

(iteration 0) lower bound: -16.000000
(iteration 0) upper bound: -8.000000
(iteration 0) query point: -12.000000
(iteration 0) query was infeasible.

(iteration 5) lower bound: -10.250000
(iteration 5) upper bound: -10.000000
(iteration 5) query point: -10.125000
(iteration 5) query was infeasible.

(iteration 10) lower bound: -10.007812
(iteration 10) upper bound: -10.000000
(iteration 10) query point: -10.003906
(iteration 10) query was infeasible.

(iteration 15) lower bound: -10.000244
(iteration 15) upper bound: -10.000000
(iteration 15) query point: -10.000122
(iteration 15) query was infeasible.

(iteration 20) lower bound: -10.000008
(iteration 20) upper bound: -10.000000
(iteration 20) query point: -10.000004
(iteration 20) query was infeasible.

Bisection completed, with lower bound -10.000001 and upper bound -10.0000000
********************************************************************************

optimal price:  [651.69339911<PHONE_NUMBER><PHONE_NUMBER>8]


While adding Keras layesr to the model, getting masked input error

While adding Keras layesr to the model, getting masked input error .
How to fix this ?
Please find  details here #104

https://github.com/CyberZHG/keras-bert/blob/master/keras_bert/layers/conv.py


Add gemnasium badge

Coverage remained the same at 92.857% when pulling 200acad858773245cd28cdb6d7d194dfe2eddcbd on gemnasium_badge into 6b0ab9ceb0aeb4f3185a0d1ffce51d38eb3c205f on master.

Gemnasium is winding down soon. You may want to revert this: https://gemnasium.com/blog/gemnasium-is-acquired-by-gitlab/


Segmentation Fault 11

Hi
I followed the instructions and installed fbx sdk on my macbook and then the smpl-to-fbx requirements in a new conda environment. Then while running the Python Convert.py I got this error (without more info):
['gBR', 'gPO', 'gLO', 'gMH', 'gLH', 'gHO', 'gWA', 'gKR', 'gJS', 'gJB']
['sBM', 'sFM']
['0', '1', '2', '3', '4', '5']
Segmentation fault: 11
Do you have any ideas why I am getting this error? My guess the FBX sdk configuration was not done properly, although I followed the instructions provided.
Thanks

potentially related. I get a similar error when defining the --output-base path to be anything other than "./"
['gBR', 'gPO', 'gLO', 'gMH', 'gLH', 'gHO', 'gWA', 'gKR', 'gJS', 'gJB']
['sBM', 'sFM']
['0', '1', '2', '3', '4', '5']
  0%|          | 0/2 [00:00<?, ?it/s]Segmentation fault

Try using --output_base ./
python3 Convert.py --input_pkl_base ./Pkls/ --fbx_source_path ./fbx/SMPL_m_unityDoubleBlends_lbs_10_scale5_207_v1.0.0.fbx --output_base ./

This repo use FXB Python SDK 2020.0.1. You may encounter segmentation fault if not using the same FBX SDK version. See #25 for details.


Unable to launch new CNCIs when trying to launch instances with other tenants

Launched docker and clear instances with tenant 92834d7fd3494ef994e421fdb3eff3a9. Instances were successfully created.
Tried to launch instances with another tenant of the same user and failed with error: Unable to Launch Tenant CNCI.
Tried to launch instances with the admin tenant and failed with same error as above.

Below logs from cli and network node:

cli logs:

root@sn-controller ~/bin # ./ciao-cli -password hello -username csr -identity https://sn-keystone.zpn.intel.com:35357 -tenant 92834d7fd3494ef994e421fdb3eff3a9 -launch-instances -workload ca957444-fa46-11e5-94f9-38607786d9ec
Created new instance: 2369578a-8f12-4bf0-af1e-a129295427dc
root@sn-controller ~/bin # ./ciao-cli -password supernova -username admin -identity https://sn-keystone.zpn.intel.com:35357 -tenant d750a83434e941639ba0c3a37fe18efa -scope admin -launch-instances -workload e35ed972-c46c-4aad-a1e7-ef103ae079a2
F0418 14:18:53.028643    3137 ciao-cli.go:109] ciao-cli FATAL: HTTP Error [500] for [POST https://localhost:8774/v2.1/d750a83434e941639ba0c3a37fe18efa/servers]: Unable to Launch Tenant CNCI
goroutine 1 [running]:
github.com/golang/glog.stacks(0xa60a00, 0x0, 0x0, 0x0)
/home/fuentess/go/src/github.com/golang/glog/glog.go:769 +0xb8
github.com/golang/glog.(*loggingT).output(0xa447a0, 0xc800000003, 0xc8201c8fc0, 0xa26054, 0xb, 0x6d, 0x0)
/home/fuentess/go/src/github.com/golang/glog/glog.go:720 +0x2ce
github.com/golang/glog.(*loggingT).printf(0xa447a0, 0x3, 0xc8200f45a0, 0x8f, 0x0, 0x0, 0x0)
/home/fuentess/go/src/github.com/golang/glog/glog.go:655 +0x1d4
github.com/golang/glog.Fatalf(0xc8200f45a0, 0x8f, 0x0, 0x0, 0x0)
/home/fuentess/go/src/github.com/golang/glog/glog.go:1148 +0x5d
main.fatalf(0xc8200e4680, 0x7f, 0x0, 0x0, 0x0)
/home/fuentess/go/src/github.com/01org/ciao/ciao-cli/ciao-cli.go:109 +0x89
main.createTenantInstance(0x7ffd87812721, 0x20, 0x7ffd8781276b, 0x24, 0x1)
/home/fuentess/go/src/github.com/01org/ciao/ciao-cli/ciao-cli.go:598 +0x473
main.main()
/home/fuentess/go/src/github.com/01org/ciao/ciao-cli/ciao-cli.go:807 +0x6b7

Network node Error Log:

Log file created at: 2016/04/18 14:01:51
Running on machine: sn-network
Binary: Built with gc go1.6 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E0418 14:01:51.307449     588 network.go:287] cn.CreateCnciVnic failed cncivnic error: enable link up device or resource busy
E0418 14:01:51.307578     588 instance.go:134] Unable to start instance[network_failure]: cncivnic error: enable link up device or resource busy
E0418 14:13:51.977771     588 network.go:287] cn.CreateCnciVnic failed cncivnic error: enable link up device or resource busy
E0418 14:13:51.977792     588 instance.go:134] Unable to start instance[network_failure]: cncivnic error: enable link up device or resource busy
E0418 14:18:52.817650     588 network.go:287] cn.CreateCnciVnic failed cncivnic error: enable link up device or resource busy
E0418 14:18:52.817667     588 instance.go:134] Unable to start instance[network_failure]: cncivnic error: enable link up device or resource busy

output from # ip -d link

root@sn-network ~ # ip -d link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 promiscuity 0 addrgenmode eui64
2: tunl0@NONE:  mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1
link/ipip <IP_ADDRESS> brd <IP_ADDRESS> promiscuity 0
ipip remote any local any ttl inherit nopmtudisc addrgenmode eui64
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
link/ether 34:13:e8:36:b0:a0 brd ff:ff:ff:ff:ff:ff promiscuity 0 addrgenmode eui64
4: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether b8:ae:ed:77:02:86 brd ff:ff:ff:ff:ff:ff promiscuity 0 addrgenmode eui64
5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 02:42:52:d2:61:8e brd ff:ff:ff:ff:ff:ff promiscuity 0
bridge forward_delay 1500 hello_time 200 max_age 2000 ageing_time 30000 stp_state 0 priority 32768 vlan_filtering 0 vlan_protocol 802.1Q addrgenmode eui64
6: svc_6c531194@enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 500
link/ether 02:37:a6:4c:58:33 brd ff:ff:ff:ff:ff:ff promiscuity 0
macvtap  mode vepa addrgenmode eui64
alias cncivnic_92834d7fd3494ef994e421fdb3eff3a9_044939c4-feff-447b-ac05-6e3ec8bacc2c
7: svc_bd5f8286@enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 500
link/ether 02:13:95:c5:51:f8 brd ff:ff:ff:ff:ff:ff promiscuity 0
macvtap  mode vepa addrgenmode eui64
alias cncivnic_4e3290a89b764b979d508b22cef4048d_d1b20e75-a07f-471b-8315-d04095137235
8: svc_b4206548@enp0s25: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 500
link/ether 02:13:95:c5:51:f8 brd ff:ff:ff:ff:ff:ff promiscuity 0
macvtap  mode vepa addrgenmode eui64
alias cncivnic_4e3290a89b764b979d508b22cef4048d_7f1c862d-ba25-47f3-9f85-a86ea73d531a
9: svc_2c11fbc3@enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 500
link/ether 02:3d:80:f6:6f:40 brd ff:ff:ff:ff:ff:ff promiscuity 0
macvtap  mode vepa addrgenmode eui64
alias cncivnic_d750a83434e941639ba0c3a37fe18efa_b479959c-99ee-4d59-9331-8b76e625225c
10: svc_44124e30@enp0s25: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 500
link/ether 02:3d:80:f6:6f:40 brd ff:ff:ff:ff:ff:ff promiscuity 0
macvtap  mode vepa addrgenmode eui64
alias cncivnic_d750a83434e941639ba0c3a37fe18efa_18e4cdca-4d6b-4078-87e7-f8ce647cc961
11: svc_9e0bcea4@enp0s25: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 500
link/ether 02:3d:80:f6:6f:40 brd ff:ff:ff:ff:ff:ff promiscuity 0
macvtap  mode vepa addrgenmode eui64
alias cncivnic_d750a83434e941639ba0c3a37fe18efa_aded9538-e4f4-49e5-97d7-9b9b014743c9

@chavafg can you check if you are having DHCP problems in your setup. I see this error only when the CNCI fails to obtain a DHCP lease and the controller then attempts to create a new CNCI as the first instance has not checked back in with the ciao-controller.
Note: We need to document this in known issues.

Also if you use https://download.clearlinux.org/demos/ciao/clear-7470-ciao-networking.img.xz as the basis for your CNCI image (eg: create with https://github.com/01org/ciao/blob/master/networking/cnci_agent/scripts/update_cnci_cloud_image.sh), the CNCI should be a better network citizen and have less DHCP issues.

Not seen this error since the initial sighting. Please re-open if you can reproduce.


FreeBSD build (help needed)

This is a try to build the library on FreeBSD x64
Carefully copied current linux build configuration, changed compiller to clang.
There is unresolved problem with openjfx14 files location. It seems lwjgl3 uses zulu openjdk build, but in FreeBSD we need to use openjdk8 + openjfx14
I have no idea how to fix it because I have no java experience at all.
Also created a PR https://github.com/LWJGL-CI/lwjgl3/pull/3 for CI Github Actions to test it.
If anybody wants to help, welcome!

Thank you @ivan-volnov, LWJGL now has FreeBSD support.


Add some web worker tests

Does some of #917
Main thing I needed to do was add a random id to the gluesql tests so the browser and worker tests don't clash

dang it, yeah


JAX-RS ignores required attribute for body parameters

When using the @ApiParam annotation for a body parameter, the required attribute is being ignored.  It seems that the ParameterProcessor class is not calling the BodyParameter.setRequired() method, however it does set the value correctly for non-body parameters.
You can find an example of this in the java-jaxrs project.  The UserResource class has a method called updateUser() which has a path parameter and also a body parameter.  Both are set to required, however the generated document only specifies the path parameter as required.
I tested this in version 1.5.1-M2.

Working on.

Fixed in develop_2.0.


fix: subdirectory project link error

Working on a project I noticed that when I was under a sub directory the links were generated in a strange way.
Example:
http://www.example.com/project1/first-page
I try to navigate to second-page, it generates this:
http://www.example.com/project1/project1/second-page

See also #421

I'm watching all these issues: current, #421 & #422
I spent almost 2 days figuring out how to trick it via nginx/confs but it seems that this is the only/best workaround.
Hopefully, one of them will be merged soon.

I'm watching all these issues: current, #421 & #422 I spent almost 2 days figuring out how to trick it via nginx/confs but it seems that this is the only/best workaround. Hopefully, one of them will be merged soon.

yeah well, the earliest fix PR for this is from back in January - so it's taking a while to get merged and a new version published

Thanks for the PR, and I'm sorry for the delay! I've merged #592 which should address this issue without adding the scheme and host, which may be a breaking change for some.


Usage with iOS and Android Clients with Java server?

I see in your documentation for JS clients, you swap out the JS Client real instance for a fake instance. Is it possible to use this server with the Pusher Android and iOS clients?
My server is also java based, so I use the Java server sdk as well.
I see options in all the SDKs for setting host and port, so it seems like maybe yes, but then I'm not sure since your documentation doesn't say anything about this, and I don't understand why you'd be swapping out the JS client for a fake one.
I'd love your thoughts!

If you're not using Ruby, you can run the server via the binary. The method used for the JavaScript is simply a helper to turn the configuration into options for the JS client. So as long as the options provided to the binary server are used in the Android, Java, and iOS clients, specifically the web and socket host and port, it should "just work."
Hope that helps! Let me know if you have any issues.

So my plan is to just setup your docker container in my docker-compose local dev setup, point my clients at it, and I should be good to go?
That's what I thought. Awesome! Thanks!

Oh - you don't have a docker image. Looks like I can create an updated one based on https://github.com/gregeinfrank/docker-pusher-fake

So how should I configure this for the server?
Some options I have on the server sdk:

setHost
setCluster
setEncrypted

Some options i have on the client sdk:

setHost
setCluster
setUseTLS

I don't seem to have the ability to set the port as I thought, but perhaps I can set it through the host?
That doesn't really give me the ability to differentiate between a web port and a socket port though.

Oh - you don't have a docker image.

I'll look into adding an official one soon.

So how should I configure this for the server?

If you're using pusher-websocket-java, it looks like you can set the WebSocket port with setWsPort or setWssPort depending if you're using TLS or not. As far as I can tell it only uses HTTP for the HttpAuthorizer, which isn't related to the fake.
For the client, it may be similar but I'm not sure which libraries you're using. I'd look into how they work, as they may also only use a WebSocket as well.
And of course you'd only need HTTP configured correctly if you're using any of the endpoints.

it looks like you can set the WebSocket port with setWsPort or setWssPort

Can't believe I missed that!
So here are the options:
$ pusher-fake --help
Usage: pusher-fake [options]
    -i, --id ID                      Use ID as the application ID for Pusher
    -k, --key KEY                    Use KEY as the key for Pusher
    -s, --secret SECRET              Use SECRET as the secret token for Pusher
        --socket-host HOST           Use HOST for the web socket server
        --socket-port PORT           Use PORT for the web socket server
    -v, --[no-]verbose               Run verbosely
        --web-host HOST              Use HOST for the web server
        --web-port PORT              Use PORT for the web server
        --webhooks URLS              Use URLS for the webhooks

So I'm assuming setWsPort and setWssPort correspond to --socket-port depending on whether or not setUseTLS is true or false.
Beyond that I just set setHost to http://localhost?
I'm assuming setCluster shouldn't matter?

Do you think I should need to do anything else?

Yeah, you probably want to use setWsPort and not use TLS locally to make it easier, otherwise you have to deal with SSL. And localhost will work for the host assuming that's where it'll be available from Docker. You probably don't want setCluster since it changes the host and ports.

Guessing you worked this out so going to close, but feel free to re-open if needed.


Add dependent types

Rewrote type checking procedure to support dependent types. As a side effect all tuples are always validated because they always have the product type. There is a question should we explicitly forbid this and require types like (Pair ...) for representing tuples or allow validating any tuple. I also have small questions on some asserts in tests on dependent types, but it is simpler to check one by one.

I have fixed logic to pass unit tests. I didn't touch Undefined logic yet as we didn't finalized if it should be equal to Any type behavior.

I have changed expression validation logic:

Validate expression as a function call if first atom has arrow type;
Validate expression as a product if first atom has non-expression type.
If atom has both then it can be used in both contexts.


FASToken

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

Already exist


Avoid unnecessary string copies

Related Issue
Fixes #4198
Description
Updates various C++ functions to accept and/or return strings by reference (const-ref and r-value) to avoid unnecessary string copies. Also makes minor tweaks to the UTF-8 <-> UTF-16 string conversion code. These changes aim to improve card parsing and rendering performance.
How Verified
Ran the existing unit tests and performed manual testing by parsing and rendering a number of adaptive cards used by the Cortana in Windows app.
Microsoft Reviewers: Open in CodeFlow

@RebeccaAnne is added to the review. #Closed

@paulcam206 is added to the review. #Closed


How to Setup Dynamic Cron Job(Task Scheduling) in Laravel?

Article checklist
ATTENTION: In your PR - add the ISSUE (topic form) # that this PR corresponds to. You can do this by also adding a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
If you have not already please go over our Resources Page for more tips and tricks on how to improve our overall technical writing.
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Please place your article through a 3rd party plagiarism checker? We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution guidelines
For first-time contributors and for more details, see Contributing Guidelines
resolves #2264

@paulodhiambo, give this a review

@jumamiller amazing refresher tutorial on cron jobs. @hectorkambow  you can give it a final review,

plagiarism check done

great work gents @jumamiller
cc @paulodhiambo 🚀 go over any minor edits I may have made - I dont think I made many 👍


Disappearing button in Asana

My toggl button within asana keeps disappearing the past few days since I've upgraded to the new interface (I'm not sure if this is related or not).
I cleared all my cache, disabled the app and reauthorised access and when refreshing Asana the button reappeared on one task, but as soon as I navigate to another task it's disappeared again.
Case #367261

+1


knife digital_ocean image list --public command is broken

When I call knife digital_ocean image list --public I get the following error:
ERROR: ArgumentError: comparison of NilClass with String failed

Same here.

Can we get a new release?  Just hit this bug

@hhff Done, thanks for the reminder.

thankyou @gregf !!


settings.clusterEndpoint is ignored

Description
Hello. I'm running karpenter on an EKS cluster to manage another cluster on a different account. I have configured all the necessary permissions.
I specified the helm settings.clusterEndpoint parameter. The CLUSTER_ENDPOINT environment variable has appeared.
Observed Behavior:
karpenter ignores CLUSTER_ENDPOINT variable and works with a local cluster.
log.txt
Expected Behavior:
karpenter must work with a remote cluster whose endpoint is specified.
Reproduction Steps (Please include YAML):
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: '1'
  creationTimestamp: '2024-02-23T05:17:32Z'
  generation: 1
  labels:
    app.kubernetes.io/instance: karpenter-test2
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: karpenter
    app.kubernetes.io/version: 0.33.0
    argocd.argoproj.io/instance: karpenter-test2
    helm.sh/chart: karpenter-0.33.0
  name: karpenter-test2
  namespace: karpenter-remote
  resourceVersion: '36333236'
  uid: f16681ed-e543-4954-8699-ccbf34da02ed
spec:
  progressDeadlineSeconds: 600
  replicas: 2
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app.kubernetes.io/instance: karpenter-test2
      app.kubernetes.io/name: karpenter
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app.kubernetes.io/instance: karpenter-test2
        app.kubernetes.io/name: karpenter
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
              - matchExpressions:
                  - key: karpenter.sh/nodepool
                    operator: DoesNotExist
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            - labelSelector:
                matchLabels:
                  app.kubernetes.io/instance: karpenter-test2
                  app.kubernetes.io/name: karpenter
              topologyKey: kubernetes.io/hostname
      containers:
        - env:
            - name: KUBERNETES_MIN_VERSION
              value: 1.19.0-0
            - name: KARPENTER_SERVICE
              value: karpenter-test2
            - name: LOG_LEVEL
              value: info
            - name: METRICS_PORT
              value: '8000'
            - name: HEALTH_PROBE_PORT
              value: '8081'
            - name: SYSTEM_NAMESPACE
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: metadata.namespace
            - name: MEMORY_LIMIT
              valueFrom:
                resourceFieldRef:
                  containerName: controller
                  divisor: '0'
                  resource: limits.memory
            - name: FEATURE_GATES
              value: 'Drift=true,SpotToSpotConsolidation=true'
            - name: BATCH_MAX_DURATION
              value: 10s
            - name: BATCH_IDLE_DURATION
              value: 1s
            - name: ASSUME_ROLE_ARN
              value: 'arn:aws:iam::537308274263:role/karpenter'
            - name: ASSUME_ROLE_DURATION
              value: 15m
            - name: CLUSTER_CA_BUNDLE
              value: >-
                LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJBZ0lJVmFkZjVXN0FBYnN3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TkRBeU1UWXhPVFExTURKYUZ3MHpOREF5TVRNeE9UVXdNREphTUJVeApFekFSQmdOVkJBTVRDbXQxWW1WeWJtVjBaWE13Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLCkFvSUJBUUNkd0FTS2pjdk9oNFllN3lwM2VrTkhhSjd5bUlZNFJHQjlUMTNLeXY3by9SYjBFZWpLa1YrbXNKdTAKczNlMU1XeFBHVmRtMm5IK3dZQ0tSUHhHQmgvcFFIaURHRHNJRXA4aG9GdkhTbUFRSmlLdlBiNEozNFlmV1diTwp1Q01LZVQ2dEFaa2RjQ0tJV3ZENlQyU0JyQUI1Wm90OWZlR1dZOWxNUnc4NXZhYzJld25qbkpOL2Zmd1RQOFhqCnNxVFlHMVNJeGVCMHZtWTVzemU5clZPTWl5SnZISTBlN0JvZ29Zd1o4YW95SFpxcWZxc3hkMDRwRm8vM2h1eWQKZWRTcVQ3ZzRBdC8rMFY1dU02Tyt1YmtQSzRsSVRpTzRtYkV2NzlTVWVPWjA1bHh3UkFvOXVGK1VJdkJHMTI2Vgp0VjVaRTgyNzFwamZ6U3pSbmFsMUZlck1UTFpCQWdNQkFBR2pXVEJYTUE0R0ExVWREd0VCL3dRRUF3SUNwREFQCkJnTlZIUk1CQWY4RUJUQURBUUgvTUIwR0ExVWREZ1FXQkJReE40YnpaMTQ3TG5KSExHQTUzZ2kvSS90cThEQVYKQmdOVkhSRUVEakFNZ2dwcmRXSmxjbTVsZEdWek1BMEdDU3FHU0liM0RRRUJDd1VBQTRJQkFRQ1FtcHJxWFNKZwo4M0M5VFN5ZWJtUG1nUEZjWWN2Qk81c1NFUkpWczZ1VDVySVNlNjNFRDFtTEV1dXdOaXdzMXFMOFdXQmc0WVZsClBRcm1OeHc4WGNJd3JJTkRVSkNWd1dvMFc1RFhxVTBrdjhENk5mOC9zOHJ5bi9OQWdaUXByTHVCWDdKbDUwTWwKYkFxaDNaTTZSclJLQWNaYVcrUE5oN3ZSVFRibFN2bEtDRFJ3Vkt4aStFNHB1RFd4ZjY4ZVl5aVdQZkk4b2tJNwp1RnhOWVJ6SytLNmtTdEhSQjNJVUFIVk5PNjJOSWkxRHlacFh3Y2VxNXU1WkFrZUd3dGRaUWU3ZURKSEVVUGRYCkFMZkZnZWtTTUw5cVhDVWtadnBXbGNKYjhDZ2s3NUtJZzhSSTlMV1BDL0M1bGdoei93UGNDMC9HZUY5UC9sVlEKZFNjU0FSSzhPbGxDCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
            - name: CLUSTER_NAME
              value: bigid-remotescanner-us-west-2-dev-remote
            - name: CLUSTER_ENDPOINT
              value: >-
                https://5621E8E9FC895F32E129B5121B54F212.gr7.us-west-2.eks.amazonaws.com
            - name: VM_MEMORY_OVERHEAD_PERCENT
              value: '0.075'
            - name: INTERRUPTION_QUEUE
              value: Karpenter-bigid-remotescanner-us-west-2-dev-remote
            - name: RESERVED_ENIS
              value: '0'
          image: >-
            public.ecr.aws/karpenter/controller:v0.33.0@sha256:5e5f59f74d86ff7f13d7d80b89afff8c661cb4e3265f2fdda95b76dd9c838cc1
          imagePullPolicy: IfNotPresent
          livenessProbe:
            failureThreshold: 3
            httpGet:
              path: /healthz
              port: http
              scheme: HTTP
            initialDelaySeconds: 30
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 30
          name: controller
          ports:
            - containerPort: 8000
              name: http-metrics
              protocol: TCP
            - containerPort: 8081
              name: http
              protocol: TCP
          readinessProbe:
            failureThreshold: 3
            httpGet:
              path: /readyz
              port: http
              scheme: HTTP
            initialDelaySeconds: 5
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 30
          resources: {}
          securityContext:
            allowPrivilegeEscalation: false
            capabilities:
              drop:
                - ALL
            readOnlyRootFilesystem: true
            runAsGroup: 65536
            runAsNonRoot: true
            runAsUser: 65536
            seccompProfile:
              type: RuntimeDefault
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      nodeSelector:
        kubernetes.io/os: linux
      priorityClassName: system-cluster-critical
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        fsGroup: 65536
      serviceAccount: karpenter
      serviceAccountName: karpenter
      terminationGracePeriodSeconds: 30
      tolerations:
        - key: CriticalAddonsOnly
          operator: Exists
      topologySpreadConstraints:
        - labelSelector:
            matchLabels:
              app.kubernetes.io/instance: karpenter-test2
              app.kubernetes.io/name: karpenter
          maxSkew: 1
          topologyKey: topology.kubernetes.io/zone
          whenUnsatisfiable: ScheduleAnyway

Versions:

Chart Version: v0.34.1
Kubernetes Version (kubectl version):

Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.5-eks-5e0fdde

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

CLUSTER_ENDPOINT isn't actually used for cluster connectivity, it's used for launch template generation. This isn't a documented use case for Karpenter, it should work, but I believe you'll also have to configure a kubeconfig file that you could mount to the pod and set the KUBECONFIG environment variable. The appropriate rbac permissions would also need to be configured in the cluster you're managing, not the cluster Karpenter is running on.

Thanks for the help. I have a question. I don't know what content kubeconfig should have.
Now I did this, obviously not correct:
    "clusters":
    - "cluster":
        "certificate-authority-data": "......................"
        "server": "https://5621E8E9FC895F32E129B5121B54F212.gr7.us-west-2.eks.amazonaws.com"
      "name": "kubernetes"
    "contexts":
    - "context":
        "cluster": "kubernetes"
        "user": "aws"
      "name": "aws"
    "current-context": "aws"
    "kind": "Config"
    "preferences": {}
    "users":
    - "name": "aws"
      "user":
        "exec":
          "apiVersion": "client.authentication.k8s.io/v1beta1"
          "args":
          - "token"
          - "-i"
          - "bigid-remotescanner-us-west-2-dev-remote"
          "command": "aws-iam-authenticator"

I get an error:
panic: failed to setup manager: failed to determine if *v1.Lease is namespaced: failed to get restmapping: failed to get server groups: Get "https://5621E8E9FC895F32E129B5121B54F212.gr7.us-west-2.eks.amazonaws.com/api": getting credentials: exec: executable aws-iam-authenticator not found

It looks like you are trying to use a client-go credential plugin that is not installed.

To learn more about this feature, consult the documentation available at:
      https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins

karpenter doesn't use aws-iam-authenticator
can you show an example of the correct kubeconfig?

Thanks for the help. I have a question. I don't know what content kubeconfig should have

It should be the output of whatever you get if you were to run aws eks update-kubeconfig on your local machine. You could set your KUBECONFIG environment variable to some empty file, run that command, and then copy the entirety of that file into a configMap and mount it as a volume into the container to get your container to reach-out through that mechanism to the other cluster.
As an example, here's what my KUBECONFIG looks like when I do this
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: <insert-base64-certificate-data>
    server: <insert-cluster-endpoint>
  name: <insert-cluster-arn>
contexts:
- context:
    cluster: <insert-cluster-arn>
    user: <insert-cluster-arn>
  name: <insert-cluster-arn>
current-context: <insert-cluster-arn>
kind: Config
preferences: {}
users:
- name: <insert-cluster-arn>
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1beta1
      args:
      - --region
      - us-west-2
      - eks
      - get-token
      - --cluster-name
      - scale-test
      - --output
      - json
      command: aws
      env:
      - name: AWS_PROFILE
        value: default

I tried this:
panic: failed to setup manager: failed to determine if *v1.Lease is namespaced: failed to get restmapping: failed to get server groups: Get "https://5621E8E9FC895F32E129B5121B54F212.gr7.us-west-2.eks.amazonaws.com/api": getting credentials: exec: executable aws not found
It looks like you are trying to use a client-go credential plugin that is not installed.
To learn more about this feature, consult the documentation available at:

I guess I can make my own docker image based on yours. but I would like to avoid this.

I did it!
FROM public.ecr.aws/karpenter/controller:v0.33.0 as src
FROM rtsp/aws-cli
user root
# Now copy the static shell into base image.
COPY --from=src /ko-app /ko-app
RUN groupadd -g 65536 karpenter && \
	useradd -u 65536 -g 65536 -m -s /bin/sh karpenter

#user karpenter

ENTRYPOINT ["/ko-app/controller"]

This is of course a crooked solution, but probably it can be added to the docs.


Track last seen post timestamp per wiki

2a85c2ce007d149e9974ab14d1e694a080ae6666 fixed a bug where a post would be skipped being downloaded if a post was stored with a later timestamp than it, which because posts are downloaded ordered by wiki and not by timestamp, was causing almost all posts to be skipped. It fixed it by limiting the 'latest timestamp' search only to posts from the given wiki.
While effective, this is not efficient. Most downloaded posts are deleted during the very same run, meaning on the next run, many of those same posts will be downloaded again, wasting time and networking resources.
This PR fixes this by recording the last time that posts were downloaded from a wiki in the context_wiki table. This recording will be permanent, even if the corresponding post is deleted.

Coincidentally looks like this also fixes a bug where the latest timestamp would be none if there are no posts stored for a given wiki, causing an error that prevents any posts from being stored for it at all.


I actually feel jQuery is very good.

When I finished reading this article, I actually felt jQuery was really good. 😂
It's still simplifying a lot of things.

I don't think that anyone wants to discount what jQuery has done... that said, there is a lot to it, so much so that most projects are only using less than half of it.    You have the selection engine from sizzle, in addition to event handling abstractions.  A lot of that is easy enough and consistent enough in the browsers now.  You have the promises abstractions, which is now done slightly differently in the browser, mostly native now.  You have the request models, which is now supplanted with the fetch API.  In the end, a lot of what jQuery has in the toolbox beyond DOM query, events and manipulation is better served with other tools, or native to JS and/or the browser.
I will still reach for jQuery in a lot of cases, especially if it's already in a project.  However, I'm hesitant to add it into a new project.

i think some support ie9/8.
and i also think jquery is cool

No
вт, 24 янв. 2017 г. в 11:59, webster<EMAIL_ADDRESS>
i think some support ie9/8.
and i also think jquery is cool
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/oneuijs/You-Dont-Need-jQuery/issues/128#issuecomment-274745806,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABRKj2W65wXLKZOZjWbt1uMHbm_BS3f3ks5rVb1xgaJpZM4KRKy7
.


[Bug]: Firefox Private Browsing shortcut isn't contained in the Scoop Apps folder

Prerequisites

[X] I have written a descriptive issue title.
[X] I have searched all issues/PRs to ensure it has not already been reported or fixed.
[X] I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name
firefox
Expected/Current Behaviour
I expected for the Firefox Private Browsing shortcut to appear within the Scoop Apps folder in the Start Menu. Instead, it appears in the root of the Start Menu, which doesn't follow the conventions of other Scoop applications.
Steps to Reproduce
PS C:\Users\User> scoop install firefox
Installing 'firefox' (111.0) [64bit] from extras bucket
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: 4c4821|OK  |    12MiB/s|C:/Users/User/scoop/cache/firefox#111.0#https_archive.mozilla.org_pub_firefox_releases_111.0_win64_en-US_Firefox_20Setup_20111.0.exe_dl.7z
Download: Status Legend:
Download: (OK):download completed.
Checking hash of Firefox%20Setup%20111.0.exe ... ok.
Extracting dl.7z ... done.
Linking ~\scoop\apps\firefox\current => ~\scoop\apps\firefox\111.0
Creating shim for 'firefox'.
Creating shortcut for Firefox (firefox.exe)
Creating shortcut for Firefox Profile Manager (firefox.exe)
Persisting distribution
Persisting profile
Running post_install script...
'firefox' (111.0) was installed successfully!

Possible Solution
I have created a pull request that I will link to this issue shortly which addresses the problem described above.
Scoop and Buckets Version
PS C:\Users\User> scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'extras' bucket:
1aea899aa (HEAD -> master, origin/master, origin/HEAD<EMAIL_ADDRESS>Fix hash (Closes #10776)

'games' bucket:
4fcb4ace (HEAD -> master, origin/master, origin/HEAD) yuzu: Update to version 0-1371

'main' bucket:
be243a060 (HEAD -> master, origin/master, origin/HEAD) terraform: Update to version 1.4.1

'nonportable' bucket:
4a883dc (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 0.36.13

Scoop Config
PS C:\Users\User> scoop config

last_update        aria2-warning-enabled scoop_branch scoop_repo
-----------        --------------------- ------------ ----------
3/15/2023 14:14:51                 False master       https://github.com/ScoopInstaller/Scoop

PowerShell Version
PS C:\Users\User> $PSVersionTable

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

Additional Softwares
No response

It is generated when the program is run, which not when installed.


'Categorical' object has no attribute 'get_values'

In Image Utils, this attribute no longer exists in recent versions of pandas, for pandas categorical objects. Should be replaced with:
cat_col_series.to_numpy()

This issue is not fixed yet.


Probably user error -- unable to AddFirewall

Mapping a working gcloud command to PowerShell but without success:
gcloud compute firewall-rules create $name \
--project=$PROJECT \
--network "default" \
--source-ranges <IP_ADDRESS>/24 \
--allow tcp,udp,icmp

Think this transforms to:
new-gcefirewallprotocol tcp `
| new-gcefirewallprotocol udp `
| new-gcefirewallprotocol icmp `
| add-gcefirewall `
-name $name `
-project $project `
-network "default" `
-sourcerange $sourcerange

Tried with sourcerange as:
$sourcerange="<IP_ADDRESS>/24"
$sourcerange=@("<IP_ADDRESS>/24")

But:
add-gcefirewall : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of
the parameters that take pipeline input.
At line:2 char:3
+ | add-gcefirewall `
+   ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Google.Apis.Com...all+AllowedData:PSObject) [Add-GceFirewall], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Google.PowerShell.ComputeEngine.AddGceFirewallCmdlet

add-gcefirewall : Google.Apis.Requests.RequestError
Invalid value for field 'resource.network': 'default'. The URL is malformed. [400]
Errors [
	Message[Invalid value for field 'resource.network': 'default'. The URL is malformed.] Location[ - ] Reason[invalid] Domain[global]
	Message[Invalid value for field 'resource.network': 'default'. The URL is malformed.] Location[ - ] Reason[invalid] Domain[global]
]
At line:2 char:3
+ | add-gcefirewall `
+   ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-GceFirewall], GoogleApiException
    + FullyQualifiedErrorId : Google.GoogleApiException,Google.PowerShell.ComputeEngine.AddGceFirewallCmdlet

Hi @DazWilkin, you can create a list of firewall protocols with:
$tcp = New-GceFirewallProtocol tcp
$udp = New-GceFirewallProtocol udp
$icmp = New-GceFirewallProtocol icmp

Add-GceFirewall -Name $name `
                -AllowedProtocol @($tcp, $udp, $icmp) `
                -Project $project `
                -Network "default" `
                -SourceRange $sourceRange

Remove your -Network parameter. The default network will be used anyway.

@ILMTitan Sure, but what if you did need to specify a specific network? I assume there is a bug where we aren't converting the friendly name "default" into the URI that the API expects? "google//networks/default" or something?

That is correct. I had thought, if you have to specify a network, gcloud required the more verbose syntax, but it does not. This is something we should fix.

@quoctruong suggestion doesn't work for me.
I am trying to create the firewall against a non-default network, I just used that as an example.
The command works if I don't specify the network.
But, errors with the flag:
Add-GceFirewall : Google.Apis.Requests.RequestError
Invalid value for field 'resource.network': 'default'. The URL is malformed. [400]
Errors [
	Message[Invalid value for field 'resource.network': 'default'. The URL is malformed.] Location[ - ] Reason[invalid] Domain[global]
	Message[Invalid value for field 'resource.network': 'default'. The URL is malformed.] Location[ - ] Reason[invalid] Domain[global]
]
At line:1 char:1
+ Add-GceFirewall -Name $name `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Add-GceFirewall], GoogleApiException
    + FullyQualifiedErrorId : Google.GoogleApiException,Google.PowerShell.ComputeEngine.AddGceFirewallCmdlet

@DazWilkin The PowerShell cmdlet does not infer the url of the network as well as gcloud. If you want to use the default network, just remove the -Network parameter. If you need to specify the network, it should look something like "global/networks/default". Thank you for bringing this issue to our attention.

This is now fixed with https://github.com/GoogleCloudPlatform/google-cloud-powershell/pull/461.


KeyboardDatePicker doesn't work with date-fns format string

If you don't mind add a fun gif or meme, but no pressure

Environment

Tech
Version

@material-ui/pickers
^3.2.1

material-ui
^4.1.1

React
^16.8.3

Browser
Chrome 75

Peer library
date-fns ^2.0.0-beta.1

Steps to reproduce

Create KeyboardDatePicker with format="P"

Expected behavior
The docs for format just say "Format string". It's not clear to me what valid input for this format string is. I tried to use a date-fns format string, but that's causing problems
My goal is to have a format string that respects the language setting of the user's browser. E.g. I would like mm/dd/yyyy in English and dd/mm/yyyy in Spanish. date-fns has a format string P that accomplishes this. The browser's Intl API would also do this, but there's no way to use it in the format option since it only accepts a string
Actual behavior
I can only type one character in the input if format="P"

Yes. But you can specify custom mask. I don’t think we can somehow recognize the format for end user

That worked! Thanks!
Feel free to close this issue. I'll leave it open for the time being in case you want to update the docs at all. It might be helpful to add a note in the format docs specifying that mask may need to be set when changing the format
Thank you for all your help! Our app is now working and ready to bring green power to many more homes :-)

Actually there is a note here

Make sure that mask will be automatically generated from passed format. It's recommended to use only robust formats for keyboard input.

Is it not clear enough?

I didn't look at that page and was only looking at https://material-ui-pickers.dev/api/KeyboardDatePicker, which I'd expect to mention something

Make sure that mask will be automatically generated from passed format. It's recommended to use only robust formats for keyboard input.

I'm not sure I would have understood this. Putting mask in backticks to indicate it's a property might be helpful. But mainly I'm not sure from the description how I'd make sure whether mask is being automatically generated or what is meant by robust formats.

I just ran into this problem and finally understood how to use KeyboardDatePicker with proper format and mask.
format must be one of these strings, found in @date-io readme, regardless of the format by localization,
export interface DateIOFormats<TLibFormatToken = string> {
  /** Localized full date, useful for accessibility @example "January 1st, 2019" */
  fullDate: TLibFormatToken;
  /** Day format string extremely required to localize @example "Wed, Jan 1st" for US, "January 1st" for Europe */
  normalDate: TLibFormatToken;
  /** Shorter day format @example "Jan 1st" */
  shortDate: TLibFormatToken;
  /** Year format string @example "2019" */
  year: TLibFormatToken;
  /** Month format string @example "January" */
  month: TLibFormatToken;
  /** Short month format string @example "Jan" */
  monthShort: TLibFormatToken;
  /** Short month format string @example "January 2018" */
  monthAndYear: TLibFormatToken;
  /** Month with date format string @example "January 1st" */
  monthAndDate: TLibFormatToken;
  /** Day format string @example "12" */
  dayOfMonth: TLibFormatToken;
  /** Hours format string @example "11" */
  hours12h: TLibFormatToken;
  /** Hours format string @example "23" */
  hours24h: TLibFormatToken;
  /** Minutes format string @example "59" */
  minutes: TLibFormatToken;
  /** Seconds format string @example "59" */
  seconds: TLibFormatToken;
  /** Full time localized format string @example "11:44 PM" for US, "23:44" for Europe */
  fullTime: TLibFormatToken;
  /** Not localized full time format string @example "11:44 PM" */
  fullTime12h: TLibFormatToken;
  /** Not localized full time format string @example "23:59" */
  fullTime24h: TLibFormatToken;
  /** Date & time format string with localized time @example "2018, Jan 1st 11:44 PM" */
  fullDateTime: TLibFormatToken;
  /** Not localized date & Time format 12h @example "2018, Jan 1st 11:44 PM" */
  fullDateTime12h: TLibFormatToken;
  /** Not localized date & Time format 24h @example "2018, Jan 1st 23:44" */
  fullDateTime24h: TLibFormatToken;
  /** Localized keyboard input friendly date format @example "2019/01/01" */
  keyboardDate: TLibFormatToken;
  /** Localized keyboard input friendly date/time format @example "2019/01/01 23:44" */
  keyboardDateTime: TLibFormatToken;
  /** Not Localized keyboard input friendly date/time 12h format @example "2019/01/01 23:44" */
  keyboardDateTime12h: TLibFormatToken;
  /** Not localized keyboard input friendly date/time 24h format @example "2019/01/01 11:44 PM" */
  keyboardDateTime24h: TLibFormatToken;
}

mask will change how the slashes and colon appears, for example to turn from the default 2019/01/01 to 2019-01-01 one would provide mask="____-__-__" with maskChar="_" (which is also default).
And we provide the locale with the locale imported from the date-time library itself (date-fns, moment, lexon).:
import { eo } from 'date-fns/locale'
...
<MuiPickersUtilsProvider utils={keyboardDateTime24h} locale={eo}>
    <KeyboardDatePicker
       format="fullDateTime24h" // Not localized date & Time format 24h @example "2018, Jan 1st 23:44"
       mask="" // if you want to change how the text should appear
     />
</MuiPickersUtilsProvider>

Although having an option that passes any formatstring usable by the util is not bad, however, most of the time we don't need it. So we may close this issue after providing users with a proper documentation on format and mask property of KeyboardDatePicker. I don't think others should debug in their Chrome for half an hour straight to get the format array.

Fixed in v4. “P” is used by default from now


Zafira displays more threads than should be

Sometimes Zafira displays more threads than should be , for example 10 or more, although we have only 4 ios devices and threads can't be more than 4. It's look like AbstractTest/ZafiraListener issue

root cause identified and fixed. for details take a look to https://github.com/qaprosoft/carina/issues/450


how can i get the current scene by redux

Version
Tell us which versions you are using:

react-native-router-flux v3.37.0
react-native v0.37.0

Expected behaviour
I want to get the current scene,but get the whole of scenes
Actual behaviour
I got the whole of scenes, how can i get the current scene by redux?
thank you for your wonderful component!

Might not be the best way but I achieved it by doing:
_createReducer = (params:Object):Reducer => {     const defaultReducer = Reducer(params);     return (state:Object, action:Object):Function<Reducer> => {       if (action.hasOwnProperty('scene')) {         this.props.setRoute(action.scene.name); // This is our redux action. We keep a string of currentRoute       }       return defaultReducer(state, action);     };   };
and then

@LukeAvery92 Sometimes your solution shows incorrect current scene on tabbar.
<Scene
      key='tabs'
      tabs
      tabBarStyle={styles.tabBar}
      tabBarSelectedItemStyle={styles.tabBarSelectedItem}
      type='replace'
    >
        <Scene key='foo' ... />
        <Scene key='bar' ... />
</Scene>

When I'm on foo scene, action.scene.name sometimes show tabs or foo. Is it a bug?


D:\kindleear_uploader>goto end
D:\kindleear_uploader>pause
请按任意键继续. . .

没错误就表示成功了

goto end 然后跳到  pause  也是成功了么?

你的网站已经成功，可以正常打开的。


Wired client not included in metrics

Hey I've recently added a SG2008P and a ER605v2 to my house and after fighting with the controller for a few hours to get it to recognize everything I got it working.
My controller is hosted on my small home server (<IP_ADDRESS>), which is a wired client connected directly to my router (havent't tried connecting to the switch tbh, but it should have no effect as they're both managed devices), but I cannot find any stats for that particular IP for any of the metrics selected in the image below. Is this expected behaviour? I can see at least "Current Download Activity" in Omada for this particular device.

Hello, i have the same behavior on ER7412-M2 and SG2428P.
Only wireless clients show-up in "omada_client_traffic_down_bytes" and "omada_client_traffic_up_bytes", while on Omada SDN GUI i see things
Example: my Synology NAS:


Update frontend dependencies

It looks like part of this PR is also covered by PR #1113. Could you make sure that we don't double commits in two different pull requests?

Also please follow this guidelines for writing commit messages.

It seems that CI fails: https://travis-ci.org/mirumee/saleor/builds/274641837

@dominik-zeglen Once you fix CI please rewrite the commits to follow what @elwoodxblues suggested.

Codecov Report

Merging #1115 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1115      +/-   ##
==========================================
+ Coverage   63.65%   63.67%   +0.01%
==========================================
  Files         106      106
  Lines        5869     5869
  Branches      729      729
==========================================
+ Hits         3736     3737       +1
  Misses       1994     1994
+ Partials      139      138       -1

Impacted Files
Coverage Δ

saleor/core/utils/random_data.py
83.98% <0%> (+0.39%)
: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 02da74d...5244a4a. Read the comment docs.

I think we could also bump the version of Yarn in this PR.

With new "materialize-css" version = 0.100.2 not working checkbox in dashboard


Not clear why JSON response receives an auto-generated key

Describe the bug
When calling the method result = sg.query_json(), the returned object looks roughly like this:
$result
[{'xcfb7c9c5f581c978': [{"title":"title1", "id":1}, {"title":"title2",id":2}

It's not clear to me (also could not find anything in the docs) why the results are indexed by this (apparently random) key. Isn't it easier to just return all flattened items?
I apologize if this behaviour is documented somewhere.
To Reproduce

Query this subgraph https://api.thegraph.com/subgraphs/name/protofire/omen-xdai/graphql?query=query+{
++fixedProductMarketMakers(first%3A2%2C
++++where%3A+{
++++++outcomes%3A+["Yes"%2C"No"]
++++}
++)+{
++++id
++++outcomes
++}
} (fetching fixedProductMarketMakers)

Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Python version (please complete the following information):

3.10.13

I can see how this might be a bit confusing. While this key seems a bit random, there is actually some purpose for this key (it's also not generated randomly).
A Subgrounds query is a bit more than the exact GraphQL it is replicating, it actually injects a bit of extra stuff to the query to help us sort through the response when organizing the output required by the main querying function query_df.
For example:
>>> url = "https://api.thegraph.com/subgraphs/name/protofire/omen-xdai"
>>> with Subgrounds() as sg:
...     subgraph = sg.load_subgraph(url)
...     field = subgraph.Query.fixedProductMarketMakers(
...          first=2,
...          where={"outcomes": ["Yes", "No"]}  # using relative form
...     )
...     request = sg.make_request([field.id, field.outcomes])
>>> print(request.graphql)

query {
  x8b50aedfc3bfeb1f: fixedProductMarketMakers(first: 2, where: {outcomes: ["Yes", "No"]}) {
    id
    outcomes
  }
}

While this query seems to match up with the GraphQL API link you posted, Subgrounds actually injected an extra data (starting with x8b..). This is the name of the query, autogenerated as a hash of the fields and conditions of the top-level entity, fixedProductMarketMakers, being queried. Since Subgrounds allows you to stack multiple queries to the same top-level entity in the same query, there needs to be some way to be able to identify the same field that might have different conditions. Here is an example of this situation.
>>> with Subgrounds() as sg:
...     subgraph = sg.load_api(url)
...     yes = subgraph.Query.fixedProductMarketMakers(first=2, where={"outcomes": ["yes"]})
...     no = subgraph.Query.fixedProductMarketMakers(first=2, where={"outcomes": ["no"]})
...     request = sg.make_request([yes.id, yes.outcomes, no.id, no.outcomes])
>>> print(request.graphql)

query {
  xe6482a7b42808c65: fixedProductMarketMakers(first: 2, where: {outcomes: ["yes"]}) {
    id
    outcomes
  }
  x626d33e4fd087f66: fixedProductMarketMakers(first: 2, where: {outcomes: ["no"]}) {
    id
    outcomes
  }
}

This is a bit of a more thorough breakdown to explain this behavior but the true resolution to this is actually more of an interface design POV. When the query_* interface was first designed, it was centered around query and query_df and query_json was actually more of an internal method used as the "raw" handler of the json of The Graph response. This is likely a mistake but something the current API lives with since we don't want to introduce breaking changes. Ideally, query_json would strip this extraneous information (or at least rename it to something human readable).
I realize there's not an issue for this currently, but there have been ideas internally about a more fleshed out / updated API interface for the Subgrounds query method that would be a bit more flexible, allowing for a better JSON output amongst other forms of output. LMK if you have more questions about this, hope this explains it well 👍


Fix tests after task updates

close #46

Tests are still failing, but that's because the tasks PR are not yet released on pypi and then the CI uses an old version.

After requiring fractal-tasks-core 0.1.3, new tests are passing.
I'm merging this.


Typecheck the MNIST example

the example lives on the julia branch in https://github.com/DiffMu/DiffPrivacyInference.jl/tree/main/test/flux_dp
i will also manually prove a privacy bound and see what diffmu has to say about that

i manually inferred that the privacy of the first two parameters is
(4.0⋅eps⋅sqrt(2.0⋅(0.0 - ln(eta))⋅d)⋅sqrt(2.0⋅(0.0 - ln(mu))⋅n), mu + n⋅eta + del⋅n⋅d)
for some eps, del in (0,1) and some eta, mu in (0,1] which is exactly what delmu gives us! 🥳

Ok, that is very nice!

we do, docs here: https://github.com/DiffMu/DiffPrivacyInference.jl/tree/main/test/flux_dp


Consolidating Microsoft.Owin package versions on dev

Fixes #8710

The build fails due to a warning (error) in Razor compilation related to System.Net.Http references, but that's already fixed in #8685.


test: mount additional volumes during e2e testing

Purpose
Docker image needs to be rebuilt each time a code (or config) is changed.
This is because files are copied over when building the image.
Approach
Instead of copying everything during build, mount additional volumes that are then being synced.
packages still need to be copied over during build, because yarn install needs to do some actions within these directories.
Testing
Tested locally, when modifying a file and running snapshot generation.
Risks
N/A

Hope this makes it faster, Docker is by far the slowest bit in the pipeline 😢


aur-build: add --margs

Replace --build-command by the following:

Add options to the makepkg command-line (both on the host and on the container, depending if -c is specified) with the --margs option. Arguments are comma-separated and may be specified multiple times.
To avoid quoting issues with makepkg --config through --margs, --makepkg-conf now sets the makepkg configuration used with makepkg for host (non-container) builds.
Support the MAKEPKG and PACMAN environment variables, to set the commands for pacman and makepkg operations.

Revisit of #678 (@bartoszek) and #709. A test case should include aur sync --margs -h.

Looks like this doesn't work just yet... documentation for --makepkg-conf and --pacman-conf is also missing.

I've left out the MAKEPKG and PACMAN commit as I would like to eventually use run_pacman from makepkg, to handle locks left by pacman (concurrent aur-build processes).


client.container_upload()

Client API command to upload files to container.

Relies on merge of docker/docker#13171, which might be included in docker 1.8.


Displaying active query in currentRefinedValues widget

Is there a way to display the active query (i.e. search term) in the currentRefinedValues widget?
We are finding it difficult to communicate to the user that their results are always filtered by the search term they have entered.  If we were able to display the search term in the currentRefinedValues widget it would make things really clear.
I'm unable to come up with a good work-around at the moment...  Thanks for the consideration and any ideas.

This is not possible in the current state of this widget, but I think it's possible to extend the scope of what we display here.


home-assistant: pin sigstore at 1.1.2

Fixes the github component.
Closes: #310122
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 310310 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.github
python312Packages.homeassistant-stubs
python312Packages.homeassistant-stubs.dist


Unrecognized command

Unrecognized command or argument '4xxxxxxa-1xx1-48xx-xxx-xxxxxxxxxxx'

I dont know what you are trying to do here.

When using the command
appStoreConnect tools jwt fromFile create
~/private_keys/AuthKey_H439JXU4YA.p8 H439JXU4YA
1cc70e85-0db0-45bc-9a87-18e3e073ْ23hn6
I get this error :
Unrecognized command or argument '1cc70e85-0db0-45bc-9a87-18e3e073ْ23hn6'
Le mer. 16 sept. 2020 à 07:00, dersia<EMAIL_ADDRESS>a écrit :

I dont know what you are trying to do here.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dersia/AppStoreConnect/issues/2#issuecomment-693425506,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJVPOYPRKPHACZDMZP5F4QTSGDAIJANCNFSM4ROAI3IA
.

The command is:
appStoreConnect tools jwt create fromFile <PATH-TO-P8> <KID> <ISSUER ID>
Make sure you use create before fromFile. And then you'll need the

P8 file: I guess in your case  ~/private_keys/AuthKey_H439JXU4YA.p8 H439JXU4YA
Your KID: I think this is missing
Your Issuer Id: in your case 1cc70e85-0db0-45bc-9a87-18e3e073ْ23hn6

Please try it like this again.

I am new to this type of too ٍso please help me and send me :
* how i create fromFile (command or name and extension)

Please send me Your Paypal account because I want to support you because I
love supporting people who give free aid
Le mer. 16 sept. 2020 à 15:50, DZ Club<EMAIL_ADDRESS>a écrit :

how i create fromFile
im using your app to create one. (how i created formFile)
appStoreConnect tools jwt create fromFile
My KID: APPSTORE_CONNECT_API_KEY_ID=H439JXU4YA
Le mer. 16 sept. 2020 à 07:48, dersia<EMAIL_ADDRESS>a écrit :

Reopened #2 https://github.com/dersia/AppStoreConnect/issues/2.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dersia/AppStoreConnect/issues/2#event-3773597210,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJVPOYO2WMQGATQNBPQUDPDSGDF3PANCNFSM4ROAI3IA
.

Try this
appStoreConnect tools jwt create fromFile ~/private_keys/AuthKey_H439JXU4YA.p8 H439JXU4YA 1cc70e85-0db0-45bc-9a87-18e3e073ْ23hn6
If this doesn't work try using double quotes like this
appStoreConnect tools jwt create fromFile "~/private_keys/AuthKey_H439JXU4YA.p8" "H439JXU4YA" "1cc70e85-0db0-45bc-9a87-18e3e073ْ23hn6"
If this doesn't work either just reply here and I will see if I can reproduce it and fix it, if there is a bug.

same problem
Unrecognized command or argument '1cc70e85-0db0-45bc-9a87-18e3e073cf9f'
Le mer. 16 sept. 2020 à 11:23, dersia<EMAIL_ADDRESS>a écrit :

Try this
appStoreConnect tools jwt create fromFile
~/private_keys/AuthKey_H439JXU4YA.p8 H439JXU4YA
1cc70e85-0db0-45bc-9a87-18e3e073ْ23hn6
If this doesn't work try using double quotes like this
appStoreConnect tools jwt create fromFile
"~/private_keys/AuthKey_H439JXU4YA.p8" "H439JXU4YA"
"1cc70e85-0db0-45bc-9a87-18e3e073ْ23hn6"
If this doesn't work either just reply here and I will see if I can
reproduce it and fix it, if there is a bug.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dersia/AppStoreConnect/issues/2#issuecomment-693579676,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJVPOYKR4BK6MNRMV65RASTSGD7CHANCNFSM4ROAI3IA
.

Hey there
Sorry for the late reply.
Can you please check if your home directory has a space in it?

This is fixed in 0.3


Suggestion for xarray integration

A simple example showing some of the advantages of providing convenience functions for plotting xarray DataArrays. xarray integration means that you could streamline the visualisation of time-evolving data down to just a few lines, e.g.:
data = xr.load_dataset('3d_data.nc')
anim, block, timeline = amp.animated_plot(da)
anim.save_gif('./xarray_imshow')
plt.show()

Although I think full seamless integration into xarray's system would be quite involved (and not something I'm qualified to do), then providing a set of convenience functions something like this shouldn't be very difficult.
Notice there are several # TODOs in the code showing how this could be extended.
Let me know what you think!

Thank you for the contribution. I'll take a closer look tonight, but I'd like some changes.
xanim.py should be within the animations folder. I don't think it should have a top level import. Any convenice functions like these should be available in animatplot.animations.*, making this
from animatplot.animations.xanim import .... Which shouldn't require any change to any __init__.py.
Currently, examples are in the docs/source/gallery/ directory as Jupyter notebooks. I plan on moving the gallery to sphinx-gallery in the feature, so you could change it to a notebook (the notebooks have a particular format and raw cells), or move the examples folder up a directory to the root where docs, tests, and Animatplot live, which is where I'll put examples when I switch to sphinx-gallery.
I don't want a hard dependency on xarray. We'll need to figure out optional dependencies. I've never used them before. If xanim.py, isn't imported at import time, then something like
try:
    import xarray ...
except ImportException as e:
   raise ...

should be sufficient.

So, I added a vector_plot convenience function in #3. I'm questioning now whether having these convenience functions make the call to animatplot.Animation and return the object is a good idea or not. It stops them from being composed with other blocks.
If they just return a list of blocks (and sometimes a timeline as in your case), then potentially other blocks could be used with them to make the animation. What do you think?

I added a vector_plot convenience function in #3

That was quick!!

they need to have an axis parameter

Creating a complex plot by creating each block one by one is a good system in my opinion. Can the information about the axis they need to go on not be encoded in the block itself?

I don't want a hard dependency on xarray.

I've been thinking, and I'm now wondering whether it would make more sense to have xarray wrap animatplot than have animatplot wrap xarray... I've submitted an issue to xarray here which explains my thought process...

Ok, so I just did a new release. I added an animations subpackage, and a new concept of composition blocks. I think that we should make a composition block for this that returns a list of blocks and a timeline, then we can make a wrapper around that within the animations subpackage that produces the animation.
That only thing that we need to figure out is how to make xarray an optional dependancy. I'm happy to have this exist within animatplot.


support kubernetes v1.16.x version

in order to support k8s v1.16.x version in openyurt, we need to improve the following associated components

yurthub:  bookmark process
yurt-controller-manager: following kube-controller-manager of k8s v1.16.x version
yurtctl: convert v1.16.x k8s to openyurt

@charleszheng44 i will add a pr to slove the adaption for yurthub and yurt-controller-manager, and would you take care of the adaption of yurtctl?

@charleszheng44 i will add a pr to slove the adaption for yurthub and yurt-controller-manager, and would you take care of the adaption of yurtctl?

Yes. just added 1.16 + as a valid version. see #64


FIX: Ignore clippy if it is not available

This happens either on old toolchains or sometimes on nightly.
bors try

bors r+


Simple foreign key support

This implementation is complete and can be merged. Issue #355 was reviewed by @robes and marked closed. Assigning to @howdyjessie to review the code changes.

@jrchudy The code looks good to me; I'm merging it. I'm curious, why did you opt for angular.forEach over the native for loop?


Add prevState-only example

Add an example where only the previous state is used to update the state; this prepares the reader for the toggle button example in the Handling Events chapter

Please note: I do not have a Facebook account, I do not want a Facebook account, and I will not create a Facebook account.
I can tell you that you can use this commit and the content in any way you like. If that doesn't do it, please ignore my request.

Contributor License Agreement is just an agreement. You don't need a Facebook account.

Okay I think I signed it.


[ssr] Prove out SSR compatible component set

Maybe Shoelace.

Closing in favor of broadly tracking at https://github.com/lit/lit/issues/2438. May create new more specific issues in future.


Bug when decoding Social Google Connection

From auth0 created by juniocezar: go-auth0/auth0#117
The allowed audiences field for the Google OAuth2 Social connection has the []interface{} type.
https://github.com/go-auth0/auth0/blob/1c72b20f2cab2ec7b754b93169a19d773af8d444/management/connection.go#L195
The Social Google account usually comes enabled by default in Auth0, but if you disable it:

and run a ConnectionManager.List() to get the list of all connections, this Social Google connection is still being listed.
{
    "total":1,
    "start":0,
    "limit":50,
    "connections":[
       {
          "id":"con_jBya21zJU4o*****",
          "options":{
             "email":true,
             "gmail":false,
             "orkut":false,
             "scope":[
                "email",
                "profile"
             ],
             "sites":false,
             "tasks":false,
             "blogger":false,
             "profile":true,
             "youtube":false,
             "calendar":false,
             "contacts":false,
             "analytics":false,
             "client_id":"",
             "moderator":false,
             "coordinate":false,
             "picasa_web":false,
             "google_plus":false,
             "google_books":false,
             "google_drive":false,
             "spreadsheets":false,
             "client_secret":"",
             "document_list":false,
             "latitude_best":false,
             "latitude_city":false,
             "url_shortener":false,
             "webmaster_tools":false,
             "chrome_web_store":false,
             "allowed_audiences":"",
             "adsense_management":false,
             "google_drive_files":false,
             "coordinate_readonly":false,
             "google_cloud_storage":false,
             "content_api_for_shopping":false,
             "google_affiliate_network":false
          },
          "strategy":"google-oauth2",
          "name":"google-oauth2",
          "is_domain_connection":false,
          "realms":[
             "google-oauth2"
          ],
          "enabled_clients":[

          ]
       }
    ]
 }

The problem here is that the allowed_audiences option comes as an empty string, leading to an Unmarshall error.
json: cannot unmarshal string into Go struct field ConnectionOptionsGoogleOAuth2.allowed_audiences of type []interface {}

I may try to work on a fix for it when I get some spare time

This issue still persists today, just got bit by it again as I was creating a new tenant and forgot that I originally hit this months ago.
The extra frustrating thing is that if you add a fake value here, and then remove it - the allowed_audiences appears to correctly come through as an empty list. I'm going to keep a fake-value listed in their for now as I know that works, and don't want it to magically rollback to being an empty string and start failing again.

This hit me again today, any chance of a bump? Appreciate there's a workaround so low priority.
The workaround for me was hinted in the linked issue - I went to the connection, edited the Allowed Mobile Client IDs with a value, then cleared it and hey-presto it works.
https://github.com/go-auth0/auth0/issues/117#issuecomment-970785716

Thank you for fixing this! Upgraded from 0.37.1 to 0.45. Worked like a charm! 🚀


Expose response object

First of all thanks a lot for this nifty crawler. I am really enjoying your api design!
Nevertheless, would it be possible to expose the entire response object in the handler api? Currently supercrawler only exposes contentType, response.body and url.
This would allow us to crawl a lot more information:

crawl response headers
handle http status codes/messages
performing custom redirects

I can create a PR if such a change would be acceptable.

Yes, I would accept a pull request for this provided the change was backwards compatible. Adding a response property to the ctx object seems the most obvious route?


calico-felix should be able to self report its version

As I understand it at the moment, the version is mastered in setup.py. I would like to be able to run calico-felix --version and have that version reported to me.

This is already fixed under #1102:
$ bin/calico-felix --version
Version:    1.4.1b2-127-g7461598
Build date: 2016-09-27T15:37:27+0000
Git commit: 746159892fe6985e91c3e2985baaffe002d4a1a8

Still mastered in setup.py but we now have a --version flag under #1122.  @neiljerram is also working on an improved git tag-based release process.


[BUG] "Select you tenant" is displayed when multitenancy is disabled

@51CGO commented on Wed May 03 2023
Describe the bug
Just after login, Dashboards displays a pop-up "Select your tenant" even if multi tenancy is disabled.
If I select "Global", I get an error message, so I must click on "Cancel".
In the menu Security -> Tenants,

The Manage tab says "You have not enabled multi tenancy"
The Configure tab says Multi-tenancy : Enabled

To Reproduce

Connect to Opensearch Dashboards
Log in
A pop-up appears for selecting a tenant

Expected behavior
No pop-up
OpenSearch Version
2.7.0
Dashboards Version
2.7.0
Plugins
Standard delivery. No plugin added or removed.
Screenshots

Host/Environment (please complete the following information):

OS: RHEL 8.4
Firefox 102.8.0esr (64 bits)

Additional context
N/A

@zhongnansu commented on Wed May 03 2023
@opensearch-project/triage Please transfer the issue to security-dashboards-plugin https://github.com/opensearch-project/security-dashboards-plugin/issues

@kavilla commented on Fri May 05 2023
@51CGO, yes good catch. There is an existing issue in the security dashboards repo. To get around this, please disable multitenancy on OpenSearch as well.

@willyborankin ping on this, not sure if this PR was out and just not linked to this issue?

@davidlago My bad it was released in 2.9 or 2.8.

Great! closing then. Thanks @willyborankin.


helix-sitemap.yaml update

Fix MWPW-134885
update sitemap yaml file to retarget localized template SEO pages metadata sheet
Test URLs:

Before: https://main--express--adobecom.hlx.page/express/?lighthouse=on
After: https://sitemap-yaml-update--express--adobecom.hlx.page/express/?lighthouse=on

Added do not merge label as this should be merged after metadata sheet publishing
Links to them:

BR
TW
NL
JP
IT
FR
ES
DE
EN
KR

Codecov Report

Merging #168 (9ba0c21) into stage (028306e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            stage     #168   +/-   ##
=======================================
  Coverage   35.37%   35.37%
=======================================
  Files          27       27
  Lines        9489     9489
=======================================
  Hits         3357     3357
  Misses       6132     6132

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[Question] How to customize urlExpression when enable discovery

As we know, if we enable discover from spring-cloud-gateway, the uriExpression should be 'lb://'+serviceId by default. Is there any other way to configuration this uriExpression instead of lb ? Suppose we can get those information from DiscoveryClient like below:
        {
            "instanceId": "ad6fe8c8-a952-11e9-8ba7-1a1bf8e358a0",
            "serviceId": "sys-eureka",
            "secure": false,
            "metadata": {
                "app": "sys-eureka"
            },
            "scheme": "http://",
            "host": "<IP_ADDRESS>",
            "port": 8761,
            "uri": "http://<IP_ADDRESS>:8761"
        }

Thanks a lot.

That is what is happening under the covers when you use the lb protocol, we are using the DiscoveryClient implementation on the classpath to look up the service id which is in the host part of the URL.

Thanks for explain this, I mean if I would like to customize urlExpression, is there any other sample beside lb ?

问了没用，自己写吧，我那个URI定制需求只有改源码了，目前已经跑起来了

I am not sure what you mean by "customize urlExpression", the gateway has logic to identify special protocols like lb and forward

how can I get the details doc about this ?

see https://cloud.spring.io/spring-cloud-static/Greenwich.SR2/single/spring-cloud.html#_configuring_predicates_and_filters_for_discoveryclient_routes

我也有相同的问题，有没有类似zuul的ServiceRouteMapper


Markdown Preview of relative links drops 'host' from path

Relative links in a Markdown document viewed with Markdown Preview do not work if the folder opened in VS Code is a UNC path. This is true even in the simplest case, where the two files are in the same folder.
The UNC path is correctly followed if the user Ctrl-clicks on the link in an editor (not Preview) window.
It seems clear that the  component of the UNC path is dropped when following relative path links:
UNC path form: \\<host>\<share>\<path-to-file>
Source file path: \\ufiles\test\README.md (see below for file contents)
Target file path: \\ufiles\test\TEST.md (see below for file contents)
When the hyperlink is clicked in the "Preview" window, the code tries to open \test\TEST.md which, of course, does not exist on the local machine. The <host> portion of the UNC has been dropped.
I use UNC paths all of the time in Visual Code and, other than this issue, it generally works seamlessly. And, yes, I know I could probably address this issue by mapping the remote share to a local drive letter (Map Network Drive), but that's a lot of work (and letters!) when working with a large number of remote shares.
File locations and contents
README.md in folder \\ufiles\test\
Here's a link: [Relative link to TEST.md](TEST.md)
TEST.md in folder \\ufiles\test
This is the test markdown file
Reproducing the problem

Open the README.md file in the Visual Studio Code editor
Select View...Command Palette...Markdown: Open Preview to create a preview of the file contents
Click on the hyperlink

Expected behavior

The preview should switch to display the contents of TEST.md

Actual behavior

Preview screen briefly blanks, then reloads the preview of README.md
An error is displayed:
"Unable to open 'TEST.md': Unable to read file '\test\TEST.md' (Error: Unable to resolve non-existing file: '\test\TEST.md').

Discussion
The 'host' portion of the file path has been dropped:
File '\\ufiles\test\TEST.md' does exist.
File '\test\TEST.md' does not exist.
Application version
Version: 1.43.2 (system setup)
Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50
Date: 2020-03-24T07:38:38.248Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041

Thank you


feat: Add PostgreSQL to database engines

Adds Postgres to database engines #195

Amazing work! Looks great, I'll merge it.


Added 0xFFFFFFFFL & cmd mask to ioctl call in Mac OS X.  Constants be…

…ing used indicate 32 bit (4 byte) integers are being used as parameters.

Sorry, thought I had properly rebased but apparently not.  Will try again but this pull request is a single line change to the mac os x implementation.

On 6 Sep 2015, at 23:12, PeteSL<EMAIL_ADDRESS>wrote:
…ing used indicate 32 bit (4 byte) integers are being used as parameters.
You can view, comment on, or merge this pull request online at:
https://github.com/nyholku/purejavacomm/pull/62
Commit Summary
• Added 0xFFFFFFFFL & cmd mask to ioctl call in Mac OS X. Constants being used indicate 32 bit (4 byte) integers are being used as parameters.
File Changes
• M src/jtermios/macosx/JTermiosImpl.java (2)
Patch Links:
• https://github.com/nyholku/purejavacomm/pull/62.patch
• https://github.com/nyholku/purejavacomm/pull/62.diff
—
Reply to this email directly or view it on GitHub.

Did not try this because this is not based on the latest.
However I doubt this works because my version which had this
did not work either. I had:
public int ioctl(int fd, int cmd, int[] data) {
	NativeLong[] dataL = { new NativeLong(data[0]) };
	int res = m_ClibND.ioctl(fd, new NativeLong(0xFFFFFFFFL & cmd), dataL);
	data[0] = dataL[0].intValue();
	return res;
}

which is what used to work in 0.0.22.
The error code is 25 ie ENOTTY which is kind of strange.
I will investigate further.
br Kusti